@xysfe/actui 1.6.61-beta.21 → 1.6.61-beta.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/GoldFinanceChart/index.js +1 -1
- package/es/index.js +1 -1
- package/lib/GoldFinanceChart/index.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.GoldFinanceChart=e():t.GoldFinanceChart=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="../lib",e(e.s=2040)}({0:function(t,e){var i=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=i)},1:function(t,e){var i=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},10:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},100:function(t,e,i){"use strict";function n(t,e,i,n){var o=void 0,a=void 0,s=new t({render:function(t){var i=a&&a(t);return i&&!Object(r.o)(i)&&(i=[i]),t(e,o,i||[])},methods:{init:function(){document.body.appendChild(this.$el)},destroy:function(){this.$destroy(),document.body.removeChild(this.$el)}}});return s.updateRenderData=function(t,e){o=t,a=e},s.updateRenderData(i,n),s.$mount(),s.init(),s.$children[0]}e.a=n;var r=i(5)},1e3:function(t,e,i){"use strict";var n=i(119),r=i(112),o=i(76),a=i(116),s=i(913),l=i(627),u=i(25),h=i(152);e.a={name:"ActPicker",mixins:[o.a,u.a,s.a,l.a,a.a],props:{pending:{type:Boolean,default:!1}},data:function(){return{finalData:this.data.slice()}},created:function(){this._values=[],this._indexes=this.selectedIndex},methods:{confirm:function(){if(this._canConfirm()){this.hide();var t=!1,e=[],i=this.finalData.length,n=this._values.length;n!==i&&(t=!0,n>i&&(this._values.length=this._indexes.length=i));for(var r=0;r<i;r++){var o=this._getSelectIndex(this.wheels[r]);this._indexes[r]=o;var a=null,s="";this.finalData[r].length&&(a=this.finalData[r][o][this.valueKey],s=this.finalData[r][o][this.textKey]),this._values[r]!==a&&(t=!0),this._values[r]=a,e[r]=s}this.$emit("select",this._values,this._indexes,e),t&&this.$emit("value-change",this._values,this._indexes,e)}},maskClick:function(){this.maskClosable&&this.cancel()},cancel:function(){this.hide(),this.$emit("cancel")},show:function(){var t=this;if(!this.isVisible)if(this.isVisible=!0,!this.wheels||this.dirty)this.$nextTick(function(){t.wheels=t.wheels||[];for(var e=t.$refs.wheelWrapper,i=0;i<t.finalData.length;i++)t._createWheel(e,i).enable(),t.wheels[i].wheelTo(t._indexes[i]);t.dirty&&t._destroyExtraWheels(),t.dirty=!1});else for(var e=0;e<this.finalData.length;e++)this.wheels[e].enable(),this.wheels[e].wheelTo(this._indexes[e])},hide:function(){if(this.isVisible){this.isVisible=!1;for(var t=0;t<this.finalData.length;t++)this.wheels[t].disable()}},setData:function(t,e){var i=this;this._indexes=e?[].concat(e):[],this.finalData=t.slice(),this.isVisible?this.$nextTick(function(){var t=i.$refs.wheelWrapper;i.finalData.forEach(function(e,n){i._createWheel(t,n),i.wheels[n].wheelTo(i._indexes[n])}),i._destroyExtraWheels()}):this.dirty=!0},refill:function(t){var e=this,i=[];return t.length?(t.forEach(function(t,n){i[n]=e.refillColumn(n,t)}),i):i},refillColumn:function(t,e){var i=this,n=this.$refs.wheelWrapper,r=n.children[t].querySelector(".act-picker-wheel-scroll"),o=!!this.wheels&&this.wheels[t],a=0;if(r&&o){var s=this.finalData[t];this.$set(this.finalData,t,e);var l=o.getSelectedIndex();if(s.length)for(var u=s[l][this.valueKey],h=0;h<e.length;h++)if(e[h][this.valueKey]===u){a=h;break}this._indexes[t]=a,this.$nextTick(function(){o=i._createWheel(n,t),o.wheelTo(a)})}return a},scrollTo:function(t,e){var i=this.wheels[t];this._indexes[t]=e,i.wheelTo(e)},refresh:function(){var t=this;this.$nextTick(function(){t.wheels.forEach(function(t){t.refresh()})})},_createWheel:function(t,e){var i=this;if(this.wheels[e])this.wheels[e].refresh();else{var r=this.wheels[e]=new n.default(t.children[e],{wheel:{selectedIndex:this._indexes[e]||0,wheelWrapperClass:"act-picker-wheel-scroll",wheelItemClass:"act-picker-wheel-item"},swipeTime:this.swipeTime,observeDOM:!1,useTransition:h.a});r.on("scrollEnd",function(){i.$emit("change",e,i._getSelectIndex(r))})}return this.wheels[e]},_destroyExtraWheels:function(){var t=this.finalData.length;if(this.wheels.length>t){this.wheels.splice(t).forEach(function(t){t.destroy()})}},_canConfirm:function(){return!this.pending&&this.wheels.every(function(t){return!t.isInTransition})},_getFlexOrder:function(t){return t[0]?t[0][this.orderKey]:0},_getSelectIndex:function(t){var e=t.y;return h.a?t.getSelectedIndex():e>t.minScrollY?0:e<t.maxScrollY?t.items.length-1:Math.round(Math.abs(e/t.itemHeight))}},beforeDestroy:function(){this.wheels&&this.wheels.forEach(function(t){t.destroy()}),this.wheels=null},components:{ActPopup:r.a}}},101:function(t,e,i){var n=i(26),r=i(3)("toStringTag"),o="Arguments"==n(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,i,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=a(e=Object(t),r))?i:o?n(e):"Object"==(s=n(e))&&"function"==typeof e.callee?"Arguments":s}},102:function(t,e,i){"use strict";var n=i(25),r=i(76);e.a={name:"ActPopup",mixins:[n.a,r.a],props:{type:{type:String,default:""},mask:{type:Boolean,default:!0},content:{type:String,default:""},center:{type:Boolean,default:!0},opacity:{type:[Number,String],default:.7},pointerEvent:{type:String,default:""},zIndex:{type:[String,Number],default:"999"},topBorderRadius:{type:Boolean,default:!1}},computed:{typeClass:function(){return this.type?"act-"+this.type:""},maskBgColor:function(){return"rgba(0, 0, 0, "+this.opacity+")"}},methods:{maskClick:function(t){this.$emit("mask-click",t)}}}},106:function(t,e,i){"use strict";e.__esModule=!0;var n=i(28),r=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=r.default||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}},11:function(t,e,i){var n=i(47),r=i(29);t.exports=function(t){return n(r(t))}},112:function(t,e,i){"use strict";function n(t){s||i(131)}var r=i(102),o=i(132),a=i(2),s=!1,l=n,u=Object(a.a)(r.a,o.a,o.b,!1,l,null,null);u.options.__file="src\\components\\common\\popup.vue",e.a=u.exports},113:function(t,e,i){var n=i(101),r=i(3)("iterator"),o=i(18);t.exports=i(0).getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||o[n(t)]}},115:function(t,e){var i;i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(i=window)}t.exports=i},116:function(t,e,i){"use strict";function n(t){t.preventDefault()}var r={watch:{isVisible:function(t){t?document.body.addEventListener("touchmove",n,{passive:!1}):document.body.removeEventListener("touchmove",n,{passive:!1})}},beforeDestroy:function(){document.body.removeEventListener("touchmove",n,{passive:!1})}};e.a=r},1165:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(15),r=i(1166);r.a.install=function(t){t.component(r.a.name,r.a),t.prototype.$createPicker=Object(n.a)(r.a,t)},e.default=r.a},1166:function(t,e,i){"use strict";function n(t){s||i(1167)}var r=i(1e3),o=i(1168),a=i(2),s=!1,l=n,u=Object(a.a)(r.a,o.a,o.b,!1,l,"data-v-65cf9f1c",null);u.options.__file="src\\components\\Picker\\src\\index.vue",e.a=u.exports},1167:function(t,e){},1168:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("transition",{attrs:{name:"act-picker-fade"}},[i("act-popup",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],attrs:{type:"picker",mask:!0,center:!1,topBorderRadius:!0,zIndex:t.zIndex},on:{touchmove:function(t){t.preventDefault()},"mask-click":t.maskClick}},[i("transition",{attrs:{name:"act-picker-move"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"act-picker-panel",on:{click:function(t){t.stopPropagation()}}},[i("div",{staticClass:"act-picker-choose"},[i("span",{staticClass:"act-picker-cancel",style:{color:t.cancelColor},on:{click:t.cancel}},[t._v(t._s(t._cancelTxt))]),t._v(" "),i("span",{staticClass:"act-picker-confirm",style:{color:t.confirmColor},on:{click:t.confirm}},[t._v(t._s(t._confirmTxt))]),t._v(" "),i("div",{staticClass:"act-picker-title-group"},[i("h1",{staticClass:"act-picker-title",domProps:{innerHTML:t._s(t.title)}}),t._v(" "),t.subtitle?i("h2",{staticClass:"act-picker-subtitle",domProps:{innerHTML:t._s(t.subtitle)}}):t._e()])]),t._v(" "),i("div",{staticClass:"act-picker-content"},[i("i",{staticClass:"border-bottom-1px"}),t._v(" "),i("i",{staticClass:"border-top-1px"}),t._v(" "),i("div",{ref:"wheelWrapper",staticClass:"act-picker-wheel-wrapper"},t._l(t.finalData,function(e,n){return i("div",{key:n,style:{order:t._getFlexOrder(e)}},[i("ul",{staticClass:"act-picker-wheel-scroll"},t._l(e,function(e,n){return i("li",{key:n,staticClass:"act-picker-wheel-item",domProps:{innerHTML:t._s(e[t.textKey])}})}),0)])}),0)]),t._v(" "),i("div",{staticClass:"act-picker-footer"})])])],1)],1)},r=[];n._withStripped=!0},119:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(154);e.default=n.a},12:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},13:function(t,e,i){var n=i(1),r=i(0),o=i(38),a=i(7),s=i(6),l=function(t,e,i){var u,h,c,p=t&l.F,f=t&l.G,d=t&l.S,g=t&l.P,v=t&l.B,y=t&l.W,m=f?r:r[e]||(r[e]={}),_=m.prototype,x=f?n:d?n[e]:(n[e]||{}).prototype;f&&(i=e);for(u in i)(h=!p&&x&&void 0!==x[u])&&s(m,u)||(c=h?x[u]:i[u],m[u]=f&&"function"!=typeof x[u]?i[u]:v&&h?o(c,n):y&&x[u]==c?function(t){var e=function(e,i,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,i)}return new t(e,i,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(c):g&&"function"==typeof c?o(Function.call,c):c,g&&((m.virtual||(m.virtual={}))[u]=c,t&l.R&&_&&!_[u]&&a(_,u,c)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},131:function(t,e){},132:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"act-popup",class:t.typeClass,style:{pointerEvents:t.pointerEvent,zIndex:t.zIndex}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.mask,expression:"mask"}],staticClass:"act-popup-mask act-row act-middle",style:{backgroundColor:t.maskBgColor},on:{click:t.maskClick}},[t._t("mask")],2),t._v(" "),i("div",{staticClass:"act-popup-container",class:{"act-popup-center":t.center}},[t.$slots.default?i("div",{class:{"act-popup-content":!0,"act-popup-top-radius":t.topBorderRadius}},[t._t("default")],2):i("div",{class:{"act-popup-content":!0,"act-popup-top-radius":t.topBorderRadius},domProps:{innerHTML:t._s(t.content)}})])])},r=[];n._withStripped=!0},134:function(t,e,i){t.exports={default:i(180),__esModule:!0}},1366:function(t,e,i){(function(t){!function(t,i){i(e)}(0,function(t){"use strict";function e(t,e){function i(){this.constructor=t}if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");yv(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}function i(t){for(var e in Cv)t[e]&&(Cv[e]=t[e])}function n(){return zv++}function r(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function o(t){if(null==t||"object"!=typeof t)return t;var e=t,i=Av.call(t);if("[object Array]"===i){if(!W(t)){e=[];for(var n=0,r=t.length;r>n;n++)e[n]=o(t[n])}}else if(kv[i]){if(!W(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var n=0,r=t.length;r>n;n++)e[n]=t[n]}}}else if(!Iv[i]&&!W(t)&&!D(t)){e={};for(var s in t)t.hasOwnProperty(s)&&s!==Nv&&(e[s]=o(t[s]))}return e}function a(t,e,i){if(!I(e)||!I(t))return i?o(e):t;for(var n in e)if(e.hasOwnProperty(n)&&n!==Nv){var r=t[n],s=e[n];!I(s)||!I(r)||b(s)||b(r)||D(s)||D(r)||k(s)||k(r)||W(s)||W(r)?!i&&n in t||(t[n]=o(e[n])):a(r,s,i)}return t}function s(t,e){for(var i=t[0],n=1,r=t.length;r>n;n++)i=a(i,t[n],e);return i}function l(t,e){if(Object.assign)Object.assign(t,e);else for(var i in e)e.hasOwnProperty(i)&&i!==Nv&&(t[i]=e[i]);return t}function u(t,e,i){for(var n=_(e),r=0;r<n.length;r++){var o=n[r];(i?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}function h(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var i=0,n=t.length;n>i;i++)if(t[i]===e)return i}return-1}function c(t,e){function i(){}var n=t.prototype;i.prototype=e.prototype,t.prototype=new i;for(var r in n)n.hasOwnProperty(r)&&(t.prototype[r]=n[r]);t.prototype.constructor=t,t.superClass=e}function p(t,e,i){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),r=0;r<n.length;r++){var o=n[r];"constructor"!==o&&(i?null!=e[o]:null==t[o])&&(t[o]=e[o])}else u(t,e,i)}function f(t){return!!t&&("string"!=typeof t&&"number"==typeof t.length)}function d(t,e,i){if(t&&e)if(t.forEach&&t.forEach===Pv)t.forEach(e,i);else if(t.length===+t.length)for(var n=0,r=t.length;r>n;n++)e.call(i,t[n],n,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(i,t[o],o,t)}function g(t,e,i){if(!t)return[];if(!e)return z(t);if(t.map&&t.map===Ev)return t.map(e,i);for(var n=[],r=0,o=t.length;o>r;r++)n.push(e.call(i,t[r],r,t));return n}function v(t,e,i,n){if(t&&e){for(var r=0,o=t.length;o>r;r++)i=e.call(n,i,t[r],r,t);return i}}function y(t,e,i){if(!t)return[];if(!e)return z(t);if(t.filter&&t.filter===Ov)return t.filter(e,i);for(var n=[],r=0,o=t.length;o>r;r++)e.call(i,t[r],r,t)&&n.push(t[r]);return n}function m(t,e,i){if(t&&e)for(var n=0,r=t.length;r>n;n++)if(e.call(i,t[n],n,t))return t[n]}function _(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(i);return e}function x(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];return function(){return t.apply(e,i.concat(Lv.call(arguments)))}}function w(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return function(){return t.apply(this,e.concat(Lv.call(arguments)))}}function b(t){return Array.isArray?Array.isArray(t):"[object Array]"===Av.call(t)}function S(t){return"function"==typeof t}function T(t){return"string"==typeof t}function M(t){return"[object String]"===Av.call(t)}function C(t){return"number"==typeof t}function I(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function k(t){return!!Iv[Av.call(t)]}function A(t){return!!kv[Av.call(t)]}function D(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function P(t){return null!=t.colorStops}function O(t){return null!=t.image}function L(t){return"[object RegExp]"===Av.call(t)}function E(t){return t!==t}function R(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=0,n=t.length;n>i;i++)if(null!=t[i])return t[i]}function B(t,e){return null!=t?t:e}function N(t,e,i){return null!=t?t:null!=e?e:i}function z(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return Lv.apply(t,e)}function F(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function Y(t,e){if(!t)throw new Error(e)}function H(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function V(t){t[Hv]=!0}function W(t){return t[Hv]}function X(){return Wv?new Map:new Vv}function U(t){return new Xv(t)}function j(t,e){for(var i=new t.constructor(t.length+e.length),n=0;n<t.length;n++)i[n]=t[n];for(var r=t.length,n=0;n<e.length;n++)i[n+r]=e[n];return i}function G(t,e){var i;if(Object.create)i=Object.create(t);else{var n=function(){};n.prototype=t,i=new n}return e&&l(i,e),i}function q(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Z(t,e){return t.hasOwnProperty(e)}function K(){}function Q(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function $(t,e){return t[0]=e[0],t[1]=e[1],t}function J(t){return[t[0],t[1]]}function tt(t,e,i){return t[0]=e,t[1]=i,t}function et(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t}function it(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t}function nt(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t}function rt(t){return Math.sqrt(ot(t))}function ot(t){return t[0]*t[0]+t[1]*t[1]}function at(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t}function st(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t}function lt(t,e){return t[0]*e[0]+t[1]*e[1]}function ut(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t}function ht(t,e){var i=rt(e);return 0===i?(t[0]=0,t[1]=0):(t[0]=e[0]/i,t[1]=e[1]/i),t}function ct(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}function pt(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function ft(t,e){return t[0]=-e[0],t[1]=-e[1],t}function dt(t,e,i,n){return t[0]=e[0]+n*(i[0]-e[0]),t[1]=e[1]+n*(i[1]-e[1]),t}function gt(t,e,i){var n=e[0],r=e[1];return t[0]=i[0]*n+i[2]*r+i[4],t[1]=i[1]*n+i[3]*r+i[5],t}function vt(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t}function yt(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t}function mt(t,e,i,n,r,o){var a=n+"-"+r,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~r)/ey);return t[i][l]}for(var u=n|1<<i,h=i+1;n&1<<h;)h++;for(var c=0,p=0,f=0;s>p;p++){var d=1<<p;d&r||(c+=(f%2?-1:1)*t[i][p]*mt(t,e-1,h,u,r|d,o),f++)}return o[a]=c,c}function _t(t,e){var i=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],n={},r=mt(i,8,0,0,0,n);if(0!==r){for(var o=[],a=0;8>a;a++)for(var s=0;8>s;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*mt(i,7,0===a?1:0,1<<a,1<<s,n)/r*e[a];return function(t,e,i){var n=e*o[6]+i*o[7]+1;t[0]=(e*o[0]+i*o[1]+o[2])/n,t[1]=(e*o[3]+i*o[4]+o[5])/n}}}function xt(t,e,i,n,r){return wt(ny,e,n,r,!0)&&wt(t,i,ny[0],ny[1])}function wt(t,e,i,n,r){if(e.getBoundingClientRect&&xv.domSupported&&!Tt(e)){var o=e[iy]||(e[iy]={}),a=bt(e,o),s=St(a,o,r);if(s)return s(t,i,n),!0}return!1}function bt(t,e){var i=e.markers;if(i)return i;i=e.markers=[];for(var n=["left","right"],r=["top","bottom"],o=0;4>o;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",r[u]+":0",n[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),t.appendChild(a),i.push(a)}return i}function St(t,e,i){for(var n=i?"invTrans":"trans",r=e[n],o=e.srcCoords,a=[],s=[],l=!0,u=0;4>u;u++){var h=t[u].getBoundingClientRect(),c=2*u,p=h.left,f=h.top;a.push(p,f),l=l&&o&&p===o[c]&&f===o[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[n]=i?_t(s,a):_t(a,s))}function Tt(t){return"CANVAS"===t.nodeName.toUpperCase()}function Mt(t){return null==t?"":(t+"").replace(ry,function(t,e){return oy[e]})}function Ct(t,e,i,n){return i=i||{},n?It(t,e,i):ly&&null!=e.layerX&&e.layerX!==e.offsetX?(i.zrX=e.layerX,i.zrY=e.layerY):null!=e.offsetX?(i.zrX=e.offsetX,i.zrY=e.offsetY):It(t,e,i),i}function It(t,e,i){if(xv.domSupported&&t.getBoundingClientRect){var n=e.clientX,r=e.clientY;if(Tt(t)){var o=t.getBoundingClientRect();return i.zrX=n-o.left,void(i.zrY=r-o.top)}if(wt(sy,t,n,r))return i.zrX=sy[0],void(i.zrY=sy[1])}i.zrX=i.zrY=0}function kt(t){return t||window.event}function At(t,e,i){if(e=kt(e),null!=e.zrX)return e;var n=e.type;if(n&&n.indexOf("touch")>=0){var r="touchend"!==n?e.targetTouches[0]:e.changedTouches[0];r&&Ct(t,r,e,i)}else{Ct(t,e,e,i);var o=Dt(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&ay.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function Dt(t){var e=t.wheelDelta;if(e)return e;var i=t.deltaX,n=t.deltaY;return null==i||null==n?e:3*Math.abs(0!==n?n:i)*(n>0?-1:0>n?1:i>0?-1:1)}function Pt(t,e,i,n){t.addEventListener(e,i,n)}function Ot(t,e,i,n){t.removeEventListener(e,i,n)}function Lt(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return Math.sqrt(e*e+i*i)}function Et(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}function Rt(){return[1,0,0,1,0,0]}function Bt(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Nt(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function zt(t,e,i){var n=e[0]*i[0]+e[2]*i[1],r=e[1]*i[0]+e[3]*i[1],o=e[0]*i[2]+e[2]*i[3],a=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],l=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function Ft(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t}function Yt(t,e,i){var n=e[0],r=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(i),h=Math.cos(i);return t[0]=n*h+a*u,t[1]=-n*u+a*h,t[2]=r*h+s*u,t[3]=-r*u+h*s,t[4]=h*o+u*l,t[5]=h*l-u*o,t}function Ht(t,e,i){var n=i[0],r=i[1];return t[0]=e[0]*n,t[1]=e[1]*r,t[2]=e[2]*n,t[3]=e[3]*r,t[4]=e[4]*n,t[5]=e[5]*r,t}function Vt(t,e){var i=e[0],n=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=i*a-o*n;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*s-a*r)*l,t[5]=(o*r-i*s)*l,t):null}function Wt(t){var e=Rt();return Nt(e,t),e}function Xt(t,e,i){return{type:t,event:i,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta,zrByTouch:i.zrByTouch,which:i.which,stop:Ut}}function Ut(){uy(this.event)}function jt(t,e,i){if(t[t.rectHover?"rectContain":"contain"](e,i)){for(var n=t,r=void 0,o=!1;n;){if(n.ignoreClip&&(o=!0),!o){var a=n.getClipPath();if(a&&!a.contain(e,i))return!1;n.silent&&(r=!0)}var s=n.__hostTarget;n=s||n.parent}return!r||Sy}return!1}function Gt(t,e,i,n,r){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=jt(a,i,n))&&(!e.topTarget&&(e.topTarget=a),s!==Sy)){e.target=a;break}}}function qt(t,e,i){var n=t.painter;return 0>e||e>n.getWidth()||0>i||i>n.getHeight()}function Zt(t){for(var e=0;t>=Dy;)e|=1&t,t>>=1;return t+e}function Kt(t,e,i,n){var r=e+1;if(r===i)return 1;if(n(t[r++],t[e])<0){for(;i>r&&n(t[r],t[r-1])<0;)r++;Qt(t,e,r)}else for(;i>r&&n(t[r],t[r-1])>=0;)r++;return r-e}function Qt(t,e,i){for(i--;i>e;){var n=t[e];t[e++]=t[i],t[i--]=n}}function $t(t,e,i,n,r){for(n===e&&n++;i>n;n++){for(var o,a=t[n],s=e,l=n;l>s;)o=s+l>>>1,r(a,t[o])<0?l=o:s=o+1;var u=n-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function Jt(t,e,i,n,r,o){var a=0,s=0,l=1;if(o(t,e[i+r])>0){for(s=n-r;s>l&&o(t,e[i+r+l])>0;)a=l,0>=(l=1+(l<<1))&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;s>l&&o(t,e[i+r-l])<=0;)a=l,0>=(l=1+(l<<1))&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;l>a;){var h=a+(l-a>>>1);o(t,e[i+h])>0?a=h+1:l=h}return l}function te(t,e,i,n,r,o){var a=0,s=0,l=1;if(o(t,e[i+r])<0){for(s=r+1;s>l&&o(t,e[i+r-l])<0;)a=l,0>=(l=1+(l<<1))&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=n-r;s>l&&o(t,e[i+r+l])>=0;)a=l,0>=(l=1+(l<<1))&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;l>a;){var h=a+(l-a>>>1);o(t,e[i+h])<0?l=h:a=h+1}return l}function ee(t,e){function i(t,e){l[c]=t,u[c]=e,c+=1}function n(){for(;c>1;){var t=c-2;if(t>=1&&u[t-1]<=u[t]+u[t+1]||t>=2&&u[t-2]<=u[t]+u[t-1])u[t-1]<u[t+1]&&t--;else if(u[t]>u[t+1])break;o(t)}}function r(){for(;c>1;){var t=c-2;t>0&&u[t-1]<u[t+1]&&t--,o(t)}}function o(i){var n=l[i],r=u[i],o=l[i+1],h=u[i+1];u[i]=r+h,i===c-3&&(l[i+1]=l[i+2],u[i+1]=u[i+2]),c--;var p=te(t[o],t,n,r,0,e);n+=p,0!==(r-=p)&&0!==(h=Jt(t[n+r-1],t,o,h,h-1,e))&&(h>=r?a(n,r,o,h):s(n,r,o,h))}function a(i,n,r,o){var a=0;for(a=0;n>a;a++)p[a]=t[i+a];var s=0,l=r,u=i;if(t[u++]=t[l++],0!=--o){if(1===n){for(a=0;o>a;a++)t[u+a]=t[l+a];return void(t[u+o]=p[s])}for(var c,f,d,g=h;;){c=0,f=0,d=!1;do{if(e(t[l],p[s])<0){if(t[u++]=t[l++],f++,c=0,0==--o){d=!0;break}}else if(t[u++]=p[s++],c++,f=0,1==--n){d=!0;break}}while(g>(c|f));if(d)break;do{if(0!==(c=te(t[l],p,s,n,0,e))){for(a=0;c>a;a++)t[u+a]=p[s+a];if(u+=c,s+=c,1>=(n-=c)){d=!0;break}}if(t[u++]=t[l++],0==--o){d=!0;break}if(0!==(f=Jt(p[s],t,l,o,0,e))){for(a=0;f>a;a++)t[u+a]=t[l+a];if(u+=f,l+=f,0===(o-=f)){d=!0;break}}if(t[u++]=p[s++],1==--n){d=!0;break}g--}while(c>=Py||f>=Py);if(d)break;0>g&&(g=0),g+=2}if(h=g,1>h&&(h=1),1===n){for(a=0;o>a;a++)t[u+a]=t[l+a];t[u+o]=p[s]}else{if(0===n)throw new Error;for(a=0;n>a;a++)t[u+a]=p[s+a]}}else for(a=0;n>a;a++)t[u+a]=p[s+a]}function s(i,n,r,o){var a=0;for(a=0;o>a;a++)p[a]=t[r+a];var s=i+n-1,l=o-1,u=r+o-1,c=0,f=0;if(t[u--]=t[s--],0!=--n){if(1===o){for(u-=n,s-=n,f=u+1,c=s+1,a=n-1;a>=0;a--)t[f+a]=t[c+a];return void(t[u]=p[l])}for(var d=h;;){var g=0,v=0,y=!1;do{if(e(p[l],t[s])<0){if(t[u--]=t[s--],g++,v=0,0==--n){y=!0;break}}else if(t[u--]=p[l--],v++,g=0,1==--o){y=!0;break}}while(d>(g|v));if(y)break;do{if(0!==(g=n-te(p[l],t,i,n,n-1,e))){for(u-=g,s-=g,n-=g,f=u+1,c=s+1,a=g-1;a>=0;a--)t[f+a]=t[c+a];if(0===n){y=!0;break}}if(t[u--]=p[l--],1==--o){y=!0;break}if(0!==(v=o-Jt(t[s],p,0,o,o-1,e))){for(u-=v,l-=v,o-=v,f=u+1,c=l+1,a=0;v>a;a++)t[f+a]=p[c+a];if(1>=o){y=!0;break}}if(t[u--]=t[s--],0==--n){y=!0;break}d--}while(g>=Py||v>=Py);if(y)break;0>d&&(d=0),d+=2}if(h=d,1>h&&(h=1),1===o){for(u-=n,s-=n,f=u+1,c=s+1,a=n-1;a>=0;a--)t[f+a]=t[c+a];t[u]=p[l]}else{if(0===o)throw new Error;for(c=u-(o-1),a=0;o>a;a++)t[c+a]=p[a]}}else for(c=u-(o-1),a=0;o>a;a++)t[c+a]=p[a]}var l,u,h=Py,c=0,p=[];return l=[],u=[],{mergeRuns:n,forceMergeRuns:r,pushRun:i}}function ie(t,e,i,n){i||(i=0),n||(n=t.length);var r=n-i;if(!(2>r)){var o=0;if(Dy>r)return o=Kt(t,i,n,e),void $t(t,i,n,i+o,e);var a=ee(t,e),s=Zt(r);do{if(o=Kt(t,i,n,e),s>o){var l=r;l>s&&(l=s),$t(t,i,i+l,i+o,e),o=l}a.pushRun(i,o),a.mergeRuns(),r-=o,i+=o}while(0!==r);a.forceMergeRuns()}}function ne(){Ey||(Ey=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function re(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function oe(t){return t>-Yy&&Yy>t}function ae(t){return t>Yy||-Yy>t}function se(t,e,i,n,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*n+3*o*i)}function le(t,e,i,n,r){var o=1-r;return 3*(((e-t)*o+2*(i-e)*r)*o+(n-i)*r*r)}function ue(t,e,i,n,r,o){var a=n+3*(e-i)-t,s=3*(i-2*e+t),l=3*(e-t),u=t-r,h=s*s-3*a*l,c=s*l-9*a*u,p=l*l-3*s*u,f=0;if(oe(h)&&oe(c))if(oe(s))o[0]=0;else{var d=-l/s;d>=0&&1>=d&&(o[f++]=d)}else{var g=c*c-4*h*p;if(oe(g)){var v=c/h,d=-s/a+v,y=-v/2;d>=0&&1>=d&&(o[f++]=d),y>=0&&1>=y&&(o[f++]=y)}else if(g>0){var m=Fy(g),_=h*s+1.5*a*(-c+m),x=h*s+1.5*a*(-c-m);_=0>_?-zy(-_,Wy):zy(_,Wy),x=0>x?-zy(-x,Wy):zy(x,Wy);var d=(-s-(_+x))/(3*a);d>=0&&1>=d&&(o[f++]=d)}else{var w=(2*h*s-3*a*c)/(2*Fy(h*h*h)),b=Math.acos(w)/3,S=Fy(h),T=Math.cos(b),d=(-s-2*S*T)/(3*a),y=(-s+S*(T+Vy*Math.sin(b)))/(3*a),M=(-s+S*(T-Vy*Math.sin(b)))/(3*a);d>=0&&1>=d&&(o[f++]=d),y>=0&&1>=y&&(o[f++]=y),M>=0&&1>=M&&(o[f++]=M)}}return f}function he(t,e,i,n,r){var o=6*i-12*e+6*t,a=9*e+3*n-3*t-9*i,s=3*e-3*t,l=0;if(oe(a)){if(ae(o)){var u=-s/o;u>=0&&1>=u&&(r[l++]=u)}}else{var h=o*o-4*a*s;if(oe(h))r[0]=-o/(2*a);else if(h>0){var c=Fy(h),u=(-o+c)/(2*a),p=(-o-c)/(2*a);u>=0&&1>=u&&(r[l++]=u),p>=0&&1>=p&&(r[l++]=p)}}return l}function ce(t,e,i,n,r,o){var a=(e-t)*r+t,s=(i-e)*r+e,l=(n-i)*r+i,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=n}function pe(t,e,i,n,r,o,a,s,l,u,h){var c,p,f,d,g,v=.005,y=1/0;Xy[0]=l,Xy[1]=u;for(var m=0;1>m;m+=.05)Uy[0]=se(t,i,r,a,m),Uy[1]=se(e,n,o,s,m),d=Kv(Xy,Uy),y>d&&(c=m,y=d);y=1/0;for(var _=0;32>_&&!(Hy>v);_++)p=c-v,f=c+v,Uy[0]=se(t,i,r,a,p),Uy[1]=se(e,n,o,s,p),d=Kv(Uy,Xy),p>=0&&y>d?(c=p,y=d):(jy[0]=se(t,i,r,a,f),jy[1]=se(e,n,o,s,f),g=Kv(jy,Xy),1>=f&&y>g?(c=f,y=g):v*=.5);return h&&(h[0]=se(t,i,r,a,c),h[1]=se(e,n,o,s,c)),Fy(y)}function fe(t,e,i,n,r,o,a,s,l){for(var u=t,h=e,c=0,p=1/l,f=1;l>=f;f++){var d=f*p,g=se(t,i,r,a,d),v=se(e,n,o,s,d),y=g-u,m=v-h;c+=Math.sqrt(y*y+m*m),u=g,h=v}return c}function de(t,e,i,n){var r=1-n;return r*(r*t+2*n*e)+n*n*i}function ge(t,e,i,n){return 2*((1-n)*(e-t)+n*(i-e))}function ve(t,e,i,n,r){var o=t-2*e+i,a=2*(e-t),s=t-n,l=0;if(oe(o)){if(ae(a)){var u=-s/a;u>=0&&1>=u&&(r[l++]=u)}}else{var h=a*a-4*o*s;if(oe(h)){var u=-a/(2*o);u>=0&&1>=u&&(r[l++]=u)}else if(h>0){var c=Fy(h),u=(-a+c)/(2*o),p=(-a-c)/(2*o);u>=0&&1>=u&&(r[l++]=u),p>=0&&1>=p&&(r[l++]=p)}}return l}function ye(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n}function me(t,e,i,n,r){var o=(e-t)*n+t,a=(i-e)*n+e,s=(a-o)*n+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=i}function _e(t,e,i,n,r,o,a,s,l){var u,h=.005,c=1/0;Xy[0]=a,Xy[1]=s;for(var p=0;1>p;p+=.05){Uy[0]=de(t,i,r,p),Uy[1]=de(e,n,o,p);var f=Kv(Xy,Uy);c>f&&(u=p,c=f)}c=1/0;for(var d=0;32>d&&!(Hy>h);d++){var g=u-h,v=u+h;Uy[0]=de(t,i,r,g),Uy[1]=de(e,n,o,g);var f=Kv(Uy,Xy);if(g>=0&&c>f)u=g,c=f;else{jy[0]=de(t,i,r,v),jy[1]=de(e,n,o,v);var y=Kv(jy,Xy);1>=v&&c>y?(u=v,c=y):h*=.5}}return l&&(l[0]=de(t,i,r,u),l[1]=de(e,n,o,u)),Fy(c)}function xe(t,e,i,n,r,o,a){for(var s=t,l=e,u=0,h=1/a,c=1;a>=c;c++){var p=c*h,f=de(t,i,r,p),d=de(e,n,o,p),g=f-s,v=d-l;u+=Math.sqrt(g*g+v*v),s=f,l=d}return u}function we(t){var e=t&&Gy.exec(t);if(e){var i=e[1].split(","),n=+H(i[0]),r=+H(i[1]),o=+H(i[2]),a=+H(i[3]);if(isNaN(n+r+o+a))return;var s=[];return function(t){return 0>=t?0:t>=1?1:ue(0,n,o,1,t,s)&&se(0,r,a,1,s[0])}}}function be(t){return t=Math.round(t),0>t?0:t>255?255:t}function Se(t){return t=Math.round(t),0>t?0:t>360?360:t}function Te(t){return 0>t?0:t>1?1:t}function Me(t){var e=t;return be(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100*255:parseInt(e,10))}function Ce(t){var e=t;return Te(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100:parseFloat(e))}function Ie(t,e,i){return 0>i?i+=1:i>1&&(i-=1),1>6*i?t+(e-t)*i*6:1>2*i?e:2>3*i?t+(e-t)*(2/3-i)*6:t}function ke(t,e,i){return t+(e-t)*i}function Ae(t,e,i,n,r){return t[0]=e,t[1]=i,t[2]=n,t[3]=r,t}function De(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function Pe(t,e){tm&&De(tm,e),tm=Jy.put(t,tm||e.slice())}function Oe(t,e){if(t){e=e||[];var i=Jy.get(t);if(i)return De(e,i);t+="";var n=t.replace(/ /g,"").toLowerCase();if(n in $y)return De(e,$y[n]),Pe(t,e),e;var r=n.length;if("#"!==n.charAt(0)){var o=n.indexOf("("),a=n.indexOf(")");if(-1!==o&&a+1===r){var s=n.substr(0,o),l=n.substr(o+1,a-(o+1)).split(","),u=1;switch(s){case"rgba":if(4!==l.length)return 3===l.length?Ae(e,+l[0],+l[1],+l[2],1):Ae(e,0,0,0,1);u=Ce(l.pop());case"rgb":return l.length>=3?(Ae(e,Me(l[0]),Me(l[1]),Me(l[2]),3===l.length?u:Ce(l[3])),Pe(t,e),e):void Ae(e,0,0,0,1);case"hsla":return 4!==l.length?void Ae(e,0,0,0,1):(l[3]=Ce(l[3]),Le(l,e),Pe(t,e),e);case"hsl":return 3!==l.length?void Ae(e,0,0,0,1):(Le(l,e),Pe(t,e),e);default:return}}Ae(e,0,0,0,1)}else{if(4===r||5===r){var h=parseInt(n.slice(1,4),16);return h>=0&&4095>=h?(Ae(e,(3840&h)>>4|(3840&h)>>8,240&h|(240&h)>>4,15&h|(15&h)<<4,5===r?parseInt(n.slice(4),16)/15:1),Pe(t,e),e):void Ae(e,0,0,0,1)}if(7===r||9===r){var h=parseInt(n.slice(1,7),16);return h>=0&&16777215>=h?(Ae(e,(16711680&h)>>16,(65280&h)>>8,255&h,9===r?parseInt(n.slice(7),16)/255:1),Pe(t,e),e):void Ae(e,0,0,0,1)}}}}function Le(t,e){var i=(parseFloat(t[0])%360+360)%360/360,n=Ce(t[1]),r=Ce(t[2]),o=.5>=r?r*(n+1):r+n-r*n,a=2*r-o;return e=e||[],Ae(e,be(255*Ie(a,o,i+1/3)),be(255*Ie(a,o,i)),be(255*Ie(a,o,i-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Ee(t){if(t){var e,i,n=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(n,r,o),s=Math.max(n,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,i=0;else{i=.5>u?l/(s+a):l/(2-s-a);var h=((s-n)/6+l/2)/l,c=((s-r)/6+l/2)/l,p=((s-o)/6+l/2)/l;n===s?e=p-c:r===s?e=1/3+h-p:o===s&&(e=2/3+c-h),0>e&&(e+=1),e>1&&(e-=1)}var f=[360*e,i,u];return null!=t[3]&&f.push(t[3]),f}}function Re(t,e){var i=Oe(t);if(i){for(var n=0;3>n;n++)i[n]=0>e?i[n]*(1-e)|0:(255-i[n])*e+i[n]|0,i[n]>255?i[n]=255:i[n]<0&&(i[n]=0);return He(i,4===i.length?"rgba":"rgb")}}function Be(t){var e=Oe(t);return e?((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1):void 0}function Ne(t,e,i){if(e&&e.length&&t>=0&&1>=t){i=i||[];var n=t*(e.length-1),r=Math.floor(n),o=Math.ceil(n),a=e[r],s=e[o],l=n-r;return i[0]=be(ke(a[0],s[0],l)),i[1]=be(ke(a[1],s[1],l)),i[2]=be(ke(a[2],s[2],l)),i[3]=Te(ke(a[3],s[3],l)),i}}function ze(t,e,i){if(e&&e.length&&t>=0&&1>=t){var n=t*(e.length-1),r=Math.floor(n),o=Math.ceil(n),a=Oe(e[r]),s=Oe(e[o]),l=n-r,u=He([be(ke(a[0],s[0],l)),be(ke(a[1],s[1],l)),be(ke(a[2],s[2],l)),Te(ke(a[3],s[3],l))],"rgba");return i?{color:u,leftIndex:r,rightIndex:o,value:n}:u}}function Fe(t,e,i,n){var r=Oe(t);return t?(r=Ee(r),null!=e&&(r[0]=Se(e)),null!=i&&(r[1]=Ce(i)),null!=n&&(r[2]=Ce(n)),He(Le(r),"rgba")):void 0}function Ye(t,e){var i=Oe(t);return i&&null!=e?(i[3]=Te(e),He(i,"rgba")):void 0}function He(t,e){if(t&&t.length){var i=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(i+=","+t[3]),e+"("+i+")"}}function Ve(t,e){var i=Oe(t);return i?(.299*i[0]+.587*i[1]+.114*i[2])*i[3]/255+(1-i[3])*e:0}function We(){return He([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}function Xe(t){return"linear"===t.type}function Ue(t){return"radial"===t.type}function je(t,e,i){return(e-t)*i+t}function Ge(t,e,i,n){for(var r=e.length,o=0;r>o;o++)t[o]=je(e[o],i[o],n);return t}function qe(t,e,i,n){for(var r=e.length,o=r&&e[0].length,a=0;r>a;a++){t[a]||(t[a]=[]);for(var s=0;o>s;s++)t[a][s]=je(e[a][s],i[a][s],n)}return t}function Ze(t,e,i,n){for(var r=e.length,o=0;r>o;o++)t[o]=e[o]+i[o]*n;return t}function Ke(t,e,i,n){for(var r=e.length,o=r&&e[0].length,a=0;r>a;a++){t[a]||(t[a]=[]);for(var s=0;o>s;s++)t[a][s]=e[a][s]+i[a][s]*n}return t}function Qe(t,e){for(var i=t.length,n=e.length,r=i>n?e:t,o=Math.min(i,n),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(i,n);s++)r.push({offset:a.offset,color:a.color.slice()})}function $e(t,e,i){var n=t,r=e;if(n.push&&r.push){var o=n.length,a=r.length;if(o!==a){if(o>a)n.length=a;else for(var s=o;a>s;s++)n.push(1===i?r[s]:rm.call(r[s]))}for(var l=n[0]&&n[0].length,s=0;s<n.length;s++)if(1===i)isNaN(n[s])&&(n[s]=r[s]);else for(var u=0;l>u;u++)isNaN(n[s][u])&&(n[s][u]=r[s][u])}}function Je(t){if(f(t)){var e=t.length;if(f(t[0])){for(var i=[],n=0;e>n;n++)i.push(rm.call(t[n]));return i}return rm.call(t)}return t}function ti(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function ei(t){return f(t&&t[0])?2:1}function ii(t){return t===sm||t===lm}function ni(t){return t===om||t===am}function ri(){return(new Date).getTime()}function oi(t){var e=t.pointerType;return"pen"===e||"touch"===e}function ai(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function si(t){t&&(t.zrByTouch=!0)}function li(t,e){return At(t.dom,new ym(t,e),!0)}function ui(t,e){for(var i=e,n=!1;i&&9!==i.nodeType&&!(n=i.domBelongToZr||i!==e&&i===t.painterRoot);)i=i.parentNode;return n}function hi(t,e){var i=e.domHandlers;xv.pointerEventsSupported?d(dm.pointer,function(n){pi(e,n,function(e){i[n].call(t,e)})}):(xv.touchEventsSupported&&d(dm.touch,function(n){pi(e,n,function(r){i[n].call(t,r),ai(e)})}),d(dm.mouse,function(n){pi(e,n,function(r){r=kt(r),e.touching||i[n].call(t,r)})}))}function ci(t,e){function i(i){function n(n){n=kt(n),ui(t,n.target)||(n=li(t,n),e.domHandlers[i].call(t,n))}pi(e,i,n,{capture:!0})}xv.pointerEventsSupported?d(gm.pointer,i):xv.touchEventsSupported||d(gm.mouse,i)}function pi(t,e,i,n){t.mounted[e]=i,t.listenerOpts[e]=n,Pt(t.domTarget,e,i,n)}function fi(t){var e=t.mounted;for(var i in e)e.hasOwnProperty(i)&&Ot(t.domTarget,i,e[i],t.listenerOpts[i]);t.mounted={}}function di(t){return t>km||-km>t}function gi(t,e){for(var i=0;i<Em.length;i++){var n=Em[i];t[n]=e[n]}}function vi(t,e){e=e||bv;var i=Rm[e];i||(i=Rm[e]=new Qy(500));var n=i.get(t);return null==n&&(n=Cv.measureText(t,e).width,i.put(t,n)),n}function yi(t,e,i,n){var r=vi(t,e),o=wi(e),a=_i(0,r,i),s=xi(0,o,n);return new by(a,s,r,o)}function mi(t,e,i,n){var r=((t||"")+"").split("\n");if(1===r.length)return yi(r[0],e,i,n);for(var o=new by(0,0,0,0),a=0;a<r.length;a++){var s=yi(r[a],e,i,n);0===a?o.copy(s):o.union(s)}return o}function _i(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function xi(t,e,i){return"middle"===i?t-=e/2:"bottom"===i&&(t-=e),t}function wi(t){return vi("国",t)}function bi(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Si(t,e,i){var n=e.position||"inside",r=null!=e.distance?e.distance:5,o=i.height,a=i.width,s=o/2,l=i.x,u=i.y,h="left",c="top";if(n instanceof Array)l+=bi(n[0],i.width),u+=bi(n[1],i.height),h=null,c=null;else switch(n){case"left":l-=r,u+=s,h="right",c="middle";break;case"right":l+=r+a,u+=s,c="middle";break;case"top":l+=a/2,u-=r,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+r,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=r,u+=s,c="middle";break;case"insideRight":l+=a-r,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=r,h="center";break;case"insideBottom":l+=a/2,u+=o-r,h="center",c="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,h="right";break;case"insideBottomLeft":l+=r,u+=o-r,c="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,h="right",c="bottom"}return t=t||{},t.x=l,t.y=u,t.align=h,t.verticalAlign=c,t}function Ti(t,e,i,n,r){i=i||{};var o=[];Di(t,"",t,e,i,n,o,r);var a=o.length,s=!1,l=i.done,u=i.aborted,h=function(){s=!0,0>=--a&&(s?l&&l():u&&u())},c=function(){0>=--a&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&i.during&&o[0].during(function(t,e){i.during(e)});for(var p=0;p<o.length;p++){var f=o[p];h&&f.done(h),c&&f.aborted(c),i.force&&f.duration(i.duration),f.start(i.easing)}return o}function Mi(t,e,i){for(var n=0;i>n;n++)t[n]=e[n]}function Ci(t){return f(t[0])}function Ii(t,e,i){if(f(e[i]))if(f(t[i])||(t[i]=[]),A(e[i])){var n=e[i].length;t[i].length!==n&&(t[i]=new e[i].constructor(n),Mi(t[i],e[i],n))}else{var r=e[i],o=t[i],a=r.length;if(Ci(r))for(var s=r[0].length,l=0;a>l;l++)o[l]?Mi(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else Mi(o,r,a);o.length=r.length}else t[i]=e[i]}function ki(t,e){return t===e||f(t)&&f(e)&&Ai(t,e)}function Ai(t,e){var i=t.length;if(i!==e.length)return!1;for(var n=0;i>n;n++)if(t[n]!==e[n])return!1;return!0}function Di(t,e,i,n,r,o,a,s){for(var l=_(n),u=r.duration,c=r.delay,p=r.additive,d=r.setToFinal,g=!I(o),v=t.animators,m=[],x=0;x<l.length;x++){var w=l[x],b=n[w];if(null!=b&&null!=i[w]&&(g||o[w]))if(!I(b)||f(b)||P(b))m.push(w);else{if(e){s||(i[w]=b,t.updateDuringAnimation(e));continue}Di(t,w,i[w],b,r,o&&o[w],a,s)}else s||(i[w]=b,t.updateDuringAnimation(e),m.push(w))}var S=m.length;if(!p&&S)for(var T=0;T<v.length;T++){var M=v[T];if(M.targetName===e){var C=M.stopTracks(m);if(C){var k=h(v,M);v.splice(k,1)}}}if(r.force||(m=y(m,function(t){return!ki(n[t],i[t])}),S=m.length),S>0||r.force&&!a.length){var A=void 0,D=void 0,O=void 0;if(s){D={},d&&(A={});for(var T=0;S>T;T++){var w=m[T];D[w]=i[w],d?A[w]=n[w]:i[w]=n[w]}}else if(d){O={};for(var T=0;S>T;T++){var w=m[T];O[w]=Je(i[w]),Ii(i,n,w)}}var M=new cm(i,!1,!1,p?y(v,function(t){return t.targetName===e}):null);M.targetName=e,r.scope&&(M.scope=r.scope),d&&A&&M.whenWithKeys(0,A,m),O&&M.whenWithKeys(0,O,m),M.whenWithKeys(null==u?500:u,s?D:n,m).delay(c||0),t.addAnimator(M,e),a.push(M)}}function Pi(t){delete Xm[t]}function Oi(t){if(!t)return!1;if("string"==typeof t)return Ve(t,1)<Tm;if(t.colorStops){for(var e=t.colorStops,i=0,n=e.length,r=0;n>r;r++)i+=Ve(e[r].color,1);return i/=n,Tm>i}return!1}function Li(t,e){var i=new Um(n(),t,e);return Xm[i.id]=i,i}function Ei(t){t.dispose()}function Ri(){for(var t in Xm)Xm.hasOwnProperty(t)&&Xm[t].dispose();Xm={}}function Bi(t){return Xm[t]}function Ni(t,e){Wm[t]=e}function zi(t){return t.replace(/^\s+|\s+$/g,"")}function Fi(t,e,i,n){var r=e[0],o=e[1],a=i[0],s=i[1],l=o-r,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(n)if(l>0){if(r>=t)return a;if(t>=o)return s}else{if(t>=r)return a;if(o>=t)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}function Yi(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return T(t)?zi(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function Hi(t,e,i){return null==e&&(e=10),e=Math.min(Math.max(0,e),qm),t=(+t).toFixed(e),i?t:+t}function Vi(t){return t.sort(function(t,e){return t-e}),t}function Wi(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,i=0;15>i;i++,e*=10)if(Math.round(t*e)/e===t)return i;return Xi(t)}function Xi(t){var e=t.toString().toLowerCase(),i=e.indexOf("e"),n=i>0?+e.slice(i+1):0,r=i>0?i:e.length,o=e.indexOf("."),a=0>o?0:r-1-o;return Math.max(0,a-n)}function Ui(t,e){var i=Math.log,n=Math.LN10,r=Math.floor(i(t[1]-t[0])/n),o=Math.round(i(Math.abs(e[1]-e[0]))/n),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function ji(t,e,i){return t[e]?Gi(t,i)[e]||0:0}function Gi(t,e){var i=v(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===i)return[];for(var n=Math.pow(10,e),r=g(t,function(t){return(isNaN(t)?0:t)/i*n*100}),o=100*n,a=g(r,function(t){return Math.floor(t)}),s=v(a,function(t,e){return t+e},0),l=g(r,function(t,e){return t-a[e]});o>s;){for(var u=Number.NEGATIVE_INFINITY,h=null,c=0,p=l.length;p>c;++c)l[c]>u&&(u=l[c],h=c);++a[h],l[h]=0,++s}return g(a,function(t){return t/n})}function qi(t,e){var i=Math.max(Wi(t),Wi(e)),n=t+e;return i>qm?n:Hi(n,i)}function Zi(t){var e=2*Math.PI;return(t%e+e)%e}function Ki(t){return t>-Gm&&Gm>t}function Qi(t){if(t instanceof Date)return t;if(T(t)){var e=Zm.exec(t);if(!e)return new Date(NaN);if(e[8]){var i=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(i-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,i,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return new Date(null==t?NaN:Math.round(t))}function $i(t){return Math.pow(10,Ji(t))}function Ji(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function tn(t,e){var i,n=Ji(t),r=Math.pow(10,n),o=t/r;return i=e?1.5>o?1:2.5>o?2:4>o?3:7>o?5:10:1>o?1:2>o?2:3>o?3:5>o?5:10,t=i*r,n>=-20?+t.toFixed(0>n?-n:0):t}function en(t,e){var i=(t.length-1)*e+1,n=Math.floor(i),r=+t[n-1],o=i-n;return o?r+o*(t[n]-r):r}function nn(t){function e(t,i,n){return t.interval[n]<i.interval[n]||t.interval[n]===i.interval[n]&&(t.close[n]-i.close[n]==(n?-1:1)||!n&&e(t,i,1))}t.sort(function(t,i){return e(t,i,0)?-1:1});for(var i=-1/0,n=1,r=0;r<t.length;){for(var o=t[r].interval,a=t[r].close,s=0;2>s;s++)o[s]<=i&&(o[s]=i,a[s]=s?1:1-n),i=o[s],n=a[s];o[0]===o[1]&&a[0]*a[1]!=1?t.splice(r,1):r++}return t}function rn(t){var e=parseFloat(t);return e==t&&(0!==e||!T(t)||t.indexOf("x")<=0)?e:NaN}function on(t){return!isNaN(rn(t))}function an(){return Math.round(9*Math.random())}function sn(t,e){return 0===e?t:sn(e,t%e)}function ln(t,e){return null==t?e:null==e?t:t*e/sn(t,e)}function un(t){throw new Error(t)}function hn(t,e,i){return(e-t)*i+t}function cn(t){return t instanceof Array?t:null==t?[]:[t]}function pn(t,e,i){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,r=i.length;r>n;n++){var o=i[n];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}function fn(t){return!I(t)||b(t)||t instanceof Date?t:t.value}function dn(t){return I(t)&&!(t instanceof Array)}function gn(t,e,i){var n="normalMerge"===i,r="replaceMerge"===i,o="replaceAll"===i;t=t||[],e=(e||[]).slice();var a=U();d(e,function(t,i){return I(t)?void 0:void(e[i]=null)});var s=vn(t,a,i);return(n||r)&&yn(s,t,a,e),n&&mn(s,e),n||r?_n(s,e,r):o&&xn(s,e),wn(s),s}function vn(t,e,i){var n=[];if("replaceAll"===i)return n;for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),n.push({existing:"replaceMerge"===i||Cn(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return n}function yn(t,e,i,n){d(n,function(r,o){if(r&&null!=r.id){var a=Sn(r.id),s=i.get(a);if(null!=s){var l=t[s];Y(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=r,l.existing=e[s],n[o]=null}}})}function mn(t,e){d(e,function(i,n){if(i&&null!=i.name)for(var r=0;r<t.length;r++){var o=t[r].existing;if(!t[r].newOption&&o&&(null==o.id||null==i.id)&&!Cn(i)&&!Cn(o)&&bn("name",o,i))return t[r].newOption=i,void(e[n]=null)}})}function _n(t,e,i){d(e,function(e){if(e){for(var n,r=0;(n=t[r])&&(n.newOption||Cn(n.existing)||n.existing&&null!=e.id&&!bn("id",e,n.existing));)r++;n?(n.newOption=e,n.brandNew=i):t.push({newOption:e,brandNew:i,existing:null,keyInfo:null}),r++}})}function xn(t,e){d(e,function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function wn(t){var e=U();d(t,function(t){var i=t.existing;i&&e.set(i.id,t)}),d(t,function(t){var i=t.newOption;Y(!i||null==i.id||!e.get(i.id)||e.get(i.id)===t,"id duplicates: "+(i&&i.id)),i&&null!=i.id&&e.set(i.id,t),!t.keyInfo&&(t.keyInfo={})}),d(t,function(t,i){var n=t.existing,r=t.newOption,o=t.keyInfo;if(I(r)){if(o.name=null!=r.name?Sn(r.name):n?n.name:Km+i,n)o.id=Sn(n.id);else if(null!=r.id)o.id=Sn(r.id);else{var a=0;do{o.id="\0"+o.name+"\0"+a++}while(e.get(o.id))}e.set(o.id,t)}})}function bn(t,e,i){var n=Tn(e[t],null),r=Tn(i[t],null);return null!=n&&null!=r&&n===r}function Sn(t){return Tn(t,"")}function Tn(t,e){return null==t?e:T(t)?t:C(t)||M(t)?t+"":e}function Mn(t){var e=t.name;return!(!e||!e.indexOf(Km))}function Cn(t){return t&&null!=t.id&&0===Sn(t.id).indexOf(Qm)}function In(t,e,i){d(t,function(t){var n=t.newOption;I(n)&&(t.keyInfo.mainType=e,t.keyInfo.subType=kn(e,n,t.existing,i))})}function kn(t,e,i,n){return e.type?e.type:i?i.subType:n.determineSubType(t,e)}function An(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?b(e.dataIndex)?g(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?b(e.name)?g(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function Dn(){var t="__ec_inner_"+Jm++;return function(e){return e[t]||(e[t]={})}}function Pn(t,e,i){var n=On(e,i),r=n.mainTypeSpecified,o=n.queryOptionMap,a=n.others,s=a,l=i?i.defaultMainType:null;return!r&&l&&o.set(l,{}),o.each(function(e,n){var r=Ln(t,n,e,{useDefault:l===n,enableAll:!i||null==i.enableAll||i.enableAll,enableNone:!i||null==i.enableNone||i.enableNone});s[n+"Models"]=r.models,s[n+"Model"]=r.models[0]}),s}function On(t,e){var i;if(T(t)){var n={};n[t+"Index"]=0,i=n}else i=t;var r=U(),o={},a=!1;return d(i,function(t,i){if("dataIndex"===i||"dataIndexInside"===i)return void(o[i]=t);var n=i.match(/^(\w+)(Index|Id|Name)$/)||[],s=n[1],l=(n[2]||"").toLowerCase();if(s&&l&&!(e&&e.includeMainTypes&&h(e.includeMainTypes,s)<0)){a=a||!!s;(r.get(s)||r.set(s,{}))[l]=t}}),{mainTypeSpecified:a,queryOptionMap:r,others:o}}function Ln(t,e,i,n){n=n||t_;var r=i.index,o=i.id,a=i.name,s={models:null,specified:null!=r||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=t.getComponent(e))?[l]:[],s}return"none"===r||!1===r?(Y(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===r&&(Y(n.enableAll,'`"all"` is not a valid value on index option.'),r=o=a=null),s.models=t.queryComponents({mainType:e,index:r,id:o,name:a}),s)}function En(t,e,i){t.setAttribute?t.setAttribute(e,i):t[e]=i}function Rn(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function Bn(t){return"auto"===t?xv.domSupported?"html":"richText":t||"html"}function Nn(t,e,i,n,r){var o=null==e||"auto"===e;if(null==n)return n;if(C(n)){var a=hn(i||0,n,r);return Hi(a,o?Math.max(Wi(i||0),Wi(n)):e)}if(T(n))return 1>r?i:n;for(var s=[],l=i,u=n,h=Math.max(l?l.length:0,u.length),c=0;h>c;++c){var p=t.getDimensionInfo(c);if(p&&"ordinal"===p.type)s[c]=(1>r&&l?l:u)[c];else{var f=l&&l[c]?l[c]:0,d=u[c],a=hn(f,d,r);s[c]=Hi(a,o?Math.max(Wi(f),Wi(d)):e)}}return s}function zn(t){var e={main:"",sub:""};if(t){var i=t.split(e_);e.main=i[0]||"",e.sub=i[1]||""}return e}function Fn(t){Y(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function Yn(t){return!(!t||!t[n_])}function Hn(t){t.$constructor=t,t.extend=function(t){var i,n=this;return Vn(n)?i=function(t){function i(){return t.apply(this,arguments)||this}return e(i,t),i}(n):(i=function(){(t.$constructor||n).apply(this,arguments)},c(i,this)),l(i.prototype,t),i[n_]=!0,i.extend=this.extend,i.superCall=Xn,i.superApply=Un,i.superClass=n,i}}function Vn(t){return S(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function Wn(t,e){t.extend=e.extend}function Xn(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];return this.superClass.prototype[e].apply(t,i)}function Un(t,e,i){return this.superClass.prototype[e].apply(t,i)}function jn(t){function e(t){var e=i[t.main];return e&&e[i_]||(e=i[t.main]={},e[i_]=!0),e}var i={};t.registerClass=function(t){var n=t.type||t.prototype.type;if(n){Fn(n),t.prototype.type=n;var r=zn(n);if(r.sub){if(r.sub!==i_){var o=e(r);o[r.sub]=t}}else i[r.main]=t}return t},t.getClass=function(t,e,n){var r=i[t];if(r&&r[i_]&&(r=e?r[e]:null),n&&!r)throw new Error(e?"Component "+t+"."+(e||"")+" is used but not imported.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var e=zn(t),n=[],r=i[e.main];return r&&r[i_]?d(r,function(t,e){e!==i_&&n.push(t)}):n.push(r),n},t.hasClass=function(t){var e=zn(t);return!!i[e.main]},t.getAllClassMainTypes=function(){var t=[];return d(i,function(e,i){t.push(i)}),t},t.hasSubTypes=function(t){var e=zn(t),n=i[e.main];return n&&n[i_]}}function Gn(t,e){for(var i=0;i<t.length;i++)t[i][1]||(t[i][1]=t[i][0]);return e=e||!1,function(i,n,r){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(n&&h(n,s)>=0||r&&h(r,s)<0)){var l=i.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}function qn(t){if("string"==typeof t){var e=l_.get(t);return e&&e.image}return t}function Zn(t,e,i,n,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!i)return e;var o=l_.get(t),a={hostEl:i,cb:n,cbPayload:r};return o?(e=o.image,!Qn(e)&&o.pending.push(a)):(e=Cv.loadImage(t,Kn,Kn),e.__zrImageSrc=t,l_.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function Kn(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var i=t.pending[e],n=i.cb;n&&n(this,i.cbPayload),i.hostEl.dirty()}t.pending.length=0}function Qn(t){return t&&t.width&&t.height}function $n(t,e,i,n,r){if(!e)return"";var o=(t+"").split("\n");r=Jn(e,i,n,r);for(var a=0,s=o.length;s>a;a++)o[a]=tr(o[a],r);return o.join("\n")}function Jn(t,e,i,n){n=n||{};var r=l({},n);r.font=e,i=B(i,"..."),r.maxIterations=B(n.maxIterations,2);var o=r.minChar=B(n.minChar,0);r.cnCharWidth=vi("国",e);var a=r.ascCharWidth=vi("a",e);r.placeholder=B(n.placeholder,"");for(var s=t=Math.max(0,t-1),u=0;o>u&&s>=a;u++)s-=a;var h=vi(i,e);return h>s&&(i="",h=0),s=t-h,r.ellipsis=i,r.ellipsisWidth=h,r.contentWidth=s,r.containerWidth=t,r}function tr(t,e){var i=e.containerWidth,n=e.font,r=e.contentWidth;if(!i)return"";var o=vi(t,n);if(i>=o)return t;for(var a=0;;a++){if(r>=o||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?er(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;t=t.substr(0,s),o=vi(t,n)}return""===t&&(t=e.placeholder),t}function er(t,e,i,n){for(var r=0,o=0,a=t.length;a>o&&e>r;o++){var s=t.charCodeAt(o);r+=s>=0&&127>=s?i:n}return o}function ir(t,e){null!=t&&(t+="");var i,n=e.overflow,r=e.padding,o=e.font,a="truncate"===n,s=wi(o),l=B(e.lineHeight,s),u=!!e.backgroundColor,h="truncate"===e.lineOverflow,c=e.width;i=null==c||"break"!==n&&"breakAll"!==n?t?t.split("\n"):[]:t?sr(t,e.font,c,"breakAll"===n,0).lines:[];var p=i.length*l,f=B(e.height,p);if(p>f&&h){var d=Math.floor(f/l);i=i.slice(0,d)}if(t&&a&&null!=c)for(var g=Jn(c,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v=0;v<i.length;v++)i[v]=tr(i[v],g);for(var y=f,m=0,v=0;v<i.length;v++)m=Math.max(vi(i[v],o),m);null==c&&(c=m);var _=m;return r&&(y+=r[0]+r[2],_+=r[1]+r[3],c+=r[1]+r[3]),u&&(_=c),{lines:i,height:f,outerWidth:_,outerHeight:y,lineHeight:l,calculatedLineHeight:s,contentWidth:m,contentHeight:p,width:c}}function nr(t,e){function i(t,e,i){t.width=e,t.lineHeight=i,p+=i,f=Math.max(f,e)}var n=new p_;if(null!=t&&(t+=""),!t)return n;for(var r,o=e.width,a=e.height,s=e.overflow,l="break"!==s&&"breakAll"!==s||null==o?null:{width:o,accumWidth:0,breakAll:"breakAll"===s},u=u_.lastIndex=0;null!=(r=u_.exec(t));){var h=r.index;h>u&&rr(n,t.substring(u,h),e,l),rr(n,r[2],e,l,r[1]),u=u_.lastIndex}u<t.length&&rr(n,t.substring(u,t.length),e,l);var c=[],p=0,f=0,d=e.padding,g="truncate"===s,v="truncate"===e.lineOverflow;t:for(var y=0;y<n.lines.length;y++){for(var m=n.lines[y],_=0,x=0,w=0;w<m.tokens.length;w++){var b=m.tokens[w],S=b.styleName&&e.rich[b.styleName]||{},T=b.textPadding=S.padding,M=T?T[1]+T[3]:0,C=b.font=S.font||e.font;b.contentHeight=wi(C);var I=B(S.height,b.contentHeight);if(b.innerHeight=I,T&&(I+=T[0]+T[2]),b.height=I,b.lineHeight=N(S.lineHeight,e.lineHeight,I),b.align=S&&S.align||e.align,b.verticalAlign=S&&S.verticalAlign||"middle",v&&null!=a&&p+b.lineHeight>a){w>0?(m.tokens=m.tokens.slice(0,w),i(m,x,_),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y);break t}var k=S.width,A=null==k||"auto"===k;if("string"==typeof k&&"%"===k.charAt(k.length-1))b.percentWidth=k,c.push(b),b.contentWidth=vi(b.text,C);else{if(A){var D=S.backgroundColor,P=D&&D.image;P&&(P=qn(P),Qn(P)&&(b.width=Math.max(b.width,P.width*I/P.height)))}var O=g&&null!=o?o-x:null;null!=O&&O<b.width?!A||M>O?(b.text="",b.width=b.contentWidth=0):(b.text=$n(b.text,O-M,C,e.ellipsis,{minChar:e.truncateMinChar}),b.width=b.contentWidth=vi(b.text,C)):b.contentWidth=vi(b.text,C)}b.width+=M,x+=b.width,S&&(_=Math.max(_,b.lineHeight))}i(m,x,_)}n.outerWidth=n.width=B(o,f),n.outerHeight=n.height=B(a,p),n.contentHeight=p,n.contentWidth=f,d&&(n.outerWidth+=d[1]+d[3],n.outerHeight+=d[0]+d[2]);for(var y=0;y<c.length;y++){var b=c[y],L=b.percentWidth;b.width=parseInt(L,10)/100*n.width}return n}function rr(t,e,i,n,r){var o,a,s=""===e,l=r&&i.rich[r]||{},u=t.lines,h=l.font||i.font,c=!1;if(n){var p=l.padding,f=p?p[1]+p[3]:0;if(null!=l.width&&"auto"!==l.width){var d=bi(l.width,n.width)+f;u.length>0&&d+n.accumWidth>n.width&&(o=e.split("\n"),c=!0),n.accumWidth=d}else{var g=sr(e,h,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+f,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var v=0;v<o.length;v++){var y=o[v],m=new h_;if(m.styleName=r,m.text=y,m.isLineHolder=!y&&!s,m.width="number"==typeof l.width?l.width:a?a[v]:vi(y,h),v||c)u.push(new c_([m]));else{var _=(u[u.length-1]||(u[0]=new c_)).tokens,x=_.length;1===x&&_[0].isLineHolder?_[0]=m:(y||!x||s)&&_.push(m)}}}function or(t){var e=t.charCodeAt(0);return e>=33&&383>=e}function ar(t){return!or(t)||!!f_[t]}function sr(t,e,i,n,r){for(var o=[],a=[],s="",l="",u=0,h=0,c=0;c<t.length;c++){var p=t.charAt(c);if("\n"!==p){var f=vi(p,e),d=!n&&!ar(p);(o.length?h+f>i:r+h+f>i)?h?(s||l)&&(d?(s||(s=l,l="",u=0,h=u),o.push(s),a.push(h-u),l+=p,u+=f,s="",h=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(h),s=p,h=f)):d?(o.push(l),a.push(u),l=p,u=f):(o.push(p),a.push(f)):(h+=f,d?(l+=p,u+=f):(l&&(s+=l,l="",u=0),s+=p))}else l&&(s+=l,h+=u),o.push(s),a.push(h),s="",l="",u=0,h=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(h)),1===o.length&&(h+=r),{accumWidth:h,lines:o,linesWidths:a}}function lr(t,e,i){return x_.copy(t.getBoundingRect()),t.transform&&x_.applyTransform(t.transform),w_.width=e,w_.height=i,!x_.intersect(w_)}function ur(t,e,i,n,r,o){r[0]=b_(t,i),r[1]=b_(e,n),o[0]=S_(t,i),o[1]=S_(e,n)}function hr(t,e,i,n,r,o,a,s,l,u){var h=he,c=se,p=h(t,i,r,a,D_);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var f=0;p>f;f++){var d=c(t,i,r,a,D_[f]);l[0]=b_(d,l[0]),u[0]=S_(d,u[0])}p=h(e,n,o,s,P_);for(var f=0;p>f;f++){var g=c(e,n,o,s,P_[f]);l[1]=b_(g,l[1]),u[1]=S_(g,u[1])}l[0]=b_(t,l[0]),u[0]=S_(t,u[0]),l[0]=b_(a,l[0]),u[0]=S_(a,u[0]),l[1]=b_(e,l[1]),u[1]=S_(e,u[1]),l[1]=b_(s,l[1]),u[1]=S_(s,u[1])}function cr(t,e,i,n,r,o,a,s){var l=ye,u=de,h=S_(b_(l(t,i,r),1),0),c=S_(b_(l(e,n,o),1),0),p=u(t,i,r,h),f=u(e,n,o,c);a[0]=b_(t,r,p),a[1]=b_(e,o,f),s[0]=S_(t,r,p),s[1]=S_(e,o,f)}function pr(t,e,i,n,r,o,a,s,l){var u=vt,h=yt,c=Math.abs(r-o);if(1e-4>c%C_&&c>1e-4)return s[0]=t-i,s[1]=e-n,l[0]=t+i,void(l[1]=e+n);if(I_[0]=M_(r)*i+t,I_[1]=T_(r)*n+e,k_[0]=M_(o)*i+t,k_[1]=T_(o)*n+e,u(s,I_,k_),h(l,I_,k_),r%=C_,0>r&&(r+=C_),o%=C_,0>o&&(o+=C_),r>o&&!a?o+=C_:o>r&&a&&(r+=C_),a){var p=o;o=r,r=p}for(var f=0;o>f;f+=Math.PI/2)f>r&&(A_[0]=M_(f)*i+t,A_[1]=T_(f)*n+e,u(s,A_,s),h(l,A_,l))}function fr(t){return Math.round(t/X_*1e8)/1e8%2*X_}function dr(t,e){var i=fr(t[0]);0>i&&(i+=U_);var n=i-t[0],r=t[1];r+=n,!e&&r-i>=U_?r=i+U_:e&&i-r>=U_?r=i-U_:!e&&i>r?r=i+(U_-fr(i-r)):e&&r>i&&(r=i-(U_-fr(r-i))),t[0]=i,t[1]=r}function gr(t,e,i,n,r,o,a){if(0===r)return!1;var s=r,l=0,u=t;if(a>e+s&&a>n+s||e-s>a&&n-s>a||o>t+s&&o>i+s||t-s>o&&i-s>o)return!1;if(t===i)return Math.abs(o-t)<=s/2;l=(e-n)/(t-i),u=(t*n-i*e)/(t-i);var h=l*o-a+u;return s/2*s/2>=h*h/(l*l+1)}function vr(t,e,i,n,r,o,a,s,l,u,h){if(0===l)return!1;var c=l;return!(h>e+c&&h>n+c&&h>o+c&&h>s+c||e-c>h&&n-c>h&&o-c>h&&s-c>h||u>t+c&&u>i+c&&u>r+c&&u>a+c||t-c>u&&i-c>u&&r-c>u&&a-c>u)&&c/2>=pe(t,e,i,n,r,o,a,s,u,h,null)}function yr(t,e,i,n,r,o,a,s,l){if(0===a)return!1;var u=a;return!(l>e+u&&l>n+u&&l>o+u||e-u>l&&n-u>l&&o-u>l||s>t+u&&s>i+u&&s>r+u||t-u>s&&i-u>s&&r-u>s)&&u/2>=_e(t,e,i,n,r,o,s,l,null)}function mr(t){return t%=Z_,0>t&&(t+=Z_),t}function _r(t,e,i,n,r,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var h=Math.sqrt(s*s+l*l);if(h-u>i||i>h+u)return!1;if(Math.abs(n-r)%K_<1e-4)return!0;if(o){var c=n;n=mr(r),r=mr(c)}else n=mr(n),r=mr(r);n>r&&(r+=K_);var p=Math.atan2(l,s);return 0>p&&(p+=K_),p>=n&&r>=p||p+K_>=n&&r>=p+K_}function xr(t,e,i,n,r,o){if(o>e&&o>n||e>o&&n>o)return 0;if(n===e)return 0;var a=(o-e)/(n-e),s=e>n?1:-1;(1===a||0===a)&&(s=e>n?.5:-.5);var l=a*(i-t)+t;return l===r?1/0:l>r?s:0}function wr(t,e){return Math.abs(t-e)<J_}function br(){var t=ex[0];ex[0]=ex[1],ex[1]=t}function Sr(t,e,i,n,r,o,a,s,l,u){if(u>e&&u>n&&u>o&&u>s||e>u&&n>u&&o>u&&s>u)return 0;var h=ue(e,n,o,s,u,tx);if(0===h)return 0;for(var c=0,p=-1,f=void 0,d=void 0,g=0;h>g;g++){var v=tx[g],y=0===v||1===v?.5:1;l>se(t,i,r,a,v)||(0>p&&(p=he(e,n,o,s,ex),ex[1]<ex[0]&&p>1&&br(),f=se(e,n,o,s,ex[0]),p>1&&(d=se(e,n,o,s,ex[1]))),c+=2===p?v<ex[0]?e>f?y:-y:v<ex[1]?f>d?y:-y:d>s?y:-y:v<ex[0]?e>f?y:-y:f>s?y:-y)}return c}function Tr(t,e,i,n,r,o,a,s){if(s>e&&s>n&&s>o||e>s&&n>s&&o>s)return 0;var l=ve(e,n,o,s,tx);if(0===l)return 0;var u=ye(e,n,o);if(u>=0&&1>=u){for(var h=0,c=de(e,n,o,u),p=0;l>p;p++){var f=0===tx[p]||1===tx[p]?.5:1,d=de(t,i,r,tx[p]);a>d||(h+=tx[p]<u?e>c?f:-f:c>o?f:-f)}return h}var f=0===tx[0]||1===tx[0]?.5:1,d=de(t,i,r,tx[0]);return a>d?0:e>o?f:-f}function Mr(t,e,i,n,r,o,a,s){if((s-=e)>i||-i>s)return 0;var l=Math.sqrt(i*i-s*s);tx[0]=-l,tx[1]=l;var u=Math.abs(n-r);if(1e-4>u)return 0;if(u>=$_-1e-4){n=0,r=$_;var h=o?1:-1;return a>=tx[0]+t&&a<=tx[1]+t?h:0}if(n>r){var c=n;n=r,r=c}0>n&&(n+=$_,r+=$_);for(var p=0,f=0;2>f;f++){var d=tx[f];if(d+t>a){var g=Math.atan2(s,d),h=o?1:-1;0>g&&(g=$_+g),(g>=n&&r>=g||g+$_>=n&&r>=g+$_)&&(g>Math.PI/2&&g<1.5*Math.PI&&(h=-h),p+=h)}}return p}function Cr(t,e,i,n,r){for(var o,a,s=t.data,l=t.len(),u=0,h=0,c=0,p=0,f=0,d=0;l>d;){var g=s[d++],v=1===d;switch(g===Q_.M&&d>1&&(i||(u+=xr(h,c,p,f,n,r))),v&&(h=s[d],c=s[d+1],p=h,f=c),g){case Q_.M:p=s[d++],f=s[d++],h=p,c=f;break;case Q_.L:if(i){if(gr(h,c,s[d],s[d+1],e,n,r))return!0}else u+=xr(h,c,s[d],s[d+1],n,r)||0;h=s[d++],c=s[d++];break;case Q_.C:if(i){if(vr(h,c,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],e,n,r))return!0}else u+=Sr(h,c,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],n,r)||0;h=s[d++],c=s[d++];break;case Q_.Q:if(i){if(yr(h,c,s[d++],s[d++],s[d],s[d+1],e,n,r))return!0}else u+=Tr(h,c,s[d++],s[d++],s[d],s[d+1],n,r)||0;h=s[d++],c=s[d++];break;case Q_.A:var y=s[d++],m=s[d++],_=s[d++],x=s[d++],w=s[d++],b=s[d++];d+=1;var S=!!(1-s[d++]);o=Math.cos(w)*_+y,a=Math.sin(w)*x+m,v?(p=o,f=a):u+=xr(h,c,o,a,n,r);var T=(n-y)*x/_+y;if(i){if(_r(y,m,x,w,w+b,S,e,T,r))return!0}else u+=Mr(y,m,x,w,w+b,S,T,r);h=Math.cos(w+b)*_+y,c=Math.sin(w+b)*x+m;break;case Q_.R:p=h=s[d++],f=c=s[d++];var M=s[d++],C=s[d++];if(o=p+M,a=f+C,i){if(gr(p,f,o,f,e,n,r)||gr(o,f,o,a,e,n,r)||gr(o,a,p,a,e,n,r)||gr(p,a,p,f,e,n,r))return!0}else u+=xr(o,f,o,a,n,r),u+=xr(p,a,p,f,n,r);break;case Q_.Z:if(i){if(gr(h,c,p,f,e,n,r))return!0}else u+=xr(h,c,p,f,n,r);h=p,c=f}}return i||wr(c,f)||(u+=xr(h,c,p,f,n,r)||0),0!==u}function Ir(t,e,i){return Cr(t,0,!1,e,i)}function kr(t,e,i,n){return Cr(t,e,!0,i,n)}function Ar(t){return!!(t&&"string"!=typeof t&&t.width&&t.height)}function Dr(t,e){var i,n,r,o,a=e.x,s=e.y,l=e.width,u=e.height,h=e.r;0>l&&(a+=l,l=-l),0>u&&(s+=u,u=-u),"number"==typeof h?i=n=r=o=h:h instanceof Array?1===h.length?i=n=r=o=h[0]:2===h.length?(i=r=h[0],n=o=h[1]):3===h.length?(i=h[0],n=o=h[1],r=h[2]):(i=h[0],n=h[1],r=h[2],o=h[3]):i=n=r=o=0;var c;i+n>l&&(c=i+n,i*=l/c,n*=l/c),r+o>l&&(c=r+o,r*=l/c,o*=l/c),n+r>u&&(c=n+r,n*=u/c,r*=u/c),i+o>u&&(c=i+o,i*=u/c,o*=u/c),t.moveTo(a+i,s),t.lineTo(a+l-n,s),0!==n&&t.arc(a+l-n,s+n,n,-Math.PI/2,0),t.lineTo(a+l,s+u-r),0!==r&&t.arc(a+l-r,s+u-r,r,0,Math.PI/2),t.lineTo(a+o,s+u),0!==o&&t.arc(a+o,s+u-o,o,Math.PI/2,Math.PI),t.lineTo(a,s+i),0!==i&&t.arc(a+i,s+i,i,Math.PI,1.5*Math.PI)}function Pr(t,e,i){if(e){var n=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=n,t.x2=r,t.y1=o,t.y2=a;var s=i&&i.lineWidth;return s?(cx(2*n)===cx(2*r)&&(t.x1=t.x2=Lr(n,s,!0)),cx(2*o)===cx(2*a)&&(t.y1=t.y2=Lr(o,s,!0)),t):t}}function Or(t,e,i){if(e){var n=e.x,r=e.y,o=e.width,a=e.height;t.x=n,t.y=r,t.width=o,t.height=a;var s=i&&i.lineWidth;return s?(t.x=Lr(n,s,!0),t.y=Lr(r,s,!0),t.width=Math.max(Lr(n+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(Lr(r+a,s,!1)-t.y,0===a?0:1),t):t}}function Lr(t,e,i){if(!e)return t;var n=cx(2*t);return(n+cx(e))%2==0?n/2:(n+(i?1:-1))/2}function Er(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?wv+"px":t+"px":t}function Rr(t,e){for(var i=0;i<xx.length;i++){var n=xx[i],r=e[n];null!=r&&(t[n]=r)}}function Br(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function Nr(t){return zr(t),d(t.rich,zr),t}function zr(t){if(t){t.font=yx.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||mx[e]?e:"left";var i=t.verticalAlign;"center"===i&&(i="middle"),t.verticalAlign=null==i||_x[i]?i:"top";t.padding&&(t.padding=F(t.padding))}}function Fr(t,e){return null==t||0>=e||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Yr(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Hr(t,e,i){return"right"===e?t-i[1]:"center"===e?t+i[3]/2-i[1]/2:t+i[3]}function Vr(t){var e=t.text;return null!=e&&(e+=""),e}function Wr(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}function Xr(t){return null!=t&&"none"!==t}function Ur(t){if(T(t)){var e=Yx.get(t);return e||(e=Re(t,-.1),Yx.put(t,e)),e}if(P(t)){var i=l({},t);return i.colorStops=g(t.colorStops,function(t){return{offset:t.offset,color:Re(t.color,-.1)}}),i}return t}function jr(t,e,i){t.onHoverStateChange&&(t.hoverState||0)!==i&&t.onHoverStateChange(e),t.hoverState=i}function Gr(t){jr(t,"emphasis",Dx)}function qr(t){t.hoverState===Dx&&jr(t,"normal",kx)}function Zr(t){jr(t,"blur",Ax)}function Kr(t){t.hoverState===Ax&&jr(t,"normal",kx)}function Qr(t){t.selected=!0}function $r(t){t.selected=!1}function Jr(t,e,i){e(t,i)}function to(t,e,i){Jr(t,e,i),t.isGroup&&t.traverse(function(t){Jr(t,e,i)})}function eo(t,e){switch(e){case"emphasis":t.hoverState=Dx;break;case"normal":t.hoverState=kx;break;case"blur":t.hoverState=Ax;break;case"select":t.selected=!0}}function io(t,e,i,n){for(var r=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=r[s];o[s]=null==l?n&&n[s]:l}for(var a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(i)<0&&"style"===u.targetName&&u.saveTo(o,e)}return o}function no(t,e,i,n){var r=i&&h(i,"select")>=0,o=!1;if(t instanceof ox){var a=Cx(t),s=r?a.selectFill||a.normalFill:a.normalFill,u=r?a.selectStroke||a.normalStroke:a.normalStroke;if(Xr(s)||Xr(u)){n=n||{};var c=n.style||{};"inherit"===c.fill?(o=!0,n=l({},n),c=l({},c),c.fill=s):!Xr(c.fill)&&Xr(s)?(o=!0,n=l({},n),c=l({},c),c.fill=Ur(s)):!Xr(c.stroke)&&Xr(u)&&(o||(n=l({},n),c=l({},c)),c.stroke=Ur(u)),n.style=c}}if(n&&null==n.z2){o||(n=l({},n));var p=t.z2EmphasisLift;n.z2=t.z2+(null!=p?p:Lx)}return n}function ro(t,e,i){if(i&&null==i.z2){i=l({},i);var n=t.z2SelectLift;i.z2=t.z2+(null!=n?n:Ex)}return i}function oo(t,e,i){var n=h(t.currentStates,e)>=0,r=t.style.opacity,o=n?null:io(t,["opacity"],e,{opacity:1});i=i||{};var a=i.style||{};return null==a.opacity&&(i=l({},i),a=l({opacity:n?r:.1*o.opacity},a),i.style=a),i}function ao(t,e){var i=this.states[t];if(this.style){if("emphasis"===t)return no(this,t,e,i);if("blur"===t)return oo(this,t,i);if("select"===t)return ro(this,t,i)}return i}function so(t){t.stateProxy=ao;var e=t.getTextContent(),i=t.getTextGuideLine();e&&(e.stateProxy=ao),i&&(i.stateProxy=ao)}function lo(t,e){!yo(t,e)&&!t.__highByOuter&&to(t,Gr)}function uo(t,e){!yo(t,e)&&!t.__highByOuter&&to(t,qr)}function ho(t,e){t.__highByOuter|=1<<(e||0),to(t,Gr)}function co(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&to(t,qr)}function po(t){to(t,Zr)}function fo(t){to(t,Kr)}function go(t){to(t,Qr)}function vo(t){to(t,$r)}function yo(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function mo(t){var e=t.getModel(),i=[],n=[];e.eachComponent(function(e,r){var o=Ix(r),a="series"===e,s=a?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r);!a&&n.push(s),o.isBlured&&(s.group.traverse(function(t){Kr(t)}),a&&i.push(r)),o.isBlured=!1}),d(n,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(i,!1,e)})}function _o(t,e,i,n){function r(t,e){for(var i=0;i<e.length;i++){var n=t.getItemGraphicEl(e[i]);n&&fo(n)}}var o=n.getModel();if(i=i||"coordinateSystem",null!=t&&e&&"none"!==e){var a=o.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];o.eachSeries(function(t){var o=a===t,u=t.coordinateSystem;u&&u.master&&(u=u.master);var h=u&&s?u===s:o;if(!("series"===i&&!o||"coordinateSystem"===i&&!h||"series"===e&&o)){if(n.getViewOfSeriesModel(t).group.traverse(function(t){Zr(t)}),f(e))r(t.getData(),e);else if(I(e))for(var c=_(e),p=0;p<c.length;p++)r(t.getData(c[p]),e[c[p]]);l.push(t),Ix(t).isBlured=!0}}),o.eachComponent(function(t,e){if("series"!==t){var i=n.getViewOfComponentModel(e);i&&i.toggleBlurSeries&&i.toggleBlurSeries(l,!0,o)}})}}function xo(t,e,i){if(null!=t&&null!=e){var n=i.getModel().getComponent(t,e);if(n){Ix(n).isBlured=!0;var r=i.getViewOfComponentModel(n);r&&r.focusBlurEnabled&&r.group.traverse(function(t){Zr(t)})}}}function wo(t,e,i){var n=t.seriesIndex,r=t.getData(e.dataType);if(r){var o=An(r,e);o=(b(o)?o[0]:o)||0;var a=r.getItemGraphicEl(o);if(!a)for(var s=r.count(),l=0;!a&&s>l;)a=r.getItemGraphicEl(l++);if(a){var u=bx(a);_o(n,u.focus,u.blurScope,i)}else{var h=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);null!=h&&_o(n,h,c,i)}}}function bo(t,e,i,n){var r={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==i)return r;var o=n.getModel().getComponent(t,e);if(!o)return r;var a=n.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return r;for(var s,l=a.findHighDownDispatchers(i),u=0;u<l.length;u++)if("self"===bx(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function So(t,e,i){var n=bx(t),r=bo(n.componentMainType,n.componentIndex,n.componentHighDownName,i),o=r.dispatchers,a=r.focusSelf;o?(a&&xo(n.componentMainType,n.componentIndex,i),d(o,function(t){return lo(t,e)})):(_o(n.seriesIndex,n.focus,n.blurScope,i),"self"===n.focus&&xo(n.componentMainType,n.componentIndex,i),lo(t,e))}function To(t,e,i){mo(i);var n=bx(t),r=bo(n.componentMainType,n.componentIndex,n.componentHighDownName,i).dispatchers;r?d(r,function(t){return uo(t,e)}):uo(t,e)}function Mo(t,e){if(Bo(e)){var i=e.dataType,n=t.getData(i),r=An(n,e);b(r)||(r=[r]),t[e.type===Fx?"toggleSelect":e.type===Nx?"select":"unselect"](r,i)}}function Co(t){d(t.getAllData(),function(e){var i=e.data,n=e.type;i.eachItemGraphicEl(function(e,i){t.isSelected(i,n)?go(e):vo(e)})})}function Io(t){var e=[];return t.eachSeries(function(t){d(t.getAllData(),function(i){var n=(i.data,i.type),r=t.getSelectedDataIndices();if(r.length>0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=n&&(o.dataType=n),e.push(o)}})}),e}function ko(t,e,i){Lo(t,!0),to(t,so),Po(t,e,i)}function Ao(t){Lo(t,!1)}function Do(t,e,i,n){n?Ao(t):ko(t,e,i)}function Po(t,e,i){var n=bx(t);null!=e?(n.focus=e,n.blurScope=i):n.focus&&(n.focus=null)}function Oo(t,e,i,n){i=i||"itemStyle";for(var r=0;r<Hx.length;r++){var o=Hx[r],a=e.getModel([o,i]);t.ensureState(o).style=n?n(a):a[Vx[i]]()}}function Lo(t,e){var i=!1===e,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!i||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!i)}function Eo(t){return!(!t||!t.__highDownDispatcher)}function Ro(t){var e=Mx[t];return null==e&&32>=Tx&&(e=Mx[t]=Tx++),e}function Bo(t){var e=t.type;return e===Nx||e===zx||e===Fx}function No(t){var e=t.type;return e===Rx||e===Bx}function zo(t){var e=Cx(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var i=t.states.select||{};e.selectFill=i.style&&i.style.fill||null,e.selectStroke=i.style&&i.style.stroke||null}function Fo(t,e){if(e){var i,n,r,o,a,s,l=t.data,u=t.len(),h=Wx.M,c=Wx.C,p=Wx.L,f=Wx.R,d=Wx.A,g=Wx.Q;for(r=0,o=0;u>r;){switch(i=l[r++],o=r,n=0,i){case h:case p:n=1;break;case c:n=3;break;case g:n=2;break;case d:var v=e[4],y=e[5],m=Ux(e[0]*e[0]+e[1]*e[1]),_=Ux(e[2]*e[2]+e[3]*e[3]),x=jx(-e[1]/_,e[0]/m);l[r]*=m,l[r++]+=v,l[r]*=_,l[r++]+=y,l[r++]*=m,l[r++]*=_,l[r++]+=x,l[r++]+=x,r+=2,o=r;break;case f:s[0]=l[r++],s[1]=l[r++],gt(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],gt(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;n>a;a++){var w=Xx[a];w[0]=l[r++],w[1]=l[r++],gt(w,w,e),l[o++]=w[0],l[o++]=w[1]}}t.increaseVersion()}}function Yo(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Ho(t,e){return(t[0]*e[0]+t[1]*e[1])/(Yo(t)*Yo(e))}function Vo(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Ho(t,e))}function Wo(t,e,i,n,r,o,a,s,l,u,h){var c=l*(Kx/180),p=Zx(c)*(t-i)/2+qx(c)*(e-n)/2,f=-1*qx(c)*(t-i)/2+Zx(c)*(e-n)/2,d=p*p/(a*a)+f*f/(s*s);d>1&&(a*=Gx(d),s*=Gx(d));var g=(r===o?-1:1)*Gx((a*a*s*s-a*a*f*f-s*s*p*p)/(a*a*f*f+s*s*p*p))||0,v=g*a*f/s,y=g*-s*p/a,m=(t+i)/2+Zx(c)*v-qx(c)*y,_=(e+n)/2+qx(c)*v+Zx(c)*y,x=Vo([1,0],[(p-v)/a,(f-y)/s]),w=[(p-v)/a,(f-y)/s],b=[(-1*p-v)/a,(-1*f-y)/s],S=Vo(w,b);if(Ho(w,b)<=-1&&(S=Kx),Ho(w,b)>=1&&(S=0),0>S){var T=Math.round(S/Kx*1e6)/1e6;S=2*Kx+T%2*Kx}h.addData(u,m,_,a,s,x,S,c,o)}function Xo(t){var e=new q_;if(!t)return e;var i,n=0,r=0,o=n,a=r,s=q_.CMD,l=t.match(Qx);if(!l)return e;for(var u=0;u<l.length;u++){for(var h=l[u],c=h.charAt(0),p=void 0,f=h.match($x)||[],d=f.length,g=0;d>g;g++)f[g]=parseFloat(f[g]);for(var v=0;d>v;){var y=void 0,m=void 0,_=void 0,x=void 0,w=void 0,b=void 0,S=void 0,T=n,M=r,C=void 0,I=void 0;switch(c){case"l":n+=f[v++],r+=f[v++],p=s.L,e.addData(p,n,r);break;case"L":n=f[v++],r=f[v++],p=s.L,e.addData(p,n,r);break;case"m":n+=f[v++],r+=f[v++],p=s.M,e.addData(p,n,r),o=n,a=r,c="l";break;case"M":n=f[v++],r=f[v++],p=s.M,e.addData(p,n,r),o=n,a=r,c="L";break;case"h":n+=f[v++],p=s.L,e.addData(p,n,r);break;case"H":n=f[v++],p=s.L,e.addData(p,n,r);break;case"v":r+=f[v++],p=s.L,e.addData(p,n,r);break;case"V":r=f[v++],p=s.L,e.addData(p,n,r);break;case"C":p=s.C,e.addData(p,f[v++],f[v++],f[v++],f[v++],f[v++],f[v++]),n=f[v-2],r=f[v-1];break;case"c":p=s.C,e.addData(p,f[v++]+n,f[v++]+r,f[v++]+n,f[v++]+r,f[v++]+n,f[v++]+r),n+=f[v-2],r+=f[v-1];break;case"S":y=n,m=r,C=e.len(),I=e.data,i===s.C&&(y+=n-I[C-4],m+=r-I[C-3]),p=s.C,T=f[v++],M=f[v++],n=f[v++],r=f[v++],e.addData(p,y,m,T,M,n,r);break;case"s":y=n,m=r,C=e.len(),I=e.data,i===s.C&&(y+=n-I[C-4],m+=r-I[C-3]),p=s.C,T=n+f[v++],M=r+f[v++],n+=f[v++],r+=f[v++],e.addData(p,y,m,T,M,n,r);break;case"Q":T=f[v++],M=f[v++],n=f[v++],r=f[v++],p=s.Q,e.addData(p,T,M,n,r);break;case"q":T=f[v++]+n,M=f[v++]+r,n+=f[v++],r+=f[v++],p=s.Q,e.addData(p,T,M,n,r);break;case"T":y=n,m=r,C=e.len(),I=e.data,i===s.Q&&(y+=n-I[C-4],m+=r-I[C-3]),n=f[v++],r=f[v++],p=s.Q,e.addData(p,y,m,n,r);break;case"t":y=n,m=r,C=e.len(),I=e.data,i===s.Q&&(y+=n-I[C-4],m+=r-I[C-3]),n+=f[v++],r+=f[v++],p=s.Q,e.addData(p,y,m,n,r);break;case"A":_=f[v++],x=f[v++],w=f[v++],b=f[v++],S=f[v++],T=n,M=r,n=f[v++],r=f[v++],p=s.A,Wo(T,M,n,r,b,S,_,x,w,p,e);break;case"a":_=f[v++],x=f[v++],w=f[v++],b=f[v++],S=f[v++],T=n,M=r,n+=f[v++],r+=f[v++],p=s.A,Wo(T,M,n,r,b,S,_,x,w,p,e)}}("z"===c||"Z"===c)&&(p=s.Z,e.addData(p),n=o,r=a),i=p}return e.toStatic(),e}function Uo(t){return null!=t.setData}function jo(t,e){var i=Xo(t),n=l({},e);return n.buildPath=function(t){if(Uo(t)){t.setData(i.data);var e=t.getContext();e&&t.rebuildPath(e,1)}else{var e=t;i.rebuildPath(e,1)}},n.applyTransform=function(t){Fo(i,t),this.dirtyShape()},n}function Go(t,e){return new Jx(jo(t,e))}function qo(t,i){var n=jo(t,i);return function(t){function i(e){var i=t.call(this,e)||this;return i.applyTransform=n.applyTransform,i.buildPath=n.buildPath,i}return e(i,t),i}(Jx)}function Zo(t,e){for(var i=[],n=t.length,r=0;n>r;r++){var o=t[r];i.push(o.getUpdatedPathProxy(!0))}var a=new ox(e);return a.createPathProxy(),a.buildPath=function(t){if(Uo(t)){t.appendPath(i);var e=t.getContext();e&&t.rebuildPath(e,1)}},a}function Ko(t,e,i,n,r,o,a,s){var l=i-t,u=n-e,h=a-r,c=s-o,p=c*l-h*u;return dw>p*p?void 0:(p=(h*(e-o)-c*(t-r))/p,[t+p*l,e+p*u])}function Qo(t,e,i,n,r,o,a){var s=t-i,l=e-n,u=(a?o:-o)/cw(s*s+l*l),h=u*l,c=-u*s,p=t+h,f=e+c,d=i+h,g=n+c,v=(p+d)/2,y=(f+g)/2,m=d-p,_=g-f,x=m*m+_*_,w=r-o,b=p*g-d*f,S=(0>_?-1:1)*cw(pw(0,w*w*x-b*b)),T=(b*_-m*S)/x,M=(-b*m-_*S)/x,C=(b*_+m*S)/x,I=(-b*m+_*S)/x,k=T-v,A=M-y,D=C-v,P=I-y;return k*k+A*A>D*D+P*P&&(T=C,M=I),{cx:T,cy:M,x0:-h,y0:-c,x1:T*(r/w-1),y1:M*(r/w-1)}}function $o(t){var e;if(b(t)){var i=t.length;if(!i)return t;e=1===i?[t[0],t[0],0,0]:2===i?[t[0],t[0],t[1],t[1]]:3===i?t.concat(t[2]):t}else e=[t,t,t,t];return e}function Jo(t,e){var i,n=pw(e.r,0),r=pw(e.r0||0,0),o=n>0,a=r>0;if(o||a){if(o||(n=r,r=0),r>n){var s=n;n=r,r=s}var l=e.startAngle,u=e.endAngle;if(!isNaN(l)&&!isNaN(u)){var h=e.cx,c=e.cy,p=!!e.clockwise,f=hw(u-l),d=f>ow&&f%ow;if(d>dw&&(f=d),n>dw)if(f>ow-dw)t.moveTo(h+n*sw(l),c+n*aw(l)),t.arc(h,c,n,l,u,!p),r>dw&&(t.moveTo(h+r*sw(u),c+r*aw(u)),t.arc(h,c,r,u,l,p));else{var g=void 0,v=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,M=void 0,C=void 0,I=void 0,k=void 0,A=void 0,D=void 0,P=n*sw(l),O=n*aw(l),L=r*sw(u),E=r*aw(u),R=f>dw;if(R){var B=e.cornerRadius;B&&(i=$o(B),g=i[0],v=i[1],y=i[2],m=i[3]);var N=hw(n-r)/2;if(_=fw(N,y),x=fw(N,m),w=fw(N,g),b=fw(N,v),M=S=pw(_,x),C=T=pw(w,b),(S>dw||T>dw)&&(I=n*sw(u),k=n*aw(u),A=r*sw(l),D=r*aw(l),rw>f)){var z=Ko(P,O,A,D,I,k,L,E);if(z){var F=P-z[0],Y=O-z[1],H=I-z[0],V=k-z[1],W=1/aw(lw((F*H+Y*V)/(cw(F*F+Y*Y)*cw(H*H+V*V)))/2),X=cw(z[0]*z[0]+z[1]*z[1]);M=fw(S,(n-X)/(W+1)),C=fw(T,(r-X)/(W-1))}}}if(R)if(M>dw){var U=fw(y,M),j=fw(m,M),G=Qo(A,D,P,O,n,U,p),q=Qo(I,k,L,E,n,j,p);t.moveTo(h+G.cx+G.x0,c+G.cy+G.y0),S>M&&U===j?t.arc(h+G.cx,c+G.cy,M,uw(G.y0,G.x0),uw(q.y0,q.x0),!p):(U>0&&t.arc(h+G.cx,c+G.cy,U,uw(G.y0,G.x0),uw(G.y1,G.x1),!p),t.arc(h,c,n,uw(G.cy+G.y1,G.cx+G.x1),uw(q.cy+q.y1,q.cx+q.x1),!p),j>0&&t.arc(h+q.cx,c+q.cy,j,uw(q.y1,q.x1),uw(q.y0,q.x0),!p))}else t.moveTo(h+P,c+O),t.arc(h,c,n,l,u,!p);else t.moveTo(h+P,c+O);if(r>dw&&R)if(C>dw){var U=fw(g,C),j=fw(v,C),G=Qo(L,E,I,k,r,-j,p),q=Qo(P,O,A,D,r,-U,p);t.lineTo(h+G.cx+G.x0,c+G.cy+G.y0),T>C&&U===j?t.arc(h+G.cx,c+G.cy,C,uw(G.y0,G.x0),uw(q.y0,q.x0),!p):(j>0&&t.arc(h+G.cx,c+G.cy,j,uw(G.y0,G.x0),uw(G.y1,G.x1),!p),t.arc(h,c,r,uw(G.cy+G.y1,G.cx+G.x1),uw(q.cy+q.y1,q.cx+q.x1),p),U>0&&t.arc(h+q.cx,c+q.cy,U,uw(q.y1,q.x1),uw(q.y0,q.x0),!p))}else t.lineTo(h+L,c+E),t.arc(h,c,r,u,l,p);else t.lineTo(h+L,c+E)}else t.moveTo(h,c);t.closePath()}}}function ta(t,e,i,n){var r,o,a,s,l=[],u=[],h=[],c=[];if(n){a=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,f=t.length;f>p;p++)vt(a,a,t[p]),yt(s,s,t[p]);vt(a,a,n[0]),yt(s,s,n[1])}for(var p=0,f=t.length;f>p;p++){var d=t[p];if(i)r=t[p?p-1:f-1],o=t[(p+1)%f];else{if(0===p||p===f-1){l.push(J(t[p]));continue}r=t[p-1],o=t[p+1]}nt(u,o,r),ut(u,u,e);var g=ct(d,r),v=ct(d,o),y=g+v;0!==y&&(g/=y,v/=y),ut(h,u,-g),ut(c,u,v);var m=et([],d,h),_=et([],d,c);n&&(yt(m,m,a),vt(m,m,s),yt(_,_,a),vt(_,_,s)),l.push(m),l.push(_)}return i&&l.push(l.shift()),l}function ea(t,e,i){var n=e.smooth,r=e.points;if(r&&r.length>=2){if(n){var o=ta(r,n,i,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;(i?a:a-1)>s;s++){var l=o[2*s],u=o[2*s+1],h=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{t.moveTo(r[0][0],r[0][1]);for(var s=1,c=r.length;c>s;s++)t.lineTo(r[s][0],r[s][1])}i&&t.closePath()}}function ia(t,e,i){var n=t.cpx2,r=t.cpy2;return null!=n||null!=r?[(i?le:se)(t.x1,t.cpx1,t.cpx2,t.x2,e),(i?le:se)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(i?ge:de)(t.x1,t.cpx1,t.x2,e),(i?ge:de)(t.y1,t.cpy1,t.y2,e)]}function na(t,e,i,n,r){var o;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s=e&&e.isAnimationEnabled(),l="update"===t;if(s){var u=void 0,h=void 0,c=void 0;n?(u=B(n.duration,200),h=B(n.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),h=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(u=o.duration),null!=o.easing&&(h=o.easing),null!=o.delay&&(c=o.delay)),S(c)&&(c=c(i,r)),S(u)&&(u=u(i));return{duration:u||0,delay:c,easing:h}}return null}function ra(t,e,i,n,r,o,a){var s,l=!1;S(r)?(a=o,o=r,r=null):I(r)&&(o=r.cb,a=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var h=na(t,n,r,u?s||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,r):null);if(h&&h.duration>0){var c=h.duration,p=h.delay,f=h.easing,d={duration:c,delay:p||0,easing:f,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(i,d):e.animateTo(i,d)}else e.stopAnimation(),!l&&e.attr(i),a&&a(1),o&&o()}function oa(t,e,i,n,r,o){ra("update",t,e,i,n,r,o)}function aa(t,e,i,n,r,o){ra("enter",t,e,i,n,r,o)}function sa(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){if("leave"===t.animators[e].scope)return!0}return!1}function la(t,e,i,n,r,o){sa(t)||ra("leave",t,e,i,n,r,o)}function ua(t,e,i,n){t.removeTextContent(),t.removeTextGuideLine(),la(t,{style:{opacity:0}},e,i,n)}function ha(t,e,i){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||ua(t,e,i,n)}):ua(t,e,i,n)}function ca(t){Vw(t).oldStyle=t.style}function pa(t){return ox.extend(t)}function fa(t,e){return jw(t,e)}function da(t,e){Uw[t]=e}function ga(t){return Uw.hasOwnProperty(t)?Uw[t]:void 0}function va(t,e,i,n){var r=Go(t,e);return i&&("center"===n&&(i=ma(i,r.getBoundingRect())),_a(r,i)),r}function ya(t,e,i){var n=new hx({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===i){var r={width:t.width,height:t.height};n.setStyle(ma(e,r))}}});return n}function ma(t,e){var i,n=e.width/e.height,r=t.height*n;return r<=t.width?i=t.height:(r=t.width,i=r/n),{x:t.x+t.width/2-r/2,y:t.y+t.height/2-i/2,width:r,height:i}}function _a(t,e){if(t.applyTransform){var i=t.getBoundingRect(),n=i.calculateTransform(e);t.applyTransform(n)}}function xa(t,e){return Pr(t,t,{lineWidth:e}),t}function wa(t){return Or(t.shape,t.shape,t.style),t}function ba(t,e){for(var i=Bt([]);t&&t!==e;)zt(i,t.getLocalTransform(),i),t=t.parent;return i}function Sa(t,e,i){return e&&!f(e)&&(e=Lm.getLocalTransform(e)),i&&(e=Vt([],e)),gt([],t,e)}function Ta(t,e,i){var n=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-n:"right"===t?n:0,"top"===t?-r:"bottom"===t?r:0];return o=Sa(o,e,i),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Ma(t){return!t.isGroup}function Ca(t){return null!=t.shape}function Ia(t,e,i){function n(t){var e={x:t.x,y:t.y,rotation:t.rotation};return Ca(t)&&(e.shape=l({},t.shape)),e}if(t&&e){var r=function(t){var e={};return t.traverse(function(t){Ma(t)&&t.anid&&(e[t.anid]=t)}),e}(t);e.traverse(function(t){if(Ma(t)&&t.anid){var e=r[t.anid];if(e){var o=n(t);t.attr(n(e)),oa(t,o,i,bx(t).dataIndex)}}})}}function ka(t,e){return g(t,function(t){var i=t[0];i=Ww(i,e.x),i=Xw(i,e.x+e.width);var n=t[1];return n=Ww(n,e.y),n=Xw(n,e.y+e.height),[i,n]})}function Aa(t,e){var i=Ww(t.x,e.x),n=Xw(t.x+t.width,e.x+e.width),r=Ww(t.y,e.y),o=Xw(t.y+t.height,e.y+e.height);return n>=i&&o>=r?{x:i,y:r,width:n-i,height:o-r}:void 0}function Da(t,e,i){var n=l({rectHover:!0},e),r=n.style={strokeNoScale:!0};return i=i||{x:-1,y:-1,width:2,height:2},t?0===t.indexOf("image://")?(r.image=t.slice(8),u(r,i),new hx(n)):va(t.replace("path://",""),n,i,"center"):void 0}function Pa(t,e,i,n,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(Oa(t,e,i,n,s[0],s[1],a[0],a[1]))return!0;a=s}}function Oa(t,e,i,n,r,o,a,s){var l=i-t,u=n-e,h=a-r,c=s-o,p=La(h,c,l,u);if(Ea(p))return!1;var f=t-r,d=e-o,g=La(f,d,l,u)/p;if(0>g||g>1)return!1;var v=La(f,d,h,c)/p;return!(0>v||v>1)}function La(t,e,i,n){return t*n-i*e}function Ea(t){return 1e-6>=t&&t>=-1e-6}function Ra(t){var e=t.itemTooltipOption,i=t.componentModel,n=t.itemName,r=T(e)?{formatter:e}:e,o=i.mainType,a=i.componentIndex,s={componentType:o,name:n,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&d(_(l),function(t){Z(s,t)||(s[t]=l[t],s.$vars.push(t))});var h=bx(t.el);h.componentMainType=o,h.componentIndex=a,h.tooltipConfig={name:n,option:u({content:n,formatterParams:s},r)}}function Ba(t,e){var i;t.isGroup&&(i=e(t)),i||t.traverse(e)}function Na(t,e){if(t)if(b(t))for(var i=0;i<t.length;i++)Ba(t[i],e);else Ba(t,e)}function za(t,e){for(var i=0;i<Px.length;i++){var n=Px[i],r=e[n],o=t.ensureState(n);o.style=o.style||{},o.style.text=r}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}function Fa(t,e,i){var n,r=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;r&&(n=r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=i?{interpolatedValue:i}:null)),null==n&&(n=S(t.defaultText)?t.defaultText(o,t,i):t.defaultText);for(var l={normal:n},u=0;u<Px.length;u++){var h=Px[u],c=e[h];l[h]=B(r?r.getFormattedLabel(o,h,null,a,c&&c.get("formatter")):null,n)}return l}function Ya(t,e,i,n){i=i||Kw;for(var r=t instanceof yx,o=!1,a=0;a<Ox.length;a++){var s=e[Ox[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=r?t:t.getTextContent();if(o){r||(l||(l=new yx,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=Fa(i,e),h=e.normal,c=!!h.getShallow("show"),p=Va(h,n&&n.normal,i,!1,!r);p.text=u.normal,r||t.setTextConfig(Wa(h,i,!1));for(var a=0;a<Px.length;a++){var f=Px[a],s=e[f];if(s){var d=l.ensureState(f),g=!!B(s.getShallow("show"),c);if(g!==c&&(d.ignore=!g),d.style=Va(s,n&&n[f],i,!0,!r),d.style.text=u[f],!r){t.ensureState(f).textConfig=Wa(s,i,!0)}}}l.silent=!!h.getShallow("silent"),null!=l.style.x&&(p.x=l.style.x),null!=l.style.y&&(p.y=l.style.y),l.ignore=!c,l.useStyle(p),l.dirty(),i.enableTextSetter&&(tb(l).setLabelText=function(t){var n=Fa(i,e,t);za(l,n)})}else l&&(l.ignore=!0);t.dirty()}function Ha(t,e){e=e||"label";for(var i={normal:t.getModel(e)},n=0;n<Px.length;n++){var r=Px[n];i[r]=t.getModel([r,e])}return i}function Va(t,e,i,n,r){var o={};return Xa(o,t,i,n,r),e&&l(o,e),o}function Wa(t,e,i){e=e||{};var n,r={},o=t.getShallow("rotate"),a=B(t.getShallow("distance"),i?null:5),s=t.getShallow("offset");return n=t.getShallow("position")||(i?null:"inside"),"outside"===n&&(n=e.defaultOutsidePosition||"top"),null!=n&&(r.position=n),null!=s&&(r.offset=s),null!=o&&(o*=Math.PI/180,r.rotation=o),null!=a&&(r.distance=a),r.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",r}function Xa(t,e,i,n,r){i=i||Kw;var o,a=e.ecModel,s=a&&a.option.textStyle,l=Ua(e);if(l){o={};for(var u in l)if(l.hasOwnProperty(u)){var h=e.getModel(["rich",u]);ja(o[u]={},h,s,i,n,r,!1,!0)}}o&&(t.rich=o);var c=e.get("overflow");c&&(t.overflow=c);var p=e.get("minMargin");null!=p&&(t.margin=p),ja(t,e,s,i,n,r,!0,!1)}function Ua(t){for(var e;t&&t!==t.ecModel;){var i=(t.option||Kw).rich;if(i){e=e||{};for(var n=_(i),r=0;r<n.length;r++){e[n[r]]=1}}t=t.parentModel}return e}function ja(t,e,i,n,r,o,a,s){i=!r&&i||Kw;var l=n&&n.inheritColor,u=e.getShallow("color"),h=e.getShallow("textBorderColor"),c=B(e.getShallow("opacity"),i.opacity);("inherit"===u||"auto"===u)&&(u=l||null),("inherit"===h||"auto"===h)&&(h=l||null),o||(u=u||i.color,h=h||i.textBorderColor),null!=u&&(t.fill=u),null!=h&&(t.stroke=h);var p=B(e.getShallow("textBorderWidth"),i.textBorderWidth);null!=p&&(t.lineWidth=p);var f=B(e.getShallow("textBorderType"),i.textBorderType);null!=f&&(t.lineDash=f);var d=B(e.getShallow("textBorderDashOffset"),i.textBorderDashOffset);null!=d&&(t.lineDashOffset=d),r||null!=c||s||(c=n&&n.defaultOpacity),null!=c&&(t.opacity=c),r||o||null==t.fill&&n.inheritColor&&(t.fill=n.inheritColor);for(var g=0;g<Qw.length;g++){var v=Qw[g],y=B(e.getShallow(v),i[v]);null!=y&&(t[v]=y)}for(var g=0;g<$w.length;g++){var v=$w[g],y=e.getShallow(v);null!=y&&(t[v]=y)}if(null==t.verticalAlign){var m=e.getShallow("baseline");null!=m&&(t.verticalAlign=m)}if(!a||!n.disableBox){for(var g=0;g<Jw.length;g++){var v=Jw[g],y=e.getShallow(v);null!=y&&(t[v]=y)}var _=e.getShallow("borderType");null!=_&&(t.borderDash=_),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||(t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||(t.borderColor=l)}}function Ga(t,e){var i=e&&e.getModel("textStyle");return H([t.fontStyle||i&&i.getShallow("fontStyle")||"",t.fontWeight||i&&i.getShallow("fontWeight")||"",(t.fontSize||i&&i.getShallow("fontSize")||12)+"px",t.fontFamily||i&&i.getShallow("fontFamily")||"sans-serif"].join(" "))}function qa(t,e,i,n,r){function o(n){var o=Nn(i,a.precision,l,u,n);a.interpolatedValue=1===n?null:o;var h=Fa({labelDataIndex:e,labelFetcher:r,defaultText:s?s(o):o+""},a.statesModels,o);za(t,h)}var a=tb(t);if(a.valueAnimation&&a.prevValue!==a.value){var s=a.defaultInterpolatedText,l=B(a.interpolatedValue,a.prevValue),u=a.value;t.percent=0,(null==a.prevValue?aa:oa)(t,{percent:1},n,e,null,o)}}function Za(t){return[t||"",pb++].join("_")}function Ka(t,e){t=t.toUpperCase(),_b[t]=new cb(e),mb[t]=e}function Qa(t){if(T(t)){var e=mb[t.toUpperCase()]||{};return t===gb||t===vb?o(e):a(o(e),o(mb[yb]),!1)}return a(o(t),o(mb[yb]),!1)}function $a(t){return _b[t]}function Ja(){return _b[yb]}function ts(t,e){return t+="","0000".substr(0,e-t.length)+t}function es(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function is(t){return t===es(t)}function ns(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function rs(t,e,i,n){var r=Qi(t),o=r[ls(i)](),a=r[us(i)]()+1,s=Math.floor((a-1)/3)+1,l=r[hs(i)](),u=r["get"+(i?"UTC":"")+"Day"](),h=r[cs(i)](),c=(h-1)%12+1,p=r[ps(i)](),f=r[fs(i)](),d=r[ds(i)](),g=n instanceof cb?n:$a(n||xb)||Ja(),v=g.getModel("time"),y=v.get("month"),m=v.get("monthAbbr"),_=v.get("dayOfWeek"),x=v.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[a-1]).replace(/{MMM}/g,m[a-1]).replace(/{MM}/g,ts(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,ts(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ts(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,ts(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,ts(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,ts(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,ts(d,3)).replace(/{S}/g,d+"")}function os(t,e,i,n,r){var o=null;if(T(i))o=i;else if(S(i))o=i(t.value,e,{level:t.level});else{var a=l({},Cb);if(t.level>0)for(var s=0;s<Ab.length;++s)a[Ab[s]]="{primary|"+a[Ab[s]]+"}";var h=i?!1===i.inherit?i:u(i,a):a,c=as(t.value,r);if(h[c])o=h[c];else if(h.inherit){for(var p=Db.indexOf(c),s=p-1;s>=0;--s)if(h[c]){o=h[c];break}o=o||a.none}if(b(o)){var f=null==t.level?0:t.level>=0?t.level:o.length+t.level;f=Math.min(f,o.length-1),o=o[f]}}return rs(new Date(t.value),o,r,n)}function as(t,e){var i=Qi(t),n=i[us(e)]()+1,r=i[hs(e)](),o=i[cs(e)](),a=i[ps(e)](),s=i[fs(e)](),l=i[ds(e)](),u=0===l,h=u&&0===s,c=h&&0===a,p=c&&0===o,f=p&&1===r;return f&&1===n?"year":f?"month":p?"day":c?"hour":h?"minute":u?"second":"millisecond"}function ss(t,e,i){var n=C(t)?Qi(t):t;switch(e=e||as(t,i)){case"year":return n[ls(i)]();case"half-year":return n[us(i)]()>=6?1:0;case"quarter":return Math.floor((n[us(i)]()+1)/4);case"month":return n[us(i)]();case"day":return n[hs(i)]();case"half-day":return n[cs(i)]()/24;case"hour":return n[cs(i)]();case"minute":return n[ps(i)]();case"second":return n[fs(i)]();case"millisecond":return n[ds(i)]()}}function ls(t){return t?"getUTCFullYear":"getFullYear"}function us(t){return t?"getUTCMonth":"getMonth"}function hs(t){return t?"getUTCDate":"getDate"}function cs(t){return t?"getUTCHours":"getHours"}function ps(t){return t?"getUTCMinutes":"getMinutes"}function fs(t){return t?"getUTCSeconds":"getSeconds"}function ds(t){return t?"getUTCMilliseconds":"getMilliseconds"}function gs(t){return t?"setUTCFullYear":"setFullYear"}function vs(t){return t?"setUTCMonth":"setMonth"}function ys(t){return t?"setUTCDate":"setDate"}function ms(t){return t?"setUTCHours":"setHours"}function _s(t){return t?"setUTCMinutes":"setMinutes"}function xs(t){return t?"setUTCSeconds":"setSeconds"}function ws(t){return t?"setUTCMilliseconds":"setMilliseconds"}function bs(t,e,i,n,r,o,a,s){return new yx({style:{text:t,font:e,align:i,verticalAlign:n,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()}function Ss(t){if(!on(t))return T(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Ts(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}function Ms(t,e,i){function n(t){return t&&H(t)?t:"-"}function r(t){return!(null==t||isNaN(t)||!isFinite(t))}var o="time"===e,a=t instanceof Date;if(o||a){var s=o?Qi(t):t;if(!isNaN(+s))return rs(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",i);if(a)return"-"}if("ordinal"===e)return M(t)?n(t):C(t)&&r(t)?t+"":"-";var l=rn(t);return r(l)?Ss(l):M(t)?n(t):"boolean"==typeof t?t+"":"-"}function Cs(t,e,i){b(e)||(e=[e]);var n=e.length;if(!n)return"";for(var r=e[0].$vars||[],o=0;o<r.length;o++){var a=Ob[o];t=t.replace(Lb(a),Lb(a,0))}for(var s=0;n>s;s++)for(var l=0;l<r.length;l++){var u=e[s][r[l]];t=t.replace(Lb(Ob[l],s),i?Mt(u):u)}return t}function Is(t,e){var i=T(t)?{color:t,extraCssText:e}:t||{},n=i.color,r=i.type;e=i.extraCssText;var o=i.renderMode||"html";return n?"html"===o?"subItem"===r?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Mt(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Mt(n)+";"+(e||"")+'"></span>':{renderMode:o,content:"{"+(i.markerId||"markerX")+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}:""}function ks(t,e,i){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var n=Qi(e),r=i?"getUTC":"get",o=n[r+"FullYear"](),a=n[r+"Month"]()+1,s=n[r+"Date"](),l=n[r+"Hours"](),u=n[r+"Minutes"](),h=n[r+"Seconds"](),c=n[r+"Milliseconds"]();return t=t.replace("MM",ts(a,2)).replace("M",a).replace("yyyy",o).replace("yy",ts(o%100+"",2)).replace("dd",ts(s,2)).replace("d",s).replace("hh",ts(l,2)).replace("h",l).replace("mm",ts(u,2)).replace("m",u).replace("ss",ts(h,2)).replace("s",h).replace("SSS",ts(c,3))}function As(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function Ds(t,e){return e=e||"transparent",T(t)?t:I(t)?t.colorStops&&(t.colorStops[0]||{}).color||e:e}function Ps(t,e,i,n,r){var o=0,a=0;null==n&&(n=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,u){var h,c,p=l.getBoundingRect(),f=e.childAt(u+1),d=f&&f.getBoundingRect();if("horizontal"===t){var g=p.width+(d?-d.x+p.x:0);h=o+g,h>n||l.newline?(o=0,h=g,a+=s+i,s=p.height):s=Math.max(s,p.height)}else{var v=p.height+(d?-d.y+p.y:0);c=a+v,c>r||l.newline?(o+=s+i,a=0,c=v,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=h+i:a=c+i)})}function Os(t,e,i){i=Pb(i||0);var n=e.width,r=e.height,o=Yi(t.left,n),a=Yi(t.top,r),s=Yi(t.right,n),l=Yi(t.bottom,r),u=Yi(t.width,n),h=Yi(t.height,r),c=i[2]+i[0],p=i[1]+i[3],f=t.aspect;switch(isNaN(u)&&(u=n-s-p-o),isNaN(h)&&(h=r-l-c-a),null!=f&&(isNaN(u)&&isNaN(h)&&(f>n/r?u=.8*n:h=.8*r),isNaN(u)&&(u=f*h),isNaN(h)&&(h=u/f)),isNaN(o)&&(o=n-s-u-p),isNaN(a)&&(a=r-l-h-c),t.left||t.right){case"center":o=n/2-u/2-i[3];break;case"right":o=n-u-p}switch(t.top||t.bottom){case"middle":case"center":a=r/2-h/2-i[0];break;case"bottom":a=r-h-c}o=o||0,a=a||0,isNaN(u)&&(u=n-p-o-(s||0)),isNaN(h)&&(h=r-c-a-(l||0));var d=new by(o+i[3],a+i[0],u,h);return d.margin=i,d}function Ls(t){var e=t.layoutMode||t.constructor.layoutMode;return I(e)?e:e?{type:e}:null}function Es(t,e,i){function n(i,n){var a={},l=0,u={},h=0;if(Eb(i,function(e){u[e]=t[e]}),Eb(i,function(t){r(e,t)&&(a[t]=u[t]=e[t]),o(a,t)&&l++,o(u,t)&&h++}),s[n])return o(e,i[1])?u[i[2]]=null:o(e,i[2])&&(u[i[1]]=null),u;if(2!==h&&l){if(l>=2)return a;for(var c=0;c<i.length;c++){var p=i[c];if(!r(a,p)&&r(t,p)){a[p]=t[p];break}}return a}return u}function r(t,e){return t.hasOwnProperty(e)}function o(t,e){return null!=t[e]&&"auto"!==t[e]}function a(t,e,i){Eb(t,function(t){e[t]=i[t]})}var s=i&&i.ignoreSize;!b(s)&&(s=[s,s]);var l=n(Bb[0],0),u=n(Bb[1],1);a(Bb[0],t,l),a(Bb[1],t,u)}function Rs(t){return Bs({},t)}function Bs(t,e){return e&&t&&Eb(Rb,function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t}function Ns(t){var e=[];return d(zb.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=g(e,function(t){return zn(t).main}),"dataset"!==t&&h(e,"dataset")<=0&&e.unshift("dataset"),e}function zs(t){tS(t).datasetMap=U()}function Fs(t,e,i){function n(t,e,i){for(var n=0;i>n;n++)t.push(e+n)}function r(t){var e=t.dimsDef;return e?e.length:1}var o={},a=Ys(e);if(!a||!t)return o;var s,l,u=[],h=[],c=e.ecModel,p=tS(c).datasetMap,f=a.uid+"_"+i.seriesLayoutBy;t=t.slice(),d(t,function(e,i){var n=I(e)?e:t[i]={name:e};"ordinal"===n.type&&null==s&&(s=i,l=r(n)),o[n.name]=[]});var g=p.get(f)||p.set(f,{categoryWayDim:l,valueWayDim:0});return d(t,function(t,e){var i=t.name,a=r(t);if(null==s){var l=g.valueWayDim;n(o[i],l,a),n(h,l,a),g.valueWayDim+=a}else if(s===e)n(o[i],0,a),n(u,0,a);else{var l=g.categoryWayDim;n(o[i],l,a),n(h,l,a),g.categoryWayDim+=a}}),u.length&&(o.itemName=u),h.length&&(o.seriesName=h),o}function Ys(t){return t.get("data",!0)?void 0:Ln(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},t_).models[0]}function Hs(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?Ln(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},t_).models:[]}function Vs(t,e){return Ws(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Ws(t,e,i,n,r,o){function a(t){var e=T(t);return null!=t&&isFinite(t)&&""!==t?e?Jb.Might:Jb.Not:e&&"-"!==t?Jb.Must:void 0}var s;if(A(t))return Jb.Not;var l,u;if(n){var h=n[o];I(h)?(l=h.name,u=h.type):T(h)&&(l=h)}if(null!=u)return"ordinal"===u?Jb.Must:Jb.Not;if(e===jb){var c=t;if(i===$b){for(var p=c[o],f=0;f<(p||[]).length&&5>f;f++)if(null!=(s=a(p[r+f])))return s}else for(var f=0;f<c.length&&5>f;f++){var d=c[r+f];if(d&&null!=(s=a(d[o])))return s}}else if(e===Gb){var g=t;if(!l)return Jb.Not;for(var f=0;f<g.length&&5>f;f++){var v=g[f];if(v&&null!=(s=a(v[l])))return s}}else if(e===qb){var y=t;if(!l)return Jb.Not;var p=y[l];if(!p||A(p))return Jb.Not;for(var f=0;f<p.length&&5>f;f++)if(null!=(s=a(p[f])))return s}else if(e===Ub)for(var m=t,f=0;f<m.length&&5>f;f++){var v=m[f],_=fn(v);if(!b(_))return Jb.Not;if(null!=(s=a(_[o])))return s}return Jb.Not}function Xs(t,e,i){var n=eS.get(e);if(!n)return i;var r=n(t);return r?i.concat(r):i}function Us(t,e){for(var i=t.length,n=0;i>n;n++)if(t[n].length>e)return t[n];return t[i-1]}function js(t,e,i,n,r,o,a){o=o||t;var s=e(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var h=null!=a&&n?Us(n,a):i;if((h=h||i)&&h.length){var c=h[l];return r&&(u[r]=c),s.paletteIdx=(l+1)%h.length,c}}function Gs(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}function qs(t,e){if(e){var i=e.seriesIndex,n=e.seriesId,r=e.seriesName;return null!=i&&t.componentIndex!==i||null!=n&&t.id!==n||null!=r&&t.name!==r}}function Zs(t,e){var i=t.color&&!t.colorLayer;d(e,function(e,n){"colorLayer"===n&&i||zb.hasClass(n)||("object"==typeof e?t[n]=t[n]?a(t[n],e,!1):o(e):null==t[n]&&(t[n]=e))})}function Ks(t,e,i){if(b(e)){var n=U();return d(e,function(t){if(null!=t){null!=Tn(t,null)&&n.set(t,!0)}}),y(i,function(e){return e&&n.get(e[t])})}var r=Tn(e,null);return y(i,function(e){return e&&null!=r&&e[t]===r})}function Qs(t,e){return e.hasOwnProperty("subType")?y(t,function(t){return t&&t.subType===e.subType}):t}function $s(t){var e=U();return t&&d(cn(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}function Js(t,e,i){function n(t){d(e,function(e){e(t,i)})}var r,o,a=[],s=t.baseOption,l=t.timeline,u=t.options,h=t.media,c=!!t.media,p=!!(u||l||s&&s.timeline);return s?(o=s,o.timeline||(o.timeline=l)):((p||c)&&(t.options=t.media=null),o=t),c&&b(h)&&d(h,function(t){t&&t.option&&(t.query?a.push(t):r||(r=t))}),n(o),d(u,function(t){return n(t)}),d(a,function(t){return n(t.option)}),{baseOption:o,timelineOptions:u||[],mediaDefault:r,mediaList:a}}function tl(t,e,i){var n={width:e,height:i,aspectratio:e/i},r=!0;return d(t,function(t,e){var i=e.match(vS);if(i&&i[1]&&i[2]){var o=i[1],a=i[2].toLowerCase();el(n[a],t,o)||(r=!1)}}),r}function el(t,e,i){return"min"===i?t>=e:"max"===i?e>=t:t===e}function il(t,e){return t.join(",")===e.join(",")}function nl(t){var e=t&&t.itemStyle;if(e)for(var i=0,n=xS.length;n>i;i++){var r=xS[i],o=e.normal,s=e.emphasis;o&&o[r]&&(t[r]=t[r]||{},t[r].normal?a(t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),s&&s[r]&&(t[r]=t[r]||{},t[r].emphasis?a(t[r].emphasis,s[r]):t[r].emphasis=s[r],s[r]=null)}}function rl(t,e,i){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,r=t[e].emphasis;n&&(i?(t[e].normal=t[e].emphasis=null,u(t[e],n)):t[e]=n),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r,r.focus&&(t.emphasis.focus=r.focus),r.blurScope&&(t.emphasis.blurScope=r.blurScope))}}function ol(t){rl(t,"itemStyle"),rl(t,"lineStyle"),rl(t,"areaStyle"),rl(t,"label"),rl(t,"labelLine"),rl(t,"upperLabel"),rl(t,"edgeLabel")}function al(t,e){var i=_S(t)&&t[e],n=_S(i)&&i.textStyle;if(n)for(var r=0,o=$m.length;o>r;r++){var a=$m[r];n.hasOwnProperty(a)&&(i[a]=n[a])}}function sl(t){t&&(ol(t),al(t,"label"),t.emphasis&&al(t.emphasis,"label"))}function ll(t){if(_S(t)){nl(t),ol(t),al(t,"label"),al(t,"upperLabel"),al(t,"edgeLabel"),t.emphasis&&(al(t.emphasis,"label"),al(t.emphasis,"upperLabel"),al(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(nl(e),sl(e));var i=t.markLine;i&&(nl(i),sl(i));var n=t.markArea;n&&sl(n);var r=t.data;if("graph"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!A(o))for(var a=0;a<o.length;a++)sl(o[a]);d(t.categories,function(t){ol(t)})}if(r&&!A(r))for(var a=0;a<r.length;a++)sl(r[a]);if((e=t.markPoint)&&e.data)for(var s=e.data,a=0;a<s.length;a++)sl(s[a]);if((i=t.markLine)&&i.data)for(var l=i.data,a=0;a<l.length;a++)b(l[a])?(sl(l[a][0]),sl(l[a][1])):sl(l[a]);"gauge"===t.type?(al(t,"axisLabel"),al(t,"title"),al(t,"detail")):"treemap"===t.type?(rl(t.breadcrumb,"itemStyle"),d(t.levels,function(t){ol(t)})):"tree"===t.type&&ol(t.leaves)}}function ul(t){return b(t)?t:t?[t]:[]}function hl(t){return(b(t)?t[0]:t)||{}}function cl(t,e){mS(ul(t.series),function(t){_S(t)&&ll(t)});var i=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&i.push("valueAxis","categoryAxis","logAxis","timeAxis"),mS(i,function(e){mS(ul(t[e]),function(t){t&&(al(t,"axisLabel"),al(t.axisPointer,"label"))})}),mS(ul(t.parallel),function(t){var e=t&&t.parallelAxisDefault;al(e,"axisLabel"),al(e&&e.axisPointer,"label")}),mS(ul(t.calendar),function(t){rl(t,"itemStyle"),al(t,"dayLabel"),al(t,"monthLabel"),al(t,"yearLabel")}),mS(ul(t.radar),function(t){al(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)}),mS(ul(t.geo),function(t){_S(t)&&(sl(t),mS(ul(t.regions),function(t){sl(t)}))}),mS(ul(t.timeline),function(t){sl(t),rl(t,"label"),rl(t,"itemStyle"),rl(t,"controlStyle",!0);var e=t.data;b(e)&&d(e,function(t){I(t)&&(rl(t,"label"),rl(t,"itemStyle"))})}),mS(ul(t.toolbox),function(t){rl(t,"iconStyle"),mS(t.feature,function(t){rl(t,"iconStyle")})}),al(hl(t.axisPointer),"label"),al(hl(t.tooltip).axisPointer,"label")}function pl(t,e){for(var i=e.split(","),n=t,r=0;r<i.length&&null!=(n=n&&n[i[r]]);r++);return n}function fl(t,e,i,n){for(var r,o=e.split(","),a=t,s=0;s<o.length-1;s++)r=o[s],null==a[r]&&(a[r]={}),a=a[r];(n||null==a[o[s]])&&(a[o[s]]=i)}function dl(t){t&&d(wS,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}function gl(t){var e=t&&t.itemStyle;if(e)for(var i=0;i<SS.length;i++){var n=SS[i][1],r=SS[i][0];null!=e[n]&&(e[r]=e[n])}}function vl(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function yl(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function ml(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}function _l(t,e){if(t)for(var i=0;i<t.length;i++)e(t[i]),t[i]&&_l(t[i].children,e)}function xl(t,e){cl(t,e),t.series=cn(t.series),d(t.series,function(t){if(I(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){null!=t.clockWise&&(t.clockwise=t.clockWise),vl(t.label);var i=t.data;if(i&&!A(i))for(var n=0;n<i.length;n++)vl(i[n]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var r=pl(t,"pointer.color");null!=r&&fl(t,"itemStyle.color",r)}else if("bar"===e){gl(t),gl(t.backgroundStyle),gl(t.emphasis);var i=t.data;if(i&&!A(i))for(var n=0;n<i.length;n++)"object"==typeof i[n]&&(gl(i[n]),gl(i[n]&&i[n].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),yl(t),_l(t.data,yl)}else"graph"===e||"sankey"===e?ml(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&u(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),dl(t)}}),t.dataRange&&(t.visualMap=t.dataRange),d(bS,function(e){var i=t[e];i&&(b(i)||(i=[i]),d(i,function(t){dl(t)}))})}function wl(t){var e=U();t.eachSeries(function(t){var i=t.get("stack");if(i){var n=e.get(i)||e.set(i,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;n.length&&r.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(o)}}),e.each(bl)}function bl(t){d(t,function(e,i){var n=[],r=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(o,u,h){var c=a.get(e.stackedDimension,h);if(isNaN(c))return r;var p,f;s?f=a.getRawIndex(h):p=a.get(e.stackedByDimension,h);for(var d=NaN,g=i-1;g>=0;g--){var v=t[g];if(s||(f=v.data.rawIndexOf(v.stackedByDimension,p)),f>=0){var y=v.data.getByRawIndex(v.stackResultDimension,f);if("all"===l||"positive"===l&&y>0||"negative"===l&&0>y||"samesign"===l&&c>=0&&y>0||"samesign"===l&&0>=c&&0>y){c=qi(c,y),d=y;break}}}return n[0]=c,n[1]=d,n})})}function Sl(t){return t instanceof TS}function Tl(t,e,i){i=i||Il(t);var n=e.seriesLayoutBy,r=kl(t,i,n,e.sourceHeader,e.dimensions);return new TS({data:t,sourceFormat:i,seriesLayoutBy:n,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:o(e)})}function Ml(t){return new TS({data:t,sourceFormat:A(t)?Zb:Ub})}function Cl(t){return new TS({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:o(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function Il(t){var e=Kb;if(A(t))e=Zb;else if(b(t)){0===t.length&&(e=jb);for(var i=0,n=t.length;n>i;i++){var r=t[i];if(null!=r){if(b(r)){e=jb;break}if(I(r)){e=Gb;break}}}}else if(I(t))for(var o in t)if(Z(t,o)&&f(t[o])){e=qb;break}return e}function kl(t,e,i,n,r){var o,a;if(!t)return{dimensionsDefine:Dl(r),startIndex:a,dimensionsDetectedCount:o};if(e===jb){var s=t;"auto"===n||null==n?Pl(function(t){null!=t&&"-"!==t&&(T(t)?null==a&&(a=1):a=0)},i,s,10):a=C(n)?n:n?1:0,r||1!==a||(r=[],Pl(function(t,e){r[e]=null!=t?t+"":""},i,s,1/0)),o=r?r.length:i===$b?s.length:s[0]?s[0].length:null}else if(e===Gb)r||(r=Al(t));else if(e===qb)r||(r=[],d(t,function(t,e){r.push(e)}));else if(e===Ub){var l=fn(t[0]);o=b(l)&&l.length||1}return{startIndex:a,dimensionsDefine:Dl(r),dimensionsDetectedCount:o}}function Al(t){for(var e,i=0;i<t.length&&!(e=t[i++]););if(e){var n=[];return d(e,function(t,e){n.push(e)}),n}}function Dl(t){if(t){var e=U();return g(t,function(t){t=I(t)?t:{name:t};var i={name:t.name,displayName:t.displayName,type:t.type};if(null==i.name)return i;i.name+="",null==i.displayName&&(i.displayName=i.name);var n=e.get(i.name);return n?i.name+="-"+n.count++:e.set(i.name,{count:1}),i})}}function Pl(t,e,i,n){if(e===$b)for(var r=0;r<i.length&&n>r;r++)t(i[r]?i[r][0]:null,r);else for(var o=i[0]||[],r=0;r<o.length&&n>r;r++)t(o[r],r)}function Ol(t){var e=t.sourceFormat;return e===Gb||e===qb}function Ll(t,e){return IS[Bl(t,e)]}function El(t,e){return AS[Bl(t,e)]}function Rl(t){return PS[t]}function Bl(t,e){return t===jb?t+"_"+e:t}function Nl(t,e,i){if(t){var n=t.getRawDataItem(e);if(null!=n){var r=t.getStore(),o=r.getSource().sourceFormat;if(null!=i){var a=t.getDimensionIndex(i),s=r.getDimensionProperty(a);return Rl(o)(n,a,s)}var l=n;return o===Ub&&(l=fn(n)),l}}}function zl(t){var e,i;return I(t)?t.type&&(i=t):e=t,{text:e,frag:i}}function Fl(t){return new ES(t)}function Yl(t,e){var i=e&&e.type;return"ordinal"===i?t:("time"!==i||C(t)||null==t||"-"===t||(t=+Qi(t)),null==t||""===t?NaN:+t)}function Hl(t,e){var i=new zS,n=t.data,r=i.sourceFormat=t.sourceFormat,o=t.startIndex;t.seriesLayoutBy!==Qb&&un("");var a=[],s={},l=t.dimensionsDefine;if(l)d(l,function(t,e){var i=t.name,n={index:e,name:i,displayName:t.displayName};if(a.push(n),null!=i){Z(s,i)&&un(""),s[i]=n}});else for(var u=0;u<t.dimensionsDetectedCount;u++)a.push({index:u});var h=Ll(r,Qb);e.__isBuiltIn&&(i.getRawDataItem=function(t){return h(n,o,a,t)},i.getRawData=Yv(Vl,null,t)),i.cloneRawData=Yv(Wl,null,t);var c=El(r,Qb);i.count=Yv(c,null,n,o,a);var p=Rl(r);i.retrieveValue=function(t,e){var i=h(n,o,a,t);return f(i,e)};var f=i.retrieveValueFromItem=function(t,e){if(null!=t){var i=a[e];return i?p(t,e,i.name):void 0}};return i.getDimensionInfo=Yv(Xl,null,a,s),i.cloneAllDimensionInfo=Yv(Ul,null,a),i}function Vl(t){Zl(t.sourceFormat)||un("");return t.data}function Wl(t){var e=t.sourceFormat,i=t.data;if(!Zl(e)){un("")}if(e===jb){for(var n=[],r=0,o=i.length;o>r;r++)n.push(i[r].slice());return n}if(e===Gb){for(var n=[],r=0,o=i.length;o>r;r++)n.push(l({},i[r]));return n}}function Xl(t,e,i){return null!=i?C(i)||!isNaN(i)&&!Z(e,i)?t[i]:Z(e,i)?e[i]:void 0:void 0}function Ul(t){return o(t)}function jl(t){t=o(t);var e=t.type;e||un("");var i=e.split(":");2!==i.length&&un("");var n=!1;"echarts"===i[0]&&(e=i[1],n=!0),t.__isBuiltIn=n,FS.set(e,t)}function Gl(t,e,i){var n=cn(t),r=n.length;r||un("");for(var o=0,a=r;a>o;o++){e=ql(n[o],e),o!==a-1&&(e.length=Math.max(e.length,1))}return e}function ql(t,e){e.length||un(""),I(t)||un("");var i=t.type,n=FS.get(i);n||un("");var r=g(e,function(t){return Hl(t,n)});return g(cn(n.transform({upstream:r[0],upstreamList:r,config:o(t.config)})),function(t,i){I(t)||un(""),t.data||un(""),Zl(Il(t.data))||un("");var n,r=e[0];if(r&&0===i&&!t.dimensions){var o=r.startIndex;o&&(t.data=r.data.slice(0,o).concat(t.data)),n={seriesLayoutBy:Qb,sourceHeader:o,dimensions:r.metaRawOption.dimensions}}else n={seriesLayoutBy:Qb,sourceHeader:0,dimensions:t.dimensions};return Tl(t.data,n,null)})}function Zl(t){return t===jb||t===Gb}function Kl(t){return t>65535?HS:VS}function Ql(){return[1/0,-1/0]}function $l(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Jl(t,e,i,n,r){var o=US[i||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==n){for(var l=new o(n),u=0;s>u;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(n)}function tu(t){t.option.transform&&V(t.option.transform)}function eu(t){return"series"===t.mainType}function iu(t){throw new Error(t)}function nu(t,e){var i=t.color||"#6e7079",n=t.fontSize||12,r=t.fontWeight||"400",o=t.color||"#464646",a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+Mt(n+"")+"px;color:"+Mt(i)+";font-weight:"+Mt(r+""),valueStyle:"font-size:"+Mt(a+"")+"px;color:"+Mt(o)+";font-weight:"+Mt(s+"")}:{nameStyle:{fontSize:n,fill:i,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}function ru(t,e){return e.type=t,e}function ou(t){return"section"===t.type}function au(t){return ou(t)?lu:uu}function su(t){if(ou(t)){var e=0,i=t.blocks.length,n=i>1||i>0&&!t.noHeader;return d(t.blocks,function(t){var i=su(t);i>=e&&(e=i+ +(n&&(!i||ou(t)&&!t.noHeader)))}),e}return 0}function lu(t,e,i,n){var r=e.noHeader,o=cu(su(e)),a=[],s=e.blocks||[];Y(!s||b(s)),s=s||[];var u=t.orderMode;if(e.sortBlocks&&u){s=s.slice();var h={valueAsc:"asc",valueDesc:"desc"};if(Z(h,u)){var c=new NS(h[u],null);s.sort(function(t,e){return c.evaluate(t.sortParam,e.sortParam)})}else"seriesDesc"===u&&s.reverse()}d(s,function(i,r){var s=e.valueFormatter,u=au(i)(s?l(l({},t),{valueFormatter:s}):t,i,r>0?o.html:0,n);null!=u&&a.push(u)});var p="richText"===t.renderMode?a.join(o.richText):pu(a.join(""),r?i:o.html);if(r)return p;var f=Ms(e.header,"ordinal",t.useUTC),g=nu(n,t.renderMode).nameStyle;return"richText"===t.renderMode?gu(t,f,g)+o.richText+p:pu('<div style="'+g+";"+qS+';">'+Mt(f)+"</div>"+p,i)}function uu(t,e,i,n){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,h=e.valueFormatter||t.valueFormatter||function(t){return t=b(t)?t:[t],g(t,function(t,e){return Ms(t,b(f)?f[e]:f,u)})};if(!o||!a){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",r),p=o?"":Ms(l,"ordinal",u),f=e.valueType,d=a?[]:h(e.value),v=!s||!o,y=!s&&o,m=nu(n,r),_=m.nameStyle,x=m.valueStyle;return"richText"===r?(s?"":c)+(o?"":gu(t,p,_))+(a?"":vu(t,d,v,y,x)):pu((s?"":c)+(o?"":fu(p,!s,_))+(a?"":du(d,v,y,x)),i)}}function hu(t,e,i,n,r,o){if(t){return au(t)({useUTC:r,renderMode:i,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}}function cu(t){return{html:ZS[t],richText:KS[t]}}function pu(t,e){return'<div style="margin: '+e+"px 0 0;"+qS+';">'+t+'<div style="clear:both"></div></div>'}function fu(t,e,i){return'<span style="'+i+";"+(e?"margin-left:2px":"")+'">'+Mt(t)+"</span>"}function du(t,e,i,n){var r=i?"10px":"20px",o=e?"float:right;margin-left:"+r:"";return t=b(t)?t:[t],'<span style="'+o+";"+n+'">'+g(t,function(t){return Mt(t)}).join(" ")+"</span>"}function gu(t,e,i){return t.markupStyleCreator.wrapRichTextStyle(e,i)}function vu(t,e,i,n,r){var o=[r],a=n?10:20;return i&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(b(e)?e.join(" "):e,o)}function yu(t,e){return Ds(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function mu(t,e){var i=t.get("padding");return null!=i?i:"richText"===e?[8,10]:10}function _u(t){var e,i,n,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),h=u.length,c=o.getRawValue(a),p=b(c),f=yu(o,a);if(h>1||p&&!h){var d=xu(c,o,a,u,f);e=d.inlineValues,i=d.inlineValueTypes,n=d.blocks,r=d.inlineValues[0]}else if(h){var g=l.getDimensionInfo(u[0]);r=e=Nl(l,a,u[0]),i=g.type}else r=e=p?c[0]:c;var v=Mn(o),y=v&&o.name||"",m=l.getName(a),_=s?y:m;return ru("section",{header:y,noHeader:s||!v,sortParam:r,blocks:[ru("nameValue",{markerType:"item",markerColor:f,name:_,noName:!H(_),value:e,valueType:i})].concat(n||[])})}function xu(t,e,i,n,r){function o(t,e){var i=a.getDimensionInfo(e);i&&!1!==i.otherDims.tooltip&&(s?h.push(ru("nameValue",{markerType:"subItem",markerColor:r,name:i.displayName,value:t,valueType:i.type})):(l.push(t),u.push(i.type)))}var a=e.getData(),s=v(t,function(t,e,i){var n=a.getDimensionInfo(i);return t=t||n&&!1!==n.tooltip&&null!=n.displayName},!1),l=[],u=[],h=[];return n.length?d(n,function(t){o(Nl(a,i,t),t)}):d(t,o),{inlineValues:l,inlineValueTypes:u,blocks:h}}function wu(t,e){return t.getName(e)||t.getId(e)}function bu(t){var e=t.name;Mn(t)||(t.name=Su(t)||e)}function Su(t){var e=t.getRawData(),i=e.mapDimensionsAll("seriesName"),n=[];return d(i,function(t){var i=e.getDimensionInfo(t);i.displayName&&n.push(i.displayName)}),n.join(" ")}function Tu(t){return t.model.getRawData().count()}function Mu(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Cu}function Cu(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Iu(t,e){d(j(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(i){t.wrapMethod(i,w(ku,e))})}function ku(t,e){var i=Au(t);return i&&i.setOutputEnd((e||this).count()),e}function Au(t){var e=(t.ecModel||{}).scheduler,i=e&&e.getPipeline(t.uid);if(i){var n=i.currentTask;if(n){var r=n.agentStubMap;r&&(n=r.get(t.uid))}return n}}function Du(){var t=Dn();return function(e){var i=t(e),n=e.pipelineContext,r=!!i.large,o=!!i.progressiveRender,a=i.large=!(!n||!n.large),s=i.progressiveRender=!(!n||!n.progressiveRender);return!(r===a&&o===s)&&"reset"}}function Pu(t,e,i){t&&Eo(t)&&("emphasis"===e?ho:co)(t,i)}function Ou(t,e,i){var n=An(t,e),r=e&&null!=e.highlightKey?Ro(e.highlightKey):null;null!=n?d(cn(n),function(e){Pu(t.getItemGraphicEl(e),i,r)}):t.eachItemGraphicEl(function(t){Pu(t,i,r)})}function Lu(t){return iT(t.model)}function Eu(t){var e=t.model,i=t.ecModel,n=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&eT(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,i,n,r),oT[l]}function Ru(t,e,i){function n(){h=(new Date).getTime(),c=null,t.apply(a,s||[])}var r,o,a,s,l,u=0,h=0,c=null;e=e||0;var p=function(){for(var t=[],p=0;p<arguments.length;p++)t[p]=arguments[p];r=(new Date).getTime(),a=this,s=t;var f=l||e,d=l||i;l=null,o=r-(d?u:h)-f,clearTimeout(c),d?c=setTimeout(n,f):o>=0?n():c=setTimeout(n,-o),u=r};return p.clear=function(){c&&(clearTimeout(c),c=null)},p.debounceNextCall=function(t){l=t},p}function Bu(t,e,i,n){var r=t[e];if(r){var o=r[aT]||r,a=r[lT];if(r[sT]!==i||a!==n){if(null==i||!n)return t[e]=o;r=t[e]=Ru(o,i,"debounce"===n),r[aT]=o,r[lT]=n,r[sT]=i}return r}}function Nu(t,e){var i=t[e];i&&i[aT]&&(i.clear&&i.clear(),t[e]=i[aT])}function zu(t,e){var i=t.visualStyleMapper||hT[e];return i||(console.warn("Unknown style type '"+e+"'."),hT.itemStyle)}function Fu(t,e){var i=t.visualDrawType||cT[e];return i||(console.warn("Unknown style type '"+e+"'."),"fill")}function Yu(t,e){e=e||{},u(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var i=new Vm,n=new dx({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});i.add(n);var r=new yx({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),o=new dx({style:{fill:"none"},textContent:r,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});i.add(o);var a;return e.showSpinner&&(a=new Dw({shape:{startAngle:-vT/2,endAngle:-vT/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),a.animateShape(!0).when(1e3,{endAngle:3*vT/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:3*vT/2}).delay(300).start("circularInOut"),i.add(a)),i.resize=function(){var i=r.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&i?10:0)-i)/2-(e.showSpinner&&i?0:5+i/2)+(e.showSpinner?0:i/2)+(i?0:s),u=t.getHeight()/2;e.showSpinner&&a.setShape({cx:l,cy:u}),o.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},i.resize(),i}function Hu(t){t.overallReset(t.ecModel,t.api,t.payload)}function Vu(t){return t.overallProgress&&Wu}function Wu(){this.agent.dirty(),this.getDownstream().dirty()}function Xu(){this.agent&&this.agent.dirty()}function Uu(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function ju(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=cn(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?g(e,function(t,e){return Gu(e)}):mT}function Gu(t){return function(e,i){var n=i.data,r=i.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(n,o);else r&&r.progress&&r.progress(e,n)}}function qu(t){return t.data.count()}function Zu(t){rT=null;try{t(_T,xT)}catch(t){}return rT}function Ku(t,e){for(var i in e.prototype)t[i]=K}function Qu(t,e,i){switch(i){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,i)}}function $u(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function Ju(t,e,i,n,r){var o=t+e;i.isSilent(o)||n.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e=t.seriesIndex,n=t.option.selectedMap,a=r.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===e){var u=t.getData(),h=An(u,r.fromActionPayload);i.trigger(o,{type:o,seriesId:t.id,name:u.getName(b(h)?h[0]:h),selected:T(n)?n:l({},n)})}})}function th(t,e,i){t.on("selectchanged",function(t){var n=i.getModel();t.isFromClick?(Ju("map","selectchanged",e,n,t),Ju("pie","selectchanged",e,n,t)):"select"===t.fromAction?(Ju("map","selected",e,n,t),Ju("pie","selected",e,n,t)):"unselect"===t.fromAction&&(Ju("map","unselected",e,n,t),Ju("pie","unselected",e,n,t))})}function eh(t,e,i){for(var n;t&&(!e(t)||(n=t,!i));)t=t.__hostTarget||t.parent;return n}function ih(t,e){if("image"!==this.type){var i=this.style;this.__isEmptyBrush?(i.stroke=t,i.fill=e||"#fff",i.lineWidth=2):"line"===this.shape.symbolType?i.stroke=t:i.fill=t,this.markRedraw()}}function nh(t,e,i,n,r,o,a){var s=0===t.indexOf("empty");s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return l=0===t.indexOf("image://")?ya(t.slice(8),new by(e,i,n,r),a?"center":"cover"):0===t.indexOf("path://")?va(t.slice(7),{},new by(e,i,n,r),a?"center":"cover"):new WT({shape:{symbolType:t,x:e,y:i,width:n,height:r}}),l.__isEmptyBrush=s,l.setColor=ih,o&&l.setColor(o),l}function rh(t){return b(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function oh(t,e){return null!=t?(b(t)||(t=[t,t]),[Yi(t[0],e[0])||0,Yi(B(t[1],t[0]),e[1])||0]):void 0}function ah(t){return isFinite(t)}function sh(t,e,i){var n=null==e.x?0:e.x,r=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;return e.global||(n=n*i.width+i.x,r=r*i.width+i.x,o=o*i.height+i.y,a=a*i.height+i.y),n=ah(n)?n:0,r=ah(r)?r:1,o=ah(o)?o:0,a=ah(a)?a:0,t.createLinearGradient(n,o,r,a)}function lh(t,e,i){var n=i.width,r=i.height,o=Math.min(n,r),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(a=a*n+i.x,s=s*r+i.y,l*=o),a=ah(a)?a:.5,s=ah(s)?s:.5,l=l>=0&&ah(l)?l:.5,t.createRadialGradient(a,s,0,a,s,l)}function uh(t,e,i){for(var n="radial"===e.type?lh(t,e,i):sh(t,e,i),r=e.colorStops,o=0;o<r.length;o++)n.addColorStop(r[o].offset,r[o].color);return n}function hh(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var i=0;i<t.length;i++)if(t[i]!==e[i])return!0;return!1}function ch(t){return parseInt(t,10)}function ph(t,e,i){var n=["width","height"][e],r=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=i[n]&&"auto"!==i[n])return parseFloat(i[n]);var s=document.defaultView.getComputedStyle(t);return(t[r]||ch(s[n])||ch(t.style[n]))-(ch(s[o])||0)-(ch(s[a])||0)|0}function fh(t,e){return t&&"solid"!==t&&e>0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:C(t)?[t]:b(t)?t:null:null}function dh(t){var e=t.style,i=e.lineDash&&e.lineWidth>0&&fh(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(i){var r=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;r&&1!==r&&(i=g(i,function(t){return t/r}),n/=r)}return[i,n]}function gh(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function vh(t){return"string"==typeof t&&"none"!==t}function yh(t){var e=t.fill;return null!=e&&"none"!==e}function mh(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var i=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=i}else t.fill()}function _h(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var i=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=i}else t.stroke()}function xh(t,e,i){var n=Zn(e.image,e.__image,i);if(Qn(n)){var r=t.createPattern(n,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*Uv),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}function wh(t,e,i,n){var r,o=gh(i),a=yh(i),s=i.strokePercent,l=1>s,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var h=e.path||XT,c=e.__dirty;if(!n){var p=i.fill,f=i.stroke,d=a&&!!p.colorStops,g=o&&!!f.colorStops,v=a&&!!p.image,y=o&&!!f.image,m=void 0,_=void 0,x=void 0,w=void 0,b=void 0;(d||g)&&(b=e.getBoundingRect()),d&&(m=c?uh(t,p,b):e.__canvasFillGradient,e.__canvasFillGradient=m),g&&(_=c?uh(t,f,b):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),v&&(x=c||!e.__canvasFillPattern?xh(t,p,e):e.__canvasFillPattern,e.__canvasFillPattern=x),y&&(w=c||!e.__canvasStrokePattern?xh(t,f,e):e.__canvasStrokePattern,e.__canvasStrokePattern=x),d?t.fillStyle=m:v&&(x?t.fillStyle=x:a=!1),g?t.strokeStyle=_:y&&(w?t.strokeStyle=w:o=!1)}var S=e.getGlobalScale();h.setScale(S[0],S[1],e.segmentIgnoreThreshold);var T,M;t.setLineDash&&i.lineDash&&(r=dh(e),T=r[0],M=r[1]);var C=!0;(u||c&Ly)&&(h.setDPR(t.dpr),l?h.setContext(null):(h.setContext(t),C=!1),h.reset(),e.buildPath(h,e.shape,n),h.toStatic(),e.pathUpdated()),C&&h.rebuildPath(t,l?s:1),T&&(t.setLineDash(T),t.lineDashOffset=M),n||(i.strokeFirst?(o&&_h(t,i),a&&mh(t,i)):(a&&mh(t,i),o&&_h(t,i))),T&&t.setLineDash([])}function bh(t,e,i){var n=e.__image=Zn(i.image,e.__image,e,e.onload);if(n&&Qn(n)){var r=i.x||0,o=i.y||0,a=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=n.width,s=n.height),i.sWidth&&i.sHeight){var u=i.sx||0,h=i.sy||0;t.drawImage(n,u,h,i.sWidth,i.sHeight,r,o,a,s)}else if(i.sx&&i.sy){var u=i.sx,h=i.sy,c=a-u,p=s-h;t.drawImage(n,u,h,c,p,r,o,a,s)}else t.drawImage(n,r,o,a,s)}}function Sh(t,e,i){var n,r=i.text;if(null!=r&&(r+=""),r){t.font=i.font||bv,t.textAlign=i.textAlign,t.textBaseline=i.textBaseline;var o=void 0,a=void 0;t.setLineDash&&i.lineDash&&(n=dh(e),o=n[0],a=n[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),i.strokeFirst?(gh(i)&&t.strokeText(r,i.x,i.y),yh(i)&&t.fillText(r,i.x,i.y)):(yh(i)&&t.fillText(r,i.x,i.y),gh(i)&&t.strokeText(r,i.x,i.y)),o&&t.setLineDash([])}}function Th(t,e,i,n,r){var o=!1;if(!n&&(i=i||{},e===i))return!1;if(n||e.opacity!==i.opacity){Ph(t,r),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?g_.opacity:a}(n||e.blend!==i.blend)&&(o||(Ph(t,r),o=!0),t.globalCompositeOperation=e.blend||g_.blend);for(var s=0;s<UT.length;s++){var l=UT[s];(n||e[l]!==i[l])&&(o||(Ph(t,r),o=!0),t[l]=t.dpr*(e[l]||0))}return(n||e.shadowColor!==i.shadowColor)&&(o||(Ph(t,r),o=!0),t.shadowColor=e.shadowColor||g_.shadowColor),o}function Mh(t,e,i,n,r){var o=Oh(e,r.inHover),a=n?null:i&&Oh(i,r.inHover)||{};if(o===a)return!1;var s=Th(t,o,a,n,r);if((n||o.fill!==a.fill)&&(s||(Ph(t,r),s=!0),vh(o.fill)&&(t.fillStyle=o.fill)),(n||o.stroke!==a.stroke)&&(s||(Ph(t,r),s=!0),vh(o.stroke)&&(t.strokeStyle=o.stroke)),(n||o.opacity!==a.opacity)&&(s||(Ph(t,r),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth,u=l/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(Ph(t,r),s=!0),t.lineWidth=u)}for(var h=0;h<jT.length;h++){var c=jT[h],p=c[0];(n||o[p]!==a[p])&&(s||(Ph(t,r),s=!0),t[p]=o[p]||c[1])}return s}function Ch(t,e,i,n,r){return Th(t,Oh(e,r.inHover),i&&Oh(i,r.inHover),n,r)}function Ih(t,e){var i=e.transform,n=t.dpr||1;i?t.setTransform(n*i[0],n*i[1],n*i[2],n*i[3],n*i[4],n*i[5]):t.setTransform(n,0,0,n,0,0)}function kh(t,e,i){for(var n=!1,r=0;r<t.length;r++){var o=t[r];n=n||o.isZeroArea(),Ih(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}i.allClipped=n}function Ah(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}function Dh(t){var e=yh(t),i=gh(t);return!(t.lineDash||!(+e^+i)||e&&"string"!=typeof t.fill||i&&"string"!=typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function Ph(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function Oh(t,e){return e?t.__hoverStyle||t.style:t.style}function Lh(t,e){Eh(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Eh(t,e,i,n){var r=e.transform;if(!e.shouldBePainted(i.viewWidth,i.viewHeight,!1,!1))return e.__dirty&=~Oy,void(e.__isRendered=!1);var o=e.__clipPaths,a=i.prevElClipPaths,s=!1,l=!1;if((!a||hh(o,a))&&(a&&a.length&&(Ph(t,i),t.restore(),l=s=!0,i.prevElClipPaths=null,i.allClipped=!1,i.prevEl=null),o&&o.length&&(Ph(t,i),t.save(),kh(o,t,i),s=!0),i.prevElClipPaths=o),i.allClipped)return void(e.__isRendered=!1);e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=i.prevEl;u||(l=s=!0);var h=e instanceof ox&&e.autoBatch&&Dh(e.style);s||Ah(r,u.transform)?(Ph(t,i),Ih(t,e)):h||Ph(t,i);var c=Oh(e,i.inHover);e instanceof ox?(i.lastDrawType!==GT&&(l=!0,i.lastDrawType=GT),Mh(t,e,u,l,i),h&&(i.batchFill||i.batchStroke)||t.beginPath(),wh(t,e,c,h),h&&(i.batchFill=c.fill||"",i.batchStroke=c.stroke||"")):e instanceof sx?(i.lastDrawType!==ZT&&(l=!0,i.lastDrawType=ZT),Mh(t,e,u,l,i),Sh(t,e,c)):e instanceof hx?(i.lastDrawType!==qT&&(l=!0,i.lastDrawType=qT),Ch(t,e,u,l,i),bh(t,e,c)):e.getTemporalDisplayables&&(i.lastDrawType!==KT&&(l=!0,i.lastDrawType=KT),Rh(t,e,i)),h&&n&&Ph(t,i),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),i.prevEl=e,e.__dirty=0,e.__isRendered=!0}function Rh(t,e,i){var n=e.getDisplayables(),r=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:i.viewWidth,viewHeight:i.viewHeight,inHover:i.inHover};for(o=e.getCursor(),a=n.length;a>o;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Eh(t,l,s,o===a-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,h=r.length;h>u;u++){var l=r[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Eh(t,l,s,u===h-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}function Bh(t,e){if("none"===t)return null;var i=e.getDevicePixelRatio(),n=e.getZr(),r="svg"===n.painter.type;t.dirty&&QT.delete(t);var o=QT.get(t);if(o)return o;var a=u(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(t){for(var e=[i],o=!0,s=0;s<JT.length;++s){var l=a[JT[s]];if(null!=l&&!b(l)&&!T(l)&&!C(l)&&"boolean"!=typeof l){o=!1;break}e.push(l)}var u;if(o){u=e.join(",")+(r?"-svg":"");var h=$T.get(u);h&&(r?t.svgElement=h:t.image=h)}var c,p=zh(a.dashArrayX),f=Fh(a.dashArrayY),d=Nh(a.symbol),g=Yh(p),v=Hh(f),y=!r&&Cv.createCanvas(),m=r&&{tag:"g",attrs:{},key:"dcl",children:[]},_=function(){for(var t=1,e=0,i=g.length;i>e;++e)t=ln(t,g[e]);for(var n=1,e=0,i=d.length;i>e;++e)n=ln(n,d[e].length);t*=n;var r=v*g.length*d.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}();y&&(y.width=_.width*i,y.height=_.height*i,c=y.getContext("2d")),function(){c&&(c.clearRect(0,0,y.width,y.height),a.backgroundColor&&(c.fillStyle=a.backgroundColor,c.fillRect(0,0,y.width,y.height)));for(var t=0,e=0;e<f.length;++e)t+=f[e];if(!(0>=t))for(var o=-v,s=0,l=0,u=0;o<_.height;){if(s%2==0){for(var h=l/2%d.length,g=0,x=0,w=0;g<2*_.width;){for(var b=0,e=0;e<p[u].length;++e)b+=p[u][e];if(0>=b)break;if(x%2==0){var S=.5*(1-a.symbolSize),T=g+p[u][x]*S,M=o+f[s]*S,C=p[u][x]*a.symbolSize,I=f[s]*a.symbolSize,k=w/2%d[h].length;!function(t,e,o,s,l){var u=r?1:i,h=nh(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);if(r){var p=n.painter.renderOneToVNode(h);p&&m.children.push(p)}else Lh(c,h)}(T,M,C,I,d[h][k])}g+=p[u][x],++w,++x===p[u].length&&(x=0)}++u===p.length&&(u=0)}o+=f[s],++l,++s===f.length&&(s=0)}}(),o&&$T.put(u,y||m),t.image=y,t.svgElement=m,t.svgWidth=_.width,t.svgHeight=_.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=r?1:1/i,QT.set(t,s),t.dirty=!1,s}function Nh(t){if(!t||0===t.length)return[["rect"]];if(T(t))return[[t]];for(var e=!0,i=0;i<t.length;++i)if(!T(t[i])){e=!1;break}if(e)return Nh([t]);for(var n=[],i=0;i<t.length;++i)n.push(T(t[i])?[t[i]]:t[i]);return n}function zh(t){if(!t||0===t.length)return[[0,0]];if(C(t)){var e=Math.ceil(t);return[[e,e]]}for(var i=!0,n=0;n<t.length;++n)if(!C(t[n])){i=!1;break}if(i)return zh([t]);for(var r=[],n=0;n<t.length;++n)if(C(t[n])){var e=Math.ceil(t[n]);r.push([e,e])}else{var e=g(t[n],function(t){return Math.ceil(t)});r.push(e.length%2==1?e.concat(e):e)}return r}function Fh(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(C(t)){var e=Math.ceil(t);return[e,e]}var i=g(t,function(t){return Math.ceil(t)});return t.length%2?i.concat(i):i}function Yh(t){return g(t,function(t){return Hh(t)})}function Hh(t){for(var e=0,i=0;i<t.length;++i)e+=t[i];return t.length%2==1?2*e:e}function Vh(t,e){t.eachRawSeries(function(i){if(!t.isSeriesFiltered(i)){var n=i.getData();n.hasItemVisual()&&n.each(function(t){var i=n.getItemVisual(t,"decal");if(i){n.ensureUniqueItemVisual(t,"style").decal=Bh(i,e)}});var r=n.getVisual("decal");if(r){n.getVisual("style").decal=Bh(r,e)}}})}function Wh(t,e){eM[t]=e}function Xh(t){return eM[t]}function Uh(t){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return this.isDisposed()?void 0:Gh(this,t,e)}}function jh(t){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return Gh(this,t,e)}}function Gh(t,e,i){return i[0]=i[0]&&i[0].toLowerCase(),ty.prototype[e].apply(t,i)}function qh(t,e,i){var n=!(i&&i.ssr);if(n){var r=$h(t);if(r)return r}var o=new OM(t,e,i);return o.id="ec_"+XM++,VM[o.id]=o,n&&En(t,jM,o.id),AM(o),tM.trigger("afterinit",o),o}function Zh(t){if(b(t)){var e=t;t=null,d(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+UM++,d(e,function(e){e.group=t})}return WM[t]=!0,t}function Kh(t){WM[t]=!1}function Qh(t){T(t)?t=VM[t]:t instanceof OM||(t=$h(t)),t instanceof OM&&!t.isDisposed()&&t.dispose()}function $h(t){return VM[Rn(t,jM)]}function Jh(t){return VM[t]}function tc(t,e){YM[t]=e}function ec(t){h(zM,t)<0&&zM.push(t)}function ic(t,e){cc(NM,t,e,nM)}function nc(t){oc("afterinit",t)}function rc(t){oc("afterupdate",t)}function oc(t,e){tM.on(t,e)}function ac(t,e,i){S(e)&&(i=e,e="");var n=I(t)?t.type:[t,t={event:e}][0];t.event=(t.event||n).toLowerCase(),e=t.event,BM[e]||(Y(hM.test(n)&&hM.test(e)),RM[n]||(RM[n]={action:i,actionInfo:t}),BM[e]=n)}function sc(t,e){gS.register(t,e)}function lc(t){var e=gS.get(t);return e?e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice():void 0}function uc(t,e){cc(FM,t,e,rM,"layout")}function hc(t,e){cc(FM,t,e,oM,"visual")}function cc(t,e,i,n,r){if((S(e)||I(e))&&(i=e,e=n),!(h(qM,i)>=0)){qM.push(i);var o=yT.wrapStageHandler(i,r);o.__prio=e,o.__raw=i,t.push(o)}}function pc(t,e){HM[t]=e}function fc(t){i({createCanvas:t})}function dc(t,e,i){var n=Xh("registerMap");n&&n(t,e,i)}function gc(t){var e=Xh("getMap");return e&&e(t)}function vc(t){return null==t?0:t.length||1}function yc(t){return t}function mc(t,e){var i={},n=i.encode={},r=U(),o=[],a=[],s={};d(t.dimensions,function(e){var i=t.getDimensionInfo(e),l=i.coordDim;if(l){var u=i.coordDimIndex;_c(n,l)[u]=e,i.isExtraCoord||(r.set(l,1),wc(i.type)&&(o[0]=e),_c(s,l)[u]=t.getDimensionIndex(i.name)),i.defaultTooltip&&a.push(e)}Xb.each(function(t,e){var r=_c(n,e),o=i.otherDims[e];null!=o&&!1!==o&&(r[o]=i.name)})});var l=[],u={};r.each(function(t,e){var i=n[e];u[e]=i[0],l=l.concat(i)}),i.dataDimsOnCoord=l,i.dataDimIndicesOnCoord=g(l,function(e){return t.getDimensionInfo(e).storeDimIndex}),i.encodeFirstDimNotExtra=u;var h=n.label;h&&h.length&&(o=h.slice());var c=n.tooltip;return c&&c.length?a=c.slice():a.length||(a=o.slice()),n.defaultedLabel=o,n.defaultedTooltip=a,i.userOutput=new oC(s,e),i}function _c(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function xc(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function wc(t){return!("ordinal"===t||"time"===t)}function bc(t){return t instanceof uC}function Sc(t){for(var e=U(),i=0;i<(t||[]).length;i++){var n=t[i],r=I(n)?n.name:n;null!=r&&null==e.get(r)&&e.set(r,i)}return e}function Tc(t){var e=sC(t);return e.dimNameMap||(e.dimNameMap=Sc(t.dimensionsDefine))}function Mc(t){return t>30}function Cc(t,e){return Ic(t,e).dimensions}function Ic(t,e){function i(t){var e=m[t];if(0>e){var i=a[t],n=I(i)?i:{name:i},r=new aC,o=n.name;null!=o&&null!=g.get(o)&&(r.name=r.displayName=o),null!=n.type&&(r.type=n.type),null!=n.displayName&&(r.displayName=n.displayName);var s=h.length;return m[t]=s,r.storeDimIndex=t,h.push(r),r}return h[e]}function n(t,e,i){null!=Xb.get(e)?t.otherDims[e]=i:(t.coordDim=e,t.coordDimIndex=i,s.set(e,!0))}function r(t){null==t.name&&(t.name=t.coordDim)}Sl(t)||(t=Ml(t)),e=e||{};var o=e.coordDimensions||[],a=e.dimensionsDefine||t.dimensionsDefine||[],s=U(),h=[],c=Ac(t,o,a,e.dimensionsCount),p=e.canOmitUnusedDimensions&&Mc(c),f=a===t.dimensionsDefine,g=f?Tc(t):Sc(a),v=e.encodeDefine;!v&&e.encodeDefaulter&&(v=e.encodeDefaulter(t,c));for(var y=U(v),m=new WS(c),_=0;_<m.length;_++)m[_]=-1;if(!p)for(var _=0;c>_;_++)i(_);y.each(function(t,e){var r=cn(t).slice();if(1===r.length&&!T(r[0])&&r[0]<0)return void y.set(e,!1);var o=y.set(e,[]);d(r,function(t,r){var a=T(t)?g.get(t):t;null!=a&&c>a&&(o[r]=a,n(i(a),e,r))})});var x=0;d(o,function(t){var e,r,o,a;if(T(t))e=t,a={};else{a=t,e=a.name;var s=a.ordinalMeta;a.ordinalMeta=null,a=l({},a),a.ordinalMeta=s,r=a.dimsDef,o=a.otherDims,a.name=a.coordDim=a.coordDimIndex=a.dimsDef=a.otherDims=null}var h=y.get(e);if(!1!==h){if(h=cn(h),!h.length)for(var p=0;p<(r&&r.length||1);p++){for(;c>x&&null!=i(x).coordDim;)x++;c>x&&h.push(x++)}d(h,function(t,s){var l=i(t);if(f&&null!=a.type&&(l.type=a.type),n(u(l,a),e,s),null==l.name&&r){var h=r[s];!I(h)&&(h={name:h}),l.name=l.displayName=h.name,l.defaultTooltip=h.defaultTooltip}o&&u(l.otherDims,o)})}});var w=e.generateCoord,b=e.generateCoordCount,S=null!=b;b=w?b||1:0;var M=w||"value";if(p)d(h,function(t){r(t)}),h.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var C=0;c>C;C++){var k=i(C),A=k.coordDim;null==A&&(k.coordDim=Dc(M,s,S),k.coordDimIndex=0,(!w||0>=b)&&(k.isExtraCoord=!0),b--),r(k),null!=k.type||Vs(t,C)!==Jb.Must&&(!k.isExtraCoord||null==k.otherDims.itemName&&null==k.otherDims.seriesName)||(k.type="ordinal")}return kc(h),new uC({source:t,dimensions:h,fullDimensionCount:c,dimensionOmitted:p})}function kc(t){for(var e=U(),i=0;i<t.length;i++){var n=t[i],r=n.name,o=e.get(r)||0;o>0&&(n.name=r+(o-1)),o++,e.set(r,o)}}function Ac(t,e,i,n){var r=Math.max(t.dimensionsDetectedCount||1,e.length,i.length,n||0);return d(e,function(t){var e;I(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))}),r}function Dc(t,e,i){if(i||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}function Pc(t){var e=t.get("coordinateSystem"),i=new vC(e),n=yC[e];return n?(n(t,i,i.axisMap,i.categoryAxisMap),i):void 0}function Oc(t){return"category"===t.get("type")}function Lc(t,e,i){i=i||{};var n,r,o,a=i.byIndex,s=i.stackedCoordDimension;Ec(e)?n=e:(r=e.schema,n=r.dimensions,o=e.store);var l,u,h,c,p=!(!t||!t.get("stack"));if(d(n,function(t,e){T(t)&&(n[e]=t={name:t}),p&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))}),!u||a||l||(a=!0),u){h="__\0ecstackresult_"+t.id,c="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var f=u.coordDim,g=u.type,v=0;d(n,function(t){t.coordDim===f&&v++});var y={name:h,coordDim:f,coordDimIndex:v,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length},m={name:c,coordDim:c,coordDimIndex:v+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length+1};r?(o&&(y.storeDimIndex=o.ensureCalculationDimension(c,g),m.storeDimIndex=o.ensureCalculationDimension(h,g)),r.appendCalculationDimension(y),r.appendCalculationDimension(m)):(n.push(y),n.push(m))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:c,stackResultDimension:h}}function Ec(t){return!bc(t.schema)}function Rc(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Bc(t,e){return Rc(t,e)?t.getCalculationInfo("stackResultDimension"):e}function Nc(t,e){var i,n=t.get("coordinateSystem"),r=gS.get(n);return e&&e.coordSysDims&&(i=g(e.coordSysDims,function(t){var i={name:t},n=e.axisMap.get(t);if(n){var r=n.get("type");i.type=xc(r)}return i})),i||(i=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),i}function zc(t,e,i){var n,r;return i&&d(t,function(t,o){var a=t.coordDim,s=i.categoryAxisMap.get(a);s&&(null==n&&(n=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(r=!0)}),r||null==n||(t[n].otherDims.itemName=0),n}function Fc(t,e,i){i=i||{};var n,r=e.getSourceManager(),o=!1;t?(o=!0,n=Ml(t)):(n=r.getSource(),o=n.sourceFormat===Ub);var a=Pc(e),s=Nc(e,a),l=i.useEncodeDefaulter,u=S(l)?l:l?w(Fs,s,e):null,h={coordDimensions:s,generateCoord:i.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},c=Ic(n,h),p=zc(c.dimensions,i.createInvertedIndices,a),f=o?null:r.getSharedDataStore(c),d=Lc(e,{schema:c,store:f}),g=new gC(c,e);g.setCalculationInfo(d);var v=null!=p&&Yc(n)?function(t,e,i,n){return n===p?i:this.defaultDimValueGetter(t,e,i,n)}:null;return g.hasItemOption=!1,g.initData(o?n:f,null,v),g}function Yc(t){if(t.sourceFormat===Ub){return!b(fn(Hc(t.data||[])))}}function Hc(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}function Vc(t){return I(t)&&null!=t.value?t.value:t+""}function Wc(t){return"interval"===t.type||"log"===t.type}function Xc(t,e,i,n){var r={},o=t[1]-t[0],a=r.interval=tn(o/e,!0);null!=i&&i>a&&(a=r.interval=i),null!=n&&a>n&&(a=r.interval=n);var s=r.intervalPrecision=jc(a);return qc(r.niceTickExtent=[Hi(Math.ceil(t[0]/a)*a,s),Hi(Math.floor(t[1]/a)*a,s)],t),r}function Uc(t){var e=Math.pow(10,Ji(t)),i=t/e;return i?2===i?i=3:3===i?i=5:i*=2:i=1,Hi(i*e)}function jc(t){return Wi(t)+2}function Gc(t,e,i){t[e]=Math.max(Math.min(t[e],i[1]),i[0])}function qc(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Gc(t,0,e),Gc(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function Zc(t,e){return t>=e[0]&&t<=e[1]}function Kc(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Qc(t,e){return t*(e[1]-e[0])+e[0]}function $c(t){return b(t)?TC?new Float32Array(t):t:new MC(t)}function Jc(t){return t.get("stack")||CC+t.seriesIndex}function tp(t){return t.dim+t.index}function ep(t,e){var i=[];return e.eachSeriesByType(t,function(t){ap(t)&&i.push(t)}),i}function ip(t){var e={};d(t,function(t){var i=t.coordinateSystem,n=i.getBaseAxis();if("time"===n.type||"value"===n.type)for(var r=t.getData(),o=n.dim+"_"+n.index,a=r.getDimensionIndex(r.mapDimension(n.dim)),s=r.getStore(),l=0,u=s.count();u>l;++l){var h=s.get(a,l);e[o]?e[o].push(h):e[o]=[h]}});var i={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(r){r.sort(function(t,e){return t-e});for(var o=null,a=1;a<r.length;++a){var s=r[a]-r[a-1];s>0&&(o=null===o?s:Math.min(o,s))}i[n]=o}}return i}function np(t){var e=ip(t),i=[];return d(t,function(t){var n,r=t.coordinateSystem,o=r.getBaseAxis(),a=o.getExtent();if("category"===o.type)n=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=e[s],u=Math.abs(a[1]-a[0]),h=o.scale.getExtent(),c=Math.abs(h[1]-h[0]);n=l?u/c*l:u}else{var p=t.getData();n=Math.abs(a[1]-a[0])/p.count()}var f=Yi(t.get("barWidth"),n),d=Yi(t.get("barMaxWidth"),n),g=Yi(t.get("barMinWidth")||(sp(t)?.5:1),n),v=t.get("barGap"),y=t.get("barCategoryGap");i.push({bandWidth:n,barWidth:f,barMaxWidth:d,barMinWidth:g,barGap:v,barCategoryGap:y,axisKey:tp(o),stackId:Jc(t)})}),rp(i)}function rp(t){var e={};d(t,function(t){var i=t.axisKey,n=t.bandWidth,r=e[i]||{bandWidth:n,remainedWidth:n,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},o=r.stacks;e[i]=r;var a=t.stackId;o[a]||r.autoWidthCount++,o[a]=o[a]||{width:0,maxWidth:0};var s=t.barWidth;s&&!o[a].width&&(o[a].width=s,s=Math.min(r.remainedWidth,s),r.remainedWidth-=s);var l=t.barMaxWidth;l&&(o[a].maxWidth=l);var u=t.barMinWidth;u&&(o[a].minWidth=u);var h=t.barGap;null!=h&&(r.gap=h);var c=t.barCategoryGap;null!=c&&(r.categoryGap=c)});var i={};return d(e,function(t,e){i[e]={};var n=t.stacks,r=t.bandWidth,o=t.categoryGap;if(null==o){var a=_(n).length;o=Math.max(35-4*a,15)+"%"}var s=Yi(o,r),l=Yi(t.gap,1),u=t.remainedWidth,h=t.autoWidthCount,c=(u-s)/(h+(h-1)*l);c=Math.max(c,0),d(n,function(t){var e=t.maxWidth,i=t.minWidth;if(t.width){var n=t.width;e&&(n=Math.min(n,e)),i&&(n=Math.max(n,i)),t.width=n,u-=n+l*n,h--}else{var n=c;e&&n>e&&(n=Math.min(e,u)),i&&i>n&&(n=i),n!==c&&(t.width=n,u-=n+l*n,h--)}}),c=(u-s)/(h+(h-1)*l),c=Math.max(c,0);var p,f=0;d(n,function(t){t.width||(t.width=c),p=t,f+=t.width*(1+l)}),p&&(f-=p.width*l);var g=-f/2;d(n,function(t,n){i[e][n]=i[e][n]||{bandWidth:r,offset:g,width:t.width},g+=t.width*(1+l)})}),i}function op(t,e,i){if(t&&e){var n=t[tp(e)];return null!=n&&null!=i?n[Jc(i)]:n}}function ap(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function sp(t){return t.pipelineContext&&t.pipelineContext.large}function lp(t,e,i,n){var r=Qi(e),o=Qi(i),a=function(t){return ss(r,t,n)===ss(o,t,n)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},h=function(){return u()&&a("hour")},c=function(){return h()&&a("minute")},p=function(){return c()&&a("second")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return h();case"minute":return c();case"second":return p();case"millisecond":return function(){return p()&&a("millisecond")}()}}function up(t){return t/=Tb,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function hp(t){return t/=30*Tb,t>6?6:t>3?3:t>2?2:1}function cp(t){return t/=Sb,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function pp(t,e){return t/=e?bb:wb,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function fp(t){return tn(t,!0)}function dp(t,e,i){var n=new Date(t);switch(es(e)){case"year":case"month":n[vs(i)](0);case"day":n[ys(i)](1);case"hour":n[ms(i)](0);case"minute":n[_s(i)](0);case"second":n[xs(i)](0),n[ws(i)](0)}return n.getTime()}function gp(t,e,i,n){function r(t,e,i,r,o,a,s){for(var l=new Date(e),u=e,h=l[r]();i>u&&u<=n[1];)s.push({value:u}),h+=t,l[o](h),u=l.getTime();s.push({value:u,notAdd:!0})}for(var o=Db,a=0,s=[],l=[],u=0,h=0,c=0;c<o.length&&a++<1e4;++c){var p=es(o[c]);if(is(o[c])){!function(t,o,a){var s=[],l=!o.length;if(!lp(es(t),n[0],n[1],i)){l&&(o=[{value:dp(new Date(n[0]),t,i)},{value:n[1]}]);for(var u=0;u<o.length-1;u++){var h=o[u].value,c=o[u+1].value;if(h!==c){var p=void 0,f=void 0,d=void 0,g=!1;switch(t){case"year":p=Math.max(1,Math.round(e/Tb/365)),f=ls(i),d=gs(i);break;case"half-year":case"quarter":case"month":p=hp(e),f=us(i),d=vs(i);break;case"week":case"half-week":case"day":p=up(e,31),f=hs(i),d=ys(i),g=!0;break;case"half-day":case"quarter-day":case"hour":p=cp(e),f=cs(i),d=ms(i);break;case"minute":p=pp(e,!0),f=ps(i),d=_s(i);break;case"second":p=pp(e,!1),f=fs(i),d=xs(i);break;case"millisecond":p=fp(e),f=ds(i),d=ws(i)}r(p,h,c,f,d,g,s),"year"===t&&a.length>1&&0===u&&a.unshift({value:a[0].value-p})}}for(var u=0;u<s.length;u++)a.push(s[u])}}(o[c],s[s.length-1]||[],l);if(p!==(o[c+1]?es(o[c+1]):null)){if(l.length){h=u,l.sort(function(t,e){return t.value-e.value});for(var f=[],d=0;d<l.length;++d){var v=l[d].value;(0===d||l[d-1].value!==v)&&(f.push(l[d]),v>=n[0]&&v<=n[1]&&u++)}var m=(n[1]-n[0])/e;if(u>1.5*m&&h>m/1.5)break;if(s.push(f),u>m||t===o[c])break}l=[]}}}for(var _=y(g(s,function(t){return y(t,function(t){return t.value>=n[0]&&t.value<=n[1]&&!t.notAdd})}),function(t){return t.length>0}),x=[],w=_.length-1,c=0;c<_.length;++c)for(var b=_[c],S=0;S<b.length;++S)x.push({value:b[S].value,level:w-c});x.sort(function(t,e){return t.value-e.value});for(var T=[],c=0;c<x.length;++c)(0===c||x[c].value!==x[c-1].value)&&T.push(x[c]);return T}function vp(t,e){return OC(t,Wi(e))}function yp(t,e,i){var n=t.rawExtentInfo;return n||(n=new FC(t,e,i),t.rawExtentInfo=n,n)}function mp(t,e){return null==e?null:E(e)?NaN:t.parse(e)}function _p(t,e){var i=t.type,n=yp(t,e,t.getExtent()).calculate();t.setBlank(n.isBlank);var r=n.min,o=n.max,a=e.ecModel;if(a&&"time"===i){var s=ep("bar",a),l=!1;if(d(s,function(t){l=l||t.getBaseAxis()===e.axis}),l){var u=np(s),h=xp(r,o,e,u);r=h.min,o=h.max}}return{extent:[r,o],fixMin:n.minFixed,fixMax:n.maxFixed}}function xp(t,e,i,n){var r=i.axis.getExtent(),o=r[1]-r[0],a=op(n,i.axis);if(void 0===a)return{min:t,max:e};var s=1/0;d(a,function(t){s=Math.min(t.offset,s)});var l=-1/0;d(a,function(t){l=Math.max(t.offset+t.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,h=e-t,c=1-(s+l)/o,p=h/c-h;return e+=p*(l/u),t-=p*(s/u),{min:t,max:e}}function wp(t,e){var i=e,n=_p(t,i),r=n.extent,o=i.get("splitNumber");t instanceof NC&&(t.base=i.get("logBase"));var a=t.type,s=i.get("interval"),l="interval"===a||"time"===a;t.setExtent(r[0],r[1]),t.calcNiceExtent({splitNumber:o,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?i.get("minInterval"):null,maxInterval:l?i.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function bp(t,e){if(e=e||t.get("type"))switch(e){case"category":return new wC({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new kC({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(mC.getClass(e)||SC)}}function Sp(t){var e=t.scale.getExtent(),i=e[0],n=e[1];return!(i>0&&n>0||0>i&&0>n)}function Tp(t){var e=t.getLabelModel().get("formatter"),i="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(e){return function(i,n){return t.scale.getFormattedLabel(i,n,e)}}(e):T(e)?function(e){return function(i){var n=t.scale.getLabel(i);return e.replace("{value}",null!=n?n:"")}}(e):S(e)?function(e){return function(n,r){return null!=i&&(r=n.value-i),e(Mp(t,n),r,null!=n.level?{level:n.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function Mp(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function Cp(t){var e=t.model,i=t.scale;if(e.get(["axisLabel","show"])&&!i.isBlank()){var n,r,o=i.getExtent();i instanceof wC?r=i.count():(n=i.getTicks(),r=n.length);var a,s=t.getLabelModel(),l=Tp(t),u=1;r>40&&(u=Math.ceil(r/40));for(var h=0;r>h;h+=u){var c=n?n[h]:{value:o[0]+h},p=l(c,h),f=s.getTextRect(p),d=Ip(f,s.get("rotate")||0);a?a.union(d):a=d}return a}}function Ip(t,e){var i=e*Math.PI/180,n=t.width,r=t.height,o=n*Math.abs(Math.cos(i))+Math.abs(r*Math.sin(i)),a=n*Math.abs(Math.sin(i))+Math.abs(r*Math.cos(i));return new by(t.x,t.y,o,a)}function kp(t){var e=t.get("interval");return null==e?"auto":e}function Ap(t){return"category"===t.type&&0===kp(t.getLabelModel())}function Dp(t,e){var i={};return d(t.mapDimensionsAll(e),function(e){i[Bc(t,e)]=!0}),_(i)}function Pp(t){return Fc(null,t)}function Op(t,e){var i=e;e instanceof cb||(i=new cb(e));var n=bp(i);return n.setExtent(t[0],t[1]),wp(n,i),n}function Lp(t){p(t,VC)}function Ep(t,e){return e=e||{},Va(t,null,null,"normal"!==e.state)}function Rp(t){return b(t)?void d(t,function(t){Rp(t)}):void(h(UC,t)>=0||(UC.push(t),S(t)&&(t={install:t}),t.install(jC)))}function Bp(t,e){return Math.abs(t-e)<GC}function Np(t,e,i){var n=0,r=t[0];if(!r)return!1;for(var o=1;o<t.length;o++){var a=t[o];n+=xr(r[0],r[1],a[0],a[1],e,i),r=a}var s=t[0];return Bp(r[0],s[0])&&Bp(r[1],s[1])||(n+=xr(r[0],r[1],s[0],s[1],e,i)),0!==n}function zp(t,e){for(var i=0;i<t.length;i++)gt(t[i],t[i],e)}function Fp(t,e,i,n){for(var r=0;r<t.length;r++){var o=t[r];n&&(o=n.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(vt(e,e,o),yt(i,i,o))}}function Yp(t){for(var e=0,i=0,n=0,r=t.length,o=t[r-1][0],a=t[r-1][1],s=0;r>s;s++){var l=t[s][0],u=t[s][1],h=o*u-l*a;e+=h,i+=(o+l)*h,n+=(a+u)*h,o=l,a=u}return e?[i/e/3,n/e/3,e]:[t[0][0]||0,t[0][1]||0]}function Hp(t){if(!t.UTF8Encoding)return t;var e=t,i=e.UTF8Scale;return null==i&&(i=1024),d(e.features,function(t){var e=t.geometry,n=e.encodeOffsets,r=e.coordinates;if(n)switch(e.type){case"LineString":e.coordinates=Wp(r,n,i);break;case"Polygon":case"MultiLineString":Vp(r,n,i);break;case"MultiPolygon":d(r,function(t,e){return Vp(t,n[e],i)})}}),e.UTF8Encoding=!1,e}function Vp(t,e,i){for(var n=0;n<t.length;n++)t[n]=Wp(t[n],e[n],i)}function Wp(t,e,i){for(var n=[],r=e[0],o=e[1],a=0;a<t.length;a+=2){var s=t.charCodeAt(a)-64,l=t.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=r,l+=o,r=s,o=l,n.push([s/i,l/i])}return n}function Xp(t,e){return t=Hp(t),g(y(t.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var i=t.properties,n=t.geometry,r=[];switch(n.type){case"Polygon":var o=n.coordinates;r.push(new KC(o[0],o.slice(1)));break;case"MultiPolygon":d(n.coordinates,function(t){t[0]&&r.push(new KC(t[0],t.slice(1)))});break;case"LineString":r.push(new QC([n.coordinates]));break;case"MultiLineString":r.push(new QC(n.coordinates))}var a=new $C(i[e||"name"],r,i.cp);return a.properties=i,a})}function Up(t){return"category"===t.type?Gp(t):Kp(t)}function jp(t,e){return"category"===t.type?Zp(t,e):{ticks:g(t.scale.getTicks(),function(t){return t.value})}}function Gp(t){var e=t.getLabelModel(),i=qp(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:i.labelCategoryInterval}:i}function qp(t,e){var i=Qp(t,"labels"),n=kp(e),r=$p(i,n);if(r)return r;var o,a;return S(n)?o=of(t,n):(a="auto"===n?tf(t):n,o=rf(t,a)),Jp(i,n,{labels:o,labelCategoryInterval:a})}function Zp(t,e){var i=Qp(t,"ticks"),n=kp(e),r=$p(i,n);if(r)return r;var o,a;if((!e.get("show")||t.scale.isBlank())&&(o=[]),S(n))o=of(t,n,!0);else if("auto"===n){var s=qp(t,t.getLabelModel());a=s.labelCategoryInterval,o=g(s.labels,function(t){return t.tickValue})}else a=n,o=rf(t,a,!0);return Jp(i,n,{ticks:o,tickCategoryInterval:a})}function Kp(t){var e=t.scale.getTicks(),i=Tp(t);return{labels:g(e,function(e,n){return{level:e.level,formattedLabel:i(e,n),rawLabel:t.scale.getLabel(e),tickValue:e.value}})}}function Qp(t,e){return rI(t)[e]||(rI(t)[e]=[])}function $p(t,e){for(var i=0;i<t.length;i++)if(t[i].key===e)return t[i].value}function Jp(t,e,i){return t.push({key:e,value:i}),i}function tf(t){var e=rI(t).autoInterval;return null!=e?e:rI(t).autoInterval=t.calculateCategoryInterval()}function ef(t){var e=nf(t),i=Tp(t),n=(e.axisRotate-e.labelRotate)/180*Math.PI,r=t.scale,o=r.getExtent(),a=r.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),h=Math.abs(u*Math.cos(n)),c=Math.abs(u*Math.sin(n)),p=0,f=0;l<=o[1];l+=s){var d=0,g=0,v=mi(i({value:l}),e.font,"center","top");d=1.3*v.width,g=1.3*v.height,p=Math.max(p,d,7),f=Math.max(f,g,7)}var y=p/h,m=f/c;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),x=rI(t.model),w=t.getExtent(),b=x.lastAutoInterval,S=x.lastTickCount;return null!=b&&null!=S&&Math.abs(b-_)<=1&&Math.abs(S-a)<=1&&b>_&&x.axisExtent0===w[0]&&x.axisExtent1===w[1]?_=b:(x.lastTickCount=a,x.lastAutoInterval=_,x.axisExtent0=w[0],x.axisExtent1=w[1]),_}function nf(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function rf(t,e,i){function n(t){var e={value:t};l.push(i?t:{formattedLabel:r(e),rawLabel:o.getLabel(e),tickValue:t})}var r=Tp(t),o=t.scale,a=o.getExtent(),s=t.getLabelModel(),l=[],u=Math.max((e||0)+1,1),h=a[0],c=o.count();0!==h&&u>1&&c/u>2&&(h=Math.round(Math.ceil(h/u)*u));var p=Ap(t),f=s.get("showMinLabel")||p,d=s.get("showMaxLabel")||p;f&&h!==a[0]&&n(a[0]);for(var g=h;g<=a[1];g+=u)n(g);return d&&g-u!==a[1]&&n(a[1]),l}function of(t,e,i){var n=t.scale,r=Tp(t),o=[];return d(n.getTicks(),function(t){var a=n.getLabel(t),s=t.value;e(t.value,a)&&o.push(i?s:{formattedLabel:r(t),rawLabel:a,tickValue:s})}),o}function af(t,e){var i=t[1]-t[0],n=e,r=i/n/2;t[0]+=r,t[1]-=r}function sf(t,e,i,n){function r(t,e){return t=Hi(t),e=Hi(e),c?t>e:e>t}var o=e.length;if(t.onBand&&!i&&o){var a,s,l=t.getExtent();if(1===o)e[0].coord=l[0],a=e[1]={coord:l[0]};else{var u=e[o-1].tickValue-e[0].tickValue,h=(e[o-1].coord-e[0].coord)/u;d(e,function(t){t.coord-=h/2});s=1+t.scale.getExtent()[1]-e[o-1].tickValue,a={coord:e[o-1].coord+h*s},e.push(a)}var c=l[0]>l[1];r(e[0].coord,l[0])&&(n?e[0].coord=l[0]:e.shift()),n&&r(l[0],e[0].coord)&&e.unshift({coord:l[0]}),r(l[1],a.coord)&&(n?a.coord=l[1]:e.pop()),n&&r(a.coord,l[1])&&e.push({coord:l[1]})}}function lf(t){var e=zb.extend(t);return zb.registerClass(e),e}function uf(t){var e=tT.extend(t);return tT.registerClass(e),e}function hf(t){var e=JS.extend(t);return JS.registerClass(e),e}function cf(t){var e=nT.extend(t);return nT.registerClass(e),e}function pf(t,e,i,n,r){var o=i.width,a=i.height;switch(t){case"top":n.set(i.x+o/2,i.y-e),r.set(0,-1);break;case"bottom":n.set(i.x+o/2,i.y+a+e),r.set(0,1);break;case"left":n.set(i.x-e,i.y+a/2),r.set(-1,0);break;case"right":n.set(i.x+o+e,i.y+a/2),r.set(1,0)}}function ff(t,e,i,n,r,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s);a/=u,s/=u;var h=a*i+t,c=s*i+e;if(Math.abs(n-r)%sI<1e-4)return l[0]=h,l[1]=c,u-i;if(o){var p=n;n=mr(r),r=mr(p)}else n=mr(n),r=mr(r);n>r&&(r+=sI);var f=Math.atan2(s,a);if(0>f&&(f+=sI),f>=n&&r>=f||f+sI>=n&&r>=f+sI)return l[0]=h,l[1]=c,u-i;var d=i*Math.cos(n)+t,g=i*Math.sin(n)+e,v=i*Math.cos(r)+t,y=i*Math.sin(r)+e,m=(d-a)*(d-a)+(g-s)*(g-s),_=(v-a)*(v-a)+(y-s)*(y-s);return _>m?(l[0]=d,l[1]=g,Math.sqrt(m)):(l[0]=v,l[1]=y,Math.sqrt(_))}function df(t,e,i,n,r,o,a,s){var l=r-t,u=o-e,h=i-t,c=n-e,p=Math.sqrt(h*h+c*c);h/=p,c/=p;var f=l*h+u*c,d=f/p;s&&(d=Math.min(Math.max(d,0),1)),d*=p;var g=a[0]=t+d*h,v=a[1]=e+d*c;return Math.sqrt((g-r)*(g-r)+(v-o)*(v-o))}function gf(t,e,i,n,r,o,a){0>i&&(t+=i,i=-i),0>n&&(e+=n,n=-n);var s=t+i,l=e+n,u=a[0]=Math.min(Math.max(r,t),s),h=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-r)*(u-r)+(h-o)*(h-o))}function vf(t,e,i){var n=gf(e.x,e.y,e.width,e.height,t.x,t.y,hI);return i.set(hI[0],hI[1]),n}function yf(t,e,i){for(var n,r,o=0,a=0,s=0,l=0,u=1/0,h=e.data,c=t.x,p=t.y,f=0;f<h.length;){var d=h[f++];1===f&&(o=h[f],a=h[f+1],s=o,l=a);var g=u;switch(d){case lI.M:s=h[f++],l=h[f++],o=s,a=l;break;case lI.L:g=df(o,a,h[f],h[f+1],c,p,hI,!0),o=h[f++],a=h[f++];break;case lI.C:g=pe(o,a,h[f++],h[f++],h[f++],h[f++],h[f],h[f+1],c,p,hI),o=h[f++],a=h[f++];break;case lI.Q:g=_e(o,a,h[f++],h[f++],h[f],h[f+1],c,p,hI),o=h[f++],a=h[f++];break;case lI.A:var v=h[f++],y=h[f++],m=h[f++],_=h[f++],x=h[f++],w=h[f++];f+=1;var b=!!(1-h[f++]);n=Math.cos(x)*m+v,r=Math.sin(x)*_+y,1>=f&&(s=n,l=r);g=ff(v,y,_,x,x+w,b,(c-v)*_/m+v,p,hI),o=Math.cos(x+w)*m+v,a=Math.sin(x+w)*_+y;break;case lI.R:s=o=h[f++],l=a=h[f++];g=gf(s,l,h[f++],h[f++],c,p,hI);break;case lI.Z:g=df(o,a,s,l,c,p,hI,!0),o=s,a=l}u>g&&(u=g,i.set(hI[0],hI[1]))}return u}function mf(t,e){if(t){var i=t.getTextGuideLine(),n=t.getTextContent();if(n&&i){var r=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=r.candidates||uI,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=r.anchor,h=t.getComputedTransform(),c=h&&Vt([],h),p=e.get("length2")||0;u&&fI.copy(u);for(var f=0;f<a.length;f++){pf(a[f],0,s,cI,dI),fy.scaleAndAdd(pI,cI,dI,p),pI.transform(c);var d=t.getBoundingRect(),g=u?u.distance(pI):t instanceof ox?yf(pI,t.path,fI):vf(pI,d,fI);l>g&&(l=g,pI.transform(h),fI.transform(h),fI.toArray(o[0]),pI.toArray(o[1]),cI.toArray(o[2]))}_f(o,e.get("minTurnAngle")),i.setShape({points:o})}}}function _f(t,e){if(180>=e&&e>0){e=e/180*Math.PI,cI.fromArray(t[0]),pI.fromArray(t[1]),fI.fromArray(t[2]),fy.sub(dI,cI,pI),fy.sub(gI,fI,pI);var i=dI.len(),n=gI.len();if(!(.001>i||.001>n)){dI.scale(1/i),gI.scale(1/n);if(dI.dot(gI)>Math.cos(e)){var r=df(pI.x,pI.y,fI.x,fI.y,cI.x,cI.y,vI,!1);yI.fromArray(vI),yI.scaleAndAdd(gI,r/Math.tan(Math.PI-e));var o=fI.x!==pI.x?(yI.x-pI.x)/(fI.x-pI.x):(yI.y-pI.y)/(fI.y-pI.y);if(isNaN(o))return;0>o?fy.copy(yI,pI):o>1&&fy.copy(yI,fI),yI.toArray(t[1])}}}}function xf(t,e,i,n){var r="normal"===i,o=r?t:t.ensureState(i);o.ignore=e;var a=n.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=n.getModel("lineStyle").getLineStyle();r?t.useStyle(s):o.style=s}function wf(t,e){var i=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),i>0&&n.length>=3){var r=Zv(n[0],n[1]),o=Zv(n[1],n[2]);if(!r||!o)return t.lineTo(n[1][0],n[1][1]),void t.lineTo(n[2][0],n[2][1]);var a=Math.min(r,o)*i,s=dt([],n[1],n[0],a/r),l=dt([],n[1],n[2],a/o),u=dt([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var h=1;h<n.length;h++)t.lineTo(n[h][0],n[h][1])}function bf(t,e,i){var n=t.getTextGuideLine(),r=t.getTextContent();if(!r)return void(n&&t.removeTextGuideLine());for(var o=e.normal,a=o.get("show"),s=r.ignore,l=0;l<Ox.length;l++){var h=Ox[l],c=e[h],p="normal"===h;if(c){var f=c.get("show");if((p?s:B(r.states[h]&&r.states[h].ignore,s))||!B(f,a)){var d=p?n:n&&n.states[h];d&&(d.ignore=!0);continue}n||(n=new bw,t.setTextGuideLine(n),p||!s&&a||xf(n,!0,"normal",e.normal),t.stateProxy&&(n.stateProxy=t.stateProxy)),xf(n,!1,h,c)}}if(n){u(n.style,i),n.style.fill=null;var g=o.get("showAbove");(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=g||!1,n.buildPath=wf}}function Sf(t,e){e=e||"labelLine";for(var i={normal:t.getModel(e)},n=0;n<Px.length;n++){var r=Px[n];i[r]=t.getModel([r,e])}return i}function Tf(t){for(var e=[],i=0;i<t.length;i++){var n=t[i];if(!n.defaultAttr.ignore){var r=n.label,o=r.getComputedTransform(),a=r.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=r.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var h=s?new Fw(a,o):null;e.push({label:r,labelLine:n.labelLine,rect:u,localRect:a,obb:h,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:o})}}return e}function Mf(t,e,i,n,r,o){function a(){w=S.rect[e]-n,b=r-T.rect[e]-T.rect[i]}function s(t,e,i){if(0>t){var n=Math.min(e,-t);if(n>0){l(n*i,0,c);var r=n+t;0>r&&u(-r*i,1)}else u(-t*i,1)}}function l(i,n,r){0!==i&&(d=!0);for(var o=n;r>o;o++){var a=t[o];a.rect[e]+=i,a.label[e]+=i}}function u(n,r){for(var o=[],a=0,s=1;c>s;s++){var u=t[s-1].rect,h=Math.max(t[s].rect[e]-u[e]-u[i],0);o.push(h),a+=h}if(a){var p=Math.min(Math.abs(n)/a,r);if(n>0)for(var s=0;c-1>s;s++){var f=o[s]*p;l(f,0,s+1)}else for(var s=c-1;s>0;s--){var f=o[s-1]*p;l(-f,s,c)}}}function h(t){var e=0>t?-1:1;t=Math.abs(t);for(var i=Math.ceil(t/(c-1)),n=0;c-1>n;n++)if(e>0?l(i,0,n+1):l(-i,c-n-1,c),0>=(t-=i))return}var c=t.length;if(!(2>c)){t.sort(function(t,i){return t.rect[e]-i.rect[e]});for(var p,f=0,d=!1,g=[],v=0,y=0;c>y;y++){var m=t[y],_=m.rect;0>(p=_[e]-f)&&(_[e]-=p,m.label[e]-=p,d=!0);var x=Math.max(-p,0);g.push(x),v+=x,f=_[e]+_[i]}v>0&&o&&l(-v/c,0,c);var w,b,S=t[0],T=t[c-1];return a(),0>w&&u(-w,.8),0>b&&u(b,.8),a(),s(w,b,1),s(b,w,-1),a(),0>w&&h(-w),0>b&&h(b),d}}function Cf(t,e,i,n){return Mf(t,"x","width",e,i,n)}function If(t,e,i,n){return Mf(t,"y","height",e,i,n)}function kf(t){function e(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}var i=[];t.sort(function(t,e){return e.priority-t.priority});for(var n=new by(0,0,0,0),r=0;r<t.length;r++){var o=t[r],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,h=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var c=o.obb,p=!1,f=0;f<i.length;f++){var d=i[f];if(n.intersect(d.rect)){if(a&&d.axisAligned){p=!0;break}if(d.obb||(d.obb=new Fw(d.localRect,d.transform)),c||(c=new Fw(s,l)),c.intersect(d.obb)){p=!0;break}}}p?(e(u),h&&e(h)):(u.attr("ignore",o.defaultAttr.ignore),h&&h.attr("ignore",o.defaultAttr.labelGuideIgnore),i.push(o))}}function Af(t){if(t){for(var e=[],i=0;i<t.length;i++)e.push(t[i].slice());return e}}function Df(t,e){var i=t.label,n=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:i.style.align,verticalAlign:i.style.verticalAlign,labelLinePoints:Af(n&&n.shape.points)}}function Pf(t,e,i){for(var n=0;n<i.length;n++){var r=i[n];null!=e[r]&&(t[r]=e[r])}}function Of(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e){var i=TI(e).labelManager;i||(i=TI(e).labelManager=new SI),i.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(t,e,i){var n=TI(e).labelManager;i.updatedSeries.forEach(function(t){n.addLabelsOfSeries(e.getViewOfSeriesModel(t))}),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()})}function Lf(t,e,i){var n=Cv.createCanvas(),r=e.getWidth(),o=e.getHeight(),a=n.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",n.setAttribute("data-zr-dom-id",t)),n.width=r*i,n.height=o*i,n}function Ef(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}function Rf(t,e){var i=document.createElement("div");return i.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",i}function Bf(t){t.registerPainter("canvas",II)}function Nf(t){t.registerComponentModel(kI),t.registerComponentView(AI)}function zf(t,e){var i=t.mapDimensionsAll("defaultedLabel"),n=i.length;if(1===n){var r=Nl(t,e,i[0]);return null!=r?r+"":null}if(n){for(var o=[],a=0;a<i.length;a++)o.push(Nl(t,e,i[a]));return o.join(" ")}}function Ff(t,e){var i=t.mapDimensionsAll("defaultedLabel");if(!b(e))return e+"";for(var n=[],r=0;r<i.length;r++){var o=t.getDimensionIndex(i[r]);o>=0&&n.push(e[o])}return n.join(" ")}function Yf(t,e){this.parent.drift(t,e)}function Hf(t,e,i,n){return!(!e||isNaN(e[0])||isNaN(e[1])||n.isIgnore&&n.isIgnore(i)||n.clipShape&&!n.clipShape.contain(e[0],e[1])||"none"===t.getItemVisual(i,"symbol"))}function Vf(t){return null==t||I(t)||(t={isIgnore:t}),t||{}}function Wf(t){var e=t.hostModel,i=e.getModel("emphasis");return{emphasisItemStyle:i.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:i.get("focus"),blurScope:i.get("blurScope"),emphasisDisabled:i.get("disabled"),hoverScale:i.get("scale"),labelStatesModels:Ha(e),cursorStyle:e.get("cursor")}}function Xf(t,e,i){var n=t.getBaseAxis(),r=t.getOtherAxis(n),o=Uf(r,i),a=n.dim,s=r.dim,l=e.mapDimension(s),u=e.mapDimension(a),h="x"===s||"radius"===s?1:0,c=g(t.dimensions,function(t){return e.mapDimension(t)}),p=!1,f=e.getCalculationInfo("stackResultDimension");return Rc(e,c[0])&&(p=!0,c[0]=f),Rc(e,c[1])&&(p=!0,c[1]=f),{dataDimsForPoint:c,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:h,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Uf(t,e){var i=0,n=t.scale.getExtent();return"start"===e?i=n[0]:"end"===e?i=n[1]:C(e)&&!isNaN(e)?i=e:n[0]>0?i=n[0]:n[1]<0&&(i=n[1]),i}function jf(t,e,i,n){var r=NaN;t.stacked&&(r=i.get(i.getCalculationInfo("stackedOverDimension"),n)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=i.get(t.baseDim,n),a[1-o]=r,e.dataToPoint(a)}function Gf(t,e){var i=[];return e.diff(t).add(function(t){i.push({cmd:"+",idx:t})}).update(function(t,e){i.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){i.push({cmd:"-",idx:t})}).execute(),i}function qf(t,e,i,n,r,o,a){for(var s=Gf(t,e),l=[],u=[],h=[],c=[],p=[],f=[],d=[],g=Xf(r,e,a),v=t.getLayout("points")||[],y=e.getLayout("points")||[],m=0;m<s.length;m++){var _=s[m],x=!0,w=void 0,b=void 0;switch(_.cmd){case"=":w=2*_.idx,b=2*_.idx1;var S=v[w],T=v[w+1],M=y[b],C=y[b+1];(isNaN(S)||isNaN(T))&&(S=M,T=C),l.push(S,T),u.push(M,C),h.push(i[w],i[w+1]),c.push(n[b],n[b+1]),d.push(e.getRawIndex(_.idx1));break;case"+":var I=_.idx,k=g.dataDimsForPoint,A=r.dataToPoint([e.get(k[0],I),e.get(k[1],I)]);b=2*I,l.push(A[0],A[1]),u.push(y[b],y[b+1]);var D=jf(g,r,e,I);h.push(D[0],D[1]),c.push(n[b],n[b+1]),d.push(e.getRawIndex(I));break;case"-":x=!1}x&&(p.push(_),f.push(f.length))}f.sort(function(t,e){return d[t]-d[e]});for(var P=l.length,O=$c(P),L=$c(P),E=$c(P),R=$c(P),B=[],m=0;m<f.length;m++){var N=f[m],z=2*m,F=2*N;O[z]=l[F],O[z+1]=l[F+1],L[z]=u[F],L[z+1]=u[F+1],E[z]=h[F],E[z+1]=h[F+1],R[z]=c[F],R[z+1]=c[F+1],B[m]=p[N]}return{current:O,next:L,stackedOnCurrent:E,stackedOnNext:R,status:B}}function Zf(t,e){return isNaN(t)||isNaN(e)}function Kf(t,e,i,n,r,o,a,s,l){for(var u,h,c,p,f,d,g=i,v=0;n>v;v++){var y=e[2*g],m=e[2*g+1];if(g>=r||0>g)break;if(Zf(y,m)){if(l){g+=o;continue}break}if(g===i)t[o>0?"moveTo":"lineTo"](y,m),c=y,p=m;else{var _=y-u,x=m-h;if(.5>_*_+x*x){g+=o;continue}if(a>0){for(var w=g+o,b=e[2*w],S=e[2*w+1];b===y&&S===m&&n>v;)v++,w+=o,g+=o,b=e[2*w],S=e[2*w+1],y=e[2*g],m=e[2*g+1],_=y-u,x=m-h;var T=v+1;if(l)for(;Zf(b,S)&&n>T;)T++,w+=o,b=e[2*w],S=e[2*w+1];var M=.5,C=0,I=0,k=void 0,A=void 0;if(T>=n||Zf(b,S))f=y,d=m;else{C=b-u,I=S-h;var D=y-u,P=b-y,O=m-h,L=S-m,E=void 0,R=void 0;if("x"===s){E=Math.abs(D),R=Math.abs(P);var B=C>0?1:-1;f=y-B*E*a,d=m,k=y+B*R*a,A=m}else if("y"===s){E=Math.abs(O),R=Math.abs(L);var N=I>0?1:-1;f=y,d=m-N*E*a,k=y,A=m+N*R*a}else E=Math.sqrt(D*D+O*O),R=Math.sqrt(P*P+L*L),M=R/(R+E),f=y-C*a*(1-M),d=m-I*a*(1-M),k=y+C*a*M,A=m+I*a*M,k=LI(k,EI(b,y)),A=LI(A,EI(S,m)),k=EI(k,LI(b,y)),A=EI(A,LI(S,m)),C=k-y,I=A-m,f=y-C*E/R,d=m-I*E/R,f=LI(f,EI(u,y)),d=LI(d,EI(h,m)),f=EI(f,LI(u,y)),d=EI(d,LI(h,m)),C=y-f,I=m-d,k=y+C*R/E,A=m+I*R/E}t.bezierCurveTo(c,p,f,d,y,m),c=k,p=A}else t.lineTo(y,m)}u=y,h=m,g+=o}return v}function Qf(t,e,i,n,r){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,h=i.get(["lineStyle","width"])||2;a-=h/2,s-=h/2,l+=h,u+=h,a=Math.floor(a),l=Math.round(l);var c=new dx({shape:{x:a,y:s,width:l,height:u}});if(e){var p=t.getBaseAxis(),f=p.isHorizontal(),d=p.inverse;f?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var g=S(r)?function(t){r(t,c)}:null;aa(c,{shape:{width:l,height:u,x:a,y:s}},i,null,n,g)}return c}function $f(t,e,i){var n=t.getArea(),r=Hi(n.r0,1),o=Hi(n.r,1),a=new vw({shape:{cx:Hi(t.cx,1),cy:Hi(t.cy,1),r0:r,r:o,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){"angle"===t.getBaseAxis().dim?a.shape.endAngle=n.startAngle:a.shape.r=r,aa(a,{shape:{endAngle:n.endAngle,r:o}},i)}return a}function Jf(t,e){return t.type===e}function td(t,e){if(t.length===e.length){for(var i=0;i<t.length;i++)if(t[i]!==e[i])return;return!0}}function ed(t){for(var e=1/0,i=1/0,n=-1/0,r=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),n=Math.max(a,n)),isNaN(s)||(i=Math.min(s,i),r=Math.max(s,r))}return[[e,i],[n,r]]}function id(t,e){var i=ed(t),n=i[0],r=i[1],o=ed(e),a=o[0],s=o[1];return Math.max(Math.abs(n[0]-a[0]),Math.abs(n[1]-a[1]),Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]))}function nd(t){return C(t)?t:t?.5:0}function rd(t,e,i){if(!i.valueDim)return[];for(var n=e.count(),r=$c(2*n),o=0;n>o;o++){var a=jf(i,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}function od(t,e,i,n){var r=e.getBaseAxis(),o="x"===r.dim||"radius"===r.dim?0:1,a=[],s=0,l=[],u=[],h=[],c=[];if(n){for(s=0;s<t.length;s+=2)isNaN(t[s])||isNaN(t[s+1])||c.push(t[s],t[s+1]);t=c}for(s=0;s<t.length-2;s+=2)switch(h[0]=t[s+2],h[1]=t[s+3],u[0]=t[s],u[1]=t[s+1],a.push(u[0],u[1]),i){case"end":l[o]=h[o],l[1-o]=u[1-o],a.push(l[0],l[1]);break;case"middle":var p=(u[o]+h[o])/2,f=[];l[o]=f[o]=p,l[1-o]=u[1-o],f[1-o]=h[1-o],a.push(l[0],l[1]),a.push(f[0],f[1]);break;default:l[o]=u[o],l[1-o]=h[1-o],a.push(l[0],l[1])}return a.push(t[s++],t[s++]),a}function ad(t,e){function i(t,e,i){var n=t.coord;return{coord:i,color:ze((i-n)/(e.coord-n),[t.color,e.color])}}for(var n,r,o=[],a=t.length,s=0;a>s;s++){var l=t[s],u=l.coord;if(0>u)n=l;else{if(u>e){r?o.push(i(r,l,e)):n&&o.push(i(n,l,0),i(n,l,e));break}n&&(o.push(i(n,l,0)),n=null),o.push(l),r=l}}return o}function sd(t,e,i){var n=t.getVisual("visualMeta");if(n&&n.length&&t.count()&&"cartesian2d"===e.type){for(var r,o,a=n.length-1;a>=0;a--){var s=t.getDimensionInfo(n[a].dimension);if("x"===(r=s&&s.coordDim)||"y"===r){o=n[a];break}}if(o){var l=e.getAxis(r),u=g(o.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),h=u.length,c=o.outerColors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),c.reverse());var p=ad(u,"x"===r?i.getWidth():i.getHeight()),f=p.length;if(!f&&h)return u[0].coord<0?c[1]?c[1]:u[h-1].color:c[0]?c[0]:u[0].color;var v=p[0].coord-10,y=p[f-1].coord+10,m=y-v;if(.001>m)return"transparent";d(p,function(t){t.offset=(t.coord-v)/m}),p.push({offset:f?p[f-1].offset:.5,color:c[1]||"transparent"}),p.unshift({offset:f?p[0].offset:.5,color:c[0]||"transparent"});var _=new Lw(0,0,0,0,p,!0);return _[r]=v,_[r+"2"]=y,_}}}function ld(t,e,i){var n=t.get("showAllSymbol"),r="auto"===n;if(!n||r){var o=i.getAxesByScale("ordinal")[0];if(o&&(!r||!ud(o,e))){var a=e.mapDimension(o.dim),s={};return d(o.getViewLabels(),function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1}),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function ud(t,e){var i=t.getExtent(),n=Math.abs(i[1]-i[0])/t.scale.count();isNaN(n)&&(n=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;r>a;a+=o)if(1.5*PI.getSymbolSize(e,a)[t.isHorizontal()?1:0]>n)return!1;return!0}function hd(t,e){return isNaN(t)||isNaN(e)}function cd(t){for(var e=t.length/2;e>0&&hd(t[2*e-2],t[2*e-1]);e--);return e-1}function pd(t,e){return[t[2*e],t[2*e+1]]}function fd(t,e,i){for(var n,r,o=t.length/2,a="x"===i?0:1,s=0,l=-1,u=0;o>u;u++)if(r=t[2*u+a],!isNaN(r)&&!isNaN(t[2*u+1-a]))if(0!==u){if(e>=n&&r>=e||n>=e&&e>=r){l=u;break}s=u,n=r}else n=r;return{range:[s,l],t:(e-n)/(r-n)}}function dd(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Px.length;e++)if(t.get([Px[e],"endLabel","show"]))return!0;return!1}function gd(t,e,i,n){if(Jf(e,"cartesian2d")){var r=n.getModel("endLabel"),o=r.get("valueAnimation"),a=n.getData(),s={lastFrameIndex:0},l=dd(n)?function(i,n){t._endLabelOnDuring(i,n,a,s,o,r,e)}:null,u=e.getBaseAxis().isHorizontal(),h=Qf(e,i,n,function(){var e=t._endLabel;e&&i&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var c=h.shape,p=Math.max(c.width,c.height);u?(c.y-=p,c.height+=2*p):(c.x-=p,c.width+=2*p)}return l&&l(1,h),h}return $f(e,i,n)}function vd(t,e){var i=e.getBaseAxis(),n=i.isHorizontal(),r=i.inverse,o=n?r?"right":"left":"center",a=n?"middle":r?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}function yd(t,e){return{seriesType:t,plan:Du(),reset:function(t){var i=t.getData(),n=t.coordinateSystem,r=t.pipelineContext,o=e||r.large;if(n){var a=g(n.dimensions,function(t){return i.mapDimension(t)}).slice(0,2),s=a.length,l=i.getCalculationInfo("stackResultDimension");Rc(i,a[0])&&(a[0]=l),Rc(i,a[1])&&(a[1]=l);var u=i.getStore(),h=i.getDimensionIndex(a[0]),c=i.getDimensionIndex(a[1]);return s&&{progress:function(t,e){for(var i=t.end-t.start,r=o&&$c(i*s),a=[],l=[],p=t.start,f=0;p<t.end;p++){var d=void 0;if(1===s){var g=u.get(h,p);d=n.dataToPoint(g,null,l)}else a[0]=u.get(h,p),a[1]=u.get(c,p),d=n.dataToPoint(a,null,l);o?(r[f++]=d[0],r[f++]=d[1]):e.setItemLayout(p,d.slice())}o&&e.setLayout("points",r)}}}}}}function md(t){return{seriesType:t,reset:function(t,e,i){var n=t.getData(),r=t.get("sampling"),o=t.coordinateSystem,a=n.count();if(a>10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),h=i.getDevicePixelRatio(),c=Math.abs(u[1]-u[0])*(h||1),p=Math.round(a/c);if(isFinite(p)&&p>1){"lttb"===r&&t.setData(n.lttbDownSample(n.mapDimension(l.dim),1/p));var f=void 0;T(r)?f=YI[r]:S(r)&&(f=r),f&&t.setData(n.downSample(n.mapDimension(l.dim),1/p,f,HI))}}}}}function _d(t){t.registerChartView(FI),t.registerSeriesModel(DI),t.registerLayout(yd("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),i=t.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",i)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,md("line"))}function xd(t,i,n,r){d(KI,function(o,s){var l=a(a({},ZI[s],!0),r,!0),u=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i+"Axis."+s,e}return e(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var i=Ls(this),n=i?Rs(t):{};a(t,e.getTheme().get(s+"Axis")),a(t,this.getDefaultOption()),t.type=wd(t),i&&Es(t,n,i)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=xC.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;return"category"===e.type?t?e.data:this.__ordinalMeta.categories:void 0},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=i+"Axis."+s,n.defaultOption=l,n}(n);t.registerComponentModel(u)}),t.registerSubTypeDefaulter(i+"Axis",wd)}function wd(t){return t.type||(t.data?"category":"value")}function bd(t){return"interval"===t.type||"time"===t.type}function Sd(t,e,i){i=i||{};var n=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,h=n.getRect(),c=[h.x,h.x+h.width,h.y,h.y+h.height],p={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,d="x"===u?[c[2]-f,c[3]+f]:[c[0]-f,c[1]+f];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));d[p.onZero]=Math.max(Math.min(g,d[1]),d[0])}o.position=["y"===u?d[p[l]]:c[0],"x"===u?d[p[l]]:c[3]],o.rotation=Math.PI/2*("x"===u?0:1);var v={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=v[s],o.labelOffset=a?d[p[s]]-d[p.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),R(i.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-y:y,o.z2=1,o}function Td(t){return"cartesian2d"===t.get("coordinateSystem")}function Md(t){var e={xAxisModel:null,yAxisModel:null};return d(e,function(i,n){var r=n.replace(/Model$/,""),o=t.getReferringComponents(r,t_).models[0];e[n]=o}),e}function Cd(t,e,i){var n=SC.prototype,r=n.getTicks.call(i),o=n.getTicks.call(i,!0),a=r.length-1,s=n.getInterval.call(i),l=_p(t,e),u=l.extent,h=l.fixMin,c=l.fixMax;if("log"===t.type){var p=ek(t.base);u=[ek(u[0])/p,ek(u[1])/p]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:h,fixMax:c});var f=n.getExtent.call(t);h&&(u[0]=f[0]),c&&(u[1]=f[1]);var d=n.getInterval.call(t),g=u[0],v=u[1];if(h&&c)d=(v-g)/a;else if(h)for(v=u[0]+d*a;v<u[1]&&isFinite(v)&&isFinite(u[1]);)d=Uc(d),v=u[0]+d*a;else if(c)for(g=u[1]-d*a;g>u[0]&&isFinite(g)&&isFinite(u[0]);)d=Uc(d),g=u[1]-d*a;else{var y=t.getTicks().length-1;y>a&&(d=Uc(d));var m=d*a;v=Math.ceil(u[1]/d)*d,g=Hi(v-m),0>g&&u[0]>=0?(g=0,v=Hi(m)):v>0&&u[1]<=0&&(v=0,g=-Hi(m))}var _=(r[0].value-o[0].value)/s,x=(r[a].value-o[a].value)/s;n.setExtent.call(t,g+d*_,v+d*x),n.setInterval.call(t,d),(_||x)&&n.setNiceExtent.call(t,g+d,v-d)}function Id(t,e){return t.getCoordSysModel()===e}function kd(t,e,i,n){function r(t){return t.dim+"_"+t.index}i.getAxesOnZeroOf=function(){return o?[o]:[]};var o,a=t[e],s=i.model,l=s.get(["axisLine","onZero"]),u=s.get(["axisLine","onZeroAxisIndex"]);if(l){if(null!=u)Ad(a[u])&&(o=a[u]);else for(var h in a)if(a.hasOwnProperty(h)&&Ad(a[h])&&!n[r(a[h])]){o=a[h];break}o&&(n[r(o)]=!0)}}function Ad(t){return t&&"category"!==t.type&&"time"!==t.type&&Sp(t)}function Dd(t,e){var i=t.getExtent(),n=i[0]+i[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return n-t+e}}function Pd(t,e,i,n){var r,o,a=Zi(i-t),s=n[0]>n[1],l="start"===e&&!s||"start"!==e&&s;return Ki(a-nk/2)?(o=l?"bottom":"top",r="center"):Ki(a-1.5*nk)?(o=l?"top":"bottom",r="center"):(o="middle",r=1.5*nk>a&&a>nk/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}function Od(t,e,i){if(!Ap(t.axis)){var n=t.get(["axisLabel","showMinLabel"]),r=t.get(["axisLabel","showMaxLabel"]);e=e||[],i=i||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=i[0],h=i[1],c=i[i.length-1],p=i[i.length-2];!1===n?(Ld(o),Ld(u)):Ed(o,a)&&(n?(Ld(a),Ld(h)):(Ld(o),Ld(u))),!1===r?(Ld(s),Ld(c)):Ed(l,s)&&(r?(Ld(l),Ld(p)):(Ld(s),Ld(c)))}}function Ld(t){t&&(t.ignore=!0)}function Ed(t,e){var i=t&&t.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(i&&n){var r=Bt([]);return Yt(r,r,-t.rotation),i.applyTransform(zt([],r,t.getLocalTransform())),n.applyTransform(zt([],r,e.getLocalTransform())),i.intersect(n)}}function Rd(t){return"middle"===t||"center"===t}function Bd(t,e,i,n,r){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=i,e&&(gt(a,a,e),gt(s,s,e));var h=new Mw({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});xa(h.shape,h.style.lineWidth),h.anid=r+"_"+t[l].tickValue,o.push(h)}return o}function Nd(t,e,i,n){var r=i.axis,o=i.getModel("axisTick"),a=o.get("show");if("auto"===a&&n.handleAutoShown&&(a=n.handleAutoShown("axisTick")),a&&!r.scale.isBlank()){for(var s=o.getModel("lineStyle"),l=n.tickDirection*o.get("length"),h=r.getTicksCoords(),c=Bd(h,e.transform,l,u(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),p=0;p<c.length;p++)t.add(c[p]);return c}}function zd(t,e,i,n){var r=i.axis,o=i.getModel("minorTick");if(o.get("show")&&!r.scale.isBlank()){var a=r.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=n*o.get("length"),h=u(s.getLineStyle(),u(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var p=Bd(a[c],e.transform,l,h,"minorticks_"+c),f=0;f<p.length;f++)t.add(p[f])}}function Fd(t,e,i,n){var r=i.axis;if(R(n.axisLabelShow,i.get(["axisLabel","show"]))&&!r.scale.isBlank()){var o=i.getModel("axisLabel"),a=o.get("margin"),s=r.getViewLabels(),l=(R(n.labelRotate,o.get("rotate"))||0)*nk/180,u=rk.innerTextLayout(n.rotation,l,n.labelDirection),h=i.getCategories&&i.getCategories(!0),c=[],p=rk.isLabelSilent(i),f=i.get("triggerEvent");return d(s,function(s,l){var d="ordinal"===r.scale.type?r.scale.getRawOrdinalNumber(s.tickValue):s.tickValue,g=s.formattedLabel,v=s.rawLabel,y=o;if(h&&h[d]){var m=h[d];I(m)&&m.textStyle&&(y=new cb(m.textStyle,o,i.ecModel))}var _=y.getTextColor()||i.get(["axisLine","lineStyle","color"]),x=r.dataToCoord(d),w=new yx({x:x,y:n.labelOffset+n.labelDirection*a,rotation:u.rotation,silent:p,z2:10+(s.level||0),style:Va(y,{text:g,align:y.getShallow("align",!0)||u.textAlign,verticalAlign:y.getShallow("verticalAlign",!0)||y.getShallow("baseline",!0)||u.textVerticalAlign,fill:S(_)?_("category"===r.type?v:"value"===r.type?d+"":d,l):_})});if(w.anid="label_"+d,f){var b=rk.makeAxisEventDataBase(i);b.targetType="axisLabel",b.value=v,b.tickIndex=l,"category"===r.type&&(b.dataIndex=d),bx(w).eventData=b}e.add(w),w.updateTransform(),c.push(w),t.add(w),w.decomposeTransform()}),c}}function Yd(t,e){var i={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Hd(i,t,e),i.seriesInvolved&&Wd(i,t),i}function Hd(t,e,i){var n=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];d(i.getCoordinateSystems(),function(i){function s(n,s,l){var h=l.model.getModel("axisPointer",r),p=h.get("show");if(p&&("auto"!==p||n||Zd(h))){null==s&&(s=h.get("triggerTooltip")),h=n?Vd(l,c,r,e,n,s):h;var f=h.get("snap"),d=Kd(l.model),g=s||f||"category"===l.type,v=t.axesInfo[d]={key:d,axis:l,coordSys:i,axisPointerModel:h,triggerTooltip:s,involveSeries:g,snap:f,useHandle:Zd(h),seriesModels:[],linkGroup:null};u[d]=v,t.seriesInvolved=t.seriesInvolved||g;var y=Xd(o,l);if(null!=y){var m=a[y]||(a[y]={axesInfo:{}});m.axesInfo[d]=v,m.mapper=o[y].mapper,v.linkGroup=m}}}if(i.axisPointerEnabled){var l=Kd(i.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=i;var h=i.model,c=h.getModel("tooltip",n);if(d(i.getAxes(),w(s,!1,null)),i.getTooltipAxes&&n&&c.get("show")){var p="axis"===c.get("trigger"),f="cross"===c.get(["axisPointer","type"]),g=i.getTooltipAxes(c.get(["axisPointer","axis"]));(p||f)&&d(g.baseAxes,w(s,!f||"cross",p)),f&&d(g.otherAxes,w(s,"cross",!1))}}})}function Vd(t,e,i,n,r,a){var s=e.getModel("axisPointer"),l=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],h={};d(l,function(t){h[t]=o(s.get(t))}),h.snap="category"!==t.type&&!!a,"cross"===s.get("type")&&(h.type="line");var c=h.label||(h.label={});if(null==c.show&&(c.show=!1),"cross"===r){var p=s.get(["label","show"]);if(c.show=null==p||p,!a){var f=h.lineStyle=s.get("crossStyle");f&&u(c,f.textStyle)}}return t.model.getModel("axisPointer",new cb(h,i,n))}function Wd(t,e){e.eachSeries(function(e){var i=e.coordinateSystem,n=e.get(["tooltip","trigger"],!0),r=e.get(["tooltip","show"],!0);i&&"none"!==n&&!1!==n&&"item"!==n&&!1!==r&&!1!==e.get(["axisPointer","show"],!0)&&d(t.coordSysAxesInfo[Kd(i.model)],function(t){var n=t.axis;i.getAxis(n.dim)===n&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())})})}function Xd(t,e){for(var i=e.model,n=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(Ud(o[n+"AxisId"],i.id)||Ud(o[n+"AxisIndex"],i.componentIndex)||Ud(o[n+"AxisName"],i.name))return r}}function Ud(t,e){return"all"===t||b(t)&&h(t,e)>=0||t===e}function jd(t){var e=Gd(t);if(e){var i=e.axisPointerModel,n=e.axis.scale,r=i.option,o=i.get("status"),a=i.get("value");null!=a&&(a=n.parse(a));var s=Zd(i);null==o&&(r.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}function Gd(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Kd(t)]}function qd(t){var e=Gd(t);return e&&e.axisPointerModel}function Zd(t){return!!t.get(["handle","show"])}function Kd(t){return t.type+"||"+t.id}function Qd(t,e,i,n){var r=i.axis;if(!r.scale.isBlank()){var o=i.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=n.coordinateSystem.getRect(),h=r.getTicksCoords({tickModel:o,clamp:!0});if(h.length){var c=s.length,p=lk(t).splitAreaColors,f=U(),d=0;if(p)for(var g=0;g<h.length;g++){var v=p.get(h[g].tickValue);if(null!=v){d=(v+(c-1)*g)%c;break}}var y=r.toGlobalCoord(h[0].coord),m=a.getAreaStyle();s=b(s)?s:[s];for(var g=1;g<h.length;g++){var _=r.toGlobalCoord(h[g].coord),x=void 0,w=void 0,S=void 0,T=void 0;r.isHorizontal()?(x=y,w=l.y,S=_-x,T=l.height,y=x+S):(x=l.x,w=y,S=l.width,T=_-w,y=w+T);var M=h[g-1].tickValue;null!=M&&f.set(M,d),e.add(new dx({anid:null!=M?"area_"+M:null,shape:{x:x,y:w,width:S,height:T},style:u({fill:s[d]},m),autoBatch:!0,silent:!0})),d=(d+1)%c}lk(t).splitAreaColors=f}}}function $d(t){lk(t).splitAreaColors=null}function Jd(t){t.registerComponentView(gk),t.registerComponentModel(VI),t.registerCoordinateSystem("cartesian2d",ik),xd(t,"x",WI,vk),xd(t,"y",WI,vk),t.registerComponentView(fk),t.registerComponentView(dk),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function tg(t,e,i,n){eg(yk(i).lastProp,n)||(yk(i).lastProp=n,e?oa(i,n,t):(i.stopAnimation(),i.attr(n)))}function eg(t,e){if(I(t)&&I(e)){var i=!0;return d(e,function(e,n){i=i&&eg(t[n],e)}),!!i}return t===e}function ig(t,e){t[e.get(["label","show"])?"show":"hide"]()}function ng(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function rg(t,e,i){var n=e.get("z"),r=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=r&&(t.zlevel=r),t.silent=i)})}function og(t){var e,i=t.get("type"),n=t.getModel(i+"Style");return"line"===i?(e=n.getLineStyle(),e.fill=null):"shadow"===i&&(e=n.getAreaStyle(),e.stroke=null),e}function ag(t,e,i,n,r){var o=i.get("value"),a=lg(o,e.axis,e.ecModel,i.get("seriesDataIndices"),{precision:i.get(["label","precision"]),formatter:i.get(["label","formatter"])}),s=i.getModel("label"),l=Pb(s.get("padding")||0),u=s.getFont(),h=mi(a,u),c=r.position,p=h.width+l[1]+l[3],f=h.height+l[0]+l[2],d=r.align;"right"===d&&(c[0]-=p),"center"===d&&(c[0]-=p/2);var g=r.verticalAlign;"bottom"===g&&(c[1]-=f),"middle"===g&&(c[1]-=f/2),sg(c,p,f,n);var v=s.get("backgroundColor");v&&"auto"!==v||(v=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:Va(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:v}),z2:10}}function sg(t,e,i,n){var r=n.getWidth(),o=n.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+i,o)-i,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function lg(t,e,i,n,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:Mp(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};d(n,function(t){var e=i.getSeriesByIndex(t.seriesIndex),n=t.dataIndexInside,r=e&&e.getDataParams(n);r&&s.seriesData.push(r)}),T(a)?o=a.replace("{value}",o):S(a)&&(o=a(s))}return o}function ug(t,e,i){var n=Rt();return Yt(n,n,i.rotation),Ft(n,n,i.position),Sa([t.dataToCoord(e),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],n)}function hg(t,e,i,n,r,o){var a=rk.innerTextLayout(i.rotation,0,i.labelDirection);i.labelMargin=r.get(["label","margin"]),ag(e,n,r,o,{position:ug(n.axis,t,i),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function cg(t,e,i){return i=i||0,{x1:t[i],y1:t[1-i],x2:e[i],y2:e[1-i]}}function pg(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}}function fg(t,e){var i={};return i[e.dim+"AxisIndex"]=e.index,t.getCartesian(i)}function dg(t){return"x"===t.dim?0:1}function gg(t,e,i){if(!xv.node){var n=e.getZr();Tk(n).records||(Tk(n).records={}),vg(n,e);(Tk(n).records[t]||(Tk(n).records[t]={})).handler=i}}function vg(t,e){function i(i,n){t.on(i,function(i){var r=xg(e);Mk(Tk(t).records,function(t){t&&n(t,i,r.dispatchAction)}),yg(r.pendings,e)})}Tk(t).initialized||(Tk(t).initialized=!0,i("click",w(_g,"click")),i("mousemove",w(_g,"mousemove")),i("globalout",mg))}function yg(t,e){var i,n=t.showTip.length,r=t.hideTip.length;n?i=t.showTip[n-1]:r&&(i=t.hideTip[r-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function mg(t,e,i){t.handler("leave",null,i)}function _g(t,e,i,n){e.handler(t,i,n)}function xg(t){var e={showTip:[],hideTip:[]},i=function(n){var r=e[n.type];r?r.push(n):(n.dispatchAction=i,t.dispatchAction(n))};return{dispatchAction:i,pendings:e}}function wg(t,e){if(!xv.node){var i=e.getZr();(Tk(i).records||{})[t]&&(Tk(i).records[t]=null)}}function bg(t,e){var i,n=[],r=t.seriesIndex;if(null==r||!(i=e.getSeriesByIndex(r)))return{point:[]};var o=i.getData(),a=An(o,t);if(null==a||0>a||b(a))return{point:[]};var s=o.getItemGraphicEl(a),l=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),h=l.getOtherAxis(u),c=h.dim,p=u.dim,f="x"===c||"radius"===c?1:0,d=o.mapDimension(p),v=[];v[f]=o.get(d,a),v[1-f]=o.get(o.getCalculationInfo("stackResultDimension"),a),n=l.dataToPoint(v)||[]}else n=l.dataToPoint(o.getValues(g(l.dimensions,function(t){return o.mapDimension(t)}),a))||[];else if(s){var y=s.getBoundingRect().clone();y.applyTransform(s.transform),n=[y.x+y.width/2,y.y+y.height/2]}return{point:n,el:s}}function Sg(t,e,i){var n=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||Yv(i.dispatchAction,i),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Lg(r)&&(r=bg({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=Lg(r),u=o.axesInfo,h=s.axesInfo,c="leave"===n||Lg(r),p={},f={},g={list:[],map:{}},v={showPointer:w(Cg,f),showTooltip:w(Ig,g)};d(s.coordSysMap,function(t,e){var i=l||t.containPoint(r);d(s.coordSysAxesInfo[e],function(t){var e=t.axis,n=Pg(u,t);if(!c&&i&&(!u||n)){var o=n&&n.value;null!=o||l||(o=e.pointToData(r)),null!=o&&Tg(t,o,v,!1,p)}})});var y={};return d(h,function(t,e){var i=t.linkGroup;i&&!f[e]&&d(i.axesInfo,function(e,n){var r=f[n];if(e!==t&&r){var o=r.value;i.mapper&&(o=t.axis.scale.parse(i.mapper(o,Og(e),Og(t)))),y[t.key]=o}})}),d(y,function(t,e){Tg(h[e],t,v,!0,p)}),kg(f,h,p),Ag(g,r,t,a),Dg(h,a,i),p}}function Tg(t,e,i,n,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e)){if(!t.involveSeries)return void i.showPointer(t,e);var a=Mg(e,t),s=a.payloadBatch,u=a.snapToValue;s[0]&&null==r.seriesIndex&&l(r,s[0]),!n&&t.snap&&o.containData(u)&&null!=u&&(e=u),i.showPointer(t,e,s),i.showTooltip(t,a,u)}}function Mg(t,e){var i=e.axis,n=i.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return d(e.seriesModels,function(e){var l,u,h=e.getData().mapDimensionsAll(n);if(e.getAxisTooltipData){var c=e.getAxisTooltipData(h,t,i);u=c.dataIndices,l=c.nestestValue}else{if(u=e.getData().indicesOfNearest(h[0],t,"category"===i.type?.5:null),!u.length)return;l=e.getData().get(h[0],u[0])}if(null!=l&&isFinite(l)){var p=t-l,f=Math.abs(p);a>=f&&((a>f||p>=0&&0>s)&&(a=f,s=p,r=l,o.length=0),d(u,function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:o,snapToValue:r}}function Cg(t,e,i,n){t[e.key]={value:i,payloadBatch:n}}function Ig(t,e,i,n){var r=i.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=Kd(l),h=t.map[u];h||(h=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(h)),h.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function kg(t,e,i){var n=i.axesInfo=[];d(e,function(e,i){var r=e.axisPointerModel.option,o=t[i];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&n.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})})}function Ag(t,e,i,n){if(Lg(e)||!t.list.length)return void n({type:"hideTip"});var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:i.tooltipOption,position:i.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}function Dg(t,e,i){var n=i.getZr(),r="axisPointerLastHighlights",o=Ik(n)[r]||{},a=Ik(n)[r]={};d(t,function(t){var e=t.axisPointerModel.option;"show"===e.status&&d(e.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t})});var s=[],l=[];d(o,function(t,e){!a[e]&&l.push(t)}),d(a,function(t,e){!o[e]&&s.push(t)}),l.length&&i.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&i.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Pg(t,e){for(var i=0;i<(t||[]).length;i++){var n=t[i];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function Og(t){var e=t.axis.model,i={},n=i.axisDim=t.axis.dim;return i.axisIndex=i[n+"AxisIndex"]=e.componentIndex,i.axisName=i[n+"AxisName"]=e.name,i.axisId=i[n+"AxisId"]=e.id,i}function Lg(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function Eg(t){sk.registerAxisPointerClass("CartesianAxisPointer",wk),t.registerComponentModel(Sk),t.registerComponentView(Ck),t.registerPreprocessor(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!b(e)&&(t.axisPointer.link=[e])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Yd(t,e)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Sg)}function Rg(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function Bg(t){if(xv.domSupported)for(var e=document.documentElement.style,i=0,n=t.length;n>i;i++)if(t[i]in e)return t[i]}function Ng(t,e){if(!t)return e;e=Ts(e,!0);var i=t.indexOf(e);return t=-1===i?e:"-"+t.slice(0,i)+"-"+e,t.toLowerCase()}function zg(t,e){var i=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return i?e?i[e]:i:null}function Fg(t){return t="left"===t?"right":"right"===t?"left":"top"===t?"bottom":"top"}function Yg(t,e,i){if(!T(i)||"inside"===i)return"";var n=t.get("backgroundColor"),r=t.get("borderWidth");e=Ds(e);var o,a=Fg(i),s=Math.max(1.5*Math.round(r),6),l="",u=Ok+":";h(["left","right"],a)>-1?(l+="top:50%",u+="translateY(-50%) rotate("+(o="left"===a?-225:-45)+"deg)"):(l+="left:50%",u+="translateX(-50%) rotate("+(o="top"===a?225:45)+"deg)");var c=o*Math.PI/180,p=s+r,f=p*Math.abs(Math.cos(c))+p*Math.abs(Math.sin(c));l+=";"+a+":-"+Math.round(100*((f-Math.SQRT2*r)/2+Math.SQRT2*r-(f-p)/2))/100+"px";var d=e+" solid "+r+"px;";return'<div style="'+["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+u+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"].join("")+'"></div>'}function Hg(t,e){var i="cubic-bezier(0.23,1,0.32,1)",n=" "+t/2+"s "+i,r="opacity"+n+",visibility"+n;return e||(n=" "+t+"s "+i,r+=xv.transformSupported?","+Ok+n:",left"+n+",top"+n),Pk+":"+r}function Vg(t,e,i){var n=t.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!xv.transformSupported)return i?"top:"+r+";left:"+n+";":[["top",r],["left",n]];var o=xv.transform3dSupported,a="translate"+(o?"3d":"")+"("+n+","+r+(o?",0":"")+")";return i?"top:0;left:0;"+Ok+":"+a+";":[["top",0],["left",0],[Ak,a]]}function Wg(t){var e=[],i=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont()),i&&e.push("line-height:"+Math.round(3*i/2)+"px");var r=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return r&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+r),d(["decoration","align"],function(i){var n=t.get(i);n&&e.push("text-"+i+":"+n)}),e.join(";")}function Xg(t,e,i){var n=[],r=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),h=t.getModel("textStyle"),c=mu(t,"html"),p=l+"px "+u+"px "+a+"px "+s;return n.push("box-shadow:"+p),e&&r&&n.push(Hg(r,i)),o&&n.push("background-color:"+o),d(["width","color","radius"],function(e){var i="border-"+e,r=Ts(i),o=t.get(r);null!=o&&n.push(i+":"+o+("color"===e?"":"px"))}),n.push(Wg(h)),null!=c&&n.push("padding:"+Pb(c).join("px ")+"px"),n.join(";")+";"}function Ug(t,e,i,n,r){var o=e&&e.painter;if(i){var a=o&&o.getViewportRoot();a&&xt(t,a,document.body,n,r)}else{t[0]=n,t[1]=r;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function jg(t){return Math.max(0,t)}function Gg(t){var e=jg(t.shadowBlur||0),i=jg(t.shadowOffsetX||0),n=jg(t.shadowOffsetY||0);return{left:jg(e-i),right:jg(e+i),top:jg(e-n),bottom:jg(e+n)}}function qg(t,e,i,n){t[0]=i,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function Zg(t,e,i){var n,r=e.ecModel;i?(n=new cb(i,r,r),n=new cb(e.option,n,r)):n=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof cb&&(a=a.get("tooltip",!0)),T(a)&&(a={formatter:a}),a&&(n=new cb(a,n,r)))}return n}function Kg(t,e){return t.dispatchAction||Yv(e.dispatchAction,e)}function Qg(t,e,i,n,r,o,a){var s=i.getSize(),l=s[0],u=s[1];return null!=o&&(t+l+o+2>n?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}function $g(t,e,i,n,r){var o=i.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,n)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function Jg(t,e,i,n){var r=i[0],o=i[1],a=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,h=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+h/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+h+a;break;case"left":s=e.x-r-a,l=e.y+h/2-o/2;break;case"right":s=e.x+u+a,l=e.y+h/2-o/2}return[s,l]}function tv(t){return"center"===t||"middle"===t}function ev(t,e,i){var n=On(t).queryOptionMap,r=n.keys()[0];if(r&&"series"!==r){var o=Ln(e,r,n.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s;return i.getViewOfComponentModel(a).group.traverse(function(e){var i=bx(e).tooltipConfig;return i&&i.name===t.name?(s=e,!0):void 0}),s?{componentMainType:r,componentIndex:a.componentIndex,el:s}:void 0}}}function iv(t){Rp(Eg),t.registerComponentModel(kk),t.registerComponentView(Nk),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},K),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},K)}function nv(t,e){if(!t)return!1;for(var i=b(t)?t:[t],n=0;n<i.length;n++)if(i[n]&&i[n][e])return!0;return!1}function rv(t){pn(t,"label",["show"])}function ov(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function av(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function sv(t,e,i,n,r,o){var a=[],s=Rc(e,n),l=s?e.getCalculationInfo("stackResultDimension"):n,u=fv(e,l,t),h=e.indicesOfNearest(l,u)[0];a[r]=e.get(i,h),a[o]=e.get(l,h);var c=e.get(n,h),p=Wi(e.get(n,h));return p=Math.min(p,20),p>=0&&(a[o]=+a[o].toFixed(p)),[a,c]}function lv(t,e){if(e){var i=t.getData(),n=t.coordinateSystem,r=n.dimensions;if(!av(e)&&!b(e.coord)&&n){var a=uv(e,i,n,t);if(e=o(e),e.type&&Hk[e.type]&&a.baseAxis&&a.valueAxis){var s=h(r,a.baseAxis.dim),l=h(r,a.valueAxis.dim),u=Hk[e.type](i,a.baseDataDim,a.valueDataDim,s,l);e.coord=u[0],e.value=u[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null==e.coord)e.coord=[];else for(var c=e.coord,p=0;2>p;p++)Hk[c[p]]&&(c[p]=fv(i,i.mapDimension(r[p]),c[p]));return e}}function uv(t,e,i,n){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=i.getAxis(hv(n,r.valueDataDim)),r.baseAxis=i.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=n.getBaseAxis(),r.valueAxis=i.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}function hv(t,e){var i=t.getData().getDimensionInfo(e);return i&&i.coordDim}function cv(t,e){return!(t&&t.containData&&e.coord&&!ov(e))||t.containData(e.coord)}function pv(t,e){return t?function(t,i,n,r){return Yl(2>r?t.coord&&t.coord[r]:t.value,e[r])}:function(t,i,n,r){return Yl(t.value,e[r])}}function fv(t,e,i){if("average"===i){var n=0,r=0;return t.each(e,function(t){isNaN(t)||(n+=t,r++)}),n/r}return"median"===i?t.getMedian(e):t.getDataExtent(e)["max"===i?1:0]}function dv(t,e,i){var n=e.coordinateSystem;t.each(function(r){var o,a=t.getItemModel(r),s=Yi(a.get("x"),i.getWidth()),l=Yi(a.get("y"),i.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,r));else if(n){var u=t.get(n.dimensions[0],r),h=t.get(n.dimensions[1],r);o=n.dataToPoint([u,h])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(r,o)})}function gv(t,e,i){var n;n=t?g(t&&t.dimensions,function(t){return l(l({},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})}):[{name:"value",type:"float"}];var r=new gC(n,i),o=g(i.get("data"),w(lv,e));t&&(o=y(o,w(cv,t)));var a=pv(!!t,n);return r.initData(o,null,a),r}function vv(t){t.registerComponentModel(Yk),t.registerComponentView(Xk),t.registerPreprocessor(function(t){nv(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var yv=function(t,e){return(yv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},mv=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),_v=function(){function t(){this.browser=new mv,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="undefined"!=typeof window}return t}(),xv=new _v;"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(xv.wxa=!0,xv.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?xv.worker=!0:"undefined"==typeof navigator?(xv.node=!0,xv.svgSupported=!0):function(t,e){var i=e.browser,n=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);n&&(i.firefox=!0,i.version=n[1]),r&&(i.ie=!0,i.version=r[1]),o&&(i.edge=!0,i.version=o[1],i.newEdge=+o[1].split(".")[0]>18),a&&(i.weChat=!0),e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!i.ie&&!i.edge,e.pointerEventsSupported="onpointerdown"in window&&(i.edge||i.ie&&+i.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(i.ie&&"transition"in s||i.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||i.ie&&+i.version>=9}(navigator.userAgent,xv);var wv=12,bv=wv+"px sans-serif",Sv=20,Tv=100,Mv=function(t){var e={};if("undefined"==typeof JSON)return e;for(var i=0;i<t.length;i++){var n=String.fromCharCode(i+32),r=(t.charCodeAt(i)-Sv)/Tv;e[n]=r}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),Cv={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(){var t,e;return function(i,n){if(!t){var r=Cv.createCanvas();t=r&&r.getContext("2d")}if(t)return e!==n&&(e=t.font=n||bv),t.measureText(i);i=i||"",n=n||bv;var o=/(\d+)px/.exec(n),a=o&&+o[1]||wv,s=0;if(n.indexOf("mono")>=0)s=a*i.length;else for(var l=0;l<i.length;l++){var u=Mv[i[l]];s+=null==u?a:u*a}return{width:s}}}(),loadImage:function(t,e,i){var n=new Image;return n.onload=e,n.onerror=i,n.src=t,n}},Iv=v(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),kv=v(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),Av=Object.prototype.toString,Dv=Array.prototype,Pv=Dv.forEach,Ov=Dv.filter,Lv=Dv.slice,Ev=Dv.map,Rv=function(){}.constructor,Bv=Rv?Rv.prototype:null,Nv="__proto__",zv=2311,Fv=Cv.createCanvas,Yv=Bv&&S(Bv.bind)?Bv.call.bind(Bv.bind):x,Hv="__ec_primitive__",Vv=function(){function t(){this.data={}}return t.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return _(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)},t}(),Wv="function"==typeof Map,Xv=function(){function t(e){function i(t,e){n?r.set(t,e):r.set(e,t)}var n=b(e);this.data=X();var r=this;e instanceof t?e.each(i):e&&d(e,i)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach(function(i,n){t.call(e,i,n)})},t.prototype.keys=function(){var t=this.data.keys();return Wv?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}(),Uv=180/Math.PI,jv=(Object.freeze||Object)({guid:n,logError:r,clone:o,merge:a,mergeAll:s,extend:l,defaults:u,createCanvas:Fv,indexOf:h,inherits:c,mixin:p,isArrayLike:f,each:d,map:g,reduce:v,filter:y,find:m,keys:_,bind:Yv,curry:w,isArray:b,isFunction:S,isString:T,isStringSafe:M,isNumber:C,isObject:I,isBuiltInObject:k,isTypedArray:A,isDom:D,isGradientObject:P,isImagePatternObject:O,isRegExp:L,eqNaN:E,retrieve:R,retrieve2:B,retrieve3:N,slice:z,normalizeCssArray:F,assert:Y,trim:H,setAsPrimitive:V,isPrimitive:W,HashMap:Xv,createHashMap:U,concatArray:j,createObject:G,disableUserSelect:q,hasOwn:Z,noop:K,RADIAN_TO_DEGREE:Uv}),Gv=rt,qv=ot,Zv=ct,Kv=pt,Qv=(Object.freeze||Object)({create:Q,copy:$,clone:J,set:tt,add:et,scaleAndAdd:it,sub:nt,len:rt,length:Gv,lenSquare:ot,lengthSquare:qv,mul:at,div:st,dot:lt,scale:ut,normalize:ht,distance:ct,dist:Zv,distanceSquare:pt,distSquare:Kv,negate:ft,lerp:dt,applyTransform:gt,min:vt,max:yt}),$v=function(){function t(t,e){this.target=t,this.topTarget=e&&e.topTarget}return t}(),Jv=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new $v(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,n=t.offsetY,r=i-this._x,o=n-this._y;this._x=i,this._y=n,e.drift(r,o,t),this.handler.dispatchToElement(new $v(e,t),"drag",t.event);var a=this.handler.findHover(i,n,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new $v(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new $v(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new $v(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new $v(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),ty=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,i,n){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(n=i,i=e,e=null),!i||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a<r[t].length;a++)if(r[t][a].h===i)return this;var s={h:i,query:e,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},l=r[t].length-1,u=r[t][l];return u&&u.callAtLast?r[t].splice(l,0,s):r[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var n=[],r=0,o=i[t].length;o>r;r++)i[t][r].h!==e&&n.push(i[t][r]);i[t]=n}i[t]&&0===i[t].length&&delete i[t]}else delete i[t];return this},t.prototype.trigger=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],r=this._$eventProcessor;if(n)for(var o=e.length,a=n.length,s=0;a>s;s++){var l=n[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],r=this._$eventProcessor;if(n)for(var o=e.length,a=e[o-1],s=n.length,l=0;s>l;l++){var u=n[l];if(!r||!r.filter||null==u.query||r.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1))}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t}(),ey=Math.log(2),iy="___zrEVENTSAVED",ny=[],ry=/([&<>"'])/g,oy={"&":"&","<":"<",">":">",'"':""","'":"'"},ay=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,sy=[],ly=xv.browser.firefox&&+xv.browser.version.split(".")[0]<39,uy=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},hy=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,i){var n=t.touches;if(n){for(var r={points:[],touches:[],target:e,event:t},o=0,a=n.length;a>o;o++){var s=n[o],l=Ct(i,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},t.prototype._recognize=function(t){for(var e in cy)if(cy.hasOwnProperty(e)){var i=cy[e](this._track,t);if(i)return i}},t}(),cy={pinch:function(t,e){var i=t.length;if(i){var n=(t[i-1]||{}).points,r=(t[i-2]||{}).points||n;if(r&&r.length>1&&n&&n.length>1){var o=Lt(n)/Lt(r);!isFinite(o)&&(o=1),e.pinchScale=o;var a=Et(n);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}},py=(Object.freeze||Object)({create:Rt,identity:Bt,copy:Nt,mul:zt,translate:Ft,rotate:Yt,scale:Ht,invert:Vt,clone:Wt}),fy=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,i=this.y-t.y;return e*e+i*i},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,i=this.y;return this.x=t[0]*e+t[2]*i+t[4],this.y=t[1]*e+t[3]*i+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,i){t.x=e,t.y=i},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,i){t.x=e.x+i.x,t.y=e.y+i.y},t.sub=function(t,e,i){t.x=e.x-i.x,t.y=e.y-i.y},t.scale=function(t,e,i){t.x=e.x*i,t.y=e.y*i},t.scaleAndAdd=function(t,e,i,n){t.x=e.x+i.x*n,t.y=e.y+i.y*n},t.lerp=function(t,e,i,n){var r=1-n;t.x=r*e.x+n*i.x,t.y=r*e.y+n*i.y},t}(),dy=Math.min,gy=Math.max,vy=new fy,yy=new fy,my=new fy,_y=new fy,xy=new fy,wy=new fy,by=function(){function t(t,e,i,n){0>i&&(t+=i,i=-i),0>n&&(e+=n,n=-n),this.x=t,this.y=e,this.width=i,this.height=n}return t.prototype.union=function(t){var e=dy(t.x,this.x),i=dy(t.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?gy(t.x+t.width,this.x+this.width)-e:t.width,this.height=isFinite(this.y)&&isFinite(this.height)?gy(t.y+t.height,this.y+this.height)-i:t.height,this.x=e,this.y=i},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,i=t.width/e.width,n=t.height/e.height,r=Rt();return Ft(r,r,[-e.x,-e.y]),Ht(r,r,[i,n]),Ft(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,i){if(!e)return!1;e instanceof t||(e=t.create(e));var n=this,r=n.x,o=n.x+n.width,a=n.y,s=n.y+n.height,l=e.x,u=e.x+e.width,h=e.y,c=e.y+e.height,p=!(l>o||r>u||h>s||a>c);if(i){var f=1/0,d=0,g=Math.abs(o-l),v=Math.abs(u-r),y=Math.abs(s-h),m=Math.abs(c-a),_=Math.min(g,v),x=Math.min(y,m);l>o||r>u?_>d&&(d=_,v>g?fy.set(wy,-g,0):fy.set(wy,v,0)):f>_&&(f=_,v>g?fy.set(xy,g,0):fy.set(xy,-v,0)),h>s||a>c?x>d&&(d=x,m>y?fy.set(wy,0,-y):fy.set(wy,0,m)):f>_&&(f=_,m>y?fy.set(xy,0,y):fy.set(xy,0,-m))}return i&&fy.copy(i,p?xy:wy),p},t.prototype.contain=function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,i,n){if(!n)return void(e!==i&&t.copy(e,i));if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var r=n[0],o=n[3],a=n[4],s=n[5];return e.x=i.x*r+a,e.y=i.y*o+s,e.width=i.width*r,e.height=i.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}vy.x=my.x=i.x,vy.y=_y.y=i.y,yy.x=_y.x=i.x+i.width,yy.y=my.y=i.y+i.height,vy.transform(n),_y.transform(n),yy.transform(n),my.transform(n),e.x=dy(vy.x,yy.x,my.x,_y.x),e.y=dy(vy.y,yy.y,my.y,_y.y);var l=gy(vy.x,yy.x,my.x,_y.x),u=gy(vy.y,yy.y,my.y,_y.y);e.width=l-e.x,e.height=u-e.y},t}(),Sy="silent",Ty=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return e(i,t),i.prototype.dispose=function(){},i.prototype.setCursor=function(){},i}(ty),My=function(){function t(t,e){this.x=t,this.y=e}return t}(),Cy=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Iy=new by(0,0,0,0),ky=function(t){function i(e,i,n,r,o){var a=t.call(this)||this;return a._hovered=new My(0,0),a.storage=e,a.painter=i,a.painterRoot=r,a._pointerSize=o,n=n||new Ty,a.proxy=null,a.setHandlerProxy(n),a._draggingMgr=new Jv(a),a}return e(i,t),i.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(d(Cy,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},i.prototype.mousemove=function(t){var e=t.zrX,i=t.zrY,n=qt(this,e,i),r=this._hovered,o=r.target;o&&!o.__zr&&(r=this.findHover(r.x,r.y),o=r.target);var a=this._hovered=n?new My(e,i):this.findHover(e,i),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},i.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},i.prototype.resize=function(){this._hovered=new My(0,0)},i.prototype.dispatch=function(t,e){var i=this[t];i&&i.call(this,e)},i.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},i.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},i.prototype.dispatchToElement=function(t,e,i){t=t||{};var n=t.target;if(!n||!n.silent){for(var r="on"+e,o=Xt(e,t,i);n&&(n[r]&&(o.cancelBubble=!!n[r].call(n,o)),n.trigger(e,o),n=n.__hostTarget?n.__hostTarget:n.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)}))}},i.prototype.findHover=function(t,e,i){var n=this.storage.getDisplayList(),r=new My(t,e);if(Gt(n,r,t,e,i),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new by(t-s,e-s,a,a),u=n.length-1;u>=0;u--){var h=n[u];h===i||h.ignore||h.ignoreCoarsePointer||h.parent&&h.parent.ignoreCoarsePointer||(Iy.copy(h.getBoundingRect()),h.transform&&Iy.applyTransform(h.transform),Iy.intersect(l)&&o.push(h))}if(o.length)for(var c=Math.PI/12,p=2*Math.PI,f=0;s>f;f+=4)for(var d=0;p>d;d+=c){var g=t+f*Math.cos(d),v=e+f*Math.sin(d);if(Gt(o,r,g,v,i),r.target)return r}}return r},i.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new hy);var i=this._gestureMgr;"start"===e&&i.clear();var n=i.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&i.clear(),n){var r=n.type;t.gestureEvent=r;var o=new My;o.target=n.target,this.dispatchToElement(o,r,n.event)}},i}(ty);d(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){ky.prototype[t]=function(e){var i,n,r=e.zrX,o=e.zrY,a=qt(this,r,o);if("mouseup"===t&&a||(i=this.findHover(r,o),n=i.target),"mousedown"===t)this._downEl=n,this._downPoint=[e.zrX,e.zrY],this._upEl=n;else if("mouseup"===t)this._upEl=n;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||Zv(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}});var Ay,Dy=32,Py=7,Oy=1,Ly=4,Ey=!1,Ry=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=re}return t.prototype.traverse=function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var i=this._displayList;return(t||!i.length)&&this.updateDisplayList(e),i},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,n=0,r=e.length;r>n;n++)this._updateAndAddDisplayable(e[n],null,t);i.length=this._displayListLen,ie(i,re)},t.prototype._updateAndAddDisplayable=function(t,e,i){if(!t.ignore||i){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath();if(t.ignoreClip)e=null;else if(n){e=e?e.slice():[];for(var r=n,o=t;r;)r.parent=o,r.updateTransform(),e.push(r),o=r,r=r.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=Oy),this._updateAndAddDisplayable(l,e,i)}t.__dirty=0}else{var u=t;e&&e.length?u.__clipPaths=e:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(ne(),u.z=0),isNaN(u.z2)&&(ne(),u.z2=0),isNaN(u.zlevel)&&(ne(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,i);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,i);var p=t.getTextContent();p&&this._updateAndAddDisplayable(p,e,i)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,i=t.length;i>e;e++)this.delRoot(t[e]);else{var n=h(this._roots,t);n>=0&&this._roots.splice(n,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();Ay=xv.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var By=Ay,Ny={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),-i*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/.4))},elasticOut:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin(2*(t-e)*Math.PI/.4)+1)},elasticInOut:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?-.5*i*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/.4):i*Math.pow(2,-10*(t-=1))*Math.sin(2*(t-e)*Math.PI/.4)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*t*t*((e+1)*t-e):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Ny.bounceOut(1-t)},bounceOut:function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return.5>t?.5*Ny.bounceIn(2*t):.5*Ny.bounceOut(2*t-1)+.5}},zy=Math.pow,Fy=Math.sqrt,Yy=1e-8,Hy=1e-4,Vy=Fy(3),Wy=1/3,Xy=Q(),Uy=Q(),jy=Q(),Gy=/cubic-bezier\(([0-9,\.e ]+)\)/,qy=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||K,this.ondestroy=t.ondestroy||K,this.onrestart=t.onrestart||K,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused)return void(this._pausedTime+=e);var i=this._life,n=t-this._startTime-this._pausedTime,r=n/i;0>r&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=n%i;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=S(t)?t:Ny[t]||we(t)},t}(),Zy=function(){function t(t){this.value=t}return t}(),Ky=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new Zy(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),Qy=function(){function t(t){this._list=new Ky,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var i=this._list,n=this._map,r=null;if(null==n[t]){var o=i.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=i.head;i.remove(s),delete n[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new Zy(e),a.key=t,i.insertEntry(a),n[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],i=this._list;return null!=e?(e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value):void 0},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),$y={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]},Jy=new Qy(20),tm=null,em=Ne,im=ze,nm=(Object.freeze||Object)({parse:Oe,lift:Re,toHex:Be,fastLerp:Ne,fastMapToColor:em,lerp:ze,mapToColor:im,modifyHSL:Fe,modifyAlpha:Ye,stringify:He,lum:Ve,random:We}),rm=(function(){xv.hasGlobalWindow&&S(window.btoa)}(),Array.prototype.slice),om=1,am=2,sm=4,lm=5,um=[0,0,0,0],hm=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,i){this._needsSort=!0;var n=this.keyframes,r=n.length,o=!1,a=6,s=e;if(f(e)){var u=ei(e);a=u,(1===u&&!C(e[0])||2===u&&!C(e[0][0]))&&(o=!0)}else if(C(e)&&!E(e))a=0;else if(T(e))if(isNaN(+e)){var h=Oe(e);h&&(s=h,a=3)}else a=0;else if(P(e)){var c=l({},s);c.colorStops=g(e.colorStops,function(t){return{offset:t.offset,color:Oe(t.color)}}),Xe(e)?a=sm:Ue(e)&&(a=lm),s=c}0===r?this.valType=a:(a!==this.valType||6===a)&&(o=!0),this.discrete=this.discrete||o;var p={time:t,value:s,rawValue:e,percent:0};return i&&(p.easing=i,p.easingFunc=S(i)?i:Ny[i]||we(i)),n.push(p),p},t.prototype.prepare=function(t,e){var i=this.keyframes;this._needsSort&&i.sort(function(t,e){return t.time-e.time});for(var n=this.valType,r=i.length,o=i[r-1],a=this.discrete,s=ni(n),l=ii(n),u=0;r>u;u++){var h=i[u],c=h.value,p=o.value;h.percent=h.time/t,a||(s&&u!==r-1?$e(c,p,n):l&&Qe(c.colorStops,p.colorStops))}if(!a&&n!==lm&&e&&this.needsAnimate()&&e.needsAnimate()&&n===e.valType&&!e._finished){this._additiveTrack=e;for(var f=i[0].value,u=0;r>u;u++)0===n?i[u].additiveValue=i[u].value-f:3===n?i[u].additiveValue=Ze([],i[u].value,f,-1):ni(n)&&(i[u].additiveValue=n===om?Ze([],i[u].value,f,-1):Ke([],i[u].value,f,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i,n,r,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,h=this.propName,c=3===s,p=this._lastFr,f=Math.min;if(1===u)n=r=l[0];else{if(0>e)i=0;else if(e<this._lastFrP){var d=f(p+1,u-1);for(i=d;i>=0&&!(l[i].percent<=e);i--);i=f(i,u-2)}else{for(i=p;u>i&&!(l[i].percent>e);i++);i=f(i-1,u-2)}r=l[i+1],n=l[i]}if(n&&r){this._lastFr=i,this._lastFrP=e;var v=r.percent-n.percent,y=0===v?1:f((e-n.percent)/v,1);r.easingFunc&&(y=r.easingFunc(y));var m=o?this._additiveValue:c?um:t[h];if(!ni(s)&&!c||m||(m=this._additiveValue=[]),this.discrete)t[h]=1>y?n.rawValue:r.rawValue;else if(ni(s))s===om?Ge(m,n[a],r[a],y):qe(m,n[a],r[a],y);else if(ii(s)){var _=n[a],x=r[a],w=s===sm;t[h]={type:w?"linear":"radial",x:je(_.x,x.x,y),y:je(_.y,x.y,y),colorStops:g(_.colorStops,function(t,e){var i=x.colorStops[e];return{offset:je(t.offset,i.offset,y),color:ti(Ge([],t.color,i.color,y))}}),global:x.global},w?(t[h].x2=je(_.x2,x.x2,y),t[h].y2=je(_.y2,x.y2,y)):t[h].r=je(_.r,x.r,y)}else if(c)Ge(m,n[a],r[a],y),o||(t[h]=ti(m));else{var b=je(n[a],r[a],y);o?this._additiveValue=b:t[h]=b}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,n=this._additiveValue;0===e?t[i]=t[i]+n:3===e?(Oe(t[i],um),Ze(um,um,n,1),t[i]=ti(um)):e===om?Ze(t[i],t[i],n,1):e===am&&Ke(t[i],t[i],n,1)},t}(),cm=function(){function t(t,e,i,n){return this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n?void r("Can' use additive animation on looped animation."):(this._additiveAnimators=n,void(this._allowDiscrete=i))}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,i){return this.whenWithKeys(t,e,_(e),i)},t.prototype.whenWithKeys=function(t,e,i,n){for(var r=this._tracks,o=0;o<i.length;o++){var a=i[o],s=r[a];if(!s){s=r[a]=new hm(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var h=u.keyframes,c=h[h.length-1];l=c&&c.value,3===u.valType&&l&&(l=ti(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,Je(l),n),this._trackKeys.push(a)}s.addKeyframe(t,Je(e[a]),n)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,i=0;e>i;i++)t[i].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var i=0;i<e.length;i++)e[i].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,i=0;i<e.length;i++)t[e[i]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var r=i[n].getTrack(t);r&&(e=r)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,i=[],n=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var o=this._trackKeys[r],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(n,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var h=l[u-1];h&&(e._target[a.propName]=h.rawValue),a.setFinished()}else i.push(a)}if(i.length||this._force){var c=new qy({life:n,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var n=e._additiveAnimators;if(n){for(var r=!1,o=0;o<n.length;o++)if(n[o]._clip){r=!0;break}r||(e._additiveAnimators=null)}for(var o=0;o<i.length;o++)i[o].step(e._target,t);var a=e._onframeCbs;if(a)for(var o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&c.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return g(this._trackKeys,function(e){return t._tracks[e]})},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,r=0;r<t.length;r++){var o=i[t[r]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}for(var a=!0,r=0;r<n.length;r++)if(!i[n[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,i){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var r=e[n],o=this._tracks[r];if(o&&!o.isFinished()){var a=o.keyframes,s=a[i?0:a.length-1];s&&(t[r]=Je(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||_(t);for(var i=0;i<e.length;i++){var n=e[i],r=this._tracks[n];if(r){var o=r.keyframes;if(o.length>1){var a=o.pop();r.addKeyframe(a.time,t[n]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}(),pm=function(t){function i(e){var i=t.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,e=e||{},i.stage=e.stage||{},i}return e(i,t),i.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},i.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},i.prototype.removeClip=function(t){if(t.animation){var e=t.prev,i=t.next;e?e.next=i:this._head=i,i?i.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},i.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},i.prototype.update=function(t){for(var e=ri()-this._pausedTime,i=e-this._time,n=this._head;n;){var r=n.next;n.step(e,i)?(n.ondestroy(),this.removeClip(n),n=r):n=r}this._time=e,t||(this.trigger("frame",i),this.stage.update&&this.stage.update())},i.prototype._startLoop=function(){function t(){e._running&&(By(t),!e._paused&&e.update())}var e=this;this._running=!0,By(t)},i.prototype.start=function(){this._running||(this._time=ri(),this._pausedTime=0,this._startLoop())},i.prototype.stop=function(){this._running=!1},i.prototype.pause=function(){this._paused||(this._pauseStart=ri(),this._paused=!0)},i.prototype.resume=function(){this._paused&&(this._pausedTime+=ri()-this._pauseStart,this._paused=!1)},i.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},i.prototype.isFinished=function(){return null==this._head},i.prototype.animate=function(t,e){e=e||{},this.start();var i=new cm(t,e.loop);return this.addAnimator(i),i},i}(ty),fm=xv.domSupported,dm=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:t,touch:["touchstart","touchend","touchmove"],pointer:g(t,function(t){var i=t.replace("mouse","pointer");return e.hasOwnProperty(i)?i:t})}}(),gm={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},vm=!1,ym=function(){function t(t,e){this.stopPropagation=K,this.stopImmediatePropagation=K,this.preventDefault=K,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return t}(),mm={mousedown:function(t){t=At(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=At(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=At(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=At(this.dom,t),ui(this,t.toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){vm=!0,t=At(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){vm||(t=At(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=At(this.dom,t),si(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),mm.mousemove.call(this,t),mm.mousedown.call(this,t)},touchmove:function(t){t=At(this.dom,t),si(t),this.handler.processGesture(t,"change"),mm.mousemove.call(this,t)},touchend:function(t){t=At(this.dom,t),si(t),this.handler.processGesture(t,"end"),mm.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&mm.click.call(this,t)},pointerdown:function(t){mm.mousedown.call(this,t)},pointermove:function(t){oi(t)||mm.mousemove.call(this,t)},pointerup:function(t){mm.mouseup.call(this,t)},pointerout:function(t){oi(t)||mm.mouseout.call(this,t)}};d(["click","dblclick","contextmenu"],function(t){mm[t]=function(e){e=At(this.dom,e),this.trigger(t,e)}});var _m={pointermove:function(t){oi(t)||_m.mousemove.call(this,t)},pointerup:function(t){_m.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}},xm=function(){function t(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return t}(),wm=function(t){function i(e,i){var n=t.call(this)||this;return n.__pointerCapturing=!1,n.dom=e,n.painterRoot=i,n._localHandlerScope=new xm(e,mm),fm&&(n._globalHandlerScope=new xm(document,_m)),hi(n,n._localHandlerScope),n}return e(i,t),i.prototype.dispose=function(){fi(this._localHandlerScope),fm&&fi(this._globalHandlerScope)},i.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},i.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,fm&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?ci(this,e):fi(e)}},i}(ty),bm=1;xv.hasGlobalWindow&&(bm=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Sm=bm,Tm=.4,Mm="#333",Cm="#ccc",Im=Bt,km=5e-5,Am=[],Dm=[],Pm=Rt(),Om=Math.abs,Lm=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return di(this.rotation)||di(this.x)||di(this.y)||di(this.scaleX-1)||di(this.scaleY-1)||di(this.skewX)||di(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;return e||t?(i=i||Rt(),e?this.getLocalTransform(i):Im(i),t&&(e?zt(i,t,i):Nt(i,t)),this.transform=i,void this._resolveGlobalScaleRatio(i)):void(i&&Im(i))},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(Am);var i=Am[0]<0?-1:1,n=Am[1]<0?-1:1,r=((Am[0]-i)*e+i)/Am[0]||0,o=((Am[1]-n)*e+n)/Am[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Rt(),Vt(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),r=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=i,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(zt(Dm,t.invTransform,e),e=Dm);var i=this.originX,n=this.originY;(i||n)&&(Pm[4]=i,Pm[5]=n,zt(Dm,e,Pm),Dm[4]-=i,Dm[5]-=n,e=Dm),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&>(i,i,n),i},t.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&>(i,i,n),i},t.prototype.getLineScale=function(){var t=this.transform;return t&&Om(t[0]-1)>1e-10&&Om(t[3]-1)>1e-10?Math.sqrt(Om(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){gi(this,t)},t.getLocalTransform=function(t,e){e=e||[];var i=t.originX||0,n=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(i||n||a||s){var f=i+a,d=n+s;e[4]=-f*r-c*d*o,e[5]=-d*o-p*f*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=p*r,e[2]=c*o,l&&Yt(e,e,l),e[4]+=i+u,e[5]+=n+h,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),Em=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"],Rm={},Bm="__zr_normal__",Nm=Em.concat(["ignore"]),zm=v(Em,function(t,e){return t[e]=!0,t},{ignore:!1}),Fm={},Ym=new by(0,0,0,0),Hm=function(){function t(t){this.id=n(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=n?this:null;var l=!1;if(r.copyTransform(e),null!=i.position){var u=Ym;u.copy(i.layoutRect?i.layoutRect:this.getBoundingRect()),n||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Fm,i,u):Si(Fm,i,u),r.x=Fm.x,r.y=Fm.y,o=Fm.align,a=Fm.verticalAlign;var h=i.origin;if(h&&null!=i.rotation){var c=void 0,p=void 0;"center"===h?(c=.5*u.width,p=.5*u.height):(c=bi(h[0],u.width),p=bi(h[1],u.height)),l=!0,r.originX=-r.x+c+(n?0:u.x),r.originY=-r.y+p+(n?0:u.y)}}null!=i.rotation&&(r.rotation=i.rotation);var f=i.offset;f&&(r.x+=f[0],r.y+=f[1],l||(r.originX=-f[0],r.originY=-f[1]));var d=null==i.inside?"string"==typeof i.position&&i.position.indexOf("inside")>=0:i.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,y=void 0,m=void 0;d&&this.canBeInsideText()?(v=i.insideFill,y=i.insideStroke,(null==v||"auto"===v)&&(v=this.getInsideTextFill()),(null==y||"auto"===y)&&(y=this.getInsideTextStroke(v),m=!0)):(v=i.outsideFill,y=i.outsideStroke,(null==v||"auto"===v)&&(v=this.getOutsideFill()),(null==y||"auto"===y)&&(y=this.getOutsideStroke(v),m=!0)),v=v||"#000",(v!==g.fill||y!==g.stroke||m!==g.autoStroke||o!==g.align||a!==g.verticalAlign)&&(s=!0,g.fill=v,g.stroke=y,g.autoStroke=m,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=Oy,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Cm:Mm},t.prototype.getOutsideStroke=function(){var t=this.__zr&&this.__zr.getBackgroundColor(),e="string"==typeof t&&Oe(t);e||(e=[255,255,255,1]);for(var i=e[3],n=this.__zr.isDarkMode(),r=0;3>r;r++)e[r]=e[r]*i+(n?0:255)*(1-i);return e[3]=1,He(e,"rgba")},t.prototype.traverse=function(){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},l(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(I(t))for(var i=t,n=_(i),r=0;r<n.length;r++){var o=n[r];this.attrKV(o,t[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],r=n.__fromStateTransition;if(!(n.getLoop()||r&&r!==Bm)){var o=n.targetName,a=o?e[o]:e;n.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Nm)},t.prototype._savePrimaryToNormal=function(t,e,i){for(var n=0;n<i.length;n++){var r=i[n];null==t[r]||r in e||(e[r]=this[r])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(Bm,!1,t)},t.prototype.useState=function(t,e,i,n){var o=t===Bm;if(this.hasState()||!o){var a=this.currentStates,s=this.stateTransition;if(!(h(a,t)>=0)||!e&&1!==a.length){var l;if(this.stateProxy&&!o&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),!l&&!o)return void r("State "+t+" not exists.");o||this.saveCurrentToNormalState(l);var u=!!(l&&l.hoverLayer||n);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!i&&!this.__inHover&&s&&s.duration>0,s);var c=this._textContent,p=this._textGuide;return c&&c.useState(t,e,i,u),p&&p.useState(t,e,i,u),o?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Oy),l}}},t.prototype.useStates=function(t,e,i){if(t.length){var n=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;o>s;s++)if(t[s]!==r[s]){a=!1;break}if(a)return;for(var s=0;o>s;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&n.push(u)}var h=n[o-1],c=!!(h&&h.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(n),f=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(t.join(","),p,this._normalState,!1,!e&&!this.__inHover&&f&&f.duration>0,f);var d=this._textContent,g=this._textGuide;d&&d.useStates(t,e,c),g&&g.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Oy)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=h(this.currentStates,t);if(e>=0){var i=this.currentStates.slice();i.splice(e,1),this.useStates(i)}},t.prototype.replaceState=function(t,e,i){var n=this.currentStates.slice(),r=h(n,t),o=h(n,e)>=0;r>=0?o?n.splice(r,1):n[r]=e:i&&!o&&n.push(e),this.useStates(n)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,i={},n=0;n<t.length;n++){var r=t[n];l(i,r),r.textConfig&&(e=e||{},l(e,r.textConfig))}return e&&(i.textConfig=e),i},t.prototype._applyStateObj=function(t,e,i,n,r,o){var a=!(e&&n);e&&e.textConfig?(this.textConfig=l({},n?this.textConfig:i.textConfig),l(this.textConfig,e.textConfig)):a&&i.textConfig&&(this.textConfig=i.textConfig);for(var s={},u=!1,h=0;h<Nm.length;h++){var c=Nm[h],p=r&&zm[c];e&&null!=e[c]?p?(u=!0,s[c]=e[c]):this[c]=e[c]:a&&null!=i[c]&&(p?(u=!0,s[c]=i[c]):this[c]=i[c])}if(!r)for(var h=0;h<this.animators.length;h++){var f=this.animators[h],d=f.targetName;f.getLoop()||f.__changeFinalValue(d?(e||i)[d]:e||i)}u&&this._transitionState(t,s,o)},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new Lm,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),l(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=Oy;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,i=this._textGuide;e&&(e.__inHover=t),i&&(i.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.addAnimator(e[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.removeAnimator(e[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,i){var n=t?this[t]:this,r=new cm(n,e,i);return t&&(r.targetName=t),this.addAnimator(r,t),r},t.prototype.addAnimator=function(t,e){var i=this.__zr,n=this;t.during(function(){n.updateDuringAnimation(e)}).done(function(){var e=n.animators,i=h(e,t);i>=0&&e.splice(i,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},t.prototype.updateDuringAnimation=function(){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var i=this.animators,n=i.length,r=[],o=0;n>o;o++){var a=i[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},t.prototype.animateTo=function(t,e,i){Ti(this,t,e,i)},t.prototype.animateFrom=function(t,e,i){Ti(this,t,e,i,!0)},t.prototype._transitionState=function(t,e,i,n){for(var r=Ti(this,e,i,n),o=0;o<r.length;o++)r[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){function e(t,e,n,r){function o(t,e){Object.defineProperty(e,0,{get:function(){return t[n]},set:function(e){t[n]=e}}),Object.defineProperty(e,1,{get:function(){return t[r]},set:function(e){t[r]=e}})}Object.defineProperty(i,t,{get:function(){if(!this[e]){o(this,this[e]=[])}return this[e]},set:function(t){this[n]=t[0],this[r]=t[1],this[e]=t,o(this,t)}})}var i=t.prototype;i.type="element",i.name="",i.ignore=i.silent=i.isGroup=i.draggable=i.dragging=i.ignoreClip=i.__inHover=!1,i.__dirty=Oy,Object.defineProperty&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))}(),t}();p(Hm,ty),p(Hm,Lm);var Vm=function(t){function i(e){var i=t.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(e),i}return e(i,t),i.prototype.childrenRef=function(){return this._children},i.prototype.children=function(){return this._children.slice()},i.prototype.childAt=function(t){return this._children[t]},i.prototype.childOfName=function(t){for(var e=this._children,i=0;i<e.length;i++)if(e[i].name===t)return e[i]},i.prototype.childCount=function(){return this._children.length},i.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},i.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var i=this._children,n=i.indexOf(e);n>=0&&(i.splice(n,0,t),this._doAdd(t))}return this},i.prototype.replace=function(t,e){var i=h(this._children,t);return i>=0&&this.replaceAt(e,i),this},i.prototype.replaceAt=function(t,e){var i=this._children,n=i[e];if(t&&t!==this&&t.parent!==this&&t!==n){i[e]=t,n.parent=null;var r=this.__zr;r&&n.removeSelfFromZr(r),this._doAdd(t)}return this},i.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},i.prototype.remove=function(t){var e=this.__zr,i=this._children,n=h(i,t);return 0>n?this:(i.splice(n,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh(),this)},i.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,i=0;i<t.length;i++){var n=t[i];e&&n.removeSelfFromZr(e),n.parent=null}return t.length=0,this},i.prototype.eachChild=function(t,e){for(var i=this._children,n=0;n<i.length;n++){var r=i[n];t.call(e,r,n)}return this},i.prototype.traverse=function(t,e){for(var i=0;i<this._children.length;i++){var n=this._children[i],r=t.call(e,n);n.isGroup&&!r&&n.traverse(t,e)}return this},i.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++){this._children[i].addSelfToZr(e)}},i.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++){this._children[i].removeSelfFromZr(e)}},i.prototype.getBoundingRect=function(t){for(var e=new by(0,0,0,0),i=t||this._children,n=[],r=null,o=0;o<i.length;o++){var a=i[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(n);l?(by.applyTransform(e,s,l),r=r||e.clone(),r.union(e)):(r=r||s.clone(),r.union(s))}}return r||e},i}(Hm);Vm.prototype.type="group";var Wm={},Xm={},Um=function(){function t(t,e,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=e,this.id=t;var r=new Ry,o=i.renderer||"canvas";Wm[o]||(o=_(Wm)[0]),i.useDirtyRect=null!=i.useDirtyRect&&i.useDirtyRect;var a=new Wm[o](e,r,i,t),s=i.ssr||a.ssrOnly;this.storage=r,this.painter=a;var l,u=xv.node||xv.worker||s?null:new wm(a.getViewportRoot(),a.root),h=i.useCoarsePointer;(null==h||"auto"===h?xv.touchEventsSupported:!!h)&&(l=B(i.pointerSize,44)),this.handler=new ky(r,a,u,a.root,l),this.animation=new pm({stage:{update:s?null:function(){return n._flush(!0)}}}),s||this.animation.start()}return t.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},t.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=Oi(t)},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},t.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},t.prototype.flush=function(){this._flush(!1)},t.prototype._flush=function(t){var e,i=ri();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var n=ri();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-i})):this._sleepAfterStill>0&&++this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop()},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,i){return this.handler.on(t,e,i),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Vm&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},t.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,Pi(this.id)},t}(),jm=(Object.freeze||Object)({init:Li,dispose:Ei,disposeAll:Ri,getInstance:Bi,registerPainter:Ni,version:"5.4.1"}),Gm=1e-4,qm=20,Zm=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/,Km=("undefined"!=typeof console&&console.warn&&console.log,"series\0"),Qm="\0_ec_\0",$m=["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"],Jm=an(),t_={useDefault:!0,enableAll:!1,enableNone:!1},e_=".",i_="___EC__COMPONENT__CONTAINER___",n_="___EC__EXTENDED_CLASS___",r_=Math.round(10*Math.random()),o_=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],a_=Gn(o_),s_=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return a_(this,t,e)},t}(),l_=new Qy(50),u_=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,h_=function(){function t(){}return t}(),c_=function(){function t(t){this.tokens=[],t&&(this.tokens=t)}return t}(),p_=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return t}(),f_=v(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{}),d_="__zr_style_"+Math.round(10*Math.random()),g_={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},v_={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};g_[d_]=!0;var y_=["z","z2","invisible"],m_=["invisible"],__=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype._init=function(e){for(var i=_(e),n=0;n<i.length;n++){var r=i[n];"style"===r?this.useStyle(e[r]):t.prototype.attrKV.call(this,r,e[r])}this.style||this.useStyle({})},i.prototype.beforeBrush=function(){},i.prototype.afterBrush=function(){},i.prototype.innerBeforeBrush=function(){},i.prototype.innerAfterBrush=function(){},i.prototype.shouldBePainted=function(t,e,i,n){var r=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&lr(this,t,e)||r&&!r[0]&&!r[3])return!1;if(i&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(n&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},i.prototype.contain=function(t,e){return this.rectContain(t,e)},i.prototype.traverse=function(t,e){t.call(e,this)},i.prototype.rectContain=function(t,e){var i=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(i[0],i[1])},i.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,i=this.getBoundingRect(),n=this.style,r=n.shadowBlur||0,o=n.shadowOffsetX||0,a=n.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new by(0,0,0,0)),e?by.applyTransform(t,i,e):t.copy(i),(r||o||a)&&(t.width+=2*r+Math.abs(o),t.height+=2*r+Math.abs(a),t.x=Math.min(t.x,t.x+o-r),t.y=Math.min(t.y,t.y+a-r));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},i.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new by(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},i.prototype.getPrevPaintRect=function(){return this._prevPaintRect},i.prototype.animateStyle=function(t){return this.animate("style",t)},i.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},i.prototype.attrKV=function(e,i){"style"!==e?t.prototype.attrKV.call(this,e,i):this.style?this.setStyle(i):this.useStyle(i)},i.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:l(this.style,t),this.dirtyStyle(),this},i.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},i.prototype.dirty=function(){this.dirtyStyle()},i.prototype.styleChanged=function(){return!!(2&this.__dirty)},i.prototype.styleUpdated=function(){this.__dirty&=-3},i.prototype.createStyle=function(t){return G(g_,t)},i.prototype.useStyle=function(t){t[d_]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},i.prototype.isStyleObject=function(t){return t[d_]},i.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,i,y_)},i.prototype._applyStateObj=function(e,i,n,r,o,a){t.prototype._applyStateObj.call(this,e,i,n,r,o,a);var s,l=!(i&&r);if(i&&i.style?o?r?s=i.style:(s=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(s,i.style)):(s=this._mergeStyle(this.createStyle(),r?this.style:n.style),this._mergeStyle(s,i.style)):l&&(s=n.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var h=_(u),c=0;c<h.length;c++){var p=h[c];p in s&&(s[p]=s[p],this.style[p]=u[p])}for(var f=_(s),c=0;c<f.length;c++){var p=f[c];this.style[p]=this.style[p]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);for(var d=this.__inHover?m_:y_,c=0;c<d.length;c++){var p=d[c];i&&null!=i[p]?this[p]=i[p]:l&&null!=n[p]&&(this[p]=n[p])}},i.prototype._mergeStates=function(e){for(var i,n=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},i.prototype._mergeStyle=function(t,e){return l(t,e),t},i.prototype.getAnimationStyleProps=function(){return v_},i.initDefaultProps=function(){var t=i.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=2|Oy}(),i}(Hm),x_=new by(0,0,0,0),w_=new by(0,0,0,0),b_=Math.min,S_=Math.max,T_=Math.sin,M_=Math.cos,C_=2*Math.PI,I_=Q(),k_=Q(),A_=Q(),D_=[],P_=[],O_={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},L_=[],E_=[],R_=[],B_=[],N_=[],z_=[],F_=Math.min,Y_=Math.max,H_=Math.cos,V_=Math.sin,W_=Math.abs,X_=Math.PI,U_=2*X_,j_="undefined"!=typeof Float32Array,G_=[],q_=function(){function t(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 t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,i){(i=i||0)>0&&(this._ux=W_(i/Sm/t)||0,this._uy=W_(i/Sm/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(O_.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var i=W_(t-this._xi),n=W_(e-this._yi),r=i>this._ux||n>this._uy;if(this.addData(O_.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,i,n,r,o){return this._drawPendingPt(),this.addData(O_.C,t,e,i,n,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,i,n,r,o),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,i,n){return this._drawPendingPt(),this.addData(O_.Q,t,e,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,n),this._xi=i,this._yi=n,this},t.prototype.arc=function(t,e,i,n,r,o){this._drawPendingPt(),G_[0]=n,G_[1]=r,dr(G_,o),n=G_[0],r=G_[1];var a=r-n;return this.addData(O_.A,t,e,i,i,n,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,r,o),this._xi=H_(r)*i+t,this._yi=V_(r)*i+e,this},t.prototype.arcTo=function(t,e,i,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,n,r),this},t.prototype.rect=function(t,e,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,n),this.addData(O_.R,t,e,i,n),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(O_.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&t.closePath(),this._xi=e,this._yi=i,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!j_||(this.data=new Float32Array(e));for(var i=0;e>i;i++)this.data[i]=t[i];this._len=e},t.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,i=0,n=this._len,r=0;e>r;r++)i+=t[r].len();j_&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i));for(var r=0;e>r;r++)for(var o=t[r].data,a=0;a<o.length;a++)this.data[n++]=o[a];this._len=n},t.prototype.addData=function(){if(this._saveData){var t=this.data;this._len+arguments.length>t.length&&(this._expandData(),t=this.data);for(var e=0;e<arguments.length;e++)t[this._len++]=arguments[e]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,j_&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){R_[0]=R_[1]=N_[0]=N_[1]=Number.MAX_VALUE,B_[0]=B_[1]=z_[0]=z_[1]=-Number.MAX_VALUE;var t,e=this.data,i=0,n=0,r=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(i=e[t],n=e[t+1],r=i,o=n),a){case O_.M:i=r=e[t++],n=o=e[t++],N_[0]=r,N_[1]=o,z_[0]=r,z_[1]=o;break;case O_.L:ur(i,n,e[t],e[t+1],N_,z_),i=e[t++],n=e[t++];break;case O_.C:hr(i,n,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],N_,z_),i=e[t++],n=e[t++];break;case O_.Q:cr(i,n,e[t++],e[t++],e[t],e[t+1],N_,z_),i=e[t++],n=e[t++];break;case O_.A:var l=e[t++],u=e[t++],h=e[t++],c=e[t++],p=e[t++],f=e[t++]+p;t+=1;var d=!e[t++];s&&(r=H_(p)*h+l,o=V_(p)*c+u),pr(l,u,h,c,p,f,d,N_,z_),i=H_(f)*h+l,n=V_(f)*c+u;break;case O_.R:r=i=e[t++],o=n=e[t++];ur(r,o,r+e[t++],o+e[t++],N_,z_);break;case O_.Z:i=r,n=o}vt(R_,R_,N_),yt(B_,B_,z_)}return 0===t&&(R_[0]=R_[1]=B_[0]=B_[1]=0),new by(R_[0],R_[1],B_[0]-R_[0],B_[1]-R_[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,i=this._ux,n=this._uy,r=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,h=0,c=0;e>c;){var p=t[c++],f=1===c;f&&(r=t[c],o=t[c+1],a=r,s=o);var d=-1;switch(p){case O_.M:r=a=t[c++],o=s=t[c++];break;case O_.L:var g=t[c++],v=t[c++],y=g-r,m=v-o;(W_(y)>i||W_(m)>n||c===e-1)&&(d=Math.sqrt(y*y+m*m),r=g,o=v);break;case O_.C:var _=t[c++],x=t[c++],g=t[c++],v=t[c++],w=t[c++],b=t[c++];d=fe(r,o,_,x,g,v,w,b,10),r=w,o=b;break;case O_.Q:var _=t[c++],x=t[c++],g=t[c++],v=t[c++];d=xe(r,o,_,x,g,v,10),r=g,o=v;break;case O_.A:var S=t[c++],T=t[c++],M=t[c++],C=t[c++],I=t[c++],k=t[c++],A=k+I;c+=1,t[c++],f&&(a=H_(I)*M+S,s=V_(I)*C+T),d=Y_(M,C)*F_(U_,Math.abs(k)),r=H_(A)*M+S,o=V_(A)*C+T;break;case O_.R:a=r=t[c++],s=o=t[c++];d=2*t[c++]+2*t[c++];break;case O_.Z:var y=a-r,m=s-o;d=Math.sqrt(y*y+m*m),r=a,o=s}d>=0&&(l[h++]=d,u+=d)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var i,n,r,o,a,s,l,u,h,c,p,f=this.data,d=this._ux,g=this._uy,v=this._len,y=1>e,m=0,_=0,x=0;if(!y||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=this._pathLen,h=e*u))t:for(var w=0;v>w;){var b=f[w++],S=1===w;switch(S&&(r=f[w],o=f[w+1],i=r,n=o),b!==O_.L&&x>0&&(t.lineTo(c,p),x=0),b){case O_.M:i=r=f[w++],n=o=f[w++],t.moveTo(r,o);break;case O_.L:a=f[w++],s=f[w++];var T=W_(a-r),M=W_(s-o);if(T>d||M>g){if(y){var C=l[_++];if(m+C>h){var I=(h-m)/C;t.lineTo(r*(1-I)+a*I,o*(1-I)+s*I);break t}m+=C}t.lineTo(a,s),r=a,o=s,x=0}else{var k=T*T+M*M;k>x&&(c=a,p=s,x=k)}break;case O_.C:var A=f[w++],D=f[w++],P=f[w++],O=f[w++],L=f[w++],E=f[w++];if(y){var C=l[_++];if(m+C>h){var I=(h-m)/C;ce(r,A,P,L,I,L_),ce(o,D,O,E,I,E_),t.bezierCurveTo(L_[1],E_[1],L_[2],E_[2],L_[3],E_[3]);break t}m+=C}t.bezierCurveTo(A,D,P,O,L,E),r=L,o=E;break;case O_.Q:var A=f[w++],D=f[w++],P=f[w++],O=f[w++];if(y){var C=l[_++];if(m+C>h){var I=(h-m)/C;me(r,A,P,I,L_),me(o,D,O,I,E_),t.quadraticCurveTo(L_[1],E_[1],L_[2],E_[2]);break t}m+=C}t.quadraticCurveTo(A,D,P,O),r=P,o=O;break;case O_.A:var R=f[w++],B=f[w++],N=f[w++],z=f[w++],F=f[w++],Y=f[w++],H=f[w++],V=!f[w++],W=N>z?N:z,X=W_(N-z)>.001,U=F+Y,j=!1;if(y){var C=l[_++];m+C>h&&(U=F+Y*(h-m)/C,j=!0),m+=C}if(X&&t.ellipse?t.ellipse(R,B,N,z,H,F,U,V):t.arc(R,B,W,F,U,V),j)break t;S&&(i=H_(F)*N+R,n=V_(F)*z+B),r=H_(U)*N+R,o=V_(U)*z+B;break;case O_.R:i=r=f[w],n=o=f[w+1],a=f[w++],s=f[w++];var G=f[w++],q=f[w++];if(y){var C=l[_++];if(m+C>h){var Z=h-m;t.moveTo(a,s),t.lineTo(a+F_(Z,G),s),Z-=G,Z>0&&t.lineTo(a+G,s+F_(Z,q)),Z-=q,Z>0&&t.lineTo(a+Y_(G-Z,0),s+q),(Z-=G)>0&&t.lineTo(a,s+Y_(q-Z,0));break t}m+=C}t.rect(a,s,G,q);break;case O_.Z:if(y){var C=l[_++];if(m+C>h){var I=(h-m)/C;t.lineTo(r*(1-I)+i*I,o*(1-I)+n*I);break t}m+=C}t.closePath(),r=i,o=n}}},t.prototype.clone=function(){var e=new t,i=this.data;return e.data=i.slice?i.slice():Array.prototype.slice.call(i),e._len=this._len,e},t.CMD=O_,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),Z_=2*Math.PI,K_=2*Math.PI,Q_=q_.CMD,$_=2*Math.PI,J_=1e-4,tx=[-1,-1,-1],ex=[-1,-1],ix=u({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},g_),nx={style:u({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},v_.style)},rx=Em.concat(["invisible","culling","z","z2","zlevel","parent"]),ox=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype.update=function(){var e=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var r=this._decalEl=this._decalEl||new i;r.buildPath===i.prototype.buildPath&&(r.buildPath=function(t){e.buildPath(t,e.shape)}),r.silent=!0;var o=r.style;for(var a in n)o[a]!==n[a]&&(o[a]=n[a]);o.fill=n.fill?n.decal:null,o.decal=null,o.shadowColor=null,n.strokeFirst&&(o.stroke=null);for(var s=0;s<rx.length;++s)r[rx[s]]=this[rx[s]];r.__dirty|=Oy}else this._decalEl&&(this._decalEl=null)},i.prototype.getDecalElement=function(){return this._decalEl},i.prototype._init=function(e){var i=_(e);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var r=0;r<i.length;r++){var o=i[r],a=e[o];"style"===o?this.style?l(this.style,a):this.useStyle(a):"shape"===o?l(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},i.prototype.getDefaultStyle=function(){return null},i.prototype.getDefaultShape=function(){return{}},i.prototype.canBeInsideText=function(){return this.hasFill()},i.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(T(t)){var e=Ve(t,0);return e>.5?Mm:e>.2?"#eee":Cm}if(t)return Cm}return Mm},i.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(T(e)){var i=this.__zr;if(!(!i||!i.isDarkMode())===Ve(t,0)<Tm)return e}},i.prototype.buildPath=function(){},i.prototype.pathUpdated=function(){this.__dirty&=~Ly},i.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},i.prototype.createPathProxy=function(){this.path=new q_(!1)},i.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},i.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},i.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,i=!t;if(i){var n=!1;this.path||(n=!0,this.createPathProxy());var r=this.path;(n||this.__dirty&Ly)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||i){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},i.prototype.contain=function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect(),r=this.style;if(t=i[0],e=i[1],n.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),kr(o,a/s,t,e)))return!0}if(this.hasFill())return Ir(o,t,e)}return!1},i.prototype.dirtyShape=function(){this.__dirty|=Ly,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},i.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},i.prototype.animateShape=function(t){return this.animate("shape",t)},i.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},i.prototype.attrKV=function(e,i){"shape"===e?this.setShape(i):t.prototype.attrKV.call(this,e,i)},i.prototype.setShape=function(t,e){var i=this.shape;return i||(i=this.shape={}),"string"==typeof t?i[t]=e:l(i,t),this.dirtyShape(),this},i.prototype.shapeChanged=function(){return!!(this.__dirty&Ly)},i.prototype.createStyle=function(t){return G(ix,t)},i.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.shape&&!i.shape&&(i.shape=l({},this.shape))},i.prototype._applyStateObj=function(e,i,n,r,o,a){t.prototype._applyStateObj.call(this,e,i,n,r,o,a);var s,u=!(i&&r);if(i&&i.shape?o?r?s=i.shape:(s=l({},n.shape),l(s,i.shape)):(s=l({},r?this.shape:n.shape),l(s,i.shape)):u&&(s=n.shape),s)if(o){this.shape=l({},this.shape);for(var h={},c=_(s),p=0;p<c.length;p++){var f=c[p];"object"==typeof s[f]?this.shape[f]=s[f]:h[f]=s[f]}this._transitionState(e,{shape:h},a)}else this.shape=s,this.dirtyShape()},i.prototype._mergeStates=function(e){for(var i,n=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},i.prototype.getAnimationStyleProps=function(){return nx},i.prototype.isZeroArea=function(){return!1},i.extend=function(t){var n=function(i){function n(e){var n=i.call(this,e)||this;return t.init&&t.init.call(n,e),n}return e(n,i),n.prototype.getDefaultStyle=function(){return o(t.style)},n.prototype.getDefaultShape=function(){return o(t.shape)},n}(i);for(var r in t)"function"==typeof t[r]&&(n.prototype[r]=t[r]);return n},i.initDefaultProps=function(){var t=i.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=2|Oy|Ly}(),i}(__),ax=u({strokeFirst:!0,font:bv,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},ix),sx=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},i.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},i.prototype.createStyle=function(t){return G(ax,t)},i.prototype.setBoundingRect=function(t){this._rect=t},i.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var i=mi(e,t.font,t.textAlign,t.textBaseline);if(i.x+=t.x||0,i.y+=t.y||0,this.hasStroke()){var n=t.lineWidth;i.x-=n/2,i.y-=n/2,i.width+=n,i.height+=n}this._rect=i}return this._rect},i.initDefaultProps=function(){i.prototype.dirtyRectTolerance=10}(),i}(__);sx.prototype.type="tspan";var lx=u({x:0,y:0},g_),ux={style:u({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},v_.style)},hx=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i.prototype.createStyle=function(t){return G(lx,t)},i.prototype._getSize=function(t){var e=this.style,i=e[t];if(null!=i)return i;var n=Ar(e.image)?e.image:this.__image;if(!n)return 0;var r="width"===t?"height":"width",o=e[r];return null==o?n[t]:n[t]/n[r]*o},i.prototype.getWidth=function(){return this._getSize("width")},i.prototype.getHeight=function(){return this._getSize("height")},i.prototype.getAnimationStyleProps=function(){return ux},i.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new by(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},i}(__);hx.prototype.type="image";var cx=Math.round,px=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),fx={},dx=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype.getDefaultShape=function(){return new px},i.prototype.buildPath=function(t,e){var i,n,r,o;if(this.subPixelOptimize){var a=Or(fx,e,this.style);i=a.x,n=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else i=e.x,n=e.y,r=e.width,o=e.height;e.r?Dr(t,e):t.rect(i,n,r,o)},i.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},i}(ox);dx.prototype.type="rect";var gx={fill:"#000"},vx={style:u({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},v_.style)},yx=function(t){function i(e){var i=t.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=gx,i.attr(e),i}return e(i,t),i.prototype.childrenRef=function(){return this._children},i.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var i=this._children[e];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},i.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},i.prototype.getLocalTransform=function(e){var i=this.innerTransformable;return i?i.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},i.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},i.prototype._updateSubTexts=function(){this._childCursor=0,Nr(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},i.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=e},i.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},i.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new by(0,0,0,0),e=this._children,i=[],n=null,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),s=o.getLocalTransform(i);s?(t.copy(a),t.applyTransform(s),n=n||t.clone(),n.union(t)):(n=n||a.clone(),n.union(a))}this._rect=n||t}return this._rect},i.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||gx},i.prototype.setTextContent=function(){},i.prototype._mergeStyle=function(t,e){if(!e)return t;var i=e.rich,n=t.rich||i&&{};return l(t,e),i&&n?(this._mergeRich(n,i),t.rich=n):n&&(t.rich=n),t},i.prototype._mergeRich=function(t,e){for(var i=_(e),n=0;n<i.length;n++){var r=i[n];t[r]=t[r]||{},l(t[r],e[r])}},i.prototype.getAnimationStyleProps=function(){return vx},i.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},i.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||bv,i=t.padding,n=Vr(t),r=ir(n,t),o=Wr(t),a=!!t.backgroundColor,s=r.outerHeight,l=r.outerWidth,u=r.contentWidth,h=r.lines,c=r.lineHeight,p=this._defaultStyle,f=t.x||0,d=t.y||0,g=t.align||p.align||"left",v=t.verticalAlign||p.verticalAlign||"top",y=f,m=xi(d,r.contentHeight,v);if(o||i){var _=_i(f,l,g),x=xi(d,s,v);o&&this._renderBackground(t,t,_,x,l,s)}m+=c/2,i&&(y=Hr(f,g,i),"top"===v?m+=i[0]:"bottom"===v&&(m-=i[2]));for(var w=0,b=!1,S=(Yr("fill"in t?t.fill:(b=!0,p.fill))),T=(Fr("stroke"in t?t.stroke:a||p.autoStroke&&!b?null:(w=2,p.stroke))),M=t.textShadowBlur>0,C=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),I=r.calculatedLineHeight,k=0;k<h.length;k++){var A=this._getOrCreateChild(sx),D=A.createStyle();A.useStyle(D),D.text=h[k],D.x=y,D.y=m,g&&(D.textAlign=g),D.textBaseline="middle",D.opacity=t.opacity,D.strokeFirst=!0,M&&(D.shadowBlur=t.textShadowBlur||0,D.shadowColor=t.textShadowColor||"transparent",D.shadowOffsetX=t.textShadowOffsetX||0,D.shadowOffsetY=t.textShadowOffsetY||0),D.stroke=T,D.fill=S,T&&(D.lineWidth=t.lineWidth||w,D.lineDash=t.lineDash,D.lineDashOffset=t.lineDashOffset||0),D.font=e,Rr(D,t),m+=c,C&&A.setBoundingRect(new by(_i(D.x,t.width,D.textAlign),xi(D.y,I,D.textBaseline),u,I))}},i.prototype._updateRichTexts=function(){var t=this.style,e=Vr(t),i=nr(e,t),n=i.width,r=i.outerWidth,o=i.outerHeight,a=t.padding,s=t.x||0,l=t.y||0,u=this._defaultStyle,h=t.align||u.align,c=t.verticalAlign||u.verticalAlign,p=_i(s,r,h),f=xi(l,o,c),d=p,g=f;a&&(d+=a[3],g+=a[0]);var v=d+n;Wr(t)&&this._renderBackground(t,t,p,f,r,o);for(var y=!!t.backgroundColor,m=0;m<i.lines.length;m++){for(var _=i.lines[m],x=_.tokens,w=x.length,b=_.lineHeight,S=_.width,T=0,M=d,C=v,I=w-1,k=void 0;w>T&&(k=x[T],!k.align||"left"===k.align);)this._placeToken(k,t,b,g,M,"left",y),S-=k.width,M+=k.width,T++;for(;I>=0&&(k=x[I],"right"===k.align);)this._placeToken(k,t,b,g,C,"right",y),S-=k.width,C-=k.width,I--;for(M+=(n-(M-d)-(v-C)-S)/2;I>=T;)k=x[T],this._placeToken(k,t,b,g,M+k.width/2,"center",y),M+=k.width,T++;g+=b}},i.prototype._placeToken=function(t,e,i,n,r,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=n+i/2;"top"===l?u=n+t.height/2:"bottom"===l&&(u=n+i-t.height/2),!t.isLineHolder&&Wr(s)&&this._renderBackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,u-t.height/2,t.width,t.height);var h=!!s.backgroundColor,c=t.textPadding;c&&(r=Hr(r,o,c),u-=t.height/2-c[0]-t.innerHeight/2);var p=this._getOrCreateChild(sx),f=p.createStyle();p.useStyle(f);var d=this._defaultStyle,g=!1,v=0,y=Yr("fill"in s?s.fill:"fill"in e?e.fill:(g=!0,d.fill)),m=Fr("stroke"in s?s.stroke:"stroke"in e?e.stroke:h||a||d.autoStroke&&!g?null:(v=2,d.stroke)),_=s.textShadowBlur>0||e.textShadowBlur>0;f.text=t.text,f.x=r,f.y=u,_&&(f.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,f.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",f.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,f.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),f.textAlign=o,f.textBaseline="middle",f.font=t.font||bv,f.opacity=N(s.opacity,e.opacity,1),Rr(f,s),m&&(f.lineWidth=N(s.lineWidth,e.lineWidth,v),f.lineDash=B(s.lineDash,e.lineDash),f.lineDashOffset=e.lineDashOffset||0,f.stroke=m),y&&(f.fill=y);var x=t.contentWidth,w=t.contentHeight;p.setBoundingRect(new by(_i(f.x,x,f.textAlign),xi(f.y,w,f.textBaseline),x,w))},i.prototype._renderBackground=function(t,e,i,n,r,o){var a,s,l=t.backgroundColor,u=t.borderWidth,h=t.borderColor,c=l&&l.image,p=l&&!c,f=t.borderRadius,d=this;if(p||t.lineHeight||u&&h){a=this._getOrCreateChild(dx),a.useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=i,g.y=n,g.width=r,g.height=o,g.r=f,a.dirtyShape()}if(p){var v=a.style;v.fill=l||null,v.fillOpacity=B(t.fillOpacity,1)}else if(c){s=this._getOrCreateChild(hx),s.onload=function(){d.dirtyStyle()};var y=s.style;y.image=l.image,y.x=i,y.y=n,y.width=r,y.height=o}if(u&&h){var v=a.style;v.lineWidth=u,v.stroke=h,v.strokeOpacity=B(t.strokeOpacity,1),v.lineDash=t.borderDash,v.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(v.strokeFirst=!0,v.lineWidth*=2)}var m=(a||s).style;m.shadowBlur=t.shadowBlur||0,m.shadowColor=t.shadowColor||"transparent",m.shadowOffsetX=t.shadowOffsetX||0,m.shadowOffsetY=t.shadowOffsetY||0,m.opacity=N(t.opacity,e.opacity,1)},i.makeFont=function(t){var e="";return Br(t)&&(e=[t.fontStyle,t.fontWeight,Er(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&H(e)||t.textFont||t.font},i}(__),mx={left:!0,right:1,center:1},_x={top:1,bottom:1,middle:1},xx=["fontStyle","fontWeight","fontSize","fontFamily"],bx=Dn(),Sx=function(t,e,i,n){if(n){var r=bx(n);r.dataIndex=i,r.dataType=e,r.seriesIndex=t,"group"===n.type&&n.traverse(function(n){var r=bx(n);r.seriesIndex=t,r.dataIndex=i,r.dataType=e})}},Tx=1,Mx={},Cx=Dn(),Ix=Dn(),kx=0,Ax=1,Dx=2,Px=["emphasis","blur","select"],Ox=["normal","emphasis","blur","select"],Lx=10,Ex=9,Rx="highlight",Bx="downplay",Nx="select",zx="unselect",Fx="toggleSelect",Yx=new Qy(100),Hx=["emphasis","blur","select"],Vx={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"},Wx=q_.CMD,Xx=[[],[],[]],Ux=Math.sqrt,jx=Math.atan2,Gx=Math.sqrt,qx=Math.sin,Zx=Math.cos,Kx=Math.PI,Qx=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,$x=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,Jx=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i.prototype.applyTransform=function(){},i}(ox),tw=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),ew=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype.getDefaultShape=function(){return new tw},i.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},i}(ox);ew.prototype.type="circle";var iw=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),nw=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype.getDefaultShape=function(){return new iw},i.prototype.buildPath=function(t,e){var i=.5522848,n=e.cx,r=e.cy,o=e.rx,a=e.ry,s=o*i,l=a*i;t.moveTo(n-o,r),t.bezierCurveTo(n-o,r-l,n-s,r-a,n,r-a),t.bezierCurveTo(n+s,r-a,n+o,r-l,n+o,r),t.bezierCurveTo(n+o,r+l,n+s,r+a,n,r+a),t.bezierCurveTo(n-s,r+a,n-o,r+l,n-o,r),t.closePath()},i}(ox);nw.prototype.type="ellipse";var rw=Math.PI,ow=2*rw,aw=Math.sin,sw=Math.cos,lw=Math.acos,uw=Math.atan2,hw=Math.abs,cw=Math.sqrt,pw=Math.max,fw=Math.min,dw=1e-4,gw=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}return t}(),vw=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype.getDefaultShape=function(){return new gw},i.prototype.buildPath=function(t,e){Jo(t,e)},i.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},i}(ox);vw.prototype.type="sector";var yw=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),mw=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype.getDefaultShape=function(){return new yw},i.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,r=2*Math.PI;t.moveTo(i+e.r,n),t.arc(i,n,e.r,0,r,!1),t.moveTo(i+e.r0,n),t.arc(i,n,e.r0,0,r,!0)},i}(ox);mw.prototype.type="ring";var _w=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),xw=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype.getDefaultShape=function(){return new _w},i.prototype.buildPath=function(t,e){ea(t,e,!0)},i}(ox);xw.prototype.type="polygon";var ww=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),bw=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new ww},i.prototype.buildPath=function(t,e){ea(t,e,!1)},i}(ox);bw.prototype.type="polyline";var Sw={},Tw=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),Mw=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new Tw},i.prototype.buildPath=function(t,e){var i,n,r,o;if(this.subPixelOptimize){var a=Pr(Sw,e,this.style);i=a.x1,n=a.y1,r=a.x2,o=a.y2}else i=e.x1,n=e.y1,r=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(i,n),1>s&&(r=i*(1-s)+r*s,o=n*(1-s)+o*s),t.lineTo(r,o))},i.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},i}(ox);Mw.prototype.type="line";var Cw=[],Iw=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}(),kw=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new Iw},i.prototype.buildPath=function(t,e){var i=e.x1,n=e.y1,r=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,h=e.percent;0!==h&&(t.moveTo(i,n),null==l||null==u?(1>h&&(me(i,a,r,h,Cw),a=Cw[1],r=Cw[2],me(n,s,o,h,Cw),s=Cw[1],o=Cw[2]),t.quadraticCurveTo(a,s,r,o)):(1>h&&(ce(i,a,l,r,h,Cw),a=Cw[1],l=Cw[2],r=Cw[3],ce(n,s,u,o,h,Cw),s=Cw[1],u=Cw[2],o=Cw[3]),t.bezierCurveTo(a,s,l,u,r,o)))},i.prototype.pointAt=function(t){return ia(this.shape,t,!1)},i.prototype.tangentAt=function(t){var e=ia(this.shape,t,!0);return ht(e,e)},i}(ox);kw.prototype.type="bezier-curve";var Aw=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),Dw=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new Aw},i.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*r+i,u*r+n),t.arc(i,n,r,o,a,!s)},i}(ox);Dw.prototype.type="arc";var Pw=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return e(i,t),i.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),i=0;i<t.length;i++)e=e||t[i].shapeChanged();e&&this.dirtyShape()},i.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),i=0;i<t.length;i++)t[i].path||t[i].createPathProxy(),t[i].path.setScale(e[0],e[1],t[i].segmentIgnoreThreshold)},i.prototype.buildPath=function(t,e){for(var i=e.paths||[],n=0;n<i.length;n++)i[n].buildPath(t,i[n].shape,!0)},i.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},i.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ox.prototype.getBoundingRect.call(this)},i}(ox),Ow=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}(),Lw=function(t){function i(e,i,n,r,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==i?0:i,s.x2=null==n?1:n,s.y2=null==r?0:r,s.type="linear",s.global=a||!1,s}return e(i,t),i}(Ow),Ew=function(t){function i(e,i,n,r,o){var a=t.call(this,r)||this;return a.x=null==e?.5:e,a.y=null==i?.5:i,a.r=null==n?.5:n,a.type="radial",a.global=o||!1,a}return e(i,t),i}(Ow),Rw=[0,0],Bw=[0,0],Nw=new fy,zw=new fy,Fw=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;4>i;i++)this._corners[i]=new fy;for(var i=0;2>i;i++)this._axes[i]=new fy;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var i=this._corners,n=this._axes,r=t.x,o=t.y,a=r+t.width,s=o+t.height;if(i[0].set(r,o),i[1].set(a,o),i[2].set(a,s),i[3].set(r,s),e)for(var l=0;4>l;l++)i[l].transform(e);fy.sub(n[0],i[1],i[0]),fy.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var l=0;2>l;l++)this._origin[l]=n[l].dot(i[0])},t.prototype.intersect=function(t,e){var i=!0,n=!e;return Nw.set(1/0,1/0),zw.set(0,0),!this._intersectCheckOneSide(this,t,Nw,zw,n,1)&&(i=!1,n)?i:!this._intersectCheckOneSide(t,this,Nw,zw,n,-1)&&(i=!1,n)?i:(n||fy.copy(e,i?Nw:zw),i)},t.prototype._intersectCheckOneSide=function(t,e,i,n,r,o){for(var a=!0,s=0;2>s;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,Rw),this._getProjMinMaxOnAxis(s,e._corners,Bw),Rw[1]<Bw[0]||Rw[0]>Bw[1]){if(a=!1,r)return a;var u=Math.abs(Bw[0]-Rw[1]),h=Math.abs(Rw[0]-Bw[1]);Math.min(u,h)>n.len()&&(h>u?fy.scale(n,l,-u*o):fy.scale(n,l,h*o))}else if(i){var u=Math.abs(Bw[0]-Rw[1]),h=Math.abs(Rw[0]-Bw[1]);Math.min(u,h)<i.len()&&(h>u?fy.scale(i,l,u*o):fy.scale(i,l,-h*o))}}return a},t.prototype._getProjMinMaxOnAxis=function(t,e,i){for(var n=this._axes[t],r=this._origin,o=e[0].dot(n)+r[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(n)+r[t];a=Math.min(u,a),s=Math.max(u,s)}i[0]=a,i[1]=s},t}(),Yw=[],Hw=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return e(i,t),i.prototype.traverse=function(t,e){t.call(e,this)},i.prototype.useStyle=function(){this.style={}},i.prototype.getCursor=function(){return this._cursor},i.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},i.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},i.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},i.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},i.prototype.addDisplayables=function(t,e){e=e||!1;for(var i=0;i<t.length;i++)this.addDisplayable(t[i],e)},i.prototype.getDisplayables=function(){return this._displayables},i.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},i.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(var e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},i.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var e=this._displayables[t];e.parent=this,e.update(),e.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var e=this._temporaryDisplayables[t];e.parent=this,e.update(),e.parent=null}},i.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new by(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var i=this._displayables[e],n=i.getBoundingRect().clone();i.needLocalTransform()&&n.applyTransform(i.getLocalTransform(Yw)),t.union(n)}this._rect=t}return this._rect},i.prototype.contain=function(t,e){var i=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(i[0],i[1]))for(var n=0;n<this._displayables.length;n++){var r=this._displayables[n];if(r.contain(t,e))return!0}return!1},i}(__),Vw=Dn(),Ww=Math.max,Xw=Math.min,Uw={},jw=qo,Gw=Zo,qw=Lr;da("circle",ew),da("ellipse",nw),da("sector",vw),da("ring",mw),da("polygon",xw),da("polyline",bw),da("rect",dx),da("line",Mw),da("bezierCurve",kw),da("arc",Dw);var Zw=(Object.freeze||Object)({updateProps:oa,initProps:aa,removeElement:la,removeElementWithFadeOut:ha,isElementRemoved:sa,extendShape:pa,extendPath:fa,registerShape:da,getShapeClass:ga,makePath:va,makeImage:ya,mergePath:Gw,resizePath:_a,subPixelOptimizeLine:xa,subPixelOptimizeRect:wa,subPixelOptimize:qw,getTransform:ba,applyTransform:Sa,transformDirection:Ta,groupTransition:Ia,clipPointsByRect:ka,clipRectByRect:Aa,createIcon:Da,linePolygonIntersect:Pa,lineLineIntersect:Oa,setTooltipConfig:Ra,traverseElements:Na,Group:Vm,Image:hx,Text:yx,Circle:ew,Ellipse:nw,Sector:vw,Ring:mw,Polygon:xw,Polyline:bw,Rect:dx,Line:Mw,BezierCurve:kw,Arc:Dw,IncrementalDisplayable:Hw,CompoundPath:Pw,LinearGradient:Lw,RadialGradient:Ew,BoundingRect:by,OrientedBoundingRect:Fw,Point:fy,Path:ox}),Kw={},Qw=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],$w=["align","lineHeight","width","height","tag","verticalAlign"],Jw=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],tb=Dn(),eb=["textStyle","color"],ib=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],nb=new yx,rb=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(eb):null)},t.prototype.getFont=function(){return Ga({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<ib.length;i++)e[ib[i]]=this.getShallow(ib[i]);return nb.useStyle(e),nb.update(),nb.getBoundingRect()},t}(),ob=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],ab=Gn(ob),sb=function(){function t(){}return t.prototype.getLineStyle=function(t){return ab(this,t)},t}(),lb=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],ub=Gn(lb),hb=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return ub(this,t,e)},t}(),cb=function(){function t(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}return t.prototype.init=function(){for(var t=[],e=3;e<arguments.length;e++)t[e-3]=arguments[e]},t.prototype.mergeOption=function(t){a(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var i=this.option,n=null==i?i:i[t];if(null==n&&!e){var r=this.parentModel;r&&(n=r.getShallow(t))}return n},t.prototype.getModel=function(e,i){var n=null!=e,r=n?this.parsePath(e):null,o=n?this._doGet(r):this.option;return i=i||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),new t(o,i,this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new(0,this.constructor)(o(this.option))},t.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!xv.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var i=this.option;if(!t)return i;for(var n=0;n<t.length&&(!t[n]||null!=(i=i&&"object"==typeof i?i[t[n]]:null));n++);return null==i&&e&&(i=e._doGet(this.resolveParentPath(t),e.parentModel)),i},t}();Hn(cb),function(t){var e=["__\0is_clz",r_++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}(cb),p(cb,sb),p(cb,hb),p(cb,s_),p(cb,rb);var pb=Math.round(10*Math.random()),fb={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:". "}}}},db={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},gb="ZH",vb="EN",yb=vb,mb={},_b={},xb=xv.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf(gb)>-1?gb:yb}():yb;Ka(vb,fb),Ka(gb,db);var wb=1e3,bb=60*wb,Sb=60*bb,Tb=24*Sb,Mb=365*Tb,Cb={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}"},Ib="{yyyy}-{MM}-{dd}",kb={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ib,hour:Ib+" "+Cb.hour,minute:Ib+" "+Cb.minute,second:Ib+" "+Cb.second,millisecond:Cb.none},Ab=["year","month","day","hour","minute","second","millisecond"],Db=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"],Pb=F,Ob=["a","b","c","d","e","f","g"],Lb=function(t,e){return"{"+t+(null==e?"":e)+"}"},Eb=d,Rb=["left","right","top","bottom","width","height"],Bb=[["width","left","right"],["height","top","bottom"]],Nb=(w(Ps,"vertical"),w(Ps,"horizontal"),Dn()),zb=function(t){function i(e,i,n){var r=t.call(this,e,i,n)||this;return r.uid=Za("ec_cpt_model"),r}return e(i,t),i.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i)},i.prototype.mergeDefaultAndTheme=function(t,e){var i=Ls(this),n=i?Rs(t):{};a(t,e.getTheme().get(this.mainType)),a(t,this.getDefaultOption()),i&&Es(t,n,i)},i.prototype.mergeOption=function(t){a(this.option,t,!0);var e=Ls(this);e&&Es(this.option,t,e)},i.prototype.optionUpdated=function(){},i.prototype.getDefaultOption=function(){var t=this.constructor;if(!Yn(t))return t.defaultOption;var e=Nb(this);if(!e.defaultOption){for(var i=[],n=t;n;){var r=n.prototype.defaultOption;r&&i.push(r),n=n.superClass}for(var o={},s=i.length-1;s>=0;s--)o=a(o,i[s],!0);e.defaultOption=o}return e.defaultOption},i.prototype.getReferringComponents=function(t,e){var i=t+"Index",n=t+"Id";return Ln(this.ecModel,t,{index:this.get(i,!0),id:this.get(n,!0)},e)},i.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},i.prototype.getZLevelKey=function(){return""},i.prototype.setZLevel=function(t){this.option.zlevel=t},i.protoInitialize=function(){var t=i.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),i}(cb);Wn(zb,cb),jn(zb),function(t){var e={};t.registerSubTypeDefaulter=function(t,i){var n=zn(t);e[n.main]=i},t.determineSubType=function(i,n){var r=n.type;if(!r){var o=zn(i).main;t.hasSubTypes(i)&&e[o]&&(r=e[o](n))}return r}}(zb),function(t,e){function i(t){var i={},o=[];return d(t,function(a){var s=n(i,a),l=s.originalDeps=e(a),u=r(l,t);s.entryCount=u.length,0===s.entryCount&&o.push(a),d(u,function(t){h(s.predecessor,t)<0&&s.predecessor.push(t);var e=n(i,t);h(e.successor,t)<0&&e.successor.push(a)})}),{graph:i,noEntryList:o}}function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function r(t,e){var i=[];return d(t,function(t){h(e,t)>=0&&i.push(t)}),i}t.topologicalTravel=function(t,e,n,r){function o(t){0===--l[t].entryCount&&u.push(t)}function a(t){h[t]=!0,o(t)}if(t.length){var s=i(e),l=s.graph,u=s.noEntryList,h={};for(d(t,function(t){h[t]=!0});u.length;){var c=u.pop(),p=l[c],f=!!h[c];f&&(n.call(r,c,p.originalDeps.slice()),delete h[c]),d(p.successor,f?a:o)}d(h,function(){throw new Error("")})}}}(zb,Ns);var Fb="";"undefined"!=typeof navigator&&(Fb=navigator.platform||"");var Yb,Hb,Vb="rgba(0, 0, 0, 0.2)",Wb={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Vb,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Vb,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Vb,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Vb,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Vb,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Vb,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Fb.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},Xb=U(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Ub="original",jb="arrayRows",Gb="objectRows",qb="keyedColumns",Zb="typedArray",Kb="unknown",Qb="column",$b="row",Jb={Must:1,Might:2,Not:3},tS=Dn(),eS=U(),iS=Dn(),nS=(Dn(),function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,i){var n=cn(this.get("color",!0)),r=this.get("colorLayer",!0);return js(this,iS,n,r,t,e,i)},t.prototype.clearColorPalette=function(){Gs(this,iS)},t}()),rS="\0_ec_inner",oS=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i.prototype.init=function(t,e,i,n,r,o){n=n||{},this.option=null,this._theme=new cb(n),this._locale=new cb(r),this._optionManager=o},i.prototype.setOption=function(t,e,i){var n=$s(e);this._optionManager.setOption(t,i,n),this._resetOption(null,n)},i.prototype.resetOption=function(t,e){return this._resetOption(t,$s(e))},i.prototype._resetOption=function(t,e){var i=!1,n=this._optionManager;if(!t||"recreate"===t){var r=n.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):Hb(this,r),i=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=n.getTimelineOption(this);o&&(i=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=n.getMediaOption(this);a.length&&d(a,function(t){i=!0,this._mergeOption(t,e)},this)}return i},i.prototype.mergeOption=function(t){this._mergeOption(t,null)},i.prototype._mergeOption=function(t,e){function i(e){var i=Xs(this,e,cn(t[e])),o=r.get(e),a=o?c&&c.get(e)?"replaceMerge":"normalMerge":"replaceAll",u=gn(o,i,a);In(u,e,zb),n[e]=null,r.set(e,null),s.set(e,0);var h,p=[],f=[],g=0;d(u,function(t,i){var n=t.existing,r=t.newOption;if(r){var o="series"===e,a=zb.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(h)return;h=!0}if(n&&n.constructor===a)n.name=t.keyInfo.name,n.mergeOption(r,this),n.optionUpdated(r,!1);else{var s=l({componentIndex:i},t.keyInfo);n=new a(r,this,this,s),l(n,s),t.brandNew&&(n.__requireNewView=!0),n.init(r,this,this),n.optionUpdated(null,!0)}}else n&&(n.mergeOption({},this),n.optionUpdated({},!1));n?(p.push(n.option),f.push(n),g++):(p.push(void 0),f.push(void 0))},this),n[e]=p,r.set(e,f),s.set(e,g),"series"===e&&Yb(this)}var n=this.option,r=this._componentsMap,s=this._componentsCount,u=[],h=U(),c=e&&e.replaceMergeMainTypeMap;zs(this),d(t,function(t,e){null!=t&&(zb.hasClass(e)?e&&(u.push(e),h.set(e,!0)):n[e]=null==n[e]?o(t):a(n[e],t,!0))}),c&&c.each(function(t,e){zb.hasClass(e)&&!h.get(e)&&(u.push(e),h.set(e,!0))}),zb.topologicalTravel(u,zb.getAllClassMainTypes(),i,this),this._seriesIndices||Yb(this)},i.prototype.getOption=function(){var t=o(this.option);return d(t,function(e,i){if(zb.hasClass(i)){for(var n=cn(e),r=n.length,o=!1,a=r-1;a>=0;a--)n[a]&&!Cn(n[a])?o=!0:(n[a]=null,!o&&r--);n.length=r,t[i]=n}}),delete t[rS],t},i.prototype.getTheme=function(){return this._theme},i.prototype.getLocaleModel=function(){return this._locale},i.prototype.setUpdatePayload=function(t){this._payload=t},i.prototype.getUpdatePayload=function(){return this._payload},i.prototype.getComponent=function(t,e){var i=this._componentsMap.get(t);if(i){var n=i[e||0];if(n)return n;if(null==e)for(var r=0;r<i.length;r++)if(i[r])return i[r]}},i.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var i=t.index,n=t.id,r=t.name,o=this._componentsMap.get(e);if(!o||!o.length)return[];var a;return null!=i?(a=[],d(cn(i),function(t){o[t]&&a.push(o[t])})):a=null!=n?Ks("id",n,o):null!=r?Ks("name",r,o):y(o,function(t){return!!t}),Qs(a,t)},i.prototype.findComponents=function(t){var e=t.query,i=t.mainType,n=function(t){var e=i+"Index",n=i+"Id",r=i+"Name";return!t||null==t[e]&&null==t[n]&&null==t[r]?null:{mainType:i,index:t[e],id:t[n],name:t[r]}}(e),r=n?this.queryComponents(n):y(this._componentsMap.get(i),function(t){return!!t});return function(e){return t.filter?y(e,t.filter):e}(Qs(r,t))},i.prototype.eachComponent=function(t,e,i){var n=this._componentsMap;if(S(t)){var r=e,o=t;n.each(function(t,e){for(var i=0;t&&i<t.length;i++){var n=t[i];n&&o.call(r,e,n,n.componentIndex)}})}else for(var a=T(t)?n.get(t):I(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(i,l,l.componentIndex)}},i.prototype.getSeriesByName=function(t){var e=Tn(t,null);return y(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},i.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},i.prototype.getSeriesByType=function(t){return y(this._componentsMap.get("series"),function(e){return!!e&&e.subType===t})},i.prototype.getSeries=function(){return y(this._componentsMap.get("series"),function(t){return!!t})},i.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},i.prototype.eachSeries=function(t,e){d(this._seriesIndices,function(i){var n=this._componentsMap.get("series")[i];t.call(e,n,i)},this)},i.prototype.eachRawSeries=function(t,e){d(this._componentsMap.get("series"),function(i){i&&t.call(e,i,i.componentIndex)})},i.prototype.eachSeriesByType=function(t,e,i){d(this._seriesIndices,function(n){var r=this._componentsMap.get("series")[n];r.subType===t&&e.call(i,r,n)},this)},i.prototype.eachRawSeriesByType=function(t,e,i){return d(this.getSeriesByType(t),e,i)},i.prototype.isSeriesFiltered=function(t){return null==this._seriesIndicesMap.get(t.componentIndex)},i.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},i.prototype.filterSeries=function(t,e){var i=[];d(this._seriesIndices,function(n){var r=this._componentsMap.get("series")[n];t.call(e,r,n)&&i.push(n)},this),this._seriesIndices=i,this._seriesIndicesMap=U(i)},i.prototype.restoreData=function(t){Yb(this);var e=this._componentsMap,i=[];e.each(function(t,e){zb.hasClass(e)&&i.push(e)}),zb.topologicalTravel(i,zb.getAllClassMainTypes(),function(i){d(e.get(i),function(e){!e||"series"===i&&qs(e,t)||e.restoreData()})})},i.internalField=function(){Yb=function(t){var e=t._seriesIndices=[];d(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=U(e)},Hb=function(t,e){t.option={},t.option[rS]=1,t._componentsMap=U({series:[]}),t._componentsCount=U();var i=e.aria;I(i)&&null==i.enabled&&(i.enabled=!0),Zs(e,t._theme.option),a(e,Wb,!1),t._mergeOption(e,null)}}(),i}(cb);p(oS,nS);var aS,sS,lS,uS,hS,cS,pS=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],fS=function(){function t(t){d(pS,function(e){this[e]=Yv(t[e],t)},this)}return t}(),dS={},gS=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var i=[];d(dS,function(n){var r=n.create(t,e);i=i.concat(r||[])}),this._coordinateSystems=i},t.prototype.update=function(t,e){d(this._coordinateSystems,function(i){i.update&&i.update(t,e)})},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){dS[t]=e},t.get=function(t){return dS[t]},t}(),vS=/^(min|max)?(.+)$/,yS=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e){t&&(d(cn(t.series),function(t){t&&t.data&&A(t.data)&&V(t.data)}),d(cn(t.dataset),function(t){t&&t.source&&A(t.source)&&V(t.source)})),t=o(t);var i=this._optionBackup,n=Js(t,e,!i);this._newBaseOption=n.baseOption,i?(n.timelineOptions.length&&(i.timelineOptions=n.timelineOptions),n.mediaList.length&&(i.mediaList=n.mediaList),n.mediaDefault&&(i.mediaDefault=n.mediaDefault)):this._optionBackup=n},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],o(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(e=o(i[n.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(){var t=this._api.getWidth(),e=this._api.getHeight(),i=this._mediaList,n=this._mediaDefault,r=[],a=[];if(!i.length&&!n)return a;for(var s=0,l=i.length;l>s;s++)tl(i[s].query,t,e)&&r.push(s);return!r.length&&n&&(r=[-1]),r.length&&!il(r,this._currentMediaIndices)&&(a=g(r,function(t){return o(-1===t?n.option:i[t].option)})),this._currentMediaIndices=r,a},t}(),mS=d,_S=I,xS=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"],wS=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],bS=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],SS=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]],TS=function(){function t(t){this.data=t.data||(t.sourceFormat===qb?{}:[]),this.sourceFormat=t.sourceFormat||Kb,this.seriesLayoutBy=t.seriesLayoutBy||Qb,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var i=0;i<e.length;i++){var n=e[i];null==n.type&&Vs(this,i)===Jb.Must&&(n.type="ordinal")}}return t}(),MS=function(){function t(t,e){var i=Sl(t)?t:Ml(t);this._source=i;var n=this._data=i.data;i.sourceFormat===Zb&&(this._offset=0,this._dimSize=e,this._data=n),hS(this,n,i)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(){},t.prototype.appendData=function(){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){function t(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}var e;hS=function(t,e,o){var a=o.sourceFormat,s=o.seriesLayoutBy,u=o.startIndex,h=o.dimensionsDefine;if(l(t,uS[Bl(a,s)]),a===Zb)t.getItem=i,t.count=r,t.fillStorage=n;else{var c=Ll(a,s);t.getItem=Yv(c,null,e,u,h);var p=El(a,s);t.count=Yv(p,null,e,u,h)}};var i=function(t,e){t-=this._offset,e=e||[];for(var i=this._data,n=this._dimSize,r=n*t,o=0;n>o;o++)e[o]=i[r+o];return e},n=function(t,e,i,n){for(var r=this._data,o=this._dimSize,a=0;o>a;a++){for(var s=n[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],h=e-t,c=i[a],p=0;h>p;p++){var f=r[p*o+a];c[t+p]=f,l>f&&(l=f),f>u&&(u=f)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};e={},e[jb+"_"+Qb]={pure:!0,appendData:t},e[jb+"_"+$b]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Gb]={pure:!0,appendData:t},e[qb]={pure:!0,appendData:function(t){var e=this._data;d(t,function(t,i){for(var n=e[i]||(e[i]=[]),r=0;r<(t||[]).length;r++)n.push(t[r])})}},e[Ub]={appendData:t},e[Zb]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},uS=e}(),t}(),CS=function(t,e,i,n){return t[n]},IS=(aS={},aS[jb+"_"+Qb]=function(t,e,i,n){return t[n+e]},aS[jb+"_"+$b]=function(t,e,i,n,r){n+=e;for(var o=r||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[n]:null}return o},aS[Gb]=CS,aS[qb]=function(t,e,i,n,r){for(var o=r||[],a=0;a<i.length;a++){var s=i[a].name,l=t[s];o[a]=l?l[n]:null}return o},aS[Ub]=CS,aS),kS=function(t){return t.length},AS=(sS={},sS[jb+"_"+Qb]=function(t,e){return Math.max(0,t.length-e)},sS[jb+"_"+$b]=function(t,e){var i=t[0];return i?Math.max(0,i.length-e):0},sS[Gb]=kS,sS[qb]=function(t,e,i){var n=i[0].name,r=t[n];return r?r.length:0},sS[Ub]=kS,sS),DS=function(t,e){return t[e]},PS=(lS={},lS[jb]=DS,lS[Gb]=function(t,e,i){return t[i]},lS[qb]=DS,lS[Ub]=function(t,e){var i=fn(t);return i instanceof Array?i[e]:i},lS[Zb]=DS,lS),OS=/\{@(.+?)\}/g,LS=function(){function t(){}return t.prototype.getDataParams=function(t,e){var i=this.getData(e),n=this.getRawValue(t,e),r=i.getRawIndex(t),o=i.getName(t),a=i.getRawDataItem(t),s=i.getItemVisual(t,"style"),l=s&&s[i.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,h=this.mainType,c="series"===h,p=i.userOutput&&i.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:c?this.subType:null,seriesIndex:this.seriesIndex,seriesId:c?this.id:null,seriesName:c?this.name:null,name:o,dataIndex:r,data:a,dataType:e,value:n,color:l,borderColor:u,dimensionNames:p?p.fullDimensions:null,encode:p?p.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,i,n,r,o){e=e||"normal";var a=this.getData(i),s=this.getDataParams(t,i);if(o&&(s.value=o.interpolatedValue),null!=n&&b(s.value)&&(s.value=s.value[n]),!r){r=a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"])}if(S(r))return s.status=e,s.dimensionIndex=n,r(s);if(T(r)){return Cs(r,s).replace(OS,function(e,i){var n=i.length,r=i;"["===r.charAt(0)&&"]"===r.charAt(n-1)&&(r=+r.slice(1,n-1));var s=Nl(a,t,r);if(o&&b(o.interpolatedValue)){var l=a.getDimensionIndex(r);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""})}},t.prototype.getRawValue=function(t,e){return Nl(this.getData(e),t)},t.prototype.formatTooltip=function(){},t}(),ES=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){function e(t){return!(t>=1)&&(t=1),t}var i=this._upstream,n=t&&t.skip;if(this._dirty&&i){var r=this.context;r.data=r.outputData=i.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!n&&(o=this._plan(this.context));var a=e(this._modBy),s=this._modDataCount||0,l=e(t&&t.modBy),u=t&&t.modDataCount||0;(a!==l||s!==u)&&(o="reset");var h;(this._dirty||"reset"===o)&&(this._dirty=!1,h=this._doReset(n)),this._modBy=l,this._modDataCount=u;var c=t&&t.step;if(this._dueEnd=i?i._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,f=Math.min(null!=c?this._dueIndex+c:1/0,this._dueEnd);if(!n&&(h||f>p)){var d=this._progress;if(b(d))for(var g=0;g<d.length;g++)this._doProgress(d[g],p,f,l,u);else this._doProgress(d,p,f,l,u)}this._dueIndex=f;var v=null!=this._settedOutputEnd?this._settedOutputEnd:f;this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,i,n,r){RS.reset(e,i,n,r),this._callingProgress=t,this._callingProgress({start:e,end:i,count:i-e,next:RS.next},this.context)},t.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,i;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(i=e.forceFirstProgress,e=e.progress),b(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),i},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),RS=function(){function t(){return i>n?n++:null}function e(){var t=n%a*r+Math.ceil(n/a),e=n>=i?null:o>t?t:n;return n++,e}var i,n,r,o,a,s={reset:function(l,u,h,c){n=l,i=u,r=h,o=c,a=Math.ceil(o/r),s.next=r>1&&o>0?e:t}};return s}(),BS=(U({number:function(t){return parseFloat(t)},time:function(t){return+Qi(t)},trim:function(t){return T(t)?H(t):t}}),{lt:function(t,e){return e>t},lte:function(t,e){return e>=t},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}}),NS=(function(){function t(t,e){if(!C(e)){un("")}this._opFn=BS[t],this._rvalFloat=rn(e)}t.prototype.evaluate=function(t){return C(t)?this._opFn(t,this._rvalFloat):this._opFn(rn(t),this._rvalFloat)}}(),function(){function t(t,e){var i="desc"===t;this._resultLT=i?1:-1,null==e&&(e=i?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var i=C(t)?t:rn(t),n=C(e)?e:rn(e),r=isNaN(i),o=isNaN(n);if(r&&(i=this._incomparable),o&&(n=this._incomparable),r&&o){var a=T(t),s=T(e);a&&(i=s?t:0),s&&(n=a?e:0)}return n>i?this._resultLT:i>n?-this._resultLT:0},t}()),zS=(function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=rn(e)}t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var i=typeof t;i===this._rvalTypeof||"number"!==i&&"number"!==this._rvalTypeof||(e=rn(t)===this._rvalFloat)}return this._isEQ?e:!e}}(),function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(){},t.prototype.retrieveValueFromItem=function(){},t.prototype.convertValue=function(t,e){return Yl(t,e)},t}()),FS=U(),YS="undefined",HS=typeof Uint32Array===YS?Array:Uint32Array,VS=typeof Uint16Array===YS?Array:Uint16Array,WS=typeof Int32Array===YS?Array:Int32Array,XS=typeof Float64Array===YS?Array:Float64Array,US={float:XS,int:WS,ordinal:Array,number:Array,time:XS},jS=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=U()}return t.prototype.initData=function(t,e,i){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),r=this.defaultDimValueGetter=cS[n.sourceFormat];this._dimValueGetter=i||r,this._rawExtent=[],Ol(n),this._dimensions=g(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var i=this._calcDimNameToIdx,n=this._dimensions,r=i.get(t);if(null!=r){if(n[r].type===e)return r}else r=n.length;return n[r]={type:e},i.set(t,r),this._chunks[r]=new US[e||"float"](this._rawCount),this._rawExtent[r]=Ql(),r},t.prototype.collectOrdinalMeta=function(t,e){var i=this._chunks[t],n=this._dimensions[t],r=this._rawExtent,o=n.ordinalOffset||0,a=i.length;0===o&&(r[t]=Ql());for(var s=r[t],l=o;a>l;l++){var u=i[l]=e.parseAndCollect(i[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}n.ordinalMeta=e,n.ordinalOffset=a,n.type="ordinal"},t.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,i=this.count();e.appendData(t);var n=e.count();return e.persistent||(n+=i),n>i&&this._initDataFromProvider(i,n,!0),[i,n]},t.prototype.appendValues=function(t,e){for(var i=this._chunks,n=this._dimensions,r=n.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;r>l;l++){var u=n[l];Jl(i,l,u.type,s,!0)}for(var h=[],c=a;s>c;c++)for(var p=c-a,f=0;r>f;f++){var u=n[f],d=cS.arrayRows.call(this,t[p]||h,u.property,p,f);i[f][c]=d;var g=o[f];d<g[0]&&(g[0]=d),d>g[1]&&(g[1]=d)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,i){for(var n=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=g(o,function(t){return t.property}),u=0;a>u;u++){var h=o[u];s[u]||(s[u]=Ql()),Jl(r,u,h.type,e,i)}if(n.fillStorage)n.fillStorage(t,e,r,s);else for(var c=[],p=t;e>p;p++){c=n.getItem(p,c);for(var f=0;a>f;f++){var d=r[f],v=this._dimValueGetter(c,l[f],p,f);d[p]=v;var y=s[f];v<y[0]&&(y[0]=v),v>y[1]&&(y[1]=v)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var i=this._chunks[t];return i?i[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var i=[],n=[];if(null==e){e=t,t=[];for(var r=0;r<this._dimensions.length;r++)n.push(r)}else n=t;for(var r=0,o=n.length;o>r;r++)i.push(this.get(n[r],e));return i},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var i=this._chunks[t];return i?i[e]:NaN},t.prototype.getSum=function(t){var e=this._chunks[t],i=0;if(e)for(var n=0,r=this.count();r>n;n++){var o=this.get(t,n);isNaN(o)||(i+=o)}return i},t.prototype.getMedian=function(t){var e=[];this.each([t],function(t){isNaN(t)||e.push(t)});var i=e.sort(function(t,e){return t-e}),n=this.count();return 0===n?0:n%2==1?i[(n-1)/2]:(i[n/2]+i[n/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||0>t)return-1;if(!this._indices)return t;var e=this._indices,i=e[t];if(null!=i&&i<this._count&&i===t)return t;for(var n=0,r=this._count-1;r>=n;){var o=(n+r)/2|0;if(e[o]<t)n=o+1;else{if(!(e[o]>t))return o;r=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,i){var n=this._chunks,r=n[t],o=[];if(!r)return o;null==i&&(i=1/0);for(var a=1/0,s=-1,l=0,u=0,h=this.count();h>u;u++){var c=this.getRawIndex(u),p=e-r[c],f=Math.abs(p);i>=f&&((a>f||f===a&&p>=0&&0>s)&&(a=f,s=p,l=0),p===s&&(o[l++]=u))}return o.length=l,o},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var i=e.constructor,n=this._count;if(i===Array){t=new i(n);for(var r=0;n>r;r++)t[r]=e[r]}else t=new i(e.buffer,0,n)}else{var i=Kl(this._rawCount);t=new i(this.count());for(var r=0;r<t.length;r++)t[r]=r}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var i=this.clone(),n=i.count(),r=Kl(i._rawCount),o=new r(n),a=[],s=t.length,l=0,u=t[0],h=i._chunks,c=0;n>c;c++){var p=void 0,f=i.getRawIndex(c);if(0===s)p=e(c);else if(1===s){var d=h[u][f];p=e(d,c)}else{for(var g=0;s>g;g++)a[g]=h[t[g]][f];a[g]=c,p=e.apply(null,a)}p&&(o[l++]=f)}return n>l&&(i._indices=o),i._count=l,i._extent=[],i._updateGetRawIdx(),i},t.prototype.selectRange=function(t){var e=this.clone(),i=e._count;if(!i)return this;var n=_(t),r=n.length;if(!r)return this;var o=e.count(),a=Kl(e._rawCount),s=new a(o),l=0,u=n[0],h=t[u][0],c=t[u][1],p=e._chunks,f=!1;if(!e._indices){var d=0;if(1===r){for(var g=p[n[0]],v=0;i>v;v++){var y=g[v];(y>=h&&c>=y||isNaN(y))&&(s[l++]=d),d++}f=!0}else if(2===r){for(var g=p[n[0]],m=p[n[1]],x=t[n[1]][0],w=t[n[1]][1],v=0;i>v;v++){var y=g[v],b=m[v];(y>=h&&c>=y||isNaN(y))&&(b>=x&&w>=b||isNaN(b))&&(s[l++]=d),d++}f=!0}}if(!f)if(1===r)for(var v=0;o>v;v++){var S=e.getRawIndex(v),y=p[n[0]][S];(y>=h&&c>=y||isNaN(y))&&(s[l++]=S)}else for(var v=0;o>v;v++){for(var T=!0,S=e.getRawIndex(v),M=0;r>M;M++){var C=n[M],y=p[C][S];(y<t[C][0]||y>t[C][1])&&(T=!1)}T&&(s[l++]=e.getRawIndex(v))}return o>l&&(e._indices=s),e._count=l,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var i=this.clone(t);return this._updateDims(i,t,e),i},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,i){for(var n=t._chunks,r=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=Ql();for(var h=0;a>h;h++){for(var c=t.getRawIndex(h),p=0;o>p;p++)s[p]=n[e[p]][c];s[o]=h;var f=i&&i.apply(null,s);if(null!=f){"object"!=typeof f&&(r[0]=f,f=r);for(var u=0;u<f.length;u++){var d=e[u],g=f[u],v=l[d],y=n[d];y&&(y[c]=g),g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var i,n,r,o=this.clone([t],!0),a=o._chunks,s=a[t],l=this.count(),u=0,h=Math.floor(1/e),c=this.getRawIndex(0),p=new(Kl(this._rawCount))(Math.min(2*(Math.ceil(l/h)+2),l));p[u++]=c;for(var f=1;l-1>f;f+=h){for(var d=Math.min(f+h,l-1),g=Math.min(f+2*h,l),v=(g+d)/2,y=0,m=d;g>m;m++){var _=this.getRawIndex(m),x=s[_];isNaN(x)||(y+=x)}y/=g-d;var w=f,b=Math.min(f+h,l),S=f-1,T=s[c];i=-1,r=w;for(var M=-1,C=0,m=w;b>m;m++){var _=this.getRawIndex(m),x=s[_];isNaN(x)?(C++,0>M&&(M=_)):(n=Math.abs((S-v)*(x-T)-(S-m)*(y-T)))>i&&(i=n,r=_)}C>0&&b-w>C&&(p[u++]=Math.min(M,r),r=Math.max(M,r)),p[u++]=r,c=r}return p[u++]=this.getRawIndex(l-1),o._count=u,o._indices=p,o.getRawIndex=this._getRawIdx,o},t.prototype.downSample=function(t,e,i,n){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),h=r._rawExtent[t]=Ql(),c=new(Kl(this._rawCount))(Math.ceil(u/s)),p=0,f=0;u>f;f+=s){s>u-f&&(s=u-f,a.length=s);for(var d=0;s>d;d++){var g=this.getRawIndex(f+d);a[d]=l[g]}var v=i(a),y=this.getRawIndex(Math.min(f+n(a,v)||0,u-1));l[y]=v,v<h[0]&&(h[0]=v),v>h[1]&&(h[1]=v),c[p++]=y}return r._count=p,r._indices=c,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var i=t.length,n=this._chunks,r=0,o=this.count();o>r;r++){var a=this.getRawIndex(r);switch(i){case 0:e(r);break;case 1:e(n[t[0]][a],r);break;case 2:e(n[t[0]][a],n[t[1]][a],r);break;default:for(var s=0,l=[];i>s;s++)l[s]=n[t[s]][a];l[s]=r,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],i=Ql();if(!e)return i;var n,r=this.count();if(!this._indices)return this._rawExtent[t].slice();if(n=this._extent[t])return n.slice();n=i;for(var o=n[0],a=n[1],s=0;r>s;s++){var l=this.getRawIndex(s),u=e[l];o>u&&(o=u),u>a&&(a=u)}return n=[o,a],this._extent[t]=n,n},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var i=[],n=this._chunks,r=0;r<n.length;r++)i.push(n[r][e]);return i},t.prototype.clone=function(e,i){var n=new t,r=this._chunks,o=e&&v(e,function(t,e){return t[e]=!0,t},{});if(o)for(var a=0;a<r.length;a++)n._chunks[a]=o[a]?$l(r[a]):r[a];else n._chunks=r;return this._copyCommonProps(n),i||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=o(this._extent),t._rawExtent=o(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var i=this._indices.length;e=new t(i);for(var n=0;i>n;n++)e[n]=this._indices[n]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,i,n){return Yl(t[n],this._dimensions[n])}cS={arrayRows:t,objectRows:function(t,e,i,n){return Yl(t[e],this._dimensions[n])},keyedColumns:t,original:function(t,e,i,n){var r=t&&(null==t.value?t:t.value);return Yl(r instanceof Array?r[n]:r,this._dimensions[n])},typedArray:function(t,e,i,n){return t[n]}}}(),t}(),GS=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,++this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,i=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length;if(eu(i)){var o=i,a=void 0,s=void 0,l=void 0;if(r){var u=n[0];u.prepareSource(),l=u.getSource(),a=l.data,s=l.sourceFormat,e=[u._getVersionSign()]}else a=o.get("data",!0),s=A(a)?Zb:Ub,e=[];var h=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},p=B(h.seriesLayoutBy,c.seriesLayoutBy)||null,f=B(h.sourceHeader,c.sourceHeader),d=B(h.dimensions,c.dimensions);t=p!==c.seriesLayoutBy||!!f!=!!c.sourceHeader||d?[Tl(a,{seriesLayoutBy:p,sourceHeader:f,dimensions:d},s)]:[]}else{var g=i;if(r){var v=this._applyTransform(n);t=v.sourceList,e=v.upstreamSignList}else{t=[Tl(g.get("source",!0),this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e=this._sourceHost,i=e.get("transform",!0),n=e.get("fromTransformResult",!0);if(null!=n){1!==t.length&&iu("")}var r,o=[],a=[];return d(t,function(t){t.prepareSource();var e=t.getSource(n||0);null==n||e||iu(""),o.push(e),a.push(t._getVersionSign())}),i?r=Gl(i,o,{datasetIndex:e.componentIndex}):null!=n&&(r=[Cl(o[0])]),{sourceList:r,upstreamSignList:a}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var i=t[e];if(i._isDirty()||this._upstreamSignList[e]!==i._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,i){var n=this._storeList,r=n[0];r||(r=n[0]={});var o=r[i];if(!o){var a=this._getUpstreamSourceManagers()[0];eu(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,i):(o=new jS,o.initData(new MS(e,t.length),t)),r[i]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(eu(t)){var e=Ys(t);return e?[e.getSourceManager()]:[]}return g(Hs(t),function(t){return t.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var t,e,i,n=this._sourceHost;if(eu(n))t=n.get("seriesLayoutBy",!0),e=n.get("sourceHeader",!0),i=n.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=n;t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),i=r.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:i}},t}(),qS="line-height:1",ZS=[0,10,20,30],KS=["","\n","\n\n","\n\n\n"],QS=function(){function t(){this.richTextStyles={},this._nextStyleNameId=an()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,i){var n="richText"===i?this._generateStyleName():null,r=Is({color:e,type:t,renderMode:i,markerId:n});return T(r)?r:(this.richTextStyles[n]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var i={};b(e)?d(e,function(t){return l(i,t)}):l(i,e);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+t+"}"},t}(),$S=Dn(),JS=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return e(i,t),i.prototype.init=function(t,e,i){this.seriesIndex=this.componentIndex,this.dataTask=Fl({count:Tu,reset:Mu}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i),($S(this).sourceManager=new GS(this)).prepareSource();var n=this.getInitialData(t,i);Iu(n,this),this.dataTask.context.data=n,$S(this).dataBeforeProcessed=n,bu(this),this._initSelectedMapFromData(n)},i.prototype.mergeDefaultAndTheme=function(t,e){var i=Ls(this),n=i?Rs(t):{},r=this.subType;zb.hasClass(r)&&(r+="Series"),a(t,e.getTheme().get(this.subType)),a(t,this.getDefaultOption()),pn(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&Es(t,n,i)},i.prototype.mergeOption=function(t,e){t=a(this.option,t,!0),this.fillDataTextStyle(t.data);var i=Ls(this);i&&Es(this.option,t,i);var n=$S(this).sourceManager;n.dirty(),n.prepareSource();var r=this.getInitialData(t,e);Iu(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,$S(this).dataBeforeProcessed=r,bu(this),this._initSelectedMapFromData(r)},i.prototype.fillDataTextStyle=function(t){if(t&&!A(t))for(var e=["show"],i=0;i<t.length;i++)t[i]&&t[i].label&&pn(t[i],"label",e)},i.prototype.getInitialData=function(){},i.prototype.appendData=function(t){this.getRawData().appendData(t.data)},i.prototype.getData=function(t){var e=Au(this);if(e){var i=e.context.data;return null==t?i:i.getLinkedData(t)}return $S(this).data},i.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},i.prototype.setData=function(t){var e=Au(this);if(e){var i=e.context;i.outputData=t,e!==this.dataTask&&(i.data=t)}$S(this).data=t},i.prototype.getEncode=function(){var t=this.get("encode",!0);return t?U(t):void 0},i.prototype.getSourceManager=function(){return $S(this).sourceManager},i.prototype.getSource=function(){return this.getSourceManager().getSource()},i.prototype.getRawData=function(){return $S(this).dataBeforeProcessed},i.prototype.getColorBy=function(){return this.get("colorBy")||"series"},i.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},i.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},i.prototype.formatTooltip=function(t,e){return _u({series:this,dataIndex:t,multipleSeries:e})},i.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(xv.node&&(!t||!t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},i.prototype.restoreData=function(){this.dataTask.dirty()},i.prototype.getColorFromPalette=function(t,e,i){var n=this.ecModel,r=nS.prototype.getColorFromPalette.call(this,t,e,i);return r||(r=n.getColorFromPalette(t,e,i)),r},i.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},i.prototype.getProgressive=function(){return this.get("progressive")},i.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},i.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},i.prototype.unselect=function(t,e){var i=this.option.selectedMap;if(i){var n=this.option.selectedMode,r=this.getData(e);if("series"===n||"all"===i)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<t.length;o++){var a=t[o],s=wu(r,a);i[s]=!1,this._selectedDataIndicesMap[s]=-1}}},i.prototype.toggleSelect=function(t,e){for(var i=[],n=0;n<t.length;n++)i[0]=t[n],this.isSelected(t[n],e)?this.unselect(i,e):this.select(i,e)},i.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=_(t),i=[],n=0;n<e.length;n++){var r=t[e[n]];r>=0&&i.push(r)}return i},i.prototype.isSelected=function(t,e){var i=this.option.selectedMap;if(!i)return!1;var n=this.getData(e);return("all"===i||i[wu(n,t)])&&!n.getItemModel(t).get(["select","disabled"])},i.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},i.prototype._innerSelect=function(t,e){var i,n,r=this.option,o=r.selectedMode,a=e.length;if(o&&a)if("series"===o)r.selectedMap="all";else if("multiple"===o){I(r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;a>l;l++){var u=e[l],h=wu(t,u);s[h]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(u)}}else if("single"===o||!0===o){var c=e[a-1],h=wu(t,c);r.selectedMap=(i={},i[h]=!0,i),this._selectedDataIndicesMap=(n={},n[h]=t.getRawIndex(c),n)}},i.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each(function(i){var n=t.getRawDataItem(i);n&&n.selected&&e.push(i)}),e.length>0&&this._innerSelect(t,e)}},i.registerClass=function(t){return zb.registerClass(t)},i.protoInitialize=function(){var t=i.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),i}(zb);p(JS,LS),p(JS,nS),Wn(JS,zb);var tT=function(){function t(){this.group=new Vm,this.uid=Za("viewComponent")}return t.prototype.init=function(){},t.prototype.render=function(){},t.prototype.dispose=function(){},t.prototype.updateView=function(){},t.prototype.updateLayout=function(){},t.prototype.updateVisual=function(){},t.prototype.toggleBlurSeries=function(){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();Hn(tT),jn(tT);var eT=Dn(),iT=Du(),nT=function(){function t(){this.group=new Vm,this.uid=Za("viewChart"),this.renderTask=Fl({plan:Lu,reset:Eu}),this.renderTask.context={view:this}}return t.prototype.init=function(){},t.prototype.render=function(){},t.prototype.highlight=function(t,e,i,n){var r=t.getData(n&&n.dataType);r&&Ou(r,n,"emphasis")},t.prototype.downplay=function(t,e,i,n){var r=t.getData(n&&n.dataType);r&&Ou(r,n,"normal")},t.prototype.remove=function(){this.group.removeAll()},t.prototype.dispose=function(){},t.prototype.updateView=function(t,e,i,n){this.render(t,e,i,n)},t.prototype.updateLayout=function(t,e,i,n){this.render(t,e,i,n)},t.prototype.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},t.prototype.eachRendered=function(t){Na(this.group,t)},t.markUpdateMethod=function(t,e){eT(t).updateMethod=e},t.protoInitialize=function(){t.prototype.type="chart"}(),t}();Hn(nT),jn(nT);var rT,oT={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},aT="\0__throttleOriginMethod",sT="\0__throttleRate",lT="\0__throttleType",uT=Dn(),hT={itemStyle:Gn(lb,!0),lineStyle:Gn(ob,!0)},cT={lineStyle:"stroke",itemStyle:"fill"},pT={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i=t.getData(),n=t.visualStyleAccessPath||"itemStyle",r=t.getModel(n),o=zu(t,n),a=o(r),s=r.getShallow("decal");s&&(i.setVisual("decal",s),s.dirty=!0);var u=Fu(t,n),h=a[u],c=S(h)?h:null,p="auto"===a.fill||"auto"===a.stroke;if(!a[u]||c||p){var f=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[u]||(a[u]=f,i.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||S(a.fill)?f:a.fill,a.stroke="auto"===a.stroke||S(a.stroke)?f:a.stroke}return i.setVisual("style",a),i.setVisual("drawType",u),!e.isSeriesFiltered(t)&&c?(i.setVisual("colorFromPalette",!1),{dataEach:function(e,i){var n=t.getDataParams(i),r=l({},a);r[u]=c(n),e.setItemVisual(i,"style",r)}}):void 0}},fT=new cb,dT={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var i=t.getData(),n=t.visualStyleAccessPath||"itemStyle",r=zu(t,n),o=i.getVisual("drawType");return{dataEach:i.hasItemOption?function(t,e){var i=t.getRawDataItem(e);if(i&&i[n]){fT.option=i[n];var a=r(fT);l(t.ensureUniqueItemVisual(e,"style"),a),fT.option.decal&&(t.setItemVisual(e,"decal",fT.option.decal),fT.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},gT={performRawSeries:!0,overallReset:function(t){var e=U();t.eachSeries(function(t){var i=t.getColorBy();if(!t.isColorBySeries()){var n=t.type+"-"+i,r=e.get(n);r||(r={},e.set(n,r)),uT(t).scope=r}}),t.eachSeries(function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var i=e.getRawData(),n={},r=e.getData(),o=uT(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=Fu(e,a);r.each(function(t){var e=r.getRawIndex(t);n[e]=t}),i.each(function(t){var a=n[t];if(r.getItemVisual(a,"colorFromPalette")){var l=r.ensureUniqueItemVisual(a,"style"),u=i.getName(t)||t+"",h=i.count();l[s]=e.getColorFromPalette(u,o,h)}})}})}},vT=Math.PI,yT=function(){function t(t,e,i,n){this._stageTaskMap=U(),this.ecInstance=t,this.api=e,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){var e=t.overallTask;e&&e.dirty()})},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),n=i.context,r=!e&&i.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>i.blockIndex,o=r?i.step:null,a=n&&n.modDataCount;return{step:o,modBy:null!=a?Math.ceil(a/o):null,modDataCount:a}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),n=t.getData(),r=n.count(),o=i.progressiveEnabled&&e.incrementalPrepareRender&&r>=i.threshold,a=t.get("large")&&r>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=i.context={progressiveRender:o,modDataCount:s,large:a}},t.prototype.restorePipelines=function(t){var e=this,i=e._pipelineMap=U();t.eachSeries(function(t){var n=t.getProgressive(),r=t.uid;i.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:n&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),e._pipe(t,t.dataTask)})},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),i=this.api;d(this._allHandlers,function(n){var r=t.get(n.uid)||t.set(n.uid,{});Y(!(n.reset&&n.overallReset),""),n.reset&&this._createSeriesStageTask(n,r,e,i),n.overallReset&&this._createOverallStageTask(n,r,e,i)},this)},t.prototype.prepareView=function(t,e,i,n){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=i,o.api=n,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,i){this._performStageTasks(this._visualHandlers,t,e,i)},t.prototype._performStageTasks=function(t,e,i,n){function r(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}n=n||{};var o=!1,a=this;d(t,function(t){if(!n.visualType||n.visualType===t.visualType){var s=a._stageTaskMap.get(t.uid),l=s.seriesTaskMap,u=s.overallTask;if(u){var h,c=u.agentStubMap;c.each(function(t){r(n,t)&&(t.dirty(),h=!0)}),h&&u.dirty(),a.updatePayload(u,i);var p=a.getPerformArgs(u,n.block);c.each(function(t){t.perform(p)}),u.perform(p)&&(o=!0)}else l&&l.each(function(s){r(n,s)&&s.dirty();var l=a.getPerformArgs(s,n.block);l.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),a.updatePayload(s,i),s.perform(l)&&(o=!0)})}}),this.unfinished=o||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,i,n){function r(e){var r=e.uid,l=s.set(r,a&&a.get(r)||Fl({plan:Uu,reset:ju,count:qu}));l.context={model:e,ecModel:i,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(e,l)}var o=this,a=e.seriesTaskMap,s=e.seriesTaskMap=U(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?i.eachRawSeries(r):l?i.eachRawSeriesByType(l,r):u&&u(i,n).each(r)},t.prototype._createOverallStageTask=function(t,e,i,n){function r(t){var e=t.uid,i=l.set(e,s&&s.get(e)||(p=!0,Fl({reset:Vu,onDirty:Xu})));i.context={model:t,overallProgress:c},i.agent=a,i.__block=c,o._pipe(t,i)}var o=this,a=e.overallTask=e.overallTask||Fl({reset:Hu});a.context={ecModel:i,api:n,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=U(),u=t.seriesType,h=t.getTargetSeries,c=!0,p=!1;Y(!t.createOnAllSeries,""),u?i.eachRawSeriesByType(u,r):h?h(i,n).each(r):(c=!1,d(i.getSeries(),r)),p&&a.dirty()},t.prototype._pipe=function(t,e){var i=t.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},t.wrapStageHandler=function(t,e){return S(t)&&(t={overallReset:t,seriesType:Zu(t)}),t.uid=Za("stageHandler"),e&&(t.visualType=e),t},t}(),mT=Gu(0),_T={},xT={};Ku(_T,oS),Ku(xT,fS),_T.eachSeriesByType=_T.eachRawSeriesByType=function(t){rT=t},_T.eachComponent=function(t){"series"===t.mainType&&t.subType&&(rT=t.subType)};var wT=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],bT={color:wT,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],wT]},ST="#B9B8CE",TT="#100C2A",MT=function(){return{axisLine:{lineStyle:{color:ST}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},CT=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],IT={darkMode:!0,color:CT,backgroundColor:TT,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:ST}},textStyle:{color:ST},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:ST}},dataZoom:{borderColor:"#71708A",textStyle:{color:ST},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:ST}},timeline:{lineStyle:{color:ST},label:{color:ST},controlStyle:{color:ST,borderColor:ST}},calendar:{itemStyle:{color:TT},dayLabel:{color:ST},monthLabel:{color:ST},yearLabel:{color:ST}},timeAxis:MT(),logAxis:MT(),valueAxis:MT(),categoryAxis:MT(),line:{symbol:"circle"},graph:{color:CT},gauge:{title:{color:ST},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:ST},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};IT.categoryAxis.splitLine.show=!1;var kT=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},i={},n={};if(T(t)){var r=zn(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};d(t,function(t,r){for(var s=!1,l=0;l<o.length;l++){var u=o[l],h=r.lastIndexOf(u);if(h>0&&h===r.length-u.length){var c=r.slice(0,h);"data"!==c&&(e.mainType=c,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(i[r]=t,s=!0),s||(n[r]=t)})}return{cptQuery:e,dataQuery:i,otherQuery:n}},t.prototype.filter=function(t,e){function i(t,e,i,n){return null==t[i]||e[n||i]===t[i]}var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,o=n.packedEvent,a=n.model,s=n.view;if(!a||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return i(l,a,"mainType")&&i(l,a,"subType")&&i(l,a,"index","componentIndex")&&i(l,a,"name")&&i(l,a,"id")&&i(u,o,"name")&&i(u,o,"dataIndex")&&i(u,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,r,o))},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),AT=["symbol","symbolSize","symbolRotate","symbolOffset"],DT=AT.concat(["symbolKeepAspect"]),PT={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){function i(e,i){for(var n=t.getRawValue(i),r=t.getDataParams(i),a=0;a<c.length;a++){var s=c[a];e.setItemVisual(i,s,o[s](n,r))}}var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var r={},o={},a=!1,s=0;s<AT.length;s++){var u=AT[s],h=t.get(u);S(h)?(a=!0,o[u]=h):r[u]=h}if(r.symbol=r.symbol||t.defaultSymbol,n.setVisual(l({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),!e.isSeriesFiltered(t)){var c=_(o);return{dataEach:a?i:null}}}}},OT={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){function i(t,e){for(var i=t.getItemModel(e),n=0;n<DT.length;n++){var r=DT[n],o=i.getShallow(r,!0);null!=o&&t.setItemVisual(e,r,o)}}if(t.hasSymbolVisual&&!e.isSeriesFiltered(t)){return{dataEach:t.getData().hasItemOption?i:null}}}},LT=Math.round(9*Math.random()),ET="function"==typeof Object.defineProperty,RT=function(){function t(){this._id="__ec_inner_"+LT++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var i=this._guard(t);return ET?Object.defineProperty(i,this._id,{value:e,enumerable:!1,configurable:!0}):i[this._id]=e,this},t.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}(),BT=ox.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,o=e.height/2;t.moveTo(i,n-o),t.lineTo(i+r,n+o),t.lineTo(i-r,n+o),t.closePath()}}),NT=ox.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,o=e.height/2;t.moveTo(i,n-o),t.lineTo(i+r,n),t.lineTo(i,n+o),t.lineTo(i-r,n),t.closePath()}}),zT=ox.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,r=e.width/5*3,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=n-o+a+s,u=Math.asin(s/a),h=Math.cos(u)*a,c=Math.sin(u),p=Math.cos(u),f=.6*a,d=.7*a;t.moveTo(i-h,l+s),t.arc(i,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(i+h-c*f,l+s+p*f,i,n-d,i,n),t.bezierCurveTo(i,n-d,i-h+c*f,l+s+p*f,i-h,l+s),t.closePath()}}),FT=ox.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.height,n=e.width,r=e.x,o=e.y,a=n/3*2;t.moveTo(r,o),t.lineTo(r+a,o+i),t.lineTo(r,o+i/4*3),t.lineTo(r-a,o+i),t.lineTo(r,o),t.closePath()}}),YT={line:Mw,rect:dx,roundRect:dx,square:dx,circle:ew,diamond:NT,pin:zT,arrow:FT,triangle:BT},HT={line:function(t,e,i,n,r){r.x1=t,r.y1=e+n/2,r.x2=t+i,r.y2=e+n/2},rect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r.height=n},roundRect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r.height=n,r.r=Math.min(i,n)/4},square:function(t,e,i,n,r){var o=Math.min(i,n);r.x=t,r.y=e,r.width=o,r.height=o},circle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.r=Math.min(i,n)/2},diamond:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r.height=n},pin:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r.height=n},arrow:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r.height=n},triangle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r.height=n}},VT={};d(YT,function(t,e){VT[e]=new t});var WT=ox.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,i){var n=Si(t,e,i),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.position&&(n.y=i.y+.4*i.height),n},buildPath:function(t,e,i){var n=e.symbolType;if("none"!==n){var r=VT[n];r||(n="rect",r=VT[n]),HT[n](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,i)}}}),XT=new q_(!0),UT=["shadowBlur","shadowOffsetX","shadowOffsetY"],jT=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],GT=1,qT=2,ZT=3,KT=4,QT=new RT,$T=new Qy(100),JT=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"],tM=new ty,eM={},iM={zrender:"5.4.1"},nM=2e3,rM=1e3,oM=3e3,aM={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:rM,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:oM,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},sM="__flagInMainProcess",lM="__pendingUpdate",uM="__needsUpdateStatus",hM=/^[a-zA-Z0-9_]+$/,cM="__connectUpdateStatus",pM=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i}(ty),fM=pM.prototype;fM.on=jh("on"),fM.off=jh("off");var dM,gM,vM,yM,mM,_M,xM,wM,bM,SM,TM,MM,CM,IM,kM,AM,DM,PM,OM=function(t){function i(e,i,n){function r(t,e){return t.__prio-e.__prio}var a=t.call(this,new kT)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],n=n||{},T(i)&&(i=YM[i]),a._dom=e;var s=a._zr=Li(e,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:B(n.useDirtyRect,!1),useCoarsePointer:B(n.useCoarsePointer,"auto"),pointerSize:n.pointerSize});a._ssr=n.ssr,a._throttledZrFlush=Ru(Yv(s.flush,s),17),i=o(i),i&&xl(i,!0),a._theme=i,a._locale=Qa(n.locale||xb),a._coordSysMgr=new gS;var l=a._api=kM(a);return ie(FM,r),ie(NM,r),a._scheduler=new yT(a,l,NM,FM),a._messageCenter=new pM,a._initEvents(),a.resize=Yv(a.resize,a),s.animation.on("frame",a._onframe,a),SM(s,a),TM(s,a),V(a),a}return e(i,t),i.prototype._onframe=function(){if(!this._disposed){PM(this);var t=this._scheduler;if(this[lM]){var e=this[lM].silent;this[sM]=!0;try{dM(this),yM.update.call(this,null,this[lM].updateParams)}catch(t){throw this[sM]=!1,this[lM]=null,t}this._zr.flush(),this[sM]=!1,this[lM]=null,wM.call(this,e),bM.call(this,e)}else if(t.unfinished){var i=1,n=this._model,r=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(n),t.performDataProcessorTasks(n),_M(this,n),t.performVisualTasks(n),IM(this,this._model,r,"remain",{}),i-=+new Date-o}while(i>0&&t.unfinished);t.unfinished||this._zr.flush()}}},i.prototype.getDom=function(){return this._dom},i.prototype.getId=function(){return this.id},i.prototype.getZr=function(){return this._zr},i.prototype.isSSR=function(){return this._ssr},i.prototype.setOption=function(t,e,i){if(!this[sM]&&!this._disposed){var n,r,o;if(I(e)&&(i=e.lazyUpdate,n=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[sM]=!0,!this._model||e){var a=new yS(this._api),s=this._theme,l=this._model=new oS;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},zM);var u={seriesTransition:o,optionChanged:!0};if(i)this[lM]={silent:n,updateParams:u},this[sM]=!1,this.getZr().wakeUp();else{try{dM(this),yM.update.call(this,null,u)}catch(t){throw this[lM]=null,this[sM]=!1,t}this._ssr||this._zr.flush(),this[lM]=null,this[sM]=!1,wM.call(this,n),bM.call(this,n)}}},i.prototype.setTheme=function(){},i.prototype.getModel=function(){return this._model},i.prototype.getOption=function(){return this._model&&this._model.getOption()},i.prototype.getWidth=function(){return this._zr.getWidth()},i.prototype.getHeight=function(){return this._zr.getHeight()},i.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||xv.hasGlobalWindow&&window.devicePixelRatio||1},i.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},i.prototype.renderToCanvas=function(t){return t=t||{},this._zr.painter.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},i.prototype.renderToSVGString=function(t){return t=t||{},this._zr.painter.renderToString({useViewBox:t.useViewBox})},i.prototype.getSvgDataURL=function(){if(xv.svgSupported){var t=this._zr;return d(t.storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()}},i.prototype.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,i=this._model,n=[],r=this;d(e,function(t){i.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(n.push(e),e.group.ignore=!0)})});var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return d(n,function(t){t.group.ignore=!1}),o}},i.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,i=this.group,n=Math.min,r=Math.max,a=1/0;if(WM[i]){var s=a,l=a,u=-a,h=-a,c=[],p=t&&t.pixelRatio||this.getDevicePixelRatio();d(VM,function(a){if(a.group===i){var p=e?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(o(t)),f=a.getDom().getBoundingClientRect();s=n(f.left,s),l=n(f.top,l),u=r(f.right,u),h=r(f.bottom,h),c.push({dom:p,left:f.left,top:f.top})}}),s*=p,l*=p,u*=p,h*=p;var f=u-s,g=h-l,v=Cv.createCanvas(),y=Li(v,{renderer:e?"svg":"canvas"});if(y.resize({width:f,height:g}),e){var m="";return d(c,function(t){var e=t.left-s,i=t.top-l;m+='<g transform="translate('+e+","+i+')">'+t.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}return t.connectedBackgroundColor&&y.add(new dx({shape:{x:0,y:0,width:f,height:g},style:{fill:t.connectedBackgroundColor}})),d(c,function(t){var e=new hx({style:{x:t.left*p-s,y:t.top*p-l,image:t.dom}});y.add(e)}),y.refreshImmediately(),v.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},i.prototype.convertToPixel=function(t,e){return mM(this,"convertToPixel",t,e)},i.prototype.convertFromPixel=function(t,e){return mM(this,"convertFromPixel",t,e)},i.prototype.containPixel=function(t,e){if(!this._disposed){var i;return d(Pn(this._model,t),function(t,n){n.indexOf("Models")>=0&&d(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)i=i||!!r.containPoint(e);else if("seriesModels"===n){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(i=i||o.containPoint(e,t))}},this)},this),!!i}},i.prototype.getVisual=function(t,e){var i=this._model,n=Pn(i,t,{defaultMainType:"series"}),r=n.seriesModel,o=r.getData(),a=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?o.indexOfRawIndex(n.dataIndex):null;return null!=a?Qu(o,a,e):$u(o,e)},i.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},i.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},i.prototype._initEvents=function(){var t=this;d(EM,function(e){var i=function(i){var n,r=t.getModel(),o=i.target;if("globalout"===e?n={}:o&&eh(o,function(t){var e=bx(t);if(e&&null!=e.dataIndex){var i=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return n=i&&i.getDataParams(e.dataIndex,e.dataType)||{},!0}return e.eventData?(n=l({},e.eventData),!0):void 0},!0),n){var a=n.componentType,s=n.componentIndex;("markLine"===a||"markPoint"===a||"markArea"===a)&&(a="series",s=n.seriesIndex);var u=a&&null!=s&&r.getComponent(a,s),h=u&&t["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];n.event=i,n.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:u,view:h},t.trigger(e,n)}};i.zrEventfulCallAtLast=!0,t._zr.on(e,i,t)}),d(BM,function(e,i){t._messageCenter.on(i,function(t){this.trigger(i,t)},t)}),d(["selectchanged"],function(e){t._messageCenter.on(e,function(t){this.trigger(e,t)},t)}),th(this._messageCenter,this,this._api)},i.prototype.isDisposed=function(){return this._disposed},i.prototype.clear=function(){this._disposed||this.setOption({series:[]},!0)},i.prototype.dispose=function(){if(!this._disposed){this._disposed=!0;this.getDom()&&En(this.getDom(),jM,"");var t=this,e=t._api,i=t._model;d(t._componentsViews,function(t){t.dispose(i,e)}),d(t._chartsViews,function(t){t.dispose(i,e)}),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete VM[t.id]}},i.prototype.resize=function(t){if(!this[sM]&&!this._disposed){this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var i=e.resetOption("media"),n=t&&t.silent;this[lM]&&(null==n&&(n=this[lM].silent),i=!0,this[lM]=null),this[sM]=!0;try{i&&dM(this),yM.update.call(this,{type:"resize",animation:l({duration:0},t&&t.animation)})}catch(t){throw this[sM]=!1,t}this[sM]=!1,wM.call(this,n),bM.call(this,n)}}},i.prototype.showLoading=function(t,e){if(!this._disposed&&(I(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),HM[t])){var i=HM[t](this._api,e),n=this._zr;this._loadingFX=i,n.add(i)}},i.prototype.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},i.prototype.makeActionFromEvent=function(t){var e=l({},t);return e.type=BM[t.type],e},i.prototype.dispatchAction=function(t,e){if(!this._disposed&&(I(e)||(e={silent:!!e}),RM[t.type]&&this._model)){if(this[sM])return void this._pendingActions.push(t);var i=e.silent;xM.call(this,t,i);var n=e.flush;n?this._zr.flush():!1!==n&&xv.browser.weChat&&this._throttledZrFlush(),wM.call(this,i),bM.call(this,i)}},i.prototype.updateLabelLayout=function(){tM.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},i.prototype.appendData=function(t){if(!this._disposed){var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},i.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function i(t){var e=[],i=[],n=!1;if(t.eachComponent(function(t,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();n=n||!!s,("series"===t?i:e).push({zlevel:o,z:a,idx:r.componentIndex,type:t,key:s})}),n){var r,o,a=e.concat(i);ie(a,function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),d(a,function(e){var i=t.getComponent(e.type,e.idx),n=e.zlevel,a=e.key;null!=r&&(n=Math.max(r,n)),a?(n===r&&a!==o&&n++,o=a):o&&(n===r&&n++,o=""),r=n,i.setZLevel(n)})}}function n(t){for(var e=[],i=t.currentStates,n=0;n<i.length;n++){var r=i[n];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}t.selected&&t.states.select&&e.push("select"),t.hoverState===Dx&&t.states.emphasis?e.push("emphasis"):t.hoverState===Ax&&t.states.blur&&e.push("blur"),t.useStates(e)}function r(t,e){var i=t._zr,n=i.storage,r=0;n.traverse(function(t){t.isGroup||r++}),r>e.get("hoverLayerThreshold")&&!xv.node&&!xv.worker&&e.eachSeries(function(e){if(!e.preventUsingHoverLayer){var i=t._chartsMap[e.__viewId];i.__alive&&i.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}})}function o(t,e){var i=t.get("blendMode")||null;e.eachRendered(function(t){t.isGroup||(t.style.blend=i)})}function a(t,e){if(!t.preventAutoZ){var i=t.get("z")||0,n=t.get("zlevel")||0;e.eachRendered(function(t){return s(t,i,n,-1/0),!0})}}function s(t,e,i,n){var r=t.getTextContent(),o=t.getTextGuideLine();if(t.isGroup)for(var a=t.childrenRef(),l=0;l<a.length;l++)n=Math.max(s(a[l],e,i,n),n);else t.z=e,t.zlevel=i,n=Math.max(t.z2,n);if(r&&(r.z=e,r.zlevel=i,isFinite(n)&&(r.z2=n+2)),o){var u=t.textGuideLineConfig;o.z=e,o.zlevel=i,isFinite(n)&&(o.z2=n+(u&&u.showAbove?1:-1))}return n}function h(t,e){e.eachRendered(function(t){if(!sa(t)){var e=t.getTextContent(),i=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),i&&i.stateTransition&&(i.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}})}function c(t,e){var i=t.getModel("stateAnimation"),r=t.isAnimationEnabled(),o=i.get("duration"),a=o>0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;e.eachRendered(function(t){if(t.states&&t.states.emphasis){if(sa(t))return;if(t instanceof ox&&zo(t),t.__dirty){var e=t.prevStates;e&&t.useStates(e)}if(r){t.stateTransition=a;var i=t.getTextContent(),o=t.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&n(t)}})}dM=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),gM(t,!0),gM(t,!1),e.plan()},gM=function(t,e){function i(t){var i=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,h=!i&&a[u];if(!h){var c=zn(t.type);h=new(e?tT.getClass(c.main,c.sub):nT.getClass(c.sub)),h.init(n,l),a[u]=h,o.push(h),s.add(h.group)}t.__viewId=h.__id=u,h.__alive=!0,h.__model=t,h.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&r.prepareView(h,t,n,l)}for(var n=t._model,r=t._scheduler,o=e?t._componentsViews:t._chartsViews,a=e?t._componentsMap:t._chartsMap,s=t._zr,l=t._api,u=0;u<o.length;u++)o[u].__alive=!1;e?n.eachComponent(function(t,e){"series"!==t&&i(e)}):n.eachSeries(i);for(var u=0;u<o.length;){var h=o[u];h.__alive?u++:(!e&&h.renderTask.dispose(),s.remove(h.group),h.dispose(n,l),o.splice(u,1),a[h.__id]===h&&delete a[h.__id],h.__id=h.group.__ecComponentInfo=null)}},vM=function(t,e,i,n,r){function o(n){n&&n.__alive&&n[e]&&n[e](n.__model,a,t._api,i)}var a=t._model;if(a.setUpdatePayload(i),!n)return void d([].concat(t._componentsViews).concat(t._chartsViews),o);var s={};s[n+"Id"]=i[n+"Id"],s[n+"Index"]=i[n+"Index"],s[n+"Name"]=i[n+"Name"];var l={mainType:n,query:s};r&&(l.subType=r);var u,h=i.excludeSeriesId;null!=h&&(u=U(),d(cn(h),function(t){var e=Tn(t,null);null!=e&&u.set(e,!0)})),a&&a.eachComponent(l,function(e){if(!u||null==u.get(e.id))if(No(i))if(e instanceof JS)i.type!==Rx||i.notBlur||e.get(["emphasis","disabled"])||wo(e,i,t._api);else{var n=bo(e.mainType,e.componentIndex,i.name,t._api),r=n.focusSelf,o=n.dispatchers;i.type===Rx&&r&&!i.notBlur&&xo(e.mainType,e.componentIndex,t._api),o&&d(o,function(t){i.type===Rx?ho(t):co(t)})}else Bo(i)&&e instanceof JS&&(Mo(e,i,t._api),Co(e),DM(t))},t),a&&a.eachComponent(l,function(e){u&&null!=u.get(e.id)||o(t["series"===n?"_chartsMap":"_componentsMap"][e.__viewId])},t)},yM={prepareAndUpdate:function(t){dM(this),yM.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(e,i){var n=this._model,r=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(n){n.setUpdatePayload(e),s.restoreData(n,e),s.performSeriesTasks(n),a.create(n,r),s.performDataProcessorTasks(n,e),_M(this,n),a.update(n,r),t(n),s.performVisualTasks(n,e),MM(this,n,r,e,i);var l=n.get("backgroundColor")||"transparent",u=n.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),tM.trigger("afterupdate",n,r)}},updateTransform:function(e){var i=this,n=this._model,r=this._api;if(n){n.setUpdatePayload(e);var o=[];n.eachComponent(function(t,a){if("series"!==t){var s=i.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,n,r,e);l&&l.update&&o.push(s)}else o.push(s)}});var a=U();n.eachSeries(function(t){var o=i._chartsMap[t.__viewId];if(o.updateTransform){var s=o.updateTransform(t,n,r,e);s&&s.update&&a.set(t.uid,1)}else a.set(t.uid,1)}),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0,dirtyMap:a}),IM(this,n,r,e,{},a),tM.trigger("afterupdate",n,r)}},updateView:function(e){var i=this._model;i&&(i.setUpdatePayload(e),nT.markUpdateMethod(e,"updateView"),t(i),this._scheduler.performVisualTasks(i,e,{setDirty:!0}),MM(this,i,this._api,e,{}),tM.trigger("afterupdate",i,this._api))},updateVisual:function(e){var i=this,n=this._model;n&&(n.setUpdatePayload(e),n.eachSeries(function(t){t.getData().clearAllVisual()}),nT.markUpdateMethod(e,"updateVisual"),t(n),this._scheduler.performVisualTasks(n,e,{visualType:"visual",setDirty:!0}),n.eachComponent(function(t,r){if("series"!==t){var o=i.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,n,i._api,e)}}),n.eachSeries(function(t){i._chartsMap[t.__viewId].updateVisual(t,n,i._api,e)}),tM.trigger("afterupdate",n,this._api))},updateLayout:function(t){yM.update.call(this,t)}},mM=function(t,e,i,n){if(!t._disposed)for(var r,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=Pn(o,i),l=0;l<a.length;l++){var u=a[l];if(u[e]&&null!=(r=u[e](o,s,n)))return r}},_M=function(t,e){var i=t._chartsMap,n=t._scheduler;e.eachSeries(function(t){n.updateStreamModes(t,i[t.__viewId])})},xM=function(t,e){var i=this,n=this.getModel(),r=t.type,o=t.escapeConnect,a=RM[r],s=a.actionInfo,h=(s.update||"update").split(":"),c=h.pop(),p=null!=h[0]&&zn(h[0]);this[sM]=!0;var f=[t],v=!1;t.batch&&(v=!0,f=g(t.batch,function(e){return e=u(l({},e),t),e.batch=null,e}));var y,m=[],_=Bo(t),x=No(t);if(x&&mo(this._api),d(f,function(e){if(y=a.action(e,i._model,i._api),y=y||l({},e),y.type=s.event||y.type,m.push(y),x){var n=On(t),r=n.queryOptionMap,o=n.mainTypeSpecified,u=o?r.keys()[0]:"series";vM(i,c,e,u),DM(i)}else _?(vM(i,c,e,"series"),DM(i)):p&&vM(i,c,e,p.main,p.sub)}),"none"!==c&&!x&&!_&&!p)try{this[lM]?(dM(this),yM.update.call(this,t),this[lM]=null):yM[c].call(this,t)}catch(t){throw this[sM]=!1,t}if(y=v?{type:s.event||r,escapeConnect:o,batch:m}:m[0],this[sM]=!1,!e){var w=this._messageCenter;if(w.trigger(y.type,y),_){var b={type:"selectchanged",escapeConnect:o,selected:Io(n),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};w.trigger(b.type,b)}}},wM=function(t){for(var e=this._pendingActions;e.length;){var i=e.shift();xM.call(this,i,t)}},bM=function(t){!t&&this.trigger("updated")},SM=function(t,e){t.on("rendered",function(i){e.trigger("rendered",i),!t.animation.isFinished()||e[lM]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})},TM=function(t,e){t.on("mouseover",function(t){var i=t.target,n=eh(i,Eo);n&&(So(n,t,e._api),DM(e))}).on("mouseout",function(t){var i=t.target,n=eh(i,Eo);n&&(To(n,t,e._api),DM(e))}).on("click",function(t){var i=t.target,n=eh(i,function(t){return null!=bx(t).dataIndex},!0);if(n){var r=n.selected?"unselect":"select",o=bx(n);e._api.dispatchAction({type:r,dataType:o.dataType,dataIndexInside:o.dataIndex,seriesIndex:o.seriesIndex,isFromClick:!0})}})},MM=function(t,e,n,r,o){i(e),CM(t,e,n,r,o),d(t._chartsViews,function(t){t.__alive=!1}),IM(t,e,n,r,o),d(t._chartsViews,function(t){t.__alive||t.remove(e,n)})},CM=function(t,e,i,n,r,o){d(o||t._componentsViews,function(t){var r=t.__model;h(r,t),t.render(r,e,i,n),a(r,t),c(r,t)})},IM=function(t,e,i,n,s,u){var p=t._scheduler;s=l(s||{},{updatedSeries:e.getSeries()}),tM.trigger("series:beforeupdate",e,i,s);var f=!1;e.eachSeries(function(e){var i=t._chartsMap[e.__viewId];i.__alive=!0;var r=i.renderTask;p.updatePayload(r,n),h(e,i),u&&u.get(e.uid)&&r.dirty(),r.perform(p.getPerformArgs(r))&&(f=!0),i.group.silent=!!e.get("silent"),o(e,i),Co(e)}),p.unfinished=f||p.unfinished,tM.trigger("series:layoutlabels",e,i,s),tM.trigger("series:transition",e,i,s),e.eachSeries(function(e){var i=t._chartsMap[e.__viewId];a(e,i),c(e,i)}),r(t,e),tM.trigger("series:afterupdate",e,i,s)},DM=function(t){t[uM]=!0,t.getZr().wakeUp()},PM=function(t){t[uM]&&(t.getZr().storage.traverse(function(t){sa(t)||n(t)}),t[uM]=!1)},kM=function(t){return new(function(i){function n(){return null!==i&&i.apply(this,arguments)||this}return e(n,i),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var i=e.__ecComponentInfo;if(null!=i)return t._model.getComponent(i.mainType,i.index);e=e.parent}},n.prototype.enterEmphasis=function(e,i){ho(e,i),DM(t)},n.prototype.leaveEmphasis=function(e,i){co(e,i),DM(t)},n.prototype.enterBlur=function(e){po(e),DM(t)},n.prototype.leaveBlur=function(e){fo(e),DM(t)},n.prototype.enterSelect=function(e){go(e),DM(t)},n.prototype.leaveSelect=function(e){vo(e),DM(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n}(fS))(t)},AM=function(t){function e(t,e){for(var i=0;i<t.length;i++){t[i][cM]=e}}d(BM,function(i,n){t._messageCenter.on(n,function(i){if(WM[t.group]&&0!==t[cM]){if(i&&i.escapeConnect)return;var n=t.makeActionFromEvent(i),r=[];d(VM,function(e){e!==t&&e.group===t.group&&r.push(e)}),e(r,0),d(r,function(t){1!==t[cM]&&t.dispatchAction(n)}),e(r,2)}})})}}(),i}(ty),LM=OM.prototype;LM.on=Uh("on"),LM.off=Uh("off"),LM.one=function(t,e,i){function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),r.off(t,n)}var r=this;this.on.call(this,t,n,i)};var EM=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],RM={},BM={},NM=[],zM=[],FM=[],YM={},HM={},VM={},WM={},XM=+new Date-0,UM=+new Date-0,jM="_echarts_instance_",GM=Kh,qM=[],ZM=jl;hc(2e3,pT),hc(4500,dT),hc(4500,gT),hc(2e3,PT),hc(4500,OT),hc(7e3,Vh),ec(xl),ic(900,wl),pc("default",Yu),ac({type:Rx,event:Rx,update:Rx},K),ac({type:Bx,event:Bx,update:Bx},K),ac({type:Nx,event:Nx,update:Nx},K),ac({type:zx,event:zx,update:zx},K),ac({type:Fx,event:Fx,update:Fx},K),tc("light",bT),tc("dark",IT);var KM,QM,$M,JM,tC,eC,iC,nC={},rC=function(){function t(t,e,i,n,r,o){this._old=t,this._new=e,this._oldKeyGetter=i||yc,this._newKeyGetter=n||yc,this.context=r,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,i={},n=new Array(t.length),r=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,i,r,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=n[o],s=i[a],l=vc(s);if(l>1){var u=s.shift();1===s.length&&(i[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(i[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,i)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,i={},n={},r=[],o=[];this._initIndexMap(t,i,r,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[a],l=i[s],u=n[s],h=vc(l),c=vc(u);if(h>1&&1===c)this._updateManyToOne&&this._updateManyToOne(u,l),n[s]=null;else if(1===h&&c>1)this._updateOneToMany&&this._updateOneToMany(u,l),n[s]=null;else if(1===h&&1===c)this._update&&this._update(u,l),n[s]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(u,l),n[s]=null;else if(h>1)for(var p=0;h>p;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(o,n)},t.prototype._performRestAdd=function(t,e){for(var i=0;i<t.length;i++){var n=t[i],r=e[n],o=vc(r);if(o>1)for(var a=0;o>a;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[n]=null}},t.prototype._initIndexMap=function(t,e,i,n){for(var r=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[n](t[o],o);if(r||(i[o]=a),e){var s=e[a],l=vc(s);0===l?(e[a]=o,r&&i.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}(),oC=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}(),aC=function(){function t(t){this.otherDims={},null!=t&&l(this,t)}return t}(),sC=Dn(),lC={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},uC=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=Tc(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return B(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;return e?e[t]:void 0},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=Ol(this.source),i=!Mc(t),n="",r=[],o=0,a=0;t>o;o++){var s=void 0,l=void 0,u=void 0,h=this.dimensions[a];if(h&&h.storeDimIndex===o)s=e?h.name:null,l=h.type,u=h.ordinalMeta,a++;else{var c=this.getSourceDimension(o);c&&(s=e?c.name:null,l=c.type)}r.push({property:s,type:l,ordinalMeta:u}),!e||null==s||h&&h.isCalculationCoord||(n+=i?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),n+="$",n+=lC[l]||"f",u&&(n+=u.uid),n+="$"}var p=this.source;return{dimensions:r,hash:[p.seriesLayoutBy,p.startIndex,n].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,i=0;e<this._fullDimCount;e++){var n=void 0,r=this.dimensions[i];if(r&&r.storeDimIndex===e)r.isCalculationCoord||(n=r.name),i++;else{var o=this.getSourceDimension(e);o&&(n=o.name)}t.push(n)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}(),hC=I,cC=g,pC="undefined"==typeof Int32Array?Array:Int32Array,fC=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],dC=["_approximateExtent"],gC=function(){function t(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var i,n=!1;bc(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,i=t),i=i||["x","y"];for(var r={},o=[],a={},s=!1,l={},u=0;u<i.length;u++){var h=i[u],c=T(h)?new aC({name:h}):h instanceof aC?h:new aC(h),p=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=p,c.coordDimIndex=0);var f=c.otherDims=c.otherDims||{};o.push(p),r[p]=c,null!=l[p]&&(s=!0),c.createInvertedIndices&&(a[p]=[]),0===f.itemName&&(this._nameDimIdx=u),0===f.itemId&&(this._idDimIdx=u),n&&(c.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=r,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var g=this._dimIdxToName=U();d(o,function(t){g.set(r[t].storeDimIndex,t)})}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var i=this._dimIdxToName.get(e);if(null!=i)return i;var n=this._schema.getSourceDimension(e);return n?n.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var i=this._getDimInfo(t);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){return C(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0)?+t:void 0},t.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var i=this._dimSummary;if(null==e)return i.encodeFirstDimNotExtra[t];var n=i.encode[t];return n?n[e]:null},t.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,i){var n,r=this;if(t instanceof jS&&(n=t),!n){var o=this.dimensions,a=Sl(t)||f(t)?new MS(t,o.length):t;n=new jS;var s=cC(o,function(t){return{type:r._dimInfos[t].type,property:t}});n.initData(a,s,i)}this._store=n,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,n.count()),this._dimSummary=mc(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var i=this._store.appendValues(t,e.length),n=i.start,r=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=n;r>a;a++){var s=a-n;this._nameList[a]=e[s],o&&iC(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,i=0;i<e.length;i++){var n=this._dimInfos[e[i]];n.ordinalMeta&&t.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==Zb&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var r=this._nameList,o=this._idList;if(n.getSource().sourceFormat===Ub&&!n.pure)for(var a=[],s=t;e>s;s++){var l=n.getItem(s,a);if(!this.hasItemOption&&dn(l)&&(this.hasItemOption=!0),l){var u=l.name;null==r[s]&&null!=u&&(r[s]=Tn(u,null));var h=l.id;null==o[s]&&null!=h&&(o[s]=Tn(h,null))}}if(this._shouldMakeIdFromName())for(var s=t;e>s;s++)iC(this,s);KM(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){hC(t)?l(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),i=this._nameList[e];return null==i&&null!=this._nameDimIdx&&(i=$M(this,this._nameDimIdx,e)),null==i&&(i=""),i},t.prototype._getCategory=function(t,e){var i=this._store.get(t,e),n=this._store.getOrdinalMeta(t);return n?n.categories[i]:i},t.prototype.getId=function(t){return QM(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var i=this._store,n=this._dimInfos[t];return n?i.get(n.storeDimIndex,e):void 0},t.prototype.getByRawIndex=function(t,e){var i=this._store,n=this._dimInfos[t];return n?i.getByRawIndex(n.storeDimIndex,e):void 0},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var i=this,n=this._store;return b(t)?n.getValues(cC(t,function(t){return i._getStoreDimIndex(t)}),e):n.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,i=0,n=e.length;n>i;i++)if(isNaN(this._store.get(e[i],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,i=this._store.count();i>e;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var i=t&&this._invertedIndicesMap[t],n=i[e];return null==n||isNaN(n)?-1:n},t.prototype.indicesOfNearest=function(t,e,i){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,i)},t.prototype.each=function(t,e,i){S(t)&&(i=e,e=t,t=[]);var n=i||this,r=cC(JM(t),this._getStoreDimIndex,this);this._store.each(r,n?Yv(e,n):e)},t.prototype.filterSelf=function(t,e,i){S(t)&&(i=e,e=t,t=[]);var n=i||this,r=cC(JM(t),this._getStoreDimIndex,this);return this._store=this._store.filter(r,n?Yv(e,n):e),this},t.prototype.selectRange=function(t){var e=this,i={},n=[];return d(_(t),function(r){var o=e._getStoreDimIndex(r);i[o]=t[r],n.push(o)}),this._store=this._store.selectRange(i),this},t.prototype.mapArray=function(t,e,i){S(t)&&(i=e,e=t,t=[]),i=i||this;var n=[];return this.each(t,function(){n.push(e&&e.apply(this,arguments))},i),n},t.prototype.map=function(t,e,i,n){var r=i||n||this,o=cC(JM(t),this._getStoreDimIndex,this),a=eC(this);return a._store=this._store.map(o,r?Yv(e,r):e),a},t.prototype.modify=function(t,e,i,n){var r=i||n||this,o=cC(JM(t),this._getStoreDimIndex,this);this._store.modify(o,r?Yv(e,r):e)},t.prototype.downSample=function(t,e,i,n){var r=eC(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,i,n),r},t.prototype.lttbDownSample=function(t,e){var i=eC(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),i},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,i=this.getRawDataItem(t);return new cb(i,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new rC(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(e){return QM(t,e)},function(t){return QM(e,t)})},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},hC(t)?l(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var i=this._itemVisuals[t],n=i&&i[e];return null==n?this.getVisual(e):n},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var i=this._itemVisuals,n=i[t];n||(n=i[t]={});var r=n[e];return null==r&&(r=this.getVisual(e),b(r)?r=r.slice():hC(r)&&(r=l({},r)),n[e]=r),r},t.prototype.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,hC(e)?l(n,e):n[e]=i},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){hC(t)?l(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?l(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var i=this.hostModel&&this.hostModel.seriesIndex;Sx(i,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){d(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:cC(this.dimensions,this._getDimInfo,this),this.hostModel)),tC(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var i=this[t];S(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.apply(this,[t].concat(z(arguments)))})},t.internalField=function(){KM=function(t){var e=t._invertedIndicesMap;d(e,function(i,n){var r=t._dimInfos[n],o=r.ordinalMeta,a=t._store;if(o){i=e[n]=new pC(o.categories.length);for(var s=0;s<i.length;s++)i[s]=-1;for(var s=0;s<a.count();s++)i[a.get(r.storeDimIndex,s)]=s}})},$M=function(t,e,i){return Tn(t._getCategory(e,i),null)},QM=function(t,e){var i=t._idList[e];return null==i&&null!=t._idDimIdx&&(i=$M(t,t._idDimIdx,e)),null==i&&(i="e\0\0"+e),i},JM=function(t){return b(t)||(t=null!=t?[t]:[]),t},eC=function(e){var i=new t(e._schema?e._schema:cC(e.dimensions,e._getDimInfo,e),e.hostModel);return tC(i,e),i},tC=function(t,e){d(fC.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods,d(dC,function(i){t[i]=o(e[i])}),t._calculationInfo=l({},e._calculationInfo)},iC=function(t,e){var i=t._nameList,n=t._idList,r=t._nameDimIdx,o=t._idDimIdx,a=i[e],s=n[e];if(null==a&&null!=r&&(i[e]=a=$M(t,r,e)),null==s&&null!=o&&(n[e]=s=$M(t,o,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),n[e]=s}}}(),t}(),vC=function(){function t(t){this.coordSysDims=[],this.axisMap=U(),this.categoryAxisMap=U(),this.coordSysName=t}return t}(),yC={cartesian2d:function(t,e,i,n){var r=t.getReferringComponents("xAxis",t_).models[0],o=t.getReferringComponents("yAxis",t_).models[0];e.coordSysDims=["x","y"],i.set("x",r),i.set("y",o),Oc(r)&&(n.set("x",r),e.firstCategoryDimIndex=0),Oc(o)&&(n.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,i,n){var r=t.getReferringComponents("singleAxis",t_).models[0];e.coordSysDims=["single"],i.set("single",r),Oc(r)&&(n.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,i,n){var r=t.getReferringComponents("polar",t_).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],i.set("radius",o),i.set("angle",a),Oc(o)&&(n.set("radius",o),e.firstCategoryDimIndex=0),Oc(a)&&(n.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e){e.coordSysDims=["lng","lat"]},parallel:function(t,e,i,n){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();d(o.parallelAxisIndex,function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];i.set(l,s),Oc(s)&&(n.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))})}},mC=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();jn(mC);var _C=0,xC=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++_C}return t.createByAxisModel=function(e){var i=e.option,n=i.data,r=n&&g(n,Vc);return new t({categories:r,needCollect:!r,deduplication:!1!==i.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,i=this._needCollect;if(!T(t)&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=this._getOrCreateMap();return e=n.get(t),null==e&&(i?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=U(this.categories))},t}(),wC=function(t){function i(e){var i=t.call(this,e)||this;i.type="ordinal";var n=i.getSetting("ordinalMeta");return n||(n=new xC({})),b(n)&&(n=new xC({categories:g(n,function(t){return I(t)?t.value:t})})),i._ordinalMeta=n,i._extent=i.getSetting("extent")||[0,n.categories.length-1],i}return e(i,t),i.prototype.parse=function(t){return null==t?NaN:T(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},i.prototype.contain=function(t){return t=this.parse(t),Zc(t,this._extent)&&null!=this._ordinalMeta.categories[t]},i.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Kc(t,this._extent)},i.prototype.scale=function(t){return t=Math.round(Qc(t,this._extent)),this.getRawOrdinalNumber(t)},i.prototype.getTicks=function(){for(var t=[],e=this._extent,i=e[0];i<=e[1];)t.push({value:i}),i++;return t},i.prototype.getMinorTicks=function(){},i.prototype.setSortInfo=function(t){if(null==t)return void(this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null);for(var e=t.ordinalNumbers,i=this._ordinalNumbersByTick=[],n=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);a>r;++r){var s=e[r];i[r]=s,n[s]=r}for(var l=0;o>r;++r){for(;null!=n[l];)l++;i.push(l),n[l]=r}},i.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},i.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},i.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),i=this._ordinalMeta.categories[e];return null==i?"":i+""}},i.prototype.count=function(){return this._extent[1]-this._extent[0]+1},i.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},i.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},i.prototype.getOrdinalMeta=function(){return this._ordinalMeta},i.prototype.calcNiceTicks=function(){},i.prototype.calcNiceExtent=function(){},i.type="ordinal",i}(mC);mC.registerClass(wC);var bC=Hi,SC=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return e(i,t),i.prototype.parse=function(t){return t},i.prototype.contain=function(t){return Zc(t,this._extent)},i.prototype.normalize=function(t){return Kc(t,this._extent)},i.prototype.scale=function(t){return Qc(t,this._extent)},i.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(e)||(i[1]=parseFloat(e))},i.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},i.prototype.getInterval=function(){return this._interval},i.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=jc(t)},i.prototype.getTicks=function(t){var e=this._interval,i=this._extent,n=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;i[0]<n[0]&&o.push(t?{value:bC(n[0]-e,r)}:{value:i[0]});for(var a=n[0];a<=n[1]&&(o.push({value:a}),(a=bC(a+e,r))!==o[o.length-1].value);)if(o.length>1e4)return[];var s=o.length?o[o.length-1].value:n[1];return i[1]>s&&o.push(t?{value:bC(s+e,r)}:{value:i[1]}),o},i.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),i=[],n=this.getExtent(),r=1;r<e.length;r++){for(var o=e[r],a=e[r-1],s=0,l=[],u=o.value-a.value,h=u/t;t-1>s;){var c=bC(a.value+(s+1)*h);c>n[0]&&c<n[1]&&l.push(c),s++}i.push(l)}return i},i.prototype.getLabel=function(t,e){if(null==t)return"";var i=e&&e.precision;return null==i?i=Wi(t.value)||0:"auto"===i&&(i=this._intervalPrecision),Ss(bC(t.value,i,!0))},i.prototype.calcNiceTicks=function(t,e,i){t=t||5;var n=this._extent,r=n[1]-n[0];if(isFinite(r)){0>r&&(r=-r,n.reverse());var o=Xc(n,t,e,i);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},i.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var i=Math.abs(e[0]);t.fixMax?e[0]-=i/2:(e[1]+=i/2,e[0]-=i/2)}else e[1]=1;var n=e[1]-e[0];isFinite(n)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=bC(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=bC(Math.ceil(e[1]/r)*r))},i.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},i.type="interval",i}(mC);mC.registerClass(SC);var TC="undefined"!=typeof Float32Array,MC=TC?Float32Array:Array,CC="__ec_stack_",IC=function(t,e,i,n){for(;n>i;){var r=i+n>>>1;t[r][1]<e?i=r+1:n=r}return i},kC=function(t){function i(e){var i=t.call(this,e)||this;return i.type="time",i}return e(i,t),i.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return rs(t.value,kb[ns(es(this._minLevelUnit))]||kb.second,e,this.getSetting("locale"))},i.prototype.getFormattedLabel=function(t,e,i){var n=this.getSetting("useUTC");return os(t,e,i,this.getSetting("locale"),n)},i.prototype.getTicks=function(){var t=this._interval,e=this._extent,i=[];if(!t)return i;i.push({value:e[0],level:0});var n=this.getSetting("useUTC"),r=gp(this._minLevelUnit,this._approxInterval,n,e);return i=i.concat(r),i.push({value:e[1],level:0}),i},i.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=Tb,e[1]+=Tb),e[1]===-1/0&&1/0===e[0]){var i=new Date;e[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),e[0]=e[1]-Tb}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},i.prototype.calcNiceTicks=function(t,e,i){t=t||10;var n=this._extent,r=n[1]-n[0];this._approxInterval=r/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=i&&this._approxInterval>i&&(this._approxInterval=i);var o=AC.length,a=Math.min(IC(AC,this._approxInterval,0,o),o-1);this._interval=AC[a][1],this._minLevelUnit=AC[Math.max(a-1,0)][0]},i.prototype.parse=function(t){return C(t)?t:+Qi(t)},i.prototype.contain=function(t){return Zc(this.parse(t),this._extent)},i.prototype.normalize=function(t){return Kc(this.parse(t),this._extent)},i.prototype.scale=function(t){return Qc(t,this._extent)},i.type="time",i}(SC),AC=[["second",wb],["minute",bb],["hour",Sb],["quarter-day",6*Sb],["half-day",12*Sb],["day",1.2*Tb],["half-week",3.5*Tb],["week",7*Tb],["month",31*Tb],["quarter",95*Tb],["half-year",Mb/2],["year",Mb]];mC.registerClass(kC);var DC=mC.prototype,PC=SC.prototype,OC=Hi,LC=Math.floor,EC=Math.ceil,RC=Math.pow,BC=Math.log,NC=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new SC,e._interval=0,e}return e(i,t),i.prototype.getTicks=function(t){var e=this._originalScale,i=this._extent,n=e.getExtent();return g(PC.getTicks.call(this,t),function(t){var e=t.value,r=Hi(RC(this.base,e));return r=e===i[0]&&this._fixMin?vp(r,n[0]):r,r=e===i[1]&&this._fixMax?vp(r,n[1]):r,{value:r}},this)},i.prototype.setExtent=function(t,e){var i=BC(this.base);t=BC(Math.max(0,t))/i,e=BC(Math.max(0,e))/i,PC.setExtent.call(this,t,e)},i.prototype.getExtent=function(){var t=this.base,e=DC.getExtent.call(this);e[0]=RC(t,e[0]),e[1]=RC(t,e[1]);var i=this._originalScale,n=i.getExtent();return this._fixMin&&(e[0]=vp(e[0],n[0])),this._fixMax&&(e[1]=vp(e[1],n[1])),e},i.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=BC(t[0])/BC(e),t[1]=BC(t[1])/BC(e),DC.unionExtent.call(this,t)},i.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},i.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(1/0===i||0>=i)){var n=$i(i),r=t/i*n;for(.5>=r&&(n*=10);!isNaN(n)&&Math.abs(n)<1&&Math.abs(n)>0;)n*=10;var o=[Hi(EC(e[0]/n)*n),Hi(LC(e[1]/n)*n)];this._interval=n,this._niceExtent=o}},i.prototype.calcNiceExtent=function(t){PC.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},i.prototype.parse=function(t){return t},i.prototype.contain=function(t){return t=BC(t)/BC(this.base),Zc(t,this._extent)},i.prototype.normalize=function(t){return t=BC(t)/BC(this.base),Kc(t,this._extent)},i.prototype.scale=function(t){return t=Qc(t,this._extent),RC(this.base,t)},i.type="log",i}(mC),zC=NC.prototype;zC.getMinorTicks=PC.getMinorTicks,zC.getLabel=PC.getLabel,mC.registerClass(NC);var FC=function(){function t(t,e,i){this._prepareParams(t,e,i)}return t.prototype._prepareParams=function(t,e,i){i[1]<i[0]&&(i=[NaN,NaN]),this._dataMin=i[0],this._dataMax=i[1];var n=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var r=this._modelMinRaw=e.get("min",!0);S(r)?this._modelMinNum=mp(t,r({min:i[0],max:i[1]})):"dataMin"!==r&&(this._modelMinNum=mp(t,r));var o=this._modelMaxRaw=e.get("max",!0);if(S(o)?this._modelMaxNum=mp(t,o({min:i[0],max:i[1]})):"dataMax"!==o&&(this._modelMaxNum=mp(t,o)),n)this._axisDataLen=e.getCategories().length;else{var a=e.get("boundaryGap"),s=b(a)?a:[a||0,a||0];this._boundaryGapInner="boolean"==typeof s[0]||"boolean"==typeof s[1]?[0,0]:[bi(s[0],1),bi(s[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,i=this._dataMax,n=this._axisDataLen,r=this._boundaryGapInner,o=t?null:i-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?i:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=t?n?0:NaN:e-r[0]*o),null==s&&(s=t?n?n-1:NaN:i+r[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var h=E(a)||E(s)||t&&!n;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),0>a&&0>s&&!u&&(s=0));var c=this._determinedMin,p=this._determinedMax;return null!=c&&(a=c,l=!0),null!=p&&(s=p,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:h}},t.prototype.modifyDataMinMax=function(t,e){this[HC[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[YC[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),YC={min:"_determinedMin",max:"_determinedMax"},HC={min:"_dataMin",max:"_dataMax"},VC=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}(),WC={isDimensionStacked:Rc,enableDataStack:Lc,getStackedDimension:Bc},XC=(Object.freeze||Object)({createList:Pp,getLayoutRect:Os,dataStack:WC,createScale:Op,mixinAxisModelCommonMethods:Lp,getECData:bx,createTextStyle:Ep,createDimensions:Cc,createSymbol:nh,enableHoverEmphasis:ko}),UC=[],jC={registerPreprocessor:ec,registerProcessor:ic,registerPostInit:nc,registerPostUpdate:rc,registerUpdateLifecycle:oc,registerAction:ac,registerCoordinateSystem:sc,registerLayout:uc,registerVisual:hc,registerTransform:ZM,registerLoading:pc,registerMap:dc,registerImpl:Wh,PRIORITY:aM,ComponentModel:zb,ComponentView:tT,SeriesModel:JS,ChartView:nT,registerComponentModel:function(t){zb.registerClass(t)},registerComponentView:function(t){tT.registerClass(t)},registerSeriesModel:function(t){JS.registerClass(t)},registerChartView:function(t){nT.registerClass(t)},registerSubTypeDefaulter:function(t,e){zb.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Ni(t,e)}},GC=1e-8,qC=[],ZC=function(){function t(t){this.name=t}return t.prototype.setCenter=function(t){this._center=t},t.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},t}(),KC=function(){function t(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return t}(),QC=function(){function t(t){this.type="linestring",this.points=t}return t}(),$C=function(t){function i(e,i,n){var r=t.call(this,e)||this;return r.type="geoJSON",r.geometries=i,r._center=n&&[n[0],n[1]],r}return e(i,t),i.prototype.calcCenter=function(){for(var t,e=this.geometries,i=0,n=0;n<e.length;n++){var r=e[n],o=r.exterior,a=o&&o.length;a>i&&(t=r,i=a)}if(t)return Yp(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},i.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var i=[1/0,1/0],n=[-1/0,-1/0];return d(this.geometries,function(e){"polygon"===e.type?Fp(e.exterior,i,n,t):d(e.points,function(e){Fp(e,i,n,t)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(n[0])&&isFinite(n[1])||(i[0]=i[1]=n[0]=n[1]=0),e=new by(i[0],i[1],n[0]-i[0],n[1]-i[1]),t||(this._rect=e),e},i.prototype.contain=function(t){var e=this.getBoundingRect(),i=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var n=0,r=i.length;r>n;n++){var o=i[n];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(Np(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(Np(s[l],t[0],t[1]))continue t;return!0}}}return!1},i.prototype.transformTo=function(t,e,i,n){var r=this.getBoundingRect(),o=r.width/r.height;i?n||(n=i/o):i=o*n;for(var a=new by(t,e,i,n),s=r.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++){var h=l[u];"polygon"===h.type?(zp(h.exterior,s),d(h.interiors,function(t){zp(t,s)})):d(h.points,function(t){zp(t,s)})}r=this._rect,r.copy(a),this._center=[r.x+r.width/2,r.y+r.height/2]},i.prototype.cloneShallow=function(t){null==t&&(t=this.name);var e=new i(t,this.geometries,this._center);return e._rect=this._rect,e.transformTo=null,e},i}(ZC),JC=(function(t){function i(e,i){var n=t.call(this,e)||this;return n.type="geoSVG",n._elOnlyForCalculate=i,n}e(i,t),i.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),i=[e.x+e.width/2,e.y+e.height/2],n=Bt(qC),r=t;r&&!r.isGeoSVGGraphicRoot;)zt(n,r.getLocalTransform(),n),r=r.parent;return Vt(n,n),gt(i,i,n),i}}(ZC),(Object.freeze||Object)({linearMap:Fi,round:Hi,asc:Vi,getPrecision:Wi,getPrecisionSafe:Xi,getPixelPrecision:Ui,getPercentWithPrecision:ji,MAX_SAFE_INTEGER:9007199254740991,remRadian:Zi,isRadianAroundZero:Ki,parseDate:Qi,quantity:$i,quantityExponent:Ji,nice:tn,quantile:en,reformIntervals:nn,isNumeric:on,numericToNumber:rn})),tI=(Object.freeze||Object)({parse:Qi,format:rs}),eI=(Object.freeze||Object)({extendShape:pa,extendPath:fa,makePath:va,makeImage:ya,mergePath:Gw,resizePath:_a,createIcon:Da,updateProps:oa,initProps:aa,getTransform:ba,clipPointsByRect:ka,clipRectByRect:Aa,registerShape:da,getShapeClass:ga,Group:Vm,Image:hx,Text:yx,Circle:ew,Ellipse:nw,Sector:vw,Ring:mw,Polygon:xw,Polyline:bw,Rect:dx,Line:Mw,BezierCurve:kw,Arc:Dw,IncrementalDisplayable:Hw,CompoundPath:Pw,LinearGradient:Lw,RadialGradient:Ew,BoundingRect:by}),iI=(Object.freeze||Object)({addCommas:Ss,toCamelCase:Ts,normalizeCssArray:Pb,encodeHTML:Mt,formatTpl:Cs,getTooltipMarker:Is,formatTime:ks,capitalFirst:As,truncateText:$n,getTextRect:bs}),nI=(Object.freeze||Object)({map:g,each:d,indexOf:h,inherits:c,reduce:v,filter:y,bind:Yv,curry:w,isArray:b,isString:T,isObject:I,isFunction:S,extend:l,defaults:u,clone:o,merge:a}),rI=Dn(),oI=[0,1],aI=function(){function t(t,e,i){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=i||[0,0]}return t.prototype.contain=function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&n>=t},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return Ui(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var i=this._extent;i[0]=t,i[1]=e},t.prototype.dataToCoord=function(t,e){var i=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&"ordinal"===n.type&&(i=i.slice(),af(i,n.count())),Fi(t,oI,i,e)},t.prototype.coordToData=function(t,e){var i=this._extent,n=this.scale;this.onBand&&"ordinal"===n.type&&(i=i.slice(),af(i,n.count()));var r=Fi(t,i,oI,e);return this.scale.scale(r)},t.prototype.pointToData=function(){},t.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),i=jp(this,e),n=i.ticks,r=g(n,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this);return sf(this,r,e.get("alignWithLabel"),t.clamp),r},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");return e>0&&100>e||(e=5),g(this.scale.getMinorTicks(e),function(t){return g(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this)},t.prototype.getViewLabels=function(){return Up(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),i=e[1]-e[0]+(this.onBand?1:0);0===i&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i},t.prototype.calculateCategoryInterval=function(){return ef(this)},t}(),sI=2*Math.PI,lI=q_.CMD,uI=["top","right","bottom","left"],hI=[],cI=new fy,pI=new fy,fI=new fy,dI=new fy,gI=new fy,vI=[],yI=new fy,mI=["align","verticalAlign","width","height","fontSize"],_I=new Lm,xI=Dn(),wI=Dn(),bI=["x","y","rotation"],SI=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,i,n,r){var o=n.style,a=n.__hostTarget,s=a.textConfig||{},l=n.getComputedTransform(),u=n.getBoundingRect().plain();by.applyTransform(u,u,l),l?_I.setLocalTransform(l):(_I.x=_I.y=_I.rotation=_I.originX=_I.originY=0,_I.scaleX=_I.scaleY=1);var h,c=n.__hostTarget;if(c){h=c.getBoundingRect().plain();var p=c.getComputedTransform();by.applyTransform(h,h,p)}var f=h&&c.getTextGuideLine();this._labelList.push({label:n,labelLine:f,seriesModel:i,dataIndex:t,dataType:e,layoutOption:r,computedLayoutOption:null,rect:u,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:f&&f.ignore,x:_I.x,y:_I.y,scaleX:_I.scaleX,scaleY:_I.scaleY,rotation:_I.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:n.cursor,attachedPos:s.position,attachedRot:s.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var i=t.__model,n=i.get("labelLayout");(S(n)||_(n).length)&&t.group.traverse(function(t){if(t.ignore)return!0;var r=t.getTextContent(),o=bx(t);r&&!r.disableLabelLayout&&e._addLabel(o.dataIndex,o.dataType,i,r,n)})},t.prototype.updateLayoutConfig=function(t){for(var e=t.getWidth(),i=t.getHeight(),n=0;n<this._labelList.length;n++){var r=this._labelList[n],o=r.label,a=o.__hostTarget,s=r.defaultAttr,l=void 0;l=S(r.layoutOption)?r.layoutOption(Df(r,a)):r.layoutOption,l=l||{},r.computedLayoutOption=l;var u=Math.PI/180;a&&a.setTextConfig({local:!1,position:null!=l.x||null!=l.y?null:s.attachedPos,rotation:null!=l.rotate?l.rotate*u:s.attachedRot,offset:[l.dx||0,l.dy||0]});var h=!1;if(null!=l.x?(o.x=Yi(l.x,e),o.setStyle("x",0),h=!0):(o.x=s.x,o.setStyle("x",s.style.x)),null!=l.y?(o.y=Yi(l.y,i),o.setStyle("y",0),h=!0):(o.y=s.y,o.setStyle("y",s.style.y)),l.labelLinePoints){var c=a.getTextGuideLine();c&&(c.setShape({points:l.labelLinePoints}),h=!1)}xI(o).needsUpdateLabelLine=h,o.rotation=null!=l.rotate?l.rotate*u:s.rotation,o.scaleX=s.scaleX,o.scaleY=s.scaleY;for(var p=0;p<mI.length;p++){var f=mI[p];o.setStyle(f,null!=l[f]?l[f]:s.style[f])}if(l.draggable){if(o.draggable=!0,o.cursor="move",a){var d=r.seriesModel;if(null!=r.dataIndex){var g=r.seriesModel.getData(r.dataType);d=g.getItemModel(r.dataIndex)}o.on("drag",function(t,e){return function(){mf(t,e)}}(a,d.getModel("labelLine")))}}else o.off("drag"),o.cursor=s.cursor}},t.prototype.layout=function(t){var e=t.getWidth(),i=t.getHeight(),n=Tf(this._labelList),r=y(n,function(t){return"shiftX"===t.layoutOption.moveOverlap}),o=y(n,function(t){return"shiftY"===t.layoutOption.moveOverlap});Cf(r,0,e),If(o,0,i),kf(y(n,function(t){return t.layoutOption.hideOverlap}))},t.prototype.processLabelsOverall=function(){var t=this;d(this._chartViewList,function(e){var i=e.__model,n=e.ignoreLabelLineUpdate,r=i.isAnimationEnabled();e.group.traverse(function(e){if(e.ignore&&!e.forceLabelAnimation)return!0;var o=!n,a=e.getTextContent();!o&&a&&(o=xI(a).needsUpdateLabelLine),o&&t._updateLabelLine(e,i),r&&t._animateLabels(e,i)})})},t.prototype._updateLabelLine=function(t,e){var i=t.getTextContent(),n=bx(t),r=n.dataIndex;if(i&&null!=r){var o=e.getData(n.dataType),a=o.getItemModel(r),s={},l=o.getItemVisual(r,"style"),u=o.getVisual("drawType");s.stroke=l[u];var h=a.getModel("labelLine");bf(t,Sf(a),s),mf(t,h)}},t.prototype._animateLabels=function(t,e){var i=t.getTextContent(),n=t.getTextGuideLine();if(i&&(t.forceLabelAnimation||!i.ignore&&!i.invisible&&!t.disableLabelAnimation&&!sa(t))){var r=xI(i),o=r.oldLayout,a=bx(t),s=a.dataIndex,l={x:i.x,y:i.y,rotation:i.rotation},u=e.getData(a.dataType);if(o){i.attr(o);var c=t.prevStates;c&&(h(c,"select")>=0&&i.attr(r.oldLayoutSelect),h(c,"emphasis")>=0&&i.attr(r.oldLayoutEmphasis)),oa(i,l,e,s)}else if(i.attr(l),!tb(i).valueAnimation){var p=B(i.style.opacity,1);i.style.opacity=0,aa(i,{style:{opacity:p}},e,s)}if(r.oldLayout=l,i.states.select){var f=r.oldLayoutSelect={};Pf(f,l,bI),Pf(f,i.states.select,bI)}if(i.states.emphasis){var d=r.oldLayoutEmphasis={};Pf(d,l,bI),Pf(d,i.states.emphasis,bI)}qa(i,s,u,e,e)}if(n&&!n.ignore&&!n.invisible){var r=wI(n),o=r.oldLayout,g={points:n.shape.points};o?(n.attr({shape:o}),oa(n,{shape:g},e)):(n.setShape(g),n.style.strokePercent=0,aa(n,{style:{strokePercent:1}},e)),r.oldLayout=g}},t}(),TI=Dn();Rp(Of);var MI=function(t){function i(e,i,n){var r=t.call(this)||this;r.motionBlur=!1,r.lastFrameAlpha=.7,r.dpr=1,r.virtual=!1,r.config={},r.incremental=!1,r.zlevel=0,r.maxRepaintRectCount=5,r.__dirty=!0,r.__firstTimePaint=!0,r.__used=!1,r.__drawIndex=0,r.__startIndex=0,r.__endIndex=0,r.__prevStartIndex=null,r.__prevEndIndex=null;var o;n=n||Sm,"string"==typeof e?o=Lf(e,i,n):I(e)&&(o=e,e=o.id),r.id=e,r.dom=o;var a=o.style;return a&&(q(o),o.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),r.painter=i,r.dpr=n,r}return e(i,t),i.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},i.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},i.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},i.prototype.setUnpainted=function(){this.__firstTimePaint=!0},i.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=Lf("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},i.prototype.createRepaintRects=function(t,e,i,n){function r(t){if(t.isFinite()&&!t.isZero())if(0===o.length){var e=new by(0,0,0,0);e.copy(t),o.push(e)}else{for(var i=!1,n=1/0,r=0,u=0;u<o.length;++u){var h=o[u];if(h.intersect(t)){var c=new by(0,0,0,0);c.copy(h),c.union(t),o[u]=c,i=!0;break}if(s){l.copy(t),l.union(h);var p=t.width*t.height,f=h.width*h.height,d=l.width*l.height,g=d-p-f;n>g&&(n=g,r=u)}}if(s&&(o[r].union(t),i=!0),!i){var e=new by(0,0,0,0);e.copy(t),o.push(e)}s||(s=o.length>=a)}}if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;for(var o=[],a=this.maxRepaintRectCount,s=!1,l=new by(0,0,0,0),u=this.__startIndex;u<this.__endIndex;++u){var h=t[u];if(h){var c=h.shouldBePainted(i,n,!0,!0),p=h.__isRendered&&(h.__dirty&Oy||!c)?h.getPrevPaintRect():null;p&&r(p);var f=c&&(h.__dirty&Oy||!h.__isRendered)?h.getPaintRect():null;f&&r(f)}}for(var u=this.__prevStartIndex;u<this.__prevEndIndex;++u){var h=e[u],c=h.shouldBePainted(i,n,!0,!0);if(h&&(!c||!h.__zr)&&h.__isRendered){var p=h.getPrevPaintRect();p&&r(p)}}var d;do{d=!1;for(var u=0;u<o.length;)if(o[u].isZero())o.splice(u,1);else{for(var g=u+1;g<o.length;)o[u].intersect(o[g])?(d=!0,o[u].union(o[g]),o.splice(g,1)):g++;u++}}while(d);return this._paintRects=o,o},i.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},i.prototype.resize=function(t,e){var i=this.dpr,n=this.dom,r=n.style,o=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),n.width=t*i,n.height=e*i,o&&(o.width=t*i,o.height=e*i,1!==i&&this.ctxBack.scale(i,i))},i.prototype.clear=function(t,e,i){function n(t,i,n,r){if(o.clearRect(t,i,n,r),e&&"transparent"!==e){var a=void 0;if(P(e)){a=(e.global||e.__width===n&&e.__height===r)&&e.__canvasGradient||uh(o,e,{x:0,y:0,width:n,height:r}),e.__canvasGradient=a,e.__width=n,e.__height=r}else O(e)&&(e.scaleX=e.scaleX||h,e.scaleY=e.scaleY||h,a=xh(o,e,{dirty:function(){c.setUnpainted(),c.__painter.refresh()}}));o.save(),o.fillStyle=a||e,o.fillRect(t,i,n,r),o.restore()}l&&(o.save(),o.globalAlpha=u,o.drawImage(p,t,i,n,r),o.restore())}var r=this.dom,o=this.ctx,a=r.width,s=r.height;e=e||this.clearColor;var l=this.motionBlur&&!t,u=this.lastFrameAlpha,h=this.dpr,c=this;l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,a/h,s/h));var p=this.domBack;!i||l?n(0,0,a,s):i.length&&d(i,function(t){n(t.x*h,t.y*h,t.width*h,t.height*h)})},i}(ty),CI=314159,II=function(){function t(t,e,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var n=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=i=l({},i||{}),this.dpr=i.devicePixelRatio||Sm,this._singleCanvas=n,this.root=t,t.style&&(q(t),t.innerHTML=""),this.storage=e;var r=this._zlevelList;this._prevDisplayList=[];var o=this._layers;if(n){var a=t,s=a.width,u=a.height;null!=i.width&&(s=i.width),null!=i.height&&(u=i.height),this.dpr=i.devicePixelRatio||1,a.width=s*this.dpr,a.height=u*this.dpr,this._width=s,this._height=u;var h=new MI(a,this,this.dpr);h.__builtin__=!0,h.initContext(),o[CI]=h,h.zlevel=CI,r.push(CI),this._domRoot=t}else{this._width=ph(t,0,i),this._height=ph(t,1,i);var c=this._domRoot=Rf(this._width,this._height);t.appendChild(c)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();return t?{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}:void 0},t.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),i=this._prevDisplayList,n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,i,t,this._redrawId);for(var r=0;r<n.length;r++){var o=n[r],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===r?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e=t.length,i=this._hoverlayer;if(i&&i.clear(),e){for(var n,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;e>o;o++){var a=t[o];a.__inHover&&(i||(i=this._hoverlayer=this.getLayer(1e5)),n||(n=i.ctx,n.save()),Eh(n,a,r,o===e-1))}n&&n.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(1e5)},t.prototype.paintOne=function(t,e){Lh(t,e)},t.prototype._paintList=function(t,e,i,n){if(this._redrawId===n){i=i||!1,this._updateLayerStatus(t);var r=this._doPaintList(t,e,i),o=r.finished,a=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer(function(t){t.afterBrush&&t.afterBrush()});else{var s=this;By(function(){s._paintList(t,e,i,n)})}}},t.prototype._compositeManually=function(){var t=this.getLayer(CI).ctx,e=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,e,i),this.eachBuiltinLayer(function(n){n.virtual&&t.drawImage(n.dom,0,0,e,i)})},t.prototype._doPaintList=function(t,e,i){for(var n=this,r=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||i)&&r.push(l)}for(var u=!0,h=!1,c=this,p=0;p<r.length;p++)!function(a){var s=r[a],l=s.ctx,p=o&&s.createRepaintRects(t,e,c._width,c._height),f=i?s.__startIndex:s.__drawIndex,d=!i&&s.incremental&&Date.now,g=d&&Date.now(),v=s.zlevel===c._zlevelList[0]?c._backgroundColor:null;if(s.__startIndex===s.__endIndex)s.clear(!1,v,p);else if(f===s.__startIndex){var y=t[f];y.incremental&&y.notClear&&!i||s.clear(!1,v,p)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=s.__startIndex);var m,_=function(e){var i={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(m=f;m<s.__endIndex;m++){var r=t[m];if(r.__inHover&&(h=!0),n._doPaintEl(r,s,o,e,i,m===s.__endIndex-1),d){if(Date.now()-g>15)break}}i.prevElClipPaths&&l.restore()};if(p)if(0===p.length)m=s.__endIndex;else for(var x=c.dpr,w=0;w<p.length;++w){var b=p[w];l.save(),l.beginPath(),l.rect(b.x*x,b.y*x,b.width*x,b.height*x),l.clip(),_(b),l.restore()}else l.save(),_(),l.restore();s.__drawIndex=m,s.__drawIndex<s.__endIndex&&(u=!1)}(p);return xv.wxa&&d(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),{finished:u,needsRefreshHover:h}},t.prototype._doPaintEl=function(t,e,i,n,r,o){var a=e.ctx;if(i){var s=t.getPaintRect();(!n||s&&s.intersect(n))&&(Eh(a,t,r,o),t.setPrevPaintRect(s))}else Eh(a,t,r,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=CI);var i=this._layers[t];return i||(i=new MI("zr_"+t,this,this.dpr),i.zlevel=t,i.__builtin__=!0,this._layerConfig[t]?a(i,this._layerConfig[t],!0):this._layerConfig[t-.01]&&a(i,this._layerConfig[t-.01],!0),e&&(i.virtual=e),this.insertLayer(t,i),i.initContext()),i},t.prototype.insertLayer=function(t,e){var i=this._layers,n=this._zlevelList,r=n.length,o=this._domRoot,a=null,s=-1;if(!i[t]&&Ef(e)){if(r>0&&t>n[0]){for(s=0;r-1>s&&!(n[s]<t&&n[s+1]>t);s++);a=i[n[s]]}if(n.splice(s+1,0,t),i[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}},t.prototype.eachLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var r=i[n];t.call(e,this._layers[r],r)}},t.prototype.eachBuiltinLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var r=i[n],o=this._layers[r];o.__builtin__&&t.call(e,o,r)}},t.prototype.eachOtherLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var r=i[n],o=this._layers[r];o.__builtin__||t.call(e,o,r)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){s&&(s.__endIndex!==t&&(s.__dirty=!0),s.__endIndex=t)}if(this.eachBuiltinLayer(function(t){t.__dirty=t.__used=!1}),this._singleCanvas)for(var i=1;i<t.length;i++){var n=t[i];if(n.zlevel!==t[i-1].zlevel||n.incremental){this._needsManuallyCompositing=!0;break}}var o,a,s=null,l=0;for(a=0;a<t.length;a++){var n=t[a],u=n.zlevel,h=void 0;o!==u&&(o=u,l=0),n.incremental?(h=this.getLayer(u+.001,this._needsManuallyCompositing),h.incremental=!0,l=1):h=this.getLayer(u+(l>0?.01:0),this._needsManuallyCompositing),h.__builtin__||r("ZLevel "+u+" has been used by unkown layer "+h.id),h!==s&&(h.__used=!0,h.__startIndex!==a&&(h.__dirty=!0),h.__startIndex=a,h.__drawIndex=h.incremental?-1:a,e(a),s=h),n.__dirty&Oy&&!n.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__drawIndex=a))}e(a),this.eachBuiltinLayer(function(t){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,d(this._layers,function(t){t.setUnpainted()})},t.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?a(i[t],e,!0):i[t]=e;for(var n=0;n<this._zlevelList.length;n++){var r=this._zlevelList[n];if(r===t||r===t+.01){a(this._layers[r],i[t],!0)}}}},t.prototype.delLayer=function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],i.splice(h(i,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts,r=this.root;if(null!=t&&(n.width=t),null!=e&&(n.height=e),t=ph(r,0,n),e=ph(r,1,n),i.style.display="",this._width!==t||e!==this._height){i.style.width=t+"px",i.style.height=e+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(CI).resize(t,e)}return this},t.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[CI].dom;var e=new MI("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var i=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var n=e.dom.width,r=e.dom.height;this.eachLayer(function(t){t.__builtin__?i.drawImage(t.dom,0,0,n,r):t.renderToCanvas&&(i.save(),t.renderToCanvas(i),i.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;l>s;s++){var u=a[s];Eh(i,u,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}(),kI=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return e(i,t),i.prototype.init=function(e,i,n){t.prototype.init.call(this,e,i,n),this._sourceManager=new GS(this),tu(this)},i.prototype.mergeOption=function(e,i){t.prototype.mergeOption.call(this,e,i),tu(this)},i.prototype.optionUpdated=function(){this._sourceManager.dirty()},i.prototype.getSourceManager=function(){return this._sourceManager},i.type="dataset",i.defaultOption={seriesLayoutBy:Qb},i}(zb),AI=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return e(i,t),i.type="dataset",i}(tT);Rp([Bf,Nf]),Rp(Of);var DI=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e.hasSymbolVisual=!0,e}return e(i,t),i.prototype.getInitialData=function(){return Fc(null,this,{useEncodeDefaulter:!0})},i.prototype.getLegendIcon=function(t){var e=new Vm,i=nh("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(i),i.setStyle(t.lineStyle);var n=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===n?"circle":n,a=.8*t.itemHeight,s=nh(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?r:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},i.type="series.line",i.dependencies=["grid","polar"],i.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},i}(JS),PI=function(t){function i(e,i,n,r){var o=t.call(this)||this;return o.updateData(e,i,n,r),o}return e(i,t),i.prototype._createSymbol=function(t,e,i,n,r){this.removeAll();var o=nh(t,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),o.drift=Yf,this._symbolType=t,this.add(o)},i.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},i.prototype.getSymbolType=function(){return this._symbolType},i.prototype.getSymbolPath=function(){return this.childAt(0)},i.prototype.highlight=function(){ho(this.childAt(0))},i.prototype.downplay=function(){co(this.childAt(0))},i.prototype.setZ=function(t,e){var i=this.childAt(0);i.zlevel=t,i.z=e},i.prototype.setDraggable=function(t,e){var i=this.childAt(0);i.draggable=t,i.cursor=!e&&t?"move":i.cursor},i.prototype.updateData=function(t,e,n,r){this.silent=!1;var o=t.getItemVisual(e,"symbol")||"circle",a=t.hostModel,s=i.getSymbolSize(t,e),l=o!==this._symbolType,u=r&&r.disableAnimation;if(l){var h=t.getItemVisual(e,"symbolKeepAspect");this._createSymbol(o,t,e,s,h)}else{var c=this.childAt(0);c.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};u?c.attr(p):oa(c,p,a,e),ca(c)}if(this._updateCommon(t,e,s,n,r),l){var c=this.childAt(0);if(!u){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,aa(c,p,a,e)}}u&&this.childAt(0).stopAnimation("leave")},i.prototype._updateCommon=function(t,e,i,n,r){function o(e){return I?t.getName(e):zf(t,e)}var a,s,u,h,c,p,f,d,g,v=this.childAt(0),y=t.hostModel;if(n&&(a=n.emphasisItemStyle,s=n.blurItemStyle,u=n.selectItemStyle,h=n.focus,c=n.blurScope,f=n.labelStatesModels,d=n.hoverScale,g=n.cursorStyle,p=n.emphasisDisabled),!n||t.hasItemOption){var m=n&&n.itemModel?n.itemModel:t.getItemModel(e),_=m.getModel("emphasis");a=_.getModel("itemStyle").getItemStyle(),u=m.getModel(["select","itemStyle"]).getItemStyle(),s=m.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),c=_.get("blurScope"),p=_.get("disabled"),f=Ha(m),d=_.getShallow("scale"),g=m.getShallow("cursor")}var x=t.getItemVisual(e,"symbolRotate");v.attr("rotation",(x||0)*Math.PI/180||0);var w=oh(t.getItemVisual(e,"symbolOffset"),i);w&&(v.x=w[0],v.y=w[1]),g&&v.attr("cursor",g);var b=t.getItemVisual(e,"style"),S=b.fill;if(v instanceof hx){var T=v.style;v.useStyle(l({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},b))}else v.useStyle(v.__isEmptyBrush?l({},b):b),v.style.decal=null,v.setColor(S,r&&r.symbolInnerColor),v.style.strokeNoScale=!0;var M=t.getItemVisual(e,"liftZ"),C=this._z2;null!=M?null==C&&(this._z2=v.z2,v.z2+=M):null!=C&&(v.z2=C,this._z2=null);var I=r&&r.useNameLabel;Ya(v,f,{labelFetcher:y,labelDataIndex:e,defaultText:o,inheritColor:S,defaultOpacity:b.opacity}),this._sizeX=i[0]/2,this._sizeY=i[1]/2;var k=v.ensureState("emphasis");k.style=a,v.ensureState("select").style=u,v.ensureState("blur").style=s;var A=null==d||!0===d?Math.max(1.1,3/this._sizeY):isFinite(d)&&d>0?+d:1;k.scaleX=this._sizeX*A,k.scaleY=this._sizeY*A,this.setSymbolScale(1),Do(this,h,c,p)},i.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},i.prototype.fadeOut=function(t,e,i){var n=this.childAt(0),r=bx(this).dataIndex,o=i&&i.animation;if(this.silent=n.silent=!0,i&&i.fadeLabel){var a=n.getTextContent();a&&la(a,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){n.removeTextContent()}})}else n.removeTextContent();la(n,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},i.getSymbolSize=function(t,e){return rh(t.getItemVisual(e,"symbolSize"))},i}(Vm),OI=function(){function t(t){this.group=new Vm,this._SymbolCtor=t||PI}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=Vf(e);var i=this.group,n=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=Wf(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||i.removeAll(),t.diff(r).add(function(n){var r=u(n);if(Hf(t,r,n,e)){var a=new o(t,n,s,l);a.setPosition(r),t.setItemGraphicEl(n,a),i.add(a)}}).update(function(h,c){var p=r.getItemGraphicEl(c),f=u(h);if(!Hf(t,f,h,e))return void i.remove(p);var d=t.getItemVisual(h,"symbol")||"circle",g=p&&p.getSymbolType&&p.getSymbolType();if(!p||g&&g!==d)i.remove(p),p=new o(t,h,s,l),p.setPosition(f);else{p.updateData(t,h,s,l);var v={x:f[0],y:f[1]};a?p.attr(v):oa(p,v,n)}i.add(p),t.setItemGraphicEl(h,p)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut(function(){i.remove(e)},n)}).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(e,i){var n=t._getSymbolPoint(i);e.setPosition(n),e.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Wf(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,i){function n(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],i=Vf(i);for(var r=t.start;r<t.end;r++){var o=e.getItemLayout(r);if(Hf(e,o,r,i)){var a=new this._SymbolCtor(e,r,this._seriesScope);a.traverse(n),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(r,a),this._progressiveEls.push(a)}}},t.prototype.eachRendered=function(t){Na(this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,i=this._data;i&&t?i.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)},i.hostModel)}):e.removeAll()},t}(),LI=Math.min,EI=Math.max,RI=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),BI=function(t){function i(e){var i=t.call(this,e)||this;return i.type="ec-polyline",i}return e(i,t),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new RI},i.prototype.buildPath=function(t,e){var i=e.points,n=0,r=i.length/2;if(e.connectNulls){for(;r>0&&Zf(i[2*r-2],i[2*r-1]);r--);for(;r>n&&Zf(i[2*n],i[2*n+1]);n++);}for(;r>n;)n+=Kf(t,i,n,r,r,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},i.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i,n,r=this.path,o=r.data,a=q_.CMD,s="x"===e,l=[],u=0;u<o.length;){var h=o[u++],c=void 0,p=void 0,f=void 0,d=void 0,g=void 0,v=void 0,y=void 0;switch(h){case a.M:i=o[u++],n=o[u++];break;case a.L:if(c=o[u++],p=o[u++],1>=(y=s?(t-i)/(c-i):(t-n)/(p-n))&&y>=0){var m=s?(p-n)*y+n:(c-i)*y+i;return s?[t,m]:[m,t]}i=c,n=p;break;case a.C:c=o[u++],p=o[u++],f=o[u++],d=o[u++],g=o[u++],v=o[u++];var _=s?ue(i,c,f,g,t,l):ue(n,p,d,v,t,l);if(_>0)for(var x=0;_>x;x++){var w=l[x];if(1>=w&&w>=0){var m=s?se(n,p,d,v,w):se(i,c,f,g,w);return s?[t,m]:[m,t]}}i=g,n=v}}},i}(ox),NI=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i}(RI),zI=function(t){function i(e){var i=t.call(this,e)||this;return i.type="ec-polygon",i}return e(i,t),i.prototype.getDefaultShape=function(){return new NI},i.prototype.buildPath=function(t,e){var i=e.points,n=e.stackedOnPoints,r=0,o=i.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&Zf(i[2*o-2],i[2*o-1]);o--);for(;o>r&&Zf(i[2*r],i[2*r+1]);r++);}for(;o>r;){var s=Kf(t,i,r,o,o,1,e.smooth,a,e.connectNulls);Kf(t,n,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}},i}(ox),FI=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i.prototype.init=function(){var t=new Vm,e=new OI;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},i.prototype.render=function(t,e,i){var n=this,r=t.coordinateSystem,o=this.group,a=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),h=a.getLayout("points")||[],c="polar"===r.type,p=this._coordSys,f=this._symbolDraw,d=this._polyline,g=this._polygon,v=this._lineGroup,y=t.get("animation"),m=!l.isEmpty(),_=l.get("origin"),x=Xf(r,a,_),w=m&&rd(r,a,x),b=t.get("showSymbol"),S=t.get("connectNulls"),T=b&&!c&&ld(t,a,r),M=this._data;M&&M.eachItemGraphicEl(function(t,e){t.__temp&&(o.remove(t),M.setItemGraphicEl(e,null))}),b||f.remove(),o.add(v);var C,I=!c&&t.get("step");r&&r.getArea&&t.get("clip",!0)&&(C=r.getArea(),null!=C.width?(C.x-=.1,C.y-=.1,C.width+=.2,C.height+=.2):C.r0&&(C.r0-=.5,C.r+=.5)),this._clipShapeForSymbol=C;var k=sd(a,r,i)||a.getVisual("style")[a.getVisual("drawType")];if(d&&p.type===r.type&&I===this._step){m&&!g?g=this._newPolygon(h,w):g&&!m&&(v.remove(g),g=this._polygon=null),c||this._initOrUpdateEndLabel(t,r,Ds(k));var A=v.getClipPath();if(A){aa(A,{shape:gd(this,r,!1,t).shape},t)}else v.setClipPath(gd(this,r,!0,t));b&&f.updateData(a,{isIgnore:T,clipShape:C,disableAnimation:!0,getSymbolPoint:function(t){return[h[2*t],h[2*t+1]]}}),td(this._stackedOnPoints,w)&&td(this._points,h)||(y?this._doUpdateAnimation(a,w,r,i,I,_,S):(I&&(h=od(h,r,I,S),w&&(w=od(w,r,I,S))),d.setShape({points:h}),g&&g.setShape({points:h,stackedOnPoints:w})))}else b&&f.updateData(a,{isIgnore:T,clipShape:C,disableAnimation:!0,getSymbolPoint:function(t){return[h[2*t],h[2*t+1]]}}),y&&this._initSymbolLabelAnimation(a,r,C),I&&(h=od(h,r,I,S),w&&(w=od(w,r,I,S))),d=this._newPolyline(h),m?g=this._newPolygon(h,w):g&&(v.remove(g),g=this._polygon=null),c||this._initOrUpdateEndLabel(t,r,Ds(k)),v.setClipPath(gd(this,r,!0,t));var D=t.getModel("emphasis"),P=D.get("focus"),O=D.get("blurScope"),L=D.get("disabled");if(d.useStyle(u(s.getLineStyle(),{fill:"none",stroke:k,lineJoin:"bevel"})),Oo(d,t,"lineStyle"),d.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])){d.getState("emphasis").style.lineWidth=+d.style.lineWidth+1}bx(d).seriesIndex=t.seriesIndex,Do(d,P,O,L);var E=nd(t.get("smooth")),R=t.get("smoothMonotone");if(d.setShape({smooth:E,smoothMonotone:R,connectNulls:S}),g){var B=a.getCalculationInfo("stackedOnSeries"),N=0;g.useStyle(u(l.getAreaStyle(),{fill:k,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),B&&(N=nd(B.get("smooth"))),g.setShape({smooth:E,stackedOnSmooth:N,smoothMonotone:R,connectNulls:S}),Oo(g,t,"areaStyle"),bx(g).seriesIndex=t.seriesIndex,Do(g,P,O,L)}var z=function(t){n._changePolyState(t)};a.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=z)}),this._polyline.onHoverStateChange=z,this._data=a,this._coordSys=r,this._stackedOnPoints=w,this._points=h,this._step=I,this._valueOrigin=_,t.get("triggerLineEvent")&&(this.packEventData(t,d),g&&this.packEventData(t,g))},i.prototype.packEventData=function(t,e){bx(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},i.prototype.highlight=function(t,e,i,n){var r=t.getData(),o=An(r,n);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var h=t.get("zlevel")||0,c=t.get("z")||0;s=new PI(r,o),s.x=l,s.y=u,s.setZ(h,c);var p=s.getSymbolPath().getTextContent();p&&(p.zlevel=h,p.z=c,p.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else nT.prototype.highlight.call(this,t,e,i,n)},i.prototype.downplay=function(t,e,i,n){var r=t.getData(),o=An(r,n);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else nT.prototype.downplay.call(this,t,e,i,n)},i.prototype._changePolyState=function(t){var e=this._polygon;eo(this._polyline,t),e&&eo(e,t)},i.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new BI({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},i.prototype._newPolygon=function(t,e){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new zI({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},i.prototype._initSymbolLabelAnimation=function(t,e,i){var n,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(n=o.isHorizontal(),r=!1):"polar"===e.type&&(n="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");S(l)&&(l=l(null));var u=s.get("animationDelay")||0,h=S(u)?u(null):u;t.eachItemGraphicEl(function(t,o){var s=t;if(s){var c=[t.x,t.y],p=void 0,f=void 0,d=void 0;if(i)if(r){var g=i,v=e.pointToCoord(c);n?(p=g.startAngle,f=g.endAngle,d=-v[1]/180*Math.PI):(p=g.r0,f=g.r,d=v[0])}else{var y=i;n?(p=y.x,f=y.x+y.width,d=t.x):(p=y.y+y.height,f=y.y,d=t.y)}var m=f===p?0:(d-p)/(f-p);a&&(m=1-m);var _=S(u)?u(o):l*m+h,x=s.getSymbolPath(),w=x.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:_}),w&&w.animateFrom({style:{opacity:0}},{duration:300,delay:_}),x.disableLabelAnimation=!0}})},i.prototype._initOrUpdateEndLabel=function(t,e,i){var n=t.getModel("endLabel");if(dd(t)){var r=t.getData(),o=this._polyline,a=r.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new yx({z2:200}),s.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=cd(a);l>=0&&(Ya(o,Ha(t,"endLabel"),{inheritColor:i,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,i){return null!=i?Ff(r,i):zf(r,t)},enableTextSetter:!0},vd(n,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},i.prototype._endLabelOnDuring=function(t,e,i,n,r,o,a){var s=this._endLabel,l=this._polyline;if(s){1>t&&null==n.originalX&&(n.originalX=s.x,n.originalY=s.y);var u=i.getLayout("points"),h=i.hostModel,c=h.get("connectNulls"),p=o.get("precision"),f=o.get("distance")||0,d=a.getBaseAxis(),g=d.isHorizontal(),v=d.inverse,y=e.shape,m=v?g?y.x:y.y+y.height:g?y.x+y.width:y.y,_=(g?f:0)*(v?-1:1),x=(g?0:-f)*(v?-1:1),w=g?"x":"y",b=fd(u,m,w),S=b.range,T=S[1]-S[0],M=void 0;if(T>=1){if(T>1&&!c){var C=pd(u,S[0]);s.attr({x:C[0]+_,y:C[1]+x}),r&&(M=h.getRawValue(S[0]))}else{var C=l.getPointOn(m,w);C&&s.attr({x:C[0]+_,y:C[1]+x});var I=h.getRawValue(S[0]),k=h.getRawValue(S[1]);r&&(M=Nn(i,p,I,k,b.t))}n.lastFrameIndex=S[0]}else{var A=1===t||n.lastFrameIndex>0?S[0]:0,C=pd(u,A);r&&(M=h.getRawValue(A)),s.attr({x:C[0]+_,y:C[1]+x})}r&&tb(s).setLabelText(M)}},i.prototype._doUpdateAnimation=function(t,e,i,n,r,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,h=qf(this._data,t,this._stackedOnPoints,e,this._coordSys,i,this._valueOrigin),c=h.current,p=h.stackedOnCurrent,f=h.next,d=h.stackedOnNext;if(r&&(c=od(h.current,i,r,a),p=od(h.stackedOnCurrent,i,r,a),f=od(h.next,i,r,a),d=od(h.stackedOnNext,i,r,a)),id(c,f)>3e3||l&&id(p,d)>3e3)return s.stopAnimation(),s.setShape({points:f}),void(l&&(l.stopAnimation(),l.setShape({points:f,stackedOnPoints:d})));s.shape.__points=h.current,s.shape.points=c;var g={shape:{points:f}};h.current!==c&&(g.shape.__points=h.next),s.stopAnimation(),oa(s,g,u),l&&(l.setShape({points:c,stackedOnPoints:p}),l.stopAnimation(),oa(l,{shape:{stackedOnPoints:d}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var v=[],y=h.status,m=0;m<y.length;m++){if("="===y[m].cmd){var _=t.getItemGraphicEl(y[m].idx1);_&&v.push({el:_,ptIdx:m})}}s.animators&&s.animators.length&&s.animators[0].during(function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<v.length;e++){var i=v[e].el,n=2*v[e].ptIdx;i.x=t[n],i.y=t[n+1],i.markRedraw()}})},i.prototype.remove=function(){var t=this.group,e=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),e&&e.eachItemGraphicEl(function(i,n){i.__temp&&(t.remove(i),e.setItemGraphicEl(n,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},i.type="line",i}(nT),YI={average:function(t){for(var e=0,i=0,n=0;n<t.length;n++)isNaN(t[n])||(e+=t[n],i++);return 0===i?NaN:e/i},sum:function(t){for(var e=0,i=0;i<t.length;i++)e+=t[i]||0;return e},max:function(t){for(var e=-1/0,i=0;i<t.length;i++)t[i]>e&&(e=t[i]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,i=0;i<t.length;i++)t[i]<e&&(e=t[i]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},HI=function(t){return Math.round(t.length/2)};Rp(_d);var VI=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i.type="grid",i.dependencies=["xAxis","yAxis"],i.layoutMode="box",i.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"},i}(zb),WI=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",t_).models[0]},i.type="cartesian2dAxis",i}(zb);p(WI,VC);var XI={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)"]}}},UI=a({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},XI),jI=a({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}}},XI),GI=a({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},jI),qI=u({logBase:10},jI),ZI={category:UI,value:jI,time:GI,log:qI},KI={value:1,category:1,time:1,log:1},QI=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return g(this._dimList,function(t){return this._axes[t]},this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),y(this.getAxes(),function(e){return e.scale.type===t})},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),$I=["x","y"],JI=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=$I,e}return e(i,t),i.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(bd(t)&&bd(e)){var i=t.getExtent(),n=e.getExtent(),r=this.dataToPoint([i[0],n[0]]),o=this.dataToPoint([i[1],n[1]]),a=i[1]-i[0],s=n[1]-n[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,h=r[0]-i[0]*l,c=r[1]-n[0]*u,p=this._transform=[l,0,0,u,h,c];this._invTransform=Vt([],p)}}},i.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},i.prototype.containPoint=function(t){var e=this.getAxis("x"),i=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&i.contain(i.toLocalCoord(t[1]))},i.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},i.prototype.containZone=function(t,e){var i=this.dataToPoint(t),n=this.dataToPoint(e),r=this.getArea(),o=new by(i[0],i[1],n[0]-i[0],n[1]-i[1]);return r.intersect(o)},i.prototype.dataToPoint=function(t,e,i){i=i||[];var n=t[0],r=t[1];if(this._transform&&null!=n&&isFinite(n)&&null!=r&&isFinite(r))return gt(i,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return i[0]=o.toGlobalCoord(o.dataToCoord(n,e)),i[1]=a.toGlobalCoord(a.dataToCoord(r,e)),i},i.prototype.clampData=function(t,e){var i=this.getAxis("x").scale,n=this.getAxis("y").scale,r=i.getExtent(),o=n.getExtent(),a=i.parse(t[0]),s=n.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},i.prototype.pointToData=function(t,e){var i=[];if(this._invTransform)return gt(i,t,this._invTransform);var n=this.getAxis("x"),r=this.getAxis("y");return i[0]=n.coordToData(n.toLocalCoord(t[0]),e),i[1]=r.coordToData(r.toLocalCoord(t[1]),e),i},i.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},i.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),i=Math.min(t[0],t[1]),n=Math.min(e[0],e[1]),r=Math.max(t[0],t[1])-i,o=Math.max(e[0],e[1])-n;return new by(i,n,r,o)},i}(QI),tk=function(t){function i(e,i,n,r,o){var a=t.call(this,e,i,n)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return e(i,t),i.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},i.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},i.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},i.prototype.setCategorySortInfo=function(t){return"category"===this.type&&(this.model.option.categorySortInfo=t,void this.scale.setSortInfo(t))},i}(aI),ek=Math.log,ik=function(){function t(t,e,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=$I,this._initCartesian(t,e,i),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){function i(t){var e,i=_(t),n=i.length;if(n){for(var r=[],o=n-1;o>=0;o--){var a=+i[o],s=t[a],l=s.model,u=s.scale;Wc(u)&&l.get("alignTicks")&&null==l.get("interval")?r.push(s):(wp(u,l),Wc(u)&&(e=s))}r.length&&(e||(e=r.pop(),wp(e.scale,e.model)),d(r,function(t){Cd(t.scale,t.model,e.scale)}))}}var n=this._axesMap;this._updateScale(t,this.model),i(n.x),i(n.y);var r={};d(n.x,function(t){kd(n,"y",t,r)}),d(n.y,function(t){kd(n,"x",t,r)}),this.resize(this.model,e)},t.prototype.resize=function(t,e,i){function n(){d(s,function(t){var e=t.isHorizontal(),i=e?[0,a.width]:[0,a.height],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),Dd(t,e?a.x:a.y)})}var r=t.getBoxLayoutParams(),o=!i&&t.get("containLabel"),a=Os(r,{width:e.getWidth(),height:e.getHeight()});this._rect=a;var s=this._axesList;n(),o&&(d(s,function(t){if(!t.model.get(["axisLabel","inside"])){var e=Cp(t);if(e){var i=t.isHorizontal()?"height":"width",n=t.model.get(["axisLabel","margin"]);a[i]-=e[i]+n,"top"===t.position?a.y+=e.height+n:"left"===t.position&&(a.x+=e.width+n)}}}),n()),d(this._coordsList,function(t){t.calcAffineTransform()})},t.prototype.getAxis=function(t,e){var i=this._axesMap[t];return null!=i?i[e||0]:void 0},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var i="x"+t+"y"+e;return this._coordsMap[i]}I(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,r=this._coordsList;n<r.length;n++)if(r[n].getAxis("x").index===t||r[n].getAxis("y").index===e)return r[n]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,i){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},t.prototype.convertFromPixel=function(t,e,i){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},t.prototype._findConvertTarget=function(t){var e,i,n=t.seriesModel,r=t.xAxisModel||n&&n.getReferringComponents("xAxis",t_).models[0],o=t.yAxisModel||n&&n.getReferringComponents("yAxis",t_).models[0],a=t.gridModel,s=this._coordsList;if(n)e=n.coordinateSystem,h(s,e)<0&&(e=null);else if(r&&o)e=this.getCartesian(r.componentIndex,o.componentIndex);else if(r)i=this.getAxis("x",r.componentIndex);else if(o)i=this.getAxis("y",o.componentIndex);else if(a){var l=a.coordinateSystem;l===this&&(e=this._coordsList[0])}return{cartesian:e,axis:i}},t.prototype.containPoint=function(t){var e=this._coordsList[0];return e?e.containPoint(t):void 0},t.prototype._initCartesian=function(t,e){function i(e){return function(i,n){if(Id(i,t)){var l=i.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new tk(e,bp(i),[0,0],i.get("type"),l),h="category"===u.type;u.onBand=h&&i.get("boundaryGap"),u.inverse=i.get("inverse"),i.axis=u,u.model=i,u.grid=r,u.index=n,r._axesList.push(u),a[e][n]=u,s[e]++}}}var n=this,r=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};return e.eachComponent("xAxis",i("x"),this),e.eachComponent("yAxis",i("y"),this),s.x&&s.y?(this._axesMap=a,void d(a.x,function(e,i){d(a.y,function(r,o){var a="x"+i+"y"+o,s=new JI(a);s.master=n,s.model=t,n._coordsMap[a]=s,n._coordsList.push(s),s.addAxis(e),s.addAxis(r)})})):(this._axesMap={},void(this._axesList=[]))},t.prototype._updateScale=function(t,e){function i(t,e){d(Dp(t,e.dim),function(i){e.scale.unionExtentFromData(t,i)})}d(this._axesList,function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}}),t.eachSeries(function(t){if(Td(t)){var n=Md(t),r=n.xAxisModel,o=n.yAxisModel;if(!Id(r,e)||!Id(o,e))return;var a=this.getCartesian(r.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),u=a.getAxis("y");i(s,l),i(s,u)}},this)},t.prototype.getTooltipAxes=function(t){var e=[],i=[];return d(this.getCartesians(),function(n){var r=null!=t&&"auto"!==t?n.getAxis(t):n.getBaseAxis(),o=n.getOtherAxis(r);h(e,r)<0&&e.push(r),h(i,o)<0&&i.push(o)}),{baseAxes:e,otherAxes:i}},t.create=function(e,i){var n=[];return e.eachComponent("grid",function(r,o){var a=new t(r,e,i);a.name="grid_"+o,a.resize(r,i,!0),r.coordinateSystem=a,n.push(a)}),e.eachSeries(function(t){if(Td(t)){var e=Md(t),i=e.xAxisModel,n=e.yAxisModel,r=i.getCoordSysModel(),o=r.coordinateSystem;t.coordinateSystem=o.getCartesian(i.componentIndex,n.componentIndex)}}),n},t.dimensions=$I,t}(),nk=Math.PI,rk=function(){function t(t,e){this.group=new Vm,this.opt=e,this.axisModel=t,u(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var i=new Vm({x:e.position[0],y:e.position[1],rotation:e.rotation});i.updateTransform(),this._transformGroup=i}return t.prototype.hasBuilder=function(t){return!!ok[t]},t.prototype.add=function(t){ok[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,i){var n,r,o=Zi(e-t);return Ki(o)?(r=i>0?"top":"bottom",n="center"):Ki(o-nk)?(r=i>0?"bottom":"top",n="center"):(r="middle",n=o>0&&nk>o?i>0?"right":"left":i>0?"left":"right"),{rotation:o,textAlign:n,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),ok={axisLine:function(t,e,i,n){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var o=e.axis.getExtent(),a=n.transform,s=[o[0],0],u=[o[1],0],h=s[0]>u[0];a&&(gt(s,s,a),gt(u,u,a));var c=l({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),p=new Mw({shape:{x1:s[0],y1:s[1],x2:u[0],y2:u[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});xa(p.shape,p.style.lineWidth),p.anid="line",i.add(p);var f=e.get(["axisLine","symbol"]);if(null!=f){var g=e.get(["axisLine","symbolSize"]);T(f)&&(f=[f,f]),(T(g)||C(g))&&(g=[g,g]);var v=oh(e.get(["axisLine","symbolOffset"])||0,g),y=g[0],m=g[1];d([{rotate:t.rotation+Math.PI/2,offset:v[0],r:0},{rotate:t.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-u[0])*(s[0]-u[0])+(s[1]-u[1])*(s[1]-u[1]))}],function(e,n){if("none"!==f[n]&&null!=f[n]){var r=nh(f[n],-y/2,-m/2,y,m,c.stroke,!0),o=e.r+e.offset,a=h?u:s;r.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),i.add(r)}})}}},axisTickLabel:function(t,e,i,n){var r=Nd(i,n,e,t),o=Fd(i,n,e,t);if(Od(e,o,r),zd(i,n,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){kf(Tf(g(o,function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})))}},axisName:function(t,e,i,n){var r=R(t.axisName,e.get("name"));if(r){var o,a=e.get("nameLocation"),s=t.nameDirection,l=e.getModel("nameTextStyle"),u=e.get("nameGap")||0,h=e.axis.getExtent(),c=h[0]>h[1]?-1:1,p=["start"===a?h[0]-c*u:"end"===a?h[1]+c*u:(h[0]+h[1])/2,Rd(a)?t.labelOffset+s*u:0],f=e.get("nameRotate");null!=f&&(f=f*nk/180);var d;Rd(a)?o=rk.innerTextLayout(t.rotation,null!=f?f:t.rotation,s):(o=Pd(t.rotation,a,f||0,h),null!=(d=t.axisNameAvailableWidth)&&(d=Math.abs(d/Math.sin(o.rotation)),!isFinite(d)&&(d=null)));var g=l.getFont(),v=e.get("nameTruncate",!0)||{},y=v.ellipsis,m=R(t.nameTruncateMaxWidth,v.maxWidth,d),_=new yx({x:p[0],y:p[1],rotation:o.rotation,silent:rk.isLabelSilent(e),style:Va(l,{text:r,font:g,overflow:"truncate",width:m,ellipsis:y,fill:l.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:l.get("align")||o.textAlign,verticalAlign:l.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Ra({el:_,componentModel:e,itemName:r}),_.__fullText=r,_.anid="name",e.get("triggerEvent")){var x=rk.makeAxisEventDataBase(e);x.targetType="axisName",x.name=r,bx(_).eventData=x}n.add(_),_.updateTransform(),i.add(_),_.decomposeTransform()}}},ak={},sk=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e}return e(i,t),i.prototype.render=function(e,i,n){this.axisPointerClass&&jd(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,n,!0)},i.prototype.updateAxisPointer=function(t,e,i){this._doUpdateAxisPointerClass(t,i,!1)},i.prototype.remove=function(t,e){var i=this._axisPointer;i&&i.remove(e)},i.prototype.dispose=function(e,i){this._disposeAxisPointer(i),t.prototype.dispose.apply(this,arguments)},i.prototype._doUpdateAxisPointerClass=function(t,e,n){var r=i.getAxisPointerClass(this.axisPointerClass);if(r){var o=qd(t);o?(this._axisPointer||(this._axisPointer=new r)).render(t,o,e,n):this._disposeAxisPointer(e)}},i.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},i.registerAxisPointerClass=function(t,e){ak[t]=e},i.getAxisPointerClass=function(t){return t&&ak[t]},i.type="axis",i}(tT),lk=Dn(),uk=["axisLine","axisTickLabel","axisName"],hk=["splitArea","splitLine","minorSplitLine"],ck=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e.axisPointerClass="CartesianAxisPointer",e}return e(i,t),i.prototype.render=function(e,i,n,r){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Vm,this.group.add(this._axisGroup),e.get("show")){var a=e.getCoordSysModel(),s=Sd(a,e),u=new rk(e,l({handleAutoShown:function(){for(var t=a.coordinateSystem.getCartesians(),i=0;i<t.length;i++)if(Wc(t[i].getOtherAxis(e.axis).scale))return!0;return!1}},s));d(uk,u.add,u),this._axisGroup.add(u.getGroup()),d(hk,function(t){e.get([t,"show"])&&pk[t](this,this._axisGroup,e,a)},this);r&&"changeAxisOrder"===r.type&&r.isInitSort||Ia(o,this._axisGroup,e),t.prototype.render.call(this,e,i,n,r)}},i.prototype.remove=function(){$d(this)},i.type="cartesianAxis",i}(sk),pk={splitLine:function(t,e,i,n){var r=i.axis;if(!r.scale.isBlank()){var o=i.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=b(s)?s:[s];for(var l=n.coordinateSystem.getRect(),h=r.isHorizontal(),c=0,p=r.getTicksCoords({tickModel:o}),f=[],d=[],g=a.getLineStyle(),v=0;v<p.length;v++){var y=r.toGlobalCoord(p[v].coord);h?(f[0]=y,f[1]=l.y,d[0]=y,d[1]=l.y+l.height):(f[0]=l.x,f[1]=y,d[0]=l.x+l.width,d[1]=y);var m=c++%s.length,_=p[v].tickValue,x=new Mw({anid:null!=_?"line_"+p[v].tickValue:null,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:d[0],y2:d[1]},style:u({stroke:s[m]},g),silent:!0});xa(x.shape,g.lineWidth),e.add(x)}}},minorSplitLine:function(t,e,i,n){var r=i.axis,o=i.getModel("minorSplitLine"),a=o.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=r.isHorizontal(),u=r.getMinorTicksCoords();if(u.length)for(var h=[],c=[],p=a.getLineStyle(),f=0;f<u.length;f++)for(var d=0;d<u[f].length;d++){var g=r.toGlobalCoord(u[f][d].coord);l?(h[0]=g,h[1]=s.y,c[0]=g,c[1]=s.y+s.height):(h[0]=s.x,h[1]=g,c[0]=s.x+s.width,c[1]=g);var v=new Mw({anid:"minor_line_"+u[f][d].tickValue,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:c[0],y2:c[1]},style:p,silent:!0});xa(v.shape,p.lineWidth),e.add(v)}},splitArea:function(t,e,i,n){Qd(t,e,i,n)}},fk=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e}return e(i,t),i.type="xAxis",i}(ck),dk=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=fk.type,e}return e(i,t),i.type="yAxis",i}(ck),gk=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return e(i,t),i.prototype.render=function(t){this.group.removeAll(),t.get("show")&&this.group.add(new dx({shape:t.coordinateSystem.getRect(),style:u({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},i.type="grid",i}(tT),vk={offset:0};Rp(Jd);var yk=Dn(),mk=o,_k=Yv,xk=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,i,n){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,n||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,i);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=u;var h=this._moveAnimation=this.determineAnimation(t,e);if(a){var c=w(tg,e,h);this.updatePointerEl(a,l,c),this.updateLabelEl(a,l,c,e)}else a=this._group=new Vm,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),i.getZr().add(a);rg(a,e,!0),this._renderHandle(r)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var i=e.get("animation"),n=t.axis,r="category"===n.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===i||null==i){var a=this.animationThreshold;if(r&&n.getBandWidth()>a)return!0;if(o){var s=Gd(t).seriesDataCount,l=n.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===i},t.prototype.makeElOption=function(){},t.prototype.createPointerEl=function(t,e){var i=e.pointer;if(i){var n=yk(t).pointerEl=new Zw[i.type](mk(e.pointer));t.add(n)}},t.prototype.createLabelEl=function(t,e,i,n){if(e.label){var r=yk(t).labelEl=new yx(mk(e.label));t.add(r),ig(r,n)}},t.prototype.updatePointerEl=function(t,e,i){var n=yk(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,i,n){var r=yk(t).labelEl;r&&(r.setStyle(e.label.style),i(r,{x:e.label.x,y:e.label.y}),ig(r,n))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e=this._axisPointerModel,i=this._api.getZr(),n=this._handle,r=e.getModel("handle"),o=e.get("status");if(!r.get("show")||!o||"hide"===o)return n&&i.remove(n),void(this._handle=null);var a;this._handle||(a=!0,n=this._handle=Da(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){uy(t.event)},onmousedown:_k(this._onHandleDragMove,this,0,0),drift:_k(this._onHandleDragMove,this),ondragend:_k(this._onHandleDragEnd,this)}),i.add(n)),rg(n,e,!1),n.setStyle(r.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=r.get("size");b(s)||(s=[s,s]),n.scaleX=s[0]/2,n.scaleY=s[1]/2,Bu(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,a)}},t.prototype._moveHandleToValue=function(t,e){tg(this._axisPointerModel,!e&&this._moveAnimation,this._handle,ng(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(ng(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(ng(n)),yk(i).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,n=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Nu(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}},t}(),wk=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i.prototype.makeElOption=function(t,e,i,n,r){var o=i.axis,a=o.grid,s=n.get("type"),l=fg(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var h=og(n),c=bk[s](o,u,l);c.style=h,t.graphicKey=c.type,t.pointer=c}hg(e,t,Sd(a.model,i),i,n,r)},i.prototype.getHandleTransform=function(t,e,i){var n=Sd(e.axis.grid.model,e,{labelInside:!1});n.labelMargin=i.get(["handle","margin"]);var r=ug(e.axis,t,n);return{x:r[0],y:r[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},i.prototype.updateHandleTransform=function(t,e,i){var n=i.axis,r=n.grid,o=n.getGlobalExtent(!0),a=fg(r,n).getOtherAxis(n).getGlobalExtent(),s="x"===n.dim?0:1,l=[t.x,t.y];l[s]+=e[s],l[s]=Math.min(o[1],l[s]),l[s]=Math.max(o[0],l[s]);var u=(a[1]+a[0])/2,h=[u,u];h[s]=l[s];var c=[{verticalAlign:"middle"},{align:"center"}];return{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:h,tooltipOption:c[s]}},i}(xk),bk={line:function(t,e,i){return{type:"Line",subPixelOptimize:!0,shape:cg([e,i[0]],[e,i[1]],dg(t))}},shadow:function(t,e,i){var n=Math.max(1,t.getBandWidth()),r=i[1]-i[0];return{type:"Rect",shape:pg([e-n/2,i[0]],[n,r],dg(t))}}},Sk=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e}return e(i,t),i.type="axisPointer",i.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!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}},i}(zb),Tk=Dn(),Mk=d,Ck=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e}return e(i,t),i.prototype.render=function(t,e,i){var n=e.getComponent("tooltip"),r=t.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";gg("axisPointer",i,function(t,e,i){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&i({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},i.prototype.remove=function(t,e){wg("axisPointer",e)},i.prototype.dispose=function(t,e){wg("axisPointer",e)},i.type="axisPointer",i}(tT),Ik=Dn(),kk=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e}return e(i,t),i.type="tooltip",i.dependencies=["axisPointer"],i.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}},i}(zb),Ak=Bg(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Dk=Bg(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Pk=Ng(Dk,"transition"),Ok=Ng(Ak,"transform"),Lk="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(xv.transform3dSupported?"will-change:transform;":""),Ek=function(){function t(t,e,i){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,xv.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),o=this._appendToBody=i&&i.appendToBody;Ug(this._styleCoord,r,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(n):t.appendChild(n),this._container=t;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=r.handler;At(r.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){var e=this._container,i=zg(e,"position"),n=e.style;"absolute"!==n.position&&"absolute"!==i&&(n.position="relative"),t.get("alwaysShowContent")&&this._moveIfResized(),this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,r=this._styleCoord;i.innerHTML?n.cssText=Lk+Xg(t,!this._firstShow,this._longHide)+Vg(r[0],r[1],!0)+"border-color:"+Ds(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,i,n,r){var o=this.el;if(null==t)return void(o.innerHTML="");var a="";if(T(r)&&"item"===i.get("trigger")&&!Rg(i)&&(a=Yg(i,n,r)),T(t))o.innerHTML=t+a;else if(t){o.innerHTML="",b(t)||(t=[t]);for(var s=0;s<t.length;s++)D(t[s])&&t[s].parentNode!==o&&o.appendChild(t[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},t.prototype.moveTo=function(t,e){var i=this._styleCoord;if(Ug(i,this._zr,this._appendToBody,t,e),null!=i[0]&&null!=i[1]){var n=this.el.style;d(Vg(i[0],i[1]),function(t){n[t[0]]=t[1]})}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",xv.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Yv(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},t}(),Rk=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),qg(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){t.get("alwaysShowContent")&&this._moveIfResized()},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,i,n){var r=this;I(t)&&un(""),this.el&&this._zr.remove(this.el);var o=i.getModel("textStyle");this.el=new yx({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:o.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:mu(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),d(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(t){r.el.style[t]=i.get(t)}),d(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(t){r.el.style[t]=o.get(t)||0}),this._zr.add(this.el);var a=this;this.el.on("mouseover",function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0}),this.el.on("mouseout",function(){a._enterable&&a._show&&a.hideLater(a._hideDelay),a._inContent=!1})},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),i=Gg(t.style);return[e.width+i.left+i.right,e.height+i.top+i.bottom]},t.prototype.moveTo=function(t,e){var i=this.el;if(i){var n=this._styleCoord;qg(n,this._zr,t,e),t=n[0],e=n[1];var r=i.style,o=jg(r.borderWidth||0),a=Gg(r);i.x=t+o+a.left,i.y=e+o+a.top,i.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Yv(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}(),Bk=new dx({shape:{x:-1,y:-1,width:2,height:2}}),Nk=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e}return e(i,t),i.prototype.init=function(t,e){if(!xv.node&&e.getDom()){var i=t.getComponent("tooltip"),n=this._renderMode=Bn(i.get("renderMode"));this._tooltipContent="richText"===n?new Rk(e):new Ek(e.getDom(),e,{appendToBody:i.get("appendToBody",!0)})}},i.prototype.render=function(t,e,i){if(!xv.node&&i.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=i,this._alwaysShowContent=t.get("alwaysShowContent");var n=this._tooltipContent;n.update(t),n.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?Bu(this,"_updatePosition",50,"fixRate"):Nu(this,"_updatePosition")}},i.prototype._initGlobalListener=function(){var t=this._tooltipModel,e=t.get("triggerOn");gg("itemTooltip",this._api,Yv(function(t,i,n){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(i,n):"leave"===t&&this._hide(n))},this))},i.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,i=this._api,n=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==n&&"click"!==n){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&r.manuallyShowTip(t,e,i,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})})}},i.prototype.manuallyShowTip=function(t,e,i,n){if(n.from!==this.uid&&!xv.node&&i.getDom()){var r=Kg(n,i);this._ticket="";var o=n.dataByCoordSys,a=ev(n,e,i);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:n.position,positionDefault:"bottom"},r)}else if(n.tooltip&&null!=n.x&&null!=n.y){var l=Bk;l.x=n.x,l.y=n.y,l.update(),bx(l).tooltipConfig={name:null,option:n.tooltip},this._tryShow({offsetX:n.x,offsetY:n.y,target:l},r)}else if(o)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:o,tooltipOption:n.tooltipOption},r);else if(null!=n.seriesIndex){if(this._manuallyAxisShowTip(t,e,i,n))return;var u=bg(n,e),h=u.point[0],c=u.point[1];null!=h&&null!=c&&this._tryShow({offsetX:h,offsetY:c,target:u.el,position:n.position,positionDefault:"bottom"},r)}else null!=n.x&&null!=n.y&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target},r))}},i.prototype.manuallyHideTip=function(t,e,i,n){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,n.from!==this.uid&&this._hide(Kg(n,i))},i.prototype._manuallyAxisShowTip=function(t,e,i,n){var r=n.seriesIndex,o=n.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s){if("axis"===Zg([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:n.position}),!0}}},i.prototype._tryShow=function(t,e){var i=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var n=t.dataByCoordSys;if(n&&n.length)this._showAxisTooltip(n,t);else if(i){this._lastDataByCoordSys=null;var r,o;eh(i,function(t){return null!=bx(t).dataIndex?(r=t,!0):null!=bx(t).tooltipConfig?(o=t,!0):void 0},!0),r?this._showSeriesItemTooltip(t,r,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},i.prototype._showOrMove=function(t,e){var i=t.get("showDelay");e=Yv(e,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(e,i):e()},i.prototype._showAxisTooltip=function(t,e){var i=this._ecModel,n=this._tooltipModel,r=[e.offsetX,e.offsetY],o=Zg([e.tooltipOption],n),a=this._renderMode,s=[],u=ru("section",{blocks:[],noHeader:!0}),h=[],c=new QS;d(t,function(t){d(t.dataByAxis,function(t){var e=i.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var o=lg(r,e.axis,i,t.seriesDataIndices,t.valueLabelOpt),p=ru("section",{header:o,noHeader:!H(o),sortBlocks:!0,blocks:[]});u.blocks.push(p),d(t.seriesDataIndices,function(u){var f=i.getSeriesByIndex(u.seriesIndex),d=u.dataIndexInside,g=f.getDataParams(d);if(!(g.dataIndex<0)){g.axisDim=t.axisDim,g.axisIndex=t.axisIndex,g.axisType=t.axisType,g.axisId=t.axisId,g.axisValue=Mp(e.axis,{value:r}),g.axisValueLabel=o,g.marker=c.makeTooltipMarker("item",Ds(g.color),a);var v=zl(f.formatTooltip(d,!0,null)),y=v.frag;if(y){var m=Zg([f],n).get("valueFormatter");p.blocks.push(m?l({valueFormatter:m},y):y)}v.text&&h.push(v.text),s.push(g)}})}})}),u.blocks.reverse(),h.reverse();var p=e.position,f=o.get("order"),g=hu(u,c,a,f,i.get("useUTC"),o.get("textStyle"));g&&h.unshift(g);var v="richText"===a?"\n\n":"<br/>",y=h.join(v);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,p,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,y,s,Math.random()+"",r[0],r[1],p,null,c)})},i.prototype._showSeriesItemTooltip=function(t,e,i){var n=this._ecModel,r=bx(e),o=r.seriesIndex,a=n.getSeriesByIndex(o),s=r.dataModel||a,u=r.dataIndex,h=r.dataType,c=s.getData(h),p=this._renderMode,f=t.positionDefault,d=Zg([c.getItemModel(u),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),g=d.get("trigger");if(null==g||"item"===g){var v=s.getDataParams(u,h),y=new QS;v.marker=y.makeTooltipMarker("item",Ds(v.color),p);var m=zl(s.formatTooltip(u,!1,h)),_=d.get("order"),x=d.get("valueFormatter"),w=m.frag,b=w?hu(x?l({valueFormatter:x},w):w,y,p,_,n.get("useUTC"),d.get("textStyle")):m.text,S="item_"+s.name+"_"+u;this._showOrMove(d,function(){this._showTooltipContent(d,b,v,S,t.offsetX,t.offsetY,t.position,t.target,y)}),i({type:"showTip",dataIndexInside:u,dataIndex:c.getRawIndex(u),seriesIndex:o,from:this.uid})}},i.prototype._showComponentItemTooltip=function(t,e,i){var n=bx(e),r=n.tooltipConfig,a=r.option||{};if(T(a)){var s=a;a={content:s,formatter:s}}var l=[a],u=this._ecModel.getComponent(n.componentMainType,n.componentIndex);u&&l.push(u),l.push({formatter:a.content});var h=t.positionDefault,c=Zg(l,this._tooltipModel,h?{position:h}:null),p=c.get("content"),f=Math.random()+"",d=new QS;this._showOrMove(c,function(){var i=o(c.get("formatterParams")||{});this._showTooltipContent(c,p,i,f,t.offsetX,t.offsetY,t.position,e,d)}),i({type:"showTip",from:this.uid})},i.prototype._showTooltipContent=function(t,e,i,n,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var h=t.get("formatter");a=a||t.get("position");var c=e,p=this._getNearestPoint([r,o],i,t.get("trigger"),t.get("borderColor")),f=p.color;if(h)if(T(h)){var d=t.ecModel.get("useUTC"),g=b(i)?i[0]:i,v=g&&g.axisType&&g.axisType.indexOf("time")>=0;c=h,v&&(c=rs(g.axisValue,c,d)),c=Cs(c,i,!0)}else if(S(h)){var y=Yv(function(e,n){e===this._ticket&&(u.setContent(n,l,t,f,a),this._updatePosition(t,a,r,o,u,i,s))},this);this._ticket=n,c=h(i,n,y)}else c=h;u.setContent(c,l,t,f,a),u.show(t,f),this._updatePosition(t,a,r,o,u,i,s)}},i.prototype._getNearestPoint=function(t,e,i,n){return"axis"===i||b(e)?{color:n||("html"===this._renderMode?"#fff":"none")}:b(e)?void 0:{color:n||e.color||e.borderColor}},i.prototype._updatePosition=function(t,e,i,n,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),h=t.get("align"),c=t.get("verticalAlign"),p=a&&a.getBoundingRect().clone();if(a&&p.applyTransform(a.transform),S(e)&&(e=e([i,n],o,r.el,p,{viewSize:[s,l],contentSize:u.slice()})),b(e))i=Yi(e[0],s),n=Yi(e[1],l);else if(I(e)){var f=e;f.width=u[0],f.height=u[1];var d=Os(f,{width:s,height:l});i=d.x,n=d.y,h=null,c=null}else if(T(e)&&a){var g=Jg(e,p,u,t.get("borderWidth"));i=g[0],n=g[1]}else{var g=Qg(i,n,r,s,l,h?null:20,c?null:20);i=g[0],n=g[1]}if(h&&(i-=tv(h)?u[0]/2:"right"===h?u[0]:0),c&&(n-=tv(c)?u[1]/2:"bottom"===c?u[1]:0),Rg(t)){var g=$g(i,n,r,s,l);i=g[0],n=g[1]}r.moveTo(i,n)},i.prototype._updateContentNotChangedOnAxis=function(t,e){var i=this._lastDataByCoordSys,n=this._cbParamsList,r=!!i&&i.length===t.length;return r&&d(i,function(i,o){var a=i.dataByAxis||[],s=t[o]||{},l=s.dataByAxis||[];(r=r&&a.length===l.length)&&d(a,function(t,i){var o=l[i]||{},a=t.seriesDataIndices||[],s=o.seriesDataIndices||[];r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===s.length,r&&d(a,function(t,e){var i=s[e];r=r&&t.seriesIndex===i.seriesIndex&&t.dataIndex===i.dataIndex}),n&&d(t.seriesDataIndices,function(t){var i=t.seriesIndex,o=e[i],a=n[i];o&&a&&a.data!==o.data&&(r=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},i.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},i.prototype.dispose=function(t,e){!xv.node&&e.getDom()&&(Nu(this,"_updatePosition"),this._tooltipContent.dispose(),wg("itemTooltip",e))},i.type="tooltip",i}(tT);Rp(iv);var zk=Dn(),Fk=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e.createdBySelf=!1,e}return e(i,t),i.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i),this._mergeOption(t,i,!1,!0)},i.prototype.isAnimationEnabled=function(){if(xv.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},i.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},i.prototype._mergeOption=function(t,e,i,n){var r=this.mainType;i||e.eachSeries(function(t){var i=t.get(this.mainType,!0),o=zk(t)[r];return i&&i.data?(o?o._mergeOption(i,e,!0):(n&&rv(i),d(i.data,function(t){t instanceof Array?(rv(t[0]),rv(t[1])):rv(t)}),o=this.createMarkerModelFromSeries(i,this,e),l(o,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),o.__hostSeries=t),void(zk(t)[r]=o)):void(zk(t)[r]=null)},this)},i.prototype.formatTooltip=function(t){var e=this.getData(),i=this.getRawValue(t),n=e.getName(t);return ru("section",{header:this.name,blocks:[ru("nameValue",{name:n,value:i,noName:!n,noValue:null==i})]})},i.prototype.getData=function(){return this._data},i.prototype.setData=function(t){this._data=t},i.getMarkerModelFromSeries=function(t,e){return zk(t)[e]},i.type="marker",i.dependencies=["series","grid","polar","geo"],i}(zb);p(Fk,LS.prototype);var Yk=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e}return e(i,t),i.prototype.createMarkerModelFromSeries=function(t,e,n){return new i(t,e,n)},i.type="markPoint",i.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},i}(Fk),Hk={min:w(sv,"min"),max:w(sv,"max"),average:w(sv,"average"),median:w(sv,"median")},Vk=Dn(),Wk=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e}return e(i,t),i.prototype.init=function(){this.markerGroupMap=U()},i.prototype.render=function(t,e,i){var n=this,r=this.markerGroupMap;r.each(function(t){Vk(t).keep=!1}),e.eachSeries(function(t){var r=Fk.getMarkerModelFromSeries(t,n.type);r&&n.renderSeries(t,r,e,i)}),r.each(function(t){!Vk(t).keep&&n.group.remove(t.group)})},i.prototype.markKeep=function(t){Vk(t).keep=!0},i.prototype.toggleBlurSeries=function(t,e){var i=this;d(t,function(t){var n=Fk.getMarkerModelFromSeries(t,i.type);if(n){n.getData().eachItemGraphicEl(function(t){t&&(e?po(t):fo(t))})}})},i.type="marker",i}(tT),Xk=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e}return e(i,t),i.prototype.updateTransform=function(t,e,i){e.eachSeries(function(t){var e=Fk.getMarkerModelFromSeries(t,"markPoint");e&&(dv(e.getData(),t,i),this.markerGroupMap.get(t.id).updateLayout())},this)},i.prototype.renderSeries=function(t,e,i,n){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new OI),u=gv(r,t,e);e.setData(u),dv(e.getData(),t,n),u.each(function(t){var i=u.getItemModel(t),n=i.getShallow("symbol"),r=i.getShallow("symbolSize"),o=i.getShallow("symbolRotate"),s=i.getShallow("symbolOffset"),l=i.getShallow("symbolKeepAspect");if(S(n)||S(r)||S(o)||S(s)){var h=e.getRawValue(t),c=e.getDataParams(t);S(n)&&(n=n(h,c)),S(r)&&(r=r(h,c)),S(o)&&(o=o(h,c)),S(s)&&(s=s(h,c))}var p=i.getModel("itemStyle").getItemStyle(),f=$u(a,"color");p.fill||(p.fill=f),u.setItemVisual(t,{symbol:n,symbolSize:r,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:p})}),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl(function(t){t.traverse(function(t){bx(t).dataModel=e})}),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},i.type="markPoint",i}(Wk);Rp(vv),t.version="5.4.1",t.dependencies=iM,t.PRIORITY=aM,t.init=qh,t.connect=Zh,t.disConnect=Kh,t.disconnect=GM,t.dispose=Qh,t.getInstanceByDom=$h,t.getInstanceById=Jh,t.registerTheme=tc,t.registerPreprocessor=ec,t.registerProcessor=ic,t.registerPostInit=nc,t.registerPostUpdate=rc,t.registerUpdateLifecycle=oc,t.registerAction=ac,t.registerCoordinateSystem=sc,t.getCoordinateSystemDimensions=lc,t.registerLayout=uc,t.registerVisual=hc,t.registerLoading=pc,t.setCanvasCreator=fc,t.registerMap=dc,t.getMap=gc,t.registerTransform=ZM,t.dataTool=nC,t.registerLocale=Ka,t.zrender=jm,t.matrix=py,t.vector=Qv,t.zrUtil=jv,t.color=nm,t.helper=XC,t.number=JC,t.time=tI,t.graphic=eI,t.format=iI,t.util=nI,t.List=gC,t.ComponentModel=zb,t.ComponentView=tT,t.SeriesModel=JS,t.ChartView=nT,t.extendComponentModel=lf,t.extendComponentView=uf,t.extendSeriesModel=hf,t.extendChartView=cf,t.throttle=Ru,t.use=Rp,t.setPlatformAPI=i,t.parseGeoJSON=Xp,t.parseGeoJson=Xp,t.env=xv,t.Model=cb,t.Axis=aI,t.innerDrawElementOnCanvas=Lh})}).call(e,i(277).Buffer)},14:function(t,e,i){var n=i(50),r=i(33);t.exports=Object.keys||function(t){return n(t,r)}},15:function(t,e,i){"use strict";function n(t,e){return function(i,n){var a=this,s=Object(r.a)(i),l=Object(o.a)(e,t,s,n),u=l.$parent,h=l.remove,c=l.show,p=l.hide;return l.remove=function(){l.$removed=!0,h&&h.call(this),u.destroy()},l.show=function(){return c&&c.call.apply(c,[this].concat(Array.prototype.slice.call(arguments))),this},l.hide=function(){return p&&p.call.apply(p,[this].concat(Array.prototype.slice.call(arguments))),this},a&&a._isVue&&a.$once("hook:beforeDestroy",function(){l.$removed||l.remove()}),l}}e.a=n;var r=i(98),o=i(100)},152:function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i(5),r=function(){var t=!0;if(n.F.isIOS){var e=Object(n.k)(navigator.userAgent.toLowerCase());if(!e)return t;Number(""+e.major+e.minor)>=133&&(t=!1)}return t}()},1520:function(t,e,i){"use strict";var n=i(73),r=i.n(n),o=i(134),a=i.n(o),s=i(5),l=i(2042),u=i(2049),h=i(2055),c=i(1165);e.a={name:"ActGoldFinanceChart",data:function(){return{costTableVisible:!1,isShowChart:!0,renderData:{},agePickerData:[],selectIndex:10}},components:{benefit:u.a,GoldCostTable:h.a,goldPicker:c.default},props:{tables:{default:function(){return{}},type:Object},brandColor:{default:"#8c7fee",type:String},btnColor:{default:"#8c7fee",type:String},chartConfig:{default:function(){return[]},type:Array},isOutSideTable:{default:!1,type:Boolean},unit:{default:"周岁",type:String},note:{default:"",type:String},selectDefaultVal:{default:10,type:Number},benefitBtnShow:{type:Boolean,default:!0},tip:{default:"",type:String},percentageTypes:{type:Array,default:function(){return[]}}},computed:{realTheme:function(){var t={brandColor:window.g_agentShowCfg&&window.g_agentShowCfg.brandcolor||"#8c7fee",btnColor:window.g_agentShowCfg&&window.g_agentShowCfg.btncolor||"#8c7fee"};return this.brandColor&&(t.brandColor=this.brandColor,t.btnColor=this.brandColor),t},isCps:function(){return"#8c7fee"!==this.brandColor}},methods:{showAgePicker:function(t){var e=this;this.agePickerData=t.agePickerData,this.$nextTick(function(){e.$refs.goldPicker.show()})},setSelectIndex:function(t){this.selectIndex=t},showCostTable:function(){this.isOutSideTable?this.$emit("showOutSideTable"):this.costTableVisible=!0},validateData:function(){if(!(this.tables&&this.tables.colsType&&this.chartConfig&&Object(s.o)(this.chartConfig)))return!1;for(var t=0,e=0,i=0,n=0;n<this.chartConfig.length;n++){var r=this.chartConfig[n];if(!r.colsType)return!1;(this.tables.colsType.includes(r.colsType)||this.tables.colsType.includes(r.colsType+""))&&(1==~~r.showType&&(t+=1),2==~~r.showType&&(e+=1),3==~~r.showType&&(i+=1))}return 1===t&&e>=1&&1===i},findTablesIndex:function(t,e){if(Object(s.o)(e))for(var i=0;i<e.length;i++)if(Number(e[i])===Number(t))return i},analysisExpression:function(t){if(!/([1-9]+)([+*/-])([1-9]+)/g.test(t))return{};var e=void 0,i=void 0,n=void 0;return t.replace(/([1-9]+)([+*/-])([1-9]+)/g,function(t,r,o,a){e=r,i=a,n=o}),{firstParamColsType:e,secondParamColsType:i,operator:n}},getExpressionData:function(t,e,i){var n=this.analysisExpression(t),r=n.firstParamColsType,o=n.secondParamColsType,a=n.operator;if(void 0!==r&&void 0!==o&&["+","-","/","*"].includes(a)){var s=void 0,l=void 0,u=[];if(i.colsType.forEach(function(t,e){Number(t)===Number(r)&&(s=e),Number(t)===Number(o)&&(l=e)}),void 0!==s&&void 0!==l)return i.rows.forEach(function(t,e){var i=void 0;switch(a){case"+":i=t[s]+t[l];break;case"-":i=t[s]-t[l];break;case"/":i=t[s]/t[l];break;case"*":i=t[s]*t[l]}u.push(Number(i).toFixed(1))}),u}},initConfig:function(t,e){var i=this;if(t&&e){for(var n=[],r=[],o=[],u=this.isCps?Object(s.c)(l.b):Object(s.c)(l.a),h=Object(s.c)(u.showType2),c=Object(s.c)(u.showType3),p=t,f=Array.isArray(p),d=0,p=f?p:a()(p);;){var g;if(f){if(d>=p.length)break;g=p[d++]}else{if(d=p.next(),d.done)break;g=d.value}var v=g;(function(r){var a=void 0,p=r.colsType,f=i.findTablesIndex(p,e.colsType);if(!f)return"continue";var d=Number(r.showType),g=r.name||l.c[p],v=r.titleName||r.name||l.c[p],y=i.getExpressionData(r.tipsExpression,t,e),m=r.lineStyle,_=r.boxConfig;if(!(2!==d||m&&_)){h.length||(h=Object(s.c)(u.showType2));var x=h.shift();m=x.lineStyle,_=x.boxConfig}if(3===d&&!m){c.length||(c=Object(s.c)(u.showType3));m=c.shift().lineStyle}o.push(g);var w=[],b=r.multcolType||0;if(31===b){var S=r.multValues||[],T=i.findTablesIndex(b,e.colsType);T&&S.length&&(w=S.map(function(t){var i=e.rows.findIndex(function(e){return t===Math.floor(e[T])});return-1===i?{coord:[],value:0}:{coord:[i,e.rows[i][f]],value:t}}))}a={showType:d,colsType:p,name:g,titleName:v,problemText:r.problemText,tableRowIndex:f,lineStyle:m,boxConfig:_,tipsText:r.tipsText,markPoint:w},y&&(a.expressionData=y),n.push(a)})(v)}var y=e.rows.map(function(t){for(var e=[],i=n,o=Array.isArray(i),s=0,i=o?i:a()(i);;){var l;if(o){if(s>=i.length)break;l=i[s++]}else{if(s=i.next(),s.done)break;l=s.value}var u=l;1===u.showType&&r.push(t[u.tableRowIndex]),e.push(t[u.tableRowIndex])}return e});return y.unshift(o),{chartConfig:n,dataSource:y,xAxisData:r}}}},watch:{tables:{handler:function(t){if(t&&r()(t).length&&this.chartConfig){var e=this.validateData();this.selectIndex=this.selectDefaultVal,e?(this.renderData=this.initConfig(this.chartConfig,t),this.isShowChart=!0):this.isShowChart=!1}},immediate:!0}}}},1521:function(t,e,i){"use strict";var n=i(73),r=i.n(n),o=i(2051),a=i(5);e.a={name:"Benefit",data:function(){return{chartConfig:[],dataSource:[],xAxisData:[],dialog:null,agePicker:null,numFontSizeFixDebounceFunc:Object(a.a)(this.numFontSizeFix,500),preNumFontSize:"2.8rem"}},components:{chart:o.a},props:{selectIndex:{type:Number,default:10},renderData:{type:Object,default:function(){return{}}},theme:{type:Object,default:function(){return{}}},isCps:{type:Boolean,default:!1},benefitBtnShow:{type:Boolean,default:!0},unit:{default:"周岁",type:String},note:{default:"",type:String},tip:{default:"",type:String},percentageTypes:{type:Array,default:function(){return[]}}},computed:{agePickerData:function(){for(var t=[],e=0;e<this.xAxisData.length;e++)t.push({text:this.xAxisData[e],value:this.xAxisData[e]});return t},showType2Length:function(){for(var t=0,e=0;e<this.chartConfig.length;e++)2==~~this.chartConfig[e].showType&&(t+=1);return t},pureDataSource:function(){return this.dataSource.slice(1)}},methods:{getNum:function(t,e,i){var n=Math.round(100*this.pureDataSource[t][e])/100;return this.percentageTypes.includes(Number(i.colsType))&&(n+="%"),n},showCostTable:function(){this.$emit("showCostTable")},setSelectIndex:function(t){this.$emit("update:selectIndex",t)},showAgePicker:function(){this.$emit("showAgePicker",{agePickerData:this.agePickerData})},showProblemDialog:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments[1];this.dialog?this.dialog.setData(t,e):this.dialog=this.$createGoldDialog({title:t,content:e,showConfirmButton:!1,maskClosable:!0}),this.dialog.show()},numFontSizeFix:function(){for(var t=this.$refs.num?this.$refs.num.length:0,e=0;e<t;e++){var i=this.$refs.num[e],n=this.$refs.colorBlock[e];for(i.style.fontSize=this.preNumFontSize;;){if(!(parseInt(getComputedStyle(i).width)>parseInt(getComputedStyle(n).width)+30))break;var r=parseInt(getComputedStyle(i).fontSize);if(r<=12)break;i.style.fontSize=r-1+"px"}}}},watch:{renderData:{handler:function(t){if(t&&r()(t).length){var e=t.chartConfig,i=t.dataSource,n=t.xAxisData;this.chartConfig=e,this.dataSource=i,this.xAxisData=n,this.selectIndex>this.pureDataSource.length&&(this.selectIndex=10)}},immediate:!0},selectIndex:{handler:function(){this.numFontSizeFixDebounceFunc()}}}}},1522:function(t,e,i){"use strict";var n=i(73),r=i.n(n),o=i(134),a=i.n(o),s=i(106),l=i.n(s),u=i(5),h=i(1366);e.a={data:function(){return{chart:null}},props:{index:{type:Number,default:10},dataSource:{type:Array,default:function(){return[]}},chartConfig:{type:Array,default:function(){return[]}}},methods:{setIndex:function(t){this.$emit("setIndex",t)},remToPxBased10Px:function(t){var e=window.document.documentElement||document.getElementsByTagName("html")[0],i=parseFloat(getComputedStyle(e,null).fontSize);if(i>12)return t*i;var n=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,r=n/375*10;return n?t*r:10*t},getXAxisName:function(){for(var t=0;t<this.chartConfig.length;t++)if(1===this.chartConfig[t].showType)return this.chartConfig[t].name;return""},getTooltipName:function(){for(var t=0;t<this.chartConfig.length;t++)if(3===this.chartConfig[t].showType)return this.chartConfig[t].name;return""},setEcharts:function(){for(var t=this,e=[],i=[],n=this.getXAxisName(),r=this.getTooltipName(),o=0;o<this.chartConfig.length;o++){var s=this.chartConfig[o];if([2,3].includes(s.showType)){var c={};Object(u.o)(s.lineStyle.areaStyleColor)?c.color=new h.graphic.LinearGradient(0,0,0,1,s.lineStyle.areaStyleColor):Object(u.z)(s.lineStyle.areaStyleColor)&&(c.color=s.lineStyle.areaStyleColor),e.push({name:s.name,type:"line",smooth:!0,symbol:s.lineStyle.legendImg?"image://"+s.lineStyle.legendImg:"circle",showSymbol:!1,symbolSize:this.remToPxBased10Px(1.4),silent:!0,encode:{x:n,y:s.name},lineStyle:{width:1,color:s.lineStyle.lineColor},emphasis:{lineStyle:{color:s.lineStyle.lineColor}},zlevel:s.lineStyle.zIndex,z:s.lineStyle.zIndex,areaStyle:c.color?c:void 0,markPoint:{symbol:"circle",showSymbol:!0,symbolSize:[this.remToPxBased10Px(.8),this.remToPxBased10Px(.8)],symbolOffset:["-10%","-10%"],silent:!0,data:s.markPoint.map(function(e){return l()({itemStyle:{color:"#ffab11",borderWidth:t.remToPxBased10Px(.21),borderType:"solid",borderColor:"#FFEAC3"},label:{show:!0,position:"top",formatter:"{c}倍",backgroundColor:"#FFAB11",color:"#fff",borderRadius:t.remToPxBased10Px(.21),fontSize:t.remToPxBased10Px(1),width:t.remToPxBased10Px(2.8),height:t.remToPxBased10Px(1.5),borderWidth:t.remToPxBased10Px(.11),borderType:"solid",borderColor:"#FFEAC3",lineHeight:t.remToPxBased10Px(1.5)}},e)})}}),i.push({name:s.name,icon:s.lineStyle.legendImg?"image://"+s.lineStyle.legendImg:"circle"})}}var p={dataset:{source:this.dataSource},grid:{containLabel:!1,borderColor:"red",top:"5%",right:"10%",left:"10%"},legend:{textStyle:{fontSize:this.remToPxBased10Px(1.2),opacity:1,fontWeight:400,fontFamily:"SourceHanSansSC, SourceHanSansSC-Regular",color:"#999",lineHeight:this.remToPxBased10Px(1.8)},selectedMode:!1,itemWidth:this.remToPxBased10Px(1.4),itemHeight:this.remToPxBased10Px(1.4),data:i,bottom:0},tooltip:{trigger:"axis",triggerOn:"none",backgroundColor:"rgba(255,255,255,0.8)",textStyle:{fontSize:this.remToPxBased10Px(1.2),fontFamily:"SourceHanSansSC, SourceHanSansSC-Regular",fontWeight:400,lineHeight:16,color:"#333"},extraCssText:"box-shadow: 0rem 0.2rem 1.4rem 0rem rgba(211,217,240,0.80);z-index: 2;",showContent:!0,padding:[7,10,6,10],position:function(t,e,i,n,r){return t[0]>r.viewSize[0]/2?{left:20,top:"30%"}:{right:20,top:"30%"}},axisPointer:{lineStyle:{type:"solid",color:"#EEE"},z:0},formatter:function(t){for(var e=t,i=Array.isArray(e),n=0,e=i?e:a()(e);;){var o;if(i){if(n>=e.length)break;o=e[n++]}else{if(n=e.next(),n.done)break;o=n.value}var s=o;if(s.seriesName===r){var l=s.encode.y[0],u=s.value[l];return r+"<br>"+u+"元"}}}},axixPointer:{triggerOn:"none"},xAxis:{type:"category",axisTick:{inside:!0,length:2,lineStyle:{color:"#EEE"}},axisLine:{lineStyle:{color:"#F5F5F5"}},axisLabel:{textStyle:{color:"#E2E5E7"},fontSize:this.remToPxBased10Px(1.2)},nameTextStyle:{color:"red"}},yAxis:{show:!0,axisLine:{show:!1},axisLabel:{show:!1},splitLine:{show:!0,lineStyle:{color:"#f5f5f5",width:.5}}},series:e};this.chart.setOption(p),this.chart.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:this.index-1}),this.chart.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:this.index})}},mounted:function(){var t=this;this.chart=h.init(this.$refs.chart,null,{renderer:"svg"}),this.setEcharts(),this.chart.getZr().on("mousemove",function(e){var i=[e.offsetX,e.offsetY],n=t.chart.convertFromPixel("grid",i);t.chart.containPixel("grid",i)&&t.index!==Math.round(n[0])&&t.setIndex(Math.round(n[0]))})},watch:{dataSource:{handler:function(t){var e=this;r()(t).length&&this.$nextTick(function(){e.setEcharts()})},immediate:!0},index:{handler:function(t){this.chart.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:t})}}}}},1523:function(t,e,i){"use strict";var n=i(119);e.a={name:"ActGoldCostTable",data:function(){return{scroller:null}},props:{visible:{type:Boolean,default:!1},tables:{type:Object,default:function(){return{}}},theme:{type:Object,default:function(){return{}}}},computed:{title:function(){return this.tables.title||"现金价值表"},styleOption:function(){return this.theme&&this.theme.brandColor?{backgroundColor:this.theme.brandColor}:{}}},methods:{showCol:function(t){var e=this.tables.display||[];return void 0!==e[t]&&1==~~e[t]},cancel:function(){this.$emit("cancelCost")},preventMove:function(t){t._prevent=!0}},watch:{visible:function(t){var e=this;if(t){var i=document.querySelector(".cost-scroll");i&&this.$nextTick(function(){e.scroller?e.scroller.refresh():e.scroller=new n.default(i,{})})}}}}},154:function(t,e,i){"use strict";function n(){return window.performance&&window.performance.now?window.performance.now()+window.performance.timing.navigationStart:+new Date}function r(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];for(var r=0;r<i.length;r++){var o=i[r];for(var a in o)t[a]=o[a]}return t}function o(t){return void 0===t||null===t}function a(t,e){return Math.sqrt(t*t+e*e)}function s(t){return!1!==B&&("standard"===B?"transitionEnd"===t?"transitionend":t:B+t.charAt(0).toUpperCase()+t.substr(1))}function l(t,e,i,n){t.addEventListener(e,i,{passive:!1,capture:!!n})}function u(t,e,i,n){t.removeEventListener(e,i,{passive:!1,capture:!!n})}function h(t){for(var e=0,i=0;t;)e-=t.offsetLeft,i-=t.offsetTop,t=t.offsetParent;return{left:e,top:i}}function c(t){var e=t.getBoundingClientRect();return{left:-(e.left+window.pageXOffset),top:-(e.top+window.pageYOffset)}}function p(t){if(t instanceof window.SVGElement){var e=t.getBoundingClientRect();return{top:e.top,left:e.left,width:e.width,height:e.height}}return{top:t.offsetTop,left:t.offsetLeft,width:t.offsetWidth,height:t.offsetHeight}}function f(t,e){for(var i in e)if(e[i].test(t[i]))return!0;return!1}function d(t,e){var i=document.createEvent("Event");i.initEvent(e,!0,!0),i.pageX=t.pageX,i.pageY=t.pageY,t.target.dispatchEvent(i)}function g(t){function e(){a=document.createEvent("Event"),a.initEvent(i,s,l),r(a,o)}var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"click",n=void 0;"mouseup"===t.type||"mousecancel"===t.type?n=t:"touchend"!==t.type&&"touchcancel"!==t.type||(n=t.changedTouches[0]);var o={};n&&(o.screenX=n.screenX||0,o.screenY=n.screenY||0,o.clientX=n.clientX||0,o.clientY=n.clientY||0);var a=void 0,s=!0,l=!0;if("undefined"!=typeof MouseEvent)try{a=new MouseEvent(i,r({bubbles:s,cancelable:l},o))}catch(t){e()}else e();a.forwardedTouchEvent=!0,a._constructed=!0,t.target.dispatchEvent(a)}function v(t){g(t,"dblclick")}function y(t,e){e.firstChild?m(t,e.firstChild):e.appendChild(t)}function m(t,e){e.parentNode.insertBefore(t,e)}function _(t,e){t.removeChild(e)}function x(t,e,i,n,r,o,a){var s=t-e,l=Math.abs(s)/i,u=a.deceleration,h=a.itemHeight,c=a.swipeBounceTime,p=a.wheel,f=a.swipeTime,d=f,g=p?4:15,v=t+l/u*(s<0?-1:1);return p&&h&&(v=Math.round(v/h)*h),v<n?(v=o?Math.max(n-o/4,n-o/g*l):n,d=c):v>r&&(v=o?Math.min(r+o/4,r+o/g*l):r,d=c),{destination:Math.round(v),duration:d}}function w(){}function b(t){console.error("[BScroll warn]: "+t)}function S(t,e){if(!t)throw new Error("[BScroll] "+e)}function T(t){var e=document.createElement("div"),i=document.createElement("div");return e.style.cssText="position:absolute;z-index:9999;pointerEvents:none",i.style.cssText="box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px;",i.className="bscroll-indicator","horizontal"===t?(e.style.cssText+=";height:7px;left:2px;right:2px;bottom:0",i.style.height="100%",e.className="bscroll-horizontal-scrollbar"):(e.style.cssText+=";width:7px;bottom:2px;top:2px;right:1px",i.style.width="100%",e.className="bscroll-vertical-scrollbar"),e.style.cssText+=";overflow:hidden",e.appendChild(i),e}function M(t,e){this.wrapper=e.el,this.wrapperStyle=this.wrapper.style,this.indicator=this.wrapper.children[0],this.indicatorStyle=this.indicator.style,this.scroller=t,this.direction=e.direction,e.fade?(this.visible=0,this.wrapperStyle.opacity="0"):this.visible=1,this.sizeRatioX=1,this.sizeRatioY=1,this.maxPosX=0,this.maxPosY=0,this.x=0,this.y=0,e.interactive&&this._addDOMEvents()}function C(t){if(t&&t.classList)return t.classList.contains("tombstone")}function I(t,e){var i=this;this.options=e,S("function"==typeof this.options.createTombstone,"Infinite scroll need createTombstone Function to create tombstone"),S("function"==typeof this.options.fetch,"Infinite scroll need fetch Function to fetch new data."),S("function"==typeof this.options.render,"Infinite scroll need render Function to render each item."),this.firstAttachedItem=0,this.lastAttachedItem=0,this.anchorScrollTop=0,this.anchorItem={index:0,offset:0},this.tombstoneHeight=0,this.tombstoneWidth=0,this.tombstones=[],this.items=[],this.loadedItems=0,this.requestInProgress=!1,this.hasMore=!0,this.scroller=t,this.wrapperEl=this.scroller.wrapper,this.scrollerEl=this.scroller.scroller,this.scroller.on("scroll",function(){i.onScroll()}),this.scroller.on("resize",function(){i.onResize()}),this.onResize()}function k(t,e){this.wrapper="string"==typeof t?document.querySelector(t):t,this.wrapper||b("Can not resolve the wrapper DOM."),this.scroller=this.wrapper.children[0],this.scroller||b("The wrapper need at least one child element to be scroller."),this.scrollerStyle=this.scroller.style,this._init(t,e)}var A=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(t){r=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),D=function(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)},P="undefined"!=typeof window,O=P&&navigator.userAgent.toLowerCase(),L=O&&/wechatdevtools/.test(O),E=O&&O.indexOf("android")>0,R=P&&document.createElement("div").style,B=function(){if(!P)return!1;var t={webkit:"webkitTransform",Moz:"MozTransform",O:"OTransform",ms:"msTransform",standard:"transform"};for(var e in t)if(void 0!==R[t[e]])return e;return!1}(),N=s("transform"),z=P&&s("perspective")in R,F=P&&("ontouchstart"in window||L),Y=!1!==N,H=P&&s("transition")in R,V={transform:N,transitionTimingFunction:s("transitionTimingFunction"),transitionDuration:s("transitionDuration"),transitionDelay:s("transitionDelay"),transformOrigin:s("transformOrigin"),transitionEnd:s("transitionEnd")},W=1,X={touchstart:W,touchmove:W,touchend:W,mousedown:2,mousemove:2,mouseup:2},U={startX:0,startY:0,scrollX:!1,scrollY:!0,freeScroll:!1,directionLockThreshold:5,eventPassthrough:"",click:!1,tap:!1,bounce:!0,bounceTime:800,momentum:!0,momentumLimitTime:300,momentumLimitDistance:15,swipeTime:2500,swipeBounceTime:500,deceleration:.0015,flickLimitTime:200,flickLimitDistance:100,resizePolling:60,probeType:0,preventDefault:!0,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT)$/},HWCompositing:!0,useTransition:!0,useTransform:!0,bindToWrapper:!1,disableMouse:F,disableTouch:!F,observeDOM:!0,autoBlur:!0,wheel:!1,snap:!1,scrollbar:!1,pullDownRefresh:!1,pullUpLoad:!1,mouseWheel:!1,stopPropagation:!1,zoom:!1,infinity:!1,dblclick:!1},j={swipe:{style:"cubic-bezier(0.23, 1, 0.32, 1)",fn:function(t){return 1+--t*t*t*t*t}},swipeBounce:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(t){return t*(2-t)}},bounce:{style:"cubic-bezier(0.165, 0.84, 0.44, 1)",fn:function(t){return 1- --t*t*t*t}}},G=function(){return P?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||function(t){return window.setTimeout(t,(t.interval||100/60)/2)}:w}(),q=function(){return P?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||function(t){window.clearTimeout(t)}:w}(),Z=1,K=-1,Q=1,$=-1,J=1,tt=3;M.prototype.handleEvent=function(t){switch(t.type){case"touchstart":case"mousedown":this._start(t);break;case"touchmove":case"mousemove":this._move(t);break;case"touchend":case"mouseup":case"touchcancel":case"mousecancel":this._end(t)}},M.prototype.refresh=function(){this._shouldShow()&&(this.transitionTime(),this._calculate(),this.updatePosition())},M.prototype.fade=function(t,e){var i=this;if(!e||this.visible){var n=t?250:500;t=t?"1":"0",this.wrapperStyle[V.transitionDuration]=n+"ms",clearTimeout(this.fadeTimeout),this.fadeTimeout=setTimeout(function(){i.wrapperStyle.opacity=t,i.visible=+t},0)}},M.prototype.updatePosition=function(){if("vertical"===this.direction){var t=Math.round(this.sizeRatioY*this.scroller.y);if(t<0){this.transitionTime(500);var e=Math.max(this.indicatorHeight+3*t,8);this.indicatorStyle.height=e+"px",t=0}else if(t>this.maxPosY){this.transitionTime(500);var i=Math.max(this.indicatorHeight-3*(t-this.maxPosY),8);this.indicatorStyle.height=i+"px",t=this.maxPosY+this.indicatorHeight-i}else this.indicatorStyle.height=this.indicatorHeight+"px";this.y=t,this.scroller.options.useTransform?this.indicatorStyle[V.transform]="translateY("+t+"px)"+this.scroller.translateZ:this.indicatorStyle.top=t+"px"}else{var n=Math.round(this.sizeRatioX*this.scroller.x);if(n<0){this.transitionTime(500);var r=Math.max(this.indicatorWidth+3*n,8);this.indicatorStyle.width=r+"px",n=0}else if(n>this.maxPosX){this.transitionTime(500);var o=Math.max(this.indicatorWidth-3*(n-this.maxPosX),8);this.indicatorStyle.width=o+"px",n=this.maxPosX+this.indicatorWidth-o}else this.indicatorStyle.width=this.indicatorWidth+"px";this.x=n,this.scroller.options.useTransform?this.indicatorStyle[V.transform]="translateX("+n+"px)"+this.scroller.translateZ:this.indicatorStyle.left=n+"px"}},M.prototype.transitionTime=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.indicatorStyle[V.transitionDuration]=t+"ms"},M.prototype.transitionTimingFunction=function(t){this.indicatorStyle[V.transitionTimingFunction]=t},M.prototype.destroy=function(){this._removeDOMEvents(),this.wrapper.parentNode.removeChild(this.wrapper)},M.prototype._start=function(t){var e=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.transitionTime(),this.initiated=!0,this.moved=!1,this.lastPointX=e.pageX,this.lastPointY=e.pageY,this.startTime=n(),this._handleMoveEvents(l),this.scroller.trigger("beforeScrollStart")},M.prototype._move=function(t){var e=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.moved||this.scroller.trigger("scrollStart"),this.moved=!0;var i=e.pageX-this.lastPointX;this.lastPointX=e.pageX;var n=e.pageY-this.lastPointY;this.lastPointY=e.pageY;var r=this.x+i,o=this.y+n;this._pos(r,o)},M.prototype._end=function(t){if(this.initiated){this.initiated=!1,t.preventDefault(),t.stopPropagation(),this._handleMoveEvents(u);var e=this.scroller.options.snap;if(e){var i=e.speed,n=e.easing,r=void 0===n?j.bounce:n,o=this.scroller._nearestSnap(this.scroller.x,this.scroller.y),a=i||Math.max(Math.max(Math.min(Math.abs(this.scroller.x-o.x),1e3),Math.min(Math.abs(this.scroller.y-o.y),1e3)),300);this.scroller.x===o.x&&this.scroller.y===o.y||(this.scroller.directionX=0,this.scroller.directionY=0,this.scroller.currentPage=o,this.scroller.scrollTo(o.x,o.y,a,r))}this.moved&&this.scroller.trigger("scrollEnd",{x:this.scroller.x,y:this.scroller.y})}},M.prototype._pos=function(t,e){t<0?t=0:t>this.maxPosX&&(t=this.maxPosX),e<0?e=0:e>this.maxPosY&&(e=this.maxPosY),t=Math.round(t/this.sizeRatioX),e=Math.round(e/this.sizeRatioY),this.scroller.scrollTo(t,e),this.scroller.trigger("scroll",{x:this.scroller.x,y:this.scroller.y})},M.prototype._shouldShow=function(){return"vertical"===this.direction&&this.scroller.hasVerticalScroll||"horizontal"===this.direction&&this.scroller.hasHorizontalScroll?(this.wrapper.style.display="",!0):(this.wrapper.style.display="none",!1)},M.prototype._calculate=function(){if("vertical"===this.direction){var t=this.wrapper.clientHeight;this.indicatorHeight=Math.max(Math.round(t*t/(this.scroller.scrollerHeight||t||1)),8),this.indicatorStyle.height=this.indicatorHeight+"px",this.maxPosY=t-this.indicatorHeight,this.sizeRatioY=this.maxPosY/this.scroller.maxScrollY}else{var e=this.wrapper.clientWidth;this.indicatorWidth=Math.max(Math.round(e*e/(this.scroller.scrollerWidth||e||1)),8),this.indicatorStyle.width=this.indicatorWidth+"px",this.maxPosX=e-this.indicatorWidth,this.sizeRatioX=this.maxPosX/this.scroller.maxScrollX}},M.prototype._addDOMEvents=function(){var t=l;this._handleDOMEvents(t)},M.prototype._removeDOMEvents=function(){var t=u;this._handleDOMEvents(t),this._handleMoveEvents(t)},M.prototype._handleMoveEvents=function(t){this.scroller.options.disableTouch||t(window,"touchmove",this),this.scroller.options.disableMouse||t(window,"mousemove",this)},M.prototype._handleDOMEvents=function(t){this.scroller.options.disableTouch||(t(this.indicator,"touchstart",this),t(window,"touchend",this)),this.scroller.options.disableMouse||(t(this.indicator,"mousedown",this),t(window,"mouseup",this))};var et=2e3;I.prototype.onScroll=function(){var t=-this.scroller.y,e=t-this.anchorScrollTop;this.anchorItem=0===t?{index:0,offset:0}:this._calculateAnchoredItem(this.anchorItem,e),this.anchorScrollTop=t;var i=this._calculateAnchoredItem(this.anchorItem,this.wrapperEl.offsetHeight),n=this.anchorItem.index,r=i.index;e<0?(n-=30,r+=10):(n-=10,r+=30),this.fill(n,r),this.maybeRequestContent()},I.prototype.onResize=function(){var t=this.options.createTombstone();t.style.position="absolute",this.scrollerEl.appendChild(t),t.style.display="",this.tombstoneHeight=t.offsetHeight,this.tombstoneWidth=t.offsetWidth,this.scrollerEl.removeChild(t);for(var e=0;e<this.items.length;e++)this.items[e].height=this.items[e].width=0;this.onScroll()},I.prototype.fill=function(t,e){this.firstAttachedItem=Math.max(0,t),this.hasMore||(e=Math.min(e,this.items.length)),this.lastAttachedItem=e,this.attachContent()},I.prototype.maybeRequestContent=function(){var t=this;if(!this.requestInProgress&&this.hasMore){var e=this.lastAttachedItem-this.loadedItems;e<=0||(this.requestInProgress=!0,this.options.fetch(e).then(function(e){if(t.requestInProgress=!1,e)t.addContent(e);else{t.hasMore=!1;var i=t._removeTombstones(),n=0;t.anchorItem.index<=t.items.length?(n=t._fixScrollPosition(),t._setupAnimations({},n),t.scroller.resetPosition(t.scroller.options.bounceTime)):(t.anchorItem.index-=i,n=t._fixScrollPosition(),t._setupAnimations({},n),t.scroller.stop(),t.scroller.resetPosition(),t.onScroll())}}))}},I.prototype.addContent=function(t){for(var e=0;e<t.length;e++)this.items.length<=this.loadedItems&&this._addItem(),this.items[this.loadedItems++].data=t[e];this.attachContent(),this.maybeRequestContent()},I.prototype.attachContent=function(){var t=this._collectUnusedNodes(),e=this._createDOMNodes(t);this._cleanupUnusedNodes(t),this._cacheNodeSize();var i=this._fixScrollPosition();this._setupAnimations(e,i)},I.prototype.resetMore=function(){this.hasMore=!0},I.prototype._removeTombstones=function(){for(var t=void 0,e=0,i=this.items.length,n=0;n<i;n++){var r=this.items[n].node,o=this.items[n].data;r&&!C(r)||o||(t||(t=n),r&&this.scrollerEl.removeChild(r))}return e=i-t,this.items.splice(t),this.lastAttachedItem=Math.min(this.lastAttachedItem,this.items.length),e},I.prototype._collectUnusedNodes=function(){for(var t=[],e=0;e<this.items.length;e++)if(e!==this.firstAttachedItem){var i=this.items[e].node;i&&(C(i)?(this.tombstones.push(i),this.tombstones[this.tombstones.length-1].style.display="none"):t.push(i)),this.items[e].node=null}else e=this.lastAttachedItem-1;return t},I.prototype._createDOMNodes=function(t){for(var e={},i=this.firstAttachedItem;i<this.lastAttachedItem;i++){for(;this.items.length<=i;)this._addItem();var n=this.items[i].node,r=this.items[i].data;if(n){if(!C(n)||!r)continue;n.style.zIndex=1,e[i]=[n,this.items[i].top-this.anchorScrollTop],this.items[i].node=null}var o=r?this.options.render(r,t.pop()):this._getTombStone();o.style.position="absolute",this.items[i].top=-1,this.scrollerEl.appendChild(o),this.items[i].node=o}return e},I.prototype._cleanupUnusedNodes=function(t){for(;t.length;)this.scrollerEl.removeChild(t.pop())},I.prototype._cacheNodeSize=function(){for(var t=this.firstAttachedItem;t<this.lastAttachedItem;t++)this.items[t].data&&!this.items[t].height&&(this.items[t].height=this.items[t].node.offsetHeight,this.items[t].width=this.items[t].node.offsetWidth)},I.prototype._fixScrollPosition=function(){this.anchorScrollTop=0;for(var t=0;t<this.anchorItem.index;t++)this.anchorScrollTop+=this.items[t].height||this.tombstoneHeight;this.anchorScrollTop+=this.anchorItem.offset;for(var e=this.anchorScrollTop-this.anchorItem.offset,i=this.anchorItem.index;i>this.firstAttachedItem;)e-=this.items[i-1].height||this.tombstoneHeight,i--;return e},I.prototype._setupAnimations=function(t,e){var i=this;for(var n in t){var r=t[n];this.items[n].node.style.transform="translateY("+(this.anchorScrollTop+r[1])+"px) scale("+this.tombstoneWidth/this.items[n].width+", "+this.tombstoneHeight/this.items[n].height+")",this.items[n].node.offsetTop,r[0].offsetTop,this.items[n].node.style.transition="transform 200ms"}for(var o=this.firstAttachedItem;o<this.lastAttachedItem;o++){var a=t[o];if(a){var s=a[0];s.style.transition="transform 200ms, opacity 200ms",s.style.transform="translateY("+e+"px) scale("+this.items[o].width/this.tombstoneWidth+", "+this.items[o].height/this.tombstoneHeight+")",s.style.opacity=0}e!==this.items[o].top&&(a||(this.items[o].node.style.transition=""),this.items[o].node.style.transform="translateY("+e+"px)"),this.items[o].top=e,e+=this.items[o].height||this.tombstoneHeight}this.scroller.maxScrollY=-(e-this.wrapperEl.offsetHeight+(this.hasMore?et:0)),setTimeout(function(){for(var e in t){var n=t[e];n[0].style.display="none",i.tombstones.push(n[0])}},200)},I.prototype._getTombStone=function(){var t=this.tombstones.pop();return t?(t.style.display="",t.style.opacity=1,t.style.transform="",t.style.transition="",t):this.options.createTombstone()},I.prototype._addItem=function(){this.items.push({data:null,node:null,height:0,width:0,top:0})},I.prototype._calculateAnchoredItem=function(t,e){if(0===e)return t;var i=t.index,n=0;if((e+=t.offset)<0){for(;e<0&&i>0&&this.items[i-1].height;)e+=this.items[i-1].height,i--;n=Math.max(-i,Math.ceil(Math.min(e,0)/this.tombstoneHeight))}else{for(;e>0&&i<this.items.length&&this.items[i].height&&this.items[i].height<e;)e-=this.items[i].height,i++;(i>=this.items.length||!this.items[i].height)&&(n=Math.floor(Math.max(e,0)/this.tombstoneHeight))}return i+=n,e-=n*this.tombstoneHeight,{index:i,offset:e}},function(t){t.prototype._init=function(t,e){this._handleOptions(e),this._events={},this.x=0,this.y=0,this.directionX=0,this.directionY=0,this.setScale(1),this._addDOMEvents(),this._initExtFeatures(),this._watchTransition(),this.options.observeDOM&&this._initDOMObserver(),this.options.autoBlur&&this._handleAutoBlur(),this.refresh(),this.options.snap||this.scrollTo(this.options.startX,this.options.startY),this.enable()},t.prototype.setScale=function(t){this.lastScale=o(this.scale)?t:this.scale,this.scale=t},t.prototype._handleOptions=function(t){this.options=r({},U,t),this.translateZ=this.options.HWCompositing&&z?" translateZ(0)":"",this.options.useTransition=this.options.useTransition&&H,this.options.useTransform=this.options.useTransform&&Y,this.options.preventDefault=!this.options.eventPassthrough&&this.options.preventDefault,this.options.scrollX="horizontal"!==this.options.eventPassthrough&&this.options.scrollX,this.options.scrollY="vertical"!==this.options.eventPassthrough&&this.options.scrollY,this.options.freeScroll=this.options.freeScroll&&!this.options.eventPassthrough,this.options.directionLockThreshold=this.options.eventPassthrough?0:this.options.directionLockThreshold,!0===this.options.tap&&(this.options.tap="tap")},t.prototype._addDOMEvents=function(){var t=l;this._handleDOMEvents(t)},t.prototype._removeDOMEvents=function(){var t=u;this._handleDOMEvents(t)},t.prototype._handleDOMEvents=function(t){var e=this.options.bindToWrapper?this.wrapper:window;t(window,"orientationchange",this),t(window,"resize",this),this.options.click&&t(this.wrapper,"click",this,!0),this.options.disableMouse||(t(this.wrapper,"mousedown",this),t(e,"mousemove",this),t(e,"mousecancel",this),t(e,"mouseup",this)),F&&!this.options.disableTouch&&(t(this.wrapper,"touchstart",this),t(e,"touchmove",this),t(e,"touchcancel",this),t(e,"touchend",this)),t(this.scroller,V.transitionEnd,this)},t.prototype._initExtFeatures=function(){this.options.snap&&this._initSnap(),this.options.scrollbar&&this._initScrollbar(),this.options.pullUpLoad&&this._initPullUp(),this.options.pullDownRefresh&&this._initPullDown(),this.options.wheel&&this._initWheel(),this.options.mouseWheel&&this._initMouseWheel(),this.options.zoom&&this._initZoom(),this.options.infinity&&this._initInfinite()},t.prototype._watchTransition=function(){if("function"==typeof Object.defineProperty){var t=this,e=!1,i=this.useTransition?"isInTransition":"isAnimating";Object.defineProperty(this,i,{get:function(){return e},set:function(i){e=i;for(var n=t.scroller.children.length?t.scroller.children:[t.scroller],r=e&&!t.pulling?"none":"auto",o=0;o<n.length;o++)n[o].style.pointerEvents=r}})}},t.prototype._handleAutoBlur=function(){this.on("scrollStart",function(){var t=document.activeElement;!t||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName||t.blur()})},t.prototype._initDOMObserver=function(){var t=this;if("undefined"!=typeof MutationObserver){var e=void 0,i=new MutationObserver(function(i){if(!t._shouldNotRefresh()){for(var n=!1,r=!1,o=0;o<i.length;o++){var a=i[o];if("attributes"!==a.type){n=!0;break}if(a.target!==t.scroller){r=!0;break}}n?t.refresh():r&&(clearTimeout(e),e=setTimeout(function(){t._shouldNotRefresh()||t.refresh()},60))}}),n={attributes:!0,childList:!0,subtree:!0};i.observe(this.scroller,n),this.on("destroy",function(){i.disconnect()})}else this._checkDOMUpdate()},t.prototype._shouldNotRefresh=function(){var t=this.x>this.minScrollX||this.x<this.maxScrollX||this.y>this.minScrollY||this.y<this.maxScrollY;return this.isInTransition||this.stopFromTransition||t},t.prototype._checkDOMUpdate=function(){function t(){if(!this.destroyed){i=p(this.scroller);var t=i.width,o=i.height;n===t&&r===o||this.refresh(),n=t,r=o,e.call(this)}}function e(){var e=this;setTimeout(function(){t.call(e)},1e3)}var i=p(this.scroller),n=i.width,r=i.height;e.call(this)},t.prototype.handleEvent=function(t){switch(t.type){case"touchstart":case"mousedown":this._start(t),this.options.zoom&&t.touches&&t.touches.length>1&&this._zoomStart(t);break;case"touchmove":case"mousemove":this.options.zoom&&t.touches&&t.touches.length>1?this._zoom(t):this._move(t);break;case"touchend":case"mouseup":case"touchcancel":case"mousecancel":this.scaled?this._zoomEnd(t):this._end(t);break;case"orientationchange":case"resize":this._resize();break;case"transitionend":case"webkitTransitionEnd":case"oTransitionEnd":case"MSTransitionEnd":this._transitionEnd(t);break;case"click":this.enabled&&!t._constructed&&(f(t.target,this.options.preventDefaultException)||(t.preventDefault(),t.stopPropagation()));break;case"wheel":case"DOMMouseScroll":case"mousewheel":this._onMouseWheel(t)}},t.prototype.refresh=function(){var t="static"===window.getComputedStyle(this.wrapper,null).position,e=p(this.wrapper);this.wrapperWidth=e.width,this.wrapperHeight=e.height;var i=p(this.scroller);this.scrollerWidth=Math.round(i.width*this.scale),this.scrollerHeight=Math.round(i.height*this.scale),this.relativeX=i.left,this.relativeY=i.top,t&&(this.relativeX-=e.left,this.relativeY-=e.top),this.minScrollX=0,this.minScrollY=0;var n=this.options.wheel;n?(this.items=this.scroller.children,this.options.itemHeight=this.itemHeight=this.items.length?this.scrollerHeight/this.items.length:0,void 0===this.selectedIndex&&(this.selectedIndex=n.selectedIndex||0),this.options.startY=-this.selectedIndex*this.itemHeight,this.maxScrollX=0,this.maxScrollY=-this.itemHeight*(this.items.length-1)):(this.maxScrollX=this.wrapperWidth-this.scrollerWidth,this.options.infinity||(this.maxScrollY=this.wrapperHeight-this.scrollerHeight),this.maxScrollX<0?(this.maxScrollX-=this.relativeX,this.minScrollX=-this.relativeX):this.scale>1&&(this.maxScrollX=this.maxScrollX/2-this.relativeX,this.minScrollX=this.maxScrollX),this.maxScrollY<0?(this.maxScrollY-=this.relativeY,this.minScrollY=-this.relativeY):this.scale>1&&(this.maxScrollY=this.maxScrollY/2-this.relativeY,this.minScrollY=this.maxScrollY)),this.hasHorizontalScroll=this.options.scrollX&&this.maxScrollX<this.minScrollX,this.hasVerticalScroll=this.options.scrollY&&this.maxScrollY<this.minScrollY,this.hasHorizontalScroll||(this.maxScrollX=this.minScrollX,this.scrollerWidth=this.wrapperWidth),this.hasVerticalScroll||(this.maxScrollY=this.minScrollY,this.scrollerHeight=this.wrapperHeight),this.endTime=0,this.directionX=0,this.directionY=0,this.wrapperOffset=h(this.wrapper),this.trigger("refresh"),!this.scaled&&this.resetPosition()},t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1}}(k),function(t){t.prototype._start=function(t){var e=X[t.type];if((e===W||0===t.button)&&!(!this.enabled||this.destroyed||this.initiated&&this.initiated!==e)){this.initiated=e,this.options.preventDefault&&!f(t.target,this.options.preventDefaultException)&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.moved=!1,this.distX=0,this.distY=0,this.directionX=0,this.directionY=0,this.movingDirectionX=0,this.movingDirectionY=0,this.directionLocked=0,this._transitionTime(),this.startTime=n(),this.options.wheel&&(this.target=t.target),this.stop();var i=t.touches?t.touches[0]:t;this.startX=this.x,this.startY=this.y,this.absStartX=this.x,this.absStartY=this.y,this.pointX=i.pageX,this.pointY=i.pageY,this.trigger("beforeScrollStart")}},t.prototype._move=function(t){if(this.enabled&&!this.destroyed&&X[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation();var e=t.touches?t.touches[0]:t,i=e.pageX-this.pointX,r=e.pageY-this.pointY;this.pointX=e.pageX,this.pointY=e.pageY,this.distX+=i,this.distY+=r;var o=Math.abs(this.distX),a=Math.abs(this.distY),s=n();if(!(s-this.endTime>this.options.momentumLimitTime&&a<this.options.momentumLimitDistance&&o<this.options.momentumLimitDistance)){if(this.directionLocked||this.options.freeScroll||(o>a+this.options.directionLockThreshold?this.directionLocked="h":a>=o+this.options.directionLockThreshold?this.directionLocked="v":this.directionLocked="n"),"h"===this.directionLocked){if("vertical"===this.options.eventPassthrough)t.preventDefault();else if("horizontal"===this.options.eventPassthrough)return void(this.initiated=!1);r=0}else if("v"===this.directionLocked){if("horizontal"===this.options.eventPassthrough)t.preventDefault();else if("vertical"===this.options.eventPassthrough)return void(this.initiated=!1);i=0}i=this.hasHorizontalScroll?i:0,r=this.hasVerticalScroll?r:0,this.movingDirectionX=i>0?$:i<0?Q:0,this.movingDirectionY=r>0?K:r<0?Z:0;var l=this.x+i,u=this.y+r,h=!1,c=!1,p=!1,f=!1,d=this.options.bounce;!1!==d&&(h=void 0===d.top||d.top,c=void 0===d.bottom||d.bottom,p=void 0===d.left||d.left,f=void 0===d.right||d.right),(l>this.minScrollX||l<this.maxScrollX)&&(l=l>this.minScrollX&&p||l<this.maxScrollX&&f?this.x+i/3:l>this.minScrollX?this.minScrollX:this.maxScrollX),(u>this.minScrollY||u<this.maxScrollY)&&(u=u>this.minScrollY&&h||u<this.maxScrollY&&c?this.y+r/3:u>this.minScrollY?this.minScrollY:this.maxScrollY),this.moved||(this.moved=!0,this.trigger("scrollStart")),this._translate(l,u),s-this.startTime>this.options.momentumLimitTime&&(this.startTime=s,this.startX=this.x,this.startY=this.y,this.options.probeType===J&&this.trigger("scroll",{x:this.x,y:this.y})),this.options.probeType>J&&this.trigger("scroll",{x:this.x,y:this.y});var g=document.documentElement.scrollLeft||window.pageXOffset||document.body.scrollLeft,v=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,y=this.pointX-g,m=this.pointY-v;(y>document.documentElement.clientWidth-this.options.momentumLimitDistance||y<this.options.momentumLimitDistance||m<this.options.momentumLimitDistance||m>document.documentElement.clientHeight-this.options.momentumLimitDistance)&&this._end(t)}}},t.prototype._end=function(t){if(this.enabled&&!this.destroyed&&X[t.type]===this.initiated){this.initiated=!1,this.options.preventDefault&&!f(t.target,this.options.preventDefaultException)&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.trigger("touchEnd",{x:this.x,y:this.y}),this.isInTransition=!1;var e=Math.round(this.x),i=Math.round(this.y),r=e-this.absStartX,o=i-this.absStartY;if(this.directionX=r>0?$:r<0?Q:0,this.directionY=o>0?K:o<0?Z:0,!this.options.pullDownRefresh||!this._checkPullDown()){if(this._checkClick(t))return void this.trigger("scrollCancel");if(!this.resetPosition(this.options.bounceTime,j.bounce)){this._translate(e,i),this.endTime=n();var a=this.endTime-this.startTime,s=Math.abs(e-this.startX),l=Math.abs(i-this.startY);if(this._events.flick&&a<this.options.flickLimitTime&&s<this.options.flickLimitDistance&&l<this.options.flickLimitDistance)return void this.trigger("flick");var u=0;if(this.options.momentum&&a<this.options.momentumLimitTime&&(l>this.options.momentumLimitDistance||s>this.options.momentumLimitDistance)){var h=!1,c=!1,p=!1,d=!1,g=this.options.bounce;!1!==g&&(h=void 0===g.top||g.top,c=void 0===g.bottom||g.bottom,p=void 0===g.left||g.left,d=void 0===g.right||g.right);var v=this.directionX===$&&p||this.directionX===Q&&d?this.wrapperWidth:0,y=this.directionY===K&&h||this.directionY===Z&&c?this.wrapperHeight:0,m=this.hasHorizontalScroll?x(this.x,this.startX,a,this.maxScrollX,this.minScrollX,v,this.options):{destination:e,duration:0},_=this.hasVerticalScroll?x(this.y,this.startY,a,this.maxScrollY,this.minScrollY,y,this.options):{destination:i,duration:0};e=m.destination,i=_.destination,u=Math.max(m.duration,_.duration),this.isInTransition=!0}else this.options.wheel&&(i=Math.round(i/this.itemHeight)*this.itemHeight,u=this.options.wheel.adjustTime||400);var w=j.swipe;if(this.options.snap){var b=this._nearestSnap(e,i);this.currentPage=b,u=this.options.snapSpeed||Math.max(Math.max(Math.min(Math.abs(e-b.x),1e3),Math.min(Math.abs(i-b.y),1e3)),300),e=b.x,i=b.y,this.directionX=0,this.directionY=0,w=this.options.snap.easing||j.bounce}if(e!==this.x||i!==this.y)return(e>this.minScrollX||e<this.maxScrollX||i>this.minScrollY||i<this.maxScrollY)&&(w=j.swipeBounce),void this.scrollTo(e,i,u,w);this.options.wheel&&(this.selectedIndex=Math.round(Math.abs(this.y/this.itemHeight))),this.trigger("scrollEnd",{x:this.x,y:this.y})}}}},t.prototype._checkClick=function(t){var e=this.stopFromTransition&&!this.pulling;if(this.stopFromTransition=!1,!this.moved){if(this.options.wheel){if(this.target&&this.target.classList.contains(this.options.wheel.wheelWrapperClass)){var i=Math.abs(Math.round(this.y/this.itemHeight)),r=Math.round((this.pointY+c(this.wrapper).top-this.wrapperHeight/2)/this.itemHeight);this.target=this.items[i+r]}return this.scrollToElement(this.target,this.options.wheel.adjustTime||400,!0,!0,j.swipe),!0}if(!e){var o=this.options.dblclick,a=!1;if(o&&this.lastClickTime){var s=o.delay,l=void 0===s?300:s;n()-this.lastClickTime<l&&(a=!0,v(t))}return this.options.tap&&d(t,this.options.tap),this.options.click&&!f(t.target,this.options.preventDefaultException)&&g(t),this.lastClickTime=a?null:n(),!0}return!1}return!1},t.prototype._resize=function(){var t=this;this.enabled&&(E&&(this.wrapper.scrollTop=0),clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){t.refresh()},this.options.resizePolling))},t.prototype._startProbe=function(){function t(){var i=e.getComputedPosition();if(e.trigger("scroll",i),!e.isInTransition)return void e.trigger("scrollEnd",i);e.probeTimer=G(t)}q(this.probeTimer),this.probeTimer=G(t);var e=this},t.prototype._transitionTime=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.scrollerStyle[V.transitionDuration]=t+"ms",this.options.wheel)for(var e=0;e<this.items.length;e++)this.items[e].style[V.transitionDuration]=t+"ms";if(this.indicators)for(var i=0;i<this.indicators.length;i++)this.indicators[i].transitionTime(t)},t.prototype._transitionTimingFunction=function(t){if(this.scrollerStyle[V.transitionTimingFunction]=t,this.options.wheel)for(var e=0;e<this.items.length;e++)this.items[e].style[V.transitionTimingFunction]=t;if(this.indicators)for(var i=0;i<this.indicators.length;i++)this.indicators[i].transitionTimingFunction(t)},t.prototype._transitionEnd=function(t){t.target===this.scroller&&this.isInTransition&&(this._transitionTime(),(!this.pulling||this.movingDirectionY===Z)&&!this.resetPosition(this.options.bounceTime,j.bounce)&&(this.isInTransition=!1,this.options.probeType!==tt&&this.trigger("scrollEnd",{x:this.x,y:this.y})))},t.prototype._translate=function(t,e,i){if(S(!o(t)&&!o(e),"Translate x or y is null or undefined."),o(i)&&(i=this.scale),this.options.useTransform?this.scrollerStyle[V.transform]="translate("+t+"px,"+e+"px) scale("+i+")"+this.translateZ:(t=Math.round(t),e=Math.round(e),this.scrollerStyle.left=t+"px",this.scrollerStyle.top=e+"px"),this.options.wheel)for(var n=this.options.wheel.rotate,r=void 0===n?25:n,a=0;a<this.items.length;a++){var s=r*(e/this.itemHeight+a);this.items[a].style[V.transform]="rotateX("+s+"deg)"}if(this.x=t,this.y=e,this.setScale(i),this.indicators)for(var l=0;l<this.indicators.length;l++)this.indicators[l].updatePosition()},t.prototype._animate=function(t,e,i,r){function o(){var f=n();if(f>=p)return a.isAnimating=!1,a._translate(t,e,h),a.trigger("scroll",{x:a.x,y:a.y}),void(a.pulling||a.resetPosition(a.options.bounceTime)||a.trigger("scrollEnd",{x:a.x,y:a.y}));f=(f-c)/i;var d=r(f),g=(t-s)*d+s,v=(e-l)*d+l,y=(h-u)*d+u;a._translate(g,v,y),a.isAnimating&&(a.animateTimer=G(o)),a.options.probeType===tt&&a.trigger("scroll",{x:a.x,y:a.y})}var a=this,s=this.x,l=this.y,u=this.lastScale,h=this.scale,c=n(),p=c+i;this.isAnimating=!0,q(this.animateTimer),o()},t.prototype.scrollBy=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:j.bounce;t=this.x+t,e=this.y+e,this.scrollTo(t,e,i,n)},t.prototype.scrollTo=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:j.bounce;this.isInTransition=this.options.useTransition&&i>0&&(t!==this.x||e!==this.y),!i||this.options.useTransition?(this._transitionTimingFunction(n.style),this._transitionTime(i),this._translate(t,e),i&&this.options.probeType===tt&&this._startProbe(),i||t===this.x&&e===this.y||(this.trigger("scroll",{x:t,y:e}),this._reflow=document.body.offsetHeight,this.resetPosition(this.options.bounceTime,j.bounce)||this.trigger("scrollEnd",{x:t,y:e})),this.options.wheel&&(e>this.minScrollY?this.selectedIndex=0:e<this.maxScrollY?this.selectedIndex=this.items.length-1:this.selectedIndex=Math.round(Math.abs(e/this.itemHeight)))):this._animate(t,e,i,n.fn)},t.prototype.scrollToElement=function(t,e,i,n,r){if(t&&(t=t.nodeType?t:this.scroller.querySelector(t),!this.options.wheel||t.classList.contains(this.options.wheel.wheelItemClass))){var o=h(t);o.left-=this.wrapperOffset.left,o.top-=this.wrapperOffset.top,!0===i&&(i=Math.round(t.offsetWidth/2-this.wrapper.offsetWidth/2)),!0===n&&(n=Math.round(t.offsetHeight/2-this.wrapper.offsetHeight/2)),o.left-=i||0,o.top-=n||0,o.left=o.left>this.minScrollX?this.minScrollX:o.left<this.maxScrollX?this.maxScrollX:o.left,o.top=o.top>this.minScrollY?this.minScrollY:o.top<this.maxScrollY?this.maxScrollY:o.top,this.options.wheel&&(o.top=Math.round(o.top/this.itemHeight)*this.itemHeight),this.scrollTo(o.left,o.top,e,r)}},t.prototype.resetPosition=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:j.bounce,i=this.x,n=Math.round(i);!this.hasHorizontalScroll||n>this.minScrollX?i=this.minScrollX:n<this.maxScrollX&&(i=this.maxScrollX);var r=this.y,o=Math.round(r);return!this.hasVerticalScroll||o>this.minScrollY?r=this.minScrollY:o<this.maxScrollY&&(r=this.maxScrollY),(i!==this.x||r!==this.y)&&(this.scrollTo(i,r,t,e),!0)},t.prototype.getComputedPosition=function(){var t=window.getComputedStyle(this.scroller,null),e=void 0,i=void 0;return this.options.useTransform?(t=t[V.transform].split(")")[0].split(", "),e=+(t[12]||t[4]),i=+(t[13]||t[5])):(e=+t.left.replace(/[^-\d.]/g,""),i=+t.top.replace(/[^-\d.]/g,"")),{x:e,y:i}},t.prototype.stop=function(){if(this.options.useTransition&&this.isInTransition){this.isInTransition=!1,q(this.probeTimer);var t=this.getComputedPosition();this._translate(t.x,t.y),this.options.wheel?this.target=this.items[Math.round(-t.y/this.itemHeight)]:this.trigger("scrollEnd",{x:this.x,y:this.y}),this.stopFromTransition=!0}else!this.options.useTransition&&this.isAnimating&&(this.isAnimating=!1,q(this.animateTimer),this.trigger("scrollEnd",{x:this.x,y:this.y}),this.stopFromTransition=!0)},t.prototype.destroy=function(){this.destroyed=!0,this.trigger("destroy"),q(this.options.useTransition?this.probeTimer:this.animateTimer),this._removeDOMEvents(),this._events={}}}(k),function(t){t.prototype.on=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;this._events[t]||(this._events[t]=[]),this._events[t].push([e,i])},t.prototype.once=function(t,e){function i(){this.off(t,i),e.apply(n,arguments)}var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;i.fn=e,this.on(t,i)},t.prototype.off=function(t,e){var i=this._events[t];if(i)for(var n=i.length;n--;)(i[n][0]===e||i[n][0]&&i[n][0].fn===e)&&(i[n][0]=void 0)},t.prototype.trigger=function(t){var e=this._events[t];if(e)for(var i=e.length,n=[].concat(D(e)),r=0;r<i;r++){var o=n[r],a=A(o,2),s=a[0],l=a[1];s&&s.apply(l,[].slice.call(arguments,1))}}}(k),function(t){t.prototype._initSnap=function(){var t=this;this.currentPage={};var e=this.options.snap;if(e.loop){var i=this.scroller.children;i.length>1?(y(i[i.length-1].cloneNode(!0),this.scroller),this.scroller.appendChild(i[1].cloneNode(!0))):e.loop=!1}var n=e.el;"string"==typeof n&&(n=this.scroller.querySelectorAll(n)),this.on("refresh",function(){if(t.pages=[],t.wrapperWidth&&t.wrapperHeight&&t.scrollerWidth&&t.scrollerHeight){var i=e.stepX||t.wrapperWidth,r=e.stepY||t.wrapperHeight,o=0,a=void 0,s=void 0,l=void 0,u=0,h=void 0,c=0,f=void 0,d=void 0;if(n)for(h=n.length,f=-1;u<h;u++)d=p(n[u]),(0===u||d.left<=p(n[u-1]).left)&&(c=0,f++),t.pages[c]||(t.pages[c]=[]),o=Math.max(-d.left,t.maxScrollX),a=Math.max(-d.top,t.maxScrollY),s=o-Math.round(d.width/2),l=a-Math.round(d.height/2),t.pages[c][f]={x:o,y:a,width:d.width,height:d.height,cx:s,cy:l},o>t.maxScrollX&&c++;else for(s=Math.round(i/2),l=Math.round(r/2);o>-t.scrollerWidth;){for(t.pages[u]=[],h=0,a=0;a>-t.scrollerHeight;)t.pages[u][h]={x:Math.max(o,t.maxScrollX),y:Math.max(a,t.maxScrollY),width:i,height:r,cx:o-s,cy:a-l},a-=r,h++;o-=i,u++}t._checkSnapLoop();var g=e._loopX?1:0,v=e._loopY?1:0;t._goToPage(t.currentPage.pageX||g,t.currentPage.pageY||v,0);var y=e.threshold;y%1==0?(t.snapThresholdX=y,t.snapThresholdY=y):(t.snapThresholdX=Math.round(t.pages[t.currentPage.pageX][t.currentPage.pageY].width*y),t.snapThresholdY=Math.round(t.pages[t.currentPage.pageX][t.currentPage.pageY].height*y))}}),this.on("scrollEnd",function(){e.loop&&(e._loopX?(0===t.currentPage.pageX&&t._goToPage(t.pages.length-2,t.currentPage.pageY,0),t.currentPage.pageX===t.pages.length-1&&t._goToPage(1,t.currentPage.pageY,0)):(0===t.currentPage.pageY&&t._goToPage(t.currentPage.pageX,t.pages[0].length-2,0),t.currentPage.pageY===t.pages[0].length-1&&t._goToPage(t.currentPage.pageX,1,0)))}),!1!==e.listenFlick&&this.on("flick",function(){var i=e.speed||Math.max(Math.max(Math.min(Math.abs(t.x-t.startX),1e3),Math.min(Math.abs(t.y-t.startY),1e3)),300);t._goToPage(t.currentPage.pageX+t.directionX,t.currentPage.pageY+t.directionY,i)}),this.on("destroy",function(){if(e.loop){var i=t.scroller.children;i.length>2&&(_(t.scroller,i[i.length-1]),_(t.scroller,i[0]))}})},t.prototype._checkSnapLoop=function(){var t=this.options.snap;t.loop&&this.pages&&this.pages.length&&(this.pages.length>1&&(t._loopX=!0),this.pages[0]&&this.pages[0].length>1&&(t._loopY=!0),t._loopX&&t._loopY&&b("Loop does not support two direction at the same time."))},t.prototype._nearestSnap=function(t,e){if(!this.pages.length)return{x:0,y:0,pageX:0,pageY:0};var i=0;if(Math.abs(t-this.absStartX)<=this.snapThresholdX&&Math.abs(e-this.absStartY)<=this.snapThresholdY)return this.currentPage;t>this.minScrollX?t=this.minScrollX:t<this.maxScrollX&&(t=this.maxScrollX),e>this.minScrollY?e=this.minScrollY:e<this.maxScrollY&&(e=this.maxScrollY);for(var n=this.pages.length;i<n;i++)if(t>=this.pages[i][0].cx){t=this.pages[i][0].x;break}n=this.pages[i].length;for(var r=0;r<n;r++)if(e>=this.pages[0][r].cy){e=this.pages[0][r].y;break}return i===this.currentPage.pageX&&(i+=this.directionX,i<0?i=0:i>=this.pages.length&&(i=this.pages.length-1),t=this.pages[i][0].x),r===this.currentPage.pageY&&(r+=this.directionY,r<0?r=0:r>=this.pages[0].length&&(r=this.pages[0].length-1),e=this.pages[0][r].y),{x:t,y:e,pageX:i,pageY:r}},t.prototype._goToPage=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments[2],n=arguments[3],r=this.options.snap;if(r&&this.pages&&this.pages.length&&(n=n||r.easing||j.bounce,t>=this.pages.length?t=this.pages.length-1:t<0&&(t=0),this.pages[t])){e>=this.pages[t].length?e=this.pages[t].length-1:e<0&&(e=0);var o=this.pages[t][e].x,a=this.pages[t][e].y;i=void 0===i?r.speed||Math.max(Math.max(Math.min(Math.abs(o-this.x),1e3),Math.min(Math.abs(a-this.y),1e3)),300):i,this.currentPage={x:o,y:a,pageX:t,pageY:e},this.scrollTo(o,a,i,n)}},t.prototype.goToPage=function(t,e,i,n){var r=this.options.snap;if(r&&this.pages&&this.pages.length){if(r.loop){var o=void 0;r._loopX?(o=this.pages.length-2,t>=o?t=o-1:t<0&&(t=0),t+=1):(o=this.pages[0].length-2,e>=o?e=o-1:e<0&&(e=0),e+=1)}this._goToPage(t,e,i,n)}},t.prototype.next=function(t,e){if(this.options.snap){var i=this.currentPage.pageX,n=this.currentPage.pageY;i++,i>=this.pages.length&&this.hasVerticalScroll&&(i=0,n++),this._goToPage(i,n,t,e)}},t.prototype.prev=function(t,e){if(this.options.snap){var i=this.currentPage.pageX,n=this.currentPage.pageY;i--,i<0&&this.hasVerticalScroll&&(i=0,n--),this._goToPage(i,n,t,e)}},t.prototype.getCurrentPage=function(){var t=this.options.snap;return t?t.loop?t._loopX?r({},this.currentPage,{pageX:this.currentPage.pageX-1}):r({},this.currentPage,{pageY:this.currentPage.pageY-1}):this.currentPage:null}}(k),function(t){t.prototype.wheelTo=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.options.wheel&&(this.y=-t*this.itemHeight,this.scrollTo(0,this.y))},t.prototype.getSelectedIndex=function(){return this.options.wheel&&this.selectedIndex},t.prototype._initWheel=function(){var t=this.options.wheel;t.wheelWrapperClass||(t.wheelWrapperClass="wheel-scroll"),t.wheelItemClass||(t.wheelItemClass="wheel-item"),void 0===t.selectedIndex&&(t.selectedIndex=0,b("wheel option selectedIndex is required!"))}}(k),function(t){t.prototype._initScrollbar=function(){var t=this,e=this.options.scrollbar,i=e.fade,n=void 0===i||i,r=e.interactive,o=void 0!==r&&r;this.indicators=[];var a=void 0;this.options.scrollX&&(a={el:T("horizontal"),direction:"horizontal",fade:n,interactive:o},this._insertScrollBar(a.el),this.indicators.push(new M(this,a))),this.options.scrollY&&(a={el:T("vertical"),direction:"vertical",fade:n,interactive:o},this._insertScrollBar(a.el),this.indicators.push(new M(this,a))),this.on("refresh",function(){for(var e=0;e<t.indicators.length;e++)t.indicators[e].refresh()}),n&&(this.on("scrollEnd",function(){for(var e=0;e<t.indicators.length;e++)t.indicators[e].fade()}),this.on("scrollCancel",function(){for(var e=0;e<t.indicators.length;e++)t.indicators[e].fade()}),this.on("scrollStart",function(){for(var e=0;e<t.indicators.length;e++)t.indicators[e].fade(!0)}),this.on("beforeScrollStart",function(){for(var e=0;e<t.indicators.length;e++)t.indicators[e].fade(!0,!0)})),this.on("destroy",function(){t._removeScrollBars()})},t.prototype._insertScrollBar=function(t){this.wrapper.appendChild(t)},t.prototype._removeScrollBars=function(){for(var t=0;t<this.indicators.length;t++)this.indicators[t].destroy()}}(k),function(t){t.prototype._initPullDown=function(){this.options.probeType=tt},t.prototype._checkPullDown=function(){var t=this.options.pullDownRefresh,e=t.threshold,i=void 0===e?90:e,n=t.stop,r=void 0===n?40:n;return!(this.directionY!==K||this.y<i)&&(this.pulling||(this.pulling=!0,this.trigger("pullingDown")),this.scrollTo(this.x,r,this.options.bounceTime,j.bounce),this.pulling)},t.prototype.finishPullDown=function(){this.pulling=!1,this.resetPosition(this.options.bounceTime,j.bounce)},t.prototype.openPullDown=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.options.pullDownRefresh=t,this._initPullDown()},t.prototype.closePullDown=function(){this.options.pullDownRefresh=!1}}(k),function(t){t.prototype._initPullUp=function(){this.options.probeType=tt,this.pullupWatching=!1,this._watchPullUp()},t.prototype._watchPullUp=function(){this.pullupWatching||(this.pullupWatching=!0,this.on("scroll",this._checkToEnd))},t.prototype._checkToEnd=function(t){var e=this,i=this.options.pullUpLoad.threshold,n=void 0===i?0:i;this.movingDirectionY===Z&&t.y<=this.maxScrollY+n&&(this.once("scrollEnd",function(){e.pullupWatching=!1}),this.trigger("pullingUp"),this.off("scroll",this._checkToEnd))},t.prototype.finishPullUp=function(){var t=this;this.pullupWatching?this.once("scrollEnd",function(){t._watchPullUp()}):this._watchPullUp()},t.prototype.openPullUp=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.options.pullUpLoad=t,this._initPullUp()},t.prototype.closePullUp=function(){this.options.pullUpLoad=!1,this.pullupWatching&&(this.pullupWatching=!1,this.off("scroll",this._checkToEnd))}}(k),function(t){t.prototype._initMouseWheel=function(){var t=this;this._handleMouseWheelEvent(l),this.on("destroy",function(){clearTimeout(t.mouseWheelTimer),clearTimeout(t.mouseWheelEndTimer),t._handleMouseWheelEvent(u)}),this.firstWheelOpreation=!0},t.prototype._handleMouseWheelEvent=function(t){t(this.wrapper,"wheel",this),t(this.wrapper,"mousewheel",this),t(this.wrapper,"DOMMouseScroll",this)},t.prototype._onMouseWheel=function(t){var e=this;if(this.enabled){t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.firstWheelOpreation&&this.trigger("scrollStart"),this.firstWheelOpreation=!1;var i=this.options.mouseWheel,n=i.speed,r=void 0===n?20:n,o=i.invert,a=void 0!==o&&o,s=i.easeTime,l=void 0===s?300:s;clearTimeout(this.mouseWheelTimer),this.mouseWheelTimer=setTimeout(function(){e.options.snap||l||e.trigger("scrollEnd",{x:e.x,y:e.y}),e.firstWheelOpreation=!0},400);var u=void 0,h=void 0;switch(!0){case"deltaX"in t:1===t.deltaMode?(u=-t.deltaX*r,h=-t.deltaY*r):(u=-t.deltaX,h=-t.deltaY);break;case"wheelDeltaX"in t:u=t.wheelDeltaX/120*r,h=t.wheelDeltaY/120*r;break;case"wheelDelta"in t:u=h=t.wheelDelta/120*r;break;case"detail"in t:u=h=-t.detail/3*r;break;default:return}var c=a?-1:1;u*=c,h*=c,this.hasVerticalScroll||(u=h,h=0);var p=void 0,f=void 0;if(this.options.snap)return p=this.currentPage.pageX,f=this.currentPage.pageY,u>0?p--:u<0&&p++,h>0?f--:h<0&&f++,void this._goToPage(p,f);p=this.x+Math.round(this.hasHorizontalScroll?u:0),f=this.y+Math.round(this.hasVerticalScroll?h:0),this.movingDirectionX=this.directionX=u>0?-1:u<0?1:0,this.movingDirectionY=this.directionY=h>0?-1:h<0?1:0,p>this.minScrollX?p=this.minScrollX:p<this.maxScrollX&&(p=this.maxScrollX),f>this.minScrollY?f=this.minScrollY:f<this.maxScrollY&&(f=this.maxScrollY);var d=this.y===f;this.scrollTo(p,f,l,j.swipe),this.trigger("scroll",{x:this.x,y:this.y}),clearTimeout(this.mouseWheelEndTimer),d&&(this.mouseWheelEndTimer=setTimeout(function(){e.trigger("scrollEnd",{x:e.x,y:e.y})},l))}}}(k),function(t){t.prototype._initZoom=function(){var t=this.options.zoom,e=t.start,i=void 0===e?1:e,n=t.min,r=void 0===n?1:n,o=t.max,a=void 0===o?4:o;this.scale=Math.min(Math.max(i,r),a),this.setScale(this.scale),this.scrollerStyle[V.transformOrigin]="0 0"},t.prototype._zoomTo=function(t,e,i,n){this.scaled=!0;var r=t/(n||this.scale);this.setScale(t),this.refresh();var o=Math.round(this.startX-(e-this.relativeX)*(r-1)),a=Math.round(this.startY-(i-this.relativeY)*(r-1));o>this.minScrollX?o=this.minScrollX:o<this.maxScrollX&&(o=this.maxScrollX),a>this.minScrollY?a=this.minScrollY:a<this.maxScrollY&&(a=this.maxScrollY),this.x===o&&this.y===a||this.scrollTo(o,a,this.options.bounceTime),this.scaled=!1},t.prototype.zoomTo=function(t,e,i){var n=c(this.wrapper),r=n.left,o=n.top,a=e+r-this.x,s=i+o-this.y;this._zoomTo(t,a,s)},t.prototype._zoomStart=function(t){var e=t.touches[0],i=t.touches[1],n=Math.abs(e.pageX-i.pageX),r=Math.abs(e.pageY-i.pageY);this.startDistance=a(n,r),this.startScale=this.scale;var o=c(this.wrapper),s=o.left,l=o.top;this.originX=Math.abs(e.pageX+i.pageX)/2+s-this.x,this.originY=Math.abs(e.pageY+i.pageY)/2+l-this.y,this.trigger("zoomStart")},t.prototype._zoom=function(t){if(this.enabled&&!this.destroyed&&X[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation();var e=t.touches[0],i=t.touches[1],n=Math.abs(e.pageX-i.pageX),r=Math.abs(e.pageY-i.pageY),o=a(n,r),s=o/this.startDistance*this.startScale;this.scaled=!0;var l=this.options.zoom,u=l.min,h=void 0===u?1:u,c=l.max,p=void 0===c?4:c;s<h?s=.5*h*Math.pow(2,s/h):s>p&&(s=2*p*Math.pow(.5,p/s));var f=s/this.startScale,d=this.startX-(this.originX-this.relativeX)*(f-1),g=this.startY-(this.originY-this.relativeY)*(f-1);this.setScale(s),this.scrollTo(d,g,0)}},t.prototype._zoomEnd=function(t){if(this.enabled&&!this.destroyed&&X[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.isInTransition=!1,this.isAnimating=!1,this.initiated=0;var e=this.options.zoom,i=e.min,n=void 0===i?1:i,r=e.max,o=void 0===r?4:r,a=this.scale>o?o:this.scale<n?n:this.scale;this._zoomTo(a,this.originX,this.originY,this.startScale),this.trigger("zoomEnd")}}}(k),function(t){t.prototype._initInfinite=function(){this.options.probeType=3,this.maxScrollY=-et,this.infiniteScroller=new I(this,this.options.infinity)}}(k),k.Version="1.12.6",e.a=k},16:function(t,e){t.exports=!0},18:function(t,e){t.exports={}},180:function(t,e,i){i(54),i(52),t.exports=i(181)},181:function(t,e,i){var n=i(9),r=i(113);t.exports=i(0).getIterator=function(t){var e=r(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return n(e.call(t))}},2:function(t,e,i){"use strict";function n(t,e,i,n,r,o,a,s){t=t||{};var l=typeof t.default;"object"!==l&&"function"!==l||(t=t.default);var u="function"==typeof t?t.options:t;e&&(u.render=e,u.staticRenderFns=i,u._compiled=!0),n&&(u.functional=!0),o&&(u._scopeId=o);var h;if(a?(h=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=h):r&&(h=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),h)if(u.functional){u._injectStyles=h;var c=u.render;u.render=function(t,e){return h.call(e),c(t,e)}}else{var p=u.beforeCreate;u.beforeCreate=p?[].concat(p,h):[h]}return{exports:t,options:u}}e.a=n},2040:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(15),r=i(2041);r.a.install=function(t){t.component(r.a.name,r.a),t.prototype.$createGoldFinanceChart=Object(n.a)(r.a,t)},e.default=r.a},2041:function(t,e,i){"use strict";var n=i(1520),r=i(2058),o=i(2),a=Object(o.a)(n.a,r.a,r.b,!1,null,null,null);a.options.__file="src\\components\\GoldFinanceChart\\src\\index.vue",e.a=a.exports},2042:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r}),i.d(e,"c",function(){return o});var n={showType2:[{boxConfig:{iconColor:"#E13046",titleColor:"#E13046",blockColor:"rgba(255, 90, 110, 0.1)",tipsColor:"#ff5a63"},lineStyle:{lineColor:"#ff5a6e",legendImg:i(2043),zIndex:1}},{boxConfig:{iconColor:"#7363E7",titleColor:"#7363E7",blockColor:"rgba(115,99,231,0.1)",tipsColor:"#8c7FEE"},lineStyle:{lineColor:"#8c7fee",legendImg:i(2044),areaStyleColor:[{offset:0,color:"#E7E3FF"},{offset:1,color:"#FFF"}],zIndex:2}}],showType3:[{lineStyle:{lineColor:"#E2E5E7",legendImg:i(2045),zIndex:3}}]},r={showType2:[{boxConfig:{iconColor:"#FF8D35",titleColor:"#FF8D35",blockColor:"rgba(255,141,53,0.1)",tipsColor:"#FF8D35"},lineStyle:{lineColor:"#FF8D35",legendImg:i(2046),zIndex:1}},{boxConfig:{iconColor:"#F05A4B",titleColor:"#FC7468",blockColor:"rgba(252,116,104,0.1)",tipsColor:"#F05A4B"},lineStyle:{lineColor:"#F05A4B",legendImg:i(2047),areaStyleColor:[{offset:0,color:"#FFE0DD"},{offset:1,color:"#FFF"}],zIndex:2}}],showType3:[{lineStyle:{lineColor:"#E2E5E7",legendImg:i(2048),zIndex:3}}]},o={1:"有效保额",2:"已交保费系数金额",3:"现金价值",4:"身故全残金",5:"年龄",6:"累计已交保费",7:"累计保费*给付系数(主险)",8:"当前年龄与61周岁的比值",9:"当前年龄与41周岁的比值",10:"当前年龄与18周岁的比值",11:"当前年龄的给付数值",12:"保额",13:"保单年份与缴费期间的比值",14:"保单年份",15:"长期护理保险金(元)",16:"疾病身故保险金或长期护理保险金"}},2043:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAgRJREFUSEtjZCACNDAwMMWbeomx/2MWYPj/jxFFCyPT/59Mfz8sPL3tVQMDwz9CxqFqRlP9StuB5w87tywhQ5DlWX5+fSx29cAXXHpwWvjM2E2D4T8rXgfhdAjj7/9SZ3fdwCaPYeAZY2NWqf8SKqT4CpfaZ4wv7picPfsbWR7FQmpaBrME3VIUC58ZeWtSw2foZkid23odJga3kFCcMfLzMYmunzWRmZ/HGdnAvx+/7H0dmJb//+Mn3CkUKU7BFhJKjRIHVkxl5OVxxOf7/5+/7H/hEJGNSw0s9YItxBeUkqc3HWVgYhIEG3TwJAPD7OUMDP//Q8xlZGRgSI1kYLA3h/D//Xv/3NTPGpeloKBlBGXqNCNvdWyKUHwWX8TA8OcvdrNYmBkYFvaB5fD5dNa5rTcZ75t6SbD/ZYT4AAmA4kxi37IrYCF8lsH0IFn6wilKB1uc/mT+/57xmbGvBkZxxcDAILZvxWRwAgEF46xlxCXe9CgGBjtzBlBCeuUUkYuhiZHpPyOu+JM8u+UaWENMASLOCFkLitMlE8Cqnhv7aGFTTtjC6HxC1qDKL5041CykepBSM9GkRYHzJN5EQ/dsQfeMD0pSdC3aQBbSvfAG+5JAk4Kq1RMs59K1AgZZSvcmBrUtJdiIQi4UCcUp3gKWlGYiskGEUi82S8luCCMbRs2mPgATfE9ommN9bQAAAABJRU5ErkJggg=="},2044:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAflJREFUSEtjZCAKNDBlhZaIMbH8E/j3j5ERWQsT0/////4wfZi2uucVA0PDP0LGoWhGV5wV+oqHgYlTlpAhKPL/vj+etlrsCy49OC1MC/6kwcKC6htiLf7z5///WWv5bmBTj2FhWtp/VpaPX1SINRyfuj/8PHdmzWL8jawGxUJqWgazBN1SFAuzwj9rUsNn6GZMW8l7HSYGt5BQnPHyMTDV9nFP5OZhdEY28OuX/3ubi77mf/7EgDOFIscp2EJCqbFnLs9UTm4GR3y+//6VYX9J8pdsnGqgqRdiIZ6gnLyM5ygTE4MgSN2V8z8Zdm36xvD/P8RYUBp28+Ni0DFkB/P//WN4nxv1xRqXpaCgZWRgaGDKCi9Wx6YI2Wf9ze8Z/v3FbhQTMwNDYS3YTQz4fDptZe9NxqzQLxIMTP8hqpEAKM46ZvFcAQnhswymBdnSirQvOljj9B/je8acyE8a6MUVyJCuOdyTQQkEFIw7N34jKvG6+0OCF5SQylK+5qJrAhWDjLjib+oKnmsgDX2N7+FxRshWUJwW1UMCKzviixY29QQt7G14T8geFPnihqFmIdWDlP6Jht7Zgu4ZfwCKtgEovEG+pGv1BMu5dK2Awb6kYnsG5gm8TQxqW0qwEYVcKBKKU3wFLEnNRGSDCDU9sFpKbkMY1TDqNfUBayRb+GkJOFQAAAAASUVORK5CYII="},2045:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAdxJREFUSEvtVrtOwzAUta2kWRhgQUgV6kJLQfwB7YD4iS5Rqz6UIUL8Qn4BoQxR38rSn6hYyh8gHhVLhbqwlIElTeQgRwQ5IXYossJCRvvec3LuyxeCH3yGYaBCobALANj2PA/SLpIk+QCAt8Vi8WoYBk6DizjHjU3T3MrlcvtpIPT9er1+0XX9neXDJLQsq4wQ4v4QCxRj7Gua9ph0/w3QsiwZIXSwiSoO8bOmaS59HyEUSRaSYIwjpBHCbrd7JEJZHKPT6TyEZ1+EaTmTZRnVarUrRVHOaUDHcaaTyeTSdV1mhdI5DQjTqlFVVVNRlDOeesdxbmzb1lk2YfUGhLxQtlqtWwjhDrGbz+dgNptFMCuVCiiVSsGZ7/urfr9/yiIloYWkqfP5/GGSEa1sNBoBjJOjhhACjUYjgOApXS6XT3A4HO55nhcooD+Ss3q9fkfOeGShD006Ho9PknIqSdKKEJbj44qAqKp6TQokKYyskFWrVVAsFonKqW3bF3E7MgYhK3/tdvueOAwGg406pdlsBva9Xu84yfGfUHxIRRZN2JPcosm8LTJv/MxH258Mb0Ka6fMUToRMH+BPlcL2mVAEd8UQTRonI/h/vybSEz5t9Uh6DX69CNNgIlf9DxzfaQy1vbAWAAAAAElFTkSuQmCC"},2046:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAfxJREFUSEvVlrkvBFEcx79v7cQRLI1odBLr6MSxVCKOgtY/oEBEWFEim1CJWBsRFP4BrcYRUWER3boSnU7DIo7M2ifzxjBvd+Y9Ky+bmG7md3zmd733I/jFQ0PwoKChDPneEiQo4Uy8hOI18YCX0zsSQlLmjjdO0aah2kL4iipkTjh5/OmWhM6f3WxcgXS+3o8cTfhDrj/yoVMycXblJE9zSNfqNbxolRlF5aZcoN+QgTPdLuaASmEWJQXKA8PN1UoiS3FCgtFL69M3UFozzedB/0YEecXtnL+3xz2s941Cj7t3qK2mDCjtxqGdZeQWtQmjf3/ax0rnsKvOV/eaQFEqRw8OQDylzFFsE9idBSg1/RICdEwCdb3mO03eI9La6joSweglYUPta65yVLJHttgCJBPOvjxeYOzQlIkijUevCZ1rKIeWY0Zgf4yaDW/F2CcRzLKxQ5e76xxrqn/cE7oU8KcdV4aTwe0l1iBGGndmfte8XdNAbQ9gNNJq10iakZdQ4lq/saMLZhBu+qmZDGvUNHhsai0GapzU5cCFRhmGl4+f/Deg8pSqbJrOKXMmhU2T9bHI9uCzEymbRxsDylYJ1Yc3g8pWCpXXkzW5wtRmNv6ctuMFzKJUuc9YSNGKoRwqW6LseZDWVJTiTNZEDirrXifoXxdhHqxu1f8E1v4qfGBe9yAAAAAASUVORK5CYII="},2047:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAghJREFUSEtjZCACNDAwMJUkeIn9Y2AWYPz7jxFZy39mpv9MDH8/9CzY9qqBgeEfIeNQNKMrfhXqwMPJwS1LyBBk+e8/vj4WW33gCy49OC38FOmmwcjCitdBuAz9/+f3f77lu25gk8cw8H+aMeuX7xIqpPgKl1oezhd3GGed/Y0sjxofVLQMZgm6pSgWfo711qSGz9DN4F289TpMDG4hwTjj42Pi7pw1kZGbxxkllX79svdreVo+w6dPOFMocpyCLSSUGnmmr5jKwM3jiNf3X7/s/5IZkY1LDSz1gi3EF5Q8CzYdZWBiEgSp+3VwD8P32RMZGP7/h5jLyMjAmZrPwGbvAuH/+/f+S4KfNS5LQUHLCMrUxbHe6tgUIfvsY3wAA8OfP9jNYmFh4F+4ASKHx6e9i7feZPyS4CXx/y8j2AcogI+PiWfKsisgMbyWwTQhWfolJ0oHW5wyMv9/z/gpwVcDvbgCmcE9fcVkUAIBB+OsCUQlXs70AgY2OxeG/6CElBmRi64JVAwy4oo/nkVbroF9F+OLiDNC1jIyMvAv2QxW9SXORwubcsIWRvsQsgZFnn/plqFmIbWDlKqJJq0AnCfxJhq6Zwu6Z3y6F20gC+leeIMspWv1BMu5dK2AQZZSsz0D8wTeJga1LSXYiEIuFAnGKZ4SlqRmIrI5hFIvNjvJbggjG0bNpj4ANlBfOpfc/OcAAAAASUVORK5CYII="},2048:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAdxJREFUSEvtVrtOwzAUta2kWRhgQUgV6kJLQfwB7YD4iS5Rqz6UIUL8Qn4BoQxR38rSn6hYyh8gHhVLhbqwlIElTeQgRwQ5IXYossJCRvvec3LuyxeCH3yGYaBCobALANj2PA/SLpIk+QCAt8Vi8WoYBk6DizjHjU3T3MrlcvtpIPT9er1+0XX9neXDJLQsq4wQ4v4QCxRj7Gua9ph0/w3QsiwZIXSwiSoO8bOmaS59HyEUSRaSYIwjpBHCbrd7JEJZHKPT6TyEZ1+EaTmTZRnVarUrRVHOaUDHcaaTyeTSdV1mhdI5DQjTqlFVVVNRlDOeesdxbmzb1lk2YfUGhLxQtlqtWwjhDrGbz+dgNptFMCuVCiiVSsGZ7/urfr9/yiIloYWkqfP5/GGSEa1sNBoBjJOjhhACjUYjgOApXS6XT3A4HO55nhcooD+Ss3q9fkfOeGShD006Ho9PknIqSdKKEJbj44qAqKp6TQokKYyskFWrVVAsFonKqW3bF3E7MgYhK3/tdvueOAwGg406pdlsBva9Xu84yfGfUHxIRRZN2JPcosm8LTJv/MxH258Mb0Ka6fMUToRMH+BPlcL2mVAEd8UQTRonI/h/vybSEz5t9Uh6DX69CNNgIlf9DxzfaQy1vbAWAAAAAElFTkSuQmCC"},2049:function(t,e,i){"use strict";function n(t){s||i(2050)}var r=i(1521),o=i(2054),a=i(2),s=!1,l=n,u=Object(a.a)(r.a,o.a,o.b,!1,l,"data-v-8a13b6be",null);u.options.__file="src\\components\\GoldFinanceChart\\src\\components\\benefit.vue",e.a=u.exports},2050:function(t,e){},2051:function(t,e,i){"use strict";function n(t){s||i(2052)}var r=i(1522),o=i(2053),a=i(2),s=!1,l=n,u=Object(a.a)(r.a,o.a,o.b,!1,l,"data-v-5bf23e30",null);u.options.__file="src\\components\\GoldFinanceChart\\src\\components\\chart.vue",e.a=u.exports},2052:function(t,e){},2053:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{ref:"chart",staticClass:"chart"})},r=[];n._withStripped=!0},2054:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"chartContainer"},[i("div",{staticClass:"dataDisplay"},[i("div",{staticClass:"selectAge"},[i("div",{staticClass:"leftSelectAge"},[i("span",{staticClass:"agetext"},[t._v("至")]),t._v(" "),i("div",{class:["selectInputAge","agetext",{isCps:t.isCps}],on:{click:t.showAgePicker}},[i("div",{staticClass:"selectedAgeText"},[t._v("\n "+t._s(t.xAxisData[t.selectIndex])+t._s(t.unit)+"\n ")]),t._v(" "),i("i",{staticClass:"dropDown"})]),t._v(" "),i("span",{staticClass:"agetext"},[t._v("可获得")])]),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.benefitBtnShow,expression:"benefitBtnShow"}],class:["benefitShowBtn",{isCps:t.isCps}],on:{click:t.showCostTable}},[t._v("\n 利益演示\n ")])]),t._v(" "),1===t.showType2Length?[t._l(t.chartConfig,function(e,n){return[2===e.showType?i("div",{key:n,staticClass:"specialShowBox"},[i("div",{staticClass:"numShow"},[i("div",{staticClass:"num",style:{color:e.boxConfig.titleColor}},[t._v("\n "+t._s(Math.round(100*t.pureDataSource[t.selectIndex][n])/100)+"\n ")]),t._v(" "),i("div",{staticClass:"colorBlock",style:{background:e.boxConfig.blockColor}})]),t._v(" "),i("div",{staticClass:"titleShow"},[i("div",{staticClass:"text"},[i("span",[t._v(t._s(e.titleName))]),t._v(" "),e.problemText?i("i",{staticClass:"question",on:{click:function(i){return t.showProblemDialog(e.problemText)}}}):t._e()]),t._v(" "),e.tipsText?i("div",{staticClass:"multipleShow",style:{color:e.boxConfig.tipsColor}},[t._v("\n "+t._s(e.tipsText[0])),i("span",{staticClass:"multipleNum"},[t._v(t._s(e.expressionData[t.selectIndex]))]),i("span",{staticClass:"bold-text"},[t._v(t._s(e.tipsText[1]))])]):t._e()])]):t._e()]})]:[i("div",{staticClass:"textShow"},[t._l(t.chartConfig,function(e,n){return[2===e.showType?i("div",{key:n,staticClass:"textShowBox"},[i("div",{staticClass:"iconblock"},[i("i",{staticClass:"iconColorBlock",style:{background:e.boxConfig.iconColor}})]),t._v(" "),i("div",{staticClass:"text"},[i("span",[t._v(t._s(e.titleName))]),t._v(" "),e.problemText?i("i",{staticClass:"question",on:{click:function(i){return t.showProblemDialog(e.titleName,e.problemText)}}}):t._e()])]):t._e()]})],2),t._v(" "),i("div",{staticClass:"moneyShow"},[t._l(t.chartConfig,function(e,n){return[2===e.showType?i("div",{key:n,staticClass:"moneyShowBox"},[i("div",{staticClass:"numShow"},[i("div",{ref:"num",refInFor:!0,staticClass:"num",style:{color:e.boxConfig.titleColor}},[t._v("\n "+t._s(t.getNum(t.selectIndex,n,e))+"\n ")]),t._v(" "),i("div",{ref:"colorBlock",refInFor:!0,staticClass:"colorBlock",style:{background:e.boxConfig.blockColor}})]),t._v(" "),e.tipsText&&e.expressionData?i("div",{staticClass:"multipleShow",style:{color:e.boxConfig.tipsColor}},[t._v("\n "+t._s(e.tipsText[0])),i("span",{staticClass:"multipleNum"},[t._v(t._s(e.expressionData[t.selectIndex]))]),i("span",{staticClass:"bold-text"},[t._v(t._s(e.tipsText[1]))])]):t._e()]):t._e()]})],2)]],2),t._v(" "),i("div",{class:["flowerTexture",{isCps:t.isCps}]}),t._v(" "),i("chart",{attrs:{chartConfig:t.chartConfig,dataSource:t.dataSource,index:t.selectIndex},on:{setIndex:t.setSelectIndex}}),t._v(" "),t.note?i("span",{staticClass:"note"},[t._v(t._s(t.note))]):t._e(),t._v(" "),t.tip?i("div",{staticClass:"tipContent"},[i("p",{staticClass:"tip"},[i("span",{domProps:{innerHTML:t._s(t.tip)}})])]):t._e()],1)},r=[];n._withStripped=!0},2055:function(t,e,i){"use strict";function n(t){s||i(2056)}var r=i(1523),o=i(2057),a=i(2),s=!1,l=n,u=Object(a.a)(r.a,o.a,o.b,!1,l,"data-v-4eebaa8b",null);u.options.__file="src\\components\\GoldFinanceChart\\src\\components\\costTable.vue",e.a=u.exports},2056:function(t,e){},2057:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"layer-finance",on:{touchmove:t.preventMove}},[i("div",{staticClass:"layer-finance-mask",on:{click:function(e){return e.stopPropagation(),t.cancel(e)}}}),t._v(" "),i("div",{staticClass:"layer-finance-box layer_animate cost iphonex_padding"},[i("span",{staticClass:"layer-close",on:{click:function(e){return e.stopPropagation(),t.cancel(e)}}}),t._v(" "),i("p",{staticClass:"main-title"},[t._v("\n 保单利益演示表\n ")]),t._v(" "),i("p",{staticClass:"cost-title"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),i("p",{staticClass:"cost-table-head"},[t._v("\n 基于用户所选信息的保单利益演示如下:\n ")]),t._v(" "),t.tables.cols&&t.tables.rows&&t.tables.rows.length?[i("div",[i("div",{staticClass:"table-tr thead"},[t._l(t.tables.cols,function(e,n){return[t.showCol(n)?i("span",{key:"head-"+n,staticClass:"table-item",style:t.styleOption},[t._v("\n "+t._s(e)+"\n ")]):t._e()]})],2),t._v(" "),i("div",{staticClass:"cost-scroll"},[i("table",{staticClass:"table-body"},[t.tables.rows&&t.tables.rows.length?i("tbody",t._l(t.tables.rows,function(e,n){return i("tr",{key:"tr-"+n,staticClass:"table-tr "},[t._l(e,function(e,r){return[t.showCol(r)?i("td",{key:"td-"+n+"-"+r,staticClass:"table-item"},[t._v("\n "+t._s(Math.round(100*e)/100)+"\n ")]):t._e()]})],2)}),0):t._e()])])])]:[i("div",{staticClass:"no-data"},[t._v("\n 暂时无法展示\n ")])]],2)])},r=[];n._withStripped=!0},2058:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=this,i=e.$createElement,n=e._self._c||i;return e.isShowChart?n("div",[n("benefit",{attrs:{renderData:e.renderData,benefitBtnShow:e.benefitBtnShow,theme:e.realTheme,isCps:e.isCps,unit:e.unit,note:e.note,tip:e.tip,percentageTypes:e.percentageTypes,selectIndex:e.selectIndex},on:{"update:selectIndex":function(t){e.selectIndex=t},"update:select-index":function(t){e.selectIndex=t},showCostTable:e.showCostTable,showAgePicker:e.showAgePicker}}),e._v(" "),n("gold-cost-table",{attrs:{visible:e.costTableVisible,tables:e.tables,theme:e.realTheme},on:{cancelCost:function(t){e.costTableVisible=!1}}}),e._v(" "),n("gold-picker",{ref:"goldPicker",attrs:{data:[this.agePickerData],selectedIndex:[e.selectIndex],confirmColor:e.realTheme.color},on:{select:function(e,i){t.setSelectIndex(i[0])}}})],1):e._e()},r=[];n._withStripped=!0},21:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},22:function(t,e){var i=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++i+n).toString(36))}},23:function(t,e,i){var n=i(29);t.exports=function(t){return Object(n(t))}},24:function(t,e){e.f={}.propertyIsEnumerable},25:function(t,e,i){"use strict";var n={model:{prop:"visible",event:"toggle"},props:{visible:{type:Boolean,default:!1}},data:function(){return{isVisible:!1}},watch:{isVisible:function(t){this.$emit("toggle",t)}},mounted:function(){var t=this;this.$watch("visible",function(e,i){e?t.show():i&&t.hide()},{immediate:!0})},methods:{show:function(){return this.isVisible=!0,this},hide:function(){return this.isVisible=!1,this}}};e.a=n},26:function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},27:function(t,e,i){var n=i(8).f,r=i(6),o=i(3)("toStringTag");t.exports=function(t,e,i){t&&!r(t=i?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},277:function(t,e,i){"use strict";(function(t){function n(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function r(t,e){if(n()<e)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=o.prototype):(null===t&&(t=new o(e)),t.length=e),t}function o(t,e,i){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(t,e,i);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return u(this,t)}return a(this,t,e,i)}function a(t,e,i,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?p(t,e,i,n):"string"==typeof e?h(t,e,i):f(t,e)}function s(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function l(t,e,i,n){return s(e),e<=0?r(t,e):void 0!==i?"string"==typeof n?r(t,e).fill(i,n):r(t,e).fill(i):r(t,e)}function u(t,e){if(s(e),t=r(t,e<0?0:0|d(e)),!o.TYPED_ARRAY_SUPPORT)for(var i=0;i<e;++i)t[i]=0;return t}function h(t,e,i){if("string"==typeof i&&""!==i||(i="utf8"),!o.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var n=0|v(e,i);t=r(t,n);var a=t.write(e,i);return a!==n&&(t=t.slice(0,a)),t}function c(t,e){var i=e.length<0?0:0|d(e.length);t=r(t,i);for(var n=0;n<i;n+=1)t[n]=255&e[n];return t}function p(t,e,i,n){if(e.byteLength,i<0||e.byteLength<i)throw new RangeError("'offset' is out of bounds");if(e.byteLength<i+(n||0))throw new RangeError("'length' is out of bounds");return e=void 0===i&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,i):new Uint8Array(e,i,n),o.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=o.prototype):t=c(t,e),t}function f(t,e){if(o.isBuffer(e)){var i=0|d(e.length);return t=r(t,i),0===t.length?t:(e.copy(t,0,0,i),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||Z(e.length)?r(t,0):c(t,e);if("Buffer"===e.type&&$(e.data))return c(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function d(t){if(t>=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|t}function g(t){return+t!=t&&(t=0),o.alloc(+t)}function v(t,e){if(o.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var i=t.length;if(0===i)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return X(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return G(t).length;default:if(n)return X(t).length;e=(""+e).toLowerCase(),n=!0}}function y(t,e,i){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if(i>>>=0,e>>>=0,i<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return O(this,e,i);case"utf8":case"utf-8":return k(this,e,i);case"ascii":return D(this,e,i);case"latin1":case"binary":return P(this,e,i);case"base64":return I(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,i);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function m(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function _(t,e,i,n,r){if(0===t.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=r?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(r)return-1;i=t.length-1}else if(i<0){if(!r)return-1;i=0}if("string"==typeof e&&(e=o.from(e,n)),o.isBuffer(e))return 0===e.length?-1:x(t,e,i,n,r);if("number"==typeof e)return e&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):x(t,[e],i,n,r);throw new TypeError("val must be string, number or Buffer")}function x(t,e,i,n,r){function o(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}var a=1,s=t.length,l=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,i/=2}var u;if(r){var h=-1;for(u=i;u<s;u++)if(o(t,u)===o(e,-1===h?0:u-h)){if(-1===h&&(h=u),u-h+1===l)return h*a}else-1!==h&&(u-=u-h),h=-1}else for(i+l>s&&(i=s-l),u=i;u>=0;u--){for(var c=!0,p=0;p<l;p++)if(o(t,u+p)!==o(e,p)){c=!1;break}if(c)return u}return-1}function w(t,e,i,n){i=Number(i)||0;var r=t.length-i;n?(n=Number(n))>r&&(n=r):n=r;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[i+a]=s}return a}function b(t,e,i,n){return q(X(e,t.length-i),t,i,n)}function S(t,e,i,n){return q(U(e),t,i,n)}function T(t,e,i,n){return S(t,e,i,n)}function M(t,e,i,n){return q(G(e),t,i,n)}function C(t,e,i,n){return q(j(e,t.length-i),t,i,n)}function I(t,e,i){return 0===e&&i===t.length?K.fromByteArray(t):K.fromByteArray(t.slice(e,i))}function k(t,e,i){i=Math.min(t.length,i);for(var n=[],r=e;r<i;){var o=t[r],a=null,s=o>239?4:o>223?3:o>191?2:1;if(r+s<=i){var l,u,h,c;switch(s){case 1:o<128&&(a=o);break;case 2:l=t[r+1],128==(192&l)&&(c=(31&o)<<6|63&l)>127&&(a=c);break;case 3:l=t[r+1],u=t[r+2],128==(192&l)&&128==(192&u)&&(c=(15&o)<<12|(63&l)<<6|63&u)>2047&&(c<55296||c>57343)&&(a=c);break;case 4:l=t[r+1],u=t[r+2],h=t[r+3],128==(192&l)&&128==(192&u)&&128==(192&h)&&(c=(15&o)<<18|(63&l)<<12|(63&u)<<6|63&h)>65535&&c<1114112&&(a=c)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),r+=s}return A(n)}function A(t){var e=t.length;if(e<=J)return String.fromCharCode.apply(String,t);for(var i="",n=0;n<e;)i+=String.fromCharCode.apply(String,t.slice(n,n+=J));return i}function D(t,e,i){var n="";i=Math.min(t.length,i);for(var r=e;r<i;++r)n+=String.fromCharCode(127&t[r]);return n}function P(t,e,i){var n="";i=Math.min(t.length,i);for(var r=e;r<i;++r)n+=String.fromCharCode(t[r]);return n}function O(t,e,i){var n=t.length;(!e||e<0)&&(e=0),(!i||i<0||i>n)&&(i=n);for(var r="",o=e;o<i;++o)r+=W(t[o]);return r}function L(t,e,i){for(var n=t.slice(e,i),r="",o=0;o<n.length;o+=2)r+=String.fromCharCode(n[o]+256*n[o+1]);return r}function E(t,e,i){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>i)throw new RangeError("Trying to access beyond buffer length")}function R(t,e,i,n,r,a){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<a)throw new RangeError('"value" argument is out of bounds');if(i+n>t.length)throw new RangeError("Index out of range")}function B(t,e,i,n){e<0&&(e=65535+e+1);for(var r=0,o=Math.min(t.length-i,2);r<o;++r)t[i+r]=(e&255<<8*(n?r:1-r))>>>8*(n?r:1-r)}function N(t,e,i,n){e<0&&(e=4294967295+e+1);for(var r=0,o=Math.min(t.length-i,4);r<o;++r)t[i+r]=e>>>8*(n?r:3-r)&255}function z(t,e,i,n,r,o){if(i+n>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function F(t,e,i,n,r){return r||z(t,e,i,4,3.4028234663852886e38,-3.4028234663852886e38),Q.write(t,e,i,n,23,4),i+4}function Y(t,e,i,n,r){return r||z(t,e,i,8,1.7976931348623157e308,-1.7976931348623157e308),Q.write(t,e,i,n,52,8),i+8}function H(t){if(t=V(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function V(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function W(t){return t<16?"0"+t.toString(16):t.toString(16)}function X(t,e){e=e||1/0;for(var i,n=t.length,r=null,o=[],a=0;a<n;++a){if((i=t.charCodeAt(a))>55295&&i<57344){if(!r){if(i>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}r=i;continue}if(i<56320){(e-=3)>-1&&o.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,i<128){if((e-=1)<0)break;o.push(i)}else if(i<2048){if((e-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function U(t){for(var e=[],i=0;i<t.length;++i)e.push(255&t.charCodeAt(i));return e}function j(t,e){for(var i,n,r,o=[],a=0;a<t.length&&!((e-=2)<0);++a)i=t.charCodeAt(a),n=i>>8,r=i%256,o.push(r),o.push(n);return o}function G(t){return K.toByteArray(H(t))}function q(t,e,i,n){for(var r=0;r<n&&!(r+i>=e.length||r>=t.length);++r)e[r+i]=t[r];return r}function Z(t){return t!==t}var K=i(278),Q=i(279),$=i(280);e.Buffer=o,e.SlowBuffer=g,e.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=n(),o.poolSize=8192,o._augment=function(t){return t.__proto__=o.prototype,t},o.from=function(t,e,i){return a(null,t,e,i)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(t,e,i){return l(null,t,e,i)},o.allocUnsafe=function(t){return u(null,t)},o.allocUnsafeSlow=function(t){return u(null,t)},o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.compare=function(t,e){if(!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var i=t.length,n=e.length,r=0,a=Math.min(i,n);r<a;++r)if(t[r]!==e[r]){i=t[r],n=e[r];break}return i<n?-1:n<i?1:0},o.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(t,e){if(!$(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return o.alloc(0);var i;if(void 0===e)for(e=0,i=0;i<t.length;++i)e+=t[i].length;var n=o.allocUnsafe(e),r=0;for(i=0;i<t.length;++i){var a=t[i];if(!o.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,r),r+=a.length}return n},o.byteLength=v,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)m(this,e,e+1);return this},o.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},o.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},o.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?k(this,0,t):y.apply(this,arguments)},o.prototype.equals=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===o.compare(this,t)},o.prototype.inspect=function(){var t="",i=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(t+=" ... ")),"<Buffer "+t+">"},o.prototype.compare=function(t,e,i,n,r){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===n&&(n=0),void 0===r&&(r=this.length),e<0||i>t.length||n<0||r>this.length)throw new RangeError("out of range index");if(n>=r&&e>=i)return 0;if(n>=r)return-1;if(e>=i)return 1;if(e>>>=0,i>>>=0,n>>>=0,r>>>=0,this===t)return 0;for(var a=r-n,s=i-e,l=Math.min(a,s),u=this.slice(n,r),h=t.slice(e,i),c=0;c<l;++c)if(u[c]!==h[c]){a=u[c],s=h[c];break}return a<s?-1:s<a?1:0},o.prototype.includes=function(t,e,i){return-1!==this.indexOf(t,e,i)},o.prototype.indexOf=function(t,e,i){return _(this,t,e,i,!0)},o.prototype.lastIndexOf=function(t,e,i){return _(this,t,e,i,!1)},o.prototype.write=function(t,e,i,n){if(void 0===e)n="utf8",i=this.length,e=0;else if(void 0===i&&"string"==typeof e)n=e,i=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(i)?(i|=0,void 0===n&&(n="utf8")):(n=i,i=void 0)}var r=this.length-e;if((void 0===i||i>r)&&(i=r),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return w(this,t,e,i);case"utf8":case"utf-8":return b(this,t,e,i);case"ascii":return S(this,t,e,i);case"latin1":case"binary":return T(this,t,e,i);case"base64":return M(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,e,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var J=4096;o.prototype.slice=function(t,e){var i=this.length;t=~~t,e=void 0===e?i:~~e,t<0?(t+=i)<0&&(t=0):t>i&&(t=i),e<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<t&&(e=t);var n;if(o.TYPED_ARRAY_SUPPORT)n=this.subarray(t,e),n.__proto__=o.prototype;else{var r=e-t;n=new o(r,void 0);for(var a=0;a<r;++a)n[a]=this[a+t]}return n},o.prototype.readUIntLE=function(t,e,i){t|=0,e|=0,i||E(t,e,this.length);for(var n=this[t],r=1,o=0;++o<e&&(r*=256);)n+=this[t+o]*r;return n},o.prototype.readUIntBE=function(t,e,i){t|=0,e|=0,i||E(t,e,this.length);for(var n=this[t+--e],r=1;e>0&&(r*=256);)n+=this[t+--e]*r;return n},o.prototype.readUInt8=function(t,e){return e||E(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||E(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||E(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return e||E(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,e){return e||E(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,i){t|=0,e|=0,i||E(t,e,this.length);for(var n=this[t],r=1,o=0;++o<e&&(r*=256);)n+=this[t+o]*r;return r*=128,n>=r&&(n-=Math.pow(2,8*e)),n},o.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||E(t,e,this.length);for(var n=e,r=1,o=this[t+--n];n>0&&(r*=256);)o+=this[t+--n]*r;return r*=128,o>=r&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return e||E(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){e||E(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},o.prototype.readInt16BE=function(t,e){e||E(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},o.prototype.readInt32LE=function(t,e){return e||E(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return e||E(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return e||E(t,4,this.length),Q.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||E(t,4,this.length),Q.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||E(t,8,this.length),Q.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||E(t,8,this.length),Q.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,e,i,n){if(t=+t,e|=0,i|=0,!n){R(this,t,e,i,Math.pow(2,8*i)-1,0)}var r=1,o=0;for(this[e]=255&t;++o<i&&(r*=256);)this[e+o]=t/r&255;return e+i},o.prototype.writeUIntBE=function(t,e,i,n){if(t=+t,e|=0,i|=0,!n){R(this,t,e,i,Math.pow(2,8*i)-1,0)}var r=i-1,o=1;for(this[e+r]=255&t;--r>=0&&(o*=256);)this[e+r]=t/o&255;return e+i},o.prototype.writeUInt8=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):B(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):B(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):N(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):N(this,t,e,!1),e+4},o.prototype.writeIntLE=function(t,e,i,n){if(t=+t,e|=0,!n){var r=Math.pow(2,8*i-1);R(this,t,e,i,r-1,-r)}var o=0,a=1,s=0;for(this[e]=255&t;++o<i&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+i},o.prototype.writeIntBE=function(t,e,i,n){if(t=+t,e|=0,!n){var r=Math.pow(2,8*i-1);R(this,t,e,i,r-1,-r)}var o=i-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+i},o.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):B(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):B(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):N(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):N(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,i){return F(this,t,e,!0,i)},o.prototype.writeFloatBE=function(t,e,i){return F(this,t,e,!1,i)},o.prototype.writeDoubleLE=function(t,e,i){return Y(this,t,e,!0,i)},o.prototype.writeDoubleBE=function(t,e,i){return Y(this,t,e,!1,i)},o.prototype.copy=function(t,e,i,n){if(i||(i=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<i&&(n=i),n===i)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-i&&(n=t.length-e+i);var r,a=n-i;if(this===t&&i<e&&e<n)for(r=a-1;r>=0;--r)t[r+e]=this[r+i];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(r=0;r<a;++r)t[r+e]=this[r+i];else Uint8Array.prototype.set.call(t,this.subarray(i,i+a),e);return a},o.prototype.fill=function(t,e,i,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,i=this.length):"string"==typeof i&&(n=i,i=this.length),1===t.length){var r=t.charCodeAt(0);r<256&&(t=r)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!o.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<i)throw new RangeError("Out of range index");if(i<=e)return this;e>>>=0,i=void 0===i?this.length:i>>>0,t||(t=0);var a;if("number"==typeof t)for(a=e;a<i;++a)this[a]=t;else{var s=o.isBuffer(t)?t:X(new o(t,n).toString()),l=s.length;for(a=0;a<i-e;++a)this[a+e]=s[a%l]}return this};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,i(115))},278:function(t,e,i){"use strict";function n(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");return-1===i&&(i=e),[i,i===e?0:4-i%4]}function r(t){var e=n(t),i=e[0],r=e[1];return 3*(i+r)/4-r}function o(t,e,i){return 3*(e+i)/4-i}function a(t){var e,i,r=n(t),a=r[0],s=r[1],l=new p(o(t,a,s)),u=0,h=s>0?a-4:a;for(i=0;i<h;i+=4)e=c[t.charCodeAt(i)]<<18|c[t.charCodeAt(i+1)]<<12|c[t.charCodeAt(i+2)]<<6|c[t.charCodeAt(i+3)],l[u++]=e>>16&255,l[u++]=e>>8&255,l[u++]=255&e;return 2===s&&(e=c[t.charCodeAt(i)]<<2|c[t.charCodeAt(i+1)]>>4,l[u++]=255&e),1===s&&(e=c[t.charCodeAt(i)]<<10|c[t.charCodeAt(i+1)]<<4|c[t.charCodeAt(i+2)]>>2,l[u++]=e>>8&255,l[u++]=255&e),l}function s(t){return h[t>>18&63]+h[t>>12&63]+h[t>>6&63]+h[63&t]}function l(t,e,i){for(var n,r=[],o=e;o<i;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),r.push(s(n));return r.join("")}function u(t){for(var e,i=t.length,n=i%3,r=[],o=0,a=i-n;o<a;o+=16383)r.push(l(t,o,o+16383>a?a:o+16383));return 1===n?(e=t[i-1],r.push(h[e>>2]+h[e<<4&63]+"==")):2===n&&(e=(t[i-2]<<8)+t[i-1],r.push(h[e>>10]+h[e>>4&63]+h[e<<2&63]+"=")),r.join("")}e.byteLength=r,e.toByteArray=a,e.fromByteArray=u;for(var h=[],c=[],p="undefined"!=typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,g=f.length;d<g;++d)h[d]=f[d],c[f.charCodeAt(d)]=d;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},279:function(t,e){e.read=function(t,e,i,n,r){var o,a,s=8*r-n-1,l=(1<<s)-1,u=l>>1,h=-7,c=i?r-1:0,p=i?-1:1,f=t[e+c];for(c+=p,o=f&(1<<-h)-1,f>>=-h,h+=s;h>0;o=256*o+t[e+c],c+=p,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=n;h>0;a=256*a+t[e+c],c+=p,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,n),o-=u}return(f?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,i,n,r,o){var a,s,l,u=8*o-r-1,h=(1<<u)-1,c=h>>1,p=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,d=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=h):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),e+=a+c>=1?p/l:p*Math.pow(2,1-c),e*l>=2&&(a++,l/=2),a+c>=h?(s=0,a=h):a+c>=1?(s=(e*l-1)*Math.pow(2,r),a+=c):(s=e*Math.pow(2,c-1)*Math.pow(2,r),a=0));r>=8;t[i+f]=255&s,f+=d,s/=256,r-=8);for(a=a<<r|s,u+=r;u>0;t[i+f]=255&a,f+=d,a/=256,u-=8);t[i+f-d]|=128*g}},28:function(t,e,i){t.exports={default:i(79),__esModule:!0}},280:function(t,e){var i={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==i.call(t)}},29:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},3:function(t,e,i){var n=i(32)("wks"),r=i(22),o=i(1).Symbol,a="function"==typeof o;(t.exports=function(t){return n[t]||(n[t]=a&&o[t]||(a?o:r)("Symbol."+t))}).store=n},30:function(t,e){var i=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:i)(t)}},31:function(t,e,i){var n=i(32)("keys"),r=i(22);t.exports=function(t){return n[t]||(n[t]=r(t))}},32:function(t,e,i){var n=i(0),r=i(1),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:i(16)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},33:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},34:function(t,e,i){var n=i(10);t.exports=function(t,e){if(!n(t))return t;var i,r;if(e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;if("function"==typeof(i=t.valueOf)&&!n(r=i.call(t)))return r;if(!e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},35:function(t,e){e.f=Object.getOwnPropertySymbols},36:function(t,e,i){e.f=i(3)},37:function(t,e,i){var n=i(1),r=i(0),o=i(16),a=i(36),s=i(8).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=o?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},38:function(t,e,i){var n=i(40);t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,r){return t.call(e,i,n,r)}}return function(){return t.apply(e,arguments)}}},4:function(t,e,i){t.exports=!i(12)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},40:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},41:function(t,e,i){var n=i(10),r=i(1).document,o=n(r)&&n(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},45:function(t,e,i){"use strict";var n=i(16),r=i(13),o=i(49),a=i(7),s=i(18),l=i(66),u=i(27),h=i(70),c=i(3)("iterator"),p=!([].keys&&"next"in[].keys()),f=function(){return this};t.exports=function(t,e,i,d,g,v,y){l(i,e,d);var m,_,x,w=function(t){if(!p&&t in M)return M[t];switch(t){case"keys":case"values":return function(){return new i(this,t)}}return function(){return new i(this,t)}},b=e+" Iterator",S="values"==g,T=!1,M=t.prototype,C=M[c]||M["@@iterator"]||g&&M[g],I=C||w(g),k=g?S?w("entries"):I:void 0,A="Array"==e?M.entries||C:C;if(A&&(x=h(A.call(new t)))!==Object.prototype&&x.next&&(u(x,b,!0),n||"function"==typeof x[c]||a(x,c,f)),S&&C&&"values"!==C.name&&(T=!0,I=function(){return C.call(this)}),n&&!y||!p&&!T&&M[c]||a(M,c,I),s[e]=I,s[b]=f,g)if(m={values:S?I:w("values"),keys:v?I:w("keys"),entries:k},y)for(_ in m)_ in M||o(M,_,m[_]);else r(r.P+r.F*(p||T),e,m);return m}},46:function(t,e,i){var n=i(9),r=i(67),o=i(33),a=i(31)("IE_PROTO"),s=function(){},l=function(){var t,e=i(41)("iframe"),n=o.length;for(e.style.display="none",i(60).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;n--;)delete l.prototype[o[n]];return l()};t.exports=Object.create||function(t,e){var i;return null!==t?(s.prototype=n(t),i=new s,s.prototype=null,i[a]=t):i=l(),void 0===e?i:r(i,e)}},47:function(t,e,i){var n=i(26);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},48:function(t,e,i){t.exports=!i(4)&&!i(12)(function(){return 7!=Object.defineProperty(i(41)("div"),"a",{get:function(){return 7}}).a})},49:function(t,e,i){t.exports=i(7)},5:function(t,e,i){"use strict";function n(t,e){if(t.findIndex)return t.findIndex(e);var i=-1;return t.some(function(t,n,r){var o=e.call(this,t,n,r);if(o)return i=n,o}),i}function r(t){return t?JSON.parse(F()(t)):t}function o(t,e){for(var i in e)t[i]&&"object"===N()(t[i])?o(t[i],e[i]):t[i]=e[i]}function a(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}function s(t){return"[object String]"===Object.prototype.toString.call(t)}function l(t){return"[object Number]"===Object.prototype.toString.call(t)}function u(t){return"[object Object]"===Object.prototype.toString.call(t)}function h(t){return"[object Boolean]"===Object.prototype.toString.call(t)}function c(t){return null===t}function p(t){return void 0!==t&&null!==t}function f(t){return void 0===t}function d(t){return"[object Error]"===Object.prototype.toString.call(t)}function g(t){return"function"==typeof t}function v(t,e,i){function n(e){var i=v,n=y;return v=y=void 0,b=e,_=t.apply(n,i)}function r(t,e){return C?(window.cancelAnimationFrame(x),window.requestAnimationFrame(t)):setTimeout(t,e)}function o(t){if(C)return window.cancelAnimationFrame(t);clearTimeout(t)}function a(t){return b=t,x=r(h,e),S?n(t):_}function s(t){var i=t-w,n=t-b,r=e-i;return T?Math.min(r,m-n):r}function l(t){var i=t-w,n=t-b;return void 0===w||i>=e||i<0||T&&n>=m}function h(){var t=Date.now();if(l(t))return c(t);x=r(h,s(t))}function c(t){return x=void 0,M&&v?n(t):(v=y=void 0,_)}function p(){void 0!==x&&o(x),b=0,v=w=y=x=void 0}function f(){return void 0===x?_:c(Date.now())}function d(){return void 0!==x}function g(){for(var t=Date.now(),i=l(t),o=arguments.length,s=Array(o),u=0;u<o;u++)s[u]=arguments[u];if(v=s,y=this,w=t,i){if(void 0===x)return a(w);if(T)return x=r(h,e),n(w)}return void 0===x&&(x=r(h,e)),_}var v=void 0,y=void 0,m=void 0,_=void 0,x=void 0,w=void 0,b=0,S=!1,T=!1,M=!0,C=!e&&0!==e&&"function"==typeof window.requestAnimationFrame;if("function"!=typeof t)throw new TypeError("Expected a function");return e=+e||0,u(i)&&(S=!!i.leading,T="maxWait"in i,m=T?Math.max(+i.maxWait||0,e):m,M="trailing"in i?!!i.trailing:M),g.cancel=p,g.flush=f,g.pending=d,g}function y(t,e,i){var n=!0,r=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return u(i)&&(n="leading"in i?!!i.leading:n,r="trailing"in i?!!i.trailing:r),v(t,e,{leading:n,trailing:r,maxWait:e})}function m(t){return!!/^1\d{10}$/.test(t)}function _(t){var e=t.length;return e>3&&e<8?t=t.replace(/\s/g,"").replace(/^(.{3})/g,"$1 "):e>=8&&(t=t.replace(/\s/g,"").replace(/^(.{3})(.+)/g,function(t,e,i){return e+" "+i.replace(/(.{4})(?=.)/g,"$1 ")})),t}function x(t){return t.replace(/\s/g,"").replace(/(.{4})(?=.)/g,"$1 ")}function w(t){if(void 0!==t||null!==t)return/^\d+(\.\d+)?$/.test(t+"")?t+"px":t}function b(t){if(!t)return"";var e=t.length;return 2===e?t.split("").join("  "):3===e?t.split("").join(" "):t}function S(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=t.offsetHeight;if(e){var n=t.currentStyle||getComputedStyle(t);i+=parseInt(n.marginTop||0)+parseInt(n.marginBottom||0)}return i}function T(t,e){var i=/^#([a-f\d]{1})([a-f\d]{1})([a-f\d]{1})$/i.exec(t),n=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t),r=null;return i?r={r:parseInt(i[1]+i[1],16),g:parseInt(i[2]+i[2],16),b:parseInt(i[3]+i[3],16)}:n&&(r={r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}),r?void 0!==e?"rgba("+r.r+", "+r.g+", "+r.b+", "+e+")":"rgb("+r.r+", "+r.g+", "+r.b+")":""}function M(t){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefhijklmnopqrstuvwxyz",i=e.length,n="";t=t||32;for(var r=0;r<t;r++)n+=e.charAt(Math.floor(Math.random()*i));return n}function C(t,e){var i=e||location.href,n=new RegExp("(\\?|&)"+t+"=([^&#$\\s]+)"),r=i.match(n);return r&&r[2]}function I(t){var e=window.getComputedStyle(t),i="none"===e.display,n=null===t.offsetParent&&"fixed"!==e.position;return i||n}function k(t,e,i){return Math.min(Math.max(t,e),i)}function A(t){var e=/os (\d\d?_\d(_\d)?)/,i=e.exec(t);if(!i)return null;var n=i[1].split("_").map(function(t){return parseInt(t,10)});return{major:n[0],minor:n[1],patch:n[2]||0}}function D(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";e=e||window.location.href;var i=new RegExp("(\\?|#|&)"+t+"=([^&#]*)(&|#|$)"),n=e.match(i);return decodeURIComponent(n?n[2]:"")}function P(t){return t?d(t)?t.message:s(t)?t:t.errmsg||"请求失败,请稍后重试":"请求失败,请稍后重试"}function O(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=[],i=new RegExp("https?://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]"),n=0;n<t.length;n++){var r=t[n];if(!i.test(r))return;e.push(r.split("?")[0])}return e}function L(t){var e=JSON.parse(F()(t)),i=e.attrModules,n=void 0===i?{}:i,r=e.plan,o=n.applicant,s=n.insureds,l=n.hcpics,u=n.hctext,h=n.makeup,c=n.apphctext,p=n.apphcpics,f={},d=function(t){var e=null,i=null,n=null,r=null,o={},s={},l={};for(var u in t){var h=t[u].defaultValue,c=t[u].required,p=t[u].display;if(a(h)){var f=O(h);f&&(h=f)}1!==Number(c)&&1!==Number(p)||("idType"===u||"id"===u||"idValidType"===u||"idValidEndTime"===u||"idValidStartTime"===u?(e=e||{},e[u]=h):"socialInsAddr"===u||"socialInsDetail"===u||"socialInsPost"===u||"socialInsTel"===u?(i=i||{},i[u]=h):"residentAddr"===u||"residentDetail"===u||"residentPost"===u||"residentTel"===u?(n=n||{},n[u]=h):"officeAddr"===u||"officeDetail"===u||"officePost"===u||"officeTel"===u?(r=r||{},r[u]=h):"companyIdType"===u||"companyId"===u?(s=s||{},s[u]=h):"detail"===u?(l=l||{},l[u]=h):o[u]=h)}return e&&(o.certificate=e),i&&(o.socialIns=i),n&&(o.resident=n),r&&(o.office=r),s&&(o.companyCertificate=s),l&&(o.companyAddress=l),o};if(n.plan&&(r=d(n.plan)),o&&(f.applicant={},o&&(f.applicant=d(o))),s||r){f.insureds=[];for(var g=s||[""],v=0;v<g.length;v++){var y=g[v],m=null,_={};y&&(m=d(y)),m&&(_.insured=m),r&&(_.plan=r),f.insureds.push(_)}}if(u&&(f.hctext=d(u)),c&&(f.apphctext=d(c)),l&&(f.hcpics=d(l)),p&&(f.apphcpics=d(p)),h){f.makeup={};for(var x=h||[""],w=0;w<x.length;w++){var b=x[w],S=null;b&&(S=d(b)),S&&(f.makeup=R()(f.makeup,S))}}return f}i.d(e,"F",function(){return et}),i.d(e,"v",function(){return it}),e.d=n,e.c=r,e.b=o,e.o=a,e.z=s,e.x=l,e.y=u,e.p=h,e.w=c,e.q=p,e.A=f,e.r=d,e.s=g,e.a=v,e.E=y,e.u=m,e.g=_,e.e=x,e.f=w,e.h=b,e.B=S,e.n=T,e.C=M,e.l=C,e.t=I,e.D=k,e.k=A,e.m=D,e.j=P,e.i=L;var E=i(28),R=i.n(E),B=i(75),N=i.n(B),z=i(57),F=i.n(z),Y="undefined"!=typeof window,H=Y&&window.navigator.userAgent.toLowerCase(),V=H&&/msie|trident/.test(H),W=H&&H.indexOf("msie 9.0")>0,X=H&&H.indexOf("edge/")>0,U=H&&H.indexOf("android")>0,j=H&&/iphone|ipad|ipod|ios/.test(H),G=H&&/chrome\/\d+/.test(H)&&!X,q=H&&/MicroMessenger/i.test(H),Z=H&&/wxwork/i.test(H),K=H&&/mucxiaoyusan/i.test(H),Q=H&&/muckacabao/i.test(H),$=H&&/mucyanxuan/i.test(H),J=K||Q,tt=H&&/phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/i.test(H),et={isIE:V,isMobile:tt,isIE9:W,isEdge:X,isAndroid:U,isIOS:j,isChrome:G,isWx:q,isWxWork:Z,isApp:J,isXysApp:K,isKcbApp:Q,isYxApp:$},it=/MucWebAutoTester/.test(window.navigator.userAgent)},50:function(t,e,i){var n=i(6),r=i(11),o=i(68)(!1),a=i(31)("IE_PROTO");t.exports=function(t,e){var i,s=r(t),l=0,u=[];for(i in s)i!=a&&n(s,i)&&u.push(i);for(;e.length>l;)n(s,i=e[l++])&&(~o(u,i)||u.push(i));return u}},51:function(t,e,i){var n=i(50),r=i(33).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,r)}},52:function(t,e,i){"use strict";var n=i(65)(!0);i(45)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,i=this._i;return i>=e.length?{value:void 0,done:!0}:(t=n(e,i),this._i+=t.length,{value:t,done:!1})})},53:function(t,e,i){var n=i(11),r=i(51).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return r(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):r(n(t))}},54:function(t,e,i){i(71);for(var n=i(1),r=i(7),o=i(18),a=i(3)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var u=s[l],h=n[u],c=h&&h.prototype;c&&!c[a]&&r(c,a,u),o[u]=o.Array}},55:function(t,e,i){"use strict";var n=i(1),r=i(6),o=i(4),a=i(13),s=i(49),l=i(74).KEY,u=i(12),h=i(32),c=i(27),p=i(22),f=i(3),d=i(36),g=i(37),v=i(82),y=i(77),m=i(9),_=i(10),x=i(23),w=i(11),b=i(34),S=i(21),T=i(46),M=i(53),C=i(83),I=i(35),k=i(8),A=i(14),D=C.f,P=k.f,O=M.f,L=n.Symbol,E=n.JSON,R=E&&E.stringify,B=f("_hidden"),N=f("toPrimitive"),z={}.propertyIsEnumerable,F=h("symbol-registry"),Y=h("symbols"),H=h("op-symbols"),V=Object.prototype,W="function"==typeof L&&!!I.f,X=n.QObject,U=!X||!X.prototype||!X.prototype.findChild,j=o&&u(function(){return 7!=T(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,e,i){var n=D(V,e);n&&delete V[e],P(t,e,i),n&&t!==V&&P(V,e,n)}:P,G=function(t){var e=Y[t]=T(L.prototype);return e._k=t,e},q=W&&"symbol"==typeof L.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof L},Z=function(t,e,i){return t===V&&Z(H,e,i),m(t),e=b(e,!0),m(i),r(Y,e)?(i.enumerable?(r(t,B)&&t[B][e]&&(t[B][e]=!1),i=T(i,{enumerable:S(0,!1)})):(r(t,B)||P(t,B,S(1,{})),t[B][e]=!0),j(t,e,i)):P(t,e,i)},K=function(t,e){m(t);for(var i,n=v(e=w(e)),r=0,o=n.length;o>r;)Z(t,i=n[r++],e[i]);return t},Q=function(t,e){return void 0===e?T(t):K(T(t),e)},$=function(t){var e=z.call(this,t=b(t,!0));return!(this===V&&r(Y,t)&&!r(H,t))&&(!(e||!r(this,t)||!r(Y,t)||r(this,B)&&this[B][t])||e)},J=function(t,e){if(t=w(t),e=b(e,!0),t!==V||!r(Y,e)||r(H,e)){var i=D(t,e);return!i||!r(Y,e)||r(t,B)&&t[B][e]||(i.enumerable=!0),i}},tt=function(t){for(var e,i=O(w(t)),n=[],o=0;i.length>o;)r(Y,e=i[o++])||e==B||e==l||n.push(e);return n},et=function(t){for(var e,i=t===V,n=O(i?H:w(t)),o=[],a=0;n.length>a;)!r(Y,e=n[a++])||i&&!r(V,e)||o.push(Y[e]);return o};W||(L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(i){this===V&&e.call(H,i),r(this,B)&&r(this[B],t)&&(this[B][t]=!1),j(this,t,S(1,i))};return o&&U&&j(V,t,{configurable:!0,set:e}),G(t)},s(L.prototype,"toString",function(){return this._k}),C.f=J,k.f=Z,i(51).f=M.f=tt,i(24).f=$,I.f=et,o&&!i(16)&&s(V,"propertyIsEnumerable",$,!0),d.f=function(t){return G(f(t))}),a(a.G+a.W+a.F*!W,{Symbol:L});for(var it="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;it.length>nt;)f(it[nt++]);for(var rt=A(f.store),ot=0;rt.length>ot;)g(rt[ot++]);a(a.S+a.F*!W,"Symbol",{for:function(t){return r(F,t+="")?F[t]:F[t]=L(t)},keyFor:function(t){if(!q(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){U=!0},useSimple:function(){U=!1}}),a(a.S+a.F*!W,"Object",{create:Q,defineProperty:Z,defineProperties:K,getOwnPropertyDescriptor:J,getOwnPropertyNames:tt,getOwnPropertySymbols:et});var at=u(function(){I.f(1)});a(a.S+a.F*at,"Object",{getOwnPropertySymbols:function(t){return I.f(x(t))}}),E&&a(a.S+a.F*(!W||u(function(){var t=L();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))})),"JSON",{stringify:function(t){for(var e,i,n=[t],r=1;arguments.length>r;)n.push(arguments[r++]);if(i=e=n[1],(_(e)||void 0!==t)&&!q(t))return y(e)||(e=function(t,e){if("function"==typeof i&&(e=i.call(this,t,e)),!q(e))return e}),n[1]=e,R.apply(E,n)}}),L.prototype[N]||i(7)(L.prototype,N,L.prototype.valueOf),c(L,"Symbol"),c(Math,"Math",!0),c(n.JSON,"JSON",!0)},56:function(t,e,i){var n=i(13),r=i(0),o=i(12);t.exports=function(t,e){var i=(r.Object||{})[t]||Object[t],a={};a[t]=e(i),n(n.S+n.F*o(function(){i(1)}),"Object",a)}},57:function(t,e,i){t.exports={default:i(78),__esModule:!0}},58:function(t,e,i){var n=i(30),r=Math.min;t.exports=function(t){return t>0?r(n(t),9007199254740991):0}},6:function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},60:function(t,e,i){var n=i(1).document;t.exports=n&&n.documentElement},61:function(t,e){},62:function(t,e,i){"use strict";function n(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var r=i(73),o=i.n(r),a=i(92),s=i.n(a),l=i(28),u=i.n(l),h=i(95),c=i.n(h),p=c.a,f=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,g=function(){try{if(!u.a)return!1;var t=new String("abc");if(t[5]="de","5"===s()(t)[0])return!1;for(var e={},i=0;i<10;i++)e["_"+String.fromCharCode(i)]=i;if("0123456789"!==s()(e).map(function(t){return e[t]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(t){n[t]=t}),"abcdefghijklmnopqrst"===o()(u()({},n)).join("")}catch(t){return!1}}()?u.a:function(t,e){for(var i,r,o=n(t),a=1;a<arguments.length;a++){i=Object(arguments[a]);for(var s in i)f.call(i,s)&&(o[s]=i[s]);if(p){r=p(i);for(var l=0;l<r.length;l++)d.call(i,r[l])&&(o[r[l]]=i[r[l]])}}return o};e.a=g},627:function(t,e,i){"use strict";e.a={props:{title:{type:String},subtitle:{type:String},cancelTxt:{type:String,default:""},confirmTxt:{type:String,default:""},swipeTime:{type:Number,default:2500},maskClosable:{type:Boolean,default:!0},confirmColor:{type:String,default:""},cancelColor:{type:String,default:""}},computed:{_cancelTxt:function(){return this.cancelTxt||"取消"},_confirmTxt:function(){return this.confirmTxt||"确定"}}}},64:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},65:function(t,e,i){var n=i(30),r=i(29);t.exports=function(t){return function(e,i){var o,a,s=String(r(e)),l=n(i),u=s.length;return l<0||l>=u?t?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):o:t?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}}},66:function(t,e,i){"use strict";var n=i(46),r=i(21),o=i(27),a={};i(7)(a,i(3)("iterator"),function(){return this}),t.exports=function(t,e,i){t.prototype=n(a,{next:r(1,i)}),o(t,e+" Iterator")}},67:function(t,e,i){var n=i(8),r=i(9),o=i(14);t.exports=i(4)?Object.defineProperties:function(t,e){r(t);for(var i,a=o(e),s=a.length,l=0;s>l;)n.f(t,i=a[l++],e[i]);return t}},68:function(t,e,i){var n=i(11),r=i(58),o=i(69);t.exports=function(t){return function(e,i,a){var s,l=n(e),u=r(l.length),h=o(a,u);if(t&&i!=i){for(;u>h;)if((s=l[h++])!=s)return!0}else for(;u>h;h++)if((t||h in l)&&l[h]===i)return t||h||0;return!t&&-1}}},69:function(t,e,i){var n=i(30),r=Math.max,o=Math.min;t.exports=function(t,e){return t=n(t),t<0?r(t+e,0):o(t,e)}},7:function(t,e,i){var n=i(8),r=i(21);t.exports=i(4)?function(t,e,i){return n.f(t,e,r(1,i))}:function(t,e,i){return t[e]=i,t}},70:function(t,e,i){var n=i(6),r=i(23),o=i(31)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),n(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},71:function(t,e,i){"use strict";var n=i(72),r=i(64),o=i(18),a=i(11);t.exports=i(45)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,i=this._i++;return!t||i>=t.length?(this._t=void 0,r(1)):"keys"==e?r(0,i):"values"==e?r(0,t[i]):r(0,[i,t[i]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},72:function(t,e){t.exports=function(){}},73:function(t,e,i){t.exports={default:i(90),__esModule:!0}},74:function(t,e,i){var n=i(22)("meta"),r=i(10),o=i(6),a=i(8).f,s=0,l=Object.isExtensible||function(){return!0},u=!i(12)(function(){return l(Object.preventExtensions({}))}),h=function(t){a(t,n,{value:{i:"O"+ ++s,w:{}}})},c=function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,n)){if(!l(t))return"F";if(!e)return"E";h(t)}return t[n].i},p=function(t,e){if(!o(t,n)){if(!l(t))return!0;if(!e)return!1;h(t)}return t[n].w},f=function(t){return u&&d.NEED&&l(t)&&!o(t,n)&&h(t),t},d=t.exports={KEY:n,NEED:!1,fastKey:c,getWeak:p,onFreeze:f}},75:function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=i(84),o=n(r),a=i(86),s=n(a),l="function"==typeof s.default&&"symbol"==typeof o.default?function(t){return typeof t}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":typeof t};e.default="function"==typeof s.default&&"symbol"===l(o.default)?function(t){return void 0===t?"undefined":l(t)}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":void 0===t?"undefined":l(t)}},76:function(t,e,i){"use strict";e.a={props:{zIndex:{type:Number,default:100},maskClosable:{type:Boolean,default:!1}}}},77:function(t,e,i){var n=i(26);t.exports=Array.isArray||function(t){return"Array"==n(t)}},78:function(t,e,i){var n=i(0),r=n.JSON||(n.JSON={stringify:JSON.stringify});t.exports=function(t){return r.stringify.apply(r,arguments)}},79:function(t,e,i){i(80),t.exports=i(0).Object.assign},8:function(t,e,i){var n=i(9),r=i(48),o=i(34),a=Object.defineProperty;e.f=i(4)?Object.defineProperty:function(t,e,i){if(n(t),e=o(e,!0),n(i),r)try{return a(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t}},80:function(t,e,i){var n=i(13);n(n.S+n.F,"Object",{assign:i(81)})},81:function(t,e,i){"use strict";var n=i(4),r=i(14),o=i(35),a=i(24),s=i(23),l=i(47),u=Object.assign;t.exports=!u||i(12)(function(){var t={},e={},i=Symbol(),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach(function(t){e[t]=t}),7!=u({},t)[i]||Object.keys(u({},e)).join("")!=n})?function(t,e){for(var i=s(t),u=arguments.length,h=1,c=o.f,p=a.f;u>h;)for(var f,d=l(arguments[h++]),g=c?r(d).concat(c(d)):r(d),v=g.length,y=0;v>y;)f=g[y++],n&&!p.call(d,f)||(i[f]=d[f]);return i}:u},82:function(t,e,i){var n=i(14),r=i(35),o=i(24);t.exports=function(t){var e=n(t),i=r.f;if(i)for(var a,s=i(t),l=o.f,u=0;s.length>u;)l.call(t,a=s[u++])&&e.push(a);return e}},83:function(t,e,i){var n=i(24),r=i(21),o=i(11),a=i(34),s=i(6),l=i(48),u=Object.getOwnPropertyDescriptor;e.f=i(4)?u:function(t,e){if(t=o(t),e=a(e,!0),l)try{return u(t,e)}catch(t){}if(s(t,e))return r(!n.f.call(t,e),t[e])}},84:function(t,e,i){t.exports={default:i(85),__esModule:!0}},85:function(t,e,i){i(52),i(54),t.exports=i(36).f("iterator")},86:function(t,e,i){t.exports={default:i(87),__esModule:!0}},87:function(t,e,i){i(55),i(61),i(88),i(89),t.exports=i(0).Symbol},88:function(t,e,i){i(37)("asyncIterator")},89:function(t,e,i){i(37)("observable")},9:function(t,e,i){var n=i(10);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},90:function(t,e,i){i(91),t.exports=i(0).Object.keys},91:function(t,e,i){var n=i(23),r=i(14);i(56)("keys",function(){return function(t){return r(n(t))}})},913:function(t,e,i){"use strict";var n={value:"value",text:"text",order:"order",children:"children"};e.a={props:{data:{type:Array,default:function(){return[]}},selectedIndex:{type:Array,default:function(){return[]}},alias:{type:Object,default:function(){return{}}}},computed:{valueKey:function(){return this.alias.value||n.value},textKey:function(){return this.alias.text||n.text},orderKey:function(){return n.order},childrenKey:function(){return this.alias.children||n.children},merge:function(){return[this.data,this.selectedIndex]}},watch:{merge:function(t){this.setData(t[0],t[1])}}}},92:function(t,e,i){t.exports={default:i(93),__esModule:!0}},93:function(t,e,i){i(94);var n=i(0).Object;t.exports=function(t){return n.getOwnPropertyNames(t)}},94:function(t,e,i){i(56)("getOwnPropertyNames",function(){return i(53).f})},95:function(t,e,i){t.exports={default:i(96),__esModule:!0}},96:function(t,e,i){i(55),t.exports=i(0).Object.getOwnPropertySymbols},98:function(t,e,i){"use strict";function n(t){var e={},i={},n={};for(var l in t)if(t.hasOwnProperty(l))if(-1!==s.indexOf(l))e[l]=t[l];else if(a.test(l)){var u=a.exec(l)[1];u=Object(o.a)(u),n[u]=t[l]}else i[l]=t[l];return e.on=Object(r.a)(n,e.on),e.props=Object(r.a)(i,e.props),e}e.a=n;var r=i(62),o=i(99),a=new RegExp(/^on(.+)/),s=["class","style","attrs","props","domProps","on","nativeOn","directives","scopedSlots","slot","key","ref","refInFor"]},99:function(t,e,i){"use strict";function n(t,e){var i=l(t,e);return i.charAt(0).toLowerCase()+i.slice(1)}e.a=n;var r=i(28),o=i.n(r),a=i(5),s=function(t){for(var e=!1,i=!1,n=!1,r=0;r<t.length;r++){var o=t[r];e&&/[a-zA-Z]/.test(o)&&o.toUpperCase()===o?(t=t.slice(0,r)+"-"+t.slice(r),e=!1,n=i,i=!0,r++):i&&n&&/[a-zA-Z]/.test(o)&&o.toLowerCase()===o?(t=t.slice(0,r-1)+"-"+t.slice(r-1),n=i,i=!1,e=!0):(e=o.toLowerCase()===o&&o.toUpperCase()!==o,n=i,i=o.toUpperCase()===o&&o.toLowerCase()!==o)}return t},l=function(t,e){if("string"!=typeof t&&!Object(a.o)(t))throw new TypeError("Expected the input to be `string | string[]`");e=o()({pascalCase:!1},e);return t=Array.isArray(t)?t.map(function(t){return t.trim()}).filter(function(t){return t.length}).join("-"):t.trim(),0===t.length?"":1===t.length?e.pascalCase?t.toUpperCase():t.toLowerCase():(t!==t.toLowerCase()&&(t=s(t)),t=t.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,function(t,e){return e.toUpperCase()}).replace(/\d+(\w|$)/g,function(t){return t.toUpperCase()}),function(t){return e.pascalCase?t.charAt(0).toUpperCase()+t.slice(1):t}(t))}}})});
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.GoldFinanceChart=e():t.GoldFinanceChart=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="../lib",e(e.s=2040)}({0:function(t,e){var i=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=i)},1:function(t,e){var i=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},10:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},100:function(t,e,i){"use strict";function n(t,e,i,n){var o=void 0,a=void 0,s=new t({render:function(t){var i=a&&a(t);return i&&!Object(r.o)(i)&&(i=[i]),t(e,o,i||[])},methods:{init:function(){document.body.appendChild(this.$el)},destroy:function(){this.$destroy(),document.body.removeChild(this.$el)}}});return s.updateRenderData=function(t,e){o=t,a=e},s.updateRenderData(i,n),s.$mount(),s.init(),s.$children[0]}e.a=n;var r=i(5)},1e3:function(t,e,i){"use strict";var n=i(119),r=i(112),o=i(76),a=i(116),s=i(913),l=i(627),u=i(25),h=i(152);e.a={name:"ActPicker",mixins:[o.a,u.a,s.a,l.a,a.a],props:{pending:{type:Boolean,default:!1}},data:function(){return{finalData:this.data.slice()}},created:function(){this._values=[],this._indexes=this.selectedIndex},methods:{confirm:function(){if(this._canConfirm()){this.hide();var t=!1,e=[],i=this.finalData.length,n=this._values.length;n!==i&&(t=!0,n>i&&(this._values.length=this._indexes.length=i));for(var r=0;r<i;r++){var o=this._getSelectIndex(this.wheels[r]);this._indexes[r]=o;var a=null,s="";this.finalData[r].length&&(a=this.finalData[r][o][this.valueKey],s=this.finalData[r][o][this.textKey]),this._values[r]!==a&&(t=!0),this._values[r]=a,e[r]=s}this.$emit("select",this._values,this._indexes,e),t&&this.$emit("value-change",this._values,this._indexes,e)}},maskClick:function(){this.maskClosable&&this.cancel()},cancel:function(){this.hide(),this.$emit("cancel")},show:function(){var t=this;if(!this.isVisible)if(this.isVisible=!0,!this.wheels||this.dirty)this.$nextTick(function(){t.wheels=t.wheels||[];for(var e=t.$refs.wheelWrapper,i=0;i<t.finalData.length;i++)t._createWheel(e,i).enable(),t.wheels[i].wheelTo(t._indexes[i]);t.dirty&&t._destroyExtraWheels(),t.dirty=!1});else for(var e=0;e<this.finalData.length;e++)this.wheels[e].enable(),this.wheels[e].wheelTo(this._indexes[e])},hide:function(){if(this.isVisible){this.isVisible=!1;for(var t=0;t<this.finalData.length;t++)this.wheels[t].disable()}},setData:function(t,e){var i=this;this._indexes=e?[].concat(e):[],this.finalData=t.slice(),this.isVisible?this.$nextTick(function(){var t=i.$refs.wheelWrapper;i.finalData.forEach(function(e,n){i._createWheel(t,n),i.wheels[n].wheelTo(i._indexes[n])}),i._destroyExtraWheels()}):this.dirty=!0},refill:function(t){var e=this,i=[];return t.length?(t.forEach(function(t,n){i[n]=e.refillColumn(n,t)}),i):i},refillColumn:function(t,e){var i=this,n=this.$refs.wheelWrapper,r=n.children[t].querySelector(".act-picker-wheel-scroll"),o=!!this.wheels&&this.wheels[t],a=0;if(r&&o){var s=this.finalData[t];this.$set(this.finalData,t,e);var l=o.getSelectedIndex();if(s.length)for(var u=s[l][this.valueKey],h=0;h<e.length;h++)if(e[h][this.valueKey]===u){a=h;break}this._indexes[t]=a,this.$nextTick(function(){o=i._createWheel(n,t),o.wheelTo(a)})}return a},scrollTo:function(t,e){var i=this.wheels[t];this._indexes[t]=e,i.wheelTo(e)},refresh:function(){var t=this;this.$nextTick(function(){t.wheels.forEach(function(t){t.refresh()})})},_createWheel:function(t,e){var i=this;if(this.wheels[e])this.wheels[e].refresh();else{var r=this.wheels[e]=new n.default(t.children[e],{wheel:{selectedIndex:this._indexes[e]||0,wheelWrapperClass:"act-picker-wheel-scroll",wheelItemClass:"act-picker-wheel-item"},swipeTime:this.swipeTime,observeDOM:!1,useTransition:h.a});r.on("scrollEnd",function(){i.$emit("change",e,i._getSelectIndex(r))})}return this.wheels[e]},_destroyExtraWheels:function(){var t=this.finalData.length;if(this.wheels.length>t){this.wheels.splice(t).forEach(function(t){t.destroy()})}},_canConfirm:function(){return!this.pending&&this.wheels.every(function(t){return!t.isInTransition})},_getFlexOrder:function(t){return t[0]?t[0][this.orderKey]:0},_getSelectIndex:function(t){var e=t.y;return h.a?t.getSelectedIndex():e>t.minScrollY?0:e<t.maxScrollY?t.items.length-1:Math.round(Math.abs(e/t.itemHeight))}},beforeDestroy:function(){this.wheels&&this.wheels.forEach(function(t){t.destroy()}),this.wheels=null},components:{ActPopup:r.a}}},101:function(t,e,i){var n=i(26),r=i(3)("toStringTag"),o="Arguments"==n(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,i,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=a(e=Object(t),r))?i:o?n(e):"Object"==(s=n(e))&&"function"==typeof e.callee?"Arguments":s}},102:function(t,e,i){"use strict";var n=i(25),r=i(76);e.a={name:"ActPopup",mixins:[n.a,r.a],props:{type:{type:String,default:""},mask:{type:Boolean,default:!0},content:{type:String,default:""},center:{type:Boolean,default:!0},opacity:{type:[Number,String],default:.7},pointerEvent:{type:String,default:""},zIndex:{type:[String,Number],default:"999"},topBorderRadius:{type:Boolean,default:!1}},computed:{typeClass:function(){return this.type?"act-"+this.type:""},maskBgColor:function(){return"rgba(0, 0, 0, "+this.opacity+")"}},methods:{maskClick:function(t){this.$emit("mask-click",t)}}}},106:function(t,e,i){"use strict";e.__esModule=!0;var n=i(28),r=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=r.default||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}},11:function(t,e,i){var n=i(47),r=i(29);t.exports=function(t){return n(r(t))}},112:function(t,e,i){"use strict";function n(t){s||i(131)}var r=i(102),o=i(132),a=i(2),s=!1,l=n,u=Object(a.a)(r.a,o.a,o.b,!1,l,null,null);u.options.__file="src\\components\\common\\popup.vue",e.a=u.exports},113:function(t,e,i){var n=i(101),r=i(3)("iterator"),o=i(18);t.exports=i(0).getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||o[n(t)]}},115:function(t,e){var i;i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(i=window)}t.exports=i},116:function(t,e,i){"use strict";function n(t){t.preventDefault()}var r={watch:{isVisible:function(t){t?document.body.addEventListener("touchmove",n,{passive:!1}):document.body.removeEventListener("touchmove",n,{passive:!1})}},beforeDestroy:function(){document.body.removeEventListener("touchmove",n,{passive:!1})}};e.a=r},1165:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(15),r=i(1166);r.a.install=function(t){t.component(r.a.name,r.a),t.prototype.$createPicker=Object(n.a)(r.a,t)},e.default=r.a},1166:function(t,e,i){"use strict";function n(t){s||i(1167)}var r=i(1e3),o=i(1168),a=i(2),s=!1,l=n,u=Object(a.a)(r.a,o.a,o.b,!1,l,"data-v-65cf9f1c",null);u.options.__file="src\\components\\Picker\\src\\index.vue",e.a=u.exports},1167:function(t,e){},1168:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("transition",{attrs:{name:"act-picker-fade"}},[i("act-popup",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],attrs:{type:"picker",mask:!0,center:!1,topBorderRadius:!0,zIndex:t.zIndex},on:{touchmove:function(t){t.preventDefault()},"mask-click":t.maskClick}},[i("transition",{attrs:{name:"act-picker-move"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"act-picker-panel",on:{click:function(t){t.stopPropagation()}}},[i("div",{staticClass:"act-picker-choose"},[i("span",{staticClass:"act-picker-cancel",style:{color:t.cancelColor},on:{click:t.cancel}},[t._v(t._s(t._cancelTxt))]),t._v(" "),i("span",{staticClass:"act-picker-confirm",style:{color:t.confirmColor},on:{click:t.confirm}},[t._v(t._s(t._confirmTxt))]),t._v(" "),i("div",{staticClass:"act-picker-title-group"},[i("h1",{staticClass:"act-picker-title",domProps:{innerHTML:t._s(t.title)}}),t._v(" "),t.subtitle?i("h2",{staticClass:"act-picker-subtitle",domProps:{innerHTML:t._s(t.subtitle)}}):t._e()])]),t._v(" "),i("div",{staticClass:"act-picker-content"},[i("i",{staticClass:"border-bottom-1px"}),t._v(" "),i("i",{staticClass:"border-top-1px"}),t._v(" "),i("div",{ref:"wheelWrapper",staticClass:"act-picker-wheel-wrapper"},t._l(t.finalData,function(e,n){return i("div",{key:n,style:{order:t._getFlexOrder(e)}},[i("ul",{staticClass:"act-picker-wheel-scroll"},t._l(e,function(e,n){return i("li",{key:n,staticClass:"act-picker-wheel-item",domProps:{innerHTML:t._s(e[t.textKey])}})}),0)])}),0)]),t._v(" "),i("div",{staticClass:"act-picker-footer"})])])],1)],1)},r=[];n._withStripped=!0},119:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(154);e.default=n.a},12:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},13:function(t,e,i){var n=i(1),r=i(0),o=i(38),a=i(7),s=i(6),l=function(t,e,i){var u,h,c,p=t&l.F,f=t&l.G,d=t&l.S,g=t&l.P,v=t&l.B,y=t&l.W,m=f?r:r[e]||(r[e]={}),_=m.prototype,x=f?n:d?n[e]:(n[e]||{}).prototype;f&&(i=e);for(u in i)(h=!p&&x&&void 0!==x[u])&&s(m,u)||(c=h?x[u]:i[u],m[u]=f&&"function"!=typeof x[u]?i[u]:v&&h?o(c,n):y&&x[u]==c?function(t){var e=function(e,i,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,i)}return new t(e,i,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(c):g&&"function"==typeof c?o(Function.call,c):c,g&&((m.virtual||(m.virtual={}))[u]=c,t&l.R&&_&&!_[u]&&a(_,u,c)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},131:function(t,e){},132:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"act-popup",class:t.typeClass,style:{pointerEvents:t.pointerEvent,zIndex:t.zIndex}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.mask,expression:"mask"}],staticClass:"act-popup-mask act-row act-middle",style:{backgroundColor:t.maskBgColor},on:{click:t.maskClick}},[t._t("mask")],2),t._v(" "),i("div",{staticClass:"act-popup-container",class:{"act-popup-center":t.center}},[t.$slots.default?i("div",{class:{"act-popup-content":!0,"act-popup-top-radius":t.topBorderRadius}},[t._t("default")],2):i("div",{class:{"act-popup-content":!0,"act-popup-top-radius":t.topBorderRadius},domProps:{innerHTML:t._s(t.content)}})])])},r=[];n._withStripped=!0},134:function(t,e,i){t.exports={default:i(180),__esModule:!0}},1366:function(t,e,i){(function(t){!function(t,i){i(e)}(0,function(t){"use strict";function e(t,e){function i(){this.constructor=t}if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");yv(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}function i(t){for(var e in Cv)t[e]&&(Cv[e]=t[e])}function n(){return zv++}function r(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function o(t){if(null==t||"object"!=typeof t)return t;var e=t,i=Av.call(t);if("[object Array]"===i){if(!W(t)){e=[];for(var n=0,r=t.length;r>n;n++)e[n]=o(t[n])}}else if(kv[i]){if(!W(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var n=0,r=t.length;r>n;n++)e[n]=t[n]}}}else if(!Iv[i]&&!W(t)&&!D(t)){e={};for(var s in t)t.hasOwnProperty(s)&&s!==Nv&&(e[s]=o(t[s]))}return e}function a(t,e,i){if(!I(e)||!I(t))return i?o(e):t;for(var n in e)if(e.hasOwnProperty(n)&&n!==Nv){var r=t[n],s=e[n];!I(s)||!I(r)||b(s)||b(r)||D(s)||D(r)||k(s)||k(r)||W(s)||W(r)?!i&&n in t||(t[n]=o(e[n])):a(r,s,i)}return t}function s(t,e){for(var i=t[0],n=1,r=t.length;r>n;n++)i=a(i,t[n],e);return i}function l(t,e){if(Object.assign)Object.assign(t,e);else for(var i in e)e.hasOwnProperty(i)&&i!==Nv&&(t[i]=e[i]);return t}function u(t,e,i){for(var n=_(e),r=0;r<n.length;r++){var o=n[r];(i?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}function h(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var i=0,n=t.length;n>i;i++)if(t[i]===e)return i}return-1}function c(t,e){function i(){}var n=t.prototype;i.prototype=e.prototype,t.prototype=new i;for(var r in n)n.hasOwnProperty(r)&&(t.prototype[r]=n[r]);t.prototype.constructor=t,t.superClass=e}function p(t,e,i){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),r=0;r<n.length;r++){var o=n[r];"constructor"!==o&&(i?null!=e[o]:null==t[o])&&(t[o]=e[o])}else u(t,e,i)}function f(t){return!!t&&("string"!=typeof t&&"number"==typeof t.length)}function d(t,e,i){if(t&&e)if(t.forEach&&t.forEach===Pv)t.forEach(e,i);else if(t.length===+t.length)for(var n=0,r=t.length;r>n;n++)e.call(i,t[n],n,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(i,t[o],o,t)}function g(t,e,i){if(!t)return[];if(!e)return z(t);if(t.map&&t.map===Ev)return t.map(e,i);for(var n=[],r=0,o=t.length;o>r;r++)n.push(e.call(i,t[r],r,t));return n}function v(t,e,i,n){if(t&&e){for(var r=0,o=t.length;o>r;r++)i=e.call(n,i,t[r],r,t);return i}}function y(t,e,i){if(!t)return[];if(!e)return z(t);if(t.filter&&t.filter===Ov)return t.filter(e,i);for(var n=[],r=0,o=t.length;o>r;r++)e.call(i,t[r],r,t)&&n.push(t[r]);return n}function m(t,e,i){if(t&&e)for(var n=0,r=t.length;r>n;n++)if(e.call(i,t[n],n,t))return t[n]}function _(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(i);return e}function x(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];return function(){return t.apply(e,i.concat(Lv.call(arguments)))}}function w(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return function(){return t.apply(this,e.concat(Lv.call(arguments)))}}function b(t){return Array.isArray?Array.isArray(t):"[object Array]"===Av.call(t)}function S(t){return"function"==typeof t}function T(t){return"string"==typeof t}function M(t){return"[object String]"===Av.call(t)}function C(t){return"number"==typeof t}function I(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function k(t){return!!Iv[Av.call(t)]}function A(t){return!!kv[Av.call(t)]}function D(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function P(t){return null!=t.colorStops}function O(t){return null!=t.image}function L(t){return"[object RegExp]"===Av.call(t)}function E(t){return t!==t}function R(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=0,n=t.length;n>i;i++)if(null!=t[i])return t[i]}function B(t,e){return null!=t?t:e}function N(t,e,i){return null!=t?t:null!=e?e:i}function z(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return Lv.apply(t,e)}function F(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function Y(t,e){if(!t)throw new Error(e)}function H(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function V(t){t[Hv]=!0}function W(t){return t[Hv]}function X(){return Wv?new Map:new Vv}function U(t){return new Xv(t)}function j(t,e){for(var i=new t.constructor(t.length+e.length),n=0;n<t.length;n++)i[n]=t[n];for(var r=t.length,n=0;n<e.length;n++)i[n+r]=e[n];return i}function G(t,e){var i;if(Object.create)i=Object.create(t);else{var n=function(){};n.prototype=t,i=new n}return e&&l(i,e),i}function q(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Z(t,e){return t.hasOwnProperty(e)}function K(){}function Q(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function $(t,e){return t[0]=e[0],t[1]=e[1],t}function J(t){return[t[0],t[1]]}function tt(t,e,i){return t[0]=e,t[1]=i,t}function et(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t}function it(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t}function nt(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t}function rt(t){return Math.sqrt(ot(t))}function ot(t){return t[0]*t[0]+t[1]*t[1]}function at(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t}function st(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t}function lt(t,e){return t[0]*e[0]+t[1]*e[1]}function ut(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t}function ht(t,e){var i=rt(e);return 0===i?(t[0]=0,t[1]=0):(t[0]=e[0]/i,t[1]=e[1]/i),t}function ct(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}function pt(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function ft(t,e){return t[0]=-e[0],t[1]=-e[1],t}function dt(t,e,i,n){return t[0]=e[0]+n*(i[0]-e[0]),t[1]=e[1]+n*(i[1]-e[1]),t}function gt(t,e,i){var n=e[0],r=e[1];return t[0]=i[0]*n+i[2]*r+i[4],t[1]=i[1]*n+i[3]*r+i[5],t}function vt(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t}function yt(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t}function mt(t,e,i,n,r,o){var a=n+"-"+r,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~r)/ey);return t[i][l]}for(var u=n|1<<i,h=i+1;n&1<<h;)h++;for(var c=0,p=0,f=0;s>p;p++){var d=1<<p;d&r||(c+=(f%2?-1:1)*t[i][p]*mt(t,e-1,h,u,r|d,o),f++)}return o[a]=c,c}function _t(t,e){var i=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],n={},r=mt(i,8,0,0,0,n);if(0!==r){for(var o=[],a=0;8>a;a++)for(var s=0;8>s;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*mt(i,7,0===a?1:0,1<<a,1<<s,n)/r*e[a];return function(t,e,i){var n=e*o[6]+i*o[7]+1;t[0]=(e*o[0]+i*o[1]+o[2])/n,t[1]=(e*o[3]+i*o[4]+o[5])/n}}}function xt(t,e,i,n,r){return wt(ny,e,n,r,!0)&&wt(t,i,ny[0],ny[1])}function wt(t,e,i,n,r){if(e.getBoundingClientRect&&xv.domSupported&&!Tt(e)){var o=e[iy]||(e[iy]={}),a=bt(e,o),s=St(a,o,r);if(s)return s(t,i,n),!0}return!1}function bt(t,e){var i=e.markers;if(i)return i;i=e.markers=[];for(var n=["left","right"],r=["top","bottom"],o=0;4>o;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",r[u]+":0",n[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),t.appendChild(a),i.push(a)}return i}function St(t,e,i){for(var n=i?"invTrans":"trans",r=e[n],o=e.srcCoords,a=[],s=[],l=!0,u=0;4>u;u++){var h=t[u].getBoundingClientRect(),c=2*u,p=h.left,f=h.top;a.push(p,f),l=l&&o&&p===o[c]&&f===o[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[n]=i?_t(s,a):_t(a,s))}function Tt(t){return"CANVAS"===t.nodeName.toUpperCase()}function Mt(t){return null==t?"":(t+"").replace(ry,function(t,e){return oy[e]})}function Ct(t,e,i,n){return i=i||{},n?It(t,e,i):ly&&null!=e.layerX&&e.layerX!==e.offsetX?(i.zrX=e.layerX,i.zrY=e.layerY):null!=e.offsetX?(i.zrX=e.offsetX,i.zrY=e.offsetY):It(t,e,i),i}function It(t,e,i){if(xv.domSupported&&t.getBoundingClientRect){var n=e.clientX,r=e.clientY;if(Tt(t)){var o=t.getBoundingClientRect();return i.zrX=n-o.left,void(i.zrY=r-o.top)}if(wt(sy,t,n,r))return i.zrX=sy[0],void(i.zrY=sy[1])}i.zrX=i.zrY=0}function kt(t){return t||window.event}function At(t,e,i){if(e=kt(e),null!=e.zrX)return e;var n=e.type;if(n&&n.indexOf("touch")>=0){var r="touchend"!==n?e.targetTouches[0]:e.changedTouches[0];r&&Ct(t,r,e,i)}else{Ct(t,e,e,i);var o=Dt(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&ay.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function Dt(t){var e=t.wheelDelta;if(e)return e;var i=t.deltaX,n=t.deltaY;return null==i||null==n?e:3*Math.abs(0!==n?n:i)*(n>0?-1:0>n?1:i>0?-1:1)}function Pt(t,e,i,n){t.addEventListener(e,i,n)}function Ot(t,e,i,n){t.removeEventListener(e,i,n)}function Lt(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return Math.sqrt(e*e+i*i)}function Et(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}function Rt(){return[1,0,0,1,0,0]}function Bt(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Nt(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function zt(t,e,i){var n=e[0]*i[0]+e[2]*i[1],r=e[1]*i[0]+e[3]*i[1],o=e[0]*i[2]+e[2]*i[3],a=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],l=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function Ft(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t}function Yt(t,e,i){var n=e[0],r=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(i),h=Math.cos(i);return t[0]=n*h+a*u,t[1]=-n*u+a*h,t[2]=r*h+s*u,t[3]=-r*u+h*s,t[4]=h*o+u*l,t[5]=h*l-u*o,t}function Ht(t,e,i){var n=i[0],r=i[1];return t[0]=e[0]*n,t[1]=e[1]*r,t[2]=e[2]*n,t[3]=e[3]*r,t[4]=e[4]*n,t[5]=e[5]*r,t}function Vt(t,e){var i=e[0],n=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=i*a-o*n;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*s-a*r)*l,t[5]=(o*r-i*s)*l,t):null}function Wt(t){var e=Rt();return Nt(e,t),e}function Xt(t,e,i){return{type:t,event:i,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta,zrByTouch:i.zrByTouch,which:i.which,stop:Ut}}function Ut(){uy(this.event)}function jt(t,e,i){if(t[t.rectHover?"rectContain":"contain"](e,i)){for(var n=t,r=void 0,o=!1;n;){if(n.ignoreClip&&(o=!0),!o){var a=n.getClipPath();if(a&&!a.contain(e,i))return!1;n.silent&&(r=!0)}var s=n.__hostTarget;n=s||n.parent}return!r||Sy}return!1}function Gt(t,e,i,n,r){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=jt(a,i,n))&&(!e.topTarget&&(e.topTarget=a),s!==Sy)){e.target=a;break}}}function qt(t,e,i){var n=t.painter;return 0>e||e>n.getWidth()||0>i||i>n.getHeight()}function Zt(t){for(var e=0;t>=Dy;)e|=1&t,t>>=1;return t+e}function Kt(t,e,i,n){var r=e+1;if(r===i)return 1;if(n(t[r++],t[e])<0){for(;i>r&&n(t[r],t[r-1])<0;)r++;Qt(t,e,r)}else for(;i>r&&n(t[r],t[r-1])>=0;)r++;return r-e}function Qt(t,e,i){for(i--;i>e;){var n=t[e];t[e++]=t[i],t[i--]=n}}function $t(t,e,i,n,r){for(n===e&&n++;i>n;n++){for(var o,a=t[n],s=e,l=n;l>s;)o=s+l>>>1,r(a,t[o])<0?l=o:s=o+1;var u=n-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function Jt(t,e,i,n,r,o){var a=0,s=0,l=1;if(o(t,e[i+r])>0){for(s=n-r;s>l&&o(t,e[i+r+l])>0;)a=l,0>=(l=1+(l<<1))&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;s>l&&o(t,e[i+r-l])<=0;)a=l,0>=(l=1+(l<<1))&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;l>a;){var h=a+(l-a>>>1);o(t,e[i+h])>0?a=h+1:l=h}return l}function te(t,e,i,n,r,o){var a=0,s=0,l=1;if(o(t,e[i+r])<0){for(s=r+1;s>l&&o(t,e[i+r-l])<0;)a=l,0>=(l=1+(l<<1))&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=n-r;s>l&&o(t,e[i+r+l])>=0;)a=l,0>=(l=1+(l<<1))&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;l>a;){var h=a+(l-a>>>1);o(t,e[i+h])<0?l=h:a=h+1}return l}function ee(t,e){function i(t,e){l[c]=t,u[c]=e,c+=1}function n(){for(;c>1;){var t=c-2;if(t>=1&&u[t-1]<=u[t]+u[t+1]||t>=2&&u[t-2]<=u[t]+u[t-1])u[t-1]<u[t+1]&&t--;else if(u[t]>u[t+1])break;o(t)}}function r(){for(;c>1;){var t=c-2;t>0&&u[t-1]<u[t+1]&&t--,o(t)}}function o(i){var n=l[i],r=u[i],o=l[i+1],h=u[i+1];u[i]=r+h,i===c-3&&(l[i+1]=l[i+2],u[i+1]=u[i+2]),c--;var p=te(t[o],t,n,r,0,e);n+=p,0!==(r-=p)&&0!==(h=Jt(t[n+r-1],t,o,h,h-1,e))&&(h>=r?a(n,r,o,h):s(n,r,o,h))}function a(i,n,r,o){var a=0;for(a=0;n>a;a++)p[a]=t[i+a];var s=0,l=r,u=i;if(t[u++]=t[l++],0!=--o){if(1===n){for(a=0;o>a;a++)t[u+a]=t[l+a];return void(t[u+o]=p[s])}for(var c,f,d,g=h;;){c=0,f=0,d=!1;do{if(e(t[l],p[s])<0){if(t[u++]=t[l++],f++,c=0,0==--o){d=!0;break}}else if(t[u++]=p[s++],c++,f=0,1==--n){d=!0;break}}while(g>(c|f));if(d)break;do{if(0!==(c=te(t[l],p,s,n,0,e))){for(a=0;c>a;a++)t[u+a]=p[s+a];if(u+=c,s+=c,1>=(n-=c)){d=!0;break}}if(t[u++]=t[l++],0==--o){d=!0;break}if(0!==(f=Jt(p[s],t,l,o,0,e))){for(a=0;f>a;a++)t[u+a]=t[l+a];if(u+=f,l+=f,0===(o-=f)){d=!0;break}}if(t[u++]=p[s++],1==--n){d=!0;break}g--}while(c>=Py||f>=Py);if(d)break;0>g&&(g=0),g+=2}if(h=g,1>h&&(h=1),1===n){for(a=0;o>a;a++)t[u+a]=t[l+a];t[u+o]=p[s]}else{if(0===n)throw new Error;for(a=0;n>a;a++)t[u+a]=p[s+a]}}else for(a=0;n>a;a++)t[u+a]=p[s+a]}function s(i,n,r,o){var a=0;for(a=0;o>a;a++)p[a]=t[r+a];var s=i+n-1,l=o-1,u=r+o-1,c=0,f=0;if(t[u--]=t[s--],0!=--n){if(1===o){for(u-=n,s-=n,f=u+1,c=s+1,a=n-1;a>=0;a--)t[f+a]=t[c+a];return void(t[u]=p[l])}for(var d=h;;){var g=0,v=0,y=!1;do{if(e(p[l],t[s])<0){if(t[u--]=t[s--],g++,v=0,0==--n){y=!0;break}}else if(t[u--]=p[l--],v++,g=0,1==--o){y=!0;break}}while(d>(g|v));if(y)break;do{if(0!==(g=n-te(p[l],t,i,n,n-1,e))){for(u-=g,s-=g,n-=g,f=u+1,c=s+1,a=g-1;a>=0;a--)t[f+a]=t[c+a];if(0===n){y=!0;break}}if(t[u--]=p[l--],1==--o){y=!0;break}if(0!==(v=o-Jt(t[s],p,0,o,o-1,e))){for(u-=v,l-=v,o-=v,f=u+1,c=l+1,a=0;v>a;a++)t[f+a]=p[c+a];if(1>=o){y=!0;break}}if(t[u--]=t[s--],0==--n){y=!0;break}d--}while(g>=Py||v>=Py);if(y)break;0>d&&(d=0),d+=2}if(h=d,1>h&&(h=1),1===o){for(u-=n,s-=n,f=u+1,c=s+1,a=n-1;a>=0;a--)t[f+a]=t[c+a];t[u]=p[l]}else{if(0===o)throw new Error;for(c=u-(o-1),a=0;o>a;a++)t[c+a]=p[a]}}else for(c=u-(o-1),a=0;o>a;a++)t[c+a]=p[a]}var l,u,h=Py,c=0,p=[];return l=[],u=[],{mergeRuns:n,forceMergeRuns:r,pushRun:i}}function ie(t,e,i,n){i||(i=0),n||(n=t.length);var r=n-i;if(!(2>r)){var o=0;if(Dy>r)return o=Kt(t,i,n,e),void $t(t,i,n,i+o,e);var a=ee(t,e),s=Zt(r);do{if(o=Kt(t,i,n,e),s>o){var l=r;l>s&&(l=s),$t(t,i,i+l,i+o,e),o=l}a.pushRun(i,o),a.mergeRuns(),r-=o,i+=o}while(0!==r);a.forceMergeRuns()}}function ne(){Ey||(Ey=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function re(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function oe(t){return t>-Yy&&Yy>t}function ae(t){return t>Yy||-Yy>t}function se(t,e,i,n,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*n+3*o*i)}function le(t,e,i,n,r){var o=1-r;return 3*(((e-t)*o+2*(i-e)*r)*o+(n-i)*r*r)}function ue(t,e,i,n,r,o){var a=n+3*(e-i)-t,s=3*(i-2*e+t),l=3*(e-t),u=t-r,h=s*s-3*a*l,c=s*l-9*a*u,p=l*l-3*s*u,f=0;if(oe(h)&&oe(c))if(oe(s))o[0]=0;else{var d=-l/s;d>=0&&1>=d&&(o[f++]=d)}else{var g=c*c-4*h*p;if(oe(g)){var v=c/h,d=-s/a+v,y=-v/2;d>=0&&1>=d&&(o[f++]=d),y>=0&&1>=y&&(o[f++]=y)}else if(g>0){var m=Fy(g),_=h*s+1.5*a*(-c+m),x=h*s+1.5*a*(-c-m);_=0>_?-zy(-_,Wy):zy(_,Wy),x=0>x?-zy(-x,Wy):zy(x,Wy);var d=(-s-(_+x))/(3*a);d>=0&&1>=d&&(o[f++]=d)}else{var w=(2*h*s-3*a*c)/(2*Fy(h*h*h)),b=Math.acos(w)/3,S=Fy(h),T=Math.cos(b),d=(-s-2*S*T)/(3*a),y=(-s+S*(T+Vy*Math.sin(b)))/(3*a),M=(-s+S*(T-Vy*Math.sin(b)))/(3*a);d>=0&&1>=d&&(o[f++]=d),y>=0&&1>=y&&(o[f++]=y),M>=0&&1>=M&&(o[f++]=M)}}return f}function he(t,e,i,n,r){var o=6*i-12*e+6*t,a=9*e+3*n-3*t-9*i,s=3*e-3*t,l=0;if(oe(a)){if(ae(o)){var u=-s/o;u>=0&&1>=u&&(r[l++]=u)}}else{var h=o*o-4*a*s;if(oe(h))r[0]=-o/(2*a);else if(h>0){var c=Fy(h),u=(-o+c)/(2*a),p=(-o-c)/(2*a);u>=0&&1>=u&&(r[l++]=u),p>=0&&1>=p&&(r[l++]=p)}}return l}function ce(t,e,i,n,r,o){var a=(e-t)*r+t,s=(i-e)*r+e,l=(n-i)*r+i,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=n}function pe(t,e,i,n,r,o,a,s,l,u,h){var c,p,f,d,g,v=.005,y=1/0;Xy[0]=l,Xy[1]=u;for(var m=0;1>m;m+=.05)Uy[0]=se(t,i,r,a,m),Uy[1]=se(e,n,o,s,m),d=Kv(Xy,Uy),y>d&&(c=m,y=d);y=1/0;for(var _=0;32>_&&!(Hy>v);_++)p=c-v,f=c+v,Uy[0]=se(t,i,r,a,p),Uy[1]=se(e,n,o,s,p),d=Kv(Uy,Xy),p>=0&&y>d?(c=p,y=d):(jy[0]=se(t,i,r,a,f),jy[1]=se(e,n,o,s,f),g=Kv(jy,Xy),1>=f&&y>g?(c=f,y=g):v*=.5);return h&&(h[0]=se(t,i,r,a,c),h[1]=se(e,n,o,s,c)),Fy(y)}function fe(t,e,i,n,r,o,a,s,l){for(var u=t,h=e,c=0,p=1/l,f=1;l>=f;f++){var d=f*p,g=se(t,i,r,a,d),v=se(e,n,o,s,d),y=g-u,m=v-h;c+=Math.sqrt(y*y+m*m),u=g,h=v}return c}function de(t,e,i,n){var r=1-n;return r*(r*t+2*n*e)+n*n*i}function ge(t,e,i,n){return 2*((1-n)*(e-t)+n*(i-e))}function ve(t,e,i,n,r){var o=t-2*e+i,a=2*(e-t),s=t-n,l=0;if(oe(o)){if(ae(a)){var u=-s/a;u>=0&&1>=u&&(r[l++]=u)}}else{var h=a*a-4*o*s;if(oe(h)){var u=-a/(2*o);u>=0&&1>=u&&(r[l++]=u)}else if(h>0){var c=Fy(h),u=(-a+c)/(2*o),p=(-a-c)/(2*o);u>=0&&1>=u&&(r[l++]=u),p>=0&&1>=p&&(r[l++]=p)}}return l}function ye(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n}function me(t,e,i,n,r){var o=(e-t)*n+t,a=(i-e)*n+e,s=(a-o)*n+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=i}function _e(t,e,i,n,r,o,a,s,l){var u,h=.005,c=1/0;Xy[0]=a,Xy[1]=s;for(var p=0;1>p;p+=.05){Uy[0]=de(t,i,r,p),Uy[1]=de(e,n,o,p);var f=Kv(Xy,Uy);c>f&&(u=p,c=f)}c=1/0;for(var d=0;32>d&&!(Hy>h);d++){var g=u-h,v=u+h;Uy[0]=de(t,i,r,g),Uy[1]=de(e,n,o,g);var f=Kv(Uy,Xy);if(g>=0&&c>f)u=g,c=f;else{jy[0]=de(t,i,r,v),jy[1]=de(e,n,o,v);var y=Kv(jy,Xy);1>=v&&c>y?(u=v,c=y):h*=.5}}return l&&(l[0]=de(t,i,r,u),l[1]=de(e,n,o,u)),Fy(c)}function xe(t,e,i,n,r,o,a){for(var s=t,l=e,u=0,h=1/a,c=1;a>=c;c++){var p=c*h,f=de(t,i,r,p),d=de(e,n,o,p),g=f-s,v=d-l;u+=Math.sqrt(g*g+v*v),s=f,l=d}return u}function we(t){var e=t&&Gy.exec(t);if(e){var i=e[1].split(","),n=+H(i[0]),r=+H(i[1]),o=+H(i[2]),a=+H(i[3]);if(isNaN(n+r+o+a))return;var s=[];return function(t){return 0>=t?0:t>=1?1:ue(0,n,o,1,t,s)&&se(0,r,a,1,s[0])}}}function be(t){return t=Math.round(t),0>t?0:t>255?255:t}function Se(t){return t=Math.round(t),0>t?0:t>360?360:t}function Te(t){return 0>t?0:t>1?1:t}function Me(t){var e=t;return be(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100*255:parseInt(e,10))}function Ce(t){var e=t;return Te(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100:parseFloat(e))}function Ie(t,e,i){return 0>i?i+=1:i>1&&(i-=1),1>6*i?t+(e-t)*i*6:1>2*i?e:2>3*i?t+(e-t)*(2/3-i)*6:t}function ke(t,e,i){return t+(e-t)*i}function Ae(t,e,i,n,r){return t[0]=e,t[1]=i,t[2]=n,t[3]=r,t}function De(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function Pe(t,e){tm&&De(tm,e),tm=Jy.put(t,tm||e.slice())}function Oe(t,e){if(t){e=e||[];var i=Jy.get(t);if(i)return De(e,i);t+="";var n=t.replace(/ /g,"").toLowerCase();if(n in $y)return De(e,$y[n]),Pe(t,e),e;var r=n.length;if("#"!==n.charAt(0)){var o=n.indexOf("("),a=n.indexOf(")");if(-1!==o&&a+1===r){var s=n.substr(0,o),l=n.substr(o+1,a-(o+1)).split(","),u=1;switch(s){case"rgba":if(4!==l.length)return 3===l.length?Ae(e,+l[0],+l[1],+l[2],1):Ae(e,0,0,0,1);u=Ce(l.pop());case"rgb":return l.length>=3?(Ae(e,Me(l[0]),Me(l[1]),Me(l[2]),3===l.length?u:Ce(l[3])),Pe(t,e),e):void Ae(e,0,0,0,1);case"hsla":return 4!==l.length?void Ae(e,0,0,0,1):(l[3]=Ce(l[3]),Le(l,e),Pe(t,e),e);case"hsl":return 3!==l.length?void Ae(e,0,0,0,1):(Le(l,e),Pe(t,e),e);default:return}}Ae(e,0,0,0,1)}else{if(4===r||5===r){var h=parseInt(n.slice(1,4),16);return h>=0&&4095>=h?(Ae(e,(3840&h)>>4|(3840&h)>>8,240&h|(240&h)>>4,15&h|(15&h)<<4,5===r?parseInt(n.slice(4),16)/15:1),Pe(t,e),e):void Ae(e,0,0,0,1)}if(7===r||9===r){var h=parseInt(n.slice(1,7),16);return h>=0&&16777215>=h?(Ae(e,(16711680&h)>>16,(65280&h)>>8,255&h,9===r?parseInt(n.slice(7),16)/255:1),Pe(t,e),e):void Ae(e,0,0,0,1)}}}}function Le(t,e){var i=(parseFloat(t[0])%360+360)%360/360,n=Ce(t[1]),r=Ce(t[2]),o=.5>=r?r*(n+1):r+n-r*n,a=2*r-o;return e=e||[],Ae(e,be(255*Ie(a,o,i+1/3)),be(255*Ie(a,o,i)),be(255*Ie(a,o,i-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Ee(t){if(t){var e,i,n=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(n,r,o),s=Math.max(n,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,i=0;else{i=.5>u?l/(s+a):l/(2-s-a);var h=((s-n)/6+l/2)/l,c=((s-r)/6+l/2)/l,p=((s-o)/6+l/2)/l;n===s?e=p-c:r===s?e=1/3+h-p:o===s&&(e=2/3+c-h),0>e&&(e+=1),e>1&&(e-=1)}var f=[360*e,i,u];return null!=t[3]&&f.push(t[3]),f}}function Re(t,e){var i=Oe(t);if(i){for(var n=0;3>n;n++)i[n]=0>e?i[n]*(1-e)|0:(255-i[n])*e+i[n]|0,i[n]>255?i[n]=255:i[n]<0&&(i[n]=0);return He(i,4===i.length?"rgba":"rgb")}}function Be(t){var e=Oe(t);return e?((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1):void 0}function Ne(t,e,i){if(e&&e.length&&t>=0&&1>=t){i=i||[];var n=t*(e.length-1),r=Math.floor(n),o=Math.ceil(n),a=e[r],s=e[o],l=n-r;return i[0]=be(ke(a[0],s[0],l)),i[1]=be(ke(a[1],s[1],l)),i[2]=be(ke(a[2],s[2],l)),i[3]=Te(ke(a[3],s[3],l)),i}}function ze(t,e,i){if(e&&e.length&&t>=0&&1>=t){var n=t*(e.length-1),r=Math.floor(n),o=Math.ceil(n),a=Oe(e[r]),s=Oe(e[o]),l=n-r,u=He([be(ke(a[0],s[0],l)),be(ke(a[1],s[1],l)),be(ke(a[2],s[2],l)),Te(ke(a[3],s[3],l))],"rgba");return i?{color:u,leftIndex:r,rightIndex:o,value:n}:u}}function Fe(t,e,i,n){var r=Oe(t);return t?(r=Ee(r),null!=e&&(r[0]=Se(e)),null!=i&&(r[1]=Ce(i)),null!=n&&(r[2]=Ce(n)),He(Le(r),"rgba")):void 0}function Ye(t,e){var i=Oe(t);return i&&null!=e?(i[3]=Te(e),He(i,"rgba")):void 0}function He(t,e){if(t&&t.length){var i=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(i+=","+t[3]),e+"("+i+")"}}function Ve(t,e){var i=Oe(t);return i?(.299*i[0]+.587*i[1]+.114*i[2])*i[3]/255+(1-i[3])*e:0}function We(){return He([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}function Xe(t){return"linear"===t.type}function Ue(t){return"radial"===t.type}function je(t,e,i){return(e-t)*i+t}function Ge(t,e,i,n){for(var r=e.length,o=0;r>o;o++)t[o]=je(e[o],i[o],n);return t}function qe(t,e,i,n){for(var r=e.length,o=r&&e[0].length,a=0;r>a;a++){t[a]||(t[a]=[]);for(var s=0;o>s;s++)t[a][s]=je(e[a][s],i[a][s],n)}return t}function Ze(t,e,i,n){for(var r=e.length,o=0;r>o;o++)t[o]=e[o]+i[o]*n;return t}function Ke(t,e,i,n){for(var r=e.length,o=r&&e[0].length,a=0;r>a;a++){t[a]||(t[a]=[]);for(var s=0;o>s;s++)t[a][s]=e[a][s]+i[a][s]*n}return t}function Qe(t,e){for(var i=t.length,n=e.length,r=i>n?e:t,o=Math.min(i,n),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(i,n);s++)r.push({offset:a.offset,color:a.color.slice()})}function $e(t,e,i){var n=t,r=e;if(n.push&&r.push){var o=n.length,a=r.length;if(o!==a){if(o>a)n.length=a;else for(var s=o;a>s;s++)n.push(1===i?r[s]:rm.call(r[s]))}for(var l=n[0]&&n[0].length,s=0;s<n.length;s++)if(1===i)isNaN(n[s])&&(n[s]=r[s]);else for(var u=0;l>u;u++)isNaN(n[s][u])&&(n[s][u]=r[s][u])}}function Je(t){if(f(t)){var e=t.length;if(f(t[0])){for(var i=[],n=0;e>n;n++)i.push(rm.call(t[n]));return i}return rm.call(t)}return t}function ti(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function ei(t){return f(t&&t[0])?2:1}function ii(t){return t===sm||t===lm}function ni(t){return t===om||t===am}function ri(){return(new Date).getTime()}function oi(t){var e=t.pointerType;return"pen"===e||"touch"===e}function ai(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function si(t){t&&(t.zrByTouch=!0)}function li(t,e){return At(t.dom,new ym(t,e),!0)}function ui(t,e){for(var i=e,n=!1;i&&9!==i.nodeType&&!(n=i.domBelongToZr||i!==e&&i===t.painterRoot);)i=i.parentNode;return n}function hi(t,e){var i=e.domHandlers;xv.pointerEventsSupported?d(dm.pointer,function(n){pi(e,n,function(e){i[n].call(t,e)})}):(xv.touchEventsSupported&&d(dm.touch,function(n){pi(e,n,function(r){i[n].call(t,r),ai(e)})}),d(dm.mouse,function(n){pi(e,n,function(r){r=kt(r),e.touching||i[n].call(t,r)})}))}function ci(t,e){function i(i){function n(n){n=kt(n),ui(t,n.target)||(n=li(t,n),e.domHandlers[i].call(t,n))}pi(e,i,n,{capture:!0})}xv.pointerEventsSupported?d(gm.pointer,i):xv.touchEventsSupported||d(gm.mouse,i)}function pi(t,e,i,n){t.mounted[e]=i,t.listenerOpts[e]=n,Pt(t.domTarget,e,i,n)}function fi(t){var e=t.mounted;for(var i in e)e.hasOwnProperty(i)&&Ot(t.domTarget,i,e[i],t.listenerOpts[i]);t.mounted={}}function di(t){return t>km||-km>t}function gi(t,e){for(var i=0;i<Em.length;i++){var n=Em[i];t[n]=e[n]}}function vi(t,e){e=e||bv;var i=Rm[e];i||(i=Rm[e]=new Qy(500));var n=i.get(t);return null==n&&(n=Cv.measureText(t,e).width,i.put(t,n)),n}function yi(t,e,i,n){var r=vi(t,e),o=wi(e),a=_i(0,r,i),s=xi(0,o,n);return new by(a,s,r,o)}function mi(t,e,i,n){var r=((t||"")+"").split("\n");if(1===r.length)return yi(r[0],e,i,n);for(var o=new by(0,0,0,0),a=0;a<r.length;a++){var s=yi(r[a],e,i,n);0===a?o.copy(s):o.union(s)}return o}function _i(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function xi(t,e,i){return"middle"===i?t-=e/2:"bottom"===i&&(t-=e),t}function wi(t){return vi("国",t)}function bi(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Si(t,e,i){var n=e.position||"inside",r=null!=e.distance?e.distance:5,o=i.height,a=i.width,s=o/2,l=i.x,u=i.y,h="left",c="top";if(n instanceof Array)l+=bi(n[0],i.width),u+=bi(n[1],i.height),h=null,c=null;else switch(n){case"left":l-=r,u+=s,h="right",c="middle";break;case"right":l+=r+a,u+=s,c="middle";break;case"top":l+=a/2,u-=r,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+r,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=r,u+=s,c="middle";break;case"insideRight":l+=a-r,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=r,h="center";break;case"insideBottom":l+=a/2,u+=o-r,h="center",c="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,h="right";break;case"insideBottomLeft":l+=r,u+=o-r,c="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,h="right",c="bottom"}return t=t||{},t.x=l,t.y=u,t.align=h,t.verticalAlign=c,t}function Ti(t,e,i,n,r){i=i||{};var o=[];Di(t,"",t,e,i,n,o,r);var a=o.length,s=!1,l=i.done,u=i.aborted,h=function(){s=!0,0>=--a&&(s?l&&l():u&&u())},c=function(){0>=--a&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&i.during&&o[0].during(function(t,e){i.during(e)});for(var p=0;p<o.length;p++){var f=o[p];h&&f.done(h),c&&f.aborted(c),i.force&&f.duration(i.duration),f.start(i.easing)}return o}function Mi(t,e,i){for(var n=0;i>n;n++)t[n]=e[n]}function Ci(t){return f(t[0])}function Ii(t,e,i){if(f(e[i]))if(f(t[i])||(t[i]=[]),A(e[i])){var n=e[i].length;t[i].length!==n&&(t[i]=new e[i].constructor(n),Mi(t[i],e[i],n))}else{var r=e[i],o=t[i],a=r.length;if(Ci(r))for(var s=r[0].length,l=0;a>l;l++)o[l]?Mi(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else Mi(o,r,a);o.length=r.length}else t[i]=e[i]}function ki(t,e){return t===e||f(t)&&f(e)&&Ai(t,e)}function Ai(t,e){var i=t.length;if(i!==e.length)return!1;for(var n=0;i>n;n++)if(t[n]!==e[n])return!1;return!0}function Di(t,e,i,n,r,o,a,s){for(var l=_(n),u=r.duration,c=r.delay,p=r.additive,d=r.setToFinal,g=!I(o),v=t.animators,m=[],x=0;x<l.length;x++){var w=l[x],b=n[w];if(null!=b&&null!=i[w]&&(g||o[w]))if(!I(b)||f(b)||P(b))m.push(w);else{if(e){s||(i[w]=b,t.updateDuringAnimation(e));continue}Di(t,w,i[w],b,r,o&&o[w],a,s)}else s||(i[w]=b,t.updateDuringAnimation(e),m.push(w))}var S=m.length;if(!p&&S)for(var T=0;T<v.length;T++){var M=v[T];if(M.targetName===e){var C=M.stopTracks(m);if(C){var k=h(v,M);v.splice(k,1)}}}if(r.force||(m=y(m,function(t){return!ki(n[t],i[t])}),S=m.length),S>0||r.force&&!a.length){var A=void 0,D=void 0,O=void 0;if(s){D={},d&&(A={});for(var T=0;S>T;T++){var w=m[T];D[w]=i[w],d?A[w]=n[w]:i[w]=n[w]}}else if(d){O={};for(var T=0;S>T;T++){var w=m[T];O[w]=Je(i[w]),Ii(i,n,w)}}var M=new cm(i,!1,!1,p?y(v,function(t){return t.targetName===e}):null);M.targetName=e,r.scope&&(M.scope=r.scope),d&&A&&M.whenWithKeys(0,A,m),O&&M.whenWithKeys(0,O,m),M.whenWithKeys(null==u?500:u,s?D:n,m).delay(c||0),t.addAnimator(M,e),a.push(M)}}function Pi(t){delete Xm[t]}function Oi(t){if(!t)return!1;if("string"==typeof t)return Ve(t,1)<Tm;if(t.colorStops){for(var e=t.colorStops,i=0,n=e.length,r=0;n>r;r++)i+=Ve(e[r].color,1);return i/=n,Tm>i}return!1}function Li(t,e){var i=new Um(n(),t,e);return Xm[i.id]=i,i}function Ei(t){t.dispose()}function Ri(){for(var t in Xm)Xm.hasOwnProperty(t)&&Xm[t].dispose();Xm={}}function Bi(t){return Xm[t]}function Ni(t,e){Wm[t]=e}function zi(t){return t.replace(/^\s+|\s+$/g,"")}function Fi(t,e,i,n){var r=e[0],o=e[1],a=i[0],s=i[1],l=o-r,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(n)if(l>0){if(r>=t)return a;if(t>=o)return s}else{if(t>=r)return a;if(o>=t)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}function Yi(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return T(t)?zi(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function Hi(t,e,i){return null==e&&(e=10),e=Math.min(Math.max(0,e),qm),t=(+t).toFixed(e),i?t:+t}function Vi(t){return t.sort(function(t,e){return t-e}),t}function Wi(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,i=0;15>i;i++,e*=10)if(Math.round(t*e)/e===t)return i;return Xi(t)}function Xi(t){var e=t.toString().toLowerCase(),i=e.indexOf("e"),n=i>0?+e.slice(i+1):0,r=i>0?i:e.length,o=e.indexOf("."),a=0>o?0:r-1-o;return Math.max(0,a-n)}function Ui(t,e){var i=Math.log,n=Math.LN10,r=Math.floor(i(t[1]-t[0])/n),o=Math.round(i(Math.abs(e[1]-e[0]))/n),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function ji(t,e,i){return t[e]?Gi(t,i)[e]||0:0}function Gi(t,e){var i=v(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===i)return[];for(var n=Math.pow(10,e),r=g(t,function(t){return(isNaN(t)?0:t)/i*n*100}),o=100*n,a=g(r,function(t){return Math.floor(t)}),s=v(a,function(t,e){return t+e},0),l=g(r,function(t,e){return t-a[e]});o>s;){for(var u=Number.NEGATIVE_INFINITY,h=null,c=0,p=l.length;p>c;++c)l[c]>u&&(u=l[c],h=c);++a[h],l[h]=0,++s}return g(a,function(t){return t/n})}function qi(t,e){var i=Math.max(Wi(t),Wi(e)),n=t+e;return i>qm?n:Hi(n,i)}function Zi(t){var e=2*Math.PI;return(t%e+e)%e}function Ki(t){return t>-Gm&&Gm>t}function Qi(t){if(t instanceof Date)return t;if(T(t)){var e=Zm.exec(t);if(!e)return new Date(NaN);if(e[8]){var i=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(i-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,i,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return new Date(null==t?NaN:Math.round(t))}function $i(t){return Math.pow(10,Ji(t))}function Ji(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function tn(t,e){var i,n=Ji(t),r=Math.pow(10,n),o=t/r;return i=e?1.5>o?1:2.5>o?2:4>o?3:7>o?5:10:1>o?1:2>o?2:3>o?3:5>o?5:10,t=i*r,n>=-20?+t.toFixed(0>n?-n:0):t}function en(t,e){var i=(t.length-1)*e+1,n=Math.floor(i),r=+t[n-1],o=i-n;return o?r+o*(t[n]-r):r}function nn(t){function e(t,i,n){return t.interval[n]<i.interval[n]||t.interval[n]===i.interval[n]&&(t.close[n]-i.close[n]==(n?-1:1)||!n&&e(t,i,1))}t.sort(function(t,i){return e(t,i,0)?-1:1});for(var i=-1/0,n=1,r=0;r<t.length;){for(var o=t[r].interval,a=t[r].close,s=0;2>s;s++)o[s]<=i&&(o[s]=i,a[s]=s?1:1-n),i=o[s],n=a[s];o[0]===o[1]&&a[0]*a[1]!=1?t.splice(r,1):r++}return t}function rn(t){var e=parseFloat(t);return e==t&&(0!==e||!T(t)||t.indexOf("x")<=0)?e:NaN}function on(t){return!isNaN(rn(t))}function an(){return Math.round(9*Math.random())}function sn(t,e){return 0===e?t:sn(e,t%e)}function ln(t,e){return null==t?e:null==e?t:t*e/sn(t,e)}function un(t){throw new Error(t)}function hn(t,e,i){return(e-t)*i+t}function cn(t){return t instanceof Array?t:null==t?[]:[t]}function pn(t,e,i){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,r=i.length;r>n;n++){var o=i[n];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}function fn(t){return!I(t)||b(t)||t instanceof Date?t:t.value}function dn(t){return I(t)&&!(t instanceof Array)}function gn(t,e,i){var n="normalMerge"===i,r="replaceMerge"===i,o="replaceAll"===i;t=t||[],e=(e||[]).slice();var a=U();d(e,function(t,i){return I(t)?void 0:void(e[i]=null)});var s=vn(t,a,i);return(n||r)&&yn(s,t,a,e),n&&mn(s,e),n||r?_n(s,e,r):o&&xn(s,e),wn(s),s}function vn(t,e,i){var n=[];if("replaceAll"===i)return n;for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),n.push({existing:"replaceMerge"===i||Cn(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return n}function yn(t,e,i,n){d(n,function(r,o){if(r&&null!=r.id){var a=Sn(r.id),s=i.get(a);if(null!=s){var l=t[s];Y(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=r,l.existing=e[s],n[o]=null}}})}function mn(t,e){d(e,function(i,n){if(i&&null!=i.name)for(var r=0;r<t.length;r++){var o=t[r].existing;if(!t[r].newOption&&o&&(null==o.id||null==i.id)&&!Cn(i)&&!Cn(o)&&bn("name",o,i))return t[r].newOption=i,void(e[n]=null)}})}function _n(t,e,i){d(e,function(e){if(e){for(var n,r=0;(n=t[r])&&(n.newOption||Cn(n.existing)||n.existing&&null!=e.id&&!bn("id",e,n.existing));)r++;n?(n.newOption=e,n.brandNew=i):t.push({newOption:e,brandNew:i,existing:null,keyInfo:null}),r++}})}function xn(t,e){d(e,function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function wn(t){var e=U();d(t,function(t){var i=t.existing;i&&e.set(i.id,t)}),d(t,function(t){var i=t.newOption;Y(!i||null==i.id||!e.get(i.id)||e.get(i.id)===t,"id duplicates: "+(i&&i.id)),i&&null!=i.id&&e.set(i.id,t),!t.keyInfo&&(t.keyInfo={})}),d(t,function(t,i){var n=t.existing,r=t.newOption,o=t.keyInfo;if(I(r)){if(o.name=null!=r.name?Sn(r.name):n?n.name:Km+i,n)o.id=Sn(n.id);else if(null!=r.id)o.id=Sn(r.id);else{var a=0;do{o.id="\0"+o.name+"\0"+a++}while(e.get(o.id))}e.set(o.id,t)}})}function bn(t,e,i){var n=Tn(e[t],null),r=Tn(i[t],null);return null!=n&&null!=r&&n===r}function Sn(t){return Tn(t,"")}function Tn(t,e){return null==t?e:T(t)?t:C(t)||M(t)?t+"":e}function Mn(t){var e=t.name;return!(!e||!e.indexOf(Km))}function Cn(t){return t&&null!=t.id&&0===Sn(t.id).indexOf(Qm)}function In(t,e,i){d(t,function(t){var n=t.newOption;I(n)&&(t.keyInfo.mainType=e,t.keyInfo.subType=kn(e,n,t.existing,i))})}function kn(t,e,i,n){return e.type?e.type:i?i.subType:n.determineSubType(t,e)}function An(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?b(e.dataIndex)?g(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?b(e.name)?g(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function Dn(){var t="__ec_inner_"+Jm++;return function(e){return e[t]||(e[t]={})}}function Pn(t,e,i){var n=On(e,i),r=n.mainTypeSpecified,o=n.queryOptionMap,a=n.others,s=a,l=i?i.defaultMainType:null;return!r&&l&&o.set(l,{}),o.each(function(e,n){var r=Ln(t,n,e,{useDefault:l===n,enableAll:!i||null==i.enableAll||i.enableAll,enableNone:!i||null==i.enableNone||i.enableNone});s[n+"Models"]=r.models,s[n+"Model"]=r.models[0]}),s}function On(t,e){var i;if(T(t)){var n={};n[t+"Index"]=0,i=n}else i=t;var r=U(),o={},a=!1;return d(i,function(t,i){if("dataIndex"===i||"dataIndexInside"===i)return void(o[i]=t);var n=i.match(/^(\w+)(Index|Id|Name)$/)||[],s=n[1],l=(n[2]||"").toLowerCase();if(s&&l&&!(e&&e.includeMainTypes&&h(e.includeMainTypes,s)<0)){a=a||!!s;(r.get(s)||r.set(s,{}))[l]=t}}),{mainTypeSpecified:a,queryOptionMap:r,others:o}}function Ln(t,e,i,n){n=n||t_;var r=i.index,o=i.id,a=i.name,s={models:null,specified:null!=r||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=t.getComponent(e))?[l]:[],s}return"none"===r||!1===r?(Y(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===r&&(Y(n.enableAll,'`"all"` is not a valid value on index option.'),r=o=a=null),s.models=t.queryComponents({mainType:e,index:r,id:o,name:a}),s)}function En(t,e,i){t.setAttribute?t.setAttribute(e,i):t[e]=i}function Rn(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function Bn(t){return"auto"===t?xv.domSupported?"html":"richText":t||"html"}function Nn(t,e,i,n,r){var o=null==e||"auto"===e;if(null==n)return n;if(C(n)){var a=hn(i||0,n,r);return Hi(a,o?Math.max(Wi(i||0),Wi(n)):e)}if(T(n))return 1>r?i:n;for(var s=[],l=i,u=n,h=Math.max(l?l.length:0,u.length),c=0;h>c;++c){var p=t.getDimensionInfo(c);if(p&&"ordinal"===p.type)s[c]=(1>r&&l?l:u)[c];else{var f=l&&l[c]?l[c]:0,d=u[c],a=hn(f,d,r);s[c]=Hi(a,o?Math.max(Wi(f),Wi(d)):e)}}return s}function zn(t){var e={main:"",sub:""};if(t){var i=t.split(e_);e.main=i[0]||"",e.sub=i[1]||""}return e}function Fn(t){Y(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function Yn(t){return!(!t||!t[n_])}function Hn(t){t.$constructor=t,t.extend=function(t){var i,n=this;return Vn(n)?i=function(t){function i(){return t.apply(this,arguments)||this}return e(i,t),i}(n):(i=function(){(t.$constructor||n).apply(this,arguments)},c(i,this)),l(i.prototype,t),i[n_]=!0,i.extend=this.extend,i.superCall=Xn,i.superApply=Un,i.superClass=n,i}}function Vn(t){return S(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function Wn(t,e){t.extend=e.extend}function Xn(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];return this.superClass.prototype[e].apply(t,i)}function Un(t,e,i){return this.superClass.prototype[e].apply(t,i)}function jn(t){function e(t){var e=i[t.main];return e&&e[i_]||(e=i[t.main]={},e[i_]=!0),e}var i={};t.registerClass=function(t){var n=t.type||t.prototype.type;if(n){Fn(n),t.prototype.type=n;var r=zn(n);if(r.sub){if(r.sub!==i_){var o=e(r);o[r.sub]=t}}else i[r.main]=t}return t},t.getClass=function(t,e,n){var r=i[t];if(r&&r[i_]&&(r=e?r[e]:null),n&&!r)throw new Error(e?"Component "+t+"."+(e||"")+" is used but not imported.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var e=zn(t),n=[],r=i[e.main];return r&&r[i_]?d(r,function(t,e){e!==i_&&n.push(t)}):n.push(r),n},t.hasClass=function(t){var e=zn(t);return!!i[e.main]},t.getAllClassMainTypes=function(){var t=[];return d(i,function(e,i){t.push(i)}),t},t.hasSubTypes=function(t){var e=zn(t),n=i[e.main];return n&&n[i_]}}function Gn(t,e){for(var i=0;i<t.length;i++)t[i][1]||(t[i][1]=t[i][0]);return e=e||!1,function(i,n,r){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(n&&h(n,s)>=0||r&&h(r,s)<0)){var l=i.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}function qn(t){if("string"==typeof t){var e=l_.get(t);return e&&e.image}return t}function Zn(t,e,i,n,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!i)return e;var o=l_.get(t),a={hostEl:i,cb:n,cbPayload:r};return o?(e=o.image,!Qn(e)&&o.pending.push(a)):(e=Cv.loadImage(t,Kn,Kn),e.__zrImageSrc=t,l_.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function Kn(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var i=t.pending[e],n=i.cb;n&&n(this,i.cbPayload),i.hostEl.dirty()}t.pending.length=0}function Qn(t){return t&&t.width&&t.height}function $n(t,e,i,n,r){if(!e)return"";var o=(t+"").split("\n");r=Jn(e,i,n,r);for(var a=0,s=o.length;s>a;a++)o[a]=tr(o[a],r);return o.join("\n")}function Jn(t,e,i,n){n=n||{};var r=l({},n);r.font=e,i=B(i,"..."),r.maxIterations=B(n.maxIterations,2);var o=r.minChar=B(n.minChar,0);r.cnCharWidth=vi("国",e);var a=r.ascCharWidth=vi("a",e);r.placeholder=B(n.placeholder,"");for(var s=t=Math.max(0,t-1),u=0;o>u&&s>=a;u++)s-=a;var h=vi(i,e);return h>s&&(i="",h=0),s=t-h,r.ellipsis=i,r.ellipsisWidth=h,r.contentWidth=s,r.containerWidth=t,r}function tr(t,e){var i=e.containerWidth,n=e.font,r=e.contentWidth;if(!i)return"";var o=vi(t,n);if(i>=o)return t;for(var a=0;;a++){if(r>=o||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?er(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;t=t.substr(0,s),o=vi(t,n)}return""===t&&(t=e.placeholder),t}function er(t,e,i,n){for(var r=0,o=0,a=t.length;a>o&&e>r;o++){var s=t.charCodeAt(o);r+=s>=0&&127>=s?i:n}return o}function ir(t,e){null!=t&&(t+="");var i,n=e.overflow,r=e.padding,o=e.font,a="truncate"===n,s=wi(o),l=B(e.lineHeight,s),u=!!e.backgroundColor,h="truncate"===e.lineOverflow,c=e.width;i=null==c||"break"!==n&&"breakAll"!==n?t?t.split("\n"):[]:t?sr(t,e.font,c,"breakAll"===n,0).lines:[];var p=i.length*l,f=B(e.height,p);if(p>f&&h){var d=Math.floor(f/l);i=i.slice(0,d)}if(t&&a&&null!=c)for(var g=Jn(c,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v=0;v<i.length;v++)i[v]=tr(i[v],g);for(var y=f,m=0,v=0;v<i.length;v++)m=Math.max(vi(i[v],o),m);null==c&&(c=m);var _=m;return r&&(y+=r[0]+r[2],_+=r[1]+r[3],c+=r[1]+r[3]),u&&(_=c),{lines:i,height:f,outerWidth:_,outerHeight:y,lineHeight:l,calculatedLineHeight:s,contentWidth:m,contentHeight:p,width:c}}function nr(t,e){function i(t,e,i){t.width=e,t.lineHeight=i,p+=i,f=Math.max(f,e)}var n=new p_;if(null!=t&&(t+=""),!t)return n;for(var r,o=e.width,a=e.height,s=e.overflow,l="break"!==s&&"breakAll"!==s||null==o?null:{width:o,accumWidth:0,breakAll:"breakAll"===s},u=u_.lastIndex=0;null!=(r=u_.exec(t));){var h=r.index;h>u&&rr(n,t.substring(u,h),e,l),rr(n,r[2],e,l,r[1]),u=u_.lastIndex}u<t.length&&rr(n,t.substring(u,t.length),e,l);var c=[],p=0,f=0,d=e.padding,g="truncate"===s,v="truncate"===e.lineOverflow;t:for(var y=0;y<n.lines.length;y++){for(var m=n.lines[y],_=0,x=0,w=0;w<m.tokens.length;w++){var b=m.tokens[w],S=b.styleName&&e.rich[b.styleName]||{},T=b.textPadding=S.padding,M=T?T[1]+T[3]:0,C=b.font=S.font||e.font;b.contentHeight=wi(C);var I=B(S.height,b.contentHeight);if(b.innerHeight=I,T&&(I+=T[0]+T[2]),b.height=I,b.lineHeight=N(S.lineHeight,e.lineHeight,I),b.align=S&&S.align||e.align,b.verticalAlign=S&&S.verticalAlign||"middle",v&&null!=a&&p+b.lineHeight>a){w>0?(m.tokens=m.tokens.slice(0,w),i(m,x,_),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y);break t}var k=S.width,A=null==k||"auto"===k;if("string"==typeof k&&"%"===k.charAt(k.length-1))b.percentWidth=k,c.push(b),b.contentWidth=vi(b.text,C);else{if(A){var D=S.backgroundColor,P=D&&D.image;P&&(P=qn(P),Qn(P)&&(b.width=Math.max(b.width,P.width*I/P.height)))}var O=g&&null!=o?o-x:null;null!=O&&O<b.width?!A||M>O?(b.text="",b.width=b.contentWidth=0):(b.text=$n(b.text,O-M,C,e.ellipsis,{minChar:e.truncateMinChar}),b.width=b.contentWidth=vi(b.text,C)):b.contentWidth=vi(b.text,C)}b.width+=M,x+=b.width,S&&(_=Math.max(_,b.lineHeight))}i(m,x,_)}n.outerWidth=n.width=B(o,f),n.outerHeight=n.height=B(a,p),n.contentHeight=p,n.contentWidth=f,d&&(n.outerWidth+=d[1]+d[3],n.outerHeight+=d[0]+d[2]);for(var y=0;y<c.length;y++){var b=c[y],L=b.percentWidth;b.width=parseInt(L,10)/100*n.width}return n}function rr(t,e,i,n,r){var o,a,s=""===e,l=r&&i.rich[r]||{},u=t.lines,h=l.font||i.font,c=!1;if(n){var p=l.padding,f=p?p[1]+p[3]:0;if(null!=l.width&&"auto"!==l.width){var d=bi(l.width,n.width)+f;u.length>0&&d+n.accumWidth>n.width&&(o=e.split("\n"),c=!0),n.accumWidth=d}else{var g=sr(e,h,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+f,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var v=0;v<o.length;v++){var y=o[v],m=new h_;if(m.styleName=r,m.text=y,m.isLineHolder=!y&&!s,m.width="number"==typeof l.width?l.width:a?a[v]:vi(y,h),v||c)u.push(new c_([m]));else{var _=(u[u.length-1]||(u[0]=new c_)).tokens,x=_.length;1===x&&_[0].isLineHolder?_[0]=m:(y||!x||s)&&_.push(m)}}}function or(t){var e=t.charCodeAt(0);return e>=33&&383>=e}function ar(t){return!or(t)||!!f_[t]}function sr(t,e,i,n,r){for(var o=[],a=[],s="",l="",u=0,h=0,c=0;c<t.length;c++){var p=t.charAt(c);if("\n"!==p){var f=vi(p,e),d=!n&&!ar(p);(o.length?h+f>i:r+h+f>i)?h?(s||l)&&(d?(s||(s=l,l="",u=0,h=u),o.push(s),a.push(h-u),l+=p,u+=f,s="",h=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(h),s=p,h=f)):d?(o.push(l),a.push(u),l=p,u=f):(o.push(p),a.push(f)):(h+=f,d?(l+=p,u+=f):(l&&(s+=l,l="",u=0),s+=p))}else l&&(s+=l,h+=u),o.push(s),a.push(h),s="",l="",u=0,h=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(h)),1===o.length&&(h+=r),{accumWidth:h,lines:o,linesWidths:a}}function lr(t,e,i){return x_.copy(t.getBoundingRect()),t.transform&&x_.applyTransform(t.transform),w_.width=e,w_.height=i,!x_.intersect(w_)}function ur(t,e,i,n,r,o){r[0]=b_(t,i),r[1]=b_(e,n),o[0]=S_(t,i),o[1]=S_(e,n)}function hr(t,e,i,n,r,o,a,s,l,u){var h=he,c=se,p=h(t,i,r,a,D_);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var f=0;p>f;f++){var d=c(t,i,r,a,D_[f]);l[0]=b_(d,l[0]),u[0]=S_(d,u[0])}p=h(e,n,o,s,P_);for(var f=0;p>f;f++){var g=c(e,n,o,s,P_[f]);l[1]=b_(g,l[1]),u[1]=S_(g,u[1])}l[0]=b_(t,l[0]),u[0]=S_(t,u[0]),l[0]=b_(a,l[0]),u[0]=S_(a,u[0]),l[1]=b_(e,l[1]),u[1]=S_(e,u[1]),l[1]=b_(s,l[1]),u[1]=S_(s,u[1])}function cr(t,e,i,n,r,o,a,s){var l=ye,u=de,h=S_(b_(l(t,i,r),1),0),c=S_(b_(l(e,n,o),1),0),p=u(t,i,r,h),f=u(e,n,o,c);a[0]=b_(t,r,p),a[1]=b_(e,o,f),s[0]=S_(t,r,p),s[1]=S_(e,o,f)}function pr(t,e,i,n,r,o,a,s,l){var u=vt,h=yt,c=Math.abs(r-o);if(1e-4>c%C_&&c>1e-4)return s[0]=t-i,s[1]=e-n,l[0]=t+i,void(l[1]=e+n);if(I_[0]=M_(r)*i+t,I_[1]=T_(r)*n+e,k_[0]=M_(o)*i+t,k_[1]=T_(o)*n+e,u(s,I_,k_),h(l,I_,k_),r%=C_,0>r&&(r+=C_),o%=C_,0>o&&(o+=C_),r>o&&!a?o+=C_:o>r&&a&&(r+=C_),a){var p=o;o=r,r=p}for(var f=0;o>f;f+=Math.PI/2)f>r&&(A_[0]=M_(f)*i+t,A_[1]=T_(f)*n+e,u(s,A_,s),h(l,A_,l))}function fr(t){return Math.round(t/X_*1e8)/1e8%2*X_}function dr(t,e){var i=fr(t[0]);0>i&&(i+=U_);var n=i-t[0],r=t[1];r+=n,!e&&r-i>=U_?r=i+U_:e&&i-r>=U_?r=i-U_:!e&&i>r?r=i+(U_-fr(i-r)):e&&r>i&&(r=i-(U_-fr(r-i))),t[0]=i,t[1]=r}function gr(t,e,i,n,r,o,a){if(0===r)return!1;var s=r,l=0,u=t;if(a>e+s&&a>n+s||e-s>a&&n-s>a||o>t+s&&o>i+s||t-s>o&&i-s>o)return!1;if(t===i)return Math.abs(o-t)<=s/2;l=(e-n)/(t-i),u=(t*n-i*e)/(t-i);var h=l*o-a+u;return s/2*s/2>=h*h/(l*l+1)}function vr(t,e,i,n,r,o,a,s,l,u,h){if(0===l)return!1;var c=l;return!(h>e+c&&h>n+c&&h>o+c&&h>s+c||e-c>h&&n-c>h&&o-c>h&&s-c>h||u>t+c&&u>i+c&&u>r+c&&u>a+c||t-c>u&&i-c>u&&r-c>u&&a-c>u)&&c/2>=pe(t,e,i,n,r,o,a,s,u,h,null)}function yr(t,e,i,n,r,o,a,s,l){if(0===a)return!1;var u=a;return!(l>e+u&&l>n+u&&l>o+u||e-u>l&&n-u>l&&o-u>l||s>t+u&&s>i+u&&s>r+u||t-u>s&&i-u>s&&r-u>s)&&u/2>=_e(t,e,i,n,r,o,s,l,null)}function mr(t){return t%=Z_,0>t&&(t+=Z_),t}function _r(t,e,i,n,r,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var h=Math.sqrt(s*s+l*l);if(h-u>i||i>h+u)return!1;if(Math.abs(n-r)%K_<1e-4)return!0;if(o){var c=n;n=mr(r),r=mr(c)}else n=mr(n),r=mr(r);n>r&&(r+=K_);var p=Math.atan2(l,s);return 0>p&&(p+=K_),p>=n&&r>=p||p+K_>=n&&r>=p+K_}function xr(t,e,i,n,r,o){if(o>e&&o>n||e>o&&n>o)return 0;if(n===e)return 0;var a=(o-e)/(n-e),s=e>n?1:-1;(1===a||0===a)&&(s=e>n?.5:-.5);var l=a*(i-t)+t;return l===r?1/0:l>r?s:0}function wr(t,e){return Math.abs(t-e)<J_}function br(){var t=ex[0];ex[0]=ex[1],ex[1]=t}function Sr(t,e,i,n,r,o,a,s,l,u){if(u>e&&u>n&&u>o&&u>s||e>u&&n>u&&o>u&&s>u)return 0;var h=ue(e,n,o,s,u,tx);if(0===h)return 0;for(var c=0,p=-1,f=void 0,d=void 0,g=0;h>g;g++){var v=tx[g],y=0===v||1===v?.5:1;l>se(t,i,r,a,v)||(0>p&&(p=he(e,n,o,s,ex),ex[1]<ex[0]&&p>1&&br(),f=se(e,n,o,s,ex[0]),p>1&&(d=se(e,n,o,s,ex[1]))),c+=2===p?v<ex[0]?e>f?y:-y:v<ex[1]?f>d?y:-y:d>s?y:-y:v<ex[0]?e>f?y:-y:f>s?y:-y)}return c}function Tr(t,e,i,n,r,o,a,s){if(s>e&&s>n&&s>o||e>s&&n>s&&o>s)return 0;var l=ve(e,n,o,s,tx);if(0===l)return 0;var u=ye(e,n,o);if(u>=0&&1>=u){for(var h=0,c=de(e,n,o,u),p=0;l>p;p++){var f=0===tx[p]||1===tx[p]?.5:1,d=de(t,i,r,tx[p]);a>d||(h+=tx[p]<u?e>c?f:-f:c>o?f:-f)}return h}var f=0===tx[0]||1===tx[0]?.5:1,d=de(t,i,r,tx[0]);return a>d?0:e>o?f:-f}function Mr(t,e,i,n,r,o,a,s){if((s-=e)>i||-i>s)return 0;var l=Math.sqrt(i*i-s*s);tx[0]=-l,tx[1]=l;var u=Math.abs(n-r);if(1e-4>u)return 0;if(u>=$_-1e-4){n=0,r=$_;var h=o?1:-1;return a>=tx[0]+t&&a<=tx[1]+t?h:0}if(n>r){var c=n;n=r,r=c}0>n&&(n+=$_,r+=$_);for(var p=0,f=0;2>f;f++){var d=tx[f];if(d+t>a){var g=Math.atan2(s,d),h=o?1:-1;0>g&&(g=$_+g),(g>=n&&r>=g||g+$_>=n&&r>=g+$_)&&(g>Math.PI/2&&g<1.5*Math.PI&&(h=-h),p+=h)}}return p}function Cr(t,e,i,n,r){for(var o,a,s=t.data,l=t.len(),u=0,h=0,c=0,p=0,f=0,d=0;l>d;){var g=s[d++],v=1===d;switch(g===Q_.M&&d>1&&(i||(u+=xr(h,c,p,f,n,r))),v&&(h=s[d],c=s[d+1],p=h,f=c),g){case Q_.M:p=s[d++],f=s[d++],h=p,c=f;break;case Q_.L:if(i){if(gr(h,c,s[d],s[d+1],e,n,r))return!0}else u+=xr(h,c,s[d],s[d+1],n,r)||0;h=s[d++],c=s[d++];break;case Q_.C:if(i){if(vr(h,c,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],e,n,r))return!0}else u+=Sr(h,c,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],n,r)||0;h=s[d++],c=s[d++];break;case Q_.Q:if(i){if(yr(h,c,s[d++],s[d++],s[d],s[d+1],e,n,r))return!0}else u+=Tr(h,c,s[d++],s[d++],s[d],s[d+1],n,r)||0;h=s[d++],c=s[d++];break;case Q_.A:var y=s[d++],m=s[d++],_=s[d++],x=s[d++],w=s[d++],b=s[d++];d+=1;var S=!!(1-s[d++]);o=Math.cos(w)*_+y,a=Math.sin(w)*x+m,v?(p=o,f=a):u+=xr(h,c,o,a,n,r);var T=(n-y)*x/_+y;if(i){if(_r(y,m,x,w,w+b,S,e,T,r))return!0}else u+=Mr(y,m,x,w,w+b,S,T,r);h=Math.cos(w+b)*_+y,c=Math.sin(w+b)*x+m;break;case Q_.R:p=h=s[d++],f=c=s[d++];var M=s[d++],C=s[d++];if(o=p+M,a=f+C,i){if(gr(p,f,o,f,e,n,r)||gr(o,f,o,a,e,n,r)||gr(o,a,p,a,e,n,r)||gr(p,a,p,f,e,n,r))return!0}else u+=xr(o,f,o,a,n,r),u+=xr(p,a,p,f,n,r);break;case Q_.Z:if(i){if(gr(h,c,p,f,e,n,r))return!0}else u+=xr(h,c,p,f,n,r);h=p,c=f}}return i||wr(c,f)||(u+=xr(h,c,p,f,n,r)||0),0!==u}function Ir(t,e,i){return Cr(t,0,!1,e,i)}function kr(t,e,i,n){return Cr(t,e,!0,i,n)}function Ar(t){return!!(t&&"string"!=typeof t&&t.width&&t.height)}function Dr(t,e){var i,n,r,o,a=e.x,s=e.y,l=e.width,u=e.height,h=e.r;0>l&&(a+=l,l=-l),0>u&&(s+=u,u=-u),"number"==typeof h?i=n=r=o=h:h instanceof Array?1===h.length?i=n=r=o=h[0]:2===h.length?(i=r=h[0],n=o=h[1]):3===h.length?(i=h[0],n=o=h[1],r=h[2]):(i=h[0],n=h[1],r=h[2],o=h[3]):i=n=r=o=0;var c;i+n>l&&(c=i+n,i*=l/c,n*=l/c),r+o>l&&(c=r+o,r*=l/c,o*=l/c),n+r>u&&(c=n+r,n*=u/c,r*=u/c),i+o>u&&(c=i+o,i*=u/c,o*=u/c),t.moveTo(a+i,s),t.lineTo(a+l-n,s),0!==n&&t.arc(a+l-n,s+n,n,-Math.PI/2,0),t.lineTo(a+l,s+u-r),0!==r&&t.arc(a+l-r,s+u-r,r,0,Math.PI/2),t.lineTo(a+o,s+u),0!==o&&t.arc(a+o,s+u-o,o,Math.PI/2,Math.PI),t.lineTo(a,s+i),0!==i&&t.arc(a+i,s+i,i,Math.PI,1.5*Math.PI)}function Pr(t,e,i){if(e){var n=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=n,t.x2=r,t.y1=o,t.y2=a;var s=i&&i.lineWidth;return s?(cx(2*n)===cx(2*r)&&(t.x1=t.x2=Lr(n,s,!0)),cx(2*o)===cx(2*a)&&(t.y1=t.y2=Lr(o,s,!0)),t):t}}function Or(t,e,i){if(e){var n=e.x,r=e.y,o=e.width,a=e.height;t.x=n,t.y=r,t.width=o,t.height=a;var s=i&&i.lineWidth;return s?(t.x=Lr(n,s,!0),t.y=Lr(r,s,!0),t.width=Math.max(Lr(n+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(Lr(r+a,s,!1)-t.y,0===a?0:1),t):t}}function Lr(t,e,i){if(!e)return t;var n=cx(2*t);return(n+cx(e))%2==0?n/2:(n+(i?1:-1))/2}function Er(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?wv+"px":t+"px":t}function Rr(t,e){for(var i=0;i<xx.length;i++){var n=xx[i],r=e[n];null!=r&&(t[n]=r)}}function Br(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function Nr(t){return zr(t),d(t.rich,zr),t}function zr(t){if(t){t.font=yx.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||mx[e]?e:"left";var i=t.verticalAlign;"center"===i&&(i="middle"),t.verticalAlign=null==i||_x[i]?i:"top";t.padding&&(t.padding=F(t.padding))}}function Fr(t,e){return null==t||0>=e||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Yr(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Hr(t,e,i){return"right"===e?t-i[1]:"center"===e?t+i[3]/2-i[1]/2:t+i[3]}function Vr(t){var e=t.text;return null!=e&&(e+=""),e}function Wr(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}function Xr(t){return null!=t&&"none"!==t}function Ur(t){if(T(t)){var e=Yx.get(t);return e||(e=Re(t,-.1),Yx.put(t,e)),e}if(P(t)){var i=l({},t);return i.colorStops=g(t.colorStops,function(t){return{offset:t.offset,color:Re(t.color,-.1)}}),i}return t}function jr(t,e,i){t.onHoverStateChange&&(t.hoverState||0)!==i&&t.onHoverStateChange(e),t.hoverState=i}function Gr(t){jr(t,"emphasis",Dx)}function qr(t){t.hoverState===Dx&&jr(t,"normal",kx)}function Zr(t){jr(t,"blur",Ax)}function Kr(t){t.hoverState===Ax&&jr(t,"normal",kx)}function Qr(t){t.selected=!0}function $r(t){t.selected=!1}function Jr(t,e,i){e(t,i)}function to(t,e,i){Jr(t,e,i),t.isGroup&&t.traverse(function(t){Jr(t,e,i)})}function eo(t,e){switch(e){case"emphasis":t.hoverState=Dx;break;case"normal":t.hoverState=kx;break;case"blur":t.hoverState=Ax;break;case"select":t.selected=!0}}function io(t,e,i,n){for(var r=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=r[s];o[s]=null==l?n&&n[s]:l}for(var a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(i)<0&&"style"===u.targetName&&u.saveTo(o,e)}return o}function no(t,e,i,n){var r=i&&h(i,"select")>=0,o=!1;if(t instanceof ox){var a=Cx(t),s=r?a.selectFill||a.normalFill:a.normalFill,u=r?a.selectStroke||a.normalStroke:a.normalStroke;if(Xr(s)||Xr(u)){n=n||{};var c=n.style||{};"inherit"===c.fill?(o=!0,n=l({},n),c=l({},c),c.fill=s):!Xr(c.fill)&&Xr(s)?(o=!0,n=l({},n),c=l({},c),c.fill=Ur(s)):!Xr(c.stroke)&&Xr(u)&&(o||(n=l({},n),c=l({},c)),c.stroke=Ur(u)),n.style=c}}if(n&&null==n.z2){o||(n=l({},n));var p=t.z2EmphasisLift;n.z2=t.z2+(null!=p?p:Lx)}return n}function ro(t,e,i){if(i&&null==i.z2){i=l({},i);var n=t.z2SelectLift;i.z2=t.z2+(null!=n?n:Ex)}return i}function oo(t,e,i){var n=h(t.currentStates,e)>=0,r=t.style.opacity,o=n?null:io(t,["opacity"],e,{opacity:1});i=i||{};var a=i.style||{};return null==a.opacity&&(i=l({},i),a=l({opacity:n?r:.1*o.opacity},a),i.style=a),i}function ao(t,e){var i=this.states[t];if(this.style){if("emphasis"===t)return no(this,t,e,i);if("blur"===t)return oo(this,t,i);if("select"===t)return ro(this,t,i)}return i}function so(t){t.stateProxy=ao;var e=t.getTextContent(),i=t.getTextGuideLine();e&&(e.stateProxy=ao),i&&(i.stateProxy=ao)}function lo(t,e){!yo(t,e)&&!t.__highByOuter&&to(t,Gr)}function uo(t,e){!yo(t,e)&&!t.__highByOuter&&to(t,qr)}function ho(t,e){t.__highByOuter|=1<<(e||0),to(t,Gr)}function co(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&to(t,qr)}function po(t){to(t,Zr)}function fo(t){to(t,Kr)}function go(t){to(t,Qr)}function vo(t){to(t,$r)}function yo(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function mo(t){var e=t.getModel(),i=[],n=[];e.eachComponent(function(e,r){var o=Ix(r),a="series"===e,s=a?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r);!a&&n.push(s),o.isBlured&&(s.group.traverse(function(t){Kr(t)}),a&&i.push(r)),o.isBlured=!1}),d(n,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(i,!1,e)})}function _o(t,e,i,n){function r(t,e){for(var i=0;i<e.length;i++){var n=t.getItemGraphicEl(e[i]);n&&fo(n)}}var o=n.getModel();if(i=i||"coordinateSystem",null!=t&&e&&"none"!==e){var a=o.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];o.eachSeries(function(t){var o=a===t,u=t.coordinateSystem;u&&u.master&&(u=u.master);var h=u&&s?u===s:o;if(!("series"===i&&!o||"coordinateSystem"===i&&!h||"series"===e&&o)){if(n.getViewOfSeriesModel(t).group.traverse(function(t){Zr(t)}),f(e))r(t.getData(),e);else if(I(e))for(var c=_(e),p=0;p<c.length;p++)r(t.getData(c[p]),e[c[p]]);l.push(t),Ix(t).isBlured=!0}}),o.eachComponent(function(t,e){if("series"!==t){var i=n.getViewOfComponentModel(e);i&&i.toggleBlurSeries&&i.toggleBlurSeries(l,!0,o)}})}}function xo(t,e,i){if(null!=t&&null!=e){var n=i.getModel().getComponent(t,e);if(n){Ix(n).isBlured=!0;var r=i.getViewOfComponentModel(n);r&&r.focusBlurEnabled&&r.group.traverse(function(t){Zr(t)})}}}function wo(t,e,i){var n=t.seriesIndex,r=t.getData(e.dataType);if(r){var o=An(r,e);o=(b(o)?o[0]:o)||0;var a=r.getItemGraphicEl(o);if(!a)for(var s=r.count(),l=0;!a&&s>l;)a=r.getItemGraphicEl(l++);if(a){var u=bx(a);_o(n,u.focus,u.blurScope,i)}else{var h=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);null!=h&&_o(n,h,c,i)}}}function bo(t,e,i,n){var r={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==i)return r;var o=n.getModel().getComponent(t,e);if(!o)return r;var a=n.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return r;for(var s,l=a.findHighDownDispatchers(i),u=0;u<l.length;u++)if("self"===bx(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function So(t,e,i){var n=bx(t),r=bo(n.componentMainType,n.componentIndex,n.componentHighDownName,i),o=r.dispatchers,a=r.focusSelf;o?(a&&xo(n.componentMainType,n.componentIndex,i),d(o,function(t){return lo(t,e)})):(_o(n.seriesIndex,n.focus,n.blurScope,i),"self"===n.focus&&xo(n.componentMainType,n.componentIndex,i),lo(t,e))}function To(t,e,i){mo(i);var n=bx(t),r=bo(n.componentMainType,n.componentIndex,n.componentHighDownName,i).dispatchers;r?d(r,function(t){return uo(t,e)}):uo(t,e)}function Mo(t,e){if(Bo(e)){var i=e.dataType,n=t.getData(i),r=An(n,e);b(r)||(r=[r]),t[e.type===Fx?"toggleSelect":e.type===Nx?"select":"unselect"](r,i)}}function Co(t){d(t.getAllData(),function(e){var i=e.data,n=e.type;i.eachItemGraphicEl(function(e,i){t.isSelected(i,n)?go(e):vo(e)})})}function Io(t){var e=[];return t.eachSeries(function(t){d(t.getAllData(),function(i){var n=(i.data,i.type),r=t.getSelectedDataIndices();if(r.length>0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=n&&(o.dataType=n),e.push(o)}})}),e}function ko(t,e,i){Lo(t,!0),to(t,so),Po(t,e,i)}function Ao(t){Lo(t,!1)}function Do(t,e,i,n){n?Ao(t):ko(t,e,i)}function Po(t,e,i){var n=bx(t);null!=e?(n.focus=e,n.blurScope=i):n.focus&&(n.focus=null)}function Oo(t,e,i,n){i=i||"itemStyle";for(var r=0;r<Hx.length;r++){var o=Hx[r],a=e.getModel([o,i]);t.ensureState(o).style=n?n(a):a[Vx[i]]()}}function Lo(t,e){var i=!1===e,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!i||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!i)}function Eo(t){return!(!t||!t.__highDownDispatcher)}function Ro(t){var e=Mx[t];return null==e&&32>=Tx&&(e=Mx[t]=Tx++),e}function Bo(t){var e=t.type;return e===Nx||e===zx||e===Fx}function No(t){var e=t.type;return e===Rx||e===Bx}function zo(t){var e=Cx(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var i=t.states.select||{};e.selectFill=i.style&&i.style.fill||null,e.selectStroke=i.style&&i.style.stroke||null}function Fo(t,e){if(e){var i,n,r,o,a,s,l=t.data,u=t.len(),h=Wx.M,c=Wx.C,p=Wx.L,f=Wx.R,d=Wx.A,g=Wx.Q;for(r=0,o=0;u>r;){switch(i=l[r++],o=r,n=0,i){case h:case p:n=1;break;case c:n=3;break;case g:n=2;break;case d:var v=e[4],y=e[5],m=Ux(e[0]*e[0]+e[1]*e[1]),_=Ux(e[2]*e[2]+e[3]*e[3]),x=jx(-e[1]/_,e[0]/m);l[r]*=m,l[r++]+=v,l[r]*=_,l[r++]+=y,l[r++]*=m,l[r++]*=_,l[r++]+=x,l[r++]+=x,r+=2,o=r;break;case f:s[0]=l[r++],s[1]=l[r++],gt(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],gt(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;n>a;a++){var w=Xx[a];w[0]=l[r++],w[1]=l[r++],gt(w,w,e),l[o++]=w[0],l[o++]=w[1]}}t.increaseVersion()}}function Yo(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Ho(t,e){return(t[0]*e[0]+t[1]*e[1])/(Yo(t)*Yo(e))}function Vo(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Ho(t,e))}function Wo(t,e,i,n,r,o,a,s,l,u,h){var c=l*(Kx/180),p=Zx(c)*(t-i)/2+qx(c)*(e-n)/2,f=-1*qx(c)*(t-i)/2+Zx(c)*(e-n)/2,d=p*p/(a*a)+f*f/(s*s);d>1&&(a*=Gx(d),s*=Gx(d));var g=(r===o?-1:1)*Gx((a*a*s*s-a*a*f*f-s*s*p*p)/(a*a*f*f+s*s*p*p))||0,v=g*a*f/s,y=g*-s*p/a,m=(t+i)/2+Zx(c)*v-qx(c)*y,_=(e+n)/2+qx(c)*v+Zx(c)*y,x=Vo([1,0],[(p-v)/a,(f-y)/s]),w=[(p-v)/a,(f-y)/s],b=[(-1*p-v)/a,(-1*f-y)/s],S=Vo(w,b);if(Ho(w,b)<=-1&&(S=Kx),Ho(w,b)>=1&&(S=0),0>S){var T=Math.round(S/Kx*1e6)/1e6;S=2*Kx+T%2*Kx}h.addData(u,m,_,a,s,x,S,c,o)}function Xo(t){var e=new q_;if(!t)return e;var i,n=0,r=0,o=n,a=r,s=q_.CMD,l=t.match(Qx);if(!l)return e;for(var u=0;u<l.length;u++){for(var h=l[u],c=h.charAt(0),p=void 0,f=h.match($x)||[],d=f.length,g=0;d>g;g++)f[g]=parseFloat(f[g]);for(var v=0;d>v;){var y=void 0,m=void 0,_=void 0,x=void 0,w=void 0,b=void 0,S=void 0,T=n,M=r,C=void 0,I=void 0;switch(c){case"l":n+=f[v++],r+=f[v++],p=s.L,e.addData(p,n,r);break;case"L":n=f[v++],r=f[v++],p=s.L,e.addData(p,n,r);break;case"m":n+=f[v++],r+=f[v++],p=s.M,e.addData(p,n,r),o=n,a=r,c="l";break;case"M":n=f[v++],r=f[v++],p=s.M,e.addData(p,n,r),o=n,a=r,c="L";break;case"h":n+=f[v++],p=s.L,e.addData(p,n,r);break;case"H":n=f[v++],p=s.L,e.addData(p,n,r);break;case"v":r+=f[v++],p=s.L,e.addData(p,n,r);break;case"V":r=f[v++],p=s.L,e.addData(p,n,r);break;case"C":p=s.C,e.addData(p,f[v++],f[v++],f[v++],f[v++],f[v++],f[v++]),n=f[v-2],r=f[v-1];break;case"c":p=s.C,e.addData(p,f[v++]+n,f[v++]+r,f[v++]+n,f[v++]+r,f[v++]+n,f[v++]+r),n+=f[v-2],r+=f[v-1];break;case"S":y=n,m=r,C=e.len(),I=e.data,i===s.C&&(y+=n-I[C-4],m+=r-I[C-3]),p=s.C,T=f[v++],M=f[v++],n=f[v++],r=f[v++],e.addData(p,y,m,T,M,n,r);break;case"s":y=n,m=r,C=e.len(),I=e.data,i===s.C&&(y+=n-I[C-4],m+=r-I[C-3]),p=s.C,T=n+f[v++],M=r+f[v++],n+=f[v++],r+=f[v++],e.addData(p,y,m,T,M,n,r);break;case"Q":T=f[v++],M=f[v++],n=f[v++],r=f[v++],p=s.Q,e.addData(p,T,M,n,r);break;case"q":T=f[v++]+n,M=f[v++]+r,n+=f[v++],r+=f[v++],p=s.Q,e.addData(p,T,M,n,r);break;case"T":y=n,m=r,C=e.len(),I=e.data,i===s.Q&&(y+=n-I[C-4],m+=r-I[C-3]),n=f[v++],r=f[v++],p=s.Q,e.addData(p,y,m,n,r);break;case"t":y=n,m=r,C=e.len(),I=e.data,i===s.Q&&(y+=n-I[C-4],m+=r-I[C-3]),n+=f[v++],r+=f[v++],p=s.Q,e.addData(p,y,m,n,r);break;case"A":_=f[v++],x=f[v++],w=f[v++],b=f[v++],S=f[v++],T=n,M=r,n=f[v++],r=f[v++],p=s.A,Wo(T,M,n,r,b,S,_,x,w,p,e);break;case"a":_=f[v++],x=f[v++],w=f[v++],b=f[v++],S=f[v++],T=n,M=r,n+=f[v++],r+=f[v++],p=s.A,Wo(T,M,n,r,b,S,_,x,w,p,e)}}("z"===c||"Z"===c)&&(p=s.Z,e.addData(p),n=o,r=a),i=p}return e.toStatic(),e}function Uo(t){return null!=t.setData}function jo(t,e){var i=Xo(t),n=l({},e);return n.buildPath=function(t){if(Uo(t)){t.setData(i.data);var e=t.getContext();e&&t.rebuildPath(e,1)}else{var e=t;i.rebuildPath(e,1)}},n.applyTransform=function(t){Fo(i,t),this.dirtyShape()},n}function Go(t,e){return new Jx(jo(t,e))}function qo(t,i){var n=jo(t,i);return function(t){function i(e){var i=t.call(this,e)||this;return i.applyTransform=n.applyTransform,i.buildPath=n.buildPath,i}return e(i,t),i}(Jx)}function Zo(t,e){for(var i=[],n=t.length,r=0;n>r;r++){var o=t[r];i.push(o.getUpdatedPathProxy(!0))}var a=new ox(e);return a.createPathProxy(),a.buildPath=function(t){if(Uo(t)){t.appendPath(i);var e=t.getContext();e&&t.rebuildPath(e,1)}},a}function Ko(t,e,i,n,r,o,a,s){var l=i-t,u=n-e,h=a-r,c=s-o,p=c*l-h*u;return dw>p*p?void 0:(p=(h*(e-o)-c*(t-r))/p,[t+p*l,e+p*u])}function Qo(t,e,i,n,r,o,a){var s=t-i,l=e-n,u=(a?o:-o)/cw(s*s+l*l),h=u*l,c=-u*s,p=t+h,f=e+c,d=i+h,g=n+c,v=(p+d)/2,y=(f+g)/2,m=d-p,_=g-f,x=m*m+_*_,w=r-o,b=p*g-d*f,S=(0>_?-1:1)*cw(pw(0,w*w*x-b*b)),T=(b*_-m*S)/x,M=(-b*m-_*S)/x,C=(b*_+m*S)/x,I=(-b*m+_*S)/x,k=T-v,A=M-y,D=C-v,P=I-y;return k*k+A*A>D*D+P*P&&(T=C,M=I),{cx:T,cy:M,x0:-h,y0:-c,x1:T*(r/w-1),y1:M*(r/w-1)}}function $o(t){var e;if(b(t)){var i=t.length;if(!i)return t;e=1===i?[t[0],t[0],0,0]:2===i?[t[0],t[0],t[1],t[1]]:3===i?t.concat(t[2]):t}else e=[t,t,t,t];return e}function Jo(t,e){var i,n=pw(e.r,0),r=pw(e.r0||0,0),o=n>0,a=r>0;if(o||a){if(o||(n=r,r=0),r>n){var s=n;n=r,r=s}var l=e.startAngle,u=e.endAngle;if(!isNaN(l)&&!isNaN(u)){var h=e.cx,c=e.cy,p=!!e.clockwise,f=hw(u-l),d=f>ow&&f%ow;if(d>dw&&(f=d),n>dw)if(f>ow-dw)t.moveTo(h+n*sw(l),c+n*aw(l)),t.arc(h,c,n,l,u,!p),r>dw&&(t.moveTo(h+r*sw(u),c+r*aw(u)),t.arc(h,c,r,u,l,p));else{var g=void 0,v=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,M=void 0,C=void 0,I=void 0,k=void 0,A=void 0,D=void 0,P=n*sw(l),O=n*aw(l),L=r*sw(u),E=r*aw(u),R=f>dw;if(R){var B=e.cornerRadius;B&&(i=$o(B),g=i[0],v=i[1],y=i[2],m=i[3]);var N=hw(n-r)/2;if(_=fw(N,y),x=fw(N,m),w=fw(N,g),b=fw(N,v),M=S=pw(_,x),C=T=pw(w,b),(S>dw||T>dw)&&(I=n*sw(u),k=n*aw(u),A=r*sw(l),D=r*aw(l),rw>f)){var z=Ko(P,O,A,D,I,k,L,E);if(z){var F=P-z[0],Y=O-z[1],H=I-z[0],V=k-z[1],W=1/aw(lw((F*H+Y*V)/(cw(F*F+Y*Y)*cw(H*H+V*V)))/2),X=cw(z[0]*z[0]+z[1]*z[1]);M=fw(S,(n-X)/(W+1)),C=fw(T,(r-X)/(W-1))}}}if(R)if(M>dw){var U=fw(y,M),j=fw(m,M),G=Qo(A,D,P,O,n,U,p),q=Qo(I,k,L,E,n,j,p);t.moveTo(h+G.cx+G.x0,c+G.cy+G.y0),S>M&&U===j?t.arc(h+G.cx,c+G.cy,M,uw(G.y0,G.x0),uw(q.y0,q.x0),!p):(U>0&&t.arc(h+G.cx,c+G.cy,U,uw(G.y0,G.x0),uw(G.y1,G.x1),!p),t.arc(h,c,n,uw(G.cy+G.y1,G.cx+G.x1),uw(q.cy+q.y1,q.cx+q.x1),!p),j>0&&t.arc(h+q.cx,c+q.cy,j,uw(q.y1,q.x1),uw(q.y0,q.x0),!p))}else t.moveTo(h+P,c+O),t.arc(h,c,n,l,u,!p);else t.moveTo(h+P,c+O);if(r>dw&&R)if(C>dw){var U=fw(g,C),j=fw(v,C),G=Qo(L,E,I,k,r,-j,p),q=Qo(P,O,A,D,r,-U,p);t.lineTo(h+G.cx+G.x0,c+G.cy+G.y0),T>C&&U===j?t.arc(h+G.cx,c+G.cy,C,uw(G.y0,G.x0),uw(q.y0,q.x0),!p):(j>0&&t.arc(h+G.cx,c+G.cy,j,uw(G.y0,G.x0),uw(G.y1,G.x1),!p),t.arc(h,c,r,uw(G.cy+G.y1,G.cx+G.x1),uw(q.cy+q.y1,q.cx+q.x1),p),U>0&&t.arc(h+q.cx,c+q.cy,U,uw(q.y1,q.x1),uw(q.y0,q.x0),!p))}else t.lineTo(h+L,c+E),t.arc(h,c,r,u,l,p);else t.lineTo(h+L,c+E)}else t.moveTo(h,c);t.closePath()}}}function ta(t,e,i,n){var r,o,a,s,l=[],u=[],h=[],c=[];if(n){a=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,f=t.length;f>p;p++)vt(a,a,t[p]),yt(s,s,t[p]);vt(a,a,n[0]),yt(s,s,n[1])}for(var p=0,f=t.length;f>p;p++){var d=t[p];if(i)r=t[p?p-1:f-1],o=t[(p+1)%f];else{if(0===p||p===f-1){l.push(J(t[p]));continue}r=t[p-1],o=t[p+1]}nt(u,o,r),ut(u,u,e);var g=ct(d,r),v=ct(d,o),y=g+v;0!==y&&(g/=y,v/=y),ut(h,u,-g),ut(c,u,v);var m=et([],d,h),_=et([],d,c);n&&(yt(m,m,a),vt(m,m,s),yt(_,_,a),vt(_,_,s)),l.push(m),l.push(_)}return i&&l.push(l.shift()),l}function ea(t,e,i){var n=e.smooth,r=e.points;if(r&&r.length>=2){if(n){var o=ta(r,n,i,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;(i?a:a-1)>s;s++){var l=o[2*s],u=o[2*s+1],h=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{t.moveTo(r[0][0],r[0][1]);for(var s=1,c=r.length;c>s;s++)t.lineTo(r[s][0],r[s][1])}i&&t.closePath()}}function ia(t,e,i){var n=t.cpx2,r=t.cpy2;return null!=n||null!=r?[(i?le:se)(t.x1,t.cpx1,t.cpx2,t.x2,e),(i?le:se)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(i?ge:de)(t.x1,t.cpx1,t.x2,e),(i?ge:de)(t.y1,t.cpy1,t.y2,e)]}function na(t,e,i,n,r){var o;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s=e&&e.isAnimationEnabled(),l="update"===t;if(s){var u=void 0,h=void 0,c=void 0;n?(u=B(n.duration,200),h=B(n.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),h=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(u=o.duration),null!=o.easing&&(h=o.easing),null!=o.delay&&(c=o.delay)),S(c)&&(c=c(i,r)),S(u)&&(u=u(i));return{duration:u||0,delay:c,easing:h}}return null}function ra(t,e,i,n,r,o,a){var s,l=!1;S(r)?(a=o,o=r,r=null):I(r)&&(o=r.cb,a=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var h=na(t,n,r,u?s||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,r):null);if(h&&h.duration>0){var c=h.duration,p=h.delay,f=h.easing,d={duration:c,delay:p||0,easing:f,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(i,d):e.animateTo(i,d)}else e.stopAnimation(),!l&&e.attr(i),a&&a(1),o&&o()}function oa(t,e,i,n,r,o){ra("update",t,e,i,n,r,o)}function aa(t,e,i,n,r,o){ra("enter",t,e,i,n,r,o)}function sa(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){if("leave"===t.animators[e].scope)return!0}return!1}function la(t,e,i,n,r,o){sa(t)||ra("leave",t,e,i,n,r,o)}function ua(t,e,i,n){t.removeTextContent(),t.removeTextGuideLine(),la(t,{style:{opacity:0}},e,i,n)}function ha(t,e,i){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||ua(t,e,i,n)}):ua(t,e,i,n)}function ca(t){Vw(t).oldStyle=t.style}function pa(t){return ox.extend(t)}function fa(t,e){return jw(t,e)}function da(t,e){Uw[t]=e}function ga(t){return Uw.hasOwnProperty(t)?Uw[t]:void 0}function va(t,e,i,n){var r=Go(t,e);return i&&("center"===n&&(i=ma(i,r.getBoundingRect())),_a(r,i)),r}function ya(t,e,i){var n=new hx({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===i){var r={width:t.width,height:t.height};n.setStyle(ma(e,r))}}});return n}function ma(t,e){var i,n=e.width/e.height,r=t.height*n;return r<=t.width?i=t.height:(r=t.width,i=r/n),{x:t.x+t.width/2-r/2,y:t.y+t.height/2-i/2,width:r,height:i}}function _a(t,e){if(t.applyTransform){var i=t.getBoundingRect(),n=i.calculateTransform(e);t.applyTransform(n)}}function xa(t,e){return Pr(t,t,{lineWidth:e}),t}function wa(t){return Or(t.shape,t.shape,t.style),t}function ba(t,e){for(var i=Bt([]);t&&t!==e;)zt(i,t.getLocalTransform(),i),t=t.parent;return i}function Sa(t,e,i){return e&&!f(e)&&(e=Lm.getLocalTransform(e)),i&&(e=Vt([],e)),gt([],t,e)}function Ta(t,e,i){var n=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-n:"right"===t?n:0,"top"===t?-r:"bottom"===t?r:0];return o=Sa(o,e,i),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Ma(t){return!t.isGroup}function Ca(t){return null!=t.shape}function Ia(t,e,i){function n(t){var e={x:t.x,y:t.y,rotation:t.rotation};return Ca(t)&&(e.shape=l({},t.shape)),e}if(t&&e){var r=function(t){var e={};return t.traverse(function(t){Ma(t)&&t.anid&&(e[t.anid]=t)}),e}(t);e.traverse(function(t){if(Ma(t)&&t.anid){var e=r[t.anid];if(e){var o=n(t);t.attr(n(e)),oa(t,o,i,bx(t).dataIndex)}}})}}function ka(t,e){return g(t,function(t){var i=t[0];i=Ww(i,e.x),i=Xw(i,e.x+e.width);var n=t[1];return n=Ww(n,e.y),n=Xw(n,e.y+e.height),[i,n]})}function Aa(t,e){var i=Ww(t.x,e.x),n=Xw(t.x+t.width,e.x+e.width),r=Ww(t.y,e.y),o=Xw(t.y+t.height,e.y+e.height);return n>=i&&o>=r?{x:i,y:r,width:n-i,height:o-r}:void 0}function Da(t,e,i){var n=l({rectHover:!0},e),r=n.style={strokeNoScale:!0};return i=i||{x:-1,y:-1,width:2,height:2},t?0===t.indexOf("image://")?(r.image=t.slice(8),u(r,i),new hx(n)):va(t.replace("path://",""),n,i,"center"):void 0}function Pa(t,e,i,n,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(Oa(t,e,i,n,s[0],s[1],a[0],a[1]))return!0;a=s}}function Oa(t,e,i,n,r,o,a,s){var l=i-t,u=n-e,h=a-r,c=s-o,p=La(h,c,l,u);if(Ea(p))return!1;var f=t-r,d=e-o,g=La(f,d,l,u)/p;if(0>g||g>1)return!1;var v=La(f,d,h,c)/p;return!(0>v||v>1)}function La(t,e,i,n){return t*n-i*e}function Ea(t){return 1e-6>=t&&t>=-1e-6}function Ra(t){var e=t.itemTooltipOption,i=t.componentModel,n=t.itemName,r=T(e)?{formatter:e}:e,o=i.mainType,a=i.componentIndex,s={componentType:o,name:n,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&d(_(l),function(t){Z(s,t)||(s[t]=l[t],s.$vars.push(t))});var h=bx(t.el);h.componentMainType=o,h.componentIndex=a,h.tooltipConfig={name:n,option:u({content:n,formatterParams:s},r)}}function Ba(t,e){var i;t.isGroup&&(i=e(t)),i||t.traverse(e)}function Na(t,e){if(t)if(b(t))for(var i=0;i<t.length;i++)Ba(t[i],e);else Ba(t,e)}function za(t,e){for(var i=0;i<Px.length;i++){var n=Px[i],r=e[n],o=t.ensureState(n);o.style=o.style||{},o.style.text=r}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}function Fa(t,e,i){var n,r=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;r&&(n=r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=i?{interpolatedValue:i}:null)),null==n&&(n=S(t.defaultText)?t.defaultText(o,t,i):t.defaultText);for(var l={normal:n},u=0;u<Px.length;u++){var h=Px[u],c=e[h];l[h]=B(r?r.getFormattedLabel(o,h,null,a,c&&c.get("formatter")):null,n)}return l}function Ya(t,e,i,n){i=i||Kw;for(var r=t instanceof yx,o=!1,a=0;a<Ox.length;a++){var s=e[Ox[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=r?t:t.getTextContent();if(o){r||(l||(l=new yx,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=Fa(i,e),h=e.normal,c=!!h.getShallow("show"),p=Va(h,n&&n.normal,i,!1,!r);p.text=u.normal,r||t.setTextConfig(Wa(h,i,!1));for(var a=0;a<Px.length;a++){var f=Px[a],s=e[f];if(s){var d=l.ensureState(f),g=!!B(s.getShallow("show"),c);if(g!==c&&(d.ignore=!g),d.style=Va(s,n&&n[f],i,!0,!r),d.style.text=u[f],!r){t.ensureState(f).textConfig=Wa(s,i,!0)}}}l.silent=!!h.getShallow("silent"),null!=l.style.x&&(p.x=l.style.x),null!=l.style.y&&(p.y=l.style.y),l.ignore=!c,l.useStyle(p),l.dirty(),i.enableTextSetter&&(tb(l).setLabelText=function(t){var n=Fa(i,e,t);za(l,n)})}else l&&(l.ignore=!0);t.dirty()}function Ha(t,e){e=e||"label";for(var i={normal:t.getModel(e)},n=0;n<Px.length;n++){var r=Px[n];i[r]=t.getModel([r,e])}return i}function Va(t,e,i,n,r){var o={};return Xa(o,t,i,n,r),e&&l(o,e),o}function Wa(t,e,i){e=e||{};var n,r={},o=t.getShallow("rotate"),a=B(t.getShallow("distance"),i?null:5),s=t.getShallow("offset");return n=t.getShallow("position")||(i?null:"inside"),"outside"===n&&(n=e.defaultOutsidePosition||"top"),null!=n&&(r.position=n),null!=s&&(r.offset=s),null!=o&&(o*=Math.PI/180,r.rotation=o),null!=a&&(r.distance=a),r.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",r}function Xa(t,e,i,n,r){i=i||Kw;var o,a=e.ecModel,s=a&&a.option.textStyle,l=Ua(e);if(l){o={};for(var u in l)if(l.hasOwnProperty(u)){var h=e.getModel(["rich",u]);ja(o[u]={},h,s,i,n,r,!1,!0)}}o&&(t.rich=o);var c=e.get("overflow");c&&(t.overflow=c);var p=e.get("minMargin");null!=p&&(t.margin=p),ja(t,e,s,i,n,r,!0,!1)}function Ua(t){for(var e;t&&t!==t.ecModel;){var i=(t.option||Kw).rich;if(i){e=e||{};for(var n=_(i),r=0;r<n.length;r++){e[n[r]]=1}}t=t.parentModel}return e}function ja(t,e,i,n,r,o,a,s){i=!r&&i||Kw;var l=n&&n.inheritColor,u=e.getShallow("color"),h=e.getShallow("textBorderColor"),c=B(e.getShallow("opacity"),i.opacity);("inherit"===u||"auto"===u)&&(u=l||null),("inherit"===h||"auto"===h)&&(h=l||null),o||(u=u||i.color,h=h||i.textBorderColor),null!=u&&(t.fill=u),null!=h&&(t.stroke=h);var p=B(e.getShallow("textBorderWidth"),i.textBorderWidth);null!=p&&(t.lineWidth=p);var f=B(e.getShallow("textBorderType"),i.textBorderType);null!=f&&(t.lineDash=f);var d=B(e.getShallow("textBorderDashOffset"),i.textBorderDashOffset);null!=d&&(t.lineDashOffset=d),r||null!=c||s||(c=n&&n.defaultOpacity),null!=c&&(t.opacity=c),r||o||null==t.fill&&n.inheritColor&&(t.fill=n.inheritColor);for(var g=0;g<Qw.length;g++){var v=Qw[g],y=B(e.getShallow(v),i[v]);null!=y&&(t[v]=y)}for(var g=0;g<$w.length;g++){var v=$w[g],y=e.getShallow(v);null!=y&&(t[v]=y)}if(null==t.verticalAlign){var m=e.getShallow("baseline");null!=m&&(t.verticalAlign=m)}if(!a||!n.disableBox){for(var g=0;g<Jw.length;g++){var v=Jw[g],y=e.getShallow(v);null!=y&&(t[v]=y)}var _=e.getShallow("borderType");null!=_&&(t.borderDash=_),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||(t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||(t.borderColor=l)}}function Ga(t,e){var i=e&&e.getModel("textStyle");return H([t.fontStyle||i&&i.getShallow("fontStyle")||"",t.fontWeight||i&&i.getShallow("fontWeight")||"",(t.fontSize||i&&i.getShallow("fontSize")||12)+"px",t.fontFamily||i&&i.getShallow("fontFamily")||"sans-serif"].join(" "))}function qa(t,e,i,n,r){function o(n){var o=Nn(i,a.precision,l,u,n);a.interpolatedValue=1===n?null:o;var h=Fa({labelDataIndex:e,labelFetcher:r,defaultText:s?s(o):o+""},a.statesModels,o);za(t,h)}var a=tb(t);if(a.valueAnimation&&a.prevValue!==a.value){var s=a.defaultInterpolatedText,l=B(a.interpolatedValue,a.prevValue),u=a.value;t.percent=0,(null==a.prevValue?aa:oa)(t,{percent:1},n,e,null,o)}}function Za(t){return[t||"",pb++].join("_")}function Ka(t,e){t=t.toUpperCase(),_b[t]=new cb(e),mb[t]=e}function Qa(t){if(T(t)){var e=mb[t.toUpperCase()]||{};return t===gb||t===vb?o(e):a(o(e),o(mb[yb]),!1)}return a(o(t),o(mb[yb]),!1)}function $a(t){return _b[t]}function Ja(){return _b[yb]}function ts(t,e){return t+="","0000".substr(0,e-t.length)+t}function es(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function is(t){return t===es(t)}function ns(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function rs(t,e,i,n){var r=Qi(t),o=r[ls(i)](),a=r[us(i)]()+1,s=Math.floor((a-1)/3)+1,l=r[hs(i)](),u=r["get"+(i?"UTC":"")+"Day"](),h=r[cs(i)](),c=(h-1)%12+1,p=r[ps(i)](),f=r[fs(i)](),d=r[ds(i)](),g=n instanceof cb?n:$a(n||xb)||Ja(),v=g.getModel("time"),y=v.get("month"),m=v.get("monthAbbr"),_=v.get("dayOfWeek"),x=v.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[a-1]).replace(/{MMM}/g,m[a-1]).replace(/{MM}/g,ts(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,ts(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ts(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,ts(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,ts(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,ts(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,ts(d,3)).replace(/{S}/g,d+"")}function os(t,e,i,n,r){var o=null;if(T(i))o=i;else if(S(i))o=i(t.value,e,{level:t.level});else{var a=l({},Cb);if(t.level>0)for(var s=0;s<Ab.length;++s)a[Ab[s]]="{primary|"+a[Ab[s]]+"}";var h=i?!1===i.inherit?i:u(i,a):a,c=as(t.value,r);if(h[c])o=h[c];else if(h.inherit){for(var p=Db.indexOf(c),s=p-1;s>=0;--s)if(h[c]){o=h[c];break}o=o||a.none}if(b(o)){var f=null==t.level?0:t.level>=0?t.level:o.length+t.level;f=Math.min(f,o.length-1),o=o[f]}}return rs(new Date(t.value),o,r,n)}function as(t,e){var i=Qi(t),n=i[us(e)]()+1,r=i[hs(e)](),o=i[cs(e)](),a=i[ps(e)](),s=i[fs(e)](),l=i[ds(e)](),u=0===l,h=u&&0===s,c=h&&0===a,p=c&&0===o,f=p&&1===r;return f&&1===n?"year":f?"month":p?"day":c?"hour":h?"minute":u?"second":"millisecond"}function ss(t,e,i){var n=C(t)?Qi(t):t;switch(e=e||as(t,i)){case"year":return n[ls(i)]();case"half-year":return n[us(i)]()>=6?1:0;case"quarter":return Math.floor((n[us(i)]()+1)/4);case"month":return n[us(i)]();case"day":return n[hs(i)]();case"half-day":return n[cs(i)]()/24;case"hour":return n[cs(i)]();case"minute":return n[ps(i)]();case"second":return n[fs(i)]();case"millisecond":return n[ds(i)]()}}function ls(t){return t?"getUTCFullYear":"getFullYear"}function us(t){return t?"getUTCMonth":"getMonth"}function hs(t){return t?"getUTCDate":"getDate"}function cs(t){return t?"getUTCHours":"getHours"}function ps(t){return t?"getUTCMinutes":"getMinutes"}function fs(t){return t?"getUTCSeconds":"getSeconds"}function ds(t){return t?"getUTCMilliseconds":"getMilliseconds"}function gs(t){return t?"setUTCFullYear":"setFullYear"}function vs(t){return t?"setUTCMonth":"setMonth"}function ys(t){return t?"setUTCDate":"setDate"}function ms(t){return t?"setUTCHours":"setHours"}function _s(t){return t?"setUTCMinutes":"setMinutes"}function xs(t){return t?"setUTCSeconds":"setSeconds"}function ws(t){return t?"setUTCMilliseconds":"setMilliseconds"}function bs(t,e,i,n,r,o,a,s){return new yx({style:{text:t,font:e,align:i,verticalAlign:n,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()}function Ss(t){if(!on(t))return T(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Ts(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}function Ms(t,e,i){function n(t){return t&&H(t)?t:"-"}function r(t){return!(null==t||isNaN(t)||!isFinite(t))}var o="time"===e,a=t instanceof Date;if(o||a){var s=o?Qi(t):t;if(!isNaN(+s))return rs(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",i);if(a)return"-"}if("ordinal"===e)return M(t)?n(t):C(t)&&r(t)?t+"":"-";var l=rn(t);return r(l)?Ss(l):M(t)?n(t):"boolean"==typeof t?t+"":"-"}function Cs(t,e,i){b(e)||(e=[e]);var n=e.length;if(!n)return"";for(var r=e[0].$vars||[],o=0;o<r.length;o++){var a=Ob[o];t=t.replace(Lb(a),Lb(a,0))}for(var s=0;n>s;s++)for(var l=0;l<r.length;l++){var u=e[s][r[l]];t=t.replace(Lb(Ob[l],s),i?Mt(u):u)}return t}function Is(t,e){var i=T(t)?{color:t,extraCssText:e}:t||{},n=i.color,r=i.type;e=i.extraCssText;var o=i.renderMode||"html";return n?"html"===o?"subItem"===r?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Mt(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Mt(n)+";"+(e||"")+'"></span>':{renderMode:o,content:"{"+(i.markerId||"markerX")+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}:""}function ks(t,e,i){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var n=Qi(e),r=i?"getUTC":"get",o=n[r+"FullYear"](),a=n[r+"Month"]()+1,s=n[r+"Date"](),l=n[r+"Hours"](),u=n[r+"Minutes"](),h=n[r+"Seconds"](),c=n[r+"Milliseconds"]();return t=t.replace("MM",ts(a,2)).replace("M",a).replace("yyyy",o).replace("yy",ts(o%100+"",2)).replace("dd",ts(s,2)).replace("d",s).replace("hh",ts(l,2)).replace("h",l).replace("mm",ts(u,2)).replace("m",u).replace("ss",ts(h,2)).replace("s",h).replace("SSS",ts(c,3))}function As(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function Ds(t,e){return e=e||"transparent",T(t)?t:I(t)?t.colorStops&&(t.colorStops[0]||{}).color||e:e}function Ps(t,e,i,n,r){var o=0,a=0;null==n&&(n=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,u){var h,c,p=l.getBoundingRect(),f=e.childAt(u+1),d=f&&f.getBoundingRect();if("horizontal"===t){var g=p.width+(d?-d.x+p.x:0);h=o+g,h>n||l.newline?(o=0,h=g,a+=s+i,s=p.height):s=Math.max(s,p.height)}else{var v=p.height+(d?-d.y+p.y:0);c=a+v,c>r||l.newline?(o+=s+i,a=0,c=v,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=h+i:a=c+i)})}function Os(t,e,i){i=Pb(i||0);var n=e.width,r=e.height,o=Yi(t.left,n),a=Yi(t.top,r),s=Yi(t.right,n),l=Yi(t.bottom,r),u=Yi(t.width,n),h=Yi(t.height,r),c=i[2]+i[0],p=i[1]+i[3],f=t.aspect;switch(isNaN(u)&&(u=n-s-p-o),isNaN(h)&&(h=r-l-c-a),null!=f&&(isNaN(u)&&isNaN(h)&&(f>n/r?u=.8*n:h=.8*r),isNaN(u)&&(u=f*h),isNaN(h)&&(h=u/f)),isNaN(o)&&(o=n-s-u-p),isNaN(a)&&(a=r-l-h-c),t.left||t.right){case"center":o=n/2-u/2-i[3];break;case"right":o=n-u-p}switch(t.top||t.bottom){case"middle":case"center":a=r/2-h/2-i[0];break;case"bottom":a=r-h-c}o=o||0,a=a||0,isNaN(u)&&(u=n-p-o-(s||0)),isNaN(h)&&(h=r-c-a-(l||0));var d=new by(o+i[3],a+i[0],u,h);return d.margin=i,d}function Ls(t){var e=t.layoutMode||t.constructor.layoutMode;return I(e)?e:e?{type:e}:null}function Es(t,e,i){function n(i,n){var a={},l=0,u={},h=0;if(Eb(i,function(e){u[e]=t[e]}),Eb(i,function(t){r(e,t)&&(a[t]=u[t]=e[t]),o(a,t)&&l++,o(u,t)&&h++}),s[n])return o(e,i[1])?u[i[2]]=null:o(e,i[2])&&(u[i[1]]=null),u;if(2!==h&&l){if(l>=2)return a;for(var c=0;c<i.length;c++){var p=i[c];if(!r(a,p)&&r(t,p)){a[p]=t[p];break}}return a}return u}function r(t,e){return t.hasOwnProperty(e)}function o(t,e){return null!=t[e]&&"auto"!==t[e]}function a(t,e,i){Eb(t,function(t){e[t]=i[t]})}var s=i&&i.ignoreSize;!b(s)&&(s=[s,s]);var l=n(Bb[0],0),u=n(Bb[1],1);a(Bb[0],t,l),a(Bb[1],t,u)}function Rs(t){return Bs({},t)}function Bs(t,e){return e&&t&&Eb(Rb,function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t}function Ns(t){var e=[];return d(zb.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=g(e,function(t){return zn(t).main}),"dataset"!==t&&h(e,"dataset")<=0&&e.unshift("dataset"),e}function zs(t){tS(t).datasetMap=U()}function Fs(t,e,i){function n(t,e,i){for(var n=0;i>n;n++)t.push(e+n)}function r(t){var e=t.dimsDef;return e?e.length:1}var o={},a=Ys(e);if(!a||!t)return o;var s,l,u=[],h=[],c=e.ecModel,p=tS(c).datasetMap,f=a.uid+"_"+i.seriesLayoutBy;t=t.slice(),d(t,function(e,i){var n=I(e)?e:t[i]={name:e};"ordinal"===n.type&&null==s&&(s=i,l=r(n)),o[n.name]=[]});var g=p.get(f)||p.set(f,{categoryWayDim:l,valueWayDim:0});return d(t,function(t,e){var i=t.name,a=r(t);if(null==s){var l=g.valueWayDim;n(o[i],l,a),n(h,l,a),g.valueWayDim+=a}else if(s===e)n(o[i],0,a),n(u,0,a);else{var l=g.categoryWayDim;n(o[i],l,a),n(h,l,a),g.categoryWayDim+=a}}),u.length&&(o.itemName=u),h.length&&(o.seriesName=h),o}function Ys(t){return t.get("data",!0)?void 0:Ln(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},t_).models[0]}function Hs(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?Ln(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},t_).models:[]}function Vs(t,e){return Ws(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Ws(t,e,i,n,r,o){function a(t){var e=T(t);return null!=t&&isFinite(t)&&""!==t?e?Jb.Might:Jb.Not:e&&"-"!==t?Jb.Must:void 0}var s;if(A(t))return Jb.Not;var l,u;if(n){var h=n[o];I(h)?(l=h.name,u=h.type):T(h)&&(l=h)}if(null!=u)return"ordinal"===u?Jb.Must:Jb.Not;if(e===jb){var c=t;if(i===$b){for(var p=c[o],f=0;f<(p||[]).length&&5>f;f++)if(null!=(s=a(p[r+f])))return s}else for(var f=0;f<c.length&&5>f;f++){var d=c[r+f];if(d&&null!=(s=a(d[o])))return s}}else if(e===Gb){var g=t;if(!l)return Jb.Not;for(var f=0;f<g.length&&5>f;f++){var v=g[f];if(v&&null!=(s=a(v[l])))return s}}else if(e===qb){var y=t;if(!l)return Jb.Not;var p=y[l];if(!p||A(p))return Jb.Not;for(var f=0;f<p.length&&5>f;f++)if(null!=(s=a(p[f])))return s}else if(e===Ub)for(var m=t,f=0;f<m.length&&5>f;f++){var v=m[f],_=fn(v);if(!b(_))return Jb.Not;if(null!=(s=a(_[o])))return s}return Jb.Not}function Xs(t,e,i){var n=eS.get(e);if(!n)return i;var r=n(t);return r?i.concat(r):i}function Us(t,e){for(var i=t.length,n=0;i>n;n++)if(t[n].length>e)return t[n];return t[i-1]}function js(t,e,i,n,r,o,a){o=o||t;var s=e(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var h=null!=a&&n?Us(n,a):i;if((h=h||i)&&h.length){var c=h[l];return r&&(u[r]=c),s.paletteIdx=(l+1)%h.length,c}}function Gs(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}function qs(t,e){if(e){var i=e.seriesIndex,n=e.seriesId,r=e.seriesName;return null!=i&&t.componentIndex!==i||null!=n&&t.id!==n||null!=r&&t.name!==r}}function Zs(t,e){var i=t.color&&!t.colorLayer;d(e,function(e,n){"colorLayer"===n&&i||zb.hasClass(n)||("object"==typeof e?t[n]=t[n]?a(t[n],e,!1):o(e):null==t[n]&&(t[n]=e))})}function Ks(t,e,i){if(b(e)){var n=U();return d(e,function(t){if(null!=t){null!=Tn(t,null)&&n.set(t,!0)}}),y(i,function(e){return e&&n.get(e[t])})}var r=Tn(e,null);return y(i,function(e){return e&&null!=r&&e[t]===r})}function Qs(t,e){return e.hasOwnProperty("subType")?y(t,function(t){return t&&t.subType===e.subType}):t}function $s(t){var e=U();return t&&d(cn(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}function Js(t,e,i){function n(t){d(e,function(e){e(t,i)})}var r,o,a=[],s=t.baseOption,l=t.timeline,u=t.options,h=t.media,c=!!t.media,p=!!(u||l||s&&s.timeline);return s?(o=s,o.timeline||(o.timeline=l)):((p||c)&&(t.options=t.media=null),o=t),c&&b(h)&&d(h,function(t){t&&t.option&&(t.query?a.push(t):r||(r=t))}),n(o),d(u,function(t){return n(t)}),d(a,function(t){return n(t.option)}),{baseOption:o,timelineOptions:u||[],mediaDefault:r,mediaList:a}}function tl(t,e,i){var n={width:e,height:i,aspectratio:e/i},r=!0;return d(t,function(t,e){var i=e.match(vS);if(i&&i[1]&&i[2]){var o=i[1],a=i[2].toLowerCase();el(n[a],t,o)||(r=!1)}}),r}function el(t,e,i){return"min"===i?t>=e:"max"===i?e>=t:t===e}function il(t,e){return t.join(",")===e.join(",")}function nl(t){var e=t&&t.itemStyle;if(e)for(var i=0,n=xS.length;n>i;i++){var r=xS[i],o=e.normal,s=e.emphasis;o&&o[r]&&(t[r]=t[r]||{},t[r].normal?a(t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),s&&s[r]&&(t[r]=t[r]||{},t[r].emphasis?a(t[r].emphasis,s[r]):t[r].emphasis=s[r],s[r]=null)}}function rl(t,e,i){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,r=t[e].emphasis;n&&(i?(t[e].normal=t[e].emphasis=null,u(t[e],n)):t[e]=n),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r,r.focus&&(t.emphasis.focus=r.focus),r.blurScope&&(t.emphasis.blurScope=r.blurScope))}}function ol(t){rl(t,"itemStyle"),rl(t,"lineStyle"),rl(t,"areaStyle"),rl(t,"label"),rl(t,"labelLine"),rl(t,"upperLabel"),rl(t,"edgeLabel")}function al(t,e){var i=_S(t)&&t[e],n=_S(i)&&i.textStyle;if(n)for(var r=0,o=$m.length;o>r;r++){var a=$m[r];n.hasOwnProperty(a)&&(i[a]=n[a])}}function sl(t){t&&(ol(t),al(t,"label"),t.emphasis&&al(t.emphasis,"label"))}function ll(t){if(_S(t)){nl(t),ol(t),al(t,"label"),al(t,"upperLabel"),al(t,"edgeLabel"),t.emphasis&&(al(t.emphasis,"label"),al(t.emphasis,"upperLabel"),al(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(nl(e),sl(e));var i=t.markLine;i&&(nl(i),sl(i));var n=t.markArea;n&&sl(n);var r=t.data;if("graph"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!A(o))for(var a=0;a<o.length;a++)sl(o[a]);d(t.categories,function(t){ol(t)})}if(r&&!A(r))for(var a=0;a<r.length;a++)sl(r[a]);if((e=t.markPoint)&&e.data)for(var s=e.data,a=0;a<s.length;a++)sl(s[a]);if((i=t.markLine)&&i.data)for(var l=i.data,a=0;a<l.length;a++)b(l[a])?(sl(l[a][0]),sl(l[a][1])):sl(l[a]);"gauge"===t.type?(al(t,"axisLabel"),al(t,"title"),al(t,"detail")):"treemap"===t.type?(rl(t.breadcrumb,"itemStyle"),d(t.levels,function(t){ol(t)})):"tree"===t.type&&ol(t.leaves)}}function ul(t){return b(t)?t:t?[t]:[]}function hl(t){return(b(t)?t[0]:t)||{}}function cl(t,e){mS(ul(t.series),function(t){_S(t)&&ll(t)});var i=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&i.push("valueAxis","categoryAxis","logAxis","timeAxis"),mS(i,function(e){mS(ul(t[e]),function(t){t&&(al(t,"axisLabel"),al(t.axisPointer,"label"))})}),mS(ul(t.parallel),function(t){var e=t&&t.parallelAxisDefault;al(e,"axisLabel"),al(e&&e.axisPointer,"label")}),mS(ul(t.calendar),function(t){rl(t,"itemStyle"),al(t,"dayLabel"),al(t,"monthLabel"),al(t,"yearLabel")}),mS(ul(t.radar),function(t){al(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)}),mS(ul(t.geo),function(t){_S(t)&&(sl(t),mS(ul(t.regions),function(t){sl(t)}))}),mS(ul(t.timeline),function(t){sl(t),rl(t,"label"),rl(t,"itemStyle"),rl(t,"controlStyle",!0);var e=t.data;b(e)&&d(e,function(t){I(t)&&(rl(t,"label"),rl(t,"itemStyle"))})}),mS(ul(t.toolbox),function(t){rl(t,"iconStyle"),mS(t.feature,function(t){rl(t,"iconStyle")})}),al(hl(t.axisPointer),"label"),al(hl(t.tooltip).axisPointer,"label")}function pl(t,e){for(var i=e.split(","),n=t,r=0;r<i.length&&null!=(n=n&&n[i[r]]);r++);return n}function fl(t,e,i,n){for(var r,o=e.split(","),a=t,s=0;s<o.length-1;s++)r=o[s],null==a[r]&&(a[r]={}),a=a[r];(n||null==a[o[s]])&&(a[o[s]]=i)}function dl(t){t&&d(wS,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}function gl(t){var e=t&&t.itemStyle;if(e)for(var i=0;i<SS.length;i++){var n=SS[i][1],r=SS[i][0];null!=e[n]&&(e[r]=e[n])}}function vl(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function yl(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function ml(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}function _l(t,e){if(t)for(var i=0;i<t.length;i++)e(t[i]),t[i]&&_l(t[i].children,e)}function xl(t,e){cl(t,e),t.series=cn(t.series),d(t.series,function(t){if(I(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){null!=t.clockWise&&(t.clockwise=t.clockWise),vl(t.label);var i=t.data;if(i&&!A(i))for(var n=0;n<i.length;n++)vl(i[n]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var r=pl(t,"pointer.color");null!=r&&fl(t,"itemStyle.color",r)}else if("bar"===e){gl(t),gl(t.backgroundStyle),gl(t.emphasis);var i=t.data;if(i&&!A(i))for(var n=0;n<i.length;n++)"object"==typeof i[n]&&(gl(i[n]),gl(i[n]&&i[n].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),yl(t),_l(t.data,yl)}else"graph"===e||"sankey"===e?ml(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&u(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),dl(t)}}),t.dataRange&&(t.visualMap=t.dataRange),d(bS,function(e){var i=t[e];i&&(b(i)||(i=[i]),d(i,function(t){dl(t)}))})}function wl(t){var e=U();t.eachSeries(function(t){var i=t.get("stack");if(i){var n=e.get(i)||e.set(i,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;n.length&&r.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(o)}}),e.each(bl)}function bl(t){d(t,function(e,i){var n=[],r=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(o,u,h){var c=a.get(e.stackedDimension,h);if(isNaN(c))return r;var p,f;s?f=a.getRawIndex(h):p=a.get(e.stackedByDimension,h);for(var d=NaN,g=i-1;g>=0;g--){var v=t[g];if(s||(f=v.data.rawIndexOf(v.stackedByDimension,p)),f>=0){var y=v.data.getByRawIndex(v.stackResultDimension,f);if("all"===l||"positive"===l&&y>0||"negative"===l&&0>y||"samesign"===l&&c>=0&&y>0||"samesign"===l&&0>=c&&0>y){c=qi(c,y),d=y;break}}}return n[0]=c,n[1]=d,n})})}function Sl(t){return t instanceof TS}function Tl(t,e,i){i=i||Il(t);var n=e.seriesLayoutBy,r=kl(t,i,n,e.sourceHeader,e.dimensions);return new TS({data:t,sourceFormat:i,seriesLayoutBy:n,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:o(e)})}function Ml(t){return new TS({data:t,sourceFormat:A(t)?Zb:Ub})}function Cl(t){return new TS({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:o(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function Il(t){var e=Kb;if(A(t))e=Zb;else if(b(t)){0===t.length&&(e=jb);for(var i=0,n=t.length;n>i;i++){var r=t[i];if(null!=r){if(b(r)){e=jb;break}if(I(r)){e=Gb;break}}}}else if(I(t))for(var o in t)if(Z(t,o)&&f(t[o])){e=qb;break}return e}function kl(t,e,i,n,r){var o,a;if(!t)return{dimensionsDefine:Dl(r),startIndex:a,dimensionsDetectedCount:o};if(e===jb){var s=t;"auto"===n||null==n?Pl(function(t){null!=t&&"-"!==t&&(T(t)?null==a&&(a=1):a=0)},i,s,10):a=C(n)?n:n?1:0,r||1!==a||(r=[],Pl(function(t,e){r[e]=null!=t?t+"":""},i,s,1/0)),o=r?r.length:i===$b?s.length:s[0]?s[0].length:null}else if(e===Gb)r||(r=Al(t));else if(e===qb)r||(r=[],d(t,function(t,e){r.push(e)}));else if(e===Ub){var l=fn(t[0]);o=b(l)&&l.length||1}return{startIndex:a,dimensionsDefine:Dl(r),dimensionsDetectedCount:o}}function Al(t){for(var e,i=0;i<t.length&&!(e=t[i++]););if(e){var n=[];return d(e,function(t,e){n.push(e)}),n}}function Dl(t){if(t){var e=U();return g(t,function(t){t=I(t)?t:{name:t};var i={name:t.name,displayName:t.displayName,type:t.type};if(null==i.name)return i;i.name+="",null==i.displayName&&(i.displayName=i.name);var n=e.get(i.name);return n?i.name+="-"+n.count++:e.set(i.name,{count:1}),i})}}function Pl(t,e,i,n){if(e===$b)for(var r=0;r<i.length&&n>r;r++)t(i[r]?i[r][0]:null,r);else for(var o=i[0]||[],r=0;r<o.length&&n>r;r++)t(o[r],r)}function Ol(t){var e=t.sourceFormat;return e===Gb||e===qb}function Ll(t,e){return IS[Bl(t,e)]}function El(t,e){return AS[Bl(t,e)]}function Rl(t){return PS[t]}function Bl(t,e){return t===jb?t+"_"+e:t}function Nl(t,e,i){if(t){var n=t.getRawDataItem(e);if(null!=n){var r=t.getStore(),o=r.getSource().sourceFormat;if(null!=i){var a=t.getDimensionIndex(i),s=r.getDimensionProperty(a);return Rl(o)(n,a,s)}var l=n;return o===Ub&&(l=fn(n)),l}}}function zl(t){var e,i;return I(t)?t.type&&(i=t):e=t,{text:e,frag:i}}function Fl(t){return new ES(t)}function Yl(t,e){var i=e&&e.type;return"ordinal"===i?t:("time"!==i||C(t)||null==t||"-"===t||(t=+Qi(t)),null==t||""===t?NaN:+t)}function Hl(t,e){var i=new zS,n=t.data,r=i.sourceFormat=t.sourceFormat,o=t.startIndex;t.seriesLayoutBy!==Qb&&un("");var a=[],s={},l=t.dimensionsDefine;if(l)d(l,function(t,e){var i=t.name,n={index:e,name:i,displayName:t.displayName};if(a.push(n),null!=i){Z(s,i)&&un(""),s[i]=n}});else for(var u=0;u<t.dimensionsDetectedCount;u++)a.push({index:u});var h=Ll(r,Qb);e.__isBuiltIn&&(i.getRawDataItem=function(t){return h(n,o,a,t)},i.getRawData=Yv(Vl,null,t)),i.cloneRawData=Yv(Wl,null,t);var c=El(r,Qb);i.count=Yv(c,null,n,o,a);var p=Rl(r);i.retrieveValue=function(t,e){var i=h(n,o,a,t);return f(i,e)};var f=i.retrieveValueFromItem=function(t,e){if(null!=t){var i=a[e];return i?p(t,e,i.name):void 0}};return i.getDimensionInfo=Yv(Xl,null,a,s),i.cloneAllDimensionInfo=Yv(Ul,null,a),i}function Vl(t){Zl(t.sourceFormat)||un("");return t.data}function Wl(t){var e=t.sourceFormat,i=t.data;if(!Zl(e)){un("")}if(e===jb){for(var n=[],r=0,o=i.length;o>r;r++)n.push(i[r].slice());return n}if(e===Gb){for(var n=[],r=0,o=i.length;o>r;r++)n.push(l({},i[r]));return n}}function Xl(t,e,i){return null!=i?C(i)||!isNaN(i)&&!Z(e,i)?t[i]:Z(e,i)?e[i]:void 0:void 0}function Ul(t){return o(t)}function jl(t){t=o(t);var e=t.type;e||un("");var i=e.split(":");2!==i.length&&un("");var n=!1;"echarts"===i[0]&&(e=i[1],n=!0),t.__isBuiltIn=n,FS.set(e,t)}function Gl(t,e,i){var n=cn(t),r=n.length;r||un("");for(var o=0,a=r;a>o;o++){e=ql(n[o],e),o!==a-1&&(e.length=Math.max(e.length,1))}return e}function ql(t,e){e.length||un(""),I(t)||un("");var i=t.type,n=FS.get(i);n||un("");var r=g(e,function(t){return Hl(t,n)});return g(cn(n.transform({upstream:r[0],upstreamList:r,config:o(t.config)})),function(t,i){I(t)||un(""),t.data||un(""),Zl(Il(t.data))||un("");var n,r=e[0];if(r&&0===i&&!t.dimensions){var o=r.startIndex;o&&(t.data=r.data.slice(0,o).concat(t.data)),n={seriesLayoutBy:Qb,sourceHeader:o,dimensions:r.metaRawOption.dimensions}}else n={seriesLayoutBy:Qb,sourceHeader:0,dimensions:t.dimensions};return Tl(t.data,n,null)})}function Zl(t){return t===jb||t===Gb}function Kl(t){return t>65535?HS:VS}function Ql(){return[1/0,-1/0]}function $l(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Jl(t,e,i,n,r){var o=US[i||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==n){for(var l=new o(n),u=0;s>u;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(n)}function tu(t){t.option.transform&&V(t.option.transform)}function eu(t){return"series"===t.mainType}function iu(t){throw new Error(t)}function nu(t,e){var i=t.color||"#6e7079",n=t.fontSize||12,r=t.fontWeight||"400",o=t.color||"#464646",a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+Mt(n+"")+"px;color:"+Mt(i)+";font-weight:"+Mt(r+""),valueStyle:"font-size:"+Mt(a+"")+"px;color:"+Mt(o)+";font-weight:"+Mt(s+"")}:{nameStyle:{fontSize:n,fill:i,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}function ru(t,e){return e.type=t,e}function ou(t){return"section"===t.type}function au(t){return ou(t)?lu:uu}function su(t){if(ou(t)){var e=0,i=t.blocks.length,n=i>1||i>0&&!t.noHeader;return d(t.blocks,function(t){var i=su(t);i>=e&&(e=i+ +(n&&(!i||ou(t)&&!t.noHeader)))}),e}return 0}function lu(t,e,i,n){var r=e.noHeader,o=cu(su(e)),a=[],s=e.blocks||[];Y(!s||b(s)),s=s||[];var u=t.orderMode;if(e.sortBlocks&&u){s=s.slice();var h={valueAsc:"asc",valueDesc:"desc"};if(Z(h,u)){var c=new NS(h[u],null);s.sort(function(t,e){return c.evaluate(t.sortParam,e.sortParam)})}else"seriesDesc"===u&&s.reverse()}d(s,function(i,r){var s=e.valueFormatter,u=au(i)(s?l(l({},t),{valueFormatter:s}):t,i,r>0?o.html:0,n);null!=u&&a.push(u)});var p="richText"===t.renderMode?a.join(o.richText):pu(a.join(""),r?i:o.html);if(r)return p;var f=Ms(e.header,"ordinal",t.useUTC),g=nu(n,t.renderMode).nameStyle;return"richText"===t.renderMode?gu(t,f,g)+o.richText+p:pu('<div style="'+g+";"+qS+';">'+Mt(f)+"</div>"+p,i)}function uu(t,e,i,n){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,h=e.valueFormatter||t.valueFormatter||function(t){return t=b(t)?t:[t],g(t,function(t,e){return Ms(t,b(f)?f[e]:f,u)})};if(!o||!a){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",r),p=o?"":Ms(l,"ordinal",u),f=e.valueType,d=a?[]:h(e.value),v=!s||!o,y=!s&&o,m=nu(n,r),_=m.nameStyle,x=m.valueStyle;return"richText"===r?(s?"":c)+(o?"":gu(t,p,_))+(a?"":vu(t,d,v,y,x)):pu((s?"":c)+(o?"":fu(p,!s,_))+(a?"":du(d,v,y,x)),i)}}function hu(t,e,i,n,r,o){if(t){return au(t)({useUTC:r,renderMode:i,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}}function cu(t){return{html:ZS[t],richText:KS[t]}}function pu(t,e){return'<div style="margin: '+e+"px 0 0;"+qS+';">'+t+'<div style="clear:both"></div></div>'}function fu(t,e,i){return'<span style="'+i+";"+(e?"margin-left:2px":"")+'">'+Mt(t)+"</span>"}function du(t,e,i,n){var r=i?"10px":"20px",o=e?"float:right;margin-left:"+r:"";return t=b(t)?t:[t],'<span style="'+o+";"+n+'">'+g(t,function(t){return Mt(t)}).join(" ")+"</span>"}function gu(t,e,i){return t.markupStyleCreator.wrapRichTextStyle(e,i)}function vu(t,e,i,n,r){var o=[r],a=n?10:20;return i&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(b(e)?e.join(" "):e,o)}function yu(t,e){return Ds(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function mu(t,e){var i=t.get("padding");return null!=i?i:"richText"===e?[8,10]:10}function _u(t){var e,i,n,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),h=u.length,c=o.getRawValue(a),p=b(c),f=yu(o,a);if(h>1||p&&!h){var d=xu(c,o,a,u,f);e=d.inlineValues,i=d.inlineValueTypes,n=d.blocks,r=d.inlineValues[0]}else if(h){var g=l.getDimensionInfo(u[0]);r=e=Nl(l,a,u[0]),i=g.type}else r=e=p?c[0]:c;var v=Mn(o),y=v&&o.name||"",m=l.getName(a),_=s?y:m;return ru("section",{header:y,noHeader:s||!v,sortParam:r,blocks:[ru("nameValue",{markerType:"item",markerColor:f,name:_,noName:!H(_),value:e,valueType:i})].concat(n||[])})}function xu(t,e,i,n,r){function o(t,e){var i=a.getDimensionInfo(e);i&&!1!==i.otherDims.tooltip&&(s?h.push(ru("nameValue",{markerType:"subItem",markerColor:r,name:i.displayName,value:t,valueType:i.type})):(l.push(t),u.push(i.type)))}var a=e.getData(),s=v(t,function(t,e,i){var n=a.getDimensionInfo(i);return t=t||n&&!1!==n.tooltip&&null!=n.displayName},!1),l=[],u=[],h=[];return n.length?d(n,function(t){o(Nl(a,i,t),t)}):d(t,o),{inlineValues:l,inlineValueTypes:u,blocks:h}}function wu(t,e){return t.getName(e)||t.getId(e)}function bu(t){var e=t.name;Mn(t)||(t.name=Su(t)||e)}function Su(t){var e=t.getRawData(),i=e.mapDimensionsAll("seriesName"),n=[];return d(i,function(t){var i=e.getDimensionInfo(t);i.displayName&&n.push(i.displayName)}),n.join(" ")}function Tu(t){return t.model.getRawData().count()}function Mu(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Cu}function Cu(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Iu(t,e){d(j(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(i){t.wrapMethod(i,w(ku,e))})}function ku(t,e){var i=Au(t);return i&&i.setOutputEnd((e||this).count()),e}function Au(t){var e=(t.ecModel||{}).scheduler,i=e&&e.getPipeline(t.uid);if(i){var n=i.currentTask;if(n){var r=n.agentStubMap;r&&(n=r.get(t.uid))}return n}}function Du(){var t=Dn();return function(e){var i=t(e),n=e.pipelineContext,r=!!i.large,o=!!i.progressiveRender,a=i.large=!(!n||!n.large),s=i.progressiveRender=!(!n||!n.progressiveRender);return!(r===a&&o===s)&&"reset"}}function Pu(t,e,i){t&&Eo(t)&&("emphasis"===e?ho:co)(t,i)}function Ou(t,e,i){var n=An(t,e),r=e&&null!=e.highlightKey?Ro(e.highlightKey):null;null!=n?d(cn(n),function(e){Pu(t.getItemGraphicEl(e),i,r)}):t.eachItemGraphicEl(function(t){Pu(t,i,r)})}function Lu(t){return iT(t.model)}function Eu(t){var e=t.model,i=t.ecModel,n=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&eT(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,i,n,r),oT[l]}function Ru(t,e,i){function n(){h=(new Date).getTime(),c=null,t.apply(a,s||[])}var r,o,a,s,l,u=0,h=0,c=null;e=e||0;var p=function(){for(var t=[],p=0;p<arguments.length;p++)t[p]=arguments[p];r=(new Date).getTime(),a=this,s=t;var f=l||e,d=l||i;l=null,o=r-(d?u:h)-f,clearTimeout(c),d?c=setTimeout(n,f):o>=0?n():c=setTimeout(n,-o),u=r};return p.clear=function(){c&&(clearTimeout(c),c=null)},p.debounceNextCall=function(t){l=t},p}function Bu(t,e,i,n){var r=t[e];if(r){var o=r[aT]||r,a=r[lT];if(r[sT]!==i||a!==n){if(null==i||!n)return t[e]=o;r=t[e]=Ru(o,i,"debounce"===n),r[aT]=o,r[lT]=n,r[sT]=i}return r}}function Nu(t,e){var i=t[e];i&&i[aT]&&(i.clear&&i.clear(),t[e]=i[aT])}function zu(t,e){var i=t.visualStyleMapper||hT[e];return i||(console.warn("Unknown style type '"+e+"'."),hT.itemStyle)}function Fu(t,e){var i=t.visualDrawType||cT[e];return i||(console.warn("Unknown style type '"+e+"'."),"fill")}function Yu(t,e){e=e||{},u(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var i=new Vm,n=new dx({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});i.add(n);var r=new yx({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),o=new dx({style:{fill:"none"},textContent:r,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});i.add(o);var a;return e.showSpinner&&(a=new Dw({shape:{startAngle:-vT/2,endAngle:-vT/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),a.animateShape(!0).when(1e3,{endAngle:3*vT/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:3*vT/2}).delay(300).start("circularInOut"),i.add(a)),i.resize=function(){var i=r.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&i?10:0)-i)/2-(e.showSpinner&&i?0:5+i/2)+(e.showSpinner?0:i/2)+(i?0:s),u=t.getHeight()/2;e.showSpinner&&a.setShape({cx:l,cy:u}),o.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},i.resize(),i}function Hu(t){t.overallReset(t.ecModel,t.api,t.payload)}function Vu(t){return t.overallProgress&&Wu}function Wu(){this.agent.dirty(),this.getDownstream().dirty()}function Xu(){this.agent&&this.agent.dirty()}function Uu(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function ju(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=cn(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?g(e,function(t,e){return Gu(e)}):mT}function Gu(t){return function(e,i){var n=i.data,r=i.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(n,o);else r&&r.progress&&r.progress(e,n)}}function qu(t){return t.data.count()}function Zu(t){rT=null;try{t(_T,xT)}catch(t){}return rT}function Ku(t,e){for(var i in e.prototype)t[i]=K}function Qu(t,e,i){switch(i){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,i)}}function $u(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function Ju(t,e,i,n,r){var o=t+e;i.isSilent(o)||n.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e=t.seriesIndex,n=t.option.selectedMap,a=r.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===e){var u=t.getData(),h=An(u,r.fromActionPayload);i.trigger(o,{type:o,seriesId:t.id,name:u.getName(b(h)?h[0]:h),selected:T(n)?n:l({},n)})}})}function th(t,e,i){t.on("selectchanged",function(t){var n=i.getModel();t.isFromClick?(Ju("map","selectchanged",e,n,t),Ju("pie","selectchanged",e,n,t)):"select"===t.fromAction?(Ju("map","selected",e,n,t),Ju("pie","selected",e,n,t)):"unselect"===t.fromAction&&(Ju("map","unselected",e,n,t),Ju("pie","unselected",e,n,t))})}function eh(t,e,i){for(var n;t&&(!e(t)||(n=t,!i));)t=t.__hostTarget||t.parent;return n}function ih(t,e){if("image"!==this.type){var i=this.style;this.__isEmptyBrush?(i.stroke=t,i.fill=e||"#fff",i.lineWidth=2):"line"===this.shape.symbolType?i.stroke=t:i.fill=t,this.markRedraw()}}function nh(t,e,i,n,r,o,a){var s=0===t.indexOf("empty");s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return l=0===t.indexOf("image://")?ya(t.slice(8),new by(e,i,n,r),a?"center":"cover"):0===t.indexOf("path://")?va(t.slice(7),{},new by(e,i,n,r),a?"center":"cover"):new WT({shape:{symbolType:t,x:e,y:i,width:n,height:r}}),l.__isEmptyBrush=s,l.setColor=ih,o&&l.setColor(o),l}function rh(t){return b(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function oh(t,e){return null!=t?(b(t)||(t=[t,t]),[Yi(t[0],e[0])||0,Yi(B(t[1],t[0]),e[1])||0]):void 0}function ah(t){return isFinite(t)}function sh(t,e,i){var n=null==e.x?0:e.x,r=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;return e.global||(n=n*i.width+i.x,r=r*i.width+i.x,o=o*i.height+i.y,a=a*i.height+i.y),n=ah(n)?n:0,r=ah(r)?r:1,o=ah(o)?o:0,a=ah(a)?a:0,t.createLinearGradient(n,o,r,a)}function lh(t,e,i){var n=i.width,r=i.height,o=Math.min(n,r),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(a=a*n+i.x,s=s*r+i.y,l*=o),a=ah(a)?a:.5,s=ah(s)?s:.5,l=l>=0&&ah(l)?l:.5,t.createRadialGradient(a,s,0,a,s,l)}function uh(t,e,i){for(var n="radial"===e.type?lh(t,e,i):sh(t,e,i),r=e.colorStops,o=0;o<r.length;o++)n.addColorStop(r[o].offset,r[o].color);return n}function hh(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var i=0;i<t.length;i++)if(t[i]!==e[i])return!0;return!1}function ch(t){return parseInt(t,10)}function ph(t,e,i){var n=["width","height"][e],r=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=i[n]&&"auto"!==i[n])return parseFloat(i[n]);var s=document.defaultView.getComputedStyle(t);return(t[r]||ch(s[n])||ch(t.style[n]))-(ch(s[o])||0)-(ch(s[a])||0)|0}function fh(t,e){return t&&"solid"!==t&&e>0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:C(t)?[t]:b(t)?t:null:null}function dh(t){var e=t.style,i=e.lineDash&&e.lineWidth>0&&fh(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(i){var r=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;r&&1!==r&&(i=g(i,function(t){return t/r}),n/=r)}return[i,n]}function gh(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function vh(t){return"string"==typeof t&&"none"!==t}function yh(t){var e=t.fill;return null!=e&&"none"!==e}function mh(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var i=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=i}else t.fill()}function _h(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var i=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=i}else t.stroke()}function xh(t,e,i){var n=Zn(e.image,e.__image,i);if(Qn(n)){var r=t.createPattern(n,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*Uv),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}function wh(t,e,i,n){var r,o=gh(i),a=yh(i),s=i.strokePercent,l=1>s,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var h=e.path||XT,c=e.__dirty;if(!n){var p=i.fill,f=i.stroke,d=a&&!!p.colorStops,g=o&&!!f.colorStops,v=a&&!!p.image,y=o&&!!f.image,m=void 0,_=void 0,x=void 0,w=void 0,b=void 0;(d||g)&&(b=e.getBoundingRect()),d&&(m=c?uh(t,p,b):e.__canvasFillGradient,e.__canvasFillGradient=m),g&&(_=c?uh(t,f,b):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),v&&(x=c||!e.__canvasFillPattern?xh(t,p,e):e.__canvasFillPattern,e.__canvasFillPattern=x),y&&(w=c||!e.__canvasStrokePattern?xh(t,f,e):e.__canvasStrokePattern,e.__canvasStrokePattern=x),d?t.fillStyle=m:v&&(x?t.fillStyle=x:a=!1),g?t.strokeStyle=_:y&&(w?t.strokeStyle=w:o=!1)}var S=e.getGlobalScale();h.setScale(S[0],S[1],e.segmentIgnoreThreshold);var T,M;t.setLineDash&&i.lineDash&&(r=dh(e),T=r[0],M=r[1]);var C=!0;(u||c&Ly)&&(h.setDPR(t.dpr),l?h.setContext(null):(h.setContext(t),C=!1),h.reset(),e.buildPath(h,e.shape,n),h.toStatic(),e.pathUpdated()),C&&h.rebuildPath(t,l?s:1),T&&(t.setLineDash(T),t.lineDashOffset=M),n||(i.strokeFirst?(o&&_h(t,i),a&&mh(t,i)):(a&&mh(t,i),o&&_h(t,i))),T&&t.setLineDash([])}function bh(t,e,i){var n=e.__image=Zn(i.image,e.__image,e,e.onload);if(n&&Qn(n)){var r=i.x||0,o=i.y||0,a=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=n.width,s=n.height),i.sWidth&&i.sHeight){var u=i.sx||0,h=i.sy||0;t.drawImage(n,u,h,i.sWidth,i.sHeight,r,o,a,s)}else if(i.sx&&i.sy){var u=i.sx,h=i.sy,c=a-u,p=s-h;t.drawImage(n,u,h,c,p,r,o,a,s)}else t.drawImage(n,r,o,a,s)}}function Sh(t,e,i){var n,r=i.text;if(null!=r&&(r+=""),r){t.font=i.font||bv,t.textAlign=i.textAlign,t.textBaseline=i.textBaseline;var o=void 0,a=void 0;t.setLineDash&&i.lineDash&&(n=dh(e),o=n[0],a=n[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),i.strokeFirst?(gh(i)&&t.strokeText(r,i.x,i.y),yh(i)&&t.fillText(r,i.x,i.y)):(yh(i)&&t.fillText(r,i.x,i.y),gh(i)&&t.strokeText(r,i.x,i.y)),o&&t.setLineDash([])}}function Th(t,e,i,n,r){var o=!1;if(!n&&(i=i||{},e===i))return!1;if(n||e.opacity!==i.opacity){Ph(t,r),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?g_.opacity:a}(n||e.blend!==i.blend)&&(o||(Ph(t,r),o=!0),t.globalCompositeOperation=e.blend||g_.blend);for(var s=0;s<UT.length;s++){var l=UT[s];(n||e[l]!==i[l])&&(o||(Ph(t,r),o=!0),t[l]=t.dpr*(e[l]||0))}return(n||e.shadowColor!==i.shadowColor)&&(o||(Ph(t,r),o=!0),t.shadowColor=e.shadowColor||g_.shadowColor),o}function Mh(t,e,i,n,r){var o=Oh(e,r.inHover),a=n?null:i&&Oh(i,r.inHover)||{};if(o===a)return!1;var s=Th(t,o,a,n,r);if((n||o.fill!==a.fill)&&(s||(Ph(t,r),s=!0),vh(o.fill)&&(t.fillStyle=o.fill)),(n||o.stroke!==a.stroke)&&(s||(Ph(t,r),s=!0),vh(o.stroke)&&(t.strokeStyle=o.stroke)),(n||o.opacity!==a.opacity)&&(s||(Ph(t,r),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth,u=l/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(Ph(t,r),s=!0),t.lineWidth=u)}for(var h=0;h<jT.length;h++){var c=jT[h],p=c[0];(n||o[p]!==a[p])&&(s||(Ph(t,r),s=!0),t[p]=o[p]||c[1])}return s}function Ch(t,e,i,n,r){return Th(t,Oh(e,r.inHover),i&&Oh(i,r.inHover),n,r)}function Ih(t,e){var i=e.transform,n=t.dpr||1;i?t.setTransform(n*i[0],n*i[1],n*i[2],n*i[3],n*i[4],n*i[5]):t.setTransform(n,0,0,n,0,0)}function kh(t,e,i){for(var n=!1,r=0;r<t.length;r++){var o=t[r];n=n||o.isZeroArea(),Ih(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}i.allClipped=n}function Ah(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}function Dh(t){var e=yh(t),i=gh(t);return!(t.lineDash||!(+e^+i)||e&&"string"!=typeof t.fill||i&&"string"!=typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function Ph(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function Oh(t,e){return e?t.__hoverStyle||t.style:t.style}function Lh(t,e){Eh(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Eh(t,e,i,n){var r=e.transform;if(!e.shouldBePainted(i.viewWidth,i.viewHeight,!1,!1))return e.__dirty&=~Oy,void(e.__isRendered=!1);var o=e.__clipPaths,a=i.prevElClipPaths,s=!1,l=!1;if((!a||hh(o,a))&&(a&&a.length&&(Ph(t,i),t.restore(),l=s=!0,i.prevElClipPaths=null,i.allClipped=!1,i.prevEl=null),o&&o.length&&(Ph(t,i),t.save(),kh(o,t,i),s=!0),i.prevElClipPaths=o),i.allClipped)return void(e.__isRendered=!1);e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=i.prevEl;u||(l=s=!0);var h=e instanceof ox&&e.autoBatch&&Dh(e.style);s||Ah(r,u.transform)?(Ph(t,i),Ih(t,e)):h||Ph(t,i);var c=Oh(e,i.inHover);e instanceof ox?(i.lastDrawType!==GT&&(l=!0,i.lastDrawType=GT),Mh(t,e,u,l,i),h&&(i.batchFill||i.batchStroke)||t.beginPath(),wh(t,e,c,h),h&&(i.batchFill=c.fill||"",i.batchStroke=c.stroke||"")):e instanceof sx?(i.lastDrawType!==ZT&&(l=!0,i.lastDrawType=ZT),Mh(t,e,u,l,i),Sh(t,e,c)):e instanceof hx?(i.lastDrawType!==qT&&(l=!0,i.lastDrawType=qT),Ch(t,e,u,l,i),bh(t,e,c)):e.getTemporalDisplayables&&(i.lastDrawType!==KT&&(l=!0,i.lastDrawType=KT),Rh(t,e,i)),h&&n&&Ph(t,i),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),i.prevEl=e,e.__dirty=0,e.__isRendered=!0}function Rh(t,e,i){var n=e.getDisplayables(),r=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:i.viewWidth,viewHeight:i.viewHeight,inHover:i.inHover};for(o=e.getCursor(),a=n.length;a>o;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Eh(t,l,s,o===a-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,h=r.length;h>u;u++){var l=r[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Eh(t,l,s,u===h-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}function Bh(t,e){if("none"===t)return null;var i=e.getDevicePixelRatio(),n=e.getZr(),r="svg"===n.painter.type;t.dirty&&QT.delete(t);var o=QT.get(t);if(o)return o;var a=u(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(t){for(var e=[i],o=!0,s=0;s<JT.length;++s){var l=a[JT[s]];if(null!=l&&!b(l)&&!T(l)&&!C(l)&&"boolean"!=typeof l){o=!1;break}e.push(l)}var u;if(o){u=e.join(",")+(r?"-svg":"");var h=$T.get(u);h&&(r?t.svgElement=h:t.image=h)}var c,p=zh(a.dashArrayX),f=Fh(a.dashArrayY),d=Nh(a.symbol),g=Yh(p),v=Hh(f),y=!r&&Cv.createCanvas(),m=r&&{tag:"g",attrs:{},key:"dcl",children:[]},_=function(){for(var t=1,e=0,i=g.length;i>e;++e)t=ln(t,g[e]);for(var n=1,e=0,i=d.length;i>e;++e)n=ln(n,d[e].length);t*=n;var r=v*g.length*d.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}();y&&(y.width=_.width*i,y.height=_.height*i,c=y.getContext("2d")),function(){c&&(c.clearRect(0,0,y.width,y.height),a.backgroundColor&&(c.fillStyle=a.backgroundColor,c.fillRect(0,0,y.width,y.height)));for(var t=0,e=0;e<f.length;++e)t+=f[e];if(!(0>=t))for(var o=-v,s=0,l=0,u=0;o<_.height;){if(s%2==0){for(var h=l/2%d.length,g=0,x=0,w=0;g<2*_.width;){for(var b=0,e=0;e<p[u].length;++e)b+=p[u][e];if(0>=b)break;if(x%2==0){var S=.5*(1-a.symbolSize),T=g+p[u][x]*S,M=o+f[s]*S,C=p[u][x]*a.symbolSize,I=f[s]*a.symbolSize,k=w/2%d[h].length;!function(t,e,o,s,l){var u=r?1:i,h=nh(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);if(r){var p=n.painter.renderOneToVNode(h);p&&m.children.push(p)}else Lh(c,h)}(T,M,C,I,d[h][k])}g+=p[u][x],++w,++x===p[u].length&&(x=0)}++u===p.length&&(u=0)}o+=f[s],++l,++s===f.length&&(s=0)}}(),o&&$T.put(u,y||m),t.image=y,t.svgElement=m,t.svgWidth=_.width,t.svgHeight=_.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=r?1:1/i,QT.set(t,s),t.dirty=!1,s}function Nh(t){if(!t||0===t.length)return[["rect"]];if(T(t))return[[t]];for(var e=!0,i=0;i<t.length;++i)if(!T(t[i])){e=!1;break}if(e)return Nh([t]);for(var n=[],i=0;i<t.length;++i)n.push(T(t[i])?[t[i]]:t[i]);return n}function zh(t){if(!t||0===t.length)return[[0,0]];if(C(t)){var e=Math.ceil(t);return[[e,e]]}for(var i=!0,n=0;n<t.length;++n)if(!C(t[n])){i=!1;break}if(i)return zh([t]);for(var r=[],n=0;n<t.length;++n)if(C(t[n])){var e=Math.ceil(t[n]);r.push([e,e])}else{var e=g(t[n],function(t){return Math.ceil(t)});r.push(e.length%2==1?e.concat(e):e)}return r}function Fh(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(C(t)){var e=Math.ceil(t);return[e,e]}var i=g(t,function(t){return Math.ceil(t)});return t.length%2?i.concat(i):i}function Yh(t){return g(t,function(t){return Hh(t)})}function Hh(t){for(var e=0,i=0;i<t.length;++i)e+=t[i];return t.length%2==1?2*e:e}function Vh(t,e){t.eachRawSeries(function(i){if(!t.isSeriesFiltered(i)){var n=i.getData();n.hasItemVisual()&&n.each(function(t){var i=n.getItemVisual(t,"decal");if(i){n.ensureUniqueItemVisual(t,"style").decal=Bh(i,e)}});var r=n.getVisual("decal");if(r){n.getVisual("style").decal=Bh(r,e)}}})}function Wh(t,e){eM[t]=e}function Xh(t){return eM[t]}function Uh(t){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return this.isDisposed()?void 0:Gh(this,t,e)}}function jh(t){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return Gh(this,t,e)}}function Gh(t,e,i){return i[0]=i[0]&&i[0].toLowerCase(),ty.prototype[e].apply(t,i)}function qh(t,e,i){var n=!(i&&i.ssr);if(n){var r=$h(t);if(r)return r}var o=new OM(t,e,i);return o.id="ec_"+XM++,VM[o.id]=o,n&&En(t,jM,o.id),AM(o),tM.trigger("afterinit",o),o}function Zh(t){if(b(t)){var e=t;t=null,d(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+UM++,d(e,function(e){e.group=t})}return WM[t]=!0,t}function Kh(t){WM[t]=!1}function Qh(t){T(t)?t=VM[t]:t instanceof OM||(t=$h(t)),t instanceof OM&&!t.isDisposed()&&t.dispose()}function $h(t){return VM[Rn(t,jM)]}function Jh(t){return VM[t]}function tc(t,e){YM[t]=e}function ec(t){h(zM,t)<0&&zM.push(t)}function ic(t,e){cc(NM,t,e,nM)}function nc(t){oc("afterinit",t)}function rc(t){oc("afterupdate",t)}function oc(t,e){tM.on(t,e)}function ac(t,e,i){S(e)&&(i=e,e="");var n=I(t)?t.type:[t,t={event:e}][0];t.event=(t.event||n).toLowerCase(),e=t.event,BM[e]||(Y(hM.test(n)&&hM.test(e)),RM[n]||(RM[n]={action:i,actionInfo:t}),BM[e]=n)}function sc(t,e){gS.register(t,e)}function lc(t){var e=gS.get(t);return e?e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice():void 0}function uc(t,e){cc(FM,t,e,rM,"layout")}function hc(t,e){cc(FM,t,e,oM,"visual")}function cc(t,e,i,n,r){if((S(e)||I(e))&&(i=e,e=n),!(h(qM,i)>=0)){qM.push(i);var o=yT.wrapStageHandler(i,r);o.__prio=e,o.__raw=i,t.push(o)}}function pc(t,e){HM[t]=e}function fc(t){i({createCanvas:t})}function dc(t,e,i){var n=Xh("registerMap");n&&n(t,e,i)}function gc(t){var e=Xh("getMap");return e&&e(t)}function vc(t){return null==t?0:t.length||1}function yc(t){return t}function mc(t,e){var i={},n=i.encode={},r=U(),o=[],a=[],s={};d(t.dimensions,function(e){var i=t.getDimensionInfo(e),l=i.coordDim;if(l){var u=i.coordDimIndex;_c(n,l)[u]=e,i.isExtraCoord||(r.set(l,1),wc(i.type)&&(o[0]=e),_c(s,l)[u]=t.getDimensionIndex(i.name)),i.defaultTooltip&&a.push(e)}Xb.each(function(t,e){var r=_c(n,e),o=i.otherDims[e];null!=o&&!1!==o&&(r[o]=i.name)})});var l=[],u={};r.each(function(t,e){var i=n[e];u[e]=i[0],l=l.concat(i)}),i.dataDimsOnCoord=l,i.dataDimIndicesOnCoord=g(l,function(e){return t.getDimensionInfo(e).storeDimIndex}),i.encodeFirstDimNotExtra=u;var h=n.label;h&&h.length&&(o=h.slice());var c=n.tooltip;return c&&c.length?a=c.slice():a.length||(a=o.slice()),n.defaultedLabel=o,n.defaultedTooltip=a,i.userOutput=new oC(s,e),i}function _c(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function xc(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function wc(t){return!("ordinal"===t||"time"===t)}function bc(t){return t instanceof uC}function Sc(t){for(var e=U(),i=0;i<(t||[]).length;i++){var n=t[i],r=I(n)?n.name:n;null!=r&&null==e.get(r)&&e.set(r,i)}return e}function Tc(t){var e=sC(t);return e.dimNameMap||(e.dimNameMap=Sc(t.dimensionsDefine))}function Mc(t){return t>30}function Cc(t,e){return Ic(t,e).dimensions}function Ic(t,e){function i(t){var e=m[t];if(0>e){var i=a[t],n=I(i)?i:{name:i},r=new aC,o=n.name;null!=o&&null!=g.get(o)&&(r.name=r.displayName=o),null!=n.type&&(r.type=n.type),null!=n.displayName&&(r.displayName=n.displayName);var s=h.length;return m[t]=s,r.storeDimIndex=t,h.push(r),r}return h[e]}function n(t,e,i){null!=Xb.get(e)?t.otherDims[e]=i:(t.coordDim=e,t.coordDimIndex=i,s.set(e,!0))}function r(t){null==t.name&&(t.name=t.coordDim)}Sl(t)||(t=Ml(t)),e=e||{};var o=e.coordDimensions||[],a=e.dimensionsDefine||t.dimensionsDefine||[],s=U(),h=[],c=Ac(t,o,a,e.dimensionsCount),p=e.canOmitUnusedDimensions&&Mc(c),f=a===t.dimensionsDefine,g=f?Tc(t):Sc(a),v=e.encodeDefine;!v&&e.encodeDefaulter&&(v=e.encodeDefaulter(t,c));for(var y=U(v),m=new WS(c),_=0;_<m.length;_++)m[_]=-1;if(!p)for(var _=0;c>_;_++)i(_);y.each(function(t,e){var r=cn(t).slice();if(1===r.length&&!T(r[0])&&r[0]<0)return void y.set(e,!1);var o=y.set(e,[]);d(r,function(t,r){var a=T(t)?g.get(t):t;null!=a&&c>a&&(o[r]=a,n(i(a),e,r))})});var x=0;d(o,function(t){var e,r,o,a;if(T(t))e=t,a={};else{a=t,e=a.name;var s=a.ordinalMeta;a.ordinalMeta=null,a=l({},a),a.ordinalMeta=s,r=a.dimsDef,o=a.otherDims,a.name=a.coordDim=a.coordDimIndex=a.dimsDef=a.otherDims=null}var h=y.get(e);if(!1!==h){if(h=cn(h),!h.length)for(var p=0;p<(r&&r.length||1);p++){for(;c>x&&null!=i(x).coordDim;)x++;c>x&&h.push(x++)}d(h,function(t,s){var l=i(t);if(f&&null!=a.type&&(l.type=a.type),n(u(l,a),e,s),null==l.name&&r){var h=r[s];!I(h)&&(h={name:h}),l.name=l.displayName=h.name,l.defaultTooltip=h.defaultTooltip}o&&u(l.otherDims,o)})}});var w=e.generateCoord,b=e.generateCoordCount,S=null!=b;b=w?b||1:0;var M=w||"value";if(p)d(h,function(t){r(t)}),h.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var C=0;c>C;C++){var k=i(C),A=k.coordDim;null==A&&(k.coordDim=Dc(M,s,S),k.coordDimIndex=0,(!w||0>=b)&&(k.isExtraCoord=!0),b--),r(k),null!=k.type||Vs(t,C)!==Jb.Must&&(!k.isExtraCoord||null==k.otherDims.itemName&&null==k.otherDims.seriesName)||(k.type="ordinal")}return kc(h),new uC({source:t,dimensions:h,fullDimensionCount:c,dimensionOmitted:p})}function kc(t){for(var e=U(),i=0;i<t.length;i++){var n=t[i],r=n.name,o=e.get(r)||0;o>0&&(n.name=r+(o-1)),o++,e.set(r,o)}}function Ac(t,e,i,n){var r=Math.max(t.dimensionsDetectedCount||1,e.length,i.length,n||0);return d(e,function(t){var e;I(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))}),r}function Dc(t,e,i){if(i||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}function Pc(t){var e=t.get("coordinateSystem"),i=new vC(e),n=yC[e];return n?(n(t,i,i.axisMap,i.categoryAxisMap),i):void 0}function Oc(t){return"category"===t.get("type")}function Lc(t,e,i){i=i||{};var n,r,o,a=i.byIndex,s=i.stackedCoordDimension;Ec(e)?n=e:(r=e.schema,n=r.dimensions,o=e.store);var l,u,h,c,p=!(!t||!t.get("stack"));if(d(n,function(t,e){T(t)&&(n[e]=t={name:t}),p&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))}),!u||a||l||(a=!0),u){h="__\0ecstackresult_"+t.id,c="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var f=u.coordDim,g=u.type,v=0;d(n,function(t){t.coordDim===f&&v++});var y={name:h,coordDim:f,coordDimIndex:v,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length},m={name:c,coordDim:c,coordDimIndex:v+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length+1};r?(o&&(y.storeDimIndex=o.ensureCalculationDimension(c,g),m.storeDimIndex=o.ensureCalculationDimension(h,g)),r.appendCalculationDimension(y),r.appendCalculationDimension(m)):(n.push(y),n.push(m))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:c,stackResultDimension:h}}function Ec(t){return!bc(t.schema)}function Rc(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Bc(t,e){return Rc(t,e)?t.getCalculationInfo("stackResultDimension"):e}function Nc(t,e){var i,n=t.get("coordinateSystem"),r=gS.get(n);return e&&e.coordSysDims&&(i=g(e.coordSysDims,function(t){var i={name:t},n=e.axisMap.get(t);if(n){var r=n.get("type");i.type=xc(r)}return i})),i||(i=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),i}function zc(t,e,i){var n,r;return i&&d(t,function(t,o){var a=t.coordDim,s=i.categoryAxisMap.get(a);s&&(null==n&&(n=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(r=!0)}),r||null==n||(t[n].otherDims.itemName=0),n}function Fc(t,e,i){i=i||{};var n,r=e.getSourceManager(),o=!1;t?(o=!0,n=Ml(t)):(n=r.getSource(),o=n.sourceFormat===Ub);var a=Pc(e),s=Nc(e,a),l=i.useEncodeDefaulter,u=S(l)?l:l?w(Fs,s,e):null,h={coordDimensions:s,generateCoord:i.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},c=Ic(n,h),p=zc(c.dimensions,i.createInvertedIndices,a),f=o?null:r.getSharedDataStore(c),d=Lc(e,{schema:c,store:f}),g=new gC(c,e);g.setCalculationInfo(d);var v=null!=p&&Yc(n)?function(t,e,i,n){return n===p?i:this.defaultDimValueGetter(t,e,i,n)}:null;return g.hasItemOption=!1,g.initData(o?n:f,null,v),g}function Yc(t){if(t.sourceFormat===Ub){return!b(fn(Hc(t.data||[])))}}function Hc(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}function Vc(t){return I(t)&&null!=t.value?t.value:t+""}function Wc(t){return"interval"===t.type||"log"===t.type}function Xc(t,e,i,n){var r={},o=t[1]-t[0],a=r.interval=tn(o/e,!0);null!=i&&i>a&&(a=r.interval=i),null!=n&&a>n&&(a=r.interval=n);var s=r.intervalPrecision=jc(a);return qc(r.niceTickExtent=[Hi(Math.ceil(t[0]/a)*a,s),Hi(Math.floor(t[1]/a)*a,s)],t),r}function Uc(t){var e=Math.pow(10,Ji(t)),i=t/e;return i?2===i?i=3:3===i?i=5:i*=2:i=1,Hi(i*e)}function jc(t){return Wi(t)+2}function Gc(t,e,i){t[e]=Math.max(Math.min(t[e],i[1]),i[0])}function qc(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Gc(t,0,e),Gc(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function Zc(t,e){return t>=e[0]&&t<=e[1]}function Kc(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Qc(t,e){return t*(e[1]-e[0])+e[0]}function $c(t){return b(t)?TC?new Float32Array(t):t:new MC(t)}function Jc(t){return t.get("stack")||CC+t.seriesIndex}function tp(t){return t.dim+t.index}function ep(t,e){var i=[];return e.eachSeriesByType(t,function(t){ap(t)&&i.push(t)}),i}function ip(t){var e={};d(t,function(t){var i=t.coordinateSystem,n=i.getBaseAxis();if("time"===n.type||"value"===n.type)for(var r=t.getData(),o=n.dim+"_"+n.index,a=r.getDimensionIndex(r.mapDimension(n.dim)),s=r.getStore(),l=0,u=s.count();u>l;++l){var h=s.get(a,l);e[o]?e[o].push(h):e[o]=[h]}});var i={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(r){r.sort(function(t,e){return t-e});for(var o=null,a=1;a<r.length;++a){var s=r[a]-r[a-1];s>0&&(o=null===o?s:Math.min(o,s))}i[n]=o}}return i}function np(t){var e=ip(t),i=[];return d(t,function(t){var n,r=t.coordinateSystem,o=r.getBaseAxis(),a=o.getExtent();if("category"===o.type)n=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=e[s],u=Math.abs(a[1]-a[0]),h=o.scale.getExtent(),c=Math.abs(h[1]-h[0]);n=l?u/c*l:u}else{var p=t.getData();n=Math.abs(a[1]-a[0])/p.count()}var f=Yi(t.get("barWidth"),n),d=Yi(t.get("barMaxWidth"),n),g=Yi(t.get("barMinWidth")||(sp(t)?.5:1),n),v=t.get("barGap"),y=t.get("barCategoryGap");i.push({bandWidth:n,barWidth:f,barMaxWidth:d,barMinWidth:g,barGap:v,barCategoryGap:y,axisKey:tp(o),stackId:Jc(t)})}),rp(i)}function rp(t){var e={};d(t,function(t){var i=t.axisKey,n=t.bandWidth,r=e[i]||{bandWidth:n,remainedWidth:n,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},o=r.stacks;e[i]=r;var a=t.stackId;o[a]||r.autoWidthCount++,o[a]=o[a]||{width:0,maxWidth:0};var s=t.barWidth;s&&!o[a].width&&(o[a].width=s,s=Math.min(r.remainedWidth,s),r.remainedWidth-=s);var l=t.barMaxWidth;l&&(o[a].maxWidth=l);var u=t.barMinWidth;u&&(o[a].minWidth=u);var h=t.barGap;null!=h&&(r.gap=h);var c=t.barCategoryGap;null!=c&&(r.categoryGap=c)});var i={};return d(e,function(t,e){i[e]={};var n=t.stacks,r=t.bandWidth,o=t.categoryGap;if(null==o){var a=_(n).length;o=Math.max(35-4*a,15)+"%"}var s=Yi(o,r),l=Yi(t.gap,1),u=t.remainedWidth,h=t.autoWidthCount,c=(u-s)/(h+(h-1)*l);c=Math.max(c,0),d(n,function(t){var e=t.maxWidth,i=t.minWidth;if(t.width){var n=t.width;e&&(n=Math.min(n,e)),i&&(n=Math.max(n,i)),t.width=n,u-=n+l*n,h--}else{var n=c;e&&n>e&&(n=Math.min(e,u)),i&&i>n&&(n=i),n!==c&&(t.width=n,u-=n+l*n,h--)}}),c=(u-s)/(h+(h-1)*l),c=Math.max(c,0);var p,f=0;d(n,function(t){t.width||(t.width=c),p=t,f+=t.width*(1+l)}),p&&(f-=p.width*l);var g=-f/2;d(n,function(t,n){i[e][n]=i[e][n]||{bandWidth:r,offset:g,width:t.width},g+=t.width*(1+l)})}),i}function op(t,e,i){if(t&&e){var n=t[tp(e)];return null!=n&&null!=i?n[Jc(i)]:n}}function ap(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function sp(t){return t.pipelineContext&&t.pipelineContext.large}function lp(t,e,i,n){var r=Qi(e),o=Qi(i),a=function(t){return ss(r,t,n)===ss(o,t,n)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},h=function(){return u()&&a("hour")},c=function(){return h()&&a("minute")},p=function(){return c()&&a("second")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return h();case"minute":return c();case"second":return p();case"millisecond":return function(){return p()&&a("millisecond")}()}}function up(t){return t/=Tb,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function hp(t){return t/=30*Tb,t>6?6:t>3?3:t>2?2:1}function cp(t){return t/=Sb,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function pp(t,e){return t/=e?bb:wb,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function fp(t){return tn(t,!0)}function dp(t,e,i){var n=new Date(t);switch(es(e)){case"year":case"month":n[vs(i)](0);case"day":n[ys(i)](1);case"hour":n[ms(i)](0);case"minute":n[_s(i)](0);case"second":n[xs(i)](0),n[ws(i)](0)}return n.getTime()}function gp(t,e,i,n){function r(t,e,i,r,o,a,s){for(var l=new Date(e),u=e,h=l[r]();i>u&&u<=n[1];)s.push({value:u}),h+=t,l[o](h),u=l.getTime();s.push({value:u,notAdd:!0})}for(var o=Db,a=0,s=[],l=[],u=0,h=0,c=0;c<o.length&&a++<1e4;++c){var p=es(o[c]);if(is(o[c])){!function(t,o,a){var s=[],l=!o.length;if(!lp(es(t),n[0],n[1],i)){l&&(o=[{value:dp(new Date(n[0]),t,i)},{value:n[1]}]);for(var u=0;u<o.length-1;u++){var h=o[u].value,c=o[u+1].value;if(h!==c){var p=void 0,f=void 0,d=void 0,g=!1;switch(t){case"year":p=Math.max(1,Math.round(e/Tb/365)),f=ls(i),d=gs(i);break;case"half-year":case"quarter":case"month":p=hp(e),f=us(i),d=vs(i);break;case"week":case"half-week":case"day":p=up(e,31),f=hs(i),d=ys(i),g=!0;break;case"half-day":case"quarter-day":case"hour":p=cp(e),f=cs(i),d=ms(i);break;case"minute":p=pp(e,!0),f=ps(i),d=_s(i);break;case"second":p=pp(e,!1),f=fs(i),d=xs(i);break;case"millisecond":p=fp(e),f=ds(i),d=ws(i)}r(p,h,c,f,d,g,s),"year"===t&&a.length>1&&0===u&&a.unshift({value:a[0].value-p})}}for(var u=0;u<s.length;u++)a.push(s[u])}}(o[c],s[s.length-1]||[],l);if(p!==(o[c+1]?es(o[c+1]):null)){if(l.length){h=u,l.sort(function(t,e){return t.value-e.value});for(var f=[],d=0;d<l.length;++d){var v=l[d].value;(0===d||l[d-1].value!==v)&&(f.push(l[d]),v>=n[0]&&v<=n[1]&&u++)}var m=(n[1]-n[0])/e;if(u>1.5*m&&h>m/1.5)break;if(s.push(f),u>m||t===o[c])break}l=[]}}}for(var _=y(g(s,function(t){return y(t,function(t){return t.value>=n[0]&&t.value<=n[1]&&!t.notAdd})}),function(t){return t.length>0}),x=[],w=_.length-1,c=0;c<_.length;++c)for(var b=_[c],S=0;S<b.length;++S)x.push({value:b[S].value,level:w-c});x.sort(function(t,e){return t.value-e.value});for(var T=[],c=0;c<x.length;++c)(0===c||x[c].value!==x[c-1].value)&&T.push(x[c]);return T}function vp(t,e){return OC(t,Wi(e))}function yp(t,e,i){var n=t.rawExtentInfo;return n||(n=new FC(t,e,i),t.rawExtentInfo=n,n)}function mp(t,e){return null==e?null:E(e)?NaN:t.parse(e)}function _p(t,e){var i=t.type,n=yp(t,e,t.getExtent()).calculate();t.setBlank(n.isBlank);var r=n.min,o=n.max,a=e.ecModel;if(a&&"time"===i){var s=ep("bar",a),l=!1;if(d(s,function(t){l=l||t.getBaseAxis()===e.axis}),l){var u=np(s),h=xp(r,o,e,u);r=h.min,o=h.max}}return{extent:[r,o],fixMin:n.minFixed,fixMax:n.maxFixed}}function xp(t,e,i,n){var r=i.axis.getExtent(),o=r[1]-r[0],a=op(n,i.axis);if(void 0===a)return{min:t,max:e};var s=1/0;d(a,function(t){s=Math.min(t.offset,s)});var l=-1/0;d(a,function(t){l=Math.max(t.offset+t.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,h=e-t,c=1-(s+l)/o,p=h/c-h;return e+=p*(l/u),t-=p*(s/u),{min:t,max:e}}function wp(t,e){var i=e,n=_p(t,i),r=n.extent,o=i.get("splitNumber");t instanceof NC&&(t.base=i.get("logBase"));var a=t.type,s=i.get("interval"),l="interval"===a||"time"===a;t.setExtent(r[0],r[1]),t.calcNiceExtent({splitNumber:o,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?i.get("minInterval"):null,maxInterval:l?i.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function bp(t,e){if(e=e||t.get("type"))switch(e){case"category":return new wC({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new kC({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(mC.getClass(e)||SC)}}function Sp(t){var e=t.scale.getExtent(),i=e[0],n=e[1];return!(i>0&&n>0||0>i&&0>n)}function Tp(t){var e=t.getLabelModel().get("formatter"),i="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(e){return function(i,n){return t.scale.getFormattedLabel(i,n,e)}}(e):T(e)?function(e){return function(i){var n=t.scale.getLabel(i);return e.replace("{value}",null!=n?n:"")}}(e):S(e)?function(e){return function(n,r){return null!=i&&(r=n.value-i),e(Mp(t,n),r,null!=n.level?{level:n.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function Mp(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function Cp(t){var e=t.model,i=t.scale;if(e.get(["axisLabel","show"])&&!i.isBlank()){var n,r,o=i.getExtent();i instanceof wC?r=i.count():(n=i.getTicks(),r=n.length);var a,s=t.getLabelModel(),l=Tp(t),u=1;r>40&&(u=Math.ceil(r/40));for(var h=0;r>h;h+=u){var c=n?n[h]:{value:o[0]+h},p=l(c,h),f=s.getTextRect(p),d=Ip(f,s.get("rotate")||0);a?a.union(d):a=d}return a}}function Ip(t,e){var i=e*Math.PI/180,n=t.width,r=t.height,o=n*Math.abs(Math.cos(i))+Math.abs(r*Math.sin(i)),a=n*Math.abs(Math.sin(i))+Math.abs(r*Math.cos(i));return new by(t.x,t.y,o,a)}function kp(t){var e=t.get("interval");return null==e?"auto":e}function Ap(t){return"category"===t.type&&0===kp(t.getLabelModel())}function Dp(t,e){var i={};return d(t.mapDimensionsAll(e),function(e){i[Bc(t,e)]=!0}),_(i)}function Pp(t){return Fc(null,t)}function Op(t,e){var i=e;e instanceof cb||(i=new cb(e));var n=bp(i);return n.setExtent(t[0],t[1]),wp(n,i),n}function Lp(t){p(t,VC)}function Ep(t,e){return e=e||{},Va(t,null,null,"normal"!==e.state)}function Rp(t){return b(t)?void d(t,function(t){Rp(t)}):void(h(UC,t)>=0||(UC.push(t),S(t)&&(t={install:t}),t.install(jC)))}function Bp(t,e){return Math.abs(t-e)<GC}function Np(t,e,i){var n=0,r=t[0];if(!r)return!1;for(var o=1;o<t.length;o++){var a=t[o];n+=xr(r[0],r[1],a[0],a[1],e,i),r=a}var s=t[0];return Bp(r[0],s[0])&&Bp(r[1],s[1])||(n+=xr(r[0],r[1],s[0],s[1],e,i)),0!==n}function zp(t,e){for(var i=0;i<t.length;i++)gt(t[i],t[i],e)}function Fp(t,e,i,n){for(var r=0;r<t.length;r++){var o=t[r];n&&(o=n.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(vt(e,e,o),yt(i,i,o))}}function Yp(t){for(var e=0,i=0,n=0,r=t.length,o=t[r-1][0],a=t[r-1][1],s=0;r>s;s++){var l=t[s][0],u=t[s][1],h=o*u-l*a;e+=h,i+=(o+l)*h,n+=(a+u)*h,o=l,a=u}return e?[i/e/3,n/e/3,e]:[t[0][0]||0,t[0][1]||0]}function Hp(t){if(!t.UTF8Encoding)return t;var e=t,i=e.UTF8Scale;return null==i&&(i=1024),d(e.features,function(t){var e=t.geometry,n=e.encodeOffsets,r=e.coordinates;if(n)switch(e.type){case"LineString":e.coordinates=Wp(r,n,i);break;case"Polygon":case"MultiLineString":Vp(r,n,i);break;case"MultiPolygon":d(r,function(t,e){return Vp(t,n[e],i)})}}),e.UTF8Encoding=!1,e}function Vp(t,e,i){for(var n=0;n<t.length;n++)t[n]=Wp(t[n],e[n],i)}function Wp(t,e,i){for(var n=[],r=e[0],o=e[1],a=0;a<t.length;a+=2){var s=t.charCodeAt(a)-64,l=t.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=r,l+=o,r=s,o=l,n.push([s/i,l/i])}return n}function Xp(t,e){return t=Hp(t),g(y(t.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var i=t.properties,n=t.geometry,r=[];switch(n.type){case"Polygon":var o=n.coordinates;r.push(new KC(o[0],o.slice(1)));break;case"MultiPolygon":d(n.coordinates,function(t){t[0]&&r.push(new KC(t[0],t.slice(1)))});break;case"LineString":r.push(new QC([n.coordinates]));break;case"MultiLineString":r.push(new QC(n.coordinates))}var a=new $C(i[e||"name"],r,i.cp);return a.properties=i,a})}function Up(t){return"category"===t.type?Gp(t):Kp(t)}function jp(t,e){return"category"===t.type?Zp(t,e):{ticks:g(t.scale.getTicks(),function(t){return t.value})}}function Gp(t){var e=t.getLabelModel(),i=qp(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:i.labelCategoryInterval}:i}function qp(t,e){var i=Qp(t,"labels"),n=kp(e),r=$p(i,n);if(r)return r;var o,a;return S(n)?o=of(t,n):(a="auto"===n?tf(t):n,o=rf(t,a)),Jp(i,n,{labels:o,labelCategoryInterval:a})}function Zp(t,e){var i=Qp(t,"ticks"),n=kp(e),r=$p(i,n);if(r)return r;var o,a;if((!e.get("show")||t.scale.isBlank())&&(o=[]),S(n))o=of(t,n,!0);else if("auto"===n){var s=qp(t,t.getLabelModel());a=s.labelCategoryInterval,o=g(s.labels,function(t){return t.tickValue})}else a=n,o=rf(t,a,!0);return Jp(i,n,{ticks:o,tickCategoryInterval:a})}function Kp(t){var e=t.scale.getTicks(),i=Tp(t);return{labels:g(e,function(e,n){return{level:e.level,formattedLabel:i(e,n),rawLabel:t.scale.getLabel(e),tickValue:e.value}})}}function Qp(t,e){return rI(t)[e]||(rI(t)[e]=[])}function $p(t,e){for(var i=0;i<t.length;i++)if(t[i].key===e)return t[i].value}function Jp(t,e,i){return t.push({key:e,value:i}),i}function tf(t){var e=rI(t).autoInterval;return null!=e?e:rI(t).autoInterval=t.calculateCategoryInterval()}function ef(t){var e=nf(t),i=Tp(t),n=(e.axisRotate-e.labelRotate)/180*Math.PI,r=t.scale,o=r.getExtent(),a=r.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),h=Math.abs(u*Math.cos(n)),c=Math.abs(u*Math.sin(n)),p=0,f=0;l<=o[1];l+=s){var d=0,g=0,v=mi(i({value:l}),e.font,"center","top");d=1.3*v.width,g=1.3*v.height,p=Math.max(p,d,7),f=Math.max(f,g,7)}var y=p/h,m=f/c;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),x=rI(t.model),w=t.getExtent(),b=x.lastAutoInterval,S=x.lastTickCount;return null!=b&&null!=S&&Math.abs(b-_)<=1&&Math.abs(S-a)<=1&&b>_&&x.axisExtent0===w[0]&&x.axisExtent1===w[1]?_=b:(x.lastTickCount=a,x.lastAutoInterval=_,x.axisExtent0=w[0],x.axisExtent1=w[1]),_}function nf(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function rf(t,e,i){function n(t){var e={value:t};l.push(i?t:{formattedLabel:r(e),rawLabel:o.getLabel(e),tickValue:t})}var r=Tp(t),o=t.scale,a=o.getExtent(),s=t.getLabelModel(),l=[],u=Math.max((e||0)+1,1),h=a[0],c=o.count();0!==h&&u>1&&c/u>2&&(h=Math.round(Math.ceil(h/u)*u));var p=Ap(t),f=s.get("showMinLabel")||p,d=s.get("showMaxLabel")||p;f&&h!==a[0]&&n(a[0]);for(var g=h;g<=a[1];g+=u)n(g);return d&&g-u!==a[1]&&n(a[1]),l}function of(t,e,i){var n=t.scale,r=Tp(t),o=[];return d(n.getTicks(),function(t){var a=n.getLabel(t),s=t.value;e(t.value,a)&&o.push(i?s:{formattedLabel:r(t),rawLabel:a,tickValue:s})}),o}function af(t,e){var i=t[1]-t[0],n=e,r=i/n/2;t[0]+=r,t[1]-=r}function sf(t,e,i,n){function r(t,e){return t=Hi(t),e=Hi(e),c?t>e:e>t}var o=e.length;if(t.onBand&&!i&&o){var a,s,l=t.getExtent();if(1===o)e[0].coord=l[0],a=e[1]={coord:l[0]};else{var u=e[o-1].tickValue-e[0].tickValue,h=(e[o-1].coord-e[0].coord)/u;d(e,function(t){t.coord-=h/2});s=1+t.scale.getExtent()[1]-e[o-1].tickValue,a={coord:e[o-1].coord+h*s},e.push(a)}var c=l[0]>l[1];r(e[0].coord,l[0])&&(n?e[0].coord=l[0]:e.shift()),n&&r(l[0],e[0].coord)&&e.unshift({coord:l[0]}),r(l[1],a.coord)&&(n?a.coord=l[1]:e.pop()),n&&r(a.coord,l[1])&&e.push({coord:l[1]})}}function lf(t){var e=zb.extend(t);return zb.registerClass(e),e}function uf(t){var e=tT.extend(t);return tT.registerClass(e),e}function hf(t){var e=JS.extend(t);return JS.registerClass(e),e}function cf(t){var e=nT.extend(t);return nT.registerClass(e),e}function pf(t,e,i,n,r){var o=i.width,a=i.height;switch(t){case"top":n.set(i.x+o/2,i.y-e),r.set(0,-1);break;case"bottom":n.set(i.x+o/2,i.y+a+e),r.set(0,1);break;case"left":n.set(i.x-e,i.y+a/2),r.set(-1,0);break;case"right":n.set(i.x+o+e,i.y+a/2),r.set(1,0)}}function ff(t,e,i,n,r,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s);a/=u,s/=u;var h=a*i+t,c=s*i+e;if(Math.abs(n-r)%sI<1e-4)return l[0]=h,l[1]=c,u-i;if(o){var p=n;n=mr(r),r=mr(p)}else n=mr(n),r=mr(r);n>r&&(r+=sI);var f=Math.atan2(s,a);if(0>f&&(f+=sI),f>=n&&r>=f||f+sI>=n&&r>=f+sI)return l[0]=h,l[1]=c,u-i;var d=i*Math.cos(n)+t,g=i*Math.sin(n)+e,v=i*Math.cos(r)+t,y=i*Math.sin(r)+e,m=(d-a)*(d-a)+(g-s)*(g-s),_=(v-a)*(v-a)+(y-s)*(y-s);return _>m?(l[0]=d,l[1]=g,Math.sqrt(m)):(l[0]=v,l[1]=y,Math.sqrt(_))}function df(t,e,i,n,r,o,a,s){var l=r-t,u=o-e,h=i-t,c=n-e,p=Math.sqrt(h*h+c*c);h/=p,c/=p;var f=l*h+u*c,d=f/p;s&&(d=Math.min(Math.max(d,0),1)),d*=p;var g=a[0]=t+d*h,v=a[1]=e+d*c;return Math.sqrt((g-r)*(g-r)+(v-o)*(v-o))}function gf(t,e,i,n,r,o,a){0>i&&(t+=i,i=-i),0>n&&(e+=n,n=-n);var s=t+i,l=e+n,u=a[0]=Math.min(Math.max(r,t),s),h=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-r)*(u-r)+(h-o)*(h-o))}function vf(t,e,i){var n=gf(e.x,e.y,e.width,e.height,t.x,t.y,hI);return i.set(hI[0],hI[1]),n}function yf(t,e,i){for(var n,r,o=0,a=0,s=0,l=0,u=1/0,h=e.data,c=t.x,p=t.y,f=0;f<h.length;){var d=h[f++];1===f&&(o=h[f],a=h[f+1],s=o,l=a);var g=u;switch(d){case lI.M:s=h[f++],l=h[f++],o=s,a=l;break;case lI.L:g=df(o,a,h[f],h[f+1],c,p,hI,!0),o=h[f++],a=h[f++];break;case lI.C:g=pe(o,a,h[f++],h[f++],h[f++],h[f++],h[f],h[f+1],c,p,hI),o=h[f++],a=h[f++];break;case lI.Q:g=_e(o,a,h[f++],h[f++],h[f],h[f+1],c,p,hI),o=h[f++],a=h[f++];break;case lI.A:var v=h[f++],y=h[f++],m=h[f++],_=h[f++],x=h[f++],w=h[f++];f+=1;var b=!!(1-h[f++]);n=Math.cos(x)*m+v,r=Math.sin(x)*_+y,1>=f&&(s=n,l=r);g=ff(v,y,_,x,x+w,b,(c-v)*_/m+v,p,hI),o=Math.cos(x+w)*m+v,a=Math.sin(x+w)*_+y;break;case lI.R:s=o=h[f++],l=a=h[f++];g=gf(s,l,h[f++],h[f++],c,p,hI);break;case lI.Z:g=df(o,a,s,l,c,p,hI,!0),o=s,a=l}u>g&&(u=g,i.set(hI[0],hI[1]))}return u}function mf(t,e){if(t){var i=t.getTextGuideLine(),n=t.getTextContent();if(n&&i){var r=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=r.candidates||uI,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=r.anchor,h=t.getComputedTransform(),c=h&&Vt([],h),p=e.get("length2")||0;u&&fI.copy(u);for(var f=0;f<a.length;f++){pf(a[f],0,s,cI,dI),fy.scaleAndAdd(pI,cI,dI,p),pI.transform(c);var d=t.getBoundingRect(),g=u?u.distance(pI):t instanceof ox?yf(pI,t.path,fI):vf(pI,d,fI);l>g&&(l=g,pI.transform(h),fI.transform(h),fI.toArray(o[0]),pI.toArray(o[1]),cI.toArray(o[2]))}_f(o,e.get("minTurnAngle")),i.setShape({points:o})}}}function _f(t,e){if(180>=e&&e>0){e=e/180*Math.PI,cI.fromArray(t[0]),pI.fromArray(t[1]),fI.fromArray(t[2]),fy.sub(dI,cI,pI),fy.sub(gI,fI,pI);var i=dI.len(),n=gI.len();if(!(.001>i||.001>n)){dI.scale(1/i),gI.scale(1/n);if(dI.dot(gI)>Math.cos(e)){var r=df(pI.x,pI.y,fI.x,fI.y,cI.x,cI.y,vI,!1);yI.fromArray(vI),yI.scaleAndAdd(gI,r/Math.tan(Math.PI-e));var o=fI.x!==pI.x?(yI.x-pI.x)/(fI.x-pI.x):(yI.y-pI.y)/(fI.y-pI.y);if(isNaN(o))return;0>o?fy.copy(yI,pI):o>1&&fy.copy(yI,fI),yI.toArray(t[1])}}}}function xf(t,e,i,n){var r="normal"===i,o=r?t:t.ensureState(i);o.ignore=e;var a=n.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=n.getModel("lineStyle").getLineStyle();r?t.useStyle(s):o.style=s}function wf(t,e){var i=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),i>0&&n.length>=3){var r=Zv(n[0],n[1]),o=Zv(n[1],n[2]);if(!r||!o)return t.lineTo(n[1][0],n[1][1]),void t.lineTo(n[2][0],n[2][1]);var a=Math.min(r,o)*i,s=dt([],n[1],n[0],a/r),l=dt([],n[1],n[2],a/o),u=dt([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var h=1;h<n.length;h++)t.lineTo(n[h][0],n[h][1])}function bf(t,e,i){var n=t.getTextGuideLine(),r=t.getTextContent();if(!r)return void(n&&t.removeTextGuideLine());for(var o=e.normal,a=o.get("show"),s=r.ignore,l=0;l<Ox.length;l++){var h=Ox[l],c=e[h],p="normal"===h;if(c){var f=c.get("show");if((p?s:B(r.states[h]&&r.states[h].ignore,s))||!B(f,a)){var d=p?n:n&&n.states[h];d&&(d.ignore=!0);continue}n||(n=new bw,t.setTextGuideLine(n),p||!s&&a||xf(n,!0,"normal",e.normal),t.stateProxy&&(n.stateProxy=t.stateProxy)),xf(n,!1,h,c)}}if(n){u(n.style,i),n.style.fill=null;var g=o.get("showAbove");(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=g||!1,n.buildPath=wf}}function Sf(t,e){e=e||"labelLine";for(var i={normal:t.getModel(e)},n=0;n<Px.length;n++){var r=Px[n];i[r]=t.getModel([r,e])}return i}function Tf(t){for(var e=[],i=0;i<t.length;i++){var n=t[i];if(!n.defaultAttr.ignore){var r=n.label,o=r.getComputedTransform(),a=r.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=r.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var h=s?new Fw(a,o):null;e.push({label:r,labelLine:n.labelLine,rect:u,localRect:a,obb:h,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:o})}}return e}function Mf(t,e,i,n,r,o){function a(){w=S.rect[e]-n,b=r-T.rect[e]-T.rect[i]}function s(t,e,i){if(0>t){var n=Math.min(e,-t);if(n>0){l(n*i,0,c);var r=n+t;0>r&&u(-r*i,1)}else u(-t*i,1)}}function l(i,n,r){0!==i&&(d=!0);for(var o=n;r>o;o++){var a=t[o];a.rect[e]+=i,a.label[e]+=i}}function u(n,r){for(var o=[],a=0,s=1;c>s;s++){var u=t[s-1].rect,h=Math.max(t[s].rect[e]-u[e]-u[i],0);o.push(h),a+=h}if(a){var p=Math.min(Math.abs(n)/a,r);if(n>0)for(var s=0;c-1>s;s++){var f=o[s]*p;l(f,0,s+1)}else for(var s=c-1;s>0;s--){var f=o[s-1]*p;l(-f,s,c)}}}function h(t){var e=0>t?-1:1;t=Math.abs(t);for(var i=Math.ceil(t/(c-1)),n=0;c-1>n;n++)if(e>0?l(i,0,n+1):l(-i,c-n-1,c),0>=(t-=i))return}var c=t.length;if(!(2>c)){t.sort(function(t,i){return t.rect[e]-i.rect[e]});for(var p,f=0,d=!1,g=[],v=0,y=0;c>y;y++){var m=t[y],_=m.rect;0>(p=_[e]-f)&&(_[e]-=p,m.label[e]-=p,d=!0);var x=Math.max(-p,0);g.push(x),v+=x,f=_[e]+_[i]}v>0&&o&&l(-v/c,0,c);var w,b,S=t[0],T=t[c-1];return a(),0>w&&u(-w,.8),0>b&&u(b,.8),a(),s(w,b,1),s(b,w,-1),a(),0>w&&h(-w),0>b&&h(b),d}}function Cf(t,e,i,n){return Mf(t,"x","width",e,i,n)}function If(t,e,i,n){return Mf(t,"y","height",e,i,n)}function kf(t){function e(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}var i=[];t.sort(function(t,e){return e.priority-t.priority});for(var n=new by(0,0,0,0),r=0;r<t.length;r++){var o=t[r],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,h=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var c=o.obb,p=!1,f=0;f<i.length;f++){var d=i[f];if(n.intersect(d.rect)){if(a&&d.axisAligned){p=!0;break}if(d.obb||(d.obb=new Fw(d.localRect,d.transform)),c||(c=new Fw(s,l)),c.intersect(d.obb)){p=!0;break}}}p?(e(u),h&&e(h)):(u.attr("ignore",o.defaultAttr.ignore),h&&h.attr("ignore",o.defaultAttr.labelGuideIgnore),i.push(o))}}function Af(t){if(t){for(var e=[],i=0;i<t.length;i++)e.push(t[i].slice());return e}}function Df(t,e){var i=t.label,n=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:i.style.align,verticalAlign:i.style.verticalAlign,labelLinePoints:Af(n&&n.shape.points)}}function Pf(t,e,i){for(var n=0;n<i.length;n++){var r=i[n];null!=e[r]&&(t[r]=e[r])}}function Of(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e){var i=TI(e).labelManager;i||(i=TI(e).labelManager=new SI),i.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(t,e,i){var n=TI(e).labelManager;i.updatedSeries.forEach(function(t){n.addLabelsOfSeries(e.getViewOfSeriesModel(t))}),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()})}function Lf(t,e,i){var n=Cv.createCanvas(),r=e.getWidth(),o=e.getHeight(),a=n.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",n.setAttribute("data-zr-dom-id",t)),n.width=r*i,n.height=o*i,n}function Ef(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}function Rf(t,e){var i=document.createElement("div");return i.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",i}function Bf(t){t.registerPainter("canvas",II)}function Nf(t){t.registerComponentModel(kI),t.registerComponentView(AI)}function zf(t,e){var i=t.mapDimensionsAll("defaultedLabel"),n=i.length;if(1===n){var r=Nl(t,e,i[0]);return null!=r?r+"":null}if(n){for(var o=[],a=0;a<i.length;a++)o.push(Nl(t,e,i[a]));return o.join(" ")}}function Ff(t,e){var i=t.mapDimensionsAll("defaultedLabel");if(!b(e))return e+"";for(var n=[],r=0;r<i.length;r++){var o=t.getDimensionIndex(i[r]);o>=0&&n.push(e[o])}return n.join(" ")}function Yf(t,e){this.parent.drift(t,e)}function Hf(t,e,i,n){return!(!e||isNaN(e[0])||isNaN(e[1])||n.isIgnore&&n.isIgnore(i)||n.clipShape&&!n.clipShape.contain(e[0],e[1])||"none"===t.getItemVisual(i,"symbol"))}function Vf(t){return null==t||I(t)||(t={isIgnore:t}),t||{}}function Wf(t){var e=t.hostModel,i=e.getModel("emphasis");return{emphasisItemStyle:i.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:i.get("focus"),blurScope:i.get("blurScope"),emphasisDisabled:i.get("disabled"),hoverScale:i.get("scale"),labelStatesModels:Ha(e),cursorStyle:e.get("cursor")}}function Xf(t,e,i){var n=t.getBaseAxis(),r=t.getOtherAxis(n),o=Uf(r,i),a=n.dim,s=r.dim,l=e.mapDimension(s),u=e.mapDimension(a),h="x"===s||"radius"===s?1:0,c=g(t.dimensions,function(t){return e.mapDimension(t)}),p=!1,f=e.getCalculationInfo("stackResultDimension");return Rc(e,c[0])&&(p=!0,c[0]=f),Rc(e,c[1])&&(p=!0,c[1]=f),{dataDimsForPoint:c,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:h,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Uf(t,e){var i=0,n=t.scale.getExtent();return"start"===e?i=n[0]:"end"===e?i=n[1]:C(e)&&!isNaN(e)?i=e:n[0]>0?i=n[0]:n[1]<0&&(i=n[1]),i}function jf(t,e,i,n){var r=NaN;t.stacked&&(r=i.get(i.getCalculationInfo("stackedOverDimension"),n)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=i.get(t.baseDim,n),a[1-o]=r,e.dataToPoint(a)}function Gf(t,e){var i=[];return e.diff(t).add(function(t){i.push({cmd:"+",idx:t})}).update(function(t,e){i.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){i.push({cmd:"-",idx:t})}).execute(),i}function qf(t,e,i,n,r,o,a){for(var s=Gf(t,e),l=[],u=[],h=[],c=[],p=[],f=[],d=[],g=Xf(r,e,a),v=t.getLayout("points")||[],y=e.getLayout("points")||[],m=0;m<s.length;m++){var _=s[m],x=!0,w=void 0,b=void 0;switch(_.cmd){case"=":w=2*_.idx,b=2*_.idx1;var S=v[w],T=v[w+1],M=y[b],C=y[b+1];(isNaN(S)||isNaN(T))&&(S=M,T=C),l.push(S,T),u.push(M,C),h.push(i[w],i[w+1]),c.push(n[b],n[b+1]),d.push(e.getRawIndex(_.idx1));break;case"+":var I=_.idx,k=g.dataDimsForPoint,A=r.dataToPoint([e.get(k[0],I),e.get(k[1],I)]);b=2*I,l.push(A[0],A[1]),u.push(y[b],y[b+1]);var D=jf(g,r,e,I);h.push(D[0],D[1]),c.push(n[b],n[b+1]),d.push(e.getRawIndex(I));break;case"-":x=!1}x&&(p.push(_),f.push(f.length))}f.sort(function(t,e){return d[t]-d[e]});for(var P=l.length,O=$c(P),L=$c(P),E=$c(P),R=$c(P),B=[],m=0;m<f.length;m++){var N=f[m],z=2*m,F=2*N;O[z]=l[F],O[z+1]=l[F+1],L[z]=u[F],L[z+1]=u[F+1],E[z]=h[F],E[z+1]=h[F+1],R[z]=c[F],R[z+1]=c[F+1],B[m]=p[N]}return{current:O,next:L,stackedOnCurrent:E,stackedOnNext:R,status:B}}function Zf(t,e){return isNaN(t)||isNaN(e)}function Kf(t,e,i,n,r,o,a,s,l){for(var u,h,c,p,f,d,g=i,v=0;n>v;v++){var y=e[2*g],m=e[2*g+1];if(g>=r||0>g)break;if(Zf(y,m)){if(l){g+=o;continue}break}if(g===i)t[o>0?"moveTo":"lineTo"](y,m),c=y,p=m;else{var _=y-u,x=m-h;if(.5>_*_+x*x){g+=o;continue}if(a>0){for(var w=g+o,b=e[2*w],S=e[2*w+1];b===y&&S===m&&n>v;)v++,w+=o,g+=o,b=e[2*w],S=e[2*w+1],y=e[2*g],m=e[2*g+1],_=y-u,x=m-h;var T=v+1;if(l)for(;Zf(b,S)&&n>T;)T++,w+=o,b=e[2*w],S=e[2*w+1];var M=.5,C=0,I=0,k=void 0,A=void 0;if(T>=n||Zf(b,S))f=y,d=m;else{C=b-u,I=S-h;var D=y-u,P=b-y,O=m-h,L=S-m,E=void 0,R=void 0;if("x"===s){E=Math.abs(D),R=Math.abs(P);var B=C>0?1:-1;f=y-B*E*a,d=m,k=y+B*R*a,A=m}else if("y"===s){E=Math.abs(O),R=Math.abs(L);var N=I>0?1:-1;f=y,d=m-N*E*a,k=y,A=m+N*R*a}else E=Math.sqrt(D*D+O*O),R=Math.sqrt(P*P+L*L),M=R/(R+E),f=y-C*a*(1-M),d=m-I*a*(1-M),k=y+C*a*M,A=m+I*a*M,k=LI(k,EI(b,y)),A=LI(A,EI(S,m)),k=EI(k,LI(b,y)),A=EI(A,LI(S,m)),C=k-y,I=A-m,f=y-C*E/R,d=m-I*E/R,f=LI(f,EI(u,y)),d=LI(d,EI(h,m)),f=EI(f,LI(u,y)),d=EI(d,LI(h,m)),C=y-f,I=m-d,k=y+C*R/E,A=m+I*R/E}t.bezierCurveTo(c,p,f,d,y,m),c=k,p=A}else t.lineTo(y,m)}u=y,h=m,g+=o}return v}function Qf(t,e,i,n,r){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,h=i.get(["lineStyle","width"])||2;a-=h/2,s-=h/2,l+=h,u+=h,a=Math.floor(a),l=Math.round(l);var c=new dx({shape:{x:a,y:s,width:l,height:u}});if(e){var p=t.getBaseAxis(),f=p.isHorizontal(),d=p.inverse;f?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var g=S(r)?function(t){r(t,c)}:null;aa(c,{shape:{width:l,height:u,x:a,y:s}},i,null,n,g)}return c}function $f(t,e,i){var n=t.getArea(),r=Hi(n.r0,1),o=Hi(n.r,1),a=new vw({shape:{cx:Hi(t.cx,1),cy:Hi(t.cy,1),r0:r,r:o,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){"angle"===t.getBaseAxis().dim?a.shape.endAngle=n.startAngle:a.shape.r=r,aa(a,{shape:{endAngle:n.endAngle,r:o}},i)}return a}function Jf(t,e){return t.type===e}function td(t,e){if(t.length===e.length){for(var i=0;i<t.length;i++)if(t[i]!==e[i])return;return!0}}function ed(t){for(var e=1/0,i=1/0,n=-1/0,r=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),n=Math.max(a,n)),isNaN(s)||(i=Math.min(s,i),r=Math.max(s,r))}return[[e,i],[n,r]]}function id(t,e){var i=ed(t),n=i[0],r=i[1],o=ed(e),a=o[0],s=o[1];return Math.max(Math.abs(n[0]-a[0]),Math.abs(n[1]-a[1]),Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]))}function nd(t){return C(t)?t:t?.5:0}function rd(t,e,i){if(!i.valueDim)return[];for(var n=e.count(),r=$c(2*n),o=0;n>o;o++){var a=jf(i,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}function od(t,e,i,n){var r=e.getBaseAxis(),o="x"===r.dim||"radius"===r.dim?0:1,a=[],s=0,l=[],u=[],h=[],c=[];if(n){for(s=0;s<t.length;s+=2)isNaN(t[s])||isNaN(t[s+1])||c.push(t[s],t[s+1]);t=c}for(s=0;s<t.length-2;s+=2)switch(h[0]=t[s+2],h[1]=t[s+3],u[0]=t[s],u[1]=t[s+1],a.push(u[0],u[1]),i){case"end":l[o]=h[o],l[1-o]=u[1-o],a.push(l[0],l[1]);break;case"middle":var p=(u[o]+h[o])/2,f=[];l[o]=f[o]=p,l[1-o]=u[1-o],f[1-o]=h[1-o],a.push(l[0],l[1]),a.push(f[0],f[1]);break;default:l[o]=u[o],l[1-o]=h[1-o],a.push(l[0],l[1])}return a.push(t[s++],t[s++]),a}function ad(t,e){function i(t,e,i){var n=t.coord;return{coord:i,color:ze((i-n)/(e.coord-n),[t.color,e.color])}}for(var n,r,o=[],a=t.length,s=0;a>s;s++){var l=t[s],u=l.coord;if(0>u)n=l;else{if(u>e){r?o.push(i(r,l,e)):n&&o.push(i(n,l,0),i(n,l,e));break}n&&(o.push(i(n,l,0)),n=null),o.push(l),r=l}}return o}function sd(t,e,i){var n=t.getVisual("visualMeta");if(n&&n.length&&t.count()&&"cartesian2d"===e.type){for(var r,o,a=n.length-1;a>=0;a--){var s=t.getDimensionInfo(n[a].dimension);if("x"===(r=s&&s.coordDim)||"y"===r){o=n[a];break}}if(o){var l=e.getAxis(r),u=g(o.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),h=u.length,c=o.outerColors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),c.reverse());var p=ad(u,"x"===r?i.getWidth():i.getHeight()),f=p.length;if(!f&&h)return u[0].coord<0?c[1]?c[1]:u[h-1].color:c[0]?c[0]:u[0].color;var v=p[0].coord-10,y=p[f-1].coord+10,m=y-v;if(.001>m)return"transparent";d(p,function(t){t.offset=(t.coord-v)/m}),p.push({offset:f?p[f-1].offset:.5,color:c[1]||"transparent"}),p.unshift({offset:f?p[0].offset:.5,color:c[0]||"transparent"});var _=new Lw(0,0,0,0,p,!0);return _[r]=v,_[r+"2"]=y,_}}}function ld(t,e,i){var n=t.get("showAllSymbol"),r="auto"===n;if(!n||r){var o=i.getAxesByScale("ordinal")[0];if(o&&(!r||!ud(o,e))){var a=e.mapDimension(o.dim),s={};return d(o.getViewLabels(),function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1}),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function ud(t,e){var i=t.getExtent(),n=Math.abs(i[1]-i[0])/t.scale.count();isNaN(n)&&(n=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;r>a;a+=o)if(1.5*PI.getSymbolSize(e,a)[t.isHorizontal()?1:0]>n)return!1;return!0}function hd(t,e){return isNaN(t)||isNaN(e)}function cd(t){for(var e=t.length/2;e>0&&hd(t[2*e-2],t[2*e-1]);e--);return e-1}function pd(t,e){return[t[2*e],t[2*e+1]]}function fd(t,e,i){for(var n,r,o=t.length/2,a="x"===i?0:1,s=0,l=-1,u=0;o>u;u++)if(r=t[2*u+a],!isNaN(r)&&!isNaN(t[2*u+1-a]))if(0!==u){if(e>=n&&r>=e||n>=e&&e>=r){l=u;break}s=u,n=r}else n=r;return{range:[s,l],t:(e-n)/(r-n)}}function dd(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Px.length;e++)if(t.get([Px[e],"endLabel","show"]))return!0;return!1}function gd(t,e,i,n){if(Jf(e,"cartesian2d")){var r=n.getModel("endLabel"),o=r.get("valueAnimation"),a=n.getData(),s={lastFrameIndex:0},l=dd(n)?function(i,n){t._endLabelOnDuring(i,n,a,s,o,r,e)}:null,u=e.getBaseAxis().isHorizontal(),h=Qf(e,i,n,function(){var e=t._endLabel;e&&i&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var c=h.shape,p=Math.max(c.width,c.height);u?(c.y-=p,c.height+=2*p):(c.x-=p,c.width+=2*p)}return l&&l(1,h),h}return $f(e,i,n)}function vd(t,e){var i=e.getBaseAxis(),n=i.isHorizontal(),r=i.inverse,o=n?r?"right":"left":"center",a=n?"middle":r?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}function yd(t,e){return{seriesType:t,plan:Du(),reset:function(t){var i=t.getData(),n=t.coordinateSystem,r=t.pipelineContext,o=e||r.large;if(n){var a=g(n.dimensions,function(t){return i.mapDimension(t)}).slice(0,2),s=a.length,l=i.getCalculationInfo("stackResultDimension");Rc(i,a[0])&&(a[0]=l),Rc(i,a[1])&&(a[1]=l);var u=i.getStore(),h=i.getDimensionIndex(a[0]),c=i.getDimensionIndex(a[1]);return s&&{progress:function(t,e){for(var i=t.end-t.start,r=o&&$c(i*s),a=[],l=[],p=t.start,f=0;p<t.end;p++){var d=void 0;if(1===s){var g=u.get(h,p);d=n.dataToPoint(g,null,l)}else a[0]=u.get(h,p),a[1]=u.get(c,p),d=n.dataToPoint(a,null,l);o?(r[f++]=d[0],r[f++]=d[1]):e.setItemLayout(p,d.slice())}o&&e.setLayout("points",r)}}}}}}function md(t){return{seriesType:t,reset:function(t,e,i){var n=t.getData(),r=t.get("sampling"),o=t.coordinateSystem,a=n.count();if(a>10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),h=i.getDevicePixelRatio(),c=Math.abs(u[1]-u[0])*(h||1),p=Math.round(a/c);if(isFinite(p)&&p>1){"lttb"===r&&t.setData(n.lttbDownSample(n.mapDimension(l.dim),1/p));var f=void 0;T(r)?f=YI[r]:S(r)&&(f=r),f&&t.setData(n.downSample(n.mapDimension(l.dim),1/p,f,HI))}}}}}function _d(t){t.registerChartView(FI),t.registerSeriesModel(DI),t.registerLayout(yd("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),i=t.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",i)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,md("line"))}function xd(t,i,n,r){d(KI,function(o,s){var l=a(a({},ZI[s],!0),r,!0),u=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i+"Axis."+s,e}return e(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var i=Ls(this),n=i?Rs(t):{};a(t,e.getTheme().get(s+"Axis")),a(t,this.getDefaultOption()),t.type=wd(t),i&&Es(t,n,i)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=xC.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;return"category"===e.type?t?e.data:this.__ordinalMeta.categories:void 0},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=i+"Axis."+s,n.defaultOption=l,n}(n);t.registerComponentModel(u)}),t.registerSubTypeDefaulter(i+"Axis",wd)}function wd(t){return t.type||(t.data?"category":"value")}function bd(t){return"interval"===t.type||"time"===t.type}function Sd(t,e,i){i=i||{};var n=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,h=n.getRect(),c=[h.x,h.x+h.width,h.y,h.y+h.height],p={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,d="x"===u?[c[2]-f,c[3]+f]:[c[0]-f,c[1]+f];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));d[p.onZero]=Math.max(Math.min(g,d[1]),d[0])}o.position=["y"===u?d[p[l]]:c[0],"x"===u?d[p[l]]:c[3]],o.rotation=Math.PI/2*("x"===u?0:1);var v={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=v[s],o.labelOffset=a?d[p[s]]-d[p.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),R(i.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-y:y,o.z2=1,o}function Td(t){return"cartesian2d"===t.get("coordinateSystem")}function Md(t){var e={xAxisModel:null,yAxisModel:null};return d(e,function(i,n){var r=n.replace(/Model$/,""),o=t.getReferringComponents(r,t_).models[0];e[n]=o}),e}function Cd(t,e,i){var n=SC.prototype,r=n.getTicks.call(i),o=n.getTicks.call(i,!0),a=r.length-1,s=n.getInterval.call(i),l=_p(t,e),u=l.extent,h=l.fixMin,c=l.fixMax;if("log"===t.type){var p=ek(t.base);u=[ek(u[0])/p,ek(u[1])/p]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:h,fixMax:c});var f=n.getExtent.call(t);h&&(u[0]=f[0]),c&&(u[1]=f[1]);var d=n.getInterval.call(t),g=u[0],v=u[1];if(h&&c)d=(v-g)/a;else if(h)for(v=u[0]+d*a;v<u[1]&&isFinite(v)&&isFinite(u[1]);)d=Uc(d),v=u[0]+d*a;else if(c)for(g=u[1]-d*a;g>u[0]&&isFinite(g)&&isFinite(u[0]);)d=Uc(d),g=u[1]-d*a;else{var y=t.getTicks().length-1;y>a&&(d=Uc(d));var m=d*a;v=Math.ceil(u[1]/d)*d,g=Hi(v-m),0>g&&u[0]>=0?(g=0,v=Hi(m)):v>0&&u[1]<=0&&(v=0,g=-Hi(m))}var _=(r[0].value-o[0].value)/s,x=(r[a].value-o[a].value)/s;n.setExtent.call(t,g+d*_,v+d*x),n.setInterval.call(t,d),(_||x)&&n.setNiceExtent.call(t,g+d,v-d)}function Id(t,e){return t.getCoordSysModel()===e}function kd(t,e,i,n){function r(t){return t.dim+"_"+t.index}i.getAxesOnZeroOf=function(){return o?[o]:[]};var o,a=t[e],s=i.model,l=s.get(["axisLine","onZero"]),u=s.get(["axisLine","onZeroAxisIndex"]);if(l){if(null!=u)Ad(a[u])&&(o=a[u]);else for(var h in a)if(a.hasOwnProperty(h)&&Ad(a[h])&&!n[r(a[h])]){o=a[h];break}o&&(n[r(o)]=!0)}}function Ad(t){return t&&"category"!==t.type&&"time"!==t.type&&Sp(t)}function Dd(t,e){var i=t.getExtent(),n=i[0]+i[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return n-t+e}}function Pd(t,e,i,n){var r,o,a=Zi(i-t),s=n[0]>n[1],l="start"===e&&!s||"start"!==e&&s;return Ki(a-nk/2)?(o=l?"bottom":"top",r="center"):Ki(a-1.5*nk)?(o=l?"top":"bottom",r="center"):(o="middle",r=1.5*nk>a&&a>nk/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}function Od(t,e,i){if(!Ap(t.axis)){var n=t.get(["axisLabel","showMinLabel"]),r=t.get(["axisLabel","showMaxLabel"]);e=e||[],i=i||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=i[0],h=i[1],c=i[i.length-1],p=i[i.length-2];!1===n?(Ld(o),Ld(u)):Ed(o,a)&&(n?(Ld(a),Ld(h)):(Ld(o),Ld(u))),!1===r?(Ld(s),Ld(c)):Ed(l,s)&&(r?(Ld(l),Ld(p)):(Ld(s),Ld(c)))}}function Ld(t){t&&(t.ignore=!0)}function Ed(t,e){var i=t&&t.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(i&&n){var r=Bt([]);return Yt(r,r,-t.rotation),i.applyTransform(zt([],r,t.getLocalTransform())),n.applyTransform(zt([],r,e.getLocalTransform())),i.intersect(n)}}function Rd(t){return"middle"===t||"center"===t}function Bd(t,e,i,n,r){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=i,e&&(gt(a,a,e),gt(s,s,e));var h=new Mw({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});xa(h.shape,h.style.lineWidth),h.anid=r+"_"+t[l].tickValue,o.push(h)}return o}function Nd(t,e,i,n){var r=i.axis,o=i.getModel("axisTick"),a=o.get("show");if("auto"===a&&n.handleAutoShown&&(a=n.handleAutoShown("axisTick")),a&&!r.scale.isBlank()){for(var s=o.getModel("lineStyle"),l=n.tickDirection*o.get("length"),h=r.getTicksCoords(),c=Bd(h,e.transform,l,u(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),p=0;p<c.length;p++)t.add(c[p]);return c}}function zd(t,e,i,n){var r=i.axis,o=i.getModel("minorTick");if(o.get("show")&&!r.scale.isBlank()){var a=r.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=n*o.get("length"),h=u(s.getLineStyle(),u(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var p=Bd(a[c],e.transform,l,h,"minorticks_"+c),f=0;f<p.length;f++)t.add(p[f])}}function Fd(t,e,i,n){var r=i.axis;if(R(n.axisLabelShow,i.get(["axisLabel","show"]))&&!r.scale.isBlank()){var o=i.getModel("axisLabel"),a=o.get("margin"),s=r.getViewLabels(),l=(R(n.labelRotate,o.get("rotate"))||0)*nk/180,u=rk.innerTextLayout(n.rotation,l,n.labelDirection),h=i.getCategories&&i.getCategories(!0),c=[],p=rk.isLabelSilent(i),f=i.get("triggerEvent");return d(s,function(s,l){var d="ordinal"===r.scale.type?r.scale.getRawOrdinalNumber(s.tickValue):s.tickValue,g=s.formattedLabel,v=s.rawLabel,y=o;if(h&&h[d]){var m=h[d];I(m)&&m.textStyle&&(y=new cb(m.textStyle,o,i.ecModel))}var _=y.getTextColor()||i.get(["axisLine","lineStyle","color"]),x=r.dataToCoord(d),w=new yx({x:x,y:n.labelOffset+n.labelDirection*a,rotation:u.rotation,silent:p,z2:10+(s.level||0),style:Va(y,{text:g,align:y.getShallow("align",!0)||u.textAlign,verticalAlign:y.getShallow("verticalAlign",!0)||y.getShallow("baseline",!0)||u.textVerticalAlign,fill:S(_)?_("category"===r.type?v:"value"===r.type?d+"":d,l):_})});if(w.anid="label_"+d,f){var b=rk.makeAxisEventDataBase(i);b.targetType="axisLabel",b.value=v,b.tickIndex=l,"category"===r.type&&(b.dataIndex=d),bx(w).eventData=b}e.add(w),w.updateTransform(),c.push(w),t.add(w),w.decomposeTransform()}),c}}function Yd(t,e){var i={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Hd(i,t,e),i.seriesInvolved&&Wd(i,t),i}function Hd(t,e,i){var n=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];d(i.getCoordinateSystems(),function(i){function s(n,s,l){var h=l.model.getModel("axisPointer",r),p=h.get("show");if(p&&("auto"!==p||n||Zd(h))){null==s&&(s=h.get("triggerTooltip")),h=n?Vd(l,c,r,e,n,s):h;var f=h.get("snap"),d=Kd(l.model),g=s||f||"category"===l.type,v=t.axesInfo[d]={key:d,axis:l,coordSys:i,axisPointerModel:h,triggerTooltip:s,involveSeries:g,snap:f,useHandle:Zd(h),seriesModels:[],linkGroup:null};u[d]=v,t.seriesInvolved=t.seriesInvolved||g;var y=Xd(o,l);if(null!=y){var m=a[y]||(a[y]={axesInfo:{}});m.axesInfo[d]=v,m.mapper=o[y].mapper,v.linkGroup=m}}}if(i.axisPointerEnabled){var l=Kd(i.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=i;var h=i.model,c=h.getModel("tooltip",n);if(d(i.getAxes(),w(s,!1,null)),i.getTooltipAxes&&n&&c.get("show")){var p="axis"===c.get("trigger"),f="cross"===c.get(["axisPointer","type"]),g=i.getTooltipAxes(c.get(["axisPointer","axis"]));(p||f)&&d(g.baseAxes,w(s,!f||"cross",p)),f&&d(g.otherAxes,w(s,"cross",!1))}}})}function Vd(t,e,i,n,r,a){var s=e.getModel("axisPointer"),l=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],h={};d(l,function(t){h[t]=o(s.get(t))}),h.snap="category"!==t.type&&!!a,"cross"===s.get("type")&&(h.type="line");var c=h.label||(h.label={});if(null==c.show&&(c.show=!1),"cross"===r){var p=s.get(["label","show"]);if(c.show=null==p||p,!a){var f=h.lineStyle=s.get("crossStyle");f&&u(c,f.textStyle)}}return t.model.getModel("axisPointer",new cb(h,i,n))}function Wd(t,e){e.eachSeries(function(e){var i=e.coordinateSystem,n=e.get(["tooltip","trigger"],!0),r=e.get(["tooltip","show"],!0);i&&"none"!==n&&!1!==n&&"item"!==n&&!1!==r&&!1!==e.get(["axisPointer","show"],!0)&&d(t.coordSysAxesInfo[Kd(i.model)],function(t){var n=t.axis;i.getAxis(n.dim)===n&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())})})}function Xd(t,e){for(var i=e.model,n=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(Ud(o[n+"AxisId"],i.id)||Ud(o[n+"AxisIndex"],i.componentIndex)||Ud(o[n+"AxisName"],i.name))return r}}function Ud(t,e){return"all"===t||b(t)&&h(t,e)>=0||t===e}function jd(t){var e=Gd(t);if(e){var i=e.axisPointerModel,n=e.axis.scale,r=i.option,o=i.get("status"),a=i.get("value");null!=a&&(a=n.parse(a));var s=Zd(i);null==o&&(r.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}function Gd(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Kd(t)]}function qd(t){var e=Gd(t);return e&&e.axisPointerModel}function Zd(t){return!!t.get(["handle","show"])}function Kd(t){return t.type+"||"+t.id}function Qd(t,e,i,n){var r=i.axis;if(!r.scale.isBlank()){var o=i.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=n.coordinateSystem.getRect(),h=r.getTicksCoords({tickModel:o,clamp:!0});if(h.length){var c=s.length,p=lk(t).splitAreaColors,f=U(),d=0;if(p)for(var g=0;g<h.length;g++){var v=p.get(h[g].tickValue);if(null!=v){d=(v+(c-1)*g)%c;break}}var y=r.toGlobalCoord(h[0].coord),m=a.getAreaStyle();s=b(s)?s:[s];for(var g=1;g<h.length;g++){var _=r.toGlobalCoord(h[g].coord),x=void 0,w=void 0,S=void 0,T=void 0;r.isHorizontal()?(x=y,w=l.y,S=_-x,T=l.height,y=x+S):(x=l.x,w=y,S=l.width,T=_-w,y=w+T);var M=h[g-1].tickValue;null!=M&&f.set(M,d),e.add(new dx({anid:null!=M?"area_"+M:null,shape:{x:x,y:w,width:S,height:T},style:u({fill:s[d]},m),autoBatch:!0,silent:!0})),d=(d+1)%c}lk(t).splitAreaColors=f}}}function $d(t){lk(t).splitAreaColors=null}function Jd(t){t.registerComponentView(gk),t.registerComponentModel(VI),t.registerCoordinateSystem("cartesian2d",ik),xd(t,"x",WI,vk),xd(t,"y",WI,vk),t.registerComponentView(fk),t.registerComponentView(dk),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function tg(t,e,i,n){eg(yk(i).lastProp,n)||(yk(i).lastProp=n,e?oa(i,n,t):(i.stopAnimation(),i.attr(n)))}function eg(t,e){if(I(t)&&I(e)){var i=!0;return d(e,function(e,n){i=i&&eg(t[n],e)}),!!i}return t===e}function ig(t,e){t[e.get(["label","show"])?"show":"hide"]()}function ng(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function rg(t,e,i){var n=e.get("z"),r=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=r&&(t.zlevel=r),t.silent=i)})}function og(t){var e,i=t.get("type"),n=t.getModel(i+"Style");return"line"===i?(e=n.getLineStyle(),e.fill=null):"shadow"===i&&(e=n.getAreaStyle(),e.stroke=null),e}function ag(t,e,i,n,r){var o=i.get("value"),a=lg(o,e.axis,e.ecModel,i.get("seriesDataIndices"),{precision:i.get(["label","precision"]),formatter:i.get(["label","formatter"])}),s=i.getModel("label"),l=Pb(s.get("padding")||0),u=s.getFont(),h=mi(a,u),c=r.position,p=h.width+l[1]+l[3],f=h.height+l[0]+l[2],d=r.align;"right"===d&&(c[0]-=p),"center"===d&&(c[0]-=p/2);var g=r.verticalAlign;"bottom"===g&&(c[1]-=f),"middle"===g&&(c[1]-=f/2),sg(c,p,f,n);var v=s.get("backgroundColor");v&&"auto"!==v||(v=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:Va(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:v}),z2:10}}function sg(t,e,i,n){var r=n.getWidth(),o=n.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+i,o)-i,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function lg(t,e,i,n,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:Mp(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};d(n,function(t){var e=i.getSeriesByIndex(t.seriesIndex),n=t.dataIndexInside,r=e&&e.getDataParams(n);r&&s.seriesData.push(r)}),T(a)?o=a.replace("{value}",o):S(a)&&(o=a(s))}return o}function ug(t,e,i){var n=Rt();return Yt(n,n,i.rotation),Ft(n,n,i.position),Sa([t.dataToCoord(e),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],n)}function hg(t,e,i,n,r,o){var a=rk.innerTextLayout(i.rotation,0,i.labelDirection);i.labelMargin=r.get(["label","margin"]),ag(e,n,r,o,{position:ug(n.axis,t,i),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function cg(t,e,i){return i=i||0,{x1:t[i],y1:t[1-i],x2:e[i],y2:e[1-i]}}function pg(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}}function fg(t,e){var i={};return i[e.dim+"AxisIndex"]=e.index,t.getCartesian(i)}function dg(t){return"x"===t.dim?0:1}function gg(t,e,i){if(!xv.node){var n=e.getZr();Tk(n).records||(Tk(n).records={}),vg(n,e);(Tk(n).records[t]||(Tk(n).records[t]={})).handler=i}}function vg(t,e){function i(i,n){t.on(i,function(i){var r=xg(e);Mk(Tk(t).records,function(t){t&&n(t,i,r.dispatchAction)}),yg(r.pendings,e)})}Tk(t).initialized||(Tk(t).initialized=!0,i("click",w(_g,"click")),i("mousemove",w(_g,"mousemove")),i("globalout",mg))}function yg(t,e){var i,n=t.showTip.length,r=t.hideTip.length;n?i=t.showTip[n-1]:r&&(i=t.hideTip[r-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function mg(t,e,i){t.handler("leave",null,i)}function _g(t,e,i,n){e.handler(t,i,n)}function xg(t){var e={showTip:[],hideTip:[]},i=function(n){var r=e[n.type];r?r.push(n):(n.dispatchAction=i,t.dispatchAction(n))};return{dispatchAction:i,pendings:e}}function wg(t,e){if(!xv.node){var i=e.getZr();(Tk(i).records||{})[t]&&(Tk(i).records[t]=null)}}function bg(t,e){var i,n=[],r=t.seriesIndex;if(null==r||!(i=e.getSeriesByIndex(r)))return{point:[]};var o=i.getData(),a=An(o,t);if(null==a||0>a||b(a))return{point:[]};var s=o.getItemGraphicEl(a),l=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),h=l.getOtherAxis(u),c=h.dim,p=u.dim,f="x"===c||"radius"===c?1:0,d=o.mapDimension(p),v=[];v[f]=o.get(d,a),v[1-f]=o.get(o.getCalculationInfo("stackResultDimension"),a),n=l.dataToPoint(v)||[]}else n=l.dataToPoint(o.getValues(g(l.dimensions,function(t){return o.mapDimension(t)}),a))||[];else if(s){var y=s.getBoundingRect().clone();y.applyTransform(s.transform),n=[y.x+y.width/2,y.y+y.height/2]}return{point:n,el:s}}function Sg(t,e,i){var n=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||Yv(i.dispatchAction,i),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Lg(r)&&(r=bg({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=Lg(r),u=o.axesInfo,h=s.axesInfo,c="leave"===n||Lg(r),p={},f={},g={list:[],map:{}},v={showPointer:w(Cg,f),showTooltip:w(Ig,g)};d(s.coordSysMap,function(t,e){var i=l||t.containPoint(r);d(s.coordSysAxesInfo[e],function(t){var e=t.axis,n=Pg(u,t);if(!c&&i&&(!u||n)){var o=n&&n.value;null!=o||l||(o=e.pointToData(r)),null!=o&&Tg(t,o,v,!1,p)}})});var y={};return d(h,function(t,e){var i=t.linkGroup;i&&!f[e]&&d(i.axesInfo,function(e,n){var r=f[n];if(e!==t&&r){var o=r.value;i.mapper&&(o=t.axis.scale.parse(i.mapper(o,Og(e),Og(t)))),y[t.key]=o}})}),d(y,function(t,e){Tg(h[e],t,v,!0,p)}),kg(f,h,p),Ag(g,r,t,a),Dg(h,a,i),p}}function Tg(t,e,i,n,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e)){if(!t.involveSeries)return void i.showPointer(t,e);var a=Mg(e,t),s=a.payloadBatch,u=a.snapToValue;s[0]&&null==r.seriesIndex&&l(r,s[0]),!n&&t.snap&&o.containData(u)&&null!=u&&(e=u),i.showPointer(t,e,s),i.showTooltip(t,a,u)}}function Mg(t,e){var i=e.axis,n=i.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return d(e.seriesModels,function(e){var l,u,h=e.getData().mapDimensionsAll(n);if(e.getAxisTooltipData){var c=e.getAxisTooltipData(h,t,i);u=c.dataIndices,l=c.nestestValue}else{if(u=e.getData().indicesOfNearest(h[0],t,"category"===i.type?.5:null),!u.length)return;l=e.getData().get(h[0],u[0])}if(null!=l&&isFinite(l)){var p=t-l,f=Math.abs(p);a>=f&&((a>f||p>=0&&0>s)&&(a=f,s=p,r=l,o.length=0),d(u,function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:o,snapToValue:r}}function Cg(t,e,i,n){t[e.key]={value:i,payloadBatch:n}}function Ig(t,e,i,n){var r=i.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=Kd(l),h=t.map[u];h||(h=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(h)),h.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function kg(t,e,i){var n=i.axesInfo=[];d(e,function(e,i){var r=e.axisPointerModel.option,o=t[i];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&n.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})})}function Ag(t,e,i,n){if(Lg(e)||!t.list.length)return void n({type:"hideTip"});var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:i.tooltipOption,position:i.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}function Dg(t,e,i){var n=i.getZr(),r="axisPointerLastHighlights",o=Ik(n)[r]||{},a=Ik(n)[r]={};d(t,function(t){var e=t.axisPointerModel.option;"show"===e.status&&d(e.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t})});var s=[],l=[];d(o,function(t,e){!a[e]&&l.push(t)}),d(a,function(t,e){!o[e]&&s.push(t)}),l.length&&i.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&i.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Pg(t,e){for(var i=0;i<(t||[]).length;i++){var n=t[i];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function Og(t){var e=t.axis.model,i={},n=i.axisDim=t.axis.dim;return i.axisIndex=i[n+"AxisIndex"]=e.componentIndex,i.axisName=i[n+"AxisName"]=e.name,i.axisId=i[n+"AxisId"]=e.id,i}function Lg(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function Eg(t){sk.registerAxisPointerClass("CartesianAxisPointer",wk),t.registerComponentModel(Sk),t.registerComponentView(Ck),t.registerPreprocessor(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!b(e)&&(t.axisPointer.link=[e])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Yd(t,e)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Sg)}function Rg(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function Bg(t){if(xv.domSupported)for(var e=document.documentElement.style,i=0,n=t.length;n>i;i++)if(t[i]in e)return t[i]}function Ng(t,e){if(!t)return e;e=Ts(e,!0);var i=t.indexOf(e);return t=-1===i?e:"-"+t.slice(0,i)+"-"+e,t.toLowerCase()}function zg(t,e){var i=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return i?e?i[e]:i:null}function Fg(t){return t="left"===t?"right":"right"===t?"left":"top"===t?"bottom":"top"}function Yg(t,e,i){if(!T(i)||"inside"===i)return"";var n=t.get("backgroundColor"),r=t.get("borderWidth");e=Ds(e);var o,a=Fg(i),s=Math.max(1.5*Math.round(r),6),l="",u=Ok+":";h(["left","right"],a)>-1?(l+="top:50%",u+="translateY(-50%) rotate("+(o="left"===a?-225:-45)+"deg)"):(l+="left:50%",u+="translateX(-50%) rotate("+(o="top"===a?225:45)+"deg)");var c=o*Math.PI/180,p=s+r,f=p*Math.abs(Math.cos(c))+p*Math.abs(Math.sin(c));l+=";"+a+":-"+Math.round(100*((f-Math.SQRT2*r)/2+Math.SQRT2*r-(f-p)/2))/100+"px";var d=e+" solid "+r+"px;";return'<div style="'+["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+u+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"].join("")+'"></div>'}function Hg(t,e){var i="cubic-bezier(0.23,1,0.32,1)",n=" "+t/2+"s "+i,r="opacity"+n+",visibility"+n;return e||(n=" "+t+"s "+i,r+=xv.transformSupported?","+Ok+n:",left"+n+",top"+n),Pk+":"+r}function Vg(t,e,i){var n=t.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!xv.transformSupported)return i?"top:"+r+";left:"+n+";":[["top",r],["left",n]];var o=xv.transform3dSupported,a="translate"+(o?"3d":"")+"("+n+","+r+(o?",0":"")+")";return i?"top:0;left:0;"+Ok+":"+a+";":[["top",0],["left",0],[Ak,a]]}function Wg(t){var e=[],i=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont()),i&&e.push("line-height:"+Math.round(3*i/2)+"px");var r=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return r&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+r),d(["decoration","align"],function(i){var n=t.get(i);n&&e.push("text-"+i+":"+n)}),e.join(";")}function Xg(t,e,i){var n=[],r=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),h=t.getModel("textStyle"),c=mu(t,"html"),p=l+"px "+u+"px "+a+"px "+s;return n.push("box-shadow:"+p),e&&r&&n.push(Hg(r,i)),o&&n.push("background-color:"+o),d(["width","color","radius"],function(e){var i="border-"+e,r=Ts(i),o=t.get(r);null!=o&&n.push(i+":"+o+("color"===e?"":"px"))}),n.push(Wg(h)),null!=c&&n.push("padding:"+Pb(c).join("px ")+"px"),n.join(";")+";"}function Ug(t,e,i,n,r){var o=e&&e.painter;if(i){var a=o&&o.getViewportRoot();a&&xt(t,a,document.body,n,r)}else{t[0]=n,t[1]=r;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function jg(t){return Math.max(0,t)}function Gg(t){var e=jg(t.shadowBlur||0),i=jg(t.shadowOffsetX||0),n=jg(t.shadowOffsetY||0);return{left:jg(e-i),right:jg(e+i),top:jg(e-n),bottom:jg(e+n)}}function qg(t,e,i,n){t[0]=i,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function Zg(t,e,i){var n,r=e.ecModel;i?(n=new cb(i,r,r),n=new cb(e.option,n,r)):n=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof cb&&(a=a.get("tooltip",!0)),T(a)&&(a={formatter:a}),a&&(n=new cb(a,n,r)))}return n}function Kg(t,e){return t.dispatchAction||Yv(e.dispatchAction,e)}function Qg(t,e,i,n,r,o,a){var s=i.getSize(),l=s[0],u=s[1];return null!=o&&(t+l+o+2>n?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}function $g(t,e,i,n,r){var o=i.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,n)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function Jg(t,e,i,n){var r=i[0],o=i[1],a=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,h=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+h/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+h+a;break;case"left":s=e.x-r-a,l=e.y+h/2-o/2;break;case"right":s=e.x+u+a,l=e.y+h/2-o/2}return[s,l]}function tv(t){return"center"===t||"middle"===t}function ev(t,e,i){var n=On(t).queryOptionMap,r=n.keys()[0];if(r&&"series"!==r){var o=Ln(e,r,n.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s;return i.getViewOfComponentModel(a).group.traverse(function(e){var i=bx(e).tooltipConfig;return i&&i.name===t.name?(s=e,!0):void 0}),s?{componentMainType:r,componentIndex:a.componentIndex,el:s}:void 0}}}function iv(t){Rp(Eg),t.registerComponentModel(kk),t.registerComponentView(Nk),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},K),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},K)}function nv(t,e){if(!t)return!1;for(var i=b(t)?t:[t],n=0;n<i.length;n++)if(i[n]&&i[n][e])return!0;return!1}function rv(t){pn(t,"label",["show"])}function ov(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function av(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function sv(t,e,i,n,r,o){var a=[],s=Rc(e,n),l=s?e.getCalculationInfo("stackResultDimension"):n,u=fv(e,l,t),h=e.indicesOfNearest(l,u)[0];a[r]=e.get(i,h),a[o]=e.get(l,h);var c=e.get(n,h),p=Wi(e.get(n,h));return p=Math.min(p,20),p>=0&&(a[o]=+a[o].toFixed(p)),[a,c]}function lv(t,e){if(e){var i=t.getData(),n=t.coordinateSystem,r=n.dimensions;if(!av(e)&&!b(e.coord)&&n){var a=uv(e,i,n,t);if(e=o(e),e.type&&Hk[e.type]&&a.baseAxis&&a.valueAxis){var s=h(r,a.baseAxis.dim),l=h(r,a.valueAxis.dim),u=Hk[e.type](i,a.baseDataDim,a.valueDataDim,s,l);e.coord=u[0],e.value=u[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null==e.coord)e.coord=[];else for(var c=e.coord,p=0;2>p;p++)Hk[c[p]]&&(c[p]=fv(i,i.mapDimension(r[p]),c[p]));return e}}function uv(t,e,i,n){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=i.getAxis(hv(n,r.valueDataDim)),r.baseAxis=i.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=n.getBaseAxis(),r.valueAxis=i.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}function hv(t,e){var i=t.getData().getDimensionInfo(e);return i&&i.coordDim}function cv(t,e){return!(t&&t.containData&&e.coord&&!ov(e))||t.containData(e.coord)}function pv(t,e){return t?function(t,i,n,r){return Yl(2>r?t.coord&&t.coord[r]:t.value,e[r])}:function(t,i,n,r){return Yl(t.value,e[r])}}function fv(t,e,i){if("average"===i){var n=0,r=0;return t.each(e,function(t){isNaN(t)||(n+=t,r++)}),n/r}return"median"===i?t.getMedian(e):t.getDataExtent(e)["max"===i?1:0]}function dv(t,e,i){var n=e.coordinateSystem;t.each(function(r){var o,a=t.getItemModel(r),s=Yi(a.get("x"),i.getWidth()),l=Yi(a.get("y"),i.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,r));else if(n){var u=t.get(n.dimensions[0],r),h=t.get(n.dimensions[1],r);o=n.dataToPoint([u,h])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(r,o)})}function gv(t,e,i){var n;n=t?g(t&&t.dimensions,function(t){return l(l({},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})}):[{name:"value",type:"float"}];var r=new gC(n,i),o=g(i.get("data"),w(lv,e));t&&(o=y(o,w(cv,t)));var a=pv(!!t,n);return r.initData(o,null,a),r}function vv(t){t.registerComponentModel(Yk),t.registerComponentView(Xk),t.registerPreprocessor(function(t){nv(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var yv=function(t,e){return(yv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},mv=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),_v=function(){function t(){this.browser=new mv,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="undefined"!=typeof window}return t}(),xv=new _v;"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(xv.wxa=!0,xv.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?xv.worker=!0:"undefined"==typeof navigator?(xv.node=!0,xv.svgSupported=!0):function(t,e){var i=e.browser,n=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);n&&(i.firefox=!0,i.version=n[1]),r&&(i.ie=!0,i.version=r[1]),o&&(i.edge=!0,i.version=o[1],i.newEdge=+o[1].split(".")[0]>18),a&&(i.weChat=!0),e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!i.ie&&!i.edge,e.pointerEventsSupported="onpointerdown"in window&&(i.edge||i.ie&&+i.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(i.ie&&"transition"in s||i.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||i.ie&&+i.version>=9}(navigator.userAgent,xv);var wv=12,bv=wv+"px sans-serif",Sv=20,Tv=100,Mv=function(t){var e={};if("undefined"==typeof JSON)return e;for(var i=0;i<t.length;i++){var n=String.fromCharCode(i+32),r=(t.charCodeAt(i)-Sv)/Tv;e[n]=r}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),Cv={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(){var t,e;return function(i,n){if(!t){var r=Cv.createCanvas();t=r&&r.getContext("2d")}if(t)return e!==n&&(e=t.font=n||bv),t.measureText(i);i=i||"",n=n||bv;var o=/(\d+)px/.exec(n),a=o&&+o[1]||wv,s=0;if(n.indexOf("mono")>=0)s=a*i.length;else for(var l=0;l<i.length;l++){var u=Mv[i[l]];s+=null==u?a:u*a}return{width:s}}}(),loadImage:function(t,e,i){var n=new Image;return n.onload=e,n.onerror=i,n.src=t,n}},Iv=v(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),kv=v(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),Av=Object.prototype.toString,Dv=Array.prototype,Pv=Dv.forEach,Ov=Dv.filter,Lv=Dv.slice,Ev=Dv.map,Rv=function(){}.constructor,Bv=Rv?Rv.prototype:null,Nv="__proto__",zv=2311,Fv=Cv.createCanvas,Yv=Bv&&S(Bv.bind)?Bv.call.bind(Bv.bind):x,Hv="__ec_primitive__",Vv=function(){function t(){this.data={}}return t.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return _(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)},t}(),Wv="function"==typeof Map,Xv=function(){function t(e){function i(t,e){n?r.set(t,e):r.set(e,t)}var n=b(e);this.data=X();var r=this;e instanceof t?e.each(i):e&&d(e,i)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach(function(i,n){t.call(e,i,n)})},t.prototype.keys=function(){var t=this.data.keys();return Wv?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}(),Uv=180/Math.PI,jv=(Object.freeze||Object)({guid:n,logError:r,clone:o,merge:a,mergeAll:s,extend:l,defaults:u,createCanvas:Fv,indexOf:h,inherits:c,mixin:p,isArrayLike:f,each:d,map:g,reduce:v,filter:y,find:m,keys:_,bind:Yv,curry:w,isArray:b,isFunction:S,isString:T,isStringSafe:M,isNumber:C,isObject:I,isBuiltInObject:k,isTypedArray:A,isDom:D,isGradientObject:P,isImagePatternObject:O,isRegExp:L,eqNaN:E,retrieve:R,retrieve2:B,retrieve3:N,slice:z,normalizeCssArray:F,assert:Y,trim:H,setAsPrimitive:V,isPrimitive:W,HashMap:Xv,createHashMap:U,concatArray:j,createObject:G,disableUserSelect:q,hasOwn:Z,noop:K,RADIAN_TO_DEGREE:Uv}),Gv=rt,qv=ot,Zv=ct,Kv=pt,Qv=(Object.freeze||Object)({create:Q,copy:$,clone:J,set:tt,add:et,scaleAndAdd:it,sub:nt,len:rt,length:Gv,lenSquare:ot,lengthSquare:qv,mul:at,div:st,dot:lt,scale:ut,normalize:ht,distance:ct,dist:Zv,distanceSquare:pt,distSquare:Kv,negate:ft,lerp:dt,applyTransform:gt,min:vt,max:yt}),$v=function(){function t(t,e){this.target=t,this.topTarget=e&&e.topTarget}return t}(),Jv=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new $v(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,n=t.offsetY,r=i-this._x,o=n-this._y;this._x=i,this._y=n,e.drift(r,o,t),this.handler.dispatchToElement(new $v(e,t),"drag",t.event);var a=this.handler.findHover(i,n,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new $v(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new $v(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new $v(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new $v(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),ty=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,i,n){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(n=i,i=e,e=null),!i||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a<r[t].length;a++)if(r[t][a].h===i)return this;var s={h:i,query:e,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},l=r[t].length-1,u=r[t][l];return u&&u.callAtLast?r[t].splice(l,0,s):r[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var n=[],r=0,o=i[t].length;o>r;r++)i[t][r].h!==e&&n.push(i[t][r]);i[t]=n}i[t]&&0===i[t].length&&delete i[t]}else delete i[t];return this},t.prototype.trigger=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],r=this._$eventProcessor;if(n)for(var o=e.length,a=n.length,s=0;a>s;s++){var l=n[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],r=this._$eventProcessor;if(n)for(var o=e.length,a=e[o-1],s=n.length,l=0;s>l;l++){var u=n[l];if(!r||!r.filter||null==u.query||r.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1))}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t}(),ey=Math.log(2),iy="___zrEVENTSAVED",ny=[],ry=/([&<>"'])/g,oy={"&":"&","<":"<",">":">",'"':""","'":"'"},ay=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,sy=[],ly=xv.browser.firefox&&+xv.browser.version.split(".")[0]<39,uy=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},hy=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,i){var n=t.touches;if(n){for(var r={points:[],touches:[],target:e,event:t},o=0,a=n.length;a>o;o++){var s=n[o],l=Ct(i,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},t.prototype._recognize=function(t){for(var e in cy)if(cy.hasOwnProperty(e)){var i=cy[e](this._track,t);if(i)return i}},t}(),cy={pinch:function(t,e){var i=t.length;if(i){var n=(t[i-1]||{}).points,r=(t[i-2]||{}).points||n;if(r&&r.length>1&&n&&n.length>1){var o=Lt(n)/Lt(r);!isFinite(o)&&(o=1),e.pinchScale=o;var a=Et(n);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}},py=(Object.freeze||Object)({create:Rt,identity:Bt,copy:Nt,mul:zt,translate:Ft,rotate:Yt,scale:Ht,invert:Vt,clone:Wt}),fy=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,i=this.y-t.y;return e*e+i*i},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,i=this.y;return this.x=t[0]*e+t[2]*i+t[4],this.y=t[1]*e+t[3]*i+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,i){t.x=e,t.y=i},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,i){t.x=e.x+i.x,t.y=e.y+i.y},t.sub=function(t,e,i){t.x=e.x-i.x,t.y=e.y-i.y},t.scale=function(t,e,i){t.x=e.x*i,t.y=e.y*i},t.scaleAndAdd=function(t,e,i,n){t.x=e.x+i.x*n,t.y=e.y+i.y*n},t.lerp=function(t,e,i,n){var r=1-n;t.x=r*e.x+n*i.x,t.y=r*e.y+n*i.y},t}(),dy=Math.min,gy=Math.max,vy=new fy,yy=new fy,my=new fy,_y=new fy,xy=new fy,wy=new fy,by=function(){function t(t,e,i,n){0>i&&(t+=i,i=-i),0>n&&(e+=n,n=-n),this.x=t,this.y=e,this.width=i,this.height=n}return t.prototype.union=function(t){var e=dy(t.x,this.x),i=dy(t.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?gy(t.x+t.width,this.x+this.width)-e:t.width,this.height=isFinite(this.y)&&isFinite(this.height)?gy(t.y+t.height,this.y+this.height)-i:t.height,this.x=e,this.y=i},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,i=t.width/e.width,n=t.height/e.height,r=Rt();return Ft(r,r,[-e.x,-e.y]),Ht(r,r,[i,n]),Ft(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,i){if(!e)return!1;e instanceof t||(e=t.create(e));var n=this,r=n.x,o=n.x+n.width,a=n.y,s=n.y+n.height,l=e.x,u=e.x+e.width,h=e.y,c=e.y+e.height,p=!(l>o||r>u||h>s||a>c);if(i){var f=1/0,d=0,g=Math.abs(o-l),v=Math.abs(u-r),y=Math.abs(s-h),m=Math.abs(c-a),_=Math.min(g,v),x=Math.min(y,m);l>o||r>u?_>d&&(d=_,v>g?fy.set(wy,-g,0):fy.set(wy,v,0)):f>_&&(f=_,v>g?fy.set(xy,g,0):fy.set(xy,-v,0)),h>s||a>c?x>d&&(d=x,m>y?fy.set(wy,0,-y):fy.set(wy,0,m)):f>_&&(f=_,m>y?fy.set(xy,0,y):fy.set(xy,0,-m))}return i&&fy.copy(i,p?xy:wy),p},t.prototype.contain=function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,i,n){if(!n)return void(e!==i&&t.copy(e,i));if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var r=n[0],o=n[3],a=n[4],s=n[5];return e.x=i.x*r+a,e.y=i.y*o+s,e.width=i.width*r,e.height=i.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}vy.x=my.x=i.x,vy.y=_y.y=i.y,yy.x=_y.x=i.x+i.width,yy.y=my.y=i.y+i.height,vy.transform(n),_y.transform(n),yy.transform(n),my.transform(n),e.x=dy(vy.x,yy.x,my.x,_y.x),e.y=dy(vy.y,yy.y,my.y,_y.y);var l=gy(vy.x,yy.x,my.x,_y.x),u=gy(vy.y,yy.y,my.y,_y.y);e.width=l-e.x,e.height=u-e.y},t}(),Sy="silent",Ty=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return e(i,t),i.prototype.dispose=function(){},i.prototype.setCursor=function(){},i}(ty),My=function(){function t(t,e){this.x=t,this.y=e}return t}(),Cy=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Iy=new by(0,0,0,0),ky=function(t){function i(e,i,n,r,o){var a=t.call(this)||this;return a._hovered=new My(0,0),a.storage=e,a.painter=i,a.painterRoot=r,a._pointerSize=o,n=n||new Ty,a.proxy=null,a.setHandlerProxy(n),a._draggingMgr=new Jv(a),a}return e(i,t),i.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(d(Cy,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},i.prototype.mousemove=function(t){var e=t.zrX,i=t.zrY,n=qt(this,e,i),r=this._hovered,o=r.target;o&&!o.__zr&&(r=this.findHover(r.x,r.y),o=r.target);var a=this._hovered=n?new My(e,i):this.findHover(e,i),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},i.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},i.prototype.resize=function(){this._hovered=new My(0,0)},i.prototype.dispatch=function(t,e){var i=this[t];i&&i.call(this,e)},i.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},i.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},i.prototype.dispatchToElement=function(t,e,i){t=t||{};var n=t.target;if(!n||!n.silent){for(var r="on"+e,o=Xt(e,t,i);n&&(n[r]&&(o.cancelBubble=!!n[r].call(n,o)),n.trigger(e,o),n=n.__hostTarget?n.__hostTarget:n.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)}))}},i.prototype.findHover=function(t,e,i){var n=this.storage.getDisplayList(),r=new My(t,e);if(Gt(n,r,t,e,i),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new by(t-s,e-s,a,a),u=n.length-1;u>=0;u--){var h=n[u];h===i||h.ignore||h.ignoreCoarsePointer||h.parent&&h.parent.ignoreCoarsePointer||(Iy.copy(h.getBoundingRect()),h.transform&&Iy.applyTransform(h.transform),Iy.intersect(l)&&o.push(h))}if(o.length)for(var c=Math.PI/12,p=2*Math.PI,f=0;s>f;f+=4)for(var d=0;p>d;d+=c){var g=t+f*Math.cos(d),v=e+f*Math.sin(d);if(Gt(o,r,g,v,i),r.target)return r}}return r},i.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new hy);var i=this._gestureMgr;"start"===e&&i.clear();var n=i.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&i.clear(),n){var r=n.type;t.gestureEvent=r;var o=new My;o.target=n.target,this.dispatchToElement(o,r,n.event)}},i}(ty);d(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){ky.prototype[t]=function(e){var i,n,r=e.zrX,o=e.zrY,a=qt(this,r,o);if("mouseup"===t&&a||(i=this.findHover(r,o),n=i.target),"mousedown"===t)this._downEl=n,this._downPoint=[e.zrX,e.zrY],this._upEl=n;else if("mouseup"===t)this._upEl=n;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||Zv(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}});var Ay,Dy=32,Py=7,Oy=1,Ly=4,Ey=!1,Ry=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=re}return t.prototype.traverse=function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var i=this._displayList;return(t||!i.length)&&this.updateDisplayList(e),i},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,n=0,r=e.length;r>n;n++)this._updateAndAddDisplayable(e[n],null,t);i.length=this._displayListLen,ie(i,re)},t.prototype._updateAndAddDisplayable=function(t,e,i){if(!t.ignore||i){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath();if(t.ignoreClip)e=null;else if(n){e=e?e.slice():[];for(var r=n,o=t;r;)r.parent=o,r.updateTransform(),e.push(r),o=r,r=r.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=Oy),this._updateAndAddDisplayable(l,e,i)}t.__dirty=0}else{var u=t;e&&e.length?u.__clipPaths=e:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(ne(),u.z=0),isNaN(u.z2)&&(ne(),u.z2=0),isNaN(u.zlevel)&&(ne(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,i);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,i);var p=t.getTextContent();p&&this._updateAndAddDisplayable(p,e,i)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,i=t.length;i>e;e++)this.delRoot(t[e]);else{var n=h(this._roots,t);n>=0&&this._roots.splice(n,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();Ay=xv.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var By=Ay,Ny={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),-i*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/.4))},elasticOut:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin(2*(t-e)*Math.PI/.4)+1)},elasticInOut:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?-.5*i*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/.4):i*Math.pow(2,-10*(t-=1))*Math.sin(2*(t-e)*Math.PI/.4)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*t*t*((e+1)*t-e):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Ny.bounceOut(1-t)},bounceOut:function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return.5>t?.5*Ny.bounceIn(2*t):.5*Ny.bounceOut(2*t-1)+.5}},zy=Math.pow,Fy=Math.sqrt,Yy=1e-8,Hy=1e-4,Vy=Fy(3),Wy=1/3,Xy=Q(),Uy=Q(),jy=Q(),Gy=/cubic-bezier\(([0-9,\.e ]+)\)/,qy=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||K,this.ondestroy=t.ondestroy||K,this.onrestart=t.onrestart||K,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused)return void(this._pausedTime+=e);var i=this._life,n=t-this._startTime-this._pausedTime,r=n/i;0>r&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=n%i;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=S(t)?t:Ny[t]||we(t)},t}(),Zy=function(){function t(t){this.value=t}return t}(),Ky=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new Zy(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),Qy=function(){function t(t){this._list=new Ky,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var i=this._list,n=this._map,r=null;if(null==n[t]){var o=i.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=i.head;i.remove(s),delete n[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new Zy(e),a.key=t,i.insertEntry(a),n[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],i=this._list;return null!=e?(e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value):void 0},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),$y={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]},Jy=new Qy(20),tm=null,em=Ne,im=ze,nm=(Object.freeze||Object)({parse:Oe,lift:Re,toHex:Be,fastLerp:Ne,fastMapToColor:em,lerp:ze,mapToColor:im,modifyHSL:Fe,modifyAlpha:Ye,stringify:He,lum:Ve,random:We}),rm=(function(){xv.hasGlobalWindow&&S(window.btoa)}(),Array.prototype.slice),om=1,am=2,sm=4,lm=5,um=[0,0,0,0],hm=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,i){this._needsSort=!0;var n=this.keyframes,r=n.length,o=!1,a=6,s=e;if(f(e)){var u=ei(e);a=u,(1===u&&!C(e[0])||2===u&&!C(e[0][0]))&&(o=!0)}else if(C(e)&&!E(e))a=0;else if(T(e))if(isNaN(+e)){var h=Oe(e);h&&(s=h,a=3)}else a=0;else if(P(e)){var c=l({},s);c.colorStops=g(e.colorStops,function(t){return{offset:t.offset,color:Oe(t.color)}}),Xe(e)?a=sm:Ue(e)&&(a=lm),s=c}0===r?this.valType=a:(a!==this.valType||6===a)&&(o=!0),this.discrete=this.discrete||o;var p={time:t,value:s,rawValue:e,percent:0};return i&&(p.easing=i,p.easingFunc=S(i)?i:Ny[i]||we(i)),n.push(p),p},t.prototype.prepare=function(t,e){var i=this.keyframes;this._needsSort&&i.sort(function(t,e){return t.time-e.time});for(var n=this.valType,r=i.length,o=i[r-1],a=this.discrete,s=ni(n),l=ii(n),u=0;r>u;u++){var h=i[u],c=h.value,p=o.value;h.percent=h.time/t,a||(s&&u!==r-1?$e(c,p,n):l&&Qe(c.colorStops,p.colorStops))}if(!a&&n!==lm&&e&&this.needsAnimate()&&e.needsAnimate()&&n===e.valType&&!e._finished){this._additiveTrack=e;for(var f=i[0].value,u=0;r>u;u++)0===n?i[u].additiveValue=i[u].value-f:3===n?i[u].additiveValue=Ze([],i[u].value,f,-1):ni(n)&&(i[u].additiveValue=n===om?Ze([],i[u].value,f,-1):Ke([],i[u].value,f,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i,n,r,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,h=this.propName,c=3===s,p=this._lastFr,f=Math.min;if(1===u)n=r=l[0];else{if(0>e)i=0;else if(e<this._lastFrP){var d=f(p+1,u-1);for(i=d;i>=0&&!(l[i].percent<=e);i--);i=f(i,u-2)}else{for(i=p;u>i&&!(l[i].percent>e);i++);i=f(i-1,u-2)}r=l[i+1],n=l[i]}if(n&&r){this._lastFr=i,this._lastFrP=e;var v=r.percent-n.percent,y=0===v?1:f((e-n.percent)/v,1);r.easingFunc&&(y=r.easingFunc(y));var m=o?this._additiveValue:c?um:t[h];if(!ni(s)&&!c||m||(m=this._additiveValue=[]),this.discrete)t[h]=1>y?n.rawValue:r.rawValue;else if(ni(s))s===om?Ge(m,n[a],r[a],y):qe(m,n[a],r[a],y);else if(ii(s)){var _=n[a],x=r[a],w=s===sm;t[h]={type:w?"linear":"radial",x:je(_.x,x.x,y),y:je(_.y,x.y,y),colorStops:g(_.colorStops,function(t,e){var i=x.colorStops[e];return{offset:je(t.offset,i.offset,y),color:ti(Ge([],t.color,i.color,y))}}),global:x.global},w?(t[h].x2=je(_.x2,x.x2,y),t[h].y2=je(_.y2,x.y2,y)):t[h].r=je(_.r,x.r,y)}else if(c)Ge(m,n[a],r[a],y),o||(t[h]=ti(m));else{var b=je(n[a],r[a],y);o?this._additiveValue=b:t[h]=b}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,n=this._additiveValue;0===e?t[i]=t[i]+n:3===e?(Oe(t[i],um),Ze(um,um,n,1),t[i]=ti(um)):e===om?Ze(t[i],t[i],n,1):e===am&&Ke(t[i],t[i],n,1)},t}(),cm=function(){function t(t,e,i,n){return this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n?void r("Can' use additive animation on looped animation."):(this._additiveAnimators=n,void(this._allowDiscrete=i))}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,i){return this.whenWithKeys(t,e,_(e),i)},t.prototype.whenWithKeys=function(t,e,i,n){for(var r=this._tracks,o=0;o<i.length;o++){var a=i[o],s=r[a];if(!s){s=r[a]=new hm(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var h=u.keyframes,c=h[h.length-1];l=c&&c.value,3===u.valType&&l&&(l=ti(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,Je(l),n),this._trackKeys.push(a)}s.addKeyframe(t,Je(e[a]),n)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,i=0;e>i;i++)t[i].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var i=0;i<e.length;i++)e[i].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,i=0;i<e.length;i++)t[e[i]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var r=i[n].getTrack(t);r&&(e=r)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,i=[],n=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var o=this._trackKeys[r],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(n,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var h=l[u-1];h&&(e._target[a.propName]=h.rawValue),a.setFinished()}else i.push(a)}if(i.length||this._force){var c=new qy({life:n,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var n=e._additiveAnimators;if(n){for(var r=!1,o=0;o<n.length;o++)if(n[o]._clip){r=!0;break}r||(e._additiveAnimators=null)}for(var o=0;o<i.length;o++)i[o].step(e._target,t);var a=e._onframeCbs;if(a)for(var o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&c.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return g(this._trackKeys,function(e){return t._tracks[e]})},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,r=0;r<t.length;r++){var o=i[t[r]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}for(var a=!0,r=0;r<n.length;r++)if(!i[n[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,i){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var r=e[n],o=this._tracks[r];if(o&&!o.isFinished()){var a=o.keyframes,s=a[i?0:a.length-1];s&&(t[r]=Je(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||_(t);for(var i=0;i<e.length;i++){var n=e[i],r=this._tracks[n];if(r){var o=r.keyframes;if(o.length>1){var a=o.pop();r.addKeyframe(a.time,t[n]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}(),pm=function(t){function i(e){var i=t.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,e=e||{},i.stage=e.stage||{},i}return e(i,t),i.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},i.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},i.prototype.removeClip=function(t){if(t.animation){var e=t.prev,i=t.next;e?e.next=i:this._head=i,i?i.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},i.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},i.prototype.update=function(t){for(var e=ri()-this._pausedTime,i=e-this._time,n=this._head;n;){var r=n.next;n.step(e,i)?(n.ondestroy(),this.removeClip(n),n=r):n=r}this._time=e,t||(this.trigger("frame",i),this.stage.update&&this.stage.update())},i.prototype._startLoop=function(){function t(){e._running&&(By(t),!e._paused&&e.update())}var e=this;this._running=!0,By(t)},i.prototype.start=function(){this._running||(this._time=ri(),this._pausedTime=0,this._startLoop())},i.prototype.stop=function(){this._running=!1},i.prototype.pause=function(){this._paused||(this._pauseStart=ri(),this._paused=!0)},i.prototype.resume=function(){this._paused&&(this._pausedTime+=ri()-this._pauseStart,this._paused=!1)},i.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},i.prototype.isFinished=function(){return null==this._head},i.prototype.animate=function(t,e){e=e||{},this.start();var i=new cm(t,e.loop);return this.addAnimator(i),i},i}(ty),fm=xv.domSupported,dm=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:t,touch:["touchstart","touchend","touchmove"],pointer:g(t,function(t){var i=t.replace("mouse","pointer");return e.hasOwnProperty(i)?i:t})}}(),gm={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},vm=!1,ym=function(){function t(t,e){this.stopPropagation=K,this.stopImmediatePropagation=K,this.preventDefault=K,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return t}(),mm={mousedown:function(t){t=At(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=At(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=At(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=At(this.dom,t),ui(this,t.toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){vm=!0,t=At(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){vm||(t=At(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=At(this.dom,t),si(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),mm.mousemove.call(this,t),mm.mousedown.call(this,t)},touchmove:function(t){t=At(this.dom,t),si(t),this.handler.processGesture(t,"change"),mm.mousemove.call(this,t)},touchend:function(t){t=At(this.dom,t),si(t),this.handler.processGesture(t,"end"),mm.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&mm.click.call(this,t)},pointerdown:function(t){mm.mousedown.call(this,t)},pointermove:function(t){oi(t)||mm.mousemove.call(this,t)},pointerup:function(t){mm.mouseup.call(this,t)},pointerout:function(t){oi(t)||mm.mouseout.call(this,t)}};d(["click","dblclick","contextmenu"],function(t){mm[t]=function(e){e=At(this.dom,e),this.trigger(t,e)}});var _m={pointermove:function(t){oi(t)||_m.mousemove.call(this,t)},pointerup:function(t){_m.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}},xm=function(){function t(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return t}(),wm=function(t){function i(e,i){var n=t.call(this)||this;return n.__pointerCapturing=!1,n.dom=e,n.painterRoot=i,n._localHandlerScope=new xm(e,mm),fm&&(n._globalHandlerScope=new xm(document,_m)),hi(n,n._localHandlerScope),n}return e(i,t),i.prototype.dispose=function(){fi(this._localHandlerScope),fm&&fi(this._globalHandlerScope)},i.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},i.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,fm&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?ci(this,e):fi(e)}},i}(ty),bm=1;xv.hasGlobalWindow&&(bm=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Sm=bm,Tm=.4,Mm="#333",Cm="#ccc",Im=Bt,km=5e-5,Am=[],Dm=[],Pm=Rt(),Om=Math.abs,Lm=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return di(this.rotation)||di(this.x)||di(this.y)||di(this.scaleX-1)||di(this.scaleY-1)||di(this.skewX)||di(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;return e||t?(i=i||Rt(),e?this.getLocalTransform(i):Im(i),t&&(e?zt(i,t,i):Nt(i,t)),this.transform=i,void this._resolveGlobalScaleRatio(i)):void(i&&Im(i))},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(Am);var i=Am[0]<0?-1:1,n=Am[1]<0?-1:1,r=((Am[0]-i)*e+i)/Am[0]||0,o=((Am[1]-n)*e+n)/Am[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Rt(),Vt(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),r=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=i,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(zt(Dm,t.invTransform,e),e=Dm);var i=this.originX,n=this.originY;(i||n)&&(Pm[4]=i,Pm[5]=n,zt(Dm,e,Pm),Dm[4]-=i,Dm[5]-=n,e=Dm),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&>(i,i,n),i},t.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&>(i,i,n),i},t.prototype.getLineScale=function(){var t=this.transform;return t&&Om(t[0]-1)>1e-10&&Om(t[3]-1)>1e-10?Math.sqrt(Om(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){gi(this,t)},t.getLocalTransform=function(t,e){e=e||[];var i=t.originX||0,n=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(i||n||a||s){var f=i+a,d=n+s;e[4]=-f*r-c*d*o,e[5]=-d*o-p*f*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=p*r,e[2]=c*o,l&&Yt(e,e,l),e[4]+=i+u,e[5]+=n+h,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),Em=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"],Rm={},Bm="__zr_normal__",Nm=Em.concat(["ignore"]),zm=v(Em,function(t,e){return t[e]=!0,t},{ignore:!1}),Fm={},Ym=new by(0,0,0,0),Hm=function(){function t(t){this.id=n(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=n?this:null;var l=!1;if(r.copyTransform(e),null!=i.position){var u=Ym;u.copy(i.layoutRect?i.layoutRect:this.getBoundingRect()),n||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Fm,i,u):Si(Fm,i,u),r.x=Fm.x,r.y=Fm.y,o=Fm.align,a=Fm.verticalAlign;var h=i.origin;if(h&&null!=i.rotation){var c=void 0,p=void 0;"center"===h?(c=.5*u.width,p=.5*u.height):(c=bi(h[0],u.width),p=bi(h[1],u.height)),l=!0,r.originX=-r.x+c+(n?0:u.x),r.originY=-r.y+p+(n?0:u.y)}}null!=i.rotation&&(r.rotation=i.rotation);var f=i.offset;f&&(r.x+=f[0],r.y+=f[1],l||(r.originX=-f[0],r.originY=-f[1]));var d=null==i.inside?"string"==typeof i.position&&i.position.indexOf("inside")>=0:i.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,y=void 0,m=void 0;d&&this.canBeInsideText()?(v=i.insideFill,y=i.insideStroke,(null==v||"auto"===v)&&(v=this.getInsideTextFill()),(null==y||"auto"===y)&&(y=this.getInsideTextStroke(v),m=!0)):(v=i.outsideFill,y=i.outsideStroke,(null==v||"auto"===v)&&(v=this.getOutsideFill()),(null==y||"auto"===y)&&(y=this.getOutsideStroke(v),m=!0)),v=v||"#000",(v!==g.fill||y!==g.stroke||m!==g.autoStroke||o!==g.align||a!==g.verticalAlign)&&(s=!0,g.fill=v,g.stroke=y,g.autoStroke=m,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=Oy,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Cm:Mm},t.prototype.getOutsideStroke=function(){var t=this.__zr&&this.__zr.getBackgroundColor(),e="string"==typeof t&&Oe(t);e||(e=[255,255,255,1]);for(var i=e[3],n=this.__zr.isDarkMode(),r=0;3>r;r++)e[r]=e[r]*i+(n?0:255)*(1-i);return e[3]=1,He(e,"rgba")},t.prototype.traverse=function(){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},l(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(I(t))for(var i=t,n=_(i),r=0;r<n.length;r++){var o=n[r];this.attrKV(o,t[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],r=n.__fromStateTransition;if(!(n.getLoop()||r&&r!==Bm)){var o=n.targetName,a=o?e[o]:e;n.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Nm)},t.prototype._savePrimaryToNormal=function(t,e,i){for(var n=0;n<i.length;n++){var r=i[n];null==t[r]||r in e||(e[r]=this[r])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(Bm,!1,t)},t.prototype.useState=function(t,e,i,n){var o=t===Bm;if(this.hasState()||!o){var a=this.currentStates,s=this.stateTransition;if(!(h(a,t)>=0)||!e&&1!==a.length){var l;if(this.stateProxy&&!o&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),!l&&!o)return void r("State "+t+" not exists.");o||this.saveCurrentToNormalState(l);var u=!!(l&&l.hoverLayer||n);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!i&&!this.__inHover&&s&&s.duration>0,s);var c=this._textContent,p=this._textGuide;return c&&c.useState(t,e,i,u),p&&p.useState(t,e,i,u),o?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Oy),l}}},t.prototype.useStates=function(t,e,i){if(t.length){var n=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;o>s;s++)if(t[s]!==r[s]){a=!1;break}if(a)return;for(var s=0;o>s;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&n.push(u)}var h=n[o-1],c=!!(h&&h.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(n),f=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(t.join(","),p,this._normalState,!1,!e&&!this.__inHover&&f&&f.duration>0,f);var d=this._textContent,g=this._textGuide;d&&d.useStates(t,e,c),g&&g.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Oy)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=h(this.currentStates,t);if(e>=0){var i=this.currentStates.slice();i.splice(e,1),this.useStates(i)}},t.prototype.replaceState=function(t,e,i){var n=this.currentStates.slice(),r=h(n,t),o=h(n,e)>=0;r>=0?o?n.splice(r,1):n[r]=e:i&&!o&&n.push(e),this.useStates(n)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,i={},n=0;n<t.length;n++){var r=t[n];l(i,r),r.textConfig&&(e=e||{},l(e,r.textConfig))}return e&&(i.textConfig=e),i},t.prototype._applyStateObj=function(t,e,i,n,r,o){var a=!(e&&n);e&&e.textConfig?(this.textConfig=l({},n?this.textConfig:i.textConfig),l(this.textConfig,e.textConfig)):a&&i.textConfig&&(this.textConfig=i.textConfig);for(var s={},u=!1,h=0;h<Nm.length;h++){var c=Nm[h],p=r&&zm[c];e&&null!=e[c]?p?(u=!0,s[c]=e[c]):this[c]=e[c]:a&&null!=i[c]&&(p?(u=!0,s[c]=i[c]):this[c]=i[c])}if(!r)for(var h=0;h<this.animators.length;h++){var f=this.animators[h],d=f.targetName;f.getLoop()||f.__changeFinalValue(d?(e||i)[d]:e||i)}u&&this._transitionState(t,s,o)},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new Lm,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),l(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=Oy;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,i=this._textGuide;e&&(e.__inHover=t),i&&(i.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.addAnimator(e[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.removeAnimator(e[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,i){var n=t?this[t]:this,r=new cm(n,e,i);return t&&(r.targetName=t),this.addAnimator(r,t),r},t.prototype.addAnimator=function(t,e){var i=this.__zr,n=this;t.during(function(){n.updateDuringAnimation(e)}).done(function(){var e=n.animators,i=h(e,t);i>=0&&e.splice(i,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},t.prototype.updateDuringAnimation=function(){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var i=this.animators,n=i.length,r=[],o=0;n>o;o++){var a=i[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},t.prototype.animateTo=function(t,e,i){Ti(this,t,e,i)},t.prototype.animateFrom=function(t,e,i){Ti(this,t,e,i,!0)},t.prototype._transitionState=function(t,e,i,n){for(var r=Ti(this,e,i,n),o=0;o<r.length;o++)r[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){function e(t,e,n,r){function o(t,e){Object.defineProperty(e,0,{get:function(){return t[n]},set:function(e){t[n]=e}}),Object.defineProperty(e,1,{get:function(){return t[r]},set:function(e){t[r]=e}})}Object.defineProperty(i,t,{get:function(){if(!this[e]){o(this,this[e]=[])}return this[e]},set:function(t){this[n]=t[0],this[r]=t[1],this[e]=t,o(this,t)}})}var i=t.prototype;i.type="element",i.name="",i.ignore=i.silent=i.isGroup=i.draggable=i.dragging=i.ignoreClip=i.__inHover=!1,i.__dirty=Oy,Object.defineProperty&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))}(),t}();p(Hm,ty),p(Hm,Lm);var Vm=function(t){function i(e){var i=t.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(e),i}return e(i,t),i.prototype.childrenRef=function(){return this._children},i.prototype.children=function(){return this._children.slice()},i.prototype.childAt=function(t){return this._children[t]},i.prototype.childOfName=function(t){for(var e=this._children,i=0;i<e.length;i++)if(e[i].name===t)return e[i]},i.prototype.childCount=function(){return this._children.length},i.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},i.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var i=this._children,n=i.indexOf(e);n>=0&&(i.splice(n,0,t),this._doAdd(t))}return this},i.prototype.replace=function(t,e){var i=h(this._children,t);return i>=0&&this.replaceAt(e,i),this},i.prototype.replaceAt=function(t,e){var i=this._children,n=i[e];if(t&&t!==this&&t.parent!==this&&t!==n){i[e]=t,n.parent=null;var r=this.__zr;r&&n.removeSelfFromZr(r),this._doAdd(t)}return this},i.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},i.prototype.remove=function(t){var e=this.__zr,i=this._children,n=h(i,t);return 0>n?this:(i.splice(n,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh(),this)},i.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,i=0;i<t.length;i++){var n=t[i];e&&n.removeSelfFromZr(e),n.parent=null}return t.length=0,this},i.prototype.eachChild=function(t,e){for(var i=this._children,n=0;n<i.length;n++){var r=i[n];t.call(e,r,n)}return this},i.prototype.traverse=function(t,e){for(var i=0;i<this._children.length;i++){var n=this._children[i],r=t.call(e,n);n.isGroup&&!r&&n.traverse(t,e)}return this},i.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++){this._children[i].addSelfToZr(e)}},i.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++){this._children[i].removeSelfFromZr(e)}},i.prototype.getBoundingRect=function(t){for(var e=new by(0,0,0,0),i=t||this._children,n=[],r=null,o=0;o<i.length;o++){var a=i[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(n);l?(by.applyTransform(e,s,l),r=r||e.clone(),r.union(e)):(r=r||s.clone(),r.union(s))}}return r||e},i}(Hm);Vm.prototype.type="group";var Wm={},Xm={},Um=function(){function t(t,e,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=e,this.id=t;var r=new Ry,o=i.renderer||"canvas";Wm[o]||(o=_(Wm)[0]),i.useDirtyRect=null!=i.useDirtyRect&&i.useDirtyRect;var a=new Wm[o](e,r,i,t),s=i.ssr||a.ssrOnly;this.storage=r,this.painter=a;var l,u=xv.node||xv.worker||s?null:new wm(a.getViewportRoot(),a.root),h=i.useCoarsePointer;(null==h||"auto"===h?xv.touchEventsSupported:!!h)&&(l=B(i.pointerSize,44)),this.handler=new ky(r,a,u,a.root,l),this.animation=new pm({stage:{update:s?null:function(){return n._flush(!0)}}}),s||this.animation.start()}return t.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},t.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=Oi(t)},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},t.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},t.prototype.flush=function(){this._flush(!1)},t.prototype._flush=function(t){var e,i=ri();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var n=ri();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-i})):this._sleepAfterStill>0&&++this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop()},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,i){return this.handler.on(t,e,i),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Vm&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},t.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,Pi(this.id)},t}(),jm=(Object.freeze||Object)({init:Li,dispose:Ei,disposeAll:Ri,getInstance:Bi,registerPainter:Ni,version:"5.4.1"}),Gm=1e-4,qm=20,Zm=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/,Km=("undefined"!=typeof console&&console.warn&&console.log,"series\0"),Qm="\0_ec_\0",$m=["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"],Jm=an(),t_={useDefault:!0,enableAll:!1,enableNone:!1},e_=".",i_="___EC__COMPONENT__CONTAINER___",n_="___EC__EXTENDED_CLASS___",r_=Math.round(10*Math.random()),o_=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],a_=Gn(o_),s_=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return a_(this,t,e)},t}(),l_=new Qy(50),u_=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,h_=function(){function t(){}return t}(),c_=function(){function t(t){this.tokens=[],t&&(this.tokens=t)}return t}(),p_=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return t}(),f_=v(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{}),d_="__zr_style_"+Math.round(10*Math.random()),g_={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},v_={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};g_[d_]=!0;var y_=["z","z2","invisible"],m_=["invisible"],__=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype._init=function(e){for(var i=_(e),n=0;n<i.length;n++){var r=i[n];"style"===r?this.useStyle(e[r]):t.prototype.attrKV.call(this,r,e[r])}this.style||this.useStyle({})},i.prototype.beforeBrush=function(){},i.prototype.afterBrush=function(){},i.prototype.innerBeforeBrush=function(){},i.prototype.innerAfterBrush=function(){},i.prototype.shouldBePainted=function(t,e,i,n){var r=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&lr(this,t,e)||r&&!r[0]&&!r[3])return!1;if(i&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(n&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},i.prototype.contain=function(t,e){return this.rectContain(t,e)},i.prototype.traverse=function(t,e){t.call(e,this)},i.prototype.rectContain=function(t,e){var i=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(i[0],i[1])},i.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,i=this.getBoundingRect(),n=this.style,r=n.shadowBlur||0,o=n.shadowOffsetX||0,a=n.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new by(0,0,0,0)),e?by.applyTransform(t,i,e):t.copy(i),(r||o||a)&&(t.width+=2*r+Math.abs(o),t.height+=2*r+Math.abs(a),t.x=Math.min(t.x,t.x+o-r),t.y=Math.min(t.y,t.y+a-r));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},i.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new by(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},i.prototype.getPrevPaintRect=function(){return this._prevPaintRect},i.prototype.animateStyle=function(t){return this.animate("style",t)},i.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},i.prototype.attrKV=function(e,i){"style"!==e?t.prototype.attrKV.call(this,e,i):this.style?this.setStyle(i):this.useStyle(i)},i.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:l(this.style,t),this.dirtyStyle(),this},i.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},i.prototype.dirty=function(){this.dirtyStyle()},i.prototype.styleChanged=function(){return!!(2&this.__dirty)},i.prototype.styleUpdated=function(){this.__dirty&=-3},i.prototype.createStyle=function(t){return G(g_,t)},i.prototype.useStyle=function(t){t[d_]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},i.prototype.isStyleObject=function(t){return t[d_]},i.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,i,y_)},i.prototype._applyStateObj=function(e,i,n,r,o,a){t.prototype._applyStateObj.call(this,e,i,n,r,o,a);var s,l=!(i&&r);if(i&&i.style?o?r?s=i.style:(s=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(s,i.style)):(s=this._mergeStyle(this.createStyle(),r?this.style:n.style),this._mergeStyle(s,i.style)):l&&(s=n.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var h=_(u),c=0;c<h.length;c++){var p=h[c];p in s&&(s[p]=s[p],this.style[p]=u[p])}for(var f=_(s),c=0;c<f.length;c++){var p=f[c];this.style[p]=this.style[p]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);for(var d=this.__inHover?m_:y_,c=0;c<d.length;c++){var p=d[c];i&&null!=i[p]?this[p]=i[p]:l&&null!=n[p]&&(this[p]=n[p])}},i.prototype._mergeStates=function(e){for(var i,n=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},i.prototype._mergeStyle=function(t,e){return l(t,e),t},i.prototype.getAnimationStyleProps=function(){return v_},i.initDefaultProps=function(){var t=i.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=2|Oy}(),i}(Hm),x_=new by(0,0,0,0),w_=new by(0,0,0,0),b_=Math.min,S_=Math.max,T_=Math.sin,M_=Math.cos,C_=2*Math.PI,I_=Q(),k_=Q(),A_=Q(),D_=[],P_=[],O_={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},L_=[],E_=[],R_=[],B_=[],N_=[],z_=[],F_=Math.min,Y_=Math.max,H_=Math.cos,V_=Math.sin,W_=Math.abs,X_=Math.PI,U_=2*X_,j_="undefined"!=typeof Float32Array,G_=[],q_=function(){function t(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 t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,i){(i=i||0)>0&&(this._ux=W_(i/Sm/t)||0,this._uy=W_(i/Sm/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(O_.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var i=W_(t-this._xi),n=W_(e-this._yi),r=i>this._ux||n>this._uy;if(this.addData(O_.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,i,n,r,o){return this._drawPendingPt(),this.addData(O_.C,t,e,i,n,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,i,n,r,o),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,i,n){return this._drawPendingPt(),this.addData(O_.Q,t,e,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,n),this._xi=i,this._yi=n,this},t.prototype.arc=function(t,e,i,n,r,o){this._drawPendingPt(),G_[0]=n,G_[1]=r,dr(G_,o),n=G_[0],r=G_[1];var a=r-n;return this.addData(O_.A,t,e,i,i,n,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,r,o),this._xi=H_(r)*i+t,this._yi=V_(r)*i+e,this},t.prototype.arcTo=function(t,e,i,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,n,r),this},t.prototype.rect=function(t,e,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,n),this.addData(O_.R,t,e,i,n),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(O_.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&t.closePath(),this._xi=e,this._yi=i,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!j_||(this.data=new Float32Array(e));for(var i=0;e>i;i++)this.data[i]=t[i];this._len=e},t.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,i=0,n=this._len,r=0;e>r;r++)i+=t[r].len();j_&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i));for(var r=0;e>r;r++)for(var o=t[r].data,a=0;a<o.length;a++)this.data[n++]=o[a];this._len=n},t.prototype.addData=function(){if(this._saveData){var t=this.data;this._len+arguments.length>t.length&&(this._expandData(),t=this.data);for(var e=0;e<arguments.length;e++)t[this._len++]=arguments[e]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,j_&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){R_[0]=R_[1]=N_[0]=N_[1]=Number.MAX_VALUE,B_[0]=B_[1]=z_[0]=z_[1]=-Number.MAX_VALUE;var t,e=this.data,i=0,n=0,r=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(i=e[t],n=e[t+1],r=i,o=n),a){case O_.M:i=r=e[t++],n=o=e[t++],N_[0]=r,N_[1]=o,z_[0]=r,z_[1]=o;break;case O_.L:ur(i,n,e[t],e[t+1],N_,z_),i=e[t++],n=e[t++];break;case O_.C:hr(i,n,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],N_,z_),i=e[t++],n=e[t++];break;case O_.Q:cr(i,n,e[t++],e[t++],e[t],e[t+1],N_,z_),i=e[t++],n=e[t++];break;case O_.A:var l=e[t++],u=e[t++],h=e[t++],c=e[t++],p=e[t++],f=e[t++]+p;t+=1;var d=!e[t++];s&&(r=H_(p)*h+l,o=V_(p)*c+u),pr(l,u,h,c,p,f,d,N_,z_),i=H_(f)*h+l,n=V_(f)*c+u;break;case O_.R:r=i=e[t++],o=n=e[t++];ur(r,o,r+e[t++],o+e[t++],N_,z_);break;case O_.Z:i=r,n=o}vt(R_,R_,N_),yt(B_,B_,z_)}return 0===t&&(R_[0]=R_[1]=B_[0]=B_[1]=0),new by(R_[0],R_[1],B_[0]-R_[0],B_[1]-R_[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,i=this._ux,n=this._uy,r=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,h=0,c=0;e>c;){var p=t[c++],f=1===c;f&&(r=t[c],o=t[c+1],a=r,s=o);var d=-1;switch(p){case O_.M:r=a=t[c++],o=s=t[c++];break;case O_.L:var g=t[c++],v=t[c++],y=g-r,m=v-o;(W_(y)>i||W_(m)>n||c===e-1)&&(d=Math.sqrt(y*y+m*m),r=g,o=v);break;case O_.C:var _=t[c++],x=t[c++],g=t[c++],v=t[c++],w=t[c++],b=t[c++];d=fe(r,o,_,x,g,v,w,b,10),r=w,o=b;break;case O_.Q:var _=t[c++],x=t[c++],g=t[c++],v=t[c++];d=xe(r,o,_,x,g,v,10),r=g,o=v;break;case O_.A:var S=t[c++],T=t[c++],M=t[c++],C=t[c++],I=t[c++],k=t[c++],A=k+I;c+=1,t[c++],f&&(a=H_(I)*M+S,s=V_(I)*C+T),d=Y_(M,C)*F_(U_,Math.abs(k)),r=H_(A)*M+S,o=V_(A)*C+T;break;case O_.R:a=r=t[c++],s=o=t[c++];d=2*t[c++]+2*t[c++];break;case O_.Z:var y=a-r,m=s-o;d=Math.sqrt(y*y+m*m),r=a,o=s}d>=0&&(l[h++]=d,u+=d)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var i,n,r,o,a,s,l,u,h,c,p,f=this.data,d=this._ux,g=this._uy,v=this._len,y=1>e,m=0,_=0,x=0;if(!y||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=this._pathLen,h=e*u))t:for(var w=0;v>w;){var b=f[w++],S=1===w;switch(S&&(r=f[w],o=f[w+1],i=r,n=o),b!==O_.L&&x>0&&(t.lineTo(c,p),x=0),b){case O_.M:i=r=f[w++],n=o=f[w++],t.moveTo(r,o);break;case O_.L:a=f[w++],s=f[w++];var T=W_(a-r),M=W_(s-o);if(T>d||M>g){if(y){var C=l[_++];if(m+C>h){var I=(h-m)/C;t.lineTo(r*(1-I)+a*I,o*(1-I)+s*I);break t}m+=C}t.lineTo(a,s),r=a,o=s,x=0}else{var k=T*T+M*M;k>x&&(c=a,p=s,x=k)}break;case O_.C:var A=f[w++],D=f[w++],P=f[w++],O=f[w++],L=f[w++],E=f[w++];if(y){var C=l[_++];if(m+C>h){var I=(h-m)/C;ce(r,A,P,L,I,L_),ce(o,D,O,E,I,E_),t.bezierCurveTo(L_[1],E_[1],L_[2],E_[2],L_[3],E_[3]);break t}m+=C}t.bezierCurveTo(A,D,P,O,L,E),r=L,o=E;break;case O_.Q:var A=f[w++],D=f[w++],P=f[w++],O=f[w++];if(y){var C=l[_++];if(m+C>h){var I=(h-m)/C;me(r,A,P,I,L_),me(o,D,O,I,E_),t.quadraticCurveTo(L_[1],E_[1],L_[2],E_[2]);break t}m+=C}t.quadraticCurveTo(A,D,P,O),r=P,o=O;break;case O_.A:var R=f[w++],B=f[w++],N=f[w++],z=f[w++],F=f[w++],Y=f[w++],H=f[w++],V=!f[w++],W=N>z?N:z,X=W_(N-z)>.001,U=F+Y,j=!1;if(y){var C=l[_++];m+C>h&&(U=F+Y*(h-m)/C,j=!0),m+=C}if(X&&t.ellipse?t.ellipse(R,B,N,z,H,F,U,V):t.arc(R,B,W,F,U,V),j)break t;S&&(i=H_(F)*N+R,n=V_(F)*z+B),r=H_(U)*N+R,o=V_(U)*z+B;break;case O_.R:i=r=f[w],n=o=f[w+1],a=f[w++],s=f[w++];var G=f[w++],q=f[w++];if(y){var C=l[_++];if(m+C>h){var Z=h-m;t.moveTo(a,s),t.lineTo(a+F_(Z,G),s),Z-=G,Z>0&&t.lineTo(a+G,s+F_(Z,q)),Z-=q,Z>0&&t.lineTo(a+Y_(G-Z,0),s+q),(Z-=G)>0&&t.lineTo(a,s+Y_(q-Z,0));break t}m+=C}t.rect(a,s,G,q);break;case O_.Z:if(y){var C=l[_++];if(m+C>h){var I=(h-m)/C;t.lineTo(r*(1-I)+i*I,o*(1-I)+n*I);break t}m+=C}t.closePath(),r=i,o=n}}},t.prototype.clone=function(){var e=new t,i=this.data;return e.data=i.slice?i.slice():Array.prototype.slice.call(i),e._len=this._len,e},t.CMD=O_,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),Z_=2*Math.PI,K_=2*Math.PI,Q_=q_.CMD,$_=2*Math.PI,J_=1e-4,tx=[-1,-1,-1],ex=[-1,-1],ix=u({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},g_),nx={style:u({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},v_.style)},rx=Em.concat(["invisible","culling","z","z2","zlevel","parent"]),ox=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype.update=function(){var e=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var r=this._decalEl=this._decalEl||new i;r.buildPath===i.prototype.buildPath&&(r.buildPath=function(t){e.buildPath(t,e.shape)}),r.silent=!0;var o=r.style;for(var a in n)o[a]!==n[a]&&(o[a]=n[a]);o.fill=n.fill?n.decal:null,o.decal=null,o.shadowColor=null,n.strokeFirst&&(o.stroke=null);for(var s=0;s<rx.length;++s)r[rx[s]]=this[rx[s]];r.__dirty|=Oy}else this._decalEl&&(this._decalEl=null)},i.prototype.getDecalElement=function(){return this._decalEl},i.prototype._init=function(e){var i=_(e);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var r=0;r<i.length;r++){var o=i[r],a=e[o];"style"===o?this.style?l(this.style,a):this.useStyle(a):"shape"===o?l(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},i.prototype.getDefaultStyle=function(){return null},i.prototype.getDefaultShape=function(){return{}},i.prototype.canBeInsideText=function(){return this.hasFill()},i.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(T(t)){var e=Ve(t,0);return e>.5?Mm:e>.2?"#eee":Cm}if(t)return Cm}return Mm},i.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(T(e)){var i=this.__zr;if(!(!i||!i.isDarkMode())===Ve(t,0)<Tm)return e}},i.prototype.buildPath=function(){},i.prototype.pathUpdated=function(){this.__dirty&=~Ly},i.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},i.prototype.createPathProxy=function(){this.path=new q_(!1)},i.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},i.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},i.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,i=!t;if(i){var n=!1;this.path||(n=!0,this.createPathProxy());var r=this.path;(n||this.__dirty&Ly)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||i){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},i.prototype.contain=function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect(),r=this.style;if(t=i[0],e=i[1],n.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),kr(o,a/s,t,e)))return!0}if(this.hasFill())return Ir(o,t,e)}return!1},i.prototype.dirtyShape=function(){this.__dirty|=Ly,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},i.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},i.prototype.animateShape=function(t){return this.animate("shape",t)},i.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},i.prototype.attrKV=function(e,i){"shape"===e?this.setShape(i):t.prototype.attrKV.call(this,e,i)},i.prototype.setShape=function(t,e){var i=this.shape;return i||(i=this.shape={}),"string"==typeof t?i[t]=e:l(i,t),this.dirtyShape(),this},i.prototype.shapeChanged=function(){return!!(this.__dirty&Ly)},i.prototype.createStyle=function(t){return G(ix,t)},i.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.shape&&!i.shape&&(i.shape=l({},this.shape))},i.prototype._applyStateObj=function(e,i,n,r,o,a){t.prototype._applyStateObj.call(this,e,i,n,r,o,a);var s,u=!(i&&r);if(i&&i.shape?o?r?s=i.shape:(s=l({},n.shape),l(s,i.shape)):(s=l({},r?this.shape:n.shape),l(s,i.shape)):u&&(s=n.shape),s)if(o){this.shape=l({},this.shape);for(var h={},c=_(s),p=0;p<c.length;p++){var f=c[p];"object"==typeof s[f]?this.shape[f]=s[f]:h[f]=s[f]}this._transitionState(e,{shape:h},a)}else this.shape=s,this.dirtyShape()},i.prototype._mergeStates=function(e){for(var i,n=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},i.prototype.getAnimationStyleProps=function(){return nx},i.prototype.isZeroArea=function(){return!1},i.extend=function(t){var n=function(i){function n(e){var n=i.call(this,e)||this;return t.init&&t.init.call(n,e),n}return e(n,i),n.prototype.getDefaultStyle=function(){return o(t.style)},n.prototype.getDefaultShape=function(){return o(t.shape)},n}(i);for(var r in t)"function"==typeof t[r]&&(n.prototype[r]=t[r]);return n},i.initDefaultProps=function(){var t=i.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=2|Oy|Ly}(),i}(__),ax=u({strokeFirst:!0,font:bv,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},ix),sx=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},i.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},i.prototype.createStyle=function(t){return G(ax,t)},i.prototype.setBoundingRect=function(t){this._rect=t},i.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var i=mi(e,t.font,t.textAlign,t.textBaseline);if(i.x+=t.x||0,i.y+=t.y||0,this.hasStroke()){var n=t.lineWidth;i.x-=n/2,i.y-=n/2,i.width+=n,i.height+=n}this._rect=i}return this._rect},i.initDefaultProps=function(){i.prototype.dirtyRectTolerance=10}(),i}(__);sx.prototype.type="tspan";var lx=u({x:0,y:0},g_),ux={style:u({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},v_.style)},hx=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i.prototype.createStyle=function(t){return G(lx,t)},i.prototype._getSize=function(t){var e=this.style,i=e[t];if(null!=i)return i;var n=Ar(e.image)?e.image:this.__image;if(!n)return 0;var r="width"===t?"height":"width",o=e[r];return null==o?n[t]:n[t]/n[r]*o},i.prototype.getWidth=function(){return this._getSize("width")},i.prototype.getHeight=function(){return this._getSize("height")},i.prototype.getAnimationStyleProps=function(){return ux},i.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new by(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},i}(__);hx.prototype.type="image";var cx=Math.round,px=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),fx={},dx=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype.getDefaultShape=function(){return new px},i.prototype.buildPath=function(t,e){var i,n,r,o;if(this.subPixelOptimize){var a=Or(fx,e,this.style);i=a.x,n=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else i=e.x,n=e.y,r=e.width,o=e.height;e.r?Dr(t,e):t.rect(i,n,r,o)},i.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},i}(ox);dx.prototype.type="rect";var gx={fill:"#000"},vx={style:u({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},v_.style)},yx=function(t){function i(e){var i=t.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=gx,i.attr(e),i}return e(i,t),i.prototype.childrenRef=function(){return this._children},i.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var i=this._children[e];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},i.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},i.prototype.getLocalTransform=function(e){var i=this.innerTransformable;return i?i.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},i.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},i.prototype._updateSubTexts=function(){this._childCursor=0,Nr(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},i.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=e},i.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},i.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new by(0,0,0,0),e=this._children,i=[],n=null,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),s=o.getLocalTransform(i);s?(t.copy(a),t.applyTransform(s),n=n||t.clone(),n.union(t)):(n=n||a.clone(),n.union(a))}this._rect=n||t}return this._rect},i.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||gx},i.prototype.setTextContent=function(){},i.prototype._mergeStyle=function(t,e){if(!e)return t;var i=e.rich,n=t.rich||i&&{};return l(t,e),i&&n?(this._mergeRich(n,i),t.rich=n):n&&(t.rich=n),t},i.prototype._mergeRich=function(t,e){for(var i=_(e),n=0;n<i.length;n++){var r=i[n];t[r]=t[r]||{},l(t[r],e[r])}},i.prototype.getAnimationStyleProps=function(){return vx},i.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},i.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||bv,i=t.padding,n=Vr(t),r=ir(n,t),o=Wr(t),a=!!t.backgroundColor,s=r.outerHeight,l=r.outerWidth,u=r.contentWidth,h=r.lines,c=r.lineHeight,p=this._defaultStyle,f=t.x||0,d=t.y||0,g=t.align||p.align||"left",v=t.verticalAlign||p.verticalAlign||"top",y=f,m=xi(d,r.contentHeight,v);if(o||i){var _=_i(f,l,g),x=xi(d,s,v);o&&this._renderBackground(t,t,_,x,l,s)}m+=c/2,i&&(y=Hr(f,g,i),"top"===v?m+=i[0]:"bottom"===v&&(m-=i[2]));for(var w=0,b=!1,S=(Yr("fill"in t?t.fill:(b=!0,p.fill))),T=(Fr("stroke"in t?t.stroke:a||p.autoStroke&&!b?null:(w=2,p.stroke))),M=t.textShadowBlur>0,C=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),I=r.calculatedLineHeight,k=0;k<h.length;k++){var A=this._getOrCreateChild(sx),D=A.createStyle();A.useStyle(D),D.text=h[k],D.x=y,D.y=m,g&&(D.textAlign=g),D.textBaseline="middle",D.opacity=t.opacity,D.strokeFirst=!0,M&&(D.shadowBlur=t.textShadowBlur||0,D.shadowColor=t.textShadowColor||"transparent",D.shadowOffsetX=t.textShadowOffsetX||0,D.shadowOffsetY=t.textShadowOffsetY||0),D.stroke=T,D.fill=S,T&&(D.lineWidth=t.lineWidth||w,D.lineDash=t.lineDash,D.lineDashOffset=t.lineDashOffset||0),D.font=e,Rr(D,t),m+=c,C&&A.setBoundingRect(new by(_i(D.x,t.width,D.textAlign),xi(D.y,I,D.textBaseline),u,I))}},i.prototype._updateRichTexts=function(){var t=this.style,e=Vr(t),i=nr(e,t),n=i.width,r=i.outerWidth,o=i.outerHeight,a=t.padding,s=t.x||0,l=t.y||0,u=this._defaultStyle,h=t.align||u.align,c=t.verticalAlign||u.verticalAlign,p=_i(s,r,h),f=xi(l,o,c),d=p,g=f;a&&(d+=a[3],g+=a[0]);var v=d+n;Wr(t)&&this._renderBackground(t,t,p,f,r,o);for(var y=!!t.backgroundColor,m=0;m<i.lines.length;m++){for(var _=i.lines[m],x=_.tokens,w=x.length,b=_.lineHeight,S=_.width,T=0,M=d,C=v,I=w-1,k=void 0;w>T&&(k=x[T],!k.align||"left"===k.align);)this._placeToken(k,t,b,g,M,"left",y),S-=k.width,M+=k.width,T++;for(;I>=0&&(k=x[I],"right"===k.align);)this._placeToken(k,t,b,g,C,"right",y),S-=k.width,C-=k.width,I--;for(M+=(n-(M-d)-(v-C)-S)/2;I>=T;)k=x[T],this._placeToken(k,t,b,g,M+k.width/2,"center",y),M+=k.width,T++;g+=b}},i.prototype._placeToken=function(t,e,i,n,r,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=n+i/2;"top"===l?u=n+t.height/2:"bottom"===l&&(u=n+i-t.height/2),!t.isLineHolder&&Wr(s)&&this._renderBackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,u-t.height/2,t.width,t.height);var h=!!s.backgroundColor,c=t.textPadding;c&&(r=Hr(r,o,c),u-=t.height/2-c[0]-t.innerHeight/2);var p=this._getOrCreateChild(sx),f=p.createStyle();p.useStyle(f);var d=this._defaultStyle,g=!1,v=0,y=Yr("fill"in s?s.fill:"fill"in e?e.fill:(g=!0,d.fill)),m=Fr("stroke"in s?s.stroke:"stroke"in e?e.stroke:h||a||d.autoStroke&&!g?null:(v=2,d.stroke)),_=s.textShadowBlur>0||e.textShadowBlur>0;f.text=t.text,f.x=r,f.y=u,_&&(f.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,f.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",f.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,f.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),f.textAlign=o,f.textBaseline="middle",f.font=t.font||bv,f.opacity=N(s.opacity,e.opacity,1),Rr(f,s),m&&(f.lineWidth=N(s.lineWidth,e.lineWidth,v),f.lineDash=B(s.lineDash,e.lineDash),f.lineDashOffset=e.lineDashOffset||0,f.stroke=m),y&&(f.fill=y);var x=t.contentWidth,w=t.contentHeight;p.setBoundingRect(new by(_i(f.x,x,f.textAlign),xi(f.y,w,f.textBaseline),x,w))},i.prototype._renderBackground=function(t,e,i,n,r,o){var a,s,l=t.backgroundColor,u=t.borderWidth,h=t.borderColor,c=l&&l.image,p=l&&!c,f=t.borderRadius,d=this;if(p||t.lineHeight||u&&h){a=this._getOrCreateChild(dx),a.useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=i,g.y=n,g.width=r,g.height=o,g.r=f,a.dirtyShape()}if(p){var v=a.style;v.fill=l||null,v.fillOpacity=B(t.fillOpacity,1)}else if(c){s=this._getOrCreateChild(hx),s.onload=function(){d.dirtyStyle()};var y=s.style;y.image=l.image,y.x=i,y.y=n,y.width=r,y.height=o}if(u&&h){var v=a.style;v.lineWidth=u,v.stroke=h,v.strokeOpacity=B(t.strokeOpacity,1),v.lineDash=t.borderDash,v.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(v.strokeFirst=!0,v.lineWidth*=2)}var m=(a||s).style;m.shadowBlur=t.shadowBlur||0,m.shadowColor=t.shadowColor||"transparent",m.shadowOffsetX=t.shadowOffsetX||0,m.shadowOffsetY=t.shadowOffsetY||0,m.opacity=N(t.opacity,e.opacity,1)},i.makeFont=function(t){var e="";return Br(t)&&(e=[t.fontStyle,t.fontWeight,Er(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&H(e)||t.textFont||t.font},i}(__),mx={left:!0,right:1,center:1},_x={top:1,bottom:1,middle:1},xx=["fontStyle","fontWeight","fontSize","fontFamily"],bx=Dn(),Sx=function(t,e,i,n){if(n){var r=bx(n);r.dataIndex=i,r.dataType=e,r.seriesIndex=t,"group"===n.type&&n.traverse(function(n){var r=bx(n);r.seriesIndex=t,r.dataIndex=i,r.dataType=e})}},Tx=1,Mx={},Cx=Dn(),Ix=Dn(),kx=0,Ax=1,Dx=2,Px=["emphasis","blur","select"],Ox=["normal","emphasis","blur","select"],Lx=10,Ex=9,Rx="highlight",Bx="downplay",Nx="select",zx="unselect",Fx="toggleSelect",Yx=new Qy(100),Hx=["emphasis","blur","select"],Vx={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"},Wx=q_.CMD,Xx=[[],[],[]],Ux=Math.sqrt,jx=Math.atan2,Gx=Math.sqrt,qx=Math.sin,Zx=Math.cos,Kx=Math.PI,Qx=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,$x=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,Jx=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i.prototype.applyTransform=function(){},i}(ox),tw=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),ew=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype.getDefaultShape=function(){return new tw},i.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},i}(ox);ew.prototype.type="circle";var iw=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),nw=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype.getDefaultShape=function(){return new iw},i.prototype.buildPath=function(t,e){var i=.5522848,n=e.cx,r=e.cy,o=e.rx,a=e.ry,s=o*i,l=a*i;t.moveTo(n-o,r),t.bezierCurveTo(n-o,r-l,n-s,r-a,n,r-a),t.bezierCurveTo(n+s,r-a,n+o,r-l,n+o,r),t.bezierCurveTo(n+o,r+l,n+s,r+a,n,r+a),t.bezierCurveTo(n-s,r+a,n-o,r+l,n-o,r),t.closePath()},i}(ox);nw.prototype.type="ellipse";var rw=Math.PI,ow=2*rw,aw=Math.sin,sw=Math.cos,lw=Math.acos,uw=Math.atan2,hw=Math.abs,cw=Math.sqrt,pw=Math.max,fw=Math.min,dw=1e-4,gw=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}return t}(),vw=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype.getDefaultShape=function(){return new gw},i.prototype.buildPath=function(t,e){Jo(t,e)},i.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},i}(ox);vw.prototype.type="sector";var yw=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),mw=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype.getDefaultShape=function(){return new yw},i.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,r=2*Math.PI;t.moveTo(i+e.r,n),t.arc(i,n,e.r,0,r,!1),t.moveTo(i+e.r0,n),t.arc(i,n,e.r0,0,r,!0)},i}(ox);mw.prototype.type="ring";var _w=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),xw=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype.getDefaultShape=function(){return new _w},i.prototype.buildPath=function(t,e){ea(t,e,!0)},i}(ox);xw.prototype.type="polygon";var ww=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),bw=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new ww},i.prototype.buildPath=function(t,e){ea(t,e,!1)},i}(ox);bw.prototype.type="polyline";var Sw={},Tw=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),Mw=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new Tw},i.prototype.buildPath=function(t,e){var i,n,r,o;if(this.subPixelOptimize){var a=Pr(Sw,e,this.style);i=a.x1,n=a.y1,r=a.x2,o=a.y2}else i=e.x1,n=e.y1,r=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(i,n),1>s&&(r=i*(1-s)+r*s,o=n*(1-s)+o*s),t.lineTo(r,o))},i.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},i}(ox);Mw.prototype.type="line";var Cw=[],Iw=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}(),kw=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new Iw},i.prototype.buildPath=function(t,e){var i=e.x1,n=e.y1,r=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,h=e.percent;0!==h&&(t.moveTo(i,n),null==l||null==u?(1>h&&(me(i,a,r,h,Cw),a=Cw[1],r=Cw[2],me(n,s,o,h,Cw),s=Cw[1],o=Cw[2]),t.quadraticCurveTo(a,s,r,o)):(1>h&&(ce(i,a,l,r,h,Cw),a=Cw[1],l=Cw[2],r=Cw[3],ce(n,s,u,o,h,Cw),s=Cw[1],u=Cw[2],o=Cw[3]),t.bezierCurveTo(a,s,l,u,r,o)))},i.prototype.pointAt=function(t){return ia(this.shape,t,!1)},i.prototype.tangentAt=function(t){var e=ia(this.shape,t,!0);return ht(e,e)},i}(ox);kw.prototype.type="bezier-curve";var Aw=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),Dw=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new Aw},i.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*r+i,u*r+n),t.arc(i,n,r,o,a,!s)},i}(ox);Dw.prototype.type="arc";var Pw=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return e(i,t),i.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),i=0;i<t.length;i++)e=e||t[i].shapeChanged();e&&this.dirtyShape()},i.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),i=0;i<t.length;i++)t[i].path||t[i].createPathProxy(),t[i].path.setScale(e[0],e[1],t[i].segmentIgnoreThreshold)},i.prototype.buildPath=function(t,e){for(var i=e.paths||[],n=0;n<i.length;n++)i[n].buildPath(t,i[n].shape,!0)},i.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},i.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ox.prototype.getBoundingRect.call(this)},i}(ox),Ow=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}(),Lw=function(t){function i(e,i,n,r,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==i?0:i,s.x2=null==n?1:n,s.y2=null==r?0:r,s.type="linear",s.global=a||!1,s}return e(i,t),i}(Ow),Ew=function(t){function i(e,i,n,r,o){var a=t.call(this,r)||this;return a.x=null==e?.5:e,a.y=null==i?.5:i,a.r=null==n?.5:n,a.type="radial",a.global=o||!1,a}return e(i,t),i}(Ow),Rw=[0,0],Bw=[0,0],Nw=new fy,zw=new fy,Fw=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;4>i;i++)this._corners[i]=new fy;for(var i=0;2>i;i++)this._axes[i]=new fy;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var i=this._corners,n=this._axes,r=t.x,o=t.y,a=r+t.width,s=o+t.height;if(i[0].set(r,o),i[1].set(a,o),i[2].set(a,s),i[3].set(r,s),e)for(var l=0;4>l;l++)i[l].transform(e);fy.sub(n[0],i[1],i[0]),fy.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var l=0;2>l;l++)this._origin[l]=n[l].dot(i[0])},t.prototype.intersect=function(t,e){var i=!0,n=!e;return Nw.set(1/0,1/0),zw.set(0,0),!this._intersectCheckOneSide(this,t,Nw,zw,n,1)&&(i=!1,n)?i:!this._intersectCheckOneSide(t,this,Nw,zw,n,-1)&&(i=!1,n)?i:(n||fy.copy(e,i?Nw:zw),i)},t.prototype._intersectCheckOneSide=function(t,e,i,n,r,o){for(var a=!0,s=0;2>s;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,Rw),this._getProjMinMaxOnAxis(s,e._corners,Bw),Rw[1]<Bw[0]||Rw[0]>Bw[1]){if(a=!1,r)return a;var u=Math.abs(Bw[0]-Rw[1]),h=Math.abs(Rw[0]-Bw[1]);Math.min(u,h)>n.len()&&(h>u?fy.scale(n,l,-u*o):fy.scale(n,l,h*o))}else if(i){var u=Math.abs(Bw[0]-Rw[1]),h=Math.abs(Rw[0]-Bw[1]);Math.min(u,h)<i.len()&&(h>u?fy.scale(i,l,u*o):fy.scale(i,l,-h*o))}}return a},t.prototype._getProjMinMaxOnAxis=function(t,e,i){for(var n=this._axes[t],r=this._origin,o=e[0].dot(n)+r[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(n)+r[t];a=Math.min(u,a),s=Math.max(u,s)}i[0]=a,i[1]=s},t}(),Yw=[],Hw=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return e(i,t),i.prototype.traverse=function(t,e){t.call(e,this)},i.prototype.useStyle=function(){this.style={}},i.prototype.getCursor=function(){return this._cursor},i.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},i.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},i.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},i.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},i.prototype.addDisplayables=function(t,e){e=e||!1;for(var i=0;i<t.length;i++)this.addDisplayable(t[i],e)},i.prototype.getDisplayables=function(){return this._displayables},i.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},i.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(var e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},i.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var e=this._displayables[t];e.parent=this,e.update(),e.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var e=this._temporaryDisplayables[t];e.parent=this,e.update(),e.parent=null}},i.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new by(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var i=this._displayables[e],n=i.getBoundingRect().clone();i.needLocalTransform()&&n.applyTransform(i.getLocalTransform(Yw)),t.union(n)}this._rect=t}return this._rect},i.prototype.contain=function(t,e){var i=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(i[0],i[1]))for(var n=0;n<this._displayables.length;n++){var r=this._displayables[n];if(r.contain(t,e))return!0}return!1},i}(__),Vw=Dn(),Ww=Math.max,Xw=Math.min,Uw={},jw=qo,Gw=Zo,qw=Lr;da("circle",ew),da("ellipse",nw),da("sector",vw),da("ring",mw),da("polygon",xw),da("polyline",bw),da("rect",dx),da("line",Mw),da("bezierCurve",kw),da("arc",Dw);var Zw=(Object.freeze||Object)({updateProps:oa,initProps:aa,removeElement:la,removeElementWithFadeOut:ha,isElementRemoved:sa,extendShape:pa,extendPath:fa,registerShape:da,getShapeClass:ga,makePath:va,makeImage:ya,mergePath:Gw,resizePath:_a,subPixelOptimizeLine:xa,subPixelOptimizeRect:wa,subPixelOptimize:qw,getTransform:ba,applyTransform:Sa,transformDirection:Ta,groupTransition:Ia,clipPointsByRect:ka,clipRectByRect:Aa,createIcon:Da,linePolygonIntersect:Pa,lineLineIntersect:Oa,setTooltipConfig:Ra,traverseElements:Na,Group:Vm,Image:hx,Text:yx,Circle:ew,Ellipse:nw,Sector:vw,Ring:mw,Polygon:xw,Polyline:bw,Rect:dx,Line:Mw,BezierCurve:kw,Arc:Dw,IncrementalDisplayable:Hw,CompoundPath:Pw,LinearGradient:Lw,RadialGradient:Ew,BoundingRect:by,OrientedBoundingRect:Fw,Point:fy,Path:ox}),Kw={},Qw=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],$w=["align","lineHeight","width","height","tag","verticalAlign"],Jw=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],tb=Dn(),eb=["textStyle","color"],ib=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],nb=new yx,rb=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(eb):null)},t.prototype.getFont=function(){return Ga({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<ib.length;i++)e[ib[i]]=this.getShallow(ib[i]);return nb.useStyle(e),nb.update(),nb.getBoundingRect()},t}(),ob=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],ab=Gn(ob),sb=function(){function t(){}return t.prototype.getLineStyle=function(t){return ab(this,t)},t}(),lb=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],ub=Gn(lb),hb=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return ub(this,t,e)},t}(),cb=function(){function t(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}return t.prototype.init=function(){for(var t=[],e=3;e<arguments.length;e++)t[e-3]=arguments[e]},t.prototype.mergeOption=function(t){a(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var i=this.option,n=null==i?i:i[t];if(null==n&&!e){var r=this.parentModel;r&&(n=r.getShallow(t))}return n},t.prototype.getModel=function(e,i){var n=null!=e,r=n?this.parsePath(e):null,o=n?this._doGet(r):this.option;return i=i||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),new t(o,i,this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new(0,this.constructor)(o(this.option))},t.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!xv.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var i=this.option;if(!t)return i;for(var n=0;n<t.length&&(!t[n]||null!=(i=i&&"object"==typeof i?i[t[n]]:null));n++);return null==i&&e&&(i=e._doGet(this.resolveParentPath(t),e.parentModel)),i},t}();Hn(cb),function(t){var e=["__\0is_clz",r_++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}(cb),p(cb,sb),p(cb,hb),p(cb,s_),p(cb,rb);var pb=Math.round(10*Math.random()),fb={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:". "}}}},db={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},gb="ZH",vb="EN",yb=vb,mb={},_b={},xb=xv.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf(gb)>-1?gb:yb}():yb;Ka(vb,fb),Ka(gb,db);var wb=1e3,bb=60*wb,Sb=60*bb,Tb=24*Sb,Mb=365*Tb,Cb={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}"},Ib="{yyyy}-{MM}-{dd}",kb={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ib,hour:Ib+" "+Cb.hour,minute:Ib+" "+Cb.minute,second:Ib+" "+Cb.second,millisecond:Cb.none},Ab=["year","month","day","hour","minute","second","millisecond"],Db=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"],Pb=F,Ob=["a","b","c","d","e","f","g"],Lb=function(t,e){return"{"+t+(null==e?"":e)+"}"},Eb=d,Rb=["left","right","top","bottom","width","height"],Bb=[["width","left","right"],["height","top","bottom"]],Nb=(w(Ps,"vertical"),w(Ps,"horizontal"),Dn()),zb=function(t){function i(e,i,n){var r=t.call(this,e,i,n)||this;return r.uid=Za("ec_cpt_model"),r}return e(i,t),i.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i)},i.prototype.mergeDefaultAndTheme=function(t,e){var i=Ls(this),n=i?Rs(t):{};a(t,e.getTheme().get(this.mainType)),a(t,this.getDefaultOption()),i&&Es(t,n,i)},i.prototype.mergeOption=function(t){a(this.option,t,!0);var e=Ls(this);e&&Es(this.option,t,e)},i.prototype.optionUpdated=function(){},i.prototype.getDefaultOption=function(){var t=this.constructor;if(!Yn(t))return t.defaultOption;var e=Nb(this);if(!e.defaultOption){for(var i=[],n=t;n;){var r=n.prototype.defaultOption;r&&i.push(r),n=n.superClass}for(var o={},s=i.length-1;s>=0;s--)o=a(o,i[s],!0);e.defaultOption=o}return e.defaultOption},i.prototype.getReferringComponents=function(t,e){var i=t+"Index",n=t+"Id";return Ln(this.ecModel,t,{index:this.get(i,!0),id:this.get(n,!0)},e)},i.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},i.prototype.getZLevelKey=function(){return""},i.prototype.setZLevel=function(t){this.option.zlevel=t},i.protoInitialize=function(){var t=i.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),i}(cb);Wn(zb,cb),jn(zb),function(t){var e={};t.registerSubTypeDefaulter=function(t,i){var n=zn(t);e[n.main]=i},t.determineSubType=function(i,n){var r=n.type;if(!r){var o=zn(i).main;t.hasSubTypes(i)&&e[o]&&(r=e[o](n))}return r}}(zb),function(t,e){function i(t){var i={},o=[];return d(t,function(a){var s=n(i,a),l=s.originalDeps=e(a),u=r(l,t);s.entryCount=u.length,0===s.entryCount&&o.push(a),d(u,function(t){h(s.predecessor,t)<0&&s.predecessor.push(t);var e=n(i,t);h(e.successor,t)<0&&e.successor.push(a)})}),{graph:i,noEntryList:o}}function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function r(t,e){var i=[];return d(t,function(t){h(e,t)>=0&&i.push(t)}),i}t.topologicalTravel=function(t,e,n,r){function o(t){0===--l[t].entryCount&&u.push(t)}function a(t){h[t]=!0,o(t)}if(t.length){var s=i(e),l=s.graph,u=s.noEntryList,h={};for(d(t,function(t){h[t]=!0});u.length;){var c=u.pop(),p=l[c],f=!!h[c];f&&(n.call(r,c,p.originalDeps.slice()),delete h[c]),d(p.successor,f?a:o)}d(h,function(){throw new Error("")})}}}(zb,Ns);var Fb="";"undefined"!=typeof navigator&&(Fb=navigator.platform||"");var Yb,Hb,Vb="rgba(0, 0, 0, 0.2)",Wb={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Vb,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Vb,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Vb,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Vb,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Vb,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Vb,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Fb.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},Xb=U(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Ub="original",jb="arrayRows",Gb="objectRows",qb="keyedColumns",Zb="typedArray",Kb="unknown",Qb="column",$b="row",Jb={Must:1,Might:2,Not:3},tS=Dn(),eS=U(),iS=Dn(),nS=(Dn(),function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,i){var n=cn(this.get("color",!0)),r=this.get("colorLayer",!0);return js(this,iS,n,r,t,e,i)},t.prototype.clearColorPalette=function(){Gs(this,iS)},t}()),rS="\0_ec_inner",oS=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i.prototype.init=function(t,e,i,n,r,o){n=n||{},this.option=null,this._theme=new cb(n),this._locale=new cb(r),this._optionManager=o},i.prototype.setOption=function(t,e,i){var n=$s(e);this._optionManager.setOption(t,i,n),this._resetOption(null,n)},i.prototype.resetOption=function(t,e){return this._resetOption(t,$s(e))},i.prototype._resetOption=function(t,e){var i=!1,n=this._optionManager;if(!t||"recreate"===t){var r=n.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):Hb(this,r),i=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=n.getTimelineOption(this);o&&(i=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=n.getMediaOption(this);a.length&&d(a,function(t){i=!0,this._mergeOption(t,e)},this)}return i},i.prototype.mergeOption=function(t){this._mergeOption(t,null)},i.prototype._mergeOption=function(t,e){function i(e){var i=Xs(this,e,cn(t[e])),o=r.get(e),a=o?c&&c.get(e)?"replaceMerge":"normalMerge":"replaceAll",u=gn(o,i,a);In(u,e,zb),n[e]=null,r.set(e,null),s.set(e,0);var h,p=[],f=[],g=0;d(u,function(t,i){var n=t.existing,r=t.newOption;if(r){var o="series"===e,a=zb.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(h)return;h=!0}if(n&&n.constructor===a)n.name=t.keyInfo.name,n.mergeOption(r,this),n.optionUpdated(r,!1);else{var s=l({componentIndex:i},t.keyInfo);n=new a(r,this,this,s),l(n,s),t.brandNew&&(n.__requireNewView=!0),n.init(r,this,this),n.optionUpdated(null,!0)}}else n&&(n.mergeOption({},this),n.optionUpdated({},!1));n?(p.push(n.option),f.push(n),g++):(p.push(void 0),f.push(void 0))},this),n[e]=p,r.set(e,f),s.set(e,g),"series"===e&&Yb(this)}var n=this.option,r=this._componentsMap,s=this._componentsCount,u=[],h=U(),c=e&&e.replaceMergeMainTypeMap;zs(this),d(t,function(t,e){null!=t&&(zb.hasClass(e)?e&&(u.push(e),h.set(e,!0)):n[e]=null==n[e]?o(t):a(n[e],t,!0))}),c&&c.each(function(t,e){zb.hasClass(e)&&!h.get(e)&&(u.push(e),h.set(e,!0))}),zb.topologicalTravel(u,zb.getAllClassMainTypes(),i,this),this._seriesIndices||Yb(this)},i.prototype.getOption=function(){var t=o(this.option);return d(t,function(e,i){if(zb.hasClass(i)){for(var n=cn(e),r=n.length,o=!1,a=r-1;a>=0;a--)n[a]&&!Cn(n[a])?o=!0:(n[a]=null,!o&&r--);n.length=r,t[i]=n}}),delete t[rS],t},i.prototype.getTheme=function(){return this._theme},i.prototype.getLocaleModel=function(){return this._locale},i.prototype.setUpdatePayload=function(t){this._payload=t},i.prototype.getUpdatePayload=function(){return this._payload},i.prototype.getComponent=function(t,e){var i=this._componentsMap.get(t);if(i){var n=i[e||0];if(n)return n;if(null==e)for(var r=0;r<i.length;r++)if(i[r])return i[r]}},i.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var i=t.index,n=t.id,r=t.name,o=this._componentsMap.get(e);if(!o||!o.length)return[];var a;return null!=i?(a=[],d(cn(i),function(t){o[t]&&a.push(o[t])})):a=null!=n?Ks("id",n,o):null!=r?Ks("name",r,o):y(o,function(t){return!!t}),Qs(a,t)},i.prototype.findComponents=function(t){var e=t.query,i=t.mainType,n=function(t){var e=i+"Index",n=i+"Id",r=i+"Name";return!t||null==t[e]&&null==t[n]&&null==t[r]?null:{mainType:i,index:t[e],id:t[n],name:t[r]}}(e),r=n?this.queryComponents(n):y(this._componentsMap.get(i),function(t){return!!t});return function(e){return t.filter?y(e,t.filter):e}(Qs(r,t))},i.prototype.eachComponent=function(t,e,i){var n=this._componentsMap;if(S(t)){var r=e,o=t;n.each(function(t,e){for(var i=0;t&&i<t.length;i++){var n=t[i];n&&o.call(r,e,n,n.componentIndex)}})}else for(var a=T(t)?n.get(t):I(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(i,l,l.componentIndex)}},i.prototype.getSeriesByName=function(t){var e=Tn(t,null);return y(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},i.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},i.prototype.getSeriesByType=function(t){return y(this._componentsMap.get("series"),function(e){return!!e&&e.subType===t})},i.prototype.getSeries=function(){return y(this._componentsMap.get("series"),function(t){return!!t})},i.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},i.prototype.eachSeries=function(t,e){d(this._seriesIndices,function(i){var n=this._componentsMap.get("series")[i];t.call(e,n,i)},this)},i.prototype.eachRawSeries=function(t,e){d(this._componentsMap.get("series"),function(i){i&&t.call(e,i,i.componentIndex)})},i.prototype.eachSeriesByType=function(t,e,i){d(this._seriesIndices,function(n){var r=this._componentsMap.get("series")[n];r.subType===t&&e.call(i,r,n)},this)},i.prototype.eachRawSeriesByType=function(t,e,i){return d(this.getSeriesByType(t),e,i)},i.prototype.isSeriesFiltered=function(t){return null==this._seriesIndicesMap.get(t.componentIndex)},i.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},i.prototype.filterSeries=function(t,e){var i=[];d(this._seriesIndices,function(n){var r=this._componentsMap.get("series")[n];t.call(e,r,n)&&i.push(n)},this),this._seriesIndices=i,this._seriesIndicesMap=U(i)},i.prototype.restoreData=function(t){Yb(this);var e=this._componentsMap,i=[];e.each(function(t,e){zb.hasClass(e)&&i.push(e)}),zb.topologicalTravel(i,zb.getAllClassMainTypes(),function(i){d(e.get(i),function(e){!e||"series"===i&&qs(e,t)||e.restoreData()})})},i.internalField=function(){Yb=function(t){var e=t._seriesIndices=[];d(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=U(e)},Hb=function(t,e){t.option={},t.option[rS]=1,t._componentsMap=U({series:[]}),t._componentsCount=U();var i=e.aria;I(i)&&null==i.enabled&&(i.enabled=!0),Zs(e,t._theme.option),a(e,Wb,!1),t._mergeOption(e,null)}}(),i}(cb);p(oS,nS);var aS,sS,lS,uS,hS,cS,pS=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],fS=function(){function t(t){d(pS,function(e){this[e]=Yv(t[e],t)},this)}return t}(),dS={},gS=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var i=[];d(dS,function(n){var r=n.create(t,e);i=i.concat(r||[])}),this._coordinateSystems=i},t.prototype.update=function(t,e){d(this._coordinateSystems,function(i){i.update&&i.update(t,e)})},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){dS[t]=e},t.get=function(t){return dS[t]},t}(),vS=/^(min|max)?(.+)$/,yS=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e){t&&(d(cn(t.series),function(t){t&&t.data&&A(t.data)&&V(t.data)}),d(cn(t.dataset),function(t){t&&t.source&&A(t.source)&&V(t.source)})),t=o(t);var i=this._optionBackup,n=Js(t,e,!i);this._newBaseOption=n.baseOption,i?(n.timelineOptions.length&&(i.timelineOptions=n.timelineOptions),n.mediaList.length&&(i.mediaList=n.mediaList),n.mediaDefault&&(i.mediaDefault=n.mediaDefault)):this._optionBackup=n},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],o(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(e=o(i[n.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(){var t=this._api.getWidth(),e=this._api.getHeight(),i=this._mediaList,n=this._mediaDefault,r=[],a=[];if(!i.length&&!n)return a;for(var s=0,l=i.length;l>s;s++)tl(i[s].query,t,e)&&r.push(s);return!r.length&&n&&(r=[-1]),r.length&&!il(r,this._currentMediaIndices)&&(a=g(r,function(t){return o(-1===t?n.option:i[t].option)})),this._currentMediaIndices=r,a},t}(),mS=d,_S=I,xS=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"],wS=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],bS=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],SS=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]],TS=function(){function t(t){this.data=t.data||(t.sourceFormat===qb?{}:[]),this.sourceFormat=t.sourceFormat||Kb,this.seriesLayoutBy=t.seriesLayoutBy||Qb,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var i=0;i<e.length;i++){var n=e[i];null==n.type&&Vs(this,i)===Jb.Must&&(n.type="ordinal")}}return t}(),MS=function(){function t(t,e){var i=Sl(t)?t:Ml(t);this._source=i;var n=this._data=i.data;i.sourceFormat===Zb&&(this._offset=0,this._dimSize=e,this._data=n),hS(this,n,i)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(){},t.prototype.appendData=function(){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){function t(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}var e;hS=function(t,e,o){var a=o.sourceFormat,s=o.seriesLayoutBy,u=o.startIndex,h=o.dimensionsDefine;if(l(t,uS[Bl(a,s)]),a===Zb)t.getItem=i,t.count=r,t.fillStorage=n;else{var c=Ll(a,s);t.getItem=Yv(c,null,e,u,h);var p=El(a,s);t.count=Yv(p,null,e,u,h)}};var i=function(t,e){t-=this._offset,e=e||[];for(var i=this._data,n=this._dimSize,r=n*t,o=0;n>o;o++)e[o]=i[r+o];return e},n=function(t,e,i,n){for(var r=this._data,o=this._dimSize,a=0;o>a;a++){for(var s=n[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],h=e-t,c=i[a],p=0;h>p;p++){var f=r[p*o+a];c[t+p]=f,l>f&&(l=f),f>u&&(u=f)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};e={},e[jb+"_"+Qb]={pure:!0,appendData:t},e[jb+"_"+$b]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Gb]={pure:!0,appendData:t},e[qb]={pure:!0,appendData:function(t){var e=this._data;d(t,function(t,i){for(var n=e[i]||(e[i]=[]),r=0;r<(t||[]).length;r++)n.push(t[r])})}},e[Ub]={appendData:t},e[Zb]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},uS=e}(),t}(),CS=function(t,e,i,n){return t[n]},IS=(aS={},aS[jb+"_"+Qb]=function(t,e,i,n){return t[n+e]},aS[jb+"_"+$b]=function(t,e,i,n,r){n+=e;for(var o=r||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[n]:null}return o},aS[Gb]=CS,aS[qb]=function(t,e,i,n,r){for(var o=r||[],a=0;a<i.length;a++){var s=i[a].name,l=t[s];o[a]=l?l[n]:null}return o},aS[Ub]=CS,aS),kS=function(t){return t.length},AS=(sS={},sS[jb+"_"+Qb]=function(t,e){return Math.max(0,t.length-e)},sS[jb+"_"+$b]=function(t,e){var i=t[0];return i?Math.max(0,i.length-e):0},sS[Gb]=kS,sS[qb]=function(t,e,i){var n=i[0].name,r=t[n];return r?r.length:0},sS[Ub]=kS,sS),DS=function(t,e){return t[e]},PS=(lS={},lS[jb]=DS,lS[Gb]=function(t,e,i){return t[i]},lS[qb]=DS,lS[Ub]=function(t,e){var i=fn(t);return i instanceof Array?i[e]:i},lS[Zb]=DS,lS),OS=/\{@(.+?)\}/g,LS=function(){function t(){}return t.prototype.getDataParams=function(t,e){var i=this.getData(e),n=this.getRawValue(t,e),r=i.getRawIndex(t),o=i.getName(t),a=i.getRawDataItem(t),s=i.getItemVisual(t,"style"),l=s&&s[i.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,h=this.mainType,c="series"===h,p=i.userOutput&&i.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:c?this.subType:null,seriesIndex:this.seriesIndex,seriesId:c?this.id:null,seriesName:c?this.name:null,name:o,dataIndex:r,data:a,dataType:e,value:n,color:l,borderColor:u,dimensionNames:p?p.fullDimensions:null,encode:p?p.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,i,n,r,o){e=e||"normal";var a=this.getData(i),s=this.getDataParams(t,i);if(o&&(s.value=o.interpolatedValue),null!=n&&b(s.value)&&(s.value=s.value[n]),!r){r=a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"])}if(S(r))return s.status=e,s.dimensionIndex=n,r(s);if(T(r)){return Cs(r,s).replace(OS,function(e,i){var n=i.length,r=i;"["===r.charAt(0)&&"]"===r.charAt(n-1)&&(r=+r.slice(1,n-1));var s=Nl(a,t,r);if(o&&b(o.interpolatedValue)){var l=a.getDimensionIndex(r);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""})}},t.prototype.getRawValue=function(t,e){return Nl(this.getData(e),t)},t.prototype.formatTooltip=function(){},t}(),ES=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){function e(t){return!(t>=1)&&(t=1),t}var i=this._upstream,n=t&&t.skip;if(this._dirty&&i){var r=this.context;r.data=r.outputData=i.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!n&&(o=this._plan(this.context));var a=e(this._modBy),s=this._modDataCount||0,l=e(t&&t.modBy),u=t&&t.modDataCount||0;(a!==l||s!==u)&&(o="reset");var h;(this._dirty||"reset"===o)&&(this._dirty=!1,h=this._doReset(n)),this._modBy=l,this._modDataCount=u;var c=t&&t.step;if(this._dueEnd=i?i._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,f=Math.min(null!=c?this._dueIndex+c:1/0,this._dueEnd);if(!n&&(h||f>p)){var d=this._progress;if(b(d))for(var g=0;g<d.length;g++)this._doProgress(d[g],p,f,l,u);else this._doProgress(d,p,f,l,u)}this._dueIndex=f;var v=null!=this._settedOutputEnd?this._settedOutputEnd:f;this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,i,n,r){RS.reset(e,i,n,r),this._callingProgress=t,this._callingProgress({start:e,end:i,count:i-e,next:RS.next},this.context)},t.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,i;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(i=e.forceFirstProgress,e=e.progress),b(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),i},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),RS=function(){function t(){return i>n?n++:null}function e(){var t=n%a*r+Math.ceil(n/a),e=n>=i?null:o>t?t:n;return n++,e}var i,n,r,o,a,s={reset:function(l,u,h,c){n=l,i=u,r=h,o=c,a=Math.ceil(o/r),s.next=r>1&&o>0?e:t}};return s}(),BS=(U({number:function(t){return parseFloat(t)},time:function(t){return+Qi(t)},trim:function(t){return T(t)?H(t):t}}),{lt:function(t,e){return e>t},lte:function(t,e){return e>=t},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}}),NS=(function(){function t(t,e){if(!C(e)){un("")}this._opFn=BS[t],this._rvalFloat=rn(e)}t.prototype.evaluate=function(t){return C(t)?this._opFn(t,this._rvalFloat):this._opFn(rn(t),this._rvalFloat)}}(),function(){function t(t,e){var i="desc"===t;this._resultLT=i?1:-1,null==e&&(e=i?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var i=C(t)?t:rn(t),n=C(e)?e:rn(e),r=isNaN(i),o=isNaN(n);if(r&&(i=this._incomparable),o&&(n=this._incomparable),r&&o){var a=T(t),s=T(e);a&&(i=s?t:0),s&&(n=a?e:0)}return n>i?this._resultLT:i>n?-this._resultLT:0},t}()),zS=(function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=rn(e)}t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var i=typeof t;i===this._rvalTypeof||"number"!==i&&"number"!==this._rvalTypeof||(e=rn(t)===this._rvalFloat)}return this._isEQ?e:!e}}(),function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(){},t.prototype.retrieveValueFromItem=function(){},t.prototype.convertValue=function(t,e){return Yl(t,e)},t}()),FS=U(),YS="undefined",HS=typeof Uint32Array===YS?Array:Uint32Array,VS=typeof Uint16Array===YS?Array:Uint16Array,WS=typeof Int32Array===YS?Array:Int32Array,XS=typeof Float64Array===YS?Array:Float64Array,US={float:XS,int:WS,ordinal:Array,number:Array,time:XS},jS=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=U()}return t.prototype.initData=function(t,e,i){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),r=this.defaultDimValueGetter=cS[n.sourceFormat];this._dimValueGetter=i||r,this._rawExtent=[],Ol(n),this._dimensions=g(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var i=this._calcDimNameToIdx,n=this._dimensions,r=i.get(t);if(null!=r){if(n[r].type===e)return r}else r=n.length;return n[r]={type:e},i.set(t,r),this._chunks[r]=new US[e||"float"](this._rawCount),this._rawExtent[r]=Ql(),r},t.prototype.collectOrdinalMeta=function(t,e){var i=this._chunks[t],n=this._dimensions[t],r=this._rawExtent,o=n.ordinalOffset||0,a=i.length;0===o&&(r[t]=Ql());for(var s=r[t],l=o;a>l;l++){var u=i[l]=e.parseAndCollect(i[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}n.ordinalMeta=e,n.ordinalOffset=a,n.type="ordinal"},t.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,i=this.count();e.appendData(t);var n=e.count();return e.persistent||(n+=i),n>i&&this._initDataFromProvider(i,n,!0),[i,n]},t.prototype.appendValues=function(t,e){for(var i=this._chunks,n=this._dimensions,r=n.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;r>l;l++){var u=n[l];Jl(i,l,u.type,s,!0)}for(var h=[],c=a;s>c;c++)for(var p=c-a,f=0;r>f;f++){var u=n[f],d=cS.arrayRows.call(this,t[p]||h,u.property,p,f);i[f][c]=d;var g=o[f];d<g[0]&&(g[0]=d),d>g[1]&&(g[1]=d)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,i){for(var n=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=g(o,function(t){return t.property}),u=0;a>u;u++){var h=o[u];s[u]||(s[u]=Ql()),Jl(r,u,h.type,e,i)}if(n.fillStorage)n.fillStorage(t,e,r,s);else for(var c=[],p=t;e>p;p++){c=n.getItem(p,c);for(var f=0;a>f;f++){var d=r[f],v=this._dimValueGetter(c,l[f],p,f);d[p]=v;var y=s[f];v<y[0]&&(y[0]=v),v>y[1]&&(y[1]=v)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var i=this._chunks[t];return i?i[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var i=[],n=[];if(null==e){e=t,t=[];for(var r=0;r<this._dimensions.length;r++)n.push(r)}else n=t;for(var r=0,o=n.length;o>r;r++)i.push(this.get(n[r],e));return i},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var i=this._chunks[t];return i?i[e]:NaN},t.prototype.getSum=function(t){var e=this._chunks[t],i=0;if(e)for(var n=0,r=this.count();r>n;n++){var o=this.get(t,n);isNaN(o)||(i+=o)}return i},t.prototype.getMedian=function(t){var e=[];this.each([t],function(t){isNaN(t)||e.push(t)});var i=e.sort(function(t,e){return t-e}),n=this.count();return 0===n?0:n%2==1?i[(n-1)/2]:(i[n/2]+i[n/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||0>t)return-1;if(!this._indices)return t;var e=this._indices,i=e[t];if(null!=i&&i<this._count&&i===t)return t;for(var n=0,r=this._count-1;r>=n;){var o=(n+r)/2|0;if(e[o]<t)n=o+1;else{if(!(e[o]>t))return o;r=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,i){var n=this._chunks,r=n[t],o=[];if(!r)return o;null==i&&(i=1/0);for(var a=1/0,s=-1,l=0,u=0,h=this.count();h>u;u++){var c=this.getRawIndex(u),p=e-r[c],f=Math.abs(p);i>=f&&((a>f||f===a&&p>=0&&0>s)&&(a=f,s=p,l=0),p===s&&(o[l++]=u))}return o.length=l,o},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var i=e.constructor,n=this._count;if(i===Array){t=new i(n);for(var r=0;n>r;r++)t[r]=e[r]}else t=new i(e.buffer,0,n)}else{var i=Kl(this._rawCount);t=new i(this.count());for(var r=0;r<t.length;r++)t[r]=r}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var i=this.clone(),n=i.count(),r=Kl(i._rawCount),o=new r(n),a=[],s=t.length,l=0,u=t[0],h=i._chunks,c=0;n>c;c++){var p=void 0,f=i.getRawIndex(c);if(0===s)p=e(c);else if(1===s){var d=h[u][f];p=e(d,c)}else{for(var g=0;s>g;g++)a[g]=h[t[g]][f];a[g]=c,p=e.apply(null,a)}p&&(o[l++]=f)}return n>l&&(i._indices=o),i._count=l,i._extent=[],i._updateGetRawIdx(),i},t.prototype.selectRange=function(t){var e=this.clone(),i=e._count;if(!i)return this;var n=_(t),r=n.length;if(!r)return this;var o=e.count(),a=Kl(e._rawCount),s=new a(o),l=0,u=n[0],h=t[u][0],c=t[u][1],p=e._chunks,f=!1;if(!e._indices){var d=0;if(1===r){for(var g=p[n[0]],v=0;i>v;v++){var y=g[v];(y>=h&&c>=y||isNaN(y))&&(s[l++]=d),d++}f=!0}else if(2===r){for(var g=p[n[0]],m=p[n[1]],x=t[n[1]][0],w=t[n[1]][1],v=0;i>v;v++){var y=g[v],b=m[v];(y>=h&&c>=y||isNaN(y))&&(b>=x&&w>=b||isNaN(b))&&(s[l++]=d),d++}f=!0}}if(!f)if(1===r)for(var v=0;o>v;v++){var S=e.getRawIndex(v),y=p[n[0]][S];(y>=h&&c>=y||isNaN(y))&&(s[l++]=S)}else for(var v=0;o>v;v++){for(var T=!0,S=e.getRawIndex(v),M=0;r>M;M++){var C=n[M],y=p[C][S];(y<t[C][0]||y>t[C][1])&&(T=!1)}T&&(s[l++]=e.getRawIndex(v))}return o>l&&(e._indices=s),e._count=l,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var i=this.clone(t);return this._updateDims(i,t,e),i},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,i){for(var n=t._chunks,r=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=Ql();for(var h=0;a>h;h++){for(var c=t.getRawIndex(h),p=0;o>p;p++)s[p]=n[e[p]][c];s[o]=h;var f=i&&i.apply(null,s);if(null!=f){"object"!=typeof f&&(r[0]=f,f=r);for(var u=0;u<f.length;u++){var d=e[u],g=f[u],v=l[d],y=n[d];y&&(y[c]=g),g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var i,n,r,o=this.clone([t],!0),a=o._chunks,s=a[t],l=this.count(),u=0,h=Math.floor(1/e),c=this.getRawIndex(0),p=new(Kl(this._rawCount))(Math.min(2*(Math.ceil(l/h)+2),l));p[u++]=c;for(var f=1;l-1>f;f+=h){for(var d=Math.min(f+h,l-1),g=Math.min(f+2*h,l),v=(g+d)/2,y=0,m=d;g>m;m++){var _=this.getRawIndex(m),x=s[_];isNaN(x)||(y+=x)}y/=g-d;var w=f,b=Math.min(f+h,l),S=f-1,T=s[c];i=-1,r=w;for(var M=-1,C=0,m=w;b>m;m++){var _=this.getRawIndex(m),x=s[_];isNaN(x)?(C++,0>M&&(M=_)):(n=Math.abs((S-v)*(x-T)-(S-m)*(y-T)))>i&&(i=n,r=_)}C>0&&b-w>C&&(p[u++]=Math.min(M,r),r=Math.max(M,r)),p[u++]=r,c=r}return p[u++]=this.getRawIndex(l-1),o._count=u,o._indices=p,o.getRawIndex=this._getRawIdx,o},t.prototype.downSample=function(t,e,i,n){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),h=r._rawExtent[t]=Ql(),c=new(Kl(this._rawCount))(Math.ceil(u/s)),p=0,f=0;u>f;f+=s){s>u-f&&(s=u-f,a.length=s);for(var d=0;s>d;d++){var g=this.getRawIndex(f+d);a[d]=l[g]}var v=i(a),y=this.getRawIndex(Math.min(f+n(a,v)||0,u-1));l[y]=v,v<h[0]&&(h[0]=v),v>h[1]&&(h[1]=v),c[p++]=y}return r._count=p,r._indices=c,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var i=t.length,n=this._chunks,r=0,o=this.count();o>r;r++){var a=this.getRawIndex(r);switch(i){case 0:e(r);break;case 1:e(n[t[0]][a],r);break;case 2:e(n[t[0]][a],n[t[1]][a],r);break;default:for(var s=0,l=[];i>s;s++)l[s]=n[t[s]][a];l[s]=r,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],i=Ql();if(!e)return i;var n,r=this.count();if(!this._indices)return this._rawExtent[t].slice();if(n=this._extent[t])return n.slice();n=i;for(var o=n[0],a=n[1],s=0;r>s;s++){var l=this.getRawIndex(s),u=e[l];o>u&&(o=u),u>a&&(a=u)}return n=[o,a],this._extent[t]=n,n},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var i=[],n=this._chunks,r=0;r<n.length;r++)i.push(n[r][e]);return i},t.prototype.clone=function(e,i){var n=new t,r=this._chunks,o=e&&v(e,function(t,e){return t[e]=!0,t},{});if(o)for(var a=0;a<r.length;a++)n._chunks[a]=o[a]?$l(r[a]):r[a];else n._chunks=r;return this._copyCommonProps(n),i||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=o(this._extent),t._rawExtent=o(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var i=this._indices.length;e=new t(i);for(var n=0;i>n;n++)e[n]=this._indices[n]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,i,n){return Yl(t[n],this._dimensions[n])}cS={arrayRows:t,objectRows:function(t,e,i,n){return Yl(t[e],this._dimensions[n])},keyedColumns:t,original:function(t,e,i,n){var r=t&&(null==t.value?t:t.value);return Yl(r instanceof Array?r[n]:r,this._dimensions[n])},typedArray:function(t,e,i,n){return t[n]}}}(),t}(),GS=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,++this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,i=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length;if(eu(i)){var o=i,a=void 0,s=void 0,l=void 0;if(r){var u=n[0];u.prepareSource(),l=u.getSource(),a=l.data,s=l.sourceFormat,e=[u._getVersionSign()]}else a=o.get("data",!0),s=A(a)?Zb:Ub,e=[];var h=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},p=B(h.seriesLayoutBy,c.seriesLayoutBy)||null,f=B(h.sourceHeader,c.sourceHeader),d=B(h.dimensions,c.dimensions);t=p!==c.seriesLayoutBy||!!f!=!!c.sourceHeader||d?[Tl(a,{seriesLayoutBy:p,sourceHeader:f,dimensions:d},s)]:[]}else{var g=i;if(r){var v=this._applyTransform(n);t=v.sourceList,e=v.upstreamSignList}else{t=[Tl(g.get("source",!0),this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e=this._sourceHost,i=e.get("transform",!0),n=e.get("fromTransformResult",!0);if(null!=n){1!==t.length&&iu("")}var r,o=[],a=[];return d(t,function(t){t.prepareSource();var e=t.getSource(n||0);null==n||e||iu(""),o.push(e),a.push(t._getVersionSign())}),i?r=Gl(i,o,{datasetIndex:e.componentIndex}):null!=n&&(r=[Cl(o[0])]),{sourceList:r,upstreamSignList:a}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var i=t[e];if(i._isDirty()||this._upstreamSignList[e]!==i._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,i){var n=this._storeList,r=n[0];r||(r=n[0]={});var o=r[i];if(!o){var a=this._getUpstreamSourceManagers()[0];eu(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,i):(o=new jS,o.initData(new MS(e,t.length),t)),r[i]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(eu(t)){var e=Ys(t);return e?[e.getSourceManager()]:[]}return g(Hs(t),function(t){return t.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var t,e,i,n=this._sourceHost;if(eu(n))t=n.get("seriesLayoutBy",!0),e=n.get("sourceHeader",!0),i=n.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=n;t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),i=r.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:i}},t}(),qS="line-height:1",ZS=[0,10,20,30],KS=["","\n","\n\n","\n\n\n"],QS=function(){function t(){this.richTextStyles={},this._nextStyleNameId=an()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,i){var n="richText"===i?this._generateStyleName():null,r=Is({color:e,type:t,renderMode:i,markerId:n});return T(r)?r:(this.richTextStyles[n]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var i={};b(e)?d(e,function(t){return l(i,t)}):l(i,e);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+t+"}"},t}(),$S=Dn(),JS=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return e(i,t),i.prototype.init=function(t,e,i){this.seriesIndex=this.componentIndex,this.dataTask=Fl({count:Tu,reset:Mu}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i),($S(this).sourceManager=new GS(this)).prepareSource();var n=this.getInitialData(t,i);Iu(n,this),this.dataTask.context.data=n,$S(this).dataBeforeProcessed=n,bu(this),this._initSelectedMapFromData(n)},i.prototype.mergeDefaultAndTheme=function(t,e){var i=Ls(this),n=i?Rs(t):{},r=this.subType;zb.hasClass(r)&&(r+="Series"),a(t,e.getTheme().get(this.subType)),a(t,this.getDefaultOption()),pn(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&Es(t,n,i)},i.prototype.mergeOption=function(t,e){t=a(this.option,t,!0),this.fillDataTextStyle(t.data);var i=Ls(this);i&&Es(this.option,t,i);var n=$S(this).sourceManager;n.dirty(),n.prepareSource();var r=this.getInitialData(t,e);Iu(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,$S(this).dataBeforeProcessed=r,bu(this),this._initSelectedMapFromData(r)},i.prototype.fillDataTextStyle=function(t){if(t&&!A(t))for(var e=["show"],i=0;i<t.length;i++)t[i]&&t[i].label&&pn(t[i],"label",e)},i.prototype.getInitialData=function(){},i.prototype.appendData=function(t){this.getRawData().appendData(t.data)},i.prototype.getData=function(t){var e=Au(this);if(e){var i=e.context.data;return null==t?i:i.getLinkedData(t)}return $S(this).data},i.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},i.prototype.setData=function(t){var e=Au(this);if(e){var i=e.context;i.outputData=t,e!==this.dataTask&&(i.data=t)}$S(this).data=t},i.prototype.getEncode=function(){var t=this.get("encode",!0);return t?U(t):void 0},i.prototype.getSourceManager=function(){return $S(this).sourceManager},i.prototype.getSource=function(){return this.getSourceManager().getSource()},i.prototype.getRawData=function(){return $S(this).dataBeforeProcessed},i.prototype.getColorBy=function(){return this.get("colorBy")||"series"},i.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},i.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},i.prototype.formatTooltip=function(t,e){return _u({series:this,dataIndex:t,multipleSeries:e})},i.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(xv.node&&(!t||!t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},i.prototype.restoreData=function(){this.dataTask.dirty()},i.prototype.getColorFromPalette=function(t,e,i){var n=this.ecModel,r=nS.prototype.getColorFromPalette.call(this,t,e,i);return r||(r=n.getColorFromPalette(t,e,i)),r},i.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},i.prototype.getProgressive=function(){return this.get("progressive")},i.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},i.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},i.prototype.unselect=function(t,e){var i=this.option.selectedMap;if(i){var n=this.option.selectedMode,r=this.getData(e);if("series"===n||"all"===i)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<t.length;o++){var a=t[o],s=wu(r,a);i[s]=!1,this._selectedDataIndicesMap[s]=-1}}},i.prototype.toggleSelect=function(t,e){for(var i=[],n=0;n<t.length;n++)i[0]=t[n],this.isSelected(t[n],e)?this.unselect(i,e):this.select(i,e)},i.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=_(t),i=[],n=0;n<e.length;n++){var r=t[e[n]];r>=0&&i.push(r)}return i},i.prototype.isSelected=function(t,e){var i=this.option.selectedMap;if(!i)return!1;var n=this.getData(e);return("all"===i||i[wu(n,t)])&&!n.getItemModel(t).get(["select","disabled"])},i.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},i.prototype._innerSelect=function(t,e){var i,n,r=this.option,o=r.selectedMode,a=e.length;if(o&&a)if("series"===o)r.selectedMap="all";else if("multiple"===o){I(r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;a>l;l++){var u=e[l],h=wu(t,u);s[h]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(u)}}else if("single"===o||!0===o){var c=e[a-1],h=wu(t,c);r.selectedMap=(i={},i[h]=!0,i),this._selectedDataIndicesMap=(n={},n[h]=t.getRawIndex(c),n)}},i.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each(function(i){var n=t.getRawDataItem(i);n&&n.selected&&e.push(i)}),e.length>0&&this._innerSelect(t,e)}},i.registerClass=function(t){return zb.registerClass(t)},i.protoInitialize=function(){var t=i.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),i}(zb);p(JS,LS),p(JS,nS),Wn(JS,zb);var tT=function(){function t(){this.group=new Vm,this.uid=Za("viewComponent")}return t.prototype.init=function(){},t.prototype.render=function(){},t.prototype.dispose=function(){},t.prototype.updateView=function(){},t.prototype.updateLayout=function(){},t.prototype.updateVisual=function(){},t.prototype.toggleBlurSeries=function(){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();Hn(tT),jn(tT);var eT=Dn(),iT=Du(),nT=function(){function t(){this.group=new Vm,this.uid=Za("viewChart"),this.renderTask=Fl({plan:Lu,reset:Eu}),this.renderTask.context={view:this}}return t.prototype.init=function(){},t.prototype.render=function(){},t.prototype.highlight=function(t,e,i,n){var r=t.getData(n&&n.dataType);r&&Ou(r,n,"emphasis")},t.prototype.downplay=function(t,e,i,n){var r=t.getData(n&&n.dataType);r&&Ou(r,n,"normal")},t.prototype.remove=function(){this.group.removeAll()},t.prototype.dispose=function(){},t.prototype.updateView=function(t,e,i,n){this.render(t,e,i,n)},t.prototype.updateLayout=function(t,e,i,n){this.render(t,e,i,n)},t.prototype.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},t.prototype.eachRendered=function(t){Na(this.group,t)},t.markUpdateMethod=function(t,e){eT(t).updateMethod=e},t.protoInitialize=function(){t.prototype.type="chart"}(),t}();Hn(nT),jn(nT);var rT,oT={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},aT="\0__throttleOriginMethod",sT="\0__throttleRate",lT="\0__throttleType",uT=Dn(),hT={itemStyle:Gn(lb,!0),lineStyle:Gn(ob,!0)},cT={lineStyle:"stroke",itemStyle:"fill"},pT={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i=t.getData(),n=t.visualStyleAccessPath||"itemStyle",r=t.getModel(n),o=zu(t,n),a=o(r),s=r.getShallow("decal");s&&(i.setVisual("decal",s),s.dirty=!0);var u=Fu(t,n),h=a[u],c=S(h)?h:null,p="auto"===a.fill||"auto"===a.stroke;if(!a[u]||c||p){var f=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[u]||(a[u]=f,i.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||S(a.fill)?f:a.fill,a.stroke="auto"===a.stroke||S(a.stroke)?f:a.stroke}return i.setVisual("style",a),i.setVisual("drawType",u),!e.isSeriesFiltered(t)&&c?(i.setVisual("colorFromPalette",!1),{dataEach:function(e,i){var n=t.getDataParams(i),r=l({},a);r[u]=c(n),e.setItemVisual(i,"style",r)}}):void 0}},fT=new cb,dT={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var i=t.getData(),n=t.visualStyleAccessPath||"itemStyle",r=zu(t,n),o=i.getVisual("drawType");return{dataEach:i.hasItemOption?function(t,e){var i=t.getRawDataItem(e);if(i&&i[n]){fT.option=i[n];var a=r(fT);l(t.ensureUniqueItemVisual(e,"style"),a),fT.option.decal&&(t.setItemVisual(e,"decal",fT.option.decal),fT.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},gT={performRawSeries:!0,overallReset:function(t){var e=U();t.eachSeries(function(t){var i=t.getColorBy();if(!t.isColorBySeries()){var n=t.type+"-"+i,r=e.get(n);r||(r={},e.set(n,r)),uT(t).scope=r}}),t.eachSeries(function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var i=e.getRawData(),n={},r=e.getData(),o=uT(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=Fu(e,a);r.each(function(t){var e=r.getRawIndex(t);n[e]=t}),i.each(function(t){var a=n[t];if(r.getItemVisual(a,"colorFromPalette")){var l=r.ensureUniqueItemVisual(a,"style"),u=i.getName(t)||t+"",h=i.count();l[s]=e.getColorFromPalette(u,o,h)}})}})}},vT=Math.PI,yT=function(){function t(t,e,i,n){this._stageTaskMap=U(),this.ecInstance=t,this.api=e,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){var e=t.overallTask;e&&e.dirty()})},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),n=i.context,r=!e&&i.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>i.blockIndex,o=r?i.step:null,a=n&&n.modDataCount;return{step:o,modBy:null!=a?Math.ceil(a/o):null,modDataCount:a}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),n=t.getData(),r=n.count(),o=i.progressiveEnabled&&e.incrementalPrepareRender&&r>=i.threshold,a=t.get("large")&&r>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=i.context={progressiveRender:o,modDataCount:s,large:a}},t.prototype.restorePipelines=function(t){var e=this,i=e._pipelineMap=U();t.eachSeries(function(t){var n=t.getProgressive(),r=t.uid;i.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:n&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),e._pipe(t,t.dataTask)})},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),i=this.api;d(this._allHandlers,function(n){var r=t.get(n.uid)||t.set(n.uid,{});Y(!(n.reset&&n.overallReset),""),n.reset&&this._createSeriesStageTask(n,r,e,i),n.overallReset&&this._createOverallStageTask(n,r,e,i)},this)},t.prototype.prepareView=function(t,e,i,n){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=i,o.api=n,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,i){this._performStageTasks(this._visualHandlers,t,e,i)},t.prototype._performStageTasks=function(t,e,i,n){function r(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}n=n||{};var o=!1,a=this;d(t,function(t){if(!n.visualType||n.visualType===t.visualType){var s=a._stageTaskMap.get(t.uid),l=s.seriesTaskMap,u=s.overallTask;if(u){var h,c=u.agentStubMap;c.each(function(t){r(n,t)&&(t.dirty(),h=!0)}),h&&u.dirty(),a.updatePayload(u,i);var p=a.getPerformArgs(u,n.block);c.each(function(t){t.perform(p)}),u.perform(p)&&(o=!0)}else l&&l.each(function(s){r(n,s)&&s.dirty();var l=a.getPerformArgs(s,n.block);l.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),a.updatePayload(s,i),s.perform(l)&&(o=!0)})}}),this.unfinished=o||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,i,n){function r(e){var r=e.uid,l=s.set(r,a&&a.get(r)||Fl({plan:Uu,reset:ju,count:qu}));l.context={model:e,ecModel:i,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(e,l)}var o=this,a=e.seriesTaskMap,s=e.seriesTaskMap=U(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?i.eachRawSeries(r):l?i.eachRawSeriesByType(l,r):u&&u(i,n).each(r)},t.prototype._createOverallStageTask=function(t,e,i,n){function r(t){var e=t.uid,i=l.set(e,s&&s.get(e)||(p=!0,Fl({reset:Vu,onDirty:Xu})));i.context={model:t,overallProgress:c},i.agent=a,i.__block=c,o._pipe(t,i)}var o=this,a=e.overallTask=e.overallTask||Fl({reset:Hu});a.context={ecModel:i,api:n,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=U(),u=t.seriesType,h=t.getTargetSeries,c=!0,p=!1;Y(!t.createOnAllSeries,""),u?i.eachRawSeriesByType(u,r):h?h(i,n).each(r):(c=!1,d(i.getSeries(),r)),p&&a.dirty()},t.prototype._pipe=function(t,e){var i=t.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},t.wrapStageHandler=function(t,e){return S(t)&&(t={overallReset:t,seriesType:Zu(t)}),t.uid=Za("stageHandler"),e&&(t.visualType=e),t},t}(),mT=Gu(0),_T={},xT={};Ku(_T,oS),Ku(xT,fS),_T.eachSeriesByType=_T.eachRawSeriesByType=function(t){rT=t},_T.eachComponent=function(t){"series"===t.mainType&&t.subType&&(rT=t.subType)};var wT=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],bT={color:wT,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],wT]},ST="#B9B8CE",TT="#100C2A",MT=function(){return{axisLine:{lineStyle:{color:ST}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},CT=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],IT={darkMode:!0,color:CT,backgroundColor:TT,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:ST}},textStyle:{color:ST},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:ST}},dataZoom:{borderColor:"#71708A",textStyle:{color:ST},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:ST}},timeline:{lineStyle:{color:ST},label:{color:ST},controlStyle:{color:ST,borderColor:ST}},calendar:{itemStyle:{color:TT},dayLabel:{color:ST},monthLabel:{color:ST},yearLabel:{color:ST}},timeAxis:MT(),logAxis:MT(),valueAxis:MT(),categoryAxis:MT(),line:{symbol:"circle"},graph:{color:CT},gauge:{title:{color:ST},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:ST},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};IT.categoryAxis.splitLine.show=!1;var kT=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},i={},n={};if(T(t)){var r=zn(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};d(t,function(t,r){for(var s=!1,l=0;l<o.length;l++){var u=o[l],h=r.lastIndexOf(u);if(h>0&&h===r.length-u.length){var c=r.slice(0,h);"data"!==c&&(e.mainType=c,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(i[r]=t,s=!0),s||(n[r]=t)})}return{cptQuery:e,dataQuery:i,otherQuery:n}},t.prototype.filter=function(t,e){function i(t,e,i,n){return null==t[i]||e[n||i]===t[i]}var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,o=n.packedEvent,a=n.model,s=n.view;if(!a||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return i(l,a,"mainType")&&i(l,a,"subType")&&i(l,a,"index","componentIndex")&&i(l,a,"name")&&i(l,a,"id")&&i(u,o,"name")&&i(u,o,"dataIndex")&&i(u,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,r,o))},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),AT=["symbol","symbolSize","symbolRotate","symbolOffset"],DT=AT.concat(["symbolKeepAspect"]),PT={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){function i(e,i){for(var n=t.getRawValue(i),r=t.getDataParams(i),a=0;a<c.length;a++){var s=c[a];e.setItemVisual(i,s,o[s](n,r))}}var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var r={},o={},a=!1,s=0;s<AT.length;s++){var u=AT[s],h=t.get(u);S(h)?(a=!0,o[u]=h):r[u]=h}if(r.symbol=r.symbol||t.defaultSymbol,n.setVisual(l({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),!e.isSeriesFiltered(t)){var c=_(o);return{dataEach:a?i:null}}}}},OT={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){function i(t,e){for(var i=t.getItemModel(e),n=0;n<DT.length;n++){var r=DT[n],o=i.getShallow(r,!0);null!=o&&t.setItemVisual(e,r,o)}}if(t.hasSymbolVisual&&!e.isSeriesFiltered(t)){return{dataEach:t.getData().hasItemOption?i:null}}}},LT=Math.round(9*Math.random()),ET="function"==typeof Object.defineProperty,RT=function(){function t(){this._id="__ec_inner_"+LT++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var i=this._guard(t);return ET?Object.defineProperty(i,this._id,{value:e,enumerable:!1,configurable:!0}):i[this._id]=e,this},t.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}(),BT=ox.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,o=e.height/2;t.moveTo(i,n-o),t.lineTo(i+r,n+o),t.lineTo(i-r,n+o),t.closePath()}}),NT=ox.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,o=e.height/2;t.moveTo(i,n-o),t.lineTo(i+r,n),t.lineTo(i,n+o),t.lineTo(i-r,n),t.closePath()}}),zT=ox.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,r=e.width/5*3,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=n-o+a+s,u=Math.asin(s/a),h=Math.cos(u)*a,c=Math.sin(u),p=Math.cos(u),f=.6*a,d=.7*a;t.moveTo(i-h,l+s),t.arc(i,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(i+h-c*f,l+s+p*f,i,n-d,i,n),t.bezierCurveTo(i,n-d,i-h+c*f,l+s+p*f,i-h,l+s),t.closePath()}}),FT=ox.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.height,n=e.width,r=e.x,o=e.y,a=n/3*2;t.moveTo(r,o),t.lineTo(r+a,o+i),t.lineTo(r,o+i/4*3),t.lineTo(r-a,o+i),t.lineTo(r,o),t.closePath()}}),YT={line:Mw,rect:dx,roundRect:dx,square:dx,circle:ew,diamond:NT,pin:zT,arrow:FT,triangle:BT},HT={line:function(t,e,i,n,r){r.x1=t,r.y1=e+n/2,r.x2=t+i,r.y2=e+n/2},rect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r.height=n},roundRect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r.height=n,r.r=Math.min(i,n)/4},square:function(t,e,i,n,r){var o=Math.min(i,n);r.x=t,r.y=e,r.width=o,r.height=o},circle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.r=Math.min(i,n)/2},diamond:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r.height=n},pin:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r.height=n},arrow:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r.height=n},triangle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r.height=n}},VT={};d(YT,function(t,e){VT[e]=new t});var WT=ox.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,i){var n=Si(t,e,i),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.position&&(n.y=i.y+.4*i.height),n},buildPath:function(t,e,i){var n=e.symbolType;if("none"!==n){var r=VT[n];r||(n="rect",r=VT[n]),HT[n](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,i)}}}),XT=new q_(!0),UT=["shadowBlur","shadowOffsetX","shadowOffsetY"],jT=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],GT=1,qT=2,ZT=3,KT=4,QT=new RT,$T=new Qy(100),JT=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"],tM=new ty,eM={},iM={zrender:"5.4.1"},nM=2e3,rM=1e3,oM=3e3,aM={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:rM,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:oM,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},sM="__flagInMainProcess",lM="__pendingUpdate",uM="__needsUpdateStatus",hM=/^[a-zA-Z0-9_]+$/,cM="__connectUpdateStatus",pM=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i}(ty),fM=pM.prototype;fM.on=jh("on"),fM.off=jh("off");var dM,gM,vM,yM,mM,_M,xM,wM,bM,SM,TM,MM,CM,IM,kM,AM,DM,PM,OM=function(t){function i(e,i,n){function r(t,e){return t.__prio-e.__prio}var a=t.call(this,new kT)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],n=n||{},T(i)&&(i=YM[i]),a._dom=e;var s=a._zr=Li(e,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:B(n.useDirtyRect,!1),useCoarsePointer:B(n.useCoarsePointer,"auto"),pointerSize:n.pointerSize});a._ssr=n.ssr,a._throttledZrFlush=Ru(Yv(s.flush,s),17),i=o(i),i&&xl(i,!0),a._theme=i,a._locale=Qa(n.locale||xb),a._coordSysMgr=new gS;var l=a._api=kM(a);return ie(FM,r),ie(NM,r),a._scheduler=new yT(a,l,NM,FM),a._messageCenter=new pM,a._initEvents(),a.resize=Yv(a.resize,a),s.animation.on("frame",a._onframe,a),SM(s,a),TM(s,a),V(a),a}return e(i,t),i.prototype._onframe=function(){if(!this._disposed){PM(this);var t=this._scheduler;if(this[lM]){var e=this[lM].silent;this[sM]=!0;try{dM(this),yM.update.call(this,null,this[lM].updateParams)}catch(t){throw this[sM]=!1,this[lM]=null,t}this._zr.flush(),this[sM]=!1,this[lM]=null,wM.call(this,e),bM.call(this,e)}else if(t.unfinished){var i=1,n=this._model,r=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(n),t.performDataProcessorTasks(n),_M(this,n),t.performVisualTasks(n),IM(this,this._model,r,"remain",{}),i-=+new Date-o}while(i>0&&t.unfinished);t.unfinished||this._zr.flush()}}},i.prototype.getDom=function(){return this._dom},i.prototype.getId=function(){return this.id},i.prototype.getZr=function(){return this._zr},i.prototype.isSSR=function(){return this._ssr},i.prototype.setOption=function(t,e,i){if(!this[sM]&&!this._disposed){var n,r,o;if(I(e)&&(i=e.lazyUpdate,n=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[sM]=!0,!this._model||e){var a=new yS(this._api),s=this._theme,l=this._model=new oS;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},zM);var u={seriesTransition:o,optionChanged:!0};if(i)this[lM]={silent:n,updateParams:u},this[sM]=!1,this.getZr().wakeUp();else{try{dM(this),yM.update.call(this,null,u)}catch(t){throw this[lM]=null,this[sM]=!1,t}this._ssr||this._zr.flush(),this[lM]=null,this[sM]=!1,wM.call(this,n),bM.call(this,n)}}},i.prototype.setTheme=function(){},i.prototype.getModel=function(){return this._model},i.prototype.getOption=function(){return this._model&&this._model.getOption()},i.prototype.getWidth=function(){return this._zr.getWidth()},i.prototype.getHeight=function(){return this._zr.getHeight()},i.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||xv.hasGlobalWindow&&window.devicePixelRatio||1},i.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},i.prototype.renderToCanvas=function(t){return t=t||{},this._zr.painter.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},i.prototype.renderToSVGString=function(t){return t=t||{},this._zr.painter.renderToString({useViewBox:t.useViewBox})},i.prototype.getSvgDataURL=function(){if(xv.svgSupported){var t=this._zr;return d(t.storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()}},i.prototype.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,i=this._model,n=[],r=this;d(e,function(t){i.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(n.push(e),e.group.ignore=!0)})});var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return d(n,function(t){t.group.ignore=!1}),o}},i.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,i=this.group,n=Math.min,r=Math.max,a=1/0;if(WM[i]){var s=a,l=a,u=-a,h=-a,c=[],p=t&&t.pixelRatio||this.getDevicePixelRatio();d(VM,function(a){if(a.group===i){var p=e?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(o(t)),f=a.getDom().getBoundingClientRect();s=n(f.left,s),l=n(f.top,l),u=r(f.right,u),h=r(f.bottom,h),c.push({dom:p,left:f.left,top:f.top})}}),s*=p,l*=p,u*=p,h*=p;var f=u-s,g=h-l,v=Cv.createCanvas(),y=Li(v,{renderer:e?"svg":"canvas"});if(y.resize({width:f,height:g}),e){var m="";return d(c,function(t){var e=t.left-s,i=t.top-l;m+='<g transform="translate('+e+","+i+')">'+t.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}return t.connectedBackgroundColor&&y.add(new dx({shape:{x:0,y:0,width:f,height:g},style:{fill:t.connectedBackgroundColor}})),d(c,function(t){var e=new hx({style:{x:t.left*p-s,y:t.top*p-l,image:t.dom}});y.add(e)}),y.refreshImmediately(),v.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},i.prototype.convertToPixel=function(t,e){return mM(this,"convertToPixel",t,e)},i.prototype.convertFromPixel=function(t,e){return mM(this,"convertFromPixel",t,e)},i.prototype.containPixel=function(t,e){if(!this._disposed){var i;return d(Pn(this._model,t),function(t,n){n.indexOf("Models")>=0&&d(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)i=i||!!r.containPoint(e);else if("seriesModels"===n){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(i=i||o.containPoint(e,t))}},this)},this),!!i}},i.prototype.getVisual=function(t,e){var i=this._model,n=Pn(i,t,{defaultMainType:"series"}),r=n.seriesModel,o=r.getData(),a=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?o.indexOfRawIndex(n.dataIndex):null;return null!=a?Qu(o,a,e):$u(o,e)},i.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},i.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},i.prototype._initEvents=function(){var t=this;d(EM,function(e){var i=function(i){var n,r=t.getModel(),o=i.target;if("globalout"===e?n={}:o&&eh(o,function(t){var e=bx(t);if(e&&null!=e.dataIndex){var i=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return n=i&&i.getDataParams(e.dataIndex,e.dataType)||{},!0}return e.eventData?(n=l({},e.eventData),!0):void 0},!0),n){var a=n.componentType,s=n.componentIndex;("markLine"===a||"markPoint"===a||"markArea"===a)&&(a="series",s=n.seriesIndex);var u=a&&null!=s&&r.getComponent(a,s),h=u&&t["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];n.event=i,n.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:u,view:h},t.trigger(e,n)}};i.zrEventfulCallAtLast=!0,t._zr.on(e,i,t)}),d(BM,function(e,i){t._messageCenter.on(i,function(t){this.trigger(i,t)},t)}),d(["selectchanged"],function(e){t._messageCenter.on(e,function(t){this.trigger(e,t)},t)}),th(this._messageCenter,this,this._api)},i.prototype.isDisposed=function(){return this._disposed},i.prototype.clear=function(){this._disposed||this.setOption({series:[]},!0)},i.prototype.dispose=function(){if(!this._disposed){this._disposed=!0;this.getDom()&&En(this.getDom(),jM,"");var t=this,e=t._api,i=t._model;d(t._componentsViews,function(t){t.dispose(i,e)}),d(t._chartsViews,function(t){t.dispose(i,e)}),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete VM[t.id]}},i.prototype.resize=function(t){if(!this[sM]&&!this._disposed){this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var i=e.resetOption("media"),n=t&&t.silent;this[lM]&&(null==n&&(n=this[lM].silent),i=!0,this[lM]=null),this[sM]=!0;try{i&&dM(this),yM.update.call(this,{type:"resize",animation:l({duration:0},t&&t.animation)})}catch(t){throw this[sM]=!1,t}this[sM]=!1,wM.call(this,n),bM.call(this,n)}}},i.prototype.showLoading=function(t,e){if(!this._disposed&&(I(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),HM[t])){var i=HM[t](this._api,e),n=this._zr;this._loadingFX=i,n.add(i)}},i.prototype.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},i.prototype.makeActionFromEvent=function(t){var e=l({},t);return e.type=BM[t.type],e},i.prototype.dispatchAction=function(t,e){if(!this._disposed&&(I(e)||(e={silent:!!e}),RM[t.type]&&this._model)){if(this[sM])return void this._pendingActions.push(t);var i=e.silent;xM.call(this,t,i);var n=e.flush;n?this._zr.flush():!1!==n&&xv.browser.weChat&&this._throttledZrFlush(),wM.call(this,i),bM.call(this,i)}},i.prototype.updateLabelLayout=function(){tM.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},i.prototype.appendData=function(t){if(!this._disposed){var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},i.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function i(t){var e=[],i=[],n=!1;if(t.eachComponent(function(t,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();n=n||!!s,("series"===t?i:e).push({zlevel:o,z:a,idx:r.componentIndex,type:t,key:s})}),n){var r,o,a=e.concat(i);ie(a,function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),d(a,function(e){var i=t.getComponent(e.type,e.idx),n=e.zlevel,a=e.key;null!=r&&(n=Math.max(r,n)),a?(n===r&&a!==o&&n++,o=a):o&&(n===r&&n++,o=""),r=n,i.setZLevel(n)})}}function n(t){for(var e=[],i=t.currentStates,n=0;n<i.length;n++){var r=i[n];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}t.selected&&t.states.select&&e.push("select"),t.hoverState===Dx&&t.states.emphasis?e.push("emphasis"):t.hoverState===Ax&&t.states.blur&&e.push("blur"),t.useStates(e)}function r(t,e){var i=t._zr,n=i.storage,r=0;n.traverse(function(t){t.isGroup||r++}),r>e.get("hoverLayerThreshold")&&!xv.node&&!xv.worker&&e.eachSeries(function(e){if(!e.preventUsingHoverLayer){var i=t._chartsMap[e.__viewId];i.__alive&&i.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}})}function o(t,e){var i=t.get("blendMode")||null;e.eachRendered(function(t){t.isGroup||(t.style.blend=i)})}function a(t,e){if(!t.preventAutoZ){var i=t.get("z")||0,n=t.get("zlevel")||0;e.eachRendered(function(t){return s(t,i,n,-1/0),!0})}}function s(t,e,i,n){var r=t.getTextContent(),o=t.getTextGuideLine();if(t.isGroup)for(var a=t.childrenRef(),l=0;l<a.length;l++)n=Math.max(s(a[l],e,i,n),n);else t.z=e,t.zlevel=i,n=Math.max(t.z2,n);if(r&&(r.z=e,r.zlevel=i,isFinite(n)&&(r.z2=n+2)),o){var u=t.textGuideLineConfig;o.z=e,o.zlevel=i,isFinite(n)&&(o.z2=n+(u&&u.showAbove?1:-1))}return n}function h(t,e){e.eachRendered(function(t){if(!sa(t)){var e=t.getTextContent(),i=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),i&&i.stateTransition&&(i.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}})}function c(t,e){var i=t.getModel("stateAnimation"),r=t.isAnimationEnabled(),o=i.get("duration"),a=o>0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;e.eachRendered(function(t){if(t.states&&t.states.emphasis){if(sa(t))return;if(t instanceof ox&&zo(t),t.__dirty){var e=t.prevStates;e&&t.useStates(e)}if(r){t.stateTransition=a;var i=t.getTextContent(),o=t.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&n(t)}})}dM=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),gM(t,!0),gM(t,!1),e.plan()},gM=function(t,e){function i(t){var i=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,h=!i&&a[u];if(!h){var c=zn(t.type);h=new(e?tT.getClass(c.main,c.sub):nT.getClass(c.sub)),h.init(n,l),a[u]=h,o.push(h),s.add(h.group)}t.__viewId=h.__id=u,h.__alive=!0,h.__model=t,h.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&r.prepareView(h,t,n,l)}for(var n=t._model,r=t._scheduler,o=e?t._componentsViews:t._chartsViews,a=e?t._componentsMap:t._chartsMap,s=t._zr,l=t._api,u=0;u<o.length;u++)o[u].__alive=!1;e?n.eachComponent(function(t,e){"series"!==t&&i(e)}):n.eachSeries(i);for(var u=0;u<o.length;){var h=o[u];h.__alive?u++:(!e&&h.renderTask.dispose(),s.remove(h.group),h.dispose(n,l),o.splice(u,1),a[h.__id]===h&&delete a[h.__id],h.__id=h.group.__ecComponentInfo=null)}},vM=function(t,e,i,n,r){function o(n){n&&n.__alive&&n[e]&&n[e](n.__model,a,t._api,i)}var a=t._model;if(a.setUpdatePayload(i),!n)return void d([].concat(t._componentsViews).concat(t._chartsViews),o);var s={};s[n+"Id"]=i[n+"Id"],s[n+"Index"]=i[n+"Index"],s[n+"Name"]=i[n+"Name"];var l={mainType:n,query:s};r&&(l.subType=r);var u,h=i.excludeSeriesId;null!=h&&(u=U(),d(cn(h),function(t){var e=Tn(t,null);null!=e&&u.set(e,!0)})),a&&a.eachComponent(l,function(e){if(!u||null==u.get(e.id))if(No(i))if(e instanceof JS)i.type!==Rx||i.notBlur||e.get(["emphasis","disabled"])||wo(e,i,t._api);else{var n=bo(e.mainType,e.componentIndex,i.name,t._api),r=n.focusSelf,o=n.dispatchers;i.type===Rx&&r&&!i.notBlur&&xo(e.mainType,e.componentIndex,t._api),o&&d(o,function(t){i.type===Rx?ho(t):co(t)})}else Bo(i)&&e instanceof JS&&(Mo(e,i,t._api),Co(e),DM(t))},t),a&&a.eachComponent(l,function(e){u&&null!=u.get(e.id)||o(t["series"===n?"_chartsMap":"_componentsMap"][e.__viewId])},t)},yM={prepareAndUpdate:function(t){dM(this),yM.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(e,i){var n=this._model,r=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(n){n.setUpdatePayload(e),s.restoreData(n,e),s.performSeriesTasks(n),a.create(n,r),s.performDataProcessorTasks(n,e),_M(this,n),a.update(n,r),t(n),s.performVisualTasks(n,e),MM(this,n,r,e,i);var l=n.get("backgroundColor")||"transparent",u=n.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),tM.trigger("afterupdate",n,r)}},updateTransform:function(e){var i=this,n=this._model,r=this._api;if(n){n.setUpdatePayload(e);var o=[];n.eachComponent(function(t,a){if("series"!==t){var s=i.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,n,r,e);l&&l.update&&o.push(s)}else o.push(s)}});var a=U();n.eachSeries(function(t){var o=i._chartsMap[t.__viewId];if(o.updateTransform){var s=o.updateTransform(t,n,r,e);s&&s.update&&a.set(t.uid,1)}else a.set(t.uid,1)}),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0,dirtyMap:a}),IM(this,n,r,e,{},a),tM.trigger("afterupdate",n,r)}},updateView:function(e){var i=this._model;i&&(i.setUpdatePayload(e),nT.markUpdateMethod(e,"updateView"),t(i),this._scheduler.performVisualTasks(i,e,{setDirty:!0}),MM(this,i,this._api,e,{}),tM.trigger("afterupdate",i,this._api))},updateVisual:function(e){var i=this,n=this._model;n&&(n.setUpdatePayload(e),n.eachSeries(function(t){t.getData().clearAllVisual()}),nT.markUpdateMethod(e,"updateVisual"),t(n),this._scheduler.performVisualTasks(n,e,{visualType:"visual",setDirty:!0}),n.eachComponent(function(t,r){if("series"!==t){var o=i.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,n,i._api,e)}}),n.eachSeries(function(t){i._chartsMap[t.__viewId].updateVisual(t,n,i._api,e)}),tM.trigger("afterupdate",n,this._api))},updateLayout:function(t){yM.update.call(this,t)}},mM=function(t,e,i,n){if(!t._disposed)for(var r,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=Pn(o,i),l=0;l<a.length;l++){var u=a[l];if(u[e]&&null!=(r=u[e](o,s,n)))return r}},_M=function(t,e){var i=t._chartsMap,n=t._scheduler;e.eachSeries(function(t){n.updateStreamModes(t,i[t.__viewId])})},xM=function(t,e){var i=this,n=this.getModel(),r=t.type,o=t.escapeConnect,a=RM[r],s=a.actionInfo,h=(s.update||"update").split(":"),c=h.pop(),p=null!=h[0]&&zn(h[0]);this[sM]=!0;var f=[t],v=!1;t.batch&&(v=!0,f=g(t.batch,function(e){return e=u(l({},e),t),e.batch=null,e}));var y,m=[],_=Bo(t),x=No(t);if(x&&mo(this._api),d(f,function(e){if(y=a.action(e,i._model,i._api),y=y||l({},e),y.type=s.event||y.type,m.push(y),x){var n=On(t),r=n.queryOptionMap,o=n.mainTypeSpecified,u=o?r.keys()[0]:"series";vM(i,c,e,u),DM(i)}else _?(vM(i,c,e,"series"),DM(i)):p&&vM(i,c,e,p.main,p.sub)}),"none"!==c&&!x&&!_&&!p)try{this[lM]?(dM(this),yM.update.call(this,t),this[lM]=null):yM[c].call(this,t)}catch(t){throw this[sM]=!1,t}if(y=v?{type:s.event||r,escapeConnect:o,batch:m}:m[0],this[sM]=!1,!e){var w=this._messageCenter;if(w.trigger(y.type,y),_){var b={type:"selectchanged",escapeConnect:o,selected:Io(n),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};w.trigger(b.type,b)}}},wM=function(t){for(var e=this._pendingActions;e.length;){var i=e.shift();xM.call(this,i,t)}},bM=function(t){!t&&this.trigger("updated")},SM=function(t,e){t.on("rendered",function(i){e.trigger("rendered",i),!t.animation.isFinished()||e[lM]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})},TM=function(t,e){t.on("mouseover",function(t){var i=t.target,n=eh(i,Eo);n&&(So(n,t,e._api),DM(e))}).on("mouseout",function(t){var i=t.target,n=eh(i,Eo);n&&(To(n,t,e._api),DM(e))}).on("click",function(t){var i=t.target,n=eh(i,function(t){return null!=bx(t).dataIndex},!0);if(n){var r=n.selected?"unselect":"select",o=bx(n);e._api.dispatchAction({type:r,dataType:o.dataType,dataIndexInside:o.dataIndex,seriesIndex:o.seriesIndex,isFromClick:!0})}})},MM=function(t,e,n,r,o){i(e),CM(t,e,n,r,o),d(t._chartsViews,function(t){t.__alive=!1}),IM(t,e,n,r,o),d(t._chartsViews,function(t){t.__alive||t.remove(e,n)})},CM=function(t,e,i,n,r,o){d(o||t._componentsViews,function(t){var r=t.__model;h(r,t),t.render(r,e,i,n),a(r,t),c(r,t)})},IM=function(t,e,i,n,s,u){var p=t._scheduler;s=l(s||{},{updatedSeries:e.getSeries()}),tM.trigger("series:beforeupdate",e,i,s);var f=!1;e.eachSeries(function(e){var i=t._chartsMap[e.__viewId];i.__alive=!0;var r=i.renderTask;p.updatePayload(r,n),h(e,i),u&&u.get(e.uid)&&r.dirty(),r.perform(p.getPerformArgs(r))&&(f=!0),i.group.silent=!!e.get("silent"),o(e,i),Co(e)}),p.unfinished=f||p.unfinished,tM.trigger("series:layoutlabels",e,i,s),tM.trigger("series:transition",e,i,s),e.eachSeries(function(e){var i=t._chartsMap[e.__viewId];a(e,i),c(e,i)}),r(t,e),tM.trigger("series:afterupdate",e,i,s)},DM=function(t){t[uM]=!0,t.getZr().wakeUp()},PM=function(t){t[uM]&&(t.getZr().storage.traverse(function(t){sa(t)||n(t)}),t[uM]=!1)},kM=function(t){return new(function(i){function n(){return null!==i&&i.apply(this,arguments)||this}return e(n,i),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var i=e.__ecComponentInfo;if(null!=i)return t._model.getComponent(i.mainType,i.index);e=e.parent}},n.prototype.enterEmphasis=function(e,i){ho(e,i),DM(t)},n.prototype.leaveEmphasis=function(e,i){co(e,i),DM(t)},n.prototype.enterBlur=function(e){po(e),DM(t)},n.prototype.leaveBlur=function(e){fo(e),DM(t)},n.prototype.enterSelect=function(e){go(e),DM(t)},n.prototype.leaveSelect=function(e){vo(e),DM(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n}(fS))(t)},AM=function(t){function e(t,e){for(var i=0;i<t.length;i++){t[i][cM]=e}}d(BM,function(i,n){t._messageCenter.on(n,function(i){if(WM[t.group]&&0!==t[cM]){if(i&&i.escapeConnect)return;var n=t.makeActionFromEvent(i),r=[];d(VM,function(e){e!==t&&e.group===t.group&&r.push(e)}),e(r,0),d(r,function(t){1!==t[cM]&&t.dispatchAction(n)}),e(r,2)}})})}}(),i}(ty),LM=OM.prototype;LM.on=Uh("on"),LM.off=Uh("off"),LM.one=function(t,e,i){function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),r.off(t,n)}var r=this;this.on.call(this,t,n,i)};var EM=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],RM={},BM={},NM=[],zM=[],FM=[],YM={},HM={},VM={},WM={},XM=+new Date-0,UM=+new Date-0,jM="_echarts_instance_",GM=Kh,qM=[],ZM=jl;hc(2e3,pT),hc(4500,dT),hc(4500,gT),hc(2e3,PT),hc(4500,OT),hc(7e3,Vh),ec(xl),ic(900,wl),pc("default",Yu),ac({type:Rx,event:Rx,update:Rx},K),ac({type:Bx,event:Bx,update:Bx},K),ac({type:Nx,event:Nx,update:Nx},K),ac({type:zx,event:zx,update:zx},K),ac({type:Fx,event:Fx,update:Fx},K),tc("light",bT),tc("dark",IT);var KM,QM,$M,JM,tC,eC,iC,nC={},rC=function(){function t(t,e,i,n,r,o){this._old=t,this._new=e,this._oldKeyGetter=i||yc,this._newKeyGetter=n||yc,this.context=r,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,i={},n=new Array(t.length),r=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,i,r,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=n[o],s=i[a],l=vc(s);if(l>1){var u=s.shift();1===s.length&&(i[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(i[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,i)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,i={},n={},r=[],o=[];this._initIndexMap(t,i,r,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[a],l=i[s],u=n[s],h=vc(l),c=vc(u);if(h>1&&1===c)this._updateManyToOne&&this._updateManyToOne(u,l),n[s]=null;else if(1===h&&c>1)this._updateOneToMany&&this._updateOneToMany(u,l),n[s]=null;else if(1===h&&1===c)this._update&&this._update(u,l),n[s]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(u,l),n[s]=null;else if(h>1)for(var p=0;h>p;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(o,n)},t.prototype._performRestAdd=function(t,e){for(var i=0;i<t.length;i++){var n=t[i],r=e[n],o=vc(r);if(o>1)for(var a=0;o>a;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[n]=null}},t.prototype._initIndexMap=function(t,e,i,n){for(var r=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[n](t[o],o);if(r||(i[o]=a),e){var s=e[a],l=vc(s);0===l?(e[a]=o,r&&i.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}(),oC=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}(),aC=function(){function t(t){this.otherDims={},null!=t&&l(this,t)}return t}(),sC=Dn(),lC={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},uC=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=Tc(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return B(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;return e?e[t]:void 0},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=Ol(this.source),i=!Mc(t),n="",r=[],o=0,a=0;t>o;o++){var s=void 0,l=void 0,u=void 0,h=this.dimensions[a];if(h&&h.storeDimIndex===o)s=e?h.name:null,l=h.type,u=h.ordinalMeta,a++;else{var c=this.getSourceDimension(o);c&&(s=e?c.name:null,l=c.type)}r.push({property:s,type:l,ordinalMeta:u}),!e||null==s||h&&h.isCalculationCoord||(n+=i?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),n+="$",n+=lC[l]||"f",u&&(n+=u.uid),n+="$"}var p=this.source;return{dimensions:r,hash:[p.seriesLayoutBy,p.startIndex,n].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,i=0;e<this._fullDimCount;e++){var n=void 0,r=this.dimensions[i];if(r&&r.storeDimIndex===e)r.isCalculationCoord||(n=r.name),i++;else{var o=this.getSourceDimension(e);o&&(n=o.name)}t.push(n)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}(),hC=I,cC=g,pC="undefined"==typeof Int32Array?Array:Int32Array,fC=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],dC=["_approximateExtent"],gC=function(){function t(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var i,n=!1;bc(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,i=t),i=i||["x","y"];for(var r={},o=[],a={},s=!1,l={},u=0;u<i.length;u++){var h=i[u],c=T(h)?new aC({name:h}):h instanceof aC?h:new aC(h),p=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=p,c.coordDimIndex=0);var f=c.otherDims=c.otherDims||{};o.push(p),r[p]=c,null!=l[p]&&(s=!0),c.createInvertedIndices&&(a[p]=[]),0===f.itemName&&(this._nameDimIdx=u),0===f.itemId&&(this._idDimIdx=u),n&&(c.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=r,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var g=this._dimIdxToName=U();d(o,function(t){g.set(r[t].storeDimIndex,t)})}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var i=this._dimIdxToName.get(e);if(null!=i)return i;var n=this._schema.getSourceDimension(e);return n?n.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var i=this._getDimInfo(t);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){return C(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0)?+t:void 0},t.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var i=this._dimSummary;if(null==e)return i.encodeFirstDimNotExtra[t];var n=i.encode[t];return n?n[e]:null},t.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,i){var n,r=this;if(t instanceof jS&&(n=t),!n){var o=this.dimensions,a=Sl(t)||f(t)?new MS(t,o.length):t;n=new jS;var s=cC(o,function(t){return{type:r._dimInfos[t].type,property:t}});n.initData(a,s,i)}this._store=n,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,n.count()),this._dimSummary=mc(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var i=this._store.appendValues(t,e.length),n=i.start,r=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=n;r>a;a++){var s=a-n;this._nameList[a]=e[s],o&&iC(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,i=0;i<e.length;i++){var n=this._dimInfos[e[i]];n.ordinalMeta&&t.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==Zb&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var r=this._nameList,o=this._idList;if(n.getSource().sourceFormat===Ub&&!n.pure)for(var a=[],s=t;e>s;s++){var l=n.getItem(s,a);if(!this.hasItemOption&&dn(l)&&(this.hasItemOption=!0),l){var u=l.name;null==r[s]&&null!=u&&(r[s]=Tn(u,null));var h=l.id;null==o[s]&&null!=h&&(o[s]=Tn(h,null))}}if(this._shouldMakeIdFromName())for(var s=t;e>s;s++)iC(this,s);KM(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){hC(t)?l(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),i=this._nameList[e];return null==i&&null!=this._nameDimIdx&&(i=$M(this,this._nameDimIdx,e)),null==i&&(i=""),i},t.prototype._getCategory=function(t,e){var i=this._store.get(t,e),n=this._store.getOrdinalMeta(t);return n?n.categories[i]:i},t.prototype.getId=function(t){return QM(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var i=this._store,n=this._dimInfos[t];return n?i.get(n.storeDimIndex,e):void 0},t.prototype.getByRawIndex=function(t,e){var i=this._store,n=this._dimInfos[t];return n?i.getByRawIndex(n.storeDimIndex,e):void 0},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var i=this,n=this._store;return b(t)?n.getValues(cC(t,function(t){return i._getStoreDimIndex(t)}),e):n.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,i=0,n=e.length;n>i;i++)if(isNaN(this._store.get(e[i],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,i=this._store.count();i>e;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var i=t&&this._invertedIndicesMap[t],n=i[e];return null==n||isNaN(n)?-1:n},t.prototype.indicesOfNearest=function(t,e,i){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,i)},t.prototype.each=function(t,e,i){S(t)&&(i=e,e=t,t=[]);var n=i||this,r=cC(JM(t),this._getStoreDimIndex,this);this._store.each(r,n?Yv(e,n):e)},t.prototype.filterSelf=function(t,e,i){S(t)&&(i=e,e=t,t=[]);var n=i||this,r=cC(JM(t),this._getStoreDimIndex,this);return this._store=this._store.filter(r,n?Yv(e,n):e),this},t.prototype.selectRange=function(t){var e=this,i={},n=[];return d(_(t),function(r){var o=e._getStoreDimIndex(r);i[o]=t[r],n.push(o)}),this._store=this._store.selectRange(i),this},t.prototype.mapArray=function(t,e,i){S(t)&&(i=e,e=t,t=[]),i=i||this;var n=[];return this.each(t,function(){n.push(e&&e.apply(this,arguments))},i),n},t.prototype.map=function(t,e,i,n){var r=i||n||this,o=cC(JM(t),this._getStoreDimIndex,this),a=eC(this);return a._store=this._store.map(o,r?Yv(e,r):e),a},t.prototype.modify=function(t,e,i,n){var r=i||n||this,o=cC(JM(t),this._getStoreDimIndex,this);this._store.modify(o,r?Yv(e,r):e)},t.prototype.downSample=function(t,e,i,n){var r=eC(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,i,n),r},t.prototype.lttbDownSample=function(t,e){var i=eC(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),i},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,i=this.getRawDataItem(t);return new cb(i,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new rC(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(e){return QM(t,e)},function(t){return QM(e,t)})},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},hC(t)?l(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var i=this._itemVisuals[t],n=i&&i[e];return null==n?this.getVisual(e):n},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var i=this._itemVisuals,n=i[t];n||(n=i[t]={});var r=n[e];return null==r&&(r=this.getVisual(e),b(r)?r=r.slice():hC(r)&&(r=l({},r)),n[e]=r),r},t.prototype.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,hC(e)?l(n,e):n[e]=i},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){hC(t)?l(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?l(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var i=this.hostModel&&this.hostModel.seriesIndex;Sx(i,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){d(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:cC(this.dimensions,this._getDimInfo,this),this.hostModel)),tC(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var i=this[t];S(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.apply(this,[t].concat(z(arguments)))})},t.internalField=function(){KM=function(t){var e=t._invertedIndicesMap;d(e,function(i,n){var r=t._dimInfos[n],o=r.ordinalMeta,a=t._store;if(o){i=e[n]=new pC(o.categories.length);for(var s=0;s<i.length;s++)i[s]=-1;for(var s=0;s<a.count();s++)i[a.get(r.storeDimIndex,s)]=s}})},$M=function(t,e,i){return Tn(t._getCategory(e,i),null)},QM=function(t,e){var i=t._idList[e];return null==i&&null!=t._idDimIdx&&(i=$M(t,t._idDimIdx,e)),null==i&&(i="e\0\0"+e),i},JM=function(t){return b(t)||(t=null!=t?[t]:[]),t},eC=function(e){var i=new t(e._schema?e._schema:cC(e.dimensions,e._getDimInfo,e),e.hostModel);return tC(i,e),i},tC=function(t,e){d(fC.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods,d(dC,function(i){t[i]=o(e[i])}),t._calculationInfo=l({},e._calculationInfo)},iC=function(t,e){var i=t._nameList,n=t._idList,r=t._nameDimIdx,o=t._idDimIdx,a=i[e],s=n[e];if(null==a&&null!=r&&(i[e]=a=$M(t,r,e)),null==s&&null!=o&&(n[e]=s=$M(t,o,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),n[e]=s}}}(),t}(),vC=function(){function t(t){this.coordSysDims=[],this.axisMap=U(),this.categoryAxisMap=U(),this.coordSysName=t}return t}(),yC={cartesian2d:function(t,e,i,n){var r=t.getReferringComponents("xAxis",t_).models[0],o=t.getReferringComponents("yAxis",t_).models[0];e.coordSysDims=["x","y"],i.set("x",r),i.set("y",o),Oc(r)&&(n.set("x",r),e.firstCategoryDimIndex=0),Oc(o)&&(n.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,i,n){var r=t.getReferringComponents("singleAxis",t_).models[0];e.coordSysDims=["single"],i.set("single",r),Oc(r)&&(n.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,i,n){var r=t.getReferringComponents("polar",t_).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],i.set("radius",o),i.set("angle",a),Oc(o)&&(n.set("radius",o),e.firstCategoryDimIndex=0),Oc(a)&&(n.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e){e.coordSysDims=["lng","lat"]},parallel:function(t,e,i,n){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();d(o.parallelAxisIndex,function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];i.set(l,s),Oc(s)&&(n.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))})}},mC=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();jn(mC);var _C=0,xC=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++_C}return t.createByAxisModel=function(e){var i=e.option,n=i.data,r=n&&g(n,Vc);return new t({categories:r,needCollect:!r,deduplication:!1!==i.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,i=this._needCollect;if(!T(t)&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=this._getOrCreateMap();return e=n.get(t),null==e&&(i?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=U(this.categories))},t}(),wC=function(t){function i(e){var i=t.call(this,e)||this;i.type="ordinal";var n=i.getSetting("ordinalMeta");return n||(n=new xC({})),b(n)&&(n=new xC({categories:g(n,function(t){return I(t)?t.value:t})})),i._ordinalMeta=n,i._extent=i.getSetting("extent")||[0,n.categories.length-1],i}return e(i,t),i.prototype.parse=function(t){return null==t?NaN:T(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},i.prototype.contain=function(t){return t=this.parse(t),Zc(t,this._extent)&&null!=this._ordinalMeta.categories[t]},i.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Kc(t,this._extent)},i.prototype.scale=function(t){return t=Math.round(Qc(t,this._extent)),this.getRawOrdinalNumber(t)},i.prototype.getTicks=function(){for(var t=[],e=this._extent,i=e[0];i<=e[1];)t.push({value:i}),i++;return t},i.prototype.getMinorTicks=function(){},i.prototype.setSortInfo=function(t){if(null==t)return void(this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null);for(var e=t.ordinalNumbers,i=this._ordinalNumbersByTick=[],n=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);a>r;++r){var s=e[r];i[r]=s,n[s]=r}for(var l=0;o>r;++r){for(;null!=n[l];)l++;i.push(l),n[l]=r}},i.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},i.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},i.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),i=this._ordinalMeta.categories[e];return null==i?"":i+""}},i.prototype.count=function(){return this._extent[1]-this._extent[0]+1},i.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},i.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},i.prototype.getOrdinalMeta=function(){return this._ordinalMeta},i.prototype.calcNiceTicks=function(){},i.prototype.calcNiceExtent=function(){},i.type="ordinal",i}(mC);mC.registerClass(wC);var bC=Hi,SC=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return e(i,t),i.prototype.parse=function(t){return t},i.prototype.contain=function(t){return Zc(t,this._extent)},i.prototype.normalize=function(t){return Kc(t,this._extent)},i.prototype.scale=function(t){return Qc(t,this._extent)},i.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(e)||(i[1]=parseFloat(e))},i.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},i.prototype.getInterval=function(){return this._interval},i.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=jc(t)},i.prototype.getTicks=function(t){var e=this._interval,i=this._extent,n=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;i[0]<n[0]&&o.push(t?{value:bC(n[0]-e,r)}:{value:i[0]});for(var a=n[0];a<=n[1]&&(o.push({value:a}),(a=bC(a+e,r))!==o[o.length-1].value);)if(o.length>1e4)return[];var s=o.length?o[o.length-1].value:n[1];return i[1]>s&&o.push(t?{value:bC(s+e,r)}:{value:i[1]}),o},i.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),i=[],n=this.getExtent(),r=1;r<e.length;r++){for(var o=e[r],a=e[r-1],s=0,l=[],u=o.value-a.value,h=u/t;t-1>s;){var c=bC(a.value+(s+1)*h);c>n[0]&&c<n[1]&&l.push(c),s++}i.push(l)}return i},i.prototype.getLabel=function(t,e){if(null==t)return"";var i=e&&e.precision;return null==i?i=Wi(t.value)||0:"auto"===i&&(i=this._intervalPrecision),Ss(bC(t.value,i,!0))},i.prototype.calcNiceTicks=function(t,e,i){t=t||5;var n=this._extent,r=n[1]-n[0];if(isFinite(r)){0>r&&(r=-r,n.reverse());var o=Xc(n,t,e,i);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},i.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var i=Math.abs(e[0]);t.fixMax?e[0]-=i/2:(e[1]+=i/2,e[0]-=i/2)}else e[1]=1;var n=e[1]-e[0];isFinite(n)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=bC(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=bC(Math.ceil(e[1]/r)*r))},i.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},i.type="interval",i}(mC);mC.registerClass(SC);var TC="undefined"!=typeof Float32Array,MC=TC?Float32Array:Array,CC="__ec_stack_",IC=function(t,e,i,n){for(;n>i;){var r=i+n>>>1;t[r][1]<e?i=r+1:n=r}return i},kC=function(t){function i(e){var i=t.call(this,e)||this;return i.type="time",i}return e(i,t),i.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return rs(t.value,kb[ns(es(this._minLevelUnit))]||kb.second,e,this.getSetting("locale"))},i.prototype.getFormattedLabel=function(t,e,i){var n=this.getSetting("useUTC");return os(t,e,i,this.getSetting("locale"),n)},i.prototype.getTicks=function(){var t=this._interval,e=this._extent,i=[];if(!t)return i;i.push({value:e[0],level:0});var n=this.getSetting("useUTC"),r=gp(this._minLevelUnit,this._approxInterval,n,e);return i=i.concat(r),i.push({value:e[1],level:0}),i},i.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=Tb,e[1]+=Tb),e[1]===-1/0&&1/0===e[0]){var i=new Date;e[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),e[0]=e[1]-Tb}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},i.prototype.calcNiceTicks=function(t,e,i){t=t||10;var n=this._extent,r=n[1]-n[0];this._approxInterval=r/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=i&&this._approxInterval>i&&(this._approxInterval=i);var o=AC.length,a=Math.min(IC(AC,this._approxInterval,0,o),o-1);this._interval=AC[a][1],this._minLevelUnit=AC[Math.max(a-1,0)][0]},i.prototype.parse=function(t){return C(t)?t:+Qi(t)},i.prototype.contain=function(t){return Zc(this.parse(t),this._extent)},i.prototype.normalize=function(t){return Kc(this.parse(t),this._extent)},i.prototype.scale=function(t){return Qc(t,this._extent)},i.type="time",i}(SC),AC=[["second",wb],["minute",bb],["hour",Sb],["quarter-day",6*Sb],["half-day",12*Sb],["day",1.2*Tb],["half-week",3.5*Tb],["week",7*Tb],["month",31*Tb],["quarter",95*Tb],["half-year",Mb/2],["year",Mb]];mC.registerClass(kC);var DC=mC.prototype,PC=SC.prototype,OC=Hi,LC=Math.floor,EC=Math.ceil,RC=Math.pow,BC=Math.log,NC=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new SC,e._interval=0,e}return e(i,t),i.prototype.getTicks=function(t){var e=this._originalScale,i=this._extent,n=e.getExtent();return g(PC.getTicks.call(this,t),function(t){var e=t.value,r=Hi(RC(this.base,e));return r=e===i[0]&&this._fixMin?vp(r,n[0]):r,r=e===i[1]&&this._fixMax?vp(r,n[1]):r,{value:r}},this)},i.prototype.setExtent=function(t,e){var i=BC(this.base);t=BC(Math.max(0,t))/i,e=BC(Math.max(0,e))/i,PC.setExtent.call(this,t,e)},i.prototype.getExtent=function(){var t=this.base,e=DC.getExtent.call(this);e[0]=RC(t,e[0]),e[1]=RC(t,e[1]);var i=this._originalScale,n=i.getExtent();return this._fixMin&&(e[0]=vp(e[0],n[0])),this._fixMax&&(e[1]=vp(e[1],n[1])),e},i.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=BC(t[0])/BC(e),t[1]=BC(t[1])/BC(e),DC.unionExtent.call(this,t)},i.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},i.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(1/0===i||0>=i)){var n=$i(i),r=t/i*n;for(.5>=r&&(n*=10);!isNaN(n)&&Math.abs(n)<1&&Math.abs(n)>0;)n*=10;var o=[Hi(EC(e[0]/n)*n),Hi(LC(e[1]/n)*n)];this._interval=n,this._niceExtent=o}},i.prototype.calcNiceExtent=function(t){PC.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},i.prototype.parse=function(t){return t},i.prototype.contain=function(t){return t=BC(t)/BC(this.base),Zc(t,this._extent)},i.prototype.normalize=function(t){return t=BC(t)/BC(this.base),Kc(t,this._extent)},i.prototype.scale=function(t){return t=Qc(t,this._extent),RC(this.base,t)},i.type="log",i}(mC),zC=NC.prototype;zC.getMinorTicks=PC.getMinorTicks,zC.getLabel=PC.getLabel,mC.registerClass(NC);var FC=function(){function t(t,e,i){this._prepareParams(t,e,i)}return t.prototype._prepareParams=function(t,e,i){i[1]<i[0]&&(i=[NaN,NaN]),this._dataMin=i[0],this._dataMax=i[1];var n=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var r=this._modelMinRaw=e.get("min",!0);S(r)?this._modelMinNum=mp(t,r({min:i[0],max:i[1]})):"dataMin"!==r&&(this._modelMinNum=mp(t,r));var o=this._modelMaxRaw=e.get("max",!0);if(S(o)?this._modelMaxNum=mp(t,o({min:i[0],max:i[1]})):"dataMax"!==o&&(this._modelMaxNum=mp(t,o)),n)this._axisDataLen=e.getCategories().length;else{var a=e.get("boundaryGap"),s=b(a)?a:[a||0,a||0];this._boundaryGapInner="boolean"==typeof s[0]||"boolean"==typeof s[1]?[0,0]:[bi(s[0],1),bi(s[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,i=this._dataMax,n=this._axisDataLen,r=this._boundaryGapInner,o=t?null:i-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?i:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=t?n?0:NaN:e-r[0]*o),null==s&&(s=t?n?n-1:NaN:i+r[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var h=E(a)||E(s)||t&&!n;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),0>a&&0>s&&!u&&(s=0));var c=this._determinedMin,p=this._determinedMax;return null!=c&&(a=c,l=!0),null!=p&&(s=p,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:h}},t.prototype.modifyDataMinMax=function(t,e){this[HC[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[YC[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),YC={min:"_determinedMin",max:"_determinedMax"},HC={min:"_dataMin",max:"_dataMax"},VC=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}(),WC={isDimensionStacked:Rc,enableDataStack:Lc,getStackedDimension:Bc},XC=(Object.freeze||Object)({createList:Pp,getLayoutRect:Os,dataStack:WC,createScale:Op,mixinAxisModelCommonMethods:Lp,getECData:bx,createTextStyle:Ep,createDimensions:Cc,createSymbol:nh,enableHoverEmphasis:ko}),UC=[],jC={registerPreprocessor:ec,registerProcessor:ic,registerPostInit:nc,registerPostUpdate:rc,registerUpdateLifecycle:oc,registerAction:ac,registerCoordinateSystem:sc,registerLayout:uc,registerVisual:hc,registerTransform:ZM,registerLoading:pc,registerMap:dc,registerImpl:Wh,PRIORITY:aM,ComponentModel:zb,ComponentView:tT,SeriesModel:JS,ChartView:nT,registerComponentModel:function(t){zb.registerClass(t)},registerComponentView:function(t){tT.registerClass(t)},registerSeriesModel:function(t){JS.registerClass(t)},registerChartView:function(t){nT.registerClass(t)},registerSubTypeDefaulter:function(t,e){zb.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Ni(t,e)}},GC=1e-8,qC=[],ZC=function(){function t(t){this.name=t}return t.prototype.setCenter=function(t){this._center=t},t.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},t}(),KC=function(){function t(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return t}(),QC=function(){function t(t){this.type="linestring",this.points=t}return t}(),$C=function(t){function i(e,i,n){var r=t.call(this,e)||this;return r.type="geoJSON",r.geometries=i,r._center=n&&[n[0],n[1]],r}return e(i,t),i.prototype.calcCenter=function(){for(var t,e=this.geometries,i=0,n=0;n<e.length;n++){var r=e[n],o=r.exterior,a=o&&o.length;a>i&&(t=r,i=a)}if(t)return Yp(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},i.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var i=[1/0,1/0],n=[-1/0,-1/0];return d(this.geometries,function(e){"polygon"===e.type?Fp(e.exterior,i,n,t):d(e.points,function(e){Fp(e,i,n,t)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(n[0])&&isFinite(n[1])||(i[0]=i[1]=n[0]=n[1]=0),e=new by(i[0],i[1],n[0]-i[0],n[1]-i[1]),t||(this._rect=e),e},i.prototype.contain=function(t){var e=this.getBoundingRect(),i=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var n=0,r=i.length;r>n;n++){var o=i[n];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(Np(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(Np(s[l],t[0],t[1]))continue t;return!0}}}return!1},i.prototype.transformTo=function(t,e,i,n){var r=this.getBoundingRect(),o=r.width/r.height;i?n||(n=i/o):i=o*n;for(var a=new by(t,e,i,n),s=r.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++){var h=l[u];"polygon"===h.type?(zp(h.exterior,s),d(h.interiors,function(t){zp(t,s)})):d(h.points,function(t){zp(t,s)})}r=this._rect,r.copy(a),this._center=[r.x+r.width/2,r.y+r.height/2]},i.prototype.cloneShallow=function(t){null==t&&(t=this.name);var e=new i(t,this.geometries,this._center);return e._rect=this._rect,e.transformTo=null,e},i}(ZC),JC=(function(t){function i(e,i){var n=t.call(this,e)||this;return n.type="geoSVG",n._elOnlyForCalculate=i,n}e(i,t),i.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),i=[e.x+e.width/2,e.y+e.height/2],n=Bt(qC),r=t;r&&!r.isGeoSVGGraphicRoot;)zt(n,r.getLocalTransform(),n),r=r.parent;return Vt(n,n),gt(i,i,n),i}}(ZC),(Object.freeze||Object)({linearMap:Fi,round:Hi,asc:Vi,getPrecision:Wi,getPrecisionSafe:Xi,getPixelPrecision:Ui,getPercentWithPrecision:ji,MAX_SAFE_INTEGER:9007199254740991,remRadian:Zi,isRadianAroundZero:Ki,parseDate:Qi,quantity:$i,quantityExponent:Ji,nice:tn,quantile:en,reformIntervals:nn,isNumeric:on,numericToNumber:rn})),tI=(Object.freeze||Object)({parse:Qi,format:rs}),eI=(Object.freeze||Object)({extendShape:pa,extendPath:fa,makePath:va,makeImage:ya,mergePath:Gw,resizePath:_a,createIcon:Da,updateProps:oa,initProps:aa,getTransform:ba,clipPointsByRect:ka,clipRectByRect:Aa,registerShape:da,getShapeClass:ga,Group:Vm,Image:hx,Text:yx,Circle:ew,Ellipse:nw,Sector:vw,Ring:mw,Polygon:xw,Polyline:bw,Rect:dx,Line:Mw,BezierCurve:kw,Arc:Dw,IncrementalDisplayable:Hw,CompoundPath:Pw,LinearGradient:Lw,RadialGradient:Ew,BoundingRect:by}),iI=(Object.freeze||Object)({addCommas:Ss,toCamelCase:Ts,normalizeCssArray:Pb,encodeHTML:Mt,formatTpl:Cs,getTooltipMarker:Is,formatTime:ks,capitalFirst:As,truncateText:$n,getTextRect:bs}),nI=(Object.freeze||Object)({map:g,each:d,indexOf:h,inherits:c,reduce:v,filter:y,bind:Yv,curry:w,isArray:b,isString:T,isObject:I,isFunction:S,extend:l,defaults:u,clone:o,merge:a}),rI=Dn(),oI=[0,1],aI=function(){function t(t,e,i){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=i||[0,0]}return t.prototype.contain=function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&n>=t},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return Ui(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var i=this._extent;i[0]=t,i[1]=e},t.prototype.dataToCoord=function(t,e){var i=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&"ordinal"===n.type&&(i=i.slice(),af(i,n.count())),Fi(t,oI,i,e)},t.prototype.coordToData=function(t,e){var i=this._extent,n=this.scale;this.onBand&&"ordinal"===n.type&&(i=i.slice(),af(i,n.count()));var r=Fi(t,i,oI,e);return this.scale.scale(r)},t.prototype.pointToData=function(){},t.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),i=jp(this,e),n=i.ticks,r=g(n,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this);return sf(this,r,e.get("alignWithLabel"),t.clamp),r},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");return e>0&&100>e||(e=5),g(this.scale.getMinorTicks(e),function(t){return g(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this)},t.prototype.getViewLabels=function(){return Up(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),i=e[1]-e[0]+(this.onBand?1:0);0===i&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i},t.prototype.calculateCategoryInterval=function(){return ef(this)},t}(),sI=2*Math.PI,lI=q_.CMD,uI=["top","right","bottom","left"],hI=[],cI=new fy,pI=new fy,fI=new fy,dI=new fy,gI=new fy,vI=[],yI=new fy,mI=["align","verticalAlign","width","height","fontSize"],_I=new Lm,xI=Dn(),wI=Dn(),bI=["x","y","rotation"],SI=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,i,n,r){var o=n.style,a=n.__hostTarget,s=a.textConfig||{},l=n.getComputedTransform(),u=n.getBoundingRect().plain();by.applyTransform(u,u,l),l?_I.setLocalTransform(l):(_I.x=_I.y=_I.rotation=_I.originX=_I.originY=0,_I.scaleX=_I.scaleY=1);var h,c=n.__hostTarget;if(c){h=c.getBoundingRect().plain();var p=c.getComputedTransform();by.applyTransform(h,h,p)}var f=h&&c.getTextGuideLine();this._labelList.push({label:n,labelLine:f,seriesModel:i,dataIndex:t,dataType:e,layoutOption:r,computedLayoutOption:null,rect:u,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:f&&f.ignore,x:_I.x,y:_I.y,scaleX:_I.scaleX,scaleY:_I.scaleY,rotation:_I.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:n.cursor,attachedPos:s.position,attachedRot:s.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var i=t.__model,n=i.get("labelLayout");(S(n)||_(n).length)&&t.group.traverse(function(t){if(t.ignore)return!0;var r=t.getTextContent(),o=bx(t);r&&!r.disableLabelLayout&&e._addLabel(o.dataIndex,o.dataType,i,r,n)})},t.prototype.updateLayoutConfig=function(t){for(var e=t.getWidth(),i=t.getHeight(),n=0;n<this._labelList.length;n++){var r=this._labelList[n],o=r.label,a=o.__hostTarget,s=r.defaultAttr,l=void 0;l=S(r.layoutOption)?r.layoutOption(Df(r,a)):r.layoutOption,l=l||{},r.computedLayoutOption=l;var u=Math.PI/180;a&&a.setTextConfig({local:!1,position:null!=l.x||null!=l.y?null:s.attachedPos,rotation:null!=l.rotate?l.rotate*u:s.attachedRot,offset:[l.dx||0,l.dy||0]});var h=!1;if(null!=l.x?(o.x=Yi(l.x,e),o.setStyle("x",0),h=!0):(o.x=s.x,o.setStyle("x",s.style.x)),null!=l.y?(o.y=Yi(l.y,i),o.setStyle("y",0),h=!0):(o.y=s.y,o.setStyle("y",s.style.y)),l.labelLinePoints){var c=a.getTextGuideLine();c&&(c.setShape({points:l.labelLinePoints}),h=!1)}xI(o).needsUpdateLabelLine=h,o.rotation=null!=l.rotate?l.rotate*u:s.rotation,o.scaleX=s.scaleX,o.scaleY=s.scaleY;for(var p=0;p<mI.length;p++){var f=mI[p];o.setStyle(f,null!=l[f]?l[f]:s.style[f])}if(l.draggable){if(o.draggable=!0,o.cursor="move",a){var d=r.seriesModel;if(null!=r.dataIndex){var g=r.seriesModel.getData(r.dataType);d=g.getItemModel(r.dataIndex)}o.on("drag",function(t,e){return function(){mf(t,e)}}(a,d.getModel("labelLine")))}}else o.off("drag"),o.cursor=s.cursor}},t.prototype.layout=function(t){var e=t.getWidth(),i=t.getHeight(),n=Tf(this._labelList),r=y(n,function(t){return"shiftX"===t.layoutOption.moveOverlap}),o=y(n,function(t){return"shiftY"===t.layoutOption.moveOverlap});Cf(r,0,e),If(o,0,i),kf(y(n,function(t){return t.layoutOption.hideOverlap}))},t.prototype.processLabelsOverall=function(){var t=this;d(this._chartViewList,function(e){var i=e.__model,n=e.ignoreLabelLineUpdate,r=i.isAnimationEnabled();e.group.traverse(function(e){if(e.ignore&&!e.forceLabelAnimation)return!0;var o=!n,a=e.getTextContent();!o&&a&&(o=xI(a).needsUpdateLabelLine),o&&t._updateLabelLine(e,i),r&&t._animateLabels(e,i)})})},t.prototype._updateLabelLine=function(t,e){var i=t.getTextContent(),n=bx(t),r=n.dataIndex;if(i&&null!=r){var o=e.getData(n.dataType),a=o.getItemModel(r),s={},l=o.getItemVisual(r,"style"),u=o.getVisual("drawType");s.stroke=l[u];var h=a.getModel("labelLine");bf(t,Sf(a),s),mf(t,h)}},t.prototype._animateLabels=function(t,e){var i=t.getTextContent(),n=t.getTextGuideLine();if(i&&(t.forceLabelAnimation||!i.ignore&&!i.invisible&&!t.disableLabelAnimation&&!sa(t))){var r=xI(i),o=r.oldLayout,a=bx(t),s=a.dataIndex,l={x:i.x,y:i.y,rotation:i.rotation},u=e.getData(a.dataType);if(o){i.attr(o);var c=t.prevStates;c&&(h(c,"select")>=0&&i.attr(r.oldLayoutSelect),h(c,"emphasis")>=0&&i.attr(r.oldLayoutEmphasis)),oa(i,l,e,s)}else if(i.attr(l),!tb(i).valueAnimation){var p=B(i.style.opacity,1);i.style.opacity=0,aa(i,{style:{opacity:p}},e,s)}if(r.oldLayout=l,i.states.select){var f=r.oldLayoutSelect={};Pf(f,l,bI),Pf(f,i.states.select,bI)}if(i.states.emphasis){var d=r.oldLayoutEmphasis={};Pf(d,l,bI),Pf(d,i.states.emphasis,bI)}qa(i,s,u,e,e)}if(n&&!n.ignore&&!n.invisible){var r=wI(n),o=r.oldLayout,g={points:n.shape.points};o?(n.attr({shape:o}),oa(n,{shape:g},e)):(n.setShape(g),n.style.strokePercent=0,aa(n,{style:{strokePercent:1}},e)),r.oldLayout=g}},t}(),TI=Dn();Rp(Of);var MI=function(t){function i(e,i,n){var r=t.call(this)||this;r.motionBlur=!1,r.lastFrameAlpha=.7,r.dpr=1,r.virtual=!1,r.config={},r.incremental=!1,r.zlevel=0,r.maxRepaintRectCount=5,r.__dirty=!0,r.__firstTimePaint=!0,r.__used=!1,r.__drawIndex=0,r.__startIndex=0,r.__endIndex=0,r.__prevStartIndex=null,r.__prevEndIndex=null;var o;n=n||Sm,"string"==typeof e?o=Lf(e,i,n):I(e)&&(o=e,e=o.id),r.id=e,r.dom=o;var a=o.style;return a&&(q(o),o.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),r.painter=i,r.dpr=n,r}return e(i,t),i.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},i.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},i.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},i.prototype.setUnpainted=function(){this.__firstTimePaint=!0},i.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=Lf("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},i.prototype.createRepaintRects=function(t,e,i,n){function r(t){if(t.isFinite()&&!t.isZero())if(0===o.length){var e=new by(0,0,0,0);e.copy(t),o.push(e)}else{for(var i=!1,n=1/0,r=0,u=0;u<o.length;++u){var h=o[u];if(h.intersect(t)){var c=new by(0,0,0,0);c.copy(h),c.union(t),o[u]=c,i=!0;break}if(s){l.copy(t),l.union(h);var p=t.width*t.height,f=h.width*h.height,d=l.width*l.height,g=d-p-f;n>g&&(n=g,r=u)}}if(s&&(o[r].union(t),i=!0),!i){var e=new by(0,0,0,0);e.copy(t),o.push(e)}s||(s=o.length>=a)}}if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;for(var o=[],a=this.maxRepaintRectCount,s=!1,l=new by(0,0,0,0),u=this.__startIndex;u<this.__endIndex;++u){var h=t[u];if(h){var c=h.shouldBePainted(i,n,!0,!0),p=h.__isRendered&&(h.__dirty&Oy||!c)?h.getPrevPaintRect():null;p&&r(p);var f=c&&(h.__dirty&Oy||!h.__isRendered)?h.getPaintRect():null;f&&r(f)}}for(var u=this.__prevStartIndex;u<this.__prevEndIndex;++u){var h=e[u],c=h.shouldBePainted(i,n,!0,!0);if(h&&(!c||!h.__zr)&&h.__isRendered){var p=h.getPrevPaintRect();p&&r(p)}}var d;do{d=!1;for(var u=0;u<o.length;)if(o[u].isZero())o.splice(u,1);else{for(var g=u+1;g<o.length;)o[u].intersect(o[g])?(d=!0,o[u].union(o[g]),o.splice(g,1)):g++;u++}}while(d);return this._paintRects=o,o},i.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},i.prototype.resize=function(t,e){var i=this.dpr,n=this.dom,r=n.style,o=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),n.width=t*i,n.height=e*i,o&&(o.width=t*i,o.height=e*i,1!==i&&this.ctxBack.scale(i,i))},i.prototype.clear=function(t,e,i){function n(t,i,n,r){if(o.clearRect(t,i,n,r),e&&"transparent"!==e){var a=void 0;if(P(e)){a=(e.global||e.__width===n&&e.__height===r)&&e.__canvasGradient||uh(o,e,{x:0,y:0,width:n,height:r}),e.__canvasGradient=a,e.__width=n,e.__height=r}else O(e)&&(e.scaleX=e.scaleX||h,e.scaleY=e.scaleY||h,a=xh(o,e,{dirty:function(){c.setUnpainted(),c.__painter.refresh()}}));o.save(),o.fillStyle=a||e,o.fillRect(t,i,n,r),o.restore()}l&&(o.save(),o.globalAlpha=u,o.drawImage(p,t,i,n,r),o.restore())}var r=this.dom,o=this.ctx,a=r.width,s=r.height;e=e||this.clearColor;var l=this.motionBlur&&!t,u=this.lastFrameAlpha,h=this.dpr,c=this;l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,a/h,s/h));var p=this.domBack;!i||l?n(0,0,a,s):i.length&&d(i,function(t){n(t.x*h,t.y*h,t.width*h,t.height*h)})},i}(ty),CI=314159,II=function(){function t(t,e,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var n=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=i=l({},i||{}),this.dpr=i.devicePixelRatio||Sm,this._singleCanvas=n,this.root=t,t.style&&(q(t),t.innerHTML=""),this.storage=e;var r=this._zlevelList;this._prevDisplayList=[];var o=this._layers;if(n){var a=t,s=a.width,u=a.height;null!=i.width&&(s=i.width),null!=i.height&&(u=i.height),this.dpr=i.devicePixelRatio||1,a.width=s*this.dpr,a.height=u*this.dpr,this._width=s,this._height=u;var h=new MI(a,this,this.dpr);h.__builtin__=!0,h.initContext(),o[CI]=h,h.zlevel=CI,r.push(CI),this._domRoot=t}else{this._width=ph(t,0,i),this._height=ph(t,1,i);var c=this._domRoot=Rf(this._width,this._height);t.appendChild(c)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();return t?{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}:void 0},t.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),i=this._prevDisplayList,n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,i,t,this._redrawId);for(var r=0;r<n.length;r++){var o=n[r],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===r?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e=t.length,i=this._hoverlayer;if(i&&i.clear(),e){for(var n,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;e>o;o++){var a=t[o];a.__inHover&&(i||(i=this._hoverlayer=this.getLayer(1e5)),n||(n=i.ctx,n.save()),Eh(n,a,r,o===e-1))}n&&n.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(1e5)},t.prototype.paintOne=function(t,e){Lh(t,e)},t.prototype._paintList=function(t,e,i,n){if(this._redrawId===n){i=i||!1,this._updateLayerStatus(t);var r=this._doPaintList(t,e,i),o=r.finished,a=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer(function(t){t.afterBrush&&t.afterBrush()});else{var s=this;By(function(){s._paintList(t,e,i,n)})}}},t.prototype._compositeManually=function(){var t=this.getLayer(CI).ctx,e=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,e,i),this.eachBuiltinLayer(function(n){n.virtual&&t.drawImage(n.dom,0,0,e,i)})},t.prototype._doPaintList=function(t,e,i){for(var n=this,r=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||i)&&r.push(l)}for(var u=!0,h=!1,c=this,p=0;p<r.length;p++)!function(a){var s=r[a],l=s.ctx,p=o&&s.createRepaintRects(t,e,c._width,c._height),f=i?s.__startIndex:s.__drawIndex,d=!i&&s.incremental&&Date.now,g=d&&Date.now(),v=s.zlevel===c._zlevelList[0]?c._backgroundColor:null;if(s.__startIndex===s.__endIndex)s.clear(!1,v,p);else if(f===s.__startIndex){var y=t[f];y.incremental&&y.notClear&&!i||s.clear(!1,v,p)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=s.__startIndex);var m,_=function(e){var i={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(m=f;m<s.__endIndex;m++){var r=t[m];if(r.__inHover&&(h=!0),n._doPaintEl(r,s,o,e,i,m===s.__endIndex-1),d){if(Date.now()-g>15)break}}i.prevElClipPaths&&l.restore()};if(p)if(0===p.length)m=s.__endIndex;else for(var x=c.dpr,w=0;w<p.length;++w){var b=p[w];l.save(),l.beginPath(),l.rect(b.x*x,b.y*x,b.width*x,b.height*x),l.clip(),_(b),l.restore()}else l.save(),_(),l.restore();s.__drawIndex=m,s.__drawIndex<s.__endIndex&&(u=!1)}(p);return xv.wxa&&d(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),{finished:u,needsRefreshHover:h}},t.prototype._doPaintEl=function(t,e,i,n,r,o){var a=e.ctx;if(i){var s=t.getPaintRect();(!n||s&&s.intersect(n))&&(Eh(a,t,r,o),t.setPrevPaintRect(s))}else Eh(a,t,r,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=CI);var i=this._layers[t];return i||(i=new MI("zr_"+t,this,this.dpr),i.zlevel=t,i.__builtin__=!0,this._layerConfig[t]?a(i,this._layerConfig[t],!0):this._layerConfig[t-.01]&&a(i,this._layerConfig[t-.01],!0),e&&(i.virtual=e),this.insertLayer(t,i),i.initContext()),i},t.prototype.insertLayer=function(t,e){var i=this._layers,n=this._zlevelList,r=n.length,o=this._domRoot,a=null,s=-1;if(!i[t]&&Ef(e)){if(r>0&&t>n[0]){for(s=0;r-1>s&&!(n[s]<t&&n[s+1]>t);s++);a=i[n[s]]}if(n.splice(s+1,0,t),i[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}},t.prototype.eachLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var r=i[n];t.call(e,this._layers[r],r)}},t.prototype.eachBuiltinLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var r=i[n],o=this._layers[r];o.__builtin__&&t.call(e,o,r)}},t.prototype.eachOtherLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var r=i[n],o=this._layers[r];o.__builtin__||t.call(e,o,r)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){s&&(s.__endIndex!==t&&(s.__dirty=!0),s.__endIndex=t)}if(this.eachBuiltinLayer(function(t){t.__dirty=t.__used=!1}),this._singleCanvas)for(var i=1;i<t.length;i++){var n=t[i];if(n.zlevel!==t[i-1].zlevel||n.incremental){this._needsManuallyCompositing=!0;break}}var o,a,s=null,l=0;for(a=0;a<t.length;a++){var n=t[a],u=n.zlevel,h=void 0;o!==u&&(o=u,l=0),n.incremental?(h=this.getLayer(u+.001,this._needsManuallyCompositing),h.incremental=!0,l=1):h=this.getLayer(u+(l>0?.01:0),this._needsManuallyCompositing),h.__builtin__||r("ZLevel "+u+" has been used by unkown layer "+h.id),h!==s&&(h.__used=!0,h.__startIndex!==a&&(h.__dirty=!0),h.__startIndex=a,h.__drawIndex=h.incremental?-1:a,e(a),s=h),n.__dirty&Oy&&!n.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__drawIndex=a))}e(a),this.eachBuiltinLayer(function(t){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,d(this._layers,function(t){t.setUnpainted()})},t.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?a(i[t],e,!0):i[t]=e;for(var n=0;n<this._zlevelList.length;n++){var r=this._zlevelList[n];if(r===t||r===t+.01){a(this._layers[r],i[t],!0)}}}},t.prototype.delLayer=function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],i.splice(h(i,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts,r=this.root;if(null!=t&&(n.width=t),null!=e&&(n.height=e),t=ph(r,0,n),e=ph(r,1,n),i.style.display="",this._width!==t||e!==this._height){i.style.width=t+"px",i.style.height=e+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(CI).resize(t,e)}return this},t.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[CI].dom;var e=new MI("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var i=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var n=e.dom.width,r=e.dom.height;this.eachLayer(function(t){t.__builtin__?i.drawImage(t.dom,0,0,n,r):t.renderToCanvas&&(i.save(),t.renderToCanvas(i),i.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;l>s;s++){var u=a[s];Eh(i,u,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}(),kI=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return e(i,t),i.prototype.init=function(e,i,n){t.prototype.init.call(this,e,i,n),this._sourceManager=new GS(this),tu(this)},i.prototype.mergeOption=function(e,i){t.prototype.mergeOption.call(this,e,i),tu(this)},i.prototype.optionUpdated=function(){this._sourceManager.dirty()},i.prototype.getSourceManager=function(){return this._sourceManager},i.type="dataset",i.defaultOption={seriesLayoutBy:Qb},i}(zb),AI=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return e(i,t),i.type="dataset",i}(tT);Rp([Bf,Nf]),Rp(Of);var DI=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e.hasSymbolVisual=!0,e}return e(i,t),i.prototype.getInitialData=function(){return Fc(null,this,{useEncodeDefaulter:!0})},i.prototype.getLegendIcon=function(t){var e=new Vm,i=nh("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(i),i.setStyle(t.lineStyle);var n=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===n?"circle":n,a=.8*t.itemHeight,s=nh(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?r:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},i.type="series.line",i.dependencies=["grid","polar"],i.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},i}(JS),PI=function(t){function i(e,i,n,r){var o=t.call(this)||this;return o.updateData(e,i,n,r),o}return e(i,t),i.prototype._createSymbol=function(t,e,i,n,r){this.removeAll();var o=nh(t,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),o.drift=Yf,this._symbolType=t,this.add(o)},i.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},i.prototype.getSymbolType=function(){return this._symbolType},i.prototype.getSymbolPath=function(){return this.childAt(0)},i.prototype.highlight=function(){ho(this.childAt(0))},i.prototype.downplay=function(){co(this.childAt(0))},i.prototype.setZ=function(t,e){var i=this.childAt(0);i.zlevel=t,i.z=e},i.prototype.setDraggable=function(t,e){var i=this.childAt(0);i.draggable=t,i.cursor=!e&&t?"move":i.cursor},i.prototype.updateData=function(t,e,n,r){this.silent=!1;var o=t.getItemVisual(e,"symbol")||"circle",a=t.hostModel,s=i.getSymbolSize(t,e),l=o!==this._symbolType,u=r&&r.disableAnimation;if(l){var h=t.getItemVisual(e,"symbolKeepAspect");this._createSymbol(o,t,e,s,h)}else{var c=this.childAt(0);c.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};u?c.attr(p):oa(c,p,a,e),ca(c)}if(this._updateCommon(t,e,s,n,r),l){var c=this.childAt(0);if(!u){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,aa(c,p,a,e)}}u&&this.childAt(0).stopAnimation("leave")},i.prototype._updateCommon=function(t,e,i,n,r){function o(e){return I?t.getName(e):zf(t,e)}var a,s,u,h,c,p,f,d,g,v=this.childAt(0),y=t.hostModel;if(n&&(a=n.emphasisItemStyle,s=n.blurItemStyle,u=n.selectItemStyle,h=n.focus,c=n.blurScope,f=n.labelStatesModels,d=n.hoverScale,g=n.cursorStyle,p=n.emphasisDisabled),!n||t.hasItemOption){var m=n&&n.itemModel?n.itemModel:t.getItemModel(e),_=m.getModel("emphasis");a=_.getModel("itemStyle").getItemStyle(),u=m.getModel(["select","itemStyle"]).getItemStyle(),s=m.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),c=_.get("blurScope"),p=_.get("disabled"),f=Ha(m),d=_.getShallow("scale"),g=m.getShallow("cursor")}var x=t.getItemVisual(e,"symbolRotate");v.attr("rotation",(x||0)*Math.PI/180||0);var w=oh(t.getItemVisual(e,"symbolOffset"),i);w&&(v.x=w[0],v.y=w[1]),g&&v.attr("cursor",g);var b=t.getItemVisual(e,"style"),S=b.fill;if(v instanceof hx){var T=v.style;v.useStyle(l({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},b))}else v.useStyle(v.__isEmptyBrush?l({},b):b),v.style.decal=null,v.setColor(S,r&&r.symbolInnerColor),v.style.strokeNoScale=!0;var M=t.getItemVisual(e,"liftZ"),C=this._z2;null!=M?null==C&&(this._z2=v.z2,v.z2+=M):null!=C&&(v.z2=C,this._z2=null);var I=r&&r.useNameLabel;Ya(v,f,{labelFetcher:y,labelDataIndex:e,defaultText:o,inheritColor:S,defaultOpacity:b.opacity}),this._sizeX=i[0]/2,this._sizeY=i[1]/2;var k=v.ensureState("emphasis");k.style=a,v.ensureState("select").style=u,v.ensureState("blur").style=s;var A=null==d||!0===d?Math.max(1.1,3/this._sizeY):isFinite(d)&&d>0?+d:1;k.scaleX=this._sizeX*A,k.scaleY=this._sizeY*A,this.setSymbolScale(1),Do(this,h,c,p)},i.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},i.prototype.fadeOut=function(t,e,i){var n=this.childAt(0),r=bx(this).dataIndex,o=i&&i.animation;if(this.silent=n.silent=!0,i&&i.fadeLabel){var a=n.getTextContent();a&&la(a,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){n.removeTextContent()}})}else n.removeTextContent();la(n,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},i.getSymbolSize=function(t,e){return rh(t.getItemVisual(e,"symbolSize"))},i}(Vm),OI=function(){function t(t){this.group=new Vm,this._SymbolCtor=t||PI}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=Vf(e);var i=this.group,n=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=Wf(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||i.removeAll(),t.diff(r).add(function(n){var r=u(n);if(Hf(t,r,n,e)){var a=new o(t,n,s,l);a.setPosition(r),t.setItemGraphicEl(n,a),i.add(a)}}).update(function(h,c){var p=r.getItemGraphicEl(c),f=u(h);if(!Hf(t,f,h,e))return void i.remove(p);var d=t.getItemVisual(h,"symbol")||"circle",g=p&&p.getSymbolType&&p.getSymbolType();if(!p||g&&g!==d)i.remove(p),p=new o(t,h,s,l),p.setPosition(f);else{p.updateData(t,h,s,l);var v={x:f[0],y:f[1]};a?p.attr(v):oa(p,v,n)}i.add(p),t.setItemGraphicEl(h,p)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut(function(){i.remove(e)},n)}).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(e,i){var n=t._getSymbolPoint(i);e.setPosition(n),e.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Wf(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,i){function n(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],i=Vf(i);for(var r=t.start;r<t.end;r++){var o=e.getItemLayout(r);if(Hf(e,o,r,i)){var a=new this._SymbolCtor(e,r,this._seriesScope);a.traverse(n),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(r,a),this._progressiveEls.push(a)}}},t.prototype.eachRendered=function(t){Na(this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,i=this._data;i&&t?i.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)},i.hostModel)}):e.removeAll()},t}(),LI=Math.min,EI=Math.max,RI=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),BI=function(t){function i(e){var i=t.call(this,e)||this;return i.type="ec-polyline",i}return e(i,t),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new RI},i.prototype.buildPath=function(t,e){var i=e.points,n=0,r=i.length/2;if(e.connectNulls){for(;r>0&&Zf(i[2*r-2],i[2*r-1]);r--);for(;r>n&&Zf(i[2*n],i[2*n+1]);n++);}for(;r>n;)n+=Kf(t,i,n,r,r,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},i.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i,n,r=this.path,o=r.data,a=q_.CMD,s="x"===e,l=[],u=0;u<o.length;){var h=o[u++],c=void 0,p=void 0,f=void 0,d=void 0,g=void 0,v=void 0,y=void 0;switch(h){case a.M:i=o[u++],n=o[u++];break;case a.L:if(c=o[u++],p=o[u++],1>=(y=s?(t-i)/(c-i):(t-n)/(p-n))&&y>=0){var m=s?(p-n)*y+n:(c-i)*y+i;return s?[t,m]:[m,t]}i=c,n=p;break;case a.C:c=o[u++],p=o[u++],f=o[u++],d=o[u++],g=o[u++],v=o[u++];var _=s?ue(i,c,f,g,t,l):ue(n,p,d,v,t,l);if(_>0)for(var x=0;_>x;x++){var w=l[x];if(1>=w&&w>=0){var m=s?se(n,p,d,v,w):se(i,c,f,g,w);return s?[t,m]:[m,t]}}i=g,n=v}}},i}(ox),NI=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i}(RI),zI=function(t){function i(e){var i=t.call(this,e)||this;return i.type="ec-polygon",i}return e(i,t),i.prototype.getDefaultShape=function(){return new NI},i.prototype.buildPath=function(t,e){var i=e.points,n=e.stackedOnPoints,r=0,o=i.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&Zf(i[2*o-2],i[2*o-1]);o--);for(;o>r&&Zf(i[2*r],i[2*r+1]);r++);}for(;o>r;){var s=Kf(t,i,r,o,o,1,e.smooth,a,e.connectNulls);Kf(t,n,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}},i}(ox),FI=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i.prototype.init=function(){var t=new Vm,e=new OI;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},i.prototype.render=function(t,e,i){var n=this,r=t.coordinateSystem,o=this.group,a=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),h=a.getLayout("points")||[],c="polar"===r.type,p=this._coordSys,f=this._symbolDraw,d=this._polyline,g=this._polygon,v=this._lineGroup,y=t.get("animation"),m=!l.isEmpty(),_=l.get("origin"),x=Xf(r,a,_),w=m&&rd(r,a,x),b=t.get("showSymbol"),S=t.get("connectNulls"),T=b&&!c&&ld(t,a,r),M=this._data;M&&M.eachItemGraphicEl(function(t,e){t.__temp&&(o.remove(t),M.setItemGraphicEl(e,null))}),b||f.remove(),o.add(v);var C,I=!c&&t.get("step");r&&r.getArea&&t.get("clip",!0)&&(C=r.getArea(),null!=C.width?(C.x-=.1,C.y-=.1,C.width+=.2,C.height+=.2):C.r0&&(C.r0-=.5,C.r+=.5)),this._clipShapeForSymbol=C;var k=sd(a,r,i)||a.getVisual("style")[a.getVisual("drawType")];if(d&&p.type===r.type&&I===this._step){m&&!g?g=this._newPolygon(h,w):g&&!m&&(v.remove(g),g=this._polygon=null),c||this._initOrUpdateEndLabel(t,r,Ds(k));var A=v.getClipPath();if(A){aa(A,{shape:gd(this,r,!1,t).shape},t)}else v.setClipPath(gd(this,r,!0,t));b&&f.updateData(a,{isIgnore:T,clipShape:C,disableAnimation:!0,getSymbolPoint:function(t){return[h[2*t],h[2*t+1]]}}),td(this._stackedOnPoints,w)&&td(this._points,h)||(y?this._doUpdateAnimation(a,w,r,i,I,_,S):(I&&(h=od(h,r,I,S),w&&(w=od(w,r,I,S))),d.setShape({points:h}),g&&g.setShape({points:h,stackedOnPoints:w})))}else b&&f.updateData(a,{isIgnore:T,clipShape:C,disableAnimation:!0,getSymbolPoint:function(t){return[h[2*t],h[2*t+1]]}}),y&&this._initSymbolLabelAnimation(a,r,C),I&&(h=od(h,r,I,S),w&&(w=od(w,r,I,S))),d=this._newPolyline(h),m?g=this._newPolygon(h,w):g&&(v.remove(g),g=this._polygon=null),c||this._initOrUpdateEndLabel(t,r,Ds(k)),v.setClipPath(gd(this,r,!0,t));var D=t.getModel("emphasis"),P=D.get("focus"),O=D.get("blurScope"),L=D.get("disabled");if(d.useStyle(u(s.getLineStyle(),{fill:"none",stroke:k,lineJoin:"bevel"})),Oo(d,t,"lineStyle"),d.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])){d.getState("emphasis").style.lineWidth=+d.style.lineWidth+1}bx(d).seriesIndex=t.seriesIndex,Do(d,P,O,L);var E=nd(t.get("smooth")),R=t.get("smoothMonotone");if(d.setShape({smooth:E,smoothMonotone:R,connectNulls:S}),g){var B=a.getCalculationInfo("stackedOnSeries"),N=0;g.useStyle(u(l.getAreaStyle(),{fill:k,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),B&&(N=nd(B.get("smooth"))),g.setShape({smooth:E,stackedOnSmooth:N,smoothMonotone:R,connectNulls:S}),Oo(g,t,"areaStyle"),bx(g).seriesIndex=t.seriesIndex,Do(g,P,O,L)}var z=function(t){n._changePolyState(t)};a.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=z)}),this._polyline.onHoverStateChange=z,this._data=a,this._coordSys=r,this._stackedOnPoints=w,this._points=h,this._step=I,this._valueOrigin=_,t.get("triggerLineEvent")&&(this.packEventData(t,d),g&&this.packEventData(t,g))},i.prototype.packEventData=function(t,e){bx(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},i.prototype.highlight=function(t,e,i,n){var r=t.getData(),o=An(r,n);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var h=t.get("zlevel")||0,c=t.get("z")||0;s=new PI(r,o),s.x=l,s.y=u,s.setZ(h,c);var p=s.getSymbolPath().getTextContent();p&&(p.zlevel=h,p.z=c,p.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else nT.prototype.highlight.call(this,t,e,i,n)},i.prototype.downplay=function(t,e,i,n){var r=t.getData(),o=An(r,n);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else nT.prototype.downplay.call(this,t,e,i,n)},i.prototype._changePolyState=function(t){var e=this._polygon;eo(this._polyline,t),e&&eo(e,t)},i.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new BI({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},i.prototype._newPolygon=function(t,e){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new zI({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},i.prototype._initSymbolLabelAnimation=function(t,e,i){var n,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(n=o.isHorizontal(),r=!1):"polar"===e.type&&(n="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");S(l)&&(l=l(null));var u=s.get("animationDelay")||0,h=S(u)?u(null):u;t.eachItemGraphicEl(function(t,o){var s=t;if(s){var c=[t.x,t.y],p=void 0,f=void 0,d=void 0;if(i)if(r){var g=i,v=e.pointToCoord(c);n?(p=g.startAngle,f=g.endAngle,d=-v[1]/180*Math.PI):(p=g.r0,f=g.r,d=v[0])}else{var y=i;n?(p=y.x,f=y.x+y.width,d=t.x):(p=y.y+y.height,f=y.y,d=t.y)}var m=f===p?0:(d-p)/(f-p);a&&(m=1-m);var _=S(u)?u(o):l*m+h,x=s.getSymbolPath(),w=x.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:_}),w&&w.animateFrom({style:{opacity:0}},{duration:300,delay:_}),x.disableLabelAnimation=!0}})},i.prototype._initOrUpdateEndLabel=function(t,e,i){var n=t.getModel("endLabel");if(dd(t)){var r=t.getData(),o=this._polyline,a=r.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new yx({z2:200}),s.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=cd(a);l>=0&&(Ya(o,Ha(t,"endLabel"),{inheritColor:i,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,i){return null!=i?Ff(r,i):zf(r,t)},enableTextSetter:!0},vd(n,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},i.prototype._endLabelOnDuring=function(t,e,i,n,r,o,a){var s=this._endLabel,l=this._polyline;if(s){1>t&&null==n.originalX&&(n.originalX=s.x,n.originalY=s.y);var u=i.getLayout("points"),h=i.hostModel,c=h.get("connectNulls"),p=o.get("precision"),f=o.get("distance")||0,d=a.getBaseAxis(),g=d.isHorizontal(),v=d.inverse,y=e.shape,m=v?g?y.x:y.y+y.height:g?y.x+y.width:y.y,_=(g?f:0)*(v?-1:1),x=(g?0:-f)*(v?-1:1),w=g?"x":"y",b=fd(u,m,w),S=b.range,T=S[1]-S[0],M=void 0;if(T>=1){if(T>1&&!c){var C=pd(u,S[0]);s.attr({x:C[0]+_,y:C[1]+x}),r&&(M=h.getRawValue(S[0]))}else{var C=l.getPointOn(m,w);C&&s.attr({x:C[0]+_,y:C[1]+x});var I=h.getRawValue(S[0]),k=h.getRawValue(S[1]);r&&(M=Nn(i,p,I,k,b.t))}n.lastFrameIndex=S[0]}else{var A=1===t||n.lastFrameIndex>0?S[0]:0,C=pd(u,A);r&&(M=h.getRawValue(A)),s.attr({x:C[0]+_,y:C[1]+x})}r&&tb(s).setLabelText(M)}},i.prototype._doUpdateAnimation=function(t,e,i,n,r,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,h=qf(this._data,t,this._stackedOnPoints,e,this._coordSys,i,this._valueOrigin),c=h.current,p=h.stackedOnCurrent,f=h.next,d=h.stackedOnNext;if(r&&(c=od(h.current,i,r,a),p=od(h.stackedOnCurrent,i,r,a),f=od(h.next,i,r,a),d=od(h.stackedOnNext,i,r,a)),id(c,f)>3e3||l&&id(p,d)>3e3)return s.stopAnimation(),s.setShape({points:f}),void(l&&(l.stopAnimation(),l.setShape({points:f,stackedOnPoints:d})));s.shape.__points=h.current,s.shape.points=c;var g={shape:{points:f}};h.current!==c&&(g.shape.__points=h.next),s.stopAnimation(),oa(s,g,u),l&&(l.setShape({points:c,stackedOnPoints:p}),l.stopAnimation(),oa(l,{shape:{stackedOnPoints:d}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var v=[],y=h.status,m=0;m<y.length;m++){if("="===y[m].cmd){var _=t.getItemGraphicEl(y[m].idx1);_&&v.push({el:_,ptIdx:m})}}s.animators&&s.animators.length&&s.animators[0].during(function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<v.length;e++){var i=v[e].el,n=2*v[e].ptIdx;i.x=t[n],i.y=t[n+1],i.markRedraw()}})},i.prototype.remove=function(){var t=this.group,e=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),e&&e.eachItemGraphicEl(function(i,n){i.__temp&&(t.remove(i),e.setItemGraphicEl(n,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},i.type="line",i}(nT),YI={average:function(t){for(var e=0,i=0,n=0;n<t.length;n++)isNaN(t[n])||(e+=t[n],i++);return 0===i?NaN:e/i},sum:function(t){for(var e=0,i=0;i<t.length;i++)e+=t[i]||0;return e},max:function(t){for(var e=-1/0,i=0;i<t.length;i++)t[i]>e&&(e=t[i]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,i=0;i<t.length;i++)t[i]<e&&(e=t[i]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},HI=function(t){return Math.round(t.length/2)};Rp(_d);var VI=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i.type="grid",i.dependencies=["xAxis","yAxis"],i.layoutMode="box",i.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"},i}(zb),WI=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",t_).models[0]},i.type="cartesian2dAxis",i}(zb);p(WI,VC);var XI={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)"]}}},UI=a({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},XI),jI=a({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}}},XI),GI=a({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},jI),qI=u({logBase:10},jI),ZI={category:UI,value:jI,time:GI,log:qI},KI={value:1,category:1,time:1,log:1},QI=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return g(this._dimList,function(t){return this._axes[t]},this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),y(this.getAxes(),function(e){return e.scale.type===t})},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),$I=["x","y"],JI=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=$I,e}return e(i,t),i.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(bd(t)&&bd(e)){var i=t.getExtent(),n=e.getExtent(),r=this.dataToPoint([i[0],n[0]]),o=this.dataToPoint([i[1],n[1]]),a=i[1]-i[0],s=n[1]-n[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,h=r[0]-i[0]*l,c=r[1]-n[0]*u,p=this._transform=[l,0,0,u,h,c];this._invTransform=Vt([],p)}}},i.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},i.prototype.containPoint=function(t){var e=this.getAxis("x"),i=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&i.contain(i.toLocalCoord(t[1]))},i.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},i.prototype.containZone=function(t,e){var i=this.dataToPoint(t),n=this.dataToPoint(e),r=this.getArea(),o=new by(i[0],i[1],n[0]-i[0],n[1]-i[1]);return r.intersect(o)},i.prototype.dataToPoint=function(t,e,i){i=i||[];var n=t[0],r=t[1];if(this._transform&&null!=n&&isFinite(n)&&null!=r&&isFinite(r))return gt(i,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return i[0]=o.toGlobalCoord(o.dataToCoord(n,e)),i[1]=a.toGlobalCoord(a.dataToCoord(r,e)),i},i.prototype.clampData=function(t,e){var i=this.getAxis("x").scale,n=this.getAxis("y").scale,r=i.getExtent(),o=n.getExtent(),a=i.parse(t[0]),s=n.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},i.prototype.pointToData=function(t,e){var i=[];if(this._invTransform)return gt(i,t,this._invTransform);var n=this.getAxis("x"),r=this.getAxis("y");return i[0]=n.coordToData(n.toLocalCoord(t[0]),e),i[1]=r.coordToData(r.toLocalCoord(t[1]),e),i},i.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},i.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),i=Math.min(t[0],t[1]),n=Math.min(e[0],e[1]),r=Math.max(t[0],t[1])-i,o=Math.max(e[0],e[1])-n;return new by(i,n,r,o)},i}(QI),tk=function(t){function i(e,i,n,r,o){var a=t.call(this,e,i,n)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return e(i,t),i.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},i.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},i.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},i.prototype.setCategorySortInfo=function(t){return"category"===this.type&&(this.model.option.categorySortInfo=t,void this.scale.setSortInfo(t))},i}(aI),ek=Math.log,ik=function(){function t(t,e,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=$I,this._initCartesian(t,e,i),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){function i(t){var e,i=_(t),n=i.length;if(n){for(var r=[],o=n-1;o>=0;o--){var a=+i[o],s=t[a],l=s.model,u=s.scale;Wc(u)&&l.get("alignTicks")&&null==l.get("interval")?r.push(s):(wp(u,l),Wc(u)&&(e=s))}r.length&&(e||(e=r.pop(),wp(e.scale,e.model)),d(r,function(t){Cd(t.scale,t.model,e.scale)}))}}var n=this._axesMap;this._updateScale(t,this.model),i(n.x),i(n.y);var r={};d(n.x,function(t){kd(n,"y",t,r)}),d(n.y,function(t){kd(n,"x",t,r)}),this.resize(this.model,e)},t.prototype.resize=function(t,e,i){function n(){d(s,function(t){var e=t.isHorizontal(),i=e?[0,a.width]:[0,a.height],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),Dd(t,e?a.x:a.y)})}var r=t.getBoxLayoutParams(),o=!i&&t.get("containLabel"),a=Os(r,{width:e.getWidth(),height:e.getHeight()});this._rect=a;var s=this._axesList;n(),o&&(d(s,function(t){if(!t.model.get(["axisLabel","inside"])){var e=Cp(t);if(e){var i=t.isHorizontal()?"height":"width",n=t.model.get(["axisLabel","margin"]);a[i]-=e[i]+n,"top"===t.position?a.y+=e.height+n:"left"===t.position&&(a.x+=e.width+n)}}}),n()),d(this._coordsList,function(t){t.calcAffineTransform()})},t.prototype.getAxis=function(t,e){var i=this._axesMap[t];return null!=i?i[e||0]:void 0},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var i="x"+t+"y"+e;return this._coordsMap[i]}I(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,r=this._coordsList;n<r.length;n++)if(r[n].getAxis("x").index===t||r[n].getAxis("y").index===e)return r[n]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,i){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},t.prototype.convertFromPixel=function(t,e,i){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},t.prototype._findConvertTarget=function(t){var e,i,n=t.seriesModel,r=t.xAxisModel||n&&n.getReferringComponents("xAxis",t_).models[0],o=t.yAxisModel||n&&n.getReferringComponents("yAxis",t_).models[0],a=t.gridModel,s=this._coordsList;if(n)e=n.coordinateSystem,h(s,e)<0&&(e=null);else if(r&&o)e=this.getCartesian(r.componentIndex,o.componentIndex);else if(r)i=this.getAxis("x",r.componentIndex);else if(o)i=this.getAxis("y",o.componentIndex);else if(a){var l=a.coordinateSystem;l===this&&(e=this._coordsList[0])}return{cartesian:e,axis:i}},t.prototype.containPoint=function(t){var e=this._coordsList[0];return e?e.containPoint(t):void 0},t.prototype._initCartesian=function(t,e){function i(e){return function(i,n){if(Id(i,t)){var l=i.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new tk(e,bp(i),[0,0],i.get("type"),l),h="category"===u.type;u.onBand=h&&i.get("boundaryGap"),u.inverse=i.get("inverse"),i.axis=u,u.model=i,u.grid=r,u.index=n,r._axesList.push(u),a[e][n]=u,s[e]++}}}var n=this,r=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};return e.eachComponent("xAxis",i("x"),this),e.eachComponent("yAxis",i("y"),this),s.x&&s.y?(this._axesMap=a,void d(a.x,function(e,i){d(a.y,function(r,o){var a="x"+i+"y"+o,s=new JI(a);s.master=n,s.model=t,n._coordsMap[a]=s,n._coordsList.push(s),s.addAxis(e),s.addAxis(r)})})):(this._axesMap={},void(this._axesList=[]))},t.prototype._updateScale=function(t,e){function i(t,e){d(Dp(t,e.dim),function(i){e.scale.unionExtentFromData(t,i)})}d(this._axesList,function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}}),t.eachSeries(function(t){if(Td(t)){var n=Md(t),r=n.xAxisModel,o=n.yAxisModel;if(!Id(r,e)||!Id(o,e))return;var a=this.getCartesian(r.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),u=a.getAxis("y");i(s,l),i(s,u)}},this)},t.prototype.getTooltipAxes=function(t){var e=[],i=[];return d(this.getCartesians(),function(n){var r=null!=t&&"auto"!==t?n.getAxis(t):n.getBaseAxis(),o=n.getOtherAxis(r);h(e,r)<0&&e.push(r),h(i,o)<0&&i.push(o)}),{baseAxes:e,otherAxes:i}},t.create=function(e,i){var n=[];return e.eachComponent("grid",function(r,o){var a=new t(r,e,i);a.name="grid_"+o,a.resize(r,i,!0),r.coordinateSystem=a,n.push(a)}),e.eachSeries(function(t){if(Td(t)){var e=Md(t),i=e.xAxisModel,n=e.yAxisModel,r=i.getCoordSysModel(),o=r.coordinateSystem;t.coordinateSystem=o.getCartesian(i.componentIndex,n.componentIndex)}}),n},t.dimensions=$I,t}(),nk=Math.PI,rk=function(){function t(t,e){this.group=new Vm,this.opt=e,this.axisModel=t,u(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var i=new Vm({x:e.position[0],y:e.position[1],rotation:e.rotation});i.updateTransform(),this._transformGroup=i}return t.prototype.hasBuilder=function(t){return!!ok[t]},t.prototype.add=function(t){ok[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,i){var n,r,o=Zi(e-t);return Ki(o)?(r=i>0?"top":"bottom",n="center"):Ki(o-nk)?(r=i>0?"bottom":"top",n="center"):(r="middle",n=o>0&&nk>o?i>0?"right":"left":i>0?"left":"right"),{rotation:o,textAlign:n,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),ok={axisLine:function(t,e,i,n){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var o=e.axis.getExtent(),a=n.transform,s=[o[0],0],u=[o[1],0],h=s[0]>u[0];a&&(gt(s,s,a),gt(u,u,a));var c=l({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),p=new Mw({shape:{x1:s[0],y1:s[1],x2:u[0],y2:u[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});xa(p.shape,p.style.lineWidth),p.anid="line",i.add(p);var f=e.get(["axisLine","symbol"]);if(null!=f){var g=e.get(["axisLine","symbolSize"]);T(f)&&(f=[f,f]),(T(g)||C(g))&&(g=[g,g]);var v=oh(e.get(["axisLine","symbolOffset"])||0,g),y=g[0],m=g[1];d([{rotate:t.rotation+Math.PI/2,offset:v[0],r:0},{rotate:t.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-u[0])*(s[0]-u[0])+(s[1]-u[1])*(s[1]-u[1]))}],function(e,n){if("none"!==f[n]&&null!=f[n]){var r=nh(f[n],-y/2,-m/2,y,m,c.stroke,!0),o=e.r+e.offset,a=h?u:s;r.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),i.add(r)}})}}},axisTickLabel:function(t,e,i,n){var r=Nd(i,n,e,t),o=Fd(i,n,e,t);if(Od(e,o,r),zd(i,n,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){kf(Tf(g(o,function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})))}},axisName:function(t,e,i,n){var r=R(t.axisName,e.get("name"));if(r){var o,a=e.get("nameLocation"),s=t.nameDirection,l=e.getModel("nameTextStyle"),u=e.get("nameGap")||0,h=e.axis.getExtent(),c=h[0]>h[1]?-1:1,p=["start"===a?h[0]-c*u:"end"===a?h[1]+c*u:(h[0]+h[1])/2,Rd(a)?t.labelOffset+s*u:0],f=e.get("nameRotate");null!=f&&(f=f*nk/180);var d;Rd(a)?o=rk.innerTextLayout(t.rotation,null!=f?f:t.rotation,s):(o=Pd(t.rotation,a,f||0,h),null!=(d=t.axisNameAvailableWidth)&&(d=Math.abs(d/Math.sin(o.rotation)),!isFinite(d)&&(d=null)));var g=l.getFont(),v=e.get("nameTruncate",!0)||{},y=v.ellipsis,m=R(t.nameTruncateMaxWidth,v.maxWidth,d),_=new yx({x:p[0],y:p[1],rotation:o.rotation,silent:rk.isLabelSilent(e),style:Va(l,{text:r,font:g,overflow:"truncate",width:m,ellipsis:y,fill:l.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:l.get("align")||o.textAlign,verticalAlign:l.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Ra({el:_,componentModel:e,itemName:r}),_.__fullText=r,_.anid="name",e.get("triggerEvent")){var x=rk.makeAxisEventDataBase(e);x.targetType="axisName",x.name=r,bx(_).eventData=x}n.add(_),_.updateTransform(),i.add(_),_.decomposeTransform()}}},ak={},sk=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e}return e(i,t),i.prototype.render=function(e,i,n){this.axisPointerClass&&jd(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,n,!0)},i.prototype.updateAxisPointer=function(t,e,i){this._doUpdateAxisPointerClass(t,i,!1)},i.prototype.remove=function(t,e){var i=this._axisPointer;i&&i.remove(e)},i.prototype.dispose=function(e,i){this._disposeAxisPointer(i),t.prototype.dispose.apply(this,arguments)},i.prototype._doUpdateAxisPointerClass=function(t,e,n){var r=i.getAxisPointerClass(this.axisPointerClass);if(r){var o=qd(t);o?(this._axisPointer||(this._axisPointer=new r)).render(t,o,e,n):this._disposeAxisPointer(e)}},i.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},i.registerAxisPointerClass=function(t,e){ak[t]=e},i.getAxisPointerClass=function(t){return t&&ak[t]},i.type="axis",i}(tT),lk=Dn(),uk=["axisLine","axisTickLabel","axisName"],hk=["splitArea","splitLine","minorSplitLine"],ck=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e.axisPointerClass="CartesianAxisPointer",e}return e(i,t),i.prototype.render=function(e,i,n,r){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Vm,this.group.add(this._axisGroup),e.get("show")){var a=e.getCoordSysModel(),s=Sd(a,e),u=new rk(e,l({handleAutoShown:function(){for(var t=a.coordinateSystem.getCartesians(),i=0;i<t.length;i++)if(Wc(t[i].getOtherAxis(e.axis).scale))return!0;return!1}},s));d(uk,u.add,u),this._axisGroup.add(u.getGroup()),d(hk,function(t){e.get([t,"show"])&&pk[t](this,this._axisGroup,e,a)},this);r&&"changeAxisOrder"===r.type&&r.isInitSort||Ia(o,this._axisGroup,e),t.prototype.render.call(this,e,i,n,r)}},i.prototype.remove=function(){$d(this)},i.type="cartesianAxis",i}(sk),pk={splitLine:function(t,e,i,n){var r=i.axis;if(!r.scale.isBlank()){var o=i.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=b(s)?s:[s];for(var l=n.coordinateSystem.getRect(),h=r.isHorizontal(),c=0,p=r.getTicksCoords({tickModel:o}),f=[],d=[],g=a.getLineStyle(),v=0;v<p.length;v++){var y=r.toGlobalCoord(p[v].coord);h?(f[0]=y,f[1]=l.y,d[0]=y,d[1]=l.y+l.height):(f[0]=l.x,f[1]=y,d[0]=l.x+l.width,d[1]=y);var m=c++%s.length,_=p[v].tickValue,x=new Mw({anid:null!=_?"line_"+p[v].tickValue:null,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:d[0],y2:d[1]},style:u({stroke:s[m]},g),silent:!0});xa(x.shape,g.lineWidth),e.add(x)}}},minorSplitLine:function(t,e,i,n){var r=i.axis,o=i.getModel("minorSplitLine"),a=o.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=r.isHorizontal(),u=r.getMinorTicksCoords();if(u.length)for(var h=[],c=[],p=a.getLineStyle(),f=0;f<u.length;f++)for(var d=0;d<u[f].length;d++){var g=r.toGlobalCoord(u[f][d].coord);l?(h[0]=g,h[1]=s.y,c[0]=g,c[1]=s.y+s.height):(h[0]=s.x,h[1]=g,c[0]=s.x+s.width,c[1]=g);var v=new Mw({anid:"minor_line_"+u[f][d].tickValue,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:c[0],y2:c[1]},style:p,silent:!0});xa(v.shape,p.lineWidth),e.add(v)}},splitArea:function(t,e,i,n){Qd(t,e,i,n)}},fk=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e}return e(i,t),i.type="xAxis",i}(ck),dk=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=fk.type,e}return e(i,t),i.type="yAxis",i}(ck),gk=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return e(i,t),i.prototype.render=function(t){this.group.removeAll(),t.get("show")&&this.group.add(new dx({shape:t.coordinateSystem.getRect(),style:u({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},i.type="grid",i}(tT),vk={offset:0};Rp(Jd);var yk=Dn(),mk=o,_k=Yv,xk=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,i,n){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,n||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,i);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=u;var h=this._moveAnimation=this.determineAnimation(t,e);if(a){var c=w(tg,e,h);this.updatePointerEl(a,l,c),this.updateLabelEl(a,l,c,e)}else a=this._group=new Vm,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),i.getZr().add(a);rg(a,e,!0),this._renderHandle(r)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var i=e.get("animation"),n=t.axis,r="category"===n.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===i||null==i){var a=this.animationThreshold;if(r&&n.getBandWidth()>a)return!0;if(o){var s=Gd(t).seriesDataCount,l=n.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===i},t.prototype.makeElOption=function(){},t.prototype.createPointerEl=function(t,e){var i=e.pointer;if(i){var n=yk(t).pointerEl=new Zw[i.type](mk(e.pointer));t.add(n)}},t.prototype.createLabelEl=function(t,e,i,n){if(e.label){var r=yk(t).labelEl=new yx(mk(e.label));t.add(r),ig(r,n)}},t.prototype.updatePointerEl=function(t,e,i){var n=yk(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,i,n){var r=yk(t).labelEl;r&&(r.setStyle(e.label.style),i(r,{x:e.label.x,y:e.label.y}),ig(r,n))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e=this._axisPointerModel,i=this._api.getZr(),n=this._handle,r=e.getModel("handle"),o=e.get("status");if(!r.get("show")||!o||"hide"===o)return n&&i.remove(n),void(this._handle=null);var a;this._handle||(a=!0,n=this._handle=Da(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){uy(t.event)},onmousedown:_k(this._onHandleDragMove,this,0,0),drift:_k(this._onHandleDragMove,this),ondragend:_k(this._onHandleDragEnd,this)}),i.add(n)),rg(n,e,!1),n.setStyle(r.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=r.get("size");b(s)||(s=[s,s]),n.scaleX=s[0]/2,n.scaleY=s[1]/2,Bu(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,a)}},t.prototype._moveHandleToValue=function(t,e){tg(this._axisPointerModel,!e&&this._moveAnimation,this._handle,ng(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(ng(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(ng(n)),yk(i).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,n=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Nu(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}},t}(),wk=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i.prototype.makeElOption=function(t,e,i,n,r){var o=i.axis,a=o.grid,s=n.get("type"),l=fg(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var h=og(n),c=bk[s](o,u,l);c.style=h,t.graphicKey=c.type,t.pointer=c}hg(e,t,Sd(a.model,i),i,n,r)},i.prototype.getHandleTransform=function(t,e,i){var n=Sd(e.axis.grid.model,e,{labelInside:!1});n.labelMargin=i.get(["handle","margin"]);var r=ug(e.axis,t,n);return{x:r[0],y:r[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},i.prototype.updateHandleTransform=function(t,e,i){var n=i.axis,r=n.grid,o=n.getGlobalExtent(!0),a=fg(r,n).getOtherAxis(n).getGlobalExtent(),s="x"===n.dim?0:1,l=[t.x,t.y];l[s]+=e[s],l[s]=Math.min(o[1],l[s]),l[s]=Math.max(o[0],l[s]);var u=(a[1]+a[0])/2,h=[u,u];h[s]=l[s];var c=[{verticalAlign:"middle"},{align:"center"}];return{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:h,tooltipOption:c[s]}},i}(xk),bk={line:function(t,e,i){return{type:"Line",subPixelOptimize:!0,shape:cg([e,i[0]],[e,i[1]],dg(t))}},shadow:function(t,e,i){var n=Math.max(1,t.getBandWidth()),r=i[1]-i[0];return{type:"Rect",shape:pg([e-n/2,i[0]],[n,r],dg(t))}}},Sk=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e}return e(i,t),i.type="axisPointer",i.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!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}},i}(zb),Tk=Dn(),Mk=d,Ck=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e}return e(i,t),i.prototype.render=function(t,e,i){var n=e.getComponent("tooltip"),r=t.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";gg("axisPointer",i,function(t,e,i){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&i({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},i.prototype.remove=function(t,e){wg("axisPointer",e)},i.prototype.dispose=function(t,e){wg("axisPointer",e)},i.type="axisPointer",i}(tT),Ik=Dn(),kk=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e}return e(i,t),i.type="tooltip",i.dependencies=["axisPointer"],i.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}},i}(zb),Ak=Bg(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Dk=Bg(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Pk=Ng(Dk,"transition"),Ok=Ng(Ak,"transform"),Lk="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(xv.transform3dSupported?"will-change:transform;":""),Ek=function(){function t(t,e,i){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,xv.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),o=this._appendToBody=i&&i.appendToBody;Ug(this._styleCoord,r,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(n):t.appendChild(n),this._container=t;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=r.handler;At(r.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){var e=this._container,i=zg(e,"position"),n=e.style;"absolute"!==n.position&&"absolute"!==i&&(n.position="relative"),t.get("alwaysShowContent")&&this._moveIfResized(),this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,r=this._styleCoord;i.innerHTML?n.cssText=Lk+Xg(t,!this._firstShow,this._longHide)+Vg(r[0],r[1],!0)+"border-color:"+Ds(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,i,n,r){var o=this.el;if(null==t)return void(o.innerHTML="");var a="";if(T(r)&&"item"===i.get("trigger")&&!Rg(i)&&(a=Yg(i,n,r)),T(t))o.innerHTML=t+a;else if(t){o.innerHTML="",b(t)||(t=[t]);for(var s=0;s<t.length;s++)D(t[s])&&t[s].parentNode!==o&&o.appendChild(t[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},t.prototype.moveTo=function(t,e){var i=this._styleCoord;if(Ug(i,this._zr,this._appendToBody,t,e),null!=i[0]&&null!=i[1]){var n=this.el.style;d(Vg(i[0],i[1]),function(t){n[t[0]]=t[1]})}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",xv.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Yv(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},t}(),Rk=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),qg(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){t.get("alwaysShowContent")&&this._moveIfResized()},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,i,n){var r=this;I(t)&&un(""),this.el&&this._zr.remove(this.el);var o=i.getModel("textStyle");this.el=new yx({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:o.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:mu(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),d(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(t){r.el.style[t]=i.get(t)}),d(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(t){r.el.style[t]=o.get(t)||0}),this._zr.add(this.el);var a=this;this.el.on("mouseover",function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0}),this.el.on("mouseout",function(){a._enterable&&a._show&&a.hideLater(a._hideDelay),a._inContent=!1})},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),i=Gg(t.style);return[e.width+i.left+i.right,e.height+i.top+i.bottom]},t.prototype.moveTo=function(t,e){var i=this.el;if(i){var n=this._styleCoord;qg(n,this._zr,t,e),t=n[0],e=n[1];var r=i.style,o=jg(r.borderWidth||0),a=Gg(r);i.x=t+o+a.left,i.y=e+o+a.top,i.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Yv(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}(),Bk=new dx({shape:{x:-1,y:-1,width:2,height:2}}),Nk=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e}return e(i,t),i.prototype.init=function(t,e){if(!xv.node&&e.getDom()){var i=t.getComponent("tooltip"),n=this._renderMode=Bn(i.get("renderMode"));this._tooltipContent="richText"===n?new Rk(e):new Ek(e.getDom(),e,{appendToBody:i.get("appendToBody",!0)})}},i.prototype.render=function(t,e,i){if(!xv.node&&i.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=i,this._alwaysShowContent=t.get("alwaysShowContent");var n=this._tooltipContent;n.update(t),n.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?Bu(this,"_updatePosition",50,"fixRate"):Nu(this,"_updatePosition")}},i.prototype._initGlobalListener=function(){var t=this._tooltipModel,e=t.get("triggerOn");gg("itemTooltip",this._api,Yv(function(t,i,n){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(i,n):"leave"===t&&this._hide(n))},this))},i.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,i=this._api,n=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==n&&"click"!==n){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&r.manuallyShowTip(t,e,i,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})})}},i.prototype.manuallyShowTip=function(t,e,i,n){if(n.from!==this.uid&&!xv.node&&i.getDom()){var r=Kg(n,i);this._ticket="";var o=n.dataByCoordSys,a=ev(n,e,i);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:n.position,positionDefault:"bottom"},r)}else if(n.tooltip&&null!=n.x&&null!=n.y){var l=Bk;l.x=n.x,l.y=n.y,l.update(),bx(l).tooltipConfig={name:null,option:n.tooltip},this._tryShow({offsetX:n.x,offsetY:n.y,target:l},r)}else if(o)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:o,tooltipOption:n.tooltipOption},r);else if(null!=n.seriesIndex){if(this._manuallyAxisShowTip(t,e,i,n))return;var u=bg(n,e),h=u.point[0],c=u.point[1];null!=h&&null!=c&&this._tryShow({offsetX:h,offsetY:c,target:u.el,position:n.position,positionDefault:"bottom"},r)}else null!=n.x&&null!=n.y&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target},r))}},i.prototype.manuallyHideTip=function(t,e,i,n){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,n.from!==this.uid&&this._hide(Kg(n,i))},i.prototype._manuallyAxisShowTip=function(t,e,i,n){var r=n.seriesIndex,o=n.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s){if("axis"===Zg([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:n.position}),!0}}},i.prototype._tryShow=function(t,e){var i=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var n=t.dataByCoordSys;if(n&&n.length)this._showAxisTooltip(n,t);else if(i){this._lastDataByCoordSys=null;var r,o;eh(i,function(t){return null!=bx(t).dataIndex?(r=t,!0):null!=bx(t).tooltipConfig?(o=t,!0):void 0},!0),r?this._showSeriesItemTooltip(t,r,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},i.prototype._showOrMove=function(t,e){var i=t.get("showDelay");e=Yv(e,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(e,i):e()},i.prototype._showAxisTooltip=function(t,e){var i=this._ecModel,n=this._tooltipModel,r=[e.offsetX,e.offsetY],o=Zg([e.tooltipOption],n),a=this._renderMode,s=[],u=ru("section",{blocks:[],noHeader:!0}),h=[],c=new QS;d(t,function(t){d(t.dataByAxis,function(t){var e=i.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var o=lg(r,e.axis,i,t.seriesDataIndices,t.valueLabelOpt),p=ru("section",{header:o,noHeader:!H(o),sortBlocks:!0,blocks:[]});u.blocks.push(p),d(t.seriesDataIndices,function(u){var f=i.getSeriesByIndex(u.seriesIndex),d=u.dataIndexInside,g=f.getDataParams(d);if(!(g.dataIndex<0)){g.axisDim=t.axisDim,g.axisIndex=t.axisIndex,g.axisType=t.axisType,g.axisId=t.axisId,g.axisValue=Mp(e.axis,{value:r}),g.axisValueLabel=o,g.marker=c.makeTooltipMarker("item",Ds(g.color),a);var v=zl(f.formatTooltip(d,!0,null)),y=v.frag;if(y){var m=Zg([f],n).get("valueFormatter");p.blocks.push(m?l({valueFormatter:m},y):y)}v.text&&h.push(v.text),s.push(g)}})}})}),u.blocks.reverse(),h.reverse();var p=e.position,f=o.get("order"),g=hu(u,c,a,f,i.get("useUTC"),o.get("textStyle"));g&&h.unshift(g);var v="richText"===a?"\n\n":"<br/>",y=h.join(v);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,p,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,y,s,Math.random()+"",r[0],r[1],p,null,c)})},i.prototype._showSeriesItemTooltip=function(t,e,i){var n=this._ecModel,r=bx(e),o=r.seriesIndex,a=n.getSeriesByIndex(o),s=r.dataModel||a,u=r.dataIndex,h=r.dataType,c=s.getData(h),p=this._renderMode,f=t.positionDefault,d=Zg([c.getItemModel(u),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),g=d.get("trigger");if(null==g||"item"===g){var v=s.getDataParams(u,h),y=new QS;v.marker=y.makeTooltipMarker("item",Ds(v.color),p);var m=zl(s.formatTooltip(u,!1,h)),_=d.get("order"),x=d.get("valueFormatter"),w=m.frag,b=w?hu(x?l({valueFormatter:x},w):w,y,p,_,n.get("useUTC"),d.get("textStyle")):m.text,S="item_"+s.name+"_"+u;this._showOrMove(d,function(){this._showTooltipContent(d,b,v,S,t.offsetX,t.offsetY,t.position,t.target,y)}),i({type:"showTip",dataIndexInside:u,dataIndex:c.getRawIndex(u),seriesIndex:o,from:this.uid})}},i.prototype._showComponentItemTooltip=function(t,e,i){var n=bx(e),r=n.tooltipConfig,a=r.option||{};if(T(a)){var s=a;a={content:s,formatter:s}}var l=[a],u=this._ecModel.getComponent(n.componentMainType,n.componentIndex);u&&l.push(u),l.push({formatter:a.content});var h=t.positionDefault,c=Zg(l,this._tooltipModel,h?{position:h}:null),p=c.get("content"),f=Math.random()+"",d=new QS;this._showOrMove(c,function(){var i=o(c.get("formatterParams")||{});this._showTooltipContent(c,p,i,f,t.offsetX,t.offsetY,t.position,e,d)}),i({type:"showTip",from:this.uid})},i.prototype._showTooltipContent=function(t,e,i,n,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var h=t.get("formatter");a=a||t.get("position");var c=e,p=this._getNearestPoint([r,o],i,t.get("trigger"),t.get("borderColor")),f=p.color;if(h)if(T(h)){var d=t.ecModel.get("useUTC"),g=b(i)?i[0]:i,v=g&&g.axisType&&g.axisType.indexOf("time")>=0;c=h,v&&(c=rs(g.axisValue,c,d)),c=Cs(c,i,!0)}else if(S(h)){var y=Yv(function(e,n){e===this._ticket&&(u.setContent(n,l,t,f,a),this._updatePosition(t,a,r,o,u,i,s))},this);this._ticket=n,c=h(i,n,y)}else c=h;u.setContent(c,l,t,f,a),u.show(t,f),this._updatePosition(t,a,r,o,u,i,s)}},i.prototype._getNearestPoint=function(t,e,i,n){return"axis"===i||b(e)?{color:n||("html"===this._renderMode?"#fff":"none")}:b(e)?void 0:{color:n||e.color||e.borderColor}},i.prototype._updatePosition=function(t,e,i,n,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),h=t.get("align"),c=t.get("verticalAlign"),p=a&&a.getBoundingRect().clone();if(a&&p.applyTransform(a.transform),S(e)&&(e=e([i,n],o,r.el,p,{viewSize:[s,l],contentSize:u.slice()})),b(e))i=Yi(e[0],s),n=Yi(e[1],l);else if(I(e)){var f=e;f.width=u[0],f.height=u[1];var d=Os(f,{width:s,height:l});i=d.x,n=d.y,h=null,c=null}else if(T(e)&&a){var g=Jg(e,p,u,t.get("borderWidth"));i=g[0],n=g[1]}else{var g=Qg(i,n,r,s,l,h?null:20,c?null:20);i=g[0],n=g[1]}if(h&&(i-=tv(h)?u[0]/2:"right"===h?u[0]:0),c&&(n-=tv(c)?u[1]/2:"bottom"===c?u[1]:0),Rg(t)){var g=$g(i,n,r,s,l);i=g[0],n=g[1]}r.moveTo(i,n)},i.prototype._updateContentNotChangedOnAxis=function(t,e){var i=this._lastDataByCoordSys,n=this._cbParamsList,r=!!i&&i.length===t.length;return r&&d(i,function(i,o){var a=i.dataByAxis||[],s=t[o]||{},l=s.dataByAxis||[];(r=r&&a.length===l.length)&&d(a,function(t,i){var o=l[i]||{},a=t.seriesDataIndices||[],s=o.seriesDataIndices||[];r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===s.length,r&&d(a,function(t,e){var i=s[e];r=r&&t.seriesIndex===i.seriesIndex&&t.dataIndex===i.dataIndex}),n&&d(t.seriesDataIndices,function(t){var i=t.seriesIndex,o=e[i],a=n[i];o&&a&&a.data!==o.data&&(r=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},i.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},i.prototype.dispose=function(t,e){!xv.node&&e.getDom()&&(Nu(this,"_updatePosition"),this._tooltipContent.dispose(),wg("itemTooltip",e))},i.type="tooltip",i}(tT);Rp(iv);var zk=Dn(),Fk=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e.createdBySelf=!1,e}return e(i,t),i.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i),this._mergeOption(t,i,!1,!0)},i.prototype.isAnimationEnabled=function(){if(xv.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},i.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},i.prototype._mergeOption=function(t,e,i,n){var r=this.mainType;i||e.eachSeries(function(t){var i=t.get(this.mainType,!0),o=zk(t)[r];return i&&i.data?(o?o._mergeOption(i,e,!0):(n&&rv(i),d(i.data,function(t){t instanceof Array?(rv(t[0]),rv(t[1])):rv(t)}),o=this.createMarkerModelFromSeries(i,this,e),l(o,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),o.__hostSeries=t),void(zk(t)[r]=o)):void(zk(t)[r]=null)},this)},i.prototype.formatTooltip=function(t){var e=this.getData(),i=this.getRawValue(t),n=e.getName(t);return ru("section",{header:this.name,blocks:[ru("nameValue",{name:n,value:i,noName:!n,noValue:null==i})]})},i.prototype.getData=function(){return this._data},i.prototype.setData=function(t){this._data=t},i.getMarkerModelFromSeries=function(t,e){return zk(t)[e]},i.type="marker",i.dependencies=["series","grid","polar","geo"],i}(zb);p(Fk,LS.prototype);var Yk=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e}return e(i,t),i.prototype.createMarkerModelFromSeries=function(t,e,n){return new i(t,e,n)},i.type="markPoint",i.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},i}(Fk),Hk={min:w(sv,"min"),max:w(sv,"max"),average:w(sv,"average"),median:w(sv,"median")},Vk=Dn(),Wk=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e}return e(i,t),i.prototype.init=function(){this.markerGroupMap=U()},i.prototype.render=function(t,e,i){var n=this,r=this.markerGroupMap;r.each(function(t){Vk(t).keep=!1}),e.eachSeries(function(t){var r=Fk.getMarkerModelFromSeries(t,n.type);r&&n.renderSeries(t,r,e,i)}),r.each(function(t){!Vk(t).keep&&n.group.remove(t.group)})},i.prototype.markKeep=function(t){Vk(t).keep=!0},i.prototype.toggleBlurSeries=function(t,e){var i=this;d(t,function(t){var n=Fk.getMarkerModelFromSeries(t,i.type);if(n){n.getData().eachItemGraphicEl(function(t){t&&(e?po(t):fo(t))})}})},i.type="marker",i}(tT),Xk=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e}return e(i,t),i.prototype.updateTransform=function(t,e,i){e.eachSeries(function(t){var e=Fk.getMarkerModelFromSeries(t,"markPoint");e&&(dv(e.getData(),t,i),this.markerGroupMap.get(t.id).updateLayout())},this)},i.prototype.renderSeries=function(t,e,i,n){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new OI),u=gv(r,t,e);e.setData(u),dv(e.getData(),t,n),u.each(function(t){var i=u.getItemModel(t),n=i.getShallow("symbol"),r=i.getShallow("symbolSize"),o=i.getShallow("symbolRotate"),s=i.getShallow("symbolOffset"),l=i.getShallow("symbolKeepAspect");if(S(n)||S(r)||S(o)||S(s)){var h=e.getRawValue(t),c=e.getDataParams(t);S(n)&&(n=n(h,c)),S(r)&&(r=r(h,c)),S(o)&&(o=o(h,c)),S(s)&&(s=s(h,c))}var p=i.getModel("itemStyle").getItemStyle(),f=$u(a,"color");p.fill||(p.fill=f),u.setItemVisual(t,{symbol:n,symbolSize:r,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:p})}),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl(function(t){t.traverse(function(t){bx(t).dataModel=e})}),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},i.type="markPoint",i}(Wk);Rp(vv),t.version="5.4.1",t.dependencies=iM,t.PRIORITY=aM,t.init=qh,t.connect=Zh,t.disConnect=Kh,t.disconnect=GM,t.dispose=Qh,t.getInstanceByDom=$h,t.getInstanceById=Jh,t.registerTheme=tc,t.registerPreprocessor=ec,t.registerProcessor=ic,t.registerPostInit=nc,t.registerPostUpdate=rc,t.registerUpdateLifecycle=oc,t.registerAction=ac,t.registerCoordinateSystem=sc,t.getCoordinateSystemDimensions=lc,t.registerLayout=uc,t.registerVisual=hc,t.registerLoading=pc,t.setCanvasCreator=fc,t.registerMap=dc,t.getMap=gc,t.registerTransform=ZM,t.dataTool=nC,t.registerLocale=Ka,t.zrender=jm,t.matrix=py,t.vector=Qv,t.zrUtil=jv,t.color=nm,t.helper=XC,t.number=JC,t.time=tI,t.graphic=eI,t.format=iI,t.util=nI,t.List=gC,t.ComponentModel=zb,t.ComponentView=tT,t.SeriesModel=JS,t.ChartView=nT,t.extendComponentModel=lf,t.extendComponentView=uf,t.extendSeriesModel=hf,t.extendChartView=cf,t.throttle=Ru,t.use=Rp,t.setPlatformAPI=i,t.parseGeoJSON=Xp,t.parseGeoJson=Xp,t.env=xv,t.Model=cb,t.Axis=aI,t.innerDrawElementOnCanvas=Lh})}).call(e,i(277).Buffer)},14:function(t,e,i){var n=i(50),r=i(33);t.exports=Object.keys||function(t){return n(t,r)}},15:function(t,e,i){"use strict";function n(t,e){return function(i,n){var a=this,s=Object(r.a)(i),l=Object(o.a)(e,t,s,n),u=l.$parent,h=l.remove,c=l.show,p=l.hide;return l.remove=function(){l.$removed=!0,h&&h.call(this),u.destroy()},l.show=function(){return c&&c.call.apply(c,[this].concat(Array.prototype.slice.call(arguments))),this},l.hide=function(){return p&&p.call.apply(p,[this].concat(Array.prototype.slice.call(arguments))),this},a&&a._isVue&&a.$once("hook:beforeDestroy",function(){l.$removed||l.remove()}),l}}e.a=n;var r=i(98),o=i(100)},152:function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i(5),r=function(){var t=!0;if(n.F.isIOS){var e=Object(n.k)(navigator.userAgent.toLowerCase());if(!e)return t;Number(""+e.major+e.minor)>=133&&(t=!1)}return t}()},1520:function(t,e,i){"use strict";var n=i(73),r=i.n(n),o=i(134),a=i.n(o),s=i(5),l=i(2042),u=i(2049),h=i(2055),c=i(1165);e.a={name:"ActGoldFinanceChart",data:function(){return{costTableVisible:!1,isShowChart:!0,renderData:{},agePickerData:[],selectIndex:10}},components:{benefit:u.a,GoldCostTable:h.a,goldPicker:c.default},props:{tables:{default:function(){return{}},type:Object},brandColor:{default:"#8c7fee",type:String},btnColor:{default:"#8c7fee",type:String},chartConfig:{default:function(){return[]},type:Array},isOutSideTable:{default:!1,type:Boolean},unit:{default:"周岁",type:String},note:{default:"",type:String},selectDefaultVal:{default:10,type:Number},benefitBtnShow:{type:Boolean,default:!0},tip:{default:"",type:String},percentageTypes:{type:Array,default:function(){return[]}}},computed:{realTheme:function(){var t={brandColor:window.g_agentShowCfg&&window.g_agentShowCfg.brandcolor||"#8c7fee",btnColor:window.g_agentShowCfg&&window.g_agentShowCfg.btncolor||"#8c7fee"};return this.brandColor&&(t.brandColor=this.brandColor,t.btnColor=this.brandColor),t},isCps:function(){return"#8c7fee"!==this.brandColor}},methods:{showAgePicker:function(t){var e=this;this.agePickerData=t.agePickerData,this.$nextTick(function(){e.$refs.goldPicker.show()})},setSelectIndex:function(t){this.selectIndex=t},showCostTable:function(){this.isOutSideTable?this.$emit("showOutSideTable"):this.costTableVisible=!0},validateData:function(){if(!(this.tables&&this.tables.colsType&&this.chartConfig&&Object(s.o)(this.chartConfig)))return!1;for(var t=0,e=0,i=0,n=0;n<this.chartConfig.length;n++){var r=this.chartConfig[n];if(!r.colsType)return!1;(this.tables.colsType.includes(r.colsType)||this.tables.colsType.includes(r.colsType+""))&&(1==~~r.showType&&(t+=1),2==~~r.showType&&(e+=1),3==~~r.showType&&(i+=1))}return 1===t&&e>=1&&1===i},findTablesIndex:function(t,e){if(Object(s.o)(e))for(var i=0;i<e.length;i++)if(Number(e[i])===Number(t))return i},analysisExpression:function(t){if(!/([1-9]+)([+*/-])([1-9]+)/g.test(t))return{};var e=void 0,i=void 0,n=void 0;return t.replace(/([1-9]+)([+*/-])([1-9]+)/g,function(t,r,o,a){e=r,i=a,n=o}),{firstParamColsType:e,secondParamColsType:i,operator:n}},getExpressionData:function(t,e,i){var n=this.analysisExpression(t),r=n.firstParamColsType,o=n.secondParamColsType,a=n.operator;if(void 0!==r&&void 0!==o&&["+","-","/","*"].includes(a)){var s=void 0,l=void 0,u=[];if(i.colsType.forEach(function(t,e){Number(t)===Number(r)&&(s=e),Number(t)===Number(o)&&(l=e)}),void 0!==s&&void 0!==l)return i.rows.forEach(function(t,e){var i=void 0;switch(a){case"+":i=t[s]+t[l];break;case"-":i=t[s]-t[l];break;case"/":i=t[s]/t[l];break;case"*":i=t[s]*t[l]}u.push(Number(i).toFixed(1))}),u}},initConfig:function(t,e){var i=this;if(t&&e){for(var n=[],r=[],o=[],u=this.isCps?Object(s.c)(l.b):Object(s.c)(l.a),h=Object(s.c)(u.showType2),c=Object(s.c)(u.showType3),p=t,f=Array.isArray(p),d=0,p=f?p:a()(p);;){var g;if(f){if(d>=p.length)break;g=p[d++]}else{if(d=p.next(),d.done)break;g=d.value}var v=g;(function(r){var a=void 0,p=r.colsType,f=i.findTablesIndex(p,e.colsType);if(!f)return"continue";var d=Number(r.showType),g=r.name||l.c[p],v=r.titleName||r.name||l.c[p],y=i.getExpressionData(r.tipsExpression,t,e),m=r.lineStyle,_=r.boxConfig;if(!(2!==d||m&&_)){h.length||(h=Object(s.c)(u.showType2));var x=h.shift();m=x.lineStyle,_=x.boxConfig}if(3===d&&!m){c.length||(c=Object(s.c)(u.showType3));m=c.shift().lineStyle}o.push(g);var w=[],b=r.multcolType||0;if(31===b){var S=r.multValues||[],T=i.findTablesIndex(b,e.colsType);T&&S.length&&(w=S.map(function(t){var i=e.rows.findIndex(function(e){return t===Math.floor(e[T])});return-1===i?{coord:[],value:0}:{coord:[i,e.rows[i][f]],value:t}}))}a={showType:d,colsType:p,name:g,titleName:v,problemText:r.problemText,tableRowIndex:f,lineStyle:m,boxConfig:_,tipsText:r.tipsText,markPoint:w},y&&(a.expressionData=y),n.push(a)})(v)}var y=e.rows.map(function(t){for(var e=[],i=n,o=Array.isArray(i),s=0,i=o?i:a()(i);;){var l;if(o){if(s>=i.length)break;l=i[s++]}else{if(s=i.next(),s.done)break;l=s.value}var u=l;1===u.showType&&r.push(t[u.tableRowIndex]),e.push(t[u.tableRowIndex])}return e});return y.unshift(o),{chartConfig:n,dataSource:y,xAxisData:r}}}},watch:{tables:{handler:function(t){if(t&&r()(t).length&&this.chartConfig){var e=this.validateData();this.selectIndex=this.selectDefaultVal,e?(this.renderData=this.initConfig(this.chartConfig,t),this.isShowChart=!0):this.isShowChart=!1}},immediate:!0}}}},1521:function(t,e,i){"use strict";var n=i(73),r=i.n(n),o=i(2051),a=i(5);e.a={name:"Benefit",data:function(){return{chartConfig:[],dataSource:[],xAxisData:[],dialog:null,agePicker:null,numFontSizeFixDebounceFunc:Object(a.a)(this.numFontSizeFix,500),preNumFontSize:"2.8rem"}},components:{chart:o.a},props:{selectIndex:{type:Number,default:10},renderData:{type:Object,default:function(){return{}}},theme:{type:Object,default:function(){return{}}},isCps:{type:Boolean,default:!1},benefitBtnShow:{type:Boolean,default:!0},unit:{default:"周岁",type:String},note:{default:"",type:String},tip:{default:"",type:String},percentageTypes:{type:Array,default:function(){return[]}}},computed:{agePickerData:function(){for(var t=[],e=0;e<this.xAxisData.length;e++)t.push({text:this.xAxisData[e],value:this.xAxisData[e]});return t},showType2Length:function(){for(var t=0,e=0;e<this.chartConfig.length;e++)2==~~this.chartConfig[e].showType&&(t+=1);return t},pureDataSource:function(){return this.dataSource.slice(1)}},methods:{getNum:function(t,e,i){var n=Math.round(100*this.pureDataSource[t][e])/100;return this.percentageTypes.includes(Number(i.colsType))&&(n+="%"),n},showCostTable:function(){this.$emit("showCostTable")},setSelectIndex:function(t){this.$emit("update:selectIndex",t)},showAgePicker:function(){this.$emit("showAgePicker",{agePickerData:this.agePickerData})},showProblemDialog:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments[1];this.dialog?this.dialog.setData(t,e):this.dialog=this.$createGoldDialog({title:t,content:e,showConfirmButton:!1,maskClosable:!0}),this.dialog.show()},numFontSizeFix:function(){for(var t=this.$refs.num?this.$refs.num.length:0,e=0;e<t;e++){var i=this.$refs.num[e],n=this.$refs.colorBlock[e];for(i.style.fontSize=this.preNumFontSize;;){if(!(parseInt(getComputedStyle(i).width)>parseInt(getComputedStyle(n).width)+30))break;var r=parseInt(getComputedStyle(i).fontSize);if(r<=12)break;i.style.fontSize=r-1+"px"}}}},watch:{renderData:{handler:function(t){if(t&&r()(t).length){var e=t.chartConfig,i=t.dataSource,n=t.xAxisData;this.chartConfig=e,this.dataSource=i,this.xAxisData=n,this.selectIndex>this.pureDataSource.length&&(this.selectIndex=10)}},immediate:!0},selectIndex:{handler:function(){this.numFontSizeFixDebounceFunc()}}}}},1522:function(t,e,i){"use strict";var n=i(73),r=i.n(n),o=i(134),a=i.n(o),s=i(106),l=i.n(s),u=i(5),h=i(1366);e.a={data:function(){return{chart:null}},props:{index:{type:Number,default:10},dataSource:{type:Array,default:function(){return[]}},chartConfig:{type:Array,default:function(){return[]}}},methods:{setIndex:function(t){this.$emit("setIndex",t)},remToPxBased10Px:function(t){var e=window.document.documentElement||document.getElementsByTagName("html")[0],i=parseFloat(getComputedStyle(e,null).fontSize);if(i>12)return t*i;var n=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,r=n/375*10;return n?t*r:10*t},getXAxisName:function(){for(var t=0;t<this.chartConfig.length;t++)if(1===this.chartConfig[t].showType)return this.chartConfig[t].name;return""},getTooltipName:function(){for(var t=0;t<this.chartConfig.length;t++)if(3===this.chartConfig[t].showType)return this.chartConfig[t].name;return""},setEcharts:function(){for(var t=this,e=[],i=[],n=this.getXAxisName(),r=this.getTooltipName(),o=0;o<this.chartConfig.length;o++){var s=this.chartConfig[o];if([2,3].includes(s.showType)){var c={};Object(u.o)(s.lineStyle.areaStyleColor)?c.color=new h.graphic.LinearGradient(0,0,0,1,s.lineStyle.areaStyleColor):Object(u.z)(s.lineStyle.areaStyleColor)&&(c.color=s.lineStyle.areaStyleColor),e.push({name:s.name,type:"line",smooth:!0,symbol:s.lineStyle.legendImg?"image://"+s.lineStyle.legendImg:"circle",showSymbol:!1,symbolSize:this.remToPxBased10Px(1.4),silent:!0,encode:{x:n,y:s.name},lineStyle:{width:1,color:s.lineStyle.lineColor},emphasis:{lineStyle:{color:s.lineStyle.lineColor}},zlevel:s.lineStyle.zIndex,z:s.lineStyle.zIndex,areaStyle:c.color?c:void 0,markPoint:{symbol:"circle",showSymbol:!0,symbolSize:[this.remToPxBased10Px(.8),this.remToPxBased10Px(.8)],symbolOffset:["-10%","-10%"],silent:!0,data:s.markPoint.map(function(e){return l()({itemStyle:{color:"#ffab11",borderWidth:t.remToPxBased10Px(.21),borderType:"solid",borderColor:"#FFEAC3"},label:{show:!0,position:"top",formatter:"{c}倍",backgroundColor:"#FFAB11",color:"#fff",borderRadius:t.remToPxBased10Px(.21),fontSize:t.remToPxBased10Px(1),width:t.remToPxBased10Px(2.8),height:t.remToPxBased10Px(1.5),borderWidth:t.remToPxBased10Px(.11),borderType:"solid",borderColor:"#FFEAC3",lineHeight:t.remToPxBased10Px(1.5)}},e)})}}),i.push({name:s.name,icon:s.lineStyle.legendImg?"image://"+s.lineStyle.legendImg:"circle"})}}var p={dataset:{source:this.dataSource},grid:{containLabel:!1,borderColor:"red",top:"5%",right:"10%",left:"10%"},legend:{textStyle:{fontSize:this.remToPxBased10Px(1.2),opacity:1,fontWeight:400,fontFamily:"SourceHanSansSC, SourceHanSansSC-Regular",color:"#999",lineHeight:this.remToPxBased10Px(1.8)},selectedMode:!1,itemWidth:this.remToPxBased10Px(1.4),itemHeight:this.remToPxBased10Px(1.4),data:i,bottom:0},tooltip:{trigger:"axis",triggerOn:"none",backgroundColor:"rgba(255,255,255,0.8)",textStyle:{fontSize:this.remToPxBased10Px(1.2),fontFamily:"SourceHanSansSC, SourceHanSansSC-Regular",fontWeight:400,lineHeight:16,color:"#333"},extraCssText:"box-shadow: 0rem 0.2rem 1.4rem 0rem rgba(211,217,240,0.80);z-index: 2;",showContent:!0,padding:[7,10,6,10],position:function(t,e,i,n,r){return t[0]>r.viewSize[0]/2?{left:20,top:"30%"}:{right:20,top:"30%"}},axisPointer:{lineStyle:{type:"solid",color:"#EEE"},z:0},formatter:function(t){for(var e=t,i=Array.isArray(e),n=0,e=i?e:a()(e);;){var o;if(i){if(n>=e.length)break;o=e[n++]}else{if(n=e.next(),n.done)break;o=n.value}var s=o;if(s.seriesName===r){var l=s.encode.y[0],u=s.value[l];return r+"<br>"+u+"元"}}}},axixPointer:{triggerOn:"none"},xAxis:{type:"category",axisTick:{inside:!0,length:2,lineStyle:{color:"#EEE"}},axisLine:{lineStyle:{color:"#F5F5F5"}},axisLabel:{textStyle:{color:"#E2E5E7"},fontSize:this.remToPxBased10Px(1.2)},nameTextStyle:{color:"red"}},yAxis:{show:!0,axisLine:{show:!1},axisLabel:{show:!1},splitLine:{show:!0,lineStyle:{color:"#f5f5f5",width:.5}}},series:e};this.chart.setOption(p),this.chart.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:this.index-1}),this.chart.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:this.index})}},mounted:function(){var t=this;this.chart=h.init(this.$refs.chart,null,{renderer:"svg"}),this.setEcharts(),this.chart.getZr().on("mousemove",function(e){var i=[e.offsetX,e.offsetY],n=t.chart.convertFromPixel("grid",i);t.chart.containPixel("grid",i)&&t.index!==Math.round(n[0])&&t.setIndex(Math.round(n[0]))})},watch:{dataSource:{handler:function(t){var e=this;r()(t).length&&this.$nextTick(function(){e.setEcharts()})},immediate:!0},index:{handler:function(t){this.chart.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:t})}}}}},1523:function(t,e,i){"use strict";var n=i(119);e.a={name:"ActGoldCostTable",data:function(){return{scroller:null}},props:{visible:{type:Boolean,default:!1},tables:{type:Object,default:function(){return{}}},theme:{type:Object,default:function(){return{}}}},computed:{title:function(){return this.tables.title||"现金价值表"},styleOption:function(){return this.theme&&this.theme.brandColor?{backgroundColor:this.theme.brandColor}:{}}},methods:{showCol:function(t){var e=this.tables.display||[];return void 0!==e[t]&&1==~~e[t]},cancel:function(){this.$emit("cancelCost")},preventMove:function(t){t._prevent=!0}},watch:{visible:function(t){var e=this;if(t){var i=document.querySelector(".cost-scroll");i&&this.$nextTick(function(){e.scroller?e.scroller.refresh():e.scroller=new n.default(i,{})})}}}}},154:function(t,e,i){"use strict";function n(){return window.performance&&window.performance.now?window.performance.now()+window.performance.timing.navigationStart:+new Date}function r(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];for(var r=0;r<i.length;r++){var o=i[r];for(var a in o)t[a]=o[a]}return t}function o(t){return void 0===t||null===t}function a(t,e){return Math.sqrt(t*t+e*e)}function s(t){return!1!==B&&("standard"===B?"transitionEnd"===t?"transitionend":t:B+t.charAt(0).toUpperCase()+t.substr(1))}function l(t,e,i,n){t.addEventListener(e,i,{passive:!1,capture:!!n})}function u(t,e,i,n){t.removeEventListener(e,i,{passive:!1,capture:!!n})}function h(t){for(var e=0,i=0;t;)e-=t.offsetLeft,i-=t.offsetTop,t=t.offsetParent;return{left:e,top:i}}function c(t){var e=t.getBoundingClientRect();return{left:-(e.left+window.pageXOffset),top:-(e.top+window.pageYOffset)}}function p(t){if(t instanceof window.SVGElement){var e=t.getBoundingClientRect();return{top:e.top,left:e.left,width:e.width,height:e.height}}return{top:t.offsetTop,left:t.offsetLeft,width:t.offsetWidth,height:t.offsetHeight}}function f(t,e){for(var i in e)if(e[i].test(t[i]))return!0;return!1}function d(t,e){var i=document.createEvent("Event");i.initEvent(e,!0,!0),i.pageX=t.pageX,i.pageY=t.pageY,t.target.dispatchEvent(i)}function g(t){function e(){a=document.createEvent("Event"),a.initEvent(i,s,l),r(a,o)}var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"click",n=void 0;"mouseup"===t.type||"mousecancel"===t.type?n=t:"touchend"!==t.type&&"touchcancel"!==t.type||(n=t.changedTouches[0]);var o={};n&&(o.screenX=n.screenX||0,o.screenY=n.screenY||0,o.clientX=n.clientX||0,o.clientY=n.clientY||0);var a=void 0,s=!0,l=!0;if("undefined"!=typeof MouseEvent)try{a=new MouseEvent(i,r({bubbles:s,cancelable:l},o))}catch(t){e()}else e();a.forwardedTouchEvent=!0,a._constructed=!0,t.target.dispatchEvent(a)}function v(t){g(t,"dblclick")}function y(t,e){e.firstChild?m(t,e.firstChild):e.appendChild(t)}function m(t,e){e.parentNode.insertBefore(t,e)}function _(t,e){t.removeChild(e)}function x(t,e,i,n,r,o,a){var s=t-e,l=Math.abs(s)/i,u=a.deceleration,h=a.itemHeight,c=a.swipeBounceTime,p=a.wheel,f=a.swipeTime,d=f,g=p?4:15,v=t+l/u*(s<0?-1:1);return p&&h&&(v=Math.round(v/h)*h),v<n?(v=o?Math.max(n-o/4,n-o/g*l):n,d=c):v>r&&(v=o?Math.min(r+o/4,r+o/g*l):r,d=c),{destination:Math.round(v),duration:d}}function w(){}function b(t){console.error("[BScroll warn]: "+t)}function S(t,e){if(!t)throw new Error("[BScroll] "+e)}function T(t){var e=document.createElement("div"),i=document.createElement("div");return e.style.cssText="position:absolute;z-index:9999;pointerEvents:none",i.style.cssText="box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px;",i.className="bscroll-indicator","horizontal"===t?(e.style.cssText+=";height:7px;left:2px;right:2px;bottom:0",i.style.height="100%",e.className="bscroll-horizontal-scrollbar"):(e.style.cssText+=";width:7px;bottom:2px;top:2px;right:1px",i.style.width="100%",e.className="bscroll-vertical-scrollbar"),e.style.cssText+=";overflow:hidden",e.appendChild(i),e}function M(t,e){this.wrapper=e.el,this.wrapperStyle=this.wrapper.style,this.indicator=this.wrapper.children[0],this.indicatorStyle=this.indicator.style,this.scroller=t,this.direction=e.direction,e.fade?(this.visible=0,this.wrapperStyle.opacity="0"):this.visible=1,this.sizeRatioX=1,this.sizeRatioY=1,this.maxPosX=0,this.maxPosY=0,this.x=0,this.y=0,e.interactive&&this._addDOMEvents()}function C(t){if(t&&t.classList)return t.classList.contains("tombstone")}function I(t,e){var i=this;this.options=e,S("function"==typeof this.options.createTombstone,"Infinite scroll need createTombstone Function to create tombstone"),S("function"==typeof this.options.fetch,"Infinite scroll need fetch Function to fetch new data."),S("function"==typeof this.options.render,"Infinite scroll need render Function to render each item."),this.firstAttachedItem=0,this.lastAttachedItem=0,this.anchorScrollTop=0,this.anchorItem={index:0,offset:0},this.tombstoneHeight=0,this.tombstoneWidth=0,this.tombstones=[],this.items=[],this.loadedItems=0,this.requestInProgress=!1,this.hasMore=!0,this.scroller=t,this.wrapperEl=this.scroller.wrapper,this.scrollerEl=this.scroller.scroller,this.scroller.on("scroll",function(){i.onScroll()}),this.scroller.on("resize",function(){i.onResize()}),this.onResize()}function k(t,e){this.wrapper="string"==typeof t?document.querySelector(t):t,this.wrapper||b("Can not resolve the wrapper DOM."),this.scroller=this.wrapper.children[0],this.scroller||b("The wrapper need at least one child element to be scroller."),this.scrollerStyle=this.scroller.style,this._init(t,e)}var A=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(t){r=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),D=function(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)},P="undefined"!=typeof window,O=P&&navigator.userAgent.toLowerCase(),L=O&&/wechatdevtools/.test(O),E=O&&O.indexOf("android")>0,R=P&&document.createElement("div").style,B=function(){if(!P)return!1;var t={webkit:"webkitTransform",Moz:"MozTransform",O:"OTransform",ms:"msTransform",standard:"transform"};for(var e in t)if(void 0!==R[t[e]])return e;return!1}(),N=s("transform"),z=P&&s("perspective")in R,F=P&&("ontouchstart"in window||L),Y=!1!==N,H=P&&s("transition")in R,V={transform:N,transitionTimingFunction:s("transitionTimingFunction"),transitionDuration:s("transitionDuration"),transitionDelay:s("transitionDelay"),transformOrigin:s("transformOrigin"),transitionEnd:s("transitionEnd")},W=1,X={touchstart:W,touchmove:W,touchend:W,mousedown:2,mousemove:2,mouseup:2},U={startX:0,startY:0,scrollX:!1,scrollY:!0,freeScroll:!1,directionLockThreshold:5,eventPassthrough:"",click:!1,tap:!1,bounce:!0,bounceTime:800,momentum:!0,momentumLimitTime:300,momentumLimitDistance:15,swipeTime:2500,swipeBounceTime:500,deceleration:.0015,flickLimitTime:200,flickLimitDistance:100,resizePolling:60,probeType:0,preventDefault:!0,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT)$/},HWCompositing:!0,useTransition:!0,useTransform:!0,bindToWrapper:!1,disableMouse:F,disableTouch:!F,observeDOM:!0,autoBlur:!0,wheel:!1,snap:!1,scrollbar:!1,pullDownRefresh:!1,pullUpLoad:!1,mouseWheel:!1,stopPropagation:!1,zoom:!1,infinity:!1,dblclick:!1},j={swipe:{style:"cubic-bezier(0.23, 1, 0.32, 1)",fn:function(t){return 1+--t*t*t*t*t}},swipeBounce:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(t){return t*(2-t)}},bounce:{style:"cubic-bezier(0.165, 0.84, 0.44, 1)",fn:function(t){return 1- --t*t*t*t}}},G=function(){return P?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||function(t){return window.setTimeout(t,(t.interval||100/60)/2)}:w}(),q=function(){return P?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||function(t){window.clearTimeout(t)}:w}(),Z=1,K=-1,Q=1,$=-1,J=1,tt=3;M.prototype.handleEvent=function(t){switch(t.type){case"touchstart":case"mousedown":this._start(t);break;case"touchmove":case"mousemove":this._move(t);break;case"touchend":case"mouseup":case"touchcancel":case"mousecancel":this._end(t)}},M.prototype.refresh=function(){this._shouldShow()&&(this.transitionTime(),this._calculate(),this.updatePosition())},M.prototype.fade=function(t,e){var i=this;if(!e||this.visible){var n=t?250:500;t=t?"1":"0",this.wrapperStyle[V.transitionDuration]=n+"ms",clearTimeout(this.fadeTimeout),this.fadeTimeout=setTimeout(function(){i.wrapperStyle.opacity=t,i.visible=+t},0)}},M.prototype.updatePosition=function(){if("vertical"===this.direction){var t=Math.round(this.sizeRatioY*this.scroller.y);if(t<0){this.transitionTime(500);var e=Math.max(this.indicatorHeight+3*t,8);this.indicatorStyle.height=e+"px",t=0}else if(t>this.maxPosY){this.transitionTime(500);var i=Math.max(this.indicatorHeight-3*(t-this.maxPosY),8);this.indicatorStyle.height=i+"px",t=this.maxPosY+this.indicatorHeight-i}else this.indicatorStyle.height=this.indicatorHeight+"px";this.y=t,this.scroller.options.useTransform?this.indicatorStyle[V.transform]="translateY("+t+"px)"+this.scroller.translateZ:this.indicatorStyle.top=t+"px"}else{var n=Math.round(this.sizeRatioX*this.scroller.x);if(n<0){this.transitionTime(500);var r=Math.max(this.indicatorWidth+3*n,8);this.indicatorStyle.width=r+"px",n=0}else if(n>this.maxPosX){this.transitionTime(500);var o=Math.max(this.indicatorWidth-3*(n-this.maxPosX),8);this.indicatorStyle.width=o+"px",n=this.maxPosX+this.indicatorWidth-o}else this.indicatorStyle.width=this.indicatorWidth+"px";this.x=n,this.scroller.options.useTransform?this.indicatorStyle[V.transform]="translateX("+n+"px)"+this.scroller.translateZ:this.indicatorStyle.left=n+"px"}},M.prototype.transitionTime=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.indicatorStyle[V.transitionDuration]=t+"ms"},M.prototype.transitionTimingFunction=function(t){this.indicatorStyle[V.transitionTimingFunction]=t},M.prototype.destroy=function(){this._removeDOMEvents(),this.wrapper.parentNode.removeChild(this.wrapper)},M.prototype._start=function(t){var e=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.transitionTime(),this.initiated=!0,this.moved=!1,this.lastPointX=e.pageX,this.lastPointY=e.pageY,this.startTime=n(),this._handleMoveEvents(l),this.scroller.trigger("beforeScrollStart")},M.prototype._move=function(t){var e=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.moved||this.scroller.trigger("scrollStart"),this.moved=!0;var i=e.pageX-this.lastPointX;this.lastPointX=e.pageX;var n=e.pageY-this.lastPointY;this.lastPointY=e.pageY;var r=this.x+i,o=this.y+n;this._pos(r,o)},M.prototype._end=function(t){if(this.initiated){this.initiated=!1,t.preventDefault(),t.stopPropagation(),this._handleMoveEvents(u);var e=this.scroller.options.snap;if(e){var i=e.speed,n=e.easing,r=void 0===n?j.bounce:n,o=this.scroller._nearestSnap(this.scroller.x,this.scroller.y),a=i||Math.max(Math.max(Math.min(Math.abs(this.scroller.x-o.x),1e3),Math.min(Math.abs(this.scroller.y-o.y),1e3)),300);this.scroller.x===o.x&&this.scroller.y===o.y||(this.scroller.directionX=0,this.scroller.directionY=0,this.scroller.currentPage=o,this.scroller.scrollTo(o.x,o.y,a,r))}this.moved&&this.scroller.trigger("scrollEnd",{x:this.scroller.x,y:this.scroller.y})}},M.prototype._pos=function(t,e){t<0?t=0:t>this.maxPosX&&(t=this.maxPosX),e<0?e=0:e>this.maxPosY&&(e=this.maxPosY),t=Math.round(t/this.sizeRatioX),e=Math.round(e/this.sizeRatioY),this.scroller.scrollTo(t,e),this.scroller.trigger("scroll",{x:this.scroller.x,y:this.scroller.y})},M.prototype._shouldShow=function(){return"vertical"===this.direction&&this.scroller.hasVerticalScroll||"horizontal"===this.direction&&this.scroller.hasHorizontalScroll?(this.wrapper.style.display="",!0):(this.wrapper.style.display="none",!1)},M.prototype._calculate=function(){if("vertical"===this.direction){var t=this.wrapper.clientHeight;this.indicatorHeight=Math.max(Math.round(t*t/(this.scroller.scrollerHeight||t||1)),8),this.indicatorStyle.height=this.indicatorHeight+"px",this.maxPosY=t-this.indicatorHeight,this.sizeRatioY=this.maxPosY/this.scroller.maxScrollY}else{var e=this.wrapper.clientWidth;this.indicatorWidth=Math.max(Math.round(e*e/(this.scroller.scrollerWidth||e||1)),8),this.indicatorStyle.width=this.indicatorWidth+"px",this.maxPosX=e-this.indicatorWidth,this.sizeRatioX=this.maxPosX/this.scroller.maxScrollX}},M.prototype._addDOMEvents=function(){var t=l;this._handleDOMEvents(t)},M.prototype._removeDOMEvents=function(){var t=u;this._handleDOMEvents(t),this._handleMoveEvents(t)},M.prototype._handleMoveEvents=function(t){this.scroller.options.disableTouch||t(window,"touchmove",this),this.scroller.options.disableMouse||t(window,"mousemove",this)},M.prototype._handleDOMEvents=function(t){this.scroller.options.disableTouch||(t(this.indicator,"touchstart",this),t(window,"touchend",this)),this.scroller.options.disableMouse||(t(this.indicator,"mousedown",this),t(window,"mouseup",this))};var et=2e3;I.prototype.onScroll=function(){var t=-this.scroller.y,e=t-this.anchorScrollTop;this.anchorItem=0===t?{index:0,offset:0}:this._calculateAnchoredItem(this.anchorItem,e),this.anchorScrollTop=t;var i=this._calculateAnchoredItem(this.anchorItem,this.wrapperEl.offsetHeight),n=this.anchorItem.index,r=i.index;e<0?(n-=30,r+=10):(n-=10,r+=30),this.fill(n,r),this.maybeRequestContent()},I.prototype.onResize=function(){var t=this.options.createTombstone();t.style.position="absolute",this.scrollerEl.appendChild(t),t.style.display="",this.tombstoneHeight=t.offsetHeight,this.tombstoneWidth=t.offsetWidth,this.scrollerEl.removeChild(t);for(var e=0;e<this.items.length;e++)this.items[e].height=this.items[e].width=0;this.onScroll()},I.prototype.fill=function(t,e){this.firstAttachedItem=Math.max(0,t),this.hasMore||(e=Math.min(e,this.items.length)),this.lastAttachedItem=e,this.attachContent()},I.prototype.maybeRequestContent=function(){var t=this;if(!this.requestInProgress&&this.hasMore){var e=this.lastAttachedItem-this.loadedItems;e<=0||(this.requestInProgress=!0,this.options.fetch(e).then(function(e){if(t.requestInProgress=!1,e)t.addContent(e);else{t.hasMore=!1;var i=t._removeTombstones(),n=0;t.anchorItem.index<=t.items.length?(n=t._fixScrollPosition(),t._setupAnimations({},n),t.scroller.resetPosition(t.scroller.options.bounceTime)):(t.anchorItem.index-=i,n=t._fixScrollPosition(),t._setupAnimations({},n),t.scroller.stop(),t.scroller.resetPosition(),t.onScroll())}}))}},I.prototype.addContent=function(t){for(var e=0;e<t.length;e++)this.items.length<=this.loadedItems&&this._addItem(),this.items[this.loadedItems++].data=t[e];this.attachContent(),this.maybeRequestContent()},I.prototype.attachContent=function(){var t=this._collectUnusedNodes(),e=this._createDOMNodes(t);this._cleanupUnusedNodes(t),this._cacheNodeSize();var i=this._fixScrollPosition();this._setupAnimations(e,i)},I.prototype.resetMore=function(){this.hasMore=!0},I.prototype._removeTombstones=function(){for(var t=void 0,e=0,i=this.items.length,n=0;n<i;n++){var r=this.items[n].node,o=this.items[n].data;r&&!C(r)||o||(t||(t=n),r&&this.scrollerEl.removeChild(r))}return e=i-t,this.items.splice(t),this.lastAttachedItem=Math.min(this.lastAttachedItem,this.items.length),e},I.prototype._collectUnusedNodes=function(){for(var t=[],e=0;e<this.items.length;e++)if(e!==this.firstAttachedItem){var i=this.items[e].node;i&&(C(i)?(this.tombstones.push(i),this.tombstones[this.tombstones.length-1].style.display="none"):t.push(i)),this.items[e].node=null}else e=this.lastAttachedItem-1;return t},I.prototype._createDOMNodes=function(t){for(var e={},i=this.firstAttachedItem;i<this.lastAttachedItem;i++){for(;this.items.length<=i;)this._addItem();var n=this.items[i].node,r=this.items[i].data;if(n){if(!C(n)||!r)continue;n.style.zIndex=1,e[i]=[n,this.items[i].top-this.anchorScrollTop],this.items[i].node=null}var o=r?this.options.render(r,t.pop()):this._getTombStone();o.style.position="absolute",this.items[i].top=-1,this.scrollerEl.appendChild(o),this.items[i].node=o}return e},I.prototype._cleanupUnusedNodes=function(t){for(;t.length;)this.scrollerEl.removeChild(t.pop())},I.prototype._cacheNodeSize=function(){for(var t=this.firstAttachedItem;t<this.lastAttachedItem;t++)this.items[t].data&&!this.items[t].height&&(this.items[t].height=this.items[t].node.offsetHeight,this.items[t].width=this.items[t].node.offsetWidth)},I.prototype._fixScrollPosition=function(){this.anchorScrollTop=0;for(var t=0;t<this.anchorItem.index;t++)this.anchorScrollTop+=this.items[t].height||this.tombstoneHeight;this.anchorScrollTop+=this.anchorItem.offset;for(var e=this.anchorScrollTop-this.anchorItem.offset,i=this.anchorItem.index;i>this.firstAttachedItem;)e-=this.items[i-1].height||this.tombstoneHeight,i--;return e},I.prototype._setupAnimations=function(t,e){var i=this;for(var n in t){var r=t[n];this.items[n].node.style.transform="translateY("+(this.anchorScrollTop+r[1])+"px) scale("+this.tombstoneWidth/this.items[n].width+", "+this.tombstoneHeight/this.items[n].height+")",this.items[n].node.offsetTop,r[0].offsetTop,this.items[n].node.style.transition="transform 200ms"}for(var o=this.firstAttachedItem;o<this.lastAttachedItem;o++){var a=t[o];if(a){var s=a[0];s.style.transition="transform 200ms, opacity 200ms",s.style.transform="translateY("+e+"px) scale("+this.items[o].width/this.tombstoneWidth+", "+this.items[o].height/this.tombstoneHeight+")",s.style.opacity=0}e!==this.items[o].top&&(a||(this.items[o].node.style.transition=""),this.items[o].node.style.transform="translateY("+e+"px)"),this.items[o].top=e,e+=this.items[o].height||this.tombstoneHeight}this.scroller.maxScrollY=-(e-this.wrapperEl.offsetHeight+(this.hasMore?et:0)),setTimeout(function(){for(var e in t){var n=t[e];n[0].style.display="none",i.tombstones.push(n[0])}},200)},I.prototype._getTombStone=function(){var t=this.tombstones.pop();return t?(t.style.display="",t.style.opacity=1,t.style.transform="",t.style.transition="",t):this.options.createTombstone()},I.prototype._addItem=function(){this.items.push({data:null,node:null,height:0,width:0,top:0})},I.prototype._calculateAnchoredItem=function(t,e){if(0===e)return t;var i=t.index,n=0;if((e+=t.offset)<0){for(;e<0&&i>0&&this.items[i-1].height;)e+=this.items[i-1].height,i--;n=Math.max(-i,Math.ceil(Math.min(e,0)/this.tombstoneHeight))}else{for(;e>0&&i<this.items.length&&this.items[i].height&&this.items[i].height<e;)e-=this.items[i].height,i++;(i>=this.items.length||!this.items[i].height)&&(n=Math.floor(Math.max(e,0)/this.tombstoneHeight))}return i+=n,e-=n*this.tombstoneHeight,{index:i,offset:e}},function(t){t.prototype._init=function(t,e){this._handleOptions(e),this._events={},this.x=0,this.y=0,this.directionX=0,this.directionY=0,this.setScale(1),this._addDOMEvents(),this._initExtFeatures(),this._watchTransition(),this.options.observeDOM&&this._initDOMObserver(),this.options.autoBlur&&this._handleAutoBlur(),this.refresh(),this.options.snap||this.scrollTo(this.options.startX,this.options.startY),this.enable()},t.prototype.setScale=function(t){this.lastScale=o(this.scale)?t:this.scale,this.scale=t},t.prototype._handleOptions=function(t){this.options=r({},U,t),this.translateZ=this.options.HWCompositing&&z?" translateZ(0)":"",this.options.useTransition=this.options.useTransition&&H,this.options.useTransform=this.options.useTransform&&Y,this.options.preventDefault=!this.options.eventPassthrough&&this.options.preventDefault,this.options.scrollX="horizontal"!==this.options.eventPassthrough&&this.options.scrollX,this.options.scrollY="vertical"!==this.options.eventPassthrough&&this.options.scrollY,this.options.freeScroll=this.options.freeScroll&&!this.options.eventPassthrough,this.options.directionLockThreshold=this.options.eventPassthrough?0:this.options.directionLockThreshold,!0===this.options.tap&&(this.options.tap="tap")},t.prototype._addDOMEvents=function(){var t=l;this._handleDOMEvents(t)},t.prototype._removeDOMEvents=function(){var t=u;this._handleDOMEvents(t)},t.prototype._handleDOMEvents=function(t){var e=this.options.bindToWrapper?this.wrapper:window;t(window,"orientationchange",this),t(window,"resize",this),this.options.click&&t(this.wrapper,"click",this,!0),this.options.disableMouse||(t(this.wrapper,"mousedown",this),t(e,"mousemove",this),t(e,"mousecancel",this),t(e,"mouseup",this)),F&&!this.options.disableTouch&&(t(this.wrapper,"touchstart",this),t(e,"touchmove",this),t(e,"touchcancel",this),t(e,"touchend",this)),t(this.scroller,V.transitionEnd,this)},t.prototype._initExtFeatures=function(){this.options.snap&&this._initSnap(),this.options.scrollbar&&this._initScrollbar(),this.options.pullUpLoad&&this._initPullUp(),this.options.pullDownRefresh&&this._initPullDown(),this.options.wheel&&this._initWheel(),this.options.mouseWheel&&this._initMouseWheel(),this.options.zoom&&this._initZoom(),this.options.infinity&&this._initInfinite()},t.prototype._watchTransition=function(){if("function"==typeof Object.defineProperty){var t=this,e=!1,i=this.useTransition?"isInTransition":"isAnimating";Object.defineProperty(this,i,{get:function(){return e},set:function(i){e=i;for(var n=t.scroller.children.length?t.scroller.children:[t.scroller],r=e&&!t.pulling?"none":"auto",o=0;o<n.length;o++)n[o].style.pointerEvents=r}})}},t.prototype._handleAutoBlur=function(){this.on("scrollStart",function(){var t=document.activeElement;!t||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName||t.blur()})},t.prototype._initDOMObserver=function(){var t=this;if("undefined"!=typeof MutationObserver){var e=void 0,i=new MutationObserver(function(i){if(!t._shouldNotRefresh()){for(var n=!1,r=!1,o=0;o<i.length;o++){var a=i[o];if("attributes"!==a.type){n=!0;break}if(a.target!==t.scroller){r=!0;break}}n?t.refresh():r&&(clearTimeout(e),e=setTimeout(function(){t._shouldNotRefresh()||t.refresh()},60))}}),n={attributes:!0,childList:!0,subtree:!0};i.observe(this.scroller,n),this.on("destroy",function(){i.disconnect()})}else this._checkDOMUpdate()},t.prototype._shouldNotRefresh=function(){var t=this.x>this.minScrollX||this.x<this.maxScrollX||this.y>this.minScrollY||this.y<this.maxScrollY;return this.isInTransition||this.stopFromTransition||t},t.prototype._checkDOMUpdate=function(){function t(){if(!this.destroyed){i=p(this.scroller);var t=i.width,o=i.height;n===t&&r===o||this.refresh(),n=t,r=o,e.call(this)}}function e(){var e=this;setTimeout(function(){t.call(e)},1e3)}var i=p(this.scroller),n=i.width,r=i.height;e.call(this)},t.prototype.handleEvent=function(t){switch(t.type){case"touchstart":case"mousedown":this._start(t),this.options.zoom&&t.touches&&t.touches.length>1&&this._zoomStart(t);break;case"touchmove":case"mousemove":this.options.zoom&&t.touches&&t.touches.length>1?this._zoom(t):this._move(t);break;case"touchend":case"mouseup":case"touchcancel":case"mousecancel":this.scaled?this._zoomEnd(t):this._end(t);break;case"orientationchange":case"resize":this._resize();break;case"transitionend":case"webkitTransitionEnd":case"oTransitionEnd":case"MSTransitionEnd":this._transitionEnd(t);break;case"click":this.enabled&&!t._constructed&&(f(t.target,this.options.preventDefaultException)||(t.preventDefault(),t.stopPropagation()));break;case"wheel":case"DOMMouseScroll":case"mousewheel":this._onMouseWheel(t)}},t.prototype.refresh=function(){var t="static"===window.getComputedStyle(this.wrapper,null).position,e=p(this.wrapper);this.wrapperWidth=e.width,this.wrapperHeight=e.height;var i=p(this.scroller);this.scrollerWidth=Math.round(i.width*this.scale),this.scrollerHeight=Math.round(i.height*this.scale),this.relativeX=i.left,this.relativeY=i.top,t&&(this.relativeX-=e.left,this.relativeY-=e.top),this.minScrollX=0,this.minScrollY=0;var n=this.options.wheel;n?(this.items=this.scroller.children,this.options.itemHeight=this.itemHeight=this.items.length?this.scrollerHeight/this.items.length:0,void 0===this.selectedIndex&&(this.selectedIndex=n.selectedIndex||0),this.options.startY=-this.selectedIndex*this.itemHeight,this.maxScrollX=0,this.maxScrollY=-this.itemHeight*(this.items.length-1)):(this.maxScrollX=this.wrapperWidth-this.scrollerWidth,this.options.infinity||(this.maxScrollY=this.wrapperHeight-this.scrollerHeight),this.maxScrollX<0?(this.maxScrollX-=this.relativeX,this.minScrollX=-this.relativeX):this.scale>1&&(this.maxScrollX=this.maxScrollX/2-this.relativeX,this.minScrollX=this.maxScrollX),this.maxScrollY<0?(this.maxScrollY-=this.relativeY,this.minScrollY=-this.relativeY):this.scale>1&&(this.maxScrollY=this.maxScrollY/2-this.relativeY,this.minScrollY=this.maxScrollY)),this.hasHorizontalScroll=this.options.scrollX&&this.maxScrollX<this.minScrollX,this.hasVerticalScroll=this.options.scrollY&&this.maxScrollY<this.minScrollY,this.hasHorizontalScroll||(this.maxScrollX=this.minScrollX,this.scrollerWidth=this.wrapperWidth),this.hasVerticalScroll||(this.maxScrollY=this.minScrollY,this.scrollerHeight=this.wrapperHeight),this.endTime=0,this.directionX=0,this.directionY=0,this.wrapperOffset=h(this.wrapper),this.trigger("refresh"),!this.scaled&&this.resetPosition()},t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1}}(k),function(t){t.prototype._start=function(t){var e=X[t.type];if((e===W||0===t.button)&&!(!this.enabled||this.destroyed||this.initiated&&this.initiated!==e)){this.initiated=e,this.options.preventDefault&&!f(t.target,this.options.preventDefaultException)&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.moved=!1,this.distX=0,this.distY=0,this.directionX=0,this.directionY=0,this.movingDirectionX=0,this.movingDirectionY=0,this.directionLocked=0,this._transitionTime(),this.startTime=n(),this.options.wheel&&(this.target=t.target),this.stop();var i=t.touches?t.touches[0]:t;this.startX=this.x,this.startY=this.y,this.absStartX=this.x,this.absStartY=this.y,this.pointX=i.pageX,this.pointY=i.pageY,this.trigger("beforeScrollStart")}},t.prototype._move=function(t){if(this.enabled&&!this.destroyed&&X[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation();var e=t.touches?t.touches[0]:t,i=e.pageX-this.pointX,r=e.pageY-this.pointY;this.pointX=e.pageX,this.pointY=e.pageY,this.distX+=i,this.distY+=r;var o=Math.abs(this.distX),a=Math.abs(this.distY),s=n();if(!(s-this.endTime>this.options.momentumLimitTime&&a<this.options.momentumLimitDistance&&o<this.options.momentumLimitDistance)){if(this.directionLocked||this.options.freeScroll||(o>a+this.options.directionLockThreshold?this.directionLocked="h":a>=o+this.options.directionLockThreshold?this.directionLocked="v":this.directionLocked="n"),"h"===this.directionLocked){if("vertical"===this.options.eventPassthrough)t.preventDefault();else if("horizontal"===this.options.eventPassthrough)return void(this.initiated=!1);r=0}else if("v"===this.directionLocked){if("horizontal"===this.options.eventPassthrough)t.preventDefault();else if("vertical"===this.options.eventPassthrough)return void(this.initiated=!1);i=0}i=this.hasHorizontalScroll?i:0,r=this.hasVerticalScroll?r:0,this.movingDirectionX=i>0?$:i<0?Q:0,this.movingDirectionY=r>0?K:r<0?Z:0;var l=this.x+i,u=this.y+r,h=!1,c=!1,p=!1,f=!1,d=this.options.bounce;!1!==d&&(h=void 0===d.top||d.top,c=void 0===d.bottom||d.bottom,p=void 0===d.left||d.left,f=void 0===d.right||d.right),(l>this.minScrollX||l<this.maxScrollX)&&(l=l>this.minScrollX&&p||l<this.maxScrollX&&f?this.x+i/3:l>this.minScrollX?this.minScrollX:this.maxScrollX),(u>this.minScrollY||u<this.maxScrollY)&&(u=u>this.minScrollY&&h||u<this.maxScrollY&&c?this.y+r/3:u>this.minScrollY?this.minScrollY:this.maxScrollY),this.moved||(this.moved=!0,this.trigger("scrollStart")),this._translate(l,u),s-this.startTime>this.options.momentumLimitTime&&(this.startTime=s,this.startX=this.x,this.startY=this.y,this.options.probeType===J&&this.trigger("scroll",{x:this.x,y:this.y})),this.options.probeType>J&&this.trigger("scroll",{x:this.x,y:this.y});var g=document.documentElement.scrollLeft||window.pageXOffset||document.body.scrollLeft,v=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,y=this.pointX-g,m=this.pointY-v;(y>document.documentElement.clientWidth-this.options.momentumLimitDistance||y<this.options.momentumLimitDistance||m<this.options.momentumLimitDistance||m>document.documentElement.clientHeight-this.options.momentumLimitDistance)&&this._end(t)}}},t.prototype._end=function(t){if(this.enabled&&!this.destroyed&&X[t.type]===this.initiated){this.initiated=!1,this.options.preventDefault&&!f(t.target,this.options.preventDefaultException)&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.trigger("touchEnd",{x:this.x,y:this.y}),this.isInTransition=!1;var e=Math.round(this.x),i=Math.round(this.y),r=e-this.absStartX,o=i-this.absStartY;if(this.directionX=r>0?$:r<0?Q:0,this.directionY=o>0?K:o<0?Z:0,!this.options.pullDownRefresh||!this._checkPullDown()){if(this._checkClick(t))return void this.trigger("scrollCancel");if(!this.resetPosition(this.options.bounceTime,j.bounce)){this._translate(e,i),this.endTime=n();var a=this.endTime-this.startTime,s=Math.abs(e-this.startX),l=Math.abs(i-this.startY);if(this._events.flick&&a<this.options.flickLimitTime&&s<this.options.flickLimitDistance&&l<this.options.flickLimitDistance)return void this.trigger("flick");var u=0;if(this.options.momentum&&a<this.options.momentumLimitTime&&(l>this.options.momentumLimitDistance||s>this.options.momentumLimitDistance)){var h=!1,c=!1,p=!1,d=!1,g=this.options.bounce;!1!==g&&(h=void 0===g.top||g.top,c=void 0===g.bottom||g.bottom,p=void 0===g.left||g.left,d=void 0===g.right||g.right);var v=this.directionX===$&&p||this.directionX===Q&&d?this.wrapperWidth:0,y=this.directionY===K&&h||this.directionY===Z&&c?this.wrapperHeight:0,m=this.hasHorizontalScroll?x(this.x,this.startX,a,this.maxScrollX,this.minScrollX,v,this.options):{destination:e,duration:0},_=this.hasVerticalScroll?x(this.y,this.startY,a,this.maxScrollY,this.minScrollY,y,this.options):{destination:i,duration:0};e=m.destination,i=_.destination,u=Math.max(m.duration,_.duration),this.isInTransition=!0}else this.options.wheel&&(i=Math.round(i/this.itemHeight)*this.itemHeight,u=this.options.wheel.adjustTime||400);var w=j.swipe;if(this.options.snap){var b=this._nearestSnap(e,i);this.currentPage=b,u=this.options.snapSpeed||Math.max(Math.max(Math.min(Math.abs(e-b.x),1e3),Math.min(Math.abs(i-b.y),1e3)),300),e=b.x,i=b.y,this.directionX=0,this.directionY=0,w=this.options.snap.easing||j.bounce}if(e!==this.x||i!==this.y)return(e>this.minScrollX||e<this.maxScrollX||i>this.minScrollY||i<this.maxScrollY)&&(w=j.swipeBounce),void this.scrollTo(e,i,u,w);this.options.wheel&&(this.selectedIndex=Math.round(Math.abs(this.y/this.itemHeight))),this.trigger("scrollEnd",{x:this.x,y:this.y})}}}},t.prototype._checkClick=function(t){var e=this.stopFromTransition&&!this.pulling;if(this.stopFromTransition=!1,!this.moved){if(this.options.wheel){if(this.target&&this.target.classList.contains(this.options.wheel.wheelWrapperClass)){var i=Math.abs(Math.round(this.y/this.itemHeight)),r=Math.round((this.pointY+c(this.wrapper).top-this.wrapperHeight/2)/this.itemHeight);this.target=this.items[i+r]}return this.scrollToElement(this.target,this.options.wheel.adjustTime||400,!0,!0,j.swipe),!0}if(!e){var o=this.options.dblclick,a=!1;if(o&&this.lastClickTime){var s=o.delay,l=void 0===s?300:s;n()-this.lastClickTime<l&&(a=!0,v(t))}return this.options.tap&&d(t,this.options.tap),this.options.click&&!f(t.target,this.options.preventDefaultException)&&g(t),this.lastClickTime=a?null:n(),!0}return!1}return!1},t.prototype._resize=function(){var t=this;this.enabled&&(E&&(this.wrapper.scrollTop=0),clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){t.refresh()},this.options.resizePolling))},t.prototype._startProbe=function(){function t(){var i=e.getComputedPosition();if(e.trigger("scroll",i),!e.isInTransition)return void e.trigger("scrollEnd",i);e.probeTimer=G(t)}q(this.probeTimer),this.probeTimer=G(t);var e=this},t.prototype._transitionTime=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.scrollerStyle[V.transitionDuration]=t+"ms",this.options.wheel)for(var e=0;e<this.items.length;e++)this.items[e].style[V.transitionDuration]=t+"ms";if(this.indicators)for(var i=0;i<this.indicators.length;i++)this.indicators[i].transitionTime(t)},t.prototype._transitionTimingFunction=function(t){if(this.scrollerStyle[V.transitionTimingFunction]=t,this.options.wheel)for(var e=0;e<this.items.length;e++)this.items[e].style[V.transitionTimingFunction]=t;if(this.indicators)for(var i=0;i<this.indicators.length;i++)this.indicators[i].transitionTimingFunction(t)},t.prototype._transitionEnd=function(t){t.target===this.scroller&&this.isInTransition&&(this._transitionTime(),(!this.pulling||this.movingDirectionY===Z)&&!this.resetPosition(this.options.bounceTime,j.bounce)&&(this.isInTransition=!1,this.options.probeType!==tt&&this.trigger("scrollEnd",{x:this.x,y:this.y})))},t.prototype._translate=function(t,e,i){if(S(!o(t)&&!o(e),"Translate x or y is null or undefined."),o(i)&&(i=this.scale),this.options.useTransform?this.scrollerStyle[V.transform]="translate("+t+"px,"+e+"px) scale("+i+")"+this.translateZ:(t=Math.round(t),e=Math.round(e),this.scrollerStyle.left=t+"px",this.scrollerStyle.top=e+"px"),this.options.wheel)for(var n=this.options.wheel.rotate,r=void 0===n?25:n,a=0;a<this.items.length;a++){var s=r*(e/this.itemHeight+a);this.items[a].style[V.transform]="rotateX("+s+"deg)"}if(this.x=t,this.y=e,this.setScale(i),this.indicators)for(var l=0;l<this.indicators.length;l++)this.indicators[l].updatePosition()},t.prototype._animate=function(t,e,i,r){function o(){var f=n();if(f>=p)return a.isAnimating=!1,a._translate(t,e,h),a.trigger("scroll",{x:a.x,y:a.y}),void(a.pulling||a.resetPosition(a.options.bounceTime)||a.trigger("scrollEnd",{x:a.x,y:a.y}));f=(f-c)/i;var d=r(f),g=(t-s)*d+s,v=(e-l)*d+l,y=(h-u)*d+u;a._translate(g,v,y),a.isAnimating&&(a.animateTimer=G(o)),a.options.probeType===tt&&a.trigger("scroll",{x:a.x,y:a.y})}var a=this,s=this.x,l=this.y,u=this.lastScale,h=this.scale,c=n(),p=c+i;this.isAnimating=!0,q(this.animateTimer),o()},t.prototype.scrollBy=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:j.bounce;t=this.x+t,e=this.y+e,this.scrollTo(t,e,i,n)},t.prototype.scrollTo=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:j.bounce;this.isInTransition=this.options.useTransition&&i>0&&(t!==this.x||e!==this.y),!i||this.options.useTransition?(this._transitionTimingFunction(n.style),this._transitionTime(i),this._translate(t,e),i&&this.options.probeType===tt&&this._startProbe(),i||t===this.x&&e===this.y||(this.trigger("scroll",{x:t,y:e}),this._reflow=document.body.offsetHeight,this.resetPosition(this.options.bounceTime,j.bounce)||this.trigger("scrollEnd",{x:t,y:e})),this.options.wheel&&(e>this.minScrollY?this.selectedIndex=0:e<this.maxScrollY?this.selectedIndex=this.items.length-1:this.selectedIndex=Math.round(Math.abs(e/this.itemHeight)))):this._animate(t,e,i,n.fn)},t.prototype.scrollToElement=function(t,e,i,n,r){if(t&&(t=t.nodeType?t:this.scroller.querySelector(t),!this.options.wheel||t.classList.contains(this.options.wheel.wheelItemClass))){var o=h(t);o.left-=this.wrapperOffset.left,o.top-=this.wrapperOffset.top,!0===i&&(i=Math.round(t.offsetWidth/2-this.wrapper.offsetWidth/2)),!0===n&&(n=Math.round(t.offsetHeight/2-this.wrapper.offsetHeight/2)),o.left-=i||0,o.top-=n||0,o.left=o.left>this.minScrollX?this.minScrollX:o.left<this.maxScrollX?this.maxScrollX:o.left,o.top=o.top>this.minScrollY?this.minScrollY:o.top<this.maxScrollY?this.maxScrollY:o.top,this.options.wheel&&(o.top=Math.round(o.top/this.itemHeight)*this.itemHeight),this.scrollTo(o.left,o.top,e,r)}},t.prototype.resetPosition=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:j.bounce,i=this.x,n=Math.round(i);!this.hasHorizontalScroll||n>this.minScrollX?i=this.minScrollX:n<this.maxScrollX&&(i=this.maxScrollX);var r=this.y,o=Math.round(r);return!this.hasVerticalScroll||o>this.minScrollY?r=this.minScrollY:o<this.maxScrollY&&(r=this.maxScrollY),(i!==this.x||r!==this.y)&&(this.scrollTo(i,r,t,e),!0)},t.prototype.getComputedPosition=function(){var t=window.getComputedStyle(this.scroller,null),e=void 0,i=void 0;return this.options.useTransform?(t=t[V.transform].split(")")[0].split(", "),e=+(t[12]||t[4]),i=+(t[13]||t[5])):(e=+t.left.replace(/[^-\d.]/g,""),i=+t.top.replace(/[^-\d.]/g,"")),{x:e,y:i}},t.prototype.stop=function(){if(this.options.useTransition&&this.isInTransition){this.isInTransition=!1,q(this.probeTimer);var t=this.getComputedPosition();this._translate(t.x,t.y),this.options.wheel?this.target=this.items[Math.round(-t.y/this.itemHeight)]:this.trigger("scrollEnd",{x:this.x,y:this.y}),this.stopFromTransition=!0}else!this.options.useTransition&&this.isAnimating&&(this.isAnimating=!1,q(this.animateTimer),this.trigger("scrollEnd",{x:this.x,y:this.y}),this.stopFromTransition=!0)},t.prototype.destroy=function(){this.destroyed=!0,this.trigger("destroy"),q(this.options.useTransition?this.probeTimer:this.animateTimer),this._removeDOMEvents(),this._events={}}}(k),function(t){t.prototype.on=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;this._events[t]||(this._events[t]=[]),this._events[t].push([e,i])},t.prototype.once=function(t,e){function i(){this.off(t,i),e.apply(n,arguments)}var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;i.fn=e,this.on(t,i)},t.prototype.off=function(t,e){var i=this._events[t];if(i)for(var n=i.length;n--;)(i[n][0]===e||i[n][0]&&i[n][0].fn===e)&&(i[n][0]=void 0)},t.prototype.trigger=function(t){var e=this._events[t];if(e)for(var i=e.length,n=[].concat(D(e)),r=0;r<i;r++){var o=n[r],a=A(o,2),s=a[0],l=a[1];s&&s.apply(l,[].slice.call(arguments,1))}}}(k),function(t){t.prototype._initSnap=function(){var t=this;this.currentPage={};var e=this.options.snap;if(e.loop){var i=this.scroller.children;i.length>1?(y(i[i.length-1].cloneNode(!0),this.scroller),this.scroller.appendChild(i[1].cloneNode(!0))):e.loop=!1}var n=e.el;"string"==typeof n&&(n=this.scroller.querySelectorAll(n)),this.on("refresh",function(){if(t.pages=[],t.wrapperWidth&&t.wrapperHeight&&t.scrollerWidth&&t.scrollerHeight){var i=e.stepX||t.wrapperWidth,r=e.stepY||t.wrapperHeight,o=0,a=void 0,s=void 0,l=void 0,u=0,h=void 0,c=0,f=void 0,d=void 0;if(n)for(h=n.length,f=-1;u<h;u++)d=p(n[u]),(0===u||d.left<=p(n[u-1]).left)&&(c=0,f++),t.pages[c]||(t.pages[c]=[]),o=Math.max(-d.left,t.maxScrollX),a=Math.max(-d.top,t.maxScrollY),s=o-Math.round(d.width/2),l=a-Math.round(d.height/2),t.pages[c][f]={x:o,y:a,width:d.width,height:d.height,cx:s,cy:l},o>t.maxScrollX&&c++;else for(s=Math.round(i/2),l=Math.round(r/2);o>-t.scrollerWidth;){for(t.pages[u]=[],h=0,a=0;a>-t.scrollerHeight;)t.pages[u][h]={x:Math.max(o,t.maxScrollX),y:Math.max(a,t.maxScrollY),width:i,height:r,cx:o-s,cy:a-l},a-=r,h++;o-=i,u++}t._checkSnapLoop();var g=e._loopX?1:0,v=e._loopY?1:0;t._goToPage(t.currentPage.pageX||g,t.currentPage.pageY||v,0);var y=e.threshold;y%1==0?(t.snapThresholdX=y,t.snapThresholdY=y):(t.snapThresholdX=Math.round(t.pages[t.currentPage.pageX][t.currentPage.pageY].width*y),t.snapThresholdY=Math.round(t.pages[t.currentPage.pageX][t.currentPage.pageY].height*y))}}),this.on("scrollEnd",function(){e.loop&&(e._loopX?(0===t.currentPage.pageX&&t._goToPage(t.pages.length-2,t.currentPage.pageY,0),t.currentPage.pageX===t.pages.length-1&&t._goToPage(1,t.currentPage.pageY,0)):(0===t.currentPage.pageY&&t._goToPage(t.currentPage.pageX,t.pages[0].length-2,0),t.currentPage.pageY===t.pages[0].length-1&&t._goToPage(t.currentPage.pageX,1,0)))}),!1!==e.listenFlick&&this.on("flick",function(){var i=e.speed||Math.max(Math.max(Math.min(Math.abs(t.x-t.startX),1e3),Math.min(Math.abs(t.y-t.startY),1e3)),300);t._goToPage(t.currentPage.pageX+t.directionX,t.currentPage.pageY+t.directionY,i)}),this.on("destroy",function(){if(e.loop){var i=t.scroller.children;i.length>2&&(_(t.scroller,i[i.length-1]),_(t.scroller,i[0]))}})},t.prototype._checkSnapLoop=function(){var t=this.options.snap;t.loop&&this.pages&&this.pages.length&&(this.pages.length>1&&(t._loopX=!0),this.pages[0]&&this.pages[0].length>1&&(t._loopY=!0),t._loopX&&t._loopY&&b("Loop does not support two direction at the same time."))},t.prototype._nearestSnap=function(t,e){if(!this.pages.length)return{x:0,y:0,pageX:0,pageY:0};var i=0;if(Math.abs(t-this.absStartX)<=this.snapThresholdX&&Math.abs(e-this.absStartY)<=this.snapThresholdY)return this.currentPage;t>this.minScrollX?t=this.minScrollX:t<this.maxScrollX&&(t=this.maxScrollX),e>this.minScrollY?e=this.minScrollY:e<this.maxScrollY&&(e=this.maxScrollY);for(var n=this.pages.length;i<n;i++)if(t>=this.pages[i][0].cx){t=this.pages[i][0].x;break}n=this.pages[i].length;for(var r=0;r<n;r++)if(e>=this.pages[0][r].cy){e=this.pages[0][r].y;break}return i===this.currentPage.pageX&&(i+=this.directionX,i<0?i=0:i>=this.pages.length&&(i=this.pages.length-1),t=this.pages[i][0].x),r===this.currentPage.pageY&&(r+=this.directionY,r<0?r=0:r>=this.pages[0].length&&(r=this.pages[0].length-1),e=this.pages[0][r].y),{x:t,y:e,pageX:i,pageY:r}},t.prototype._goToPage=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments[2],n=arguments[3],r=this.options.snap;if(r&&this.pages&&this.pages.length&&(n=n||r.easing||j.bounce,t>=this.pages.length?t=this.pages.length-1:t<0&&(t=0),this.pages[t])){e>=this.pages[t].length?e=this.pages[t].length-1:e<0&&(e=0);var o=this.pages[t][e].x,a=this.pages[t][e].y;i=void 0===i?r.speed||Math.max(Math.max(Math.min(Math.abs(o-this.x),1e3),Math.min(Math.abs(a-this.y),1e3)),300):i,this.currentPage={x:o,y:a,pageX:t,pageY:e},this.scrollTo(o,a,i,n)}},t.prototype.goToPage=function(t,e,i,n){var r=this.options.snap;if(r&&this.pages&&this.pages.length){if(r.loop){var o=void 0;r._loopX?(o=this.pages.length-2,t>=o?t=o-1:t<0&&(t=0),t+=1):(o=this.pages[0].length-2,e>=o?e=o-1:e<0&&(e=0),e+=1)}this._goToPage(t,e,i,n)}},t.prototype.next=function(t,e){if(this.options.snap){var i=this.currentPage.pageX,n=this.currentPage.pageY;i++,i>=this.pages.length&&this.hasVerticalScroll&&(i=0,n++),this._goToPage(i,n,t,e)}},t.prototype.prev=function(t,e){if(this.options.snap){var i=this.currentPage.pageX,n=this.currentPage.pageY;i--,i<0&&this.hasVerticalScroll&&(i=0,n--),this._goToPage(i,n,t,e)}},t.prototype.getCurrentPage=function(){var t=this.options.snap;return t?t.loop?t._loopX?r({},this.currentPage,{pageX:this.currentPage.pageX-1}):r({},this.currentPage,{pageY:this.currentPage.pageY-1}):this.currentPage:null}}(k),function(t){t.prototype.wheelTo=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.options.wheel&&(this.y=-t*this.itemHeight,this.scrollTo(0,this.y))},t.prototype.getSelectedIndex=function(){return this.options.wheel&&this.selectedIndex},t.prototype._initWheel=function(){var t=this.options.wheel;t.wheelWrapperClass||(t.wheelWrapperClass="wheel-scroll"),t.wheelItemClass||(t.wheelItemClass="wheel-item"),void 0===t.selectedIndex&&(t.selectedIndex=0,b("wheel option selectedIndex is required!"))}}(k),function(t){t.prototype._initScrollbar=function(){var t=this,e=this.options.scrollbar,i=e.fade,n=void 0===i||i,r=e.interactive,o=void 0!==r&&r;this.indicators=[];var a=void 0;this.options.scrollX&&(a={el:T("horizontal"),direction:"horizontal",fade:n,interactive:o},this._insertScrollBar(a.el),this.indicators.push(new M(this,a))),this.options.scrollY&&(a={el:T("vertical"),direction:"vertical",fade:n,interactive:o},this._insertScrollBar(a.el),this.indicators.push(new M(this,a))),this.on("refresh",function(){for(var e=0;e<t.indicators.length;e++)t.indicators[e].refresh()}),n&&(this.on("scrollEnd",function(){for(var e=0;e<t.indicators.length;e++)t.indicators[e].fade()}),this.on("scrollCancel",function(){for(var e=0;e<t.indicators.length;e++)t.indicators[e].fade()}),this.on("scrollStart",function(){for(var e=0;e<t.indicators.length;e++)t.indicators[e].fade(!0)}),this.on("beforeScrollStart",function(){for(var e=0;e<t.indicators.length;e++)t.indicators[e].fade(!0,!0)})),this.on("destroy",function(){t._removeScrollBars()})},t.prototype._insertScrollBar=function(t){this.wrapper.appendChild(t)},t.prototype._removeScrollBars=function(){for(var t=0;t<this.indicators.length;t++)this.indicators[t].destroy()}}(k),function(t){t.prototype._initPullDown=function(){this.options.probeType=tt},t.prototype._checkPullDown=function(){var t=this.options.pullDownRefresh,e=t.threshold,i=void 0===e?90:e,n=t.stop,r=void 0===n?40:n;return!(this.directionY!==K||this.y<i)&&(this.pulling||(this.pulling=!0,this.trigger("pullingDown")),this.scrollTo(this.x,r,this.options.bounceTime,j.bounce),this.pulling)},t.prototype.finishPullDown=function(){this.pulling=!1,this.resetPosition(this.options.bounceTime,j.bounce)},t.prototype.openPullDown=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.options.pullDownRefresh=t,this._initPullDown()},t.prototype.closePullDown=function(){this.options.pullDownRefresh=!1}}(k),function(t){t.prototype._initPullUp=function(){this.options.probeType=tt,this.pullupWatching=!1,this._watchPullUp()},t.prototype._watchPullUp=function(){this.pullupWatching||(this.pullupWatching=!0,this.on("scroll",this._checkToEnd))},t.prototype._checkToEnd=function(t){var e=this,i=this.options.pullUpLoad.threshold,n=void 0===i?0:i;this.movingDirectionY===Z&&t.y<=this.maxScrollY+n&&(this.once("scrollEnd",function(){e.pullupWatching=!1}),this.trigger("pullingUp"),this.off("scroll",this._checkToEnd))},t.prototype.finishPullUp=function(){var t=this;this.pullupWatching?this.once("scrollEnd",function(){t._watchPullUp()}):this._watchPullUp()},t.prototype.openPullUp=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.options.pullUpLoad=t,this._initPullUp()},t.prototype.closePullUp=function(){this.options.pullUpLoad=!1,this.pullupWatching&&(this.pullupWatching=!1,this.off("scroll",this._checkToEnd))}}(k),function(t){t.prototype._initMouseWheel=function(){var t=this;this._handleMouseWheelEvent(l),this.on("destroy",function(){clearTimeout(t.mouseWheelTimer),clearTimeout(t.mouseWheelEndTimer),t._handleMouseWheelEvent(u)}),this.firstWheelOpreation=!0},t.prototype._handleMouseWheelEvent=function(t){t(this.wrapper,"wheel",this),t(this.wrapper,"mousewheel",this),t(this.wrapper,"DOMMouseScroll",this)},t.prototype._onMouseWheel=function(t){var e=this;if(this.enabled){t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.firstWheelOpreation&&this.trigger("scrollStart"),this.firstWheelOpreation=!1;var i=this.options.mouseWheel,n=i.speed,r=void 0===n?20:n,o=i.invert,a=void 0!==o&&o,s=i.easeTime,l=void 0===s?300:s;clearTimeout(this.mouseWheelTimer),this.mouseWheelTimer=setTimeout(function(){e.options.snap||l||e.trigger("scrollEnd",{x:e.x,y:e.y}),e.firstWheelOpreation=!0},400);var u=void 0,h=void 0;switch(!0){case"deltaX"in t:1===t.deltaMode?(u=-t.deltaX*r,h=-t.deltaY*r):(u=-t.deltaX,h=-t.deltaY);break;case"wheelDeltaX"in t:u=t.wheelDeltaX/120*r,h=t.wheelDeltaY/120*r;break;case"wheelDelta"in t:u=h=t.wheelDelta/120*r;break;case"detail"in t:u=h=-t.detail/3*r;break;default:return}var c=a?-1:1;u*=c,h*=c,this.hasVerticalScroll||(u=h,h=0);var p=void 0,f=void 0;if(this.options.snap)return p=this.currentPage.pageX,f=this.currentPage.pageY,u>0?p--:u<0&&p++,h>0?f--:h<0&&f++,void this._goToPage(p,f);p=this.x+Math.round(this.hasHorizontalScroll?u:0),f=this.y+Math.round(this.hasVerticalScroll?h:0),this.movingDirectionX=this.directionX=u>0?-1:u<0?1:0,this.movingDirectionY=this.directionY=h>0?-1:h<0?1:0,p>this.minScrollX?p=this.minScrollX:p<this.maxScrollX&&(p=this.maxScrollX),f>this.minScrollY?f=this.minScrollY:f<this.maxScrollY&&(f=this.maxScrollY);var d=this.y===f;this.scrollTo(p,f,l,j.swipe),this.trigger("scroll",{x:this.x,y:this.y}),clearTimeout(this.mouseWheelEndTimer),d&&(this.mouseWheelEndTimer=setTimeout(function(){e.trigger("scrollEnd",{x:e.x,y:e.y})},l))}}}(k),function(t){t.prototype._initZoom=function(){var t=this.options.zoom,e=t.start,i=void 0===e?1:e,n=t.min,r=void 0===n?1:n,o=t.max,a=void 0===o?4:o;this.scale=Math.min(Math.max(i,r),a),this.setScale(this.scale),this.scrollerStyle[V.transformOrigin]="0 0"},t.prototype._zoomTo=function(t,e,i,n){this.scaled=!0;var r=t/(n||this.scale);this.setScale(t),this.refresh();var o=Math.round(this.startX-(e-this.relativeX)*(r-1)),a=Math.round(this.startY-(i-this.relativeY)*(r-1));o>this.minScrollX?o=this.minScrollX:o<this.maxScrollX&&(o=this.maxScrollX),a>this.minScrollY?a=this.minScrollY:a<this.maxScrollY&&(a=this.maxScrollY),this.x===o&&this.y===a||this.scrollTo(o,a,this.options.bounceTime),this.scaled=!1},t.prototype.zoomTo=function(t,e,i){var n=c(this.wrapper),r=n.left,o=n.top,a=e+r-this.x,s=i+o-this.y;this._zoomTo(t,a,s)},t.prototype._zoomStart=function(t){var e=t.touches[0],i=t.touches[1],n=Math.abs(e.pageX-i.pageX),r=Math.abs(e.pageY-i.pageY);this.startDistance=a(n,r),this.startScale=this.scale;var o=c(this.wrapper),s=o.left,l=o.top;this.originX=Math.abs(e.pageX+i.pageX)/2+s-this.x,this.originY=Math.abs(e.pageY+i.pageY)/2+l-this.y,this.trigger("zoomStart")},t.prototype._zoom=function(t){if(this.enabled&&!this.destroyed&&X[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation();var e=t.touches[0],i=t.touches[1],n=Math.abs(e.pageX-i.pageX),r=Math.abs(e.pageY-i.pageY),o=a(n,r),s=o/this.startDistance*this.startScale;this.scaled=!0;var l=this.options.zoom,u=l.min,h=void 0===u?1:u,c=l.max,p=void 0===c?4:c;s<h?s=.5*h*Math.pow(2,s/h):s>p&&(s=2*p*Math.pow(.5,p/s));var f=s/this.startScale,d=this.startX-(this.originX-this.relativeX)*(f-1),g=this.startY-(this.originY-this.relativeY)*(f-1);this.setScale(s),this.scrollTo(d,g,0)}},t.prototype._zoomEnd=function(t){if(this.enabled&&!this.destroyed&&X[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.isInTransition=!1,this.isAnimating=!1,this.initiated=0;var e=this.options.zoom,i=e.min,n=void 0===i?1:i,r=e.max,o=void 0===r?4:r,a=this.scale>o?o:this.scale<n?n:this.scale;this._zoomTo(a,this.originX,this.originY,this.startScale),this.trigger("zoomEnd")}}}(k),function(t){t.prototype._initInfinite=function(){this.options.probeType=3,this.maxScrollY=-et,this.infiniteScroller=new I(this,this.options.infinity)}}(k),k.Version="1.12.6",e.a=k},16:function(t,e){t.exports=!0},18:function(t,e){t.exports={}},180:function(t,e,i){i(54),i(52),t.exports=i(181)},181:function(t,e,i){var n=i(9),r=i(113);t.exports=i(0).getIterator=function(t){var e=r(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return n(e.call(t))}},2:function(t,e,i){"use strict";function n(t,e,i,n,r,o,a,s){t=t||{};var l=typeof t.default;"object"!==l&&"function"!==l||(t=t.default);var u="function"==typeof t?t.options:t;e&&(u.render=e,u.staticRenderFns=i,u._compiled=!0),n&&(u.functional=!0),o&&(u._scopeId=o);var h;if(a?(h=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=h):r&&(h=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),h)if(u.functional){u._injectStyles=h;var c=u.render;u.render=function(t,e){return h.call(e),c(t,e)}}else{var p=u.beforeCreate;u.beforeCreate=p?[].concat(p,h):[h]}return{exports:t,options:u}}e.a=n},2040:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(15),r=i(2041);r.a.install=function(t){t.component(r.a.name,r.a),t.prototype.$createGoldFinanceChart=Object(n.a)(r.a,t)},e.default=r.a},2041:function(t,e,i){"use strict";var n=i(1520),r=i(2058),o=i(2),a=Object(o.a)(n.a,r.a,r.b,!1,null,null,null);a.options.__file="src\\components\\GoldFinanceChart\\src\\index.vue",e.a=a.exports},2042:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r}),i.d(e,"c",function(){return o});var n={showType2:[{boxConfig:{iconColor:"#E13046",titleColor:"#E13046",blockColor:"rgba(255, 90, 110, 0.1)",tipsColor:"#ff5a63"},lineStyle:{lineColor:"#ff5a6e",legendImg:i(2043),zIndex:1}},{boxConfig:{iconColor:"#7363E7",titleColor:"#7363E7",blockColor:"rgba(115,99,231,0.1)",tipsColor:"#8c7FEE"},lineStyle:{lineColor:"#8c7fee",legendImg:i(2044),areaStyleColor:[{offset:0,color:"#E7E3FF"},{offset:1,color:"#FFF"}],zIndex:2}}],showType3:[{lineStyle:{lineColor:"#E2E5E7",legendImg:i(2045),zIndex:3}}]},r={showType2:[{boxConfig:{iconColor:"#FF8D35",titleColor:"#FF8D35",blockColor:"rgba(255,141,53,0.1)",tipsColor:"#FF8D35"},lineStyle:{lineColor:"#FF8D35",legendImg:i(2046),zIndex:1}},{boxConfig:{iconColor:"#F05A4B",titleColor:"#FC7468",blockColor:"rgba(252,116,104,0.1)",tipsColor:"#F05A4B"},lineStyle:{lineColor:"#F05A4B",legendImg:i(2047),areaStyleColor:[{offset:0,color:"#FFE0DD"},{offset:1,color:"#FFF"}],zIndex:2}}],showType3:[{lineStyle:{lineColor:"#E2E5E7",legendImg:i(2048),zIndex:3}}]},o={1:"有效保额",2:"已交保费系数金额",3:"现金价值",4:"身故全残金",5:"年龄",6:"累计已交保费",7:"累计保费*给付系数(主险)",8:"当前年龄与61周岁的比值",9:"当前年龄与41周岁的比值",10:"当前年龄与18周岁的比值",11:"当前年龄的给付数值",12:"保额",13:"保单年份与缴费期间的比值",14:"保单年份",15:"长期护理保险金(元)",16:"疾病身故保险金或长期护理保险金"}},2043:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAgRJREFUSEtjZCACNDAwMMWbeomx/2MWYPj/jxFFCyPT/59Mfz8sPL3tVQMDwz9CxqFqRlP9StuB5w87tywhQ5DlWX5+fSx29cAXXHpwWvjM2E2D4T8rXgfhdAjj7/9SZ3fdwCaPYeAZY2NWqf8SKqT4CpfaZ4wv7picPfsbWR7FQmpaBrME3VIUC58ZeWtSw2foZkid23odJga3kFCcMfLzMYmunzWRmZ/HGdnAvx+/7H0dmJb//+Mn3CkUKU7BFhJKjRIHVkxl5OVxxOf7/5+/7H/hEJGNSw0s9YItxBeUkqc3HWVgYhIEG3TwJAPD7OUMDP//Q8xlZGRgSI1kYLA3h/D//Xv/3NTPGpeloKBlBGXqNCNvdWyKUHwWX8TA8OcvdrNYmBkYFvaB5fD5dNa5rTcZ75t6SbD/ZYT4AAmA4kxi37IrYCF8lsH0IFn6wilKB1uc/mT+/57xmbGvBkZxxcDAILZvxWRwAgEF46xlxCXe9CgGBjtzBlBCeuUUkYuhiZHpPyOu+JM8u+UaWENMASLOCFkLitMlE8Cqnhv7aGFTTtjC6HxC1qDKL5041CykepBSM9GkRYHzJN5EQ/dsQfeMD0pSdC3aQBbSvfAG+5JAk4Kq1RMs59K1AgZZSvcmBrUtJdiIQi4UCcUp3gKWlGYiskGEUi82S8luCCMbRs2mPgATfE9ommN9bQAAAABJRU5ErkJggg=="},2044:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAflJREFUSEtjZCAKNDBlhZaIMbH8E/j3j5ERWQsT0/////4wfZi2uucVA0PDP0LGoWhGV5wV+oqHgYlTlpAhKPL/vj+etlrsCy49OC1MC/6kwcKC6htiLf7z5///WWv5bmBTj2FhWtp/VpaPX1SINRyfuj/8PHdmzWL8jawGxUJqWgazBN1SFAuzwj9rUsNn6GZMW8l7HSYGt5BQnPHyMTDV9nFP5OZhdEY28OuX/3ubi77mf/7EgDOFIscp2EJCqbFnLs9UTm4GR3y+//6VYX9J8pdsnGqgqRdiIZ6gnLyM5ygTE4MgSN2V8z8Zdm36xvD/P8RYUBp28+Ni0DFkB/P//WN4nxv1xRqXpaCgZWRgaGDKCi9Wx6YI2Wf9ze8Z/v3FbhQTMwNDYS3YTQz4fDptZe9NxqzQLxIMTP8hqpEAKM46ZvFcAQnhswymBdnSirQvOljj9B/je8acyE8a6MUVyJCuOdyTQQkEFIw7N34jKvG6+0OCF5SQylK+5qJrAhWDjLjib+oKnmsgDX2N7+FxRshWUJwW1UMCKzviixY29QQt7G14T8geFPnihqFmIdWDlP6Jht7Zgu4ZfwCKtgEovEG+pGv1BMu5dK2Awb6kYnsG5gm8TQxqW0qwEYVcKBKKU3wFLEnNRGSDCDU9sFpKbkMY1TDqNfUBayRb+GkJOFQAAAAASUVORK5CYII="},2045:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAdxJREFUSEvtVrtOwzAUta2kWRhgQUgV6kJLQfwB7YD4iS5Rqz6UIUL8Qn4BoQxR38rSn6hYyh8gHhVLhbqwlIElTeQgRwQ5IXYossJCRvvec3LuyxeCH3yGYaBCobALANj2PA/SLpIk+QCAt8Vi8WoYBk6DizjHjU3T3MrlcvtpIPT9er1+0XX9neXDJLQsq4wQ4v4QCxRj7Gua9ph0/w3QsiwZIXSwiSoO8bOmaS59HyEUSRaSYIwjpBHCbrd7JEJZHKPT6TyEZ1+EaTmTZRnVarUrRVHOaUDHcaaTyeTSdV1mhdI5DQjTqlFVVVNRlDOeesdxbmzb1lk2YfUGhLxQtlqtWwjhDrGbz+dgNptFMCuVCiiVSsGZ7/urfr9/yiIloYWkqfP5/GGSEa1sNBoBjJOjhhACjUYjgOApXS6XT3A4HO55nhcooD+Ss3q9fkfOeGShD006Ho9PknIqSdKKEJbj44qAqKp6TQokKYyskFWrVVAsFonKqW3bF3E7MgYhK3/tdvueOAwGg406pdlsBva9Xu84yfGfUHxIRRZN2JPcosm8LTJv/MxH258Mb0Ka6fMUToRMH+BPlcL2mVAEd8UQTRonI/h/vybSEz5t9Uh6DX69CNNgIlf9DxzfaQy1vbAWAAAAAElFTkSuQmCC"},2046:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAfxJREFUSEvVlrkvBFEcx79v7cQRLI1odBLr6MSxVCKOgtY/oEBEWFEim1CJWBsRFP4BrcYRUWER3boSnU7DIo7M2ifzxjBvd+Y9Ky+bmG7md3zmd733I/jFQ0PwoKChDPneEiQo4Uy8hOI18YCX0zsSQlLmjjdO0aah2kL4iipkTjh5/OmWhM6f3WxcgXS+3o8cTfhDrj/yoVMycXblJE9zSNfqNbxolRlF5aZcoN+QgTPdLuaASmEWJQXKA8PN1UoiS3FCgtFL69M3UFozzedB/0YEecXtnL+3xz2s941Cj7t3qK2mDCjtxqGdZeQWtQmjf3/ax0rnsKvOV/eaQFEqRw8OQDylzFFsE9idBSg1/RICdEwCdb3mO03eI9La6joSweglYUPta65yVLJHttgCJBPOvjxeYOzQlIkijUevCZ1rKIeWY0Zgf4yaDW/F2CcRzLKxQ5e76xxrqn/cE7oU8KcdV4aTwe0l1iBGGndmfte8XdNAbQ9gNNJq10iakZdQ4lq/saMLZhBu+qmZDGvUNHhsai0GapzU5cCFRhmGl4+f/Deg8pSqbJrOKXMmhU2T9bHI9uCzEymbRxsDylYJ1Yc3g8pWCpXXkzW5wtRmNv6ctuMFzKJUuc9YSNGKoRwqW6LseZDWVJTiTNZEDirrXifoXxdhHqxu1f8E1v4qfGBe9yAAAAAASUVORK5CYII="},2047:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAghJREFUSEtjZCACNDAwMJUkeIn9Y2AWYPz7jxFZy39mpv9MDH8/9CzY9qqBgeEfIeNQNKMrfhXqwMPJwS1LyBBk+e8/vj4WW33gCy49OC38FOmmwcjCitdBuAz9/+f3f77lu25gk8cw8H+aMeuX7xIqpPgKl1oezhd3GGed/Y0sjxofVLQMZgm6pSgWfo711qSGz9DN4F289TpMDG4hwTjj42Pi7pw1kZGbxxkllX79svdreVo+w6dPOFMocpyCLSSUGnmmr5jKwM3jiNf3X7/s/5IZkY1LDSz1gi3EF5Q8CzYdZWBiEgSp+3VwD8P32RMZGP7/h5jLyMjAmZrPwGbvAuH/+/f+S4KfNS5LQUHLCMrUxbHe6tgUIfvsY3wAA8OfP9jNYmFh4F+4ASKHx6e9i7feZPyS4CXx/y8j2AcogI+PiWfKsisgMbyWwTQhWfolJ0oHW5wyMv9/z/gpwVcDvbgCmcE9fcVkUAIBB+OsCUQlXs70AgY2OxeG/6CElBmRi64JVAwy4oo/nkVbroF9F+OLiDNC1jIyMvAv2QxW9SXORwubcsIWRvsQsgZFnn/plqFmIbWDlKqJJq0AnCfxJhq6Zwu6Z3y6F20gC+leeIMspWv1BMu5dK2AQZZSsz0D8wTeJga1LSXYiEIuFAnGKZ4SlqRmIrI5hFIvNjvJbggjG0bNpj4ANlBfOpfc/OcAAAAASUVORK5CYII="},2048:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAdxJREFUSEvtVrtOwzAUta2kWRhgQUgV6kJLQfwB7YD4iS5Rqz6UIUL8Qn4BoQxR38rSn6hYyh8gHhVLhbqwlIElTeQgRwQ5IXYossJCRvvec3LuyxeCH3yGYaBCobALANj2PA/SLpIk+QCAt8Vi8WoYBk6DizjHjU3T3MrlcvtpIPT9er1+0XX9neXDJLQsq4wQ4v4QCxRj7Gua9ph0/w3QsiwZIXSwiSoO8bOmaS59HyEUSRaSYIwjpBHCbrd7JEJZHKPT6TyEZ1+EaTmTZRnVarUrRVHOaUDHcaaTyeTSdV1mhdI5DQjTqlFVVVNRlDOeesdxbmzb1lk2YfUGhLxQtlqtWwjhDrGbz+dgNptFMCuVCiiVSsGZ7/urfr9/yiIloYWkqfP5/GGSEa1sNBoBjJOjhhACjUYjgOApXS6XT3A4HO55nhcooD+Ss3q9fkfOeGShD006Ho9PknIqSdKKEJbj44qAqKp6TQokKYyskFWrVVAsFonKqW3bF3E7MgYhK3/tdvueOAwGg406pdlsBva9Xu84yfGfUHxIRRZN2JPcosm8LTJv/MxH258Mb0Ka6fMUToRMH+BPlcL2mVAEd8UQTRonI/h/vybSEz5t9Uh6DX69CNNgIlf9DxzfaQy1vbAWAAAAAElFTkSuQmCC"},2049:function(t,e,i){"use strict";function n(t){s||i(2050)}var r=i(1521),o=i(2054),a=i(2),s=!1,l=n,u=Object(a.a)(r.a,o.a,o.b,!1,l,"data-v-8a13b6be",null);u.options.__file="src\\components\\GoldFinanceChart\\src\\components\\benefit.vue",e.a=u.exports},2050:function(t,e){},2051:function(t,e,i){"use strict";function n(t){s||i(2052)}var r=i(1522),o=i(2053),a=i(2),s=!1,l=n,u=Object(a.a)(r.a,o.a,o.b,!1,l,"data-v-5bf23e30",null);u.options.__file="src\\components\\GoldFinanceChart\\src\\components\\chart.vue",e.a=u.exports},2052:function(t,e){},2053:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{ref:"chart",staticClass:"chart"})},r=[];n._withStripped=!0},2054:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"chartContainer"},[i("div",{staticClass:"dataDisplay"},[i("div",{staticClass:"selectAge"},[i("div",{staticClass:"leftSelectAge"},[i("span",{staticClass:"agetext"},[t._v("至")]),t._v(" "),i("div",{class:["selectInputAge","agetext",{isCps:t.isCps}],on:{click:t.showAgePicker}},[i("div",{staticClass:"selectedAgeText"},[t._v("\n "+t._s(t.xAxisData[t.selectIndex])+t._s(t.unit)+"\n ")]),t._v(" "),i("i",{staticClass:"dropDown"})]),t._v(" "),i("span",{staticClass:"agetext"},[t._v("可获得")])]),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.benefitBtnShow,expression:"benefitBtnShow"}],class:["benefitShowBtn",{isCps:t.isCps}],on:{click:t.showCostTable}},[t._v("\n 利益演示\n ")])]),t._v(" "),1===t.showType2Length?[t._l(t.chartConfig,function(e,n){return[2===e.showType?i("div",{key:n,staticClass:"specialShowBox"},[i("div",{staticClass:"numShow"},[i("div",{staticClass:"num",style:{color:e.boxConfig.titleColor}},[t._v("\n "+t._s(Math.round(100*t.pureDataSource[t.selectIndex][n])/100)+"\n ")]),t._v(" "),i("div",{staticClass:"colorBlock",style:{background:e.boxConfig.blockColor}})]),t._v(" "),i("div",{staticClass:"titleShow"},[i("div",{staticClass:"text"},[i("span",[t._v(t._s(e.titleName))]),t._v(" "),e.problemText?i("i",{staticClass:"question",on:{click:function(i){return t.showProblemDialog(e.problemText)}}}):t._e()]),t._v(" "),e.tipsText?i("div",{staticClass:"multipleShow",style:{color:e.boxConfig.tipsColor}},[t._v("\n "+t._s(e.tipsText[0])),i("span",{staticClass:"multipleNum"},[t._v(t._s(e.expressionData[t.selectIndex]))]),e.tipsText[1]?i("span",[t._v(t._s(e.tipsText[1]))]):t._e(),e.tipsText[2]?i("span",{staticClass:"bold-text"},[t._v(t._s(e.tipsText[2]))]):t._e()]):t._e()])]):t._e()]})]:[i("div",{staticClass:"textShow"},[t._l(t.chartConfig,function(e,n){return[2===e.showType?i("div",{key:n,staticClass:"textShowBox"},[i("div",{staticClass:"iconblock"},[i("i",{staticClass:"iconColorBlock",style:{background:e.boxConfig.iconColor}})]),t._v(" "),i("div",{staticClass:"text"},[i("span",[t._v(t._s(e.titleName))]),t._v(" "),e.problemText?i("i",{staticClass:"question",on:{click:function(i){return t.showProblemDialog(e.titleName,e.problemText)}}}):t._e()])]):t._e()]})],2),t._v(" "),i("div",{staticClass:"moneyShow"},[t._l(t.chartConfig,function(e,n){return[2===e.showType?i("div",{key:n,staticClass:"moneyShowBox"},[i("div",{staticClass:"numShow"},[i("div",{ref:"num",refInFor:!0,staticClass:"num",style:{color:e.boxConfig.titleColor}},[t._v("\n "+t._s(t.getNum(t.selectIndex,n,e))+"\n ")]),t._v(" "),i("div",{ref:"colorBlock",refInFor:!0,staticClass:"colorBlock",style:{background:e.boxConfig.blockColor}})]),t._v(" "),e.tipsText&&e.expressionData?i("div",{staticClass:"multipleShow",style:{color:e.boxConfig.tipsColor}},[t._v("\n "+t._s(e.tipsText[0])),i("span",{staticClass:"multipleNum"},[t._v(t._s(e.expressionData[t.selectIndex]))]),e.tipsText[1]?i("span",[t._v(t._s(e.tipsText[1]))]):t._e(),e.tipsText[2]?i("span",{staticClass:"bold-text"},[t._v(t._s(e.tipsText[2]))]):t._e()]):t._e()]):t._e()]})],2)]],2),t._v(" "),i("div",{class:["flowerTexture",{isCps:t.isCps}]}),t._v(" "),i("chart",{attrs:{chartConfig:t.chartConfig,dataSource:t.dataSource,index:t.selectIndex},on:{setIndex:t.setSelectIndex}}),t._v(" "),t.note?i("span",{staticClass:"note"},[t._v(t._s(t.note))]):t._e(),t._v(" "),t.tip?i("div",{staticClass:"tipContent"},[i("p",{staticClass:"tip"},[i("span",{domProps:{innerHTML:t._s(t.tip)}})])]):t._e()],1)},r=[];n._withStripped=!0},2055:function(t,e,i){"use strict";function n(t){s||i(2056)}var r=i(1523),o=i(2057),a=i(2),s=!1,l=n,u=Object(a.a)(r.a,o.a,o.b,!1,l,"data-v-4eebaa8b",null);u.options.__file="src\\components\\GoldFinanceChart\\src\\components\\costTable.vue",e.a=u.exports},2056:function(t,e){},2057:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"layer-finance",on:{touchmove:t.preventMove}},[i("div",{staticClass:"layer-finance-mask",on:{click:function(e){return e.stopPropagation(),t.cancel(e)}}}),t._v(" "),i("div",{staticClass:"layer-finance-box layer_animate cost iphonex_padding"},[i("span",{staticClass:"layer-close",on:{click:function(e){return e.stopPropagation(),t.cancel(e)}}}),t._v(" "),i("p",{staticClass:"main-title"},[t._v("\n 保单利益演示表\n ")]),t._v(" "),i("p",{staticClass:"cost-title"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),i("p",{staticClass:"cost-table-head"},[t._v("\n 基于用户所选信息的保单利益演示如下:\n ")]),t._v(" "),t.tables.cols&&t.tables.rows&&t.tables.rows.length?[i("div",[i("div",{staticClass:"table-tr thead"},[t._l(t.tables.cols,function(e,n){return[t.showCol(n)?i("span",{key:"head-"+n,staticClass:"table-item",style:t.styleOption},[t._v("\n "+t._s(e)+"\n ")]):t._e()]})],2),t._v(" "),i("div",{staticClass:"cost-scroll"},[i("table",{staticClass:"table-body"},[t.tables.rows&&t.tables.rows.length?i("tbody",t._l(t.tables.rows,function(e,n){return i("tr",{key:"tr-"+n,staticClass:"table-tr "},[t._l(e,function(e,r){return[t.showCol(r)?i("td",{key:"td-"+n+"-"+r,staticClass:"table-item"},[t._v("\n "+t._s(Math.round(100*e)/100)+"\n ")]):t._e()]})],2)}),0):t._e()])])])]:[i("div",{staticClass:"no-data"},[t._v("\n 暂时无法展示\n ")])]],2)])},r=[];n._withStripped=!0},2058:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=this,i=e.$createElement,n=e._self._c||i;return e.isShowChart?n("div",[n("benefit",{attrs:{renderData:e.renderData,benefitBtnShow:e.benefitBtnShow,theme:e.realTheme,isCps:e.isCps,unit:e.unit,note:e.note,tip:e.tip,percentageTypes:e.percentageTypes,selectIndex:e.selectIndex},on:{"update:selectIndex":function(t){e.selectIndex=t},"update:select-index":function(t){e.selectIndex=t},showCostTable:e.showCostTable,showAgePicker:e.showAgePicker}}),e._v(" "),n("gold-cost-table",{attrs:{visible:e.costTableVisible,tables:e.tables,theme:e.realTheme},on:{cancelCost:function(t){e.costTableVisible=!1}}}),e._v(" "),n("gold-picker",{ref:"goldPicker",attrs:{data:[this.agePickerData],selectedIndex:[e.selectIndex],confirmColor:e.realTheme.color},on:{select:function(e,i){t.setSelectIndex(i[0])}}})],1):e._e()},r=[];n._withStripped=!0},21:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},22:function(t,e){var i=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++i+n).toString(36))}},23:function(t,e,i){var n=i(29);t.exports=function(t){return Object(n(t))}},24:function(t,e){e.f={}.propertyIsEnumerable},25:function(t,e,i){"use strict";var n={model:{prop:"visible",event:"toggle"},props:{visible:{type:Boolean,default:!1}},data:function(){return{isVisible:!1}},watch:{isVisible:function(t){this.$emit("toggle",t)}},mounted:function(){var t=this;this.$watch("visible",function(e,i){e?t.show():i&&t.hide()},{immediate:!0})},methods:{show:function(){return this.isVisible=!0,this},hide:function(){return this.isVisible=!1,this}}};e.a=n},26:function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},27:function(t,e,i){var n=i(8).f,r=i(6),o=i(3)("toStringTag");t.exports=function(t,e,i){t&&!r(t=i?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},277:function(t,e,i){"use strict";(function(t){function n(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function r(t,e){if(n()<e)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=o.prototype):(null===t&&(t=new o(e)),t.length=e),t}function o(t,e,i){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(t,e,i);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return u(this,t)}return a(this,t,e,i)}function a(t,e,i,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?p(t,e,i,n):"string"==typeof e?h(t,e,i):f(t,e)}function s(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function l(t,e,i,n){return s(e),e<=0?r(t,e):void 0!==i?"string"==typeof n?r(t,e).fill(i,n):r(t,e).fill(i):r(t,e)}function u(t,e){if(s(e),t=r(t,e<0?0:0|d(e)),!o.TYPED_ARRAY_SUPPORT)for(var i=0;i<e;++i)t[i]=0;return t}function h(t,e,i){if("string"==typeof i&&""!==i||(i="utf8"),!o.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var n=0|v(e,i);t=r(t,n);var a=t.write(e,i);return a!==n&&(t=t.slice(0,a)),t}function c(t,e){var i=e.length<0?0:0|d(e.length);t=r(t,i);for(var n=0;n<i;n+=1)t[n]=255&e[n];return t}function p(t,e,i,n){if(e.byteLength,i<0||e.byteLength<i)throw new RangeError("'offset' is out of bounds");if(e.byteLength<i+(n||0))throw new RangeError("'length' is out of bounds");return e=void 0===i&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,i):new Uint8Array(e,i,n),o.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=o.prototype):t=c(t,e),t}function f(t,e){if(o.isBuffer(e)){var i=0|d(e.length);return t=r(t,i),0===t.length?t:(e.copy(t,0,0,i),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||Z(e.length)?r(t,0):c(t,e);if("Buffer"===e.type&&$(e.data))return c(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function d(t){if(t>=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|t}function g(t){return+t!=t&&(t=0),o.alloc(+t)}function v(t,e){if(o.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var i=t.length;if(0===i)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return X(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return G(t).length;default:if(n)return X(t).length;e=(""+e).toLowerCase(),n=!0}}function y(t,e,i){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if(i>>>=0,e>>>=0,i<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return O(this,e,i);case"utf8":case"utf-8":return k(this,e,i);case"ascii":return D(this,e,i);case"latin1":case"binary":return P(this,e,i);case"base64":return I(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,i);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function m(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function _(t,e,i,n,r){if(0===t.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=r?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(r)return-1;i=t.length-1}else if(i<0){if(!r)return-1;i=0}if("string"==typeof e&&(e=o.from(e,n)),o.isBuffer(e))return 0===e.length?-1:x(t,e,i,n,r);if("number"==typeof e)return e&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):x(t,[e],i,n,r);throw new TypeError("val must be string, number or Buffer")}function x(t,e,i,n,r){function o(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}var a=1,s=t.length,l=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,i/=2}var u;if(r){var h=-1;for(u=i;u<s;u++)if(o(t,u)===o(e,-1===h?0:u-h)){if(-1===h&&(h=u),u-h+1===l)return h*a}else-1!==h&&(u-=u-h),h=-1}else for(i+l>s&&(i=s-l),u=i;u>=0;u--){for(var c=!0,p=0;p<l;p++)if(o(t,u+p)!==o(e,p)){c=!1;break}if(c)return u}return-1}function w(t,e,i,n){i=Number(i)||0;var r=t.length-i;n?(n=Number(n))>r&&(n=r):n=r;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[i+a]=s}return a}function b(t,e,i,n){return q(X(e,t.length-i),t,i,n)}function S(t,e,i,n){return q(U(e),t,i,n)}function T(t,e,i,n){return S(t,e,i,n)}function M(t,e,i,n){return q(G(e),t,i,n)}function C(t,e,i,n){return q(j(e,t.length-i),t,i,n)}function I(t,e,i){return 0===e&&i===t.length?K.fromByteArray(t):K.fromByteArray(t.slice(e,i))}function k(t,e,i){i=Math.min(t.length,i);for(var n=[],r=e;r<i;){var o=t[r],a=null,s=o>239?4:o>223?3:o>191?2:1;if(r+s<=i){var l,u,h,c;switch(s){case 1:o<128&&(a=o);break;case 2:l=t[r+1],128==(192&l)&&(c=(31&o)<<6|63&l)>127&&(a=c);break;case 3:l=t[r+1],u=t[r+2],128==(192&l)&&128==(192&u)&&(c=(15&o)<<12|(63&l)<<6|63&u)>2047&&(c<55296||c>57343)&&(a=c);break;case 4:l=t[r+1],u=t[r+2],h=t[r+3],128==(192&l)&&128==(192&u)&&128==(192&h)&&(c=(15&o)<<18|(63&l)<<12|(63&u)<<6|63&h)>65535&&c<1114112&&(a=c)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),r+=s}return A(n)}function A(t){var e=t.length;if(e<=J)return String.fromCharCode.apply(String,t);for(var i="",n=0;n<e;)i+=String.fromCharCode.apply(String,t.slice(n,n+=J));return i}function D(t,e,i){var n="";i=Math.min(t.length,i);for(var r=e;r<i;++r)n+=String.fromCharCode(127&t[r]);return n}function P(t,e,i){var n="";i=Math.min(t.length,i);for(var r=e;r<i;++r)n+=String.fromCharCode(t[r]);return n}function O(t,e,i){var n=t.length;(!e||e<0)&&(e=0),(!i||i<0||i>n)&&(i=n);for(var r="",o=e;o<i;++o)r+=W(t[o]);return r}function L(t,e,i){for(var n=t.slice(e,i),r="",o=0;o<n.length;o+=2)r+=String.fromCharCode(n[o]+256*n[o+1]);return r}function E(t,e,i){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>i)throw new RangeError("Trying to access beyond buffer length")}function R(t,e,i,n,r,a){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<a)throw new RangeError('"value" argument is out of bounds');if(i+n>t.length)throw new RangeError("Index out of range")}function B(t,e,i,n){e<0&&(e=65535+e+1);for(var r=0,o=Math.min(t.length-i,2);r<o;++r)t[i+r]=(e&255<<8*(n?r:1-r))>>>8*(n?r:1-r)}function N(t,e,i,n){e<0&&(e=4294967295+e+1);for(var r=0,o=Math.min(t.length-i,4);r<o;++r)t[i+r]=e>>>8*(n?r:3-r)&255}function z(t,e,i,n,r,o){if(i+n>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function F(t,e,i,n,r){return r||z(t,e,i,4,3.4028234663852886e38,-3.4028234663852886e38),Q.write(t,e,i,n,23,4),i+4}function Y(t,e,i,n,r){return r||z(t,e,i,8,1.7976931348623157e308,-1.7976931348623157e308),Q.write(t,e,i,n,52,8),i+8}function H(t){if(t=V(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function V(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function W(t){return t<16?"0"+t.toString(16):t.toString(16)}function X(t,e){e=e||1/0;for(var i,n=t.length,r=null,o=[],a=0;a<n;++a){if((i=t.charCodeAt(a))>55295&&i<57344){if(!r){if(i>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}r=i;continue}if(i<56320){(e-=3)>-1&&o.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,i<128){if((e-=1)<0)break;o.push(i)}else if(i<2048){if((e-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function U(t){for(var e=[],i=0;i<t.length;++i)e.push(255&t.charCodeAt(i));return e}function j(t,e){for(var i,n,r,o=[],a=0;a<t.length&&!((e-=2)<0);++a)i=t.charCodeAt(a),n=i>>8,r=i%256,o.push(r),o.push(n);return o}function G(t){return K.toByteArray(H(t))}function q(t,e,i,n){for(var r=0;r<n&&!(r+i>=e.length||r>=t.length);++r)e[r+i]=t[r];return r}function Z(t){return t!==t}var K=i(278),Q=i(279),$=i(280);e.Buffer=o,e.SlowBuffer=g,e.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=n(),o.poolSize=8192,o._augment=function(t){return t.__proto__=o.prototype,t},o.from=function(t,e,i){return a(null,t,e,i)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(t,e,i){return l(null,t,e,i)},o.allocUnsafe=function(t){return u(null,t)},o.allocUnsafeSlow=function(t){return u(null,t)},o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.compare=function(t,e){if(!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var i=t.length,n=e.length,r=0,a=Math.min(i,n);r<a;++r)if(t[r]!==e[r]){i=t[r],n=e[r];break}return i<n?-1:n<i?1:0},o.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(t,e){if(!$(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return o.alloc(0);var i;if(void 0===e)for(e=0,i=0;i<t.length;++i)e+=t[i].length;var n=o.allocUnsafe(e),r=0;for(i=0;i<t.length;++i){var a=t[i];if(!o.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,r),r+=a.length}return n},o.byteLength=v,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)m(this,e,e+1);return this},o.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},o.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},o.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?k(this,0,t):y.apply(this,arguments)},o.prototype.equals=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===o.compare(this,t)},o.prototype.inspect=function(){var t="",i=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(t+=" ... ")),"<Buffer "+t+">"},o.prototype.compare=function(t,e,i,n,r){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===n&&(n=0),void 0===r&&(r=this.length),e<0||i>t.length||n<0||r>this.length)throw new RangeError("out of range index");if(n>=r&&e>=i)return 0;if(n>=r)return-1;if(e>=i)return 1;if(e>>>=0,i>>>=0,n>>>=0,r>>>=0,this===t)return 0;for(var a=r-n,s=i-e,l=Math.min(a,s),u=this.slice(n,r),h=t.slice(e,i),c=0;c<l;++c)if(u[c]!==h[c]){a=u[c],s=h[c];break}return a<s?-1:s<a?1:0},o.prototype.includes=function(t,e,i){return-1!==this.indexOf(t,e,i)},o.prototype.indexOf=function(t,e,i){return _(this,t,e,i,!0)},o.prototype.lastIndexOf=function(t,e,i){return _(this,t,e,i,!1)},o.prototype.write=function(t,e,i,n){if(void 0===e)n="utf8",i=this.length,e=0;else if(void 0===i&&"string"==typeof e)n=e,i=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(i)?(i|=0,void 0===n&&(n="utf8")):(n=i,i=void 0)}var r=this.length-e;if((void 0===i||i>r)&&(i=r),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return w(this,t,e,i);case"utf8":case"utf-8":return b(this,t,e,i);case"ascii":return S(this,t,e,i);case"latin1":case"binary":return T(this,t,e,i);case"base64":return M(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,e,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var J=4096;o.prototype.slice=function(t,e){var i=this.length;t=~~t,e=void 0===e?i:~~e,t<0?(t+=i)<0&&(t=0):t>i&&(t=i),e<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<t&&(e=t);var n;if(o.TYPED_ARRAY_SUPPORT)n=this.subarray(t,e),n.__proto__=o.prototype;else{var r=e-t;n=new o(r,void 0);for(var a=0;a<r;++a)n[a]=this[a+t]}return n},o.prototype.readUIntLE=function(t,e,i){t|=0,e|=0,i||E(t,e,this.length);for(var n=this[t],r=1,o=0;++o<e&&(r*=256);)n+=this[t+o]*r;return n},o.prototype.readUIntBE=function(t,e,i){t|=0,e|=0,i||E(t,e,this.length);for(var n=this[t+--e],r=1;e>0&&(r*=256);)n+=this[t+--e]*r;return n},o.prototype.readUInt8=function(t,e){return e||E(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||E(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||E(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return e||E(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,e){return e||E(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,i){t|=0,e|=0,i||E(t,e,this.length);for(var n=this[t],r=1,o=0;++o<e&&(r*=256);)n+=this[t+o]*r;return r*=128,n>=r&&(n-=Math.pow(2,8*e)),n},o.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||E(t,e,this.length);for(var n=e,r=1,o=this[t+--n];n>0&&(r*=256);)o+=this[t+--n]*r;return r*=128,o>=r&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return e||E(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){e||E(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},o.prototype.readInt16BE=function(t,e){e||E(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},o.prototype.readInt32LE=function(t,e){return e||E(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return e||E(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return e||E(t,4,this.length),Q.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||E(t,4,this.length),Q.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||E(t,8,this.length),Q.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||E(t,8,this.length),Q.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,e,i,n){if(t=+t,e|=0,i|=0,!n){R(this,t,e,i,Math.pow(2,8*i)-1,0)}var r=1,o=0;for(this[e]=255&t;++o<i&&(r*=256);)this[e+o]=t/r&255;return e+i},o.prototype.writeUIntBE=function(t,e,i,n){if(t=+t,e|=0,i|=0,!n){R(this,t,e,i,Math.pow(2,8*i)-1,0)}var r=i-1,o=1;for(this[e+r]=255&t;--r>=0&&(o*=256);)this[e+r]=t/o&255;return e+i},o.prototype.writeUInt8=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):B(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):B(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):N(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):N(this,t,e,!1),e+4},o.prototype.writeIntLE=function(t,e,i,n){if(t=+t,e|=0,!n){var r=Math.pow(2,8*i-1);R(this,t,e,i,r-1,-r)}var o=0,a=1,s=0;for(this[e]=255&t;++o<i&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+i},o.prototype.writeIntBE=function(t,e,i,n){if(t=+t,e|=0,!n){var r=Math.pow(2,8*i-1);R(this,t,e,i,r-1,-r)}var o=i-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+i},o.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):B(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):B(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):N(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):N(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,i){return F(this,t,e,!0,i)},o.prototype.writeFloatBE=function(t,e,i){return F(this,t,e,!1,i)},o.prototype.writeDoubleLE=function(t,e,i){return Y(this,t,e,!0,i)},o.prototype.writeDoubleBE=function(t,e,i){return Y(this,t,e,!1,i)},o.prototype.copy=function(t,e,i,n){if(i||(i=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<i&&(n=i),n===i)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-i&&(n=t.length-e+i);var r,a=n-i;if(this===t&&i<e&&e<n)for(r=a-1;r>=0;--r)t[r+e]=this[r+i];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(r=0;r<a;++r)t[r+e]=this[r+i];else Uint8Array.prototype.set.call(t,this.subarray(i,i+a),e);return a},o.prototype.fill=function(t,e,i,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,i=this.length):"string"==typeof i&&(n=i,i=this.length),1===t.length){var r=t.charCodeAt(0);r<256&&(t=r)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!o.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<i)throw new RangeError("Out of range index");if(i<=e)return this;e>>>=0,i=void 0===i?this.length:i>>>0,t||(t=0);var a;if("number"==typeof t)for(a=e;a<i;++a)this[a]=t;else{var s=o.isBuffer(t)?t:X(new o(t,n).toString()),l=s.length;for(a=0;a<i-e;++a)this[a+e]=s[a%l]}return this};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,i(115))},278:function(t,e,i){"use strict";function n(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");return-1===i&&(i=e),[i,i===e?0:4-i%4]}function r(t){var e=n(t),i=e[0],r=e[1];return 3*(i+r)/4-r}function o(t,e,i){return 3*(e+i)/4-i}function a(t){var e,i,r=n(t),a=r[0],s=r[1],l=new p(o(t,a,s)),u=0,h=s>0?a-4:a;for(i=0;i<h;i+=4)e=c[t.charCodeAt(i)]<<18|c[t.charCodeAt(i+1)]<<12|c[t.charCodeAt(i+2)]<<6|c[t.charCodeAt(i+3)],l[u++]=e>>16&255,l[u++]=e>>8&255,l[u++]=255&e;return 2===s&&(e=c[t.charCodeAt(i)]<<2|c[t.charCodeAt(i+1)]>>4,l[u++]=255&e),1===s&&(e=c[t.charCodeAt(i)]<<10|c[t.charCodeAt(i+1)]<<4|c[t.charCodeAt(i+2)]>>2,l[u++]=e>>8&255,l[u++]=255&e),l}function s(t){return h[t>>18&63]+h[t>>12&63]+h[t>>6&63]+h[63&t]}function l(t,e,i){for(var n,r=[],o=e;o<i;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),r.push(s(n));return r.join("")}function u(t){for(var e,i=t.length,n=i%3,r=[],o=0,a=i-n;o<a;o+=16383)r.push(l(t,o,o+16383>a?a:o+16383));return 1===n?(e=t[i-1],r.push(h[e>>2]+h[e<<4&63]+"==")):2===n&&(e=(t[i-2]<<8)+t[i-1],r.push(h[e>>10]+h[e>>4&63]+h[e<<2&63]+"=")),r.join("")}e.byteLength=r,e.toByteArray=a,e.fromByteArray=u;for(var h=[],c=[],p="undefined"!=typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,g=f.length;d<g;++d)h[d]=f[d],c[f.charCodeAt(d)]=d;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},279:function(t,e){e.read=function(t,e,i,n,r){var o,a,s=8*r-n-1,l=(1<<s)-1,u=l>>1,h=-7,c=i?r-1:0,p=i?-1:1,f=t[e+c];for(c+=p,o=f&(1<<-h)-1,f>>=-h,h+=s;h>0;o=256*o+t[e+c],c+=p,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=n;h>0;a=256*a+t[e+c],c+=p,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,n),o-=u}return(f?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,i,n,r,o){var a,s,l,u=8*o-r-1,h=(1<<u)-1,c=h>>1,p=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,d=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=h):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),e+=a+c>=1?p/l:p*Math.pow(2,1-c),e*l>=2&&(a++,l/=2),a+c>=h?(s=0,a=h):a+c>=1?(s=(e*l-1)*Math.pow(2,r),a+=c):(s=e*Math.pow(2,c-1)*Math.pow(2,r),a=0));r>=8;t[i+f]=255&s,f+=d,s/=256,r-=8);for(a=a<<r|s,u+=r;u>0;t[i+f]=255&a,f+=d,a/=256,u-=8);t[i+f-d]|=128*g}},28:function(t,e,i){t.exports={default:i(79),__esModule:!0}},280:function(t,e){var i={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==i.call(t)}},29:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},3:function(t,e,i){var n=i(32)("wks"),r=i(22),o=i(1).Symbol,a="function"==typeof o;(t.exports=function(t){return n[t]||(n[t]=a&&o[t]||(a?o:r)("Symbol."+t))}).store=n},30:function(t,e){var i=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:i)(t)}},31:function(t,e,i){var n=i(32)("keys"),r=i(22);t.exports=function(t){return n[t]||(n[t]=r(t))}},32:function(t,e,i){var n=i(0),r=i(1),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:i(16)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},33:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},34:function(t,e,i){var n=i(10);t.exports=function(t,e){if(!n(t))return t;var i,r;if(e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;if("function"==typeof(i=t.valueOf)&&!n(r=i.call(t)))return r;if(!e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},35:function(t,e){e.f=Object.getOwnPropertySymbols},36:function(t,e,i){e.f=i(3)},37:function(t,e,i){var n=i(1),r=i(0),o=i(16),a=i(36),s=i(8).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=o?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},38:function(t,e,i){var n=i(40);t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,r){return t.call(e,i,n,r)}}return function(){return t.apply(e,arguments)}}},4:function(t,e,i){t.exports=!i(12)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},40:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},41:function(t,e,i){var n=i(10),r=i(1).document,o=n(r)&&n(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},45:function(t,e,i){"use strict";var n=i(16),r=i(13),o=i(49),a=i(7),s=i(18),l=i(66),u=i(27),h=i(70),c=i(3)("iterator"),p=!([].keys&&"next"in[].keys()),f=function(){return this};t.exports=function(t,e,i,d,g,v,y){l(i,e,d);var m,_,x,w=function(t){if(!p&&t in M)return M[t];switch(t){case"keys":case"values":return function(){return new i(this,t)}}return function(){return new i(this,t)}},b=e+" Iterator",S="values"==g,T=!1,M=t.prototype,C=M[c]||M["@@iterator"]||g&&M[g],I=C||w(g),k=g?S?w("entries"):I:void 0,A="Array"==e?M.entries||C:C;if(A&&(x=h(A.call(new t)))!==Object.prototype&&x.next&&(u(x,b,!0),n||"function"==typeof x[c]||a(x,c,f)),S&&C&&"values"!==C.name&&(T=!0,I=function(){return C.call(this)}),n&&!y||!p&&!T&&M[c]||a(M,c,I),s[e]=I,s[b]=f,g)if(m={values:S?I:w("values"),keys:v?I:w("keys"),entries:k},y)for(_ in m)_ in M||o(M,_,m[_]);else r(r.P+r.F*(p||T),e,m);return m}},46:function(t,e,i){var n=i(9),r=i(67),o=i(33),a=i(31)("IE_PROTO"),s=function(){},l=function(){var t,e=i(41)("iframe"),n=o.length;for(e.style.display="none",i(60).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;n--;)delete l.prototype[o[n]];return l()};t.exports=Object.create||function(t,e){var i;return null!==t?(s.prototype=n(t),i=new s,s.prototype=null,i[a]=t):i=l(),void 0===e?i:r(i,e)}},47:function(t,e,i){var n=i(26);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},48:function(t,e,i){t.exports=!i(4)&&!i(12)(function(){return 7!=Object.defineProperty(i(41)("div"),"a",{get:function(){return 7}}).a})},49:function(t,e,i){t.exports=i(7)},5:function(t,e,i){"use strict";function n(t,e){if(t.findIndex)return t.findIndex(e);var i=-1;return t.some(function(t,n,r){var o=e.call(this,t,n,r);if(o)return i=n,o}),i}function r(t){return t?JSON.parse(F()(t)):t}function o(t,e){for(var i in e)t[i]&&"object"===N()(t[i])?o(t[i],e[i]):t[i]=e[i]}function a(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}function s(t){return"[object String]"===Object.prototype.toString.call(t)}function l(t){return"[object Number]"===Object.prototype.toString.call(t)}function u(t){return"[object Object]"===Object.prototype.toString.call(t)}function h(t){return"[object Boolean]"===Object.prototype.toString.call(t)}function c(t){return null===t}function p(t){return void 0!==t&&null!==t}function f(t){return void 0===t}function d(t){return"[object Error]"===Object.prototype.toString.call(t)}function g(t){return"function"==typeof t}function v(t,e,i){function n(e){var i=v,n=y;return v=y=void 0,b=e,_=t.apply(n,i)}function r(t,e){return C?(window.cancelAnimationFrame(x),window.requestAnimationFrame(t)):setTimeout(t,e)}function o(t){if(C)return window.cancelAnimationFrame(t);clearTimeout(t)}function a(t){return b=t,x=r(h,e),S?n(t):_}function s(t){var i=t-w,n=t-b,r=e-i;return T?Math.min(r,m-n):r}function l(t){var i=t-w,n=t-b;return void 0===w||i>=e||i<0||T&&n>=m}function h(){var t=Date.now();if(l(t))return c(t);x=r(h,s(t))}function c(t){return x=void 0,M&&v?n(t):(v=y=void 0,_)}function p(){void 0!==x&&o(x),b=0,v=w=y=x=void 0}function f(){return void 0===x?_:c(Date.now())}function d(){return void 0!==x}function g(){for(var t=Date.now(),i=l(t),o=arguments.length,s=Array(o),u=0;u<o;u++)s[u]=arguments[u];if(v=s,y=this,w=t,i){if(void 0===x)return a(w);if(T)return x=r(h,e),n(w)}return void 0===x&&(x=r(h,e)),_}var v=void 0,y=void 0,m=void 0,_=void 0,x=void 0,w=void 0,b=0,S=!1,T=!1,M=!0,C=!e&&0!==e&&"function"==typeof window.requestAnimationFrame;if("function"!=typeof t)throw new TypeError("Expected a function");return e=+e||0,u(i)&&(S=!!i.leading,T="maxWait"in i,m=T?Math.max(+i.maxWait||0,e):m,M="trailing"in i?!!i.trailing:M),g.cancel=p,g.flush=f,g.pending=d,g}function y(t,e,i){var n=!0,r=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return u(i)&&(n="leading"in i?!!i.leading:n,r="trailing"in i?!!i.trailing:r),v(t,e,{leading:n,trailing:r,maxWait:e})}function m(t){return!!/^1\d{10}$/.test(t)}function _(t){var e=t.length;return e>3&&e<8?t=t.replace(/\s/g,"").replace(/^(.{3})/g,"$1 "):e>=8&&(t=t.replace(/\s/g,"").replace(/^(.{3})(.+)/g,function(t,e,i){return e+" "+i.replace(/(.{4})(?=.)/g,"$1 ")})),t}function x(t){return t.replace(/\s/g,"").replace(/(.{4})(?=.)/g,"$1 ")}function w(t){if(void 0!==t||null!==t)return/^\d+(\.\d+)?$/.test(t+"")?t+"px":t}function b(t){if(!t)return"";var e=t.length;return 2===e?t.split("").join("  "):3===e?t.split("").join(" "):t}function S(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=t.offsetHeight;if(e){var n=t.currentStyle||getComputedStyle(t);i+=parseInt(n.marginTop||0)+parseInt(n.marginBottom||0)}return i}function T(t,e){var i=/^#([a-f\d]{1})([a-f\d]{1})([a-f\d]{1})$/i.exec(t),n=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t),r=null;return i?r={r:parseInt(i[1]+i[1],16),g:parseInt(i[2]+i[2],16),b:parseInt(i[3]+i[3],16)}:n&&(r={r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}),r?void 0!==e?"rgba("+r.r+", "+r.g+", "+r.b+", "+e+")":"rgb("+r.r+", "+r.g+", "+r.b+")":""}function M(t){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefhijklmnopqrstuvwxyz",i=e.length,n="";t=t||32;for(var r=0;r<t;r++)n+=e.charAt(Math.floor(Math.random()*i));return n}function C(t,e){var i=e||location.href,n=new RegExp("(\\?|&)"+t+"=([^&#$\\s]+)"),r=i.match(n);return r&&r[2]}function I(t){var e=window.getComputedStyle(t),i="none"===e.display,n=null===t.offsetParent&&"fixed"!==e.position;return i||n}function k(t,e,i){return Math.min(Math.max(t,e),i)}function A(t){var e=/os (\d\d?_\d(_\d)?)/,i=e.exec(t);if(!i)return null;var n=i[1].split("_").map(function(t){return parseInt(t,10)});return{major:n[0],minor:n[1],patch:n[2]||0}}function D(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";e=e||window.location.href;var i=new RegExp("(\\?|#|&)"+t+"=([^&#]*)(&|#|$)"),n=e.match(i);return decodeURIComponent(n?n[2]:"")}function P(t){return t?d(t)?t.message:s(t)?t:t.errmsg||"请求失败,请稍后重试":"请求失败,请稍后重试"}function O(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=[],i=new RegExp("https?://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]"),n=0;n<t.length;n++){var r=t[n];if(!i.test(r))return;e.push(r.split("?")[0])}return e}function L(t){var e=JSON.parse(F()(t)),i=e.attrModules,n=void 0===i?{}:i,r=e.plan,o=n.applicant,s=n.insureds,l=n.hcpics,u=n.hctext,h=n.makeup,c=n.apphctext,p=n.apphcpics,f={},d=function(t){var e=null,i=null,n=null,r=null,o={},s={},l={};for(var u in t){var h=t[u].defaultValue,c=t[u].required,p=t[u].display;if(a(h)){var f=O(h);f&&(h=f)}1!==Number(c)&&1!==Number(p)||("idType"===u||"id"===u||"idValidType"===u||"idValidEndTime"===u||"idValidStartTime"===u?(e=e||{},e[u]=h):"socialInsAddr"===u||"socialInsDetail"===u||"socialInsPost"===u||"socialInsTel"===u?(i=i||{},i[u]=h):"residentAddr"===u||"residentDetail"===u||"residentPost"===u||"residentTel"===u?(n=n||{},n[u]=h):"officeAddr"===u||"officeDetail"===u||"officePost"===u||"officeTel"===u?(r=r||{},r[u]=h):"companyIdType"===u||"companyId"===u?(s=s||{},s[u]=h):"detail"===u?(l=l||{},l[u]=h):o[u]=h)}return e&&(o.certificate=e),i&&(o.socialIns=i),n&&(o.resident=n),r&&(o.office=r),s&&(o.companyCertificate=s),l&&(o.companyAddress=l),o};if(n.plan&&(r=d(n.plan)),o&&(f.applicant={},o&&(f.applicant=d(o))),s||r){f.insureds=[];for(var g=s||[""],v=0;v<g.length;v++){var y=g[v],m=null,_={};y&&(m=d(y)),m&&(_.insured=m),r&&(_.plan=r),f.insureds.push(_)}}if(u&&(f.hctext=d(u)),c&&(f.apphctext=d(c)),l&&(f.hcpics=d(l)),p&&(f.apphcpics=d(p)),h){f.makeup={};for(var x=h||[""],w=0;w<x.length;w++){var b=x[w],S=null;b&&(S=d(b)),S&&(f.makeup=R()(f.makeup,S))}}return f}i.d(e,"F",function(){return et}),i.d(e,"v",function(){return it}),e.d=n,e.c=r,e.b=o,e.o=a,e.z=s,e.x=l,e.y=u,e.p=h,e.w=c,e.q=p,e.A=f,e.r=d,e.s=g,e.a=v,e.E=y,e.u=m,e.g=_,e.e=x,e.f=w,e.h=b,e.B=S,e.n=T,e.C=M,e.l=C,e.t=I,e.D=k,e.k=A,e.m=D,e.j=P,e.i=L;var E=i(28),R=i.n(E),B=i(75),N=i.n(B),z=i(57),F=i.n(z),Y="undefined"!=typeof window,H=Y&&window.navigator.userAgent.toLowerCase(),V=H&&/msie|trident/.test(H),W=H&&H.indexOf("msie 9.0")>0,X=H&&H.indexOf("edge/")>0,U=H&&H.indexOf("android")>0,j=H&&/iphone|ipad|ipod|ios/.test(H),G=H&&/chrome\/\d+/.test(H)&&!X,q=H&&/MicroMessenger/i.test(H),Z=H&&/wxwork/i.test(H),K=H&&/mucxiaoyusan/i.test(H),Q=H&&/muckacabao/i.test(H),$=H&&/mucyanxuan/i.test(H),J=K||Q,tt=H&&/phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/i.test(H),et={isIE:V,isMobile:tt,isIE9:W,isEdge:X,isAndroid:U,isIOS:j,isChrome:G,isWx:q,isWxWork:Z,isApp:J,isXysApp:K,isKcbApp:Q,isYxApp:$},it=/MucWebAutoTester/.test(window.navigator.userAgent)},50:function(t,e,i){var n=i(6),r=i(11),o=i(68)(!1),a=i(31)("IE_PROTO");t.exports=function(t,e){var i,s=r(t),l=0,u=[];for(i in s)i!=a&&n(s,i)&&u.push(i);for(;e.length>l;)n(s,i=e[l++])&&(~o(u,i)||u.push(i));return u}},51:function(t,e,i){var n=i(50),r=i(33).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,r)}},52:function(t,e,i){"use strict";var n=i(65)(!0);i(45)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,i=this._i;return i>=e.length?{value:void 0,done:!0}:(t=n(e,i),this._i+=t.length,{value:t,done:!1})})},53:function(t,e,i){var n=i(11),r=i(51).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return r(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):r(n(t))}},54:function(t,e,i){i(71);for(var n=i(1),r=i(7),o=i(18),a=i(3)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var u=s[l],h=n[u],c=h&&h.prototype;c&&!c[a]&&r(c,a,u),o[u]=o.Array}},55:function(t,e,i){"use strict";var n=i(1),r=i(6),o=i(4),a=i(13),s=i(49),l=i(74).KEY,u=i(12),h=i(32),c=i(27),p=i(22),f=i(3),d=i(36),g=i(37),v=i(82),y=i(77),m=i(9),_=i(10),x=i(23),w=i(11),b=i(34),S=i(21),T=i(46),M=i(53),C=i(83),I=i(35),k=i(8),A=i(14),D=C.f,P=k.f,O=M.f,L=n.Symbol,E=n.JSON,R=E&&E.stringify,B=f("_hidden"),N=f("toPrimitive"),z={}.propertyIsEnumerable,F=h("symbol-registry"),Y=h("symbols"),H=h("op-symbols"),V=Object.prototype,W="function"==typeof L&&!!I.f,X=n.QObject,U=!X||!X.prototype||!X.prototype.findChild,j=o&&u(function(){return 7!=T(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,e,i){var n=D(V,e);n&&delete V[e],P(t,e,i),n&&t!==V&&P(V,e,n)}:P,G=function(t){var e=Y[t]=T(L.prototype);return e._k=t,e},q=W&&"symbol"==typeof L.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof L},Z=function(t,e,i){return t===V&&Z(H,e,i),m(t),e=b(e,!0),m(i),r(Y,e)?(i.enumerable?(r(t,B)&&t[B][e]&&(t[B][e]=!1),i=T(i,{enumerable:S(0,!1)})):(r(t,B)||P(t,B,S(1,{})),t[B][e]=!0),j(t,e,i)):P(t,e,i)},K=function(t,e){m(t);for(var i,n=v(e=w(e)),r=0,o=n.length;o>r;)Z(t,i=n[r++],e[i]);return t},Q=function(t,e){return void 0===e?T(t):K(T(t),e)},$=function(t){var e=z.call(this,t=b(t,!0));return!(this===V&&r(Y,t)&&!r(H,t))&&(!(e||!r(this,t)||!r(Y,t)||r(this,B)&&this[B][t])||e)},J=function(t,e){if(t=w(t),e=b(e,!0),t!==V||!r(Y,e)||r(H,e)){var i=D(t,e);return!i||!r(Y,e)||r(t,B)&&t[B][e]||(i.enumerable=!0),i}},tt=function(t){for(var e,i=O(w(t)),n=[],o=0;i.length>o;)r(Y,e=i[o++])||e==B||e==l||n.push(e);return n},et=function(t){for(var e,i=t===V,n=O(i?H:w(t)),o=[],a=0;n.length>a;)!r(Y,e=n[a++])||i&&!r(V,e)||o.push(Y[e]);return o};W||(L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(i){this===V&&e.call(H,i),r(this,B)&&r(this[B],t)&&(this[B][t]=!1),j(this,t,S(1,i))};return o&&U&&j(V,t,{configurable:!0,set:e}),G(t)},s(L.prototype,"toString",function(){return this._k}),C.f=J,k.f=Z,i(51).f=M.f=tt,i(24).f=$,I.f=et,o&&!i(16)&&s(V,"propertyIsEnumerable",$,!0),d.f=function(t){return G(f(t))}),a(a.G+a.W+a.F*!W,{Symbol:L});for(var it="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;it.length>nt;)f(it[nt++]);for(var rt=A(f.store),ot=0;rt.length>ot;)g(rt[ot++]);a(a.S+a.F*!W,"Symbol",{for:function(t){return r(F,t+="")?F[t]:F[t]=L(t)},keyFor:function(t){if(!q(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){U=!0},useSimple:function(){U=!1}}),a(a.S+a.F*!W,"Object",{create:Q,defineProperty:Z,defineProperties:K,getOwnPropertyDescriptor:J,getOwnPropertyNames:tt,getOwnPropertySymbols:et});var at=u(function(){I.f(1)});a(a.S+a.F*at,"Object",{getOwnPropertySymbols:function(t){return I.f(x(t))}}),E&&a(a.S+a.F*(!W||u(function(){var t=L();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))})),"JSON",{stringify:function(t){for(var e,i,n=[t],r=1;arguments.length>r;)n.push(arguments[r++]);if(i=e=n[1],(_(e)||void 0!==t)&&!q(t))return y(e)||(e=function(t,e){if("function"==typeof i&&(e=i.call(this,t,e)),!q(e))return e}),n[1]=e,R.apply(E,n)}}),L.prototype[N]||i(7)(L.prototype,N,L.prototype.valueOf),c(L,"Symbol"),c(Math,"Math",!0),c(n.JSON,"JSON",!0)},56:function(t,e,i){var n=i(13),r=i(0),o=i(12);t.exports=function(t,e){var i=(r.Object||{})[t]||Object[t],a={};a[t]=e(i),n(n.S+n.F*o(function(){i(1)}),"Object",a)}},57:function(t,e,i){t.exports={default:i(78),__esModule:!0}},58:function(t,e,i){var n=i(30),r=Math.min;t.exports=function(t){return t>0?r(n(t),9007199254740991):0}},6:function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},60:function(t,e,i){var n=i(1).document;t.exports=n&&n.documentElement},61:function(t,e){},62:function(t,e,i){"use strict";function n(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var r=i(73),o=i.n(r),a=i(92),s=i.n(a),l=i(28),u=i.n(l),h=i(95),c=i.n(h),p=c.a,f=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,g=function(){try{if(!u.a)return!1;var t=new String("abc");if(t[5]="de","5"===s()(t)[0])return!1;for(var e={},i=0;i<10;i++)e["_"+String.fromCharCode(i)]=i;if("0123456789"!==s()(e).map(function(t){return e[t]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(t){n[t]=t}),"abcdefghijklmnopqrst"===o()(u()({},n)).join("")}catch(t){return!1}}()?u.a:function(t,e){for(var i,r,o=n(t),a=1;a<arguments.length;a++){i=Object(arguments[a]);for(var s in i)f.call(i,s)&&(o[s]=i[s]);if(p){r=p(i);for(var l=0;l<r.length;l++)d.call(i,r[l])&&(o[r[l]]=i[r[l]])}}return o};e.a=g},627:function(t,e,i){"use strict";e.a={props:{title:{type:String},subtitle:{type:String},cancelTxt:{type:String,default:""},confirmTxt:{type:String,default:""},swipeTime:{type:Number,default:2500},maskClosable:{type:Boolean,default:!0},confirmColor:{type:String,default:""},cancelColor:{type:String,default:""}},computed:{_cancelTxt:function(){return this.cancelTxt||"取消"},_confirmTxt:function(){return this.confirmTxt||"确定"}}}},64:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},65:function(t,e,i){var n=i(30),r=i(29);t.exports=function(t){return function(e,i){var o,a,s=String(r(e)),l=n(i),u=s.length;return l<0||l>=u?t?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):o:t?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}}},66:function(t,e,i){"use strict";var n=i(46),r=i(21),o=i(27),a={};i(7)(a,i(3)("iterator"),function(){return this}),t.exports=function(t,e,i){t.prototype=n(a,{next:r(1,i)}),o(t,e+" Iterator")}},67:function(t,e,i){var n=i(8),r=i(9),o=i(14);t.exports=i(4)?Object.defineProperties:function(t,e){r(t);for(var i,a=o(e),s=a.length,l=0;s>l;)n.f(t,i=a[l++],e[i]);return t}},68:function(t,e,i){var n=i(11),r=i(58),o=i(69);t.exports=function(t){return function(e,i,a){var s,l=n(e),u=r(l.length),h=o(a,u);if(t&&i!=i){for(;u>h;)if((s=l[h++])!=s)return!0}else for(;u>h;h++)if((t||h in l)&&l[h]===i)return t||h||0;return!t&&-1}}},69:function(t,e,i){var n=i(30),r=Math.max,o=Math.min;t.exports=function(t,e){return t=n(t),t<0?r(t+e,0):o(t,e)}},7:function(t,e,i){var n=i(8),r=i(21);t.exports=i(4)?function(t,e,i){return n.f(t,e,r(1,i))}:function(t,e,i){return t[e]=i,t}},70:function(t,e,i){var n=i(6),r=i(23),o=i(31)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),n(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},71:function(t,e,i){"use strict";var n=i(72),r=i(64),o=i(18),a=i(11);t.exports=i(45)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,i=this._i++;return!t||i>=t.length?(this._t=void 0,r(1)):"keys"==e?r(0,i):"values"==e?r(0,t[i]):r(0,[i,t[i]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},72:function(t,e){t.exports=function(){}},73:function(t,e,i){t.exports={default:i(90),__esModule:!0}},74:function(t,e,i){var n=i(22)("meta"),r=i(10),o=i(6),a=i(8).f,s=0,l=Object.isExtensible||function(){return!0},u=!i(12)(function(){return l(Object.preventExtensions({}))}),h=function(t){a(t,n,{value:{i:"O"+ ++s,w:{}}})},c=function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,n)){if(!l(t))return"F";if(!e)return"E";h(t)}return t[n].i},p=function(t,e){if(!o(t,n)){if(!l(t))return!0;if(!e)return!1;h(t)}return t[n].w},f=function(t){return u&&d.NEED&&l(t)&&!o(t,n)&&h(t),t},d=t.exports={KEY:n,NEED:!1,fastKey:c,getWeak:p,onFreeze:f}},75:function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=i(84),o=n(r),a=i(86),s=n(a),l="function"==typeof s.default&&"symbol"==typeof o.default?function(t){return typeof t}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":typeof t};e.default="function"==typeof s.default&&"symbol"===l(o.default)?function(t){return void 0===t?"undefined":l(t)}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":void 0===t?"undefined":l(t)}},76:function(t,e,i){"use strict";e.a={props:{zIndex:{type:Number,default:100},maskClosable:{type:Boolean,default:!1}}}},77:function(t,e,i){var n=i(26);t.exports=Array.isArray||function(t){return"Array"==n(t)}},78:function(t,e,i){var n=i(0),r=n.JSON||(n.JSON={stringify:JSON.stringify});t.exports=function(t){return r.stringify.apply(r,arguments)}},79:function(t,e,i){i(80),t.exports=i(0).Object.assign},8:function(t,e,i){var n=i(9),r=i(48),o=i(34),a=Object.defineProperty;e.f=i(4)?Object.defineProperty:function(t,e,i){if(n(t),e=o(e,!0),n(i),r)try{return a(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t}},80:function(t,e,i){var n=i(13);n(n.S+n.F,"Object",{assign:i(81)})},81:function(t,e,i){"use strict";var n=i(4),r=i(14),o=i(35),a=i(24),s=i(23),l=i(47),u=Object.assign;t.exports=!u||i(12)(function(){var t={},e={},i=Symbol(),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach(function(t){e[t]=t}),7!=u({},t)[i]||Object.keys(u({},e)).join("")!=n})?function(t,e){for(var i=s(t),u=arguments.length,h=1,c=o.f,p=a.f;u>h;)for(var f,d=l(arguments[h++]),g=c?r(d).concat(c(d)):r(d),v=g.length,y=0;v>y;)f=g[y++],n&&!p.call(d,f)||(i[f]=d[f]);return i}:u},82:function(t,e,i){var n=i(14),r=i(35),o=i(24);t.exports=function(t){var e=n(t),i=r.f;if(i)for(var a,s=i(t),l=o.f,u=0;s.length>u;)l.call(t,a=s[u++])&&e.push(a);return e}},83:function(t,e,i){var n=i(24),r=i(21),o=i(11),a=i(34),s=i(6),l=i(48),u=Object.getOwnPropertyDescriptor;e.f=i(4)?u:function(t,e){if(t=o(t),e=a(e,!0),l)try{return u(t,e)}catch(t){}if(s(t,e))return r(!n.f.call(t,e),t[e])}},84:function(t,e,i){t.exports={default:i(85),__esModule:!0}},85:function(t,e,i){i(52),i(54),t.exports=i(36).f("iterator")},86:function(t,e,i){t.exports={default:i(87),__esModule:!0}},87:function(t,e,i){i(55),i(61),i(88),i(89),t.exports=i(0).Symbol},88:function(t,e,i){i(37)("asyncIterator")},89:function(t,e,i){i(37)("observable")},9:function(t,e,i){var n=i(10);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},90:function(t,e,i){i(91),t.exports=i(0).Object.keys},91:function(t,e,i){var n=i(23),r=i(14);i(56)("keys",function(){return function(t){return r(n(t))}})},913:function(t,e,i){"use strict";var n={value:"value",text:"text",order:"order",children:"children"};e.a={props:{data:{type:Array,default:function(){return[]}},selectedIndex:{type:Array,default:function(){return[]}},alias:{type:Object,default:function(){return{}}}},computed:{valueKey:function(){return this.alias.value||n.value},textKey:function(){return this.alias.text||n.text},orderKey:function(){return n.order},childrenKey:function(){return this.alias.children||n.children},merge:function(){return[this.data,this.selectedIndex]}},watch:{merge:function(t){this.setData(t[0],t[1])}}}},92:function(t,e,i){t.exports={default:i(93),__esModule:!0}},93:function(t,e,i){i(94);var n=i(0).Object;t.exports=function(t){return n.getOwnPropertyNames(t)}},94:function(t,e,i){i(56)("getOwnPropertyNames",function(){return i(53).f})},95:function(t,e,i){t.exports={default:i(96),__esModule:!0}},96:function(t,e,i){i(55),t.exports=i(0).Object.getOwnPropertySymbols},98:function(t,e,i){"use strict";function n(t){var e={},i={},n={};for(var l in t)if(t.hasOwnProperty(l))if(-1!==s.indexOf(l))e[l]=t[l];else if(a.test(l)){var u=a.exec(l)[1];u=Object(o.a)(u),n[u]=t[l]}else i[l]=t[l];return e.on=Object(r.a)(n,e.on),e.props=Object(r.a)(i,e.props),e}e.a=n;var r=i(62),o=i(99),a=new RegExp(/^on(.+)/),s=["class","style","attrs","props","domProps","on","nativeOn","directives","scopedSlots","slot","key","ref","refInFor"]},99:function(t,e,i){"use strict";function n(t,e){var i=l(t,e);return i.charAt(0).toLowerCase()+i.slice(1)}e.a=n;var r=i(28),o=i.n(r),a=i(5),s=function(t){for(var e=!1,i=!1,n=!1,r=0;r<t.length;r++){var o=t[r];e&&/[a-zA-Z]/.test(o)&&o.toUpperCase()===o?(t=t.slice(0,r)+"-"+t.slice(r),e=!1,n=i,i=!0,r++):i&&n&&/[a-zA-Z]/.test(o)&&o.toLowerCase()===o?(t=t.slice(0,r-1)+"-"+t.slice(r-1),n=i,i=!1,e=!0):(e=o.toLowerCase()===o&&o.toUpperCase()!==o,n=i,i=o.toUpperCase()===o&&o.toLowerCase()!==o)}return t},l=function(t,e){if("string"!=typeof t&&!Object(a.o)(t))throw new TypeError("Expected the input to be `string | string[]`");e=o()({pascalCase:!1},e);return t=Array.isArray(t)?t.map(function(t){return t.trim()}).filter(function(t){return t.length}).join("-"):t.trim(),0===t.length?"":1===t.length?e.pascalCase?t.toUpperCase():t.toLowerCase():(t!==t.toLowerCase()&&(t=s(t)),t=t.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,function(t,e){return e.toUpperCase()}).replace(/\d+(\w|$)/g,function(t){return t.toUpperCase()}),function(t){return e.pascalCase?t.charAt(0).toUpperCase()+t.slice(1):t}(t))}}})});
|