gds-plus-design-vue 1.2.5 → 1.2.6

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.
Files changed (78) hide show
  1. package/lib/{chartbi.b5b6fdab.js → chartbi.114d32d7.js} +23 -23
  2. package/lib/{chartbi.b6818e8e.mjs → chartbi.eb4dd0af.mjs} +3598 -3563
  3. package/lib/gd-initial.js +13 -13
  4. package/lib/gd-initial.mjs +1331 -1277
  5. package/lib/{main.b4a303dc.js → main.03984fed.js} +1 -1
  6. package/lib/{main.f3ae0933.js → main.1050afb3.js} +1 -1
  7. package/lib/{main.be62e9a4.mjs → main.3caa11e1.mjs} +3 -3
  8. package/lib/{main.a28f67df.js → main.64122541.js} +1 -1
  9. package/lib/{main.955f770e.mjs → main.b5a3be02.mjs} +3 -3
  10. package/lib/{main.6713b76c.js → main.b7d2c6ee.js} +1 -1
  11. package/lib/{main.4e325110.mjs → main.c41228a0.mjs} +3 -3
  12. package/lib/{main.c59fc1e8.mjs → main.f0045877.mjs} +7 -7
  13. package/lib/{messages.1346558e.js → messages.828b6ed8.js} +1 -1
  14. package/lib/{messages.7e418640.mjs → messages.a739f4fc.mjs} +14 -14
  15. package/lib/style.css +3 -3
  16. package/lib/{system.account.7c43a95e.js → system.account.3181bcd6.js} +1 -1
  17. package/lib/{system.account.64fbdaeb.mjs → system.account.7c6ea20c.mjs} +18 -18
  18. package/lib/{system.config.93d6cb7d.js → system.config.10f57fa2.js} +1 -1
  19. package/lib/{system.config.f0d2d130.mjs → system.config.d2ad8c97.mjs} +2 -2
  20. package/lib/{system.datasource.61ff56ec.mjs → system.datasource.a77831ab.mjs} +2 -2
  21. package/lib/{system.datasource.4bb39222.js → system.datasource.d5eea7f2.js} +1 -1
  22. package/lib/{system.dict.a817cf68.mjs → system.dict.cb276470.mjs} +2 -2
  23. package/lib/{system.dict.5a2e60fe.js → system.dict.d73658f1.js} +1 -1
  24. package/lib/{system.duplicatechecking.751664ba.mjs → system.duplicatechecking.5c8a3eef.mjs} +2 -2
  25. package/lib/{system.duplicatechecking.65b77e64.js → system.duplicatechecking.d24ba6ea.js} +1 -1
  26. package/lib/{system.email.fec5ae26.js → system.email.4bf52f2d.js} +1 -1
  27. package/lib/{system.email.2f53252e.mjs → system.email.db5da8d7.mjs} +2 -2
  28. package/lib/{system.fieldsecurity.6feb94c3.mjs → system.fieldsecurity.9d40595f.mjs} +1 -1
  29. package/lib/{system.fieldsecurity.920adca4.js → system.fieldsecurity.eb217079.js} +1 -1
  30. package/lib/{system.file.1930d109.mjs → system.file.8064c8e9.mjs} +2 -2
  31. package/lib/{system.file.5a9a5e0e.js → system.file.c1884db7.js} +1 -1
  32. package/lib/{system.log.61d303bd.mjs → system.log.2b2fc11a.mjs} +2 -2
  33. package/lib/{system.log.b309c0e0.js → system.log.389af80d.js} +1 -1
  34. package/lib/{system.machine.ed69ec93.mjs → system.machine.0130e762.mjs} +1 -1
  35. package/lib/{system.machine.9368e508.js → system.machine.49fc6405.js} +1 -1
  36. package/lib/{system.notice.bd18554e.mjs → system.notice.5f8cd020.mjs} +45 -53
  37. package/lib/system.notice.a89f4826.js +1 -0
  38. package/lib/{system.noticereceived.4dc360c0.mjs → system.noticereceived.51b6353a.mjs} +3 -3
  39. package/lib/{system.noticereceived.9550818b.js → system.noticereceived.5e0773c3.js} +1 -1
  40. package/lib/{system.onlineuser.6cf4fe24.js → system.onlineuser.67733846.js} +1 -1
  41. package/lib/{system.onlineuser.08a15a71.mjs → system.onlineuser.c0a69360.mjs} +2 -2
  42. package/lib/{system.org.6e858bf3.mjs → system.org.1169fe47.mjs} +3 -3
  43. package/lib/{system.org.0c67131d.js → system.org.ff54d620.js} +1 -1
  44. package/lib/{system.permissions.cc5ac7ac.mjs → system.permissions.cc9a9866.mjs} +3 -3
  45. package/lib/{system.permissions.af548a3b.js → system.permissions.e6317c5a.js} +1 -1
  46. package/lib/{system.plugin.83d03fb2.js → system.plugin.3467d572.js} +1 -1
  47. package/lib/{system.plugin.a1f1c194.mjs → system.plugin.502a69d8.mjs} +2 -2
  48. package/lib/{system.pos.eae2051e.js → system.pos.4aadf86e.js} +1 -1
  49. package/lib/{system.pos.eb8fd7dd.mjs → system.pos.8c44c029.mjs} +2 -2
  50. package/lib/{system.promptmanagement.04501417.js → system.promptmanagement.9ba710d6.js} +1 -1
  51. package/lib/{system.promptmanagement.c84db7d5.mjs → system.promptmanagement.d8565db4.mjs} +2 -2
  52. package/lib/{system.role.d2195303.mjs → system.role.19959d7f.mjs} +197 -145
  53. package/lib/system.role.890c8ca2.js +1 -0
  54. package/lib/{system.sumberrules.a01e1805.js → system.sumberrules.068ebe4a.js} +1 -1
  55. package/lib/{system.sumberrules.141dc00b.mjs → system.sumberrules.087015a4.mjs} +2 -2
  56. package/lib/{system.team.27a6d5d5.mjs → system.team.27cd57f7.mjs} +2 -2
  57. package/lib/{system.team.0cebcde7.js → system.team.2b28502b.js} +1 -1
  58. package/lib/{system.teammembers.d73c659f.mjs → system.teammembers.4056d586.mjs} +3 -3
  59. package/lib/{system.teammembers.b67f003f.js → system.teammembers.e3baf783.js} +1 -1
  60. package/lib/{system.timers.4a3dd57d.mjs → system.timers.6f61bfe1.mjs} +2 -2
  61. package/lib/{system.timers.b27fcb6d.js → system.timers.cb0a3bd0.js} +1 -1
  62. package/lib/{system.translation.d9488c23.mjs → system.translation.9b88fbf2.mjs} +3 -3
  63. package/lib/{system.translation.d2c982ed.js → system.translation.f3884a0a.js} +1 -1
  64. package/lib/{system.user.0664c21c.js → system.user.3bd95871.js} +1 -1
  65. package/lib/{system.user.6874aa87.mjs → system.user.bdf2613e.mjs} +5 -5
  66. package/lib/{system.useraffiliation.5e3e2bab.mjs → system.useraffiliation.63b6bb36.mjs} +3 -3
  67. package/lib/{system.useraffiliation.6b7a1612.js → system.useraffiliation.7db6e13c.js} +1 -1
  68. package/lib/{system.webresource.204911b7.mjs → system.webresource.c36d6792.mjs} +3 -3
  69. package/lib/{system.webresource.5de18052.js → system.webresource.ede248a8.js} +1 -1
  70. package/lib/{system.welcome.79e15015.mjs → system.welcome.14785b50.mjs} +1 -1
  71. package/lib/{system.welcome.ec7aa744.js → system.welcome.c9eefa06.js} +1 -1
  72. package/locale/en_US.js +5 -2
  73. package/locale/id_ID.js +5 -2
  74. package/locale/vi_VN.js +5 -2
  75. package/locale/zh_CN.js +4 -1
  76. package/package.json +1 -1
  77. package/lib/system.notice.ff62c06a.js +0 -1
  78. package/lib/system.role.e623c50b.js +0 -1
@@ -2,7 +2,7 @@
2
2
  * vuex v3.6.2
3
3
  * (c) 2021 Evan You
4
4
  * @license MIT
5
- */function Nb(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:n});else{var r=e.prototype._init;e.prototype._init=function(i){i===void 0&&(i={}),i.init=i.init?[n].concat(i.init):n,r.call(this,i)}}function n(){var i=this.$options;i.store?this.$store=typeof i.store=="function"?i.store():i.store:i.parent&&i.parent.$store&&(this.$store=i.parent.$store)}}var Rb=typeof window<"u"?window:typeof global<"u"?global:{},si=Rb.__VUE_DEVTOOLS_GLOBAL_HOOK__;function kb(e){!si||(e._devtoolHook=si,si.emit("vuex:init",e),si.on("vuex:travel-to-state",function(t){e.replaceState(t)}),e.subscribe(function(t,r){si.emit("vuex:mutation",t,r)},{prepend:!0}),e.subscribeAction(function(t,r){si.emit("vuex:action",t,r)},{prepend:!0}))}function ti(e,t){Object.keys(e).forEach(function(r){return t(e[r],r)})}function um(e){return e!==null&&typeof e=="object"}function Bb(e){return e&&typeof e.then=="function"}function Ee(e,t){if(!e)throw new Error("[vuex] "+t)}function Fb(e,t){return function(){return e(t)}}var Xe=function(t,r){this.runtime=r,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=(typeof n=="function"?n():n)||{}},fm={namespaced:{configurable:!0}};fm.namespaced.get=function(){return!!this._rawModule.namespaced};Xe.prototype.addChild=function(t,r){this._children[t]=r};Xe.prototype.removeChild=function(t){delete this._children[t]};Xe.prototype.getChild=function(t){return this._children[t]};Xe.prototype.hasChild=function(t){return t in this._children};Xe.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)};Xe.prototype.forEachChild=function(t){ti(this._children,t)};Xe.prototype.forEachGetter=function(t){this._rawModule.getters&&ti(this._rawModule.getters,t)};Xe.prototype.forEachAction=function(t){this._rawModule.actions&&ti(this._rawModule.actions,t)};Xe.prototype.forEachMutation=function(t){this._rawModule.mutations&&ti(this._rawModule.mutations,t)};Object.defineProperties(Xe.prototype,fm);var ei=function(t){this.register([],t,!1)};ei.prototype.get=function(t){return t.reduce(function(r,n){return r.getChild(n)},this.root)};ei.prototype.getNamespace=function(t){var r=this.root;return t.reduce(function(n,i){return r=r.getChild(i),n+(r.namespaced?i+"/":"")},"")};ei.prototype.update=function(t){cm([],this.root,t)};ei.prototype.register=function(t,r,n){var i=this;n===void 0&&(n=!0),process.env.NODE_ENV!=="production"&&hm(t,r);var a=new Xe(r,n);if(t.length===0)this.root=a;else{var o=this.get(t.slice(0,-1));o.addChild(t[t.length-1],a)}r.modules&&ti(r.modules,function(s,l){i.register(t.concat(l),s,n)})};ei.prototype.unregister=function(t){var r=this.get(t.slice(0,-1)),n=t[t.length-1],i=r.getChild(n);if(!i){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+n+"', which is not registered");return}!i.runtime||r.removeChild(n)};ei.prototype.isRegistered=function(t){var r=this.get(t.slice(0,-1)),n=t[t.length-1];return r?r.hasChild(n):!1};function cm(e,t,r){if(process.env.NODE_ENV!=="production"&&hm(e,r),t.update(r),r.modules)for(var n in r.modules){if(!t.getChild(n)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+n+"' on hot reloading, manual reload is needed");return}cm(e.concat(n),t.getChild(n),r.modules[n])}}var Hv={assert:function(e){return typeof e=="function"},expected:"function"},Vb={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},Wv={getters:Hv,mutations:Hv,actions:Vb};function hm(e,t){Object.keys(Wv).forEach(function(r){if(!!t[r]){var n=Wv[r];ti(t[r],function(i,a){Ee(n.assert(i),zb(e,r,a,i,n.expected))})}})}function zb(e,t,r,n,i){var a=t+" should be "+i+' but "'+t+"."+r+'"';return e.length>0&&(a+=' in module "'+e.join(".")+'"'),a+=" is "+JSON.stringify(n)+".",a}var te,Ne=function e(t){var r=this;t===void 0&&(t={}),!te&&typeof window<"u"&&window.Vue&&Xb(window.Vue),process.env.NODE_ENV!=="production"&&(Ee(te,"must call Vue.use(Vuex) before creating a store instance."),Ee(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),Ee(this instanceof e,"store must be called with the new operator."));var n=t.plugins;n===void 0&&(n=[]);var i=t.strict;i===void 0&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new ei(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new te,this._makeLocalGettersCache=Object.create(null);var a=this,o=this,s=o.dispatch,l=o.commit;this.dispatch=function(v,h){return s.call(a,v,h)},this.commit=function(v,h,d){return l.call(a,v,h,d)},this.strict=i;var u=this._modules.root.state;wl(this,u,[],this._modules.root),eh(this,u),n.forEach(function(c){return c(r)});var f=t.devtools!==void 0?t.devtools:te.config.devtools;f&&kb(this)},th={state:{configurable:!0}};th.state.get=function(){return this._vm._data.$$state};th.state.set=function(e){process.env.NODE_ENV!=="production"&&Ee(!1,"use store.replaceState() to explicit replace store state.")};Ne.prototype.commit=function(t,r,n){var i=this,a=Vs(t,r,n),o=a.type,s=a.payload,l=a.options,u={type:o,payload:s},f=this._mutations[o];if(!f){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+o);return}this._withCommit(function(){f.forEach(function(v){v(s)})}),this._subscribers.slice().forEach(function(c){return c(u,i.state)}),process.env.NODE_ENV!=="production"&&l&&l.silent&&console.warn("[vuex] mutation type: "+o+". Silent option has been removed. Use the filter functionality in the vue-devtools")};Ne.prototype.dispatch=function(t,r){var n=this,i=Vs(t,r),a=i.type,o=i.payload,s={type:a,payload:o},l=this._actions[a];if(!l){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+a);return}try{this._actionSubscribers.slice().filter(function(f){return f.before}).forEach(function(f){return f.before(s,n.state)})}catch(f){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(f))}var u=l.length>1?Promise.all(l.map(function(f){return f(o)})):l[0](o);return new Promise(function(f,c){u.then(function(v){try{n._actionSubscribers.filter(function(h){return h.after}).forEach(function(h){return h.after(s,n.state)})}catch(h){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(h))}f(v)},function(v){try{n._actionSubscribers.filter(function(h){return h.error}).forEach(function(h){return h.error(s,n.state,v)})}catch(h){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(h))}c(v)})})};Ne.prototype.subscribe=function(t,r){return vm(t,this._subscribers,r)};Ne.prototype.subscribeAction=function(t,r){var n=typeof t=="function"?{before:t}:t;return vm(n,this._actionSubscribers,r)};Ne.prototype.watch=function(t,r,n){var i=this;return process.env.NODE_ENV!=="production"&&Ee(typeof t=="function","store.watch only accepts a function."),this._watcherVM.$watch(function(){return t(i.state,i.getters)},r,n)};Ne.prototype.replaceState=function(t){var r=this;this._withCommit(function(){r._vm._data.$$state=t})};Ne.prototype.registerModule=function(t,r,n){n===void 0&&(n={}),typeof t=="string"&&(t=[t]),process.env.NODE_ENV!=="production"&&(Ee(Array.isArray(t),"module path must be a string or an Array."),Ee(t.length>0,"cannot register the root module by using registerModule.")),this._modules.register(t,r),wl(this,this.state,t,this._modules.get(t),n.preserveState),eh(this,this.state)};Ne.prototype.unregisterModule=function(t){var r=this;typeof t=="string"&&(t=[t]),process.env.NODE_ENV!=="production"&&Ee(Array.isArray(t),"module path must be a string or an Array."),this._modules.unregister(t),this._withCommit(function(){var n=rh(r.state,t.slice(0,-1));te.delete(n,t[t.length-1])}),dm(this)};Ne.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),process.env.NODE_ENV!=="production"&&Ee(Array.isArray(t),"module path must be a string or an Array."),this._modules.isRegistered(t)};Ne.prototype.hotUpdate=function(t){this._modules.update(t),dm(this,!0)};Ne.prototype._withCommit=function(t){var r=this._committing;this._committing=!0,t(),this._committing=r};Object.defineProperties(Ne.prototype,th);function vm(e,t,r){return t.indexOf(e)<0&&(r&&r.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function dm(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var r=e.state;wl(e,r,[],e._modules.root,!0),eh(e,r,t)}function eh(e,t,r){var n=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,a={};ti(i,function(s,l){a[l]=Fb(s,e),Object.defineProperty(e.getters,l,{get:function(){return e._vm[l]},enumerable:!0})});var o=te.config.silent;te.config.silent=!0,e._vm=new te({data:{$$state:t},computed:a}),te.config.silent=o,e.strict&&Yb(e),n&&(r&&e._withCommit(function(){n._data.$$state=null}),te.nextTick(function(){return n.$destroy()}))}function wl(e,t,r,n,i){var a=!r.length,o=e._modules.getNamespace(r);if(n.namespaced&&(e._modulesNamespaceMap[o]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+o+" for the namespaced module "+r.join("/")),e._modulesNamespaceMap[o]=n),!a&&!i){var s=rh(t,r.slice(0,-1)),l=r[r.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&l in s&&console.warn('[vuex] state field "'+l+'" was overridden by a module with the same name at "'+r.join(".")+'"'),te.set(s,l,n.state)})}var u=n.context=Gb(e,o,r);n.forEachMutation(function(f,c){var v=o+c;Hb(e,v,f,u)}),n.forEachAction(function(f,c){var v=f.root?c:o+c,h=f.handler||f;Wb(e,v,h,u)}),n.forEachGetter(function(f,c){var v=o+c;Ub(e,v,f,u)}),n.forEachChild(function(f,c){wl(e,t,r.concat(c),f,i)})}function Gb(e,t,r){var n=t==="",i={dispatch:n?e.dispatch:function(a,o,s){var l=Vs(a,o,s),u=l.payload,f=l.options,c=l.type;if((!f||!f.root)&&(c=t+c,process.env.NODE_ENV!=="production"&&!e._actions[c])){console.error("[vuex] unknown local action type: "+l.type+", global type: "+c);return}return e.dispatch(c,u)},commit:n?e.commit:function(a,o,s){var l=Vs(a,o,s),u=l.payload,f=l.options,c=l.type;if((!f||!f.root)&&(c=t+c,process.env.NODE_ENV!=="production"&&!e._mutations[c])){console.error("[vuex] unknown local mutation type: "+l.type+", global type: "+c);return}e.commit(c,u,f)}};return Object.defineProperties(i,{getters:{get:n?function(){return e.getters}:function(){return $b(e,t)}},state:{get:function(){return rh(e.state,r)}}}),i}function $b(e,t){if(!e._makeLocalGettersCache[t]){var r={},n=t.length;Object.keys(e.getters).forEach(function(i){if(i.slice(0,n)===t){var a=i.slice(n);Object.defineProperty(r,a,{get:function(){return e.getters[i]},enumerable:!0})}}),e._makeLocalGettersCache[t]=r}return e._makeLocalGettersCache[t]}function Hb(e,t,r,n){var i=e._mutations[t]||(e._mutations[t]=[]);i.push(function(o){r.call(e,n.state,o)})}function Wb(e,t,r,n){var i=e._actions[t]||(e._actions[t]=[]);i.push(function(o){var s=r.call(e,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:e.getters,rootState:e.state},o);return Bb(s)||(s=Promise.resolve(s)),e._devtoolHook?s.catch(function(l){throw e._devtoolHook.emit("vuex:error",l),l}):s})}function Ub(e,t,r,n){if(e._wrappedGetters[t]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+t);return}e._wrappedGetters[t]=function(a){return r(n.state,n.getters,a.state,a.getters)}}function Yb(e){e._vm.$watch(function(){return this._data.$$state},function(){process.env.NODE_ENV!=="production"&&Ee(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,sync:!0})}function rh(e,t){return t.reduce(function(r,n){return r[n]},e)}function Vs(e,t,r){return um(e)&&e.type&&(r=t,t=e,e=e.type),process.env.NODE_ENV!=="production"&&Ee(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:t,options:r}}function Xb(e){if(te&&e===te){process.env.NODE_ENV!=="production"&&console.error("[vuex] already installed. Vue.use(Vuex) should be called only once.");return}te=e,Nb(te)}var pm=ym(function(e,t){var r={};return process.env.NODE_ENV!=="production"&&!nh(t)&&console.error("[vuex] mapGetters: mapper parameter must be either an Array or an Object"),gm(t).forEach(function(n){var i=n.key,a=n.val;a=e+a,r[i]=function(){if(!(e&&!mm(this.$store,"mapGetters",e))){if(process.env.NODE_ENV!=="production"&&!(a in this.$store.getters)){console.error("[vuex] unknown getter: "+a);return}return this.$store.getters[a]}},r[i].vuex=!0}),r}),qb=ym(function(e,t){var r={};return process.env.NODE_ENV!=="production"&&!nh(t)&&console.error("[vuex] mapActions: mapper parameter must be either an Array or an Object"),gm(t).forEach(function(n){var i=n.key,a=n.val;r[i]=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];var u=this.$store.dispatch;if(e){var f=mm(this.$store,"mapActions",e);if(!f)return;u=f.context.dispatch}return typeof a=="function"?a.apply(this,[u].concat(s)):u.apply(this.$store,[a].concat(s))}}),r});function gm(e){return nh(e)?Array.isArray(e)?e.map(function(t){return{key:t,val:t}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}}):[]}function nh(e){return Array.isArray(e)||um(e)}function ym(e){return function(t,r){return typeof t!="string"?(r=t,t=""):t.charAt(t.length-1)!=="/"&&(t+="/"),e(t,r)}}function mm(e,t,r){var n=e._modulesNamespaceMap[r];return process.env.NODE_ENV!=="production"&&!n&&console.error("[vuex] module namespace not found in "+t+"(): "+r),n}function ri(e,t,r,n,i,a,o,s){var l=typeof e=="function"?e.options:e;t&&(l.render=t,l.staticRenderFns=r,l._compiled=!0),n&&(l.functional=!0),a&&(l._scopeId="data-v-"+a);var u;if(o?(u=function(v){v=v||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!v&&typeof __VUE_SSR_CONTEXT__<"u"&&(v=__VUE_SSR_CONTEXT__),i&&i.call(this,v),v&&v._registeredComponents&&v._registeredComponents.add(o)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var f=l.render;l.render=function(h,d){return u.call(d),f(h,d)}}else{var c=l.beforeCreate;l.beforeCreate=c?[].concat(c,u):[u]}return{exports:e,options:l}}function Zb(e){switch(e){case"Log/vislog":return"Vislog";default:return e}}function jb(e){let t="";return e&&e.split("_").forEach((n,i)=>{t+=n.replace(n[0],n[0].toUpperCase())}),t}function _m(e=36,t=!0,r=!0){let n=[],i="0123456789abcdefghijklnmopqrstvuwxyz";t||(i="abcdefghijklnmopqrstvuwxyz");let a=i.toString().length-Math.round(Math.random()*10);for(var o=0;o<e;o++)n[o]=i.substr(Math.floor(Math.random()*a),1);return r&&(n[0]="u"),n[19]&&(n[19]=i.substr(n[19]&3|8,1)),n.join("")}function Kb(e,t="children"){const r=[];for(;e.length;){const n=e[0];r.push(n),e.shift(),n[t]&&n[t].length&&e.push(...n[t])}return r}function zs(e){if(e.length<=1)return e;for(var t=Math.floor(e.length/2),r=e.splice(t,1)[0],n=[],i=[],a=0;a<e.length;a++)e[a].order<r.order?n.push(e[a]):i.push(e[a]);return zs(n).concat([r],zs(i))}function Qb(e){if(!e)return"";let t=[...e];if(t.length===0)return"";let r=[];return t.forEach(n=>{(typeof n=="string"||typeof n=="number")&&r.push(n)}),r.join(",")}function Jb(e,t){const r=t.fkentityname?t.fkentityname:t.fketityname;switch(t.effecttype){case"fk":return e.columnname+r+t.columnname;case"user":return e.columnname+r+t.columnname;case"about":return t.relations.toLowerCase();default:return t.columnname}}function tS(e){var t=new Array("\u96F6","\u58F9","\u8D30","\u53C1","\u8086","\u4F0D","\u9646","\u67D2","\u634C","\u7396"),r=new Array("","\u62FE","\u4F70","\u4EDF"),n=new Array("","\u4E07","\u4EBF","\u5146"),i=new Array("\u89D2","\u5206","\u6BEB","\u5398"),a="\u6574",o="\u5143",s=1e15,l,u,f="",c;if(e==""||(e=parseFloat(e),e>=s))return"";if(e==0)return f=t[0]+o+a,f;if(e=e.toString(),e.indexOf(".")==-1?(l=e,u=""):(c=e.split("."),l=c[0],u=c[1].substr(0,4)),parseInt(l,10)>0){for(var v=0,h=l.length,d=0;d<h;d++){var g=l.substr(d,1),p=h-d-1,y=p/4,m=p%4;g=="0"?v++:(v>0&&(f+=t[0]),v=0,f+=t[parseInt(g)]+r[m]),m==0&&v<4&&(f+=n[y])}f+=o}if(u!="")for(var _=u.length,d=0;d<_;d++){var g=u.substr(d,1);g!="0"&&(f+=t[Number(g)]+i[d])}return f==""?f+=t[0]+o+a:u==""&&(f+=a),f}function eS(e){let t=1,r=e.displayMode?e.displayMode:"none";return r==="percent"?t=100:r==="permil"&&(t=1e3),t}function rS(e){if(typeof e=="string")try{var t=JSON.parse(e);return!!(typeof t=="object"&&t)}catch{return!1}else return!1}function nS(e){switch(e){case"zh_CN":return{name:"\u7B80\u4F53\u4E2D\u6587:",order:1};case"en_US":return{name:"English (USA):",order:2};case"vi_VN":return{name:"Ti\u1EBFng Vi\u1EC7t:",order:3};case"id_ID":return{name:"Indonesia:",order:4};default:return{name:"\u7B80\u4F53\u4E2D\u6587:",order:1}}}function iS(e,t,r){let n=t.split("."),i=e;return n.forEach(a=>{i?i=i[a]:i=null}),i||r}async function aS(e,t){if(navigator.clipboard)await navigator.clipboard.writeText(e);else{const r=document.createElement("textarea");r.value=e,document.body.appendChild(r),r.select(),document.execCommand("copy"),document.body.removeChild(r)}typeof t=="function"&&t()}async function oS(e){let t="";if(navigator.clipboard&&navigator.clipboard.readText)try{t=await navigator.clipboard.readText()}catch{t=Uv()}else t=Uv();typeof e=="function"&&e(t)}function Uv(){let e=document.createElement("textarea");document.body.appendChild(e),e.focus(),document.execCommand("paste");let t=e.value;return document.body.removeChild(e),t}function Tl(e,t){const r=10**t;return Math.round(e*r)/r}function sS(e){var t=new Date,r=t.getFullYear(),n=t.getMonth()+1,i=t.getDate(),a=t.getHours(),o=t.getMinutes(),s=t.getSeconds();return`${r}-${aa(n)}-${aa(i)} ${aa(a)}:${aa(o)}:${aa(s)}`}function aa(e){return e=e.toString(),e[1]?e:"0"+e}function lS(e){return e==="image"?"image/jpg,image/png,image/jpeg,image/gif,image/bmp":"image/jpg,image/png,image/jpeg,image/gif,image/bmp,text/plain,application/pdf,application/msword,application/vnd.ms-excel,application/octet-stream,application/vnd.openxmlformats-officedocument.presentationml.presentation,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.openxmlformats-officedocument.wordprocessingml.document"}function uS(e){return e==="image"?100:1024}function fS(e){return!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e)}function cS(e){let t=new Map;return e.indexOf("?")===-1||e.slice(e.indexOf("?")+1).split("&").map(r=>r.split("=")).map(([r,n])=>(t.set(r,n),{key:r,value:n})),Object.fromEntries(t)}/*! *****************************************************************************
5
+ */function Nb(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:n});else{var r=e.prototype._init;e.prototype._init=function(i){i===void 0&&(i={}),i.init=i.init?[n].concat(i.init):n,r.call(this,i)}}function n(){var i=this.$options;i.store?this.$store=typeof i.store=="function"?i.store():i.store:i.parent&&i.parent.$store&&(this.$store=i.parent.$store)}}var Rb=typeof window<"u"?window:typeof global<"u"?global:{},li=Rb.__VUE_DEVTOOLS_GLOBAL_HOOK__;function kb(e){!li||(e._devtoolHook=li,li.emit("vuex:init",e),li.on("vuex:travel-to-state",function(t){e.replaceState(t)}),e.subscribe(function(t,r){li.emit("vuex:mutation",t,r)},{prepend:!0}),e.subscribeAction(function(t,r){li.emit("vuex:action",t,r)},{prepend:!0}))}function ei(e,t){Object.keys(e).forEach(function(r){return t(e[r],r)})}function fm(e){return e!==null&&typeof e=="object"}function Bb(e){return e&&typeof e.then=="function"}function Ee(e,t){if(!e)throw new Error("[vuex] "+t)}function Fb(e,t){return function(){return e(t)}}var Xe=function(t,r){this.runtime=r,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=(typeof n=="function"?n():n)||{}},cm={namespaced:{configurable:!0}};cm.namespaced.get=function(){return!!this._rawModule.namespaced};Xe.prototype.addChild=function(t,r){this._children[t]=r};Xe.prototype.removeChild=function(t){delete this._children[t]};Xe.prototype.getChild=function(t){return this._children[t]};Xe.prototype.hasChild=function(t){return t in this._children};Xe.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)};Xe.prototype.forEachChild=function(t){ei(this._children,t)};Xe.prototype.forEachGetter=function(t){this._rawModule.getters&&ei(this._rawModule.getters,t)};Xe.prototype.forEachAction=function(t){this._rawModule.actions&&ei(this._rawModule.actions,t)};Xe.prototype.forEachMutation=function(t){this._rawModule.mutations&&ei(this._rawModule.mutations,t)};Object.defineProperties(Xe.prototype,cm);var ri=function(t){this.register([],t,!1)};ri.prototype.get=function(t){return t.reduce(function(r,n){return r.getChild(n)},this.root)};ri.prototype.getNamespace=function(t){var r=this.root;return t.reduce(function(n,i){return r=r.getChild(i),n+(r.namespaced?i+"/":"")},"")};ri.prototype.update=function(t){hm([],this.root,t)};ri.prototype.register=function(t,r,n){var i=this;n===void 0&&(n=!0),process.env.NODE_ENV!=="production"&&vm(t,r);var a=new Xe(r,n);if(t.length===0)this.root=a;else{var o=this.get(t.slice(0,-1));o.addChild(t[t.length-1],a)}r.modules&&ei(r.modules,function(s,l){i.register(t.concat(l),s,n)})};ri.prototype.unregister=function(t){var r=this.get(t.slice(0,-1)),n=t[t.length-1],i=r.getChild(n);if(!i){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+n+"', which is not registered");return}!i.runtime||r.removeChild(n)};ri.prototype.isRegistered=function(t){var r=this.get(t.slice(0,-1)),n=t[t.length-1];return r?r.hasChild(n):!1};function hm(e,t,r){if(process.env.NODE_ENV!=="production"&&vm(e,r),t.update(r),r.modules)for(var n in r.modules){if(!t.getChild(n)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+n+"' on hot reloading, manual reload is needed");return}hm(e.concat(n),t.getChild(n),r.modules[n])}}var Wv={assert:function(e){return typeof e=="function"},expected:"function"},Vb={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},Uv={getters:Wv,mutations:Wv,actions:Vb};function vm(e,t){Object.keys(Uv).forEach(function(r){if(!!t[r]){var n=Uv[r];ei(t[r],function(i,a){Ee(n.assert(i),zb(e,r,a,i,n.expected))})}})}function zb(e,t,r,n,i){var a=t+" should be "+i+' but "'+t+"."+r+'"';return e.length>0&&(a+=' in module "'+e.join(".")+'"'),a+=" is "+JSON.stringify(n)+".",a}var te,Ne=function e(t){var r=this;t===void 0&&(t={}),!te&&typeof window<"u"&&window.Vue&&Xb(window.Vue),process.env.NODE_ENV!=="production"&&(Ee(te,"must call Vue.use(Vuex) before creating a store instance."),Ee(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),Ee(this instanceof e,"store must be called with the new operator."));var n=t.plugins;n===void 0&&(n=[]);var i=t.strict;i===void 0&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new ri(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new te,this._makeLocalGettersCache=Object.create(null);var a=this,o=this,s=o.dispatch,l=o.commit;this.dispatch=function(v,h){return s.call(a,v,h)},this.commit=function(v,h,d){return l.call(a,v,h,d)},this.strict=i;var u=this._modules.root.state;wl(this,u,[],this._modules.root),rh(this,u),n.forEach(function(c){return c(r)});var f=t.devtools!==void 0?t.devtools:te.config.devtools;f&&kb(this)},eh={state:{configurable:!0}};eh.state.get=function(){return this._vm._data.$$state};eh.state.set=function(e){process.env.NODE_ENV!=="production"&&Ee(!1,"use store.replaceState() to explicit replace store state.")};Ne.prototype.commit=function(t,r,n){var i=this,a=Vs(t,r,n),o=a.type,s=a.payload,l=a.options,u={type:o,payload:s},f=this._mutations[o];if(!f){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+o);return}this._withCommit(function(){f.forEach(function(v){v(s)})}),this._subscribers.slice().forEach(function(c){return c(u,i.state)}),process.env.NODE_ENV!=="production"&&l&&l.silent&&console.warn("[vuex] mutation type: "+o+". Silent option has been removed. Use the filter functionality in the vue-devtools")};Ne.prototype.dispatch=function(t,r){var n=this,i=Vs(t,r),a=i.type,o=i.payload,s={type:a,payload:o},l=this._actions[a];if(!l){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+a);return}try{this._actionSubscribers.slice().filter(function(f){return f.before}).forEach(function(f){return f.before(s,n.state)})}catch(f){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(f))}var u=l.length>1?Promise.all(l.map(function(f){return f(o)})):l[0](o);return new Promise(function(f,c){u.then(function(v){try{n._actionSubscribers.filter(function(h){return h.after}).forEach(function(h){return h.after(s,n.state)})}catch(h){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(h))}f(v)},function(v){try{n._actionSubscribers.filter(function(h){return h.error}).forEach(function(h){return h.error(s,n.state,v)})}catch(h){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(h))}c(v)})})};Ne.prototype.subscribe=function(t,r){return dm(t,this._subscribers,r)};Ne.prototype.subscribeAction=function(t,r){var n=typeof t=="function"?{before:t}:t;return dm(n,this._actionSubscribers,r)};Ne.prototype.watch=function(t,r,n){var i=this;return process.env.NODE_ENV!=="production"&&Ee(typeof t=="function","store.watch only accepts a function."),this._watcherVM.$watch(function(){return t(i.state,i.getters)},r,n)};Ne.prototype.replaceState=function(t){var r=this;this._withCommit(function(){r._vm._data.$$state=t})};Ne.prototype.registerModule=function(t,r,n){n===void 0&&(n={}),typeof t=="string"&&(t=[t]),process.env.NODE_ENV!=="production"&&(Ee(Array.isArray(t),"module path must be a string or an Array."),Ee(t.length>0,"cannot register the root module by using registerModule.")),this._modules.register(t,r),wl(this,this.state,t,this._modules.get(t),n.preserveState),rh(this,this.state)};Ne.prototype.unregisterModule=function(t){var r=this;typeof t=="string"&&(t=[t]),process.env.NODE_ENV!=="production"&&Ee(Array.isArray(t),"module path must be a string or an Array."),this._modules.unregister(t),this._withCommit(function(){var n=nh(r.state,t.slice(0,-1));te.delete(n,t[t.length-1])}),pm(this)};Ne.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),process.env.NODE_ENV!=="production"&&Ee(Array.isArray(t),"module path must be a string or an Array."),this._modules.isRegistered(t)};Ne.prototype.hotUpdate=function(t){this._modules.update(t),pm(this,!0)};Ne.prototype._withCommit=function(t){var r=this._committing;this._committing=!0,t(),this._committing=r};Object.defineProperties(Ne.prototype,eh);function dm(e,t,r){return t.indexOf(e)<0&&(r&&r.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function pm(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var r=e.state;wl(e,r,[],e._modules.root,!0),rh(e,r,t)}function rh(e,t,r){var n=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,a={};ei(i,function(s,l){a[l]=Fb(s,e),Object.defineProperty(e.getters,l,{get:function(){return e._vm[l]},enumerable:!0})});var o=te.config.silent;te.config.silent=!0,e._vm=new te({data:{$$state:t},computed:a}),te.config.silent=o,e.strict&&Yb(e),n&&(r&&e._withCommit(function(){n._data.$$state=null}),te.nextTick(function(){return n.$destroy()}))}function wl(e,t,r,n,i){var a=!r.length,o=e._modules.getNamespace(r);if(n.namespaced&&(e._modulesNamespaceMap[o]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+o+" for the namespaced module "+r.join("/")),e._modulesNamespaceMap[o]=n),!a&&!i){var s=nh(t,r.slice(0,-1)),l=r[r.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&l in s&&console.warn('[vuex] state field "'+l+'" was overridden by a module with the same name at "'+r.join(".")+'"'),te.set(s,l,n.state)})}var u=n.context=Gb(e,o,r);n.forEachMutation(function(f,c){var v=o+c;Hb(e,v,f,u)}),n.forEachAction(function(f,c){var v=f.root?c:o+c,h=f.handler||f;Wb(e,v,h,u)}),n.forEachGetter(function(f,c){var v=o+c;Ub(e,v,f,u)}),n.forEachChild(function(f,c){wl(e,t,r.concat(c),f,i)})}function Gb(e,t,r){var n=t==="",i={dispatch:n?e.dispatch:function(a,o,s){var l=Vs(a,o,s),u=l.payload,f=l.options,c=l.type;if((!f||!f.root)&&(c=t+c,process.env.NODE_ENV!=="production"&&!e._actions[c])){console.error("[vuex] unknown local action type: "+l.type+", global type: "+c);return}return e.dispatch(c,u)},commit:n?e.commit:function(a,o,s){var l=Vs(a,o,s),u=l.payload,f=l.options,c=l.type;if((!f||!f.root)&&(c=t+c,process.env.NODE_ENV!=="production"&&!e._mutations[c])){console.error("[vuex] unknown local mutation type: "+l.type+", global type: "+c);return}e.commit(c,u,f)}};return Object.defineProperties(i,{getters:{get:n?function(){return e.getters}:function(){return $b(e,t)}},state:{get:function(){return nh(e.state,r)}}}),i}function $b(e,t){if(!e._makeLocalGettersCache[t]){var r={},n=t.length;Object.keys(e.getters).forEach(function(i){if(i.slice(0,n)===t){var a=i.slice(n);Object.defineProperty(r,a,{get:function(){return e.getters[i]},enumerable:!0})}}),e._makeLocalGettersCache[t]=r}return e._makeLocalGettersCache[t]}function Hb(e,t,r,n){var i=e._mutations[t]||(e._mutations[t]=[]);i.push(function(o){r.call(e,n.state,o)})}function Wb(e,t,r,n){var i=e._actions[t]||(e._actions[t]=[]);i.push(function(o){var s=r.call(e,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:e.getters,rootState:e.state},o);return Bb(s)||(s=Promise.resolve(s)),e._devtoolHook?s.catch(function(l){throw e._devtoolHook.emit("vuex:error",l),l}):s})}function Ub(e,t,r,n){if(e._wrappedGetters[t]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+t);return}e._wrappedGetters[t]=function(a){return r(n.state,n.getters,a.state,a.getters)}}function Yb(e){e._vm.$watch(function(){return this._data.$$state},function(){process.env.NODE_ENV!=="production"&&Ee(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,sync:!0})}function nh(e,t){return t.reduce(function(r,n){return r[n]},e)}function Vs(e,t,r){return fm(e)&&e.type&&(r=t,t=e,e=e.type),process.env.NODE_ENV!=="production"&&Ee(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:t,options:r}}function Xb(e){if(te&&e===te){process.env.NODE_ENV!=="production"&&console.error("[vuex] already installed. Vue.use(Vuex) should be called only once.");return}te=e,Nb(te)}var gm=mm(function(e,t){var r={};return process.env.NODE_ENV!=="production"&&!ih(t)&&console.error("[vuex] mapGetters: mapper parameter must be either an Array or an Object"),ym(t).forEach(function(n){var i=n.key,a=n.val;a=e+a,r[i]=function(){if(!(e&&!_m(this.$store,"mapGetters",e))){if(process.env.NODE_ENV!=="production"&&!(a in this.$store.getters)){console.error("[vuex] unknown getter: "+a);return}return this.$store.getters[a]}},r[i].vuex=!0}),r}),qb=mm(function(e,t){var r={};return process.env.NODE_ENV!=="production"&&!ih(t)&&console.error("[vuex] mapActions: mapper parameter must be either an Array or an Object"),ym(t).forEach(function(n){var i=n.key,a=n.val;r[i]=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];var u=this.$store.dispatch;if(e){var f=_m(this.$store,"mapActions",e);if(!f)return;u=f.context.dispatch}return typeof a=="function"?a.apply(this,[u].concat(s)):u.apply(this.$store,[a].concat(s))}}),r});function ym(e){return ih(e)?Array.isArray(e)?e.map(function(t){return{key:t,val:t}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}}):[]}function ih(e){return Array.isArray(e)||fm(e)}function mm(e){return function(t,r){return typeof t!="string"?(r=t,t=""):t.charAt(t.length-1)!=="/"&&(t+="/"),e(t,r)}}function _m(e,t,r){var n=e._modulesNamespaceMap[r];return process.env.NODE_ENV!=="production"&&!n&&console.error("[vuex] module namespace not found in "+t+"(): "+r),n}function ni(e,t,r,n,i,a,o,s){var l=typeof e=="function"?e.options:e;t&&(l.render=t,l.staticRenderFns=r,l._compiled=!0),n&&(l.functional=!0),a&&(l._scopeId="data-v-"+a);var u;if(o?(u=function(v){v=v||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!v&&typeof __VUE_SSR_CONTEXT__<"u"&&(v=__VUE_SSR_CONTEXT__),i&&i.call(this,v),v&&v._registeredComponents&&v._registeredComponents.add(o)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var f=l.render;l.render=function(h,d){return u.call(d),f(h,d)}}else{var c=l.beforeCreate;l.beforeCreate=c?[].concat(c,u):[u]}return{exports:e,options:l}}function Zb(e){switch(e){case"Log/vislog":return"Vislog";default:return e}}function jb(e){let t="";return e&&e.split("_").forEach((n,i)=>{t+=n.replace(n[0],n[0].toUpperCase())}),t}function xm(e=36,t=!0,r=!0){let n=[],i="0123456789abcdefghijklnmopqrstvuwxyz";t||(i="abcdefghijklnmopqrstvuwxyz");let a=i.toString().length-Math.round(Math.random()*10);for(var o=0;o<e;o++)n[o]=i.substr(Math.floor(Math.random()*a),1);return r&&(n[0]="u"),n[19]&&(n[19]=i.substr(n[19]&3|8,1)),n.join("")}function Kb(e,t="children"){const r=[];for(;e.length;){const n=e[0];r.push(n),e.shift(),n[t]&&n[t].length&&e.push(...n[t])}return r}function zs(e){if(e.length<=1)return e;for(var t=Math.floor(e.length/2),r=e.splice(t,1)[0],n=[],i=[],a=0;a<e.length;a++)e[a].order<r.order?n.push(e[a]):i.push(e[a]);return zs(n).concat([r],zs(i))}function Qb(e){if(!e)return"";let t=[...e];if(t.length===0)return"";let r=[];return t.forEach(n=>{(typeof n=="string"||typeof n=="number")&&r.push(n)}),r.join(",")}function Jb(e,t){const r=t.fkentityname?t.fkentityname:t.fketityname;switch(t.effecttype){case"fk":return e.columnname+r+t.columnname;case"user":return e.columnname+r+t.columnname;case"about":return t.relations.toLowerCase();default:return t.columnname}}function tS(e){var t=new Array("\u96F6","\u58F9","\u8D30","\u53C1","\u8086","\u4F0D","\u9646","\u67D2","\u634C","\u7396"),r=new Array("","\u62FE","\u4F70","\u4EDF"),n=new Array("","\u4E07","\u4EBF","\u5146"),i=new Array("\u89D2","\u5206","\u6BEB","\u5398"),a="\u6574",o="\u5143",s=1e15,l,u,f="",c;if(e==""||(e=parseFloat(e),e>=s))return"";if(e==0)return f=t[0]+o+a,f;if(e=e.toString(),e.indexOf(".")==-1?(l=e,u=""):(c=e.split("."),l=c[0],u=c[1].substr(0,4)),parseInt(l,10)>0){for(var v=0,h=l.length,d=0;d<h;d++){var p=l.substr(d,1),g=h-d-1,y=g/4,m=g%4;p=="0"?v++:(v>0&&(f+=t[0]),v=0,f+=t[parseInt(p)]+r[m]),m==0&&v<4&&(f+=n[y])}f+=o}if(u!="")for(var _=u.length,d=0;d<_;d++){var p=u.substr(d,1);p!="0"&&(f+=t[Number(p)]+i[d])}return f==""?f+=t[0]+o+a:u==""&&(f+=a),f}function eS(e){let t=1,r=e.displayMode?e.displayMode:"none";return r==="percent"?t=100:r==="permil"&&(t=1e3),t}function rS(e){if(typeof e=="string")try{var t=JSON.parse(e);return!!(typeof t=="object"&&t)}catch{return!1}else return!1}function nS(e){switch(e){case"zh_CN":return{name:"\u7B80\u4F53\u4E2D\u6587:",order:1};case"en_US":return{name:"English (USA):",order:2};case"vi_VN":return{name:"Ti\u1EBFng Vi\u1EC7t:",order:3};case"id_ID":return{name:"Indonesia:",order:4};default:return{name:"\u7B80\u4F53\u4E2D\u6587:",order:1}}}function iS(e,t,r){let n=t.split("."),i=e;return n.forEach(a=>{i?i=i[a]:i=null}),i||r}async function aS(e,t){if(navigator.clipboard)await navigator.clipboard.writeText(e);else{const r=document.createElement("textarea");r.value=e,document.body.appendChild(r),r.select(),document.execCommand("copy"),document.body.removeChild(r)}typeof t=="function"&&t()}async function oS(e){let t="";if(navigator.clipboard&&navigator.clipboard.readText)try{t=await navigator.clipboard.readText()}catch{t=Yv()}else t=Yv();typeof e=="function"&&e(t)}function Yv(){let e=document.createElement("textarea");document.body.appendChild(e),e.focus(),document.execCommand("paste");let t=e.value;return document.body.removeChild(e),t}function Tl(e,t){const r=10**t;return Math.round(e*r)/r}function sS(e){var t=new Date,r=t.getFullYear(),n=t.getMonth()+1,i=t.getDate(),a=t.getHours(),o=t.getMinutes(),s=t.getSeconds();return`${r}-${oa(n)}-${oa(i)} ${oa(a)}:${oa(o)}:${oa(s)}`}function oa(e){return e=e.toString(),e[1]?e:"0"+e}function lS(e){return e==="image"?"image/jpg,image/png,image/jpeg,image/gif,image/bmp":"image/jpg,image/png,image/jpeg,image/gif,image/bmp,text/plain,application/pdf,application/msword,application/vnd.ms-excel,application/octet-stream,application/vnd.openxmlformats-officedocument.presentationml.presentation,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.openxmlformats-officedocument.wordprocessingml.document"}function uS(e){return e==="image"?100:1024}function fS(e){return!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e)}function cS(e){let t=new Map;return e.indexOf("?")===-1||e.slice(e.indexOf("?")+1).split("&").map(r=>r.split("=")).map(([r,n])=>(t.set(r,n),{key:r,value:n})),Object.fromEntries(t)}/*! *****************************************************************************
6
6
  Copyright (c) Microsoft Corporation.
7
7
 
8
8
  Permission to use, copy, modify, and/or distribute this software for any
@@ -15,8 +15,8 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15
15
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
16
16
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17
17
  PERFORMANCE OF THIS SOFTWARE.
18
- ***************************************************************************** */var Gf=function(e,t){return Gf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Gf(e,t)};function R(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Gf(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var hS=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),vS=function(){function e(){this.browser=new hS,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e}(),On=new vS;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(On.wxa=!0,On.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?On.worker=!0:typeof navigator>"u"?(On.node=!0,On.svgSupported=!0):dS(navigator.userAgent,On);function dS(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}const tt=On;var ih=12,pS="sans-serif",Xn=ih+"px "+pS,gS=20,yS=100,mS="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function _S(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),i=(e.charCodeAt(r)-gS)/yS;t[n]=i}return t}var xS=_S(mS),Tr={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var i=Tr.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==n&&(t=e.font=n||Xn),e.measureText(r);r=r||"",n=n||Xn;var a=/(\d+)px/.exec(n),o=a&&+a[1]||ih,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=xS[r[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n}};function xm(e){for(var t in Tr)e[t]&&(Tr[t]=e[t])}var bm=lr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),Sm=lr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),qi=Object.prototype.toString,Cl=Array.prototype,bS=Cl.forEach,SS=Cl.filter,ah=Cl.slice,wS=Cl.map,Yv=function(){}.constructor,Lo=Yv?Yv.prototype:null,oh="__proto__",TS=2311;function sh(){return TS++}function jr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function j(e){if(e==null||typeof e!="object")return e;var t=e,r=qi.call(e);if(r==="[object Array]"){if(!Pi(e)){t=[];for(var n=0,i=e.length;n<i;n++)t[n]=j(e[n])}}else if(Sm[r]){if(!Pi(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var n=0,i=e.length;n<i;n++)t[n]=e[n]}}}else if(!bm[r]&&!Pi(e)&&!ki(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==oh&&(t[o]=j(e[o]))}return t}function rt(e,t,r){if(!H(t)||!H(e))return r?j(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==oh){var i=e[n],a=t[n];H(a)&&H(i)&&!V(a)&&!V(i)&&!ki(a)&&!ki(i)&&!$f(a)&&!$f(i)&&!Pi(a)&&!Pi(i)?rt(i,a,r):(r||!(n in e))&&(e[n]=j(t[n]))}return e}function CS(e,t){for(var r=e[0],n=1,i=e.length;n<i;n++)r=rt(r,e[n],t);return r}function k(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==oh&&(e[r]=t[r]);return e}function Y(e,t,r){for(var n=mt(t),i=0;i<n.length;i++){var a=n[i];(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}return e}var DS=Tr.createCanvas;function ct(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r}return-1}function lh(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(e.prototype[i]=r[i]);e.prototype.constructor=e,e.superClass=t}function ie(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else Y(e,t,r)}function Xt(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function A(e,t,r){if(!!(e&&t))if(e.forEach&&e.forEach===bS)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function z(e,t,r){if(!e)return[];if(!t)return Dl(e);if(e.map&&e.map===wS)return e.map(t,r);for(var n=[],i=0,a=e.length;i<a;i++)n.push(t.call(r,e[i],i,e));return n}function lr(e,t,r,n){if(!!(e&&t)){for(var i=0,a=e.length;i<a;i++)r=t.call(n,r,e[i],i,e);return r}}function _t(e,t,r){if(!e)return[];if(!t)return Dl(e);if(e.filter&&e.filter===SS)return e.filter(t,r);for(var n=[],i=0,a=e.length;i<a;i++)t.call(r,e[i],i,e)&&n.push(e[i]);return n}function AS(e,t,r){if(!!(e&&t)){for(var n=0,i=e.length;n<i;n++)if(t.call(r,e[n],n,e))return e[n]}}function mt(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function MS(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(ah.call(arguments)))}}var ht=Lo&&X(Lo.bind)?Lo.call.bind(Lo.bind):MS;function dt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(ah.call(arguments)))}}function V(e){return Array.isArray?Array.isArray(e):qi.call(e)==="[object Array]"}function X(e){return typeof e=="function"}function $(e){return typeof e=="string"}function qa(e){return qi.call(e)==="[object String]"}function vt(e){return typeof e=="number"}function H(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function $f(e){return!!bm[qi.call(e)]}function re(e){return!!Sm[qi.call(e)]}function ki(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function po(e){return e.colorStops!=null}function wm(e){return e.image!=null}function uh(e){return qi.call(e)==="[object RegExp]"}function Bi(e){return e!==e}function Cr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e.length;r<n;r++)if(e[r]!=null)return e[r]}function nt(e,t){return e!=null?e:t}function Kr(e,t,r){return e!=null?e:t!=null?t:r}function Dl(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return ah.apply(e,t)}function fh(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function J(e,t){if(!e)throw new Error(t)}function He(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Tm="__ec_primitive__";function Za(e){e[Tm]=!0}function Pi(e){return e[Tm]}var ES=function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return mt(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e}(),Cm=typeof Map=="function";function LS(){return Cm?new Map:new ES}var Dm=function(){function e(t){var r=V(t);this.data=LS();var n=this;t instanceof e?t.each(i):t&&A(t,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(n,i){t.call(r,n,i)})},e.prototype.keys=function(){var t=this.data.keys();return Cm?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function Q(e){return new Dm(e)}function Am(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var i=e.length,n=0;n<t.length;n++)r[n+i]=t[n];return r}function go(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&k(r,t),r}function ch(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function ur(e,t){return e.hasOwnProperty(t)}function Yt(){}var Mm=180/Math.PI;const PS=Object.freeze(Object.defineProperty({__proto__:null,guid:sh,logError:jr,clone:j,merge:rt,mergeAll:CS,extend:k,defaults:Y,createCanvas:DS,indexOf:ct,inherits:lh,mixin:ie,isArrayLike:Xt,each:A,map:z,reduce:lr,filter:_t,find:AS,keys:mt,bind:ht,curry:dt,isArray:V,isFunction:X,isString:$,isStringSafe:qa,isNumber:vt,isObject:H,isBuiltInObject:$f,isTypedArray:re,isDom:ki,isGradientObject:po,isImagePatternObject:wm,isRegExp:uh,eqNaN:Bi,retrieve:Cr,retrieve2:nt,retrieve3:Kr,slice:Dl,normalizeCssArray:fh,assert:J,trim:He,setAsPrimitive:Za,isPrimitive:Pi,HashMap:Dm,createHashMap:Q,concatArray:Am,createObject:go,disableUserSelect:ch,hasOwn:ur,noop:Yt,RADIAN_TO_DEGREE:Mm},Symbol.toStringTag,{value:"Module"}));function ni(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function IS(e,t){return e[0]=t[0],e[1]=t[1],e}function Em(e){return[e[0],e[1]]}function OS(e,t,r){return e[0]=t,e[1]=r,e}function Hf(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function NS(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e}function Lm(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function hh(e){return Math.sqrt(vh(e))}var RS=hh;function vh(e){return e[0]*e[0]+e[1]*e[1]}var kS=vh;function BS(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e}function FS(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e}function VS(e,t){return e[0]*t[0]+e[1]*t[1]}function Ss(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function Pm(e,t){var r=hh(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function Gs(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var $s=Gs;function Im(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var zn=Im;function zS(e,t){return e[0]=-t[0],e[1]=-t[1],e}function Ba(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e}function ee(e,t,r){var n=t[0],i=t[1];return e[0]=r[0]*n+r[2]*i+r[4],e[1]=r[1]*n+r[3]*i+r[5],e}function Ur(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function Yr(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}const GS=Object.freeze(Object.defineProperty({__proto__:null,create:ni,copy:IS,clone:Em,set:OS,add:Hf,scaleAndAdd:NS,sub:Lm,len:hh,length:RS,lenSquare:vh,lengthSquare:kS,mul:BS,div:FS,dot:VS,scale:Ss,normalize:Pm,distance:Gs,dist:$s,distanceSquare:Im,distSquare:zn,negate:zS,lerp:Ba,applyTransform:ee,min:Ur,max:Yr},Symbol.toStringTag,{value:"Module"}));var li=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),$S=function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new li(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,i=t.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,t),this.handler.dispatchToElement(new li(r,t),"drag",t.event);var s=this.handler.findHover(n,i,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new li(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new li(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new li(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new li(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}();const HS=$S;var WS=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===n)return this;var l={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[t].length-1,f=a[t][u];return f&&f.callAtLast?a[t].splice(u,0,l):a[t].push(l),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(r){if(n[t]){for(var i=[],a=0,o=n[t].length;a<o;a++)n[t][a].h!==r&&i.push(n[t][a]);n[t]=i}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},e.prototype.trigger=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],l=i.length,u=0;u<l;u++){var f=i[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e}();const qe=WS;var US=Math.log(2);function Wf(e,t,r,n,i,a){var o=n+"-"+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~i)/US);return e[r][l]}for(var u=n|1<<r,f=r+1;n&1<<f;)f++;for(var c=0,v=0,h=0;v<s;v++){var d=1<<v;d&i||(c+=(h%2?-1:1)*e[r][v]*Wf(e,t-1,f,u,i|d,a),h++)}return a[o]=c,c}function Xv(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],n={},i=Wf(r,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Wf(r,7,o===0?1:0,1<<o,1<<s,n)/i*t[o];return function(l,u,f){var c=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/c,l[1]=(u*a[3]+f*a[4]+a[5])/c}}}var qv="___zrEVENTSAVED",fu=[];function YS(e,t,r,n,i){return Uf(fu,t,n,i,!0)&&Uf(e,r,fu[0],fu[1])}function Uf(e,t,r,n,i){if(t.getBoundingClientRect&&tt.domSupported&&!Om(t)){var a=t[qv]||(t[qv]={}),o=XS(t,a),s=qS(o,a,i);if(s)return s(e,r,n),!0}return!1}function XS(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function qS(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=e[u].getBoundingClientRect(),c=2*u,v=f.left,h=f.top;o.push(v,h),l=l&&a&&v===a[c]&&h===a[c+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=r?Xv(s,o):Xv(o,s))}function Om(e){return e.nodeName.toUpperCase()==="CANVAS"}var ZS=/([&<>"'])/g,jS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function de(e){return e==null?"":(e+"").replace(ZS,function(t,r){return jS[r]})}var KS=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,cu=[],QS=tt.browser.firefox&&+tt.browser.version.split(".")[0]<39;function Yf(e,t,r,n){return r=r||{},n?Zv(e,t,r):QS&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):Zv(e,t,r),r}function Zv(e,t,r){if(tt.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(Om(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(Uf(cu,e,n,i)){r.zrX=cu[0],r.zrY=cu[1];return}}r.zrX=r.zrY=0}function dh(e){return e||window.event}function Se(e,t,r){if(t=dh(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Yf(e,o,t,r)}else{Yf(e,t,t,r);var a=JS(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&KS.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function JS(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function tw(e,t,r,n){e.addEventListener(t,r,n)}function ew(e,t,r,n){e.removeEventListener(t,r,n)}var Nm=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},rw=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var i=t.touches;if(!!i){for(var a={points:[],touches:[],target:r,event:t},o=0,s=i.length;o<s;o++){var l=i[o],u=Yf(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},e.prototype._recognize=function(t){for(var r in hu)if(hu.hasOwnProperty(r)){var n=hu[r](this._track,t);if(n)return n}},e}();function jv(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function nw(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var hu={pinch:function(e,t){var r=e.length;if(!!r){var n=(e[r-1]||{}).points,i=(e[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=jv(n)/jv(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=nw(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Dr(){return[1,0,0,1,0,0]}function yo(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function ph(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Qr(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function Fi(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function Zi(e,t,r){var n=t[0],i=t[2],a=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(r),f=Math.cos(r);return e[0]=n*f+o*u,e[1]=-n*u+o*f,e[2]=i*f+s*u,e[3]=-i*u+f*s,e[4]=f*a+u*l,e[5]=f*l-u*a,e}function Rm(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e}function ji(e,t){var r=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=r*o-a*n;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*i)*l,e[5]=(a*i-r*s)*l,e):null}function iw(e){var t=Dr();return ph(t,e),t}const aw=Object.freeze(Object.defineProperty({__proto__:null,create:Dr,identity:yo,copy:ph,mul:Qr,translate:Fi,rotate:Zi,scale:Rm,invert:ji,clone:iw},Symbol.toStringTag,{value:"Module"}));var ow=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(!!t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,i){t.x=r.x+n.x*i,t.y=r.y+n.y*i},e.lerp=function(t,r,n,i){var a=1-i;t.x=a*r.x+i*n.x,t.y=a*r.y+i*n.y},e}();const U=ow;var Po=Math.min,Io=Math.max,cn=new U,hn=new U,vn=new U,dn=new U,oa=new U,sa=new U,sw=function(){function e(t,r,n,i){n<0&&(t=t+n,n=-n),i<0&&(r=r+i,i=-i),this.x=t,this.y=r,this.width=n,this.height=i}return e.prototype.union=function(t){var r=Po(t.x,this.x),n=Po(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Io(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Io(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,i=t.height/r.height,a=Dr();return Fi(a,a,[-r.x,-r.y]),Rm(a,a,[n,i]),Fi(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,f=t.y,c=t.y+t.height,v=!(a<l||u<i||s<f||c<o);if(r){var h=1/0,d=0,g=Math.abs(a-l),p=Math.abs(u-i),y=Math.abs(s-f),m=Math.abs(c-o),_=Math.min(g,p),x=Math.min(y,m);a<l||u<i?_>d&&(d=_,g<p?U.set(sa,-g,0):U.set(sa,p,0)):_<h&&(h=_,g<p?U.set(oa,g,0):U.set(oa,-p,0)),s<f||c<o?x>d&&(d=x,y<m?U.set(sa,0,-y):U.set(sa,0,m)):_<h&&(h=_,y<m?U.set(oa,0,y):U.set(oa,0,-m))}return r&&U.copy(r,v?oa:sa),v},e.prototype.contain=function(t,r){var n=this;return t>=n.x&&t<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=r.x*i+o,t.y=r.y*a+s,t.width=r.width*i,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}cn.x=vn.x=r.x,cn.y=dn.y=r.y,hn.x=dn.x=r.x+r.width,hn.y=vn.y=r.y+r.height,cn.transform(n),dn.transform(n),hn.transform(n),vn.transform(n),t.x=Po(cn.x,hn.x,vn.x,dn.x),t.y=Po(cn.y,hn.y,vn.y,dn.y);var l=Io(cn.x,hn.x,vn.x,dn.x),u=Io(cn.y,hn.y,vn.y,dn.y);t.width=l-t.x,t.height=u-t.y},e}();const it=sw;var km="silent";function lw(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:uw}}function uw(){Nm(this.event)}var fw=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(qe),la=function(){function e(t,r){this.x=t,this.y=r}return e}(),cw=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],vu=new it(0,0,0,0),Bm=function(e){R(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new la(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new fw,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new HS(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(A(cw,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=Fm(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new la(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new la(0,0)},t.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=lw(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new la(r,n);if(Kv(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new it(r-u,n-u,l,l),c=a.length-1;c>=0;c--){var v=a[c];v!==i&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(vu.copy(v.getBoundingRect()),v.transform&&vu.applyTransform(v.transform),vu.intersect(f)&&s.push(v))}if(s.length)for(var h=4,d=Math.PI/12,g=Math.PI*2,p=0;p<u;p+=h)for(var y=0;y<g;y+=d){var m=r+p*Math.cos(y),_=n+p*Math.sin(y);if(Kv(s,o,m,_,i),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new rw);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new la;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(qe);A(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){Bm.prototype[e]=function(t){var r=t.zrX,n=t.zrY,i=Fm(this,r,n),a,o;if((e!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||$s(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function hw(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1;n.silent&&(i=!0)}var s=n.__hostTarget;n=s||n.parent}return i?km:!0}return!1}function Kv(e,t,r,n,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=hw(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==km)){t.target=o;break}}}function Fm(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const vw=Bm;var Vm=32,ua=7;function dw(e){for(var t=0;e>=Vm;)t|=e&1,e>>=1;return e+t}function Qv(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i<r&&n(e[i],e[i-1])<0;)i++;pw(e,t,i)}else for(;i<r&&n(e[i],e[i-1])>=0;)i++;return i-t}function pw(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function Jv(e,t,r,n,i){for(n===t&&n++;n<r;n++){for(var a=e[n],o=t,s=n,l;o<s;)l=o+s>>>1,i(a,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=a}}function du(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])>0){for(s=n-i;l<s&&a(e,t[r+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(e,t[r+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var f=o+(l-o>>>1);a(e,t[r+f])>0?o=f+1:l=f}return l}function pu(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])<0){for(s=i+1;l<s&&a(e,t[r+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(e,t[r+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var f=o+(l-o>>>1);a(e,t[r+f])<0?l=f:o=f+1}return l}function gw(e,t){var r=ua,n,i,a=0;e.length;var o=[];n=[],i=[];function s(h,d){n[a]=h,i[a]=d,a+=1}function l(){for(;a>1;){var h=a-2;if(h>=1&&i[h-1]<=i[h]+i[h+1]||h>=2&&i[h-2]<=i[h]+i[h-1])i[h-1]<i[h+1]&&h--;else if(i[h]>i[h+1])break;f(h)}}function u(){for(;a>1;){var h=a-2;h>0&&i[h-1]<i[h+1]&&h--,f(h)}}function f(h){var d=n[h],g=i[h],p=n[h+1],y=i[h+1];i[h]=g+y,h===a-3&&(n[h+1]=n[h+2],i[h+1]=i[h+2]),a--;var m=pu(e[p],e,d,g,0,t);d+=m,g-=m,g!==0&&(y=du(e[d+g-1],e,p,y,y-1,t),y!==0&&(g<=y?c(d,g,p,y):v(d,g,p,y)))}function c(h,d,g,p){var y=0;for(y=0;y<d;y++)o[y]=e[h+y];var m=0,_=g,x=h;if(e[x++]=e[_++],--p===0){for(y=0;y<d;y++)e[x+y]=o[m+y];return}if(d===1){for(y=0;y<p;y++)e[x+y]=e[_+y];e[x+p]=o[m];return}for(var w=r,b,S,T;;){b=0,S=0,T=!1;do if(t(e[_],o[m])<0){if(e[x++]=e[_++],S++,b=0,--p===0){T=!0;break}}else if(e[x++]=o[m++],b++,S=0,--d===1){T=!0;break}while((b|S)<w);if(T)break;do{if(b=pu(e[_],o,m,d,0,t),b!==0){for(y=0;y<b;y++)e[x+y]=o[m+y];if(x+=b,m+=b,d-=b,d<=1){T=!0;break}}if(e[x++]=e[_++],--p===0){T=!0;break}if(S=du(o[m],e,_,p,0,t),S!==0){for(y=0;y<S;y++)e[x+y]=e[_+y];if(x+=S,_+=S,p-=S,p===0){T=!0;break}}if(e[x++]=o[m++],--d===1){T=!0;break}w--}while(b>=ua||S>=ua);if(T)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),d===1){for(y=0;y<p;y++)e[x+y]=e[_+y];e[x+p]=o[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)e[x+y]=o[m+y]}}function v(h,d,g,p){var y=0;for(y=0;y<p;y++)o[y]=e[g+y];var m=h+d-1,_=p-1,x=g+p-1,w=0,b=0;if(e[x--]=e[m--],--d===0){for(w=x-(p-1),y=0;y<p;y++)e[w+y]=o[y];return}if(p===1){for(x-=d,m-=d,b=x+1,w=m+1,y=d-1;y>=0;y--)e[b+y]=e[w+y];e[x]=o[_];return}for(var S=r;;){var T=0,D=0,M=!1;do if(t(o[_],e[m])<0){if(e[x--]=e[m--],T++,D=0,--d===0){M=!0;break}}else if(e[x--]=o[_--],D++,T=0,--p===1){M=!0;break}while((T|D)<S);if(M)break;do{if(T=d-pu(o[_],e,h,d,d-1,t),T!==0){for(x-=T,m-=T,d-=T,b=x+1,w=m+1,y=T-1;y>=0;y--)e[b+y]=e[w+y];if(d===0){M=!0;break}}if(e[x--]=o[_--],--p===1){M=!0;break}if(D=p-du(e[m],o,0,p,p-1,t),D!==0){for(x-=D,_-=D,p-=D,b=x+1,w=_+1,y=0;y<D;y++)e[b+y]=o[w+y];if(p<=1){M=!0;break}}if(e[x--]=e[m--],--d===0){M=!0;break}S--}while(T>=ua||D>=ua);if(M)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),p===1){for(x-=d,m-=d,b=x+1,w=m+1,y=d-1;y>=0;y--)e[b+y]=e[w+y];e[x]=o[_]}else{if(p===0)throw new Error;for(w=x-(p-1),y=0;y<p;y++)e[w+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function ws(e,t,r,n){r||(r=0),n||(n=e.length);var i=n-r;if(!(i<2)){var a=0;if(i<Vm){a=Qv(e,r,n,t),Jv(e,r,n,r+a,t);return}var o=gw(e,t),s=dw(i);do{if(a=Qv(e,r,n,t),a<s){var l=i;l>s&&(l=s),Jv(e,r,r+l,r+a,t),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var pe=1,Ma=2,Di=4,td=!1;function gu(){td||(td=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function ed(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var yw=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=ed}return e.prototype.traverse=function(t,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(r),n},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,t);n.length=this._displayListLen,ws(n,ed)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)r=null;else if(i){r?r=r.slice():r=[];for(var a=i,o=t;a;)a.parent=o,a.updateTransform(),r.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=pe),this._updateAndAddDisplayable(u,r,n)}t.__dirty=0}else{var f=t;r&&r.length?f.__clipPaths=r:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(gu(),f.z=0),isNaN(f.z2)&&(gu(),f.z2=0),isNaN(f.zlevel)&&(gu(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,r,n);var v=t.getTextGuideLine();v&&this._updateAndAddDisplayable(v,r,n);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,r,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r<n;r++)this.delRoot(t[r]);return}var i=ct(this._roots,t);i>=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}();const mw=yw;var zm;zm=tt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const Xf=zm;var Ts={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Ts.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Ts.bounceIn(e*2)*.5:Ts.bounceOut(e*2-1)*.5+.5}};const Gm=Ts;var Oo=Math.pow,Jr=Math.sqrt,Hs=1e-8,$m=1e-4,rd=Jr(3),No=1/3,er=ni(),Ce=ni(),Ii=ni();function Xr(e){return e>-Hs&&e<Hs}function Hm(e){return e>Hs||e<-Hs}function Nt(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function nd(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function Ws(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-i,f=s*s-3*o*l,c=s*l-9*o*u,v=l*l-3*s*u,h=0;if(Xr(f)&&Xr(c))if(Xr(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[h++]=d)}else{var g=c*c-4*f*v;if(Xr(g)){var p=c/f,d=-s/o+p,y=-p/2;d>=0&&d<=1&&(a[h++]=d),y>=0&&y<=1&&(a[h++]=y)}else if(g>0){var m=Jr(g),_=f*s+1.5*o*(-c+m),x=f*s+1.5*o*(-c-m);_<0?_=-Oo(-_,No):_=Oo(_,No),x<0?x=-Oo(-x,No):x=Oo(x,No);var d=(-s-(_+x))/(3*o);d>=0&&d<=1&&(a[h++]=d)}else{var w=(2*f*s-3*o*c)/(2*Jr(f*f*f)),b=Math.acos(w)/3,S=Jr(f),T=Math.cos(b),d=(-s-2*S*T)/(3*o),y=(-s+S*(T+rd*Math.sin(b)))/(3*o),D=(-s+S*(T-rd*Math.sin(b)))/(3*o);d>=0&&d<=1&&(a[h++]=d),y>=0&&y<=1&&(a[h++]=y),D>=0&&D<=1&&(a[h++]=D)}}return h}function Wm(e,t,r,n,i){var a=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(Xr(o)){if(Hm(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Xr(f))i[0]=-a/(2*o);else if(f>0){var c=Jr(f),u=(-a+c)/(2*o),v=(-a-c)/(2*o);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function tn(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,l=(n-r)*i+r,u=(s-o)*i+o,f=(l-s)*i+s,c=(f-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=n}function Um(e,t,r,n,i,a,o,s,l,u,f){var c,v=.005,h=1/0,d,g,p,y;er[0]=l,er[1]=u;for(var m=0;m<1;m+=.05)Ce[0]=Nt(e,r,i,o,m),Ce[1]=Nt(t,n,a,s,m),p=zn(er,Ce),p<h&&(c=m,h=p);h=1/0;for(var _=0;_<32&&!(v<$m);_++)d=c-v,g=c+v,Ce[0]=Nt(e,r,i,o,d),Ce[1]=Nt(t,n,a,s,d),p=zn(Ce,er),d>=0&&p<h?(c=d,h=p):(Ii[0]=Nt(e,r,i,o,g),Ii[1]=Nt(t,n,a,s,g),y=zn(Ii,er),g<=1&&y<h?(c=g,h=y):v*=.5);return f&&(f[0]=Nt(e,r,i,o,c),f[1]=Nt(t,n,a,s,c)),Jr(h)}function _w(e,t,r,n,i,a,o,s,l){for(var u=e,f=t,c=0,v=1/l,h=1;h<=l;h++){var d=h*v,g=Nt(e,r,i,o,d),p=Nt(t,n,a,s,d),y=g-u,m=p-f;c+=Math.sqrt(y*y+m*m),u=g,f=p}return c}function Wt(e,t,r,n){var i=1-n;return i*(i*e+2*n*t)+n*n*r}function id(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function xw(e,t,r,n,i){var a=e-2*t+r,o=2*(t-e),s=e-n,l=0;if(Xr(a)){if(Hm(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Xr(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var c=Jr(f),u=(-o+c)/(2*a),v=(-o-c)/(2*a);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function Ym(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function Us(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function Xm(e,t,r,n,i,a,o,s,l){var u,f=.005,c=1/0;er[0]=o,er[1]=s;for(var v=0;v<1;v+=.05){Ce[0]=Wt(e,r,i,v),Ce[1]=Wt(t,n,a,v);var h=zn(er,Ce);h<c&&(u=v,c=h)}c=1/0;for(var d=0;d<32&&!(f<$m);d++){var g=u-f,p=u+f;Ce[0]=Wt(e,r,i,g),Ce[1]=Wt(t,n,a,g);var h=zn(Ce,er);if(g>=0&&h<c)u=g,c=h;else{Ii[0]=Wt(e,r,i,p),Ii[1]=Wt(t,n,a,p);var y=zn(Ii,er);p<=1&&y<c?(u=p,c=y):f*=.5}}return l&&(l[0]=Wt(e,r,i,u),l[1]=Wt(t,n,a,u)),Jr(c)}function bw(e,t,r,n,i,a,o){for(var s=e,l=t,u=0,f=1/o,c=1;c<=o;c++){var v=c*f,h=Wt(e,r,i,v),d=Wt(t,n,a,v),g=h-s,p=d-l;u+=Math.sqrt(g*g+p*p),s=h,l=d}return u}var Sw=/cubic-bezier\(([0-9,\.e ]+)\)/;function qm(e){var t=e&&Sw.exec(e);if(t){var r=t[1].split(","),n=+He(r[0]),i=+He(r[1]),a=+He(r[2]),o=+He(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Ws(0,n,a,1,l,s)&&Nt(0,i,o,1,s[0])}}}var ww=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Yt,this.ondestroy=t.ondestroy||Yt,this.onrestart=t.onrestart||Yt,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=X(t)?t:Gm[t]||qm(t)},e}();const Tw=ww;var Zm=function(){function e(t){this.value=t}return e}(),Cw=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new Zm(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Dw=function(){function e(t){this._list=new Cw,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new Zm(r),s.key=t,n.insertEntry(s),i[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();const mo=Dw;var ad={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 Ue(e){return e=Math.round(e),e<0?0:e>255?255:e}function Aw(e){return e=Math.round(e),e<0?0:e>360?360:e}function ja(e){return e<0?0:e>1?1:e}function yu(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Ue(parseFloat(t)/100*255):Ue(parseInt(t,10))}function Gn(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?ja(parseFloat(t)/100):ja(parseFloat(t))}function mu(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function qr(e,t,r){return e+(t-e)*r}function be(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function qf(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var jm=new mo(20),Ro=null;function ui(e,t){Ro&&qf(Ro,t),Ro=jm.put(e,Ro||t.slice())}function ge(e,t){if(!!e){t=t||[];var r=jm.get(e);if(r)return qf(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in ad)return qf(t,ad[n]),ui(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){be(t,0,0,0,1);return}return be(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),ui(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){be(t,0,0,0,1);return}return be(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),ui(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?be(t,+u[0],+u[1],+u[2],1):be(t,0,0,0,1);f=Gn(u.pop());case"rgb":if(u.length>=3)return be(t,yu(u[0]),yu(u[1]),yu(u[2]),u.length===3?f:Gn(u[3])),ui(e,t),t;be(t,0,0,0,1);return;case"hsla":if(u.length!==4){be(t,0,0,0,1);return}return u[3]=Gn(u[3]),Zf(u,t),ui(e,t),t;case"hsl":if(u.length!==3){be(t,0,0,0,1);return}return Zf(u,t),ui(e,t),t;default:return}}be(t,0,0,0,1)}}function Zf(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Gn(e[1]),i=Gn(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],be(t,Ue(mu(o,a,r+1/3)*255),Ue(mu(o,a,r)*255),Ue(mu(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Mw(e){if(!!e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var f=((a-t)/6+o/2)/o,c=((a-r)/6+o/2)/o,v=((a-n)/6+o/2)/o;t===a?l=v-c:r===a?l=1/3+f-v:n===a&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return e[3]!=null&&h.push(e[3]),h}}function jf(e,t){var r=ge(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return on(r,r.length===4?"rgba":"rgb")}}function Ew(e){var t=ge(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function Km(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=t[i],s=t[a],l=n-i;return r[0]=Ue(qr(o[0],s[0],l)),r[1]=Ue(qr(o[1],s[1],l)),r[2]=Ue(qr(o[2],s[2],l)),r[3]=ja(qr(o[3],s[3],l)),r}}var Lw=Km;function gh(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=ge(t[i]),s=ge(t[a]),l=n-i,u=on([Ue(qr(o[0],s[0],l)),Ue(qr(o[1],s[1],l)),Ue(qr(o[2],s[2],l)),ja(qr(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}var Pw=gh;function Iw(e,t,r,n){var i=ge(e);if(e)return i=Mw(i),t!=null&&(i[0]=Aw(t)),r!=null&&(i[1]=Gn(r)),n!=null&&(i[2]=Gn(n)),on(Zf(i),"rgba")}function Ow(e,t){var r=ge(e);if(r&&t!=null)return r[3]=ja(t),on(r,"rgba")}function on(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function Ka(e,t){var r=ge(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}function Nw(){return on([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}const Rw=Object.freeze(Object.defineProperty({__proto__:null,parse:ge,lift:jf,toHex:Ew,fastLerp:Km,fastMapToColor:Lw,lerp:gh,mapToColor:Pw,modifyHSL:Iw,modifyAlpha:Ow,stringify:on,lum:Ka,random:Nw},Symbol.toStringTag,{value:"Module"}));function kw(e){return e.type==="linear"}function Bw(e){return e.type==="radial"}(function(){return tt.hasGlobalWindow&&X(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return process.env.NODE_ENV!=="production"&&jr("Base64 isn't natively supported in the current environment."),null}})();var Kf=Array.prototype.slice;function mr(e,t,r){return(t-e)*r+e}function _u(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=mr(t[a],r[a],n);return e}function Fw(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=mr(t[o][s],r[o][s],n)}return e}function ko(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+r[a]*n;return e}function od(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+r[o][s]*n}return e}function Vw(e,t){for(var r=e.length,n=t.length,i=r>n?t:e,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function zw(e,t,r){var n=e,i=t;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(r===1?i[l]:Kf.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=i[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=i[l][f])}}function Cs(e){if(Xt(e)){var t=e.length;if(Xt(e[0])){for(var r=[],n=0;n<t;n++)r.push(Kf.call(e[n]));return r}return Kf.call(e)}return e}function Ds(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function Gw(e){return Xt(e&&e[0])?2:1}var Bo=0,As=1,Qm=2,Ea=3,Qf=4,Jf=5,sd=6;function ld(e){return e===Qf||e===Jf}function Fo(e){return e===As||e===Qm}var fa=[0,0,0,0],$w=function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=sd,l=r;if(Xt(r)){var u=Gw(r);s=u,(u===1&&!vt(r[0])||u===2&&!vt(r[0][0]))&&(o=!0)}else if(vt(r)&&!Bi(r))s=Bo;else if($(r))if(!isNaN(+r))s=Bo;else{var f=ge(r);f&&(l=f,s=Ea)}else if(po(r)){var c=k({},l);c.colorStops=z(r.colorStops,function(h){return{offset:h.offset,color:ge(h.color)}}),kw(r)?s=Qf:Bw(r)&&(s=Jf),l=c}a===0?this.valType=s:(s!==this.valType||s===sd)&&(o=!0),this.discrete=this.discrete||o;var v={time:t,value:l,rawValue:r,percent:0};return n&&(v.easing=n,v.easingFunc=X(n)?n:Gm[n]||qm(n)),i.push(v),v},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(g,p){return g.time-p.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Fo(i),u=ld(i),f=0;f<a;f++){var c=n[f],v=c.value,h=o.value;c.percent=c.time/t,s||(l&&f!==a-1?zw(v,h,i):u&&Vw(v.colorStops,h.colorStops))}if(!s&&i!==Jf&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var d=n[0].value,f=0;f<a;f++)i===Bo?n[f].additiveValue=n[f].value-d:i===Ea?n[f].additiveValue=ko([],n[f].value,d,-1):Fo(i)&&(n[f].additiveValue=i===As?ko([],n[f].value,d,-1):od([],n[f].value,d,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===Ea,f,c=this._lastFr,v=Math.min,h,d;if(s===1)h=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var g=v(c+1,s-1);for(f=g;f>=0&&!(o[f].percent<=r);f--);f=v(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=v(f-1,s-2)}d=o[f+1],h=o[f]}if(!!(h&&d)){this._lastFr=f,this._lastFrP=r;var p=d.percent-h.percent,y=p===0?1:v((r-h.percent)/p,1);d.easingFunc&&(y=d.easingFunc(y));var m=n?this._additiveValue:u?fa:t[l];if((Fo(a)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?h.rawValue:d.rawValue;else if(Fo(a))a===As?_u(m,h[i],d[i],y):Fw(m,h[i],d[i],y);else if(ld(a)){var _=h[i],x=d[i],w=a===Qf;t[l]={type:w?"linear":"radial",x:mr(_.x,x.x,y),y:mr(_.y,x.y,y),colorStops:z(_.colorStops,function(S,T){var D=x.colorStops[T];return{offset:mr(S.offset,D.offset,y),color:Ds(_u([],S.color,D.color,y))}}),global:x.global},w?(t[l].x2=mr(_.x2,x.x2,y),t[l].y2=mr(_.y2,x.y2,y)):t[l].r=mr(_.r,x.r,y)}else if(u)_u(m,h[i],d[i],y),n||(t[l]=Ds(m));else{var b=mr(h[i],d[i],y);n?this._additiveValue=b:t[l]=b}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===Bo?t[n]=t[n]+i:r===Ea?(ge(t[n],fa),ko(fa,fa,i,1),t[n]=Ds(fa)):r===As?ko(t[n],t[n],i,1):r===Qm&&od(t[n],t[n],i,1)},e}(),Hw=function(){function e(t,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&i){jr("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,mt(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new $w(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,v=c[c.length-1];u=v&&v.value,f.valType===Ea&&u&&(u=Ds(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,Cs(u),i),this._trackKeys.push(s)}l.addKeyframe(t,Cs(r[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n<r;n++)t[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)t[r[n]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(t);a&&(r=a)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var v=new Tw({life:i,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var d=r._additiveAnimators;if(d){for(var g=!1,p=0;p<d.length;p++)if(d[p]._clip){g=!0;break}g||(r._additiveAnimators=null)}for(var p=0;p<n.length;p++)n[p].step(r._target,h);var y=r._onframeCbs;if(y)for(var p=0;p<y.length;p++)y[p](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),t&&v.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(!!this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return z(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<t.length;a++){var o=n[t[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,n){if(!!t){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var a=r[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[a]=Cs(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||mt(t);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(!!a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();const yh=Hw;function Mi(){return new Date().getTime()}var Ww=function(e){R(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(!!r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=Mi()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(Xf(n),!r._paused&&r.update())}Xf(n)},t.prototype.start=function(){this._running||(this._time=Mi(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Mi(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Mi()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var i=new yh(r,n.loop);return this.addAnimator(i),i},t}(qe);const Uw=Ww;var Yw=300,xu=tt.domSupported,bu=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=z(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}}(),ud={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},fd=!1;function tc(e){var t=e.pointerType;return t==="pen"||t==="touch"}function Xw(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function Su(e){e&&(e.zrByTouch=!0)}function qw(e,t){return Se(e.dom,new Zw(e,t),!0)}function Jm(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var Zw=function(){function e(t,r){this.stopPropagation=Yt,this.stopImmediatePropagation=Yt,this.preventDefault=Yt,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),ze={mousedown:function(e){e=Se(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Se(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Se(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Se(this.dom,e);var t=e.toElement||e.relatedTarget;Jm(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){fd=!0,e=Se(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){fd||(e=Se(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Se(this.dom,e),Su(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),ze.mousemove.call(this,e),ze.mousedown.call(this,e)},touchmove:function(e){e=Se(this.dom,e),Su(e),this.handler.processGesture(e,"change"),ze.mousemove.call(this,e)},touchend:function(e){e=Se(this.dom,e),Su(e),this.handler.processGesture(e,"end"),ze.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<Yw&&ze.click.call(this,e)},pointerdown:function(e){ze.mousedown.call(this,e)},pointermove:function(e){tc(e)||ze.mousemove.call(this,e)},pointerup:function(e){ze.mouseup.call(this,e)},pointerout:function(e){tc(e)||ze.mouseout.call(this,e)}};A(["click","dblclick","contextmenu"],function(e){ze[e]=function(t){t=Se(this.dom,t),this.trigger(e,t)}});var ec={pointermove:function(e){tc(e)||ec.mousemove.call(this,e)},pointerup:function(e){ec.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function jw(e,t){var r=t.domHandlers;tt.pointerEventsSupported?A(bu.pointer,function(n){Ms(t,n,function(i){r[n].call(e,i)})}):(tt.touchEventsSupported&&A(bu.touch,function(n){Ms(t,n,function(i){r[n].call(e,i),Xw(t)})}),A(bu.mouse,function(n){Ms(t,n,function(i){i=dh(i),t.touching||r[n].call(e,i)})}))}function Kw(e,t){tt.pointerEventsSupported?A(ud.pointer,r):tt.touchEventsSupported||A(ud.mouse,r);function r(n){function i(a){a=dh(a),Jm(e,a.target)||(a=qw(e,a),t.domHandlers[n].call(e,a))}Ms(t,n,i,{capture:!0})}}function Ms(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,tw(e.domTarget,t,r,n)}function wu(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&ew(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var cd=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),Qw=function(e){R(t,e);function t(r,n){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new cd(r,ze),xu&&(i._globalHandlerScope=new cd(document,ec)),jw(i,i._localHandlerScope),i}return t.prototype.dispose=function(){wu(this._localHandlerScope),xu&&wu(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,xu&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?Kw(this,n):wu(n)}},t}(qe);const Jw=Qw;var t0=1;tt.hasGlobalWindow&&(t0=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Ys=t0,rc=.4,nc="#333",ic="#ccc",tT="#eee",hd=yo,vd=5e-5;function pn(e){return e>vd||e<-vd}var gn=[],fi=[],Tu=Dr(),Cu=Math.abs,eT=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return pn(this.rotation)||pn(this.x)||pn(this.y)||pn(this.scaleX-1)||pn(this.scaleY-1)||pn(this.skewX)||pn(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(hd(n),this.invTransform=null);return}n=n||Dr(),r?this.getLocalTransform(n):hd(n),t&&(r?Qr(n,t,n):ph(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(gn);var n=gn[0]<0?-1:1,i=gn[1]<0?-1:1,a=((gn[0]-n)*r+n)/gn[0]||0,o=((gn[1]-i)*r+i)/gn[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Dr(),ji(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(!!t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(!!this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(Qr(fi,t.invTransform,r),r=fi);var n=this.originX,i=this.originY;(n||i)&&(Tu[4]=n,Tu[5]=i,Qr(fi,r,Tu),fi[4]-=n,fi[5]-=i,r=fi),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],i=this.invTransform;return i&&ee(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&ee(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&Cu(t[0]-1)>1e-10&&Cu(t[3]-1)>1e-10?Math.sqrt(Cu(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){rT(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,c=t.y,v=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var d=n+s,g=i+l;r[4]=-d*a-v*g*o,r[5]=-g*o-h*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=v*o,u&&Zi(r,r,u),r[4]+=n+f,r[5]+=i+c,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),Qa=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function rT(e,t){for(var r=0;r<Qa.length;r++){var n=Qa[r];e[n]=t[n]}}const _o=eT;var dd={};function ye(e,t){t=t||Xn;var r=dd[t];r||(r=dd[t]=new mo(500));var n=r.get(e);return n==null&&(n=Tr.measureText(e,t).width,r.put(e,n)),n}function pd(e,t,r,n){var i=ye(e,t),a=mh(t),o=La(0,i,r),s=Ai(0,a,n),l=new it(o,s,i,a);return l}function Al(e,t,r,n){var i=((e||"")+"").split(`
19
- `),a=i.length;if(a===1)return pd(i[0],t,r,n);for(var o=new it(0,0,0,0),s=0;s<i.length;s++){var l=pd(i[s],t,r,n);s===0?o.copy(l):o.union(l)}return o}function La(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function Ai(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function mh(e){return ye("\u56FD",e)}function en(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function Xs(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,f="left",c="top";if(n instanceof Array)l+=en(n[0],r.width),u+=en(n[1],r.height),f=null,c=null;else switch(n){case"left":l-=i,u+=s,f="right",c="middle";break;case"right":l+=i+o,u+=s,c="middle";break;case"top":l+=o/2,u-=i,f="center",c="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=i,u+=s,c="middle";break;case"insideRight":l+=o-i,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",c="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,c="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",c="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=f,e.verticalAlign=c,e}var Du="__zr_normal__",Au=Qa.concat(["ignore"]),nT=lr(Qa,function(e,t){return e[t]=!0,e},{ignore:!1}),ci={},iT=new it(0,0,0,0),_h=function(){function e(t){this.id=sh(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(r),n.position!=null){var f=iT;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(ci,n,f):Xs(ci,n,f),a.x=ci.x,a.y=ci.y,o=ci.align,s=ci.verticalAlign;var c=n.origin;if(c&&n.rotation!=null){var v=void 0,h=void 0;c==="center"?(v=f.width*.5,h=f.height*.5):(v=en(c[0],f.width),h=en(c[1],f.height)),u=!0,a.originX=-a.x+v+(i?0:f.x),a.originY=-a.y+h+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var d=n.offset;d&&(a.x+=d[0],a.y+=d[1],u||(a.originX=-d[0],a.originY=-d[1]));var g=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;g&&this.canBeInsideText()?(y=n.insideFill,m=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=n.outsideFill,m=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==p.fill||m!==p.stroke||_!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(l=!0,p.fill=y,p.stroke=m,p.autoStroke=_,p.align=o,p.verticalAlign=s,r.setDefaultTextStyle(p)),r.__dirty|=pe,l&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ic:nc},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&ge(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,on(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},k(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(H(t))for(var n=t,i=mt(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==Du)){var o=i.targetName,s=o?r[o]:r;i.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,Au)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var i=0;i<n.length;i++){var a=n[i];t[a]!=null&&!(a in r)&&(r[a]=this[a])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(Du,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===Du,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(ct(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){jr("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,v=this._textGuide;return c&&c.useState(t,r,n,f),v&&v.useState(t,r,n,f),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~pe),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(t[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,t)),f||(f=this.states[u]),f&&i.push(f)}var c=i[o-1],v=!!(c&&c.hoverLayer||n);v&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(i),d=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(","),h,this._normalState,!1,!r&&!this.__inHover&&d&&d.duration>0,d);var g=this._textContent,p=this._textGuide;g&&g.useStates(t,r,v),p&&p.useStates(t,r,v),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~pe)}},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=ct(this.currentStates,t);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var i=this.currentStates.slice(),a=ct(i,t),o=ct(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,i=0;i<t.length;i++){var a=t[i];k(r,a),a.textConfig&&(n=n||{},k(n,a.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,i,a,o){var s=!(r&&i);r&&r.textConfig?(this.textConfig=k({},i?this.textConfig:n.textConfig),k(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<Au.length;f++){var c=Au[f],v=a&&nT[c];r&&r[c]!=null?v?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&n[c]!=null&&(v?(u=!0,l[c]=n[c]):this[c]=n[c])}if(!a)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],d=h.targetName;h.getLoop()||h.__changeFinalValue(d?(r||n)[d]:r||n)}u&&this._transitionState(t,l,o)},e.prototype._attachComponent=function(t){if(t.__zr&&!t.__hostTarget){if(process.env.NODE_ENV!=="production")throw new Error("Text element has been added to zrender.");return}if(t===this){if(process.env.NODE_ENV!=="production")throw new Error("Recursive component attachment.");return}var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;if(r!==t){if(r&&r!==t&&this.removeTextContent(),process.env.NODE_ENV!=="production"&&t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");t.innerTransformable=new _o,this._attachComponent(t),this._textContent=t,this.markRedraw()}},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),k(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=pe;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=t),n&&(n.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(!!this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,n){var i=t?this[t]:this;if(process.env.NODE_ENV!=="production"&&!i){jr('Property "'+t+'" is not existed in element '+this.id);return}var a=new yh(i,r,n);return t&&(a.targetName=t),this.addAnimator(a,t),a},e.prototype.addAnimator=function(t,r){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=ct(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!t||t===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},e.prototype.animateTo=function(t,r,n){Mu(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){Mu(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,i){for(var a=Mu(this,r,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=pe;var r={};function n(a,o,s){r[a+o+s]||(console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),r[a+o+s]=!0)}function i(a,o,s,l){Object.defineProperty(t,a,{get:function(){if(process.env.NODE_ENV!=="production"&&n(a,s,l),!this[o]){var f=this[o]=[];u(this,f)}return this[o]},set:function(f){process.env.NODE_ENV!=="production"&&n(a,s,l),this[s]=f[0],this[l]=f[1],this[o]=f,u(this,f)}});function u(f,c){Object.defineProperty(c,0,{get:function(){return f[s]},set:function(v){f[s]=v}}),Object.defineProperty(c,1,{get:function(){return f[l]},set:function(v){f[l]=v}})}}Object.defineProperty&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))}(),e}();ie(_h,qe);ie(_h,_o);function Mu(e,t,r,n,i){r=r||{};var a=[];e0(e,"",e,t,r,n,a,i);var o=a.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(d,g){r.during(g)});for(var v=0;v<a.length;v++){var h=a[v];f&&h.done(f),c&&h.aborted(c),r.force&&h.duration(r.duration),h.start(r.easing)}return a}function Eu(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function aT(e){return Xt(e[0])}function oT(e,t,r){if(Xt(t[r]))if(Xt(e[r])||(e[r]=[]),re(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),Eu(e[r],t[r],n))}else{var i=t[r],a=e[r],o=i.length;if(aT(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?Eu(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else Eu(a,i,o);a.length=i.length}else e[r]=t[r]}function sT(e,t){return e===t||Xt(e)&&Xt(t)&&lT(e,t)}function lT(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function e0(e,t,r,n,i,a,o,s){for(var l=mt(n),u=i.duration,f=i.delay,c=i.additive,v=i.setToFinal,h=!H(a),d=e.animators,g=[],p=0;p<l.length;p++){var y=l[p],m=n[y];if(m!=null&&r[y]!=null&&(h||a[y]))if(H(m)&&!Xt(m)&&!po(m)){if(t){s||(r[y]=m,e.updateDuringAnimation(t));continue}e0(e,y,r[y],m,i,a&&a[y],o,s)}else g.push(y);else s||(r[y]=m,e.updateDuringAnimation(t),g.push(y))}var _=g.length;if(!c&&_)for(var x=0;x<d.length;x++){var w=d[x];if(w.targetName===t){var b=w.stopTracks(g);if(b){var S=ct(d,w);d.splice(S,1)}}}if(i.force||(g=_t(g,function(C){return!sT(n[C],r[C])}),_=g.length),_>0||i.force&&!o.length){var T=void 0,D=void 0,M=void 0;if(s){D={},v&&(T={});for(var x=0;x<_;x++){var y=g[x];D[y]=r[y],v?T[y]=n[y]:r[y]=n[y]}}else if(v){M={};for(var x=0;x<_;x++){var y=g[x];M[y]=Cs(r[y]),oT(r,n,y)}}var w=new yh(r,!1,!1,c?_t(d,function(E){return E.targetName===t}):null);w.targetName=t,i.scope&&(w.scope=i.scope),v&&T&&w.whenWithKeys(0,T,g),M&&w.whenWithKeys(0,M,g),w.whenWithKeys(u==null?500:u,s?D:n,g).delay(f||0),e.addAnimator(w,t),o.push(w)}}const r0=_h;var n0=function(e){R(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){if(r&&(r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),process.env.NODE_ENV!=="production"&&r.__hostTarget))throw"This elemenet has been used as an attachment";return this},t.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=ct(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,i=this._children,a=ct(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i<r.length;i++){var a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];r.call(n,o,a)}return this},t.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.traverse(r,n)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var n=new it(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(it.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(r0);n0.prototype.type="group";const Dt=n0;/*!
18
+ ***************************************************************************** */var Gf=function(e,t){return Gf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Gf(e,t)};function R(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Gf(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var hS=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),vS=function(){function e(){this.browser=new hS,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e}(),On=new vS;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(On.wxa=!0,On.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?On.worker=!0:typeof navigator>"u"?(On.node=!0,On.svgSupported=!0):dS(navigator.userAgent,On);function dS(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}const tt=On;var ah=12,pS="sans-serif",qn=ah+"px "+pS,gS=20,yS=100,mS="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function _S(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),i=(e.charCodeAt(r)-gS)/yS;t[n]=i}return t}var xS=_S(mS),Tr={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var i=Tr.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==n&&(t=e.font=n||qn),e.measureText(r);r=r||"",n=n||qn;var a=/(\d+)px/.exec(n),o=a&&+a[1]||ah,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=xS[r[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n}};function bm(e){for(var t in Tr)e[t]&&(Tr[t]=e[t])}var Sm=lr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),wm=lr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),Zi=Object.prototype.toString,Cl=Array.prototype,bS=Cl.forEach,SS=Cl.filter,oh=Cl.slice,wS=Cl.map,Xv=function(){}.constructor,Po=Xv?Xv.prototype:null,sh="__proto__",TS=2311;function lh(){return TS++}function jr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function j(e){if(e==null||typeof e!="object")return e;var t=e,r=Zi.call(e);if(r==="[object Array]"){if(!Ii(e)){t=[];for(var n=0,i=e.length;n<i;n++)t[n]=j(e[n])}}else if(wm[r]){if(!Ii(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var n=0,i=e.length;n<i;n++)t[n]=e[n]}}}else if(!Sm[r]&&!Ii(e)&&!Bi(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==sh&&(t[o]=j(e[o]))}return t}function rt(e,t,r){if(!H(t)||!H(e))return r?j(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==sh){var i=e[n],a=t[n];H(a)&&H(i)&&!V(a)&&!V(i)&&!Bi(a)&&!Bi(i)&&!$f(a)&&!$f(i)&&!Ii(a)&&!Ii(i)?rt(i,a,r):(r||!(n in e))&&(e[n]=j(t[n]))}return e}function CS(e,t){for(var r=e[0],n=1,i=e.length;n<i;n++)r=rt(r,e[n],t);return r}function k(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==sh&&(e[r]=t[r]);return e}function Y(e,t,r){for(var n=mt(t),i=0;i<n.length;i++){var a=n[i];(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}return e}var DS=Tr.createCanvas;function ct(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r}return-1}function uh(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(e.prototype[i]=r[i]);e.prototype.constructor=e,e.superClass=t}function ie(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else Y(e,t,r)}function Xt(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function A(e,t,r){if(!!(e&&t))if(e.forEach&&e.forEach===bS)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function z(e,t,r){if(!e)return[];if(!t)return Dl(e);if(e.map&&e.map===wS)return e.map(t,r);for(var n=[],i=0,a=e.length;i<a;i++)n.push(t.call(r,e[i],i,e));return n}function lr(e,t,r,n){if(!!(e&&t)){for(var i=0,a=e.length;i<a;i++)r=t.call(n,r,e[i],i,e);return r}}function _t(e,t,r){if(!e)return[];if(!t)return Dl(e);if(e.filter&&e.filter===SS)return e.filter(t,r);for(var n=[],i=0,a=e.length;i<a;i++)t.call(r,e[i],i,e)&&n.push(e[i]);return n}function AS(e,t,r){if(!!(e&&t)){for(var n=0,i=e.length;n<i;n++)if(t.call(r,e[n],n,e))return e[n]}}function mt(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function MS(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(oh.call(arguments)))}}var ht=Po&&X(Po.bind)?Po.call.bind(Po.bind):MS;function dt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(oh.call(arguments)))}}function V(e){return Array.isArray?Array.isArray(e):Zi.call(e)==="[object Array]"}function X(e){return typeof e=="function"}function $(e){return typeof e=="string"}function Za(e){return Zi.call(e)==="[object String]"}function vt(e){return typeof e=="number"}function H(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function $f(e){return!!Sm[Zi.call(e)]}function re(e){return!!wm[Zi.call(e)]}function Bi(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function go(e){return e.colorStops!=null}function Tm(e){return e.image!=null}function fh(e){return Zi.call(e)==="[object RegExp]"}function Fi(e){return e!==e}function Cr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e.length;r<n;r++)if(e[r]!=null)return e[r]}function nt(e,t){return e!=null?e:t}function Kr(e,t,r){return e!=null?e:t!=null?t:r}function Dl(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return oh.apply(e,t)}function ch(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function J(e,t){if(!e)throw new Error(t)}function He(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Cm="__ec_primitive__";function ja(e){e[Cm]=!0}function Ii(e){return e[Cm]}var ES=function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return mt(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e}(),Dm=typeof Map=="function";function LS(){return Dm?new Map:new ES}var Am=function(){function e(t){var r=V(t);this.data=LS();var n=this;t instanceof e?t.each(i):t&&A(t,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(n,i){t.call(r,n,i)})},e.prototype.keys=function(){var t=this.data.keys();return Dm?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function Q(e){return new Am(e)}function Mm(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var i=e.length,n=0;n<t.length;n++)r[n+i]=t[n];return r}function yo(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&k(r,t),r}function hh(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function ur(e,t){return e.hasOwnProperty(t)}function Yt(){}var Em=180/Math.PI;const PS=Object.freeze(Object.defineProperty({__proto__:null,guid:lh,logError:jr,clone:j,merge:rt,mergeAll:CS,extend:k,defaults:Y,createCanvas:DS,indexOf:ct,inherits:uh,mixin:ie,isArrayLike:Xt,each:A,map:z,reduce:lr,filter:_t,find:AS,keys:mt,bind:ht,curry:dt,isArray:V,isFunction:X,isString:$,isStringSafe:Za,isNumber:vt,isObject:H,isBuiltInObject:$f,isTypedArray:re,isDom:Bi,isGradientObject:go,isImagePatternObject:Tm,isRegExp:fh,eqNaN:Fi,retrieve:Cr,retrieve2:nt,retrieve3:Kr,slice:Dl,normalizeCssArray:ch,assert:J,trim:He,setAsPrimitive:ja,isPrimitive:Ii,HashMap:Am,createHashMap:Q,concatArray:Mm,createObject:yo,disableUserSelect:hh,hasOwn:ur,noop:Yt,RADIAN_TO_DEGREE:Em},Symbol.toStringTag,{value:"Module"}));function ii(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function IS(e,t){return e[0]=t[0],e[1]=t[1],e}function Lm(e){return[e[0],e[1]]}function OS(e,t,r){return e[0]=t,e[1]=r,e}function Hf(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function NS(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e}function Pm(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function vh(e){return Math.sqrt(dh(e))}var RS=vh;function dh(e){return e[0]*e[0]+e[1]*e[1]}var kS=dh;function BS(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e}function FS(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e}function VS(e,t){return e[0]*t[0]+e[1]*t[1]}function ws(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function Im(e,t){var r=vh(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function Gs(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var $s=Gs;function Om(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Gn=Om;function zS(e,t){return e[0]=-t[0],e[1]=-t[1],e}function Fa(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e}function ee(e,t,r){var n=t[0],i=t[1];return e[0]=r[0]*n+r[2]*i+r[4],e[1]=r[1]*n+r[3]*i+r[5],e}function Ur(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function Yr(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}const GS=Object.freeze(Object.defineProperty({__proto__:null,create:ii,copy:IS,clone:Lm,set:OS,add:Hf,scaleAndAdd:NS,sub:Pm,len:vh,length:RS,lenSquare:dh,lengthSquare:kS,mul:BS,div:FS,dot:VS,scale:ws,normalize:Im,distance:Gs,dist:$s,distanceSquare:Om,distSquare:Gn,negate:zS,lerp:Fa,applyTransform:ee,min:Ur,max:Yr},Symbol.toStringTag,{value:"Module"}));var ui=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),$S=function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new ui(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,i=t.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,t),this.handler.dispatchToElement(new ui(r,t),"drag",t.event);var s=this.handler.findHover(n,i,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new ui(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new ui(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new ui(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new ui(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}();const HS=$S;var WS=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===n)return this;var l={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[t].length-1,f=a[t][u];return f&&f.callAtLast?a[t].splice(u,0,l):a[t].push(l),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(r){if(n[t]){for(var i=[],a=0,o=n[t].length;a<o;a++)n[t][a].h!==r&&i.push(n[t][a]);n[t]=i}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},e.prototype.trigger=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],l=i.length,u=0;u<l;u++){var f=i[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e}();const qe=WS;var US=Math.log(2);function Wf(e,t,r,n,i,a){var o=n+"-"+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~i)/US);return e[r][l]}for(var u=n|1<<r,f=r+1;n&1<<f;)f++;for(var c=0,v=0,h=0;v<s;v++){var d=1<<v;d&i||(c+=(h%2?-1:1)*e[r][v]*Wf(e,t-1,f,u,i|d,a),h++)}return a[o]=c,c}function qv(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],n={},i=Wf(r,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Wf(r,7,o===0?1:0,1<<o,1<<s,n)/i*t[o];return function(l,u,f){var c=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/c,l[1]=(u*a[3]+f*a[4]+a[5])/c}}}var Zv="___zrEVENTSAVED",fu=[];function YS(e,t,r,n,i){return Uf(fu,t,n,i,!0)&&Uf(e,r,fu[0],fu[1])}function Uf(e,t,r,n,i){if(t.getBoundingClientRect&&tt.domSupported&&!Nm(t)){var a=t[Zv]||(t[Zv]={}),o=XS(t,a),s=qS(o,a,i);if(s)return s(e,r,n),!0}return!1}function XS(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function qS(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=e[u].getBoundingClientRect(),c=2*u,v=f.left,h=f.top;o.push(v,h),l=l&&a&&v===a[c]&&h===a[c+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=r?qv(s,o):qv(o,s))}function Nm(e){return e.nodeName.toUpperCase()==="CANVAS"}var ZS=/([&<>"'])/g,jS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function de(e){return e==null?"":(e+"").replace(ZS,function(t,r){return jS[r]})}var KS=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,cu=[],QS=tt.browser.firefox&&+tt.browser.version.split(".")[0]<39;function Yf(e,t,r,n){return r=r||{},n?jv(e,t,r):QS&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):jv(e,t,r),r}function jv(e,t,r){if(tt.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(Nm(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(Uf(cu,e,n,i)){r.zrX=cu[0],r.zrY=cu[1];return}}r.zrX=r.zrY=0}function ph(e){return e||window.event}function Se(e,t,r){if(t=ph(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Yf(e,o,t,r)}else{Yf(e,t,t,r);var a=JS(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&KS.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function JS(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function tw(e,t,r,n){e.addEventListener(t,r,n)}function ew(e,t,r,n){e.removeEventListener(t,r,n)}var Rm=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},rw=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var i=t.touches;if(!!i){for(var a={points:[],touches:[],target:r,event:t},o=0,s=i.length;o<s;o++){var l=i[o],u=Yf(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},e.prototype._recognize=function(t){for(var r in hu)if(hu.hasOwnProperty(r)){var n=hu[r](this._track,t);if(n)return n}},e}();function Kv(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function nw(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var hu={pinch:function(e,t){var r=e.length;if(!!r){var n=(e[r-1]||{}).points,i=(e[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=Kv(n)/Kv(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=nw(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Dr(){return[1,0,0,1,0,0]}function mo(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function gh(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Qr(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function Vi(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function ji(e,t,r){var n=t[0],i=t[2],a=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(r),f=Math.cos(r);return e[0]=n*f+o*u,e[1]=-n*u+o*f,e[2]=i*f+s*u,e[3]=-i*u+f*s,e[4]=f*a+u*l,e[5]=f*l-u*a,e}function km(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e}function Ki(e,t){var r=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=r*o-a*n;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*i)*l,e[5]=(a*i-r*s)*l,e):null}function iw(e){var t=Dr();return gh(t,e),t}const aw=Object.freeze(Object.defineProperty({__proto__:null,create:Dr,identity:mo,copy:gh,mul:Qr,translate:Vi,rotate:ji,scale:km,invert:Ki,clone:iw},Symbol.toStringTag,{value:"Module"}));var ow=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(!!t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,i){t.x=r.x+n.x*i,t.y=r.y+n.y*i},e.lerp=function(t,r,n,i){var a=1-i;t.x=a*r.x+i*n.x,t.y=a*r.y+i*n.y},e}();const U=ow;var Io=Math.min,Oo=Math.max,cn=new U,hn=new U,vn=new U,dn=new U,sa=new U,la=new U,sw=function(){function e(t,r,n,i){n<0&&(t=t+n,n=-n),i<0&&(r=r+i,i=-i),this.x=t,this.y=r,this.width=n,this.height=i}return e.prototype.union=function(t){var r=Io(t.x,this.x),n=Io(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Oo(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Oo(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,i=t.height/r.height,a=Dr();return Vi(a,a,[-r.x,-r.y]),km(a,a,[n,i]),Vi(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,f=t.y,c=t.y+t.height,v=!(a<l||u<i||s<f||c<o);if(r){var h=1/0,d=0,p=Math.abs(a-l),g=Math.abs(u-i),y=Math.abs(s-f),m=Math.abs(c-o),_=Math.min(p,g),x=Math.min(y,m);a<l||u<i?_>d&&(d=_,p<g?U.set(la,-p,0):U.set(la,g,0)):_<h&&(h=_,p<g?U.set(sa,p,0):U.set(sa,-g,0)),s<f||c<o?x>d&&(d=x,y<m?U.set(la,0,-y):U.set(la,0,m)):_<h&&(h=_,y<m?U.set(sa,0,y):U.set(sa,0,-m))}return r&&U.copy(r,v?sa:la),v},e.prototype.contain=function(t,r){var n=this;return t>=n.x&&t<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=r.x*i+o,t.y=r.y*a+s,t.width=r.width*i,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}cn.x=vn.x=r.x,cn.y=dn.y=r.y,hn.x=dn.x=r.x+r.width,hn.y=vn.y=r.y+r.height,cn.transform(n),dn.transform(n),hn.transform(n),vn.transform(n),t.x=Io(cn.x,hn.x,vn.x,dn.x),t.y=Io(cn.y,hn.y,vn.y,dn.y);var l=Oo(cn.x,hn.x,vn.x,dn.x),u=Oo(cn.y,hn.y,vn.y,dn.y);t.width=l-t.x,t.height=u-t.y},e}();const it=sw;var Bm="silent";function lw(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:uw}}function uw(){Rm(this.event)}var fw=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(qe),ua=function(){function e(t,r){this.x=t,this.y=r}return e}(),cw=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],vu=new it(0,0,0,0),Fm=function(e){R(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new ua(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new fw,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new HS(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(A(cw,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=Vm(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new ua(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new ua(0,0)},t.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=lw(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new ua(r,n);if(Qv(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new it(r-u,n-u,l,l),c=a.length-1;c>=0;c--){var v=a[c];v!==i&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(vu.copy(v.getBoundingRect()),v.transform&&vu.applyTransform(v.transform),vu.intersect(f)&&s.push(v))}if(s.length)for(var h=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=h)for(var y=0;y<p;y+=d){var m=r+g*Math.cos(y),_=n+g*Math.sin(y);if(Qv(s,o,m,_,i),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new rw);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new ua;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(qe);A(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){Fm.prototype[e]=function(t){var r=t.zrX,n=t.zrY,i=Vm(this,r,n),a,o;if((e!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||$s(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function hw(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1;n.silent&&(i=!0)}var s=n.__hostTarget;n=s||n.parent}return i?Bm:!0}return!1}function Qv(e,t,r,n,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=hw(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==Bm)){t.target=o;break}}}function Vm(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const vw=Fm;var zm=32,fa=7;function dw(e){for(var t=0;e>=zm;)t|=e&1,e>>=1;return e+t}function Jv(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i<r&&n(e[i],e[i-1])<0;)i++;pw(e,t,i)}else for(;i<r&&n(e[i],e[i-1])>=0;)i++;return i-t}function pw(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function td(e,t,r,n,i){for(n===t&&n++;n<r;n++){for(var a=e[n],o=t,s=n,l;o<s;)l=o+s>>>1,i(a,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=a}}function du(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])>0){for(s=n-i;l<s&&a(e,t[r+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(e,t[r+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var f=o+(l-o>>>1);a(e,t[r+f])>0?o=f+1:l=f}return l}function pu(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])<0){for(s=i+1;l<s&&a(e,t[r+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(e,t[r+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var f=o+(l-o>>>1);a(e,t[r+f])<0?l=f:o=f+1}return l}function gw(e,t){var r=fa,n,i,a=0;e.length;var o=[];n=[],i=[];function s(h,d){n[a]=h,i[a]=d,a+=1}function l(){for(;a>1;){var h=a-2;if(h>=1&&i[h-1]<=i[h]+i[h+1]||h>=2&&i[h-2]<=i[h]+i[h-1])i[h-1]<i[h+1]&&h--;else if(i[h]>i[h+1])break;f(h)}}function u(){for(;a>1;){var h=a-2;h>0&&i[h-1]<i[h+1]&&h--,f(h)}}function f(h){var d=n[h],p=i[h],g=n[h+1],y=i[h+1];i[h]=p+y,h===a-3&&(n[h+1]=n[h+2],i[h+1]=i[h+2]),a--;var m=pu(e[g],e,d,p,0,t);d+=m,p-=m,p!==0&&(y=du(e[d+p-1],e,g,y,y-1,t),y!==0&&(p<=y?c(d,p,g,y):v(d,p,g,y)))}function c(h,d,p,g){var y=0;for(y=0;y<d;y++)o[y]=e[h+y];var m=0,_=p,x=h;if(e[x++]=e[_++],--g===0){for(y=0;y<d;y++)e[x+y]=o[m+y];return}if(d===1){for(y=0;y<g;y++)e[x+y]=e[_+y];e[x+g]=o[m];return}for(var w=r,b,S,T;;){b=0,S=0,T=!1;do if(t(e[_],o[m])<0){if(e[x++]=e[_++],S++,b=0,--g===0){T=!0;break}}else if(e[x++]=o[m++],b++,S=0,--d===1){T=!0;break}while((b|S)<w);if(T)break;do{if(b=pu(e[_],o,m,d,0,t),b!==0){for(y=0;y<b;y++)e[x+y]=o[m+y];if(x+=b,m+=b,d-=b,d<=1){T=!0;break}}if(e[x++]=e[_++],--g===0){T=!0;break}if(S=du(o[m],e,_,g,0,t),S!==0){for(y=0;y<S;y++)e[x+y]=e[_+y];if(x+=S,_+=S,g-=S,g===0){T=!0;break}}if(e[x++]=o[m++],--d===1){T=!0;break}w--}while(b>=fa||S>=fa);if(T)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),d===1){for(y=0;y<g;y++)e[x+y]=e[_+y];e[x+g]=o[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)e[x+y]=o[m+y]}}function v(h,d,p,g){var y=0;for(y=0;y<g;y++)o[y]=e[p+y];var m=h+d-1,_=g-1,x=p+g-1,w=0,b=0;if(e[x--]=e[m--],--d===0){for(w=x-(g-1),y=0;y<g;y++)e[w+y]=o[y];return}if(g===1){for(x-=d,m-=d,b=x+1,w=m+1,y=d-1;y>=0;y--)e[b+y]=e[w+y];e[x]=o[_];return}for(var S=r;;){var T=0,D=0,M=!1;do if(t(o[_],e[m])<0){if(e[x--]=e[m--],T++,D=0,--d===0){M=!0;break}}else if(e[x--]=o[_--],D++,T=0,--g===1){M=!0;break}while((T|D)<S);if(M)break;do{if(T=d-pu(o[_],e,h,d,d-1,t),T!==0){for(x-=T,m-=T,d-=T,b=x+1,w=m+1,y=T-1;y>=0;y--)e[b+y]=e[w+y];if(d===0){M=!0;break}}if(e[x--]=o[_--],--g===1){M=!0;break}if(D=g-du(e[m],o,0,g,g-1,t),D!==0){for(x-=D,_-=D,g-=D,b=x+1,w=_+1,y=0;y<D;y++)e[b+y]=o[w+y];if(g<=1){M=!0;break}}if(e[x--]=e[m--],--d===0){M=!0;break}S--}while(T>=fa||D>=fa);if(M)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),g===1){for(x-=d,m-=d,b=x+1,w=m+1,y=d-1;y>=0;y--)e[b+y]=e[w+y];e[x]=o[_]}else{if(g===0)throw new Error;for(w=x-(g-1),y=0;y<g;y++)e[w+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Ts(e,t,r,n){r||(r=0),n||(n=e.length);var i=n-r;if(!(i<2)){var a=0;if(i<zm){a=Jv(e,r,n,t),td(e,r,n,r+a,t);return}var o=gw(e,t),s=dw(i);do{if(a=Jv(e,r,n,t),a<s){var l=i;l>s&&(l=s),td(e,r,r+l,r+a,t),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var pe=1,Ea=2,Ai=4,ed=!1;function gu(){ed||(ed=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function rd(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var yw=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=rd}return e.prototype.traverse=function(t,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(r),n},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,t);n.length=this._displayListLen,Ts(n,rd)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)r=null;else if(i){r?r=r.slice():r=[];for(var a=i,o=t;a;)a.parent=o,a.updateTransform(),r.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=pe),this._updateAndAddDisplayable(u,r,n)}t.__dirty=0}else{var f=t;r&&r.length?f.__clipPaths=r:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(gu(),f.z=0),isNaN(f.z2)&&(gu(),f.z2=0),isNaN(f.zlevel)&&(gu(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,r,n);var v=t.getTextGuideLine();v&&this._updateAndAddDisplayable(v,r,n);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,r,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r<n;r++)this.delRoot(t[r]);return}var i=ct(this._roots,t);i>=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}();const mw=yw;var Gm;Gm=tt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const Xf=Gm;var Cs={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Cs.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Cs.bounceIn(e*2)*.5:Cs.bounceOut(e*2-1)*.5+.5}};const $m=Cs;var No=Math.pow,Jr=Math.sqrt,Hs=1e-8,Hm=1e-4,nd=Jr(3),Ro=1/3,er=ii(),Ce=ii(),Oi=ii();function Xr(e){return e>-Hs&&e<Hs}function Wm(e){return e>Hs||e<-Hs}function Nt(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function id(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function Ws(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-i,f=s*s-3*o*l,c=s*l-9*o*u,v=l*l-3*s*u,h=0;if(Xr(f)&&Xr(c))if(Xr(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[h++]=d)}else{var p=c*c-4*f*v;if(Xr(p)){var g=c/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(a[h++]=d),y>=0&&y<=1&&(a[h++]=y)}else if(p>0){var m=Jr(p),_=f*s+1.5*o*(-c+m),x=f*s+1.5*o*(-c-m);_<0?_=-No(-_,Ro):_=No(_,Ro),x<0?x=-No(-x,Ro):x=No(x,Ro);var d=(-s-(_+x))/(3*o);d>=0&&d<=1&&(a[h++]=d)}else{var w=(2*f*s-3*o*c)/(2*Jr(f*f*f)),b=Math.acos(w)/3,S=Jr(f),T=Math.cos(b),d=(-s-2*S*T)/(3*o),y=(-s+S*(T+nd*Math.sin(b)))/(3*o),D=(-s+S*(T-nd*Math.sin(b)))/(3*o);d>=0&&d<=1&&(a[h++]=d),y>=0&&y<=1&&(a[h++]=y),D>=0&&D<=1&&(a[h++]=D)}}return h}function Um(e,t,r,n,i){var a=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(Xr(o)){if(Wm(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Xr(f))i[0]=-a/(2*o);else if(f>0){var c=Jr(f),u=(-a+c)/(2*o),v=(-a-c)/(2*o);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function tn(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,l=(n-r)*i+r,u=(s-o)*i+o,f=(l-s)*i+s,c=(f-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=n}function Ym(e,t,r,n,i,a,o,s,l,u,f){var c,v=.005,h=1/0,d,p,g,y;er[0]=l,er[1]=u;for(var m=0;m<1;m+=.05)Ce[0]=Nt(e,r,i,o,m),Ce[1]=Nt(t,n,a,s,m),g=Gn(er,Ce),g<h&&(c=m,h=g);h=1/0;for(var _=0;_<32&&!(v<Hm);_++)d=c-v,p=c+v,Ce[0]=Nt(e,r,i,o,d),Ce[1]=Nt(t,n,a,s,d),g=Gn(Ce,er),d>=0&&g<h?(c=d,h=g):(Oi[0]=Nt(e,r,i,o,p),Oi[1]=Nt(t,n,a,s,p),y=Gn(Oi,er),p<=1&&y<h?(c=p,h=y):v*=.5);return f&&(f[0]=Nt(e,r,i,o,c),f[1]=Nt(t,n,a,s,c)),Jr(h)}function _w(e,t,r,n,i,a,o,s,l){for(var u=e,f=t,c=0,v=1/l,h=1;h<=l;h++){var d=h*v,p=Nt(e,r,i,o,d),g=Nt(t,n,a,s,d),y=p-u,m=g-f;c+=Math.sqrt(y*y+m*m),u=p,f=g}return c}function Wt(e,t,r,n){var i=1-n;return i*(i*e+2*n*t)+n*n*r}function ad(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function xw(e,t,r,n,i){var a=e-2*t+r,o=2*(t-e),s=e-n,l=0;if(Xr(a)){if(Wm(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Xr(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var c=Jr(f),u=(-o+c)/(2*a),v=(-o-c)/(2*a);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function Xm(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function Us(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function qm(e,t,r,n,i,a,o,s,l){var u,f=.005,c=1/0;er[0]=o,er[1]=s;for(var v=0;v<1;v+=.05){Ce[0]=Wt(e,r,i,v),Ce[1]=Wt(t,n,a,v);var h=Gn(er,Ce);h<c&&(u=v,c=h)}c=1/0;for(var d=0;d<32&&!(f<Hm);d++){var p=u-f,g=u+f;Ce[0]=Wt(e,r,i,p),Ce[1]=Wt(t,n,a,p);var h=Gn(Ce,er);if(p>=0&&h<c)u=p,c=h;else{Oi[0]=Wt(e,r,i,g),Oi[1]=Wt(t,n,a,g);var y=Gn(Oi,er);g<=1&&y<c?(u=g,c=y):f*=.5}}return l&&(l[0]=Wt(e,r,i,u),l[1]=Wt(t,n,a,u)),Jr(c)}function bw(e,t,r,n,i,a,o){for(var s=e,l=t,u=0,f=1/o,c=1;c<=o;c++){var v=c*f,h=Wt(e,r,i,v),d=Wt(t,n,a,v),p=h-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=h,l=d}return u}var Sw=/cubic-bezier\(([0-9,\.e ]+)\)/;function Zm(e){var t=e&&Sw.exec(e);if(t){var r=t[1].split(","),n=+He(r[0]),i=+He(r[1]),a=+He(r[2]),o=+He(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Ws(0,n,a,1,l,s)&&Nt(0,i,o,1,s[0])}}}var ww=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Yt,this.ondestroy=t.ondestroy||Yt,this.onrestart=t.onrestart||Yt,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=X(t)?t:$m[t]||Zm(t)},e}();const Tw=ww;var jm=function(){function e(t){this.value=t}return e}(),Cw=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new jm(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Dw=function(){function e(t){this._list=new Cw,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new jm(r),s.key=t,n.insertEntry(s),i[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();const _o=Dw;var od={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 Ue(e){return e=Math.round(e),e<0?0:e>255?255:e}function Aw(e){return e=Math.round(e),e<0?0:e>360?360:e}function Ka(e){return e<0?0:e>1?1:e}function yu(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Ue(parseFloat(t)/100*255):Ue(parseInt(t,10))}function $n(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Ka(parseFloat(t)/100):Ka(parseFloat(t))}function mu(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function qr(e,t,r){return e+(t-e)*r}function be(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function qf(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Km=new _o(20),ko=null;function fi(e,t){ko&&qf(ko,t),ko=Km.put(e,ko||t.slice())}function ge(e,t){if(!!e){t=t||[];var r=Km.get(e);if(r)return qf(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in od)return qf(t,od[n]),fi(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){be(t,0,0,0,1);return}return be(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),fi(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){be(t,0,0,0,1);return}return be(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),fi(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?be(t,+u[0],+u[1],+u[2],1):be(t,0,0,0,1);f=$n(u.pop());case"rgb":if(u.length>=3)return be(t,yu(u[0]),yu(u[1]),yu(u[2]),u.length===3?f:$n(u[3])),fi(e,t),t;be(t,0,0,0,1);return;case"hsla":if(u.length!==4){be(t,0,0,0,1);return}return u[3]=$n(u[3]),Zf(u,t),fi(e,t),t;case"hsl":if(u.length!==3){be(t,0,0,0,1);return}return Zf(u,t),fi(e,t),t;default:return}}be(t,0,0,0,1)}}function Zf(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=$n(e[1]),i=$n(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],be(t,Ue(mu(o,a,r+1/3)*255),Ue(mu(o,a,r)*255),Ue(mu(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Mw(e){if(!!e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var f=((a-t)/6+o/2)/o,c=((a-r)/6+o/2)/o,v=((a-n)/6+o/2)/o;t===a?l=v-c:r===a?l=1/3+f-v:n===a&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return e[3]!=null&&h.push(e[3]),h}}function jf(e,t){var r=ge(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return on(r,r.length===4?"rgba":"rgb")}}function Ew(e){var t=ge(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function Qm(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=t[i],s=t[a],l=n-i;return r[0]=Ue(qr(o[0],s[0],l)),r[1]=Ue(qr(o[1],s[1],l)),r[2]=Ue(qr(o[2],s[2],l)),r[3]=Ka(qr(o[3],s[3],l)),r}}var Lw=Qm;function yh(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=ge(t[i]),s=ge(t[a]),l=n-i,u=on([Ue(qr(o[0],s[0],l)),Ue(qr(o[1],s[1],l)),Ue(qr(o[2],s[2],l)),Ka(qr(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}var Pw=yh;function Iw(e,t,r,n){var i=ge(e);if(e)return i=Mw(i),t!=null&&(i[0]=Aw(t)),r!=null&&(i[1]=$n(r)),n!=null&&(i[2]=$n(n)),on(Zf(i),"rgba")}function Ow(e,t){var r=ge(e);if(r&&t!=null)return r[3]=Ka(t),on(r,"rgba")}function on(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function Qa(e,t){var r=ge(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}function Nw(){return on([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}const Rw=Object.freeze(Object.defineProperty({__proto__:null,parse:ge,lift:jf,toHex:Ew,fastLerp:Qm,fastMapToColor:Lw,lerp:yh,mapToColor:Pw,modifyHSL:Iw,modifyAlpha:Ow,stringify:on,lum:Qa,random:Nw},Symbol.toStringTag,{value:"Module"}));function kw(e){return e.type==="linear"}function Bw(e){return e.type==="radial"}(function(){return tt.hasGlobalWindow&&X(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return process.env.NODE_ENV!=="production"&&jr("Base64 isn't natively supported in the current environment."),null}})();var Kf=Array.prototype.slice;function mr(e,t,r){return(t-e)*r+e}function _u(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=mr(t[a],r[a],n);return e}function Fw(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=mr(t[o][s],r[o][s],n)}return e}function Bo(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+r[a]*n;return e}function sd(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+r[o][s]*n}return e}function Vw(e,t){for(var r=e.length,n=t.length,i=r>n?t:e,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function zw(e,t,r){var n=e,i=t;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(r===1?i[l]:Kf.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=i[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=i[l][f])}}function Ds(e){if(Xt(e)){var t=e.length;if(Xt(e[0])){for(var r=[],n=0;n<t;n++)r.push(Kf.call(e[n]));return r}return Kf.call(e)}return e}function As(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function Gw(e){return Xt(e&&e[0])?2:1}var Fo=0,Ms=1,Jm=2,La=3,Qf=4,Jf=5,ld=6;function ud(e){return e===Qf||e===Jf}function Vo(e){return e===Ms||e===Jm}var ca=[0,0,0,0],$w=function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=ld,l=r;if(Xt(r)){var u=Gw(r);s=u,(u===1&&!vt(r[0])||u===2&&!vt(r[0][0]))&&(o=!0)}else if(vt(r)&&!Fi(r))s=Fo;else if($(r))if(!isNaN(+r))s=Fo;else{var f=ge(r);f&&(l=f,s=La)}else if(go(r)){var c=k({},l);c.colorStops=z(r.colorStops,function(h){return{offset:h.offset,color:ge(h.color)}}),kw(r)?s=Qf:Bw(r)&&(s=Jf),l=c}a===0?this.valType=s:(s!==this.valType||s===ld)&&(o=!0),this.discrete=this.discrete||o;var v={time:t,value:l,rawValue:r,percent:0};return n&&(v.easing=n,v.easingFunc=X(n)?n:$m[n]||Zm(n)),i.push(v),v},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Vo(i),u=ud(i),f=0;f<a;f++){var c=n[f],v=c.value,h=o.value;c.percent=c.time/t,s||(l&&f!==a-1?zw(v,h,i):u&&Vw(v.colorStops,h.colorStops))}if(!s&&i!==Jf&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var d=n[0].value,f=0;f<a;f++)i===Fo?n[f].additiveValue=n[f].value-d:i===La?n[f].additiveValue=Bo([],n[f].value,d,-1):Vo(i)&&(n[f].additiveValue=i===Ms?Bo([],n[f].value,d,-1):sd([],n[f].value,d,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===La,f,c=this._lastFr,v=Math.min,h,d;if(s===1)h=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var p=v(c+1,s-1);for(f=p;f>=0&&!(o[f].percent<=r);f--);f=v(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=v(f-1,s-2)}d=o[f+1],h=o[f]}if(!!(h&&d)){this._lastFr=f,this._lastFrP=r;var g=d.percent-h.percent,y=g===0?1:v((r-h.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=n?this._additiveValue:u?ca:t[l];if((Vo(a)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?h.rawValue:d.rawValue;else if(Vo(a))a===Ms?_u(m,h[i],d[i],y):Fw(m,h[i],d[i],y);else if(ud(a)){var _=h[i],x=d[i],w=a===Qf;t[l]={type:w?"linear":"radial",x:mr(_.x,x.x,y),y:mr(_.y,x.y,y),colorStops:z(_.colorStops,function(S,T){var D=x.colorStops[T];return{offset:mr(S.offset,D.offset,y),color:As(_u([],S.color,D.color,y))}}),global:x.global},w?(t[l].x2=mr(_.x2,x.x2,y),t[l].y2=mr(_.y2,x.y2,y)):t[l].r=mr(_.r,x.r,y)}else if(u)_u(m,h[i],d[i],y),n||(t[l]=As(m));else{var b=mr(h[i],d[i],y);n?this._additiveValue=b:t[l]=b}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===Fo?t[n]=t[n]+i:r===La?(ge(t[n],ca),Bo(ca,ca,i,1),t[n]=As(ca)):r===Ms?Bo(t[n],t[n],i,1):r===Jm&&sd(t[n],t[n],i,1)},e}(),Hw=function(){function e(t,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&i){jr("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,mt(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new $w(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,v=c[c.length-1];u=v&&v.value,f.valType===La&&u&&(u=As(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,Ds(u),i),this._trackKeys.push(s)}l.addKeyframe(t,Ds(r[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n<r;n++)t[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)t[r[n]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(t);a&&(r=a)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var v=new Tw({life:i,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var d=r._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(r._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(r._target,h);var y=r._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),t&&v.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(!!this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return z(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<t.length;a++){var o=n[t[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,n){if(!!t){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var a=r[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[a]=Ds(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||mt(t);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(!!a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();const mh=Hw;function Ei(){return new Date().getTime()}var Ww=function(e){R(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(!!r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=Ei()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(Xf(n),!r._paused&&r.update())}Xf(n)},t.prototype.start=function(){this._running||(this._time=Ei(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Ei(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Ei()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var i=new mh(r,n.loop);return this.addAnimator(i),i},t}(qe);const Uw=Ww;var Yw=300,xu=tt.domSupported,bu=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=z(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}}(),fd={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},cd=!1;function tc(e){var t=e.pointerType;return t==="pen"||t==="touch"}function Xw(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function Su(e){e&&(e.zrByTouch=!0)}function qw(e,t){return Se(e.dom,new Zw(e,t),!0)}function t0(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var Zw=function(){function e(t,r){this.stopPropagation=Yt,this.stopImmediatePropagation=Yt,this.preventDefault=Yt,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),ze={mousedown:function(e){e=Se(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Se(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Se(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Se(this.dom,e);var t=e.toElement||e.relatedTarget;t0(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){cd=!0,e=Se(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){cd||(e=Se(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Se(this.dom,e),Su(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),ze.mousemove.call(this,e),ze.mousedown.call(this,e)},touchmove:function(e){e=Se(this.dom,e),Su(e),this.handler.processGesture(e,"change"),ze.mousemove.call(this,e)},touchend:function(e){e=Se(this.dom,e),Su(e),this.handler.processGesture(e,"end"),ze.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<Yw&&ze.click.call(this,e)},pointerdown:function(e){ze.mousedown.call(this,e)},pointermove:function(e){tc(e)||ze.mousemove.call(this,e)},pointerup:function(e){ze.mouseup.call(this,e)},pointerout:function(e){tc(e)||ze.mouseout.call(this,e)}};A(["click","dblclick","contextmenu"],function(e){ze[e]=function(t){t=Se(this.dom,t),this.trigger(e,t)}});var ec={pointermove:function(e){tc(e)||ec.mousemove.call(this,e)},pointerup:function(e){ec.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function jw(e,t){var r=t.domHandlers;tt.pointerEventsSupported?A(bu.pointer,function(n){Es(t,n,function(i){r[n].call(e,i)})}):(tt.touchEventsSupported&&A(bu.touch,function(n){Es(t,n,function(i){r[n].call(e,i),Xw(t)})}),A(bu.mouse,function(n){Es(t,n,function(i){i=ph(i),t.touching||r[n].call(e,i)})}))}function Kw(e,t){tt.pointerEventsSupported?A(fd.pointer,r):tt.touchEventsSupported||A(fd.mouse,r);function r(n){function i(a){a=ph(a),t0(e,a.target)||(a=qw(e,a),t.domHandlers[n].call(e,a))}Es(t,n,i,{capture:!0})}}function Es(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,tw(e.domTarget,t,r,n)}function wu(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&ew(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var hd=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),Qw=function(e){R(t,e);function t(r,n){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new hd(r,ze),xu&&(i._globalHandlerScope=new hd(document,ec)),jw(i,i._localHandlerScope),i}return t.prototype.dispose=function(){wu(this._localHandlerScope),xu&&wu(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,xu&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?Kw(this,n):wu(n)}},t}(qe);const Jw=Qw;var e0=1;tt.hasGlobalWindow&&(e0=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Ys=e0,rc=.4,nc="#333",ic="#ccc",tT="#eee",vd=mo,dd=5e-5;function pn(e){return e>dd||e<-dd}var gn=[],ci=[],Tu=Dr(),Cu=Math.abs,eT=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return pn(this.rotation)||pn(this.x)||pn(this.y)||pn(this.scaleX-1)||pn(this.scaleY-1)||pn(this.skewX)||pn(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(vd(n),this.invTransform=null);return}n=n||Dr(),r?this.getLocalTransform(n):vd(n),t&&(r?Qr(n,t,n):gh(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(gn);var n=gn[0]<0?-1:1,i=gn[1]<0?-1:1,a=((gn[0]-n)*r+n)/gn[0]||0,o=((gn[1]-i)*r+i)/gn[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Dr(),Ki(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(!!t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(!!this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(Qr(ci,t.invTransform,r),r=ci);var n=this.originX,i=this.originY;(n||i)&&(Tu[4]=n,Tu[5]=i,Qr(ci,r,Tu),ci[4]-=n,ci[5]-=i,r=ci),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],i=this.invTransform;return i&&ee(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&ee(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&Cu(t[0]-1)>1e-10&&Cu(t[3]-1)>1e-10?Math.sqrt(Cu(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){rT(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,c=t.y,v=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var d=n+s,p=i+l;r[4]=-d*a-v*p*o,r[5]=-p*o-h*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=v*o,u&&ji(r,r,u),r[4]+=n+f,r[5]+=i+c,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),Ja=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function rT(e,t){for(var r=0;r<Ja.length;r++){var n=Ja[r];e[n]=t[n]}}const xo=eT;var pd={};function ye(e,t){t=t||qn;var r=pd[t];r||(r=pd[t]=new _o(500));var n=r.get(e);return n==null&&(n=Tr.measureText(e,t).width,r.put(e,n)),n}function gd(e,t,r,n){var i=ye(e,t),a=_h(t),o=Pa(0,i,r),s=Mi(0,a,n),l=new it(o,s,i,a);return l}function Al(e,t,r,n){var i=((e||"")+"").split(`
19
+ `),a=i.length;if(a===1)return gd(i[0],t,r,n);for(var o=new it(0,0,0,0),s=0;s<i.length;s++){var l=gd(i[s],t,r,n);s===0?o.copy(l):o.union(l)}return o}function Pa(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function Mi(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function _h(e){return ye("\u56FD",e)}function en(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function Xs(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,f="left",c="top";if(n instanceof Array)l+=en(n[0],r.width),u+=en(n[1],r.height),f=null,c=null;else switch(n){case"left":l-=i,u+=s,f="right",c="middle";break;case"right":l+=i+o,u+=s,c="middle";break;case"top":l+=o/2,u-=i,f="center",c="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=i,u+=s,c="middle";break;case"insideRight":l+=o-i,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",c="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,c="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",c="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=f,e.verticalAlign=c,e}var Du="__zr_normal__",Au=Ja.concat(["ignore"]),nT=lr(Ja,function(e,t){return e[t]=!0,e},{ignore:!1}),hi={},iT=new it(0,0,0,0),xh=function(){function e(t){this.id=lh(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(r),n.position!=null){var f=iT;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(hi,n,f):Xs(hi,n,f),a.x=hi.x,a.y=hi.y,o=hi.align,s=hi.verticalAlign;var c=n.origin;if(c&&n.rotation!=null){var v=void 0,h=void 0;c==="center"?(v=f.width*.5,h=f.height*.5):(v=en(c[0],f.width),h=en(c[1],f.height)),u=!0,a.originX=-a.x+v+(i?0:f.x),a.originY=-a.y+h+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var d=n.offset;d&&(a.x+=d[0],a.y+=d[1],u||(a.originX=-d[0],a.originY=-d[1]));var p=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;p&&this.canBeInsideText()?(y=n.insideFill,m=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=n.outsideFill,m=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=pe,l&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ic:nc},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&ge(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,on(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},k(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(H(t))for(var n=t,i=mt(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==Du)){var o=i.targetName,s=o?r[o]:r;i.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,Au)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var i=0;i<n.length;i++){var a=n[i];t[a]!=null&&!(a in r)&&(r[a]=this[a])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(Du,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===Du,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(ct(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){jr("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,v=this._textGuide;return c&&c.useState(t,r,n,f),v&&v.useState(t,r,n,f),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~pe),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(t[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,t)),f||(f=this.states[u]),f&&i.push(f)}var c=i[o-1],v=!!(c&&c.hoverLayer||n);v&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(i),d=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(","),h,this._normalState,!1,!r&&!this.__inHover&&d&&d.duration>0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,r,v),g&&g.useStates(t,r,v),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~pe)}},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=ct(this.currentStates,t);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var i=this.currentStates.slice(),a=ct(i,t),o=ct(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,i=0;i<t.length;i++){var a=t[i];k(r,a),a.textConfig&&(n=n||{},k(n,a.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,i,a,o){var s=!(r&&i);r&&r.textConfig?(this.textConfig=k({},i?this.textConfig:n.textConfig),k(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<Au.length;f++){var c=Au[f],v=a&&nT[c];r&&r[c]!=null?v?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&n[c]!=null&&(v?(u=!0,l[c]=n[c]):this[c]=n[c])}if(!a)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],d=h.targetName;h.getLoop()||h.__changeFinalValue(d?(r||n)[d]:r||n)}u&&this._transitionState(t,l,o)},e.prototype._attachComponent=function(t){if(t.__zr&&!t.__hostTarget){if(process.env.NODE_ENV!=="production")throw new Error("Text element has been added to zrender.");return}if(t===this){if(process.env.NODE_ENV!=="production")throw new Error("Recursive component attachment.");return}var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;if(r!==t){if(r&&r!==t&&this.removeTextContent(),process.env.NODE_ENV!=="production"&&t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");t.innerTransformable=new xo,this._attachComponent(t),this._textContent=t,this.markRedraw()}},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),k(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=pe;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=t),n&&(n.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(!!this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,n){var i=t?this[t]:this;if(process.env.NODE_ENV!=="production"&&!i){jr('Property "'+t+'" is not existed in element '+this.id);return}var a=new mh(i,r,n);return t&&(a.targetName=t),this.addAnimator(a,t),a},e.prototype.addAnimator=function(t,r){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=ct(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!t||t===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},e.prototype.animateTo=function(t,r,n){Mu(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){Mu(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,i){for(var a=Mu(this,r,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=pe;var r={};function n(a,o,s){r[a+o+s]||(console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),r[a+o+s]=!0)}function i(a,o,s,l){Object.defineProperty(t,a,{get:function(){if(process.env.NODE_ENV!=="production"&&n(a,s,l),!this[o]){var f=this[o]=[];u(this,f)}return this[o]},set:function(f){process.env.NODE_ENV!=="production"&&n(a,s,l),this[s]=f[0],this[l]=f[1],this[o]=f,u(this,f)}});function u(f,c){Object.defineProperty(c,0,{get:function(){return f[s]},set:function(v){f[s]=v}}),Object.defineProperty(c,1,{get:function(){return f[l]},set:function(v){f[l]=v}})}}Object.defineProperty&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))}(),e}();ie(xh,qe);ie(xh,xo);function Mu(e,t,r,n,i){r=r||{};var a=[];r0(e,"",e,t,r,n,a,i);var o=a.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(d,p){r.during(p)});for(var v=0;v<a.length;v++){var h=a[v];f&&h.done(f),c&&h.aborted(c),r.force&&h.duration(r.duration),h.start(r.easing)}return a}function Eu(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function aT(e){return Xt(e[0])}function oT(e,t,r){if(Xt(t[r]))if(Xt(e[r])||(e[r]=[]),re(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),Eu(e[r],t[r],n))}else{var i=t[r],a=e[r],o=i.length;if(aT(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?Eu(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else Eu(a,i,o);a.length=i.length}else e[r]=t[r]}function sT(e,t){return e===t||Xt(e)&&Xt(t)&&lT(e,t)}function lT(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function r0(e,t,r,n,i,a,o,s){for(var l=mt(n),u=i.duration,f=i.delay,c=i.additive,v=i.setToFinal,h=!H(a),d=e.animators,p=[],g=0;g<l.length;g++){var y=l[g],m=n[y];if(m!=null&&r[y]!=null&&(h||a[y]))if(H(m)&&!Xt(m)&&!go(m)){if(t){s||(r[y]=m,e.updateDuringAnimation(t));continue}r0(e,y,r[y],m,i,a&&a[y],o,s)}else p.push(y);else s||(r[y]=m,e.updateDuringAnimation(t),p.push(y))}var _=p.length;if(!c&&_)for(var x=0;x<d.length;x++){var w=d[x];if(w.targetName===t){var b=w.stopTracks(p);if(b){var S=ct(d,w);d.splice(S,1)}}}if(i.force||(p=_t(p,function(C){return!sT(n[C],r[C])}),_=p.length),_>0||i.force&&!o.length){var T=void 0,D=void 0,M=void 0;if(s){D={},v&&(T={});for(var x=0;x<_;x++){var y=p[x];D[y]=r[y],v?T[y]=n[y]:r[y]=n[y]}}else if(v){M={};for(var x=0;x<_;x++){var y=p[x];M[y]=Ds(r[y]),oT(r,n,y)}}var w=new mh(r,!1,!1,c?_t(d,function(E){return E.targetName===t}):null);w.targetName=t,i.scope&&(w.scope=i.scope),v&&T&&w.whenWithKeys(0,T,p),M&&w.whenWithKeys(0,M,p),w.whenWithKeys(u==null?500:u,s?D:n,p).delay(f||0),e.addAnimator(w,t),o.push(w)}}const n0=xh;var i0=function(e){R(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){if(r&&(r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),process.env.NODE_ENV!=="production"&&r.__hostTarget))throw"This elemenet has been used as an attachment";return this},t.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=ct(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,i=this._children,a=ct(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i<r.length;i++){var a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];r.call(n,o,a)}return this},t.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.traverse(r,n)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var n=new it(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(it.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(n0);i0.prototype.type="group";const Dt=i0;/*!
20
20
  * ZRender, a high performance 2d drawing library.
21
21
  *
22
22
  * Copyright (c) 2013, Baidu Inc.
@@ -24,37 +24,37 @@ PERFORMANCE OF THIS SOFTWARE.
24
24
  *
25
25
  * LICENSE
26
26
  * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
27
- */var Pa={},kn={};function uT(e){delete kn[e]}function fT(e){if(!e)return!1;if(typeof e=="string")return Ka(e,1)<rc;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,i=0;i<n;i++)r+=Ka(t[i].color,1);return r/=n,r<rc}return!1}var cT=function(){function e(t,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=t;var a=new mw,o=n.renderer||"canvas";if(Pa[o]||(o=mt(Pa)[0]),process.env.NODE_ENV!=="production"&&!Pa[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Pa[o](r,a,n,t),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!tt.node&&!tt.worker&&!l?new Jw(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,c=f==null||f==="auto"?tt.touchEventsSupported:!!f,v=44,h;c&&(h=nt(n.pointerSize,v)),this.handler=new vw(a,s,u,s.root,h),this.animation=new Uw({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(t){!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh()},e.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=fT(t)},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},e.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},e.prototype.flush=function(){this._flush(!1)},e.prototype._flush=function(t){var r,n=Mi();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=Mi();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},e.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this.handler.off(t,r)},e.prototype.trigger=function(t,r){this.handler.trigger(t,r)},e.prototype.clear=function(){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof Dt&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},e.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,uT(this.id)},e}();function ac(e,t){var r=new cT(sh(),e,t);return kn[r.id]=r,r}function hT(e){e.dispose()}function vT(){for(var e in kn)kn.hasOwnProperty(e)&&kn[e].dispose();kn={}}function dT(e){return kn[e]}function i0(e,t){Pa[e]=t}var pT="5.4.4";const gT=Object.freeze(Object.defineProperty({__proto__:null,init:ac,dispose:hT,disposeAll:vT,getInstance:dT,registerPainter:i0,version:pT},Symbol.toStringTag,{value:"Module"}));var gd=1e-4,a0=20;function yT(e){return e.replace(/^\s+|\s+$/g,"")}function Vi(e,t,r,n){var i=t[0],a=t[1],o=r[0],s=r[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/l*u+o}function K(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return $(e)?yT(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Ct(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),a0),e=(+e).toFixed(t),r?e:+e}function o0(e){return e.sort(function(t,r){return t-r}),e}function nr(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return qs(e)}function qs(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function s0(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function mT(e,t,r){if(!e[t])return 0;var n=l0(e,r);return n[t]||0}function l0(e,t){var r=lr(e,function(h,d){return h+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=z(e,function(h){return(isNaN(h)?0:h)/r*n*100}),a=n*100,o=z(i,function(h){return Math.floor(h)}),s=lr(o,function(h,d){return h+d},0),l=z(i,function(h,d){return h-o[d]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,v=l.length;c<v;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return z(o,function(h){return h/n})}function _T(e,t){var r=Math.max(nr(e),nr(t)),n=e+t;return r>a0?n:Ct(n,r)}var xT=9007199254740991;function xh(e){var t=Math.PI*2;return(e%t+t)%t}function Ja(e){return e>-gd&&e<gd}var bT=/^(?:(\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 Le(e){if(e instanceof Date)return e;if($(e)){var t=bT.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function u0(e){return Math.pow(10,xo(e))}function xo(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function bh(e,t){var r=xo(e),n=Math.pow(10,r),i=e/n,a;return t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,e=a*n,r>=-20?+e.toFixed(r<0?-r:0):e}function ST(e,t){var r=(e.length-1)*t+1,n=Math.floor(r),i=+e[n-1],a=r-n;return a?i+a*(e[n]-i):i}function wT(e){e.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,r=1,n=0;n<e.length;){for(var i=e[n].interval,a=e[n].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-r),t=i[o],r=a[o];i[0]===i[1]&&a[0]*a[1]!==1?e.splice(n,1):n++}return e;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function Ar(e){var t=parseFloat(e);return t==e&&(t!==0||!$(e)||e.indexOf("x")<=0)?t:NaN}function Sh(e){return!isNaN(Ar(e))}function f0(){return Math.round(Math.random()*9)}function c0(e,t){return t===0?e:c0(t,e%t)}function yd(e,t){return e==null?t:t==null?e:e*t/c0(e,t)}var TT="[ECharts] ",md={},CT=typeof console<"u"&&console.warn&&console.log;function Ml(e,t,r){if(CT){if(r){if(md[t])return;md[t]=!0}console[e](TT+t)}}function DT(e,t){Ml("log",e,t)}function kt(e,t){Ml("warn",e,t)}function qt(e,t){Ml("error",e,t)}function Ye(e){process.env.NODE_ENV!=="production"&&Ml("warn","DEPRECATED: "+e,!0)}function It(e,t,r){process.env.NODE_ENV!=="production"&&Ye((r?"["+r+"]":"")+(e+" is deprecated, use "+t+" instead."))}function he(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r="";if(process.env.NODE_ENV!=="production"){var n=function(i){return i===void 0?"undefined":i===1/0?"Infinity":i===-1/0?"-Infinity":Bi(i)?"NaN":i instanceof Date?"Date("+i.toISOString()+")":X(i)?"function () { ... }":uh(i)?i+"":null};r=z(e,function(i){if($(i))return i;var a=n(i);if(a!=null)return a;if(typeof JSON<"u"&&JSON.stringify)try{return JSON.stringify(i,function(o,s){var l=n(s);return l==null?s:l})}catch{return"?"}else return"?"}).join(" ")}return r}function lt(e){throw new Error(e)}function _d(e,t,r){return(t-e)*r+e}var h0="series\0",AT="\0_ec_\0";function St(e){return e instanceof Array?e:e==null?[]:[e]}function Zs(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var xd=["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 bo(e){return H(e)&&!V(e)&&!(e instanceof Date)?e.value:e}function MT(e){return H(e)&&!(e instanceof Array)}function ET(e,t,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=Q();A(t,function(l,u){if(!H(l)){t[u]=null;return}process.env.NODE_ENV!=="production"&&(l.id!=null&&!Sd(l.id)&&bd(l.id),l.name!=null&&!Sd(l.name)&&bd(l.name))});var s=LT(e,o,r);return(n||i)&&PT(s,e,o,t),n&&IT(s,t),n||i?OT(s,t,i):a&&NT(s,t),RT(s),s}function LT(e,t,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),n.push({existing:r==="replaceMerge"||zi(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function PT(e,t,r,n){A(n,function(i,a){if(!(!i||i.id==null)){var o=Fa(i.id),s=r.get(o);if(s!=null){var l=e[s];J(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=t[s],n[a]=null}}})}function IT(e,t){A(t,function(r,n){if(!(!r||r.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||r.id==null)&&!zi(r)&&!zi(a)&&v0("name",a,r)){e[i].newOption=r,t[n]=null;return}}})}function OT(e,t,r){A(t,function(n){if(!!n){for(var i,a=0;(i=e[a])&&(i.newOption||zi(i.existing)||i.existing&&n.id!=null&&!v0("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function NT(e,t){A(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function RT(e){var t=Q();A(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),A(e,function(r){var n=r.newOption;J(!n||n.id==null||!t.get(n.id)||t.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),A(e,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(!!H(a)){if(o.name=a.name!=null?Fa(a.name):i?i.name:h0+n,i)o.id=Fa(i.id);else if(a.id!=null)o.id=Fa(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,r)}})}function v0(e,t,r){var n=or(t[e],null),i=or(r[e],null);return n!=null&&i!=null&&n===i}function Fa(e){if(process.env.NODE_ENV!=="production"&&e==null)throw new Error;return or(e,"")}function or(e,t){return e==null?t:$(e)?e:vt(e)||qa(e)?e+"":t}function bd(e){process.env.NODE_ENV!=="production"&&kt("`"+e+"` is invalid id or name. Must be a string or number.")}function Sd(e){return qa(e)||Sh(e)}function wh(e){var t=e.name;return!!(t&&t.indexOf(h0))}function zi(e){return e&&e.id!=null&&Fa(e.id).indexOf(AT)===0}function kT(e,t,r){A(e,function(n){var i=n.newOption;H(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=BT(t,i,n.existing,r))})}function BT(e,t,r,n){var i=t.type?t.type:r?r.subType:n.determineSubType(e,t);return i}function qn(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return V(t.dataIndex)?z(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return V(t.name)?z(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function xt(){var e="__ec_inner_"+FT++;return function(t){return t[e]||(t[e]={})}}var FT=f0();function Lu(e,t,r){var n=Th(t,r),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,f){var c=So(e,f,u,{useDefault:l===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function Th(e,t){var r;if($(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var i=Q(),a={},o=!1;return A(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||t&&t.includeMainTypes&&ct(t.includeMainTypes,f)<0)){o=o||!!f;var v=i.get(f)||i.set(f,{});v[c]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var fe={useDefault:!0,enableAll:!1,enableNone:!1};function So(e,t,r,n){n=n||fe;var i=r.index,a=r.id,o=r.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=e.getComponent(t))?[l]:[],s}return i==="none"||i===!1?(J(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(J(n.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s)}function d0(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function VT(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function zT(e){return e==="auto"?tt.domSupported?"html":"richText":e||"html"}function p0(e,t,r,n,i){var a=t==null||t==="auto";if(n==null)return n;if(vt(n)){var o=_d(r||0,n,i);return Ct(o,a?Math.max(nr(r||0),nr(n)):t)}else{if($(n))return i<1?r:n;for(var s=[],l=r,u=n,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var v=e.getDimensionInfo(c);if(v&&v.type==="ordinal")s[c]=(i<1&&l?l:u)[c];else{var h=l&&l[c]?l[c]:0,d=u[c],o=_d(h,d,i);s[c]=Ct(o,a?Math.max(nr(h),nr(d)):t)}}return s}}var GT=".",yn="___EC__COMPONENT__CONTAINER___",g0="___EC__EXTENDED_CLASS___";function ir(e){var t={main:"",sub:""};if(e){var r=e.split(GT);t.main=r[0]||"",t.sub=r[1]||""}return t}function $T(e){J(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function HT(e){return!!(e&&e[g0])}function Ch(e,t){e.$constructor=e,e.extend=function(r){process.env.NODE_ENV!=="production"&&A(t,function(a){r[a]||console.warn("Method `"+a+"` should be implemented"+(r.type?" in "+r.type:"")+".")});var n=this,i;return WT(n)?i=function(a){R(o,a);function o(){return a.apply(this,arguments)||this}return o}(n):(i=function(){(r.$constructor||n).apply(this,arguments)},lh(i,this)),k(i.prototype,r),i[g0]=!0,i.extend=this.extend,i.superCall=XT,i.superApply=qT,i.superClass=n,i}}function WT(e){return X(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function y0(e,t){e.extend=t.extend}var UT=Math.round(Math.random()*10);function YT(e){var t=["__\0is_clz",UT++].join("_");e.prototype[t]=!0,process.env.NODE_ENV!=="production"&&J(!e.isInstance,'The method "is" can not be defined.'),e.isInstance=function(r){return!!(r&&r[t])}}function XT(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[t].apply(e,r)}function qT(e,t,r){return this.superClass.prototype[t].apply(e,r)}function El(e){var t={};e.registerClass=function(n){var i=n.type||n.prototype.type;if(i){$T(i),n.prototype.type=i;var a=ir(i);if(!a.sub)process.env.NODE_ENV!=="production"&&t[a.main]&&console.warn(a.main+" exists."),t[a.main]=n;else if(a.sub!==yn){var o=r(a);o[a.sub]=n}}return n},e.getClass=function(n,i,a){var o=t[n];if(o&&o[yn]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},e.getClassesByMainType=function(n){var i=ir(n),a=[],o=t[i.main];return o&&o[yn]?A(o,function(s,l){l!==yn&&a.push(s)}):a.push(o),a},e.hasClass=function(n){var i=ir(n);return!!t[i.main]},e.getAllClassMainTypes=function(){var n=[];return A(t,function(i,a){n.push(a)}),n},e.hasSubTypes=function(n){var i=ir(n),a=t[i.main];return a&&a[yn]};function r(n){var i=t[n.main];return(!i||!i[yn])&&(i=t[n.main]={},i[yn]=!0),i}}function Gi(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(n,i,a){for(var o={},s=0;s<e.length;s++){var l=e[s][1];if(!(i&&ct(i,l)>=0||a&&ct(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var ZT=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],jT=Gi(ZT),KT=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return jT(this,t,r)},e}(),oc=new mo(50);function QT(e){if(typeof e=="string"){var t=oc.get(e);return t&&t.image}else return e}function m0(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=oc.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!Ll(t)&&a.pending.push(o)):(t=Tr.loadImage(e,wd,wd),t.__zrImageSrc=e,oc.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function wd(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function Ll(e){return e&&e.width&&e.height}var Pu=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function _0(e,t,r,n,i){if(!t)return"";var a=(e+"").split(`
28
- `);i=x0(t,r,n,i);for(var o=0,s=a.length;o<s;o++)a[o]=b0(a[o],i);return a.join(`
29
- `)}function x0(e,t,r,n){n=n||{};var i=k({},n);i.font=t,r=nt(r,"..."),i.maxIterations=nt(n.maxIterations,2);var a=i.minChar=nt(n.minChar,0);i.cnCharWidth=ye("\u56FD",t);var o=i.ascCharWidth=ye("a",t);i.placeholder=nt(n.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<a&&s>=o;l++)s-=o;var u=ye(r,t);return u>s&&(r="",u=0),s=e-u,i.ellipsis=r,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function b0(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=ye(e,n);if(a<=r)return e;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?JT(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=ye(e,n)}return e===""&&(e=t.placeholder),e}function JT(e,t,r,n){for(var i=0,a=0,o=e.length;a<o&&i<t;a++){var s=e.charCodeAt(a);i+=0<=s&&s<=127?r:n}return a}function tC(e,t){e!=null&&(e+="");var r=t.overflow,n=t.padding,i=t.font,a=r==="truncate",o=mh(i),s=nt(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",f=t.width,c;f!=null&&(r==="break"||r==="breakAll")?c=e?S0(e,t.font,f,r==="breakAll",0).lines:[]:c=e?e.split(`
30
- `):[];var v=c.length*s,h=nt(t.height,v);if(v>h&&u){var d=Math.floor(h/s);c=c.slice(0,d)}if(e&&a&&f!=null)for(var g=x0(f,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),p=0;p<c.length;p++)c[p]=b0(c[p],g);for(var y=h,m=0,p=0;p<c.length;p++)m=Math.max(ye(c[p],i),m);f==null&&(f=m);var _=m;return n&&(y+=n[0]+n[2],_+=n[1]+n[3],f+=n[1]+n[3]),l&&(_=f),{lines:c,height:h,outerWidth:_,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:m,contentHeight:v,width:f}}var eC=function(){function e(){}return e}(),Td=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),rC=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return e}();function nC(e,t){var r=new rC;if(e!=null&&(e+=""),!e)return r;for(var n=t.width,i=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:a==="breakAll"}:null,s=Pu.lastIndex=0,l;(l=Pu.exec(e))!=null;){var u=l.index;u>s&&Iu(r,e.substring(s,u),t,o),Iu(r,l[2],t,o,l[1]),s=Pu.lastIndex}s<e.length&&Iu(r,e.substring(s,e.length),t,o);var f=[],c=0,v=0,h=t.padding,d=a==="truncate",g=t.lineOverflow==="truncate";function p(N,B,G){N.width=B,N.lineHeight=G,c+=G,v=Math.max(v,B)}t:for(var y=0;y<r.lines.length;y++){for(var m=r.lines[y],_=0,x=0,w=0;w<m.tokens.length;w++){var b=m.tokens[w],S=b.styleName&&t.rich[b.styleName]||{},T=b.textPadding=S.padding,D=T?T[1]+T[3]:0,M=b.font=S.font||t.font;b.contentHeight=mh(M);var C=nt(S.height,b.contentHeight);if(b.innerHeight=C,T&&(C+=T[0]+T[2]),b.height=C,b.lineHeight=Kr(S.lineHeight,t.lineHeight,C),b.align=S&&S.align||t.align,b.verticalAlign=S&&S.verticalAlign||"middle",g&&i!=null&&c+b.lineHeight>i){w>0?(m.tokens=m.tokens.slice(0,w),p(m,x,_),r.lines=r.lines.slice(0,y+1)):r.lines=r.lines.slice(0,y);break t}var E=S.width,L=E==null||E==="auto";if(typeof E=="string"&&E.charAt(E.length-1)==="%")b.percentWidth=E,f.push(b),b.contentWidth=ye(b.text,M);else{if(L){var P=S.backgroundColor,I=P&&P.image;I&&(I=QT(I),Ll(I)&&(b.width=Math.max(b.width,I.width*C/I.height)))}var O=d&&n!=null?n-x:null;O!=null&&O<b.width?!L||O<D?(b.text="",b.width=b.contentWidth=0):(b.text=_0(b.text,O-D,M,t.ellipsis,{minChar:t.truncateMinChar}),b.width=b.contentWidth=ye(b.text,M)):b.contentWidth=ye(b.text,M)}b.width+=D,x+=b.width,S&&(_=Math.max(_,b.lineHeight))}p(m,x,_)}r.outerWidth=r.width=nt(n,v),r.outerHeight=r.height=nt(i,c),r.contentHeight=c,r.contentWidth=v,h&&(r.outerWidth+=h[1]+h[3],r.outerHeight+=h[0]+h[2]);for(var y=0;y<f.length;y++){var b=f[y],F=b.percentWidth;b.width=parseInt(F,10)/100*r.width}return r}function Iu(e,t,r,n,i){var a=t==="",o=i&&r.rich[i]||{},s=e.lines,l=o.font||r.font,u=!1,f,c;if(n){var v=o.padding,h=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var d=en(o.width,n.width)+h;s.length>0&&d+n.accumWidth>n.width&&(f=t.split(`
31
- `),u=!0),n.accumWidth=d}else{var g=S0(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+h,c=g.linesWidths,f=g.lines}}else f=t.split(`
32
- `);for(var p=0;p<f.length;p++){var y=f[p],m=new eC;if(m.styleName=i,m.text=y,m.isLineHolder=!y&&!a,typeof o.width=="number"?m.width=o.width:m.width=c?c[p]:ye(y,l),!p&&!u){var _=(s[s.length-1]||(s[0]=new Td)).tokens,x=_.length;x===1&&_[0].isLineHolder?_[0]=m:(y||!x||a)&&_.push(m)}else s.push(new Td([m]))}}function iC(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var aC=lr(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function oC(e){return iC(e)?!!aC[e]:!0}function S0(e,t,r,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,c=0;c<e.length;c++){var v=e.charAt(c);if(v===`
33
- `){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var h=ye(v,t),d=n?!1:!oC(v);if(a.length?f+h>r:i+f+h>r){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=v,u+=h,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=v,f=h)):d?(a.push(l),o.push(u),l=v,u=h):(a.push(v),o.push(h));continue}f+=h,d?(l+=v,u+=h):(l&&(s+=l,l="",u=0),s+=v)}return!a.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}var sc="__zr_style_"+Math.round(Math.random()*10),$n={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Pl={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};$n[sc]=!0;var Cd=["z","z2","invisible"],sC=["invisible"],lC=function(e){R(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=mt(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):e.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&uC(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(r,n){return this.rectContain(r,n)},t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new it(0,0,0,0)),n?it.applyTransform(r,i,n):r.copy(i),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new it(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,n){r!=="style"?e.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:k(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Ma,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Ma)},t.prototype.styleUpdated=function(){this.__dirty&=~Ma},t.prototype.createStyle=function(r){return go($n,r)},t.prototype.useStyle=function(r){r[sc]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[sc]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,Cd)},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.style?o?a?u=n.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,n.style)):l&&(u=i.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var c=mt(f),v=0;v<c.length;v++){var h=c[v];h in u&&(u[h]=u[h],this.style[h]=f[h])}for(var d=mt(u),v=0;v<d.length;v++){var h=d[v];this.style[h]=this.style[h]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var g=this.__inHover?sC:Cd,v=0;v<g.length;v++){var h=g[v];n&&n[h]!=null?this[h]=n[h]:l&&i[h]!=null&&(this[h]=i[h])}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},t.prototype._mergeStyle=function(r,n){return k(r,n),r},t.prototype.getAnimationStyleProps=function(){return Pl},t.initDefaultProps=function(){var r=t.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=pe|Ma}(),t}(r0),Ou=new it(0,0,0,0),Nu=new it(0,0,0,0);function uC(e,t,r){return Ou.copy(e.getBoundingRect()),e.transform&&Ou.applyTransform(e.transform),Nu.width=t,Nu.height=r,!Ou.intersect(Nu)}const Ki=lC;var se=Math.min,le=Math.max,Ru=Math.sin,ku=Math.cos,mn=Math.PI*2,Vo=ni(),zo=ni(),Go=ni();function w0(e,t,r){if(e.length!==0){for(var n=e[0],i=n[0],a=n[0],o=n[1],s=n[1],l=1;l<e.length;l++)n=e[l],i=se(i,n[0]),a=le(a,n[0]),o=se(o,n[1]),s=le(s,n[1]);t[0]=i,t[1]=o,r[0]=a,r[1]=s}}function Dd(e,t,r,n,i,a){i[0]=se(e,r),i[1]=se(t,n),a[0]=le(e,r),a[1]=le(t,n)}var Ad=[],Md=[];function fC(e,t,r,n,i,a,o,s,l,u){var f=Wm,c=Nt,v=f(e,r,i,o,Ad);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<v;h++){var d=c(e,r,i,o,Ad[h]);l[0]=se(d,l[0]),u[0]=le(d,u[0])}v=f(t,n,a,s,Md);for(var h=0;h<v;h++){var g=c(t,n,a,s,Md[h]);l[1]=se(g,l[1]),u[1]=le(g,u[1])}l[0]=se(e,l[0]),u[0]=le(e,u[0]),l[0]=se(o,l[0]),u[0]=le(o,u[0]),l[1]=se(t,l[1]),u[1]=le(t,u[1]),l[1]=se(s,l[1]),u[1]=le(s,u[1])}function cC(e,t,r,n,i,a,o,s){var l=Ym,u=Wt,f=le(se(l(e,r,i),1),0),c=le(se(l(t,n,a),1),0),v=u(e,r,i,f),h=u(t,n,a,c);o[0]=se(e,i,v),o[1]=se(t,a,h),s[0]=le(e,i,v),s[1]=le(t,a,h)}function hC(e,t,r,n,i,a,o,s,l){var u=Ur,f=Yr,c=Math.abs(i-a);if(c%mn<1e-4&&c>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(Vo[0]=ku(i)*r+e,Vo[1]=Ru(i)*n+t,zo[0]=ku(a)*r+e,zo[1]=Ru(a)*n+t,u(s,Vo,zo),f(l,Vo,zo),i=i%mn,i<0&&(i=i+mn),a=a%mn,a<0&&(a=a+mn),i>a&&!o?a+=mn:i<a&&o&&(i+=mn),o){var v=a;a=i,i=v}for(var h=0;h<a;h+=Math.PI/2)h>i&&(Go[0]=ku(h)*r+e,Go[1]=Ru(h)*n+t,u(s,Go,s),f(l,Go,l))}var pt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},_n=[],xn=[],je=[],Nr=[],Ke=[],Qe=[],Bu=Math.min,Fu=Math.max,bn=Math.cos,Sn=Math.sin,pr=Math.abs,lc=Math.PI,$r=lc*2,Vu=typeof Float32Array<"u",ca=[];function zu(e){var t=Math.round(e/lc*1e8)/1e8;return t%2*lc}function vC(e,t){var r=zu(e[0]);r<0&&(r+=$r);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=$r?i=r+$r:t&&r-i>=$r?i=r-$r:!t&&r>i?i=r+($r-zu(r-i)):t&&r<i&&(i=r-($r-zu(i-r))),e[0]=r,e[1]=i}var dC=function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,r,n){n=n||0,n>0&&(this._ux=pr(n/Ys/t)||0,this._uy=pr(n/Ys/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(pt.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=pr(t-this._xi),i=pr(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(pt.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){return this._drawPendingPt(),this.addData(pt.C,t,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,i,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,i){return this._drawPendingPt(),this.addData(pt.Q,t,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,r,n,i,a,o){this._drawPendingPt(),ca[0]=i,ca[1]=a,vC(ca,o),i=ca[0],a=ca[1];var s=a-i;return this.addData(pt.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=bn(a)*n+t,this._yi=Sn(a)*n+r,this},e.prototype.arcTo=function(t,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,a),this},e.prototype.rect=function(t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,i),this.addData(pt.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(pt.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&Vu&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=t[n];this._len=r},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var r=t.length,n=0,i=this._len,a=0;a<r;a++)n+=t[a].len();Vu&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var a=0;a<r;a++)for(var o=t[a].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},e.prototype.addData=function(t,r,n,i,a,o,s,l,u){if(!!this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(!!this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Vu&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){je[0]=je[1]=Ke[0]=Ke[1]=Number.MAX_VALUE,Nr[0]=Nr[1]=Qe[0]=Qe[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(r=t[o],n=t[o+1],i=r,a=n),s){case pt.M:r=i=t[o++],n=a=t[o++],Ke[0]=i,Ke[1]=a,Qe[0]=i,Qe[1]=a;break;case pt.L:Dd(r,n,t[o],t[o+1],Ke,Qe),r=t[o++],n=t[o++];break;case pt.C:fC(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Ke,Qe),r=t[o++],n=t[o++];break;case pt.Q:cC(r,n,t[o++],t[o++],t[o],t[o+1],Ke,Qe),r=t[o++],n=t[o++];break;case pt.A:var u=t[o++],f=t[o++],c=t[o++],v=t[o++],h=t[o++],d=t[o++]+h;o+=1;var g=!t[o++];l&&(i=bn(h)*c+u,a=Sn(h)*v+f),hC(u,f,c,v,h,d,g,Ke,Qe),r=bn(d)*c+u,n=Sn(d)*v+f;break;case pt.R:i=r=t[o++],a=n=t[o++];var p=t[o++],y=t[o++];Dd(i,a,i+p,a+y,Ke,Qe);break;case pt.Z:r=i,n=a;break}Ur(je,je,Ke),Yr(Nr,Nr,Qe)}return o===0&&(je[0]=je[1]=Nr[0]=Nr[1]=0),new it(je[0],je[1],Nr[0]-je[0],Nr[1]-je[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,v=0;v<r;){var h=t[v++],d=v===1;d&&(a=t[v],o=t[v+1],s=a,l=o);var g=-1;switch(h){case pt.M:a=s=t[v++],o=l=t[v++];break;case pt.L:{var p=t[v++],y=t[v++],m=p-a,_=y-o;(pr(m)>n||pr(_)>i||v===r-1)&&(g=Math.sqrt(m*m+_*_),a=p,o=y);break}case pt.C:{var x=t[v++],w=t[v++],p=t[v++],y=t[v++],b=t[v++],S=t[v++];g=_w(a,o,x,w,p,y,b,S,10),a=b,o=S;break}case pt.Q:{var x=t[v++],w=t[v++],p=t[v++],y=t[v++];g=bw(a,o,x,w,p,y,10),a=p,o=y;break}case pt.A:var T=t[v++],D=t[v++],M=t[v++],C=t[v++],E=t[v++],L=t[v++],P=L+E;v+=1,t[v++],d&&(s=bn(E)*M+T,l=Sn(E)*C+D),g=Fu(M,C)*Bu($r,Math.abs(L)),a=bn(P)*M+T,o=Sn(P)*C+D;break;case pt.R:{s=a=t[v++],l=o=t[v++];var I=t[v++],O=t[v++];g=I*2+O*2;break}case pt.Z:{var m=s-a,_=l-o;g=Math.sqrt(m*m+_*_),a=s,o=l;break}}g>=0&&(u[c++]=g,f+=g)}return this._pathLen=f,f},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,c,v,h=r<1,d,g,p=0,y=0,m,_=0,x,w;if(h&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,g=this._pathLen,m=r*g,!m))return;t:for(var b=0;b<o;){var S=n[b++],T=b===1;switch(T&&(u=n[b],f=n[b+1],s=u,l=f),S!==pt.L&&_>0&&(t.lineTo(x,w),_=0),S){case pt.M:s=u=n[b++],l=f=n[b++],t.moveTo(u,f);break;case pt.L:{c=n[b++],v=n[b++];var D=pr(c-u),M=pr(v-f);if(D>i||M>a){if(h){var C=d[y++];if(p+C>m){var E=(m-p)/C;t.lineTo(u*(1-E)+c*E,f*(1-E)+v*E);break t}p+=C}t.lineTo(c,v),u=c,f=v,_=0}else{var L=D*D+M*M;L>_&&(x=c,w=v,_=L)}break}case pt.C:{var P=n[b++],I=n[b++],O=n[b++],F=n[b++],N=n[b++],B=n[b++];if(h){var C=d[y++];if(p+C>m){var E=(m-p)/C;tn(u,P,O,N,E,_n),tn(f,I,F,B,E,xn),t.bezierCurveTo(_n[1],xn[1],_n[2],xn[2],_n[3],xn[3]);break t}p+=C}t.bezierCurveTo(P,I,O,F,N,B),u=N,f=B;break}case pt.Q:{var P=n[b++],I=n[b++],O=n[b++],F=n[b++];if(h){var C=d[y++];if(p+C>m){var E=(m-p)/C;Us(u,P,O,E,_n),Us(f,I,F,E,xn),t.quadraticCurveTo(_n[1],xn[1],_n[2],xn[2]);break t}p+=C}t.quadraticCurveTo(P,I,O,F),u=O,f=F;break}case pt.A:var G=n[b++],W=n[b++],Z=n[b++],et=n[b++],ft=n[b++],At=n[b++],yt=n[b++],zt=!n[b++],Gt=Z>et?Z:et,Pt=pr(Z-et)>.001,bt=ft+At,q=!1;if(h){var C=d[y++];p+C>m&&(bt=ft+At*(m-p)/C,q=!0),p+=C}if(Pt&&t.ellipse?t.ellipse(G,W,Z,et,yt,ft,bt,zt):t.arc(G,W,Gt,ft,bt,zt),q)break t;T&&(s=bn(ft)*Z+G,l=Sn(ft)*et+W),u=bn(bt)*Z+G,f=Sn(bt)*et+W;break;case pt.R:s=u=n[b],l=f=n[b+1],c=n[b++],v=n[b++];var at=n[b++],Ze=n[b++];if(h){var C=d[y++];if(p+C>m){var Rt=m-p;t.moveTo(c,v),t.lineTo(c+Bu(Rt,at),v),Rt-=at,Rt>0&&t.lineTo(c+at,v+Bu(Rt,Ze)),Rt-=Ze,Rt>0&&t.lineTo(c+Fu(at-Rt,0),v+Ze),Rt-=at,Rt>0&&t.lineTo(c,v+Fu(Ze-Rt,0));break t}p+=C}t.rect(c,v,at,Ze);break;case pt.Z:if(h){var C=d[y++];if(p+C>m){var E=(m-p)/C;t.lineTo(u*(1-E)+s*E,f*(1-E)+l*E);break t}p+=C}t.closePath(),u=s,f=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=pt,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();const Mr=dC;function hi(e,t,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=e;if(o>t+s&&o>n+s||o<t-s&&o<n-s||a>e+s&&a>r+s||a<e-s&&a<r-s)return!1;if(e!==r)l=(t-n)/(e-r),u=(e*n-r*t)/(e-r);else return Math.abs(a-e)<=s/2;var f=l*a-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function pC(e,t,r,n,i,a,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>t+c&&f>n+c&&f>a+c&&f>s+c||f<t-c&&f<n-c&&f<a-c&&f<s-c||u>e+c&&u>r+c&&u>i+c&&u>o+c||u<e-c&&u<r-c&&u<i-c&&u<o-c)return!1;var v=Um(e,t,r,n,i,a,o,s,u,f,null);return v<=c/2}function gC(e,t,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>a+u||l<t-u&&l<n-u&&l<a-u||s>e+u&&s>r+u&&s>i+u||s<e-u&&s<r-u&&s<i-u)return!1;var f=Xm(e,t,r,n,i,a,s,l,null);return f<=u/2}var Ed=Math.PI*2;function xr(e){return e%=Ed,e<0&&(e+=Ed),e}var ha=Math.PI*2;function yC(e,t,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=e,l-=t;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(n-i)%ha<1e-4)return!0;if(a){var c=n;n=xr(i),i=xr(c)}else n=xr(n),i=xr(i);n>i&&(i+=ha);var v=Math.atan2(l,s);return v<0&&(v+=ha),v>=n&&v<=i||v+ha>=n&&v+ha<=i}function _r(e,t,r,n,i,a){if(a>t&&a>n||a<t&&a<n||n===t)return 0;var o=(a-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var l=o*(r-e)+e;return l===i?1/0:l>i?s:0}var Rr=Mr.CMD,wn=Math.PI*2,mC=1e-4;function _C(e,t){return Math.abs(e-t)<mC}var Kt=[-1,-1,-1],Te=[-1,-1];function xC(){var e=Te[0];Te[0]=Te[1],Te[1]=e}function bC(e,t,r,n,i,a,o,s,l,u){if(u>t&&u>n&&u>a&&u>s||u<t&&u<n&&u<a&&u<s)return 0;var f=Ws(t,n,a,s,u,Kt);if(f===0)return 0;for(var c=0,v=-1,h=void 0,d=void 0,g=0;g<f;g++){var p=Kt[g],y=p===0||p===1?.5:1,m=Nt(e,r,i,o,p);m<l||(v<0&&(v=Wm(t,n,a,s,Te),Te[1]<Te[0]&&v>1&&xC(),h=Nt(t,n,a,s,Te[0]),v>1&&(d=Nt(t,n,a,s,Te[1]))),v===2?p<Te[0]?c+=h<t?y:-y:p<Te[1]?c+=d<h?y:-y:c+=s<d?y:-y:p<Te[0]?c+=h<t?y:-y:c+=s<h?y:-y)}return c}function SC(e,t,r,n,i,a,o,s){if(s>t&&s>n&&s>a||s<t&&s<n&&s<a)return 0;var l=xw(t,n,a,s,Kt);if(l===0)return 0;var u=Ym(t,n,a);if(u>=0&&u<=1){for(var f=0,c=Wt(t,n,a,u),v=0;v<l;v++){var h=Kt[v]===0||Kt[v]===1?.5:1,d=Wt(e,r,i,Kt[v]);d<o||(Kt[v]<u?f+=c<t?h:-h:f+=a<c?h:-h)}return f}else{var h=Kt[0]===0||Kt[0]===1?.5:1,d=Wt(e,r,i,Kt[0]);return d<o?0:a<t?h:-h}}function wC(e,t,r,n,i,a,o,s){if(s-=t,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);Kt[0]=-l,Kt[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=wn-1e-4){n=0,i=wn;var f=a?1:-1;return o>=Kt[0]+e&&o<=Kt[1]+e?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=wn,i+=wn);for(var v=0,h=0;h<2;h++){var d=Kt[h];if(d+e>o){var g=Math.atan2(s,d),f=a?1:-1;g<0&&(g=wn+g),(g>=n&&g<=i||g+wn>=n&&g+wn<=i)&&(g>Math.PI/2&&g<Math.PI*1.5&&(f=-f),v+=f)}}return v}function T0(e,t,r,n,i){for(var a=e.data,o=e.len(),s=0,l=0,u=0,f=0,c=0,v,h,d=0;d<o;){var g=a[d++],p=d===1;switch(g===Rr.M&&d>1&&(r||(s+=_r(l,u,f,c,n,i))),p&&(l=a[d],u=a[d+1],f=l,c=u),g){case Rr.M:f=a[d++],c=a[d++],l=f,u=c;break;case Rr.L:if(r){if(hi(l,u,a[d],a[d+1],t,n,i))return!0}else s+=_r(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Rr.C:if(r){if(pC(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=bC(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Rr.Q:if(r){if(gC(l,u,a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=SC(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Rr.A:var y=a[d++],m=a[d++],_=a[d++],x=a[d++],w=a[d++],b=a[d++];d+=1;var S=!!(1-a[d++]);v=Math.cos(w)*_+y,h=Math.sin(w)*x+m,p?(f=v,c=h):s+=_r(l,u,v,h,n,i);var T=(n-y)*x/_+y;if(r){if(yC(y,m,x,w,w+b,S,t,T,i))return!0}else s+=wC(y,m,x,w,w+b,S,T,i);l=Math.cos(w+b)*_+y,u=Math.sin(w+b)*x+m;break;case Rr.R:f=l=a[d++],c=u=a[d++];var D=a[d++],M=a[d++];if(v=f+D,h=c+M,r){if(hi(f,c,v,c,t,n,i)||hi(v,c,v,h,t,n,i)||hi(v,h,f,h,t,n,i)||hi(f,h,f,c,t,n,i))return!0}else s+=_r(v,c,v,h,n,i),s+=_r(f,h,f,c,n,i);break;case Rr.Z:if(r){if(hi(l,u,f,c,t,n,i))return!0}else s+=_r(l,u,f,c,n,i);l=f,u=c;break}}return!r&&!_C(u,c)&&(s+=_r(l,u,f,c,n,i)||0),s!==0}function TC(e,t,r){return T0(e,0,!1,t,r)}function CC(e,t,r,n){return T0(e,t,!0,r,n)}var C0=Y({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},$n),DC={style:Y({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Pl.style)},Gu=Qa.concat(["invisible","culling","z","z2","zlevel","parent"]),AC=function(e){R(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<Gu.length;++s)i[Gu[s]]=this[Gu[s]];i.__dirty|=pe}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=mt(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];o==="style"?this.style?k(this.style,s):this.useStyle(s):o==="shape"?k(this.shape,s):e.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if($(r)){var n=Ka(r,0);return n>.5?nc:n>.2?tT:ic}else if(r)return ic}return nc},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if($(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Ka(r,0)<rc;if(a===o)return n}},t.prototype.buildPath=function(r,n,i){},t.prototype.pathUpdated=function(){this.__dirty&=~Di},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new Mr(!1)},t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Di)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f==null?4:f)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),CC(s,l/u,r,n)))return!0}if(this.hasFill())return TC(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Di,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:k(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Di)},t.prototype.createStyle=function(r){return go(C0,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=k({},this.shape))},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=k({},i.shape),k(u,n.shape)):(u=k({},a?this.shape:i.shape),k(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=k({},this.shape);for(var f={},c=mt(u),v=0;v<c.length;v++){var h=c[v];typeof u[h]=="object"?this.shape[h]=u[h]:f[h]=u[h]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},t.prototype.getAnimationStyleProps=function(){return DC},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(a){R(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return j(r.style)},o.prototype.getDefaultShape=function(){return j(r.shape)},o}(t);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},t.initDefaultProps=function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=pe|Ma|Di}(),t}(Ki);const ot=AC;var MC=Y({strokeFirst:!0,font:Xn,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},C0),D0=function(e){R(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return n!=null&&n!=="none"&&r.lineWidth>0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return go(MC,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var i=Al(n,r.font,r.textAlign,r.textBaseline);if(i.x+=r.x||0,i.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(Ki);D0.prototype.type="tspan";const uc=D0;var EC=Y({x:0,y:0},$n),LC={style:Y({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Pl.style)};function PC(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var A0=function(e){R(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return go(EC,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=PC(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return LC},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new it(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Ki);A0.prototype.type="image";const sn=A0;function IC(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,f;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>i&&(c=s+l,s*=i/c,l*=i/c),u+f>i&&(c=u+f,u*=i/c,f*=i/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),e.moveTo(r+s,n),e.lineTo(r+i-l,n),l!==0&&e.arc(r+i-l,n+l,l,-Math.PI/2,0),e.lineTo(r+i,n+a-u),u!==0&&e.arc(r+i-u,n+a-u,u,0,Math.PI/2),e.lineTo(r+f,n+a),f!==0&&e.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var Ei=Math.round;function M0(e,t,r){if(!!t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=n,e.x2=i,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(Ei(n*2)===Ei(i*2)&&(e.x1=e.x2=Bn(n,s,!0)),Ei(a*2)===Ei(o*2)&&(e.y1=e.y2=Bn(a,s,!0))),e}}function E0(e,t,r){if(!!t){var n=t.x,i=t.y,a=t.width,o=t.height;e.x=n,e.y=i,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=Bn(n,s,!0),e.y=Bn(i,s,!0),e.width=Math.max(Bn(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Bn(i+o,s,!1)-e.y,o===0?0:1)),e}}function Bn(e,t,r){if(!t)return e;var n=Ei(e*2);return(n+Ei(t))%2===0?n/2:(n+(r?1:-1))/2}var OC=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),NC={},L0=function(e){R(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new OC},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=E0(NC,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?IC(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(ot);L0.prototype.type="rect";const wt=L0;var Ld={fill:"#000"},Pd=2,RC={style:Y({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Pl.style)},P0=function(e){R(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Ld,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,zC(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new it(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||Ld},t.prototype.setTextContent=function(r){if(process.env.NODE_ENV!=="production")throw new Error("Can't attach text on another text")},t.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return k(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},t.prototype._mergeRich=function(r,n){for(var i=mt(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},k(r[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return RC},t.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||Xn,i=r.padding,a=Fd(r),o=tC(a,r),s=$u(r),l=!!r.backgroundColor,u=o.outerHeight,f=o.outerWidth,c=o.contentWidth,v=o.lines,h=o.lineHeight,d=this._defaultStyle,g=r.x||0,p=r.y||0,y=r.align||d.align||"left",m=r.verticalAlign||d.verticalAlign||"top",_=g,x=Ai(p,o.contentHeight,m);if(s||i){var w=La(g,f,y),b=Ai(p,u,m);s&&this._renderBackground(r,r,w,b,f,u)}x+=h/2,i&&(_=Bd(g,y,i),m==="top"?x+=i[0]:m==="bottom"&&(x-=i[2]));for(var S=0,T=!1,D=kd("fill"in r?r.fill:(T=!0,d.fill)),M=Rd("stroke"in r?r.stroke:!l&&(!d.autoStroke||T)?(S=Pd,d.stroke):null),C=r.textShadowBlur>0,E=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),L=o.calculatedLineHeight,P=0;P<v.length;P++){var I=this._getOrCreateChild(uc),O=I.createStyle();I.useStyle(O),O.text=v[P],O.x=_,O.y=x,y&&(O.textAlign=y),O.textBaseline="middle",O.opacity=r.opacity,O.strokeFirst=!0,C&&(O.shadowBlur=r.textShadowBlur||0,O.shadowColor=r.textShadowColor||"transparent",O.shadowOffsetX=r.textShadowOffsetX||0,O.shadowOffsetY=r.textShadowOffsetY||0),O.stroke=M,O.fill=D,M&&(O.lineWidth=r.lineWidth||S,O.lineDash=r.lineDash,O.lineDashOffset=r.lineDashOffset||0),O.font=n,Od(O,r),x+=h,E&&I.setBoundingRect(new it(La(O.x,r.width,O.textAlign),Ai(O.y,L,O.textBaseline),c,L))}},t.prototype._updateRichTexts=function(){var r=this.style,n=Fd(r),i=nC(n,r),a=i.width,o=i.outerWidth,s=i.outerHeight,l=r.padding,u=r.x||0,f=r.y||0,c=this._defaultStyle,v=r.align||c.align,h=r.verticalAlign||c.verticalAlign,d=La(u,o,v),g=Ai(f,s,h),p=d,y=g;l&&(p+=l[3],y+=l[0]);var m=p+a;$u(r)&&this._renderBackground(r,r,d,g,o,s);for(var _=!!r.backgroundColor,x=0;x<i.lines.length;x++){for(var w=i.lines[x],b=w.tokens,S=b.length,T=w.lineHeight,D=w.width,M=0,C=p,E=m,L=S-1,P=void 0;M<S&&(P=b[M],!P.align||P.align==="left");)this._placeToken(P,r,T,y,C,"left",_),D-=P.width,C+=P.width,M++;for(;L>=0&&(P=b[L],P.align==="right");)this._placeToken(P,r,T,y,E,"right",_),D-=P.width,E-=P.width,L--;for(C+=(a-(C-p)-(m-E)-D)/2;M<=L;)P=b[M],this._placeToken(P,r,T,y,C+P.width/2,"center",_),C+=P.width,M++;y+=T}},t.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=a+i/2;f==="top"?c=a+r.height/2:f==="bottom"&&(c=a+i-r.height/2);var v=!r.isLineHolder&&$u(u);v&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var h=!!u.backgroundColor,d=r.textPadding;d&&(o=Bd(o,s,d),c-=r.height/2-d[0]-r.innerHeight/2);var g=this._getOrCreateChild(uc),p=g.createStyle();g.useStyle(p);var y=this._defaultStyle,m=!1,_=0,x=kd("fill"in u?u.fill:"fill"in n?n.fill:(m=!0,y.fill)),w=Rd("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!y.autoStroke||m)?(_=Pd,y.stroke):null),b=u.textShadowBlur>0||n.textShadowBlur>0;p.text=r.text,p.x=o,p.y=c,b&&(p.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,p.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=r.font||Xn,p.opacity=Kr(u.opacity,n.opacity,1),Od(p,u),w&&(p.lineWidth=Kr(u.lineWidth,n.lineWidth,_),p.lineDash=nt(u.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=w),x&&(p.fill=x);var S=r.contentWidth,T=r.contentHeight;g.setBoundingRect(new it(La(p.x,S,p.textAlign),Ai(p.y,T,p.textBaseline),S,T))},t.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,v=l&&!c,h=r.borderRadius,d=this,g,p;if(v||r.lineHeight||u&&f){g=this._getOrCreateChild(wt),g.useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=i,y.y=a,y.width=o,y.height=s,y.r=h,g.dirtyShape()}if(v){var m=g.style;m.fill=l||null,m.fillOpacity=nt(r.fillOpacity,1)}else if(c){p=this._getOrCreateChild(sn),p.onload=function(){d.dirtyStyle()};var _=p.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var m=g.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=nt(r.strokeOpacity,1),m.lineDash=r.borderDash,m.lineDashOffset=r.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var x=(g||p).style;x.shadowBlur=r.shadowBlur||0,x.shadowColor=r.shadowColor||"transparent",x.shadowOffsetX=r.shadowOffsetX||0,x.shadowOffsetY=r.shadowOffsetY||0,x.opacity=Kr(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return VC(r)&&(n=[r.fontStyle,r.fontWeight,FC(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&He(n)||r.textFont||r.font},t}(Ki),kC={left:!0,right:1,center:1},BC={top:1,bottom:1,middle:1},Id=["fontStyle","fontWeight","fontSize","fontFamily"];function FC(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?ih+"px":e+"px"}function Od(e,t){for(var r=0;r<Id.length;r++){var n=Id[r],i=t[n];i!=null&&(e[n]=i)}}function VC(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function zC(e){return Nd(e),A(e.rich,Nd),e}function Nd(e){if(e){e.font=P0.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||kC[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||BC[r]?r:"top";var n=e.padding;n&&(e.padding=fh(e.padding))}}function Rd(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function kd(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function Bd(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function Fd(e){var t=e.text;return t!=null&&(t+=""),t}function $u(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}const Ot=P0;var ut=xt(),GC=function(e,t,r,n){if(n){var i=ut(n);i.dataIndex=r,i.dataType=t,i.seriesIndex=e,n.type==="group"&&n.traverse(function(a){var o=ut(a);o.seriesIndex=e,o.dataIndex=r,o.dataType=t})}},Vd=1,zd={},I0=xt(),Dh=xt(),Ah=0,Il=1,Ol=2,Pe=["emphasis","blur","select"],js=["normal","emphasis","blur","select"],$C=10,HC=9,Hn="highlight",Es="downplay",Va="select",Ls="unselect",za="toggleSelect";function vi(e){return e!=null&&e!=="none"}var Gd=new mo(100);function $d(e){if($(e)){var t=Gd.get(e);return t||(t=jf(e,-.1),Gd.put(e,t)),t}else if(po(e)){var r=k({},e);return r.colorStops=z(e.colorStops,function(n){return{offset:n.offset,color:jf(n.color,-.1)}}),r}return e}function Nl(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function O0(e){Nl(e,"emphasis",Ol)}function N0(e){e.hoverState===Ol&&Nl(e,"normal",Ah)}function Mh(e){Nl(e,"blur",Il)}function R0(e){e.hoverState===Il&&Nl(e,"normal",Ah)}function WC(e){e.selected=!0}function UC(e){e.selected=!1}function Hd(e,t,r){t(e,r)}function Pr(e,t,r){Hd(e,t,r),e.isGroup&&e.traverse(function(n){Hd(n,t,r)})}function Wd(e,t){switch(t){case"emphasis":e.hoverState=Ol;break;case"normal":e.hoverState=Ah;break;case"blur":e.hoverState=Il;break;case"select":e.selected=!0}}function YC(e,t,r,n){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o],l=i[s];a[s]=l==null?n&&n[s]:l}for(var o=0;o<e.animators.length;o++){var u=e.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,t)}return a}function XC(e,t,r,n){var i=r&&ct(r,"select")>=0,a=!1;if(e instanceof ot){var o=I0(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(vi(s)||vi(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=k({},n),u=k({},u),u.fill=s):!vi(u.fill)&&vi(s)?(a=!0,n=k({},n),u=k({},u),u.fill=$d(s)):!vi(u.stroke)&&vi(l)&&(a||(n=k({},n),u=k({},u)),u.stroke=$d(l)),n.style=u}}if(n&&n.z2==null){a||(n=k({},n));var f=e.z2EmphasisLift;n.z2=e.z2+(f!=null?f:$C)}return n}function qC(e,t,r){if(r&&r.z2==null){r=k({},r);var n=e.z2SelectLift;r.z2=e.z2+(n!=null?n:HC)}return r}function ZC(e,t,r){var n=ct(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:YC(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=k({},r),o=k({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Hu(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return XC(this,e,t,r);if(e==="blur")return ZC(this,e,r);if(e==="select")return qC(this,e,r)}return r}function jC(e){e.stateProxy=Hu;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Hu),r&&(r.stateProxy=Hu)}function Ud(e,t){!V0(e,t)&&!e.__highByOuter&&Pr(e,O0)}function Yd(e,t){!V0(e,t)&&!e.__highByOuter&&Pr(e,N0)}function Ks(e,t){e.__highByOuter|=1<<(t||0),Pr(e,O0)}function Qs(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Pr(e,N0)}function KC(e){Pr(e,Mh)}function k0(e){Pr(e,R0)}function B0(e){Pr(e,WC)}function F0(e){Pr(e,UC)}function V0(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function z0(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=Dh(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){R0(u)}),s&&r.push(a)),o.isBlured=!1}),A(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function fc(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,f){for(var c=0;c<f.length;c++){var v=u.getItemGraphicEl(f[c]);v&&k0(v)}}if(e!=null&&!(!t||t==="none")){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var v=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!v||t==="series"&&f)){var h=n.getViewOfSeriesModel(u);if(h.group.traverse(function(p){p.__highByOuter&&f&&t==="self"||Mh(p)}),Xt(t))a(u.getData(),t);else if(H(t))for(var d=mt(t),g=0;g<d.length;g++)a(u.getData(d[g]),t[d[g]]);l.push(u),Dh(u).isBlured=!0}}),i.eachComponent(function(u,f){if(u!=="series"){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,i)}})}}function cc(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(!!n){Dh(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){Mh(a)})}}}function QC(e,t,r){var n=e.seriesIndex,i=e.getData(t.dataType);if(!i){process.env.NODE_ENV!=="production"&&qt("Unknown dataType "+t.dataType);return}var a=qn(i,t);a=(V(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=ut(o);fc(n,u.focus,u.blurScope,r)}else{var f=e.get(["emphasis","focus"]),c=e.get(["emphasis","blurScope"]);f!=null&&fc(n,f,c,r)}}function Eh(e,t,r,n){var i={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return i;var a=n.getModel().getComponent(e,t);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(process.env.NODE_ENV!=="production"&&!Hi(s[u])&&qt("param should be highDownDispatcher"),ut(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function JC(e,t,r){process.env.NODE_ENV!=="production"&&!Hi(e)&&qt("param should be highDownDispatcher");var n=ut(e),i=Eh(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&cc(n.componentMainType,n.componentIndex,r),A(a,function(s){return Ud(s,t)})):(fc(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&cc(n.componentMainType,n.componentIndex,r),Ud(e,t))}function tD(e,t,r){process.env.NODE_ENV!=="production"&&!Hi(e)&&qt("param should be highDownDispatcher"),z0(r);var n=ut(e),i=Eh(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?A(i,function(a){return Yd(a,t)}):Yd(e,t)}function eD(e,t,r){if(!!hc(t)){var n=t.dataType,i=e.getData(n),a=qn(i,t);V(a)||(a=[a]),e[t.type===za?"toggleSelect":t.type===Va?"select":"unselect"](a,n)}}function Xd(e){var t=e.getAllData();A(t,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){e.isSelected(o,i)?B0(a):F0(a)})})}function rD(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();A(n,function(i){i.data;var a=i.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function Js(e,t,r){G0(e,!0),Pr(e,jC),iD(e,t,r)}function nD(e){G0(e,!1)}function $i(e,t,r,n){n?nD(e):Js(e,t,r)}function iD(e,t,r){var n=ut(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var qd=["emphasis","blur","select"],aD={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function to(e,t,r,n){r=r||"itemStyle";for(var i=0;i<qd.length;i++){var a=qd[i],o=t.getModel([a,r]),s=e.ensureState(a);s.style=n?n(o):o[aD[r]]()}}function G0(e,t){var r=t===!1,n=e;e.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function Hi(e){return!!(e&&e.__highDownDispatcher)}function oD(e){var t=zd[e];return t==null&&Vd<=32&&(t=zd[e]=Vd++),t}function hc(e){var t=e.type;return t===Va||t===Ls||t===za}function Zd(e){var t=e.type;return t===Hn||t===Es}function sD(e){var t=I0(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var di=Mr.CMD,lD=[[],[],[]],jd=Math.sqrt,uD=Math.atan2;function $0(e,t){if(!!t){var r=e.data,n=e.len(),i,a,o,s,l,u,f=di.M,c=di.C,v=di.L,h=di.R,d=di.A,g=di.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case f:a=1;break;case v:a=1;break;case c:a=3;break;case g:a=2;break;case d:var p=t[4],y=t[5],m=jd(t[0]*t[0]+t[1]*t[1]),_=jd(t[2]*t[2]+t[3]*t[3]),x=uD(-t[1]/_,t[0]/m);r[o]*=m,r[o++]+=p,r[o]*=_,r[o++]+=y,r[o++]*=m,r[o++]*=_,r[o++]+=x,r[o++]+=x,o+=2,s=o;break;case h:u[0]=r[o++],u[1]=r[o++],ee(u,u,t),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],ee(u,u,t),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var w=lD[l];w[0]=r[o++],w[1]=r[o++],ee(w,w,t),r[s++]=w[0],r[s++]=w[1]}}e.increaseVersion()}}var Wu=Math.sqrt,$o=Math.sin,Ho=Math.cos,va=Math.PI;function Kd(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function vc(e,t){return(e[0]*t[0]+e[1]*t[1])/(Kd(e)*Kd(t))}function Qd(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(vc(e,t))}function Jd(e,t,r,n,i,a,o,s,l,u,f){var c=l*(va/180),v=Ho(c)*(e-r)/2+$o(c)*(t-n)/2,h=-1*$o(c)*(e-r)/2+Ho(c)*(t-n)/2,d=v*v/(o*o)+h*h/(s*s);d>1&&(o*=Wu(d),s*=Wu(d));var g=(i===a?-1:1)*Wu((o*o*(s*s)-o*o*(h*h)-s*s*(v*v))/(o*o*(h*h)+s*s*(v*v)))||0,p=g*o*h/s,y=g*-s*v/o,m=(e+r)/2+Ho(c)*p-$o(c)*y,_=(t+n)/2+$o(c)*p+Ho(c)*y,x=Qd([1,0],[(v-p)/o,(h-y)/s]),w=[(v-p)/o,(h-y)/s],b=[(-1*v-p)/o,(-1*h-y)/s],S=Qd(w,b);if(vc(w,b)<=-1&&(S=va),vc(w,b)>=1&&(S=0),S<0){var T=Math.round(S/va*1e6)/1e6;S=va*2+T%2*va}f.addData(u,m,_,o,s,x,S,c,a)}var fD=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,cD=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function hD(e){var t=new Mr;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=Mr.CMD,l=e.match(fD);if(!l)return t;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),v=void 0,h=f.match(cD)||[],d=h.length,g=0;g<d;g++)h[g]=parseFloat(h[g]);for(var p=0;p<d;){var y=void 0,m=void 0,_=void 0,x=void 0,w=void 0,b=void 0,S=void 0,T=r,D=n,M=void 0,C=void 0;switch(c){case"l":r+=h[p++],n+=h[p++],v=s.L,t.addData(v,r,n);break;case"L":r=h[p++],n=h[p++],v=s.L,t.addData(v,r,n);break;case"m":r+=h[p++],n+=h[p++],v=s.M,t.addData(v,r,n),i=r,a=n,c="l";break;case"M":r=h[p++],n=h[p++],v=s.M,t.addData(v,r,n),i=r,a=n,c="L";break;case"h":r+=h[p++],v=s.L,t.addData(v,r,n);break;case"H":r=h[p++],v=s.L,t.addData(v,r,n);break;case"v":n+=h[p++],v=s.L,t.addData(v,r,n);break;case"V":n=h[p++],v=s.L,t.addData(v,r,n);break;case"C":v=s.C,t.addData(v,h[p++],h[p++],h[p++],h[p++],h[p++],h[p++]),r=h[p-2],n=h[p-1];break;case"c":v=s.C,t.addData(v,h[p++]+r,h[p++]+n,h[p++]+r,h[p++]+n,h[p++]+r,h[p++]+n),r+=h[p-2],n+=h[p-1];break;case"S":y=r,m=n,M=t.len(),C=t.data,o===s.C&&(y+=r-C[M-4],m+=n-C[M-3]),v=s.C,T=h[p++],D=h[p++],r=h[p++],n=h[p++],t.addData(v,y,m,T,D,r,n);break;case"s":y=r,m=n,M=t.len(),C=t.data,o===s.C&&(y+=r-C[M-4],m+=n-C[M-3]),v=s.C,T=r+h[p++],D=n+h[p++],r+=h[p++],n+=h[p++],t.addData(v,y,m,T,D,r,n);break;case"Q":T=h[p++],D=h[p++],r=h[p++],n=h[p++],v=s.Q,t.addData(v,T,D,r,n);break;case"q":T=h[p++]+r,D=h[p++]+n,r+=h[p++],n+=h[p++],v=s.Q,t.addData(v,T,D,r,n);break;case"T":y=r,m=n,M=t.len(),C=t.data,o===s.Q&&(y+=r-C[M-4],m+=n-C[M-3]),r=h[p++],n=h[p++],v=s.Q,t.addData(v,y,m,r,n);break;case"t":y=r,m=n,M=t.len(),C=t.data,o===s.Q&&(y+=r-C[M-4],m+=n-C[M-3]),r+=h[p++],n+=h[p++],v=s.Q,t.addData(v,y,m,r,n);break;case"A":_=h[p++],x=h[p++],w=h[p++],b=h[p++],S=h[p++],T=r,D=n,r=h[p++],n=h[p++],v=s.A,Jd(T,D,r,n,b,S,_,x,w,v,t);break;case"a":_=h[p++],x=h[p++],w=h[p++],b=h[p++],S=h[p++],T=r,D=n,r+=h[p++],n+=h[p++],v=s.A,Jd(T,D,r,n,b,S,_,x,w,v,t);break}}(c==="z"||c==="Z")&&(v=s.Z,t.addData(v),r=i,n=a),o=v}return t.toStatic(),t}var H0=function(e){R(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(ot);function W0(e){return e.setData!=null}function U0(e,t){var r=hD(e),n=k({},t);return n.buildPath=function(i){if(W0(i)){i.setData(r.data);var a=i.getContext();a&&i.rebuildPath(a,1)}else{var a=i;r.rebuildPath(a,1)}},n.applyTransform=function(i){$0(r,i),this.dirtyShape()},n}function vD(e,t){return new H0(U0(e,t))}function dD(e,t){var r=U0(e,t),n=function(i){R(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a}(H0);return n}function pD(e,t){for(var r=[],n=e.length,i=0;i<n;i++){var a=e[i];r.push(a.getUpdatedPathProxy(!0))}var o=new ot(t);return o.createPathProxy(),o.buildPath=function(s){if(W0(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function Lh(e,t){t=t||{};var r=new ot;return e.shape&&r.setShape(e.shape),r.setStyle(e.style),t.bakeTransform?$0(r.path,e.getComputedTransform()):t.toLocal?r.setLocalTransform(e.getComputedTransform()):r.copyTransform(e),r.buildPath=e.buildPath,r.applyTransform=r.applyTransform,r.z=e.z,r.z2=e.z2,r.zlevel=e.zlevel,r}var gD=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),Y0=function(e){R(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new gD},t.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t}(ot);Y0.prototype.type="circle";const rn=Y0;var yD=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),X0=function(e){R(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new yD},t.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,f=l*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),r.closePath()},t}(ot);X0.prototype.type="ellipse";const Ph=X0;var q0=Math.PI,Uu=q0*2,Tn=Math.sin,pi=Math.cos,mD=Math.acos,$t=Math.atan2,tp=Math.abs,Ga=Math.sqrt,Ia=Math.max,Je=Math.min,Ve=1e-4;function _D(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,f=o-i,c=s-a,v=c*l-f*u;if(!(v*v<Ve))return v=(f*(t-a)-c*(e-i))/v,[e+v*l,t+v*u]}function Wo(e,t,r,n,i,a,o){var s=e-r,l=t-n,u=(o?a:-a)/Ga(s*s+l*l),f=u*l,c=-u*s,v=e+f,h=t+c,d=r+f,g=n+c,p=(v+d)/2,y=(h+g)/2,m=d-v,_=g-h,x=m*m+_*_,w=i-a,b=v*g-d*h,S=(_<0?-1:1)*Ga(Ia(0,w*w*x-b*b)),T=(b*_-m*S)/x,D=(-b*m-_*S)/x,M=(b*_+m*S)/x,C=(-b*m+_*S)/x,E=T-p,L=D-y,P=M-p,I=C-y;return E*E+L*L>P*P+I*I&&(T=M,D=C),{cx:T,cy:D,x0:-f,y0:-c,x1:T*(i/w-1),y1:D*(i/w-1)}}function xD(e){var t;if(V(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function bD(e,t){var r,n=Ia(t.r,0),i=Ia(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,c=t.cy,v=!!t.clockwise,h=tp(u-l),d=h>Uu&&h%Uu;if(d>Ve&&(h=d),!(n>Ve))e.moveTo(f,c);else if(h>Uu-Ve)e.moveTo(f+n*pi(l),c+n*Tn(l)),e.arc(f,c,n,l,u,!v),i>Ve&&(e.moveTo(f+i*pi(u),c+i*Tn(u)),e.arc(f,c,i,u,l,v));else{var g=void 0,p=void 0,y=void 0,m=void 0,_=void 0,x=void 0,w=void 0,b=void 0,S=void 0,T=void 0,D=void 0,M=void 0,C=void 0,E=void 0,L=void 0,P=void 0,I=n*pi(l),O=n*Tn(l),F=i*pi(u),N=i*Tn(u),B=h>Ve;if(B){var G=t.cornerRadius;G&&(r=xD(G),g=r[0],p=r[1],y=r[2],m=r[3]);var W=tp(n-i)/2;if(_=Je(W,y),x=Je(W,m),w=Je(W,g),b=Je(W,p),D=S=Ia(_,x),M=T=Ia(w,b),(S>Ve||T>Ve)&&(C=n*pi(u),E=n*Tn(u),L=i*pi(l),P=i*Tn(l),h<q0)){var Z=_D(I,O,L,P,C,E,F,N);if(Z){var et=I-Z[0],ft=O-Z[1],At=C-Z[0],yt=E-Z[1],zt=1/Tn(mD((et*At+ft*yt)/(Ga(et*et+ft*ft)*Ga(At*At+yt*yt)))/2),Gt=Ga(Z[0]*Z[0]+Z[1]*Z[1]);D=Je(S,(n-Gt)/(zt+1)),M=Je(T,(i-Gt)/(zt-1))}}}if(!B)e.moveTo(f+I,c+O);else if(D>Ve){var Pt=Je(y,D),bt=Je(m,D),q=Wo(L,P,I,O,n,Pt,v),at=Wo(C,E,F,N,n,bt,v);e.moveTo(f+q.cx+q.x0,c+q.cy+q.y0),D<S&&Pt===bt?e.arc(f+q.cx,c+q.cy,D,$t(q.y0,q.x0),$t(at.y0,at.x0),!v):(Pt>0&&e.arc(f+q.cx,c+q.cy,Pt,$t(q.y0,q.x0),$t(q.y1,q.x1),!v),e.arc(f,c,n,$t(q.cy+q.y1,q.cx+q.x1),$t(at.cy+at.y1,at.cx+at.x1),!v),bt>0&&e.arc(f+at.cx,c+at.cy,bt,$t(at.y1,at.x1),$t(at.y0,at.x0),!v))}else e.moveTo(f+I,c+O),e.arc(f,c,n,l,u,!v);if(!(i>Ve)||!B)e.lineTo(f+F,c+N);else if(M>Ve){var Pt=Je(g,M),bt=Je(p,M),q=Wo(F,N,C,E,i,-bt,v),at=Wo(I,O,L,P,i,-Pt,v);e.lineTo(f+q.cx+q.x0,c+q.cy+q.y0),M<T&&Pt===bt?e.arc(f+q.cx,c+q.cy,M,$t(q.y0,q.x0),$t(at.y0,at.x0),!v):(bt>0&&e.arc(f+q.cx,c+q.cy,bt,$t(q.y0,q.x0),$t(q.y1,q.x1),!v),e.arc(f,c,i,$t(q.cy+q.y1,q.cx+q.x1),$t(at.cy+at.y1,at.cx+at.x1),v),Pt>0&&e.arc(f+at.cx,c+at.cy,Pt,$t(at.y1,at.x1),$t(at.y0,at.x0),!v))}else e.lineTo(f+F,c+N),e.arc(f,c,i,u,l,v)}e.closePath()}}}var SD=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),Z0=function(e){R(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new SD},t.prototype.buildPath=function(r,n){bD(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(ot);Z0.prototype.type="sector";const Ie=Z0;var wD=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),j0=function(e){R(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new wD},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},t}(ot);j0.prototype.type="ring";const wo=j0;function TD(e,t,r,n){var i=[],a=[],o=[],s=[],l,u,f,c;if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var v=0,h=e.length;v<h;v++)Ur(f,f,e[v]),Yr(c,c,e[v]);Ur(f,f,n[0]),Yr(c,c,n[1])}for(var v=0,h=e.length;v<h;v++){var d=e[v];if(r)l=e[v?v-1:h-1],u=e[(v+1)%h];else if(v===0||v===h-1){i.push(Em(e[v]));continue}else l=e[v-1],u=e[v+1];Lm(a,u,l),Ss(a,a,t);var g=Gs(d,l),p=Gs(d,u),y=g+p;y!==0&&(g/=y,p/=y),Ss(o,a,-g),Ss(s,a,p);var m=Hf([],d,o),_=Hf([],d,s);n&&(Yr(m,m,f),Ur(m,m,c),Yr(_,_,f),Ur(_,_,c)),i.push(m),i.push(_)}return r&&i.push(i.shift()),i}function K0(e,t,r){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var a=TD(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;s<c;s++)e.lineTo(i[s][0],i[s][1])}r&&e.closePath()}}var CD=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),Q0=function(e){R(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new CD},t.prototype.buildPath=function(r,n){K0(r,n,!0)},t}(ot);Q0.prototype.type="polygon";const ii=Q0;var DD=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),J0=function(e){R(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new DD},t.prototype.buildPath=function(r,n){K0(r,n,!1)},t}(ot);J0.prototype.type="polyline";const ln=J0;var AD={},MD=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),t_=function(e){R(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new MD},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=M0(AD,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},t.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},t}(ot);t_.prototype.type="line";const Me=t_;var ae=[],ED=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function ep(e,t,r){var n=e.cpx2,i=e.cpy2;return n!=null||i!=null?[(r?nd:Nt)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?nd:Nt)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?id:Wt)(e.x1,e.cpx1,e.x2,t),(r?id:Wt)(e.y1,e.cpy1,e.y2,t)]}var e_=function(e){R(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ED},t.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,c=n.cpy2,v=n.percent;v!==0&&(r.moveTo(i,a),f==null||c==null?(v<1&&(Us(i,l,o,v,ae),l=ae[1],o=ae[2],Us(a,u,s,v,ae),u=ae[1],s=ae[2]),r.quadraticCurveTo(l,u,o,s)):(v<1&&(tn(i,l,f,o,v,ae),l=ae[1],f=ae[2],o=ae[3],tn(a,u,c,s,v,ae),u=ae[1],c=ae[2],s=ae[3]),r.bezierCurveTo(l,u,f,c,o,s)))},t.prototype.pointAt=function(r){return ep(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=ep(this.shape,r,!0);return Pm(n,n)},t}(ot);e_.prototype.type="bezier-curve";const Ih=e_;var LD=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),r_=function(e){R(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new LD},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*o+i,c*o+a),r.arc(i,a,o,s,l,!u)},t}(ot);r_.prototype.type="arc";const Rl=r_;var PD=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ot.prototype.getBoundingRect.call(this)},t}(ot);const n_=PD;var ID=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}();const i_=ID;var OD=function(e){R(t,e);function t(r,n,i,a,o,s){var l=e.call(this,o)||this;return l.x=r==null?0:r,l.y=n==null?0:n,l.x2=i==null?1:i,l.y2=a==null?0:a,l.type="linear",l.global=s||!1,l}return t}(i_);const Oh=OD;var ND=function(e){R(t,e);function t(r,n,i,a,o){var s=e.call(this,a)||this;return s.x=r==null?.5:r,s.y=n==null?.5:n,s.r=i==null?.5:i,s.type="radial",s.global=o||!1,s}return t}(i_);const a_=ND;var Cn=[0,0],Dn=[0,0],Uo=new U,Yo=new U,RD=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new U;for(var n=0;n<2;n++)this._axes[n]=new U;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,i=this._axes,a=t.x,o=t.y,s=a+t.width,l=o+t.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),r)for(var u=0;u<4;u++)n[u].transform(r);U.sub(i[0],n[1],n[0]),U.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},e.prototype.intersect=function(t,r){var n=!0,i=!r;return Uo.set(1/0,1/0),Yo.set(0,0),!this._intersectCheckOneSide(this,t,Uo,Yo,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,Uo,Yo,i,-1)&&(n=!1,i)||i||U.copy(r,n?Uo:Yo),n},e.prototype._intersectCheckOneSide=function(t,r,n,i,a,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,Cn),this._getProjMinMaxOnAxis(l,r._corners,Dn),Cn[1]<Dn[0]||Cn[0]>Dn[1]){if(s=!1,a)return s;var f=Math.abs(Dn[0]-Cn[1]),c=Math.abs(Cn[0]-Dn[1]);Math.min(f,c)>i.len()&&(f<c?U.scale(i,u,-f*o):U.scale(i,u,c*o))}else if(n){var f=Math.abs(Dn[0]-Cn[1]),c=Math.abs(Cn[0]-Dn[1]);Math.min(f,c)<n.len()&&(f<c?U.scale(n,u,f*o):U.scale(n,u,-c*o))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var i=this._axes[t],a=this._origin,o=r[0].dot(i)+a[t],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(i)+a[t];s=Math.min(f,s),l=Math.max(f,l)}n[0]=s,n[1]=l},e}();const tl=RD;var kD=[],BD=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new it(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(kD)),r.union(a)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},t}(Ki);const o_=BD;var s_=xt();function kl(e,t,r,n,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,f=void 0,c=void 0;n?(u=nt(n.duration,200),f=nt(n.easing,"cubicOut"),c=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),c=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay)),X(c)&&(c=c(r,i)),X(u)&&(u=u(r));var v={duration:u||0,delay:c,easing:f};return v}else return null}function Nh(e,t,r,n,i,a,o){var s=!1,l;X(i)?(o=a,a=i,i=null):H(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var f=kl(e,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,i):null);if(f&&f.duration>0){var c=f.duration,v=f.delay,h=f.easing,d={duration:c,delay:v||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,d):t.animateTo(r,d)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function Lt(e,t,r,n,i,a){Nh("update",e,t,r,n,i,a)}function Bt(e,t,r,n,i,a){Nh("enter",e,t,r,n,i,a)}function Oi(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="leave")return!0}return!1}function el(e,t,r,n,i,a){Oi(e)||Nh("leave",e,t,r,n,i,a)}function rp(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),el(e,{style:{opacity:0}},t,r,n)}function eo(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(i){i.isGroup||rp(i,t,r,n)}):rp(e,t,r,n)}function Bl(e){s_(e).oldStyle=e.style}function FD(e){return s_(e).oldStyle}var rl=Math.max,nl=Math.min,dc={};function l_(e){return ot.extend(e)}var VD=dD;function u_(e,t){return VD(e,t)}function Re(e,t){dc[e]=t}function f_(e){if(dc.hasOwnProperty(e))return dc[e]}function Fl(e,t,r,n){var i=vD(e,t);return r&&(n==="center"&&(r=c_(r,i.getBoundingRect())),kh(i,r)),i}function Rh(e,t,r){var n=new sn({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(c_(t,a))}}});return n}function c_(e,t){var r=t.width/t.height,n=e.height*r,i;n<=e.width?i=e.height:(n=e.width,i=n/r);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var De=pD;function kh(e,t){if(!!e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function ro(e,t){return M0(e,e,{lineWidth:t}),e}function zD(e){return E0(e.shape,e.shape,e.style),e}var GD=Bn;function Bh(e,t){for(var r=yo([]);e&&e!==t;)Qr(r,e.getLocalTransform(),r),e=e.parent;return r}function To(e,t,r){return t&&!Xt(t)&&(t=_o.getLocalTransform(t)),r&&(t=ji([],t)),ee([],e,t)}function h_(e,t,r){var n=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[e==="left"?-n:e==="right"?n:0,e==="top"?-i:e==="bottom"?i:0];return a=To(a,t,r),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function np(e){return!e.isGroup}function $D(e){return e.shape!=null}function Vl(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){np(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return $D(o)&&(s.shape=k({},o.shape)),s}var a=n(e);t.traverse(function(o){if(np(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Lt(o,l,r,ut(o).dataIndex)}}})}function Fh(e,t){return z(e,function(r){var n=r[0];n=rl(n,t.x),n=nl(n,t.x+t.width);var i=r[1];return i=rl(i,t.y),i=nl(i,t.y+t.height),[n,i]})}function v_(e,t){var r=rl(e.x,t.x),n=nl(e.x+e.width,t.x+t.width),i=rl(e.y,t.y),a=nl(e.y+e.height,t.y+t.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function zl(e,t,r){var n=k({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),Y(i,r),new sn(n)):Fl(e.replace("path://",""),n,r,"center")}function HD(e,t,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(d_(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function d_(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,f=o-i,c=s-a,v=Yu(f,c,l,u);if(WD(v))return!1;var h=e-i,d=t-a,g=Yu(h,d,l,u)/v;if(g<0||g>1)return!1;var p=Yu(h,d,f,c)/v;return!(p<0||p>1)}function Yu(e,t,r,n){return e*n-r*t}function WD(e){return e<=1e-6&&e>=-1e-6}function Vh(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=$(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=e.formatterParamsExtra;l&&A(mt(l),function(f){ur(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ut(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:Y({content:n,formatterParams:s},i)}}function ip(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Gl(e,t){if(e)if(V(e))for(var r=0;r<e.length;r++)ip(e[r],t);else ip(e,t)}Re("circle",rn);Re("ellipse",Ph);Re("sector",Ie);Re("ring",wo);Re("polygon",ii);Re("polyline",ln);Re("rect",wt);Re("line",Me);Re("bezierCurve",Ih);Re("arc",Rl);const UD=Object.freeze(Object.defineProperty({__proto__:null,updateProps:Lt,initProps:Bt,removeElement:el,removeElementWithFadeOut:eo,isElementRemoved:Oi,extendShape:l_,extendPath:u_,registerShape:Re,getShapeClass:f_,makePath:Fl,makeImage:Rh,mergePath:De,resizePath:kh,subPixelOptimizeLine:ro,subPixelOptimizeRect:zD,subPixelOptimize:GD,getTransform:Bh,applyTransform:To,transformDirection:h_,groupTransition:Vl,clipPointsByRect:Fh,clipRectByRect:v_,createIcon:zl,linePolygonIntersect:HD,lineLineIntersect:d_,setTooltipConfig:Vh,traverseElements:Gl,Group:Dt,Image:sn,Text:Ot,Circle:rn,Ellipse:Ph,Sector:Ie,Ring:wo,Polygon:ii,Polyline:ln,Rect:wt,Line:Me,BezierCurve:Ih,Arc:Rl,IncrementalDisplayable:o_,CompoundPath:n_,LinearGradient:Oh,RadialGradient:a_,BoundingRect:it,OrientedBoundingRect:tl,Point:U,Path:ot},Symbol.toStringTag,{value:"Module"}));var $l={};function p_(e,t){for(var r=0;r<Pe.length;r++){var n=Pe[r],i=t[n],a=e.ensureState(n);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function pc(e,t,r){var n=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=X(e.defaultText)?e.defaultText(i,e,r):e.defaultText);for(var l={normal:s},u=0;u<Pe.length;u++){var f=Pe[u],c=t[f];l[f]=nt(n?n.getFormattedLabel(i,f,null,a,c&&c.get("formatter")):null,s)}return l}function Qi(e,t,r,n){r=r||$l;for(var i=e instanceof Ot,a=!1,o=0;o<js.length;o++){var s=t[js[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?e:e.getTextContent();if(a){i||(l||(l=new Ot,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=pc(r,t),f=t.normal,c=!!f.getShallow("show"),v=fr(f,n&&n.normal,r,!1,!i);v.text=u.normal,i||e.setTextConfig(ap(f,r,!1));for(var o=0;o<Pe.length;o++){var h=Pe[o],s=t[h];if(s){var d=l.ensureState(h),g=!!nt(s.getShallow("show"),c);if(g!==c&&(d.ignore=!g),d.style=fr(s,n&&n[h],r,!0,!i),d.style.text=u[h],!i){var p=e.ensureState(h);p.textConfig=ap(s,r,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(v.x=l.style.x),l.style.y!=null&&(v.y=l.style.y),l.ignore=!c,l.useStyle(v),l.dirty(),r.enableTextSetter&&(ta(l).setLabelText=function(y){var m=pc(r,t,y);p_(l,m)})}else l&&(l.ignore=!0);e.dirty()}function Ji(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<Pe.length;n++){var i=Pe[n];r[i]=e.getModel([i,t])}return r}function fr(e,t,r,n,i){var a={};return YD(a,e,r,n,i),t&&k(a,t),a}function ap(e,t,r){t=t||{};var n={},i,a=e.getShallow("rotate"),o=nt(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return i=e.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",n}function YD(e,t,r,n,i){r=r||$l;var a=t.ecModel,o=a&&a.option.textStyle,s=XD(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=t.getModel(["rich",u]);up(l[u]={},f,o,r,n,i,!1,!0)}}l&&(e.rich=l);var c=t.get("overflow");c&&(e.overflow=c);var v=t.get("minMargin");v!=null&&(e.margin=v),up(e,t,o,r,n,i,!0,!1)}function XD(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||$l).rich;if(r){t=t||{};for(var n=mt(r),i=0;i<n.length;i++){var a=n[i];t[a]=1}}e=e.parentModel}return t}var op=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],sp=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],lp=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function up(e,t,r,n,i,a,o,s){r=!i&&r||$l;var l=n&&n.inheritColor,u=t.getShallow("color"),f=t.getShallow("textBorderColor"),c=nt(t.getShallow("opacity"),r.opacity);(u==="inherit"||u==="auto")&&(process.env.NODE_ENV!=="production"&&u==="auto"&&It("color: 'auto'","color: 'inherit'"),l?u=l:u=null),(f==="inherit"||f==="auto")&&(process.env.NODE_ENV!=="production"&&f==="auto"&&It("color: 'auto'","color: 'inherit'"),l?f=l:f=null),a||(u=u||r.color,f=f||r.textBorderColor),u!=null&&(e.fill=u),f!=null&&(e.stroke=f);var v=nt(t.getShallow("textBorderWidth"),r.textBorderWidth);v!=null&&(e.lineWidth=v);var h=nt(t.getShallow("textBorderType"),r.textBorderType);h!=null&&(e.lineDash=h);var d=nt(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);d!=null&&(e.lineDashOffset=d),!i&&c==null&&!s&&(c=n&&n.defaultOpacity),c!=null&&(e.opacity=c),!i&&!a&&e.fill==null&&n.inheritColor&&(e.fill=n.inheritColor);for(var g=0;g<op.length;g++){var p=op[g],y=nt(t.getShallow(p),r[p]);y!=null&&(e[p]=y)}for(var g=0;g<sp.length;g++){var p=sp[g],y=t.getShallow(p);y!=null&&(e[p]=y)}if(e.verticalAlign==null){var m=t.getShallow("baseline");m!=null&&(e.verticalAlign=m)}if(!o||!n.disableBox){for(var g=0;g<lp.length;g++){var p=lp[g],y=t.getShallow(p);y!=null&&(e[p]=y)}var _=t.getShallow("borderType");_!=null&&(e.borderDash=_),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&e.backgroundColor==="auto"&&It("backgroundColor: 'auto'","backgroundColor: 'inherit'"),e.backgroundColor=l),(e.borderColor==="auto"||e.borderColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&e.borderColor==="auto"&&It("borderColor: 'auto'","borderColor: 'inherit'"),e.borderColor=l)}}function qD(e,t){var r=t&&t.getModel("textStyle");return He([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var ta=xt();function ZD(e,t,r,n){if(!!e){var i=ta(e);i.prevValue=i.value,i.value=r;var a=t.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=t)}}function jD(e,t,r,n,i){var a=ta(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=nt(a.interpolatedValue,a.prevValue),l=a.value;function u(f){var c=p0(r,a.precision,s,l,f);a.interpolatedValue=f===1?null:c;var v=pc({labelDataIndex:t,labelFetcher:i,defaultText:o?o(c):c+""},a.statesModels,c);p_(e,v)}e.percent=0,(a.prevValue==null?Bt:Lt)(e,{percent:1},n,t,null,u)}var KD=["textStyle","color"],Xu=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],qu=new Ot,QD=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(KD):null)},e.prototype.getFont=function(){return qD({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Xu.length;n++)r[Xu[n]]=this.getShallow(Xu[n]);return qu.useStyle(r),qu.update(),qu.getBoundingRect()},e}();const JD=QD;var g_=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],tA=Gi(g_),eA=function(){function e(){}return e.prototype.getLineStyle=function(t){return tA(this,t)},e}(),y_=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],rA=Gi(y_),nA=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return rA(this,t,r)},e}(),ai=function(){function e(t,r,n){this.parentModel=r,this.ecModel=n,this.option=t}return e.prototype.init=function(t,r,n){},e.prototype.mergeOption=function(t,r){rt(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var n=this.option,i=n==null?n:n[t];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(t))}return i},e.prototype.getModel=function(t,r){var n=t!=null,i=n?this.parsePath(t):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(j(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!tt.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&!(!!t[i]&&(n=n&&typeof n=="object"?n[t[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(t),r.parentModel)),n},e}();Ch(ai);YT(ai);ie(ai,eA);ie(ai,nA);ie(ai,KT);ie(ai,JD);const Et=ai;var iA=Math.round(Math.random()*10);function Hl(e){return[e||"",iA++].join("_")}function aA(e){var t={};e.registerSubTypeDefaulter=function(r,n){var i=ir(r);t[i.main]=n},e.determineSubType=function(r,n){var i=n.type;if(!i){var a=ir(r).main;e.hasSubTypes(r)&&t[a]&&(i=t[a](n))}return i}}function oA(e,t){e.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),f=u.graph,c=u.noEntryList,v={};for(A(a,function(m){v[m]=!0});c.length;){var h=c.pop(),d=f[h],g=!!v[h];g&&(s.call(l,h,d.originalDeps.slice()),delete v[h]),A(d.successor,g?y:p)}A(v,function(){var m="";throw process.env.NODE_ENV!=="production"&&(m=he("Circular dependency may exists: ",v,a,o)),new Error(m)});function p(m){f[m].entryCount--,f[m].entryCount===0&&c.push(m)}function y(m){v[m]=!0,p(m)}};function r(a){var o={},s=[];return A(a,function(l){var u=n(o,l),f=u.originalDeps=t(l),c=i(f,a);u.entryCount=c.length,u.entryCount===0&&s.push(l),A(c,function(v){ct(u.predecessor,v)<0&&u.predecessor.push(v);var h=n(o,v);ct(h.successor,v)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return A(a,function(l){ct(o,l)>=0&&s.push(l)}),s}}function m_(e,t){return rt(rt({},e,!0),t,!0)}const sA={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"}},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:". "}}}},lA={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var il="ZH",zh="EN",no=zh,Ps={},Gh={},__=tt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(il)>-1?il:no}():no;function $h(e,t){e=e.toUpperCase(),Gh[e]=new Et(t),Ps[e]=t}function uA(e){if($(e)){var t=Ps[e.toUpperCase()]||{};return e===il||e===zh?j(t):rt(j(t),j(Ps[no]),!1)}else return rt(j(e),j(Ps[no]),!1)}function fA(e){return Gh[e]}function cA(){return Gh[no]}$h(zh,sA);$h(il,lA);var Hh=1e3,Wh=Hh*60,$a=Wh*60,Ae=$a*24,fp=Ae*365,Oa={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}"},Xo="{yyyy}-{MM}-{dd}",cp={year:"{yyyy}",month:"{yyyy}-{MM}",day:Xo,hour:Xo+" "+Oa.hour,minute:Xo+" "+Oa.minute,second:Xo+" "+Oa.second,millisecond:Oa.none},Zu=["year","month","day","hour","minute","second","millisecond"],x_=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Qt(e,t){return e+="","0000".substr(0,t-e.length)+e}function Ni(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function hA(e){return e===Ni(e)}function vA(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Co(e,t,r,n){var i=Le(e),a=i[Uh(r)](),o=i[Ri(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[Wl(r)](),u=i["get"+(r?"UTC":"")+"Day"](),f=i[io(r)](),c=(f-1)%12+1,v=i[Ul(r)](),h=i[Yl(r)](),d=i[Xl(r)](),g=n instanceof Et?n:fA(n||__)||cA(),p=g.getModel("time"),y=p.get("month"),m=p.get("monthAbbr"),_=p.get("dayOfWeek"),x=p.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Qt(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,Qt(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Qt(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Qt(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Qt(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Qt(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,Qt(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Qt(d,3)).replace(/{S}/g,d+"")}function dA(e,t,r,n,i){var a=null;if($(r))a=r;else if(X(r))a=r(e.value,t,{level:e.level});else{var o=k({},Oa);if(e.level>0)for(var s=0;s<Zu.length;++s)o[Zu[s]]="{primary|"+o[Zu[s]]+"}";var l=r?r.inherit===!1?r:Y(r,o):o,u=b_(e.value,i);if(l[u])a=l[u];else if(l.inherit){for(var f=x_.indexOf(u),s=f-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(V(a)){var c=e.level==null?0:e.level>=0?e.level:a.length+e.level;c=Math.min(c,a.length-1),a=a[c]}}return Co(new Date(e.value),a,i,n)}function b_(e,t){var r=Le(e),n=r[Ri(t)]()+1,i=r[Wl(t)](),a=r[io(t)](),o=r[Ul(t)](),s=r[Yl(t)](),l=r[Xl(t)](),u=l===0,f=u&&s===0,c=f&&o===0,v=c&&a===0,h=v&&i===1,d=h&&n===1;return d?"year":h?"month":v?"day":c?"hour":f?"minute":u?"second":"millisecond"}function hp(e,t,r){var n=vt(e)?Le(e):e;switch(t=t||b_(e,r),t){case"year":return n[Uh(r)]();case"half-year":return n[Ri(r)]()>=6?1:0;case"quarter":return Math.floor((n[Ri(r)]()+1)/4);case"month":return n[Ri(r)]();case"day":return n[Wl(r)]();case"half-day":return n[io(r)]()/24;case"hour":return n[io(r)]();case"minute":return n[Ul(r)]();case"second":return n[Yl(r)]();case"millisecond":return n[Xl(r)]()}}function Uh(e){return e?"getUTCFullYear":"getFullYear"}function Ri(e){return e?"getUTCMonth":"getMonth"}function Wl(e){return e?"getUTCDate":"getDate"}function io(e){return e?"getUTCHours":"getHours"}function Ul(e){return e?"getUTCMinutes":"getMinutes"}function Yl(e){return e?"getUTCSeconds":"getSeconds"}function Xl(e){return e?"getUTCMilliseconds":"getMilliseconds"}function pA(e){return e?"setUTCFullYear":"setFullYear"}function S_(e){return e?"setUTCMonth":"setMonth"}function w_(e){return e?"setUTCDate":"setDate"}function T_(e){return e?"setUTCHours":"setHours"}function C_(e){return e?"setUTCMinutes":"setMinutes"}function D_(e){return e?"setUTCSeconds":"setSeconds"}function A_(e){return e?"setUTCMilliseconds":"setMilliseconds"}function gA(e,t,r,n,i,a,o,s){var l=new Ot({style:{text:e,font:t,align:r,verticalAlign:n,padding:i,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function Yh(e){if(!Sh(e))return $(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Xh(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Do=fh;function gc(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&He(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?Le(e):e;if(isNaN(+l)){if(s)return"-"}else return Co(l,n,r)}if(t==="ordinal")return qa(e)?i(e):vt(e)&&a(e)?e+"":"-";var u=Ar(e);return a(u)?Yh(u):qa(e)?i(e):typeof e=="boolean"?e+"":"-"}var vp=["a","b","c","d","e","f","g"],ju=function(e,t){return"{"+e+(t==null?"":t)+"}"};function qh(e,t,r){V(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=vp[a];e=e.replace(ju(o),ju(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];e=e.replace(ju(vp[l],s),r?de(u):u)}return e}function M_(e,t){var r=$(e)?{color:e,extraCssText:t}:e||{},n=r.color,i=r.type;t=r.extraCssText;var a=r.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+de(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+de(n)+";"+(t||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function yA(e,t,r){process.env.NODE_ENV!=="production"&&It("echarts.format.formatTime","echarts.time.format"),(e==="week"||e==="month"||e==="quarter"||e==="half-year"||e==="year")&&(e=`MM-dd
34
- yyyy`);var n=Le(t),i=r?"getUTC":"get",a=n[i+"FullYear"](),o=n[i+"Month"]()+1,s=n[i+"Date"](),l=n[i+"Hours"](),u=n[i+"Minutes"](),f=n[i+"Seconds"](),c=n[i+"Milliseconds"]();return e=e.replace("MM",Qt(o,2)).replace("M",o).replace("yyyy",a).replace("yy",Qt(a%100+"",2)).replace("dd",Qt(s,2)).replace("d",s).replace("hh",Qt(l,2)).replace("h",l).replace("mm",Qt(u,2)).replace("m",u).replace("ss",Qt(f,2)).replace("s",f).replace("SSS",Qt(c,3)),e}function mA(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function Zn(e,t){return t=t||"transparent",$(e)?e:H(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function dp(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var Is=A,_A=["left","right","top","bottom","width","height"],qo=[["width","left","right"],["height","top","bottom"]];function Zh(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),c=t.childAt(u+1),v=c&&c.getBoundingRect(),h,d;if(e==="horizontal"){var g=f.width+(v?-v.x+f.x:0);h=a+g,h>n||l.newline?(a=0,h=g,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var p=f.height+(v?-v.y+f.y:0);d=o+p,d>i||l.newline?(a+=s+r,o=0,d=p,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=h+r:o=d+r)})}var Ha=Zh;dt(Zh,"vertical");dt(Zh,"horizontal");function Er(e,t,r){r=Do(r||0);var n=t.width,i=t.height,a=K(e.left,n),o=K(e.top,i),s=K(e.right,n),l=K(e.bottom,i),u=K(e.width,n),f=K(e.height,i),c=r[2]+r[0],v=r[1]+r[3],h=e.aspect;switch(isNaN(u)&&(u=n-s-v-a),isNaN(f)&&(f=i-l-c-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(a)&&(a=n-s-u-v),isNaN(o)&&(o=i-l-f-c),e.left||e.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-v;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-c;break}a=a||0,o=o||0,isNaN(u)&&(u=n-v-a-(s||0)),isNaN(f)&&(f=i-c-o-(l||0));var d=new it(a+r[3],o+r[0],u,f);return d.margin=r,d}function ao(e){var t=e.layoutMode||e.constructor.layoutMode;return H(t)?t:t?{type:t}:null}function Wi(e,t,r){var n=r&&r.ignoreSize;!V(n)&&(n=[n,n]);var i=o(qo[0],0),a=o(qo[1],1);u(qo[0],e,i),u(qo[1],e,a);function o(f,c){var v={},h=0,d={},g=0,p=2;if(Is(f,function(_){d[_]=e[_]}),Is(f,function(_){s(t,_)&&(v[_]=d[_]=t[_]),l(v,_)&&h++,l(d,_)&&g++}),n[c])return l(t,f[1])?d[f[2]]=null:l(t,f[2])&&(d[f[1]]=null),d;if(g===p||!h)return d;if(h>=p)return v;for(var y=0;y<f.length;y++){var m=f[y];if(!s(v,m)&&s(e,m)){v[m]=e[m];break}}return v}function s(f,c){return f.hasOwnProperty(c)}function l(f,c){return f[c]!=null&&f[c]!=="auto"}function u(f,c,v){Is(f,function(h){c[h]=v[h]})}}function ql(e){return xA({},e)}function xA(e,t){return t&&e&&Is(_A,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var bA=xt(),ea=function(e){R(t,e);function t(r,n,i){var a=e.call(this,r,n,i)||this;return a.uid=Hl("ec_cpt_model"),a}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=ao(this),a=i?ql(r):{},o=n.getTheme();rt(r,o.get(this.mainType)),rt(r,this.getDefaultOption()),i&&Wi(r,a,i)},t.prototype.mergeOption=function(r,n){rt(this.option,r,!0);var i=ao(this);i&&Wi(this.option,r,i)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!HT(r))return r.defaultOption;var n=bA(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=rt(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return So(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(Et);y0(ea,Et);El(ea);aA(ea);oA(ea,SA);function SA(e){var t=[];return A(ea.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=z(t,function(r){return ir(r).main}),e!=="dataset"&&ct(t,"dataset")<=0&&t.unshift("dataset"),t}const st=ea;var E_="";typeof navigator<"u"&&(E_=navigator.platform||"");var gi="rgba(0, 0, 0, 0.2)";const wA={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:gi,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:gi,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:gi,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:gi,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:gi,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:gi,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:E_.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 yc=Q(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),ke="original",ne="arrayRows",Be="objectRows",hr="keyedColumns",wr="typedArray",L_="unknown",sr="column",ra="row",Ft={Must:1,Might:2,Not:3},P_=xt();function TA(e){P_(e).datasetMap=Q()}function CA(e,t,r){var n={},i=jh(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=P_(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,f,c;e=e.slice(),A(e,function(g,p){var y=H(g)?g:e[p]={name:g};y.type==="ordinal"&&f==null&&(f=p,c=d(y)),n[y.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});A(e,function(g,p){var y=g.name,m=d(g);if(f==null){var _=v.valueWayDim;h(n[y],_,m),h(o,_,m),v.valueWayDim+=m}else if(f===p)h(n[y],0,m),h(a,0,m);else{var _=v.categoryWayDim;h(n[y],_,m),h(o,_,m),v.categoryWayDim+=m}});function h(g,p,y){for(var m=0;m<y;m++)g.push(p+m)}function d(g){var p=g.dimsDef;return p?p.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function I_(e,t,r){var n={},i=jh(e);if(!i)return n;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===Be||a===hr)&&A(o,function(f,c){(H(f)?f.name:f)==="name"&&(s=c)});var l=function(){for(var f={},c={},v=[],h=0,d=Math.min(5,r);h<d;h++){var g=N_(t.data,a,t.seriesLayoutBy,o,t.startIndex,h);v.push(g);var p=g===Ft.Not;if(p&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v||!p&&v[f.n]===Ft.Not)&&(f.n=h),y(f)&&v[f.n]!==Ft.Not)return f;p||(g===Ft.Might&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v)&&(c.n=h))}function y(m){return m.v!=null&&m.n!=null}return y(f)?f:y(c)?c:null}();if(l){n.value=[l.v];var u=s!=null?s:l.n;n.itemName=[u],n.seriesName=[u]}return n}function jh(e){var t=e.get("data",!0);if(!t)return So(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},fe).models[0]}function DA(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:So(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},fe).models}function O_(e,t){return N_(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function N_(e,t,r,n,i,a){var o,s=5;if(re(e))return Ft.Not;var l,u;if(n){var f=n[a];H(f)?(l=f.name,u=f.type):$(f)&&(l=f)}if(u!=null)return u==="ordinal"?Ft.Must:Ft.Not;if(t===ne){var c=e;if(r===ra){for(var v=c[a],h=0;h<(v||[]).length&&h<s;h++)if((o=x(v[i+h]))!=null)return o}else for(var h=0;h<c.length&&h<s;h++){var d=c[i+h];if(d&&(o=x(d[a]))!=null)return o}}else if(t===Be){var g=e;if(!l)return Ft.Not;for(var h=0;h<g.length&&h<s;h++){var p=g[h];if(p&&(o=x(p[l]))!=null)return o}}else if(t===hr){var y=e;if(!l)return Ft.Not;var v=y[l];if(!v||re(v))return Ft.Not;for(var h=0;h<v.length&&h<s;h++)if((o=x(v[h]))!=null)return o}else if(t===ke)for(var m=e,h=0;h<m.length&&h<s;h++){var p=m[h],_=bo(p);if(!V(_))return Ft.Not;if((o=x(_[a]))!=null)return o}function x(w){var b=$(w);if(w!=null&&isFinite(w)&&w!=="")return b?Ft.Might:Ft.Not;if(b&&w!=="-")return Ft.Must}return Ft.Not}var AA=Q();function MA(e,t,r){var n=AA.get(t);if(!n)return r;var i=n(e);if(!i)return r;if(process.env.NODE_ENV!=="production")for(var a=0;a<i.length;a++)J(zi(i[a]));return r.concat(i)}var pp=xt();xt();var Kh=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var i=St(this.get("color",!0)),a=this.get("colorLayer",!0);return LA(this,pp,i,a,t,r,n)},e.prototype.clearColorPalette=function(){PA(this,pp)},e}();function EA(e,t){for(var r=e.length,n=0;n<r;n++)if(e[n].length>t)return e[n];return e[r-1]}function LA(e,t,r,n,i,a,o){a=a||e;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?r:EA(n,o);if(f=f||r,!(!f||!f.length)){var c=f[l];return i&&(u[i]=c),s.paletteIdx=(l+1)%f.length,c}}function PA(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Zo,da,gp,Ku="\0_ec_inner",yp=1,IA={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},OA={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},al={};function NA(e){A(e,function(t,r){if(!st.hasClass(r)){var n=IA[r];n&&!al[n]&&(qt("Component "+r+` is used but not imported.
27
+ */var Ia={},Bn={};function uT(e){delete Bn[e]}function fT(e){if(!e)return!1;if(typeof e=="string")return Qa(e,1)<rc;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,i=0;i<n;i++)r+=Qa(t[i].color,1);return r/=n,r<rc}return!1}var cT=function(){function e(t,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=t;var a=new mw,o=n.renderer||"canvas";if(Ia[o]||(o=mt(Ia)[0]),process.env.NODE_ENV!=="production"&&!Ia[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Ia[o](r,a,n,t),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!tt.node&&!tt.worker&&!l?new Jw(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,c=f==null||f==="auto"?tt.touchEventsSupported:!!f,v=44,h;c&&(h=nt(n.pointerSize,v)),this.handler=new vw(a,s,u,s.root,h),this.animation=new Uw({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(t){!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh()},e.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=fT(t)},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},e.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},e.prototype.flush=function(){this._flush(!1)},e.prototype._flush=function(t){var r,n=Ei();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=Ei();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},e.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this.handler.off(t,r)},e.prototype.trigger=function(t,r){this.handler.trigger(t,r)},e.prototype.clear=function(){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof Dt&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},e.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,uT(this.id)},e}();function ac(e,t){var r=new cT(lh(),e,t);return Bn[r.id]=r,r}function hT(e){e.dispose()}function vT(){for(var e in Bn)Bn.hasOwnProperty(e)&&Bn[e].dispose();Bn={}}function dT(e){return Bn[e]}function a0(e,t){Ia[e]=t}var pT="5.4.4";const gT=Object.freeze(Object.defineProperty({__proto__:null,init:ac,dispose:hT,disposeAll:vT,getInstance:dT,registerPainter:a0,version:pT},Symbol.toStringTag,{value:"Module"}));var yd=1e-4,o0=20;function yT(e){return e.replace(/^\s+|\s+$/g,"")}function zi(e,t,r,n){var i=t[0],a=t[1],o=r[0],s=r[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/l*u+o}function K(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return $(e)?yT(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Ct(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),o0),e=(+e).toFixed(t),r?e:+e}function s0(e){return e.sort(function(t,r){return t-r}),e}function nr(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return qs(e)}function qs(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function l0(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function mT(e,t,r){if(!e[t])return 0;var n=u0(e,r);return n[t]||0}function u0(e,t){var r=lr(e,function(h,d){return h+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=z(e,function(h){return(isNaN(h)?0:h)/r*n*100}),a=n*100,o=z(i,function(h){return Math.floor(h)}),s=lr(o,function(h,d){return h+d},0),l=z(i,function(h,d){return h-o[d]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,v=l.length;c<v;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return z(o,function(h){return h/n})}function _T(e,t){var r=Math.max(nr(e),nr(t)),n=e+t;return r>o0?n:Ct(n,r)}var xT=9007199254740991;function bh(e){var t=Math.PI*2;return(e%t+t)%t}function to(e){return e>-yd&&e<yd}var bT=/^(?:(\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 Le(e){if(e instanceof Date)return e;if($(e)){var t=bT.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function f0(e){return Math.pow(10,bo(e))}function bo(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function Sh(e,t){var r=bo(e),n=Math.pow(10,r),i=e/n,a;return t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,e=a*n,r>=-20?+e.toFixed(r<0?-r:0):e}function ST(e,t){var r=(e.length-1)*t+1,n=Math.floor(r),i=+e[n-1],a=r-n;return a?i+a*(e[n]-i):i}function wT(e){e.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,r=1,n=0;n<e.length;){for(var i=e[n].interval,a=e[n].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-r),t=i[o],r=a[o];i[0]===i[1]&&a[0]*a[1]!==1?e.splice(n,1):n++}return e;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function Ar(e){var t=parseFloat(e);return t==e&&(t!==0||!$(e)||e.indexOf("x")<=0)?t:NaN}function wh(e){return!isNaN(Ar(e))}function c0(){return Math.round(Math.random()*9)}function h0(e,t){return t===0?e:h0(t,e%t)}function md(e,t){return e==null?t:t==null?e:e*t/h0(e,t)}var TT="[ECharts] ",_d={},CT=typeof console<"u"&&console.warn&&console.log;function Ml(e,t,r){if(CT){if(r){if(_d[t])return;_d[t]=!0}console[e](TT+t)}}function DT(e,t){Ml("log",e,t)}function kt(e,t){Ml("warn",e,t)}function qt(e,t){Ml("error",e,t)}function Ye(e){process.env.NODE_ENV!=="production"&&Ml("warn","DEPRECATED: "+e,!0)}function It(e,t,r){process.env.NODE_ENV!=="production"&&Ye((r?"["+r+"]":"")+(e+" is deprecated, use "+t+" instead."))}function he(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r="";if(process.env.NODE_ENV!=="production"){var n=function(i){return i===void 0?"undefined":i===1/0?"Infinity":i===-1/0?"-Infinity":Fi(i)?"NaN":i instanceof Date?"Date("+i.toISOString()+")":X(i)?"function () { ... }":fh(i)?i+"":null};r=z(e,function(i){if($(i))return i;var a=n(i);if(a!=null)return a;if(typeof JSON<"u"&&JSON.stringify)try{return JSON.stringify(i,function(o,s){var l=n(s);return l==null?s:l})}catch{return"?"}else return"?"}).join(" ")}return r}function lt(e){throw new Error(e)}function xd(e,t,r){return(t-e)*r+e}var v0="series\0",AT="\0_ec_\0";function St(e){return e instanceof Array?e:e==null?[]:[e]}function Zs(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var bd=["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 So(e){return H(e)&&!V(e)&&!(e instanceof Date)?e.value:e}function MT(e){return H(e)&&!(e instanceof Array)}function ET(e,t,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=Q();A(t,function(l,u){if(!H(l)){t[u]=null;return}process.env.NODE_ENV!=="production"&&(l.id!=null&&!wd(l.id)&&Sd(l.id),l.name!=null&&!wd(l.name)&&Sd(l.name))});var s=LT(e,o,r);return(n||i)&&PT(s,e,o,t),n&&IT(s,t),n||i?OT(s,t,i):a&&NT(s,t),RT(s),s}function LT(e,t,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),n.push({existing:r==="replaceMerge"||Gi(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function PT(e,t,r,n){A(n,function(i,a){if(!(!i||i.id==null)){var o=Va(i.id),s=r.get(o);if(s!=null){var l=e[s];J(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=t[s],n[a]=null}}})}function IT(e,t){A(t,function(r,n){if(!(!r||r.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||r.id==null)&&!Gi(r)&&!Gi(a)&&d0("name",a,r)){e[i].newOption=r,t[n]=null;return}}})}function OT(e,t,r){A(t,function(n){if(!!n){for(var i,a=0;(i=e[a])&&(i.newOption||Gi(i.existing)||i.existing&&n.id!=null&&!d0("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function NT(e,t){A(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function RT(e){var t=Q();A(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),A(e,function(r){var n=r.newOption;J(!n||n.id==null||!t.get(n.id)||t.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),A(e,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(!!H(a)){if(o.name=a.name!=null?Va(a.name):i?i.name:v0+n,i)o.id=Va(i.id);else if(a.id!=null)o.id=Va(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,r)}})}function d0(e,t,r){var n=or(t[e],null),i=or(r[e],null);return n!=null&&i!=null&&n===i}function Va(e){if(process.env.NODE_ENV!=="production"&&e==null)throw new Error;return or(e,"")}function or(e,t){return e==null?t:$(e)?e:vt(e)||Za(e)?e+"":t}function Sd(e){process.env.NODE_ENV!=="production"&&kt("`"+e+"` is invalid id or name. Must be a string or number.")}function wd(e){return Za(e)||wh(e)}function Th(e){var t=e.name;return!!(t&&t.indexOf(v0))}function Gi(e){return e&&e.id!=null&&Va(e.id).indexOf(AT)===0}function kT(e,t,r){A(e,function(n){var i=n.newOption;H(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=BT(t,i,n.existing,r))})}function BT(e,t,r,n){var i=t.type?t.type:r?r.subType:n.determineSubType(e,t);return i}function Zn(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return V(t.dataIndex)?z(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return V(t.name)?z(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function xt(){var e="__ec_inner_"+FT++;return function(t){return t[e]||(t[e]={})}}var FT=c0();function Lu(e,t,r){var n=Ch(t,r),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,f){var c=wo(e,f,u,{useDefault:l===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function Ch(e,t){var r;if($(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var i=Q(),a={},o=!1;return A(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||t&&t.includeMainTypes&&ct(t.includeMainTypes,f)<0)){o=o||!!f;var v=i.get(f)||i.set(f,{});v[c]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var fe={useDefault:!0,enableAll:!1,enableNone:!1};function wo(e,t,r,n){n=n||fe;var i=r.index,a=r.id,o=r.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=e.getComponent(t))?[l]:[],s}return i==="none"||i===!1?(J(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(J(n.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s)}function p0(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function VT(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function zT(e){return e==="auto"?tt.domSupported?"html":"richText":e||"html"}function g0(e,t,r,n,i){var a=t==null||t==="auto";if(n==null)return n;if(vt(n)){var o=xd(r||0,n,i);return Ct(o,a?Math.max(nr(r||0),nr(n)):t)}else{if($(n))return i<1?r:n;for(var s=[],l=r,u=n,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var v=e.getDimensionInfo(c);if(v&&v.type==="ordinal")s[c]=(i<1&&l?l:u)[c];else{var h=l&&l[c]?l[c]:0,d=u[c],o=xd(h,d,i);s[c]=Ct(o,a?Math.max(nr(h),nr(d)):t)}}return s}}var GT=".",yn="___EC__COMPONENT__CONTAINER___",y0="___EC__EXTENDED_CLASS___";function ir(e){var t={main:"",sub:""};if(e){var r=e.split(GT);t.main=r[0]||"",t.sub=r[1]||""}return t}function $T(e){J(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function HT(e){return!!(e&&e[y0])}function Dh(e,t){e.$constructor=e,e.extend=function(r){process.env.NODE_ENV!=="production"&&A(t,function(a){r[a]||console.warn("Method `"+a+"` should be implemented"+(r.type?" in "+r.type:"")+".")});var n=this,i;return WT(n)?i=function(a){R(o,a);function o(){return a.apply(this,arguments)||this}return o}(n):(i=function(){(r.$constructor||n).apply(this,arguments)},uh(i,this)),k(i.prototype,r),i[y0]=!0,i.extend=this.extend,i.superCall=XT,i.superApply=qT,i.superClass=n,i}}function WT(e){return X(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function m0(e,t){e.extend=t.extend}var UT=Math.round(Math.random()*10);function YT(e){var t=["__\0is_clz",UT++].join("_");e.prototype[t]=!0,process.env.NODE_ENV!=="production"&&J(!e.isInstance,'The method "is" can not be defined.'),e.isInstance=function(r){return!!(r&&r[t])}}function XT(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[t].apply(e,r)}function qT(e,t,r){return this.superClass.prototype[t].apply(e,r)}function El(e){var t={};e.registerClass=function(n){var i=n.type||n.prototype.type;if(i){$T(i),n.prototype.type=i;var a=ir(i);if(!a.sub)process.env.NODE_ENV!=="production"&&t[a.main]&&console.warn(a.main+" exists."),t[a.main]=n;else if(a.sub!==yn){var o=r(a);o[a.sub]=n}}return n},e.getClass=function(n,i,a){var o=t[n];if(o&&o[yn]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},e.getClassesByMainType=function(n){var i=ir(n),a=[],o=t[i.main];return o&&o[yn]?A(o,function(s,l){l!==yn&&a.push(s)}):a.push(o),a},e.hasClass=function(n){var i=ir(n);return!!t[i.main]},e.getAllClassMainTypes=function(){var n=[];return A(t,function(i,a){n.push(a)}),n},e.hasSubTypes=function(n){var i=ir(n),a=t[i.main];return a&&a[yn]};function r(n){var i=t[n.main];return(!i||!i[yn])&&(i=t[n.main]={},i[yn]=!0),i}}function $i(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(n,i,a){for(var o={},s=0;s<e.length;s++){var l=e[s][1];if(!(i&&ct(i,l)>=0||a&&ct(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var ZT=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],jT=$i(ZT),KT=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return jT(this,t,r)},e}(),oc=new _o(50);function QT(e){if(typeof e=="string"){var t=oc.get(e);return t&&t.image}else return e}function _0(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=oc.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!Ll(t)&&a.pending.push(o)):(t=Tr.loadImage(e,Td,Td),t.__zrImageSrc=e,oc.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function Td(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function Ll(e){return e&&e.width&&e.height}var Pu=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function x0(e,t,r,n,i){if(!t)return"";var a=(e+"").split(`
28
+ `);i=b0(t,r,n,i);for(var o=0,s=a.length;o<s;o++)a[o]=S0(a[o],i);return a.join(`
29
+ `)}function b0(e,t,r,n){n=n||{};var i=k({},n);i.font=t,r=nt(r,"..."),i.maxIterations=nt(n.maxIterations,2);var a=i.minChar=nt(n.minChar,0);i.cnCharWidth=ye("\u56FD",t);var o=i.ascCharWidth=ye("a",t);i.placeholder=nt(n.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<a&&s>=o;l++)s-=o;var u=ye(r,t);return u>s&&(r="",u=0),s=e-u,i.ellipsis=r,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function S0(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=ye(e,n);if(a<=r)return e;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?JT(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=ye(e,n)}return e===""&&(e=t.placeholder),e}function JT(e,t,r,n){for(var i=0,a=0,o=e.length;a<o&&i<t;a++){var s=e.charCodeAt(a);i+=0<=s&&s<=127?r:n}return a}function tC(e,t){e!=null&&(e+="");var r=t.overflow,n=t.padding,i=t.font,a=r==="truncate",o=_h(i),s=nt(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",f=t.width,c;f!=null&&(r==="break"||r==="breakAll")?c=e?w0(e,t.font,f,r==="breakAll",0).lines:[]:c=e?e.split(`
30
+ `):[];var v=c.length*s,h=nt(t.height,v);if(v>h&&u){var d=Math.floor(h/s);c=c.slice(0,d)}if(e&&a&&f!=null)for(var p=b0(f,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;g<c.length;g++)c[g]=S0(c[g],p);for(var y=h,m=0,g=0;g<c.length;g++)m=Math.max(ye(c[g],i),m);f==null&&(f=m);var _=m;return n&&(y+=n[0]+n[2],_+=n[1]+n[3],f+=n[1]+n[3]),l&&(_=f),{lines:c,height:h,outerWidth:_,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:m,contentHeight:v,width:f}}var eC=function(){function e(){}return e}(),Cd=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),rC=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return e}();function nC(e,t){var r=new rC;if(e!=null&&(e+=""),!e)return r;for(var n=t.width,i=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:a==="breakAll"}:null,s=Pu.lastIndex=0,l;(l=Pu.exec(e))!=null;){var u=l.index;u>s&&Iu(r,e.substring(s,u),t,o),Iu(r,l[2],t,o,l[1]),s=Pu.lastIndex}s<e.length&&Iu(r,e.substring(s,e.length),t,o);var f=[],c=0,v=0,h=t.padding,d=a==="truncate",p=t.lineOverflow==="truncate";function g(N,B,G){N.width=B,N.lineHeight=G,c+=G,v=Math.max(v,B)}t:for(var y=0;y<r.lines.length;y++){for(var m=r.lines[y],_=0,x=0,w=0;w<m.tokens.length;w++){var b=m.tokens[w],S=b.styleName&&t.rich[b.styleName]||{},T=b.textPadding=S.padding,D=T?T[1]+T[3]:0,M=b.font=S.font||t.font;b.contentHeight=_h(M);var C=nt(S.height,b.contentHeight);if(b.innerHeight=C,T&&(C+=T[0]+T[2]),b.height=C,b.lineHeight=Kr(S.lineHeight,t.lineHeight,C),b.align=S&&S.align||t.align,b.verticalAlign=S&&S.verticalAlign||"middle",p&&i!=null&&c+b.lineHeight>i){w>0?(m.tokens=m.tokens.slice(0,w),g(m,x,_),r.lines=r.lines.slice(0,y+1)):r.lines=r.lines.slice(0,y);break t}var E=S.width,L=E==null||E==="auto";if(typeof E=="string"&&E.charAt(E.length-1)==="%")b.percentWidth=E,f.push(b),b.contentWidth=ye(b.text,M);else{if(L){var P=S.backgroundColor,I=P&&P.image;I&&(I=QT(I),Ll(I)&&(b.width=Math.max(b.width,I.width*C/I.height)))}var O=d&&n!=null?n-x:null;O!=null&&O<b.width?!L||O<D?(b.text="",b.width=b.contentWidth=0):(b.text=x0(b.text,O-D,M,t.ellipsis,{minChar:t.truncateMinChar}),b.width=b.contentWidth=ye(b.text,M)):b.contentWidth=ye(b.text,M)}b.width+=D,x+=b.width,S&&(_=Math.max(_,b.lineHeight))}g(m,x,_)}r.outerWidth=r.width=nt(n,v),r.outerHeight=r.height=nt(i,c),r.contentHeight=c,r.contentWidth=v,h&&(r.outerWidth+=h[1]+h[3],r.outerHeight+=h[0]+h[2]);for(var y=0;y<f.length;y++){var b=f[y],F=b.percentWidth;b.width=parseInt(F,10)/100*r.width}return r}function Iu(e,t,r,n,i){var a=t==="",o=i&&r.rich[i]||{},s=e.lines,l=o.font||r.font,u=!1,f,c;if(n){var v=o.padding,h=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var d=en(o.width,n.width)+h;s.length>0&&d+n.accumWidth>n.width&&(f=t.split(`
31
+ `),u=!0),n.accumWidth=d}else{var p=w0(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+h,c=p.linesWidths,f=p.lines}}else f=t.split(`
32
+ `);for(var g=0;g<f.length;g++){var y=f[g],m=new eC;if(m.styleName=i,m.text=y,m.isLineHolder=!y&&!a,typeof o.width=="number"?m.width=o.width:m.width=c?c[g]:ye(y,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new Cd)).tokens,x=_.length;x===1&&_[0].isLineHolder?_[0]=m:(y||!x||a)&&_.push(m)}else s.push(new Cd([m]))}}function iC(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var aC=lr(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function oC(e){return iC(e)?!!aC[e]:!0}function w0(e,t,r,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,c=0;c<e.length;c++){var v=e.charAt(c);if(v===`
33
+ `){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var h=ye(v,t),d=n?!1:!oC(v);if(a.length?f+h>r:i+f+h>r){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=v,u+=h,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=v,f=h)):d?(a.push(l),o.push(u),l=v,u=h):(a.push(v),o.push(h));continue}f+=h,d?(l+=v,u+=h):(l&&(s+=l,l="",u=0),s+=v)}return!a.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}var sc="__zr_style_"+Math.round(Math.random()*10),Hn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Pl={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Hn[sc]=!0;var Dd=["z","z2","invisible"],sC=["invisible"],lC=function(e){R(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=mt(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):e.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&uC(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(r,n){return this.rectContain(r,n)},t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new it(0,0,0,0)),n?it.applyTransform(r,i,n):r.copy(i),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new it(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,n){r!=="style"?e.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:k(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Ea,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Ea)},t.prototype.styleUpdated=function(){this.__dirty&=~Ea},t.prototype.createStyle=function(r){return yo(Hn,r)},t.prototype.useStyle=function(r){r[sc]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[sc]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,Dd)},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.style?o?a?u=n.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,n.style)):l&&(u=i.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var c=mt(f),v=0;v<c.length;v++){var h=c[v];h in u&&(u[h]=u[h],this.style[h]=f[h])}for(var d=mt(u),v=0;v<d.length;v++){var h=d[v];this.style[h]=this.style[h]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?sC:Dd,v=0;v<p.length;v++){var h=p[v];n&&n[h]!=null?this[h]=n[h]:l&&i[h]!=null&&(this[h]=i[h])}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},t.prototype._mergeStyle=function(r,n){return k(r,n),r},t.prototype.getAnimationStyleProps=function(){return Pl},t.initDefaultProps=function(){var r=t.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=pe|Ea}(),t}(n0),Ou=new it(0,0,0,0),Nu=new it(0,0,0,0);function uC(e,t,r){return Ou.copy(e.getBoundingRect()),e.transform&&Ou.applyTransform(e.transform),Nu.width=t,Nu.height=r,!Ou.intersect(Nu)}const Qi=lC;var se=Math.min,le=Math.max,Ru=Math.sin,ku=Math.cos,mn=Math.PI*2,zo=ii(),Go=ii(),$o=ii();function T0(e,t,r){if(e.length!==0){for(var n=e[0],i=n[0],a=n[0],o=n[1],s=n[1],l=1;l<e.length;l++)n=e[l],i=se(i,n[0]),a=le(a,n[0]),o=se(o,n[1]),s=le(s,n[1]);t[0]=i,t[1]=o,r[0]=a,r[1]=s}}function Ad(e,t,r,n,i,a){i[0]=se(e,r),i[1]=se(t,n),a[0]=le(e,r),a[1]=le(t,n)}var Md=[],Ed=[];function fC(e,t,r,n,i,a,o,s,l,u){var f=Um,c=Nt,v=f(e,r,i,o,Md);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<v;h++){var d=c(e,r,i,o,Md[h]);l[0]=se(d,l[0]),u[0]=le(d,u[0])}v=f(t,n,a,s,Ed);for(var h=0;h<v;h++){var p=c(t,n,a,s,Ed[h]);l[1]=se(p,l[1]),u[1]=le(p,u[1])}l[0]=se(e,l[0]),u[0]=le(e,u[0]),l[0]=se(o,l[0]),u[0]=le(o,u[0]),l[1]=se(t,l[1]),u[1]=le(t,u[1]),l[1]=se(s,l[1]),u[1]=le(s,u[1])}function cC(e,t,r,n,i,a,o,s){var l=Xm,u=Wt,f=le(se(l(e,r,i),1),0),c=le(se(l(t,n,a),1),0),v=u(e,r,i,f),h=u(t,n,a,c);o[0]=se(e,i,v),o[1]=se(t,a,h),s[0]=le(e,i,v),s[1]=le(t,a,h)}function hC(e,t,r,n,i,a,o,s,l){var u=Ur,f=Yr,c=Math.abs(i-a);if(c%mn<1e-4&&c>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(zo[0]=ku(i)*r+e,zo[1]=Ru(i)*n+t,Go[0]=ku(a)*r+e,Go[1]=Ru(a)*n+t,u(s,zo,Go),f(l,zo,Go),i=i%mn,i<0&&(i=i+mn),a=a%mn,a<0&&(a=a+mn),i>a&&!o?a+=mn:i<a&&o&&(i+=mn),o){var v=a;a=i,i=v}for(var h=0;h<a;h+=Math.PI/2)h>i&&($o[0]=ku(h)*r+e,$o[1]=Ru(h)*n+t,u(s,$o,s),f(l,$o,l))}var pt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},_n=[],xn=[],je=[],Nr=[],Ke=[],Qe=[],Bu=Math.min,Fu=Math.max,bn=Math.cos,Sn=Math.sin,pr=Math.abs,lc=Math.PI,$r=lc*2,Vu=typeof Float32Array<"u",ha=[];function zu(e){var t=Math.round(e/lc*1e8)/1e8;return t%2*lc}function vC(e,t){var r=zu(e[0]);r<0&&(r+=$r);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=$r?i=r+$r:t&&r-i>=$r?i=r-$r:!t&&r>i?i=r+($r-zu(r-i)):t&&r<i&&(i=r-($r-zu(i-r))),e[0]=r,e[1]=i}var dC=function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,r,n){n=n||0,n>0&&(this._ux=pr(n/Ys/t)||0,this._uy=pr(n/Ys/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(pt.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=pr(t-this._xi),i=pr(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(pt.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){return this._drawPendingPt(),this.addData(pt.C,t,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,i,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,i){return this._drawPendingPt(),this.addData(pt.Q,t,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,r,n,i,a,o){this._drawPendingPt(),ha[0]=i,ha[1]=a,vC(ha,o),i=ha[0],a=ha[1];var s=a-i;return this.addData(pt.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=bn(a)*n+t,this._yi=Sn(a)*n+r,this},e.prototype.arcTo=function(t,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,a),this},e.prototype.rect=function(t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,i),this.addData(pt.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(pt.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&Vu&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=t[n];this._len=r},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var r=t.length,n=0,i=this._len,a=0;a<r;a++)n+=t[a].len();Vu&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var a=0;a<r;a++)for(var o=t[a].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},e.prototype.addData=function(t,r,n,i,a,o,s,l,u){if(!!this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(!!this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Vu&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){je[0]=je[1]=Ke[0]=Ke[1]=Number.MAX_VALUE,Nr[0]=Nr[1]=Qe[0]=Qe[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(r=t[o],n=t[o+1],i=r,a=n),s){case pt.M:r=i=t[o++],n=a=t[o++],Ke[0]=i,Ke[1]=a,Qe[0]=i,Qe[1]=a;break;case pt.L:Ad(r,n,t[o],t[o+1],Ke,Qe),r=t[o++],n=t[o++];break;case pt.C:fC(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Ke,Qe),r=t[o++],n=t[o++];break;case pt.Q:cC(r,n,t[o++],t[o++],t[o],t[o+1],Ke,Qe),r=t[o++],n=t[o++];break;case pt.A:var u=t[o++],f=t[o++],c=t[o++],v=t[o++],h=t[o++],d=t[o++]+h;o+=1;var p=!t[o++];l&&(i=bn(h)*c+u,a=Sn(h)*v+f),hC(u,f,c,v,h,d,p,Ke,Qe),r=bn(d)*c+u,n=Sn(d)*v+f;break;case pt.R:i=r=t[o++],a=n=t[o++];var g=t[o++],y=t[o++];Ad(i,a,i+g,a+y,Ke,Qe);break;case pt.Z:r=i,n=a;break}Ur(je,je,Ke),Yr(Nr,Nr,Qe)}return o===0&&(je[0]=je[1]=Nr[0]=Nr[1]=0),new it(je[0],je[1],Nr[0]-je[0],Nr[1]-je[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,v=0;v<r;){var h=t[v++],d=v===1;d&&(a=t[v],o=t[v+1],s=a,l=o);var p=-1;switch(h){case pt.M:a=s=t[v++],o=l=t[v++];break;case pt.L:{var g=t[v++],y=t[v++],m=g-a,_=y-o;(pr(m)>n||pr(_)>i||v===r-1)&&(p=Math.sqrt(m*m+_*_),a=g,o=y);break}case pt.C:{var x=t[v++],w=t[v++],g=t[v++],y=t[v++],b=t[v++],S=t[v++];p=_w(a,o,x,w,g,y,b,S,10),a=b,o=S;break}case pt.Q:{var x=t[v++],w=t[v++],g=t[v++],y=t[v++];p=bw(a,o,x,w,g,y,10),a=g,o=y;break}case pt.A:var T=t[v++],D=t[v++],M=t[v++],C=t[v++],E=t[v++],L=t[v++],P=L+E;v+=1,t[v++],d&&(s=bn(E)*M+T,l=Sn(E)*C+D),p=Fu(M,C)*Bu($r,Math.abs(L)),a=bn(P)*M+T,o=Sn(P)*C+D;break;case pt.R:{s=a=t[v++],l=o=t[v++];var I=t[v++],O=t[v++];p=I*2+O*2;break}case pt.Z:{var m=s-a,_=l-o;p=Math.sqrt(m*m+_*_),a=s,o=l;break}}p>=0&&(u[c++]=p,f+=p)}return this._pathLen=f,f},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,c,v,h=r<1,d,p,g=0,y=0,m,_=0,x,w;if(h&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=r*p,!m))return;t:for(var b=0;b<o;){var S=n[b++],T=b===1;switch(T&&(u=n[b],f=n[b+1],s=u,l=f),S!==pt.L&&_>0&&(t.lineTo(x,w),_=0),S){case pt.M:s=u=n[b++],l=f=n[b++],t.moveTo(u,f);break;case pt.L:{c=n[b++],v=n[b++];var D=pr(c-u),M=pr(v-f);if(D>i||M>a){if(h){var C=d[y++];if(g+C>m){var E=(m-g)/C;t.lineTo(u*(1-E)+c*E,f*(1-E)+v*E);break t}g+=C}t.lineTo(c,v),u=c,f=v,_=0}else{var L=D*D+M*M;L>_&&(x=c,w=v,_=L)}break}case pt.C:{var P=n[b++],I=n[b++],O=n[b++],F=n[b++],N=n[b++],B=n[b++];if(h){var C=d[y++];if(g+C>m){var E=(m-g)/C;tn(u,P,O,N,E,_n),tn(f,I,F,B,E,xn),t.bezierCurveTo(_n[1],xn[1],_n[2],xn[2],_n[3],xn[3]);break t}g+=C}t.bezierCurveTo(P,I,O,F,N,B),u=N,f=B;break}case pt.Q:{var P=n[b++],I=n[b++],O=n[b++],F=n[b++];if(h){var C=d[y++];if(g+C>m){var E=(m-g)/C;Us(u,P,O,E,_n),Us(f,I,F,E,xn),t.quadraticCurveTo(_n[1],xn[1],_n[2],xn[2]);break t}g+=C}t.quadraticCurveTo(P,I,O,F),u=O,f=F;break}case pt.A:var G=n[b++],W=n[b++],Z=n[b++],et=n[b++],ft=n[b++],At=n[b++],yt=n[b++],zt=!n[b++],Gt=Z>et?Z:et,Pt=pr(Z-et)>.001,bt=ft+At,q=!1;if(h){var C=d[y++];g+C>m&&(bt=ft+At*(m-g)/C,q=!0),g+=C}if(Pt&&t.ellipse?t.ellipse(G,W,Z,et,yt,ft,bt,zt):t.arc(G,W,Gt,ft,bt,zt),q)break t;T&&(s=bn(ft)*Z+G,l=Sn(ft)*et+W),u=bn(bt)*Z+G,f=Sn(bt)*et+W;break;case pt.R:s=u=n[b],l=f=n[b+1],c=n[b++],v=n[b++];var at=n[b++],Ze=n[b++];if(h){var C=d[y++];if(g+C>m){var Rt=m-g;t.moveTo(c,v),t.lineTo(c+Bu(Rt,at),v),Rt-=at,Rt>0&&t.lineTo(c+at,v+Bu(Rt,Ze)),Rt-=Ze,Rt>0&&t.lineTo(c+Fu(at-Rt,0),v+Ze),Rt-=at,Rt>0&&t.lineTo(c,v+Fu(Ze-Rt,0));break t}g+=C}t.rect(c,v,at,Ze);break;case pt.Z:if(h){var C=d[y++];if(g+C>m){var E=(m-g)/C;t.lineTo(u*(1-E)+s*E,f*(1-E)+l*E);break t}g+=C}t.closePath(),u=s,f=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=pt,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();const Mr=dC;function vi(e,t,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=e;if(o>t+s&&o>n+s||o<t-s&&o<n-s||a>e+s&&a>r+s||a<e-s&&a<r-s)return!1;if(e!==r)l=(t-n)/(e-r),u=(e*n-r*t)/(e-r);else return Math.abs(a-e)<=s/2;var f=l*a-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function pC(e,t,r,n,i,a,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>t+c&&f>n+c&&f>a+c&&f>s+c||f<t-c&&f<n-c&&f<a-c&&f<s-c||u>e+c&&u>r+c&&u>i+c&&u>o+c||u<e-c&&u<r-c&&u<i-c&&u<o-c)return!1;var v=Ym(e,t,r,n,i,a,o,s,u,f,null);return v<=c/2}function gC(e,t,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>a+u||l<t-u&&l<n-u&&l<a-u||s>e+u&&s>r+u&&s>i+u||s<e-u&&s<r-u&&s<i-u)return!1;var f=qm(e,t,r,n,i,a,s,l,null);return f<=u/2}var Ld=Math.PI*2;function xr(e){return e%=Ld,e<0&&(e+=Ld),e}var va=Math.PI*2;function yC(e,t,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=e,l-=t;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(n-i)%va<1e-4)return!0;if(a){var c=n;n=xr(i),i=xr(c)}else n=xr(n),i=xr(i);n>i&&(i+=va);var v=Math.atan2(l,s);return v<0&&(v+=va),v>=n&&v<=i||v+va>=n&&v+va<=i}function _r(e,t,r,n,i,a){if(a>t&&a>n||a<t&&a<n||n===t)return 0;var o=(a-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var l=o*(r-e)+e;return l===i?1/0:l>i?s:0}var Rr=Mr.CMD,wn=Math.PI*2,mC=1e-4;function _C(e,t){return Math.abs(e-t)<mC}var Kt=[-1,-1,-1],Te=[-1,-1];function xC(){var e=Te[0];Te[0]=Te[1],Te[1]=e}function bC(e,t,r,n,i,a,o,s,l,u){if(u>t&&u>n&&u>a&&u>s||u<t&&u<n&&u<a&&u<s)return 0;var f=Ws(t,n,a,s,u,Kt);if(f===0)return 0;for(var c=0,v=-1,h=void 0,d=void 0,p=0;p<f;p++){var g=Kt[p],y=g===0||g===1?.5:1,m=Nt(e,r,i,o,g);m<l||(v<0&&(v=Um(t,n,a,s,Te),Te[1]<Te[0]&&v>1&&xC(),h=Nt(t,n,a,s,Te[0]),v>1&&(d=Nt(t,n,a,s,Te[1]))),v===2?g<Te[0]?c+=h<t?y:-y:g<Te[1]?c+=d<h?y:-y:c+=s<d?y:-y:g<Te[0]?c+=h<t?y:-y:c+=s<h?y:-y)}return c}function SC(e,t,r,n,i,a,o,s){if(s>t&&s>n&&s>a||s<t&&s<n&&s<a)return 0;var l=xw(t,n,a,s,Kt);if(l===0)return 0;var u=Xm(t,n,a);if(u>=0&&u<=1){for(var f=0,c=Wt(t,n,a,u),v=0;v<l;v++){var h=Kt[v]===0||Kt[v]===1?.5:1,d=Wt(e,r,i,Kt[v]);d<o||(Kt[v]<u?f+=c<t?h:-h:f+=a<c?h:-h)}return f}else{var h=Kt[0]===0||Kt[0]===1?.5:1,d=Wt(e,r,i,Kt[0]);return d<o?0:a<t?h:-h}}function wC(e,t,r,n,i,a,o,s){if(s-=t,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);Kt[0]=-l,Kt[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=wn-1e-4){n=0,i=wn;var f=a?1:-1;return o>=Kt[0]+e&&o<=Kt[1]+e?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=wn,i+=wn);for(var v=0,h=0;h<2;h++){var d=Kt[h];if(d+e>o){var p=Math.atan2(s,d),f=a?1:-1;p<0&&(p=wn+p),(p>=n&&p<=i||p+wn>=n&&p+wn<=i)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),v+=f)}}return v}function C0(e,t,r,n,i){for(var a=e.data,o=e.len(),s=0,l=0,u=0,f=0,c=0,v,h,d=0;d<o;){var p=a[d++],g=d===1;switch(p===Rr.M&&d>1&&(r||(s+=_r(l,u,f,c,n,i))),g&&(l=a[d],u=a[d+1],f=l,c=u),p){case Rr.M:f=a[d++],c=a[d++],l=f,u=c;break;case Rr.L:if(r){if(vi(l,u,a[d],a[d+1],t,n,i))return!0}else s+=_r(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Rr.C:if(r){if(pC(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=bC(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Rr.Q:if(r){if(gC(l,u,a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=SC(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Rr.A:var y=a[d++],m=a[d++],_=a[d++],x=a[d++],w=a[d++],b=a[d++];d+=1;var S=!!(1-a[d++]);v=Math.cos(w)*_+y,h=Math.sin(w)*x+m,g?(f=v,c=h):s+=_r(l,u,v,h,n,i);var T=(n-y)*x/_+y;if(r){if(yC(y,m,x,w,w+b,S,t,T,i))return!0}else s+=wC(y,m,x,w,w+b,S,T,i);l=Math.cos(w+b)*_+y,u=Math.sin(w+b)*x+m;break;case Rr.R:f=l=a[d++],c=u=a[d++];var D=a[d++],M=a[d++];if(v=f+D,h=c+M,r){if(vi(f,c,v,c,t,n,i)||vi(v,c,v,h,t,n,i)||vi(v,h,f,h,t,n,i)||vi(f,h,f,c,t,n,i))return!0}else s+=_r(v,c,v,h,n,i),s+=_r(f,h,f,c,n,i);break;case Rr.Z:if(r){if(vi(l,u,f,c,t,n,i))return!0}else s+=_r(l,u,f,c,n,i);l=f,u=c;break}}return!r&&!_C(u,c)&&(s+=_r(l,u,f,c,n,i)||0),s!==0}function TC(e,t,r){return C0(e,0,!1,t,r)}function CC(e,t,r,n){return C0(e,t,!0,r,n)}var D0=Y({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Hn),DC={style:Y({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Pl.style)},Gu=Ja.concat(["invisible","culling","z","z2","zlevel","parent"]),AC=function(e){R(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<Gu.length;++s)i[Gu[s]]=this[Gu[s]];i.__dirty|=pe}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=mt(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];o==="style"?this.style?k(this.style,s):this.useStyle(s):o==="shape"?k(this.shape,s):e.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if($(r)){var n=Qa(r,0);return n>.5?nc:n>.2?tT:ic}else if(r)return ic}return nc},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if($(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Qa(r,0)<rc;if(a===o)return n}},t.prototype.buildPath=function(r,n,i){},t.prototype.pathUpdated=function(){this.__dirty&=~Ai},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new Mr(!1)},t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Ai)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f==null?4:f)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),CC(s,l/u,r,n)))return!0}if(this.hasFill())return TC(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Ai,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:k(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Ai)},t.prototype.createStyle=function(r){return yo(D0,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=k({},this.shape))},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=k({},i.shape),k(u,n.shape)):(u=k({},a?this.shape:i.shape),k(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=k({},this.shape);for(var f={},c=mt(u),v=0;v<c.length;v++){var h=c[v];typeof u[h]=="object"?this.shape[h]=u[h]:f[h]=u[h]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},t.prototype.getAnimationStyleProps=function(){return DC},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(a){R(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return j(r.style)},o.prototype.getDefaultShape=function(){return j(r.shape)},o}(t);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},t.initDefaultProps=function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=pe|Ea|Ai}(),t}(Qi);const ot=AC;var MC=Y({strokeFirst:!0,font:qn,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},D0),A0=function(e){R(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return n!=null&&n!=="none"&&r.lineWidth>0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return yo(MC,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var i=Al(n,r.font,r.textAlign,r.textBaseline);if(i.x+=r.x||0,i.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(Qi);A0.prototype.type="tspan";const uc=A0;var EC=Y({x:0,y:0},Hn),LC={style:Y({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Pl.style)};function PC(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var M0=function(e){R(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return yo(EC,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=PC(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return LC},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new it(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Qi);M0.prototype.type="image";const sn=M0;function IC(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,f;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>i&&(c=s+l,s*=i/c,l*=i/c),u+f>i&&(c=u+f,u*=i/c,f*=i/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),e.moveTo(r+s,n),e.lineTo(r+i-l,n),l!==0&&e.arc(r+i-l,n+l,l,-Math.PI/2,0),e.lineTo(r+i,n+a-u),u!==0&&e.arc(r+i-u,n+a-u,u,0,Math.PI/2),e.lineTo(r+f,n+a),f!==0&&e.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var Li=Math.round;function E0(e,t,r){if(!!t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=n,e.x2=i,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(Li(n*2)===Li(i*2)&&(e.x1=e.x2=Fn(n,s,!0)),Li(a*2)===Li(o*2)&&(e.y1=e.y2=Fn(a,s,!0))),e}}function L0(e,t,r){if(!!t){var n=t.x,i=t.y,a=t.width,o=t.height;e.x=n,e.y=i,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=Fn(n,s,!0),e.y=Fn(i,s,!0),e.width=Math.max(Fn(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Fn(i+o,s,!1)-e.y,o===0?0:1)),e}}function Fn(e,t,r){if(!t)return e;var n=Li(e*2);return(n+Li(t))%2===0?n/2:(n+(r?1:-1))/2}var OC=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),NC={},P0=function(e){R(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new OC},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=L0(NC,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?IC(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(ot);P0.prototype.type="rect";const wt=P0;var Pd={fill:"#000"},Id=2,RC={style:Y({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Pl.style)},I0=function(e){R(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Pd,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,zC(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new it(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||Pd},t.prototype.setTextContent=function(r){if(process.env.NODE_ENV!=="production")throw new Error("Can't attach text on another text")},t.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return k(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},t.prototype._mergeRich=function(r,n){for(var i=mt(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},k(r[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return RC},t.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||qn,i=r.padding,a=Vd(r),o=tC(a,r),s=$u(r),l=!!r.backgroundColor,u=o.outerHeight,f=o.outerWidth,c=o.contentWidth,v=o.lines,h=o.lineHeight,d=this._defaultStyle,p=r.x||0,g=r.y||0,y=r.align||d.align||"left",m=r.verticalAlign||d.verticalAlign||"top",_=p,x=Mi(g,o.contentHeight,m);if(s||i){var w=Pa(p,f,y),b=Mi(g,u,m);s&&this._renderBackground(r,r,w,b,f,u)}x+=h/2,i&&(_=Fd(p,y,i),m==="top"?x+=i[0]:m==="bottom"&&(x-=i[2]));for(var S=0,T=!1,D=Bd("fill"in r?r.fill:(T=!0,d.fill)),M=kd("stroke"in r?r.stroke:!l&&(!d.autoStroke||T)?(S=Id,d.stroke):null),C=r.textShadowBlur>0,E=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),L=o.calculatedLineHeight,P=0;P<v.length;P++){var I=this._getOrCreateChild(uc),O=I.createStyle();I.useStyle(O),O.text=v[P],O.x=_,O.y=x,y&&(O.textAlign=y),O.textBaseline="middle",O.opacity=r.opacity,O.strokeFirst=!0,C&&(O.shadowBlur=r.textShadowBlur||0,O.shadowColor=r.textShadowColor||"transparent",O.shadowOffsetX=r.textShadowOffsetX||0,O.shadowOffsetY=r.textShadowOffsetY||0),O.stroke=M,O.fill=D,M&&(O.lineWidth=r.lineWidth||S,O.lineDash=r.lineDash,O.lineDashOffset=r.lineDashOffset||0),O.font=n,Nd(O,r),x+=h,E&&I.setBoundingRect(new it(Pa(O.x,r.width,O.textAlign),Mi(O.y,L,O.textBaseline),c,L))}},t.prototype._updateRichTexts=function(){var r=this.style,n=Vd(r),i=nC(n,r),a=i.width,o=i.outerWidth,s=i.outerHeight,l=r.padding,u=r.x||0,f=r.y||0,c=this._defaultStyle,v=r.align||c.align,h=r.verticalAlign||c.verticalAlign,d=Pa(u,o,v),p=Mi(f,s,h),g=d,y=p;l&&(g+=l[3],y+=l[0]);var m=g+a;$u(r)&&this._renderBackground(r,r,d,p,o,s);for(var _=!!r.backgroundColor,x=0;x<i.lines.length;x++){for(var w=i.lines[x],b=w.tokens,S=b.length,T=w.lineHeight,D=w.width,M=0,C=g,E=m,L=S-1,P=void 0;M<S&&(P=b[M],!P.align||P.align==="left");)this._placeToken(P,r,T,y,C,"left",_),D-=P.width,C+=P.width,M++;for(;L>=0&&(P=b[L],P.align==="right");)this._placeToken(P,r,T,y,E,"right",_),D-=P.width,E-=P.width,L--;for(C+=(a-(C-g)-(m-E)-D)/2;M<=L;)P=b[M],this._placeToken(P,r,T,y,C+P.width/2,"center",_),C+=P.width,M++;y+=T}},t.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=a+i/2;f==="top"?c=a+r.height/2:f==="bottom"&&(c=a+i-r.height/2);var v=!r.isLineHolder&&$u(u);v&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var h=!!u.backgroundColor,d=r.textPadding;d&&(o=Fd(o,s,d),c-=r.height/2-d[0]-r.innerHeight/2);var p=this._getOrCreateChild(uc),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,_=0,x=Bd("fill"in u?u.fill:"fill"in n?n.fill:(m=!0,y.fill)),w=kd("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!y.autoStroke||m)?(_=Id,y.stroke):null),b=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=c,b&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=r.font||qn,g.opacity=Kr(u.opacity,n.opacity,1),Nd(g,u),w&&(g.lineWidth=Kr(u.lineWidth,n.lineWidth,_),g.lineDash=nt(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=w),x&&(g.fill=x);var S=r.contentWidth,T=r.contentHeight;p.setBoundingRect(new it(Pa(g.x,S,g.textAlign),Mi(g.y,T,g.textBaseline),S,T))},t.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,v=l&&!c,h=r.borderRadius,d=this,p,g;if(v||r.lineHeight||u&&f){p=this._getOrCreateChild(wt),p.useStyle(p.createStyle()),p.style.fill=null;var y=p.shape;y.x=i,y.y=a,y.width=o,y.height=s,y.r=h,p.dirtyShape()}if(v){var m=p.style;m.fill=l||null,m.fillOpacity=nt(r.fillOpacity,1)}else if(c){g=this._getOrCreateChild(sn),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var m=p.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=nt(r.strokeOpacity,1),m.lineDash=r.borderDash,m.lineDashOffset=r.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var x=(p||g).style;x.shadowBlur=r.shadowBlur||0,x.shadowColor=r.shadowColor||"transparent",x.shadowOffsetX=r.shadowOffsetX||0,x.shadowOffsetY=r.shadowOffsetY||0,x.opacity=Kr(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return VC(r)&&(n=[r.fontStyle,r.fontWeight,FC(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&He(n)||r.textFont||r.font},t}(Qi),kC={left:!0,right:1,center:1},BC={top:1,bottom:1,middle:1},Od=["fontStyle","fontWeight","fontSize","fontFamily"];function FC(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?ah+"px":e+"px"}function Nd(e,t){for(var r=0;r<Od.length;r++){var n=Od[r],i=t[n];i!=null&&(e[n]=i)}}function VC(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function zC(e){return Rd(e),A(e.rich,Rd),e}function Rd(e){if(e){e.font=I0.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||kC[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||BC[r]?r:"top";var n=e.padding;n&&(e.padding=ch(e.padding))}}function kd(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function Bd(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function Fd(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function Vd(e){var t=e.text;return t!=null&&(t+=""),t}function $u(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}const Ot=I0;var ut=xt(),GC=function(e,t,r,n){if(n){var i=ut(n);i.dataIndex=r,i.dataType=t,i.seriesIndex=e,n.type==="group"&&n.traverse(function(a){var o=ut(a);o.seriesIndex=e,o.dataIndex=r,o.dataType=t})}},zd=1,Gd={},O0=xt(),Ah=xt(),Mh=0,Il=1,Ol=2,Pe=["emphasis","blur","select"],js=["normal","emphasis","blur","select"],$C=10,HC=9,Wn="highlight",Ls="downplay",za="select",Ps="unselect",Ga="toggleSelect";function di(e){return e!=null&&e!=="none"}var $d=new _o(100);function Hd(e){if($(e)){var t=$d.get(e);return t||(t=jf(e,-.1),$d.put(e,t)),t}else if(go(e)){var r=k({},e);return r.colorStops=z(e.colorStops,function(n){return{offset:n.offset,color:jf(n.color,-.1)}}),r}return e}function Nl(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function N0(e){Nl(e,"emphasis",Ol)}function R0(e){e.hoverState===Ol&&Nl(e,"normal",Mh)}function Eh(e){Nl(e,"blur",Il)}function k0(e){e.hoverState===Il&&Nl(e,"normal",Mh)}function WC(e){e.selected=!0}function UC(e){e.selected=!1}function Wd(e,t,r){t(e,r)}function Pr(e,t,r){Wd(e,t,r),e.isGroup&&e.traverse(function(n){Wd(n,t,r)})}function Ud(e,t){switch(t){case"emphasis":e.hoverState=Ol;break;case"normal":e.hoverState=Mh;break;case"blur":e.hoverState=Il;break;case"select":e.selected=!0}}function YC(e,t,r,n){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o],l=i[s];a[s]=l==null?n&&n[s]:l}for(var o=0;o<e.animators.length;o++){var u=e.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,t)}return a}function XC(e,t,r,n){var i=r&&ct(r,"select")>=0,a=!1;if(e instanceof ot){var o=O0(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(di(s)||di(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=k({},n),u=k({},u),u.fill=s):!di(u.fill)&&di(s)?(a=!0,n=k({},n),u=k({},u),u.fill=Hd(s)):!di(u.stroke)&&di(l)&&(a||(n=k({},n),u=k({},u)),u.stroke=Hd(l)),n.style=u}}if(n&&n.z2==null){a||(n=k({},n));var f=e.z2EmphasisLift;n.z2=e.z2+(f!=null?f:$C)}return n}function qC(e,t,r){if(r&&r.z2==null){r=k({},r);var n=e.z2SelectLift;r.z2=e.z2+(n!=null?n:HC)}return r}function ZC(e,t,r){var n=ct(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:YC(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=k({},r),o=k({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Hu(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return XC(this,e,t,r);if(e==="blur")return ZC(this,e,r);if(e==="select")return qC(this,e,r)}return r}function jC(e){e.stateProxy=Hu;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Hu),r&&(r.stateProxy=Hu)}function Yd(e,t){!z0(e,t)&&!e.__highByOuter&&Pr(e,N0)}function Xd(e,t){!z0(e,t)&&!e.__highByOuter&&Pr(e,R0)}function Ks(e,t){e.__highByOuter|=1<<(t||0),Pr(e,N0)}function Qs(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Pr(e,R0)}function KC(e){Pr(e,Eh)}function B0(e){Pr(e,k0)}function F0(e){Pr(e,WC)}function V0(e){Pr(e,UC)}function z0(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function G0(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=Ah(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){k0(u)}),s&&r.push(a)),o.isBlured=!1}),A(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function fc(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,f){for(var c=0;c<f.length;c++){var v=u.getItemGraphicEl(f[c]);v&&B0(v)}}if(e!=null&&!(!t||t==="none")){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var v=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!v||t==="series"&&f)){var h=n.getViewOfSeriesModel(u);if(h.group.traverse(function(g){g.__highByOuter&&f&&t==="self"||Eh(g)}),Xt(t))a(u.getData(),t);else if(H(t))for(var d=mt(t),p=0;p<d.length;p++)a(u.getData(d[p]),t[d[p]]);l.push(u),Ah(u).isBlured=!0}}),i.eachComponent(function(u,f){if(u!=="series"){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,i)}})}}function cc(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(!!n){Ah(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){Eh(a)})}}}function QC(e,t,r){var n=e.seriesIndex,i=e.getData(t.dataType);if(!i){process.env.NODE_ENV!=="production"&&qt("Unknown dataType "+t.dataType);return}var a=Zn(i,t);a=(V(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=ut(o);fc(n,u.focus,u.blurScope,r)}else{var f=e.get(["emphasis","focus"]),c=e.get(["emphasis","blurScope"]);f!=null&&fc(n,f,c,r)}}function Lh(e,t,r,n){var i={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return i;var a=n.getModel().getComponent(e,t);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(process.env.NODE_ENV!=="production"&&!Wi(s[u])&&qt("param should be highDownDispatcher"),ut(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function JC(e,t,r){process.env.NODE_ENV!=="production"&&!Wi(e)&&qt("param should be highDownDispatcher");var n=ut(e),i=Lh(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&cc(n.componentMainType,n.componentIndex,r),A(a,function(s){return Yd(s,t)})):(fc(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&cc(n.componentMainType,n.componentIndex,r),Yd(e,t))}function tD(e,t,r){process.env.NODE_ENV!=="production"&&!Wi(e)&&qt("param should be highDownDispatcher"),G0(r);var n=ut(e),i=Lh(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?A(i,function(a){return Xd(a,t)}):Xd(e,t)}function eD(e,t,r){if(!!hc(t)){var n=t.dataType,i=e.getData(n),a=Zn(i,t);V(a)||(a=[a]),e[t.type===Ga?"toggleSelect":t.type===za?"select":"unselect"](a,n)}}function qd(e){var t=e.getAllData();A(t,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){e.isSelected(o,i)?F0(a):V0(a)})})}function rD(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();A(n,function(i){i.data;var a=i.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function Js(e,t,r){$0(e,!0),Pr(e,jC),iD(e,t,r)}function nD(e){$0(e,!1)}function Hi(e,t,r,n){n?nD(e):Js(e,t,r)}function iD(e,t,r){var n=ut(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var Zd=["emphasis","blur","select"],aD={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function eo(e,t,r,n){r=r||"itemStyle";for(var i=0;i<Zd.length;i++){var a=Zd[i],o=t.getModel([a,r]),s=e.ensureState(a);s.style=n?n(o):o[aD[r]]()}}function $0(e,t){var r=t===!1,n=e;e.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function Wi(e){return!!(e&&e.__highDownDispatcher)}function oD(e){var t=Gd[e];return t==null&&zd<=32&&(t=Gd[e]=zd++),t}function hc(e){var t=e.type;return t===za||t===Ps||t===Ga}function jd(e){var t=e.type;return t===Wn||t===Ls}function sD(e){var t=O0(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var pi=Mr.CMD,lD=[[],[],[]],Kd=Math.sqrt,uD=Math.atan2;function H0(e,t){if(!!t){var r=e.data,n=e.len(),i,a,o,s,l,u,f=pi.M,c=pi.C,v=pi.L,h=pi.R,d=pi.A,p=pi.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case f:a=1;break;case v:a=1;break;case c:a=3;break;case p:a=2;break;case d:var g=t[4],y=t[5],m=Kd(t[0]*t[0]+t[1]*t[1]),_=Kd(t[2]*t[2]+t[3]*t[3]),x=uD(-t[1]/_,t[0]/m);r[o]*=m,r[o++]+=g,r[o]*=_,r[o++]+=y,r[o++]*=m,r[o++]*=_,r[o++]+=x,r[o++]+=x,o+=2,s=o;break;case h:u[0]=r[o++],u[1]=r[o++],ee(u,u,t),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],ee(u,u,t),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var w=lD[l];w[0]=r[o++],w[1]=r[o++],ee(w,w,t),r[s++]=w[0],r[s++]=w[1]}}e.increaseVersion()}}var Wu=Math.sqrt,Ho=Math.sin,Wo=Math.cos,da=Math.PI;function Qd(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function vc(e,t){return(e[0]*t[0]+e[1]*t[1])/(Qd(e)*Qd(t))}function Jd(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(vc(e,t))}function tp(e,t,r,n,i,a,o,s,l,u,f){var c=l*(da/180),v=Wo(c)*(e-r)/2+Ho(c)*(t-n)/2,h=-1*Ho(c)*(e-r)/2+Wo(c)*(t-n)/2,d=v*v/(o*o)+h*h/(s*s);d>1&&(o*=Wu(d),s*=Wu(d));var p=(i===a?-1:1)*Wu((o*o*(s*s)-o*o*(h*h)-s*s*(v*v))/(o*o*(h*h)+s*s*(v*v)))||0,g=p*o*h/s,y=p*-s*v/o,m=(e+r)/2+Wo(c)*g-Ho(c)*y,_=(t+n)/2+Ho(c)*g+Wo(c)*y,x=Jd([1,0],[(v-g)/o,(h-y)/s]),w=[(v-g)/o,(h-y)/s],b=[(-1*v-g)/o,(-1*h-y)/s],S=Jd(w,b);if(vc(w,b)<=-1&&(S=da),vc(w,b)>=1&&(S=0),S<0){var T=Math.round(S/da*1e6)/1e6;S=da*2+T%2*da}f.addData(u,m,_,o,s,x,S,c,a)}var fD=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,cD=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function hD(e){var t=new Mr;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=Mr.CMD,l=e.match(fD);if(!l)return t;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),v=void 0,h=f.match(cD)||[],d=h.length,p=0;p<d;p++)h[p]=parseFloat(h[p]);for(var g=0;g<d;){var y=void 0,m=void 0,_=void 0,x=void 0,w=void 0,b=void 0,S=void 0,T=r,D=n,M=void 0,C=void 0;switch(c){case"l":r+=h[g++],n+=h[g++],v=s.L,t.addData(v,r,n);break;case"L":r=h[g++],n=h[g++],v=s.L,t.addData(v,r,n);break;case"m":r+=h[g++],n+=h[g++],v=s.M,t.addData(v,r,n),i=r,a=n,c="l";break;case"M":r=h[g++],n=h[g++],v=s.M,t.addData(v,r,n),i=r,a=n,c="L";break;case"h":r+=h[g++],v=s.L,t.addData(v,r,n);break;case"H":r=h[g++],v=s.L,t.addData(v,r,n);break;case"v":n+=h[g++],v=s.L,t.addData(v,r,n);break;case"V":n=h[g++],v=s.L,t.addData(v,r,n);break;case"C":v=s.C,t.addData(v,h[g++],h[g++],h[g++],h[g++],h[g++],h[g++]),r=h[g-2],n=h[g-1];break;case"c":v=s.C,t.addData(v,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n),r+=h[g-2],n+=h[g-1];break;case"S":y=r,m=n,M=t.len(),C=t.data,o===s.C&&(y+=r-C[M-4],m+=n-C[M-3]),v=s.C,T=h[g++],D=h[g++],r=h[g++],n=h[g++],t.addData(v,y,m,T,D,r,n);break;case"s":y=r,m=n,M=t.len(),C=t.data,o===s.C&&(y+=r-C[M-4],m+=n-C[M-3]),v=s.C,T=r+h[g++],D=n+h[g++],r+=h[g++],n+=h[g++],t.addData(v,y,m,T,D,r,n);break;case"Q":T=h[g++],D=h[g++],r=h[g++],n=h[g++],v=s.Q,t.addData(v,T,D,r,n);break;case"q":T=h[g++]+r,D=h[g++]+n,r+=h[g++],n+=h[g++],v=s.Q,t.addData(v,T,D,r,n);break;case"T":y=r,m=n,M=t.len(),C=t.data,o===s.Q&&(y+=r-C[M-4],m+=n-C[M-3]),r=h[g++],n=h[g++],v=s.Q,t.addData(v,y,m,r,n);break;case"t":y=r,m=n,M=t.len(),C=t.data,o===s.Q&&(y+=r-C[M-4],m+=n-C[M-3]),r+=h[g++],n+=h[g++],v=s.Q,t.addData(v,y,m,r,n);break;case"A":_=h[g++],x=h[g++],w=h[g++],b=h[g++],S=h[g++],T=r,D=n,r=h[g++],n=h[g++],v=s.A,tp(T,D,r,n,b,S,_,x,w,v,t);break;case"a":_=h[g++],x=h[g++],w=h[g++],b=h[g++],S=h[g++],T=r,D=n,r+=h[g++],n+=h[g++],v=s.A,tp(T,D,r,n,b,S,_,x,w,v,t);break}}(c==="z"||c==="Z")&&(v=s.Z,t.addData(v),r=i,n=a),o=v}return t.toStatic(),t}var W0=function(e){R(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(ot);function U0(e){return e.setData!=null}function Y0(e,t){var r=hD(e),n=k({},t);return n.buildPath=function(i){if(U0(i)){i.setData(r.data);var a=i.getContext();a&&i.rebuildPath(a,1)}else{var a=i;r.rebuildPath(a,1)}},n.applyTransform=function(i){H0(r,i),this.dirtyShape()},n}function vD(e,t){return new W0(Y0(e,t))}function dD(e,t){var r=Y0(e,t),n=function(i){R(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a}(W0);return n}function pD(e,t){for(var r=[],n=e.length,i=0;i<n;i++){var a=e[i];r.push(a.getUpdatedPathProxy(!0))}var o=new ot(t);return o.createPathProxy(),o.buildPath=function(s){if(U0(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function Ph(e,t){t=t||{};var r=new ot;return e.shape&&r.setShape(e.shape),r.setStyle(e.style),t.bakeTransform?H0(r.path,e.getComputedTransform()):t.toLocal?r.setLocalTransform(e.getComputedTransform()):r.copyTransform(e),r.buildPath=e.buildPath,r.applyTransform=r.applyTransform,r.z=e.z,r.z2=e.z2,r.zlevel=e.zlevel,r}var gD=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),X0=function(e){R(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new gD},t.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t}(ot);X0.prototype.type="circle";const rn=X0;var yD=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),q0=function(e){R(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new yD},t.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,f=l*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),r.closePath()},t}(ot);q0.prototype.type="ellipse";const Ih=q0;var Z0=Math.PI,Uu=Z0*2,Tn=Math.sin,gi=Math.cos,mD=Math.acos,$t=Math.atan2,ep=Math.abs,$a=Math.sqrt,Oa=Math.max,Je=Math.min,Ve=1e-4;function _D(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,f=o-i,c=s-a,v=c*l-f*u;if(!(v*v<Ve))return v=(f*(t-a)-c*(e-i))/v,[e+v*l,t+v*u]}function Uo(e,t,r,n,i,a,o){var s=e-r,l=t-n,u=(o?a:-a)/$a(s*s+l*l),f=u*l,c=-u*s,v=e+f,h=t+c,d=r+f,p=n+c,g=(v+d)/2,y=(h+p)/2,m=d-v,_=p-h,x=m*m+_*_,w=i-a,b=v*p-d*h,S=(_<0?-1:1)*$a(Oa(0,w*w*x-b*b)),T=(b*_-m*S)/x,D=(-b*m-_*S)/x,M=(b*_+m*S)/x,C=(-b*m+_*S)/x,E=T-g,L=D-y,P=M-g,I=C-y;return E*E+L*L>P*P+I*I&&(T=M,D=C),{cx:T,cy:D,x0:-f,y0:-c,x1:T*(i/w-1),y1:D*(i/w-1)}}function xD(e){var t;if(V(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function bD(e,t){var r,n=Oa(t.r,0),i=Oa(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,c=t.cy,v=!!t.clockwise,h=ep(u-l),d=h>Uu&&h%Uu;if(d>Ve&&(h=d),!(n>Ve))e.moveTo(f,c);else if(h>Uu-Ve)e.moveTo(f+n*gi(l),c+n*Tn(l)),e.arc(f,c,n,l,u,!v),i>Ve&&(e.moveTo(f+i*gi(u),c+i*Tn(u)),e.arc(f,c,i,u,l,v));else{var p=void 0,g=void 0,y=void 0,m=void 0,_=void 0,x=void 0,w=void 0,b=void 0,S=void 0,T=void 0,D=void 0,M=void 0,C=void 0,E=void 0,L=void 0,P=void 0,I=n*gi(l),O=n*Tn(l),F=i*gi(u),N=i*Tn(u),B=h>Ve;if(B){var G=t.cornerRadius;G&&(r=xD(G),p=r[0],g=r[1],y=r[2],m=r[3]);var W=ep(n-i)/2;if(_=Je(W,y),x=Je(W,m),w=Je(W,p),b=Je(W,g),D=S=Oa(_,x),M=T=Oa(w,b),(S>Ve||T>Ve)&&(C=n*gi(u),E=n*Tn(u),L=i*gi(l),P=i*Tn(l),h<Z0)){var Z=_D(I,O,L,P,C,E,F,N);if(Z){var et=I-Z[0],ft=O-Z[1],At=C-Z[0],yt=E-Z[1],zt=1/Tn(mD((et*At+ft*yt)/($a(et*et+ft*ft)*$a(At*At+yt*yt)))/2),Gt=$a(Z[0]*Z[0]+Z[1]*Z[1]);D=Je(S,(n-Gt)/(zt+1)),M=Je(T,(i-Gt)/(zt-1))}}}if(!B)e.moveTo(f+I,c+O);else if(D>Ve){var Pt=Je(y,D),bt=Je(m,D),q=Uo(L,P,I,O,n,Pt,v),at=Uo(C,E,F,N,n,bt,v);e.moveTo(f+q.cx+q.x0,c+q.cy+q.y0),D<S&&Pt===bt?e.arc(f+q.cx,c+q.cy,D,$t(q.y0,q.x0),$t(at.y0,at.x0),!v):(Pt>0&&e.arc(f+q.cx,c+q.cy,Pt,$t(q.y0,q.x0),$t(q.y1,q.x1),!v),e.arc(f,c,n,$t(q.cy+q.y1,q.cx+q.x1),$t(at.cy+at.y1,at.cx+at.x1),!v),bt>0&&e.arc(f+at.cx,c+at.cy,bt,$t(at.y1,at.x1),$t(at.y0,at.x0),!v))}else e.moveTo(f+I,c+O),e.arc(f,c,n,l,u,!v);if(!(i>Ve)||!B)e.lineTo(f+F,c+N);else if(M>Ve){var Pt=Je(p,M),bt=Je(g,M),q=Uo(F,N,C,E,i,-bt,v),at=Uo(I,O,L,P,i,-Pt,v);e.lineTo(f+q.cx+q.x0,c+q.cy+q.y0),M<T&&Pt===bt?e.arc(f+q.cx,c+q.cy,M,$t(q.y0,q.x0),$t(at.y0,at.x0),!v):(bt>0&&e.arc(f+q.cx,c+q.cy,bt,$t(q.y0,q.x0),$t(q.y1,q.x1),!v),e.arc(f,c,i,$t(q.cy+q.y1,q.cx+q.x1),$t(at.cy+at.y1,at.cx+at.x1),v),Pt>0&&e.arc(f+at.cx,c+at.cy,Pt,$t(at.y1,at.x1),$t(at.y0,at.x0),!v))}else e.lineTo(f+F,c+N),e.arc(f,c,i,u,l,v)}e.closePath()}}}var SD=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),j0=function(e){R(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new SD},t.prototype.buildPath=function(r,n){bD(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(ot);j0.prototype.type="sector";const Ie=j0;var wD=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),K0=function(e){R(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new wD},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},t}(ot);K0.prototype.type="ring";const To=K0;function TD(e,t,r,n){var i=[],a=[],o=[],s=[],l,u,f,c;if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var v=0,h=e.length;v<h;v++)Ur(f,f,e[v]),Yr(c,c,e[v]);Ur(f,f,n[0]),Yr(c,c,n[1])}for(var v=0,h=e.length;v<h;v++){var d=e[v];if(r)l=e[v?v-1:h-1],u=e[(v+1)%h];else if(v===0||v===h-1){i.push(Lm(e[v]));continue}else l=e[v-1],u=e[v+1];Pm(a,u,l),ws(a,a,t);var p=Gs(d,l),g=Gs(d,u),y=p+g;y!==0&&(p/=y,g/=y),ws(o,a,-p),ws(s,a,g);var m=Hf([],d,o),_=Hf([],d,s);n&&(Yr(m,m,f),Ur(m,m,c),Yr(_,_,f),Ur(_,_,c)),i.push(m),i.push(_)}return r&&i.push(i.shift()),i}function Q0(e,t,r){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var a=TD(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;s<c;s++)e.lineTo(i[s][0],i[s][1])}r&&e.closePath()}}var CD=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),J0=function(e){R(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new CD},t.prototype.buildPath=function(r,n){Q0(r,n,!0)},t}(ot);J0.prototype.type="polygon";const ai=J0;var DD=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),t_=function(e){R(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new DD},t.prototype.buildPath=function(r,n){Q0(r,n,!1)},t}(ot);t_.prototype.type="polyline";const ln=t_;var AD={},MD=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),e_=function(e){R(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new MD},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=E0(AD,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},t.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},t}(ot);e_.prototype.type="line";const Me=e_;var ae=[],ED=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function rp(e,t,r){var n=e.cpx2,i=e.cpy2;return n!=null||i!=null?[(r?id:Nt)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?id:Nt)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?ad:Wt)(e.x1,e.cpx1,e.x2,t),(r?ad:Wt)(e.y1,e.cpy1,e.y2,t)]}var r_=function(e){R(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ED},t.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,c=n.cpy2,v=n.percent;v!==0&&(r.moveTo(i,a),f==null||c==null?(v<1&&(Us(i,l,o,v,ae),l=ae[1],o=ae[2],Us(a,u,s,v,ae),u=ae[1],s=ae[2]),r.quadraticCurveTo(l,u,o,s)):(v<1&&(tn(i,l,f,o,v,ae),l=ae[1],f=ae[2],o=ae[3],tn(a,u,c,s,v,ae),u=ae[1],c=ae[2],s=ae[3]),r.bezierCurveTo(l,u,f,c,o,s)))},t.prototype.pointAt=function(r){return rp(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=rp(this.shape,r,!0);return Im(n,n)},t}(ot);r_.prototype.type="bezier-curve";const Oh=r_;var LD=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),n_=function(e){R(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new LD},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*o+i,c*o+a),r.arc(i,a,o,s,l,!u)},t}(ot);n_.prototype.type="arc";const Rl=n_;var PD=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ot.prototype.getBoundingRect.call(this)},t}(ot);const i_=PD;var ID=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}();const a_=ID;var OD=function(e){R(t,e);function t(r,n,i,a,o,s){var l=e.call(this,o)||this;return l.x=r==null?0:r,l.y=n==null?0:n,l.x2=i==null?1:i,l.y2=a==null?0:a,l.type="linear",l.global=s||!1,l}return t}(a_);const Nh=OD;var ND=function(e){R(t,e);function t(r,n,i,a,o){var s=e.call(this,a)||this;return s.x=r==null?.5:r,s.y=n==null?.5:n,s.r=i==null?.5:i,s.type="radial",s.global=o||!1,s}return t}(a_);const o_=ND;var Cn=[0,0],Dn=[0,0],Yo=new U,Xo=new U,RD=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new U;for(var n=0;n<2;n++)this._axes[n]=new U;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,i=this._axes,a=t.x,o=t.y,s=a+t.width,l=o+t.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),r)for(var u=0;u<4;u++)n[u].transform(r);U.sub(i[0],n[1],n[0]),U.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},e.prototype.intersect=function(t,r){var n=!0,i=!r;return Yo.set(1/0,1/0),Xo.set(0,0),!this._intersectCheckOneSide(this,t,Yo,Xo,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,Yo,Xo,i,-1)&&(n=!1,i)||i||U.copy(r,n?Yo:Xo),n},e.prototype._intersectCheckOneSide=function(t,r,n,i,a,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,Cn),this._getProjMinMaxOnAxis(l,r._corners,Dn),Cn[1]<Dn[0]||Cn[0]>Dn[1]){if(s=!1,a)return s;var f=Math.abs(Dn[0]-Cn[1]),c=Math.abs(Cn[0]-Dn[1]);Math.min(f,c)>i.len()&&(f<c?U.scale(i,u,-f*o):U.scale(i,u,c*o))}else if(n){var f=Math.abs(Dn[0]-Cn[1]),c=Math.abs(Cn[0]-Dn[1]);Math.min(f,c)<n.len()&&(f<c?U.scale(n,u,f*o):U.scale(n,u,-c*o))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var i=this._axes[t],a=this._origin,o=r[0].dot(i)+a[t],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(i)+a[t];s=Math.min(f,s),l=Math.max(f,l)}n[0]=s,n[1]=l},e}();const tl=RD;var kD=[],BD=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new it(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(kD)),r.union(a)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},t}(Qi);const s_=BD;var l_=xt();function kl(e,t,r,n,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,f=void 0,c=void 0;n?(u=nt(n.duration,200),f=nt(n.easing,"cubicOut"),c=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),c=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay)),X(c)&&(c=c(r,i)),X(u)&&(u=u(r));var v={duration:u||0,delay:c,easing:f};return v}else return null}function Rh(e,t,r,n,i,a,o){var s=!1,l;X(i)?(o=a,a=i,i=null):H(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var f=kl(e,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,i):null);if(f&&f.duration>0){var c=f.duration,v=f.delay,h=f.easing,d={duration:c,delay:v||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,d):t.animateTo(r,d)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function Lt(e,t,r,n,i,a){Rh("update",e,t,r,n,i,a)}function Bt(e,t,r,n,i,a){Rh("enter",e,t,r,n,i,a)}function Ni(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="leave")return!0}return!1}function el(e,t,r,n,i,a){Ni(e)||Rh("leave",e,t,r,n,i,a)}function np(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),el(e,{style:{opacity:0}},t,r,n)}function ro(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(i){i.isGroup||np(i,t,r,n)}):np(e,t,r,n)}function Bl(e){l_(e).oldStyle=e.style}function FD(e){return l_(e).oldStyle}var rl=Math.max,nl=Math.min,dc={};function u_(e){return ot.extend(e)}var VD=dD;function f_(e,t){return VD(e,t)}function Re(e,t){dc[e]=t}function c_(e){if(dc.hasOwnProperty(e))return dc[e]}function Fl(e,t,r,n){var i=vD(e,t);return r&&(n==="center"&&(r=h_(r,i.getBoundingRect())),Bh(i,r)),i}function kh(e,t,r){var n=new sn({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(h_(t,a))}}});return n}function h_(e,t){var r=t.width/t.height,n=e.height*r,i;n<=e.width?i=e.height:(n=e.width,i=n/r);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var De=pD;function Bh(e,t){if(!!e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function no(e,t){return E0(e,e,{lineWidth:t}),e}function zD(e){return L0(e.shape,e.shape,e.style),e}var GD=Fn;function Fh(e,t){for(var r=mo([]);e&&e!==t;)Qr(r,e.getLocalTransform(),r),e=e.parent;return r}function Co(e,t,r){return t&&!Xt(t)&&(t=xo.getLocalTransform(t)),r&&(t=Ki([],t)),ee([],e,t)}function v_(e,t,r){var n=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[e==="left"?-n:e==="right"?n:0,e==="top"?-i:e==="bottom"?i:0];return a=Co(a,t,r),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function ip(e){return!e.isGroup}function $D(e){return e.shape!=null}function Vl(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){ip(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return $D(o)&&(s.shape=k({},o.shape)),s}var a=n(e);t.traverse(function(o){if(ip(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Lt(o,l,r,ut(o).dataIndex)}}})}function Vh(e,t){return z(e,function(r){var n=r[0];n=rl(n,t.x),n=nl(n,t.x+t.width);var i=r[1];return i=rl(i,t.y),i=nl(i,t.y+t.height),[n,i]})}function d_(e,t){var r=rl(e.x,t.x),n=nl(e.x+e.width,t.x+t.width),i=rl(e.y,t.y),a=nl(e.y+e.height,t.y+t.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function zl(e,t,r){var n=k({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),Y(i,r),new sn(n)):Fl(e.replace("path://",""),n,r,"center")}function HD(e,t,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(p_(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function p_(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,f=o-i,c=s-a,v=Yu(f,c,l,u);if(WD(v))return!1;var h=e-i,d=t-a,p=Yu(h,d,l,u)/v;if(p<0||p>1)return!1;var g=Yu(h,d,f,c)/v;return!(g<0||g>1)}function Yu(e,t,r,n){return e*n-r*t}function WD(e){return e<=1e-6&&e>=-1e-6}function zh(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=$(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=e.formatterParamsExtra;l&&A(mt(l),function(f){ur(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ut(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:Y({content:n,formatterParams:s},i)}}function ap(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Gl(e,t){if(e)if(V(e))for(var r=0;r<e.length;r++)ap(e[r],t);else ap(e,t)}Re("circle",rn);Re("ellipse",Ih);Re("sector",Ie);Re("ring",To);Re("polygon",ai);Re("polyline",ln);Re("rect",wt);Re("line",Me);Re("bezierCurve",Oh);Re("arc",Rl);const UD=Object.freeze(Object.defineProperty({__proto__:null,updateProps:Lt,initProps:Bt,removeElement:el,removeElementWithFadeOut:ro,isElementRemoved:Ni,extendShape:u_,extendPath:f_,registerShape:Re,getShapeClass:c_,makePath:Fl,makeImage:kh,mergePath:De,resizePath:Bh,subPixelOptimizeLine:no,subPixelOptimizeRect:zD,subPixelOptimize:GD,getTransform:Fh,applyTransform:Co,transformDirection:v_,groupTransition:Vl,clipPointsByRect:Vh,clipRectByRect:d_,createIcon:zl,linePolygonIntersect:HD,lineLineIntersect:p_,setTooltipConfig:zh,traverseElements:Gl,Group:Dt,Image:sn,Text:Ot,Circle:rn,Ellipse:Ih,Sector:Ie,Ring:To,Polygon:ai,Polyline:ln,Rect:wt,Line:Me,BezierCurve:Oh,Arc:Rl,IncrementalDisplayable:s_,CompoundPath:i_,LinearGradient:Nh,RadialGradient:o_,BoundingRect:it,OrientedBoundingRect:tl,Point:U,Path:ot},Symbol.toStringTag,{value:"Module"}));var $l={};function g_(e,t){for(var r=0;r<Pe.length;r++){var n=Pe[r],i=t[n],a=e.ensureState(n);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function pc(e,t,r){var n=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=X(e.defaultText)?e.defaultText(i,e,r):e.defaultText);for(var l={normal:s},u=0;u<Pe.length;u++){var f=Pe[u],c=t[f];l[f]=nt(n?n.getFormattedLabel(i,f,null,a,c&&c.get("formatter")):null,s)}return l}function Ji(e,t,r,n){r=r||$l;for(var i=e instanceof Ot,a=!1,o=0;o<js.length;o++){var s=t[js[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?e:e.getTextContent();if(a){i||(l||(l=new Ot,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=pc(r,t),f=t.normal,c=!!f.getShallow("show"),v=fr(f,n&&n.normal,r,!1,!i);v.text=u.normal,i||e.setTextConfig(op(f,r,!1));for(var o=0;o<Pe.length;o++){var h=Pe[o],s=t[h];if(s){var d=l.ensureState(h),p=!!nt(s.getShallow("show"),c);if(p!==c&&(d.ignore=!p),d.style=fr(s,n&&n[h],r,!0,!i),d.style.text=u[h],!i){var g=e.ensureState(h);g.textConfig=op(s,r,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(v.x=l.style.x),l.style.y!=null&&(v.y=l.style.y),l.ignore=!c,l.useStyle(v),l.dirty(),r.enableTextSetter&&(ea(l).setLabelText=function(y){var m=pc(r,t,y);g_(l,m)})}else l&&(l.ignore=!0);e.dirty()}function ta(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<Pe.length;n++){var i=Pe[n];r[i]=e.getModel([i,t])}return r}function fr(e,t,r,n,i){var a={};return YD(a,e,r,n,i),t&&k(a,t),a}function op(e,t,r){t=t||{};var n={},i,a=e.getShallow("rotate"),o=nt(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return i=e.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",n}function YD(e,t,r,n,i){r=r||$l;var a=t.ecModel,o=a&&a.option.textStyle,s=XD(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=t.getModel(["rich",u]);fp(l[u]={},f,o,r,n,i,!1,!0)}}l&&(e.rich=l);var c=t.get("overflow");c&&(e.overflow=c);var v=t.get("minMargin");v!=null&&(e.margin=v),fp(e,t,o,r,n,i,!0,!1)}function XD(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||$l).rich;if(r){t=t||{};for(var n=mt(r),i=0;i<n.length;i++){var a=n[i];t[a]=1}}e=e.parentModel}return t}var sp=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],lp=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],up=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function fp(e,t,r,n,i,a,o,s){r=!i&&r||$l;var l=n&&n.inheritColor,u=t.getShallow("color"),f=t.getShallow("textBorderColor"),c=nt(t.getShallow("opacity"),r.opacity);(u==="inherit"||u==="auto")&&(process.env.NODE_ENV!=="production"&&u==="auto"&&It("color: 'auto'","color: 'inherit'"),l?u=l:u=null),(f==="inherit"||f==="auto")&&(process.env.NODE_ENV!=="production"&&f==="auto"&&It("color: 'auto'","color: 'inherit'"),l?f=l:f=null),a||(u=u||r.color,f=f||r.textBorderColor),u!=null&&(e.fill=u),f!=null&&(e.stroke=f);var v=nt(t.getShallow("textBorderWidth"),r.textBorderWidth);v!=null&&(e.lineWidth=v);var h=nt(t.getShallow("textBorderType"),r.textBorderType);h!=null&&(e.lineDash=h);var d=nt(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);d!=null&&(e.lineDashOffset=d),!i&&c==null&&!s&&(c=n&&n.defaultOpacity),c!=null&&(e.opacity=c),!i&&!a&&e.fill==null&&n.inheritColor&&(e.fill=n.inheritColor);for(var p=0;p<sp.length;p++){var g=sp[p],y=nt(t.getShallow(g),r[g]);y!=null&&(e[g]=y)}for(var p=0;p<lp.length;p++){var g=lp[p],y=t.getShallow(g);y!=null&&(e[g]=y)}if(e.verticalAlign==null){var m=t.getShallow("baseline");m!=null&&(e.verticalAlign=m)}if(!o||!n.disableBox){for(var p=0;p<up.length;p++){var g=up[p],y=t.getShallow(g);y!=null&&(e[g]=y)}var _=t.getShallow("borderType");_!=null&&(e.borderDash=_),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&e.backgroundColor==="auto"&&It("backgroundColor: 'auto'","backgroundColor: 'inherit'"),e.backgroundColor=l),(e.borderColor==="auto"||e.borderColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&e.borderColor==="auto"&&It("borderColor: 'auto'","borderColor: 'inherit'"),e.borderColor=l)}}function qD(e,t){var r=t&&t.getModel("textStyle");return He([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var ea=xt();function ZD(e,t,r,n){if(!!e){var i=ea(e);i.prevValue=i.value,i.value=r;var a=t.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=t)}}function jD(e,t,r,n,i){var a=ea(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=nt(a.interpolatedValue,a.prevValue),l=a.value;function u(f){var c=g0(r,a.precision,s,l,f);a.interpolatedValue=f===1?null:c;var v=pc({labelDataIndex:t,labelFetcher:i,defaultText:o?o(c):c+""},a.statesModels,c);g_(e,v)}e.percent=0,(a.prevValue==null?Bt:Lt)(e,{percent:1},n,t,null,u)}var KD=["textStyle","color"],Xu=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],qu=new Ot,QD=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(KD):null)},e.prototype.getFont=function(){return qD({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Xu.length;n++)r[Xu[n]]=this.getShallow(Xu[n]);return qu.useStyle(r),qu.update(),qu.getBoundingRect()},e}();const JD=QD;var y_=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],tA=$i(y_),eA=function(){function e(){}return e.prototype.getLineStyle=function(t){return tA(this,t)},e}(),m_=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],rA=$i(m_),nA=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return rA(this,t,r)},e}(),oi=function(){function e(t,r,n){this.parentModel=r,this.ecModel=n,this.option=t}return e.prototype.init=function(t,r,n){},e.prototype.mergeOption=function(t,r){rt(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var n=this.option,i=n==null?n:n[t];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(t))}return i},e.prototype.getModel=function(t,r){var n=t!=null,i=n?this.parsePath(t):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(j(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!tt.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&!(!!t[i]&&(n=n&&typeof n=="object"?n[t[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(t),r.parentModel)),n},e}();Dh(oi);YT(oi);ie(oi,eA);ie(oi,nA);ie(oi,KT);ie(oi,JD);const Et=oi;var iA=Math.round(Math.random()*10);function Hl(e){return[e||"",iA++].join("_")}function aA(e){var t={};e.registerSubTypeDefaulter=function(r,n){var i=ir(r);t[i.main]=n},e.determineSubType=function(r,n){var i=n.type;if(!i){var a=ir(r).main;e.hasSubTypes(r)&&t[a]&&(i=t[a](n))}return i}}function oA(e,t){e.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),f=u.graph,c=u.noEntryList,v={};for(A(a,function(m){v[m]=!0});c.length;){var h=c.pop(),d=f[h],p=!!v[h];p&&(s.call(l,h,d.originalDeps.slice()),delete v[h]),A(d.successor,p?y:g)}A(v,function(){var m="";throw process.env.NODE_ENV!=="production"&&(m=he("Circular dependency may exists: ",v,a,o)),new Error(m)});function g(m){f[m].entryCount--,f[m].entryCount===0&&c.push(m)}function y(m){v[m]=!0,g(m)}};function r(a){var o={},s=[];return A(a,function(l){var u=n(o,l),f=u.originalDeps=t(l),c=i(f,a);u.entryCount=c.length,u.entryCount===0&&s.push(l),A(c,function(v){ct(u.predecessor,v)<0&&u.predecessor.push(v);var h=n(o,v);ct(h.successor,v)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return A(a,function(l){ct(o,l)>=0&&s.push(l)}),s}}function __(e,t){return rt(rt({},e,!0),t,!0)}const sA={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"}},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:". "}}}},lA={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var il="ZH",Gh="EN",io=Gh,Is={},$h={},x_=tt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(il)>-1?il:io}():io;function Hh(e,t){e=e.toUpperCase(),$h[e]=new Et(t),Is[e]=t}function uA(e){if($(e)){var t=Is[e.toUpperCase()]||{};return e===il||e===Gh?j(t):rt(j(t),j(Is[io]),!1)}else return rt(j(e),j(Is[io]),!1)}function fA(e){return $h[e]}function cA(){return $h[io]}Hh(Gh,sA);Hh(il,lA);var Wh=1e3,Uh=Wh*60,Ha=Uh*60,Ae=Ha*24,cp=Ae*365,Na={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}"},qo="{yyyy}-{MM}-{dd}",hp={year:"{yyyy}",month:"{yyyy}-{MM}",day:qo,hour:qo+" "+Na.hour,minute:qo+" "+Na.minute,second:qo+" "+Na.second,millisecond:Na.none},Zu=["year","month","day","hour","minute","second","millisecond"],b_=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Qt(e,t){return e+="","0000".substr(0,t-e.length)+e}function Ri(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function hA(e){return e===Ri(e)}function vA(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Do(e,t,r,n){var i=Le(e),a=i[Yh(r)](),o=i[ki(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[Wl(r)](),u=i["get"+(r?"UTC":"")+"Day"](),f=i[ao(r)](),c=(f-1)%12+1,v=i[Ul(r)](),h=i[Yl(r)](),d=i[Xl(r)](),p=n instanceof Et?n:fA(n||x_)||cA(),g=p.getModel("time"),y=g.get("month"),m=g.get("monthAbbr"),_=g.get("dayOfWeek"),x=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Qt(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,Qt(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Qt(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Qt(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Qt(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Qt(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,Qt(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Qt(d,3)).replace(/{S}/g,d+"")}function dA(e,t,r,n,i){var a=null;if($(r))a=r;else if(X(r))a=r(e.value,t,{level:e.level});else{var o=k({},Na);if(e.level>0)for(var s=0;s<Zu.length;++s)o[Zu[s]]="{primary|"+o[Zu[s]]+"}";var l=r?r.inherit===!1?r:Y(r,o):o,u=S_(e.value,i);if(l[u])a=l[u];else if(l.inherit){for(var f=b_.indexOf(u),s=f-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(V(a)){var c=e.level==null?0:e.level>=0?e.level:a.length+e.level;c=Math.min(c,a.length-1),a=a[c]}}return Do(new Date(e.value),a,i,n)}function S_(e,t){var r=Le(e),n=r[ki(t)]()+1,i=r[Wl(t)](),a=r[ao(t)](),o=r[Ul(t)](),s=r[Yl(t)](),l=r[Xl(t)](),u=l===0,f=u&&s===0,c=f&&o===0,v=c&&a===0,h=v&&i===1,d=h&&n===1;return d?"year":h?"month":v?"day":c?"hour":f?"minute":u?"second":"millisecond"}function vp(e,t,r){var n=vt(e)?Le(e):e;switch(t=t||S_(e,r),t){case"year":return n[Yh(r)]();case"half-year":return n[ki(r)]()>=6?1:0;case"quarter":return Math.floor((n[ki(r)]()+1)/4);case"month":return n[ki(r)]();case"day":return n[Wl(r)]();case"half-day":return n[ao(r)]()/24;case"hour":return n[ao(r)]();case"minute":return n[Ul(r)]();case"second":return n[Yl(r)]();case"millisecond":return n[Xl(r)]()}}function Yh(e){return e?"getUTCFullYear":"getFullYear"}function ki(e){return e?"getUTCMonth":"getMonth"}function Wl(e){return e?"getUTCDate":"getDate"}function ao(e){return e?"getUTCHours":"getHours"}function Ul(e){return e?"getUTCMinutes":"getMinutes"}function Yl(e){return e?"getUTCSeconds":"getSeconds"}function Xl(e){return e?"getUTCMilliseconds":"getMilliseconds"}function pA(e){return e?"setUTCFullYear":"setFullYear"}function w_(e){return e?"setUTCMonth":"setMonth"}function T_(e){return e?"setUTCDate":"setDate"}function C_(e){return e?"setUTCHours":"setHours"}function D_(e){return e?"setUTCMinutes":"setMinutes"}function A_(e){return e?"setUTCSeconds":"setSeconds"}function M_(e){return e?"setUTCMilliseconds":"setMilliseconds"}function gA(e,t,r,n,i,a,o,s){var l=new Ot({style:{text:e,font:t,align:r,verticalAlign:n,padding:i,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function Xh(e){if(!wh(e))return $(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function qh(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Ao=ch;function gc(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&He(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?Le(e):e;if(isNaN(+l)){if(s)return"-"}else return Do(l,n,r)}if(t==="ordinal")return Za(e)?i(e):vt(e)&&a(e)?e+"":"-";var u=Ar(e);return a(u)?Xh(u):Za(e)?i(e):typeof e=="boolean"?e+"":"-"}var dp=["a","b","c","d","e","f","g"],ju=function(e,t){return"{"+e+(t==null?"":t)+"}"};function Zh(e,t,r){V(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=dp[a];e=e.replace(ju(o),ju(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];e=e.replace(ju(dp[l],s),r?de(u):u)}return e}function E_(e,t){var r=$(e)?{color:e,extraCssText:t}:e||{},n=r.color,i=r.type;t=r.extraCssText;var a=r.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+de(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+de(n)+";"+(t||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function yA(e,t,r){process.env.NODE_ENV!=="production"&&It("echarts.format.formatTime","echarts.time.format"),(e==="week"||e==="month"||e==="quarter"||e==="half-year"||e==="year")&&(e=`MM-dd
34
+ yyyy`);var n=Le(t),i=r?"getUTC":"get",a=n[i+"FullYear"](),o=n[i+"Month"]()+1,s=n[i+"Date"](),l=n[i+"Hours"](),u=n[i+"Minutes"](),f=n[i+"Seconds"](),c=n[i+"Milliseconds"]();return e=e.replace("MM",Qt(o,2)).replace("M",o).replace("yyyy",a).replace("yy",Qt(a%100+"",2)).replace("dd",Qt(s,2)).replace("d",s).replace("hh",Qt(l,2)).replace("h",l).replace("mm",Qt(u,2)).replace("m",u).replace("ss",Qt(f,2)).replace("s",f).replace("SSS",Qt(c,3)),e}function mA(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function jn(e,t){return t=t||"transparent",$(e)?e:H(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function pp(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var Os=A,_A=["left","right","top","bottom","width","height"],Zo=[["width","left","right"],["height","top","bottom"]];function jh(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),c=t.childAt(u+1),v=c&&c.getBoundingRect(),h,d;if(e==="horizontal"){var p=f.width+(v?-v.x+f.x:0);h=a+p,h>n||l.newline?(a=0,h=p,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(v?-v.y+f.y:0);d=o+g,d>i||l.newline?(a+=s+r,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=h+r:o=d+r)})}var Wa=jh;dt(jh,"vertical");dt(jh,"horizontal");function Er(e,t,r){r=Ao(r||0);var n=t.width,i=t.height,a=K(e.left,n),o=K(e.top,i),s=K(e.right,n),l=K(e.bottom,i),u=K(e.width,n),f=K(e.height,i),c=r[2]+r[0],v=r[1]+r[3],h=e.aspect;switch(isNaN(u)&&(u=n-s-v-a),isNaN(f)&&(f=i-l-c-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(a)&&(a=n-s-u-v),isNaN(o)&&(o=i-l-f-c),e.left||e.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-v;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-c;break}a=a||0,o=o||0,isNaN(u)&&(u=n-v-a-(s||0)),isNaN(f)&&(f=i-c-o-(l||0));var d=new it(a+r[3],o+r[0],u,f);return d.margin=r,d}function oo(e){var t=e.layoutMode||e.constructor.layoutMode;return H(t)?t:t?{type:t}:null}function Ui(e,t,r){var n=r&&r.ignoreSize;!V(n)&&(n=[n,n]);var i=o(Zo[0],0),a=o(Zo[1],1);u(Zo[0],e,i),u(Zo[1],e,a);function o(f,c){var v={},h=0,d={},p=0,g=2;if(Os(f,function(_){d[_]=e[_]}),Os(f,function(_){s(t,_)&&(v[_]=d[_]=t[_]),l(v,_)&&h++,l(d,_)&&p++}),n[c])return l(t,f[1])?d[f[2]]=null:l(t,f[2])&&(d[f[1]]=null),d;if(p===g||!h)return d;if(h>=g)return v;for(var y=0;y<f.length;y++){var m=f[y];if(!s(v,m)&&s(e,m)){v[m]=e[m];break}}return v}function s(f,c){return f.hasOwnProperty(c)}function l(f,c){return f[c]!=null&&f[c]!=="auto"}function u(f,c,v){Os(f,function(h){c[h]=v[h]})}}function ql(e){return xA({},e)}function xA(e,t){return t&&e&&Os(_A,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var bA=xt(),ra=function(e){R(t,e);function t(r,n,i){var a=e.call(this,r,n,i)||this;return a.uid=Hl("ec_cpt_model"),a}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=oo(this),a=i?ql(r):{},o=n.getTheme();rt(r,o.get(this.mainType)),rt(r,this.getDefaultOption()),i&&Ui(r,a,i)},t.prototype.mergeOption=function(r,n){rt(this.option,r,!0);var i=oo(this);i&&Ui(this.option,r,i)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!HT(r))return r.defaultOption;var n=bA(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=rt(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return wo(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(Et);m0(ra,Et);El(ra);aA(ra);oA(ra,SA);function SA(e){var t=[];return A(ra.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=z(t,function(r){return ir(r).main}),e!=="dataset"&&ct(t,"dataset")<=0&&t.unshift("dataset"),t}const st=ra;var L_="";typeof navigator<"u"&&(L_=navigator.platform||"");var yi="rgba(0, 0, 0, 0.2)";const wA={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:yi,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:yi,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:yi,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:yi,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:yi,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:yi,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:L_.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 yc=Q(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),ke="original",ne="arrayRows",Be="objectRows",hr="keyedColumns",wr="typedArray",P_="unknown",sr="column",na="row",Ft={Must:1,Might:2,Not:3},I_=xt();function TA(e){I_(e).datasetMap=Q()}function CA(e,t,r){var n={},i=Kh(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=I_(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,f,c;e=e.slice(),A(e,function(p,g){var y=H(p)?p:e[g]={name:p};y.type==="ordinal"&&f==null&&(f=g,c=d(y)),n[y.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});A(e,function(p,g){var y=p.name,m=d(p);if(f==null){var _=v.valueWayDim;h(n[y],_,m),h(o,_,m),v.valueWayDim+=m}else if(f===g)h(n[y],0,m),h(a,0,m);else{var _=v.categoryWayDim;h(n[y],_,m),h(o,_,m),v.categoryWayDim+=m}});function h(p,g,y){for(var m=0;m<y;m++)p.push(g+m)}function d(p){var g=p.dimsDef;return g?g.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function O_(e,t,r){var n={},i=Kh(e);if(!i)return n;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===Be||a===hr)&&A(o,function(f,c){(H(f)?f.name:f)==="name"&&(s=c)});var l=function(){for(var f={},c={},v=[],h=0,d=Math.min(5,r);h<d;h++){var p=R_(t.data,a,t.seriesLayoutBy,o,t.startIndex,h);v.push(p);var g=p===Ft.Not;if(g&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v||!g&&v[f.n]===Ft.Not)&&(f.n=h),y(f)&&v[f.n]!==Ft.Not)return f;g||(p===Ft.Might&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v)&&(c.n=h))}function y(m){return m.v!=null&&m.n!=null}return y(f)?f:y(c)?c:null}();if(l){n.value=[l.v];var u=s!=null?s:l.n;n.itemName=[u],n.seriesName=[u]}return n}function Kh(e){var t=e.get("data",!0);if(!t)return wo(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},fe).models[0]}function DA(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:wo(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},fe).models}function N_(e,t){return R_(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function R_(e,t,r,n,i,a){var o,s=5;if(re(e))return Ft.Not;var l,u;if(n){var f=n[a];H(f)?(l=f.name,u=f.type):$(f)&&(l=f)}if(u!=null)return u==="ordinal"?Ft.Must:Ft.Not;if(t===ne){var c=e;if(r===na){for(var v=c[a],h=0;h<(v||[]).length&&h<s;h++)if((o=x(v[i+h]))!=null)return o}else for(var h=0;h<c.length&&h<s;h++){var d=c[i+h];if(d&&(o=x(d[a]))!=null)return o}}else if(t===Be){var p=e;if(!l)return Ft.Not;for(var h=0;h<p.length&&h<s;h++){var g=p[h];if(g&&(o=x(g[l]))!=null)return o}}else if(t===hr){var y=e;if(!l)return Ft.Not;var v=y[l];if(!v||re(v))return Ft.Not;for(var h=0;h<v.length&&h<s;h++)if((o=x(v[h]))!=null)return o}else if(t===ke)for(var m=e,h=0;h<m.length&&h<s;h++){var g=m[h],_=So(g);if(!V(_))return Ft.Not;if((o=x(_[a]))!=null)return o}function x(w){var b=$(w);if(w!=null&&isFinite(w)&&w!=="")return b?Ft.Might:Ft.Not;if(b&&w!=="-")return Ft.Must}return Ft.Not}var AA=Q();function MA(e,t,r){var n=AA.get(t);if(!n)return r;var i=n(e);if(!i)return r;if(process.env.NODE_ENV!=="production")for(var a=0;a<i.length;a++)J(Gi(i[a]));return r.concat(i)}var gp=xt();xt();var Qh=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var i=St(this.get("color",!0)),a=this.get("colorLayer",!0);return LA(this,gp,i,a,t,r,n)},e.prototype.clearColorPalette=function(){PA(this,gp)},e}();function EA(e,t){for(var r=e.length,n=0;n<r;n++)if(e[n].length>t)return e[n];return e[r-1]}function LA(e,t,r,n,i,a,o){a=a||e;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?r:EA(n,o);if(f=f||r,!(!f||!f.length)){var c=f[l];return i&&(u[i]=c),s.paletteIdx=(l+1)%f.length,c}}function PA(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var jo,pa,yp,Ku="\0_ec_inner",mp=1,IA={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},OA={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},al={};function NA(e){A(e,function(t,r){if(!st.hasClass(r)){var n=IA[r];n&&!al[n]&&(qt("Component "+r+` is used but not imported.
35
35
  import { `+n+` } from 'echarts/components';
36
- echarts.use([`+n+"]);"),al[n]=!0)}})}var R_=function(e){R(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Et(a),this._locale=new Et(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){process.env.NODE_ENV!=="production"&&(J(r!=null,"option is null/undefined"),J(r[Ku]!==yp,"please use chart.getOption()"));var a=xp(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,xp(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");process.env.NODE_ENV!=="production"&&NA(o),!this.option||r==="recreate"?gp(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&A(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=Q(),u=n&&n.replaceMergeMainTypeMap;TA(this),A(r,function(c,v){c!=null&&(st.hasClass(v)?v&&(s.push(v),l.set(v,!0)):i[v]=i[v]==null?j(c):rt(i[v],c,!0))}),u&&u.each(function(c,v){st.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),st.topologicalTravel(s,st.getAllClassMainTypes(),f,this);function f(c){var v=MA(this,c,St(r[c])),h=a.get(c),d=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",g=ET(h,v,d);kT(g,c,st),i[c]=null,a.set(c,null),o.set(c,0);var p=[],y=[],m=0,_,x;A(g,function(w,b){var S=w.existing,T=w.newOption;if(!T)S&&(S.mergeOption({},this),S.optionUpdated({},!1));else{var D=c==="series",M=st.getClass(c,w.keyInfo.subType,!D);if(!M){if(process.env.NODE_ENV!=="production"){var C=w.keyInfo.subType,E=OA[C];al[C]||(al[C]=!0,qt(E?"Series "+C+` is used but not imported.
36
+ echarts.use([`+n+"]);"),al[n]=!0)}})}var k_=function(e){R(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Et(a),this._locale=new Et(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){process.env.NODE_ENV!=="production"&&(J(r!=null,"option is null/undefined"),J(r[Ku]!==mp,"please use chart.getOption()"));var a=bp(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,bp(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");process.env.NODE_ENV!=="production"&&NA(o),!this.option||r==="recreate"?yp(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&A(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=Q(),u=n&&n.replaceMergeMainTypeMap;TA(this),A(r,function(c,v){c!=null&&(st.hasClass(v)?v&&(s.push(v),l.set(v,!0)):i[v]=i[v]==null?j(c):rt(i[v],c,!0))}),u&&u.each(function(c,v){st.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),st.topologicalTravel(s,st.getAllClassMainTypes(),f,this);function f(c){var v=MA(this,c,St(r[c])),h=a.get(c),d=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=ET(h,v,d);kT(p,c,st),i[c]=null,a.set(c,null),o.set(c,0);var g=[],y=[],m=0,_,x;A(p,function(w,b){var S=w.existing,T=w.newOption;if(!T)S&&(S.mergeOption({},this),S.optionUpdated({},!1));else{var D=c==="series",M=st.getClass(c,w.keyInfo.subType,!D);if(!M){if(process.env.NODE_ENV!=="production"){var C=w.keyInfo.subType,E=OA[C];al[C]||(al[C]=!0,qt(E?"Series "+C+` is used but not imported.
37
37
  import { `+E+` } from 'echarts/charts';
38
- echarts.use([`+E+"]);":"Unknown series "+C))}return}if(c==="tooltip"){if(_){process.env.NODE_ENV!=="production"&&(x||(kt("Currently only one tooltip component is allowed."),x=!0));return}_=!0}if(S&&S.constructor===M)S.name=w.keyInfo.name,S.mergeOption(T,this),S.optionUpdated(T,!1);else{var L=k({componentIndex:b},w.keyInfo);S=new M(T,this,this,L),k(S,L),w.brandNew&&(S.__requireNewView=!0),S.init(T,this,this),S.optionUpdated(null,!0)}}S?(p.push(S.option),y.push(S),m++):(p.push(void 0),y.push(void 0))},this),i[c]=p,a.set(c,y),o.set(c,m),c==="series"&&Zo(this)}this._seriesIndices||Zo(this)},t.prototype.getOption=function(){var r=j(this.option);return A(r,function(n,i){if(st.hasClass(i)){for(var a=St(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!zi(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[Ku],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],A(St(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=mp("id",a,s):o!=null?l=mp("name",o,s):l=_t(s,function(u){return!!u}),_p(l,r)},t.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):_t(this._componentsMap.get(i),function(u){return!!u});return l(_p(o,r));function s(u){var f=i+"Index",c=i+"Id",v=i+"Name";return u&&(u[f]!=null||u[c]!=null||u[v]!=null)?{mainType:i,index:u[f],id:u[c],name:u[v]}:null}function l(u){return r.filter?_t(u,r.filter):u}},t.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(X(r)){var o=n,s=r;a.each(function(c,v){for(var h=0;c&&h<c.length;h++){var d=c[h];d&&s.call(o,v,d,d.componentIndex)}})}else for(var l=$(r)?a.get(r):H(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(i,f,f.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=or(r,null);return _t(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return _t(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return _t(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){da(this),A(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},t.prototype.eachRawSeries=function(r,n){A(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,i){da(this),A(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},t.prototype.eachRawSeriesByType=function(r,n,i){return A(this.getSeriesByType(r),n,i)},t.prototype.isSeriesFiltered=function(r){return da(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){da(this);var i=[];A(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=Q(i)},t.prototype.restoreData=function(r){Zo(this);var n=this._componentsMap,i=[];n.each(function(a,o){st.hasClass(o)&&i.push(o)}),st.topologicalTravel(i,st.getAllClassMainTypes(),function(a){A(n.get(a),function(o){o&&(a!=="series"||!RA(o,r))&&o.restoreData()})})},t.internalField=function(){Zo=function(r){var n=r._seriesIndices=[];A(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=Q(n)},da=function(r){if(process.env.NODE_ENV!=="production"&&!r._seriesIndices)throw new Error("Option should contains series.")},gp=function(r,n){r.option={},r.option[Ku]=yp,r._componentsMap=Q({series:[]}),r._componentsCount=Q();var i=n.aria;H(i)&&i.enabled==null&&(i.enabled=!0),kA(n,r._theme.option),rt(n,wA,!1),r._mergeOption(n,null)}}(),t}(Et);function RA(e,t){if(t){var r=t.seriesIndex,n=t.seriesId,i=t.seriesName;return r!=null&&e.componentIndex!==r||n!=null&&e.id!==n||i!=null&&e.name!==i}}function kA(e,t){var r=e.color&&!e.colorLayer;A(t,function(n,i){i==="colorLayer"&&r||st.hasClass(i)||(typeof n=="object"?e[i]=e[i]?rt(e[i],n,!1):j(n):e[i]==null&&(e[i]=n))})}function mp(e,t,r){if(V(t)){var n=Q();return A(t,function(a){if(a!=null){var o=or(a,null);o!=null&&n.set(a,!0)}}),_t(r,function(a){return a&&n.get(a[e])})}else{var i=or(t,null);return _t(r,function(a){return a&&i!=null&&a[e]===i})}}function _p(e,t){return t.hasOwnProperty("subType")?_t(e,function(r){return r&&r.subType===t.subType}):e}function xp(e){var t=Q();return e&&A(St(e.replaceMerge),function(r){process.env.NODE_ENV!=="production"&&J(st.hasClass(r),'"'+r+'" is not valid component main type in "replaceMerge"'),t.set(r,!0)}),{replaceMergeMainTypeMap:t}}ie(R_,Kh);const k_=R_;var BA=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],FA=function(){function e(t){A(BA,function(r){this[r]=ht(t[r],t)},this)}return e}();const B_=FA;var Qu={},VA=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var n=[];A(Qu,function(i,a){var o=i.create(t,r);n=n.concat(o||[])}),this._coordinateSystems=n},e.prototype.update=function(t,r){A(this._coordinateSystems,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,r){Qu[t]=r},e.get=function(t){return Qu[t]},e}();const Zl=VA;var zA=/^(min|max)?(.+)$/,GA=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(A(St(t.series),function(o){o&&o.data&&re(o.data)&&Za(o.data)}),A(St(t.dataset),function(o){o&&o.source&&re(o.source)&&Za(o.source)})),t=j(t);var i=this._optionBackup,a=$A(t,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],j(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(r=j(n[i.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)HA(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!UA(o,this._currentMediaIndices)&&(s=z(o,function(f){return j(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},e}();function $A(e,t,r){var n=[],i,a,o=e.baseOption,s=e.timeline,l=e.options,u=e.media,f=!!e.media,c=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((c||f)&&(e.options=e.media=null),a=e),f&&(V(u)?A(u,function(h){process.env.NODE_ENV!=="production"&&h&&!h.option&&H(h.query)&&H(h.query.option)&&qt("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),h&&h.option&&(h.query?n.push(h):i||(i=h))}):process.env.NODE_ENV!=="production"&&qt("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),v(a),A(l,function(h){return v(h)}),A(n,function(h){return v(h.option)});function v(h){A(t,function(d){d(h,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function HA(e,t,r){var n={width:t,height:r,aspectratio:t/r},i=!0;return A(e,function(a,o){var s=o.match(zA);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();WA(n[u],a,l)||(i=!1)}}),i}function WA(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function UA(e,t){return e.join(",")===t.join(",")}const YA=GA;var me=A,oo=H,bp=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Ju(e){var t=e&&e.itemStyle;if(!!t)for(var r=0,n=bp.length;r<n;r++){var i=bp[r],a=t.normal,o=t.emphasis;a&&a[i]&&(process.env.NODE_ENV!=="production"&&It("itemStyle.normal."+i,i),e[i]=e[i]||{},e[i].normal?rt(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(process.env.NODE_ENV!=="production"&&It("itemStyle.emphasis."+i,"emphasis."+i),e[i]=e[i]||{},e[i].emphasis?rt(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function Ut(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var n=e[t].normal,i=e[t].emphasis;n&&(process.env.NODE_ENV!=="production"&&Ye("'normal' hierarchy in "+t+" has been removed since 4.0. All style properties are configured in "+t+" directly now."),r?(e[t].normal=e[t].emphasis=null,Y(e[t],n)):e[t]=n),i&&(process.env.NODE_ENV!=="production"&&Ye(t+".emphasis has been changed to emphasis."+t+" since 4.0"),e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function Na(e){Ut(e,"itemStyle"),Ut(e,"lineStyle"),Ut(e,"areaStyle"),Ut(e,"label"),Ut(e,"labelLine"),Ut(e,"upperLabel"),Ut(e,"edgeLabel")}function Mt(e,t){var r=oo(e)&&e[t],n=oo(r)&&r.textStyle;if(n){process.env.NODE_ENV!=="production"&&Ye("textStyle hierarchy in "+t+" has been removed since 4.0. All textStyle properties are configured in "+t+" directly now.");for(var i=0,a=xd.length;i<a;i++){var o=xd[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}}function we(e){e&&(Na(e),Mt(e,"label"),e.emphasis&&Mt(e.emphasis,"label"))}function XA(e){if(!!oo(e)){Ju(e),Na(e),Mt(e,"label"),Mt(e,"upperLabel"),Mt(e,"edgeLabel"),e.emphasis&&(Mt(e.emphasis,"label"),Mt(e.emphasis,"upperLabel"),Mt(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(Ju(t),we(t));var r=e.markLine;r&&(Ju(r),we(r));var n=e.markArea;n&&we(n);var i=e.data;if(e.type==="graph"){i=i||e.nodes;var a=e.links||e.edges;if(a&&!re(a))for(var o=0;o<a.length;o++)we(a[o]);A(e.categories,function(u){Na(u)})}if(i&&!re(i))for(var o=0;o<i.length;o++)we(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)we(s[o]);if(r=e.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)V(l[o])?(we(l[o][0]),we(l[o][1])):we(l[o]);e.type==="gauge"?(Mt(e,"axisLabel"),Mt(e,"title"),Mt(e,"detail")):e.type==="treemap"?(Ut(e.breadcrumb,"itemStyle"),A(e.levels,function(u){Na(u)})):e.type==="tree"&&Na(e.leaves)}}function gr(e){return V(e)?e:e?[e]:[]}function Sp(e){return(V(e)?e[0]:e)||{}}function qA(e,t){me(gr(e.series),function(n){oo(n)&&XA(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),me(r,function(n){me(gr(e[n]),function(i){i&&(Mt(i,"axisLabel"),Mt(i.axisPointer,"label"))})}),me(gr(e.parallel),function(n){var i=n&&n.parallelAxisDefault;Mt(i,"axisLabel"),Mt(i&&i.axisPointer,"label")}),me(gr(e.calendar),function(n){Ut(n,"itemStyle"),Mt(n,"dayLabel"),Mt(n,"monthLabel"),Mt(n,"yearLabel")}),me(gr(e.radar),function(n){Mt(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name,process.env.NODE_ENV!=="production"&&Ye("name property in radar component has been changed to axisName")),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap,process.env.NODE_ENV!=="production"&&Ye("nameGap property in radar component has been changed to axisNameGap")),process.env.NODE_ENV!=="production"&&me(n.indicator,function(i){i.text&&It("text","name","radar.indicator")})}),me(gr(e.geo),function(n){oo(n)&&(we(n),me(gr(n.regions),function(i){we(i)}))}),me(gr(e.timeline),function(n){we(n),Ut(n,"label"),Ut(n,"itemStyle"),Ut(n,"controlStyle",!0);var i=n.data;V(i)&&A(i,function(a){H(a)&&(Ut(a,"label"),Ut(a,"itemStyle"))})}),me(gr(e.toolbox),function(n){Ut(n,"iconStyle"),me(n.feature,function(i){Ut(i,"iconStyle")})}),Mt(Sp(e.axisPointer),"label"),Mt(Sp(e.tooltip).axisPointer,"label")}function ZA(e,t){for(var r=t.split(","),n=e,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function jA(e,t,r,n){for(var i=t.split(","),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];(n||a[i[s]]==null)&&(a[i[s]]=r)}function wp(e){e&&A(KA,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var KA=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],QA=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],tf=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function pa(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<tf.length;r++){var n=tf[r][1],i=tf[r][0];t[n]!=null&&(t[i]=t[n],process.env.NODE_ENV!=="production"&&It(n,i))}}function Tp(e){!e||e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(process.env.NODE_ENV!=="production"&&It("label.margin","label.edgeDistance","pie"),e.edgeDistance=e.margin)}function Cp(e){!e||e.downplay&&!e.blur&&(e.blur=e.downplay,process.env.NODE_ENV!=="production"&&It("downplay","blur","sunburst"))}function JA(e){!e||e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(process.env.NODE_ENV!=="production"&&It("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),e.emphasis.focus="adjacency"))}function F_(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&F_(e[r].children,t)}function V_(e,t){qA(e,t),e.series=St(e.series),A(e.series,function(r){if(!!H(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow,process.env.NODE_ENV!=="production"&&It("clipOverflow","clip","line"));else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise,process.env.NODE_ENV!=="production"&&It("clockWise","clockwise")),Tp(r.label);var i=r.data;if(i&&!re(i))for(var a=0;a<i.length;a++)Tp(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(process.env.NODE_ENV!=="production"&&It("hoverOffset","emphasis.scaleSize"),r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=ZA(r,"pointer.color");o!=null&&jA(r,"itemStyle.color",o)}else if(n==="bar"){pa(r),pa(r.backgroundStyle),pa(r.emphasis);var i=r.data;if(i&&!re(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(pa(i[a]),pa(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s,process.env.NODE_ENV!=="production"&&It("highlightPolicy","emphasis.focus","sunburst"))),Cp(r),F_(r.data,Cp)}else n==="graph"||n==="sankey"?JA(r):n==="map"&&(r.mapType&&!r.map&&(process.env.NODE_ENV!=="production"&&It("mapType","map","map"),r.map=r.mapType),r.mapLocation&&(process.env.NODE_ENV!=="production"&&Ye("`mapLocation` is not used anymore."),Y(r,r.mapLocation)));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(process.env.NODE_ENV!=="production"&&It("hoverAnimation","emphasis.scale"),r.emphasis.scale=r.hoverAnimation)),wp(r)}}),e.dataRange&&(e.visualMap=e.dataRange),A(QA,function(r){var n=e[r];n&&(V(n)||(n=[n]),A(n,function(i){wp(i)}))})}function tM(e){var t=Q();e.eachSeries(function(r){var n=r.get("stack");if(n){var i=t.get(n)||t.set(n,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),t.each(eM)}function eM(e){A(e,function(t,r){var n=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,c){var v=o.get(t.stackedDimension,c);if(isNaN(v))return i;var h,d;s?d=o.getRawIndex(c):h=o.get(t.stackedByDimension,c);for(var g=NaN,p=r-1;p>=0;p--){var y=e[p];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,h)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&v>=0&&m>0||l==="samesign"&&v<=0&&m<0){v=_T(v,m),g=m;break}}}return n[0]=v,n[1]=g,n})})}var jl=function(){function e(t){this.data=t.data||(t.sourceFormat===hr?{}:[]),this.sourceFormat=t.sourceFormat||L_,this.seriesLayoutBy=t.seriesLayoutBy||sr,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&O_(this,n)===Ft.Must&&(i.type="ordinal")}}return e}();function Qh(e){return e instanceof jl}function mc(e,t,r){r=r||z_(e);var n=t.seriesLayoutBy,i=nM(e,r,n,t.sourceHeader,t.dimensions),a=new jl({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:j(t)});return a}function Jh(e){return new jl({data:e,sourceFormat:re(e)?wr:ke})}function rM(e){return new jl({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:j(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function z_(e){var t=L_;if(re(e))t=wr;else if(V(e)){e.length===0&&(t=ne);for(var r=0,n=e.length;r<n;r++){var i=e[r];if(i!=null){if(V(i)){t=ne;break}else if(H(i)){t=Be;break}}}}else if(H(e)){for(var a in e)if(ur(e,a)&&Xt(e[a])){t=hr;break}}return t}function nM(e,t,r,n,i){var a,o;if(!e)return{dimensionsDefine:Dp(i),startIndex:o,dimensionsDetectedCount:a};if(t===ne){var s=e;n==="auto"||n==null?Ap(function(u){u!=null&&u!=="-"&&($(u)?o==null&&(o=1):o=0)},r,s,10):o=vt(n)?n:n?1:0,!i&&o===1&&(i=[],Ap(function(u,f){i[f]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===ra?s.length:s[0]?s[0].length:null}else if(t===Be)i||(i=iM(e));else if(t===hr)i||(i=[],A(e,function(u,f){i.push(f)}));else if(t===ke){var l=bo(e[0]);a=V(l)&&l.length||1}else t===wr&&process.env.NODE_ENV!=="production"&&J(!!i,"dimensions must be given if data is TypedArray.");return{startIndex:o,dimensionsDefine:Dp(i),dimensionsDetectedCount:a}}function iM(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return mt(r)}function Dp(e){if(!!e){var t=Q();return z(e,function(r,n){r=H(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=t.get(i.name);return a?i.name+="-"+a.count++:t.set(i.name,{count:1}),i})}}function Ap(e,t,r,n){if(t===ra)for(var i=0;i<r.length&&i<n;i++)e(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)e(a[i],i)}function G_(e){var t=e.sourceFormat;return t===Be||t===hr}var An,Mn,En,Mp,Ep,$_=function(){function e(t,r){var n=Qh(t)?t:Jh(t);this._source=n;var i=this._data=n.data;if(n.sourceFormat===wr){if(process.env.NODE_ENV!=="production"&&r==null)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=r,this._data=i}Ep(this,i,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var t;Ep=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,v=l.dimensionsDefine,h=Mp[tv(u,f)];if(process.env.NODE_ENV!=="production"&&J(h,"Invalide sourceFormat: "+u),k(o,h),u===wr)o.getItem=r,o.count=i,o.fillStorage=n;else{var d=H_(u,f);o.getItem=ht(d,null,s,c,v);var g=W_(u,f);o.count=ht(g,null,s,c,v)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},n=function(o,s,l,u){for(var f=this._data,c=this._dimSize,v=0;v<c;v++){for(var h=u[v],d=h[0]==null?1/0:h[0],g=h[1]==null?-1/0:h[1],p=s-o,y=l[v],m=0;m<p;m++){var _=f[m*c+v];y[o+m]=_,_<d&&(d=_),_>g&&(g=_)}h[0]=d,h[1]=g}},i=function(){return this._data?this._data.length/this._dimSize:0};Mp=(t={},t[ne+"_"+sr]={pure:!0,appendData:a},t[ne+"_"+ra]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Be]={pure:!0,appendData:a},t[hr]={pure:!0,appendData:function(o){var s=this._data;A(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},t[ke]={appendData:a},t[wr]={persistent:!1,pure:!0,appendData:function(o){process.env.NODE_ENV!=="production"&&J(re(o),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),e}(),Lp=function(e,t,r,n){return e[n]},aM=(An={},An[ne+"_"+sr]=function(e,t,r,n){return e[n+t]},An[ne+"_"+ra]=function(e,t,r,n,i){n+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},An[Be]=Lp,An[hr]=function(e,t,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name;if(process.env.NODE_ENV!=="production"&&s==null)throw new Error;var l=e[s];a[o]=l?l[n]:null}return a},An[ke]=Lp,An);function H_(e,t){var r=aM[tv(e,t)];return process.env.NODE_ENV!=="production"&&J(r,'Do not support get item on "'+e+'", "'+t+'".'),r}var Pp=function(e,t,r){return e.length},oM=(Mn={},Mn[ne+"_"+sr]=function(e,t,r){return Math.max(0,e.length-t)},Mn[ne+"_"+ra]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},Mn[Be]=Pp,Mn[hr]=function(e,t,r){var n=r[0].name;if(process.env.NODE_ENV!=="production"&&n==null)throw new Error;var i=e[n];return i?i.length:0},Mn[ke]=Pp,Mn);function W_(e,t){var r=oM[tv(e,t)];return process.env.NODE_ENV!=="production"&&J(r,'Do not support count on "'+e+'", "'+t+'".'),r}var ef=function(e,t,r){return e[t]},sM=(En={},En[ne]=ef,En[Be]=function(e,t,r){return e[r]},En[hr]=ef,En[ke]=function(e,t,r){var n=bo(e);return n instanceof Array?n[t]:n},En[wr]=ef,En);function U_(e){var t=sM[e];return process.env.NODE_ENV!=="production"&&J(t,'Do not support get value on "'+e+'".'),t}function tv(e,t){return e===ne?e+"_"+t:e}function Ui(e,t,r){if(!!e){var n=e.getRawDataItem(t);if(n!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=i.getDimensionProperty(o);return U_(a)(n,o,s)}else{var l=n;return a===ke&&(l=bo(n)),l}}}}var lM=/\{@(.+?)\}/g,uM=function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),i=this.getRawValue(t,r),a=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,v=c==="series",h=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:v?this.subType:null,seriesIndex:this.seriesIndex,seriesId:v?this.id:null,seriesName:v?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:u,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,i,a,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),i!=null&&V(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(t);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(X(a))return l.status=r,l.dimensionIndex=i,a(l);if($(a)){var f=qh(a,l);return f.replace(lM,function(c,v){var h=v.length,d=v;d.charAt(0)==="["&&d.charAt(h-1)==="]"&&(d=+d.slice(1,h-1),process.env.NODE_ENV!=="production"&&isNaN(d)&&qt("Invalide label formatter: @"+v+", only support @[0], @[1], @[2], ..."));var g=Ui(s,t,d);if(o&&V(o.interpolatedValue)){var p=s.getDimensionIndex(d);p>=0&&(g=o.interpolatedValue[p])}return g!=null?g+"":""})}},e.prototype.getRawValue=function(t,r){return Ui(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function Ip(e){var t,r;return H(e)?e.type?r=e:process.env.NODE_ENV!=="production"&&console.warn("The return type of `formatTooltip` is not supported: "+he(e)):t=e,{text:t,frag:r}}function Wa(e){return new fM(e)}var fM=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(m){return!(m>=1)&&(m=1),m}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var v=t&&t.step;if(r?(process.env.NODE_ENV!=="production"&&J(r._outputDueEnd!=null),this._dueEnd=r._outputDueEnd):(process.env.NODE_ENV!=="production"&&J(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var h=this._dueIndex,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!n&&(c||h<d)){var g=this._progress;if(V(g))for(var p=0;p<g.length;p++)this._doProgress(g[p],h,d,l,u);else this._doProgress(g,h,d,l,u)}this._dueIndex=d;var y=this._settedOutputEnd!=null?this._settedOutputEnd:d;process.env.NODE_ENV!=="production"&&J(y>=this._outputDueEnd),this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,n,i,a){Op.reset(r,n,i,a),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:Op.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),V(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){process.env.NODE_ENV!=="production"&&J(t&&!t._disposed&&t!==this),(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e}(),Op=function(){var e,t,r,n,i,a={reset:function(l,u,f,c){t=l,e=u,r=f,n=c,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var l=t%i*r+Math.ceil(t/i),u=t>=e?null:l<n?l:t;return t++,u}}();function Os(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!vt(e)&&e!=null&&e!=="-"&&(e=+Le(e)),e==null||e===""?NaN:+e)}var cM=Q({number:function(e){return parseFloat(e)},time:function(e){return+Le(e)},trim:function(e){return $(e)?He(e):e}});function Y_(e){return cM.get(e)}var X_={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},hM=function(){function e(t,r){if(!vt(r)){var n="";process.env.NODE_ENV!=="production"&&(n='rvalue of "<", ">", "<=", ">=" can only be number in filter.'),lt(n)}this._opFn=X_[t],this._rvalFloat=Ar(r)}return e.prototype.evaluate=function(t){return vt(t)?this._opFn(t,this._rvalFloat):this._opFn(Ar(t),this._rvalFloat)},e}(),q_=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=vt(t)?t:Ar(t),i=vt(r)?r:Ar(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=$(t),l=$(r);s&&(n=l?t:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},e}(),vM=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=Ar(r)}return e.prototype.evaluate=function(t){var r=t===this._rval;if(!r){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=Ar(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function dM(e,t){return e==="eq"||e==="ne"?new vM(e==="eq",t):ur(X_,e)?new hM(e,t):null}var pM=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return Os(t,r)},e}();function gM(e,t){var r=new pM,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==sr&&(process.env.NODE_ENV!=="production"&&(o='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),lt(o));var s=[],l={},u=e.dimensionsDefine;if(u)A(u,function(g,p){var y=g.name,m={index:p,name:y,displayName:g.displayName};if(s.push(m),y!=null){var _="";ur(l,y)&&(process.env.NODE_ENV!=="production"&&(_='dimension name "'+y+'" duplicated.'),lt(_)),l[y]=m}});else for(var f=0;f<e.dimensionsDetectedCount;f++)s.push({index:f});var c=H_(i,sr);t.__isBuiltIn&&(r.getRawDataItem=function(g){return c(n,a,s,g)},r.getRawData=ht(yM,null,e)),r.cloneRawData=ht(mM,null,e);var v=W_(i,sr);r.count=ht(v,null,n,a,s);var h=U_(i);r.retrieveValue=function(g,p){var y=c(n,a,s,g);return d(y,p)};var d=r.retrieveValueFromItem=function(g,p){if(g!=null){var y=s[p];if(y)return h(g,p,y.name)}};return r.getDimensionInfo=ht(_M,null,s,l),r.cloneAllDimensionInfo=ht(xM,null,s),r}function yM(e){var t=e.sourceFormat;if(!ev(t)){var r="";process.env.NODE_ENV!=="production"&&(r="`getRawData` is not supported in source format "+t),lt(r)}return e.data}function mM(e){var t=e.sourceFormat,r=e.data;if(!ev(t)){var n="";process.env.NODE_ENV!=="production"&&(n="`cloneRawData` is not supported in source format "+t),lt(n)}if(t===ne){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(t===Be){for(var i=[],a=0,o=r.length;a<o;a++)i.push(k({},r[a]));return i}}function _M(e,t,r){if(r!=null){if(vt(r)||!isNaN(r)&&!ur(t,r))return e[r];if(ur(t,r))return t[r]}}function xM(e){return j(e)}var Z_=Q();function bM(e){e=j(e);var t=e.type,r="";t||(process.env.NODE_ENV!=="production"&&(r="Must have a `type` when `registerTransform`."),lt(r));var n=t.split(":");n.length!==2&&(process.env.NODE_ENV!=="production"&&(r='Name must include namespace like "ns:regression".'),lt(r));var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),e.__isBuiltIn=i,Z_.set(t,e)}function SM(e,t,r){var n=St(e),i=n.length,a="";i||(process.env.NODE_ENV!=="production"&&(a="If `transform` declared, it should at least contain one transform."),lt(a));for(var o=0,s=i;o<s;o++){var l=n[o];t=wM(l,t,r,i===1?null:o),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function wM(e,t,r,n){var i="";t.length||(process.env.NODE_ENV!=="production"&&(i="Must have at least one upstream dataset."),lt(i)),H(e)||(process.env.NODE_ENV!=="production"&&(i="transform declaration must be an object rather than "+typeof e+"."),lt(i));var a=e.type,o=Z_.get(a);o||(process.env.NODE_ENV!=="production"&&(i='Can not find transform on type "'+a+'".'),lt(i));var s=z(t,function(f){return gM(f,o)}),l=St(o.transform({upstream:s[0],upstreamList:s,config:j(e.config)}));if(process.env.NODE_ENV!=="production"&&e.print){var u=z(l,function(f){var c=n!=null?" === pipe index: "+n:"";return["=== dataset index: "+r.datasetIndex+c+" ===","- transform result data:",he(f.data),"- transform result dimensions:",he(f.dimensions)].join(`
38
+ echarts.use([`+E+"]);":"Unknown series "+C))}return}if(c==="tooltip"){if(_){process.env.NODE_ENV!=="production"&&(x||(kt("Currently only one tooltip component is allowed."),x=!0));return}_=!0}if(S&&S.constructor===M)S.name=w.keyInfo.name,S.mergeOption(T,this),S.optionUpdated(T,!1);else{var L=k({componentIndex:b},w.keyInfo);S=new M(T,this,this,L),k(S,L),w.brandNew&&(S.__requireNewView=!0),S.init(T,this,this),S.optionUpdated(null,!0)}}S?(g.push(S.option),y.push(S),m++):(g.push(void 0),y.push(void 0))},this),i[c]=g,a.set(c,y),o.set(c,m),c==="series"&&jo(this)}this._seriesIndices||jo(this)},t.prototype.getOption=function(){var r=j(this.option);return A(r,function(n,i){if(st.hasClass(i)){for(var a=St(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Gi(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[Ku],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],A(St(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=_p("id",a,s):o!=null?l=_p("name",o,s):l=_t(s,function(u){return!!u}),xp(l,r)},t.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):_t(this._componentsMap.get(i),function(u){return!!u});return l(xp(o,r));function s(u){var f=i+"Index",c=i+"Id",v=i+"Name";return u&&(u[f]!=null||u[c]!=null||u[v]!=null)?{mainType:i,index:u[f],id:u[c],name:u[v]}:null}function l(u){return r.filter?_t(u,r.filter):u}},t.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(X(r)){var o=n,s=r;a.each(function(c,v){for(var h=0;c&&h<c.length;h++){var d=c[h];d&&s.call(o,v,d,d.componentIndex)}})}else for(var l=$(r)?a.get(r):H(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(i,f,f.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=or(r,null);return _t(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return _t(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return _t(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){pa(this),A(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},t.prototype.eachRawSeries=function(r,n){A(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,i){pa(this),A(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},t.prototype.eachRawSeriesByType=function(r,n,i){return A(this.getSeriesByType(r),n,i)},t.prototype.isSeriesFiltered=function(r){return pa(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){pa(this);var i=[];A(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=Q(i)},t.prototype.restoreData=function(r){jo(this);var n=this._componentsMap,i=[];n.each(function(a,o){st.hasClass(o)&&i.push(o)}),st.topologicalTravel(i,st.getAllClassMainTypes(),function(a){A(n.get(a),function(o){o&&(a!=="series"||!RA(o,r))&&o.restoreData()})})},t.internalField=function(){jo=function(r){var n=r._seriesIndices=[];A(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=Q(n)},pa=function(r){if(process.env.NODE_ENV!=="production"&&!r._seriesIndices)throw new Error("Option should contains series.")},yp=function(r,n){r.option={},r.option[Ku]=mp,r._componentsMap=Q({series:[]}),r._componentsCount=Q();var i=n.aria;H(i)&&i.enabled==null&&(i.enabled=!0),kA(n,r._theme.option),rt(n,wA,!1),r._mergeOption(n,null)}}(),t}(Et);function RA(e,t){if(t){var r=t.seriesIndex,n=t.seriesId,i=t.seriesName;return r!=null&&e.componentIndex!==r||n!=null&&e.id!==n||i!=null&&e.name!==i}}function kA(e,t){var r=e.color&&!e.colorLayer;A(t,function(n,i){i==="colorLayer"&&r||st.hasClass(i)||(typeof n=="object"?e[i]=e[i]?rt(e[i],n,!1):j(n):e[i]==null&&(e[i]=n))})}function _p(e,t,r){if(V(t)){var n=Q();return A(t,function(a){if(a!=null){var o=or(a,null);o!=null&&n.set(a,!0)}}),_t(r,function(a){return a&&n.get(a[e])})}else{var i=or(t,null);return _t(r,function(a){return a&&i!=null&&a[e]===i})}}function xp(e,t){return t.hasOwnProperty("subType")?_t(e,function(r){return r&&r.subType===t.subType}):e}function bp(e){var t=Q();return e&&A(St(e.replaceMerge),function(r){process.env.NODE_ENV!=="production"&&J(st.hasClass(r),'"'+r+'" is not valid component main type in "replaceMerge"'),t.set(r,!0)}),{replaceMergeMainTypeMap:t}}ie(k_,Qh);const B_=k_;var BA=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],FA=function(){function e(t){A(BA,function(r){this[r]=ht(t[r],t)},this)}return e}();const F_=FA;var Qu={},VA=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var n=[];A(Qu,function(i,a){var o=i.create(t,r);n=n.concat(o||[])}),this._coordinateSystems=n},e.prototype.update=function(t,r){A(this._coordinateSystems,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,r){Qu[t]=r},e.get=function(t){return Qu[t]},e}();const Zl=VA;var zA=/^(min|max)?(.+)$/,GA=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(A(St(t.series),function(o){o&&o.data&&re(o.data)&&ja(o.data)}),A(St(t.dataset),function(o){o&&o.source&&re(o.source)&&ja(o.source)})),t=j(t);var i=this._optionBackup,a=$A(t,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],j(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(r=j(n[i.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)HA(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!UA(o,this._currentMediaIndices)&&(s=z(o,function(f){return j(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},e}();function $A(e,t,r){var n=[],i,a,o=e.baseOption,s=e.timeline,l=e.options,u=e.media,f=!!e.media,c=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((c||f)&&(e.options=e.media=null),a=e),f&&(V(u)?A(u,function(h){process.env.NODE_ENV!=="production"&&h&&!h.option&&H(h.query)&&H(h.query.option)&&qt("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),h&&h.option&&(h.query?n.push(h):i||(i=h))}):process.env.NODE_ENV!=="production"&&qt("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),v(a),A(l,function(h){return v(h)}),A(n,function(h){return v(h.option)});function v(h){A(t,function(d){d(h,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function HA(e,t,r){var n={width:t,height:r,aspectratio:t/r},i=!0;return A(e,function(a,o){var s=o.match(zA);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();WA(n[u],a,l)||(i=!1)}}),i}function WA(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function UA(e,t){return e.join(",")===t.join(",")}const YA=GA;var me=A,so=H,Sp=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Ju(e){var t=e&&e.itemStyle;if(!!t)for(var r=0,n=Sp.length;r<n;r++){var i=Sp[r],a=t.normal,o=t.emphasis;a&&a[i]&&(process.env.NODE_ENV!=="production"&&It("itemStyle.normal."+i,i),e[i]=e[i]||{},e[i].normal?rt(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(process.env.NODE_ENV!=="production"&&It("itemStyle.emphasis."+i,"emphasis."+i),e[i]=e[i]||{},e[i].emphasis?rt(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function Ut(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var n=e[t].normal,i=e[t].emphasis;n&&(process.env.NODE_ENV!=="production"&&Ye("'normal' hierarchy in "+t+" has been removed since 4.0. All style properties are configured in "+t+" directly now."),r?(e[t].normal=e[t].emphasis=null,Y(e[t],n)):e[t]=n),i&&(process.env.NODE_ENV!=="production"&&Ye(t+".emphasis has been changed to emphasis."+t+" since 4.0"),e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function Ra(e){Ut(e,"itemStyle"),Ut(e,"lineStyle"),Ut(e,"areaStyle"),Ut(e,"label"),Ut(e,"labelLine"),Ut(e,"upperLabel"),Ut(e,"edgeLabel")}function Mt(e,t){var r=so(e)&&e[t],n=so(r)&&r.textStyle;if(n){process.env.NODE_ENV!=="production"&&Ye("textStyle hierarchy in "+t+" has been removed since 4.0. All textStyle properties are configured in "+t+" directly now.");for(var i=0,a=bd.length;i<a;i++){var o=bd[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}}function we(e){e&&(Ra(e),Mt(e,"label"),e.emphasis&&Mt(e.emphasis,"label"))}function XA(e){if(!!so(e)){Ju(e),Ra(e),Mt(e,"label"),Mt(e,"upperLabel"),Mt(e,"edgeLabel"),e.emphasis&&(Mt(e.emphasis,"label"),Mt(e.emphasis,"upperLabel"),Mt(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(Ju(t),we(t));var r=e.markLine;r&&(Ju(r),we(r));var n=e.markArea;n&&we(n);var i=e.data;if(e.type==="graph"){i=i||e.nodes;var a=e.links||e.edges;if(a&&!re(a))for(var o=0;o<a.length;o++)we(a[o]);A(e.categories,function(u){Ra(u)})}if(i&&!re(i))for(var o=0;o<i.length;o++)we(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)we(s[o]);if(r=e.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)V(l[o])?(we(l[o][0]),we(l[o][1])):we(l[o]);e.type==="gauge"?(Mt(e,"axisLabel"),Mt(e,"title"),Mt(e,"detail")):e.type==="treemap"?(Ut(e.breadcrumb,"itemStyle"),A(e.levels,function(u){Ra(u)})):e.type==="tree"&&Ra(e.leaves)}}function gr(e){return V(e)?e:e?[e]:[]}function wp(e){return(V(e)?e[0]:e)||{}}function qA(e,t){me(gr(e.series),function(n){so(n)&&XA(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),me(r,function(n){me(gr(e[n]),function(i){i&&(Mt(i,"axisLabel"),Mt(i.axisPointer,"label"))})}),me(gr(e.parallel),function(n){var i=n&&n.parallelAxisDefault;Mt(i,"axisLabel"),Mt(i&&i.axisPointer,"label")}),me(gr(e.calendar),function(n){Ut(n,"itemStyle"),Mt(n,"dayLabel"),Mt(n,"monthLabel"),Mt(n,"yearLabel")}),me(gr(e.radar),function(n){Mt(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name,process.env.NODE_ENV!=="production"&&Ye("name property in radar component has been changed to axisName")),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap,process.env.NODE_ENV!=="production"&&Ye("nameGap property in radar component has been changed to axisNameGap")),process.env.NODE_ENV!=="production"&&me(n.indicator,function(i){i.text&&It("text","name","radar.indicator")})}),me(gr(e.geo),function(n){so(n)&&(we(n),me(gr(n.regions),function(i){we(i)}))}),me(gr(e.timeline),function(n){we(n),Ut(n,"label"),Ut(n,"itemStyle"),Ut(n,"controlStyle",!0);var i=n.data;V(i)&&A(i,function(a){H(a)&&(Ut(a,"label"),Ut(a,"itemStyle"))})}),me(gr(e.toolbox),function(n){Ut(n,"iconStyle"),me(n.feature,function(i){Ut(i,"iconStyle")})}),Mt(wp(e.axisPointer),"label"),Mt(wp(e.tooltip).axisPointer,"label")}function ZA(e,t){for(var r=t.split(","),n=e,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function jA(e,t,r,n){for(var i=t.split(","),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];(n||a[i[s]]==null)&&(a[i[s]]=r)}function Tp(e){e&&A(KA,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var KA=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],QA=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],tf=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function ga(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<tf.length;r++){var n=tf[r][1],i=tf[r][0];t[n]!=null&&(t[i]=t[n],process.env.NODE_ENV!=="production"&&It(n,i))}}function Cp(e){!e||e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(process.env.NODE_ENV!=="production"&&It("label.margin","label.edgeDistance","pie"),e.edgeDistance=e.margin)}function Dp(e){!e||e.downplay&&!e.blur&&(e.blur=e.downplay,process.env.NODE_ENV!=="production"&&It("downplay","blur","sunburst"))}function JA(e){!e||e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(process.env.NODE_ENV!=="production"&&It("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),e.emphasis.focus="adjacency"))}function V_(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&V_(e[r].children,t)}function z_(e,t){qA(e,t),e.series=St(e.series),A(e.series,function(r){if(!!H(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow,process.env.NODE_ENV!=="production"&&It("clipOverflow","clip","line"));else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise,process.env.NODE_ENV!=="production"&&It("clockWise","clockwise")),Cp(r.label);var i=r.data;if(i&&!re(i))for(var a=0;a<i.length;a++)Cp(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(process.env.NODE_ENV!=="production"&&It("hoverOffset","emphasis.scaleSize"),r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=ZA(r,"pointer.color");o!=null&&jA(r,"itemStyle.color",o)}else if(n==="bar"){ga(r),ga(r.backgroundStyle),ga(r.emphasis);var i=r.data;if(i&&!re(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(ga(i[a]),ga(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s,process.env.NODE_ENV!=="production"&&It("highlightPolicy","emphasis.focus","sunburst"))),Dp(r),V_(r.data,Dp)}else n==="graph"||n==="sankey"?JA(r):n==="map"&&(r.mapType&&!r.map&&(process.env.NODE_ENV!=="production"&&It("mapType","map","map"),r.map=r.mapType),r.mapLocation&&(process.env.NODE_ENV!=="production"&&Ye("`mapLocation` is not used anymore."),Y(r,r.mapLocation)));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(process.env.NODE_ENV!=="production"&&It("hoverAnimation","emphasis.scale"),r.emphasis.scale=r.hoverAnimation)),Tp(r)}}),e.dataRange&&(e.visualMap=e.dataRange),A(QA,function(r){var n=e[r];n&&(V(n)||(n=[n]),A(n,function(i){Tp(i)}))})}function tM(e){var t=Q();e.eachSeries(function(r){var n=r.get("stack");if(n){var i=t.get(n)||t.set(n,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),t.each(eM)}function eM(e){A(e,function(t,r){var n=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,c){var v=o.get(t.stackedDimension,c);if(isNaN(v))return i;var h,d;s?d=o.getRawIndex(c):h=o.get(t.stackedByDimension,c);for(var p=NaN,g=r-1;g>=0;g--){var y=e[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,h)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&v>=0&&m>0||l==="samesign"&&v<=0&&m<0){v=_T(v,m),p=m;break}}}return n[0]=v,n[1]=p,n})})}var jl=function(){function e(t){this.data=t.data||(t.sourceFormat===hr?{}:[]),this.sourceFormat=t.sourceFormat||P_,this.seriesLayoutBy=t.seriesLayoutBy||sr,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&N_(this,n)===Ft.Must&&(i.type="ordinal")}}return e}();function Jh(e){return e instanceof jl}function mc(e,t,r){r=r||G_(e);var n=t.seriesLayoutBy,i=nM(e,r,n,t.sourceHeader,t.dimensions),a=new jl({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:j(t)});return a}function tv(e){return new jl({data:e,sourceFormat:re(e)?wr:ke})}function rM(e){return new jl({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:j(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function G_(e){var t=P_;if(re(e))t=wr;else if(V(e)){e.length===0&&(t=ne);for(var r=0,n=e.length;r<n;r++){var i=e[r];if(i!=null){if(V(i)){t=ne;break}else if(H(i)){t=Be;break}}}}else if(H(e)){for(var a in e)if(ur(e,a)&&Xt(e[a])){t=hr;break}}return t}function nM(e,t,r,n,i){var a,o;if(!e)return{dimensionsDefine:Ap(i),startIndex:o,dimensionsDetectedCount:a};if(t===ne){var s=e;n==="auto"||n==null?Mp(function(u){u!=null&&u!=="-"&&($(u)?o==null&&(o=1):o=0)},r,s,10):o=vt(n)?n:n?1:0,!i&&o===1&&(i=[],Mp(function(u,f){i[f]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===na?s.length:s[0]?s[0].length:null}else if(t===Be)i||(i=iM(e));else if(t===hr)i||(i=[],A(e,function(u,f){i.push(f)}));else if(t===ke){var l=So(e[0]);a=V(l)&&l.length||1}else t===wr&&process.env.NODE_ENV!=="production"&&J(!!i,"dimensions must be given if data is TypedArray.");return{startIndex:o,dimensionsDefine:Ap(i),dimensionsDetectedCount:a}}function iM(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return mt(r)}function Ap(e){if(!!e){var t=Q();return z(e,function(r,n){r=H(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=t.get(i.name);return a?i.name+="-"+a.count++:t.set(i.name,{count:1}),i})}}function Mp(e,t,r,n){if(t===na)for(var i=0;i<r.length&&i<n;i++)e(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)e(a[i],i)}function $_(e){var t=e.sourceFormat;return t===Be||t===hr}var An,Mn,En,Ep,Lp,H_=function(){function e(t,r){var n=Jh(t)?t:tv(t);this._source=n;var i=this._data=n.data;if(n.sourceFormat===wr){if(process.env.NODE_ENV!=="production"&&r==null)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=r,this._data=i}Lp(this,i,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var t;Lp=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,v=l.dimensionsDefine,h=Ep[ev(u,f)];if(process.env.NODE_ENV!=="production"&&J(h,"Invalide sourceFormat: "+u),k(o,h),u===wr)o.getItem=r,o.count=i,o.fillStorage=n;else{var d=W_(u,f);o.getItem=ht(d,null,s,c,v);var p=U_(u,f);o.count=ht(p,null,s,c,v)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},n=function(o,s,l,u){for(var f=this._data,c=this._dimSize,v=0;v<c;v++){for(var h=u[v],d=h[0]==null?1/0:h[0],p=h[1]==null?-1/0:h[1],g=s-o,y=l[v],m=0;m<g;m++){var _=f[m*c+v];y[o+m]=_,_<d&&(d=_),_>p&&(p=_)}h[0]=d,h[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};Ep=(t={},t[ne+"_"+sr]={pure:!0,appendData:a},t[ne+"_"+na]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Be]={pure:!0,appendData:a},t[hr]={pure:!0,appendData:function(o){var s=this._data;A(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},t[ke]={appendData:a},t[wr]={persistent:!1,pure:!0,appendData:function(o){process.env.NODE_ENV!=="production"&&J(re(o),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),e}(),Pp=function(e,t,r,n){return e[n]},aM=(An={},An[ne+"_"+sr]=function(e,t,r,n){return e[n+t]},An[ne+"_"+na]=function(e,t,r,n,i){n+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},An[Be]=Pp,An[hr]=function(e,t,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name;if(process.env.NODE_ENV!=="production"&&s==null)throw new Error;var l=e[s];a[o]=l?l[n]:null}return a},An[ke]=Pp,An);function W_(e,t){var r=aM[ev(e,t)];return process.env.NODE_ENV!=="production"&&J(r,'Do not support get item on "'+e+'", "'+t+'".'),r}var Ip=function(e,t,r){return e.length},oM=(Mn={},Mn[ne+"_"+sr]=function(e,t,r){return Math.max(0,e.length-t)},Mn[ne+"_"+na]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},Mn[Be]=Ip,Mn[hr]=function(e,t,r){var n=r[0].name;if(process.env.NODE_ENV!=="production"&&n==null)throw new Error;var i=e[n];return i?i.length:0},Mn[ke]=Ip,Mn);function U_(e,t){var r=oM[ev(e,t)];return process.env.NODE_ENV!=="production"&&J(r,'Do not support count on "'+e+'", "'+t+'".'),r}var ef=function(e,t,r){return e[t]},sM=(En={},En[ne]=ef,En[Be]=function(e,t,r){return e[r]},En[hr]=ef,En[ke]=function(e,t,r){var n=So(e);return n instanceof Array?n[t]:n},En[wr]=ef,En);function Y_(e){var t=sM[e];return process.env.NODE_ENV!=="production"&&J(t,'Do not support get value on "'+e+'".'),t}function ev(e,t){return e===ne?e+"_"+t:e}function Yi(e,t,r){if(!!e){var n=e.getRawDataItem(t);if(n!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=i.getDimensionProperty(o);return Y_(a)(n,o,s)}else{var l=n;return a===ke&&(l=So(n)),l}}}}var lM=/\{@(.+?)\}/g,uM=function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),i=this.getRawValue(t,r),a=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,v=c==="series",h=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:v?this.subType:null,seriesIndex:this.seriesIndex,seriesId:v?this.id:null,seriesName:v?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:u,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,i,a,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),i!=null&&V(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(t);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(X(a))return l.status=r,l.dimensionIndex=i,a(l);if($(a)){var f=Zh(a,l);return f.replace(lM,function(c,v){var h=v.length,d=v;d.charAt(0)==="["&&d.charAt(h-1)==="]"&&(d=+d.slice(1,h-1),process.env.NODE_ENV!=="production"&&isNaN(d)&&qt("Invalide label formatter: @"+v+", only support @[0], @[1], @[2], ..."));var p=Yi(s,t,d);if(o&&V(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},e.prototype.getRawValue=function(t,r){return Yi(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function Op(e){var t,r;return H(e)?e.type?r=e:process.env.NODE_ENV!=="production"&&console.warn("The return type of `formatTooltip` is not supported: "+he(e)):t=e,{text:t,frag:r}}function Ua(e){return new fM(e)}var fM=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(m){return!(m>=1)&&(m=1),m}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var v=t&&t.step;if(r?(process.env.NODE_ENV!=="production"&&J(r._outputDueEnd!=null),this._dueEnd=r._outputDueEnd):(process.env.NODE_ENV!=="production"&&J(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var h=this._dueIndex,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!n&&(c||h<d)){var p=this._progress;if(V(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],h,d,l,u);else this._doProgress(p,h,d,l,u)}this._dueIndex=d;var y=this._settedOutputEnd!=null?this._settedOutputEnd:d;process.env.NODE_ENV!=="production"&&J(y>=this._outputDueEnd),this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,n,i,a){Np.reset(r,n,i,a),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:Np.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),V(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){process.env.NODE_ENV!=="production"&&J(t&&!t._disposed&&t!==this),(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e}(),Np=function(){var e,t,r,n,i,a={reset:function(l,u,f,c){t=l,e=u,r=f,n=c,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var l=t%i*r+Math.ceil(t/i),u=t>=e?null:l<n?l:t;return t++,u}}();function Ns(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!vt(e)&&e!=null&&e!=="-"&&(e=+Le(e)),e==null||e===""?NaN:+e)}var cM=Q({number:function(e){return parseFloat(e)},time:function(e){return+Le(e)},trim:function(e){return $(e)?He(e):e}});function X_(e){return cM.get(e)}var q_={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},hM=function(){function e(t,r){if(!vt(r)){var n="";process.env.NODE_ENV!=="production"&&(n='rvalue of "<", ">", "<=", ">=" can only be number in filter.'),lt(n)}this._opFn=q_[t],this._rvalFloat=Ar(r)}return e.prototype.evaluate=function(t){return vt(t)?this._opFn(t,this._rvalFloat):this._opFn(Ar(t),this._rvalFloat)},e}(),Z_=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=vt(t)?t:Ar(t),i=vt(r)?r:Ar(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=$(t),l=$(r);s&&(n=l?t:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},e}(),vM=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=Ar(r)}return e.prototype.evaluate=function(t){var r=t===this._rval;if(!r){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=Ar(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function dM(e,t){return e==="eq"||e==="ne"?new vM(e==="eq",t):ur(q_,e)?new hM(e,t):null}var pM=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return Ns(t,r)},e}();function gM(e,t){var r=new pM,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==sr&&(process.env.NODE_ENV!=="production"&&(o='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),lt(o));var s=[],l={},u=e.dimensionsDefine;if(u)A(u,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var _="";ur(l,y)&&(process.env.NODE_ENV!=="production"&&(_='dimension name "'+y+'" duplicated.'),lt(_)),l[y]=m}});else for(var f=0;f<e.dimensionsDetectedCount;f++)s.push({index:f});var c=W_(i,sr);t.__isBuiltIn&&(r.getRawDataItem=function(p){return c(n,a,s,p)},r.getRawData=ht(yM,null,e)),r.cloneRawData=ht(mM,null,e);var v=U_(i,sr);r.count=ht(v,null,n,a,s);var h=Y_(i);r.retrieveValue=function(p,g){var y=c(n,a,s,p);return d(y,g)};var d=r.retrieveValueFromItem=function(p,g){if(p!=null){var y=s[g];if(y)return h(p,g,y.name)}};return r.getDimensionInfo=ht(_M,null,s,l),r.cloneAllDimensionInfo=ht(xM,null,s),r}function yM(e){var t=e.sourceFormat;if(!rv(t)){var r="";process.env.NODE_ENV!=="production"&&(r="`getRawData` is not supported in source format "+t),lt(r)}return e.data}function mM(e){var t=e.sourceFormat,r=e.data;if(!rv(t)){var n="";process.env.NODE_ENV!=="production"&&(n="`cloneRawData` is not supported in source format "+t),lt(n)}if(t===ne){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(t===Be){for(var i=[],a=0,o=r.length;a<o;a++)i.push(k({},r[a]));return i}}function _M(e,t,r){if(r!=null){if(vt(r)||!isNaN(r)&&!ur(t,r))return e[r];if(ur(t,r))return t[r]}}function xM(e){return j(e)}var j_=Q();function bM(e){e=j(e);var t=e.type,r="";t||(process.env.NODE_ENV!=="production"&&(r="Must have a `type` when `registerTransform`."),lt(r));var n=t.split(":");n.length!==2&&(process.env.NODE_ENV!=="production"&&(r='Name must include namespace like "ns:regression".'),lt(r));var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),e.__isBuiltIn=i,j_.set(t,e)}function SM(e,t,r){var n=St(e),i=n.length,a="";i||(process.env.NODE_ENV!=="production"&&(a="If `transform` declared, it should at least contain one transform."),lt(a));for(var o=0,s=i;o<s;o++){var l=n[o];t=wM(l,t,r,i===1?null:o),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function wM(e,t,r,n){var i="";t.length||(process.env.NODE_ENV!=="production"&&(i="Must have at least one upstream dataset."),lt(i)),H(e)||(process.env.NODE_ENV!=="production"&&(i="transform declaration must be an object rather than "+typeof e+"."),lt(i));var a=e.type,o=j_.get(a);o||(process.env.NODE_ENV!=="production"&&(i='Can not find transform on type "'+a+'".'),lt(i));var s=z(t,function(f){return gM(f,o)}),l=St(o.transform({upstream:s[0],upstreamList:s,config:j(e.config)}));if(process.env.NODE_ENV!=="production"&&e.print){var u=z(l,function(f){var c=n!=null?" === pipe index: "+n:"";return["=== dataset index: "+r.datasetIndex+c+" ===","- transform result data:",he(f.data),"- transform result dimensions:",he(f.dimensions)].join(`
39
39
  `)}).join(`
40
- `);DT(u)}return z(l,function(f,c){var v="";H(f)||(process.env.NODE_ENV!=="production"&&(v="A transform should not return some empty results."),lt(v)),f.data||(process.env.NODE_ENV!=="production"&&(v="Transform result data should be not be null or undefined"),lt(v));var h=z_(f.data);ev(h)||(process.env.NODE_ENV!=="production"&&(v="Transform result data should be array rows or object rows."),lt(v));var d,g=t[0];if(g&&c===0&&!f.dimensions){var p=g.startIndex;p&&(f.data=g.data.slice(0,p).concat(f.data)),d={seriesLayoutBy:sr,sourceHeader:p,dimensions:g.metaRawOption.dimensions}}else d={seriesLayoutBy:sr,sourceHeader:0,dimensions:f.dimensions};return mc(f.data,d,null)})}function ev(e){return e===ne||e===Be}var Kl="undefined",TM=typeof Uint32Array===Kl?Array:Uint32Array,CM=typeof Uint16Array===Kl?Array:Uint16Array,j_=typeof Int32Array===Kl?Array:Int32Array,Np=typeof Float64Array===Kl?Array:Float64Array,K_={float:Np,int:j_,ordinal:Array,number:Array,time:Np},rf;function ga(e){return e>65535?TM:CM}function yi(){return[1/0,-1/0]}function DM(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Rp(e,t,r,n,i){var a=K_[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];e[t]=l}}else e[t]=new a(n)}var AM=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Q()}return e.prototype.initData=function(t,r,n){process.env.NODE_ENV!=="production"&&J(X(t.getItem)&&X(t.count),"Invalid data provider."),this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),a=this.defaultDimValueGetter=rf[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[];var o=G_(i);this._dimensions=z(r,function(s){return process.env.NODE_ENV!=="production"&&o&&J(s.property!=null),{type:s.type,property:s.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(t);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(t,a),this._chunks[a]=new K_[r||"float"](this._rawCount),this._rawExtent[a]=yi(),a},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],i=this._dimensions[t],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[t]=yi());for(var l=a[t],u=o;u<s;u++){var f=n[u]=r.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],n=r.ordinalMeta;return n},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){process.env.NODE_ENV!=="production"&&J(!this._indices,"appendData can only be called on raw data.");var r=this._provider,n=this.count();r.appendData(t);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},e.prototype.appendValues=function(t,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,r||0),u=0;u<a;u++){var f=i[u];Rp(n,u,f.type,l,!0)}for(var c=[],v=s;v<l;v++)for(var h=v-s,d=0;d<a;d++){var f=i[d],g=rf.arrayRows.call(this,t[h]||c,f.property,h,d);n[d][v]=g;var p=o[d];g<p[0]&&(p[0]=g),g>p[1]&&(p[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=z(o,function(m){return m.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=yi()),Rp(a,f,c.type,r,n)}if(i.fillStorage)i.fillStorage(t,r,a,l);else for(var v=[],h=t;h<r;h++){v=i.getItem(h,v);for(var d=0;d<s;d++){var g=a[d],p=this._dimValueGetter(v,u[d],h,d);g[h]=p;var y=l[d];p<y[0]&&(y[0]=p),p>y[1]&&(y[1]=p)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var n=[],i=[];if(r==null){r=t,t=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=t;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[t];return n?n[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(a){isNaN(a)||r.push(a)});var n=r.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&n<this._count&&n===t)return t;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<t)i=o+1;else if(r[o]>t)a=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,f=0,c=this.count();f<c;f++){var v=this.getRawIndex(f),h=r-a[v],d=Math.abs(h);d<=n&&((d<s||d===s&&h>=0&&l<0)&&(s=d,l=h,u=0),h===l&&(o[u++]=f))}return o.length=u,o},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a<i;a++)t[a]=r[a]}else t=new n(r.buffer,0,i)}else{var n=ga(this._rawCount);t=new n(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=ga(n._rawCount),o=new a(i),s=[],l=t.length,u=0,f=t[0],c=n._chunks,v=0;v<i;v++){var h=void 0,d=n.getRawIndex(v);if(l===0)h=r(v);else if(l===1){var g=c[f][d];h=r(g,v)}else{for(var p=0;p<l;p++)s[p]=c[t[p]][d];s[p]=v,h=r.apply(null,s)}h&&(o[u++]=d)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(t){var r=this.clone(),n=r._count;if(!n)return this;var i=mt(t),a=i.length;if(!a)return this;var o=r.count(),s=ga(r._rawCount),l=new s(o),u=0,f=i[0],c=t[f][0],v=t[f][1],h=r._chunks,d=!1;if(!r._indices){var g=0;if(a===1){for(var p=h[i[0]],y=0;y<n;y++){var m=p[y];(m>=c&&m<=v||isNaN(m))&&(l[u++]=g),g++}d=!0}else if(a===2){for(var p=h[i[0]],_=h[i[1]],x=t[i[1]][0],w=t[i[1]][1],y=0;y<n;y++){var m=p[y],b=_[y];(m>=c&&m<=v||isNaN(m))&&(b>=x&&b<=w||isNaN(b))&&(l[u++]=g),g++}d=!0}}if(!d)if(a===1)for(var y=0;y<o;y++){var S=r.getRawIndex(y),m=h[i[0]][S];(m>=c&&m<=v||isNaN(m))&&(l[u++]=S)}else for(var y=0;y<o;y++){for(var T=!0,S=r.getRawIndex(y),D=0;D<a;D++){var M=i[D],m=h[M][S];(m<t[M][0]||m>t[M][1])&&(T=!1)}T&&(l[u++]=r.getRawIndex(y))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var n=this.clone(t);return this._updateDims(n,t,r),n},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,n){for(var i=t._chunks,a=[],o=r.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<r.length;f++)u[r[f]]=yi();for(var c=0;c<s;c++){for(var v=t.getRawIndex(c),h=0;h<o;h++)l[h]=i[r[h]][v];l[o]=c;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var g=r[f],p=d[f],y=u[g],m=i[g];m&&(m[v]=p),p<y[0]&&(y[0]=p),p>y[1]&&(y[1]=p)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,c,v,h=new(ga(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var d=1;d<o-1;d+=l){for(var g=Math.min(d+l,o-1),p=Math.min(d+l*2,o),y=(p+g)/2,m=0,_=g;_<p;_++){var x=this.getRawIndex(_),w=a[x];isNaN(w)||(m+=w)}m/=p-g;var b=d,S=Math.min(d+l,o),T=d-1,D=a[u];f=-1,v=b;for(var M=-1,C=0,_=b;_<S;_++){var x=this.getRawIndex(_),w=a[x];if(isNaN(w)){C++,M<0&&(M=x);continue}c=Math.abs((T-y)*(w-D)-(T-_)*(m-D)),c>f&&(f=c,v=x)}C>0&&C<S-b&&(h[s++]=Math.min(M,v),v=Math.max(M,v)),h[s++]=v,u=v}return h[s++]=this.getRawIndex(o-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},e.prototype.downSample=function(t,r,n,i){for(var a=this.clone([t],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[t],f=this.count(),c=a._rawExtent[t]=yi(),v=new(ga(this._rawCount))(Math.ceil(f/l)),h=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var g=0;g<l;g++){var p=this.getRawIndex(d+g);s[g]=u[p]}var y=n(s),m=this.getRawIndex(Math.min(d+i(s,y)||0,f-1));u[m]=y,y<c[0]&&(c[0]=y),y>c[1]&&(c[1]=y),v[h++]=m}return a._count=h,a._indices=v,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(!!this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[t[0]][s],a);break;case 2:r(i[t[0]][s],i[t[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[t[l]][s];u[l]=a,r.apply(null,u)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],n=yi();if(!r)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<i;u++){var f=this.getRawIndex(u),c=r[f];c<s&&(s=c),c>l&&(l=c)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][r]);return n},e.prototype.clone=function(t,r){var n=new e,i=this._chunks,a=t&&lr(t,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?DM(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=j(this._extent),t._rawExtent=j(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var n=this._indices.length;r=new t(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,i,a){return Os(r[a],this._dimensions[a])}rf={arrayRows:t,objectRows:function(r,n,i,a){return Os(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Os(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}();const _c=AM;var Q_=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(ya(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=re(s)?wr:ke,a=[];var c=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},h=nt(c.seriesLayoutBy,v.seriesLayoutBy)||null,d=nt(c.sourceHeader,v.sourceHeader),g=nt(c.dimensions,v.dimensions),p=h!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||g;i=p?[mc(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:g},l)]:[]}else{var y=t;if(n){var m=this._applyTransform(r);i=m.sourceList,a=m.upstreamSignList}else{var _=y.get("source",!0);i=[mc(_,this._getSourceMetaRawOption(),null)],a=[]}}process.env.NODE_ENV!=="production"&&J(i&&a),this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(process.env.NODE_ENV!=="production"&&J(i!=null||n!=null),i!=null){var a="";t.length!==1&&(process.env.NODE_ENV!=="production"&&(a="When using `fromTransformResult`, there should be only one upstream dataset"),Bp(a))}var o,s=[],l=[];return A(t,function(u){u.prepareSource();var f=u.getSource(i||0),c="";i!=null&&!f&&(process.env.NODE_ENV!=="production"&&(c="Can not retrieve result by `fromTransformResult`: "+i),Bp(c)),s.push(f),l.push(u._getVersionSign())}),n?o=SM(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[rM(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var n=t[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){process.env.NODE_ENV!=="production"&&J(ya(this._sourceHost),"Can only call getDataStore on series source manager.");var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,r,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];ya(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new _c,s.initData(new $_(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(ya(t)){var r=jh(t);return r?[r.getSourceManager()]:[]}else return z(DA(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,i;if(ya(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},e}();function kp(e){var t=e.option.transform;t&&Za(e.option.transform)}function ya(e){return e.mainType==="series"}function Bp(e){throw new Error(e)}var J_="line-height:1";function t1(e,t){var r=e.color||"#6e7079",n=e.fontSize||12,i=e.fontWeight||"400",a=e.color||"#464646",o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+de(n+"")+"px;color:"+de(r)+";font-weight:"+de(i+""),valueStyle:"font-size:"+de(o+"")+"px;color:"+de(a)+";font-weight:"+de(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var MM=[0,10,20,30],EM=["",`
40
+ `);DT(u)}return z(l,function(f,c){var v="";H(f)||(process.env.NODE_ENV!=="production"&&(v="A transform should not return some empty results."),lt(v)),f.data||(process.env.NODE_ENV!=="production"&&(v="Transform result data should be not be null or undefined"),lt(v));var h=G_(f.data);rv(h)||(process.env.NODE_ENV!=="production"&&(v="Transform result data should be array rows or object rows."),lt(v));var d,p=t[0];if(p&&c===0&&!f.dimensions){var g=p.startIndex;g&&(f.data=p.data.slice(0,g).concat(f.data)),d={seriesLayoutBy:sr,sourceHeader:g,dimensions:p.metaRawOption.dimensions}}else d={seriesLayoutBy:sr,sourceHeader:0,dimensions:f.dimensions};return mc(f.data,d,null)})}function rv(e){return e===ne||e===Be}var Kl="undefined",TM=typeof Uint32Array===Kl?Array:Uint32Array,CM=typeof Uint16Array===Kl?Array:Uint16Array,K_=typeof Int32Array===Kl?Array:Int32Array,Rp=typeof Float64Array===Kl?Array:Float64Array,Q_={float:Rp,int:K_,ordinal:Array,number:Array,time:Rp},rf;function ya(e){return e>65535?TM:CM}function mi(){return[1/0,-1/0]}function DM(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function kp(e,t,r,n,i){var a=Q_[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];e[t]=l}}else e[t]=new a(n)}var AM=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Q()}return e.prototype.initData=function(t,r,n){process.env.NODE_ENV!=="production"&&J(X(t.getItem)&&X(t.count),"Invalid data provider."),this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),a=this.defaultDimValueGetter=rf[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[];var o=$_(i);this._dimensions=z(r,function(s){return process.env.NODE_ENV!=="production"&&o&&J(s.property!=null),{type:s.type,property:s.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(t);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(t,a),this._chunks[a]=new Q_[r||"float"](this._rawCount),this._rawExtent[a]=mi(),a},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],i=this._dimensions[t],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[t]=mi());for(var l=a[t],u=o;u<s;u++){var f=n[u]=r.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],n=r.ordinalMeta;return n},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){process.env.NODE_ENV!=="production"&&J(!this._indices,"appendData can only be called on raw data.");var r=this._provider,n=this.count();r.appendData(t);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},e.prototype.appendValues=function(t,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,r||0),u=0;u<a;u++){var f=i[u];kp(n,u,f.type,l,!0)}for(var c=[],v=s;v<l;v++)for(var h=v-s,d=0;d<a;d++){var f=i[d],p=rf.arrayRows.call(this,t[h]||c,f.property,h,d);n[d][v]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=z(o,function(m){return m.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=mi()),kp(a,f,c.type,r,n)}if(i.fillStorage)i.fillStorage(t,r,a,l);else for(var v=[],h=t;h<r;h++){v=i.getItem(h,v);for(var d=0;d<s;d++){var p=a[d],g=this._dimValueGetter(v,u[d],h,d);p[h]=g;var y=l[d];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var n=[],i=[];if(r==null){r=t,t=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=t;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[t];return n?n[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(a){isNaN(a)||r.push(a)});var n=r.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&n<this._count&&n===t)return t;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<t)i=o+1;else if(r[o]>t)a=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,f=0,c=this.count();f<c;f++){var v=this.getRawIndex(f),h=r-a[v],d=Math.abs(h);d<=n&&((d<s||d===s&&h>=0&&l<0)&&(s=d,l=h,u=0),h===l&&(o[u++]=f))}return o.length=u,o},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a<i;a++)t[a]=r[a]}else t=new n(r.buffer,0,i)}else{var n=ya(this._rawCount);t=new n(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=ya(n._rawCount),o=new a(i),s=[],l=t.length,u=0,f=t[0],c=n._chunks,v=0;v<i;v++){var h=void 0,d=n.getRawIndex(v);if(l===0)h=r(v);else if(l===1){var p=c[f][d];h=r(p,v)}else{for(var g=0;g<l;g++)s[g]=c[t[g]][d];s[g]=v,h=r.apply(null,s)}h&&(o[u++]=d)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(t){var r=this.clone(),n=r._count;if(!n)return this;var i=mt(t),a=i.length;if(!a)return this;var o=r.count(),s=ya(r._rawCount),l=new s(o),u=0,f=i[0],c=t[f][0],v=t[f][1],h=r._chunks,d=!1;if(!r._indices){var p=0;if(a===1){for(var g=h[i[0]],y=0;y<n;y++){var m=g[y];(m>=c&&m<=v||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(a===2){for(var g=h[i[0]],_=h[i[1]],x=t[i[1]][0],w=t[i[1]][1],y=0;y<n;y++){var m=g[y],b=_[y];(m>=c&&m<=v||isNaN(m))&&(b>=x&&b<=w||isNaN(b))&&(l[u++]=p),p++}d=!0}}if(!d)if(a===1)for(var y=0;y<o;y++){var S=r.getRawIndex(y),m=h[i[0]][S];(m>=c&&m<=v||isNaN(m))&&(l[u++]=S)}else for(var y=0;y<o;y++){for(var T=!0,S=r.getRawIndex(y),D=0;D<a;D++){var M=i[D],m=h[M][S];(m<t[M][0]||m>t[M][1])&&(T=!1)}T&&(l[u++]=r.getRawIndex(y))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var n=this.clone(t);return this._updateDims(n,t,r),n},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,n){for(var i=t._chunks,a=[],o=r.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<r.length;f++)u[r[f]]=mi();for(var c=0;c<s;c++){for(var v=t.getRawIndex(c),h=0;h<o;h++)l[h]=i[r[h]][v];l[o]=c;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var p=r[f],g=d[f],y=u[p],m=i[p];m&&(m[v]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,c,v,h=new(ya(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),g=Math.min(d+l*2,o),y=(g+p)/2,m=0,_=p;_<g;_++){var x=this.getRawIndex(_),w=a[x];isNaN(w)||(m+=w)}m/=g-p;var b=d,S=Math.min(d+l,o),T=d-1,D=a[u];f=-1,v=b;for(var M=-1,C=0,_=b;_<S;_++){var x=this.getRawIndex(_),w=a[x];if(isNaN(w)){C++,M<0&&(M=x);continue}c=Math.abs((T-y)*(w-D)-(T-_)*(m-D)),c>f&&(f=c,v=x)}C>0&&C<S-b&&(h[s++]=Math.min(M,v),v=Math.max(M,v)),h[s++]=v,u=v}return h[s++]=this.getRawIndex(o-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},e.prototype.downSample=function(t,r,n,i){for(var a=this.clone([t],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[t],f=this.count(),c=a._rawExtent[t]=mi(),v=new(ya(this._rawCount))(Math.ceil(f/l)),h=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(d+p);s[p]=u[g]}var y=n(s),m=this.getRawIndex(Math.min(d+i(s,y)||0,f-1));u[m]=y,y<c[0]&&(c[0]=y),y>c[1]&&(c[1]=y),v[h++]=m}return a._count=h,a._indices=v,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(!!this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[t[0]][s],a);break;case 2:r(i[t[0]][s],i[t[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[t[l]][s];u[l]=a,r.apply(null,u)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],n=mi();if(!r)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<i;u++){var f=this.getRawIndex(u),c=r[f];c<s&&(s=c),c>l&&(l=c)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][r]);return n},e.prototype.clone=function(t,r){var n=new e,i=this._chunks,a=t&&lr(t,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?DM(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=j(this._extent),t._rawExtent=j(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var n=this._indices.length;r=new t(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,i,a){return Ns(r[a],this._dimensions[a])}rf={arrayRows:t,objectRows:function(r,n,i,a){return Ns(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Ns(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}();const _c=AM;var J_=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(ma(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=re(s)?wr:ke,a=[];var c=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},h=nt(c.seriesLayoutBy,v.seriesLayoutBy)||null,d=nt(c.sourceHeader,v.sourceHeader),p=nt(c.dimensions,v.dimensions),g=h!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||p;i=g?[mc(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:p},l)]:[]}else{var y=t;if(n){var m=this._applyTransform(r);i=m.sourceList,a=m.upstreamSignList}else{var _=y.get("source",!0);i=[mc(_,this._getSourceMetaRawOption(),null)],a=[]}}process.env.NODE_ENV!=="production"&&J(i&&a),this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(process.env.NODE_ENV!=="production"&&J(i!=null||n!=null),i!=null){var a="";t.length!==1&&(process.env.NODE_ENV!=="production"&&(a="When using `fromTransformResult`, there should be only one upstream dataset"),Fp(a))}var o,s=[],l=[];return A(t,function(u){u.prepareSource();var f=u.getSource(i||0),c="";i!=null&&!f&&(process.env.NODE_ENV!=="production"&&(c="Can not retrieve result by `fromTransformResult`: "+i),Fp(c)),s.push(f),l.push(u._getVersionSign())}),n?o=SM(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[rM(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var n=t[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){process.env.NODE_ENV!=="production"&&J(ma(this._sourceHost),"Can only call getDataStore on series source manager.");var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,r,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];ma(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new _c,s.initData(new H_(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(ma(t)){var r=Kh(t);return r?[r.getSourceManager()]:[]}else return z(DA(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,i;if(ma(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},e}();function Bp(e){var t=e.option.transform;t&&ja(e.option.transform)}function ma(e){return e.mainType==="series"}function Fp(e){throw new Error(e)}var t1="line-height:1";function e1(e,t){var r=e.color||"#6e7079",n=e.fontSize||12,i=e.fontWeight||"400",a=e.color||"#464646",o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+de(n+"")+"px;color:"+de(r)+";font-weight:"+de(i+""),valueStyle:"font-size:"+de(o+"")+"px;color:"+de(a)+";font-weight:"+de(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var MM=[0,10,20,30],EM=["",`
41
41
  `,`
42
42
 
43
43
  `,`
44
44
 
45
45
 
46
- `];function so(e,t){return t.type=e,t}function xc(e){return e.type==="section"}function e1(e){return xc(e)?LM:PM}function r1(e){if(xc(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return A(e.blocks,function(i){var a=r1(i);a>=t&&(t=a+ +(n&&(!a||xc(i)&&!i.noHeader)))}),t}return 0}function LM(e,t,r,n){var i=t.noHeader,a=IM(r1(t)),o=[],s=t.blocks||[];J(!s||V(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ur(u,l)){var f=new q_(u[l],null);s.sort(function(d,g){return f.evaluate(d.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}A(s,function(d,g){var p=t.valueFormatter,y=e1(d)(p?k(k({},e),{valueFormatter:p}):e,d,g>0?a.html:0,n);y!=null&&o.push(y)});var c=e.renderMode==="richText"?o.join(a.richText):bc(o.join(""),i?r:a.html);if(i)return c;var v=gc(t.header,"ordinal",e.useUTC),h=t1(n,e.renderMode).nameStyle;return e.renderMode==="richText"?n1(e,v,h)+a.richText+c:bc('<div style="'+h+";"+J_+';">'+de(v)+"</div>"+c,r)}function PM(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,f=t.valueFormatter||e.valueFormatter||function(x){return x=V(x)?x:[x],z(x,function(w,b){return gc(w,V(h)?h[b]:h,u)})};if(!(a&&o)){var c=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),v=a?"":gc(l,"ordinal",u),h=t.valueType,d=o?[]:f(t.value),g=!s||!a,p=!s&&a,y=t1(n,i),m=y.nameStyle,_=y.valueStyle;return i==="richText"?(s?"":c)+(a?"":n1(e,v,m))+(o?"":RM(e,d,g,p,_)):bc((s?"":c)+(a?"":OM(v,!s,m))+(o?"":NM(d,g,p,_)),r)}}function Fp(e,t,r,n,i,a){if(!!e){var o=e1(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function IM(e){return{html:MM[e],richText:EM[e]}}function bc(e,t){var r='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+J_+';">'+e+r+"</div>"}function OM(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+de(e)+"</span>"}function NM(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=V(e)?e:[e],'<span style="'+a+";"+n+'">'+z(e,function(o){return de(o)}).join("&nbsp;&nbsp;")+"</span>"}function n1(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function RM(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(V(t)?t.join(" "):t,a)}function kM(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return Zn(n)}function i1(e,t){var r=e.get("padding");return r!=null?r:t==="richText"?[8,10]:10}var nf=function(){function e(){this.richTextStyles={},this._nextStyleNameId=f0()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=M_({color:r,type:t,renderMode:n,markerId:i});return $(a)?a:(process.env.NODE_ENV!=="production"&&J(i),this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};V(r)?A(r,function(a){return k(n,a)}):k(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function BM(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),l=V(s),u=kM(t,r),f,c,v,h;if(o>1||l&&!o){var d=FM(s,t,r,a,u);f=d.inlineValues,c=d.inlineValueTypes,v=d.blocks,h=d.inlineValues[0]}else if(o){var g=i.getDimensionInfo(a[0]);h=f=Ui(i,r,a[0]),c=g.type}else h=f=l?s[0]:s;var p=wh(t),y=p&&t.name||"",m=i.getName(r),_=n?y:m;return so("section",{header:y,noHeader:n||!p,sortParam:h,blocks:[so("nameValue",{markerType:"item",markerColor:u,name:_,noName:!He(_),value:f,valueType:c})].concat(v||[])})}function FM(e,t,r,n,i){var a=t.getData(),o=lr(e,function(c,v,h){var d=a.getDimensionInfo(h);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?A(n,function(c){f(Ui(a,r,c),c)}):A(e,f);function f(c,v){var h=a.getDimensionInfo(v);!h||h.otherDims.tooltip===!1||(o?u.push(so("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var kr=xt();function jo(e,t){return e.getName(t)||e.getId(t)}var Ns="__universalTransitionEnabled",Ql=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Wa({count:zM,reset:GM}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=kr(this).sourceManager=new Q_(this);a.prepareSource();var o=this.getInitialData(r,i);zp(o,this),this.dataTask.context.data=o,process.env.NODE_ENV!=="production"&&J(o,"getInitialData returned invalid data."),kr(this).dataBeforeProcessed=o,Vp(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=ao(this),a=i?ql(r):{},o=this.subType;st.hasClass(o)&&(o+="Series"),rt(r,n.getTheme().get(this.subType)),rt(r,this.getDefaultOption()),Zs(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Wi(r,a,i)},t.prototype.mergeOption=function(r,n){r=rt(this.option,r,!0),this.fillDataTextStyle(r.data);var i=ao(this);i&&Wi(this.option,r,i);var a=kr(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);zp(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,kr(this).dataBeforeProcessed=o,Vp(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!re(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&Zs(r[i],"label",n)},t.prototype.getInitialData=function(r,n){},t.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},t.prototype.getData=function(r){var n=Sc(this);if(n){var i=n.context.data;return r==null?i:i.getLinkedData(r)}else return kr(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var n=Sc(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}kr(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return Q(r)},t.prototype.getSourceManager=function(){return kr(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return kr(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.formatTooltip=function(r,n,i){return BM({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(tt.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=Kh.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(!!i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=jo(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],n)?this.unselect(i,n):this.select(i,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=mt(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[jo(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Ns])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){H(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=n[f],v=jo(r,c);u[v]=!0,this._selectedDataIndicesMap[v]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var h=n[l-1],v=jo(r,h);o.selectedMap=(i={},i[v]=!0,i),this._selectedDataIndicesMap=(a={},a[v]=r.getRawIndex(h),a)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return st.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(st);ie(Ql,uM);ie(Ql,Kh);y0(Ql,st);function Vp(e){var t=e.name;wh(e)||(e.name=VM(e)||t)}function VM(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return A(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function zM(e){return e.model.getRawData().count()}function GM(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),$M}function $M(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function zp(e,t){A(Am(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,dt(HM,t))})}function HM(e,t){var r=Sc(e);return r&&r.setOutputEnd((t||this).count()),t}function Sc(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}const Oe=Ql;var rv=function(){function e(){this.group=new Dt,this.uid=Hl("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();Ch(rv);El(rv);const Vt=rv;function nv(){var e=xt();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var a1=xt(),WM=nv(),iv=function(){function e(){this.group=new Dt,this.uid=Hl("viewChart"),this.renderTask=Wa({plan:UM,reset:YM}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){if(process.env.NODE_ENV!=="production")throw new Error("render method must been implemented")},e.prototype.highlight=function(t,r,n,i){var a=t.getData(i&&i.dataType);if(!a){process.env.NODE_ENV!=="production"&&qt("Unknown dataType "+i.dataType);return}$p(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);if(!a){process.env.NODE_ENV!=="production"&&qt("Unknown dataType "+i.dataType);return}$p(a,i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateLayout=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.eachRendered=function(t){Gl(this.group,t)},e.markUpdateMethod=function(t,r){a1(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function Gp(e,t,r){e&&Hi(e)&&(t==="emphasis"?Ks:Qs)(e,r)}function $p(e,t,r){var n=qn(e,t),i=t&&t.highlightKey!=null?oD(t.highlightKey):null;n!=null?A(St(n),function(a){Gp(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){Gp(a,r,i)})}Ch(iv,["dispose"]);El(iv);function UM(e){return WM(e.model)}function YM(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&a1(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),XM[l]}var XM={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const ce=iv;var ol="\0__throttleOriginMethod",Hp="\0__throttleRate",Wp="\0__throttleType";function Jl(e,t,r){var n,i=0,a=0,o=null,s,l,u,f;t=t||0;function c(){a=new Date().getTime(),o=null,e.apply(l,u||[])}var v=function(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];n=new Date().getTime(),l=this,u=h;var g=f||t,p=f||r;f=null,s=n-(p?i:a)-g,clearTimeout(o),p?o=setTimeout(c,g):s>=0?c():o=setTimeout(c,-s),i=n};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(h){f=h},v}function av(e,t,r,n){var i=e[t];if(!!i){var a=i[ol]||i,o=i[Wp],s=i[Hp];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=Jl(a,r,n==="debounce"),i[ol]=a,i[Wp]=n,i[Hp]=r}return i}}function sl(e,t){var r=e[t];r&&r[ol]&&(r.clear&&r.clear(),e[t]=r[ol])}var Up=xt(),Yp={itemStyle:Gi(y_,!0),lineStyle:Gi(g_,!0)},qM={lineStyle:"stroke",itemStyle:"fill"};function o1(e,t){var r=e.visualStyleMapper||Yp[t];return r||(console.warn("Unknown style type '"+t+"'."),Yp.itemStyle)}function s1(e,t){var r=e.visualDrawType||qM[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var ZM={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=o1(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=s1(e,n),u=o[l],f=X(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var v=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=v,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||X(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||X(o.stroke)?v:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,d){var g=e.getDataParams(d),p=k({},o);p[l]=f(g),h.setItemVisual(d,"style",p)}}}},ma=new Et,jM={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=o1(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){ma.option=l[n];var u=i(ma),f=o.ensureUniqueItemVisual(s,"style");k(f,u),ma.option.decal&&(o.setItemVisual(s,"decal",ma.option.decal),ma.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},KM={performRawSeries:!0,overallReset:function(e){var t=Q();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),Up(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=Up(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=s1(r,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],c=a.getItemVisual(f,"colorFromPalette");if(c){var v=a.ensureUniqueItemVisual(f,"style"),h=n.getName(u)||u+"",d=n.count();v[l]=r.getColorFromPalette(h,o,d)}})}})}},Ko=Math.PI;function QM(e,t){t=t||{},Y(t,{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 r=new Dt,n=new wt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new Ot({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new wt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new Rl({shape:{startAngle:-Ko/2,endAngle:-Ko/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Ko*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Ko*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var JM=function(){function e(t,r,n,i){this._stageTaskMap=Q(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(!!t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=Q();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;A(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";process.env.NODE_ENV!=="production"&&(o='"reset" and "overallReset" must not be both specified.'),J(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var a=!1,o=this;A(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,v=f.overallTask;if(v){var h,d=v.agentStubMap;d.each(function(p){s(i,p)&&(p.dirty(),h=!0)}),h&&v.dirty(),o.updatePayload(v,n);var g=o.getPerformArgs(v,i.block);d.each(function(p){p.perform(g)}),v.perform(g)&&(a=!0)}else c&&c.each(function(p,y){s(i,p)&&p.dirty();var m=o.getPerformArgs(p,i.block);m.skip=!l.performRawSeries&&r.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(m)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=Q(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(c){var v=c.uid,h=s.set(v,o&&o.get(v)||Wa({plan:iE,reset:aE,count:sE}));h.context={model:c,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(c,h)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||Wa({reset:tE});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=Q(),u=t.seriesType,f=t.getTargetSeries,c=!0,v=!1,h="";process.env.NODE_ENV!=="production"&&(h='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'),J(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,d):f?f(n,i).each(d):(c=!1,A(n.getSeries(),d));function d(g){var p=g.uid,y=l.set(p,s&&s.get(p)||(v=!0,Wa({reset:eE,onDirty:nE})));y.context={model:g,overallProgress:c},y.agent=o,y.__block=c,a._pipe(g,y)}v&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},e.wrapStageHandler=function(t,r){return X(t)&&(t={overallReset:t,seriesType:lE(t)}),t.uid=Hl("stageHandler"),r&&(t.visualType=r),t},e}();function tE(e){e.overallReset(e.ecModel,e.api,e.payload)}function eE(e){return e.overallProgress&&rE}function rE(){this.agent.dirty(),this.getDownstream().dirty()}function nE(){this.agent&&this.agent.dirty()}function iE(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function aE(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=St(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?z(t,function(r,n){return l1(n)}):oE}var oE=l1(0);function l1(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(t,n)}}function sE(e){return e.data.count()}function lE(e){ll=null;try{e(lo,u1)}catch{}return ll}var lo={},u1={},ll;f1(lo,k_);f1(u1,B_);lo.eachSeriesByType=lo.eachRawSeriesByType=function(e){ll=e};lo.eachComponent=function(e){e.mainType==="series"&&e.subType&&(ll=e.subType)};function f1(e,t){for(var r in t.prototype)e[r]=Yt}const c1=JM;var Xp=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const uE={color:Xp,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Xp]};var jt="#B9B8CE",qp="#100C2A",Qo=function(){return{axisLine:{lineStyle:{color:jt}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Zp=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],h1={darkMode:!0,color:Zp,backgroundColor:qp,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:jt}},textStyle:{color:jt},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:jt}},dataZoom:{borderColor:"#71708A",textStyle:{color:jt},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:jt}},timeline:{lineStyle:{color:jt},label:{color:jt},controlStyle:{color:jt,borderColor:jt}},calendar:{itemStyle:{color:qp},dayLabel:{color:jt},monthLabel:{color:jt},yearLabel:{color:jt}},timeAxis:Qo(),logAxis:Qo(),valueAxis:Qo(),categoryAxis:Qo(),line:{symbol:"circle"},graph:{color:Zp},gauge:{title:{color:jt},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:jt},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};h1.categoryAxis.splitLine.show=!1;const fE=h1;var cE=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},i={};if($(t)){var a=ir(t);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};A(t,function(l,u){for(var f=!1,c=0;c<o.length;c++){var v=o[c],h=u.lastIndexOf(v);if(h>0&&h===u.length-v.length){var d=u.slice(0,h);d!=="data"&&(r.mainType=d,r[v.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,a));function f(c,v,h,d){return c[h]==null||v[d||h]===c[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),wc=["symbol","symbolSize","symbolRotate","symbolOffset"],jp=wc.concat(["symbolKeepAspect"]),hE={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<wc.length;o++){var s=wc[o],l=e.get(s);X(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(k({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=mt(i);function f(c,v){for(var h=e.getRawValue(v),d=e.getDataParams(v),g=0;g<u.length;g++){var p=u[g];c.setItemVisual(v,p,i[p](h,d))}}return{dataEach:a?f:null}}},vE={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<jp.length;s++){var l=jp[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function dE(e,t,r){switch(r){case"color":var n=e.getItemVisual(t,"style");return n[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+r)}}function pE(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+t)}}function gE(e,t){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:e,query:i},function(o){a.push(o.seriesIndex)}),a}A([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(i,a,o){i=k({},i),process.env.NODE_ENV!=="production"&&It(i.type,n[1]),o.dispatchAction(k(i,{type:n[1],seriesIndex:r(a,i)}))})})}function mi(e,t,r,n,i){var a=e+t;r.isSilent(a)||(process.env.NODE_ENV!=="production"&&Ye("event "+a+" is deprecated."),n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),v=qn(c,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:V(v)?c.getName(v[0]):c.getName(v),selected:$(l)?l:k({},l)})}}))}function yE(e,t,r){e.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(mi("map","selectchanged",t,i,n),mi("pie","selectchanged",t,i,n)):n.fromAction==="select"?(mi("map","selected",t,i,n),mi("pie","selected",t,i,n)):n.fromAction==="unselect"&&(mi("map","unselected",t,i,n),mi("pie","unselected",t,i,n))})}function Ra(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var mE=Math.round(Math.random()*9),_E=typeof Object.defineProperty=="function",xE=function(){function e(){this._id="__ec_inner_"+mE++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return _E?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e}();const bE=xE;var SE=ot.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n+a),e.lineTo(r-i,n+a),e.closePath()}}),wE=ot.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n),e.lineTo(r,n+a),e.lineTo(r-i,n),e.closePath()}}),TE=ot.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,n=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),v=Math.cos(u),h=o*.6,d=o*.7;e.moveTo(r-f,l+s),e.arc(r,l,o,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(r+f-c*h,l+s+v*h,r,n-d,r,n),e.bezierCurveTo(r,n-d,r-f+c*h,l+s+v*h,r-f,l+s),e.closePath()}}),CE=ot.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,n=t.width,i=t.x,a=t.y,o=n/3*2;e.moveTo(i,a),e.lineTo(i+o,a+r),e.lineTo(i,a+r/4*3),e.lineTo(i-o,a+r),e.lineTo(i,a),e.closePath()}}),DE={line:Me,rect:wt,roundRect:wt,square:wt,circle:rn,diamond:wE,pin:TE,arrow:CE,triangle:SE},AE={line:function(e,t,r,n,i){i.x1=e,i.y1=t+n/2,i.x2=e+r,i.y2=t+n/2},rect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n},roundRect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(e,t,r,n,i){var a=Math.min(r,n);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.r=Math.min(r,n)/2},diamond:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n},pin:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},arrow:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},triangle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n}},Tc={};A(DE,function(e,t){Tc[t]=new e});var ME=ot.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=Xs(e,t,r),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(e,t,r){var n=t.symbolType;if(n!=="none"){var i=Tc[n];i||(n="rect",i=Tc[n]),AE[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,r)}}});function EE(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function jn(e,t,r,n,i,a,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=Rh(e.slice(8),new it(t,r,n,i),o?"center":"cover"):e.indexOf("path://")===0?l=Fl(e.slice(7),{},new it(t,r,n,i),o?"center":"cover"):l=new ME({shape:{symbolType:e,x:t,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=EE,a&&l.setColor(a),l}function LE(e){return V(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function v1(e,t){if(e!=null)return V(e)||(e=[e,e]),[K(e[0],t[0])||0,K(nt(e[1],e[0]),t[1])||0]}function Fn(e){return isFinite(e)}function PE(e,t,r){var n=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=Fn(n)?n:0,i=Fn(i)?i:1,a=Fn(a)?a:0,o=Fn(o)?o:0;var s=e.createLinearGradient(n,a,i,o);return s}function IE(e,t,r){var n=r.width,i=r.height,a=Math.min(n,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*n+r.x,s=s*i+r.y,l=l*a),o=Fn(o)?o:.5,s=Fn(s)?s:.5,l=l>=0&&Fn(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function Cc(e,t,r){for(var n=t.type==="radial"?IE(e,t,r):PE(e,t,r),i=t.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function OE(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function Jo(e){return parseInt(e,10)}function ts(e,t,r){var n=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(e);return(e[i]||Jo(s[n])||Jo(e.style[n]))-(Jo(s[a])||0)-(Jo(s[o])||0)|0}function NE(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:vt(e)?[e]:V(e)?e:null}function d1(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&NE(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=z(r,function(a){return a/i}),n/=i)}return[r,n]}var RE=new Mr(!0);function ul(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function Kp(e){return typeof e=="string"&&e!=="none"}function fl(e){var t=e.fill;return t!=null&&t!=="none"}function Qp(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function Jp(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function Dc(e,t,r){var n=m0(t.image,t.__image,r);if(Ll(n)){var i=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Mm),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function kE(e,t,r,n){var i,a=ul(r),o=fl(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||RE,c=t.__dirty;if(!n){var v=r.fill,h=r.stroke,d=o&&!!v.colorStops,g=a&&!!h.colorStops,p=o&&!!v.image,y=a&&!!h.image,m=void 0,_=void 0,x=void 0,w=void 0,b=void 0;(d||g)&&(b=t.getBoundingRect()),d&&(m=c?Cc(e,v,b):t.__canvasFillGradient,t.__canvasFillGradient=m),g&&(_=c?Cc(e,h,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),p&&(x=c||!t.__canvasFillPattern?Dc(e,v,t):t.__canvasFillPattern,t.__canvasFillPattern=x),y&&(w=c||!t.__canvasStrokePattern?Dc(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=x),d?e.fillStyle=m:p&&(x?e.fillStyle=x:o=!1),g?e.strokeStyle=_:y&&(w?e.strokeStyle=w:a=!1)}var S=t.getGlobalScale();f.setScale(S[0],S[1],t.segmentIgnoreThreshold);var T,D;e.setLineDash&&r.lineDash&&(i=d1(t),T=i[0],D=i[1]);var M=!0;(u||c&Di)&&(f.setDPR(e.dpr),l?f.setContext(null):(f.setContext(e),M=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),M&&f.rebuildPath(e,l?s:1),T&&(e.setLineDash(T),e.lineDashOffset=D),n||(r.strokeFirst?(a&&Jp(e,r),o&&Qp(e,r)):(o&&Qp(e,r),a&&Jp(e,r))),T&&e.setLineDash([])}function BE(e,t,r){var n=t.__image=m0(r.image,t.__image,t,t.onload);if(!(!n||!Ll(n))){var i=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;e.drawImage(n,u,f,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,c=o-u,v=s-f;e.drawImage(n,u,f,c,v,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function FE(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||Xn,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=d1(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(ul(r)&&e.strokeText(i,r.x,r.y),fl(r)&&e.fillText(i,r.x,r.y)):(fl(r)&&e.fillText(i,r.x,r.y),ul(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var tg=["shadowBlur","shadowOffsetX","shadowOffsetY"],eg=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function p1(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){ue(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?$n.opacity:o}(n||t.blend!==r.blend)&&(a||(ue(e,i),a=!0),e.globalCompositeOperation=t.blend||$n.blend);for(var s=0;s<tg.length;s++){var l=tg[s];(n||t[l]!==r[l])&&(a||(ue(e,i),a=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(a||(ue(e,i),a=!0),e.shadowColor=t.shadowColor||$n.shadowColor),a}function rg(e,t,r,n,i){var a=uo(t,i.inHover),o=n?null:r&&uo(r,i.inHover)||{};if(a===o)return!1;var s=p1(e,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(ue(e,i),s=!0),Kp(a.fill)&&(e.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(ue(e,i),s=!0),Kp(a.stroke)&&(e.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(ue(e,i),s=!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(ue(e,i),s=!0),e.lineWidth=u)}for(var f=0;f<eg.length;f++){var c=eg[f],v=c[0];(n||a[v]!==o[v])&&(s||(ue(e,i),s=!0),e[v]=a[v]||c[1])}return s}function VE(e,t,r,n,i){return p1(e,uo(t,i.inHover),r&&uo(r,i.inHover),n,i)}function g1(e,t){var r=t.transform,n=e.dpr||1;r?e.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):e.setTransform(n,0,0,n,0,0)}function zE(e,t,r){for(var n=!1,i=0;i<e.length;i++){var a=e[i];n=n||a.isZeroArea(),g1(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}r.allClipped=n}function GE(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var ng=1,ig=2,ag=3,og=4;function $E(e){var t=fl(e),r=ul(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function ue(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function uo(e,t){return t&&e.__hoverStyle||e.style}function ov(e,t){Vn(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Vn(e,t,r,n){var i=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~pe,t.__isRendered=!1;return}var a=t.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||OE(a,o))&&(o&&o.length&&(ue(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(ue(e,r),e.save(),zE(a,e,r),s=!0),r.prevElClipPaths=a),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=t instanceof ot&&t.autoBatch&&$E(t.style);s||GE(i,u.transform)?(ue(e,r),g1(e,t)):f||ue(e,r);var c=uo(t,r.inHover);t instanceof ot?(r.lastDrawType!==ng&&(l=!0,r.lastDrawType=ng),rg(e,t,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&e.beginPath(),kE(e,t,c,f),f&&(r.batchFill=c.fill||"",r.batchStroke=c.stroke||"")):t instanceof uc?(r.lastDrawType!==ag&&(l=!0,r.lastDrawType=ag),rg(e,t,u,l,r),FE(e,t,c)):t instanceof sn?(r.lastDrawType!==ig&&(l=!0,r.lastDrawType=ig),VE(e,t,u,l,r),BE(e,t,c)):t.getTemporalDisplayables&&(r.lastDrawType!==og&&(l=!0,r.lastDrawType=og),HE(e,t,r)),f&&n&&ue(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function HE(e,t,r){var n=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Vn(e,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,f=i.length;u<f;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Vn(e,l,a,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var af=new bE,sg=new mo(100),lg=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Ac(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";e.dirty&&af.delete(e);var a=af.get(e);if(a)return a;var o=Y(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,af.set(e,s),e.dirty=!1,s;function l(u){for(var f=[r],c=!0,v=0;v<lg.length;++v){var h=o[lg[v]];if(h!=null&&!V(h)&&!$(h)&&!vt(h)&&typeof h!="boolean"){c=!1;break}f.push(h)}var d;if(c){d=f.join(",")+(i?"-svg":"");var g=sg.get(d);g&&(i?u.svgElement=g:u.image=g)}var p=m1(o.dashArrayX),y=WE(o.dashArrayY),m=y1(o.symbol),_=UE(p),x=_1(y),w=!i&&Tr.createCanvas(),b=i&&{tag:"g",attrs:{},key:"dcl",children:[]},S=D(),T;w&&(w.width=S.width*r,w.height=S.height*r,T=w.getContext("2d")),M(),c&&sg.put(d,w||b),u.image=w,u.svgElement=b,u.svgWidth=S.width,u.svgHeight=S.height;function D(){for(var C=1,E=0,L=_.length;E<L;++E)C=yd(C,_[E]);for(var P=1,E=0,L=m.length;E<L;++E)P=yd(P,m[E].length);C*=P;var I=x*_.length*m.length;if(process.env.NODE_ENV!=="production"){var O=function(F){console.warn("Calculated decal size is greater than "+F+" due to decal option settings so "+F+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+F+" to be larger to avoid incontinuity.")};C>o.maxTileWidth&&O("maxTileWidth"),I>o.maxTileHeight&&O("maxTileHeight")}return{width:Math.max(1,Math.min(C,o.maxTileWidth)),height:Math.max(1,Math.min(I,o.maxTileHeight))}}function M(){T&&(T.clearRect(0,0,w.width,w.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,w.width,w.height)));for(var C=0,E=0;E<y.length;++E)C+=y[E];if(C<=0)return;for(var L=-x,P=0,I=0,O=0;L<S.height;){if(P%2===0){for(var F=I/2%m.length,N=0,B=0,G=0;N<S.width*2;){for(var W=0,E=0;E<p[O].length;++E)W+=p[O][E];if(W<=0)break;if(B%2===0){var Z=(1-o.symbolSize)*.5,et=N+p[O][B]*Z,ft=L+y[P]*Z,At=p[O][B]*o.symbolSize,yt=y[P]*o.symbolSize,zt=G/2%m[F].length;Gt(et,ft,At,yt,m[F][zt])}N+=p[O][B],++G,++B,B===p[O].length&&(B=0)}++O,O===p.length&&(O=0)}L+=y[P],++I,++P,P===y.length&&(P=0)}function Gt(Pt,bt,q,at,Ze){var Rt=i?1:r,Or=jn(Ze,Pt*Rt,bt*Rt,q*Rt,at*Rt,o.color,o.symbolKeepAspect);if(i){var dr=n.painter.renderOneToVNode(Or);dr&&b.children.push(dr)}else ov(T,Or)}}}}function y1(e){if(!e||e.length===0)return[["rect"]];if($(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!$(e[r])){t=!1;break}if(t)return y1([e]);for(var n=[],r=0;r<e.length;++r)$(e[r])?n.push([e[r]]):n.push(e[r]);return n}function m1(e){if(!e||e.length===0)return[[0,0]];if(vt(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!vt(e[n])){r=!1;break}if(r)return m1([e]);for(var i=[],n=0;n<e.length;++n)if(vt(e[n])){var t=Math.ceil(e[n]);i.push([t,t])}else{var t=z(e[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function WE(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(vt(e)){var t=Math.ceil(e);return[t,t]}var r=z(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function UE(e){return z(e,function(t){return _1(t)})}function _1(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function YE(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=Ac(s,t)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=Ac(i,t)}}})}var XE=new qe;const Ge=XE;var cl={};function qE(e,t){process.env.NODE_ENV!=="production"&&cl[e]&&qt("Already has an implementation of "+e+"."),cl[e]=t}function x1(e){return process.env.NODE_ENV!=="production"&&(cl[e]||qt("Implementation of "+e+" doesn't exists.")),cl[e]}var ZE="5.4.3",jE={zrender:"5.4.4"},KE=1,QE=800,JE=900,tL=1e3,eL=2e3,rL=5e3,b1=1e3,nL=1100,sv=2e3,S1=3e3,iL=4e3,tu=4500,aL=4600,oL=5e3,sL=6e3,w1=7e3,T1={PROCESSOR:{FILTER:tL,SERIES_FILTER:QE,STATISTIC:rL},VISUAL:{LAYOUT:b1,PROGRESSIVE_LAYOUT:nL,GLOBAL:sv,CHART:S1,POST_CHART_LAYOUT:aL,COMPONENT:iL,BRUSH:oL,CHART_ITEM:tu,ARIA:sL,DECAL:w1}},Ht="__flagInMainProcess",oe="__pendingUpdate",of="__needsUpdateStatus",ug=/^[a-zA-Z0-9_]+$/,sf="__connectUpdateStatus",fg=0,lL=1,uL=2;function C1(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){ve(this.id);return}return A1(this,e,t)}}function D1(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return A1(this,e,t)}}function A1(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),qe.prototype[t].apply(e,r)}var M1=function(e){R(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(qe),E1=M1.prototype;E1.on=D1("on");E1.off=D1("off");var _i,lf,es,Br,uf,ff,cf,_a,xa,cg,hg,hf,vg,rs,dg,L1,_e,pg,hl=function(e){R(t,e);function t(r,n,i){var a=e.call(this,new cE)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},$(n)&&(n=P1[n]),a._dom=r;var o="canvas",s="auto",l=!1;if(process.env.NODE_ENV!=="production"){var u=tt.hasGlobalWindow?window:global;o=u.__ECHARTS__DEFAULT__RENDERER__||o,s=nt(u.__ECHARTS__DEFAULT__COARSE_POINTER,s);var f=u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__;l=f==null?l:f}var c=a._zr=ac(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:nt(i.useDirtyRect,l),useCoarsePointer:nt(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=Jl(ht(c.flush,c),17),n=j(n),n&&V_(n,!0),a._theme=n,a._locale=uA(i.locale||__),a._coordSysMgr=new Zl;var v=a._api=dg(a);function h(d,g){return d.__prio-g.__prio}return ws(dl,h),ws(Mc,h),a._scheduler=new c1(a,v,Mc,dl),a._messageCenter=new M1,a._initEvents(),a.resize=ht(a.resize,a),c.animation.on("frame",a._onframe,a),cg(c,a),hg(c,a),Za(a),a}return t.prototype._onframe=function(){if(!this._disposed){pg(this);var r=this._scheduler;if(this[oe]){var n=this[oe].silent;this[Ht]=!0;try{_i(this),Br.update.call(this,null,this[oe].updateParams)}catch(l){throw this[Ht]=!1,this[oe]=null,l}this._zr.flush(),this[Ht]=!1,this[oe]=null,_a.call(this,n),xa.call(this,n)}else if(r.unfinished){var i=KE,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),ff(this,a),r.performVisualTasks(a),rs(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,i){if(this[Ht]){process.env.NODE_ENV!=="production"&&qt("`setOption` should not be called during main process.");return}if(this._disposed){ve(this.id);return}var a,o,s;if(H(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Ht]=!0,!this._model||n){var l=new YA(this._api),u=this._theme,f=this._model=new k_;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},Ec);var c={seriesTransition:s,optionChanged:!0};if(i)this[oe]={silent:a,updateParams:c},this[Ht]=!1,this.getZr().wakeUp();else{try{_i(this),Br.update.call(this,null,c)}catch(v){throw this[oe]=null,this[Ht]=!1,v}this._ssr||this._zr.flush(),this[oe]=null,this[Ht]=!1,_a.call(this,a),xa.call(this,a)}},t.prototype.setTheme=function(){Ye("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||tt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return process.env.NODE_ENV!=="production"&&It("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;if(process.env.NODE_ENV!=="production"&&n.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;if(process.env.NODE_ENV!=="production"&&n.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(!!tt.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return A(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){ve(this.id);return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;A(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return A(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){ve(this.id);return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(pl[i]){var l=s,u=s,f=-s,c=-s,v=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();A(Wn,function(_,x){if(_.group===i){var w=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(j(r)),b=_.getDom().getBoundingClientRect();l=a(b.left,l),u=a(b.top,u),f=o(b.right,f),c=o(b.bottom,c),v.push({dom:w,left:b.left,top:b.top})}}),l*=h,u*=h,f*=h,c*=h;var d=f-l,g=c-u,p=Tr.createCanvas(),y=ac(p,{renderer:n?"svg":"canvas"});if(y.resize({width:d,height:g}),n){var m="";return A(v,function(_){var x=_.left-l,w=_.top-u;m+='<g transform="translate('+x+","+w+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,r.connectedBackgroundColor&&y.painter.setBackgroundColor(r.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return r.connectedBackgroundColor&&y.add(new wt({shape:{x:0,y:0,width:d,height:g},style:{fill:r.connectedBackgroundColor}})),A(v,function(_){var x=new sn({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});y.add(x)}),y.refreshImmediately(),p.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return uf(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return uf(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){ve(this.id);return}var i=this._model,a,o=Lu(i,r);return A(o,function(s,l){l.indexOf("Models")>=0&&A(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint?a=a||c.containPoint(n,u):process.env.NODE_ENV!=="production"&&kt(l+": "+(c?"The found component do not support containPoint.":"No view mapping to the found component."))}else process.env.NODE_ENV!=="production"&&kt(l+": containPoint is not supported")},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=Lu(i,r,{defaultMainType:"series"}),o=a.seriesModel;process.env.NODE_ENV!=="production"&&(o||kt("There is no specified series model"));var s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?dE(s,l,n):pE(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;A(fL,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Ra(s,function(d){var g=ut(d);if(g&&g.dataIndex!=null){var p=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return l=p&&p.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=k({},g.eventData),!0},!0),l){var f=l.componentType,c=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",c=l.seriesIndex);var v=f&&c!=null&&o.getComponent(f,c),h=v&&r[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];process.env.NODE_ENV!=="production"&&!u&&!(v&&h)&&kt("model or view can not be found by params"),l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:v,view:h},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),A(Ua,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),A(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),yE(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){ve(this.id);return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){ve(this.id);return}this._disposed=!0;var r=this.getDom();r&&d0(this.getDom(),uv,"");var n=this,i=n._api,a=n._model;A(n._componentsViews,function(o){o.dispose(a,i)}),A(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Wn[n.id]},t.prototype.resize=function(r){if(this[Ht]){process.env.NODE_ENV!=="production"&&qt("`resize` should not be called during main process.");return}if(this._disposed){ve(this.id);return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[oe]&&(a==null&&(a=this[oe].silent),i=!0,this[oe]=null),this[Ht]=!0;try{i&&_i(this),Br.update.call(this,{type:"resize",animation:k({duration:0},r&&r.animation)})}catch(o){throw this[Ht]=!1,o}this[Ht]=!1,_a.call(this,a),xa.call(this,a)}},t.prototype.showLoading=function(r,n){if(this._disposed){ve(this.id);return}if(H(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!Lc[r]){process.env.NODE_ENV!=="production"&&kt("Loading effects "+r+" not exists.");return}var i=Lc[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)},t.prototype.hideLoading=function(){if(this._disposed){ve(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=k({},r);return n.type=Ua[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){ve(this.id);return}if(H(n)||(n={silent:!!n}),!!vl[r.type]&&!!this._model){if(this[Ht]){this._pendingActions.push(r);return}var i=n.silent;cf.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&tt.browser.weChat&&this._throttledZrFlush(),_a.call(this,i),xa.call(this,i)}},t.prototype.updateLabelLayout=function(){Ge.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){ve(this.id);return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);process.env.NODE_ENV!=="production"&&J(r.data&&a),a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){_i=function(c){var v=c._scheduler;v.restorePipelines(c._model),v.prepareStageTasks(),lf(c,!0),lf(c,!1),v.plan()},lf=function(c,v){for(var h=c._model,d=c._scheduler,g=v?c._componentsViews:c._chartsViews,p=v?c._componentsMap:c._chartsMap,y=c._zr,m=c._api,_=0;_<g.length;_++)g[_].__alive=!1;v?h.eachComponent(function(b,S){b!=="series"&&x(S)}):h.eachSeries(x);function x(b){var S=b.__requireNewView;b.__requireNewView=!1;var T="_ec_"+b.id+"_"+b.type,D=!S&&p[T];if(!D){var M=ir(b.type),C=v?Vt.getClass(M.main,M.sub):ce.getClass(M.sub);process.env.NODE_ENV!=="production"&&J(C,M.sub+" does not exist."),D=new C,D.init(h,m),p[T]=D,g.push(D),y.add(D.group)}b.__viewId=D.__id=T,D.__alive=!0,D.__model=b,D.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!v&&d.prepareView(D,b,h,m)}for(var _=0;_<g.length;){var w=g[_];w.__alive?_++:(!v&&w.renderTask.dispose(),y.remove(w.group),w.dispose(h,m),g.splice(_,1),p[w.__id]===w&&delete p[w.__id],w.__id=w.group.__ecComponentInfo=null)}},es=function(c,v,h,d,g){var p=c._model;if(p.setUpdatePayload(h),!d){A([].concat(c._componentsViews).concat(c._chartsViews),w);return}var y={};y[d+"Id"]=h[d+"Id"],y[d+"Index"]=h[d+"Index"],y[d+"Name"]=h[d+"Name"];var m={mainType:d,query:y};g&&(m.subType=g);var _=h.excludeSeriesId,x;_!=null&&(x=Q(),A(St(_),function(b){var S=or(b,null);S!=null&&x.set(S,!0)})),p&&p.eachComponent(m,function(b){var S=x&&x.get(b.id)!=null;if(!S)if(Zd(h))if(b instanceof Oe)h.type===Hn&&!h.notBlur&&!b.get(["emphasis","disabled"])&&QC(b,h,c._api);else{var T=Eh(b.mainType,b.componentIndex,h.name,c._api),D=T.focusSelf,M=T.dispatchers;h.type===Hn&&D&&!h.notBlur&&cc(b.mainType,b.componentIndex,c._api),M&&A(M,function(C){h.type===Hn?Ks(C):Qs(C)})}else hc(h)&&b instanceof Oe&&(eD(b,h,c._api),Xd(b),_e(c))},c),p&&p.eachComponent(m,function(b){var S=x&&x.get(b.id)!=null;S||w(c[d==="series"?"_chartsMap":"_componentsMap"][b.__viewId])},c);function w(b){b&&b.__alive&&b[v]&&b[v](b.__model,p,c._api,h)}},Br={prepareAndUpdate:function(c){_i(this),Br.update.call(this,c,{optionChanged:c.newOption!=null})},update:function(c,v){var h=this._model,d=this._api,g=this._zr,p=this._coordSysMgr,y=this._scheduler;if(!!h){h.setUpdatePayload(c),y.restoreData(h,c),y.performSeriesTasks(h),p.create(h,d),y.performDataProcessorTasks(h,c),ff(this,h),p.update(h,d),r(h),y.performVisualTasks(h,c),hf(this,h,d,c,v);var m=h.get("backgroundColor")||"transparent",_=h.get("darkMode");g.setBackgroundColor(m),_!=null&&_!=="auto"&&g.setDarkMode(_),Ge.trigger("afterupdate",h,d)}},updateTransform:function(c){var v=this,h=this._model,d=this._api;if(!!h){h.setUpdatePayload(c);var g=[];h.eachComponent(function(y,m){if(y!=="series"){var _=v.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var x=_.updateTransform(m,h,d,c);x&&x.update&&g.push(_)}else g.push(_)}});var p=Q();h.eachSeries(function(y){var m=v._chartsMap[y.__viewId];if(m.updateTransform){var _=m.updateTransform(y,h,d,c);_&&_.update&&p.set(y.uid,1)}else p.set(y.uid,1)}),r(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:p}),rs(this,h,d,c,{},p),Ge.trigger("afterupdate",h,d)}},updateView:function(c){var v=this._model;!v||(v.setUpdatePayload(c),ce.markUpdateMethod(c,"updateView"),r(v),this._scheduler.performVisualTasks(v,c,{setDirty:!0}),hf(this,v,this._api,c,{}),Ge.trigger("afterupdate",v,this._api))},updateVisual:function(c){var v=this,h=this._model;!h||(h.setUpdatePayload(c),h.eachSeries(function(d){d.getData().clearAllVisual()}),ce.markUpdateMethod(c,"updateVisual"),r(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(d,g){if(d!=="series"){var p=v.getViewOfComponentModel(g);p&&p.__alive&&p.updateVisual(g,h,v._api,c)}}),h.eachSeries(function(d){var g=v._chartsMap[d.__viewId];g.updateVisual(d,h,v._api,c)}),Ge.trigger("afterupdate",h,this._api))},updateLayout:function(c){Br.update.call(this,c)}},uf=function(c,v,h,d){if(c._disposed){ve(c.id);return}for(var g=c._model,p=c._coordSysMgr.getCoordinateSystems(),y,m=Lu(g,h),_=0;_<p.length;_++){var x=p[_];if(x[v]&&(y=x[v](g,m,d))!=null)return y}process.env.NODE_ENV!=="production"&&kt("No coordinate system that supports "+v+" found by the given finder.")},ff=function(c,v){var h=c._chartsMap,d=c._scheduler;v.eachSeries(function(g){d.updateStreamModes(g,h[g.__viewId])})},cf=function(c,v){var h=this,d=this.getModel(),g=c.type,p=c.escapeConnect,y=vl[g],m=y.actionInfo,_=(m.update||"update").split(":"),x=_.pop(),w=_[0]!=null&&ir(_[0]);this[Ht]=!0;var b=[c],S=!1;c.batch&&(S=!0,b=z(c.batch,function(P){return P=Y(k({},P),c),P.batch=null,P}));var T=[],D,M=hc(c),C=Zd(c);if(C&&z0(this._api),A(b,function(P){if(D=y.action(P,h._model,h._api),D=D||k({},P),D.type=m.event||D.type,T.push(D),C){var I=Th(c),O=I.queryOptionMap,F=I.mainTypeSpecified,N=F?O.keys()[0]:"series";es(h,x,P,N),_e(h)}else M?(es(h,x,P,"series"),_e(h)):w&&es(h,x,P,w.main,w.sub)}),x!=="none"&&!C&&!M&&!w)try{this[oe]?(_i(this),Br.update.call(this,c),this[oe]=null):Br[x].call(this,c)}catch(P){throw this[Ht]=!1,P}if(S?D={type:m.event||g,escapeConnect:p,batch:T}:D=T[0],this[Ht]=!1,!v){var E=this._messageCenter;if(E.trigger(D.type,D),M){var L={type:"selectchanged",escapeConnect:p,selected:rD(d),isFromClick:c.isFromClick||!1,fromAction:c.type,fromActionPayload:c};E.trigger(L.type,L)}}},_a=function(c){for(var v=this._pendingActions;v.length;){var h=v.shift();cf.call(this,h,c)}},xa=function(c){!c&&this.trigger("updated")},cg=function(c,v){c.on("rendered",function(h){v.trigger("rendered",h),c.animation.isFinished()&&!v[oe]&&!v._scheduler.unfinished&&!v._pendingActions.length&&v.trigger("finished")})},hg=function(c,v){c.on("mouseover",function(h){var d=h.target,g=Ra(d,Hi);g&&(JC(g,h,v._api),_e(v))}).on("mouseout",function(h){var d=h.target,g=Ra(d,Hi);g&&(tD(g,h,v._api),_e(v))}).on("click",function(h){var d=h.target,g=Ra(d,function(m){return ut(m).dataIndex!=null},!0);if(g){var p=g.selected?"unselect":"select",y=ut(g);v._api.dispatchAction({type:p,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function r(c){c.clearColorPalette(),c.eachSeries(function(v){v.clearColorPalette()})}function n(c){var v=[],h=[],d=!1;if(c.eachComponent(function(m,_){var x=_.get("zlevel")||0,w=_.get("z")||0,b=_.getZLevelKey();d=d||!!b,(m==="series"?h:v).push({zlevel:x,z:w,idx:_.componentIndex,type:m,key:b})}),d){var g=v.concat(h),p,y;ws(g,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),A(g,function(m){var _=c.getComponent(m.type,m.idx),x=m.zlevel,w=m.key;p!=null&&(x=Math.max(p,x)),w?(x===p&&w!==y&&x++,y=w):y&&(x===p&&x++,y=""),p=x,_.setZLevel(x)})}}hf=function(c,v,h,d,g){n(v),vg(c,v,h,d,g),A(c._chartsViews,function(p){p.__alive=!1}),rs(c,v,h,d,g),A(c._chartsViews,function(p){p.__alive||p.remove(v,h)})},vg=function(c,v,h,d,g,p){A(p||c._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,v,h,d),s(m,y),f(m,y)})},rs=function(c,v,h,d,g,p){var y=c._scheduler;g=k(g||{},{updatedSeries:v.getSeries()}),Ge.trigger("series:beforeupdate",v,h,g);var m=!1;v.eachSeries(function(_){var x=c._chartsMap[_.__viewId];x.__alive=!0;var w=x.renderTask;y.updatePayload(w,d),u(_,x),p&&p.get(_.uid)&&w.dirty(),w.perform(y.getPerformArgs(w))&&(m=!0),x.group.silent=!!_.get("silent"),o(_,x),Xd(_)}),y.unfinished=m||y.unfinished,Ge.trigger("series:layoutlabels",v,h,g),Ge.trigger("series:transition",v,h,g),v.eachSeries(function(_){var x=c._chartsMap[_.__viewId];s(_,x),f(_,x)}),a(c,v),Ge.trigger("series:afterupdate",v,h,g)},_e=function(c){c[of]=!0,c.getZr().wakeUp()},pg=function(c){!c[of]||(c.getZr().storage.traverse(function(v){Oi(v)||i(v)}),c[of]=!1)};function i(c){for(var v=[],h=c.currentStates,d=0;d<h.length;d++){var g=h[d];g==="emphasis"||g==="blur"||g==="select"||v.push(g)}c.selected&&c.states.select&&v.push("select"),c.hoverState===Ol&&c.states.emphasis?v.push("emphasis"):c.hoverState===Il&&c.states.blur&&v.push("blur"),c.useStates(v)}function a(c,v){var h=c._zr,d=h.storage,g=0;d.traverse(function(p){p.isGroup||g++}),g>v.get("hoverLayerThreshold")&&!tt.node&&!tt.worker&&v.eachSeries(function(p){if(!p.preventUsingHoverLayer){var y=c._chartsMap[p.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(c,v){var h=c.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=h)})}function s(c,v){if(!c.preventAutoZ){var h=c.get("z")||0,d=c.get("zlevel")||0;v.eachRendered(function(g){return l(g,h,d,-1/0),!0})}}function l(c,v,h,d){var g=c.getTextContent(),p=c.getTextGuideLine(),y=c.isGroup;if(y)for(var m=c.childrenRef(),_=0;_<m.length;_++)d=Math.max(l(m[_],v,h,d),d);else c.z=v,c.zlevel=h,d=Math.max(c.z2,d);if(g&&(g.z=v,g.zlevel=h,isFinite(d)&&(g.z2=d+2)),p){var x=c.textGuideLineConfig;p.z=v,p.zlevel=h,isFinite(d)&&(p.z2=d+(x&&x.showAbove?1:-1))}return d}function u(c,v){v.eachRendered(function(h){if(!Oi(h)){var d=h.getTextContent(),g=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(c,v){var h=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),g=h.get("duration"),p=g>0?{duration:g,delay:h.get("delay"),easing:h.get("easing")}:null;v.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Oi(y))return;if(y instanceof ot&&sD(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=p;var _=y.getTextContent(),x=y.getTextGuideLine();_&&(_.stateTransition=p),x&&(x.stateTransition=p)}y.__dirty&&i(y)}})}dg=function(c){return new(function(v){R(h,v);function h(){return v!==null&&v.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var g=d.__ecComponentInfo;if(g!=null)return c._model.getComponent(g.mainType,g.index);d=d.parent}},h.prototype.enterEmphasis=function(d,g){Ks(d,g),_e(c)},h.prototype.leaveEmphasis=function(d,g){Qs(d,g),_e(c)},h.prototype.enterBlur=function(d){KC(d),_e(c)},h.prototype.leaveBlur=function(d){k0(d),_e(c)},h.prototype.enterSelect=function(d){B0(d),_e(c)},h.prototype.leaveSelect=function(d){F0(d),_e(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},h.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},h}(B_))(c)},L1=function(c){function v(h,d){for(var g=0;g<h.length;g++){var p=h[g];p[sf]=d}}A(Ua,function(h,d){c._messageCenter.on(d,function(g){if(pl[c.group]&&c[sf]!==fg){if(g&&g.escapeConnect)return;var p=c.makeActionFromEvent(g),y=[];A(Wn,function(m){m!==c&&m.group===c.group&&y.push(m)}),v(y,fg),A(y,function(m){m[sf]!==lL&&m.dispatchAction(p)}),v(y,uL)}})})}}(),t}(qe),lv=hl.prototype;lv.on=C1("on");lv.off=C1("off");lv.one=function(e,t,r){var n=this;Ye("ECharts#one is deprecated.");function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),n.off(e,i)}this.on.call(this,e,i,r)};var fL=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function ve(e){process.env.NODE_ENV!=="production"&&kt("Instance "+e+" has been disposed")}var vl={},Ua={},Mc=[],Ec=[],dl=[],P1={},Lc={},Wn={},pl={},cL=+new Date-0,hL=+new Date-0,uv="_echarts_instance_";function vL(e,t,r){var n=!(r&&r.ssr);if(n){if(process.env.NODE_ENV!=="production"&&!e)throw new Error("Initialize failed: invalid dom.");var i=fv(e);if(i)return process.env.NODE_ENV!=="production"&&kt("There is a chart instance already initialized on the dom."),i;process.env.NODE_ENV!=="production"&&ki(e)&&e.nodeName.toUpperCase()!=="CANVAS"&&(!e.clientWidth&&(!r||r.width==null)||!e.clientHeight&&(!r||r.height==null))&&kt("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.")}var a=new hl(e,t,r);return a.id="ec_"+cL++,Wn[a.id]=a,n&&d0(e,uv,a.id),L1(a),Ge.trigger("afterinit",a),a}function dL(e){if(V(e)){var t=e;e=null,A(t,function(r){r.group!=null&&(e=r.group)}),e=e||"g_"+hL++,A(t,function(r){r.group=e})}return pl[e]=!0,e}function I1(e){pl[e]=!1}var pL=I1;function gL(e){$(e)?e=Wn[e]:e instanceof hl||(e=fv(e)),e instanceof hl&&!e.isDisposed()&&e.dispose()}function fv(e){return Wn[VT(e,uv)]}function yL(e){return Wn[e]}function cv(e,t){P1[e]=t}function hv(e){ct(Ec,e)<0&&Ec.push(e)}function vv(e,t){dv(Mc,e,t,eL)}function O1(e){eu("afterinit",e)}function N1(e){eu("afterupdate",e)}function eu(e,t){Ge.on(e,t)}function un(e,t,r){X(t)&&(r=t,t="");var n=H(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,!Ua[t]&&(J(ug.test(n)&&ug.test(t)),vl[n]||(vl[n]={action:r,actionInfo:e}),Ua[t]=n)}function R1(e,t){Zl.register(e,t)}function mL(e){var t=Zl.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function k1(e,t){dv(dl,e,t,b1,"layout")}function fn(e,t){dv(dl,e,t,S1,"visual")}var gg=[];function dv(e,t,r,n,i){if((X(t)||H(t))&&(r=t,t=n),process.env.NODE_ENV!=="production"){if(isNaN(t)||t==null)throw new Error("Illegal priority");A(e,function(o){J(o.__raw!==r)})}if(!(ct(gg,r)>=0)){gg.push(r);var a=c1.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function pv(e,t){Lc[e]=t}function _L(e){process.env.NODE_ENV!=="production"&&Ye("setCanvasCreator is deprecated. Use setPlatformAPI({ createCanvas }) instead."),xm({createCanvas:e})}function B1(e,t,r){var n=x1("registerMap");n&&n(e,t,r)}function xL(e){var t=x1("getMap");return t&&t(e)}var F1=bM;fn(sv,ZM);fn(tu,jM);fn(tu,KM);fn(sv,hE);fn(tu,vE);fn(w1,YE);hv(V_);vv(JE,tM);pv("default",QM);un({type:Hn,event:Hn,update:Hn},Yt);un({type:Es,event:Es,update:Es},Yt);un({type:Va,event:Va,update:Va},Yt);un({type:Ls,event:Ls,update:Ls},Yt);un({type:za,event:za,update:za},Yt);cv("light",uE);cv("dark",fE);var bL={};function ba(e){return e==null?0:e.length||1}function yg(e){return e}var SL=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||yg,this._newKeyGetter=i||yg,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},i=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=i[o],l=n[s],u=ba(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],f=i[l],c=ba(u),v=ba(f);if(c>1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(c===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(c===1&&v===1)this._update&&this._update(f,u),i[l]=null;else if(c>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var i=t[n],a=r[i],o=ba(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[i]=null}},e.prototype._initIndexMap=function(t,r,n,i){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[i](t[o],o);if(a||(n[o]=s),!!r){var l=r[s],u=ba(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},e}();const gl=SL;var wL=function(){function e(t,r){this._encode=t,this._schema=r}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function TL(e,t){var r={},n=r.encode={},i=Q(),a=[],o=[],s={};A(e.dimensions,function(v){var h=e.getDimensionInfo(v),d=h.coordDim;if(d){process.env.NODE_ENV!=="production"&&J(yc.get(d)==null);var g=h.coordDimIndex;vf(n,d)[g]=v,h.isExtraCoord||(i.set(d,1),DL(h.type)&&(a[0]=v),vf(s,d)[g]=e.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(v)}yc.each(function(p,y){var m=vf(n,y),_=h.otherDims[y];_!=null&&_!==!1&&(m[_]=h.name)})});var l=[],u={};i.each(function(v,h){var d=n[h];u[h]=d[0],l=l.concat(d)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=z(l,function(v){return e.getDimensionInfo(v).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(a=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new wL(s,t),r}function vf(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function CL(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function DL(e){return!(e==="ordinal"||e==="time")}var AL=function(){function e(t){this.otherDims={},t!=null&&k(this,t)}return e}();const Rs=AL;var ML=xt(),EL={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},V1=function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=$1(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return nt(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=G_(this.source),n=!H1(t),i="",a=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=r?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var v=this.getSourceDimension(o);v&&(l=r?v.name:null,u=v.type)}a.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!c||!c.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=EL[u]||"f",f&&(i+=f.uid),i+="$"}var h=this.source,d=[h.seriesLayoutBy,h.startIndex,i].join("$$");return{dimensions:a,hash:d}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.name)}t.push(i)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function z1(e){return e instanceof V1}function G1(e){for(var t=Q(),r=0;r<(e||[]).length;r++){var n=e[r],i=H(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,r)}return t}function $1(e){var t=ML(e);return t.dimNameMap||(t.dimNameMap=G1(e.dimensionsDefine))}function H1(e){return e>30}var Sa=H,Fr=z,LL=typeof Int32Array>"u"?Array:Int32Array,PL="e\0\0",mg=-1,IL=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],OL=["_approximateExtent"],_g,ns,wa,xi,df,is,pf,NL=function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;z1(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var c=n[f],v=$(c)?new Rs({name:c}):c instanceof Rs?c:new Rs(c),h=v.name;v.type=v.type||"float",v.coordDim||(v.coordDim=h,v.coordDimIndex=0);var d=v.otherDims=v.otherDims||{};o.push(h),a[h]=v,u[h]!=null&&(l=!0),v.createInvertedIndices&&(s[h]=[]),d.itemName===0&&(this._nameDimIdx=f),d.itemId===0&&(this._idDimIdx=f),process.env.NODE_ENV!=="production"&&J(i||v.storeDimIndex>=0),i&&(v.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=Q();A(o,function(p){g.set(a[p].storeDimIndex,p)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var i=this._schema.getSourceDimension(r);if(i)return i.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(vt(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);if(process.env.NODE_ENV!=="production"&&r==null)throw new Error("Unknown dimension "+t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,n=r.encode[t];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,n){var i=this,a;if(t instanceof _c&&(a=t),!a){var o=this.dimensions,s=Qh(t)||Xt(t)?new $_(t,o.length):t;a=new _c;var l=Fr(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=TL(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var n=this._store.appendValues(t,r.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=r[l],o&&pf(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==wr&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===ke;if(l&&!i.pure)for(var u=[],f=t;f<r;f++){var c=i.getItem(f,u);if(!this.hasItemOption&&MT(c)&&(this.hasItemOption=!0),c){var v=c.name;a[f]==null&&v!=null&&(a[f]=or(v,null));var h=c.id;o[f]==null&&h!=null&&(o[f]=or(h,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<r;f++)pf(this,f);_g(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){Sa(t)?k(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=wa(this,this._nameDimIdx,r)),n==null&&(n=""),n},e.prototype._getCategory=function(t,r){var n=this._store.get(t,r),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},e.prototype.getId=function(t){return ns(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var n=this,i=this._store;return V(t)?i.getValues(Fr(t,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var n=t&&this._invertedIndicesMap[t];if(process.env.NODE_ENV!=="production"&&!n)throw new Error("Do not supported yet");var i=n[r];return i==null||isNaN(i)?mg:i},e.prototype.indicesOfNearest=function(t,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,n)},e.prototype.each=function(t,r,n){X(t)&&(n=r,r=t,t=[]);var i=n||this,a=Fr(xi(t),this._getStoreDimIndex,this);this._store.each(a,i?ht(r,i):r)},e.prototype.filterSelf=function(t,r,n){X(t)&&(n=r,r=t,t=[]);var i=n||this,a=Fr(xi(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?ht(r,i):r),this},e.prototype.selectRange=function(t){var r=this,n={},i=mt(t);return A(i,function(a){var o=r._getStoreDimIndex(a);n[o]=t[a]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){X(t)&&(n=r,r=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(r&&r.apply(this,arguments))},n),i},e.prototype.map=function(t,r,n,i){var a=n||i||this,o=Fr(xi(t),this._getStoreDimIndex,this),s=is(this);return s._store=this._store.map(o,a?ht(r,a):r),s},e.prototype.modify=function(t,r,n,i){var a=this,o=n||i||this;process.env.NODE_ENV!=="production"&&A(xi(t),function(l){var u=a.getDimensionInfo(l);u.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var s=Fr(xi(t),this._getStoreDimIndex,this);this._store.modify(s,o?ht(r,o):r)},e.prototype.downSample=function(t,r,n,i){var a=is(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),r,n,i),a},e.prototype.lttbDownSample=function(t,r){var n=is(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),n},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,n=this.getRawDataItem(t);return new Et(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new gl(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return ns(t,n)},function(n){return ns(r,n)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},Sa(t)?k(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],i=n&&n[r];return i==null?this.getVisual(r):i},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[r];return a==null&&(a=this.getVisual(r),V(a)?a=a.slice():Sa(a)&&(a=k({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Sa(r)?k(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Sa(t)?k(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?k(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;GC(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){A(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Fr(this.dimensions,this._getDimInfo,this),this.hostModel)),df(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];!X(n)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(Dl(arguments)))})},e.internalField=function(){_g=function(t){var r=t._invertedIndicesMap;A(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new LL(o.categories.length);for(var l=0;l<n.length;l++)n[l]=mg;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},wa=function(t,r,n){return or(t._getCategory(r,n),null)},ns=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=wa(t,t._idDimIdx,r)),n==null&&(n=PL+r),n},xi=function(t){return V(t)||(t=t!=null?[t]:[]),t},is=function(t){var r=new e(t._schema?t._schema:Fr(t.dimensions,t._getDimInfo,t),t.hostModel);return df(r,t),r},df=function(t,r){A(IL.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,A(OL,function(n){t[n]=j(r[n])}),t._calculationInfo=k({},r._calculationInfo)},pf=function(t,r){var n=t._nameList,i=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=n[r],l=i[r];if(s==null&&a!=null&&(n[r]=s=wa(t,a,r)),l==null&&o!=null&&(i[r]=l=wa(t,o,r)),l==null&&s!=null){var u=t._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),i[r]=l}}}(),e}();const gv=NL;function RL(e,t){return yv(e,t).dimensions}function yv(e,t){Qh(e)||(e=Jh(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=Q(),a=[],o=BL(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&H1(o),l=n===e.dimensionsDefine,u=l?$1(e):G1(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(e,o));for(var c=Q(f),v=new j_(o),h=0;h<v.length;h++)v[h]=-1;function d(D){var M=v[D];if(M<0){var C=n[D],E=H(C)?C:{name:C},L=new Rs,P=E.name;P!=null&&u.get(P)!=null&&(L.name=L.displayName=P),E.type!=null&&(L.type=E.type),E.displayName!=null&&(L.displayName=E.displayName);var I=a.length;return v[D]=I,L.storeDimIndex=D,a.push(L),L}return a[M]}if(!s)for(var h=0;h<o;h++)d(h);c.each(function(D,M){var C=St(D).slice();if(C.length===1&&!$(C[0])&&C[0]<0){c.set(M,!1);return}var E=c.set(M,[]);A(C,function(L,P){var I=$(L)?u.get(L):L;I!=null&&I<o&&(E[P]=I,p(d(I),M,P))})});var g=0;A(r,function(D){var M,C,E,L;if($(D))M=D,L={};else{L=D,M=L.name;var P=L.ordinalMeta;L.ordinalMeta=null,L=k({},L),L.ordinalMeta=P,C=L.dimsDef,E=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var I=c.get(M);if(I!==!1){if(I=St(I),!I.length)for(var O=0;O<(C&&C.length||1);O++){for(;g<o&&d(g).coordDim!=null;)g++;g<o&&I.push(g++)}A(I,function(F,N){var B=d(F);if(l&&L.type!=null&&(B.type=L.type),p(Y(B,L),M,N),B.name==null&&C){var G=C[N];!H(G)&&(G={name:G}),B.name=B.displayName=G.name,B.defaultTooltip=G.defaultTooltip}E&&Y(B.otherDims,E)})}});function p(D,M,C){yc.get(M)!=null?D.otherDims[M]=C:(D.coordDim=M,D.coordDimIndex=C,i.set(M,!0))}var y=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=y?m||1:0;var x=y||"value";function w(D){D.name==null&&(D.name=D.coordDim)}if(s)A(a,function(D){w(D)}),a.sort(function(D,M){return D.storeDimIndex-M.storeDimIndex});else for(var b=0;b<o;b++){var S=d(b),T=S.coordDim;T==null&&(S.coordDim=FL(x,i,_),S.coordDimIndex=0,(!y||m<=0)&&(S.isExtraCoord=!0),m--),w(S),S.type==null&&(O_(e,b)===Ft.Must||S.isExtraCoord&&(S.otherDims.itemName!=null||S.otherDims.seriesName!=null))&&(S.type="ordinal")}return kL(a),new V1({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function kL(e){for(var t=Q(),r=0;r<e.length;r++){var n=e[r],i=n.name,a=t.get(i)||0;a>0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function BL(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return A(t,function(a){var o;H(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function FL(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var VL=function(){function e(t){this.coordSysDims=[],this.axisMap=Q(),this.categoryAxisMap=Q(),this.coordSysName=t}return e}();function zL(e){var t=e.get("coordinateSystem"),r=new VL(t),n=GL[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var GL={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",fe).models[0],a=e.getReferringComponents("yAxis",fe).models[0];if(process.env.NODE_ENV!=="production"){if(!i)throw new Error('xAxis "'+Cr(e.get("xAxisIndex"),e.get("xAxisId"),0)+'" not found');if(!a)throw new Error('yAxis "'+Cr(e.get("xAxisIndex"),e.get("yAxisId"),0)+'" not found')}t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),bi(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),bi(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",fe).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error("singleAxis should be specified.");t.coordSysDims=["single"],r.set("single",i),bi(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",fe).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");if(process.env.NODE_ENV!=="production"){if(!o)throw new Error("angleAxis option not found");if(!a)throw new Error("radiusAxis option not found")}t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),bi(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),bi(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();A(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];r.set(f,u),bi(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function bi(e){return e.get("type")==="category"}function W1(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;$L(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,f,c,v;if(A(a,function(m,_){$(m)&&(a[_]=m={name:m}),l&&!m.isExtraCoord&&(!n&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!i||i===m.coordDim)&&(f=m))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+e.id,v="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var h=f.coordDim,d=f.type,g=0;A(a,function(m){m.coordDim===h&&g++});var p={name:c,coordDim:h,coordDimIndex:g,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:v,coordDim:v,coordDimIndex:g+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(v,d),y.storeDimIndex=s.ensureCalculationDimension(c,d)),o.appendCalculationDimension(p),o.appendCalculationDimension(y)):(a.push(p),a.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:v,stackResultDimension:c}}function $L(e){return!z1(e.schema)}function nn(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function U1(e,t){return nn(e,t)?e.getCalculationInfo("stackResultDimension"):t}function HL(e,t){var r=e.get("coordinateSystem"),n=Zl.get(r),i;return t&&t.coordSysDims&&(i=z(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=CL(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function WL(e,t,r){var n,i;return r&&A(e,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function ru(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=Jh(e)):(i=n.getSource(),a=i.sourceFormat===ke);var o=zL(t),s=HL(t,o),l=r.useEncodeDefaulter,u=X(l)?l:l?dt(CA,s,t):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=yv(i,f),v=WL(c.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(c),d=W1(t,{schema:c,store:h}),g=new gv(c,t);g.setCalculationInfo(d);var p=v!=null&&UL(i)?function(y,m,_,x){return x===v?_:this.defaultDimValueGetter(y,m,_,x)}:null;return g.hasItemOption=!1,g.initData(a?i:h,null,p),g}function UL(e){if(e.sourceFormat===ke){var t=YL(e.data||[]);return!V(bo(t))}}function YL(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var Y1=function(){function e(t){this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype.unionExtent=function(t){var r=this._extent;t[0]<r[0]&&(r[0]=t[0]),t[1]>r[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();El(Y1);const Ir=Y1;var XL=0,qL=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++XL}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&z(n,ZL);return new e({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!$(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var i=this._getOrCreateMap();return r=i.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,i.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Q(this.categories))},e}();function ZL(e){return H(e)&&e.value!=null?e.value:e+""}const Pc=qL;function jL(e){var t=Math.pow(10,xo(Math.abs(e))),r=Math.abs(e/t);return r===0||r===1||r===2||r===3||r===5}function Ic(e){return e.type==="interval"||e.type==="log"}function KL(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=bh(a/t,!0);r!=null&&o<r&&(o=i.interval=r),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=X1(o),l=i.niceTickExtent=[Ct(Math.ceil(e[0]/o)*o,s),Ct(Math.floor(e[1]/o)*o,s)];return QL(l,e),i}function gf(e){var t=Math.pow(10,xo(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Ct(r*t)}function X1(e){return nr(e)+2}function xg(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function QL(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),xg(e,0,t),xg(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function nu(e,t){return e>=t[0]&&e<=t[1]}function iu(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function au(e,t){return e*(t[1]-t[0])+t[0]}var q1=function(e){R(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Pc({})),V(i)&&(i=new Pc({categories:z(i,function(a){return H(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:$(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),nu(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),iu(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(au(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];i[o]=u,a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;i.push(f),a[f]=o}},t.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Ir);Ir.registerClass(q1);const Z1=q1;var Ln=Ct,j1=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return nu(r,this._extent)},t.prototype.normalize=function(r){return iu(r,this._extent)},t.prototype.scale=function(r){return au(r,this._extent)},t.prototype.setExtent=function(r,n){var i=this._extent;isNaN(r)||(i[0]=parseFloat(r)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]<n[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=X1(r)},t.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]<a[0]&&(r?s.push({value:Ln(a[0]-n,o)}):s.push({value:i[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=Ln(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var f=s.length?s[s.length-1].value:a[1];return i[1]>f&&(r?s.push({value:Ln(f+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,f=[],c=s.value-l.value,v=c/r;u<r-1;){var h=Ln(l.value+(u+1)*v);h>a[0]&&h<a[1]&&f.push(h),u++}i.push(f)}return i},t.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=nr(r.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=Ln(r.value,i,!0);return Yh(a)},t.prototype.calcNiceTicks=function(r,n,i){r=r||5;var a=this._extent,o=a[1]-a[0];if(!!isFinite(o)){o<0&&(o=-o,a.reverse());var s=KL(a,r,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var i=Math.abs(n[0]);r.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;var a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval;r.fixMin||(n[0]=Ln(Math.floor(n[0]/o)*o)),r.fixMax||(n[1]=Ln(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t}(Ir);Ir.registerClass(j1);const Kn=j1;var K1=typeof Float32Array<"u",JL=K1?Float32Array:Array;function br(e){return V(e)?K1?new Float32Array(e):e:new JL(e)}var tP="__ec_stack_";function mv(e){return e.get("stack")||tP+e.seriesIndex}function _v(e){return e.dim+e.index}function Q1(e,t){var r=[];return t.eachSeriesByType(e,function(n){tx(n)&&r.push(n)}),r}function eP(e){var t={};A(e,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var c=l.getData(),v=f.dim+"_"+f.index,h=c.getDimensionIndex(c.mapDimension(f.dim)),d=c.getStore(),g=0,p=d.count();g<p;++g){var y=d.get(h,g);t[v]?t[v].push(y):t[v]=[y]}});var r={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];if(i){i.sort(function(l,u){return l-u});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function J1(e){var t=eP(e),r=[];return A(e,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],f=Math.abs(o[1]-o[0]),c=a.scale.getExtent(),v=Math.abs(c[1]-c[0]);s=u?f/v*u:f}else{var h=n.getData();s=Math.abs(o[1]-o[0])/h.count()}var d=K(n.get("barWidth"),s),g=K(n.get("barMaxWidth"),s),p=K(n.get("barMinWidth")||(ex(n)?.5:1),s),y=n.get("barGap"),m=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:d,barMaxWidth:g,barMinWidth:p,barGap:y,barCategoryGap:m,axisKey:_v(a),stackId:mv(n)})}),rP(r)}function rP(e){var t={};A(e,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var c=n.barMaxWidth;c&&(l[u].maxWidth=c);var v=n.barMinWidth;v&&(l[u].minWidth=v);var h=n.barGap;h!=null&&(s.gap=h);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var r={};return A(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=mt(a).length;s=Math.max(35-l*4,15)+"%"}var u=K(s,o),f=K(n.gap,1),c=n.remainedWidth,v=n.autoWidthCount,h=(c-u)/(v+(v-1)*f);h=Math.max(h,0),A(a,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var x=y.width;m&&(x=Math.min(x,m)),_&&(x=Math.max(x,_)),y.width=x,c-=x+f*x,v--}else{var x=h;m&&m<x&&(x=Math.min(m,c)),_&&_>x&&(x=_),x!==h&&(y.width=x,c-=x+f*x,v--)}}),h=(c-u)/(v+(v-1)*f),h=Math.max(h,0);var d=0,g;A(a,function(y,m){y.width||(y.width=h),g=y,d+=y.width*(1+f)}),g&&(d-=g.width*f);var p=-d/2;A(a,function(y,m){r[i][m]=r[i][m]||{bandWidth:o,offset:p,width:y.width},p+=y.width*(1+f)})}),r}function nP(e,t,r){if(e&&t){var n=e[_v(t)];return n!=null&&r!=null?n[mv(r)]:n}}function iP(e,t){var r=Q1(e,t),n=J1(r);A(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=mv(i),u=n[_v(s)][l],f=u.offset,c=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function aP(e){return{seriesType:e,plan:nv(),reset:function(t){if(!!tx(t)){var r=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=t.get("showBackground",!0),u=r.mapDimension(a.dim),f=r.getCalculationInfo("stackResultDimension"),c=nn(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),v=a.isHorizontal(),h=oP(i,a),d=ex(t),g=t.get("barMinHeight")||0,p=f&&r.getDimensionIndex(f),y=r.getLayout("size"),m=r.getLayout("offset");return{progress:function(_,x){for(var w=_.count,b=d&&br(w*3),S=d&&l&&br(w*3),T=d&&br(w),D=n.master.getRect(),M=v?D.width:D.height,C,E=x.getStore(),L=0;(C=_.next())!=null;){var P=E.get(c?p:o,C),I=E.get(s,C),O=h,F=void 0;c&&(F=+P-E.get(o,C));var N=void 0,B=void 0,G=void 0,W=void 0;if(v){var Z=n.dataToPoint([P,I]);if(c){var et=n.dataToPoint([F,I]);O=et[0]}N=O,B=Z[1]+m,G=Z[0]-O,W=y,Math.abs(G)<g&&(G=(G<0?-1:1)*g)}else{var Z=n.dataToPoint([I,P]);if(c){var et=n.dataToPoint([I,F]);O=et[1]}N=Z[0]+m,B=O,G=y,W=Z[1]-O,Math.abs(W)<g&&(W=(W<=0?-1:1)*g)}d?(b[L]=N,b[L+1]=B,b[L+2]=v?G:W,S&&(S[L]=v?D.x:N,S[L+1]=v?B:D.y,S[L+2]=M),T[C]=C):x.setItemLayout(C,{x:N,y:B,width:G,height:W}),L+=3}d&&x.setLayout({largePoints:b,largeDataIndices:T,largeBackgroundPoints:S,valueAxisHorizontal:v})}}}}}}function tx(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function ex(e){return e.pipelineContext&&e.pipelineContext.large}function oP(e,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var sP=function(e,t,r,n){for(;r<n;){var i=r+n>>>1;e[i][1]<t?r=i+1:n=i}return r},rx=function(e){R(t,e);function t(r){var n=e.call(this,r)||this;return n.type="time",n}return t.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return Co(r.value,cp[vA(Ni(this._minLevelUnit))]||cp.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return dA(r,n,i,o,a)},t.prototype.getTicks=function(){var r=this._interval,n=this._extent,i=[];if(!r)return i;i.push({value:n[0],level:0});var a=this.getSetting("useUTC"),o=dP(this._minLevelUnit,this._approxInterval,a,n);return i=i.concat(o),i.push({value:n[1],level:0}),i},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1]&&(n[0]-=Ae,n[1]+=Ae),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-Ae}this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,n,i){r=r||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=as.length,l=Math.min(sP(as,this._approxInterval,0,s),s-1);this._interval=as[l][1],this._minLevelUnit=as[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return vt(r)?r:+Le(r)},t.prototype.contain=function(r){return nu(this.parse(r),this._extent)},t.prototype.normalize=function(r){return iu(this.parse(r),this._extent)},t.prototype.scale=function(r){return au(r,this._extent)},t.type="time",t}(Kn),as=[["second",Hh],["minute",Wh],["hour",$a],["quarter-day",$a*6],["half-day",$a*12],["day",Ae*1.2],["half-week",Ae*3.5],["week",Ae*7],["month",Ae*31],["quarter",Ae*95],["half-year",fp/2],["year",fp]];function lP(e,t,r,n){var i=Le(t),a=Le(r),o=function(d){return hp(i,d,n)===hp(a,d,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},c=function(){return f()&&o("minute")},v=function(){return c()&&o("second")},h=function(){return v()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return c();case"second":return v();case"millisecond":return h()}}function uP(e,t){return e/=Ae,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function fP(e){var t=30*Ae;return e/=t,e>6?6:e>3?3:e>2?2:1}function cP(e){return e/=$a,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function bg(e,t){return e/=t?Wh:Hh,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function hP(e){return bh(e,!0)}function vP(e,t,r){var n=new Date(e);switch(Ni(t)){case"year":case"month":n[S_(r)](0);case"day":n[w_(r)](1);case"hour":n[T_(r)](0);case"minute":n[C_(r)](0);case"second":n[D_(r)](0),n[A_(r)](0)}return n.getTime()}function dP(e,t,r,n){var i=1e4,a=x_,o=0;function s(M,C,E,L,P,I,O){for(var F=new Date(C),N=C,B=F[L]();N<E&&N<=n[1];)O.push({value:N}),B+=M,F[P](B),N=F.getTime();O.push({value:N,notAdd:!0})}function l(M,C,E){var L=[],P=!C.length;if(!lP(Ni(M),n[0],n[1],r)){P&&(C=[{value:vP(new Date(n[0]),M,r)},{value:n[1]}]);for(var I=0;I<C.length-1;I++){var O=C[I].value,F=C[I+1].value;if(O!==F){var N=void 0,B=void 0,G=void 0,W=!1;switch(M){case"year":N=Math.max(1,Math.round(t/Ae/365)),B=Uh(r),G=pA(r);break;case"half-year":case"quarter":case"month":N=fP(t),B=Ri(r),G=S_(r);break;case"week":case"half-week":case"day":N=uP(t),B=Wl(r),G=w_(r),W=!0;break;case"half-day":case"quarter-day":case"hour":N=cP(t),B=io(r),G=T_(r);break;case"minute":N=bg(t,!0),B=Ul(r),G=C_(r);break;case"second":N=bg(t,!1),B=Yl(r),G=D_(r);break;case"millisecond":N=hP(t),B=Xl(r),G=A_(r);break}s(N,O,F,B,G,W,L),M==="year"&&E.length>1&&I===0&&E.unshift({value:E[0].value-N})}}for(var I=0;I<L.length;I++)E.push(L[I]);return L}}for(var u=[],f=[],c=0,v=0,h=0;h<a.length&&o++<i;++h){var d=Ni(a[h]);if(!!hA(a[h])){l(a[h],u[u.length-1]||[],f);var g=a[h+1]?Ni(a[h+1]):null;if(d!==g){if(f.length){v=c,f.sort(function(M,C){return M.value-C.value});for(var p=[],y=0;y<f.length;++y){var m=f[y].value;(y===0||f[y-1].value!==m)&&(p.push(f[y]),m>=n[0]&&m<=n[1]&&c++)}var _=(n[1]-n[0])/t;if(c>_*1.5&&v>_/1.5||(u.push(p),c>_||e===a[h]))break}f=[]}}}process.env.NODE_ENV!=="production"&&o>=i&&kt("Exceed safe limit.");for(var x=_t(z(u,function(M){return _t(M,function(C){return C.value>=n[0]&&C.value<=n[1]&&!C.notAdd})}),function(M){return M.length>0}),w=[],b=x.length-1,h=0;h<x.length;++h)for(var S=x[h],T=0;T<S.length;++T)w.push({value:S[T].value,level:b-h});w.sort(function(M,C){return M.value-C.value});for(var D=[],h=0;h<w.length;++h)(h===0||w[h].value!==w[h-1].value)&&D.push(w[h]);return D}Ir.registerClass(rx);const pP=rx;var Sg=Ir.prototype,Ya=Kn.prototype,gP=Ct,yP=Math.floor,mP=Math.ceil,os=Math.pow,Fe=Math.log,xv=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new Kn,r._interval=0,r}return t.prototype.getTicks=function(r){var n=this._originalScale,i=this._extent,a=n.getExtent(),o=Ya.getTicks.call(this,r);return z(o,function(s){var l=s.value,u=Ct(os(this.base,l));return u=l===i[0]&&this._fixMin?ss(u,a[0]):u,u=l===i[1]&&this._fixMax?ss(u,a[1]):u,{value:u}},this)},t.prototype.setExtent=function(r,n){var i=Fe(this.base);r=Fe(Math.max(0,r))/i,n=Fe(Math.max(0,n))/i,Ya.setExtent.call(this,r,n)},t.prototype.getExtent=function(){var r=this.base,n=Sg.getExtent.call(this);n[0]=os(r,n[0]),n[1]=os(r,n[1]);var i=this._originalScale,a=i.getExtent();return this._fixMin&&(n[0]=ss(n[0],a[0])),this._fixMax&&(n[1]=ss(n[1],a[1])),n},t.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=Fe(r[0])/Fe(n),r[1]=Fe(r[1])/Fe(n),Sg.unionExtent.call(this,r)},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent,i=n[1]-n[0];if(!(i===1/0||i<=0)){var a=u0(i),o=r/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[Ct(mP(n[0]/a)*a),Ct(yP(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){Ya.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=Fe(r)/Fe(this.base),nu(r,this._extent)},t.prototype.normalize=function(r){return r=Fe(r)/Fe(this.base),iu(r,this._extent)},t.prototype.scale=function(r){return r=au(r,this._extent),os(this.base,r)},t.type="log",t}(Ir),nx=xv.prototype;nx.getMinorTicks=Ya.getMinorTicks;nx.getLabel=Ya.getLabel;function ss(e,t){return gP(e,nr(t))}Ir.registerClass(xv);const _P=xv;var xP=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var a=this._modelMinRaw=r.get("min",!0);X(a)?this._modelMinNum=ls(t,a({min:n[0],max:n[1]})):a!=="dataMin"&&(this._modelMinNum=ls(t,a));var o=this._modelMaxRaw=r.get("max",!0);if(X(o)?this._modelMaxNum=ls(t,o({min:n[0],max:n[1]})):o!=="dataMax"&&(this._modelMaxNum=ls(t,o)),i)this._axisDataLen=r.getCategories().length;else{var s=r.get("boundaryGap"),l=V(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?(process.env.NODE_ENV!=="production"&&console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),this._boundaryGapInner=[0,0]):this._boundaryGapInner=[en(l[0],1),en(l[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=t?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=t?i?0:NaN:r-a[0]*o),l==null&&(l=t?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var c=Bi(s)||Bi(l)||t&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var v=this._determinedMin,h=this._determinedMax;return v!=null&&(s=v,u=!0),h!=null&&(l=h,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},e.prototype.modifyDataMinMax=function(t,r){process.env.NODE_ENV!=="production"&&J(!this.frozen),this[SP[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=bP[t];process.env.NODE_ENV!=="production"&&J(!this.frozen&&this[n]==null),this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),bP={min:"_determinedMin",max:"_determinedMax"},SP={min:"_dataMin",max:"_dataMax"};function wP(e,t,r){var n=e.rawExtentInfo;return n||(n=new xP(e,t,r),e.rawExtentInfo=n,n)}function ls(e,t){return t==null?null:Bi(t)?NaN:e.parse(t)}function ix(e,t){var r=e.type,n=wP(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&r==="time"){var s=Q1("bar",o),l=!1;if(A(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=J1(s),f=TP(i,a,t,u);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function TP(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=nP(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;A(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;A(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-e,c=1-(s+l)/a,v=f/c-f;return t+=v*(l/u),e-=v*(s/u),{min:e,max:t}}function Yi(e,t){var r=t,n=ix(e,r),i=n.extent,a=r.get("splitNumber");e instanceof _P&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),l=o==="interval"||o==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function ou(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new Z1({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new pP({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Ir.getClass(t)||Kn)}}function CP(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function Ao(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(n){return function(i,a){return e.scale.getFormattedLabel(i,a,n)}}(t):$(t)?function(n){return function(i){var a=e.scale.getLabel(i),o=n.replace("{value}",a!=null?a:"");return o}}(t):X(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(bv(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function bv(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function DP(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof Z1?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=Ao(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var f=0;f<i;f+=u){var c=n?n[f]:{value:a[0]+f},v=s(c,f),h=o.getTextRect(v),d=AP(h,o.get("rotate")||0);l?l.union(d):l=d}return l}}function AP(e,t){var r=t*Math.PI/180,n=e.width,i=e.height,a=n*Math.abs(Math.cos(r))+Math.abs(i*Math.sin(r)),o=n*Math.abs(Math.sin(r))+Math.abs(i*Math.cos(r)),s=new it(e.x,e.y,a,o);return s}function Sv(e){var t=e.get("interval");return t==null?"auto":t}function ax(e){return e.type==="category"&&Sv(e.getLabelModel())===0}function Oc(e,t){var r={};return A(e.mapDimensionsAll(t),function(n){r[U1(e,n)]=!0}),mt(r)}var Mo=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}();function MP(e){return ru(null,e)}var EP={isDimensionStacked:nn,enableDataStack:W1,getStackedDimension:U1};function LP(e,t){var r=t;t instanceof Et||(r=new Et(t));var n=ou(r);return n.setExtent(e[0],e[1]),Yi(n,r),n}function PP(e){ie(e,Mo)}function IP(e,t){return t=t||{},fr(e,null,null,t.state!=="normal")}const OP=Object.freeze(Object.defineProperty({__proto__:null,createList:MP,getLayoutRect:Er,dataStack:EP,createScale:LP,mixinAxisModelCommonMethods:PP,getECData:ut,createTextStyle:IP,createDimensions:RL,createSymbol:jn,enableHoverEmphasis:Js},Symbol.toStringTag,{value:"Module"}));var wg=[],NP={registerPreprocessor:hv,registerProcessor:vv,registerPostInit:O1,registerPostUpdate:N1,registerUpdateLifecycle:eu,registerAction:un,registerCoordinateSystem:R1,registerLayout:k1,registerVisual:fn,registerTransform:F1,registerLoading:pv,registerMap:B1,registerImpl:qE,PRIORITY:T1,ComponentModel:st,ComponentView:Vt,SeriesModel:Oe,ChartView:ce,registerComponentModel:function(e){st.registerClass(e)},registerComponentView:function(e){Vt.registerClass(e)},registerSeriesModel:function(e){Oe.registerClass(e)},registerChartView:function(e){ce.registerClass(e)},registerSubTypeDefaulter:function(e,t){st.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){i0(e,t)}};function cr(e){if(V(e)){A(e,function(t){cr(t)});return}ct(wg,e)>=0||(wg.push(e),X(e)&&(e={install:e}),e.install(NP))}var RP=1e-8;function Tg(e,t){return Math.abs(e-t)<RP}function Cg(e,t,r){var n=0,i=e[0];if(!i)return!1;for(var a=1;a<e.length;a++){var o=e[a];n+=_r(i[0],i[1],o[0],o[1],t,r),i=o}var s=e[0];return(!Tg(i[0],s[0])||!Tg(i[1],s[1]))&&(n+=_r(i[0],i[1],s[0],s[1],t,r)),n!==0}var kP=[];function yf(e,t){for(var r=0;r<e.length;r++)ee(e[r],e[r],t)}function Dg(e,t,r,n){for(var i=0;i<e.length;i++){var a=e[i];n&&(a=n.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(Ur(t,t,a),Yr(r,r,a))}}function BP(e){for(var t=0,r=0,n=0,i=e.length,a=e[i-1][0],o=e[i-1][1],s=0;s<i;s++){var l=e[s][0],u=e[s][1],f=a*u-l*o;t+=f,r+=(a+l)*f,n+=(o+u)*f,a=l,o=u}return t?[r/t/3,n/t/3,t]:[e[0][0]||0,e[0][1]||0]}var ox=function(){function e(t){this.name=t}return e.prototype.setCenter=function(t){this._center=t},e.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},e}(),Ag=function(){function e(t,r){this.type="polygon",this.exterior=t,this.interiors=r}return e}(),Mg=function(){function e(t){this.type="linestring",this.points=t}return e}(),FP=function(e){R(t,e);function t(r,n,i){var a=e.call(this,r)||this;return a.type="geoJSON",a.geometries=n,a._center=i&&[i[0],i[1]],a}return t.prototype.calcCenter=function(){for(var r=this.geometries,n,i=0,a=0;a<r.length;a++){var o=r[a],s=o.exterior,l=s&&s.length;l>i&&(n=o,i=l)}if(n)return BP(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return A(o,function(s){s.type==="polygon"?Dg(s.exterior,i,a,r):A(s.points,function(l){Dg(l,i,a,r)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new it(i[0],i[1],a[0]-i[0],a[1]-i[1]),r||(this._rect=n),n},t.prototype.contain=function(r){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(r[0],r[1]))return!1;t:for(var a=0,o=i.length;a<o;a++){var s=i[a];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Cg(l,r[0],r[1])){for(var f=0;f<(u?u.length:0);f++)if(Cg(u[f],r[0],r[1]))continue t;return!0}}}return!1},t.prototype.transformTo=function(r,n,i,a){var o=this.getBoundingRect(),s=o.width/o.height;i?a||(a=i/s):i=s*a;for(var l=new it(r,n,i,a),u=o.calculateTransform(l),f=this.geometries,c=0;c<f.length;c++){var v=f[c];v.type==="polygon"?(yf(v.exterior,u),A(v.interiors,function(h){yf(h,u)})):A(v.points,function(h){yf(h,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(r){r==null&&(r=this.name);var n=new t(r,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(ox);(function(e){R(t,e);function t(r,n){var i=e.call(this,r)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return t.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,n=r.getBoundingRect(),i=[n.x+n.width/2,n.y+n.height/2],a=yo(kP),o=r;o&&!o.isGeoSVGGraphicRoot;)Qr(a,o.getLocalTransform(),a),o=o.parent;return ji(a,a),ee(i,i,a),i},t})(ox);function VP(e){if(!e.UTF8Encoding)return e;var t=e,r=t.UTF8Scale;r==null&&(r=1024);var n=t.features;return A(n,function(i){var a=i.geometry,o=a.encodeOffsets,s=a.coordinates;if(!!o)switch(a.type){case"LineString":a.coordinates=sx(s,o,r);break;case"Polygon":mf(s,o,r);break;case"MultiLineString":mf(s,o,r);break;case"MultiPolygon":A(s,function(l,u){return mf(l,o[u],r)})}}),t.UTF8Encoding=!1,t}function mf(e,t,r){for(var n=0;n<e.length;n++)e[n]=sx(e[n],t[n],r)}function sx(e,t,r){for(var n=[],i=t[0],a=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,l=e.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,n.push([s/r,l/r])}return n}function Eg(e,t){return e=VP(e),z(_t(e.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,i=r.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new Ag(o[0],o.slice(1)));break;case"MultiPolygon":A(i.coordinates,function(l){l[0]&&a.push(new Ag(l[0],l.slice(1)))});break;case"LineString":a.push(new Mg([i.coordinates]));break;case"MultiLineString":a.push(new Mg(i.coordinates))}var s=new FP(n[t||"name"],a,n.cp);return s.properties=n,s})}const zP=Object.freeze(Object.defineProperty({__proto__:null,linearMap:Vi,round:Ct,asc:o0,getPrecision:nr,getPrecisionSafe:qs,getPixelPrecision:s0,getPercentWithPrecision:mT,MAX_SAFE_INTEGER:xT,remRadian:xh,isRadianAroundZero:Ja,parseDate:Le,quantity:u0,quantityExponent:xo,nice:bh,quantile:ST,reformIntervals:wT,isNumeric:Sh,numericToNumber:Ar},Symbol.toStringTag,{value:"Module"})),GP=Object.freeze(Object.defineProperty({__proto__:null,parse:Le,format:Co},Symbol.toStringTag,{value:"Module"})),$P=Object.freeze(Object.defineProperty({__proto__:null,extendShape:l_,extendPath:u_,makePath:Fl,makeImage:Rh,mergePath:De,resizePath:kh,createIcon:zl,updateProps:Lt,initProps:Bt,getTransform:Bh,clipPointsByRect:Fh,clipRectByRect:v_,registerShape:Re,getShapeClass:f_,Group:Dt,Image:sn,Text:Ot,Circle:rn,Ellipse:Ph,Sector:Ie,Ring:wo,Polygon:ii,Polyline:ln,Rect:wt,Line:Me,BezierCurve:Ih,Arc:Rl,IncrementalDisplayable:o_,CompoundPath:n_,LinearGradient:Oh,RadialGradient:a_,BoundingRect:it},Symbol.toStringTag,{value:"Module"})),HP=Object.freeze(Object.defineProperty({__proto__:null,addCommas:Yh,toCamelCase:Xh,normalizeCssArray:Do,encodeHTML:de,formatTpl:qh,getTooltipMarker:M_,formatTime:yA,capitalFirst:mA,truncateText:_0,getTextRect:gA},Symbol.toStringTag,{value:"Module"})),WP=Object.freeze(Object.defineProperty({__proto__:null,map:z,each:A,indexOf:ct,inherits:lh,reduce:lr,filter:_t,bind:ht,curry:dt,isArray:V,isString:$,isObject:H,isFunction:X,extend:k,defaults:Y,clone:j,merge:rt},Symbol.toStringTag,{value:"Module"}));var fo=xt();function UP(e){return e.type==="category"?XP(e):ZP(e)}function YP(e,t){return e.type==="category"?qP(e,t):{ticks:z(e.scale.getTicks(),function(r){return r.value})}}function XP(e){var t=e.getLabelModel(),r=lx(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function lx(e,t){var r=ux(e,"labels"),n=Sv(t),i=fx(r,n);if(i)return i;var a,o;return X(n)?a=vx(e,n):(o=n==="auto"?jP(e):n,a=hx(e,o)),cx(r,n,{labels:a,labelCategoryInterval:o})}function qP(e,t){var r=ux(e,"ticks"),n=Sv(t),i=fx(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),X(n))a=vx(e,n,!0);else if(n==="auto"){var s=lx(e,e.getLabelModel());o=s.labelCategoryInterval,a=z(s.labels,function(l){return l.tickValue})}else o=n,a=hx(e,o,!0);return cx(r,n,{ticks:a,tickCategoryInterval:o})}function ZP(e){var t=e.scale.getTicks(),r=Ao(e);return{labels:z(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function ux(e,t){return fo(e)[t]||(fo(e)[t]=[])}function fx(e,t){for(var r=0;r<e.length;r++)if(e[r].key===t)return e[r].value}function cx(e,t,r){return e.push({key:t,value:r}),r}function jP(e){var t=fo(e).autoInterval;return t!=null?t:fo(e).autoInterval=e.calculateCategoryInterval()}function KP(e){var t=QP(e),r=Ao(e),n=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),f=Math.abs(u*Math.cos(n)),c=Math.abs(u*Math.sin(n)),v=0,h=0;l<=a[1];l+=s){var d=0,g=0,p=Al(r({value:l}),t.font,"center","top");d=p.width*1.3,g=p.height*1.3,v=Math.max(v,d,7),h=Math.max(h,g,7)}var y=v/f,m=h/c;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),x=fo(e.model),w=e.getExtent(),b=x.lastAutoInterval,S=x.lastTickCount;return b!=null&&S!=null&&Math.abs(b-_)<=1&&Math.abs(S-o)<=1&&b>_&&x.axisExtent0===w[0]&&x.axisExtent1===w[1]?_=b:(x.lastTickCount=o,x.lastAutoInterval=_,x.axisExtent0=w[0],x.axisExtent1=w[1]),_}function QP(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function hx(e,t,r){var n=Ao(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],f=i.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=ax(e),v=o.get("showMinLabel")||c,h=o.get("showMaxLabel")||c;v&&u!==a[0]&&g(a[0]);for(var d=u;d<=a[1];d+=l)g(d);h&&d-l!==a[1]&&g(a[1]);function g(p){var y={value:p};s.push(r?p:{formattedLabel:n(y),rawLabel:i.getLabel(y),tickValue:p})}return s}function vx(e,t,r){var n=e.scale,i=Ao(e),a=[];return A(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var Lg=[0,1],JP=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return t>=n&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return s0(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),Pg(n,i.count())),Vi(t,Lg,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),Pg(n,i.count()));var a=Vi(t,n,Lg,r);return this.scale.scale(a)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=YP(this,r),i=n.ticks,a=z(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return tI(this,a,o,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=z(n,function(a){return z(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(){return UP(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return KP(this)},e}();function Pg(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function tI(e,t,r,n){var i=t.length;if(!e.onBand||r||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;A(t,function(h){h.coord-=u/2});var f=e.scale.getExtent();s=1+f[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s},t.push(o)}var c=a[0]>a[1];v(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&v(a[0],t[0].coord)&&t.unshift({coord:a[0]}),v(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&v(o.coord,a[1])&&t.push({coord:a[1]});function v(h,d){return h=Ct(h),d=Ct(d),c?h>d:h<d}}const vr=JP;function eI(e){var t=st.extend(e);return st.registerClass(t),t}function rI(e){var t=Vt.extend(e);return Vt.registerClass(t),t}function nI(e){var t=Oe.extend(e);return Oe.registerClass(t),t}function iI(e){var t=ce.extend(e);return ce.registerClass(t),t}var Ta=Math.PI*2,Pn=Mr.CMD,aI=["top","right","bottom","left"];function oI(e,t,r,n,i){var a=r.width,o=r.height;switch(e){case"top":n.set(r.x+a/2,r.y-t),i.set(0,-1);break;case"bottom":n.set(r.x+a/2,r.y+o+t),i.set(0,1);break;case"left":n.set(r.x-t,r.y+o/2),i.set(-1,0);break;case"right":n.set(r.x+a+t,r.y+o/2),i.set(1,0);break}}function sI(e,t,r,n,i,a,o,s,l){o-=e,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*r+e,c=s*r+t;if(Math.abs(n-i)%Ta<1e-4)return l[0]=f,l[1]=c,u-r;if(a){var v=n;n=xr(i),i=xr(v)}else n=xr(n),i=xr(i);n>i&&(i+=Ta);var h=Math.atan2(s,o);if(h<0&&(h+=Ta),h>=n&&h<=i||h+Ta>=n&&h+Ta<=i)return l[0]=f,l[1]=c,u-r;var d=r*Math.cos(n)+e,g=r*Math.sin(n)+t,p=r*Math.cos(i)+e,y=r*Math.sin(i)+t,m=(d-o)*(d-o)+(g-s)*(g-s),_=(p-o)*(p-o)+(y-s)*(y-s);return m<_?(l[0]=d,l[1]=g,Math.sqrt(m)):(l[0]=p,l[1]=y,Math.sqrt(_))}function yl(e,t,r,n,i,a,o,s){var l=i-e,u=a-t,f=r-e,c=n-t,v=Math.sqrt(f*f+c*c);f/=v,c/=v;var h=l*f+u*c,d=h/v;s&&(d=Math.min(Math.max(d,0),1)),d*=v;var g=o[0]=e+d*f,p=o[1]=t+d*c;return Math.sqrt((g-i)*(g-i)+(p-a)*(p-a))}function dx(e,t,r,n,i,a,o){r<0&&(e=e+r,r=-r),n<0&&(t=t+n,n=-n);var s=e+r,l=t+n,u=o[0]=Math.min(Math.max(i,e),s),f=o[1]=Math.min(Math.max(a,t),l);return Math.sqrt((u-i)*(u-i)+(f-a)*(f-a))}var $e=[];function lI(e,t,r){var n=dx(t.x,t.y,t.width,t.height,e.x,e.y,$e);return r.set($e[0],$e[1]),n}function uI(e,t,r){for(var n=0,i=0,a=0,o=0,s,l,u=1/0,f=t.data,c=e.x,v=e.y,h=0;h<f.length;){var d=f[h++];h===1&&(n=f[h],i=f[h+1],a=n,o=i);var g=u;switch(d){case Pn.M:a=f[h++],o=f[h++],n=a,i=o;break;case Pn.L:g=yl(n,i,f[h],f[h+1],c,v,$e,!0),n=f[h++],i=f[h++];break;case Pn.C:g=Um(n,i,f[h++],f[h++],f[h++],f[h++],f[h],f[h+1],c,v,$e),n=f[h++],i=f[h++];break;case Pn.Q:g=Xm(n,i,f[h++],f[h++],f[h],f[h+1],c,v,$e),n=f[h++],i=f[h++];break;case Pn.A:var p=f[h++],y=f[h++],m=f[h++],_=f[h++],x=f[h++],w=f[h++];h+=1;var b=!!(1-f[h++]);s=Math.cos(x)*m+p,l=Math.sin(x)*_+y,h<=1&&(a=s,o=l);var S=(c-p)*_/m+p;g=sI(p,y,_,x,x+w,b,S,v,$e),n=Math.cos(x+w)*m+p,i=Math.sin(x+w)*_+y;break;case Pn.R:a=n=f[h++],o=i=f[h++];var T=f[h++],D=f[h++];g=dx(a,o,T,D,c,v,$e);break;case Pn.Z:g=yl(n,i,a,o,c,v,$e,!0),n=a,i=o;break}g<u&&(u=g,r.set($e[0],$e[1]))}return u}var We=new U,gt=new U,Tt=new U,ar=new U,rr=new U;function Ig(e,t){if(!!e){var r=e.getTextGuideLine(),n=e.getTextContent();if(!!(n&&r)){var i=e.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||aI,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=i.anchor,f=e.getComputedTransform(),c=f&&ji([],f),v=t.get("length2")||0;u&&Tt.copy(u);for(var h=0;h<o.length;h++){var d=o[h];oI(d,0,s,We,ar),U.scaleAndAdd(gt,We,ar,v),gt.transform(c);var g=e.getBoundingRect(),p=u?u.distance(gt):e instanceof ot?uI(gt,e.path,Tt):lI(gt,g,Tt);p<l&&(l=p,gt.transform(f),Tt.transform(f),Tt.toArray(a[0]),gt.toArray(a[1]),We.toArray(a[2]))}px(a,t.get("minTurnAngle")),r.setShape({points:a})}}}var ml=[],Jt=new U;function px(e,t){if(t<=180&&t>0){t=t/180*Math.PI,We.fromArray(e[0]),gt.fromArray(e[1]),Tt.fromArray(e[2]),U.sub(ar,We,gt),U.sub(rr,Tt,gt);var r=ar.len(),n=rr.len();if(!(r<.001||n<.001)){ar.scale(1/r),rr.scale(1/n);var i=ar.dot(rr),a=Math.cos(t);if(a<i){var o=yl(gt.x,gt.y,Tt.x,Tt.y,We.x,We.y,ml,!1);Jt.fromArray(ml),Jt.scaleAndAdd(rr,o/Math.tan(Math.PI-t));var s=Tt.x!==gt.x?(Jt.x-gt.x)/(Tt.x-gt.x):(Jt.y-gt.y)/(Tt.y-gt.y);if(isNaN(s))return;s<0?U.copy(Jt,gt):s>1&&U.copy(Jt,Tt),Jt.toArray(e[1])}}}}function fI(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,We.fromArray(e[0]),gt.fromArray(e[1]),Tt.fromArray(e[2]),U.sub(ar,gt,We),U.sub(rr,Tt,gt);var n=ar.len(),i=rr.len();if(!(n<.001||i<.001)){ar.scale(1/n),rr.scale(1/i);var a=ar.dot(t),o=Math.cos(r);if(a<o){var s=yl(gt.x,gt.y,Tt.x,Tt.y,We.x,We.y,ml,!1);Jt.fromArray(ml);var l=Math.PI/2,u=Math.acos(rr.dot(t)),f=l+u-r;if(f>=l)U.copy(Jt,Tt);else{Jt.scaleAndAdd(rr,s/Math.tan(Math.PI/2-f));var c=Tt.x!==gt.x?(Jt.x-gt.x)/(Tt.x-gt.x):(Jt.y-gt.y)/(Tt.y-gt.y);if(isNaN(c))return;c<0?U.copy(Jt,gt):c>1&&U.copy(Jt,Tt)}Jt.toArray(e[1])}}}}function Og(e,t,r,n){var i=r==="normal",a=i?e:e.ensureState(r);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function cI(e,t){var r=t.smooth,n=t.points;if(!!n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=$s(n[0],n[1]),a=$s(n[1],n[2]);if(!i||!a){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=Ba([],n[1],n[0],o/i),l=Ba([],n[1],n[2],o/a),u=Ba([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)e.lineTo(n[f][0],n[f][1])}function wv(e,t,r){var n=e.getTextGuideLine(),i=e.getTextContent();if(!i){n&&e.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=i.ignore,l=0;l<js.length;l++){var u=js[l],f=t[u],c=u==="normal";if(f){var v=f.get("show"),h=c?s:nt(i.states[u]&&i.states[u].ignore,s);if(h||!nt(v,o)){var d=c?n:n&&n.states[u];d&&(d.ignore=!0);continue}n||(n=new ln,e.setTextGuideLine(n),!c&&(s||!o)&&Og(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),Og(n,!1,u,f)}}if(n){Y(n.style,r),n.style.fill=null;var g=a.get("showAbove"),p=e.textGuideLineConfig=e.textGuideLineConfig||{};p.showAbove=g||!1,n.buildPath=cI}}function Tv(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},n=0;n<Pe.length;n++){var i=Pe[n];r[i]=e.getModel([i,t])}return r}function gx(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if(!n.defaultAttr.ignore){var i=n.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=i.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var f=s?new tl(o,a):null;t.push({label:i,labelLine:n.labelLine,rect:u,localRect:o,obb:f,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:a})}}return t}function yx(e,t,r,n,i,a){var o=e.length;if(o<2)return;e.sort(function(T,D){return T.rect[t]-D.rect[t]});for(var s=0,l,u=!1,f=0,c=0;c<o;c++){var v=e[c],h=v.rect;l=h[t]-s,l<0&&(h[t]-=l,v.label[t]-=l,u=!0);var d=Math.max(-l,0);f+=d,s=h[t]+h[r]}f>0&&a&&w(-f/o,0,o);var g=e[0],p=e[o-1],y,m;_(),y<0&&b(-y,.8),m<0&&b(m,.8),_(),x(y,m,1),x(m,y,-1),_(),y<0&&S(-y),m<0&&S(m);function _(){y=g.rect[t]-n,m=i-p.rect[t]-p.rect[r]}function x(T,D,M){if(T<0){var C=Math.min(D,-T);if(C>0){w(C*M,0,o);var E=C+T;E<0&&b(-E*M,1)}else b(-T*M,1)}}function w(T,D,M){T!==0&&(u=!0);for(var C=D;C<M;C++){var E=e[C],L=E.rect;L[t]+=T,E.label[t]+=T}}function b(T,D){for(var M=[],C=0,E=1;E<o;E++){var L=e[E-1].rect,P=Math.max(e[E].rect[t]-L[t]-L[r],0);M.push(P),C+=P}if(!!C){var I=Math.min(Math.abs(T)/C,D);if(T>0)for(var E=0;E<o-1;E++){var O=M[E]*I;w(O,0,E+1)}else for(var E=o-1;E>0;E--){var O=M[E-1]*I;w(-O,E,o)}}}function S(T){var D=T<0?-1:1;T=Math.abs(T);for(var M=Math.ceil(T/(o-1)),C=0;C<o-1;C++)if(D>0?w(M,0,C+1):w(-M,o-C-1,o),T-=M,T<=0)return}return u}function hI(e,t,r,n){return yx(e,"x","width",t,r,n)}function mx(e,t,r,n){return yx(e,"y","height",t,r,n)}function _x(e){var t=[];e.sort(function(g,p){return p.priority-g.priority});var r=new it(0,0,0,0);function n(g){if(!g.ignore){var p=g.ensureState("emphasis");p.ignore==null&&(p.ignore=!1)}g.ignore=!0}for(var i=0;i<e.length;i++){var a=e[i],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,f=a.labelLine;r.copy(a.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var c=a.obb,v=!1,h=0;h<t.length;h++){var d=t[h];if(!!r.intersect(d.rect)){if(o&&d.axisAligned){v=!0;break}if(d.obb||(d.obb=new tl(d.localRect,d.transform)),c||(c=new tl(s,l)),c.intersect(d.obb)){v=!0;break}}}v?(n(u),f&&n(f)):(u.attr("ignore",a.defaultAttr.ignore),f&&f.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}function vI(e){if(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].slice());return t}}function dI(e,t){var r=e.label,n=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:r.style.align,verticalAlign:r.style.verticalAlign,labelLinePoints:vI(n&&n.shape.points)}}var Ng=["align","verticalAlign","width","height","fontSize"],Zt=new _o,_f=xt(),pI=xt();function us(e,t,r){for(var n=0;n<r.length;n++){var i=r[n];t[i]!=null&&(e[i]=t[i])}}var fs=["x","y","rotation"],gI=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(t,r,n,i,a){var o=i.style,s=i.__hostTarget,l=s.textConfig||{},u=i.getComputedTransform(),f=i.getBoundingRect().plain();it.applyTransform(f,f,u),u?Zt.setLocalTransform(u):(Zt.x=Zt.y=Zt.rotation=Zt.originX=Zt.originY=0,Zt.scaleX=Zt.scaleY=1),Zt.rotation=xr(Zt.rotation);var c=i.__hostTarget,v;if(c){v=c.getBoundingRect().plain();var h=c.getComputedTransform();it.applyTransform(v,v,h)}var d=v&&c.getTextGuideLine();this._labelList.push({label:i,labelLine:d,seriesModel:n,dataIndex:t,dataType:r,layoutOption:a,computedLayoutOption:null,rect:f,hostRect:v,priority:v?v.width*v.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:d&&d.ignore,x:Zt.x,y:Zt.y,scaleX:Zt.scaleX,scaleY:Zt.scaleY,rotation:Zt.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:l.position,attachedRot:l.rotation}})},e.prototype.addLabelsOfSeries=function(t){var r=this;this._chartViewList.push(t);var n=t.__model,i=n.get("labelLayout");!(X(i)||mt(i).length)||t.group.traverse(function(a){if(a.ignore)return!0;var o=a.getTextContent(),s=ut(a);o&&!o.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,n,o,i)})},e.prototype.updateLayoutConfig=function(t){var r=t.getWidth(),n=t.getHeight();function i(_,x){return function(){Ig(_,x)}}for(var a=0;a<this._labelList.length;a++){var o=this._labelList[a],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;X(o.layoutOption)?f=o.layoutOption(dI(o,l)):f=o.layoutOption,f=f||{},o.computedLayoutOption=f;var c=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*c:u.attachedRot,offset:[f.dx||0,f.dy||0]});var v=!1;if(f.x!=null?(s.x=K(f.x,r),s.setStyle("x",0),v=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=K(f.y,n),s.setStyle("y",0),v=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var h=l.getTextGuideLine();h&&(h.setShape({points:f.labelLinePoints}),v=!1)}var d=_f(s);d.needsUpdateLabelLine=v,s.rotation=f.rotate!=null?f.rotate*c:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var g=0;g<Ng.length;g++){var p=Ng[g];s.setStyle(p,f[p]!=null?f[p]:u.style[p])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var y=o.seriesModel;if(o.dataIndex!=null){var m=o.seriesModel.getData(o.dataType);y=m.getItemModel(o.dataIndex)}s.on("drag",i(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},e.prototype.layout=function(t){var r=t.getWidth(),n=t.getHeight(),i=gx(this._labelList),a=_t(i,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=_t(i,function(l){return l.layoutOption.moveOverlap==="shiftY"});hI(a,0,r),mx(o,0,n);var s=_t(i,function(l){return l.layoutOption.hideOverlap});_x(s)},e.prototype.processLabelsOverall=function(){var t=this;A(this._chartViewList,function(r){var n=r.__model,i=r.ignoreLabelLineUpdate,a=n.isAnimationEnabled();r.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!i,l=o.getTextContent();!s&&l&&(s=_f(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,n),a&&t._animateLabels(o,n)})})},e.prototype._updateLabelLine=function(t,r){var n=t.getTextContent(),i=ut(t),a=i.dataIndex;if(n&&a!=null){var o=r.getData(i.dataType),s=o.getItemModel(a),l={},u=o.getItemVisual(a,"style");if(u){var f=o.getVisual("drawType");l.stroke=u[f]}var c=s.getModel("labelLine");wv(t,Tv(s),l),Ig(t,c)}},e.prototype._animateLabels=function(t,r){var n=t.getTextContent(),i=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!Oi(t))){var a=_f(n),o=a.oldLayout,s=ut(t),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},f=r.getData(s.dataType);if(o){n.attr(o);var v=t.prevStates;v&&(ct(v,"select")>=0&&n.attr(a.oldLayoutSelect),ct(v,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),Lt(n,u,r,l)}else if(n.attr(u),!ta(n).valueAnimation){var c=nt(n.style.opacity,1);n.style.opacity=0,Bt(n,{style:{opacity:c}},r,l)}if(a.oldLayout=u,n.states.select){var h=a.oldLayoutSelect={};us(h,u,fs),us(h,n.states.select,fs)}if(n.states.emphasis){var d=a.oldLayoutEmphasis={};us(d,u,fs),us(d,n.states.emphasis,fs)}jD(n,l,f,r,r)}if(i&&!i.ignore&&!i.invisible){var a=pI(i),o=a.oldLayout,g={points:i.shape.points};o?(i.attr({shape:o}),Lt(i,{shape:g},r)):(i.setShape(g),i.style.strokePercent=0,Bt(i,{style:{strokePercent:1}},r)),a.oldLayout=g}},e}();const yI=gI;var xf=xt();function mI(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=xf(r).labelManager;i||(i=xf(r).labelManager=new yI),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var i=xf(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}const Lr=Object.freeze(Object.defineProperty({__proto__:null,registerLocale:$h,version:ZE,dependencies:jE,PRIORITY:T1,init:vL,connect:dL,disconnect:I1,disConnect:pL,dispose:gL,getInstanceByDom:fv,getInstanceById:yL,registerTheme:cv,registerPreprocessor:hv,registerProcessor:vv,registerPostInit:O1,registerPostUpdate:N1,registerUpdateLifecycle:eu,registerAction:un,registerCoordinateSystem:R1,getCoordinateSystemDimensions:mL,registerLayout:k1,registerVisual:fn,registerLoading:pv,setCanvasCreator:_L,registerMap:B1,getMap:xL,registerTransform:F1,dataTool:bL,throttle:Jl,use:cr,setPlatformAPI:xm,parseGeoJSON:Eg,parseGeoJson:Eg,env:tt,Model:Et,Axis:vr,innerDrawElementOnCanvas:ov,zrender:gT,matrix:aw,vector:GS,zrUtil:PS,color:Rw,helper:OP,number:zP,time:GP,graphic:$P,format:HP,util:WP,List:gv,ComponentModel:st,ComponentView:Vt,SeriesModel:Oe,ChartView:ce,extendComponentModel:eI,extendComponentView:rI,extendSeriesModel:nI,extendChartView:iI},Symbol.toStringTag,{value:"Module"}));var _I=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r){if(process.env.NODE_ENV!=="production"){var n=r.coordinateSystem;if(n!=="polar"&&n!=="cartesian2d")throw new Error("Line not support coordinateSystem besides cartesian and polar")}return ru(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var n=new Dt,i=jn("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(i),i.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=r.itemHeight*.8,u=jn(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var f=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Oe);const xI=_I;function Cv(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Ui(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(Ui(e,t,r[o]));return a.join(" ")}}function xx(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!V(t))return t+"";for(var n=[],i=0;i<r.length;i++){var a=e.getDimensionIndex(r[i]);a>=0&&n.push(t[a])}return n.join(" ")}var bI=function(e){R(t,e);function t(r,n,i,a){var o=e.call(this)||this;return o.updateData(r,n,i,a),o}return t.prototype._createSymbol=function(r,n,i,a,o){this.removeAll();var s=jn(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=SI,this._symbolType=r,this.add(s)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Ks(this.childAt(0))},t.prototype.downplay=function(){Qs(this.childAt(0))},t.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},t.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},t.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),u=o!==this._symbolType,f=a&&a.disableAnimation;if(u){var c=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,c)}else{var v=this.childAt(0);v.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};f?v.attr(h):Lt(v,h,s,n),Bl(v)}if(this._updateCommon(r,n,l,i,a),u){var v=this.childAt(0);if(!f){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,Bt(v,h,s,n)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,f,c,v,h,d,g,p,y;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,v=a.focus,h=a.blurScope,g=a.labelStatesModels,p=a.hoverScale,y=a.cursorStyle,d=a.emphasisDisabled),!a||r.hasItemOption){var m=a&&a.itemModel?a.itemModel:r.getItemModel(n),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),h=_.get("blurScope"),d=_.get("disabled"),g=Ji(m),p=_.getShallow("scale"),y=m.getShallow("cursor")}var x=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var w=v1(r.getItemVisual(n,"symbolOffset"),i);w&&(s.x=w[0],s.y=w[1]),y&&s.attr("cursor",y);var b=r.getItemVisual(n,"style"),S=b.fill;if(s instanceof sn){var T=s.style;s.useStyle(k({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},b))}else s.__isEmptyBrush?s.useStyle(k({},b)):s.useStyle(b),s.style.decal=null,s.setColor(S,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=r.getItemVisual(n,"liftZ"),M=this._z2;D!=null?M==null&&(this._z2=s.z2,s.z2+=D):M!=null&&(s.z2=M,this._z2=null);var C=o&&o.useNameLabel;Qi(s,g,{labelFetcher:l,labelDataIndex:n,defaultText:E,inheritColor:S,defaultOpacity:b.opacity});function E(I){return C?r.getName(I):Cv(r,I)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var P=p==null||p===!0?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),$i(this,v,h,d)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=ut(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&el(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();el(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return LE(r.getItemVisual(n,"symbolSize"))},t}(Dt);function SI(e,t){this.parent.drift(e,t)}const Dv=bI;function bf(e,t,r,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,"symbol")!=="none"}function Rg(e){return e!=null&&!H(e)&&(e={isIgnore:e}),e||{}}function kg(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:Ji(t),cursorStyle:t.get("cursor")}}var wI=function(){function e(t){this.group=new Dt,this._SymbolCtor=t||Dv}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=Rg(r);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=kg(t),u={disableAnimation:s},f=r.getSymbolPoint||function(c){return t.getItemLayout(c)};a||n.removeAll(),t.diff(a).add(function(c){var v=f(c);if(bf(t,v,c,r)){var h=new o(t,c,l,u);h.setPosition(v),t.setItemGraphicEl(c,h),n.add(h)}}).update(function(c,v){var h=a.getItemGraphicEl(v),d=f(c);if(!bf(t,d,c,r)){n.remove(h);return}var g=t.getItemVisual(c,"symbol")||"circle",p=h&&h.getSymbolType&&h.getSymbolType();if(!h||p&&p!==g)n.remove(h),h=new o(t,c,l,u),h.setPosition(d);else{h.updateData(t,c,l,u);var y={x:d[0],y:d[1]};s?h.attr(y):Lt(h,y,i)}n.add(h),t.setItemGraphicEl(c,h)}).remove(function(c){var v=a.getItemGraphicEl(c);v&&v.fadeOut(function(){n.remove(v)},i)}).execute(),this._getSymbolPoint=f,this._data=t},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=kg(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=Rg(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var o=r.getItemLayout(a);if(bf(r,o,a,n)){var s=new this._SymbolCtor(r,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),r.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(t){Gl(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var r=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(i){i.fadeOut(function(){r.remove(i)},n.hostModel)}):r.removeAll()},e}();const TI=wI;function bx(e,t,r){var n=e.getBaseAxis(),i=e.getOtherAxis(n),a=CI(i,r),o=n.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=z(e.dimensions,function(d){return t.mapDimension(d)}),v=!1,h=t.getCalculationInfo("stackResultDimension");return nn(t,c[0])&&(v=!0,c[0]=h),nn(t,c[1])&&(v=!0,c[1]=h),{dataDimsForPoint:c,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!v,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function CI(e,t){var r=0,n=e.scale.getExtent();return t==="start"?r=n[0]:t==="end"?r=n[1]:vt(t)&&!isNaN(t)?r=t:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function Sx(e,t,r,n){var i=NaN;e.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=r.get(e.baseDim,n),o[1-a]=i,t.dataToPoint(o)}function DI(e,t){var r=[];return t.diff(e).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function AI(e,t,r,n,i,a,o,s){for(var l=DI(e,t),u=[],f=[],c=[],v=[],h=[],d=[],g=[],p=bx(i,t,o),y=e.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_<l.length;_++){var x=l[_],w=!0,b=void 0,S=void 0;switch(x.cmd){case"=":b=x.idx*2,S=x.idx1*2;var T=y[b],D=y[b+1],M=m[S],C=m[S+1];(isNaN(T)||isNaN(D))&&(T=M,D=C),u.push(T,D),f.push(M,C),c.push(r[b],r[b+1]),v.push(n[S],n[S+1]),g.push(t.getRawIndex(x.idx1));break;case"+":var E=x.idx,L=p.dataDimsForPoint,P=i.dataToPoint([t.get(L[0],E),t.get(L[1],E)]);S=E*2,u.push(P[0],P[1]),f.push(m[S],m[S+1]);var I=Sx(p,i,t,E);c.push(I[0],I[1]),v.push(n[S],n[S+1]),g.push(t.getRawIndex(E));break;case"-":w=!1}w&&(h.push(x),d.push(d.length))}d.sort(function(At,yt){return g[At]-g[yt]});for(var O=u.length,F=br(O),N=br(O),B=br(O),G=br(O),W=[],_=0;_<d.length;_++){var Z=d[_],et=_*2,ft=Z*2;F[et]=u[ft],F[et+1]=u[ft+1],N[et]=f[ft],N[et+1]=f[ft+1],B[et]=c[ft],B[et+1]=c[ft+1],G[et]=v[ft],G[et+1]=v[ft+1],W[_]=h[Z]}return{current:F,next:N,stackedOnCurrent:B,stackedOnNext:G,status:W}}var Vr=Math.min,zr=Math.max;function Un(e,t){return isNaN(e)||isNaN(t)}function Nc(e,t,r,n,i,a,o,s,l){for(var u,f,c,v,h,d,g=r,p=0;p<n;p++){var y=t[g*2],m=t[g*2+1];if(g>=i||g<0)break;if(Un(y,m)){if(l){g+=a;continue}break}if(g===r)e[a>0?"moveTo":"lineTo"](y,m),c=y,v=m;else{var _=y-u,x=m-f;if(_*_+x*x<.5){g+=a;continue}if(o>0){for(var w=g+a,b=t[w*2],S=t[w*2+1];b===y&&S===m&&p<n;)p++,w+=a,g+=a,b=t[w*2],S=t[w*2+1],y=t[g*2],m=t[g*2+1],_=y-u,x=m-f;var T=p+1;if(l)for(;Un(b,S)&&T<n;)T++,w+=a,b=t[w*2],S=t[w*2+1];var D=.5,M=0,C=0,E=void 0,L=void 0;if(T>=n||Un(b,S))h=y,d=m;else{M=b-u,C=S-f;var P=y-u,I=b-y,O=m-f,F=S-m,N=void 0,B=void 0;if(s==="x"){N=Math.abs(P),B=Math.abs(I);var G=M>0?1:-1;h=y-G*N*o,d=m,E=y+G*B*o,L=m}else if(s==="y"){N=Math.abs(O),B=Math.abs(F);var W=C>0?1:-1;h=y,d=m-W*N*o,E=y,L=m+W*B*o}else N=Math.sqrt(P*P+O*O),B=Math.sqrt(I*I+F*F),D=B/(B+N),h=y-M*o*(1-D),d=m-C*o*(1-D),E=y+M*o*D,L=m+C*o*D,E=Vr(E,zr(b,y)),L=Vr(L,zr(S,m)),E=zr(E,Vr(b,y)),L=zr(L,Vr(S,m)),M=E-y,C=L-m,h=y-M*N/B,d=m-C*N/B,h=Vr(h,zr(u,y)),d=Vr(d,zr(f,m)),h=zr(h,Vr(u,y)),d=zr(d,Vr(f,m)),M=y-h,C=m-d,E=y+M*B/N,L=m+C*B/N}e.bezierCurveTo(c,v,h,d,y,m),c=E,v=L}else e.lineTo(y,m)}u=y,f=m,g+=a}return p}var Tx=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),MI=function(e){R(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Tx},t.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&Un(i[o*2-2],i[o*2-1]);o--);for(;a<o&&Un(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=Nc(r,i,a,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},t.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=Mr.CMD,s,l,u=n==="x",f=[],c=0;c<a.length;){var v=a[c++],h=void 0,d=void 0,g=void 0,p=void 0,y=void 0,m=void 0,_=void 0;switch(v){case o.M:s=a[c++],l=a[c++];break;case o.L:if(h=a[c++],d=a[c++],_=u?(r-s)/(h-s):(r-l)/(d-l),_<=1&&_>=0){var x=u?(d-l)*_+l:(h-s)*_+s;return u?[r,x]:[x,r]}s=h,l=d;break;case o.C:h=a[c++],d=a[c++],g=a[c++],p=a[c++],y=a[c++],m=a[c++];var w=u?Ws(s,h,g,y,r,f):Ws(l,d,p,m,r,f);if(w>0)for(var b=0;b<w;b++){var S=f[b];if(S<=1&&S>=0){var x=u?Nt(l,d,p,m,S):Nt(s,h,g,y,S);return u?[r,x]:[x,r]}}s=y,l=m;break}}},t}(ot),EI=function(e){R(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Tx),LI=function(e){R(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new EI},t.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Un(i[s*2-2],i[s*2-1]);s--);for(;o<s&&Un(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=Nc(r,i,o,s,s,1,n.smooth,l,n.connectNulls);Nc(r,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},t}(ot);function Cx(e,t,r,n,i){var a=e.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=r.get(["lineStyle","width"])||2;o-=f/2,s-=f/2,l+=f,u+=f,o=Math.floor(o),l=Math.round(l);var c=new wt({shape:{x:o,y:s,width:l,height:u}});if(t){var v=e.getBaseAxis(),h=v.isHorizontal(),d=v.inverse;h?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var g=X(i)?function(p){i(p,c)}:null;Bt(c,{shape:{width:l,height:u,x:o,y:s}},r,null,n,g)}return c}function Dx(e,t,r){var n=e.getArea(),i=Ct(n.r0,1),a=Ct(n.r,1),o=new Ie({shape:{cx:Ct(e.cx,1),cy:Ct(e.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,Bt(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function PI(e,t,r,n,i){if(e){if(e.type==="polar")return Dx(e,t,r);if(e.type==="cartesian2d")return Cx(e,t,r,n,i)}else return null;return null}function Av(e,t){return e.type===t}function Bg(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function Fg(e){for(var t=1/0,r=1/0,n=-1/0,i=-1/0,a=0;a<e.length;){var o=e[a++],s=e[a++];isNaN(o)||(t=Math.min(o,t),n=Math.max(o,n)),isNaN(s)||(r=Math.min(s,r),i=Math.max(s,i))}return[[t,r],[n,i]]}function Vg(e,t){var r=Fg(e),n=r[0],i=r[1],a=Fg(t),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function zg(e){return vt(e)?e:e?.5:0}function II(e,t,r){if(!r.valueDim)return[];for(var n=t.count(),i=br(n*2),a=0;a<n;a++){var o=Sx(r,e,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function Gr(e,t,r,n){var i=t.getBaseAxis(),a=i.dim==="x"||i.dim==="radius"?0:1,o=[],s=0,l=[],u=[],f=[],c=[];if(n){for(s=0;s<e.length;s+=2)!isNaN(e[s])&&!isNaN(e[s+1])&&c.push(e[s],e[s+1]);e=c}for(s=0;s<e.length-2;s+=2)switch(f[0]=e[s+2],f[1]=e[s+3],u[0]=e[s],u[1]=e[s+1],o.push(u[0],u[1]),r){case"end":l[a]=f[a],l[1-a]=u[1-a],o.push(l[0],l[1]);break;case"middle":var v=(u[a]+f[a])/2,h=[];l[a]=h[a]=v,l[1-a]=u[1-a],h[1-a]=f[1-a],o.push(l[0],l[1]),o.push(h[0],h[1]);break;default:l[a]=u[a],l[1-a]=f[1-a],o.push(l[0],l[1])}return o.push(e[s++],e[s++]),o}function OI(e,t){var r=[],n=e.length,i,a;function o(f,c,v){var h=f.coord,d=(v-h)/(c.coord-h),g=gh(d,[f.color,c.color]);return{coord:v,color:g}}for(var s=0;s<n;s++){var l=e[s],u=l.coord;if(u<0)i=l;else if(u>t){a?r.push(o(a,l,t)):i&&r.push(o(i,l,0),o(i,l,t));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function NI(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())){if(t.type!=="cartesian2d"){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style is only supported on cartesian2d.");return}for(var i,a,o=n.length-1;o>=0;o--){var s=e.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(!a){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style only support x or y dimension.");return}var l=t.getAxis(i),u=z(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var v=OI(u,i==="x"?r.getWidth():r.getHeight()),h=v.length;if(!h&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,g=v[0].coord-d,p=v[h-1].coord+d,y=p-g;if(y<.001)return"transparent";A(v,function(_){_.offset=(_.coord-g)/y}),v.push({offset:h?v[h-1].offset:.5,color:c[1]||"transparent"}),v.unshift({offset:h?v[0].offset:.5,color:c[0]||"transparent"});var m=new Oh(0,0,0,0,v,!0);return m[i]=g,m[i+"2"]=p,m}}function RI(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(!!a&&!(i&&kI(a,t))){var o=t.mapDimension(a.dim),s={};return A(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function kI(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(Dv.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>n)return!1;return!0}function BI(e,t){return isNaN(e)||isNaN(t)}function FI(e){for(var t=e.length/2;t>0&&BI(e[t*2-2],e[t*2-1]);t--);return t-1}function Gg(e,t){return[e[t*2],e[t*2+1]]}function VI(e,t,r){for(var n=e.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u<n;u++)if(o=e[u*2+i],!(isNaN(o)||isNaN(e[u*2+1-i]))){if(u===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function Ax(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<Pe.length;t++)if(e.get([Pe[t],"endLabel","show"]))return!0;return!1}function Sf(e,t,r,n){if(Av(t,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=Ax(n)?function(h,d){e._endLabelOnDuring(h,d,o,s,a,i,t)}:null,u=t.getBaseAxis().isHorizontal(),f=Cx(t,r,n,function(){var h=e._endLabel;h&&r&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var c=f.shape,v=Math.max(c.width,c.height);u?(c.y-=v,c.height+=v*2):(c.x-=v,c.width+=v*2)}return l&&l(1,f),f}else return process.env.NODE_ENV!=="production"&&n.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),Dx(t,r,n)}function zI(e,t){var r=t.getBaseAxis(),n=r.isHorizontal(),i=r.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||a,verticalAlign:e.get("verticalAlign")||o}}}var GI=function(e){R(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var r=new Dt,n=new TI;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r},t.prototype.render=function(r,n,i){var a=this,o=r.coordinateSystem,s=this.group,l=r.getData(),u=r.getModel("lineStyle"),f=r.getModel("areaStyle"),c=l.getLayout("points")||[],v=o.type==="polar",h=this._coordSys,d=this._symbolDraw,g=this._polyline,p=this._polygon,y=this._lineGroup,m=!n.ssr&&r.isAnimationEnabled(),_=!f.isEmpty(),x=f.get("origin"),w=bx(o,l,x),b=_&&II(o,l,w),S=r.get("showSymbol"),T=r.get("connectNulls"),D=S&&!v&&RI(r,l,o),M=this._data;M&&M.eachItemGraphicEl(function(yt,zt){yt.__temp&&(s.remove(yt),M.setItemGraphicEl(zt,null))}),S||d.remove(),s.add(y);var C=v?!1:r.get("step"),E;o&&o.getArea&&r.get("clip",!0)&&(E=o.getArea(),E.width!=null?(E.x-=.1,E.y-=.1,E.width+=.2,E.height+=.2):E.r0&&(E.r0-=.5,E.r+=.5)),this._clipShapeForSymbol=E;var L=NI(l,o,i)||l.getVisual("style")[l.getVisual("drawType")];if(!(g&&h.type===o.type&&C===this._step))S&&d.updateData(l,{isIgnore:D,clipShape:E,disableAnimation:!0,getSymbolPoint:function(yt){return[c[yt*2],c[yt*2+1]]}}),m&&this._initSymbolLabelAnimation(l,o,E),C&&(c=Gr(c,o,C,T),b&&(b=Gr(b,o,C,T))),g=this._newPolyline(c),_?p=this._newPolygon(c,b):p&&(y.remove(p),p=this._polygon=null),v||this._initOrUpdateEndLabel(r,o,Zn(L)),y.setClipPath(Sf(this,o,!0,r));else{_&&!p?p=this._newPolygon(c,b):p&&!_&&(y.remove(p),p=this._polygon=null),v||this._initOrUpdateEndLabel(r,o,Zn(L));var P=y.getClipPath();if(P){var I=Sf(this,o,!1,r);Bt(P,{shape:I.shape},r)}else y.setClipPath(Sf(this,o,!0,r));S&&d.updateData(l,{isIgnore:D,clipShape:E,disableAnimation:!0,getSymbolPoint:function(yt){return[c[yt*2],c[yt*2+1]]}}),(!Bg(this._stackedOnPoints,b)||!Bg(this._points,c))&&(m?this._doUpdateAnimation(l,b,o,i,C,x,T):(C&&(c=Gr(c,o,C,T),b&&(b=Gr(b,o,C,T))),g.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:b})))}var O=r.getModel("emphasis"),F=O.get("focus"),N=O.get("blurScope"),B=O.get("disabled");if(g.useStyle(Y(u.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),to(g,r,"lineStyle"),g.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var G=g.getState("emphasis").style;G.lineWidth=+g.style.lineWidth+1}ut(g).seriesIndex=r.seriesIndex,$i(g,F,N,B);var W=zg(r.get("smooth")),Z=r.get("smoothMonotone");if(g.setShape({smooth:W,smoothMonotone:Z,connectNulls:T}),p){var et=l.getCalculationInfo("stackedOnSeries"),ft=0;p.useStyle(Y(f.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),et&&(ft=zg(et.get("smooth"))),p.setShape({smooth:W,stackedOnSmooth:ft,smoothMonotone:Z,connectNulls:T}),to(p,r,"areaStyle"),ut(p).seriesIndex=r.seriesIndex,$i(p,F,N,B)}var At=function(yt){a._changePolyState(yt)};l.eachItemGraphicEl(function(yt){yt&&(yt.onHoverStateChange=At)}),this._polyline.onHoverStateChange=At,this._data=l,this._coordSys=o,this._stackedOnPoints=b,this._points=c,this._step=C,this._valueOrigin=x,r.get("triggerLineEvent")&&(this.packEventData(r,g),p&&this.packEventData(r,p))},t.prototype.packEventData=function(r,n){ut(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=qn(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(isNaN(f)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var v=r.get("zlevel")||0,h=r.get("z")||0;u=new Dv(o,s),u.x=f,u.y=c,u.setZ(v,h);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=v,d.z=h,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else ce.prototype.highlight.call(this,r,n,i,a)},t.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=qn(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else ce.prototype.downplay.call(this,r,n,i,a)},t.prototype._changePolyState=function(r){var n=this._polygon;Wd(this._polyline,r),n&&Wd(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new MI({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new LI({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,f=u.get("animationDuration");X(f)&&(f=f(null));var c=u.get("animationDelay")||0,v=X(c)?c(null):c;r.eachItemGraphicEl(function(h,d){var g=h;if(g){var p=[h.x,h.y],y=void 0,m=void 0,_=void 0;if(i)if(o){var x=i,w=n.pointToCoord(p);a?(y=x.startAngle,m=x.endAngle,_=-w[1]/180*Math.PI):(y=x.r0,m=x.r,_=w[0])}else{var b=i;a?(y=b.x,m=b.x+b.width,_=h.x):(y=b.y+b.height,m=b.y,_=h.y)}var S=m===y?0:(_-y)/(m-y);l&&(S=1-S);var T=X(c)?c(d):f*S+v,D=g.getSymbolPath(),M=D.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:T}),D.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(Ax(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Ot({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=FI(l);f>=0&&(Qi(s,Ji(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:f,defaultText:function(c,v,h){return h!=null?xx(o,h):Cv(o,c)},enableTextSetter:!0},zI(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var c=i.getLayout("points"),v=i.hostModel,h=v.get("connectNulls"),d=s.get("precision"),g=s.get("distance")||0,p=l.getBaseAxis(),y=p.isHorizontal(),m=p.inverse,_=n.shape,x=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,w=(y?g:0)*(m?-1:1),b=(y?0:-g)*(m?-1:1),S=y?"x":"y",T=VI(c,x,S),D=T.range,M=D[1]-D[0],C=void 0;if(M>=1){if(M>1&&!h){var E=Gg(c,D[0]);u.attr({x:E[0]+w,y:E[1]+b}),o&&(C=v.getRawValue(D[0]))}else{var E=f.getPointOn(x,S);E&&u.attr({x:E[0]+w,y:E[1]+b});var L=v.getRawValue(D[0]),P=v.getRawValue(D[1]);o&&(C=p0(i,d,L,P,T.t))}a.lastFrameIndex=D[0]}else{var I=r===1||a.lastFrameIndex>0?D[0]:0,E=Gg(c,I);o&&(C=v.getRawValue(I)),u.attr({x:E[0]+w,y:E[1]+b})}if(o){var O=ta(u);typeof O.setLabelText=="function"&&O.setLabelText(C)}}},t.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,c=r.hostModel,v=AI(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),h=v.current,d=v.stackedOnCurrent,g=v.next,p=v.stackedOnNext;if(o&&(h=Gr(v.current,i,o,l),d=Gr(v.stackedOnCurrent,i,o,l),g=Gr(v.next,i,o,l),p=Gr(v.stackedOnNext,i,o,l)),Vg(h,g)>3e3||f&&Vg(d,p)>3e3){u.stopAnimation(),u.setShape({points:g}),f&&(f.stopAnimation(),f.setShape({points:g,stackedOnPoints:p}));return}u.shape.__points=v.current,u.shape.points=h;var y={shape:{points:g}};v.current!==h&&(y.shape.__points=v.next),u.stopAnimation(),Lt(u,y,c),f&&(f.setShape({points:h,stackedOnPoints:d}),f.stopAnimation(),Lt(f,{shape:{stackedOnPoints:p}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=v.status,x=0;x<_.length;x++){var w=_[x].cmd;if(w==="="){var b=r.getItemGraphicEl(_[x].idx1);b&&m.push({el:b,ptIdx:x})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var S=u.shape.__points,T=0;T<m.length;T++){var D=m[T].el,M=m[T].ptIdx*2;D.x=S[M],D.y=S[M+1],D.markRedraw()}})},t.prototype.remove=function(r){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(ce);const $I=GI;function HI(e,t){return{seriesType:e,plan:nv(),reset:function(r){var n=r.getData(),i=r.coordinateSystem,a=r.pipelineContext,o=t||a.large;if(!!i){var s=z(i.dimensions,function(h){return n.mapDimension(h)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");nn(n,s[0])&&(s[0]=u),nn(n,s[1])&&(s[1]=u);var f=n.getStore(),c=n.getDimensionIndex(s[0]),v=n.getDimensionIndex(s[1]);return l&&{progress:function(h,d){for(var g=h.end-h.start,p=o&&br(g*l),y=[],m=[],_=h.start,x=0;_<h.end;_++){var w=void 0;if(l===1){var b=f.get(c,_);w=i.dataToPoint(b,null,m)}else y[0]=f.get(c,_),y[1]=f.get(v,_),w=i.dataToPoint(y,null,m);o?(p[x++]=w[0],p[x++]=w[1]):d.setItemLayout(_,w.slice())}o&&d.setLayout("points",p)}}}}}}var WI={average:function(e){for(var t=0,r=0,n=0;n<e.length;n++)isNaN(e[n])||(t+=e[n],r++);return r===0?NaN:t/r},sum:function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r]||0;return t},max:function(e){for(var t=-1/0,r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r<e.length;r++)e[r]<t&&(t=e[r]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},UI=function(e){return Math.round(e.length/2)};function Mx(e){return{seriesType:e,reset:function(t,r,n){var i=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=n.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(c||1),h=Math.round(s/v);if(isFinite(h)&&h>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/h));var d=void 0;$(a)?d=WI[a]:X(a)&&(d=a),d&&t.setData(i.downSample(i.mapDimension(u.dim),1/h,d,UI))}}}}}function YI(e){e.registerChartView($I),e.registerSeriesModel(xI),e.registerLayout(HI("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Mx("line"))}var Ex=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return ru(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(i)A(a.getAxes(),function(v,h){if(v.type==="category"&&n!=null){var d=v.getTicksCoords(),g=o[h],p=n[h]==="x1"||n[h]==="y1";if(p&&(g+=1),d.length<2)return;if(d.length===2){s[h]=v.toGlobalCoord(v.getExtent()[p?1:0]);return}for(var y=void 0,m=void 0,_=1,x=0;x<d.length;x++){var w=d[x].coord,b=x===d.length-1?d[x-1].tickValue+_:d[x].tickValue;if(b===g){m=w;break}else if(b<g)y=w;else if(y!=null&&b>g){m=(w+y)/2;break}x===1&&(_=b-d[0].tickValue)}m==null&&(y?y&&(m=d[d.length-1].coord):m=d[0].coord),s[h]=v.toGlobalCoord(m)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=a.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(Oe);Oe.registerClass(Ex);const $g=Ex;var XI=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return ru(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},t.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=m_($g.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}),t}($g);const qI=XI;var ZI=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),jI=function(e){R(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new ZI},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,c=n.endAngle,v=n.clockwise,h=Math.PI*2,d=v?c-f<h:f-c<h;d||(f=c-(v?h:-h));var g=Math.cos(f),p=Math.sin(f),y=Math.cos(c),m=Math.sin(c);d?(r.moveTo(g*o+i,p*o+a),r.arc(g*u+i,p*u+a,l,-Math.PI+f,f,!v)):r.moveTo(g*s+i,p*s+a),r.arc(i,a,s,f,c,!v),r.arc(y*u+i,m*u+a,l,c-Math.PI*2,c-Math.PI,!v),o!==0&&r.arc(i,a,o,c,f,v)},t}(ot);const Hg=jI;function KI(e,t){t=t||{};var r=t.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return Xs(n,i,a);var s=e(o),l=i.distance!=null?i.distance:5,u=this.shape,f=u.cx,c=u.cy,v=u.r,h=u.r0,d=(v+h)/2,g=u.startAngle,p=u.endAngle,y=(g+p)/2,m=r?Math.abs(v-h)/2:0,_=Math.cos,x=Math.sin,w=f+v*_(g),b=c+v*x(g),S="left",T="top";switch(s){case"startArc":w=f+(h-l)*_(y),b=c+(h-l)*x(y),S="center",T="top";break;case"insideStartArc":w=f+(h+l)*_(y),b=c+(h+l)*x(y),S="center",T="bottom";break;case"startAngle":w=f+d*_(g)+cs(g,l+m,!1),b=c+d*x(g)+hs(g,l+m,!1),S="right",T="middle";break;case"insideStartAngle":w=f+d*_(g)+cs(g,-l+m,!1),b=c+d*x(g)+hs(g,-l+m,!1),S="left",T="middle";break;case"middle":w=f+d*_(y),b=c+d*x(y),S="center",T="middle";break;case"endArc":w=f+(v+l)*_(y),b=c+(v+l)*x(y),S="center",T="bottom";break;case"insideEndArc":w=f+(v-l)*_(y),b=c+(v-l)*x(y),S="center",T="top";break;case"endAngle":w=f+d*_(p)+cs(p,l+m,!0),b=c+d*x(p)+hs(p,l+m,!0),S="left",T="middle";break;case"insideEndAngle":w=f+d*_(p)+cs(p,-l+m,!0),b=c+d*x(p)+hs(p,-l+m,!0),S="right",T="middle";break;default:return Xs(n,i,a)}return n=n||{},n.x=w,n.y=b,n.align=S,n.verticalAlign=T,n}}function QI(e,t,r,n){if(vt(n)){e.setTextConfig({rotation:n});return}else if(V(t)){e.setTextConfig({rotation:0});return}var i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,l,u=r(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:e.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),e.setTextConfig({rotation:f})}function cs(e,t,r){return t*Math.sin(e)*(r?-1:1)}function hs(e,t,r){return t*Math.cos(e)*(r?1:-1)}function ka(e,t,r){var n=e.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;V(n)||(n=[n,n,n,n]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:z(n,function(a){return en(a,i)})}}var wf=Math.max,Tf=Math.min;function JI(e,t){var r=e.getArea&&e.getArea();if(Av(e,"cartesian2d")){var n=e.getBaseAxis();if(n.type!=="category"||!n.onBand){var i=t.getLayout("bandWidth");n.isHorizontal()?(r.x-=i,r.width+=i*2):(r.y-=i,r.height+=i*2)}}return r}var t2=function(e){R(t,e);function t(){var r=e.call(this)||this;return r.type=t.type,r._isFirstFrame=!0,r}return t.prototype.render=function(r,n,i,a){this._model=r,this._removeOnRenderedListener(i),this._updateDrawMode(r);var o=r.get("coordinateSystem");o==="cartesian2d"||o==="polar"?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,i):this._renderNormal(r,n,i,a)):process.env.NODE_ENV!=="production"&&kt("Only cartesian2d and polar supported for bar.")},t.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},t.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},t.prototype.eachRendered=function(r){Gl(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r,n,i,a){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var v=r.isAnimationEnabled()?r:null,h=e2(r,u);h&&this._enableRealtimeSort(h,s,i);var d=r.get("clip",!0)||h,g=JI(u,s);o.removeClipPath();var p=r.get("roundCap",!0),y=r.get("showBackground",!0),m=r.getModel("backgroundStyle"),_=m.get("borderRadius")||0,x=[],w=this._backgroundEls,b=a&&a.isInitSort,S=a&&a.type==="changeAxisOrder";function T(C){var E=vs[u.type](s,C),L=l2(u,c,E);return L.useStyle(m.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),x[C]=L,L}s.diff(l).add(function(C){var E=s.getItemModel(C),L=vs[u.type](s,C,E);if(y&&T(C),!(!s.hasValue(C)||!qg[u.type](L))){var P=!1;d&&(P=Wg[u.type](g,L));var I=Ug[u.type](r,s,C,L,c,v,f.model,!1,p);h&&(I.forceLabelAnimation=!0),Zg(I,s,C,E,L,r,c,u.type==="polar"),b?I.attr({shape:L}):h?Yg(h,v,I,L,C,c,!1,!1):Bt(I,{shape:L},r,C),s.setItemGraphicEl(C,I),o.add(I),I.ignore=P}}).update(function(C,E){var L=s.getItemModel(C),P=vs[u.type](s,C,L);if(y){var I=void 0;w.length===0?I=T(E):(I=w[E],I.useStyle(m.getItemStyle()),u.type==="cartesian2d"?I.setShape("r",_):I.setShape("cornerRadius",_),x[C]=I);var O=vs[u.type](s,C),F=Px(c,O,u);Lt(I,{shape:F},v,C)}var N=l.getItemGraphicEl(E);if(!s.hasValue(C)||!qg[u.type](P)){o.remove(N);return}var B=!1;if(d&&(B=Wg[u.type](g,P),B&&o.remove(N)),N?Bl(N):N=Ug[u.type](r,s,C,P,c,v,f.model,!!N,p),h&&(N.forceLabelAnimation=!0),S){var G=N.getTextContent();if(G){var W=ta(G);W.prevValue!=null&&(W.prevValue=W.value)}}else Zg(N,s,C,L,P,r,c,u.type==="polar");b?N.attr({shape:P}):h?Yg(h,v,N,P,C,c,!0,S):Lt(N,{shape:P},r,C,null),s.setItemGraphicEl(C,N),N.ignore=B,o.add(N)}).remove(function(C){var E=l.getItemGraphicEl(C);E&&eo(E,r,C)}).execute();var D=this._backgroundGroup||(this._backgroundGroup=new Dt);D.removeAll();for(var M=0;M<x.length;++M)D.add(x[M]);o.add(D),this._backgroundEls=x,this._data=s},t.prototype._renderLarge=function(r,n,i){this._clear(),Kg(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),Kg(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&PI(r.coordinateSystem,!1,r),i=this.group;n?i.setClipPath(n):i.removeClipPath()},t.prototype._enableRealtimeSort=function(r,n,i){var a=this;if(!!n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,i),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(r,n,i){var a=[];return r.each(r.mapDimension(n.dim),function(o,s){var l=i(s);l=l==null?NaN:l,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:z(a,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(r,n,i){for(var a=i.scale,o=r.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=r.rawIndexOf(o,a.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:n(r.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,i,a){if(!!this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){eo(a,r,ut(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(ce),Wg={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=wf(t.x,e.x),s=Tf(t.x+t.width,i),l=wf(t.y,e.y),u=Tf(t.y+t.height,a),f=s<o,c=u<l;return t.x=f&&o>i?s:o,t.y=c&&l>a?u:l,t.width=f?0:s-o,t.height=c?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||c},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var i=Tf(t.r,e.r),a=wf(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},Ug={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new wt({shape:k({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var f=u.shape,c=i?"height":"width";f[c]=0}return u},polar:function(e,t,r,n,i,a,o,s,l){var u=!i&&l?Hg:Ie,f=new u({shape:n,z2:1});f.name="item";var c=Lx(i);if(f.calculateTextPosition=KI(c,{isRoundCap:u===Hg}),a){var v=f.shape,h=i?"r":"endAngle",d={};v[h]=i?n.r0:n.startAngle,d[h]=n[h],(s?Lt:Bt)(f,{shape:d},a)}return f}};function e2(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(process.env.NODE_ENV!=="production"&&r&&(n.type!=="category"&&kt("`realtimeSort` will not work because this bar series is not based on a category axis."),t.type!=="cartesian2d"&&kt("`realtimeSort` will not work because this bar series is not on cartesian2d.")),r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function Yg(e,t,r,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Lt:Bt)(r,{shape:l},t,i,null);var f=t?e.baseAxis.model:null;(o?Lt:Bt)(r,{shape:u},f,i)}function Xg(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var r2=["x","y","width","height"],n2=["cx","cy","r","startAngle","endAngle"],qg={cartesian2d:function(e){return!Xg(e,r2)},polar:function(e){return!Xg(e,n2)}},vs={cartesian2d:function(e,t,r){var n=e.getItemLayout(t),i=r?a2(r,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function i2(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function Lx(e){return function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(e)}function Zg(e,t,r,n,i,a,o,s){var l=t.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var f=e.shape,c=ka(n.getModel("itemStyle"),f,!0);k(f,c),e.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var v=n.getShallow("cursor");v&&e.attr("cursor",v);var h=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",d=Ji(n);Qi(e,d,{labelFetcher:a,labelDataIndex:r,defaultText:Cv(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var g=e.getTextContent();if(s&&g){var p=n.get(["label","position"]);e.textConfig.inside=p==="middle"?!0:null,QI(e,p==="outside"?h:p,Lx(o),n.get(["label","rotate"]))}ZD(g,d,a.getRawValue(r),function(m){return xx(t,m)});var y=n.getModel(["emphasis"]);$i(e,y.get("focus"),y.get("blurScope"),y.get("disabled")),to(e,n),i2(i)&&(e.style.fill="none",e.style.stroke="none",A(e.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function a2(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var o2=function(){function e(){}return e}(),jg=function(e){R(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new o2},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<i.length;f+=3)l[a]=u,l[o]=i[f+2],s[a]=i[f+a],s[o]=i[f+o],r.rect(s[0],s[1],l[0],l[1])},t}(ot);function Kg(e,t,r,n){var i=e.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=e.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var f=new jg({shape:{points:u},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),t.add(f),r&&r.push(f)}var c=new jg({shape:{points:i.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,t.add(c),c.useStyle(i.getVisual("style")),ut(c).seriesIndex=e.seriesIndex,e.get("silent")||(c.on("mousedown",Qg),c.on("mousemove",Qg)),r&&r.push(c)}var Qg=Jl(function(e){var t=this,r=s2(t,e.offsetX,e.offsetY);ut(t).dataIndex=r>=0?r:null},30,!1);function s2(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,f=0,c=a.length/3;f<c;f++){var v=f*3;if(l[n]=u,l[i]=a[v+2],s[n]=a[v+n],s[i]=a[v+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),t>=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[f]}return-1}function Px(e,t,r){if(Av(r,"cartesian2d")){var n=t,i=r.getArea();return{x:e?n.x:i.x,y:e?i.y:n.y,width:e?n.width:i.width,height:e?i.height:n.height}}else{var i=r.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function l2(e,t,r){var n=e.type==="polar"?Ie:wt;return new n({shape:Px(t,r,e),silent:!0,z2:0})}const u2=t2;function f2(e){e.registerChartView(u2),e.registerSeriesModel(qI),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,dt(iP,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,aP("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Mx("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var ds=Math.PI*2,Jg=Math.PI/180;function Ix(e,t){return Er(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Ox(e,t){var r=Ix(e,t),n=e.get("center"),i=e.get("radius");V(i)||(i=[0,i]);var a=K(r.width,t.getWidth()),o=K(r.height,t.getHeight()),s=Math.min(a,o),l=K(i[0],s/2),u=K(i[1],s/2),f,c,v=e.coordinateSystem;if(v){var h=v.dataToPoint(n);f=h[0]||0,c=h[1]||0}else V(n)||(n=[n,n]),f=K(n[0],a)+r.x,c=K(n[1],o)+r.y;return{cx:f,cy:c,r0:l,r:u}}function c2(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=Ix(n,r),s=Ox(n,r),l=s.cx,u=s.cy,f=s.r,c=s.r0,v=-n.get("startAngle")*Jg,h=n.get("minAngle")*Jg,d=0;i.each(a,function(M){!isNaN(M)&&d++});var g=i.getSum(a),p=Math.PI/(g||d)*2,y=n.get("clockwise"),m=n.get("roseType"),_=n.get("stillShowZeroSum"),x=i.getDataExtent(a);x[0]=0;var w=ds,b=0,S=v,T=y?1:-1;if(i.setLayout({viewRect:o,r:f}),i.each(a,function(M,C){var E;if(isNaN(M)){i.setItemLayout(C,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:c,r:m?NaN:f});return}m!=="area"?E=g===0&&_?p:M*p:E=ds/d,E<h?(E=h,w-=h):b+=M;var L=S+T*E;i.setItemLayout(C,{angle:E,startAngle:S,endAngle:L,clockwise:y,cx:l,cy:u,r0:c,r:m?Vi(M,x,[c,f]):f}),S=L}),w<ds&&d)if(w<=.001){var D=ds/d;i.each(a,function(M,C){if(!isNaN(M)){var E=i.getItemLayout(C);E.angle=D,E.startAngle=v+T*C*D,E.endAngle=v+T*(C+1)*D}})}else p=w/b,S=v,i.each(a,function(M,C){if(!isNaN(M)){var E=i.getItemLayout(C),L=E.angle===h?h:M*p;E.startAngle=S,E.endAngle=S+T*L,S+=T*L}})})}function Nx(e){return{seriesType:e,reset:function(t,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=t.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var h2=Math.PI/180;function ty(e,t,r,n,i,a,o,s,l,u){if(e.length<2)return;function f(g){for(var p=g.rB,y=p*p,m=0;m<g.list.length;m++){var _=g.list[m],x=Math.abs(_.label.y-r),w=n+_.len,b=w*w,S=Math.sqrt((1-Math.abs(x*x/y))*b),T=t+(S+_.len2)*i,D=T-_.label.x,M=_.targetTextWidth-D*i;Rx(_,M,!0),_.label.x=T}}function c(g){for(var p={list:[],maxY:0},y={list:[],maxY:0},m=0;m<g.length;m++)if(g[m].labelAlignTo==="none"){var _=g[m],x=_.label.y>r?y:p,w=Math.abs(_.label.y-r);if(w>=x.maxY){var b=_.label.x-t-_.len2*i,S=n+_.len,T=Math.abs(b)<S?Math.sqrt(w*w/(1-b*b/S/S)):S;x.rB=T,x.maxY=w}x.list.push(_)}f(p),f(y)}for(var v=e.length,h=0;h<v;h++)if(e[h].position==="outer"&&e[h].labelAlignTo==="labelLine"){var d=e[h].label.x-u;e[h].linePoints[1][0]+=d,e[h].label.x=u}mx(e,l,l+o)&&c(e)}function v2(e,t,r,n,i,a,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,v=0;v<e.length;v++){var h=e[v].label;Cf(e[v])||(h.x<t?(f=Math.min(f,h.x),l.push(e[v])):(c=Math.max(c,h.x),u.push(e[v])))}for(var v=0;v<e.length;v++){var d=e[v];if(!Cf(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var h=d.label,g=d.linePoints,p=void 0;d.labelAlignTo==="edge"?h.x<t?p=g[2][0]-d.labelDistance-o-d.edgeDistance:p=o+i-d.edgeDistance-g[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?h.x<t?p=f-o-d.bleedMargin:p=o+i-c-d.bleedMargin:h.x<t?p=h.x-o-d.bleedMargin:p=o+i-h.x-d.bleedMargin,d.targetTextWidth=p,Rx(d,p)}}ty(u,t,r,n,1,i,a,o,s,c),ty(l,t,r,n,-1,i,a,o,s,f);for(var v=0;v<e.length;v++){var d=e[v];if(!Cf(d)&&d.linePoints){var h=d.label,g=d.linePoints,y=d.labelAlignTo==="edge",m=h.style.padding,_=m?m[1]+m[3]:0,x=h.style.backgroundColor?0:_,w=d.rect.width+x,b=g[1][0]-g[2][0];y?h.x<t?g[2][0]=o+d.edgeDistance+w+d.labelDistance:g[2][0]=o+i-d.edgeDistance-w-d.labelDistance:(h.x<t?g[2][0]=h.x+d.labelDistance:g[2][0]=h.x-d.labelDistance,g[1][0]=g[2][0]+b),g[1][1]=g[2][1]=h.y}}}function Rx(e,t,r){if(r===void 0&&(r=!1),e.labelStyleWidth==null){var n=e.label,i=n.style,a=e.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,f=a.width+(o?0:l);if(t<f||r){var c=a.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var v=n.getBoundingRect();n.setStyle("width",Math.ceil(v.width)),n.setStyle("backgroundColor",o)}else{var h=t-l,d=t<f?h:r?h>e.unconstrainedWidth?null:h:null;n.setStyle("width",d)}var g=n.getBoundingRect();a.width=g.width;var p=(n.style.margin||0)+2.1;a.height=g.height+p,a.y-=(a.height-c)/2}}}function Cf(e){return e.position==="center"}function d2(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*h2,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,c=s.y,v=s.height;function h(b){b.ignore=!0}function d(b){if(!b.ignore)return!0;for(var S in b.states)if(b.states[S].ignore===!1)return!0;return!1}t.each(function(b){var S=t.getItemGraphicEl(b),T=S.shape,D=S.getTextContent(),M=S.getTextGuideLine(),C=t.getItemModel(b),E=C.getModel("label"),L=E.get("position")||C.get(["emphasis","label","position"]),P=E.get("distanceToLabelLine"),I=E.get("alignTo"),O=K(E.get("edgeDistance"),u),F=E.get("bleedMargin"),N=C.getModel("labelLine"),B=N.get("length");B=K(B,u);var G=N.get("length2");if(G=K(G,u),Math.abs(T.endAngle-T.startAngle)<o){A(D.states,h),D.ignore=!0,M&&(A(M.states,h),M.ignore=!0);return}if(!!d(D)){var W=(T.startAngle+T.endAngle)/2,Z=Math.cos(W),et=Math.sin(W),ft,At,yt,zt;n=T.cx,i=T.cy;var Gt=L==="inside"||L==="inner";if(L==="center")ft=T.cx,At=T.cy,zt="center";else{var Pt=(Gt?(T.r+T.r0)/2*Z:T.r*Z)+n,bt=(Gt?(T.r+T.r0)/2*et:T.r*et)+i;if(ft=Pt+Z*3,At=bt+et*3,!Gt){var q=Pt+Z*(B+l-T.r),at=bt+et*(B+l-T.r),Ze=q+(Z<0?-1:1)*G,Rt=at;I==="edge"?ft=Z<0?f+O:f+u-O:ft=Ze+(Z<0?-P:P),At=Rt,yt=[[Pt,bt],[q,at],[Ze,Rt]]}zt=Gt?"center":I==="edge"?Z>0?"right":"left":Z>0?"left":"right"}var Or=Math.PI,dr=0,na=E.get("rotate");if(vt(na))dr=na*(Or/180);else if(L==="center")dr=0;else if(na==="radial"||na===!0){var Ib=Z<0?-W+Or:-W;dr=Ib}else if(na==="tangential"&&L!=="outside"&&L!=="outer"){var oi=Math.atan2(Z,et);oi<0&&(oi=Or*2+oi);var Ob=et>0;Ob&&(oi=Or+oi),dr=oi-Or}if(a=!!dr,D.x=ft,D.y=At,D.rotation=dr,D.setStyle({verticalAlign:"middle"}),Gt){D.setStyle({align:zt});var uu=D.states.select;uu&&(uu.x+=D.x,uu.y+=D.y)}else{var ia=D.getBoundingRect().clone();ia.applyTransform(D.getComputedTransform());var $v=(D.style.margin||0)+2.1;ia.y-=$v/2,ia.height+=$v,r.push({label:D,labelLine:M,position:L,len:B,len2:G,minTurnAngle:N.get("minTurnAngle"),maxSurfaceAngle:N.get("maxSurfaceAngle"),surfaceNormal:new U(Z,et),linePoints:yt,textAlign:zt,labelDistance:P,labelAlignTo:I,edgeDistance:O,bleedMargin:F,rect:ia,unconstrainedWidth:ia.width,labelStyleWidth:D.style.width})}S.setTextConfig({inside:Gt})}}),!a&&e.get("avoidLabelOverlap")&&v2(r,n,i,l,u,v,f,c);for(var g=0;g<r.length;g++){var p=r[g],y=p.label,m=p.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:p.textAlign}),_&&(A(y.states,h),y.ignore=!0);var x=y.states.select;x&&(x.x+=y.x,x.y+=y.y)}if(m){var w=p.linePoints;_||!w?(A(m.states,h),m.ignore=!0):(px(w,p.minTurnAngle),fI(w,p.surfaceNormal,p.maxSurfaceAngle),m.setShape({points:w}),y.__hostTarget.textGuideLineConfig={anchor:new U(w[0][0],w[0][1])})}}}var p2=function(e){R(t,e);function t(r,n,i){var a=e.call(this)||this;a.z2=2;var o=new Ot;return a.setTextContent(o),a.updateData(r,n,i,!0),a}return t.prototype.updateData=function(r,n,i,a){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),f=r.getItemLayout(n),c=k(ka(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(a){o.setShape(c);var v=s.getShallow("animationType");s.ecModel.ssr?(Bt(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):v==="scale"?(o.shape.r=f.r0,Bt(o,{shape:{r:f.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),Bt(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Lt(o,{shape:{endAngle:f.endAngle}},s,n))}else Bl(o),Lt(o,{shape:c},s,n);o.useStyle(r.getItemVisual(n,"style")),to(o,l);var h=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),g=Math.cos(h)*d,p=Math.sin(h)*d,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=k({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},ka(u.getModel("itemStyle"),f)),k(o.ensureState("select"),{x:g,y:p,shape:ka(l.getModel(["select","itemStyle"]),f)}),k(o.ensureState("blur"),{shape:ka(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&k(m.ensureState("select"),{x:g,y:p}),k(_.ensureState("select"),{x:g,y:p}),$i(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,f=l&&l.opacity;Qi(a,Ji(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:f,defaultText:r.getFormattedLabel(i,"normal")||n.getName(i)});var c=a.getTextContent();a.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var v=r.get(["label","position"]);if(v!=="outside"&&v!=="outer")a.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new ln,this.setTextGuideLine(h)),wv(this,Tv(o),{stroke:u,opacity:Kr(s.get(["lineStyle","opacity"]),f,1)})}},t}(Ie),g2=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,i,a){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var v=new Ie({shape:Ox(r,i)});v.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}o.diff(s).add(function(h){var d=new p2(o,h,u);o.setItemGraphicEl(h,d),l.add(d)}).update(function(h,d){var g=s.getItemGraphicEl(d);g.updateData(o,h,u),g.off("click"),l.add(g),o.setItemGraphicEl(h,g)}).remove(function(h){var d=s.getItemGraphicEl(h);eo(d,r,h)}).execute(),d2(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="pie",t}(ce);const y2=g2;function kx(e,t,r){t=V(t)&&{coordDimensions:t}||k({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=yv(n,t).dimensions,a=new gv(i,e);return a.initData(n,r),a}var m2=function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e}();const Bx=m2;var _2=xt(),x2=function(e){R(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Bx(ht(this.getData,this),ht(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return kx(this,{coordDimensions:["value"],encodeDefaulter:dt(I_,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=_2(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=l0(o,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){Zs(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,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"},t}(Oe);const b2=x2;function S2(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(vt(o)&&!isNaN(o)&&o<0)})}}}function w2(e){e.registerChartView(y2),e.registerSeriesModel(b2),gE("pie",e.registerAction),e.registerLayout(dt(c2,"pie")),e.registerProcessor(Nx("pie")),e.registerProcessor(S2("pie"))}var T2=function(e){R(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.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"},t}(st);const C2=T2;var Rc=function(e){R(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",fe).models[0]},t.type="cartesian2dAxis",t}(st);ie(Rc,Mo);var Fx={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,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},D2=rt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Fx),Mv=rt({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}}},Fx),A2=rt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Mv),M2=Y({logBase:10},Mv);const Vx={category:D2,value:Mv,time:A2,log:M2};var E2={value:1,category:1,time:1,log:1};function co(e,t,r,n){A(E2,function(i,a){var o=rt(rt({},Vx[a],!0),n,!0),s=function(l){R(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var v=ao(this),h=v?ql(f):{},d=c.getTheme();rt(f,d.get(a+"Axis")),rt(f,this.getDefaultOption()),f.type=ey(f),v&&Wi(f,h,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Pc.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",ey)}function ey(e){return e.type||(e.data?"category":"value")}var L2=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return z(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),_t(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e}();const P2=L2;var kc=["x","y"];function ry(e){return e.type==="interval"||e.type==="time"}var I2=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=kc,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!ry(r)||!ry(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,v=o[0]-i[0]*f,h=o[1]-a[0]*c,d=this._transform=[f,0,0,c,v,h];this._invTransform=ji([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new it(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return ee(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},t.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n){var i=[];if(this._invTransform)return ee(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(){var r=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(r[0],r[1]),a=Math.min(n[0],n[1]),o=Math.max(r[0],r[1])-i,s=Math.max(n[0],n[1])-a;return new it(i,a,o,s)},t}(P2),O2=function(e){R(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(vr);const N2=O2;function Bc(e,t,r){r=r||{};var n=e.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,f=n.getRect(),c=[f.x,f.x+f.width,f.y,f.y+f.height],v={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,d=u==="x"?[c[2]-h,c[3]+h]:[c[0]-h,c[1]+h];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));d[v.onZero]=Math.max(Math.min(g,d[1]),d[0])}a.position=[u==="y"?d[v[l]]:c[0],u==="x"?d[v[l]]:c[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=p[s],a.labelOffset=o?d[v[s]]-d[v.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Cr(r.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-y:y,a.z2=1,a}function ny(e){return e.get("coordinateSystem")==="cartesian2d"}function iy(e){var t={xAxisModel:null,yAxisModel:null};return A(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,fe).models[0];if(process.env.NODE_ENV!=="production"&&!a)throw new Error(i+' "'+Kr(e.get(i+"Index"),e.get(i+"Id"),0)+'" not found');t[n]=a}),t}var Df=Math.log;function zx(e,t,r){var n=Kn.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=ix(e,t),u=l.extent,f=l.fixMin,c=l.fixMax;if(e.type==="log"){var v=Df(e.base);u=[Df(u[0])/v,Df(u[1])/v]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:c});var h=n.getExtent.call(e);f&&(u[0]=h[0]),c&&(u[1]=h[1]);var d=n.getInterval.call(e),g=u[0],p=u[1];if(f&&c)d=(p-g)/o;else if(f)for(p=u[0]+d*o;p<u[1]&&isFinite(p)&&isFinite(u[1]);)d=gf(d),p=u[0]+d*o;else if(c)for(g=u[1]-d*o;g>u[0]&&isFinite(g)&&isFinite(u[0]);)d=gf(d),g=u[1]-d*o;else{var y=e.getTicks().length-1;y>o&&(d=gf(d));var m=d*o;p=Math.ceil(u[1]/d)*d,g=Ct(p-m),g<0&&u[0]>=0?(g=0,p=Ct(m)):p>0&&u[1]<=0&&(p=0,g=-Ct(m))}var _=(i[0].value-a[0].value)/s,x=(i[o].value-a[o].value)/s;if(n.setExtent.call(e,g+d*_,p+d*x),n.setInterval.call(e,d),(_||x)&&n.setNiceExtent.call(e,g+d,p-d),process.env.NODE_ENV!=="production"){var w=n.getTicks.call(e);w[1]&&(!jL(d)||qs(w[1].value)>qs(d))&&kt("The ticks may be not readable when set min: "+t.get("min")+", max: "+t.get("max")+" and alignTicks: true")}}var R2=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=kc,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=mt(o),u=l.length;if(!!u){for(var f=[],c=u-1;c>=0;c--){var v=+l[c],h=o[v],d=h.model,g=h.scale;Ic(g)&&d.get("alignTicks")&&d.get("interval")==null?f.push(h):(Yi(g,d),Ic(g)&&(s=h))}f.length&&(s||(s=f.pop(),Yi(s.scale,s.model)),A(f,function(p){zx(p.scale,p.model,s.scale)}))}}i(n.x),i(n.y);var a={};A(n.x,function(o){ay(n,"y",o,a)}),A(n.y,function(o){ay(n,"x",o,a)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=Er(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(A(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=DP(u);if(f){var c=u.isHorizontal()?"height":"width",v=u.model.get(["axisLabel","margin"]);o[c]-=f[c]+v,u.position==="top"?o.y+=f.height+v:u.position==="left"&&(o.x+=f.width+v)}}}),l()),A(this._coordsList,function(u){u.calcAffineTransform()});function l(){A(s,function(u){var f=u.isHorizontal(),c=f?[0,o.width]:[0,o.height],v=u.inverse?1:0;u.setExtent(c[v],c[1-v]),k2(u,f?o.x:o.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}H(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===t||a[i].getAxis("y").index===r)return a[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,n=t.xAxisModel||r&&r.getReferringComponents("xAxis",fe).models[0],i=t.yAxisModel||r&&r.getReferringComponents("yAxis",fe).models[0],a=t.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,ct(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var r=this._coordsList[0];if(r)return r.containPoint(t)},e.prototype._initCartesian=function(t,r,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,A(s.x,function(f,c){A(s.y,function(v,h){var d="x"+c+"y"+h,g=new I2(d);g.master=i,g.model=t,i._coordsMap[d]=g,i._coordsList.push(g),g.addAxis(f),g.addAxis(v)})});function u(f){return function(c,v){if(!!Af(c,t)){var h=c.get("position");f==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var d=new N2(f,ou(c),[0,0],c.get("type"),h),g=d.type==="category";d.onBand=g&&c.get("boundaryGap"),d.inverse=c.get("inverse"),c.axis=d,d.model=c,d.grid=a,d.index=v,a._axesList.push(d),s[f][v]=d,l[f]++}}}},e.prototype._updateScale=function(t,r){A(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),t.eachSeries(function(i){if(ny(i)){var a=iy(i),o=a.xAxisModel,s=a.yAxisModel;if(!Af(o,r)||!Af(s,r))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),f=l.getAxis("x"),c=l.getAxis("y");n(u,f),n(u,c)}},this);function n(i,a){A(Oc(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return A(this.getCartesians(),function(i){var a=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(a);ct(r,a)<0&&r.push(a),ct(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},e.create=function(t,r){var n=[];return t.eachComponent("grid",function(i,a){var o=new e(i,t,r);o.name="grid_"+a,o.resize(i,r,!0),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(i){if(!!ny(i)){var a=iy(i),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel();if(process.env.NODE_ENV!=="production"){if(!l)throw new Error('Grid "'+Kr(o.get("gridIndex"),o.get("gridId"),0)+'" not found');if(o.getCoordSysModel()!==s.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},e.dimensions=kc,e}();function Af(e,t){return e.getCoordSysModel()===t}function ay(e,t,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)oy(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&oy(i[u])&&!n[f(i[u])]){a=i[u];break}a&&(n[f(a)]=!0);function f(c){return c.dim+"_"+c.index}}function oy(e){return e&&e.type!=="category"&&e.type!=="time"&&CP(e)}function k2(e,t){var r=e.getExtent(),n=r[0]+r[1];e.toGlobalCoord=e.dim==="x"?function(i){return i+t}:function(i){return n-i+t},e.toLocalCoord=e.dim==="x"?function(i){return i-t}:function(i){return n-i+t}}const B2=R2;var Zr=Math.PI,Yn=function(){function e(t,r){this.group=new Dt,this.opt=r,this.axisModel=t,Y(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Dt({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(t){return!!sy[t]},e.prototype.add=function(t){sy[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,r,n){var i=xh(r-t),a,o;return Ja(i)?(o=n>0?"top":"bottom",a="center"):Ja(i-Zr)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<Zr?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),sy={axisLine:function(e,t,r,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(ee(s,s,o),ee(l,l,o));var f=k({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new Me({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});ro(c.shape,c.style.lineWidth),c.anid="line",r.add(c);var v=t.get(["axisLine","symbol"]);if(v!=null){var h=t.get(["axisLine","symbolSize"]);$(v)&&(v=[v,v]),($(h)||vt(h))&&(h=[h,h]);var d=v1(t.get(["axisLine","symbolOffset"])||0,h),g=h[0],p=h[1];A([{rotate:e.rotation+Math.PI/2,offset:d[0],r:0},{rotate:e.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if(v[m]!=="none"&&v[m]!=null){var _=jn(v[m],-g/2,-p/2,g,p,f.stroke,!0),x=y.r+y.offset,w=u?l:s;_.attr({rotation:y.rotate,x:w[0]+x*Math.cos(e.rotation),y:w[1]-x*Math.sin(e.rotation),silent:!0,z2:11}),r.add(_)}})}}},axisTickLabel:function(e,t,r,n){var i=z2(r,n,t,e),a=$2(r,n,t,e);if(V2(t,a,i),G2(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=gx(z(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));_x(o)}},axisName:function(e,t,r,n){var i=Cr(e.axisName,t.get("name"));if(!!i){var a=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),f=u[0]>u[1]?-1:1,c=[a==="start"?u[0]-f*l:a==="end"?u[1]+f*l:(u[0]+u[1])/2,uy(a)?e.labelOffset+o*l:0],v,h=t.get("nameRotate");h!=null&&(h=h*Zr/180);var d;uy(a)?v=Yn.innerTextLayout(e.rotation,h!=null?h:e.rotation,o):(v=F2(e.rotation,a,h||0,u),d=e.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(v.rotation)),!isFinite(d)&&(d=null)));var g=s.getFont(),p=t.get("nameTruncate",!0)||{},y=p.ellipsis,m=Cr(e.nameTruncateMaxWidth,p.maxWidth,d),_=new Ot({x:c[0],y:c[1],rotation:v.rotation,silent:Yn.isLabelSilent(t),style:fr(s,{text:i,font:g,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||v.textAlign,verticalAlign:s.get("verticalAlign")||v.textVerticalAlign}),z2:1});if(Vh({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var x=Yn.makeAxisEventDataBase(t);x.targetType="axisName",x.name=i,ut(_).eventData=x}n.add(_),_.updateTransform(),r.add(_),_.decomposeTransform()}}};function F2(e,t,r,n){var i=xh(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Ja(i-Zr/2)?(o=l?"bottom":"top",a="center"):Ja(i-Zr*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<Zr*1.5&&i>Zr/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function V2(e,t,r){if(!ax(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=r[0],f=r[1],c=r[r.length-1],v=r[r.length-2];n===!1?(xe(a),xe(u)):ly(a,o)&&(n?(xe(o),xe(f)):(xe(a),xe(u))),i===!1?(xe(s),xe(c)):ly(l,s)&&(i?(xe(l),xe(v)):(xe(s),xe(c)))}}function xe(e){e&&(e.ignore=!0)}function ly(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=yo([]);return Zi(i,i,-e.rotation),r.applyTransform(Qr([],i,e.getLocalTransform())),n.applyTransform(Qr([],i,t.getLocalTransform())),r.intersect(n)}}function uy(e){return e==="middle"||e==="center"}function Gx(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,t&&(ee(o,o,t),ee(s,s,t));var f=new Me({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});ro(f.shape,f.style.lineWidth),f.anid=i+"_"+e[l].tickValue,a.push(f)}return a}function z2(e,t,r,n){var i=r.axis,a=r.getModel("axisTick"),o=a.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||i.scale.isBlank())){for(var s=a.getModel("lineStyle"),l=n.tickDirection*a.get("length"),u=i.getTicksCoords(),f=Gx(u,t.transform,l,Y(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}}function G2(e,t,r,n){var i=r.axis,a=r.getModel("minorTick");if(!(!a.get("show")||i.scale.isBlank())){var o=i.getMinorTicksCoords();if(!!o.length)for(var s=a.getModel("lineStyle"),l=n*a.get("length"),u=Y(s.getLineStyle(),Y(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var c=Gx(o[f],t.transform,l,u,"minorticks_"+f),v=0;v<c.length;v++)e.add(c[v])}}function $2(e,t,r,n){var i=r.axis,a=Cr(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(Cr(n.labelRotate,o.get("rotate"))||0)*Zr/180,f=Yn.innerTextLayout(n.rotation,u,n.labelDirection),c=r.getCategories&&r.getCategories(!0),v=[],h=Yn.isLabelSilent(r),d=r.get("triggerEvent");return A(l,function(g,p){var y=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(g.tickValue):g.tickValue,m=g.formattedLabel,_=g.rawLabel,x=o;if(c&&c[y]){var w=c[y];H(w)&&w.textStyle&&(x=new Et(w.textStyle,o,r.ecModel))}var b=x.getTextColor()||r.get(["axisLine","lineStyle","color"]),S=i.dataToCoord(y),T=new Ot({x:S,y:n.labelOffset+n.labelDirection*s,rotation:f.rotation,silent:h,z2:10+(g.level||0),style:fr(x,{text:m,align:x.getShallow("align",!0)||f.textAlign,verticalAlign:x.getShallow("verticalAlign",!0)||x.getShallow("baseline",!0)||f.textVerticalAlign,fill:X(b)?b(i.type==="category"?_:i.type==="value"?y+"":y,p):b})});if(T.anid="label_"+y,d){var D=Yn.makeAxisEventDataBase(r);D.targetType="axisLabel",D.value=_,D.tickIndex=p,i.type==="category"&&(D.dataIndex=y),ut(T).eventData=D}t.add(T),T.updateTransform(),v.push(T),e.add(T),T.decomposeTransform()}),v}}const an=Yn;function H2(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return W2(r,e,t),r.seriesInvolved&&Y2(r,e),r}function W2(e,t,r){var n=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];A(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=ho(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",n);if(A(s.getAxes(),dt(g,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var v=c.get("trigger")==="axis",h=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(v||h)&&A(d.baseAxes,dt(g,h?"cross":!0,v)),h&&A(d.otherAxes,dt(g,"cross",!1))}function g(p,y,m){var _=m.model.getModel("axisPointer",i),x=_.get("show");if(!(!x||x==="auto"&&!p&&!Fc(_))){y==null&&(y=_.get("triggerTooltip")),_=p?U2(m,c,i,t,p,y):_;var w=_.get("snap"),b=_.get("triggerEmphasis"),S=ho(m.model),T=y||w||m.type==="category",D=e.axesInfo[S]={key:S,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:b,involveSeries:T,snap:w,useHandle:Fc(_),seriesModels:[],linkGroup:null};u[S]=D,e.seriesInvolved=e.seriesInvolved||T;var M=X2(a,m);if(M!=null){var C=o[M]||(o[M]={axesInfo:{}});C.axesInfo[S]=D,C.mapper=a[M].mapper,D.linkGroup=C}}}})}function U2(e,t,r,n,i,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};A(s,function(v){l[v]=j(o.get(v))}),l.snap=e.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var f=o.get(["label","show"]);if(u.show=f!=null?f:!0,!a){var c=l.lineStyle=o.get("crossStyle");c&&Y(u,c.textStyle)}}return e.model.getModel("axisPointer",new Et(l,r,n))}function Y2(e,t){t.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||A(e.coordSysAxesInfo[ho(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function X2(e,t){for(var r=t.model,n=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(Mf(a[n+"AxisId"],r.id)||Mf(a[n+"AxisIndex"],r.componentIndex)||Mf(a[n+"AxisName"],r.name))return i}}function Mf(e,t){return e==="all"||V(e)&&ct(e,t)>=0||e===t}function q2(e){var t=Ev(e);if(!!t){var r=t.axisPointerModel,n=t.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=Fc(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function Ev(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[ho(e)]}function Z2(e){var t=Ev(e);return t&&t.axisPointerModel}function Fc(e){return!!e.get(["handle","show"])}function ho(e){return e.type+"||"+e.id}var Ef={},j2=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i,a){this.axisPointerClass&&q2(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},t.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},t.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},t.prototype.dispose=function(r,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=t.getAxisPointerClass(this.axisPointerClass);if(!!a){var o=Z2(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,n){if(process.env.NODE_ENV!=="production"&&Ef[r])throw new Error("axisPointer "+r+" exists");Ef[r]=n},t.getAxisPointerClass=function(r){return r&&Ef[r]},t.type="axis",t}(Vt);const Eo=j2;var Vc=xt();function K2(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,clamp:!0});if(!!u.length){var f=s.length,c=Vc(e).splitAreaColors,v=Q(),h=0;if(c)for(var d=0;d<u.length;d++){var g=c.get(u[d].tickValue);if(g!=null){h=(g+(f-1)*d)%f;break}}var p=i.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=V(s)?s:[s];for(var d=1;d<u.length;d++){var m=i.toGlobalCoord(u[d].coord),_=void 0,x=void 0,w=void 0,b=void 0;i.isHorizontal()?(_=p,x=l.y,w=m-_,b=l.height,p=_+w):(_=l.x,x=p,w=l.width,b=m-x,p=x+b);var S=u[d-1].tickValue;S!=null&&v.set(S,h),t.add(new wt({anid:S!=null?"area_"+S:null,shape:{x:_,y:x,width:w,height:b},style:Y({fill:s[h]},y),autoBatch:!0,silent:!0})),h=(h+1)%f}Vc(e).splitAreaColors=v}}}function Q2(e){Vc(e).splitAreaColors=null}var J2=["axisLine","axisTickLabel","axisName"],tO=["splitArea","splitLine","minorSplitLine"],$x=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="CartesianAxisPointer",r}return t.prototype.render=function(r,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Dt,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),l=Bc(s,r),u=new an(r,k({handleAutoShown:function(c){for(var v=s.coordinateSystem.getCartesians(),h=0;h<v.length;h++)if(Ic(v[h].getOtherAxis(r.axis).scale))return!0;return!1}},l));A(J2,u.add,u),this._axisGroup.add(u.getGroup()),A(tO,function(c){r.get([c,"show"])&&eO[c](this,this._axisGroup,r,s)},this);var f=a&&a.type==="changeAxisOrder"&&a.isInitSort;f||Vl(o,this._axisGroup,r),e.prototype.render.call(this,r,n,i,a)}},t.prototype.remove=function(){Q2(this)},t.type="cartesianAxis",t}(Eo),eO={splitLine:function(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=V(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=i.isHorizontal(),f=0,c=i.getTicksCoords({tickModel:a}),v=[],h=[],d=o.getLineStyle(),g=0;g<c.length;g++){var p=i.toGlobalCoord(c[g].coord);u?(v[0]=p,v[1]=l.y,h[0]=p,h[1]=l.y+l.height):(v[0]=l.x,v[1]=p,h[0]=l.x+l.width,h[1]=p);var y=f++%s.length,m=c[g].tickValue,_=new Me({anid:m!=null?"line_"+c[g].tickValue:null,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:h[0],y2:h[1]},style:Y({stroke:s[y]},d),silent:!0});ro(_.shape,d.lineWidth),t.add(_)}}},minorSplitLine:function(e,t,r,n){var i=r.axis,a=r.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(!!u.length)for(var f=[],c=[],v=o.getLineStyle(),h=0;h<u.length;h++)for(var d=0;d<u[h].length;d++){var g=i.toGlobalCoord(u[h][d].coord);l?(f[0]=g,f[1]=s.y,c[0]=g,c[1]=s.y+s.height):(f[0]=s.x,f[1]=g,c[0]=s.x+s.width,c[1]=g);var p=new Me({anid:"minor_line_"+u[h][d].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]},style:v,silent:!0});ro(p.shape,v.lineWidth),t.add(p)}},splitArea:function(e,t,r,n){K2(e,t,r,n)}},Hx=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t}($x),rO=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Hx.type,r}return t.type="yAxis",t}($x),nO=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="grid",r}return t.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new wt({shape:r.coordinateSystem.getRect(),style:Y({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Vt),fy={offset:0};function iO(e){e.registerComponentView(nO),e.registerComponentModel(C2),e.registerCoordinateSystem("cartesian2d",B2),co(e,"x",Rc,fy),co(e,"y",Rc,fy),e.registerComponentView(Hx),e.registerComponentView(rO),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var Ca=Vx.value;function ps(e,t){return Y({show:t},e)}var aO=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){var r=this.get("boundaryGap"),n=this.get("splitNumber"),i=this.get("scale"),a=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),f=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),v=this.get("triggerEvent"),h=z(this.get("indicator")||[],function(d){d.max!=null&&d.max>0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var g=l;d.color!=null&&(g=Y({color:d.color},l));var p=rt(j(d),{boundaryGap:r,splitNumber:n,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:c,nameTextStyle:g,triggerEvent:v},!1);if($(f)){var y=p.name;p.name=f.replace("{value}",y!=null?y:"")}else X(f)&&(p.name=f(p.name,p));var m=new Et(p,null,this.ecModel);return ie(m,Mo.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.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:rt({lineStyle:{color:"#bbb"}},Ca.axisLine),axisLabel:ps(Ca.axisLabel,!1),axisTick:ps(Ca.axisTick,!1),splitLine:ps(Ca.splitLine,!0),splitArea:ps(Ca.splitArea,!0),indicator:[]},t}(st);const oO=aO;var sO=["axisLine","axisTickLabel","axisName"],lO=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=this.group;a.removeAll(),this._buildAxes(r),this._buildSplitLineAndArea(r)},t.prototype._buildAxes=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes(),a=z(i,function(o){var s=o.model.get("showName")?o.name:"",l=new an(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});A(a,function(o){A(sO,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var a=r.get("shape"),o=r.getModel("splitLine"),s=r.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),c=s.get("show"),v=l.get("color"),h=u.get("color"),d=V(v)?v:[v],g=V(h)?h:[h],p=[],y=[];function m(I,O,F){var N=F%O.length;return I[N]=I[N]||[],N}if(a==="circle")for(var _=i[0].getTicksCoords(),x=n.cx,w=n.cy,b=0;b<_.length;b++){if(f){var S=m(p,d,b);p[S].push(new rn({shape:{cx:x,cy:w,r:_[b].coord}}))}if(c&&b<_.length-1){var S=m(y,g,b);y[S].push(new wo({shape:{cx:x,cy:w,r0:_[b].coord,r:_[b+1].coord}}))}}else for(var T,D=z(i,function(I,O){var F=I.getTicksCoords();return T=T==null?F.length-1:Math.min(F.length-1,T),z(F,function(N){return n.coordToPoint(N.coord,O)})}),M=[],b=0;b<=T;b++){for(var C=[],E=0;E<i.length;E++)C.push(D[E][b]);if(C[0]?C.push(C[0].slice()):process.env.NODE_ENV!=="production"&&console.error("Can't draw value axis "+b),f){var S=m(p,d,b);p[S].push(new ln({shape:{points:C}}))}if(c&&M){var S=m(y,g,b-1);y[S].push(new ii({shape:{points:C.concat(M)}}))}M=C.slice().reverse()}var L=l.getLineStyle(),P=u.getAreaStyle();A(y,function(I,O){this.group.add(De(I,{style:Y({stroke:"none",fill:g[O%g.length]},P),silent:!0}))},this),A(p,function(I,O){this.group.add(De(I,{style:Y({fill:"none",stroke:d[O%d.length]},L),silent:!0}))},this)},t.type="radar",t}(Vt);const uO=lO;var fO=function(e){R(t,e);function t(r,n,i){var a=e.call(this,r,n,i)||this;return a.type="value",a.angle=0,a.name="",a}return t}(vr);const cO=fO;var hO=function(){function e(t,r,n){this.dimensions=[],this._model=t,this._indicatorAxes=z(t.getIndicatorModels(),function(i,a){var o="indicator_"+a,s=new cO(o,new Kn);return s.name=i.get("name"),s.model=i,i.axis=s,this.dimensions.push(o),s},this),this.resize(t,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(t,r){var n=this._indicatorAxes[r];return this.coordToPoint(n.dataToCoord(t),r)},e.prototype.coordToPoint=function(t,r){var n=this._indicatorAxes[r],i=n.angle,a=this.cx+t*Math.cos(i),o=this.cy-t*Math.sin(i);return[a,o]},e.prototype.pointToData=function(t){var r=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(r*r+n*n);r/=i,n/=i;for(var a=Math.atan2(-n,r),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],c=Math.abs(a-f.angle);c<o&&(s=f,l=u,o=c)}return[l,+(s&&s.coordToData(i))]},e.prototype.resize=function(t,r){var n=t.get("center"),i=r.getWidth(),a=r.getHeight(),o=Math.min(i,a)/2;this.cx=K(n[0],i),this.cy=K(n[1],a),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");($(s)||vt(s))&&(s=[0,s]),this.r0=K(s[0],o),this.r=K(s[1],o),A(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var f=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;f=Math.atan2(Math.sin(f),Math.cos(f)),l.angle=f},this)},e.prototype.update=function(t,r){var n=this._indicatorAxes,i=this._model;A(n,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==i)){var u=s.getData();A(n,function(f){f.scale.unionExtentFromData(u,u.mapDimension(f.dim))})}},this);var a=i.get("splitNumber"),o=new Kn;o.setExtent(0,a),o.setInterval(1),A(n,function(s,l){zx(s.scale,s.model,o)})},e.prototype.convertToPixel=function(t,r,n){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(t,r,n){return console.warn("Not implemented."),null},e.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},e.create=function(t,r){var n=[];return t.eachComponent("radar",function(i){var a=new e(i,t,r);n.push(a),i.coordinateSystem=a}),t.eachSeriesByType("radar",function(i){i.get("coordinateSystem")==="radar"&&(i.coordinateSystem=n[i.get("radarIndex")||0])}),n},e.dimensions=[],e}();const vO=hO;function dO(e){e.registerCoordinateSystem("radar",vO),e.registerComponentModel(oO),e.registerComponentView(uO),e.registerVisual({seriesType:"radar",reset:function(t){var r=t.getData();r.each(function(n){r.setItemVisual(n,"legendIcon","roundRect")}),r.setVisual("legendIcon","roundRect")}})}var cy="\0_ec_interaction_mutex";function pO(e,t,r){var n=Wx(e);n[t]=r}function gO(e,t,r){var n=Wx(e),i=n[t];i===r&&(n[t]=null)}function Wx(e){return e[cy]||(e[cy]={})}un({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Yt);var yO={axisPointer:1,tooltip:1,brush:1};function mO(e,t,r){var n=t.getComponentByElement(e.topTarget),i=n&&n.coordinateSystem;return n&&n!==r&&!yO.hasOwnProperty(n.mainType)&&i&&i.model!==r}var _O=["itemStyle","opacity"],xO=function(e){R(t,e);function t(r,n){var i=e.call(this)||this,a=i,o=new ln,s=new Ot;return a.setTextContent(s),i.setTextGuideLine(o),i.updateData(r,n,!0),i}return t.prototype.updateData=function(r,n,i){var a=this,o=r.hostModel,s=r.getItemModel(n),l=r.getItemLayout(n),u=s.getModel("emphasis"),f=s.get(_O);f=f==null?1:f,i||Bl(a),a.useStyle(r.getItemVisual(n,"style")),a.style.lineJoin="round",i?(a.setShape({points:l.points}),a.style.opacity=0,Bt(a,{style:{opacity:f}},o,n)):Lt(a,{style:{opacity:f},shape:{points:l.points}},o,n),to(a,s),this._updateLabel(r,n),$i(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n){var i=this,a=this.getTextGuideLine(),o=i.getTextContent(),s=r.hostModel,l=r.getItemModel(n),u=r.getItemLayout(n),f=u.label,c=r.getItemVisual(n,"style"),v=c.fill;Qi(o,Ji(l),{labelFetcher:r.hostModel,labelDataIndex:n,defaultOpacity:c.opacity,defaultText:r.getName(n)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}}),i.setTextConfig({local:!0,inside:!!f.inside,insideStroke:v,outsideFill:v});var h=f.linePoints;a.setShape({points:h}),i.textGuideLineConfig={anchor:h?new U(h[0][0],h[0][1]):null},Lt(o,{style:{x:f.x,y:f.y}},s,n),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),wv(i,Tv(l),{stroke:v})},t}(ii),bO=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this._data,s=this.group;a.diff(o).add(function(l){var u=new xO(a,l);a.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(a,l),s.add(f),a.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);eo(u,r,l)}).execute(),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(ce);const SO=bO;var wO=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Bx(ht(this.getData,this),ht(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.getInitialData=function(r,n){return kx(this,{coordDimensions:["value"],encodeDefaulter:dt(I_,this)})},t.prototype._defaultLabelLine=function(r){Zs(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.prototype.getDataParams=function(r){var n=this.getData(),i=e.prototype.getDataParams.call(this,r),a=n.mapDimension("value"),o=n.getSum(a);return i.percent=o?+(n.get(a,r)/o*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.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"}}},t}(Oe);const TO=wO;function CO(e,t){return Er(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function DO(e,t){for(var r=e.mapDimension("value"),n=e.mapArray(r,function(l){return l}),i=[],a=t==="ascending",o=0,s=e.count();o<s;o++)i[o]=o;return X(t)?i.sort(t):t!=="none"&&i.sort(function(l,u){return a?n[l]-n[u]:n[u]-n[l]}),i}function AO(e){var t=e.hostModel,r=t.get("orient");e.each(function(n){var i=e.getItemModel(n),a=i.getModel("label"),o=a.get("position"),s=i.getModel("labelLine"),l=e.getItemLayout(n),u=l.points,f=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",c,v,h,d;if(f)o==="insideLeft"?(v=(u[0][0]+u[3][0])/2+5,h=(u[0][1]+u[3][1])/2,c="left"):o==="insideRight"?(v=(u[1][0]+u[2][0])/2-5,h=(u[1][1]+u[2][1])/2,c="right"):(v=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,h=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,c="center"),d=[[v,h],[v,h]];else{var g=void 0,p=void 0,y=void 0,m=void 0,_=s.get("length");process.env.NODE_ENV!=="production"&&(r==="vertical"&&["top","bottom"].indexOf(o)>-1&&(o="left",console.warn("Position error: Funnel chart on vertical orient dose not support top and bottom.")),r==="horizontal"&&["left","right"].indexOf(o)>-1&&(o="bottom",console.warn("Position error: Funnel chart on horizontal orient dose not support left and right."))),o==="left"?(g=(u[3][0]+u[0][0])/2,p=(u[3][1]+u[0][1])/2,y=g-_,v=y-5,c="right"):o==="right"?(g=(u[1][0]+u[2][0])/2,p=(u[1][1]+u[2][1])/2,y=g+_,v=y+5,c="left"):o==="top"?(g=(u[3][0]+u[0][0])/2,p=(u[3][1]+u[0][1])/2,m=p-_,h=m-5,c="center"):o==="bottom"?(g=(u[1][0]+u[2][0])/2,p=(u[1][1]+u[2][1])/2,m=p+_,h=m+5,c="center"):o==="rightTop"?(g=r==="horizontal"?u[3][0]:u[1][0],p=r==="horizontal"?u[3][1]:u[1][1],r==="horizontal"?(m=p-_,h=m-5,c="center"):(y=g+_,v=y+5,c="top")):o==="rightBottom"?(g=u[2][0],p=u[2][1],r==="horizontal"?(m=p+_,h=m+5,c="center"):(y=g+_,v=y+5,c="bottom")):o==="leftTop"?(g=u[0][0],p=r==="horizontal"?u[0][1]:u[1][1],r==="horizontal"?(m=p-_,h=m-5,c="center"):(y=g-_,v=y-5,c="right")):o==="leftBottom"?(g=r==="horizontal"?u[1][0]:u[3][0],p=r==="horizontal"?u[1][1]:u[2][1],r==="horizontal"?(m=p+_,h=m+5,c="center"):(y=g-_,v=y-5,c="right")):(g=(u[1][0]+u[2][0])/2,p=(u[1][1]+u[2][1])/2,r==="horizontal"?(m=p+_,h=m+5,c="center"):(y=g+_,v=y+5,c="left")),r==="horizontal"?(y=g,v=y):(m=p,h=m),d=[[g,p],[y,m]]}l.label={linePoints:d,x:v,y:h,verticalAlign:"middle",textAlign:c,inside:f}})}function MO(e,t){e.eachSeriesByType("funnel",function(r){var n=r.getData(),i=n.mapDimension("value"),a=r.get("sort"),o=CO(r,t),s=r.get("orient"),l=o.width,u=o.height,f=DO(n,a),c=o.x,v=o.y,h=s==="horizontal"?[K(r.get("minSize"),u),K(r.get("maxSize"),u)]:[K(r.get("minSize"),l),K(r.get("maxSize"),l)],d=n.getDataExtent(i),g=r.get("min"),p=r.get("max");g==null&&(g=Math.min(d[0],0)),p==null&&(p=d[1]);var y=r.get("funnelAlign"),m=r.get("gap"),_=s==="horizontal"?l:u,x=(_-m*(n.count()-1))/n.count(),w=function(P,I){if(s==="horizontal"){var O=n.get(i,P)||0,F=Vi(O,[g,p],h,!0),N=void 0;switch(y){case"top":N=v;break;case"center":N=v+(u-F)/2;break;case"bottom":N=v+(u-F);break}return[[I,N],[I,N+F]]}var B=n.get(i,P)||0,G=Vi(B,[g,p],h,!0),W;switch(y){case"left":W=c;break;case"center":W=c+(l-G)/2;break;case"right":W=c+l-G;break}return[[W,I],[W+G,I]]};a==="ascending"&&(x=-x,m=-m,s==="horizontal"?c+=l:v+=u,f=f.reverse());for(var b=0;b<f.length;b++){var S=f[b],T=f[b+1],D=n.getItemModel(S);if(s==="horizontal"){var M=D.get(["itemStyle","width"]);M==null?M=x:(M=K(M,l),a==="ascending"&&(M=-M));var C=w(S,c),E=w(T,c+M);c+=M+m,n.setItemLayout(S,{points:C.concat(E.slice().reverse())})}else{var L=D.get(["itemStyle","height"]);L==null?L=x:(L=K(L,u),a==="ascending"&&(L=-L));var C=w(S,v),E=w(T,v+L);v+=L+m,n.setItemLayout(S,{points:C.concat(E.slice().reverse())})}}AO(n)})}function EO(e){e.registerChartView(SO),e.registerSeriesModel(TO),e.registerLayout(MO),e.registerProcessor(Nx("funnel"))}function LO(e){PO(e),IO(e)}function PO(e){if(!e.parallel){var t=!1;A(e.series,function(r){r&&r.type==="parallel"&&(t=!0)}),t&&(e.parallel=[{}])}}function IO(e){var t=St(e.parallelAxis);A(t,function(r){if(!!H(r)){var n=r.parallelIndex||0,i=St(e.parallel)[n];i&&i.parallelAxisDefault&&rt(r,i.parallelAxisDefault,!1)}})}var OO=5,NO=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){this._model=r,this._api=i,this._handlers||(this._handlers={},A(RO,function(a,o){i.getZr().on(o,this._handlers[o]=ht(a,this))},this)),av(this,"_throttledDispatchExpand",r.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(r,n){sl(this,"_throttledDispatchExpand"),A(this._handlers,function(i,a){n.getZr().off(a,i)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(r){this._dispatchExpand(r)},t.prototype._dispatchExpand=function(r){r&&this._api.dispatchAction(k({type:"parallelAxisExpand"},r))},t.type="parallel",t}(Vt),RO={mousedown:function(e){Lf(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(Lf(this,"click")&&t){var r=[e.offsetX,e.offsetY],n=Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2);if(n>OO)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!Lf(this,"mousemove"))){var t=this._model,r=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),n=r.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:r.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function Lf(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}const kO=NO;var BO=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(r){var n=this.option;r&&rt(n,r,!0),this._initDimensions()},t.prototype.contains=function(r,n){var i=r.get("parallelIndex");return i!=null&&n.getComponent("parallel",i)===this},t.prototype.setAxisExpand=function(r){A(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){r.hasOwnProperty(n)&&(this.option[n]=r[n])},this)},t.prototype._initDimensions=function(){var r=this.dimensions=[],n=this.parallelAxisIndex=[],i=_t(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);A(i,function(a){r.push("dim"+a.get("dim")),n.push(a.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(st);const FO=BO;var VO=function(e){R(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.type=a||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(vr);const zO=VO;function GO(e,t,r,n,i,a){e=e||0;var o=r[1]-r[0];if(i!=null&&(i=Si(i,[0,o])),a!=null&&(a=Math.max(a,i!=null?i:0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=Si(s,[0,o]),i=a=Si(s,[i,a]),n=0}t[0]=Si(t[0],r),t[1]=Si(t[1],r);var l=Pf(t,n);t[n]+=e;var u=i||0,f=r.slice();l.sign<0?f[0]+=u:f[1]-=u,t[n]=Si(t[n],f);var c;return c=Pf(t,n),i!=null&&(c.sign!==l.sign||c.span<i)&&(t[1-n]=t[n]+l.sign*i),c=Pf(t,n),a!=null&&c.span>a&&(t[1-n]=t[n]+c.sign*a),t}function Pf(e,t){var r=e[t]-e[1-t];return{span:Math.abs(r),sign:r>0?-1:r<0?1:t?-1:1}}function Si(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var If=A,Ux=Math.min,Yx=Math.max,hy=Math.floor,$O=Math.ceil,vy=Ct,HO=Math.PI,WO=function(){function e(t,r,n){this.type="parallel",this._axesMap=Q(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var i=t.dimensions,a=t.parallelAxisIndex;If(i,function(o,s){var l=a[s],u=r.getComponent("parallelAxis",l),f=this._axesMap.set(o,new zO(o,ou(u),[0,0],u.get("type"),l)),c=f.type==="category";f.onBand=c&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},e.prototype.update=function(t,r){this._updateAxesFromSeries(this._model,t)},e.prototype.containPoint=function(t){var r=this._makeLayoutInfo(),n=r.axisBase,i=r.layoutBase,a=r.pixelDimIndex,o=t[1-a],s=t[a];return o>=n&&o<=n+r.axisLength&&s>=i&&s<=i+r.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(t,r){r.eachSeries(function(n){if(!!t.contains(n,r)){var i=n.getData();If(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),Yi(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,r){this._rect=Er(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var t=this._model,r=this._rect,n=["x","y"],i=["width","height"],a=t.get("layout"),o=a==="horizontal"?0:1,s=r[i[o]],l=[0,s],u=this.dimensions.length,f=gs(t.get("axisExpandWidth"),l),c=gs(t.get("axisExpandCount")||0,[0,u]),v=t.get("axisExpandable")&&u>3&&u>c&&c>1&&f>0&&s>0,h=t.get("axisExpandWindow"),d;if(h)d=gs(h[1]-h[0],l),h[1]=h[0]+d;else{d=gs(f*(c-1),l);var g=t.get("axisExpandCenter")||hy(u/2);h=[f*g-d/2],h[1]=h[0]+d}var p=(s-d)/(u-c);p<3&&(p=0);var y=[hy(vy(h[0]/f,1))+1,$O(vy(h[1]/f,1))-1],m=p/f*h[0];return{layout:a,pixelDimIndex:o,layoutBase:r[n[o]],layoutLength:s,axisBase:r[n[1-o]],axisLength:r[i[1-o]],axisExpandable:v,axisExpandWidth:f,axisCollapseWidth:p,axisExpandWindow:h,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},e.prototype._layoutAxes=function(){var t=this._rect,r=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;r.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),If(n,function(o,s){var l=(i.axisExpandable?YO:UO)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},f={horizontal:HO/2,vertical:0},c=[u[a].x+t.x,u[a].y+t.y],v=f[a],h=Dr();Zi(h,h,v),Fi(h,h,c),this._axesLayout[o]={position:c,rotation:v,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(t){return this._axesMap.get(t)},e.prototype.dataToPoint=function(t,r){return this.axisCoordToPoint(this._axesMap.get(r).dataToCoord(t),r)},e.prototype.eachActiveState=function(t,r,n,i){n==null&&(n=0),i==null&&(i=t.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];A(o,function(p){s.push(t.mapDimension(p)),l.push(a.get(p).model)});for(var u=this.hasAxisBrushed(),f=n;f<i;f++){var c=void 0;if(!u)c="normal";else{c="active";for(var v=t.getValues(s,f),h=0,d=o.length;h<d;h++){var g=l[h].getActiveState(v[h]);if(g==="inactive"){c="inactive";break}}}r(c,f)}},e.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,r=this._axesMap,n=!1,i=0,a=t.length;i<a;i++)r.get(t[i]).model.getActiveState()!=="normal"&&(n=!0);return n},e.prototype.axisCoordToPoint=function(t,r){var n=this._axesLayout[r];return To([t,0],n.transform)},e.prototype.getAxisLayout=function(t){return j(this._axesLayout[t])},e.prototype.getSlidedAxisExpandWindow=function(t){var r=this._makeLayoutInfo(),n=r.pixelDimIndex,i=r.axisExpandWindow.slice(),a=i[1]-i[0],o=[0,r.axisExpandWidth*(r.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:i};var s=t[n]-r.layoutBase-r.axisExpandWindow0Pos,l,u="slide",f=r.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),v=c[0]!=null;if(f)v&&f&&s<a*c[0]?(u="jump",l=s-a*c[2]):v&&f&&s>a*(1-c[0])?(u="jump",l=s-a*(1-c[2])):(l=s-a*c[1])>=0&&(l=s-a*(1-c[1]))<=0&&(l=0),l*=r.axisExpandWidth/f,l?GO(l,i,o,"all"):u="none";else{var h=i[1]-i[0],d=o[1]*s/h;i=[Yx(0,d-h/2)],i[1]=Ux(o[1],i[0]+h),i[0]=i[1]-h}return{axisExpandWindow:i,behavior:u}},e}();function gs(e,t){return Ux(Yx(e,t[0]),t[1])}function UO(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function YO(e,t){var r=t.layoutLength,n=t.axisExpandWidth,i=t.axisCount,a=t.axisCollapseWidth,o=t.winInnerIndices,s,l=a,u=!1,f;return e<o[0]?(s=e*a,f=a):e<=o[1]?(s=t.axisExpandWindow0Pos+e*n-t.axisExpandWindow[0],l=n,u=!0):(s=r-(i-1-e)*a,f=a),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:f}}const XO=WO;function qO(e,t){var r=[];return e.eachComponent("parallel",function(n,i){var a=new XO(n,e,t);a.name="parallel_"+i,a.resize(n,t),n.coordinateSystem=a,a.model=n,r.push(a)}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="parallel"){var i=n.getReferringComponents("parallel",fe).models[0];n.coordinateSystem=i.coordinateSystem}}),r}var ZO={create:qO};const jO=ZO;var Xx=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.activeIntervals=[],r}return t.prototype.getAreaSelectStyle=function(){return Gi([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(r){var n=this.activeIntervals=j(r);if(n)for(var i=n.length-1;i>=0;i--)o0(n[i])},t.prototype.getActiveState=function(r){var n=this.activeIntervals;if(!n.length)return"normal";if(r==null||isNaN(+r))return"inactive";if(n.length===1){var i=n[0];if(i[0]<=r&&r<=i[1])return"active"}else for(var a=0,o=n.length;a<o;a++)if(n[a][0]<=r&&r<=n[a][1])return"active";return"inactive"},t}(st);ie(Xx,Mo);const dy=Xx;var Qn=!0,vo=Math.min,Xi=Math.max,KO=Math.pow,QO=1e4,JO=6,tN=6,py="globalPan",eN={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},rN={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},gy={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},nN=0,iN=function(e){R(t,e);function t(r){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},process.env.NODE_ENV!=="production"&&J(r),n._zr=r,n.group=new Dt,n._uid="brushController_"+nN++,A(cN,function(i,a){this._handlers[a]=ht(i,this)},n),n}return t.prototype.enableBrush=function(r){return process.env.NODE_ENV!=="production"&&J(this._mounted),this._brushType&&this._doDisableBrush(),r.brushType&&this._doEnableBrush(r),this},t.prototype._doEnableBrush=function(r){var n=this._zr;this._enableGlobalPan||pO(n,py,this._uid),A(this._handlers,function(i,a){n.on(a,i)}),this._brushType=r.brushType,this._brushOption=rt(j(gy),r,!0)},t.prototype._doDisableBrush=function(){var r=this._zr;gO(r,py,this._uid),A(this._handlers,function(n,i){r.off(i,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(r){if(r&&r.length){var n=this._panels={};A(r,function(i){n[i.panelId]=j(i)})}else this._panels=null;return this},t.prototype.mount=function(r){r=r||{},process.env.NODE_ENV!=="production"&&(this._mounted=!0),this._enableGlobalPan=r.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:r.x||0,y:r.y||0,rotation:r.rotation||0,scaleX:r.scaleX||1,scaleY:r.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(r){process.env.NODE_ENV!=="production"&&J(this._mounted),r=z(r,function(v){return rt(j(gy),v,!0)});var n="\0-brush-index-",i=this._covers,a=this._covers=[],o=this,s=this._creatingCover;return new gl(i,r,u,l).add(f).update(f).remove(c).execute(),this;function l(v,h){return(v.id!=null?v.id:n+h)+"-"+v.brushType}function u(v,h){return l(v.__brushOption,h)}function f(v,h){var d=r[v];if(h!=null&&i[h]===s)a[v]=i[h];else{var g=a[v]=h!=null?(i[h].__brushOption=d,i[h]):Zx(o,qx(o,d));Lv(o,g)}}function c(v){i[v]!==s&&o.group.remove(i[v])}},t.prototype.unmount=function(){if(!(process.env.NODE_ENV!=="production"&&!this._mounted))return this.enableBrush(!1),zc(this),this._zr.remove(this.group),process.env.NODE_ENV!=="production"&&(this._mounted=!1),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(qe);function qx(e,t){var r=su[t.brushType].createCover(e,t);return r.__brushOption=t,Kx(r,t),e.group.add(r),r}function Zx(e,t){var r=Pv(t);return r.endCreating&&(r.endCreating(e,t),Kx(t,t.__brushOption)),t}function jx(e,t){var r=t.__brushOption;Pv(t).updateCoverShape(e,t,r.range,r)}function Kx(e,t){var r=t.z;r==null&&(r=QO),e.traverse(function(n){n.z=r,n.z2=r})}function Lv(e,t){Pv(t).updateCommon(e,t),jx(e,t)}function Pv(e){return su[e.__brushOption.brushType]}function Iv(e,t,r){var n=e._panels;if(!n)return Qn;var i,a=e._transform;return A(n,function(o){o.isTargetByCursor(t,r,a)&&(i=o)}),i}function Qx(e,t){var r=e._panels;if(!r)return Qn;var n=t.__brushOption.panelId;return n!=null?r[n]:Qn}function zc(e){var t=e._covers,r=t.length;return A(t,function(n){e.group.remove(n)},e),t.length=0,!!r}function Jn(e,t){var r=z(e._covers,function(n){var i=n.__brushOption,a=j(i.range);return{brushType:i.brushType,panelId:i.panelId,range:a}});e.trigger("brush",{areas:r,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function aN(e){var t=e._track;if(!t.length)return!1;var r=t[t.length-1],n=t[0],i=r[0]-n[0],a=r[1]-n[1],o=KO(i*i+a*a,.5);return o>JO}function Jx(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function tb(e,t,r,n){var i=new Dt;return i.add(new wt({name:"main",style:Ov(r),silent:!0,draggable:!0,cursor:"move",drift:dt(yy,e,t,i,["n","s","w","e"]),ondragend:dt(Jn,t,{isEnd:!0})})),A(n,function(a){i.add(new wt({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:dt(yy,e,t,i,a),ondragend:dt(Jn,t,{isEnd:!0})}))}),i}function eb(e,t,r,n){var i=n.brushStyle.lineWidth||0,a=Xi(i,tN),o=r[0][0],s=r[1][0],l=o-i/2,u=s-i/2,f=r[0][1],c=r[1][1],v=f-a+i/2,h=c-a+i/2,d=f-o,g=c-s,p=d+i,y=g+i;yr(e,t,"main",o,s,d,g),n.transformable&&(yr(e,t,"w",l,u,a,y),yr(e,t,"e",v,u,a,y),yr(e,t,"n",l,u,p,a),yr(e,t,"s",l,h,p,a),yr(e,t,"nw",l,u,a,a),yr(e,t,"ne",v,u,a,a),yr(e,t,"sw",l,h,a,a),yr(e,t,"se",v,h,a,a))}function Gc(e,t){var r=t.__brushOption,n=r.transformable,i=t.childAt(0);i.useStyle(Ov(r)),i.attr({silent:!n,cursor:n?"move":"default"}),A([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?$c(e,a[0]):sN(e,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?rN[s]+"-resize":null})})}function yr(e,t,r,n,i,a,o){var s=t.childOfName(r);s&&s.setShape(uN(Nv(e,t,[[n,i],[n+a,i+o]])))}function Ov(e){return Y({strokeNoScale:!0},e.brushStyle)}function rb(e,t,r,n){var i=[vo(e,r),vo(t,n)],a=[Xi(e,r),Xi(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function oN(e){return Bh(e.group)}function $c(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=h_(r[t],oN(e));return n[i]}function sN(e,t){var r=[$c(e,t[0]),$c(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function yy(e,t,r,n,i,a){var o=r.__brushOption,s=e.toRectRange(o.range),l=nb(t,i,a);A(n,function(u){var f=eN[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=e.fromRectRange(rb(s[0][0],s[1][0],s[0][1],s[1][1])),Lv(t,r),Jn(t,{isEnd:!1})}function lN(e,t,r,n){var i=t.__brushOption.range,a=nb(e,r,n);A(i,function(o){o[0]+=a[0],o[1]+=a[1]}),Lv(e,t),Jn(e,{isEnd:!1})}function nb(e,t,r){var n=e.group,i=n.transformCoordToLocal(t,r),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function Nv(e,t,r){var n=Qx(e,t);return n&&n!==Qn?n.clipPath(r,e._transform):j(r)}function uN(e){var t=vo(e[0][0],e[1][0]),r=vo(e[0][1],e[1][1]),n=Xi(e[0][0],e[1][0]),i=Xi(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:i-r}}function fN(e,t,r){if(!(!e._brushType||hN(e,t.offsetX,t.offsetY))){var n=e._zr,i=e._covers,a=Iv(e,t,r);if(!e._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===Qn||s.panelId===a.panelId)&&su[s.brushType].contain(i[o],r[0],r[1]))return}a&&n.setCursorStyle("crosshair")}}function Hc(e){var t=e.event;t.preventDefault&&t.preventDefault()}function Wc(e,t,r){return e.childOfName("main").contain(t,r)}function ib(e,t,r,n){var i=e._creatingCover,a=e._creatingPanel,o=e._brushOption,s;if(e._track.push(r.slice()),aN(e)||i){if(a&&!i){o.brushMode==="single"&&zc(e);var l=j(o);l.brushType=my(l.brushType,a),l.panelId=a===Qn?null:a.panelId,i=e._creatingCover=qx(e,l),e._covers.push(i)}if(i){var u=su[my(e._brushType,a)],f=i.__brushOption;f.range=u.getCreatingRange(Nv(e,i,e._track)),n&&(Zx(e,i),u.updateCommon(e,i)),jx(e,i),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&Iv(e,t,r)&&zc(e)&&(s={isEnd:n,removeOnClick:!0});return s}function my(e,t){return e==="auto"?(process.env.NODE_ENV!=="production"&&J(t&&t.defaultBrushType,'MUST have defaultBrushType when brushType is "atuo"'),t.defaultBrushType):e}var cN={mousedown:function(e){if(this._dragging)_y(this,e);else if(!e.target||!e.target.draggable){Hc(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var r=this._creatingPanel=Iv(this,e,t);r&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,r=e.offsetY,n=this.group.transformCoordToLocal(t,r);if(fN(this,e,n),this._dragging){Hc(e);var i=ib(this,e,n,!1);i&&Jn(this,i)}},mouseup:function(e){_y(this,e)}};function _y(e,t){if(e._dragging){Hc(t);var r=t.offsetX,n=t.offsetY,i=e.group.transformCoordToLocal(r,n),a=ib(e,t,i,!0);e._dragging=!1,e._track=[],e._creatingCover=null,a&&Jn(e,a)}}function hN(e,t,r){var n=e._zr;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var su={lineX:xy(0),lineY:xy(1),rect:{createCover:function(e,t){function r(n){return n}return tb({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=Jx(e);return rb(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){eb(e,t,r,n)},updateCommon:Gc,contain:Wc},polygon:{createCover:function(e,t){var r=new Dt;return r.add(new ln({name:"main",style:Ov(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new ii({name:"main",draggable:!0,drift:dt(lN,e,t),ondragend:dt(Jn,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:Nv(e,t,r)})},updateCommon:Gc,contain:Wc}};function xy(e){return{createCover:function(t,r){return tb({toRectRange:function(n){var i=[n,[0,100]];return e&&i.reverse(),i},fromRectRange:function(n){return n[e]}},t,r,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var r=Jx(t),n=vo(r[0][e],r[1][e]),i=Xi(r[0][e],r[1][e]);return[n,i]},updateCoverShape:function(t,r,n,i){var a,o=Qx(t,r);if(o!==Qn&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[n,a];e&&l.reverse(),eb(t,r,l,i)},updateCommon:Gc,contain:Wc}}const vN=iN;function dN(e){return e=Rv(e),function(t){return Fh(t,e)}}function pN(e,t){return e=Rv(e),function(r){var n=t!=null?t:r,i=n?e.width:e.height,a=n?e.x:e.y;return[a,a+(i||0)]}}function gN(e,t,r){var n=Rv(e);return function(i,a){return n.contain(a[0],a[1])&&!mO(i,t,r)}}function Rv(e){return it.create(e)}var yN=["axisLine","axisTickLabel","axisName"],mN=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){e.prototype.init.apply(this,arguments),(this._brushController=new vN(n.getZr())).on("brush",ht(this._onBrush,this))},t.prototype.render=function(r,n,i,a){if(!_N(r,n,a)){this.axisModel=r,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Dt,this.group.add(this._axisGroup),!!r.get("show")){var s=bN(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),f=u.width,c=r.axis.dim,v=l.getAxisLayout(c),h=k({strokeContainThreshold:f},v),d=new an(r,h);A(yN,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(h,u,r,s,f,i),Vl(o,this._axisGroup,r)}}},t.prototype._refreshBrushController=function(r,n,i,a,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),c=it.create({x:l[0],y:-o/2,width:u,height:o});c.x-=f,c.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:r.rotation,x:r.position[0],y:r.position[1]}).setPanels([{panelId:"pl",clipPath:dN(c),isTargetByCursor:gN(c,s,a),getLinearBrushOtherExtent:pN(c,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(xN(i))},t.prototype._onBrush=function(r){var n=r.areas,i=this.axisModel,a=i.axis,o=z(n,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});(!i.option.realtime===r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Vt);function _N(e,t,r){return r&&r.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function xN(e){var t=e.axis;return z(e.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(r[0],!0),t.dataToCoord(r[1],!0)]}})}function bN(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}const SN=mN;var wN={type:"axisAreaSelect",event:"axisAreaSelected"};function TN(e){e.registerAction(wN,function(t,r){r.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),e.registerAction("parallelAxisExpand",function(t,r){r.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var CN={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function DN(e){e.registerComponentView(kO),e.registerComponentModel(FO),e.registerCoordinateSystem("parallel",jO),e.registerPreprocessor(LO),e.registerComponentModel(dy),e.registerComponentView(SN),co(e,"parallel",dy,CN),TN(e)}var Rn=xt(),by=j,Of=ht,AN=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,t,r,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new Dt,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var v=dt(Sy,r,c);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,r)}Ty(s,r,!0),this._renderHandle(a)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),i=t.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=Ev(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,i,a){},e.prototype.createPointerEl=function(t,r,n,i){var a=r.pointer;if(a){var o=Rn(t).pointerEl=new UD[a.type](by(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=Rn(t).labelEl=new Ot(by(r.label));t.add(a),wy(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=Rn(t).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,i){var a=Rn(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),wy(a,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=zl(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Nm(u.event)},onmousedown:Of(this._onHandleDragMove,this,0,0),drift:Of(this._onHandleDragMove,this),ondragend:Of(this._onHandleDragEnd,this)}),n.add(i)),Ty(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");V(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,av(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){Sy(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Nf(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(!!n){this._dragging=!0;var i=this.updateHandleTransform(Nf(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Nf(i)),Rn(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(!!t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(!!t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),sl(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e}();function Sy(e,t,r,n){ab(Rn(r).lastProp,n)||(Rn(r).lastProp=n,t?Lt(r,n,e):(r.stopAnimation(),r.attr(n)))}function ab(e,t){if(H(e)&&H(t)){var r=!0;return A(t,function(n,i){r=r&&ab(e[i],n)}),!!r}else return e===t}function wy(e,t){e[t.get(["label","show"])?"show":"hide"]()}function Nf(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function Ty(e,t,r){var n=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}const ob=AN;function sb(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function lb(e,t,r,n,i){var a=r.get("value"),o=ub(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Do(s.get("padding")||0),u=s.getFont(),f=Al(o,u),c=i.position,v=f.width+l[1]+l[3],h=f.height+l[0]+l[2],d=i.align;d==="right"&&(c[0]-=v),d==="center"&&(c[0]-=v/2);var g=i.verticalAlign;g==="bottom"&&(c[1]-=h),g==="middle"&&(c[1]-=h/2),MN(c,v,h,n);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=t.get(["axisLine","lineStyle","color"])),e.label={x:c[0],y:c[1],style:fr(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:p}),z2:10}}function MN(e,t,r,n){var i=n.getWidth(),a=n.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+r,a)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function ub(e,t,r,n,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:bv(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};A(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),$(o)?a=o.replace("{value}",a):X(o)&&(a=o(s))}return a}function fb(e,t,r){var n=Dr();return Zi(n,n,r.rotation),Fi(n,n,r.position),To([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function EN(e,t,r,n,i,a){var o=an.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),lb(t,n,i,a,{position:fb(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function cb(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function LN(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function Cy(e,t,r,n,i,a){return{cx:e,cy:t,r0:r,r:n,startAngle:i,endAngle:a,clockwise:!0}}var PN=function(e){R(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=Dy(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var v=sb(a),h=IN[u](s,c,f);h.style=v,r.graphicKey=h.type,r.pointer=h}var d=Bc(l.model,i);EN(n,r,d,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=Bc(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=fb(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=Dy(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=n[f],c[f]=Math.min(l[1],c[f]),c[f]=Math.max(l[0],c[f]);var v=(u[1]+u[0])/2,h=[v,v];h[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:d[f]}},t}(ob);function Dy(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var IN={line:function(e,t,r){var n=cb([t,r[0]],[t,r[1]],Ay(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:LN([t-n/2,r[0]],[n,i],Ay(e))}}};function Ay(e){return e.dim==="x"?0:1}const ON=PN;var NN=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#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}},t}(st);const RN=NN;var Sr=xt(),kN=A;function hb(e,t,r){if(!tt.node){var n=t.getZr();Sr(n).records||(Sr(n).records={}),BN(n,t);var i=Sr(n).records[e]||(Sr(n).records[e]={});i.handler=r}}function BN(e,t){if(Sr(e).initialized)return;Sr(e).initialized=!0,r("click",dt(My,"click")),r("mousemove",dt(My,"mousemove")),r("globalout",VN);function r(n,i){e.on(n,function(a){var o=zN(t);kN(Sr(e).records,function(s){s&&i(s,a,o.dispatchAction)}),FN(o.pendings,t)})}}function FN(e,t){var r=e.showTip.length,n=e.hideTip.length,i;r?i=e.showTip[r-1]:n&&(i=e.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function VN(e,t,r){e.handler("leave",null,r)}function My(e,t,r,n){t.handler(e,r,n)}function zN(e){var t={showTip:[],hideTip:[]},r=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function Uc(e,t){if(!tt.node){var r=t.getZr(),n=(Sr(r).records||{})[e];n&&(Sr(r).records[e]=null)}}var GN=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";hb("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){Uc("axisPointer",n)},t.prototype.dispose=function(r,n){Uc("axisPointer",n)},t.type="axisPointer",t}(Vt);const $N=GN;function vb(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=qn(a,e);if(o==null||o<0||V(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,v=u.dim,h=c==="x"||c==="radius"?1:0,d=a.mapDimension(v),g=[];g[h]=a.get(d,o),g[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(g)||[]}else r=l.dataToPoint(a.getValues(z(l.dimensions,function(y){return a.mapDimension(y)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),r=[p.x+p.width/2,p.y+p.height/2]}return{point:r,el:s}}var Ey=xt();function HN(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||ht(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(!!s){ks(i)&&(i=vb({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=ks(i),u=a.axesInfo,f=s.axesInfo,c=n==="leave"||ks(i),v={},h={},d={list:[],map:{}},g={showPointer:dt(UN,h),showTooltip:dt(YN,d)};A(s.coordSysMap,function(y,m){var _=l||y.containPoint(i);A(s.coordSysAxesInfo[m],function(x,w){var b=x.axis,S=jN(u,x);if(!c&&_&&(!u||S)){var T=S&&S.value;T==null&&!l&&(T=b.pointToData(i)),T!=null&&Ly(x,T,g,!1,v)}})});var p={};return A(f,function(y,m){var _=y.linkGroup;_&&!h[m]&&A(_.axesInfo,function(x,w){var b=h[w];if(x!==y&&b){var S=b.value;_.mapper&&(S=y.axis.scale.parse(_.mapper(S,Py(x),Py(y)))),p[y.key]=S}})}),A(p,function(y,m){Ly(f[m],y,g,!0,v)}),XN(h,f,v),qN(d,i,e,o),ZN(f,o,r),v}}function Ly(e,t,r,n,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=WN(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&k(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function WN(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return A(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,v;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,e,r);v=h.dataIndices,c=h.nestestValue}else{if(v=l.getData().indicesOfNearest(f[0],e,r.type==="category"?.5:null),!v.length)return;c=l.getData().get(f[0],v[0])}if(!(c==null||!isFinite(c))){var d=e-c,g=Math.abs(d);g<=o&&((g<o||d>=0&&s<0)&&(o=g,s=d,i=c,a.length=0),A(v,function(p){a.push({seriesIndex:l.seriesIndex,dataIndexInside:p,dataIndex:l.getData().getRawIndex(p)})}))}}),{payloadBatch:a,snapToValue:i}}function UN(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function YN(e,t,r,n){var i=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=ho(l),f=e.map[u];f||(f=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function XN(e,t,r){var n=r.axesInfo=[];A(t,function(i,a){var o=i.axisPointerModel.option,s=e[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function qN(e,t,r,n){if(ks(t)||!e.list.length){n({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function ZN(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=Ey(n)[i]||{},o=Ey(n)[i]={};A(e,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&A(c.seriesDataIndices,function(v){var h=v.seriesIndex+" | "+v.dataIndex;o[h]=v})});var s=[],l=[];A(a,function(u,f){!o[f]&&l.push(u)}),A(o,function(u,f){!a[f]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function jN(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function Py(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function ks(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function lu(e){Eo.registerAxisPointerClass("CartesianAxisPointer",ON),e.registerComponentModel(RN),e.registerComponentView($N),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!V(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=H2(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},HN)}function KN(e){cr(iO),cr(lu)}var QN=function(e){R(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),c=s.dataToCoord(n),v=a.get("type");if(v&&v!=="none"){var h=sb(a),d=tR[v](s,l,c,f);d.style=h,r.graphicKey=d.type,r.pointer=d}var g=a.get(["label","margin"]),p=JN(n,i,a,l,g);lb(r,i,a,o,p)},t}(ob);function JN(e,t,r,n,i){var a=t.axis,o=a.dataToCoord(e),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,f,c;if(a.dim==="radius"){var v=Dr();Zi(v,v,s),Fi(v,v,[n.cx,n.cy]),u=To([o,-i],v);var h=t.getModel("axisLabel").get("rotate")||0,d=an.innerTextLayout(s,h*Math.PI/180,-1);f=d.textAlign,c=d.textVerticalAlign}else{var g=l[1];u=n.coordToPoint([g+i,o]);var p=n.cx,y=n.cy;f=Math.abs(u[0]-p)/g<.3?"center":u[0]>p?"left":"right",c=Math.abs(u[1]-y)/g<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:c}}var tR={line:function(e,t,r,n){return e.dim==="angle"?{type:"Line",shape:cb(t.coordToPoint([n[0],r]),t.coordToPoint([n[1],r]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r}}},shadow:function(e,t,r,n){var i=Math.max(1,e.getBandWidth()),a=Math.PI/180;return e.dim==="angle"?{type:"Sector",shape:Cy(t.cx,t.cy,n[0],n[1],(-r-i/2)*a,(-r+i/2)*a)}:{type:"Sector",shape:Cy(t.cx,t.cy,r-i/2,r+i/2,0,Math.PI*2)}}};const eR=QN;var rR=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.findAxisModel=function(r){var n,i=this.ecModel;return i.eachComponent(r,function(a){a.getCoordSysModel()===this&&(n=a)},this),n},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(st);const nR=rR;var kv=function(e){R(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",fe).models[0]},t.type="polarAxis",t}(st);ie(kv,Mo);var iR=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="angleAxis",t}(kv),aR=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="radiusAxis",t}(kv),Bv=function(e){R(t,e);function t(r,n){return e.call(this,"radius",r,n)||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t}(vr);Bv.prototype.dataToRadius=vr.prototype.dataToCoord;Bv.prototype.radiusToData=vr.prototype.coordToData;const oR=Bv;var sR=xt(),Fv=function(e){R(t,e);function t(r,n){return e.call(this,"angle",r,n||[0,360])||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var r=this,n=r.getLabelModel(),i=r.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=a[0],l=r.dataToCoord(s+1)-r.dataToCoord(s),u=Math.abs(l),f=Al(s==null?"":s+"",n.getFont(),"center","top"),c=Math.max(f.height,7),v=c/u;isNaN(v)&&(v=1/0);var h=Math.max(0,Math.floor(v)),d=sR(r.model),g=d.lastAutoInterval,p=d.lastTickCount;return g!=null&&p!=null&&Math.abs(g-h)<=1&&Math.abs(p-o)<=1&&g>h?h=g:(d.lastTickCount=o,d.lastAutoInterval=h),h},t}(vr);Fv.prototype.dataToAngle=vr.prototype.dataToCoord;Fv.prototype.angleToData=vr.prototype.coordToData;const lR=Fv;var db=["radius","angle"],uR=function(){function e(t){this.dimensions=db,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new oR,this._angleAxis=new lR,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(t){var r=this.pointToCoord(t);return this._radiusAxis.contain(r[0])&&this._angleAxis.contain(r[1])},e.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},e.prototype.getAxis=function(t){var r="_"+t+"Axis";return this[r]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(t){var r=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&r.push(n),i.scale.type===t&&r.push(i),r},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(t){var r=this._angleAxis;return t===r?this._radiusAxis:r},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(t){var r=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[r],otherAxes:[this.getOtherAxis(r)]}},e.prototype.dataToPoint=function(t,r){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],r),this._angleAxis.dataToAngle(t[1],r)])},e.prototype.pointToData=function(t,r){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],r),this._angleAxis.angleToData(n[1],r)]},e.prototype.pointToCoord=function(t){var r=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),a=i.getExtent(),o=Math.min(a[0],a[1]),s=Math.max(a[0],a[1]);i.inverse?o=s-360:s=o+360;var l=Math.sqrt(r*r+n*n);r/=l,n/=l;for(var u=Math.atan2(-n,r)/Math.PI*180,f=u<o?1:-1;u<o||u>s;)u+=f*360;return[l,u]},e.prototype.coordToPoint=function(t){var r=t[0],n=t[1]/180*Math.PI,i=Math.cos(n)*r+this.cx,a=-Math.sin(n)*r+this.cy;return[i,a]},e.prototype.getArea=function(){var t=this.getAngleAxis(),r=this.getRadiusAxis(),n=r.getExtent().slice();n[0]>n[1]&&n.reverse();var i=t.getExtent(),a=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*a,endAngle:-i[1]*a,clockwise:t.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,f=l*l+u*u-1e-4,c=this.r,v=this.r0;return f<=c*c&&f>=v*v}}},e.prototype.convertToPixel=function(t,r,n){var i=Iy(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=Iy(r);return i===this?this.pointToData(n):null},e}();function Iy(e){var t=e.seriesModel,r=e.polarModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}const fR=uR;function cR(e,t,r){var n=t.get("center"),i=r.getWidth(),a=r.getHeight();e.cx=K(n[0],i),e.cy=K(n[1],a);var o=e.getRadiusAxis(),s=Math.min(i,a)/2,l=t.get("radius");l==null?l=[0,"100%"]:V(l)||(l=[0,l]);var u=[K(l[0],s),K(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function hR(e,t){var r=this,n=r.getAngleAxis(),i=r.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),e.eachSeries(function(s){if(s.coordinateSystem===r){var l=s.getData();A(Oc(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),A(Oc(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),Yi(n.scale,n.model),Yi(i.scale,i.model),n.type==="category"&&!n.onBand){var a=n.getExtent(),o=360/n.scale.count();n.inverse?a[1]+=o:a[1]-=o,n.setExtent(a[0],a[1])}}function vR(e){return e.mainType==="angleAxis"}function Oy(e,t){if(e.type=t.get("type"),e.scale=ou(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),vR(t)){e.inverse=e.inverse!==t.get("clockwise");var r=t.get("startAngle");e.setExtent(r,r+(e.inverse?-360:360))}t.axis=e,e.model=t}var dR={dimensions:db,create:function(e,t){var r=[];return e.eachComponent("polar",function(n,i){var a=new fR(i+"");a.update=hR;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");Oy(o,l),Oy(s,u),cR(a,n,t),r.push(a),n.coordinateSystem=a,a.model=n}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var i=n.getReferringComponents("polar",fe).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error('Polar "'+Cr(n.get("polarIndex"),n.get("polarId"),0)+'" not found');n.coordinateSystem=i.coordinateSystem}}),r}};const pR=dR;var gR=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function ys(e,t,r){t[1]>t[0]&&(t=t.slice().reverse());var n=e.coordToPoint([t[0],r]),i=e.coordToPoint([t[1],r]);return{x1:n[0],y1:n[1],x2:i[0],y2:i[1]}}function ms(e){var t=e.getRadiusAxis();return t.inverse?0:1}function Ny(e){var t=e[0],r=e[e.length-1];t&&r&&Math.abs(Math.abs(t.coord-r.coord)-360)<1e-4&&e.pop()}var yR=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return t.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var i=r.axis,a=i.polar,o=a.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=z(i.getViewLabels(),function(f){f=j(f);var c=i.scale,v=c.type==="ordinal"?c.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=i.dataToCoord(v),f});Ny(u),Ny(s),A(gR,function(f){r.get([f,"show"])&&(!i.scale.isBlank()||f==="axisLine")&&mR[f](this.group,r,a,s,l,o,u)},this)}},t.type="angleAxis",t}(Eo),mR={axisLine:function(e,t,r,n,i,a){var o=t.getModel(["axisLine","lineStyle"]),s=ms(r),l=s?0:1,u;a[l]===0?u=new rn({shape:{cx:r.cx,cy:r.cy,r:a[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new wo({shape:{cx:r.cx,cy:r.cy,r:a[s],r0:a[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,e.add(u)},axisTick:function(e,t,r,n,i,a){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[ms(r)],u=z(n,function(f){return new Me({shape:ys(r,[l,l+s],f.coord)})});e.add(De(u,{style:Y(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,r,n,i,a){if(!!i.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[ms(r)],f=[],c=0;c<i.length;c++)for(var v=0;v<i[c].length;v++)f.push(new Me({shape:ys(r,[u,u+l],i[c][v].coord)}));e.add(De(f,{style:Y(s.getModel("lineStyle").getLineStyle(),Y(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,r,n,i,a,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),f=t.get("triggerEvent");A(o,function(c,v){var h=l,d=c.tickValue,g=a[ms(r)],p=r.coordToPoint([g+u,c.coord]),y=r.cx,m=r.cy,_=Math.abs(p[0]-y)/g<.3?"center":p[0]>y?"left":"right",x=Math.abs(p[1]-m)/g<.3?"middle":p[1]>m?"top":"bottom";if(s&&s[d]){var w=s[d];H(w)&&w.textStyle&&(h=new Et(w.textStyle,l,l.ecModel))}var b=new Ot({silent:an.isLabelSilent(t),style:fr(h,{x:p[0],y:p[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:c.formattedLabel,align:_,verticalAlign:x})});if(e.add(b),f){var S=an.makeAxisEventDataBase(t);S.targetType="axisLabel",S.value=c.rawLabel,ut(b).eventData=S}},this)},splitLine:function(e,t,r,n,i,a){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=0;c<n.length;c++){var v=u++%l.length;f[v]=f[v]||[],f[v].push(new Me({shape:ys(r,a,n[c].coord)}))}for(var c=0;c<f.length;c++)e.add(De(f[c],{style:Y({stroke:l[c%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,r,n,i,a){if(!!i.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<i.length;u++)for(var f=0;f<i[u].length;f++)l.push(new Me({shape:ys(r,a,i[u][f].coord)}));e.add(De(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,r,n,i,a){if(!!n.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=Math.PI/180,v=-n[0].coord*c,h=Math.min(a[0],a[1]),d=Math.max(a[0],a[1]),g=t.get("clockwise"),p=1,y=n.length;p<=y;p++){var m=p===y?n[0].coord:n[p].coord,_=u++%l.length;f[_]=f[_]||[],f[_].push(new Ie({shape:{cx:r.cx,cy:r.cy,r0:h,r:d,startAngle:v,endAngle:-m*c,clockwise:g},silent:!0})),v=-m*c}for(var p=0;p<f.length;p++)e.add(De(f[p],{style:Y({fill:l[p%l.length]},s.getAreaStyle()),silent:!0}))}}};const _R=yR;var xR=["axisLine","axisTickLabel","axisName"],bR=["splitLine","splitArea","minorSplitLine"],SR=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return t.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var i=this._axisGroup,a=this._axisGroup=new Dt;this.group.add(a);var o=r.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),f=o.getMinorTicksCoords(),c=l.getExtent()[0],v=o.getExtent(),h=TR(s,r,c),d=new an(r,h);A(xR,d.add,d),a.add(d.getGroup()),Vl(i,a,r),A(bR,function(g){r.get([g,"show"])&&!o.scale.isBlank()&&wR[g](this.group,r,s,c,v,u,f)},this)}},t.type="radiusAxis",t}(Eo),wR={splitLine:function(e,t,r,n,i,a){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=0;c<a.length;c++){var v=u++%l.length;f[v]=f[v]||[],f[v].push(new rn({shape:{cx:r.cx,cy:r.cy,r:Math.max(a[c].coord,0)}}))}for(var c=0;c<f.length;c++)e.add(De(f[c],{style:Y({stroke:l[c%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,r,n,i,a,o){if(!!o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],f=0;f<o.length;f++)for(var c=0;c<o[f].length;c++)u.push(new rn({shape:{cx:r.cx,cy:r.cy,r:o[f][c].coord}}));e.add(De(u,{style:Y({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(e,t,r,n,i,a){if(!!a.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=a[0].coord,v=1;v<a.length;v++){var h=u++%l.length;f[h]=f[h]||[],f[h].push(new Ie({shape:{cx:r.cx,cy:r.cy,r0:c,r:a[v].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),c=a[v].coord}for(var v=0;v<f.length;v++)e.add(De(f[v],{style:Y({fill:l[v%l.length]},s.getAreaStyle()),silent:!0}))}}};function TR(e,t,r){return{position:[e.cx,e.cy],rotation:r/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}const CR=SR;function pb(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function gb(e,t){return t.dim+e.model.componentIndex}function DR(e,t,r){var n={},i=AR(_t(t.getSeriesByType(e),function(a){return!t.isSeriesFiltered(a)&&a.coordinateSystem&&a.coordinateSystem.type==="polar"}));t.eachSeriesByType(e,function(a){if(a.coordinateSystem.type==="polar"){var o=a.getData(),s=a.coordinateSystem,l=s.getBaseAxis(),u=gb(s,l),f=pb(a),c=i[u][f],v=c.offset,h=c.width,d=s.getOtherAxis(l),g=a.coordinateSystem.cx,p=a.coordinateSystem.cy,y=a.get("barMinHeight")||0,m=a.get("barMinAngle")||0;n[f]=n[f]||[];for(var _=o.mapDimension(d.dim),x=o.mapDimension(l.dim),w=nn(o,_),b=l.dim!=="radius"||!a.get("roundCap",!0),S=d.dataToCoord(0),T=0,D=o.count();T<D;T++){var M=o.get(_,T),C=o.get(x,T),E=M>=0?"p":"n",L=S;w&&(n[f][C]||(n[f][C]={p:S,n:S}),L=n[f][C][E]);var P=void 0,I=void 0,O=void 0,F=void 0;if(d.dim==="radius"){var N=d.dataToCoord(M)-S,B=l.dataToCoord(C);Math.abs(N)<y&&(N=(N<0?-1:1)*y),P=L,I=L+N,O=B-v,F=O-h,w&&(n[f][C][E]=I)}else{var G=d.dataToCoord(M,b)-S,W=l.dataToCoord(C);Math.abs(G)<m&&(G=(G<0?-1:1)*m),P=W+v,I=P+h,O=L,F=L+G,w&&(n[f][C][E]=F)}o.setItemLayout(T,{cx:g,cy:p,r0:P,r:I,startAngle:-O*Math.PI/180,endAngle:-F*Math.PI/180,clockwise:O>=F})}}})}function AR(e){var t={};A(e,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=gb(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/a.count(),c=t[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},v=c.stacks;t[l]=c;var h=pb(n);v[h]||c.autoWidthCount++,v[h]=v[h]||{width:0,maxWidth:0};var d=K(n.get("barWidth"),f),g=K(n.get("barMaxWidth"),f),p=n.get("barGap"),y=n.get("barCategoryGap");d&&!v[h].width&&(d=Math.min(c.remainedWidth,d),v[h].width=d,c.remainedWidth-=d),g&&(v[h].maxWidth=g),p!=null&&(c.gap=p),y!=null&&(c.categoryGap=y)});var r={};return A(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=K(n.categoryGap,o),l=K(n.gap,1),u=n.remainedWidth,f=n.autoWidthCount,c=(u-s)/(f+(f-1)*l);c=Math.max(c,0),A(a,function(g,p){var y=g.maxWidth;y&&y<c&&(y=Math.min(y,u),g.width&&(y=Math.min(y,g.width)),u-=y,g.width=y,f--)}),c=(u-s)/(f+(f-1)*l),c=Math.max(c,0);var v=0,h;A(a,function(g,p){g.width||(g.width=c),h=g,v+=g.width*(1+l)}),h&&(v-=h.width*l);var d=-v/2;A(a,function(g,p){r[i][p]=r[i][p]||{offset:d,width:g.width},d+=g.width*(1+l)})}),r}var MR={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},ER={splitNumber:5},LR=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="polar",t}(Vt);function PR(e){cr(lu),Eo.registerAxisPointerClass("PolarAxisPointer",eR),e.registerCoordinateSystem("polar",pR),e.registerComponentModel(nR),e.registerComponentView(LR),co(e,"angle",iR,MR),co(e,"radius",aR,ER),e.registerComponentView(_R),e.registerComponentView(CR),e.registerLayout(dt(DR,"bar"))}function IR(e,t){var r=Do(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new wt({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),e}var OR=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,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}},t}(st);const NR=OR;function yb(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function mb(e){if(!!tt.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var _b=mb(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),RR=mb(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function xb(e,t){if(!e)return t;t=Xh(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function kR(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?t?r[t]:r:null}var BR=xb(RR,"transition"),Vv=xb(_b,"transform"),FR="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(tt.transform3dSupported?"will-change:transform;":"");function VR(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function zR(e,t,r){if(!$(r)||r==="inside")return"";var n=e.get("backgroundColor"),i=e.get("borderWidth");t=Zn(t);var a=VR(r),o=Math.max(Math.round(i)*1.5,6),s="",l=Vv+":",u;ct(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+i,v=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),h=Math.round(((v-Math.SQRT2*i)/2+Math.SQRT2*i-(v-c)/2)*100)/100;s+=";"+a+":-"+h+"px";var d=t+" solid "+i+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+g.join("")+'"></div>'}function GR(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,i="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,i+=tt.transformSupported?","+Vv+n:",left"+n+",top"+n),BR+":"+i}function Ry(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!tt.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=tt.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+Vv+":"+o+";":[["top",0],["left",0],[_b,o]]}function $R(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont()),r&&t.push("line-height:"+Math.round(r*3/2)+"px");var i=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),A(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function HR(e,t,r){var n=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),f=e.getModel("textStyle"),c=i1(e,"html"),v=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+v),t&&i&&n.push(GR(i,r)),a&&n.push("background-color:"+a),A(["width","color","radius"],function(h){var d="border-"+h,g=Xh(d),p=e.get(g);p!=null&&n.push(d+":"+p+(h==="color"?"":"px"))}),n.push($R(f)),c!=null&&n.push("padding:"+Do(c).join("px ")+"px"),n.join(";")+";"}function ky(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&YS(e,o,document.body,n,i)}else{e[0]=n,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var WR=function(){function e(t,r,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,tt.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=r.getZr(),o=this._appendToBody=n&&n.appendToBody;ky(this._styleCoord,a,o,r.getWidth()/2,r.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,f=a.painter.getViewportRoot();Se(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){var r=this._container,n=kR(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative");var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=FR+HR(t,!this._firstShow,this._longHide)+Ry(a[0],a[1],!0)+("border-color:"+Zn(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if($(a)&&n.get("trigger")==="item"&&!yb(n)&&(s=zR(n,i,a)),$(t))o.innerHTML=t+s;else if(t){o.innerHTML="",V(t)||(t=[t]);for(var l=0;l<t.length;l++)ki(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},e.prototype.moveTo=function(t,r){var n=this._styleCoord;if(ky(n,this._zr,this._appendToBody,t,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=Ry(n[0],n[1]);A(a,function(o){i[o[0]]=o[1]})}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){var t=this,r=this.el.style;r.visibility="hidden",r.opacity="0",tt.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(ht(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},e}();const UR=WR;var YR=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),Fy(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,r,n,i,a){var o=this;H(t)&&lt(process.env.NODE_ENV!=="production"?"Passing DOM nodes as content is not supported in richText tooltip!":""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Ot({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:i1(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),A(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),A(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,r=this.el.getBoundingRect(),n=By(t.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},e.prototype.moveTo=function(t,r){var n=this.el;if(n){var i=this._styleCoord;Fy(i,this._zr,t,r),t=i[0],r=i[1];var a=n.style,o=Hr(a.borderWidth||0),s=By(a);n.x=t+o+s.left,n.y=r+o+s.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(ht(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function Hr(e){return Math.max(0,e)}function By(e){var t=Hr(e.shadowBlur||0),r=Hr(e.shadowOffsetX||0),n=Hr(e.shadowOffsetY||0);return{left:Hr(t-r),right:Hr(t+r),top:Hr(t-n),bottom:Hr(t+n)}}function Fy(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}const XR=YR;var qR=new wt({shape:{x:-1,y:-1,width:2,height:2}}),ZR=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){if(!(tt.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=zT(i.get("renderMode"));this._tooltipContent=a==="richText"?new XR(n):new UR(n.getDom(),n,{appendToBody:i.get("appendToBody",!0)})}},t.prototype.render=function(r,n,i){if(!(tt.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?av(this,"_updatePosition",50,"fixRate"):sl(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");hb("itemTooltip",this._api,ht(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||tt.node||!i.getDom())){var o=Vy(a,i);this._ticket="";var s=a.dataByCoordSys,l=JR(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=qR;f.x=a.x,f.y=a.y,f.update(),ut(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var c=vb(a,n),v=c.point[0],h=c.point[1];v!=null&&h!=null&&this._tryShow({offsetX:v,offsetY:h,target:c.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(Vy(a,i))},t.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(!!u){var f=u.getData(),c=Da([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(!!a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){this._lastDataByCoordSys=null;var s,l;Ra(i,function(u){if(ut(u).dataIndex!=null)return s=u,!0;if(ut(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(r,s,n):l?this._showComponentItemTooltip(r,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=ht(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Da([n.tooltipOption],a),l=this._renderMode,u=[],f=so("section",{blocks:[],noHeader:!0}),c=[],v=new nf;A(r,function(m){A(m.dataByAxis,function(_){var x=i.getComponent(_.axisDim+"Axis",_.axisIndex),w=_.value;if(!(!x||w==null)){var b=ub(w,x.axis,i,_.seriesDataIndices,_.valueLabelOpt),S=so("section",{header:b,noHeader:!He(b),sortBlocks:!0,blocks:[]});f.blocks.push(S),A(_.seriesDataIndices,function(T){var D=i.getSeriesByIndex(T.seriesIndex),M=T.dataIndexInside,C=D.getDataParams(M);if(!(C.dataIndex<0)){C.axisDim=_.axisDim,C.axisIndex=_.axisIndex,C.axisType=_.axisType,C.axisId=_.axisId,C.axisValue=bv(x.axis,{value:w}),C.axisValueLabel=b,C.marker=v.makeTooltipMarker("item",Zn(C.color),l);var E=Ip(D.formatTooltip(M,!0,null)),L=E.frag;if(L){var P=Da([D],a).get("valueFormatter");S.blocks.push(P?k({valueFormatter:P},L):L)}E.text&&c.push(E.text),u.push(C)}})}})}),f.blocks.reverse(),c.reverse();var h=n.position,d=s.get("order"),g=Fp(f,v,l,d,i.get("useUTC"),s.get("textStyle"));g&&c.unshift(g);var p=l==="richText"?`
46
+ `];function lo(e,t){return t.type=e,t}function xc(e){return e.type==="section"}function r1(e){return xc(e)?LM:PM}function n1(e){if(xc(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return A(e.blocks,function(i){var a=n1(i);a>=t&&(t=a+ +(n&&(!a||xc(i)&&!i.noHeader)))}),t}return 0}function LM(e,t,r,n){var i=t.noHeader,a=IM(n1(t)),o=[],s=t.blocks||[];J(!s||V(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ur(u,l)){var f=new Z_(u[l],null);s.sort(function(d,p){return f.evaluate(d.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}A(s,function(d,p){var g=t.valueFormatter,y=r1(d)(g?k(k({},e),{valueFormatter:g}):e,d,p>0?a.html:0,n);y!=null&&o.push(y)});var c=e.renderMode==="richText"?o.join(a.richText):bc(o.join(""),i?r:a.html);if(i)return c;var v=gc(t.header,"ordinal",e.useUTC),h=e1(n,e.renderMode).nameStyle;return e.renderMode==="richText"?i1(e,v,h)+a.richText+c:bc('<div style="'+h+";"+t1+';">'+de(v)+"</div>"+c,r)}function PM(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,f=t.valueFormatter||e.valueFormatter||function(x){return x=V(x)?x:[x],z(x,function(w,b){return gc(w,V(h)?h[b]:h,u)})};if(!(a&&o)){var c=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),v=a?"":gc(l,"ordinal",u),h=t.valueType,d=o?[]:f(t.value),p=!s||!a,g=!s&&a,y=e1(n,i),m=y.nameStyle,_=y.valueStyle;return i==="richText"?(s?"":c)+(a?"":i1(e,v,m))+(o?"":RM(e,d,p,g,_)):bc((s?"":c)+(a?"":OM(v,!s,m))+(o?"":NM(d,p,g,_)),r)}}function Vp(e,t,r,n,i,a){if(!!e){var o=r1(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function IM(e){return{html:MM[e],richText:EM[e]}}function bc(e,t){var r='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+t1+';">'+e+r+"</div>"}function OM(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+de(e)+"</span>"}function NM(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=V(e)?e:[e],'<span style="'+a+";"+n+'">'+z(e,function(o){return de(o)}).join("&nbsp;&nbsp;")+"</span>"}function i1(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function RM(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(V(t)?t.join(" "):t,a)}function kM(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return jn(n)}function a1(e,t){var r=e.get("padding");return r!=null?r:t==="richText"?[8,10]:10}var nf=function(){function e(){this.richTextStyles={},this._nextStyleNameId=c0()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=E_({color:r,type:t,renderMode:n,markerId:i});return $(a)?a:(process.env.NODE_ENV!=="production"&&J(i),this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};V(r)?A(r,function(a){return k(n,a)}):k(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function BM(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),l=V(s),u=kM(t,r),f,c,v,h;if(o>1||l&&!o){var d=FM(s,t,r,a,u);f=d.inlineValues,c=d.inlineValueTypes,v=d.blocks,h=d.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);h=f=Yi(i,r,a[0]),c=p.type}else h=f=l?s[0]:s;var g=Th(t),y=g&&t.name||"",m=i.getName(r),_=n?y:m;return lo("section",{header:y,noHeader:n||!g,sortParam:h,blocks:[lo("nameValue",{markerType:"item",markerColor:u,name:_,noName:!He(_),value:f,valueType:c})].concat(v||[])})}function FM(e,t,r,n,i){var a=t.getData(),o=lr(e,function(c,v,h){var d=a.getDimensionInfo(h);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?A(n,function(c){f(Yi(a,r,c),c)}):A(e,f);function f(c,v){var h=a.getDimensionInfo(v);!h||h.otherDims.tooltip===!1||(o?u.push(lo("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var kr=xt();function Ko(e,t){return e.getName(t)||e.getId(t)}var Rs="__universalTransitionEnabled",Ql=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Ua({count:zM,reset:GM}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=kr(this).sourceManager=new J_(this);a.prepareSource();var o=this.getInitialData(r,i);Gp(o,this),this.dataTask.context.data=o,process.env.NODE_ENV!=="production"&&J(o,"getInitialData returned invalid data."),kr(this).dataBeforeProcessed=o,zp(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=oo(this),a=i?ql(r):{},o=this.subType;st.hasClass(o)&&(o+="Series"),rt(r,n.getTheme().get(this.subType)),rt(r,this.getDefaultOption()),Zs(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Ui(r,a,i)},t.prototype.mergeOption=function(r,n){r=rt(this.option,r,!0),this.fillDataTextStyle(r.data);var i=oo(this);i&&Ui(this.option,r,i);var a=kr(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);Gp(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,kr(this).dataBeforeProcessed=o,zp(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!re(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&Zs(r[i],"label",n)},t.prototype.getInitialData=function(r,n){},t.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},t.prototype.getData=function(r){var n=Sc(this);if(n){var i=n.context.data;return r==null?i:i.getLinkedData(r)}else return kr(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var n=Sc(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}kr(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return Q(r)},t.prototype.getSourceManager=function(){return kr(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return kr(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.formatTooltip=function(r,n,i){return BM({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(tt.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=Qh.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(!!i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=Ko(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],n)?this.unselect(i,n):this.select(i,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=mt(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Ko(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Rs])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){H(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=n[f],v=Ko(r,c);u[v]=!0,this._selectedDataIndicesMap[v]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var h=n[l-1],v=Ko(r,h);o.selectedMap=(i={},i[v]=!0,i),this._selectedDataIndicesMap=(a={},a[v]=r.getRawIndex(h),a)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return st.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(st);ie(Ql,uM);ie(Ql,Qh);m0(Ql,st);function zp(e){var t=e.name;Th(e)||(e.name=VM(e)||t)}function VM(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return A(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function zM(e){return e.model.getRawData().count()}function GM(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),$M}function $M(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Gp(e,t){A(Mm(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,dt(HM,t))})}function HM(e,t){var r=Sc(e);return r&&r.setOutputEnd((t||this).count()),t}function Sc(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}const Oe=Ql;var nv=function(){function e(){this.group=new Dt,this.uid=Hl("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();Dh(nv);El(nv);const Vt=nv;function iv(){var e=xt();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var o1=xt(),WM=iv(),av=function(){function e(){this.group=new Dt,this.uid=Hl("viewChart"),this.renderTask=Ua({plan:UM,reset:YM}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){if(process.env.NODE_ENV!=="production")throw new Error("render method must been implemented")},e.prototype.highlight=function(t,r,n,i){var a=t.getData(i&&i.dataType);if(!a){process.env.NODE_ENV!=="production"&&qt("Unknown dataType "+i.dataType);return}Hp(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);if(!a){process.env.NODE_ENV!=="production"&&qt("Unknown dataType "+i.dataType);return}Hp(a,i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateLayout=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.eachRendered=function(t){Gl(this.group,t)},e.markUpdateMethod=function(t,r){o1(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function $p(e,t,r){e&&Wi(e)&&(t==="emphasis"?Ks:Qs)(e,r)}function Hp(e,t,r){var n=Zn(e,t),i=t&&t.highlightKey!=null?oD(t.highlightKey):null;n!=null?A(St(n),function(a){$p(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){$p(a,r,i)})}Dh(av,["dispose"]);El(av);function UM(e){return WM(e.model)}function YM(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&o1(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),XM[l]}var XM={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const ce=av;var ol="\0__throttleOriginMethod",Wp="\0__throttleRate",Up="\0__throttleType";function Jl(e,t,r){var n,i=0,a=0,o=null,s,l,u,f;t=t||0;function c(){a=new Date().getTime(),o=null,e.apply(l,u||[])}var v=function(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];n=new Date().getTime(),l=this,u=h;var p=f||t,g=f||r;f=null,s=n-(g?i:a)-p,clearTimeout(o),g?o=setTimeout(c,p):s>=0?c():o=setTimeout(c,-s),i=n};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(h){f=h},v}function ov(e,t,r,n){var i=e[t];if(!!i){var a=i[ol]||i,o=i[Up],s=i[Wp];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=Jl(a,r,n==="debounce"),i[ol]=a,i[Up]=n,i[Wp]=r}return i}}function sl(e,t){var r=e[t];r&&r[ol]&&(r.clear&&r.clear(),e[t]=r[ol])}var Yp=xt(),Xp={itemStyle:$i(m_,!0),lineStyle:$i(y_,!0)},qM={lineStyle:"stroke",itemStyle:"fill"};function s1(e,t){var r=e.visualStyleMapper||Xp[t];return r||(console.warn("Unknown style type '"+t+"'."),Xp.itemStyle)}function l1(e,t){var r=e.visualDrawType||qM[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var ZM={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=s1(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=l1(e,n),u=o[l],f=X(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var v=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=v,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||X(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||X(o.stroke)?v:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,d){var p=e.getDataParams(d),g=k({},o);g[l]=f(p),h.setItemVisual(d,"style",g)}}}},_a=new Et,jM={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=s1(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){_a.option=l[n];var u=i(_a),f=o.ensureUniqueItemVisual(s,"style");k(f,u),_a.option.decal&&(o.setItemVisual(s,"decal",_a.option.decal),_a.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},KM={performRawSeries:!0,overallReset:function(e){var t=Q();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),Yp(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=Yp(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=l1(r,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],c=a.getItemVisual(f,"colorFromPalette");if(c){var v=a.ensureUniqueItemVisual(f,"style"),h=n.getName(u)||u+"",d=n.count();v[l]=r.getColorFromPalette(h,o,d)}})}})}},Qo=Math.PI;function QM(e,t){t=t||{},Y(t,{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 r=new Dt,n=new wt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new Ot({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new wt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new Rl({shape:{startAngle:-Qo/2,endAngle:-Qo/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Qo*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Qo*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var JM=function(){function e(t,r,n,i){this._stageTaskMap=Q(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(!!t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=Q();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;A(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";process.env.NODE_ENV!=="production"&&(o='"reset" and "overallReset" must not be both specified.'),J(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var a=!1,o=this;A(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,v=f.overallTask;if(v){var h,d=v.agentStubMap;d.each(function(g){s(i,g)&&(g.dirty(),h=!0)}),h&&v.dirty(),o.updatePayload(v,n);var p=o.getPerformArgs(v,i.block);d.each(function(g){g.perform(p)}),v.perform(p)&&(a=!0)}else c&&c.each(function(g,y){s(i,g)&&g.dirty();var m=o.getPerformArgs(g,i.block);m.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(m)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=Q(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(c){var v=c.uid,h=s.set(v,o&&o.get(v)||Ua({plan:iE,reset:aE,count:sE}));h.context={model:c,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(c,h)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||Ua({reset:tE});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=Q(),u=t.seriesType,f=t.getTargetSeries,c=!0,v=!1,h="";process.env.NODE_ENV!=="production"&&(h='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'),J(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,d):f?f(n,i).each(d):(c=!1,A(n.getSeries(),d));function d(p){var g=p.uid,y=l.set(g,s&&s.get(g)||(v=!0,Ua({reset:eE,onDirty:nE})));y.context={model:p,overallProgress:c},y.agent=o,y.__block=c,a._pipe(p,y)}v&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},e.wrapStageHandler=function(t,r){return X(t)&&(t={overallReset:t,seriesType:lE(t)}),t.uid=Hl("stageHandler"),r&&(t.visualType=r),t},e}();function tE(e){e.overallReset(e.ecModel,e.api,e.payload)}function eE(e){return e.overallProgress&&rE}function rE(){this.agent.dirty(),this.getDownstream().dirty()}function nE(){this.agent&&this.agent.dirty()}function iE(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function aE(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=St(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?z(t,function(r,n){return u1(n)}):oE}var oE=u1(0);function u1(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(t,n)}}function sE(e){return e.data.count()}function lE(e){ll=null;try{e(uo,f1)}catch{}return ll}var uo={},f1={},ll;c1(uo,B_);c1(f1,F_);uo.eachSeriesByType=uo.eachRawSeriesByType=function(e){ll=e};uo.eachComponent=function(e){e.mainType==="series"&&e.subType&&(ll=e.subType)};function c1(e,t){for(var r in t.prototype)e[r]=Yt}const h1=JM;var qp=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const uE={color:qp,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],qp]};var jt="#B9B8CE",Zp="#100C2A",Jo=function(){return{axisLine:{lineStyle:{color:jt}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},jp=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],v1={darkMode:!0,color:jp,backgroundColor:Zp,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:jt}},textStyle:{color:jt},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:jt}},dataZoom:{borderColor:"#71708A",textStyle:{color:jt},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:jt}},timeline:{lineStyle:{color:jt},label:{color:jt},controlStyle:{color:jt,borderColor:jt}},calendar:{itemStyle:{color:Zp},dayLabel:{color:jt},monthLabel:{color:jt},yearLabel:{color:jt}},timeAxis:Jo(),logAxis:Jo(),valueAxis:Jo(),categoryAxis:Jo(),line:{symbol:"circle"},graph:{color:jp},gauge:{title:{color:jt},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:jt},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};v1.categoryAxis.splitLine.show=!1;const fE=v1;var cE=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},i={};if($(t)){var a=ir(t);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};A(t,function(l,u){for(var f=!1,c=0;c<o.length;c++){var v=o[c],h=u.lastIndexOf(v);if(h>0&&h===u.length-v.length){var d=u.slice(0,h);d!=="data"&&(r.mainType=d,r[v.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,a));function f(c,v,h,d){return c[h]==null||v[d||h]===c[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),wc=["symbol","symbolSize","symbolRotate","symbolOffset"],Kp=wc.concat(["symbolKeepAspect"]),hE={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<wc.length;o++){var s=wc[o],l=e.get(s);X(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(k({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=mt(i);function f(c,v){for(var h=e.getRawValue(v),d=e.getDataParams(v),p=0;p<u.length;p++){var g=u[p];c.setItemVisual(v,g,i[g](h,d))}}return{dataEach:a?f:null}}},vE={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<Kp.length;s++){var l=Kp[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function dE(e,t,r){switch(r){case"color":var n=e.getItemVisual(t,"style");return n[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+r)}}function pE(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+t)}}function gE(e,t){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:e,query:i},function(o){a.push(o.seriesIndex)}),a}A([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(i,a,o){i=k({},i),process.env.NODE_ENV!=="production"&&It(i.type,n[1]),o.dispatchAction(k(i,{type:n[1],seriesIndex:r(a,i)}))})})}function _i(e,t,r,n,i){var a=e+t;r.isSilent(a)||(process.env.NODE_ENV!=="production"&&Ye("event "+a+" is deprecated."),n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),v=Zn(c,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:V(v)?c.getName(v[0]):c.getName(v),selected:$(l)?l:k({},l)})}}))}function yE(e,t,r){e.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(_i("map","selectchanged",t,i,n),_i("pie","selectchanged",t,i,n)):n.fromAction==="select"?(_i("map","selected",t,i,n),_i("pie","selected",t,i,n)):n.fromAction==="unselect"&&(_i("map","unselected",t,i,n),_i("pie","unselected",t,i,n))})}function ka(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var mE=Math.round(Math.random()*9),_E=typeof Object.defineProperty=="function",xE=function(){function e(){this._id="__ec_inner_"+mE++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return _E?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e}();const bE=xE;var SE=ot.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n+a),e.lineTo(r-i,n+a),e.closePath()}}),wE=ot.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n),e.lineTo(r,n+a),e.lineTo(r-i,n),e.closePath()}}),TE=ot.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,n=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),v=Math.cos(u),h=o*.6,d=o*.7;e.moveTo(r-f,l+s),e.arc(r,l,o,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(r+f-c*h,l+s+v*h,r,n-d,r,n),e.bezierCurveTo(r,n-d,r-f+c*h,l+s+v*h,r-f,l+s),e.closePath()}}),CE=ot.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,n=t.width,i=t.x,a=t.y,o=n/3*2;e.moveTo(i,a),e.lineTo(i+o,a+r),e.lineTo(i,a+r/4*3),e.lineTo(i-o,a+r),e.lineTo(i,a),e.closePath()}}),DE={line:Me,rect:wt,roundRect:wt,square:wt,circle:rn,diamond:wE,pin:TE,arrow:CE,triangle:SE},AE={line:function(e,t,r,n,i){i.x1=e,i.y1=t+n/2,i.x2=e+r,i.y2=t+n/2},rect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n},roundRect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(e,t,r,n,i){var a=Math.min(r,n);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.r=Math.min(r,n)/2},diamond:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n},pin:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},arrow:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},triangle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n}},Tc={};A(DE,function(e,t){Tc[t]=new e});var ME=ot.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=Xs(e,t,r),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(e,t,r){var n=t.symbolType;if(n!=="none"){var i=Tc[n];i||(n="rect",i=Tc[n]),AE[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,r)}}});function EE(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function Kn(e,t,r,n,i,a,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=kh(e.slice(8),new it(t,r,n,i),o?"center":"cover"):e.indexOf("path://")===0?l=Fl(e.slice(7),{},new it(t,r,n,i),o?"center":"cover"):l=new ME({shape:{symbolType:e,x:t,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=EE,a&&l.setColor(a),l}function LE(e){return V(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function d1(e,t){if(e!=null)return V(e)||(e=[e,e]),[K(e[0],t[0])||0,K(nt(e[1],e[0]),t[1])||0]}function Vn(e){return isFinite(e)}function PE(e,t,r){var n=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=Vn(n)?n:0,i=Vn(i)?i:1,a=Vn(a)?a:0,o=Vn(o)?o:0;var s=e.createLinearGradient(n,a,i,o);return s}function IE(e,t,r){var n=r.width,i=r.height,a=Math.min(n,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*n+r.x,s=s*i+r.y,l=l*a),o=Vn(o)?o:.5,s=Vn(s)?s:.5,l=l>=0&&Vn(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function Cc(e,t,r){for(var n=t.type==="radial"?IE(e,t,r):PE(e,t,r),i=t.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function OE(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function ts(e){return parseInt(e,10)}function es(e,t,r){var n=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(e);return(e[i]||ts(s[n])||ts(e.style[n]))-(ts(s[a])||0)-(ts(s[o])||0)|0}function NE(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:vt(e)?[e]:V(e)?e:null}function p1(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&NE(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=z(r,function(a){return a/i}),n/=i)}return[r,n]}var RE=new Mr(!0);function ul(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function Qp(e){return typeof e=="string"&&e!=="none"}function fl(e){var t=e.fill;return t!=null&&t!=="none"}function Jp(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function tg(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function Dc(e,t,r){var n=_0(t.image,t.__image,r);if(Ll(n)){var i=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Em),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function kE(e,t,r,n){var i,a=ul(r),o=fl(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||RE,c=t.__dirty;if(!n){var v=r.fill,h=r.stroke,d=o&&!!v.colorStops,p=a&&!!h.colorStops,g=o&&!!v.image,y=a&&!!h.image,m=void 0,_=void 0,x=void 0,w=void 0,b=void 0;(d||p)&&(b=t.getBoundingRect()),d&&(m=c?Cc(e,v,b):t.__canvasFillGradient,t.__canvasFillGradient=m),p&&(_=c?Cc(e,h,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(x=c||!t.__canvasFillPattern?Dc(e,v,t):t.__canvasFillPattern,t.__canvasFillPattern=x),y&&(w=c||!t.__canvasStrokePattern?Dc(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=x),d?e.fillStyle=m:g&&(x?e.fillStyle=x:o=!1),p?e.strokeStyle=_:y&&(w?e.strokeStyle=w:a=!1)}var S=t.getGlobalScale();f.setScale(S[0],S[1],t.segmentIgnoreThreshold);var T,D;e.setLineDash&&r.lineDash&&(i=p1(t),T=i[0],D=i[1]);var M=!0;(u||c&Ai)&&(f.setDPR(e.dpr),l?f.setContext(null):(f.setContext(e),M=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),M&&f.rebuildPath(e,l?s:1),T&&(e.setLineDash(T),e.lineDashOffset=D),n||(r.strokeFirst?(a&&tg(e,r),o&&Jp(e,r)):(o&&Jp(e,r),a&&tg(e,r))),T&&e.setLineDash([])}function BE(e,t,r){var n=t.__image=_0(r.image,t.__image,t,t.onload);if(!(!n||!Ll(n))){var i=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;e.drawImage(n,u,f,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,c=o-u,v=s-f;e.drawImage(n,u,f,c,v,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function FE(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||qn,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=p1(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(ul(r)&&e.strokeText(i,r.x,r.y),fl(r)&&e.fillText(i,r.x,r.y)):(fl(r)&&e.fillText(i,r.x,r.y),ul(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var eg=["shadowBlur","shadowOffsetX","shadowOffsetY"],rg=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function g1(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){ue(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Hn.opacity:o}(n||t.blend!==r.blend)&&(a||(ue(e,i),a=!0),e.globalCompositeOperation=t.blend||Hn.blend);for(var s=0;s<eg.length;s++){var l=eg[s];(n||t[l]!==r[l])&&(a||(ue(e,i),a=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(a||(ue(e,i),a=!0),e.shadowColor=t.shadowColor||Hn.shadowColor),a}function ng(e,t,r,n,i){var a=fo(t,i.inHover),o=n?null:r&&fo(r,i.inHover)||{};if(a===o)return!1;var s=g1(e,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(ue(e,i),s=!0),Qp(a.fill)&&(e.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(ue(e,i),s=!0),Qp(a.stroke)&&(e.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(ue(e,i),s=!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(ue(e,i),s=!0),e.lineWidth=u)}for(var f=0;f<rg.length;f++){var c=rg[f],v=c[0];(n||a[v]!==o[v])&&(s||(ue(e,i),s=!0),e[v]=a[v]||c[1])}return s}function VE(e,t,r,n,i){return g1(e,fo(t,i.inHover),r&&fo(r,i.inHover),n,i)}function y1(e,t){var r=t.transform,n=e.dpr||1;r?e.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):e.setTransform(n,0,0,n,0,0)}function zE(e,t,r){for(var n=!1,i=0;i<e.length;i++){var a=e[i];n=n||a.isZeroArea(),y1(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}r.allClipped=n}function GE(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var ig=1,ag=2,og=3,sg=4;function $E(e){var t=fl(e),r=ul(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function ue(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function fo(e,t){return t&&e.__hoverStyle||e.style}function sv(e,t){zn(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function zn(e,t,r,n){var i=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~pe,t.__isRendered=!1;return}var a=t.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||OE(a,o))&&(o&&o.length&&(ue(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(ue(e,r),e.save(),zE(a,e,r),s=!0),r.prevElClipPaths=a),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=t instanceof ot&&t.autoBatch&&$E(t.style);s||GE(i,u.transform)?(ue(e,r),y1(e,t)):f||ue(e,r);var c=fo(t,r.inHover);t instanceof ot?(r.lastDrawType!==ig&&(l=!0,r.lastDrawType=ig),ng(e,t,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&e.beginPath(),kE(e,t,c,f),f&&(r.batchFill=c.fill||"",r.batchStroke=c.stroke||"")):t instanceof uc?(r.lastDrawType!==og&&(l=!0,r.lastDrawType=og),ng(e,t,u,l,r),FE(e,t,c)):t instanceof sn?(r.lastDrawType!==ag&&(l=!0,r.lastDrawType=ag),VE(e,t,u,l,r),BE(e,t,c)):t.getTemporalDisplayables&&(r.lastDrawType!==sg&&(l=!0,r.lastDrawType=sg),HE(e,t,r)),f&&n&&ue(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function HE(e,t,r){var n=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),zn(e,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,f=i.length;u<f;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),zn(e,l,a,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var af=new bE,lg=new _o(100),ug=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Ac(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";e.dirty&&af.delete(e);var a=af.get(e);if(a)return a;var o=Y(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,af.set(e,s),e.dirty=!1,s;function l(u){for(var f=[r],c=!0,v=0;v<ug.length;++v){var h=o[ug[v]];if(h!=null&&!V(h)&&!$(h)&&!vt(h)&&typeof h!="boolean"){c=!1;break}f.push(h)}var d;if(c){d=f.join(",")+(i?"-svg":"");var p=lg.get(d);p&&(i?u.svgElement=p:u.image=p)}var g=_1(o.dashArrayX),y=WE(o.dashArrayY),m=m1(o.symbol),_=UE(g),x=x1(y),w=!i&&Tr.createCanvas(),b=i&&{tag:"g",attrs:{},key:"dcl",children:[]},S=D(),T;w&&(w.width=S.width*r,w.height=S.height*r,T=w.getContext("2d")),M(),c&&lg.put(d,w||b),u.image=w,u.svgElement=b,u.svgWidth=S.width,u.svgHeight=S.height;function D(){for(var C=1,E=0,L=_.length;E<L;++E)C=md(C,_[E]);for(var P=1,E=0,L=m.length;E<L;++E)P=md(P,m[E].length);C*=P;var I=x*_.length*m.length;if(process.env.NODE_ENV!=="production"){var O=function(F){console.warn("Calculated decal size is greater than "+F+" due to decal option settings so "+F+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+F+" to be larger to avoid incontinuity.")};C>o.maxTileWidth&&O("maxTileWidth"),I>o.maxTileHeight&&O("maxTileHeight")}return{width:Math.max(1,Math.min(C,o.maxTileWidth)),height:Math.max(1,Math.min(I,o.maxTileHeight))}}function M(){T&&(T.clearRect(0,0,w.width,w.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,w.width,w.height)));for(var C=0,E=0;E<y.length;++E)C+=y[E];if(C<=0)return;for(var L=-x,P=0,I=0,O=0;L<S.height;){if(P%2===0){for(var F=I/2%m.length,N=0,B=0,G=0;N<S.width*2;){for(var W=0,E=0;E<g[O].length;++E)W+=g[O][E];if(W<=0)break;if(B%2===0){var Z=(1-o.symbolSize)*.5,et=N+g[O][B]*Z,ft=L+y[P]*Z,At=g[O][B]*o.symbolSize,yt=y[P]*o.symbolSize,zt=G/2%m[F].length;Gt(et,ft,At,yt,m[F][zt])}N+=g[O][B],++G,++B,B===g[O].length&&(B=0)}++O,O===g.length&&(O=0)}L+=y[P],++I,++P,P===y.length&&(P=0)}function Gt(Pt,bt,q,at,Ze){var Rt=i?1:r,Or=Kn(Ze,Pt*Rt,bt*Rt,q*Rt,at*Rt,o.color,o.symbolKeepAspect);if(i){var dr=n.painter.renderOneToVNode(Or);dr&&b.children.push(dr)}else sv(T,Or)}}}}function m1(e){if(!e||e.length===0)return[["rect"]];if($(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!$(e[r])){t=!1;break}if(t)return m1([e]);for(var n=[],r=0;r<e.length;++r)$(e[r])?n.push([e[r]]):n.push(e[r]);return n}function _1(e){if(!e||e.length===0)return[[0,0]];if(vt(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!vt(e[n])){r=!1;break}if(r)return _1([e]);for(var i=[],n=0;n<e.length;++n)if(vt(e[n])){var t=Math.ceil(e[n]);i.push([t,t])}else{var t=z(e[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function WE(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(vt(e)){var t=Math.ceil(e);return[t,t]}var r=z(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function UE(e){return z(e,function(t){return x1(t)})}function x1(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function YE(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=Ac(s,t)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=Ac(i,t)}}})}var XE=new qe;const Ge=XE;var cl={};function qE(e,t){process.env.NODE_ENV!=="production"&&cl[e]&&qt("Already has an implementation of "+e+"."),cl[e]=t}function b1(e){return process.env.NODE_ENV!=="production"&&(cl[e]||qt("Implementation of "+e+" doesn't exists.")),cl[e]}var ZE="5.4.3",jE={zrender:"5.4.4"},KE=1,QE=800,JE=900,tL=1e3,eL=2e3,rL=5e3,S1=1e3,nL=1100,lv=2e3,w1=3e3,iL=4e3,tu=4500,aL=4600,oL=5e3,sL=6e3,T1=7e3,C1={PROCESSOR:{FILTER:tL,SERIES_FILTER:QE,STATISTIC:rL},VISUAL:{LAYOUT:S1,PROGRESSIVE_LAYOUT:nL,GLOBAL:lv,CHART:w1,POST_CHART_LAYOUT:aL,COMPONENT:iL,BRUSH:oL,CHART_ITEM:tu,ARIA:sL,DECAL:T1}},Ht="__flagInMainProcess",oe="__pendingUpdate",of="__needsUpdateStatus",fg=/^[a-zA-Z0-9_]+$/,sf="__connectUpdateStatus",cg=0,lL=1,uL=2;function D1(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){ve(this.id);return}return M1(this,e,t)}}function A1(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return M1(this,e,t)}}function M1(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),qe.prototype[t].apply(e,r)}var E1=function(e){R(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(qe),L1=E1.prototype;L1.on=A1("on");L1.off=A1("off");var xi,lf,rs,Br,uf,ff,cf,xa,ba,hg,vg,hf,dg,ns,pg,P1,_e,gg,hl=function(e){R(t,e);function t(r,n,i){var a=e.call(this,new cE)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},$(n)&&(n=I1[n]),a._dom=r;var o="canvas",s="auto",l=!1;if(process.env.NODE_ENV!=="production"){var u=tt.hasGlobalWindow?window:global;o=u.__ECHARTS__DEFAULT__RENDERER__||o,s=nt(u.__ECHARTS__DEFAULT__COARSE_POINTER,s);var f=u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__;l=f==null?l:f}var c=a._zr=ac(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:nt(i.useDirtyRect,l),useCoarsePointer:nt(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=Jl(ht(c.flush,c),17),n=j(n),n&&z_(n,!0),a._theme=n,a._locale=uA(i.locale||x_),a._coordSysMgr=new Zl;var v=a._api=pg(a);function h(d,p){return d.__prio-p.__prio}return Ts(dl,h),Ts(Mc,h),a._scheduler=new h1(a,v,Mc,dl),a._messageCenter=new E1,a._initEvents(),a.resize=ht(a.resize,a),c.animation.on("frame",a._onframe,a),hg(c,a),vg(c,a),ja(a),a}return t.prototype._onframe=function(){if(!this._disposed){gg(this);var r=this._scheduler;if(this[oe]){var n=this[oe].silent;this[Ht]=!0;try{xi(this),Br.update.call(this,null,this[oe].updateParams)}catch(l){throw this[Ht]=!1,this[oe]=null,l}this._zr.flush(),this[Ht]=!1,this[oe]=null,xa.call(this,n),ba.call(this,n)}else if(r.unfinished){var i=KE,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),ff(this,a),r.performVisualTasks(a),ns(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,i){if(this[Ht]){process.env.NODE_ENV!=="production"&&qt("`setOption` should not be called during main process.");return}if(this._disposed){ve(this.id);return}var a,o,s;if(H(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Ht]=!0,!this._model||n){var l=new YA(this._api),u=this._theme,f=this._model=new B_;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},Ec);var c={seriesTransition:s,optionChanged:!0};if(i)this[oe]={silent:a,updateParams:c},this[Ht]=!1,this.getZr().wakeUp();else{try{xi(this),Br.update.call(this,null,c)}catch(v){throw this[oe]=null,this[Ht]=!1,v}this._ssr||this._zr.flush(),this[oe]=null,this[Ht]=!1,xa.call(this,a),ba.call(this,a)}},t.prototype.setTheme=function(){Ye("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||tt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return process.env.NODE_ENV!=="production"&&It("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;if(process.env.NODE_ENV!=="production"&&n.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;if(process.env.NODE_ENV!=="production"&&n.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(!!tt.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return A(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){ve(this.id);return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;A(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return A(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){ve(this.id);return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(pl[i]){var l=s,u=s,f=-s,c=-s,v=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();A(Un,function(_,x){if(_.group===i){var w=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(j(r)),b=_.getDom().getBoundingClientRect();l=a(b.left,l),u=a(b.top,u),f=o(b.right,f),c=o(b.bottom,c),v.push({dom:w,left:b.left,top:b.top})}}),l*=h,u*=h,f*=h,c*=h;var d=f-l,p=c-u,g=Tr.createCanvas(),y=ac(g,{renderer:n?"svg":"canvas"});if(y.resize({width:d,height:p}),n){var m="";return A(v,function(_){var x=_.left-l,w=_.top-u;m+='<g transform="translate('+x+","+w+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,r.connectedBackgroundColor&&y.painter.setBackgroundColor(r.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return r.connectedBackgroundColor&&y.add(new wt({shape:{x:0,y:0,width:d,height:p},style:{fill:r.connectedBackgroundColor}})),A(v,function(_){var x=new sn({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});y.add(x)}),y.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return uf(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return uf(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){ve(this.id);return}var i=this._model,a,o=Lu(i,r);return A(o,function(s,l){l.indexOf("Models")>=0&&A(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint?a=a||c.containPoint(n,u):process.env.NODE_ENV!=="production"&&kt(l+": "+(c?"The found component do not support containPoint.":"No view mapping to the found component."))}else process.env.NODE_ENV!=="production"&&kt(l+": containPoint is not supported")},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=Lu(i,r,{defaultMainType:"series"}),o=a.seriesModel;process.env.NODE_ENV!=="production"&&(o||kt("There is no specified series model"));var s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?dE(s,l,n):pE(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;A(fL,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&ka(s,function(d){var p=ut(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=k({},p.eventData),!0},!0),l){var f=l.componentType,c=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",c=l.seriesIndex);var v=f&&c!=null&&o.getComponent(f,c),h=v&&r[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];process.env.NODE_ENV!=="production"&&!u&&!(v&&h)&&kt("model or view can not be found by params"),l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:v,view:h},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),A(Ya,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),A(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),yE(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){ve(this.id);return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){ve(this.id);return}this._disposed=!0;var r=this.getDom();r&&p0(this.getDom(),fv,"");var n=this,i=n._api,a=n._model;A(n._componentsViews,function(o){o.dispose(a,i)}),A(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Un[n.id]},t.prototype.resize=function(r){if(this[Ht]){process.env.NODE_ENV!=="production"&&qt("`resize` should not be called during main process.");return}if(this._disposed){ve(this.id);return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[oe]&&(a==null&&(a=this[oe].silent),i=!0,this[oe]=null),this[Ht]=!0;try{i&&xi(this),Br.update.call(this,{type:"resize",animation:k({duration:0},r&&r.animation)})}catch(o){throw this[Ht]=!1,o}this[Ht]=!1,xa.call(this,a),ba.call(this,a)}},t.prototype.showLoading=function(r,n){if(this._disposed){ve(this.id);return}if(H(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!Lc[r]){process.env.NODE_ENV!=="production"&&kt("Loading effects "+r+" not exists.");return}var i=Lc[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)},t.prototype.hideLoading=function(){if(this._disposed){ve(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=k({},r);return n.type=Ya[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){ve(this.id);return}if(H(n)||(n={silent:!!n}),!!vl[r.type]&&!!this._model){if(this[Ht]){this._pendingActions.push(r);return}var i=n.silent;cf.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&tt.browser.weChat&&this._throttledZrFlush(),xa.call(this,i),ba.call(this,i)}},t.prototype.updateLabelLayout=function(){Ge.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){ve(this.id);return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);process.env.NODE_ENV!=="production"&&J(r.data&&a),a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){xi=function(c){var v=c._scheduler;v.restorePipelines(c._model),v.prepareStageTasks(),lf(c,!0),lf(c,!1),v.plan()},lf=function(c,v){for(var h=c._model,d=c._scheduler,p=v?c._componentsViews:c._chartsViews,g=v?c._componentsMap:c._chartsMap,y=c._zr,m=c._api,_=0;_<p.length;_++)p[_].__alive=!1;v?h.eachComponent(function(b,S){b!=="series"&&x(S)}):h.eachSeries(x);function x(b){var S=b.__requireNewView;b.__requireNewView=!1;var T="_ec_"+b.id+"_"+b.type,D=!S&&g[T];if(!D){var M=ir(b.type),C=v?Vt.getClass(M.main,M.sub):ce.getClass(M.sub);process.env.NODE_ENV!=="production"&&J(C,M.sub+" does not exist."),D=new C,D.init(h,m),g[T]=D,p.push(D),y.add(D.group)}b.__viewId=D.__id=T,D.__alive=!0,D.__model=b,D.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!v&&d.prepareView(D,b,h,m)}for(var _=0;_<p.length;){var w=p[_];w.__alive?_++:(!v&&w.renderTask.dispose(),y.remove(w.group),w.dispose(h,m),p.splice(_,1),g[w.__id]===w&&delete g[w.__id],w.__id=w.group.__ecComponentInfo=null)}},rs=function(c,v,h,d,p){var g=c._model;if(g.setUpdatePayload(h),!d){A([].concat(c._componentsViews).concat(c._chartsViews),w);return}var y={};y[d+"Id"]=h[d+"Id"],y[d+"Index"]=h[d+"Index"],y[d+"Name"]=h[d+"Name"];var m={mainType:d,query:y};p&&(m.subType=p);var _=h.excludeSeriesId,x;_!=null&&(x=Q(),A(St(_),function(b){var S=or(b,null);S!=null&&x.set(S,!0)})),g&&g.eachComponent(m,function(b){var S=x&&x.get(b.id)!=null;if(!S)if(jd(h))if(b instanceof Oe)h.type===Wn&&!h.notBlur&&!b.get(["emphasis","disabled"])&&QC(b,h,c._api);else{var T=Lh(b.mainType,b.componentIndex,h.name,c._api),D=T.focusSelf,M=T.dispatchers;h.type===Wn&&D&&!h.notBlur&&cc(b.mainType,b.componentIndex,c._api),M&&A(M,function(C){h.type===Wn?Ks(C):Qs(C)})}else hc(h)&&b instanceof Oe&&(eD(b,h,c._api),qd(b),_e(c))},c),g&&g.eachComponent(m,function(b){var S=x&&x.get(b.id)!=null;S||w(c[d==="series"?"_chartsMap":"_componentsMap"][b.__viewId])},c);function w(b){b&&b.__alive&&b[v]&&b[v](b.__model,g,c._api,h)}},Br={prepareAndUpdate:function(c){xi(this),Br.update.call(this,c,{optionChanged:c.newOption!=null})},update:function(c,v){var h=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,y=this._scheduler;if(!!h){h.setUpdatePayload(c),y.restoreData(h,c),y.performSeriesTasks(h),g.create(h,d),y.performDataProcessorTasks(h,c),ff(this,h),g.update(h,d),r(h),y.performVisualTasks(h,c),hf(this,h,d,c,v);var m=h.get("backgroundColor")||"transparent",_=h.get("darkMode");p.setBackgroundColor(m),_!=null&&_!=="auto"&&p.setDarkMode(_),Ge.trigger("afterupdate",h,d)}},updateTransform:function(c){var v=this,h=this._model,d=this._api;if(!!h){h.setUpdatePayload(c);var p=[];h.eachComponent(function(y,m){if(y!=="series"){var _=v.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var x=_.updateTransform(m,h,d,c);x&&x.update&&p.push(_)}else p.push(_)}});var g=Q();h.eachSeries(function(y){var m=v._chartsMap[y.__viewId];if(m.updateTransform){var _=m.updateTransform(y,h,d,c);_&&_.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),r(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:g}),ns(this,h,d,c,{},g),Ge.trigger("afterupdate",h,d)}},updateView:function(c){var v=this._model;!v||(v.setUpdatePayload(c),ce.markUpdateMethod(c,"updateView"),r(v),this._scheduler.performVisualTasks(v,c,{setDirty:!0}),hf(this,v,this._api,c,{}),Ge.trigger("afterupdate",v,this._api))},updateVisual:function(c){var v=this,h=this._model;!h||(h.setUpdatePayload(c),h.eachSeries(function(d){d.getData().clearAllVisual()}),ce.markUpdateMethod(c,"updateVisual"),r(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(d,p){if(d!=="series"){var g=v.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,h,v._api,c)}}),h.eachSeries(function(d){var p=v._chartsMap[d.__viewId];p.updateVisual(d,h,v._api,c)}),Ge.trigger("afterupdate",h,this._api))},updateLayout:function(c){Br.update.call(this,c)}},uf=function(c,v,h,d){if(c._disposed){ve(c.id);return}for(var p=c._model,g=c._coordSysMgr.getCoordinateSystems(),y,m=Lu(p,h),_=0;_<g.length;_++){var x=g[_];if(x[v]&&(y=x[v](p,m,d))!=null)return y}process.env.NODE_ENV!=="production"&&kt("No coordinate system that supports "+v+" found by the given finder.")},ff=function(c,v){var h=c._chartsMap,d=c._scheduler;v.eachSeries(function(p){d.updateStreamModes(p,h[p.__viewId])})},cf=function(c,v){var h=this,d=this.getModel(),p=c.type,g=c.escapeConnect,y=vl[p],m=y.actionInfo,_=(m.update||"update").split(":"),x=_.pop(),w=_[0]!=null&&ir(_[0]);this[Ht]=!0;var b=[c],S=!1;c.batch&&(S=!0,b=z(c.batch,function(P){return P=Y(k({},P),c),P.batch=null,P}));var T=[],D,M=hc(c),C=jd(c);if(C&&G0(this._api),A(b,function(P){if(D=y.action(P,h._model,h._api),D=D||k({},P),D.type=m.event||D.type,T.push(D),C){var I=Ch(c),O=I.queryOptionMap,F=I.mainTypeSpecified,N=F?O.keys()[0]:"series";rs(h,x,P,N),_e(h)}else M?(rs(h,x,P,"series"),_e(h)):w&&rs(h,x,P,w.main,w.sub)}),x!=="none"&&!C&&!M&&!w)try{this[oe]?(xi(this),Br.update.call(this,c),this[oe]=null):Br[x].call(this,c)}catch(P){throw this[Ht]=!1,P}if(S?D={type:m.event||p,escapeConnect:g,batch:T}:D=T[0],this[Ht]=!1,!v){var E=this._messageCenter;if(E.trigger(D.type,D),M){var L={type:"selectchanged",escapeConnect:g,selected:rD(d),isFromClick:c.isFromClick||!1,fromAction:c.type,fromActionPayload:c};E.trigger(L.type,L)}}},xa=function(c){for(var v=this._pendingActions;v.length;){var h=v.shift();cf.call(this,h,c)}},ba=function(c){!c&&this.trigger("updated")},hg=function(c,v){c.on("rendered",function(h){v.trigger("rendered",h),c.animation.isFinished()&&!v[oe]&&!v._scheduler.unfinished&&!v._pendingActions.length&&v.trigger("finished")})},vg=function(c,v){c.on("mouseover",function(h){var d=h.target,p=ka(d,Wi);p&&(JC(p,h,v._api),_e(v))}).on("mouseout",function(h){var d=h.target,p=ka(d,Wi);p&&(tD(p,h,v._api),_e(v))}).on("click",function(h){var d=h.target,p=ka(d,function(m){return ut(m).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",y=ut(p);v._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function r(c){c.clearColorPalette(),c.eachSeries(function(v){v.clearColorPalette()})}function n(c){var v=[],h=[],d=!1;if(c.eachComponent(function(m,_){var x=_.get("zlevel")||0,w=_.get("z")||0,b=_.getZLevelKey();d=d||!!b,(m==="series"?h:v).push({zlevel:x,z:w,idx:_.componentIndex,type:m,key:b})}),d){var p=v.concat(h),g,y;Ts(p,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),A(p,function(m){var _=c.getComponent(m.type,m.idx),x=m.zlevel,w=m.key;g!=null&&(x=Math.max(g,x)),w?(x===g&&w!==y&&x++,y=w):y&&(x===g&&x++,y=""),g=x,_.setZLevel(x)})}}hf=function(c,v,h,d,p){n(v),dg(c,v,h,d,p),A(c._chartsViews,function(g){g.__alive=!1}),ns(c,v,h,d,p),A(c._chartsViews,function(g){g.__alive||g.remove(v,h)})},dg=function(c,v,h,d,p,g){A(g||c._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,v,h,d),s(m,y),f(m,y)})},ns=function(c,v,h,d,p,g){var y=c._scheduler;p=k(p||{},{updatedSeries:v.getSeries()}),Ge.trigger("series:beforeupdate",v,h,p);var m=!1;v.eachSeries(function(_){var x=c._chartsMap[_.__viewId];x.__alive=!0;var w=x.renderTask;y.updatePayload(w,d),u(_,x),g&&g.get(_.uid)&&w.dirty(),w.perform(y.getPerformArgs(w))&&(m=!0),x.group.silent=!!_.get("silent"),o(_,x),qd(_)}),y.unfinished=m||y.unfinished,Ge.trigger("series:layoutlabels",v,h,p),Ge.trigger("series:transition",v,h,p),v.eachSeries(function(_){var x=c._chartsMap[_.__viewId];s(_,x),f(_,x)}),a(c,v),Ge.trigger("series:afterupdate",v,h,p)},_e=function(c){c[of]=!0,c.getZr().wakeUp()},gg=function(c){!c[of]||(c.getZr().storage.traverse(function(v){Ni(v)||i(v)}),c[of]=!1)};function i(c){for(var v=[],h=c.currentStates,d=0;d<h.length;d++){var p=h[d];p==="emphasis"||p==="blur"||p==="select"||v.push(p)}c.selected&&c.states.select&&v.push("select"),c.hoverState===Ol&&c.states.emphasis?v.push("emphasis"):c.hoverState===Il&&c.states.blur&&v.push("blur"),c.useStates(v)}function a(c,v){var h=c._zr,d=h.storage,p=0;d.traverse(function(g){g.isGroup||p++}),p>v.get("hoverLayerThreshold")&&!tt.node&&!tt.worker&&v.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=c._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(c,v){var h=c.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=h)})}function s(c,v){if(!c.preventAutoZ){var h=c.get("z")||0,d=c.get("zlevel")||0;v.eachRendered(function(p){return l(p,h,d,-1/0),!0})}}function l(c,v,h,d){var p=c.getTextContent(),g=c.getTextGuideLine(),y=c.isGroup;if(y)for(var m=c.childrenRef(),_=0;_<m.length;_++)d=Math.max(l(m[_],v,h,d),d);else c.z=v,c.zlevel=h,d=Math.max(c.z2,d);if(p&&(p.z=v,p.zlevel=h,isFinite(d)&&(p.z2=d+2)),g){var x=c.textGuideLineConfig;g.z=v,g.zlevel=h,isFinite(d)&&(g.z2=d+(x&&x.showAbove?1:-1))}return d}function u(c,v){v.eachRendered(function(h){if(!Ni(h)){var d=h.getTextContent(),p=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(c,v){var h=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),p=h.get("duration"),g=p>0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;v.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Ni(y))return;if(y instanceof ot&&sD(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=g;var _=y.getTextContent(),x=y.getTextGuideLine();_&&(_.stateTransition=g),x&&(x.stateTransition=g)}y.__dirty&&i(y)}})}pg=function(c){return new(function(v){R(h,v);function h(){return v!==null&&v.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);d=d.parent}},h.prototype.enterEmphasis=function(d,p){Ks(d,p),_e(c)},h.prototype.leaveEmphasis=function(d,p){Qs(d,p),_e(c)},h.prototype.enterBlur=function(d){KC(d),_e(c)},h.prototype.leaveBlur=function(d){B0(d),_e(c)},h.prototype.enterSelect=function(d){F0(d),_e(c)},h.prototype.leaveSelect=function(d){V0(d),_e(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},h.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},h}(F_))(c)},P1=function(c){function v(h,d){for(var p=0;p<h.length;p++){var g=h[p];g[sf]=d}}A(Ya,function(h,d){c._messageCenter.on(d,function(p){if(pl[c.group]&&c[sf]!==cg){if(p&&p.escapeConnect)return;var g=c.makeActionFromEvent(p),y=[];A(Un,function(m){m!==c&&m.group===c.group&&y.push(m)}),v(y,cg),A(y,function(m){m[sf]!==lL&&m.dispatchAction(g)}),v(y,uL)}})})}}(),t}(qe),uv=hl.prototype;uv.on=D1("on");uv.off=D1("off");uv.one=function(e,t,r){var n=this;Ye("ECharts#one is deprecated.");function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),n.off(e,i)}this.on.call(this,e,i,r)};var fL=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function ve(e){process.env.NODE_ENV!=="production"&&kt("Instance "+e+" has been disposed")}var vl={},Ya={},Mc=[],Ec=[],dl=[],I1={},Lc={},Un={},pl={},cL=+new Date-0,hL=+new Date-0,fv="_echarts_instance_";function vL(e,t,r){var n=!(r&&r.ssr);if(n){if(process.env.NODE_ENV!=="production"&&!e)throw new Error("Initialize failed: invalid dom.");var i=cv(e);if(i)return process.env.NODE_ENV!=="production"&&kt("There is a chart instance already initialized on the dom."),i;process.env.NODE_ENV!=="production"&&Bi(e)&&e.nodeName.toUpperCase()!=="CANVAS"&&(!e.clientWidth&&(!r||r.width==null)||!e.clientHeight&&(!r||r.height==null))&&kt("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.")}var a=new hl(e,t,r);return a.id="ec_"+cL++,Un[a.id]=a,n&&p0(e,fv,a.id),P1(a),Ge.trigger("afterinit",a),a}function dL(e){if(V(e)){var t=e;e=null,A(t,function(r){r.group!=null&&(e=r.group)}),e=e||"g_"+hL++,A(t,function(r){r.group=e})}return pl[e]=!0,e}function O1(e){pl[e]=!1}var pL=O1;function gL(e){$(e)?e=Un[e]:e instanceof hl||(e=cv(e)),e instanceof hl&&!e.isDisposed()&&e.dispose()}function cv(e){return Un[VT(e,fv)]}function yL(e){return Un[e]}function hv(e,t){I1[e]=t}function vv(e){ct(Ec,e)<0&&Ec.push(e)}function dv(e,t){pv(Mc,e,t,eL)}function N1(e){eu("afterinit",e)}function R1(e){eu("afterupdate",e)}function eu(e,t){Ge.on(e,t)}function un(e,t,r){X(t)&&(r=t,t="");var n=H(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,!Ya[t]&&(J(fg.test(n)&&fg.test(t)),vl[n]||(vl[n]={action:r,actionInfo:e}),Ya[t]=n)}function k1(e,t){Zl.register(e,t)}function mL(e){var t=Zl.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function B1(e,t){pv(dl,e,t,S1,"layout")}function fn(e,t){pv(dl,e,t,w1,"visual")}var yg=[];function pv(e,t,r,n,i){if((X(t)||H(t))&&(r=t,t=n),process.env.NODE_ENV!=="production"){if(isNaN(t)||t==null)throw new Error("Illegal priority");A(e,function(o){J(o.__raw!==r)})}if(!(ct(yg,r)>=0)){yg.push(r);var a=h1.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function gv(e,t){Lc[e]=t}function _L(e){process.env.NODE_ENV!=="production"&&Ye("setCanvasCreator is deprecated. Use setPlatformAPI({ createCanvas }) instead."),bm({createCanvas:e})}function F1(e,t,r){var n=b1("registerMap");n&&n(e,t,r)}function xL(e){var t=b1("getMap");return t&&t(e)}var V1=bM;fn(lv,ZM);fn(tu,jM);fn(tu,KM);fn(lv,hE);fn(tu,vE);fn(T1,YE);vv(z_);dv(JE,tM);gv("default",QM);un({type:Wn,event:Wn,update:Wn},Yt);un({type:Ls,event:Ls,update:Ls},Yt);un({type:za,event:za,update:za},Yt);un({type:Ps,event:Ps,update:Ps},Yt);un({type:Ga,event:Ga,update:Ga},Yt);hv("light",uE);hv("dark",fE);var bL={};function Sa(e){return e==null?0:e.length||1}function mg(e){return e}var SL=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||mg,this._newKeyGetter=i||mg,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},i=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=i[o],l=n[s],u=Sa(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],f=i[l],c=Sa(u),v=Sa(f);if(c>1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(c===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(c===1&&v===1)this._update&&this._update(f,u),i[l]=null;else if(c>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var i=t[n],a=r[i],o=Sa(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[i]=null}},e.prototype._initIndexMap=function(t,r,n,i){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[i](t[o],o);if(a||(n[o]=s),!!r){var l=r[s],u=Sa(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},e}();const gl=SL;var wL=function(){function e(t,r){this._encode=t,this._schema=r}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function TL(e,t){var r={},n=r.encode={},i=Q(),a=[],o=[],s={};A(e.dimensions,function(v){var h=e.getDimensionInfo(v),d=h.coordDim;if(d){process.env.NODE_ENV!=="production"&&J(yc.get(d)==null);var p=h.coordDimIndex;vf(n,d)[p]=v,h.isExtraCoord||(i.set(d,1),DL(h.type)&&(a[0]=v),vf(s,d)[p]=e.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(v)}yc.each(function(g,y){var m=vf(n,y),_=h.otherDims[y];_!=null&&_!==!1&&(m[_]=h.name)})});var l=[],u={};i.each(function(v,h){var d=n[h];u[h]=d[0],l=l.concat(d)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=z(l,function(v){return e.getDimensionInfo(v).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(a=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new wL(s,t),r}function vf(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function CL(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function DL(e){return!(e==="ordinal"||e==="time")}var AL=function(){function e(t){this.otherDims={},t!=null&&k(this,t)}return e}();const ks=AL;var ML=xt(),EL={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},z1=function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=H1(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return nt(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=$_(this.source),n=!W1(t),i="",a=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=r?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var v=this.getSourceDimension(o);v&&(l=r?v.name:null,u=v.type)}a.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!c||!c.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=EL[u]||"f",f&&(i+=f.uid),i+="$"}var h=this.source,d=[h.seriesLayoutBy,h.startIndex,i].join("$$");return{dimensions:a,hash:d}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.name)}t.push(i)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function G1(e){return e instanceof z1}function $1(e){for(var t=Q(),r=0;r<(e||[]).length;r++){var n=e[r],i=H(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,r)}return t}function H1(e){var t=ML(e);return t.dimNameMap||(t.dimNameMap=$1(e.dimensionsDefine))}function W1(e){return e>30}var wa=H,Fr=z,LL=typeof Int32Array>"u"?Array:Int32Array,PL="e\0\0",_g=-1,IL=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],OL=["_approximateExtent"],xg,is,Ta,bi,df,as,pf,NL=function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;G1(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var c=n[f],v=$(c)?new ks({name:c}):c instanceof ks?c:new ks(c),h=v.name;v.type=v.type||"float",v.coordDim||(v.coordDim=h,v.coordDimIndex=0);var d=v.otherDims=v.otherDims||{};o.push(h),a[h]=v,u[h]!=null&&(l=!0),v.createInvertedIndices&&(s[h]=[]),d.itemName===0&&(this._nameDimIdx=f),d.itemId===0&&(this._idDimIdx=f),process.env.NODE_ENV!=="production"&&J(i||v.storeDimIndex>=0),i&&(v.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=Q();A(o,function(g){p.set(a[g].storeDimIndex,g)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var i=this._schema.getSourceDimension(r);if(i)return i.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(vt(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);if(process.env.NODE_ENV!=="production"&&r==null)throw new Error("Unknown dimension "+t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,n=r.encode[t];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,n){var i=this,a;if(t instanceof _c&&(a=t),!a){var o=this.dimensions,s=Jh(t)||Xt(t)?new H_(t,o.length):t;a=new _c;var l=Fr(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=TL(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var n=this._store.appendValues(t,r.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=r[l],o&&pf(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==wr&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===ke;if(l&&!i.pure)for(var u=[],f=t;f<r;f++){var c=i.getItem(f,u);if(!this.hasItemOption&&MT(c)&&(this.hasItemOption=!0),c){var v=c.name;a[f]==null&&v!=null&&(a[f]=or(v,null));var h=c.id;o[f]==null&&h!=null&&(o[f]=or(h,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<r;f++)pf(this,f);xg(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){wa(t)?k(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=Ta(this,this._nameDimIdx,r)),n==null&&(n=""),n},e.prototype._getCategory=function(t,r){var n=this._store.get(t,r),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},e.prototype.getId=function(t){return is(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var n=this,i=this._store;return V(t)?i.getValues(Fr(t,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var n=t&&this._invertedIndicesMap[t];if(process.env.NODE_ENV!=="production"&&!n)throw new Error("Do not supported yet");var i=n[r];return i==null||isNaN(i)?_g:i},e.prototype.indicesOfNearest=function(t,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,n)},e.prototype.each=function(t,r,n){X(t)&&(n=r,r=t,t=[]);var i=n||this,a=Fr(bi(t),this._getStoreDimIndex,this);this._store.each(a,i?ht(r,i):r)},e.prototype.filterSelf=function(t,r,n){X(t)&&(n=r,r=t,t=[]);var i=n||this,a=Fr(bi(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?ht(r,i):r),this},e.prototype.selectRange=function(t){var r=this,n={},i=mt(t);return A(i,function(a){var o=r._getStoreDimIndex(a);n[o]=t[a]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){X(t)&&(n=r,r=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(r&&r.apply(this,arguments))},n),i},e.prototype.map=function(t,r,n,i){var a=n||i||this,o=Fr(bi(t),this._getStoreDimIndex,this),s=as(this);return s._store=this._store.map(o,a?ht(r,a):r),s},e.prototype.modify=function(t,r,n,i){var a=this,o=n||i||this;process.env.NODE_ENV!=="production"&&A(bi(t),function(l){var u=a.getDimensionInfo(l);u.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var s=Fr(bi(t),this._getStoreDimIndex,this);this._store.modify(s,o?ht(r,o):r)},e.prototype.downSample=function(t,r,n,i){var a=as(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),r,n,i),a},e.prototype.lttbDownSample=function(t,r){var n=as(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),n},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,n=this.getRawDataItem(t);return new Et(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new gl(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return is(t,n)},function(n){return is(r,n)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},wa(t)?k(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],i=n&&n[r];return i==null?this.getVisual(r):i},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[r];return a==null&&(a=this.getVisual(r),V(a)?a=a.slice():wa(a)&&(a=k({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,wa(r)?k(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){wa(t)?k(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?k(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;GC(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){A(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Fr(this.dimensions,this._getDimInfo,this),this.hostModel)),df(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];!X(n)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(Dl(arguments)))})},e.internalField=function(){xg=function(t){var r=t._invertedIndicesMap;A(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new LL(o.categories.length);for(var l=0;l<n.length;l++)n[l]=_g;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},Ta=function(t,r,n){return or(t._getCategory(r,n),null)},is=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=Ta(t,t._idDimIdx,r)),n==null&&(n=PL+r),n},bi=function(t){return V(t)||(t=t!=null?[t]:[]),t},as=function(t){var r=new e(t._schema?t._schema:Fr(t.dimensions,t._getDimInfo,t),t.hostModel);return df(r,t),r},df=function(t,r){A(IL.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,A(OL,function(n){t[n]=j(r[n])}),t._calculationInfo=k({},r._calculationInfo)},pf=function(t,r){var n=t._nameList,i=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=n[r],l=i[r];if(s==null&&a!=null&&(n[r]=s=Ta(t,a,r)),l==null&&o!=null&&(i[r]=l=Ta(t,o,r)),l==null&&s!=null){var u=t._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),i[r]=l}}}(),e}();const yv=NL;function RL(e,t){return mv(e,t).dimensions}function mv(e,t){Jh(e)||(e=tv(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=Q(),a=[],o=BL(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&W1(o),l=n===e.dimensionsDefine,u=l?H1(e):$1(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(e,o));for(var c=Q(f),v=new K_(o),h=0;h<v.length;h++)v[h]=-1;function d(D){var M=v[D];if(M<0){var C=n[D],E=H(C)?C:{name:C},L=new ks,P=E.name;P!=null&&u.get(P)!=null&&(L.name=L.displayName=P),E.type!=null&&(L.type=E.type),E.displayName!=null&&(L.displayName=E.displayName);var I=a.length;return v[D]=I,L.storeDimIndex=D,a.push(L),L}return a[M]}if(!s)for(var h=0;h<o;h++)d(h);c.each(function(D,M){var C=St(D).slice();if(C.length===1&&!$(C[0])&&C[0]<0){c.set(M,!1);return}var E=c.set(M,[]);A(C,function(L,P){var I=$(L)?u.get(L):L;I!=null&&I<o&&(E[P]=I,g(d(I),M,P))})});var p=0;A(r,function(D){var M,C,E,L;if($(D))M=D,L={};else{L=D,M=L.name;var P=L.ordinalMeta;L.ordinalMeta=null,L=k({},L),L.ordinalMeta=P,C=L.dimsDef,E=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var I=c.get(M);if(I!==!1){if(I=St(I),!I.length)for(var O=0;O<(C&&C.length||1);O++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&I.push(p++)}A(I,function(F,N){var B=d(F);if(l&&L.type!=null&&(B.type=L.type),g(Y(B,L),M,N),B.name==null&&C){var G=C[N];!H(G)&&(G={name:G}),B.name=B.displayName=G.name,B.defaultTooltip=G.defaultTooltip}E&&Y(B.otherDims,E)})}});function g(D,M,C){yc.get(M)!=null?D.otherDims[M]=C:(D.coordDim=M,D.coordDimIndex=C,i.set(M,!0))}var y=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=y?m||1:0;var x=y||"value";function w(D){D.name==null&&(D.name=D.coordDim)}if(s)A(a,function(D){w(D)}),a.sort(function(D,M){return D.storeDimIndex-M.storeDimIndex});else for(var b=0;b<o;b++){var S=d(b),T=S.coordDim;T==null&&(S.coordDim=FL(x,i,_),S.coordDimIndex=0,(!y||m<=0)&&(S.isExtraCoord=!0),m--),w(S),S.type==null&&(N_(e,b)===Ft.Must||S.isExtraCoord&&(S.otherDims.itemName!=null||S.otherDims.seriesName!=null))&&(S.type="ordinal")}return kL(a),new z1({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function kL(e){for(var t=Q(),r=0;r<e.length;r++){var n=e[r],i=n.name,a=t.get(i)||0;a>0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function BL(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return A(t,function(a){var o;H(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function FL(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var VL=function(){function e(t){this.coordSysDims=[],this.axisMap=Q(),this.categoryAxisMap=Q(),this.coordSysName=t}return e}();function zL(e){var t=e.get("coordinateSystem"),r=new VL(t),n=GL[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var GL={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",fe).models[0],a=e.getReferringComponents("yAxis",fe).models[0];if(process.env.NODE_ENV!=="production"){if(!i)throw new Error('xAxis "'+Cr(e.get("xAxisIndex"),e.get("xAxisId"),0)+'" not found');if(!a)throw new Error('yAxis "'+Cr(e.get("xAxisIndex"),e.get("yAxisId"),0)+'" not found')}t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),Si(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),Si(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",fe).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error("singleAxis should be specified.");t.coordSysDims=["single"],r.set("single",i),Si(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",fe).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");if(process.env.NODE_ENV!=="production"){if(!o)throw new Error("angleAxis option not found");if(!a)throw new Error("radiusAxis option not found")}t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),Si(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),Si(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();A(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];r.set(f,u),Si(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Si(e){return e.get("type")==="category"}function U1(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;$L(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,f,c,v;if(A(a,function(m,_){$(m)&&(a[_]=m={name:m}),l&&!m.isExtraCoord&&(!n&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!i||i===m.coordDim)&&(f=m))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+e.id,v="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var h=f.coordDim,d=f.type,p=0;A(a,function(m){m.coordDim===h&&p++});var g={name:c,coordDim:h,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:v,coordDim:v,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(v,d),y.storeDimIndex=s.ensureCalculationDimension(c,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(a.push(g),a.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:v,stackResultDimension:c}}function $L(e){return!G1(e.schema)}function nn(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function Y1(e,t){return nn(e,t)?e.getCalculationInfo("stackResultDimension"):t}function HL(e,t){var r=e.get("coordinateSystem"),n=Zl.get(r),i;return t&&t.coordSysDims&&(i=z(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=CL(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function WL(e,t,r){var n,i;return r&&A(e,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function ru(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=tv(e)):(i=n.getSource(),a=i.sourceFormat===ke);var o=zL(t),s=HL(t,o),l=r.useEncodeDefaulter,u=X(l)?l:l?dt(CA,s,t):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=mv(i,f),v=WL(c.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(c),d=U1(t,{schema:c,store:h}),p=new yv(c,t);p.setCalculationInfo(d);var g=v!=null&&UL(i)?function(y,m,_,x){return x===v?_:this.defaultDimValueGetter(y,m,_,x)}:null;return p.hasItemOption=!1,p.initData(a?i:h,null,g),p}function UL(e){if(e.sourceFormat===ke){var t=YL(e.data||[]);return!V(So(t))}}function YL(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var X1=function(){function e(t){this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype.unionExtent=function(t){var r=this._extent;t[0]<r[0]&&(r[0]=t[0]),t[1]>r[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();El(X1);const Ir=X1;var XL=0,qL=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++XL}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&z(n,ZL);return new e({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!$(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var i=this._getOrCreateMap();return r=i.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,i.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Q(this.categories))},e}();function ZL(e){return H(e)&&e.value!=null?e.value:e+""}const Pc=qL;function jL(e){var t=Math.pow(10,bo(Math.abs(e))),r=Math.abs(e/t);return r===0||r===1||r===2||r===3||r===5}function Ic(e){return e.type==="interval"||e.type==="log"}function KL(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=Sh(a/t,!0);r!=null&&o<r&&(o=i.interval=r),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=q1(o),l=i.niceTickExtent=[Ct(Math.ceil(e[0]/o)*o,s),Ct(Math.floor(e[1]/o)*o,s)];return QL(l,e),i}function gf(e){var t=Math.pow(10,bo(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Ct(r*t)}function q1(e){return nr(e)+2}function bg(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function QL(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),bg(e,0,t),bg(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function nu(e,t){return e>=t[0]&&e<=t[1]}function iu(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function au(e,t){return e*(t[1]-t[0])+t[0]}var Z1=function(e){R(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Pc({})),V(i)&&(i=new Pc({categories:z(i,function(a){return H(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:$(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),nu(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),iu(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(au(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];i[o]=u,a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;i.push(f),a[f]=o}},t.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Ir);Ir.registerClass(Z1);const j1=Z1;var Ln=Ct,K1=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return nu(r,this._extent)},t.prototype.normalize=function(r){return iu(r,this._extent)},t.prototype.scale=function(r){return au(r,this._extent)},t.prototype.setExtent=function(r,n){var i=this._extent;isNaN(r)||(i[0]=parseFloat(r)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]<n[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=q1(r)},t.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]<a[0]&&(r?s.push({value:Ln(a[0]-n,o)}):s.push({value:i[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=Ln(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var f=s.length?s[s.length-1].value:a[1];return i[1]>f&&(r?s.push({value:Ln(f+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,f=[],c=s.value-l.value,v=c/r;u<r-1;){var h=Ln(l.value+(u+1)*v);h>a[0]&&h<a[1]&&f.push(h),u++}i.push(f)}return i},t.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=nr(r.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=Ln(r.value,i,!0);return Xh(a)},t.prototype.calcNiceTicks=function(r,n,i){r=r||5;var a=this._extent,o=a[1]-a[0];if(!!isFinite(o)){o<0&&(o=-o,a.reverse());var s=KL(a,r,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var i=Math.abs(n[0]);r.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;var a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval;r.fixMin||(n[0]=Ln(Math.floor(n[0]/o)*o)),r.fixMax||(n[1]=Ln(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t}(Ir);Ir.registerClass(K1);const Qn=K1;var Q1=typeof Float32Array<"u",JL=Q1?Float32Array:Array;function br(e){return V(e)?Q1?new Float32Array(e):e:new JL(e)}var tP="__ec_stack_";function _v(e){return e.get("stack")||tP+e.seriesIndex}function xv(e){return e.dim+e.index}function J1(e,t){var r=[];return t.eachSeriesByType(e,function(n){ex(n)&&r.push(n)}),r}function eP(e){var t={};A(e,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var c=l.getData(),v=f.dim+"_"+f.index,h=c.getDimensionIndex(c.mapDimension(f.dim)),d=c.getStore(),p=0,g=d.count();p<g;++p){var y=d.get(h,p);t[v]?t[v].push(y):t[v]=[y]}});var r={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];if(i){i.sort(function(l,u){return l-u});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function tx(e){var t=eP(e),r=[];return A(e,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],f=Math.abs(o[1]-o[0]),c=a.scale.getExtent(),v=Math.abs(c[1]-c[0]);s=u?f/v*u:f}else{var h=n.getData();s=Math.abs(o[1]-o[0])/h.count()}var d=K(n.get("barWidth"),s),p=K(n.get("barMaxWidth"),s),g=K(n.get("barMinWidth")||(rx(n)?.5:1),s),y=n.get("barGap"),m=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:xv(a),stackId:_v(n)})}),rP(r)}function rP(e){var t={};A(e,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var c=n.barMaxWidth;c&&(l[u].maxWidth=c);var v=n.barMinWidth;v&&(l[u].minWidth=v);var h=n.barGap;h!=null&&(s.gap=h);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var r={};return A(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=mt(a).length;s=Math.max(35-l*4,15)+"%"}var u=K(s,o),f=K(n.gap,1),c=n.remainedWidth,v=n.autoWidthCount,h=(c-u)/(v+(v-1)*f);h=Math.max(h,0),A(a,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var x=y.width;m&&(x=Math.min(x,m)),_&&(x=Math.max(x,_)),y.width=x,c-=x+f*x,v--}else{var x=h;m&&m<x&&(x=Math.min(m,c)),_&&_>x&&(x=_),x!==h&&(y.width=x,c-=x+f*x,v--)}}),h=(c-u)/(v+(v-1)*f),h=Math.max(h,0);var d=0,p;A(a,function(y,m){y.width||(y.width=h),p=y,d+=y.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;A(a,function(y,m){r[i][m]=r[i][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),r}function nP(e,t,r){if(e&&t){var n=e[xv(t)];return n!=null&&r!=null?n[_v(r)]:n}}function iP(e,t){var r=J1(e,t),n=tx(r);A(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=_v(i),u=n[xv(s)][l],f=u.offset,c=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function aP(e){return{seriesType:e,plan:iv(),reset:function(t){if(!!ex(t)){var r=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=t.get("showBackground",!0),u=r.mapDimension(a.dim),f=r.getCalculationInfo("stackResultDimension"),c=nn(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),v=a.isHorizontal(),h=oP(i,a),d=rx(t),p=t.get("barMinHeight")||0,g=f&&r.getDimensionIndex(f),y=r.getLayout("size"),m=r.getLayout("offset");return{progress:function(_,x){for(var w=_.count,b=d&&br(w*3),S=d&&l&&br(w*3),T=d&&br(w),D=n.master.getRect(),M=v?D.width:D.height,C,E=x.getStore(),L=0;(C=_.next())!=null;){var P=E.get(c?g:o,C),I=E.get(s,C),O=h,F=void 0;c&&(F=+P-E.get(o,C));var N=void 0,B=void 0,G=void 0,W=void 0;if(v){var Z=n.dataToPoint([P,I]);if(c){var et=n.dataToPoint([F,I]);O=et[0]}N=O,B=Z[1]+m,G=Z[0]-O,W=y,Math.abs(G)<p&&(G=(G<0?-1:1)*p)}else{var Z=n.dataToPoint([I,P]);if(c){var et=n.dataToPoint([I,F]);O=et[1]}N=Z[0]+m,B=O,G=y,W=Z[1]-O,Math.abs(W)<p&&(W=(W<=0?-1:1)*p)}d?(b[L]=N,b[L+1]=B,b[L+2]=v?G:W,S&&(S[L]=v?D.x:N,S[L+1]=v?B:D.y,S[L+2]=M),T[C]=C):x.setItemLayout(C,{x:N,y:B,width:G,height:W}),L+=3}d&&x.setLayout({largePoints:b,largeDataIndices:T,largeBackgroundPoints:S,valueAxisHorizontal:v})}}}}}}function ex(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function rx(e){return e.pipelineContext&&e.pipelineContext.large}function oP(e,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var sP=function(e,t,r,n){for(;r<n;){var i=r+n>>>1;e[i][1]<t?r=i+1:n=i}return r},nx=function(e){R(t,e);function t(r){var n=e.call(this,r)||this;return n.type="time",n}return t.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return Do(r.value,hp[vA(Ri(this._minLevelUnit))]||hp.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return dA(r,n,i,o,a)},t.prototype.getTicks=function(){var r=this._interval,n=this._extent,i=[];if(!r)return i;i.push({value:n[0],level:0});var a=this.getSetting("useUTC"),o=dP(this._minLevelUnit,this._approxInterval,a,n);return i=i.concat(o),i.push({value:n[1],level:0}),i},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1]&&(n[0]-=Ae,n[1]+=Ae),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-Ae}this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,n,i){r=r||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=os.length,l=Math.min(sP(os,this._approxInterval,0,s),s-1);this._interval=os[l][1],this._minLevelUnit=os[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return vt(r)?r:+Le(r)},t.prototype.contain=function(r){return nu(this.parse(r),this._extent)},t.prototype.normalize=function(r){return iu(this.parse(r),this._extent)},t.prototype.scale=function(r){return au(r,this._extent)},t.type="time",t}(Qn),os=[["second",Wh],["minute",Uh],["hour",Ha],["quarter-day",Ha*6],["half-day",Ha*12],["day",Ae*1.2],["half-week",Ae*3.5],["week",Ae*7],["month",Ae*31],["quarter",Ae*95],["half-year",cp/2],["year",cp]];function lP(e,t,r,n){var i=Le(t),a=Le(r),o=function(d){return vp(i,d,n)===vp(a,d,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},c=function(){return f()&&o("minute")},v=function(){return c()&&o("second")},h=function(){return v()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return c();case"second":return v();case"millisecond":return h()}}function uP(e,t){return e/=Ae,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function fP(e){var t=30*Ae;return e/=t,e>6?6:e>3?3:e>2?2:1}function cP(e){return e/=Ha,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function Sg(e,t){return e/=t?Uh:Wh,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function hP(e){return Sh(e,!0)}function vP(e,t,r){var n=new Date(e);switch(Ri(t)){case"year":case"month":n[w_(r)](0);case"day":n[T_(r)](1);case"hour":n[C_(r)](0);case"minute":n[D_(r)](0);case"second":n[A_(r)](0),n[M_(r)](0)}return n.getTime()}function dP(e,t,r,n){var i=1e4,a=b_,o=0;function s(M,C,E,L,P,I,O){for(var F=new Date(C),N=C,B=F[L]();N<E&&N<=n[1];)O.push({value:N}),B+=M,F[P](B),N=F.getTime();O.push({value:N,notAdd:!0})}function l(M,C,E){var L=[],P=!C.length;if(!lP(Ri(M),n[0],n[1],r)){P&&(C=[{value:vP(new Date(n[0]),M,r)},{value:n[1]}]);for(var I=0;I<C.length-1;I++){var O=C[I].value,F=C[I+1].value;if(O!==F){var N=void 0,B=void 0,G=void 0,W=!1;switch(M){case"year":N=Math.max(1,Math.round(t/Ae/365)),B=Yh(r),G=pA(r);break;case"half-year":case"quarter":case"month":N=fP(t),B=ki(r),G=w_(r);break;case"week":case"half-week":case"day":N=uP(t),B=Wl(r),G=T_(r),W=!0;break;case"half-day":case"quarter-day":case"hour":N=cP(t),B=ao(r),G=C_(r);break;case"minute":N=Sg(t,!0),B=Ul(r),G=D_(r);break;case"second":N=Sg(t,!1),B=Yl(r),G=A_(r);break;case"millisecond":N=hP(t),B=Xl(r),G=M_(r);break}s(N,O,F,B,G,W,L),M==="year"&&E.length>1&&I===0&&E.unshift({value:E[0].value-N})}}for(var I=0;I<L.length;I++)E.push(L[I]);return L}}for(var u=[],f=[],c=0,v=0,h=0;h<a.length&&o++<i;++h){var d=Ri(a[h]);if(!!hA(a[h])){l(a[h],u[u.length-1]||[],f);var p=a[h+1]?Ri(a[h+1]):null;if(d!==p){if(f.length){v=c,f.sort(function(M,C){return M.value-C.value});for(var g=[],y=0;y<f.length;++y){var m=f[y].value;(y===0||f[y-1].value!==m)&&(g.push(f[y]),m>=n[0]&&m<=n[1]&&c++)}var _=(n[1]-n[0])/t;if(c>_*1.5&&v>_/1.5||(u.push(g),c>_||e===a[h]))break}f=[]}}}process.env.NODE_ENV!=="production"&&o>=i&&kt("Exceed safe limit.");for(var x=_t(z(u,function(M){return _t(M,function(C){return C.value>=n[0]&&C.value<=n[1]&&!C.notAdd})}),function(M){return M.length>0}),w=[],b=x.length-1,h=0;h<x.length;++h)for(var S=x[h],T=0;T<S.length;++T)w.push({value:S[T].value,level:b-h});w.sort(function(M,C){return M.value-C.value});for(var D=[],h=0;h<w.length;++h)(h===0||w[h].value!==w[h-1].value)&&D.push(w[h]);return D}Ir.registerClass(nx);const pP=nx;var wg=Ir.prototype,Xa=Qn.prototype,gP=Ct,yP=Math.floor,mP=Math.ceil,ss=Math.pow,Fe=Math.log,bv=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new Qn,r._interval=0,r}return t.prototype.getTicks=function(r){var n=this._originalScale,i=this._extent,a=n.getExtent(),o=Xa.getTicks.call(this,r);return z(o,function(s){var l=s.value,u=Ct(ss(this.base,l));return u=l===i[0]&&this._fixMin?ls(u,a[0]):u,u=l===i[1]&&this._fixMax?ls(u,a[1]):u,{value:u}},this)},t.prototype.setExtent=function(r,n){var i=Fe(this.base);r=Fe(Math.max(0,r))/i,n=Fe(Math.max(0,n))/i,Xa.setExtent.call(this,r,n)},t.prototype.getExtent=function(){var r=this.base,n=wg.getExtent.call(this);n[0]=ss(r,n[0]),n[1]=ss(r,n[1]);var i=this._originalScale,a=i.getExtent();return this._fixMin&&(n[0]=ls(n[0],a[0])),this._fixMax&&(n[1]=ls(n[1],a[1])),n},t.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=Fe(r[0])/Fe(n),r[1]=Fe(r[1])/Fe(n),wg.unionExtent.call(this,r)},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent,i=n[1]-n[0];if(!(i===1/0||i<=0)){var a=f0(i),o=r/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[Ct(mP(n[0]/a)*a),Ct(yP(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){Xa.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=Fe(r)/Fe(this.base),nu(r,this._extent)},t.prototype.normalize=function(r){return r=Fe(r)/Fe(this.base),iu(r,this._extent)},t.prototype.scale=function(r){return r=au(r,this._extent),ss(this.base,r)},t.type="log",t}(Ir),ix=bv.prototype;ix.getMinorTicks=Xa.getMinorTicks;ix.getLabel=Xa.getLabel;function ls(e,t){return gP(e,nr(t))}Ir.registerClass(bv);const _P=bv;var xP=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var a=this._modelMinRaw=r.get("min",!0);X(a)?this._modelMinNum=us(t,a({min:n[0],max:n[1]})):a!=="dataMin"&&(this._modelMinNum=us(t,a));var o=this._modelMaxRaw=r.get("max",!0);if(X(o)?this._modelMaxNum=us(t,o({min:n[0],max:n[1]})):o!=="dataMax"&&(this._modelMaxNum=us(t,o)),i)this._axisDataLen=r.getCategories().length;else{var s=r.get("boundaryGap"),l=V(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?(process.env.NODE_ENV!=="production"&&console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),this._boundaryGapInner=[0,0]):this._boundaryGapInner=[en(l[0],1),en(l[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=t?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=t?i?0:NaN:r-a[0]*o),l==null&&(l=t?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var c=Fi(s)||Fi(l)||t&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var v=this._determinedMin,h=this._determinedMax;return v!=null&&(s=v,u=!0),h!=null&&(l=h,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},e.prototype.modifyDataMinMax=function(t,r){process.env.NODE_ENV!=="production"&&J(!this.frozen),this[SP[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=bP[t];process.env.NODE_ENV!=="production"&&J(!this.frozen&&this[n]==null),this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),bP={min:"_determinedMin",max:"_determinedMax"},SP={min:"_dataMin",max:"_dataMax"};function wP(e,t,r){var n=e.rawExtentInfo;return n||(n=new xP(e,t,r),e.rawExtentInfo=n,n)}function us(e,t){return t==null?null:Fi(t)?NaN:e.parse(t)}function ax(e,t){var r=e.type,n=wP(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&r==="time"){var s=J1("bar",o),l=!1;if(A(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=tx(s),f=TP(i,a,t,u);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function TP(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=nP(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;A(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;A(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-e,c=1-(s+l)/a,v=f/c-f;return t+=v*(l/u),e-=v*(s/u),{min:e,max:t}}function Xi(e,t){var r=t,n=ax(e,r),i=n.extent,a=r.get("splitNumber");e instanceof _P&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),l=o==="interval"||o==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function ou(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new j1({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new pP({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Ir.getClass(t)||Qn)}}function CP(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function Mo(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(n){return function(i,a){return e.scale.getFormattedLabel(i,a,n)}}(t):$(t)?function(n){return function(i){var a=e.scale.getLabel(i),o=n.replace("{value}",a!=null?a:"");return o}}(t):X(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(Sv(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function Sv(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function DP(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof j1?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=Mo(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var f=0;f<i;f+=u){var c=n?n[f]:{value:a[0]+f},v=s(c,f),h=o.getTextRect(v),d=AP(h,o.get("rotate")||0);l?l.union(d):l=d}return l}}function AP(e,t){var r=t*Math.PI/180,n=e.width,i=e.height,a=n*Math.abs(Math.cos(r))+Math.abs(i*Math.sin(r)),o=n*Math.abs(Math.sin(r))+Math.abs(i*Math.cos(r)),s=new it(e.x,e.y,a,o);return s}function wv(e){var t=e.get("interval");return t==null?"auto":t}function ox(e){return e.type==="category"&&wv(e.getLabelModel())===0}function Oc(e,t){var r={};return A(e.mapDimensionsAll(t),function(n){r[Y1(e,n)]=!0}),mt(r)}var Eo=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}();function MP(e){return ru(null,e)}var EP={isDimensionStacked:nn,enableDataStack:U1,getStackedDimension:Y1};function LP(e,t){var r=t;t instanceof Et||(r=new Et(t));var n=ou(r);return n.setExtent(e[0],e[1]),Xi(n,r),n}function PP(e){ie(e,Eo)}function IP(e,t){return t=t||{},fr(e,null,null,t.state!=="normal")}const OP=Object.freeze(Object.defineProperty({__proto__:null,createList:MP,getLayoutRect:Er,dataStack:EP,createScale:LP,mixinAxisModelCommonMethods:PP,getECData:ut,createTextStyle:IP,createDimensions:RL,createSymbol:Kn,enableHoverEmphasis:Js},Symbol.toStringTag,{value:"Module"}));var Tg=[],NP={registerPreprocessor:vv,registerProcessor:dv,registerPostInit:N1,registerPostUpdate:R1,registerUpdateLifecycle:eu,registerAction:un,registerCoordinateSystem:k1,registerLayout:B1,registerVisual:fn,registerTransform:V1,registerLoading:gv,registerMap:F1,registerImpl:qE,PRIORITY:C1,ComponentModel:st,ComponentView:Vt,SeriesModel:Oe,ChartView:ce,registerComponentModel:function(e){st.registerClass(e)},registerComponentView:function(e){Vt.registerClass(e)},registerSeriesModel:function(e){Oe.registerClass(e)},registerChartView:function(e){ce.registerClass(e)},registerSubTypeDefaulter:function(e,t){st.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){a0(e,t)}};function cr(e){if(V(e)){A(e,function(t){cr(t)});return}ct(Tg,e)>=0||(Tg.push(e),X(e)&&(e={install:e}),e.install(NP))}var RP=1e-8;function Cg(e,t){return Math.abs(e-t)<RP}function Dg(e,t,r){var n=0,i=e[0];if(!i)return!1;for(var a=1;a<e.length;a++){var o=e[a];n+=_r(i[0],i[1],o[0],o[1],t,r),i=o}var s=e[0];return(!Cg(i[0],s[0])||!Cg(i[1],s[1]))&&(n+=_r(i[0],i[1],s[0],s[1],t,r)),n!==0}var kP=[];function yf(e,t){for(var r=0;r<e.length;r++)ee(e[r],e[r],t)}function Ag(e,t,r,n){for(var i=0;i<e.length;i++){var a=e[i];n&&(a=n.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(Ur(t,t,a),Yr(r,r,a))}}function BP(e){for(var t=0,r=0,n=0,i=e.length,a=e[i-1][0],o=e[i-1][1],s=0;s<i;s++){var l=e[s][0],u=e[s][1],f=a*u-l*o;t+=f,r+=(a+l)*f,n+=(o+u)*f,a=l,o=u}return t?[r/t/3,n/t/3,t]:[e[0][0]||0,e[0][1]||0]}var sx=function(){function e(t){this.name=t}return e.prototype.setCenter=function(t){this._center=t},e.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},e}(),Mg=function(){function e(t,r){this.type="polygon",this.exterior=t,this.interiors=r}return e}(),Eg=function(){function e(t){this.type="linestring",this.points=t}return e}(),FP=function(e){R(t,e);function t(r,n,i){var a=e.call(this,r)||this;return a.type="geoJSON",a.geometries=n,a._center=i&&[i[0],i[1]],a}return t.prototype.calcCenter=function(){for(var r=this.geometries,n,i=0,a=0;a<r.length;a++){var o=r[a],s=o.exterior,l=s&&s.length;l>i&&(n=o,i=l)}if(n)return BP(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return A(o,function(s){s.type==="polygon"?Ag(s.exterior,i,a,r):A(s.points,function(l){Ag(l,i,a,r)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new it(i[0],i[1],a[0]-i[0],a[1]-i[1]),r||(this._rect=n),n},t.prototype.contain=function(r){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(r[0],r[1]))return!1;t:for(var a=0,o=i.length;a<o;a++){var s=i[a];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Dg(l,r[0],r[1])){for(var f=0;f<(u?u.length:0);f++)if(Dg(u[f],r[0],r[1]))continue t;return!0}}}return!1},t.prototype.transformTo=function(r,n,i,a){var o=this.getBoundingRect(),s=o.width/o.height;i?a||(a=i/s):i=s*a;for(var l=new it(r,n,i,a),u=o.calculateTransform(l),f=this.geometries,c=0;c<f.length;c++){var v=f[c];v.type==="polygon"?(yf(v.exterior,u),A(v.interiors,function(h){yf(h,u)})):A(v.points,function(h){yf(h,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(r){r==null&&(r=this.name);var n=new t(r,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(sx);(function(e){R(t,e);function t(r,n){var i=e.call(this,r)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return t.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,n=r.getBoundingRect(),i=[n.x+n.width/2,n.y+n.height/2],a=mo(kP),o=r;o&&!o.isGeoSVGGraphicRoot;)Qr(a,o.getLocalTransform(),a),o=o.parent;return Ki(a,a),ee(i,i,a),i},t})(sx);function VP(e){if(!e.UTF8Encoding)return e;var t=e,r=t.UTF8Scale;r==null&&(r=1024);var n=t.features;return A(n,function(i){var a=i.geometry,o=a.encodeOffsets,s=a.coordinates;if(!!o)switch(a.type){case"LineString":a.coordinates=lx(s,o,r);break;case"Polygon":mf(s,o,r);break;case"MultiLineString":mf(s,o,r);break;case"MultiPolygon":A(s,function(l,u){return mf(l,o[u],r)})}}),t.UTF8Encoding=!1,t}function mf(e,t,r){for(var n=0;n<e.length;n++)e[n]=lx(e[n],t[n],r)}function lx(e,t,r){for(var n=[],i=t[0],a=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,l=e.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,n.push([s/r,l/r])}return n}function Lg(e,t){return e=VP(e),z(_t(e.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,i=r.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new Mg(o[0],o.slice(1)));break;case"MultiPolygon":A(i.coordinates,function(l){l[0]&&a.push(new Mg(l[0],l.slice(1)))});break;case"LineString":a.push(new Eg([i.coordinates]));break;case"MultiLineString":a.push(new Eg(i.coordinates))}var s=new FP(n[t||"name"],a,n.cp);return s.properties=n,s})}const zP=Object.freeze(Object.defineProperty({__proto__:null,linearMap:zi,round:Ct,asc:s0,getPrecision:nr,getPrecisionSafe:qs,getPixelPrecision:l0,getPercentWithPrecision:mT,MAX_SAFE_INTEGER:xT,remRadian:bh,isRadianAroundZero:to,parseDate:Le,quantity:f0,quantityExponent:bo,nice:Sh,quantile:ST,reformIntervals:wT,isNumeric:wh,numericToNumber:Ar},Symbol.toStringTag,{value:"Module"})),GP=Object.freeze(Object.defineProperty({__proto__:null,parse:Le,format:Do},Symbol.toStringTag,{value:"Module"})),$P=Object.freeze(Object.defineProperty({__proto__:null,extendShape:u_,extendPath:f_,makePath:Fl,makeImage:kh,mergePath:De,resizePath:Bh,createIcon:zl,updateProps:Lt,initProps:Bt,getTransform:Fh,clipPointsByRect:Vh,clipRectByRect:d_,registerShape:Re,getShapeClass:c_,Group:Dt,Image:sn,Text:Ot,Circle:rn,Ellipse:Ih,Sector:Ie,Ring:To,Polygon:ai,Polyline:ln,Rect:wt,Line:Me,BezierCurve:Oh,Arc:Rl,IncrementalDisplayable:s_,CompoundPath:i_,LinearGradient:Nh,RadialGradient:o_,BoundingRect:it},Symbol.toStringTag,{value:"Module"})),HP=Object.freeze(Object.defineProperty({__proto__:null,addCommas:Xh,toCamelCase:qh,normalizeCssArray:Ao,encodeHTML:de,formatTpl:Zh,getTooltipMarker:E_,formatTime:yA,capitalFirst:mA,truncateText:x0,getTextRect:gA},Symbol.toStringTag,{value:"Module"})),WP=Object.freeze(Object.defineProperty({__proto__:null,map:z,each:A,indexOf:ct,inherits:uh,reduce:lr,filter:_t,bind:ht,curry:dt,isArray:V,isString:$,isObject:H,isFunction:X,extend:k,defaults:Y,clone:j,merge:rt},Symbol.toStringTag,{value:"Module"}));var co=xt();function UP(e){return e.type==="category"?XP(e):ZP(e)}function YP(e,t){return e.type==="category"?qP(e,t):{ticks:z(e.scale.getTicks(),function(r){return r.value})}}function XP(e){var t=e.getLabelModel(),r=ux(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function ux(e,t){var r=fx(e,"labels"),n=wv(t),i=cx(r,n);if(i)return i;var a,o;return X(n)?a=dx(e,n):(o=n==="auto"?jP(e):n,a=vx(e,o)),hx(r,n,{labels:a,labelCategoryInterval:o})}function qP(e,t){var r=fx(e,"ticks"),n=wv(t),i=cx(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),X(n))a=dx(e,n,!0);else if(n==="auto"){var s=ux(e,e.getLabelModel());o=s.labelCategoryInterval,a=z(s.labels,function(l){return l.tickValue})}else o=n,a=vx(e,o,!0);return hx(r,n,{ticks:a,tickCategoryInterval:o})}function ZP(e){var t=e.scale.getTicks(),r=Mo(e);return{labels:z(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function fx(e,t){return co(e)[t]||(co(e)[t]=[])}function cx(e,t){for(var r=0;r<e.length;r++)if(e[r].key===t)return e[r].value}function hx(e,t,r){return e.push({key:t,value:r}),r}function jP(e){var t=co(e).autoInterval;return t!=null?t:co(e).autoInterval=e.calculateCategoryInterval()}function KP(e){var t=QP(e),r=Mo(e),n=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),f=Math.abs(u*Math.cos(n)),c=Math.abs(u*Math.sin(n)),v=0,h=0;l<=a[1];l+=s){var d=0,p=0,g=Al(r({value:l}),t.font,"center","top");d=g.width*1.3,p=g.height*1.3,v=Math.max(v,d,7),h=Math.max(h,p,7)}var y=v/f,m=h/c;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),x=co(e.model),w=e.getExtent(),b=x.lastAutoInterval,S=x.lastTickCount;return b!=null&&S!=null&&Math.abs(b-_)<=1&&Math.abs(S-o)<=1&&b>_&&x.axisExtent0===w[0]&&x.axisExtent1===w[1]?_=b:(x.lastTickCount=o,x.lastAutoInterval=_,x.axisExtent0=w[0],x.axisExtent1=w[1]),_}function QP(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function vx(e,t,r){var n=Mo(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],f=i.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=ox(e),v=o.get("showMinLabel")||c,h=o.get("showMaxLabel")||c;v&&u!==a[0]&&p(a[0]);for(var d=u;d<=a[1];d+=l)p(d);h&&d-l!==a[1]&&p(a[1]);function p(g){var y={value:g};s.push(r?g:{formattedLabel:n(y),rawLabel:i.getLabel(y),tickValue:g})}return s}function dx(e,t,r){var n=e.scale,i=Mo(e),a=[];return A(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var Pg=[0,1],JP=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return t>=n&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return l0(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),Ig(n,i.count())),zi(t,Pg,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),Ig(n,i.count()));var a=zi(t,n,Pg,r);return this.scale.scale(a)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=YP(this,r),i=n.ticks,a=z(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return tI(this,a,o,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=z(n,function(a){return z(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(){return UP(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return KP(this)},e}();function Ig(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function tI(e,t,r,n){var i=t.length;if(!e.onBand||r||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;A(t,function(h){h.coord-=u/2});var f=e.scale.getExtent();s=1+f[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s},t.push(o)}var c=a[0]>a[1];v(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&v(a[0],t[0].coord)&&t.unshift({coord:a[0]}),v(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&v(o.coord,a[1])&&t.push({coord:a[1]});function v(h,d){return h=Ct(h),d=Ct(d),c?h>d:h<d}}const vr=JP;function eI(e){var t=st.extend(e);return st.registerClass(t),t}function rI(e){var t=Vt.extend(e);return Vt.registerClass(t),t}function nI(e){var t=Oe.extend(e);return Oe.registerClass(t),t}function iI(e){var t=ce.extend(e);return ce.registerClass(t),t}var Ca=Math.PI*2,Pn=Mr.CMD,aI=["top","right","bottom","left"];function oI(e,t,r,n,i){var a=r.width,o=r.height;switch(e){case"top":n.set(r.x+a/2,r.y-t),i.set(0,-1);break;case"bottom":n.set(r.x+a/2,r.y+o+t),i.set(0,1);break;case"left":n.set(r.x-t,r.y+o/2),i.set(-1,0);break;case"right":n.set(r.x+a+t,r.y+o/2),i.set(1,0);break}}function sI(e,t,r,n,i,a,o,s,l){o-=e,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*r+e,c=s*r+t;if(Math.abs(n-i)%Ca<1e-4)return l[0]=f,l[1]=c,u-r;if(a){var v=n;n=xr(i),i=xr(v)}else n=xr(n),i=xr(i);n>i&&(i+=Ca);var h=Math.atan2(s,o);if(h<0&&(h+=Ca),h>=n&&h<=i||h+Ca>=n&&h+Ca<=i)return l[0]=f,l[1]=c,u-r;var d=r*Math.cos(n)+e,p=r*Math.sin(n)+t,g=r*Math.cos(i)+e,y=r*Math.sin(i)+t,m=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=d,l[1]=p,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function yl(e,t,r,n,i,a,o,s){var l=i-e,u=a-t,f=r-e,c=n-t,v=Math.sqrt(f*f+c*c);f/=v,c/=v;var h=l*f+u*c,d=h/v;s&&(d=Math.min(Math.max(d,0),1)),d*=v;var p=o[0]=e+d*f,g=o[1]=t+d*c;return Math.sqrt((p-i)*(p-i)+(g-a)*(g-a))}function px(e,t,r,n,i,a,o){r<0&&(e=e+r,r=-r),n<0&&(t=t+n,n=-n);var s=e+r,l=t+n,u=o[0]=Math.min(Math.max(i,e),s),f=o[1]=Math.min(Math.max(a,t),l);return Math.sqrt((u-i)*(u-i)+(f-a)*(f-a))}var $e=[];function lI(e,t,r){var n=px(t.x,t.y,t.width,t.height,e.x,e.y,$e);return r.set($e[0],$e[1]),n}function uI(e,t,r){for(var n=0,i=0,a=0,o=0,s,l,u=1/0,f=t.data,c=e.x,v=e.y,h=0;h<f.length;){var d=f[h++];h===1&&(n=f[h],i=f[h+1],a=n,o=i);var p=u;switch(d){case Pn.M:a=f[h++],o=f[h++],n=a,i=o;break;case Pn.L:p=yl(n,i,f[h],f[h+1],c,v,$e,!0),n=f[h++],i=f[h++];break;case Pn.C:p=Ym(n,i,f[h++],f[h++],f[h++],f[h++],f[h],f[h+1],c,v,$e),n=f[h++],i=f[h++];break;case Pn.Q:p=qm(n,i,f[h++],f[h++],f[h],f[h+1],c,v,$e),n=f[h++],i=f[h++];break;case Pn.A:var g=f[h++],y=f[h++],m=f[h++],_=f[h++],x=f[h++],w=f[h++];h+=1;var b=!!(1-f[h++]);s=Math.cos(x)*m+g,l=Math.sin(x)*_+y,h<=1&&(a=s,o=l);var S=(c-g)*_/m+g;p=sI(g,y,_,x,x+w,b,S,v,$e),n=Math.cos(x+w)*m+g,i=Math.sin(x+w)*_+y;break;case Pn.R:a=n=f[h++],o=i=f[h++];var T=f[h++],D=f[h++];p=px(a,o,T,D,c,v,$e);break;case Pn.Z:p=yl(n,i,a,o,c,v,$e,!0),n=a,i=o;break}p<u&&(u=p,r.set($e[0],$e[1]))}return u}var We=new U,gt=new U,Tt=new U,ar=new U,rr=new U;function Og(e,t){if(!!e){var r=e.getTextGuideLine(),n=e.getTextContent();if(!!(n&&r)){var i=e.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||aI,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=i.anchor,f=e.getComputedTransform(),c=f&&Ki([],f),v=t.get("length2")||0;u&&Tt.copy(u);for(var h=0;h<o.length;h++){var d=o[h];oI(d,0,s,We,ar),U.scaleAndAdd(gt,We,ar,v),gt.transform(c);var p=e.getBoundingRect(),g=u?u.distance(gt):e instanceof ot?uI(gt,e.path,Tt):lI(gt,p,Tt);g<l&&(l=g,gt.transform(f),Tt.transform(f),Tt.toArray(a[0]),gt.toArray(a[1]),We.toArray(a[2]))}gx(a,t.get("minTurnAngle")),r.setShape({points:a})}}}var ml=[],Jt=new U;function gx(e,t){if(t<=180&&t>0){t=t/180*Math.PI,We.fromArray(e[0]),gt.fromArray(e[1]),Tt.fromArray(e[2]),U.sub(ar,We,gt),U.sub(rr,Tt,gt);var r=ar.len(),n=rr.len();if(!(r<.001||n<.001)){ar.scale(1/r),rr.scale(1/n);var i=ar.dot(rr),a=Math.cos(t);if(a<i){var o=yl(gt.x,gt.y,Tt.x,Tt.y,We.x,We.y,ml,!1);Jt.fromArray(ml),Jt.scaleAndAdd(rr,o/Math.tan(Math.PI-t));var s=Tt.x!==gt.x?(Jt.x-gt.x)/(Tt.x-gt.x):(Jt.y-gt.y)/(Tt.y-gt.y);if(isNaN(s))return;s<0?U.copy(Jt,gt):s>1&&U.copy(Jt,Tt),Jt.toArray(e[1])}}}}function fI(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,We.fromArray(e[0]),gt.fromArray(e[1]),Tt.fromArray(e[2]),U.sub(ar,gt,We),U.sub(rr,Tt,gt);var n=ar.len(),i=rr.len();if(!(n<.001||i<.001)){ar.scale(1/n),rr.scale(1/i);var a=ar.dot(t),o=Math.cos(r);if(a<o){var s=yl(gt.x,gt.y,Tt.x,Tt.y,We.x,We.y,ml,!1);Jt.fromArray(ml);var l=Math.PI/2,u=Math.acos(rr.dot(t)),f=l+u-r;if(f>=l)U.copy(Jt,Tt);else{Jt.scaleAndAdd(rr,s/Math.tan(Math.PI/2-f));var c=Tt.x!==gt.x?(Jt.x-gt.x)/(Tt.x-gt.x):(Jt.y-gt.y)/(Tt.y-gt.y);if(isNaN(c))return;c<0?U.copy(Jt,gt):c>1&&U.copy(Jt,Tt)}Jt.toArray(e[1])}}}}function Ng(e,t,r,n){var i=r==="normal",a=i?e:e.ensureState(r);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function cI(e,t){var r=t.smooth,n=t.points;if(!!n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=$s(n[0],n[1]),a=$s(n[1],n[2]);if(!i||!a){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=Fa([],n[1],n[0],o/i),l=Fa([],n[1],n[2],o/a),u=Fa([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)e.lineTo(n[f][0],n[f][1])}function Tv(e,t,r){var n=e.getTextGuideLine(),i=e.getTextContent();if(!i){n&&e.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=i.ignore,l=0;l<js.length;l++){var u=js[l],f=t[u],c=u==="normal";if(f){var v=f.get("show"),h=c?s:nt(i.states[u]&&i.states[u].ignore,s);if(h||!nt(v,o)){var d=c?n:n&&n.states[u];d&&(d.ignore=!0);continue}n||(n=new ln,e.setTextGuideLine(n),!c&&(s||!o)&&Ng(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),Ng(n,!1,u,f)}}if(n){Y(n.style,r),n.style.fill=null;var p=a.get("showAbove"),g=e.textGuideLineConfig=e.textGuideLineConfig||{};g.showAbove=p||!1,n.buildPath=cI}}function Cv(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},n=0;n<Pe.length;n++){var i=Pe[n];r[i]=e.getModel([i,t])}return r}function yx(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if(!n.defaultAttr.ignore){var i=n.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=i.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var f=s?new tl(o,a):null;t.push({label:i,labelLine:n.labelLine,rect:u,localRect:o,obb:f,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:a})}}return t}function mx(e,t,r,n,i,a){var o=e.length;if(o<2)return;e.sort(function(T,D){return T.rect[t]-D.rect[t]});for(var s=0,l,u=!1,f=0,c=0;c<o;c++){var v=e[c],h=v.rect;l=h[t]-s,l<0&&(h[t]-=l,v.label[t]-=l,u=!0);var d=Math.max(-l,0);f+=d,s=h[t]+h[r]}f>0&&a&&w(-f/o,0,o);var p=e[0],g=e[o-1],y,m;_(),y<0&&b(-y,.8),m<0&&b(m,.8),_(),x(y,m,1),x(m,y,-1),_(),y<0&&S(-y),m<0&&S(m);function _(){y=p.rect[t]-n,m=i-g.rect[t]-g.rect[r]}function x(T,D,M){if(T<0){var C=Math.min(D,-T);if(C>0){w(C*M,0,o);var E=C+T;E<0&&b(-E*M,1)}else b(-T*M,1)}}function w(T,D,M){T!==0&&(u=!0);for(var C=D;C<M;C++){var E=e[C],L=E.rect;L[t]+=T,E.label[t]+=T}}function b(T,D){for(var M=[],C=0,E=1;E<o;E++){var L=e[E-1].rect,P=Math.max(e[E].rect[t]-L[t]-L[r],0);M.push(P),C+=P}if(!!C){var I=Math.min(Math.abs(T)/C,D);if(T>0)for(var E=0;E<o-1;E++){var O=M[E]*I;w(O,0,E+1)}else for(var E=o-1;E>0;E--){var O=M[E-1]*I;w(-O,E,o)}}}function S(T){var D=T<0?-1:1;T=Math.abs(T);for(var M=Math.ceil(T/(o-1)),C=0;C<o-1;C++)if(D>0?w(M,0,C+1):w(-M,o-C-1,o),T-=M,T<=0)return}return u}function hI(e,t,r,n){return mx(e,"x","width",t,r,n)}function _x(e,t,r,n){return mx(e,"y","height",t,r,n)}function xx(e){var t=[];e.sort(function(p,g){return g.priority-p.priority});var r=new it(0,0,0,0);function n(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var i=0;i<e.length;i++){var a=e[i],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,f=a.labelLine;r.copy(a.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var c=a.obb,v=!1,h=0;h<t.length;h++){var d=t[h];if(!!r.intersect(d.rect)){if(o&&d.axisAligned){v=!0;break}if(d.obb||(d.obb=new tl(d.localRect,d.transform)),c||(c=new tl(s,l)),c.intersect(d.obb)){v=!0;break}}}v?(n(u),f&&n(f)):(u.attr("ignore",a.defaultAttr.ignore),f&&f.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}function vI(e){if(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].slice());return t}}function dI(e,t){var r=e.label,n=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:r.style.align,verticalAlign:r.style.verticalAlign,labelLinePoints:vI(n&&n.shape.points)}}var Rg=["align","verticalAlign","width","height","fontSize"],Zt=new xo,_f=xt(),pI=xt();function fs(e,t,r){for(var n=0;n<r.length;n++){var i=r[n];t[i]!=null&&(e[i]=t[i])}}var cs=["x","y","rotation"],gI=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(t,r,n,i,a){var o=i.style,s=i.__hostTarget,l=s.textConfig||{},u=i.getComputedTransform(),f=i.getBoundingRect().plain();it.applyTransform(f,f,u),u?Zt.setLocalTransform(u):(Zt.x=Zt.y=Zt.rotation=Zt.originX=Zt.originY=0,Zt.scaleX=Zt.scaleY=1),Zt.rotation=xr(Zt.rotation);var c=i.__hostTarget,v;if(c){v=c.getBoundingRect().plain();var h=c.getComputedTransform();it.applyTransform(v,v,h)}var d=v&&c.getTextGuideLine();this._labelList.push({label:i,labelLine:d,seriesModel:n,dataIndex:t,dataType:r,layoutOption:a,computedLayoutOption:null,rect:f,hostRect:v,priority:v?v.width*v.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:d&&d.ignore,x:Zt.x,y:Zt.y,scaleX:Zt.scaleX,scaleY:Zt.scaleY,rotation:Zt.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:l.position,attachedRot:l.rotation}})},e.prototype.addLabelsOfSeries=function(t){var r=this;this._chartViewList.push(t);var n=t.__model,i=n.get("labelLayout");!(X(i)||mt(i).length)||t.group.traverse(function(a){if(a.ignore)return!0;var o=a.getTextContent(),s=ut(a);o&&!o.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,n,o,i)})},e.prototype.updateLayoutConfig=function(t){var r=t.getWidth(),n=t.getHeight();function i(_,x){return function(){Og(_,x)}}for(var a=0;a<this._labelList.length;a++){var o=this._labelList[a],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;X(o.layoutOption)?f=o.layoutOption(dI(o,l)):f=o.layoutOption,f=f||{},o.computedLayoutOption=f;var c=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*c:u.attachedRot,offset:[f.dx||0,f.dy||0]});var v=!1;if(f.x!=null?(s.x=K(f.x,r),s.setStyle("x",0),v=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=K(f.y,n),s.setStyle("y",0),v=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var h=l.getTextGuideLine();h&&(h.setShape({points:f.labelLinePoints}),v=!1)}var d=_f(s);d.needsUpdateLabelLine=v,s.rotation=f.rotate!=null?f.rotate*c:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<Rg.length;p++){var g=Rg[p];s.setStyle(g,f[g]!=null?f[g]:u.style[g])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var y=o.seriesModel;if(o.dataIndex!=null){var m=o.seriesModel.getData(o.dataType);y=m.getItemModel(o.dataIndex)}s.on("drag",i(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},e.prototype.layout=function(t){var r=t.getWidth(),n=t.getHeight(),i=yx(this._labelList),a=_t(i,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=_t(i,function(l){return l.layoutOption.moveOverlap==="shiftY"});hI(a,0,r),_x(o,0,n);var s=_t(i,function(l){return l.layoutOption.hideOverlap});xx(s)},e.prototype.processLabelsOverall=function(){var t=this;A(this._chartViewList,function(r){var n=r.__model,i=r.ignoreLabelLineUpdate,a=n.isAnimationEnabled();r.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!i,l=o.getTextContent();!s&&l&&(s=_f(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,n),a&&t._animateLabels(o,n)})})},e.prototype._updateLabelLine=function(t,r){var n=t.getTextContent(),i=ut(t),a=i.dataIndex;if(n&&a!=null){var o=r.getData(i.dataType),s=o.getItemModel(a),l={},u=o.getItemVisual(a,"style");if(u){var f=o.getVisual("drawType");l.stroke=u[f]}var c=s.getModel("labelLine");Tv(t,Cv(s),l),Og(t,c)}},e.prototype._animateLabels=function(t,r){var n=t.getTextContent(),i=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!Ni(t))){var a=_f(n),o=a.oldLayout,s=ut(t),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},f=r.getData(s.dataType);if(o){n.attr(o);var v=t.prevStates;v&&(ct(v,"select")>=0&&n.attr(a.oldLayoutSelect),ct(v,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),Lt(n,u,r,l)}else if(n.attr(u),!ea(n).valueAnimation){var c=nt(n.style.opacity,1);n.style.opacity=0,Bt(n,{style:{opacity:c}},r,l)}if(a.oldLayout=u,n.states.select){var h=a.oldLayoutSelect={};fs(h,u,cs),fs(h,n.states.select,cs)}if(n.states.emphasis){var d=a.oldLayoutEmphasis={};fs(d,u,cs),fs(d,n.states.emphasis,cs)}jD(n,l,f,r,r)}if(i&&!i.ignore&&!i.invisible){var a=pI(i),o=a.oldLayout,p={points:i.shape.points};o?(i.attr({shape:o}),Lt(i,{shape:p},r)):(i.setShape(p),i.style.strokePercent=0,Bt(i,{style:{strokePercent:1}},r)),a.oldLayout=p}},e}();const yI=gI;var xf=xt();function mI(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=xf(r).labelManager;i||(i=xf(r).labelManager=new yI),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var i=xf(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}const Lr=Object.freeze(Object.defineProperty({__proto__:null,registerLocale:Hh,version:ZE,dependencies:jE,PRIORITY:C1,init:vL,connect:dL,disconnect:O1,disConnect:pL,dispose:gL,getInstanceByDom:cv,getInstanceById:yL,registerTheme:hv,registerPreprocessor:vv,registerProcessor:dv,registerPostInit:N1,registerPostUpdate:R1,registerUpdateLifecycle:eu,registerAction:un,registerCoordinateSystem:k1,getCoordinateSystemDimensions:mL,registerLayout:B1,registerVisual:fn,registerLoading:gv,setCanvasCreator:_L,registerMap:F1,getMap:xL,registerTransform:V1,dataTool:bL,throttle:Jl,use:cr,setPlatformAPI:bm,parseGeoJSON:Lg,parseGeoJson:Lg,env:tt,Model:Et,Axis:vr,innerDrawElementOnCanvas:sv,zrender:gT,matrix:aw,vector:GS,zrUtil:PS,color:Rw,helper:OP,number:zP,time:GP,graphic:$P,format:HP,util:WP,List:yv,ComponentModel:st,ComponentView:Vt,SeriesModel:Oe,ChartView:ce,extendComponentModel:eI,extendComponentView:rI,extendSeriesModel:nI,extendChartView:iI},Symbol.toStringTag,{value:"Module"}));var _I=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r){if(process.env.NODE_ENV!=="production"){var n=r.coordinateSystem;if(n!=="polar"&&n!=="cartesian2d")throw new Error("Line not support coordinateSystem besides cartesian and polar")}return ru(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var n=new Dt,i=Kn("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(i),i.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=r.itemHeight*.8,u=Kn(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var f=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Oe);const xI=_I;function Dv(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Yi(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(Yi(e,t,r[o]));return a.join(" ")}}function bx(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!V(t))return t+"";for(var n=[],i=0;i<r.length;i++){var a=e.getDimensionIndex(r[i]);a>=0&&n.push(t[a])}return n.join(" ")}var bI=function(e){R(t,e);function t(r,n,i,a){var o=e.call(this)||this;return o.updateData(r,n,i,a),o}return t.prototype._createSymbol=function(r,n,i,a,o){this.removeAll();var s=Kn(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=SI,this._symbolType=r,this.add(s)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Ks(this.childAt(0))},t.prototype.downplay=function(){Qs(this.childAt(0))},t.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},t.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},t.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),u=o!==this._symbolType,f=a&&a.disableAnimation;if(u){var c=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,c)}else{var v=this.childAt(0);v.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};f?v.attr(h):Lt(v,h,s,n),Bl(v)}if(this._updateCommon(r,n,l,i,a),u){var v=this.childAt(0);if(!f){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,Bt(v,h,s,n)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,f,c,v,h,d,p,g,y;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,v=a.focus,h=a.blurScope,p=a.labelStatesModels,g=a.hoverScale,y=a.cursorStyle,d=a.emphasisDisabled),!a||r.hasItemOption){var m=a&&a.itemModel?a.itemModel:r.getItemModel(n),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),h=_.get("blurScope"),d=_.get("disabled"),p=ta(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var x=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var w=d1(r.getItemVisual(n,"symbolOffset"),i);w&&(s.x=w[0],s.y=w[1]),y&&s.attr("cursor",y);var b=r.getItemVisual(n,"style"),S=b.fill;if(s instanceof sn){var T=s.style;s.useStyle(k({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},b))}else s.__isEmptyBrush?s.useStyle(k({},b)):s.useStyle(b),s.style.decal=null,s.setColor(S,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=r.getItemVisual(n,"liftZ"),M=this._z2;D!=null?M==null&&(this._z2=s.z2,s.z2+=D):M!=null&&(s.z2=M,this._z2=null);var C=o&&o.useNameLabel;Ji(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:E,inheritColor:S,defaultOpacity:b.opacity});function E(I){return C?r.getName(I):Dv(r,I)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),Hi(this,v,h,d)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=ut(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&el(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();el(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return LE(r.getItemVisual(n,"symbolSize"))},t}(Dt);function SI(e,t){this.parent.drift(e,t)}const Av=bI;function bf(e,t,r,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,"symbol")!=="none"}function kg(e){return e!=null&&!H(e)&&(e={isIgnore:e}),e||{}}function Bg(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:ta(t),cursorStyle:t.get("cursor")}}var wI=function(){function e(t){this.group=new Dt,this._SymbolCtor=t||Av}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=kg(r);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=Bg(t),u={disableAnimation:s},f=r.getSymbolPoint||function(c){return t.getItemLayout(c)};a||n.removeAll(),t.diff(a).add(function(c){var v=f(c);if(bf(t,v,c,r)){var h=new o(t,c,l,u);h.setPosition(v),t.setItemGraphicEl(c,h),n.add(h)}}).update(function(c,v){var h=a.getItemGraphicEl(v),d=f(c);if(!bf(t,d,c,r)){n.remove(h);return}var p=t.getItemVisual(c,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==p)n.remove(h),h=new o(t,c,l,u),h.setPosition(d);else{h.updateData(t,c,l,u);var y={x:d[0],y:d[1]};s?h.attr(y):Lt(h,y,i)}n.add(h),t.setItemGraphicEl(c,h)}).remove(function(c){var v=a.getItemGraphicEl(c);v&&v.fadeOut(function(){n.remove(v)},i)}).execute(),this._getSymbolPoint=f,this._data=t},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Bg(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=kg(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var o=r.getItemLayout(a);if(bf(r,o,a,n)){var s=new this._SymbolCtor(r,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),r.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(t){Gl(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var r=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(i){i.fadeOut(function(){r.remove(i)},n.hostModel)}):r.removeAll()},e}();const TI=wI;function Sx(e,t,r){var n=e.getBaseAxis(),i=e.getOtherAxis(n),a=CI(i,r),o=n.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=z(e.dimensions,function(d){return t.mapDimension(d)}),v=!1,h=t.getCalculationInfo("stackResultDimension");return nn(t,c[0])&&(v=!0,c[0]=h),nn(t,c[1])&&(v=!0,c[1]=h),{dataDimsForPoint:c,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!v,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function CI(e,t){var r=0,n=e.scale.getExtent();return t==="start"?r=n[0]:t==="end"?r=n[1]:vt(t)&&!isNaN(t)?r=t:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function Tx(e,t,r,n){var i=NaN;e.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=r.get(e.baseDim,n),o[1-a]=i,t.dataToPoint(o)}function DI(e,t){var r=[];return t.diff(e).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function AI(e,t,r,n,i,a,o,s){for(var l=DI(e,t),u=[],f=[],c=[],v=[],h=[],d=[],p=[],g=Sx(i,t,o),y=e.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_<l.length;_++){var x=l[_],w=!0,b=void 0,S=void 0;switch(x.cmd){case"=":b=x.idx*2,S=x.idx1*2;var T=y[b],D=y[b+1],M=m[S],C=m[S+1];(isNaN(T)||isNaN(D))&&(T=M,D=C),u.push(T,D),f.push(M,C),c.push(r[b],r[b+1]),v.push(n[S],n[S+1]),p.push(t.getRawIndex(x.idx1));break;case"+":var E=x.idx,L=g.dataDimsForPoint,P=i.dataToPoint([t.get(L[0],E),t.get(L[1],E)]);S=E*2,u.push(P[0],P[1]),f.push(m[S],m[S+1]);var I=Tx(g,i,t,E);c.push(I[0],I[1]),v.push(n[S],n[S+1]),p.push(t.getRawIndex(E));break;case"-":w=!1}w&&(h.push(x),d.push(d.length))}d.sort(function(At,yt){return p[At]-p[yt]});for(var O=u.length,F=br(O),N=br(O),B=br(O),G=br(O),W=[],_=0;_<d.length;_++){var Z=d[_],et=_*2,ft=Z*2;F[et]=u[ft],F[et+1]=u[ft+1],N[et]=f[ft],N[et+1]=f[ft+1],B[et]=c[ft],B[et+1]=c[ft+1],G[et]=v[ft],G[et+1]=v[ft+1],W[_]=h[Z]}return{current:F,next:N,stackedOnCurrent:B,stackedOnNext:G,status:W}}var Vr=Math.min,zr=Math.max;function Yn(e,t){return isNaN(e)||isNaN(t)}function Nc(e,t,r,n,i,a,o,s,l){for(var u,f,c,v,h,d,p=r,g=0;g<n;g++){var y=t[p*2],m=t[p*2+1];if(p>=i||p<0)break;if(Yn(y,m)){if(l){p+=a;continue}break}if(p===r)e[a>0?"moveTo":"lineTo"](y,m),c=y,v=m;else{var _=y-u,x=m-f;if(_*_+x*x<.5){p+=a;continue}if(o>0){for(var w=p+a,b=t[w*2],S=t[w*2+1];b===y&&S===m&&g<n;)g++,w+=a,p+=a,b=t[w*2],S=t[w*2+1],y=t[p*2],m=t[p*2+1],_=y-u,x=m-f;var T=g+1;if(l)for(;Yn(b,S)&&T<n;)T++,w+=a,b=t[w*2],S=t[w*2+1];var D=.5,M=0,C=0,E=void 0,L=void 0;if(T>=n||Yn(b,S))h=y,d=m;else{M=b-u,C=S-f;var P=y-u,I=b-y,O=m-f,F=S-m,N=void 0,B=void 0;if(s==="x"){N=Math.abs(P),B=Math.abs(I);var G=M>0?1:-1;h=y-G*N*o,d=m,E=y+G*B*o,L=m}else if(s==="y"){N=Math.abs(O),B=Math.abs(F);var W=C>0?1:-1;h=y,d=m-W*N*o,E=y,L=m+W*B*o}else N=Math.sqrt(P*P+O*O),B=Math.sqrt(I*I+F*F),D=B/(B+N),h=y-M*o*(1-D),d=m-C*o*(1-D),E=y+M*o*D,L=m+C*o*D,E=Vr(E,zr(b,y)),L=Vr(L,zr(S,m)),E=zr(E,Vr(b,y)),L=zr(L,Vr(S,m)),M=E-y,C=L-m,h=y-M*N/B,d=m-C*N/B,h=Vr(h,zr(u,y)),d=Vr(d,zr(f,m)),h=zr(h,Vr(u,y)),d=zr(d,Vr(f,m)),M=y-h,C=m-d,E=y+M*B/N,L=m+C*B/N}e.bezierCurveTo(c,v,h,d,y,m),c=E,v=L}else e.lineTo(y,m)}u=y,f=m,p+=a}return g}var Cx=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),MI=function(e){R(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Cx},t.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&Yn(i[o*2-2],i[o*2-1]);o--);for(;a<o&&Yn(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=Nc(r,i,a,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},t.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=Mr.CMD,s,l,u=n==="x",f=[],c=0;c<a.length;){var v=a[c++],h=void 0,d=void 0,p=void 0,g=void 0,y=void 0,m=void 0,_=void 0;switch(v){case o.M:s=a[c++],l=a[c++];break;case o.L:if(h=a[c++],d=a[c++],_=u?(r-s)/(h-s):(r-l)/(d-l),_<=1&&_>=0){var x=u?(d-l)*_+l:(h-s)*_+s;return u?[r,x]:[x,r]}s=h,l=d;break;case o.C:h=a[c++],d=a[c++],p=a[c++],g=a[c++],y=a[c++],m=a[c++];var w=u?Ws(s,h,p,y,r,f):Ws(l,d,g,m,r,f);if(w>0)for(var b=0;b<w;b++){var S=f[b];if(S<=1&&S>=0){var x=u?Nt(l,d,g,m,S):Nt(s,h,p,y,S);return u?[r,x]:[x,r]}}s=y,l=m;break}}},t}(ot),EI=function(e){R(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Cx),LI=function(e){R(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new EI},t.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Yn(i[s*2-2],i[s*2-1]);s--);for(;o<s&&Yn(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=Nc(r,i,o,s,s,1,n.smooth,l,n.connectNulls);Nc(r,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},t}(ot);function Dx(e,t,r,n,i){var a=e.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=r.get(["lineStyle","width"])||2;o-=f/2,s-=f/2,l+=f,u+=f,o=Math.floor(o),l=Math.round(l);var c=new wt({shape:{x:o,y:s,width:l,height:u}});if(t){var v=e.getBaseAxis(),h=v.isHorizontal(),d=v.inverse;h?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var p=X(i)?function(g){i(g,c)}:null;Bt(c,{shape:{width:l,height:u,x:o,y:s}},r,null,n,p)}return c}function Ax(e,t,r){var n=e.getArea(),i=Ct(n.r0,1),a=Ct(n.r,1),o=new Ie({shape:{cx:Ct(e.cx,1),cy:Ct(e.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,Bt(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function PI(e,t,r,n,i){if(e){if(e.type==="polar")return Ax(e,t,r);if(e.type==="cartesian2d")return Dx(e,t,r,n,i)}else return null;return null}function Mv(e,t){return e.type===t}function Fg(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function Vg(e){for(var t=1/0,r=1/0,n=-1/0,i=-1/0,a=0;a<e.length;){var o=e[a++],s=e[a++];isNaN(o)||(t=Math.min(o,t),n=Math.max(o,n)),isNaN(s)||(r=Math.min(s,r),i=Math.max(s,i))}return[[t,r],[n,i]]}function zg(e,t){var r=Vg(e),n=r[0],i=r[1],a=Vg(t),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function Gg(e){return vt(e)?e:e?.5:0}function II(e,t,r){if(!r.valueDim)return[];for(var n=t.count(),i=br(n*2),a=0;a<n;a++){var o=Tx(r,e,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function Gr(e,t,r,n){var i=t.getBaseAxis(),a=i.dim==="x"||i.dim==="radius"?0:1,o=[],s=0,l=[],u=[],f=[],c=[];if(n){for(s=0;s<e.length;s+=2)!isNaN(e[s])&&!isNaN(e[s+1])&&c.push(e[s],e[s+1]);e=c}for(s=0;s<e.length-2;s+=2)switch(f[0]=e[s+2],f[1]=e[s+3],u[0]=e[s],u[1]=e[s+1],o.push(u[0],u[1]),r){case"end":l[a]=f[a],l[1-a]=u[1-a],o.push(l[0],l[1]);break;case"middle":var v=(u[a]+f[a])/2,h=[];l[a]=h[a]=v,l[1-a]=u[1-a],h[1-a]=f[1-a],o.push(l[0],l[1]),o.push(h[0],h[1]);break;default:l[a]=u[a],l[1-a]=f[1-a],o.push(l[0],l[1])}return o.push(e[s++],e[s++]),o}function OI(e,t){var r=[],n=e.length,i,a;function o(f,c,v){var h=f.coord,d=(v-h)/(c.coord-h),p=yh(d,[f.color,c.color]);return{coord:v,color:p}}for(var s=0;s<n;s++){var l=e[s],u=l.coord;if(u<0)i=l;else if(u>t){a?r.push(o(a,l,t)):i&&r.push(o(i,l,0),o(i,l,t));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function NI(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())){if(t.type!=="cartesian2d"){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style is only supported on cartesian2d.");return}for(var i,a,o=n.length-1;o>=0;o--){var s=e.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(!a){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style only support x or y dimension.");return}var l=t.getAxis(i),u=z(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var v=OI(u,i==="x"?r.getWidth():r.getHeight()),h=v.length;if(!h&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,p=v[0].coord-d,g=v[h-1].coord+d,y=g-p;if(y<.001)return"transparent";A(v,function(_){_.offset=(_.coord-p)/y}),v.push({offset:h?v[h-1].offset:.5,color:c[1]||"transparent"}),v.unshift({offset:h?v[0].offset:.5,color:c[0]||"transparent"});var m=new Nh(0,0,0,0,v,!0);return m[i]=p,m[i+"2"]=g,m}}function RI(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(!!a&&!(i&&kI(a,t))){var o=t.mapDimension(a.dim),s={};return A(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function kI(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(Av.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>n)return!1;return!0}function BI(e,t){return isNaN(e)||isNaN(t)}function FI(e){for(var t=e.length/2;t>0&&BI(e[t*2-2],e[t*2-1]);t--);return t-1}function $g(e,t){return[e[t*2],e[t*2+1]]}function VI(e,t,r){for(var n=e.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u<n;u++)if(o=e[u*2+i],!(isNaN(o)||isNaN(e[u*2+1-i]))){if(u===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function Mx(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<Pe.length;t++)if(e.get([Pe[t],"endLabel","show"]))return!0;return!1}function Sf(e,t,r,n){if(Mv(t,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=Mx(n)?function(h,d){e._endLabelOnDuring(h,d,o,s,a,i,t)}:null,u=t.getBaseAxis().isHorizontal(),f=Dx(t,r,n,function(){var h=e._endLabel;h&&r&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var c=f.shape,v=Math.max(c.width,c.height);u?(c.y-=v,c.height+=v*2):(c.x-=v,c.width+=v*2)}return l&&l(1,f),f}else return process.env.NODE_ENV!=="production"&&n.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),Ax(t,r,n)}function zI(e,t){var r=t.getBaseAxis(),n=r.isHorizontal(),i=r.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||a,verticalAlign:e.get("verticalAlign")||o}}}var GI=function(e){R(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var r=new Dt,n=new TI;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r},t.prototype.render=function(r,n,i){var a=this,o=r.coordinateSystem,s=this.group,l=r.getData(),u=r.getModel("lineStyle"),f=r.getModel("areaStyle"),c=l.getLayout("points")||[],v=o.type==="polar",h=this._coordSys,d=this._symbolDraw,p=this._polyline,g=this._polygon,y=this._lineGroup,m=!n.ssr&&r.isAnimationEnabled(),_=!f.isEmpty(),x=f.get("origin"),w=Sx(o,l,x),b=_&&II(o,l,w),S=r.get("showSymbol"),T=r.get("connectNulls"),D=S&&!v&&RI(r,l,o),M=this._data;M&&M.eachItemGraphicEl(function(yt,zt){yt.__temp&&(s.remove(yt),M.setItemGraphicEl(zt,null))}),S||d.remove(),s.add(y);var C=v?!1:r.get("step"),E;o&&o.getArea&&r.get("clip",!0)&&(E=o.getArea(),E.width!=null?(E.x-=.1,E.y-=.1,E.width+=.2,E.height+=.2):E.r0&&(E.r0-=.5,E.r+=.5)),this._clipShapeForSymbol=E;var L=NI(l,o,i)||l.getVisual("style")[l.getVisual("drawType")];if(!(p&&h.type===o.type&&C===this._step))S&&d.updateData(l,{isIgnore:D,clipShape:E,disableAnimation:!0,getSymbolPoint:function(yt){return[c[yt*2],c[yt*2+1]]}}),m&&this._initSymbolLabelAnimation(l,o,E),C&&(c=Gr(c,o,C,T),b&&(b=Gr(b,o,C,T))),p=this._newPolyline(c),_?g=this._newPolygon(c,b):g&&(y.remove(g),g=this._polygon=null),v||this._initOrUpdateEndLabel(r,o,jn(L)),y.setClipPath(Sf(this,o,!0,r));else{_&&!g?g=this._newPolygon(c,b):g&&!_&&(y.remove(g),g=this._polygon=null),v||this._initOrUpdateEndLabel(r,o,jn(L));var P=y.getClipPath();if(P){var I=Sf(this,o,!1,r);Bt(P,{shape:I.shape},r)}else y.setClipPath(Sf(this,o,!0,r));S&&d.updateData(l,{isIgnore:D,clipShape:E,disableAnimation:!0,getSymbolPoint:function(yt){return[c[yt*2],c[yt*2+1]]}}),(!Fg(this._stackedOnPoints,b)||!Fg(this._points,c))&&(m?this._doUpdateAnimation(l,b,o,i,C,x,T):(C&&(c=Gr(c,o,C,T),b&&(b=Gr(b,o,C,T))),p.setShape({points:c}),g&&g.setShape({points:c,stackedOnPoints:b})))}var O=r.getModel("emphasis"),F=O.get("focus"),N=O.get("blurScope"),B=O.get("disabled");if(p.useStyle(Y(u.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),eo(p,r,"lineStyle"),p.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var G=p.getState("emphasis").style;G.lineWidth=+p.style.lineWidth+1}ut(p).seriesIndex=r.seriesIndex,Hi(p,F,N,B);var W=Gg(r.get("smooth")),Z=r.get("smoothMonotone");if(p.setShape({smooth:W,smoothMonotone:Z,connectNulls:T}),g){var et=l.getCalculationInfo("stackedOnSeries"),ft=0;g.useStyle(Y(f.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),et&&(ft=Gg(et.get("smooth"))),g.setShape({smooth:W,stackedOnSmooth:ft,smoothMonotone:Z,connectNulls:T}),eo(g,r,"areaStyle"),ut(g).seriesIndex=r.seriesIndex,Hi(g,F,N,B)}var At=function(yt){a._changePolyState(yt)};l.eachItemGraphicEl(function(yt){yt&&(yt.onHoverStateChange=At)}),this._polyline.onHoverStateChange=At,this._data=l,this._coordSys=o,this._stackedOnPoints=b,this._points=c,this._step=C,this._valueOrigin=x,r.get("triggerLineEvent")&&(this.packEventData(r,p),g&&this.packEventData(r,g))},t.prototype.packEventData=function(r,n){ut(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=Zn(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(isNaN(f)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var v=r.get("zlevel")||0,h=r.get("z")||0;u=new Av(o,s),u.x=f,u.y=c,u.setZ(v,h);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=v,d.z=h,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else ce.prototype.highlight.call(this,r,n,i,a)},t.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=Zn(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else ce.prototype.downplay.call(this,r,n,i,a)},t.prototype._changePolyState=function(r){var n=this._polygon;Ud(this._polyline,r),n&&Ud(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new MI({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new LI({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,f=u.get("animationDuration");X(f)&&(f=f(null));var c=u.get("animationDelay")||0,v=X(c)?c(null):c;r.eachItemGraphicEl(function(h,d){var p=h;if(p){var g=[h.x,h.y],y=void 0,m=void 0,_=void 0;if(i)if(o){var x=i,w=n.pointToCoord(g);a?(y=x.startAngle,m=x.endAngle,_=-w[1]/180*Math.PI):(y=x.r0,m=x.r,_=w[0])}else{var b=i;a?(y=b.x,m=b.x+b.width,_=h.x):(y=b.y+b.height,m=b.y,_=h.y)}var S=m===y?0:(_-y)/(m-y);l&&(S=1-S);var T=X(c)?c(d):f*S+v,D=p.getSymbolPath(),M=D.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:T}),D.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(Mx(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Ot({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=FI(l);f>=0&&(Ji(s,ta(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:f,defaultText:function(c,v,h){return h!=null?bx(o,h):Dv(o,c)},enableTextSetter:!0},zI(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var c=i.getLayout("points"),v=i.hostModel,h=v.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=n.shape,x=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,w=(y?p:0)*(m?-1:1),b=(y?0:-p)*(m?-1:1),S=y?"x":"y",T=VI(c,x,S),D=T.range,M=D[1]-D[0],C=void 0;if(M>=1){if(M>1&&!h){var E=$g(c,D[0]);u.attr({x:E[0]+w,y:E[1]+b}),o&&(C=v.getRawValue(D[0]))}else{var E=f.getPointOn(x,S);E&&u.attr({x:E[0]+w,y:E[1]+b});var L=v.getRawValue(D[0]),P=v.getRawValue(D[1]);o&&(C=g0(i,d,L,P,T.t))}a.lastFrameIndex=D[0]}else{var I=r===1||a.lastFrameIndex>0?D[0]:0,E=$g(c,I);o&&(C=v.getRawValue(I)),u.attr({x:E[0]+w,y:E[1]+b})}if(o){var O=ea(u);typeof O.setLabelText=="function"&&O.setLabelText(C)}}},t.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,c=r.hostModel,v=AI(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),h=v.current,d=v.stackedOnCurrent,p=v.next,g=v.stackedOnNext;if(o&&(h=Gr(v.current,i,o,l),d=Gr(v.stackedOnCurrent,i,o,l),p=Gr(v.next,i,o,l),g=Gr(v.stackedOnNext,i,o,l)),zg(h,p)>3e3||f&&zg(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=v.current,u.shape.points=h;var y={shape:{points:p}};v.current!==h&&(y.shape.__points=v.next),u.stopAnimation(),Lt(u,y,c),f&&(f.setShape({points:h,stackedOnPoints:d}),f.stopAnimation(),Lt(f,{shape:{stackedOnPoints:g}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=v.status,x=0;x<_.length;x++){var w=_[x].cmd;if(w==="="){var b=r.getItemGraphicEl(_[x].idx1);b&&m.push({el:b,ptIdx:x})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var S=u.shape.__points,T=0;T<m.length;T++){var D=m[T].el,M=m[T].ptIdx*2;D.x=S[M],D.y=S[M+1],D.markRedraw()}})},t.prototype.remove=function(r){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(ce);const $I=GI;function HI(e,t){return{seriesType:e,plan:iv(),reset:function(r){var n=r.getData(),i=r.coordinateSystem,a=r.pipelineContext,o=t||a.large;if(!!i){var s=z(i.dimensions,function(h){return n.mapDimension(h)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");nn(n,s[0])&&(s[0]=u),nn(n,s[1])&&(s[1]=u);var f=n.getStore(),c=n.getDimensionIndex(s[0]),v=n.getDimensionIndex(s[1]);return l&&{progress:function(h,d){for(var p=h.end-h.start,g=o&&br(p*l),y=[],m=[],_=h.start,x=0;_<h.end;_++){var w=void 0;if(l===1){var b=f.get(c,_);w=i.dataToPoint(b,null,m)}else y[0]=f.get(c,_),y[1]=f.get(v,_),w=i.dataToPoint(y,null,m);o?(g[x++]=w[0],g[x++]=w[1]):d.setItemLayout(_,w.slice())}o&&d.setLayout("points",g)}}}}}}var WI={average:function(e){for(var t=0,r=0,n=0;n<e.length;n++)isNaN(e[n])||(t+=e[n],r++);return r===0?NaN:t/r},sum:function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r]||0;return t},max:function(e){for(var t=-1/0,r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r<e.length;r++)e[r]<t&&(t=e[r]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},UI=function(e){return Math.round(e.length/2)};function Ex(e){return{seriesType:e,reset:function(t,r,n){var i=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=n.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(c||1),h=Math.round(s/v);if(isFinite(h)&&h>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/h));var d=void 0;$(a)?d=WI[a]:X(a)&&(d=a),d&&t.setData(i.downSample(i.mapDimension(u.dim),1/h,d,UI))}}}}}function YI(e){e.registerChartView($I),e.registerSeriesModel(xI),e.registerLayout(HI("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Ex("line"))}var Lx=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return ru(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(i)A(a.getAxes(),function(v,h){if(v.type==="category"&&n!=null){var d=v.getTicksCoords(),p=o[h],g=n[h]==="x1"||n[h]==="y1";if(g&&(p+=1),d.length<2)return;if(d.length===2){s[h]=v.toGlobalCoord(v.getExtent()[g?1:0]);return}for(var y=void 0,m=void 0,_=1,x=0;x<d.length;x++){var w=d[x].coord,b=x===d.length-1?d[x-1].tickValue+_:d[x].tickValue;if(b===p){m=w;break}else if(b<p)y=w;else if(y!=null&&b>p){m=(w+y)/2;break}x===1&&(_=b-d[0].tickValue)}m==null&&(y?y&&(m=d[d.length-1].coord):m=d[0].coord),s[h]=v.toGlobalCoord(m)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=a.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(Oe);Oe.registerClass(Lx);const Hg=Lx;var XI=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return ru(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},t.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=__(Hg.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}),t}(Hg);const qI=XI;var ZI=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),jI=function(e){R(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new ZI},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,c=n.endAngle,v=n.clockwise,h=Math.PI*2,d=v?c-f<h:f-c<h;d||(f=c-(v?h:-h));var p=Math.cos(f),g=Math.sin(f),y=Math.cos(c),m=Math.sin(c);d?(r.moveTo(p*o+i,g*o+a),r.arc(p*u+i,g*u+a,l,-Math.PI+f,f,!v)):r.moveTo(p*s+i,g*s+a),r.arc(i,a,s,f,c,!v),r.arc(y*u+i,m*u+a,l,c-Math.PI*2,c-Math.PI,!v),o!==0&&r.arc(i,a,o,c,f,v)},t}(ot);const Wg=jI;function KI(e,t){t=t||{};var r=t.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return Xs(n,i,a);var s=e(o),l=i.distance!=null?i.distance:5,u=this.shape,f=u.cx,c=u.cy,v=u.r,h=u.r0,d=(v+h)/2,p=u.startAngle,g=u.endAngle,y=(p+g)/2,m=r?Math.abs(v-h)/2:0,_=Math.cos,x=Math.sin,w=f+v*_(p),b=c+v*x(p),S="left",T="top";switch(s){case"startArc":w=f+(h-l)*_(y),b=c+(h-l)*x(y),S="center",T="top";break;case"insideStartArc":w=f+(h+l)*_(y),b=c+(h+l)*x(y),S="center",T="bottom";break;case"startAngle":w=f+d*_(p)+hs(p,l+m,!1),b=c+d*x(p)+vs(p,l+m,!1),S="right",T="middle";break;case"insideStartAngle":w=f+d*_(p)+hs(p,-l+m,!1),b=c+d*x(p)+vs(p,-l+m,!1),S="left",T="middle";break;case"middle":w=f+d*_(y),b=c+d*x(y),S="center",T="middle";break;case"endArc":w=f+(v+l)*_(y),b=c+(v+l)*x(y),S="center",T="bottom";break;case"insideEndArc":w=f+(v-l)*_(y),b=c+(v-l)*x(y),S="center",T="top";break;case"endAngle":w=f+d*_(g)+hs(g,l+m,!0),b=c+d*x(g)+vs(g,l+m,!0),S="left",T="middle";break;case"insideEndAngle":w=f+d*_(g)+hs(g,-l+m,!0),b=c+d*x(g)+vs(g,-l+m,!0),S="right",T="middle";break;default:return Xs(n,i,a)}return n=n||{},n.x=w,n.y=b,n.align=S,n.verticalAlign=T,n}}function QI(e,t,r,n){if(vt(n)){e.setTextConfig({rotation:n});return}else if(V(t)){e.setTextConfig({rotation:0});return}var i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,l,u=r(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:e.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),e.setTextConfig({rotation:f})}function hs(e,t,r){return t*Math.sin(e)*(r?-1:1)}function vs(e,t,r){return t*Math.cos(e)*(r?1:-1)}function Ba(e,t,r){var n=e.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;V(n)||(n=[n,n,n,n]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:z(n,function(a){return en(a,i)})}}var wf=Math.max,Tf=Math.min;function JI(e,t){var r=e.getArea&&e.getArea();if(Mv(e,"cartesian2d")){var n=e.getBaseAxis();if(n.type!=="category"||!n.onBand){var i=t.getLayout("bandWidth");n.isHorizontal()?(r.x-=i,r.width+=i*2):(r.y-=i,r.height+=i*2)}}return r}var t2=function(e){R(t,e);function t(){var r=e.call(this)||this;return r.type=t.type,r._isFirstFrame=!0,r}return t.prototype.render=function(r,n,i,a){this._model=r,this._removeOnRenderedListener(i),this._updateDrawMode(r);var o=r.get("coordinateSystem");o==="cartesian2d"||o==="polar"?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,i):this._renderNormal(r,n,i,a)):process.env.NODE_ENV!=="production"&&kt("Only cartesian2d and polar supported for bar.")},t.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},t.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},t.prototype.eachRendered=function(r){Gl(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r,n,i,a){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var v=r.isAnimationEnabled()?r:null,h=e2(r,u);h&&this._enableRealtimeSort(h,s,i);var d=r.get("clip",!0)||h,p=JI(u,s);o.removeClipPath();var g=r.get("roundCap",!0),y=r.get("showBackground",!0),m=r.getModel("backgroundStyle"),_=m.get("borderRadius")||0,x=[],w=this._backgroundEls,b=a&&a.isInitSort,S=a&&a.type==="changeAxisOrder";function T(C){var E=ds[u.type](s,C),L=l2(u,c,E);return L.useStyle(m.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),x[C]=L,L}s.diff(l).add(function(C){var E=s.getItemModel(C),L=ds[u.type](s,C,E);if(y&&T(C),!(!s.hasValue(C)||!Zg[u.type](L))){var P=!1;d&&(P=Ug[u.type](p,L));var I=Yg[u.type](r,s,C,L,c,v,f.model,!1,g);h&&(I.forceLabelAnimation=!0),jg(I,s,C,E,L,r,c,u.type==="polar"),b?I.attr({shape:L}):h?Xg(h,v,I,L,C,c,!1,!1):Bt(I,{shape:L},r,C),s.setItemGraphicEl(C,I),o.add(I),I.ignore=P}}).update(function(C,E){var L=s.getItemModel(C),P=ds[u.type](s,C,L);if(y){var I=void 0;w.length===0?I=T(E):(I=w[E],I.useStyle(m.getItemStyle()),u.type==="cartesian2d"?I.setShape("r",_):I.setShape("cornerRadius",_),x[C]=I);var O=ds[u.type](s,C),F=Ix(c,O,u);Lt(I,{shape:F},v,C)}var N=l.getItemGraphicEl(E);if(!s.hasValue(C)||!Zg[u.type](P)){o.remove(N);return}var B=!1;if(d&&(B=Ug[u.type](p,P),B&&o.remove(N)),N?Bl(N):N=Yg[u.type](r,s,C,P,c,v,f.model,!!N,g),h&&(N.forceLabelAnimation=!0),S){var G=N.getTextContent();if(G){var W=ea(G);W.prevValue!=null&&(W.prevValue=W.value)}}else jg(N,s,C,L,P,r,c,u.type==="polar");b?N.attr({shape:P}):h?Xg(h,v,N,P,C,c,!0,S):Lt(N,{shape:P},r,C,null),s.setItemGraphicEl(C,N),N.ignore=B,o.add(N)}).remove(function(C){var E=l.getItemGraphicEl(C);E&&ro(E,r,C)}).execute();var D=this._backgroundGroup||(this._backgroundGroup=new Dt);D.removeAll();for(var M=0;M<x.length;++M)D.add(x[M]);o.add(D),this._backgroundEls=x,this._data=s},t.prototype._renderLarge=function(r,n,i){this._clear(),Qg(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),Qg(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&PI(r.coordinateSystem,!1,r),i=this.group;n?i.setClipPath(n):i.removeClipPath()},t.prototype._enableRealtimeSort=function(r,n,i){var a=this;if(!!n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,i),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(r,n,i){var a=[];return r.each(r.mapDimension(n.dim),function(o,s){var l=i(s);l=l==null?NaN:l,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:z(a,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(r,n,i){for(var a=i.scale,o=r.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=r.rawIndexOf(o,a.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:n(r.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,i,a){if(!!this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){ro(a,r,ut(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(ce),Ug={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=wf(t.x,e.x),s=Tf(t.x+t.width,i),l=wf(t.y,e.y),u=Tf(t.y+t.height,a),f=s<o,c=u<l;return t.x=f&&o>i?s:o,t.y=c&&l>a?u:l,t.width=f?0:s-o,t.height=c?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||c},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var i=Tf(t.r,e.r),a=wf(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},Yg={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new wt({shape:k({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var f=u.shape,c=i?"height":"width";f[c]=0}return u},polar:function(e,t,r,n,i,a,o,s,l){var u=!i&&l?Wg:Ie,f=new u({shape:n,z2:1});f.name="item";var c=Px(i);if(f.calculateTextPosition=KI(c,{isRoundCap:u===Wg}),a){var v=f.shape,h=i?"r":"endAngle",d={};v[h]=i?n.r0:n.startAngle,d[h]=n[h],(s?Lt:Bt)(f,{shape:d},a)}return f}};function e2(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(process.env.NODE_ENV!=="production"&&r&&(n.type!=="category"&&kt("`realtimeSort` will not work because this bar series is not based on a category axis."),t.type!=="cartesian2d"&&kt("`realtimeSort` will not work because this bar series is not on cartesian2d.")),r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function Xg(e,t,r,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Lt:Bt)(r,{shape:l},t,i,null);var f=t?e.baseAxis.model:null;(o?Lt:Bt)(r,{shape:u},f,i)}function qg(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var r2=["x","y","width","height"],n2=["cx","cy","r","startAngle","endAngle"],Zg={cartesian2d:function(e){return!qg(e,r2)},polar:function(e){return!qg(e,n2)}},ds={cartesian2d:function(e,t,r){var n=e.getItemLayout(t),i=r?a2(r,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function i2(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function Px(e){return function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(e)}function jg(e,t,r,n,i,a,o,s){var l=t.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var f=e.shape,c=Ba(n.getModel("itemStyle"),f,!0);k(f,c),e.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var v=n.getShallow("cursor");v&&e.attr("cursor",v);var h=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",d=ta(n);Ji(e,d,{labelFetcher:a,labelDataIndex:r,defaultText:Dv(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var p=e.getTextContent();if(s&&p){var g=n.get(["label","position"]);e.textConfig.inside=g==="middle"?!0:null,QI(e,g==="outside"?h:g,Px(o),n.get(["label","rotate"]))}ZD(p,d,a.getRawValue(r),function(m){return bx(t,m)});var y=n.getModel(["emphasis"]);Hi(e,y.get("focus"),y.get("blurScope"),y.get("disabled")),eo(e,n),i2(i)&&(e.style.fill="none",e.style.stroke="none",A(e.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function a2(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var o2=function(){function e(){}return e}(),Kg=function(e){R(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new o2},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<i.length;f+=3)l[a]=u,l[o]=i[f+2],s[a]=i[f+a],s[o]=i[f+o],r.rect(s[0],s[1],l[0],l[1])},t}(ot);function Qg(e,t,r,n){var i=e.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=e.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var f=new Kg({shape:{points:u},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),t.add(f),r&&r.push(f)}var c=new Kg({shape:{points:i.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,t.add(c),c.useStyle(i.getVisual("style")),ut(c).seriesIndex=e.seriesIndex,e.get("silent")||(c.on("mousedown",Jg),c.on("mousemove",Jg)),r&&r.push(c)}var Jg=Jl(function(e){var t=this,r=s2(t,e.offsetX,e.offsetY);ut(t).dataIndex=r>=0?r:null},30,!1);function s2(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,f=0,c=a.length/3;f<c;f++){var v=f*3;if(l[n]=u,l[i]=a[v+2],s[n]=a[v+n],s[i]=a[v+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),t>=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[f]}return-1}function Ix(e,t,r){if(Mv(r,"cartesian2d")){var n=t,i=r.getArea();return{x:e?n.x:i.x,y:e?i.y:n.y,width:e?n.width:i.width,height:e?i.height:n.height}}else{var i=r.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function l2(e,t,r){var n=e.type==="polar"?Ie:wt;return new n({shape:Ix(t,r,e),silent:!0,z2:0})}const u2=t2;function f2(e){e.registerChartView(u2),e.registerSeriesModel(qI),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,dt(iP,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,aP("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Ex("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var ps=Math.PI*2,ty=Math.PI/180;function Ox(e,t){return Er(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Nx(e,t){var r=Ox(e,t),n=e.get("center"),i=e.get("radius");V(i)||(i=[0,i]);var a=K(r.width,t.getWidth()),o=K(r.height,t.getHeight()),s=Math.min(a,o),l=K(i[0],s/2),u=K(i[1],s/2),f,c,v=e.coordinateSystem;if(v){var h=v.dataToPoint(n);f=h[0]||0,c=h[1]||0}else V(n)||(n=[n,n]),f=K(n[0],a)+r.x,c=K(n[1],o)+r.y;return{cx:f,cy:c,r0:l,r:u}}function c2(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=Ox(n,r),s=Nx(n,r),l=s.cx,u=s.cy,f=s.r,c=s.r0,v=-n.get("startAngle")*ty,h=n.get("minAngle")*ty,d=0;i.each(a,function(M){!isNaN(M)&&d++});var p=i.getSum(a),g=Math.PI/(p||d)*2,y=n.get("clockwise"),m=n.get("roseType"),_=n.get("stillShowZeroSum"),x=i.getDataExtent(a);x[0]=0;var w=ps,b=0,S=v,T=y?1:-1;if(i.setLayout({viewRect:o,r:f}),i.each(a,function(M,C){var E;if(isNaN(M)){i.setItemLayout(C,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:c,r:m?NaN:f});return}m!=="area"?E=p===0&&_?g:M*g:E=ps/d,E<h?(E=h,w-=h):b+=M;var L=S+T*E;i.setItemLayout(C,{angle:E,startAngle:S,endAngle:L,clockwise:y,cx:l,cy:u,r0:c,r:m?zi(M,x,[c,f]):f}),S=L}),w<ps&&d)if(w<=.001){var D=ps/d;i.each(a,function(M,C){if(!isNaN(M)){var E=i.getItemLayout(C);E.angle=D,E.startAngle=v+T*C*D,E.endAngle=v+T*(C+1)*D}})}else g=w/b,S=v,i.each(a,function(M,C){if(!isNaN(M)){var E=i.getItemLayout(C),L=E.angle===h?h:M*g;E.startAngle=S,E.endAngle=S+T*L,S+=T*L}})})}function Rx(e){return{seriesType:e,reset:function(t,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=t.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var h2=Math.PI/180;function ey(e,t,r,n,i,a,o,s,l,u){if(e.length<2)return;function f(p){for(var g=p.rB,y=g*g,m=0;m<p.list.length;m++){var _=p.list[m],x=Math.abs(_.label.y-r),w=n+_.len,b=w*w,S=Math.sqrt((1-Math.abs(x*x/y))*b),T=t+(S+_.len2)*i,D=T-_.label.x,M=_.targetTextWidth-D*i;kx(_,M,!0),_.label.x=T}}function c(p){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<p.length;m++)if(p[m].labelAlignTo==="none"){var _=p[m],x=_.label.y>r?y:g,w=Math.abs(_.label.y-r);if(w>=x.maxY){var b=_.label.x-t-_.len2*i,S=n+_.len,T=Math.abs(b)<S?Math.sqrt(w*w/(1-b*b/S/S)):S;x.rB=T,x.maxY=w}x.list.push(_)}f(g),f(y)}for(var v=e.length,h=0;h<v;h++)if(e[h].position==="outer"&&e[h].labelAlignTo==="labelLine"){var d=e[h].label.x-u;e[h].linePoints[1][0]+=d,e[h].label.x=u}_x(e,l,l+o)&&c(e)}function v2(e,t,r,n,i,a,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,v=0;v<e.length;v++){var h=e[v].label;Cf(e[v])||(h.x<t?(f=Math.min(f,h.x),l.push(e[v])):(c=Math.max(c,h.x),u.push(e[v])))}for(var v=0;v<e.length;v++){var d=e[v];if(!Cf(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var h=d.label,p=d.linePoints,g=void 0;d.labelAlignTo==="edge"?h.x<t?g=p[2][0]-d.labelDistance-o-d.edgeDistance:g=o+i-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?h.x<t?g=f-o-d.bleedMargin:g=o+i-c-d.bleedMargin:h.x<t?g=h.x-o-d.bleedMargin:g=o+i-h.x-d.bleedMargin,d.targetTextWidth=g,kx(d,g)}}ey(u,t,r,n,1,i,a,o,s,c),ey(l,t,r,n,-1,i,a,o,s,f);for(var v=0;v<e.length;v++){var d=e[v];if(!Cf(d)&&d.linePoints){var h=d.label,p=d.linePoints,y=d.labelAlignTo==="edge",m=h.style.padding,_=m?m[1]+m[3]:0,x=h.style.backgroundColor?0:_,w=d.rect.width+x,b=p[1][0]-p[2][0];y?h.x<t?p[2][0]=o+d.edgeDistance+w+d.labelDistance:p[2][0]=o+i-d.edgeDistance-w-d.labelDistance:(h.x<t?p[2][0]=h.x+d.labelDistance:p[2][0]=h.x-d.labelDistance,p[1][0]=p[2][0]+b),p[1][1]=p[2][1]=h.y}}}function kx(e,t,r){if(r===void 0&&(r=!1),e.labelStyleWidth==null){var n=e.label,i=n.style,a=e.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,f=a.width+(o?0:l);if(t<f||r){var c=a.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var v=n.getBoundingRect();n.setStyle("width",Math.ceil(v.width)),n.setStyle("backgroundColor",o)}else{var h=t-l,d=t<f?h:r?h>e.unconstrainedWidth?null:h:null;n.setStyle("width",d)}var p=n.getBoundingRect();a.width=p.width;var g=(n.style.margin||0)+2.1;a.height=p.height+g,a.y-=(a.height-c)/2}}}function Cf(e){return e.position==="center"}function d2(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*h2,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,c=s.y,v=s.height;function h(b){b.ignore=!0}function d(b){if(!b.ignore)return!0;for(var S in b.states)if(b.states[S].ignore===!1)return!0;return!1}t.each(function(b){var S=t.getItemGraphicEl(b),T=S.shape,D=S.getTextContent(),M=S.getTextGuideLine(),C=t.getItemModel(b),E=C.getModel("label"),L=E.get("position")||C.get(["emphasis","label","position"]),P=E.get("distanceToLabelLine"),I=E.get("alignTo"),O=K(E.get("edgeDistance"),u),F=E.get("bleedMargin"),N=C.getModel("labelLine"),B=N.get("length");B=K(B,u);var G=N.get("length2");if(G=K(G,u),Math.abs(T.endAngle-T.startAngle)<o){A(D.states,h),D.ignore=!0,M&&(A(M.states,h),M.ignore=!0);return}if(!!d(D)){var W=(T.startAngle+T.endAngle)/2,Z=Math.cos(W),et=Math.sin(W),ft,At,yt,zt;n=T.cx,i=T.cy;var Gt=L==="inside"||L==="inner";if(L==="center")ft=T.cx,At=T.cy,zt="center";else{var Pt=(Gt?(T.r+T.r0)/2*Z:T.r*Z)+n,bt=(Gt?(T.r+T.r0)/2*et:T.r*et)+i;if(ft=Pt+Z*3,At=bt+et*3,!Gt){var q=Pt+Z*(B+l-T.r),at=bt+et*(B+l-T.r),Ze=q+(Z<0?-1:1)*G,Rt=at;I==="edge"?ft=Z<0?f+O:f+u-O:ft=Ze+(Z<0?-P:P),At=Rt,yt=[[Pt,bt],[q,at],[Ze,Rt]]}zt=Gt?"center":I==="edge"?Z>0?"right":"left":Z>0?"left":"right"}var Or=Math.PI,dr=0,ia=E.get("rotate");if(vt(ia))dr=ia*(Or/180);else if(L==="center")dr=0;else if(ia==="radial"||ia===!0){var Ib=Z<0?-W+Or:-W;dr=Ib}else if(ia==="tangential"&&L!=="outside"&&L!=="outer"){var si=Math.atan2(Z,et);si<0&&(si=Or*2+si);var Ob=et>0;Ob&&(si=Or+si),dr=si-Or}if(a=!!dr,D.x=ft,D.y=At,D.rotation=dr,D.setStyle({verticalAlign:"middle"}),Gt){D.setStyle({align:zt});var uu=D.states.select;uu&&(uu.x+=D.x,uu.y+=D.y)}else{var aa=D.getBoundingRect().clone();aa.applyTransform(D.getComputedTransform());var Hv=(D.style.margin||0)+2.1;aa.y-=Hv/2,aa.height+=Hv,r.push({label:D,labelLine:M,position:L,len:B,len2:G,minTurnAngle:N.get("minTurnAngle"),maxSurfaceAngle:N.get("maxSurfaceAngle"),surfaceNormal:new U(Z,et),linePoints:yt,textAlign:zt,labelDistance:P,labelAlignTo:I,edgeDistance:O,bleedMargin:F,rect:aa,unconstrainedWidth:aa.width,labelStyleWidth:D.style.width})}S.setTextConfig({inside:Gt})}}),!a&&e.get("avoidLabelOverlap")&&v2(r,n,i,l,u,v,f,c);for(var p=0;p<r.length;p++){var g=r[p],y=g.label,m=g.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),_&&(A(y.states,h),y.ignore=!0);var x=y.states.select;x&&(x.x+=y.x,x.y+=y.y)}if(m){var w=g.linePoints;_||!w?(A(m.states,h),m.ignore=!0):(gx(w,g.minTurnAngle),fI(w,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:w}),y.__hostTarget.textGuideLineConfig={anchor:new U(w[0][0],w[0][1])})}}}var p2=function(e){R(t,e);function t(r,n,i){var a=e.call(this)||this;a.z2=2;var o=new Ot;return a.setTextContent(o),a.updateData(r,n,i,!0),a}return t.prototype.updateData=function(r,n,i,a){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),f=r.getItemLayout(n),c=k(Ba(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(a){o.setShape(c);var v=s.getShallow("animationType");s.ecModel.ssr?(Bt(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):v==="scale"?(o.shape.r=f.r0,Bt(o,{shape:{r:f.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),Bt(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Lt(o,{shape:{endAngle:f.endAngle}},s,n))}else Bl(o),Lt(o,{shape:c},s,n);o.useStyle(r.getItemVisual(n,"style")),eo(o,l);var h=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(h)*d,g=Math.sin(h)*d,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=k({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Ba(u.getModel("itemStyle"),f)),k(o.ensureState("select"),{x:p,y:g,shape:Ba(l.getModel(["select","itemStyle"]),f)}),k(o.ensureState("blur"),{shape:Ba(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&k(m.ensureState("select"),{x:p,y:g}),k(_.ensureState("select"),{x:p,y:g}),Hi(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,f=l&&l.opacity;Ji(a,ta(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:f,defaultText:r.getFormattedLabel(i,"normal")||n.getName(i)});var c=a.getTextContent();a.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var v=r.get(["label","position"]);if(v!=="outside"&&v!=="outer")a.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new ln,this.setTextGuideLine(h)),Tv(this,Cv(o),{stroke:u,opacity:Kr(s.get(["lineStyle","opacity"]),f,1)})}},t}(Ie),g2=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,i,a){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var v=new Ie({shape:Nx(r,i)});v.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}o.diff(s).add(function(h){var d=new p2(o,h,u);o.setItemGraphicEl(h,d),l.add(d)}).update(function(h,d){var p=s.getItemGraphicEl(d);p.updateData(o,h,u),p.off("click"),l.add(p),o.setItemGraphicEl(h,p)}).remove(function(h){var d=s.getItemGraphicEl(h);ro(d,r,h)}).execute(),d2(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="pie",t}(ce);const y2=g2;function Bx(e,t,r){t=V(t)&&{coordDimensions:t}||k({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=mv(n,t).dimensions,a=new yv(i,e);return a.initData(n,r),a}var m2=function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e}();const Fx=m2;var _2=xt(),x2=function(e){R(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Fx(ht(this.getData,this),ht(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Bx(this,{coordDimensions:["value"],encodeDefaulter:dt(O_,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=_2(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=u0(o,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){Zs(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,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"},t}(Oe);const b2=x2;function S2(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(vt(o)&&!isNaN(o)&&o<0)})}}}function w2(e){e.registerChartView(y2),e.registerSeriesModel(b2),gE("pie",e.registerAction),e.registerLayout(dt(c2,"pie")),e.registerProcessor(Rx("pie")),e.registerProcessor(S2("pie"))}var T2=function(e){R(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.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"},t}(st);const C2=T2;var Rc=function(e){R(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",fe).models[0]},t.type="cartesian2dAxis",t}(st);ie(Rc,Eo);var Vx={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,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},D2=rt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Vx),Ev=rt({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}}},Vx),A2=rt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Ev),M2=Y({logBase:10},Ev);const zx={category:D2,value:Ev,time:A2,log:M2};var E2={value:1,category:1,time:1,log:1};function ho(e,t,r,n){A(E2,function(i,a){var o=rt(rt({},zx[a],!0),n,!0),s=function(l){R(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var v=oo(this),h=v?ql(f):{},d=c.getTheme();rt(f,d.get(a+"Axis")),rt(f,this.getDefaultOption()),f.type=ry(f),v&&Ui(f,h,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Pc.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",ry)}function ry(e){return e.type||(e.data?"category":"value")}var L2=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return z(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),_t(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e}();const P2=L2;var kc=["x","y"];function ny(e){return e.type==="interval"||e.type==="time"}var I2=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=kc,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!ny(r)||!ny(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,v=o[0]-i[0]*f,h=o[1]-a[0]*c,d=this._transform=[f,0,0,c,v,h];this._invTransform=Ki([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new it(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return ee(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},t.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n){var i=[];if(this._invTransform)return ee(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(){var r=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(r[0],r[1]),a=Math.min(n[0],n[1]),o=Math.max(r[0],r[1])-i,s=Math.max(n[0],n[1])-a;return new it(i,a,o,s)},t}(P2),O2=function(e){R(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(vr);const N2=O2;function Bc(e,t,r){r=r||{};var n=e.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,f=n.getRect(),c=[f.x,f.x+f.width,f.y,f.y+f.height],v={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,d=u==="x"?[c[2]-h,c[3]+h]:[c[0]-h,c[1]+h];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[v.onZero]=Math.max(Math.min(p,d[1]),d[0])}a.position=[u==="y"?d[v[l]]:c[0],u==="x"?d[v[l]]:c[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?d[v[s]]-d[v.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Cr(r.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-y:y,a.z2=1,a}function iy(e){return e.get("coordinateSystem")==="cartesian2d"}function ay(e){var t={xAxisModel:null,yAxisModel:null};return A(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,fe).models[0];if(process.env.NODE_ENV!=="production"&&!a)throw new Error(i+' "'+Kr(e.get(i+"Index"),e.get(i+"Id"),0)+'" not found');t[n]=a}),t}var Df=Math.log;function Gx(e,t,r){var n=Qn.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=ax(e,t),u=l.extent,f=l.fixMin,c=l.fixMax;if(e.type==="log"){var v=Df(e.base);u=[Df(u[0])/v,Df(u[1])/v]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:c});var h=n.getExtent.call(e);f&&(u[0]=h[0]),c&&(u[1]=h[1]);var d=n.getInterval.call(e),p=u[0],g=u[1];if(f&&c)d=(g-p)/o;else if(f)for(g=u[0]+d*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)d=gf(d),g=u[0]+d*o;else if(c)for(p=u[1]-d*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)d=gf(d),p=u[1]-d*o;else{var y=e.getTicks().length-1;y>o&&(d=gf(d));var m=d*o;g=Math.ceil(u[1]/d)*d,p=Ct(g-m),p<0&&u[0]>=0?(p=0,g=Ct(m)):g>0&&u[1]<=0&&(g=0,p=-Ct(m))}var _=(i[0].value-a[0].value)/s,x=(i[o].value-a[o].value)/s;if(n.setExtent.call(e,p+d*_,g+d*x),n.setInterval.call(e,d),(_||x)&&n.setNiceExtent.call(e,p+d,g-d),process.env.NODE_ENV!=="production"){var w=n.getTicks.call(e);w[1]&&(!jL(d)||qs(w[1].value)>qs(d))&&kt("The ticks may be not readable when set min: "+t.get("min")+", max: "+t.get("max")+" and alignTicks: true")}}var R2=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=kc,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=mt(o),u=l.length;if(!!u){for(var f=[],c=u-1;c>=0;c--){var v=+l[c],h=o[v],d=h.model,p=h.scale;Ic(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(h):(Xi(p,d),Ic(p)&&(s=h))}f.length&&(s||(s=f.pop(),Xi(s.scale,s.model)),A(f,function(g){Gx(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};A(n.x,function(o){oy(n,"y",o,a)}),A(n.y,function(o){oy(n,"x",o,a)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=Er(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(A(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=DP(u);if(f){var c=u.isHorizontal()?"height":"width",v=u.model.get(["axisLabel","margin"]);o[c]-=f[c]+v,u.position==="top"?o.y+=f.height+v:u.position==="left"&&(o.x+=f.width+v)}}}),l()),A(this._coordsList,function(u){u.calcAffineTransform()});function l(){A(s,function(u){var f=u.isHorizontal(),c=f?[0,o.width]:[0,o.height],v=u.inverse?1:0;u.setExtent(c[v],c[1-v]),k2(u,f?o.x:o.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}H(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===t||a[i].getAxis("y").index===r)return a[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,n=t.xAxisModel||r&&r.getReferringComponents("xAxis",fe).models[0],i=t.yAxisModel||r&&r.getReferringComponents("yAxis",fe).models[0],a=t.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,ct(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var r=this._coordsList[0];if(r)return r.containPoint(t)},e.prototype._initCartesian=function(t,r,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,A(s.x,function(f,c){A(s.y,function(v,h){var d="x"+c+"y"+h,p=new I2(d);p.master=i,p.model=t,i._coordsMap[d]=p,i._coordsList.push(p),p.addAxis(f),p.addAxis(v)})});function u(f){return function(c,v){if(!!Af(c,t)){var h=c.get("position");f==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var d=new N2(f,ou(c),[0,0],c.get("type"),h),p=d.type==="category";d.onBand=p&&c.get("boundaryGap"),d.inverse=c.get("inverse"),c.axis=d,d.model=c,d.grid=a,d.index=v,a._axesList.push(d),s[f][v]=d,l[f]++}}}},e.prototype._updateScale=function(t,r){A(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),t.eachSeries(function(i){if(iy(i)){var a=ay(i),o=a.xAxisModel,s=a.yAxisModel;if(!Af(o,r)||!Af(s,r))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),f=l.getAxis("x"),c=l.getAxis("y");n(u,f),n(u,c)}},this);function n(i,a){A(Oc(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return A(this.getCartesians(),function(i){var a=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(a);ct(r,a)<0&&r.push(a),ct(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},e.create=function(t,r){var n=[];return t.eachComponent("grid",function(i,a){var o=new e(i,t,r);o.name="grid_"+a,o.resize(i,r,!0),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(i){if(!!iy(i)){var a=ay(i),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel();if(process.env.NODE_ENV!=="production"){if(!l)throw new Error('Grid "'+Kr(o.get("gridIndex"),o.get("gridId"),0)+'" not found');if(o.getCoordSysModel()!==s.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},e.dimensions=kc,e}();function Af(e,t){return e.getCoordSysModel()===t}function oy(e,t,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)sy(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&sy(i[u])&&!n[f(i[u])]){a=i[u];break}a&&(n[f(a)]=!0);function f(c){return c.dim+"_"+c.index}}function sy(e){return e&&e.type!=="category"&&e.type!=="time"&&CP(e)}function k2(e,t){var r=e.getExtent(),n=r[0]+r[1];e.toGlobalCoord=e.dim==="x"?function(i){return i+t}:function(i){return n-i+t},e.toLocalCoord=e.dim==="x"?function(i){return i-t}:function(i){return n-i+t}}const B2=R2;var Zr=Math.PI,Xn=function(){function e(t,r){this.group=new Dt,this.opt=r,this.axisModel=t,Y(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Dt({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(t){return!!ly[t]},e.prototype.add=function(t){ly[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,r,n){var i=bh(r-t),a,o;return to(i)?(o=n>0?"top":"bottom",a="center"):to(i-Zr)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<Zr?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),ly={axisLine:function(e,t,r,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(ee(s,s,o),ee(l,l,o));var f=k({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new Me({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});no(c.shape,c.style.lineWidth),c.anid="line",r.add(c);var v=t.get(["axisLine","symbol"]);if(v!=null){var h=t.get(["axisLine","symbolSize"]);$(v)&&(v=[v,v]),($(h)||vt(h))&&(h=[h,h]);var d=d1(t.get(["axisLine","symbolOffset"])||0,h),p=h[0],g=h[1];A([{rotate:e.rotation+Math.PI/2,offset:d[0],r:0},{rotate:e.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if(v[m]!=="none"&&v[m]!=null){var _=Kn(v[m],-p/2,-g/2,p,g,f.stroke,!0),x=y.r+y.offset,w=u?l:s;_.attr({rotation:y.rotate,x:w[0]+x*Math.cos(e.rotation),y:w[1]-x*Math.sin(e.rotation),silent:!0,z2:11}),r.add(_)}})}}},axisTickLabel:function(e,t,r,n){var i=z2(r,n,t,e),a=$2(r,n,t,e);if(V2(t,a,i),G2(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=yx(z(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));xx(o)}},axisName:function(e,t,r,n){var i=Cr(e.axisName,t.get("name"));if(!!i){var a=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),f=u[0]>u[1]?-1:1,c=[a==="start"?u[0]-f*l:a==="end"?u[1]+f*l:(u[0]+u[1])/2,fy(a)?e.labelOffset+o*l:0],v,h=t.get("nameRotate");h!=null&&(h=h*Zr/180);var d;fy(a)?v=Xn.innerTextLayout(e.rotation,h!=null?h:e.rotation,o):(v=F2(e.rotation,a,h||0,u),d=e.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(v.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),g=t.get("nameTruncate",!0)||{},y=g.ellipsis,m=Cr(e.nameTruncateMaxWidth,g.maxWidth,d),_=new Ot({x:c[0],y:c[1],rotation:v.rotation,silent:Xn.isLabelSilent(t),style:fr(s,{text:i,font:p,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||v.textAlign,verticalAlign:s.get("verticalAlign")||v.textVerticalAlign}),z2:1});if(zh({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var x=Xn.makeAxisEventDataBase(t);x.targetType="axisName",x.name=i,ut(_).eventData=x}n.add(_),_.updateTransform(),r.add(_),_.decomposeTransform()}}};function F2(e,t,r,n){var i=bh(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return to(i-Zr/2)?(o=l?"bottom":"top",a="center"):to(i-Zr*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<Zr*1.5&&i>Zr/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function V2(e,t,r){if(!ox(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=r[0],f=r[1],c=r[r.length-1],v=r[r.length-2];n===!1?(xe(a),xe(u)):uy(a,o)&&(n?(xe(o),xe(f)):(xe(a),xe(u))),i===!1?(xe(s),xe(c)):uy(l,s)&&(i?(xe(l),xe(v)):(xe(s),xe(c)))}}function xe(e){e&&(e.ignore=!0)}function uy(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=mo([]);return ji(i,i,-e.rotation),r.applyTransform(Qr([],i,e.getLocalTransform())),n.applyTransform(Qr([],i,t.getLocalTransform())),r.intersect(n)}}function fy(e){return e==="middle"||e==="center"}function $x(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,t&&(ee(o,o,t),ee(s,s,t));var f=new Me({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});no(f.shape,f.style.lineWidth),f.anid=i+"_"+e[l].tickValue,a.push(f)}return a}function z2(e,t,r,n){var i=r.axis,a=r.getModel("axisTick"),o=a.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||i.scale.isBlank())){for(var s=a.getModel("lineStyle"),l=n.tickDirection*a.get("length"),u=i.getTicksCoords(),f=$x(u,t.transform,l,Y(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}}function G2(e,t,r,n){var i=r.axis,a=r.getModel("minorTick");if(!(!a.get("show")||i.scale.isBlank())){var o=i.getMinorTicksCoords();if(!!o.length)for(var s=a.getModel("lineStyle"),l=n*a.get("length"),u=Y(s.getLineStyle(),Y(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var c=$x(o[f],t.transform,l,u,"minorticks_"+f),v=0;v<c.length;v++)e.add(c[v])}}function $2(e,t,r,n){var i=r.axis,a=Cr(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(Cr(n.labelRotate,o.get("rotate"))||0)*Zr/180,f=Xn.innerTextLayout(n.rotation,u,n.labelDirection),c=r.getCategories&&r.getCategories(!0),v=[],h=Xn.isLabelSilent(r),d=r.get("triggerEvent");return A(l,function(p,g){var y=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,m=p.formattedLabel,_=p.rawLabel,x=o;if(c&&c[y]){var w=c[y];H(w)&&w.textStyle&&(x=new Et(w.textStyle,o,r.ecModel))}var b=x.getTextColor()||r.get(["axisLine","lineStyle","color"]),S=i.dataToCoord(y),T=new Ot({x:S,y:n.labelOffset+n.labelDirection*s,rotation:f.rotation,silent:h,z2:10+(p.level||0),style:fr(x,{text:m,align:x.getShallow("align",!0)||f.textAlign,verticalAlign:x.getShallow("verticalAlign",!0)||x.getShallow("baseline",!0)||f.textVerticalAlign,fill:X(b)?b(i.type==="category"?_:i.type==="value"?y+"":y,g):b})});if(T.anid="label_"+y,d){var D=Xn.makeAxisEventDataBase(r);D.targetType="axisLabel",D.value=_,D.tickIndex=g,i.type==="category"&&(D.dataIndex=y),ut(T).eventData=D}t.add(T),T.updateTransform(),v.push(T),e.add(T),T.decomposeTransform()}),v}}const an=Xn;function H2(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return W2(r,e,t),r.seriesInvolved&&Y2(r,e),r}function W2(e,t,r){var n=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];A(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=vo(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",n);if(A(s.getAxes(),dt(p,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var v=c.get("trigger")==="axis",h=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(v||h)&&A(d.baseAxes,dt(p,h?"cross":!0,v)),h&&A(d.otherAxes,dt(p,"cross",!1))}function p(g,y,m){var _=m.model.getModel("axisPointer",i),x=_.get("show");if(!(!x||x==="auto"&&!g&&!Fc(_))){y==null&&(y=_.get("triggerTooltip")),_=g?U2(m,c,i,t,g,y):_;var w=_.get("snap"),b=_.get("triggerEmphasis"),S=vo(m.model),T=y||w||m.type==="category",D=e.axesInfo[S]={key:S,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:b,involveSeries:T,snap:w,useHandle:Fc(_),seriesModels:[],linkGroup:null};u[S]=D,e.seriesInvolved=e.seriesInvolved||T;var M=X2(a,m);if(M!=null){var C=o[M]||(o[M]={axesInfo:{}});C.axesInfo[S]=D,C.mapper=a[M].mapper,D.linkGroup=C}}}})}function U2(e,t,r,n,i,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};A(s,function(v){l[v]=j(o.get(v))}),l.snap=e.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var f=o.get(["label","show"]);if(u.show=f!=null?f:!0,!a){var c=l.lineStyle=o.get("crossStyle");c&&Y(u,c.textStyle)}}return e.model.getModel("axisPointer",new Et(l,r,n))}function Y2(e,t){t.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||A(e.coordSysAxesInfo[vo(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function X2(e,t){for(var r=t.model,n=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(Mf(a[n+"AxisId"],r.id)||Mf(a[n+"AxisIndex"],r.componentIndex)||Mf(a[n+"AxisName"],r.name))return i}}function Mf(e,t){return e==="all"||V(e)&&ct(e,t)>=0||e===t}function q2(e){var t=Lv(e);if(!!t){var r=t.axisPointerModel,n=t.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=Fc(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function Lv(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[vo(e)]}function Z2(e){var t=Lv(e);return t&&t.axisPointerModel}function Fc(e){return!!e.get(["handle","show"])}function vo(e){return e.type+"||"+e.id}var Ef={},j2=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i,a){this.axisPointerClass&&q2(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},t.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},t.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},t.prototype.dispose=function(r,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=t.getAxisPointerClass(this.axisPointerClass);if(!!a){var o=Z2(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,n){if(process.env.NODE_ENV!=="production"&&Ef[r])throw new Error("axisPointer "+r+" exists");Ef[r]=n},t.getAxisPointerClass=function(r){return r&&Ef[r]},t.type="axis",t}(Vt);const Lo=j2;var Vc=xt();function K2(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,clamp:!0});if(!!u.length){var f=s.length,c=Vc(e).splitAreaColors,v=Q(),h=0;if(c)for(var d=0;d<u.length;d++){var p=c.get(u[d].tickValue);if(p!=null){h=(p+(f-1)*d)%f;break}}var g=i.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=V(s)?s:[s];for(var d=1;d<u.length;d++){var m=i.toGlobalCoord(u[d].coord),_=void 0,x=void 0,w=void 0,b=void 0;i.isHorizontal()?(_=g,x=l.y,w=m-_,b=l.height,g=_+w):(_=l.x,x=g,w=l.width,b=m-x,g=x+b);var S=u[d-1].tickValue;S!=null&&v.set(S,h),t.add(new wt({anid:S!=null?"area_"+S:null,shape:{x:_,y:x,width:w,height:b},style:Y({fill:s[h]},y),autoBatch:!0,silent:!0})),h=(h+1)%f}Vc(e).splitAreaColors=v}}}function Q2(e){Vc(e).splitAreaColors=null}var J2=["axisLine","axisTickLabel","axisName"],tO=["splitArea","splitLine","minorSplitLine"],Hx=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="CartesianAxisPointer",r}return t.prototype.render=function(r,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Dt,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),l=Bc(s,r),u=new an(r,k({handleAutoShown:function(c){for(var v=s.coordinateSystem.getCartesians(),h=0;h<v.length;h++)if(Ic(v[h].getOtherAxis(r.axis).scale))return!0;return!1}},l));A(J2,u.add,u),this._axisGroup.add(u.getGroup()),A(tO,function(c){r.get([c,"show"])&&eO[c](this,this._axisGroup,r,s)},this);var f=a&&a.type==="changeAxisOrder"&&a.isInitSort;f||Vl(o,this._axisGroup,r),e.prototype.render.call(this,r,n,i,a)}},t.prototype.remove=function(){Q2(this)},t.type="cartesianAxis",t}(Lo),eO={splitLine:function(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=V(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=i.isHorizontal(),f=0,c=i.getTicksCoords({tickModel:a}),v=[],h=[],d=o.getLineStyle(),p=0;p<c.length;p++){var g=i.toGlobalCoord(c[p].coord);u?(v[0]=g,v[1]=l.y,h[0]=g,h[1]=l.y+l.height):(v[0]=l.x,v[1]=g,h[0]=l.x+l.width,h[1]=g);var y=f++%s.length,m=c[p].tickValue,_=new Me({anid:m!=null?"line_"+c[p].tickValue:null,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:h[0],y2:h[1]},style:Y({stroke:s[y]},d),silent:!0});no(_.shape,d.lineWidth),t.add(_)}}},minorSplitLine:function(e,t,r,n){var i=r.axis,a=r.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(!!u.length)for(var f=[],c=[],v=o.getLineStyle(),h=0;h<u.length;h++)for(var d=0;d<u[h].length;d++){var p=i.toGlobalCoord(u[h][d].coord);l?(f[0]=p,f[1]=s.y,c[0]=p,c[1]=s.y+s.height):(f[0]=s.x,f[1]=p,c[0]=s.x+s.width,c[1]=p);var g=new Me({anid:"minor_line_"+u[h][d].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]},style:v,silent:!0});no(g.shape,v.lineWidth),t.add(g)}},splitArea:function(e,t,r,n){K2(e,t,r,n)}},Wx=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t}(Hx),rO=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Wx.type,r}return t.type="yAxis",t}(Hx),nO=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="grid",r}return t.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new wt({shape:r.coordinateSystem.getRect(),style:Y({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Vt),cy={offset:0};function iO(e){e.registerComponentView(nO),e.registerComponentModel(C2),e.registerCoordinateSystem("cartesian2d",B2),ho(e,"x",Rc,cy),ho(e,"y",Rc,cy),e.registerComponentView(Wx),e.registerComponentView(rO),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var Da=zx.value;function gs(e,t){return Y({show:t},e)}var aO=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){var r=this.get("boundaryGap"),n=this.get("splitNumber"),i=this.get("scale"),a=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),f=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),v=this.get("triggerEvent"),h=z(this.get("indicator")||[],function(d){d.max!=null&&d.max>0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var p=l;d.color!=null&&(p=Y({color:d.color},l));var g=rt(j(d),{boundaryGap:r,splitNumber:n,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:c,nameTextStyle:p,triggerEvent:v},!1);if($(f)){var y=g.name;g.name=f.replace("{value}",y!=null?y:"")}else X(f)&&(g.name=f(g.name,g));var m=new Et(g,null,this.ecModel);return ie(m,Eo.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.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:rt({lineStyle:{color:"#bbb"}},Da.axisLine),axisLabel:gs(Da.axisLabel,!1),axisTick:gs(Da.axisTick,!1),splitLine:gs(Da.splitLine,!0),splitArea:gs(Da.splitArea,!0),indicator:[]},t}(st);const oO=aO;var sO=["axisLine","axisTickLabel","axisName"],lO=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=this.group;a.removeAll(),this._buildAxes(r),this._buildSplitLineAndArea(r)},t.prototype._buildAxes=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes(),a=z(i,function(o){var s=o.model.get("showName")?o.name:"",l=new an(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});A(a,function(o){A(sO,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var a=r.get("shape"),o=r.getModel("splitLine"),s=r.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),c=s.get("show"),v=l.get("color"),h=u.get("color"),d=V(v)?v:[v],p=V(h)?h:[h],g=[],y=[];function m(I,O,F){var N=F%O.length;return I[N]=I[N]||[],N}if(a==="circle")for(var _=i[0].getTicksCoords(),x=n.cx,w=n.cy,b=0;b<_.length;b++){if(f){var S=m(g,d,b);g[S].push(new rn({shape:{cx:x,cy:w,r:_[b].coord}}))}if(c&&b<_.length-1){var S=m(y,p,b);y[S].push(new To({shape:{cx:x,cy:w,r0:_[b].coord,r:_[b+1].coord}}))}}else for(var T,D=z(i,function(I,O){var F=I.getTicksCoords();return T=T==null?F.length-1:Math.min(F.length-1,T),z(F,function(N){return n.coordToPoint(N.coord,O)})}),M=[],b=0;b<=T;b++){for(var C=[],E=0;E<i.length;E++)C.push(D[E][b]);if(C[0]?C.push(C[0].slice()):process.env.NODE_ENV!=="production"&&console.error("Can't draw value axis "+b),f){var S=m(g,d,b);g[S].push(new ln({shape:{points:C}}))}if(c&&M){var S=m(y,p,b-1);y[S].push(new ai({shape:{points:C.concat(M)}}))}M=C.slice().reverse()}var L=l.getLineStyle(),P=u.getAreaStyle();A(y,function(I,O){this.group.add(De(I,{style:Y({stroke:"none",fill:p[O%p.length]},P),silent:!0}))},this),A(g,function(I,O){this.group.add(De(I,{style:Y({fill:"none",stroke:d[O%d.length]},L),silent:!0}))},this)},t.type="radar",t}(Vt);const uO=lO;var fO=function(e){R(t,e);function t(r,n,i){var a=e.call(this,r,n,i)||this;return a.type="value",a.angle=0,a.name="",a}return t}(vr);const cO=fO;var hO=function(){function e(t,r,n){this.dimensions=[],this._model=t,this._indicatorAxes=z(t.getIndicatorModels(),function(i,a){var o="indicator_"+a,s=new cO(o,new Qn);return s.name=i.get("name"),s.model=i,i.axis=s,this.dimensions.push(o),s},this),this.resize(t,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(t,r){var n=this._indicatorAxes[r];return this.coordToPoint(n.dataToCoord(t),r)},e.prototype.coordToPoint=function(t,r){var n=this._indicatorAxes[r],i=n.angle,a=this.cx+t*Math.cos(i),o=this.cy-t*Math.sin(i);return[a,o]},e.prototype.pointToData=function(t){var r=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(r*r+n*n);r/=i,n/=i;for(var a=Math.atan2(-n,r),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],c=Math.abs(a-f.angle);c<o&&(s=f,l=u,o=c)}return[l,+(s&&s.coordToData(i))]},e.prototype.resize=function(t,r){var n=t.get("center"),i=r.getWidth(),a=r.getHeight(),o=Math.min(i,a)/2;this.cx=K(n[0],i),this.cy=K(n[1],a),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");($(s)||vt(s))&&(s=[0,s]),this.r0=K(s[0],o),this.r=K(s[1],o),A(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var f=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;f=Math.atan2(Math.sin(f),Math.cos(f)),l.angle=f},this)},e.prototype.update=function(t,r){var n=this._indicatorAxes,i=this._model;A(n,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==i)){var u=s.getData();A(n,function(f){f.scale.unionExtentFromData(u,u.mapDimension(f.dim))})}},this);var a=i.get("splitNumber"),o=new Qn;o.setExtent(0,a),o.setInterval(1),A(n,function(s,l){Gx(s.scale,s.model,o)})},e.prototype.convertToPixel=function(t,r,n){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(t,r,n){return console.warn("Not implemented."),null},e.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},e.create=function(t,r){var n=[];return t.eachComponent("radar",function(i){var a=new e(i,t,r);n.push(a),i.coordinateSystem=a}),t.eachSeriesByType("radar",function(i){i.get("coordinateSystem")==="radar"&&(i.coordinateSystem=n[i.get("radarIndex")||0])}),n},e.dimensions=[],e}();const vO=hO;function dO(e){e.registerCoordinateSystem("radar",vO),e.registerComponentModel(oO),e.registerComponentView(uO),e.registerVisual({seriesType:"radar",reset:function(t){var r=t.getData();r.each(function(n){r.setItemVisual(n,"legendIcon","roundRect")}),r.setVisual("legendIcon","roundRect")}})}var hy="\0_ec_interaction_mutex";function pO(e,t,r){var n=Ux(e);n[t]=r}function gO(e,t,r){var n=Ux(e),i=n[t];i===r&&(n[t]=null)}function Ux(e){return e[hy]||(e[hy]={})}un({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Yt);var yO={axisPointer:1,tooltip:1,brush:1};function mO(e,t,r){var n=t.getComponentByElement(e.topTarget),i=n&&n.coordinateSystem;return n&&n!==r&&!yO.hasOwnProperty(n.mainType)&&i&&i.model!==r}var _O=["itemStyle","opacity"],xO=function(e){R(t,e);function t(r,n){var i=e.call(this)||this,a=i,o=new ln,s=new Ot;return a.setTextContent(s),i.setTextGuideLine(o),i.updateData(r,n,!0),i}return t.prototype.updateData=function(r,n,i){var a=this,o=r.hostModel,s=r.getItemModel(n),l=r.getItemLayout(n),u=s.getModel("emphasis"),f=s.get(_O);f=f==null?1:f,i||Bl(a),a.useStyle(r.getItemVisual(n,"style")),a.style.lineJoin="round",i?(a.setShape({points:l.points}),a.style.opacity=0,Bt(a,{style:{opacity:f}},o,n)):Lt(a,{style:{opacity:f},shape:{points:l.points}},o,n),eo(a,s),this._updateLabel(r,n),Hi(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n){var i=this,a=this.getTextGuideLine(),o=i.getTextContent(),s=r.hostModel,l=r.getItemModel(n),u=r.getItemLayout(n),f=u.label,c=r.getItemVisual(n,"style"),v=c.fill;Ji(o,ta(l),{labelFetcher:r.hostModel,labelDataIndex:n,defaultOpacity:c.opacity,defaultText:r.getName(n)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}}),i.setTextConfig({local:!0,inside:!!f.inside,insideStroke:v,outsideFill:v});var h=f.linePoints;a.setShape({points:h}),i.textGuideLineConfig={anchor:h?new U(h[0][0],h[0][1]):null},Lt(o,{style:{x:f.x,y:f.y}},s,n),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),Tv(i,Cv(l),{stroke:v})},t}(ai),bO=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this._data,s=this.group;a.diff(o).add(function(l){var u=new xO(a,l);a.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(a,l),s.add(f),a.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);ro(u,r,l)}).execute(),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(ce);const SO=bO;var wO=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Fx(ht(this.getData,this),ht(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.getInitialData=function(r,n){return Bx(this,{coordDimensions:["value"],encodeDefaulter:dt(O_,this)})},t.prototype._defaultLabelLine=function(r){Zs(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.prototype.getDataParams=function(r){var n=this.getData(),i=e.prototype.getDataParams.call(this,r),a=n.mapDimension("value"),o=n.getSum(a);return i.percent=o?+(n.get(a,r)/o*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.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"}}},t}(Oe);const TO=wO;function CO(e,t){return Er(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function DO(e,t){for(var r=e.mapDimension("value"),n=e.mapArray(r,function(l){return l}),i=[],a=t==="ascending",o=0,s=e.count();o<s;o++)i[o]=o;return X(t)?i.sort(t):t!=="none"&&i.sort(function(l,u){return a?n[l]-n[u]:n[u]-n[l]}),i}function AO(e){var t=e.hostModel,r=t.get("orient");e.each(function(n){var i=e.getItemModel(n),a=i.getModel("label"),o=a.get("position"),s=i.getModel("labelLine"),l=e.getItemLayout(n),u=l.points,f=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",c,v,h,d;if(f)o==="insideLeft"?(v=(u[0][0]+u[3][0])/2+5,h=(u[0][1]+u[3][1])/2,c="left"):o==="insideRight"?(v=(u[1][0]+u[2][0])/2-5,h=(u[1][1]+u[2][1])/2,c="right"):(v=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,h=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,c="center"),d=[[v,h],[v,h]];else{var p=void 0,g=void 0,y=void 0,m=void 0,_=s.get("length");process.env.NODE_ENV!=="production"&&(r==="vertical"&&["top","bottom"].indexOf(o)>-1&&(o="left",console.warn("Position error: Funnel chart on vertical orient dose not support top and bottom.")),r==="horizontal"&&["left","right"].indexOf(o)>-1&&(o="bottom",console.warn("Position error: Funnel chart on horizontal orient dose not support left and right."))),o==="left"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,y=p-_,v=y-5,c="right"):o==="right"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=p+_,v=y+5,c="left"):o==="top"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=g-_,h=m-5,c="center"):o==="bottom"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=g+_,h=m+5,c="center"):o==="rightTop"?(p=r==="horizontal"?u[3][0]:u[1][0],g=r==="horizontal"?u[3][1]:u[1][1],r==="horizontal"?(m=g-_,h=m-5,c="center"):(y=p+_,v=y+5,c="top")):o==="rightBottom"?(p=u[2][0],g=u[2][1],r==="horizontal"?(m=g+_,h=m+5,c="center"):(y=p+_,v=y+5,c="bottom")):o==="leftTop"?(p=u[0][0],g=r==="horizontal"?u[0][1]:u[1][1],r==="horizontal"?(m=g-_,h=m-5,c="center"):(y=p-_,v=y-5,c="right")):o==="leftBottom"?(p=r==="horizontal"?u[1][0]:u[3][0],g=r==="horizontal"?u[1][1]:u[2][1],r==="horizontal"?(m=g+_,h=m+5,c="center"):(y=p-_,v=y-5,c="right")):(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,r==="horizontal"?(m=g+_,h=m+5,c="center"):(y=p+_,v=y+5,c="left")),r==="horizontal"?(y=p,v=y):(m=g,h=m),d=[[p,g],[y,m]]}l.label={linePoints:d,x:v,y:h,verticalAlign:"middle",textAlign:c,inside:f}})}function MO(e,t){e.eachSeriesByType("funnel",function(r){var n=r.getData(),i=n.mapDimension("value"),a=r.get("sort"),o=CO(r,t),s=r.get("orient"),l=o.width,u=o.height,f=DO(n,a),c=o.x,v=o.y,h=s==="horizontal"?[K(r.get("minSize"),u),K(r.get("maxSize"),u)]:[K(r.get("minSize"),l),K(r.get("maxSize"),l)],d=n.getDataExtent(i),p=r.get("min"),g=r.get("max");p==null&&(p=Math.min(d[0],0)),g==null&&(g=d[1]);var y=r.get("funnelAlign"),m=r.get("gap"),_=s==="horizontal"?l:u,x=(_-m*(n.count()-1))/n.count(),w=function(P,I){if(s==="horizontal"){var O=n.get(i,P)||0,F=zi(O,[p,g],h,!0),N=void 0;switch(y){case"top":N=v;break;case"center":N=v+(u-F)/2;break;case"bottom":N=v+(u-F);break}return[[I,N],[I,N+F]]}var B=n.get(i,P)||0,G=zi(B,[p,g],h,!0),W;switch(y){case"left":W=c;break;case"center":W=c+(l-G)/2;break;case"right":W=c+l-G;break}return[[W,I],[W+G,I]]};a==="ascending"&&(x=-x,m=-m,s==="horizontal"?c+=l:v+=u,f=f.reverse());for(var b=0;b<f.length;b++){var S=f[b],T=f[b+1],D=n.getItemModel(S);if(s==="horizontal"){var M=D.get(["itemStyle","width"]);M==null?M=x:(M=K(M,l),a==="ascending"&&(M=-M));var C=w(S,c),E=w(T,c+M);c+=M+m,n.setItemLayout(S,{points:C.concat(E.slice().reverse())})}else{var L=D.get(["itemStyle","height"]);L==null?L=x:(L=K(L,u),a==="ascending"&&(L=-L));var C=w(S,v),E=w(T,v+L);v+=L+m,n.setItemLayout(S,{points:C.concat(E.slice().reverse())})}}AO(n)})}function EO(e){e.registerChartView(SO),e.registerSeriesModel(TO),e.registerLayout(MO),e.registerProcessor(Rx("funnel"))}function LO(e){PO(e),IO(e)}function PO(e){if(!e.parallel){var t=!1;A(e.series,function(r){r&&r.type==="parallel"&&(t=!0)}),t&&(e.parallel=[{}])}}function IO(e){var t=St(e.parallelAxis);A(t,function(r){if(!!H(r)){var n=r.parallelIndex||0,i=St(e.parallel)[n];i&&i.parallelAxisDefault&&rt(r,i.parallelAxisDefault,!1)}})}var OO=5,NO=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){this._model=r,this._api=i,this._handlers||(this._handlers={},A(RO,function(a,o){i.getZr().on(o,this._handlers[o]=ht(a,this))},this)),ov(this,"_throttledDispatchExpand",r.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(r,n){sl(this,"_throttledDispatchExpand"),A(this._handlers,function(i,a){n.getZr().off(a,i)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(r){this._dispatchExpand(r)},t.prototype._dispatchExpand=function(r){r&&this._api.dispatchAction(k({type:"parallelAxisExpand"},r))},t.type="parallel",t}(Vt),RO={mousedown:function(e){Lf(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(Lf(this,"click")&&t){var r=[e.offsetX,e.offsetY],n=Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2);if(n>OO)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!Lf(this,"mousemove"))){var t=this._model,r=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),n=r.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:r.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function Lf(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}const kO=NO;var BO=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(r){var n=this.option;r&&rt(n,r,!0),this._initDimensions()},t.prototype.contains=function(r,n){var i=r.get("parallelIndex");return i!=null&&n.getComponent("parallel",i)===this},t.prototype.setAxisExpand=function(r){A(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){r.hasOwnProperty(n)&&(this.option[n]=r[n])},this)},t.prototype._initDimensions=function(){var r=this.dimensions=[],n=this.parallelAxisIndex=[],i=_t(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);A(i,function(a){r.push("dim"+a.get("dim")),n.push(a.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(st);const FO=BO;var VO=function(e){R(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.type=a||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(vr);const zO=VO;function GO(e,t,r,n,i,a){e=e||0;var o=r[1]-r[0];if(i!=null&&(i=wi(i,[0,o])),a!=null&&(a=Math.max(a,i!=null?i:0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=wi(s,[0,o]),i=a=wi(s,[i,a]),n=0}t[0]=wi(t[0],r),t[1]=wi(t[1],r);var l=Pf(t,n);t[n]+=e;var u=i||0,f=r.slice();l.sign<0?f[0]+=u:f[1]-=u,t[n]=wi(t[n],f);var c;return c=Pf(t,n),i!=null&&(c.sign!==l.sign||c.span<i)&&(t[1-n]=t[n]+l.sign*i),c=Pf(t,n),a!=null&&c.span>a&&(t[1-n]=t[n]+c.sign*a),t}function Pf(e,t){var r=e[t]-e[1-t];return{span:Math.abs(r),sign:r>0?-1:r<0?1:t?-1:1}}function wi(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var If=A,Yx=Math.min,Xx=Math.max,vy=Math.floor,$O=Math.ceil,dy=Ct,HO=Math.PI,WO=function(){function e(t,r,n){this.type="parallel",this._axesMap=Q(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var i=t.dimensions,a=t.parallelAxisIndex;If(i,function(o,s){var l=a[s],u=r.getComponent("parallelAxis",l),f=this._axesMap.set(o,new zO(o,ou(u),[0,0],u.get("type"),l)),c=f.type==="category";f.onBand=c&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},e.prototype.update=function(t,r){this._updateAxesFromSeries(this._model,t)},e.prototype.containPoint=function(t){var r=this._makeLayoutInfo(),n=r.axisBase,i=r.layoutBase,a=r.pixelDimIndex,o=t[1-a],s=t[a];return o>=n&&o<=n+r.axisLength&&s>=i&&s<=i+r.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(t,r){r.eachSeries(function(n){if(!!t.contains(n,r)){var i=n.getData();If(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),Xi(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,r){this._rect=Er(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var t=this._model,r=this._rect,n=["x","y"],i=["width","height"],a=t.get("layout"),o=a==="horizontal"?0:1,s=r[i[o]],l=[0,s],u=this.dimensions.length,f=ys(t.get("axisExpandWidth"),l),c=ys(t.get("axisExpandCount")||0,[0,u]),v=t.get("axisExpandable")&&u>3&&u>c&&c>1&&f>0&&s>0,h=t.get("axisExpandWindow"),d;if(h)d=ys(h[1]-h[0],l),h[1]=h[0]+d;else{d=ys(f*(c-1),l);var p=t.get("axisExpandCenter")||vy(u/2);h=[f*p-d/2],h[1]=h[0]+d}var g=(s-d)/(u-c);g<3&&(g=0);var y=[vy(dy(h[0]/f,1))+1,$O(dy(h[1]/f,1))-1],m=g/f*h[0];return{layout:a,pixelDimIndex:o,layoutBase:r[n[o]],layoutLength:s,axisBase:r[n[1-o]],axisLength:r[i[1-o]],axisExpandable:v,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:h,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},e.prototype._layoutAxes=function(){var t=this._rect,r=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;r.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),If(n,function(o,s){var l=(i.axisExpandable?YO:UO)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},f={horizontal:HO/2,vertical:0},c=[u[a].x+t.x,u[a].y+t.y],v=f[a],h=Dr();ji(h,h,v),Vi(h,h,c),this._axesLayout[o]={position:c,rotation:v,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(t){return this._axesMap.get(t)},e.prototype.dataToPoint=function(t,r){return this.axisCoordToPoint(this._axesMap.get(r).dataToCoord(t),r)},e.prototype.eachActiveState=function(t,r,n,i){n==null&&(n=0),i==null&&(i=t.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];A(o,function(g){s.push(t.mapDimension(g)),l.push(a.get(g).model)});for(var u=this.hasAxisBrushed(),f=n;f<i;f++){var c=void 0;if(!u)c="normal";else{c="active";for(var v=t.getValues(s,f),h=0,d=o.length;h<d;h++){var p=l[h].getActiveState(v[h]);if(p==="inactive"){c="inactive";break}}}r(c,f)}},e.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,r=this._axesMap,n=!1,i=0,a=t.length;i<a;i++)r.get(t[i]).model.getActiveState()!=="normal"&&(n=!0);return n},e.prototype.axisCoordToPoint=function(t,r){var n=this._axesLayout[r];return Co([t,0],n.transform)},e.prototype.getAxisLayout=function(t){return j(this._axesLayout[t])},e.prototype.getSlidedAxisExpandWindow=function(t){var r=this._makeLayoutInfo(),n=r.pixelDimIndex,i=r.axisExpandWindow.slice(),a=i[1]-i[0],o=[0,r.axisExpandWidth*(r.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:i};var s=t[n]-r.layoutBase-r.axisExpandWindow0Pos,l,u="slide",f=r.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),v=c[0]!=null;if(f)v&&f&&s<a*c[0]?(u="jump",l=s-a*c[2]):v&&f&&s>a*(1-c[0])?(u="jump",l=s-a*(1-c[2])):(l=s-a*c[1])>=0&&(l=s-a*(1-c[1]))<=0&&(l=0),l*=r.axisExpandWidth/f,l?GO(l,i,o,"all"):u="none";else{var h=i[1]-i[0],d=o[1]*s/h;i=[Xx(0,d-h/2)],i[1]=Yx(o[1],i[0]+h),i[0]=i[1]-h}return{axisExpandWindow:i,behavior:u}},e}();function ys(e,t){return Yx(Xx(e,t[0]),t[1])}function UO(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function YO(e,t){var r=t.layoutLength,n=t.axisExpandWidth,i=t.axisCount,a=t.axisCollapseWidth,o=t.winInnerIndices,s,l=a,u=!1,f;return e<o[0]?(s=e*a,f=a):e<=o[1]?(s=t.axisExpandWindow0Pos+e*n-t.axisExpandWindow[0],l=n,u=!0):(s=r-(i-1-e)*a,f=a),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:f}}const XO=WO;function qO(e,t){var r=[];return e.eachComponent("parallel",function(n,i){var a=new XO(n,e,t);a.name="parallel_"+i,a.resize(n,t),n.coordinateSystem=a,a.model=n,r.push(a)}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="parallel"){var i=n.getReferringComponents("parallel",fe).models[0];n.coordinateSystem=i.coordinateSystem}}),r}var ZO={create:qO};const jO=ZO;var qx=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.activeIntervals=[],r}return t.prototype.getAreaSelectStyle=function(){return $i([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(r){var n=this.activeIntervals=j(r);if(n)for(var i=n.length-1;i>=0;i--)s0(n[i])},t.prototype.getActiveState=function(r){var n=this.activeIntervals;if(!n.length)return"normal";if(r==null||isNaN(+r))return"inactive";if(n.length===1){var i=n[0];if(i[0]<=r&&r<=i[1])return"active"}else for(var a=0,o=n.length;a<o;a++)if(n[a][0]<=r&&r<=n[a][1])return"active";return"inactive"},t}(st);ie(qx,Eo);const py=qx;var Jn=!0,po=Math.min,qi=Math.max,KO=Math.pow,QO=1e4,JO=6,tN=6,gy="globalPan",eN={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},rN={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},yy={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},nN=0,iN=function(e){R(t,e);function t(r){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},process.env.NODE_ENV!=="production"&&J(r),n._zr=r,n.group=new Dt,n._uid="brushController_"+nN++,A(cN,function(i,a){this._handlers[a]=ht(i,this)},n),n}return t.prototype.enableBrush=function(r){return process.env.NODE_ENV!=="production"&&J(this._mounted),this._brushType&&this._doDisableBrush(),r.brushType&&this._doEnableBrush(r),this},t.prototype._doEnableBrush=function(r){var n=this._zr;this._enableGlobalPan||pO(n,gy,this._uid),A(this._handlers,function(i,a){n.on(a,i)}),this._brushType=r.brushType,this._brushOption=rt(j(yy),r,!0)},t.prototype._doDisableBrush=function(){var r=this._zr;gO(r,gy,this._uid),A(this._handlers,function(n,i){r.off(i,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(r){if(r&&r.length){var n=this._panels={};A(r,function(i){n[i.panelId]=j(i)})}else this._panels=null;return this},t.prototype.mount=function(r){r=r||{},process.env.NODE_ENV!=="production"&&(this._mounted=!0),this._enableGlobalPan=r.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:r.x||0,y:r.y||0,rotation:r.rotation||0,scaleX:r.scaleX||1,scaleY:r.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(r){process.env.NODE_ENV!=="production"&&J(this._mounted),r=z(r,function(v){return rt(j(yy),v,!0)});var n="\0-brush-index-",i=this._covers,a=this._covers=[],o=this,s=this._creatingCover;return new gl(i,r,u,l).add(f).update(f).remove(c).execute(),this;function l(v,h){return(v.id!=null?v.id:n+h)+"-"+v.brushType}function u(v,h){return l(v.__brushOption,h)}function f(v,h){var d=r[v];if(h!=null&&i[h]===s)a[v]=i[h];else{var p=a[v]=h!=null?(i[h].__brushOption=d,i[h]):jx(o,Zx(o,d));Pv(o,p)}}function c(v){i[v]!==s&&o.group.remove(i[v])}},t.prototype.unmount=function(){if(!(process.env.NODE_ENV!=="production"&&!this._mounted))return this.enableBrush(!1),zc(this),this._zr.remove(this.group),process.env.NODE_ENV!=="production"&&(this._mounted=!1),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(qe);function Zx(e,t){var r=su[t.brushType].createCover(e,t);return r.__brushOption=t,Qx(r,t),e.group.add(r),r}function jx(e,t){var r=Iv(t);return r.endCreating&&(r.endCreating(e,t),Qx(t,t.__brushOption)),t}function Kx(e,t){var r=t.__brushOption;Iv(t).updateCoverShape(e,t,r.range,r)}function Qx(e,t){var r=t.z;r==null&&(r=QO),e.traverse(function(n){n.z=r,n.z2=r})}function Pv(e,t){Iv(t).updateCommon(e,t),Kx(e,t)}function Iv(e){return su[e.__brushOption.brushType]}function Ov(e,t,r){var n=e._panels;if(!n)return Jn;var i,a=e._transform;return A(n,function(o){o.isTargetByCursor(t,r,a)&&(i=o)}),i}function Jx(e,t){var r=e._panels;if(!r)return Jn;var n=t.__brushOption.panelId;return n!=null?r[n]:Jn}function zc(e){var t=e._covers,r=t.length;return A(t,function(n){e.group.remove(n)},e),t.length=0,!!r}function ti(e,t){var r=z(e._covers,function(n){var i=n.__brushOption,a=j(i.range);return{brushType:i.brushType,panelId:i.panelId,range:a}});e.trigger("brush",{areas:r,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function aN(e){var t=e._track;if(!t.length)return!1;var r=t[t.length-1],n=t[0],i=r[0]-n[0],a=r[1]-n[1],o=KO(i*i+a*a,.5);return o>JO}function tb(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function eb(e,t,r,n){var i=new Dt;return i.add(new wt({name:"main",style:Nv(r),silent:!0,draggable:!0,cursor:"move",drift:dt(my,e,t,i,["n","s","w","e"]),ondragend:dt(ti,t,{isEnd:!0})})),A(n,function(a){i.add(new wt({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:dt(my,e,t,i,a),ondragend:dt(ti,t,{isEnd:!0})}))}),i}function rb(e,t,r,n){var i=n.brushStyle.lineWidth||0,a=qi(i,tN),o=r[0][0],s=r[1][0],l=o-i/2,u=s-i/2,f=r[0][1],c=r[1][1],v=f-a+i/2,h=c-a+i/2,d=f-o,p=c-s,g=d+i,y=p+i;yr(e,t,"main",o,s,d,p),n.transformable&&(yr(e,t,"w",l,u,a,y),yr(e,t,"e",v,u,a,y),yr(e,t,"n",l,u,g,a),yr(e,t,"s",l,h,g,a),yr(e,t,"nw",l,u,a,a),yr(e,t,"ne",v,u,a,a),yr(e,t,"sw",l,h,a,a),yr(e,t,"se",v,h,a,a))}function Gc(e,t){var r=t.__brushOption,n=r.transformable,i=t.childAt(0);i.useStyle(Nv(r)),i.attr({silent:!n,cursor:n?"move":"default"}),A([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?$c(e,a[0]):sN(e,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?rN[s]+"-resize":null})})}function yr(e,t,r,n,i,a,o){var s=t.childOfName(r);s&&s.setShape(uN(Rv(e,t,[[n,i],[n+a,i+o]])))}function Nv(e){return Y({strokeNoScale:!0},e.brushStyle)}function nb(e,t,r,n){var i=[po(e,r),po(t,n)],a=[qi(e,r),qi(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function oN(e){return Fh(e.group)}function $c(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=v_(r[t],oN(e));return n[i]}function sN(e,t){var r=[$c(e,t[0]),$c(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function my(e,t,r,n,i,a){var o=r.__brushOption,s=e.toRectRange(o.range),l=ib(t,i,a);A(n,function(u){var f=eN[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=e.fromRectRange(nb(s[0][0],s[1][0],s[0][1],s[1][1])),Pv(t,r),ti(t,{isEnd:!1})}function lN(e,t,r,n){var i=t.__brushOption.range,a=ib(e,r,n);A(i,function(o){o[0]+=a[0],o[1]+=a[1]}),Pv(e,t),ti(e,{isEnd:!1})}function ib(e,t,r){var n=e.group,i=n.transformCoordToLocal(t,r),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function Rv(e,t,r){var n=Jx(e,t);return n&&n!==Jn?n.clipPath(r,e._transform):j(r)}function uN(e){var t=po(e[0][0],e[1][0]),r=po(e[0][1],e[1][1]),n=qi(e[0][0],e[1][0]),i=qi(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:i-r}}function fN(e,t,r){if(!(!e._brushType||hN(e,t.offsetX,t.offsetY))){var n=e._zr,i=e._covers,a=Ov(e,t,r);if(!e._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===Jn||s.panelId===a.panelId)&&su[s.brushType].contain(i[o],r[0],r[1]))return}a&&n.setCursorStyle("crosshair")}}function Hc(e){var t=e.event;t.preventDefault&&t.preventDefault()}function Wc(e,t,r){return e.childOfName("main").contain(t,r)}function ab(e,t,r,n){var i=e._creatingCover,a=e._creatingPanel,o=e._brushOption,s;if(e._track.push(r.slice()),aN(e)||i){if(a&&!i){o.brushMode==="single"&&zc(e);var l=j(o);l.brushType=_y(l.brushType,a),l.panelId=a===Jn?null:a.panelId,i=e._creatingCover=Zx(e,l),e._covers.push(i)}if(i){var u=su[_y(e._brushType,a)],f=i.__brushOption;f.range=u.getCreatingRange(Rv(e,i,e._track)),n&&(jx(e,i),u.updateCommon(e,i)),Kx(e,i),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&Ov(e,t,r)&&zc(e)&&(s={isEnd:n,removeOnClick:!0});return s}function _y(e,t){return e==="auto"?(process.env.NODE_ENV!=="production"&&J(t&&t.defaultBrushType,'MUST have defaultBrushType when brushType is "atuo"'),t.defaultBrushType):e}var cN={mousedown:function(e){if(this._dragging)xy(this,e);else if(!e.target||!e.target.draggable){Hc(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var r=this._creatingPanel=Ov(this,e,t);r&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,r=e.offsetY,n=this.group.transformCoordToLocal(t,r);if(fN(this,e,n),this._dragging){Hc(e);var i=ab(this,e,n,!1);i&&ti(this,i)}},mouseup:function(e){xy(this,e)}};function xy(e,t){if(e._dragging){Hc(t);var r=t.offsetX,n=t.offsetY,i=e.group.transformCoordToLocal(r,n),a=ab(e,t,i,!0);e._dragging=!1,e._track=[],e._creatingCover=null,a&&ti(e,a)}}function hN(e,t,r){var n=e._zr;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var su={lineX:by(0),lineY:by(1),rect:{createCover:function(e,t){function r(n){return n}return eb({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=tb(e);return nb(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){rb(e,t,r,n)},updateCommon:Gc,contain:Wc},polygon:{createCover:function(e,t){var r=new Dt;return r.add(new ln({name:"main",style:Nv(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new ai({name:"main",draggable:!0,drift:dt(lN,e,t),ondragend:dt(ti,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:Rv(e,t,r)})},updateCommon:Gc,contain:Wc}};function by(e){return{createCover:function(t,r){return eb({toRectRange:function(n){var i=[n,[0,100]];return e&&i.reverse(),i},fromRectRange:function(n){return n[e]}},t,r,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var r=tb(t),n=po(r[0][e],r[1][e]),i=qi(r[0][e],r[1][e]);return[n,i]},updateCoverShape:function(t,r,n,i){var a,o=Jx(t,r);if(o!==Jn&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[n,a];e&&l.reverse(),rb(t,r,l,i)},updateCommon:Gc,contain:Wc}}const vN=iN;function dN(e){return e=kv(e),function(t){return Vh(t,e)}}function pN(e,t){return e=kv(e),function(r){var n=t!=null?t:r,i=n?e.width:e.height,a=n?e.x:e.y;return[a,a+(i||0)]}}function gN(e,t,r){var n=kv(e);return function(i,a){return n.contain(a[0],a[1])&&!mO(i,t,r)}}function kv(e){return it.create(e)}var yN=["axisLine","axisTickLabel","axisName"],mN=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){e.prototype.init.apply(this,arguments),(this._brushController=new vN(n.getZr())).on("brush",ht(this._onBrush,this))},t.prototype.render=function(r,n,i,a){if(!_N(r,n,a)){this.axisModel=r,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Dt,this.group.add(this._axisGroup),!!r.get("show")){var s=bN(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),f=u.width,c=r.axis.dim,v=l.getAxisLayout(c),h=k({strokeContainThreshold:f},v),d=new an(r,h);A(yN,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(h,u,r,s,f,i),Vl(o,this._axisGroup,r)}}},t.prototype._refreshBrushController=function(r,n,i,a,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),c=it.create({x:l[0],y:-o/2,width:u,height:o});c.x-=f,c.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:r.rotation,x:r.position[0],y:r.position[1]}).setPanels([{panelId:"pl",clipPath:dN(c),isTargetByCursor:gN(c,s,a),getLinearBrushOtherExtent:pN(c,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(xN(i))},t.prototype._onBrush=function(r){var n=r.areas,i=this.axisModel,a=i.axis,o=z(n,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});(!i.option.realtime===r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Vt);function _N(e,t,r){return r&&r.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function xN(e){var t=e.axis;return z(e.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(r[0],!0),t.dataToCoord(r[1],!0)]}})}function bN(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}const SN=mN;var wN={type:"axisAreaSelect",event:"axisAreaSelected"};function TN(e){e.registerAction(wN,function(t,r){r.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),e.registerAction("parallelAxisExpand",function(t,r){r.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var CN={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function DN(e){e.registerComponentView(kO),e.registerComponentModel(FO),e.registerCoordinateSystem("parallel",jO),e.registerPreprocessor(LO),e.registerComponentModel(py),e.registerComponentView(SN),ho(e,"parallel",py,CN),TN(e)}var kn=xt(),Sy=j,Of=ht,AN=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,t,r,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new Dt,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var v=dt(wy,r,c);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,r)}Cy(s,r,!0),this._renderHandle(a)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),i=t.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=Lv(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,i,a){},e.prototype.createPointerEl=function(t,r,n,i){var a=r.pointer;if(a){var o=kn(t).pointerEl=new UD[a.type](Sy(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=kn(t).labelEl=new Ot(Sy(r.label));t.add(a),Ty(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=kn(t).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,i){var a=kn(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),Ty(a,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=zl(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Rm(u.event)},onmousedown:Of(this._onHandleDragMove,this,0,0),drift:Of(this._onHandleDragMove,this),ondragend:Of(this._onHandleDragEnd,this)}),n.add(i)),Cy(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");V(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,ov(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){wy(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Nf(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(!!n){this._dragging=!0;var i=this.updateHandleTransform(Nf(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Nf(i)),kn(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(!!t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(!!t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),sl(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e}();function wy(e,t,r,n){ob(kn(r).lastProp,n)||(kn(r).lastProp=n,t?Lt(r,n,e):(r.stopAnimation(),r.attr(n)))}function ob(e,t){if(H(e)&&H(t)){var r=!0;return A(t,function(n,i){r=r&&ob(e[i],n)}),!!r}else return e===t}function Ty(e,t){e[t.get(["label","show"])?"show":"hide"]()}function Nf(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function Cy(e,t,r){var n=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}const sb=AN;function lb(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function ub(e,t,r,n,i){var a=r.get("value"),o=fb(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Ao(s.get("padding")||0),u=s.getFont(),f=Al(o,u),c=i.position,v=f.width+l[1]+l[3],h=f.height+l[0]+l[2],d=i.align;d==="right"&&(c[0]-=v),d==="center"&&(c[0]-=v/2);var p=i.verticalAlign;p==="bottom"&&(c[1]-=h),p==="middle"&&(c[1]-=h/2),MN(c,v,h,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:c[0],y:c[1],style:fr(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function MN(e,t,r,n){var i=n.getWidth(),a=n.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+r,a)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function fb(e,t,r,n,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:Sv(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};A(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),$(o)?a=o.replace("{value}",a):X(o)&&(a=o(s))}return a}function cb(e,t,r){var n=Dr();return ji(n,n,r.rotation),Vi(n,n,r.position),Co([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function EN(e,t,r,n,i,a){var o=an.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),ub(t,n,i,a,{position:cb(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function hb(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function LN(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function Dy(e,t,r,n,i,a){return{cx:e,cy:t,r0:r,r:n,startAngle:i,endAngle:a,clockwise:!0}}var PN=function(e){R(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=Ay(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var v=lb(a),h=IN[u](s,c,f);h.style=v,r.graphicKey=h.type,r.pointer=h}var d=Bc(l.model,i);EN(n,r,d,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=Bc(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=cb(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=Ay(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=n[f],c[f]=Math.min(l[1],c[f]),c[f]=Math.max(l[0],c[f]);var v=(u[1]+u[0])/2,h=[v,v];h[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:d[f]}},t}(sb);function Ay(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var IN={line:function(e,t,r){var n=hb([t,r[0]],[t,r[1]],My(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:LN([t-n/2,r[0]],[n,i],My(e))}}};function My(e){return e.dim==="x"?0:1}const ON=PN;var NN=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#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}},t}(st);const RN=NN;var Sr=xt(),kN=A;function vb(e,t,r){if(!tt.node){var n=t.getZr();Sr(n).records||(Sr(n).records={}),BN(n,t);var i=Sr(n).records[e]||(Sr(n).records[e]={});i.handler=r}}function BN(e,t){if(Sr(e).initialized)return;Sr(e).initialized=!0,r("click",dt(Ey,"click")),r("mousemove",dt(Ey,"mousemove")),r("globalout",VN);function r(n,i){e.on(n,function(a){var o=zN(t);kN(Sr(e).records,function(s){s&&i(s,a,o.dispatchAction)}),FN(o.pendings,t)})}}function FN(e,t){var r=e.showTip.length,n=e.hideTip.length,i;r?i=e.showTip[r-1]:n&&(i=e.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function VN(e,t,r){e.handler("leave",null,r)}function Ey(e,t,r,n){t.handler(e,r,n)}function zN(e){var t={showTip:[],hideTip:[]},r=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function Uc(e,t){if(!tt.node){var r=t.getZr(),n=(Sr(r).records||{})[e];n&&(Sr(r).records[e]=null)}}var GN=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";vb("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){Uc("axisPointer",n)},t.prototype.dispose=function(r,n){Uc("axisPointer",n)},t.type="axisPointer",t}(Vt);const $N=GN;function db(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Zn(a,e);if(o==null||o<0||V(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,v=u.dim,h=c==="x"||c==="radius"?1:0,d=a.mapDimension(v),p=[];p[h]=a.get(d,o),p[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(p)||[]}else r=l.dataToPoint(a.getValues(z(l.dimensions,function(y){return a.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var Ly=xt();function HN(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||ht(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(!!s){Bs(i)&&(i=db({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=Bs(i),u=a.axesInfo,f=s.axesInfo,c=n==="leave"||Bs(i),v={},h={},d={list:[],map:{}},p={showPointer:dt(UN,h),showTooltip:dt(YN,d)};A(s.coordSysMap,function(y,m){var _=l||y.containPoint(i);A(s.coordSysAxesInfo[m],function(x,w){var b=x.axis,S=jN(u,x);if(!c&&_&&(!u||S)){var T=S&&S.value;T==null&&!l&&(T=b.pointToData(i)),T!=null&&Py(x,T,p,!1,v)}})});var g={};return A(f,function(y,m){var _=y.linkGroup;_&&!h[m]&&A(_.axesInfo,function(x,w){var b=h[w];if(x!==y&&b){var S=b.value;_.mapper&&(S=y.axis.scale.parse(_.mapper(S,Iy(x),Iy(y)))),g[y.key]=S}})}),A(g,function(y,m){Py(f[m],y,p,!0,v)}),XN(h,f,v),qN(d,i,e,o),ZN(f,o,r),v}}function Py(e,t,r,n,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=WN(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&k(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function WN(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return A(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,v;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,e,r);v=h.dataIndices,c=h.nestestValue}else{if(v=l.getData().indicesOfNearest(f[0],e,r.type==="category"?.5:null),!v.length)return;c=l.getData().get(f[0],v[0])}if(!(c==null||!isFinite(c))){var d=e-c,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,i=c,a.length=0),A(v,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function UN(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function YN(e,t,r,n){var i=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=vo(l),f=e.map[u];f||(f=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function XN(e,t,r){var n=r.axesInfo=[];A(t,function(i,a){var o=i.axisPointerModel.option,s=e[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function qN(e,t,r,n){if(Bs(t)||!e.list.length){n({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function ZN(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=Ly(n)[i]||{},o=Ly(n)[i]={};A(e,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&A(c.seriesDataIndices,function(v){var h=v.seriesIndex+" | "+v.dataIndex;o[h]=v})});var s=[],l=[];A(a,function(u,f){!o[f]&&l.push(u)}),A(o,function(u,f){!a[f]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function jN(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function Iy(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function Bs(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function lu(e){Lo.registerAxisPointerClass("CartesianAxisPointer",ON),e.registerComponentModel(RN),e.registerComponentView($N),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!V(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=H2(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},HN)}function KN(e){cr(iO),cr(lu)}var QN=function(e){R(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),c=s.dataToCoord(n),v=a.get("type");if(v&&v!=="none"){var h=lb(a),d=tR[v](s,l,c,f);d.style=h,r.graphicKey=d.type,r.pointer=d}var p=a.get(["label","margin"]),g=JN(n,i,a,l,p);ub(r,i,a,o,g)},t}(sb);function JN(e,t,r,n,i){var a=t.axis,o=a.dataToCoord(e),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,f,c;if(a.dim==="radius"){var v=Dr();ji(v,v,s),Vi(v,v,[n.cx,n.cy]),u=Co([o,-i],v);var h=t.getModel("axisLabel").get("rotate")||0,d=an.innerTextLayout(s,h*Math.PI/180,-1);f=d.textAlign,c=d.textVerticalAlign}else{var p=l[1];u=n.coordToPoint([p+i,o]);var g=n.cx,y=n.cy;f=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",c=Math.abs(u[1]-y)/p<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:c}}var tR={line:function(e,t,r,n){return e.dim==="angle"?{type:"Line",shape:hb(t.coordToPoint([n[0],r]),t.coordToPoint([n[1],r]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r}}},shadow:function(e,t,r,n){var i=Math.max(1,e.getBandWidth()),a=Math.PI/180;return e.dim==="angle"?{type:"Sector",shape:Dy(t.cx,t.cy,n[0],n[1],(-r-i/2)*a,(-r+i/2)*a)}:{type:"Sector",shape:Dy(t.cx,t.cy,r-i/2,r+i/2,0,Math.PI*2)}}};const eR=QN;var rR=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.findAxisModel=function(r){var n,i=this.ecModel;return i.eachComponent(r,function(a){a.getCoordSysModel()===this&&(n=a)},this),n},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(st);const nR=rR;var Bv=function(e){R(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",fe).models[0]},t.type="polarAxis",t}(st);ie(Bv,Eo);var iR=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="angleAxis",t}(Bv),aR=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="radiusAxis",t}(Bv),Fv=function(e){R(t,e);function t(r,n){return e.call(this,"radius",r,n)||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t}(vr);Fv.prototype.dataToRadius=vr.prototype.dataToCoord;Fv.prototype.radiusToData=vr.prototype.coordToData;const oR=Fv;var sR=xt(),Vv=function(e){R(t,e);function t(r,n){return e.call(this,"angle",r,n||[0,360])||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var r=this,n=r.getLabelModel(),i=r.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=a[0],l=r.dataToCoord(s+1)-r.dataToCoord(s),u=Math.abs(l),f=Al(s==null?"":s+"",n.getFont(),"center","top"),c=Math.max(f.height,7),v=c/u;isNaN(v)&&(v=1/0);var h=Math.max(0,Math.floor(v)),d=sR(r.model),p=d.lastAutoInterval,g=d.lastTickCount;return p!=null&&g!=null&&Math.abs(p-h)<=1&&Math.abs(g-o)<=1&&p>h?h=p:(d.lastTickCount=o,d.lastAutoInterval=h),h},t}(vr);Vv.prototype.dataToAngle=vr.prototype.dataToCoord;Vv.prototype.angleToData=vr.prototype.coordToData;const lR=Vv;var pb=["radius","angle"],uR=function(){function e(t){this.dimensions=pb,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new oR,this._angleAxis=new lR,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(t){var r=this.pointToCoord(t);return this._radiusAxis.contain(r[0])&&this._angleAxis.contain(r[1])},e.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},e.prototype.getAxis=function(t){var r="_"+t+"Axis";return this[r]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(t){var r=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&r.push(n),i.scale.type===t&&r.push(i),r},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(t){var r=this._angleAxis;return t===r?this._radiusAxis:r},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(t){var r=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[r],otherAxes:[this.getOtherAxis(r)]}},e.prototype.dataToPoint=function(t,r){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],r),this._angleAxis.dataToAngle(t[1],r)])},e.prototype.pointToData=function(t,r){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],r),this._angleAxis.angleToData(n[1],r)]},e.prototype.pointToCoord=function(t){var r=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),a=i.getExtent(),o=Math.min(a[0],a[1]),s=Math.max(a[0],a[1]);i.inverse?o=s-360:s=o+360;var l=Math.sqrt(r*r+n*n);r/=l,n/=l;for(var u=Math.atan2(-n,r)/Math.PI*180,f=u<o?1:-1;u<o||u>s;)u+=f*360;return[l,u]},e.prototype.coordToPoint=function(t){var r=t[0],n=t[1]/180*Math.PI,i=Math.cos(n)*r+this.cx,a=-Math.sin(n)*r+this.cy;return[i,a]},e.prototype.getArea=function(){var t=this.getAngleAxis(),r=this.getRadiusAxis(),n=r.getExtent().slice();n[0]>n[1]&&n.reverse();var i=t.getExtent(),a=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*a,endAngle:-i[1]*a,clockwise:t.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,f=l*l+u*u-1e-4,c=this.r,v=this.r0;return f<=c*c&&f>=v*v}}},e.prototype.convertToPixel=function(t,r,n){var i=Oy(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=Oy(r);return i===this?this.pointToData(n):null},e}();function Oy(e){var t=e.seriesModel,r=e.polarModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}const fR=uR;function cR(e,t,r){var n=t.get("center"),i=r.getWidth(),a=r.getHeight();e.cx=K(n[0],i),e.cy=K(n[1],a);var o=e.getRadiusAxis(),s=Math.min(i,a)/2,l=t.get("radius");l==null?l=[0,"100%"]:V(l)||(l=[0,l]);var u=[K(l[0],s),K(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function hR(e,t){var r=this,n=r.getAngleAxis(),i=r.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),e.eachSeries(function(s){if(s.coordinateSystem===r){var l=s.getData();A(Oc(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),A(Oc(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),Xi(n.scale,n.model),Xi(i.scale,i.model),n.type==="category"&&!n.onBand){var a=n.getExtent(),o=360/n.scale.count();n.inverse?a[1]+=o:a[1]-=o,n.setExtent(a[0],a[1])}}function vR(e){return e.mainType==="angleAxis"}function Ny(e,t){if(e.type=t.get("type"),e.scale=ou(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),vR(t)){e.inverse=e.inverse!==t.get("clockwise");var r=t.get("startAngle");e.setExtent(r,r+(e.inverse?-360:360))}t.axis=e,e.model=t}var dR={dimensions:pb,create:function(e,t){var r=[];return e.eachComponent("polar",function(n,i){var a=new fR(i+"");a.update=hR;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");Ny(o,l),Ny(s,u),cR(a,n,t),r.push(a),n.coordinateSystem=a,a.model=n}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var i=n.getReferringComponents("polar",fe).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error('Polar "'+Cr(n.get("polarIndex"),n.get("polarId"),0)+'" not found');n.coordinateSystem=i.coordinateSystem}}),r}};const pR=dR;var gR=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function ms(e,t,r){t[1]>t[0]&&(t=t.slice().reverse());var n=e.coordToPoint([t[0],r]),i=e.coordToPoint([t[1],r]);return{x1:n[0],y1:n[1],x2:i[0],y2:i[1]}}function _s(e){var t=e.getRadiusAxis();return t.inverse?0:1}function Ry(e){var t=e[0],r=e[e.length-1];t&&r&&Math.abs(Math.abs(t.coord-r.coord)-360)<1e-4&&e.pop()}var yR=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return t.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var i=r.axis,a=i.polar,o=a.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=z(i.getViewLabels(),function(f){f=j(f);var c=i.scale,v=c.type==="ordinal"?c.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=i.dataToCoord(v),f});Ry(u),Ry(s),A(gR,function(f){r.get([f,"show"])&&(!i.scale.isBlank()||f==="axisLine")&&mR[f](this.group,r,a,s,l,o,u)},this)}},t.type="angleAxis",t}(Lo),mR={axisLine:function(e,t,r,n,i,a){var o=t.getModel(["axisLine","lineStyle"]),s=_s(r),l=s?0:1,u;a[l]===0?u=new rn({shape:{cx:r.cx,cy:r.cy,r:a[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new To({shape:{cx:r.cx,cy:r.cy,r:a[s],r0:a[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,e.add(u)},axisTick:function(e,t,r,n,i,a){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[_s(r)],u=z(n,function(f){return new Me({shape:ms(r,[l,l+s],f.coord)})});e.add(De(u,{style:Y(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,r,n,i,a){if(!!i.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[_s(r)],f=[],c=0;c<i.length;c++)for(var v=0;v<i[c].length;v++)f.push(new Me({shape:ms(r,[u,u+l],i[c][v].coord)}));e.add(De(f,{style:Y(s.getModel("lineStyle").getLineStyle(),Y(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,r,n,i,a,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),f=t.get("triggerEvent");A(o,function(c,v){var h=l,d=c.tickValue,p=a[_s(r)],g=r.coordToPoint([p+u,c.coord]),y=r.cx,m=r.cy,_=Math.abs(g[0]-y)/p<.3?"center":g[0]>y?"left":"right",x=Math.abs(g[1]-m)/p<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[d]){var w=s[d];H(w)&&w.textStyle&&(h=new Et(w.textStyle,l,l.ecModel))}var b=new Ot({silent:an.isLabelSilent(t),style:fr(h,{x:g[0],y:g[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:c.formattedLabel,align:_,verticalAlign:x})});if(e.add(b),f){var S=an.makeAxisEventDataBase(t);S.targetType="axisLabel",S.value=c.rawLabel,ut(b).eventData=S}},this)},splitLine:function(e,t,r,n,i,a){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=0;c<n.length;c++){var v=u++%l.length;f[v]=f[v]||[],f[v].push(new Me({shape:ms(r,a,n[c].coord)}))}for(var c=0;c<f.length;c++)e.add(De(f[c],{style:Y({stroke:l[c%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,r,n,i,a){if(!!i.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<i.length;u++)for(var f=0;f<i[u].length;f++)l.push(new Me({shape:ms(r,a,i[u][f].coord)}));e.add(De(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,r,n,i,a){if(!!n.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=Math.PI/180,v=-n[0].coord*c,h=Math.min(a[0],a[1]),d=Math.max(a[0],a[1]),p=t.get("clockwise"),g=1,y=n.length;g<=y;g++){var m=g===y?n[0].coord:n[g].coord,_=u++%l.length;f[_]=f[_]||[],f[_].push(new Ie({shape:{cx:r.cx,cy:r.cy,r0:h,r:d,startAngle:v,endAngle:-m*c,clockwise:p},silent:!0})),v=-m*c}for(var g=0;g<f.length;g++)e.add(De(f[g],{style:Y({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}};const _R=yR;var xR=["axisLine","axisTickLabel","axisName"],bR=["splitLine","splitArea","minorSplitLine"],SR=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return t.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var i=this._axisGroup,a=this._axisGroup=new Dt;this.group.add(a);var o=r.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),f=o.getMinorTicksCoords(),c=l.getExtent()[0],v=o.getExtent(),h=TR(s,r,c),d=new an(r,h);A(xR,d.add,d),a.add(d.getGroup()),Vl(i,a,r),A(bR,function(p){r.get([p,"show"])&&!o.scale.isBlank()&&wR[p](this.group,r,s,c,v,u,f)},this)}},t.type="radiusAxis",t}(Lo),wR={splitLine:function(e,t,r,n,i,a){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=0;c<a.length;c++){var v=u++%l.length;f[v]=f[v]||[],f[v].push(new rn({shape:{cx:r.cx,cy:r.cy,r:Math.max(a[c].coord,0)}}))}for(var c=0;c<f.length;c++)e.add(De(f[c],{style:Y({stroke:l[c%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,r,n,i,a,o){if(!!o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],f=0;f<o.length;f++)for(var c=0;c<o[f].length;c++)u.push(new rn({shape:{cx:r.cx,cy:r.cy,r:o[f][c].coord}}));e.add(De(u,{style:Y({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(e,t,r,n,i,a){if(!!a.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=a[0].coord,v=1;v<a.length;v++){var h=u++%l.length;f[h]=f[h]||[],f[h].push(new Ie({shape:{cx:r.cx,cy:r.cy,r0:c,r:a[v].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),c=a[v].coord}for(var v=0;v<f.length;v++)e.add(De(f[v],{style:Y({fill:l[v%l.length]},s.getAreaStyle()),silent:!0}))}}};function TR(e,t,r){return{position:[e.cx,e.cy],rotation:r/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}const CR=SR;function gb(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function yb(e,t){return t.dim+e.model.componentIndex}function DR(e,t,r){var n={},i=AR(_t(t.getSeriesByType(e),function(a){return!t.isSeriesFiltered(a)&&a.coordinateSystem&&a.coordinateSystem.type==="polar"}));t.eachSeriesByType(e,function(a){if(a.coordinateSystem.type==="polar"){var o=a.getData(),s=a.coordinateSystem,l=s.getBaseAxis(),u=yb(s,l),f=gb(a),c=i[u][f],v=c.offset,h=c.width,d=s.getOtherAxis(l),p=a.coordinateSystem.cx,g=a.coordinateSystem.cy,y=a.get("barMinHeight")||0,m=a.get("barMinAngle")||0;n[f]=n[f]||[];for(var _=o.mapDimension(d.dim),x=o.mapDimension(l.dim),w=nn(o,_),b=l.dim!=="radius"||!a.get("roundCap",!0),S=d.dataToCoord(0),T=0,D=o.count();T<D;T++){var M=o.get(_,T),C=o.get(x,T),E=M>=0?"p":"n",L=S;w&&(n[f][C]||(n[f][C]={p:S,n:S}),L=n[f][C][E]);var P=void 0,I=void 0,O=void 0,F=void 0;if(d.dim==="radius"){var N=d.dataToCoord(M)-S,B=l.dataToCoord(C);Math.abs(N)<y&&(N=(N<0?-1:1)*y),P=L,I=L+N,O=B-v,F=O-h,w&&(n[f][C][E]=I)}else{var G=d.dataToCoord(M,b)-S,W=l.dataToCoord(C);Math.abs(G)<m&&(G=(G<0?-1:1)*m),P=W+v,I=P+h,O=L,F=L+G,w&&(n[f][C][E]=F)}o.setItemLayout(T,{cx:p,cy:g,r0:P,r:I,startAngle:-O*Math.PI/180,endAngle:-F*Math.PI/180,clockwise:O>=F})}}})}function AR(e){var t={};A(e,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=yb(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/a.count(),c=t[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},v=c.stacks;t[l]=c;var h=gb(n);v[h]||c.autoWidthCount++,v[h]=v[h]||{width:0,maxWidth:0};var d=K(n.get("barWidth"),f),p=K(n.get("barMaxWidth"),f),g=n.get("barGap"),y=n.get("barCategoryGap");d&&!v[h].width&&(d=Math.min(c.remainedWidth,d),v[h].width=d,c.remainedWidth-=d),p&&(v[h].maxWidth=p),g!=null&&(c.gap=g),y!=null&&(c.categoryGap=y)});var r={};return A(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=K(n.categoryGap,o),l=K(n.gap,1),u=n.remainedWidth,f=n.autoWidthCount,c=(u-s)/(f+(f-1)*l);c=Math.max(c,0),A(a,function(p,g){var y=p.maxWidth;y&&y<c&&(y=Math.min(y,u),p.width&&(y=Math.min(y,p.width)),u-=y,p.width=y,f--)}),c=(u-s)/(f+(f-1)*l),c=Math.max(c,0);var v=0,h;A(a,function(p,g){p.width||(p.width=c),h=p,v+=p.width*(1+l)}),h&&(v-=h.width*l);var d=-v/2;A(a,function(p,g){r[i][g]=r[i][g]||{offset:d,width:p.width},d+=p.width*(1+l)})}),r}var MR={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},ER={splitNumber:5},LR=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="polar",t}(Vt);function PR(e){cr(lu),Lo.registerAxisPointerClass("PolarAxisPointer",eR),e.registerCoordinateSystem("polar",pR),e.registerComponentModel(nR),e.registerComponentView(LR),ho(e,"angle",iR,MR),ho(e,"radius",aR,ER),e.registerComponentView(_R),e.registerComponentView(CR),e.registerLayout(dt(DR,"bar"))}function IR(e,t){var r=Ao(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new wt({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),e}var OR=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,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}},t}(st);const NR=OR;function mb(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function _b(e){if(!!tt.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var xb=_b(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),RR=_b(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function bb(e,t){if(!e)return t;t=qh(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function kR(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?t?r[t]:r:null}var BR=bb(RR,"transition"),zv=bb(xb,"transform"),FR="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(tt.transform3dSupported?"will-change:transform;":"");function VR(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function zR(e,t,r){if(!$(r)||r==="inside")return"";var n=e.get("backgroundColor"),i=e.get("borderWidth");t=jn(t);var a=VR(r),o=Math.max(Math.round(i)*1.5,6),s="",l=zv+":",u;ct(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+i,v=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),h=Math.round(((v-Math.SQRT2*i)/2+Math.SQRT2*i-(v-c)/2)*100)/100;s+=";"+a+":-"+h+"px";var d=t+" solid "+i+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+p.join("")+'"></div>'}function GR(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,i="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,i+=tt.transformSupported?","+zv+n:",left"+n+",top"+n),BR+":"+i}function ky(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!tt.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=tt.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+zv+":"+o+";":[["top",0],["left",0],[xb,o]]}function $R(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont()),r&&t.push("line-height:"+Math.round(r*3/2)+"px");var i=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),A(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function HR(e,t,r){var n=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),f=e.getModel("textStyle"),c=a1(e,"html"),v=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+v),t&&i&&n.push(GR(i,r)),a&&n.push("background-color:"+a),A(["width","color","radius"],function(h){var d="border-"+h,p=qh(d),g=e.get(p);g!=null&&n.push(d+":"+g+(h==="color"?"":"px"))}),n.push($R(f)),c!=null&&n.push("padding:"+Ao(c).join("px ")+"px"),n.join(";")+";"}function By(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&YS(e,o,document.body,n,i)}else{e[0]=n,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var WR=function(){function e(t,r,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,tt.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=r.getZr(),o=this._appendToBody=n&&n.appendToBody;By(this._styleCoord,a,o,r.getWidth()/2,r.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,f=a.painter.getViewportRoot();Se(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){var r=this._container,n=kR(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative");var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=FR+HR(t,!this._firstShow,this._longHide)+ky(a[0],a[1],!0)+("border-color:"+jn(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if($(a)&&n.get("trigger")==="item"&&!mb(n)&&(s=zR(n,i,a)),$(t))o.innerHTML=t+s;else if(t){o.innerHTML="",V(t)||(t=[t]);for(var l=0;l<t.length;l++)Bi(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},e.prototype.moveTo=function(t,r){var n=this._styleCoord;if(By(n,this._zr,this._appendToBody,t,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=ky(n[0],n[1]);A(a,function(o){i[o[0]]=o[1]})}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){var t=this,r=this.el.style;r.visibility="hidden",r.opacity="0",tt.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(ht(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},e}();const UR=WR;var YR=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),Vy(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,r,n,i,a){var o=this;H(t)&&lt(process.env.NODE_ENV!=="production"?"Passing DOM nodes as content is not supported in richText tooltip!":""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Ot({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:a1(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),A(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),A(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,r=this.el.getBoundingRect(),n=Fy(t.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},e.prototype.moveTo=function(t,r){var n=this.el;if(n){var i=this._styleCoord;Vy(i,this._zr,t,r),t=i[0],r=i[1];var a=n.style,o=Hr(a.borderWidth||0),s=Fy(a);n.x=t+o+s.left,n.y=r+o+s.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(ht(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function Hr(e){return Math.max(0,e)}function Fy(e){var t=Hr(e.shadowBlur||0),r=Hr(e.shadowOffsetX||0),n=Hr(e.shadowOffsetY||0);return{left:Hr(t-r),right:Hr(t+r),top:Hr(t-n),bottom:Hr(t+n)}}function Vy(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}const XR=YR;var qR=new wt({shape:{x:-1,y:-1,width:2,height:2}}),ZR=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){if(!(tt.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=zT(i.get("renderMode"));this._tooltipContent=a==="richText"?new XR(n):new UR(n.getDom(),n,{appendToBody:i.get("appendToBody",!0)})}},t.prototype.render=function(r,n,i){if(!(tt.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?ov(this,"_updatePosition",50,"fixRate"):sl(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");vb("itemTooltip",this._api,ht(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||tt.node||!i.getDom())){var o=zy(a,i);this._ticket="";var s=a.dataByCoordSys,l=JR(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=qR;f.x=a.x,f.y=a.y,f.update(),ut(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var c=db(a,n),v=c.point[0],h=c.point[1];v!=null&&h!=null&&this._tryShow({offsetX:v,offsetY:h,target:c.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(zy(a,i))},t.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(!!u){var f=u.getData(),c=Aa([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(!!a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){this._lastDataByCoordSys=null;var s,l;ka(i,function(u){if(ut(u).dataIndex!=null)return s=u,!0;if(ut(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(r,s,n):l?this._showComponentItemTooltip(r,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=ht(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Aa([n.tooltipOption],a),l=this._renderMode,u=[],f=lo("section",{blocks:[],noHeader:!0}),c=[],v=new nf;A(r,function(m){A(m.dataByAxis,function(_){var x=i.getComponent(_.axisDim+"Axis",_.axisIndex),w=_.value;if(!(!x||w==null)){var b=fb(w,x.axis,i,_.seriesDataIndices,_.valueLabelOpt),S=lo("section",{header:b,noHeader:!He(b),sortBlocks:!0,blocks:[]});f.blocks.push(S),A(_.seriesDataIndices,function(T){var D=i.getSeriesByIndex(T.seriesIndex),M=T.dataIndexInside,C=D.getDataParams(M);if(!(C.dataIndex<0)){C.axisDim=_.axisDim,C.axisIndex=_.axisIndex,C.axisType=_.axisType,C.axisId=_.axisId,C.axisValue=Sv(x.axis,{value:w}),C.axisValueLabel=b,C.marker=v.makeTooltipMarker("item",jn(C.color),l);var E=Op(D.formatTooltip(M,!0,null)),L=E.frag;if(L){var P=Aa([D],a).get("valueFormatter");S.blocks.push(P?k({valueFormatter:P},L):L)}E.text&&c.push(E.text),u.push(C)}})}})}),f.blocks.reverse(),c.reverse();var h=n.position,d=s.get("order"),p=Vp(f,v,l,d,i.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var g=l==="richText"?`
47
47
 
48
- `:"<br/>",y=c.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,v)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=ut(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,v=u.getData(c),h=this._renderMode,d=r.positionDefault,g=Da([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=g.get("trigger");if(!(p!=null&&p!=="item")){var y=u.getDataParams(f,c),m=new nf;y.marker=m.makeTooltipMarker("item",Zn(y.color),h);var _=Ip(u.formatTooltip(f,!1,c)),x=g.get("order"),w=g.get("valueFormatter"),b=_.frag,S=b?Fp(w?k({valueFormatter:w},b):b,m,h,x,a.get("useUTC"),g.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(g,function(){this._showTooltipContent(g,S,y,T,r.offsetX,r.offsetY,r.position,r.target,m)}),i({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=ut(n),o=a.tooltipConfig,s=o.option||{};if($(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(a.componentMainType,a.componentIndex);f&&u.push(f),u.push({formatter:s.content});var c=r.positionDefault,v=Da(u,this._tooltipModel,c?{position:c}:null),h=v.get("content"),d=Math.random()+"",g=new nf;this._showOrMove(v,function(){var p=j(v.get("formatterParams")||{});this._showTooltipContent(v,h,p,d,r.offsetX,r.offsetY,r.position,n,g)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var v=r.get("formatter");l=l||r.get("position");var h=n,d=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),g=d.color;if(v)if($(v)){var p=r.ecModel.get("useUTC"),y=V(i)?i[0]:i,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=v,m&&(h=Co(y.axisValue,h,p)),h=qh(h,i,!0)}else if(X(v)){var _=ht(function(x,w){x===this._ticket&&(c.setContent(w,f,r,g,l),this._updatePosition(r,l,o,s,c,i,u))},this);this._ticket=a,h=v(i,a,_)}else h=v;c.setContent(h,f,r,g,l),c.show(r,g),this._updatePosition(r,l,o,s,c,i,u)}},t.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||V(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!V(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var c=o.getSize(),v=r.get("align"),h=r.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),X(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),V(n))i=K(n[0],u),a=K(n[1],f);else if(H(n)){var g=n;g.width=c[0],g.height=c[1];var p=Er(g,{width:u,height:f});i=p.x,a=p.y,v=null,h=null}else if($(n)&&l){var y=QR(n,d,c,r.get("borderWidth"));i=y[0],a=y[1]}else{var y=jR(i,a,o,u,f,v?null:20,h?null:20);i=y[0],a=y[1]}if(v&&(i-=zy(v)?c[0]/2:v==="right"?c[0]:0),h&&(a-=zy(h)?c[1]/2:h==="bottom"?c[1]:0),yb(r)){var y=KR(i,a,o,u,f);i=y[0],a=y[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&A(i,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&A(u,function(v,h){var d=c[h]||{},g=v.seriesDataIndices||[],p=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&g.length===p.length,o&&A(g,function(y,m){var _=p[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),a&&A(v.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],x=a[m];_&&x&&x.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){tt.node||!n.getDom()||(sl(this,"_updatePosition"),this._tooltipContent.dispose(),Uc("itemTooltip",n))},t.type="tooltip",t}(Vt);function Da(e,t,r){var n=t.ecModel,i;r?(i=new Et(r,n,n),i=new Et(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Et&&(o=o.get("tooltip",!0)),$(o)&&(o={formatter:o}),o&&(i=new Et(o,i,n)))}return i}function Vy(e,t){return e.dispatchAction||ht(t.dispatchAction,t)}function jR(e,t,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(e+l+a+2>n?e-=l+a:e+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[e,t]}function KR(e,t,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function QR(e,t,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,f=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+f/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+f+o;break;case"left":s=t.x-i-o,l=t.y+f/2-a/2;break;case"right":s=t.x+u+o,l=t.y+f/2-a/2}return[s,l]}function zy(e){return e==="center"||e==="middle"}function JR(e,t,r){var n=Th(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=So(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(!!o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=ut(u).tooltipConfig;if(f&&f.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const tk=ZR;function ek(e){cr(lu),e.registerComponentModel(NR),e.registerComponentView(tk),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Yt),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Yt)}var rk=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left: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"}},t}(st),nk=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=nt(r.get("textBaseline"),r.get("textVerticalAlign")),f=new Ot({style:fr(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),v=r.get("subtext"),h=new Ot({style:fr(s,{text:v,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),g=r.get("sublink"),p=r.get("triggerEvent",!0);f.silent=!d&&!p,h.silent=!g&&!p,d&&f.on("click",function(){dp(d,"_"+r.get("target"))}),g&&h.on("click",function(){dp(g,"_"+r.get("subtarget"))}),ut(f).eventData=ut(h).eventData=p?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),v&&a.add(h);var y=a.getBoundingRect(),m=r.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=Er(m,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var x={align:l,verticalAlign:u};f.setStyle(x),h.setStyle(x),y=a.getBoundingRect();var w=_.margin,b=r.getItemStyle(["color","opacity"]);b.fill=r.get("backgroundColor");var S=new wt({shape:{x:y.x-w[3],y:y.y-w[0],width:y.width+w[1]+w[3],height:y.height+w[0]+w[2],r:r.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});a.add(S)}},t.type="title",t}(Vt);function ik(e){e.registerComponentModel(rk),e.registerComponentView(nk)}var ak=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},ok=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},t.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),V(n)&&A(n,function(a,o){$(a)&&(a={type:a}),n[o]=rt(a,ak(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(l){var u=l.name;i.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,v=c.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(v)),v.length?n=n.concat(v):f=!0}else f=!0;f&&wh(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=Q(),s=z(a,function(l){return($(l)||vt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Et(l,this,this.ecModel))},this);this._data=_t(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;A(a,function(o){n[o.get("name")]=!1})}n[r]=!0},t.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},t.prototype.allSelect=function(){var r=this._data,n=this.option.selected;A(r,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;A(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&ct(this._availableNames,r)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",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}},t}(st);const Yc=ok;var wi=dt,Xc=A,_s=Dt,sk=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new _s),this.group.add(this._selectorGroup=new _s),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var f=r.getBoxLayoutParams(),c={width:i.getWidth(),height:i.getHeight()},v=r.get("padding"),h=Er(f,c,v),d=this.layoutInner(r,o,h,a,l,u),g=Er(Y({width:d.width,height:d.height},f),c,v);this.group.x=g.x-d.x,this.group.y=g.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=IR(d,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),f=Q(),c=n.get("selectedMode"),v=[];i.eachRawSeries(function(h){!h.get("legendHoverLink")&&v.push(h.id)}),Xc(n.getData(),function(h,d){var g=h.get("name");if(!this.newlineDisabled&&(g===""||g===`
49
- `)){var p=new _s;p.newline=!0,u.add(p);return}var y=i.getSeriesByName(g)[0];if(!f.get(g)){if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},x=m.getVisual("legendIcon"),w=m.getVisual("style"),b=this._createItem(y,g,d,h,n,r,_,w,x,c,a);b.on("click",wi(Gy,g,null,a,v)).on("mouseover",wi(qc,y.name,null,a,v)).on("mouseout",wi(Zc,y.name,null,a,v)),f.set(g,!0)}else i.eachRawSeries(function(S){if(!f.get(g)&&S.legendVisualProvider){var T=S.legendVisualProvider;if(!T.containName(g))return;var D=T.indexOfName(g),M=T.getItemVisual(D,"style"),C=T.getItemVisual(D,"legendIcon"),E=ge(M.fill);E&&E[3]===0&&(E[3]=.2,M=k(k({},M),{fill:on(E,"rgba")}));var L=this._createItem(S,g,d,h,n,r,{},M,C,c,a);L.on("click",wi(Gy,null,g,a,v)).on("mouseover",wi(qc,null,g,a,v)).on("mouseout",wi(Zc,null,g,a,v)),f.set(g,!0)}},this);process.env.NODE_ENV!=="production"&&(f.get(g)||console.warn(g+" series not exists. Legend data should be same with series name or data name."))}},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();Xc(r,function(u){var f=u.type,c=new Ot({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(c);var v=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);Qi(c,{normal:v,emphasis:h},{defaultText:u.title}),Js(c)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,f,c,v){var h=r.visualDrawType,d=o.get("itemWidth"),g=o.get("itemHeight"),p=o.isSelected(n),y=a.get("symbolRotate"),m=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var x=lk(f,a,l,u,h,p,v),w=new _s,b=a.getModel("textStyle");if(X(r.getLegendIcon)&&(!_||_==="inherit"))w.add(r.getLegendIcon({itemWidth:d,itemHeight:g,icon:f,iconRotate:y,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:m}));else{var S=_==="inherit"&&r.getData().getVisual("symbol")?y==="inherit"?r.getData().getVisual("symbolRotate"):y:0;w.add(uk({itemWidth:d,itemHeight:g,icon:f,iconRotate:S,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,D=s,M=o.get("formatter"),C=n;$(M)&&M?C=M.replace("{name}",n!=null?n:""):X(M)&&(C=M(n));var E=p?b.getTextColor():a.get("inactiveColor");w.add(new Ot({style:fr(b,{text:C,x:T,y:g/2,fill:E,align:D,verticalAlign:"middle"},{inheritColor:E})}));var L=new wt({shape:w.getBoundingRect(),invisible:!0}),P=a.getModel("tooltip");return P.get("show")&&Vh({el:L,componentModel:o,itemName:n,itemTooltipOption:P.option}),w.add(L),w.eachChild(function(I){I.silent=!0}),L.silent=!c,this.getContentGroup().add(w),Js(w),w.__legendDataIndex=i,w},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Ha(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Ha("horizontal",u,r.get("selectorItemGap",!0));var v=u.getBoundingRect(),h=[-v.x,-v.y],d=r.get("selectorButtonGap",!0),g=r.getOrient().index,p=g===0?"width":"height",y=g===0?"height":"width",m=g===0?"y":"x";s==="end"?h[g]+=f[p]+d:c[g]+=v[p]+d,h[1-g]+=f[y]/2-v[y]/2,u.x=h[0],u.y=h[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[p]=f[p]+d+v[p],_[y]=Math.max(f[y],v[y]),_[m]=Math.min(0,v[m]+h[1-g]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Vt);function lk(e,t,r,n,i,a,o){function s(p,y){p.lineWidth==="auto"&&(p.lineWidth=y.lineWidth>0?2:0),Xc(p,function(m,_){p[_]==="inherit"&&(p[_]=y[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=e.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:Ac(c,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var v=t.getModel("lineStyle"),h=v.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!a){var d=t.get("inactiveBorderWidth"),g=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&g?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=v.get("inactiveColor"),h.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function uk(e){var t=e.icon||"roundRect",r=jn(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function Gy(e,t,r,n){Zc(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e!=null?e:t}),qc(e,t,r,n)}function bb(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,i=t.length;n<i&&!(r=t[n].states.emphasis);)n++;return r&&r.hoverLayer}function qc(e,t,r,n){bb(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function Zc(e,t,r,n){bb(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}const Sb=sk;function fk(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(r){for(var n=0;n<t.length;n++)if(!t[n].isSelected(r.name))return!1;return!0})}function Aa(e,t,r){var n={},i=e==="toggleSelected",a;return r.eachComponent("legend",function(o){i&&a!=null?o[a?"select":"unSelect"](t.name):e==="allSelect"||e==="inverseSelect"?o[e]():(o[e](t.name),a=o.isSelected(t.name));var s=o.getData();A(s,function(l){var u=l.get("name");if(!(u===`
50
- `||u==="")){var f=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&f:n[u]=f}})}),e==="allSelect"||e==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function ck(e){e.registerAction("legendToggleSelect","legendselectchanged",dt(Aa,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",dt(Aa,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",dt(Aa,"inverseSelect")),e.registerAction("legendSelect","legendselected",dt(Aa,"select")),e.registerAction("legendUnSelect","legendunselected",dt(Aa,"unSelect"))}function wb(e){e.registerComponentModel(Yc),e.registerComponentView(Sb),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,fk),e.registerSubTypeDefaulter("legend",function(){return"plain"}),ck(e)}var hk=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,i){var a=ql(r);e.prototype.init.call(this,r,n,i),$y(this,r,a)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),$y(this,this.option,r)},t.type="legend.scroll",t.defaultOption=m_(Yc.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}),t}(Yc);function $y(e,t,r){var n=e.getOrient(),i=[1,1];i[n.index]=0,Wi(t,r,{type:"box",ignoreSize:!!i})}const vk=hk;var Hy=Dt,Rf=["width","height"],kf=["x","y"],dk=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new Hy),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Hy)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this;e.prototype.renderInner.call(this,r,n,i,a,o,s,l);var f=this._controllerGroup,c=n.get("pageIconSize",!0),v=V(c)?c:[c,c];d("pagePrev",0);var h=n.getModel("pageTextStyle");f.add(new Ot({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(g,p){var y=g+"DataIndex",m=zl(n.get("pageIcons",!0)[n.getOrient().name][p],{onclick:ht(u._pageGo,u,y,n,a)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});m.name=g,f.add(m)}},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=Rf[u],c=kf[u],v=Rf[1-u],h=kf[1-u];o&&Ha("horizontal",l,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),g=l.getBoundingRect(),p=[-g.x,-g.y],y=j(i);o&&(y[f]=i[f]-g[f]-d);var m=this._layoutContentAndController(r,a,y,u,f,v,h,c);if(o){if(s==="end")p[u]+=m[f]+d;else{var _=g[f]+d;p[u]-=_,m[c]-=_}m[f]+=g[f]+d,p[1-u]+=m[h]+m[v]/2-g[v]/2,m[v]=Math.max(m[v],g[v]),m[h]=Math.min(m[h],g[h]+p[1-u]),l.x=p[0],l.y=p[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,v=this._controllerGroup;Ha(r.get("orient"),f,r.get("itemGap"),a?i.width:null,a?null:i.height),Ha("horizontal",v,r.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),d=v.getBoundingRect(),g=this._showController=h[o]>i[o],p=[-h.x,-h.y];n||(p[a]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=nt(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(g){var x=r.get("pageButtonPosition",!0);x==="end"?m[a]+=i[o]-d[o]:y[a]+=d[o]+_}m[1-a]+=h[s]/2-d[s]/2,f.setPosition(p),c.setPosition(y),v.setPosition(m);var w={x:0,y:0};if(w[o]=g?i[o]:h[o],w[s]=Math.max(h[s],d[s]),w[l]=Math.min(0,d[l]+m[1-a]),c.__rectSize=i[o],g){var b={x:0,y:0};b[o]=Math.max(i[o]-d[o]-_,0),b[s]=w[s],c.setClipPath(new wt({shape:b})),c.__rectSize=b[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var S=this._getPageInfo(r);return S.pageIndex!=null&&Lt(f,{x:S.contentPosition[0],y:S.contentPosition[1]},g?r:null),this._updatePageInfoView(r,S),w},t.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;A(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",v=n[c]!=null,h=i.childOfName(f);h&&(h.setStyle("fill",v?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=v?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",$(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=Rf[o],l=kf[o],u=this._findTargetItemIndex(n),f=i.children(),c=f[u],v=f.length,h=v?1:0,d={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var g=x(c);d.contentPosition[o]=-g.s;for(var p=u+1,y=g,m=g,_=null;p<=v;++p)_=x(f[p]),(!_&&m.e>y.s+a||_&&!w(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var p=u-1,y=g,m=g,_=null;p>=-1;--p)_=x(f[p]),(!_||!w(m,_.s))&&y.i<m.i&&(m=y,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=y.i),++d.pageCount,++d.pageIndex),y=_;return d;function x(b){if(b){var S=b.getBoundingRect(),T=S[l]+b[l];return{s:T,e:T+S[s],i:b.__legendDataIndex}}}function w(b,S){return b.e>=S&&b.s<=S+a}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n!=null?n:a},t.type="legend.scroll",t}(Sb);const pk=dk;function gk(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function yk(e){cr(wb),e.registerComponentModel(vk),e.registerComponentView(pk),gk(e)}function mk(e){cr(wb),cr(yk)}var Wy={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},_k=function(){function e(t){var r=this._condVal=$(t)?new RegExp(t):uh(t)?t:null;if(r==null){var n="";process.env.NODE_ENV!=="production"&&(n=he("Illegal regexp",t,"in")),lt(n)}}return e.prototype.evaluate=function(t){var r=typeof t;return $(r)?this._condVal.test(t):vt(r)?this._condVal.test(t+""):!1},e}(),xk=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),bk=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r<t.length;r++)if(!t[r].evaluate())return!1;return!0},e}(),Sk=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r<t.length;r++)if(t[r].evaluate())return!0;return!1},e}(),wk=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),Tk=function(){function e(){}return e.prototype.evaluate=function(){for(var t=!!this.valueParser,r=this.getValue,n=r(this.valueGetterParam),i=t?this.valueParser(n):null,a=0;a<this.subCondList.length;a++)if(!this.subCondList[a].evaluate(t?i:n))return!1;return!0},e}();function zv(e,t){if(e===!0||e===!1){var r=new xk;return r.value=e,r}var n="";return Tb(e)||(process.env.NODE_ENV!=="production"&&(n=he("Illegal config. Expect a plain object but actually",e)),lt(n)),e.and?Uy("and",e,t):e.or?Uy("or",e,t):e.not?Ck(e,t):Dk(e,t)}function Uy(e,t,r){var n=t[e],i="";process.env.NODE_ENV!=="production"&&(i=he('"and"/"or" condition should only be `'+e+": [...]` and must not be empty array.","Illegal condition:",t)),V(n)||lt(i),n.length||lt(i);var a=e==="and"?new bk:new Sk;return a.children=z(n,function(o){return zv(o,r)}),a.children.length||lt(i),a}function Ck(e,t){var r=e.not,n="";process.env.NODE_ENV!=="production"&&(n=he('"not" condition should only be `not: {}`.',"Illegal condition:",e)),Tb(r)||lt(n);var i=new wk;return i.child=zv(r,t),i.child||lt(n),i}function Dk(e,t){for(var r="",n=t.prepareGetValue(e),i=[],a=mt(e),o=e.parser,s=o?Y_(o):null,l=0;l<a.length;l++){var u=a[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var f=ur(Wy,u)?Wy[u]:u,c=e[u],v=s?s(c):c,h=dM(f,v)||f==="reg"&&new _k(v);h||(process.env.NODE_ENV!=="production"&&(r=he('Illegal relational operation: "'+u+'" in condition:',e)),lt(r)),i.push(h)}}i.length||(process.env.NODE_ENV!=="production"&&(r=he("Relational condition must have at least one operator.","Illegal condition:",e)),lt(r));var d=new Tk;return d.valueGetterParam=n,d.valueParser=s,d.getValue=t.getValue,d.subCondList=i,d}function Tb(e){return H(e)&&!Xt(e)}var Ak=function(){function e(t,r){this._cond=zv(t,r)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function Mk(e,t){return new Ak(e,t)}var Ek={type:"echarts:filter",transform:function(e){for(var t=e.upstream,r,n=Mk(e.config,{valueGetterAttrMap:Q({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;ur(s,"dimension")||(process.env.NODE_ENV!=="production"&&(l=he('Relation condition must has prop "dimension" specified.',"Illegal condition:",s)),lt(l));var f=t.getDimensionInfo(u);return f||(process.env.NODE_ENV!=="production"&&(l=he("Can not find dimension info via: "+u+`.
48
+ `:"<br/>",y=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,v)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=ut(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,v=u.getData(c),h=this._renderMode,d=r.positionDefault,p=Aa([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,c),m=new nf;y.marker=m.makeTooltipMarker("item",jn(y.color),h);var _=Op(u.formatTooltip(f,!1,c)),x=p.get("order"),w=p.get("valueFormatter"),b=_.frag,S=b?Vp(w?k({valueFormatter:w},b):b,m,h,x,a.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,S,y,T,r.offsetX,r.offsetY,r.position,r.target,m)}),i({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=ut(n),o=a.tooltipConfig,s=o.option||{};if($(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(a.componentMainType,a.componentIndex);f&&u.push(f),u.push({formatter:s.content});var c=r.positionDefault,v=Aa(u,this._tooltipModel,c?{position:c}:null),h=v.get("content"),d=Math.random()+"",p=new nf;this._showOrMove(v,function(){var g=j(v.get("formatterParams")||{});this._showTooltipContent(v,h,g,d,r.offsetX,r.offsetY,r.position,n,p)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var v=r.get("formatter");l=l||r.get("position");var h=n,d=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),p=d.color;if(v)if($(v)){var g=r.ecModel.get("useUTC"),y=V(i)?i[0]:i,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=v,m&&(h=Do(y.axisValue,h,g)),h=Zh(h,i,!0)}else if(X(v)){var _=ht(function(x,w){x===this._ticket&&(c.setContent(w,f,r,p,l),this._updatePosition(r,l,o,s,c,i,u))},this);this._ticket=a,h=v(i,a,_)}else h=v;c.setContent(h,f,r,p,l),c.show(r,p),this._updatePosition(r,l,o,s,c,i,u)}},t.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||V(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!V(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var c=o.getSize(),v=r.get("align"),h=r.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),X(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),V(n))i=K(n[0],u),a=K(n[1],f);else if(H(n)){var p=n;p.width=c[0],p.height=c[1];var g=Er(p,{width:u,height:f});i=g.x,a=g.y,v=null,h=null}else if($(n)&&l){var y=QR(n,d,c,r.get("borderWidth"));i=y[0],a=y[1]}else{var y=jR(i,a,o,u,f,v?null:20,h?null:20);i=y[0],a=y[1]}if(v&&(i-=Gy(v)?c[0]/2:v==="right"?c[0]:0),h&&(a-=Gy(h)?c[1]/2:h==="bottom"?c[1]:0),mb(r)){var y=KR(i,a,o,u,f);i=y[0],a=y[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&A(i,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&A(u,function(v,h){var d=c[h]||{},p=v.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&p.length===g.length,o&&A(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),a&&A(v.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],x=a[m];_&&x&&x.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){tt.node||!n.getDom()||(sl(this,"_updatePosition"),this._tooltipContent.dispose(),Uc("itemTooltip",n))},t.type="tooltip",t}(Vt);function Aa(e,t,r){var n=t.ecModel,i;r?(i=new Et(r,n,n),i=new Et(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Et&&(o=o.get("tooltip",!0)),$(o)&&(o={formatter:o}),o&&(i=new Et(o,i,n)))}return i}function zy(e,t){return e.dispatchAction||ht(t.dispatchAction,t)}function jR(e,t,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(e+l+a+2>n?e-=l+a:e+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[e,t]}function KR(e,t,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function QR(e,t,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,f=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+f/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+f+o;break;case"left":s=t.x-i-o,l=t.y+f/2-a/2;break;case"right":s=t.x+u+o,l=t.y+f/2-a/2}return[s,l]}function Gy(e){return e==="center"||e==="middle"}function JR(e,t,r){var n=Ch(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=wo(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(!!o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=ut(u).tooltipConfig;if(f&&f.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const tk=ZR;function ek(e){cr(lu),e.registerComponentModel(NR),e.registerComponentView(tk),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Yt),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Yt)}var rk=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left: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"}},t}(st),nk=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=nt(r.get("textBaseline"),r.get("textVerticalAlign")),f=new Ot({style:fr(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),v=r.get("subtext"),h=new Ot({style:fr(s,{text:v,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),p=r.get("sublink"),g=r.get("triggerEvent",!0);f.silent=!d&&!g,h.silent=!p&&!g,d&&f.on("click",function(){pp(d,"_"+r.get("target"))}),p&&h.on("click",function(){pp(p,"_"+r.get("subtarget"))}),ut(f).eventData=ut(h).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),v&&a.add(h);var y=a.getBoundingRect(),m=r.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=Er(m,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var x={align:l,verticalAlign:u};f.setStyle(x),h.setStyle(x),y=a.getBoundingRect();var w=_.margin,b=r.getItemStyle(["color","opacity"]);b.fill=r.get("backgroundColor");var S=new wt({shape:{x:y.x-w[3],y:y.y-w[0],width:y.width+w[1]+w[3],height:y.height+w[0]+w[2],r:r.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});a.add(S)}},t.type="title",t}(Vt);function ik(e){e.registerComponentModel(rk),e.registerComponentView(nk)}var ak=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},ok=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},t.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),V(n)&&A(n,function(a,o){$(a)&&(a={type:a}),n[o]=rt(a,ak(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(l){var u=l.name;i.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,v=c.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(v)),v.length?n=n.concat(v):f=!0}else f=!0;f&&Th(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=Q(),s=z(a,function(l){return($(l)||vt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Et(l,this,this.ecModel))},this);this._data=_t(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;A(a,function(o){n[o.get("name")]=!1})}n[r]=!0},t.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},t.prototype.allSelect=function(){var r=this._data,n=this.option.selected;A(r,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;A(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&ct(this._availableNames,r)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",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}},t}(st);const Yc=ok;var Ti=dt,Xc=A,xs=Dt,sk=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new xs),this.group.add(this._selectorGroup=new xs),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var f=r.getBoxLayoutParams(),c={width:i.getWidth(),height:i.getHeight()},v=r.get("padding"),h=Er(f,c,v),d=this.layoutInner(r,o,h,a,l,u),p=Er(Y({width:d.width,height:d.height},f),c,v);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=IR(d,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),f=Q(),c=n.get("selectedMode"),v=[];i.eachRawSeries(function(h){!h.get("legendHoverLink")&&v.push(h.id)}),Xc(n.getData(),function(h,d){var p=h.get("name");if(!this.newlineDisabled&&(p===""||p===`
49
+ `)){var g=new xs;g.newline=!0,u.add(g);return}var y=i.getSeriesByName(p)[0];if(!f.get(p)){if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},x=m.getVisual("legendIcon"),w=m.getVisual("style"),b=this._createItem(y,p,d,h,n,r,_,w,x,c,a);b.on("click",Ti($y,p,null,a,v)).on("mouseover",Ti(qc,y.name,null,a,v)).on("mouseout",Ti(Zc,y.name,null,a,v)),f.set(p,!0)}else i.eachRawSeries(function(S){if(!f.get(p)&&S.legendVisualProvider){var T=S.legendVisualProvider;if(!T.containName(p))return;var D=T.indexOfName(p),M=T.getItemVisual(D,"style"),C=T.getItemVisual(D,"legendIcon"),E=ge(M.fill);E&&E[3]===0&&(E[3]=.2,M=k(k({},M),{fill:on(E,"rgba")}));var L=this._createItem(S,p,d,h,n,r,{},M,C,c,a);L.on("click",Ti($y,null,p,a,v)).on("mouseover",Ti(qc,null,p,a,v)).on("mouseout",Ti(Zc,null,p,a,v)),f.set(p,!0)}},this);process.env.NODE_ENV!=="production"&&(f.get(p)||console.warn(p+" series not exists. Legend data should be same with series name or data name."))}},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();Xc(r,function(u){var f=u.type,c=new Ot({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(c);var v=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);Ji(c,{normal:v,emphasis:h},{defaultText:u.title}),Js(c)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,f,c,v){var h=r.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),y=a.get("symbolRotate"),m=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var x=lk(f,a,l,u,h,g,v),w=new xs,b=a.getModel("textStyle");if(X(r.getLegendIcon)&&(!_||_==="inherit"))w.add(r.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:y,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:m}));else{var S=_==="inherit"&&r.getData().getVisual("symbol")?y==="inherit"?r.getData().getVisual("symbolRotate"):y:0;w.add(uk({itemWidth:d,itemHeight:p,icon:f,iconRotate:S,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,D=s,M=o.get("formatter"),C=n;$(M)&&M?C=M.replace("{name}",n!=null?n:""):X(M)&&(C=M(n));var E=g?b.getTextColor():a.get("inactiveColor");w.add(new Ot({style:fr(b,{text:C,x:T,y:p/2,fill:E,align:D,verticalAlign:"middle"},{inheritColor:E})}));var L=new wt({shape:w.getBoundingRect(),invisible:!0}),P=a.getModel("tooltip");return P.get("show")&&zh({el:L,componentModel:o,itemName:n,itemTooltipOption:P.option}),w.add(L),w.eachChild(function(I){I.silent=!0}),L.silent=!c,this.getContentGroup().add(w),Js(w),w.__legendDataIndex=i,w},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Wa(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Wa("horizontal",u,r.get("selectorItemGap",!0));var v=u.getBoundingRect(),h=[-v.x,-v.y],d=r.get("selectorButtonGap",!0),p=r.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?h[p]+=f[g]+d:c[p]+=v[g]+d,h[1-p]+=f[y]/2-v[y]/2,u.x=h[0],u.y=h[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[g]=f[g]+d+v[g],_[y]=Math.max(f[y],v[y]),_[m]=Math.min(0,v[m]+h[1-p]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Vt);function lk(e,t,r,n,i,a,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),Xc(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=e.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:Ac(c,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var v=t.getModel("lineStyle"),h=v.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!a){var d=t.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=v.get("inactiveColor"),h.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function uk(e){var t=e.icon||"roundRect",r=Kn(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function $y(e,t,r,n){Zc(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e!=null?e:t}),qc(e,t,r,n)}function Sb(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,i=t.length;n<i&&!(r=t[n].states.emphasis);)n++;return r&&r.hoverLayer}function qc(e,t,r,n){Sb(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function Zc(e,t,r,n){Sb(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}const wb=sk;function fk(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(r){for(var n=0;n<t.length;n++)if(!t[n].isSelected(r.name))return!1;return!0})}function Ma(e,t,r){var n={},i=e==="toggleSelected",a;return r.eachComponent("legend",function(o){i&&a!=null?o[a?"select":"unSelect"](t.name):e==="allSelect"||e==="inverseSelect"?o[e]():(o[e](t.name),a=o.isSelected(t.name));var s=o.getData();A(s,function(l){var u=l.get("name");if(!(u===`
50
+ `||u==="")){var f=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&f:n[u]=f}})}),e==="allSelect"||e==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function ck(e){e.registerAction("legendToggleSelect","legendselectchanged",dt(Ma,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",dt(Ma,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",dt(Ma,"inverseSelect")),e.registerAction("legendSelect","legendselected",dt(Ma,"select")),e.registerAction("legendUnSelect","legendunselected",dt(Ma,"unSelect"))}function Tb(e){e.registerComponentModel(Yc),e.registerComponentView(wb),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,fk),e.registerSubTypeDefaulter("legend",function(){return"plain"}),ck(e)}var hk=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,i){var a=ql(r);e.prototype.init.call(this,r,n,i),Hy(this,r,a)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),Hy(this,this.option,r)},t.type="legend.scroll",t.defaultOption=__(Yc.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}),t}(Yc);function Hy(e,t,r){var n=e.getOrient(),i=[1,1];i[n.index]=0,Ui(t,r,{type:"box",ignoreSize:!!i})}const vk=hk;var Wy=Dt,Rf=["width","height"],kf=["x","y"],dk=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new Wy),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Wy)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this;e.prototype.renderInner.call(this,r,n,i,a,o,s,l);var f=this._controllerGroup,c=n.get("pageIconSize",!0),v=V(c)?c:[c,c];d("pagePrev",0);var h=n.getModel("pageTextStyle");f.add(new Ot({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var y=p+"DataIndex",m=zl(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:ht(u._pageGo,u,y,n,a)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});m.name=p,f.add(m)}},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=Rf[u],c=kf[u],v=Rf[1-u],h=kf[1-u];o&&Wa("horizontal",l,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],y=j(i);o&&(y[f]=i[f]-p[f]-d);var m=this._layoutContentAndController(r,a,y,u,f,v,h,c);if(o){if(s==="end")g[u]+=m[f]+d;else{var _=p[f]+d;g[u]-=_,m[c]-=_}m[f]+=p[f]+d,g[1-u]+=m[h]+m[v]/2-p[v]/2,m[v]=Math.max(m[v],p[v]),m[h]=Math.min(m[h],p[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,v=this._controllerGroup;Wa(r.get("orient"),f,r.get("itemGap"),a?i.width:null,a?null:i.height),Wa("horizontal",v,r.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),d=v.getBoundingRect(),p=this._showController=h[o]>i[o],g=[-h.x,-h.y];n||(g[a]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=nt(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(p){var x=r.get("pageButtonPosition",!0);x==="end"?m[a]+=i[o]-d[o]:y[a]+=d[o]+_}m[1-a]+=h[s]/2-d[s]/2,f.setPosition(g),c.setPosition(y),v.setPosition(m);var w={x:0,y:0};if(w[o]=p?i[o]:h[o],w[s]=Math.max(h[s],d[s]),w[l]=Math.min(0,d[l]+m[1-a]),c.__rectSize=i[o],p){var b={x:0,y:0};b[o]=Math.max(i[o]-d[o]-_,0),b[s]=w[s],c.setClipPath(new wt({shape:b})),c.__rectSize=b[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var S=this._getPageInfo(r);return S.pageIndex!=null&&Lt(f,{x:S.contentPosition[0],y:S.contentPosition[1]},p?r:null),this._updatePageInfoView(r,S),w},t.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;A(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",v=n[c]!=null,h=i.childOfName(f);h&&(h.setStyle("fill",v?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=v?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",$(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=Rf[o],l=kf[o],u=this._findTargetItemIndex(n),f=i.children(),c=f[u],v=f.length,h=v?1:0,d={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=x(c);d.contentPosition[o]=-p.s;for(var g=u+1,y=p,m=p,_=null;g<=v;++g)_=x(f[g]),(!_&&m.e>y.s+a||_&&!w(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var g=u-1,y=p,m=p,_=null;g>=-1;--g)_=x(f[g]),(!_||!w(m,_.s))&&y.i<m.i&&(m=y,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=y.i),++d.pageCount,++d.pageIndex),y=_;return d;function x(b){if(b){var S=b.getBoundingRect(),T=S[l]+b[l];return{s:T,e:T+S[s],i:b.__legendDataIndex}}}function w(b,S){return b.e>=S&&b.s<=S+a}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n!=null?n:a},t.type="legend.scroll",t}(wb);const pk=dk;function gk(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function yk(e){cr(Tb),e.registerComponentModel(vk),e.registerComponentView(pk),gk(e)}function mk(e){cr(Tb),cr(yk)}var Uy={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},_k=function(){function e(t){var r=this._condVal=$(t)?new RegExp(t):fh(t)?t:null;if(r==null){var n="";process.env.NODE_ENV!=="production"&&(n=he("Illegal regexp",t,"in")),lt(n)}}return e.prototype.evaluate=function(t){var r=typeof t;return $(r)?this._condVal.test(t):vt(r)?this._condVal.test(t+""):!1},e}(),xk=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),bk=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r<t.length;r++)if(!t[r].evaluate())return!1;return!0},e}(),Sk=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r<t.length;r++)if(t[r].evaluate())return!0;return!1},e}(),wk=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),Tk=function(){function e(){}return e.prototype.evaluate=function(){for(var t=!!this.valueParser,r=this.getValue,n=r(this.valueGetterParam),i=t?this.valueParser(n):null,a=0;a<this.subCondList.length;a++)if(!this.subCondList[a].evaluate(t?i:n))return!1;return!0},e}();function Gv(e,t){if(e===!0||e===!1){var r=new xk;return r.value=e,r}var n="";return Cb(e)||(process.env.NODE_ENV!=="production"&&(n=he("Illegal config. Expect a plain object but actually",e)),lt(n)),e.and?Yy("and",e,t):e.or?Yy("or",e,t):e.not?Ck(e,t):Dk(e,t)}function Yy(e,t,r){var n=t[e],i="";process.env.NODE_ENV!=="production"&&(i=he('"and"/"or" condition should only be `'+e+": [...]` and must not be empty array.","Illegal condition:",t)),V(n)||lt(i),n.length||lt(i);var a=e==="and"?new bk:new Sk;return a.children=z(n,function(o){return Gv(o,r)}),a.children.length||lt(i),a}function Ck(e,t){var r=e.not,n="";process.env.NODE_ENV!=="production"&&(n=he('"not" condition should only be `not: {}`.',"Illegal condition:",e)),Cb(r)||lt(n);var i=new wk;return i.child=Gv(r,t),i.child||lt(n),i}function Dk(e,t){for(var r="",n=t.prepareGetValue(e),i=[],a=mt(e),o=e.parser,s=o?X_(o):null,l=0;l<a.length;l++){var u=a[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var f=ur(Uy,u)?Uy[u]:u,c=e[u],v=s?s(c):c,h=dM(f,v)||f==="reg"&&new _k(v);h||(process.env.NODE_ENV!=="production"&&(r=he('Illegal relational operation: "'+u+'" in condition:',e)),lt(r)),i.push(h)}}i.length||(process.env.NODE_ENV!=="production"&&(r=he("Relational condition must have at least one operator.","Illegal condition:",e)),lt(r));var d=new Tk;return d.valueGetterParam=n,d.valueParser=s,d.getValue=t.getValue,d.subCondList=i,d}function Cb(e){return H(e)&&!Xt(e)}var Ak=function(){function e(t,r){this._cond=Gv(t,r)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function Mk(e,t){return new Ak(e,t)}var Ek={type:"echarts:filter",transform:function(e){for(var t=e.upstream,r,n=Mk(e.config,{valueGetterAttrMap:Q({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;ur(s,"dimension")||(process.env.NODE_ENV!=="production"&&(l=he('Relation condition must has prop "dimension" specified.',"Illegal condition:",s)),lt(l));var f=t.getDimensionInfo(u);return f||(process.env.NODE_ENV!=="production"&&(l=he("Can not find dimension info via: "+u+`.
51
51
  `,"Existing dimensions: ",t.cloneAllDimensionInfo(),`.
52
52
  `,"Illegal condition:",s,`.
53
- `)),lt(l)),{dimIdx:f.index}},getValue:function(s){return t.retrieveValueFromItem(r,s.dimIdx)}}),i=[],a=0,o=t.count();a<o;a++)r=t.getRawDataItem(a),n.evaluate()&&i.push(r);return{data:i}}},jc="";process.env.NODE_ENV!=="production"&&(jc=["Valid config is like:",'{ dimension: "age", order: "asc" }','or [{ dimension: "age", order: "asc"], { dimension: "date", order: "desc" }]'].join(" "));var Lk={type:"echarts:sort",transform:function(e){var t=e.upstream,r=e.config,n="",i=St(r);i.length||(process.env.NODE_ENV!=="production"&&(n="Empty `config` in sort transform."),lt(n));var a=[];A(i,function(f){var c=f.dimension,v=f.order,h=f.parser,d=f.incomparable;if(c==null&&(process.env.NODE_ENV!=="production"&&(n='Sort transform config must has "dimension" specified.'+jc),lt(n)),v!=="asc"&&v!=="desc"&&(process.env.NODE_ENV!=="production"&&(n='Sort transform config must has "order" specified.'+jc),lt(n)),d&&d!=="min"&&d!=="max"){var g="";process.env.NODE_ENV!=="production"&&(g='incomparable must be "min" or "max" rather than "'+d+'".'),lt(g)}if(v!=="asc"&&v!=="desc"){var p="";process.env.NODE_ENV!=="production"&&(p='order must be "asc" or "desc" rather than "'+v+'".'),lt(p)}var y=t.getDimensionInfo(c);y||(process.env.NODE_ENV!=="production"&&(n=he("Can not find dimension info via: "+c+`.
53
+ `)),lt(l)),{dimIdx:f.index}},getValue:function(s){return t.retrieveValueFromItem(r,s.dimIdx)}}),i=[],a=0,o=t.count();a<o;a++)r=t.getRawDataItem(a),n.evaluate()&&i.push(r);return{data:i}}},jc="";process.env.NODE_ENV!=="production"&&(jc=["Valid config is like:",'{ dimension: "age", order: "asc" }','or [{ dimension: "age", order: "asc"], { dimension: "date", order: "desc" }]'].join(" "));var Lk={type:"echarts:sort",transform:function(e){var t=e.upstream,r=e.config,n="",i=St(r);i.length||(process.env.NODE_ENV!=="production"&&(n="Empty `config` in sort transform."),lt(n));var a=[];A(i,function(f){var c=f.dimension,v=f.order,h=f.parser,d=f.incomparable;if(c==null&&(process.env.NODE_ENV!=="production"&&(n='Sort transform config must has "dimension" specified.'+jc),lt(n)),v!=="asc"&&v!=="desc"&&(process.env.NODE_ENV!=="production"&&(n='Sort transform config must has "order" specified.'+jc),lt(n)),d&&d!=="min"&&d!=="max"){var p="";process.env.NODE_ENV!=="production"&&(p='incomparable must be "min" or "max" rather than "'+d+'".'),lt(p)}if(v!=="asc"&&v!=="desc"){var g="";process.env.NODE_ENV!=="production"&&(g='order must be "asc" or "desc" rather than "'+v+'".'),lt(g)}var y=t.getDimensionInfo(c);y||(process.env.NODE_ENV!=="production"&&(n=he("Can not find dimension info via: "+c+`.
54
54
  `,"Existing dimensions: ",t.cloneAllDimensionInfo(),`.
55
55
  `,"Illegal config:",f,`.
56
- `)),lt(n));var m=h?Y_(h):null;h&&!m&&(process.env.NODE_ENV!=="production"&&(n=he("Invalid parser name "+h+`.
56
+ `)),lt(n));var m=h?X_(h):null;h&&!m&&(process.env.NODE_ENV!=="production"&&(n=he("Invalid parser name "+h+`.
57
57
  `,"Illegal config:",f,`.
58
- `)),lt(n)),a.push({dimIdx:y.index,parser:m,comparator:new q_(v,d)})});var o=t.sourceFormat;o!==ne&&o!==Be&&(process.env.NODE_ENV!=="production"&&(n='sourceFormat "'+o+'" is not supported yet'),lt(n));for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(f,c){for(var v=0;v<a.length;v++){var h=a[v],d=t.retrieveValueFromItem(f,h.dimIdx),g=t.retrieveValueFromItem(c,h.dimIdx);h.parser&&(d=h.parser(d),g=h.parser(g));var p=h.comparator.evaluate(d,g);if(p!==0)return p}return 0}),{data:s}}};function Pk(e){e.registerTransform(Ek),e.registerTransform(Lk)}var Ik=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.prototype.init=function(r,n,i){e.prototype.init.call(this,r,n,i),this._sourceManager=new Q_(this),kp(this)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),kp(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:sr},t}(st),Ok=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.type="dataset",t}(Vt);function Nk(e){e.registerComponentModel(Ik),e.registerComponentView(Ok)}var tr=Mr.CMD;function Li(e,t){return Math.abs(e-t)<1e-5}function Kc(e){var t=e.data,r=e.len(),n=[],i,a=0,o=0,s=0,l=0;function u(L,P){i&&i.length>2&&n.push(i),i=[L,P]}function f(L,P,I,O){Li(L,I)&&Li(P,O)||i.push(L,P,I,O,I,O)}function c(L,P,I,O,F,N){var B=Math.abs(P-L),G=Math.tan(B/4)*4/3,W=P<L?-1:1,Z=Math.cos(L),et=Math.sin(L),ft=Math.cos(P),At=Math.sin(P),yt=Z*F+I,zt=et*N+O,Gt=ft*F+I,Pt=At*N+O,bt=F*G*W,q=N*G*W;i.push(yt-bt*et,zt+q*Z,Gt+bt*At,Pt-q*ft,Gt,Pt)}for(var v,h,d,g,p=0;p<r;){var y=t[p++],m=p===1;switch(m&&(a=t[p],o=t[p+1],s=a,l=o,(y===tr.L||y===tr.C||y===tr.Q)&&(i=[s,l])),y){case tr.M:a=s=t[p++],o=l=t[p++],u(s,l);break;case tr.L:v=t[p++],h=t[p++],f(a,o,v,h),a=v,o=h;break;case tr.C:i.push(t[p++],t[p++],t[p++],t[p++],a=t[p++],o=t[p++]);break;case tr.Q:v=t[p++],h=t[p++],d=t[p++],g=t[p++],i.push(a+2/3*(v-a),o+2/3*(h-o),d+2/3*(v-d),g+2/3*(h-g),d,g),a=d,o=g;break;case tr.A:var _=t[p++],x=t[p++],w=t[p++],b=t[p++],S=t[p++],T=t[p++]+S;p+=1;var D=!t[p++];v=Math.cos(S)*w+_,h=Math.sin(S)*b+x,m?(s=v,l=h,u(s,l)):f(a,o,v,h),a=Math.cos(T)*w+_,o=Math.sin(T)*b+x;for(var M=(D?-1:1)*Math.PI/2,C=S;D?C>T:C<T;C+=M){var E=D?Math.max(C+M,T):Math.min(C+M,T);c(C,E,_,x,w,b)}break;case tr.R:s=a=t[p++],l=o=t[p++],v=s+t[p++],h=l+t[p++],u(v,l),f(v,l,v,h),f(v,h,s,h),f(s,h,s,l),f(s,l,v,l);break;case tr.Z:i&&f(a,o,s,l),a=s,o=l;break}}return i&&i.length>2&&n.push(i),n}function Qc(e,t,r,n,i,a,o,s,l,u){if(Li(e,r)&&Li(t,n)&&Li(i,o)&&Li(a,s)){l.push(o,s);return}var f=2/u,c=f*f,v=o-e,h=s-t,d=Math.sqrt(v*v+h*h);v/=d,h/=d;var g=r-e,p=n-t,y=i-o,m=a-s,_=g*g+p*p,x=y*y+m*m;if(_<c&&x<c){l.push(o,s);return}var w=v*g+h*p,b=-v*y-h*m,S=_-w*w,T=x-b*b;if(S<c&&w>=0&&T<c&&b>=0){l.push(o,s);return}var D=[],M=[];tn(e,r,i,o,.5,D),tn(t,n,a,s,.5,M),Qc(D[0],M[0],D[1],M[1],D[2],M[2],D[3],M[3],l,u),Qc(D[4],M[4],D[5],M[5],D[6],M[6],D[7],M[7],l,u)}function Rk(e,t){var r=Kc(e),n=[];t=t||1;for(var i=0;i<r.length;i++){var a=r[i],o=[],s=a[0],l=a[1];o.push(s,l);for(var u=2;u<a.length;){var f=a[u++],c=a[u++],v=a[u++],h=a[u++],d=a[u++],g=a[u++];Qc(s,l,f,c,v,h,d,g,o,t),s=d,l=g}n.push(o)}return n}function Cb(e,t,r){var n=e[t],i=e[1-t],a=Math.abs(n/i),o=Math.ceil(Math.sqrt(a*r)),s=Math.floor(r/o);s===0&&(s=1,o=r);for(var l=[],u=0;u<o;u++)l.push(s);var f=o*s,c=r-f;if(c>0)for(var u=0;u<c;u++)l[u%o]+=1;return l}function Yy(e,t,r){for(var n=e.r0,i=e.r,a=e.startAngle,o=e.endAngle,s=Math.abs(o-a),l=s*i,u=i-n,f=l>Math.abs(u),c=Cb([l,u],f?0:1,t),v=(f?s:u)/c.length,h=0;h<c.length;h++)for(var d=(f?u:s)/c[h],g=0;g<c[h];g++){var p={};f?(p.startAngle=a+v*h,p.endAngle=a+v*(h+1),p.r0=n+d*g,p.r=n+d*(g+1)):(p.startAngle=a+d*g,p.endAngle=a+d*(g+1),p.r0=n+v*h,p.r=n+v*(h+1)),p.clockwise=e.clockwise,p.cx=e.cx,p.cy=e.cy,r.push(p)}}function kk(e,t,r){for(var n=e.width,i=e.height,a=n>i,o=Cb([n,i],a?0:1,t),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",f=a?"y":"x",c=e[s]/o.length,v=0;v<o.length;v++)for(var h=e[l]/o[v],d=0;d<o[v];d++){var g={};g[u]=v*c,g[f]=d*h,g[s]=c,g[l]=h,g.x+=e.x,g.y+=e.y,r.push(g)}}function Xy(e,t,r,n){return e*n-r*t}function Bk(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,f=o-i,c=s-a,v=Xy(f,c,l,u);if(Math.abs(v)<1e-6)return null;var h=e-i,d=t-a,g=Xy(h,d,f,c)/v;return g<0||g>1?null:new U(g*l+e,g*u+t)}function Fk(e,t,r){var n=new U;U.sub(n,r,t),n.normalize();var i=new U;U.sub(i,e,t);var a=i.dot(n);return a}function Ti(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function Vk(e,t,r){for(var n=e.length,i=[],a=0;a<n;a++){var o=e[a],s=e[(a+1)%n],l=Bk(o[0],o[1],s[0],s[1],t.x,t.y,r.x,r.y);l&&i.push({projPt:Fk(l,t,r),pt:l,idx:a})}if(i.length<2)return[{points:e},{points:e}];i.sort(function(p,y){return p.projPt-y.projPt});var u=i[0],f=i[i.length-1];if(f.idx<u.idx){var c=u;u=f,f=c}for(var v=[u.pt.x,u.pt.y],h=[f.pt.x,f.pt.y],d=[v],g=[h],a=u.idx+1;a<=f.idx;a++)Ti(d,e[a].slice());Ti(d,h),Ti(d,v);for(var a=f.idx+1;a<=u.idx+n;a++)Ti(g,e[a%n].slice());return Ti(g,v),Ti(g,h),[{points:d},{points:g}]}function qy(e){var t=e.points,r=[],n=[];w0(t,r,n);var i=new it(r[0],r[1],n[0]-r[0],n[1]-r[1]),a=i.width,o=i.height,s=i.x,l=i.y,u=new U,f=new U;return a>o?(u.x=f.x=s+a/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+a),Vk(t,u,f)}function _l(e,t,r,n){if(r===1)n.push(t);else{var i=Math.floor(r/2),a=e(t);_l(e,a[0],i,n),_l(e,a[1],r-i,n)}return n}function zk(e,t){for(var r=[],n=0;n<t;n++)r.push(Lh(e));return r}function Gk(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function $k(e){for(var t=[],r=0;r<e.length;)t.push([e[r++],e[r++]]);return t}function Hk(e,t){var r=[],n=e.shape,i;switch(e.type){case"rect":kk(n,t,r),i=wt;break;case"sector":Yy(n,t,r),i=Ie;break;case"circle":Yy({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},t,r),i=Ie;break;default:var a=e.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=z(Rk(e.getUpdatedPathProxy(),o),function(y){return $k(y)}),l=s.length;if(l===0)_l(qy,{points:s[0]},t,r);else if(l===t)for(var u=0;u<l;u++)r.push({points:s[u]});else{var f=0,c=z(s,function(y){var m=[],_=[];w0(y,m,_);var x=(_[1]-m[1])*(_[0]-m[0]);return f+=x,{poly:y,area:x}});c.sort(function(y,m){return m.area-y.area});for(var v=t,u=0;u<l;u++){var h=c[u];if(v<=0)break;var d=u===l-1?v:Math.ceil(h.area/f*t);d<0||(_l(qy,{points:h.poly},d,r),v-=d)}}i=ii;break}if(!i)return zk(e,t);for(var g=[],u=0;u<r.length;u++){var p=new i;p.setShape(r[u]),Gk(e,p),g.push(p)}return g}function Wk(e,t){var r=e.length,n=t.length;if(r===n)return[e,t];for(var i=[],a=[],o=r<n?e:t,s=Math.min(r,n),l=Math.abs(n-r)/6,u=(s-2)/6,f=Math.ceil(l/u)+1,c=[o[0],o[1]],v=l,h=2;h<s;){var d=o[h-2],g=o[h-1],p=o[h++],y=o[h++],m=o[h++],_=o[h++],x=o[h++],w=o[h++];if(v<=0){c.push(p,y,m,_,x,w);continue}for(var b=Math.min(v,f-1)+1,S=1;S<=b;S++){var T=S/b;tn(d,p,m,x,T,i),tn(g,y,_,w,T,a),d=i[3],g=a[3],c.push(i[1],a[1],i[2],a[2],d,g),p=i[5],y=a[5],m=i[6],_=a[6]}v-=b-1}return o===e?[c,t]:[e,c]}function Zy(e,t){for(var r=e.length,n=e[r-2],i=e[r-1],a=[],o=0;o<t.length;)a[o++]=n,a[o++]=i;return a}function Uk(e,t){for(var r,n,i,a=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],u=t[s],f=void 0,c=void 0;l?u?(r=Wk(l,u),f=r[0],c=r[1],n=f,i=c):(c=Zy(i||l,l),f=l):(f=Zy(n||u,u),c=u),a.push(f),o.push(c)}return[a,o]}function jy(e){for(var t=0,r=0,n=0,i=e.length,a=0,o=i-2;a<i;o=a,a+=2){var s=e[o],l=e[o+1],u=e[a],f=e[a+1],c=s*f-u*l;t+=c,r+=(s+u)*c,n+=(l+f)*c}return t===0?[e[0]||0,e[1]||0]:[r/t/3,n/t/3,t]}function Yk(e,t,r,n){for(var i=(e.length-2)/6,a=1/0,o=0,s=e.length,l=s-2,u=0;u<i;u++){for(var f=u*6,c=0,v=0;v<s;v+=2){var h=v===0?f:(f+v-2)%l+2,d=e[h]-r[0],g=e[h+1]-r[1],p=t[v]-n[0],y=t[v+1]-n[1],m=p-d,_=y-g;c+=m*m+_*_}c<a&&(a=c,o=u)}return o}function Xk(e){for(var t=[],r=e.length,n=0;n<r;n+=2)t[n]=e[r-n-2],t[n+1]=e[r-n-1];return t}function qk(e,t,r,n){for(var i=[],a,o=0;o<e.length;o++){var s=e[o],l=t[o],u=jy(s),f=jy(l);a==null&&(a=u[2]<0!=f[2]<0);var c=[],v=[],h=0,d=1/0,g=[],p=s.length;a&&(s=Xk(s));for(var y=Yk(s,l,u,f)*6,m=p-2,_=0;_<m;_+=2){var x=(y+_)%m+2;c[_+2]=s[x]-u[0],c[_+3]=s[x+1]-u[1]}if(c[0]=s[y]-u[0],c[1]=s[y+1]-u[1],r>0)for(var w=n/r,b=-n/2;b<=n/2;b+=w){for(var S=Math.sin(b),T=Math.cos(b),D=0,_=0;_<s.length;_+=2){var M=c[_],C=c[_+1],E=l[_]-f[0],L=l[_+1]-f[1],P=E*T-L*S,I=E*S+L*T;g[_]=P,g[_+1]=I;var O=P-M,F=I-C;D+=O*O+F*F}if(D<d){d=D,h=b;for(var N=0;N<g.length;N++)v[N]=g[N]}}else for(var B=0;B<p;B+=2)v[B]=l[B]-f[0],v[B+1]=l[B+1]-f[1];i.push({from:c,to:v,fromCp:u,toCp:f,rotation:-h})}return i}function xl(e){return e.__isCombineMorphing}var Db="__mOriginal_";function bl(e,t,r){var n=Db+t,i=e[n]||e[t];e[n]||(e[n]=e[t]);var a=r.replace,o=r.after,s=r.before;e[t]=function(){var l=arguments,u;return s&&s.apply(this,l),a?u=a.apply(this,l):u=i.apply(this,l),o&&o.apply(this,l),u}}function Xa(e,t){var r=Db+t;e[r]&&(e[t]=e[r],e[r]=null)}function Ky(e,t){for(var r=0;r<e.length;r++)for(var n=e[r],i=0;i<n.length;){var a=n[i],o=n[i+1];n[i++]=t[0]*a+t[2]*o+t[4],n[i++]=t[1]*a+t[3]*o+t[5]}}function Ab(e,t){var r=e.getUpdatedPathProxy(),n=t.getUpdatedPathProxy(),i=Uk(Kc(r),Kc(n)),a=i[0],o=i[1],s=e.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&Ky(a,s),l&&Ky(o,l),bl(t,"updateTransform",{replace:u}),t.transform=null;var f=qk(a,o,10,Math.PI),c=[];bl(t,"buildPath",{replace:function(v){for(var h=t.__morphT,d=1-h,g=[],p=0;p<f.length;p++){var y=f[p],m=y.from,_=y.to,x=y.rotation*h,w=y.fromCp,b=y.toCp,S=Math.sin(x),T=Math.cos(x);Ba(g,w,b,h);for(var D=0;D<m.length;D+=2){var M=m[D],C=m[D+1],E=_[D],L=_[D+1],P=M*d+E*h,I=C*d+L*h;c[D]=P*T-I*S+g[0],c[D+1]=P*S+I*T+g[1]}var O=c[0],F=c[1];v.moveTo(O,F);for(var D=2;D<m.length;){var E=c[D++],L=c[D++],N=c[D++],B=c[D++],G=c[D++],W=c[D++];O===E&&F===L&&N===G&&B===W?v.lineTo(G,W):v.bezierCurveTo(E,L,N,B,G,W),O=G,F=W}}}})}function Gv(e,t,r){if(!e||!t)return t;var n=r.done,i=r.during;Ab(e,t),t.__morphT=0;function a(){Xa(t,"buildPath"),Xa(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},Y({during:function(o){t.dirtyShape(),i&&i(o)},done:function(){a(),n&&n()}},r)),t}function Zk(e,t,r,n,i,a){var o=16;e=i===r?0:Math.round(32767*(e-r)/(i-r)),t=a===n?0:Math.round(32767*(t-n)/(a-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var f=0,c=0;(e&u)>0&&(f=1),(t&u)>0&&(c=1),s+=u*u*(3*f^c),c===0&&(f===1&&(e=u-1-e,t=u-1-t),l=e,e=t,t=l)}return s}function Sl(e){var t=1/0,r=1/0,n=-1/0,i=-1/0,a=z(e,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),c=l.y+l.height/2+(u?u[5]:0);return t=Math.min(f,t),r=Math.min(c,r),n=Math.max(f,n),i=Math.max(c,i),[f,c]}),o=z(a,function(s,l){return{cp:s,z:Zk(s[0],s[1],t,r,n,i),path:e[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function Mb(e){return Hk(e.path,e.count)}function Jc(){return{fromIndividuals:[],toIndividuals:[],count:0}}function jk(e,t,r){var n=[];function i(w){for(var b=0;b<w.length;b++){var S=w[b];xl(S)?i(S.childrenRef()):S instanceof ot&&n.push(S)}}i(e);var a=n.length;if(!a)return Jc();var o=r.dividePath||Mb,s=o({path:t,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),Jc();n=Sl(n),s=Sl(s);for(var l=r.done,u=r.during,f=r.individualDelay,c=new _o,v=0;v<a;v++){var h=n[v],d=s[v];d.parent=t,d.copyTransform(c),f||Ab(h,d)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function g(w){for(var b=0;b<s.length;b++)s[b].addSelfToZr(w)}bl(t,"addSelfToZr",{after:function(w){g(w)}}),bl(t,"removeSelfFromZr",{after:function(w){for(var b=0;b<s.length;b++)s[b].removeSelfFromZr(w)}});function p(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,Xa(t,"addSelfToZr"),Xa(t,"removeSelfFromZr")}var y=s.length;if(f)for(var m=y,_=function(){m--,m===0&&(p(),l&&l())},v=0;v<y;v++){var x=f?Y({delay:(r.delay||0)+f(v,y,n[v],s[v]),done:_},r):r;Gv(n[v],s[v],x)}else t.__morphT=0,t.animateTo({__morphT:1},Y({during:function(w){for(var b=0;b<y;b++){var S=s[b];S.__morphT=t.__morphT,S.dirtyShape()}u&&u(w)},done:function(){p();for(var w=0;w<e.length;w++)Xa(e[w],"updateTransform");l&&l()}},r));return t.__zr&&g(t.__zr),{fromIndividuals:n,toIndividuals:s,count:y}}function Kk(e,t,r){var n=t.length,i=[],a=r.dividePath||Mb;function o(h){for(var d=0;d<h.length;d++){var g=h[d];xl(g)?o(g.childrenRef()):g instanceof ot&&i.push(g)}}if(xl(e)){o(e.childrenRef());var s=i.length;if(s<n)for(var l=0,u=s;u<n;u++)i.push(Lh(i[l++%s]));i.length=n}else{i=a({path:e,count:n});for(var f=e.getComputedTransform(),u=0;u<i.length;u++)i[u].setLocalTransform(f);if(i.length!==n)return console.error("Invalid morphing: unmatched splitted path"),Jc()}i=Sl(i),t=Sl(t);for(var c=r.individualDelay,u=0;u<n;u++){var v=c?Y({delay:(r.delay||0)+c(u,n,i[u],t[u])},r):r;Gv(i[u],t[u],v)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}function Qy(e){return V(e[0])}function Jy(e,t){for(var r=[],n=e.length,i=0;i<n;i++)r.push({one:e[i],many:[]});for(var i=0;i<t.length;i++){var a=t[i].length,o=void 0;for(o=0;o<a;o++)r[o%n].many.push(t[i][o])}for(var s=0,i=n-1;i>=0;i--)if(!r[i].many.length){var l=r[s].many;if(l.length<=1)if(s)s=0;else return r;var a=l.length,u=Math.ceil(a/2);r[i].many=l.slice(u,a),r[s].many=l.slice(0,u),s++}return r}var Qk={clone:function(e){for(var t=[],r=1-Math.pow(1-e.path.style.opacity,1/e.count),n=0;n<e.count;n++){var i=Lh(e.path);i.setStyle("opacity",r),t.push(i)}return t},split:null};function Bf(e,t,r,n,i,a){if(!e.length||!t.length)return;var o=kl("update",n,i);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;Qy(e)&&(u=e,f=t),Qy(t)&&(u=t,f=e);function c(y,m,_,x,w){var b=y.many,S=y.one;if(b.length===1&&!w){var T=m?b[0]:S,D=m?S:b[0];if(xl(T))c({many:[T],one:D},!0,_,x,!0);else{var M=s?Y({delay:s(_,x)},l):l;Gv(T,D,M),a(T,D,T,D,M)}}else for(var C=Y({dividePath:Qk[r],individualDelay:s&&function(F,N,B,G){return s(F+_,x)}},l),E=m?jk(b,S,C):Kk(S,b,C),L=E.fromIndividuals,P=E.toIndividuals,I=L.length,O=0;O<I;O++){var M=s?Y({delay:s(O,I)},l):l;a(L[O],P[O],m?b[O]:y.one,m?y.one:b[O],M)}}for(var v=u?u===e:e.length>t.length,h=u?Jy(f,u):Jy(v?t:e,[v?e:t]),d=0,g=0;g<h.length;g++)d+=h[g].many.length;for(var p=0,g=0;g<h.length;g++)c(h[g],v,p,d),p+=h[g].many.length}function Nn(e){if(!e)return[];if(V(e)){for(var t=[],r=0;r<e.length;r++)t.push(Nn(e[r]));return t}var n=[];return e.traverse(function(i){i instanceof ot&&!i.disableMorphing&&!i.invisible&&!i.ignore&&n.push(i)}),n}var Eb=1e4,Jk=xt();function tB(e){for(var t=e.dimensions,r=0;r<t.length;r++){var n=e.getDimensionInfo(t[r]);if(n&&n.otherDims.itemGroupId===0)return t[r]}}function tm(e){var t=[];return A(e,function(r){var n=r.data;if(n.count()>Eb){process.env.NODE_ENV!=="production"&&kt("Universal transition is disabled on large data > 10k.");return}for(var i=n.getIndices(),a=tB(n),o=0;o<i.length;o++)t.push({dataGroupId:r.dataGroupId,data:n,dim:r.dim||a,divide:r.divide,dataIndex:o})}),t}function Ff(e,t,r){e.traverse(function(n){n instanceof ot&&Bt(n,{style:{opacity:0}},t,{dataIndex:r,isFrom:!0})})}function Vf(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function Ci(e){e.stopAnimation(),e.isGroup&&e.traverse(function(t){t.stopAnimation()})}function eB(e,t,r){var n=kl("update",r,t);n&&e.traverse(function(i){if(i instanceof Ki){var a=FD(i);a&&i.animateFrom({style:a},n)}})}function rB(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++){var i=e[n],a=t[n];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function Lb(e,t,r){var n=tm(e),i=tm(t);function a(y,m,_,x,w){(_||y)&&m.animateFrom({style:_&&_!==y?k(k({},_.style),y.style):y.style},w)}function o(y){for(var m=0;m<y.length;m++)if(y[m].dim)return y[m].dim}var s=o(n),l=o(i),u=!1;function f(y,m){return function(_){var x=_.data,w=_.dataIndex;if(m)return x.getId(w);var b=_.dataGroupId,S=y?s||l:l||s,T=S&&x.getDimensionInfo(S),D=T&&T.ordinalMeta;if(T){var M=x.get(T.name,w);return D&&D.categories[M]||M+""}var C=x.getRawDataItem(w);return C&&C.groupId?C.groupId+"":b||x.getId(w)}}var c=rB(n,i),v={};if(!c)for(var h=0;h<i.length;h++){var d=i[h],g=d.data.getItemGraphicEl(d.dataIndex);g&&(v[g.id]=!0)}function p(y,m){var _=n[m],x=i[y],w=x.data.hostModel,b=_.data.getItemGraphicEl(_.dataIndex),S=x.data.getItemGraphicEl(x.dataIndex);if(b===S){S&&eB(S,x.dataIndex,w);return}b&&v[b.id]||S&&(Ci(S),b?(Ci(b),Vf(b),u=!0,Bf(Nn(b),Nn(S),x.divide,w,y,a)):Ff(S,w,y))}new gl(n,i,f(!0,c),f(!1,c),null,"multiple").update(p).updateManyToOne(function(y,m){var _=i[y],x=_.data,w=x.hostModel,b=x.getItemGraphicEl(_.dataIndex),S=_t(z(m,function(T){return n[T].data.getItemGraphicEl(n[T].dataIndex)}),function(T){return T&&T!==b&&!v[T.id]});b&&(Ci(b),S.length?(A(S,function(T){Ci(T),Vf(T)}),u=!0,Bf(Nn(S),Nn(b),_.divide,w,y,a)):Ff(b,w,_.dataIndex))}).updateOneToMany(function(y,m){var _=n[m],x=_.data.getItemGraphicEl(_.dataIndex);if(!(x&&v[x.id])){var w=_t(z(y,function(S){return i[S].data.getItemGraphicEl(i[S].dataIndex)}),function(S){return S&&S!==x}),b=i[y[0]].data.hostModel;w.length&&(A(w,function(S){return Ci(S)}),x?(Ci(x),Vf(x),u=!0,Bf(Nn(x),Nn(w),_.divide,b,y[0],a)):A(w,function(S){return Ff(S,b,y[0])}))}}).updateManyToMany(function(y,m){new gl(m,y,function(_){return n[_].data.getId(n[_].dataIndex)},function(_){return i[_].data.getId(i[_].dataIndex)}).update(function(_,x){p(y[_],m[x])}).execute()}).execute(),u&&A(t,function(y){var m=y.data,_=m.hostModel,x=_&&r.getViewOfSeriesModel(_),w=kl("update",_,0);x&&_.isAnimationEnabled()&&w&&w.duration>0&&x.group.traverse(function(b){b instanceof ot&&!b.animators.length&&b.animateFrom({style:{opacity:0}},w)})})}function em(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function rm(e){return V(e)?e.sort().join(","):e}function Wr(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function nB(e,t){var r=Q(),n=Q(),i=Q();A(e.oldSeries,function(o,s){var l=e.oldDataGroupIds[s],u=e.oldData[s],f=em(o),c=rm(f);n.set(c,{dataGroupId:l,data:u}),V(f)&&A(f,function(v){i.set(v,{key:c,dataGroupId:l,data:u})})});function a(o){r.get(o)&&kt("Duplicated seriesKey in universalTransition "+o)}return A(t.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var s=o.get("dataGroupId"),l=o.getData(),u=em(o),f=rm(u),c=n.get(f);if(c)process.env.NODE_ENV!=="production"&&a(f),r.set(f,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Wr(c.data),data:c.data}],newSeries:[{dataGroupId:s,divide:Wr(l),data:l}]});else if(V(u)){process.env.NODE_ENV!=="production"&&a(f);var v=[];A(u,function(g){var p=n.get(g);p.data&&v.push({dataGroupId:p.dataGroupId,divide:Wr(p.data),data:p.data})}),v.length&&r.set(f,{oldSeries:v,newSeries:[{dataGroupId:s,data:l,divide:Wr(l)}]})}else{var h=i.get(u);if(h){var d=r.get(h.key);d||(d={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:Wr(h.data)}],newSeries:[]},r.set(h.key,d)),d.newSeries.push({dataGroupId:s,data:l,divide:Wr(l)})}}}}),r}function nm(e,t){for(var r=0;r<e.length;r++){var n=t.seriesIndex!=null&&t.seriesIndex===e[r].seriesIndex||t.seriesId!=null&&t.seriesId===e[r].id;if(n)return r}}function iB(e,t,r,n){var i=[],a=[];A(St(e.from),function(o){var s=nm(t.oldSeries,o);s>=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Wr(t.oldData[s]),dim:o.dimension})}),A(St(e.to),function(o){var s=nm(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Wr(l),dim:o.dimension})}}),i.length>0&&a.length>0&&Lb(i,a,n)}function aB(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){A(St(n.seriesTransition),function(i){A(St(i.to),function(a){for(var o=n.updatedSeries,s=0;s<o.length;s++)(a.seriesIndex!=null&&a.seriesIndex===o[s].seriesIndex||a.seriesId!=null&&a.seriesId===o[s].id)&&(o[s][Ns]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(t,r,n){var i=Jk(r);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var a=n.seriesTransition;if(a)A(St(a),function(h){iB(h,i,n,r)});else{var o=nB(i,n);A(o.keys(),function(h){var d=o.get(h);Lb(d.oldSeries,d.newSeries,r)})}A(n.updatedSeries,function(h){h[Ns]&&(h[Ns]=!1)})}for(var s=t.getSeries(),l=i.oldSeries=[],u=i.oldDataGroupIds=[],f=i.oldData=[],c=0;c<s.length;c++){var v=s[c].getData();v.count()<Eb&&(l.push(s[c]),u.push(s[c].get("dataGroupId")),f.push(v))}})}function im(e,t,r){var n=Tr.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",e)),n.width=i*r,n.height=a*r,n}var oB=function(e){R(t,e);function t(r,n,i){var a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||Ys,typeof r=="string"?o=im(r,n,i):H(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(ch(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=im("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new it(0,0,0,0);function f(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var _=new it(0,0,0,0);_.copy(m),o.push(_)}else{for(var x=!1,w=1/0,b=0,S=0;S<o.length;++S){var T=o[S];if(T.intersect(m)){var D=new it(0,0,0,0);D.copy(T),D.union(m),o[S]=D,x=!0;break}else if(l){u.copy(m),u.union(T);var M=m.width*m.height,C=T.width*T.height,E=u.width*u.height,L=E-M-C;L<w&&(w=L,b=S)}}if(l&&(o[b].union(m),x=!0),!x){var _=new it(0,0,0,0);_.copy(m),o.push(_)}l||(l=o.length>=s)}}for(var c=this.__startIndex;c<this.__endIndex;++c){var v=r[c];if(v){var h=v.shouldBePainted(i,a,!0,!0),d=v.__isRendered&&(v.__dirty&pe||!h)?v.getPrevPaintRect():null;d&&f(d);var g=h&&(v.__dirty&pe||!v.__isRendered)?v.getPaintRect():null;g&&f(g)}}for(var c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var v=n[c],h=v.shouldBePainted(i,a,!0,!0);if(v&&(!h||!v.__zr)&&v.__isRendered){var d=v.getPrevPaintRect();d&&f(d)}}var p;do{p=!1;for(var c=0;c<o.length;){if(o[c].isZero()){o.splice(c,1);continue}for(var y=c+1;y<o.length;)o[c].intersect(o[y])?(p=!0,o[c].union(o[y]),o.splice(y,1)):y++;c++}}while(p);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),a.width=r*i,a.height=n*i,s&&(s.width=r*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(r,n,i){var a=this.dom,o=this.ctx,s=a.width,l=a.height;n=n||this.clearColor;var u=this.motionBlur&&!r,f=this.lastFrameAlpha,c=this.dpr,v=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/c,l/c));var h=this.domBack;function d(g,p,y,m){if(o.clearRect(g,p,y,m),n&&n!=="transparent"){var _=void 0;if(po(n)){var x=n.global||n.__width===y&&n.__height===m;_=x&&n.__canvasGradient||Cc(o,n,{x:0,y:0,width:y,height:m}),n.__canvasGradient=_,n.__width=y,n.__height=m}else wm(n)&&(n.scaleX=n.scaleX||c,n.scaleY=n.scaleY||c,_=Dc(o,n,{dirty:function(){v.setUnpainted(),v.__painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(g,p,y,m),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(h,g,p,y,m),o.restore())}!i||u?d(0,0,s,l):i.length&&A(i,function(g){d(g.x*c,g.y*c,g.width*c,g.height*c)})},t}(qe);const zf=oB;var am=1e5,In=314159,xs=.01,sB=.001;function lB(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function uB(e,t){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var fB=function(){function e(t,r,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=k({},n||{}),this.dpr=n.devicePixelRatio||Ys,this._singleCanvas=a,this.root=t;var o=t.style;o&&(ch(t),t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var f=t,c=f.width,v=f.height;n.width!=null&&(c=n.width),n.height!=null&&(v=n.height),this.dpr=n.devicePixelRatio||1,f.width=c*this.dpr,f.height=v*this.dpr,this._width=c,this._height=v;var h=new zf(f,this,this.dpr);h.__builtin__=!0,h.initContext(),l[In]=h,h.zlevel=In,s.push(In),this._domRoot=t}else{this._width=ts(t,0,n),this._height=ts(t,1,n);var u=this._domRoot=uB(this._width,this._height);t.appendChild(u)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,t,this._redrawId);for(var a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=a===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var r=t.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<r;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(am)),a||(a=n.ctx,a.save()),Vn(a,s,i,o===r-1))}a&&a.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(am)},e.prototype.paintOne=function(t,r){ov(t,r)},e.prototype._paintList=function(t,r,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,r,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;Xf(function(){l._paintList(t,r,n,i)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(In).ctx,r=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,r,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,r,n)})},e.prototype._doPaintList=function(t,r,n){for(var i=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&a.push(u)}for(var f=!0,c=!1,v=function(g){var p=a[g],y=p.ctx,m=o&&p.createRepaintRects(t,r,h._width,h._height),_=n?p.__startIndex:p.__drawIndex,x=!n&&p.incremental&&Date.now,w=x&&Date.now(),b=p.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(p.__startIndex===p.__endIndex)p.clear(!1,b,m);else if(_===p.__startIndex){var S=t[_];(!S.incremental||!S.notClear||n)&&p.clear(!1,b,m)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=p.__startIndex);var T,D=function(L){var P={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(T=_;T<p.__endIndex;T++){var I=t[T];if(I.__inHover&&(c=!0),i._doPaintEl(I,p,o,L,P,T===p.__endIndex-1),x){var O=Date.now()-w;if(O>15)break}}P.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=p.__endIndex;else for(var M=h.dpr,C=0;C<m.length;++C){var E=m[C];y.save(),y.beginPath(),y.rect(E.x*M,E.y*M,E.width*M,E.height*M),y.clip(),D(E),y.restore()}else y.save(),D(),y.restore();p.__drawIndex=T,p.__drawIndex<p.__endIndex&&(f=!1)},h=this,d=0;d<a.length;d++)v(d);return tt.wxa&&A(this._layers,function(g){g&&g.ctx&&g.ctx.draw&&g.ctx.draw()}),{finished:f,needsRefreshHover:c}},e.prototype._doPaintEl=function(t,r,n,i,a,o){var s=r.ctx;if(n){var l=t.getPaintRect();(!i||l&&l.intersect(i))&&(Vn(s,t,a,o),t.setPrevPaintRect(l))}else Vn(s,t,a,o)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=In);var n=this._layers[t];return n||(n=new zf("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?rt(n,this._layerConfig[t],!0):this._layerConfig[t-xs]&&rt(n,this._layerConfig[t-xs],!0),r&&(n.virtual=r),this.insertLayer(t,n),n.initContext()),n},e.prototype.insertLayer=function(t,r){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,l=-1;if(n[t]){process.env.NODE_ENV!=="production"&&jr("ZLevel "+t+" has been used already");return}if(!lB(r)){process.env.NODE_ENV!=="production"&&jr("Layer of zlevel "+t+" is not valid");return}if(a>0&&t>i[0]){for(l=0;l<a-1&&!(i[l]<t&&i[l+1]>t);l++);s=n[i[l]]}if(i.splice(l+1,0,t),n[t]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.__painter=this},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i];t.call(r,this._layers[a],a)}},e.prototype.eachBuiltinLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&t.call(r,o,a)}},e.prototype.eachOtherLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||t.call(r,o,a)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(c,v){c.__dirty=c.__used=!1});function r(c){a&&(a.__endIndex!==c&&(a.__dirty=!0),a.__endIndex=c)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,l;for(l=0;l<t.length;l++){var i=t[l],u=i.zlevel,f=void 0;s!==u&&(s=u,o=0),i.incremental?(f=this.getLayer(u+sB,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?xs:0),this._needsManuallyCompositing),f.__builtin__||jr("ZLevel "+u+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,r(l),a=f),i.__dirty&pe&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(c,v){!c.__used&&c.getElementCount()>0&&(c.__dirty=!0,c.__startIndex=c.__endIndex=c.__drawIndex=0),c.__dirty&&c.__drawIndex<0&&(c.__drawIndex=c.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,A(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?rt(n[t],r,!0):n[t]=r;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===t||a===t+xs){var o=this._layers[a];rt(o,n[t],!0)}}}},e.prototype.delLayer=function(t){var r=this._layers,n=this._zlevelList,i=r[t];!i||(i.dom.parentNode.removeChild(i.dom),delete r[t],n.splice(ct(n,t),1))},e.prototype.resize=function(t,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;if(t!=null&&(i.width=t),r!=null&&(i.height=r),t=ts(a,0,i),r=ts(a,1,i),n.style.display="",this._width!==t||r!==this._height){n.style.width=t+"px",n.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,r);this.refresh(!0)}this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this.getLayer(In).resize(t,r)}return this},e.prototype.clearLayer=function(t){var r=this._layers[t];r&&r.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[In].dom;var r=new zf("image",this,t.pixelRatio||this.dpr);r.initContext(),r.clear(!1,t.backgroundColor||this._backgroundColor);var n=r.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=r.dom.width,a=r.dom.height;this.eachLayer(function(c){c.__builtin__?n.drawImage(c.dom,0,0,i,a):c.renderToCanvas&&(n.save(),c.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];Vn(n,f,o,l===u-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();const cB=fB;function hB(e){e.registerPainter("canvas",cB)}cr([ik,ek,KN,Nk,Pk,mk,PR,lu,DN,dO,f2,YI,w2,EO,mI,aB,hB]);function vB(e,t,r){let n=new Map;return e.forEach((a,o)=>{n.set(a.id,dB(a.operation.list))}),{rich:Object.fromEntries(n),formatter:a=>pB(a,e,t,r)}}function dB(e){let t={};return e.forEach(r=>{r.rules==="1"?Object.assign(t,{color:r.val?r.val:"#333"}):r.rules==="2"?Object.assign(t,{fontSize:r.val+"px"}):r.rules==="3"&&Object.assign(t,{fontWeight:r.val})}),t}function pB(e,t,r,n){const i=r.formatter?r.formatter:"",a=r.transKeyPrefix?n(r.transKeyPrefix,r.prefix):"";let o="";for(let l=0;l<t.length;l++){let u=[];t[l].condition.list.forEach(c=>{const v=Pb(c.val),h=r.bei===0?0:r.bei===100?v.l-2:v.l-3,d=Bs(Number(c.val)*r.bei,h);let g=gB({data:Object.assign({...c},{val:d}),val:e.data});u.push(g)}),yB(u,t[l])&&o===""&&(o=t[l].id)}return o!==""?`{${o}|${a} ${e.data} ${i}}`:`${a} ${e.data} ${i}`}function gB(e){switch(e.data.rules){case"1":return om(e);case"2":return om(e);case"7":return bs(e);case"8":return bs(e);case"9":return bs(e);case"10":return bs(e)}}function om({data:e,val:t}){if(t===""||t===void 0)return!1;let r=Number(t),n=Number(e.val);return e.rules==="1"?r===n:r!==n}function bs({data:e,val:t}){if(t===""||t===void 0)return!1;let r=sm("inputnumber",{val:t}),n=sm("inputnumber",e);if(e.rules==="7")return r>n;if(e.rules==="8")return r>=n;if(e.rules==="9")return r<n;if(e.rules==="10")return r<=n}function sm(e="inputnumber",t){let r=0;return e==="inputnumber"?r=Number(t.val):r=new Date(String(t.val)).getTime(),r}function yB(e,t){let r=t.condition.list.length;if(r===0)return!0;let n=r===0?"1":t.condition.list[r-1].type,i=mB(e,n);return n==="2"&&!i?!0:!!(n!=="2"&&i)}function mB(e,t){return t==="2"?e.every((r,n,i)=>!r):e.every((r,n,i)=>!!r)}function Pb(e){const t=String(e),r=t.substr(t.lastIndexOf(".")+1).toLowerCase();let n=1;for(let i=0;i<r.length;i++)n*=10;return{n,l:r.length}}function Bs(e,t){const r=10**t;return Math.round(e*r)/r}const _B={props:{develop:{type:[Number,String],default:1},color:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})},ruleList:{type:Array,default:()=>[]}},data(){return{}},methods:{init(e){let t=Lr.init(this.$refs.container),r=this.getOption(e);t.clear(),t.dispose(),t=Lr.init(this.$refs.container),t.setOption(r),t.on("click",n=>{this.$emit("change",n)})},getOption(e){let t=[],r=[],n=[],i=[];const a=e.series.filter(h=>h.type==="bar")[0];e.columns.forEach(h=>{t.push({type:"category",data:h.data,axisPointer:{type:a===void 0?"line":"shadow"},axisTick:{alignWithLabel:!1},axisLine:{onZero:!1,lineStyle:{color:this.options.labelLineColor}},axisLabel:{interval:0,rotate:h.rotate!==void 0?h.rotate:this.options.labelRotate,fontSize:h.fontSize!==void 0?h.fontSize:this.options.labelFontSize,color:h.color!==void 0?h.color:this.options.xAxisLabelColor},offset:h.offset,position:h.position})}),e.data.forEach((h,d)=>{this.$i18nt(h.item.transKey,h.item.name);let g={type:"value",axisLine:{show:!0,lineStyle:{color:this.options.labelLineColor}},axisLabel:{formatter:h.formatter?`{value} ${h.formatter}`:"{value}",color:this.options.labelFontColor}};h.max!==void 0&&Object.assign(g,{max:h.max}),h.min!==void 0&&Object.assign(g,{min:h.min}),e.data.length!==1&&Object.assign(g,{position:d===0?"left":"right",alignTicks:!0,show:d<2,axisLabel:{formatter:h.formatter?`{value} ${h.formatter}`:"{value}"}}),r.push(g)});const s=e.series.filter(h=>{const d=h.item.columnName?h.item.columnName:"",g=e.series[0].columnName?e.series[0].columnName:"";return d===g}).length===e.series.length;e.series.forEach((h,d)=>{let g=this.$i18nt(h.item.transKey,h.item.name);h.item.transkeyDict&&(g+=` (${this.$i18nt(h.item.transkeyDict,h.item.transkeyName)})`);let p={label:{show:h.tooltip?this.options.labelShow:h.tooltip,position:this.options.labelTextPosition,textStyle:{fontSize:this.options.textFontSize,color:this.options.textFontColor}},color:_=>e.type===1?this.color[_.dataIndex]:this.color[d]};this.ruleList.length>0&&(p=this.getNormal(p,h)),(e.data.length!==1||e.type===2)&&h.item.name&&i.push(g);let y={type:h.type,name:g,emphasis:{focus:this.options.emphasisFocus},data:h.data.map(_=>{if(h.bei===1)return Bs(_,this.options.numericalPrecision).toFixed(this.options.numericalPrecision);const x=Pb(_),w=h.bei===100?x.l-2:x.l-3,b=Bs(Number(_)*h.bei,w);return Bs(b,this.options.numericalPrecision).toFixed(this.options.numericalPrecision)}),tooltip:{show:h.tooltip,valueFormatter:_=>{const x=h.formatter?h.formatter:"";return`${h.transKeyPrefix?this.$i18nt(h.transKeyPrefix,h.prefix):""} ${_} ${x}`}},itemStyle:e.data.length===1?{normal:p}:{normal:Object.assign({...p},{color:this.color[d]})}};const m=this.options.overlayStack?{stack:h.stack?h.stack:"Total"}:{};e.type===1&&Object.assign(y,{yAxisIndex:s||m.stack!==void 0?0:d}),h.type==="line"&&Object.assign(y,{smooth:this.options.smooth,showSymbol:this.options.showSymbol,lineStyle:{width:this.options.lineStyleWidth}}),n.push(Object.assign(y,m))});let l={containLabel:!0};this.options.gridPosition.forEach((h,d)=>{h!==""&&d===0?Object.assign(l,{top:h}):h!==""&&d===1?Object.assign(l,{right:h}):h!==""&&d===2?Object.assign(l,{bottom:h}):h!==""&&d===3&&Object.assign(l,{left:h})});let u={data:i,type:"scroll",textStyle:{color:this.options.legendTextColor},orient:this.options.legendOrient};this.options.legendPosition.forEach((h,d)=>{h!==""&&d===0?Object.assign(u,{top:h}):h!==""&&d===1?Object.assign(u,{right:h}):h!==""&&d===2?Object.assign(u,{bottom:h}):h!==""&&d===3&&Object.assign(u,{left:h})}),a===void 0&&this.options.areaStyleStack&&(t.forEach((h,d)=>{t[d]=Object.assign(h,{boundaryGap:!1})}),n.forEach((h,d)=>{n[d]=Object.assign(h,{areaStyle:{}})}));const f=Math.ceil(n.length/this.color.length);let c=[];for(let h=0;h<f;h++)c=c.concat(this.color);return{color:c,tooltip:{trigger:"axis",axisPointer:{type:a===void 0?"cross":"shadow"}},grid:l,legend:u,xAxis:t,yAxis:r,series:n}},getNormal(e,t){const r=`${t.columnName}&${t.mode}`,n=this.ruleList.filter(a=>`${a.columnName}&${a.mode}`===r)[0];if(!n)return e;let i=vB(n.ruleSequence,t,this.$i18nt);return Object.assign({...e},{label:Object.assign({...e.label},i)})}}};var xB=function(){var t=this,r=t._self._c;return r("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},bB=[],SB=ri(_B,xB,bB,!1,null,"d087f652",null,null);const lm=SB.exports;const wB={props:{develop:{type:[Number,String],default:1},color:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})}},data(){return{}},methods:{init(e){let t=Lr.init(this.$refs.container),r=this.getOption(e);t.clear(),t.dispose(),t=Lr.init(this.$refs.container),t.setOption(r),t.on("click",n=>{this.$emit("change",n)})},getOption(e){let t=0,r=e.data[0].dataName;r.forEach((a,o)=>{t+=Number(a.value),r[o].order=a.value}),r=[...zs(r)];let n={data:e.columns[0].data,type:"scroll",textStyle:{color:this.options.legendTextColor},orient:this.options.legendOrient};return this.options.legendPosition.forEach((a,o)=>{a!==""&&o===0?Object.assign(n,{top:a}):a!==""&&o===1?Object.assign(n,{right:a}):a!==""&&o===2?Object.assign(n,{bottom:a}):a!==""&&o===3&&Object.assign(n,{left:a})}),{tooltip:{trigger:"item",formatter:function(a){return a.data.name+":\r"+a.data.values}},color:this.color,legend:n,series:[{type:"funnel",left:"10%",top:50,bottom:50,width:"76%",min:0,max:100,minSize:"10%",maxSize:"90%",sort:"descending",gap:1,label:{show:this.options.labelShow,fontSize:this.options.textFontSize,formatter:function(a){return a.data.name+":\r"+a.data.values+`
59
- `+a.data.percentage+"%"}},labelLine:{length:10,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{fontSize:15}},data:r.map((a,o)=>{const s=a.value;return Object.assign({...a},{values:Tl(s,this.options.numericalPrecision).toFixed(this.options.numericalPrecision),percentage:t===0?"0":(Number(s)/t*1e4).toFixed(0)/100,value:(1/r.length*(o+1)*100).toFixed(0)})})}]}}}};var TB=function(){var t=this,r=t._self._c;return r("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},CB=[],DB=ri(wB,TB,CB,!1,null,"82e80ff7",null,null);const AB=DB.exports;const MB={props:{develop:{type:[Number,String],default:1},color:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})}},data(){return{}},methods:{init(e){let t=Lr.init(this.$refs.container),r=this.getOption(e);t.clear(),t.dispose(),t=Lr.init(this.$refs.container),t.setOption(r),t.on("click",n=>{this.$emit("change",n)})},getOption(e){let t=[],r=[],n=[],i=[];const a=this.options.areaStyleStack?{boundaryGap:!1}:{};e.columns.forEach(u=>{t.push(Object.assign({type:"category",data:u.data,axisPointer:{type:"line"},axisTick:{alignWithLabel:!0},axisLabel:{interval:0,rotate:this.options.labelRotate,fontSize:this.options.labelFontSize,color:this.options.xAxisLabelColor}},a))}),this.options.labelShow,this.options.labelTextPosition,this.options.textFontSize,this.options.textFontColor,e.data.forEach((u,f)=>{let c={type:"value",axisLine:{show:!0,lineStyle:{color:this.options.labelLineColor}},axisLabel:{formatter:"{value}",color:this.options.labelFontColor}},v=this.$i18nt(u.item.transKey,u.item.name);u.item.transkeyDict&&(v+=` (${this.$i18nt(u.item.transkeyDict,u.item.transkeyName)})`),e.data.length!==1&&(i.push(v),Object.assign(c,{name:v,position:f===0?"left":"right",alignTicks:!0,show:f<2})),r.push(c);let h=this.options.overlayStack?{stack:"Total"}:{};this.options.areaStyleStack&&Object.assign(h,{areaStyle:{}}),n.push(Object.assign({emphasis:{focus:this.options.emphasisFocus},type:u.type,name:v,data:u.data.map(d=>Tl(d,this.options.numericalPrecision).toFixed(this.options.numericalPrecision)),smooth:this.options.smooth,showSymbol:this.options.showSymbol,lineStyle:{width:this.options.lineStyleWidth},normal:{label:{show:this.options.labelShow,position:this.options.labelTextPosition,textStyle:{fontSize:this.options.textFontSize,color:this.options.textFontColor}}}},h))});let o={containLabel:!0};this.options.gridPosition.forEach((u,f)=>{u!==""&&f===0?Object.assign(o,{top:u}):u!==""&&f===1?Object.assign(o,{right:u}):u!==""&&f===2?Object.assign(o,{bottom:u}):u!==""&&f===3&&Object.assign(o,{left:u})});let s={data:i,type:"scroll",textStyle:{color:this.options.legendTextColor},orient:this.options.legendOrient};return this.options.legendPosition.forEach((u,f)=>{u!==""&&f===0?Object.assign(s,{top:u}):u!==""&&f===1?Object.assign(s,{right:u}):u!==""&&f===2?Object.assign(s,{bottom:u}):u!==""&&f===3&&Object.assign(s,{left:u})}),{color:this.color,tooltip:{trigger:"axis",axisPointer:{type:"cross"}},grid:o,legend:s,xAxis:t,yAxis:r,series:n}}}};var EB=function(){var t=this,r=t._self._c;return r("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},LB=[],PB=ri(MB,EB,LB,!1,null,"1e3a2a03",null,null);const IB=PB.exports;const OB={props:{develop:{type:[Number,String],default:1},color:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})}},data(){return{}},methods:{init(e){let t=Lr.init(this.$refs.container),r=this.getOption(e);t.clear(),t.dispose(),t=Lr.init(this.$refs.container),t.setOption(r),t.on("click",n=>{this.$emit("change",n)})},getOption(e){let t=[];e.data.forEach(i=>{t.push({type:"pie",radius:["30%","58%"],center:["50%","50%"],data:i.dataName.map(a=>Object.assign({...a},{value:Tl(a.value,this.options.numericalPrecision).toFixed(this.options.numericalPrecision)})),label:{show:this.options.labelShow,position:this.options.labelTextPosition==="inside"?"inside":"outside",textStyle:{fontWeight:500,color:this.options.textFontColor,fontSize:this.options.textFontSize,lineHeight:20},formatter:`{b}:\r\r{c}\r
60
- ({d}%)`},itemStyle:{borderRadius:2}})});let r={type:"scroll",data:e.columns[0].data,textStyle:{color:this.options.legendTextColor},orient:this.options.legendOrient};return this.options.legendPosition.forEach((i,a)=>{i!==""&&a===0?Object.assign(r,{top:i}):i!==""&&a===1?Object.assign(r,{right:i}):i!==""&&a===2?Object.assign(r,{bottom:i}):i!==""&&a===3&&Object.assign(r,{left:i})}),{color:this.color,tooltip:{trigger:"item"},legend:r,series:t}}}};var NB=function(){var t=this,r=t._self._c;return r("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},RB=[],kB=ri(OB,NB,RB,!1,null,"0898e464",null,null);const BB=kB.exports;const FB={props:{color:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})},componentItem:{type:Object,default:()=>({})},ruleList:{type:Array,default:()=>[]},bjstyle:{type:String,default:""}},data(){return{record:{},width:"80%",confirmLoading:!1,visible:!1,fullscreen:!1}},methods:{open(e){this.visible=!0,this.record={...e},this.$nextTick(()=>{setTimeout(()=>{this.$refs.componentItem.init(this.record),this.spinning=!1},0)})},toggleFullscreen(){this.fullscreen=!this.fullscreen,this.$nextTick(()=>{setTimeout(()=>{this.$refs.componentItem.init(this.record)},0)})},doEvent(e){let t=e.item.functionName;this[t]&&this[t]()},closed(){this.fullscreen=!1,this.visible=!1}}};var VB=function(){var t=this,r=t._self._c;return r("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(n){t.visible=n},closed:t.closed}},[r("gd-modal-title",{attrs:{slot:"title",title:"",fullscreen:t.fullscreen,buttons:[],confirmLoading:t.confirmLoading,showClose:!0},on:{changeEvent:t.doEvent},slot:"title"}),r("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],staticClass:"generator-form",style:t.bjstyle},[t.visible?r(t.componentItem,{ref:"componentItem",tag:"component",attrs:{color:t.color,options:t.options,ruleList:t.ruleList}}):t._e()],1)],1)},zB=[],GB=ri(FB,VB,zB,!1,null,"9f0d9ef8",null,null);const $B=GB.exports;const HB={name:"GdChartBi",props:{develop:{type:[Number,String],default:1},showTitle:{type:Boolean,default:!0},color:{type:Array,default:()=>[]},left:{type:[Number,String],default:10},bjstyle:{type:String,default:""}},data(){return{record:{},optionData:{},spinning:!0,type:"none",empty:!1,offsetCaudex:0}},components:{AmplifyEchart:$B},computed:{echartsMode(){return this.getDictionary("table_echarts_mode")},ruleList(){return(this.record.config&&this.record.config.series?this.record.config.series:[]).filter(t=>t.ruleOpen)},options(){let e=this.record.options||{};return Object.assign({...e},{labelTextPosition:e.labelTextPosition?e.labelTextPosition:"top",legendPosition:e.legendPosition?e.legendPosition:["","","",""],gridPosition:e.gridPosition?e.gridPosition:["60","4%","3%","3%"],overlayStack:e.overlayStack!==void 0?e.overlayStack:!1,areaStyleStack:e.areaStyleStack!==void 0?e.areaStyleStack:!1,legendShow:e.legendShow!==void 0?e.legendShow:!0,labelFontColor:e.labelFontColor?e.labelFontColor:"#333",textFontColor:e.textFontColor?e.textFontColor:"#333",textFontSize:e.textFontSize?e.textFontSize:14,legendOrient:e.legendOrient?e.legendOrient:"horizontal",legendTextColor:e.legendTextColor?e.legendTextColor:"#333",xAxisLabelColor:e.xAxisLabelColor?e.xAxisLabelColor:"#333",labelLineColor:e.labelLineColor?e.labelLineColor:"#333",emphasisFocus:e.emphasisFocus?e.emphasisFocus:"series",lineStyleWidth:e.lineStyleWidth!==void 0?e.lineStyleWidth:1,numericalPrecision:e.numericalPrecision!==void 0?e.numericalPrecision:2})},componentItem(){const t=[{type:"bar",data:lm},{type:"pie",data:BB},{type:"funnel",data:AB},{type:"line",data:IB}].filter(r=>r.type===this.type)[0];return t?t.data:lm},getColor(){let e=[];return(this.color.length===0?this.echartsColor:this.color).forEach(r=>{e.push(r==="0"?this.primaryColor:r)}),e},...pm(["echartsColor","primaryColor","language"])},methods:{amplify(){this.$nextTick(()=>{setTimeout(()=>{this.$refs.amplifyEchart.open(this.optionData)},0)})},setType(){this.type="none"},change(e){this.$emit("change",{params:e,option:this.optionData,record:this.record})},assembly(){const e=this.optionData.data.filter(t=>t.type==="bar")[0];this.type=e?e.type:this.optionData.data[0].type,this.$nextTick(()=>{setTimeout(()=>{this.$refs.componentItem.init(this.optionData),this.spinning=!1},0)})},handleUniaxial({config:e,data:t,categorydata:r}){const n=e.series?e.series:[],i=e.categories?e.categories:[],a=e.stackList?e.stackList:[];if(n.length===0||i.length===0)return;const o=a[0]?a[0].uuid:"",s=o!==""?o:i[0].uuid,l=n.filter(g=>g.type==="1")[0];l?l.type:n[0].type;const u=a.filter(g=>g.dictTypeCode)[0],f=i.filter(g=>g.dictTypeCode)[0],c=o!==""?u:f,v=c?this.getDictionary(c.dictTypeCode):[];let h=[],d=[];if(n.forEach((g,p)=>{let y=[],m=[],_=[];t.forEach(T=>{const D=T[s],M=T[g.uuid],C=this.getVal({item:o!==""?a[0]:i[0],ite:D,data:t,dict:v});y.push(M),m.push({value:M,name:C}),p===0&&_.push(C||this.$i18nt("gd.echarts.none","\u7A7A\u767D"))}),_.length>0&&h.push({data:_});let x={},w="";g.ruleOpen&&g.ruleFormatter.formatter&&g.ruleFormatter.formatter!=="none"&&(w=g.ruleFormatter.formatter==="percent"?"%":"\u2030",Object.assign(x,{formatter:w})),g.ruleOpen&&g.ruleFormatter.openPrefix&&g.ruleFormatter.transKeyPrefix&&Object.assign(x,{prefix:g.ruleFormatter.prefix,transKeyPrefix:g.ruleFormatter.transKeyPrefix});const b=this.getBei(x.formatter);g.ruleOpen&&g.ruleFormatter.min!==void 0&&g.ruleFormatter.min!==""&&Object.assign(x,{min:g.ruleFormatter.min*b}),g.ruleOpen&&g.ruleFormatter.max!==void 0&&g.ruleFormatter.max!==""&&Object.assign(x,{max:g.ruleFormatter.max*b});const S=this.echartsMode.filter(T=>T.code==g.mode)[0];d.push(Object.assign({data:y,dataName:m,type:this.getChartType(g.type),item:Object.assign({...g},{transKey:`Dynamics.${g.transKey}`,transkeyDict:S?S.transkey:null,transkeyName:S?S.name:""}),bei:b,tooltip:!0,columnName:g.columnName,mode:g.mode},x))}),o!==""){let g=[];r[i[0].uuid].forEach(p=>{const y=f?this.getDictionary(f.dictTypeCode):[],m=this.getVal({item:i[0],ite:p,data:t,dict:y});g.push(m||this.$i18nt("gd.echarts.none","\u7A7A\u767D"))}),h[0]=Object.assign({...h[0]},{rotate:a[0].labelRotate,fontSize:a[0].labelFontSize,color:a[0].xAxisLabelColor,offset:a[0].offset,position:a[0].position}),h.push({data:g,offset:a[0].offsetCaudex,position:"bottom"})}this.optionData={columns:h,data:d,series:d,type:1},this.assembly()},handleMultiaxis({config:e,data:t,categorydata:r}){const n=e.series?e.series:[],i=e.categories?e.categories:[],a=e.stackList?e.stackList:[];if(n.length===0||i.length===0)return;let o=[],s=[],l=[],u=[],f={item:{transKey:n[0].transKey,name:n[0].name}};const c=this.ruleList[0];let v="";c&&c.ruleOpen&&c.ruleFormatter.formatter&&c.ruleFormatter.formatter!=="none"&&(v=c.ruleFormatter.formatter==="percent"?"%":"\u2030",Object.assign(f,{formatter:v})),c&&c.ruleFormatter.openPrefix&&c.ruleFormatter.transKeyPrefix&&Object.assign(f,{prefix:c.ruleFormatter.prefix,transKeyPrefix:`Dynamics.${c.ruleFormatter.transKeyPrefix}`});let h={};const d=this.getBei(f.formatter);c&&c.ruleOpen&&c.ruleFormatter.min!==void 0&&c.ruleFormatter.min!==""&&Object.assign(h,{min:c.ruleFormatter.min*d}),c&&c.ruleOpen&&c.ruleFormatter.max!==void 0&&c.ruleFormatter.max!==""&&Object.assign(h,{max:c.ruleFormatter.max*d});const g=[Object.assign(f,h,{type:"bar"})];i.forEach((S,T)=>{const D=r[S.uuid]?r[S.uuid]:[],M=D.map(C=>{const E=S.dictTypeCode?this.getDictionary(S.dictTypeCode):[];return C?this.getVal({item:S,ite:C,data:t,dict:E}):this.$i18nt("gd.echarts.none","\u7A7A\u767D")});M.length>0&&l.push({data:D,mode:S.mode,effectType:S.effectType,dictTypeCode:S.dictTypeCode,uuid:S.uuid}),T===0&&o.push({data:M,offset:0,position:"bottom"})}),a.forEach((S,T)=>{const D=r[S.uuid]?r[S.uuid]:[];D.map(M=>{const C=S.dictTypeCode?this.getDictionary(S.dictTypeCode):[];return M?this.getVal({item:S,ite:M,data:t,dict:C}):this.$i18nt("gd.echarts.none","\u7A7A\u767D")}),u.push({data:D,mode:S.mode,effectType:S.effectType,dictTypeCode:S.dictTypeCode,uuid:S.uuid,offset:S.offset,offsetCaudex:S.offsetCaudex,labelRotate:S.labelRotate,labelFontSize:S.labelFontSize,xAxisLabelColor:S.xAxisLabelColor,position:S.position})});let p=[];const y=n[0].uuid,m=this.getChartType(n[0].type);t.forEach(S=>{const T=this.getDataName(S,i.concat(a),y);p.push(T)});for(let S=0;S<l[1].data.length;S++){let T=[],D=[];for(let C=0;C<l[0].data.length;C++){const E=l[0].data[C]+""+l[1].data[S],L=p.filter(P=>P.name===E)[0];D.push(E),T.push(L?L.val:0)}let M=l[1].data[S]===null||l[1].data[S]===""?{transKey:"gd.echarts.none",name:"\u7A7A\u767D"}:{transKey:null,name:l[1].data[S]+""};if(l[1].dictTypeCode){const E=this.getDictionary(l[1].dictTypeCode).filter(L=>L.code==l[1].data[S])[0];Object.assign(M,E?{transKey:E.transkey,name:E.name}:{})}else if(l[1].effectType==="datepicker"){const C=this.getVal({item:l[1],ite:l[1].data[S],data:t,dict:[]});Object.assign(M,C?{transKey:null,name:C}:{})}else if(["fk","user","about"].includes(l[1].effectType)){const C=this.getVal({item:l[1],ite:l[1].data[S],data:t,dict:[]});Object.assign(M,C?{transKey:null,name:C}:{})}s.push({data:T,dataName:[],type:m,item:M,tooltip:!0,ruleOpen:!0,columnName:n[0].columnName,mode:n[0].mode,bei:d,formatter:v,combination:D,prefix:f.prefix!==void 0?f.prefix:"",transKeyPrefix:f.transKeyPrefix!==void 0?f.transKeyPrefix:null})}if(this.options.overlayStack&&u.length>0){const S=this.multiaxisStack(s,p,u,t);s=S.columnsData,o[0].offset=S.offset,o.push(S.xAxis),o.reverse()}const _=s.filter(S=>S.item.transKey!=="gd.echarts.none"),x=s.filter(S=>S.item.transKey==="gd.echarts.none"),w=_.concat(x),b=this.options.overlayLineChart&&m==="bar"?w.map(S=>Object.assign({...S},{type:m==="bar"?"line":"bar",tooltip:!1,ruleOpen:!1,columnName:"",formatter:""})):[];this.optionData={columns:o,data:g,series:w.concat(b),type:2},this.assembly()},multiaxisStack(e,t,r,n){const i=r[0].data,a=r[0].dictTypeCode,o=a?this.getDictionary(a):[],s=r[0];let l=[],u=[];i.forEach(h=>{const d=this.getVal({item:r[0],ite:h,data:n,dict:o});l.push({name:d,id:h}),u.push(d)});let f=[];for(let h=0;h<e[0].data.length;h++)f=f.concat(u);let c=[];const v=_m(8);for(let h=0;h<e.length;h++){let d=[],g=[];for(let p=0;p<e[h].combination.length;p++)for(let y=0;y<i.length;y++){g.push(e[h].combination[p]+i[y]);const m=e[h].combination[p]+i[y],_=t.filter(x=>x.name===m)[0];d.push(_?_.val:0)}c.push(Object.assign({...e[h]},{stack:v,data:d}))}return{columnsData:c,stackName:l,offset:s.offsetCaudex,xAxis:{data:f,rotate:s.labelRotate,fontSize:s.labelFontSize,color:s.xAxisLabelColor,offset:s.offset,position:s.position}}},init(e){if(this.record=e,e.data.length===0)return this.empty=!0,this.spinning=!1,!1;this.empty=!1,(e.config&&e.config.categories?e.config.categories:[]).length<=1?this.handleUniaxial(e):this.handleMultiaxis(e)},getBei(e){return e===void 0?1:e==="%"?100:1e3},getVal({item:e,ite:t,data:r,dict:n}){let i=t;const a=n.filter(o=>o.code==t)[0];if(e.dictTypeCode&&a)i=this.$i18nt(`Dynamics.${a.transkey}`,a.name);else if(e.effectType==="datepicker")i=this.getFormatTime(e.mode,t);else if(["fk","user","about"].includes(e.effectType)){const o=r.filter(s=>s[e.uuid]==t)[0];i=o&&o[`${e.uuid}_name`]?o[`${e.uuid}_name`]:i}return i},getDataName(e,t,r){let n="";return t.forEach(i=>{n+=String(e[i.uuid])}),{val:e[r],name:n}},getChartType(e){switch(e){case"1":return"bar";case"2":return"pie";case"3":return"funnel";case"4":return"line";default:return"bar"}},getDictionary(e){return this.$options.filters.dictData(e)},getFormatTime(e,t){if(["1","3","5"].includes(e)){const r=e==="5"?"yyyy":e==="3"?"yyyy-MM":"yyyy-MM-dd";return this.$options.filters.formatTime(t,r)}else if(e==="2"){const r=t.split("-"),n={year:r[0],week:r[1]},i=this.$i18nt("gd.echarts.yearWeek"),a=this.$i18nt("gd.echarts.weekMode");return this.language==="zh_CN"?`${n.year}${i}${n.week}${a}`:`${a} ${n.week} ${i} ${n.year}`}else if(e==="4"){const r=t.split("-"),n={year:r[0],quarter:r[1]},i=this.$i18nt("gd.echarts.yearQuarter"),a=this.$i18nt("gd.echarts.quarterMode");return this.language==="zh_CN"?`${n.year}${i}${n.quarter}${a}`:`${a}${n.quarter} ${i} ${n.year}`}}}};var WB=function(){var t=this,r=t._self._c;return r("div",{directives:[{name:"loading",rawName:"v-loading",value:t.spinning,expression:"spinning"}],staticClass:"gd-echart"},[t.type==="none"||t.empty?r("div",{staticClass:"empty"},[r("i",{staticClass:"el-icon-receiving"}),r("div",{staticClass:"empty-err"},[t._v(t._s(t.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A")))])]):r(t.componentItem,{ref:"componentItem",tag:"component",attrs:{develop:t.develop,color:t.getColor,options:t.options,ruleList:t.ruleList},on:{change:t.change}}),r("AmplifyEchart",{ref:"amplifyEchart",attrs:{color:t.getColor,options:t.options,ruleList:t.ruleList,componentItem:t.componentItem,bjstyle:t.bjstyle}})],1)},UB=[],YB=ri(HB,WB,UB,!1,null,"33e1997c",null,null);const Fs=YB.exports;Fs.install=function(e){e.component(Fs.name,Fs)};exports.GDpackage=Fs;exports.camelCases=jb;exports.clipboardContent=oS;exports.convertCurrency=tS;exports.copyTextToClipboard=aS;exports.echarts=Lr;exports.formatting=Qb;exports.getCurrentTime=sS;exports.getEchartColumnName=Jb;exports.getFileAccept=lS;exports.getFileSize=uS;exports.getMultiple=eS;exports.getParamsQuery=cS;exports.isJson=rS;exports.isValidURL=fS;exports.mapActions=qb;exports.mapGetters=pm;exports.menuEscapes=Zb;exports.normalizeComponent=ri;exports.roundNumber=Tl;exports.sort=zs;exports.transKeyCodeName=nS;exports.translateLanguageName=iS;exports.treeToArray=Kb;exports.uuid=_m;
58
+ `)),lt(n)),a.push({dimIdx:y.index,parser:m,comparator:new Z_(v,d)})});var o=t.sourceFormat;o!==ne&&o!==Be&&(process.env.NODE_ENV!=="production"&&(n='sourceFormat "'+o+'" is not supported yet'),lt(n));for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(f,c){for(var v=0;v<a.length;v++){var h=a[v],d=t.retrieveValueFromItem(f,h.dimIdx),p=t.retrieveValueFromItem(c,h.dimIdx);h.parser&&(d=h.parser(d),p=h.parser(p));var g=h.comparator.evaluate(d,p);if(g!==0)return g}return 0}),{data:s}}};function Pk(e){e.registerTransform(Ek),e.registerTransform(Lk)}var Ik=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.prototype.init=function(r,n,i){e.prototype.init.call(this,r,n,i),this._sourceManager=new J_(this),Bp(this)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),Bp(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:sr},t}(st),Ok=function(e){R(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.type="dataset",t}(Vt);function Nk(e){e.registerComponentModel(Ik),e.registerComponentView(Ok)}var tr=Mr.CMD;function Pi(e,t){return Math.abs(e-t)<1e-5}function Kc(e){var t=e.data,r=e.len(),n=[],i,a=0,o=0,s=0,l=0;function u(L,P){i&&i.length>2&&n.push(i),i=[L,P]}function f(L,P,I,O){Pi(L,I)&&Pi(P,O)||i.push(L,P,I,O,I,O)}function c(L,P,I,O,F,N){var B=Math.abs(P-L),G=Math.tan(B/4)*4/3,W=P<L?-1:1,Z=Math.cos(L),et=Math.sin(L),ft=Math.cos(P),At=Math.sin(P),yt=Z*F+I,zt=et*N+O,Gt=ft*F+I,Pt=At*N+O,bt=F*G*W,q=N*G*W;i.push(yt-bt*et,zt+q*Z,Gt+bt*At,Pt-q*ft,Gt,Pt)}for(var v,h,d,p,g=0;g<r;){var y=t[g++],m=g===1;switch(m&&(a=t[g],o=t[g+1],s=a,l=o,(y===tr.L||y===tr.C||y===tr.Q)&&(i=[s,l])),y){case tr.M:a=s=t[g++],o=l=t[g++],u(s,l);break;case tr.L:v=t[g++],h=t[g++],f(a,o,v,h),a=v,o=h;break;case tr.C:i.push(t[g++],t[g++],t[g++],t[g++],a=t[g++],o=t[g++]);break;case tr.Q:v=t[g++],h=t[g++],d=t[g++],p=t[g++],i.push(a+2/3*(v-a),o+2/3*(h-o),d+2/3*(v-d),p+2/3*(h-p),d,p),a=d,o=p;break;case tr.A:var _=t[g++],x=t[g++],w=t[g++],b=t[g++],S=t[g++],T=t[g++]+S;g+=1;var D=!t[g++];v=Math.cos(S)*w+_,h=Math.sin(S)*b+x,m?(s=v,l=h,u(s,l)):f(a,o,v,h),a=Math.cos(T)*w+_,o=Math.sin(T)*b+x;for(var M=(D?-1:1)*Math.PI/2,C=S;D?C>T:C<T;C+=M){var E=D?Math.max(C+M,T):Math.min(C+M,T);c(C,E,_,x,w,b)}break;case tr.R:s=a=t[g++],l=o=t[g++],v=s+t[g++],h=l+t[g++],u(v,l),f(v,l,v,h),f(v,h,s,h),f(s,h,s,l),f(s,l,v,l);break;case tr.Z:i&&f(a,o,s,l),a=s,o=l;break}}return i&&i.length>2&&n.push(i),n}function Qc(e,t,r,n,i,a,o,s,l,u){if(Pi(e,r)&&Pi(t,n)&&Pi(i,o)&&Pi(a,s)){l.push(o,s);return}var f=2/u,c=f*f,v=o-e,h=s-t,d=Math.sqrt(v*v+h*h);v/=d,h/=d;var p=r-e,g=n-t,y=i-o,m=a-s,_=p*p+g*g,x=y*y+m*m;if(_<c&&x<c){l.push(o,s);return}var w=v*p+h*g,b=-v*y-h*m,S=_-w*w,T=x-b*b;if(S<c&&w>=0&&T<c&&b>=0){l.push(o,s);return}var D=[],M=[];tn(e,r,i,o,.5,D),tn(t,n,a,s,.5,M),Qc(D[0],M[0],D[1],M[1],D[2],M[2],D[3],M[3],l,u),Qc(D[4],M[4],D[5],M[5],D[6],M[6],D[7],M[7],l,u)}function Rk(e,t){var r=Kc(e),n=[];t=t||1;for(var i=0;i<r.length;i++){var a=r[i],o=[],s=a[0],l=a[1];o.push(s,l);for(var u=2;u<a.length;){var f=a[u++],c=a[u++],v=a[u++],h=a[u++],d=a[u++],p=a[u++];Qc(s,l,f,c,v,h,d,p,o,t),s=d,l=p}n.push(o)}return n}function Db(e,t,r){var n=e[t],i=e[1-t],a=Math.abs(n/i),o=Math.ceil(Math.sqrt(a*r)),s=Math.floor(r/o);s===0&&(s=1,o=r);for(var l=[],u=0;u<o;u++)l.push(s);var f=o*s,c=r-f;if(c>0)for(var u=0;u<c;u++)l[u%o]+=1;return l}function Xy(e,t,r){for(var n=e.r0,i=e.r,a=e.startAngle,o=e.endAngle,s=Math.abs(o-a),l=s*i,u=i-n,f=l>Math.abs(u),c=Db([l,u],f?0:1,t),v=(f?s:u)/c.length,h=0;h<c.length;h++)for(var d=(f?u:s)/c[h],p=0;p<c[h];p++){var g={};f?(g.startAngle=a+v*h,g.endAngle=a+v*(h+1),g.r0=n+d*p,g.r=n+d*(p+1)):(g.startAngle=a+d*p,g.endAngle=a+d*(p+1),g.r0=n+v*h,g.r=n+v*(h+1)),g.clockwise=e.clockwise,g.cx=e.cx,g.cy=e.cy,r.push(g)}}function kk(e,t,r){for(var n=e.width,i=e.height,a=n>i,o=Db([n,i],a?0:1,t),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",f=a?"y":"x",c=e[s]/o.length,v=0;v<o.length;v++)for(var h=e[l]/o[v],d=0;d<o[v];d++){var p={};p[u]=v*c,p[f]=d*h,p[s]=c,p[l]=h,p.x+=e.x,p.y+=e.y,r.push(p)}}function qy(e,t,r,n){return e*n-r*t}function Bk(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,f=o-i,c=s-a,v=qy(f,c,l,u);if(Math.abs(v)<1e-6)return null;var h=e-i,d=t-a,p=qy(h,d,f,c)/v;return p<0||p>1?null:new U(p*l+e,p*u+t)}function Fk(e,t,r){var n=new U;U.sub(n,r,t),n.normalize();var i=new U;U.sub(i,e,t);var a=i.dot(n);return a}function Ci(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function Vk(e,t,r){for(var n=e.length,i=[],a=0;a<n;a++){var o=e[a],s=e[(a+1)%n],l=Bk(o[0],o[1],s[0],s[1],t.x,t.y,r.x,r.y);l&&i.push({projPt:Fk(l,t,r),pt:l,idx:a})}if(i.length<2)return[{points:e},{points:e}];i.sort(function(g,y){return g.projPt-y.projPt});var u=i[0],f=i[i.length-1];if(f.idx<u.idx){var c=u;u=f,f=c}for(var v=[u.pt.x,u.pt.y],h=[f.pt.x,f.pt.y],d=[v],p=[h],a=u.idx+1;a<=f.idx;a++)Ci(d,e[a].slice());Ci(d,h),Ci(d,v);for(var a=f.idx+1;a<=u.idx+n;a++)Ci(p,e[a%n].slice());return Ci(p,v),Ci(p,h),[{points:d},{points:p}]}function Zy(e){var t=e.points,r=[],n=[];T0(t,r,n);var i=new it(r[0],r[1],n[0]-r[0],n[1]-r[1]),a=i.width,o=i.height,s=i.x,l=i.y,u=new U,f=new U;return a>o?(u.x=f.x=s+a/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+a),Vk(t,u,f)}function _l(e,t,r,n){if(r===1)n.push(t);else{var i=Math.floor(r/2),a=e(t);_l(e,a[0],i,n),_l(e,a[1],r-i,n)}return n}function zk(e,t){for(var r=[],n=0;n<t;n++)r.push(Ph(e));return r}function Gk(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function $k(e){for(var t=[],r=0;r<e.length;)t.push([e[r++],e[r++]]);return t}function Hk(e,t){var r=[],n=e.shape,i;switch(e.type){case"rect":kk(n,t,r),i=wt;break;case"sector":Xy(n,t,r),i=Ie;break;case"circle":Xy({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},t,r),i=Ie;break;default:var a=e.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=z(Rk(e.getUpdatedPathProxy(),o),function(y){return $k(y)}),l=s.length;if(l===0)_l(Zy,{points:s[0]},t,r);else if(l===t)for(var u=0;u<l;u++)r.push({points:s[u]});else{var f=0,c=z(s,function(y){var m=[],_=[];T0(y,m,_);var x=(_[1]-m[1])*(_[0]-m[0]);return f+=x,{poly:y,area:x}});c.sort(function(y,m){return m.area-y.area});for(var v=t,u=0;u<l;u++){var h=c[u];if(v<=0)break;var d=u===l-1?v:Math.ceil(h.area/f*t);d<0||(_l(Zy,{points:h.poly},d,r),v-=d)}}i=ai;break}if(!i)return zk(e,t);for(var p=[],u=0;u<r.length;u++){var g=new i;g.setShape(r[u]),Gk(e,g),p.push(g)}return p}function Wk(e,t){var r=e.length,n=t.length;if(r===n)return[e,t];for(var i=[],a=[],o=r<n?e:t,s=Math.min(r,n),l=Math.abs(n-r)/6,u=(s-2)/6,f=Math.ceil(l/u)+1,c=[o[0],o[1]],v=l,h=2;h<s;){var d=o[h-2],p=o[h-1],g=o[h++],y=o[h++],m=o[h++],_=o[h++],x=o[h++],w=o[h++];if(v<=0){c.push(g,y,m,_,x,w);continue}for(var b=Math.min(v,f-1)+1,S=1;S<=b;S++){var T=S/b;tn(d,g,m,x,T,i),tn(p,y,_,w,T,a),d=i[3],p=a[3],c.push(i[1],a[1],i[2],a[2],d,p),g=i[5],y=a[5],m=i[6],_=a[6]}v-=b-1}return o===e?[c,t]:[e,c]}function jy(e,t){for(var r=e.length,n=e[r-2],i=e[r-1],a=[],o=0;o<t.length;)a[o++]=n,a[o++]=i;return a}function Uk(e,t){for(var r,n,i,a=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],u=t[s],f=void 0,c=void 0;l?u?(r=Wk(l,u),f=r[0],c=r[1],n=f,i=c):(c=jy(i||l,l),f=l):(f=jy(n||u,u),c=u),a.push(f),o.push(c)}return[a,o]}function Ky(e){for(var t=0,r=0,n=0,i=e.length,a=0,o=i-2;a<i;o=a,a+=2){var s=e[o],l=e[o+1],u=e[a],f=e[a+1],c=s*f-u*l;t+=c,r+=(s+u)*c,n+=(l+f)*c}return t===0?[e[0]||0,e[1]||0]:[r/t/3,n/t/3,t]}function Yk(e,t,r,n){for(var i=(e.length-2)/6,a=1/0,o=0,s=e.length,l=s-2,u=0;u<i;u++){for(var f=u*6,c=0,v=0;v<s;v+=2){var h=v===0?f:(f+v-2)%l+2,d=e[h]-r[0],p=e[h+1]-r[1],g=t[v]-n[0],y=t[v+1]-n[1],m=g-d,_=y-p;c+=m*m+_*_}c<a&&(a=c,o=u)}return o}function Xk(e){for(var t=[],r=e.length,n=0;n<r;n+=2)t[n]=e[r-n-2],t[n+1]=e[r-n-1];return t}function qk(e,t,r,n){for(var i=[],a,o=0;o<e.length;o++){var s=e[o],l=t[o],u=Ky(s),f=Ky(l);a==null&&(a=u[2]<0!=f[2]<0);var c=[],v=[],h=0,d=1/0,p=[],g=s.length;a&&(s=Xk(s));for(var y=Yk(s,l,u,f)*6,m=g-2,_=0;_<m;_+=2){var x=(y+_)%m+2;c[_+2]=s[x]-u[0],c[_+3]=s[x+1]-u[1]}if(c[0]=s[y]-u[0],c[1]=s[y+1]-u[1],r>0)for(var w=n/r,b=-n/2;b<=n/2;b+=w){for(var S=Math.sin(b),T=Math.cos(b),D=0,_=0;_<s.length;_+=2){var M=c[_],C=c[_+1],E=l[_]-f[0],L=l[_+1]-f[1],P=E*T-L*S,I=E*S+L*T;p[_]=P,p[_+1]=I;var O=P-M,F=I-C;D+=O*O+F*F}if(D<d){d=D,h=b;for(var N=0;N<p.length;N++)v[N]=p[N]}}else for(var B=0;B<g;B+=2)v[B]=l[B]-f[0],v[B+1]=l[B+1]-f[1];i.push({from:c,to:v,fromCp:u,toCp:f,rotation:-h})}return i}function xl(e){return e.__isCombineMorphing}var Ab="__mOriginal_";function bl(e,t,r){var n=Ab+t,i=e[n]||e[t];e[n]||(e[n]=e[t]);var a=r.replace,o=r.after,s=r.before;e[t]=function(){var l=arguments,u;return s&&s.apply(this,l),a?u=a.apply(this,l):u=i.apply(this,l),o&&o.apply(this,l),u}}function qa(e,t){var r=Ab+t;e[r]&&(e[t]=e[r],e[r]=null)}function Qy(e,t){for(var r=0;r<e.length;r++)for(var n=e[r],i=0;i<n.length;){var a=n[i],o=n[i+1];n[i++]=t[0]*a+t[2]*o+t[4],n[i++]=t[1]*a+t[3]*o+t[5]}}function Mb(e,t){var r=e.getUpdatedPathProxy(),n=t.getUpdatedPathProxy(),i=Uk(Kc(r),Kc(n)),a=i[0],o=i[1],s=e.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&Qy(a,s),l&&Qy(o,l),bl(t,"updateTransform",{replace:u}),t.transform=null;var f=qk(a,o,10,Math.PI),c=[];bl(t,"buildPath",{replace:function(v){for(var h=t.__morphT,d=1-h,p=[],g=0;g<f.length;g++){var y=f[g],m=y.from,_=y.to,x=y.rotation*h,w=y.fromCp,b=y.toCp,S=Math.sin(x),T=Math.cos(x);Fa(p,w,b,h);for(var D=0;D<m.length;D+=2){var M=m[D],C=m[D+1],E=_[D],L=_[D+1],P=M*d+E*h,I=C*d+L*h;c[D]=P*T-I*S+p[0],c[D+1]=P*S+I*T+p[1]}var O=c[0],F=c[1];v.moveTo(O,F);for(var D=2;D<m.length;){var E=c[D++],L=c[D++],N=c[D++],B=c[D++],G=c[D++],W=c[D++];O===E&&F===L&&N===G&&B===W?v.lineTo(G,W):v.bezierCurveTo(E,L,N,B,G,W),O=G,F=W}}}})}function $v(e,t,r){if(!e||!t)return t;var n=r.done,i=r.during;Mb(e,t),t.__morphT=0;function a(){qa(t,"buildPath"),qa(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},Y({during:function(o){t.dirtyShape(),i&&i(o)},done:function(){a(),n&&n()}},r)),t}function Zk(e,t,r,n,i,a){var o=16;e=i===r?0:Math.round(32767*(e-r)/(i-r)),t=a===n?0:Math.round(32767*(t-n)/(a-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var f=0,c=0;(e&u)>0&&(f=1),(t&u)>0&&(c=1),s+=u*u*(3*f^c),c===0&&(f===1&&(e=u-1-e,t=u-1-t),l=e,e=t,t=l)}return s}function Sl(e){var t=1/0,r=1/0,n=-1/0,i=-1/0,a=z(e,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),c=l.y+l.height/2+(u?u[5]:0);return t=Math.min(f,t),r=Math.min(c,r),n=Math.max(f,n),i=Math.max(c,i),[f,c]}),o=z(a,function(s,l){return{cp:s,z:Zk(s[0],s[1],t,r,n,i),path:e[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function Eb(e){return Hk(e.path,e.count)}function Jc(){return{fromIndividuals:[],toIndividuals:[],count:0}}function jk(e,t,r){var n=[];function i(w){for(var b=0;b<w.length;b++){var S=w[b];xl(S)?i(S.childrenRef()):S instanceof ot&&n.push(S)}}i(e);var a=n.length;if(!a)return Jc();var o=r.dividePath||Eb,s=o({path:t,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),Jc();n=Sl(n),s=Sl(s);for(var l=r.done,u=r.during,f=r.individualDelay,c=new xo,v=0;v<a;v++){var h=n[v],d=s[v];d.parent=t,d.copyTransform(c),f||Mb(h,d)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function p(w){for(var b=0;b<s.length;b++)s[b].addSelfToZr(w)}bl(t,"addSelfToZr",{after:function(w){p(w)}}),bl(t,"removeSelfFromZr",{after:function(w){for(var b=0;b<s.length;b++)s[b].removeSelfFromZr(w)}});function g(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,qa(t,"addSelfToZr"),qa(t,"removeSelfFromZr")}var y=s.length;if(f)for(var m=y,_=function(){m--,m===0&&(g(),l&&l())},v=0;v<y;v++){var x=f?Y({delay:(r.delay||0)+f(v,y,n[v],s[v]),done:_},r):r;$v(n[v],s[v],x)}else t.__morphT=0,t.animateTo({__morphT:1},Y({during:function(w){for(var b=0;b<y;b++){var S=s[b];S.__morphT=t.__morphT,S.dirtyShape()}u&&u(w)},done:function(){g();for(var w=0;w<e.length;w++)qa(e[w],"updateTransform");l&&l()}},r));return t.__zr&&p(t.__zr),{fromIndividuals:n,toIndividuals:s,count:y}}function Kk(e,t,r){var n=t.length,i=[],a=r.dividePath||Eb;function o(h){for(var d=0;d<h.length;d++){var p=h[d];xl(p)?o(p.childrenRef()):p instanceof ot&&i.push(p)}}if(xl(e)){o(e.childrenRef());var s=i.length;if(s<n)for(var l=0,u=s;u<n;u++)i.push(Ph(i[l++%s]));i.length=n}else{i=a({path:e,count:n});for(var f=e.getComputedTransform(),u=0;u<i.length;u++)i[u].setLocalTransform(f);if(i.length!==n)return console.error("Invalid morphing: unmatched splitted path"),Jc()}i=Sl(i),t=Sl(t);for(var c=r.individualDelay,u=0;u<n;u++){var v=c?Y({delay:(r.delay||0)+c(u,n,i[u],t[u])},r):r;$v(i[u],t[u],v)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}function Jy(e){return V(e[0])}function tm(e,t){for(var r=[],n=e.length,i=0;i<n;i++)r.push({one:e[i],many:[]});for(var i=0;i<t.length;i++){var a=t[i].length,o=void 0;for(o=0;o<a;o++)r[o%n].many.push(t[i][o])}for(var s=0,i=n-1;i>=0;i--)if(!r[i].many.length){var l=r[s].many;if(l.length<=1)if(s)s=0;else return r;var a=l.length,u=Math.ceil(a/2);r[i].many=l.slice(u,a),r[s].many=l.slice(0,u),s++}return r}var Qk={clone:function(e){for(var t=[],r=1-Math.pow(1-e.path.style.opacity,1/e.count),n=0;n<e.count;n++){var i=Ph(e.path);i.setStyle("opacity",r),t.push(i)}return t},split:null};function Bf(e,t,r,n,i,a){if(!e.length||!t.length)return;var o=kl("update",n,i);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;Jy(e)&&(u=e,f=t),Jy(t)&&(u=t,f=e);function c(y,m,_,x,w){var b=y.many,S=y.one;if(b.length===1&&!w){var T=m?b[0]:S,D=m?S:b[0];if(xl(T))c({many:[T],one:D},!0,_,x,!0);else{var M=s?Y({delay:s(_,x)},l):l;$v(T,D,M),a(T,D,T,D,M)}}else for(var C=Y({dividePath:Qk[r],individualDelay:s&&function(F,N,B,G){return s(F+_,x)}},l),E=m?jk(b,S,C):Kk(S,b,C),L=E.fromIndividuals,P=E.toIndividuals,I=L.length,O=0;O<I;O++){var M=s?Y({delay:s(O,I)},l):l;a(L[O],P[O],m?b[O]:y.one,m?y.one:b[O],M)}}for(var v=u?u===e:e.length>t.length,h=u?tm(f,u):tm(v?t:e,[v?e:t]),d=0,p=0;p<h.length;p++)d+=h[p].many.length;for(var g=0,p=0;p<h.length;p++)c(h[p],v,g,d),g+=h[p].many.length}function Nn(e){if(!e)return[];if(V(e)){for(var t=[],r=0;r<e.length;r++)t.push(Nn(e[r]));return t}var n=[];return e.traverse(function(i){i instanceof ot&&!i.disableMorphing&&!i.invisible&&!i.ignore&&n.push(i)}),n}var Lb=1e4,Jk=xt();function tB(e){for(var t=e.dimensions,r=0;r<t.length;r++){var n=e.getDimensionInfo(t[r]);if(n&&n.otherDims.itemGroupId===0)return t[r]}}function em(e){var t=[];return A(e,function(r){var n=r.data;if(n.count()>Lb){process.env.NODE_ENV!=="production"&&kt("Universal transition is disabled on large data > 10k.");return}for(var i=n.getIndices(),a=tB(n),o=0;o<i.length;o++)t.push({dataGroupId:r.dataGroupId,data:n,dim:r.dim||a,divide:r.divide,dataIndex:o})}),t}function Ff(e,t,r){e.traverse(function(n){n instanceof ot&&Bt(n,{style:{opacity:0}},t,{dataIndex:r,isFrom:!0})})}function Vf(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function Di(e){e.stopAnimation(),e.isGroup&&e.traverse(function(t){t.stopAnimation()})}function eB(e,t,r){var n=kl("update",r,t);n&&e.traverse(function(i){if(i instanceof Qi){var a=FD(i);a&&i.animateFrom({style:a},n)}})}function rB(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++){var i=e[n],a=t[n];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function Pb(e,t,r){var n=em(e),i=em(t);function a(y,m,_,x,w){(_||y)&&m.animateFrom({style:_&&_!==y?k(k({},_.style),y.style):y.style},w)}function o(y){for(var m=0;m<y.length;m++)if(y[m].dim)return y[m].dim}var s=o(n),l=o(i),u=!1;function f(y,m){return function(_){var x=_.data,w=_.dataIndex;if(m)return x.getId(w);var b=_.dataGroupId,S=y?s||l:l||s,T=S&&x.getDimensionInfo(S),D=T&&T.ordinalMeta;if(T){var M=x.get(T.name,w);return D&&D.categories[M]||M+""}var C=x.getRawDataItem(w);return C&&C.groupId?C.groupId+"":b||x.getId(w)}}var c=rB(n,i),v={};if(!c)for(var h=0;h<i.length;h++){var d=i[h],p=d.data.getItemGraphicEl(d.dataIndex);p&&(v[p.id]=!0)}function g(y,m){var _=n[m],x=i[y],w=x.data.hostModel,b=_.data.getItemGraphicEl(_.dataIndex),S=x.data.getItemGraphicEl(x.dataIndex);if(b===S){S&&eB(S,x.dataIndex,w);return}b&&v[b.id]||S&&(Di(S),b?(Di(b),Vf(b),u=!0,Bf(Nn(b),Nn(S),x.divide,w,y,a)):Ff(S,w,y))}new gl(n,i,f(!0,c),f(!1,c),null,"multiple").update(g).updateManyToOne(function(y,m){var _=i[y],x=_.data,w=x.hostModel,b=x.getItemGraphicEl(_.dataIndex),S=_t(z(m,function(T){return n[T].data.getItemGraphicEl(n[T].dataIndex)}),function(T){return T&&T!==b&&!v[T.id]});b&&(Di(b),S.length?(A(S,function(T){Di(T),Vf(T)}),u=!0,Bf(Nn(S),Nn(b),_.divide,w,y,a)):Ff(b,w,_.dataIndex))}).updateOneToMany(function(y,m){var _=n[m],x=_.data.getItemGraphicEl(_.dataIndex);if(!(x&&v[x.id])){var w=_t(z(y,function(S){return i[S].data.getItemGraphicEl(i[S].dataIndex)}),function(S){return S&&S!==x}),b=i[y[0]].data.hostModel;w.length&&(A(w,function(S){return Di(S)}),x?(Di(x),Vf(x),u=!0,Bf(Nn(x),Nn(w),_.divide,b,y[0],a)):A(w,function(S){return Ff(S,b,y[0])}))}}).updateManyToMany(function(y,m){new gl(m,y,function(_){return n[_].data.getId(n[_].dataIndex)},function(_){return i[_].data.getId(i[_].dataIndex)}).update(function(_,x){g(y[_],m[x])}).execute()}).execute(),u&&A(t,function(y){var m=y.data,_=m.hostModel,x=_&&r.getViewOfSeriesModel(_),w=kl("update",_,0);x&&_.isAnimationEnabled()&&w&&w.duration>0&&x.group.traverse(function(b){b instanceof ot&&!b.animators.length&&b.animateFrom({style:{opacity:0}},w)})})}function rm(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function nm(e){return V(e)?e.sort().join(","):e}function Wr(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function nB(e,t){var r=Q(),n=Q(),i=Q();A(e.oldSeries,function(o,s){var l=e.oldDataGroupIds[s],u=e.oldData[s],f=rm(o),c=nm(f);n.set(c,{dataGroupId:l,data:u}),V(f)&&A(f,function(v){i.set(v,{key:c,dataGroupId:l,data:u})})});function a(o){r.get(o)&&kt("Duplicated seriesKey in universalTransition "+o)}return A(t.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var s=o.get("dataGroupId"),l=o.getData(),u=rm(o),f=nm(u),c=n.get(f);if(c)process.env.NODE_ENV!=="production"&&a(f),r.set(f,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Wr(c.data),data:c.data}],newSeries:[{dataGroupId:s,divide:Wr(l),data:l}]});else if(V(u)){process.env.NODE_ENV!=="production"&&a(f);var v=[];A(u,function(p){var g=n.get(p);g.data&&v.push({dataGroupId:g.dataGroupId,divide:Wr(g.data),data:g.data})}),v.length&&r.set(f,{oldSeries:v,newSeries:[{dataGroupId:s,data:l,divide:Wr(l)}]})}else{var h=i.get(u);if(h){var d=r.get(h.key);d||(d={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:Wr(h.data)}],newSeries:[]},r.set(h.key,d)),d.newSeries.push({dataGroupId:s,data:l,divide:Wr(l)})}}}}),r}function im(e,t){for(var r=0;r<e.length;r++){var n=t.seriesIndex!=null&&t.seriesIndex===e[r].seriesIndex||t.seriesId!=null&&t.seriesId===e[r].id;if(n)return r}}function iB(e,t,r,n){var i=[],a=[];A(St(e.from),function(o){var s=im(t.oldSeries,o);s>=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Wr(t.oldData[s]),dim:o.dimension})}),A(St(e.to),function(o){var s=im(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Wr(l),dim:o.dimension})}}),i.length>0&&a.length>0&&Pb(i,a,n)}function aB(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){A(St(n.seriesTransition),function(i){A(St(i.to),function(a){for(var o=n.updatedSeries,s=0;s<o.length;s++)(a.seriesIndex!=null&&a.seriesIndex===o[s].seriesIndex||a.seriesId!=null&&a.seriesId===o[s].id)&&(o[s][Rs]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(t,r,n){var i=Jk(r);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var a=n.seriesTransition;if(a)A(St(a),function(h){iB(h,i,n,r)});else{var o=nB(i,n);A(o.keys(),function(h){var d=o.get(h);Pb(d.oldSeries,d.newSeries,r)})}A(n.updatedSeries,function(h){h[Rs]&&(h[Rs]=!1)})}for(var s=t.getSeries(),l=i.oldSeries=[],u=i.oldDataGroupIds=[],f=i.oldData=[],c=0;c<s.length;c++){var v=s[c].getData();v.count()<Lb&&(l.push(s[c]),u.push(s[c].get("dataGroupId")),f.push(v))}})}function am(e,t,r){var n=Tr.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",e)),n.width=i*r,n.height=a*r,n}var oB=function(e){R(t,e);function t(r,n,i){var a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||Ys,typeof r=="string"?o=am(r,n,i):H(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(hh(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=am("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new it(0,0,0,0);function f(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var _=new it(0,0,0,0);_.copy(m),o.push(_)}else{for(var x=!1,w=1/0,b=0,S=0;S<o.length;++S){var T=o[S];if(T.intersect(m)){var D=new it(0,0,0,0);D.copy(T),D.union(m),o[S]=D,x=!0;break}else if(l){u.copy(m),u.union(T);var M=m.width*m.height,C=T.width*T.height,E=u.width*u.height,L=E-M-C;L<w&&(w=L,b=S)}}if(l&&(o[b].union(m),x=!0),!x){var _=new it(0,0,0,0);_.copy(m),o.push(_)}l||(l=o.length>=s)}}for(var c=this.__startIndex;c<this.__endIndex;++c){var v=r[c];if(v){var h=v.shouldBePainted(i,a,!0,!0),d=v.__isRendered&&(v.__dirty&pe||!h)?v.getPrevPaintRect():null;d&&f(d);var p=h&&(v.__dirty&pe||!v.__isRendered)?v.getPaintRect():null;p&&f(p)}}for(var c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var v=n[c],h=v.shouldBePainted(i,a,!0,!0);if(v&&(!h||!v.__zr)&&v.__isRendered){var d=v.getPrevPaintRect();d&&f(d)}}var g;do{g=!1;for(var c=0;c<o.length;){if(o[c].isZero()){o.splice(c,1);continue}for(var y=c+1;y<o.length;)o[c].intersect(o[y])?(g=!0,o[c].union(o[y]),o.splice(y,1)):y++;c++}}while(g);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),a.width=r*i,a.height=n*i,s&&(s.width=r*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(r,n,i){var a=this.dom,o=this.ctx,s=a.width,l=a.height;n=n||this.clearColor;var u=this.motionBlur&&!r,f=this.lastFrameAlpha,c=this.dpr,v=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/c,l/c));var h=this.domBack;function d(p,g,y,m){if(o.clearRect(p,g,y,m),n&&n!=="transparent"){var _=void 0;if(go(n)){var x=n.global||n.__width===y&&n.__height===m;_=x&&n.__canvasGradient||Cc(o,n,{x:0,y:0,width:y,height:m}),n.__canvasGradient=_,n.__width=y,n.__height=m}else Tm(n)&&(n.scaleX=n.scaleX||c,n.scaleY=n.scaleY||c,_=Dc(o,n,{dirty:function(){v.setUnpainted(),v.__painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(p,g,y,m),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(h,p,g,y,m),o.restore())}!i||u?d(0,0,s,l):i.length&&A(i,function(p){d(p.x*c,p.y*c,p.width*c,p.height*c)})},t}(qe);const zf=oB;var om=1e5,In=314159,bs=.01,sB=.001;function lB(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function uB(e,t){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var fB=function(){function e(t,r,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=k({},n||{}),this.dpr=n.devicePixelRatio||Ys,this._singleCanvas=a,this.root=t;var o=t.style;o&&(hh(t),t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var f=t,c=f.width,v=f.height;n.width!=null&&(c=n.width),n.height!=null&&(v=n.height),this.dpr=n.devicePixelRatio||1,f.width=c*this.dpr,f.height=v*this.dpr,this._width=c,this._height=v;var h=new zf(f,this,this.dpr);h.__builtin__=!0,h.initContext(),l[In]=h,h.zlevel=In,s.push(In),this._domRoot=t}else{this._width=es(t,0,n),this._height=es(t,1,n);var u=this._domRoot=uB(this._width,this._height);t.appendChild(u)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,t,this._redrawId);for(var a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=a===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var r=t.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<r;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(om)),a||(a=n.ctx,a.save()),zn(a,s,i,o===r-1))}a&&a.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(om)},e.prototype.paintOne=function(t,r){sv(t,r)},e.prototype._paintList=function(t,r,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,r,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;Xf(function(){l._paintList(t,r,n,i)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(In).ctx,r=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,r,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,r,n)})},e.prototype._doPaintList=function(t,r,n){for(var i=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&a.push(u)}for(var f=!0,c=!1,v=function(p){var g=a[p],y=g.ctx,m=o&&g.createRepaintRects(t,r,h._width,h._height),_=n?g.__startIndex:g.__drawIndex,x=!n&&g.incremental&&Date.now,w=x&&Date.now(),b=g.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,b,m);else if(_===g.__startIndex){var S=t[_];(!S.incremental||!S.notClear||n)&&g.clear(!1,b,m)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var T,D=function(L){var P={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(T=_;T<g.__endIndex;T++){var I=t[T];if(I.__inHover&&(c=!0),i._doPaintEl(I,g,o,L,P,T===g.__endIndex-1),x){var O=Date.now()-w;if(O>15)break}}P.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=g.__endIndex;else for(var M=h.dpr,C=0;C<m.length;++C){var E=m[C];y.save(),y.beginPath(),y.rect(E.x*M,E.y*M,E.width*M,E.height*M),y.clip(),D(E),y.restore()}else y.save(),D(),y.restore();g.__drawIndex=T,g.__drawIndex<g.__endIndex&&(f=!1)},h=this,d=0;d<a.length;d++)v(d);return tt.wxa&&A(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:f,needsRefreshHover:c}},e.prototype._doPaintEl=function(t,r,n,i,a,o){var s=r.ctx;if(n){var l=t.getPaintRect();(!i||l&&l.intersect(i))&&(zn(s,t,a,o),t.setPrevPaintRect(l))}else zn(s,t,a,o)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=In);var n=this._layers[t];return n||(n=new zf("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?rt(n,this._layerConfig[t],!0):this._layerConfig[t-bs]&&rt(n,this._layerConfig[t-bs],!0),r&&(n.virtual=r),this.insertLayer(t,n),n.initContext()),n},e.prototype.insertLayer=function(t,r){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,l=-1;if(n[t]){process.env.NODE_ENV!=="production"&&jr("ZLevel "+t+" has been used already");return}if(!lB(r)){process.env.NODE_ENV!=="production"&&jr("Layer of zlevel "+t+" is not valid");return}if(a>0&&t>i[0]){for(l=0;l<a-1&&!(i[l]<t&&i[l+1]>t);l++);s=n[i[l]]}if(i.splice(l+1,0,t),n[t]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.__painter=this},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i];t.call(r,this._layers[a],a)}},e.prototype.eachBuiltinLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&t.call(r,o,a)}},e.prototype.eachOtherLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||t.call(r,o,a)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(c,v){c.__dirty=c.__used=!1});function r(c){a&&(a.__endIndex!==c&&(a.__dirty=!0),a.__endIndex=c)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,l;for(l=0;l<t.length;l++){var i=t[l],u=i.zlevel,f=void 0;s!==u&&(s=u,o=0),i.incremental?(f=this.getLayer(u+sB,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?bs:0),this._needsManuallyCompositing),f.__builtin__||jr("ZLevel "+u+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,r(l),a=f),i.__dirty&pe&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(c,v){!c.__used&&c.getElementCount()>0&&(c.__dirty=!0,c.__startIndex=c.__endIndex=c.__drawIndex=0),c.__dirty&&c.__drawIndex<0&&(c.__drawIndex=c.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,A(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?rt(n[t],r,!0):n[t]=r;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===t||a===t+bs){var o=this._layers[a];rt(o,n[t],!0)}}}},e.prototype.delLayer=function(t){var r=this._layers,n=this._zlevelList,i=r[t];!i||(i.dom.parentNode.removeChild(i.dom),delete r[t],n.splice(ct(n,t),1))},e.prototype.resize=function(t,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;if(t!=null&&(i.width=t),r!=null&&(i.height=r),t=es(a,0,i),r=es(a,1,i),n.style.display="",this._width!==t||r!==this._height){n.style.width=t+"px",n.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,r);this.refresh(!0)}this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this.getLayer(In).resize(t,r)}return this},e.prototype.clearLayer=function(t){var r=this._layers[t];r&&r.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[In].dom;var r=new zf("image",this,t.pixelRatio||this.dpr);r.initContext(),r.clear(!1,t.backgroundColor||this._backgroundColor);var n=r.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=r.dom.width,a=r.dom.height;this.eachLayer(function(c){c.__builtin__?n.drawImage(c.dom,0,0,i,a):c.renderToCanvas&&(n.save(),c.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];zn(n,f,o,l===u-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();const cB=fB;function hB(e){e.registerPainter("canvas",cB)}cr([ik,ek,KN,Nk,Pk,mk,PR,lu,DN,dO,f2,YI,w2,EO,mI,aB,hB]);function vB(e,t,r){let n=new Map;return e.forEach((a,o)=>{n.set(a.id,dB(a.operation.list))}),{rich:Object.fromEntries(n),formatter:a=>pB(a,e,t,r)}}function dB(e){let t={};return e.forEach(r=>{r.rules==="1"?Object.assign(t,{color:r.val?r.val:"#333"}):r.rules==="2"?Object.assign(t,{fontSize:r.val+"px"}):r.rules==="3"&&Object.assign(t,{fontWeight:r.val})}),t}function pB(e,t,r,n){const i=r.formatter?r.formatter:"",a=r.transKeyPrefix?n(r.transKeyPrefix,r.prefix):"";let o="";for(let l=0;l<t.length;l++){let u=[];t[l].condition.list.forEach(c=>{const v=th(c.val),h=r.bei===0?0:r.bei===100?v.l-2:v.l-3,d=Rn(Number(c.val)*r.bei,h);let p=gB({data:Object.assign({...c},{val:d}),val:e.data});u.push(p)}),yB(u,t[l])&&o===""&&(o=t[l].id)}return o!==""?`{${o}|${a} ${e.data} ${i}}`:`${a} ${e.data} ${i}`}function gB(e){switch(e.data.rules){case"1":return sm(e);case"2":return sm(e);case"7":return Ss(e);case"8":return Ss(e);case"9":return Ss(e);case"10":return Ss(e)}}function sm({data:e,val:t}){if(t===""||t===void 0)return!1;let r=Number(t),n=Number(e.val);return e.rules==="1"?r===n:r!==n}function Ss({data:e,val:t}){if(t===""||t===void 0)return!1;let r=lm("inputnumber",{val:t}),n=lm("inputnumber",e);if(e.rules==="7")return r>n;if(e.rules==="8")return r>=n;if(e.rules==="9")return r<n;if(e.rules==="10")return r<=n}function lm(e="inputnumber",t){let r=0;return e==="inputnumber"?r=Number(t.val):r=new Date(String(t.val)).getTime(),r}function yB(e,t){let r=t.condition.list.length;if(r===0)return!0;let n=r===0?"1":t.condition.list[r-1].type,i=mB(e,n);return n==="2"&&!i?!0:!!(n!=="2"&&i)}function mB(e,t){return t==="2"?e.every((r,n,i)=>!r):e.every((r,n,i)=>!!r)}function th(e){const t=String(e),r=t.substr(t.lastIndexOf(".")+1).toLowerCase();let n=1;for(let i=0;i<r.length;i++)n*=10;return{n,l:r.length}}function Rn(e,t){const r=10**t;return Math.round(e*r)/r}const _B={props:{develop:{type:[Number,String],default:1},color:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})},ruleList:{type:Array,default:()=>[]}},data(){return{}},methods:{init(e){let t=Lr.init(this.$refs.container),r=this.getOption(e);t.clear(),t.dispose(),t=Lr.init(this.$refs.container),t.setOption(r),t.on("click",n=>{this.$emit("change",n)})},getOption(e){console.log(e);let t=[],r=[],n=[],i=[];const a=e.series.filter(h=>h.type==="bar")[0];e.columns.forEach(h=>{t.push({type:"category",data:h.data,axisPointer:{type:a===void 0?"line":"shadow"},axisTick:{alignWithLabel:!1},axisLine:{onZero:!1,lineStyle:{color:this.options.labelLineColor}},axisLabel:{interval:0,rotate:h.rotate!==void 0?h.rotate:this.options.labelRotate,fontSize:h.fontSize!==void 0?h.fontSize:this.options.labelFontSize,color:h.color!==void 0?h.color:this.options.xAxisLabelColor},offset:h.offset,position:h.position})}),e.data.forEach((h,d)=>{this.$i18nt(h.item.transKey,h.item.name);let p={type:"value",axisLine:{show:!0,lineStyle:{color:this.options.labelLineColor}},axisLabel:{formatter:h.formatter?`{value} ${h.formatter}`:"{value}",color:this.options.labelFontColor}};h.max!==void 0&&Object.assign(p,{max:h.max}),h.min!==void 0&&Object.assign(p,{min:h.min}),e.data.length!==1&&Object.assign(p,{position:d===0?"left":"right",alignTicks:!0,show:d<2,axisLabel:{formatter:h.formatter?`{value} ${h.formatter}`:"{value}"}}),r.push(p)});const s=e.series.filter(h=>{const d=h.item.columnName?h.item.columnName:"",p=e.series[0].columnName?e.series[0].columnName:"";return d===p}).length===e.series.length;e.series.forEach((h,d)=>{let p=this.$i18nt(h.item.transKey,h.item.name);h.item.transkeyDict&&(p+=` (${this.$i18nt(h.item.transkeyDict,h.item.transkeyName)})`);let g={label:{show:h.tooltip?this.options.labelShow:h.tooltip,position:this.options.labelTextPosition,textStyle:{fontSize:this.options.textFontSize,color:this.options.textFontColor}},color:_=>e.type===1?this.color[_.dataIndex]:this.color[d]};this.ruleList.length>0&&(g=this.getNormal(g,h)),(e.data.length!==1||e.type===2)&&h.item.name&&i.push(p);let y={type:h.type,name:p,emphasis:{focus:this.options.emphasisFocus},data:h.data.map(_=>{if(h.bei===1)return Rn(_,this.options.numericalPrecision).toFixed(this.options.numericalPrecision);const x=th(_),w=h.bei===100?x.l-2:x.l-3,b=Rn(Number(_)*h.bei,w);return Rn(b,this.options.numericalPrecision).toFixed(this.options.numericalPrecision)}),tooltip:{show:h.tooltip,valueFormatter:_=>{const x=h.formatter?h.formatter:"";return`${h.transKeyPrefix?this.$i18nt(h.transKeyPrefix,h.prefix):""} ${_} ${x}`}},itemStyle:e.data.length===1?{normal:g}:{normal:Object.assign({...g},{color:this.color[d]})}};const m=this.options.overlayStack?{stack:h.stack?h.stack:"Total"}:{};e.type===1&&Object.assign(y,{yAxisIndex:s||m.stack!==void 0?0:d}),h.type==="line"&&Object.assign(y,{smooth:this.options.smooth,showSymbol:this.options.showSymbol,lineStyle:{width:this.options.lineStyleWidth}}),n.push(Object.assign(y,m))});let l={containLabel:!0};this.options.gridPosition.forEach((h,d)=>{h!==""&&d===0?Object.assign(l,{top:h}):h!==""&&d===1?Object.assign(l,{right:h}):h!==""&&d===2?Object.assign(l,{bottom:h}):h!==""&&d===3&&Object.assign(l,{left:h})});let u={data:i,type:"scroll",textStyle:{color:this.options.legendTextColor},orient:this.options.legendOrient};if(this.options.legendPosition.forEach((h,d)=>{h!==""&&d===0?Object.assign(u,{top:h}):h!==""&&d===1?Object.assign(u,{right:h}):h!==""&&d===2?Object.assign(u,{bottom:h}):h!==""&&d===3&&Object.assign(u,{left:h})}),a===void 0&&this.options.areaStyleStack&&(t.forEach((h,d)=>{t[d]=Object.assign(h,{boundaryGap:!1})}),n.forEach((h,d)=>{n[d]=Object.assign(h,{areaStyle:{}})})),this.options.overlayStack&&this.options.numericalSummary&&this.options.labelTextPosition==="inside"){let h=[];const d=e.series[0].bei;for(let p=0;p<n[0].data.length;p++){let g=0;for(let y=0;y<n.length;y++)g+=Number(n[y].data[p]);if(d===1)h.push(Rn(g,this.options.numericalPrecision).toFixed(this.options.numericalPrecision));else{const y=th(g),m=d===100?y.l-2:y.l-3,_=Rn(Number(ite)*d,m);h.push(Rn(_,this.options.numericalPrecision).toFixed(this.options.numericalPrecision))}}n.push({name:"\u6C47\u603B",stack:"Total",type:"bar",label:{normal:{show:!0,position:"top",formatter:function(p){return h[p.dataIndex]},textStyle:{color:"#333",fontSize:this.options.textFontSize}}},tooltip:{show:!1},data:[0,0,0,0]})}const f=Math.ceil(n.length/this.color.length);let c=[];for(let h=0;h<f;h++)c=c.concat(this.color);return{color:c,tooltip:{trigger:"axis",axisPointer:{type:a===void 0?"cross":"shadow"}},grid:l,legend:u,xAxis:t,yAxis:r,series:n}},getNormal(e,t){const r=`${t.columnName}&${t.mode}`,n=this.ruleList.filter(a=>`${a.columnName}&${a.mode}`===r)[0];if(!n)return e;let i=vB(n.ruleSequence,t,this.$i18nt);return Object.assign({...e},{label:Object.assign({...e.label},i)})}}};var xB=function(){var t=this,r=t._self._c;return r("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},bB=[],SB=ni(_B,xB,bB,!1,null,"cc30bade",null,null);const um=SB.exports;const wB={props:{develop:{type:[Number,String],default:1},color:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})}},data(){return{}},methods:{init(e){let t=Lr.init(this.$refs.container),r=this.getOption(e);t.clear(),t.dispose(),t=Lr.init(this.$refs.container),t.setOption(r),t.on("click",n=>{this.$emit("change",n)})},getOption(e){let t=0,r=e.data[0].dataName;r.forEach((a,o)=>{t+=Number(a.value),r[o].order=a.value}),r=[...zs(r)];let n={data:e.columns[0].data,type:"scroll",textStyle:{color:this.options.legendTextColor},orient:this.options.legendOrient};return this.options.legendPosition.forEach((a,o)=>{a!==""&&o===0?Object.assign(n,{top:a}):a!==""&&o===1?Object.assign(n,{right:a}):a!==""&&o===2?Object.assign(n,{bottom:a}):a!==""&&o===3&&Object.assign(n,{left:a})}),{tooltip:{trigger:"item",formatter:function(a){return a.data.name+":\r"+a.data.values}},color:this.color,legend:n,series:[{type:"funnel",left:"10%",top:50,bottom:50,width:"76%",min:0,max:100,minSize:"10%",maxSize:"90%",sort:"descending",gap:1,label:{show:this.options.labelShow,fontSize:this.options.textFontSize,formatter:function(a){return a.data.name+":\r"+a.data.values+`
59
+ `+a.data.percentage+"%"}},labelLine:{length:10,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{fontSize:15}},data:r.map((a,o)=>{const s=a.value;return Object.assign({...a},{values:Tl(s,this.options.numericalPrecision).toFixed(this.options.numericalPrecision),percentage:t===0?"0":(Number(s)/t*1e4).toFixed(0)/100,value:(1/r.length*(o+1)*100).toFixed(0)})})}]}}}};var TB=function(){var t=this,r=t._self._c;return r("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},CB=[],DB=ni(wB,TB,CB,!1,null,"82e80ff7",null,null);const AB=DB.exports;const MB={props:{develop:{type:[Number,String],default:1},color:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})}},data(){return{}},methods:{init(e){let t=Lr.init(this.$refs.container),r=this.getOption(e);t.clear(),t.dispose(),t=Lr.init(this.$refs.container),t.setOption(r),t.on("click",n=>{this.$emit("change",n)})},getOption(e){let t=[],r=[],n=[],i=[];const a=this.options.areaStyleStack?{boundaryGap:!1}:{};e.columns.forEach(u=>{t.push(Object.assign({type:"category",data:u.data,axisPointer:{type:"line"},axisTick:{alignWithLabel:!0},axisLabel:{interval:0,rotate:this.options.labelRotate,fontSize:this.options.labelFontSize,color:this.options.xAxisLabelColor}},a))}),this.options.labelShow,this.options.labelTextPosition,this.options.textFontSize,this.options.textFontColor,e.data.forEach((u,f)=>{let c={type:"value",axisLine:{show:!0,lineStyle:{color:this.options.labelLineColor}},axisLabel:{formatter:"{value}",color:this.options.labelFontColor}},v=this.$i18nt(u.item.transKey,u.item.name);u.item.transkeyDict&&(v+=` (${this.$i18nt(u.item.transkeyDict,u.item.transkeyName)})`),e.data.length!==1&&(i.push(v),Object.assign(c,{name:v,position:f===0?"left":"right",alignTicks:!0,show:f<2})),r.push(c);let h=this.options.overlayStack?{stack:"Total"}:{};this.options.areaStyleStack&&Object.assign(h,{areaStyle:{}}),n.push(Object.assign({emphasis:{focus:this.options.emphasisFocus},type:u.type,name:v,data:u.data.map(d=>Tl(d,this.options.numericalPrecision).toFixed(this.options.numericalPrecision)),smooth:this.options.smooth,showSymbol:this.options.showSymbol,lineStyle:{width:this.options.lineStyleWidth},normal:{label:{show:this.options.labelShow,position:this.options.labelTextPosition,textStyle:{fontSize:this.options.textFontSize,color:this.options.textFontColor}}}},h))});let o={containLabel:!0};this.options.gridPosition.forEach((u,f)=>{u!==""&&f===0?Object.assign(o,{top:u}):u!==""&&f===1?Object.assign(o,{right:u}):u!==""&&f===2?Object.assign(o,{bottom:u}):u!==""&&f===3&&Object.assign(o,{left:u})});let s={data:i,type:"scroll",textStyle:{color:this.options.legendTextColor},orient:this.options.legendOrient};return this.options.legendPosition.forEach((u,f)=>{u!==""&&f===0?Object.assign(s,{top:u}):u!==""&&f===1?Object.assign(s,{right:u}):u!==""&&f===2?Object.assign(s,{bottom:u}):u!==""&&f===3&&Object.assign(s,{left:u})}),{color:this.color,tooltip:{trigger:"axis",axisPointer:{type:"cross"}},grid:o,legend:s,xAxis:t,yAxis:r,series:n}}}};var EB=function(){var t=this,r=t._self._c;return r("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},LB=[],PB=ni(MB,EB,LB,!1,null,"1e3a2a03",null,null);const IB=PB.exports;const OB={props:{develop:{type:[Number,String],default:1},color:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})}},data(){return{}},methods:{init(e){let t=Lr.init(this.$refs.container),r=this.getOption(e);t.clear(),t.dispose(),t=Lr.init(this.$refs.container),t.setOption(r),t.on("click",n=>{this.$emit("change",n)})},getOption(e){let t=[];e.data.forEach(i=>{t.push({type:"pie",radius:["30%","58%"],center:["50%","50%"],data:i.dataName.map(a=>Object.assign({...a},{value:Tl(a.value,this.options.numericalPrecision).toFixed(this.options.numericalPrecision)})),label:{show:this.options.labelShow,position:this.options.labelTextPosition==="inside"?"inside":"outside",textStyle:{fontWeight:500,color:this.options.textFontColor,fontSize:this.options.textFontSize,lineHeight:20},formatter:`{b}:\r\r{c}\r
60
+ ({d}%)`},itemStyle:{borderRadius:2}})});let r={type:"scroll",data:e.columns[0].data,textStyle:{color:this.options.legendTextColor},orient:this.options.legendOrient};return this.options.legendPosition.forEach((i,a)=>{i!==""&&a===0?Object.assign(r,{top:i}):i!==""&&a===1?Object.assign(r,{right:i}):i!==""&&a===2?Object.assign(r,{bottom:i}):i!==""&&a===3&&Object.assign(r,{left:i})}),{color:this.color,tooltip:{trigger:"item"},legend:r,series:t}}}};var NB=function(){var t=this,r=t._self._c;return r("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},RB=[],kB=ni(OB,NB,RB,!1,null,"0898e464",null,null);const BB=kB.exports;const FB={props:{color:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})},componentItem:{type:Object,default:()=>({})},ruleList:{type:Array,default:()=>[]},bjstyle:{type:String,default:""}},data(){return{record:{},width:"80%",confirmLoading:!1,visible:!1,fullscreen:!1}},methods:{open(e){this.visible=!0,this.record={...e},this.$nextTick(()=>{setTimeout(()=>{this.$refs.componentItem.init(this.record),this.spinning=!1},0)})},toggleFullscreen(){this.fullscreen=!this.fullscreen,this.$nextTick(()=>{setTimeout(()=>{this.$refs.componentItem.init(this.record)},0)})},doEvent(e){let t=e.item.functionName;this[t]&&this[t]()},closed(){this.fullscreen=!1,this.visible=!1}}};var VB=function(){var t=this,r=t._self._c;return r("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(n){t.visible=n},closed:t.closed}},[r("gd-modal-title",{attrs:{slot:"title",title:"",fullscreen:t.fullscreen,buttons:[],confirmLoading:t.confirmLoading,showClose:!0},on:{changeEvent:t.doEvent},slot:"title"}),r("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],staticClass:"generator-form",style:t.bjstyle},[t.visible?r(t.componentItem,{ref:"componentItem",tag:"component",attrs:{color:t.color,options:t.options,ruleList:t.ruleList}}):t._e()],1)],1)},zB=[],GB=ni(FB,VB,zB,!1,null,"9f0d9ef8",null,null);const $B=GB.exports;const HB={name:"GdChartBi",props:{develop:{type:[Number,String],default:1},showTitle:{type:Boolean,default:!0},color:{type:Array,default:()=>[]},left:{type:[Number,String],default:10},bjstyle:{type:String,default:""}},data(){return{record:{},optionData:{},spinning:!0,type:"none",empty:!1,offsetCaudex:0}},components:{AmplifyEchart:$B},computed:{echartsMode(){return this.getDictionary("table_echarts_mode")},ruleList(){return(this.record.config&&this.record.config.series?this.record.config.series:[]).filter(t=>t.ruleOpen)},options(){let e=this.record.options||{};return Object.assign({...e},{labelTextPosition:e.labelTextPosition?e.labelTextPosition:"top",legendPosition:e.legendPosition?e.legendPosition:["","","",""],gridPosition:e.gridPosition?e.gridPosition:["60","4%","3%","3%"],overlayStack:e.overlayStack!==void 0?e.overlayStack:!1,areaStyleStack:e.areaStyleStack!==void 0?e.areaStyleStack:!1,legendShow:e.legendShow!==void 0?e.legendShow:!0,labelFontColor:e.labelFontColor?e.labelFontColor:"#333",textFontColor:e.textFontColor?e.textFontColor:"#333",textFontSize:e.textFontSize?e.textFontSize:14,legendOrient:e.legendOrient?e.legendOrient:"horizontal",legendTextColor:e.legendTextColor?e.legendTextColor:"#333",xAxisLabelColor:e.xAxisLabelColor?e.xAxisLabelColor:"#333",labelLineColor:e.labelLineColor?e.labelLineColor:"#333",emphasisFocus:e.emphasisFocus?e.emphasisFocus:"series",lineStyleWidth:e.lineStyleWidth!==void 0?e.lineStyleWidth:1,numericalPrecision:e.numericalPrecision!==void 0?e.numericalPrecision:2,numericalSummary:e.numericalSummary!==void 0?e.numericalSummary:!1})},componentItem(){const t=[{type:"bar",data:um},{type:"pie",data:BB},{type:"funnel",data:AB},{type:"line",data:IB}].filter(r=>r.type===this.type)[0];return t?t.data:um},getColor(){let e=[];return(this.color.length===0?this.echartsColor:this.color).forEach(r=>{e.push(r==="0"?this.primaryColor:r)}),e},...gm(["echartsColor","primaryColor","language"])},methods:{amplify(){this.$nextTick(()=>{setTimeout(()=>{this.$refs.amplifyEchart.open(this.optionData)},0)})},setType(){this.type="none"},change(e){this.$emit("change",{params:e,option:this.optionData,record:this.record})},assembly(){const e=this.optionData.data.filter(t=>t.type==="bar")[0];this.type=e?e.type:this.optionData.data[0].type,this.$nextTick(()=>{setTimeout(()=>{this.$refs.componentItem.init(this.optionData),this.spinning=!1},0)})},handleUniaxial({config:e,data:t,categorydata:r}){const n=e.series?e.series:[],i=e.categories?e.categories:[],a=e.stackList?e.stackList:[];if(n.length===0||i.length===0)return;const o=a[0]?a[0].uuid:"",s=o!==""?o:i[0].uuid,l=n.filter(p=>p.type==="1")[0];l?l.type:n[0].type;const u=a.filter(p=>p.dictTypeCode)[0],f=i.filter(p=>p.dictTypeCode)[0],c=o!==""?u:f,v=c?this.getDictionary(c.dictTypeCode):[];let h=[],d=[];if(n.forEach((p,g)=>{let y=[],m=[],_=[];t.forEach(T=>{const D=T[s],M=T[p.uuid],C=this.getVal({item:o!==""?a[0]:i[0],ite:D,data:t,dict:v});y.push(M),m.push({value:M,name:C}),g===0&&_.push(C||this.$i18nt("gd.echarts.none","\u7A7A\u767D"))}),_.length>0&&h.push({data:_});let x={},w="";p.ruleOpen&&p.ruleFormatter.formatter&&p.ruleFormatter.formatter!=="none"&&(w=p.ruleFormatter.formatter==="percent"?"%":"\u2030",Object.assign(x,{formatter:w})),p.ruleOpen&&p.ruleFormatter.openPrefix&&p.ruleFormatter.transKeyPrefix&&Object.assign(x,{prefix:p.ruleFormatter.prefix,transKeyPrefix:p.ruleFormatter.transKeyPrefix});const b=this.getBei(x.formatter);p.ruleOpen&&p.ruleFormatter.min!==void 0&&p.ruleFormatter.min!==""&&Object.assign(x,{min:p.ruleFormatter.min*b}),p.ruleOpen&&p.ruleFormatter.max!==void 0&&p.ruleFormatter.max!==""&&Object.assign(x,{max:p.ruleFormatter.max*b});const S=this.echartsMode.filter(T=>T.code==p.mode)[0];d.push(Object.assign({data:y,dataName:m,type:this.getChartType(p.type),item:Object.assign({...p},{transKey:`Dynamics.${p.transKey}`,transkeyDict:S?S.transkey:null,transkeyName:S?S.name:""}),bei:b,tooltip:!0,columnName:p.columnName,mode:p.mode},x))}),o!==""){let p=[];r[i[0].uuid].forEach(g=>{const y=f?this.getDictionary(f.dictTypeCode):[],m=this.getVal({item:i[0],ite:g,data:t,dict:y});p.push(m||this.$i18nt("gd.echarts.none","\u7A7A\u767D"))}),h[0]=Object.assign({...h[0]},{rotate:a[0].labelRotate,fontSize:a[0].labelFontSize,color:a[0].xAxisLabelColor,offset:a[0].offset,position:a[0].position}),h.push({data:p,offset:a[0].offsetCaudex,position:"bottom"})}this.optionData={columns:h,data:d,series:d,type:1},this.assembly()},handleMultiaxis({config:e,data:t,categorydata:r}){const n=e.series?e.series:[],i=e.categories?e.categories:[],a=e.stackList?e.stackList:[];if(n.length===0||i.length===0)return;let o=[],s=[],l=[],u=[],f={item:{transKey:n[0].transKey,name:n[0].name}};const c=this.ruleList[0];let v="";c&&c.ruleOpen&&c.ruleFormatter.formatter&&c.ruleFormatter.formatter!=="none"&&(v=c.ruleFormatter.formatter==="percent"?"%":"\u2030",Object.assign(f,{formatter:v})),c&&c.ruleFormatter.openPrefix&&c.ruleFormatter.transKeyPrefix&&Object.assign(f,{prefix:c.ruleFormatter.prefix,transKeyPrefix:`Dynamics.${c.ruleFormatter.transKeyPrefix}`});let h={};const d=this.getBei(f.formatter);c&&c.ruleOpen&&c.ruleFormatter.min!==void 0&&c.ruleFormatter.min!==""&&Object.assign(h,{min:c.ruleFormatter.min*d}),c&&c.ruleOpen&&c.ruleFormatter.max!==void 0&&c.ruleFormatter.max!==""&&Object.assign(h,{max:c.ruleFormatter.max*d});const p=[Object.assign(f,h,{type:"bar"})];i.forEach((S,T)=>{const D=r[S.uuid]?r[S.uuid]:[],M=D.map(C=>{const E=S.dictTypeCode?this.getDictionary(S.dictTypeCode):[];return C?this.getVal({item:S,ite:C,data:t,dict:E}):this.$i18nt("gd.echarts.none","\u7A7A\u767D")});M.length>0&&l.push({data:D,mode:S.mode,effectType:S.effectType,dictTypeCode:S.dictTypeCode,uuid:S.uuid}),T===0&&o.push({data:M,offset:0,position:"bottom"})}),a.forEach((S,T)=>{const D=r[S.uuid]?r[S.uuid]:[];D.map(M=>{const C=S.dictTypeCode?this.getDictionary(S.dictTypeCode):[];return M?this.getVal({item:S,ite:M,data:t,dict:C}):this.$i18nt("gd.echarts.none","\u7A7A\u767D")}),u.push({data:D,mode:S.mode,effectType:S.effectType,dictTypeCode:S.dictTypeCode,uuid:S.uuid,offset:S.offset,offsetCaudex:S.offsetCaudex,labelRotate:S.labelRotate,labelFontSize:S.labelFontSize,xAxisLabelColor:S.xAxisLabelColor,position:S.position})});let g=[];const y=n[0].uuid,m=this.getChartType(n[0].type);t.forEach(S=>{const T=this.getDataName(S,i.concat(a),y);g.push(T)});for(let S=0;S<l[1].data.length;S++){let T=[],D=[];for(let C=0;C<l[0].data.length;C++){const E=l[0].data[C]+""+l[1].data[S],L=g.filter(P=>P.name===E)[0];D.push(E),T.push(L?L.val:0)}let M=l[1].data[S]===null||l[1].data[S]===""?{transKey:"gd.echarts.none",name:"\u7A7A\u767D"}:{transKey:null,name:l[1].data[S]+""};if(l[1].dictTypeCode){const E=this.getDictionary(l[1].dictTypeCode).filter(L=>L.code==l[1].data[S])[0];Object.assign(M,E?{transKey:E.transkey,name:E.name}:{})}else if(l[1].effectType==="datepicker"){const C=this.getVal({item:l[1],ite:l[1].data[S],data:t,dict:[]});Object.assign(M,C?{transKey:null,name:C}:{})}else if(["fk","user","about"].includes(l[1].effectType)){const C=this.getVal({item:l[1],ite:l[1].data[S],data:t,dict:[]});Object.assign(M,C?{transKey:null,name:C}:{})}s.push({data:T,dataName:[],type:m,item:M,tooltip:!0,ruleOpen:!0,columnName:n[0].columnName,mode:n[0].mode,bei:d,formatter:v,combination:D,prefix:f.prefix!==void 0?f.prefix:"",transKeyPrefix:f.transKeyPrefix!==void 0?f.transKeyPrefix:null})}if(this.options.overlayStack&&u.length>0){const S=this.multiaxisStack(s,g,u,t);s=S.columnsData,o[0].offset=S.offset,o.push(S.xAxis),o.reverse()}const _=s.filter(S=>S.item.transKey!=="gd.echarts.none"),x=s.filter(S=>S.item.transKey==="gd.echarts.none"),w=_.concat(x),b=this.options.overlayLineChart&&m==="bar"?w.map(S=>Object.assign({...S},{type:m==="bar"?"line":"bar",tooltip:!1,ruleOpen:!1,columnName:"",formatter:""})):[];this.optionData={columns:o,data:p,series:w.concat(b),type:2},this.assembly()},multiaxisStack(e,t,r,n){const i=r[0].data,a=r[0].dictTypeCode,o=a?this.getDictionary(a):[],s=r[0];let l=[],u=[];i.forEach(h=>{const d=this.getVal({item:r[0],ite:h,data:n,dict:o});l.push({name:d,id:h}),u.push(d)});let f=[];for(let h=0;h<e[0].data.length;h++)f=f.concat(u);let c=[];const v=xm(8);for(let h=0;h<e.length;h++){let d=[],p=[];for(let g=0;g<e[h].combination.length;g++)for(let y=0;y<i.length;y++){p.push(e[h].combination[g]+i[y]);const m=e[h].combination[g]+i[y],_=t.filter(x=>x.name===m)[0];d.push(_?_.val:0)}c.push(Object.assign({...e[h]},{stack:v,data:d}))}return{columnsData:c,stackName:l,offset:s.offsetCaudex,xAxis:{data:f,rotate:s.labelRotate,fontSize:s.labelFontSize,color:s.xAxisLabelColor,offset:s.offset,position:s.position}}},init(e){if(this.record=e,e.data.length===0)return this.empty=!0,this.spinning=!1,!1;this.empty=!1,(e.config&&e.config.categories?e.config.categories:[]).length<=1?this.handleUniaxial(e):this.handleMultiaxis(e)},getBei(e){return e===void 0?1:e==="%"?100:1e3},getVal({item:e,ite:t,data:r,dict:n}){let i=t;const a=n.filter(o=>o.code==t)[0];if(e.dictTypeCode&&a)i=this.$i18nt(`Dynamics.${a.transkey}`,a.name);else if(e.effectType==="datepicker")i=this.getFormatTime(e.mode,t);else if(["fk","user","about"].includes(e.effectType)){const o=r.filter(s=>s[e.uuid]==t)[0];i=o&&o[`${e.uuid}_name`]?o[`${e.uuid}_name`]:i}return i},getDataName(e,t,r){let n="";return t.forEach(i=>{n+=String(e[i.uuid])}),{val:e[r],name:n}},getChartType(e){switch(e){case"1":return"bar";case"2":return"pie";case"3":return"funnel";case"4":return"line";default:return"bar"}},getDictionary(e){return this.$options.filters.dictData(e)},getFormatTime(e,t){if(["1","3","5"].includes(e)){const r=e==="5"?"yyyy":e==="3"?"yyyy-MM":"yyyy-MM-dd";return this.$options.filters.formatTime(t,r)}else if(e==="2"){const r=t.split("-"),n={year:r[0],week:r[1]},i=this.$i18nt("gd.echarts.yearWeek"),a=this.$i18nt("gd.echarts.weekMode");return this.language==="zh_CN"?`${n.year}${i}${n.week}${a}`:`${a} ${n.week} ${i} ${n.year}`}else if(e==="4"){const r=t.split("-"),n={year:r[0],quarter:r[1]},i=this.$i18nt("gd.echarts.yearQuarter"),a=this.$i18nt("gd.echarts.quarterMode");return this.language==="zh_CN"?`${n.year}${i}${n.quarter}${a}`:`${a}${n.quarter} ${i} ${n.year}`}}}};var WB=function(){var t=this,r=t._self._c;return r("div",{directives:[{name:"loading",rawName:"v-loading",value:t.spinning,expression:"spinning"}],staticClass:"gd-echart"},[t.type==="none"||t.empty?r("div",{staticClass:"empty"},[r("i",{staticClass:"el-icon-receiving"}),r("div",{staticClass:"empty-err"},[t._v(t._s(t.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A")))])]):r(t.componentItem,{ref:"componentItem",tag:"component",attrs:{develop:t.develop,color:t.getColor,options:t.options,ruleList:t.ruleList},on:{change:t.change}}),r("AmplifyEchart",{ref:"amplifyEchart",attrs:{color:t.getColor,options:t.options,ruleList:t.ruleList,componentItem:t.componentItem,bjstyle:t.bjstyle}})],1)},UB=[],YB=ni(HB,WB,UB,!1,null,"e50897df",null,null);const Fs=YB.exports;Fs.install=function(e){e.component(Fs.name,Fs)};exports.GDpackage=Fs;exports.camelCases=jb;exports.clipboardContent=oS;exports.convertCurrency=tS;exports.copyTextToClipboard=aS;exports.echarts=Lr;exports.formatting=Qb;exports.getCurrentTime=sS;exports.getEchartColumnName=Jb;exports.getFileAccept=lS;exports.getFileSize=uS;exports.getMultiple=eS;exports.getParamsQuery=cS;exports.isJson=rS;exports.isValidURL=fS;exports.mapActions=qb;exports.mapGetters=gm;exports.menuEscapes=Zb;exports.normalizeComponent=ni;exports.roundNumber=Tl;exports.sort=zs;exports.transKeyCodeName=nS;exports.translateLanguageName=iS;exports.treeToArray=Kb;exports.uuid=xm;