(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-libs"],{"0050":function(t,e,n){"use strict";(function(e){function n(t){return t instanceof e?e.from(t):new t.constructor(t.buffer.slice(),t.byteOffset,t.length)}function r(t){return t=t||{},t.circles?i(t):t.proto?o:r;function e(t,e){for(var r=Object.keys(t),i=new Array(r.length),o=0;ot.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:3,e=new Map;return{get:function(n){var r=n.match(I).length;if(e.has(r))return e.get(r);var i=parseFloat((1/Math.sqrt(r)).toFixed(t));return e.set(r,i),i},clear:function(){e.clear()}}}var P=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.getFn,i=void 0===r?T.getFn:r;e(this,t),this.norm=E(3),this.getFn=i,this.isCreated=!1,this.setIndexRecords()}return r(t,[{key:"setSources",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.docs=t}},{key:"setIndexRecords",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.records=t}},{key:"setKeys",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.keys=e,this._keysMap={},e.forEach((function(e,n){t._keysMap[e.id]=n}))}},{key:"create",value:function(){var t=this;!this.isCreated&&this.docs.length&&(this.isCreated=!0,g(this.docs[0])?this.docs.forEach((function(e,n){t._addString(e,n)})):this.docs.forEach((function(e,n){t._addObject(e,n)})),this.norm.clear())}},{key:"add",value:function(t){var e=this.size();g(t)?this._addString(t,e):this._addObject(t,e)}},{key:"removeAt",value:function(t){this.records.splice(t,1);for(var e=t,n=this.size();e2&&void 0!==arguments[2]?arguments[2]:{},r=n.getFn,i=void 0===r?T.getFn:r,o=new P({getFn:i});return o.setKeys(t.map(k)),o.setSources(e),o.create(),o}function L(t,e){var n=t.matches;e.matches=[],b(n)&&n.forEach((function(t){if(b(t.indices)&&t.indices.length){var n={indices:t.indices,value:t.value};t.key&&(n.key=t.key.src),t.idx>-1&&(n.refIndex=t.idx),e.matches.push(n)}}))}function D(t,e){e.score=t.score}function R(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.errors,r=void 0===n?0:n,i=e.currentLocation,o=void 0===i?0:i,a=e.expectedLocation,s=void 0===a?0:a,l=e.distance,u=void 0===l?T.distance:l,c=e.ignoreLocation,h=void 0===c?T.ignoreLocation:c,f=r/t.length;if(h)return f;var d=Math.abs(s-o);return u?f+d/u:d?1:f}function N(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T.minMatchCharLength,n=[],r=-1,i=-1,o=0,a=t.length;o=e&&n.push([r,i]),r=-1)}return t[o-1]&&o-r>=e&&n.push([r,o-1]),n}function B(t){for(var e={},n=0,r=t.length;n1&&void 0!==arguments[1]?arguments[1]:{},o=i.location,a=void 0===o?T.location:o,s=i.threshold,l=void 0===s?T.threshold:s,u=i.distance,c=void 0===u?T.distance:u,h=i.includeMatches,f=void 0===h?T.includeMatches:h,d=i.findAllMatches,p=void 0===d?T.findAllMatches:d,g=i.minMatchCharLength,v=void 0===g?T.minMatchCharLength:g,y=i.isCaseSensitive,m=void 0===y?T.isCaseSensitive:y,b=i.ignoreLocation,_=void 0===b?T.ignoreLocation:b;if(e(this,t),this.options={location:a,threshold:l,distance:c,includeMatches:f,findAllMatches:p,minMatchCharLength:v,isCaseSensitive:m,ignoreLocation:_},this.pattern=m?n:n.toLowerCase(),this.chunks=[],this.pattern.length){var x=function(t,e){r.chunks.push({pattern:t,alphabet:B(t),startIndex:e})},w=this.pattern.length;if(w>32){for(var S=0,O=w%32,C=w-O;S3&&void 0!==arguments[3]?arguments[3]:{},i=r.location,o=void 0===i?T.location:i,a=r.distance,s=void 0===a?T.distance:a,l=r.threshold,u=void 0===l?T.threshold:l,c=r.findAllMatches,h=void 0===c?T.findAllMatches:c,f=r.minMatchCharLength,d=void 0===f?T.minMatchCharLength:f,p=r.includeMatches,g=void 0===p?T.includeMatches:p,v=r.ignoreLocation,y=void 0===v?T.ignoreLocation:v;if(e.length>32)throw new Error(S(32));for(var m,b=e.length,_=t.length,x=Math.max(0,Math.min(o,_)),w=u,O=x,C=d>1||g,k=C?Array(_):[];(m=t.indexOf(e,O))>-1;){var A=R(e,{currentLocation:m,expectedLocation:x,distance:s,ignoreLocation:y});if(w=Math.min(A,w),O=m+b,C)for(var M=0;M=z;G-=1){var H=G-1,W=n[t.charAt(H)];if(C&&(k[H]=+!!W),q[G]=(q[G+1]<<1|1)&W,L&&(q[G]|=(I[G+1]|I[G])<<1|1|I[G+1]),q[G]&j&&(E=R(e,{errors:L,currentLocation:H,expectedLocation:x,distance:s,ignoreLocation:y}))<=w){if(w=E,(O=H)<=x)break;z=Math.max(1,2*x-O)}}var U=R(e,{errors:L+1,currentLocation:x,expectedLocation:x,distance:s,ignoreLocation:y});if(U>w)break;I=q}var $={isMatch:O>=0,score:Math.max(.001,E)};if(C){var Y=N(k,d);Y.length?g&&($.indices=Y):$.isMatch=!1}return $}(t,n,i,{location:a+o,distance:s,threshold:l,findAllMatches:u,minMatchCharLength:c,includeMatches:r,ignoreLocation:h}),y=v.isMatch,m=v.score,b=v.indices;y&&(g=!0),p+=m,y&&b&&(d=[].concat(f(d),f(b)))}));var v={isMatch:g,score:g?p/this.chunks.length:1};return g&&r&&(v.indices=d),v}}]),t}(),z=function(){function t(n){e(this,t),this.pattern=n}return r(t,[{key:"search",value:function(){}}],[{key:"isMultiMatch",value:function(t){return V(t,this.multiRegex)}},{key:"isSingleMatch",value:function(t){return V(t,this.singleRegex)}}]),t}();function V(t,e){var n=t.match(e);return n?n[1]:null}var q=function(t){s(i,t);var n=h(i);function i(t){return e(this,i),n.call(this,t)}return r(i,[{key:"search",value:function(t){var e=t===this.pattern;return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"exact"}},{key:"multiRegex",get:function(){return/^="(.*)"$/}},{key:"singleRegex",get:function(){return/^=(.*)$/}}]),i}(z),G=function(t){s(i,t);var n=h(i);function i(t){return e(this,i),n.call(this,t)}return r(i,[{key:"search",value:function(t){var e=-1===t.indexOf(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}}],[{key:"type",get:function(){return"inverse-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"$/}},{key:"singleRegex",get:function(){return/^!(.*)$/}}]),i}(z),H=function(t){s(i,t);var n=h(i);function i(t){return e(this,i),n.call(this,t)}return r(i,[{key:"search",value:function(t){var e=t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"prefix-exact"}},{key:"multiRegex",get:function(){return/^\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^\^(.*)$/}}]),i}(z),W=function(t){s(i,t);var n=h(i);function i(t){return e(this,i),n.call(this,t)}return r(i,[{key:"search",value:function(t){var e=!t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}}],[{key:"type",get:function(){return"inverse-prefix-exact"}},{key:"multiRegex",get:function(){return/^!\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^!\^(.*)$/}}]),i}(z),U=function(t){s(i,t);var n=h(i);function i(t){return e(this,i),n.call(this,t)}return r(i,[{key:"search",value:function(t){var e=t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}],[{key:"type",get:function(){return"suffix-exact"}},{key:"multiRegex",get:function(){return/^"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^(.*)\$$/}}]),i}(z),$=function(t){s(i,t);var n=h(i);function i(t){return e(this,i),n.call(this,t)}return r(i,[{key:"search",value:function(t){var e=!t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}}],[{key:"type",get:function(){return"inverse-suffix-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^!(.*)\$$/}}]),i}(z),Y=function(t){s(i,t);var n=h(i);function i(t){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=o.location,s=void 0===a?T.location:a,l=o.threshold,u=void 0===l?T.threshold:l,c=o.distance,h=void 0===c?T.distance:c,f=o.includeMatches,d=void 0===f?T.includeMatches:f,p=o.findAllMatches,g=void 0===p?T.findAllMatches:p,v=o.minMatchCharLength,y=void 0===v?T.minMatchCharLength:v,m=o.isCaseSensitive,b=void 0===m?T.isCaseSensitive:m,_=o.ignoreLocation,x=void 0===_?T.ignoreLocation:_;return e(this,i),(r=n.call(this,t))._bitapSearch=new F(t,{location:s,threshold:u,distance:h,includeMatches:d,findAllMatches:g,minMatchCharLength:y,isCaseSensitive:b,ignoreLocation:x}),r}return r(i,[{key:"search",value:function(t){return this._bitapSearch.searchIn(t)}}],[{key:"type",get:function(){return"fuzzy"}},{key:"multiRegex",get:function(){return/^"(.*)"$/}},{key:"singleRegex",get:function(){return/^(.*)$/}}]),i}(z),X=function(t){s(i,t);var n=h(i);function i(t){return e(this,i),n.call(this,t)}return r(i,[{key:"search",value:function(t){for(var e,n=0,r=[],i=this.pattern.length;(e=t.indexOf(this.pattern,n))>-1;)n=e+i,r.push([e,n-1]);var o=!!r.length;return{isMatch:o,score:o?1:0,indices:r}}}],[{key:"type",get:function(){return"include"}},{key:"multiRegex",get:function(){return/^'"(.*)"$/}},{key:"singleRegex",get:function(){return/^'(.*)$/}}]),i}(z),K=[q,X,H,W,$,U,G,Y],Z=K.length,Q=/ +(?=([^\"]*\"[^\"]*\")*[^\"]*$)/;function J(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.split("|").map((function(t){for(var n=t.trim().split(Q).filter((function(t){return t&&!!t.trim()})),r=[],i=0,o=n.length;i1&&void 0!==arguments[1]?arguments[1]:{},i=r.isCaseSensitive,o=void 0===i?T.isCaseSensitive:i,a=r.includeMatches,s=void 0===a?T.includeMatches:a,l=r.minMatchCharLength,u=void 0===l?T.minMatchCharLength:l,c=r.ignoreLocation,h=void 0===c?T.ignoreLocation:c,f=r.findAllMatches,d=void 0===f?T.findAllMatches:f,p=r.location,g=void 0===p?T.location:p,v=r.threshold,y=void 0===v?T.threshold:v,m=r.distance,b=void 0===m?T.distance:m;e(this,t),this.query=null,this.options={isCaseSensitive:o,includeMatches:s,minMatchCharLength:u,findAllMatches:d,ignoreLocation:h,location:g,threshold:y,distance:b},this.pattern=o?n:n.toLowerCase(),this.query=J(this.pattern,this.options)}return r(t,[{key:"searchIn",value:function(t){var e=this.query;if(!e)return{isMatch:!1,score:1};var n=this.options,r=n.includeMatches;t=n.isCaseSensitive?t:t.toLowerCase();for(var i=0,o=[],a=0,s=0,l=e.length;s1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;e(this,t),this.options=a({},T,{},r),this.options.useExtendedSearch,this._keyStore=new C(this.options.keys),this.setCollection(n,i)}return r(t,[{key:"setCollection",value:function(t,e){if(this._docs=t,e&&!(e instanceof P))throw new Error("Incorrect 'index' type");this._myIndex=e||j(this.options.keys,this._docs,{getFn:this.options.getFn})}},{key:"add",value:function(t){b(t)&&(this._docs.push(t),this._myIndex.add(t))}},{key:"remove",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!1},e=[],n=0,r=this._docs.length;n1&&void 0!==arguments[1]?arguments[1]:{},n=e.limit,r=void 0===n?-1:n,i=this.options,o=i.includeMatches,a=i.includeScore,s=i.shouldSort,l=i.sortFn,u=i.ignoreFieldNorm,c=g(t)?g(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return dt(c,{ignoreFieldNorm:u}),s&&c.sort(l),v(r)&&r>-1&&(c=c.slice(0,r)),pt(c,this._docs,{includeMatches:o,includeScore:a})}},{key:"_searchStringList",value:function(t){var e=rt(t,this.options),n=this._myIndex.records,r=[];return n.forEach((function(t){var n=t.v,i=t.i,o=t.n;if(b(n)){var a=e.searchIn(n),s=a.isMatch,l=a.score,u=a.indices;s&&r.push({item:n,idx:i,matches:[{score:l,value:n,norm:o,indices:u}]})}})),r}},{key:"_searchLogical",value:function(t){var e=this,n=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.auto,i=void 0===r||r,o=function t(n){var r=Object.keys(n),o=ut(n);if(!o&&r.length>1&&!lt(n))return t(ht(n));if(ct(n)){var a=o?n[at]:r[0],s=o?n[st]:n[a];if(!g(s))throw new Error(w(a));var l={keyId:M(a),pattern:s};return i&&(l.searcher=rt(s,e)),l}var u={children:[],operator:r[0]};return r.forEach((function(e){var r=n[e];p(r)&&r.forEach((function(e){u.children.push(t(e))}))})),u};return lt(t)||(t=ht(t)),o(t)}(t,this.options),r=this._myIndex.records,i={},o=[];return r.forEach((function(t){var r=t.$,a=t.i;if(b(r)){var s=function t(n,r,i){if(!n.children){var o=n.keyId,a=n.searcher,s=e._findMatches({key:e._keyStore.get(o),value:e._myIndex.getValueForItemAtKeyId(r,o),searcher:a});return s&&s.length?[{idx:i,item:r,matches:s}]:[]}switch(n.operator){case it:for(var l=[],u=0,c=n.children.length;u2&&void 0!==arguments[2]?arguments[2]:{},r=n.includeMatches,i=void 0===r?T.includeMatches:r,o=n.includeScore,a=void 0===o?T.includeScore:o,s=[];return i&&s.push(L),a&&s.push(D),t.map((function(t){var n=t.idx,r={item:e[n],refIndex:n};return s.length&&s.forEach((function(e){e(t,r)})),r}))}return ft.version="6.4.3",ft.createIndex=j,ft.parseIndex=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getFn,r=void 0===n?T.getFn:n,i=t.keys,o=t.records,a=new P({getFn:r});return a.setKeys(i),a.setIndexRecords(o),a},ft.config=T,function(){nt.push.apply(nt,arguments)}(et),ft},t.exports=r()},"030c":function(t,e,n){"use strict";(function(e){var r=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=u;var i=n("3bd2"),o=n("1beb");n("3fb5")(u,i);for(var a=r(o.prototype),s=0;sl)r(s,n=e[l++])&&(~o(u,n)||u.push(n));return u}},"042d":function(t,e,n){},"04d1":function(t,e,n){var r=n("342f"),i=r.match(/firefox\/(\d+)/i);t.exports=!!i&&+i[1]},"04f8":function(t,e,n){var r=n("2d00"),i=n("d039");t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},"04fb":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=void 0;var i=r(n("7037")),o=r(n("970b"));n("0ca1");var a=r(n("9886")),s=n("5557"),l=n("a736"),u=function t(e){if((0,o["default"])(this,t),!e)return console.error("Charts Missing parameters!"),!1;var n=e.clientWidth,r=e.clientHeight,i=document.createElement("canvas");i.setAttribute("width",n),i.setAttribute("height",r),e.appendChild(i);var s={container:e,canvas:i,render:new a["default"](i),option:null};Object.assign(this,s)};e["default"]=u,u.prototype.setOption=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t||"object"!==(0,i["default"])(t))return console.error("setOption Missing parameters!"),!1;e&&this.render.graphs.forEach((function(t){return t.animationEnd()}));var n=(0,s.deepClone)(t,!0);(0,l.mergeColor)(this,n),(0,l.grid)(this,n),(0,l.axis)(this,n),(0,l.radarAxis)(this,n),(0,l.title)(this,n),(0,l.bar)(this,n),(0,l.line)(this,n),(0,l.pie)(this,n),(0,l.radar)(this,n),(0,l.gauge)(this,n),(0,l.legend)(this,n),this.option=t,this.render.launchAnimation()},u.prototype.resize=function(){var t=this.container,e=this.canvas,n=this.render,r=this.option,i=t.clientWidth,o=t.clientHeight;e.setAttribute("width",i),e.setAttribute("height",o),n.area=[i,o],this.setOption(r)}},"050c":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"bezierCurveToPolyline",{enumerable:!0,get:function(){return i.bezierCurveToPolyline}}),Object.defineProperty(e,"getBezierCurveLength",{enumerable:!0,get:function(){return i.getBezierCurveLength}}),Object.defineProperty(e,"polylineToBezierCurve",{enumerable:!0,get:function(){return o["default"]}}),e["default"]=void 0;var i=n("2db9"),o=r(n("ae10")),a={bezierCurveToPolyline:i.bezierCurveToPolyline,getBezierCurveLength:i.getBezierCurveLength,polylineToBezierCurve:o["default"]};e["default"]=a},"051b":function(t,e,n){var r=n("1a14"),i=n("10db");t.exports=n("0bad")?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},"057f":function(t,e,n){var r=n("c6b6"),i=n("fc6a"),o=n("241c").f,a=n("4dae"),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(t){try{return o(t)}catch(e){return a(s)}};t.exports.f=function(t){return s&&"Window"==r(t)?l(t):o(i(t))}},"05ee":function(t,e,n){"use strict";const r=n(0),i=n("34eb")("mqttjs:tcp");function o(t,e){e.port=e.port||1883,e.hostname=e.hostname||e.host||"localhost";const n=e.port,o=e.hostname;return i("port %d and host %s",n,o),r.createConnection(n,o)}t.exports=o},"05f5":function(t,e,n){var r=n("7a41"),i=n("ef08").document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},"0676":function(t,e,n){function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n("d9e2"),t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},"0680":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.axis=y;var i=r(n("7037")),o=r(n("278c")),a=r(n("9523")),s=r(n("448a")),l=n("18ad"),u=n("9d85"),c=n("becb"),h=n("5557");function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},n=e.xAxis,r=e.yAxis,i=e.series,o=[];n&&r&&i&&(o=m(n,r),o=b(o),o=o.filter((function(t){var e=t.show;return e})),o=_(o),o=x(o,i),o=L(o),o=D(o,t),o=R(o,t),o=B(o,t),o=F(o,t)),(0,l.doUpdate)({chart:t,series:o,key:"axisLine",getGraphConfig:z}),(0,l.doUpdate)({chart:t,series:o,key:"axisTick",getGraphConfig:G}),(0,l.doUpdate)({chart:t,series:o,key:"axisLabel",getGraphConfig:U}),(0,l.doUpdate)({chart:t,series:o,key:"axisName",getGraphConfig:Z}),(0,l.doUpdate)({chart:t,series:o,key:"splitLine",getGraphConfig:et}),t.axisData=o}function m(t,e){var n,r,i=[],o=[];t instanceof Array?(n=i).push.apply(n,(0,s["default"])(t)):i.push(t);e instanceof Array?(r=o).push.apply(r,(0,s["default"])(e)):o.push(e);return i.splice(2),o.splice(2),i=i.map((function(t,e){return d(d({},t),{},{index:e,axis:"x"})})),o=o.map((function(t,e){return d(d({},t),{},{index:e,axis:"y"})})),[].concat((0,s["default"])(i),(0,s["default"])(o))}function b(t){var e=t.filter((function(t){var e=t.axis;return"x"===e})),n=t.filter((function(t){var e=t.axis;return"y"===e}));return e=e.map((function(t){return(0,c.deepMerge)((0,h.deepClone)(u.xAxisConfig),t)})),n=n.map((function(t){return(0,c.deepMerge)((0,h.deepClone)(u.yAxisConfig),t)})),[].concat((0,s["default"])(e),(0,s["default"])(n))}function _(t){var e=t.filter((function(t){var e=t.data;return"value"===e})),n=t.filter((function(t){var e=t.data;return"value"!==e}));return e.forEach((function(t){"boolean"!==typeof t.boundaryGap&&(t.boundaryGap=!1)})),n.forEach((function(t){"boolean"!==typeof t.boundaryGap&&(t.boundaryGap=!0)})),[].concat((0,s["default"])(e),(0,s["default"])(n))}function x(t,e){var n=t.filter((function(t){var e=t.data;return"value"===e})),r=t.filter((function(t){var e=t.data;return e instanceof Array}));return n=w(n,e),r=P(r),[].concat((0,s["default"])(n),(0,s["default"])(r))}function w(t,e){return t.map((function(t){var n=S(t,e),r=k(t,n),i=(0,o["default"])(r,2),a=i[0],s=i[1],l=j(a,s,t),u=t.axisLabel.formatter,c=[];return c=a<0&&s>0?T(a,s,l):I(a,s,l),c=c.map((function(t){return parseFloat(t.toFixed(2))})),d(d({},t),{},{maxValue:c.slice(-1)[0],minValue:c[0],label:E(c,u)})}))}function S(t,e){if(e=e.filter((function(t){var e=t.show,n=t.type;return!1!==e&&"pie"!==n})),0===e.length)return[0,0];var n=t.index,r=t.axis;e=C(e);var i=r+"Axis",o=e.filter((function(t){return t[i]===n}));return o.length||(o=e),O(o)}function O(t){if(t){var e=Math.min.apply(Math,(0,s["default"])(t.map((function(t){var e=t.data;return Math.min.apply(Math,(0,s["default"])((0,c.filterNonNumber)(e)))})))),n=Math.max.apply(Math,(0,s["default"])(t.map((function(t){var e=t.data;return Math.max.apply(Math,(0,s["default"])((0,c.filterNonNumber)(e)))}))));return[e,n]}}function C(t){var e=(0,h.deepClone)(t,!0);return t.forEach((function(n,r){var i=(0,c.mergeSameStackData)(n,t);e[r].data=i})),e}function k(t,e){var n=t.min,r=t.max,a=t.axis,s=(0,o["default"])(e,2),l=s[0],u=s[1],c=(0,i["default"])(n),h=(0,i["default"])(r);if(M(n)||(n=p[a+"AxisConfig"].min,c="string"),M(r)||(r=p[a+"AxisConfig"].max,h="string"),"string"===c){n=parseInt(l-g(l*parseFloat(n)/100));var f=A(n);n=parseFloat((n/f-.1).toFixed(1))*f}if("string"===h){r=parseInt(u+g(u*parseFloat(r)/100));var d=A(r);r=parseFloat((r/d+.1).toFixed(1))*d}return[n,r]}function A(t){var e=g(t).toString(),n=e.length,r=e.replace(/0*$/g,"").indexOf("0"),i=n-1;return-1!==r&&(i-=r),v(10,i)}function M(t){var e=(0,i["default"])(t),n="string"===e&&/^\d+%$/.test(t),r="number"===e;return n||r}function T(t,e,n){var r=[],i=[],o=0,a=0;do{r.push(o-=n)}while(o>t);do{i.push(a+=n)}while(a1&&(u=parseInt(u.toString().replace(/\d$/,"0"))),0===u&&(u=1),"number"===typeof i&&uo?o:u}function L(t){var e=t.filter((function(t){var e=t.axis;return"x"===e})),n=t.filter((function(t){var e=t.axis;return"y"===e}));return e[0]&&!e[0].position&&(e[0].position=u.xAxisConfig.position),e[1]&&!e[1].position&&(e[1].position="bottom"===e[0].position?"top":"bottom"),n[0]&&!n[0].position&&(n[0].position=u.yAxisConfig.position),n[1]&&!n[1].position&&(n[1].position="left"===n[0].position?"right":"left"),[].concat((0,s["default"])(e),(0,s["default"])(n))}function D(t,e){var n=e.gridArea,r=n.x,i=n.y,o=n.w,a=n.h;return t=t.map((function(t){var e=t.position,n=[];return"left"===e?n=[[r,i],[r,i+a]].reverse():"right"===e?n=[[r+o,i],[r+o,i+a]].reverse():"top"===e?n=[[r,i],[r+o,i]]:"bottom"===e&&(n=[[r,i+a],[r+o,i+a]]),d(d({},t),{},{linePosition:n})})),t}function R(t,e){return t.map((function(t){var e=t.axis,n=t.linePosition,r=t.position,i=t.label,a=t.boundaryGap;"boolean"!==typeof a&&(a=p[e+"AxisConfig"].boundaryGap);var s=i.length,l=(0,o["default"])(n,2),u=(0,o["default"])(l[0],2),c=u[0],h=u[1],f=(0,o["default"])(l[1],2),g=f[0],v=f[1],y="x"===e?g-c:v-h,m=y/(a?s:s-1),b=new Array(s).fill(0).map((function(t,n){return"x"===e?[c+m*(a?n+.5:n),h]:[c,h+m*(a?n+.5:n)]})),_=N(e,a,r,b,m);return d(d({},t),{},{tickPosition:b,tickLinePosition:_,tickGap:m})}))}function N(t,e,n,r,i){var a="x"===t?1:0,s=5;"x"===t&&"top"===n&&(s=-5),"y"===t&&"left"===n&&(s=-5);var l=r.map((function(t){var e=(0,h.deepClone)(t);return e[a]+=s,[(0,h.deepClone)(t),e]}));return e?(a="x"===t?0:1,s=i/2,l.forEach((function(t){var e=(0,o["default"])(t,2),n=e[0],r=e[1];n[a]+=s,r[a]+=s})),l):l}function B(t,e){return t.map((function(t){var e=t.nameGap,n=t.nameLocation,r=t.position,i=t.linePosition,a=(0,o["default"])(i,2),l=a[0],u=a[1],c=(0,s["default"])(l);"end"===n&&(c=(0,s["default"])(u)),"center"===n&&(c[0]=(l[0]+u[0])/2,c[1]=(l[1]+u[1])/2);var h=0;"top"===r&&"center"===n&&(h=1),"bottom"===r&&"center"===n&&(h=1),"left"===r&&"center"!==n&&(h=1),"right"===r&&"center"!==n&&(h=1);var f=e;return"top"===r&&"end"!==n&&(f*=-1),"left"===r&&"start"!==n&&(f*=-1),"bottom"===r&&"start"===n&&(f*=-1),"right"===r&&"end"===n&&(f*=-1),c[h]+=f,d(d({},t),{},{namePosition:c})}))}function F(t,e){var n=e.gridArea,r=n.w,i=n.h;return t.map((function(t){var e=t.tickLinePosition,n=t.position,a=t.boundaryGap,l=0,u=r;"top"!==n&&"bottom"!==n||(l=1),"top"!==n&&"bottom"!==n||(u=i),"right"!==n&&"bottom"!==n||(u*=-1);var c=e.map((function(t){var e=(0,o["default"])(t,1),n=e[0],r=(0,s["default"])(n);return r[l]+=u,[(0,s["default"])(n),r]}));return a||c.shift(),d(d({},t),{},{splitLinePosition:c})}))}function z(t){var e=t.animationCurve,n=t.animationFrame,r=t.rLevel;return[{name:"polyline",index:r,visible:t.axisLine.show,animationCurve:e,animationFrame:n,shape:V(t),style:q(t)}]}function V(t){var e=t.linePosition;return{points:e}}function q(t){return t.axisLine.style}function G(t){var e=t.animationCurve,n=t.animationFrame,r=t.rLevel,i=H(t),o=W(t);return i.map((function(i){return{name:"polyline",index:r,visible:t.axisTick.show,animationCurve:e,animationFrame:n,shape:i,style:o}}))}function H(t){var e=t.tickLinePosition;return e.map((function(t){return{points:t}}))}function W(t){return t.axisTick.style}function U(t){var e=t.animationCurve,n=t.animationFrame,r=t.rLevel,i=$(t),o=X(t,i);return i.map((function(i,a){return{name:"text",index:r,visible:t.axisLabel.show,animationCurve:e,animationFrame:n,shape:i,style:o[a],setGraphCenter:function(){}}}))}function $(t){var e=t.label,n=t.tickPosition,r=t.position;return n.map((function(t,n){return{position:Y(t,r),content:e[n].toString()}}))}function Y(t,e){var n=0,r=10;return"top"!==e&&"bottom"!==e||(n=1),"top"!==e&&"left"!==e||(r=-10),t=(0,h.deepClone)(t),t[n]+=r,t}function X(t,e){var n=t.position,r=t.axisLabel.style,i=K(n);r=(0,c.deepMerge)(i,r);var o=e.map((function(t){var e=t.position;return d(d({},r),{},{graphCenter:e})}));return o}function K(t){return"left"===t?{textAlign:"right",textBaseline:"middle"}:"right"===t?{textAlign:"left",textBaseline:"middle"}:"top"===t?{textAlign:"center",textBaseline:"bottom"}:"bottom"===t?{textAlign:"center",textBaseline:"top"}:void 0}function Z(t){var e=t.animationCurve,n=t.animationFrame,r=t.rLevel;return[{name:"text",index:r,animationCurve:e,animationFrame:n,shape:Q(t),style:J(t)}]}function Q(t){var e=t.name,n=t.namePosition;return{content:e,position:n}}function J(t){var e=t.nameLocation,n=t.position,r=t.nameTextStyle,i=tt(n,e);return(0,c.deepMerge)(i,r)}function tt(t,e){return"top"===t&&"start"===e||"bottom"===t&&"start"===e||"left"===t&&"center"===e?{textAlign:"right",textBaseline:"middle"}:"top"===t&&"end"===e||"bottom"===t&&"end"===e||"right"===t&&"center"===e?{textAlign:"left",textBaseline:"middle"}:"top"===t&&"center"===e||"left"===t&&"end"===e||"right"===t&&"end"===e?{textAlign:"center",textBaseline:"bottom"}:"bottom"===t&&"center"===e||"left"===t&&"start"===e||"right"===t&&"start"===e?{textAlign:"center",textBaseline:"top"}:void 0}function et(t){var e=t.animationCurve,n=t.animationFrame,r=t.rLevel,i=nt(t),o=rt(t);return i.map((function(i){return{name:"polyline",index:r,visible:t.splitLine.show,animationCurve:e,animationFrame:n,shape:i,style:o}}))}function nt(t){var e=t.splitLinePosition;return e.map((function(t){return{points:t}}))}function rt(t){return t.splitLine.style}},"06c5":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));n("fb6a"),n("d3b7"),n("b0c0"),n("a630"),n("3ca3"),n("ac1f"),n("00b4");var r=n("6b75");function i(t,e){if(t){if("string"===typeof t)return Object(r["a"])(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r["a"])(t,e):void 0}}},"06cf":function(t,e,n){var r=n("83ab"),i=n("c65b"),o=n("d1e7"),a=n("5c6c"),s=n("fc6a"),l=n("a04b"),u=n("1a2d"),c=n("0cfb"),h=Object.getOwnPropertyDescriptor;e.f=r?h:function(t,e){if(t=s(t),e=l(e),c)try{return h(t,e)}catch(n){}if(u(t,e))return a(!i(o.f,t,e),t[e])}},"072d":function(t,e,n){"use strict";var r=n("0bad"),i=n("9876"),o=n("fed5"),a=n("1917"),s=n("0983"),l=n("9fbb"),u=Object.assign;t.exports=!u||n("4b8b")((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=r}))?function(t,e){var n=s(t),u=arguments.length,c=1,h=o.f,f=a.f;while(u>c){var d,p=l(arguments[c++]),g=h?i(p).concat(h(p)):i(p),v=g.length,y=0;while(v>y)d=g[y++],r&&!f.call(p,d)||(n[d]=p[d])}return n}:u},"07fa":function(t,e,n){var r=n("50c4");t.exports=function(t){return r(t.length)}},"083a":function(t,e,n){"use strict";var r=n("0d51"),i=TypeError;t.exports=function(t,e){if(!delete t[e])throw i("Cannot delete property "+r(e)+" of "+r(t))}},"0983":function(t,e,n){var r=n("c901");t.exports=function(t){return Object(r(t))}},"0a06":function(t,e,n){"use strict";var r=n("c532"),i=n("30b5"),o=n("f6b4"),a=n("5270"),s=n("4a7b"),l=n("848b"),u=l.validators;function c(t){this.defaults=t,this.interceptors={request:new o,response:new o}}c.prototype.request=function(t){"string"===typeof t?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=s(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=t.transitional;void 0!==e&&l.assertOptions(e,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var n=[],r=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var i,o=[];if(this.interceptors.response.forEach((function(t){o.push(t.fulfilled,t.rejected)})),!r){var c=[a,void 0];Array.prototype.unshift.apply(c,n),c=c.concat(o),i=Promise.resolve(t);while(c.length)i=i.then(c.shift(),c.shift());return i}var h=t;while(n.length){var f=n.shift(),d=n.shift();try{h=f(h)}catch(p){d(p);break}}try{i=a(h)}catch(p){return Promise.reject(p)}while(o.length)i=i.then(o.shift(),o.shift());return i},c.prototype.getUri=function(t){return t=s(this.defaults,t),i(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){c.prototype[t]=function(e,n){return this.request(s(n||{},{method:t,url:e,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(t){c.prototype[t]=function(e,n,r){return this.request(s(r||{},{method:t,url:e,data:n}))}})),t.exports=c},"0ae2":function(t,e,n){var r=n("9876"),i=n("fed5"),o=n("1917");t.exports=function(t){var e=r(t),n=i.f;if(n){var a,s=n(t),l=o.f,u=0;while(s.length>u)l.call(t,a=s[u++])&&e.push(a)}return e}},"0b16":function(t,e,n){"use strict";var r=n("1985"),i=n("35e8");function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}e.parse=x,e.resolve=S,e.resolveObject=O,e.format=w,e.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["<",">",'"',"`"," ","\r","\n","\t"],c=["{","}","|","\\","^","`"].concat(u),h=["'"].concat(c),f=["%","/","?",";","#"].concat(h),d=["/","?","#"],p=255,g=/^[+a-z0-9A-Z_-]{0,63}$/,v=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,y={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},_=n("b383");function x(t,e,n){if(t&&i.isObject(t)&&t instanceof o)return t;var r=new o;return r.parse(t,e,n),r}function w(t){return i.isString(t)&&(t=x(t)),t instanceof o?t.format():o.prototype.format.call(t)}function S(t,e){return x(t,!1,!0).resolve(e)}function O(t,e){return t?x(t,!1,!0).resolveObject(e):e}o.prototype.parse=function(t,e,n){if(!i.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var o=t.indexOf("?"),s=-1!==o&&o127?D+="x":D+=L[R];if(!D.match(g)){var B=P.slice(0,T),F=P.slice(T+1),z=L.match(v);z&&(B.push(z[1]),F.unshift(z[2])),F.length&&(x="/"+F.join(".")+x),this.hostname=B.join(".");break}}}this.hostname.length>p?this.hostname="":this.hostname=this.hostname.toLowerCase(),E||(this.hostname=r.toASCII(this.hostname));var V=this.port?":"+this.port:"",q=this.hostname||"";this.host=q+V,this.href+=this.host,E&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==x[0]&&(x="/"+x))}if(!y[O])for(T=0,j=h.length;T0)&&n.host.split("@");C&&(n.auth=C.shift(),n.host=n.hostname=C.shift())}return n.search=t.search,n.query=t.query,i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!S.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var k=S.slice(-1)[0],A=(n.host||t.host||S.length>1)&&("."===k||".."===k)||""===k,M=0,T=S.length;T>=0;T--)k=S[T],"."===k?S.splice(T,1):".."===k?(S.splice(T,1),M++):M&&(S.splice(T,1),M--);if(!x&&!w)for(;M--;M)S.unshift("..");!x||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),A&&"/"!==S.join("/").substr(-1)&&S.push("");var I=""===S[0]||S[0]&&"/"===S[0].charAt(0);if(O){n.hostname=n.host=I?"":S.length?S.shift():"";C=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");C&&(n.auth=C.shift(),n.host=n.hostname=C.shift())}return x=x||n.host&&S.length,x&&!I&&S.unshift(""),S.length?n.pathname=S.join("/"):(n.pathname=null,n.path=null),i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var t=this.host,e=s.exec(t);e&&(e=e[0],":"!==e&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},"0b42":function(t,e,n){var r=n("e8b5"),i=n("68ee"),o=n("861d"),a=n("b622"),s=a("species"),l=Array;t.exports=function(t){var e;return r(t)&&(e=t.constructor,i(e)&&(e===l||r(e.prototype))?e=void 0:o(e)&&(e=e[s],null===e&&(e=void 0))),void 0===e?l:e}},"0b43":function(t,e,n){var r=n("04f8");t.exports=r&&!!Symbol["for"]&&!!Symbol.keyFor},"0b99":function(t,e,n){"use strict";var r=n("19fa")(!0);n("393a")(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},"0bad":function(t,e,n){t.exports=!n("4b8b")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"0c47":function(t,e,n){var r=n("da84"),i=n("d44e");i(r.JSON,"JSON",!0)},"0ca1":function(t,e,n){"use strict";var r=n("4ea4"),i=r(n("9523")),o=r(n("448a")),a=n("9886"),s=n("b06d"),l=n("5557"),u=n("a870"),c=n("becb");function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e0?s:0,c,h,!f);var d=(0,l.getCircleRadianPoint)(i,a,u,h).map((function(t){return parseInt(t)+.5})),p=(0,l.getCircleRadianPoint)(i,a,s,c).map((function(t){return parseInt(t)+.5}));n.lineTo.apply(n,(0,o["default"])(d)),n.arc(i,a,u>0?u:0,h,c,f),n.lineTo.apply(n,(0,o["default"])(p)),n.closePath(),n.stroke(),n.fill()}},p={shape:{rx:0,ry:0,r:0,startAngle:0,endAngle:0,gradientStartAngle:null,gradientEndAngle:null},validator:function(t){var e=t.shape,n=["rx","ry","r","startAngle","endAngle"];return!n.find((function(t){return"number"!==typeof e[t]}))||(console.error("AgArc shape configuration is abnormal!"),!1)},draw:function(t,e){var n=t.ctx,r=e.shape,i=e.style,o=i.gradient;o=o.map((function(t){return(0,u.getColorFromRgbValue)(t)})),1===o.length&&(o=[o[0],o[0]]);var a=o.length-1,s=r.gradientStartAngle,h=r.gradientEndAngle,f=r.startAngle,d=r.endAngle,p=r.r,g=r.rx,v=r.ry;null===s&&(s=f),null===h&&(h=d);var y=(h-s)/a;y===2*Math.PI&&(y=2*Math.PI-.001);for(var m=0;md&&(S=d,O=!0),n.arc(g,v,p,w,S),n.strokeStyle=x,n.stroke(),O)break}}},g={shape:{number:[],content:"",position:[0,0],toFixed:0,rowGap:0,formatter:null},validator:function(t){var e=t.shape,n=e.number,r=e.content,i=e.position;return n instanceof Array&&"string"===typeof r&&i instanceof Array||(console.error("NumberText shape configuration is abnormal!"),!1)},draw:function(t,e){var n=t.ctx,r=e.shape,i=r.number,o=r.content,a=r.toFixed,l=r.rowGap,u=r.formatter,c=o.split("{nt}"),h="";c.forEach((function(t,e){var n=i[e];"number"!==typeof n&&(n=""),"number"===typeof n&&(n=n.toFixed(a),"function"===typeof u&&(n=u(n))),h+=t+(n||"")})),s.text.draw({ctx:n},{shape:f(f({},r),{},{content:h,rowGap:l})})}},v={shape:{x:0,y:0,w:0,h:0},validator:function(t){var e=t.shape,n=e.x,r=e.y,i=e.w,o=e.h;return"number"===typeof n&&"number"===typeof r&&"number"===typeof i&&"number"===typeof o||(console.error("lineIcon shape configuration is abnormal!"),!1)},draw:function(t,e){var n=t.ctx,r=e.shape;n.beginPath();var i=r.x,o=r.y,a=r.w,s=r.h,l=s/2;n.strokeStyle=n.fillStyle,n.moveTo(i,o+l),n.lineTo(i+a,o+l),n.lineWidth=1,n.stroke(),n.beginPath();var u=l-10;u<=0&&(u=3),n.arc(i+a/2,o+l,u,0,2*Math.PI),n.lineWidth=5,n.stroke(),n.fillStyle="#fff",n.fill()},hoverCheck:function(t,e){var n=e.shape,r=n.x,i=n.y,o=n.w,a=n.h;return(0,l.checkPointIsInRect)(t,r,i,o,a)},setGraphCenter:function(t,e){var n=e.shape,r=e.style,i=n.x,o=n.y,a=n.w,s=n.h;r.graphCenter=[i+a/2,o+s/2]}};(0,a.extendNewGraph)("pie",d),(0,a.extendNewGraph)("agArc",p),(0,a.extendNewGraph)("numberText",g),(0,a.extendNewGraph)("lineIcon",v)},"0cb2":function(t,e,n){var r=n("e330"),i=n("7b0b"),o=Math.floor,a=r("".charAt),s=r("".replace),l=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,h,f){var d=n+t.length,p=r.length,g=c;return void 0!==h&&(h=i(h),g=u),s(f,g,(function(i,s){var u;switch(a(s,0)){case"$":return"$";case"&":return t;case"`":return l(e,0,n);case"'":return l(e,d);case"<":u=h[l(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>p){var f=o(c/10);return 0===f?i:f<=p?void 0===r[f-1]?a(s,1):r[f-1]+a(s,1):i}u=r[c-1]}return void 0===u?"":u}))}},"0cd4":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.radarAxisConfig=void 0;var r={show:!0,center:["50%","50%"],radius:"65%",startAngle:-Math.PI/2,splitNum:5,polygon:!1,axisLabel:{show:!0,labelGap:15,color:[],style:{fill:"#333"}},axisLine:{show:!0,color:[],style:{stroke:"#999",lineWidth:1}},splitLine:{show:!0,color:[],style:{stroke:"#d4d4d4",lineWidth:1}},splitArea:{show:!1,color:["#f5f5f5","#e6e6e6"],style:{}},rLevel:-10,animationCurve:"easeOutCubic",animationFrane:50};e.radarAxisConfig=r},"0cfb":function(t,e,n){var r=n("83ab"),i=n("d039"),o=n("cc12");t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d26":function(t,e,n){var r=n("e330"),i=Error,o=r("".replace),a=function(t){return String(i(t).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(a);t.exports=function(t,e){if(l&&"string"==typeof t&&!i.prepareStackTrace)while(e--)t=o(t,s,"");return t}},"0d51":function(t,e){var n=String;t.exports=function(t){try{return n(t)}catch(e){return"Object"}}},"0df6":function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},"0e15":function(t,e,n){var r=n("597f");t.exports=function(t,e,n){return void 0===n?r(t,e,!1):r(t,n,!1!==e)}},"0e8b":function(t,e,n){"use strict";(function(e,r){var i;t.exports=T,T.ReadableState=M;n("faa1").EventEmitter;var o=function(t,e){return t.listeners(e).length},a=n("b98b"),s=n("1c35").Buffer,l=e.Uint8Array||function(){};function u(t){return s.from(t)}function c(t){return s.isBuffer(t)||t instanceof l}var h,f=n(4);h=f&&f.debuglog?f.debuglog("stream"):function(){};var d,p,g,v=n("e937"),y=n("f482"),m=n("86c6"),b=m.getHighWaterMark,_=n("9bfc").codes,x=_.ERR_INVALID_ARG_TYPE,w=_.ERR_STREAM_PUSH_AFTER_EOF,S=_.ERR_METHOD_NOT_IMPLEMENTED,O=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n("3fb5")(T,a);var C=y.errorOrDestroy,k=["error","close","destroy","pause","resume"];function A(t,e,n){if("function"===typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}function M(t,e,r){i=i||n("a493"),t=t||{},"boolean"!==typeof r&&(r=e instanceof i),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=b(this,t,"readableHighWaterMark",r),this.buffer=new v,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(d||(d=n("aa22").StringDecoder),this.decoder=new d(t.encoding),this.encoding=t.encoding)}function T(t){if(i=i||n("a493"),!(this instanceof T))return new T(t);var e=this instanceof i;this._readableState=new M(t,this,e),this.readable=!0,t&&("function"===typeof t.read&&(this._read=t.read),"function"===typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function I(t,e,n,r,i){h("readableAddChunk",e);var o,a=t._readableState;if(null===e)a.reading=!1,R(t,a);else if(i||(o=P(a,e)),o)C(t,o);else if(a.objectMode||e&&e.length>0)if("string"===typeof e||a.objectMode||Object.getPrototypeOf(e)===s.prototype||(e=u(e)),r)a.endEmitted?C(t,new O):E(t,a,e,!0);else if(a.ended)C(t,new w);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?E(t,a,e,!1):F(t,a)):E(t,a,e,!1)}else r||(a.reading=!1,F(t,a));return!a.ended&&(a.length=j?t=j:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function D(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=L(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function R(t,e){if(h("onEofChunk"),!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,e.sync?N(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,B(t)))}}function N(t){var e=t._readableState;h("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(h("emitReadable",e.flowing),e.emittedReadable=!0,r.nextTick(B,t))}function B(t){var e=t._readableState;h("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,U(t)}function F(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(z,t,e))}function z(t,e){while(!e.reading&&!e.ended&&(e.length0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function G(t){h("readable nexttick read 0"),t.read(0)}function H(t,e){e.resumeScheduled||(e.resumeScheduled=!0,r.nextTick(W,t,e))}function W(t,e){h("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),U(t),e.flowing&&!e.reading&&t.read(0)}function U(t){var e=t._readableState;h("flow",e.flowing);while(e.flowing&&null!==t.read());}function $(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n);var n}function Y(t){var e=t._readableState;h("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,r.nextTick(X,e,t))}function X(t,e){if(h("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}function K(t,e){for(var n=0,r=t.length;n=e.highWaterMark:e.length>0)||e.ended))return h("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?Y(this):N(this),null;if(t=D(t,e),0===t&&e.ended)return 0===e.length&&Y(this),null;var r,i=e.needReadable;return h("need readable",i),(0===e.length||e.length-t0?$(t,e):null,null===r?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&Y(this)),null!==r&&this.emit("data",r),r},T.prototype._read=function(t){C(this,new S("_read()"))},T.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,h("pipe count=%d opts=%j",i.pipesCount,e);var a=(!e||!1!==e.end)&&t!==r.stdout&&t!==r.stderr,s=a?u:m;function l(t,e){h("onunpipe"),t===n&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,d())}function u(){h("onend"),t.end()}i.endEmitted?r.nextTick(s):n.once("end",s),t.on("unpipe",l);var c=V(n);t.on("drain",c);var f=!1;function d(){h("cleanup"),t.removeListener("close",v),t.removeListener("finish",y),t.removeListener("drain",c),t.removeListener("error",g),t.removeListener("unpipe",l),n.removeListener("end",u),n.removeListener("end",m),n.removeListener("data",p),f=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||c()}function p(e){h("ondata");var r=t.write(e);h("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==K(i.pipes,t))&&!f&&(h("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function g(e){h("onerror",e),m(),t.removeListener("error",g),0===o(t,"error")&&C(t,e)}function v(){t.removeListener("finish",y),m()}function y(){h("onfinish"),t.removeListener("close",v),m()}function m(){h("unpipe"),n.unpipe(t)}return n.on("data",p),A(t,"error",g),t.once("close",v),t.once("finish",y),t.emit("pipe",n),i.flowing||(h("pipe resume"),n.resume()),t},T.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o0,!1!==i.flowing&&this.resume()):"readable"===t&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,h("on readable",i.length,i.reading),i.length?N(this):i.reading||r.nextTick(G,this))),n},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(t,e){var n=a.prototype.removeListener.call(this,t,e);return"readable"===t&&r.nextTick(q,this),n},T.prototype.removeAllListeners=function(t){var e=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||r.nextTick(q,this),e},T.prototype.resume=function(){var t=this._readableState;return t.flowing||(h("resume"),t.flowing=!t.readableListening,H(this,t)),t.paused=!1,this},T.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},T.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var i in t.on("end",(function(){if(h("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){if(h("wrapped data"),n.decoder&&(i=n.decoder.write(i)),(!n.objectMode||null!==i&&void 0!==i)&&(n.objectMode||i&&i.length)){var o=e.push(i);o||(r=!0,t.pause())}})),t)void 0===this[i]&&"function"===typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;ob)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")}))},1098:function(t,e,n){"use strict";e.__esModule=!0;var r=n("17ed"),i=l(r),o=n("f893"),a=l(o),s="function"===typeof a.default&&"symbol"===typeof i.default?function(t){return typeof t}:function(t){return t&&"function"===typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":typeof t};function l(t){return t&&t.__esModule?t:{default:t}}e.default="function"===typeof a.default&&"symbol"===s(i.default)?function(t){return"undefined"===typeof t?"undefined":s(t)}:function(t){return t&&"function"===typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":"undefined"===typeof t?"undefined":s(t)}},"10db":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},1148:function(t,e,n){"use strict";var r=n("5926"),i=n("577e"),o=n("1d80"),a=RangeError;t.exports=function(t){var e=i(o(this)),n="",s=r(t);if(s<0||s==1/0)throw a("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(e+=e))1&s&&(n+=e);return n}},"11b0":function(t,e,n){function r(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("a630"),t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},"11b09":function(t,e,n){},1276:function(t,e,n){"use strict";var r=n("2ba4"),i=n("c65b"),o=n("e330"),a=n("d784"),s=n("825a"),l=n("7234"),u=n("44e7"),c=n("1d80"),h=n("4840"),f=n("8aa5"),d=n("50c4"),p=n("577e"),g=n("dc4a"),v=n("4dae"),y=n("14c3"),m=n("9263"),b=n("9f7f"),_=n("d039"),x=b.UNSUPPORTED_Y,w=4294967295,S=Math.min,O=[].push,C=o(/./.exec),k=o(O),A=o("".slice),M=!_((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));a("split",(function(t,e,n){var o;return o="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var o=p(c(this)),a=void 0===n?w:n>>>0;if(0===a)return[];if(void 0===t)return[o];if(!u(t))return i(e,o,t,a);var s,l,h,f=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),g=0,y=new RegExp(t.source,d+"g");while(s=i(m,y,o)){if(l=y.lastIndex,l>g&&(k(f,A(o,g,s.index)),s.length>1&&s.index=a))break;y.lastIndex===s.index&&y.lastIndex++}return g===o.length?!h&&C(y,"")||k(f,""):k(f,A(o,g)),f.length>a?v(f,0,a):f}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:i(e,this,t,n)}:e,[function(e,n){var r=c(this),a=l(e)?void 0:g(e,t);return a?i(a,e,r,n):i(o,p(r),e,n)},function(t,r){var i=s(this),a=p(t),l=n(o,i,a,r,o!==e);if(l.done)return l.value;var u=h(i,RegExp),c=i.unicode,g=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(x?"g":"y"),v=new u(x?"^(?:"+i.source+")":i,g),m=void 0===r?w:r>>>0;if(0===m)return[];if(0===a.length)return null===y(v,a)?[a]:[];var b=0,_=0,O=[];while(_-1))throw new O(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(M.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(M.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),M.prototype._write=function(t,e,n){n(new m("_write()"))},M.prototype._writev=null,M.prototype.end=function(t,e,n){var r=this._writableState;return"function"===typeof t?(n=t,t=null,e=null):"function"===typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||H(this,r,n),this},Object.defineProperty(M.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(M.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),M.prototype.destroy=d.destroy,M.prototype._undestroy=d.undestroy,M.prototype._destroy=function(t,e){e(t)}}).call(this,n("c8ba"),n("4362"))},"13d2":function(t,e,n){var r=n("d039"),i=n("1626"),o=n("1a2d"),a=n("83ab"),s=n("5e77").CONFIGURABLE,l=n("8925"),u=n("69f3"),c=u.enforce,h=u.get,f=Object.defineProperty,d=a&&!r((function(){return 8!==f((function(){}),"length",{value:8}).length})),p=String(String).split("String"),g=t.exports=function(t,e,n){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!o(t,"name")||s&&t.name!==e)&&(a?f(t,"name",{value:e,configurable:!0}):t.name=e),d&&n&&o(n,"arity")&&t.length!==n.arity&&f(t,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?a&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(i){}var r=c(t);return o(r,"source")||(r.source=p.join("string"==typeof e?e:"")),t};Function.prototype.toString=g((function(){return i(this)&&h(this).source||l(this)}),"toString")},"13d5":function(t,e,n){"use strict";var r=n("23e7"),i=n("d58f").left,o=n("a640"),a=n("2d00"),s=n("605d"),l=o("reduce"),u=!s&&a>79&&a<83;r({target:"Array",proto:!0,forced:!l||u},{reduce:function(t){var e=arguments.length;return i(this,t,e,e>1?arguments[1]:void 0)}})},1468:function(t,e){var n=1e3,r=60*n,i=60*r,o=24*i,a=7*o,s=365.25*o;function l(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var l=parseFloat(e[1]),u=(e[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return l*s;case"weeks":case"week":case"w":return l*a;case"days":case"day":case"d":return l*o;case"hours":case"hour":case"hrs":case"hr":case"h":return l*i;case"minutes":case"minute":case"mins":case"min":case"m":return l*r;case"seconds":case"second":case"secs":case"sec":case"s":return l*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}}}function u(t){var e=Math.abs(t);return e>=o?Math.round(t/o)+"d":e>=i?Math.round(t/i)+"h":e>=r?Math.round(t/r)+"m":e>=n?Math.round(t/n)+"s":t+"ms"}function c(t){var e=Math.abs(t);return e>=o?h(t,e,o,"day"):e>=i?h(t,e,i,"hour"):e>=r?h(t,e,r,"minute"):e>=n?h(t,e,n,"second"):t+" ms"}function h(t,e,n,r){var i=e>=1.5*n;return Math.round(t/n)+" "+r+(i?"s":"")}t.exports=function(t,e){e=e||{};var n=typeof t;if("string"===n&&t.length>0)return l(t);if("number"===n&&isFinite(t))return e.long?c(t):u(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},"14c3":function(t,e,n){var r=n("c65b"),i=n("825a"),o=n("1626"),a=n("c6b6"),s=n("9263"),l=TypeError;t.exports=function(t,e){var n=t.exec;if(o(n)){var u=r(n,t,e);return null!==u&&i(u),u}if("RegExp"===a(t))return r(s,t,e);throw l("RegExp#exec called on incompatible receiver")}},"14d9":function(t,e,n){"use strict";var r=n("23e7"),i=n("7b0b"),o=n("07fa"),a=n("3a34"),s=n("3511"),l=n("d039"),u=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),c=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}();r({target:"Array",proto:!0,arity:1,forced:u||c},{push:function(t){var e=i(this),n=o(e),r=arguments.length;s(n+r);for(var l=0;l1?arguments[1]:void 0)}},"17ed":function(t,e,n){t.exports={default:n("511f"),__esModule:!0}},1836:function(t,e,n){var r=n("6ca1"),i=n("6438").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):i(r(t))}},"18ad":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.doUpdate=d,e.Updater=void 0;var i=r(n("448a")),o=r(n("7037")),a=r(n("970b")),s=function t(e,n){(0,a["default"])(this,t);var r=e.chart,i=e.key,o=e.getGraphConfig;"function"===typeof o?(r[i]||(this.graphs=r[i]=[]),Object.assign(this,e),this.update(n)):console.warn("Updater need function getGraphConfig!")};function l(t,e){var n=t.graphs,r=t.chart.render,i=n.length,o=e.length;if(i>o){var a=n.splice(o);a.forEach((function(t){return t.forEach((function(t){return r.delGraph(t)}))}))}}function u(t,e,n,r){var i=r.getGraphConfig,o=r.chart.render,a=r.beforeChange,s=i(e,r);c(t,s,o),t.forEach((function(t,e){var n=s[e];"function"===typeof a&&a(t,n),f(t,n)}))}function c(t,e,n){var r=t.length,o=e.length;if(o>r){var a=t.slice(-1)[0],s=o-r,l=new Array(s).fill(0).map((function(t){return n.clone(a)}));t.push.apply(t,(0,i["default"])(l))}else if(o0&&void 0!==arguments[0]?arguments[0]:{},e=t.chart,n=t.series,r=t.key,i=t.getGraphConfig,o=t.getStartGraphConfig,a=t.beforeChange,l=t.beforeUpdate,u=t.afterAddGraph;e[r]?e[r].update(n):e[r]=new s({chart:e,key:r,getGraphConfig:i,getStartGraphConfig:o,beforeChange:a,beforeUpdate:l,afterAddGraph:u},n)}e.Updater=s,s.prototype.update=function(t){var e=this,n=this.graphs,r=this.beforeUpdate;if(l(this,t),t.length){var i=(0,o["default"])(r);t.forEach((function(t,o){"function"===i&&r(n,t,o,e);var a=n[o];a?u(a,t,o,e):h(n,t,o,e)}))}}},1917:function(t,e){e.f={}.propertyIsEnumerable},1985:function(t,e,n){(function(t,r){var i;/*! https://mths.be/punycode v1.4.1 by @mathias */(function(o){e&&e.nodeType,t&&t.nodeType;var a="object"==typeof r&&r;a.global!==a&&a.window!==a&&a.self;var s,l=2147483647,u=36,c=1,h=26,f=38,d=700,p=72,g=128,v="-",y=/^xn--/,m=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,_={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=u-c,w=Math.floor,S=String.fromCharCode;function O(t){throw new RangeError(_[t])}function C(t,e){var n=t.length,r=[];while(n--)r[n]=e(t[n]);return r}function k(t,e){var n=t.split("@"),r="";n.length>1&&(r=n[0]+"@",t=n[1]),t=t.replace(b,".");var i=t.split("."),o=C(i,e).join(".");return r+o}function A(t){var e,n,r=[],i=0,o=t.length;while(i=55296&&e<=56319&&i65535&&(t-=65536,e+=S(t>>>10&1023|55296),t=56320|1023&t),e+=S(t),e})).join("")}function T(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:u}function I(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function E(t,e,n){var r=0;for(t=n?w(t/d):t>>1,t+=w(t/e);t>x*h>>1;r+=u)t=w(t/x);return w(r+(x+1)*t/(t+f))}function P(t){var e,n,r,i,o,a,s,f,d,y,m=[],b=t.length,_=0,x=g,S=p;for(n=t.lastIndexOf(v),n<0&&(n=0),r=0;r=128&&O("not-basic"),m.push(t.charCodeAt(r));for(i=n>0?n+1:0;i=b&&O("invalid-input"),f=T(t.charCodeAt(i++)),(f>=u||f>w((l-_)/a))&&O("overflow"),_+=f*a,d=s<=S?c:s>=S+h?h:s-S,fw(l/y)&&O("overflow"),a*=y}e=m.length+1,S=E(_-o,e,0==o),w(_/e)>l-x&&O("overflow"),x+=w(_/e),_%=e,m.splice(_++,0,x)}return M(m)}function j(t){var e,n,r,i,o,a,s,f,d,y,m,b,_,x,C,k=[];for(t=A(t),b=t.length,e=g,n=0,o=p,a=0;a=e&&mw((l-n)/_)&&O("overflow"),n+=(s-e)*_,e=s,a=0;al&&O("overflow"),m==e){for(f=n,d=u;;d+=u){if(y=d<=o?c:d>=o+h?h:d-o,f=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)}}},"1a14":function(t,e,n){var r=n("77e9"),i=n("faf5"),o=n("3397"),a=Object.defineProperty;e.f=n("0bad")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"1a2d":function(t,e,n){var r=n("e330"),i=n("7b0b"),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},"1be4":function(t,e,n){var r=n("d066");t.exports=r("document","documentElement")},"1beb":function(t,e,n){"use strict";(function(e,r){function i(t){var e=this;this.next=null,this.entry=null,this.finish=function(){W(e,t)}}var o;t.exports=M,M.WritableState=A;var a={deprecate:n("b7d1")},s=n("946b"),l=n("1c35").Buffer,u=e.Uint8Array||function(){};function c(t){return l.from(t)}function h(t){return l.isBuffer(t)||t instanceof u}var f,d=n("015d"),p=n("75d2"),g=p.getHighWaterMark,v=n("e142").codes,y=v.ERR_INVALID_ARG_TYPE,m=v.ERR_METHOD_NOT_IMPLEMENTED,b=v.ERR_MULTIPLE_CALLBACK,_=v.ERR_STREAM_CANNOT_PIPE,x=v.ERR_STREAM_DESTROYED,w=v.ERR_STREAM_NULL_VALUES,S=v.ERR_STREAM_WRITE_AFTER_END,O=v.ERR_UNKNOWN_ENCODING,C=d.errorOrDestroy;function k(){}function A(t,e,r){o=o||n("030c"),t=t||{},"boolean"!==typeof r&&(r=e instanceof o),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=g(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===t.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){R(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function M(t){o=o||n("030c");var e=this instanceof o;if(!e&&!f.call(M,this))return new M(t);this._writableState=new A(t,this,e),this.writable=!0,t&&("function"===typeof t.write&&(this._write=t.write),"function"===typeof t.writev&&(this._writev=t.writev),"function"===typeof t.destroy&&(this._destroy=t.destroy),"function"===typeof t.final&&(this._final=t.final)),s.call(this)}function T(t,e){var n=new S;C(t,n),r.nextTick(e,n)}function I(t,e,n,i){var o;return null===n?o=new w:"string"===typeof n||e.objectMode||(o=new y("chunk",["string","Buffer"],n)),!o||(C(t,o),r.nextTick(i,o),!1)}function E(t,e,n){return t.objectMode||!1===t.decodeStrings||"string"!==typeof e||(e=l.from(e,n)),e}function P(t,e,n,r,i,o){if(!n){var a=E(e,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=e.objectMode?1:r.length;e.length+=s;var l=e.length-1))throw new O(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(M.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(M.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),M.prototype._write=function(t,e,n){n(new m("_write()"))},M.prototype._writev=null,M.prototype.end=function(t,e,n){var r=this._writableState;return"function"===typeof t?(n=t,t=null,e=null):"function"===typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||H(this,r,n),this},Object.defineProperty(M.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(M.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),M.prototype.destroy=d.destroy,M.prototype._undestroy=d.undestroy,M.prototype._destroy=function(t,e){e(t)}}).call(this,n("c8ba"),n("4362"))},"1c35":function(t,e,n){"use strict";(function(t){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ var r=n("1fb5"),i=n("9152"),o=n("bf74");function a(){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(e){return!1}}function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(t,e){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function b(t){return+t!=t&&(t=0),u.alloc(+t)}function _(t,e){if(u.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 n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(t).length;default:if(r)return K(t).length;e=(""+e).toLowerCase(),r=!0}}function x(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return N(this,e,n);case"utf8":case"utf-8":return P(this,e,n);case"ascii":return D(this,e,n);case"latin1":case"binary":return R(this,e,n);case"base64":return E(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function w(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function S(t,e,n,r,i){if(0===t.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:O(t,e,n,r,i);if("number"===typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):O(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function O(t,e,n,r,i){var o,a=1,s=t.length,l=e.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var c=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var h=!0,f=0;fi&&(r=i)):r=i;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a239?4:u>223?3:u>191?2:1;if(i+h<=n)switch(h){case 1:u<128&&(c=u);break;case 2:o=t[i+1],128===(192&o)&&(l=(31&u)<<6|63&o,l>127&&(c=l));break;case 3:o=t[i+1],a=t[i+2],128===(192&o)&&128===(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a,l>2047&&(l<55296||l>57343)&&(c=l));break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s,l>65535&&l<1114112&&(c=l))}null===c?(c=65533,h=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=h}return L(r)}e.Buffer=u,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:a(),e.kMaxLength=s(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,n){return c(null,t,e,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,n){return f(null,t,e,n)},u.allocUnsafe=function(t){return d(null,t)},u.allocUnsafeSlow=function(t){return d(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},u.prototype.compare=function(t,e,n,r,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var o=i-r,a=n-e,s=Math.min(o,a),l=this.slice(r,i),c=t.slice(e,n),h=0;hi)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return C(this,t,e,n);case"utf8":case"utf-8":return k(this,t,e,n);case"ascii":return A(this,t,e,n);case"latin1":case"binary":return M(this,t,e,n);case"base64":return T(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var j=4096;function L(t){var e=t.length;if(e<=j)return String.fromCharCode.apply(String,t);var n="",r=0;while(rr)&&(n=r);for(var i="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function z(t,e,n,r,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function V(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i>>8*(r?i:1-i)}function q(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i>>8*(r?i:3-i)&255}function G(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function H(t,e,n,r,o){return o||G(t,e,n,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,n,r,23,4),n+4}function W(t,e,n,r,o){return o||G(t,e,n,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,n,r,52,8),n+8}u.prototype.slice=function(t,e){var n,r=this.length;if(t=~~t,e=void 0===e?r:~~e,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),e0&&(i*=256))r+=this[t+--e]*i;return r},u.prototype.readUInt8=function(t,e){return e||F(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||F(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||F(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||F(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||F(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||F(t,e,this.length);var r=this[t],i=1,o=0;while(++o=i&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||F(t,e,this.length);var r=e,i=1,o=this[t+--r];while(r>0&&(i*=256))o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||F(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||F(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){e||F(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return e||F(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||F(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||F(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||F(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||F(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||F(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;z(this,t,e,n,i,0)}var o=1,a=0;this[e]=255&t;while(++a=0&&(a*=256))this[e+o]=t/a&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):V(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):V(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):q(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):q(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);z(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;this[e]=255&t;while(++o>0)-s&255;return e+n},u.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);z(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;this[e+o]=255&t;while(--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+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):V(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):V(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):q(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):q(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,n){return H(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return H(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return W(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return W(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e=0;--i)t[i+e]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(o=e;o55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Z(t){for(var e=[],n=0;n>8,i=n%256,o.push(i),o.push(r)}return o}function J(t){return r.toByteArray($(t))}function tt(t,e,n,r){for(var i=0;i=e.length||i>=t.length)break;e[i+n]=t[i]}return i}function et(t){return t!==t}}).call(this,n("c8ba"))},"1c59":function(t,e,n){"use strict";var r=n("6d61"),i=n("6566");r("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),i)},"1c7e":function(t,e,n){var r=n("b622"),i=r("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[i]=function(){return this},Array.from(s,(function(){throw 2}))}catch(l){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(l){}return n}},"1cdc":function(t,e,n){var r=n("342f");t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},"1d2b":function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r=51||!r((function(){var e=[],n=e.constructor={};return n[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},"1e4c":function(t,e,n){},"1e4d":function(t,e,n){"use strict";function r(){if(!(this instanceof r))return new r;this.nextId=Math.max(1,Math.floor(65535*Math.random()))}r.prototype.allocate=function(){const t=this.nextId++;return 65536===this.nextId&&(this.nextId=1),t},r.prototype.getLastAllocated=function(){return 1===this.nextId?65535:this.nextId-1},r.prototype.register=function(t){return!0},r.prototype.deallocate=function(t){},r.prototype.clear=function(){},t.exports=r},"1f55":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.gauge=g;var i=r(n("9523")),o=r(n("7037")),a=r(n("278c")),s=r(n("448a")),l=n("18ad"),u=n("cc6d"),c=n("5557"),h=n("becb"),f=n("a870");function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},n=e.series;n||(n=[]);var r=(0,h.initNeedSeries)(n,u.gaugeConfig,"gauge");r=v(r,t),r=y(r,t),r=m(r,t),r=b(r,t),r=_(r,t),r=x(r,t),r=w(r,t),r=S(r,t),r=O(r,t),r=C(r,t),(0,l.doUpdate)({chart:t,series:r,key:"gaugeAxisTick",getGraphConfig:A}),(0,l.doUpdate)({chart:t,series:r,key:"gaugeAxisLabel",getGraphConfig:I}),(0,l.doUpdate)({chart:t,series:r,key:"gaugeBackgroundArc",getGraphConfig:j,getStartGraphConfig:R}),(0,l.doUpdate)({chart:t,series:r,key:"gaugeArc",getGraphConfig:N,getStartGraphConfig:z,beforeChange:V}),(0,l.doUpdate)({chart:t,series:r,key:"gaugePointer",getGraphConfig:q,getStartGraphConfig:U}),(0,l.doUpdate)({chart:t,series:r,key:"gaugeDetails",getGraphConfig:$})}function v(t,e){var n=e.render.area;return t.forEach((function(t){var e=t.center;e=e.map((function(t,e){return"number"===typeof t?t:parseInt(t)/100*n[e]})),t.center=e})),t}function y(t,e){var n=e.render.area,r=Math.min.apply(Math,(0,s["default"])(n))/2;return t.forEach((function(t){var e=t.radius;"number"!==typeof e&&(e=parseInt(e)/100*r),t.radius=e})),t}function m(t,e){var n=e.render.area,r=Math.min.apply(Math,(0,s["default"])(n))/2;return t.forEach((function(t){var e=t.radius,n=t.data,i=t.arcLineWidth;n.forEach((function(t){var n=t.radius,o=t.lineWidth;n||(n=e),"number"!==typeof n&&(n=parseInt(n)/100*r),t.radius=n,o||(o=i),t.lineWidth=o}))})),t}function b(t,e){return t.forEach((function(t){var e=t.startAngle,n=t.endAngle,r=t.data,i=t.min,o=t.max,a=n-e,s=o-i;r.forEach((function(t){var n=t.value,r=Math.abs((n-i)/s*a);t.startAngle=e,t.endAngle=e+r}))})),t}function _(t,e){return t.forEach((function(t){var e=t.data;e.forEach((function(t){var e=t.color,n=t.gradient;n&&n.length||(n=e),n instanceof Array||(n=[n]),t.gradient=n}))})),t}function x(t,e){return t.forEach((function(t){var e=t.startAngle,n=t.endAngle,r=t.splitNum,i=t.center,o=t.radius,a=t.arcLineWidth,l=t.axisTick,u=l.tickLength,h=l.style.lineWidth,f=n-e,d=o-a/2,p=d-u,g=f/(r-1),v=2*Math.PI*o*f/(2*Math.PI),y=Math.ceil(h/2)/v*f;t.tickAngles=[],t.tickInnerRadius=[],t.tickPosition=new Array(r).fill(0).map((function(n,o){var a=e+g*o;return 0===o&&(a+=y),o===r-1&&(a-=y),t.tickAngles[o]=a,t.tickInnerRadius[o]=p,[c.getCircleRadianPoint.apply(void 0,(0,s["default"])(i).concat([d,a])),c.getCircleRadianPoint.apply(void 0,(0,s["default"])(i).concat([p,a]))]}))})),t}function w(t,e){return t.forEach((function(t){var e=t.center,n=t.tickInnerRadius,r=t.tickAngles,i=t.axisLabel.labelGap,o=r.map((function(t,o){return c.getCircleRadianPoint.apply(void 0,(0,s["default"])(e).concat([n[o]-i,r[o]]))})),l=o.map((function(t){var n=(0,a["default"])(t,2),r=n[0],i=n[1];return{textAlign:r>e[0]?"right":"left",textBaseline:i>e[1]?"bottom":"top"}}));t.labelPosition=o,t.labelAlign=l})),t}function S(t,e){return t.forEach((function(t){var e=t.axisLabel,n=t.min,r=t.max,i=t.splitNum,a=e.data,s=e.formatter,l=(r-n)/(i-1),u=new Array(i).fill(0).map((function(t,e){return parseInt(n+l*e)})),c=(0,o["default"])(s);a=(0,h.deepMerge)(u,a).map((function(t,e){var n=t;return"string"===c&&(n=s.replace("{value}",t)),"function"===c&&(n=s({value:t,index:e})),n})),e.data=a})),t}function O(t,e){return t.forEach((function(t){var e=t.data,n=t.details,r=t.center,i=n.position,o=n.offset,a=e.map((function(t){var e=t.startAngle,n=t.endAngle,a=t.radius,l=null;return"center"===i?l=r:"start"===i?l=c.getCircleRadianPoint.apply(void 0,(0,s["default"])(r).concat([a,e])):"end"===i&&(l=c.getCircleRadianPoint.apply(void 0,(0,s["default"])(r).concat([a,n]))),k(l,o)}));t.detailsPosition=a})),t}function C(t,e){return t.forEach((function(t){var e=t.data,n=t.details,r=n.formatter,i=(0,o["default"])(r),a=e.map((function(t){var e=t.value;return"string"===i&&(e=r.replace("{value}","{nt}"),e=e.replace("{name}",t.name)),"function"===i&&(e=r(t)),e.toString()}));t.detailsContent=a})),t}function k(t,e){var n=(0,a["default"])(t,2),r=n[0],i=n[1],o=(0,a["default"])(e,2),s=o[0],l=o[1];return[r+s,i+l]}function A(t){var e=t.tickPosition,n=t.animationCurve,r=t.animationFrame,i=t.rLevel;return e.map((function(e,o){return{name:"polyline",index:i,visible:t.axisTick.show,animationCurve:n,animationFrame:r,shape:M(t,o),style:T(t,o)}}))}function M(t,e){var n=t.tickPosition;return{points:n[e]}}function T(t,e){var n=t.axisTick.style;return n}function I(t){var e=t.labelPosition,n=t.animationCurve,r=t.animationFrame,i=t.rLevel;return e.map((function(e,o){return{name:"text",index:i,visible:t.axisLabel.show,animationCurve:n,animationFrame:r,shape:E(t,o),style:P(t,o)}}))}function E(t,e){var n=t.labelPosition,r=t.axisLabel.data;return{content:r[e].toString(),position:n[e]}}function P(t,e){var n=t.labelAlign,r=t.axisLabel,i=r.style;return(0,h.deepMerge)(p({},n[e]),i)}function j(t){var e=t.animationCurve,n=t.animationFrame,r=t.rLevel;return[{name:"arc",index:r,visible:t.backgroundArc.show,animationCurve:e,animationFrame:n,shape:L(t),style:D(t)}]}function L(t){var e=t.startAngle,n=t.endAngle,r=t.center,i=t.radius;return{rx:r[0],ry:r[1],r:i,startAngle:e,endAngle:n}}function D(t){var e=t.backgroundArc,n=t.arcLineWidth,r=e.style;return(0,h.deepMerge)({lineWidth:n},r)}function R(t){var e=j(t)[0],n=p({},e.shape);return n.endAngle=e.shape.startAngle,e.shape=n,[e]}function N(t){var e=t.data,n=t.animationCurve,r=t.animationFrame,i=t.rLevel;return e.map((function(e,o){return{name:"agArc",index:i,animationCurve:n,animationFrame:r,shape:B(t,o),style:F(t,o)}}))}function B(t,e){var n=t.data,r=t.center,i=t.endAngle,o=n[e],a=o.radius,s=o.startAngle,l=o.endAngle,u=o.localGradient;return u&&(i=l),{rx:r[0],ry:r[1],r:a,startAngle:s,endAngle:l,gradientEndAngle:i}}function F(t,e){var n=t.data,r=t.dataItemStyle,i=n[e],o=i.lineWidth,a=i.gradient;return a=a.map((function(t){return(0,f.getRgbaValue)(t)})),(0,h.deepMerge)({lineWidth:o,gradient:a},r)}function z(t){var e=N(t);return e.map((function(t){var e=p({},t.shape);e.endAngle=t.shape.startAngle,t.shape=e})),e}function V(t,e){var n=t.style.gradient,r=n.length,i=e.style.gradient.length;if(r>i)n.splice(i);else{var o=n.slice(-1)[0];n.push.apply(n,(0,s["default"])(new Array(i-r).fill(0).map((function(t){return(0,s["default"])(o)}))))}}function q(t){var e=t.animationCurve,n=t.animationFrame,r=t.center,i=t.rLevel;return[{name:"polyline",index:i,visible:t.pointer.show,animationCurve:e,animationFrame:n,shape:G(t),style:H(t),setGraphCenter:function(t,e){e.style.graphCenter=r}}]}function G(t){var e=t.center;return{points:W(e),close:!0}}function H(t){var e=t.startAngle,n=t.endAngle,r=t.min,i=t.max,o=t.data,a=t.pointer,s=t.center,l=a.valueIndex,u=a.style,c=o[l]?o[l].value:0,f=(c-r)/(i-r)*(n-e)+e+Math.PI/2;return(0,h.deepMerge)({rotate:(0,h.radianToAngle)(f),scale:[1,1],graphCenter:s},u)}function W(t){var e=(0,a["default"])(t,2),n=e[0],r=e[1],i=[n,r-40],o=[n+5,r],s=[n,r+10],l=[n-5,r];return[i,o,s,l]}function U(t){var e=t.startAngle,n=q(t)[0];return n.style.rotate=(0,h.radianToAngle)(e+Math.PI/2),[n]}function $(t){var e=t.detailsPosition,n=t.animationCurve,r=t.animationFrame,i=t.rLevel,o=t.details.show;return e.map((function(e,a){return{name:"numberText",index:i,visible:o,animationCurve:n,animationFrame:r,shape:Y(t,a),style:X(t,a)}}))}function Y(t,e){var n=t.detailsPosition,r=t.detailsContent,i=t.data,o=t.details,a=n[e],s=r[e],l=i[e].value,u=o.valueToFixed;return{number:[l],content:s,position:a,toFixed:u}}function X(t,e){var n=t.details,r=t.data,i=n.style,o=r[e].color;return(0,h.deepMerge)({fill:o},i)}},"1f68":function(t,e,n){"use strict";var r=n("83ab"),i=n("edd0"),o=n("861d"),a=n("7b0b"),s=n("1d80"),l=Object.getPrototypeOf,u=Object.setPrototypeOf,c=Object.prototype,h="__proto__";if(r&&l&&u&&!(h in c))try{i(c,h,{configurable:!0,get:function(){return l(a(this))},set:function(t){var e=s(this);(o(t)||null===t)&&o(e)&&u(e,t)}})}catch(f){}},"1fad":function(t,e,n){const r=n("51e9"),i=n("faa1"),o=n("a7c9"),a=n("b289"),s=n("34eb")("mqtt-packet:parser");class l extends i{constructor(){super(),this.parser=this.constructor.parser}static parser(t){return this instanceof l?(this.settings=t||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):(new l).parser(t)}_resetState(){s("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new o,this.error=null,this._list=r(),this._stateCounter=0}parse(t){this.error&&this._resetState(),this._list.append(t),s("parse: current state: %s",this._states[this._stateCounter]);while((-1!==this.packet.length||this._list.length>0)&&this[this._states[this._stateCounter]]()&&!this.error)this._stateCounter++,s("parse: state complete. _stateCounter is now: %d",this._stateCounter),s("parse: packet.length: %d, buffer list length: %d",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return s("parse: exited while loop. packet: %d, buffer list length: %d",this.packet.length,this._list.length),this._list.length}_parseHeader(){const t=this._list.readUInt8(0);return this.packet.cmd=a.types[t>>a.CMD_SHIFT],this.packet.retain=0!==(t&a.RETAIN_MASK),this.packet.qos=t>>a.QOS_SHIFT&a.QOS_MASK,this.packet.dup=0!==(t&a.DUP_MASK),s("_parseHeader: packet: %o",this.packet),this._list.consume(1),!0}_parseLength(){const t=this._parseVarByteNum(!0);return t&&(this.packet.length=t.value,this._list.consume(t.bytes)),s("_parseLength %d",t.value),!!t}_parsePayload(){s("_parsePayload: payload %O",this._list);let t=!1;if(0===this.packet.length||this._list.length>=this.packet.length){switch(this._pos=0,this.packet.cmd){case"connect":this._parseConnect();break;case"connack":this._parseConnack();break;case"publish":this._parsePublish();break;case"puback":case"pubrec":case"pubrel":case"pubcomp":this._parseConfirmation();break;case"subscribe":this._parseSubscribe();break;case"suback":this._parseSuback();break;case"unsubscribe":this._parseUnsubscribe();break;case"unsuback":this._parseUnsuback();break;case"pingreq":case"pingresp":break;case"disconnect":this._parseDisconnect();break;case"auth":this._parseAuth();break;default:this._emitError(new Error("Not supported"))}t=!0}return s("_parsePayload complete result: %s",t),t}_parseConnect(){let t,e,n,r;s("_parseConnect");const i={},o=this.packet,l=this._parseString();if(null===l)return this._emitError(new Error("Cannot parse protocolId"));if("MQTT"!==l&&"MQIsdp"!==l)return this._emitError(new Error("Invalid protocolId"));if(o.protocolId=l,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(o.protocolVersion=this._list.readUInt8(this._pos),o.protocolVersion>=128&&(o.bridgeMode=!0,o.protocolVersion=o.protocolVersion-128),3!==o.protocolVersion&&4!==o.protocolVersion&&5!==o.protocolVersion)return this._emitError(new Error("Invalid protocol version"));if(this._pos++,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(i.username=this._list.readUInt8(this._pos)&a.USERNAME_MASK,i.password=this._list.readUInt8(this._pos)&a.PASSWORD_MASK,i.will=this._list.readUInt8(this._pos)&a.WILL_FLAG_MASK,i.will&&(o.will={},o.will.retain=0!==(this._list.readUInt8(this._pos)&a.WILL_RETAIN_MASK),o.will.qos=(this._list.readUInt8(this._pos)&a.WILL_QOS_MASK)>>a.WILL_QOS_SHIFT),o.clean=0!==(this._list.readUInt8(this._pos)&a.CLEAN_SESSION_MASK),this._pos++,o.keepalive=this._parseNum(),-1===o.keepalive)return this._emitError(new Error("Packet too short"));if(5===o.protocolVersion){const t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(o.properties=t)}const u=this._parseString();if(null===u)return this._emitError(new Error("Packet too short"));if(o.clientId=u,s("_parseConnect: packet.clientId: %s",o.clientId),i.will){if(5===o.protocolVersion){const t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(o.will.properties=t)}if(t=this._parseString(),null===t)return this._emitError(new Error("Cannot parse will topic"));if(o.will.topic=t,s("_parseConnect: packet.will.topic: %s",o.will.topic),e=this._parseBuffer(),null===e)return this._emitError(new Error("Cannot parse will payload"));o.will.payload=e,s("_parseConnect: packet.will.paylaod: %s",o.will.payload)}if(i.username){if(r=this._parseString(),null===r)return this._emitError(new Error("Cannot parse username"));o.username=r,s("_parseConnect: packet.username: %s",o.username)}if(i.password){if(n=this._parseBuffer(),null===n)return this._emitError(new Error("Cannot parse password"));o.password=n}return this.settings=o,s("_parseConnect: complete"),o}_parseConnack(){s("_parseConnack");const t=this.packet;if(this._list.length<1)return null;if(t.sessionPresent=!!(this._list.readUInt8(this._pos++)&a.SESSIONPRESENT_MASK),5===this.settings.protocolVersion)this._list.length>=2?t.reasonCode=this._list.readUInt8(this._pos++):t.reasonCode=0;else{if(this._list.length<2)return null;t.returnCode=this._list.readUInt8(this._pos++)}if(-1===t.returnCode||-1===t.reasonCode)return this._emitError(new Error("Cannot parse return code"));if(5===this.settings.protocolVersion){const e=this._parseProperties();Object.getOwnPropertyNames(e).length&&(t.properties=e)}s("_parseConnack: complete")}_parsePublish(){s("_parsePublish");const t=this.packet;if(t.topic=this._parseString(),null===t.topic)return this._emitError(new Error("Cannot parse topic"));if(!(t.qos>0)||this._parseMessageId()){if(5===this.settings.protocolVersion){const e=this._parseProperties();Object.getOwnPropertyNames(e).length&&(t.properties=e)}t.payload=this._list.slice(this._pos,t.length),s("_parsePublish: payload from buffer list: %o",t.payload)}}_parseSubscribe(){s("_parseSubscribe");const t=this.packet;let e,n,r,i,o,l,u;if(1!==t.qos)return this._emitError(new Error("Wrong subscribe header"));if(t.subscriptions=[],this._parseMessageId()){if(5===this.settings.protocolVersion){const e=this._parseProperties();Object.getOwnPropertyNames(e).length&&(t.properties=e)}while(this._pos=t.length)return this._emitError(new Error("Malformed Subscribe Payload"));n=this._parseByte(),r=n&a.SUBSCRIBE_OPTIONS_QOS_MASK,l=0!==(n>>a.SUBSCRIBE_OPTIONS_NL_SHIFT&a.SUBSCRIBE_OPTIONS_NL_MASK),o=0!==(n>>a.SUBSCRIBE_OPTIONS_RAP_SHIFT&a.SUBSCRIBE_OPTIONS_RAP_MASK),i=n>>a.SUBSCRIBE_OPTIONS_RH_SHIFT&a.SUBSCRIBE_OPTIONS_RH_MASK,u={topic:e,qos:r},5===this.settings.protocolVersion?(u.nl=l,u.rap=o,u.rh=i):this.settings.bridgeMode&&(u.rh=0,u.rap=!0,u.nl=!0),s("_parseSubscribe: push subscription `%s` to subscription",u),t.subscriptions.push(u)}}}_parseSuback(){s("_parseSuback");const t=this.packet;if(this.packet.granted=[],this._parseMessageId()){if(5===this.settings.protocolVersion){const e=this._parseProperties();Object.getOwnPropertyNames(e).length&&(t.properties=e)}while(this._pos2?(t.reasonCode=this._parseByte(),s("_parseConfirmation: packet.reasonCode `%d`",t.reasonCode)):t.reasonCode=0,t.length>3)){const e=this._parseProperties();Object.getOwnPropertyNames(e).length&&(t.properties=e)}return!0}_parseDisconnect(){const t=this.packet;if(s("_parseDisconnect"),5===this.settings.protocolVersion){this._list.length>0?t.reasonCode=this._parseByte():t.reasonCode=0;const e=this._parseProperties();Object.getOwnPropertyNames(e).length&&(t.properties=e)}return s("_parseDisconnect result: true"),!0}_parseAuth(){s("_parseAuth");const t=this.packet;if(5!==this.settings.protocolVersion)return this._emitError(new Error("Not supported auth packet for this version MQTT"));t.reasonCode=this._parseByte();const e=this._parseProperties();return Object.getOwnPropertyNames(e).length&&(t.properties=e),s("_parseAuth: result: true"),!0}_parseMessageId(){const t=this.packet;return t.messageId=this._parseNum(),null===t.messageId?(this._emitError(new Error("Cannot parse messageId")),!1):(s("_parseMessageId: packet.messageId %d",t.messageId),!0)}_parseString(t){const e=this._parseNum(),n=e+this._pos;if(-1===e||n>this._list.length||n>this.packet.length)return null;const r=this._list.toString("utf8",this._pos,n);return this._pos+=e,s("_parseString: result: %s",r),r}_parseStringPair(){return s("_parseStringPair"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){const t=this._parseNum(),e=t+this._pos;if(-1===t||e>this._list.length||e>this.packet.length)return null;const n=this._list.slice(this._pos,e);return this._pos+=t,s("_parseBuffer: result: %o",n),n}_parseNum(){if(this._list.length-this._pos<2)return-1;const t=this._list.readUInt16BE(this._pos);return this._pos+=2,s("_parseNum: result: %s",t),t}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;const t=this._list.readUInt32BE(this._pos);return this._pos+=4,s("_parse4ByteNum: result: %s",t),t}_parseVarByteNum(t){s("_parseVarByteNum");const e=4;let n,r=0,i=1,o=0,l=!1;const u=this._pos?this._pos:0;while(r=r&&this._emitError(new Error("Invalid variable byte integer")),u&&(this._pos+=r),l=!!l&&(t?{bytes:r,value:o}:o),s("_parseVarByteNum: result: %o",l),l}_parseByte(){let t;return this._pos0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function c(t){var e=u(t),n=e[0],r=e[1];return 3*(n+r)/4-r}function h(t,e,n){return 3*(e+n)/4-n}function f(t){var e,n,r=u(t),a=r[0],s=r[1],l=new o(h(t,a,s)),c=0,f=s>0?a-4:a;for(n=0;n>16&255,l[c++]=e>>8&255,l[c++]=255&e;return 2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,l[c++]=255&e),1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,l[c++]=e>>8&255,l[c++]=255&e),l}function d(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function p(t,e,n){for(var r,i=[],o=e;ol?l:s+a));return 1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},"204e":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.bar=p;var i=r(n("7037")),o=r(n("9523")),a=r(n("278c")),s=r(n("448a")),l=n("18ad"),u=n("9d85"),c=n("5557"),h=n("becb");function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},n=e.xAxis,r=e.yAxis,i=e.series,o=[];n&&r&&i&&(o=(0,h.initNeedSeries)(i,u.barConfig,"bar"),o=g(o,t),o=v(o,t),o=k(o,t)),(0,l.doUpdate)({chart:t,series:o.slice(-1),key:"backgroundBar",getGraphConfig:j}),o.reverse(),(0,l.doUpdate)({chart:t,series:o,key:"bar",getGraphConfig:N,getStartGraphConfig:W,beforeUpdate:X}),(0,l.doUpdate)({chart:t,series:o,key:"barLabel",getGraphConfig:K})}function g(t,e){var n=e.axisData;return t.forEach((function(t){var e=t.xAxisIndex,r=t.yAxisIndex;"number"!==typeof e&&(e=0),"number"!==typeof r&&(r=0);var i=n.find((function(t){var n=t.axis,r=t.index;return"".concat(n).concat(r)==="x".concat(e)})),o=n.find((function(t){var e=t.axis,n=t.index;return"".concat(e).concat(n)==="y".concat(r)})),a=[i,o],s=a.findIndex((function(t){var e=t.data;return"value"===e}));t.valueAxis=a[s],t.labelAxis=a[1-s]})),t}function v(t,e){var n=m(t);return n.forEach((function(t){y(t),_(t),x(t,e),w(t),C(t)})),t}function y(t){var e=b(t);e=e.map((function(t){return{stack:t,index:-1}}));var n=0;t.forEach((function(t){var r=t.stack;if(r){var i=e.find((function(t){var e=t.stack;return e===r}));-1===i.index&&(i.index=n,n++),t.barIndex=i.index}else t.barIndex=n,n++}))}function m(t){var e=t.map((function(t){var e=t.labelAxis,n=e.axis,r=e.index;return n+r}));return e=(0,s["default"])(new Set(e)),e.map((function(e){return t.filter((function(t){var n=t.labelAxis,r=n.axis,i=n.index;return r+i===e}))}))}function b(t){var e=[];return t.forEach((function(t){var n=t.stack;n&&e.push(n)})),(0,s["default"])(new Set(e))}function _(t){var e=(0,s["default"])(new Set(t.map((function(t){var e=t.barIndex;return e})))).length;t.forEach((function(t){return t.barNum=e}))}function x(t){var e=t.slice(-1)[0],n=e.barCategoryGap,r=e.labelAxis.tickGap,i=0;i="number"===typeof n?n:(1-parseInt(n)/100)*r,t.forEach((function(t){return t.barCategoryWidth=i}))}function w(t){var e=t.slice(-1)[0],n=e.barCategoryWidth,r=e.barWidth,i=e.barGap,o=e.barNum,s=[];"number"===typeof r||"auto"!==r?s=S(n,r,i,o):"auto"===r&&(s=O(n,r,i,o));var l=s,u=(0,a["default"])(l,2),c=u[0],h=u[1];t.forEach((function(t){t.barWidth=c,t.barGap=h}))}function S(t,e,n){var r=0,i=0;return r="number"===typeof e?e:parseInt(e)/100*t,i="number"===typeof n?n:parseInt(n)/100*r,[r,i]}function O(t,e,n,r){var i=0,o=0,a=t/r;if("number"===typeof n)o=n,i=a-o;else{var s=10+parseInt(n)/10;0===s?(i=2*a,o=-i):(i=a/s*10,o=a-i)}return[i,o]}function C(t){var e=t.slice(-1)[0],n=e.barGap,r=e.barWidth,i=e.barNum,o=(n+r)*i-n;t.forEach((function(t){return t.barAllWidthAndGap=o}))}function k(t,e){return t=M(t),t=A(t),t=I(t),t=E(t),t}function A(t){return t.map((function(t){var e=t.labelAxis,n=t.barAllWidthAndGap,r=t.barGap,i=t.barWidth,o=t.barIndex,a=e.tickGap,s=e.tickPosition,l=e.axis,u="x"===l?0:1,c=s.map((function(t,e){var l=s[e][u]-a/2,c=l+(a-n)/2;return c+(o+.5)*i+o*r}));return d(d({},t),{},{barLabelAxisPos:c})}))}function M(t){return t.map((function(e){var n=(0,h.mergeSameStackData)(e,t);n=T(e,n);var r=e.valueAxis,i=r.axis,o=r.minValue,a=r.maxValue,s=r.linePosition,l=P(o,a,o<0?0:o,s,i),u=n.map((function(t){return P(o,a,t,s,i)})),c=u.map((function(t){return[l,t]}));return d(d({},e),{},{barValueAxisPos:c})}))}function T(t,e){var n=t.data;return e.map((function(t,e){return"number"===typeof n[e]?t:null})).filter((function(t){return null!==t}))}function I(t){return t.map((function(t){var e=t.barLabelAxisPos,n=t.data;return n.forEach((function(t,n){"number"!==typeof t&&(e[n]=null)})),d(d({},t),{},{barLabelAxisPos:e.filter((function(t){return null!==t}))})}))}function E(t){return t.forEach((function(t){var e=t.data,n=t.barLabelAxisPos,r=t.barValueAxisPos,i=e.filter((function(t){return"number"===typeof t})).length,o=n.length;o>i&&(n.splice(i),r.splice(i))})),t}function P(t,e,n,r,i){if("number"!==typeof n)return null;var o=e-t,a="x"===i?0:1,s=r[1][a]-r[0][a],l=(n-t)/o;0===o&&(l=0);var u=l*s;return u+r[0][a]}function j(t){var e=t.animationCurve,n=t.animationFrame,r=t.rLevel,i=L(t),o=R(t);return i.map((function(i){return{name:"rect",index:r,visible:t.backgroundBar.show,animationCurve:e,animationFrame:n,shape:i,style:o}}))}function L(t){var e=t.labelAxis,n=t.valueAxis,r=e.tickPosition,i=n.axis,o=n.linePosition,a=D(t),s=a/2,l="x"===i?0:1,u=r.map((function(t){return t[1-l]})),c=[o[0][l],o[1][l]],h=c[0],f=c[1];return u.map((function(t){return"x"===i?{x:h,y:t-s,w:f-h,h:a}:{x:t-s,y:f,w:a,h:h-f}}))}function D(t){var e=t.barAllWidthAndGap,n=t.barCategoryWidth,r=t.backgroundBar,i=r.width;return"number"===typeof i?i:"auto"===i?e:parseInt(i)/100*n}function R(t){return t.backgroundBar.style}function N(t){var e=t.barLabelAxisPos,n=t.animationCurve,r=t.animationFrame,i=t.rLevel,o=B(t);return e.map((function(e,a){return{name:o,index:i,animationCurve:n,animationFrame:r,shape:F(t,a),style:G(t,a)}}))}function B(t){var e=t.shapeType;return"leftEchelon"===e||"rightEchelon"===e?"polyline":"rect"}function F(t,e){var n=t.shapeType;return"leftEchelon"===n?z(t,e):"rightEchelon"===n?V(t,e):q(t,e)}function z(t,e){var n=t.barValueAxisPos,r=t.barLabelAxisPos,i=t.barWidth,o=t.echelonOffset,s=(0,a["default"])(n[e],2),l=s[0],u=s[1],c=r[e],h=i/2,f=t.valueAxis.axis,d=[];return"x"===f?(d[0]=[u,c-h],d[1]=[u,c+h],d[2]=[l,c+h],d[3]=[l+o,c-h],u-l>>0,1)},emit:function(e,n){(t[e]||[]).map((function(t){t(n)})),(t["*"]||[]).map((function(t){t(e,n)}))}}}var i=t((function(t,e){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};e.default=n,t.exports=e.default})),o=function(t){return Object.keys(t).map((function(e){var n=t[e].toString().replace(/"/g,""");return e+'="'+n+'"'})).join(" ")},a=i.svg,s=i.xlink,l={};l[a.name]=a.uri,l[s.name]=s.uri;var u,c=function(t,e){void 0===t&&(t="");var r=n(l,e||{}),i=o(r);return""+t+""},h=i.svg,f=i.xlink,d={attrs:(u={style:["position: absolute","width: 0","height: 0"].join("; "),"aria-hidden":"true"},u[h.name]=h.uri,u[f.name]=f.uri,u)},p=function(t){this.config=n(d,t||{}),this.symbols=[]};p.prototype.add=function(t){var e=this,n=e.symbols,r=this.find(t.id);return r?(n[n.indexOf(r)]=t,!1):(n.push(t),!0)},p.prototype.remove=function(t){var e=this,n=e.symbols,r=this.find(t);return!!r&&(n.splice(n.indexOf(r),1),r.destroy(),!0)},p.prototype.find=function(t){return this.symbols.filter((function(e){return e.id===t}))[0]||null},p.prototype.has=function(t){return null!==this.find(t)},p.prototype.stringify=function(){var t=this.config,e=t.attrs,n=this.symbols.map((function(t){return t.stringify()})).join("");return c(n,e)},p.prototype.toString=function(){return this.stringify()},p.prototype.destroy=function(){this.symbols.forEach((function(t){return t.destroy()}))};var g=function(t){var e=t.id,n=t.viewBox,r=t.content;this.id=e,this.viewBox=n,this.content=r};g.prototype.stringify=function(){return this.content},g.prototype.toString=function(){return this.stringify()},g.prototype.destroy=function(){var t=this;["id","viewBox","content"].forEach((function(e){return delete t[e]}))};var v=function(t){var e=!!document.importNode,n=(new DOMParser).parseFromString(t,"image/svg+xml").documentElement;return e?document.importNode(n,!0):n},y=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={isMounted:{}};return n.isMounted.get=function(){return!!this.node},e.createFromExistingNode=function(t){return new e({id:t.getAttribute("id"),viewBox:t.getAttribute("viewBox"),content:t.outerHTML})},e.prototype.destroy=function(){this.isMounted&&this.unmount(),t.prototype.destroy.call(this)},e.prototype.mount=function(t){if(this.isMounted)return this.node;var e="string"===typeof t?document.querySelector(t):t,n=this.render();return this.node=n,e.appendChild(n),n},e.prototype.render=function(){var t=this.stringify();return v(c(t)).childNodes[0]},e.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(e.prototype,n),e}(g),m={autoConfigure:!0,mountTo:"body",syncUrlsWithBaseTag:!1,listenLocationChangeEvent:!0,locationChangeEvent:"locationChange",locationChangeAngularEmitter:!1,usagesToUpdate:"use[*|href]",moveGradientsOutsideSymbol:!1},b=function(t){return Array.prototype.slice.call(t,0)},_={isChrome:function(){return/chrome/i.test(navigator.userAgent)},isFirefox:function(){return/firefox/i.test(navigator.userAgent)},isIE:function(){return/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)},isEdge:function(){return/edge/i.test(navigator.userAgent)}},x=function(t,e){var n=document.createEvent("CustomEvent");n.initCustomEvent(t,!1,!1,e),window.dispatchEvent(n)},w=function(t){var e=[];return b(t.querySelectorAll("style")).forEach((function(t){t.textContent+="",e.push(t)})),e},S=function(t){return(t||window.location.href).split("#")[0]},O=function(t){angular.module("ng").run(["$rootScope",function(e){e.$on("$locationChangeSuccess",(function(e,n,r){x(t,{oldUrl:r,newUrl:n})}))}])},C="linearGradient, radialGradient, pattern, mask, clipPath",k=function(t,e){return void 0===e&&(e=C),b(t.querySelectorAll("symbol")).forEach((function(t){b(t.querySelectorAll(e)).forEach((function(e){t.parentNode.insertBefore(e,t)}))})),t};function A(t,e){var n=b(t).reduce((function(t,n){if(!n.attributes)return t;var r=b(n.attributes),i=e?r.filter(e):r;return t.concat(i)}),[]);return n}var M=i.xlink.uri,T="xlink:href",I=/[{}|\\\^\[\]`"<>]/g;function E(t){return t.replace(I,(function(t){return"%"+t[0].charCodeAt(0).toString(16).toUpperCase()}))}function P(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function j(t,e,n){return b(t).forEach((function(t){var r=t.getAttribute(T);if(r&&0===r.indexOf(e)){var i=r.replace(e,n);t.setAttributeNS(M,T,i)}})),t}var L,D=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke","style"],R=D.map((function(t){return"["+t+"]"})).join(","),N=function(t,e,n,r){var i=E(n),o=E(r),a=t.querySelectorAll(R),s=A(a,(function(t){var e=t.localName,n=t.value;return-1!==D.indexOf(e)&&-1!==n.indexOf("url("+i)}));s.forEach((function(t){return t.value=t.value.replace(new RegExp(P(i),"g"),o)})),j(e,i,o)},B={MOUNT:"mount",SYMBOL_MOUNT:"symbol_mount"},F=function(t){function e(e){var i=this;void 0===e&&(e={}),t.call(this,n(m,e));var o=r();this._emitter=o,this.node=null;var a=this,s=a.config;if(s.autoConfigure&&this._autoConfigure(e),s.syncUrlsWithBaseTag){var l=document.getElementsByTagName("base")[0].getAttribute("href");o.on(B.MOUNT,(function(){return i.updateUrls("#",l)}))}var u=this._handleLocationChange.bind(this);this._handleLocationChange=u,s.listenLocationChangeEvent&&window.addEventListener(s.locationChangeEvent,u),s.locationChangeAngularEmitter&&O(s.locationChangeEvent),o.on(B.MOUNT,(function(t){s.moveGradientsOutsideSymbol&&k(t)})),o.on(B.SYMBOL_MOUNT,(function(t){s.moveGradientsOutsideSymbol&&k(t.parentNode),(_.isIE()||_.isEdge())&&w(t)}))}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var i={isMounted:{}};return i.isMounted.get=function(){return!!this.node},e.prototype._autoConfigure=function(t){var e=this,n=e.config;"undefined"===typeof t.syncUrlsWithBaseTag&&(n.syncUrlsWithBaseTag="undefined"!==typeof document.getElementsByTagName("base")[0]),"undefined"===typeof t.locationChangeAngularEmitter&&(n.locationChangeAngularEmitter="undefined"!==typeof window.angular),"undefined"===typeof t.moveGradientsOutsideSymbol&&(n.moveGradientsOutsideSymbol=_.isFirefox())},e.prototype._handleLocationChange=function(t){var e=t.detail,n=e.oldUrl,r=e.newUrl;this.updateUrls(n,r)},e.prototype.add=function(e){var n=this,r=t.prototype.add.call(this,e);return this.isMounted&&r&&(e.mount(n.node),this._emitter.emit(B.SYMBOL_MOUNT,e.node)),r},e.prototype.attach=function(t){var e=this,n=this;if(n.isMounted)return n.node;var r="string"===typeof t?document.querySelector(t):t;return n.node=r,this.symbols.forEach((function(t){t.mount(n.node),e._emitter.emit(B.SYMBOL_MOUNT,t.node)})),b(r.querySelectorAll("symbol")).forEach((function(t){var e=y.createFromExistingNode(t);e.node=t,n.add(e)})),this._emitter.emit(B.MOUNT,r),r},e.prototype.destroy=function(){var t=this,e=t.config,n=t.symbols,r=t._emitter;n.forEach((function(t){return t.destroy()})),r.off("*"),window.removeEventListener(e.locationChangeEvent,this._handleLocationChange),this.isMounted&&this.unmount()},e.prototype.mount=function(t,e){void 0===t&&(t=this.config.mountTo),void 0===e&&(e=!1);var n=this;if(n.isMounted)return n.node;var r="string"===typeof t?document.querySelector(t):t,i=n.render();return this.node=i,e&&r.childNodes[0]?r.insertBefore(i,r.childNodes[0]):r.appendChild(i),this._emitter.emit(B.MOUNT,i),i},e.prototype.render=function(){return v(this.stringify())},e.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},e.prototype.updateUrls=function(t,e){if(!this.isMounted)return!1;var n=document.querySelectorAll(this.config.usagesToUpdate);return N(this.node,n,S(t)+"#",S(e)+"#"),!0},Object.defineProperties(e.prototype,i),e}(p),z=t((function(t){ /*! * domready (c) Dustin Diaz 2014 - License MIT */ !function(e,n){t.exports=n()}(0,(function(){var t,e=[],n=document,r=n.documentElement.doScroll,i="DOMContentLoaded",o=(r?/^loaded|^c/:/^loaded|^i|^c/).test(n.readyState);return o||n.addEventListener(i,t=function(){n.removeEventListener(i,t),o=1;while(t=e.shift())t()}),function(t){o?setTimeout(t,0):e.push(t)}}))})),V="__SVG_SPRITE_NODE__",q="__SVG_SPRITE__",G=!!window[q];G?L=window[q]:(L=new F({attrs:{id:V,"aria-hidden":"true"}}),window[q]=L);var H=function(){var t=document.getElementById(V);t?L.attach(t):L.mount(document.body,!0)};document.body?H():z(H);var W=L;return W}))}).call(this,n("c8ba"))},"21a6":function(t,e,n){(function(n){var r,i,o;(function(n,a){i=[],r=a,o="function"===typeof r?r.apply(e,i):r,void 0===o||(t.exports=o)})(0,(function(){"use strict";function e(t,e){return"undefined"==typeof e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}function r(t,e,n){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){l(r.response,e,n)},r.onerror=function(){console.error("could not download file")},r.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function o(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(r){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,s=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(t,e,n){var s=a.URL||a.webkitURL,l=document.createElement("a");e=e||t.name||"download",l.download=e,l.rel="noopener","string"==typeof t?(l.href=t,l.origin===location.origin?o(l):i(l.href)?r(t,e,n):o(l,l.target="_blank")):(l.href=s.createObjectURL(t),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){o(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,n,a){if(n=n||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(e(t,a),n);else if(i(t))r(t,n,a);else{var s=document.createElement("a");s.href=t,s.target="_blank",setTimeout((function(){o(s)}))}}:function(t,e,n,i){if(i=i||open("","_blank"),i&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof t)return r(t,e,n);var o="application/octet-stream"===t.type,l=/constructor/i.test(a.HTMLElement)||a.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||o&&l||s)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var t=c.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location=t,i=null},c.readAsDataURL(t)}else{var h=a.URL||a.webkitURL,f=h.createObjectURL(t);i?i.location=f:location.href=f,i=null,setTimeout((function(){h.revokeObjectURL(f)}),4e4)}});a.saveAs=l.saveAs=l,t.exports=l}))}).call(this,n("c8ba"))},"222a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pieConfig=void 0;var r={show:!0,name:"",radius:"50%",center:["50%","50%"],startAngle:-Math.PI/2,roseType:!1,roseSort:!0,roseIncrement:"auto",data:[],insideLabel:{show:!1,formatter:"{percent}%",style:{fontSize:10,fill:"#fff",textAlign:"center",textBaseline:"middle"}},outsideLabel:{show:!0,formatter:"{name}",style:{fontSize:11},labelLineBendGap:"20%",labelLineEndLength:50,labelLineStyle:{lineWidth:1}},pieStyle:{},percentToFixed:0,rLevel:10,animationDelayGap:60,animationCurve:"easeOutCubic",startAnimationCurve:"easeOutBack",animationFrame:50};e.pieConfig=r},2236:function(t,e,n){var r=n("5a43");function i(t){if(Array.isArray(t))return r(t)}t.exports=i,t.exports.__esModule=!0,t.exports["default"]=t.exports},2266:function(t,e,n){var r=n("0366"),i=n("c65b"),o=n("825a"),a=n("0d51"),s=n("e95a"),l=n("07fa"),u=n("3a9b"),c=n("9a1f"),h=n("35a1"),f=n("2a62"),d=TypeError,p=function(t,e){this.stopped=t,this.result=e},g=p.prototype;t.exports=function(t,e,n){var v,y,m,b,_,x,w,S=n&&n.that,O=!(!n||!n.AS_ENTRIES),C=!(!n||!n.IS_RECORD),k=!(!n||!n.IS_ITERATOR),A=!(!n||!n.INTERRUPTED),M=r(e,S),T=function(t){return v&&f(v,"normal",t),new p(!0,t)},I=function(t){return O?(o(t),A?M(t[0],t[1],T):M(t[0],t[1])):A?M(t,T):M(t)};if(C)v=t.iterator;else if(k)v=t;else{if(y=h(t),!y)throw d(a(t)+" is not iterable");if(s(y)){for(m=0,b=l(t);b>m;m++)if(_=I(t[m]),_&&u(g,_))return _;return new p(!1)}v=c(t,y)}x=C?t.next:v.next;while(!(w=i(x,v)).done){try{_=I(w.value)}catch(E){f(v,"throw",E)}if("object"==typeof _&&_&&u(g,_))return _}return new p(!1)}},"22d1":function(t,e,n){"use strict";var r=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),i=function(){function t(){this.browser=new r,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}(),o=new i;function a(t,e){var n=e.browser,r=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.svgSupported="undefined"!==typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!==typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(o.wxa=!0,o.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?o.worker=!0:"undefined"===typeof navigator?(o.node=!0,o.svgSupported=!0):a(navigator.userAgent,o),e["a"]=o},"23cb":function(t,e,n){var r=n("5926"),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},"23dc":function(t,e,n){var r=n("d44e");r(Math,"Math",!0)},"23e7":function(t,e,n){var r=n("da84"),i=n("06cf").f,o=n("9112"),a=n("cb2d"),s=n("6374"),l=n("e893"),u=n("94ca");t.exports=function(t,e){var n,c,h,f,d,p,g=t.target,v=t.global,y=t.stat;if(c=v?r:y?r[g]||s(g,{}):(r[g]||{}).prototype,c)for(h in e){if(d=e[h],t.dontCallGetSet?(p=i(c,h),f=p&&p.value):f=c[h],n=u(v?h:g+(y?".":"#")+h,t.forced),!n&&void 0!==f){if(typeof d==typeof f)continue;l(d,f)}(t.sham||f&&f.sham)&&o(d,"sham",!0),a(c,h,d,t)}}},"241c":function(t,e,n){var r=n("ca84"),i=n("7839"),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},2444:function(t,e,n){"use strict";(function(e){var r=n("c532"),i=n("c8af"),o=n("387f"),a={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function l(){var t;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof e&&"[object process]"===Object.prototype.toString.call(e))&&(t=n("b50d")),t}function u(t,e,n){if(r.isString(t))try{return(e||JSON.parse)(t),r.trim(t)}catch(i){if("SyntaxError"!==i.name)throw i}return(n||JSON.stringify)(t)}var c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:l(),transformRequest:[function(t,e){return i(e,"Accept"),i(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)||e&&"application/json"===e["Content-Type"]?(s(e,"application/json"),u(t)):t}],transformResponse:[function(t){var e=this.transitional||c.transitional,n=e&&e.silentJSONParsing,i=e&&e.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||i&&r.isString(t)&&t.length)try{return JSON.parse(t)}catch(s){if(a){if("SyntaxError"===s.name)throw o(s,this,"E_JSON_PARSE");throw s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(t){c.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){c.headers[t]=r.merge(a)})),t.exports=c}).call(this,n("4362"))},2527:function(t,e){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},"252f":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.line=v;var i=r(n("7037")),o=r(n("278c")),a=r(n("448a")),s=r(n("9523")),l=n("18ad"),u=n("9d85"),c=r(n("050c")),h=n("becb");function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},n=e.xAxis,r=e.yAxis,i=e.series,o=[];n&&r&&i&&(o=(0,h.initNeedSeries)(i,u.lineConfig,"line"),o=y(o,t)),(0,l.doUpdate)({chart:t,series:o,key:"lineArea",getGraphConfig:w,getStartGraphConfig:A,beforeUpdate:M,beforeChange:T}),(0,l.doUpdate)({chart:t,series:o,key:"line",getGraphConfig:I,getStartGraphConfig:L,beforeUpdate:M,beforeChange:T}),(0,l.doUpdate)({chart:t,series:o,key:"linePoint",getGraphConfig:D,getStartGraphConfig:B}),(0,l.doUpdate)({chart:t,series:o,key:"lineLabel",getGraphConfig:F})}function y(t,e){var n=e.axisData;return t.map((function(e){var r=(0,h.mergeSameStackData)(e,t);r=m(e,r);var i=b(e,n),o=_(r,i),a=x(i);return d(d({},e),{},{linePosition:o.filter((function(t){return t})),lineFillBottomPos:a})}))}function m(t,e){var n=t.data;return e.map((function(t,e){return"number"===typeof n[e]?t:null}))}function b(t,e){var n=t.xAxisIndex,r=t.yAxisIndex,i=e.find((function(t){var e=t.axis,r=t.index;return"x"===e&&r===n})),o=e.find((function(t){var e=t.axis,n=t.index;return"y"===e&&n===r}));return[i,o]}function _(t,e){var n=e.findIndex((function(t){var e=t.data;return"value"===e})),r=e[n],i=e[1-n],o=r.linePosition,a=r.axis,s=i.tickPosition,l=s.length,u="x"===a?0:1,c=o[0][u],h=o[1][u],f=h-c,d=r.maxValue,p=r.minValue,g=d-p,v=new Array(l).fill(0).map((function(e,n){var r=t[n];if("number"!==typeof r)return null;var i=(r-p)/g;return 0===g&&(i=0),i*f+c}));return v.map((function(t,e){if(e>=l||"number"!==typeof t)return null;var n=[t,s[e][1-u]];return 0===u||n.reverse(),n}))}function x(t){var e=t.find((function(t){var e=t.data;return"value"===e})),n=e.axis,r=e.linePosition,i=e.minValue,o=e.maxValue,a="x"===n?0:1,s=r[0][a];if(i<0&&o>0){var l=o-i,u=Math.abs(r[0][a]-r[1][a]),c=Math.abs(i)/l*u;"y"===n&&(c*=-1),s+=c}return{changeIndex:a,changeValue:s}}function w(t){var e=t.animationCurve,n=t.animationFrame,r=t.lineFillBottomPos,i=t.rLevel;return[{name:E(t),index:i,animationCurve:e,animationFrame:n,visible:t.lineArea.show,lineFillBottomPos:r,shape:S(t),style:O(t),drawed:k}]}function S(t){var e=t.linePosition;return{points:e}}function O(t){var e=t.lineArea,n=t.color,r=e.gradient,i=e.style,o=[i.fill||n],a=(0,h.deepMerge)(o,r);1===a.length&&a.push(a[0]);var s=C(t);return i=d(d({},i),{},{stroke:"rgba(0, 0, 0, 0)"}),(0,h.deepMerge)({gradientColor:a,gradientParams:s,gradientType:"linear",gradientWith:"fill"},i)}function C(t){var e=t.lineFillBottomPos,n=t.linePosition,r=e.changeIndex,i=e.changeValue,o=n.map((function(t){return t[r]})),s=Math.max.apply(Math,(0,a["default"])(o)),l=Math.min.apply(Math,(0,a["default"])(o)),u=s;return 1===r&&(u=l),1===r?[0,u,0,i]:[u,0,i,0]}function k(t,e){var n=t.lineFillBottomPos,r=t.shape,i=e.ctx,o=r.points,s=n.changeIndex,l=n.changeValue,u=(0,a["default"])(o[o.length-1]),c=(0,a["default"])(o[0]);u[s]=l,c[s]=l,i.lineTo.apply(i,(0,a["default"])(u)),i.lineTo.apply(i,(0,a["default"])(c)),i.closePath(),i.fill()}function A(t){var e=w(t)[0],n=d({},e.style);return n.opacity=0,e.style=n,[e]}function M(t,e,n,r){var i=t[n];if(i){var o=E(e),a=r.chart.render,s=i[0].name,l=o!==s;l&&(i.forEach((function(t){return a.delGraph(t)})),t[n]=null)}}function T(t,e){var n=e.shape.points,r=t.shape.points,i=r.length,o=n.length;if(o>i){var s=r.slice(-1)[0],l=new Array(o-i).fill(0).map((function(t){return(0,a["default"])(s)}));r.push.apply(r,(0,a["default"])(l))}else o1&&void 0!==arguments[1]&&arguments[1];if(!e)return(0,h.getPolylineLength)(t);var n=p(t);return g(n)}function L(t){var e=t.lineStyle.lineDash,n=I(t)[0],r=n.style.lineDash;return r=e?[0,0]:(0,a["default"])(r).reverse(),n.style.lineDash=r,[n]}function D(t){var e=t.animationCurve,n=t.animationFrame,r=t.rLevel,i=R(t),o=N(t);return i.map((function(i){return{name:"circle",index:r+2,visible:t.linePoint.show,animationCurve:e,animationFrame:n,shape:i,style:o}}))}function R(t){var e=t.linePosition,n=t.linePoint.radius;return e.map((function(t){var e=(0,o["default"])(t,2),r=e[0],i=e[1];return{r:n,rx:r,ry:i}}))}function N(t){var e=t.color,n=t.linePoint.style;return(0,h.deepMerge)({stroke:e},n)}function B(t){var e=D(t);return e.forEach((function(t){t.shape.r=.1})),e}function F(t){var e=t.animationCurve,n=t.animationFrame,r=t.rLevel,i=z(t),o=W(t);return i.map((function(i,a){return{name:"text",index:r+3,visible:t.label.show,animationCurve:e,animationFrame:n,shape:i,style:o}}))}function z(t){var e=H(t),n=V(t);return e.map((function(t,e){return{content:t,position:n[e]}}))}function V(t){var e=t.linePosition,n=t.lineFillBottomPos,r=t.label,i=r.position,o=r.offset,s=n.changeIndex,l=n.changeValue;return e.map((function(t){if("bottom"===i&&(t=(0,a["default"])(t),t[s]=l),"center"===i){var e=(0,a["default"])(t);e[s]=l,t=G(t,e)}return q(t,o)}))}function q(t,e){var n=(0,o["default"])(t,2),r=n[0],i=n[1],a=(0,o["default"])(e,2),s=a[0],l=a[1];return[r+s,i+l]}function G(t,e){var n=(0,o["default"])(t,2),r=n[0],i=n[1],a=(0,o["default"])(e,2),s=a[0],l=a[1];return[(r+s)/2,(i+l)/2]}function H(t){var e=t.data,n=t.label.formatter;if(e=e.filter((function(t){return"number"===typeof t})).map((function(t){return t.toString()})),!n)return e;var r=(0,i["default"])(n);return"string"===r?e.map((function(t){return n.replace("{value}",t)})):"function"===r?e.map((function(t,e){return n({value:t,index:e})})):e}function W(t){var e=t.color,n=t.label.style;return(0,h.deepMerge)({fill:e},n)}},2532:function(t,e,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("5a34"),a=n("1d80"),s=n("577e"),l=n("ab13"),u=i("".indexOf);r({target:"String",proto:!0,forced:!l("includes")},{includes:function(t){return!!~u(s(a(this)),s(o(t)),arguments.length>1?arguments[1]:void 0)}})},2554:function(t,e,n){"use strict";var r=function(t){return i(t)&&!o(t)};function i(t){return!!t&&"object"===typeof t}function o(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||l(t)}var a="function"===typeof Symbol&&Symbol.for,s=a?Symbol.for("react.element"):60103;function l(t){return t.$$typeof===s}function u(t){return Array.isArray(t)?[]:{}}function c(t,e){return!1!==e.clone&&e.isMergeableObject(t)?m(u(t),t,e):t}function h(t,e,n){return t.concat(e).map((function(t){return c(t,n)}))}function f(t,e){if(!e.customMerge)return m;var n=e.customMerge(t);return"function"===typeof n?n:m}function d(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]}function p(t){return Object.keys(t).concat(d(t))}function g(t,e){try{return e in t}catch(n){return!1}}function v(t,e){return g(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function y(t,e,n){var r={};return n.isMergeableObject(t)&&p(t).forEach((function(e){r[e]=c(t[e],n)})),p(e).forEach((function(i){v(t,i)||(g(t,i)&&n.isMergeableObject(e[i])?r[i]=f(i,n)(t[i],e[i],n):r[i]=c(e[i],n))})),r}function m(t,e,n){n=n||{},n.arrayMerge=n.arrayMerge||h,n.isMergeableObject=n.isMergeableObject||r,n.cloneUnlessOtherwiseSpecified=c;var i=Array.isArray(e),o=Array.isArray(t),a=i===o;return a?i?n.arrayMerge(t,e,n):y(t,e,n):c(e,n)}m.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return m(t,n,e)}),{})};var b=m;t.exports=b},"25f0":function(t,e,n){"use strict";var r=n("5e77").PROPER,i=n("cb2d"),o=n("825a"),a=n("577e"),s=n("d039"),l=n("90d8"),u="toString",c=RegExp.prototype,h=c[u],f=s((function(){return"/a/b"!=h.call({source:"a",flags:"b"})})),d=r&&h.name!=u;(f||d)&&i(RegExp.prototype,u,(function(){var t=o(this),e=a(t.source),n=a(l(t));return"/"+e+"/"+n}),{unsafe:!0})},2626:function(t,e,n){"use strict";var r=n("d066"),i=n("9bf2"),o=n("b622"),a=n("83ab"),s=o("species");t.exports=function(t){var e=r(t),n=i.f;a&&e&&!e[s]&&n(e,s,{configurable:!0,get:function(){return this}})}},"26dd":function(t,e,n){"use strict";var r=n("6f4f"),i=n("10db"),o=n("92f0"),a={};n("051b")(a,n("cc15")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},"278c":function(t,e,n){var r=n("c135"),i=n("9b42"),o=n("6613"),a=n("c240");function s(t,e){return r(t)||i(t,e)||o(t,e)||a()}t.exports=s,t.exports.__esModule=!0,t.exports["default"]=t.exports},2848:function(t,e,n){},2877:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var l,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=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__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}n.d(e,"a",(function(){return r}))},2909:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n("6b75");function i(t){if(Array.isArray(t))return Object(r["a"])(t)}n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("a630");function o(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}var a=n("06c5");n("d9e2");function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(t){return i(t)||o(t)||Object(a["a"])(t)||s()}},"29a2":function(t,e,n){"use strict";function r(t,e,n){var r=this;this._callback=t,this._args=n,this._interval=setInterval(t,e,this._args),this.reschedule=function(t){t||(t=r._interval),r._interval&&clearInterval(r._interval),r._interval=setInterval(r._callback,t,r._args)},this.clear=function(){r._interval&&(clearInterval(r._interval),r._interval=void 0)},this.destroy=function(){r._interval&&clearInterval(r._interval),r._callback=void 0,r._interval=void 0,r._args=void 0}}function i(){if("function"!==typeof arguments[0])throw new Error("callback needed");if("number"!==typeof arguments[1])throw new Error("interval needed");var t;if(arguments.length>0){t=new Array(arguments.length-2);for(var e=0;e=0&&Math.floor(e)===e&&isFinite(t)}function d(t){return i(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||c(t)&&t.toString===u?JSON.stringify(t,null,2):String(t)}function g(t){var e=parseFloat(t);return isNaN(e)?t:e}function v(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i-1)return t.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function _(t,e){return b.call(t,e)}function x(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var w=/-(\w)/g,S=x((function(t){return t.replace(w,(function(t,e){return e?e.toUpperCase():""}))})),O=x((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),C=/\B([A-Z])/g,k=x((function(t){return t.replace(C,"-$1").toLowerCase()}));function A(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function M(t,e){return t.bind(e)}var T=Function.prototype.bind?M:A;function I(t,e){e=e||0;var n=t.length-e,r=new Array(n);while(n--)r[n]=t[n+e];return r}function E(t,e){for(var n in e)t[n]=e[n];return t}function P(t){for(var e={},n=0;n0,nt=J&&J.indexOf("edge/")>0,rt=(J&&J.indexOf("android"),J&&/iphone|ipad|ipod|ios/.test(J)||"ios"===Q),it=(J&&/chrome\/\d+/.test(J),J&&/phantomjs/.test(J),J&&J.match(/firefox\/(\d+)/)),ot={}.watch,at=!1;if(K)try{var st={};Object.defineProperty(st,"passive",{get:function(){at=!0}}),window.addEventListener("test-passive",null,st)}catch(Sa){}var lt=function(){return void 0===Y&&(Y=!K&&!Z&&"undefined"!==typeof t&&(t["process"]&&"server"===t["process"].env.VUE_ENV)),Y},ut=K&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ct(t){return"function"===typeof t&&/native code/.test(t.toString())}var ht,ft="undefined"!==typeof Symbol&&ct(Symbol)&&"undefined"!==typeof Reflect&&ct(Reflect.ownKeys);ht="undefined"!==typeof Set&&ct(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var dt=j,pt=0,gt=function(){this.id=pt++,this.subs=[]};gt.prototype.addSub=function(t){this.subs.push(t)},gt.prototype.removeSub=function(t){m(this.subs,t)},gt.prototype.depend=function(){gt.target&>.target.addDep(this)},gt.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e-1)if(o&&!_(i,"default"))a=!1;else if(""===a||a===k(t)){var l=te(String,i.type);(l<0||s0&&(a=Ae(a,(e||"")+"_"+n),ke(a[0])&&ke(u)&&(c[l]=wt(u.text+a[0].text),a.shift()),c.push.apply(c,a)):s(a)?ke(u)?c[l]=wt(u.text+a):""!==a&&c.push(wt(a)):ke(a)&&ke(u)?c[l]=wt(u.text+a.text):(o(t._isVList)&&i(a.tag)&&r(a.key)&&i(e)&&(a.key="__vlist"+e+"_"+n+"__"),c.push(a)));return c}function Me(t){var e=t.$options.provide;e&&(t._provided="function"===typeof e?e.call(t):e)}function Te(t){var e=Ie(t.$options.inject,t);e&&(Tt(!1),Object.keys(e).forEach((function(n){Lt(t,n,e[n])})),Tt(!0))}function Ie(t,e){if(t){for(var n=Object.create(null),r=ft?Reflect.ownKeys(t):Object.keys(t),i=0;i0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&r&&r!==n&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var l in i={},t)t[l]&&"$"!==l[0]&&(i[l]=Le(e,l,t[l]))}else i={};for(var u in e)u in i||(i[u]=De(e,u));return t&&Object.isExtensible(t)&&(t._normalized=i),W(i,"$stable",a),W(i,"$key",s),W(i,"$hasNormal",o),i}function Le(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return t=t&&"object"===typeof t&&!Array.isArray(t)?[t]:Ce(t),t&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function De(t,e){return function(){return t[e]}}function Re(t,e){var n,r,o,a,s;if(Array.isArray(t)||"string"===typeof t)for(n=new Array(t.length),r=0,o=t.length;r1?I(n):n;for(var r=I(arguments,1),i='event handler for "'+t+'"',o=0,a=n.length;odocument.createEvent("Event").timeStamp&&(Yn=function(){return Xn.now()})}function Kn(){var t,e;for($n=Yn(),Hn=!0,zn.sort((function(t,e){return t.id-e.id})),Wn=0;WnWn&&zn[n].id>t.id)n--;zn.splice(n+1,0,t)}else zn.push(t);Gn||(Gn=!0,pe(Kn))}}var er=0,nr=function(t,e,n,r,i){this.vm=t,i&&(t._watcher=this),t._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++er,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ht,this.newDepIds=new ht,this.expression="","function"===typeof e?this.getter=e:(this.getter=$(e),this.getter||(this.getter=j)),this.value=this.lazy?void 0:this.get()};nr.prototype.get=function(){var t;yt(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(Sa){if(!this.user)throw Sa;ee(Sa,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&ve(t),mt(),this.cleanupDeps()}return t},nr.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},nr.prototype.cleanupDeps=function(){var t=this.deps.length;while(t--){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},nr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():tr(this)},nr.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||l(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(Sa){ee(Sa,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},nr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},nr.prototype.depend=function(){var t=this.deps.length;while(t--)this.deps[t].depend()},nr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||m(this.vm._watchers,this);var t=this.deps.length;while(t--)this.deps[t].removeSub(this);this.active=!1}};var rr={enumerable:!0,configurable:!0,get:j,set:j};function ir(t,e,n){rr.get=function(){return this[e][n]},rr.set=function(t){this[e][n]=t},Object.defineProperty(t,n,rr)}function or(t){t._watchers=[];var e=t.$options;e.props&&ar(t,e.props),e.methods&&pr(t,e.methods),e.data?sr(t):jt(t._data={},!0),e.computed&&cr(t,e.computed),e.watch&&e.watch!==ot&&gr(t,e.watch)}function ar(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[],o=!t.$parent;o||Tt(!1);var a=function(o){i.push(o);var a=Kt(o,e,n,t);Lt(r,o,a),o in t||ir(t,"_props",o)};for(var s in e)a(s);Tt(!0)}function sr(t){var e=t.$options.data;e=t._data="function"===typeof e?lr(e,t):e||{},c(e)||(e={});var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);while(i--){var o=n[i];0,r&&_(r,o)||H(o)||ir(t,"_data",o)}jt(e,!0)}function lr(t,e){yt();try{return t.call(e,e)}catch(Sa){return ee(Sa,e,"data()"),{}}finally{mt()}}var ur={lazy:!0};function cr(t,e){var n=t._computedWatchers=Object.create(null),r=lt();for(var i in e){var o=e[i],a="function"===typeof o?o:o.get;0,r||(n[i]=new nr(t,a||j,j,ur)),i in t||hr(t,i,o)}}function hr(t,e,n){var r=!lt();"function"===typeof n?(rr.get=r?fr(e):dr(n),rr.set=j):(rr.get=n.get?r&&!1!==n.cache?fr(e):dr(n.get):j,rr.set=n.set||j),Object.defineProperty(t,e,rr)}function fr(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),gt.target&&e.depend(),e.value}}function dr(t){return function(){return t.call(this,this)}}function pr(t,e){t.$options.props;for(var n in e)t[n]="function"!==typeof e[n]?j:T(e[n],t)}function gr(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i-1)return this;var n=I(arguments,1);return n.unshift(this),"function"===typeof t.install?t.install.apply(t,n):"function"===typeof t&&t.apply(null,n),e.push(t),this}}function Cr(t){t.mixin=function(t){return this.options=Yt(this.options,t),this}}function kr(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name;var a=function(t){this._init(t)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=e++,a.options=Yt(n.options,t),a["super"]=n,a.options.props&&Ar(a),a.options.computed&&Mr(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,z.forEach((function(t){a[t]=n[t]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=E({},a.options),i[r]=a,a}}function Ar(t){var e=t.options.props;for(var n in e)ir(t.prototype,"_props",n)}function Mr(t){var e=t.options.computed;for(var n in e)hr(t.prototype,n,e[n])}function Tr(t){z.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&c(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"===typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}function Ir(t){return t&&(t.Ctor.options.name||t.tag)}function Er(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!h(t)&&t.test(e)}function Pr(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var a=n[o];if(a){var s=Ir(a.componentOptions);s&&!e(s)&&jr(n,o,r,i)}}}function jr(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,m(n,e)}br(Sr),yr(Sr),Tn(Sr),jn(Sr),mn(Sr);var Lr=[String,RegExp,Array],Dr={name:"keep-alive",abstract:!0,props:{include:Lr,exclude:Lr,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)jr(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",(function(e){Pr(t,(function(t){return Er(e,t)}))})),this.$watch("exclude",(function(e){Pr(t,(function(t){return!Er(e,t)}))}))},render:function(){var t=this.$slots.default,e=Sn(t),n=e&&e.componentOptions;if(n){var r=Ir(n),i=this,o=i.include,a=i.exclude;if(o&&(!r||!Er(o,r))||a&&r&&Er(a,r))return e;var s=this,l=s.cache,u=s.keys,c=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;l[c]?(e.componentInstance=l[c].componentInstance,m(u,c),u.push(c)):(l[c]=e,u.push(c),this.max&&u.length>parseInt(this.max)&&jr(l,u[0],u,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},Rr={KeepAlive:Dr};function Nr(t){var e={get:function(){return q}};Object.defineProperty(t,"config",e),t.util={warn:dt,extend:E,mergeOptions:Yt,defineReactive:Lt},t.set=Dt,t.delete=Rt,t.nextTick=pe,t.observable=function(t){return jt(t),t},t.options=Object.create(null),z.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,E(t.options.components,Rr),Or(t),Cr(t),kr(t),Tr(t)}Nr(Sr),Object.defineProperty(Sr.prototype,"$isServer",{get:lt}),Object.defineProperty(Sr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Sr,"FunctionalRenderContext",{value:Ze}),Sr.version="2.6.12";var Br=v("style,class"),Fr=v("input,textarea,option,select,progress"),zr=function(t,e,n){return"value"===n&&Fr(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Vr=v("contenteditable,draggable,spellcheck"),qr=v("events,caret,typing,plaintext-only"),Gr=function(t,e){return Yr(e)||"false"===e?"false":"contenteditable"===t&&qr(e)?e:"true"},Hr=v("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Wr="http://www.w3.org/1999/xlink",Ur=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},$r=function(t){return Ur(t)?t.slice(6,t.length):""},Yr=function(t){return null==t||!1===t};function Xr(t){var e=t.data,n=t,r=t;while(i(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(e=Kr(r.data,e));while(i(n=n.parent))n&&n.data&&(e=Kr(e,n.data));return Zr(e.staticClass,e.class)}function Kr(t,e){return{staticClass:Qr(t.staticClass,e.staticClass),class:i(t.class)?[t.class,e.class]:e.class}}function Zr(t,e){return i(t)||i(e)?Qr(t,Jr(e)):""}function Qr(t,e){return t?e?t+" "+e:t:e||""}function Jr(t){return Array.isArray(t)?ti(t):l(t)?ei(t):"string"===typeof t?t:""}function ti(t){for(var e,n="",r=0,o=t.length;r-1?si[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:si[t]=/HTMLUnknownElement/.test(e.toString())}var ui=v("text,number,password,search,email,tel,url");function ci(t){if("string"===typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function hi(t,e){var n=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function fi(t,e){return document.createElementNS(ni[t],e)}function di(t){return document.createTextNode(t)}function pi(t){return document.createComment(t)}function gi(t,e,n){t.insertBefore(e,n)}function vi(t,e){t.removeChild(e)}function yi(t,e){t.appendChild(e)}function mi(t){return t.parentNode}function bi(t){return t.nextSibling}function _i(t){return t.tagName}function xi(t,e){t.textContent=e}function wi(t,e){t.setAttribute(e,"")}var Si=Object.freeze({createElement:hi,createElementNS:fi,createTextNode:di,createComment:pi,insertBefore:gi,removeChild:vi,appendChild:yi,parentNode:mi,nextSibling:bi,tagName:_i,setTextContent:xi,setStyleScope:wi}),Oi={create:function(t,e){Ci(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Ci(t,!0),Ci(e))},destroy:function(t){Ci(t,!0)}};function Ci(t,e){var n=t.data.ref;if(i(n)){var r=t.context,o=t.componentInstance||t.elm,a=r.$refs;e?Array.isArray(a[n])?m(a[n],o):a[n]===o&&(a[n]=void 0):t.data.refInFor?Array.isArray(a[n])?a[n].indexOf(o)<0&&a[n].push(o):a[n]=[o]:a[n]=o}}var ki=new bt("",{},[]),Ai=["create","activate","update","remove","destroy"];function Mi(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&i(t.data)===i(e.data)&&Ti(t,e)||o(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&r(e.asyncFactory.error))}function Ti(t,e){if("input"!==t.tag)return!0;var n,r=i(n=t.data)&&i(n=n.attrs)&&n.type,o=i(n=e.data)&&i(n=n.attrs)&&n.type;return r===o||ui(r)&&ui(o)}function Ii(t,e,n){var r,o,a={};for(r=e;r<=n;++r)o=t[r].key,i(o)&&(a[o]=r);return a}function Ei(t){var e,n,a={},l=t.modules,u=t.nodeOps;for(e=0;eg?(h=r(n[m+1])?null:n[m+1].elm,S(t,h,n,p,m,o)):p>m&&C(e,f,g)}function M(t,e,n,r){for(var o=n;o-1?qi(t,e,n):Hr(e)?Yr(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Vr(e)?t.setAttribute(e,Gr(e,n)):Ur(e)?Yr(n)?t.removeAttributeNS(Wr,$r(e)):t.setAttributeNS(Wr,e,n):qi(t,e,n)}function qi(t,e,n){if(Yr(n))t.removeAttribute(e);else{if(tt&&!et&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var Gi={create:zi,update:zi};function Hi(t,e){var n=e.elm,o=e.data,a=t.data;if(!(r(o.staticClass)&&r(o.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var s=Xr(e),l=n._transitionClasses;i(l)&&(s=Qr(s,Jr(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Wi,Ui={create:Hi,update:Hi},$i="__r",Yi="__c";function Xi(t){if(i(t[$i])){var e=tt?"change":"input";t[e]=[].concat(t[$i],t[e]||[]),delete t[$i]}i(t[Yi])&&(t.change=[].concat(t[Yi],t.change||[]),delete t[Yi])}function Ki(t,e,n){var r=Wi;return function i(){var o=e.apply(null,arguments);null!==o&&Ji(t,i,n,r)}}var Zi=ae&&!(it&&Number(it[1])<=53);function Qi(t,e,n,r){if(Zi){var i=$n,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}Wi.addEventListener(t,e,at?{capture:n,passive:r}:n)}function Ji(t,e,n,r){(r||Wi).removeEventListener(t,e._wrapper||e,n)}function to(t,e){if(!r(t.data.on)||!r(e.data.on)){var n=e.data.on||{},i=t.data.on||{};Wi=e.elm,Xi(n),_e(n,i,Qi,Ji,Ki,e.context),Wi=void 0}}var eo,no={create:to,update:to};function ro(t,e){if(!r(t.data.domProps)||!r(e.data.domProps)){var n,o,a=e.elm,s=t.data.domProps||{},l=e.data.domProps||{};for(n in i(l.__ob__)&&(l=e.data.domProps=E({},l)),s)n in l||(a[n]="");for(n in l){if(o=l[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),o===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=o;var u=r(o)?"":String(o);io(a,u)&&(a.value=u)}else if("innerHTML"===n&&ii(a.tagName)&&r(a.innerHTML)){eo=eo||document.createElement("div"),eo.innerHTML=""+o+"";var c=eo.firstChild;while(a.firstChild)a.removeChild(a.firstChild);while(c.firstChild)a.appendChild(c.firstChild)}else if(o!==s[n])try{a[n]=o}catch(Sa){}}}}function io(t,e){return!t.composing&&("OPTION"===t.tagName||oo(t,e)||ao(t,e))}function oo(t,e){var n=!0;try{n=document.activeElement!==t}catch(Sa){}return n&&t.value!==e}function ao(t,e){var n=t.value,r=t._vModifiers;if(i(r)){if(r.number)return g(n)!==g(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}var so={create:ro,update:ro},lo=x((function(t){var e={},n=/;(?![^(]*\))/g,r=/:(.+)/;return t.split(n).forEach((function(t){if(t){var n=t.split(r);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}));function uo(t){var e=co(t.style);return t.staticStyle?E(t.staticStyle,e):e}function co(t){return Array.isArray(t)?P(t):"string"===typeof t?lo(t):t}function ho(t,e){var n,r={};if(e){var i=t;while(i.componentInstance)i=i.componentInstance._vnode,i&&i.data&&(n=uo(i.data))&&E(r,n)}(n=uo(t.data))&&E(r,n);var o=t;while(o=o.parent)o.data&&(n=uo(o.data))&&E(r,n);return r}var fo,po=/^--/,go=/\s*!important$/,vo=function(t,e,n){if(po.test(e))t.style.setProperty(e,n);else if(go.test(n))t.style.setProperty(k(e),n.replace(go,""),"important");else{var r=mo(e);if(Array.isArray(n))for(var i=0,o=n.length;i-1?e.split(xo).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function So(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(xo).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";while(n.indexOf(r)>=0)n=n.replace(r," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function Oo(t){if(t){if("object"===typeof t){var e={};return!1!==t.css&&E(e,Co(t.name||"v")),E(e,t),e}return"string"===typeof t?Co(t):void 0}}var Co=x((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),ko=K&&!et,Ao="transition",Mo="animation",To="transition",Io="transitionend",Eo="animation",Po="animationend";ko&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(To="WebkitTransition",Io="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Eo="WebkitAnimation",Po="webkitAnimationEnd"));var jo=K?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Lo(t){jo((function(){jo(t)}))}function Do(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),wo(t,e))}function Ro(t,e){t._transitionClasses&&m(t._transitionClasses,e),So(t,e)}function No(t,e,n){var r=Fo(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===Ao?Io:Po,l=0,u=function(){t.removeEventListener(s,c),n()},c=function(e){e.target===t&&++l>=a&&u()};setTimeout((function(){l0&&(n=Ao,c=a,h=o.length):e===Mo?u>0&&(n=Mo,c=u,h=l.length):(c=Math.max(a,u),n=c>0?a>u?Ao:Mo:null,h=n?n===Ao?o.length:l.length:0);var f=n===Ao&&Bo.test(r[To+"Property"]);return{type:n,timeout:c,propCount:h,hasTransform:f}}function zo(t,e){while(t.length1}function Uo(t,e){!0!==e.data.show&&qo(e)}var $o=K?{create:Uo,activate:Uo,remove:function(t,e){!0!==t.data.show?Go(t,e):e()}}:{},Yo=[Gi,Ui,no,so,_o,$o],Xo=Yo.concat(Fi),Ko=Ei({nodeOps:Si,modules:Xo});et&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&ia(t,"input")}));var Zo={inserted:function(t,e,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?xe(n,"postpatch",(function(){Zo.componentUpdated(t,e,n)})):Qo(t,e,n.context),t._vOptions=[].map.call(t.options,ea)):("textarea"===n.tag||ui(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",na),t.addEventListener("compositionend",ra),t.addEventListener("change",ra),et&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){Qo(t,e,n.context);var r=t._vOptions,i=t._vOptions=[].map.call(t.options,ea);if(i.some((function(t,e){return!R(t,r[e])}))){var o=t.multiple?e.value.some((function(t){return ta(t,i)})):e.value!==e.oldValue&&ta(e.value,i);o&&ia(t,"change")}}}};function Qo(t,e,n){Jo(t,e,n),(tt||nt)&&setTimeout((function(){Jo(t,e,n)}),0)}function Jo(t,e,n){var r=e.value,i=t.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,l=t.options.length;s-1,a.selected!==o&&(a.selected=o);else if(R(ea(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function ta(t,e){return e.every((function(e){return!R(e,t)}))}function ea(t){return"_value"in t?t._value:t.value}function na(t){t.target.composing=!0}function ra(t){t.target.composing&&(t.target.composing=!1,ia(t.target,"input"))}function ia(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function oa(t){return!t.componentInstance||t.data&&t.data.transition?t:oa(t.componentInstance._vnode)}var aa={bind:function(t,e,n){var r=e.value;n=oa(n);var i=n.data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,qo(n,(function(){t.style.display=o}))):t.style.display=r?o:"none"},update:function(t,e,n){var r=e.value,i=e.oldValue;if(!r!==!i){n=oa(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,r?qo(n,(function(){t.style.display=t.__vOriginalDisplay})):Go(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none"}},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}},sa={model:Zo,show:aa},la={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function ua(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?ua(Sn(e.children)):t}function ca(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var o in i)e[S(o)]=i[o];return e}function ha(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function fa(t){while(t=t.parent)if(t.data.transition)return!0}function da(t,e){return e.key===t.key&&e.tag===t.tag}var pa=function(t){return t.tag||wn(t)},ga=function(t){return"show"===t.name},va={name:"transition",props:la,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(pa),n.length)){0;var r=this.mode;0;var i=n[0];if(fa(this.$vnode))return i;var o=ua(i);if(!o)return i;if(this._leaving)return ha(t,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var l=(o.data||(o.data={})).transition=ca(this),u=this._vnode,c=ua(u);if(o.data.directives&&o.data.directives.some(ga)&&(o.data.show=!0),c&&c.data&&!da(o,c)&&!wn(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var h=c.data.transition=E({},l);if("out-in"===r)return this._leaving=!0,xe(h,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),ha(t,i);if("in-out"===r){if(wn(o))return u;var f,d=function(){f()};xe(l,"afterEnter",d),xe(l,"enterCancelled",d),xe(h,"delayLeave",(function(t){f=t}))}}return i}}},ya=E({tag:String,moveClass:String},la);delete ya.mode;var ma={props:ya,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=En(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=ca(this),s=0;s1?arguments[1]:void 0,e.length)),r=s(t);return f?f(e,r,n):d(e,n,n+r.length)===r}})},"2cf4":function(t,e,n){var r,i,o,a,s=n("da84"),l=n("2ba4"),u=n("0366"),c=n("1626"),h=n("1a2d"),f=n("d039"),d=n("1be4"),p=n("f36a"),g=n("cc12"),v=n("d6d6"),y=n("1cdc"),m=n("605d"),b=s.setImmediate,_=s.clearImmediate,x=s.process,w=s.Dispatch,S=s.Function,O=s.MessageChannel,C=s.String,k=0,A={},M="onreadystatechange";try{r=s.location}catch(j){}var T=function(t){if(h(A,t)){var e=A[t];delete A[t],e()}},I=function(t){return function(){T(t)}},E=function(t){T(t.data)},P=function(t){s.postMessage(C(t),r.protocol+"//"+r.host)};b&&_||(b=function(t){v(arguments.length,1);var e=c(t)?t:S(t),n=p(arguments,1);return A[++k]=function(){l(e,void 0,n)},i(k),k},_=function(t){delete A[t]},m?i=function(t){x.nextTick(I(t))}:w&&w.now?i=function(t){w.now(I(t))}:O&&!y?(o=new O,a=o.port2,o.port1.onmessage=E,i=u(a.postMessage,a)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!f(P)?(i=P,s.addEventListener("message",E,!1)):i=M in g("script")?function(t){d.appendChild(g("script"))[M]=function(){d.removeChild(this),T(t)}}:function(t){setTimeout(I(t),0)}),t.exports={set:b,clear:_}},"2d00":function(t,e,n){var r,i,o=n("da84"),a=n("342f"),s=o.process,l=o.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c&&(r=c.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=+r[1]))),t.exports=i},"2d83":function(t,e,n){"use strict";var r=n("387f");t.exports=function(t,e,n,i,o){var a=new Error(t);return r(a,e,n,i,o)}},"2db9":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.bezierCurveToPolyline=b,e.getBezierCurveLength=_,e["default"]=void 0;var i=r(n("278c")),o=r(n("448a")),a=Math.sqrt,s=Math.pow,l=Math.ceil,u=Math.abs,c=50;function h(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=t.length-1,r=t[0],i=t[n][2],a=t.slice(1),s=a.map((function(t,e){var n=0===e?r:a[e-1][2];return f.apply(void 0,[n].concat((0,o["default"])(t)))})),l=new Array(n).fill(c),u=v(s,l),h=m(u,s,a,e);return h.segmentPoints.push(i),h}function f(t,e,n,r){return function(i){var o=1-i,a=s(o,3),l=s(o,2),u=s(i,3),c=s(i,2);return[t[0]*a+3*e[0]*i*l+3*n[0]*c*o+r[0]*u,t[1]*a+3*e[1]*i*l+3*n[1]*c*o+r[1]*u]}}function d(t,e){var n=(0,i["default"])(t,2),r=n[0],o=n[1],l=(0,i["default"])(e,2),u=l[0],c=l[1];return a(s(r-u,2)+s(o-c,2))}function p(t){return t.reduce((function(t,e){return t+e}),0)}function g(t){return t.map((function(t,e){return new Array(t.length-1).fill(0).map((function(e,n){return d(t[n],t[n+1])}))}))}function v(t,e){return t.map((function(t,n){var r=1/e[n];return new Array(e[n]).fill("").map((function(e,n){return t(n*r)}))}))}function y(t,e){return t.map((function(t){return t.map((function(t){return u(t-e)}))})).map((function(t){return p(t)})).reduce((function(t,e){return t+e}),0)}function m(t,e,n,r){var i=4,o=1,a=function(){var a=t.reduce((function(t,e){return t+e.length}),0);t.forEach((function(t,e){return t.push(n[e][2])}));var s=g(t),u=s.reduce((function(t,e){return t+e.length}),0),c=s.map((function(t){return p(t)})),h=p(c),f=h/u,d=y(s,f);if(d<=r)return"break";a=l(f/r*a*1.1);var m=c.map((function(t){return l(t/h*a)}));t=v(e,m),a=t.reduce((function(t,e){return t+e.length}),0);var b=JSON.parse(JSON.stringify(t));b.forEach((function(t,e){return t.push(n[e][2])})),s=g(b),u=s.reduce((function(t,e){return t+e.length}),0),c=s.map((function(t){return p(t)})),h=p(c),f=h/u;var _=1/a/10;e.forEach((function(e,n){for(var r=m[n],o=new Array(r).fill("").map((function(t,e){return e/m[n]})),a=0;a1&&(o[c]=1),o[c]<0&&(o[c]=0),t[n][c]=e(o[c])}})),i*=4,o++};do{var s=a();if("break"===s)break}while(i<=1025);return t=t.reduce((function(t,e){return t.concat(e)}),[]),{segmentPoints:t,cycles:o,rounds:i}}function b(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if(!t)return console.error("bezierCurveToPolyline: Missing parameters!"),!1;if(!(t instanceof Array))return console.error("bezierCurveToPolyline: Parameter bezierCurve must be an array!"),!1;if("number"!==typeof e)return console.error("bezierCurveToPolyline: Parameter precision must be a number!"),!1;var n=h(t,e),r=n.segmentPoints;return r}function _(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if(!t)return console.error("getBezierCurveLength: Missing parameters!"),!1;if(!(t instanceof Array))return console.error("getBezierCurveLength: Parameter bezierCurve must be an array!"),!1;if("number"!==typeof e)return console.error("getBezierCurveLength: Parameter precision must be a number!"),!1;var n=h(t,e),r=n.segmentPoints,i=g([r])[0],o=p(i);return o}var x=b;e["default"]=x},"2e67":function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},"2f62":function(t,e,n){"use strict";(function(t){ /*! * vuex v3.6.0 * (c) 2020 Evan You * @license MIT */ function r(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:r});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[r].concat(t.init):r,n.call(this,t)}}function r(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}n.d(e,"b",(function(){return D})),n.d(e,"c",(function(){return j}));var i="undefined"!==typeof window?window:"undefined"!==typeof t?t:{},o=i.__VUE_DEVTOOLS_GLOBAL_HOOK__;function a(t){o&&(t._devtoolHook=o,o.emit("vuex:init",t),o.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){o.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){o.emit("vuex:action",t,e)}),{prepend:!0}))}function s(t,e){return t.filter(e)[0]}function l(t,e){if(void 0===e&&(e=[]),null===t||"object"!==typeof t)return t;var n=s(e,(function(e){return e.original===t}));if(n)return n.copy;var r=Array.isArray(t)?[]:{};return e.push({original:t,copy:r}),Object.keys(t).forEach((function(n){r[n]=l(t[n],e)})),r}function u(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function c(t){return null!==t&&"object"===typeof t}function h(t){return t&&"function"===typeof t.then}function f(t,e){return function(){return t(e)}}var d=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"===typeof n?n():n)||{}},p={namespaced:{configurable:!0}};p.namespaced.get=function(){return!!this._rawModule.namespaced},d.prototype.addChild=function(t,e){this._children[t]=e},d.prototype.removeChild=function(t){delete this._children[t]},d.prototype.getChild=function(t){return this._children[t]},d.prototype.hasChild=function(t){return t in this._children},d.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},d.prototype.forEachChild=function(t){u(this._children,t)},d.prototype.forEachGetter=function(t){this._rawModule.getters&&u(this._rawModule.getters,t)},d.prototype.forEachAction=function(t){this._rawModule.actions&&u(this._rawModule.actions,t)},d.prototype.forEachMutation=function(t){this._rawModule.mutations&&u(this._rawModule.mutations,t)},Object.defineProperties(d.prototype,p);var g=function(t){this.register([],t,!1)};function v(t,e,n){if(e.update(n),n.modules)for(var r in n.modules){if(!e.getChild(r))return void 0;v(t.concat(r),e.getChild(r),n.modules[r])}}g.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},g.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")}),"")},g.prototype.update=function(t){v([],this.root,t)},g.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=new d(e,n);if(0===t.length)this.root=i;else{var o=this.get(t.slice(0,-1));o.addChild(t[t.length-1],i)}e.modules&&u(e.modules,(function(e,i){r.register(t.concat(i),e,n)}))},g.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1],r=e.getChild(n);r&&r.runtime&&e.removeChild(n)},g.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return!!e&&e.hasChild(n)};var y;var m=function(t){var e=this;void 0===t&&(t={}),!y&&"undefined"!==typeof window&&window.Vue&&P(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var r=t.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new g(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new y,this._makeLocalGettersCache=Object.create(null);var i=this,o=this,s=o.dispatch,l=o.commit;this.dispatch=function(t,e){return s.call(i,t,e)},this.commit=function(t,e,n){return l.call(i,t,e,n)},this.strict=r;var u=this._modules.root.state;S(this,u,[],this._modules.root),w(this,u),n.forEach((function(t){return t(e)}));var c=void 0!==t.devtools?t.devtools:y.config.devtools;c&&a(this)},b={state:{configurable:!0}};function _(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function x(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;S(t,n,[],t._modules.root,!0),w(t,n,e)}function w(t,e,n){var r=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var i=t._wrappedGetters,o={};u(i,(function(e,n){o[n]=f(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var a=y.config.silent;y.config.silent=!0,t._vm=new y({data:{$$state:e},computed:o}),y.config.silent=a,t.strict&&T(t),r&&(n&&t._withCommit((function(){r._data.$$state=null})),y.nextTick((function(){return r.$destroy()})))}function S(t,e,n,r,i){var o=!n.length,a=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[a],t._modulesNamespaceMap[a]=r),!o&&!i){var s=I(e,n.slice(0,-1)),l=n[n.length-1];t._withCommit((function(){y.set(s,l,r.state)}))}var u=r.context=O(t,a,n);r.forEachMutation((function(e,n){var r=a+n;k(t,r,e,u)})),r.forEachAction((function(e,n){var r=e.root?n:a+n,i=e.handler||e;A(t,r,i,u)})),r.forEachGetter((function(e,n){var r=a+n;M(t,r,e,u)})),r.forEachChild((function(r,o){S(t,e,n.concat(o),r,i)}))}function O(t,e,n){var r=""===e,i={dispatch:r?t.dispatch:function(n,r,i){var o=E(n,r,i),a=o.payload,s=o.options,l=o.type;return s&&s.root||(l=e+l),t.dispatch(l,a)},commit:r?t.commit:function(n,r,i){var o=E(n,r,i),a=o.payload,s=o.options,l=o.type;s&&s.root||(l=e+l),t.commit(l,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return C(t,e)}},state:{get:function(){return I(t.state,n)}}}),i}function C(t,e){if(!t._makeLocalGettersCache[e]){var n={},r=e.length;Object.keys(t.getters).forEach((function(i){if(i.slice(0,r)===e){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return t.getters[i]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}function k(t,e,n,r){var i=t._mutations[e]||(t._mutations[e]=[]);i.push((function(e){n.call(t,r.state,e)}))}function A(t,e,n,r){var i=t._actions[e]||(t._actions[e]=[]);i.push((function(e){var i=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e);return h(i)||(i=Promise.resolve(i)),t._devtoolHook?i.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):i}))}function M(t,e,n,r){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)})}function T(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function I(t,e){return e.reduce((function(t,e){return t[e]}),t)}function E(t,e,n){return c(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function P(t){y&&t===y||(y=t,r(y))}b.state.get=function(){return this._vm._data.$$state},b.state.set=function(t){0},m.prototype.commit=function(t,e,n){var r=this,i=E(t,e,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),l=this._mutations[o];l&&(this._withCommit((function(){l.forEach((function(t){t(a)}))})),this._subscribers.slice().forEach((function(t){return t(s,r.state)})))},m.prototype.dispatch=function(t,e){var n=this,r=E(t,e),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(a,n.state)}))}catch(u){0}var l=s.length>1?Promise.all(s.map((function(t){return t(o)}))):s[0](o);return new Promise((function(t,e){l.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,n.state)}))}catch(u){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(a,n.state,t)}))}catch(u){0}e(t)}))}))}},m.prototype.subscribe=function(t,e){return _(t,this._subscribers,e)},m.prototype.subscribeAction=function(t,e){var n="function"===typeof t?{before:t}:t;return _(n,this._actionSubscribers,e)},m.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},m.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},m.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),S(this,this.state,t,this._modules.get(t),n.preserveState),w(this,this.state)},m.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=I(e.state,t.slice(0,-1));y.delete(n,t[t.length-1])})),x(this)},m.prototype.hasModule=function(t){return"string"===typeof t&&(t=[t]),this._modules.isRegistered(t)},m.prototype.hotUpdate=function(t){this._modules.update(t),x(this,!0)},m.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(m.prototype,b);var j=z((function(t,e){var n={};return B(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=V(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,e,n):e[i]},n[r].vuex=!0})),n})),L=z((function(t,e){var n={};return B(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.commit;if(t){var o=V(this.$store,"mapMutations",t);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),D=z((function(t,e){var n={};return B(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||V(this.$store,"mapGetters",t))return this.$store.getters[i]},n[r].vuex=!0})),n})),R=z((function(t,e){var n={};return B(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var o=V(this.$store,"mapActions",t);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),N=function(t){return{mapState:j.bind(null,t),mapGetters:D.bind(null,t),mapMutations:L.bind(null,t),mapActions:R.bind(null,t)}};function B(t){return F(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function F(t){return Array.isArray(t)||c(t)}function z(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function V(t,e,n){var r=t._modulesNamespaceMap[n];return r}function q(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var n=t.filter;void 0===n&&(n=function(t,e,n){return!0});var r=t.transformer;void 0===r&&(r=function(t){return t});var i=t.mutationTransformer;void 0===i&&(i=function(t){return t});var o=t.actionFilter;void 0===o&&(o=function(t,e){return!0});var a=t.actionTransformer;void 0===a&&(a=function(t){return t});var s=t.logMutations;void 0===s&&(s=!0);var u=t.logActions;void 0===u&&(u=!0);var c=t.logger;return void 0===c&&(c=console),function(t){var h=l(t.state);"undefined"!==typeof c&&(s&&t.subscribe((function(t,o){var a=l(o);if(n(t,h,a)){var s=W(),u=i(t),f="mutation "+t.type+s;G(c,f,e),c.log("%c prev state","color: #9E9E9E; font-weight: bold",r(h)),c.log("%c mutation","color: #03A9F4; font-weight: bold",u),c.log("%c next state","color: #4CAF50; font-weight: bold",r(a)),H(c)}h=a})),u&&t.subscribeAction((function(t,n){if(o(t,n)){var r=W(),i=a(t),s="action "+t.type+r;G(c,s,e),c.log("%c action","color: #03A9F4; font-weight: bold",i),H(c)}})))}}function G(t,e,n){var r=n?t.groupCollapsed:t.group;try{r.call(t,e)}catch(i){t.log(e)}}function H(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function W(){var t=new Date;return" @ "+$(t.getHours(),2)+":"+$(t.getMinutes(),2)+":"+$(t.getSeconds(),2)+"."+$(t.getMilliseconds(),3)}function U(t,e){return new Array(e+1).join(t)}function $(t,e){return U("0",e-t.toString().length)+t}var Y={Store:m,install:P,version:"3.6.0",mapState:j,mapMutations:L,mapGetters:D,mapActions:R,createNamespacedHelpers:N,createLogger:q};e["a"]=Y}).call(this,n("c8ba"))},"2f9a":function(t,e){t.exports=function(){}},"2fae":function(t,e,n){"use strict";function r(t){var e=this;if(e instanceof r||(e=new r),e.tail=null,e.head=null,e.length=0,t&&"function"===typeof t.forEach)t.forEach((function(t){e.push(t)}));else if(arguments.length>0)for(var n=0,i=arguments.length;n1)n=e;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var i=0;null!==r;i++)n=t(n,r.value,i),r=r.next;return n},r.prototype.reduceReverse=function(t,e){var n,r=this.tail;if(arguments.length>1)n=e;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var i=this.length-1;null!==r;i--)n=t(n,r.value,i),r=r.prev;return n},r.prototype.toArray=function(){for(var t=new Array(this.length),e=0,n=this.head;null!==n;e++)t[e]=n.value,n=n.next;return t},r.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,n=this.tail;null!==n;e++)t[e]=n.value,n=n.prev;return t},r.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var n=new r;if(ethis.length&&(e=this.length);for(var i=0,o=this.head;null!==o&&ithis.length&&(e=this.length);for(var i=this.length,o=this.tail;null!==o&&i>e;i--)o=o.prev;for(;null!==o&&i>t;i--,o=o.prev)n.push(o.value);return n},r.prototype.splice=function(t,e,...n){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var r=0,o=this.head;null!==o&&r>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}function et(t,e,n){for(var r=n?"invTrans":"trans",i=e[r],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),h=2*u,f=c.left,d=c.top;a.push(f,d),l=l&&o&&f===o[h]&&d===o[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=a,e[r]=n?X(s,a):X(a,s))}function nt(t){return"CANVAS"===t.nodeName.toUpperCase()}var rt=/([&<>"'])/g,it={"&":"&","<":"<",">":">",'"':""","'":"'"};function ot(t){return null==t?"":(t+"").replace(rt,(function(t,e){return it[e]}))}var at=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,st=[],lt=g["a"].browser.firefox&&+g["a"].browser.version.split(".")[0]<39;function ut(t,e,n,r){return n=n||{},r?ct(t,e,n):lt&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):ct(t,e,n),n}function ct(t,e,n){if(g["a"].domSupported&&t.getBoundingClientRect){var r=e.clientX,i=e.clientY;if(nt(t)){var o=t.getBoundingClientRect();return n.zrX=r-o.left,void(n.zrY=i-o.top)}if(J(st,t,r,i))return n.zrX=st[0],void(n.zrY=st[1])}n.zrX=n.zrY=0}function ht(t){return t||window.event}function ft(t,e,n){if(e=ht(e),null!=e.zrX)return e;var r=e.type,i=r&&r.indexOf("touch")>=0;if(i){var o="touchend"!==r?e.targetTouches[0]:e.changedTouches[0];o&&ut(t,o,e,n)}else{ut(t,e,e,n);var a=dt(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&at.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function dt(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(null==n||null==r)return e;var i=0!==r?Math.abs(r):Math.abs(n),o=r>0?-1:r<0?1:n>0?-1:1;return 3*i*o}function pt(t,e,n,r){t.addEventListener(e,n,r)}function gt(t,e,n,r){t.removeEventListener(e,n,r)}var vt=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function yt(t){return 2===t.which||3===t.which}var mt=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var r=t.touches;if(r){for(var i={points:[],touches:[],target:e,event:t},o=0,a=r.length;o1&&r&&r.length>1){var o=bt(r)/bt(i);!isFinite(o)&&(o=1),e.pinchScale=o;var a=_t(r);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}};function wt(){return[1,0,0,1,0,0]}function St(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Ot(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 Ct(t,e,n){var r=e[0]*n[0]+e[2]*n[1],i=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function kt(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function At(t,e,n){var r=e[0],i=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(n),c=Math.cos(n);return t[0]=r*c+a*u,t[1]=-r*u+a*c,t[2]=i*c+s*u,t[3]=-i*u+c*s,t[4]=c*o+u*l,t[5]=c*l-u*o,t}function Mt(t,e,n){var r=n[0],i=n[1];return t[0]=e[0]*r,t[1]=e[1]*i,t[2]=e[2]*r,t[3]=e[3]*i,t[4]=e[4]*r,t[5]=e[5]*i,t}function Tt(t,e){var n=e[0],r=e[2],i=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*r;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-r*l,t[3]=n*l,t[4]=(r*s-a*i)*l,t[5]=(o*i-n*s)*l,t):null}function It(t){var e=wt();return Ot(e,t),e}var Et=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,r){t.x=e.x+n.x*r,t.y=e.y+n.y*r},t.lerp=function(t,e,n,r){var i=1-r;t.x=i*e.x+r*n.x,t.y=i*e.y+r*n.y},t}(),Pt=Et,jt=Math.min,Lt=Math.max,Dt=new Pt,Rt=new Pt,Nt=new Pt,Bt=new Pt,Ft=new Pt,zt=new Pt,Vt=function(){function t(t,e,n,r){n<0&&(t+=n,n=-n),r<0&&(e+=r,r=-r),this.x=t,this.y=e,this.width=n,this.height=r}return t.prototype.union=function(t){var e=jt(t.x,this.x),n=jt(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Lt(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Lt(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,r=t.height/e.height,i=wt();return kt(i,i,[-e.x,-e.y]),Mt(i,i,[n,r]),kt(i,i,[t.x,t.y]),i},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var r=this,i=r.x,o=r.x+r.width,a=r.y,s=r.y+r.height,l=e.x,u=e.x+e.width,c=e.y,h=e.y+e.height,f=!(op&&(p=b,gp&&(p=_,y=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];return e.x=n.x*i+a,e.y=n.y*o+s,e.width=n.width*i,e.height=n.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))}Dt.x=Nt.x=n.x,Dt.y=Bt.y=n.y,Rt.x=Bt.x=n.x+n.width,Rt.y=Nt.y=n.y+n.height,Dt.transform(r),Bt.transform(r),Rt.transform(r),Nt.transform(r),e.x=jt(Dt.x,Rt.x,Nt.x,Bt.x),e.y=jt(Dt.y,Rt.y,Nt.y,Bt.y);var l=Lt(Dt.x,Rt.x,Nt.x,Bt.x),u=Lt(Dt.y,Rt.y,Nt.y,Bt.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}(),qt=Vt,Gt="silent";function Ht(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Wt}}function Wt(){vt(this.event)}var Ut=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return p(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(U),$t=function(){function t(t,e){this.x=t,this.y=e}return t}(),Yt=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Xt=new qt(0,0,0,0),Kt=function(t){function e(e,n,r,i,o){var a=t.call(this)||this;return a._hovered=new $t(0,0),a.storage=e,a.painter=n,a.painterRoot=i,a._pointerSize=o,r=r||new Ut,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new H(a),a}return p(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(v["each"](Yt,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,r=Jt(this,e,n),i=this._hovered,o=i.target;o&&!o.__zr&&(i=this.findHover(i.x,i.y),o=i.target);var a=this._hovered=r?new $t(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new $t(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){t=t||{};var r=t.target;if(!r||!r.silent){var i="on"+e,o=Ht(e,t,n);while(r)if(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(e,o),r=r.__hostTarget?r.__hostTarget:r.parent,o.cancelBubble)break;o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"===typeof t[i]&&t[i].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){var r=this.storage.getDisplayList(),i=new $t(t,e);if(Qt(r,i,t,e,n),this._pointerSize&&!i.target){for(var o=[],a=this._pointerSize,s=a/2,l=new qt(t-s,e-s,a,a),u=r.length-1;u>=0;u--){var c=r[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(Xt.copy(c.getBoundingRect()),c.transform&&Xt.applyTransform(c.transform),Xt.intersect(l)&&o.push(c))}if(o.length)for(var h=4,f=Math.PI/12,d=2*Math.PI,p=0;p=0;o--){var a=t[o],s=void 0;if(a!==i&&!a.ignore&&(s=Zt(a,n,r))&&(!e.topTarget&&(e.topTarget=a),s!==Gt)){e.target=a;break}}}function Jt(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}v["each"](["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){Kt.prototype[t]=function(e){var n,r,i=e.zrX,o=e.zrY,a=Jt(this,i,o);if("mouseup"===t&&a||(n=this.findHover(i,o),r=n.target),"mousedown"===t)this._downEl=r,this._downPoint=[e.zrX,e.zrY],this._upEl=r;else if("mouseup"===t)this._upEl=r;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||L(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));var te=Kt,ee=32,ne=7;function re(t){var e=0;while(t>=ee)e|=1&t,t>>=1;return t+e}function ie(t,e,n,r){var i=e+1;if(i===n)return 1;if(r(t[i++],t[e])<0){while(i=0)i++;return i-e}function oe(t,e,n){n--;while(e>>1,i(a,t[o])<0?l=o:s=o+1;var u=r-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:while(u>0)t[s+u]=t[s+u-1],u--}t[s]=a}}function se(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])>0){s=r-i;while(l0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{s=i+1;while(ls&&(l=s);var u=a;a=i-l,l=i-u}a++;while(a>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function le(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])<0){s=i+1;while(ls&&(l=s);var u=a;a=i-l,l=i-u}else{s=r-i;while(l=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}a++;while(a>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function ue(t,e){var n,r,i=ne,o=0,a=0;o=t.length;var s=[];function l(t,e){n[a]=t,r[a]=e,a+=1}function u(){while(a>1){var t=a-2;if(t>=1&&r[t-1]<=r[t]+r[t+1]||t>=2&&r[t-2]<=r[t]+r[t-1])r[t-1]r[t+1])break;h(t)}}function c(){while(a>1){var t=a-2;t>0&&r[t-1]=ne||d>=ne);if(p)break;g<0&&(g=0),g+=2}if(i=g,i<1&&(i=1),1===r){for(l=0;l=0;l--)t[d+l]=t[f+l];if(0===r){y=!0;break}}if(t[h--]=s[c--],1===--a){y=!0;break}if(v=a-se(t[u],s,0,a,a-1,e),0!==v){for(h-=v,c-=v,a-=v,d=h+1,f=c+1,l=0;l=ne||v>=ne);if(y)break;p<0&&(p=0),p+=2}if(i=p,i<1&&(i=1),1===a){for(h-=r,u-=r,d=h+1,f=u+1,l=r-1;l>=0;l--)t[d+l]=t[f+l];t[h]=s[c]}else{if(0===a)throw new Error;for(f=h-(a-1),l=0;l=0;l--)t[d+l]=t[f+l];t[h]=s[c]}else for(f=h-(a-1),l=0;ls&&(l=s),ae(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(0!==i);a.forceMergeRuns()}}var he=1,fe=2,de=4,pe=!1;function ge(){pe||(pe=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function ve(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var ye,me=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=ve}return t.prototype.traverse=function(t,e){for(var n=0;n0&&(u.__clipPaths=[]),isNaN(u.z)&&(ge(),u.z=0),isNaN(u.z2)&&(ge(),u.z2=0),isNaN(u.zlevel)&&(ge(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,n);var f=t.getTextContent();f&&this._updateAndAddDisplayable(f,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e=0&&this._roots.splice(r,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}(),be=me;ye=g["a"].hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var _e=ye,xe={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,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r))},elasticOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/r)+1)},elasticInOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*.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?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-xe.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*xe.bounceIn(2*t):.5*xe.bounceOut(2*t-1)+.5}},we=xe,Se=Math.pow,Oe=Math.sqrt,Ce=1e-8,ke=1e-4,Ae=Oe(3),Me=1/3,Te=y(),Ie=y(),Ee=y();function Pe(t){return t>-Ce&&tCe||t<-Ce}function Le(t,e,n,r,i){var o=1-i;return o*o*(o*t+3*i*e)+i*i*(i*r+3*o*n)}function De(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)}function Re(t,e,n,r,i,o){var a=r+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-i,c=s*s-3*a*l,h=s*l-9*a*u,f=l*l-3*s*u,d=0;if(Pe(c)&&Pe(h))if(Pe(s))o[0]=0;else{var p=-l/s;p>=0&&p<=1&&(o[d++]=p)}else{var g=h*h-4*c*f;if(Pe(g)){var v=h/c,y=(p=-s/a+v,-v/2);p>=0&&p<=1&&(o[d++]=p),y>=0&&y<=1&&(o[d++]=y)}else if(g>0){var m=Oe(g),b=c*s+1.5*a*(-h+m),_=c*s+1.5*a*(-h-m);b=b<0?-Se(-b,Me):Se(b,Me),_=_<0?-Se(-_,Me):Se(_,Me);p=(-s-(b+_))/(3*a);p>=0&&p<=1&&(o[d++]=p)}else{var x=(2*c*s-3*a*h)/(2*Oe(c*c*c)),w=Math.acos(x)/3,S=Oe(c),O=Math.cos(w),C=(p=(-s-2*S*O)/(3*a),y=(-s+S*(O+Ae*Math.sin(w)))/(3*a),(-s+S*(O-Ae*Math.sin(w)))/(3*a));p>=0&&p<=1&&(o[d++]=p),y>=0&&y<=1&&(o[d++]=y),C>=0&&C<=1&&(o[d++]=C)}}return d}function Ne(t,e,n,r,i){var o=6*n-12*e+6*t,a=9*e+3*r-3*t-9*n,s=3*e-3*t,l=0;if(Pe(a)){if(je(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(Pe(c))i[0]=-o/(2*a);else if(c>0){var h=Oe(c),f=(u=(-o+h)/(2*a),(-o-h)/(2*a));u>=0&&u<=1&&(i[l++]=u),f>=0&&f<=1&&(i[l++]=f)}}return l}function Be(t,e,n,r,i,o){var a=(e-t)*i+t,s=(n-e)*i+e,l=(r-n)*i+n,u=(s-a)*i+a,c=(l-s)*i+s,h=(c-u)*i+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=r}function Fe(t,e,n,r,i,o,a,s,l,u,c){var h,f,d,p,g,v=.005,y=1/0;Te[0]=l,Te[1]=u;for(var m=0;m<1;m+=.05)Ie[0]=Le(t,n,i,a,m),Ie[1]=Le(e,r,o,s,m),p=R(Te,Ie),p=0&&p=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(Pe(c)){u=-a/(2*o);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var h=Oe(c),f=(u=(-a+h)/(2*o),(-a-h)/(2*o));u>=0&&u<=1&&(i[l++]=u),f>=0&&f<=1&&(i[l++]=f)}}return l}function He(t,e,n){var r=t+n-2*e;return 0===r?.5:(t-e)/r}function We(t,e,n,r,i){var o=(e-t)*r+t,a=(n-e)*r+e,s=(a-o)*r+o;i[0]=t,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function Ue(t,e,n,r,i,o,a,s,l){var u,c=.005,h=1/0;Te[0]=a,Te[1]=s;for(var f=0;f<1;f+=.05){Ie[0]=Ve(t,n,i,f),Ie[1]=Ve(e,r,o,f);var d=R(Te,Ie);d=0&&d=1?1:Re(0,r,o,1,t,s)&&Le(0,i,a,1,s[0])}}}var Ke=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||v["noop"],this.ondestroy=t.ondestroy||v["noop"],this.onrestart=t.onrestart||v["noop"],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){var n=this._life,r=t-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Object(v["isFunction"])(t)?t:we[t]||Xe(t)},t}(),Ze=Ke,Qe=n("41ef"),Je=n("7a29"),tn=Array.prototype.slice;function en(t,e,n){return(e-t)*n+t}function nn(t,e,n,r){for(var i=e.length,o=0;or?e:t,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;sa;if(s)r.length=a;else for(var l=o;l=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var r=this.keyframes,i=r.length,o=!1,a=mn,s=e;if(Object(v["isArrayLike"])(e)){var l=hn(e);a=l,(1===l&&!Object(v["isNumber"])(e[0])||2===l&&!Object(v["isNumber"])(e[0][0]))&&(o=!0)}else if(Object(v["isNumber"])(e)&&!Object(v["eqNaN"])(e))a=fn;else if(Object(v["isString"])(e))if(isNaN(+e)){var u=Qe["parse"](e);u&&(s=u,a=gn)}else a=fn;else if(Object(v["isGradientObject"])(e)){var c=Object(v["extend"])({},s);c.colorStops=Object(v["map"])(e.colorStops,(function(t){return{offset:t.offset,color:Qe["parse"](t.color)}})),Object(Je["m"])(e)?a=vn:Object(Je["o"])(e)&&(a=yn),s=c}0===i?this.valType=a:a===this.valType&&a!==mn||(o=!0),this.discrete=this.discrete||o;var h={time:t,value:s,rawValue:e,percent:0};return n&&(h.easing=n,h.easingFunc=Object(v["isFunction"])(n)?n:we[n]||Xe(n)),r.push(h),h},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=_n(r),l=bn(r),u=0;u=0;n--)if(l[n].percent<=e)break;n=d(n,u-2)}else{for(n=f;ne)break;n=d(n-1,u-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=e;var g=i.percent-r.percent,y=0===g?1:d((e-r.percent)/g,1);i.easingFunc&&(y=i.easingFunc(y));var m=o?this._additiveValue:h?xn:t[c];if(!_n(s)&&!h||m||(m=this._additiveValue=[]),this.discrete)t[c]=y<1?r.rawValue:i.rawValue;else if(_n(s))s===dn?nn(m,r[a],i[a],y):rn(m,r[a],i[a],y);else if(bn(s)){var b=r[a],_=i[a],x=s===vn;t[c]={type:x?"linear":"radial",x:en(b.x,_.x,y),y:en(b.y,_.y,y),colorStops:Object(v["map"])(b.colorStops,(function(t,e){var n=_.colorStops[e];return{offset:en(t.offset,n.offset,y),color:cn(nn([],t.color,n.color,y))}})),global:_.global},x?(t[c].x2=en(b.x2,_.x2,y),t[c].y2=en(b.y2,_.y2,y)):t[c].r=en(b.r,_.r,y)}else if(h)nn(m,r[a],i[a],y),o||(t[c]=cn(m));else{var w=en(r[a],i[a],y);o?this._additiveValue=w:t[c]=w}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,r=this._additiveValue;e===fn?t[n]=t[n]+r:e===gn?(Qe["parse"](t[n],xn),on(xn,xn,r,1),t[n]=cn(xn)):e===dn?on(t[n],t[n],r,1):e===pn&&an(t[n],t[n],r,1)},t}(),Sn=function(){function t(t,e,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&r?Object(v["logError"])("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Object(v["keys"])(e),n)},t.prototype.whenWithKeys=function(t,e,n,r){for(var i=this._tracks,o=0;o0&&s.addKeyframe(0,un(l),r),this._trackKeys.push(a)}s.addKeyframe(t,un(e[a]),r)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],r=this._maxTime||0,i=0;i1){var a=o.pop();i.addKeyframe(a.time,t[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}(),On=Sn;function Cn(){return(new Date).getTime()}var kn=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return p(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){var e=Cn()-this._pausedTime,n=e-this._time,r=this._head;while(r){var i=r.next,o=r.step(e,n);o?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;function e(){t._running&&(_e(e),!t._paused&&t.update())}this._running=!0,_e(e)},e.prototype.start=function(){this._running||(this._time=Cn(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Cn(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Cn()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){var t=this._head;while(t){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new On(t,e.loop);return this.addAnimator(n),n},e}(U),An=kn,Mn=300,Tn=g["a"].domSupported,In=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=v["map"](t,(function(t){var e=t.replace("mouse","pointer");return n.hasOwnProperty(e)?e:t}));return{mouse:t,touch:e,pointer:r}}(),En={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Pn=!1;function jn(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Ln(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 Dn(t){t&&(t.zrByTouch=!0)}function Rn(t,e){return ft(t.dom,new Bn(t,e),!0)}function Nn(t,e){var n=e,r=!1;while(n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot))n=n.parentNode;return r}var Bn=function(){function t(t,e){this.stopPropagation=v["noop"],this.stopImmediatePropagation=v["noop"],this.preventDefault=v["noop"],this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return t}(),Fn={mousedown:function(t){t=ft(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=ft(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=ft(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=ft(this.dom,t);var e=t.toElement||t.relatedTarget;Nn(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Pn=!0,t=ft(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Pn||(t=ft(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=ft(this.dom,t),Dn(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Fn.mousemove.call(this,t),Fn.mousedown.call(this,t)},touchmove:function(t){t=ft(this.dom,t),Dn(t),this.handler.processGesture(t,"change"),Fn.mousemove.call(this,t)},touchend:function(t){t=ft(this.dom,t),Dn(t),this.handler.processGesture(t,"end"),Fn.mouseup.call(this,t),+new Date-+this.__lastTouchMomenter||t<-er}var rr=[],ir=[],or=wt(),ar=Math.abs,sr=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 nr(this.rotation)||nr(this.x)||nr(this.y)||nr(this.scaleX-1)||nr(this.scaleY-1)||nr(this.skewX)||nr(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||wt(),e?this.getLocalTransform(n):tr(n),t&&(e?Ct(n,t,n):Ot(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&tr(n)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(rr);var n=rr[0]<0?-1:1,r=rr[1]<0?-1:1,i=((rr[0]-n)*e+n)/rr[0]||0,o=((rr[1]-r)*e+r)/rr[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||wt(),Tt(this.invTransform,t)},t.prototype.getComputedTransform=function(){var t=this,e=[];while(t)e.push(t),t=t.parent;while(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],n=t[2]*t[2]+t[3]*t[3],r=Math.atan2(t[1],t[0]),i=Math.PI/2+r-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(Ct(ir,t.invTransform,e),e=ir);var n=this.originX,r=this.originY;(n||r)&&(or[4]=n,or[5]=r,Ct(ir,e,or),ir[4]-=n,ir[5]-=r,e=ir),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 n=[t,e],r=this.invTransform;return r&&F(n,n,r),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],r=this.transform;return r&&F(n,n,r),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&ar(t[0]-1)>1e-10&&ar(t[3]-1)>1e-10?Math.sqrt(ar(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){ur(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,r=t.originY||0,i=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,f=t.skewY?Math.tan(-t.skewY):0;if(n||r||a||s){var d=n+a,p=r+s;e[4]=-d*i-h*p*o,e[5]=-p*o-f*d*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=f*i,e[2]=h*o,l&&At(e,e,l),e[4]+=n+u,e[5]+=r+c,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}(),lr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function ur(t,e){for(var n=0;n=0?parseFloat(t)/100*e:parseFloat(t):t}function xr(t,e,n){var r=e.position||"inside",i=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",h="top";if(r instanceof Array)l+=_r(r[0],n.width),u+=_r(r[1],n.height),c=null,h=null;else switch(r){case"left":l-=i,u+=s,c="right",h="middle";break;case"right":l+=i+a,u+=s,h="middle";break;case"top":l+=a/2,u-=i,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=a-i,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=o-i,c="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=o-i,h="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,c="right",h="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=c,t.verticalAlign=h,t}var wr="__zr_normal__",Sr=lr.concat(["ignore"]),Or=Object(v["reduce"])(lr,(function(t,e){return t[e]=!0,t}),{ignore:!1}),Cr={},kr=new qt(0,0,0,0),Ar=function(){function t(t){this.id=Object(v["guid"])(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=t,r[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=e.innerTransformable,o=void 0,a=void 0,s=!1;i.parent=r?this:null;var l=!1;if(i.copyTransform(e),null!=n.position){var u=kr;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),r||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Cr,n,u):xr(Cr,n,u),i.x=Cr.x,i.y=Cr.y,o=Cr.align,a=Cr.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var h=void 0,f=void 0;"center"===c?(h=.5*u.width,f=.5*u.height):(h=_r(c[0],u.width),f=_r(c[1],u.height)),l=!0,i.originX=-i.x+h+(r?0:u.x),i.originY=-i.y+f+(r?0:u.y)}}null!=n.rotation&&(i.rotation=n.rotation);var d=n.offset;d&&(i.x+=d[0],i.y+=d[1],l||(i.originX=-d[0],i.originY=-d[1]));var p=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,y=void 0,m=void 0;p&&this.canBeInsideText()?(v=n.insideFill,y=n.insideStroke,null!=v&&"auto"!==v||(v=this.getInsideTextFill()),null!=y&&"auto"!==y||(y=this.getInsideTextStroke(v),m=!0)):(v=n.outsideFill,y=n.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|=he,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Qn:Zn},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof e&&Object(Qe["parse"])(e);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,Object(Qe["stringify"])(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},Object(v["extend"])(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(Object(v["isObject"])(t))for(var n=t,r=Object(v["keys"])(n),i=0;i0},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(wr,!1,t)},t.prototype.useState=function(t,e,n,r){var i=t===wr,o=this.hasState();if(o||!i){var a=this.currentStates,s=this.stateTransition;if(!(Object(v["indexOf"])(a,t)>=0)||!e&&1!==a.length){var l;if(this.stateProxy&&!i&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),l||i){i||this.saveCurrentToNormalState(l);var u=!!(l&&l.hoverLayer||r);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!n&&!this.__inHover&&s&&s.duration>0,s);var c=this._textContent,h=this._textGuide;return c&&c.useState(t,e,n,u),h&&h.useState(t,e,n,u),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~he),l}Object(v["logError"])("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var r=[],i=this.currentStates,o=t.length,a=o===i.length;if(a)for(var s=0;s0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~he)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var r=this.currentStates.slice(),i=Object(v["indexOf"])(r,t),o=Object(v["indexOf"])(r,e)>=0;i>=0?o?r.splice(i,1):r[i]=e:n&&!o&&r.push(e),this.useStates(r)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},r=0;r=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,r=n.length,i=[],o=0;o0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var f=0;f0||i.force&&!a.length){var C=void 0,k=void 0,A=void 0;if(s){k={},f&&(C={});for(x=0;x<_;x++){m=g[x];k[m]=n[m],f?C[m]=r[m]:n[m]=r[m]}}else if(f){A={};for(x=0;x<_;x++){m=g[x];A[m]=un(n[m]),Er(n,r,m)}}w=new On(n,!1,!1,h?Object(v["filter"])(p,(function(t){return t.targetName===e})):null);w.targetName=e,i.scope&&(w.scope=i.scope),f&&C&&w.whenWithKeys(0,C,g),A&&w.whenWithKeys(0,A,g),w.whenWithKeys(null==u?500:u,s?k:r,g).delay(c||0),t.addAnimator(w,e),a.push(w)}}Object(v["mixin"])(Ar,U),Object(v["mixin"])(Ar,cr);var Dr=Ar,Rr=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return p(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n=0&&(n.splice(r,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=v["indexOf"](this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,r=n[e];if(t&&t!==this&&t.parent!==this&&t!==r){n[e]=t,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,r=v["indexOf"](n,t);return r<0||(n.splice(r,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n0&&(this._stillFrameAccum++,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,n){return this.handler.on(t,e,n),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;e0){if(t<=i)return a;if(t>=o)return s}else{if(t>=i)return a;if(t<=o)return s}else{if(t===i)return a;if(t===o)return s}return(t-i)/l*u+a}function Jr(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return v["isString"](t)?Zr(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function ti(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),Kr),t=(+t).toFixed(e),n?t:+t}function ei(t){return t.sort((function(t,e){return t-e})),t}function ni(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return ri(t)}function ri(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,i=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}function ii(t,e){var n=Math.log,r=Math.LN10,i=Math.floor(n(t[1]-t[0])/r),o=Math.round(n(Math.abs(e[1]-e[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function oi(t,e,n){if(!t[e])return 0;var r=ai(t,n);return r[e]||0}function ai(t,e){var n=v["reduce"](t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return[];var r=Math.pow(10,e),i=v["map"](t,(function(t){return(isNaN(t)?0:t)/n*r*100})),o=100*r,a=v["map"](i,(function(t){return Math.floor(t)})),s=v["reduce"](a,(function(t,e){return t+e}),0),l=v["map"](i,(function(t,e){return t-a[e]}));while(su&&(u=l[h],c=h);++a[c],l[c]=0,++s}return v["map"](a,(function(t){return t/r}))}function si(t,e){var n=Math.max(ni(t),ni(e)),r=t+e;return n>Kr?r:ti(r,n)}var li=9007199254740991;function ui(t){var e=2*Math.PI;return(t%e+e)%e}function ci(t){return t>-Xr&&t=10&&e++,e}function gi(t,e){var n,r=pi(t),i=Math.pow(10,r),o=t/i;return n=e?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10,t=n*i,r>=-20?+t.toFixed(r<0?-r:0):t}function vi(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),i=+t[r-1],o=n-r;return o?i+o*(t[r]-i):i}function yi(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,r=0;r=0||i&&v["indexOf"](i,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var wo=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],So=xo(wo),Oo=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return So(this,t,e)},t}(),Co=new hr["a"](50);function ko(t){if("string"===typeof t){var e=Co.get(t);return e&&e.image}return t}function Ao(t,e,n,r,i){if(t){if("string"===typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=Co.get(t),a={hostEl:n,cb:r,cbPayload:i};return o?(e=o.image,!To(e)&&o.pending.push(a)):(e=fr["d"].loadImage(t,Mo,Mo),e.__zrImageSrc=t,Co.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function Mo(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=a;l++)s-=a;var u=pr(n,e);return u>s&&(n="",u=0),s=t-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=t,i}function jo(t,e){var n=e.containerWidth,r=e.font,i=e.contentWidth;if(!n)return"";var o=pr(t,r);if(o<=n)return t;for(var a=0;;a++){if(o<=i||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?Lo(t,i,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,s),o=pr(t,r)}return""===t&&(t=e.placeholder),t}function Lo(t,e,n,r){for(var i=0,o=0,a=t.length;od&&c){var p=Math.floor(d/l);n=n.slice(0,p)}if(t&&a&&null!=h)for(var g=Po(h,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),y=0;yl&&zo(n,t.substring(l,u),e,s),zo(n,r[2],e,s,r[1]),l=Io.lastIndex}lo){w>0?(b.tokens=b.tokens.slice(0,w),y(b,x,_),n.lines=n.lines.slice(0,m+1)):n.lines=n.lines.slice(0,m);break t}var T=O.width,I=null==T||"auto"===T;if("string"===typeof T&&"%"===T.charAt(T.length-1))S.percentWidth=T,c.push(S),S.contentWidth=pr(S.text,A);else{if(I){var E=O.backgroundColor,P=E&&E.image;P&&(P=ko(P),To(P)&&(S.width=Math.max(S.width,P.width*M/P.height)))}var j=p&&null!=i?i-x:null;null!=j&&j0&&p+r.accumWidth>r.width&&(o=e.split("\n"),h=!0),r.accumWidth=p}else{var g=Ho(e,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+d,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var v=0;v=33&&e<=383}var qo=Object(v["reduce"])(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function Go(t){return!Vo(t)||!!qo[t]}function Ho(t,e,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,h=0;hn:i+c+d>n)?c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),o.push(s),a.push(c-u),l+=f,u+=d,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=f,c=d)):p?(o.push(l),a.push(u),l=f,u=d):(o.push(f),a.push(d)):(c+=d,p?(l+=f,u+=d):(l&&(s+=l,l="",u=0),s+=f))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=i),{accumWidth:c,lines:o,linesWidths:a}}var Wo="__zr_style_"+Math.round(10*Math.random()),Uo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},$o={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Uo[Wo]=!0;var Yo=["z","z2","invisible"],Xo=["invisible"],Ko=function(t){function e(e){return t.call(this,e)||this}return p(e,t),e.prototype._init=function(e){for(var n=Object(v["keys"])(e),r=0;r1e-4)return s[0]=t-n,s[1]=e-r,l[0]=t+n,void(l[1]=e+r);if(aa[0]=ia(i)*n+t,aa[1]=ra(i)*r+e,sa[0]=ia(o)*n+t,sa[1]=ra(o)*r+e,u(s,aa,sa),c(l,aa,sa),i%=oa,i<0&&(i+=oa),o%=oa,o<0&&(o+=oa),i>o&&!a?o+=oa:ii&&(la[0]=ia(d)*n+t,la[1]=ra(d)*r+e,u(s,la,s),c(l,la,l))}var va={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ya=[],ma=[],ba=[],_a=[],xa=[],wa=[],Sa=Math.min,Oa=Math.max,Ca=Math.cos,ka=Math.sin,Aa=Math.abs,Ma=Math.PI,Ta=2*Ma,Ia="undefined"!==typeof Float32Array,Ea=[];function Pa(t){var e=Math.round(t/Ma*1e8)/1e8;return e%2*Ma}function ja(t,e){var n=Pa(t[0]);n<0&&(n+=Ta);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=Ta?i=n+Ta:e&&n-i>=Ta?i=n-Ta:!e&&n>i?i=n+(Ta-Pa(n-i)):e&&n0&&(this._ux=Aa(n/Xn/t)||0,this._uy=Aa(n/Xn/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(va.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 n=Aa(t-this._xi),r=Aa(e-this._yi),i=n>this._ux||r>this._uy;if(this.addData(va.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){return this._drawPendingPt(),this.addData(va.C,t,e,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,r,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,r){return this._drawPendingPt(),this.addData(va.Q,t,e,n,r),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,r),this._xi=n,this._yi=r,this},t.prototype.arc=function(t,e,n,r,i,o){this._drawPendingPt(),Ea[0]=r,Ea[1]=i,ja(Ea,o),r=Ea[0],i=Ea[1];var a=i-r;return this.addData(va.A,t,e,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,r,i,o),this._xi=Ca(i)*n+t,this._yi=ka(i)*n+e,this},t.prototype.arcTo=function(t,e,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,r,i),this},t.prototype.rect=function(t,e,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,r),this.addData(va.R,t,e,n,r),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(va.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,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||!Ia||(this.data=new Float32Array(e));for(var n=0;nu.length&&(this._expandData(),u=this.data);for(var c=0;c0&&(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;e11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){ba[0]=ba[1]=xa[0]=xa[1]=Number.MAX_VALUE,_a[0]=_a[1]=wa[0]=wa[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,r=0,i=0,o=0;for(t=0;tn||Aa(m)>r||h===e-1)&&(p=Math.sqrt(y*y+m*m),i=g,o=v);break;case va.C:var b=t[h++],_=t[h++],x=(g=t[h++],v=t[h++],t[h++]),w=t[h++];p=ze(i,o,b,_,g,v,x,w,10),i=x,o=w;break;case va.Q:b=t[h++],_=t[h++],g=t[h++],v=t[h++];p=$e(i,o,b,_,g,v,10),i=g,o=v;break;case va.A:var S=t[h++],O=t[h++],C=t[h++],k=t[h++],A=t[h++],M=t[h++],T=M+A;h+=1;t[h++];d&&(a=Ca(A)*C+S,s=ka(A)*k+O),p=Oa(C,k)*Sa(Ta,Math.abs(M)),i=Ca(T)*C+S,o=ka(T)*k+O;break;case va.R:a=i=t[h++],s=o=t[h++];var I=t[h++],E=t[h++];p=2*I+2*E;break;case va.Z:y=a-i,m=s-o;p=Math.sqrt(y*y+m*m),i=a,o=s;break}p>=0&&(l[c++]=p,u+=p)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,r,i,o,a,s,l,u,c,h,f,d=this.data,p=this._ux,g=this._uy,v=this._len,y=e<1,m=0,b=0,_=0;if(!y||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=this._pathLen,c=e*u,c))t:for(var x=0;x0&&(t.lineTo(h,f),_=0),w){case va.M:n=i=d[x++],r=o=d[x++],t.moveTo(i,o);break;case va.L:a=d[x++],s=d[x++];var O=Aa(a-i),C=Aa(s-o);if(O>p||C>g){if(y){var k=l[b++];if(m+k>c){var A=(c-m)/k;t.lineTo(i*(1-A)+a*A,o*(1-A)+s*A);break t}m+=k}t.lineTo(a,s),i=a,o=s,_=0}else{var M=O*O+C*C;M>_&&(h=a,f=s,_=M)}break;case va.C:var T=d[x++],I=d[x++],E=d[x++],P=d[x++],j=d[x++],L=d[x++];if(y){k=l[b++];if(m+k>c){A=(c-m)/k;Be(i,T,E,j,A,ya),Be(o,I,P,L,A,ma),t.bezierCurveTo(ya[1],ma[1],ya[2],ma[2],ya[3],ma[3]);break t}m+=k}t.bezierCurveTo(T,I,E,P,j,L),i=j,o=L;break;case va.Q:T=d[x++],I=d[x++],E=d[x++],P=d[x++];if(y){k=l[b++];if(m+k>c){A=(c-m)/k;We(i,T,E,A,ya),We(o,I,P,A,ma),t.quadraticCurveTo(ya[1],ma[1],ya[2],ma[2]);break t}m+=k}t.quadraticCurveTo(T,I,E,P),i=E,o=P;break;case va.A:var D=d[x++],R=d[x++],N=d[x++],B=d[x++],F=d[x++],z=d[x++],V=d[x++],q=!d[x++],G=N>B?N:B,H=Aa(N-B)>.001,W=F+z,U=!1;if(y){k=l[b++];m+k>c&&(W=F+z*(c-m)/k,U=!0),m+=k}if(H&&t.ellipse?t.ellipse(D,R,N,B,V,F,W,q):t.arc(D,R,G,F,W,q),U)break t;S&&(n=Ca(F)*N+D,r=ka(F)*B+R),i=Ca(W)*N+D,o=ka(W)*B+R;break;case va.R:n=i=d[x],r=o=d[x+1],a=d[x++],s=d[x++];var $=d[x++],Y=d[x++];if(y){k=l[b++];if(m+k>c){var X=c-m;t.moveTo(a,s),t.lineTo(a+Sa(X,$),s),X-=$,X>0&&t.lineTo(a+$,s+Sa(X,Y)),X-=Y,X>0&&t.lineTo(a+Oa($-X,0),s+Y),X-=$,X>0&&t.lineTo(a,s+Oa(Y-X,0));break t}m+=k}t.rect(a,s,$,Y);break;case va.Z:if(y){k=l[b++];if(m+k>c){A=(c-m)/k;t.lineTo(i*(1-A)+n*A,o*(1-A)+r*A);break t}m+=k}t.closePath(),i=n,o=r}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=va,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),Da=La;function Ra(t,e,n,r,i,o,a){if(0===i)return!1;var s=i,l=0,u=t;if(a>e+s&&a>r+s||at+s&&o>n+s||oe+h&&c>r+h&&c>o+h&&c>s+h||ct+h&&u>n+h&&u>i+h&&u>a+h||ue+u&&l>r+u&&l>o+u||lt+u&&s>n+u&&s>i+u||sn||c+ui&&(i+=Va);var f=Math.atan2(l,s);return f<0&&(f+=Va),f>=r&&f<=i||f+Va>=r&&f+Va<=i}function Ga(t,e,n,r,i,o){if(o>e&&o>r||oi?s:0}var Ha=Da.CMD,Wa=2*Math.PI,Ua=1e-4;function $a(t,e){return Math.abs(t-e)e&&u>r&&u>o&&u>s||u1&&Ka(),d=Le(e,r,o,s,Xa[0]),f>1&&(p=Le(e,r,o,s,Xa[1]))),2===f?ve&&s>r&&s>o||s=0&&u<=1){for(var c=0,h=Ve(e,r,o,u),f=0;fn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Ya[0]=-l,Ya[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=Wa-1e-4){r=0,i=Wa;var c=o?1:-1;return a>=Ya[0]+t&&a<=Ya[1]+t?c:0}if(r>i){var h=r;r=i,i=h}r<0&&(r+=Wa,i+=Wa);for(var f=0,d=0;d<2;d++){var p=Ya[d];if(p+t>a){var g=Math.atan2(s,p);c=o?1:-1;g<0&&(g=Wa+g),(g>=r&&g<=i||g+Wa>=r&&g+Wa<=i)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),f+=c)}}return f}function ts(t,e,n,r,i){for(var o,a,s=t.data,l=t.len(),u=0,c=0,h=0,f=0,d=0,p=0;p1&&(n||(u+=Ga(c,h,f,d,r,i))),v&&(c=s[p],h=s[p+1],f=c,d=h),g){case Ha.M:f=s[p++],d=s[p++],c=f,h=d;break;case Ha.L:if(n){if(Ra(c,h,s[p],s[p+1],e,r,i))return!0}else u+=Ga(c,h,s[p],s[p+1],r,i)||0;c=s[p++],h=s[p++];break;case Ha.C:if(n){if(Na(c,h,s[p++],s[p++],s[p++],s[p++],s[p],s[p+1],e,r,i))return!0}else u+=Za(c,h,s[p++],s[p++],s[p++],s[p++],s[p],s[p+1],r,i)||0;c=s[p++],h=s[p++];break;case Ha.Q:if(n){if(Ba(c,h,s[p++],s[p++],s[p],s[p+1],e,r,i))return!0}else u+=Qa(c,h,s[p++],s[p++],s[p],s[p+1],r,i)||0;c=s[p++],h=s[p++];break;case Ha.A:var y=s[p++],m=s[p++],b=s[p++],_=s[p++],x=s[p++],w=s[p++];p+=1;var S=!!(1-s[p++]);o=Math.cos(x)*b+y,a=Math.sin(x)*_+m,v?(f=o,d=a):u+=Ga(c,h,o,a,r,i);var O=(r-y)*_/b+y;if(n){if(qa(y,m,_,x,x+w,S,e,O,i))return!0}else u+=Ja(y,m,_,x,x+w,S,O,i);c=Math.cos(x+w)*b+y,h=Math.sin(x+w)*_+m;break;case Ha.R:f=c=s[p++],d=h=s[p++];var C=s[p++],k=s[p++];if(o=f+C,a=d+k,n){if(Ra(f,d,o,d,e,r,i)||Ra(o,d,o,a,e,r,i)||Ra(o,a,f,a,e,r,i)||Ra(f,a,f,d,e,r,i))return!0}else u+=Ga(o,d,o,a,r,i),u+=Ga(f,a,f,d,r,i);break;case Ha.Z:if(n){if(Ra(c,h,f,d,e,r,i))return!0}else u+=Ga(c,h,f,d,r,i);c=f,h=d;break}}return n||$a(h,d)||(u+=Ga(c,h,f,d,r,i)||0),0!==u}function es(t,e,n){return ts(t,0,!1,e,n)}function ns(t,e,n,r){return ts(t,e,!0,n,r)}var rs=Object(v["defaults"])({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Uo),is={style:Object(v["defaults"])({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},$o.style)},os=lr.concat(["invisible","culling","z","z2","zlevel","parent"]),as=function(t){function e(e){return t.call(this,e)||this}return p(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(t){n.buildPath(t,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s.5?Zn:e>.2?Jn:Qn}if(t)return Qn}return Zn},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(Object(v["isString"])(e)){var n=this.__zr,r=!(!n||!n.isDarkMode()),i=Object(Qe["lum"])(t,0)0))},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&de)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),t=i.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect(),i=this.style;if(t=n[0],e=n[1],r.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),ns(o,a/s,t,e)))return!0}if(this.hasFill())return es(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=de,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"===typeof t?n[t]=e:Object(v["extend"])(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&de)},e.prototype.createStyle=function(t){return Object(v["createObject"])(rs,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=Object(v["extend"])({},this.shape))},e.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=Object(v["extend"])({},r.shape),Object(v["extend"])(s,n.shape)):(s=Object(v["extend"])({},i?this.shape:r.shape),Object(v["extend"])(s,n.shape)):l&&(s=r.shape),s)if(o){this.shape=Object(v["extend"])({},this.shape);for(var u={},c=Object(v["keys"])(s),h=0;h0},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.createStyle=function(t){return Object(v["createObject"])(ls,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=vr(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var r=t.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(ta);us.prototype.type="tspan";var cs=us,hs=Object(v["defaults"])({x:0,y:0},Uo),fs={style:Object(v["defaults"])({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},$o.style)};function ds(t){return!!(t&&"string"!==typeof t&&t.width&&t.height)}var ps=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.createStyle=function(t){return Object(v["createObject"])(hs,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var r=ds(e.image)?e.image:this.__image;if(!r)return 0;var i="width"===t?"height":"width",o=e[i];return null==o?r[t]:r[t]/r[i]*o},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return fs},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new qt(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(ta);ps.prototype.type="image";var gs=ps;function vs(t,e){var n,r,i,o,a,s=e.x,l=e.y,u=e.width,c=e.height,h=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"===typeof h?n=r=i=o=h:h instanceof Array?1===h.length?n=r=i=o=h[0]:2===h.length?(n=i=h[0],r=o=h[1]):3===h.length?(n=h[0],r=o=h[1],i=h[2]):(n=h[0],r=h[1],i=h[2],o=h[3]):n=r=i=o=0,n+r>u&&(a=n+r,n*=u/a,r*=u/a),i+o>u&&(a=i+o,i*=u/a,o*=u/a),r+i>c&&(a=r+i,r*=c/a,i*=c/a),n+o>c&&(a=n+o,n*=c/a,o*=c/a),t.moveTo(s+n,l),t.lineTo(s+u-r,l),0!==r&&t.arc(s+u-r,l+r,r,-Math.PI/2,0),t.lineTo(s+u,l+c-i),0!==i&&t.arc(s+u-i,l+c-i,i,0,Math.PI/2),t.lineTo(s+o,l+c),0!==o&&t.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}var ys=Math.round;function ms(t,e,n){if(e){var r=e.x1,i=e.x2,o=e.y1,a=e.y2;t.x1=r,t.x2=i,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(ys(2*r)===ys(2*i)&&(t.x1=t.x2=_s(r,s,!0)),ys(2*o)===ys(2*a)&&(t.y1=t.y2=_s(o,s,!0)),t):t}}function bs(t,e,n){if(e){var r=e.x,i=e.y,o=e.width,a=e.height;t.x=r,t.y=i,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=_s(r,s,!0),t.y=_s(i,s,!0),t.width=Math.max(_s(r+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(_s(i+a,s,!1)-t.y,0===a?0:1),t):t}}function _s(t,e,n){if(!e)return t;var r=ys(2*t);return(r+ys(e))%2===0?r/2:(r+(n?1:-1))/2}var xs=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),ws={},Ss=function(t){function e(e){return t.call(this,e)||this}return p(e,t),e.prototype.getDefaultShape=function(){return new xs},e.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=bs(ws,e,this.style);n=a.x,r=a.y,i=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,r=e.y,i=e.width,o=e.height;e.r?vs(t,e):t.rect(n,r,i,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(ss);Ss.prototype.type="rect";var Os=Ss,Cs={fill:"#000"},ks=2,As={style:Object(v["defaults"])({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},$o.style)},Ms=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Cs,n.attr(e),n}return p(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,k=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),A=i.calculatedLineHeight,M=0;M=0&&(M=_[A],"right"===M.align))this._placeToken(M,t,w,g,k,"right",y),S-=M.width,k-=M.width,A--;C+=(r-(C-p)-(v-k)-S)/2;while(O<=A)M=_[O],this._placeToken(M,t,w,g,C+M.width/2,"center",y),C+=M.width,O++;g+=w}},e.prototype._placeToken=function(t,e,n,r,i,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=r+n/2;"top"===l?u=r+t.height/2:"bottom"===l&&(u=r+n-t.height/2);var c=!t.isLineHolder&&Vs(s);c&&this._renderBackground(s,e,"right"===o?i-t.width:"center"===o?i-t.width/2:i,u-t.height/2,t.width,t.height);var h=!!s.backgroundColor,f=t.textPadding;f&&(i=Fs(i,o,f),u-=t.height/2-f[0]-t.innerHeight/2);var d=this._getOrCreateChild(cs),p=d.createStyle();d.useStyle(p);var g=this._defaultStyle,y=!1,m=0,b=Bs("fill"in s?s.fill:"fill"in e?e.fill:(y=!0,g.fill)),_=Ns("stroke"in s?s.stroke:"stroke"in e?e.stroke:h||a||g.autoStroke&&!y?null:(m=ks,g.stroke)),x=s.textShadowBlur>0||e.textShadowBlur>0;p.text=t.text,p.x=i,p.y=u,x&&(p.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,p.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",p.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),p.textAlign=o,p.textBaseline="middle",p.font=t.font||fr["a"],p.opacity=Object(v["retrieve3"])(s.opacity,e.opacity,1),js(p,s),_&&(p.lineWidth=Object(v["retrieve3"])(s.lineWidth,e.lineWidth,m),p.lineDash=Object(v["retrieve2"])(s.lineDash,e.lineDash),p.lineDashOffset=e.lineDashOffset||0,p.stroke=_),b&&(p.fill=b);var w=t.contentWidth,S=t.contentHeight;d.setBoundingRect(new qt(yr(p.x,w,p.textAlign),mr(p.y,S,p.textBaseline),w,S))},e.prototype._renderBackground=function(t,e,n,r,i,o){var a,s,l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,h=l&&l.image,f=l&&!h,d=t.borderRadius,p=this;if(f||t.lineHeight||u&&c){a=this._getOrCreateChild(Os),a.useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=n,g.y=r,g.width=i,g.height=o,g.r=d,a.dirtyShape()}if(f){var y=a.style;y.fill=l||null,y.fillOpacity=Object(v["retrieve2"])(t.fillOpacity,1)}else if(h){s=this._getOrCreateChild(gs),s.onload=function(){p.dirtyStyle()};var m=s.style;m.image=l.image,m.x=n,m.y=r,m.width=i,m.height=o}if(u&&c){y=a.style;y.lineWidth=u,y.stroke=c,y.strokeOpacity=Object(v["retrieve2"])(t.strokeOpacity,1),y.lineDash=t.borderDash,y.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var b=(a||s).style;b.shadowBlur=t.shadowBlur||0,b.shadowColor=t.shadowColor||"transparent",b.shadowOffsetX=t.shadowOffsetX||0,b.shadowOffsetY=t.shadowOffsetY||0,b.opacity=Object(v["retrieve3"])(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return Ls(t)&&(e=[t.fontStyle,t.fontWeight,Ps(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&Object(v["trim"])(e)||t.textFont||t.font},e}(ta),Ts={left:!0,right:1,center:1},Is={top:1,bottom:1,middle:1},Es=["fontStyle","fontWeight","fontSize","fontFamily"];function Ps(t){return"string"!==typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?fr["c"]+"px":t+"px":t}function js(t,e){for(var n=0;n=0,o=!1;if(t instanceof ss){var a=$s(t),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(sl(s)||sl(l)){r=r||{};var u=r.style||{};"inherit"===u.fill?(o=!0,r=Object(v["extend"])({},r),u=Object(v["extend"])({},u),u.fill=s):!sl(u.fill)&&sl(s)?(o=!0,r=Object(v["extend"])({},r),u=Object(v["extend"])({},u),u.fill=ul(s)):!sl(u.stroke)&&sl(l)&&(o||(r=Object(v["extend"])({},r),u=Object(v["extend"])({},u)),u.stroke=ul(l)),r.style=u}}if(r&&null==r.z2){o||(r=Object(v["extend"])({},r));var c=t.z2EmphasisLift;r.z2=t.z2+(null!=c?c:tl)}return r}function wl(t,e,n){if(n&&null==n.z2){n=Object(v["extend"])({},n);var r=t.z2SelectLift;n.z2=t.z2+(null!=r?r:el)}return n}function Sl(t,e,n){var r=Object(v["indexOf"])(t.currentStates,e)>=0,i=t.style.opacity,o=r?null:_l(t,["opacity"],e,{opacity:1});n=n||{};var a=n.style||{};return null==a.opacity&&(n=Object(v["extend"])({},n),a=Object(v["extend"])({opacity:r?i:.1*o.opacity},a),n.style=a),n}function Ol(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return xl(this,t,e,n);if("blur"===t)return Sl(this,t,n);if("select"===t)return wl(this,t,n)}return n}function Cl(t){t.stateProxy=Ol;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=Ol),n&&(n.stateProxy=Ol)}function kl(t,e){!Ll(t,e)&&!t.__highByOuter&&ml(t,hl)}function Al(t,e){!Ll(t,e)&&!t.__highByOuter&&ml(t,fl)}function Ml(t,e){t.__highByOuter|=1<<(e||0),ml(t,hl)}function Tl(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&ml(t,fl)}function Il(t){ml(t,dl)}function El(t){ml(t,pl)}function Pl(t){ml(t,gl)}function jl(t){ml(t,vl)}function Ll(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Dl(t){var e=t.getModel(),n=[],r=[];e.eachComponent((function(e,i){var o=Ys(i),a="series"===e,s=a?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!a&&r.push(s),o.isBlured&&(s.group.traverse((function(t){pl(t)})),a&&n.push(i)),o.isBlured=!1})),Object(v["each"])(r,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function Rl(t,e,n,r){var i=r.getModel();function o(t,e){for(var n=0;n0){var o={dataIndex:i,seriesIndex:t.seriesIndex};null!=r&&(o.dataType=r),e.push(o)}}))})),e}function Wl(t,e,n){Ql(t,!0),ml(t,Cl),Yl(t,e,n)}function Ul(t){Ql(t,!1)}function $l(t,e,n,r){r?Ul(t):Wl(t,e,n)}function Yl(t,e,n){var r=Gs(t);null!=e?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}var Xl=["emphasis","blur","select"],Kl={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Zl(t,e,n,r){n=n||"itemStyle";for(var i=0;i0){var h=c.duration,f=c.delay,d=c.easing,p={duration:h,delay:f||0,easing:d,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,p):e.animateTo(n,p)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function lu(t,e,n,r,i,o){su("update",t,e,n,r,i,o)}function uu(t,e,n,r,i,o){su("enter",t,e,n,r,i,o)}function cu(t){if(!t.__zr)return!0;for(var e=0;e=0&&n.push(t)})),n}t.topologicalTravel=function(t,e,r,i){if(t.length){var o=n(e),a=o.graph,s=o.noEntryList,l={};v["each"](t,(function(t){l[t]=!0}));while(s.length){var u=s.pop(),c=a[u],h=!!l[u];h&&(r.call(i,u,c.originalDeps.slice()),delete l[u]),v["each"](c.successor,h?d:f)}v["each"](l,(function(){var t="";throw new Error(t)}))}function f(t){a[t].entryCount--,0===a[t].entryCount&&s.push(t)}function d(t){l[t]=!0,f(t)}}}function Ku(t,e){return v["merge"](v["merge"]({},t,!0),e,!0)}var Zu={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:". "}}}},Qu={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:""}}}},Ju="ZH",tc="EN",ec=tc,nc={},rc={},ic=g["a"].domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return t.indexOf(Ju)>-1?Ju:ec}():ec;function oc(t,e){t=t.toUpperCase(),rc[t]=new Wu(e),nc[t]=e}function ac(t){if(Object(v["isString"])(t)){var e=nc[t.toUpperCase()]||{};return t===Ju||t===tc?Object(v["clone"])(e):Object(v["merge"])(Object(v["clone"])(e),Object(v["clone"])(nc[ec]),!1)}return Object(v["merge"])(Object(v["clone"])(t),Object(v["clone"])(nc[ec]),!1)}function sc(t){return rc[t]}function lc(){return rc[ec]}oc(tc,Zu),oc(Ju,Qu);var uc=1e3,cc=60*uc,hc=60*cc,fc=24*hc,dc=365*fc,pc={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}"},gc="{yyyy}-{MM}-{dd}",vc={year:"{yyyy}",month:"{yyyy}-{MM}",day:gc,hour:gc+" "+pc.hour,minute:gc+" "+pc.minute,second:gc+" "+pc.second,millisecond:pc.none},yc=["year","month","day","hour","minute","second","millisecond"],mc=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function bc(t,e){return t+="","0000".substr(0,e-t.length)+t}function _c(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 xc(t){return t===_c(t)}function wc(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Sc(t,e,n,r){var i=fi(t),o=i[Ac(n)](),a=i[Mc(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[Tc(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[Ic(n)](),h=(c-1)%12+1,f=i[Ec(n)](),d=i[Pc(n)](),p=i[jc(n)](),g=r instanceof Wu?r:sc(r||ic)||lc(),v=g.getModel("time"),y=v.get("month"),m=v.get("monthAbbr"),b=v.get("dayOfWeek"),_=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,bc(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,bc(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+"").replace(/{HH}/g,bc(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,bc(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,bc(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,bc(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,bc(p,3)).replace(/{S}/g,p+"")}function Oc(t,e,n,r,i){var o=null;if(v["isString"](n))o=n;else if(v["isFunction"](n))o=n(t.value,e,{level:t.level});else{var a=v["extend"]({},pc);if(t.level>0)for(var s=0;s=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(v["isArray"](o)){var h=null==t.level?0:t.level>=0?t.level:o.length+t.level;h=Math.min(h,o.length-1),o=o[h]}}return Sc(new Date(t.value),o,i,r)}function Cc(t,e){var n=fi(t),r=n[Mc(e)]()+1,i=n[Tc(e)](),o=n[Ic(e)](),a=n[Ec(e)](),s=n[Pc(e)](),l=n[jc(e)](),u=0===l,c=u&&0===s,h=c&&0===a,f=h&&0===o,d=f&&1===i,p=d&&1===r;return p?"year":d?"month":f?"day":h?"hour":c?"minute":u?"second":"millisecond"}function kc(t,e,n){var r=v["isNumber"](t)?fi(t):t;switch(e=e||Cc(t,n),e){case"year":return r[Ac(n)]();case"half-year":return r[Mc(n)]()>=6?1:0;case"quarter":return Math.floor((r[Mc(n)]()+1)/4);case"month":return r[Mc(n)]();case"day":return r[Tc(n)]();case"half-day":return r[Ic(n)]()/24;case"hour":return r[Ic(n)]();case"minute":return r[Ec(n)]();case"second":return r[Pc(n)]();case"millisecond":return r[jc(n)]()}}function Ac(t){return t?"getUTCFullYear":"getFullYear"}function Mc(t){return t?"getUTCMonth":"getMonth"}function Tc(t){return t?"getUTCDate":"getDate"}function Ic(t){return t?"getUTCHours":"getHours"}function Ec(t){return t?"getUTCMinutes":"getMinutes"}function Pc(t){return t?"getUTCSeconds":"getSeconds"}function jc(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Lc(t){return t?"setUTCFullYear":"setFullYear"}function Dc(t){return t?"setUTCMonth":"setMonth"}function Rc(t){return t?"setUTCDate":"setDate"}function Nc(t){return t?"setUTCHours":"setHours"}function Bc(t){return t?"setUTCMinutes":"setMinutes"}function Fc(t){return t?"setUTCSeconds":"setSeconds"}function zc(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Vc(t){if(!bi(t))return v["isString"](t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function qc(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}var Gc=v["normalizeCssArray"];function Hc(t,e,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(t){return t&&v["trim"](t)?t:"-"}function o(t){return!(null==t||isNaN(t)||!isFinite(t))}var a="time"===e,s=t instanceof Date;if(a||s){var l=a?fi(t):t;if(!isNaN(+l))return Sc(l,r,n);if(s)return"-"}if("ordinal"===e)return v["isStringSafe"](t)?i(t):v["isNumber"](t)&&o(t)?t+"":"-";var u=mi(t);return o(u)?Vc(u):v["isStringSafe"](t)?i(t):"boolean"===typeof t?t+"":"-"}var Wc=["a","b","c","d","e","f","g"],Uc=function(t,e){return"{"+t+(null==e?"":e)+"}"};function $c(t,e,n){v["isArray"](e)||(e=[e]);var r=e.length;if(!r)return"";for(var i=e[0].$vars||[],o=0;o':'';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Kc(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var r=fi(e),i=n?"getUTC":"get",o=r[i+"FullYear"](),a=r[i+"Month"]()+1,s=r[i+"Date"](),l=r[i+"Hours"](),u=r[i+"Minutes"](),c=r[i+"Seconds"](),h=r[i+"Milliseconds"]();return t=t.replace("MM",bc(a,2)).replace("M",a).replace("yyyy",o).replace("yy",bc(o%100+"",2)).replace("dd",bc(s,2)).replace("d",s).replace("hh",bc(l,2)).replace("h",l).replace("mm",bc(u,2)).replace("m",u).replace("ss",bc(c,2)).replace("s",c).replace("SSS",bc(h,3)),t}function Zc(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function Qc(t,e){return e=e||"transparent",v["isString"](t)?t:v["isObject"](t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Jc(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var th=v["each"],eh=["left","right","top","bottom","width","height"],nh=[["width","left","right"],["height","top","bottom"]];function rh(t,e,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;e.eachChild((function(l,u){var c,h,f=l.getBoundingRect(),d=e.childAt(u+1),p=d&&d.getBoundingRect();if("horizontal"===t){var g=f.width+(p?-p.x+f.x:0);c=o+g,c>r||l.newline?(o=0,c=g,a+=s+n,s=f.height):s=Math.max(s,f.height)}else{var v=f.height+(p?-p.y+f.y:0);h=a+v,h>i||l.newline?(o+=s+n,a=0,h=v,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=h+n)}))}var ih=rh;v["curry"](rh,"vertical"),v["curry"](rh,"horizontal");function oh(t,e,n){var r=e.width,i=e.height,o=Jr(t.left,r),a=Jr(t.top,i),s=Jr(t.right,r),l=Jr(t.bottom,i);return(isNaN(o)||isNaN(parseFloat(t.left)))&&(o=0),(isNaN(s)||isNaN(parseFloat(t.right)))&&(s=r),(isNaN(a)||isNaN(parseFloat(t.top)))&&(a=0),(isNaN(l)||isNaN(parseFloat(t.bottom)))&&(l=i),n=Gc(n||0),{width:Math.max(s-o-n[1]-n[3],0),height:Math.max(l-a-n[0]-n[2],0)}}function ah(t,e,n){n=Gc(n||0);var r=e.width,i=e.height,o=Jr(t.left,r),a=Jr(t.top,i),s=Jr(t.right,r),l=Jr(t.bottom,i),u=Jr(t.width,r),c=Jr(t.height,i),h=n[2]+n[0],f=n[1]+n[3],d=t.aspect;switch(isNaN(u)&&(u=r-s-f-o),isNaN(c)&&(c=i-l-h-a),null!=d&&(isNaN(u)&&isNaN(c)&&(d>r/i?u=.8*r:c=.8*i),isNaN(u)&&(u=d*c),isNaN(c)&&(c=u/d)),isNaN(o)&&(o=r-s-u-f),isNaN(a)&&(a=i-l-c-h),t.left||t.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-f;break}switch(t.top||t.bottom){case"middle":case"center":a=i/2-c/2-n[0];break;case"bottom":a=i-c-h;break}o=o||0,a=a||0,isNaN(u)&&(u=r-f-o-(s||0)),isNaN(c)&&(c=i-h-a-(l||0));var p=new qt(o+n[3],a+n[0],u,c);return p.margin=n,p}function sh(t,e,n,r,i,o){var a,s=!i||!i.hv||i.hv[0],l=!i||!i.hv||i.hv[1],u=i&&i.boundingMode||"all";if(o=o||t,o.x=t.x,o.y=t.y,!s&&!l)return!1;if("raw"===u)a="group"===t.type?new qt(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(a=t.getBoundingRect(),t.needLocalTransform()){var c=t.getLocalTransform();a=a.clone(),a.applyTransform(c)}var h=ah(v["defaults"]({width:a.width,height:a.height},e),n,r),f=s?h.x-a.x:0,d=l?h.y-a.y:0;return"raw"===u?(o.x=f,o.y=d):(o.x+=f,o.y+=d),o===t&&t.markRedraw(),!0}function lh(t,e){return null!=t[nh[e][0]]||null!=t[nh[e][1]]&&null!=t[nh[e][2]]}function uh(t){var e=t.layoutMode||t.constructor.layoutMode;return v["isObject"](e)?e:e?{type:e}:null}function ch(t,e,n){var r=n&&n.ignoreSize;!v["isArray"](r)&&(r=[r,r]);var i=a(nh[0],0),o=a(nh[1],1);function a(n,i){var o={},a=0,u={},c=0,h=2;if(th(n,(function(e){u[e]=t[e]})),th(n,(function(t){s(e,t)&&(o[t]=u[t]=e[t]),l(o,t)&&a++,l(u,t)&&c++})),r[i])return l(e,n[1])?u[n[2]]=null:l(e,n[2])&&(u[n[1]]=null),u;if(c!==h&&a){if(a>=h)return o;for(var f=0;f=0;a--)o=v["merge"](o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",r=t+"Id";return to(this.ecModel,t,{index:this.get(n,!0),id:this.get(r,!0)},e)},e.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")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Wu);function gh(t){var e=[];return v["each"](ph.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=v["map"](e,(function(t){return uo(t).main})),"dataset"!==t&&v["indexOf"](e,"dataset")<=0&&e.unshift("dataset"),e}go(ph,Wu),_o(ph),Yu(ph),Xu(ph,gh);var vh=ph,yh="";"undefined"!==typeof navigator&&(yh=navigator.platform||"");var mh="rgba(0, 0, 0, 0.2)",bh={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:mh,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:mh,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:mh,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:mh,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:mh,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:mh,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:yh.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},_h=Object(v["createHashMap"])(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),xh="original",wh="arrayRows",Sh="objectRows",Oh="keyedColumns",Ch="typedArray",kh="unknown",Ah="column",Mh="row",Th={Must:1,Might:2,Not:3},Ih=Yi();function Eh(t){Ih(t).datasetMap=Object(v["createHashMap"])()}function Ph(t,e,n){var r={},i=Lh(e);if(!i||!t)return r;var o,a,s=[],l=[],u=e.ecModel,c=Ih(u).datasetMap,h=i.uid+"_"+n.seriesLayoutBy;t=t.slice(),Object(v["each"])(t,(function(e,n){var i=Object(v["isObject"])(e)?e:t[n]={name:e};"ordinal"===i.type&&null==o&&(o=n,a=p(i)),r[i.name]=[]}));var f=c.get(h)||c.set(h,{categoryWayDim:a,valueWayDim:0});function d(t,e,n){for(var r=0;re)return t[r];return t[n-1]}function Uh(t,e,n,r,i,o,a){o=o||t;var s=e(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=null!=a&&r?Wh(r,a):n;if(c=c||n,c&&c.length){var h=c[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%c.length,h}}function $h(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Yh,Xh,Kh;"undefined"!==typeof console&&console.warn&&console.log;function Zh(t){0}function Qh(t){throw new Error(t)}var Jh="\0_ec_inner",tf=1;var ef=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.init=function(t,e,n,r,i,o){r=r||{},this.option=null,this._theme=new Wu(r),this._locale=new Wu(i),this._optionManager=o},e.prototype.setOption=function(t,e,n){var r=sf(e);this._optionManager.setOption(t,n,r),this._resetOption(null,r)},e.prototype.resetOption=function(t,e){return this._resetOption(t,sf(e))},e.prototype._resetOption=function(t,e){var n=!1,r=this._optionManager;if(!t||"recreate"===t){var i=r.mountOption("recreate"===t);0,this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(i,e)):Kh(this,i),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=r.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=r.getMediaOption(this);a.length&&Object(v["each"])(a,(function(t){n=!0,this._mergeOption(t,e)}),this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,r=this._componentsMap,i=this._componentsCount,o=[],a=Object(v["createHashMap"])(),s=e&&e.replaceMergeMainTypeMap;function l(e){var o=zh(this,e,ki(t[e])),a=r.get(e),l=a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",u=Ei(a,o,l);Hi(u,e,vh),n[e]=null,r.set(e,null),i.set(e,0);var c,h=[],f=[],d=0;Object(v["each"])(u,(function(t,n){var r=t.existing,i=t.newOption;if(i){var o="series"===e,a=vh.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(c)return void 0;c=!0}if(r&&r.constructor===a)r.name=t.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=Object(v["extend"])({componentIndex:n},t.keyInfo);r=new a(i,this,this,s),Object(v["extend"])(r,s),t.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(h.push(r.option),f.push(r),d++):(h.push(void 0),f.push(void 0))}),this),n[e]=h,r.set(e,f),i.set(e,d),"series"===e&&Yh(this)}Eh(this),Object(v["each"])(t,(function(t,e){null!=t&&(vh.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?Object(v["clone"])(t):Object(v["merge"])(n[e],t,!0))})),s&&s.each((function(t,e){vh.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),vh.topologicalTravel(o,vh.getAllClassMainTypes(),l,this),this._seriesIndices||Yh(this)},e.prototype.getOption=function(){var t=Object(v["clone"])(this.option);return Object(v["each"])(t,(function(e,n){if(vh.hasClass(n)){for(var r=ki(e),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!qi(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,t[n]=r}})),delete t[Jh],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var r=n[e||0];if(r)return r;if(null==e)for(var i=0;i=e:"max"===n?t<=e:t===e}function _f(t,e){return t.join(",")===e.join(",")}var xf=vf,wf=v["each"],Sf=v["isObject"],Of=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Cf(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=Of.length;n=0;g--){var v=t[g];if(s||(f=v.data.rawIndexOf(v.stackedByDimension,h)),f>=0){var y=v.data.getByRawIndex(v.stackResultDimension,f);if("all"===l||"positive"===l&&y>0||"negative"===l&&y<0||"samesign"===l&&d>=0&&y>0||"samesign"===l&&d<=0&&y<0){d=si(d,y),p=y;break}}}return r[0]=d,r[1]=p,r}))}))}var Yf,Xf,Kf,Zf,Qf,Jf=function(){function t(t){this.data=t.data||(t.sourceFormat===Oh?{}:[]),this.sourceFormat=t.sourceFormat||kh,this.seriesLayoutBy=t.seriesLayoutBy||Ah,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;nu&&(u=d)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(t){for(var e=0;e=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}))}},t.prototype.getRawValue=function(t,e){return xd(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function Od(t){var e,n;return v["isObject"](t)?t.type&&(n=t):e=t,{text:e,frag:n}}function Cd(t){return new kd(t)}var kd=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(e=this._plan(this.context));var o,a=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;function c(t){return!(t>=1)&&(t=1),t}a===l&&s===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(r)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,d=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!r&&(o||f1&&r>0?s:a}};return o;function a(){return e=t?null:oe},gte:function(t,e){return t>=e}},Pd=function(){function t(t,e){if(!Object(v["isNumber"])(e)){var n="";0,Qh(n)}this._opFn=Ed[t],this._rvalFloat=mi(e)}return t.prototype.evaluate=function(t){return Object(v["isNumber"])(t)?this._opFn(t,this._rvalFloat):this._opFn(mi(t),this._rvalFloat)},t}(),jd=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=Object(v["isNumber"])(t)?t:mi(t),r=Object(v["isNumber"])(e)?e:mi(e),i=isNaN(n),o=isNaN(r);if(i&&(n=this._incomparable),o&&(r=this._incomparable),i&&o){var a=Object(v["isString"])(t),s=Object(v["isString"])(e);a&&(n=s?t:0),s&&(r=a?e:0)}return nr?-this._resultLT:0},t}(),Ld=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=mi(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=mi(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function Dd(t,e){return"eq"===t||"ne"===t?new Ld("eq"===t,e):Object(v["hasOwn"])(Ed,t)?new Pd(t,e):null}var Rd=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return Md(t,e)},t}();function Nd(t,e){var n=new Rd,r=t.data,i=n.sourceFormat=t.sourceFormat,o=t.startIndex,a="";t.seriesLayoutBy!==Ah&&Qh(a);var s=[],l={},u=t.dimensionsDefine;if(u)Object(v["each"])(u,(function(t,e){var n=t.name,r={index:e,name:n,displayName:t.displayName};if(s.push(r),null!=n){var i="";Object(v["hasOwn"])(l,n)&&Qh(i),l[n]=r}}));else for(var c=0;c65535?Xd:Kd}function ep(){return[1/0,-1/0]}function np(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function rp(t,e,n,r,i){var o=Jd[n||"float"];if(i){var a=t[e],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;ug[1]&&(g[1]=p)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var r=this._provider,i=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=Object(v["map"])(o,(function(t){return t.property})),u=0;uy[1]&&(y[1]=g)}}!r.persistent&&r.clean&&r.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=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&nt))return o;i=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var r=this._chunks,i=r[t],o=[];if(!i)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,u=0,c=this.count();u=0&&s<0)&&(a=d,s=f,l=0),f===s&&(o[l++]=u))}return o.length=l,o},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,r=this._count;if(n===Array){t=new n(r);for(var i=0;i=c&&m<=h||isNaN(m))&&(s[l++]=p),p++}d=!0}else if(2===i){g=f[r[0]];var b=f[r[1]],_=t[r[1]][0],x=t[r[1]][1];for(y=0;y=c&&m<=h||isNaN(m))&&(w>=_&&w<=x||isNaN(w))&&(s[l++]=p),p++}d=!0}}if(!d)if(1===i)for(y=0;y=c&&m<=h||isNaN(m))&&(s[l++]=S)}else for(y=0;yt[k][1])&&(O=!1)}O&&(s[l++]=e.getRawIndex(y))}return lv[1]&&(v[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,r,i,o=this.clone([t],!0),a=o._chunks,s=a[t],l=this.count(),u=0,c=Math.floor(1/e),h=this.getRawIndex(0),f=new(tp(this._rawCount))(Math.min(2*(Math.ceil(l/c)+2),l));f[u++]=h;for(var d=1;dn&&(n=r,i=b))}k>0&&ku-d&&(s=u-d,a.length=s);for(var p=0;pc[1]&&(c[1]=v),h[f++]=y}return i._count=f,i._indices=h,i._updateGetRawIdx(),i},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,r=this._chunks,i=0,o=this.count();is&&(s=c)}return r=[a,s],this._extent[t]=r,r},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],r=this._chunks,i=0;i=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,r){return Md(t[r],this._dimensions[r])}$d={arrayRows:t,objectRows:function(t,e,n,r){return Md(t[e],this._dimensions[r])},keyedColumns:t,original:function(t,e,n,r){var i=t&&(null==t.value?t:t.value);return Md(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(t,e,n,r){return t[r]}}}(),t}(),op=ip,ap=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(lp(n)){var o=n,a=void 0,s=void 0,l=void 0;if(i){var u=r[0];u.prepareSource(),l=u.getSource(),a=l.data,s=l.sourceFormat,e=[u._getVersionSign()]}else a=o.get("data",!0),s=Object(v["isTypedArray"])(a)?Ch:xh,e=[];var c=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},f=Object(v["retrieve2"])(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=Object(v["retrieve2"])(c.sourceHeader,h.sourceHeader),p=Object(v["retrieve2"])(c.dimensions,h.dimensions),g=f!==h.seriesLayoutBy||!!d!==!!h.sourceHeader||p;t=g?[ed(a,{seriesLayoutBy:f,sourceHeader:d,dimensions:p},s)]:[]}else{var y=n;if(i){var m=this._applyTransform(r);t=m.sourceList,e=m.upstreamSignList}else{var b=y.get("source",!0);t=[ed(b,this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(null!=i){var o="";1!==t.length&&up(o)}var a=[],s=[];return Object(v["each"])(t,(function(t){t.prepareSource();var e=t.getSource(i||0),n="";null==i||e||up(n),a.push(e),s.push(t._getVersionSign())})),r?e=Hd(r,a,{datasetIndex:n.componentIndex}):null!=i&&(e=[rd(a[0])]),{sourceList:e,upstreamSignList:s}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||n>0&&!t.noHeader;return Object(v["each"])(t.blocks,(function(t){var n=yp(t);n>=e&&(e=n+ +(r&&(!n||gp(t)&&!t.noHeader)))})),e}return 0}function mp(t,e,n,r){var i=e.noHeader,o=xp(yp(e)),a=[],s=e.blocks||[];Object(v["assert"])(!s||Object(v["isArray"])(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Object(v["hasOwn"])(u,l)){var c=new jd(u[l],null);s.sort((function(t,e){return c.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===l&&s.reverse()}Object(v["each"])(s,(function(n,i){var s=e.valueFormatter,l=vp(n)(s?Object(v["extend"])(Object(v["extend"])({},t),{valueFormatter:s}):t,n,i>0?o.html:0,r);null!=l&&a.push(l)}));var h="richText"===t.renderMode?a.join(o.richText):wp(a.join(""),i?n:o.html);if(i)return h;var f=Hc(e.header,"ordinal",t.useUTC),d=hp(r,t.renderMode).nameStyle;return"richText"===t.renderMode?Cp(t,f,d)+o.richText+h:wp('
'+ot(f)+"
"+h,n)}function bp(t,e,n,r){var i=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(t){return t=Object(v["isArray"])(t)?t:[t],Object(v["map"])(t,(function(t,e){return Hc(t,Object(v["isArray"])(d)?d[e]:d,u)}))};if(!o||!a){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),f=o?"":Hc(l,"ordinal",u),d=e.valueType,p=a?[]:c(e.value),g=!s||!o,y=!s&&o,m=hp(r,i),b=m.nameStyle,_=m.valueStyle;return"richText"===i?(s?"":h)+(o?"":Cp(t,f,b))+(a?"":kp(t,p,g,y,_)):wp((s?"":h)+(o?"":Sp(f,!s,b))+(a?"":Op(p,g,y,_)),n)}}function _p(t,e,n,r,i,o){if(t){var a=vp(t),s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter};return a(s,t,0,o)}}function xp(t){return{html:fp[t],richText:dp[t]}}function wp(t,e){var n='
',r="margin: "+e+"px 0 0";return'
'+t+n+"
"}function Sp(t,e,n){var r=e?"margin-left:2px":"";return''+ot(t)+""}function Op(t,e,n,r){var i=n?"10px":"20px",o=e?"float:right;margin-left:"+i:"";return t=Object(v["isArray"])(t)?t:[t],''+Object(v["map"])(t,(function(t){return ot(t)})).join("  ")+""}function Cp(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function kp(t,e,n,r,i){var o=[i],a=r?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Object(v["isArray"])(e)?e.join(" "):e,o)}function Ap(t,e){var n=t.getData().getItemVisual(e,"style"),r=n[t.visualDrawType];return Qc(r)}function Mp(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var Tp=function(){function t(){this.richTextStyles={},this._nextStyleNameId=_i()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var r="richText"===n?this._generateStyleName():null,i=Xc({color:e,type:t,renderMode:n,markerId:r});return Object(v["isString"])(i)?i:(this.richTextStyles[r]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};Object(v["isArray"])(e)?Object(v["each"])(e,(function(t){return Object(v["extend"])(n,t)})):Object(v["extend"])(n,e);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+t+"}"},t}();function Ip(t){var e,n,r,i,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,h=o.getRawValue(a),f=Object(v["isArray"])(h),d=Ap(o,a);if(c>1||f&&!c){var p=Ep(h,o,a,u,d);e=p.inlineValues,n=p.inlineValueTypes,r=p.blocks,i=p.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);i=e=xd(l,a,u[0]),n=g.type}else i=e=f?h[0]:h;var y=Vi(o),m=y&&o.name||"",b=l.getName(a),_=s?m:b;return pp("section",{header:m,noHeader:s||!y,sortParam:i,blocks:[pp("nameValue",{markerType:"item",markerColor:d,name:_,noName:!Object(v["trim"])(_),value:e,valueType:n})].concat(r||[])})}function Ep(t,e,n,r,i){var o=e.getData(),a=Object(v["reduce"])(t,(function(t,e,n){var r=o.getDimensionInfo(n);return t||r&&!1!==r.tooltip&&null!=r.displayName}),!1),s=[],l=[],u=[];function c(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(pp("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return r.length?Object(v["each"])(r,(function(t){c(xd(o,n,t),t)})):Object(v["each"])(t,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}var Pp=Yi();function jp(t,e){return t.getName(e)||t.getId(e)}var Lp="__universalTransitionEnabled",Dp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return p(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=Cd({count:Bp,reset:Fp}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var r=Pp(this).sourceManager=new ap(this);r.prepareSource();var i=this.getInitialData(t,n);Vp(i,this),this.dataTask.context.data=i,Pp(this).dataBeforeProcessed=i,Rp(this),this._initSelectedMapFromData(i)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=uh(this),r=n?hh(t):{},i=this.subType;vh.hasClass(i)&&(i+="Series"),v["merge"](t,e.getTheme().get(this.subType)),v["merge"](t,this.getDefaultOption()),Ai(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&ch(t,r,n)},e.prototype.mergeOption=function(t,e){t=v["merge"](this.option,t,!0),this.fillDataTextStyle(t.data);var n=uh(this);n&&ch(this.option,t,n);var r=Pp(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(t,e);Vp(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,Pp(this).dataBeforeProcessed=i,Rp(this),this._initSelectedMapFromData(i)},e.prototype.fillDataTextStyle=function(t){if(t&&!v["isTypedArray"](t))for(var e=["show"],n=0;nthis.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var r=this.ecModel,i=Gh.prototype.getColorFromPalette.call(this,t,e,n);return i||(i=r.getColorFromPalette(t,e,n)),i},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(e);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o=0&&n.push(i)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(e);return("all"===n||n[jp(r,t)])&&!r.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Lp])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,r,i=this.option,o=i.selectedMode,a=e.length;if(o&&a)if("series"===o)i.selectedMap="all";else if("multiple"===o){v["isObject"](i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,l=0;l0&&this._innerSelect(t,e)}},e.registerClass=function(t){return vh.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(vh);function Rp(t){var e=t.name;Vi(t)||(t.name=Np(t)||e)}function Np(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return v["each"](n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&r.push(n.displayName)})),r.join(" ")}function Bp(t){return t.model.getRawData().count()}function Fp(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),zp}function zp(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Vp(t,e){v["each"](v["concatArray"](t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,v["curry"](qp,e))}))}function qp(t,e){var n=Gp(t);return n&&n.setOutputEnd((e||this).count()),e}function Gp(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(t.uid))}return r}}v["mixin"](Dp,Sd),v["mixin"](Dp,Gh),go(Dp,vh);var Hp=Dp,Wp=function(){function t(){this.group=new Nr,this.uid=$u("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,r){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,r){},t.prototype.updateLayout=function(t,e,n,r){},t.prototype.updateVisual=function(t,e,n,r){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();fo(Wp),_o(Wp);var Up=Wp;function $p(){var t=Yi();return function(e){var n=t(e),r=e.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===a&&o===s)&&"reset"}}var Yp=Da.CMD,Xp=[[],[],[]],Kp=Math.sqrt,Zp=Math.atan2;function Qp(t,e){if(e){var n,r,i,o,a,s,l=t.data,u=t.len(),c=Yp.M,h=Yp.C,f=Yp.L,d=Yp.R,p=Yp.A,g=Yp.Q;for(i=0,o=0;i1&&(a*=Jp(p),s*=Jp(p));var g=(i===o?-1:1)*Jp((a*a*(s*s)-a*a*(d*d)-s*s*(f*f))/(a*a*(d*d)+s*s*(f*f)))||0,v=g*a*d/s,y=g*-s*f/a,m=(t+n)/2+eg(h)*v-tg(h)*y,b=(e+r)/2+tg(h)*v+eg(h)*y,_=og([1,0],[(f-v)/a,(d-y)/s]),x=[(f-v)/a,(d-y)/s],w=[(-1*f-v)/a,(-1*d-y)/s],S=og(x,w);if(ig(x,w)<=-1&&(S=ng),ig(x,w)>=1&&(S=0),S<0){var O=Math.round(S/ng*1e6)/1e6;S=2*ng+O%2*ng}c.addData(u,m,b,a,s,_,S,h,o)}var sg=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,lg=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function ug(t){var e=new Da;if(!t)return e;var n,r=0,i=0,o=r,a=i,s=Da.CMD,l=t.match(sg);if(!l)return e;for(var u=0;uI*I+E*E&&(O=k,C=A),{cx:O,cy:C,x0:-c,y0:-h,x1:O*(i/x-1),y1:C*(i/x-1)}}function Rg(t){var e;if(Object(v["isArray"])(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}function Ng(t,e){var n,r=Eg(e.r,0),i=Eg(e.r0||0,0),o=r>0,a=i>0;if(o||a){if(o||(r=i,i=0),i>r){var s=r;r=i,i=s}var l=e.startAngle,u=e.endAngle;if(!isNaN(l)&&!isNaN(u)){var c=e.cx,h=e.cy,f=!!e.clockwise,d=Tg(u-l),p=d>Og&&d%Og;if(p>jg&&(d=p),r>jg)if(d>Og-jg)t.moveTo(c+r*kg(l),h+r*Cg(l)),t.arc(c,h,r,l,u,!f),i>jg&&(t.moveTo(c+i*kg(u),h+i*Cg(u)),t.arc(c,h,i,u,l,f));else{var g=void 0,v=void 0,y=void 0,m=void 0,b=void 0,_=void 0,x=void 0,w=void 0,S=void 0,O=void 0,C=void 0,k=void 0,A=void 0,M=void 0,T=void 0,I=void 0,E=r*kg(l),P=r*Cg(l),j=i*kg(u),L=i*Cg(u),D=d>jg;if(D){var R=e.cornerRadius;R&&(n=Rg(R),g=n[0],v=n[1],y=n[2],m=n[3]);var N=Tg(r-i)/2;if(b=Pg(N,y),_=Pg(N,m),x=Pg(N,g),w=Pg(N,v),C=S=Eg(b,_),k=O=Eg(x,w),(S>jg||O>jg)&&(A=r*kg(u),M=r*Cg(u),T=i*kg(l),I=i*Cg(l),djg){var W=Pg(y,C),U=Pg(m,C),$=Dg(T,I,E,P,r,W,f),Y=Dg(A,M,j,L,r,U,f);t.moveTo(c+$.cx+$.x0,h+$.cy+$.y0),C0&&t.arc(c+$.cx,h+$.cy,W,Mg($.y0,$.x0),Mg($.y1,$.x1),!f),t.arc(c,h,r,Mg($.cy+$.y1,$.cx+$.x1),Mg(Y.cy+Y.y1,Y.cx+Y.x1),!f),U>0&&t.arc(c+Y.cx,h+Y.cy,U,Mg(Y.y1,Y.x1),Mg(Y.y0,Y.x0),!f))}else t.moveTo(c+E,h+P),t.arc(c,h,r,l,u,!f);else t.moveTo(c+E,h+P);if(i>jg&&D)if(k>jg){W=Pg(g,k),U=Pg(v,k),$=Dg(j,L,A,M,i,-U,f),Y=Dg(E,P,T,I,i,-W,f);t.lineTo(c+$.cx+$.x0,h+$.cy+$.y0),k0&&t.arc(c+$.cx,h+$.cy,U,Mg($.y0,$.x0),Mg($.y1,$.x1),!f),t.arc(c,h,i,Mg($.cy+$.y1,$.cx+$.x1),Mg(Y.cy+Y.y1,Y.cx+Y.x1),f),W>0&&t.arc(c+Y.cx,h+Y.cy,W,Mg(Y.y1,Y.x1),Mg(Y.y0,Y.x0),!f))}else t.lineTo(c+j,h+L),t.arc(c,h,i,u,l,f);else t.lineTo(c+j,h+L)}else t.moveTo(c,h);t.closePath()}}}var Bg=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}(),Fg=function(t){function e(e){return t.call(this,e)||this}return p(e,t),e.prototype.getDefaultShape=function(){return new Bg},e.prototype.buildPath=function(t,e){Ng(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(ss);Fg.prototype.type="sector";var zg=Fg,Vg=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),qg=function(t){function e(e){return t.call(this,e)||this}return p(e,t),e.prototype.getDefaultShape=function(){return new Vg},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=2*Math.PI;t.moveTo(n+e.r,r),t.arc(n,r,e.r,0,i,!1),t.moveTo(n+e.r0,r),t.arc(n,r,e.r0,0,i,!0)},e}(ss);qg.prototype.type="ring";var Gg=qg;function Hg(t,e,n,r){var i,o,a,s,l=[],u=[],c=[],h=[];if(r){a=[1/0,1/0],s=[-1/0,-1/0];for(var f=0,d=t.length;f=2){if(r){var o=Hg(i,r,n,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=i[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(i[0][0],i[0][1]);s=1;for(var h=i.length;sbv[1]){if(a=!1,i)return a;var u=Math.abs(bv[0]-mv[1]),c=Math.abs(mv[0]-bv[1]);Math.min(u,c)>r.len()&&(uMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Uv(t){return!t.isGroup}function $v(t){return null!=t.shape}function Yv(t,e,n){if(t&&e){var r=i(t);e.traverse((function(t){if(Uv(t)&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),lu(t,i,n,Gs(t).dataIndex)}}}))}function i(t){var e={};return t.traverse((function(t){Uv(t)&&t.anid&&(e[t.anid]=t)})),e}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return $v(t)&&(e.shape=Object(v["extend"])({},t.shape)),e}}function Xv(t,e){return Object(v["map"])(t,(function(t){var n=t[0];n=Av(n,e.x),n=Mv(n,e.x+e.width);var r=t[1];return r=Av(r,e.y),r=Mv(r,e.y+e.height),[n,r]}))}function Kv(t,e){var n=Av(t.x,e.x),r=Mv(t.x+t.width,e.x+e.width),i=Av(t.y,e.y),o=Mv(t.y+t.height,e.y+e.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}}function Zv(t,e,n){var r=Object(v["extend"])({rectHover:!0},e),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),Object(v["defaults"])(i,n),new gs(r)):Dv(t.replace("path://",""),r,n,"center")}function Qv(t,e,n,r,i){for(var o=0,a=i[i.length-1];o1)return!1;var v=ty(d,p,c,h)/f;return!(v<0||v>1)}function ty(t,e,n,r){return t*r-n*e}function ey(t){return t<=1e-6&&t>=-1e-6}function ny(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,i=Object(v["isString"])(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&Object(v["each"])(Object(v["keys"])(l),(function(t){Object(v["hasOwn"])(s,t)||(s[t]=l[t],s.$vars.push(t))}));var u=Gs(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:Object(v["defaults"])({content:r,formatterParams:s},i)}}function ry(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function iy(t,e){if(t)if(Object(v["isArray"])(t))for(var n=0;n=0?h():c=setTimeout(h,-i),l=r};return f.clear=function(){c&&(clearTimeout(c),c=null)},f.debounceNextCall=function(t){s=t},f}function my(t,e,n,r){var i=t[e];if(i){var o=i[py]||i,a=i[vy],s=i[gy];if(s!==n||a!==r){if(null==n||!r)return t[e]=o;i=t[e]=yy(o,n,"debounce"===r),i[py]=o,i[vy]=r,i[gy]=n}return i}}function by(t,e){var n=t[e];n&&n[py]&&(n.clear&&n.clear(),t[e]=n[py])}var _y=Yi(),xy={itemStyle:xo(Vu,!0),lineStyle:xo(Bu,!0)},wy={lineStyle:"stroke",itemStyle:"fill"};function Sy(t,e){var n=t.visualStyleMapper||xy[e];return n||(console.warn("Unkown style type '"+e+"'."),xy.itemStyle)}function Oy(t,e){var n=t.visualDrawType||wy[e];return n||(console.warn("Unkown style type '"+e+"'."),"fill")}var Cy={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=t.getModel(r),o=Sy(t,r),a=o(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=Oy(t,r),u=a[l],c=Object(v["isFunction"])(u)?u:null,h="auto"===a.fill||"auto"===a.stroke;if(!a[l]||c||h){var f=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[l]||(a[l]=f,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||Object(v["isFunction"])(a.fill)?f:a.fill,a.stroke="auto"===a.stroke||Object(v["isFunction"])(a.stroke)?f:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var r=t.getDataParams(n),i=Object(v["extend"])({},a);i[l]=c(r),e.setItemVisual(n,"style",i)}}}},ky=new Wu,Ay={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=Sy(t,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[r]){ky.option=n[r];var a=i(ky),s=t.ensureUniqueItemVisual(e,"style");Object(v["extend"])(s,a),ky.option.decal&&(t.setItemVisual(e,"decal",ky.option.decal),ky.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},My={performRawSeries:!0,overallReset:function(t){var e=Object(v["createHashMap"])();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var r=t.type+"-"+n,i=e.get(r);i||(i={},e.set(r,i)),_y(t).scope=i}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),r={},i=e.getData(),o=_y(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=Oy(e,a);i.each((function(t){var e=i.getRawIndex(t);r[e]=t})),n.each((function(t){var a=r[t],l=i.getItemVisual(a,"colorFromPalette");if(l){var u=i.ensureUniqueItemVisual(a,"style"),c=n.getName(t)||t+"",h=n.count();u[s]=e.getColorFromPalette(c,o,h)}}))}}))}},Ty=Math.PI;function Iy(t,e){e=e||{},v["defaults"](e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Nr,r=new Os({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var i,o=new qs({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new Os({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&(i=new uv({shape:{startAngle:-Ty/2,endAngle:-Ty/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),i.animateShape(!0).when(1e3,{endAngle:3*Ty/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*Ty/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&i.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}var Ey=function(){function t(t,e,n,r){this._stageTaskMap=Object(v["createHashMap"])(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),r=n.context,i=!e&&n.progressiveEnabled&&(!r||r.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,a=r&&r.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),r=t.getData(),i=r.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,a=t.get("large")&&i>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Object(v["createHashMap"])();t.eachSeries((function(t){var r=t.getProgressive(),i=t.uid;n.set(i,{id:i,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:r&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;Object(v["each"])(this._allHandlers,(function(r){var i=t.get(r.uid)||t.set(r.uid,{}),o="";Object(v["assert"])(!(r.reset&&r.overallReset),o),r.reset&&this._createSeriesStageTask(r,i,e,n),r.overallReset&&this._createOverallStageTask(r,i,e,n)}),this)},t.prototype.prepareView=function(t,e,n,r){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=r,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,r){r=r||{};var i=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}Object(v["each"])(t,(function(t,s){if(!r.visualType||r.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,f=c.agentStubMap;f.each((function(t){a(r,t)&&(t.dirty(),h=!0)})),h&&c.dirty(),o.updatePayload(c,n);var d=o.getPerformArgs(c,r.block);f.each((function(t){t.perform(d)})),c.perform(d)&&(i=!0)}else u&&u.each((function(s,l){a(r,s)&&s.dirty();var u=o.getPerformArgs(s,r.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(i=!0)}))}})),this.unfinished=i||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,r){var i=this,o=e.seriesTaskMap,a=e.seriesTaskMap=Object(v["createHashMap"])(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||Cd({plan:Ry,reset:Ny,count:zy}));l.context={model:e,ecModel:n,api:r,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,r).each(u)},t.prototype._createOverallStageTask=function(t,e,n,r){var i=this,o=e.overallTask=e.overallTask||Cd({reset:Py});o.context={ecModel:n,api:r,overallReset:t.overallReset,scheduler:i};var a=o.agentStubMap,s=o.agentStubMap=Object(v["createHashMap"])(),l=t.seriesType,u=t.getTargetSeries,c=!0,h=!1,f="";function d(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(h=!0,Cd({reset:jy,onDirty:Dy})));n.context={model:t,overallProgress:c},n.agent=o,n.__block=c,i._pipe(t,n)}Object(v["assert"])(!t.createOnAllSeries,f),l?n.eachRawSeriesByType(l,d):u?u(n,r).each(d):(c=!1,Object(v["each"])(n.getSeries(),d)),h&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=e),r.tail&&r.tail.pipe(e),r.tail=e,e.__idxInPipeline=r.count++,e.__pipeline=r},t.wrapStageHandler=function(t,e){return Object(v["isFunction"])(t)&&(t={overallReset:t,seriesType:Vy(t)}),t.uid=$u("stageHandler"),e&&(t.visualType=e),t},t}();function Py(t){t.overallReset(t.ecModel,t.api,t.payload)}function jy(t){return t.overallProgress&&Ly}function Ly(){this.agent.dirty(),this.getDownstream().dirty()}function Dy(){this.agent&&this.agent.dirty()}function Ry(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Ny(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=ki(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Object(v["map"])(e,(function(t,e){return Fy(e)})):By}var By=Fy(0);function Fy(t){return function(e,n){var r=n.data,i=n.resetDefines[t];if(i&&i.dataEach)for(var o=e.start;o0&&c===i.length-u.length){var h=i.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(i)&&(n[i]=t,s=!0),s||(r[i]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:r}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,r,i));function u(t,e,n,r){return null==t[n]||e[r||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),nm=["symbol","symbolSize","symbolRotate","symbolOffset"],rm=nm.concat(["symbolKeepAspect"]),im={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var r={},i={},o=!1,a=0;a=0&&Tm(l)?l:.5;var u=t.createRadialGradient(a,s,0,a,s,l);return u}function Pm(t,e,n){for(var r="radial"===e.type?Em(t,e,n):Im(t,e,n),i=e.colorStops,o=0;o0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:Object(v["isNumber"])(t)?[t]:Object(v["isArray"])(t)?t:null:null}function Nm(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&Rm(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(n){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&1!==i&&(n=Object(v["map"])(n,(function(t){return t/i})),r/=i)}return[n,r]}var Bm=new Da(!0);function Fm(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function zm(t){return"string"===typeof t&&"none"!==t}function Vm(t){var e=t.fill;return null!=e&&"none"!==e}function qm(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function Gm(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function Hm(t,e,n){var r=Ao(e.image,e.__image,n);if(To(r)){var i=t.createPattern(r,e.repeat||"repeat");if("function"===typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*v["RADIAN_TO_DEGREE"]),o.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(o)}return i}}function Wm(t,e,n,r){var i,o=Fm(n),a=Vm(n),s=n.strokePercent,l=s<1,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var c=e.path||Bm,h=e.__dirty;if(!r){var f=n.fill,d=n.stroke,p=a&&!!f.colorStops,g=o&&!!d.colorStops,v=a&&!!f.image,y=o&&!!d.image,m=void 0,b=void 0,_=void 0,x=void 0,w=void 0;(p||g)&&(w=e.getBoundingRect()),p&&(m=h?Pm(t,f,w):e.__canvasFillGradient,e.__canvasFillGradient=m),g&&(b=h?Pm(t,d,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=b),v&&(_=h||!e.__canvasFillPattern?Hm(t,f,e):e.__canvasFillPattern,e.__canvasFillPattern=_),y&&(x=h||!e.__canvasStrokePattern?Hm(t,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=_),p?t.fillStyle=m:v&&(_?t.fillStyle=_:a=!1),g?t.strokeStyle=b:y&&(x?t.strokeStyle=x:o=!1)}var S,O,C=e.getGlobalScale();c.setScale(C[0],C[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(i=Nm(e),S=i[0],O=i[1]);var k=!0;(u||h&de)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),k=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),k&&c.rebuildPath(t,l?s:1),S&&(t.setLineDash(S),t.lineDashOffset=O),r||(n.strokeFirst?(o&&Gm(t,n),a&&qm(t,n)):(a&&qm(t,n),o&&Gm(t,n))),S&&t.setLineDash([])}function Um(t,e,n){var r=e.__image=Ao(n.image,e.__image,e,e.onload);if(r&&To(r)){var i=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;t.drawImage(r,u,c,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){u=n.sx,c=n.sy;var h=a-u,f=s-c;t.drawImage(r,u,c,h,f,i,o,a,s)}else t.drawImage(r,i,o,a,s)}}function $m(t,e,n){var r,i=n.text;if(null!=i&&(i+=""),i){t.font=n.font||fr["a"],t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(r=Nm(e),o=r[0],a=r[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(Fm(n)&&t.strokeText(i,n.x,n.y),Vm(n)&&t.fillText(i,n.x,n.y)):(Vm(n)&&t.fillText(i,n.x,n.y),Fm(n)&&t.strokeText(i,n.x,n.y)),o&&t.setLineDash([])}}var Ym=["shadowBlur","shadowOffsetX","shadowOffsetY"],Xm=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Km(t,e,n,r,i){var o=!1;if(!r&&(n=n||{},e===n))return!1;if(r||e.opacity!==n.opacity){sb(t,i),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?Uo.opacity:a}(r||e.blend!==n.blend)&&(o||(sb(t,i),o=!0),t.globalCompositeOperation=e.blend||Uo.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[$b])if(this._disposed)A_(this.id);else{var r,i,o;if(Object(v["isObject"])(e)&&(n=e.lazyUpdate,r=e.silent,i=e.replaceMerge,o=e.transition,e=e.notMerge),this[$b]=!0,!this._model||e){var a=new xf(this._api),s=this._theme,l=this._model=new lf;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:i},E_);var u={seriesTransition:o,optionChanged:!0};if(n)this[Yb]={silent:r,updateParams:u},this[$b]=!1,this.getZr().wakeUp();else{try{i_(this),s_.update.call(this,null,u)}catch(c){throw this[Yb]=null,this[$b]=!1,c}this._ssr||this._zr.flush(),this[Yb]=null,this[$b]=!1,h_.call(this,r),f_.call(this,r)}}},e.prototype.setTheme=function(){Zh("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Ab&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var e=this._zr.painter;return e.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var e=this._zr.painter;return e.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(g["a"].svgSupported){var t=this._zr,e=t.storage.getDisplayList();return Object(v["each"])(e,(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,n=this._model,r=[],i=this;Object(v["each"])(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=i._componentsMap[t.__viewId];e.group.ignore||(r.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 Object(v["each"])(r,(function(t){t.group.ignore=!1})),o}A_(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,r=Math.min,i=Math.max,o=1/0;if(R_[n]){var a=o,s=o,l=-o,u=-o,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();Object(v["each"])(D_,(function(o,h){if(o.group===n){var f=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(Object(v["clone"])(t)),d=o.getDom().getBoundingClientRect();a=r(d.left,a),s=r(d.top,s),l=i(d.right,l),u=i(d.bottom,u),c.push({dom:f,left:d.left,top:d.top})}})),a*=h,s*=h,l*=h,u*=h;var f=l-a,d=u-s,p=fr["d"].createCanvas(),g=Gr(p,{renderer:e?"svg":"canvas"});if(g.resize({width:f,height:d}),e){var y="";return Object(v["each"])(c,(function(t){var e=t.left-a,n=t.top-s;y+=''+t.dom+""})),g.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return t.connectedBackgroundColor&&g.add(new Os({shape:{x:0,y:0,width:f,height:d},style:{fill:t.connectedBackgroundColor}})),Object(v["each"])(c,(function(t){var e=new gs({style:{x:t.left*h-a,y:t.top*h-s,image:t.dom}});g.add(e)})),g.refreshImmediately(),p.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}A_(this.id)},e.prototype.convertToPixel=function(t,e){return l_(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return l_(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){if(!this._disposed){var n,r=this._model,i=Ki(r,t);return Object(v["each"])(i,(function(t,r){r.indexOf("Models")>=0&&Object(v["each"])(t,(function(t){var i=t.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(e);else if("seriesModels"===r){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}else 0}),this)}),this),!!n}A_(this.id)},e.prototype.getVisual=function(t,e){var n=this._model,r=Ki(n,t,{defaultMainType:"series"}),i=r.seriesModel;var o=i.getData(),a=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?o.indexOfRawIndex(r.dataIndex):null;return null!=a?am(o,a,e):sm(o,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;Object(v["each"])(k_,(function(e){var n=function(n){var r,i=t.getModel(),o=n.target,a="globalout"===e;if(a?r={}:o&&fm(o,(function(t){var e=Gs(t);if(e&&null!=e.dataIndex){var n=e.dataModel||i.getSeriesByIndex(e.seriesIndex);return r=n&&n.getDataParams(e.dataIndex,e.dataType)||{},!0}if(e.eventData)return r=Object(v["extend"])({},e.eventData),!0}),!0),r){var s=r.componentType,l=r.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=r.seriesIndex);var u=s&&null!=l&&i.getComponent(s,l),c=u&&t["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,r.event=n,r.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:r,model:u,view:c},t.trigger(e,r)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)})),Object(v["each"])(T_,(function(e,n){t._messageCenter.on(n,(function(t){this.trigger(n,t)}),t)})),Object(v["each"])(["selectchanged"],(function(e){t._messageCenter.on(e,(function(t){this.trigger(e,t)}),t)})),hm(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?A_(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)A_(this.id);else{this._disposed=!0;var t=this.getDom();t&&eo(this.getDom(),F_,"");var e=this,n=e._api,r=e._model;Object(v["each"])(e._componentsViews,(function(t){t.dispose(r,n)})),Object(v["each"])(e._chartsViews,(function(t){t.dispose(r,n)})),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete D_[e.id]}},e.prototype.resize=function(t){if(!this[$b])if(this._disposed)A_(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),r=t&&t.silent;this[Yb]&&(null==r&&(r=this[Yb].silent),n=!0,this[Yb]=null),this[$b]=!0;try{n&&i_(this),s_.update.call(this,{type:"resize",animation:Object(v["extend"])({duration:0},t&&t.animation)})}catch(i){throw this[$b]=!1,i}this[$b]=!1,h_.call(this,r),f_.call(this,r)}}},e.prototype.showLoading=function(t,e){if(this._disposed)A_(this.id);else if(Object(v["isObject"])(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),L_[t]){var n=L_[t](this._api,e),r=this._zr;this._loadingFX=n,r.add(n)}},e.prototype.hideLoading=function(){this._disposed?A_(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=Object(v["extend"])({},t);return e.type=T_[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)A_(this.id);else if(Object(v["isObject"])(e)||(e={silent:!!e}),M_[t.type]&&this._model)if(this[$b])this._pendingActions.push(t);else{var n=e.silent;c_.call(this,t,n);var r=e.flush;r?this._zr.flush():!1!==r&&g["a"].browser.weChat&&this._throttledZrFlush(),h_.call(this,n),f_.call(this,n)}},e.prototype.updateLabelLayout=function(){Sb.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)A_(this.id);else{var e=t.seriesIndex,n=this.getModel(),r=n.getSeriesByIndex(e);0,r.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function e(t){var e=[],n=[],r=!1;if(t.eachComponent((function(t,i){var o=i.get("zlevel")||0,a=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:i.componentIndex,type:t,key:s})})),r){var i,o,a=e.concat(n);ce(a,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),Object(v["each"])(a,(function(e){var n=t.getComponent(e.type,e.idx),r=e.zlevel,a=e.key;null!=i&&(r=Math.max(i,r)),a?(r===i&&a!==o&&r++,o=a):o&&(r===i&&r++,o=""),i=r,n.setZLevel(r)}))}}function n(t){for(var e=[],n=t.currentStates,r=0;re.get("hoverLayerThreshold")&&!g["a"].node&&!g["a"].worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}function i(t,e){var n=t.get("blendMode")||null;e.eachRendered((function(t){t.isGroup||(t.style.blend=n)}))}function o(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,r=t.get("zlevel")||0;e.eachRendered((function(t){return a(t,n,r,-1/0),!0}))}}function a(t,e,n,r){var i=t.getTextContent(),o=t.getTextGuideLine(),s=t.isGroup;if(s)for(var l=t.childrenRef(),u=0;u0?{duration:o,delay:r.get("delay"),easing:r.get("easing")}:null;e.eachRendered((function(t){if(t.states&&t.states.emphasis){if(cu(t))return;if(t instanceof ss&&iu(t),t.__dirty){var e=t.prevStates;e&&t.useStates(e)}if(i){t.stateTransition=a;var r=t.getTextContent(),o=t.getTextGuideLine();r&&(r.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&n(t)}}))}i_=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),o_(t,!0),o_(t,!1),e.plan()},o_=function(t,e){for(var n=t._model,r=t._scheduler,i=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l=0)){ix.push(n);var o=Uy.wrapStageHandler(n,i);o.__prio=e,o.__raw=n,t.push(o)}}function ax(t,e){L_[t]=e}function sx(t){Object(fr["e"])({createCanvas:t})}function lx(t,e,n){var r=kb("registerMap");r&&r(t,e,n)}function ux(t){var e=kb("getMap");return e&&e(t)}var cx=Gd;rx(Bb,Cy),rx(Vb,Ay),rx(Vb,My),rx(Bb,im),rx(Vb,om),rx(Wb,xb),Y_(Wf),X_(Pb,Uf),ax("default",Iy),J_({type:nl,event:nl,update:nl},v["noop"]),J_({type:rl,event:rl,update:rl},v["noop"]),J_({type:il,event:il,update:il},v["noop"]),J_({type:ol,event:ol,update:ol},v["noop"]),J_({type:al,event:al,update:al},v["noop"]),$_("light",Yy),$_("dark",tm);var hx={},fx=[],dx={registerPreprocessor:Y_,registerProcessor:X_,registerPostInit:K_,registerPostUpdate:Z_,registerUpdateLifecycle:Q_,registerAction:J_,registerCoordinateSystem:tx,registerLayout:nx,registerVisual:rx,registerTransform:cx,registerLoading:ax,registerMap:lx,registerImpl:Cb,PRIORITY:Ub,ComponentModel:vh,ComponentView:Up,SeriesModel:Hp,ChartView:dy,registerComponentModel:function(t){vh.registerClass(t)},registerComponentView:function(t){Up.registerClass(t)},registerSeriesModel:function(t){Hp.registerClass(t)},registerChartView:function(t){dy.registerClass(t)},registerSubTypeDefaulter:function(t,e){vh.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){$r(t,e)}};function px(t){Object(v["isArray"])(t)?Object(v["each"])(t,(function(t){px(t)})):Object(v["indexOf"])(fx,t)>=0||(fx.push(t),Object(v["isFunction"])(t)&&(t={install:t}),t.install(dx))}function gx(t){return null==t?0:t.length||1}function vx(t){return t}var yx=function(){function t(t,e,n,r,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||vx,this._newKeyGetter=r||vx,this.context=i,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},r=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,r,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},r={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,r,o,"_newKeyGetter");for(var a=0;a1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),r[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),r[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),r[s]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),r[s]=null;else if(c>1)for(var f=0;f1)for(var a=0;a30}var jx,Lx,Dx,Rx,Nx,Bx,Fx,zx=v["isObject"],Vx=v["map"],qx="undefined"===typeof Int32Array?Array:Int32Array,Gx="e\0\0",Hx=-1,Wx=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Ux=["_approximateExtent"],$x=function(){function t(t,e){var n;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 r=!1;Tx(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,n=t),n=n||["x","y"];for(var i={},o=[],a={},s=!1,l={},u=0;u=e)){var n=this._store,r=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,a=r.getSource().sourceFormat,s=a===xh;if(s&&!r.pure)for(var l=[],u=t;u0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,r=n[t];r||(r=n[t]={});var i=r[e];return null==i&&(i=this.getVisual(e),v["isArray"](i)?i=i.slice():zx(i)&&(i=v["extend"]({},i)),r[e]=i),i},t.prototype.setItemVisual=function(t,e,n){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,zx(e)?v["extend"](r,e):r[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){zx(t)?v["extend"](this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?v["extend"](this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;Hs(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){v["each"](this._graphicEls,(function(n,r){n&&t&&t.call(e,n,r)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Vx(this.dimensions,this._getDimInfo,this),this.hostModel)),Nx(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];v["isFunction"](n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(v["slice"](arguments)))})},t.internalField=function(){jx=function(t){var e=t._invertedIndicesMap;v["each"](e,(function(n,r){var i=t._dimInfos[r],o=i.ordinalMeta,a=t._store;if(o){n=e[r]=new qx(o.categories.length);for(var s=0;s1&&(s+="__ec__"+u),r[e]=s}}}(),t}(),Yx=$x;function Xx(t,e){return Kx(t,e).dimensions}function Kx(t,e){td(t)||(t=nd(t)),e=e||{};var n=e.coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],i=Object(v["createHashMap"])(),o=[],a=Qx(t,n,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Px(a),l=r===t.dimensionsDefine,u=l?Ex(t):Ix(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,a));for(var h=Object(v["createHashMap"])(c),f=new Zd(a),d=0;d0&&(r.name=i+(o-1)),o++,e.set(i,o)}}function Qx(t,e,n,r){var i=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return Object(v["each"])(e,(function(t){var e;Object(v["isObject"])(t)&&(e=t.dimsDef)&&(i=Math.max(i,e.length))})),i}function Jx(t,e,n){var r=e.data;if(n||r.hasOwnProperty(t)){var i=0;while(r.hasOwnProperty(t+i))i++;t+=i}return e.set(t,!0),t}var tw=function(){function t(t){this.coordSysDims=[],this.axisMap=Object(v["createHashMap"])(),this.categoryAxisMap=Object(v["createHashMap"])(),this.coordSysName=t}return t}();function ew(t){var e=t.get("coordinateSystem"),n=new tw(e),r=nw[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}var nw={cartesian2d:function(t,e,n,r){var i=t.getReferringComponents("xAxis",Qi).models[0],o=t.getReferringComponents("yAxis",Qi).models[0];e.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),rw(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),rw(o)&&(r.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var i=t.getReferringComponents("singleAxis",Qi).models[0];e.coordSysDims=["single"],n.set("single",i),rw(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var i=t.getReferringComponents("polar",Qi).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),rw(o)&&(r.set("radius",o),e.firstCategoryDimIndex=0),rw(a)&&(r.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,r){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var i=t.ecModel,o=i.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();Object(v["each"])(o.parallelAxisIndex,(function(t,o){var s=i.getComponent("parallelAxis",t),l=a[o];n.set(l,s),rw(s)&&(r.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))}))}};function rw(t){return"category"===t.get("type")}function iw(t,e,n){n=n||{};var r,i,o,a=n.byIndex,s=n.stackedCoordDimension;ow(e)?r=e:(i=e.schema,r=i.dimensions,o=e.store);var l,u,c,h,f=!(!t||!t.get("stack"));if(Object(v["each"])(r,(function(t,e){Object(v["isString"])(t)&&(r[e]=t={name:t}),f&&!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){c="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var d=u.coordDim,p=u.type,g=0;Object(v["each"])(r,(function(t){t.coordDim===d&&g++}));var y={name:c,coordDim:d,coordDimIndex:g,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},m={name:h,coordDim:h,coordDimIndex:g+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(o&&(y.storeDimIndex=o.ensureCalculationDimension(h,p),m.storeDimIndex=o.ensureCalculationDimension(c,p)),i.appendCalculationDimension(y),i.appendCalculationDimension(m)):(r.push(y),r.push(m))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:c}}function ow(t){return!Tx(t.schema)}function aw(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function sw(t,e){return aw(t,e)?t.getCalculationInfo("stackResultDimension"):e}function lw(t,e){var n,r=t.get("coordinateSystem"),i=pf.get(r);return e&&e.coordSysDims&&(n=v["map"](e.coordSysDims,(function(t){var n={name:t},r=e.axisMap.get(t);if(r){var i=r.get("type");n.type=wx(i)}return n}))),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function uw(t,e,n){var r,i;return n&&v["each"](t,(function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==r&&(r=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(i=!0)})),i||null==r||(t[r].otherDims.itemName=0),r}function cw(t,e,n){n=n||{};var r,i=e.getSourceManager(),o=!1;t?(o=!0,r=nd(t)):(r=i.getSource(),o=r.sourceFormat===xh);var a=ew(e),s=lw(e,a),l=n.useEncodeDefaulter,u=v["isFunction"](l)?l:l?v["curry"](Ph,s,e):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},h=Kx(r,c),f=uw(h.dimensions,n.createInvertedIndices,a),d=o?null:i.getSharedDataStore(h),p=iw(e,{schema:h,store:d}),g=new Yx(h,e);g.setCalculationInfo(p);var y=null!=f&&hw(r)?function(t,e,n,r){return r===f?n:this.defaultDimValueGetter(t,e,n,r)}:null;return g.hasItemOption=!1,g.initData(o?r:d,null,y),g}function hw(t){if(t.sourceFormat===xh){var e=fw(t.data||[]);return!v["isArray"](Ti(e))}}function fw(t){var e=0;while(ee[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();_o(pw);var gw=pw,vw=0,yw=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++vw}return t.createByAxisModel=function(e){var n=e.option,r=n.data,i=r&&Object(v["map"])(r,mw);return new t({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!Object(v["isString"])(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var r=this._getOrCreateMap();return e=r.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,r.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(v["createHashMap"])(this.categories))},t}();function mw(t){return Object(v["isObject"])(t)&&null!=t.value?t.value:t+""}var bw=yw;function _w(t){return"interval"===t.type||"log"===t.type}function xw(t,e,n,r){var i={},o=t[1]-t[0],a=i.interval=gi(o/e,!0);null!=n&&ar&&(a=i.interval=r);var s=i.intervalPrecision=Sw(a),l=i.niceTickExtent=[ti(Math.ceil(t[0]/a)*a,s),ti(Math.floor(t[1]/a)*a,s)];return Cw(l,t),i}function ww(t){var e=Math.pow(10,pi(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,ti(n*e)}function Sw(t){return ni(t)+2}function Ow(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function Cw(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Ow(t,0,e),Ow(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function kw(t,e){return t>=e[0]&&t<=e[1]}function Aw(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Mw(t,e){return t*(e[1]-e[0])+e[0]}var Tw=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new bw({})),Object(v["isArray"])(r)&&(r=new bw({categories:Object(v["map"])(r,(function(t){return Object(v["isObject"])(t)?t.value:t}))})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return p(e,t),e.prototype.parse=function(t){return null==t?NaN:Object(v["isString"])(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),kw(t,this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Aw(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Mw(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){var t=[],e=this._extent,n=e[0];while(n<=e[1])t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);i=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(gw);gw.registerClass(Tw);var Iw=Tw,Ew=ti,Pw=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return p(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return kw(t,this._extent)},e.prototype.normalize=function(t){return Aw(t,this._extent)},e.prototype.scale=function(t){return Mw(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Sw(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!e)return o;var a=1e4;n[0]a)return[]}var l=o.length?o[o.length-1].value:r[1];return n[1]>l&&(t?o.push({value:Ew(l+e,i)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],r=this.getExtent(),i=1;ir[0]&&h0&&(o=null===o?s:Math.min(o,s))}n[r]=o}}return n}function Gw(t){var e=qw(t),n=[];return Object(v["each"])(t,(function(t){var r,i=t.coordinateSystem,o=i.getBaseAxis(),a=o.getExtent();if("category"===o.type)r=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]),c=o.scale.getExtent(),h=Math.abs(c[1]-c[0]);r=l?u/h*l:u}else{var f=t.getData();r=Math.abs(a[1]-a[0])/f.count()}var d=Jr(t.get("barWidth"),r),p=Jr(t.get("barMaxWidth"),r),g=Jr(t.get("barMinWidth")||(Xw(t)?.5:1),r),v=t.get("barGap"),y=t.get("barCategoryGap");n.push({bandWidth:r,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:v,barCategoryGap:y,axisKey:Fw(o),stackId:Bw(t)})})),Hw(n)}function Hw(t){var e={};Object(v["each"])(t,(function(t,n){var r=t.axisKey,i=t.bandWidth,o=e[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[r]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barMinWidth;c&&(a[s].minWidth=c);var h=t.barGap;null!=h&&(o.gap=h);var f=t.barCategoryGap;null!=f&&(o.categoryGap=f)}));var n={};return Object(v["each"])(e,(function(t,e){n[e]={};var r=t.stacks,i=t.bandWidth,o=t.categoryGap;if(null==o){var a=Object(v["keys"])(r).length;o=Math.max(35-4*a,15)+"%"}var s=Jr(o,i),l=Jr(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),Object(v["each"])(r,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){r=t.width;e&&(r=Math.min(r,e)),n&&(r=Math.max(r,n)),t.width=r,u-=r+l*r,c--}else{var r=h;e&&er&&(r=n),r!==h&&(t.width=r,u-=r+l*r,c--)}})),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var f,d=0;Object(v["each"])(r,(function(t,e){t.width||(t.width=h),f=t,d+=t.width*(1+l)})),f&&(d-=f.width*l);var p=-d/2;Object(v["each"])(r,(function(t,r){n[e][r]=n[e][r]||{bandWidth:i,offset:p,width:t.width},p+=t.width*(1+l)}))})),n}function Ww(t,e,n){if(t&&e){var r=t[Fw(e)];return null!=r&&null!=n?r[Bw(n)]:r}}function Uw(t,e){var n=Vw(t,e),r=Gw(n);Object(v["each"])(n,(function(t){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),o=Bw(t),a=r[Fw(i)][o],s=a.offset,l=a.width;e.setLayout({bandWidth:a.bandWidth,offset:s,size:l})}))}function $w(t){return{seriesType:t,plan:$p(),reset:function(t){if(Yw(t)){var e=t.getData(),n=t.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),o=e.getDimensionIndex(e.mapDimension(i.dim)),a=e.getDimensionIndex(e.mapDimension(r.dim)),s=t.get("showBackground",!0),l=e.mapDimension(i.dim),u=e.getCalculationInfo("stackResultDimension"),c=aw(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),f=Kw(r,i),d=Xw(t),p=t.get("barMinHeight")||0,g=u&&e.getDimensionIndex(u),v=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(t,e){var r,i=t.count,l=d&&Rw(3*i),u=d&&s&&Rw(3*i),m=d&&Rw(i),b=n.master.getRect(),_=h?b.width:b.height,x=e.getStore(),w=0;while(null!=(r=t.next())){var S=x.get(c?g:o,r),O=x.get(a,r),C=f,k=void 0;c&&(k=+S-x.get(o,r));var A=void 0,M=void 0,T=void 0,I=void 0;if(h){var E=n.dataToPoint([S,O]);if(c){var P=n.dataToPoint([k,O]);C=P[0]}A=C,M=E[1]+y,T=E[0]-C,I=v,Math.abs(T)>>1;t[i][1]n&&(this._approxInterval=n);var o=Jw.length,a=Math.min(Zw(Jw,this._approxInterval,0,o),o-1);this._interval=Jw[a][1],this._minLevelUnit=Jw[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return Object(v["isNumber"])(t)?t:+fi(t)},e.prototype.contain=function(t){return kw(this.parse(t),this._extent)},e.prototype.normalize=function(t){return Aw(this.parse(t),this._extent)},e.prototype.scale=function(t){return Mw(t,this._extent)},e.type="time",e}(jw),Jw=[["second",uc],["minute",cc],["hour",hc],["quarter-day",6*hc],["half-day",12*hc],["day",1.2*fc],["half-week",3.5*fc],["week",7*fc],["month",31*fc],["quarter",95*fc],["half-year",dc/2],["year",dc]];function tS(t,e,n,r){var i=fi(e),o=fi(n),a=function(t){return kc(i,t,r)===kc(o,t,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},h=function(){return c()&&a("minute")},f=function(){return h()&&a("second")},d=function(){return f()&&a("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return f();case"millisecond":return d()}}function eS(t,e){return t/=fc,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function nS(t){var e=30*fc;return t/=e,t>6?6:t>3?3:t>2?2:1}function rS(t){return t/=hc,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function iS(t,e){return t/=e?cc:uc,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function oS(t){return gi(t,!0)}function aS(t,e,n){var r=new Date(t);switch(_c(e)){case"year":case"month":r[Dc(n)](0);case"day":r[Rc(n)](1);case"hour":r[Nc(n)](0);case"minute":r[Bc(n)](0);case"second":r[Fc(n)](0),r[zc(n)](0)}return r.getTime()}function sS(t,e,n,r){var i=1e4,o=mc,a=0;function s(t,e,n,i,o,a,s){var l=new Date(e),u=e,c=l[i]();while(u1&&0===u&&o.unshift({value:o[0].value-f})}}for(u=0;u=r[0]&&b<=r[1]&&h++)}var _=(r[1]-r[0])/e;if(h>1.5*_&&f>_/1.5)break;if(u.push(y),h>_||t===o[d])break}c=[]}}}var x=Object(v["filter"])(Object(v["map"])(u,(function(t){return Object(v["filter"])(t,(function(t){return t.value>=r[0]&&t.value<=r[1]&&!t.notAdd}))})),(function(t){return t.length>0})),w=[],S=x.length-1;for(d=0;d0)r*=10;var o=[ti(dS(e[0]/r)*r),ti(fS(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},e.prototype.calcNiceExtent=function(t){cS.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=gS(t)/gS(this.base),kw(t,this._extent)},e.prototype.normalize=function(t){return t=gS(t)/gS(this.base),Aw(t,this._extent)},e.prototype.scale=function(t){return t=Mw(t,this._extent),pS(this.base,t)},e.type="log",e}(gw),yS=vS.prototype;function mS(t,e){return hS(t,ni(e))}yS.getMinorTicks=cS.getMinorTicks,yS.getLabel=cS.getLabel,gw.registerClass(vS);var bS=vS,_S=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var h=this._determinedMin,f=this._determinedMax;return null!=h&&(a=h,l=!0),null!=f&&(s=f,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},t.prototype.modifyDataMinMax=function(t,e){this[wS[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=xS[t];this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),xS={min:"_determinedMin",max:"_determinedMax"},wS={min:"_dataMin",max:"_dataMax"};function SS(t,e,n){var r=t.rawExtentInfo;return r||(r=new _S(t,e,n),t.rawExtentInfo=r,r)}function OS(t,e){return null==e?null:Object(v["eqNaN"])(e)?NaN:t.parse(e)}function CS(t,e){var n=t.type,r=SS(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var i=r.min,o=r.max,a=e.ecModel;if(a&&"time"===n){var s=Vw("bar",a),l=!1;if(v["each"](s,(function(t){l=l||t.getBaseAxis()===e.axis})),l){var u=Gw(s),c=kS(i,o,e,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function kS(t,e,n,r){var i=n.axis.getExtent(),o=i[1]-i[0],a=Ww(r,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;v["each"](a,(function(t){s=Math.min(t.offset,s)}));var l=-1/0;v["each"](a,(function(t){l=Math.max(t.offset+t.width,l)})),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,h=1-(s+l)/o,f=c/h-c;return e+=f*(l/u),t-=f*(s/u),{min:t,max:e}}function AS(t,e){var n=e,r=CS(t,n),i=r.extent,o=n.get("splitNumber");t instanceof bS&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function MS(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new Iw({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new lS({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(gw.getClass(e)||jw)}}function TS(t){var e=t.scale.getExtent(),n=e[0],r=e[1];return!(n>0&&r>0||n<0&&r<0)}function IS(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(e){return function(n,r){return t.scale.getFormattedLabel(n,r,e)}}(e):v["isString"](e)?function(e){return function(n){var r=t.scale.getLabel(n),i=e.replace("{value}",null!=r?r:"");return i}}(e):v["isFunction"](e)?function(e){return function(r,i){return null!=n&&(i=r.value-n),e(ES(t,r),i,null!=r.level?{level:r.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function ES(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function PS(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var r,i,o=n.getExtent();n instanceof Iw?i=n.count():(r=n.getTicks(),i=r.length);var a,s=t.getLabelModel(),l=IS(t),u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;ct[1]&&(t[1]=r[1])}))}var BS=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},t.prototype.getCoordSysModel=function(){},t}();function FS(t){return dw(null,t)}var zS={isDimensionStacked:aw,enableDataStack:iw,getStackedDimension:sw};function VS(t,e){var n=e;e instanceof Wu||(n=new Wu(e));var r=MS(n);return r.setExtent(t[0],t[1]),AS(r,n),r}function qS(t){v["mixin"](t,BS)}function GS(t,e){return e=e||{},xu(t,null,null,"normal"!==e.state)}var HS=1e-8;function WS(t,e){return Math.abs(t-e)n&&(t=i,n=a)}if(t)return KS(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},e.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],r=[-1/0,-1/0],i=this.geometries;return Object(v["each"])(i,(function(e){"polygon"===e.type?XS(e.exterior,n,r,t):Object(v["each"])(e.points,(function(e){XS(e,n,r,t)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),e=new qt(n[0],n[1],r[0]-n[0],r[1]-n[1]),t||(this._rect=e),e},e.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var r=0,i=n.length;r>1^-(1&s),l=l>>1^-(1&l),s+=i,l+=o,i=s,o=l,r.push([s/n,l/n])}return r}function oO(t,e){return t=nO(t),v["map"](v["filter"](t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,r=t.geometry,i=[];switch(r.type){case"Polygon":var o=r.coordinates;i.push(new QS(o[0],o.slice(1)));break;case"MultiPolygon":v["each"](r.coordinates,(function(t){t[0]&&i.push(new QS(t[0],t.slice(1)))}));break;case"LineString":i.push(new JS([r.coordinates]));break;case"MultiLineString":i.push(new JS(r.coordinates))}var a=new tO(n[e||"name"],i,n.cp);return a.properties=n,a}))}function aO(t,e,n,r,i,o,a,s){var l=new qs({style:{text:t,font:e,align:n,verticalAlign:r,padding:i,rich:o,overflow:a?"truncate":null,lineHeight:s}});return l.getBoundingRect()}var sO=Yi();function lO(t){return"category"===t.type?cO(t):dO(t)}function uO(t,e){return"category"===t.type?fO(t,e):{ticks:v["map"](t.scale.getTicks(),(function(t){return t.value}))}}function cO(t){var e=t.getLabelModel(),n=hO(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function hO(t,e){var n,r,i=pO(t,"labels"),o=LS(e),a=gO(i,o);return a||(v["isFunction"](o)?n=xO(t,o):(r="auto"===o?yO(t):o,n=_O(t,r)),vO(i,o,{labels:n,labelCategoryInterval:r}))}function fO(t,e){var n,r,i=pO(t,"ticks"),o=LS(e),a=gO(i,o);if(a)return a;if(e.get("show")&&!t.scale.isBlank()||(n=[]),v["isFunction"](o))n=xO(t,o,!0);else if("auto"===o){var s=hO(t,t.getLabelModel());r=s.labelCategoryInterval,n=v["map"](s.labels,(function(t){return t.tickValue}))}else r=o,n=_O(t,r,!0);return vO(i,o,{ticks:n,tickCategoryInterval:r})}function dO(t){var e=t.scale.getTicks(),n=IS(t);return{labels:v["map"](e,(function(e,r){return{level:e.level,formattedLabel:n(e,r),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}function pO(t,e){return sO(t)[e]||(sO(t)[e]=[])}function gO(t,e){for(var n=0;n40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),c=Math.abs(u*Math.cos(r)),h=Math.abs(u*Math.sin(r)),f=0,d=0;l<=o[1];l+=s){var p=0,g=0,v=vr(n({value:l}),e.font,"center","top");p=1.3*v.width,g=1.3*v.height,f=Math.max(f,p,7),d=Math.max(d,g,7)}var y=f/c,m=d/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var b=Math.max(0,Math.floor(Math.min(y,m))),_=sO(t.model),x=t.getExtent(),w=_.lastAutoInterval,S=_.lastTickCount;return null!=w&&null!=S&&Math.abs(w-b)<=1&&Math.abs(S-a)<=1&&w>b&&_.axisExtent0===x[0]&&_.axisExtent1===x[1]?b=w:(_.lastTickCount=a,_.lastAutoInterval=b,_.axisExtent0=x[0],_.axisExtent1=x[1]),b}function bO(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 _O(t,e,n){var r=IS(t),i=t.scale,o=i.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=o[0],c=i.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=DS(t),f=a.get("showMinLabel")||h,d=a.get("showMaxLabel")||h;f&&u!==o[0]&&g(o[0]);for(var p=u;p<=o[1];p+=l)g(p);function g(t){var e={value:t};s.push(n?t:{formattedLabel:r(e),rawLabel:i.getLabel(e),tickValue:t})}return d&&p-l!==o[1]&&g(o[1]),s}function xO(t,e,n){var r=t.scale,i=IS(t),o=[];return v["each"](r.getTicks(),(function(t){var a=r.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:i(t),rawLabel:a,tickValue:s})})),o}var wO=[0,1],SO=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]);return t>=n&&t<=r},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return ii(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,r=this.scale;return t=r.normalize(t),this.onBand&&"ordinal"===r.type&&(n=n.slice(),OO(n,r.count())),Qr(t,wO,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&(n=n.slice(),OO(n,r.count()));var i=Qr(t,n,wO,e);return this.scale.scale(i)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=uO(this,e),r=n.ticks,i=Object(v["map"])(r,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this),o=e.get("alignWithLabel");return CO(this,i,o,t.clamp),i},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),r=Object(v["map"])(n,(function(t){return Object(v["map"])(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this);return r},t.prototype.getViewLabels=function(){return lO(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(t[1]-t[0]);return Math.abs(r)/n},t.prototype.calculateCategoryInterval=function(){return mO(this)},t}();function OO(t,e){var n=t[1]-t[0],r=e,i=n/r/2;t[0]+=i,t[1]-=i}function CO(t,e,n,r){var i=e.length;if(t.onBand&&!n&&i){var o,a,s=t.getExtent();if(1===i)e[0].coord=s[0],o=e[1]={coord:s[0]};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;Object(v["each"])(e,(function(t){t.coord-=u/2}));var c=t.scale.getExtent();a=1+c[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*a},e.push(o)}var h=s[0]>s[1];f(e[0].coord,s[0])&&(r?e[0].coord=s[0]:e.shift()),r&&f(s[0],e[0].coord)&&e.unshift({coord:s[0]}),f(s[1],o.coord)&&(r?o.coord=s[1]:e.pop()),r&&f(o.coord,s[1])&&e.push({coord:s[1]})}function f(t,e){return t=ti(t),e=ti(e),h?t>e:ti&&(i+=EO);var d=Math.atan2(s,a);if(d<0&&(d+=EO),d>=r&&d<=i||d+EO>=r&&d+EO<=i)return l[0]=c,l[1]=h,u-n;var p=n*Math.cos(r)+t,g=n*Math.sin(r)+e,v=n*Math.cos(i)+t,y=n*Math.sin(i)+e,m=(p-a)*(p-a)+(g-s)*(g-s),b=(v-a)*(v-a)+(y-s)*(y-s);return m0){e=e/180*Math.PI,VO.fromArray(t[0]),qO.fromArray(t[1]),GO.fromArray(t[2]),Pt.sub(HO,VO,qO),Pt.sub(WO,GO,qO);var n=HO.len(),r=WO.len();if(!(n<.001||r<.001)){HO.scale(1/n),WO.scale(1/r);var i=HO.dot(WO),o=Math.cos(e);if(o1&&Pt.copy(YO,GO),YO.toArray(t[1])}}}}function KO(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,VO.fromArray(t[0]),qO.fromArray(t[1]),GO.fromArray(t[2]),Pt.sub(HO,qO,VO),Pt.sub(WO,GO,qO);var r=HO.len(),i=WO.len();if(!(r<.001||i<.001)){HO.scale(1/r),WO.scale(1/i);var o=HO.dot(e),a=Math.cos(n);if(o=l)Pt.copy(YO,GO);else{YO.scaleAndAdd(WO,s/Math.tan(Math.PI/2-c));var h=GO.x!==qO.x?(YO.x-qO.x)/(GO.x-qO.x):(YO.y-qO.y)/(GO.y-qO.y);if(isNaN(h))return;h<0?Pt.copy(YO,qO):h>1&&Pt.copy(YO,GO)}YO.toArray(t[1])}}}}function ZO(t,e,n,r){var i="normal"===n,o=i?t:t.ensureState(n);o.ignore=e;var a=r.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?t.useStyle(s):o.style=s}function QO(t,e){var n=e.smooth,r=e.points;if(r)if(t.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=L(r[0],r[1]),o=L(r[1],r[2]);if(!i||!o)return t.lineTo(r[1][0],r[1][1]),void t.lineTo(r[2][0],r[2][1]);var a=Math.min(i,o)*n,s=B([],r[1],r[0],a/i),l=B([],r[1],r[2],a/o),u=B([],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],r[2][0],r[2][1])}else for(var c=1;c0&&o&&w(-h/a,0,a);var v,y,m=t[0],b=t[a-1];return _(),v<0&&S(-v,.8),y<0&&S(y,.8),_(),x(v,y,1),x(y,v,-1),_(),v<0&&O(-v),y<0&&O(y),u}function _(){v=m.rect[e]-r,y=i-b.rect[e]-b.rect[n]}function x(t,e,n){if(t<0){var r=Math.min(e,-t);if(r>0){w(r*n,0,a);var i=r+t;i<0&&S(-i*n,1)}else S(-t*n,1)}}function w(n,r,i){0!==n&&(u=!0);for(var o=r;o0)for(l=0;l0;l--){f=o[l-1]*h;w(-f,l,a)}}}function O(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),r=0;r0?w(n,0,r+1):w(-n,a-r-1,a),t-=n,t<=0)return}}function rC(t,e,n,r){return nC(t,"x","width",e,n,r)}function iC(t,e,n,r){return nC(t,"y","height",e,n,r)}function oC(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new qt(0,0,0,0);function r(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var i=0;i=0&&n.attr(i.oldLayoutSelect),Object(v["indexOf"])(c,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),lu(n,l,e,s)}else if(n.attr(l),!Iu(n).valueAnimation){var h=Object(v["retrieve2"])(n.style.opacity,1);n.style.opacity=0,uu(n,{style:{opacity:h}},e,s)}if(i.oldLayout=l,n.states.select){var f=i.oldLayoutSelect={};fC(f,l,dC),fC(f,n.states.select,dC)}if(n.states.emphasis){var d=i.oldLayoutEmphasis={};fC(d,l,dC),fC(d,n.states.emphasis,dC)}Pu(n,s,u,e,e)}if(r&&!r.ignore&&!r.invisible){i=hC(r),o=i.oldLayout;var p={points:r.shape.points};o?(r.attr({shape:o}),lu(r,{shape:p},e)):(r.setShape(p),r.style.strokePercent=0,uu(r,{style:{strokePercent:1}},e)),i.oldLayout=p}},t}(),gC=pC,vC=Yi();function yC(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){var r=vC(e).labelManager;r||(r=vC(e).labelManager=new gC),r.clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,n){var r=vC(e).labelManager;n.updatedSeries.forEach((function(t){r.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),r.updateLayoutConfig(e),r.layout(e),r.processLabelsOverall()}))}function mC(t,e,n){var r=fr["d"].createCanvas(),i=e.getWidth(),o=e.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",t)),r.width=i*n,r.height=o*n,r}px(yC);var bC=function(t){function e(e,n,r){var i,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,r=r||Xn,"string"===typeof e?i=mC(e,n,r):v["isObject"](e)&&(i=e,e=i.id),o.id=e,o.dom=i;var a=i.style;return a&&(v["disableUserSelect"](i),i.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=r,o}return p(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=mC("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,o=[],a=this.maxRepaintRectCount,s=!1,l=new qt(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===o.length){var e=new qt(0,0,0,0);e.copy(t),o.push(e)}else{for(var n=!1,r=1/0,i=0,u=0;u=a)}}for(var c=this.__startIndex;c15)break}}n.prevElClipPaths&&h.restore()};if(d)if(0===d.length)s=l.__endIndex;else for(var _=f.dpr,x=0;x0&&t>r[0]){for(s=0;st)break;a=n[r[s]]}if(r.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,r=0;r0?SC:0),this._needsManuallyCompositing),u.__builtin__||v["logError"]("ZLevel "+l+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==o&&(u.__dirty=!0),u.__startIndex=o,u.incremental?u.__drawIndex=-1:u.__drawIndex=o,e(o),a=u),r.__dirty&he&&!r.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=o))}e(o),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,v["each"](this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?v["merge"](n[t],e,!0):n[t]=e;for(var r=0;r=jC:-l>=jC),f=l>0?l%jC:l%jC+jC,d=!1;d=!!h||!Object(Je["j"])(c)&&f>=PC===!!u;var p=t+n*EC(o),g=e+r*IC(o);this._start&&this._add("M",p,g);var v=Math.round(i*LC);if(h){var y=1/this._p,m=(u?1:-1)*(jC-y);this._add("A",n,r,v,1,+u,t+n*EC(o+m),e+r*IC(o+m)),y>.01&&this._add("A",n,r,v,0,+u,p,g)}else{var b=t+n*EC(a),_=e+r*IC(a);this._add("A",n,r,v,+d,+u,b,_)}},t.prototype.rect=function(t,e,n,r){this._add("M",t,e),this._add("l",n,0),this._add("l",0,r),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,r,i,o,a,s,l){for(var u=[],c=this._p,h=1;h"}function ZC(t){return""}function QC(t,e){e=e||{};var n=e.newline?"\n":"";function r(t){var e=t.children,i=t.tag,o=t.attrs;return KC(i,o)+ot(t.text)+(e?""+n+Object(v["map"])(e,(function(t){return r(t)})).join(n)+n:"")+ZC(i)}return r(t)}function JC(t,e,n){n=n||{};var r=n.newline?"\n":"",i=" {"+r,o=r+"}",a=Object(v["map"])(Object(v["keys"])(t),(function(e){return e+i+Object(v["map"])(Object(v["keys"])(t[e]),(function(n){return n+":"+t[e][n]+";"})).join(r)+o})).join(r),s=Object(v["map"])(Object(v["keys"])(e),(function(t){return"@keyframes "+t+i+Object(v["map"])(Object(v["keys"])(e[t]),(function(n){return n+i+Object(v["map"])(Object(v["keys"])(e[t][n]),(function(r){var i=e[t][n][r];return"d"===r&&(i='path("'+i+'")'),r+":"+i+";"})).join(r)+o})).join(r)+o})).join(r);return a||s?[""].join(r):""}function tk(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function ek(t,e,n,r){return XC("svg","root",{width:t,height:e,xmlns:HC,"xmlns:xlink":WC,version:"1.1",baseProfile:"full",viewBox:!!r&&"0 0 "+t+" "+e},n)}var nk={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},rk="transform-origin";function ik(t,e,n){var r=Object(v["extend"])({},t.shape);Object(v["extend"])(r,e),t.buildPath(n,r);var i=new RC;return i.reset(Object(Je["f"])(t)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function ok(t,e){var n=e.originX,r=e.originY;(n||r)&&(t[rk]=n+"px "+r+"px")}var ak={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function sk(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function lk(t,e,n){var r,i,o=t.shape.paths,a={};if(Object(v["each"])(o,(function(t){var e=tk(n.zrId);e.animation=!0,ck(t,{},e,!0);var o=e.cssAnims,s=e.cssNodes,l=Object(v["keys"])(o),u=l.length;if(u){i=l[u-1];var c=o[i];for(var h in c){var f=c[h];a[h]=a[h]||{d:""},a[h].d+=f.d||""}for(var d in s){var p=s[d].animation;p.indexOf(i)>=0&&(r=p)}}})),r){e.d=!1;var s=sk(a,n);return r.replace(i,s)}}function uk(t){return Object(v["isString"])(t)?nk[t]?"cubic-bezier("+nk[t]+")":Xe(t)?t:"":""}function ck(t,e,n,r){var i=t.animators,o=i.length,a=[];if(t instanceof hv){var s=lk(t,e,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},u=0;u0})).length){var I=sk(c,n);return I+" "+i[0]+" both"}}for(var y in l){s=g(l[y]);s&&a.push(s)}if(a.length){var m=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+m]={animation:a.join(",")},e["class"]=m}}var hk=Math.round;function fk(t){return t&&Object(v["isString"])(t.src)}function dk(t){return t&&Object(v["isFunction"])(t.toDataURL)}function pk(t,e,n,r){GC((function(i,o){var a="fill"===i||"stroke"===i;a&&Object(Je["k"])(o)?Mk(e,t,i,r):a&&Object(Je["n"])(o)?Tk(n,t,i,r):t[i]=o}),e,n,!1),Ak(n,t,r)}function gk(t){return Object(Je["j"])(t[0]-1)&&Object(Je["j"])(t[1])&&Object(Je["j"])(t[2])&&Object(Je["j"])(t[3]-1)}function vk(t){return Object(Je["j"])(t[4])&&Object(Je["j"])(t[5])}function yk(t,e,n){if(e&&(!vk(e)||!gk(e))){var r=n?10:1e4;t.transform=gk(e)?"translate("+hk(e[4]*r)/r+" "+hk(e[5]*r)/r+")":Object(Je["e"])(e)}}function mk(t,e,n){for(var r=t.points,i=[],o=0;ou?(a=null==n[f+1]?null:n[f+1].elm,Uk(t,a,n,l,f)):$k(t,e,s,u))}function Kk(t,e){var n=e.elm=t.elm,r=t.children,i=e.children;t!==e&&(Yk(t,e),Vk(e.text)?qk(r)&&qk(i)?r!==i&&Xk(n,r,i):qk(i)?(qk(t.text)&&Nk(n,""),Uk(n,null,i,0,i.length-1)):qk(r)?$k(n,r,0,r.length-1):qk(t.text)&&Nk(n,""):t.text!==e.text&&(qk(r)&&$k(n,r,0,r.length-1),Nk(n,e.text)))}function Zk(t,e){if(Hk(t,e))Kk(t,e);else{var n=t.elm,r=Dk(n);Wk(e),null!==r&&(Pk(r,e.elm,Rk(n)),$k(r,[t],0,0))}return e}var Qk=0,Jk=function(){function t(t,e,n){if(this.type="svg",this.refreshHover=tA("refreshHover"),this.configLayer=tA("configLayer"),this.storage=e,this._opts=n=Object(v["extend"])({},n),this.root=t,this._id="zr"+Qk++,this._oldVNode=ek(n.width,n.height),t&&!n.ssr){var r=this._viewport=document.createElement("div");r.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=YC("svg");Yk(null,this._oldVNode),r.appendChild(i),t.appendChild(r)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",Zk(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return kk(t,tk(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._backgroundColor,r=this._width,i=this._height,o=tk(this._id);o.animation=t.animation,o.willUpdate=t.willUpdate,o.compress=t.compress;var a=[];if(n&&"none"!==n){var s=Object(Je["p"])(n),l=s.color,u=s.opacity;this._bgVNode=XC("rect","bg",{width:r,height:i,x:"0",y:"0",id:"0",fill:l,"fill-opacity":u}),a.push(this._bgVNode)}else this._bgVNode=null;var c=t.compress?null:this._mainVNode=XC("g","main",{},[]);this._paintList(e,o,c?c.children:a),c&&a.push(c);var h=Object(v["map"])(Object(v["keys"])(o.defs),(function(t){return o.defs[t]}));if(h.length&&a.push(XC("defs","defs",{},h)),t.animation){var f=JC(o.cssNodes,o.cssAnims,{newline:!0});if(f){var d=XC("style","stl",{},[],f);a.push(d)}}return ek(r,i,a,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},QC(this.renderToVNode({animation:Object(v["retrieve2"])(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Object(v["retrieve2"])(t.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t;var e=this._bgVNode;if(e&&e.elm){var n=Object(Je["p"])(t),r=n.color,i=n.opacity;e.elm.setAttribute("fill",r),i<1&&e.elm.setAttribute("fill-opacity",i)}},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,n){for(var r,i,o=t.length,a=[],s=0,l=0,u=0;u=0;p--)if(h&&i&&h[p]===i[p])break;for(var g=d-1;g>p;g--)s--,r=a[s-1];for(var v=p+1;v-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Hp),iA=rA;function oA(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=xd(t,e,n[0]);return null!=i?i+"":null}if(r){for(var o=[],a=0;a=0&&r.push(e[o])}return r.join(" ")}var sA=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.updateData(e,n,r,i),o}return p(e,t),e.prototype._createSymbol=function(t,e,n,r,i){this.removeAll();var o=km(t,-1,-1,2,2,null,i);o.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=lA,this._symbolType=t,this.add(o)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Ml(this.childAt(0))},e.prototype.downplay=function(){Tl(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,r,i){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,n),l=o!==this._symbolType,u=i&&i.disableAnimation;if(l){var c=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,s,c)}else{var h=this.childAt(0);h.silent=!1;var f={scaleX:s[0]/2,scaleY:s[1]/2};u?h.attr(f):lu(h,f,a,n),pu(h)}if(this._updateCommon(t,n,s,r,i),l){h=this.childAt(0);if(!u){f={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,uu(h,f,a,n)}}u&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,r,i){var o,a,s,l,u,c,h,f,d,p=this.childAt(0),g=t.hostModel;if(r&&(o=r.emphasisItemStyle,a=r.blurItemStyle,s=r.selectItemStyle,l=r.focus,u=r.blurScope,h=r.labelStatesModels,f=r.hoverScale,d=r.cursorStyle,c=r.emphasisDisabled),!r||t.hasItemOption){var y=r&&r.itemModel?r.itemModel:t.getItemModel(e),m=y.getModel("emphasis");o=m.getModel("itemStyle").getItemStyle(),s=y.getModel(["select","itemStyle"]).getItemStyle(),a=y.getModel(["blur","itemStyle"]).getItemStyle(),l=m.get("focus"),u=m.get("blurScope"),c=m.get("disabled"),h=_u(y),f=m.getShallow("scale"),d=y.getShallow("cursor")}var b=t.getItemVisual(e,"symbolRotate");p.attr("rotation",(b||0)*Math.PI/180||0);var _=Mm(t.getItemVisual(e,"symbolOffset"),n);_&&(p.x=_[0],p.y=_[1]),d&&p.attr("cursor",d);var x=t.getItemVisual(e,"style"),w=x.fill;if(p instanceof gs){var S=p.style;p.useStyle(Object(v["extend"])({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},x))}else p.__isEmptyBrush?p.useStyle(Object(v["extend"])({},x)):p.useStyle(x),p.style.decal=null,p.setColor(w,i&&i.symbolInnerColor),p.style.strokeNoScale=!0;var O=t.getItemVisual(e,"liftZ"),C=this._z2;null!=O?null==C&&(this._z2=p.z2,p.z2+=O):null!=C&&(p.z2=C,this._z2=null);var k=i&&i.useNameLabel;function A(e){return k?t.getName(e):oA(t,e)}bu(p,h,{labelFetcher:g,labelDataIndex:e,defaultText:A,inheritColor:w,defaultOpacity:x.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var M=p.ensureState("emphasis");M.style=o,p.ensureState("select").style=s,p.ensureState("blur").style=a;var T=null==f||!0===f?Math.max(1.1,3/this._sizeY):isFinite(f)&&f>0?+f:1;M.scaleX=this._sizeX*T,M.scaleY=this._sizeY*T,this.setSymbolScale(1),$l(this,l,u,c)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var r=this.childAt(0),i=Gs(this).dataIndex,o=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var a=r.getTextContent();a&&hu(a,{style:{opacity:0}},e,{dataIndex:i,removeOpt:o,cb:function(){r.removeTextContent()}})}else r.removeTextContent();hu(r,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:i,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return Am(t.getItemVisual(e,"symbolSize"))},e}(Nr);function lA(t,e){this.parent.drift(t,e)}var uA=sA;function cA(t,e,n,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function hA(t){return null==t||Object(v["isObject"])(t)||(t={isIgnore:t}),t||{}}function fA(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:_u(e),cursorStyle:e.get("cursor")}}var dA=function(){function t(t){this.group=new Nr,this._SymbolCtor=t||uA}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=hA(e);var n=this.group,r=t.hostModel,i=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=fA(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};i||n.removeAll(),t.diff(i).add((function(r){var i=u(r);if(cA(t,i,r,e)){var a=new o(t,r,s,l);a.setPosition(i),t.setItemGraphicEl(r,a),n.add(a)}})).update((function(c,h){var f=i.getItemGraphicEl(h),d=u(c);if(cA(t,d,c,e)){var p=t.getItemVisual(c,"symbol")||"circle",g=f&&f.getSymbolType&&f.getSymbolType();if(!f||g&&g!==p)n.remove(f),f=new o(t,c,s,l),f.setPosition(d);else{f.updateData(t,c,s,l);var v={x:d[0],y:d[1]};a?f.attr(v):lu(f,v,r)}n.add(f),t.setItemGraphicEl(c,f)}else n.remove(f)})).remove((function(t){var e=i.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),r)})).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var r=t._getSymbolPoint(n);e.setPosition(r),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=fA(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function r(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=hA(n);for(var i=t.start;i0?n=r[0]:r[1]<0&&(n=r[1]),n}function yA(t,e,n,r){var i=NaN;t.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,r),a[1-o]=i,e.dataToPoint(a)}function mA(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}function bA(t,e,n,r,i,o,a,s){for(var l=mA(t,e),u=[],c=[],h=[],f=[],d=[],p=[],g=[],v=gA(i,e,a),y=t.getLayout("points")||[],m=e.getLayout("points")||[],b=0;b=i||g<0)break;if(wA(y,m)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](y,m),h=y,f=m;else{var b=y-u,_=m-c;if(b*b+_*_<.5){g+=o;continue}if(a>0){var x=g+o,w=e[2*x],S=e[2*x+1];while(w===y&&S===m&&v=r||wA(w,S))d=y,p=m;else{k=w-u,A=S-c;var I=y-u,E=w-y,P=m-c,j=S-m,L=void 0,D=void 0;if("x"===s){L=Math.abs(I),D=Math.abs(E);var R=k>0?1:-1;d=y-R*L*a,p=m,M=y+R*D*a,T=m}else if("y"===s){L=Math.abs(P),D=Math.abs(j);var N=A>0?1:-1;d=y,p=m-N*L*a,M=y,T=m+N*D*a}else L=Math.sqrt(I*I+P*P),D=Math.sqrt(E*E+j*j),C=D/(D+L),d=y-k*a*(1-C),p=m-A*a*(1-C),M=y+k*a*C,T=m+A*a*C,M=_A(M,xA(w,y)),T=_A(T,xA(S,m)),M=xA(M,_A(w,y)),T=xA(T,_A(S,m)),k=M-y,A=T-m,d=y-k*L/D,p=m-A*L/D,d=_A(d,xA(u,y)),p=_A(p,xA(c,m)),d=xA(d,_A(u,y)),p=xA(p,_A(c,m)),k=y-d,A=m-p,M=y+k*D/L,T=m+A*D/L}t.bezierCurveTo(h,f,d,p,y,m),h=M,f=T}else t.lineTo(y,m)}u=y,c=m,g+=o}return v}var OA=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),CA=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return p(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new OA},e.prototype.buildPath=function(t,e){var n=e.points,r=0,i=n.length/2;if(e.connectNulls){for(;i>0;i--)if(!wA(n[2*i-2],n[2*i-1]))break;for(;r=0){var m=s?(f-r)*y+r:(h-n)*y+n;return s?[t,m]:[m,t]}n=h,r=f;break;case a.C:h=o[u++],f=o[u++],d=o[u++],p=o[u++],g=o[u++],v=o[u++];var b=s?Re(n,h,d,g,t,l):Re(r,f,p,v,t,l);if(b>0)for(var _=0;_=0){m=s?Le(r,f,p,v,x):Le(n,h,d,g,x);return s?[t,m]:[m,t]}}n=g,r=v;break}}},e}(ss),kA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e}(OA),AA=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return p(e,t),e.prototype.getDefaultShape=function(){return new kA},e.prototype.buildPath=function(t,e){var n=e.points,r=e.stackedOnPoints,i=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0;o--)if(!wA(n[2*o-2],n[2*o-1]))break;for(;ie){r?i.push(a(r,l,e)):n&&i.push(a(n,l,0),a(n,l,e));break}n&&(i.push(a(n,l,0)),n=null),i.push(l),r=l}}return i}function FA(t,e,n){var r=t.getVisual("visualMeta");if(r&&r.length&&t.count()&&"cartesian2d"===e.type){for(var i,o,a=r.length-1;a>=0;a--){var s=t.getDimensionInfo(r[a].dimension);if(i=s&&s.coordDim,"x"===i||"y"===i){o=r[a];break}}if(o){var l=e.getAxis(i),u=v["map"](o.stops,(function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}})),c=u.length,h=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var f=BA(u,"x"===i?n.getWidth():n.getHeight()),d=f.length;if(!d&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var p=10,g=f[0].coord-p,y=f[d-1].coord+p,m=y-g;if(m<.001)return"transparent";v["each"](f,(function(t){t.offset=(t.coord-g)/m})),f.push({offset:d?f[d-1].offset:.5,color:h[1]||"transparent"}),f.unshift({offset:d?f[0].offset:.5,color:h[0]||"transparent"});var b=new gv(0,0,0,0,f,!0);return b[i]=g,b[i+"2"]=y,b}}}function zA(t,e,n){var r=t.get("showAllSymbol"),i="auto"===r;if(!r||i){var o=n.getAxesByScale("ordinal")[0];if(o&&(!i||!VA(o,e))){var a=e.mapDimension(o.dim),s={};return v["each"](o.getViewLabels(),(function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function VA(t,e){var n=t.getExtent(),r=Math.abs(n[1]-n[0])/t.scale.count();isNaN(r)&&(r=0);for(var i=e.count(),o=Math.max(1,Math.round(i/5)),a=0;ar)return!1;return!0}function qA(t,e){return isNaN(t)||isNaN(e)}function GA(t){for(var e=t.length/2;e>0;e--)if(!qA(t[2*e-2],t[2*e-1]))break;return e-1}function HA(t,e){return[t[2*e],t[2*e+1]]}function WA(t,e,n){for(var r,i,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u=e||r>=e&&i<=e){l=u;break}s=u,r=i}else r=i;return{range:[s,l],t:(e-r)/(i-r)}}function UA(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e0&&"bolder"===t.get(["emphasis","lineStyle","width"])){var D=d.getState("emphasis").style;D.lineWidth=+d.style.lineWidth+1}Gs(d).seriesIndex=t.seriesIndex,$l(d,P,j,L);var R=DA(t.get("smooth")),N=t.get("smoothMonotone");if(d.setShape({smooth:R,smoothMonotone:N,connectNulls:S}),p){var B=a.getCalculationInfo("stackedOnSeries"),F=0;p.useStyle(v["defaults"](l.getAreaStyle(),{fill:M,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),B&&(F=DA(B.get("smooth"))),p.setShape({smooth:R,stackedOnSmooth:F,smoothMonotone:N,connectNulls:S}),Zl(p,t,"areaStyle"),Gs(p).seriesIndex=t.seriesIndex,$l(p,P,j,L)}var z=function(t){r._changePolyState(t)};a.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=z)})),this._polyline.onHoverStateChange=z,this._data=a,this._coordSys=i,this._stackedOnPoints=x,this._points=u,this._step=A,this._valueOrigin=b,t.get("triggerLineEvent")&&(this.packEventData(t,d),p&&this.packEventData(t,p))},e.prototype.packEventData=function(t,e){Gs(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,r){var i=t.getData(),o=$i(i,r);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=i.getLayout("points"),s=i.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 c=t.get("zlevel")||0,h=t.get("z")||0;s=new uA(i,o),s.x=l,s.y=u,s.setZ(c,h);var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=c,f.z=h,f.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else dy.prototype.highlight.call(this,t,e,n,r)},e.prototype.downplay=function(t,e,n,r){var i=t.getData(),o=$i(i,r);if(this._changePolyState("normal"),null!=o&&o>=0){var a=i.getItemGraphicEl(o);a&&(a.__temp?(i.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else dy.prototype.downplay.call(this,t,e,n,r)},e.prototype._changePolyState=function(t){var e=this._polygon;bl(this._polyline,t),e&&bl(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new CA({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new AA({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var r,i,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(r=o.isHorizontal(),i=!1):"polar"===e.type&&(r="angle"===o.dim,i=!0);var s=t.hostModel,l=s.get("animationDuration");v["isFunction"](l)&&(l=l(null));var u=s.get("animationDelay")||0,c=v["isFunction"](u)?u(null):u;t.eachItemGraphicEl((function(t,o){var s=t;if(s){var h=[t.x,t.y],f=void 0,d=void 0,p=void 0;if(n)if(i){var g=n,y=e.pointToCoord(h);r?(f=g.startAngle,d=g.endAngle,p=-y[1]/180*Math.PI):(f=g.r0,d=g.r,p=y[0])}else{var m=n;r?(f=m.x,d=m.x+m.width,p=t.x):(f=m.y+m.height,d=m.y,p=t.y)}var b=d===f?0:(p-f)/(d-f);a&&(b=1-b);var _=v["isFunction"](u)?u(o):l*b+c,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}}))},e.prototype._initOrUpdateEndLabel=function(t,e,n){var r=t.getModel("endLabel");if(UA(t)){var i=t.getData(),o=this._polyline,a=i.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new qs({z2:200}),s.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=GA(a);l>=0&&(bu(o,_u(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?aA(i,n):oA(i,t)},enableTextSetter:!0},YA(r,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,r,i,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==r.originalX&&(r.originalX=s.x,r.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),f=o.get("precision"),d=o.get("distance")||0,p=a.getBaseAxis(),g=p.isHorizontal(),v=p.inverse,y=e.shape,m=v?g?y.x:y.y+y.height:g?y.x+y.width:y.y,b=(g?d:0)*(v?-1:1),_=(g?0:-d)*(v?-1:1),x=g?"x":"y",w=WA(u,m,x),S=w.range,O=S[1]-S[0],C=void 0;if(O>=1){if(O>1&&!h){var k=HA(u,S[0]);s.attr({x:k[0]+b,y:k[1]+_}),i&&(C=c.getRawValue(S[0]))}else{k=l.getPointOn(m,x);k&&s.attr({x:k[0]+b,y:k[1]+_});var A=c.getRawValue(S[0]),M=c.getRawValue(S[1]);i&&(C=oo(n,f,A,M,w.t))}r.lastFrameIndex=S[0]}else{var T=1===t||r.lastFrameIndex>0?S[0]:0;k=HA(u,T);i&&(C=c.getRawValue(T)),s.attr({x:k[0]+b,y:k[1]+_})}i&&Iu(s).setLabelText(C)}},e.prototype._doUpdateAnimation=function(t,e,n,r,i,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,c=bA(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,o),h=c.current,f=c.stackedOnCurrent,d=c.next,p=c.stackedOnNext;if(i&&(h=NA(c.current,n,i,a),f=NA(c.stackedOnCurrent,n,i,a),d=NA(c.next,n,i,a),p=NA(c.stackedOnNext,n,i,a)),LA(h,d)>3e3||l&&LA(f,p)>3e3)return s.stopAnimation(),s.setShape({points:d}),void(l&&(l.stopAnimation(),l.setShape({points:d,stackedOnPoints:p})));s.shape.__points=c.current,s.shape.points=h;var g={shape:{points:d}};c.current!==h&&(g.shape.__points=c.next),s.stopAnimation(),lu(s,g,u),l&&(l.setShape({points:h,stackedOnPoints:f}),l.stopAnimation(),lu(l,{shape:{stackedOnPoints:p}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var v=[],y=c.status,m=0;me&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n10&&"cartesian2d"===o.type&&i){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(u[1]-u[0])*(c||1),f=Math.round(a/h);if(isFinite(f)&&f>1){"lttb"===i&&t.setData(r.lttbDownSample(r.mapDimension(l.dim),1/f));var d=void 0;Object(v["isString"])(i)?d=QA[i]:Object(v["isFunction"])(i)&&(d=i),d&&t.setData(r.downSample(r.mapDimension(l.dim),1/f,d,JA))}}}}}function eM(t){t.registerChartView(KA),t.registerSeriesModel(iA),t.registerLayout(ZA("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,tM("line"))}var nM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.getInitialData=function(t,e){return dw(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t){var e=this.coordinateSystem;if(e&&e.clampData){var n=e.dataToPoint(e.clampData(t)),r=this.getData(),i=r.getLayout("offset"),o=r.getLayout("size"),a=e.getBaseAxis().isHorizontal()?0:1;return n[a]+=i+o/2,n}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Hp);Hp.registerClass(nM);var rM=nM,iM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.getInitialData=function(){return dw(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Ku(rM.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(rM),oM=iM,aM=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}return t}(),sM=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return p(e,t),e.prototype.getDefaultShape=function(){return new aM},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-i),s=i+a,l=e.startAngle,u=e.endAngle,c=e.clockwise,h=2*Math.PI,f=c?u-lMath.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),t.setTextConfig({rotation:c})}}function hM(t,e,n){return e*Math.sin(t)*(n?-1:1)}function fM(t,e,n){return e*Math.cos(t)*(n?1:-1)}var dM=Math.max,pM=Math.min;function gM(t,e){var n=t.getArea&&t.getArea();if(EA(t,"cartesian2d")){var r=t.getBaseAxis();if("category"!==r.type||!r.onBand){var i=e.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=2*i):(n.y-=i,n.height+=2*i)}}return n}var vM=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return p(e,t),e.prototype.render=function(t,e,n,r){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var i=t.get("coordinateSystem");("cartesian2d"===i||"polar"===i)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,r))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},e.prototype.eachRendered=function(t){iy(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,n,r){var i,o=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?i=u.isHorizontal():"polar"===l.type&&(i="angle"===u.dim);var c=t.isAnimationEnabled()?t:null,h=bM(t,l);h&&this._enableRealtimeSort(h,a,n);var f=t.get("clip",!0)||h,d=gM(l,a);o.removeClipPath();var p=t.get("roundCap",!0),g=t.get("showBackground",!0),v=t.getModel("backgroundStyle"),y=v.get("borderRadius")||0,m=[],b=this._backgroundEls,_=r&&r.isInitSort,x=r&&"changeAxisOrder"===r.type;function w(t){var e=CM[l.type](a,t),n=RM(l,i,e);return n.useStyle(v.getItemStyle()),"cartesian2d"===l.type&&n.setShape("r",y),m[t]=n,n}a.diff(s).add((function(e){var n=a.getItemModel(e),r=CM[l.type](a,e,n);if(g&&w(e),a.hasValue(e)&&OM[l.type](r)){var s=!1;f&&(s=yM[l.type](d,r));var v=mM[l.type](t,a,e,r,i,c,u.model,!1,p);h&&(v.forceLabelAnimation=!0),MM(v,a,e,n,r,t,i,"polar"===l.type),_?v.attr({shape:r}):h?_M(h,c,v,r,e,i,!1,!1):uu(v,{shape:r},t,e),a.setItemGraphicEl(e,v),o.add(v),v.ignore=s}})).update((function(e,n){var r=a.getItemModel(e),S=CM[l.type](a,e,r);if(g){var O=void 0;0===b.length?O=w(n):(O=b[n],O.useStyle(v.getItemStyle()),"cartesian2d"===l.type&&O.setShape("r",y),m[e]=O);var C=CM[l.type](a,e),k=DM(i,C,l);lu(O,{shape:k},c,e)}var A=s.getItemGraphicEl(n);if(a.hasValue(e)&&OM[l.type](S)){var M=!1;if(f&&(M=yM[l.type](d,S),M&&o.remove(A)),A?pu(A):A=mM[l.type](t,a,e,S,i,c,u.model,!!A,p),h&&(A.forceLabelAnimation=!0),x){var T=A.getTextContent();if(T){var I=Iu(T);null!=I.prevValue&&(I.prevValue=I.value)}}else MM(A,a,e,r,S,t,i,"polar"===l.type);_?A.attr({shape:S}):h?_M(h,c,A,S,e,i,!0,x):lu(A,{shape:S},t,e,null),a.setItemGraphicEl(e,A),A.ignore=M,o.add(A)}else o.remove(A)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&du(n,t,e)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new Nr);S.removeAll();for(var O=0;Oo)return!0;o=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,r=n.getExtent(),i=Math.max(0,r[0]),o=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=o;++i)if(t.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,r){if(this._isOrderChangedWithinSameData(t,e,n)){var i=this._dataSort(t,n,e);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:i}))}},e.prototype._dispatchInitSort=function(t,e,n){var r=e.baseAxis,i=this._dataSort(t,r,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:i})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){du(e,t,Gs(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(dy),yM={cartesian2d:function(t,e){var n=e.width<0?-1:1,r=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,o=t.y+t.height,a=dM(e.x,t.x),s=pM(e.x+e.width,i),l=dM(e.y,t.y),u=pM(e.y+e.height,o),c=si?s:a,e.y=h&&l>o?u:l,e.width=c?0:s-a,e.height=h?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}var i=pM(e.r,t.r),o=dM(e.r0,t.r0);e.r=i,e.r0=o;var a=i-o<0;if(n<0){r=e.r;e.r=e.r0,e.r0=r}return a}},mM={cartesian2d:function(t,e,n,r,i,o,a,s,l){var u=new Os({shape:Object(v["extend"])({},r),z2:1});if(u.__dataIndex=n,u.name="item",o){var c=u.shape,h=i?"height":"width";c[h]=0}return u},polar:function(t,e,n,r,i,o,a,s,l){var u=!i&&l?lM:zg,c=new u({shape:r,z2:1});c.name="item";var h=AM(i);if(c.calculateTextPosition=uM(h,{isRoundCap:u===lM}),o){var f=c.shape,d=i?"r":"endAngle",p={};f[d]=i?0:r.startAngle,p[d]=r[d],(s?lu:uu)(c,{shape:p},o)}return c}};function bM(t,e){var n=t.get("realtimeSort",!0),r=e.getBaseAxis();if(n&&"category"===r.type&&"cartesian2d"===e.type)return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function _M(t,e,n,r,i,o,a,s){var l,u;o?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(a?lu:uu)(n,{shape:l},e,i,null);var c=e?t.baseAxis.model:null;(a?lu:uu)(n,{shape:u},c,i)}function xM(t,e){for(var n=0;n0?1:-1,a=r.height>0?1:-1;return{x:r.x+o*i/2,y:r.y+a*i/2,width:r.width-o*i,height:r.height-a*i}},polar:function(t,e,n){var r=t.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function kM(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}function AM(t){return function(t){var e=t?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(t)}function MM(t,e,n,r,i,o,a,s){var l=e.getItemVisual(n,"style");s||t.setShape("r",r.get(["itemStyle","borderRadius"])||0),t.useStyle(l);var u=r.getShallow("cursor");u&&t.attr("cursor",u);var c=s?a?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":a?i.height>=0?"bottom":"top":i.width>=0?"right":"left",h=_u(r);bu(t,h,{labelFetcher:o,labelDataIndex:n,defaultText:oA(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var f=t.getTextContent();if(s&&f){var d=r.get(["label","position"]);t.textConfig.inside="middle"===d||null,cM(t,"outside"===d?c:d,AM(a),r.get(["label","rotate"]))}Eu(f,h,o.getRawValue(n),(function(t){return aA(e,t)}));var p=r.getModel(["emphasis"]);$l(t,p.get("focus"),p.get("blurScope"),p.get("disabled")),Zl(t,r),kM(i)&&(t.style.fill="none",t.style.stroke="none",Object(v["each"])(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}function TM(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var r=t.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,i,o)}var IM=function(){function t(){}return t}(),EM=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return p(e,t),e.prototype.getDefaultShape=function(){return new IM},e.prototype.buildPath=function(t,e){for(var n=e.points,r=this.baseDimIdx,i=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l=0?n:null}),30,!1);function LM(t,e,n){for(var r=t.baseDimIdx,i=1-r,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,h=o.length/3;c=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}function DM(t,e,n){if(EA(n,"cartesian2d")){var r=e,i=n.getArea();return{x:t?r.x:i.x,y:t?i.y:r.y,width:t?r.width:i.width,height:t?i.height:r.height}}i=n.getArea();var o=e;return{cx:i.cx,cy:i.cy,r0:t?i.r0:o.r0,r:t?i.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}function RM(t,e,n){var r="polar"===t.type?zg:Os;return new r({shape:DM(e,n,t),silent:!0,z2:0})}var NM=vM;function BM(t){t.registerChartView(NM),t.registerSeriesModel(oM),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,v["curry"](Uw,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,$w("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,tM("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)}))}))}var FM=2*Math.PI,zM=Math.PI/180;function VM(t,e){return ah(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function qM(t,e){var n=VM(t,e),r=t.get("center"),i=t.get("radius");v["isArray"](i)||(i=[0,i]),v["isArray"](r)||(r=[r,r]);var o,a,s=Jr(n.width,e.getWidth()),l=Jr(n.height,e.getHeight()),u=Math.min(s,l),c=Jr(i[0],u/2),h=Jr(i[1],u/2),f=t.coordinateSystem;if(f){var d=f.dataToPoint(r);o=d[0]||0,a=d[1]||0}else o=Jr(r[0],s)+n.x,a=Jr(r[1],l)+n.y;return{cx:o,cy:a,r0:c,r:h}}function GM(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),r=e.mapDimension("value"),i=VM(t,n),o=qM(t,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-t.get("startAngle")*zM,h=t.get("minAngle")*zM,f=0;e.each(r,(function(t){!isNaN(t)&&f++}));var d=e.getSum(r),p=Math.PI/(d||f)*2,g=t.get("clockwise"),v=t.get("roseType"),y=t.get("stillShowZeroSum"),m=e.getDataExtent(r);m[0]=0;var b=FM,_=0,x=c,w=g?1:-1;if(e.setLayout({viewRect:i,r:l}),e.each(r,(function(t,n){var r;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:a,cy:s,r0:u,r:v?NaN:l});else{r="area"!==v?0===d&&y?p:t*p:FM/f,rn?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var h=l.label.x-e-l.len2*i,f=r+l.len,p=Math.abs(h)t.unconstrainedWidth?null:d:null;r.setStyle("width",p)}var g=r.getBoundingRect();o.width=g.width;var v=(r.style.margin||0)+2.1;o.height=g.height+v,o.y-=(o.height-h)/2}}}function XM(t){return"center"===t.position}function KM(t){var e,n,r=t.getData(),i=[],o=!1,a=(t.get("minShowLabelAngle")||0)*WM,s=r.getLayout("viewRect"),l=r.getLayout("r"),u=s.width,c=s.x,h=s.y,f=s.height;function d(t){t.ignore=!0}function p(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}r.each((function(t){var s=r.getItemGraphicEl(t),h=s.shape,f=s.getTextContent(),g=s.getTextGuideLine(),y=r.getItemModel(t),m=y.getModel("label"),b=m.get("position")||y.get(["emphasis","label","position"]),_=m.get("distanceToLabelLine"),x=m.get("alignTo"),w=Jr(m.get("edgeDistance"),u),S=m.get("bleedMargin"),O=y.getModel("labelLine"),C=O.get("length");C=Jr(C,u);var k=O.get("length2");if(k=Jr(k,u),Math.abs(h.endAngle-h.startAngle)0?"right":"left":P>0?"left":"right"}var V=Math.PI,q=0,G=m.get("rotate");if(Object(v["isNumber"])(G))q=G*(V/180);else if("center"===b)q=0;else if("radial"===G||!0===G){var H=P<0?-E+V:-E;q=H}else if("tangential"===G&&"outside"!==b&&"outer"!==b){var W=Math.atan2(P,j);W<0&&(W=2*V+W);var U=j>0;U&&(W=V+W),q=W-V}if(o=!!q,f.x=A,f.y=M,f.rotation=q,f.setStyle({verticalAlign:"middle"}),L){f.setStyle({align:I});var $=f.states.select;$&&($.x+=f.x,$.y+=f.y)}else{var Y=f.getBoundingRect().clone();Y.applyTransform(f.getComputedTransform());var X=(f.style.margin||0)+2.1;Y.y-=X/2,Y.height+=X,i.push({label:f,labelLine:g,position:b,len:C,len2:k,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new Pt(P,j),linePoints:T,textAlign:I,labelDistance:_,labelAlignTo:x,edgeDistance:w,bleedMargin:S,rect:Y,unconstrainedWidth:Y.width,labelStyleWidth:f.style.width})}s.setTextConfig({inside:L})}})),!o&&t.get("avoidLabelOverlap")&&$M(i,e,n,l,u,f,c,h);for(var g=0;g0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u=r.r0}},e.type="pie",e}(dy),tT=JM;function eT(t,e,n){e=Object(v["isArray"])(e)&&{coordDimensions:e}||Object(v["extend"])({encodeDefine:t.getEncode()},e);var r=t.getSource(),i=Kx(r,e).dimensions,o=new Yx(i,t);return o.initData(r,n),o}var nT=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},t.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},t.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},t}(),rT=nT,iT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new rT(v["bind"](this.getData,this),v["bind"](this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){var t=eT(this,{coordDimensions:["value"],encodeDefaulter:v["curry"](jh,this)}),e=[];return t.each(t.mapDimension("value"),(function(t){e.push(t)})),this.seats=ai(e,t.hostModel.get("percentPrecision")),t},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.call(this,e);return n.percent=this.seats[e],n.$vars.push("percent"),n},e.prototype._defaultLabelLine=function(t){Ai(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Hp),oT=iT;function aT(t){return{seriesType:t,reset:function(t,e){var n=t.getData();n.filterSelf((function(t){var e=n.mapDimension("value"),r=n.get(e,t);return!(Object(v["isNumber"])(r)&&!isNaN(r)&&r<0)}))}}}function sT(t){t.registerChartView(tT),t.registerSeriesModel(oT),um("pie",t.registerAction),t.registerLayout(Object(v["curry"])(GM,"pie")),t.registerProcessor(HM("pie")),t.registerProcessor(aT("pie"))}var lT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return p(e,t),e.prototype.getInitialData=function(t,e){return dw(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(Hp),uT=lT,cT=4,hT=function(){function t(){}return t}(),fT=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return p(e,t),e.prototype.getDefaultShape=function(){return new hT},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var n,r=e.points,i=e.size,o=this.symbolProxy,a=o.shape,s=t.getContext?t.getContext():t,l=s&&i[0]=0;s--){var l=2*s,u=r[l]-o/2,c=r[l+1]-a/2;if(t>=u&&e>=c&&t<=u+o&&e<=c+a)return s}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect();if(t=n[0],e=n[1],r.contain(t,e)){var i=this.hoverDataIdx=this.findDataIndex(t,e);return i>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,r=e.size,i=r[0],o=r[1],a=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c=0&&(l.dataIndex=n+(t.startIndex||0))}))},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),pT=dT,gT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this._updateSymbolDraw(r,t);i.updateData(r,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var r=t.getData(),i=this._updateSymbolDraw(r,t);i.incrementalPrepareUpdate(r),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var r=t.getData();if(this.group.dirty(),!this._finished||r.count()>1e4)return{update:!0};var i=ZA("").reset(t,e,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(r)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,r=e.pipelineContext,i=r.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new pT:new pA,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(dy),vT=gT,yT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(vh),mT=yT,bT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Qi).models[0]},e.type="cartesian2dAxis",e}(vh);v["mixin"](bT,BS);var _T={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)"]}}},xT=v["merge"]({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},_T),wT=v["merge"]({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}}},_T),ST=v["merge"]({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},wT),OT=v["defaults"]({logBase:10},wT),CT={category:xT,value:wT,time:ST,log:OT},kT={value:1,category:1,time:1,log:1};function AT(t,e,n,r){Object(v["each"])(kT,(function(i,o){var a=Object(v["merge"])(Object(v["merge"])({},CT[o],!0),r,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+o,n}return p(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=uh(this),r=n?hh(t):{},i=e.getTheme();Object(v["merge"])(t,i.get(o+"Axis")),Object(v["merge"])(t,this.getDefaultOption()),t.type=MT(t),n&&ch(t,r,n)},n.prototype.optionUpdated=function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=bw.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+o,n.defaultOption=a,n}(n);t.registerComponentModel(s)})),t.registerSubTypeDefaulter(e+"Axis",MT)}function MT(t){return t.type||(t.data?"category":"value")}var TT=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 v["map"](this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),v["filter"](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}(),IT=TT,ET=["x","y"];function PT(t){return"interval"===t.type||"time"===t.type}var jT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=ET,e}return p(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(PT(t)&&PT(e)){var n=t.getExtent(),r=e.getExtent(),i=this.dataToPoint([n[0],r[0]]),o=this.dataToPoint([n[1],r[1]]),a=n[1]-n[0],s=r[1]-r[0];if(a&&s){var l=(o[0]-i[0])/a,u=(o[1]-i[1])/s,c=i[0]-n[0]*l,h=i[1]-r[0]*u,f=this._transform=[l,0,0,u,c,h];this._invTransform=Tt([],f)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),r=this.dataToPoint(e),i=this.getArea(),o=new qt(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(o)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var r=t[0],i=t[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return F(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(r,e)),n[1]=a.toGlobalCoord(a.dataToCoord(i,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),o=r.getExtent(),a=n.parse(t[0]),s=r.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(i[0],i[1]),a),Math.max(i[0],i[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return F(n,t,this._invTransform);var r=this.getAxis("x"),i=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(t[0]),e),n[1]=i.coordToData(i.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),r=Math.min(e[0],e[1]),i=Math.max(t[0],t[1])-n,o=Math.max(e[0],e[1])-r;return new qt(n,r,i,o)},e}(IT),LT=jT,DT=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return a.index=0,a.type=i||"value",a.position=o||"bottom",a}return p(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(kO),RT=DT;function NT(t,e,n){n=n||{};var r=t.coordinateSystem,i=e.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,l=a?"onZero":s,u=i.dim,c=r.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],f={left:0,right:1,top:0,bottom:1,onZero:2},d=e.get("offset")||0,p="x"===u?[h[2]-d,h[3]+d]:[h[0]-d,h[1]+d];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));p[f.onZero]=Math.max(Math.min(g,p[1]),p[0])}o.position=["y"===u?p[f[l]]:h[0],"x"===u?p[f[l]]:h[3]],o.rotation=Math.PI/2*("x"===u?0:1);var y={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=y[s],o.labelOffset=a?p[f[s]]-p[f.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),v["retrieve"](n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var m=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-m:m,o.z2=1,o}function BT(t){return"cartesian2d"===t.get("coordinateSystem")}function FT(t){var e={xAxisModel:null,yAxisModel:null};return v["each"](e,(function(n,r){var i=r.replace(/Model$/,""),o=t.getReferringComponents(i,Qi).models[0];e[r]=o})),e}var zT=Math.log;function VT(t,e,n){var r=jw.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=CS(t,e),u=l.extent,c=l.fixMin,h=l.fixMax;if("log"===t.type){var f=zT(t.base);u=[zT(u[0])/f,zT(u[1])/f]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:h});var d=r.getExtent.call(t);c&&(u[0]=d[0]),h&&(u[1]=d[1]);var p=r.getInterval.call(t),g=u[0],v=u[1];if(c&&h)p=(v-g)/a;else if(c){v=u[0]+p*a;while(vu[0]&&isFinite(g)&&isFinite(u[0]))p=ww(p),g=u[1]-p*a}else{var y=t.getTicks().length-1;y>a&&(p=ww(p));var m=p*a;v=Math.ceil(u[1]/p)*p,g=ti(v-m),g<0&&u[0]>=0?(g=0,v=ti(m)):v>0&&u[1]<=0&&(v=0,g=-ti(m))}var b=(i[0].value-o[0].value)/s,_=(i[a].value-o[a].value)/s;r.setExtent.call(t,g+p*b,v+p*_),r.setInterval.call(t,p),(b||_)&&r.setNiceExtent.call(t,g+p,v-p)}var qT=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=ET,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function r(t){var e,n=Object(v["keys"])(t),r=n.length;if(r){for(var i=[],o=r-1;o>=0;o--){var a=+n[o],s=t[a],l=s.model,u=s.scale;_w(u)&&l.get("alignTicks")&&null==l.get("interval")?i.push(s):(AS(u,l),_w(u)&&(e=s))}i.length&&(e||(e=i.pop(),AS(e.scale,e.model)),Object(v["each"])(i,(function(t){VT(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),r(n.x),r(n.y);var i={};Object(v["each"])(n.x,(function(t){HT(n,"y",t,i)})),Object(v["each"])(n.y,(function(t){HT(n,"x",t,i)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var r=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),o=ah(r,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){Object(v["each"])(a,(function(t){var e=t.isHorizontal(),n=e?[0,o.width]:[0,o.height],r=t.inverse?1:0;t.setExtent(n[r],n[1-r]),UT(t,e?o.x:o.y)}))}s(),i&&(Object(v["each"])(a,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=PS(t);if(e){var n=t.isHorizontal()?"height":"width",r=t.model.get(["axisLabel","margin"]);o[n]-=e[n]+r,"top"===t.position?o.y+=e.height+r:"left"===t.position&&(o.x+=e.width+r)}}})),s()),Object(v["each"])(this._coordsList,(function(t){t.calcAffineTransform()}))},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}Object(v["isObject"])(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var r=0,i=this._coordsList;r0?"top":"bottom",r="center"):ci(o-YT)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}},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}(),KT={axisLine:function(t,e,n,r){var i=e.get(["axisLine","show"]);if("auto"===i&&t.handleAutoShown&&(i=t.handleAutoShown("axisLine")),i){var o=e.axis.getExtent(),a=r.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(F(s,s,a),F(l,l,a));var c=Object(v["extend"])({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new ev({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});zv(h.shape,h.style.lineWidth),h.anid="line",n.add(h);var f=e.get(["axisLine","symbol"]);if(null!=f){var d=e.get(["axisLine","symbolSize"]);Object(v["isString"])(f)&&(f=[f,f]),(Object(v["isString"])(d)||Object(v["isNumber"])(d))&&(d=[d,d]);var p=Mm(e.get(["axisLine","symbolOffset"])||0,d),g=d[0],y=d[1];Object(v["each"])([{rotate:t.rotation+Math.PI/2,offset:p[0],r:0},{rotate:t.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(e,r){if("none"!==f[r]&&null!=f[r]){var i=km(f[r],-g/2,-y/2,g,y,c.stroke,!0),o=e.r+e.offset,a=u?l:s;i.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(i)}}))}}},axisTickLabel:function(t,e,n,r){var i=rI(n,r,e,t),o=oI(n,r,e,t);if(QT(e,o,i),iI(n,r,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var a=eC(Object(v["map"])(o,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})));oC(a)}},axisName:function(t,e,n,r){var i=Object(v["retrieve"])(t.axisName,e.get("name"));if(i){var o,a,s=e.get("nameLocation"),l=t.nameDirection,u=e.getModel("nameTextStyle"),c=e.get("nameGap")||0,h=e.axis.getExtent(),f=h[0]>h[1]?-1:1,d=["start"===s?h[0]-f*c:"end"===s?h[1]+f*c:(h[0]+h[1])/2,eI(s)?t.labelOffset+l*c:0],p=e.get("nameRotate");null!=p&&(p=p*YT/180),eI(s)?o=XT.innerTextLayout(t.rotation,null!=p?p:t.rotation,l):(o=ZT(t.rotation,s,p||0,h),a=t.axisNameAvailableWidth,null!=a&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),y=e.get("nameTruncate",!0)||{},m=y.ellipsis,b=Object(v["retrieve"])(t.nameTruncateMaxWidth,y.maxWidth,a),_=new qs({x:d[0],y:d[1],rotation:o.rotation,silent:XT.isLabelSilent(e),style:xu(u,{text:i,font:g,overflow:"truncate",width:b,ellipsis:m,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(ny({el:_,componentModel:e,itemName:i}),_.__fullText=i,_.anid="name",e.get("triggerEvent")){var x=XT.makeAxisEventDataBase(e);x.targetType="axisName",x.name=i,Gs(_).eventData=x}r.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}};function ZT(t,e,n,r){var i,o,a=ui(n-t),s=r[0]>r[1],l="start"===e&&!s||"start"!==e&&s;return ci(a-YT/2)?(o=l?"bottom":"top",i="center"):ci(a-1.5*YT)?(o=l?"top":"bottom",i="center"):(o="middle",i=a<1.5*YT&&a>YT/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function QT(t,e,n){if(!DS(t.axis)){var r=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],c=n[1],h=n[n.length-1],f=n[n.length-2];!1===r?(JT(o),JT(u)):tI(o,a)&&(r?(JT(a),JT(c)):(JT(o),JT(u))),!1===i?(JT(s),JT(h)):tI(l,s)&&(i?(JT(l),JT(f)):(JT(s),JT(h)))}}function JT(t){t&&(t.ignore=!0)}function tI(t,e){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(n&&r){var i=St([]);return At(i,i,-t.rotation),n.applyTransform(Ct([],i,t.getLocalTransform())),r.applyTransform(Ct([],i,e.getLocalTransform())),n.intersect(r)}}function eI(t){return"middle"===t||"center"===t}function nI(t,e,n,r,i){for(var o=[],a=[],s=[],l=0;l=0||t===e}function dI(t){var e=pI(t);if(e){var n=e.axisPointerModel,r=e.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=vI(n);null==o&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a0&&!h.min?h.min=0:null!=h.min&&h.min<0&&!h.max&&(h.max=0);var f=a;null!=h.color&&(f=v["defaults"]({color:h.color},a));var d=v["merge"](v["clone"](h),{boundaryGap:t,splitNumber:e,scale:n,axisLine:r,axisTick:i,axisLabel:o,name:h.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:f,triggerEvent:c},!1);if(v["isString"](l)){var p=d.name;d.name=l.replace("{value}",null!=p?p:"")}else v["isFunction"](l)&&(d.name=l(d.name,d));var g=new Wu(d,null,this.ecModel);return v["mixin"](g,BS.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g}),this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:v["merge"]({lineStyle:{color:"#bbb"}},qI.axisLine),axisLabel:GI(qI.axisLabel,!1),axisTick:GI(qI.axisTick,!1),splitLine:GI(qI.splitLine,!0),splitArea:GI(qI.splitArea,!0),indicator:[]},e}(vh),WI=HI,UI=["axisLine","axisTickLabel","axisName"],$I=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.render=function(t,e,n){var r=this.group;r.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes(),r=v["map"](n,(function(t){var n=t.model.get("showName")?t.name:"",r=new aI(t.model,{axisName:n,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return r}));v["each"](r,(function(t){v["each"](UI,t.add,t),this.group.add(t.getGroup())}),this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var r=t.get("shape"),i=t.getModel("splitLine"),o=t.getModel("splitArea"),a=i.getModel("lineStyle"),s=o.getModel("areaStyle"),l=i.get("show"),u=o.get("show"),c=a.get("color"),h=s.get("color"),f=v["isArray"](c)?c:[c],d=v["isArray"](h)?h:[h],p=[],g=[];if("circle"===r)for(var y=n[0].getTicksCoords(),m=e.cx,b=e.cy,_=0;_3?1.4:i>1?1.2:1.1,l=r>0?s:1/s;sE(this,"zoom","zoomOnMouseWheel",t,{scale:l,originX:o,originY:a,isAvailableBehavior:null})}if(n){var u=Math.abs(r),c=(r>0?1:-1)*(u>3?.4:u>1?.15:.05);sE(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:c,originX:o,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!iE(this._zr,"globalPan")){var e=t.pinchScale>1?1.1:1/1.1;sE(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(U);function sE(t,e,n,r,i){t.pointerChecker&&t.pointerChecker(r,i.originX,i.originY)&&(vt(r.event),lE(t,e,n,r,i))}function lE(t,e,n,r,i){i.isAvailableBehavior=Object(v["bind"])(uE,null,n,r),t.trigger(e,i)}function uE(t,e,n){var r=n[t];return!t||r&&(!Object(v["isString"])(r)||e.event[r+"Key"])}var cE=aE;function hE(t,e,n){var r=t.target;r.x+=e,r.y+=n,r.dirty()}function fE(t,e,n,r){var i=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/t.zoom;t.zoom=a,i.x-=(n-i.x)*(u-1),i.y-=(r-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var dE,pE={axisPointer:1,tooltip:1,brush:1};function gE(t,e,n){var r=e.getComponentByElement(t.topTarget),i=r&&r.coordinateSystem;return r&&r!==n&&!pE.hasOwnProperty(r.mainType)&&i&&i.model!==n}function vE(t){if(Object(v["isString"])(t)){var e=new DOMParser;t=e.parseFromString(t,"text/xml")}var n=t;9===n.nodeType&&(n=n.firstChild);while("svg"!==n.nodeName.toLowerCase()||1!==n.nodeType)n=n.nextSibling;return n}var yE={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},mE=Object(v["keys"])(yE),bE={"alignment-baseline":"textBaseline","stop-color":"stopColor"},_E=Object(v["keys"])(bE),xE=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=vE(t);this._defsUsePending=[];var r=new Nr;this._root=r;var i=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||e.width),s=parseFloat(n.getAttribute("height")||e.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),AE(n,r,null,!0,!1);var l,u,c=n.firstChild;while(c)this._parseNode(c,r,i,null,!1,!1),c=c.nextSibling;if(EE(this._defs,this._defsUsePending),this._defsUsePending=[],o){var h=jE(o);h.length>=4&&(l={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(l&&null!=a&&null!=s&&(u=zE(l,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var f=r;r=new Nr,r.add(f),f.scaleX=f.scaleY=u.scale,f.x=u.x,f.y=u.y}return e.ignoreRootClip||null==a||null==s||r.setClipPath(new Os({shape:{x:0,y:0,width:a,height:s}})),{root:r,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:i}},t.prototype._parseNode=function(t,e,n,r,i,o){var a,s=t.nodeName.toLowerCase(),l=r;if("defs"===s&&(i=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=e;else{if(!i){var u=dE[s];if(u&&Object(v["hasOwn"])(dE,s)){a=u.call(this,t,e);var c=t.getAttribute("name");if(c){var h={name:c,namedFrom:null,svgNodeTagLower:s,el:a};n.push(h),"g"===s&&(l=h)}else r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:s,el:a});e.add(a)}}var f=wE[s];if(f&&Object(v["hasOwn"])(wE,s)){var d=f.call(this,t),p=t.getAttribute("id");p&&(this._defs[p]=d)}}if(a&&a.isGroup){var g=t.firstChild;while(g)1===g.nodeType?this._parseNode(g,a,n,l,i,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling}},t.prototype._parseText=function(t,e){var n=new cs({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});CE(e,n),AE(t,n,this._defsUsePending,!1,!1),ME(n,e);var r=n.style,i=r.fontSize;i&&i<9&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+"px",r.fontFamily||"sans-serif"].join(" ");r.font=o;var a=n.getBoundingRect();return this._textX+=a.width,e.add(n),n},t.internalField=function(){dE={g:function(t,e){var n=new Nr;return CE(e,n),AE(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new Os;return CE(e,n),AE(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new bg;return CE(e,n),AE(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new ev;return CE(e,n),AE(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new wg;return CE(e,n),AE(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n,r=t.getAttribute("points");r&&(n=kE(r));var i=new Yg({shape:{points:n||[]},silent:!0});return CE(e,i),AE(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n,r=t.getAttribute("points");r&&(n=kE(r));var i=new Zg({shape:{points:n||[]},silent:!0});return CE(e,i),AE(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new gs;return CE(e,n),AE(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",r=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(r)+parseFloat(o);var a=new Nr;return CE(e,a),AE(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var n=t.getAttribute("x"),r=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=r&&(this._textY=parseFloat(r));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",a=new Nr;return CE(e,a),AE(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),a},path:function(t,e){var n=t.getAttribute("d")||"",r=dg(n);return CE(e,r),AE(t,r,this._defsUsePending,!1,!1),r.silent=!0,r}}}(),t}(),wE={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),r=parseInt(t.getAttribute("x2")||"10",10),i=parseInt(t.getAttribute("y2")||"0",10),o=new gv(e,n,r,i);return SE(t,o),OE(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),r=parseInt(t.getAttribute("r")||"0",10),i=new yv(e,n,r);return SE(t,i),OE(t,i),i}};function SE(t,e){var n=t.getAttribute("gradientUnits");"userSpaceOnUse"===n&&(e.global=!0)}function OE(t,e){var n=t.firstChild;while(n){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var r=n.getAttribute("offset"),i=void 0;i=r&&r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var o={};BE(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:a})}n=n.nextSibling}}function CE(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Object(v["defaults"])(e.__inheritedStyle,t.__inheritedStyle))}function kE(t){for(var e=jE(t),n=[],r=0;r0;o-=2){var a=r[o],s=r[o-1],l=jE(a);switch(i=i||wt(),s){case"translate":kt(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Mt(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":At(i,i,-parseFloat(l[0])*DE);break;case"skewX":var u=Math.tan(parseFloat(l[0])*DE);Ct(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*DE);Ct(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}e.setLocalTransform(i)}}var NE=/([^\s:;]+)\s*:\s*([^:;]+)/g;function BE(t,e,n){var r=t.getAttribute("style");if(r){var i;NE.lastIndex=0;while(null!=(i=NE.exec(r))){var o=i[1],a=Object(v["hasOwn"])(yE,o)?yE[o]:null;a&&(e[a]=i[2]);var s=Object(v["hasOwn"])(bE,o)?bE[o]:null;s&&(n[s]=i[2])}}}function FE(t,e,n){for(var r=0;r0,g={api:n,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:h};"geoJSON"===s.resourceType?this._buildGeoJSON(g):"geoSVG"===s.resourceType&&this._buildSVG(g),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,r)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=v["createHashMap"](),n=v["createHashMap"](),r=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,a=t.data,s=t.geo.projection,l=s&&s.stream;function u(t,e){return e&&(t=e(t)),t&&[t[0]*i.scaleX+i.x,t[1]*i.scaleY+i.y]}function c(t){for(var e=[],n=!l&&s&&s.project,r=0;r=0)&&(f=i);var d=a?{normal:{align:"center",verticalAlign:"middle"}}:null;bu(e,_u(r),{labelFetcher:f,labelDataIndex:h,defaultText:n},d);var p=e.getTextContent();if(p&&(fP(p).ignore=p.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function mP(t,e,n,r,i,o){t.data?t.data.setItemGraphicEl(o,e):Gs(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function bP(t,e,n,r,i){t.data||ny({el:e,componentModel:i,itemName:n,itemTooltipOption:r.get("tooltip")})}function _P(t,e,n,r,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var o=r.getModel("emphasis"),a=o.get("focus");return $l(e,a,o.get("blurScope"),o.get("disabled")),t.isGeo&&tu(e,i,n),a}function xP(t,e,n){var r,i=[];function o(){r=[]}function a(){r.length&&(i.push(r),r=[])}var s=e({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(t,e){isFinite(t)&&isFinite(e)&&r.push([t,e])},sphere:function(){}});return!n&&s.polygonStart(),v["each"](t,(function(t){s.lineStart();for(var e=0;e-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(Hp),kP=CP;function AP(t,e){var n={};return v["each"](t,(function(t){t.each(t.mapDimension("value"),(function(e,r){var i="ec-"+t.getName(r);n[i]=n[i]||[],isNaN(e)||n[i].push(e)}))})),t[0].map(t[0].mapDimension("value"),(function(r,i){for(var o,a="ec-"+t[0].getName(i),s=0,l=1/0,u=-1/0,c=n[a].length,h=0;h1?(d.width=f,d.height=f/b):(d.height=f,d.width=f*b),d.y=h[1]-d.height/2,d.x=h[0]-d.width/2;else{var x=t.getBoxLayoutParams();x.aspect=b,d=ah(x,{width:y,height:m})}this.setViewRect(d.x,d.y,d.width,d.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}function zP(t,e){v["each"](e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}var VP=function(){function t(){this.dimensions=DP}return t.prototype.create=function(t,e){var n=[];function r(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",(function(t,i){var o=t.get("map"),a=new BP(o+i,o,v["extend"]({nameMap:t.get("nameMap")},r(t)));a.zoomLimit=t.get("scaleLimit"),n.push(a),t.coordinateSystem=a,a.model=t,a.resize=FP,a.resize(t,e)})),t.eachSeries((function(t){var e=t.get("coordinateSystem");if("geo"===e){var r=t.get("geoIndex")||0;t.coordinateSystem=n[r]}}));var i={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();i[e]=i[e]||[],i[e].push(t)}})),v["each"](i,(function(t,i){var o=v["map"](t,(function(t){return t.get("nameMap")})),a=new BP(i,i,v["extend"]({nameMap:v["mergeAll"](o)},r(t[0])));a.zoomLimit=v["retrieve"].apply(null,v["map"](t,(function(t){return t.get("scaleLimit")}))),n.push(a),a.resize=FP,a.resize(t[0],e),v["each"](t,(function(t){t.coordinateSystem=a,zP(a,t)}))})),n},t.prototype.getFilledRegions=function(t,e,n,r){for(var i=(t||[]).slice(),o=v["createHashMap"](),a=0;a=0;a--){var s=r[a];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},i.push(s)}}function tj(t,e){var n=t.isExpand?t.children:[],r=t.parentNode.children,i=t.hierNode.i?r[t.hierNode.i-1]:null;if(n.length){oj(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(t.hierNode.prelim=i.hierNode.prelim+e(t,i),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else i&&(t.hierNode.prelim=i.hierNode.prelim+e(t,i));t.parentNode.hierNode.defaultAncestor=aj(t,i,t.parentNode.hierNode.defaultAncestor||r[0],e)}function ej(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function nj(t){return arguments.length?t:hj}function rj(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function ij(t,e){return ah(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function oj(t){var e=t.children,n=e.length,r=0,i=0;while(--n>=0){var o=e[n];o.hierNode.prelim+=r,o.hierNode.modifier+=r,i+=o.hierNode.change,r+=o.hierNode.shift+i}}function aj(t,e,n,r){if(e){var i=t,o=t,a=o.parentNode.children[0],s=e,l=i.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,h=s.hierNode.modifier;while(s=sj(s),o=lj(o),s&&o){i=sj(i),a=lj(a),i.hierNode.ancestor=t;var f=s.hierNode.prelim+h-o.hierNode.prelim-u+r(s,o);f>0&&(cj(uj(s,t,n),t,f),u+=f,l+=f),h+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=i.hierNode.modifier,c+=a.hierNode.modifier}s&&!sj(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=h-l),o&&!lj(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=t)}return n}function sj(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function lj(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function uj(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function cj(t,e,n){var r=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=r}function hj(t,e){return t.parentNode===e.parentNode?1:2}var fj=function(){function t(){this.parentPoint=[],this.childPoints=[]}return t}(),dj=function(t){function e(e){return t.call(this,e)||this}return p(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new fj},e.prototype.buildPath=function(t,e){var n=e.childPoints,r=n.length,i=e.parentPoint,o=n[0],a=n[r-1];if(1===r)return t.moveTo(i[0],i[1]),void t.lineTo(o[0],o[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=Jr(e.forkPosition,1),h=[];h[l]=i[l],h[u]=i[u]+(a[u]-i[u])*c,t.moveTo(i[0],i[1]),t.lineTo(h[0],h[1]),t.moveTo(o[0],o[1]),h[l]=o[l],t.lineTo(h[0],h[1]),h[l]=a[l],t.lineTo(h[0],h[1]),t.lineTo(a[0],a[1]);for(var f=1;fb.x,w||(x-=Math.PI));var O=w?"left":"right",C=s.getModel("label"),k=C.get("rotate"),A=k*(Math.PI/180),M=y.getTextContent();M&&(y.setTextConfig({position:C.get("position")||O,rotation:null==k?-x:A,origin:"center"}),M.setStyle("verticalAlign","middle"))}var T=s.get(["emphasis","focus"]),I="relative"===T?v["concatArray"](a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===T?a.getAncestorsIndices():"descendant"===T?a.getDescendantIndices():null;I&&(Gs(n).focus=I),yj(i,a,c,n,p,d,g,r),n.__edge&&(n.onHoverStateChange=function(e){if("blur"!==e){var r=a.parentNode&&t.getItemGraphicEl(a.parentNode.dataIndex);r&&r.hoverState===Ks||bl(n.__edge,e)}})}function yj(t,e,n,r,i,o,a,s){var l=e.getModel(),u=t.get("edgeShape"),c=t.get("layout"),h=t.getOrient(),f=t.get(["lineStyle","curveness"]),d=t.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),g=r.__edge;if("curve"===u)e.parentNode&&e.parentNode!==n&&(g||(g=r.__edge=new av({shape:xj(c,h,f,i,i)})),lu(g,{shape:xj(c,h,f,o,a)},t));else if("polyline"===u)if("orthogonal"===c){if(e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var y=e.children,m=[],b=0;be&&(e=r.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,r=n.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e=0){var r=n.getData().tree.root,i=t.targetNode;if(v["isString"](i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var o=t.targetNodeId;if(null!=o&&(i=r.getNodeById(o)))return{node:i}}}function Fj(t){var e=[];while(t)t=t.parentNode,t&&e.push(t);return e.reverse()}function zj(t,e){var n=Fj(t);return v["indexOf"](n,e)>=0}function Vj(t,e){var n=[];while(t){var r=t.dataIndex;n.push({name:t.name,dataIndex:r,value:e.getRawValue(r)}),t=t.parentNode}return n.reverse(),n}var qj=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return p(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=t.leaves||{},r=new Wu(n,this,this.ecModel),i=Nj.createTree(e,this,o);function o(t){t.wrapMethod("getItemModel",(function(t,e){var n=i.getNodeByDataIndex(e);return n&&n.children.length&&n.isExpand||(t.parentModel=r),t}))}var a=0;i.eachNode("preorder",(function(t){t.depth>a&&(a=t.depth)}));var s=t.expandAndCollapse,l=s&&t.initialTreeDepth>=0?t.initialTreeDepth:a;return i.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=l})),i.data},e.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,e,n){var r=this.getData().tree,i=r.root.children[0],o=r.getNodeByDataIndex(t),a=o.getValue(),s=o.name;while(o&&o!==i)s=o.parentNode.name+"."+s,o=o.parentNode;return pp("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=Vj(r,this),n.collapsed=!r.isExpand,n},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Hp),Gj=qj;function Hj(t,e,n){var r,i=[t],o=[];while(r=i.pop())if(o.push(r),r.isExpand){var a=r.children;if(a.length)for(var s=0;s=0;o--)r.push(i[o])}}function Uj(t,e){t.eachSeriesByType("tree",(function(t){$j(t,e)}))}function $j(t,e){var n=ij(t,e);t.layoutInfo=n;var r=t.get("layout"),i=0,o=0,a=null;"radial"===r?(i=2*Math.PI,o=Math.min(n.height,n.width)/2,a=nj((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(i=n.width,o=n.height,a=nj());var s=t.getData().tree.root,l=s.children[0];if(l){JP(s),Hj(l,tj,a),s.hierNode.modifier=-l.hierNode.prelim,Wj(l,ej);var u=l,c=l,h=l;Wj(l,(function(t){var e=t.getLayout().x;ec.getLayout().x&&(c=t),t.depth>h.depth&&(h=t)}));var f=u===c?1:a(u,c)/2,d=f-u.getLayout().x,p=0,g=0,v=0,y=0;if("radial"===r)p=i/(c.getLayout().x+f+d),g=o/(h.depth-1||1),Wj(l,(function(t){v=(t.getLayout().x+d)*p,y=(t.depth-1)*g;var e=rj(v,y);t.setLayout({x:e.x,y:e.y,rawX:v,rawY:y},!0)}));else{var m=t.getOrient();"RL"===m||"LR"===m?(g=o/(c.getLayout().x+f+d),p=i/(h.depth-1||1),Wj(l,(function(t){y=(t.getLayout().x+d)*g,v="LR"===m?(t.depth-1)*p:i-(t.depth-1)*p,t.setLayout({x:v,y:y},!0)}))):"TB"!==m&&"BT"!==m||(p=i/(c.getLayout().x+f+d),g=o/(h.depth-1||1),Wj(l,(function(t){v=(t.getLayout().x+d)*p,y="TB"===m?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:v,y:y},!0)})))}}}function Yj(t){t.eachSeriesByType("tree",(function(t){var e=t.getData(),n=e.tree;n.eachNode((function(t){var n=t.getModel(),r=n.getModel("itemStyle").getItemStyle(),i=e.ensureUniqueItemVisual(t.dataIndex,"style");Object(v["extend"])(i,r)}))}))}function Xj(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=t.dataIndex,r=e.getData().tree,i=r.getNodeByDataIndex(n);i.isExpand=!i.isExpand}))})),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(t,e,n){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var r=e.coordinateSystem,i=$P(r,t,void 0,n);e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom)}))}))}function Kj(t){t.registerChartView(wj),t.registerSeriesModel(Gj),t.registerLayout(Uj),t.registerVisual(Yj),Xj(t)}var Zj=["treemapZoomToNode","treemapRender","treemapMove"];function Qj(t){for(var e=0;e1)n=n.parentNode;var i=Hh(t.ecModel,n.name||n.dataIndex+"",r);e.setVisual("decal",i)}))}var tL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return p(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};eL(n);var r=t.levels||[],i=this.designatedVisualItemStyle={},o=new Wu({itemStyle:i},this,e);r=t.levels=nL(r,e);var a=v["map"](r||[],(function(t){return new Wu(t,o,e)}),this),s=Nj.createTree(n,this,l);function l(t){t.wrapMethod("getItemModel",(function(t,e){var n=s.getNodeByDataIndex(e),r=n?a[n.depth]:null;return t.parentModel=r||o,t}))}return s.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=this.getRawValue(t),o=r.getName(t);return pp("nameValue",{name:o,value:i})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=Vj(r,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},v["extend"](this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=v["createHashMap"](),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){Jj(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Hp);function eL(t){var e=0;v["each"](t.children,(function(t){eL(t);var n=t.value;v["isArray"](n)&&(n=n[0]),e+=n}));var n=t.value;v["isArray"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),v["isArray"](t.value)?t.value[0]=n:t.value=n}function nL(t,e){var n=ki(e.get("color")),r=ki(e.get(["aria","decal","decals"]));if(n){var i,o;t=t||[],v["each"](t,(function(t){var e=new Wu(t),n=e.get("color"),r=e.get("decal");(e.get(["itemStyle","color"])||n&&"none"!==n)&&(i=!0),(e.get(["itemStyle","decal"])||r&&"none"!==r)&&(o=!0)}));var a=t[0]||(t[0]={});return i||(a.color=n.slice()),!o&&r&&(a.decal=r.slice()),t}}var rL=tL,iL=8,oL=8,aL=5,sL=function(){function t(t){this.group=new Nr,t.add(this.group)}return t.prototype.render=function(t,e,n,r){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),i.get("show")&&n){var a=i.getModel("itemStyle"),s=i.getModel("emphasis"),l=a.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),c={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,l),this._renderContent(t,c,a,s,l,u,r),sh(o,c.pos,c.box)}},t.prototype._prepare=function(t,e,n){for(var r=t;r;r=r.parentNode){var i=zi(r.getModel().get("name"),""),o=n.getTextRect(i),a=Math.max(o.width+2*iL,e.emptyItemWidth);e.totalWidth+=a+oL,e.renderList.push({node:r,text:i,width:a})}},t.prototype._renderContent=function(t,e,n,r,i,o,a){for(var s=0,l=e.emptyItemWidth,u=t.get(["breadcrumb","height"]),c=oh(e.pos,e.box),h=e.totalWidth,f=e.renderList,d=r.getModel("itemStyle").getItemStyle(),p=f.length-1;p>=0;p--){var g=f[p],y=g.node,m=g.width,b=g.text;h>c.width&&(h-=m-l,m=l,b=null);var _=new Yg({shape:{points:lL(s,0,m,u,p===f.length-1,0===p)},style:Object(v["defaults"])(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new qs({style:xu(i,{text:b})}),textConfig:{position:"inside"},z2:1e4*tl,onclick:Object(v["curry"])(a,y)});_.disableLabelAnimation=!0,_.getTextContent().ensureState("emphasis").style=xu(o,{text:b}),_.ensureState("emphasis").style=d,$l(_,r.get("focus"),r.get("blurScope"),r.get("disabled")),this.group.add(_),uL(_,t,y),s+=m+oL}},t.prototype.remove=function(){this.group.removeAll()},t}();function lL(t,e,n,r,i,o){var a=[[i?t:t-aL,e],[t+n,e],[t+n,e+r],[i?t:t-aL,e+r]];return!o&&a.splice(2,0,[t+n+aL,e+r/2]),!i&&a.push([t,e+r/2]),a}function uL(t,e,n){Gs(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&Vj(n,e)}}var cL=sL,hL=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,n,r,i){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:r,easing:i}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},r=0,i=this._storage.length;rgL||Math.abs(t.dy)>gL)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var e=t.originX,n=t.originY;if("animating"!==this._state){var r=this.seriesModel.getData().tree.root;if(!r)return;var i=r.getLayout();if(!i)return;var o=new qt(i.x,i.y,i.width,i.height),a=this.seriesModel.layoutInfo;e-=a.x,n-=a.y;var s=wt();kt(s,s,[-e,-n]),Mt(s,s,[t.scale,t.scale]),kt(s,s,[e,n]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},e.prototype._initEvents=function(t){var e=this;t.on("click",(function(t){if("ready"===e._state){var n=e.seriesModel.get("nodeClick",!0);if(n){var r=e.findTarget(t.offsetX,t.offsetY);if(r){var i=r.node;if(i.getLayout().isLeafRoot)e._rootToNode(r);else if("zoomToNode"===n)e._zoomToNode(r);else if("link"===n){var o=i.hostTree.data.getItemModel(i.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&Jc(a,s)}}}}}),this)},e.prototype._renderBreadcrumb=function(t,e,n){var r=this;n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2),n||(n={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new cL(this.group))).render(t,e,n.node,(function(e){"animating"!==r._state&&(zj(t.getViewRoot(),e)?r._rootToNode({node:e}):r._zoomToNode({node:e}))}))},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=CL(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,e){var n,r=this.seriesModel.getViewRoot();return r.eachNode({attr:"viewChildren",order:"preorder"},(function(r){var i=this._storage.background[r.getRawIndex()];if(i){var o=i.transformCoordToLocal(t,e),a=i.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:r,offsetX:o[0],offsetY:o[1]}}}),this),n},e.type="treemap",e}(dy);function CL(){return{nodeGroup:[],background:[],content:[]}}function kL(t,e,n,r,i,o,a,s,l,u){if(a){var c=a.getLayout(),h=t.getData(),f=a.getModel();if(h.setItemGraphicEl(a.dataIndex,null),c&&c.isInView){var d=c.width,p=c.height,g=c.borderWidth,y=c.invisible,m=a.getRawIndex(),b=s&&s.getRawIndex(),_=a.viewChildren,x=c.upperHeight,w=_&&_.length,S=f.getModel("itemStyle"),O=f.getModel(["emphasis","itemStyle"]),C=f.getModel(["blur","itemStyle"]),k=f.getModel(["select","itemStyle"]),A=S.get("borderRadius")||0,M=V("nodeGroup",dL);if(M){if(l.add(M),M.x=c.x||0,M.y=c.y||0,M.markRedraw(),SL(M).nodeWidth=d,SL(M).nodeHeight=p,c.isAboveViewRoot)return M;var T=V("background",pL,u,bL);T&&R(M,T,w&&c.upperLabelHeight);var I=f.getModel("emphasis"),E=I.get("focus"),P=I.get("blurScope"),j=I.get("disabled"),L="ancestor"===E?a.getAncestorsIndices():"descendant"===E?a.getDescendantIndices():E;if(w)Jl(M)&&Ql(M,!1),T&&(Ql(T,!j),h.setItemGraphicEl(a.dataIndex,T),Yl(T,L,P));else{var D=V("content",pL,u,_L);D&&N(M,D),T.disableMorphing=!0,T&&Jl(T)&&Ql(T,!1),Ql(M,!j),h.setItemGraphicEl(a.dataIndex,M),Yl(M,L,P)}return M}}}function R(e,n,r){var i=Gs(n);if(i.dataIndex=a.dataIndex,i.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:d,height:p,r:A}),y)B(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=wL(S);l.fill=s;var u=xL(O);u.fill=O.get("borderColor");var c=xL(C);c.fill=C.get("borderColor");var h=xL(k);if(h.fill=k.get("borderColor"),r){var f=d-2*g;F(n,s,o.opacity,{x:g,y:0,width:f,height:x})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=c,n.ensureState("select").style=h,Cl(n)}e.add(n)}function N(e,n){var r=Gs(n);r.dataIndex=a.dataIndex,r.seriesIndex=t.seriesIndex;var i=Math.max(d-2*g,0),o=Math.max(p-2*g,0);if(n.culling=!0,n.setShape({x:g,y:g,width:i,height:o,r:A}),y)B(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,u=wL(S);u.fill=l,u.decal=s.decal;var c=xL(O),h=xL(C),f=xL(k);F(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=h,n.ensureState("select").style=f,Cl(n)}e.add(n)}function B(t){!t.invisible&&o.push(t)}function F(e,n,r,i){var o=f.getModel(i?yL:vL),s=zi(f.get("name"),null),l=o.getShallow("show");bu(e,_u(f,i?yL:vL),{defaultText:l?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:t,labelDataIndex:a.dataIndex});var u=e.getTextContent();if(u){var h=u.style,d=Object(v["normalizeCssArray"])(h.padding||0);i&&(e.setTextConfig({layoutRect:i}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var t=Math.max((i?i.width:e.shape.width)-d[1]-d[3],0),n=Math.max((i?i.height:e.shape.height)-d[0]-d[2],0);h.width===t&&h.height===n||u.setStyle({width:t,height:n})},h.truncateMinChar=2,h.lineOverflow="truncate",z(h,i,c);var p=u.getState("emphasis");z(p?p.style:null,i,c)}}function z(e,n,r){var i=e?e.text:null;if(!n&&r.isLeafRoot&&null!=i){var o=t.get("drillDownIcon",!0);e.text=o?o+" "+i:i}}function V(t,r,o,a){var s=null!=b&&n[t][b],l=i[t];return s?(n[t][b]=null,q(l,s)):y||(s=new r,s instanceof ta&&(s.z2=AL(o,a)),G(l,s)),e[t][m]=s}function q(t,e){var n=t[m]={};e instanceof dL?(n.oldX=e.x,n.oldY=e.y):n.oldShape=Object(v["extend"])({},e.shape)}function G(t,e){var n=t[m]={},o=a.parentNode,s=e instanceof Nr;if(o&&(!r||"drillDown"===r.direction)){var l=0,u=0,c=i.background[o.getRawIndex()];!r&&c&&c.oldShape&&(l=c.oldShape.width,u=c.oldShape.height),s?(n.oldX=0,n.oldY=u):n.oldShape={x:l,y:u,width:0,height:0}}n.fadein=!s}}function AL(t,e){return t*mL+e}var ML=OL,TL=v["each"],IL=v["isObject"],EL=-1,PL=function(){function t(e){var n=e.mappingMethod,r=e.type,i=this.option=v["clone"](e);this.type=r,this.mappingMethod=n,this._normalizeData=HL[n];var o=t.visualHandlers[r];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(DL(i),jL(i)):"category"===n?i.categories?LL(i):DL(i,!0):(v["assert"]("linear"!==n||i.dataExtent),DL(i))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return v["bind"](this._normalizeData,this)},t.listVisualTypes=function(){return v["keys"](t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){v["isObject"](t)?v["each"](t,e,n):e.call(n,t)},t.mapVisual=function(e,n,r){var i,o=v["isArray"](e)?[]:v["isObject"](e)?{}:(i=!0,null);return t.eachVisual(e,(function(t,e){var a=n.call(r,t,e);i?o=a:o[e]=a})),o},t.retrieveVisuals=function(e){var n,r={};return e&&TL(t.visualHandlers,(function(t,i){e.hasOwnProperty(i)&&(r[i]=e[i],n=!0)})),n?r:null},t.prepareVisualTypes=function(t){if(v["isArray"](t))t=t.slice();else{if(!IL(t))return[];var e=[];TL(t,(function(t,n){e.push(n)})),t=e}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var r,i=1/0,o=0,a=e.length;o=0;o--)null==r[o]&&(delete n[e[o]],e.pop())}function DL(t,e){var n=t.visual,r=[];v["isObject"](n)?TL(n,(function(t){r.push(t)})):null!=n&&r.push(n);var i={color:1,symbol:1};e||1!==r.length||i.hasOwnProperty(t.type)||(r[1]=r[0]),GL(t,r)}function RL(t){return{applyVisual:function(e,n,r){var i=this.mapValueToVisual(e);r("color",t(n("color"),i))},_normalizedToVisual:VL([0,1])}}function NL(t){var e=this.option.visual;return e[Math.round(Qr(t,[0,1],[0,e.length-1],!0))]||{}}function BL(t){return function(e,n,r){r(t,this.mapValueToVisual(e))}}function FL(t){var e=this.option.visual;return e[this.option.loop&&t!==EL?t%e.length:t]}function zL(){return this.option.visual[0]}function VL(t){return{linear:function(e){return Qr(e,t,this.option.visual,!0)},category:FL,piecewise:function(e,n){var r=qL.call(this,n);return null==r&&(r=Qr(e,t,this.option.visual,!0)),r},fixed:zL}}function qL(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var r=PL.findPieceIndex(t,n),i=n[r];if(i&&i.visual)return i.visual[this.type]}}function GL(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=v["map"](e,(function(t){var e=Qe["parse"](t);return e||[0,0,0,1]}))),e}var HL={linear:function(t){return Qr(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=PL.findPieceIndex(t,e,!0);if(null!=n)return Qr(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?EL:e},fixed:v["noop"]};function WL(t,e,n){return t?e<=n:e=n.length||t===n[t.depth]){var o=rD(i,u,t,e,p,r);KL(t,o,n,r)}}))}else s=QL(u),c.fill=s}}function ZL(t,e,n){var r=Object(v["extend"])({},e),i=n.designatedVisualItemStyle;return Object(v["each"])(["color","colorAlpha","colorSaturation"],(function(n){i[n]=e[n];var o=t.get(n);i[n]=null,null!=o&&(r[n]=o)})),r}function QL(t){var e=tD(t,"color");if(e){var n=tD(t,"colorAlpha"),r=tD(t,"colorSaturation");return r&&(e=Object(Qe["modifyHSL"])(e,null,null,r)),n&&(e=Object(Qe["modifyAlpha"])(e,n)),e}}function JL(t,e){return null!=e?Object(Qe["modifyHSL"])(e,null,null,t):null}function tD(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function eD(t,e,n,r,i,o){if(o&&o.length){var a=nD(e,"color")||null!=i.color&&"none"!==i.color&&(nD(e,"colorAlpha")||nD(e,"colorSaturation"));if(a){var s=e.get("visualMin"),l=e.get("visualMax"),u=n.dataExtent.slice();null!=s&&su[1]&&(u[1]=l);var c=e.get("colorMappingBy"),h={type:a.name,dataExtent:u,visual:a.range};"color"!==h.type||"index"!==c&&"id"!==c?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var f=new UL(h);return YL(f).drColorMappingBy=c,f}}}function nD(t,e){var n=t.get(e);return Object(v["isArray"])(n)&&n.length?{name:e,range:n}:null}function rD(t,e,n,r,i,o){var a=Object(v["extend"])({},e);if(i){var s=i.type,l="color"===s&&YL(i).drColorMappingBy,u="index"===l?r:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[s]=i.mapValueToVisual(u)}return a}var iD=Math.max,oD=Math.min,aD=v["retrieve"],sD=v["each"],lD=["itemStyle","borderWidth"],uD=["itemStyle","gapWidth"],cD=["upperLabel","show"],hD=["upperLabel","height"],fD={seriesType:"treemap",reset:function(t,e,n,r){var i=n.getWidth(),o=n.getHeight(),a=t.option,s=ah(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=Jr(aD(s.width,l[0]),i),c=Jr(aD(s.height,l[1]),o),h=r&&r.type,f=["treemapZoomToNode","treemapRootToNode"],d=Bj(r,f,t),p="treemapRender"===h||"treemapMove"===h?r.rootRect:null,g=t.getViewRoot(),y=Fj(g);if("treemapMove"!==h){var m="treemapZoomToNode"===h?_D(t,d,g,u,c):p?[p.width,p.height]:[u,c],b=a.sort;b&&"asc"!==b&&"desc"!==b&&(b="desc");var _={squareRatio:a.squareRatio,sort:b,leafDepth:a.leafDepth};g.hostTree.clearLayouts();var x={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};g.setLayout(x),dD(g,_,!1,0),x=g.getLayout(),sD(y,(function(t,e){var n=(y[e+1]||g).getValue();t.setLayout(v["extend"]({dataExtent:[n,n],borderWidth:0,upperHeight:0},x))}))}var w=t.getData().tree.root;w.setLayout(xD(s,p,d),!0),t.setLayoutInfo(s),wD(w,new qt(-s.x,-s.y,i,o),y,g,0)}};function dD(t,e,n,r){var i,o;if(!t.isRemoved()){var a=t.getLayout();i=a.width,o=a.height;var s=t.getModel(),l=s.get(lD),u=s.get(uD)/2,c=SD(s),h=Math.max(l,c),f=l-u,d=h-u;t.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:c},!0),i=iD(i-2*f,0),o=iD(o-f-d,0);var p=i*o,g=pD(t,s,p,e,n,r);if(g.length){var v={x:f,y:d,width:i,height:o},y=oD(i,o),m=1/0,b=[];b.area=0;for(var _=0,x=g.length;_=0;l--){var u=i["asc"===r?a-l-1:l].getValue();u/n*ea[1]&&(a[1]=e)}))):a=[NaN,NaN],{sum:r,dataExtent:a}}function mD(t,e,n){for(var r=0,i=1/0,o=0,a=void 0,s=t.length;or&&(r=a));var l=t.area*t.area,u=e*e*n;return l?iD(u*r/l,l/(u*i)):1/0}function bD(t,e,n,r,i){var o=e===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],c=e?t.area/e:0;(i||c>n[l[a]])&&(c=n[l[a]]);for(var h=0,f=t.length;hli&&(u=li),a=o}ur&&(r=e);var o=r%2?r+2:r+3;i=[];for(var a=0;a0&&(m[0]=-m[0],m[1]=-m[1]);var _=y[0]<0?-1:1;if("start"!==r.__position&&"end"!==r.__position){var x=-Math.atan2(y[1],y[0]);u[0].8?"left":c[0]<-.8?"right":"center",f=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":r.x=-c[0]*p+l[0],r.y=-c[1]*g+l[1],h=c[0]>.8?"right":c[0]<-.8?"left":"center",f=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":r.x=p*_+l[0],r.y=l[1]+w,h=y[0]<0?"right":"left",r.originX=-p*_,r.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":r.x=b[0],r.y=b[1]+w,h="center",r.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":r.x=-p*_+u[0],r.y=u[1]+w,h=y[0]>=0?"right":"left",r.originX=p*_,r.originY=-w;break}r.scaleX=r.scaleY=i,r.setStyle({verticalAlign:r.__verticalAlign||f,align:r.__align||h})}}}function O(t,e){var n=t.__specifiedRotation;if(null==n){var r=a.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(r[1],r[0]))}else t.attr("rotation",n)}},e}(Nr),pR=dR,gR=function(){function t(t){this.group=new Nr,this._LineCtor=t||pR}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,r=n.group,i=n._lineData;n._lineData=t,i||r.removeAll();var o=yR(t);t.diff(i).add((function(n){e._doAdd(t,n,o)})).update((function(n,r){e._doUpdate(i,t,r,n,o)})).remove((function(t){r.remove(i.getItemGraphicEl(t))})).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,n){e.updateLayout(t,n)}),this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=yR(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){t.isGroup||vR(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var r=t.start;r0}function yR(t){var e=t.hostModel,n=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:_u(e)}}function mR(t){return isNaN(t[0])||isNaN(t[1])}function bR(t){return t&&!mR(t[0])&&!mR(t[1])}var _R=gR,xR=[],wR=[],SR=[],OR=Ve,CR=R,kR=Math.abs;function AR(t,e,n){for(var r,i=t[0],o=t[1],a=t[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1){xR[0]=OR(i[0],o[0],a[0],c),xR[1]=OR(i[1],o[1],a[1],c);var h=kR(CR(xR,e)-l);h=0?r+=u:r-=u:p>=0?r-=u:r+=u}return r}function MR(t,e){var n=[],r=We,i=[[],[],[]],o=[[],[]],a=[];e/=2,t.eachEdge((function(t,s){var l=t.getLayout(),u=t.getVisual("fromSymbol"),c=t.getVisual("toSymbol");l.__original||(l.__original=[b(l[0]),b(l[1])],l[2]&&l.__original.push(b(l[2])));var h=l.__original;if(null!=l[2]){if(m(i[0],h[0]),m(i[1],h[2]),m(i[2],h[1]),u&&"none"!==u){var f=HD(t.node1),d=AR(i,h[0],f*e);r(i[0][0],i[1][0],i[2][0],d,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],d,n),i[0][1]=n[3],i[1][1]=n[4]}if(c&&"none"!==c){f=HD(t.node2),d=AR(i,h[1],f*e);r(i[0][0],i[1][0],i[2][0],d,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],d,n),i[1][1]=n[1],i[2][1]=n[2]}m(l[0],i[0]),m(l[1],i[2]),m(l[2],i[1])}else{if(m(o[0],h[0]),m(o[1],h[1]),S(a,o[1],o[0]),P(a,a),u&&"none"!==u){f=HD(t.node1);w(o[0],o[0],a,f*e)}if(c&&"none"!==c){f=HD(t.node2);w(o[1],o[1],a,-f*e)}m(l[0],o[0]),m(l[1],o[1])}}))}function TR(t){return"view"===t.type}var IR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.init=function(t,e){var n=new pA,r=new _R,i=this.group;this._controller=new cE(e.getZr()),this._controllerHost={target:i},i.add(n.group),i.add(r.group),this._symbolDraw=n,this._lineDraw=r,this._firstRender=!0},e.prototype.render=function(t,e,n){var r=this,i=t.coordinateSystem;this._model=t;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(TR(i)){var l={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY};this._firstRender?s.attr(l):lu(s,l,t)}MR(t.getGraph(),GD(t));var u=t.getData();o.updateData(u);var c=t.getEdgeData();a.updateData(c),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var h=t.forceLayout,f=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,f);var d=t.get("layout");u.graph.eachNode((function(e){var n=e.dataIndex,i=e.getGraphicEl(),o=e.getModel();if(i){i.off("drag").off("dragend");var a=o.get("draggable");a&&i.on("drag",(function(o){switch(d){case"force":h.warmUp(),!r._layouting&&r._startForceLayoutIteration(h,f),h.setFixed(n),u.setItemLayout(n,[i.x,i.y]);break;case"circular":u.setItemLayout(n,[i.x,i.y]),e.setLayout({fixed:!0},!0),$D(t,"symbolSize",e,[o.offsetX,o.offsetY]),r.updateLayout(t);break;case"none":default:u.setItemLayout(n,[i.x,i.y]),VD(t.getGraph(),t),r.updateLayout(t);break}})).on("dragend",(function(){h&&h.setUnfixed(n)})),i.setDraggable(a&&!!h,!!o.get("cursor"));var s=o.get(["emphasis","focus"]);"adjacency"===s&&(Gs(i).focus=e.getAdjacentDataIndices())}})),u.graph.eachEdge((function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&(Gs(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})}));var p="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),g=u.getLayout("cx"),v=u.getLayout("cy");u.graph.eachNode((function(t){XD(t,p,g,v)})),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,e){var n=this;(function r(){t.step((function(t){n.updateLayout(n._model),(n._layouting=!t)&&(e?n._layoutTimeout=setTimeout(r,16):r())}))})()},e.prototype._updateController=function(t,e,n){var r=this,i=this._controller,o=this._controllerHost,a=this.group;i.setPointerChecker((function(e,r,i){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(r,i)&&!gE(e,n,t)})),TR(t.coordinateSystem)?(i.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(e){hE(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){fE(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),r._updateNodeAndLinkScale(),MR(t.getGraph(),GD(t)),r._lineDraw.updateLayout(),n.updateLabelLayout()}))):i.disable()},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=GD(t);e.eachItemGraphicEl((function(t,e){t&&t.setSymbolScale(n)}))},e.prototype.updateLayout=function(t){MR(t.getGraph(),GD(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(dy),ER=IR;function PR(t){return"_EC_"+t}var jR=function(){function t(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesMap;if(!n[PR(t)]){var r=new LR(t,e);return r.hostGraph=this,this.nodes.push(r),n[PR(t)]=r,r}},t.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},t.prototype.getNodeById=function(t){return this._nodesMap[PR(t)]},t.prototype.addEdge=function(t,e,n){var r=this._nodesMap,i=this._edgesMap;if(v["isNumber"](t)&&(t=this.nodes[t]),v["isNumber"](e)&&(e=this.nodes[e]),t instanceof LR||(t=r[PR(t)]),e instanceof LR||(e=r[PR(e)]),t&&e){var o=t.id+"-"+e.id,a=new DR(t,e,n);return a.hostGraph=this,this._directed&&(t.outEdges.push(a),e.inEdges.push(a)),t.edges.push(a),t!==e&&e.edges.push(a),this.edges.push(a),i[o]=a,a}},t.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},t.prototype.getEdge=function(t,e){t instanceof LR&&(t=t.id),e instanceof LR&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},t.prototype.eachNode=function(t,e){for(var n=this.nodes,r=n.length,i=0;i=0&&t.call(e,n[i],i)},t.prototype.eachEdge=function(t,e){for(var n=this.edges,r=n.length,i=0;i=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&t.call(e,n[i],i)},t.prototype.breadthFirstTraverse=function(t,e,n,r){if(e instanceof LR||(e=this._nodesMap[PR(e)]),e){for(var i="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o=0&&n.node2.dataIndex>=0}));for(i=0,o=r.length;i=0&&this[t][e].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}v["mixin"](LR,RR("hostGraph","data")),v["mixin"](DR,RR("hostGraph","edgeData"));var NR=jR;function BR(t,e,n,r,i){for(var o=new NR(r),a=0;a "+f)),u++)}var d,p=n.get("coordinateSystem");if("cartesian2d"===p||"polar"===p)d=dw(t,n);else{var g=pf.get(p),y=g&&g.dimensions||[];v["indexOf"](y,"value")<0&&y.concat(["value"]);var m=Kx(t,{coordDimensions:y,encodeDefine:n.getEncode()}).dimensions;d=new Yx(m,n),d.initData(t)}var b=new Yx(["value"],n);return b.initData(l,s),i&&i(d,b),jj({mainData:d,struct:o,structAttr:"graph",datas:{node:d,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var FR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return p(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var n=this;function r(){return n._categoriesData}this.legendVisualProvider=new rT(r,r),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(e){t.prototype.mergeDefaultAndTheme.apply(this,arguments),Ai(e,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,e){var n=t.edges||t.links||[],r=t.data||t.nodes||[],i=this;if(r&&n){ND(this);var o=BR(r,n,this,!0,a);return v["each"](o.edges,(function(t){BD(t.node1,t.node2,this,t.dataIndex)}),this),o.data}function a(t,e){t.wrapMethod("getItemModel",(function(t){var e=i._categoriesModels,n=t.getShallow("category"),r=e[n];return r&&(r.parentModel=t.parentModel,t.parentModel=r),t}));var n=Wu.prototype.getModel;function r(t,e){var r=n.call(this,t,e);return r.resolveParentPath=o,r}function o(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",(function(t){return t.resolveParentPath=o,t.getModel=r,t}))}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,e,n){if("edge"===n){var r=this.getData(),i=this.getDataParams(t,n),o=r.graph.getEdgeByIndex(t),a=r.getName(o.node1.dataIndex),s=r.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),pp("nameValue",{name:l.join(" > "),value:i.value,noValue:null==i.value})}var u=Ip({series:this,dataIndex:t,multipleSeries:e});return u},e.prototype._updateCategoriesData=function(){var t=v["map"](this.option.categories||[],(function(t){return null!=t.value?t:v["extend"]({value:0},t)})),e=new Yx(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t)}))},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Hp),zR=FR,VR={type:"graphRoam",event:"graphRoam",update:"none"};function qR(t){t.registerChartView(ER),t.registerSeriesModel(zR),t.registerProcessor(CD),t.registerVisual(kD),t.registerVisual(MD),t.registerLayout(qD),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,KD),t.registerLayout(JD),t.registerCoordinateSystem("graphView",{dimensions:jP.dimensions,create:eR}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},v["noop"]),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},v["noop"]),t.registerAction(VR,(function(t,e,n){e.eachComponent({mainType:"series",query:t},(function(e){var r=e.coordinateSystem,i=$P(r,t,void 0,n);e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom)}))}))}var GR=function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t}(),HR=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return p(e,t),e.prototype.getDefaultShape=function(){return new GR},e.prototype.buildPath=function(t,e){var n=Math.cos,r=Math.sin,i=e.r,o=e.width,a=e.angle,s=e.x-n(a)*o*(o>=i/3?1:2),l=e.y-r(a)*o*(o>=i/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+r(a)*o),t.lineTo(e.x+n(e.angle)*i,e.y+r(e.angle)*i),t.lineTo(e.x-n(a)*o,e.y-r(a)*o),t.lineTo(s,l)},e}(ss),WR=HR;function UR(t,e){var n=t.get("center"),r=e.getWidth(),i=e.getHeight(),o=Math.min(r,i),a=Jr(n[0],e.getWidth()),s=Jr(n[1],e.getHeight()),l=Jr(t.get("radius"),o/2);return{cx:a,cy:s,r:l}}function $R(t,e){var n=null==t?"":t+"";return e&&(Object(v["isString"])(e)?n=e.replace("{value}",n):Object(v["isFunction"])(e)&&(n=e(t))),n}var YR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.render=function(t,e,n){this.group.removeAll();var r=t.get(["axisLine","lineStyle","color"]),i=UR(t,n);this._renderMain(t,e,n,r,i),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,n,r,i){var o=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,u=t.getModel("axisLine"),c=u.get("roundCap"),h=c?lM:zg,f=u.get("show"),d=u.getModel("lineStyle"),p=d.get("width"),g=[s,l];ja(g,!a),s=g[0],l=g[1];for(var v=l-s,y=s,m=0;f&&m=t&&(0===e?0:r[e-1][0])Math.PI/2&&(F+=Math.PI)):"tangential"===B?F=-C-Math.PI/2:Object(v["isNumber"])(B)&&(F=B*Math.PI/180),0===F?h.add(new qs({style:xu(_,{text:L,x:R,y:N,verticalAlign:c<-.8?"top":c>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:D}),silent:!0})):h.add(new qs({style:xu(_,{text:L,x:R,y:N,verticalAlign:"middle",align:"center"},{inheritColor:D}),silent:!0,originX:R,originY:N,rotation:F}))}if(b.get("show")&&E!==x){P=b.get("distance");P=P?P+l:l;for(var z=0;z<=w;z++){u=Math.cos(C),c=Math.sin(C);var V=new ev({shape:{x1:u*(p-P)+f,y1:c*(p-P)+d,x2:u*(p-O-P)+f,y2:c*(p-O-P)+d},silent:!0,style:T});"auto"===T.stroke&&V.setStyle({stroke:r((E+z/w)/x)}),h.add(V),C+=A}C-=A}else C+=k}},e.prototype._renderPointer=function(t,e,n,r,i,o,a,s,l){var u=this.group,c=this._data,h=this._progressEls,f=[],d=t.get(["pointer","show"]),p=t.getModel("progress"),g=p.get("show"),y=t.getData(),m=y.mapDimension("value"),b=+t.get("min"),_=+t.get("max"),x=[b,_],w=[o,a];function S(e,n){var r,o=y.getItemModel(e),a=o.getModel("pointer"),s=Jr(a.get("width"),i.r),l=Jr(a.get("length"),i.r),u=t.get(["pointer","icon"]),c=a.get("offsetCenter"),h=Jr(c[0],i.r),f=Jr(c[1],i.r),d=a.get("keepAspect");return r=u?km(u,h-s/2,f-l,s,l,null,d):new WR({shape:{angle:-Math.PI/2,width:s,r:l,x:h,y:f}}),r.rotation=-(n+Math.PI/2),r.x=i.cx,r.y=i.cy,r}function O(t,e){var n=p.get("roundCap"),r=n?lM:zg,a=p.get("overlap"),u=a?p.get("width"):l/y.count(),c=a?i.r-u:i.r-(t+1)*u,h=a?i.r:i.r-t*u,f=new r({shape:{startAngle:o,endAngle:e,cx:i.cx,cy:i.cy,clockwise:s,r0:c,r:h}});return a&&(f.z2=_-y.get(m,t)%_),f}(g||d)&&(y.diff(c).add((function(e){var n=y.get(m,e);if(d){var r=S(e,o);uu(r,{rotation:-((isNaN(+n)?w[0]:Qr(n,x,w,!0))+Math.PI/2)},t),u.add(r),y.setItemGraphicEl(e,r)}if(g){var i=O(e,o),a=p.get("clip");uu(i,{shape:{endAngle:Qr(n,x,w,a)}},t),u.add(i),Hs(t.seriesIndex,y.dataType,e,i),f[e]=i}})).update((function(e,n){var r=y.get(m,e);if(d){var i=c.getItemGraphicEl(n),a=i?i.rotation:o,s=S(e,a);s.rotation=a,lu(s,{rotation:-((isNaN(+r)?w[0]:Qr(r,x,w,!0))+Math.PI/2)},t),u.add(s),y.setItemGraphicEl(e,s)}if(g){var l=h[n],v=l?l.shape.endAngle:o,b=O(e,v),_=p.get("clip");lu(b,{shape:{endAngle:Qr(r,x,w,_)}},t),u.add(b),Hs(t.seriesIndex,y.dataType,e,b),f[e]=b}})).execute(),y.each((function(t){var e=y.getItemModel(t),n=e.getModel("emphasis"),i=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(d){var s=y.getItemGraphicEl(t),l=y.getItemVisual(t,"style"),u=l.fill;if(s instanceof gs){var c=s.style;s.useStyle(Object(v["extend"])({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(u);s.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",r(Qr(y.get(m,t),x,[0,1],!0))),s.z2EmphasisLift=0,Zl(s,e),$l(s,i,o,a)}if(g){var h=f[t];h.useStyle(y.getItemVisual(t,"style")),h.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),h.z2EmphasisLift=0,Zl(h,e),$l(h,i,o,a)}})),this._progressEls=f)},e.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor"),r=n.get("show");if(r){var i=n.get("size"),o=n.get("icon"),a=n.get("offsetCenter"),s=n.get("keepAspect"),l=km(o,e.cx-i/2+Jr(a[0],e.r),e.cy-i/2+Jr(a[1],e.r),i,i,null,s);l.z2=n.get("showAbove")?1:0,l.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(l)}},e.prototype._renderTitleAndDetail=function(t,e,n,r,i){var o=this,a=t.getData(),s=a.mapDimension("value"),l=+t.get("min"),u=+t.get("max"),c=new Nr,h=[],f=[],d=t.isAnimationEnabled(),p=t.get(["pointer","showAbove"]);a.diff(this._data).add((function(t){h[t]=new qs({silent:!0}),f[t]=new qs({silent:!0})})).update((function(t,e){h[t]=o._titleEls[e],f[t]=o._detailEls[e]})).execute(),a.each((function(e){var n=a.getItemModel(e),o=a.get(s,e),g=new Nr,v=r(Qr(o,[l,u],[0,1],!0)),y=n.getModel("title");if(y.get("show")){var m=y.get("offsetCenter"),b=i.cx+Jr(m[0],i.r),_=i.cy+Jr(m[1],i.r),x=h[e];x.attr({z2:p?0:2,style:xu(y,{x:b,y:_,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:v})}),g.add(x)}var w=n.getModel("detail");if(w.get("show")){var S=w.get("offsetCenter"),O=i.cx+Jr(S[0],i.r),C=i.cy+Jr(S[1],i.r),k=Jr(w.get("width"),i.r),A=Jr(w.get("height"),i.r),M=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:v,T=(x=f[e],w.get("formatter"));x.attr({z2:p?0:2,style:xu(w,{x:O,y:C,text:$R(o,T),width:isNaN(k)?null:k,height:isNaN(A)?null:A,align:"center",verticalAlign:"middle"},{inheritColor:M})}),Eu(x,{normal:w},o,(function(t){return $R(t,T)})),d&&Pu(x,e,a,t,{getFormattedLabel:function(t,e,n,r,i,a){return $R(a?a.interpolatedValue:o,T)}}),g.add(x)}c.add(g)})),this.group.add(c),this._titleEls=h,this._detailEls=f},e.type="gauge",e}(dy),XR=YR,KR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return p(e,t),e.prototype.getInitialData=function(t,e){return eT(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Hp),ZR=KR;function QR(t){t.registerChartView(XR),t.registerSeriesModel(ZR)}var JR=["itemStyle","opacity"],tN=function(t){function e(e,n){var r=t.call(this)||this,i=r,o=new Zg,a=new qs;return i.setTextContent(a),r.setTextGuideLine(o),r.updateData(e,n,!0),r}return p(e,t),e.prototype.updateData=function(t,e,n){var r=this,i=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e),s=o.getModel("emphasis"),l=o.get(JR);l=null==l?1:l,n||pu(r),r.useStyle(t.getItemVisual(e,"style")),r.style.lineJoin="round",n?(r.setShape({points:a.points}),r.style.opacity=0,uu(r,{style:{opacity:l}},i,e)):lu(r,{style:{opacity:l},shape:{points:a.points}},i,e),Zl(r,o),this._updateLabel(t,e),$l(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t,e){var n=this,r=this.getTextGuideLine(),i=n.getTextContent(),o=t.hostModel,a=t.getItemModel(e),s=t.getItemLayout(e),l=s.label,u=t.getItemVisual(e,"style"),c=u.fill;bu(i,_u(a),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:u.opacity,defaultText:t.getName(e)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),n.setTextConfig({local:!0,inside:!!l.inside,insideStroke:c,outsideFill:c});var h=l.linePoints;r.setShape({points:h}),n.textGuideLineConfig={anchor:h?new Pt(h[0][0],h[0][1]):null},lu(i,{style:{x:l.x,y:l.y}},o,e),i.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),JO(n,tC(a),{stroke:c})},e}(Yg),eN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return p(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this._data,o=this.group;r.diff(i).add((function(t){var e=new tN(r,t);r.setItemGraphicEl(t,e),o.add(e)})).update((function(t,e){var n=i.getItemGraphicEl(e);n.updateData(r,t),o.add(n),r.setItemGraphicEl(t,n)})).remove((function(e){var n=i.getItemGraphicEl(e);du(n,t,e)})).execute(),this._data=r},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(dy),nN=eN,rN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new rT(v["bind"](this.getData,this),v["bind"](this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return eT(this,{coordDimensions:["value"],encodeDefaulter:v["curry"](jh,this)})},e.prototype._defaultLabelLine=function(t){Ai(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(e){var n=this.getData(),r=t.prototype.getDataParams.call(this,e),i=n.mapDimension("value"),o=n.getSum(i);return r.percent=o?+(n.get(i,e)/o*100).toFixed(2):0,r.$vars.push("percent"),r},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Hp),iN=rN;function oN(t,e){return ah(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function aN(t,e){for(var n=t.mapDimension("value"),r=t.mapArray(n,(function(t){return t})),i=[],o="ascending"===e,a=0,s=t.count();aTN)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&PN(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),r=n.behavior;"jump"===r&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===r?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===r?null:{duration:0}})}}};function PN(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}var jN=IN,LN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var e=this.option;t&&v["merge"](e,t,!0),this._initDimensions()},e.prototype.contains=function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){v["each"](["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],n=v["filter"](this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this);v["each"](n,(function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)}))},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(vh),DN=LN,RN=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return a.type=i||"value",a.axisIndex=o,a}return p(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(kO),NN=RN;function BN(t,e,n,r,i,o){t=t||0;var a=n[1]-n[0];if(null!=i&&(i=zN(i,[0,a])),null!=o&&(o=Math.max(o,null!=i?i:0)),"all"===r){var s=Math.abs(e[1]-e[0]);s=zN(s,[0,a]),i=o=zN(s,[i,o]),r=0}e[0]=zN(e[0],n),e[1]=zN(e[1],n);var l=FN(e,r);e[r]+=t;var u,c=i||0,h=n.slice();return l.sign<0?h[0]+=c:h[1]-=c,e[r]=zN(e[r],h),u=FN(e,r),null!=i&&(u.sign!==l.sign||u.spano&&(e[1-r]=e[r]+u.sign*o),e}function FN(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function zN(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var VN=v["each"],qN=Math.min,GN=Math.max,HN=Math.floor,WN=Math.ceil,UN=ti,$N=Math.PI,YN=function(){function t(t,e,n){this.type="parallel",this._axesMap=v["createHashMap"](),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var r=t.dimensions,i=t.parallelAxisIndex;VN(r,(function(t,n){var r=i[n],o=e.getComponent("parallelAxis",r),a=this._axesMap.set(t,new NN(t,MS(o),[0,0],o.get("type"),r)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this}),this)},t.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},t.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,r=e.layoutBase,i=e.pixelDimIndex,o=t[1-i],a=t[i];return o>=n&&o<=n+e.axisLength&&a>=r&&a<=r+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(t,e){e.eachSeries((function(n){if(t.contains(n,e)){var r=n.getData();VN(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(r,r.mapDimension(t)),AS(e.scale,e.model)}),this)}}),this)},t.prototype.resize=function(t,e){this._rect=ah(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var t,e=this._model,n=this._rect,r=["x","y"],i=["width","height"],o=e.get("layout"),a="horizontal"===o?0:1,s=n[i[a]],l=[0,s],u=this.dimensions.length,c=XN(e.get("axisExpandWidth"),l),h=XN(e.get("axisExpandCount")||0,[0,u]),f=e.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,d=e.get("axisExpandWindow");if(d)t=XN(d[1]-d[0],l),d[1]=d[0]+t;else{t=XN(c*(h-1),l);var p=e.get("axisExpandCenter")||HN(u/2);d=[c*p-t/2],d[1]=d[0]+t}var g=(s-t)/(u-h);g<3&&(g=0);var v=[HN(UN(d[0]/c,1))+1,WN(UN(d[1]/c,1))-1],y=g/c*d[0];return{layout:o,pixelDimIndex:a,layoutBase:n[r[a]],layoutLength:s,axisBase:n[r[1-a]],axisLength:n[i[1-a]],axisExpandable:f,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:d,axisCount:u,winInnerIndices:v,axisExpandWindow0Pos:y}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,r=this._makeLayoutInfo(),i=r.layout;e.each((function(t){var e=[0,r.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])})),VN(n,(function(e,n){var o=(r.axisExpandable?ZN:KN)(n,r),a={horizontal:{x:o.position,y:r.axisLength},vertical:{x:0,y:o.position}},s={horizontal:$N/2,vertical:0},l=[a[i].x+t.x,a[i].y+t.y],u=s[i],c=wt();At(c,c,u),kt(c,c,l),this._axesLayout[e]={position:l,rotation:u,transform:c,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},t.prototype.getAxis=function(t){return this._axesMap.get(t)},t.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},t.prototype.eachActiveState=function(t,e,n,r){null==n&&(n=0),null==r&&(r=t.count());var i=this._axesMap,o=this.dimensions,a=[],s=[];v["each"](o,(function(e){a.push(t.mapDimension(e)),s.push(i.get(e).model)}));for(var l=this.hasAxisBrushed(),u=n;ui*(1-c[0])?(l="jump",a=s-i*(1-c[2])):(a=s-i*c[1])>=0&&(a=s-i*(1-c[1]))<=0&&(a=0),a*=e.axisExpandWidth/u,a?BN(a,r,o,"all"):l="none";else{var f=r[1]-r[0],d=o[1]*s/f;r=[GN(0,d-f/2)],r[1]=qN(o[1],r[0]+f),r[0]=r[1]-f}return{axisExpandWindow:r,behavior:l}},t}();function XN(t,e){return qN(GN(t,e[0]),e[1])}function KN(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function ZN(t,e){var n,r,i=e.layoutLength,o=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,c=!1;return t=0;n--)ei(e[n])},e.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var r=0,i=e.length;ruB}function MB(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function TB(t,e,n,r){var i=new Nr;return i.add(new Os({name:"main",style:jB(n),silent:!0,draggable:!0,cursor:"move",drift:Object(v["curry"])(BB,t,e,i,["n","s","w","e"]),ondragend:Object(v["curry"])(kB,e,{isEnd:!0})})),Object(v["each"])(r,(function(n){i.add(new Os({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(v["curry"])(BB,t,e,i,n),ondragend:Object(v["curry"])(kB,e,{isEnd:!0})}))})),i}function IB(t,e,n,r){var i=r.brushStyle.lineWidth||0,o=aB(i,cB),a=n[0][0],s=n[1][0],l=a-i/2,u=s-i/2,c=n[0][1],h=n[1][1],f=c-o+i/2,d=h-o+i/2,p=c-a,g=h-s,v=p+i,y=g+i;PB(t,e,"main",a,s,p,g),r.transformable&&(PB(t,e,"w",l,u,o,y),PB(t,e,"e",f,u,o,y),PB(t,e,"n",l,u,v,o),PB(t,e,"s",l,d,v,o),PB(t,e,"nw",l,u,o,o),PB(t,e,"ne",f,u,o,o),PB(t,e,"sw",l,d,o,o),PB(t,e,"se",f,d,o,o))}function EB(t,e){var n=e.__brushOption,r=n.transformable,i=e.childAt(0);i.useStyle(jB(n)),i.attr({silent:!r,cursor:r?"move":"default"}),Object(v["each"])([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var i=e.childOfName(n.join("")),o=1===n.length?RB(t,n[0]):NB(t,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?dB[o]+"-resize":null})}))}function PB(t,e,n,r,i,o,a){var s=e.childOfName(n);s&&s.setShape(qB(VB(t,e,[[r,i],[r+o,i+a]])))}function jB(t){return Object(v["defaults"])({strokeNoScale:!0},t.brushStyle)}function LB(t,e,n,r){var i=[oB(t,n),oB(e,r)],o=[aB(t,n),aB(e,r)];return[[i[0],o[0]],[i[1],o[1]]]}function DB(t){return Gv(t.group)}function RB(t,e){var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},i=Wv(n[e],DB(t));return r[i]}function NB(t,e){var n=[RB(t,e[0]),RB(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function BB(t,e,n,r,i,o){var a=n.__brushOption,s=t.toRectRange(a.range),l=zB(e,i,o);Object(v["each"])(r,(function(t){var e=fB[t];s[e[0]][e[1]]+=l[e[0]]})),a.range=t.fromRectRange(LB(s[0][0],s[1][0],s[0][1],s[1][1])),xB(e,n),kB(e,{isEnd:!1})}function FB(t,e,n,r){var i=e.__brushOption.range,o=zB(t,n,r);Object(v["each"])(i,(function(t){t[0]+=o[0],t[1]+=o[1]})),xB(t,e),kB(t,{isEnd:!1})}function zB(t,e,n){var r=t.group,i=r.transformCoordToLocal(e,n),o=r.transformCoordToLocal(0,0);return[i[0]-o[0],i[1]-o[1]]}function VB(t,e,n){var r=OB(t,e);return r&&r!==iB?r.clipPath(n,t._transform):Object(v["clone"])(n)}function qB(t){var e=oB(t[0][0],t[1][0]),n=oB(t[0][1],t[1][1]),r=aB(t[0][0],t[1][0]),i=aB(t[0][1],t[1][1]);return{x:e,y:n,width:r-e,height:i-n}}function GB(t,e,n){if(t._brushType&&!KB(t,e.offsetX,e.offsetY)){var r=t._zr,i=t._covers,o=SB(t,e,n);if(!t._dragging)for(var a=0;ar.getWidth()||n<0||n>r.getHeight()}var ZB={lineX:QB(0),lineY:QB(1),rect:{createCover:function(t,e){function n(t){return t}return TB({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=MB(t);return LB(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,r){IB(t,e,n,r)},updateCommon:EB,contain:WB},polygon:{createCover:function(t,e){var n=new Nr;return n.add(new Zg({name:"main",style:jB(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new Yg({name:"main",draggable:!0,drift:Object(v["curry"])(FB,t,e),ondragend:Object(v["curry"])(kB,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,r){e.childAt(0).setShape({points:VB(t,e,n)})},updateCommon:EB,contain:WB}};function QB(t){return{createCover:function(e,n){return TB({toRectRange:function(e){var n=[e,[0,100]];return t&&n.reverse(),n},fromRectRange:function(e){return e[t]}},e,n,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var n=MB(e),r=oB(n[0][t],n[1][t]),i=aB(n[0][t],n[1][t]);return[r,i]},updateCoverShape:function(e,n,r,i){var o,a=OB(e,n);if(a!==iB&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(t);else{var s=e._zr;o=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[r,o];t&&l.reverse(),IB(e,n,l,i)},updateCommon:EB,contain:WB}}var JB=vB;function tF(t){return t=rF(t),function(e){return Xv(e,t)}}function eF(t,e){return t=rF(t),function(n){var r=null!=e?e:n,i=r?t.width:t.height,o=r?t.x:t.y;return[o,o+(i||0)]}}function nF(t,e,n){var r=rF(t);return function(t,i){return r.contain(i[0],i[1])&&!gE(t,e,n)}}function rF(t){return qt.create(t)}var iF=["axisLine","axisTickLabel","axisName"],oF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.init=function(e,n){t.prototype.init.apply(this,arguments),(this._brushController=new JB(n.getZr())).on("brush",v["bind"](this._onBrush,this))},e.prototype.render=function(t,e,n,r){if(!aF(t,e,r)){this.axisModel=t,this.api=n,this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new Nr,this.group.add(this._axisGroup),t.get("show")){var o=lF(t,e),a=o.coordinateSystem,s=t.getAreaSelectStyle(),l=s.width,u=t.axis.dim,c=a.getAxisLayout(u),h=v["extend"]({strokeContainThreshold:l},c),f=new aI(t,h);v["each"](iF,f.add,f),this._axisGroup.add(f.getGroup()),this._refreshBrushController(h,s,t,o,l,n),Yv(i,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,e,n,r,i,o){var a=n.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),u=qt.create({x:a[0],y:-i/2,width:s,height:i});u.x-=l,u.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:tF(u),isTargetByCursor:nF(u,o,r),getLinearBrushOtherExtent:eF(u,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(sF(n))},e.prototype._onBrush=function(t){var e=t.areas,n=this.axisModel,r=n.axis,i=v["map"](e,(function(t){return[r.coordToData(t.range[0],!0),r.coordToData(t.range[1],!0)]}));(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:i})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Up);function aF(t,e,n){return n&&"axisAreaSelect"===n.type&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}function sF(t){var e=t.axis;return v["map"](t.activeIntervals,(function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}}))}function lF(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}var uF=oF,cF={type:"axisAreaSelect",event:"axisAreaSelected"};function hF(t){t.registerAction(cF,(function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},(function(e){e.axis.model.setActiveIntervals(t.intervals)}))})),t.registerAction("parallelAxisExpand",(function(t,e){e.eachComponent({mainType:"parallel",query:t},(function(e){e.setAxisExpand(t)}))}))}var fF={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function dF(t){t.registerComponentView(jN),t.registerComponentModel(DN),t.registerCoordinateSystem("parallel",eB),t.registerPreprocessor(kN),t.registerComponentModel(rB),t.registerComponentView(uF),AT(t,"parallel",rB,fF),hF(t)}function pF(t){px(dF),t.registerChartView(mN),t.registerSeriesModel(wN),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,CN)}var gF=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return t}(),vF=function(t){function e(e){return t.call(this,e)||this}return p(e,t),e.prototype.getDefaultShape=function(){return new gF},e.prototype.buildPath=function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},e.prototype.highlight=function(){Ml(this)},e.prototype.downplay=function(){Tl(this)},e}(ss),yF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._focusAdjacencyDisabled=!1,n}return p(e,t),e.prototype.render=function(t,e,n){var r=this,i=t.getGraph(),o=this.group,a=t.layoutInfo,s=a.width,l=a.height,u=t.getData(),c=t.getData("edge"),h=t.get("orient");this._model=t,o.removeAll(),o.x=a.x,o.y=a.y,i.eachEdge((function(e){var n=new vF,r=Gs(n);r.dataIndex=e.dataIndex,r.seriesIndex=t.seriesIndex,r.dataType="edge";var i,a,u,f,d,p,g,y,m=e.getModel(),b=m.getModel("lineStyle"),_=b.get("curveness"),x=e.node1.getLayout(),w=e.node1.getModel(),S=w.get("localX"),O=w.get("localY"),C=e.node2.getLayout(),k=e.node2.getModel(),A=k.get("localX"),M=k.get("localY"),T=e.getLayout();switch(n.shape.extent=Math.max(1,T.dy),n.shape.orient=h,"vertical"===h?(i=(null!=S?S*s:x.x)+T.sy,a=(null!=O?O*l:x.y)+x.dy,u=(null!=A?A*s:C.x)+T.ty,f=null!=M?M*l:C.y,d=i,p=a*(1-_)+f*_,g=u,y=a*_+f*(1-_)):(i=(null!=S?S*s:x.x)+x.dx,a=(null!=O?O*l:x.y)+T.sy,u=null!=A?A*s:C.x,f=(null!=M?M*l:C.y)+T.ty,d=i*(1-_)+u*_,p=a,g=i*_+u*(1-_),y=f),n.setShape({x1:i,y1:a,x2:u,y2:f,cpx1:d,cpy1:p,cpx2:g,cpy2:y}),n.useStyle(b.getItemStyle()),n.style.fill){case"source":n.style.fill=e.node1.getVisual("color"),n.style.decal=e.node1.getVisual("style").decal;break;case"target":n.style.fill=e.node2.getVisual("color"),n.style.decal=e.node2.getVisual("style").decal;break;case"gradient":var I=e.node1.getVisual("color"),E=e.node2.getVisual("color");Object(v["isString"])(I)&&Object(v["isString"])(E)&&(n.style.fill=new gv(0,0,+("horizontal"===h),+("vertical"===h),[{color:I,offset:0},{color:E,offset:1}]))}var P=m.getModel("emphasis");Zl(n,m,"lineStyle",(function(t){return t.getItemStyle()})),o.add(n),c.setItemGraphicEl(e.dataIndex,n);var j=P.get("focus");$l(n,"adjacency"===j?e.getAdjacentDataIndices():j,P.get("blurScope"),P.get("disabled")),Gs(n).dataType="edge"})),i.eachNode((function(e){var n=e.getLayout(),r=e.getModel(),i=r.get("localX"),a=r.get("localY"),c=r.getModel("emphasis"),h=new Os({shape:{x:null!=i?i*s:n.x,y:null!=a?a*l:n.y,width:n.dx,height:n.dy},style:r.getModel("itemStyle").getItemStyle(),z2:10});bu(h,_u(r),{labelFetcher:t,labelDataIndex:e.dataIndex,defaultText:e.id}),h.disableLabelAnimation=!0,h.setStyle("fill",e.getVisual("color")),h.setStyle("decal",e.getVisual("style").decal),Zl(h,r),o.add(h),u.setItemGraphicEl(e.dataIndex,h),Gs(h).dataType="node";var f=c.get("focus");$l(h,"adjacency"===f?e.getAdjacentDataIndices():f,c.get("blurScope"),c.get("disabled"))})),u.eachItemGraphicEl((function(e,i){var o=u.getItemModel(i);o.get("draggable")&&(e.drift=function(e,o){r._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:u.getRawIndex(i),localX:this.shape.x/s,localY:this.shape.y/l})},e.ondragend=function(){r._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor="move")})),!this._data&&t.isAnimationEnabled()&&o.setClipPath(mF(o.getBoundingRect(),t,(function(){o.removeClipPath()}))),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(dy);function mF(t,e,n){var r=new Os({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return uu(r,{shape:{width:t.width+20}},e,n),r}var bF=yF,_F=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.getInitialData=function(t,e){var n=t.edges||t.links,r=t.data||t.nodes,i=t.levels;this.levelModels=[];for(var o=this.levelModels,a=0;a=0&&(o[i[a].depth]=new Wu(i[a],this,e));if(r&&n){var s=BR(r,n,this,!0,l);return s.data}function l(t,e){t.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,r=n.getData().getItemLayout(e);if(r){var i=r.depth,o=n.levelModels[i];o&&(t.parentModel=o)}return t})),e.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,r=n.getGraph().getEdgeByIndex(e),i=r.node1.getLayout();if(i){var o=i.depth,a=n.levelModels[o];a&&(t.parentModel=a)}return t}))}},e.prototype.setNodePosition=function(t,e){var n=this.option.data||this.option.nodes,r=n[t];r.localX=e[0],r.localY=e[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,n){function r(t){return isNaN(t)||null==t}if("edge"===n){var i=this.getDataParams(t,n),o=i.data,a=i.value,s=o.source+" -- "+o.target;return pp("nameValue",{name:s,value:a,noValue:r(a)})}var l=this.getGraph().getNodeByIndex(t),u=l.getLayout().value,c=this.getDataParams(t,n).data.name;return pp("nameValue",{name:null!=c?c+"":null,value:u,noValue:r(u)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(e,n){var r=t.prototype.getDataParams.call(this,e,n);if(null==r.value&&"node"===n){var i=this.getGraph().getNodeByIndex(e),o=i.getLayout().value;r.value=o}return r},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(Hp),xF=_F;function wF(t,e){t.eachSeriesByType("sankey",(function(t){var n=t.get("nodeWidth"),r=t.get("nodeGap"),i=SF(t,e);t.layoutInfo=i;var o=i.width,a=i.height,s=t.getGraph(),l=s.nodes,u=s.edges;CF(l);var c=v["filter"](l,(function(t){return 0===t.getLayout().value})),h=0!==c.length?0:t.get("layoutIterations"),f=t.get("orient"),d=t.get("nodeAlign");OF(l,u,n,r,o,a,h,f,d)}))}function SF(t,e){return ah(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function OF(t,e,n,r,i,o,a,s,l){kF(t,e,n,i,o,s,l),EF(t,e,o,i,r,a,s),HF(t,s)}function CF(t){v["each"](t,(function(t){var e=qF(t.outEdges,VF),n=qF(t.inEdges,VF),r=t.getValue()||0,i=Math.max(e,n,r);t.setLayout({value:i},!0)}))}function kF(t,e,n,r,i,o,a){for(var s=[],l=[],u=[],c=[],h=0,f=0;f=0;y&&v.depth>d&&(d=v.depth),g.setLayout({depth:y?v.depth:h},!0),"vertical"===o?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var m=0;mh-1?d:h-1;a&&"left"!==a&&MF(t,a,o,S);var O="vertical"===o?(i-n)/S:(r-n)/S;IF(t,O,o)}function AF(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function MF(t,e,n,r){if("right"===e){var i=[],o=t,a=0;while(o.length){for(var s=0;s0;o--)l*=.99,DF(s,l,a),LF(s,i,n,r,a),GF(s,l,a),LF(s,i,n,r,a)}function PF(t,e){var n=[],r="vertical"===e?"y":"x",i=io(t,(function(t){return t.getLayout()[r]}));return i.keys.sort((function(t,e){return t-e})),v["each"](i.keys,(function(t){n.push(i.buckets.get(t))})),n}function jF(t,e,n,r,i,o){var a=1/0;v["each"](t,(function(t){var e=t.length,s=0;v["each"](t,(function(t){s+=t.getLayout().value}));var l="vertical"===o?(r-(e-1)*i)/s:(n-(e-1)*i)/s;l0&&(a=s.getLayout()[o]+l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]+s.getLayout()[h]+e;var d="vertical"===i?r:n;if(l=u-e-d,l>0){a=s.getLayout()[o]-l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a;for(f=c-2;f>=0;--f)s=t[f],l=s.getLayout()[o]+s.getLayout()[h]+e-u,l>0&&(a=s.getLayout()[o]-l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]}}))}function DF(t,e,n){v["each"](t.slice().reverse(),(function(t){v["each"](t,(function(t){if(t.outEdges.length){var r=qF(t.outEdges,RF,n)/qF(t.outEdges,VF);if(isNaN(r)){var i=t.outEdges.length;r=i?qF(t.outEdges,NF,n)/i:0}if("vertical"===n){var o=t.getLayout().x+(r-zF(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(r-zF(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function RF(t,e){return zF(t.node2,e)*t.getValue()}function NF(t,e){return zF(t.node2,e)}function BF(t,e){return zF(t.node1,e)*t.getValue()}function FF(t,e){return zF(t.node1,e)}function zF(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function VF(t){return t.getValue()}function qF(t,e,n){var r=0,i=t.length,o=-1;while(++oi&&(i=e)})),v["each"](n,(function(e){var n=new UL({type:"color",mappingMethod:"linear",dataExtent:[r,i],visual:t.get("color")}),o=n.mapValueToVisual(e.getLayout().value),a=e.getModel().get(["itemStyle","color"]);null!=a?(e.setVisual("color",a),e.setVisual("style",{fill:a})):(e.setVisual("color",o),e.setVisual("style",{fill:o}))}))}}))}function UF(t){t.registerChartView(bF),t.registerSeriesModel(xF),t.registerLayout(wF),t.registerVisual(WF),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))}))}var $F=function(){function t(){}return t.prototype.getInitialData=function(t,e){var n,r,i=e.getComponent("xAxis",this.get("xAxisIndex")),o=e.getComponent("yAxis",this.get("yAxisIndex")),a=i.get("type"),s=o.get("type");"category"===a?(t.layout="horizontal",n=i.getOrdinalMeta(),r=!0):"category"===s?(t.layout="vertical",n=o.getOrdinalMeta(),r=!0):t.layout=t.layout||"horizontal";var l=["x","y"],u="horizontal"===t.layout?0:1,c=this._baseAxisDim=l[u],h=l[1-u],f=[i,o],d=f[u].get("type"),p=f[1-u].get("type"),g=t.data;if(g&&r){var y=[];v["each"](g,(function(t,e){var n;v["isArray"](t)?(n=t.slice(),t.unshift(e)):v["isArray"](t.value)?(n=v["extend"]({},t),n.value=n.value.slice(),t.value.unshift(e)):n=t,y.push(n)})),t.data=y}var m=this.defaultValueDimensions,b=[{name:c,type:wx(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:wx(p),dimsDef:m.slice()}];return eT(this,{coordDimensions:b,dimensionsCount:m.length+1,encodeDefaulter:v["curry"](Ph,b,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),YF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return p(e,t),e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(Hp);Object(v["mixin"])(YF,$F,!0);var XF=YF,KF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this.group,o=this._data;this._data||i.removeAll();var a="horizontal"===t.get("layout")?1:0;r.diff(o).add((function(t){if(r.hasValue(t)){var e=r.getItemLayout(t),n=JF(e,r,t,a,!0);r.setItemGraphicEl(t,n),i.add(n)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(r.hasValue(t)){var s=r.getItemLayout(t);n?(pu(n),tz(s,n,r,t)):n=JF(s,r,t,a),i.add(n),r.setItemGraphicEl(t,n)}else i.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&i.remove(e)})).execute(),this._data=r},e.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(t){t&&e.remove(t)}))},e.type="boxplot",e}(dy),ZF=function(){function t(){}return t}(),QF=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return p(e,t),e.prototype.getDefaultShape=function(){return new ZF},e.prototype.buildPath=function(t,e){var n=e.points,r=0;for(t.moveTo(n[r][0],n[r][1]),r++;r<4;r++)t.lineTo(n[r][0],n[r][1]);for(t.closePath();rg){var x=[m,_];r.push(x)}}}return{boxData:n,outliers:r}}var cz={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==wh){var n="";0,Qh(n)}var r=uz(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:r.boxData},{data:r.outliers}]}};function hz(t){t.registerSeriesModel(XF),t.registerChartView(nz),t.registerVisual(rz),t.registerLayout(oz),t.registerTransform(cz)}var fz=["color","borderColor"],dz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.render=function(t,e,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,n,r){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},e.prototype.eachRendered=function(t){iy(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t){var e=t.getData(),n=this._data,r=this.group,i=e.getLayout("isSimpleBox"),o=t.get("clip",!0),a=t.coordinateSystem,s=a.getArea&&a.getArea();this._data||r.removeAll(),e.diff(n).add((function(n){if(e.hasValue(n)){var a=e.getItemLayout(n);if(o&&yz(s,a))return;var l=vz(a,n,!0);uu(l,{shape:{points:a.ends}},t,n),mz(l,e,n,i),r.add(l),e.setItemGraphicEl(n,l)}})).update((function(a,l){var u=n.getItemGraphicEl(l);if(e.hasValue(a)){var c=e.getItemLayout(a);o&&yz(s,c)?r.remove(u):(u?(lu(u,{shape:{points:c.ends}},t,a),pu(u)):u=vz(c,a),mz(u,e,a,i),r.add(u),e.setItemGraphicEl(a,u))}else r.remove(u)})).remove((function(t){var e=n.getItemGraphicEl(t);e&&r.remove(e)})).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),wz(t,this.group);var e=t.get("clip",!0)?IA(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,e){var n,r=e.getData(),i=r.getLayout("isSimpleBox");while(null!=(n=t.next())){var o=r.getItemLayout(n),a=vz(o,n);mz(a,r,n,i),a.incremental=!0,this.group.add(a),this._progressiveEls.push(a)}},e.prototype._incrementalRenderLarge=function(t,e){wz(e,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(dy),pz=function(){function t(){}return t}(),gz=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return p(e,t),e.prototype.getDefaultShape=function(){return new pz},e.prototype.buildPath=function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(ss);function vz(t,e,n){var r=t.ends;return new gz({shape:{points:n?bz(r,t):r},z2:100})}function yz(t,e){for(var n=!0,r=0;r0?"borderColor":"borderColor0"])||n.get(["itemStyle",t>0?"color":"color0"]),o=n.getModel("itemStyle").getItemStyle(fz);e.useStyle(o),e.style.fill=null,e.style.stroke=i}var Oz=dz,Cz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return p(e,t),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,e,n){var r=e.getItemLayout(t);return r&&n.rect(r.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(Hp);Object(v["mixin"])(Cz,$F,!0);var kz=Cz;function Az(t){t&&v["isArray"](t.series)&&v["each"](t.series,(function(t){v["isObject"](t)&&"k"===t.type&&(t.type="candlestick")}))}var Mz=["itemStyle","borderColor"],Tz=["itemStyle","borderColor0"],Iz=["itemStyle","color"],Ez=["itemStyle","color0"],Pz={seriesType:"candlestick",plan:$p(),performRawSeries:!0,reset:function(t,e){function n(t,e){return e.get(t>0?Iz:Ez)}function r(t,e){return e.get(t>0?Mz:Tz)}if(!e.isSeriesFiltered(t)){var i=t.pipelineContext.large;return!i&&{progress:function(t,e){var i;while(null!=(i=t.next())){var o=e.getItemModel(i),a=e.getItemLayout(i).sign,s=o.getItemStyle();s.fill=n(a,o),s.stroke=r(a,o)||s.fill;var l=e.ensureUniqueItemVisual(i,"style");Object(v["extend"])(l,s)}}}}}},jz=Pz,Lz={seriesType:"candlestick",plan:$p(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),r=Rz(t,n),i=0,o=1,a=["x","y"],s=n.getDimensionIndex(n.mapDimension(a[i])),l=Object(v["map"])(n.mapDimensionsAll(a[o]),n.getDimensionIndex,n),u=l[0],c=l[1],h=l[2],f=l[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),!(s<0||l.length<4))return{progress:t.pipelineContext.large?p:d};function d(t,n){var a,l=n.getStore();while(null!=(a=t.next())){var d=l.get(s,a),p=l.get(u,a),g=l.get(c,a),v=l.get(h,a),y=l.get(f,a),m=Math.min(p,g),b=Math.max(p,g),_=C(m,d),x=C(b,d),w=C(v,d),S=C(y,d),O=[];k(O,x,0),k(O,_,1),O.push(M(S),M(x),M(w),M(_)),n.setItemLayout(a,{sign:Dz(l,a,p,g,c),initBaseline:p>g?x[o]:_[o],ends:O,brushRect:A(v,y,d)})}function C(t,n){var r=[];return r[i]=n,r[o]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(r)}function k(t,e,n){var o=e.slice(),a=e.slice();o[i]=qv(o[i]+r/2,1,!1),a[i]=qv(a[i]-r/2,1,!0),n?t.push(o,a):t.push(a,o)}function A(t,e,n){var a=C(t,n),s=C(e,n);return a[i]-=r/2,s[i]-=r/2,{x:a[0],y:a[1],width:o?r:s[0]-a[0],height:o?s[1]-a[1]:r}}function M(t){return t[i]=qv(t[i],1),t}}function p(t,n){var r,a,l=Rw(4*t.count),d=0,p=[],g=[],v=n.getStore();while(null!=(a=t.next())){var y=v.get(s,a),m=v.get(u,a),b=v.get(c,a),_=v.get(h,a),x=v.get(f,a);isNaN(y)||isNaN(_)||isNaN(x)?(l[d++]=NaN,d+=3):(l[d++]=Dz(v,a,m,b,c),p[i]=y,p[o]=_,r=e.dataToPoint(p,null,g),l[d++]=r?r[0]:NaN,l[d++]=r?r[1]:NaN,p[o]=x,r=e.dataToPoint(p,null,g),l[d++]=r?r[1]:NaN)}n.setLayout("largePoints",l)}}};function Dz(t,e,n,r,i){var o;return o=n>r?-1:n0?t.get(i,e-1)<=r?1:-1:1,o}function Rz(t,e){var n,r=t.getBaseAxis(),i="category"===r.type?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/e.count()),o=Jr(Object(v["retrieve2"])(t.get("barMaxWidth"),i),i),a=Jr(Object(v["retrieve2"])(t.get("barMinWidth"),1),i),s=t.get("barWidth");return null!=s?Jr(s,i):Math.max(Math.min(i/2,o),a)}var Nz=Lz;function Bz(t){t.registerChartView(Oz),t.registerSeriesModel(kz),t.registerPreprocessor(Az),t.registerVisual(jz),t.registerLayout(Nz)}function Fz(t,e){var n=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})}))}var zz=function(t){function e(e,n){var r=t.call(this)||this,i=new uA(e,n),o=new Nr;return r.add(i),r.add(o),r.updateData(e,n),r}return p(e,t),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,r=t.rippleNumber,i=this.childAt(1),o=0;o0&&(o=this._getLineLength(r)/l*1e3),o!==this._period||a!==this._loop||s!==this._roundTrip){r.stopAnimation();var c=void 0;c=v["isFunction"](u)?u(n):u,r.__t>0&&(c=-o*r.__t),this._animateSymbol(r,o,c,a,s)}this._period=o,this._loop=a,this._roundTrip=s}},e.prototype._animateSymbol=function(t,e,n,r,i){if(e>0){t.__t=0;var o=this,a=t.animate("",r).when(i?2*e:e,{__t:i?2:1}).delay(n).during((function(){o._updateSymbolPosition(t)}));r||a.done((function(){o.remove(t)})),a.start()}},e.prototype._getLineLength=function(t){return L(t.__p1,t.__cp1)+L(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},e.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,r=t.__cp1,i=t.__t<1?t.__t:2-t.__t,o=[t.x,t.y],a=o.slice(),s=Ve,l=qe;o[0]=s(e[0],r[0],n[0],i),o[1]=s(e[1],r[1],n[1],i);var u=t.__t<1?l(e[0],r[0],n[0],i):l(n[0],r[0],e[0],1-i),c=t.__t<1?l(e[1],r[1],n[1],i):l(n[1],r[1],e[1],1-i);t.rotation=-Math.atan2(c,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT=0;o--)if(r[o]<=e)break;o=Math.min(o,i-2)}else{for(o=a;oe)break;o=Math.min(o-1,i-2)}var l=(e-r[o])/(r[o+1]-r[o]),u=n[o],c=n[o+1];t.x=u[0]*(1-l)+l*c[0],t.y=u[1]*(1-l)+l*c[1];var h=t.__t<1?c[0]-u[0]:u[0]-c[0],f=t.__t<1?c[1]-u[1]:u[1]-c[1];t.rotation=-Math.atan2(f,h)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},e}(Yz),Qz=Zz,Jz=function(){function t(){this.polyline=!1,this.curveness=0,this.segs=[]}return t}(),tV=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return p(e,t),e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Jz},e.prototype.buildPath=function(t,e){var n,r=e.segs,i=e.curveness;if(e.polyline)for(n=this._off;n0){t.moveTo(r[n++],r[n++]);for(var a=1;a0){var h=(s+u)/2-(l-c)*i,f=(l+c)/2-(u-s)*i;t.quadraticCurveTo(h,f,u,c)}else t.lineTo(u,c)}this.incremental&&(this._off=n,this.notClear=!0)},e.prototype.findDataIndex=function(t,e){var n=this.shape,r=n.segs,i=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s0)for(var u=r[s++],c=r[s++],h=1;h0){var p=(u+f)/2-(c-d)*i,g=(c+d)/2-(f-u)*i;if(Ba(u,c,p,g,f,d,o,t,e))return a}else if(Ra(u,c,f,d,o,t,e))return a;a++}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect();if(t=n[0],e=n[1],r.contain(t,e)){var i=this.hoverDataIdx=this.findDataIndex(t,e);return i>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.segs,r=1/0,i=1/0,o=-1/0,a=-1/0,s=0;s0&&(o.dataIndex=n+t.__startIndex)}))},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),nV=eV,rV={seriesType:"lines",plan:$p(),reset:function(t){var e=t.coordinateSystem;if(e){var n=t.get("polyline"),r=t.pipelineContext.large;return{progress:function(i,o){var a=[];if(r){var s=void 0,l=i.end-i.start;if(n){for(var u=0,c=i.start;c0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),i.updateData(r);var u=t.get("clip",!0)&&IA(t.coordinateSystem,!1,t);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var r=t.getData(),i=this._updateLineDraw(r,t);i.incrementalPrepareUpdate(r),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,e,n){var r=t.getData(),i=t.pipelineContext;if(!this._finished||i.large||i.progressiveRender)return{update:!0};var o=iV.reset(t,e,n);o.progress&&o.progress({start:0,end:r.count(),count:r.count()},r),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,e){var n=this._lineDraw,r=this._showEffect(e),i=!!e.get("polyline"),o=e.pipelineContext,a=o.large;return n&&r===this._hasEffet&&i===this._isPolyline&&a===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=a?new nV:new _R(i?r?Qz:Kz:r?Yz:pR),this._hasEffet=r,this._isPolyline=i,this._isLargeDraw=a),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var e=t.getZr(),n="svg"===e.painter.getType();n||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.type="lines",e}(dy),aV=oV,sV="undefined"===typeof Uint32Array?Array:Uint32Array,lV="undefined"===typeof Float64Array?Array:Float64Array;function uV(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=Object(v["map"])(e,(function(t){var e=[t[0].coord,t[1].coord],n={coords:e};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),Object(v["mergeAll"])([n,t[0],t[1]])})))}var cV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return p(e,t),e.prototype.init=function(e){e.data=e.data||[],uV(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(e){if(uV(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=Object(v["concatArray"])(this._flatCoords,e.flatCoords),this._flatCoordsOffset=Object(v["concatArray"])(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var e=this.getData().getItemModel(t),n=e.option instanceof Array?e.option:e.getShallow("coords");return n},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],r=this._flatCoordsOffset[2*t+1],i=0;i ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),e=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&e>0?e+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(Hp),hV=cV;function fV(t){return t instanceof Array||(t=[t,t]),t}var dV={seriesType:"lines",reset:function(t){var e=fV(t.get("symbol")),n=fV(t.get("symbolSize")),r=t.getData();function i(t,e){var n=t.getItemModel(e),r=fV(n.getShallow("symbol",!0)),i=fV(n.getShallow("symbolSize",!0));r[0]&&t.setItemVisual(e,"fromSymbol",r[0]),r[1]&&t.setItemVisual(e,"toSymbol",r[1]),i[0]&&t.setItemVisual(e,"fromSymbolSize",i[0]),i[1]&&t.setItemVisual(e,"toSymbolSize",i[1])}return r.setVisual("fromSymbol",e&&e[0]),r.setVisual("toSymbol",e&&e[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]),{dataEach:r.hasItemOption?i:null}}},pV=dV;function gV(t){t.registerChartView(aV),t.registerSeriesModel(hV),t.registerLayout(iV),t.registerVisual(pV)}var vV=256,yV=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=fr["d"].createCanvas();this.canvas=t}return t.prototype.update=function(t,e,n,r,i,o){var a=this._getBrush(),s=this._getGradient(i,"inRange"),l=this._getGradient(i,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),f=t.length;c.width=e,c.height=n;for(var d=0;d0){var A=o(m)?s:l;m>0&&(m=m*C+S),_[x++]=A[k],_[x++]=A[k+1],_[x++]=A[k+2],_[x++]=A[k+3]*m*256}else x+=4}return h.putImageData(b,0,0),c},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=fr["d"].createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var r=t.getContext("2d");return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor="#000",r.beginPath(),r.arc(-e,e,this.pointSize,0,2*Math.PI,!0),r.closePath(),r.fill(),t},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,r=n[e]||(n[e]=new Uint8ClampedArray(1024)),i=[0,0,0,0],o=0,a=0;a<256;a++)t[e](a/255,!0,i),r[o++]=i[0],r[o++]=i[1],r[o++]=i[2],r[o++]=i[3];return r},t}(),mV=yV;function bV(t,e,n){var r=t[1]-t[0];e=v["map"](e,(function(e){return{interval:[(e.interval[0]-t[0])/r,(e.interval[1]-t[0])/r]}}));var i=e.length,o=0;return function(t){var r;for(r=o;r=0;r--){a=e[r].interval;if(a[0]<=t&&t<=a[1]){o=r;break}}return r>=0&&r=e[0]&&t<=e[1]}}function xV(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var wV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.render=function(t,e,n){var r;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(n){n===t&&(r=e)}))})),this._progressiveEls=null,this.group.removeAll();var i=t.coordinateSystem;"cartesian2d"===i.type||"calendar"===i.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):xV(i)&&this._renderOnGeo(i,t,r,n)},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,n,r){var i=e.coordinateSystem;i&&(xV(i)?this.render(e,n,r):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,r,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){iy(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,e,n,r,i){var o,a,s,l,u=t.coordinateSystem,c=EA(u,"cartesian2d");if(c){var h=u.getAxis("x"),f=u.getAxis("y");0,o=h.getBandWidth()+.5,a=f.getBandWidth()+.5,s=h.scale.getExtent(),l=f.scale.getExtent()}for(var d=this.group,p=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),v=t.getModel(["blur","itemStyle"]).getItemStyle(),y=t.getModel(["select","itemStyle"]).getItemStyle(),m=t.get(["itemStyle","borderRadius"]),b=_u(t),_=t.getModel("emphasis"),x=_.get("focus"),w=_.get("blurScope"),S=_.get("disabled"),O=c?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],C=n;Cs[1]||Tl[1])continue;var I=u.dataToPoint([M,T]);k=new Os({shape:{x:I[0]-o/2,y:I[1]-a/2,width:o,height:a},style:A})}else{if(isNaN(p.get(O[1],C)))continue;k=new Os({z2:1,shape:u.dataToRect([p.get(O[0],C)]).contentShape,style:A})}if(p.hasItemOption){var E=p.getItemModel(C),P=E.getModel("emphasis");g=P.getModel("itemStyle").getItemStyle(),v=E.getModel(["blur","itemStyle"]).getItemStyle(),y=E.getModel(["select","itemStyle"]).getItemStyle(),m=E.get(["itemStyle","borderRadius"]),x=P.get("focus"),w=P.get("blurScope"),S=P.get("disabled"),b=_u(E)}k.shape.r=m;var j=t.getRawValue(C),L="-";j&&null!=j[2]&&(L=j[2]+""),bu(k,b,{labelFetcher:t,labelDataIndex:C,defaultOpacity:A.opacity,defaultText:L}),k.ensureState("emphasis").style=g,k.ensureState("blur").style=v,k.ensureState("select").style=y,$l(k,x,w,S),k.incremental=i,i&&(k.states.emphasis.hoverLayer=!0),d.add(k),p.setItemGraphicEl(C,k),this._progressiveEls&&this._progressiveEls.push(k)}},e.prototype._renderOnGeo=function(t,e,n,r){var i=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=e.getData(),s=this._hmLayer||this._hmLayer||new mV;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var l=t.getViewRect().clone(),u=t.getRoamTransform();l.applyTransform(u);var c=Math.max(l.x,0),h=Math.max(l.y,0),f=Math.min(l.width+l.x,r.getWidth()),d=Math.min(l.height+l.y,r.getHeight()),p=f-c,g=d-h,v=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],y=a.mapArray(v,(function(e,n,r){var i=t.dataToPoint([e,n]);return i[0]-=c,i[1]-=h,i.push(r),i})),m=n.getExtent(),b="visualMap.continuous"===n.type?_V(m,n.option.range):bV(m,n.getPieceList(),n.option.selected);s.update(y,p,g,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:o.color.getColorMapper()},b);var _=new gs({style:{width:p,height:g,x:c,y:h,image:s.canvas},silent:!0});this.group.add(_)},e.type="heatmap",e}(dy),SV=wV,OV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.getInitialData=function(t,e){return dw(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=pf.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(Hp),CV=OV;function kV(t){t.registerChartView(SV),t.registerSeriesModel(CV)}var AV=["itemStyle","borderWidth"],MV=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],TV=new bg,IV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.render=function(t,e,n){var r=this.group,i=t.getData(),o=this._data,a=t.coordinateSystem,s=a.getBaseAxis(),l=s.isHorizontal(),u=a.master.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:a,coordSysExtent:[[u.x,u.x+u.width],[u.y,u.y+u.height]],isHorizontal:l,valueDim:MV[+l],categoryDim:MV[1-+l]};return i.diff(o).add((function(t){if(i.hasValue(t)){var e=qV(i,t),n=EV(i,t,e,c),o=WV(i,c,n);i.setItemGraphicEl(t,o),r.add(o),ZV(o,c,n)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var a=qV(i,t),s=EV(i,t,a,c),l=YV(i,s);n&&l!==n.__pictorialShapeStr&&(r.remove(n),i.setItemGraphicEl(t,null),n=null),n?UV(n,c,s):n=WV(i,c,s,!0),i.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,r.add(n),ZV(n,c,s)}else r.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&$V(o,t,e.__pictorialSymbolMeta.animationModel,e)})).execute(),this._data=i,this.group},e.prototype.remove=function(t,e){var n=this.group,r=this._data;t.get("animation")?r&&r.eachItemGraphicEl((function(e){$V(r,Gs(e).dataIndex,t,e)})):n.removeAll()},e.type="pictorialBar",e}(dy);function EV(t,e,n,r){var i=t.getItemLayout(e),o=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,h=n.isAnimationEnabled(),f={dataIndex:e,layout:i,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:h?n:null,hoverScale:h&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};PV(n,o,i,r,f),LV(t,e,i,o,a,f.boundingLength,f.pxSign,c,r,f),DV(n,f.symbolScale,u,r,f);var d=f.symbolSize,p=Mm(n.get("symbolOffset"),d);return RV(n,d,i,o,a,p,s,f.valueLineWidth,f.boundingLength,f.repeatCutLength,r,f),f}function PV(t,e,n,r,i){var o,a=r.valueDim,s=t.get("symbolBoundingData"),l=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),c=1-+(n[a.wh]<=0);if(v["isArray"](s)){var h=[jV(l,s[0])-u,jV(l,s[1])-u];h[1]0?1:-1}function jV(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function LV(t,e,n,r,i,o,a,s,l,u){var c,h=l.valueDim,f=l.categoryDim,d=Math.abs(n[f.wh]),p=t.getItemVisual(e,"symbolSize");c=v["isArray"](p)?p.slice():null==p?["100%","100%"]:[p,p],c[f.index]=Jr(c[f.index],d),c[h.index]=Jr(c[h.index],r?d:Math.abs(o)),u.symbolSize=c;var g=u.symbolScale=[c[0]/s,c[1]/s];g[h.index]*=(l.isHorizontal?-1:1)*a}function DV(t,e,n,r,i){var o=t.get(AV)||0;o&&(TV.attr({scaleX:e[0],scaleY:e[1],rotation:n}),TV.updateTransform(),o/=TV.getLineScale(),o*=e[r.valueDim.index]),i.valueLineWidth=o||0}function RV(t,e,n,r,i,o,a,s,l,u,c,h){var f=c.categoryDim,d=c.valueDim,p=h.pxSign,g=Math.max(e[d.index]+s,0),y=g;if(r){var m=Math.abs(l),b=v["retrieve"](t.get("symbolMargin"),"15%")+"",_=!1;b.lastIndexOf("!")===b.length-1&&(_=!0,b=b.slice(0,b.length-1));var x=Jr(b,e[d.index]),w=Math.max(g+2*x,0),S=_?0:2*x,O=bi(r),C=O?r:QV((m+S)/w),k=m-C*g;x=k/2/(_?C:Math.max(C-1,1)),w=g+2*x,S=_?0:2*x,O||"fixed"===r||(C=u?QV((Math.abs(u)+S)/w):0),y=C*w-S,h.repeatTimes=C,h.symbolMargin=x}var A=p*(y/2),M=h.pathPosition=[];M[f.index]=n[f.wh]/2,M[d.index]="start"===a?A:"end"===a?l-A:l/2,o&&(M[0]+=o[0],M[1]+=o[1]);var T=h.bundlePosition=[];T[f.index]=n[f.xy],T[d.index]=n[d.xy];var I=h.barRectShape=v["extend"]({},n);I[d.wh]=p*Math.max(Math.abs(n[d.wh]),Math.abs(M[d.index]+A)),I[f.wh]=n[f.wh];var E=h.clipShape={};E[f.xy]=-n[f.xy],E[f.wh]=c.ecSize[f.wh],E[d.xy]=0,E[d.wh]=n[d.wh]}function NV(t){var e=t.symbolPatternSize,n=km(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function BV(t,e,n,r){var i=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,c=0,h=o[e.valueDim.index]+a+2*n.symbolMargin;for(XV(t,(function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=u,c0:r<0)&&(i=u-1-t),e[l.index]=h*(i-u/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function FV(t,e,n,r){var i=t.__pictorialBundle,o=t.__pictorialMainPath;o?KV(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(o=t.__pictorialMainPath=NV(n),i.add(o),KV(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function zV(t,e,n){var r=v["extend"]({},e.barRectShape),i=t.__pictorialBarRect;i?KV(i,null,{shape:r},e,n):(i=t.__pictorialBarRect=new Os({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,t.add(i))}function VV(t,e,n,r){if(n.symbolClip){var i=t.__pictorialClipPath,o=v["extend"]({},n.clipShape),s=e.valueDim,l=n.animationModel,u=n.dataIndex;if(i)lu(i,{shape:o},l,u);else{o[s.wh]=0,i=new Os({shape:o}),t.__pictorialBundle.setClipPath(i),t.__pictorialClipPath=i;var c={};c[s.wh]=n.clipShape[s.wh],a[r?"updateProps":"initProps"](i,{shape:c},l,u)}}}function qV(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=GV,n.isAnimationEnabled=HV,n}function GV(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function HV(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function WV(t,e,n,r){var i=new Nr,o=new Nr;return i.add(o),i.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?BV(i,e,n):FV(i,e,n),zV(i,n,r),VV(i,e,n,r),i.__pictorialShapeStr=YV(t,n),i.__pictorialSymbolMeta=n,i}function UV(t,e,n){var r=n.animationModel,i=n.dataIndex,o=t.__pictorialBundle;lu(o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?BV(t,e,n,!0):FV(t,e,n,!0),zV(t,n,!0),VV(t,e,n,!0)}function $V(t,e,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var o=[];XV(r,(function(t){o.push(t)})),r.__pictorialMainPath&&o.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),v["each"](o,(function(t){hu(t,{scaleX:0,scaleY:0},n,e,(function(){r.parent&&r.parent.remove(r)}))})),t.setItemGraphicEl(e,null)}function YV(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function XV(t,e,n){v["each"](t.__pictorialBundle.children(),(function(r){r!==t.__pictorialBarRect&&e.call(n,r)}))}function KV(t,e,n,r,i,o){e&&t.attr(e),r.symbolClip&&!i?n&&t.attr(n):n&&a[i?"updateProps":"initProps"](t,n,r.animationModel,r.dataIndex,o)}function ZV(t,e,n){var r=n.dataIndex,i=n.itemModel,o=i.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=o.get("focus"),h=o.get("blurScope"),f=o.get("scale");XV(t,(function(t){if(t instanceof gs){var e=t.style;t.useStyle(v["extend"]({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))}else t.useStyle(n.style);var r=t.ensureState("emphasis");r.style=a,f&&(r.scaleX=1.1*t.scaleX,r.scaleY=1.1*t.scaleY),t.ensureState("blur").style=s,t.ensureState("select").style=l,u&&(t.cursor=u),t.z2=n.z2}));var d=e.valueDim.posDesc[+(n.boundingLength>0)],p=t.__pictorialBarRect;bu(p,_u(i),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:oA(e.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:d}),$l(t,c,h,o.get("disabled"))}function QV(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var JV=IV,tq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return p(e,t),e.prototype.getInitialData=function(e){return e.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Ku(rM.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(rM),eq=tq;function nq(t){t.registerChartView(JV),t.registerSeriesModel(eq),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,Object(v["curry"])(Uw,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,$w("pictorialBar"))}var rq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return p(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this,o=this.group,a=t.getLayerSeries(),s=r.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function c(t){return t.name}o.x=0,o.y=l.y+u[0];var h=new mx(this._layersSeries||[],a,c,c),f=[];function d(e,n,s){var l=i._layers;if("remove"!==e){for(var u,c,h=[],d=[],p=a[n].indices,g=0;go&&(o=s),r.push(s)}for(var u=0;uo&&(o=h)}return{y0:i,max:o}}function fq(t){t.registerChartView(oq),t.registerSeriesModel(lq),t.registerLayout(uq),t.registerProcessor(HM("themeRiver"))}var dq=2,pq=4,gq=function(t){function e(e,n,r,i){var o=t.call(this)||this;o.z2=dq,o.textConfig={inside:!0},Gs(o).seriesIndex=n.seriesIndex;var a=new qs({z2:pq,silent:e.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,e,n,r,i),o}return p(e,t),e.prototype.updateData=function(t,e,n,r,i){this.node=e,e.piece=this,n=n||this._seriesModel,r=r||this._ecModel;var o=this;Gs(o).dataIndex=e.dataIndex;var a=e.getModel(),s=a.getModel("emphasis"),l=e.getLayout(),u=v["extend"]({},l);u.label=null;var c=e.getVisual("style");c.lineJoin="bevel";var h=e.getVisual("decal");h&&(c.decal=gb(h,i));var f=ZM(a.getModel("itemStyle"),u,!0);v["extend"](u,f),v["each"](Qs,(function(t){var e=o.ensureState(t),n=a.getModel([t,"itemStyle"]);e.style=n.getItemStyle();var r=ZM(n,u);r&&(e.shape=r)})),t?(o.setShape(u),o.shape.r=l.r0,lu(o,{shape:{r:l.r}},n,e.dataIndex)):(lu(o,{shape:u},n),pu(o)),o.useStyle(c),this._updateLabel(n);var d=a.getShallow("cursor");d&&o.attr("cursor",d),this._seriesModel=n||this._seriesModel,this._ecModel=r||this._ecModel;var p=s.get("focus"),g="ancestor"===p?e.getAncestorsIndices():"descendant"===p?e.getDescendantIndices():p;$l(this,g,s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t){var e=this,n=this.node.getModel(),r=n.getModel("label"),i=this.node.getLayout(),o=i.endAngle-i.startAngle,a=(i.startAngle+i.endAngle)/2,s=Math.cos(a),l=Math.sin(a),u=this,c=u.getTextContent(),h=this.node.dataIndex,f=r.get("minAngle")/180*Math.PI,d=r.get("show")&&!(null!=f&&Math.abs(o)Math.PI/2?"right":"left"):O&&"center"!==O?"left"===O?(b=i.r0+S,a>Math.PI/2&&(O="right")):"right"===O&&(b=i.r-S,a>Math.PI/2&&(O="left")):(b=o===2*Math.PI&&0===i.r0?0:(i.r+i.r0)/2,O="center"),g.style.align=O,g.style.verticalAlign=p(f,"verticalAlign")||"middle",g.x=b*s+i.cx,g.y=b*l+i.cy;var C=p(f,"rotate"),k=0;"radial"===C?(k=-a,k<-Math.PI/2&&(k+=Math.PI)):"tangential"===C?(k=Math.PI/2-a,k>Math.PI/2?k-=Math.PI:k<-Math.PI/2&&(k+=Math.PI)):v["isNumber"](C)&&(k=C*Math.PI/180),g.rotation=k})),c.dirtyStyle()},e}(zg),vq=gq,yq="sunburstRootToNode",mq="sunburstHighlight",bq="sunburstUnhighlight";function _q(t){t.registerAction({type:yq,update:"updateView"},(function(t,e){function n(e,n){var r=Bj(t,[yq],e);if(r){var i=e.getViewRoot();i&&(t.direction=zj(i,r.node)?"rollUp":"drillDown"),e.resetViewRoot(r.node)}}e.eachComponent({mainType:"series",subType:"sunburst",query:t},n)})),t.registerAction({type:mq,update:"none"},(function(t,e,n){function r(e){var n=Bj(t,[mq],e);n&&(t.dataIndex=n.node.dataIndex)}t=Object(v["extend"])({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},r),n.dispatchAction(Object(v["extend"])(t,{type:"highlight"}))})),t.registerAction({type:bq,update:"updateView"},(function(t,e,n){t=Object(v["extend"])({},t),n.dispatchAction(Object(v["extend"])(t,{type:"downplay"}))}))}var xq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.render=function(t,e,n,r){var i=this;this.seriesModel=t,this.api=n,this.ecModel=e;var o=t.getData(),a=o.tree.root,s=t.getViewRoot(),l=this.group,u=t.get("renderLabelForZeroData"),c=[];s.eachNode((function(t){c.push(t)}));var h=this._oldChildren||[];function f(t,e){function n(t){return t.getId()}function r(n,r){var i=null==n?null:t[n],o=null==r?null:e[r];d(i,o)}0===t.length&&0===e.length||new mx(e,t,n,n).add(r).update(r).remove(v["curry"](r,null)).execute()}function d(r,i){if(u||!r||r.getValue()||(r=null),r!==a&&i!==a)if(i&&i.piece)r?(i.piece.updateData(!1,r,t,e,n),o.setItemGraphicEl(r.dataIndex,i.piece)):p(i);else if(r){var s=new vq(r,t,e,n);l.add(s),o.setItemGraphicEl(r.dataIndex,s)}}function p(t){t&&t.piece&&(l.remove(t.piece),t.piece=null)}function g(r,o){o.depth>0?(i.virtualPiece?i.virtualPiece.updateData(!1,r,t,e,n):(i.virtualPiece=new vq(r,t,e,n),l.add(i.virtualPiece)),o.piece.off("click"),i.virtualPiece.on("click",(function(t){i._rootToNode(o.parentNode)}))):i.virtualPiece&&(l.remove(i.virtualPiece),i.virtualPiece=null)}f(c,h),g(a,s),this._initEvents(),this._oldChildren=c},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",(function(e){var n=!1,r=t.seriesModel.getViewRoot();r.eachNode((function(r){if(!n&&r.piece&&r.piece===e.target){var i=r.getModel().get("nodeClick");if("rootToNode"===i)t._rootToNode(r);else if("link"===i){var o=r.getModel(),a=o.get("link");if(a){var s=o.get("target",!0)||"_blank";Jc(a,s)}}n=!0}}))}))},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:yq,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,e){var n=e.getData(),r=n.getItemLayout(0);if(r){var i=t[0]-r.cx,o=t[1]-r.cy,a=Math.sqrt(i*i+o*o);return a<=r.r&&a>=r.r0}},e.type="sunburst",e}(dy),wq=xq,Sq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return p(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};Oq(n);var r=this._levelModels=v["map"](t.levels||[],(function(t){return new Wu(t,this,e)}),this),i=Nj.createTree(n,this,o);function o(t){t.wrapMethod("getItemModel",(function(t,e){var n=i.getNodeByDataIndex(e),o=r[n.depth];return o&&(t.parentModel=o),t}))}return i.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=Vj(r,this),n},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){Jj(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(Hp);function Oq(t){var e=0;v["each"](t.children,(function(t){Oq(t);var n=t.value;v["isArray"](n)&&(n=n[0]),e+=n}));var n=t.value;v["isArray"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),v["isArray"](t.value)?t.value[0]=n:t.value=n}var Cq=Sq,kq=Math.PI/180;function Aq(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.get("center"),r=t.get("radius");v["isArray"](r)||(r=[0,r]),v["isArray"](e)||(e=[e,e]);var i=n.getWidth(),o=n.getHeight(),a=Math.min(i,o),s=Jr(e[0],i),l=Jr(e[1],o),u=Jr(r[0],a/2),c=Jr(r[1],a/2),h=-t.get("startAngle")*kq,f=t.get("minAngle")*kq,d=t.getData().tree.root,p=t.getViewRoot(),g=p.depth,y=t.get("sort");null!=y&&Mq(p,y);var m=0;v["each"](p.children,(function(t){!isNaN(t.getValue())&&m++}));var b=p.getValue(),_=Math.PI/(b||m)*2,x=p.depth>0,w=p.height-(x?-1:1),S=(c-u)/(w||1),O=t.get("clockwise"),C=t.get("stillShowZeroSum"),k=O?1:-1,A=function(e,n){if(e){var r=n;if(e!==d){var i=e.getValue(),o=0===b&&C?_:i*_;o1)i=i.parentNode;var o=n.getColorFromPalette(i.name||i.dataIndex+"",e);return t.depth>1&&Object(v["isString"])(o)&&(o=Object(Qe["lift"])(o,(t.depth-1)/(r-1)*.5)),o}t.eachSeriesByType("sunburst",(function(t){var e=t.getData(),r=e.tree;r.eachNode((function(i){var o=i.getModel(),a=o.getModel("itemStyle").getItemStyle();a.fill||(a.fill=n(i,t,r.root.height));var s=e.ensureUniqueItemVisual(i.dataIndex,"style");Object(v["extend"])(s,a)}))}))}function Eq(t){t.registerChartView(wq),t.registerSeriesModel(Cq),t.registerLayout(Object(v["curry"])(Aq,"sunburst")),t.registerProcessor(Object(v["curry"])(HM,"sunburst")),t.registerVisual(Iq),_q(t)}var Pq={color:"fill",borderColor:"stroke"},jq={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Lq=Yi(),Dq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return dw(null,this)},e.prototype.getDataParams=function(e,n,r){var i=t.prototype.getDataParams.call(this,e,n);return r&&(i.info=Lq(r).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Hp),Rq=Dq;function Nq(t,e){return e=e||[0,0],v["map"](["x","y"],(function(n,r){var i=this.getAxis(n),o=e[r],a=t[r]/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(o-a)-i.dataToCoord(o+a))}),this)}function Bq(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:v["bind"](Nq,t)}}}function Fq(t,e){return e=e||[0,0],v["map"]([0,1],(function(n){var r=e[n],i=t[n]/2,o=[],a=[];return o[n]=r-i,a[n]=r+i,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function zq(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:v["bind"](Fq,t)}}}function Vq(t,e){var n=this.getAxis(),r=e instanceof Array?e[0]:e,i=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function qq(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:Object(v["bind"])(Vq,t)}}}function Gq(t,e){return e=e||[0,0],v["map"](["Radius","Angle"],(function(n,r){var i="get"+n+"Axis",o=this[i](),a=e[r],s=t[r]/2,l="category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(a-s)-o.dataToCoord(a+s));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}function Hq(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:r[1],r0:r[0]},api:{coord:function(r){var i=e.dataToRadius(r[0]),o=n.dataToAngle(r[1]),a=t.coordToPoint([i,o]);return a.push(i,o*Math.PI/180),a},size:v["bind"](Gq,t)}}}function Wq(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}function Uq(t,e,n,r){return t&&(t.legacy||!1!==t.legacy&&!n&&!r&&"tspan"!==e&&("text"===e||Object(v["hasOwn"])(t,"text")))}function $q(t,e,n){var r,i,o,a=t;if("text"===e)o=a;else{o={},Object(v["hasOwn"])(a,"text")&&(o.text=a.text),Object(v["hasOwn"])(a,"rich")&&(o.rich=a.rich),Object(v["hasOwn"])(a,"textFill")&&(o.fill=a.textFill),Object(v["hasOwn"])(a,"textStroke")&&(o.stroke=a.textStroke),Object(v["hasOwn"])(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Object(v["hasOwn"])(a,"fontSize")&&(o.fontSize=a.fontSize),Object(v["hasOwn"])(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Object(v["hasOwn"])(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},r={};var s=Object(v["hasOwn"])(a,"textPosition");n?r.position=s?a.textPosition:"inside":s&&(r.position=a.textPosition),Object(v["hasOwn"])(a,"textPosition")&&(r.position=a.textPosition),Object(v["hasOwn"])(a,"textOffset")&&(r.offset=a.textOffset),Object(v["hasOwn"])(a,"textRotation")&&(r.rotation=a.textRotation),Object(v["hasOwn"])(a,"textDistance")&&(r.distance=a.textDistance)}return Yq(o,t),Object(v["each"])(o.rich,(function(t){Yq(t,t)})),{textConfig:r,textContent:i}}function Yq(t,e){e&&(e.font=e.textFont||e.font,Object(v["hasOwn"])(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),Object(v["hasOwn"])(e,"textAlign")&&(t.align=e.textAlign),Object(v["hasOwn"])(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),Object(v["hasOwn"])(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),Object(v["hasOwn"])(e,"textWidth")&&(t.width=e.textWidth),Object(v["hasOwn"])(e,"textHeight")&&(t.height=e.textHeight),Object(v["hasOwn"])(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),Object(v["hasOwn"])(e,"textPadding")&&(t.padding=e.textPadding),Object(v["hasOwn"])(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),Object(v["hasOwn"])(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),Object(v["hasOwn"])(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),Object(v["hasOwn"])(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),Object(v["hasOwn"])(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),Object(v["hasOwn"])(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),Object(v["hasOwn"])(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function Xq(t,e,n){var r=t;r.textPosition=r.textPosition||n.position||"inside",null!=n.offset&&(r.textOffset=n.offset),null!=n.rotation&&(r.textRotation=n.rotation),null!=n.distance&&(r.textDistance=n.distance);var i=r.textPosition.indexOf("inside")>=0,o=t.fill||"#000";Kq(r,e);var a=null==r.textFill;return i?a&&(r.textFill=n.insideFill||"#fff",!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=o),null==r.textStrokeWidth&&(r.textStrokeWidth=2)):(a&&(r.textFill=t.fill||n.outsideFill||"#000"),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=e.text,r.rich=e.rich,Object(v["each"])(e.rich,(function(t){Kq(t,t)})),r}function Kq(t,e){e&&(Object(v["hasOwn"])(e,"fill")&&(t.textFill=e.fill),Object(v["hasOwn"])(e,"stroke")&&(t.textStroke=e.fill),Object(v["hasOwn"])(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),Object(v["hasOwn"])(e,"font")&&(t.font=e.font),Object(v["hasOwn"])(e,"fontStyle")&&(t.fontStyle=e.fontStyle),Object(v["hasOwn"])(e,"fontWeight")&&(t.fontWeight=e.fontWeight),Object(v["hasOwn"])(e,"fontSize")&&(t.fontSize=e.fontSize),Object(v["hasOwn"])(e,"fontFamily")&&(t.fontFamily=e.fontFamily),Object(v["hasOwn"])(e,"align")&&(t.textAlign=e.align),Object(v["hasOwn"])(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),Object(v["hasOwn"])(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),Object(v["hasOwn"])(e,"width")&&(t.textWidth=e.width),Object(v["hasOwn"])(e,"height")&&(t.textHeight=e.height),Object(v["hasOwn"])(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),Object(v["hasOwn"])(e,"padding")&&(t.textPadding=e.padding),Object(v["hasOwn"])(e,"borderColor")&&(t.textBorderColor=e.borderColor),Object(v["hasOwn"])(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),Object(v["hasOwn"])(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),Object(v["hasOwn"])(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),Object(v["hasOwn"])(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),Object(v["hasOwn"])(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),Object(v["hasOwn"])(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),Object(v["hasOwn"])(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),Object(v["hasOwn"])(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),Object(v["hasOwn"])(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),Object(v["hasOwn"])(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var Zq={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Qq=Object(v["keys"])(Zq),Jq=(Object(v["reduce"])(lr,(function(t,e){return t[e]=1,t}),{}),lr.join(", "),["","style","shape","extra"]),tG=Yi();function eG(t,e,n,r,i){var o=t+"Animation",a=au(t,r,i)||{},s=tG(e).userDuring;return a.duration>0&&(a.during=s?Object(v["bind"])(hG,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=t),Object(v["extend"])(a,n[o]),a}function nG(t,e,n,r){r=r||{};var i=r.dataIndex,o=r.isInit,a=r.clearStyle,s=n.isAnimationEnabled(),l=tG(t),u=e.style;l.userDuring=e.during;var c={},h={};if(gG(t,e,h),dG("shape",e,h),dG("extra",e,h),!o&&s&&(pG(t,e,c),fG("shape",t,e,c),fG("extra",t,e,c),vG(t,e,u,c)),h.style=u,aG(t,h,a),lG(t,e),s)if(o){var f={};Object(v["each"])(Jq,(function(t){var n=t?e[t]:e;n&&n.enterFrom&&(t&&(f[t]=f[t]||{}),Object(v["extend"])(t?f[t]:f,n.enterFrom))}));var d=eG("enter",t,e,n,i);d.duration>0&&t.animateFrom(f,d)}else sG(t,e,i||0,n,c);rG(t,e),u?t.dirty():t.markRedraw()}function rG(t,e){for(var n=tG(t).leaveToProps,r=0;r0&&t.animateFrom(i,o)}}function lG(t,e){Object(v["hasOwn"])(e,"silent")&&(t.silent=e.silent),Object(v["hasOwn"])(e,"ignore")&&(t.ignore=e.ignore),t instanceof ta&&Object(v["hasOwn"])(e,"invisible")&&(t.invisible=e.invisible),t instanceof ss&&Object(v["hasOwn"])(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}var uG={},cG={setTransform:function(t,e){return uG.el[t]=e,this},getTransform:function(t){return uG.el[t]},setShape:function(t,e){var n=uG.el,r=n.shape||(n.shape={});return r[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=uG.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=uG.el,r=n.style;return r&&(r[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=uG.el.style;if(e)return e[t]},setExtra:function(t,e){var n=uG.el.extra||(uG.el.extra={});return n[t]=e,this},getExtra:function(t){var e=uG.el.extra;if(e)return e[t]}};function hG(){var t=this,e=t.el;if(e){var n=tG(e).userDuring,r=t.userDuring;n===r?(uG.el=e,r(cG)):t.el=t.userDuring=null}}function fG(t,e,n,r){var i=n[t];if(i){var o,a=e[t];if(a){var s=n.transition,l=i.transition;if(l)if(!o&&(o=r[t]={}),oG(l))Object(v["extend"])(o,a);else for(var u=ki(l),c=0;c=0){!o&&(o=r[t]={});var d=Object(v["keys"])(a);for(c=0;c=0)){var f=t.getAnimationStyleProps(),d=f?f.style:null;if(d){!i&&(i=r.style={});var p=Object(v["keys"])(n);for(u=0;u=0?e.getStore().get(i,n):void 0}var o=e.get(r.name,n),a=r&&r.ordinalMeta;return a?a.categories[o]:o}function S(n,r){null==r&&(r=s);var i=e.getItemVisual(r,"style"),o=i&&i.fill,a=i&&i.opacity,l=b(r,SG).getItemStyle();null!=o&&(l.fill=o),null!=a&&(l.opacity=a);var u={inheritColor:Object(v["isString"])(o)?o:"#000"},c=_(r,SG),h=xu(c,null,u,!1,!0);h.text=c.getShallow("show")?Object(v["retrieve2"])(t.getFormattedLabel(r,SG),oA(e,r)):null;var f=wu(c,u,!1);return k(n,l),l=Xq(l,h,f),n&&C(l,n),l.legacy=!0,l}function O(n,r){null==r&&(r=s);var i=b(r,wG).getItemStyle(),o=_(r,wG),a=xu(o,null,null,!0,!0);a.text=o.getShallow("show")?Object(v["retrieve3"])(t.getFormattedLabel(r,wG),t.getFormattedLabel(r,SG),oA(e,r)):null;var l=wu(o,null,!0);return k(n,i),i=Xq(i,a,l),n&&C(i,n),i.legacy=!0,i}function C(t,e){for(var n in e)Object(v["hasOwn"])(e,n)&&(t[n]=e[n])}function k(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}function A(t,n){if(null==n&&(n=s),Object(v["hasOwn"])(Pq,t)){var r=e.getItemVisual(n,"style");return r?r[Pq[t]]:null}if(Object(v["hasOwn"])(jq,t))return e.getItemVisual(n,t)}function M(t){if("cartesian2d"===o.type){var e=o.getBaseAxis();return zw(Object(v["defaults"])({axis:e},t))}}function T(){return n.getCurrentSeriesIndices()}function I(t){return Tu(t,n)}}function HG(t){var e={};return Object(v["each"])(t.dimensions,(function(n){var r=t.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim,o=e[i]=e[i]||[];o[r.coordDimIndex]=t.getDimensionIndex(n)}})),e}function WG(t,e,n,r,i,o,a){if(r){var s=UG(t,e,n,r,i,o);return s&&a.setItemGraphicEl(n,s),s&&$l(s,r.focus,r.blurScope,r.emphasisDisabled),s}o.remove(e)}function UG(t,e,n,r,i,o){var a=-1,s=e;e&&$G(e,r,i)&&(a=Object(v["indexOf"])(o.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=BG(r),s&&DG(s,u)),!1===r.morph?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),EG.normal.cfg=EG.normal.conOpt=EG.emphasis.cfg=EG.emphasis.conOpt=EG.blur.cfg=EG.blur.conOpt=EG.select.cfg=EG.select.conOpt=null,EG.isLegacy=!1,XG(u,n,r,i,l,EG),YG(u,n,r,i,l),FG(t,u,n,r,EG,i,l),Object(v["hasOwn"])(r,"info")&&(Lq(u).info=r.info);for(var c=0;c=0?o.replaceAt(u,a):o.add(u),u}function $G(t,e,n){var r=Lq(t),i=e.type,o=e.shape,a=e.style;return n.isUniversalTransitionEnabled()||null!=i&&i!==r.customGraphicType||"path"===i&&aH(o)&&oH(o)!==r.customPathData||"image"===i&&Object(v["hasOwn"])(a,"image")&&a.image!==r.customImagePath}function YG(t,e,n,r,i){var o=n.clipPath;if(!1===o)t&&t.getClipPath()&&t.removeClipPath();else if(o){var a=t.getClipPath();a&&$G(a,o,r)&&(a=null),a||(a=BG(o),t.setClipPath(a)),FG(null,a,e,o,null,r,i)}}function XG(t,e,n,r,i,o){if(!t.isGroup){KG(n,null,o),KG(n,wG,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(null!=a||null!=s||null!=u||null!=l){var c=t.getTextContent();if(!1===a)c&&t.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=BG(a),t.setTextContent(c)),FG(null,c,e,a,null,r,i);for(var h=a&&a.style,f=0;f=c;d--){var p=e.childAt(d);tH(e,p,i)}}}function tH(t,e,n){e&&iG(e,Lq(t).option,n)}function eH(t){new mx(t.oldChildren,t.newChildren,nH,nH,t).add(rH).update(rH).remove(iH).execute()}function nH(t,e){var n=t&&t.name;return null!=n?n:IG+e}function rH(t,e){var n=this.context,r=null!=t?n.newChildren[t]:null,i=null!=e?n.oldChildren[e]:null;UG(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function iH(t){var e=this.context,n=e.oldChildren[t];n&&iG(n,Lq(n).option,e.seriesModel)}function oH(t){return t&&(t.pathData||t.d)}function aH(t){return t&&(Object(v["hasOwn"])(t,"pathData")||Object(v["hasOwn"])(t,"d"))}function sH(t){t.registerChartView(NG),t.registerSeriesModel(Rq)}var lH=Yi(),uH=v["clone"],cH=v["bind"],hH=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,r){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,r||this._lastValue!==i||this._lastStatus!==o){this._lastValue=i,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,i,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(t,e);if(a){var h=v["curry"](fH,e,c);this.updatePointerEl(a,l,h),this.updateLabelEl(a,l,h,e)}else a=this._group=new Nr,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);vH(a,e,!0),this._renderHandle(i)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),r=t.axis,i="category"===r.type,o=e.get("snap");if(!o&&!i)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(i&&r.getBandWidth()>a)return!0;if(o){var s=pI(t).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,r,i){},t.prototype.createPointerEl=function(t,e,n,r){var i=e.pointer;if(i){var o=lH(t).pointerEl=new a[i.type](uH(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,r){if(e.label){var i=lH(t).labelEl=new qs(uH(e.label));t.add(i),pH(i,r)}},t.prototype.updatePointerEl=function(t,e,n){var r=lH(t).pointerEl;r&&e.pointer&&(r.setStyle(e.pointer.style),n(r,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,r){var i=lH(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),pH(i,r))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return i&&r.remove(i),void(this._handle=null);this._handle||(e=!0,i=this._handle=Zv(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){vt(t.event)},onmousedown:cH(this._onHandleDragMove,this,0,0),drift:cH(this._onHandleDragMove,this),ondragend:cH(this._onHandleDragEnd,this)}),r.add(i)),vH(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");v["isArray"](s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,my(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){fH(this._axisPointerModel,!e&&this._moveAnimation,this._handle,gH(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(gH(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(gH(r)),lH(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,r=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),r&&e.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),by(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},t}();function fH(t,e,n,r){dH(lH(n).lastProp,r)||(lH(n).lastProp=r,e?lu(n,r,t):(n.stopAnimation(),n.attr(r)))}function dH(t,e){if(v["isObject"](t)&&v["isObject"](e)){var n=!0;return v["each"](e,(function(e,r){n=n&&dH(t[r],e)})),!!n}return t===e}function pH(t,e){t[e.get(["label","show"])?"show":"hide"]()}function gH(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function vH(t,e,n){var r=e.get("z"),i=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=r&&(t.z=r),null!=i&&(t.zlevel=i),t.silent=n)}))}var yH=hH;function mH(t){var e,n=t.get("type"),r=t.getModel(n+"Style");return"line"===n?(e=r.getLineStyle(),e.fill=null):"shadow"===n&&(e=r.getAreaStyle(),e.stroke=null),e}function bH(t,e,n,r,i){var o=n.get("value"),a=xH(o,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=Gc(s.get("padding")||0),u=s.getFont(),c=vr(a,u),h=i.position,f=c.width+l[1]+l[3],d=c.height+l[0]+l[2],p=i.align;"right"===p&&(h[0]-=f),"center"===p&&(h[0]-=f/2);var g=i.verticalAlign;"bottom"===g&&(h[1]-=d),"middle"===g&&(h[1]-=d/2),_H(h,f,d,r);var v=s.get("backgroundColor");v&&"auto"!==v||(v=e.get(["axisLine","lineStyle","color"])),t.label={x:h[0],y:h[1],style:xu(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:v}),z2:10}}function _H(t,e,n,r){var i=r.getWidth(),o=r.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function xH(t,e,n,r,i){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:i.precision}),a=i.formatter;if(a){var s={value:ES(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};v["each"](r,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),r=t.dataIndexInside,i=e&&e.getDataParams(r);i&&s.seriesData.push(i)})),v["isString"](a)?o=a.replace("{value}",o):v["isFunction"](a)&&(o=a(s))}return o}function wH(t,e,n){var r=wt();return At(r,r,n.rotation),kt(r,r,n.position),Hv([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function SH(t,e,n,r,i,o){var a=aI.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),bH(e,r,i,o,{position:wH(r.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function OH(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function CH(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function kH(t,e,n,r,i,o){return{cx:t,cy:e,r0:n,r:r,startAngle:i,endAngle:o,clockwise:!0}}var AH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var o=n.axis,a=o.grid,s=r.get("type"),l=MH(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=mH(r),h=TH[s](o,u,l);h.style=c,t.graphicKey=h.type,t.pointer=h}var f=NT(a.model,n);SH(e,t,f,n,r,i)},e.prototype.getHandleTransform=function(t,e,n){var r=NT(e.axis.grid.model,e,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=wH(e.axis,t,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,r){var i=n.axis,o=i.grid,a=i.getGlobalExtent(!0),s=MH(o,i).getOtherAxis(i).getGlobalExtent(),l="x"===i.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];h[l]=u[l];var f=[{verticalAlign:"middle"},{align:"center"}];return{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:h,tooltipOption:f[l]}},e}(yH);function MH(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var TH={line:function(t,e,n){var r=OH([e,n[0]],[e,n[1]],IH(t));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(t,e,n){var r=Math.max(1,t.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:CH([e-r/2,n[0]],[r,i],IH(t))}}};function IH(t){return"x"===t.dim?0:1}var EH=AH,PH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.type="axisPointer",e.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}},e}(vh),jH=PH,LH=Yi(),DH=v["each"];function RH(t,e,n){if(!g["a"].node){var r=e.getZr();LH(r).records||(LH(r).records={}),NH(r,e);var i=LH(r).records[t]||(LH(r).records[t]={});i.handler=n}}function NH(t,e){function n(n,r){t.on(n,(function(n){var i=VH(e);DH(LH(t).records,(function(t){t&&r(t,n,i.dispatchAction)})),BH(i.pendings,e)}))}LH(t).initialized||(LH(t).initialized=!0,n("click",v["curry"](zH,"click")),n("mousemove",v["curry"](zH,"mousemove")),n("globalout",FH))}function BH(t,e){var n,r=t.showTip.length,i=t.hideTip.length;r?n=t.showTip[r-1]:i&&(n=t.hideTip[i-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function FH(t,e,n){t.handler("leave",null,n)}function zH(t,e,n,r){e.handler(t,n,r)}function VH(t){var e={showTip:[],hideTip:[]},n=function(r){var i=e[r.type];i?i.push(r):(r.dispatchAction=n,t.dispatchAction(r))};return{dispatchAction:n,pendings:e}}function qH(t,e){if(!g["a"].node){var n=e.getZr(),r=(LH(n).records||{})[t];r&&(LH(n).records[t]=null)}}var GH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.render=function(t,e,n){var r=e.getComponent("tooltip"),i=t.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";RH("axisPointer",n,(function(t,e,n){"none"!==i&&("leave"===t||i.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){qH("axisPointer",e)},e.prototype.dispose=function(t,e){qH("axisPointer",e)},e.type="axisPointer",e}(Up),HH=GH;function WH(t,e){var n,r=[],i=t.seriesIndex;if(null==i||!(n=e.getSeriesByIndex(i)))return{point:[]};var o=n.getData(),a=$i(o,t);if(null==a||a<0||v["isArray"](a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),h=c.dim,f=u.dim,d="x"===h||"radius"===h?1:0,p=o.mapDimension(f),g=[];g[d]=o.get(p,a),g[1-d]=o.get(o.getCalculationInfo("stackResultDimension"),a),r=l.dataToPoint(g)||[]}else r=l.dataToPoint(o.getValues(v["map"](l.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(s){var y=s.getBoundingRect().clone();y.applyTransform(s.transform),r=[y.x+y.width/2,y.y+y.height/2]}return{point:r,el:s}}var UH=Yi();function $H(t,e,n){var r=t.currTrigger,i=[t.x,t.y],o=t,a=t.dispatchAction||Object(v["bind"])(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){rW(i)&&(i=WH({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=rW(i),u=o.axesInfo,c=s.axesInfo,h="leave"===r||rW(i),f={},d={},p={list:[],map:{}},g={showPointer:Object(v["curry"])(KH,d),showTooltip:Object(v["curry"])(ZH,p)};Object(v["each"])(s.coordSysMap,(function(t,e){var n=l||t.containPoint(i);Object(v["each"])(s.coordSysAxesInfo[e],(function(t,e){var r=t.axis,o=eW(u,t);if(!h&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=r.pointToData(i)),null!=a&&YH(t,a,g,!1,f)}}))}));var y={};return Object(v["each"])(c,(function(t,e){var n=t.linkGroup;n&&!d[e]&&Object(v["each"])(n.axesInfo,(function(e,r){var i=d[r];if(e!==t&&i){var o=i.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,nW(e),nW(t)))),y[t.key]=o}}))})),Object(v["each"])(y,(function(t,e){YH(c[e],t,g,!0,f)})),QH(d,c,f),JH(p,i,t,a),tW(c,a,n),f}}function YH(t,e,n,r,i){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=XH(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==i.seriesIndex&&Object(v["extend"])(i,s[0]),!r&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function XH(t,e){var n=e.axis,r=n.dim,i=t,o=[],a=Number.MAX_VALUE,s=-1;return Object(v["each"])(e.seriesModels,(function(e,l){var u,c,h=e.getData().mapDimensionsAll(r);if(e.getAxisTooltipData){var f=e.getAxisTooltipData(h,t,n);c=f.dataIndices,u=f.nestestValue}else{if(c=e.getData().indicesOfNearest(h[0],t,"category"===n.type?.5:null),!c.length)return;u=e.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var d=t-u,p=Math.abs(d);p<=a&&((p=0&&s<0)&&(a=p,s=d,i=u,o.length=0),Object(v["each"])(c,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:i}}function KH(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function ZH(t,e,n,r){var i=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&i.length){var l=e.coordSys.model,u=yI(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function QH(t,e,n){var r=n.axesInfo=[];Object(v["each"])(e,(function(e,n){var i=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(i.status="show"),i.value=o.value,i.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:i.value})}))}function JH(t,e,n,r){if(!rW(e)&&t.list.length){var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}else r({type:"hideTip"})}function tW(t,e,n){var r=n.getZr(),i="axisPointerLastHighlights",o=UH(r)[i]||{},a=UH(r)[i]={};Object(v["each"])(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&Object(v["each"])(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var s=[],l=[];Object(v["each"])(o,(function(t,e){!a[e]&&l.push(t)})),Object(v["each"])(a,(function(t,e){!o[e]&&s.push(t)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function eW(t,e){for(var n=0;n<(t||[]).length;n++){var r=t[n];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function nW(t){var e=t.axis.model,n={},r=n.axisDim=t.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=e.componentIndex,n.axisName=n[r+"AxisName"]=e.name,n.axisId=n[r+"AxisId"]=e.id,n}function rW(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function iW(t){_I.registerAxisPointerClass("CartesianAxisPointer",EH),t.registerComponentModel(jH),t.registerComponentView(HH),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Object(v["isArray"])(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=sI(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},$H)}function oW(t){px(PI),px(iW)}var aW=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o),l=s.getExtent(),u=o.dataToCoord(e),c=r.get("type");if(c&&"none"!==c){var h=mH(r),f=lW[c](o,a,u,l);f.style=h,t.graphicKey=f.type,t.pointer=f}var d=r.get(["label","margin"]),p=sW(e,n,r,a,d);bH(t,n,r,i,p)},e}(yH);function sW(t,e,n,r,i){var o=e.axis,a=o.dataToCoord(t),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,c,h=r.getRadiusAxis().getExtent();if("radius"===o.dim){var f=wt();At(f,f,s),kt(f,f,[r.cx,r.cy]),l=Hv([a,-i],f);var d=e.getModel("axisLabel").get("rotate")||0,p=aI.innerTextLayout(s,d*Math.PI/180,-1);u=p.textAlign,c=p.textVerticalAlign}else{var g=h[1];l=r.coordToPoint([g+i,a]);var v=r.cx,y=r.cy;u=Math.abs(l[0]-v)/g<.3?"center":l[0]>v?"left":"right",c=Math.abs(l[1]-y)/g<.3?"middle":l[1]>y?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}var lW={line:function(t,e,n,r){return"angle"===t.dim?{type:"Line",shape:OH(e.coordToPoint([r[0],n]),e.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,r){var i=Math.max(1,t.getBandWidth()),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:kH(e.cx,e.cy,r[0],r[1],(-n-i/2)*o,(i/2-n)*o)}:{type:"Sector",shape:kH(e.cx,e.cy,n-i/2,n+i/2,0,2*Math.PI)}}},uW=aW,cW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.findAxisModel=function(t){var e,n=this.ecModel;return n.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(vh),hW=cW,fW=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Qi).models[0]},e.type="polarAxis",e}(vh);v["mixin"](fW,BS);var dW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.type="angleAxis",e}(fW),pW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.type="radiusAxis",e}(fW),gW=function(t){function e(e,n){return t.call(this,"radius",e,n)||this}return p(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e}(kO);gW.prototype.dataToRadius=kO.prototype.dataToCoord,gW.prototype.radiusToData=kO.prototype.coordToData;var vW=gW,yW=Yi(),mW=function(t){function e(e,n){return t.call(this,"angle",e,n||[0,360])||this}return p(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,e=t.getLabelModel(),n=t.scale,r=n.getExtent(),i=n.count();if(r[1]-r[0]<1)return 0;var o=r[0],a=t.dataToCoord(o+1)-t.dataToCoord(o),s=Math.abs(a),l=vr(null==o?"":o+"",e.getFont(),"center","top"),u=Math.max(l.height,7),c=u/s;isNaN(c)&&(c=1/0);var h=Math.max(0,Math.floor(c)),f=yW(t.model),d=f.lastAutoInterval,p=f.lastTickCount;return null!=d&&null!=p&&Math.abs(d-h)<=1&&Math.abs(p-i)<=1&&d>h?h=d:(f.lastTickCount=i,f.lastAutoInterval=h),h},e}(kO);mW.prototype.dataToAngle=kO.prototype.dataToCoord,mW.prototype.angleToData=kO.prototype.coordToData;var bW=mW,_W=["radius","angle"],xW=function(){function t(t){this.dimensions=_W,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new vW,this._angleAxis=new bW,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,r=this._radiusAxis;return n.scale.type===t&&e.push(n),r.scale.type===t&&e.push(r),e},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},t.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,r=this.getAngleAxis(),i=r.getExtent(),o=Math.min(i[0],i[1]),a=Math.max(i[0],i[1]);r.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;var l=Math.atan2(-n,e)/Math.PI*180,u=la)l+=360*u;return[s,l]},t.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI,r=Math.cos(n)*e+this.cx,i=-Math.sin(n)*e+this.cy;return[r,i]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),n=e.getExtent().slice();n[0]>n[1]&&n.reverse();var r=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-r[0]*i,endAngle:-r[1]*i,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,r=e-this.cy,i=n*n+r*r-1e-4,o=this.r,a=this.r0;return i<=o*o&&i>=a*a}}},t.prototype.convertToPixel=function(t,e,n){var r=wW(e);return r===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var r=wW(e);return r===this?this.pointToData(n):null},t}();function wW(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var SW=xW;function OW(t,e,n){var r=e.get("center"),i=n.getWidth(),o=n.getHeight();t.cx=Jr(r[0],i),t.cy=Jr(r[1],o);var a=t.getRadiusAxis(),s=Math.min(i,o)/2,l=e.get("radius");null==l?l=[0,"100%"]:v["isArray"](l)||(l=[0,l]);var u=[Jr(l[0],s),Jr(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}function CW(t,e){var n=this,r=n.getAngleAxis(),i=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===n){var e=t.getData();v["each"](RS(e,"radius"),(function(t){i.scale.unionExtentFromData(e,t)})),v["each"](RS(e,"angle"),(function(t){r.scale.unionExtentFromData(e,t)}))}})),AS(r.scale,r.model),AS(i.scale,i.model),"category"===r.type&&!r.onBand){var o=r.getExtent(),a=360/r.scale.count();r.inverse?o[1]+=a:o[1]-=a,r.setExtent(o[0],o[1])}}function kW(t){return"angleAxis"===t.mainType}function AW(t,e){if(t.type=e.get("type"),t.scale=MS(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),kW(e)){t.inverse=t.inverse!==e.get("clockwise");var n=e.get("startAngle");t.setExtent(n,n+(t.inverse?-360:360))}e.axis=t,t.model=e}var MW={dimensions:_W,create:function(t,e){var n=[];return t.eachComponent("polar",(function(t,r){var i=new SW(r+"");i.update=CW;var o=i.getRadiusAxis(),a=i.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");AW(o,s),AW(a,l),OW(i,t,e),n.push(i),t.coordinateSystem=i,i.model=t})),t.eachSeries((function(t){if("polar"===t.get("coordinateSystem")){var e=t.getReferringComponents("polar",Qi).models[0];0,t.coordinateSystem=e.coordinateSystem}})),n}},TW=MW,IW=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function EW(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var r=t.coordToPoint([e[0],n]),i=t.coordToPoint([e[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function PW(t){var e=t.getRadiusAxis();return e.inverse?0:1}function jW(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var LW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return p(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,r=n.polar,i=r.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=v["map"](n.getViewLabels(),(function(t){t=v["clone"](t);var e=n.scale,r="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(r),t}));jW(s),jW(o),v["each"](IW,(function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||DW[e](this.group,t,r,o,a,i,s)}),this)}},e.type="angleAxis",e}(_I),DW={axisLine:function(t,e,n,r,i,o){var a,s=e.getModel(["axisLine","lineStyle"]),l=PW(n),u=l?0:1;a=0===o[u]?new bg({shape:{cx:n.cx,cy:n.cy,r:o[l]},style:s.getLineStyle(),z2:1,silent:!0}):new Gg({shape:{cx:n.cx,cy:n.cy,r:o[l],r0:o[u]},style:s.getLineStyle(),z2:1,silent:!0}),a.style.fill=null,t.add(a)},axisTick:function(t,e,n,r,i,o){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[PW(n)],u=v["map"](r,(function(t){return new ev({shape:EW(n,[l,l+s],t.coord)})}));t.add(Bv(u,{style:v["defaults"](a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,r,i,o){if(i.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[PW(n)],c=[],h=0;hp?"left":"right",m=Math.abs(d[1]-g)/f<.3?"middle":d[1]>g?"top":"bottom";if(s&&s[h]){var b=s[h];v["isObject"](b)&&b.textStyle&&(a=new Wu(b.textStyle,l,l.ecModel))}var _=new qs({silent:aI.isLabelSilent(e),style:xu(a,{x:d[0],y:d[1],fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:r.formattedLabel,align:y,verticalAlign:m})});if(t.add(_),c){var x=aI.makeAxisEventDataBase(e);x.targetType="axisLabel",x.value=r.rawLabel,Gs(_).eventData=x}}),this)},splitLine:function(t,e,n,r,i,o){var a=e.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=0;h=0?"p":"n",k=_;m&&(r[s][O]||(r[s][O]={p:_,n:_}),k=r[s][O][C]);var A=void 0,M=void 0,T=void 0,I=void 0;if("radius"===h.dim){var E=h.dataToCoord(S)-_,P=o.dataToCoord(O);Math.abs(E)=I})}}}))}function UW(t){var e={};v["each"](t,(function(t,n){var r=t.getData(),i=t.coordinateSystem,o=i.getBaseAxis(),a=HW(i,o),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/r.count(),u=e[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=u.stacks;e[a]=u;var h=GW(t);c[h]||u.autoWidthCount++,c[h]=c[h]||{width:0,maxWidth:0};var f=Jr(t.get("barWidth"),l),d=Jr(t.get("barMaxWidth"),l),p=t.get("barGap"),g=t.get("barCategoryGap");f&&!c[h].width&&(f=Math.min(u.remainedWidth,f),c[h].width=f,u.remainedWidth-=f),d&&(c[h].maxWidth=d),null!=p&&(u.gap=p),null!=g&&(u.categoryGap=g)}));var n={};return v["each"](e,(function(t,e){n[e]={};var r=t.stacks,i=t.bandWidth,o=Jr(t.categoryGap,i),a=Jr(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),v["each"](r,(function(t,e){var n=t.maxWidth;n&&n=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},t.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),r=[],i="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),r[i]=e.toGlobalCoord(e.dataToCoord(+t)),r[1-i]=0===i?n.y+n.height/2:n.x+n.width/2,r},t.prototype.convertToPixel=function(t,e,n){var r=cU(e);return r===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var r=cU(e);return r===this?this.pointToData(n):null},t}();function cU(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var hU=uU;function fU(t,e){var n=[];return t.eachComponent("singleAxis",(function(r,i){var o=new hU(r,t,e);o.name="single_"+i,o.resize(r,e),r.coordinateSystem=o,n.push(o)})),t.eachSeries((function(t){if("singleAxis"===t.get("coordinateSystem")){var e=t.getReferringComponents("singleAxis",Qi).models[0];t.coordinateSystem=e&&e.coordinateSystem}})),n}var dU={create:fU,dimensions:lU},pU=dU,gU=["x","y"],vU=["width","height"],yU=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var o=n.axis,a=o.coordinateSystem,s=_U(a,1-bU(o)),l=a.dataToPoint(e)[0],u=r.get("type");if(u&&"none"!==u){var c=mH(r),h=mU[u](o,l,s);h.style=c,t.graphicKey=h.type,t.pointer=h}var f=QW(n);SH(e,t,f,n,r,i)},e.prototype.getHandleTransform=function(t,e,n){var r=QW(e,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=wH(e.axis,t,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,r){var i=n.axis,o=i.coordinateSystem,a=bU(i),s=_U(o,a),l=[t.x,t.y];l[a]+=e[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=_U(o,1-a),c=(u[1]+u[0])/2,h=[c,c];return h[a]=l[a],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(yH),mU={line:function(t,e,n){var r=OH([e,n[0]],[e,n[1]],bU(t));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(t,e,n){var r=t.getBandWidth(),i=n[1]-n[0];return{type:"Rect",shape:CH([e-r/2,n[0]],[r,i],bU(t))}}};function bU(t){return t.isHorizontal()?0:1}function _U(t,e){var n=t.getRect();return[n[gU[e]],n[gU[e]]+n[vU[e]]]}var xU=yU,wU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.type="single",e}(Up);function SU(t){px(iW),_I.registerAxisPointerClass("SingleAxisPointer",xU),t.registerComponentView(wU),t.registerComponentView(rU),t.registerComponentModel(oU),AT(t,"single",oU,oU.defaultOption),t.registerCoordinateSystem("single",pU)}var OU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.init=function(e,n,r){var i=hh(e);t.prototype.init.apply(this,arguments),CU(e,i)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),CU(this.option,e)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(vh);function CU(t,e){var n,r=t.cellSize;n=v["isArray"](r)?r:t.cellSize=[r,r],1===n.length&&(n[1]=n[0]);var i=v["map"]([0,1],(function(t){return lh(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]}));ch(t,e,{type:"box",ignoreSize:i})}var kU=OU,AU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.render=function(t,e,n){var r=this.group;r.removeAll();var i=t.coordinateSystem,o=i.getRangeInfo(),a=i.getOrient(),s=e.getLocaleModel();this._renderDayRect(t,o,r),this._renderLines(t,o,a,r),this._renderYearText(t,o,a,r),this._renderMonthText(t,s,a,r),this._renderWeekText(t,s,o,a,r)},e.prototype._renderDayRect=function(t,e,n){for(var r=t.coordinateSystem,i=t.getModel("itemStyle").getItemStyle(),o=r.getCellWidth(),a=r.getCellHeight(),s=e.start.time;s<=e.end.time;s=r.getNextNDay(s,1).time){var l=r.dataToRect([s],!1).tl,u=new Os({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:i});n.add(u)}},e.prototype._renderLines=function(t,e,n,r){var i=this,o=t.coordinateSystem,a=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,c=0;u.time<=e.end.time;c++){f(u.formatedDate),0===c&&(u=o.getDateInfo(e.start.y+"-"+e.start.m));var h=u.date;h.setMonth(h.getMonth()+1),u=o.getDateInfo(h)}function f(e){i._firstDayOfMonth.push(o.getDateInfo(e)),i._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=i._getLinePointsOfOneWeek(t,e,n);i._tlpoints.push(l[0]),i._blpoints.push(l[l.length-1]),s&&i._drawSplitline(l,a,r)}f(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,l,n),a,r),s&&this._drawSplitline(i._getEdgesPoints(i._blpoints,l,n),a,r)},e.prototype._getEdgesPoints=function(t,e,n){var r=[t[0].slice(),t[t.length-1].slice()],i="horizontal"===n?0:1;return r[0][i]=r[0][i]-e/2,r[1][i]=r[1][i]+e/2,r},e.prototype._drawSplitline=function(t,e,n){var r=new Zg({z2:20,shape:{points:t},style:e});n.add(r)},e.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var r=t.coordinateSystem,i=r.getDateInfo(e),o=[],a=0;a<7;a++){var s=r.getNextNDay(i.time,a),l=r.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},e.prototype._formatterLabel=function(t,e){return Object(v["isString"])(t)&&t?Yc(t,e):Object(v["isFunction"])(t)?t(e):e.nameMap},e.prototype._yearTextPositionControl=function(t,e,n,r,i){var o=e[0],a=e[1],s=["center","bottom"];"bottom"===r?(a+=i,s=["center","top"]):"left"===r?o-=i:"right"===r?(o+=i,s=["center","top"]):a-=i;var l=0;return"left"!==r&&"right"!==r||(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},e.prototype._renderYearText=function(t,e,n,r){var i=t.getModel("yearLabel");if(i.get("show")){var o=i.get("margin"),a=i.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,c="horizontal"===n?0:1,h={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},f=e.start.y;+e.end.y>+e.start.y&&(f=f+"-"+e.end.y);var d=i.get("formatter"),p={start:e.start.y,end:e.end.y,nameMap:f},g=this._formatterLabel(d,p),v=new qs({z2:30,style:xu(i,{text:g})});v.attr(this._yearTextPositionControl(v,h[a],n,a,o)),r.add(v)}},e.prototype._monthTextPositionControl=function(t,e,n,r,i){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=i,e&&(o="center"),"start"===r&&(a="bottom")):(s+=i,e&&(a="middle"),"start"===r&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderMonthText=function(t,e,n,r){var i=t.getModel("monthLabel");if(i.get("show")){var o=i.get("nameMap"),a=i.get("margin"),s=i.get("position"),l=i.get("align"),u=[this._tlpoints,this._blpoints];o&&!Object(v["isString"])(o)||(o&&(e=sc(o)||e),o=e.get(["time","monthAbbr"])||[]);var c="start"===s?0:1,h="horizontal"===n?0:1;a="start"===s?-a:a;for(var f="center"===l,d=0;d=r.start.time&&n.timea.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var r=Math.floor(n[1].time/TU)-Math.floor(n[0].time/TU)+1,i=new Date(n[0].time),o=i.getDate(),a=n[1].date.getDate();i.setDate(o+r-1);var s=i.getDate();if(s!==a){var l=i.getTime()-n[1].time>0?1:-1;while((s=i.getDate())!==a&&(i.getTime()-n[1].time)*l>0)r-=l,i.setDate(s-l)}var u=Math.floor((r+n[0].day+6)/7),c=e?1-u:u-1;return e&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:r,weeks:u,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(t,e,n){var r=this._getRangeInfo(n);if(t>r.weeks||0===t&&er.lweek)return null;var i=7*(t-1)-r.fweek+e,o=new Date(r.start.time);return o.setDate(+r.start.d+i),this.getDateInfo(o)},t.create=function(e,n){var r=[];return e.eachComponent("calendar",(function(i){var o=new t(i,e,n);r.push(o),i.coordinateSystem=o})),e.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=r[t.get("calendarIndex")||0])})),r},t.dimensions=["time","value"],t}();function EU(t){var e=t.calendarModel,n=t.seriesModel,r=e?e.coordinateSystem:n?n.coordinateSystem:null;return r}var PU=IU;function jU(t){t.registerComponentModel(kU),t.registerComponentView(MU),t.registerCoordinateSystem("calendar",PU)}function LU(t,e){var n=t.existing;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var r=e.parentOption;r?e.parentId=r.id:n&&(e.parentId=n.parentId)}e.parentOption=null}function DU(t,e){var n;return v["each"](e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}function RU(t,e,n){var r=v["extend"]({},n),i=t[e],o=n.$action||"merge";"merge"===o?i?(v["merge"](i,r,!0),ch(i,r,{ignoreSize:!0}),fh(n,i),FU(n,i),FU(n,i,"shape"),FU(n,i,"style"),FU(n,i,"extra"),n.clipPath=i.clipPath):t[e]=r:"replace"===o?t[e]=r:"remove"===o&&i&&(t[e]=null)}var NU=["transition","enterFrom","leaveTo"],BU=NU.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function FU(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var r=n?NU:BU,i=0;i=0;l--){u=n[l],c=zi(u.id,null),h=null!=c?i.get(c):null;if(h){f=h.parent,g=GU(f);var y=f===r?{width:o,height:a}:{width:g.width,height:g.height},m={},b=sh(h,u,y,null,{hv:u.hv,boundingMode:u.bounding},m);if(!GU(h).isNew&&b){for(var _=u.transition,x={},w=0;w=0)?x[S]=O:h[S]=O}lu(h,x,t,0)}else h.attr(m)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each((function(n){$U(n,GU(n).option,e,t._lastGraphicModel)})),this._elMap=v["createHashMap"]()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Up);function WU(t){var e=v["hasOwn"](qU,t)?qU[t]:Lv(t);var n=new e({});return GU(n).type=t,n}function UU(t,e,n,r){var i=WU(n);return e.add(i),r.set(t,i),GU(i).id=t,GU(i).isNew=!0,i}function $U(t,e,n,r){var i=t&&t.parent;i&&("group"===t.type&&t.traverse((function(t){$U(t,e,n,r)})),iG(t,e,r),n.removeKey(GU(t).id))}function YU(t,e,n,r){t.isGroup||v["each"]([["cursor",ta.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],(function(n){var r=n[0];v["hasOwn"](e,r)?t[r]=v["retrieve2"](e[r],n[1]):null==t[r]&&(t[r]=n[1])})),v["each"](v["keys"](e),(function(n){if(0===n.indexOf("on")){var r=e[n];t[n]=v["isFunction"](r)?r:null}})),v["hasOwn"](e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}function XU(t){return t=v["extend"]({},t),v["each"](["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(eh),(function(e){delete t[e]})),t}function KU(t,e,n){var r=Gs(t).eventData;t.silent||t.ignore||r||(r=Gs(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),r&&(r.info=n.info)}function ZU(t){t.registerComponentModel(VU),t.registerComponentView(HU),t.registerPreprocessor((function(t){var e=t.graphic;Object(v["isArray"])(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}))}var QU=["x","y","radius","angle","single"],JU=["cartesian2d","polar","singleAxis"];function t$(t){var e=t.get("coordinateSystem");return Object(v["indexOf"])(JU,e)>=0}function e$(t){return t+"Axis"}function n$(t,e){var n,r=Object(v["createHashMap"])(),i=[],o=Object(v["createHashMap"])();t.eachComponent({mainType:"dataZoom",query:e},(function(t){o.get(t.uid)||s(t)}));do{n=!1,t.eachComponent("dataZoom",a)}while(n);function a(t){!o.get(t.uid)&&l(t)&&(s(t),n=!0)}function s(t){o.set(t.uid,!0),i.push(t),u(t)}function l(t){var e=!1;return t.eachTargetAxis((function(t,n){var i=r.get(t);i&&i[n]&&(e=!0)})),e}function u(t){t.eachTargetAxis((function(t,e){(r.get(t)||r.set(t,[]))[e]=!0}))}return i}function r$(t){var e=t.ecModel,n={infoList:[],infoMap:Object(v["createHashMap"])()};return t.eachTargetAxis((function(t,r){var i=e.getComponent(e$(t),r);if(i){var o=i.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(i)}}})),n}var i$=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}(),o$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return p(e,t),e.prototype.init=function(t,e,n){var r=a$(t);this.settledOption=r,this.mergeDefaultAndTheme(t,n),this._doInit(r)},e.prototype.mergeOption=function(t){var e=a$(t);Object(v["merge"])(this.option,t,!0),Object(v["merge"])(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;Object(v["each"])([["start","startValue"],["end","endValue"]],(function(t,r){"value"===this._rangePropMode[r]&&(e[t[0]]=n[t[0]]=null)}),this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=Object(v["createHashMap"])(),n=this._fillSpecifiedTargetAxis(e);n?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each((function(t){t.indexList.length&&(this._noTarget=!1)}),this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return Object(v["each"])(QU,(function(n){var r=this.getReferringComponents(e$(n),Ji);if(r.specified){e=!0;var i=new i$;Object(v["each"])(r.models,(function(t){i.add(t.componentIndex)})),t.set(n,i)}}),this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,r=!0;if(r){var i="vertical"===e?"y":"x",o=n.findComponents({mainType:i+"Axis"});a(o,i)}if(r){o=n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}});a(o,"single")}function a(e,n){var i=e[0];if(i){var o=new i$;if(o.add(i.componentIndex),t.set(n,o),r=!1,"x"===n||"y"===n){var a=i.getReferringComponents("grid",Qi).models[0];a&&Object(v["each"])(e,(function(t){i.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",Qi).models[0]&&o.add(t.componentIndex)}))}}}r&&Object(v["each"])(QU,(function(e){if(r){var i=n.findComponents({mainType:e$(e),filter:function(t){return"category"===t.get("type",!0)}});if(i[0]){var o=new i$;o.add(i[0].componentIndex),t.set(e,o),r=!1}}}),this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis((function(e){!t&&(t=e)}),this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");Object(v["each"])([["start","startValue"],["end","endValue"]],(function(r,i){var o=null!=t[r[0]],a=null!=t[r[1]];o&&!a?e[i]="percent":!o&&a?e[i]="value":n?e[i]=n[i]:o&&(e[i]="percent")}))},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis((function(e,n){null==t&&(t=this.ecModel.getComponent(e$(e),n))}),this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(n,r){Object(v["each"])(n.indexList,(function(n){t.call(e,r,n)}))}))},e.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(e$(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;Object(v["each"])([["start","startValue"],["end","endValue"]],(function(r){null==t[r[0]]&&null==t[r[1]]||(e[r[0]]=n[r[0]]=t[r[0]],e[r[1]]=n[r[1]]=t[r[1]])}),this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;Object(v["each"])(["start","startValue","end","endValue"],(function(n){e[n]=t[n]}))},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),r=0;ro[1];if(c&&!h&&!f)return!0;c&&(i=!0),h&&(e=!0),f&&(n=!0)}return i&&e&&n}))}else p$(r,(function(n){if("empty"===i)t.setData(e=e.map(n,(function(t){return a(t)?t:NaN})));else{var r={};r[n]=o,e.selectRange(r)}}));p$(r,(function(t){e.setApproximateExtent(o,t)}))}}))}function a(t){return t>=o[0]&&t<=o[1]}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;p$(["min","max"],(function(r){var i=e.get(r+"Span"),o=e.get(r+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?i=Qr(n[0]+o,n,[0,100],!0):null!=i&&(o=Qr(i,[0,100],n,!0)-n[0]),t[r+"Span"]=i,t[r+"ValueSpan"]=o}),this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var r=ii(n,[0,500]);r=Math.min(r,20);var i=t.axis.scale.rawExtentInfo;0!==e[0]&&i.setDeterminedMinMax("min",+n[0].toFixed(r)),100!==e[1]&&i.setDeterminedMinMax("max",+n[1].toFixed(r)),i.freeze()}},t}();function y$(t,e,n){var r=[1/0,-1/0];p$(n,(function(t){NS(r,t.getData(),e)}));var i=t.getAxisModel(),o=SS(i.axis.scale,i,r).calculate();return[o.min,o.max]}var m$=v$,b$={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(r,i){var o=t.getComponent(e$(r),i);e(r,i,o,n)}))}))}e((function(t,e,n,r){n.__dzAxisProxy=null}));var n=[];e((function(e,r,i,o){i.__dzAxisProxy||(i.__dzAxisProxy=new m$(e,r,o,t),n.push(i.__dzAxisProxy))}));var r=Object(v["createHashMap"])();return Object(v["each"])(n,(function(t){Object(v["each"])(t.getTargetSeriesModels(),(function(t){r.set(t.uid,t)}))})),r},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(e,n){t.getAxisProxy(e,n).reset(t)})),t.eachTargetAxis((function(n,r){t.getAxisProxy(n,r).filterData(t,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),r=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}}))}},_$=b$;function x$(t){t.registerAction("dataZoom",(function(t,e){var n=n$(e,t);Object(v["each"])(n,(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))}var w$=!1;function S$(t){w$||(w$=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,_$),x$(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function O$(t){t.registerComponentModel(u$),t.registerComponentView(d$),S$(t)}var C$=function(){function t(){}return t}(),k$={};function A$(t,e){k$[t]=e}function M$(t){return k$[t]}var T$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;v["each"](this.option.feature,(function(t,n){var r=M$(n);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(e)),v["merge"](t,r.defaultOption))}))},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(vh),I$=T$;function E$(t,e,n){var r=e.getBoxLayoutParams(),i=e.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=ah(r,o,i);ih(e.get("orient"),t,e.get("itemGap"),a.width,a.height),sh(t,r,o,i)}function P$(t,e){var n=Gc(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),t=new Os({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1}),t}var j$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.render=function(t,e,n,r){var i=this.group;if(i.removeAll(),t.get("show")){var o=+t.get("itemSize"),a="vertical"===t.get("orient"),s=t.get("feature")||{},l=this._features||(this._features={}),u=[];v["each"](s,(function(t,e){u.push(e)})),new mx(this._featureNames||[],u).add(c).update(c).remove(v["curry"](c,null)).execute(),this._featureNames=u,E$(i,t,n),i.add(P$(i.getBoundingRect(),t)),a||i.eachChild((function(t){var e=t.__title,r=t.ensureState("emphasis"),a=r.textConfig||(r.textConfig={}),s=t.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!v["isFunction"](l)&&e){var u=l.style||(l.style={}),c=vr(e,qs.makeFont(u)),h=t.x+i.x,f=t.y+i.y+o,d=!1;f+c.height>n.getHeight()&&(a.position="top",d=!0);var p=d?-5-c.height:o+10;h+c.width/2>n.getWidth()?(a.position=["100%",p],u.align="right"):h-c.width/2<0&&(a.position=[0,p],u.align="left")}}))}function c(i,o){var a,c=u[i],f=u[o],d=s[c],p=new Wu(d,t,t.ecModel);if(r&&null!=r.newTitle&&r.featureName===c&&(d.title=r.newTitle),c&&!f){if(L$(c))a={onclick:p.option.onclick,featureName:c};else{var g=M$(c);if(!g)return;a=new g}l[c]=a}else if(a=l[f],!a)return;a.uid=$u("toolbox-feature"),a.model=p,a.ecModel=e,a.api=n;var v=a instanceof C$;c||!f?!p.get("show")||v&&a.unusable?v&&a.remove&&a.remove(e,n):(h(p,a,c),p.setIconStatus=function(t,e){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,r[t]&&("emphasis"===e?Ml:Tl)(r[t])},a instanceof C$&&a.render&&a.render(p,e,n,r)):v&&a.dispose&&a.dispose(e,n)}function h(r,s,l){var u,c,h=r.getModel("iconStyle"),f=r.getModel(["emphasis","iconStyle"]),d=s instanceof C$&&s.getIcons?s.getIcons():r.get("icon"),p=r.get("title")||{};v["isString"](d)?(u={},u[l]=d):u=d,v["isString"](p)?(c={},c[l]=p):c=p;var g=r.iconPaths={};v["each"](u,(function(l,u){var d=Zv(l,{},{x:-o/2,y:-o/2,width:o,height:o});d.setStyle(h.getItemStyle());var p=d.ensureState("emphasis");p.style=f.getItemStyle();var y=new qs({style:{text:c[u],align:f.get("textAlign"),borderRadius:f.get("textBorderRadius"),padding:f.get("textPadding"),fill:null},ignore:!0});d.setTextContent(y),ny({el:d,componentModel:t,itemName:u,formatterParamsExtra:{title:c[u]}}),d.__title=c[u],d.on("mouseover",(function(){var e=f.getItemStyle(),r=a?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";y.setStyle({fill:f.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:f.get("textBackgroundColor")}),d.setTextConfig({position:f.get("textPosition")||r}),y.ignore=!t.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==r.get(["iconStatus",u])&&n.leaveEmphasis(this),y.hide()})),("emphasis"===r.get(["iconStatus",u])?Ml:Tl)(d),i.add(d),d.on("click",v["bind"](s.onclick,s,e,n,u)),g[u]=d}))}},e.prototype.updateView=function(t,e,n,r){v["each"](this._features,(function(t){t instanceof C$&&t.updateView&&t.updateView(t.model,e,n,r)}))},e.prototype.remove=function(t,e){v["each"](this._features,(function(n){n instanceof C$&&n.remove&&n.remove(t,e)})),this.group.removeAll()},e.prototype.dispose=function(t,e){v["each"](this._features,(function(n){n instanceof C$&&n.dispose&&n.dispose(t,e)}))},e.type="toolbox",e}(Up);function L$(t){return 0===t.indexOf("my")}var D$=j$,R$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.onclick=function(t,e){var n=this.model,r=n.get("name")||t.get("title.0.text")||"echarts",i="svg"===e.getZr().painter.getType(),o=i?"svg":n.get("type",!0)||"png",a=e.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=g["a"].browser;if(Object(v["isFunction"])(MouseEvent)&&(s.newEdge||!s.ie&&!s.edge)){var l=document.createElement("a");l.download=r+"."+o,l.target="_blank",l.href=a;var u=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});l.dispatchEvent(u)}else if(window.navigator.msSaveOrOpenBlob||i){var c=a.split(","),h=c[0].indexOf("base64")>-1,f=i?decodeURIComponent(c[1]):c[1];h&&(f=window.atob(f));var d=r+"."+o;if(window.navigator.msSaveOrOpenBlob){var p=f.length,y=new Uint8Array(p);while(p--)y[p]=f.charCodeAt(p);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,d)}else{var b=document.createElement("iframe");document.body.appendChild(b);var _=b.contentWindow,x=_.document;x.open("image/svg+xml","replace"),x.write(f),x.close(),_.focus(),x.execCommand("SaveAs",!0,d),document.body.removeChild(b)}}else{var w=n.get("lang"),S='',O=window.open();O.document.write(S),O.document.title=r}},e.getDefaultOption=function(t){var e={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return e},e}(C$),N$=R$,B$="__ec_magicType_stack__",F$=[["line","bar"],["stack"]],z$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return v["each"](t.get("type"),(function(t){e[t]&&(n[t]=e[t])})),n},e.getDefaultOption=function(t){var e={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return e},e.prototype.onclick=function(t,e,n){var r=this.model,i=r.get(["seriesIndex",n]);if(V$[n]){var o,a={series:[]},s=function(t){var e=t.subType,i=t.id,o=V$[n](e,i,t,r);o&&(v["defaults"](o,t.option),a.series.push(o));var s=t.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var u=l.dim,c=u+"Axis",h=t.getReferringComponents(c,Qi).models[0],f=h.componentIndex;a[c]=a[c]||[];for(var d=0;d<=f;d++)a[c][f]=a[c][f]||{};a[c][f].boundaryGap="bar"===n}}};v["each"](F$,(function(t){v["indexOf"](t,n)>=0&&v["each"](t,(function(t){r.setIconStatus(t,"normal")}))})),r.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==i?null:{seriesIndex:i}},s);var l=n;"stack"===n&&(o=v["merge"]({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),"emphasis"!==r.get(["iconStatus",n])&&(l="tiled")),e.dispatchAction({type:"changeMagicType",currentType:l,newOption:a,newTitle:o,featureName:"magicType"})}},e}(C$),V$={line:function(t,e,n,r){if("bar"===t)return v["merge"]({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(t,e,n,r){if("line"===t)return v["merge"]({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(t,e,n,r){var i=n.get("stack")===B$;if("line"===t||"bar"===t)return r.setIconStatus("stack",i?"normal":"emphasis"),v["merge"]({id:e,stack:i?"":B$},r.get(["option","stack"])||{},!0)}};J_({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)}));var q$=z$,G$=new Array(60).join("-"),H$="\t";function W$(t){var e={},n=[],r=[];return t.eachRawSeries((function(t){var i=t.coordinateSystem;if(!i||"cartesian2d"!==i.type&&"polar"!==i.type)n.push(t);else{var o=i.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;e[a]||(e[a]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),e[a].series.push(t)}else n.push(t)}})),{seriesGroupByCategoryAxis:e,other:n,meta:r}}function U$(t){var e=[];return v["each"](t,(function(t,n){var r=t.categoryAxis,i=t.valueAxis,o=i.dim,a=[" "].concat(v["map"](t.series,(function(t){return t.name}))),s=[r.model.getCategories()];v["each"](t.series,(function(t){var e=t.getRawData();s.push(t.getRawData().mapArray(e.mapDimension(o),(function(t){return t})))}));for(var l=[a.join(H$)],u=0;u=0)return!0}var Z$=new RegExp("["+H$+"]+","g");function Q$(t){for(var e=t.split(/\n+/g),n=X$(e.shift()).split(Z$),r=[],i=v["map"](n,(function(t){return{name:t,data:[]}})),o=0;o=0;i--){var o=n[i];if(o[r])break}if(i<0){var a=t.queryComponents({mainType:"dataZoom",subType:"select",id:r})[0];if(a){var s=a.getPercentRange();n[0][r]={dataZoomId:r,start:s[0],end:s[1]}}}})),n.push(e)}function sY(t){var e=cY(t),n=e[e.length-1];e.length>1&&e.pop();var r={};return iY(n,(function(t,n){for(var i=e.length-1;i>=0;i--)if(t=e[i][n],t){r[n]=t;break}})),r}function lY(t){oY(t).snapshots=null}function uY(t){return cY(t).length}function cY(t){var e=oY(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var hY=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.onclick=function(t,e){lY(t),e.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var e={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return e},e}(C$);J_({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));var fY=hY,dY=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],pY=function(){function t(t,e,n){var r=this;this._targetInfoList=[];var i=vY(e,t);Object(v["each"])(yY,(function(t,e){(!n||!n.include||Object(v["indexOf"])(n.include,e)>=0)&&t(i,r._targetInfoList)}))}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,(function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var r=_Y[t.brushType](0,n,e);t.__rangeOffset={offset:wY[t.brushType](r.values,t.range,[1,1]),xyMinMax:r.xyMinMax}}})),t},t.prototype.matchOutputRanges=function(t,e,n){Object(v["each"])(t,(function(t){var r=this.findTargetInfo(t,e);r&&!0!==r&&Object(v["each"])(r.coordSyses,(function(r){var i=_Y[t.brushType](1,r,t.range,!0);n(t,i.values,r,e)}))}),this)},t.prototype.setInputRanges=function(t,e){Object(v["each"])(t,(function(t){var n=this.findTargetInfo(t,e);if(t.range=t.range||[],n&&!0!==n){t.panelId=n.panelId;var r=_Y[t.brushType](0,n.coordSys,t.coordRange),i=t.__rangeOffset;t.range=i?wY[t.brushType](r.values,i.offset,OY(r.xyMinMax,i.xyMinMax)):r.values}}),this)},t.prototype.makePanelOpts=function(t,e){return Object(v["map"])(this._targetInfoList,(function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:tF(r),isTargetByCursor:nF(r,t,n.coordSysModel),getLinearBrushOtherExtent:eF(r)}}))},t.prototype.controlSeries=function(t,e,n){var r=this.findTargetInfo(t,n);return!0===r||r&&Object(v["indexOf"])(r.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,r=vY(e,t),i=0;it[1]&&t.reverse(),t}function vY(t,e){return Ki(t,e,{includeMainTypes:dY})}var yY={grid:function(t,e){var n=t.xAxisModels,r=t.yAxisModels,i=t.gridModels,o=Object(v["createHashMap"])(),a={},s={};(n||r||i)&&(Object(v["each"])(n,(function(t){var e=t.axis.grid.model;o.set(e.id,e),a[e.id]=!0})),Object(v["each"])(r,(function(t){var e=t.axis.grid.model;o.set(e.id,e),s[e.id]=!0})),Object(v["each"])(i,(function(t){o.set(t.id,t),a[t.id]=!0,s[t.id]=!0})),o.each((function(t){var i=t.coordinateSystem,o=[];Object(v["each"])(i.getCartesians(),(function(t,e){(Object(v["indexOf"])(n,t.getAxis("x").model)>=0||Object(v["indexOf"])(r,t.getAxis("y").model)>=0)&&o.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:bY.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})})))},geo:function(t,e){Object(v["each"])(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:bY.geo})}))}},mY=[function(t,e){var n=t.xAxisModel,r=t.yAxisModel,i=t.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],bY={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(Gv(t)),e}},_Y={lineX:Object(v["curry"])(xY,0),lineY:Object(v["curry"])(xY,1),rect:function(t,e,n,r){var i=t?e.pointToData([n[0][0],n[1][0]],r):e.dataToPoint([n[0][0],n[1][0]],r),o=t?e.pointToData([n[0][1],n[1][1]],r):e.dataToPoint([n[0][1],n[1][1]],r),a=[gY([i[0],o[0]]),gY([i[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n,r){var i=[[1/0,-1/0],[1/0,-1/0]],o=Object(v["map"])(n,(function(n){var o=t?e.pointToData(n,r):e.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],o[0]),i[1][0]=Math.min(i[1][0],o[1]),i[0][1]=Math.max(i[0][1],o[0]),i[1][1]=Math.max(i[1][1],o[1]),o}));return{values:o,xyMinMax:i}}};function xY(t,e,n,r){var i=n.getAxis(["x","y"][t]),o=gY(Object(v["map"])([0,1],(function(t){return e?i.coordToData(i.toLocalCoord(r[t]),!0):i.toGlobalCoord(i.dataToCoord(r[t]))}))),a=[];return a[t]=o,a[1-t]=[NaN,NaN],{values:o,xyMinMax:a}}var wY={lineX:Object(v["curry"])(SY,0),lineY:Object(v["curry"])(SY,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return Object(v["map"])(t,(function(t,r){return[t[0]-n[0]*e[r][0],t[1]-n[1]*e[r][1]]}))}};function SY(t,e,n,r){return[e[0]-r[t]*n[0],e[1]-r[t]*n[1]]}function OY(t,e){var n=CY(t),r=CY(e),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function CY(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var kY=pY,AY=v["each"],MY=Gi("toolbox-dataZoom_"),TY=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.render=function(t,e,n,r){this._brushController||(this._brushController=new JB(n.getZr()),this._brushController.on("brush",v["bind"](this._onBrush,this)).mount()),jY(t,e,this,r,n),PY(t,e)},e.prototype.onclick=function(t,e,n){IY[n].call(this)},e.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var e=t.areas;if(t.isEnd&&e.length){var n={},r=this.ecModel;this._brushController.updateCovers([]);var i=new kY(EY(this.model),r,{include:["grid"]});i.matchOutputRanges(e,r,(function(t,e,n){if("cartesian2d"===n.type){var r=t.brushType;"rect"===r?(o("x",n,e[0]),o("y",n,e[1])):o({lineX:"x",lineY:"y"}[r],n,e)}})),aY(r,n),this._dispatchZoomAction(n)}function o(t,e,i){var o=e.getAxis(t),s=o.model,l=a(t,s,r),u=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(i=BN(0,i.slice(),o.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),l&&(n[l.id]={dataZoomId:l.id,startValue:i[0],endValue:i[1]})}function a(t,e,n){var r;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var i=n.getAxisModel(t,e.componentIndex);i&&(r=n)})),r}},e.prototype._dispatchZoomAction=function(t){var e=[];AY(t,(function(t,n){e.push(v["clone"](t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},e.getDefaultOption=function(t){var e={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return e},e}(C$),IY={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(sY(this.ecModel))}};function EY(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}function PY(t,e){t.setIconStatus("back",uY(e)>1?"emphasis":"normal")}function jY(t,e,n,r,i){var o=n._isZoomActive;r&&"takeGlobalCursor"===r.type&&(o="dataZoomSelect"===r.key&&r.dataZoomSelectActive),n._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var a=new kY(EY(t),e,{include:["grid"]}),s=a.makePanelOpts(i,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!o||!s.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}Fh("dataZoom",(function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var r=e.getModel(n),i=[],o=EY(r),a=Ki(t,o);return AY(a.xAxisModels,(function(t){return s(t,"xAxis","xAxisIndex")})),AY(a.yAxisModels,(function(t){return s(t,"yAxis","yAxisIndex")})),i}function s(t,e,n){var o=t.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:MY+e+o};a[n]=o,i.push(a)}}));var LY=TY;function DY(t){t.registerComponentModel(I$),t.registerComponentView(D$),A$("saveAsImage",N$),A$("magicType",q$),A$("dataView",rY),A$("dataZoom",LY),A$("restore",fY),px(O$)}var RY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(vh),NY=RY;function BY(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function FY(t){if(g["a"].domSupported)for(var e=document.documentElement.style,n=0,r=t.length;n-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,h=s+i,f=h*Math.abs(Math.cos(c))+h*Math.abs(Math.sin(c)),d=Math.round(100*((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-h)/2))/100;l+=";"+a+":-"+d+"px";var p=e+" solid "+i+"px;",g=["position:absolute;width:"+s+"px;height:"+s+"px;",l+";"+u+";","border-bottom:"+p,"border-right:"+p,"background-color:"+r+";"];return'
'}function XY(t,e){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+t/2+"s "+n,i="opacity"+r+",visibility"+r;return e||(r=" "+t+"s "+n,i+=g["a"].transformSupported?","+WY+r:",left"+r+",top"+r),HY+":"+i}function KY(t,e,n){var r=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!g["a"].transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=g["a"].transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+WY+":"+a+";":[["top",0],["left",0],[zY,a]]}function ZY(t){var e=[],n=t.get("fontSize"),r=t.getTextColor();r&&e.push("color:"+r),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var i=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+i),Object(v["each"])(["decoration","align"],(function(n){var r=t.get(n);r&&e.push("text-"+n+":"+r)})),e.join(";")}function QY(t,e,n){var r=[],i=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),c=t.getModel("textStyle"),h=Mp(t,"html"),f=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+f),e&&i&&r.push(XY(i,n)),o&&r.push("background-color:"+o),Object(v["each"])(["width","color","radius"],(function(e){var n="border-"+e,i=qc(n),o=t.get(i);null!=o&&r.push(n+":"+o+("color"===e?"":"px"))})),r.push(ZY(c)),null!=h&&r.push("padding:"+Gc(h).join("px ")+"px"),r.join(";")+";"}function JY(t,e,n,r,i){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&Q(t,a,document.body,r,i)}else{t[0]=r,t[1]=i;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var tX=function(){function t(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,g["a"].wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;JY(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(r):t.appendChild(r),this._container=t;var a=this;r.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},r.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=i.handler,n=i.painter.getViewportRoot();ft(n,t,!0),e.dispatch("mousemove",t)}},r.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){var e=this._container,n=GY(e,"position"),r=e.style;"absolute"!==r.position&&"absolute"!==n&&(r.position="relative");var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=UY+QY(t,!this._firstShow,this._longHide)+KY(i[0],i[1],!0)+"border-color:"+Qc(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,r,i){var o=this.el;if(null!=t){var a="";if(Object(v["isString"])(i)&&"item"===n.get("trigger")&&!BY(n)&&(a=YY(n,r,i)),Object(v["isString"])(t))o.innerHTML=t+a;else if(t){o.innerHTML="",Object(v["isArray"])(t)||(t=[t]);for(var s=0;s=0?this._tryShow(n,r):"leave"===t&&this._hide(r))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,r=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,r){if(r.from!==this.uid&&!g["a"].node&&n.getDom()){var i=cX(r,n);this._ticket="";var o=r.dataByCoordSys,a=gX(r,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var l=sX;l.x=r.x,l.y=r.y,l.update(),Gs(l).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:l},i)}else if(o)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:o,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,r))return;var u=WH(r,e),c=u.point[0],h=u.point[1];null!=c&&null!=h&&this._tryShow({offsetX:c,offsetY:h,target:u.el,position:r.position,positionDefault:"bottom"},i)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},e.prototype.manuallyHideTip=function(t,e,n,r){var i=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(cX(r,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,r){var i=r.seriesIndex,o=r.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=o&&null!=a){var s=e.getSeriesByIndex(i);if(s){var l=s.getData(),u=uX([l.getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===u.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o,position:r.position}),!0}}},e.prototype._tryShow=function(t,e){var n=t.target,r=this._tooltipModel;if(r){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){var o,a;this._lastDataByCoordSys=null,fm(n,(function(t){return null!=Gs(t).dataIndex?(o=t,!0):null!=Gs(t).tooltipConfig?(a=t,!0):void 0}),!0),o?this._showSeriesItemTooltip(t,o,e):a?this._showComponentItemTooltip(t,a,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=Object(v["bind"])(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,r=this._tooltipModel,i=[e.offsetX,e.offsetY],o=uX([e.tooltipOption],r),a=this._renderMode,s=[],l=pp("section",{blocks:[],noHeader:!0}),u=[],c=new Tp;Object(v["each"])(t,(function(t){Object(v["each"])(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value;if(e&&null!=i){var o=xH(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),h=pp("section",{header:o,noHeader:!Object(v["trim"])(o),sortBlocks:!0,blocks:[]});l.blocks.push(h),Object(v["each"])(t.seriesDataIndices,(function(l){var f=n.getSeriesByIndex(l.seriesIndex),d=l.dataIndexInside,p=f.getDataParams(d);if(!(p.dataIndex<0)){p.axisDim=t.axisDim,p.axisIndex=t.axisIndex,p.axisType=t.axisType,p.axisId=t.axisId,p.axisValue=ES(e.axis,{value:i}),p.axisValueLabel=o,p.marker=c.makeTooltipMarker("item",Qc(p.color),a);var g=Od(f.formatTooltip(d,!0,null)),y=g.frag;if(y){var m=uX([f],r).get("valueFormatter");h.blocks.push(m?Object(v["extend"])({valueFormatter:m},y):y)}g.text&&u.push(g.text),s.push(p)}}))}}))})),l.blocks.reverse(),u.reverse();var h=e.position,f=o.get("order"),d=_p(l,c,a,f,n.get("useUTC"),o.get("textStyle"));d&&u.unshift(d);var p="richText"===a?"\n\n":"
",g=u.join(p);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,h,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",i[0],i[1],h,null,c)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var r=this._ecModel,i=Gs(e),o=i.seriesIndex,a=r.getSeriesByIndex(o),s=i.dataModel||a,l=i.dataIndex,u=i.dataType,c=s.getData(u),h=this._renderMode,f=t.positionDefault,d=uX([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),p=d.get("trigger");if(null==p||"item"===p){var g=s.getDataParams(l,u),y=new Tp;g.marker=y.makeTooltipMarker("item",Qc(g.color),h);var m=Od(s.formatTooltip(l,!1,u)),b=d.get("order"),_=d.get("valueFormatter"),x=m.frag,w=x?_p(_?Object(v["extend"])({valueFormatter:_},x):x,y,h,b,r.get("useUTC"),d.get("textStyle")):m.text,S="item_"+s.name+"_"+l;this._showOrMove(d,(function(){this._showTooltipContent(d,w,g,S,t.offsetX,t.offsetY,t.position,t.target,y)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var r=Gs(e),i=r.tooltipConfig,o=i.option||{};if(Object(v["isString"])(o)){var a=o;o={content:a,formatter:a}}var s=[o],l=this._ecModel.getComponent(r.componentMainType,r.componentIndex);l&&s.push(l),s.push({formatter:o.content});var u=t.positionDefault,c=uX(s,this._tooltipModel,u?{position:u}:null),h=c.get("content"),f=Math.random()+"",d=new Tp;this._showOrMove(c,(function(){var n=Object(v["clone"])(c.get("formatterParams")||{});this._showTooltipContent(c,h,n,f,t.offsetX,t.offsetY,t.position,e,d)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,r,i,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var c=t.get("formatter");a=a||t.get("position");var h=e,f=this._getNearestPoint([i,o],n,t.get("trigger"),t.get("borderColor")),d=f.color;if(c)if(Object(v["isString"])(c)){var p=t.ecModel.get("useUTC"),g=Object(v["isArray"])(n)?n[0]:n,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=c,y&&(h=Sc(g.axisValue,h,p)),h=$c(h,n,!0)}else if(Object(v["isFunction"])(c)){var m=Object(v["bind"])((function(e,r){e===this._ticket&&(u.setContent(r,l,t,d,a),this._updatePosition(t,a,i,o,u,n,s))}),this);this._ticket=r,h=c(n,r,m)}else h=c;u.setContent(h,l,t,d,a),u.show(t,d),this._updatePosition(t,a,i,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,r){return"axis"===n||Object(v["isArray"])(e)?{color:r||("html"===this._renderMode?"#fff":"none")}:Object(v["isArray"])(e)?void 0:{color:r||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,r,i,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=i.getSize(),c=t.get("align"),h=t.get("verticalAlign"),f=a&&a.getBoundingRect().clone();if(a&&f.applyTransform(a.transform),Object(v["isFunction"])(e)&&(e=e([n,r],o,i.el,f,{viewSize:[s,l],contentSize:u.slice()})),Object(v["isArray"])(e))n=Jr(e[0],s),r=Jr(e[1],l);else if(Object(v["isObject"])(e)){var d=e;d.width=u[0],d.height=u[1];var p=ah(d,{width:s,height:l});n=p.x,r=p.y,c=null,h=null}else if(Object(v["isString"])(e)&&a){var g=dX(e,f,u,t.get("borderWidth"));n=g[0],r=g[1]}else{g=hX(n,r,i,s,l,c?null:20,h?null:20);n=g[0],r=g[1]}if(c&&(n-=pX(c)?u[0]/2:"right"===c?u[0]:0),h&&(r-=pX(h)?u[1]/2:"bottom"===h?u[1]:0),BY(t)){g=fX(n,r,i,s,l);n=g[0],r=g[1]}i.moveTo(n,r)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===t.length;return i&&Object(v["each"])(n,(function(n,o){var a=n.dataByAxis||[],s=t[o]||{},l=s.dataByAxis||[];i=i&&a.length===l.length,i&&Object(v["each"])(a,(function(t,n){var o=l[n]||{},a=t.seriesDataIndices||[],s=o.seriesDataIndices||[];i=i&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===s.length,i&&Object(v["each"])(a,(function(t,e){var n=s[e];i=i&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),r&&Object(v["each"])(t.seriesDataIndices,(function(t){var n=t.seriesIndex,o=e[n],a=r[n];o&&a&&a.data!==o.data&&(i=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!i},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!g["a"].node&&e.getDom()&&(by(this,"_updatePosition"),this._tooltipContent.dispose(),qH("itemTooltip",e))},e.type="tooltip",e}(Up);function uX(t,e,n){var r,i=e.ecModel;n?(r=new Wu(n,i,i),r=new Wu(e.option,r,i)):r=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof Wu&&(a=a.get("tooltip",!0)),Object(v["isString"])(a)&&(a={formatter:a}),a&&(r=new Wu(a,r,i)))}return r}function cX(t,e){return t.dispatchAction||Object(v["bind"])(e.dispatchAction,e)}function hX(t,e,n,r,i,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(t+l+o+2>r?t-=l+o:t+=o),null!=a&&(e+u+a>i?e-=u+a:e+=a),[t,e]}function fX(t,e,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,r)-a,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function dX(t,e,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-i/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-i/2,l=e.y+c+a;break;case"left":s=e.x-i-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}function pX(t){return"center"===t||"middle"===t}function gX(t,e,n){var r=Zi(t).queryOptionMap,i=r.keys()[0];if(i&&"series"!==i){var o=to(e,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s,l=n.getViewOfComponentModel(a);return l.group.traverse((function(e){var n=Gs(e).tooltipConfig;if(n&&n.name===t.name)return s=e,!0})),s?{componentMainType:i,componentIndex:a.componentIndex,el:s}:void 0}}}var vX=lX;function yX(t){px(iW),t.registerComponentModel(NY),t.registerComponentView(vX),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},v["noop"]),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},v["noop"])}var mX=["rect","polygon","keep","clear"];function bX(t,e){var n=ki(t?t.brush:[]);if(n.length){var r=[];v["each"](n,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(r=r.concat(e))}));var i=t&&t.toolbox;v["isArray"](i)&&(i=i[0]),i||(i={feature:{}},t.toolbox=[i]);var o=i.feature||(i.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,r),_X(s),e&&!s.length&&s.push.apply(s,mX)}}function _X(t){var e={};v["each"](t,(function(t){e[t]=1})),t.length=0,v["each"](e,(function(e,n){t.push(n)}))}var xX=v["each"];function wX(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function SX(t,e,n){var r={};return xX(e,(function(e){var o=r[e]=i();xX(t[e],(function(t,r){if(UL.isValidType(r)){var i={type:r,visual:t};n&&n(i,e),o[r]=new UL(i),"opacity"===r&&(i=v["clone"](i),i.type="colorAlpha",o.__hidden.__alphaForOpacity=new UL(i))}}))})),r;function i(){var t=function(){};t.prototype.__hidden=t.prototype;var e=new t;return e}}function OX(t,e,n){var r;v["each"](n,(function(t){e.hasOwnProperty(t)&&wX(e[t])&&(r=!0)})),r&&v["each"](n,(function(n){e.hasOwnProperty(n)&&wX(e[n])?t[n]=v["clone"](e[n]):delete t[n]}))}function CX(t,e,n,r,i,o){var a,s={};function l(t){return am(n,a,t)}function u(t,e){lm(n,a,t,e)}function c(t,c){a=null==o?t:c;var h=n.getRawDataItem(a);if(!h||!1!==h.visualMap)for(var f=r.call(i,t),d=e[f],p=s[f],g=0,v=p.length;ge[0][1]&&(e[0][1]=o[0]),o[1]e[1][1]&&(e[1][1]=o[1])}return e&&VX(e)}};function VX(t){return new qt(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var qX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new JB(e.getZr())).on("brush",v["bind"](this._onBrush,this)).mount()},e.prototype.render=function(t,e,n,r){this.model=t,this._updateController(t,e,n,r)},e.prototype.updateTransform=function(t,e,n,r){LX(e),this._updateController(t,e,n,r)},e.prototype.updateVisual=function(t,e,n,r){this.updateTransform(t,e,n,r)},e.prototype.updateView=function(t,e,n,r){this._updateController(t,e,n,r)},e.prototype._updateController=function(t,e,n,r){(!r||r.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:v["clone"](n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:v["clone"](n),$from:e})},e.type="brush",e}(Up),GX=qX,HX="#ddd",WX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return p(e,t),e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&OX(n,t,["inBrush","outOfBrush"]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:HX},r.hasOwnProperty("liftZ")||(r.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=v["map"](t,(function(t){return UX(this.option,t)}),this))},e.prototype.setBrushOption=function(t){this.brushOption=UX(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(vh);function UX(t,e){return v["merge"]({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new Wu(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var $X=WX,YX=["rect","polygon","lineX","lineY","keep","clear"],XX=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.render=function(t,e,n){var r,i,o;e.eachComponent({mainType:"brush"},(function(t){r=t.brushType,i=t.brushOption.brushMode||"single",o=o||!!t.areas.length})),this._brushType=r,this._brushMode=i,v["each"](t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===i:"clear"===e?o:e===r)?"emphasis":"normal")}))},e.prototype.updateView=function(t,e,n){this.render(t,e,n)},e.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return v["each"](t.get("type",!0),(function(t){e[t]&&(n[t]=e[t])})),n},e.prototype.onclick=function(t,e,n){var r=this._brushType,i=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?r:r!==n&&n,brushMode:"keep"===n?"multiple"===i?"single":"multiple":i}})},e.getDefaultOption=function(t){var e={show:!0,type:YX.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return e},e}(C$),KX=XX;function ZX(t){t.registerComponentView(GX),t.registerComponentModel($X),t.registerPreprocessor(bX),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,DX),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(t,e){e.eachComponent({mainType:"brush",query:t},(function(e){e.setAreas(t.areas)}))})),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},v["noop"]),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},v["noop"]),A$("brush",KX)}var QX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return p(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(vh),JX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var r=this.group,i=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=v["retrieve2"](t.get("textBaseline"),t.get("textVerticalAlign")),l=new qs({style:xu(i,{text:t.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=t.get("subtext"),h=new qs({style:xu(o,{text:c,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),f=t.get("link"),d=t.get("sublink"),p=t.get("triggerEvent",!0);l.silent=!f&&!p,h.silent=!d&&!p,f&&l.on("click",(function(){Jc(f,"_"+t.get("target"))})),d&&h.on("click",(function(){Jc(d,"_"+t.get("subtarget"))})),Gs(l).eventData=Gs(h).eventData=p?{componentType:"title",componentIndex:t.componentIndex}:null,r.add(l),c&&r.add(h);var g=r.getBoundingRect(),y=t.getBoxLayoutParams();y.width=g.width,y.height=g.height;var m=ah(y,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||(a=t.get("left")||t.get("right"),"middle"===a&&(a="center"),"right"===a?m.x+=m.width:"center"===a&&(m.x+=m.width/2)),s||(s=t.get("top")||t.get("bottom"),"center"===s&&(s="middle"),"bottom"===s?m.y+=m.height:"middle"===s&&(m.y+=m.height/2),s=s||"top"),r.x=m.x,r.y=m.y,r.markRedraw();var b={align:a,verticalAlign:s};l.setStyle(b),h.setStyle(b),g=r.getBoundingRect();var _=m.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var w=new Os({shape:{x:g.x-_[3],y:g.y-_[0],width:g.width+_[1]+_[3],height:g.height+_[0]+_[2],r:t.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});r.add(w)}},e.type="title",e}(Up);function tK(t){t.registerComponentModel(QX),t.registerComponentView(JX)}var eK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return p(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,n=e.data||[],r=e.axisType,i=this._names=[];"category"===r?(t=[],Object(v["each"])(n,(function(e,n){var r,o=zi(Ti(e),"");Object(v["isObject"])(e)?(r=Object(v["clone"])(e),r.value=n):r=n,t.push(r),i.push(o)}))):t=n;var o={category:"ordinal",time:"time",value:"number"}[r]||"number",a=this._data=new Yx([{name:"value",type:o}],this);a.initData(t,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(vh),nK=eK,rK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.type="timeline.slider",e.defaultOption=Ku(nK.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(nK);Object(v["mixin"])(rK,Sd.prototype);var iK=rK,oK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.type="timeline",e}(Up),aK=oK,sK=function(t){function e(e,n,r,i){var o=t.call(this,e,n,r)||this;return o.type=i||"value",o}return p(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(kO),lK=sK,uK=Math.PI,cK=Yi(),hK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,n){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var r=this._layout(t,n),i=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(r,t);t.formatTooltip=function(t){var e=a.scale.getLabel({value:t});return pp("nameValue",{noName:!0,value:e})},Object(v["each"])(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](r,i,a,t)}),this),this._renderAxisLabel(r,o,a,t),this._position(r,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,e){var n,r=t.get(["label","position"]),i=t.get("orient"),o=dK(t,e);n=null==r||"auto"===r?"horizontal"===i?o.y+o.height/2=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:uK/2},f="vertical"===i?o.height:o.width,d=t.getModel("controlStyle"),p=d.get("show",!0),g=p?d.get("itemSize"):0,y=p?d.get("itemGap"):0,m=g+y,b=t.get(["label","rotate"])||0;b=b*uK/180;var _=d.get("position",!0),x=p&&d.get("showPlayBtn",!0),w=p&&d.get("showPrevBtn",!0),S=p&&d.get("showNextBtn",!0),O=0,C=f;"left"===_||"bottom"===_?(x&&(a=[0,0],O+=m),w&&(s=[O,0],O+=m),S&&(l=[C-g,0],C-=m)):(x&&(a=[C-g,0],C-=m),w&&(s=[0,0],O+=m),S&&(l=[C-g,0],C-=m));var k=[O,C];return t.get("inverse")&&k.reverse(),{viewRect:o,mainLength:f,orient:i,rotation:h[i],labelRotation:b,labelPosOpt:n,labelAlign:t.get(["label","align"])||u[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||c[i],playPosition:a,prevBtnPosition:s,nextBtnPosition:l,axisExtent:k,controlSize:g,controlGap:y}},e.prototype._position=function(t,e){var n=this._mainGroup,r=this._labelGroup,i=t.viewRect;if("vertical"===t.orient){var o=wt(),a=i.x,s=i.y+i.height;kt(o,o,[-a,-s]),At(o,o,-uK/2),kt(o,o,[a,s]),i=i.clone(),i.applyTransform(o)}var l=y(i),u=y(n.getBoundingRect()),c=y(r.getBoundingRect()),h=[n.x,n.y],f=[r.x,r.y];f[0]=h[0]=l[0][0];var d=t.labelPosOpt;if(null==d||Object(v["isString"])(d)){var p="+"===d?0:1;m(h,u,l,1,p),m(f,c,l,1,1-p)}else{p=d>=0?0:1;m(h,u,l,1,p),f[1]=h[1]+d}function g(t){t.originX=l[0][0]-t.x,t.originY=l[1][0]-t.y}function y(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function m(t,e,n,r,i){t[r]+=n[r][i]-e[r][i]}n.setPosition(h),r.setPosition(f),n.rotation=r.rotation=t.rotation,g(n),g(r)},e.prototype._createAxis=function(t,e){var n=e.getData(),r=e.get("axisType"),i=fK(e,r);i.getTicks=function(){return n.mapArray(["value"],(function(t){return{value:t}}))};var o=n.getDataExtent("value");i.setExtent(o[0],o[1]),i.calcNiceTicks();var a=new lK("value",i,t.axisExtent,r);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new Nr;return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,n,r){var i=n.getExtent();if(r.get(["lineStyle","show"])){var o=new ev({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:Object(v["extend"])({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(o);var a=this._progressLine=new ev({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:Object(v["defaults"])({lineCap:"round",lineWidth:o.style.lineWidth},r.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(a)}},e.prototype._renderAxisTick=function(t,e,n,r){var i=this,o=r.getData(),a=n.scale.getTicks();this._tickSymbols=[],Object(v["each"])(a,(function(t){var a=n.dataToCoord(t.value),s=o.getItemModel(t.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),h={x:a,y:0,onclick:Object(v["bind"])(i._changeTimeline,i,t.value)},f=gK(s,l,e,h);f.ensureState("emphasis").style=u.getItemStyle(),f.ensureState("progress").style=c.getItemStyle(),Wl(f);var d=Gs(f);s.get("tooltip")?(d.dataIndex=t.value,d.dataModel=r):d.dataIndex=d.dataModel=null,i._tickSymbols.push(f)}))},e.prototype._renderAxisLabel=function(t,e,n,r){var i=this,o=n.getLabelModel();if(o.get("show")){var a=r.getData(),s=n.getViewLabels();this._tickLabels=[],Object(v["each"])(s,(function(r){var o=r.tickValue,s=a.getItemModel(o),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),c=s.getModel(["progress","label"]),h=n.dataToCoord(r.tickValue),f=new qs({x:h,y:0,rotation:t.labelRotation-t.rotation,onclick:Object(v["bind"])(i._changeTimeline,i,o),silent:!1,style:xu(l,{text:r.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});f.ensureState("emphasis").style=xu(u),f.ensureState("progress").style=xu(c),e.add(f),Wl(f),cK(f).dataIndex=o,i._tickLabels.push(f)}))}},e.prototype._renderControl=function(t,e,n,r){var i=t.controlSize,o=t.rotation,a=r.getModel("controlStyle").getItemStyle(),s=r.getModel(["emphasis","controlStyle"]).getItemStyle(),l=r.getPlayState(),u=r.get("inverse",!0);function c(t,n,l,u){if(t){var c=_r(Object(v["retrieve2"])(r.get(["controlStyle",n+"BtnSize"]),i),i),h=[0,-c/2,c,c],f=pK(r,n+"Icon",h,{x:t[0],y:t[1],originX:i/2,originY:0,rotation:u?-o:0,rectHover:!0,style:a,onclick:l});f.ensureState("emphasis").style=s,e.add(f),Wl(f)}}c(t.nextBtnPosition,"next",Object(v["bind"])(this._changeTimeline,this,u?"-":"+")),c(t.prevBtnPosition,"prev",Object(v["bind"])(this._changeTimeline,this,u?"+":"-")),c(t.playPosition,l?"stop":"play",Object(v["bind"])(this._handlePlayClick,this,!l),!0)},e.prototype._renderCurrentPointer=function(t,e,n,r){var i=r.getData(),o=r.getCurrentIndex(),a=i.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=Object(v["bind"])(s._handlePointerDrag,s),t.ondragend=Object(v["bind"])(s._handlePointerDragend,s),vK(t,s._progressLine,o,n,r,!0)},onUpdate:function(t){vK(t,s._progressLine,o,n,r)}};this._currentPointer=gK(a,a,this._mainGroup,{},this._currentPointer,l)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],r=this._axis,i=ei(r.getExtent().slice());n>i[1]&&(n=i[1]),n=0&&(a[o]=+a[o].toFixed(f)),[a,h]}var LK={min:Object(v["curry"])(jK,"min"),max:Object(v["curry"])(jK,"max"),average:Object(v["curry"])(jK,"average"),median:Object(v["curry"])(jK,"median")};function DK(t,e){var n=t.getData(),r=t.coordinateSystem;if(e&&!PK(e)&&!Object(v["isArray"])(e.coord)&&r){var i=r.dimensions,o=RK(e,n,r,t);if(e=Object(v["clone"])(e),e.type&&LK[e.type]&&o.baseAxis&&o.valueAxis){var a=Object(v["indexOf"])(i,o.baseAxis.dim),s=Object(v["indexOf"])(i,o.valueAxis.dim),l=LK[e.type](n,o.baseDataDim,o.valueDataDim,a,s);e.coord=l[0],e.value=l[1]}else{for(var u=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],c=0;c<2;c++)LK[u[c]]&&(u[c]=VK(n,n.mapDimension(i[c]),u[c]));e.coord=u}}return e}function RK(t,e,n,r){var i={};return null!=t.valueIndex||null!=t.valueDim?(i.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,i.valueAxis=n.getAxis(NK(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim),i.valueDataDim=e.mapDimension(i.valueAxis.dim)),i}function NK(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}function BK(t,e){return!(t&&t.containData&&e.coord&&!EK(e))||t.containData(e.coord)}function FK(t,e,n){return!(t&&t.containZone&&e.coord&&n.coord&&!EK(e)&&!EK(n))||t.containZone(e.coord,n.coord)}function zK(t,e){return t?function(t,n,r,i){var o=i<2?t.coord&&t.coord[i]:t.value;return Md(o,e[i])}:function(t,n,r,i){return Md(t.value,e[i])}}function VK(t,e,n){if("average"===n){var r=0,i=0;return t.each(e,(function(t,e){isNaN(t)||(r+=t,i++)})),r/i}return"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}var qK=Yi(),GK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.init=function(){this.markerGroupMap=Object(v["createHashMap"])()},e.prototype.render=function(t,e,n){var r=this,i=this.markerGroupMap;i.each((function(t){qK(t).keep=!1})),e.eachSeries((function(t){var i=MK.getMarkerModelFromSeries(t,r.type);i&&r.renderSeries(t,i,e,n)})),i.each((function(t){!qK(t).keep&&r.group.remove(t.group)}))},e.prototype.markKeep=function(t){qK(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var n=this;Object(v["each"])(t,(function(t){var r=MK.getMarkerModelFromSeries(t,n.type);if(r){var i=r.getData();i.eachItemGraphicEl((function(t){t&&(e?Il(t):El(t))}))}}))},e.type="marker",e}(Up),HK=GK;function WK(t,e,n){var r=e.coordinateSystem;t.each((function(i){var o,a=t.getItemModel(i),s=Jr(a.get("x"),n.getWidth()),l=Jr(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,i));else if(r){var u=t.get(r.dimensions[0],i),c=t.get(r.dimensions[1],i);o=r.dataToPoint([u,c])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(i,o)}))}var UK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=MK.getMarkerModelFromSeries(t,"markPoint");e&&(WK(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())}),this)},e.prototype.renderSeries=function(t,e,n,r){var i=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new pA),u=$K(i,t,e);e.setData(u),WK(e.getData(),t,r),u.each((function(t){var n=u.getItemModel(t),r=n.getShallow("symbol"),i=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(Object(v["isFunction"])(r)||Object(v["isFunction"])(i)||Object(v["isFunction"])(o)||Object(v["isFunction"])(s)){var c=e.getRawValue(t),h=e.getDataParams(t);Object(v["isFunction"])(r)&&(r=r(c,h)),Object(v["isFunction"])(i)&&(i=i(c,h)),Object(v["isFunction"])(o)&&(o=o(c,h)),Object(v["isFunction"])(s)&&(s=s(c,h))}var f=n.getModel("itemStyle").getItemStyle(),d=sm(a,"color");f.fill||(f.fill=d),u.setItemVisual(t,{symbol:r,symbolSize:i,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:f})})),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl((function(t){t.traverse((function(t){Gs(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(HK);function $K(t,e,n){var r;r=t?Object(v["map"])(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Object(v["extend"])(Object(v["extend"])({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new Yx(r,n),o=Object(v["map"])(n.get("data"),Object(v["curry"])(DK,e));t&&(o=Object(v["filter"])(o,Object(v["curry"])(BK,t)));var a=zK(!!t,r);return i.initData(o,null,a),i}var YK=UK;function XK(t){t.registerComponentModel(IK),t.registerComponentView(YK),t.registerPreprocessor((function(t){OK(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})}))}var KK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,r){return new e(t,n,r)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(MK),ZK=KK,QK=Yi(),JK=function(t,e,n,r){var i,o=t.getData();if(Object(v["isArray"])(r))i=r;else{var a=r.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=r.xAxis||null!=r.yAxis){var s=void 0,l=void 0;if(null!=r.yAxis||null!=r.xAxis)s=e.getAxis(null!=r.yAxis?"y":"x"),l=Object(v["retrieve"])(r.yAxis,r.xAxis);else{var u=RK(r,o,e,t);s=u.valueAxis;var c=sw(o,u.valueDataDim);l=VK(o,c,a)}var h="x"===s.dim?0:1,f=1-h,d=Object(v["clone"])(r),p={coord:[]};d.type=null,d.coord=[],d.coord[f]=-1/0,p.coord[f]=1/0;var g=n.get("precision");g>=0&&Object(v["isNumber"])(l)&&(l=+l.toFixed(Math.min(g,20))),d.coord[h]=p.coord[h]=l,i=[d,p,{type:a,valueIndex:r.valueIndex,value:l}]}else i=[]}var y=[DK(t,i[0]),DK(t,i[1]),Object(v["extend"])({},i[2])];return y[2].type=y[2].type||null,Object(v["merge"])(y[2],y[0]),Object(v["merge"])(y[2],y[1]),y};function tZ(t){return!isNaN(t)&&!isFinite(t)}function eZ(t,e,n,r){var i=1-t,o=r.dimensions[t];return tZ(e[i])&&tZ(n[i])&&e[t]===n[t]&&r.getAxis(o).containData(e[t])}function nZ(t,e){if("cartesian2d"===t.type){var n=e[0].coord,r=e[1].coord;if(n&&r&&(eZ(1,n,r,t)||eZ(0,n,r,t)))return!0}return BK(t,e[0])&&BK(t,e[1])}function rZ(t,e,n,r,i){var o,a=r.coordinateSystem,s=t.getItemModel(e),l=Jr(s.get("x"),i.getWidth()),u=Jr(s.get("y"),i.getHeight());if(isNaN(l)||isNaN(u)){if(r.getMarkerPosition)o=r.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=a.dimensions,h=t.get(c[0],e),f=t.get(c[1],e);o=a.dataToPoint([h,f])}if(EA(a,"cartesian2d")){var d=a.getAxis("x"),p=a.getAxis("y");c=a.dimensions;tZ(t.get(c[0],e))?o[0]=d.toGlobalCoord(d.getExtent()[n?0:1]):tZ(t.get(c[1],e))&&(o[1]=p.toGlobalCoord(p.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];t.setItemLayout(e,o)}var iZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=MK.getMarkerModelFromSeries(t,"markLine");if(e){var r=e.getData(),i=QK(e).from,o=QK(e).to;i.each((function(e){rZ(i,e,!0,t,n),rZ(o,e,!1,t,n)})),r.each((function(t){r.setItemLayout(t,[i.getItemLayout(t),o.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},e.prototype.renderSeries=function(t,e,n,r){var i=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new _R);this.group.add(l.group);var u=oZ(i,t,e),c=u.from,h=u.to,f=u.line;QK(e).from=c,QK(e).to=h,e.setData(f);var d=e.get("symbol"),p=e.get("symbolSize"),g=e.get("symbolRotate"),y=e.get("symbolOffset");function m(e,n,i){var o=e.getItemModel(n);rZ(e,n,i,t,r);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=sm(a,"color")),e.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:Object(v["retrieve2"])(o.get("symbolOffset",!0),y[i?0:1]),symbolRotate:Object(v["retrieve2"])(o.get("symbolRotate",!0),g[i?0:1]),symbolSize:Object(v["retrieve2"])(o.get("symbolSize"),p[i?0:1]),symbol:Object(v["retrieve2"])(o.get("symbol",!0),d[i?0:1]),style:s})}Object(v["isArray"])(d)||(d=[d,d]),Object(v["isArray"])(p)||(p=[p,p]),Object(v["isArray"])(g)||(g=[g,g]),Object(v["isArray"])(y)||(y=[y,y]),u.from.each((function(t){m(c,t,!0),m(h,t,!1)})),f.each((function(t){var e=f.getItemModel(t).getModel("lineStyle").getLineStyle();f.setItemLayout(t,[c.getItemLayout(t),h.getItemLayout(t)]),null==e.stroke&&(e.stroke=c.getItemVisual(t,"style").fill),f.setItemVisual(t,{fromSymbolKeepAspect:c.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(t,"symbolOffset"),fromSymbolRotate:c.getItemVisual(t,"symbolRotate"),fromSymbolSize:c.getItemVisual(t,"symbolSize"),fromSymbol:c.getItemVisual(t,"symbol"),toSymbolKeepAspect:h.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(t,"symbolOffset"),toSymbolRotate:h.getItemVisual(t,"symbolRotate"),toSymbolSize:h.getItemVisual(t,"symbolSize"),toSymbol:h.getItemVisual(t,"symbol"),style:e})})),l.updateData(f),u.line.eachItemGraphicEl((function(t){Gs(t).dataModel=e,t.traverse((function(t){Gs(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(HK);function oZ(t,e,n){var r;r=t?Object(v["map"])(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Object(v["extend"])(Object(v["extend"])({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new Yx(r,n),o=new Yx(r,n),a=new Yx([],n),s=Object(v["map"])(n.get("data"),Object(v["curry"])(JK,e,t,n));t&&(s=Object(v["filter"])(s,Object(v["curry"])(nZ,t)));var l=zK(!!t,r);return i.initData(Object(v["map"])(s,(function(t){return t[0]})),null,l),o.initData(Object(v["map"])(s,(function(t){return t[1]})),null,l),a.initData(Object(v["map"])(s,(function(t){return t[2]}))),a.hasItemOption=!0,{from:i,to:o,line:a}}var aZ=iZ;function sZ(t){t.registerComponentModel(ZK),t.registerComponentView(aZ),t.registerPreprocessor((function(t){OK(t.series,"markLine")&&(t.markLine=t.markLine||{})}))}var lZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,r){return new e(t,n,r)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(MK),uZ=lZ,cZ=Yi(),hZ=function(t,e,n,r){var i=DK(t,r[0]),o=DK(t,r[1]),a=i.coord,s=o.coord;a[0]=Object(v["retrieve"])(a[0],-1/0),a[1]=Object(v["retrieve"])(a[1],-1/0),s[0]=Object(v["retrieve"])(s[0],1/0),s[1]=Object(v["retrieve"])(s[1],1/0);var l=Object(v["mergeAll"])([{},i,o]);return l.coord=[i.coord,o.coord],l.x0=i.x,l.y0=i.y,l.x1=o.x,l.y1=o.y,l};function fZ(t){return!isNaN(t)&&!isFinite(t)}function dZ(t,e,n,r){var i=1-t;return fZ(e[i])&&fZ(n[i])}function pZ(t,e){var n=e.coord[0],r=e.coord[1],i={coord:n,x:e.x0,y:e.y0},o={coord:r,x:e.x1,y:e.y1};return EA(t,"cartesian2d")?!(!n||!r||!dZ(1,n,r,t)&&!dZ(0,n,r,t))||FK(t,i,o):BK(t,i)||BK(t,o)}function gZ(t,e,n,r,i){var o,a=r.coordinateSystem,s=t.getItemModel(e),l=Jr(s.get(n[0]),i.getWidth()),u=Jr(s.get(n[1]),i.getHeight());if(isNaN(l)||isNaN(u)){if(r.getMarkerPosition)o=r.getMarkerPosition(t.getValues(n,e));else{var c=t.get(n[0],e),h=t.get(n[1],e),f=[c,h];a.clampData&&a.clampData(f,f),o=a.dataToPoint(f,!0)}if(EA(a,"cartesian2d")){var d=a.getAxis("x"),p=a.getAxis("y");c=t.get(n[0],e),h=t.get(n[1],e);fZ(c)?o[0]=d.toGlobalCoord(d.getExtent()["x0"===n[0]?0:1]):fZ(h)&&(o[1]=p.toGlobalCoord(p.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var vZ=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],yZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=MK.getMarkerModelFromSeries(t,"markArea");if(e){var r=e.getData();r.each((function(e){var i=Object(v["map"])(vZ,(function(i){return gZ(r,e,i,t,n)}));r.setItemLayout(e,i);var o=r.getItemGraphicEl(e);o.setShape("points",i)}))}}),this)},e.prototype.renderSeries=function(t,e,n,r){var i=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new Nr});this.group.add(l.group),this.markKeep(l);var u=mZ(i,t,e);e.setData(u),u.each((function(e){var n=Object(v["map"])(vZ,(function(n){return gZ(u,e,n,t,r)})),o=i.getAxis("x").scale,s=i.getAxis("y").scale,l=o.getExtent(),c=s.getExtent(),h=[o.parse(u.get("x0",e)),o.parse(u.get("x1",e))],f=[s.parse(u.get("y0",e)),s.parse(u.get("y1",e))];ei(h),ei(f);var d=!(l[0]>h[1]||l[1]f[1]||c[1]=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(vh),SZ=wZ,OZ=v["curry"],CZ=v["each"],kZ=Nr,AZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return p(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new kZ),this.group.add(this._selectorGroup=new kZ),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var i=t.get("align"),o=t.get("orient");i&&"auto"!==i||(i="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(i,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=t.get("padding"),h=ah(l,u,c),f=this.layoutInner(t,i,h,r,a,s),d=ah(v["defaults"]({width:f.width,height:f.height},l),u,c);this.group.x=d.x-f.x,this.group.y=d.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=P$(f,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,r,i,o,a){var s=this.getContentGroup(),l=v["createHashMap"](),u=e.get("selectedMode"),c=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&c.push(t.id)})),CZ(e.getData(),(function(i,o){var a=i.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var h=new kZ;return h.newline=!0,void s.add(h)}var f=n.getSeriesByName(a)[0];if(!l.get(a)){if(f){var d=f.getData(),p=d.getVisual("legendLineStyle")||{},g=d.getVisual("legendIcon"),y=d.getVisual("style"),m=this._createItem(f,a,o,i,e,t,p,y,g,u,r);m.on("click",OZ(IZ,a,null,r,c)).on("mouseover",OZ(PZ,f.name,null,r,c)).on("mouseout",OZ(jZ,f.name,null,r,c)),l.set(a,!0)}else n.eachRawSeries((function(n){if(!l.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var h=s.indexOfName(a),f=s.getItemVisual(h,"style"),d=s.getItemVisual(h,"legendIcon"),p=Object(Qe["parse"])(f.fill);p&&0===p[3]&&(p[3]=.2,f=v["extend"](v["extend"]({},f),{fill:Object(Qe["stringify"])(p,"rgba")}));var g=this._createItem(n,a,o,i,e,t,{},f,d,u,r);g.on("click",OZ(IZ,null,a,r,c)).on("mouseover",OZ(PZ,null,a,r,c)).on("mouseout",OZ(jZ,null,a,r,c)),l.set(a,!0)}}),this);0}}),this),i&&this._createSelector(i,e,r,o,a)},e.prototype._createSelector=function(t,e,n,r,i){var o=this.getSelectorGroup();CZ(t,(function(t){var r=t.type,i=new qs({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});o.add(i);var a=e.getModel("selectorLabel"),s=e.getModel(["emphasis","selectorLabel"]);bu(i,{normal:a,emphasis:s},{defaultText:t.title}),Wl(i)}))},e.prototype._createItem=function(t,e,n,r,i,o,a,s,l,u,c){var h=t.visualDrawType,f=i.get("itemWidth"),d=i.get("itemHeight"),p=i.isSelected(e),g=r.get("symbolRotate"),y=r.get("symbolKeepAspect"),m=r.get("icon");l=m||l||"roundRect";var b=MZ(l,r,a,s,h,p,c),_=new kZ,x=r.getModel("textStyle");if(!v["isFunction"](t.getLegendIcon)||m&&"inherit"!==m){var w="inherit"===m&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0;_.add(TZ({itemWidth:f,itemHeight:d,icon:l,iconRotate:w,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}))}else _.add(t.getLegendIcon({itemWidth:f,itemHeight:d,icon:l,iconRotate:g,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}));var S="left"===o?f+5:-5,O=o,C=i.get("formatter"),k=e;v["isString"](C)&&C?k=C.replace("{name}",null!=e?e:""):v["isFunction"](C)&&(k=C(e));var A=r.get("inactiveColor");_.add(new qs({style:xu(x,{text:k,x:S,y:d/2,fill:p?x.getTextColor():A,align:O,verticalAlign:"middle"})}));var M=new Os({shape:_.getBoundingRect(),invisible:!0}),T=r.getModel("tooltip");return T.get("show")&&ny({el:M,componentModel:i,itemName:e,itemTooltipOption:T.option}),_.add(M),_.eachChild((function(t){t.silent=!0})),M.silent=!u,this.getContentGroup().add(_),Wl(_),_.__legendDataIndex=n,_},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();ih(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),i){ih("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],f=t.get("selectorButtonGap",!0),d=t.getOrient().index,p=0===d?"width":"height",g=0===d?"height":"width",v=0===d?"y":"x";"end"===o?h[d]+=l[p]+f:u[d]+=c[p]+f,h[1-d]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var y={x:0,y:0};return y[p]=l[p]+f+c[p],y[g]=Math.max(l[g],c[g]),y[v]=Math.min(0,c[v]+h[1-d]),y}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Up);function MZ(t,e,n,r,i,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),CZ(t,(function(n,r){"inherit"===t[r]&&(t[r]=e[r])}))}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=0===t.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");u.decal=h&&"inherit"!==h?gb(h,a):r.decal,"inherit"===u.fill&&(u.fill=r[i]),"inherit"===u.stroke&&(u.stroke=r[c]),"inherit"===u.opacity&&(u.opacity=("fill"===i?r:n).opacity),s(u,r);var f=e.getModel("lineStyle"),d=f.getLineStyle();if(s(d,n),"auto"===u.fill&&(u.fill=r.fill),"auto"===u.stroke&&(u.stroke=r.fill),"auto"===d.stroke&&(d.stroke=r.fill),!o){var p=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===p?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),d.stroke=f.get("inactiveColor"),d.lineWidth=f.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}function TZ(t){var e=t.icon||"roundRect",n=km(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function IZ(t,e,n,r){jZ(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),PZ(t,e,n,r)}function EZ(t){var e,n=t.getZr().storage.getDisplayList(),r=0,i=n.length;while(rn[i],p=[-h.x,-h.y];e||(p[r]=l[s]);var g=[0,0],y=[-f.x,-f.y],m=v["retrieve2"](t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var b=t.get("pageButtonPosition",!0);"end"===b?y[r]+=n[i]-f[i]:g[r]+=f[i]+m}y[1-r]+=h[o]/2-f[o]/2,l.setPosition(p),u.setPosition(g),c.setPosition(y);var _={x:0,y:0};if(_[i]=d?n[i]:h[i],_[o]=Math.max(h[o],f[o]),_[a]=Math.min(0,f[a]+y[1-r]),u.__rectSize=n[i],d){var x={x:0,y:0};x[i]=Math.max(n[i]-f[i]-m,0),x[o]=_[o],u.setClipPath(new Os({shape:x})),u.__rectSize=x[i]}else c.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var w=this._getPageInfo(t);return null!=w.pageIndex&&lu(l,{x:w.contentPosition[0],y:w.contentPosition[1]},d?t:null),this._updatePageInfoView(t,w),_},e.prototype._pageGo=function(t,e,n){var r=this._getPageInfo(e)[t];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;v["each"](["pagePrev","pageNext"],(function(r){var i=r+"DataIndex",o=null!=e[i],a=n.childOfName(r);a&&(a.setStyle("fill",o?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")}));var r=n.childOfName("pageText"),i=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;r&&i&&r.setStyle("text",v["isString"](i)?i.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):i({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=t.getOrient().index,o=GZ[i],a=HZ[i],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],c=l.length,h=c?1:0,f={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return f;var d=m(u);f.contentPosition[i]=-d.s;for(var p=s+1,g=d,v=d,y=null;p<=c;++p)y=m(l[p]),(!y&&v.e>g.s+r||y&&!b(y,g.s))&&(g=v.i>g.i?v:y,g&&(null==f.pageNextDataIndex&&(f.pageNextDataIndex=g.i),++f.pageCount)),v=y;for(p=s-1,g=d,v=d,y=null;p>=-1;--p)y=m(l[p]),y&&b(v,y.s)||!(g.i=e&&t.s<=e+r}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var e,n,r=this.getContentGroup();return r.eachChild((function(r,i){var o=r.__legendDataIndex;null==n&&null!=o&&(n=i),o===t&&(e=i)})),null!=e?e:n},e.type="legend.scroll",e}(LZ),UZ=WZ;function $Z(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}function YZ(t){px(BZ),t.registerComponentModel(VZ),t.registerComponentView(UZ),$Z(t)}function XZ(t){px(BZ),px(YZ)}var KZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.type="dataZoom.inside",e.defaultOption=Ku(s$.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(s$),ZZ=KZ,QZ=Yi();function JZ(t,e,n){QZ(t).coordSysRecordMap.each((function(t){var r=t.dataZoomInfoMap.get(e.uid);r&&(r.getRange=n)}))}function tQ(t,e){for(var n=QZ(t).coordSysRecordMap,r=n.keys(),i=0;ir[n+e]&&(e=a),i=i&&o.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function aQ(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var n=QZ(e),r=n.coordSysRecordMap||(n.coordSysRecordMap=Object(v["createHashMap"])());r.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){var n=r$(t);Object(v["each"])(n.infoList,(function(n){var i=n.model.uid,o=r.get(i)||r.set(i,nQ(e,n.model)),a=o.dataZoomInfoMap||(o.dataZoomInfoMap=Object(v["createHashMap"])());a.set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})}))})),r.each((function(t){var e,n=t.controller,i=t.dataZoomInfoMap;if(i){var o=i.keys()[0];null!=o&&(e=i.get(o))}if(e){var a=oQ(i);n.enable(a.controlType,a.opt),n.setPointerChecker(t.containsPoint),my(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else eQ(r,t)}))}))}var sQ=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return p(e,t),e.prototype.render=function(e,n,r){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),JZ(r,e,{pan:Object(v["bind"])(lQ.pan,this),zoom:Object(v["bind"])(lQ.zoom,this),scrollMove:Object(v["bind"])(lQ.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){tQ(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(h$),lQ={zoom:function(t,e,n,r){var i=this.range,o=i.slice(),a=t.axisModels[0];if(a){var s=cQ[e](null,[r.originX,r.originY],a,n,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/r.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return BN(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,i[0]!==o[0]||i[1]!==o[1]?o:void 0}},pan:uQ((function(t,e,n,r,i,o){var a=cQ[r]([o.oldX,o.oldY],[o.newX,o.newY],e,i,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength})),scrollMove:uQ((function(t,e,n,r,i,o){var a=cQ[r]([0,0],[o.scrollDelta,o.scrollDelta],e,i,n);return a.signal*(t[1]-t[0])*o.scrollDelta}))};function uQ(t){return function(e,n,r,i){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s){var l=t(a,s,e,n,r,i);return BN(l,a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}}var cQ={grid:function(t,e,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,r,i){var o=n.axis,a=i.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},hQ=sQ;function fQ(t){S$(t),t.registerComponentModel(ZZ),t.registerComponentView(hQ),aQ(t)}var dQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Ku(s$.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(s$),pQ=dQ,gQ=Os,vQ=7,yQ=1,mQ=30,bQ=7,_Q="horizontal",xQ="vertical",wQ=5,SQ=["line","bar","candlestick","scatter"],OQ={easing:"cubicOut",duration:100,delay:0},CQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return p(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=Object(v["bind"])(this._onBrush,this),this._onBrushEnd=Object(v["bind"])(this._onBrushEnd,this)},e.prototype.render=function(e,n,r,i){if(t.prototype.render.apply(this,arguments),my(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show")){if(e.noTarget())return this._clear(),void this.group.removeAll();i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){by(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new Nr;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect"),r=n?bQ:0,i=this._findCoordRect(),o={width:e.getWidth(),height:e.getHeight()},a=this._orient===_Q?{right:o.width-i.x-i.width,top:o.height-mQ-vQ-r,width:i.width,height:mQ}:{right:vQ,top:i.y,width:mQ,height:i.height},s=hh(t.option);Object(v["each"])(["right","top","width","height"],(function(t){"ph"===s[t]&&(s[t]=a[t])}));var l=ah(s,o);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===xQ&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==_Q||i?n===_Q&&i?{scaleY:a?1:-1,scaleX:-1}:n!==xQ||i?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=t.getBoundingRect([o]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,r=t.get("brushSelect");n.add(new gQ({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var i=new gQ({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:Object(v["bind"])(this._onClickPanel,this)}),o=this.api.getZr();r?(i.on("mousedown",this._onBrushStart,this),i.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(i)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],r=t.series,i=r.getRawData(),o=r.getShadowDim&&r.getShadowDim(),a=o&&i.getDimensionInfo(o)?r.getShadowDim():t.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(i!==this._shadowData||a!==this._shadowDim||e[0]!==n[0]||e[1]!==n[1]){var u=i.getDataExtent(a),c=.3*(u[1]-u[0]);u=[u[0]-c,u[1]+c];var h,f=[0,e[1]],d=[0,e[0]],p=[[e[0],0],[0,0]],g=[],v=d[1]/(i.count()-1),y=0,m=Math.round(i.count()/e[0]);i.each([a],(function(t,e){if(m>0&&e%m)y+=v;else{var n=null==t||isNaN(t)||""===t,r=n?0:Qr(t,u,f,!0);n&&!h&&e?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!n&&h&&(p.push([y,0]),g.push([y,0])),p.push([y,r]),g.push([y,r]),y+=v,h=n}})),s=this._shadowPolygonPts=p,l=this._shadowPolylinePts=g}this._shadowData=i,this._shadowDim=a,this._shadowSize=[e[0],e[1]];for(var b=this.dataZoomModel,_=0;_<3;_++){var x=w(1===_);this._displayables.sliderGroup.add(x),this._displayables.dataShadowSegs.push(x)}}}function w(t){var e=b.getModel(t?"selectedDataBackground":"dataBackground"),n=new Nr,r=new Yg({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),i=new Zg({shape:{points:l},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,r=this.ecModel;return t.eachTargetAxis((function(i,o){var a=t.getAxisProxy(i,o).getTargetSeriesModels();Object(v["each"])(a,(function(t){if(!n&&!(!0!==e&&Object(v["indexOf"])(SQ,t.get("type"))<0)){var a,s=r.getComponent(e$(i),o).axis,l=kQ(i),u=t.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),n={thisAxis:s,series:t,thisDim:i,otherDim:l,otherAxisInverse:a}}}),this)}),this),n}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],r=e.handleLabels=[null,null],i=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),c=e.filler=new gQ({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});i.add(c),i.add(new gQ({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:yQ,fill:"rgba(0,0,0,0)"}})),Object(v["each"])([0,1],(function(e){var o=a.get("handleIcon");!Sm[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=km(o,-1,0,2,2,null,!0);s.attr({cursor:AQ(this._orient),draggable:!0,drift:Object(v["bind"])(this._onDragMove,this,e),ondragend:Object(v["bind"])(this._onDragEnd,this),onmouseover:Object(v["bind"])(this._showDataInfo,this,!0),onmouseout:Object(v["bind"])(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=Jr(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),Wl(s);var c=a.get("handleColor");null!=c&&(s.style.fill=c),i.add(n[e]=s);var h=a.getModel("textStyle");t.add(r[e]=new qs({silent:!0,invisible:!0,style:xu(h,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:h.getTextColor(),font:h.getFont()}),z2:10}))}),this);var h=c;if(u){var f=Jr(a.get("moveHandleSize"),o[1]),d=e.moveHandle=new Os({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:f}}),p=.8*f,g=e.moveHandleIcon=km(a.get("moveHandleIcon"),-p/2,-p/2,p,p,"#fff",!0);g.silent=!0,g.y=o[1]+f/2-.5,d.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(o[1]/2,Math.max(f,10));h=e.moveZone=new Os({invisible:!0,shape:{y:o[1]-y,height:f+y}}),h.on("mouseover",(function(){s.enterEmphasis(d)})).on("mouseout",(function(){s.leaveEmphasis(d)})),i.add(d),i.add(g),i.add(h)}h.attr({draggable:!0,cursor:AQ(this._orient),drift:Object(v["bind"])(this._onDragMove,this,"all"),ondragstart:Object(v["bind"])(this._showDataInfo,this,!0),ondragend:Object(v["bind"])(this._onDragEnd,this),onmouseover:Object(v["bind"])(this._showDataInfo,this,!0),onmouseout:Object(v["bind"])(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[Qr(t[0],[0,100],e,!0),Qr(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];BN(e,r,i,n.get("zoomLock")?"all":t,null!=o.minSpan?Qr(o.minSpan,a,i,!0):null,null!=o.maxSpan?Qr(o.maxSpan,a,i,!0):null);var s=this._range,l=this._range=ei([Qr(r[0],i,a,!0),Qr(r[1],i,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,r=ei(n.slice()),i=this._size;Object(v["each"])([0,1],(function(t){var r=e.handles[t],o=this._handleHeight;r.attr({scaleX:o/2,scaleY:o/2,x:n[t]+(t?-1:1),y:i[1]/2-o/2})}),this),e.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var o={x:r[0],width:r[1]-r[0]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=e.dataShadowSegs,s=[0,r[0],r[1],i[0]],l=0;le[0]||n[1]<0||n[1]>e[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,o=this._updateInterval("all",n[0]-i);this._updateView(),o&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new Pt(e,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var n=e.shape,r=+new Date;if(!(r-this._brushStartTime<200&&Math.abs(n.width)<5)){var i=this._getViewExtent(),o=[0,100];this._range=ei([Qr(n.x,i,o,!0),Qr(n.x+n.width,i,o,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(vt(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new gQ({silent:!0,style:r.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(i)),i.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(t,e),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),i.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?OQ:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=r$(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var r=this.api.getWidth(),i=this.api.getHeight();t={x:.2*r,y:.2*i,width:.6*r,height:.6*i}}return t},e.type="dataZoom.slider",e}(h$);function kQ(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function AQ(t){return"vertical"===t?"ns-resize":"ew-resize"}var MQ=CQ;function TQ(t){t.registerComponentModel(pQ),t.registerComponentView(MQ),S$(t)}function IQ(t){px(fQ),px(TQ)}var EQ={get:function(t,e,n){var r=v["clone"]((PQ[t]||{})[e]);return n&&v["isArray"](r)?r[r.length-1]:r}},PQ={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},jQ=EQ,LQ=UL.mapVisual,DQ=UL.eachVisual,RQ=v["isArray"],NQ=v["each"],BQ=ei,FQ=Qr,zQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return p(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&OX(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=v["bind"](t,this),this.controllerVisuals=SX(this.option.controller,e,t),this.targetVisuals=SX(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,n){e.push(n)})):e=ki(t),e},e.prototype.eachTargetSeries=function(t,e){v["each"](this.getTargetSeriesIndices(),(function(n){var r=this.ecModel.getSeriesByIndex(n);r&&t.call(e,r)}),this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},e.prototype.formatValueText=function(t,e,n){var r,i=this.option,o=i.precision,a=this.dataBound,s=i.formatter;n=n||["<",">"],v["isArray"](t)&&(t=t.slice(),r=!0);var l=e?t:r?[u(t[0]),u(t[1])]:u(t);return v["isString"](s)?s.replace("{value}",r?l[0]:l).replace("{value2}",r?l[1]:l):v["isFunction"](s)?r?s(t[0],t[1]):s(t):r?t[0]===a[0]?n[0]+" "+l[1]:t[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,e=BQ([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,r=n.length-1;r>=0;r--){var i=n[r],o=t.getDimensionInfo(i);if(!o.isCalculationCoord)return o.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},r=e.target||(e.target={}),i=e.controller||(e.controller={});v["merge"](r,n),v["merge"](i,n);var o=this.isCategory();function a(n){RQ(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}function s(t,e,n){var r=t[e],i=t[n];r&&!i&&(i=t[n]={},NQ(r,(function(t,e){if(UL.isValidType(e)){var n=jQ.get(e,"inactive",o);null!=n&&(i[e]=n,"color"!==e||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}})))}function l(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,r=this.get("inactiveColor"),i=this.getItemSymbol(),a=i||"roundRect";NQ(this.stateList,(function(i){var s=this.itemSize,l=t[i];l||(l=t[i]={color:o?r:[r]}),null==l.symbol&&(l.symbol=e&&v["clone"](e)||(o?a:[a])),null==l.symbolSize&&(l.symbolSize=n&&v["clone"](n)||(o?s[0]:[s[0],s[0]])),l.symbol=LQ(l.symbol,(function(t){return"none"===t?a:t}));var u=l.symbolSize;if(null!=u){var c=-1/0;DQ(u,(function(t){t>c&&(c=t)})),l.symbolSize=LQ(u,(function(t){return FQ(t,[0,c],[0,s[0]],!0)}))}}),this)}a.call(this,r),a.call(this,i),s.call(this,r,"inRange","outOfRange"),l.call(this,i)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(vh),VQ=zQ,qQ=[20,140],GQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=qQ[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=qQ[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):v["isArray"](e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),v["each"](this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)}),this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=ei((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=n[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries((function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),(function(e,n){t[0]<=e&&e<=t[1]&&r.push(n)}),this),e.push({seriesId:n.id,dataIndex:r})}),this),e},e.prototype.getVisualMeta=function(t){var e=HQ(this,"outOfRange",this.getExtent()),n=HQ(this,"inRange",this.option.range.slice()),r=[];function i(e,n){r.push({value:e,color:t(e,n)})}for(var o=0,a=0,s=n.length,l=e.length;at[1])break;r.push({color:this.getControllerVisual(a,"color",e),offset:o/n})}return r.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),r},e.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new Nr("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,o=n.handleLabels,a=r.itemSize,s=r.getExtent();QQ([0,1],(function(l){var u=i[l];u.setStyle("fill",e.handlesColor[l]),u.y=t[l];var c=ZQ(t[l],[0,a[1]],s,!0),h=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=h/a[0],u.x=a[0]-h/2;var f=Hv(n.handleLabelPoints[l],Gv(u,this.group));o[l].setStyle({x:f[0],y:f[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},e.prototype._showIndicator=function(t,e,n,r){var i=this.visualMapModel,o=i.getExtent(),a=i.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",c),f=this.getControllerVisual(t,"symbolSize"),d=ZQ(t,o,s,!0),p=a[0]-f/2,g={x:u.x,y:u.y};u.y=d,u.x=p;var v=Hv(l.indicatorLabelPoint,Gv(u,this.group)),y=l.indicatorLabel;y.attr("invisible",!1);var m=this._applyTransform("left",l.mainGroup),b=this._orient,_="horizontal"===b;y.setStyle({text:(n||"")+i.formatValueText(e),verticalAlign:_?m:"middle",align:_?"center":m});var x={x:p,y:d,style:{fill:h}},w={style:{x:v[0],y:v[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var S={duration:100,easing:"cubicInOut",additive:!0};u.x=g.x,u.y=g.y,u.animateTo(x,S),y.animateTo(w,S)}else u.attr(x),y.attr(w);this._firstShowIndicator=!1;var O=this._shapes.handleLabels;if(O)for(var C=0;Ci[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var c=this._hoverLinkDataIndices,h=[];(e||aJ(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var f=Ui(c,h);this._dispatchHighDown("downplay",KQ(f[0],n)),this._dispatchHighDown("highlight",KQ(f[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e;if(fm(t.target,(function(t){var n=Gs(t);if(null!=n.dataIndex)return e=n,!0}),!0),e){var n=this.ecModel.getSeriesByIndex(e.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(e.dataType),o=i.getStore().get(r.getDataDimensionIndex(i),e.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var e=this._shapes.handleLabels;if(e)for(var n=0;n=0&&(i.dimension=o,r.push(i))}})),t.getData().setVisual("visualMeta",r)}}];function fJ(t,e,n,r){for(var i=e.targetVisuals[r],o=UL.prepareVisualTypes(i),a={color:sm(t.getData(),"color")},s=0,l=o.length;s0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(uJ,cJ),Object(v["each"])(hJ,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(pJ))}function mJ(t){t.registerComponentModel(WQ),t.registerComponentView(lJ),yJ(t)}var bJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return p(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],_J[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var i=this.option.categories;this.resetVisual((function(t,e){"categories"===r?(t.mappingMethod="category",t.categories=v["clone"](i)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=v["map"](this._pieceList,(function(t){return t=v["clone"](t),"inRange"!==e&&(t.visual=null),t})))}))},e.prototype.completeVisualOption=function(){var e=this.option,n={},r=UL.listVisualTypes(),i=this.isCategory();function o(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}v["each"](e.pieces,(function(t){v["each"](r,(function(e){t.hasOwnProperty(e)&&(n[e]=1)}))})),v["each"](n,(function(t,n){var r=!1;v["each"](this.stateList,(function(t){r=r||o(e,t,n)||o(e.target,t,n)}),this),!r&&v["each"](this.stateList,(function(t){(e[t]||(e[t]={}))[n]=jQ.get(n,"inRange"===t?"active":"inactive",i)}))}),this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,r=this._pieceList,i=(e?n:t).selected||{};if(n.selected=i,v["each"](r,(function(t,e){var n=this.getSelectedMapKey(t);i.hasOwnProperty(n)||(i[n]=!0)}),this),"single"===n.selectedMode){var o=!1;v["each"](r,(function(t,e){var n=this.getSelectedMapKey(t);i[n]&&(o?i[n]=!1:o=!0)}),this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=v["clone"](t)},e.prototype.getValueState=function(t){var e=UL.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries((function(r){var i=[],o=r.getData();o.each(this.getDataDimensionIndex(o),(function(e,r){var o=UL.findPieceIndex(e,n);o===t&&i.push(r)}),this),e.push({seriesId:r.id,dataIndex:i})}),this),e},e.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],n=["",""],r=this,i=this._pieceList.slice();if(i.length){var o=i[0].interval[0];o!==-1/0&&i.unshift({interval:[-1/0,o]}),o=i[i.length-1].interval[1],o!==1/0&&i.push({interval:[o,1/0]})}else i.push({interval:[-1/0,1/0]});var a=-1/0;return v["each"](i,(function(t){var e=t.interval;e&&(e[0]>a&&s([a,e[0]],"outOfRange"),s(e.slice()),a=e[1])}),this),{stops:e,outerColors:n}}function s(i,o){var a=r.getRepresentValue({interval:i});o||(o=r.getValueState(a));var s=t(a,o);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:e.push({value:i[0],color:s},{value:i[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=Ku(VQ.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(VQ),_J={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),r=this.getExtent(),i=e.splitNumber;i=Math.max(parseInt(i,10),1),e.splitNumber=i;var o=(r[1]-r[0])/i;while(+o.toFixed(n)!==o&&n<5)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,r[0]],close:[0,0]});for(var a=0,s=r[0];a","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)}),this)}};function xJ(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var wJ=bJ,SJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),r=e.textStyleModel,i=r.getFont(),o=r.getTextColor(),a=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),u=l.endsText,c=v["retrieve"](e.get("showLabel",!0),!u);u&&this._renderEndsText(t,u[0],s,c,a),v["each"](l.viewPieceList,(function(r){var l=r.piece,u=new Nr;u.onclick=v["bind"](this._onItemClick,this,l),this._enableHoverLink(u,r.indexInModelPieceList);var h=e.getRepresentValue(l);if(this._createItemSymbol(u,h,[0,0,s[0],s[1]]),c){var f=this.visualMapModel.getValueState(h);u.add(new qs({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:i,fill:o,opacity:"outOfRange"===f?.5:1}}))}t.add(u)}),this),u&&this._renderEndsText(t,u[1],s,c,a),ih(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",(function(){return r("highlight")})).on("mouseout",(function(){return r("downplay")}));var r=function(t){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:t,batch:KQ(r.findTargetDataIndices(e),r)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return XQ(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,r,i){if(e){var o=new Nr,a=this.visualMapModel.textStyleModel;o.add(new qs({style:xu(a,{x:r?"right"===i?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:r?i:"center",text:e})})),t.add(o)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=v["map"](t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),n=t.get("text"),r=t.get("orient"),i=t.get("inverse");return("horizontal"===r?i:!i)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},e.prototype._createItemSymbol=function(t,e,n){t.add(km(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,r=n.selectedMode;if(r){var i=v["clone"](n.selected),o=e.getSelectedMapKey(t);"single"===r||!0===r?(i[o]=!0,v["each"](i,(function(t,e){i[e]=e===o}))):i[o]=!i[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},e.type="visualMap.piecewise",e}($Q),OJ=SJ;function CJ(t){t.registerComponentModel(wJ),t.registerComponentView(OJ),yJ(t)}function kJ(t){px(mJ),px(CJ)}var AJ={label:{enabled:!0},decal:{show:!1}},MJ=Yi(),TJ={};function IJ(t,e){var n=t.getModel("aria");if(n.get("enabled")){var r=v["clone"](AJ);v["merge"](r.label,t.getLocaleModel().get("aria"),!1),v["merge"](n.option,r,!1),i(),o()}function i(){var e=n.getModel("decal"),r=e.get("show");if(r){var i=v["createHashMap"]();t.eachSeries((function(t){if(!t.isColorBySeries()){var e=i.get(t.type);e||(e={},i.set(t.type,e)),MJ(t).scope=e}})),t.eachRawSeries((function(e){if(!t.isSeriesFiltered(e))if(v["isFunction"](e.enableAriaDecal))e.enableAriaDecal();else{var n=e.getData();if(e.isColorBySeries()){var r=Hh(e.ecModel,e.name,TJ,t.getSeriesCount()),i=n.getVisual("decal");n.setVisual("decal",u(i,r))}else{var o=e.getRawData(),a={},s=MJ(e).scope;n.each((function(t){var e=n.getRawIndex(t);a[e]=t}));var l=o.count();o.each((function(t){var r=a[t],i=o.getName(t)||t+"",c=Hh(e.ecModel,i,s,l),h=n.getItemVisual(r,"decal");n.setItemVisual(r,"decal",u(h,c))}))}}function u(t,e){var n=t?v["extend"](v["extend"]({},e),t):e;return n.dirty=!0,n}}))}}function o(){var r=t.getLocaleModel().get("aria"),i=n.getModel("label");if(i.option=v["defaults"](i.option,r),i.get("enabled")){var o=e.getZr().dom;if(i.get("description"))o.setAttribute("aria-label",i.get("description"));else{var u,c=t.getSeriesCount(),h=i.get(["data","maxCount"])||10,f=i.get(["series","maxCount"])||10,d=Math.min(c,f);if(!(c<1)){var p=s();if(p){var g=i.get(["general","withTitle"]);u=a(g,{title:p})}else u=i.get(["general","withoutTitle"]);var y=[],m=c>1?i.get(["series","multiple","prefix"]):i.get(["series","single","prefix"]);u+=a(m,{seriesCount:c}),t.eachSeries((function(t,e){if(e1?i.get(["series","multiple",o]):i.get(["series","single",o]),n=a(n,{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:l(t.subType)});var s=t.getData();if(s.count()>h){var u=i.get(["data","partialData"]);n+=a(u,{displayCnt:h})}else n+=i.get(["data","allData"]);for(var f=i.get(["data","separator","middle"]),p=i.get(["data","separator","end"]),g=[],v=0;v":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},LJ=function(){function t(t){var e=this._condVal=Object(v["isString"])(t)?new RegExp(t):Object(v["isRegExp"])(t)?t:null;if(null==e){var n="";0,Qh(n)}}return t.prototype.evaluate=function(t){var e=typeof t;return Object(v["isString"])(e)?this._condVal.test(t):!!Object(v["isNumber"])(e)&&this._condVal.test(t+"")},t}(),DJ=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),RJ=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e2&&l.push(e),e=[t,n]}function p(t,n,r,i){t0(t,r)&&t0(n,i)||e.push(t,n,r,i,r,i)}function g(t,n,r,i,o,a){var s=Math.abs(n-t),l=4*Math.tan(s/4)/3,u=nO:A2&&l.push(e),l}function n0(t,e,n,r,i,o,a,s,l,u){if(t0(t,n)&&t0(e,r)&&t0(i,a)&&t0(o,s))l.push(a,s);else{var c=2/u,h=c*c,f=a-t,d=s-e,p=Math.sqrt(f*f+d*d);f/=p,d/=p;var g=n-t,v=r-e,y=i-a,m=o-s,b=g*g+v*v,_=y*y+m*m;if(b=0&&O=0)l.push(a,s);else{var C=[],k=[];Be(t,n,i,a,.5,C),Be(e,r,o,s,.5,k),n0(C[0],k[0],C[1],k[1],C[2],k[2],C[3],k[3],l,u),n0(C[4],k[4],C[5],k[5],C[6],k[6],C[7],k[7],l,u)}}}}function r0(t,e){var n=e0(t),r=[];e=e||1;for(var i=0;i0)for(u=0;uMath.abs(u),h=i0([l,u],c?0:1,e),f=(c?s:u)/h.length,d=0;di,a=i0([r,i],o?0:1,e),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",c=o?"y":"x",h=t[s]/a.length,f=0;f1?null:new Pt(g*l+t,g*u+e)}function u0(t,e,n){var r=new Pt;Pt.sub(r,n,e),r.normalize();var i=new Pt;Pt.sub(i,t,e);var o=i.dot(r);return o}function c0(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function h0(t,e,n){for(var r=t.length,i=[],o=0;oa?(u.x=c.x=s+o/2,u.y=l,c.y=l+a):(u.y=c.y=l+a/2,u.x=s,c.x=s+o),h0(e,u,c)}function d0(t,e,n,r){if(1===n)r.push(e);else{var i=Math.floor(n/2),o=t(e);d0(t,o[0],i,r),d0(t,o[1],n-i,r)}return r}function p0(t,e){for(var n=[],r=0;r0)for(var x=r/n,w=-r/2;w<=r/2;w+=x){var S=Math.sin(w),O=Math.cos(w),C=0;for(b=0;b0;u/=2){var c=0,h=0;(t&u)>0&&(c=1),(e&u)>0&&(h=1),l+=u*u*(3*c^h),0===h&&(1===c&&(t=u-1-t,e=u-1-e),s=t,t=e,e=s)}return l}function j0(t){var e=1/0,n=1/0,r=-1/0,i=-1/0,o=Object(v["map"])(t,(function(t){var o=t.getBoundingRect(),a=t.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return e=Math.min(s,e),n=Math.min(l,n),r=Math.max(s,r),i=Math.max(l,i),[s,l]})),a=Object(v["map"])(o,(function(o,a){return{cp:o,z:P0(o[0],o[1],e,n,r,i),path:t[a]}}));return a.sort((function(t,e){return t.z-e.z})).map((function(t){return t.path}))}function L0(t){return y0(t.path,t.count)}function D0(){return{fromIndividuals:[],toIndividuals:[],count:0}}function R0(t,e,n){var r=[];function i(t){for(var e=0;e=0;i--)if(!n[i].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var u=Math.ceil(o/2);n[i].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var z0={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),r=0;r0){var s,l,u=r.getModel("universalTransition").get("delay"),c=Object.assign({setToFinal:!0},a);B0(t)&&(s=t,l=e),B0(e)&&(s=e,l=t);for(var h=s?s===t:t.length>e.length,f=s?F0(l,s):F0(h?e:t,[h?t:e]),d=0,p=0;pG0))for(var r=n.getIndices(),i=W0(n),o=0;o0&&i.group.traverse((function(t){t instanceof ss&&!t.animators.length&&t.animateFrom({style:{opacity:0}},o)}))}))}function J0(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function t1(t){return Object(v["isArray"])(t)?t.sort().join(","):t}function e1(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function n1(t,e){var n=Object(v["createHashMap"])(),r=Object(v["createHashMap"])(),i=Object(v["createHashMap"])();return Object(v["each"])(t.oldSeries,(function(e,n){var o=t.oldData[n],a=J0(e),s=t1(a);r.set(s,o),Object(v["isArray"])(a)&&Object(v["each"])(a,(function(t){i.set(t,{data:o,key:s})}))})),Object(v["each"])(e.updatedSeries,(function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.getData(),o=J0(t),a=t1(o),s=r.get(a);if(s)n.set(a,{oldSeries:[{divide:e1(s),data:s}],newSeries:[{divide:e1(e),data:e}]});else if(Object(v["isArray"])(o)){0;var l=[];Object(v["each"])(o,(function(t){var e=r.get(t);e&&l.push({divide:e1(e),data:e})})),l.length&&n.set(a,{oldSeries:l,newSeries:[{data:e,divide:e1(e)}]})}else{var u=i.get(o);if(u){var c=n.get(u.key);c||(c={oldSeries:[{data:u.data,divide:e1(u.data)}],newSeries:[]},n.set(u.key,c)),c.newSeries.push({data:e,divide:e1(e)})}}}})),n}function r1(t,e){for(var n=0;n=0&&i.push({data:e.oldData[n],divide:e1(e.oldData[n]),dim:t.dimension})})),Object(v["each"])(ki(t.to),(function(t){var e=r1(n.updatedSeries,t);if(e>=0){var r=n.updatedSeries[e].getData();o.push({data:r,divide:e1(r),dim:t.dimension})}})),i.length>0&&o.length>0&&Q0(i,o,r)}function o1(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){Object(v["each"])(ki(n.seriesTransition),(function(t){Object(v["each"])(ki(t.to),(function(t){for(var e=n.updatedSeries,r=0;r
'};function n(t,e,n){return tn?n:t}function r(t){return 100*(-1+t)}function i(t,n,i){var o;return o="translate3d"===e.positionUsing?{transform:"translate3d("+r(t)+"%,0,0)"}:"translate"===e.positionUsing?{transform:"translate("+r(t)+"%,0)"}:{"margin-left":r(t)+"%"},o.transition="all "+n+"ms "+i,o}t.configure=function(t){var n,r;for(n in t)r=t[n],void 0!==r&&t.hasOwnProperty(n)&&(e[n]=r);return this},t.status=null,t.set=function(r){var s=t.isStarted();r=n(r,e.minimum,1),t.status=1===r?null:r;var l=t.render(!s),u=l.querySelector(e.barSelector),c=e.speed,h=e.easing;return l.offsetWidth,o((function(n){""===e.positionUsing&&(e.positionUsing=t.getPositioningCSS()),a(u,i(r,c,h)),1===r?(a(l,{transition:"none",opacity:1}),l.offsetWidth,setTimeout((function(){a(l,{transition:"all "+c+"ms linear",opacity:0}),setTimeout((function(){t.remove(),n()}),c)}),c)):setTimeout(n,c)})),this},t.isStarted=function(){return"number"===typeof t.status},t.start=function(){t.status||t.set(0);var n=function(){setTimeout((function(){t.status&&(t.trickle(),n())}),e.trickleSpeed)};return e.trickle&&n(),this},t.done=function(e){return e||t.status?t.inc(.3+.5*Math.random()).set(1):this},t.inc=function(e){var r=t.status;return r?("number"!==typeof e&&(e=(1-r)*n(Math.random()*r,.1,.95)),r=n(r+e,0,.994),t.set(r)):t.start()},t.trickle=function(){return t.inc(Math.random()*e.trickleRate)},function(){var e=0,n=0;t.promise=function(r){return r&&"resolved"!==r.state()?(0===n&&t.start(),e++,n++,r.always((function(){n--,0===n?(e=0,t.done()):t.set((e-n)/e)})),this):this}}(),t.render=function(n){if(t.isRendered())return document.getElementById("nprogress");l(document.documentElement,"nprogress-busy");var i=document.createElement("div");i.id="nprogress",i.innerHTML=e.template;var o,s=i.querySelector(e.barSelector),u=n?"-100":r(t.status||0),c=document.querySelector(e.parent);return a(s,{transition:"all 0 linear",transform:"translate3d("+u+"%,0,0)"}),e.showSpinner||(o=i.querySelector(e.spinnerSelector),o&&h(o)),c!=document.body&&l(c,"nprogress-custom-parent"),c.appendChild(i),i},t.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(e.parent),"nprogress-custom-parent");var t=document.getElementById("nprogress");t&&h(t)},t.isRendered=function(){return!!document.getElementById("nprogress")},t.getPositioningCSS=function(){var t=document.body.style,e="WebkitTransform"in t?"Webkit":"MozTransform"in t?"Moz":"msTransform"in t?"ms":"OTransform"in t?"O":"";return e+"Perspective"in t?"translate3d":e+"Transform"in t?"translate":"margin"};var o=function(){var t=[];function e(){var n=t.shift();n&&n(e)}return function(n){t.push(n),1==t.length&&e()}}(),a=function(){var t=["Webkit","O","Moz","ms"],e={};function n(t){return t.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(t,e){return e.toUpperCase()}))}function r(e){var n=document.body.style;if(e in n)return e;var r,i=t.length,o=e.charAt(0).toUpperCase()+e.slice(1);while(i--)if(r=t[i]+o,r in n)return r;return e}function i(t){return t=n(t),e[t]||(e[t]=r(t))}function o(t,e,n){e=i(e),t.style[e]=n}return function(t,e){var n,r,i=arguments;if(2==i.length)for(n in e)r=e[n],void 0!==r&&e.hasOwnProperty(n)&&o(t,n,r);else o(t,i[1],i[2])}}();function s(t,e){var n="string"==typeof t?t:c(t);return n.indexOf(" "+e+" ")>=0}function l(t,e){var n=c(t),r=n+e;s(n,e)||(t.className=r.substring(1))}function u(t,e){var n,r=c(t);s(t,e)&&(n=r.replace(" "+e+" "," "),t.className=n.substring(1,n.length-1))}function c(t){return(" "+(t.className||"")+" ").replace(/\s+/gi," ")}function h(t){t&&t.parentNode&&t.parentNode.removeChild(t)}return t}))},"32c3":function(t,e,n){"use strict";var r;function i(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var o=n("e142").codes,a=o.ERR_MISSING_ARGS,s=o.ERR_STREAM_DESTROYED;function l(t){if(t)throw t}function u(t){return t.setHeader&&"function"===typeof t.abort}function c(t,e,o,a){a=i(a);var l=!1;t.on("close",(function(){l=!0})),void 0===r&&(r=n("ddda")),r(t,{readable:e,writable:o},(function(t){if(t)return a(t);l=!0,a()}));var c=!1;return function(e){if(!l&&!c)return c=!0,u(t)?t.abort():"function"===typeof t.destroy?t.destroy():void a(e||new s("pipe"))}}function h(t){t()}function f(t,e){return t.pipe(e)}function d(t){return t.length?"function"!==typeof t[t.length-1]?l:t.pop():l}function p(){for(var t=arguments.length,e=new Array(t),n=0;n0;return c(t,a,s,(function(t){r||(r=t),t&&o.forEach(h),a||(o.forEach(h),i(r))}))}));return e.reduce(f)}t.exports=p},3301:function(t,e,n){"use strict";const{Buffer:r}=n("1c35"),i=Symbol.for("BufferList");function o(t){if(!(this instanceof o))return new o(t);o._init.call(this,t)}o._init=function(t){Object.defineProperty(this,i,{value:!0}),this._bufs=[],this.length=0,t&&this.append(t)},o.prototype._new=function(t){return new o(t)},o.prototype._offset=function(t){if(0===t)return[0,0];let e=0;for(let n=0;nthis.length||t<0)return;const e=this._offset(t);return this._bufs[e[0]][e[1]]},o.prototype.slice=function(t,e){return"number"===typeof t&&t<0&&(t+=this.length),"number"===typeof e&&e<0&&(e+=this.length),this.copy(null,0,t,e)},o.prototype.copy=function(t,e,n,i){if(("number"!==typeof n||n<0)&&(n=0),("number"!==typeof i||i>this.length)&&(i=this.length),n>=this.length)return t||r.alloc(0);if(i<=0)return t||r.alloc(0);const o=!!t,a=this._offset(n),s=i-n;let l=s,u=o&&e||0,c=a[1];if(0===n&&i===this.length){if(!o)return 1===this._bufs.length?this._bufs[0]:r.concat(this._bufs,this.length);for(let e=0;ee)){this._bufs[r].copy(t,u,c,c+l),u+=e;break}this._bufs[r].copy(t,u,c),u+=e,l-=e,c&&(c=0)}return t.length>u?t.slice(0,u):t},o.prototype.shallowSlice=function(t,e){if(t=t||0,e="number"!==typeof e?this.length:e,t<0&&(t+=this.length),e<0&&(e+=this.length),t===e)return this._new();const n=this._offset(t),r=this._offset(e),i=this._bufs.slice(n[0],r[0]+1);return 0===r[1]?i.pop():i[i.length-1]=i[i.length-1].slice(0,r[1]),0!==n[1]&&(i[0]=i[0].slice(n[1])),this._new(i)},o.prototype.toString=function(t,e,n){return this.slice(e,n).toString(t)},o.prototype.consume=function(t){if(t=Math.trunc(t),Number.isNaN(t)||t<=0)return this;while(this._bufs.length){if(!(t>=this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(t),this.length-=t;break}t-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},o.prototype.duplicate=function(){const t=this._new();for(let e=0;ethis.length?this.length:e;const i=this._offset(e);let o=i[0],a=i[1];for(;o=t.length){const n=e.indexOf(t,a);if(-1!==n)return this._reverseOffset([o,n]);a=e.length-t.length+1}else{const e=this._reverseOffset([o,a]);if(this._match(e,t))return e;a++}}a=0}return-1},o.prototype._match=function(t,e){if(this.length-t=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function o(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;e.splice(1,0,n,"color: inherit");let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,t=>{"%%"!==t&&(r++,"%c"===t&&(i=r))}),e.splice(i,0,n)}function a(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(n){}}function s(){let t;try{t=e.storage.getItem("debug")}catch(n){}return!t&&"undefined"!==typeof r&&"env"in r&&(t=Object({NODE_ENV:"production",VUE_APP_BAI_DU_AK:"nAtaBg9FYzav6c8P9rF9qzsWZfT8O0PD",VUE_APP_BASE_API:"/prod-api",VUE_APP_MQTT_SERVER_URL:"",VUE_APP_TITLE:"FastBee物联网系统",BASE_URL:"/"}).DEBUG),t}function l(){try{return localStorage}catch(t){}}e.formatArgs=o,e.save=a,e.load=s,e.useColors=i,e.storage=l(),e.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=console.debug||console.log||(()=>{}),t.exports=n("dc90")(e);const{formatters:u}=t.exports;u.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}).call(this,n("4362"))},3511:function(t,e){var n=TypeError,r=9007199254740991;t.exports=function(t){if(t>r)throw n("Maximum allowed index exceeded");return t}},3529:function(t,e,n){"use strict";var r=n("23e7"),i=n("c65b"),o=n("59ed"),a=n("f069"),s=n("e667"),l=n("2266"),u=n("5eed");r({target:"Promise",stat:!0,forced:u},{race:function(t){var e=this,n=a.f(e),r=n.reject,u=s((function(){var a=o(e.resolve);l(t,(function(t){i(a,e,t).then(n.resolve,r)}))}));return u.error&&r(u.value),n.promise}})},"357d":function(t,e,n){},"35a1":function(t,e,n){var r=n("f5df"),i=n("dc4a"),o=n("7234"),a=n("3f8c"),s=n("b622"),l=s("iterator");t.exports=function(t){if(!o(t))return i(t,l)||i(t,"@@iterator")||a[r(t)]}},"35e8":function(t,e,n){"use strict";t.exports={isString:function(t){return"string"===typeof t},isObject:function(t){return"object"===typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},3648:function(t,e,n){},"37e8":function(t,e,n){var r=n("83ab"),i=n("aed9"),o=n("9bf2"),a=n("825a"),s=n("fc6a"),l=n("df75");e.f=r&&!i?Object.defineProperties:function(t,e){a(t);var n,r=s(e),i=l(e),u=i.length,c=0;while(u>c)o.f(t,n=i[c++],r[n]);return t}},3835:function(t,e,n){"use strict";function r(t){if(Array.isArray(t))return t}n.d(e,"a",(function(){return s}));n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("14d9");function i(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&null!=n["return"]&&(a=n["return"](),Object(a)!==a))return}finally{if(u)throw i}}return s}}var o=n("06c5");n("d9e2");function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(t,e){return r(t)||i(t,e)||Object(o["a"])(t,e)||a()}},"386b":function(t,e,n){"use strict";var r;function i(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var o=n("9bfc").codes,a=o.ERR_MISSING_ARGS,s=o.ERR_STREAM_DESTROYED;function l(t){if(t)throw t}function u(t){return t.setHeader&&"function"===typeof t.abort}function c(t,e,o,a){a=i(a);var l=!1;t.on("close",(function(){l=!0})),void 0===r&&(r=n("bf09")),r(t,{readable:e,writable:o},(function(t){if(t)return a(t);l=!0,a()}));var c=!1;return function(e){if(!l&&!c)return c=!0,u(t)?t.abort():"function"===typeof t.destroy?t.destroy():void a(e||new s("pipe"))}}function h(t){t()}function f(t,e){return t.pipe(e)}function d(t){return t.length?"function"!==typeof t[t.length-1]?l:t.pop():l}function p(){for(var t=arguments.length,e=new Array(t),n=0;n0;return c(t,a,s,(function(t){r||(r=t),t&&o.forEach(h),a||(o.forEach(h),i(r))}))}));return e.reduce(f)}t.exports=p},"387f":function(t,e,n){"use strict";t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t}},3934:function(t,e,n){"use strict";var r=n("c532");t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return function(){return!0}}()},3938:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.radarConfig=void 0;var r={show:!0,name:"",data:[],radarStyle:{lineWidth:1},point:{show:!0,radius:2,style:{fill:"#fff"}},label:{show:!0,offset:[0,0],labelGap:5,formatter:null,style:{fontSize:10}},rLevel:10,animationCurve:"easeOutCubic",animationFrane:50};e.radarConfig=r},"393a":function(t,e,n){"use strict";var r=n("e444"),i=n("512c"),o=n("ba01"),a=n("051b"),s=n("8a0d"),l=n("26dd"),u=n("92f0"),c=n("ce7a"),h=n("cc15")("iterator"),f=!([].keys&&"next"in[].keys()),d="@@iterator",p="keys",g="values",v=function(){return this};t.exports=function(t,e,n,y,m,b,_){l(n,e,y);var x,w,S,O=function(t){if(!f&&t in M)return M[t];switch(t){case p:return function(){return new n(this,t)};case g:return function(){return new n(this,t)}}return function(){return new n(this,t)}},C=e+" Iterator",k=m==g,A=!1,M=t.prototype,T=M[h]||M[d]||m&&M[m],I=T||O(m),E=m?k?O("entries"):I:void 0,P="Array"==e&&M.entries||T;if(P&&(S=c(P.call(new t)),S!==Object.prototype&&S.next&&(u(S,C,!0),r||"function"==typeof S[h]||a(S,h,v))),k&&T&&T.name!==g&&(A=!0,I=function(){return T.call(this)}),r&&!_||!f&&!A&&M[h]||a(M,h,I),s[e]=I,s[C]=v,m)if(x={values:k?I:O(g),keys:b?I:O(p),entries:E},_)for(w in x)w in M||o(M,w,x[w]);else i(i.P+i.F*(f||A),e,x);return x}},"39ad":function(t,e,n){var r=n("6ca1"),i=n("d16a"),o=n("9d11");t.exports=function(t){return function(e,n,a){var s,l=r(e),u=i(l.length),c=o(a,u);if(t&&n!=n){while(u>c)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===n)return t||c||0;return!t&&-1}}},"3a34":function(t,e,n){"use strict";var r=n("83ab"),i=n("e8b5"),o=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(i(t)&&!a(t,"length").writable)throw o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},"3a9b":function(t,e,n){var r=n("e330");t.exports=r({}.isPrototypeOf)},"3bbe":function(t,e,n){var r=n("1626"),i=String,o=TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw o("Can't set "+i(t)+" as a prototype")}},"3bd2":function(t,e,n){"use strict";(function(e,r){var i;t.exports=T,T.ReadableState=M;n("faa1").EventEmitter;var o=function(t,e){return t.listeners(e).length},a=n("946b"),s=n("1c35").Buffer,l=e.Uint8Array||function(){};function u(t){return s.from(t)}function c(t){return s.isBuffer(t)||t instanceof l}var h,f=n(7);h=f&&f.debuglog?f.debuglog("stream"):function(){};var d,p,g,v=n("86ef"),y=n("015d"),m=n("75d2"),b=m.getHighWaterMark,_=n("e142").codes,x=_.ERR_INVALID_ARG_TYPE,w=_.ERR_STREAM_PUSH_AFTER_EOF,S=_.ERR_METHOD_NOT_IMPLEMENTED,O=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n("3fb5")(T,a);var C=y.errorOrDestroy,k=["error","close","destroy","pause","resume"];function A(t,e,n){if("function"===typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}function M(t,e,r){i=i||n("030c"),t=t||{},"boolean"!==typeof r&&(r=e instanceof i),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=b(this,t,"readableHighWaterMark",r),this.buffer=new v,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(d||(d=n("aa22").StringDecoder),this.decoder=new d(t.encoding),this.encoding=t.encoding)}function T(t){if(i=i||n("030c"),!(this instanceof T))return new T(t);var e=this instanceof i;this._readableState=new M(t,this,e),this.readable=!0,t&&("function"===typeof t.read&&(this._read=t.read),"function"===typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function I(t,e,n,r,i){h("readableAddChunk",e);var o,a=t._readableState;if(null===e)a.reading=!1,R(t,a);else if(i||(o=P(a,e)),o)C(t,o);else if(a.objectMode||e&&e.length>0)if("string"===typeof e||a.objectMode||Object.getPrototypeOf(e)===s.prototype||(e=u(e)),r)a.endEmitted?C(t,new O):E(t,a,e,!0);else if(a.ended)C(t,new w);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?E(t,a,e,!1):F(t,a)):E(t,a,e,!1)}else r||(a.reading=!1,F(t,a));return!a.ended&&(a.length=j?t=j:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function D(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=L(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function R(t,e){if(h("onEofChunk"),!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,e.sync?N(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,B(t)))}}function N(t){var e=t._readableState;h("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(h("emitReadable",e.flowing),e.emittedReadable=!0,r.nextTick(B,t))}function B(t){var e=t._readableState;h("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,U(t)}function F(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(z,t,e))}function z(t,e){while(!e.reading&&!e.ended&&(e.length0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function G(t){h("readable nexttick read 0"),t.read(0)}function H(t,e){e.resumeScheduled||(e.resumeScheduled=!0,r.nextTick(W,t,e))}function W(t,e){h("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),U(t),e.flowing&&!e.reading&&t.read(0)}function U(t){var e=t._readableState;h("flow",e.flowing);while(e.flowing&&null!==t.read());}function $(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n);var n}function Y(t){var e=t._readableState;h("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,r.nextTick(X,e,t))}function X(t,e){if(h("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}function K(t,e){for(var n=0,r=t.length;n=e.highWaterMark:e.length>0)||e.ended))return h("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?Y(this):N(this),null;if(t=D(t,e),0===t&&e.ended)return 0===e.length&&Y(this),null;var r,i=e.needReadable;return h("need readable",i),(0===e.length||e.length-t0?$(t,e):null,null===r?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&Y(this)),null!==r&&this.emit("data",r),r},T.prototype._read=function(t){C(this,new S("_read()"))},T.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,h("pipe count=%d opts=%j",i.pipesCount,e);var a=(!e||!1!==e.end)&&t!==r.stdout&&t!==r.stderr,s=a?u:m;function l(t,e){h("onunpipe"),t===n&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,d())}function u(){h("onend"),t.end()}i.endEmitted?r.nextTick(s):n.once("end",s),t.on("unpipe",l);var c=V(n);t.on("drain",c);var f=!1;function d(){h("cleanup"),t.removeListener("close",v),t.removeListener("finish",y),t.removeListener("drain",c),t.removeListener("error",g),t.removeListener("unpipe",l),n.removeListener("end",u),n.removeListener("end",m),n.removeListener("data",p),f=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||c()}function p(e){h("ondata");var r=t.write(e);h("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==K(i.pipes,t))&&!f&&(h("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function g(e){h("onerror",e),m(),t.removeListener("error",g),0===o(t,"error")&&C(t,e)}function v(){t.removeListener("finish",y),m()}function y(){h("onfinish"),t.removeListener("close",v),m()}function m(){h("unpipe"),n.unpipe(t)}return n.on("data",p),A(t,"error",g),t.once("close",v),t.once("finish",y),t.emit("pipe",n),i.flowing||(h("pipe resume"),n.resume()),t},T.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o0,!1!==i.flowing&&this.resume()):"readable"===t&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,h("on readable",i.length,i.reading),i.length?N(this):i.reading||r.nextTick(G,this))),n},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(t,e){var n=a.prototype.removeListener.call(this,t,e);return"readable"===t&&r.nextTick(q,this),n},T.prototype.removeAllListeners=function(t){var e=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||r.nextTick(q,this),e},T.prototype.resume=function(){var t=this._readableState;return t.flowing||(h("resume"),t.flowing=!t.readableListening,H(this,t)),t.paused=!1,this},T.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},T.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var i in t.on("end",(function(){if(h("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){if(h("wrapped data"),n.decoder&&(i=n.decoder.write(i)),(!n.objectMode||null!==i&&void 0!==i)&&(n.objectMode||i&&i.length)){var o=e.push(i);o||(r=!0,t.pause())}})),t)void 0===this[i]&&"function"===typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o=n.length?s(void 0,!0):(t=r(n,i),e.index+=t.length,s(t,!1))}))},"3d67":function(t,e,n){"use strict";n.r(e),n.d(e,"Stack",(function(){return u})),n.d(e,"Queue",(function(){return C})),n.d(e,"PriorityQueue",(function(){return I})),n.d(e,"Vector",(function(){return B})),n.d(e,"VectorIterator",(function(){return R})),n.d(e,"LinkList",(function(){return H})),n.d(e,"LinkListIterator",(function(){return q})),n.d(e,"Deque",(function(){return w})),n.d(e,"DequeIterator",(function(){return _})),n.d(e,"OrderedSet",(function(){return ot})),n.d(e,"OrderedSetIterator",(function(){return rt})),n.d(e,"OrderedMap",(function(){return ft})),n.d(e,"OrderedMapIterator",(function(){return ct})),n.d(e,"HashSet",(function(){return _t})),n.d(e,"HashMap",(function(){return Ct})),n.d(e,"Container",(function(){return a})),n.d(e,"ContainerIterator",(function(){return i})),n.d(e,"SequentialContainer",(function(){return f})),n.d(e,"TreeContainer",(function(){return K})),n.d(e,"HashContainer",(function(){return gt}));var r=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=function(){function t(e){void 0===e&&(e=t.NORMAL),this.iteratorType=e}return t.NORMAL=!1,t.REVERSE=!0,t}(),o=function(){function t(){this.length=0}return t.prototype.size=function(){return this.length},t.prototype.empty=function(){return 0===this.length},t}(),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(o),s=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=function(t){function e(e){void 0===e&&(e=[]);var n=t.call(this)||this;return n.stack=[],e.forEach((function(t){return n.push(t)})),n}return s(e,t),e.prototype.clear=function(){this.length=0,this.stack.length=0},e.prototype.push=function(t){this.stack.push(t),this.length+=1},e.prototype.pop=function(){this.stack.pop(),this.length>0&&(this.length-=1)},e.prototype.top=function(){return this.stack[this.length-1]},e}(o),u=l,c=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e}(a),f=h;function d(t,e,n){if(tn)throw new RangeError}var p=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),g=function(t){function e(e,n,r,o,a){var s=t.call(this,a)||this;return s.node=e,s.size=n,s.getElementByPos=r,s.setElementByPos=o,s.iteratorType===i.NORMAL?(s.pre=function(){if(0===this.node)throw new RangeError("Deque iterator access denied!");return this.node-=1,this},s.next=function(){if(this.node===this.size())throw new RangeError("Deque Iterator access denied!");return this.node+=1,this}):(s.pre=function(){if(this.node===this.size()-1)throw new RangeError("Deque iterator access denied!");return this.node+=1,this},s.next=function(){if(-1===this.node)throw new RangeError("Deque iterator access denied!");return this.node-=1,this}),s}return p(e,t),Object.defineProperty(e.prototype,"pointer",{get:function(){return d(this.node,0,this.size()-1),this.getElementByPos(this.node)},set:function(t){d(this.node,0,this.size()-1),this.setElementByPos(this.node,t)},enumerable:!1,configurable:!0}),e.prototype.equals=function(t){return this.node===t.node},e}(i),v=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),y=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return l([t,e])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a},b=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i>1)-(a>>1),i.curFirst=i.curLast=i.bucketSize-r%i.bucketSize>>1,e.forEach((function(t){return i.pushBack(t)})),i.size=i.size.bind(i),i.getElementByPos=i.getElementByPos.bind(i),i.setElementByPos=i.setElementByPos.bind(i),i}return v(e,t),e.prototype.reAllocate=function(){for(var t=[],e=Math.max(this.bucketNum>>1,1),n=0;n>1},e.prototype.front=function(){return this.map[this.first][this.curFirst]},e.prototype.back=function(){return this.map[this.last][this.curLast]},e.prototype.begin=function(){return new _(0,this.size,this.getElementByPos,this.setElementByPos)},e.prototype.end=function(){return new _(this.length,this.size,this.getElementByPos,this.setElementByPos)},e.prototype.rBegin=function(){return new _(this.length-1,this.size,this.getElementByPos,this.setElementByPos,i.REVERSE)},e.prototype.rEnd=function(){return new _(-1,this.size,this.getElementByPos,this.setElementByPos,i.REVERSE)},e.prototype.pushBack=function(t){this.length&&(this.curLast0?this.curLast-=1:this.last>0?(this.last-=1,this.curLast=this.bucketSize-1):(this.last=this.bucketNum-1,this.curLast=this.bucketSize-1)),this.length-=1)},e.prototype.pushFront=function(t){this.length&&(this.curFirst>0?this.curFirst-=1:this.first>0?(this.first-=1,this.curFirst=this.bucketSize-1):(this.first=this.bucketNum-1,this.curFirst=this.bucketSize-1),this.first===this.last&&this.curFirst===this.curLast&&this.reAllocate()),this.length+=1,this.map[this.first][this.curFirst]=t},e.prototype.popFront=function(){this.length&&(this.map[this.first][this.curFirst]=void 0,1!==this.length&&(this.curFirstt)this.popBack()}},e.prototype.sort=function(t){for(var e=[],n=0;n0)&&!(r=o.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a},M=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;ie?-1:t>1;a>=0;--a){var s=a,l=s<<1|1;while(l0&&(h=c),o.cmp(o.priorityQueue[s],o.priorityQueue[h])<=0)break;i=A([o.priorityQueue[h],o.priorityQueue[s]],2),o.priorityQueue[s]=i[0],o.priorityQueue[h]=i[1],s=h,l=s<<1|1}}return o}return k(e,t),e.prototype.adjust=function(t){var e,n,r=t<<1|1,i=2+(t<<1);r0&&(e=A([this.priorityQueue[r],this.priorityQueue[t]],2),this.priorityQueue[t]=e[0],this.priorityQueue[r]=e[1]),i0&&(n=A([this.priorityQueue[i],this.priorityQueue[t]],2),this.priorityQueue[t]=n[0],this.priorityQueue[i]=n[1])},e.prototype.clear=function(){this.length=0,this.priorityQueue.length=0},e.prototype.push=function(t){if(this.priorityQueue.push(t),this.length+=1,1!==this.length){var e=this.length-1;while(e>0){var n=e-1>>1;if(this.cmp(this.priorityQueue[n],t)<=0)break;this.adjust(n),e=n}}},e.prototype.pop=function(){if(this.length){var t=this.priorityQueue[this.length-1];this.length-=1;var e=0;while(e=this.length)break;var i=n;if(r0&&(i=r),this.cmp(this.priorityQueue[i],t)>=0)break;this.priorityQueue[e]=this.priorityQueue[i],e=i}this.priorityQueue[e]=t,this.priorityQueue.pop()}},e.prototype.top=function(){return this.priorityQueue[0]},e}(o),I=T,E=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),P=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return l([t,e])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a},L=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},R=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return E(e,t),e.prototype.copy=function(){return new e(this.node,this.size,this.getElementByPos,this.setElementByPos,this.iteratorType)},e}(g),N=function(t){function e(e,n){void 0===e&&(e=[]),void 0===n&&(n=!0);var r=t.call(this)||this;return Array.isArray(e)?(r.vector=n?L([],j(e),!1):e,r.length=e.length):(r.vector=[],e.forEach((function(t){return r.pushBack(t)}))),r.size=r.size.bind(r),r.getElementByPos=r.getElementByPos.bind(r),r.setElementByPos=r.setElementByPos.bind(r),r}return E(e,t),e.prototype.clear=function(){this.length=0,this.vector.length=0},e.prototype.begin=function(){return new R(0,this.size,this.getElementByPos,this.setElementByPos)},e.prototype.end=function(){return new R(this.length,this.size,this.getElementByPos,this.setElementByPos)},e.prototype.rBegin=function(){return new R(this.length-1,this.size,this.getElementByPos,this.setElementByPos,i.REVERSE)},e.prototype.rEnd=function(){return new R(-1,this.size,this.getElementByPos,this.setElementByPos,i.REVERSE)},e.prototype.front=function(){return this.vector[0]},e.prototype.back=function(){return this.vector[this.length-1]},e.prototype.forEach=function(t){for(var e=0;e0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a},X=function(t){function e(e){void 0===e&&(e=function(t,e){return te?1:0});var n=t.call(this)||this;return n.root=void 0,n.header=new U,n.inOrderTraversal=function(t,e){if(void 0===t)return!1;var r=n.inOrderTraversal(t.left,e);return!!r||(!!e(t)||n.inOrderTraversal(t.right,e))},n.cmp=e,n}return $(e,t),e.prototype._lowerBound=function(t,e){var n;while(t){var r=this.cmp(t.key,e);if(r<0)t=t.right;else{if(!(r>0))return t;n=t,t=t.left}}return void 0===n?this.header:n},e.prototype._upperBound=function(t,e){var n;while(t){var r=this.cmp(t.key,e);r<=0?t=t.right:r>0&&(n=t,t=t.left)}return void 0===n?this.header:n},e.prototype._reverseLowerBound=function(t,e){var n;while(t){var r=this.cmp(t.key,e);if(r<0)n=t,t=t.right;else{if(!(r>0))return t;t=t.left}}return void 0===n?this.header:n},e.prototype._reverseUpperBound=function(t,e){var n;while(t){var r=this.cmp(t.key,e);r<0?(n=t,t=t.right):r>=0&&(t=t.left)}return void 0===n?this.header:n},e.prototype.eraseNodeSelfBalance=function(t){while(1){var e=t.parent;if(e===this.header)return;if(t.color===U.RED)return void(t.color=U.BLACK);if(t===e.left){var n=e.right;if(n.color===U.RED)n.color=U.BLACK,e.color=U.RED,e===this.root?this.root=e.rotateLeft():e.rotateLeft();else if(n.color===U.BLACK){if(n.right&&n.right.color===U.RED)return n.color=e.color,e.color=U.BLACK,n.right.color=U.BLACK,void(e===this.root?this.root=e.rotateLeft():e.rotateLeft());n.left&&n.left.color===U.RED?(n.color=U.RED,n.left.color=U.BLACK,n.rotateRight()):(n.color=U.RED,t=e)}}else{n=e.left;if(n.color===U.RED)n.color=U.BLACK,e.color=U.RED,e===this.root?this.root=e.rotateRight():e.rotateRight();else{if(n.left&&n.left.color===U.RED)return n.color=e.color,e.color=U.BLACK,n.left.color=U.BLACK,void(e===this.root?this.root=e.rotateRight():e.rotateRight());n.right&&n.right.color===U.RED?(n.color=U.RED,n.right.color=U.BLACK,n.rotateLeft()):(n.color=U.RED,t=e)}}}},e.prototype.eraseNode=function(t){var e,n;if(1!==this.length){var r=t;while(r.left||r.right){if(r.right){r=r.right;while(r.left)r=r.left}else r.left&&(r=r.left);e=Y([r.key,t.key],2),t.key=e[0],r.key=e[1],n=Y([r.value,t.value],2),t.value=n[0],r.value=n[1],t=r}this.header.left===r?this.header.left=r.parent:this.header.right===r&&(this.header.right=r.parent),this.eraseNodeSelfBalance(r),r.remove(),this.length-=1,this.root.color=U.BLACK}else this.clear()},e.prototype.insertNodeSelfBalance=function(t){while(1){var e=t.parent;if(e.color===U.BLACK)return;var n=e.parent;if(e===n.left){var r=n.right;if(r&&r.color===U.RED){if(r.color=e.color=U.BLACK,n===this.root)return;n.color=U.RED,t=n;continue}if(t===e.right){if(t.color=U.BLACK,t.left&&(t.left.parent=e),t.right&&(t.right.parent=n),e.right=t.left,n.left=t.right,t.left=e,t.right=n,n===this.root)this.root=t,this.header.parent=t;else{var i=n.parent;i.left===n?i.left=t:i.right=t}t.parent=n.parent,e.parent=t,n.parent=t}else e.color=U.BLACK,n===this.root?this.root=n.rotateRight():n.rotateRight();n.color=U.RED}else{r=n.left;if(r&&r.color===U.RED){if(r.color=e.color=U.BLACK,n===this.root)return;n.color=U.RED,t=n;continue}if(t===e.left){if(t.color=U.BLACK,t.left&&(t.left.parent=n),t.right&&(t.right.parent=e),n.right=t.left,e.left=t.right,t.left=n,t.right=e,n===this.root)this.root=t,this.header.parent=t;else{i=n.parent;i.left===n?i.left=t:i.right=t}t.parent=n.parent,e.parent=t,n.parent=t}else e.color=U.BLACK,n===this.root?this.root=n.rotateLeft():n.rotateLeft();n.color=U.RED}return}},e.prototype.findElementNode=function(t,e){while(t){var n=this.cmp(t.key,e);if(n<0)t=t.right;else{if(!(n>0))return t;t=t.left}}return t},e.prototype.set=function(t,e,n){if(void 0===this.root)return this.length+=1,this.root=new U(t,e),this.root.color=U.BLACK,this.root.parent=this.header,this.header.parent=this.root,this.header.left=this.root,void(this.header.right=this.root);var r,i=this.header.left,o=this.cmp(i.key,t);if(0!==o){if(o>0)i.left=new U(t,e),i.left.parent=i,r=i.left,this.header.left=r;else{var a=this.header.right,s=this.cmp(a.key,t);if(0===s)return void(a.value=e);if(s<0)a.right=new U(t,e),a.right.parent=a,r=a.right,this.header.right=r;else{if(void 0!==n){var l=n.node;if(l!==this.header){var u=this.cmp(l.key,t);if(0===u)return void(l.value=e);if(u>0){var c=l.pre(),h=this.cmp(c.key,t);if(0===h)return void(c.value=e);h<0&&(r=new U(t,e),void 0===c.right?(c.right=r,r.parent=c):(l.left=r,r.parent=l))}}}if(void 0===r){r=this.root;while(1){var f=this.cmp(r.key,t);if(f>0){if(void 0===r.left){r.left=new U(t,e),r.left.parent=r,r=r.left;break}r=r.left}else{if(!(f<0))return void(r.value=e);if(void 0===r.right){r.right=new U(t,e),r.right.parent=r,r=r.right;break}r=r.right}}}}}this.length+=1,this.insertNodeSelfBalance(r)}else i.value=e},e.prototype.clear=function(){this.length=0,this.root=void 0,this.header.parent=void 0,this.header.left=this.header.right=void 0},e.prototype.updateKeyByIterator=function(t,e){var n=t.node;if(n===this.header)throw new TypeError("Invalid iterator!");if(1===this.length)return n.key=e,!0;if(n===this.header.left)return this.cmp(n.next().key,e)>0&&(n.key=e,!0);if(n===this.header.right)return this.cmp(n.pre().key,e)<0&&(n.key=e,!0);var r=n.pre().key;if(this.cmp(r,e)>=0)return!1;var i=n.next().key;return!(this.cmp(i,e)<=0)&&(n.key=e,!0)},e.prototype.eraseElementByPos=function(t){var e=this;d(t,0,this.length-1);var n=0;this.inOrderTraversal(this.root,(function(r){return t===n?(e.eraseNode(r),!0):(n+=1,!1)}))},e.prototype.eraseElementByKey=function(t){if(this.length){var e=this.findElementNode(this.root,t);void 0!==e&&this.eraseNode(e)}},e.prototype.eraseElementByIterator=function(t){var e=t.node;if(e===this.header)throw new RangeError("Invalid iterator");return void 0===e.right&&(t=t.next()),this.eraseNode(e),t},e.prototype.getHeight=function(){if(!this.length)return 0;var t=function(e){return e?Math.max(t(e.left),t(e.right))+1:0};return t(this.root)},e}(a),K=X,Z=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Q=function(t){function e(e,n,r){var o=t.call(this,r)||this;return o.node=e,o.header=n,o.iteratorType===i.NORMAL?(o.pre=function(){if(this.node===this.header.left)throw new RangeError("LinkList iterator access denied!");return this.node=this.node.pre(),this},o.next=function(){if(this.node===this.header)throw new RangeError("LinkList iterator access denied!");return this.node=this.node.next(),this}):(o.pre=function(){if(this.node===this.header.right)throw new RangeError("LinkList iterator access denied!");return this.node=this.node.next(),this},o.next=function(){if(this.node===this.header)throw new RangeError("LinkList iterator access denied!");return this.node=this.node.pre(),this}),o}return Z(e,t),e.prototype.equals=function(t){return this.node===t.node},e}(i),J=Q,tt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),et=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return l([t,e])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},rt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tt(e,t),Object.defineProperty(e.prototype,"pointer",{get:function(){if(this.node===this.header)throw new RangeError("OrderedSet iterator access denied!");return this.node.key},enumerable:!1,configurable:!0}),e.prototype.copy=function(){return new e(this.node,this.header,this.iteratorType)},e}(J),it=function(t){function e(e,n){void 0===e&&(e=[]);var r=t.call(this,n)||this;return r.iterationFunc=function(t){return et(this,(function(e){switch(e.label){case 0:return void 0===t?[2]:[5,nt(this.iterationFunc(t.left))];case 1:return e.sent(),[4,t.key];case 2:return e.sent(),[5,nt(this.iterationFunc(t.right))];case 3:return e.sent(),[2]}}))},e.forEach((function(t){return r.insert(t)})),r.iterationFunc=r.iterationFunc.bind(r),r}return tt(e,t),e.prototype.begin=function(){return new rt(this.header.left||this.header,this.header)},e.prototype.end=function(){return new rt(this.header,this.header)},e.prototype.rBegin=function(){return new rt(this.header.right||this.header,this.header,i.REVERSE)},e.prototype.rEnd=function(){return new rt(this.header,this.header,i.REVERSE)},e.prototype.front=function(){return this.header.left?this.header.left.key:void 0},e.prototype.back=function(){return this.header.right?this.header.right.key:void 0},e.prototype.forEach=function(t){var e,n,r=0;try{for(var i=nt(this),o=i.next();!o.done;o=i.next()){var a=o.value;t(a,r++)}}catch(s){e={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}},e.prototype.getElementByPos=function(t){var e,n,r;d(t,0,this.length-1);var i=0;try{for(var o=nt(this),a=o.next();!a.done;a=o.next()){var s=a.value;i===t&&(r=s),i+=1}}catch(l){e={error:l}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r},e.prototype.insert=function(t,e){this.set(t,void 0,e)},e.prototype.find=function(t){var e=this.findElementNode(this.root,t);return void 0!==e?new rt(e,this.header):this.end()},e.prototype.lowerBound=function(t){var e=this._lowerBound(this.root,t);return new rt(e,this.header)},e.prototype.upperBound=function(t){var e=this._upperBound(this.root,t);return new rt(e,this.header)},e.prototype.reverseLowerBound=function(t){var e=this._reverseLowerBound(this.root,t);return new rt(e,this.header)},e.prototype.reverseUpperBound=function(t){var e=this._reverseUpperBound(this.root,t);return new rt(e,this.header)},e.prototype.union=function(t){var e=this;t.forEach((function(t){return e.insert(t)}))},e.prototype[Symbol.iterator]=function(){return this.iterationFunc(this.root)},e}(K),ot=it,at=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),st=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return l([t,e])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a},ut=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ct=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return at(e,t),Object.defineProperty(e.prototype,"pointer",{get:function(){var t=this;if(this.node===this.header)throw new RangeError("OrderedMap iterator access denied");return new Proxy([],{get:function(e,n){return"0"===n?t.node.key:"1"===n?t.node.value:void 0},set:function(e,n,r){if("1"!==n)throw new TypeError("props must be 1");return t.node.value=r,!0}})},enumerable:!1,configurable:!0}),e.prototype.copy=function(){return new e(this.node,this.header,this.iteratorType)},e}(J),ht=function(t){function e(e,n){void 0===e&&(e=[]);var r=t.call(this,n)||this;return r.iterationFunc=function(t){return st(this,(function(e){switch(e.label){case 0:return void 0===t?[2]:[5,ut(this.iterationFunc(t.left))];case 1:return e.sent(),[4,[t.key,t.value]];case 2:return e.sent(),[5,ut(this.iterationFunc(t.right))];case 3:return e.sent(),[2]}}))},r.iterationFunc=r.iterationFunc.bind(r),e.forEach((function(t){var e=lt(t,2),n=e[0],i=e[1];return r.setElement(n,i)})),r}return at(e,t),e.prototype.begin=function(){return new ct(this.header.left||this.header,this.header)},e.prototype.end=function(){return new ct(this.header,this.header)},e.prototype.rBegin=function(){return new ct(this.header.right||this.header,this.header,i.REVERSE)},e.prototype.rEnd=function(){return new ct(this.header,this.header,i.REVERSE)},e.prototype.front=function(){if(this.length){var t=this.header.left;return[t.key,t.value]}},e.prototype.back=function(){if(this.length){var t=this.header.right;return[t.key,t.value]}},e.prototype.forEach=function(t){var e,n,r=0;try{for(var i=ut(this),o=i.next();!o.done;o=i.next()){var a=o.value;t(a,r++)}}catch(s){e={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}},e.prototype.lowerBound=function(t){var e=this._lowerBound(this.root,t);return new ct(e,this.header)},e.prototype.upperBound=function(t){var e=this._upperBound(this.root,t);return new ct(e,this.header)},e.prototype.reverseLowerBound=function(t){var e=this._reverseLowerBound(this.root,t);return new ct(e,this.header)},e.prototype.reverseUpperBound=function(t){var e=this._reverseUpperBound(this.root,t);return new ct(e,this.header)},e.prototype.setElement=function(t,e,n){this.set(t,e,n)},e.prototype.find=function(t){var e=this.findElementNode(this.root,t);return void 0!==e?new ct(e,this.header):this.end()},e.prototype.getElementByKey=function(t){var e=this.findElementNode(this.root,t);return e?e.value:void 0},e.prototype.getElementByPos=function(t){var e,n,r;d(t,0,this.length-1);var i=0;try{for(var o=ut(this),a=o.next();!a.done;a=o.next()){var s=a.value;if(i===t){r=s;break}i+=1}}catch(l){e={error:l}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r},e.prototype.union=function(t){var e=this;t.forEach((function(t){var n=lt(t,2),r=n[0],i=n[1];return e.setElement(r,i)}))},e.prototype[Symbol.iterator]=function(){return this.iterationFunc(this.root)},e}(K),ft=ht,dt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pt=function(t){function e(e,n){void 0===e&&(e=16),void 0===n&&(n=function(t){var e;e="string"!==typeof t?JSON.stringify(t):t;for(var n=0,r=e.length,i=0;i>>0});var r=t.call(this)||this;if(e<16||0!==(e&e-1))throw new RangeError("InitBucketNum range error");return r.bucketNum=r.initBucketNum=e,r.hashFunc=n,r}return dt(e,t),e.prototype.clear=function(){this.length=0,this.bucketNum=this.initBucketNum,this.hashTable=[]},e.sigma=.75,e.treeifyThreshold=8,e.untreeifyThreshold=6,e.minTreeifySize=64,e.maxBucketNum=1<<30,e}(o),gt=pt,vt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yt=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return l([t,e])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},bt=function(t){function e(e,n,r){void 0===e&&(e=[]);var i=t.call(this,n,r)||this;return i.hashTable=[],e.forEach((function(t){return i.insert(t)})),i}return vt(e,t),e.prototype.reAllocate=function(){var t=this;if(!(this.bucketNum>=gt.maxBucketNum)){var e=[],n=this.bucketNum;this.bucketNum<<=1;for(var r=Object.keys(this.hashTable),i=r.length,o=function(i){var o=parseInt(r[i]),s=a.hashTable[o],l=s.size();if(0===l)return"continue";if(1===l){var u=s.front();return e[a.hashFunc(u)&a.bucketNum-1]=new B([u],!1),"continue"}var c=[],h=[];s.forEach((function(e){var r=t.hashFunc(e);0===(r&n)?c.push(e):h.push(e)})),s instanceof ot?(c.length>gt.untreeifyThreshold?e[o]=new ot(c):c.length&&(e[o]=new B(c,!1)),h.length>gt.untreeifyThreshold?e[o+n]=new ot(h):h.length&&(e[o+n]=new B(h,!1))):(c.length>=gt.treeifyThreshold?e[o]=new ot(c):c.length&&(e[o]=new B(c,!1)),h.length>=gt.treeifyThreshold?e[o+n]=new ot(h):h.length&&(e[o+n]=new B(h,!1)))},a=this,s=0;s=gt.treeifyThreshold){if(this.bucketNum<=gt.minTreeifySize)return this.length+=1,void this.reAllocate();this.hashTable[e]=new ot(n)}this.length+=1}else{n.insert(t);var i=n.size();this.length+=i-r}}else this.hashTable[e]=new B([t],!1),this.length+=1;this.length>this.bucketNum*gt.sigma&&this.reAllocate()},e.prototype.eraseElementByKey=function(t){var e=this.hashFunc(t)&this.bucketNum-1,n=this.hashTable[e];if(n){var r=n.size();if(0!==r)if(n instanceof B){n.eraseElementByValue(t);var i=n.size();this.length+=i-r}else{n.eraseElementByKey(t);i=n.size();this.length+=i-r,i<=gt.untreeifyThreshold&&(this.hashTable[e]=new B(n))}}},e.prototype.find=function(t){var e=this.hashFunc(t)&this.bucketNum-1,n=this.hashTable[e];return!!n&&!n.find(t).equals(n.end())},e.prototype[Symbol.iterator]=function(){return function(){var t,e,n,r,i,o,a,s,l,u;return yt(this,(function(c){switch(c.label){case 0:t=Object.values(this.hashTable),e=t.length,n=0,c.label=1;case 1:if(!(n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Ot=function(t){function e(e,n,r){void 0===e&&(e=[]);var i=t.call(this,n,r)||this;return i.hashTable=[],e.forEach((function(t){return i.setElement(t[0],t[1])})),i}return xt(e,t),e.prototype.reAllocate=function(){var t=this;if(!(this.bucketNum>=gt.maxBucketNum)){var e=[],n=this.bucketNum;this.bucketNum<<=1;for(var r=Object.keys(this.hashTable),i=r.length,o=function(i){var o=parseInt(r[i]),s=a.hashTable[o],l=s.size();if(0===l)return"continue";if(1===l){var u=s.front();return e[a.hashFunc(u[0])&a.bucketNum-1]=new B([u],!1),"continue"}var c=[],h=[];s.forEach((function(e){var r=t.hashFunc(e[0]);0===(r&n)?c.push(e):h.push(e)})),s instanceof ft?(c.length>gt.untreeifyThreshold?e[o]=new ft(c):c.length&&(e[o]=new B(c,!1)),h.length>gt.untreeifyThreshold?e[o+n]=new ft(h):h.length&&(e[o+n]=new B(h,!1))):(c.length>=gt.treeifyThreshold?e[o]=new ft(c):c.length&&(e[o]=new B(c,!1)),h.length>=gt.treeifyThreshold?e[o+n]=new ft(h):h.length&&(e[o+n]=new B(h,!1)))},a=this,s=0;s=e.treeifyThreshold){if(this.bucketNum<=e.minTreeifySize)return this.length+=1,void this.reAllocate();this.hashTable[o]=new ft(this.hashTable[o])}this.length+=1}else{a.setElement(t,n);var h=a.size();this.length+=h-s}}else this.length+=1,this.hashTable[o]=new B([[t,n]],!1);this.length>this.bucketNum*e.sigma&&this.reAllocate()},e.prototype.getElementByKey=function(t){var e,n,r=this.hashFunc(t)&this.bucketNum-1,i=this.hashTable[r];if(i){if(i instanceof ft)return i.getElementByKey(t);try{for(var o=St(i),a=o.next();!a.done;a=o.next()){var s=a.value;if(s[0]===t)return s[1]}}catch(l){e={error:l}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}}},e.prototype.eraseElementByKey=function(t){var e,n,r=this.hashFunc(t)&this.bucketNum-1,i=this.hashTable[r];if(i)if(i instanceof B){var o=0;try{for(var a=St(i),s=a.next();!s.done;s=a.next()){var l=s.value;if(l[0]===t)return i.eraseElementByPos(o),void(this.length-=1);o+=1}}catch(h){e={error:h}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}}else{var u=i.size();i.eraseElementByKey(t);var c=i.size();this.length+=c-u,c<=gt.untreeifyThreshold&&(this.hashTable[r]=new B(i))}},e.prototype.find=function(t){var e,n,r=this.hashFunc(t)&this.bucketNum-1,i=this.hashTable[r];if(!i)return!1;if(i instanceof ft)return!i.find(t).equals(i.end());try{for(var o=St(i),a=o.next();!a.done;a=o.next()){var s=a.value;if(s[0]===t)return!0}}catch(l){e={error:l}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return!1},e.prototype[Symbol.iterator]=function(){return function(){var t,e,n,r,i,o,a,s,l,u;return wt(this,(function(c){switch(c.label){case 0:t=Object.values(this.hashTable),e=t.length,n=0,c.label=1;case 1:if(!(n */ var r=n("1c35"),i=r.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function a(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(t,e,n){if("number"===typeof t)throw new TypeError("Argument must not be a number");return i(t,e,n)},a.alloc=function(t,e,n){if("number"!==typeof t)throw new TypeError("Argument must be a number");var r=i(t);return void 0!==e?"string"===typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},a.allocUnsafe=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},"3f6b":function(t,e,n){t.exports={default:n("b9c7"),__esModule:!0}},"3f8c":function(t,e){t.exports={}},"3fb5":function(t,e){"function"===typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},"408a":function(t,e,n){var r=n("e330");t.exports=r(1..valueOf)},"40d5":function(t,e,n){var r=n("d039");t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},"41b2":function(t,e,n){"use strict";e.__esModule=!0;var r=n("3f6b"),i=o(r);function o(t){return t&&t.__esModule?t:{default:t}}e.default=i.default||function(t){for(var e=1;e255?255:t}function a(t){return t=Math.round(t),t<0?0:t>360?360:t}function s(t){return t<0?0:t>1?1:t}function l(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?o(parseFloat(e)/100*255):o(parseInt(e,10))}function u(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?s(parseFloat(e)/100):s(parseFloat(e))}function c(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function h(t,e,n){return t+(e-t)*n}function f(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var p=new r["a"](20),g=null;function v(t,e){g&&d(g,e),g=p.put(t,g||e.slice())}function y(t,e){if(t){e=e||[];var n=p.get(t);if(n)return d(e,n);t+="";var r=t.replace(/ /g,"").toLowerCase();if(r in i)return d(e,i[r]),v(t,e),e;var o=r.length;if("#"!==r.charAt(0)){var a=r.indexOf("("),s=r.indexOf(")");if(-1!==a&&s+1===o){var c=r.substr(0,a),h=r.substr(a+1,s-(a+1)).split(","),g=1;switch(c){case"rgba":if(4!==h.length)return 3===h.length?f(e,+h[0],+h[1],+h[2],1):f(e,0,0,0,1);g=u(h.pop());case"rgb":return h.length>=3?(f(e,l(h[0]),l(h[1]),l(h[2]),3===h.length?g:u(h[3])),v(t,e),e):void f(e,0,0,0,1);case"hsla":return 4!==h.length?void f(e,0,0,0,1):(h[3]=u(h[3]),m(h,e),v(t,e),e);case"hsl":return 3!==h.length?void f(e,0,0,0,1):(m(h,e),v(t,e),e);default:return}}f(e,0,0,0,1)}else{if(4===o||5===o){var y=parseInt(r.slice(1,4),16);return y>=0&&y<=4095?(f(e,(3840&y)>>4|(3840&y)>>8,240&y|(240&y)>>4,15&y|(15&y)<<4,5===o?parseInt(r.slice(4),16)/15:1),v(t,e),e):void f(e,0,0,0,1)}if(7===o||9===o){y=parseInt(r.slice(1,7),16);return y>=0&&y<=16777215?(f(e,(16711680&y)>>16,(65280&y)>>8,255&y,9===o?parseInt(r.slice(7),16)/255:1),v(t,e),e):void f(e,0,0,0,1)}}}}function m(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=u(t[1]),i=u(t[2]),a=i<=.5?i*(r+1):i+r-i*r,s=2*i-a;return e=e||[],f(e,o(255*c(s,a,n+1/3)),o(255*c(s,a,n)),o(255*c(s,a,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function b(t){if(t){var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-r)/6+l/2)/l,h=((s-i)/6+l/2)/l,f=((s-o)/6+l/2)/l;r===s?e=f-h:i===s?e=1/3+c-f:o===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var d=[360*e,n,u];return null!=t[3]&&d.push(t[3]),d}}function _(t,e){var n=y(t);if(n){for(var r=0;r<3;r++)n[r]=e<0?n[r]*(1-e)|0:(255-n[r])*e+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return M(n,4===n.length?"rgba":"rgb")}}function x(t){var e=y(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function w(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var r=t*(e.length-1),i=Math.floor(r),a=Math.ceil(r),l=e[i],u=e[a],c=r-i;return n[0]=o(h(l[0],u[0],c)),n[1]=o(h(l[1],u[1],c)),n[2]=o(h(l[2],u[2],c)),n[3]=s(h(l[3],u[3],c)),n}}var S=w;function O(t,e,n){if(e&&e.length&&t>=0&&t<=1){var r=t*(e.length-1),i=Math.floor(r),a=Math.ceil(r),l=y(e[i]),u=y(e[a]),c=r-i,f=M([o(h(l[0],u[0],c)),o(h(l[1],u[1],c)),o(h(l[2],u[2],c)),s(h(l[3],u[3],c))],"rgba");return n?{color:f,leftIndex:i,rightIndex:a,value:r}:f}}var C=O;function k(t,e,n,r){var i=y(t);if(t)return i=b(i),null!=e&&(i[0]=a(e)),null!=n&&(i[1]=u(n)),null!=r&&(i[2]=u(r)),M(m(i),"rgba")}function A(t,e){var n=y(t);if(n&&null!=e)return n[3]=s(e),M(n,"rgba")}function M(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function T(t,e){var n=y(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function I(){return M([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}},"41f6":function(t,e,n){},"428f":function(t,e,n){var r=n("da84");t.exports=r},4362:function(t,e,n){e.nextTick=function(t){var e=Array.prototype.slice.call(arguments);e.shift(),setTimeout((function(){t.apply(null,e)}),0)},e.platform=e.arch=e.execPath=e.title="browser",e.pid=1,e.browser=!0,e.env={},e.argv=[],e.binding=function(t){throw new Error("No such module. (Possibly not yet loaded)")},function(){var t,r="/";e.cwd=function(){return r},e.chdir=function(e){t||(t=n("df7c")),r=t.resolve(e,r)}}(),e.exit=e.kill=e.umask=e.dlopen=e.uptime=e.memoryUsage=e.uvCounters=function(){},e.features={}},"448a":function(t,e,n){var r=n("2236"),i=n("11b0"),o=n("6613"),a=n("0676");function s(t){return r(t)||i(t)||o(t)||a()}t.exports=s,t.exports.__esModule=!0,t.exports["default"]=t.exports},"44ad":function(t,e,n){var r=n("e330"),i=n("d039"),o=n("c6b6"),a=Object,s=r("".split);t.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?s(t,""):a(t)}:a},"44d2":function(t,e,n){var r=n("b622"),i=n("7c73"),o=n("9bf2").f,a=r("unscopables"),s=Array.prototype;void 0==s[a]&&o(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},"44de":function(t,e,n){var r=n("da84");t.exports=function(t,e){var n=r.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))}},"44e7":function(t,e,n){var r=n("861d"),i=n("c6b6"),o=n("b622"),a=o("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==i(t))}},4656:function(t,e,n){},"467f":function(t,e,n){"use strict";var r=n("2d83");t.exports=function(t,e,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},"46bb6":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.grid=f;var i=r(n("278c")),o=r(n("9523")),a=n("18ad"),s=n("5557"),l=n("9d85"),u=n("becb");function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},n=e.grid;n=(0,u.deepMerge)((0,s.deepClone)(l.gridConfig,!0),n||{}),(0,a.doUpdate)({chart:t,series:[n],key:"grid",getGraphConfig:d})}function d(t,e){var n=t.animationCurve,r=t.animationFrame,i=t.rLevel,o=p(t,e),a=v(t);return e.chart.gridArea=h({},o),[{name:"rect",index:i,animationCurve:n,animationFrame:r,shape:o,style:a}]}function p(t,e){var n=(0,i["default"])(e.chart.render.area,2),r=n[0],o=n[1],a=g(t.left,r),s=g(t.right,r),l=g(t.top,o),u=g(t.bottom,o),c=r-a-s,h=o-l-u;return{x:a,y:l,w:c,h:h}}function g(t,e){return"number"===typeof t?t:"string"!==typeof t?0:e*parseInt(t)/100}function v(t){var e=t.style;return e}},"470c":function(t,e,n){},4738:function(t,e,n){var r=n("da84"),i=n("d256"),o=n("1626"),a=n("94ca"),s=n("8925"),l=n("b622"),u=n("6069"),c=n("6c59"),h=n("c430"),f=n("2d00"),d=i&&i.prototype,p=l("species"),g=!1,v=o(r.PromiseRejectionEvent),y=a("Promise",(function(){var t=s(i),e=t!==String(i);if(!e&&66===f)return!0;if(h&&(!d["catch"]||!d["finally"]))return!0;if(!f||f<51||!/native code/.test(t)){var n=new i((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))},o=n.constructor={};if(o[p]=r,g=n.then((function(){}))instanceof r,!g)return!0}return!e&&(u||c)&&!v}));t.exports={CONSTRUCTOR:y,REJECTION_EVENT:v,SUBCLASSING:g}},4754:function(t,e){t.exports=function(t,e){return{value:t,done:e}}},4840:function(t,e,n){var r=n("825a"),i=n("5087"),o=n("7234"),a=n("b622"),s=a("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||o(n=r(a)[s])?e:i(n)}},"485a":function(t,e,n){var r=n("c65b"),i=n("1626"),o=n("861d"),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&i(n=t.toString)&&!o(s=r(n,t)))return s;if(i(n=t.valueOf)&&!o(s=r(n,t)))return s;if("string"!==e&&i(n=t.toString)&&!o(s=r(n,t)))return s;throw a("Can't convert object to primitive value")}},"498a":function(t,e,n){"use strict";var r=n("23e7"),i=n("58a8").trim,o=n("c8d2");r({target:"String",proto:!0,forced:o("trim")},{trim:function(){return i(this)}})},"49bc":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.gridConfig=void 0;var r={left:"10%",right:"10%",top:60,bottom:60,style:{fill:"rgba(0, 0, 0, 0)"},rLevel:-30,animationCurve:"easeOutCubic",animationFrame:30};e.gridConfig=r},"4a7b":function(t,e,n){"use strict";var r=n("c532");t.exports=function(t,e){e=e||{};var n={};function i(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function o(n){return r.isUndefined(e[n])?r.isUndefined(t[n])?void 0:i(void 0,t[n]):i(t[n],e[n])}function a(t){if(!r.isUndefined(e[t]))return i(void 0,e[t])}function s(n){return r.isUndefined(e[n])?r.isUndefined(t[n])?void 0:i(void 0,t[n]):i(void 0,e[n])}function l(n){return n in e?i(t[n],e[n]):n in t?i(void 0,t[n]):void 0}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return r.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=u[t]||o,i=e(t);r.isUndefined(i)&&e!==l||(n[t]=i)})),n}},"4b8b":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"4d20":function(t,e,n){var r=n("1917"),i=n("10db"),o=n("6ca1"),a=n("3397"),s=n("9c0e"),l=n("faf5"),u=Object.getOwnPropertyDescriptor;e.f=n("0bad")?u:function(t,e){if(t=o(t),e=a(e,!0),l)try{return u(t,e)}catch(n){}if(s(t,e))return i(!r.f.call(t,e),t[e])}},"4d63":function(t,e,n){var r=n("83ab"),i=n("da84"),o=n("e330"),a=n("94ca"),s=n("7156"),l=n("9112"),u=n("241c").f,c=n("3a9b"),h=n("44e7"),f=n("577e"),d=n("90d8"),p=n("9f7f"),g=n("aeb0"),v=n("cb2d"),y=n("d039"),m=n("1a2d"),b=n("69f3").enforce,_=n("2626"),x=n("b622"),w=n("fce3"),S=n("107c"),O=x("match"),C=i.RegExp,k=C.prototype,A=i.SyntaxError,M=o(k.exec),T=o("".charAt),I=o("".replace),E=o("".indexOf),P=o("".slice),j=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,L=/a/g,D=/a/g,R=new C(L)!==L,N=p.MISSED_STICKY,B=p.UNSUPPORTED_Y,F=r&&(!R||N||w||S||y((function(){return D[O]=!1,C(L)!=L||C(D)==D||"/a/i"!=C(L,"i")}))),z=function(t){for(var e,n=t.length,r=0,i="",o=!1;r<=n;r++)e=T(t,r),"\\"!==e?o||"."!==e?("["===e?o=!0:"]"===e&&(o=!1),i+=e):i+="[\\s\\S]":i+=e+T(t,++r);return i},V=function(t){for(var e,n=t.length,r=0,i="",o=[],a={},s=!1,l=!1,u=0,c="";r<=n;r++){if(e=T(t,r),"\\"===e)e+=T(t,++r);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:M(j,P(t,r+1))&&(r+=2,l=!0),i+=e,u++;continue;case">"===e&&l:if(""===c||m(a,c))throw new A("Invalid capture group name");a[c]=!0,o[o.length]=[c,u],l=!1,c="";continue}l?c+=e:i+=e}return[i,o]};if(a("RegExp",F)){for(var q=function(t,e){var n,r,i,o,a,u,p=c(k,this),g=h(t),v=void 0===e,y=[],m=t;if(!p&&g&&v&&t.constructor===q)return t;if((g||c(k,t))&&(t=t.source,v&&(e=d(m))),t=void 0===t?"":f(t),e=void 0===e?"":f(e),m=t,w&&"dotAll"in L&&(r=!!e&&E(e,"s")>-1,r&&(e=I(e,/s/g,""))),n=e,N&&"sticky"in L&&(i=!!e&&E(e,"y")>-1,i&&B&&(e=I(e,/y/g,""))),S&&(o=V(t),t=o[0],y=o[1]),a=s(C(t,e),p?this:k,q),(r||i||y.length)&&(u=b(a),r&&(u.dotAll=!0,u.raw=q(z(t),n)),i&&(u.sticky=!0),y.length&&(u.groups=y)),t!==m)try{l(a,"source",""===m?"(?:)":m)}catch(_){}return a},G=u(C),H=0;G.length>H;)g(q,C,G[H++]);k.constructor=q,q.prototype=k,v(i,"RegExp",q,{constructor:!0})}_("RegExp")},"4d64":function(t,e,n){var r=n("fc6a"),i=n("23cb"),o=n("07fa"),a=function(t){return function(e,n,a){var s,l=r(e),u=o(l),c=i(a,u);if(t&&n!=n){while(u>c)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===n)return t||c||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"4d84":function(t,e,n){"use strict";const r=n("3d67").OrderedSet,i=n("34eb")("number-allocator:trace"),o=n("34eb")("number-allocator:error");function a(t,e){this.low=t,this.high=e}function s(t,e){if(!(this instanceof s))return new s(t,e);this.min=t,this.max=e,this.ss=new r([],(t,e)=>t.compare(e)),i("Create"),this.clear()}a.prototype.equals=function(t){return this.low===t.low&&this.high===t.high},a.prototype.compare=function(t){return this.lowt)&&(r===t?(this.ss.updateKeyByIterator(n,new a(r+1,o)),i("use():"+t),!0):o===t?(this.ss.updateKeyByIterator(n,new a(r,o-1)),i("use():"+t),!0):(this.ss.updateKeyByIterator(n,new a(t+1,o)),this.ss.insert(new a(r,t-1)),i("use():"+t),!0))}return i("use():failed"),!1},s.prototype.free=function(t){if(tthis.max)return void o("free():"+t+" is out of range");const e=new a(t,t),n=this.ss.upperBound(e);if(n.equals(this.ss.end())){if(n.equals(this.ss.begin()))return void this.ss.insert(e);n.pre();const r=n.pointer.high,i=n.pointer.high;i+1===t?this.ss.updateKeyByIterator(n,new a(r,t)):this.ss.insert(e)}else if(n.equals(this.ss.begin()))if(t+1===n.pointer.low){const t=n.pointer.high-1,e=n.pointer.high;this.ss.updateKeyByIterator(n,new a(t,e))}else this.ss.insert(e);else{const r=n.pointer.low,i=n.pointer.high;n.pre();const o=n.pointer.low,s=n.pointer.high;if(s+1===t)if(t+1===r){this.ss.eraseElementByIterator(n);const t=n.pointer.high;this.ss.updateKeyByIterator(n,new a(o,t))}else this.ss.updateKeyByIterator(n,new a(o,t));else t+1===r?(this.ss.eraseElementByIterator(n.next()),this.ss.insert(new a(t,i))):this.ss.insert(e)}i("free():"+t)},s.prototype.clear=function(){i("clear()"),this.ss.clear(),this.ss.insert(new a(this.min,this.max))},s.prototype.intervalCount=function(){return this.ss.size()},s.prototype.dump=function(){console.log("length:"+this.ss.size());for(const t of this.ss)console.log(t)},t.exports=s},"4d88":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"4dae":function(t,e,n){var r=n("23cb"),i=n("07fa"),o=n("8418"),a=Array,s=Math.max;t.exports=function(t,e,n){for(var l=i(t),u=r(e,l),c=r(void 0===n?l:n,l),h=a(s(c-u,0)),f=0;u1?arguments[1]:void 0)}})},"4df4":function(t,e,n){"use strict";var r=n("0366"),i=n("c65b"),o=n("7b0b"),a=n("9bdd"),s=n("e95a"),l=n("68ee"),u=n("07fa"),c=n("8418"),h=n("9a1f"),f=n("35a1"),d=Array;t.exports=function(t){var e=o(t),n=l(this),p=arguments.length,g=p>1?arguments[1]:void 0,v=void 0!==g;v&&(g=r(g,p>2?arguments[2]:void 0));var y,m,b,_,x,w,S=f(e),O=0;if(!S||this===d&&s(S))for(y=u(e),m=n?new this(y):d(y);y>O;O++)w=v?g(e[O],O):e[O],c(m,O,w);else for(_=h(e,S),x=_.next,m=n?new this:[];!(b=i(x,_)).done;O++)w=v?a(_,g,[b.value,O],!0):b.value,c(m,O,w);return m.length=O,m}},"4e71":function(t,e,n){n("e198")("observable")},"4e82":function(t,e,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("59ed"),a=n("7b0b"),s=n("07fa"),l=n("083a"),u=n("577e"),c=n("d039"),h=n("addb"),f=n("a640"),d=n("04d1"),p=n("d998"),g=n("2d00"),v=n("512ce"),y=[],m=i(y.sort),b=i(y.push),_=c((function(){y.sort(void 0)})),x=c((function(){y.sort(null)})),w=f("sort"),S=!c((function(){if(g)return g<70;if(!(d&&d>3)){if(p)return!0;if(v)return v<603;var t,e,n,r,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)y.push({k:e+r,v:n})}for(y.sort((function(t,e){return e.v-t.v})),r=0;ru(n)?1:-1}};r({target:"Array",proto:!0,forced:O},{sort:function(t){void 0!==t&&o(t);var e=a(this);if(S)return void 0===t?m(e):m(e,t);var n,r,i=[],u=s(e);for(r=0;r1&&void 0!==arguments[1]?arguments[1]:{},n=e.series;n||(n=[]);var r=(0,f.initNeedSeries)(n,u.radarConfig,"radar");r=v(r,t),r=y(r,t),r=m(r,t),(0,l.doUpdate)({chart:t,series:r,key:"radar",getGraphConfig:b,getStartGraphConfig:_,beforeChange:S}),(0,l.doUpdate)({chart:t,series:r,key:"radarPoint",getGraphConfig:O,getStartGraphConfig:C}),(0,l.doUpdate)({chart:t,series:r,key:"radarLabel",getGraphConfig:M})}function v(t,e){var n=e.radarAxis;if(!n)return[];var r=n.indicator,i=n.axisLineAngles,o=n.radius,a=n.centerPos;return t.forEach((function(t){var e=t.data;t.dataRadius=[],t.radarPosition=r.map((function(n,r){var l=n.max,u=n.min,h=e[r];"number"!==typeof l&&(l=h),"number"!==typeof u&&(u=0),"number"!==typeof h&&(h=u);var f=(h-u)/(l-u)*o;return t.dataRadius[r]=f,c.getCircleRadianPoint.apply(void 0,(0,s["default"])(a).concat([f,i[r]]))}))})),t}function y(t,e){var n=e.radarAxis;if(!n)return[];var r=n.centerPos,i=n.axisLineAngles;return t.forEach((function(t){var e=t.dataRadius,n=t.label,o=n.labelGap;t.labelPosition=e.map((function(t,e){return c.getCircleRadianPoint.apply(void 0,(0,s["default"])(r).concat([t+o,i[e]]))}))})),t}function m(t,e){var n=e.radarAxis;if(!n)return[];var r=(0,a["default"])(n.centerPos,2),i=r[0],o=r[1];return t.forEach((function(t){var e=t.labelPosition,n=e.map((function(t){var e=(0,a["default"])(t,2),n=e[0],r=e[1],s=n>i?"left":"right",l=r>o?"top":"bottom";return{textAlign:s,textBaseline:l}}));t.labelAlign=n})),t}function b(t){var e=t.animationCurve,n=t.animationFrame,r=t.rLevel;return[{name:"polyline",index:r,animationCurve:e,animationFrame:n,shape:x(t),style:w(t)}]}function _(t,e){var n=e.chart.radarAxis.centerPos,r=b(t)[0],i=r.shape.points.length,o=new Array(i).fill(0).map((function(t){return(0,s["default"])(n)}));return r.shape.points=o,[r]}function x(t){var e=t.radarPosition;return{points:e,close:!0}}function w(t){var e=t.radarStyle,n=t.color,r=(0,h.getRgbaValue)(n);r[3]=.5;var i={stroke:n,fill:(0,h.getColorFromRgbValue)(r)};return(0,f.deepMerge)(i,e)}function S(t,e){var n=e.shape,r=t.shape.points,i=r.length,o=n.points.length;if(o>i){var a=r.slice(-1)[0],l=new Array(o-i).fill(0).map((function(t){return(0,s["default"])(a)}));r.push.apply(r,(0,s["default"])(l))}else o0?i(r(t),9007199254740991):0}},"511f":function(t,e,n){n("0b99"),n("658f"),t.exports=n("fcd4").f("iterator")},"512c":function(t,e,n){var r=n("ef08"),i=n("5524"),o=n("9c0c"),a=n("051b"),s=n("9c0e"),l="prototype",u=function(t,e,n){var c,h,f,d=t&u.F,p=t&u.G,g=t&u.S,v=t&u.P,y=t&u.B,m=t&u.W,b=p?i:i[e]||(i[e]={}),_=b[l],x=p?r:g?r[e]:(r[e]||{})[l];for(c in p&&(n=e),n)h=!d&&x&&void 0!==x[c],h&&s(b,c)||(f=h?x[c]:n[c],b[c]=p&&"function"!=typeof x[c]?n[c]:y&&h?o(f,r):m&&x[c]==f?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[l]=t[l],e}(f):v&&"function"==typeof f?o(Function.call,f):f,v&&((b.virtual||(b.virtual={}))[c]=f,t&u.R&&_&&!_[c]&&a(_,c,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},"512ce":function(t,e,n){var r=n("342f"),i=r.match(/AppleWebKit\/(\d+)\./);t.exports=!!i&&+i[1]},"51e9":function(t,e,n){"use strict";const r=n("f214").Duplex,i=n("3fb5"),o=n("3301");function a(t){if(!(this instanceof a))return new a(t);if("function"===typeof t){this._callback=t;const e=function(t){this._callback&&(this._callback(t),this._callback=null)}.bind(this);this.on("pipe",(function(t){t.on("error",e)})),this.on("unpipe",(function(t){t.removeListener("error",e)})),t=null}o._init.call(this,t),r.call(this)}i(a,r),Object.assign(a.prototype,o.prototype),a.prototype._new=function(t){return new a(t)},a.prototype._write=function(t,e,n){this._appendBuffer(t),"function"===typeof n&&n()},a.prototype._read=function(t){if(!this.length)return this.push(null);t=Math.min(t,this.length),this.push(this.slice(0,t)),this.consume(t)},a.prototype.end=function(t){r.prototype.end.call(this,t),this._callback&&(this._callback(null,this.slice()),this._callback=null)},a.prototype._destroy=function(t,e){this._bufs.length=0,this.length=0,e(t)},a.prototype._isBufferList=function(t){return t instanceof a||t instanceof o||a.isBufferList(t)},a.isBufferList=o.isBufferList,t.exports=a,t.exports.BufferListStream=a,t.exports.BufferList=o},"51eb":function(t,e,n){"use strict";var r=n("825a"),i=n("485a"),o=TypeError;t.exports=function(t){if(r(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw o("Incorrect hint");return i(this,t)}},5270:function(t,e,n){"use strict";var r=n("c532"),i=n("c401"),o=n("2e67"),a=n("2444"),s=n("7a77");function l(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new s("canceled")}t.exports=function(t){l(t),t.headers=t.headers||{},t.data=i.call(t,t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]}));var e=t.adapter||a.adapter;return e(t).then((function(e){return l(t),e.data=i.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(l(t),e&&e.response&&(e.response.data=i.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},5319:function(t,e,n){"use strict";var r=n("2ba4"),i=n("c65b"),o=n("e330"),a=n("d784"),s=n("d039"),l=n("825a"),u=n("1626"),c=n("7234"),h=n("5926"),f=n("50c4"),d=n("577e"),p=n("1d80"),g=n("8aa5"),v=n("dc4a"),y=n("0cb2"),m=n("14c3"),b=n("b622"),_=b("replace"),x=Math.max,w=Math.min,S=o([].concat),O=o([].push),C=o("".indexOf),k=o("".slice),A=function(t){return void 0===t?t:String(t)},M=function(){return"$0"==="a".replace(/./,"$0")}(),T=function(){return!!/./[_]&&""===/./[_]("a","$0")}(),I=!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$
")}));a("replace",(function(t,e,n){var o=T?"$":"$0";return[function(t,n){var r=p(this),o=c(t)?void 0:v(t,_);return o?i(o,t,r,n):i(e,d(r),t,n)},function(t,i){var a=l(this),s=d(t);if("string"==typeof i&&-1===C(i,o)&&-1===C(i,"$<")){var c=n(e,a,s,i);if(c.done)return c.value}var p=u(i);p||(i=d(i));var v=a.global;if(v){var b=a.unicode;a.lastIndex=0}var _=[];while(1){var M=m(a,s);if(null===M)break;if(O(_,M),!v)break;var T=d(M[0]);""===T&&(a.lastIndex=g(s,f(a.lastIndex),b))}for(var I="",E=0,P=0;P<_.length;P++){M=_[P];for(var j=d(M[0]),L=x(w(h(M.index),s.length),0),D=[],R=1;R=E&&(I+=k(s,E,L)+F,E=L+j.length)}return I+k(s,E)}]}),!I||!M||T)},"53a8":function(t,e){t.exports=r;var n=Object.prototype.hasOwnProperty;function r(){for(var t={},e=0;e1&&void 0!==arguments[1]&&arguments[1];if(!t)return t;var n=JSON.parse,r=JSON.stringify;if(!e)return n(r(t));var i=t instanceof Array?[]:{};if(t&&"object"===(0,a["default"])(t))for(var o in t)t.hasOwnProperty(o)&&(t[o]&&"object"===(0,a["default"])(t[o])?i[o]=p(t[o],!0):i[o]=t[o]);return i}function g(t){return t.map((function(t){var e=(0,o["default"])(t,2),n=e[0],r=e[1];return[parseInt(n)+.5,parseInt(r)+.5]}))}function v(t,e,n,r){return y(t,[e,n])<=r}function y(t,e){var n=(0,o["default"])(t,2),r=n[0],i=n[1],a=(0,o["default"])(e,2),u=a[0],c=a[1],h=s(r-u),f=s(i-c);return l(h*h+f*f)}function m(t,e){for(var n=0,r=(0,o["default"])(t,2),i=r[0],a=r[1],s=e.length,l=1,u=e[0];l<=s;l++){var c=e[l%s];if(i>f(u[0],c[0])&&i<=h(u[0],c[0])&&a<=h(u[1],c[1])&&u[0]!==c[0]){var d=(i-u[0])*(c[1]-u[1])/(c[0]-u[0])+u[1];(u[1]===c[1]||a<=d)&&n++}u=c}return n%2===1}function b(t,e,n,r,i,a,s){if(!t)return!1;if(y(t,[e,n])>r)return!1;if(!s){var l=p([a,i]),u=(0,o["default"])(l,2);i=u[0],a=u[1]}var c=i>a;if(c){var h=[a,i];i=h[0],a=h[1]}var f=a-i;if(f>=2*d)return!0;var g=(0,o["default"])(t,2),v=g[0],m=g[1],b=A(e,n,r,i),x=(0,o["default"])(b,2),w=x[0],S=x[1],O=A(e,n,r,a),C=(0,o["default"])(O,2),k=C[0],M=C[1],T=[v-e,m-n],I=[w-e,S-n],E=[k-e,M-n],P=f>d;if(P){var j=p([E,I]),L=(0,o["default"])(j,2);I=L[0],E=L[1]}var D=_(I,T)&&!_(E,T);return P&&(D=!D),c&&(D=!D),D}function _(t,e){var n=(0,o["default"])(t,2),r=n[0],i=n[1],a=(0,o["default"])(e,2),s=a[0],l=a[1];return-i*s+r*l>0}function x(t,e,n){var r=n/2,a=e.map((function(t){var e=(0,o["default"])(t,2),n=e[0],i=e[1];return[n,i-r]})),s=e.map((function(t){var e=(0,o["default"])(t,2),n=e[0],i=e[1];return[n,i+r]})),l=[].concat((0,i["default"])(a),(0,i["default"])(s.reverse()));return m(t,l)}function w(t,e,n,r,i){var a=(0,o["default"])(t,2),s=a[0],l=a[1];return!(se+r)&&!(l>n+i)))}function S(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0];if(!e)return!1;if(t%360===0)return e;var r=(0,o["default"])(e,2),i=r[0],a=r[1],s=(0,o["default"])(n,2),l=s[0],h=s[1];return t*=d/180,[(i-l)*c(t)-(a-h)*u(t)+l,(i-l)*u(t)+(a-h)*c(t)+h]}function O(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[1,1],e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0];if(!e)return!1;if(1===t)return e;var r=(0,o["default"])(e,2),i=r[0],a=r[1],s=(0,o["default"])(n,2),l=s[0],u=s[1],c=(0,o["default"])(t,2),h=c[0],f=c[1],d=i-l,p=a-u;return[d*h+l,p*f+u]}function C(t,e){if(!t||!e)return!1;var n=(0,o["default"])(e,2),r=n[0],i=n[1],a=(0,o["default"])(t,2),s=a[0],l=a[1];return[r+s,i+l]}function k(t,e,n){if(!t||!e||!n)return!1;var r=(0,o["default"])(t,2),i=r[0],a=r[1],u=(0,o["default"])(e,2),c=u[0],h=u[1],f=(0,o["default"])(n,2),d=f[0],p=f[1],g=p-h,v=c-d,y=h*(d-c)-c*(p-h),m=s(g*i+v*a+y),b=l(g*g+v*v);return m/b}function A(t,e,n,r){return[t+c(r)*n,e+u(r)*n]}function M(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-.5*d,o=2*d/r,a=new Array(r).fill("").map((function(t,e){return e*o+i}));return a.map((function(r){return A(t,e,n,r)}))}var T={deepClone:p,eliminateBlur:g,checkPointIsInCircle:v,checkPointIsInPolygon:m,checkPointIsInSector:b,checkPointIsNearPolyline:x,getTwoPointDistance:y,getRotatePointPos:S,getScalePointPos:O,getTranslatePointPos:C,getCircleRadianPoint:A,getRegularPolygonPoints:M,getDistanceBetweenPointAndLine:k};e["default"]=T},"566b":function(t,e,n){var r=n("d633");function i(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function o(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},n=t.name||"Function wrapped with `once`";return e.onceError=n+" shouldn't be called more than once",e.called=!1,e}t.exports=r(i),t.exports.strict=r(o),i.proto=i((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return o(this)},configurable:!0})}))},5692:function(t,e,n){var r=n("c430"),i=n("c6cd");(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.25.3",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.3/LICENSE",source:"https://github.com/zloirock/core-js"})},"56ef":function(t,e,n){var r=n("d066"),i=n("e330"),o=n("241c"),a=n("7418"),s=n("825a"),l=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(s(t)),n=a.f;return n?l(e,n(t)):e}},"577e":function(t,e,n){var r=n("f5df"),i=String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},"57b9":function(t,e,n){var r=n("c65b"),i=n("d066"),o=n("b622"),a=n("cb2d");t.exports=function(){var t=i("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,s=o("toPrimitive");e&&!e[s]&&a(e,s,(function(t){return r(n,this)}),{arity:1})}},5899:function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(t,e,n){var r=n("e330"),i=n("1d80"),o=n("577e"),a=n("5899"),s=r("".replace),l="["+a+"]",u=RegExp("^"+l+l+"*"),c=RegExp(l+l+"*$"),h=function(t){return function(e){var n=o(i(e));return 1&t&&(n=s(n,u,"")),2&t&&(n=s(n,c,"")),n}};t.exports={start:h(1),end:h(2),trim:h(3)}},"58ca":function(t,e,n){"use strict";(function(t){var r=n("2554"),i=n.n(r),o="2.4.0";function a(t){return a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function y(t){return Array.isArray(t)}function m(t){return"undefined"===typeof t}function b(t){return"object"===a(t)}function _(t){return"object"===a(t)&&null!==t}function x(t){return"function"===typeof t}function w(t){return"string"===typeof t}function S(){try{return!m(window)}catch(t){return!1}}var O=S(),C=O?window:t,k=C.console||{};function A(t){k&&k.warn&&k.warn(t)}var M=function(){return A("This vue app/component has no vue-meta configuration")},T={title:void 0,titleChunk:"",titleTemplate:"%s",htmlAttrs:{},bodyAttrs:{},headAttrs:{},base:[],link:[],meta:[],style:[],script:[],noscript:[],__dangerouslyDisableSanitizers:[],__dangerouslyDisableSanitizersByTagID:{}},I="_vueMeta",E="metaInfo",P="data-vue-meta",j="data-vue-meta-server-rendered",L="vmid",D="template",R="content",N="ssr",B=10,F=!0,z={keyName:E,attribute:P,ssrAttribute:j,tagIDKeyName:L,contentKeyName:R,metaTemplateKeyName:D,waitOnDestroyed:F,debounceWait:B,ssrAppId:N},V=Object.keys(T),q=[V[12],V[13]],G=[V[1],V[2],"changed"].concat(q),H=[V[3],V[4],V[5]],W=["link","style","script"],U=["base","meta","link"],$=["noscript","script","style"],Y=["innerHTML","cssText","json"],X=["once","skip","template"],K=["body","pbody"],Z=["allowfullscreen","amp","amp-boilerplate","async","autofocus","autoplay","checked","compact","controls","declare","default","defaultchecked","defaultmuted","defaultselected","defer","disabled","enabled","formnovalidate","hidden","indeterminate","inert","ismap","itemscope","loop","multiple","muted","nohref","noresize","noshade","novalidate","nowrap","open","pauseonexit","readonly","required","reversed","scoped","seamless","selected","sortable","truespeed","typemustmatch","visible"],Q=null;function J(t,e,n){var r=t.debounceWait;e[I].initialized||!e[I].initializing&&"watcher"!==n||(e[I].initialized=null),e[I].initialized&&!e[I].pausing&&tt((function(){e.$meta().refresh()}),r)}function tt(t,e){if(e=void 0===e?10:e,e)return clearTimeout(Q),Q=setTimeout((function(){t()}),e),Q;t()}function et(t,e,n){if(Array.prototype.find)return t.find(e,n);for(var r=0;r/g,">"],[/"/g,"""],[/'/g,"'"]],wt=[[/&/g,"&"],[//g,">"],[/"/g,'"'],[/'/g,"'"]];function St(t,e,n,r){var i=e.tagIDKeyName,o=n.doEscape,a=void 0===o?function(t){return t}:o,s={};for(var l in t){var u=t[l];if(it(G,l))s[l]=u;else{var c=q[0];if(n[c]&&it(n[c],l))s[l]=u;else{var h=t[i];if(h&&(c=q[1],n[c]&&n[c][h]&&it(n[c][h],l)))s[l]=u;else if(w(u)?s[l]=a(u):y(u)?s[l]=u.map((function(t){return _(t)?St(t,e,n,!0):a(t)})):_(u)?s[l]=St(u,e,n,!0):s[l]=u,r){var f=a(l);l!==f&&(s[f]=s[l],delete s[l])}}}}return s}function Ot(t,e,n){n=n||[];var r={doEscape:function(t){return n.reduce((function(t,e){return t.replace(e[0],e[1])}),t)}};return q.forEach((function(t,n){if(0===n)_t(e,t);else if(1===n)for(var i in e[t])_t(e[t],i);r[t]=e[t]})),St(e,t,r)}function Ct(t,e,n,r){var i=t.component,o=t.metaTemplateKeyName,a=t.contentKeyName;return!0!==n&&!0!==e[o]&&(m(n)&&e[o]&&(n=e[o],e[o]=!0),n?(m(r)&&(r=e[a]),e[a]=x(n)?n.call(i,r):n.replace(/%s/g,r),!0):(delete e[o],!1))}function kt(t,e,n){var r=t.component,i=t.tagIDKeyName,o=t.metaTemplateKeyName,a=t.contentKeyName,s=[];return e.length||n.length?(e.forEach((function(t,e){if(t[i]){var l=nt(n,(function(e){return e[i]===t[i]})),u=n[l];if(-1!==l){if(a in u&&void 0===u[a]||"innerHTML"in u&&void 0===u.innerHTML)return s.push(t),void n.splice(l,1);if(null!==u[a]&&null!==u.innerHTML){var c=t[o];if(c){var h=u[o];if(!h)return Ct({component:r,metaTemplateKeyName:o,contentKeyName:a},u,c),void(u.template=!0);u[a]||Ct({component:r,metaTemplateKeyName:o,contentKeyName:a},u,void 0,t[a])}}else n.splice(l,1)}else s.push(t)}else s.push(t)})),s.concat(n)):s}var At=!1;function Mt(t,e,n){return n=n||{},void 0===e.title&&delete e.title,H.forEach((function(t){if(e[t])for(var n in e[t])n in e[t]&&void 0===e[t][n]&&(it(Z,n)&&!At&&(A("VueMeta: Please note that since v2 the value undefined is not used to indicate boolean attributes anymore, see migration guide for details"),At=!0),delete e[t][n])})),i()(t,e,{arrayMerge:function(t,e){return kt(n,t,e)}})}function Tt(t,e){return It(t||{},e,T)}function It(t,e,n){if(n=n||{},e._inactive)return n;t=t||{};var r=t,i=r.keyName,o=e.$metaInfo,a=e.$options,s=e.$children;if(a[i]){var l=o||a[i];b(l)&&(n=Mt(n,l,t))}return s.length&&s.forEach((function(e){ft(e)&&(n=It(t,e,n))})),n}var Et=[];function Pt(t){return"complete"===(t||document).readyState}function jt(t,e){1===arguments.length&&(e=t,t=""),Et.push([t,e])}function Lt(t,e,n,r){var i=t.tagIDKeyName,o=!1;return n.forEach((function(t){t[i]&&t.callback&&(o=!0,jt("".concat(e,"[data-").concat(i,'="').concat(t[i],'"]'),t.callback))})),r&&o?Dt():o}function Dt(){Pt()?Rt():document.onreadystatechange=function(){Rt()}}function Rt(t){Et.forEach((function(e){var n=e[0],r=e[1],i="".concat(n,'[onload="this.__vm_l=1"]'),o=[];t||(o=rt(ot(i))),t&&t.matches(i)&&(o=[t]),o.forEach((function(t){if(!t.__vm_cb){var e=function(){t.__vm_cb=!0,ct(t,"onload"),r(t)};t.__vm_l?e():t.__vm_ev||(t.__vm_ev=!0,t.addEventListener("load",e))}}))}))}var Nt,Bt={};function Ft(t,e,n,r,i){var o=e||{},a=o.attribute,s=i.getAttribute(a);s&&(Bt[n]=JSON.parse(decodeURI(s)),ct(i,a));var l=Bt[n]||{},u=[];for(var c in l)void 0!==l[c]&&t in l[c]&&(u.push(c),r[c]||delete l[c][t]);for(var h in r){var f=l[h];f&&f[t]===r[h]||(u.push(h),void 0!==r[h]&&(l[h]=l[h]||{},l[h][t]=r[h]))}for(var d=0,p=u;d1){var d=[];r=r.filter((function(t){var e=JSON.stringify(t),n=!it(d,e);return d.push(e),n}))}r.forEach((function(e){if(!e.skip){var r=document.createElement(n);e.once||r.setAttribute(s,t),Object.keys(e).forEach((function(t){if(!it(X,t))if("innerHTML"!==t)if("json"!==t)if("cssText"!==t)if("callback"!==t){var n=it(u,t)?"data-".concat(t):t,i=it(Z,t);if(!i||e[t]){var o=i?"":e[t];r.setAttribute(n,o)}}else r.onload=function(){return e[t](r)};else r.styleSheet?r.styleSheet.cssText=e.cssText:r.appendChild(document.createTextNode(e.cssText));else r.innerHTML=JSON.stringify(e.json);else r.innerHTML=e.innerHTML}));var i,o=f[st(e)],a=o.some((function(t,e){return i=e,r.isEqualNode(t)}));a&&(i||0===i)?o.splice(i,1):c.push(r)}}));var p=[];for(var g in f)Array.prototype.push.apply(p,f[g]);return p.forEach((function(t){t.parentNode.removeChild(t)})),c.forEach((function(t){t.hasAttribute("data-body")?o.appendChild(t):t.hasAttribute("data-pbody")?o.insertBefore(t,o.firstChild):i.appendChild(t)})),{oldTags:p,newTags:c}}function qt(t,e,n){e=e||{};var r=e,i=r.ssrAttribute,o=r.ssrAppId,a={},s=at(a,"html");if(t===o&&s.hasAttribute(i)){ct(s,i);var l=!1;return W.forEach((function(t){n[t]&&Lt(e,t,n[t])&&(l=!0)})),l&&Dt(),!1}var u={},c={};for(var h in n)if(!it(G,h))if("title"!==h){if(it(H,h)){var f=h.substr(0,4);Ft(t,e,h,n[h],at(a,f))}else if(y(n[h])){var d=Vt(t,e,h,n[h],at(a,"head"),at(a,"body")),p=d.oldTags,g=d.newTags;g.length&&(u[h]=g,c[h]=p)}}else zt(n.title);return{tagsAdded:u,tagsRemoved:c}}function Gt(t,e,n){return{set:function(r){return Ht(t,e,n,r)},remove:function(){return Wt(t,e,n)}}}function Ht(t,e,n,r){if(t&&t.$el)return qt(e,n,r);Nt=Nt||{},Nt[e]=r}function Wt(t,e,n){if(t&&t.$el){var r,i={},o=v(H);try{for(o.s();!(r=o.n()).done;){var a=r.value,s=a.substr(0,4);Ft(e,n,a,{},at(i,s))}}catch(l){o.e(l)}finally{o.f()}return ut(n,e)}Nt[e]&&(delete Nt[e],$t())}function Ut(){return Nt}function $t(t){!t&&Object.keys(Nt).length||(Nt=void 0)}function Yt(t,e,n,r){t=t||{},n=n||[];var i=t,o=i.tagIDKeyName;return e.title&&(e.titleChunk=e.title),e.titleTemplate&&"%s"!==e.titleTemplate&&Ct({component:r,contentKeyName:"title"},e,e.titleTemplate,e.titleChunk||""),e.base&&(e.base=Object.keys(e.base).length?[e.base]:[]),e.meta&&(e.meta=e.meta.filter((function(t,e,n){var r=!!t[o];if(!r)return!0;var i=e===nt(n,(function(e){return e[o]===t[o]}));return i})),e.meta.forEach((function(e){return Ct(t,e)}))),Ot(t,e,n)}function Xt(t,e){if(e=e||{},!t[I])return M(),{};var n=Tt(e,t),r=Yt(e,n,wt,t),i=t[I].appId,o=qt(i,e,r);o&&x(r.changed)&&(r.changed(r,o.tagsAdded,o.tagsRemoved),o={addedTags:o.tagsAdded,removedTags:o.tagsRemoved});var a=Ut();if(a){for(var s in a)qt(s,e,a[s]),delete a[s];$t(!0)}return{vm:t,metaInfo:r,tags:o}}function Kt(t,e,n,r){var i=r.addSsrAttribute,o=t||{},a=o.attribute,s=o.ssrAttribute,l="";for(var u in n){var h=n[u],f=[];for(var d in h)f.push.apply(f,c([].concat(h[d])));f.length&&(l+=Z.includes(u)&&f.some(Boolean)?"".concat(u):"".concat(u,'="').concat(f.join(" "),'"'),l+=" ")}return l&&(l+="".concat(a,'="').concat(encodeURI(JSON.stringify(n)),'"')),"htmlAttrs"===e&&i?"".concat(s).concat(l?" ":"").concat(l):l}function Zt(t,e,n,r){var i=r||{},o=i.ln;return n?"<".concat(e,">").concat(n,"").concat(o?"\n":""):""}function Qt(t,e,n,r){var i=t||{},o=i.ssrAppId,a=i.attribute,s=i.tagIDKeyName,l=r||{},u=l.appId,h=l.isSSR,f=void 0===h||h,d=l.body,p=void 0!==d&&d,g=l.pbody,v=void 0!==g&&g,y=l.ln,m=void 0!==y&&y,b=[s].concat(c(K));return n&&n.length?n.reduce((function(t,n){if(n.skip)return t;var r=Object.keys(n);if(0===r.length)return t;if(Boolean(n.body)!==p||Boolean(n.pbody)!==v)return t;var i=n.once?"":" ".concat(a,'="').concat(u||(!1===f?"1":o),'"');for(var s in n)if(!Y.includes(s)&&!X.includes(s))if("callback"!==s){var l="";b.includes(s)&&(l="data-");var c=!l&&Z.includes(s);c&&!n[s]||(i+=" ".concat(l).concat(s)+(c?"":'="'.concat(n[s],'"')))}else i+=' onload="this.__vm_l=1"';var h="";n.json&&(h=JSON.stringify(n.json));var d=n.innerHTML||n.cssText||h,g=!U.includes(e),y=g&&$.includes(e);return"".concat(t,"<").concat(e).concat(i).concat(!y&&g?"/":"",">")+(y?"".concat(d,""):"")+(m?"\n":"")}),""):""}function Jt(t,e,n){var r={data:e,extraData:void 0,addInfo:function(t,e){this.extraData=this.extraData||{},this.extraData[t]=e},callInjectors:function(t){var e=this.injectors;return(t.body||t.pbody?"":e.title.text(t))+e.meta.text(t)+e.base.text(t)+e.link.text(t)+e.style.text(t)+e.script.text(t)+e.noscript.text(t)},injectors:{head:function(t){return r.callInjectors(u(u({},n),{},{ln:t}))},bodyPrepend:function(t){return r.callInjectors(u(u({},n),{},{ln:t,pbody:!0}))},bodyAppend:function(t){return r.callInjectors(u(u({},n),{},{ln:t,body:!0}))}}},i=function(e){if(G.includes(e))return"continue";r.injectors[e]={text:function(i){var o=!0===i;if(i=u(u({addSsrAttribute:o},n),i),"title"===e)return Zt(t,e,r.data[e],i);if(H.includes(e)){var a={},l=r.data[e];if(l){var c=!1===i.isSSR?"1":t.ssrAppId;for(var h in l)a[h]=s({},c,l[h])}if(r.extraData)for(var f in r.extraData){var d=r.extraData[f][e];if(d)for(var p in d)a[p]=u(u({},a[p]),{},s({},f,d[p]))}return Kt(t,e,a,i)}var g=Qt(t,e,r.data[e],i);if(r.extraData)for(var v in r.extraData){var y=r.extraData[v][e],m=Qt(t,e,y,u({appId:v},i));g="".concat(g).concat(m)}return g}}};for(var o in T)i(o);return r}function te(t,e,n){if(!t[I])return M(),{};var r=Tt(e,t),i=Yt(e,r,xt,t),o=Jt(e,i,n),a=Ut();if(a){for(var s in a)o.addInfo(s,a[s]),delete a[s];$t(!0)}return o.injectors}function ee(t){t=t||{};var e=this.$root;return{getOptions:function(){return bt(t)},setOptions:function(n){var r="refreshOnceOnNavigation";n&&n[r]&&(t.refreshOnceOnNavigation=!!n[r],gt(e));var i="debounceWait";if(n&&i in n){var o=parseInt(n[i]);isNaN(o)||(t.debounceWait=o)}var a="waitOnDestroyed";n&&a in n&&(t.waitOnDestroyed=!!n[a])},refresh:function(){return Xt(e,t)},inject:function(n){return te(e,t,n)},pause:function(){return dt(e)},resume:function(){return pt(e)},addApp:function(n){return Gt(e,n,t)}}}function ne(t,e){e=mt(e);var n=Yt(e,t,xt),r=Jt(e,n);return r.injectors}function re(t,e){t.__vuemeta_installed||(t.__vuemeta_installed=!0,e=mt(e),t.prototype.$meta=function(){return ee.call(this,e)},t.mixin(yt(t,e)))}var ie={version:o,install:re,generate:function(t,e){return ne(t,e)},hasMetaInfo:ht};e["a"]=ie}).call(this,n("c8ba"))},5926:function(t,e,n){var r=n("b42e");t.exports=function(t){var e=+t;return e!==e||0===e?0:r(e)}},"597f":function(t,e){t.exports=function(t,e,n,r){var i,o=0;function a(){var a=this,s=Number(new Date)-o,l=arguments;function u(){o=Number(new Date),n.apply(a,l)}function c(){i=void 0}r&&!i&&u(),i&&clearTimeout(i),void 0===r&&s>t?u():!0!==e&&(i=setTimeout(r?c:u,void 0===r?t-s:t))}return"boolean"!==typeof e&&(r=n,n=e,e=void 0),a}},"59ed":function(t,e,n){var r=n("1626"),i=n("0d51"),o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not a function")}},"5a34":function(t,e,n){var r=n("44e7"),i=TypeError;t.exports=function(t){if(r(t))throw i("The method doesn't accept regular expressions");return t}},"5a43":function(t,e){function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);na){var g,v=h(arguments[a++]),y=f?p(s(v),f(v)):s(v),m=y.length,b=0;while(m>b)g=y[b++],r&&!o(d,v,g)||(n[g]=v[g])}return n}:f},"60f1":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.legendConfig=void 0;var r={show:!0,orient:"horizontal",left:"auto",right:"auto",top:"auto",bottom:"auto",itemGap:10,iconWidth:25,iconHeight:10,selectAble:!0,data:[],textStyle:{fontFamily:"Arial",fontSize:13,fill:"#000"},iconStyle:{},textUnselectedStyle:{fontFamily:"Arial",fontSize:13,fill:"#999"},iconUnselectedStyle:{fill:"#999"},rLevel:20,animationCurve:"easeOutCubic",animationFrame:50};e.legendConfig=r},"60f7":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.legend=h;var i=r(n("9523")),o=r(n("278c")),a=r(n("7037")),s=n("18ad"),l=n("5557"),u=n("9d85"),c=n("becb");function h(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.legend;n?(n=(0,c.deepMerge)((0,l.deepClone)(u.legendConfig,!0),n),n=f(n),n=d(n,e,t),n=p(n,t),n=y(n,t),n=[n]):n=[],(0,s.doUpdate)({chart:t,series:n,key:"legendIcon",getGraphConfig:M}),(0,s.doUpdate)({chart:t,series:n,key:"legendText",getGraphConfig:E})}function f(t){var e=t.data;return t.data=e.map((function(t){var e=(0,a["default"])(t);return"string"===e?{name:t}:"object"===e?t:{name:""}})),t}function d(t,e,n){var r=e.series,i=n.legendStatus,o=t.data.filter((function(t){var e=t.name,n=r.find((function(t){var n=t.name;return e===n}));return!!n&&(t.color||(t.color=n.color),t.icon||(t.icon=n.type),t)}));return i&&i.length===t.data.length||(i=new Array(t.data.length).fill(!0)),o.forEach((function(t,e){return t.status=i[e]})),t.data=o,n.legendStatus=i,t}function p(t,e){var n=e.render.ctx,r=t.data,i=t.textStyle,o=t.textUnselectedStyle;return r.forEach((function(t){var e=t.status,r=t.name;t.textWidth=g(n,r,e?i:o)})),t}function g(t,e,n){return t.font=v(n),t.measureText(e).width}function v(t){var e=t.fontFamily,n=t.fontSize;return"".concat(n,"px ").concat(e)}function y(t,e){var n=t.orient;return"vertical"===n?O(t,e):m(t,e),t}function m(t,e){var n=t.iconHeight,r=t.itemGap,i=b(t,e),o=i.map((function(n){return x(n,t,e)})),a=w(t,e),s={textAlign:"left",textBaseline:"middle"};i.forEach((function(t,e){return t.forEach((function(t){var i=t.iconPosition,l=t.textPosition,u=o[e],c=a+e*(r+n);t.iconPosition=S(i,[u,c]),t.textPosition=S(l,[u,c]),t.align=s}))}))}function b(t,e){var n=t.data,r=t.iconWidth,i=e.render.area[0],o=0,a=[[]];return n.forEach((function(e,n){var s=_(o,n,t),l=s+r+5+e.textWidth;l>=i&&(o=n,s=_(o,n,t),a.push([])),e.iconPosition=[s,0],e.textPosition=[s+r+5,0],a.slice(-1)[0].push(e)})),a}function _(t,e,n){var r=n.data,i=n.iconWidth,o=n.itemGap,a=r.slice(t,e);return(0,c.mulAdd)(a.map((function(t){var e=t.textWidth;return e})))+(e-t)*(o+5+i)}function x(t,e,n){var r=e.left,i=e.right,o=e.iconWidth,a=e.itemGap,s=n.render.area[0],l=t.length,u=(0,c.mulAdd)(t.map((function(t){var e=t.textWidth;return e})))+l*(5+o)+(l-1)*a,h=[r,i].findIndex((function(t){return"auto"!==t}));return-1===h?(s-u)/2:0===h?"number"===typeof r?r:parseInt(r)/100*s:("number"!==typeof i&&(i=parseInt(i)/100*s),s-(u+i))}function w(t,e){var n=t.top,r=t.bottom,i=t.iconHeight,o=e.render.area[1],a=[n,r].findIndex((function(t){return"auto"!==t})),s=i/2;if(-1===a){var l=e.gridArea,u=l.y,c=l.h;return u+c+45-s}return 0===a?"number"===typeof n?n-s:parseInt(n)/100*o-s:("number"!==typeof r&&(r=parseInt(r)/100*o),o-r-s)}function S(t,e){var n=(0,o["default"])(t,2),r=n[0],i=n[1],a=(0,o["default"])(e,2),s=a[0],l=a[1];return[r+s,i+l]}function O(t,e){var n=C(t,e),r=(0,o["default"])(n,2),i=r[0],a=r[1],s=k(t,e);A(t,i);var l={textAlign:"left",textBaseline:"middle"};t.data.forEach((function(t){var e=t.textPosition,n=t.iconPosition;t.textPosition=S(e,[a,s]),t.iconPosition=S(n,[a,s]),t.align=l}))}function C(t,e){var n=t.left,r=t.right,i=e.render.area[0],o=[n,r].findIndex((function(t){return"auto"!==t}));if(-1===o)return[!0,i-10];var a=[n,r][o];return"number"!==typeof a&&(a=parseInt(a)/100*i),[Boolean(o),a]}function k(t,e){var n=t.iconHeight,r=t.itemGap,i=t.data,o=t.top,a=t.bottom,s=e.render.area[1],l=i.length,u=l*n+(l-1)*r,c=[o,a].findIndex((function(t){return"auto"!==t}));if(-1===c)return(s-u)/2;var h=[o,a][c];return"number"!==typeof h&&(h=parseInt(h)/100*s),1===c&&(h=s-h-u),h}function A(t,e){var n=t.data,r=t.iconWidth,i=t.iconHeight,o=t.itemGap,a=i/2;n.forEach((function(t,n){var s=t.textWidth,l=(i+o)*n+a,u=e?0-r:0,c=e?u-5-s:r+5;t.iconPosition=[u,l],t.textPosition=[c,l]}))}function M(t,e){var n=t.data,r=t.selectAble,o=t.animationCurve,a=t.animationFrame,s=t.rLevel;return n.map((function(n,l){return(0,i["default"])({name:"line"===n.icon?"lineIcon":"rect",index:s,visible:t.show,hover:r,click:r,animationCurve:o,animationFrame:a,shape:T(t,l),style:I(t,l)},"click",D(t,l,e))}))}function T(t,e){var n=t.data,r=t.iconWidth,i=t.iconHeight,a=(0,o["default"])(n[e].iconPosition,2),s=a[0],l=a[1],u=i/2;return{x:s,y:l-u,w:r,h:i}}function I(t,e){var n=t.data,r=t.iconStyle,i=t.iconUnselectedStyle,o=n[e],a=o.status,s=o.color,l=a?r:i;return(0,c.deepMerge)({fill:s},l)}function E(t,e){var n=t.data,r=t.selectAble,i=t.animationCurve,o=t.animationFrame,a=t.rLevel;return n.map((function(n,s){return{name:"text",index:a,visible:t.show,hover:r,animationCurve:i,animationFrame:o,hoverRect:L(t,s),shape:P(t,s),style:j(t,s),click:D(t,s,e)}}))}function P(t,e){var n=t.data[e],r=n.textPosition,i=n.name;return{content:i,position:r}}function j(t,e){var n=t.textStyle,r=t.textUnselectedStyle,i=t.data[e],o=i.status,a=i.align,s=o?n:r;return(0,c.deepMerge)((0,l.deepClone)(s,!0),a)}function L(t,e){var n=t.textStyle,r=t.textUnselectedStyle,i=t.data[e],a=i.status,s=(0,o["default"])(i.textPosition,2),l=s[0],u=s[1],c=i.textWidth,h=a?n:r,f=h.fontSize;return[l,u-f/2,c,f]}function D(t,e,n){var r=t.data[e].name;return function(){var t=n.chart,i=t.legendStatus,o=t.option,a=!i[e],s=o.series.find((function(t){var e=t.name;return e===r}));s.show=a,i[e]=a,n.chart.setOption(o)}}},6155:function(t,e,n){const r=n("4d84");t.exports.NumberAllocator=r},"62e4":function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},"62fd":function(t,e,n){},6374:function(t,e,n){var r=n("da84"),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},"63f00":function(t,e,n){"use strict";const r=n("2fae"),i=Symbol("max"),o=Symbol("length"),a=Symbol("lengthCalculator"),s=Symbol("allowStale"),l=Symbol("maxAge"),u=Symbol("dispose"),c=Symbol("noDisposeOnSet"),h=Symbol("lruList"),f=Symbol("cache"),d=Symbol("updateAgeOnGet"),p=()=>1;class g{constructor(t){if("number"===typeof t&&(t={max:t}),t||(t={}),t.max&&("number"!==typeof t.max||t.max<0))throw new TypeError("max must be a non-negative number");this[i]=t.max||1/0;const e=t.length||p;if(this[a]="function"!==typeof e?p:e,this[s]=t.stale||!1,t.maxAge&&"number"!==typeof t.maxAge)throw new TypeError("maxAge must be a number");this[l]=t.maxAge||0,this[u]=t.dispose,this[c]=t.noDisposeOnSet||!1,this[d]=t.updateAgeOnGet||!1,this.reset()}set max(t){if("number"!==typeof t||t<0)throw new TypeError("max must be a non-negative number");this[i]=t||1/0,m(this)}get max(){return this[i]}set allowStale(t){this[s]=!!t}get allowStale(){return this[s]}set maxAge(t){if("number"!==typeof t)throw new TypeError("maxAge must be a non-negative number");this[l]=t,m(this)}get maxAge(){return this[l]}set lengthCalculator(t){"function"!==typeof t&&(t=p),t!==this[a]&&(this[a]=t,this[o]=0,this[h].forEach(t=>{t.length=this[a](t.value,t.key),this[o]+=t.length})),m(this)}get lengthCalculator(){return this[a]}get length(){return this[o]}get itemCount(){return this[h].length}rforEach(t,e){e=e||this;for(let n=this[h].tail;null!==n;){const r=n.prev;x(this,t,n,e),n=r}}forEach(t,e){e=e||this;for(let n=this[h].head;null!==n;){const r=n.next;x(this,t,n,e),n=r}}keys(){return this[h].toArray().map(t=>t.key)}values(){return this[h].toArray().map(t=>t.value)}reset(){this[u]&&this[h]&&this[h].length&&this[h].forEach(t=>this[u](t.key,t.value)),this[f]=new Map,this[h]=new r,this[o]=0}dump(){return this[h].map(t=>!y(this,t)&&{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[h]}set(t,e,n){if(n=n||this[l],n&&"number"!==typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,s=this[a](e,t);if(this[f].has(t)){if(s>this[i])return b(this,this[f].get(t)),!1;const a=this[f].get(t),l=a.value;return this[u]&&(this[c]||this[u](t,l.value)),l.now=r,l.maxAge=n,l.value=e,this[o]+=s-l.length,l.length=s,this.get(t),m(this),!0}const d=new _(t,e,s,r,n);return d.length>this[i]?(this[u]&&this[u](t,e),!1):(this[o]+=d.length,this[h].unshift(d),this[f].set(t,this[h].head),m(this),!0)}has(t){if(!this[f].has(t))return!1;const e=this[f].get(t).value;return!y(this,e)}get(t){return v(this,t,!0)}peek(t){return v(this,t,!1)}pop(){const t=this[h].tail;return t?(b(this,t),t.value):null}del(t){b(this,this[f].get(t))}load(t){this.reset();const e=Date.now();for(let n=t.length-1;n>=0;n--){const r=t[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{const t=i-e;t>0&&this.set(r.k,r.v,t)}}}prune(){this[f].forEach((t,e)=>v(this,e,!1))}}const v=(t,e,n)=>{const r=t[f].get(e);if(r){const e=r.value;if(y(t,e)){if(b(t,r),!t[s])return}else n&&(t[d]&&(r.value.now=Date.now()),t[h].unshiftNode(r));return e.value}},y=(t,e)=>{if(!e||!e.maxAge&&!t[l])return!1;const n=Date.now()-e.now;return e.maxAge?n>e.maxAge:t[l]&&n>t[l]},m=t=>{if(t[o]>t[i])for(let e=t[h].tail;t[o]>t[i]&&null!==e;){const n=e.prev;b(t,e),e=n}},b=(t,e)=>{if(e){const n=e.value;t[u]&&t[u](n.key,n.value),t[o]-=n.length,t[f].delete(n.key),t[h].removeNode(e)}};class _{constructor(t,e,n,r,i){this.key=t,this.value=e,this.length=n,this.now=r,this.maxAge=i||0}}const x=(t,e,n,r)=>{let i=n.value;y(t,i)&&(b(t,n),t[s]||(i=void 0)),i&&e.call(r,i.value,i.key,t)};t.exports=g},6438:function(t,e,n){var r=n("03d6"),i=n("9742").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},"652a":function(t,e,n){"use strict";var r;function i(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var o=n("fbd7").codes,a=o.ERR_MISSING_ARGS,s=o.ERR_STREAM_DESTROYED;function l(t){if(t)throw t}function u(t){return t.setHeader&&"function"===typeof t.abort}function c(t,e,o,a){a=i(a);var l=!1;t.on("close",(function(){l=!0})),void 0===r&&(r=n("d9e1")),r(t,{readable:e,writable:o},(function(t){if(t)return a(t);l=!0,a()}));var c=!1;return function(e){if(!l&&!c)return c=!0,u(t)?t.abort():"function"===typeof t.destroy?t.destroy():void a(e||new s("pipe"))}}function h(t){t()}function f(t,e){return t.pipe(e)}function d(t){return t.length?"function"!==typeof t[t.length-1]?l:t.pop():l}function p(){for(var t=arguments.length,e=new Array(t),n=0;n0;return c(t,a,s,(function(t){r||(r=t),t&&o.forEach(h),a||(o.forEach(h),i(r))}))}));return e.reduce(f)}t.exports=p},6547:function(t,e,n){var r=n("e330"),i=n("5926"),o=n("577e"),a=n("1d80"),s=r("".charAt),l=r("".charCodeAt),u=r("".slice),c=function(t){return function(e,n){var r,c,h=o(a(e)),f=i(n),d=h.length;return f<0||f>=d?t?"":void 0:(r=l(h,f),r<55296||r>56319||f+1===d||(c=l(h,f+1))<56320||c>57343?t?s(h,f):r:t?u(h,f,f+2):c-56320+(r-55296<<10)+65536)}};t.exports={codeAt:c(!1),charAt:c(!0)}},6566:function(t,e,n){"use strict";var r=n("9bf2").f,i=n("7c73"),o=n("6964"),a=n("0366"),s=n("19aa"),l=n("7234"),u=n("2266"),c=n("c6d2"),h=n("4754"),f=n("2626"),d=n("83ab"),p=n("f183").fastKey,g=n("69f3"),v=g.set,y=g.getterFor;t.exports={getConstructor:function(t,e,n,c){var h=t((function(t,r){s(t,f),v(t,{type:e,index:i(null),first:void 0,last:void 0,size:0}),d||(t.size=0),l(r)||u(r,t[c],{that:t,AS_ENTRIES:n})})),f=h.prototype,g=y(e),m=function(t,e,n){var r,i,o=g(t),a=b(t,e);return a?a.value=n:(o.last=a={index:i=p(e,!0),key:e,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),d?o.size++:t.size++,"F"!==i&&(o.index[i]=a)),t},b=function(t,e){var n,r=g(t),i=p(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==e)return n};return o(f,{clear:function(){var t=this,e=g(t),n=e.index,r=e.first;while(r)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete n[r.index],r=r.next;e.first=e.last=void 0,d?e.size=0:t.size=0},delete:function(t){var e=this,n=g(e),r=b(e,t);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first==r&&(n.first=i),n.last==r&&(n.last=o),d?n.size--:e.size--}return!!r},forEach:function(t){var e,n=g(this),r=a(t,arguments.length>1?arguments[1]:void 0);while(e=e?e.next:n.first){r(e.value,e.key,this);while(e&&e.removed)e=e.previous}},has:function(t){return!!b(this,t)}}),o(f,n?{get:function(t){var e=b(this,t);return e&&e.value},set:function(t,e){return m(this,0===t?0:t,e)}}:{add:function(t){return m(this,t=0===t?0:t,t)}}),d&&r(f,"size",{get:function(){return g(this).size}}),h},setStrong:function(t,e,n){var r=e+" Iterator",i=y(e),o=y(r);c(t,e,(function(t,e){v(this,{type:r,target:t,state:i(t),kind:e,last:void 0})}),(function(){var t=o(this),e=t.kind,n=t.last;while(n&&n.removed)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?h("keys"==e?n.key:"values"==e?n.value:[n.key,n.value],!1):(t.target=void 0,h(void 0,!0))}),n?"entries":"values",!n,!0),f(e)}}},"658f":function(t,e,n){n("6858");for(var r=n("ef08"),i=n("051b"),o=n("8a0d"),a=n("cc15")("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=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},"68ee":function(t,e,n){var r=n("e330"),i=n("d039"),o=n("1626"),a=n("f5df"),s=n("d066"),l=n("8925"),u=function(){},c=[],h=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=r(f.exec),p=!f.exec(u),g=function(t){if(!o(t))return!1;try{return h(u,c,t),!0}catch(e){return!1}},v=function(t){if(!o(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!d(f,l(t))}catch(e){return!0}};v.sham=!0,t.exports=!h||i((function(){var t;return g(g.call)||!g(Object)||!g((function(){t=!0}))||t}))?v:g},"693d":function(t,e,n){"use strict";var r=n("ef08"),i=n("9c0e"),o=n("0bad"),a=n("512c"),s=n("ba01"),l=n("e34a").KEY,u=n("4b8b"),c=n("b367"),h=n("92f0"),f=n("8b1a"),d=n("cc15"),p=n("fcd4"),g=n("e198"),v=n("0ae2"),y=n("4ebc"),m=n("77e9"),b=n("7a41"),_=n("0983"),x=n("6ca1"),w=n("3397"),S=n("10db"),O=n("6f4f"),C=n("1836"),k=n("4d20"),A=n("fed5"),M=n("1a14"),T=n("9876"),I=k.f,E=M.f,P=C.f,j=r.Symbol,L=r.JSON,D=L&&L.stringify,R="prototype",N=d("_hidden"),B=d("toPrimitive"),F={}.propertyIsEnumerable,z=c("symbol-registry"),V=c("symbols"),q=c("op-symbols"),G=Object[R],H="function"==typeof j&&!!A.f,W=r.QObject,U=!W||!W[R]||!W[R].findChild,$=o&&u((function(){return 7!=O(E({},"a",{get:function(){return E(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=I(G,e);r&&delete G[e],E(t,e,n),r&&t!==G&&E(G,e,r)}:E,Y=function(t){var e=V[t]=O(j[R]);return e._k=t,e},X=H&&"symbol"==typeof j.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof j},K=function(t,e,n){return t===G&&K(q,e,n),m(t),e=w(e,!0),m(n),i(V,e)?(n.enumerable?(i(t,N)&&t[N][e]&&(t[N][e]=!1),n=O(n,{enumerable:S(0,!1)})):(i(t,N)||E(t,N,S(1,{})),t[N][e]=!0),$(t,e,n)):E(t,e,n)},Z=function(t,e){m(t);var n,r=v(e=x(e)),i=0,o=r.length;while(o>i)K(t,n=r[i++],e[n]);return t},Q=function(t,e){return void 0===e?O(t):Z(O(t),e)},J=function(t){var e=F.call(this,t=w(t,!0));return!(this===G&&i(V,t)&&!i(q,t))&&(!(e||!i(this,t)||!i(V,t)||i(this,N)&&this[N][t])||e)},tt=function(t,e){if(t=x(t),e=w(e,!0),t!==G||!i(V,e)||i(q,e)){var n=I(t,e);return!n||!i(V,e)||i(t,N)&&t[N][e]||(n.enumerable=!0),n}},et=function(t){var e,n=P(x(t)),r=[],o=0;while(n.length>o)i(V,e=n[o++])||e==N||e==l||r.push(e);return r},nt=function(t){var e,n=t===G,r=P(n?q:x(t)),o=[],a=0;while(r.length>a)!i(V,e=r[a++])||n&&!i(G,e)||o.push(V[e]);return o};H||(j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(n){this===G&&e.call(q,n),i(this,N)&&i(this[N],t)&&(this[N][t]=!1),$(this,t,S(1,n))};return o&&U&&$(G,t,{configurable:!0,set:e}),Y(t)},s(j[R],"toString",(function(){return this._k})),k.f=tt,M.f=K,n("6438").f=C.f=et,n("1917").f=J,A.f=nt,o&&!n("e444")&&s(G,"propertyIsEnumerable",J,!0),p.f=function(t){return Y(d(t))}),a(a.G+a.W+a.F*!H,{Symbol:j});for(var rt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),it=0;rt.length>it;)d(rt[it++]);for(var ot=T(d.store),at=0;ot.length>at;)g(ot[at++]);a(a.S+a.F*!H,"Symbol",{for:function(t){return i(z,t+="")?z[t]:z[t]=j(t)},keyFor:function(t){if(!X(t))throw TypeError(t+" is not a symbol!");for(var e in z)if(z[e]===t)return e},useSetter:function(){U=!0},useSimple:function(){U=!1}}),a(a.S+a.F*!H,"Object",{create:Q,defineProperty:K,defineProperties:Z,getOwnPropertyDescriptor:tt,getOwnPropertyNames:et,getOwnPropertySymbols:nt});var st=u((function(){A.f(1)}));a(a.S+a.F*st,"Object",{getOwnPropertySymbols:function(t){return A.f(_(t))}}),L&&a(a.S+a.F*(!H||u((function(){var t=j();return"[null]"!=D([t])||"{}"!=D({a:t})||"{}"!=D(Object(t))}))),"JSON",{stringify:function(t){var e,n,r=[t],i=1;while(arguments.length>i)r.push(arguments[i++]);if(n=e=r[1],(b(e)||void 0!==t)&&!X(t))return y(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!X(e))return e}),r[1]=e,D.apply(L,r)}}),j[R][B]||n("051b")(j[R],B,j[R].valueOf),h(j,"Symbol"),h(Math,"Math",!0),h(r.JSON,"JSON",!0)},6964:function(t,e,n){var r=n("cb2d");t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},6981:function(t,e,n){ /*! * clipboard.js v2.0.8 * https://clipboardjs.com/ * * Licensed MIT © Zeno Rocha */ !function(e,n){t.exports=n()}(0,(function(){return e={134:function(t,e,n){"use strict";n.d(e,{default:function(){return g}});e=n(279);var r=n.n(e),i=(e=n(370),n.n(e)),o=(e=n(817),n.n(e));function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]&&arguments[0],e=this.mergedConfig,n=this.chart,r=e.radius,i=e.activeRadius,a=e.lineWidth,s=Math.min.apply(Math,Object(o["a"])(n.render.area))/2,l=a/2,u=t?i:r;"number"!==typeof u&&(u=parseInt(u)/100*s);var c=u-l,h=u+l;return[c,h]},ringAnimation:function(){var t=this,e=this.activeIndex,n=this.getRingOption,r=this.chart,i=this.getRealRadius,o=i(),a=i(!0),s=n(),l=s.series[0].data;l.forEach((function(t,n){t.radius=n===e?a:o})),r.setOption(s,!0);var u=s.series[0].activeTimeGap;this.animationHandler=setTimeout((function(n){e+=1,e>=l.length&&(e=0),t.activeIndex=e,t.ringAnimation()}),u)}},mounted:function(){var t=this.init;t()},beforeDestroy:function(){var t=this.animationHandler;clearTimeout(t)}},w=x,S=Object(m["a"])(w,r,i,!1,null,null,null),O=S.exports,C=function(t){t.component(O.name,O)},k=(n("fe7b"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-border-box-1"},[n("svg",{staticClass:"border",attrs:{width:t.width,height:t.height}},[n("polygon",{attrs:{fill:t.backgroundColor,points:"10, 27 10, "+(t.height-27)+" 13, "+(t.height-24)+" 13, "+(t.height-21)+" 24, "+(t.height-11)+"\n 38, "+(t.height-11)+" 41, "+(t.height-8)+" 73, "+(t.height-8)+" 75, "+(t.height-10)+" 81, "+(t.height-10)+"\n 85, "+(t.height-6)+" "+(t.width-85)+", "+(t.height-6)+" "+(t.width-81)+", "+(t.height-10)+" "+(t.width-75)+", "+(t.height-10)+"\n "+(t.width-73)+", "+(t.height-8)+" "+(t.width-41)+", "+(t.height-8)+" "+(t.width-38)+", "+(t.height-11)+"\n "+(t.width-24)+", "+(t.height-11)+" "+(t.width-13)+", "+(t.height-21)+" "+(t.width-13)+", "+(t.height-24)+"\n "+(t.width-10)+", "+(t.height-27)+" "+(t.width-10)+", 27 "+(t.width-13)+", 25 "+(t.width-13)+", 21\n "+(t.width-24)+", 11 "+(t.width-38)+", 11 "+(t.width-41)+", 8 "+(t.width-73)+", 8 "+(t.width-75)+", 10\n "+(t.width-81)+", 10 "+(t.width-85)+", 6 85, 6 81, 10 75, 10 73, 8 41, 8 38, 11 24, 11 13, 21 13, 24"}})]),t._l(t.border,(function(e){return n("svg",{key:e,class:e+" border",attrs:{width:"150px",height:"150px"}},[n("polygon",{attrs:{fill:t.mergedColor[0],points:"6,66 6,18 12,12 18,12 24,6 27,6 30,9 36,9 39,6 84,6 81,9 75,9 73.2,7 40.8,7 37.8,10.2 24,10.2 12,21 12,24 9,27 9,51 7.8,54 7.8,63"}},[n("animate",{attrs:{attributeName:"fill",values:t.mergedColor[0]+";"+t.mergedColor[1]+";"+t.mergedColor[0],dur:"0.5s",begin:"0s",repeatCount:"indefinite"}})]),n("polygon",{attrs:{fill:t.mergedColor[1],points:"27.599999999999998,4.8 38.4,4.8 35.4,7.8 30.599999999999998,7.8"}},[n("animate",{attrs:{attributeName:"fill",values:t.mergedColor[1]+";"+t.mergedColor[0]+";"+t.mergedColor[1],dur:"0.5s",begin:"0s",repeatCount:"indefinite"}})]),n("polygon",{attrs:{fill:t.mergedColor[0],points:"9,54 9,63 7.199999999999999,66 7.199999999999999,75 7.8,78 7.8,110 8.4,110 8.4,66 9.6,66 9.6,54"}},[n("animate",{attrs:{attributeName:"fill",values:t.mergedColor[0]+";"+t.mergedColor[1]+";transparent",dur:"1s",begin:"0s",repeatCount:"indefinite"}})])])})),n("div",{staticClass:"border-box-content"},[t._t("default")],2)],2)}),A=[];function M(t,e){return 1===arguments.length?parseInt(Math.random()*t+1,10):parseInt(Math.random()*(e-t+1)+t,10)}function T(t,e){let n;return function(){clearTimeout(n);const[r,i]=[this,arguments];n=setTimeout(()=>{e.apply(r,i)},t)}}function I(t,e){const n=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,r=new n(e);return r.observe(t,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0}),r}function E(t,e){const n=Math.abs(t[0]-e[0]),r=Math.abs(t[1]-e[1]);return Math.sqrt(n*n+r*r)}function P(t){return(t?"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx":"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx").replace(/[xy]/g,(function(t){const e=16*Math.random()|0,n="x"==t?e:3&e|8;return n.toString(16)}))}var j={data(){return{dom:"",width:0,height:0,debounceInitWHFun:"",domObserver:""}},methods:{async autoResizeMixinInit(){const{initWH:t,getDebounceInitWHFun:e,bindDomResizeCallback:n,afterAutoResizeMixinInit:r}=this;await t(!1),e(),n(),"function"===typeof r&&r()},initWH(t=!0){const{$nextTick:e,$refs:n,ref:r,onResize:i}=this;return new Promise(o=>{e(e=>{const a=this.dom=n[r];this.width=a?a.clientWidth:0,this.height=a?a.clientHeight:0,a?this.width&&this.height||console.warn("DataV: Component width or height is 0px, rendering abnormality may occur!"):console.warn("DataV: Failed to get dom node, component rendering may be abnormal!"),"function"===typeof i&&t&&i(),o()})})},getDebounceInitWHFun(){const{initWH:t}=this;this.debounceInitWHFun=T(100,t)},bindDomResizeCallback(){const{dom:t,debounceInitWHFun:e}=this;this.domObserver=I(t,e),window.addEventListener("resize",e)},unbindDomResizeCallback(){let{domObserver:t,debounceInitWHFun:e}=this;t&&(t.disconnect(),t.takeRecords(),t=null,window.removeEventListener("resize",e))}},mounted(){const{autoResizeMixinInit:t}=this;t()},beforeDestroy(){const{unbindDomResizeCallback:t}=this;t()}},L={name:"DvBorderBox1",mixins:[j],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-1",border:["left-top","right-top","left-bottom","right-bottom"],defaultColor:["#4fd2dd","#235fa7"],mergedColor:[]}},watch:{color:function(){var t=this.mergeColor;t()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])}},mounted:function(){var t=this.mergeColor;t()}},D=L,R=Object(m["a"])(D,k,A,!1,null,null,null),N=(R.exports,n("6ccd"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-border-box-10",style:"box-shadow: inset 0 0 25px 3px "+t.mergedColor[0]},[n("svg",{staticClass:"dv-border-svg-container",attrs:{width:t.width,height:t.height}},[n("polygon",{attrs:{fill:t.backgroundColor,points:"\n 4, 0 "+(t.width-4)+", 0 "+t.width+", 4 "+t.width+", "+(t.height-4)+" "+(t.width-4)+", "+t.height+"\n 4, "+t.height+" 0, "+(t.height-4)+" 0, 4\n "}})]),t._l(t.border,(function(e){return n("svg",{key:e,class:e+" dv-border-svg-container",attrs:{width:"150px",height:"150px"}},[n("polygon",{attrs:{fill:t.mergedColor[1],points:"40, 0 5, 0 0, 5 0, 16 3, 19 3, 7 7, 3 35, 3"}})])})),n("div",{staticClass:"border-box-content"},[t._t("default")],2)],2)}),B=[],F={name:"DvBorderBox10",mixins:[j],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-10",border:["left-top","right-top","left-bottom","right-bottom"],defaultColor:["#1d48c4","#d3e1f8"],mergedColor:[]}},watch:{color:function(){var t=this.mergeColor;t()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])}},mounted:function(){var t=this.mergeColor;t()}},z=F,V=Object(m["a"])(z,N,B,!1,null,null,null),q=(V.exports,n("4656"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-border-box-11"},[n("svg",{staticClass:"dv-border-svg-container",attrs:{width:t.width,height:t.height}},[n("defs",[n("filter",{attrs:{id:t.filterId,height:"150%",width:"150%",x:"-25%",y:"-25%"}},[n("feMorphology",{attrs:{operator:"dilate",radius:"2",in:"SourceAlpha",result:"thicken"}}),n("feGaussianBlur",{attrs:{in:"thicken",stdDeviation:"3",result:"blurred"}}),n("feFlood",{attrs:{"flood-color":t.mergedColor[1],result:"glowColor"}}),n("feComposite",{attrs:{in:"glowColor",in2:"blurred",operator:"in",result:"softGlowColored"}}),n("feMerge",[n("feMergeNode",{attrs:{in:"softGlowColored"}}),n("feMergeNode",{attrs:{in:"SourceGraphic"}})],1)],1)]),n("polygon",{attrs:{fill:t.backgroundColor,points:"\n 20, 32 "+(.5*t.width-t.titleWidth/2)+", 32 "+(.5*t.width-t.titleWidth/2+20)+", 53\n "+(.5*t.width+t.titleWidth/2-20)+", 53 "+(.5*t.width+t.titleWidth/2)+", 32\n "+(t.width-20)+", 32 "+(t.width-8)+", 48 "+(t.width-8)+", "+(t.height-25)+" "+(t.width-20)+", "+(t.height-8)+"\n 20, "+(t.height-8)+" 8, "+(t.height-25)+" 8, 50\n "}}),n("polyline",{attrs:{stroke:t.mergedColor[0],filter:"url(#"+t.filterId+")",points:"\n "+(t.width-t.titleWidth)/2+", 30\n 20, 30 7, 50 7, "+(50+(t.height-167)/2)+"\n 13, "+(55+(t.height-167)/2)+" 13, "+(135+(t.height-167)/2)+"\n 7, "+(140+(t.height-167)/2)+" 7, "+(t.height-27)+"\n 20, "+(t.height-7)+" "+(t.width-20)+", "+(t.height-7)+" "+(t.width-7)+", "+(t.height-27)+"\n "+(t.width-7)+", "+(140+(t.height-167)/2)+" "+(t.width-13)+", "+(135+(t.height-167)/2)+"\n "+(t.width-13)+", "+(55+(t.height-167)/2)+" "+(t.width-7)+", "+(50+(t.height-167)/2)+"\n "+(t.width-7)+", 50 "+(t.width-20)+", 30 "+(t.width+t.titleWidth)/2+", 30\n "+((t.width+t.titleWidth)/2-20)+", 7 "+((t.width-t.titleWidth)/2+20)+", 7\n "+(t.width-t.titleWidth)/2+", 30 "+((t.width-t.titleWidth)/2+20)+", 52\n "+((t.width+t.titleWidth)/2-20)+", 52 "+(t.width+t.titleWidth)/2+", 30\n "}}),n("polygon",{attrs:{stroke:t.mergedColor[0],fill:"transparent",points:"\n "+((t.width+t.titleWidth)/2-5)+", 30 "+((t.width+t.titleWidth)/2-21)+", 11\n "+((t.width+t.titleWidth)/2-27)+", 11 "+((t.width+t.titleWidth)/2-8)+", 34\n "}}),n("polygon",{attrs:{stroke:t.mergedColor[0],fill:"transparent",points:"\n "+((t.width-t.titleWidth)/2+5)+", 30 "+((t.width-t.titleWidth)/2+22)+", 49\n "+((t.width-t.titleWidth)/2+28)+", 49 "+((t.width-t.titleWidth)/2+8)+", 26\n "}}),n("polygon",{attrs:{stroke:t.mergedColor[0],fill:t.fade(t.mergedColor[1]||t.defaultColor[1],30),filter:"url(#"+t.filterId+")",points:"\n "+((t.width+t.titleWidth)/2-11)+", 37 "+((t.width+t.titleWidth)/2-32)+", 11\n "+((t.width-t.titleWidth)/2+23)+", 11 "+((t.width-t.titleWidth)/2+11)+", 23\n "+((t.width-t.titleWidth)/2+33)+", 49 "+((t.width+t.titleWidth)/2-22)+", 49\n "}}),n("polygon",{attrs:{filter:"url(#"+t.filterId+")",fill:t.mergedColor[0],opacity:"1",points:"\n "+((t.width-t.titleWidth)/2-10)+", 37 "+((t.width-t.titleWidth)/2-31)+", 37\n "+((t.width-t.titleWidth)/2-25)+", 46 "+((t.width-t.titleWidth)/2-4)+", 46\n "}},[n("animate",{attrs:{attributeName:"opacity",values:"1;0.7;1",dur:"2s",begin:"0s",repeatCount:"indefinite"}})]),n("polygon",{attrs:{filter:"url(#"+t.filterId+")",fill:t.mergedColor[0],opacity:"0.7",points:"\n "+((t.width-t.titleWidth)/2-40)+", 37 "+((t.width-t.titleWidth)/2-61)+", 37\n "+((t.width-t.titleWidth)/2-55)+", 46 "+((t.width-t.titleWidth)/2-34)+", 46\n "}},[n("animate",{attrs:{attributeName:"opacity",values:"0.7;0.4;0.7",dur:"2s",begin:"0s",repeatCount:"indefinite"}})]),n("polygon",{attrs:{filter:"url(#"+t.filterId+")",fill:t.mergedColor[0],opacity:"0.5",points:"\n "+((t.width-t.titleWidth)/2-70)+", 37 "+((t.width-t.titleWidth)/2-91)+", 37\n "+((t.width-t.titleWidth)/2-85)+", 46 "+((t.width-t.titleWidth)/2-64)+", 46\n "}},[n("animate",{attrs:{attributeName:"opacity",values:"0.5;0.2;0.5",dur:"2s",begin:"0s",repeatCount:"indefinite"}})]),n("polygon",{attrs:{filter:"url(#"+t.filterId+")",fill:t.mergedColor[0],opacity:"1",points:"\n "+((t.width+t.titleWidth)/2+30)+", 37 "+((t.width+t.titleWidth)/2+9)+", 37\n "+((t.width+t.titleWidth)/2+3)+", 46 "+((t.width+t.titleWidth)/2+24)+", 46\n "}},[n("animate",{attrs:{attributeName:"opacity",values:"1;0.7;1",dur:"2s",begin:"0s",repeatCount:"indefinite"}})]),n("polygon",{attrs:{filter:"url(#"+t.filterId+")",fill:t.mergedColor[0],opacity:"0.7",points:"\n "+((t.width+t.titleWidth)/2+60)+", 37 "+((t.width+t.titleWidth)/2+39)+", 37\n "+((t.width+t.titleWidth)/2+33)+", 46 "+((t.width+t.titleWidth)/2+54)+", 46\n "}},[n("animate",{attrs:{attributeName:"opacity",values:"0.7;0.4;0.7",dur:"2s",begin:"0s",repeatCount:"indefinite"}})]),n("polygon",{attrs:{filter:"url(#"+t.filterId+")",fill:t.mergedColor[0],opacity:"0.5",points:"\n "+((t.width+t.titleWidth)/2+90)+", 37 "+((t.width+t.titleWidth)/2+69)+", 37\n "+((t.width+t.titleWidth)/2+63)+", 46 "+((t.width+t.titleWidth)/2+84)+", 46\n "}},[n("animate",{attrs:{attributeName:"opacity",values:"0.5;0.2;0.5",dur:"2s",begin:"0s",repeatCount:"indefinite"}})]),n("text",{staticClass:"dv-border-box-11-title",attrs:{x:""+t.width/2,y:"32",fill:"#fff","font-size":"18","text-anchor":"middle","dominant-baseline":"middle"}},[t._v(" "+t._s(t.title)+" ")]),n("polygon",{attrs:{fill:t.mergedColor[0],filter:"url(#"+t.filterId+")",points:"\n 7, "+(53+(t.height-167)/2)+" 11, "+(57+(t.height-167)/2)+"\n 11, "+(133+(t.height-167)/2)+" 7, "+(137+(t.height-167)/2)+"\n "}}),n("polygon",{attrs:{fill:t.mergedColor[0],filter:"url(#"+t.filterId+")",points:"\n "+(t.width-7)+", "+(53+(t.height-167)/2)+" "+(t.width-11)+", "+(57+(t.height-167)/2)+"\n "+(t.width-11)+", "+(133+(t.height-167)/2)+" "+(t.width-7)+", "+(137+(t.height-167)/2)+"\n "}})]),n("div",{staticClass:"border-box-content"},[t._t("default")],2)])}),G=[],H=(n("a9e3"),n("a870")),W={name:"DvBorderBox11",mixins:[j],props:{color:{type:Array,default:function(){return[]}},titleWidth:{type:Number,default:250},title:{type:String,default:""},backgroundColor:{type:String,default:"transparent"}},data:function(){var t=P();return{ref:"border-box-11",filterId:"border-box-11-filterId-".concat(t),defaultColor:["#8aaafb","#1f33a2"],mergedColor:[]}},watch:{color:function(){var t=this.mergeColor;t()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])},fade:H["fade"]},mounted:function(){var t=this.mergeColor;t()}},U=W,$=Object(m["a"])(U,q,G,!1,null,null,null),Y=($.exports,n("3c0e"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-border-box-12"},[n("svg",{staticClass:"dv-border-svg-container",attrs:{width:t.width,height:t.height}},[n("defs",[n("filter",{attrs:{id:t.filterId,height:"150%",width:"150%",x:"-25%",y:"-25%"}},[n("feMorphology",{attrs:{operator:"dilate",radius:"1",in:"SourceAlpha",result:"thicken"}}),n("feGaussianBlur",{attrs:{in:"thicken",stdDeviation:"2",result:"blurred"}}),n("feFlood",{attrs:{"flood-color":t.fade(t.mergedColor[1]||t.defaultColor[1],70),result:"glowColor"}},[n("animate",{attrs:{attributeName:"flood-color",values:"\n "+t.fade(t.mergedColor[1]||t.defaultColor[1],70)+";\n "+t.fade(t.mergedColor[1]||t.defaultColor[1],30)+";\n "+t.fade(t.mergedColor[1]||t.defaultColor[1],70)+";\n ",dur:"3s",begin:"0s",repeatCount:"indefinite"}})]),n("feComposite",{attrs:{in:"glowColor",in2:"blurred",operator:"in",result:"softGlowColored"}}),n("feMerge",[n("feMergeNode",{attrs:{in:"softGlowColored"}}),n("feMergeNode",{attrs:{in:"SourceGraphic"}})],1)],1)]),t.width&&t.height?n("path",{attrs:{fill:t.backgroundColor,"stroke-width":"2",stroke:t.mergedColor[0],d:"\n M15 5 L "+(t.width-15)+" 5 Q "+(t.width-5)+" 5, "+(t.width-5)+" 15\n L "+(t.width-5)+" "+(t.height-15)+" Q "+(t.width-5)+" "+(t.height-5)+", "+(t.width-15)+" "+(t.height-5)+"\n L 15, "+(t.height-5)+" Q 5 "+(t.height-5)+" 5 "+(t.height-15)+" L 5 15\n Q 5 5 15 5\n "}}):t._e(),n("path",{attrs:{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:"url(#"+t.filterId+")",stroke:t.mergedColor[1],d:"M 20 5 L 15 5 Q 5 5 5 15 L 5 20"}}),n("path",{attrs:{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:"url(#"+t.filterId+")",stroke:t.mergedColor[1],d:"M "+(t.width-20)+" 5 L "+(t.width-15)+" 5 Q "+(t.width-5)+" 5 "+(t.width-5)+" 15 L "+(t.width-5)+" 20"}}),n("path",{attrs:{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:"url(#"+t.filterId+")",stroke:t.mergedColor[1],d:"\n M "+(t.width-20)+" "+(t.height-5)+" L "+(t.width-15)+" "+(t.height-5)+"\n Q "+(t.width-5)+" "+(t.height-5)+" "+(t.width-5)+" "+(t.height-15)+"\n L "+(t.width-5)+" "+(t.height-20)+"\n "}}),n("path",{attrs:{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:"url(#"+t.filterId+")",stroke:t.mergedColor[1],d:"\n M 20 "+(t.height-5)+" L 15 "+(t.height-5)+"\n Q 5 "+(t.height-5)+" 5 "+(t.height-15)+"\n L 5 "+(t.height-20)+"\n "}})]),n("div",{staticClass:"border-box-content"},[t._t("default")],2)])}),X=[],K={name:"DvBorderBox12",mixins:[j],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){var t=P();return{ref:"border-box-12",filterId:"borderr-box-12-filterId-".concat(t),defaultColor:["#2e6099","#7ce7fd"],mergedColor:[]}},watch:{color:function(){var t=this.mergeColor;t()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])},fade:H["fade"]},mounted:function(){var t=this.mergeColor;t()}},Z=K,Q=Object(m["a"])(Z,Y,X,!1,null,null,null),J=(Q.exports,n("470c"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-border-box-13"},[n("svg",{staticClass:"dv-border-svg-container",attrs:{width:t.width,height:t.height}},[n("path",{attrs:{fill:t.backgroundColor,stroke:t.mergedColor[0],d:"\n M 5 20 L 5 10 L 12 3 L 60 3 L 68 10\n L "+(t.width-20)+" 10 L "+(t.width-5)+" 25\n L "+(t.width-5)+" "+(t.height-5)+" L 20 "+(t.height-5)+"\n L 5 "+(t.height-20)+" L 5 20\n "}}),n("path",{attrs:{fill:"transparent","stroke-width":"3","stroke-linecap":"round","stroke-dasharray":"10, 5",stroke:t.mergedColor[0],d:"M 16 9 L 61 9"}}),n("path",{attrs:{fill:"transparent",stroke:t.mergedColor[1],d:"M 5 20 L 5 10 L 12 3 L 60 3 L 68 10"}}),n("path",{attrs:{fill:"transparent",stroke:t.mergedColor[1],d:"M "+(t.width-5)+" "+(t.height-30)+" L "+(t.width-5)+" "+(t.height-5)+" L "+(t.width-30)+" "+(t.height-5)}})]),n("div",{staticClass:"border-box-content"},[t._t("default")],2)])}),tt=[],et={name:"DvBorderBox13",mixins:[j],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-13",defaultColor:["#6586ec","#2cf7fe"],mergedColor:[]}},watch:{color:function(){var t=this.mergeColor;t()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])}},mounted:function(){var t=this.mergeColor;t()}},nt=et,rt=Object(m["a"])(nt,J,tt,!1,null,null,null),it=rt.exports,ot=function(t){t.component(it.name,it)},at=(n("b72d"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-border-box-2"},[n("svg",{staticClass:"dv-border-svg-container",attrs:{width:t.width,height:t.height}},[n("polygon",{attrs:{fill:t.backgroundColor,points:"\n 7, 7 "+(t.width-7)+", 7 "+(t.width-7)+", "+(t.height-7)+" 7, "+(t.height-7)+"\n "}}),n("polyline",{attrs:{stroke:t.mergedColor[0],points:"2, 2 "+(t.width-2)+" ,2 "+(t.width-2)+", "+(t.height-2)+" 2, "+(t.height-2)+" 2, 2"}}),n("polyline",{attrs:{stroke:t.mergedColor[1],points:"6, 6 "+(t.width-6)+", 6 "+(t.width-6)+", "+(t.height-6)+" 6, "+(t.height-6)+" 6, 6"}}),n("circle",{attrs:{fill:t.mergedColor[0],cx:"11",cy:"11",r:"1"}}),n("circle",{attrs:{fill:t.mergedColor[0],cx:t.width-11,cy:"11",r:"1"}}),n("circle",{attrs:{fill:t.mergedColor[0],cx:t.width-11,cy:t.height-11,r:"1"}}),n("circle",{attrs:{fill:t.mergedColor[0],cx:"11",cy:t.height-11,r:"1"}})]),n("div",{staticClass:"border-box-content"},[t._t("default")],2)])}),st=[],lt={name:"DvBorderBox2",mixins:[j],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-2",defaultColor:["#fff","rgba(255, 255, 255, 0.6)"],mergedColor:[]}},watch:{color:function(){var t=this.mergeColor;t()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])}},mounted:function(){var t=this.mergeColor;t()}},ut=lt,ct=Object(m["a"])(ut,at,st,!1,null,null,null),ht=(ct.exports,n("1e4c"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-border-box-3"},[n("svg",{staticClass:"dv-border-svg-container",attrs:{width:t.width,height:t.height}},[n("polygon",{attrs:{fill:t.backgroundColor,points:"\n 23, 23 "+(t.width-24)+", 23 "+(t.width-24)+", "+(t.height-24)+" 23, "+(t.height-24)+"\n "}}),n("polyline",{staticClass:"dv-bb3-line1",attrs:{stroke:t.mergedColor[0],points:"4, 4 "+(t.width-22)+" ,4 "+(t.width-22)+", "+(t.height-22)+" 4, "+(t.height-22)+" 4, 4"}}),n("polyline",{staticClass:"dv-bb3-line2",attrs:{stroke:t.mergedColor[1],points:"10, 10 "+(t.width-16)+", 10 "+(t.width-16)+", "+(t.height-16)+" 10, "+(t.height-16)+" 10, 10"}}),n("polyline",{staticClass:"dv-bb3-line2",attrs:{stroke:t.mergedColor[1],points:"16, 16 "+(t.width-10)+", 16 "+(t.width-10)+", "+(t.height-10)+" 16, "+(t.height-10)+" 16, 16"}}),n("polyline",{staticClass:"dv-bb3-line2",attrs:{stroke:t.mergedColor[1],points:"22, 22 "+(t.width-4)+", 22 "+(t.width-4)+", "+(t.height-4)+" 22, "+(t.height-4)+" 22, 22"}})]),n("div",{staticClass:"border-box-content"},[t._t("default")],2)])}),ft=[],dt={name:"DvBorderBox3",mixins:[j],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-3",defaultColor:["#2862b7","#2862b7"],mergedColor:[]}},watch:{color:function(){var t=this.mergeColor;t()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])}},mounted:function(){var t=this.mergeColor;t()}},pt=dt,gt=Object(m["a"])(pt,ht,ft,!1,null,null,null),vt=(gt.exports,n("1dac"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-border-box-4"},[n("svg",{class:"dv-border-svg-container "+(t.reverse&&"dv-reverse"),attrs:{width:t.width,height:t.height}},[n("polygon",{attrs:{fill:t.backgroundColor,points:"\n "+(t.width-15)+", 22 170, 22 150, 7 40, 7 28, 21 32, 24\n 16, 42 16, "+(t.height-32)+" 41, "+(t.height-7)+" "+(t.width-15)+", "+(t.height-7)+"\n "}}),n("polyline",{staticClass:"dv-bb4-line-1",attrs:{stroke:t.mergedColor[0],points:"145, "+(t.height-5)+" 40, "+(t.height-5)+" 10, "+(t.height-35)+"\n 10, 40 40, 5 150, 5 170, 20 "+(t.width-15)+", 20"}}),n("polyline",{staticClass:"dv-bb4-line-2",attrs:{stroke:t.mergedColor[1],points:"245, "+(t.height-1)+" 36, "+(t.height-1)+" 14, "+(t.height-23)+"\n 14, "+(t.height-100)}}),n("polyline",{staticClass:"dv-bb4-line-3",attrs:{stroke:t.mergedColor[0],points:"7, "+(t.height-40)+" 7, "+(t.height-75)}}),n("polyline",{staticClass:"dv-bb4-line-4",attrs:{stroke:t.mergedColor[0],points:"28, 24 13, 41 13, 64"}}),n("polyline",{staticClass:"dv-bb4-line-5",attrs:{stroke:t.mergedColor[0],points:"5, 45 5, 140"}}),n("polyline",{staticClass:"dv-bb4-line-6",attrs:{stroke:t.mergedColor[1],points:"14, 75 14, 180"}}),n("polyline",{staticClass:"dv-bb4-line-7",attrs:{stroke:t.mergedColor[1],points:"55, 11 147, 11 167, 26 250, 26"}}),n("polyline",{staticClass:"dv-bb4-line-8",attrs:{stroke:t.mergedColor[1],points:"158, 5 173, 16"}}),n("polyline",{staticClass:"dv-bb4-line-9",attrs:{stroke:t.mergedColor[0],points:"200, 17 "+(t.width-10)+", 17"}}),n("polyline",{staticClass:"dv-bb4-line-10",attrs:{stroke:t.mergedColor[1],points:"385, 17 "+(t.width-10)+", 17"}})]),n("div",{staticClass:"border-box-content"},[t._t("default")],2)])}),yt=[],mt={name:"DvBorderBox4",mixins:[j],props:{color:{type:Array,default:function(){return[]}},reverse:{type:Boolean,default:!1},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-4",defaultColor:["red","rgba(0,0,255,0.8)"],mergedColor:[]}},watch:{color:function(){var t=this.mergeColor;t()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])}},mounted:function(){var t=this.mergeColor;t()}},bt=mt,_t=Object(m["a"])(bt,vt,yt,!1,null,null,null),xt=(_t.exports,n("042d"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-border-box-5"},[n("svg",{class:"dv-border-svg-container "+(t.reverse&&"dv-reverse"),attrs:{width:t.width,height:t.height}},[n("polygon",{attrs:{fill:t.backgroundColor,points:"\n 10, 22 "+(t.width-22)+", 22 "+(t.width-22)+", "+(t.height-86)+" "+(t.width-84)+", "+(t.height-24)+" 10, "+(t.height-24)+"\n "}}),n("polyline",{staticClass:"dv-bb5-line-1",attrs:{stroke:t.mergedColor[0],points:"8, 5 "+(t.width-5)+", 5 "+(t.width-5)+", "+(t.height-100)+"\n "+(t.width-100)+", "+(t.height-5)+" 8, "+(t.height-5)+" 8, 5"}}),n("polyline",{staticClass:"dv-bb5-line-2",attrs:{stroke:t.mergedColor[1],points:"3, 5 "+(t.width-20)+", 5 "+(t.width-20)+", "+(t.height-60)+"\n "+(t.width-74)+", "+(t.height-5)+" 3, "+(t.height-5)+" 3, 5"}}),n("polyline",{staticClass:"dv-bb5-line-3",attrs:{stroke:t.mergedColor[1],points:"50, 13 "+(t.width-35)+", 13"}}),n("polyline",{staticClass:"dv-bb5-line-4",attrs:{stroke:t.mergedColor[1],points:"15, 20 "+(t.width-35)+", 20"}}),n("polyline",{staticClass:"dv-bb5-line-5",attrs:{stroke:t.mergedColor[1],points:"15, "+(t.height-20)+" "+(t.width-110)+", "+(t.height-20)}}),n("polyline",{staticClass:"dv-bb5-line-6",attrs:{stroke:t.mergedColor[1],points:"15, "+(t.height-13)+" "+(t.width-110)+", "+(t.height-13)}})]),n("div",{staticClass:"border-box-content"},[t._t("default")],2)])}),wt=[],St={name:"DvBorderBox5",mixins:[j],props:{color:{type:Array,default:function(){return[]}},reverse:{type:Boolean,default:!1},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-5",defaultColor:["rgba(255, 255, 255, 0.35)","rgba(255, 255, 255, 0.20)"],mergedColor:[]}},watch:{color:function(){var t=this.mergeColor;t()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])}},mounted:function(){var t=this.mergeColor;t()}},Ot=St,Ct=Object(m["a"])(Ot,xt,wt,!1,null,null,null),kt=(Ct.exports,n("4e86"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-border-box-6"},[n("svg",{staticClass:"dv-border-svg-container",attrs:{width:t.width,height:t.height}},[n("polygon",{attrs:{fill:t.backgroundColor,points:"\n 9, 7 "+(t.width-9)+", 7 "+(t.width-9)+", "+(t.height-7)+" 9, "+(t.height-7)+"\n "}}),n("circle",{attrs:{fill:t.mergedColor[1],cx:"5",cy:"5",r:"2"}}),n("circle",{attrs:{fill:t.mergedColor[1],cx:t.width-5,cy:"5",r:"2"}}),n("circle",{attrs:{fill:t.mergedColor[1],cx:t.width-5,cy:t.height-5,r:"2"}}),n("circle",{attrs:{fill:t.mergedColor[1],cx:"5",cy:t.height-5,r:"2"}}),n("polyline",{attrs:{stroke:t.mergedColor[0],points:"10, 4 "+(t.width-10)+", 4"}}),n("polyline",{attrs:{stroke:t.mergedColor[0],points:"10, "+(t.height-4)+" "+(t.width-10)+", "+(t.height-4)}}),n("polyline",{attrs:{stroke:t.mergedColor[0],points:"5, 70 5, "+(t.height-70)}}),n("polyline",{attrs:{stroke:t.mergedColor[0],points:t.width-5+", 70 "+(t.width-5)+", "+(t.height-70)}}),n("polyline",{attrs:{stroke:t.mergedColor[0],points:"3, 10, 3, 50"}}),n("polyline",{attrs:{stroke:t.mergedColor[0],points:"7, 30 7, 80"}}),n("polyline",{attrs:{stroke:t.mergedColor[0],points:t.width-3+", 10 "+(t.width-3)+", 50"}}),n("polyline",{attrs:{stroke:t.mergedColor[0],points:t.width-7+", 30 "+(t.width-7)+", 80"}}),n("polyline",{attrs:{stroke:t.mergedColor[0],points:"3, "+(t.height-10)+" 3, "+(t.height-50)}}),n("polyline",{attrs:{stroke:t.mergedColor[0],points:"7, "+(t.height-30)+" 7, "+(t.height-80)}}),n("polyline",{attrs:{stroke:t.mergedColor[0],points:t.width-3+", "+(t.height-10)+" "+(t.width-3)+", "+(t.height-50)}}),n("polyline",{attrs:{stroke:t.mergedColor[0],points:t.width-7+", "+(t.height-30)+" "+(t.width-7)+", "+(t.height-80)}})]),n("div",{staticClass:"border-box-content"},[t._t("default")],2)])}),At=[],Mt={name:"DvBorderBox6",mixins:[j],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-6",defaultColor:["rgba(255, 255, 255, 0.35)","gray"],mergedColor:[]}},watch:{color:function(){var t=this.mergeColor;t()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])}},mounted:function(){var t=this.mergeColor;t()}},Tt=Mt,It=Object(m["a"])(Tt,kt,At,!1,null,null,null),Et=(It.exports,n("3648"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-border-box-7",style:"box-shadow: inset 0 0 40px "+t.mergedColor[0]+"; border: 1px solid "+t.mergedColor[0]+"; background-color: "+t.backgroundColor},[n("svg",{staticClass:"dv-border-svg-container",attrs:{width:t.width,height:t.height}},[n("polyline",{staticClass:"dv-bb7-line-width-2",attrs:{stroke:t.mergedColor[0],points:"0, 25 0, 0 25, 0"}}),n("polyline",{staticClass:"dv-bb7-line-width-2",attrs:{stroke:t.mergedColor[0],points:t.width-25+", 0 "+t.width+", 0 "+t.width+", 25"}}),n("polyline",{staticClass:"dv-bb7-line-width-2",attrs:{stroke:t.mergedColor[0],points:t.width-25+", "+t.height+" "+t.width+", "+t.height+" "+t.width+", "+(t.height-25)}}),n("polyline",{staticClass:"dv-bb7-line-width-2",attrs:{stroke:t.mergedColor[0],points:"0, "+(t.height-25)+" 0, "+t.height+" 25, "+t.height}}),n("polyline",{staticClass:"dv-bb7-line-width-5",attrs:{stroke:t.mergedColor[1],points:"0, 10 0, 0 10, 0"}}),n("polyline",{staticClass:"dv-bb7-line-width-5",attrs:{stroke:t.mergedColor[1],points:t.width-10+", 0 "+t.width+", 0 "+t.width+", 10"}}),n("polyline",{staticClass:"dv-bb7-line-width-5",attrs:{stroke:t.mergedColor[1],points:t.width-10+", "+t.height+" "+t.width+", "+t.height+" "+t.width+", "+(t.height-10)}}),n("polyline",{staticClass:"dv-bb7-line-width-5",attrs:{stroke:t.mergedColor[1],points:"0, "+(t.height-10)+" 0, "+t.height+" 10, "+t.height}})]),n("div",{staticClass:"border-box-content"},[t._t("default")],2)])}),Pt=[],jt={name:"DvBorderBox7",mixins:[j],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-7",defaultColor:["rgba(128,128,128,0.3)","rgba(128,128,128,0.5)"],mergedColor:[]}},watch:{color:function(){var t=this.mergeColor;t()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])}},mounted:function(){var t=this.mergeColor;t()}},Lt=jt,Dt=Object(m["a"])(Lt,Et,Pt,!1,null,null,null),Rt=(Dt.exports,n("733c"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-border-box-8"},[n("svg",{staticClass:"dv-border-svg-container",attrs:{width:t.width,height:t.height}},[n("defs",[n("path",{attrs:{id:t.path,d:t.pathD,fill:"transparent"}}),n("radialGradient",{attrs:{id:t.gradient,cx:"50%",cy:"50%",r:"50%"}},[n("stop",{attrs:{offset:"0%","stop-color":"#fff","stop-opacity":"1"}}),n("stop",{attrs:{offset:"100%","stop-color":"#fff","stop-opacity":"0"}})],1),n("mask",{attrs:{id:t.mask}},[n("circle",{attrs:{cx:"0",cy:"0",r:"150",fill:"url(#"+t.gradient+")"}},[n("animateMotion",{attrs:{dur:t.dur+"s",path:t.pathD,rotate:"auto",repeatCount:"indefinite"}})],1)])],1),n("polygon",{attrs:{fill:t.backgroundColor,points:"5, 5 "+(t.width-5)+", 5 "+(t.width-5)+" "+(t.height-5)+" 5, "+(t.height-5)}}),n("use",{attrs:{stroke:t.mergedColor[0],"stroke-width":"1","xlink:href":"#"+t.path}}),n("use",{attrs:{stroke:t.mergedColor[1],"stroke-width":"3","xlink:href":"#"+t.path,mask:"url(#"+t.mask+")"}},[n("animate",{attrs:{attributeName:"stroke-dasharray",from:"0, "+t.length,to:t.length+", 0",dur:t.dur+"s",repeatCount:"indefinite"}})])]),n("div",{staticClass:"border-box-content"},[t._t("default")],2)])}),Nt=[],Bt=(n("99af"),{name:"DvBorderBox8",mixins:[j],props:{color:{type:Array,default:function(){return[]}},dur:{type:Number,default:3},backgroundColor:{type:String,default:"transparent"},reverse:{type:Boolean,default:!1}},data:function(){var t=P();return{ref:"border-box-8",path:"border-box-8-path-".concat(t),gradient:"border-box-8-gradient-".concat(t),mask:"border-box-8-mask-".concat(t),defaultColor:["#235fa7","#4fd2dd"],mergedColor:[]}},computed:{length:function(){var t=this.width,e=this.height;return 2*(t+e-5)},pathD:function(){var t=this.reverse,e=this.width,n=this.height;return t?"M 2.5, 2.5 L 2.5, ".concat(n-2.5," L ").concat(e-2.5,", ").concat(n-2.5," L ").concat(e-2.5,", 2.5 L 2.5, 2.5"):"M2.5, 2.5 L".concat(e-2.5,", 2.5 L").concat(e-2.5,", ").concat(n-2.5," L2.5, ").concat(n-2.5," L2.5, 2.5")}},watch:{color:function(){var t=this.mergeColor;t()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])}},mounted:function(){var t=this.mergeColor;t()}}),Ft=Bt,zt=Object(m["a"])(Ft,Rt,Nt,!1,null,null,null),Vt=zt.exports,qt=function(t){t.component(Vt.name,Vt)},Gt=(n("6fc2"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-border-box-9"},[n("svg",{staticClass:"dv-border-svg-container",attrs:{width:t.width,height:t.height}},[n("defs",[n("linearGradient",{attrs:{id:t.gradientId,x1:"0%",y1:"0%",x2:"100%",y2:"100%"}},[n("animate",{attrs:{attributeName:"x1",values:"0%;100%;0%",dur:"10s",begin:"0s",repeatCount:"indefinite"}}),n("animate",{attrs:{attributeName:"x2",values:"100%;0%;100%",dur:"10s",begin:"0s",repeatCount:"indefinite"}}),n("stop",{attrs:{offset:"0%","stop-color":t.mergedColor[0]}},[n("animate",{attrs:{attributeName:"stop-color",values:t.mergedColor[0]+";"+t.mergedColor[1]+";"+t.mergedColor[0],dur:"10s",begin:"0s",repeatCount:"indefinite"}})]),n("stop",{attrs:{offset:"100%","stop-color":t.mergedColor[1]}},[n("animate",{attrs:{attributeName:"stop-color",values:t.mergedColor[1]+";"+t.mergedColor[0]+";"+t.mergedColor[1],dur:"10s",begin:"0s",repeatCount:"indefinite"}})])],1),n("mask",{attrs:{id:t.maskId}},[n("polyline",{attrs:{stroke:"#fff","stroke-width":"3",fill:"transparent",points:"8, "+.4*t.height+" 8, 3, "+(.4*t.width+7)+", 3"}}),n("polyline",{attrs:{fill:"#fff",points:"8, "+.15*t.height+" 8, 3, "+(.1*t.width+7)+", 3\n "+.1*t.width+", 8 14, 8 14, "+(.15*t.height-7)+"\n "}}),n("polyline",{attrs:{stroke:"#fff","stroke-width":"3",fill:"transparent",points:.5*t.width+", 3 "+(t.width-3)+", 3, "+(t.width-3)+", "+.25*t.height}}),n("polyline",{attrs:{fill:"#fff",points:"\n "+.52*t.width+", 3 "+.58*t.width+", 3\n "+(.58*t.width-7)+", 9 "+(.52*t.width+7)+", 9\n "}}),n("polyline",{attrs:{fill:"#fff",points:"\n "+.9*t.width+", 3 "+(t.width-3)+", 3 "+(t.width-3)+", "+.1*t.height+"\n "+(t.width-9)+", "+(.1*t.height-7)+" "+(t.width-9)+", 9 "+(.9*t.width+7)+", 9\n "}}),n("polyline",{attrs:{stroke:"#fff","stroke-width":"3",fill:"transparent",points:"8, "+.5*t.height+" 8, "+(t.height-3)+" "+(.3*t.width+7)+", "+(t.height-3)}}),n("polyline",{attrs:{fill:"#fff",points:"\n 8, "+.55*t.height+" 8, "+.7*t.height+"\n 2, "+(.7*t.height-7)+" 2, "+(.55*t.height+7)+"\n "}}),n("polyline",{attrs:{stroke:"#fff","stroke-width":"3",fill:"transparent",points:.35*t.width+", "+(t.height-3)+" "+(t.width-3)+", "+(t.height-3)+" "+(t.width-3)+", "+.35*t.height}}),n("polyline",{attrs:{fill:"#fff",points:"\n "+.92*t.width+", "+(t.height-3)+" "+(t.width-3)+", "+(t.height-3)+" "+(t.width-3)+", "+.8*t.height+"\n "+(t.width-9)+", "+(.8*t.height+7)+" "+(t.width-9)+", "+(t.height-9)+" "+(.92*t.width+7)+", "+(t.height-9)+"\n "}})])],1),n("polygon",{attrs:{fill:t.backgroundColor,points:"\n 15, 9 "+(.1*t.width+1)+", 9 "+(.1*t.width+4)+", 6 "+(.52*t.width+2)+", 6\n "+(.52*t.width+6)+", 10 "+(.58*t.width-7)+", 10 "+(.58*t.width-2)+", 6\n "+(.9*t.width+2)+", 6 "+(.9*t.width+6)+", 10 "+(t.width-10)+", 10 "+(t.width-10)+", "+(.1*t.height-6)+"\n "+(t.width-6)+", "+(.1*t.height-1)+" "+(t.width-6)+", "+(.8*t.height+1)+" "+(t.width-10)+", "+(.8*t.height+6)+"\n "+(t.width-10)+", "+(t.height-10)+" "+(.92*t.width+7)+", "+(t.height-10)+" "+(.92*t.width+2)+", "+(t.height-6)+"\n 11, "+(t.height-6)+" 11, "+(.15*t.height-2)+" 15, "+(.15*t.height-7)+"\n "}}),n("rect",{attrs:{x:"0",y:"0",width:t.width,height:t.height,fill:"url(#"+t.gradientId+")",mask:"url(#"+t.maskId+")"}})]),n("div",{staticClass:"border-box-content"},[t._t("default")],2)])}),Ht=[],Wt={name:"DvBorderBox9",mixins:[j],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){var t=P();return{ref:"border-box-9",gradientId:"border-box-9-gradient-".concat(t),maskId:"border-box-9-mask-".concat(t),defaultColor:["#11eefd","#0078d2"],mergedColor:[]}},watch:{color:function(){var t=this.mergeColor;t()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])}},mounted:function(){var t=this.mergeColor;t()}},Ut=Wt,$t=Object(m["a"])(Ut,Gt,Ht,!1,null,null,null),Yt=($t.exports,n("335d"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"dv-capsule-chart"},[t.mergedConfig?[n("div",{staticClass:"label-column"},[t._l(t.mergedConfig.data,(function(e){return n("div",{key:e.name},[t._v(t._s(e.name))])})),n("div")],2),n("div",{staticClass:"capsule-container"},[t._l(t.capsuleLength,(function(e,r){return n("div",{key:r,staticClass:"capsule-item"},[n("div",{staticClass:"capsule-item-column",style:"width: "+100*e+"%; background-color: "+t.mergedConfig.colors[r%t.mergedConfig.colors.length]+";"},[t.mergedConfig.showValue?n("div",{staticClass:"capsule-item-value"},[t._v(t._s(t.capsuleValue[r]))]):t._e()])])})),n("div",{staticClass:"unit-label"},t._l(t.labelData,(function(e,r){return n("div",{key:e+r},[t._v(t._s(e))])})),0)],2),t.mergedConfig.unit?n("div",{staticClass:"unit-text"},[t._v(t._s(t.mergedConfig.unit))]):t._e()]:t._e()],2)}),Xt=[],Kt=(n("a630"),n("3ca3"),n("6062"),n("ddb0"),n("cb29"),{name:"DvCapsuleChart",props:{config:{type:Object,default:function(){return{}}}},data:function(){return{defaultConfig:{data:[],colors:["#37a2da","#32c5e9","#67e0e3","#9fe6b8","#ffdb5c","#ff9f7f","#fb7293"],unit:"",showValue:!1},mergedConfig:null,capsuleLength:[],capsuleValue:[],labelData:[],labelDataLength:[]}},watch:{config:function(){var t=this.calcData;t()}},methods:{calcData:function(){var t=this.mergeConfig,e=this.calcCapsuleLengthAndLabelData;t(),e()},mergeConfig:function(){var t=this.config,e=this.defaultConfig;this.mergedConfig=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||{})},calcCapsuleLengthAndLabelData:function(){var t=this.mergedConfig.data;if(t.length){var e=t.map((function(t){var e=t.value;return e})),n=Math.max.apply(Math,Object(o["a"])(e));this.capsuleValue=e,this.capsuleLength=e.map((function(t){return n?t/n:0}));var r=n/5,i=Array.from(new Set(new Array(6).fill(0).map((function(t,e){return Math.ceil(e*r)}))));this.labelData=i,this.labelDataLength=Array.from(i).map((function(t){return n?t/n:0}))}}},mounted:function(){var t=this.calcData;t()}}),Zt=Kt,Qt=Object(m["a"])(Zt,Yt,Xt,!1,null,null,null),Jt=Qt.exports,te=function(t){t.component(Jt.name,Jt)},ee=(n("8261"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-charts-container"},[n("div",{ref:t.chartRef,staticClass:"charts-canvas-container"})])}),ne=[],re={name:"DvCharts",mixins:[j],props:{option:{type:Object,default:function(){return{}}}},data:function(){var t=P();return{ref:"charts-container-".concat(t),chartRef:"chart-".concat(t),chart:null}},watch:{option:function(){var t=this.chart,e=this.option;t&&(e||(e={}),t.setOption(e,!0))}},methods:{afterAutoResizeMixinInit:function(){var t=this.initChart;t()},initChart:function(){var t=this.$refs,e=this.chartRef,n=this.option,r=this.chart=new l.a(t[e]);n&&r.setOption(n)},onResize:function(){var t=this.chart;t&&t.resize()}}},ie=re,oe=Object(m["a"])(ie,ee,ne,!1,null,null,null),ae=(oe.exports,n("7ed3"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-conical-column-chart"},[n("svg",{attrs:{width:t.width,height:t.height}},t._l(t.column,(function(e,r){return n("g",{key:r},[n("path",{attrs:{d:e.d,fill:t.mergedConfig.columnColor}}),n("text",{style:"fontSize:"+t.mergedConfig.fontSize+"px",attrs:{fill:t.mergedConfig.textColor,x:e.x,y:t.height-4}},[t._v(" "+t._s(e.name)+" ")]),t.mergedConfig.img.length?n("image",{attrs:{"xlink:href":t.mergedConfig.img[r%t.mergedConfig.img.length],width:t.mergedConfig.imgSideLength,height:t.mergedConfig.imgSideLength,x:e.x-t.mergedConfig.imgSideLength/2,y:e.y-t.mergedConfig.imgSideLength}}):t._e(),t.mergedConfig.showValue?n("text",{style:"fontSize:"+t.mergedConfig.fontSize+"px",attrs:{fill:t.mergedConfig.textColor,x:e.x,y:e.textY}},[t._v(" "+t._s(e.value)+" ")]):t._e()])})),0)])}),se=[],le=(n("4e82"),{name:"DvConicalColumnChart",mixins:[j],props:{config:{type:Object,default:function(){return{}}}},data:function(){return{ref:"conical-column-chart",defaultConfig:{data:[],img:[],fontSize:12,imgSideLength:30,columnColor:"rgba(0, 194, 255, 0.4)",textColor:"#fff",showValue:!1},mergedConfig:null,column:[]}},watch:{config:function(){var t=this.calcData;t()}},methods:{afterAutoResizeMixinInit:function(){var t=this.calcData;t()},onResize:function(){var t=this.calcData;t()},calcData:function(){var t=this.mergeConfig,e=this.initData,n=this.calcSVGPath;t(),e(),n()},mergeConfig:function(){var t=this.defaultConfig,e=this.config;this.mergedConfig=Object(p["deepMerge"])(Object(g["deepClone"])(t,!0),e||{})},initData:function(){var t=this.mergedConfig,e=t.data;e=Object(g["deepClone"])(e,!0),e.sort((function(t,e){var n=t.value,r=e.value;return n>r?-1:n.6?n("rect",{key:r,attrs:{fill:t.mergedColor[0],x:e[0]-t.halfPointSideLength,y:e[1]-t.halfPointSideLength,width:t.pointSideLength,height:t.pointSideLength}},[Math.random()>.6?n("animate",{attrs:{attributeName:"fill",values:t.mergedColor[0]+";transparent",dur:"1s",begin:2*Math.random(),repeatCount:"indefinite"}}):t._e()]):t._e()]})),t.rects[0]?n("rect",{attrs:{fill:t.mergedColor[1],x:t.rects[0][0]-t.pointSideLength,y:t.rects[0][1]-t.pointSideLength,width:2*t.pointSideLength,height:2*t.pointSideLength}},[n("animate",{attrs:{attributeName:"width",values:"0;"+2*t.pointSideLength,dur:"2s",repeatCount:"indefinite"}}),n("animate",{attrs:{attributeName:"height",values:"0;"+2*t.pointSideLength,dur:"2s",repeatCount:"indefinite"}}),n("animate",{attrs:{attributeName:"x",values:t.rects[0][0]+";"+(t.rects[0][0]-t.pointSideLength),dur:"2s",repeatCount:"indefinite"}}),n("animate",{attrs:{attributeName:"y",values:t.rects[0][1]+";"+(t.rects[0][1]-t.pointSideLength),dur:"2s",repeatCount:"indefinite"}})]):t._e(),t.rects[1]?n("rect",{attrs:{fill:t.mergedColor[1],x:t.rects[1][0]-40,y:t.rects[1][1]-t.pointSideLength,width:40,height:2*t.pointSideLength}},[n("animate",{attrs:{attributeName:"width",values:"0;40;0",dur:"2s",repeatCount:"indefinite"}}),n("animate",{attrs:{attributeName:"x",values:t.rects[1][0]+";"+(t.rects[1][0]-40)+";"+t.rects[1][0],dur:"2s",repeatCount:"indefinite"}})]):t._e()],2)])}),fe=[],de={name:"DvDecoration1",mixins:[j],props:{color:{type:Array,default:function(){return[]}}},data:function(){var t=2.5;return{ref:"decoration-1",svgWH:[200,50],svgScale:[1,1],rowNum:4,rowPoints:20,pointSideLength:t,halfPointSideLength:t/2,points:[],rects:[],defaultColor:["#fff","#0de7c2"],mergedColor:[]}},watch:{color:function(){var t=this.mergeColor;t()}},methods:{afterAutoResizeMixinInit:function(){var t=this.calcSVGData;t()},calcSVGData:function(){var t=this.calcPointsPosition,e=this.calcRectsPosition,n=this.calcScale;t(),e(),n()},calcPointsPosition:function(){var t=this.svgWH,e=this.rowNum,n=this.rowPoints,r=Object(h["a"])(t,2),i=r[0],a=r[1],s=i/(n+1),l=a/(e+1),u=new Array(e).fill(0).map((function(t,e){return new Array(n).fill(0).map((function(t,n){return[s*(n+1),l*(e+1)]}))}));this.points=u.reduce((function(t,e){return[].concat(Object(o["a"])(t),Object(o["a"])(e))}),[])},calcRectsPosition:function(){var t=this.points,e=this.rowPoints,n=t[2*e-1],r=t[2*e-3];this.rects=[n,r]},calcScale:function(){var t=this.width,e=this.height,n=this.svgWH,r=Object(h["a"])(n,2),i=r[0],o=r[1];this.svgScale=[t/i,e/o]},onResize:function(){var t=this.calcSVGData;t()},mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])}},mounted:function(){var t=this.mergeColor;t()}},pe=de,ge=Object(m["a"])(pe,he,fe,!1,null,null,null),ve=(ge.exports,n("c423"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-decoration-10"},[n("svg",{attrs:{width:t.width,height:t.height}},[n("polyline",{attrs:{stroke:t.mergedColor[1],"stroke-width":"2",points:"0, "+t.height/2+" "+t.width+", "+t.height/2}}),n("polyline",{attrs:{stroke:t.mergedColor[0],"stroke-width":"2",points:"5, "+t.height/2+" "+(.2*t.width-3)+", "+t.height/2,"stroke-dasharray":"0, "+.2*t.width,fill:"freeze"}},[n("animate",{attrs:{id:t.animationId2,attributeName:"stroke-dasharray",values:"0, "+.2*t.width+";"+.2*t.width+", 0;",dur:"3s",begin:t.animationId1+".end",fill:"freeze"}}),n("animate",{attrs:{attributeName:"stroke-dasharray",values:.2*t.width+", 0;0, "+.2*t.width,dur:"0.01s",begin:t.animationId7+".end",fill:"freeze"}})]),n("polyline",{attrs:{stroke:t.mergedColor[0],"stroke-width":"2",points:.2*t.width+3+", "+t.height/2+" "+(.8*t.width-3)+", "+t.height/2,"stroke-dasharray":"0, "+.6*t.width}},[n("animate",{attrs:{id:t.animationId4,attributeName:"stroke-dasharray",values:"0, "+.6*t.width+";"+.6*t.width+", 0",dur:"3s",begin:t.animationId3+".end + 1s",fill:"freeze"}}),n("animate",{attrs:{attributeName:"stroke-dasharray",values:.6*t.width+", 0;0, "+.6*t.width,dur:"0.01s",begin:t.animationId7+".end",fill:"freeze"}})]),n("polyline",{attrs:{stroke:t.mergedColor[0],"stroke-width":"2",points:.8*t.width+3+", "+t.height/2+" "+(t.width-5)+", "+t.height/2,"stroke-dasharray":"0, "+.2*t.width}},[n("animate",{attrs:{id:t.animationId6,attributeName:"stroke-dasharray",values:"0, "+.2*t.width+";"+.2*t.width+", 0",dur:"3s",begin:t.animationId5+".end + 1s",fill:"freeze"}}),n("animate",{attrs:{attributeName:"stroke-dasharray",values:.2*t.width+", 0;0, "+.3*t.width,dur:"0.01s",begin:t.animationId7+".end",fill:"freeze"}})]),n("circle",{attrs:{cx:"2",cy:t.height/2,r:"2",fill:t.mergedColor[1]}},[n("animate",{attrs:{id:t.animationId1,attributeName:"fill",values:t.mergedColor[1]+";"+t.mergedColor[0],begin:"0s;"+t.animationId7+".end",dur:"0.3s",fill:"freeze"}})]),n("circle",{attrs:{cx:.2*t.width,cy:t.height/2,r:"2",fill:t.mergedColor[1]}},[n("animate",{attrs:{id:t.animationId3,attributeName:"fill",values:t.mergedColor[1]+";"+t.mergedColor[0],begin:t.animationId2+".end",dur:"0.3s",fill:"freeze"}}),n("animate",{attrs:{attributeName:"fill",values:t.mergedColor[1]+";"+t.mergedColor[1],dur:"0.01s",begin:t.animationId7+".end",fill:"freeze"}})]),n("circle",{attrs:{cx:.8*t.width,cy:t.height/2,r:"2",fill:t.mergedColor[1]}},[n("animate",{attrs:{id:t.animationId5,attributeName:"fill",values:t.mergedColor[1]+";"+t.mergedColor[0],begin:t.animationId4+".end",dur:"0.3s",fill:"freeze"}}),n("animate",{attrs:{attributeName:"fill",values:t.mergedColor[1]+";"+t.mergedColor[1],dur:"0.01s",begin:t.animationId7+".end",fill:"freeze"}})]),n("circle",{attrs:{cx:t.width-2,cy:t.height/2,r:"2",fill:t.mergedColor[1]}},[n("animate",{attrs:{id:t.animationId7,attributeName:"fill",values:t.mergedColor[1]+";"+t.mergedColor[0],begin:t.animationId6+".end",dur:"0.3s",fill:"freeze"}}),n("animate",{attrs:{attributeName:"fill",values:t.mergedColor[1]+";"+t.mergedColor[1],dur:"0.01s",begin:t.animationId7+".end",fill:"freeze"}})])])])}),ye=[],me={name:"DvDecoration10",mixins:[j],props:{color:{type:Array,default:function(){return[]}}},data:function(){var t=P();return{ref:"decoration-10",animationId1:"d10ani1".concat(t),animationId2:"d10ani2".concat(t),animationId3:"d10ani3".concat(t),animationId4:"d10ani4".concat(t),animationId5:"d10ani5".concat(t),animationId6:"d10ani6".concat(t),animationId7:"d10ani7".concat(t),defaultColor:["#00c2ff","rgba(0, 194, 255, 0.3)"],mergedColor:[]}},watch:{color:function(){var t=this.mergeColor;t()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])}},mounted:function(){var t=this.mergeColor;t()}},be=me,_e=Object(m["a"])(be,ve,ye,!1,null,null,null),xe=(_e.exports,n("3e8a"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-decoration-11"},[n("svg",{attrs:{width:t.width,height:t.height}},[n("polygon",{attrs:{fill:t.fade(t.mergedColor[1]||t.defaultColor[1],10),stroke:t.mergedColor[1],points:"20 10, 25 4, 55 4 60 10"}}),n("polygon",{attrs:{fill:t.fade(t.mergedColor[1]||t.defaultColor[1],10),stroke:t.mergedColor[1],points:"20 "+(t.height-10)+", 25 "+(t.height-4)+", 55 "+(t.height-4)+" 60 "+(t.height-10)}}),n("polygon",{attrs:{fill:t.fade(t.mergedColor[1]||t.defaultColor[1],10),stroke:t.mergedColor[1],points:t.width-20+" 10, "+(t.width-25)+" 4, "+(t.width-55)+" 4 "+(t.width-60)+" 10"}}),n("polygon",{attrs:{fill:t.fade(t.mergedColor[1]||t.defaultColor[1],10),stroke:t.mergedColor[1],points:t.width-20+" "+(t.height-10)+", "+(t.width-25)+" "+(t.height-4)+", "+(t.width-55)+" "+(t.height-4)+" "+(t.width-60)+" "+(t.height-10)}}),n("polygon",{attrs:{fill:t.fade(t.mergedColor[0]||t.defaultColor[0],20),stroke:t.mergedColor[0],points:"\n 20 10, 5 "+t.height/2+" 20 "+(t.height-10)+"\n "+(t.width-20)+" "+(t.height-10)+" "+(t.width-5)+" "+t.height/2+" "+(t.width-20)+" 10\n "}}),n("polyline",{attrs:{fill:"transparent",stroke:t.fade(t.mergedColor[0]||t.defaultColor[0],70),points:"25 18, 15 "+t.height/2+" 25 "+(t.height-18)}}),n("polyline",{attrs:{fill:"transparent",stroke:t.fade(t.mergedColor[0]||t.defaultColor[0],70),points:t.width-25+" 18, "+(t.width-15)+" "+t.height/2+" "+(t.width-25)+" "+(t.height-18)}})]),n("div",{staticClass:"decoration-content"},[t._t("default")],2)])}),we=[],Se={name:"DvDecoration11",mixins:[j],props:{color:{type:Array,default:function(){return[]}}},data:function(){return{ref:"decoration-11",defaultColor:["#1a98fc","#2cf7fe"],mergedColor:[]}},watch:{color:function(){var t=this.mergeColor;t()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])},fade:H["fade"]},mounted:function(){var t=this.mergeColor;t()}},Oe=Se,Ce=Object(m["a"])(Oe,xe,we,!1,null,null,null),ke=(Ce.exports,n("e11f"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-decoration-12"},[n("svg",{attrs:{width:t.width,height:t.height}},[n("defs",[n("g",{attrs:{id:t.gId}},t._l(t.pathD,(function(e,r){return n("path",{key:e,attrs:{stroke:t.pathColor[r],"stroke-width":t.width/2,fill:"transparent",d:e}})})),0),n("radialGradient",{attrs:{id:t.gradientId,cx:"50%",cy:"50%",r:"50%"}},[n("stop",{attrs:{offset:"0%","stop-color":"transparent","stop-opacity":"1"}}),n("stop",{attrs:{offset:"100%","stop-color":t.fade(t.mergedColor[1]||t.defaultColor[1],30),"stop-opacity":"1"}})],1)],1),t._l(t.circleR,(function(e){return n("circle",{key:e,attrs:{r:e,cx:t.x,cy:t.y,stroke:t.mergedColor[1],"stroke-width":.5,fill:"transparent"}})})),n("circle",{attrs:{r:"1",cx:t.x,cy:t.y,stroke:"transparent",fill:"url(#"+t.gradientId+")"}},[n("animate",{attrs:{attributeName:"r",values:"1;"+t.width/2,dur:t.haloDur+"s",repeatCount:"indefinite"}}),n("animate",{attrs:{attributeName:"opacity",values:"1;0",dur:t.haloDur+"s",repeatCount:"indefinite"}})]),n("circle",{attrs:{r:"2",cx:t.x,cy:t.y,fill:t.mergedColor[1]}}),t.showSplitLine?n("g",t._l(t.splitLinePoints,(function(e){return n("polyline",{key:e,attrs:{points:e,stroke:t.mergedColor[1],"stroke-width":.5,opacity:"0.5"}})})),0):t._e(),t._l(t.arcD,(function(e){return n("path",{key:e,attrs:{d:e,stroke:t.mergedColor[1],"stroke-width":"2",fill:"transparent"}})})),n("use",{attrs:{"xlink:href":"#"+t.gId}},[n("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0, "+t.x+" "+t.y+";360, "+t.x+" "+t.y,dur:t.scanDur+"s",repeatCount:"indefinite"}})],1)],2),n("div",{staticClass:"decoration-content"},[t._t("default")],2)])}),Ae=[],Me=(n("a15b"),{name:"DvDecoration12",mixins:[j],props:{color:{type:Array,default:function(){return[]}},scanDur:{type:Number,default:3},haloDur:{type:Number,default:2}},data:function(){var t=P();return{ref:"decoration-12",gId:"decoration-12-g-".concat(t),gradientId:"decoration-12-gradient-".concat(t),defaultColor:["#2783ce","#2cf7fe"],mergedColor:[],pathD:[],pathColor:[],circleR:[],splitLinePoints:[],arcD:[],segment:30,sectorAngle:Math.PI/3,ringNum:3,ringWidth:1,showSplitLine:!0}},watch:{color:function(){var t=this.mergeColor;t()}},computed:{x:function(){var t=this.width;return t/2},y:function(){var t=this.height;return t/2}},methods:{init:function(){var t=this.mergeColor,e=this.calcPathD,n=this.calcPathColor,r=this.calcCircleR,i=this.calcSplitLinePoints,o=this.calcArcD;t(),e(),n(),r(),i(),o()},mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])},calcPathD:function(){var t=this.x,e=this.y,n=this.width,r=this.segment,i=this.sectorAngle,o=-Math.PI/2,a=i/r,s=n/4,l=Object(g["getCircleRadianPoint"])(t,e,s,o);this.pathD=new Array(r).fill("").map((function(n,r){var i=Object(g["getCircleRadianPoint"])(t,e,s,o-(r+1)*a).map((function(t){return t.toFixed(5)})),u="M".concat(l.join(",")," A").concat(s,", ").concat(s," 0 0 0 ").concat(i.join(","));return l=i,u}))},calcPathColor:function(){var t=Object(h["a"])(this.mergedColor,1),e=t[0],n=this.segment,r=100/(n-1);this.pathColor=new Array(n).fill(e).map((function(t,n){return Object(H["fade"])(e,100-n*r)}))},calcCircleR:function(){this.segment;var t=this.ringNum,e=this.width,n=this.ringWidth,r=(e/2-n/2)/t;this.circleR=new Array(t).fill(0).map((function(t,e){return r*(e+1)}))},calcSplitLinePoints:function(){var t=this.x,e=this.y,n=this.width,r=Math.PI/6,i=n/2;this.splitLinePoints=new Array(6).fill("").map((function(n,o){var a=r*(o+1),s=a+Math.PI,l=Object(g["getCircleRadianPoint"])(t,e,i,a),u=Object(g["getCircleRadianPoint"])(t,e,i,s);return"".concat(l.join(",")," ").concat(u.join(","))}))},calcArcD:function(){var t=this.x,e=this.y,n=this.width,r=Math.PI/6,i=n/2-1;this.arcD=new Array(4).fill("").map((function(n,o){var a=r*(3*o+1),s=a+r,l=Object(g["getCircleRadianPoint"])(t,e,i,a),u=Object(g["getCircleRadianPoint"])(t,e,i,s);return"M".concat(l.join(",")," A").concat(t,", ").concat(e," 0 0 1 ").concat(u.join(","))}))},afterAutoResizeMixinInit:function(){var t=this.init;t()},fade:H["fade"]}}),Te=Me,Ie=Object(m["a"])(Te,ke,Ae,!1,null,null,null),Ee=Ie.exports,Pe=function(t){t.component(Ee.name,Ee)},je=(n("9b06"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-decoration-2"},[n("svg",{attrs:{width:t.width+"px",height:t.height+"px"}},[n("rect",{attrs:{x:t.x,y:t.y,width:t.w,height:t.h,fill:t.mergedColor[0]}},[n("animate",{attrs:{attributeName:t.reverse?"height":"width",from:"0",to:t.reverse?t.height:t.width,dur:t.dur+"s",calcMode:"spline",keyTimes:"0;1",keySplines:".42,0,.58,1",repeatCount:"indefinite"}})]),n("rect",{attrs:{x:t.x,y:t.y,width:"1",height:"1",fill:t.mergedColor[1]}},[n("animate",{attrs:{attributeName:t.reverse?"y":"x",from:"0",to:t.reverse?t.height:t.width,dur:t.dur+"s",calcMode:"spline",keyTimes:"0;1",keySplines:"0.42,0,0.58,1",repeatCount:"indefinite"}})])])])}),Le=[],De={name:"DvDecoration2",mixins:[j],props:{color:{type:Array,default:function(){return[]}},reverse:{type:Boolean,default:!1},dur:{type:Number,default:6}},data:function(){return{ref:"decoration-2",x:0,y:0,w:0,h:0,defaultColor:["#3faacb","#fff"],mergedColor:[]}},watch:{color:function(){var t=this.mergeColor;t()},reverse:function(){var t=this.calcSVGData;t()}},methods:{afterAutoResizeMixinInit:function(){var t=this.calcSVGData;t()},calcSVGData:function(){var t=this.reverse,e=this.width,n=this.height;t?(this.w=1,this.h=n,this.x=e/2,this.y=0):(this.w=e,this.h=1,this.x=0,this.y=n/2)},onResize:function(){var t=this.calcSVGData;t()},mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])}},mounted:function(){var t=this.mergeColor;t()}},Re=De,Ne=Object(m["a"])(Re,je,Le,!1,null,null,null),Be=(Ne.exports,n("5e07"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-decoration-3"},[n("svg",{style:"transform:scale("+t.svgScale[0]+","+t.svgScale[1]+");",attrs:{width:t.svgWH[0]+"px",height:t.svgWH[1]+"px"}},[t._l(t.points,(function(e,r){return[n("rect",{key:r,attrs:{fill:t.mergedColor[0],x:e[0]-t.halfPointSideLength,y:e[1]-t.halfPointSideLength,width:t.pointSideLength,height:t.pointSideLength}},[Math.random()>.6?n("animate",{attrs:{attributeName:"fill",values:""+t.mergedColor.join(";"),dur:Math.random()+1+"s",begin:2*Math.random(),repeatCount:"indefinite"}}):t._e()])]}))],2)])}),Fe=[],ze={name:"DvDecoration3",mixins:[j],props:{color:{type:Array,default:function(){return[]}}},data:function(){var t=7;return{ref:"decoration-3",svgWH:[300,35],svgScale:[1,1],rowNum:2,rowPoints:25,pointSideLength:t,halfPointSideLength:t/2,points:[],defaultColor:["#7acaec","transparent"],mergedColor:[]}},watch:{color:function(){var t=this.mergeColor;t()}},methods:{afterAutoResizeMixinInit:function(){var t=this.calcSVGData;t()},calcSVGData:function(){var t=this.calcPointsPosition,e=this.calcScale;t(),e()},calcPointsPosition:function(){var t=this.svgWH,e=this.rowNum,n=this.rowPoints,r=Object(h["a"])(t,2),i=r[0],a=r[1],s=i/(n+1),l=a/(e+1),u=new Array(e).fill(0).map((function(t,e){return new Array(n).fill(0).map((function(t,n){return[s*(n+1),l*(e+1)]}))}));this.points=u.reduce((function(t,e){return[].concat(Object(o["a"])(t),Object(o["a"])(e))}),[])},calcScale:function(){var t=this.width,e=this.height,n=this.svgWH,r=Object(h["a"])(n,2),i=r[0],o=r[1];this.svgScale=[t/i,e/o]},onResize:function(){var t=this.calcSVGData;t()},mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])}},mounted:function(){var t=this.mergeColor;t()}},Ve=ze,qe=Object(m["a"])(Ve,Be,Fe,!1,null,null,null),Ge=qe.exports,He=function(t){t.component(Ge.name,Ge)},We=(n("c2ca"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-decoration-4"},[n("div",{class:"container "+(t.reverse?"reverse":"normal"),style:t.reverse?"width:"+t.width+"px;height:5px;animation-duration:"+t.dur+"s":"width:5px;height:"+t.height+"px;animation-duration:"+t.dur+"s"},[n("svg",{attrs:{width:t.reverse?t.width:5,height:t.reverse?5:t.height}},[n("polyline",{attrs:{stroke:t.mergedColor[0],points:t.reverse?"0, 2.5 "+t.width+", 2.5":"2.5, 0 2.5, "+t.height}}),n("polyline",{staticClass:"bold-line",attrs:{stroke:t.mergedColor[1],"stroke-width":"3","stroke-dasharray":"20, 80","stroke-dashoffset":"-30",points:t.reverse?"0, 2.5 "+t.width+", 2.5":"2.5, 0 2.5, "+t.height}})])])])}),Ue=[],$e={name:"DvDecoration4",mixins:[j],props:{color:{type:Array,default:function(){return[]}},reverse:{type:Boolean,default:!1},dur:{type:Number,default:3}},data:function(){return{ref:"decoration-4",defaultColor:["rgba(255, 255, 255, 0.3)","rgba(255, 255, 255, 0.3)"],mergedColor:[]}},watch:{color:function(){var t=this.mergeColor;t()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])}},mounted:function(){var t=this.mergeColor;t()}},Ye=$e,Xe=Object(m["a"])(Ye,We,Ue,!1,null,null,null),Ke=(Xe.exports,n("2848"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-decoration-5"},[n("svg",{attrs:{width:t.width,height:t.height}},[n("polyline",{attrs:{fill:"transparent",stroke:t.mergedColor[0],"stroke-width":"3",points:t.line1Points}},[n("animate",{attrs:{attributeName:"stroke-dasharray",attributeType:"XML",from:"0, "+t.line1Length/2+", 0, "+t.line1Length/2,to:"0, 0, "+t.line1Length+", 0",dur:t.dur+"s",begin:"0s",calcMode:"spline",keyTimes:"0;1",keySplines:"0.4,1,0.49,0.98",repeatCount:"indefinite"}})]),n("polyline",{attrs:{fill:"transparent",stroke:t.mergedColor[1],"stroke-width":"2",points:t.line2Points}},[n("animate",{attrs:{attributeName:"stroke-dasharray",attributeType:"XML",from:"0, "+t.line2Length/2+", 0, "+t.line2Length/2,to:"0, 0, "+t.line2Length+", 0",dur:t.dur+"s",begin:"0s",calcMode:"spline",keyTimes:"0;1",keySplines:".4,1,.49,.98",repeatCount:"indefinite"}})])])])}),Ze=[],Qe={name:"DvDecoration5",mixins:[j],props:{color:{type:Array,default:function(){return[]}},dur:{type:Number,default:1.2}},data:function(){return{ref:"decoration-5",line1Points:"",line2Points:"",line1Length:0,line2Length:0,defaultColor:["#3f96a5","#3f96a5"],mergedColor:[]}},watch:{color:function(){var t=this.mergeColor;t()}},methods:{afterAutoResizeMixinInit:function(){var t=this.calcSVGData;t()},calcSVGData:function(){var t=this.width,e=this.height,n=[[0,.2*e],[.18*t,.2*e],[.2*t,.4*e],[.25*t,.4*e],[.27*t,.6*e],[.72*t,.6*e],[.75*t,.4*e],[.8*t,.4*e],[.82*t,.2*e],[t,.2*e]],r=[[.3*t,.8*e],[.7*t,.8*e]],i=Object(p["getPolylineLength"])(n),o=Object(p["getPolylineLength"])(r);n=n.map((function(t){return t.join(",")})).join(" "),r=r.map((function(t){return t.join(",")})).join(" "),this.line1Points=n,this.line2Points=r,this.line1Length=i,this.line2Length=o},onResize:function(){var t=this.calcSVGData;t()},mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])}},mounted:function(){var t=this.mergeColor;t()}},Je=Qe,tn=Object(m["a"])(Je,Ke,Ze,!1,null,null,null),en=(tn.exports,n("c7c8"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-decoration-6"},[n("svg",{style:"transform:scale("+t.svgScale[0]+","+t.svgScale[1]+");",attrs:{width:t.svgWH[0]+"px",height:t.svgWH[1]+"px"}},[t._l(t.points,(function(e,r){return[n("rect",{key:r,attrs:{fill:t.mergedColor[Math.random()>.5?0:1],x:e[0]-t.halfRectWidth,y:e[1]-t.heights[r]/2,width:t.rectWidth,height:t.heights[r]}},[n("animate",{attrs:{attributeName:"y",values:e[1]-t.minHeights[r]/2+";"+(e[1]-t.heights[r]/2)+";"+(e[1]-t.minHeights[r]/2),dur:t.randoms[r]+"s",keyTimes:"0;0.5;1",calcMode:"spline",keySplines:"0.42,0,0.58,1;0.42,0,0.58,1",begin:"0s",repeatCount:"indefinite"}}),n("animate",{attrs:{attributeName:"height",values:t.minHeights[r]+";"+t.heights[r]+";"+t.minHeights[r],dur:t.randoms[r]+"s",keyTimes:"0;0.5;1",calcMode:"spline",keySplines:"0.42,0,0.58,1;0.42,0,0.58,1",begin:"0s",repeatCount:"indefinite"}})])]}))],2)])}),nn=[],rn={name:"DvDecoration6",mixins:[j],props:{color:{type:Array,default:function(){return[]}}},data:function(){var t=7;return{ref:"decoration-6",svgWH:[300,35],svgScale:[1,1],rowNum:1,rowPoints:40,rectWidth:t,halfRectWidth:t/2,points:[],heights:[],minHeights:[],randoms:[],defaultColor:["#7acaec","#7acaec"],mergedColor:[]}},watch:{color:function(){var t=this.mergeColor;t()}},methods:{afterAutoResizeMixinInit:function(){var t=this.calcSVGData;t()},calcSVGData:function(){var t=this.calcPointsPosition,e=this.calcScale;t(),e()},calcPointsPosition:function(){var t=this.svgWH,e=this.rowNum,n=this.rowPoints,r=Object(h["a"])(t,2),i=r[0],a=r[1],s=i/(n+1),l=a/(e+1),u=new Array(e).fill(0).map((function(t,e){return new Array(n).fill(0).map((function(t,n){return[s*(n+1),l*(e+1)]}))}));this.points=u.reduce((function(t,e){return[].concat(Object(o["a"])(t),Object(o["a"])(e))}),[]);var c=this.heights=new Array(e*n).fill(0).map((function(t){return Math.random()>.8?M(.7*a,a):M(.2*a,.5*a)}));this.minHeights=new Array(e*n).fill(0).map((function(t,e){return c[e]*Math.random()})),this.randoms=new Array(e*n).fill(0).map((function(t){return Math.random()+1.5}))},calcScale:function(){var t=this.width,e=this.height,n=this.svgWH,r=Object(h["a"])(n,2),i=r[0],o=r[1];this.svgScale=[t/i,e/o]},onResize:function(){var t=this.calcSVGData;t()},mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])}},mounted:function(){var t=this.mergeColor;t()}},on=rn,an=Object(m["a"])(on,en,nn,!1,null,null,null),sn=(an.exports,n("d51d"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"dv-decoration-7"},[n("svg",{attrs:{width:"21px",height:"20px"}},[n("polyline",{attrs:{"stroke-width":"4",fill:"transparent",stroke:t.mergedColor[0],points:"10, 0 19, 10 10, 20"}}),n("polyline",{attrs:{"stroke-width":"2",fill:"transparent",stroke:t.mergedColor[1],points:"2, 0 11, 10 2, 20"}})]),t._t("default"),n("svg",{attrs:{width:"21px",height:"20px"}},[n("polyline",{attrs:{"stroke-width":"4",fill:"transparent",stroke:t.mergedColor[0],points:"11, 0 2, 10 11, 20"}}),n("polyline",{attrs:{"stroke-width":"2",fill:"transparent",stroke:t.mergedColor[1],points:"19, 0 10, 10 19, 20"}})])],2)}),ln=[],un={name:"DvDecoration7",props:{color:{type:Array,default:function(){return[]}}},data:function(){return{defaultColor:["#1dc1f5","#1dc1f5"],mergedColor:[]}},watch:{color:function(){var t=this.mergeColor;t()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])}},mounted:function(){var t=this.mergeColor;t()}},cn=un,hn=Object(m["a"])(cn,sn,ln,!1,null,null,null),fn=(hn.exports,n("357d"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-decoration-8"},[n("svg",{attrs:{width:t.width,height:t.height}},[n("polyline",{attrs:{stroke:t.mergedColor[0],"stroke-width":"2",fill:"transparent",points:t.xPos(0)+", 0 "+t.xPos(30)+", "+t.height/2}}),n("polyline",{attrs:{stroke:t.mergedColor[0],"stroke-width":"2",fill:"transparent",points:t.xPos(20)+", 0 "+t.xPos(50)+", "+t.height/2+" "+t.xPos(t.width)+", "+t.height/2}}),n("polyline",{attrs:{stroke:t.mergedColor[1],fill:"transparent","stroke-width":"3",points:t.xPos(0)+", "+(t.height-3)+", "+t.xPos(200)+", "+(t.height-3)}})])])}),dn=[],pn={name:"DvDecoration8",mixins:[j],props:{color:{type:Array,default:function(){return[]}},reverse:{type:Boolean,default:!1}},data:function(){return{ref:"decoration-8",defaultColor:["#3f96a5","#3f96a5"],mergedColor:[]}},watch:{color:function(){var t=this.mergeColor;t()}},methods:{xPos:function(t){var e=this.reverse,n=this.width;return e?n-t:t},mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])}},mounted:function(){var t=this.mergeColor;t()}},gn=pn,vn=Object(m["a"])(gn,fn,dn,!1,null,null,null),yn=(vn.exports,n("9ab4"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-decoration-9"},[n("svg",{style:"transform:scale("+t.svgScale[0]+","+t.svgScale[1]+");",attrs:{width:t.svgWH[0]+"px",height:t.svgWH[1]+"px"}},[n("defs",[n("polygon",{attrs:{id:t.polygonId,points:"15, 46.5, 21, 47.5, 21, 52.5, 15, 53.5"}})]),n("circle",{attrs:{cx:"50",cy:"50",r:"45",fill:"transparent",stroke:t.mergedColor[1],"stroke-width":"10","stroke-dasharray":"80, 100, 30, 100"}},[n("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0 50 50;360 50 50",dur:t.dur+"s",repeatCount:"indefinite"}})],1),n("circle",{attrs:{cx:"50",cy:"50",r:"45",fill:"transparent",stroke:t.mergedColor[0],"stroke-width":"6","stroke-dasharray":"50, 66, 100, 66"}},[n("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0 50 50;-360 50 50",dur:t.dur+"s",repeatCount:"indefinite"}})],1),n("circle",{attrs:{cx:"50",cy:"50",r:"38",fill:"transparent",stroke:t.fade(t.mergedColor[1]||t.defaultColor[1],30),"stroke-width":"1","stroke-dasharray":"5, 1"}}),t._l(new Array(20).fill(0),(function(e,r){return n("use",{key:r,attrs:{"xlink:href":"#"+t.polygonId,stroke:t.mergedColor[1],fill:Math.random()>.4?"transparent":t.mergedColor[0]}},[n("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0 50 50;360 50 50",dur:t.dur+"s",begin:r*t.dur/20+"s",repeatCount:"indefinite"}})],1)})),n("circle",{attrs:{cx:"50",cy:"50",r:"26",fill:"transparent",stroke:t.fade(t.mergedColor[1]||t.defaultColor[1],30),"stroke-width":"1","stroke-dasharray":"5, 1"}})],2),t._t("default")],2)}),mn=[],bn={name:"DvDecoration9",mixins:[j],props:{color:{type:Array,default:function(){return[]}},dur:{type:Number,default:3}},data:function(){var t=P();return{ref:"decoration-9",polygonId:"decoration-9-polygon-".concat(t),svgWH:[100,100],svgScale:[1,1],defaultColor:["rgba(3, 166, 224, 0.8)","rgba(3, 166, 224, 0.5)"],mergedColor:[]}},watch:{color:function(){var t=this.mergeColor;t()}},methods:{afterAutoResizeMixinInit:function(){var t=this.calcScale;t()},calcScale:function(){var t=this.width,e=this.height,n=this.svgWH,r=Object(h["a"])(n,2),i=r[0],o=r[1];this.svgScale=[t/i,e/o]},onResize:function(){var t=this.calcScale;t()},mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])},fade:H["fade"]},mounted:function(){var t=this.mergeColor;t()}},_n=bn,xn=Object(m["a"])(_n,yn,mn,!1,null,null,null),wn=xn.exports,Sn=function(t){t.component(wn.name,wn)},On=(n("bc96"),function(t){t.component(_.name,_)}),Cn=(n("41f6"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"dv-flyline-chart",staticClass:"dv-flyline-chart",style:"background-image: url("+(t.mergedConfig?t.mergedConfig.bgImgUrl:"")+")",on:{click:t.consoleClickPos}},[t.mergedConfig?n("svg",{attrs:{width:t.width,height:t.height}},[n("defs",[n("radialGradient",{attrs:{id:t.gradientId,cx:"50%",cy:"50%",r:"50%"}},[n("stop",{attrs:{offset:"0%","stop-color":"#fff","stop-opacity":"1"}}),n("stop",{attrs:{offset:"100%","stop-color":"#fff","stop-opacity":"0"}})],1),n("radialGradient",{attrs:{id:t.gradient2Id,cx:"50%",cy:"50%",r:"50%"}},[n("stop",{attrs:{offset:"0%","stop-color":"#fff","stop-opacity":"0"}}),n("stop",{attrs:{offset:"100%","stop-color":"#fff","stop-opacity":"1"}})],1),t.paths[0]?n("circle",{attrs:{id:"circle"+t.paths[0].toString(),cx:t.paths[0][2][0],cy:t.paths[0][2][1]}},[n("animate",{attrs:{attributeName:"r",values:"1;"+t.mergedConfig.halo.radius,dur:t.mergedConfig.halo.duration/10+"s",repeatCount:"indefinite"}}),n("animate",{attrs:{attributeName:"opacity",values:"1;0",dur:t.mergedConfig.halo.duration/10+"s",repeatCount:"indefinite"}})]):t._e()],1),t.paths[0]?n("image",{attrs:{"xlink:href":t.mergedConfig.centerPointImg.url,width:t.mergedConfig.centerPointImg.width,height:t.mergedConfig.centerPointImg.height,x:t.paths[0][2][0]-t.mergedConfig.centerPointImg.width/2,y:t.paths[0][2][1]-t.mergedConfig.centerPointImg.height/2}}):t._e(),n("mask",{attrs:{id:"maskhalo"+t.paths[0].toString()}},[t.paths[0]?n("use",{attrs:{"xlink:href":"#circle"+t.paths[0].toString(),fill:"url(#"+t.gradient2Id+")"}}):t._e()]),t.paths[0]&&t.mergedConfig.halo.show?n("use",{attrs:{"xlink:href":"#circle"+t.paths[0].toString(),fill:t.mergedConfig.halo.color,mask:"url(#maskhalo"+t.paths[0].toString()+")"}}):t._e(),t._l(t.paths,(function(e,r){return n("g",{key:r},[n("defs",[n("path",{ref:"path"+r,refInFor:!0,attrs:{id:"path"+e.toString(),d:"M"+e[0].toString()+" Q"+e[1].toString()+" "+e[2].toString(),fill:"transparent"}})]),n("use",{attrs:{"xlink:href":"#path"+e.toString(),"stroke-width":t.mergedConfig.lineWidth,stroke:t.mergedConfig.orbitColor}}),t.lengths[r]?n("use",{attrs:{"xlink:href":"#path"+e.toString(),"stroke-width":t.mergedConfig.lineWidth,stroke:t.mergedConfig.flylineColor,mask:"url(#mask"+t.unique+e.toString()+")"}},[n("animate",{attrs:{attributeName:"stroke-dasharray",from:"0, "+t.lengths[r],to:t.lengths[r]+", 0",dur:t.times[r]||0,repeatCount:"indefinite"}})]):t._e(),n("mask",{attrs:{id:"mask"+t.unique+e.toString()}},[n("circle",{attrs:{cx:"0",cy:"0",r:t.mergedConfig.flylineRadius,fill:"url(#"+t.gradientId+")"}},[n("animateMotion",{attrs:{dur:t.times[r]||0,path:"M"+e[0].toString()+" Q"+e[1].toString()+" "+e[2].toString(),rotate:"auto",repeatCount:"indefinite"}})],1)]),n("image",{attrs:{"xlink:href":t.mergedConfig.pointsImg.url,width:t.mergedConfig.pointsImg.width,height:t.mergedConfig.pointsImg.height,x:e[0][0]-t.mergedConfig.pointsImg.width/2,y:e[0][1]-t.mergedConfig.pointsImg.height/2}}),n("text",{style:"fontSize:"+t.mergedConfig.text.fontSize+"px;",attrs:{fill:t.mergedConfig.text.color,x:e[0][0]+t.mergedConfig.text.offset[0],y:e[0][1]+t.mergedConfig.text.offset[1]}},[t._v(" "+t._s(t.texts[r])+" ")])])}))],2):t._e()])}),kn=[],An=n("c7eb"),Mn=n("1da1"),Tn={name:"DvFlylineChart",mixins:[j],props:{config:{type:Object,default:function(){return{}}},dev:{type:Boolean,default:!1}},data:function(){var t=P();return{ref:"dv-flyline-chart",unique:Math.random(),maskId:"flyline-mask-id-".concat(t),maskCircleId:"mask-circle-id-".concat(t),gradientId:"gradient-id-".concat(t),gradient2Id:"gradient2-id-".concat(t),defaultConfig:{centerPoint:[0,0],points:[],lineWidth:1,orbitColor:"rgba(103, 224, 227, .2)",flylineColor:"#ffde93",k:-.5,curvature:5,flylineRadius:100,duration:[20,30],relative:!0,bgImgUrl:"",text:{offset:[0,15],color:"#ffdb5c",fontSize:12},halo:{show:!0,duration:30,color:"#fb7293",radius:120},centerPointImg:{width:40,height:40,url:""},pointsImg:{width:15,height:15,url:""}},mergedConfig:null,paths:[],lengths:[],times:[],texts:[]}},watch:{config:function(){var t=this.calcData;t()}},methods:{afterAutoResizeMixinInit:function(){var t=this.calcData;t()},onResize:function(){var t=this.calcData;t()},calcData:function(){var t=this;return Object(Mn["a"])(Object(An["a"])().mark((function e(){var n,r,i,o,a;return Object(An["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.mergeConfig,r=t.createFlylinePaths,i=t.calcLineLengths,n(),r(),e.next=5,i();case 5:o=t.calcTimes,a=t.calcTexts,o(),a();case 8:case"end":return e.stop()}}),e)})))()},mergeConfig:function(){var t=this.config,e=this.defaultConfig,n=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||{}),r=n.points;n.points=r.map((function(t){return t instanceof Array?{position:t,text:""}:t})),this.mergedConfig=n},createFlylinePaths:function(){var t=this.getPath,e=this.mergedConfig,n=this.width,r=this.height,i=e.centerPoint,o=e.points,a=e.relative;o=o.map((function(t){var e=t.position;return e})),a&&(i=[n*i[0],r*i[1]],o=o.map((function(t){var e=Object(h["a"])(t,2),i=e[0],o=e[1];return[n*i,r*o]}))),this.paths=o.map((function(e){return t(i,e)}))},getPath:function(t,e){var n=this.getControlPoint,r=n(t,e);return[e,r,t]},getControlPoint:function(t,e){var n=Object(h["a"])(t,2),r=n[0],i=n[1],o=Object(h["a"])(e,2),a=o[0],s=o[1],l=this.getKLinePointByx,u=this.mergedConfig,c=u.curvature,f=u.k,d=(r+a)/2,p=(i+s)/2,g=E([r,i],[a,s]),v=g/c,y=v/2,m=d,b=p;do{m+=y,b=l(f,[d,p],m)[1]}while(E([d,p],[m,b])0?t.rectWidth:0,height:t.rectHeight>0?t.rectHeight:0}}),n("polyline",{attrs:{"stroke-width":t.polylineWidth,"stroke-dasharray":t.mergedConfig?t.mergedConfig.lineDash.join(","):"0",stroke:"url(#"+t.polylineGradient+")",points:t.points}}),n("text",{attrs:{stroke:t.mergedConfig?t.mergedConfig.textColor:"#fff",fill:t.mergedConfig?t.mergedConfig.textColor:"#fff",x:t.width/2,y:t.height/2}},[t._v(" "+t._s(t.details)+" ")])])])}),Kn=[],Zn=(n("ac1f"),n("5319"),{name:"DvPercentPond",props:{config:{type:Object,default:function(){return{}}}},data:function(){var t=P();return{gradientId1:"percent-pond-gradientId1-".concat(t),gradientId2:"percent-pond-gradientId2-".concat(t),width:0,height:0,defaultConfig:{value:0,colors:["#3DE7C9","#00BAFF"],borderWidth:3,borderGap:3,lineDash:[5,1],textColor:"#fff",borderRadius:5,localGradient:!1,formatter:"{value}%"},mergedConfig:null}},computed:{rectWidth:function(){var t=this.mergedConfig,e=this.width;if(!t)return 0;var n=t.borderWidth;return e-n},rectHeight:function(){var t=this.mergedConfig,e=this.height;if(!t)return 0;var n=t.borderWidth;return e-n},points:function(){var t=this.mergedConfig,e=this.width,n=this.height,r=n/2;if(!t)return"0, ".concat(r," 0, ").concat(r);var i=t.borderWidth,o=t.borderGap,a=t.value,s=(e-2*(i+o))/100*a;return"\n ".concat(i+o,", ").concat(r,"\n ").concat(i+o+s,", ").concat(r+.001,"\n ")},polylineWidth:function(){var t=this.mergedConfig,e=this.height;if(!t)return 0;var n=t.borderWidth,r=t.borderGap;return e-2*(n+r)},linearGradient:function(){var t=this.mergedConfig;if(!t)return[];var e=t.colors,n=e.length,r=100/(n-1);return e.map((function(t,e){return[r*e,t]}))},polylineGradient:function(){var t=this.gradientId1,e=this.gradientId2,n=this.mergedConfig;return n&&n.localGradient?t:e},gradient2XPos:function(){var t=this.mergedConfig;if(!t)return"100%";var e=t.value;return"".concat(200-e,"%")},details:function(){var t=this.mergedConfig;if(!t)return"";var e=t.value,n=t.formatter;return n.replace("{value}",e)}},watch:{config:function(){var t=this.mergeConfig;t()}},methods:{init:function(){var t=this;return Object(Mn["a"])(Object(An["a"])().mark((function e(){var n,r,i;return Object(An["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.initWH,r=t.config,i=t.mergeConfig,e.next=3,n();case 3:if(r){e.next=5;break}return e.abrupt("return");case 5:i();case 6:case"end":return e.stop()}}),e)})))()},initWH:function(){var t=this;return Object(Mn["a"])(Object(An["a"])().mark((function e(){var n,r,i,o,a;return Object(An["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.$nextTick,r=t.$refs,e.next=3,n();case 3:i=r["percent-pond"],o=i.clientWidth,a=i.clientHeight,t.width=o,t.height=a;case 6:case"end":return e.stop()}}),e)})))()},mergeConfig:function(){var t=this.config,e=this.defaultConfig;this.mergedConfig=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||{})}},mounted:function(){var t=this.init;t()}}),Qn=Zn,Jn=Object(m["a"])(Qn,Xn,Kn,!1,null,null,null),tr=(Jn.exports,n("037e"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-scroll-board"},[t.header.length&&t.mergedConfig?n("div",{staticClass:"header",style:"background-color: "+t.mergedConfig.headerBGC+";"},t._l(t.header,(function(e,r){return n("div",{key:""+e+r,staticClass:"header-item",style:"\n height: "+t.mergedConfig.headerHeight+"px;\n line-height: "+t.mergedConfig.headerHeight+"px;\n width: "+t.widths[r]+"px;\n ",attrs:{align:t.aligns[r]},domProps:{innerHTML:t._s(e)}})})),0):t._e(),t.mergedConfig?n("div",{staticClass:"rows",style:"height: "+(t.height-(t.header.length?t.mergedConfig.headerHeight:0))+"px;"},t._l(t.rows,(function(e,r){return n("div",{key:""+e.toString()+e.scroll,staticClass:"row-item",style:"\n height: "+t.heights[r]+"px;\n line-height: "+t.heights[r]+"px;\n background-color: "+t.mergedConfig[e.rowIndex%2===0?"evenRowBGC":"oddRowBGC"]+";\n "},t._l(e.ceils,(function(i,o){return n("div",{key:""+i+r+o,staticClass:"ceil",style:"width: "+t.widths[o]+"px;",attrs:{align:t.aligns[o]},domProps:{innerHTML:t._s(i)},on:{click:function(n){return t.emitEvent("click",r,o,e,i)},mouseenter:function(n){return t.handleHover(!0,r,o,e,i)},mouseleave:function(e){return t.handleHover(!1)}}})})),0)})),0):t._e()])}),er=[],nr=(n("3c65"),n("fb6a"),n("14d9"),n("a434"),{name:"DvScrollBoard",mixins:[j],props:{config:{type:Object,default:function(){return{}}}},data:function(){return{ref:"scroll-board",defaultConfig:{header:[],data:[],rowNum:5,headerBGC:"#00BAFF",oddRowBGC:"#003B51",evenRowBGC:"#0A2732",waitTime:2e3,headerHeight:35,columnWidth:[],align:[],index:!1,indexHeader:"#",carousel:"single",hoverPause:!0},mergedConfig:null,header:[],rowsData:[],rows:[],widths:[],heights:[],avgHeight:0,aligns:[],animationIndex:0,animationHandler:"",updater:0,needCalc:!1}},watch:{config:function(){var t=this.stopAnimation,e=this.calcData;t(),this.animationIndex=0,e()}},methods:{handleHover:function(t,e,n,r,i){var o=this.mergedConfig,a=this.emitEvent,s=this.stopAnimation,l=this.animation;t&&a("mouseover",e,n,r,i),o.hoverPause&&(t?s():l(!0))},afterAutoResizeMixinInit:function(){var t=this.calcData;t()},onResize:function(){var t=this.mergedConfig,e=this.calcWidths,n=this.calcHeights;t&&(e(),n())},calcData:function(){var t=this.mergeConfig,e=this.calcHeaderData,n=this.calcRowsData;t(),e(),n();var r=this.calcWidths,i=this.calcHeights,o=this.calcAligns;r(),i(),o();var a=this.animation;a(!0)},mergeConfig:function(){var t=this.config,e=this.defaultConfig;this.mergedConfig=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||{})},calcHeaderData:function(){var t=this.mergedConfig,e=t.header,n=t.index,r=t.indexHeader;e.length?(e=Object(o["a"])(e),n&&e.unshift(r),this.header=e):this.header=[]},calcRowsData:function(){var t=this.mergedConfig,e=t.data,n=t.index,r=t.headerBGC,i=t.rowNum;n&&(e=e.map((function(t,e){t=Object(o["a"])(t);var n='').concat(e+1,"");return t.unshift(n),t}))),e=e.map((function(t,e){return{ceils:t,rowIndex:e}}));var s=e.length;s>i&&s<2*i&&(e=[].concat(Object(o["a"])(e),Object(o["a"])(e))),e=e.map((function(t,e){return Object(a["a"])(Object(a["a"])({},t),{},{scroll:e})})),this.rowsData=e,this.rows=e},calcWidths:function(){var t=this.width,e=this.mergedConfig,n=this.rowsData,r=e.columnWidth,i=e.header,o=r.reduce((function(t,e){return t+e}),0),a=0;n[0]?a=n[0].ceils.length:i.length&&(a=i.length);var s=(t-o)/(a-r.length),l=new Array(a).fill(s);this.widths=Object(p["deepMerge"])(l,r)},calcHeights:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.height,n=this.mergedConfig,r=this.header,i=n.headerHeight,o=n.rowNum,a=n.data,s=e;r.length&&(s-=i);var l=s/o;this.avgHeight=l,t||(this.heights=new Array(a.length).fill(l))},calcAligns:function(){var t=this.header,e=this.mergedConfig,n=t.length,r=new Array(n).fill("left"),i=e.align;this.aligns=Object(p["deepMerge"])(r,i)},animation:function(){var t=arguments,e=this;return Object(Mn["a"])(Object(An["a"])().mark((function n(){var r,i,a,s,l,u,c,h,f,d,p,g,v,y,m,b,_,x;return Object(An["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=t.length>0&&void 0!==t[0]&&t[0],a=e.needCalc,s=e.calcHeights,l=e.calcRowsData,a&&(l(),s(),e.needCalc=!1),u=e.avgHeight,c=e.animationIndex,h=e.mergedConfig,f=e.rowsData,d=e.animation,p=e.updater,g=h.waitTime,v=h.carousel,y=h.rowNum,m=f.length,!(y>=m)){n.next=8;break}return n.abrupt("return");case 8:if(!i){n.next=13;break}return n.next=11,new Promise((function(t){return setTimeout(t,g)}));case 11:if(p===e.updater){n.next=13;break}return n.abrupt("return");case 13:return b="single"===v?1:y,_=f.slice(c),_.push.apply(_,Object(o["a"])(f.slice(0,c))),e.rows=_.slice(0,"page"===v?2*y:y+1),e.heights=new Array(m).fill(u),n.next=20,new Promise((function(t){return setTimeout(t,300)}));case 20:if(p===e.updater){n.next=22;break}return n.abrupt("return");case 22:(r=e.heights).splice.apply(r,[0,b].concat(Object(o["a"])(new Array(b).fill(0)))),c+=b,x=c-m,x>=0&&(c=x),e.animationIndex=c,e.animationHandler=setTimeout(d,g-300);case 28:case"end":return n.stop()}}),n)})))()},stopAnimation:function(){var t=this.animationHandler,e=this.updater;this.updater=(e+1)%999999,t&&clearTimeout(t)},emitEvent:function(t,e,n,r,i){var o=r.ceils,a=r.rowIndex;this.$emit(t,{row:o,ceil:i,rowIndex:a,columnIndex:n})},updateRows:function(t,e){var n=this.mergedConfig,r=this.animationHandler,i=this.animation;this.mergedConfig=Object(a["a"])(Object(a["a"])({},n),{},{data:Object(o["a"])(t)}),this.needCalc=!0,"number"===typeof e&&(this.animationIndex=e),r||i(!0)}},destroyed:function(){var t=this.stopAnimation;t()}}),rr=nr,ir=Object(m["a"])(rr,tr,er,!1,null,null,null),or=ir.exports,ar=function(t){t.component(or.name,or)},sr=(n("c280"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-scroll-ranking-board"},t._l(t.rows,(function(e,r){return n("div",{key:e.toString()+e.scroll,staticClass:"row-item",style:"height: "+t.heights[r]+"px;"},[n("div",{staticClass:"ranking-info"},[n("div",{staticClass:"rank"},[t._v("No."+t._s(e.ranking))]),n("div",{staticClass:"info-name",domProps:{innerHTML:t._s(e.name)}}),n("div",{staticClass:"ranking-value"},[t._v(t._s(t.mergedConfig.valueFormatter?t.mergedConfig.valueFormatter(e):e.value+t.mergedConfig.unit))])]),n("div",{staticClass:"ranking-column"},[n("div",{staticClass:"inside-column",style:"width: "+e.percent+"%;"},[n("div",{staticClass:"shine"})])])])})),0)}),lr=[],ur={name:"DvScrollRankingBoard",mixins:[j],props:{config:{type:Object,default:function(){return{}}}},data:function(){return{ref:"scroll-ranking-board",defaultConfig:{data:[],rowNum:5,waitTime:2e3,carousel:"single",unit:"",sort:!0,valueFormatter:null},mergedConfig:null,rowsData:[],rows:[],heights:[],animationIndex:0,animationHandler:"",updater:0}},watch:{config:function(){var t=this.stopAnimation,e=this.calcData;t(),e()}},methods:{afterAutoResizeMixinInit:function(){var t=this.calcData;t()},onResize:function(){var t=this.mergedConfig,e=this.calcHeights;t&&e(!0)},calcData:function(){var t=this.mergeConfig,e=this.calcRowsData;t(),e();var n=this.calcHeights;n();var r=this.animation;r(!0)},mergeConfig:function(){var t=this.config,e=this.defaultConfig;this.mergedConfig=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||{})},calcRowsData:function(){var t=this.mergedConfig,e=t.data,n=t.rowNum,r=t.sort;r&&e.sort((function(t,e){var n=t.value,r=e.value;return n>r?-1:nn&&h<2*n&&(e=[].concat(Object(o["a"])(e),Object(o["a"])(e))),e=e.map((function(t,e){return Object(a["a"])(Object(a["a"])({},t),{},{scroll:e})})),this.rowsData=e,this.rows=e},calcHeights:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.height,n=this.mergedConfig,r=n.rowNum,i=n.data,o=e/r;this.avgHeight=o,t||(this.heights=new Array(i.length).fill(o))},animation:function(){var t=arguments,e=this;return Object(Mn["a"])(Object(An["a"])().mark((function n(){var r,i,a,s,l,u,c,h,f,d,p,g,v,y,m;return Object(An["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=t.length>0&&void 0!==t[0]&&t[0],a=e.avgHeight,s=e.animationIndex,l=e.mergedConfig,u=e.rowsData,c=e.animation,h=e.updater,f=l.waitTime,d=l.carousel,p=l.rowNum,g=u.length,!(p>=g)){n.next=6;break}return n.abrupt("return");case 6:if(!i){n.next=11;break}return n.next=9,new Promise((function(t){return setTimeout(t,f)}));case 9:if(h===e.updater){n.next=11;break}return n.abrupt("return");case 11:return v="single"===d?1:p,y=u.slice(s),y.push.apply(y,Object(o["a"])(u.slice(0,s))),e.rows=y.slice(0,p+1),e.heights=new Array(g).fill(a),n.next=18,new Promise((function(t){return setTimeout(t,300)}));case 18:if(h===e.updater){n.next=20;break}return n.abrupt("return");case 20:(r=e.heights).splice.apply(r,[0,v].concat(Object(o["a"])(new Array(v).fill(0)))),s+=v,m=s-g,m>=0&&(s=m),e.animationIndex=s,e.animationHandler=setTimeout(c,f-300);case 26:case"end":return n.stop()}}),n)})))()},stopAnimation:function(){var t=this.animationHandler,e=this.updater;this.updater=(e+1)%999999,t&&clearTimeout(t)}},destroyed:function(){var t=this.stopAnimation;t()}},cr=ur,hr=Object(m["a"])(cr,sr,lr,!1,null,null,null),fr=(hr.exports,n("fa10"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"dv-water-pond-level"},[t.renderer?n("svg",[n("defs",[n("linearGradient",{attrs:{id:t.gradientId,x1:"0%",y1:"0%",x2:"0%",y2:"100%"}},t._l(t.svgBorderGradient,(function(t){return n("stop",{key:t[0],attrs:{offset:t[0],"stop-color":t[1]}})})),1)],1),t.renderer?n("text",{attrs:{stroke:"url(#"+t.gradientId+")",fill:"url(#"+t.gradientId+")",x:t.renderer.area[0]/2+8,y:t.renderer.area[1]/2+8}},[t._v(" "+t._s(t.details)+" ")]):t._e(),t.shape&&"round"!==t.shape?n("rect",{attrs:{x:"2",y:"2",rx:"roundRect"===t.shape?10:0,ry:"roundRect"===t.shape?10:0,width:t.renderer.area[0]+12,height:t.renderer.area[1]+12,stroke:"url(#"+t.gradientId+")"}}):n("ellipse",{attrs:{cx:t.renderer.area[0]/2+8,cy:t.renderer.area[1]/2+8,rx:t.renderer.area[0]/2+5,ry:t.renderer.area[1]/2+5,stroke:"url(#"+t.gradientId+")"}})]):t._e(),n("canvas",{ref:"water-pond-level",style:"border-radius: "+t.radius+";"})])}),dr=[],pr={name:"DvWaterLevelPond",props:{config:Object,default:function(){return{}}},data:function(){var t=P();return{gradientId:"water-level-pond-".concat(t),defaultConfig:{data:[],shape:"rect",waveNum:3,waveHeight:40,waveOpacity:.4,colors:["#3DE7C9","#00BAFF"],formatter:"{value}%"},mergedConfig:{},renderer:null,svgBorderGradient:[],details:"",waves:[],animation:!1}},computed:{radius:function(){var t=this.mergedConfig.shape;return"round"===t?"50%":"rect"===t?"0":"roundRect"===t?"10px":"0"},shape:function(){var t=this.mergedConfig.shape;return t||"rect"}},watch:{config:function(){var t=this.calcData,e=this.renderer;e.delAllGraph(),this.waves=[],setTimeout(t,0)}},methods:{init:function(){var t=this.initRender,e=this.config,n=this.calcData;t(),e&&n()},initRender:function(){var t=this.$refs;this.renderer=new d.a(t["water-pond-level"])},calcData:function(){var t=this.mergeConfig,e=this.calcSvgBorderGradient,n=this.calcDetails;t(),e(),n();var r=this.addWave,i=this.animationWave;r(),i()},mergeConfig:function(){var t=this.config,e=this.defaultConfig;this.mergedConfig=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t)},calcSvgBorderGradient:function(){var t=this.mergedConfig.colors,e=t.length,n=100/(e-1);this.svgBorderGradient=t.map((function(t,e){return[n*e,t]}))},calcDetails:function(){var t=this.mergedConfig,e=t.data,n=t.formatter;if(e.length){var r=Math.max.apply(Math,Object(o["a"])(e));this.details=n.replace("{value}",r)}else this.details=""},addWave:function(){var t=this.renderer,e=this.getWaveShapes,n=this.getWaveStyle,r=this.drawed,i=e(),o=n();this.waves=i.map((function(e){return t.add({name:"smoothline",animationFrame:300,shape:e,style:o,drawed:r})}))},getWaveShapes:function(){var t=this.mergedConfig,e=this.renderer,n=this.mergeOffset,r=t.waveNum,i=t.waveHeight,o=t.data,a=Object(h["a"])(e.area,2),s=a[0],l=a[1],u=4*r+4,c=s/r/2;return o.map((function(t){var e=new Array(u).fill(0).map((function(e,n){var r=s-c*n,o=(1-t/100)*l,a=n%2===0?o:o-i;return[r,a]}));return e=e.map((function(t){return n(t,[2*c,0])})),{points:e}}))},mergeOffset:function(t,e){var n=Object(h["a"])(t,2),r=n[0],i=n[1],o=Object(h["a"])(e,2),a=o[0],s=o[1];return[r+a,i+s]},getWaveStyle:function(){var t=this.renderer,e=this.mergedConfig,n=t.area[1];return{gradientColor:e.colors,gradientType:"linear",gradientParams:[0,0,0,n],gradientWith:"fill",opacity:e.waveOpacity,translate:[0,0]}},drawed:function(t,e){var n=t.shape.points,r=e.ctx,i=e.area,o=n[0],a=n.slice(-1)[0],s=i[1];r.lineTo(a[0],s),r.lineTo(o[0],s),r.closePath(),r.fill()},animationWave:function(){var t=arguments,e=this;return Object(Mn["a"])(Object(An["a"])().mark((function n(){var r,i,o,a,s;return Object(An["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(r=t.length>0&&void 0!==t[0]?t[0]:1,i=e.waves,o=e.renderer,a=e.animation,!a){n.next=4;break}return n.abrupt("return");case 4:return e.animation=!0,s=o.area[0],i.forEach((function(t){t.attr("style",{translate:[0,0]}),t.animation("style",{translate:[s,0]},!0)})),n.next=9,o.launchAnimation();case 9:if(e.animation=!1,o.graphs.length){n.next=12;break}return n.abrupt("return");case 12:e.animationWave(r+1);case 13:case"end":return n.stop()}}),n)})))()}},mounted:function(){var t=this.init;t()},beforeDestroy:function(){var t=this.renderer;t.delAllGraph(),this.waves=[]}},gr=pr,vr=Object(m["a"])(gr,fr,dr,!1,null,null,null),yr=vr.exports,mr=function(t){t.component(yr.name,yr)}},"6c57":function(t,e,n){var r=n("23e7"),i=n("da84");r({global:!0,forced:i.globalThis!==i},{globalThis:i})},"6c59":function(t,e){t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},"6ca1":function(t,e,n){var r=n("9fbb"),i=n("c901");t.exports=function(t){return r(i(t))}},"6ccd":function(t,e,n){},"6d61":function(t,e,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("e330"),a=n("94ca"),s=n("cb2d"),l=n("f183"),u=n("2266"),c=n("19aa"),h=n("1626"),f=n("7234"),d=n("861d"),p=n("d039"),g=n("1c7e"),v=n("d44e"),y=n("7156");t.exports=function(t,e,n){var m=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),_=m?"set":"add",x=i[t],w=x&&x.prototype,S=x,O={},C=function(t){var e=o(w[t]);s(w,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(b&&!d(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return b&&!d(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(b&&!d(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})},k=a(t,!h(x)||!(b||w.forEach&&!p((function(){(new x).entries().next()}))));if(k)S=n.getConstructor(e,t,m,_),l.enable();else if(a(t,!0)){var A=new S,M=A[_](b?{}:-0,1)!=A,T=p((function(){A.has(1)})),I=g((function(t){new x(t)})),E=!b&&p((function(){var t=new x,e=5;while(e--)t[_](e,e);return!t.has(-0)}));I||(S=e((function(t,e){c(t,w);var n=y(new x,t,S);return f(e)||u(e,n[_],{that:n,AS_ENTRIES:m}),n})),S.prototype=w,w.constructor=S),(T||E)&&(C("delete"),C("has"),m&&C("get")),(E||M)&&C(_),b&&w.clear&&delete w.clear}return O[t]=S,r({global:!0,constructor:!0,forced:S!=x},O),v(S,t),b||n.setStrong(S,t,m),S}},"6d8b":function(t,e,n){"use strict";n.r(e),n.d(e,"guid",(function(){return v})),n.d(e,"logError",(function(){return y})),n.d(e,"clone",(function(){return m})),n.d(e,"merge",(function(){return b})),n.d(e,"mergeAll",(function(){return _})),n.d(e,"extend",(function(){return x})),n.d(e,"defaults",(function(){return w})),n.d(e,"createCanvas",(function(){return S})),n.d(e,"indexOf",(function(){return O})),n.d(e,"inherits",(function(){return C})),n.d(e,"mixin",(function(){return k})),n.d(e,"isArrayLike",(function(){return A})),n.d(e,"each",(function(){return M})),n.d(e,"map",(function(){return T})),n.d(e,"reduce",(function(){return I})),n.d(e,"filter",(function(){return E})),n.d(e,"find",(function(){return P})),n.d(e,"keys",(function(){return j})),n.d(e,"bind",(function(){return D})),n.d(e,"curry",(function(){return R})),n.d(e,"isArray",(function(){return N})),n.d(e,"isFunction",(function(){return B})),n.d(e,"isString",(function(){return F})),n.d(e,"isStringSafe",(function(){return z})),n.d(e,"isNumber",(function(){return V})),n.d(e,"isObject",(function(){return q})),n.d(e,"isBuiltInObject",(function(){return G})),n.d(e,"isTypedArray",(function(){return H})),n.d(e,"isDom",(function(){return W})),n.d(e,"isGradientObject",(function(){return U})),n.d(e,"isImagePatternObject",(function(){return $})),n.d(e,"isRegExp",(function(){return Y})),n.d(e,"eqNaN",(function(){return X})),n.d(e,"retrieve",(function(){return K})),n.d(e,"retrieve2",(function(){return Z})),n.d(e,"retrieve3",(function(){return Q})),n.d(e,"slice",(function(){return J})),n.d(e,"normalizeCssArray",(function(){return tt})),n.d(e,"assert",(function(){return et})),n.d(e,"trim",(function(){return nt})),n.d(e,"setAsPrimitive",(function(){return it})),n.d(e,"isPrimitive",(function(){return ot})),n.d(e,"HashMap",(function(){return at})),n.d(e,"createHashMap",(function(){return st})),n.d(e,"concatArray",(function(){return lt})),n.d(e,"createObject",(function(){return ut})),n.d(e,"disableUserSelect",(function(){return ct})),n.d(e,"hasOwn",(function(){return ht})),n.d(e,"noop",(function(){return ft})),n.d(e,"RADIAN_TO_DEGREE",(function(){return dt}));var r=n("726e"),i=I(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),o=I(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),a=Object.prototype.toString,s=Array.prototype,l=s.forEach,u=s.filter,c=s.slice,h=s.map,f=function(){}.constructor,d=f?f.prototype:null,p="__proto__",g=2311;function v(){return g++}function y(){for(var t=[],e=0;e0},t.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e,r=u.some((function(t){return!!~n.indexOf(t)}));r&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),f=function(t,e){for(var n=0,r=Object.keys(e);n0},t}(),M="undefined"!==typeof WeakMap?new WeakMap:new n,T=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=h.getInstance(),r=new A(e,n,this);M.set(this,r)}return t}();["observe","unobserve","disconnect"].forEach((function(t){T.prototype[t]=function(){var e;return(e=M.get(this))[t].apply(e,arguments)}}));var I=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:T}();e["default"]=I}.call(this,n("c8ba"))},"6eb9":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.lineConfig=void 0;var r={show:!0,name:"",stack:"",smooth:!1,xAxisIndex:0,yAxisIndex:0,data:[],lineStyle:{lineWidth:1},linePoint:{show:!0,radius:2,style:{fill:"#fff",lineWidth:1}},lineArea:{show:!1,gradient:[],style:{opacity:.5}},label:{show:!1,position:"top",offset:[0,-10],formatter:null,style:{fontSize:10}},rLevel:10,animationCurve:"easeOutCubic",animationFrame:50};e.lineConfig=r},"6f4f":function(t,e,n){var r=n("77e9"),i=n("85e7"),o=n("9742"),a=n("5a94")("IE_PROTO"),s=function(){},l="prototype",u=function(){var t,e=n("05f5")("iframe"),r=o.length,i="<",a=">";e.style.display="none",n("9141").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+a+"document.F=Object"+i+"/script"+a),t.close(),u=t.F;while(r--)delete u[l][o[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[l]=r(t),n=new s,s[l]=null,n[a]=t):n=u(),void 0===e?n:i(n,e)}},"6fc2":function(t,e,n){},7037:function(t,e,n){function r(e){return t.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports["default"]=t.exports,r(e)}n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},7058:function(t,e,n){"use strict";t.exports=i;var r=n("3ca2");function i(t){if(!(this instanceof i))return new i(t);r.call(this,t)}n("3fb5")(i,r),i.prototype._transform=function(t,e,n){n(null,t)}},7135:function(t,e,n){(function(e){const r=n("b289"),i=e.allocUnsafe(0),o=e.from([0]),a=n("f0cb"),s=n("966d").nextTick,l=n("34eb")("mqtt-packet:writeToStream"),u=a.cache,c=a.generateNumber,h=a.generateCache,f=a.genBufVariableByteInt,d=a.generate4ByteBuffer;let p=j,g=!0;function v(t,e,n){switch(l("generate called"),e.cork&&(e.cork(),s(y,e)),g&&(g=!1,h()),l("generate: packet.cmd: %s",t.cmd),t.cmd){case"connect":return m(t,e,n);case"connack":return b(t,e,n);case"publish":return _(t,e,n);case"puback":case"pubrec":case"pubrel":case"pubcomp":return x(t,e,n);case"subscribe":return w(t,e,n);case"suback":return S(t,e,n);case"unsubscribe":return O(t,e,n);case"unsuback":return C(t,e,n);case"pingreq":case"pingresp":return k(t,e,n);case"disconnect":return A(t,e,n);case"auth":return M(t,e,n);default:return e.emit("error",new Error("Unknown command")),!1}}function y(t){t.uncork()}function m(t,n,i){const o=t||{},a=o.protocolId||"MQTT";let s=o.protocolVersion||4;const l=o.will;let u=o.clean;const c=o.keepalive||0,h=o.clientId||"",f=o.username,d=o.password,g=o.properties;void 0===u&&(u=!0);let v=0;if(!a||"string"!==typeof a&&!e.isBuffer(a))return n.emit("error",new Error("Invalid protocolId")),!1;if(v+=a.length+2,3!==s&&4!==s&&5!==s)return n.emit("error",new Error("Invalid protocol version")),!1;if(v+=1,("string"===typeof h||e.isBuffer(h))&&(h||s>=4)&&(h||u))v+=e.byteLength(h)+2;else{if(s<4)return n.emit("error",new Error("clientId must be supplied before 3.1.1")),!1;if(1*u===0)return n.emit("error",new Error("clientId must be given if cleanSession set to 0")),!1}if("number"!==typeof c||c<0||c>65535||c%1!==0)return n.emit("error",new Error("Invalid keepalive")),!1;if(v+=2,v+=1,5===s){var y=N(n,g);if(!y)return!1;v+=y.length}if(l){if("object"!==typeof l)return n.emit("error",new Error("Invalid will")),!1;if(!l.topic||"string"!==typeof l.topic)return n.emit("error",new Error("Invalid will topic")),!1;if(v+=e.byteLength(l.topic)+2,v+=2,l.payload){if(!(l.payload.length>=0))return n.emit("error",new Error("Invalid will payload")),!1;"string"===typeof l.payload?v+=e.byteLength(l.payload):v+=l.payload.length}var m={};if(5===s){if(m=N(n,l.properties),!m)return!1;v+=m.length}}let b=!1;if(null!=f){if(!q(f))return n.emit("error",new Error("Invalid username")),!1;b=!0,v+=e.byteLength(f)+2}if(null!=d){if(!b)return n.emit("error",new Error("Username is required to use password")),!1;if(!q(d))return n.emit("error",new Error("Invalid password")),!1;v+=V(d)+2}n.write(r.CONNECT_HEADER),I(n,v),R(n,a),o.bridgeMode&&(s+=128),n.write(131===s?r.VERSION131:132===s?r.VERSION132:4===s?r.VERSION4:5===s?r.VERSION5:r.VERSION3);let _=0;return _|=null!=f?r.USERNAME_MASK:0,_|=null!=d?r.PASSWORD_MASK:0,_|=l&&l.retain?r.WILL_RETAIN_MASK:0,_|=l&&l.qos?l.qos<0&&p(n,d),null!=y&&y.write(),l("publish: payload: %o",f),n.write(f)}function x(t,n,i){const o=i?i.protocolVersion:4,a=t||{},s=a.cmd||"puback",l=a.messageId,u=a.dup&&"pubrel"===s?r.DUP_MASK:0;let c=0;const h=a.reasonCode,f=a.properties;let d=5===o?3:2;if("pubrel"===s&&(c=1),"number"!==typeof l)return n.emit("error",new Error("Invalid messageId")),!1;let g=null;if(5===o&&"object"===typeof f){if(g=B(n,f,i,d),!g)return!1;d+=g.length}return n.write(r.ACKS[s][c][u][0]),I(n,d),p(n,l),5===o&&n.write(e.from([h])),null!==g&&g.write(),!0}function w(t,n,i){l("subscribe: packet: ");const o=i?i.protocolVersion:4,a=t||{},s=a.dup?r.DUP_MASK:0,u=a.messageId,c=a.subscriptions,h=a.properties;let f=0;if("number"!==typeof u)return n.emit("error",new Error("Invalid messageId")),!1;f+=2;let d=null;if(5===o){if(d=N(n,h),!d)return!1;f+=d.length}if("object"!==typeof c||!c.length)return n.emit("error",new Error("Invalid subscriptions")),!1;for(let r=0;r2)return n.emit("error",new Error("Invalid subscriptions - invalid Retain Handling")),!1}f+=e.byteLength(t)+2+1}l("subscribe: writing to stream: %o",r.SUBSCRIBE_HEADER),n.write(r.SUBSCRIBE_HEADER[1][s?1:0][0]),I(n,f),p(n,u),null!==d&&d.write();let g=!0;for(const l of c){const t=l.topic,i=l.qos,a=+l.nl,s=+l.rap,u=l.rh;let c;E(n,t),c=r.SUBSCRIBE_OPTIONS_QOS[i],5===o&&(c|=a?r.SUBSCRIBE_OPTIONS_NL:0,c|=s?r.SUBSCRIBE_OPTIONS_RAP:0,c|=u?r.SUBSCRIBE_OPTIONS_RH[u]:0),g=n.write(e.from([c]))}return g}function S(t,n,i){const o=i?i.protocolVersion:4,a=t||{},s=a.messageId,l=a.granted,u=a.properties;let c=0;if("number"!==typeof s)return n.emit("error",new Error("Invalid messageId")),!1;if(c+=2,"object"!==typeof l||!l.length)return n.emit("error",new Error("Invalid qos vector")),!1;for(let e=0;er.VARBYTEINT_MAX)return t.emit("error",new Error("Invalid variable byte integer: "+e)),!1;let n=T[e];return n||(n=f(e),e<16384&&(T[e]=n)),l("writeVarByteInt: writing to stream: %o",n),t.write(n)}function E(t,n){const r=e.byteLength(n);return p(t,r),l("writeString: %s",n),t.write(n,"utf8")}function P(t,e,n){E(t,e),E(t,n)}function j(t,e){return l("writeNumberCached: number: %d",e),l("writeNumberCached: %o",u[e]),t.write(u[e])}function L(t,e){const n=c(e);return l("writeNumberGenerated: %o",n),t.write(n)}function D(t,e){const n=d(e);return l("write4ByteNumber: %o",n),t.write(n)}function R(t,e){"string"===typeof e?E(t,e):e?(p(t,e.length),t.write(e)):p(t,0)}function N(t,n){if("object"!==typeof n||null!=n.length)return{length:1,write(){z(t,{},0)}};let i=0;function o(n,i){const o=r.propertiesTypes[n];let a=0;switch(o){case"byte":if("boolean"!==typeof i)return t.emit("error",new Error(`Invalid ${n}: ${i}`)),!1;a+=2;break;case"int8":if("number"!==typeof i||i<0||i>255)return t.emit("error",new Error(`Invalid ${n}: ${i}`)),!1;a+=2;break;case"binary":if(i&&null===i)return t.emit("error",new Error(`Invalid ${n}: ${i}`)),!1;a+=1+e.byteLength(i)+2;break;case"int16":if("number"!==typeof i||i<0||i>65535)return t.emit("error",new Error(`Invalid ${n}: ${i}`)),!1;a+=3;break;case"int32":if("number"!==typeof i||i<0||i>4294967295)return t.emit("error",new Error(`Invalid ${n}: ${i}`)),!1;a+=5;break;case"var":if("number"!==typeof i||i<0||i>268435455)return t.emit("error",new Error(`Invalid ${n}: ${i}`)),!1;a+=1+e.byteLength(f(i));break;case"string":if("string"!==typeof i)return t.emit("error",new Error(`Invalid ${n}: ${i}`)),!1;a+=3+e.byteLength(i.toString());break;case"pair":if("object"!==typeof i)return t.emit("error",new Error(`Invalid ${n}: ${i}`)),!1;a+=Object.getOwnPropertyNames(i).reduce((t,n)=>{const r=i[n];return Array.isArray(r)?t+=r.reduce((t,r)=>(t+=3+e.byteLength(n.toString())+2+e.byteLength(r.toString()),t),0):t+=3+e.byteLength(n.toString())+2+e.byteLength(i[n].toString()),t},0);break;default:return t.emit("error",new Error(`Invalid property ${n}: ${i}`)),!1}return a}if(n)for(const e in n){let t=0,r=0;const a=n[e];if(Array.isArray(a))for(let n=0;no){const n=i.shift();if(!n||!e[n])return!1;delete e[n],a=N(t,e)}return a}function F(t,n,i){const o=r.propertiesTypes[n];switch(o){case"byte":t.write(e.from([r.properties[n]])),t.write(e.from([+i]));break;case"int8":t.write(e.from([r.properties[n]])),t.write(e.from([i]));break;case"binary":t.write(e.from([r.properties[n]])),R(t,i);break;case"int16":t.write(e.from([r.properties[n]])),p(t,i);break;case"int32":t.write(e.from([r.properties[n]])),D(t,i);break;case"var":t.write(e.from([r.properties[n]])),I(t,i);break;case"string":t.write(e.from([r.properties[n]])),E(t,i);break;case"pair":Object.getOwnPropertyNames(i).forEach(o=>{const a=i[o];Array.isArray(a)?a.forEach(i=>{t.write(e.from([r.properties[n]])),P(t,o.toString(),i.toString())}):(t.write(e.from([r.properties[n]])),P(t,o.toString(),a.toString()))});break;default:return t.emit("error",new Error(`Invalid property ${n} value: ${i}`)),!1}}function z(t,e,n){I(t,n);for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&null!==e[r]){const n=e[r];if(Array.isArray(n))for(let e=0;e=0)u=l*n.length;else for(var f=0;f1&&void 0!==arguments[1]?arguments[1]:{},n=e.series;n||(n=[]);var r=(0,h.initNeedSeries)(n,u.pieConfig,"pie");r=g(r,t),r=v(r,t),r=m(r,t),r=x(r),r=O(r,t),r=k(r),r=M(r),r=T(r),(0,l.doUpdate)({chart:t,series:r,key:"pie",getGraphConfig:D,getStartGraphConfig:R,beforeChange:N}),(0,l.doUpdate)({chart:t,series:r,key:"pieInsideLabel",getGraphConfig:z}),(0,l.doUpdate)({chart:t,series:r,key:"pieOutsideLabelLine",getGraphConfig:G,getStartGraphConfig:H}),(0,l.doUpdate)({chart:t,series:r,key:"pieOutsideLabel",getGraphConfig:$,getStartGraphConfig:Y})}function g(t,e){var n=e.render.area;return t.forEach((function(t){var e=t.center;e=e.map((function(t,e){return"number"===typeof t?t:parseInt(t)/100*n[e]})),t.center=e})),t}function v(t,e){var n=Math.min.apply(Math,(0,s["default"])(e.render.area))/2;return t.forEach((function(t){var e=t.radius,r=t.data;e=y(e,n),r.forEach((function(t){var r=t.radius;r||(r=e),r=y(r,n),t.radius=r})),t.radius=e})),t}function y(t,e){return t instanceof Array||(t=[0,t]),t=t.map((function(t){return"number"===typeof t?t:parseInt(t)/100*e})),t}function m(t,e){var n=t.filter((function(t){var e=t.roseType;return e}));return n.forEach((function(t){var e=t.radius,n=t.data,r=t.roseSort,i=_(t),o=(0,s["default"])(n);n=b(n),n.forEach((function(t,n){t.radius[1]=e[1]-i*n})),r?n.reverse():t.data=o,t.roseIncrement=i})),t}function b(t){return t.sort((function(t,e){var n=t.value,r=e.value;return n===r?0:n>r?-1:n1&&void 0!==arguments[1]?arguments[1]:0,n=t.toString(),r=n.split("."),i=r[1]||"0",o=i.slice(0,e);return r[1]=o,parseFloat(r.join("."))}function S(t){return(0,h.mulAdd)(t.map((function(t){var e=t.value;return e})))}function O(t){return t.forEach((function(t){var e=t.startAngle,n=t.data;n.forEach((function(t,r){var i=C(n,r),o=(0,a["default"])(i,2),s=o[0],l=o[1];t.startAngle=e+s,t.endAngle=e+l}))})),t}function C(t,e){var n=2*Math.PI,r=t.slice(0,e+1),i=(0,h.mulAdd)(r.map((function(t){var e=t.percent;return e}))),o=t[e].percent,a=i-o;return[n*a/100,n*i/100]}function k(t){return t.forEach((function(t){var e=t.data;e.forEach((function(e){e.insideLabelPos=A(t,e)}))})),t}function A(t,e){var n=t.center,r=e.startAngle,i=e.endAngle,o=(0,a["default"])(e.radius,2),l=o[0],u=o[1],h=(l+u)/2,f=(r+i)/2;return c.getCircleRadianPoint.apply(void 0,(0,s["default"])(n).concat([h,f]))}function M(t){return t.forEach((function(t){var e=t.data,n=t.center;e.forEach((function(t){var e=t.startAngle,r=t.endAngle,i=t.radius,o=(e+r)/2,a=c.getCircleRadianPoint.apply(void 0,(0,s["default"])(n).concat([i[1],o]));t.edgeCenterPos=a}))})),t}function T(t){return t.forEach((function(t){var e=P(t),n=P(t,!1);e=j(e),n=j(n),L(e,t),L(n,t,!1)})),t}function I(t){var e=t.outsideLabel.labelLineBendGap,n=E(t);return"number"!==typeof e&&(e=parseInt(e)/100*n),e+n}function E(t){var e=t.data,n=e.map((function(t){var e=(0,a["default"])(t.radius,2),n=(e[0],e[1]);return n}));return Math.max.apply(Math,(0,s["default"])(n))}function P(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t.data,r=t.center,i=r[0];return n.filter((function(t){var n=t.edgeCenterPos,r=n[0];return e?r<=i:r>i}))}function j(t){return t.sort((function(t,e){var n=(0,a["default"])(t.edgeCenterPos,2),r=(n[0],n[1]),i=(0,a["default"])(e.edgeCenterPos,2),o=(i[0],i[1]);return r>o?1:r2&&void 0!==arguments[2])||arguments[2],r=e.center,i=e.outsideLabel,o=I(e);t.forEach((function(t){var e=t.edgeCenterPos,a=t.startAngle,l=t.endAngle,u=i.labelLineEndLength,f=(a+l)/2,d=c.getCircleRadianPoint.apply(void 0,(0,s["default"])(r).concat([o,f])),p=(0,s["default"])(d);p[0]+=u*(n?-1:1),t.labelLine=[e,d,p],t.labelLineLength=(0,h.getPolylineLength)(t.labelLine),t.align={textAlign:"left",textBaseline:"middle"},n&&(t.align.textAlign="right")}))}function D(t){var e=t.data,n=t.animationCurve,r=t.animationFrame,i=t.rLevel;return e.map((function(e,o){return{name:"pie",index:i,animationCurve:n,animationFrame:r,shape:B(t,o),style:F(t,o)}}))}function R(t){var e=t.animationDelayGap,n=t.startAnimationCurve,r=D(t);return r.forEach((function(t,r){t.animationCurve=n,t.animationDelay=r*e,t.shape.or=t.shape.ir})),r}function N(t){t.animationDelay=0}function B(t,e){var n=t.center,r=t.data,i=r[e],o=i.radius,a=i.startAngle,s=i.endAngle;return{startAngle:a,endAngle:s,ir:o[0],or:o[1],rx:n[0],ry:n[1]}}function F(t,e){var n=t.pieStyle,r=t.data,i=r[e],o=i.color;return(0,h.deepMerge)({fill:o},n)}function z(t){var e=t.animationCurve,n=t.animationFrame,r=t.data,i=t.rLevel;return r.map((function(r,o){return{name:"text",index:i,visible:t.insideLabel.show,animationCurve:e,animationFrame:n,shape:V(t,o),style:q(t,o)}}))}function V(t,e){var n=t.insideLabel,r=t.data,i=n.formatter,a=r[e],s=(0,o["default"])(i),l="";return"string"===s&&(l=i.replace("{name}",a.name),l=l.replace("{percent}",a.percentForLabel),l=l.replace("{value}",a.value)),"function"===s&&(l=i(a)),{content:l,position:a.insideLabelPos}}function q(t,e){var n=t.insideLabel.style;return n}function G(t){var e=t.animationCurve,n=t.animationFrame,r=t.data,i=t.rLevel;return r.map((function(r,o){return{name:"polyline",index:i,visible:t.outsideLabel.show,animationCurve:e,animationFrame:n,shape:W(t,o),style:U(t,o)}}))}function H(t){var e=t.data,n=G(t);return n.forEach((function(t,n){t.style.lineDash=[0,e[n].labelLineLength]})),n}function W(t,e){var n=t.data,r=n[e];return{points:r.labelLine}}function U(t,e){var n=t.outsideLabel,r=t.data,i=n.labelLineStyle,o=r[e].color;return(0,h.deepMerge)({stroke:o,lineDash:[r[e].labelLineLength,0]},i)}function $(t){var e=t.animationCurve,n=t.animationFrame,r=t.data,i=t.rLevel;return r.map((function(r,o){return{name:"text",index:i,visible:t.outsideLabel.show,animationCurve:e,animationFrame:n,shape:X(t,o),style:K(t,o)}}))}function Y(t){var e=t.data,n=$(t);return n.forEach((function(t,n){t.shape.position=e[n].labelLine[1]})),n}function X(t,e){var n=t.outsideLabel,r=t.data,i=n.formatter,a=r[e],s=a.labelLine,l=a.name,u=a.percentForLabel,c=a.value,h=(0,o["default"])(i),f="";return"string"===h&&(f=i.replace("{name}",l),f=f.replace("{percent}",u),f=f.replace("{value}",c)),"function"===h&&(f=i(r[e])),{content:f,position:s[2]}}function K(t,e){var n=t.outsideLabel,r=t.data,i=r[e],o=i.color,a=i.align,s=n.style;return(0,h.deepMerge)(d({fill:o},a),s)}},"733c":function(t,e,n){},7418:function(t,e){e.f=Object.getOwnPropertySymbols},"75d2":function(t,e,n){"use strict";var r=n("e142").codes.ERR_INVALID_OPT_VALUE;function i(t,e,n){return null!=t.highWaterMark?t.highWaterMark:e?t[n]:null}function o(t,e,n,o){var a=i(e,o,n);if(null!=a){if(!isFinite(a)||Math.floor(a)!==a||a<0){var s=o?n:"highWaterMark";throw new r(s,a)}return Math.floor(a)}return t.objectMode?16:16384}t.exports={getHighWaterMark:o}},"77e9":function(t,e,n){var r=n("7a41");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},"782c":function(t,e,n){"use strict";(function(e){var r;function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n("bf09"),a=Symbol("lastResolve"),s=Symbol("lastReject"),l=Symbol("error"),u=Symbol("ended"),c=Symbol("lastPromise"),h=Symbol("handlePromise"),f=Symbol("stream");function d(t,e){return{value:t,done:e}}function p(t){var e=t[a];if(null!==e){var n=t[f].read();null!==n&&(t[c]=null,t[a]=null,t[s]=null,e(d(n,!1)))}}function g(t){e.nextTick(p,t)}function v(t,e){return function(n,r){t.then((function(){e[u]?n(d(void 0,!0)):e[h](n,r)}),r)}}var y=Object.getPrototypeOf((function(){})),m=Object.setPrototypeOf((r={get stream(){return this[f]},next:function(){var t=this,n=this[l];if(null!==n)return Promise.reject(n);if(this[u])return Promise.resolve(d(void 0,!0));if(this[f].destroyed)return new Promise((function(n,r){e.nextTick((function(){t[l]?r(t[l]):n(d(void 0,!0))}))}));var r,i=this[c];if(i)r=new Promise(v(i,this));else{var o=this[f].read();if(null!==o)return Promise.resolve(d(o,!1));r=new Promise(this[h])}return this[c]=r,r}},i(r,Symbol.asyncIterator,(function(){return this})),i(r,"return",(function(){var t=this;return new Promise((function(e,n){t[f].destroy(null,(function(t){t?n(t):e(d(void 0,!0))}))}))})),r),y),b=function(t){var e,n=Object.create(m,(e={},i(e,f,{value:t,writable:!0}),i(e,a,{value:null,writable:!0}),i(e,s,{value:null,writable:!0}),i(e,l,{value:null,writable:!0}),i(e,u,{value:t._readableState.endEmitted,writable:!0}),i(e,h,{value:function(t,e){var r=n[f].read();r?(n[c]=null,n[a]=null,n[s]=null,t(d(r,!1))):(n[a]=t,n[s]=e)},writable:!0}),e));return n[c]=null,o(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=n[s];return null!==e&&(n[c]=null,n[a]=null,n[s]=null,e(t)),void(n[l]=t)}var r=n[a];null!==r&&(n[c]=null,n[a]=null,n[s]=null,r(d(void 0,!0))),n[u]=!0})),t.on("readable",g.bind(null,n)),n};t.exports=b}).call(this,n("4362"))},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"785a":function(t,e,n){var r=n("cc12"),i=r("span").classList,o=i&&i.constructor&&i.constructor.prototype;t.exports=o===Object.prototype?void 0:o},7887:function(t,e,n){"use strict";(function(e){var r;function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n("ddda"),a=Symbol("lastResolve"),s=Symbol("lastReject"),l=Symbol("error"),u=Symbol("ended"),c=Symbol("lastPromise"),h=Symbol("handlePromise"),f=Symbol("stream");function d(t,e){return{value:t,done:e}}function p(t){var e=t[a];if(null!==e){var n=t[f].read();null!==n&&(t[c]=null,t[a]=null,t[s]=null,e(d(n,!1)))}}function g(t){e.nextTick(p,t)}function v(t,e){return function(n,r){t.then((function(){e[u]?n(d(void 0,!0)):e[h](n,r)}),r)}}var y=Object.getPrototypeOf((function(){})),m=Object.setPrototypeOf((r={get stream(){return this[f]},next:function(){var t=this,n=this[l];if(null!==n)return Promise.reject(n);if(this[u])return Promise.resolve(d(void 0,!0));if(this[f].destroyed)return new Promise((function(n,r){e.nextTick((function(){t[l]?r(t[l]):n(d(void 0,!0))}))}));var r,i=this[c];if(i)r=new Promise(v(i,this));else{var o=this[f].read();if(null!==o)return Promise.resolve(d(o,!1));r=new Promise(this[h])}return this[c]=r,r}},i(r,Symbol.asyncIterator,(function(){return this})),i(r,"return",(function(){var t=this;return new Promise((function(e,n){t[f].destroy(null,(function(t){t?n(t):e(d(void 0,!0))}))}))})),r),y),b=function(t){var e,n=Object.create(m,(e={},i(e,f,{value:t,writable:!0}),i(e,a,{value:null,writable:!0}),i(e,s,{value:null,writable:!0}),i(e,l,{value:null,writable:!0}),i(e,u,{value:t._readableState.endEmitted,writable:!0}),i(e,h,{value:function(t,e){var r=n[f].read();r?(n[c]=null,n[a]=null,n[s]=null,t(d(r,!1))):(n[a]=t,n[s]=e)},writable:!0}),e));return n[c]=null,o(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=n[s];return null!==e&&(n[c]=null,n[a]=null,n[s]=null,e(t)),void(n[l]=t)}var r=n[a];null!==r&&(n[c]=null,n[a]=null,n[s]=null,r(d(void 0,!0))),n[u]=!0})),t.on("readable",g.bind(null,n)),n};t.exports=b}).call(this,n("4362"))},"7a29":function(t,e,n){"use strict";(function(t){n.d(e,"p",(function(){return s})),n.d(e,"j",(function(){return u})),n.d(e,"q",(function(){return h})),n.d(e,"e",(function(){return f})),n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return p})),n.d(e,"i",(function(){return g})),n.d(e,"h",(function(){return v})),n.d(e,"l",(function(){return y})),n.d(e,"n",(function(){return b})),n.d(e,"m",(function(){return _})),n.d(e,"o",(function(){return x})),n.d(e,"k",(function(){return w})),n.d(e,"d",(function(){return S})),n.d(e,"f",(function(){return O})),n.d(e,"g",(function(){return C})),n.d(e,"c",(function(){return k}));var r=n("6d8b"),i=n("41ef"),o=n("22d1"),a=Math.round;function s(t){var e;if(t&&"transparent"!==t){if("string"===typeof t&&t.indexOf("rgba")>-1){var n=Object(i["parse"])(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}var l=1e-4;function u(t){return t-l}function c(t){return a(1e3*t)/1e3}function h(t){return a(1e4*t)/1e4}function f(t){return"matrix("+c(t[0])+","+c(t[1])+","+c(t[2])+","+c(t[3])+","+h(t[4])+","+h(t[5])+")"}var d={left:"start",right:"end",center:"middle",middle:"middle"};function p(t,e,n){return"top"===n?t+=e/2:"bottom"===n&&(t-=e/2),t}function g(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function v(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function y(t){return t&&!!t.image}function m(t){return t&&!!t.svgElement}function b(t){return y(t)||m(t)}function _(t){return"linear"===t.type}function x(t){return"radial"===t.type}function w(t){return t&&("linear"===t.type||"radial"===t.type)}function S(t){return"url(#"+t+")"}function O(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function C(t){var e=t.x||0,n=t.y||0,i=(t.rotation||0)*r["RADIAN_TO_DEGREE"],o=Object(r["retrieve2"])(t.scaleX,1),s=Object(r["retrieve2"])(t.scaleY,1),l=t.skewX||0,u=t.skewY||0,c=[];return(e||n)&&c.push("translate("+e+"px,"+n+"px)"),i&&c.push("rotate("+i+")"),1===o&&1===s||c.push("scale("+o+","+s+")"),(l||u)&&c.push("skew("+a(l*r["RADIAN_TO_DEGREE"])+"deg, "+a(u*r["RADIAN_TO_DEGREE"])+"deg)"),c.join(" ")}var k=function(){return o["a"].hasGlobalWindow&&Object(r["isFunction"])(window.btoa)?function(t){return window.btoa(unescape(t))}:"undefined"!==typeof t?function(e){return t.from(e).toString("base64")}:function(t){return null}}()}).call(this,n("1c35").Buffer)},"7a41":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},"7a77":function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},"7aac":function(t,e,n){"use strict";var r=n("c532");t.exports=r.isStandardBrowserEnv()?function(){return{write:function(t,e,n,i,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b0b":function(t,e,n){var r=n("1d80"),i=Object;t.exports=function(t){return i(r(t))}},"7b3e":function(t,e,n){"use strict";var r,i=n("a3de"); /** * Checks if an event is supported in the current execution environment. * * NOTE: This will not work correctly for non-generic events such as `change`, * `reset`, `load`, `error`, and `select`. * * Borrows from Modernizr. * * @param {string} eventNameSuffix Event name, e.g. "click". * @param {?boolean} capture Check if the capture phase is supported. * @return {boolean} True if the event is supported. * @internal * @license Modernizr 3.0.0pre (Custom Build) | MIT */ function o(t,e){if(!i.canUseDOM||e&&!("addEventListener"in document))return!1;var n="on"+t,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"===typeof a[n]}return!o&&r&&"wheel"===t&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),t.exports=o},"7b6a":function(t,e,n){"use strict";t.exports=c;var r=n("e142").codes,i=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,l=n("030c");function u(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=e&&this.push(e),r(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length",f="<",d="prototype",p="script",g=c("IE_PROTO"),v=function(){},y=function(t){return f+p+h+t+f+"/"+p+h},m=function(t){t.write(y("")),t.close();var e=t.parentWindow.Object;return t=null,e},b=function(){var t,e=u("iframe"),n="java"+p+":";return e.style.display="none",l.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(y("document.F=Object")),t.close(),t.F},_=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}_="undefined"!=typeof document?document.domain&&r?m(r):b():m(r);var t=a.length;while(t--)delete _[d][a[t]];return _()};s[g]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(v[d]=i(t),n=new v,v[d]=null,n[g]=t):n=_(),void 0===e?n:o.f(n,e)}},"7cc8":function(t,e,n){},"7db0":function(t,e,n){"use strict";var r=n("23e7"),i=n("b727").find,o=n("44d2"),a="find",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o(a)},"7ec2":function(t,e,n){n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("b636"),n("944a"),n("0c47"),n("23dc"),n("3410"),n("d9e2"),n("14d9"),n("159b"),n("b0c0"),n("131a"),n("1f68"),n("fb6a");var r=n("7037")["default"];function i(){"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=i=function(){return e},t.exports.__esModule=!0,t.exports["default"]=t.exports;var e={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function h(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(E){h=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var i=e&&e.prototype instanceof g?e:g,o=Object.create(i.prototype),s=new M(r||[]);return a(o,"_invoke",{value:O(t,n,s)}),o}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(E){return{type:"throw",arg:E}}}e.wrap=f;var p={};function g(){}function v(){}function y(){}var m={};h(m,l,(function(){return this}));var b=Object.getPrototypeOf,_=b&&b(b(T([])));_&&_!==n&&o.call(_,l)&&(m=_);var x=y.prototype=g.prototype=Object.create(m);function w(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(i,a,s,l){var u=d(t[i],t,a);if("throw"!==u.type){var c=u.arg,h=c.value;return h&&"object"==r(h)&&o.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,s,l)}),(function(t){n("throw",t,s,l)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return n("throw",t,s,l)}))}l(u.arg)}var i;a(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}})}function O(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return I()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=d(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function C(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator["return"]&&(e.method="return",e.arg=void 0,C(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var i=d(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,p;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function T(t){if(t){var e=t[l];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),l=o.call(i,"finallyLoc");if(s&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),A(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;A(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}t.exports=i,t.exports.__esModule=!0,t.exports["default"]=t.exports},"7ed3":function(t,e,n){},"7f0f":function(t,e,n){(function(e){const r=n("7135"),i=n("faa1");function o(t,e){const n=new a;return r(t,n,e),n.concat()}class a extends i{constructor(){super(),this._array=new Array(20),this._i=0}write(t){return this._array[this._i++]=t,!0}concat(){let t=0;const n=new Array(this._array.length),r=this._array;let i,o=0;for(i=0;i1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,u=void 0===l?n:i(l,n);while(u>s)e[s++]=t;return e}},"825a":function(t,e,n){var r=n("861d"),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not an object")}},8261:function(t,e,n){},8311:function(t,e,n){"use strict";const{Buffer:r}=n("1c35"),i=n("035d").Transform,o=n("fb12");let a,s,l;function u(){const t=new i;return t._write=function(t,e,n){a.send({data:t.buffer,success:function(){n()},fail:function(t){n(new Error(t))}})},t._flush=function(t){a.close({success:function(){t()}})},t}function c(t){t.hostname||(t.hostname="localhost"),t.path||(t.path="/"),t.wsOptions||(t.wsOptions={})}function h(t,e){const n="wxs"===t.protocol?"wss":"ws";let r=n+"://"+t.hostname+t.path;return t.port&&80!==t.port&&443!==t.port&&(r=n+"://"+t.hostname+":"+t.port+t.path),"function"===typeof t.transformWsUrl&&(r=t.transformWsUrl(r,t,e)),r}function f(){a.onOpen((function(){l.setReadable(s),l.setWritable(s),l.emit("connect")})),a.onMessage((function(t){let e=t.data;e=e instanceof ArrayBuffer?r.from(e):r.from(e,"utf8"),s.push(e)})),a.onClose((function(){l.end(),l.destroy()})),a.onError((function(t){l.destroy(new Error(t.errMsg))}))}function d(t,e){if(e.hostname=e.hostname||e.host,!e.hostname)throw new Error("Could not determine host. Specify host manually.");const n="MQIsdp"===e.protocolId&&3===e.protocolVersion?"mqttv3.1":"mqtt";c(e);const r=h(e,t);a=wx.connectSocket({url:r,protocols:[n]}),s=u(),l=o.obj(),l._destroy=function(t,e){a.close({success:function(){e&&e(t)}})};const i=l.destroy;return l.destroy=function(){l.destroy=i;const t=this;setTimeout((function(){a.close({fail:function(){t._destroy(new Error)}})}),0)}.bind(l),f(),l}t.exports=d},"83ab":function(t,e,n){var r=n("d039");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83b9":function(t,e,n){"use strict";var r=n("d925"),i=n("e683");t.exports=function(t,e){return t&&!r(e)?i(t,e):e}},8418:function(t,e,n){"use strict";var r=n("a04b"),i=n("9bf2"),o=n("5c6c");t.exports=function(t,e,n){var a=r(e);a in t?i.f(t,a,o(0,n)):t[a]=n}},"841c":function(t,e,n){"use strict";var r=n("c65b"),i=n("d784"),o=n("825a"),a=n("7234"),s=n("1d80"),l=n("129f"),u=n("577e"),c=n("dc4a"),h=n("14c3");i("search",(function(t,e,n){return[function(e){var n=s(this),i=a(e)?void 0:c(e,t);return i?r(i,e,n):new RegExp(e)[t](u(n))},function(t){var r=o(this),i=u(t),a=n(e,r,i);if(a.done)return a.value;var s=r.lastIndex;l(s,0)||(r.lastIndex=0);var c=h(r,i);return l(r.lastIndex,s)||(r.lastIndex=s),null===c?-1:c.index}]}))},"848b":function(t,e,n){"use strict";var r=n("5cce").version,i={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){i[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));var o={};function a(t,e,n){if("object"!==typeof t)throw new TypeError("options must be an object");var r=Object.keys(t),i=r.length;while(i-- >0){var o=r[i],a=e[o];if(a){var s=t[o],l=void 0===s||a(s,o,t);if(!0!==l)throw new TypeError("option "+o+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+o)}}i.transitional=function(t,e,n){function i(t,e){return"[Axios v"+r+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return function(n,r,a){if(!1===t)throw new Error(i(r," has been removed"+(e?" in "+e:"")));return e&&!o[r]&&(o[r]=!0,console.warn(i(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,r,a)}},t.exports={assertOptions:a,validators:i}},"84cd":function(t,e,n){},"852e":function(t,e,n){(function(e,n){t.exports=n()})(0,(function(){"use strict";function t(t){for(var e=1;e"+l+""}},"85c4":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=void 0;var i=r(n("9523")),o=r(n("448a")),a=r(n("970b")),s=r(n("a870")),l=r(n("050c")),u=n("5557"),c=r(n("b06d")),h=r(n("eb53"));function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=t.name;if(e){var n=c["default"].get(e);if(n){var r=new h["default"](n,t);if(r.validator(r))return r.render=this,this.graphs.push(r),this.sortGraphsByIndex(),this.drawAllGraph(),r}else console.warn("No corresponding graph configuration found!")}else console.error("add Missing parameters!")},p.prototype.sortGraphsByIndex=function(){var t=this.graphs;t.sort((function(t,e){return t.index>e.index?1:t.index===e.index?0:t.indexl)r.f(t,n=a[l++],e[n]);return t}},"85f8":function(t,e,n){"use strict";(function(e,r){var i;t.exports=T,T.ReadableState=M;n("faa1").EventEmitter;var o=function(t,e){return t.listeners(e).length},a=n("9ede"),s=n("1c35").Buffer,l=e.Uint8Array||function(){};function u(t){return s.from(t)}function c(t){return s.isBuffer(t)||t instanceof l}var h,f=n(2);h=f&&f.debuglog?f.debuglog("stream"):function(){};var d,p,g,v=n("f688"),y=n("edb3"),m=n("31b5"),b=m.getHighWaterMark,_=n("fbd7").codes,x=_.ERR_INVALID_ARG_TYPE,w=_.ERR_STREAM_PUSH_AFTER_EOF,S=_.ERR_METHOD_NOT_IMPLEMENTED,O=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n("3fb5")(T,a);var C=y.errorOrDestroy,k=["error","close","destroy","pause","resume"];function A(t,e,n){if("function"===typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}function M(t,e,r){i=i||n("be3f"),t=t||{},"boolean"!==typeof r&&(r=e instanceof i),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=b(this,t,"readableHighWaterMark",r),this.buffer=new v,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(d||(d=n("aa22").StringDecoder),this.decoder=new d(t.encoding),this.encoding=t.encoding)}function T(t){if(i=i||n("be3f"),!(this instanceof T))return new T(t);var e=this instanceof i;this._readableState=new M(t,this,e),this.readable=!0,t&&("function"===typeof t.read&&(this._read=t.read),"function"===typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function I(t,e,n,r,i){h("readableAddChunk",e);var o,a=t._readableState;if(null===e)a.reading=!1,R(t,a);else if(i||(o=P(a,e)),o)C(t,o);else if(a.objectMode||e&&e.length>0)if("string"===typeof e||a.objectMode||Object.getPrototypeOf(e)===s.prototype||(e=u(e)),r)a.endEmitted?C(t,new O):E(t,a,e,!0);else if(a.ended)C(t,new w);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?E(t,a,e,!1):F(t,a)):E(t,a,e,!1)}else r||(a.reading=!1,F(t,a));return!a.ended&&(a.length=j?t=j:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function D(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=L(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function R(t,e){if(h("onEofChunk"),!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,e.sync?N(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,B(t)))}}function N(t){var e=t._readableState;h("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(h("emitReadable",e.flowing),e.emittedReadable=!0,r.nextTick(B,t))}function B(t){var e=t._readableState;h("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,U(t)}function F(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(z,t,e))}function z(t,e){while(!e.reading&&!e.ended&&(e.length0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function G(t){h("readable nexttick read 0"),t.read(0)}function H(t,e){e.resumeScheduled||(e.resumeScheduled=!0,r.nextTick(W,t,e))}function W(t,e){h("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),U(t),e.flowing&&!e.reading&&t.read(0)}function U(t){var e=t._readableState;h("flow",e.flowing);while(e.flowing&&null!==t.read());}function $(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n);var n}function Y(t){var e=t._readableState;h("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,r.nextTick(X,e,t))}function X(t,e){if(h("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}function K(t,e){for(var n=0,r=t.length;n=e.highWaterMark:e.length>0)||e.ended))return h("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?Y(this):N(this),null;if(t=D(t,e),0===t&&e.ended)return 0===e.length&&Y(this),null;var r,i=e.needReadable;return h("need readable",i),(0===e.length||e.length-t0?$(t,e):null,null===r?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&Y(this)),null!==r&&this.emit("data",r),r},T.prototype._read=function(t){C(this,new S("_read()"))},T.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,h("pipe count=%d opts=%j",i.pipesCount,e);var a=(!e||!1!==e.end)&&t!==r.stdout&&t!==r.stderr,s=a?u:m;function l(t,e){h("onunpipe"),t===n&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,d())}function u(){h("onend"),t.end()}i.endEmitted?r.nextTick(s):n.once("end",s),t.on("unpipe",l);var c=V(n);t.on("drain",c);var f=!1;function d(){h("cleanup"),t.removeListener("close",v),t.removeListener("finish",y),t.removeListener("drain",c),t.removeListener("error",g),t.removeListener("unpipe",l),n.removeListener("end",u),n.removeListener("end",m),n.removeListener("data",p),f=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||c()}function p(e){h("ondata");var r=t.write(e);h("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==K(i.pipes,t))&&!f&&(h("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function g(e){h("onerror",e),m(),t.removeListener("error",g),0===o(t,"error")&&C(t,e)}function v(){t.removeListener("finish",y),m()}function y(){h("onfinish"),t.removeListener("close",v),m()}function m(){h("unpipe"),n.unpipe(t)}return n.on("data",p),A(t,"error",g),t.once("close",v),t.once("finish",y),t.emit("pipe",n),i.flowing||(h("pipe resume"),n.resume()),t},T.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o0,!1!==i.flowing&&this.resume()):"readable"===t&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,h("on readable",i.length,i.reading),i.length?N(this):i.reading||r.nextTick(G,this))),n},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(t,e){var n=a.prototype.removeListener.call(this,t,e);return"readable"===t&&r.nextTick(q,this),n},T.prototype.removeAllListeners=function(t){var e=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||r.nextTick(q,this),e},T.prototype.resume=function(){var t=this._readableState;return t.flowing||(h("resume"),t.flowing=!t.readableListening,H(this,t)),t.paused=!1,this},T.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},T.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var i in t.on("end",(function(){if(h("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){if(h("wrapped data"),n.decoder&&(i=n.decoder.write(i)),(!n.objectMode||null!==i&&void 0!==i)&&(n.objectMode||i&&i.length)){var o=e.push(i);o||(r=!0,t.pause())}})),t)void 0===this[i]&&"function"===typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";var e=this.head,n=""+e.data;while(e=e.next)n+=t+e.data;return n}},{key:"concat",value:function(t){if(0===this.length)return c.alloc(0);var e=c.allocUnsafe(t>>>0),n=this.head,r=0;while(n)p(n.data,e,r),r+=n.data.length,n=n.next;return e}},{key:"consume",value:function(t,e){var n;return ti.length?i.length:t;if(o===i.length?r+=i:r+=i.slice(0,t),t-=o,0===t){o===i.length?(++n,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(t){var e=c.allocUnsafe(t),n=this.head,r=1;n.data.copy(e),t-=n.data.length;while(n=n.next){var i=n.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),t-=o,0===t){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,e}},{key:d,value:function(t,e){return f(this,i({},e,{depth:0,customInspect:!1}))}}]),t}()},"873c":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.title=u;var i=r(n("278c")),o=n("18ad"),a=n("5557"),s=n("9d85"),l=n("becb");function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];e.title&&(n[0]=(0,l.deepMerge)((0,a.deepClone)(s.titleConfig,!0),e.title)),(0,o.doUpdate)({chart:t,series:n,key:"title",getGraphConfig:c})}function c(t,e){var n=s.titleConfig.animationCurve,r=s.titleConfig.animationFrame,i=s.titleConfig.rLevel,o=h(t,e),a=f(t);return[{name:"text",index:i,visible:t.show,animationCurve:n,animationFrame:r,shape:o,style:a}]}function h(t,e){var n=t.offset,r=t.text,o=e.chart.gridArea,a=o.x,s=o.y,l=o.w,u=(0,i["default"])(n,2),c=u[0],h=u[1];return{content:r,position:[a+l/2+c,s+h]}}function f(t){var e=t.style;return e}},"887c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.titleConfig=void 0;var r={show:!0,text:"",offset:[0,-20],style:{fill:"#333",fontSize:17,fontWeight:"bold",textAlign:"center",textBaseline:"bottom"},rLevel:20,animationCurve:"easeOutCubic",animationFrame:50};e.titleConfig=r},8925:function(t,e,n){var r=n("e330"),i=n("1626"),o=n("c6cd"),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},"8a0d":function(t,e){t.exports={}},"8a1d":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeColor=a;var r=n("9d85"),i=n("5557"),o=n("becb");function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,i.deepClone)(r.colorConfig,!0),a=e.color,s=e.series;if(s||(s=[]),a||(a=[]),e.color=a=(0,o.deepMerge)(n,a),s.length){var l=a.length;s.forEach((function(t,e){t.color||(t.color=a[e%l])}));var u=s.filter((function(t){var e=t.type;return"pie"===e}));u.forEach((function(t){return t.data.forEach((function(t,e){return t.color=a[e%l]}))}));var c=s.filter((function(t){var e=t.type;return"gauge"===e}));c.forEach((function(t){return t.data.forEach((function(t,e){return t.color=a[e%l]}))}));var h=s.filter((function(t){var e=t.type,n=t.independentColor;return"bar"===e&&n}));h.forEach((function(t){t.independentColors||(t.independentColors=a)}))}}},"8aa5":function(t,e,n){"use strict";var r=n("6547").charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},"8b1a":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},"8c4f":function(t,e,n){"use strict"; /*! * vue-router v3.4.9 * (c) 2020 Evan You * @license MIT */function r(t,e){0}function i(t,e){for(var n in e)t[n]=e[n];return t}var o=/[!'()*]/g,a=function(t){return"%"+t.charCodeAt(0).toString(16)},s=/%2C/g,l=function(t){return encodeURIComponent(t).replace(o,a).replace(s,",")};function u(t){try{return decodeURIComponent(t)}catch(e){0}return t}function c(t,e,n){void 0===e&&(e={});var r,i=n||f;try{r=i(t||"")}catch(s){r={}}for(var o in e){var a=e[o];r[o]=Array.isArray(a)?a.map(h):h(a)}return r}var h=function(t){return null==t||"object"===typeof t?t:String(t)};function f(t){var e={};return t=t.trim().replace(/^(\?|#|&)/,""),t?(t.split("&").forEach((function(t){var n=t.replace(/\+/g," ").split("="),r=u(n.shift()),i=n.length>0?u(n.join("=")):null;void 0===e[r]?e[r]=i:Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]})),e):e}function d(t){var e=t?Object.keys(t).map((function(e){var n=t[e];if(void 0===n)return"";if(null===n)return l(e);if(Array.isArray(n)){var r=[];return n.forEach((function(t){void 0!==t&&(null===t?r.push(l(e)):r.push(l(e)+"="+l(t)))})),r.join("&")}return l(e)+"="+l(n)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var p=/\/?$/;function g(t,e,n,r){var i=r&&r.options.stringifyQuery,o=e.query||{};try{o=v(o)}catch(s){}var a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:o,params:e.params||{},fullPath:b(e,i),matched:t?m(t):[]};return n&&(a.redirectedFrom=b(n,i)),Object.freeze(a)}function v(t){if(Array.isArray(t))return t.map(v);if(t&&"object"===typeof t){var e={};for(var n in t)e[n]=v(t[n]);return e}return t}var y=g(null,{path:"/"});function m(t){var e=[];while(t)e.unshift(t),t=t.parent;return e}function b(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var i=t.hash;void 0===i&&(i="");var o=e||d;return(n||"/")+o(r)+i}function _(t,e){return e===y?t===e:!!e&&(t.path&&e.path?t.path.replace(p,"")===e.path.replace(p,"")&&t.hash===e.hash&&x(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&x(t.query,e.query)&&x(t.params,e.params)))}function x(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t).sort(),r=Object.keys(e).sort();return n.length===r.length&&n.every((function(n,i){var o=t[n],a=r[i];if(a!==n)return!1;var s=e[n];return null==o||null==s?o===s:"object"===typeof o&&"object"===typeof s?x(o,s):String(o)===String(s)}))}function w(t,e){return 0===t.path.replace(p,"/").indexOf(e.path.replace(p,"/"))&&(!e.hash||t.hash===e.hash)&&S(t.query,e.query)}function S(t,e){for(var n in e)if(!(n in t))return!1;return!0}function O(t){for(var e=0;e=0&&(e=t.slice(r),t=t.slice(0,r));var i=t.indexOf("?");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{path:t,query:n,hash:e}}function I(t){return t.replace(/\/\//g,"/")}var E=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},P=Z,j=B,L=F,D=q,R=K,N=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function B(t,e){var n,r=[],i=0,o=0,a="",s=e&&e.delimiter||"/";while(null!=(n=N.exec(t))){var l=n[0],u=n[1],c=n.index;if(a+=t.slice(o,c),o=c+l.length,u)a+=u[1];else{var h=t[o],f=n[2],d=n[3],p=n[4],g=n[5],v=n[6],y=n[7];a&&(r.push(a),a="");var m=null!=f&&null!=h&&h!==f,b="+"===v||"*"===v,_="?"===v||"*"===v,x=n[2]||s,w=p||g;r.push({name:d||i++,prefix:f||"",delimiter:x,optional:_,repeat:b,partial:m,asterisk:!!y,pattern:w?H(w):y?".*":"[^"+G(x)+"]+?"})}}return o1||!O.length)return 0===O.length?t():t("span",{},O)}if("a"===this.tag)S.on=x,S.attrs={href:l,"aria-current":m};else{var C=st(this.$slots.default);if(C){C.isStatic=!1;var k=C.data=i({},C.data);for(var A in k.on=k.on||{},k.on){var M=k.on[A];A in x&&(k.on[A]=Array.isArray(M)?M:[M])}for(var T in x)T in k.on?k.on[T].push(x[T]):k.on[T]=b;var I=C.data.attrs=i({},C.data.attrs);I.href=l,I["aria-current"]=m}else S.on=x}return t(this.tag,S,this.$slots.default)}};function at(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&(void 0===t.button||0===t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function st(t){if(t)for(var e,n=0;n-1&&(s.params[f]=n.params[f]);return s.path=J(u.path,s.params,'named route "'+l+'"'),c(u,s,a)}if(s.path){s.params={};for(var d=0;d=t.length?n():t[i]?e(t[i],(function(){r(i+1)})):r(i+1)};r(0)}var Ft={redirected:2,aborted:4,cancelled:8,duplicated:16};function zt(t,e){return Ht(t,e,Ft.redirected,'Redirected when going from "'+t.fullPath+'" to "'+Ut(e)+'" via a navigation guard.')}function Vt(t,e){var n=Ht(t,e,Ft.duplicated,'Avoided redundant navigation to current location: "'+t.fullPath+'".');return n.name="NavigationDuplicated",n}function qt(t,e){return Ht(t,e,Ft.cancelled,'Navigation cancelled from "'+t.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function Gt(t,e){return Ht(t,e,Ft.aborted,'Navigation aborted from "'+t.fullPath+'" to "'+e.fullPath+'" via a navigation guard.')}function Ht(t,e,n,r){var i=new Error(r);return i._isRouter=!0,i.from=t,i.to=e,i.type=n,i}var Wt=["params","query","hash"];function Ut(t){if("string"===typeof t)return t;if("path"in t)return t.path;var e={};return Wt.forEach((function(n){n in t&&(e[n]=t[n])})),JSON.stringify(e,null,2)}function $t(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function Yt(t,e){return $t(t)&&t._isRouter&&(null==e||t.type===e)}function Xt(t){return function(e,n,r){var i=!1,o=0,a=null;Kt(t,(function(t,e,n,s){if("function"===typeof t&&void 0===t.cid){i=!0,o++;var l,u=te((function(e){Jt(e)&&(e=e.default),t.resolved="function"===typeof e?e:et.extend(e),n.components[s]=e,o--,o<=0&&r()})),c=te((function(t){var e="Failed to resolve async component "+s+": "+t;a||(a=$t(t)?t:new Error(e),r(a))}));try{l=t(u,c)}catch(f){c(f)}if(l)if("function"===typeof l.then)l.then(u,c);else{var h=l.component;h&&"function"===typeof h.then&&h.then(u,c)}}})),i||r()}}function Kt(t,e){return Zt(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function Zt(t){return Array.prototype.concat.apply([],t)}var Qt="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function Jt(t){return t.__esModule||Qt&&"Module"===t[Symbol.toStringTag]}function te(t){var e=!1;return function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var ee=function(t,e){this.router=t,this.base=ne(e),this.current=y,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function ne(t){if(!t)if(ut){var e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^https?:\/\/[^\/]+/,"")}else t="/";return"/"!==t.charAt(0)&&(t="/"+t),t.replace(/\/$/,"")}function re(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n0)){var e=this.router,n=e.options.scrollBehavior,r=Dt&&n;r&&this.listeners.push(St());var i=function(){var n=t.current,i=fe(t.base);t.current===y&&i===t._startLocation||t.transitionTo(i,(function(t){r&&Ot(e,t,n,!0)}))};window.addEventListener("popstate",i),this.listeners.push((function(){window.removeEventListener("popstate",i)}))}},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var r=this,i=this,o=i.current;this.transitionTo(t,(function(t){Rt(I(r.base+t.fullPath)),Ot(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,i=this,o=i.current;this.transitionTo(t,(function(t){Nt(I(r.base+t.fullPath)),Ot(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.ensureURL=function(t){if(fe(this.base)!==this.current.fullPath){var e=I(this.base+this.current.fullPath);t?Rt(e):Nt(e)}},e.prototype.getCurrentLocation=function(){return fe(this.base)},e}(ee);function fe(t){var e=window.location.pathname;return t&&0===e.toLowerCase().indexOf(t.toLowerCase())&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var de=function(t){function e(e,n,r){t.call(this,e,n),r&&pe(this.base)||ge()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router,n=e.options.scrollBehavior,r=Dt&&n;r&&this.listeners.push(St());var i=function(){var e=t.current;ge()&&t.transitionTo(ve(),(function(n){r&&Ot(t.router,n,e,!0),Dt||be(n.fullPath)}))},o=Dt?"popstate":"hashchange";window.addEventListener(o,i),this.listeners.push((function(){window.removeEventListener(o,i)}))}},e.prototype.push=function(t,e,n){var r=this,i=this,o=i.current;this.transitionTo(t,(function(t){me(t.fullPath),Ot(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,i=this,o=i.current;this.transitionTo(t,(function(t){be(t.fullPath),Ot(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;ve()!==e&&(t?me(e):be(e))},e.prototype.getCurrentLocation=function(){return ve()},e}(ee);function pe(t){var e=fe(t);if(!/^\/#/.test(e))return window.location.replace(I(t+"/#"+e)),!0}function ge(){var t=ve();return"/"===t.charAt(0)||(be("/"+t),!1)}function ve(){var t=window.location.href,e=t.indexOf("#");return e<0?"":(t=t.slice(e+1),t)}function ye(t){var e=window.location.href,n=e.indexOf("#"),r=n>=0?e.slice(0,n):e;return r+"#"+t}function me(t){Dt?Rt(ye(t)):window.location.hash=t}function be(t){Dt?Nt(ye(t)):window.location.replace(ye(t))}var _e=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){var t=e.current;e.index=n,e.updateRoute(r),e.router.afterHooks.forEach((function(e){e&&e(r,t)}))}),(function(t){Yt(t,Ft.duplicated)&&(e.index=n)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(ee),xe=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=pt(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!Dt&&!1!==t.fallback,this.fallback&&(e="hash"),ut||(e="abstract"),this.mode=e,e){case"history":this.history=new he(this,t.base);break;case"hash":this.history=new de(this,t.base,this.fallback);break;case"abstract":this.history=new _e(this,t.base);break;default:0}},we={currentRoute:{configurable:!0}};function Se(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function Oe(t,e,n){var r="hash"===n?"#"+e:e;return t?I(t+"/"+r):r}xe.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},we.currentRoute.get=function(){return this.history&&this.history.current},xe.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null),e.app||e.history.teardown()})),!this.app){this.app=t;var n=this.history;if(n instanceof he||n instanceof de){var r=function(t){var r=n.current,i=e.options.scrollBehavior,o=Dt&&i;o&&"fullPath"in t&&Ot(e,t,r,!1)},i=function(t){n.setupListeners(),r(t)};n.transitionTo(n.getCurrentLocation(),i,i)}n.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},xe.prototype.beforeEach=function(t){return Se(this.beforeHooks,t)},xe.prototype.beforeResolve=function(t){return Se(this.resolveHooks,t)},xe.prototype.afterEach=function(t){return Se(this.afterHooks,t)},xe.prototype.onReady=function(t,e){this.history.onReady(t,e)},xe.prototype.onError=function(t){this.history.onError(t)},xe.prototype.push=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!==typeof Promise)return new Promise((function(e,n){r.history.push(t,e,n)}));this.history.push(t,e,n)},xe.prototype.replace=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!==typeof Promise)return new Promise((function(e,n){r.history.replace(t,e,n)}));this.history.replace(t,e,n)},xe.prototype.go=function(t){this.history.go(t)},xe.prototype.back=function(){this.go(-1)},xe.prototype.forward=function(){this.go(1)},xe.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},xe.prototype.resolve=function(t,e,n){e=e||this.history.current;var r=tt(t,e,n,this),i=this.match(r,e),o=i.redirectedFrom||i.fullPath,a=this.history.base,s=Oe(a,o,this.mode);return{location:r,route:i,href:s,normalizedTo:r,resolved:i}},xe.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==y&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(xe.prototype,we),xe.install=lt,xe.version="3.4.9",xe.isNavigationFailure=Yt,xe.NavigationFailureType=Ft,ut&&window.Vue&&window.Vue.use(xe),e["a"]=xe},"8df4":function(t,e,n){"use strict";var r=n("7a77");function i(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;this.promise.then((function(t){if(n._listeners){var e,r=n._listeners.length;for(e=0;en},ie64:function(){return b.ie()&&f},firefox:function(){return m()||r},opera:function(){return m()||i},webkit:function(){return m()||o},safari:function(){return b.webkit()},chrome:function(){return m()||a},windows:function(){return m()||u},osx:function(){return m()||l},linux:function(){return m()||c},iphone:function(){return m()||d},mobile:function(){return m()||d||p||h||v},nativeApp:function(){return m()||g},android:function(){return m()||h},ipad:function(){return m()||p}};t.exports=b},"8f47":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.transition=l,e.injectNewCurve=x,e["default"]=void 0;var i=r(n("278c")),o=r(n("7037")),a=r(n("df83")),s="linear";function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:30,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!u.apply(void 0,arguments))return!1;try{var o=c(t),a=h(o,r);return i&&"number"!==typeof n?_(e,n,a):v(e,n,a)}catch(s){return console.warn("Transition parameter may be abnormal!"),[n]}}function u(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:30;if(!t||!1===e||!1===n||!r)return console.error("transition: Missing Parameters!"),!1;if((0,o["default"])(e)!==(0,o["default"])(n))return console.error("transition: Inconsistent Status Types!"),!1;var i=(0,o["default"])(n);return"string"!==i&&"boolean"!==i&&t.length?(a["default"].has(t)||t instanceof Array||console.warn("transition: Transition curve not found, default curve will be used!"),!0):(console.error("transition: Unsupported Data Type of State!"),!1)}function c(t){var e="";return e=a["default"].has(t)?a["default"].get(t):t instanceof Array?t:a["default"].get(s),e}function h(t,e){var n=1/(e-1),r=new Array(e).fill(0).map((function(t,e){return e*n})),i=r.map((function(e){return f(t,e)}));return i}function f(t,e){var n=d(t,e),r=p(n,e);return g(n,r)}function d(t,e){var n=t.length-1,r="",i="";t.findIndex((function(o,a){if(a!==n){r=o,i=t[a+1];var s=r[0][0],l=i[0][0];return e>=s&&e */ e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,c=-7,h=n?i-1:0,f=n?-1:1,d=t[e+h];for(h+=f,o=d&(1<<-c)-1,d>>=-c,c+=s;c>0;o=256*o+t[e+h],h+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+t[e+h],h+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=u}return(d?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?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=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),e+=a+h>=1?f/l:f*Math.pow(2,1-h),e*l>=2&&(a++,l/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(e*l-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+d]=255&s,d+=p,s/=256,i-=8);for(a=a<0;t[n+d]=255&a,d+=p,a/=256,u-=8);t[n+d-p]|=128*g}},"91dd":function(t,e,n){"use strict";function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,n,o){e=e||"&",n=n||"=";var a={};if("string"!==typeof t||0===t.length)return a;var s=/\+/g;t=t.split(e);var l=1e3;o&&"number"===typeof o.maxKeys&&(l=o.maxKeys);var u=t.length;l>0&&u>l&&(u=l);for(var c=0;c=0?(h=g.substr(0,v),f=g.substr(v+1)):(h=g,f=""),d=decodeURIComponent(h),p=decodeURIComponent(f),r(a,d)?i(a[d])?a[d].push(p):a[d]=[a[d],p]:a[d]=p}return a};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},9263:function(t,e,n){"use strict";var r=n("c65b"),i=n("e330"),o=n("577e"),a=n("ad6d"),s=n("9f7f"),l=n("5692"),u=n("7c73"),c=n("69f3").get,h=n("fce3"),f=n("107c"),d=l("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,g=p,v=i("".charAt),y=i("".indexOf),m=i("".replace),b=i("".slice),_=function(){var t=/a/,e=/b*/g;return r(p,t,"a"),r(p,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),x=s.BROKEN_CARET,w=void 0!==/()??/.exec("")[1],S=_||w||x||h||f;S&&(g=function(t){var e,n,i,s,l,h,f,S=this,O=c(S),C=o(t),k=O.raw;if(k)return k.lastIndex=S.lastIndex,e=r(g,k,C),S.lastIndex=k.lastIndex,e;var A=O.groups,M=x&&S.sticky,T=r(a,S),I=S.source,E=0,P=C;if(M&&(T=m(T,"y",""),-1===y(T,"g")&&(T+="g"),P=b(C,S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&"\n"!==v(C,S.lastIndex-1))&&(I="(?: "+I+")",P=" "+P,E++),n=new RegExp("^(?:"+I+")",T)),w&&(n=new RegExp("^"+I+"$(?!\\s)",T)),_&&(i=S.lastIndex),s=r(p,M?n:S,P),M?s?(s.input=b(s.input,E),s[0]=b(s[0],E),s.index=S.lastIndex,S.lastIndex+=s[0].length):S.lastIndex=0:_&&s&&(S.lastIndex=S.global?s.index+s[0].length:i),w&&s&&s.length>1&&r(d,s[0],n,(function(){for(l=1;l1)return t.map((function(t){return d(t)}));var n=t[0];if("string"!==typeof n.blotName&&"string"!==typeof n.attrName)throw new i("Invalid definition");if("abstract"===n.blotName)throw new i("Cannot register abstract class");if(u[n.blotName||n.attrName]=n,"string"===typeof n.keyName)a[n.keyName]=n;else if(null!=n.className&&(s[n.className]=n),null!=n.tagName){Array.isArray(n.tagName)?n.tagName=n.tagName.map((function(t){return t.toUpperCase()})):n.tagName=n.tagName.toUpperCase();var r=Array.isArray(n.tagName)?n.tagName:[n.tagName];r.forEach((function(t){null!=l[t]&&null!=n.className||(l[t]=n)}))}return n}e.DATA_KEY="__blot",function(t){t[t["TYPE"]=3]="TYPE",t[t["LEVEL"]=12]="LEVEL",t[t["ATTRIBUTE"]=13]="ATTRIBUTE",t[t["BLOT"]=14]="BLOT",t[t["INLINE"]=7]="INLINE",t[t["BLOCK"]=11]="BLOCK",t[t["BLOCK_BLOT"]=10]="BLOCK_BLOT",t[t["INLINE_BLOT"]=6]="INLINE_BLOT",t[t["BLOCK_ATTRIBUTE"]=9]="BLOCK_ATTRIBUTE",t[t["INLINE_ATTRIBUTE"]=5]="INLINE_ATTRIBUTE",t[t["ANY"]=15]="ANY"}(o=e.Scope||(e.Scope={})),e.create=c,e.find=h,e.query=f,e.register=d},function(t,e,n){var r=n(51),i=n(11),o=n(3),a=n(20),s=String.fromCharCode(0),l=function(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]};l.prototype.insert=function(t,e){var n={};return 0===t.length?this:(n.insert=t,null!=e&&"object"===typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n))},l.prototype["delete"]=function(t){return t<=0?this:this.push({delete:t})},l.prototype.retain=function(t,e){if(t<=0)return this;var n={retain:t};return null!=e&&"object"===typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n)},l.prototype.push=function(t){var e=this.ops.length,n=this.ops[e-1];if(t=o(!0,{},t),"object"===typeof n){if("number"===typeof t["delete"]&&"number"===typeof n["delete"])return this.ops[e-1]={delete:n["delete"]+t["delete"]},this;if("number"===typeof n["delete"]&&null!=t.insert&&(e-=1,n=this.ops[e-1],"object"!==typeof n))return this.ops.unshift(t),this;if(i(t.attributes,n.attributes)){if("string"===typeof t.insert&&"string"===typeof n.insert)return this.ops[e-1]={insert:n.insert+t.insert},"object"===typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if("number"===typeof t.retain&&"number"===typeof n.retain)return this.ops[e-1]={retain:n.retain+t.retain},"object"===typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this},l.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},l.prototype.filter=function(t){return this.ops.filter(t)},l.prototype.forEach=function(t){this.ops.forEach(t)},l.prototype.map=function(t){return this.ops.map(t)},l.prototype.partition=function(t){var e=[],n=[];return this.forEach((function(r){var i=t(r)?e:n;i.push(r)})),[e,n]},l.prototype.reduce=function(t,e){return this.ops.reduce(t,e)},l.prototype.changeLength=function(){return this.reduce((function(t,e){return e.insert?t+a.length(e):e.delete?t-e.delete:t}),0)},l.prototype.length=function(){return this.reduce((function(t,e){return t+a.length(e)}),0)},l.prototype.slice=function(t,e){t=t||0,"number"!==typeof e&&(e=1/0);var n=[],r=a.iterator(this.ops),i=0;while(i0&&n.next(o.retain-s)}var u=new l(r);while(e.hasNext()||n.hasNext())if("insert"===n.peekType())u.push(n.next());else if("delete"===e.peekType())u.push(e.next());else{var c=Math.min(e.peekLength(),n.peekLength()),h=e.next(c),f=n.next(c);if("number"===typeof f.retain){var d={};"number"===typeof h.retain?d.retain=c:d.insert=h.insert;var p=a.attributes.compose(h.attributes,f.attributes,"number"===typeof h.retain);if(p&&(d.attributes=p),u.push(d),!n.hasNext()&&i(u.ops[u.ops.length-1],d)){var g=new l(e.rest());return u.concat(g).chop()}}else"number"===typeof f["delete"]&&"number"===typeof h.retain&&u.push(f)}return u.chop()},l.prototype.concat=function(t){var e=new l(this.ops.slice());return t.ops.length>0&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e},l.prototype.diff=function(t,e){if(this.ops===t.ops)return new l;var n=[this,t].map((function(e){return e.map((function(n){if(null!=n.insert)return"string"===typeof n.insert?n.insert:s;var r=e===t?"on":"with";throw new Error("diff() called "+r+" non-document")})).join("")})),o=new l,u=r(n[0],n[1],e),c=a.iterator(this.ops),h=a.iterator(t.ops);return u.forEach((function(t){var e=t[1].length;while(e>0){var n=0;switch(t[0]){case r.INSERT:n=Math.min(h.peekLength(),e),o.push(h.next(n));break;case r.DELETE:n=Math.min(e,c.peekLength()),c.next(n),o["delete"](n);break;case r.EQUAL:n=Math.min(c.peekLength(),h.peekLength(),e);var s=c.next(n),l=h.next(n);i(s.insert,l.insert)?o.retain(n,a.attributes.diff(s.attributes,l.attributes)):o.push(l)["delete"](n);break}e-=n}})),o.chop()},l.prototype.eachLine=function(t,e){e=e||"\n";var n=a.iterator(this.ops),r=new l,i=0;while(n.hasNext()){if("insert"!==n.peekType())return;var o=n.peek(),s=a.length(o)-n.peekLength(),u="string"===typeof o.insert?o.insert.indexOf(e,s)-s:-1;if(u<0)r.push(n.next());else if(u>0)r.push(n.next(u));else{if(!1===t(r,n.next(1).attributes||{},i))return;i+=1,r=new l}}r.length()>0&&t(r,{},i)},l.prototype.transform=function(t,e){if(e=!!e,"number"===typeof t)return this.transformPosition(t,e);var n=a.iterator(this.ops),r=a.iterator(t.ops),i=new l;while(n.hasNext()||r.hasNext())if("insert"!==n.peekType()||!e&&"insert"===r.peekType())if("insert"===r.peekType())i.push(r.next());else{var o=Math.min(n.peekLength(),r.peekLength()),s=n.next(o),u=r.next(o);if(s["delete"])continue;u["delete"]?i.push(u):i.retain(o,a.attributes.transform(s.attributes,u.attributes,e))}else i.retain(a.length(n.next()));return i.chop()},l.prototype.transformPosition=function(t,e){e=!!e;var n=a.iterator(this.ops),r=0;while(n.hasNext()&&r<=t){var i=n.peekLength(),o=n.peekType();n.next(),"delete"!==o?("insert"===o&&(r0&&(t1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===t||t>=this.length()-x)){var r=this.clone();return 0===t?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var o=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"split",this).call(this,t,n);return this.cache={},o}}]),e}(c.default.Block);function O(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==t?e:("function"===typeof t.formats&&(e=(0,a.default)(e,t.formats())),null==t.parent||"scroll"==t.parent.blotName||t.parent.statics.scope!==t.statics.scope?e:O(t.parent,e))}S.blotName="block",S.tagName="P",S.defaultChild="break",S.allowedChildren=[p.default,c.default.Embed,v.default],e.bubbleFormats=O,e.BlockEmbed=w,e.default=S},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.overload=e.expandConfig=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if(k(this,t),this.options=T(e,r),this.container=this.options.container,null==this.container)return A.error("Invalid Quill container",e);this.options.debug&&t.debug(this.options.debug);var i=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new h.default,this.scroll=g.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new u.default(this.scroll),this.selection=new y.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(h.default.events.EDITOR_CHANGE,(function(t){t===h.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(h.default.events.SCROLL_UPDATE,(function(t,e){var r=n.selection.lastRange,i=r&&0===r.length?r.index:void 0;I.call(n,(function(){return n.editor.update(null,e,i)}),t)}));var o=this.clipboard.convert("
"+i+"


");this.setContents(o),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return o(t,null,[{key:"debug",value:function(t){!0===t&&(t="log"),x.default.level(t)}},{key:"find",value:function(t){return t.__quill||g.default.find(t)}},{key:"import",value:function(t){return null==this.imports[t]&&A.error("Cannot import "+t+". Are you sure it was registered?"),this.imports[t]}},{key:"register",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!==typeof t){var i=t.attrName||t.blotName;"string"===typeof i?this.register("formats/"+i,t,e):Object.keys(t).forEach((function(r){n.register(r,t[r],e)}))}else null==this.imports[t]||r||A.warn("Overwriting "+t+" with",e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&"abstract"!==e.blotName?g.default.register(e):t.startsWith("modules")&&"function"===typeof e.register&&e.register()}}]),o(t,[{key:"addContainer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof t){var n=t;t=document.createElement("div"),t.classList.add(n)}return this.container.insertBefore(t,e),t}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(t,e,n){var r=this,o=E(t,e,n),a=i(o,4);return t=a[0],e=a[1],n=a[3],I.call(this,(function(){return r.editor.deleteText(t,e)}),n,t,-1*e)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}},{key:"focus",value:function(){var t=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=t,this.scrollIntoView()}},{key:"format",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h.default.sources.API;return I.call(this,(function(){var r=n.getSelection(!0),i=new s.default;if(null==r)return i;if(g.default.query(t,g.default.Scope.BLOCK))i=n.editor.formatLine(r.index,r.length,C({},t,e));else{if(0===r.length)return n.selection.format(t,e),i;i=n.editor.formatText(r.index,r.length,C({},t,e))}return n.setSelection(r,h.default.sources.SILENT),i}),r)}},{key:"formatLine",value:function(t,e,n,r,o){var a=this,s=void 0,l=E(t,e,n,r,o),u=i(l,4);return t=u[0],e=u[1],s=u[2],o=u[3],I.call(this,(function(){return a.editor.formatLine(t,e,s)}),o,t,0)}},{key:"formatText",value:function(t,e,n,r,o){var a=this,s=void 0,l=E(t,e,n,r,o),u=i(l,4);return t=u[0],e=u[1],s=u[2],o=u[3],I.call(this,(function(){return a.editor.formatText(t,e,s)}),o,t,0)}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"===typeof t?this.selection.getBounds(t,e):this.selection.getBounds(t.index,t.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=E(t,e),r=i(n,2);return t=r[0],e=r[1],this.editor.getContents(t,e)}},{key:"getFormat",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof t?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}},{key:"getIndex",value:function(t){return t.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(t){return this.scroll.leaf(t)}},{key:"getLine",value:function(t){return this.scroll.line(t)}},{key:"getLines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}},{key:"getModule",value:function(t){return this.theme.modules[t]}},{key:"getSelection",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=E(t,e),r=i(n,2);return t=r[0],e=r[1],this.editor.getText(t,e)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(e,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.sources.API;return I.call(this,(function(){return i.editor.insertEmbed(e,n,r)}),o,e)}},{key:"insertText",value:function(t,e,n,r,o){var a=this,s=void 0,l=E(t,0,n,r,o),u=i(l,4);return t=u[0],s=u[2],o=u[3],I.call(this,(function(){return a.editor.insertText(t,e,s)}),o,t,e.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(t,e,n){this.clipboard.dangerouslyPasteHTML(t,e,n)}},{key:"removeFormat",value:function(t,e,n){var r=this,o=E(t,e,n),a=i(o,4);return t=a[0],e=a[1],n=a[3],I.call(this,(function(){return r.editor.removeFormat(t,e)}),n,t)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.default.sources.API;return I.call(this,(function(){t=new s.default(t);var n=e.getLength(),r=e.editor.deleteText(0,n),i=e.editor.applyDelta(t),o=i.ops[i.ops.length-1];null!=o&&"string"===typeof o.insert&&"\n"===o.insert[o.insert.length-1]&&(e.editor.deleteText(e.getLength()-1,1),i.delete(1));var a=r.compose(i);return a}),n)}},{key:"setSelection",value:function(e,n,r){if(null==e)this.selection.setRange(null,n||t.sources.API);else{var o=E(e,n,r),a=i(o,4);e=a[0],n=a[1],r=a[3],this.selection.setRange(new v.Range(e,n),r),r!==h.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.default.sources.API,n=(new s.default).insert(t);return this.setContents(n,e)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h.default.sources.USER,e=this.scroll.update(t);return this.selection.update(t),e}},{key:"updateContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.default.sources.API;return I.call(this,(function(){return t=new s.default(t),e.editor.applyDelta(t,n)}),n,!0)}}]),t}();function T(t,e){if(e=(0,b.default)(!0,{container:t,modules:{clipboard:!0,keyboard:!0,history:!0}},e),e.theme&&e.theme!==M.DEFAULTS.theme){if(e.theme=M.import("themes/"+e.theme),null==e.theme)throw new Error("Invalid theme "+e.theme+". Did you register it?")}else e.theme=S.default;var n=(0,b.default)(!0,{},e.theme.DEFAULTS);[n,e].forEach((function(t){t.modules=t.modules||{},Object.keys(t.modules).forEach((function(e){!0===t.modules[e]&&(t.modules[e]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(e.modules)),i=r.reduce((function(t,e){var n=M.import("modules/"+e);return null==n?A.error("Cannot load "+e+" module. Are you sure you registered it?"):t[e]=n.DEFAULTS||{},t}),{});return null!=e.modules&&e.modules.toolbar&&e.modules.toolbar.constructor!==Object&&(e.modules.toolbar={container:e.modules.toolbar}),e=(0,b.default)(!0,{},M.DEFAULTS,{modules:i},n,e),["bounds","container","scrollingContainer"].forEach((function(t){"string"===typeof e[t]&&(e[t]=document.querySelector(e[t]))})),e.modules=Object.keys(e.modules).reduce((function(t,n){return e.modules[n]&&(t[n]=e.modules[n]),t}),{}),e}function I(t,e,n,r){if(this.options.strict&&!this.isEnabled()&&e===h.default.sources.USER)return new s.default;var i=null==n?null:this.getSelection(),o=this.editor.delta,a=t();if(null!=i&&(!0===n&&(n=i.index),null==r?i=P(i,a,e):0!==r&&(i=P(i,n,r,e)),this.setSelection(i,h.default.sources.SILENT)),a.length()>0){var l,u,c=[h.default.events.TEXT_CHANGE,a,o,e];if((l=this.emitter).emit.apply(l,[h.default.events.EDITOR_CHANGE].concat(c)),e!==h.default.sources.SILENT)(u=this.emitter).emit.apply(u,c)}return a}function E(t,e,n,i,o){var a={};return"number"===typeof t.index&&"number"===typeof t.length?"number"!==typeof e?(o=i,i=n,n=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!==typeof e&&(o=i,i=n,n=e,e=0),"object"===("undefined"===typeof n?"undefined":r(n))?(a=n,o=i):"string"===typeof n&&(null!=i?a[n]=i:o=n),o=o||h.default.sources.API,[t,e,a,o]}function P(t,e,n,r){if(null==t)return null;var o=void 0,a=void 0;if(e instanceof s.default){var l=[t.index,t.index+t.length].map((function(t){return e.transformPosition(t,r!==h.default.sources.USER)})),u=i(l,2);o=u[0],a=u[1]}else{var c=[t.index,t.index+t.length].map((function(t){return t=0?t+n:Math.max(e,t+n)})),f=i(c,2);o=f[0],a=f[1]}return new v.Range(o,a-o)}M.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},M.events=h.default.events,M.sources=h.default.sources,M.version="1.3.7",M.imports={delta:s.default,parchment:g.default,"core/module":d.default,"core/theme":S.default},e.expandConfig=T,e.overload=E,e.default=M},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(t,n){var r=e.order.indexOf(t),i=e.order.indexOf(n);return r>=0||i>=0?r-i:t===n?0:t1?e-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{};r(this,t),this.quill=e,this.options=n};i.DEFAULTS={},e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=["error","warn","log","info"],i="warn";function o(t){if(r.indexOf(t)<=r.indexOf(i)){for(var e,n=arguments.length,o=Array(n>1?n-1:0),a=1;a0&&"number"!==typeof t[0]))}function u(t,e,n){var u,c;if(s(t)||s(e))return!1;if(t.prototype!==e.prototype)return!1;if(o(t))return!!o(e)&&(t=r.call(t),e=r.call(e),a(t,e,n));if(l(t)){if(!l(e))return!1;if(t.length!==e.length)return!1;for(u=0;u=0;u--)if(h[u]!=f[u])return!1;for(u=h.length-1;u>=0;u--)if(c=h[u],!a(t[c],e[c],n))return!1;return typeof t===typeof e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(){function t(t,e,n){void 0===n&&(n={}),this.attrName=t,this.keyName=e;var i=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|i:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return t.keys=function(t){return[].map.call(t.attributes,(function(t){return t.name}))},t.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.setAttribute(this.keyName,e),!0)},t.prototype.canAdd=function(t,e){var n=r.query(t,r.Scope.BLOT&(this.scope|r.Scope.TYPE));return null!=n&&(null==this.whitelist||("string"===typeof e?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1))},t.prototype.remove=function(t){t.removeAttribute(this.keyName)},t.prototype.value=function(t){var e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""},t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Code=void 0;var r=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function t(t,e){for(var n=0;n=t+n)){var a=this.newlineIndex(t,!0)+1,s=o-a+1,l=this.isolate(a,s),c=l.next;l.format(r,i),c instanceof e&&c.formatAt(0,t-a+n-s,r,i)}}}},{key:"insertAt",value:function(t,e,n){if(null==n){var i=this.descendant(g.default,t),o=r(i,2),a=o[0],s=o[1];a.insertAt(s,e)}}},{key:"length",value:function(){var t=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?t:t+1}},{key:"newlineIndex",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this.domNode.textContent.slice(0,t).lastIndexOf("\n");var n=this.domNode.textContent.slice(t).indexOf("\n");return n>-1?t+n:-1}},{key:"optimize",value:function(t){this.domNode.textContent.endsWith("\n")||this.appendChild(u.default.create("text","\n")),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(t),n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(t){var e=u.default.find(t);null==e?t.parentNode.removeChild(t):e instanceof u.default.Embed?e.remove():e.unwrap()}))}}],[{key:"create",value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),e}(h.default);x.blotName="code-block",x.tagName="PRE",x.TAB=" ",e.Code=_,e.default=x},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function t(t,e){for(var n=0;n=o&&!c.endsWith("\n")&&(n=!0),e.scroll.insertAt(t,c);var f=e.scroll.line(t),d=i(f,2),p=d[0],g=d[1],m=(0,C.default)({},(0,v.bubbleFormats)(p));if(p instanceof y.default){var b=p.descendant(h.default.Leaf,g),_=i(b,1),x=_[0];m=(0,C.default)(m,(0,v.bubbleFormats)(x))}l=u.default.attributes.diff(m,l)||{}}else if("object"===r(a.insert)){var w=Object.keys(a.insert)[0];if(null==w)return t;e.scroll.insertAt(t,w,a.insert[w])}o+=s}return Object.keys(l).forEach((function(n){e.scroll.formatAt(t,s,n,l[n])})),t+s}),0),t.reduce((function(t,n){return"number"===typeof n.delete?(e.scroll.deleteAt(t,n.delete),t):t+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(t)}},{key:"deleteText",value:function(t,e){return this.scroll.deleteAt(t,e),this.update((new s.default).retain(t).delete(e))}},{key:"formatLine",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(i){if(null==n.scroll.whitelist||n.scroll.whitelist[i]){var o=n.scroll.lines(t,Math.max(e,1)),a=e;o.forEach((function(e){var o=e.length();if(e instanceof d.default){var s=t-e.offset(n.scroll),l=e.newlineIndex(s+a)-s+1;e.formatAt(s,l,i,r[i])}else e.format(i,r[i]);a-=o}))}})),this.scroll.optimize(),this.update((new s.default).retain(t).retain(e,(0,x.default)(r)))}},{key:"formatText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(i){n.scroll.formatAt(t,e,i,r[i])})),this.update((new s.default).retain(t).retain(e,(0,x.default)(r)))}},{key:"getContents",value:function(t,e){return this.delta.slice(t,t+e)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(t,e){return t.concat(e.delta())}),new s.default)}},{key:"getFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===e?this.scroll.path(t).forEach((function(t){var e=i(t,1),o=e[0];o instanceof y.default?n.push(o):o instanceof h.default.Leaf&&r.push(o)})):(n=this.scroll.lines(t,e),r=this.scroll.descendants(h.default.Leaf,t,e));var o=[n,r].map((function(t){if(0===t.length)return{};var e=(0,v.bubbleFormats)(t.shift());while(Object.keys(e).length>0){var n=t.shift();if(null==n)return e;e=E((0,v.bubbleFormats)(n),e)}return e}));return C.default.apply(C.default,o)}},{key:"getText",value:function(t,e){return this.getContents(t,e).filter((function(t){return"string"===typeof t.insert})).map((function(t){return t.insert})).join("")}},{key:"insertEmbed",value:function(t,e,n){return this.scroll.insertAt(t,e,n),this.update((new s.default).retain(t).insert(A({},e,n)))}},{key:"insertText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,e),Object.keys(r).forEach((function(i){n.scroll.formatAt(t,e.length,i,r[i])})),this.update((new s.default).retain(t).insert(e,(0,x.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var t=this.scroll.children.head;return t.statics.blotName===y.default.blotName&&(!(t.children.length>1)&&t.children.head instanceof b.default)}},{key:"removeFormat",value:function(t,e){var n=this.getText(t,e),r=this.scroll.line(t+e),o=i(r,2),a=o[0],l=o[1],u=0,c=new s.default;null!=a&&(u=a instanceof d.default?a.newlineIndex(l)-l+1:a.length()-l,c=a.delta().slice(l,l+u-1).insert("\n"));var h=this.getContents(t,e+u),f=h.diff((new s.default).insert(n).concat(c)),p=(new s.default).retain(t).concat(f);return this.applyDelta(p)}},{key:"update",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(T)&&h.default.find(e[0].target)){var i=h.default.find(e[0].target),o=(0,v.bubbleFormats)(i),a=i.offset(this.scroll),l=e[0].oldValue.replace(g.default.CONTENTS,""),u=(new s.default).insert(l),c=(new s.default).insert(i.value()),f=(new s.default).retain(a).concat(u.diff(c,n));t=f.reduce((function(t,e){return e.insert?t.insert(e.insert,o):t.push(e)}),new s.default),this.delta=r.compose(t)}else this.delta=this.getDelta(),t&&(0,S.default)(r.compose(t),this.delta)||(t=r.diff(this.delta,n));return t}}]),t}();function E(t,e){return Object.keys(e).reduce((function(n,r){return null==t[r]||(e[r]===t[r]?n[r]=e[r]:Array.isArray(e[r])?e[r].indexOf(t[r])<0&&(n[r]=e[r].concat([t[r]])):n[r]=[e[r],t[r]]),n}),{})}function P(t){return t.reduce((function(t,e){if(1===e.insert){var n=(0,x.default)(e.attributes);return delete n["image"],t.insert({image:e.attributes.image},n)}if(null==e.attributes||!0!==e.attributes.list&&!0!==e.attributes.bullet||(e=(0,x.default)(e),e.attributes.list?e.attributes.list="ordered":(e.attributes.list="bullet",delete e.attributes.bullet)),"string"===typeof e.insert){var r=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.insert(r,e.attributes)}return t.push(e)}),new s.default)}e.default=I},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Range=void 0;var r=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0;y(this,t),this.index=e,this.length=n},_=function(){function t(e,n){var r=this;y(this,t),this.emitter=n,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=a.default.create("cursor",this),this.lastRange=this.savedRange=new b(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,f.default.sources.USER),1)})),this.emitter.on(f.default.events.EDITOR_CHANGE,(function(t,e){t===f.default.events.TEXT_CHANGE&&e.length()>0&&r.update(f.default.sources.SILENT)})),this.emitter.on(f.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var t=r.getNativeRange();null!=t&&t.start.node!==r.cursor.textNode&&r.emitter.once(f.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset)}catch(e){}}))}})),this.emitter.on(f.default.events.SCROLL_OPTIMIZE,(function(t,e){if(e.range){var n=e.range,i=n.startNode,o=n.startOffset,a=n.endNode,s=n.endOffset;r.setNativeRange(i,o,a,s)}})),this.update(f.default.sources.SILENT)}return i(t,[{key:"handleComposition",value:function(){var t=this;this.root.addEventListener("compositionstart",(function(){t.composing=!0})),this.root.addEventListener("compositionend",(function(){if(t.composing=!1,t.cursor.parent){var e=t.cursor.restore();if(!e)return;setTimeout((function(){t.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var t=this;this.emitter.listenDOM("mousedown",document.body,(function(){t.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){t.mouseDown=!1,t.update(f.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(t,e){if(null==this.scroll.whitelist||this.scroll.whitelist[t]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!a.default.query(t,a.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=a.default.find(n.start.node,!1);if(null==r)return;if(r instanceof a.default.Leaf){var i=r.split(n.start.offset);r.parent.insertBefore(this.cursor,i)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();t=Math.min(t,n-1),e=Math.min(t+e,n-1)-t;var i=void 0,o=this.scroll.leaf(t),a=r(o,2),s=a[0],l=a[1];if(null==s)return null;var u=s.position(l,!0),c=r(u,2);i=c[0],l=c[1];var h=document.createRange();if(e>0){h.setStart(i,l);var f=this.scroll.leaf(t+e),d=r(f,2);if(s=d[0],l=d[1],null==s)return null;var p=s.position(l,!0),g=r(p,2);return i=g[0],l=g[1],h.setEnd(i,l),h.getBoundingClientRect()}var v="left",y=void 0;return i instanceof Text?(l0&&(v="right")),{bottom:y.top+y.height,height:y.height,left:y[v],right:y[v],top:y.top,width:0}}},{key:"getNativeRange",value:function(){var t=document.getSelection();if(null==t||t.rangeCount<=0)return null;var e=t.getRangeAt(0);if(null==e)return null;var n=this.normalizeNative(e);return m.info("getNativeRange",n),n}},{key:"getRange",value:function(){var t=this.getNativeRange();if(null==t)return[null,null];var e=this.normalizedToRange(t);return[e,t]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(t){var e=this,n=[[t.start.node,t.start.offset]];t.native.collapsed||n.push([t.end.node,t.end.offset]);var i=n.map((function(t){var n=r(t,2),i=n[0],o=n[1],s=a.default.find(i,!0),l=s.offset(e.scroll);return 0===o?l:s instanceof a.default.Container?l+s.length():l+s.index(i,o)})),o=Math.min(Math.max.apply(Math,v(i)),this.scroll.length()-1),s=Math.min.apply(Math,[o].concat(v(i)));return new b(s,o-s)}},{key:"normalizeNative",value:function(t){if(!x(this.root,t.startContainer)||!t.collapsed&&!x(this.root,t.endContainer))return null;var e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach((function(t){var e=t.node,n=t.offset;while(!(e instanceof Text)&&e.childNodes.length>0)if(e.childNodes.length>n)e=e.childNodes[n],n=0;else{if(e.childNodes.length!==n)break;e=e.lastChild,n=e instanceof Text?e.data.length:e.childNodes.length+1}t.node=e,t.offset=n})),e}},{key:"rangeToNative",value:function(t){var e=this,n=t.collapsed?[t.index]:[t.index,t.index+t.length],i=[],o=this.scroll.length();return n.forEach((function(t,n){t=Math.min(o-1,t);var a=void 0,s=e.scroll.leaf(t),l=r(s,2),u=l[0],c=l[1],h=u.position(c,0!==n),f=r(h,2);a=f[0],c=f[1],i.push(a,c)})),i.length<2&&(i=i.concat(i)),i}},{key:"scrollIntoView",value:function(t){var e=this.lastRange;if(null!=e){var n=this.getBounds(e.index,e.length);if(null!=n){var i=this.scroll.length()-1,o=this.scroll.line(Math.min(e.index,i)),a=r(o,1),s=a[0],l=s;if(e.length>0){var u=this.scroll.line(Math.min(e.index+e.length,i)),c=r(u,1);l=c[0]}if(null!=s&&null!=l){var h=t.getBoundingClientRect();n.toph.bottom&&(t.scrollTop+=n.bottom-h.bottom)}}}}},{key:"setNativeRange",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(m.info("setNativeRange",t,e,n,r),null==t||null!=this.root.parentNode&&null!=t.parentNode&&null!=n.parentNode){var o=document.getSelection();if(null!=o)if(null!=t){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||i||t!==a.startContainer||e!==a.startOffset||n!==a.endContainer||r!==a.endOffset){"BR"==t.tagName&&(e=[].indexOf.call(t.parentNode.childNodes,t),t=t.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var s=document.createRange();s.setStart(t,e),s.setEnd(n,r),o.removeAllRanges(),o.addRange(s)}}else o.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.default.sources.API;if("string"===typeof e&&(n=e,e=!1),m.info("setRange",t),null!=t){var r=this.rangeToNative(t);this.setNativeRange.apply(this,v(r).concat([e]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.default.sources.USER,e=this.lastRange,n=this.getRange(),i=r(n,2),o=i[0],a=i[1];if(this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,c.default)(e,this.lastRange)){var s;!this.composing&&null!=a&&a.native.collapsed&&a.start.node!==this.cursor.textNode&&this.cursor.restore();var u,h=[f.default.events.SELECTION_CHANGE,(0,l.default)(this.lastRange),(0,l.default)(e),t];if((s=this.emitter).emit.apply(s,[f.default.events.EDITOR_CHANGE].concat(h)),t!==f.default.sources.SILENT)(u=this.emitter).emit.apply(u,h)}}}]),t}();function x(t,e){try{e.parentNode}catch(n){return!1}return e instanceof Text&&(e=e.parentNode),t.contains(e)}e.Range=b,e.default=_},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n0&&(n+=1),[this.parent.domNode,n]},e.prototype.value=function(){var t;return t={},t[this.statics.blotName]=this.statics.value(this.domNode)||!0,t},e.scope=o.Scope.INLINE_BLOT,e}(i.default);e.default=a},function(t,e,n){var r=n(11),i=n(3),o={attributes:{compose:function(t,e,n){"object"!==typeof t&&(t={}),"object"!==typeof e&&(e={});var r=i(!0,{},e);for(var o in n||(r=Object.keys(r).reduce((function(t,e){return null!=r[e]&&(t[e]=r[e]),t}),{})),t)void 0!==t[o]&&void 0===e[o]&&(r[o]=t[o]);return Object.keys(r).length>0?r:void 0},diff:function(t,e){"object"!==typeof t&&(t={}),"object"!==typeof e&&(e={});var n=Object.keys(t).concat(Object.keys(e)).reduce((function(n,i){return r(t[i],e[i])||(n[i]=void 0===e[i]?null:e[i]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(t,e,n){if("object"!==typeof t)return e;if("object"===typeof e){if(!n)return e;var r=Object.keys(e).reduce((function(n,r){return void 0===t[r]&&(n[r]=e[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(t){return new a(t)},length:function(t){return"number"===typeof t["delete"]?t["delete"]:"number"===typeof t.retain?t.retain:"string"===typeof t.insert?t.insert.length:1}};function a(t){this.ops=t,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(t){t||(t=1/0);var e=this.ops[this.index];if(e){var n=this.offset,r=o.length(e);if(t>=r-n?(t=r-n,this.index+=1,this.offset=0):this.offset+=t,"number"===typeof e["delete"])return{delete:t};var i={};return e.attributes&&(i.attributes=e.attributes),"number"===typeof e.retain?i.retain=t:"string"===typeof e.insert?i.insert=e.insert.substr(n,t):i.insert=e.insert,i}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?o.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"===typeof this.ops[this.index]["delete"]?"delete":"number"===typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var t=this.offset,e=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=t,this.index=e,[n].concat(r)}return[]},t.exports=o},function(t,n){var r=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}var n,r,i;try{n=Map}catch(h){n=function(){}}try{r=Set}catch(h){r=function(){}}try{i=Promise}catch(h){i=function(){}}function o(a,s,l,u,h){"object"===typeof s&&(l=s.depth,u=s.prototype,h=s.includeNonEnumerable,s=s.circular);var f=[],d=[],p="undefined"!=typeof e;function g(a,l){if(null===a)return null;if(0===l)return a;var v,y;if("object"!=typeof a)return a;if(t(a,n))v=new n;else if(t(a,r))v=new r;else if(t(a,i))v=new i((function(t,e){a.then((function(e){t(g(e,l-1))}),(function(t){e(g(t,l-1))}))}));else if(o.__isArray(a))v=[];else if(o.__isRegExp(a))v=new RegExp(a.source,c(a)),a.lastIndex&&(v.lastIndex=a.lastIndex);else if(o.__isDate(a))v=new Date(a.getTime());else{if(p&&e.isBuffer(a))return v=e.allocUnsafe?e.allocUnsafe(a.length):new e(a.length),a.copy(v),v;t(a,Error)?v=Object.create(a):"undefined"==typeof u?(y=Object.getPrototypeOf(a),v=Object.create(y)):(v=Object.create(u),y=u)}if(s){var m=f.indexOf(a);if(-1!=m)return d[m];f.push(a),d.push(v)}for(var b in t(a,n)&&a.forEach((function(t,e){var n=g(e,l-1),r=g(t,l-1);v.set(n,r)})),t(a,r)&&a.forEach((function(t){var e=g(t,l-1);v.add(e)})),a){var _;y&&(_=Object.getOwnPropertyDescriptor(y,b)),_&&null==_.set||(v[b]=g(a[b],l-1))}if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(a);for(b=0;b0){if(s instanceof c.BlockEmbed||f instanceof c.BlockEmbed)return void this.optimize();if(s instanceof g.default){var p=s.newlineIndex(s.length(),!0);if(p>-1&&(s=s.split(p+1),s===f))return void this.optimize()}else if(f instanceof g.default){var v=f.newlineIndex(0);v>-1&&f.split(v+1)}var y=f.children.head instanceof d.default?null:f.children.head;s.moveChildren(f,y),s.remove()}this.optimize()}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",t)}},{key:"formatAt",value:function(t,n,r,i){(null==this.whitelist||this.whitelist[r])&&(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,i),this.optimize())}},{key:"insertAt",value:function(t,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(t>=this.length())if(null==r||null==s.default.query(n,s.default.Scope.BLOCK)){var i=s.default.create(this.statics.defaultChild);this.appendChild(i),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),i.insertAt(0,n,r)}else{var a=s.default.create(n,r);this.appendChild(a)}else o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);this.optimize()}}},{key:"insertBefore",value:function(t,n){if(t.statics.scope===s.default.Scope.INLINE_BLOT){var r=s.default.create(this.statics.defaultChild);r.appendChild(t),t=r}o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n)}},{key:"leaf",value:function(t){return this.path(t).pop()||[null,-1]}},{key:"line",value:function(t){return t===this.length()?this.line(t-1):this.descendant(w,t)}},{key:"lines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function t(e,n,r){var i=[],o=r;return e.children.forEachAt(n,r,(function(e,n,r){w(e)?i.push(e):e instanceof s.default.Container&&(i=i.concat(t(e,n,o))),o-=r})),i};return n(this,t,e)}},{key:"optimize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t,n),t.length>0&&this.emitter.emit(u.default.events.SCROLL_OPTIMIZE,t,n))}},{key:"path",value:function(t){return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t).slice(1)}},{key:"update",value:function(t){if(!0!==this.batch){var n=u.default.sources.USER;"string"===typeof t&&(n=t),Array.isArray(t)||(t=this.observer.takeRecords()),t.length>0&&this.emitter.emit(u.default.events.SCROLL_BEFORE_UPDATE,n,t),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"update",this).call(this,t.concat([])),t.length>0&&this.emitter.emit(u.default.events.SCROLL_UPDATE,n,t)}}}]),e}(s.default.Scroll);S.blotName="scroll",S.className="ql-editor",S.tagName="DIV",S.defaultChild="block",S.allowedChildren=[h.default,c.BlockEmbed,y.default],e.default=S},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SHORTKEY=e.default=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=F(t);if(null==r||null==r.key)return T.warn("Attempted to add invalid keyboard binding",r);"function"===typeof e&&(e={handler:e}),"function"===typeof n&&(n={handler:n}),r=(0,h.default)(r,e,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var t=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var o=n.which||n.keyCode,a=(t.bindings[o]||[]).filter((function(t){return e.match(n,t)}));if(0!==a.length){var s=t.quill.getSelection();if(null!=s&&t.quill.hasFocus()){var l=t.quill.getLine(s.index),c=i(l,2),h=c[0],f=c[1],d=t.quill.getLeaf(s.index),p=i(d,2),g=p[0],v=p[1],m=0===s.length?[g,v]:t.quill.getLeaf(s.index+s.length),b=i(m,2),_=b[0],x=b[1],w=g instanceof y.default.Text?g.value().slice(0,v):"",S=_ instanceof y.default.Text?_.value().slice(x):"",O={collapsed:0===s.length,empty:0===s.length&&h.length()<=1,format:t.quill.getFormat(s),offset:f,prefix:w,suffix:S},C=a.some((function(e){if(null!=e.collapsed&&e.collapsed!==O.collapsed)return!1;if(null!=e.empty&&e.empty!==O.empty)return!1;if(null!=e.offset&&e.offset!==O.offset)return!1;if(Array.isArray(e.format)){if(e.format.every((function(t){return null==O.format[t]})))return!1}else if("object"===r(e.format)&&!Object.keys(e.format).every((function(t){return!0===e.format[t]?null!=O.format[t]:!1===e.format[t]?null==O.format[t]:(0,u.default)(e.format[t],O.format[t])})))return!1;return!(null!=e.prefix&&!e.prefix.test(O.prefix))&&(!(null!=e.suffix&&!e.suffix.test(O.suffix))&&!0!==e.handler.call(t,s,O))}));C&&n.preventDefault()}}}}))}}]),e}(S.default);function P(t,e){var n,r=t===E.keys.LEFT?"prefix":"suffix";return n={key:t,shiftKey:e,altKey:null},C(n,r,/^$/),C(n,"handler",(function(n){var r=n.index;t===E.keys.RIGHT&&(r+=n.length+1);var o=this.quill.getLeaf(r),a=i(o,1),s=a[0];return!(s instanceof y.default.Embed)||(t===E.keys.LEFT?e?this.quill.setSelection(n.index-1,n.length+1,b.default.sources.USER):this.quill.setSelection(n.index-1,b.default.sources.USER):e?this.quill.setSelection(n.index,n.length+1,b.default.sources.USER):this.quill.setSelection(n.index+n.length+1,b.default.sources.USER),!1)})),n}function j(t,e){if(!(0===t.index||this.quill.getLength()<=1)){var n=this.quill.getLine(t.index),r=i(n,1),o=r[0],a={};if(0===e.offset){var s=this.quill.getLine(t.index-1),l=i(s,1),u=l[0];if(null!=u&&u.length()>1){var c=o.formats(),h=this.quill.getFormat(t.index-1,1);a=g.default.attributes.diff(c,h)||{}}}var f=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;this.quill.deleteText(t.index-f,f,b.default.sources.USER),Object.keys(a).length>0&&this.quill.formatLine(t.index-f,f,a,b.default.sources.USER),this.quill.focus()}}function L(t,e){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(!(t.index>=this.quill.getLength()-n)){var r={},o=0,a=this.quill.getLine(t.index),s=i(a,1),l=s[0];if(e.offset>=l.length()-1){var u=this.quill.getLine(t.index+1),c=i(u,1),h=c[0];if(h){var f=l.formats(),d=this.quill.getFormat(t.index,1);r=g.default.attributes.diff(f,d)||{},o=h.length()}}this.quill.deleteText(t.index,n,b.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(t.index+o-1,n,r,b.default.sources.USER)}}function D(t){var e=this.quill.getLines(t),n={};if(e.length>1){var r=e[0].formats(),i=e[e.length-1].formats();n=g.default.attributes.diff(i,r)||{}}this.quill.deleteText(t,b.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(t.index,1,n,b.default.sources.USER),this.quill.setSelection(t.index,b.default.sources.SILENT),this.quill.focus()}function R(t,e){var n=this;t.length>0&&this.quill.scroll.deleteAt(t.index,t.length);var r=Object.keys(e.format).reduce((function(t,n){return y.default.query(n,y.default.Scope.BLOCK)&&!Array.isArray(e.format[n])&&(t[n]=e.format[n]),t}),{});this.quill.insertText(t.index,"\n",r,b.default.sources.USER),this.quill.setSelection(t.index+1,b.default.sources.SILENT),this.quill.focus(),Object.keys(e.format).forEach((function(t){null==r[t]&&(Array.isArray(e.format[t])||"link"!==t&&n.quill.format(t,e.format[t],b.default.sources.USER))}))}function N(t){return{key:E.keys.TAB,shiftKey:!t,format:{"code-block":!0},handler:function(e){var n=y.default.query("code-block"),r=e.index,o=e.length,a=this.quill.scroll.descendant(n,r),s=i(a,2),l=s[0],u=s[1];if(null!=l){var c=this.quill.getIndex(l),h=l.newlineIndex(u,!0)+1,f=l.newlineIndex(c+u+o),d=l.domNode.textContent.slice(h,f).split("\n");u=0,d.forEach((function(e,i){t?(l.insertAt(h+u,n.TAB),u+=n.TAB.length,0===i?r+=n.TAB.length:o+=n.TAB.length):e.startsWith(n.TAB)&&(l.deleteAt(h+u,n.TAB.length),u-=n.TAB.length,0===i?r-=n.TAB.length:o-=n.TAB.length),u+=e.length+1})),this.quill.update(b.default.sources.USER),this.quill.setSelection(r,o,b.default.sources.SILENT)}}}}function B(t){return{key:t[0].toUpperCase(),shortKey:!0,handler:function(e,n){this.quill.format(t,!n.format[t],b.default.sources.USER)}}}function F(t){if("string"===typeof t||"number"===typeof t)return F({key:t});if("object"===("undefined"===typeof t?"undefined":r(t))&&(t=(0,s.default)(t,!1)),"string"===typeof t.key)if(null!=E.keys[t.key.toUpperCase()])t.key=E.keys[t.key.toUpperCase()];else{if(1!==t.key.length)return null;t.key=t.key.toUpperCase().charCodeAt(0)}return t.shortKey&&(t[I]=t.shortKey,delete t.shortKey),t}E.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},E.DEFAULTS={bindings:{bold:B("bold"),italic:B("italic"),underline:B("underline"),indent:{key:E.keys.TAB,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","+1",b.default.sources.USER)}},outdent:{key:E.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","-1",b.default.sources.USER)}},"outdent backspace":{key:E.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(t,e){null!=e.format.indent?this.quill.format("indent","-1",b.default.sources.USER):null!=e.format.list&&this.quill.format("list",!1,b.default.sources.USER)}},"indent code-block":N(!0),"outdent code-block":N(!1),"remove tab":{key:E.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(t){this.quill.deleteText(t.index-1,1,b.default.sources.USER)}},tab:{key:E.keys.TAB,handler:function(t){this.quill.history.cutoff();var e=(new d.default).retain(t.index).delete(t.length).insert("\t");this.quill.updateContents(e,b.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,b.default.sources.SILENT)}},"list empty enter":{key:E.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(t,e){this.quill.format("list",!1,b.default.sources.USER),e.format.indent&&this.quill.format("indent",!1,b.default.sources.USER)}},"checklist enter":{key:E.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(t){var e=this.quill.getLine(t.index),n=i(e,2),r=n[0],o=n[1],a=(0,h.default)({},r.formats(),{list:"checked"}),s=(new d.default).retain(t.index).insert("\n",a).retain(r.length()-o-1).retain(1,{list:"unchecked"});this.quill.updateContents(s,b.default.sources.USER),this.quill.setSelection(t.index+1,b.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:E.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(t,e){var n=this.quill.getLine(t.index),r=i(n,2),o=r[0],a=r[1],s=(new d.default).retain(t.index).insert("\n",e.format).retain(o.length()-a-1).retain(1,{header:null});this.quill.updateContents(s,b.default.sources.USER),this.quill.setSelection(t.index+1,b.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(t,e){var n=e.prefix.length,r=this.quill.getLine(t.index),o=i(r,2),a=o[0],s=o[1];if(s>n)return!0;var l=void 0;switch(e.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(t.index," ",b.default.sources.USER),this.quill.history.cutoff();var u=(new d.default).retain(t.index-s).delete(n+1).retain(a.length()-2-s).retain(1,{list:l});this.quill.updateContents(u,b.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-n,b.default.sources.SILENT)}},"code exit":{key:E.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(t){var e=this.quill.getLine(t.index),n=i(e,2),r=n[0],o=n[1],a=(new d.default).retain(t.index+r.length()-o-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,b.default.sources.USER)}},"embed left":P(E.keys.LEFT,!1),"embed left shift":P(E.keys.LEFT,!0),"embed right":P(E.keys.RIGHT,!1),"embed right shift":P(E.keys.RIGHT,!0)}},e.default=E,e.SHORTKEY=I},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=function(){function t(t,e){for(var n=0;n-1}h.blotName="link",h.tagName="A",h.SANITIZED_URL="about:blank",h.PROTOCOL_WHITELIST=["http","https","mailto","tel"],e.default=h,e.sanitize=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(t!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=t&&(t.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(t.parentNode.children,t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e))){if("function"===typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"===typeof Event?"undefined":r(Event))){var i=document.createEvent("Event");i.initEvent("change",!0,!0),this.select.dispatchEvent(i)}this.close()}}},{key:"update",value:function(){var t=void 0;if(this.select.selectedIndex>-1){var e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(e)}else this.selectItem(null);var n=null!=t&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),t}();e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=T(r),o=n(5),a=T(o),s=n(4),l=T(s),u=n(16),c=T(u),h=n(25),f=T(h),d=n(24),p=T(d),g=n(35),v=T(g),y=n(6),m=T(y),b=n(22),_=T(b),x=n(7),w=T(x),S=n(55),O=T(S),C=n(42),k=T(C),A=n(23),M=T(A);function T(t){return t&&t.__esModule?t:{default:t}}a.default.register({"blots/block":l.default,"blots/block/embed":s.BlockEmbed,"blots/break":c.default,"blots/container":f.default,"blots/cursor":p.default,"blots/embed":v.default,"blots/inline":m.default,"blots/scroll":_.default,"blots/text":w.default,"modules/clipboard":O.default,"modules/history":k.default,"modules/keyboard":M.default}),i.default.register(l.default,c.default,p.default,m.default,_.default,w.default),e.default=a.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(){function t(t){this.domNode=t,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(t.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),t.create=function(t){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var e;return Array.isArray(this.tagName)?("string"===typeof t&&(t=t.toUpperCase(),parseInt(t).toString()===t&&(t=parseInt(t))),e="number"===typeof t?document.createElement(this.tagName[t-1]):this.tagName.indexOf(t)>-1?document.createElement(t):document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e},t.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},t.prototype.clone=function(){var t=this.domNode.cloneNode(!1);return r.create(t)},t.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},t.prototype.deleteAt=function(t,e){var n=this.isolate(t,e);n.remove()},t.prototype.formatAt=function(t,e,n,i){var o=this.isolate(t,e);if(null!=r.query(n,r.Scope.BLOT)&&i)o.wrap(n,i);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var a=r.create(this.statics.scope);o.wrap(a),a.format(n,i)}},t.prototype.insertAt=function(t,e,n){var i=null==n?r.create("text",e):r.create(e,n),o=this.split(t);this.parent.insertBefore(i,o)},t.prototype.insertInto=function(t,e){void 0===e&&(e=null),null!=this.parent&&this.parent.children.remove(this);var n=null;t.children.insertBefore(this,e),null!=e&&(n=e.domNode),this.domNode.parentNode==t.domNode&&this.domNode.nextSibling==n||t.domNode.insertBefore(this.domNode,n),this.parent=t,this.attach()},t.prototype.isolate=function(t,e){var n=this.split(t);return n.split(e),n},t.prototype.length=function(){return 1},t.prototype.offset=function(t){return void 0===t&&(t=this.parent),null==this.parent||this==t?0:this.parent.children.offset(this)+this.parent.offset(t)},t.prototype.optimize=function(t){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},t.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},t.prototype.replace=function(t){null!=t.parent&&(t.parent.insertBefore(this,t.next),t.remove())},t.prototype.replaceWith=function(t,e){var n="string"===typeof t?r.create(t,e):t;return n.replace(this),n},t.prototype.split=function(t,e){return 0===t?this:this.next},t.prototype.update=function(t,e){},t.prototype.wrap=function(t,e){var n="string"===typeof t?r.create(t,e):t;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},t.blotName="abstract",t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(12),i=n(32),o=n(33),a=n(1),s=function(){function t(t){this.attributes={},this.domNode=t,this.build()}return t.prototype.attribute=function(t,e){e?t.add(this.domNode,e)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])},t.prototype.build=function(){var t=this;this.attributes={};var e=r.default.keys(this.domNode),n=i.default.keys(this.domNode),s=o.default.keys(this.domNode);e.concat(n).concat(s).forEach((function(e){var n=a.query(e,a.Scope.ATTRIBUTE);n instanceof r.default&&(t.attributes[n.attrName]=n)}))},t.prototype.copy=function(t){var e=this;Object.keys(this.attributes).forEach((function(n){var r=e.attributes[n].value(e.domNode);t.format(n,r)}))},t.prototype.move=function(t){var e=this;this.copy(t),Object.keys(this.attributes).forEach((function(t){e.attributes[t].remove(e.domNode)})),this.attributes={}},t.prototype.values=function(){var t=this;return Object.keys(this.attributes).reduce((function(e,n){return e[n]=t.attributes[n].value(t.domNode),e}),{})},t}();e.default=s},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(12);function o(t,e){var n=t.getAttribute("class")||"";return n.split(/\s+/).filter((function(t){return 0===t.indexOf(e+"-")}))}var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.keys=function(t){return(t.getAttribute("class")||"").split(/\s+/).map((function(t){return t.split("-").slice(0,-1).join("-")}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add(this.keyName+"-"+e),!0)},e.prototype.remove=function(t){var e=o(t,this.keyName);e.forEach((function(e){t.classList.remove(e)})),0===t.classList.length&&t.removeAttribute("class")},e.prototype.value=function(t){var e=o(t,this.keyName)[0]||"",n=e.slice(this.keyName.length+1);return this.canAdd(t,n)?n:""},e}(i.default);e.default=a},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(12);function o(t){var e=t.split("-"),n=e.slice(1).map((function(t){return t[0].toUpperCase()+t.slice(1)})).join("");return e[0]+n}var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.keys=function(t){return(t.getAttribute("style")||"").split(";").map((function(t){var e=t.split(":");return e[0].trim()}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.style[o(this.keyName)]=e,!0)},e.prototype.remove=function(t){t.style[o(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")},e.prototype.value=function(t){var e=t.style[o(this.keyName)];return this.canAdd(t,e)?e:""},e}(i.default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;nr&&this.stack.undo.length>0){var i=this.stack.undo.pop();n=n.compose(i.undo),t=i.redo.compose(t)}else this.lastRecorded=r;this.stack.undo.push({redo:t,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(t){this.stack.undo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)})),this.stack.redo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),e}(u.default);function g(t){var e=t.ops[t.ops.length-1];return null!=e&&(null!=e.insert?"string"===typeof e.insert&&e.insert.endsWith("\n"):null!=e.attributes&&Object.keys(e.attributes).some((function(t){return null!=o.default.query(t,o.default.Scope.BLOCK)})))}function v(t){var e=t.reduce((function(t,e){return t+=e.delete||0,t}),0),n=t.length()-e;return g(t)&&(n-=1),n}p.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=p,e.getLastChangeIndex=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BaseTooltip=void 0;var r=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"link",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=e?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+t)||""),this.root.setAttribute("data-mode",t)}},{key:"restoreFocus",value:function(){var t=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=t}},{key:"save",value:function(){var t=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var e=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,c.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,c.default.sources.USER)),this.quill.root.scrollTop=e;break;case"video":t=L(t);case"formula":if(!t)break;var n=this.quill.getSelection(!0);if(null!=n){var r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),t,c.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(r+1," ",c.default.sources.USER),this.quill.setSelection(r+2,c.default.sources.USER)}break;default:}this.textbox.value="",this.hide()}}]),e}(w.default);function L(t){var e=t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?(e[1]||"https")+"://www.youtube.com/embed/"+e[2]+"?showinfo=0":(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(e[1]||"https")+"://player.vimeo.com/video/"+e[2]+"/":t}function D(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach((function(e){var r=document.createElement("option");e===n?r.setAttribute("selected","selected"):r.setAttribute("value",e),t.appendChild(r)}))}e.BaseTooltip=j,e.default=P},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.head=this.tail=null,this.length=0}return t.prototype.append=function(){for(var t=[],e=0;e1&&this.append.apply(this,t.slice(1))},t.prototype.contains=function(t){var e,n=this.iterator();while(e=n())if(e===t)return!0;return!1},t.prototype.insertBefore=function(t,e){t&&(t.next=e,null!=e?(t.prev=e.prev,null!=e.prev&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):null!=this.tail?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)},t.prototype.offset=function(t){var e=0,n=this.head;while(null!=n){if(n===t)return e;e+=n.length(),n=n.next}return-1},t.prototype.remove=function(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)},t.prototype.iterator=function(t){return void 0===t&&(t=this.head),function(){var e=t;return null!=t&&(t=t.next),e}},t.prototype.find=function(t,e){void 0===e&&(e=!1);var n,r=this.iterator();while(n=r()){var i=n.length();if(ts?n(r,t-s,Math.min(e,s+u-t)):n(r,0,Math.min(u,t+e-s)),s+=u}}},t.prototype.map=function(t){return this.reduce((function(e,n){return e.push(t(n)),e}),[])},t.prototype.reduce=function(t,e){var n,r=this.iterator();while(n=r())e=t(e,n);return e},t}();e.default=r},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(17),o=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=100,l=function(t){function e(e){var n=t.call(this,e)||this;return n.scroll=n,n.observer=new MutationObserver((function(t){n.update(t)})),n.observer.observe(n.domNode,a),n.attach(),n}return r(e,t),e.prototype.detach=function(){t.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(e,n){this.update(),0===e&&n===this.length()?this.children.forEach((function(t){t.remove()})):t.prototype.deleteAt.call(this,e,n)},e.prototype.formatAt=function(e,n,r,i){this.update(),t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.insertAt=function(e,n,r){this.update(),t.prototype.insertAt.call(this,e,n,r)},e.prototype.optimize=function(e,n){var r=this;void 0===e&&(e=[]),void 0===n&&(n={}),t.prototype.optimize.call(this,n);var a=[].slice.call(this.observer.takeRecords());while(a.length>0)e.push(a.pop());for(var l=function(t,e){void 0===e&&(e=!0),null!=t&&t!==r&&null!=t.domNode.parentNode&&(null==t.domNode[o.DATA_KEY].mutations&&(t.domNode[o.DATA_KEY].mutations=[]),e&&l(t.parent))},u=function(t){null!=t.domNode[o.DATA_KEY]&&null!=t.domNode[o.DATA_KEY].mutations&&(t instanceof i.default&&t.children.forEach(u),t.optimize(n))},c=e,h=0;c.length>0;h+=1){if(h>=s)throw new Error("[Parchment] Maximum optimize iterations reached");c.forEach((function(t){var e=o.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(l(o.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,(function(t){var e=o.find(t,!1);l(e,!1),e instanceof i.default&&e.children.forEach((function(t){l(t,!1)}))}))):"attributes"===t.type&&l(e.prev)),l(e))})),this.children.forEach(u),c=[].slice.call(this.observer.takeRecords()),a=c.slice();while(a.length>0)e.push(a.pop())}},e.prototype.update=function(e,n){var r=this;void 0===n&&(n={}),e=e||this.observer.takeRecords(),e.map((function(t){var e=o.find(t.target,!0);return null==e?null:null==e.domNode[o.DATA_KEY].mutations?(e.domNode[o.DATA_KEY].mutations=[t],e):(e.domNode[o.DATA_KEY].mutations.push(t),null)})).forEach((function(t){null!=t&&t!==r&&null!=t.domNode[o.DATA_KEY]&&t.update(t.domNode[o.DATA_KEY].mutations||[],n)})),null!=this.domNode[o.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[o.DATA_KEY].mutations,n),this.optimize(e,n)},e.blotName="scroll",e.defaultChild="block",e.scope=o.Scope.BLOCK_BLOT,e.tagName="DIV",e}(i.default);e.default=l},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(18),o=n(1);function a(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0}var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(n){if(n.tagName!==e.tagName)return t.formats.call(this,n)},e.prototype.format=function(n,r){var o=this;n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):(this.children.forEach((function(t){t instanceof i.default||(t=t.wrap(e.blotName,!0)),o.attributes.copy(t)})),this.unwrap())},e.prototype.formatAt=function(e,n,r,i){if(null!=this.formats()[r]||o.query(r,o.Scope.ATTRIBUTE)){var a=this.isolate(e,n);a.format(r,i)}else t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var i=this.next;i instanceof e&&i.prev===this&&a(r,i.formats())&&(i.moveChildren(this),i.remove())},e.blotName="inline",e.scope=o.Scope.INLINE_BLOT,e.tagName="SPAN",e}(i.default);e.default=s},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(18),o=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(n){var r=o.query(e.blotName).tagName;if(n.tagName!==r)return t.formats.call(this,n)},e.prototype.format=function(n,r){null!=o.query(n,o.Scope.BLOCK)&&(n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):this.replaceWith(e.blotName))},e.prototype.formatAt=function(e,n,r,i){null!=o.query(r,o.Scope.BLOCK)?this.format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.insertAt=function(e,n,r){if(null==r||null!=o.query(n,o.Scope.INLINE))t.prototype.insertAt.call(this,e,n,r);else{var i=this.split(e),a=o.create(n,r);i.parent.insertBefore(a,i)}},e.prototype.update=function(e,n){navigator.userAgent.match(/Trident/)?this.build():t.prototype.update.call(this,e,n)},e.blotName="block",e.scope=o.Scope.BLOCK_BLOT,e.tagName="P",e}(i.default);e.default=a},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(19),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(t){},e.prototype.format=function(e,n){t.prototype.formatAt.call(this,0,this.length(),e,n)},e.prototype.formatAt=function(e,n,r,i){0===e&&n===this.length()?this.format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.formats=function(){return this.statics.formats(this.domNode)},e}(i.default);e.default=o},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(19),o=n(1),a=function(t){function e(e){var n=t.call(this,e)||this;return n.text=n.statics.value(n.domNode),n}return r(e,t),e.create=function(t){return document.createTextNode(t)},e.value=function(t){var e=t.data;return e["normalize"]&&(e=e["normalize"]()),e},e.prototype.deleteAt=function(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)},e.prototype.index=function(t,e){return this.domNode===t?e:-1},e.prototype.insertAt=function(e,n,r){null==r?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):t.prototype.insertAt.call(this,e,n,r)},e.prototype.length=function(){return this.text.length},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},e.prototype.position=function(t,e){return void 0===e&&(e=!1),[this.domNode,t]},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=o.create(this.domNode.splitText(t));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},e.prototype.update=function(t,e){var n=this;t.some((function(t){return"characterData"===t.type&&t.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},e.prototype.value=function(){return this.text},e.blotName="text",e.scope=o.Scope.INLINE_BLOT,e}(i.default);e.default=a},function(t,e,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var i=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return arguments.length>1&&!this.contains(t)===!e?e:i.call(this,t)}}String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var n=this.toString();("number"!==typeof e||!isFinite(e)||Math.floor(e)!==e||e>n.length)&&(e=n.length),e-=t.length;var r=n.indexOf(t,e);return-1!==r&&r===e}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof t)throw new TypeError("predicate must be a function");for(var e,n=Object(this),r=n.length>>>0,i=arguments[1],o=0;oe.length?t:e,u=t.length>e.length?e:t,c=l.indexOf(u);if(-1!=c)return a=[[r,l.substring(0,c)],[i,u],[r,l.substring(c+u.length)]],t.length>e.length&&(a[0][0]=a[2][0]=n),a;if(1==u.length)return[[n,t],[r,e]];var f=h(t,e);if(f){var d=f[0],p=f[1],g=f[2],v=f[3],y=f[4],m=o(d,g),b=o(p,v);return m.concat([[i,y]],b)}return s(t,e)}function s(t,e){for(var i=t.length,o=e.length,a=Math.ceil((i+o)/2),s=a,u=2*a,c=new Array(u),h=new Array(u),f=0;fi)v+=2;else if(w>o)g+=2;else if(p){var S=s+d-_;if(S>=0&&S=O)return l(t,e,A,w)}}}for(var C=-b+y;C<=b-m;C+=2){S=s+C;O=C==-b||C!=b&&h[S-1]i)m+=2;else if(k>o)y+=2;else if(!p){x=s+d-C;if(x>=0&&x=O)return l(t,e,A,w)}}}}return[[n,t],[r,e]]}function l(t,e,n,r){var i=t.substring(0,n),a=e.substring(0,r),s=t.substring(n),l=e.substring(r),u=o(i,a),c=o(s,l);return u.concat(c)}function u(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;var n=0,r=Math.min(t.length,e.length),i=r,o=0;while(ne.length?t:e,r=t.length>e.length?e:t;if(n.length<4||2*r.length=t.length?[r,i,o,a,h]:null}var o,a,s,l,h,f=i(n,r,Math.ceil(n.length/4)),d=i(n,r,Math.ceil(n.length/2));if(!f&&!d)return null;o=d?f&&f[4].length>d[4].length?f:d:f,t.length>e.length?(a=o[0],s=o[1],l=o[2],h=o[3]):(l=o[0],h=o[1],a=o[2],s=o[3]);var p=o[4];return[a,s,l,h,p]}function f(t){t.push([i,""]);var e,o=0,a=0,s=0,l="",h="";while(o1?(0!==a&&0!==s&&(e=u(h,l),0!==e&&(o-a-s>0&&t[o-a-s-1][0]==i?t[o-a-s-1][1]+=h.substring(0,e):(t.splice(0,0,[i,h.substring(0,e)]),o++),h=h.substring(e),l=l.substring(e)),e=c(h,l),0!==e&&(t[o][1]=h.substring(h.length-e)+t[o][1],h=h.substring(0,h.length-e),l=l.substring(0,l.length-e))),0===a?t.splice(o-s,a+s,[r,h]):0===s?t.splice(o-a,a+s,[n,l]):t.splice(o-a-s,a+s,[n,l],[r,h]),o=o-a-s+(a?1:0)+(s?1:0)+1):0!==o&&t[o-1][0]==i?(t[o-1][1]+=t[o][1],t.splice(o,1)):o++,s=0,a=0,l="",h="";break}""===t[t.length-1][1]&&t.pop();var d=!1;o=1;while(o0&&r.splice(o+2,0,[s[0],l]),y(r,o,3)}return t}function v(t){for(var e=!1,o=function(t){return t.charCodeAt(0)>=56320&&t.charCodeAt(0)<=57343},a=function(t){return t.charCodeAt(t.length-1)>=55296&&t.charCodeAt(t.length-1)<=56319},s=2;s0&&l.push(t[s]);return l}function y(t,e,n){for(var r=e+n-1;r>=0&&r>=e-1;r--)if(r+1\r?\n +\<"),this.convert();var e=this.quill.getFormat(this.quill.selection.savedRange.index);if(e[x.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new u.default).insert(n,A({},x.default.blotName,e[x.default.blotName]))}var r=this.prepareMatching(),o=i(r,2),a=o[0],s=o[1],l=V(this.container,a,s);return F(l,"\n")&&null==l.ops[l.ops.length-1].attributes&&(l=l.compose((new u.default).retain(l.length()-1).delete(1))),E.log("convert",this.container.innerHTML,l),this.container.innerHTML="",l}},{key:"dangerouslyPasteHTML",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d.default.sources.API;if("string"===typeof t)this.quill.setContents(this.convert(t),e),this.quill.setSelection(0,d.default.sources.SILENT);else{var r=this.convert(e);this.quill.updateContents((new u.default).retain(t).concat(r),n),this.quill.setSelection(t+r.length(),d.default.sources.SILENT)}}},{key:"onPaste",value:function(t){var e=this;if(!t.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new u.default).retain(n.index),i=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(d.default.sources.SILENT),setTimeout((function(){r=r.concat(e.convert()).delete(n.length),e.quill.updateContents(r,d.default.sources.USER),e.quill.setSelection(r.length()-n.length,d.default.sources.SILENT),e.quill.scrollingContainer.scrollTop=i,e.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var t=this,e=[],n=[];return this.matchers.forEach((function(r){var o=i(r,2),a=o[0],s=o[1];switch(a){case Node.TEXT_NODE:n.push(s);break;case Node.ELEMENT_NODE:e.push(s);break;default:[].forEach.call(t.container.querySelectorAll(a),(function(t){t[P]=t[P]||[],t[P].push(s)}));break}})),[e,n]}}]),e}(y.default);function N(t,e,n){return"object"===("undefined"===typeof e?"undefined":r(e))?Object.keys(e).reduce((function(t,n){return N(t,n,e[n])}),t):t.reduce((function(t,r){return r.attributes&&r.attributes[e]?t.push(r):t.insert(r.insert,(0,s.default)({},A({},e,n),r.attributes))}),new u.default)}function B(t){if(t.nodeType!==Node.ELEMENT_NODE)return{};var e="__ql-computed-style";return t[e]||(t[e]=window.getComputedStyle(t))}function F(t,e){for(var n="",r=t.ops.length-1;r>=0&&n.length-1}function V(t,e,n){return t.nodeType===t.TEXT_NODE?n.reduce((function(e,n){return n(t,e)}),new u.default):t.nodeType===t.ELEMENT_NODE?[].reduce.call(t.childNodes||[],(function(r,i){var o=V(i,e,n);return i.nodeType===t.ELEMENT_NODE&&(o=e.reduce((function(t,e){return e(i,t)}),o),o=(i[P]||[]).reduce((function(t,e){return e(i,t)}),o)),r.concat(o)}),new u.default):new u.default}function q(t,e,n){return N(n,t,!0)}function G(t,e){var n=h.default.Attributor.Attribute.keys(t),r=h.default.Attributor.Class.keys(t),i=h.default.Attributor.Style.keys(t),o={};return n.concat(r).concat(i).forEach((function(e){var n=h.default.query(e,h.default.Scope.ATTRIBUTE);null!=n&&(o[n.attrName]=n.value(t),o[n.attrName])||(n=L[e],null==n||n.attrName!==e&&n.keyName!==e||(o[n.attrName]=n.value(t)||void 0),n=D[e],null==n||n.attrName!==e&&n.keyName!==e||(n=D[e],o[n.attrName]=n.value(t)||void 0))})),Object.keys(o).length>0&&(e=N(e,o)),e}function H(t,e){var n=h.default.query(t);if(null==n)return e;if(n.prototype instanceof h.default.Embed){var r={},i=n.value(t);null!=i&&(r[n.blotName]=i,e=(new u.default).insert(r,n.formats(t)))}else"function"===typeof n.formats&&(e=N(e,n.blotName,n.formats(t)));return e}function W(t,e){return F(e,"\n")||e.insert("\n"),e}function U(){return new u.default}function $(t,e){var n=h.default.query(t);if(null==n||"list-item"!==n.blotName||!F(e,"\n"))return e;var r=-1,i=t.parentNode;while(!i.classList.contains("ql-clipboard"))"list"===(h.default.query(i)||{}).blotName&&(r+=1),i=i.parentNode;return r<=0?e:e.compose((new u.default).retain(e.length()-1).retain(1,{indent:r}))}function Y(t,e){return F(e,"\n")||(z(t)||e.length()>0&&t.nextSibling&&z(t.nextSibling))&&e.insert("\n"),e}function X(t,e){if(z(t)&&null!=t.nextElementSibling&&!F(e,"\n\n")){var n=t.offsetHeight+parseFloat(B(t).marginTop)+parseFloat(B(t).marginBottom);t.nextElementSibling.offsetTop>t.offsetTop+1.5*n&&e.insert("\n")}return e}function K(t,e){var n={},r=t.style||{};return r.fontStyle&&"italic"===B(t).fontStyle&&(n.italic=!0),r.fontWeight&&(B(t).fontWeight.startsWith("bold")||parseInt(B(t).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(e=N(e,n)),parseFloat(r.textIndent||0)>0&&(e=(new u.default).insert("\t").concat(e)),e}function Z(t,e){var n=t.data;if("O:P"===t.parentNode.tagName)return e.insert(n.trim());if(0===n.trim().length&&t.parentNode.classList.contains("ql-clipboard"))return e;if(!B(t.parentNode).whiteSpace.startsWith("pre")){var r=function(t,e){return e=e.replace(/[^\u00a0]/g,""),e.length<1&&t?" ":e};n=n.replace(/\r\n/g," ").replace(/\n/g," "),n=n.replace(/\s\s+/g,r.bind(r,!0)),(null==t.previousSibling&&z(t.parentNode)||null!=t.previousSibling&&z(t.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==t.nextSibling&&z(t.parentNode)||null!=t.nextSibling&&z(t.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return e.insert(n)}R.DEFAULTS={matchers:[],matchVisual:!0},e.default=R,e.matchAttributor=G,e.matchBlot=H,e.matchNewline=Y,e.matchSpacing=X,e.matchText=Z},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n '},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;nr.right&&(o=r.right-i.right,this.root.style.left=e+o+"px"),i.leftr.bottom){var a=i.bottom-i.top,s=t.bottom-t.top+a;this.root.style.top=n-s+"px",this.root.classList.add("ql-flip")}return o}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=function(){function t(t,e){for(var n=0;n
','','',''].join(""),e.default=w},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(29),i=nt(r),o=n(36),a=n(38),s=n(64),l=n(65),u=nt(l),c=n(66),h=nt(c),f=n(67),d=nt(f),p=n(37),g=n(26),v=n(39),y=n(40),m=n(56),b=nt(m),_=n(68),x=nt(_),w=n(27),S=nt(w),O=n(69),C=nt(O),k=n(70),A=nt(k),M=n(71),T=nt(M),I=n(72),E=nt(I),P=n(73),j=nt(P),L=n(13),D=nt(L),R=n(74),N=nt(R),B=n(75),F=nt(B),z=n(57),V=nt(z),q=n(41),G=nt(q),H=n(28),W=nt(H),U=n(59),$=nt(U),Y=n(60),X=nt(Y),K=n(61),Z=nt(K),Q=n(108),J=nt(Q),tt=n(62),et=nt(tt);function nt(t){return t&&t.__esModule?t:{default:t}}i.default.register({"attributors/attribute/direction":a.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":p.BackgroundClass,"attributors/class/color":g.ColorClass,"attributors/class/direction":a.DirectionClass,"attributors/class/font":v.FontClass,"attributors/class/size":y.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":p.BackgroundStyle,"attributors/style/color":g.ColorStyle,"attributors/style/direction":a.DirectionStyle,"attributors/style/font":v.FontStyle,"attributors/style/size":y.SizeStyle},!0),i.default.register({"formats/align":o.AlignClass,"formats/direction":a.DirectionClass,"formats/indent":s.IndentClass,"formats/background":p.BackgroundStyle,"formats/color":g.ColorStyle,"formats/font":v.FontClass,"formats/size":y.SizeClass,"formats/blockquote":u.default,"formats/code-block":D.default,"formats/header":h.default,"formats/list":d.default,"formats/bold":b.default,"formats/code":L.Code,"formats/italic":x.default,"formats/link":S.default,"formats/script":C.default,"formats/strike":A.default,"formats/underline":T.default,"formats/image":E.default,"formats/video":j.default,"formats/list/item":f.ListItem,"modules/formula":N.default,"modules/syntax":F.default,"modules/toolbar":V.default,"themes/bubble":J.default,"themes/snow":et.default,"ui/icons":G.default,"ui/picker":W.default,"ui/icon-picker":X.default,"ui/color-picker":$.default,"ui/tooltip":Z.default},!0),e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndentClass=void 0;var r=function(){function t(t,e){for(var n=0;n0&&this.children.tail.format(t,e)}},{key:"formats",value:function(){return f({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(t,n){if(t instanceof v)i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n);else{var r=null==n?this.length():n.offset(this),o=this.split(r);o.parent.insertBefore(t,o)}}},{key:"optimize",value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){if(t.statics.blotName!==this.statics.blotName){var n=a.default.create(this.statics.defaultChild);t.moveChildren(n),this.appendChild(n)}i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t)}}]),e}(c.default);y.blotName="list",y.scope=a.default.Scope.BLOCK_BLOT,y.tagName=["OL","UL"],y.defaultChild="list-item",y.allowedChildren=[v],e.ListItem=v,e.default=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(56),i=o(r);function o(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(){return a(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),e}(i.default);u.blotName="italic",u.tagName=["EM","I"],e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"===typeof t&&n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return f.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})}},{key:"match",value:function(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}},{key:"sanitize",value:function(t){return(0,s.sanitize)(t,["http","https","data"])?t:"//:0"}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(a.default.Embed);d.blotName="image",d.tagName="IMG",e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return f.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})}},{key:"sanitize",value:function(t){return s.default.sanitize(t)}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(o.BlockEmbed);d.blotName="video",d.className="ql-video",d.tagName="IFRAME",e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FormulaBlot=void 0;var r=function(){function t(t,e){for(var n=0;n0||null==this.cachedText)&&(this.domNode.innerHTML=t(e),this.domNode.normalize(),this.attach()),this.cachedText=e)}}]),e}(f.default);y.className="ql-syntax";var m=new a.default.Attributor.Class("token","hljs",{scope:a.default.Scope.INLINE}),b=function(t){function e(t,n){p(this,e);var r=g(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if("function"!==typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var i=null;return r.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(i),i=setTimeout((function(){r.highlight(),i=null}),r.options.interval)})),r.highlight(),r}return v(e,t),r(e,null,[{key:"register",value:function(){l.default.register(m,!0),l.default.register(y,!0)}}]),r(e,[{key:"highlight",value:function(){var t=this;if(!this.quill.selection.composing){this.quill.update(l.default.sources.USER);var e=this.quill.getSelection();this.quill.scroll.descendants(y).forEach((function(e){e.highlight(t.options.highlight)})),this.quill.update(l.default.sources.SILENT),null!=e&&this.quill.setSelection(e,l.default.sources.SILENT)}}}]),e}(c.default);b.DEFAULTS={highlight:function(){return null==window.hljs?null:function(t){var e=window.hljs.highlightAuto(t);return e.value}}(),interval:1e3},e.CodeBlock=y,e.CodeToken=m,e.default=b},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BubbleTooltip=void 0;var r=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},i=function(){function t(t,e){for(var n=0;n0&&i===l.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var o=r.quill.getLines(e.index,e.length);if(1===o.length)r.position(r.quill.getBounds(e));else{var a=o[o.length-1],s=r.quill.getIndex(a),u=Math.min(a.length()-1,e.index+e.length-s),c=r.quill.getBounds(new h.Range(s,u));r.position(c)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return y(e,t),i(e,[{key:"listen",value:function(){var t=this;r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){t.root.classList.remove("ql-editing")})),this.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!t.root.classList.contains("ql-hidden")){var e=t.quill.getSelection();null!=e&&t.position(t.quill.getBounds(e))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(t){var n=r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"position",this).call(this,t),i=this.root.querySelector(".ql-tooltip-arrow");if(i.style.marginLeft="",0===n)return n;i.style.marginLeft=-1*n-i.offsetWidth/2+"px"}}]),e}(u.BaseTooltip);_.TEMPLATE=['','
','','',"
"].join(""),e.BubbleTooltip=_,e.default=b},function(t,e,n){t.exports=n(63)}])["default"]}))}).call(this,n("1c35").Buffer)},"93bf":function(t,e,n){ /*! * screenfull * v5.0.2 - 2020-02-13 * (c) Sindre Sorhus; MIT License */ (function(){"use strict";var e="undefined"!==typeof window&&"undefined"!==typeof window.document?window.document:{},n=t.exports,r=function(){for(var t,n=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],r=0,i=n.length,o={};r=51||!i((function(){var t=[];return t[g]=!1,t.concat()[0]!==t})),y=f("concat"),m=function(t){if(!a(t))return!1;var e=t[g];return void 0!==e?!!e:o(t)},b=!v||!y;r({target:"Array",proto:!0,arity:1,forced:b},{concat:function(t){var e,n,r,i,o,a=s(this),f=h(a,0),d=0;for(e=-1,r=arguments.length;e2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:2===n?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}function s(t,e,n){return t.substr(!n||n<0?0:+n,e.length)===e}function l(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}function u(t,e,n){return"number"!==typeof n&&(n=0),!(n+e.length>t.length)&&-1!==t.indexOf(e,n)}o("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(t,e,n){var r,i;if("string"===typeof e&&s(e,"not ")?(r="must not be",e=e.replace(/^not /,"")):r="must be",l(t," argument"))i="The ".concat(t," ").concat(r," ").concat(a(e,"type"));else{var o=u(t,".")?"property":"argument";i='The "'.concat(t,'" ').concat(o," ").concat(r," ").concat(a(e,"type"))}return i+=". Received type ".concat(typeof n),i}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=i},"9c0c":function(t,e,n){var r=n("1609");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"9c0e":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"9d11":function(t,e,n){var r=n("fc5e"),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},"9d37":function(t,e,n){"use strict";t.exports=i;var r=n("fe34");function i(t){if(!(this instanceof i))return new i(t);r.call(this,t)}n("3fb5")(i,r),i.prototype._transform=function(t,e,n){n(null,t)}},"9d85":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.changeDefaultConfig=v,Object.defineProperty(e,"colorConfig",{enumerable:!0,get:function(){return r.colorConfig}}),Object.defineProperty(e,"gridConfig",{enumerable:!0,get:function(){return i.gridConfig}}),Object.defineProperty(e,"xAxisConfig",{enumerable:!0,get:function(){return o.xAxisConfig}}),Object.defineProperty(e,"yAxisConfig",{enumerable:!0,get:function(){return o.yAxisConfig}}),Object.defineProperty(e,"titleConfig",{enumerable:!0,get:function(){return a.titleConfig}}),Object.defineProperty(e,"lineConfig",{enumerable:!0,get:function(){return s.lineConfig}}),Object.defineProperty(e,"barConfig",{enumerable:!0,get:function(){return l.barConfig}}),Object.defineProperty(e,"pieConfig",{enumerable:!0,get:function(){return u.pieConfig}}),Object.defineProperty(e,"radarAxisConfig",{enumerable:!0,get:function(){return c.radarAxisConfig}}),Object.defineProperty(e,"radarConfig",{enumerable:!0,get:function(){return h.radarConfig}}),Object.defineProperty(e,"gaugeConfig",{enumerable:!0,get:function(){return f.gaugeConfig}}),Object.defineProperty(e,"legendConfig",{enumerable:!0,get:function(){return d.legendConfig}}),e.keys=void 0;var r=n("f3cb"),i=n("49bc"),o=n("c930"),a=n("887c"),s=n("6eb9"),l=n("f111"),u=n("222a"),c=n("0cd4"),h=n("3938"),f=n("cc6d"),d=n("60f1"),p=n("becb"),g={colorConfig:r.colorConfig,gridConfig:i.gridConfig,xAxisConfig:o.xAxisConfig,yAxisConfig:o.yAxisConfig,titleConfig:a.titleConfig,lineConfig:s.lineConfig,barConfig:l.barConfig,pieConfig:u.pieConfig,radarAxisConfig:c.radarAxisConfig,radarConfig:h.radarConfig,gaugeConfig:f.gaugeConfig,legendConfig:d.legendConfig};function v(t,e){g["".concat(t,"Config")]?(0,p.deepMerge)(g["".concat(t,"Config")],e):console.warn("Change default config Error - Invalid key!")}var y=["color","title","legend","xAxis","yAxis","grid","radarAxis","line","bar","pie","radar","gauge"];e.keys=y},"9ede":function(t,e,n){t.exports=n("faa1").EventEmitter},"9f7f":function(t,e,n){var r=n("d039"),i=n("da84"),o=i.RegExp,a=r((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),s=a||r((function(){return!o("a","y").sticky})),l=a||r((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:l,MISSED_STICKY:s,UNSUPPORTED_Y:a}},"9fbb":function(t,e,n){var r=n("4d88");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},a04b:function(t,e,n){var r=n("c04e"),i=n("d9b5");t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},a143:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.radarAxis=d;var i=r(n("278c")),o=r(n("9523")),a=r(n("448a")),s=n("18ad"),l=n("9d85"),u=n("5557"),c=n("becb");function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},n=e.radar,r=[];n&&(r=p(n),r=g(r,t),r=v(r,t),r=y(r),r=m(r),r=b(r),r=[r]);var i=r;r.length&&!r[0].show&&(i=[]),(0,s.doUpdate)({chart:t,series:i,key:"radarAxisSplitArea",getGraphConfig:_,beforeUpdate:S,beforeChange:O}),(0,s.doUpdate)({chart:t,series:i,key:"radarAxisSplitLine",getGraphConfig:C,beforeUpdate:M,beforeChange:T}),(0,s.doUpdate)({chart:t,series:i,key:"radarAxisLine",getGraphConfig:I}),(0,s.doUpdate)({chart:t,series:i,key:"radarAxisLable",getGraphConfig:j}),t.radarAxis=r[0]}function p(t){return(0,c.deepMerge)((0,u.deepClone)(l.radarAxisConfig),t)}function g(t,e){var n=e.render.area,r=t.center;return t.centerPos=r.map((function(t,e){return"number"===typeof t?t:parseInt(t)/100*n[e]})),t}function v(t,e){var n=e.render.area,r=t.splitNum,i=t.radius,o=Math.min.apply(Math,(0,a["default"])(n))/2;"number"!==typeof i&&(i=parseInt(i)/100*o);var s=i/r;return t.ringRadius=new Array(r).fill(0).map((function(t,e){return s*(e+1)})),t.radius=i,t}function y(t){var e=t.indicator,n=t.centerPos,r=t.radius,i=t.startAngle,o=2*Math.PI,s=e.length,l=o/s,c=new Array(s).fill(0).map((function(t,e){return l*e+i}));return t.axisLineAngles=c,t.axisLinePosition=c.map((function(t){return u.getCircleRadianPoint.apply(void 0,(0,a["default"])(n).concat([r,t]))})),t}function m(t){var e=t.ringRadius,n=e[0]/2;return t.areaRadius=e.map((function(t){return t-n})),t}function b(t){var e=t.axisLineAngles,n=t.centerPos,r=t.radius,i=t.axisLabel;return r+=i.labelGap,t.axisLabelPosition=e.map((function(t){return u.getCircleRadianPoint.apply(void 0,(0,a["default"])(n).concat([r,t]))})),t}function _(t){var e=t.areaRadius,n=t.polygon,r=t.animationCurve,i=t.animationFrame,o=t.rLevel,a=n?"regPolygon":"ring";return e.map((function(e,n){return{name:a,index:o,visible:t.splitArea.show,animationCurve:r,animationFrame:i,shape:x(t,n),style:w(t,n)}}))}function x(t,e){var n=t.polygon,r=t.areaRadius,i=t.indicator,o=t.centerPos,a=i.length,s={rx:o[0],ry:o[1],r:r[e]};return n&&(s.side=a),s}function w(t,e){var n=t.splitArea,r=t.ringRadius,i=t.axisLineAngles,o=t.polygon,s=t.centerPos,l=n.color,h=n.style;h=f({fill:"rgba(0, 0, 0, 0)"},h);var d=r[0]-0;if(o){var p=u.getCircleRadianPoint.apply(void 0,(0,a["default"])(s).concat([r[0],i[0]])),g=u.getCircleRadianPoint.apply(void 0,(0,a["default"])(s).concat([r[0],i[1]]));d=(0,c.getPointToLineDistance)(s,p,g)}if(h=(0,c.deepMerge)((0,u.deepClone)(h,!0),{lineWidth:d}),!l.length)return h;var v=l.length;return(0,c.deepMerge)(h,{stroke:l[e%v]})}function S(t,e,n,r){var i=t[n];if(i){var o=r.chart.render,a=e.polygon,s=i[0].name,l=a?"regPolygon":"ring",u=l!==s;u&&(i.forEach((function(t){return o.delGraph(t)})),t[n]=null)}}function O(t,e){var n=e.shape.side;"number"===typeof n&&(t.shape.side=n)}function C(t){var e=t.ringRadius,n=t.polygon,r=t.animationCurve,i=t.animationFrame,o=t.rLevel,a=n?"regPolygon":"ring";return e.map((function(e,n){return{name:a,index:o,animationCurve:r,animationFrame:i,visible:t.splitLine.show,shape:k(t,n),style:A(t,n)}}))}function k(t,e){var n=t.ringRadius,r=t.centerPos,i=t.indicator,o=t.polygon,a={rx:r[0],ry:r[1],r:n[e]},s=i.length;return o&&(a.side=s),a}function A(t,e){var n=t.splitLine,r=n.color,i=n.style;if(i=f({fill:"rgba(0, 0, 0, 0)"},i),!r.length)return i;var o=r.length;return(0,c.deepMerge)(i,{stroke:r[e%o]})}function M(t,e,n,r){var i=t[n];if(i){var o=r.chart.render,a=e.polygon,s=i[0].name,l=a?"regPolygon":"ring",u=l!==s;u&&(i.forEach((function(t){return o.delGraph(t)})),t[n]=null)}}function T(t,e){var n=e.shape.side;"number"===typeof n&&(t.shape.side=n)}function I(t){var e=t.axisLinePosition,n=t.animationCurve,r=t.animationFrame,i=t.rLevel;return e.map((function(e,o){return{name:"polyline",index:i,visible:t.axisLine.show,animationCurve:n,animationFrame:r,shape:E(t,o),style:P(t,o)}}))}function E(t,e){var n=t.centerPos,r=t.axisLinePosition,i=[n,r[e]];return{points:i}}function P(t,e){var n=t.axisLine,r=n.color,i=n.style;if(!r.length)return i;var o=r.length;return(0,c.deepMerge)(i,{stroke:r[e%o]})}function j(t){var e=t.axisLabelPosition,n=t.animationCurve,r=t.animationFrame,i=t.rLevel;return e.map((function(e,o){return{name:"text",index:i,visible:t.axisLabel.show,animationCurve:n,animationFrame:r,shape:L(t,o),style:D(t,o)}}))}function L(t,e){var n=t.axisLabelPosition,r=t.indicator;return{content:r[e].name,position:n[e]}}function D(t,e){var n=t.axisLabel,r=(0,i["default"])(t.centerPos,2),o=r[0],a=r[1],s=t.axisLabelPosition,l=n.color,u=n.style,h=(0,i["default"])(s[e],2),f=h[0],d=h[1],p=f>o?"left":"right",g=d>a?"top":"bottom";if(u=(0,c.deepMerge)({textAlign:p,textBaseline:g},u),!l.length)return u;var v=l.length;return(0,c.deepMerge)(u,{fill:l[e%v]})}},a157:function(t,e,n){},a15b:function(t,e,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("44ad"),a=n("fc6a"),s=n("a640"),l=i([].join),u=o!=Object,c=s("join",",");r({target:"Array",proto:!0,forced:u||!c},{join:function(t){return l(a(this),void 0===t?",":t)}})},a15e:function(t,e,n){"use strict";n.r(e);var r=n("41b2"),i=n.n(r),o=n("1098"),a=n.n(o),s=/%[sdj%]/g,l=function(){};function u(){for(var t=arguments.length,e=Array(t),n=0;n=o)return t;switch(t){case"%s":return String(e[r++]);case"%d":return Number(e[r++]);case"%j":try{return JSON.stringify(e[r++])}catch(n){return"[Circular]"}break;default:return t}})),l=e[r];r()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},S={integer:function(t){return S.number(t)&&parseInt(t,10)===t},float:function(t){return S.number(t)&&!S.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(e){return!1}},date:function(t){return"function"===typeof t.getTime&&"function"===typeof t.getMonth&&"function"===typeof t.getYear},number:function(t){return!isNaN(t)&&"number"===typeof t},object:function(t){return"object"===("undefined"===typeof t?"undefined":a()(t))&&!S.array(t)},method:function(t){return"function"===typeof t},email:function(t){return"string"===typeof t&&!!t.match(w.email)&&t.length<255},url:function(t){return"string"===typeof t&&!!t.match(w.url)},hex:function(t){return"string"===typeof t&&!!t.match(w.hex)}};function O(t,e,n,r,i){if(t.required&&void 0===e)b(t,e,n,r,i);else{var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?S[s](e)||r.push(u(i.messages.types[s],t.fullField,t.type)):s&&("undefined"===typeof e?"undefined":a()(e))!==t.type&&r.push(u(i.messages.types[s],t.fullField,t.type))}}var C=O;function k(t,e,n,r,i){var o="number"===typeof t.len,a="number"===typeof t.min,s="number"===typeof t.max,l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=e,h=null,f="number"===typeof e,d="string"===typeof e,p=Array.isArray(e);if(f?h="number":d?h="string":p&&(h="array"),!h)return!1;p&&(c=e.length),d&&(c=e.replace(l,"_").length),o?c!==t.len&&r.push(u(i.messages[h].len,t.fullField,t.len)):a&&!s&&ct.max?r.push(u(i.messages[h].max,t.fullField,t.max)):a&&s&&(ct.max)&&r.push(u(i.messages[h].range,t.fullField,t.min,t.max))}var A=k,M="enum";function T(t,e,n,r,i){t[M]=Array.isArray(t[M])?t[M]:[],-1===t[M].indexOf(e)&&r.push(u(i.messages[M],t.fullField,t[M].join(", ")))}var I=T;function E(t,e,n,r,i){if(t.pattern)if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||r.push(u(i.messages.pattern.mismatch,t.fullField,e,t.pattern));else if("string"===typeof t.pattern){var o=new RegExp(t.pattern);o.test(e)||r.push(u(i.messages.pattern.mismatch,t.fullField,e,t.pattern))}}var P=E,j={required:b,whitespace:x,type:C,range:A,enum:I,pattern:P};function L(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(h(e,"string")&&!t.required)return n();j.required(t,e,r,o,i,"string"),h(e,"string")||(j.type(t,e,r,o,i),j.range(t,e,r,o,i),j.pattern(t,e,r,o,i),!0===t.whitespace&&j.whitespace(t,e,r,o,i))}n(o)}var D=L;function R(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(h(e)&&!t.required)return n();j.required(t,e,r,o,i),void 0!==e&&j.type(t,e,r,o,i)}n(o)}var N=R;function B(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(h(e)&&!t.required)return n();j.required(t,e,r,o,i),void 0!==e&&(j.type(t,e,r,o,i),j.range(t,e,r,o,i))}n(o)}var F=B;function z(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(h(e)&&!t.required)return n();j.required(t,e,r,o,i),void 0!==e&&j.type(t,e,r,o,i)}n(o)}var V=z;function q(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(h(e)&&!t.required)return n();j.required(t,e,r,o,i),h(e)||j.type(t,e,r,o,i)}n(o)}var G=q;function H(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(h(e)&&!t.required)return n();j.required(t,e,r,o,i),void 0!==e&&(j.type(t,e,r,o,i),j.range(t,e,r,o,i))}n(o)}var W=H;function U(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(h(e)&&!t.required)return n();j.required(t,e,r,o,i),void 0!==e&&(j.type(t,e,r,o,i),j.range(t,e,r,o,i))}n(o)}var $=U;function Y(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(h(e,"array")&&!t.required)return n();j.required(t,e,r,o,i,"array"),h(e,"array")||(j.type(t,e,r,o,i),j.range(t,e,r,o,i))}n(o)}var X=Y;function K(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(h(e)&&!t.required)return n();j.required(t,e,r,o,i),void 0!==e&&j.type(t,e,r,o,i)}n(o)}var Z=K,Q="enum";function J(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(h(e)&&!t.required)return n();j.required(t,e,r,o,i),e&&j[Q](t,e,r,o,i)}n(o)}var tt=J;function et(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(h(e,"string")&&!t.required)return n();j.required(t,e,r,o,i),h(e,"string")||j.pattern(t,e,r,o,i)}n(o)}var nt=et;function rt(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(h(e)&&!t.required)return n();if(j.required(t,e,r,o,i),!h(e)){var s=void 0;s="number"===typeof e?new Date(e):e,j.type(t,s,r,o,i),s&&j.range(t,s.getTime(),r,o,i)}}n(o)}var it=rt;function ot(t,e,n,r,i){var o=[],s=Array.isArray(e)?"array":"undefined"===typeof e?"undefined":a()(e);j.required(t,e,r,o,i,s),n(o)}var at=ot;function st(t,e,n,r,i){var o=t.type,a=[],s=t.required||!t.required&&r.hasOwnProperty(t.field);if(s){if(h(e,o)&&!t.required)return n();j.required(t,e,r,a,i,o),h(e,o)||j.type(t,e,r,a,i)}n(a)}var lt=st,ut={string:D,method:N,number:F,boolean:V,regexp:G,integer:W,float:$,array:X,object:Z,enum:tt,pattern:nt,date:it,url:lt,hex:lt,email:lt,required:at};function ct(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var ht=ct();function ft(t){this.rules=null,this._messages=ht,this.define(t)}ft.prototype={messages:function(t){return t&&(this._messages=y(ct(),t)),this._messages},define:function(t){if(!t)throw new Error("Cannot configure a schema with no rules");if("object"!==("undefined"===typeof t?"undefined":a()(t))||Array.isArray(t))throw new Error("Rules must be an object");this.rules={};var e=void 0,n=void 0;for(e in t)t.hasOwnProperty(e)&&(n=t[e],this.rules[e]=Array.isArray(n)?n:[n])},validate:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments[2],o=t,s=n,c=r;if("function"===typeof s&&(c=s,s={}),this.rules&&0!==Object.keys(this.rules).length){if(s.messages){var h=this.messages();h===ht&&(h=ct()),y(h,s.messages),s.messages=h}else s.messages=this.messages();var f=void 0,d=void 0,p={},m=s.keys||Object.keys(this.rules);m.forEach((function(n){f=e.rules[n],d=o[n],f.forEach((function(r){var a=r;"function"===typeof a.transform&&(o===t&&(o=i()({},o)),d=o[n]=a.transform(d)),a="function"===typeof a?{validator:a}:i()({},a),a.validator=e.getValidationMethod(a),a.field=n,a.fullField=a.fullField||n,a.type=e.getType(a),a.validator&&(p[n]=p[n]||[],p[n].push({rule:a,value:d,source:o,field:n}))}))}));var b={};g(p,s,(function(t,e){var n=t.rule,r=("object"===n.type||"array"===n.type)&&("object"===a()(n.fields)||"object"===a()(n.defaultField));function o(t,e){return i()({},e,{fullField:n.fullField+"."+t})}function c(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],c=a;if(Array.isArray(c)||(c=[c]),c.length&&l("async-validator:",c),c.length&&n.message&&(c=[].concat(n.message)),c=c.map(v(n)),s.first&&c.length)return b[n.field]=1,e(c);if(r){if(n.required&&!t.value)return c=n.message?[].concat(n.message).map(v(n)):s.error?[s.error(n,u(s.messages.required,n.field))]:[],e(c);var h={};if(n.defaultField)for(var f in t.value)t.value.hasOwnProperty(f)&&(h[f]=n.defaultField);for(var d in h=i()({},h,t.rule.fields),h)if(h.hasOwnProperty(d)){var p=Array.isArray(h[d])?h[d]:[h[d]];h[d]=p.map(o.bind(null,d))}var g=new ft(h);g.messages(s.messages),t.rule.options&&(t.rule.options.messages=s.messages,t.rule.options.error=s.error),g.validate(t.value,t.rule.options||s,(function(t){e(t&&t.length?c.concat(t):t)}))}else e(c)}r=r&&(n.required||!n.required&&t.value),n.field=t.field;var h=n.validator(n,t.value,c,t.source,s);h&&h.then&&h.then((function(){return c()}),(function(t){return c(t)}))}),(function(t){_(t)}))}else c&&c();function _(t){var e=void 0,n=void 0,r=[],i={};function o(t){Array.isArray(t)?r=r.concat.apply(r,t):r.push(t)}for(e=0;e_-r+n;p--)f(b,p-1)}else if(n>r)for(p=_-r;p>x;p--)y=p+r-1,m=p+n-1,y in b?b[m]=b[y]:f(b,m);for(p=0;p0&&(this.aliasToTopic=new r({max:t}),this.topicToAlias={},this.numberAllocator=new i(1,t),this.max=t,this.length=0)}o.prototype.put=function(t,e){if(0===e||e>this.max)return!1;const n=this.aliasToTopic.get(e);return n&&delete this.topicToAlias[n],this.aliasToTopic.set(e,t),this.topicToAlias[t]=e,this.numberAllocator.use(e),this.length=this.aliasToTopic.length,!0},o.prototype.getTopicByAlias=function(t){return this.aliasToTopic.get(t)},o.prototype.getAliasByTopic=function(t){const e=this.topicToAlias[t];return"undefined"!==typeof e&&this.aliasToTopic.get(e),e},o.prototype.clear=function(){this.aliasToTopic.reset(),this.topicToAlias={},this.numberAllocator.clear(),this.length=0},o.prototype.getLruAlias=function(){const t=this.numberAllocator.firstVacant();return t||this.aliasToTopic.keys()[this.aliasToTopic.length-1]},t.exports=o},a493:function(t,e,n){"use strict";(function(e){var r=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=u;var i=n("0e8b"),o=n("f6ba");n("3fb5")(u,i);for(var a=r(o.prototype),s=0;s(t.transparent="rgba(0,0,0,0)",t.black="#000000",t.silver="#C0C0C0",t.gray="#808080",t.white="#FFFFFF",t.maroon="#800000",t.red="#FF0000",t.purple="#800080",t.fuchsia="#FF00FF",t.green="#008000",t.lime="#00FF00",t.olive="#808000",t.yellow="#FFFF00",t.navy="#000080",t.blue="#0000FF",t.teal="#008080",t.aqua="#00FFFF",t.aliceblue="#f0f8ff",t.antiquewhite="#faebd7",t.aquamarine="#7fffd4",t.azure="#f0ffff",t.beige="#f5f5dc",t.bisque="#ffe4c4",t.blanchedalmond="#ffebcd",t.blueviolet="#8a2be2",t.brown="#a52a2a",t.burlywood="#deb887",t.cadetblue="#5f9ea0",t.chartreuse="#7fff00",t.chocolate="#d2691e",t.coral="#ff7f50",t.cornflowerblue="#6495ed",t.cornsilk="#fff8dc",t.crimson="#dc143c",t.cyan="#00ffff",t.darkblue="#00008b",t.darkcyan="#008b8b",t.darkgoldenrod="#b8860b",t.darkgray="#a9a9a9",t.darkgreen="#006400",t.darkgrey="#a9a9a9",t.darkkhaki="#bdb76b",t.darkmagenta="#8b008b",t.darkolivegreen="#556b2f",t.darkorange="#ff8c00",t.darkorchid="#9932cc",t.darkred="#8b0000",t.darksalmon="#e9967a",t.darkseagreen="#8fbc8f",t.darkslateblue="#483d8b",t.darkslategray="#2f4f4f",t.darkslategrey="#2f4f4f",t.darkturquoise="#00ced1",t.darkviolet="#9400d3",t.deeppink="#ff1493",t.deepskyblue="#00bfff",t.dimgray="#696969",t.dimgrey="#696969",t.dodgerblue="#1e90ff",t.firebrick="#b22222",t.floralwhite="#fffaf0",t.forestgreen="#228b22",t.gainsboro="#dcdcdc",t.ghostwhite="#f8f8ff",t.gold="#ffd700",t.goldenrod="#daa520",t.greenyellow="#adff2f",t.grey="#808080",t.honeydew="#f0fff0",t.hotpink="#ff69b4",t.indianred="#cd5c5c",t.indigo="#4b0082",t.ivory="#fffff0",t.khaki="#f0e68c",t.lavender="#e6e6fa",t.lavenderblush="#fff0f5",t.lawngreen="#7cfc00",t.lemonchiffon="#fffacd",t.lightblue="#add8e6",t.lightcoral="#f08080",t.lightcyan="#e0ffff",t.lightgoldenrodyellow="#fafad2",t.lightgray="#d3d3d3",t.lightgreen="#90ee90",t.lightgrey="#d3d3d3",t.lightpink="#ffb6c1",t.lightsalmon="#ffa07a",t.lightseagreen="#20b2aa",t.lightskyblue="#87cefa",t.lightslategray="#778899",t.lightslategrey="#778899",t.lightsteelblue="#b0c4de",t.lightyellow="#ffffe0",t.limegreen="#32cd32",t.linen="#faf0e6",t.magenta="#ff00ff",t.mediumaquamarine="#66cdaa",t.mediumblue="#0000cd",t.mediumorchid="#ba55d3",t.mediumpurple="#9370db",t.mediumseagreen="#3cb371",t.mediumslateblue="#7b68ee",t.mediumspringgreen="#00fa9a",t.mediumturquoise="#48d1cc",t.mediumvioletred="#c71585",t.midnightblue="#191970",t.mintcream="#f5fffa",t.mistyrose="#ffe4e1",t.moccasin="#ffe4b5",t.navajowhite="#ffdead",t.oldlace="#fdf5e6",t.olivedrab="#6b8e23",t.orange="#ffa500",t.orangered="#ff4500",t.orchid="#da70d6",t.palegoldenrod="#eee8aa",t.palegreen="#98fb98",t.paleturquoise="#afeeee",t.palevioletred="#db7093",t.papayawhip="#ffefd5",t.peachpuff="#ffdab9",t.peru="#cd853f",t.pink="#ffc0cb",t.plum="#dda0dd",t.powderblue="#b0e0e6",t.rosybrown="#bc8f8f",t.royalblue="#4169e1",t.saddlebrown="#8b4513",t.salmon="#fa8072",t.sandybrown="#f4a460",t.seagreen="#2e8b57",t.seashell="#fff5ee",t.sienna="#a0522d",t.skyblue="#87ceeb",t.slateblue="#6a5acd",t.slategray="#708090",t.snow="#fffafa",t.springgreen="#00ff7f",t.steelblue="#4682b4",t.tan="#d2b48c",t.thistle="#d8bfd8",t.tomato="#ff6347",t.turquoise="#40e0d0",t.violet="#ee82ee",t.wheat="#f5deb3",t.whitesmoke="#f5f5f5",t.yellowgreen="#9acd32",t))(r||{});function i(t){return"string"==typeof t&&(t=t.toLowerCase(),/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t))}function o(t){return"string"==typeof t&&(t=t.toLowerCase(),/^(rgb\(|RGB\()/.test(t))}function a(t){return"string"==typeof t&&(t=t.toLowerCase(),/^(rgba|RGBA)/.test(t))}function s(t){return/^(rgb|rgba|RGB|RGBA)/.test(t)}function l(t){return r[t]}function u(t){if(i(t)||s(t))return t;const e=l(t);if(!e)throw new Error("Color: Invalid Input of "+t);return e}function c(t){t=t.replace("#",""),3===t.length&&(t=Array.from(t).map(t=>t+t).join(""));const e=t.split("");return new Array(3).fill(0).map((t,n)=>parseInt(`0x${e[2*n]}${e[2*n+1]}`))}function h(t){return t.replace(/rgb\(|rgba\(|\)/g,"").split(",").slice(0,3).map(t=>parseInt(t))}function f(t){const e=u(t).toLowerCase();return i(e)?c(e):h(e)}function d(t){const e=u(t);return a(e)?Number(e.toLowerCase().split(",").slice(-1)[0].replace(/[)|\s]/g,"")):1}function p(t){const e=f(t);return e&&[...e,d(t)]}function g(t,e){const n=f(t);return"number"==typeof e?`rgba(${n.join(",")},${e})`:`rgb(${n.join(",")})`}function v(t){if(i(t))return t;const e=f(t),n=t=>Number(t).toString(16).padStart(2,"0");return"#"+e.map(n).join("")}function y(t){if(!Array.isArray(t))throw new Error(`getColorFromRgbValue: ${t} is not an array`);const{length:e}=t;if(3!==e&&4!==e)throw new Error("getColorFromRgbValue: value length should be 3 or 4");return(3===e?"rgb(":"rgba(")+t.join(",")+")"}function m(t,e=0){let n=p(t);return n=n.map((t,n)=>3===n?t:t-Math.ceil(2.55*e)).map(t=>t<0?0:t),y(n)}function b(t,e=0){let n=p(t);return n=n.map((t,n)=>3===n?t:t+Math.ceil(2.55*e)).map(t=>t>255?255:t),y(n)}function _(t,e=100){const n=f(t);return y([...n,e/100])}},a9e3:function(t,e,n){"use strict";var r=n("83ab"),i=n("da84"),o=n("e330"),a=n("94ca"),s=n("cb2d"),l=n("1a2d"),u=n("7156"),c=n("3a9b"),h=n("d9b5"),f=n("c04e"),d=n("d039"),p=n("241c").f,g=n("06cf").f,v=n("9bf2").f,y=n("408a"),m=n("58a8").trim,b="Number",_=i[b],x=_.prototype,w=i.TypeError,S=o("".slice),O=o("".charCodeAt),C=function(t){var e=f(t,"number");return"bigint"==typeof e?e:k(e)},k=function(t){var e,n,r,i,o,a,s,l,u=f(t,"number");if(h(u))throw w("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=m(u),e=O(u,0),43===e||45===e){if(n=O(u,2),88===n||120===n)return NaN}else if(48===e){switch(O(u,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(o=S(u,2),a=o.length,s=0;si)return NaN;return parseInt(o,r)}return+u};if(a(b,!_(" 0o1")||!_("0b1")||_("+0x1"))){for(var A,M=function(t){var e=arguments.length<1?0:_(C(t)),n=this;return c(x,n)&&d((function(){y(n)}))?u(Object(e),n,M):e},T=r?p(_):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),I=0;T.length>I;I++)l(_,A=T[I])&&!l(M,A)&&v(M,A,g(_,A));M.prototype=x,x.constructor=M,s(i,b,M,{constructor:!0})}},aa22:function(t,e,n){"use strict";var r=n("3ee2").Buffer,i=r.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(t){if(!t)return"utf8";var e;while(1)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function a(t){var e=o(t);if("string"!==typeof e&&(r.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}function s(t){var e;switch(this.encoding=a(t),this.encoding){case"utf16le":this.text=p,this.end=g,e=4;break;case"utf8":this.fillLast=h,e=4;break;case"base64":this.text=v,this.end=y,e=3;break;default:return this.write=m,void(this.end=b)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function l(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function u(t,e,n){var r=e.length-1;if(r=0?(i>0&&(t.lastNeed=i-1),i):--r=0?(i>0&&(t.lastNeed=i-2),i):--r=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0))}function c(t,e,n){if(128!==(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!==(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!==(192&e[2]))return t.lastNeed=2,"�"}}function h(t){var e=this.lastTotal-this.lastNeed,n=c(this,t,e);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function f(t,e){var n=u(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)}function d(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e}function p(t,e){if((t.length-e)%2===0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function g(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function v(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function y(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function m(t){return t.toString(this.encoding)}function b(t){return t&&t.length?this.write(t):""}e.StringDecoder=s,s.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(e=this.fillLast(t),void 0===e)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n0)t[r]=t[--r];r!==o++&&(t[r]=n)}return t},s=function(t,e,n,r){var i=e.length,o=n.length,a=0,s=0;while(a1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.25,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.25;if(!(t instanceof Array))return console.error("polylineToBezierCurve: Parameter polyline must be an array!"),!1;if(t.length<=2)return console.error("polylineToBezierCurve: Converting to a curve requires at least 3 points!"),!1;var i=t[0],a=t.length-1,u=new Array(a).fill(0).map((function(i,a){return[].concat((0,o["default"])(s(t,a,e,n,r)),[t[a+1]])}));return e&&l(u,i),u.unshift(t[0]),u}function s(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.25,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.25,o=t.length;if(!(o<3||e>=o)){var a=e-1;a<0&&(a=n?o+a:0);var s=e+1;s>=o&&(s=n?s-o:o-1);var l=e+2;l>=o&&(l=n?l-o:o-1);var u=t[a],c=t[e],h=t[s],f=t[l];return[[c[0]+r*(h[0]-u[0]),c[1]+r*(h[1]-u[1])],[h[0]-i*(f[0]-c[0]),h[1]-i*(f[1]-c[1])]]}}function l(t,e){var n=t[0],r=t.slice(-1)[0];return t.push([u(r[1],r[2]),u(n[0],e),e]),t}function u(t,e){var n=(0,i["default"])(t,2),r=n[0],o=n[1],a=(0,i["default"])(e,2),s=a[0],l=a[1],u=s-r,c=l-o;return[s+u,l+c]}var c=a;e["default"]=c},ae84:function(t,e,n){"use strict";function r(t){const e=t.split("/");for(let n=0;n3}))}},aff5:function(t,e,n){var r=n("23e7");r({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},aff9:function(t,e,n){"use strict";t.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}},b041:function(t,e,n){"use strict";var r=n("00ee"),i=n("f5df");t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},b06d:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.extendNewGraph=O,e["default"]=e.text=e.bezierCurve=e.smoothline=e.polyline=e.regPolygon=e.sector=e.arc=e.ring=e.rect=e.ellipse=e.circle=void 0;var i=r(n("448a")),o=r(n("278c")),a=r(n("050c")),s=n("5557"),l=n("e169"),u=a["default"].polylineToBezierCurve,c=a["default"].bezierCurveToPolyline,h={shape:{rx:0,ry:0,r:0},validator:function(t){var e=t.shape,n=e.rx,r=e.ry,i=e.r;return"number"===typeof n&&"number"===typeof r&&"number"===typeof i||(console.error("Circle shape configuration is abnormal!"),!1)},draw:function(t,e){var n=t.ctx,r=e.shape;n.beginPath();var i=r.rx,o=r.ry,a=r.r;n.arc(i,o,a>0?a:.01,0,2*Math.PI),n.fill(),n.stroke(),n.closePath()},hoverCheck:function(t,e){var n=e.shape,r=n.rx,i=n.ry,o=n.r;return(0,s.checkPointIsInCircle)(t,r,i,o)},setGraphCenter:function(t,e){var n=e.shape,r=e.style,i=n.rx,o=n.ry;r.graphCenter=[i,o]},move:function(t,e){var n=t.movementX,r=t.movementY,i=e.shape;this.attr("shape",{rx:i.rx+n,ry:i.ry+r})}};e.circle=h;var f={shape:{rx:0,ry:0,hr:0,vr:0},validator:function(t){var e=t.shape,n=e.rx,r=e.ry,i=e.hr,o=e.vr;return"number"===typeof n&&"number"===typeof r&&"number"===typeof i&&"number"===typeof o||(console.error("Ellipse shape configuration is abnormal!"),!1)},draw:function(t,e){var n=t.ctx,r=e.shape;n.beginPath();var i=r.rx,o=r.ry,a=r.hr,s=r.vr;n.ellipse(i,o,a>0?a:.01,s>0?s:.01,0,0,2*Math.PI),n.fill(),n.stroke(),n.closePath()},hoverCheck:function(t,e){var n=e.shape,r=n.rx,i=n.ry,o=n.hr,a=n.vr,l=Math.max(o,a),u=Math.min(o,a),c=Math.sqrt(l*l-u*u),h=[r-c,i],f=[r+c,i],d=(0,s.getTwoPointDistance)(t,h)+(0,s.getTwoPointDistance)(t,f);return d<=2*l},setGraphCenter:function(t,e){var n=e.shape,r=e.style,i=n.rx,o=n.ry;r.graphCenter=[i,o]},move:function(t,e){var n=t.movementX,r=t.movementY,i=e.shape;this.attr("shape",{rx:i.rx+n,ry:i.ry+r})}};e.ellipse=f;var d={shape:{x:0,y:0,w:0,h:0},validator:function(t){var e=t.shape,n=e.x,r=e.y,i=e.w,o=e.h;return"number"===typeof n&&"number"===typeof r&&"number"===typeof i&&"number"===typeof o||(console.error("Rect shape configuration is abnormal!"),!1)},draw:function(t,e){var n=t.ctx,r=e.shape;n.beginPath();var i=r.x,o=r.y,a=r.w,s=r.h;n.rect(i,o,a,s),n.fill(),n.stroke(),n.closePath()},hoverCheck:function(t,e){var n=e.shape,r=n.x,i=n.y,o=n.w,a=n.h;return(0,s.checkPointIsInRect)(t,r,i,o,a)},setGraphCenter:function(t,e){var n=e.shape,r=e.style,i=n.x,o=n.y,a=n.w,s=n.h;r.graphCenter=[i+a/2,o+s/2]},move:function(t,e){var n=t.movementX,r=t.movementY,i=e.shape;this.attr("shape",{x:i.x+n,y:i.y+r})}};e.rect=d;var p={shape:{rx:0,ry:0,r:0},validator:function(t){var e=t.shape,n=e.rx,r=e.ry,i=e.r;return"number"===typeof n&&"number"===typeof r&&"number"===typeof i||(console.error("Ring shape configuration is abnormal!"),!1)},draw:function(t,e){var n=t.ctx,r=e.shape;n.beginPath();var i=r.rx,o=r.ry,a=r.r;n.arc(i,o,a>0?a:.01,0,2*Math.PI),n.stroke(),n.closePath()},hoverCheck:function(t,e){var n=e.shape,r=e.style,i=n.rx,o=n.ry,a=n.r,l=r.lineWidth,u=l/2,c=a-u,h=a+u,f=(0,s.getTwoPointDistance)(t,[i,o]);return f>=c&&f<=h},setGraphCenter:function(t,e){var n=e.shape,r=e.style,i=n.rx,o=n.ry;r.graphCenter=[i,o]},move:function(t,e){var n=t.movementX,r=t.movementY,i=e.shape;this.attr("shape",{rx:i.rx+n,ry:i.ry+r})}};e.ring=p;var g={shape:{rx:0,ry:0,r:0,startAngle:0,endAngle:0,clockWise:!0},validator:function(t){var e=t.shape,n=["rx","ry","r","startAngle","endAngle"];return!n.find((function(t){return"number"!==typeof e[t]}))||(console.error("Arc shape configuration is abnormal!"),!1)},draw:function(t,e){var n=t.ctx,r=e.shape;n.beginPath();var i=r.rx,o=r.ry,a=r.r,s=r.startAngle,l=r.endAngle,u=r.clockWise;n.arc(i,o,a>0?a:.001,s,l,!u),n.stroke(),n.closePath()},hoverCheck:function(t,e){var n=e.shape,r=e.style,i=n.rx,o=n.ry,a=n.r,l=n.startAngle,u=n.endAngle,c=n.clockWise,h=r.lineWidth,f=h/2,d=a-f,p=a+f;return!(0,s.checkPointIsInSector)(t,i,o,d,l,u,c)&&(0,s.checkPointIsInSector)(t,i,o,p,l,u,c)},setGraphCenter:function(t,e){var n=e.shape,r=e.style,i=n.rx,o=n.ry;r.graphCenter=[i,o]},move:function(t,e){var n=t.movementX,r=t.movementY,i=e.shape;this.attr("shape",{rx:i.rx+n,ry:i.ry+r})}};e.arc=g;var v={shape:{rx:0,ry:0,r:0,startAngle:0,endAngle:0,clockWise:!0},validator:function(t){var e=t.shape,n=["rx","ry","r","startAngle","endAngle"];return!n.find((function(t){return"number"!==typeof e[t]}))||(console.error("Sector shape configuration is abnormal!"),!1)},draw:function(t,e){var n=t.ctx,r=e.shape;n.beginPath();var i=r.rx,o=r.ry,a=r.r,s=r.startAngle,l=r.endAngle,u=r.clockWise;n.arc(i,o,a>0?a:.01,s,l,!u),n.lineTo(i,o),n.closePath(),n.stroke(),n.fill()},hoverCheck:function(t,e){var n=e.shape,r=n.rx,i=n.ry,o=n.r,a=n.startAngle,l=n.endAngle,u=n.clockWise;return(0,s.checkPointIsInSector)(t,r,i,o,a,l,u)},setGraphCenter:function(t,e){var n=e.shape,r=e.style,i=n.rx,o=n.ry;r.graphCenter=[i,o]},move:function(t,e){var n=t.movementX,r=t.movementY,i=e.shape,o=i.rx,a=i.ry;this.attr("shape",{rx:o+n,ry:a+r})}};e.sector=v;var y={shape:{rx:0,ry:0,r:0,side:0},validator:function(t){var e=t.shape,n=e.side,r=["rx","ry","r","side"];return r.find((function(t){return"number"!==typeof e[t]}))?(console.error("RegPolygon shape configuration is abnormal!"),!1):!(n<3)||(console.error("RegPolygon at least trigon!"),!1)},draw:function(t,e){var n=t.ctx,r=e.shape,i=e.cache;n.beginPath();var o=r.rx,a=r.ry,u=r.r,c=r.side;if(!i.points||i.rx!==o||i.ry!==a||i.r!==u||i.side!==c){var h=(0,s.getRegularPolygonPoints)(o,a,u,c);Object.assign(i,{points:h,rx:o,ry:a,r:u,side:c})}var f=i.points;(0,l.drawPolylinePath)(n,f),n.closePath(),n.stroke(),n.fill()},hoverCheck:function(t,e){var n=e.cache,r=n.points;return(0,s.checkPointIsInPolygon)(t,r)},setGraphCenter:function(t,e){var n=e.shape,r=e.style,i=n.rx,o=n.ry;r.graphCenter=[i,o]},move:function(t,e){var n=t.movementX,r=t.movementY,i=e.shape,a=e.cache,s=i.rx,l=i.ry;a.rx+=n,a.ry+=r,this.attr("shape",{rx:s+n,ry:l+r}),a.points=a.points.map((function(t){var e=(0,o["default"])(t,2),i=e[0],a=e[1];return[i+n,a+r]}))}};e.regPolygon=y;var m={shape:{points:[],close:!1},validator:function(t){var e=t.shape,n=e.points;return n instanceof Array||(console.error("Polyline points should be an array!"),!1)},draw:function(t,e){var n=t.ctx,r=e.shape,i=e.style.lineWidth;n.beginPath();var o=r.points,a=r.close;1===i&&(o=(0,s.eliminateBlur)(o)),(0,l.drawPolylinePath)(n,o),a?(n.closePath(),n.fill(),n.stroke()):n.stroke()},hoverCheck:function(t,e){var n=e.shape,r=e.style,i=n.points,o=n.close,a=r.lineWidth;return o?(0,s.checkPointIsInPolygon)(t,i):(0,s.checkPointIsNearPolyline)(t,i,a)},setGraphCenter:function(t,e){var n=e.shape,r=e.style,i=n.points;r.graphCenter=i[0]},move:function(t,e){var n=t.movementX,r=t.movementY,i=e.shape,a=i.points,s=a.map((function(t){var e=(0,o["default"])(t,2),i=e[0],a=e[1];return[i+n,a+r]}));this.attr("shape",{points:s})}};e.polyline=m;var b={shape:{points:[],close:!1},validator:function(t){var e=t.shape,n=e.points;return n instanceof Array||(console.error("Smoothline points should be an array!"),!1)},draw:function(t,e){var n=t.ctx,r=e.shape,i=e.cache,o=r.points,a=r.close;if(!i.points||i.points.toString()!==o.toString()){var h=u(o,a),f=c(h);Object.assign(i,{points:(0,s.deepClone)(o,!0),bezierCurve:h,hoverPoints:f})}var d=i.bezierCurve;n.beginPath(),(0,l.drawBezierCurvePath)(n,d.slice(1),d[0]),a?(n.closePath(),n.fill(),n.stroke()):n.stroke()},hoverCheck:function(t,e){var n=e.cache,r=e.shape,i=e.style,o=n.hoverPoints,a=r.close,l=i.lineWidth;return a?(0,s.checkPointIsInPolygon)(t,o):(0,s.checkPointIsNearPolyline)(t,o,l)},setGraphCenter:function(t,e){var n=e.shape,r=e.style,i=n.points;r.graphCenter=i[0]},move:function(t,e){var n=t.movementX,r=t.movementY,a=e.shape,s=e.cache,l=a.points,u=l.map((function(t){var e=(0,o["default"])(t,2),i=e[0],a=e[1];return[i+n,a+r]}));s.points=u;var c=(0,o["default"])(s.bezierCurve[0],2),h=c[0],f=c[1],d=s.bezierCurve.slice(1);s.bezierCurve=[[h+n,f+r]].concat((0,i["default"])(d.map((function(t){return t.map((function(t){var e=(0,o["default"])(t,2),i=e[0],a=e[1];return[i+n,a+r]}))})))),s.hoverPoints=s.hoverPoints.map((function(t){var e=(0,o["default"])(t,2),i=e[0],a=e[1];return[i+n,a+r]})),this.attr("shape",{points:u})}};e.smoothline=b;var _={shape:{points:[],close:!1},validator:function(t){var e=t.shape,n=e.points;return n instanceof Array||(console.error("BezierCurve points should be an array!"),!1)},draw:function(t,e){var n=t.ctx,r=e.shape,i=e.cache,o=r.points,a=r.close;if(!i.points||i.points.toString()!==o.toString()){var u=c(o,20);Object.assign(i,{points:(0,s.deepClone)(o,!0),hoverPoints:u})}n.beginPath(),(0,l.drawBezierCurvePath)(n,o.slice(1),o[0]),a?(n.closePath(),n.fill(),n.stroke()):n.stroke()},hoverCheck:function(t,e){var n=e.cache,r=e.shape,i=e.style,o=n.hoverPoints,a=r.close,l=i.lineWidth;return a?(0,s.checkPointIsInPolygon)(t,o):(0,s.checkPointIsNearPolyline)(t,o,l)},setGraphCenter:function(t,e){var n=e.shape,r=e.style,i=n.points;r.graphCenter=i[0]},move:function(t,e){var n=t.movementX,r=t.movementY,a=e.shape,s=e.cache,l=a.points,u=(0,o["default"])(l[0],2),c=u[0],h=u[1],f=l.slice(1),d=[[c+n,h+r]].concat((0,i["default"])(f.map((function(t){return t.map((function(t){var e=(0,o["default"])(t,2),i=e[0],a=e[1];return[i+n,a+r]}))}))));s.points=d,s.hoverPoints=s.hoverPoints.map((function(t){var e=(0,o["default"])(t,2),i=e[0],a=e[1];return[i+n,a+r]})),this.attr("shape",{points:d})}};e.bezierCurve=_;var x={shape:{content:"",position:[],maxWidth:void 0,rowGap:0},validator:function(t){var e=t.shape,n=e.content,r=e.position,i=e.rowGap;return"string"!==typeof n?(console.error("Text content should be a string!"),!1):r instanceof Array?"number"===typeof i||(console.error("Text rowGap should be a number!"),!1):(console.error("Text position should be an array!"),!1)},draw:function(t,e){var n=t.ctx,r=e.shape,a=r.content,s=r.position,l=r.maxWidth,u=r.rowGap,c=n.textBaseline,h=n.font,f=parseInt(h.replace(/\D/g,"")),d=s,p=(0,o["default"])(d,2),g=p[0],v=p[1];a=a.split("\n");var y=a.length,m=f+u,b=y*m-u,_=0;"middle"===c&&(_=b/2,v+=f/2),"bottom"===c&&(_=b,v+=f),s=new Array(y).fill(0).map((function(t,e){return[g,v+e*m-_]})),n.beginPath(),a.forEach((function(t,e){n.fillText.apply(n,[t].concat((0,i["default"])(s[e]),[l])),n.strokeText.apply(n,[t].concat((0,i["default"])(s[e]),[l]))})),n.closePath()},hoverCheck:function(t,e){e.shape,e.style;return!1},setGraphCenter:function(t,e){var n=e.shape,r=e.style,o=n.position;r.graphCenter=(0,i["default"])(o)},move:function(t,e){var n=t.movementX,r=t.movementY,i=e.shape,a=(0,o["default"])(i.position,2),s=a[0],l=a[1];this.attr("shape",{position:[s+n,l+r]})}};e.text=x;var w=new Map([["circle",h],["ellipse",f],["rect",d],["ring",p],["arc",g],["sector",v],["regPolygon",y],["polyline",m],["smoothline",b],["bezierCurve",_],["text",x]]),S=w;function O(t,e){t&&e?e.shape?e.validator?e.draw?w.set(t,e):console.error("Required function of draw to extendNewGraph!"):console.error("Required function of validator to extendNewGraph!"):console.error("Required attribute of shape to extendNewGraph!"):console.error("ExtendNewGraph Missing Parameters!")}e["default"]=S},b0c0:function(t,e,n){var r=n("83ab"),i=n("5e77").EXISTS,o=n("e330"),a=n("9bf2").f,s=Function.prototype,l=o(s.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=o(u.exec),h="name";r&&!i&&a(s,h,{configurable:!0,get:function(){try{return c(u,l(this))[1]}catch(t){return""}}})},b289:function(t,e,n){(function(e){const n=t.exports;n.types={0:"reserved",1:"connect",2:"connack",3:"publish",4:"puback",5:"pubrec",6:"pubrel",7:"pubcomp",8:"subscribe",9:"suback",10:"unsubscribe",11:"unsuback",12:"pingreq",13:"pingresp",14:"disconnect",15:"auth"},n.codes={};for(const t in n.types){const e=n.types[t];n.codes[e]=t}n.CMD_SHIFT=4,n.CMD_MASK=240,n.DUP_MASK=8,n.QOS_MASK=3,n.QOS_SHIFT=1,n.RETAIN_MASK=1,n.VARBYTEINT_MASK=127,n.VARBYTEINT_FIN_MASK=128,n.VARBYTEINT_MAX=268435455,n.SESSIONPRESENT_MASK=1,n.SESSIONPRESENT_HEADER=e.from([n.SESSIONPRESENT_MASK]),n.CONNACK_HEADER=e.from([n.codes.connack<[0,1].map(i=>[0,1].map(o=>{const a=e.alloc(1);return a.writeUInt8(n.codes[t]<e.from([t])),n.EMPTY={pingreq:e.from([n.codes.pingreq<<4,0]),pingresp:e.from([n.codes.pingresp<<4,0]),disconnect:e.from([n.codes.disconnect<<4,0])}}).call(this,n("1c35").Buffer)},b311:function(t,e,n){ /*! * clipboard.js v2.0.8 * https://clipboardjs.com/ * * Licensed MIT © Zeno Rocha */ (function(e,n){t.exports=n()})(0,(function(){return function(){var t={134:function(t,e,n){"use strict";n.d(e,{default:function(){return M}});var r=n(279),i=n.n(r),o=n(370),a=n.n(o),s=n(817),l=n.n(s);function u(t){return u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"createFakeElement",value:function(){var t="rtl"===document.documentElement.getAttribute("dir");this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var e=window.pageYOffset||document.documentElement.scrollTop;return this.fakeElem.style.top="".concat(e,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var t=this,e=this.createFakeElement();this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(e),this.selectedText=l()(e),this.copyText(),this.removeFake()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=l()(this.target),this.copyText()}},{key:"copyText",value:function(){var t;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==u(t)||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}(),p=d;function g(t){return g="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"===typeof t.action?t.action:this.defaultAction,this.target="function"===typeof t.target?t.target:this.defaultTarget,this.text="function"===typeof t.text?t.text:this.defaultText,this.container="object"===g(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=a()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new p({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return k("action",t)}},{key:"defaultTarget",value:function(t){var e=k("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return k("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"===typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}]),n}(i()),M=A},828:function(t){var e=9;if("undefined"!==typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}function r(t,n){while(t&&t.nodeType!==e){if("function"===typeof t.matches&&t.matches(n))return t;t=t.parentNode}}t.exports=r},438:function(t,e,n){var r=n(828);function i(t,e,n,r,i){var o=a.apply(this,arguments);return t.addEventListener(n,o,i),{destroy:function(){t.removeEventListener(n,o,i)}}}function o(t,e,n,r,o){return"function"===typeof t.addEventListener?i.apply(null,arguments):"function"===typeof n?i.bind(null,document).apply(null,arguments):("string"===typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return i(t,e,n,r,o)})))}function a(t,e,n,i){return function(n){n.delegateTarget=r(n.target,e),n.delegateTarget&&i.call(t,n)}}t.exports=o},879:function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"===typeof t||t instanceof String},e.fn=function(t){var e=Object.prototype.toString.call(t);return"[object Function]"===e}},370:function(t,e,n){var r=n(879),i=n(438);function o(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!r.string(e))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(t))return a(t,e,n);if(r.nodeList(t))return s(t,e,n);if(r.string(t))return l(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function a(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}function s(t,e,n){return Array.prototype.forEach.call(t,(function(t){t.addEventListener(e,n)})),{destroy:function(){Array.prototype.forEach.call(t,(function(t){t.removeEventListener(e,n)}))}}}function l(t,e,n){return i(document.body,t,e,n)}t.exports=o},817:function(t){function e(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(t),r.removeAllRanges(),r.addRange(i),e=r.toString()}return e}t.exports=e},279:function(t){function e(){}e.prototype={on:function(t,e,n){var r=this.e||(this.e={});return(r[t]||(r[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var r=this;function i(){r.off(t,i),e.apply(n,arguments)}return i._=e,this.on(t,i,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),r=0,i=n.length;for(r;r0?r:n)(e)}},b4de:function(t,e,n){e=t.exports=n("3bd2"),e.Stream=e,e.Readable=e,e.Writable=n("1beb"),e.Duplex=n("030c"),e.Transform=n("7b6a"),e.PassThrough=n("aebc"),e.finished=n("ddda"),e.pipeline=n("32c3")},b4f8:function(t,e,n){var r=n("23e7"),i=n("d066"),o=n("1a2d"),a=n("577e"),s=n("5692"),l=n("0b43"),u=s("string-to-symbol-registry"),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{for:function(t){var e=a(t);if(o(u,e))return u[e];var n=i("Symbol")(e);return u[e]=n,c[n]=e,n}})},b50d:function(t,e,n){"use strict";var r=n("c532"),i=n("467f"),o=n("7aac"),a=n("30b5"),s=n("83b9"),l=n("c345"),u=n("3934"),c=n("2d83"),h=n("2444"),f=n("7a77");t.exports=function(t){return new Promise((function(e,n){var d,p=t.data,g=t.headers,v=t.responseType;function y(){t.cancelToken&&t.cancelToken.unsubscribe(d),t.signal&&t.signal.removeEventListener("abort",d)}r.isFormData(p)&&delete g["Content-Type"];var m=new XMLHttpRequest;if(t.auth){var b=t.auth.username||"",_=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";g.Authorization="Basic "+btoa(b+":"+_)}var x=s(t.baseURL,t.url);function w(){if(m){var r="getAllResponseHeaders"in m?l(m.getAllResponseHeaders()):null,o=v&&"text"!==v&&"json"!==v?m.response:m.responseText,a={data:o,status:m.status,statusText:m.statusText,headers:r,config:t,request:m};i((function(t){e(t),y()}),(function(t){n(t),y()}),a),m=null}}if(m.open(t.method.toUpperCase(),a(x,t.params,t.paramsSerializer),!0),m.timeout=t.timeout,"onloadend"in m?m.onloadend=w:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(w)},m.onabort=function(){m&&(n(c("Request aborted",t,"ECONNABORTED",m)),m=null)},m.onerror=function(){n(c("Network Error",t,null,m)),m=null},m.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",r=t.transitional||h.transitional;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(c(e,t,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",m)),m=null},r.isStandardBrowserEnv()){var S=(t.withCredentials||u(x))&&t.xsrfCookieName?o.read(t.xsrfCookieName):void 0;S&&(g[t.xsrfHeaderName]=S)}"setRequestHeader"in m&&r.forEach(g,(function(t,e){"undefined"===typeof p&&"content-type"===e.toLowerCase()?delete g[e]:m.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(m.withCredentials=!!t.withCredentials),v&&"json"!==v&&(m.responseType=t.responseType),"function"===typeof t.onDownloadProgress&&m.addEventListener("progress",t.onDownloadProgress),"function"===typeof t.onUploadProgress&&m.upload&&m.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(d=function(t){m&&(n(!t||t&&t.type?new f("canceled"):t),m.abort(),m=null)},t.cancelToken&&t.cancelToken.subscribe(d),t.signal&&(t.signal.aborted?d():t.signal.addEventListener("abort",d))),p||(p=null),m.send(p)}))}},b575:function(t,e,n){var r,i,o,a,s,l,u,c,h=n("da84"),f=n("0366"),d=n("06cf").f,p=n("2cf4").set,g=n("1cdc"),v=n("d4c3"),y=n("a4b4"),m=n("605d"),b=h.MutationObserver||h.WebKitMutationObserver,_=h.document,x=h.process,w=h.Promise,S=d(h,"queueMicrotask"),O=S&&S.value;O||(r=function(){var t,e;m&&(t=x.domain)&&t.exit();while(i){e=i.fn,i=i.next;try{e()}catch(n){throw i?a():o=void 0,n}}o=void 0,t&&t.enter()},g||m||y||!b||!_?!v&&w&&w.resolve?(u=w.resolve(void 0),u.constructor=w,c=f(u.then,u),a=function(){c(r)}):m?a=function(){x.nextTick(r)}:(p=f(p,h),a=function(){p(r)}):(s=!0,l=_.createTextNode(""),new b(r).observe(l,{characterData:!0}),a=function(){l.data=s=!s})),t.exports=O||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,a()),o=e}},b622:function(t,e,n){var r=n("da84"),i=n("5692"),o=n("1a2d"),a=n("90e3"),s=n("04f8"),l=n("fdbf"),u=i("wks"),c=r.Symbol,h=c&&c["for"],f=l?c:c&&c.withoutSetter||a;t.exports=function(t){if(!o(u,t)||!s&&"string"!=typeof u[t]){var e="Symbol."+t;s&&o(c,t)?u[t]=c[t]:u[t]=l&&h?h(e):f(e)}return u[t]}},b636:function(t,e,n){var r=n("e065");r("asyncIterator")},b64b:function(t,e,n){var r=n("23e7"),i=n("7b0b"),o=n("df75"),a=n("d039"),s=a((function(){o(1)}));r({target:"Object",stat:!0,forced:s},{keys:function(t){return o(i(t))}})},b680:function(t,e,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("5926"),a=n("408a"),s=n("1148"),l=n("d039"),u=RangeError,c=String,h=Math.floor,f=i(s),d=i("".slice),p=i(1..toFixed),g=function(t,e,n){return 0===e?n:e%2===1?g(t,e-1,n*t):g(t*t,e/2,n)},v=function(t){var e=0,n=t;while(n>=4096)e+=12,n/=4096;while(n>=2)e+=1,n/=2;return e},y=function(t,e,n){var r=-1,i=n;while(++r<6)i+=e*t[r],t[r]=i%1e7,i=h(i/1e7)},m=function(t,e){var n=6,r=0;while(--n>=0)r+=t[n],t[n]=h(r/e),r=r%e*1e7},b=function(t){var e=6,n="";while(--e>=0)if(""!==n||0===e||0!==t[e]){var r=c(t[e]);n=""===n?r:n+f("0",7-r.length)+r}return n},_=l((function(){return"0.000"!==p(8e-5,3)||"1"!==p(.9,0)||"1.25"!==p(1.255,2)||"1000000000000000128"!==p(0xde0b6b3a7640080,0)}))||!l((function(){p({})}));r({target:"Number",proto:!0,forced:_},{toFixed:function(t){var e,n,r,i,s=a(this),l=o(t),h=[0,0,0,0,0,0],p="",_="0";if(l<0||l>20)throw u("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return c(s);if(s<0&&(p="-",s=-s),s>1e-21)if(e=v(s*g(2,69,1))-69,n=e<0?s*g(2,-e,1):s/g(2,e,1),n*=4503599627370496,e=52-e,e>0){y(h,0,n),r=l;while(r>=7)y(h,1e7,0),r-=7;y(h,g(10,r,1),0),r=e-1;while(r>=23)m(h,1<<23),r-=23;m(h,1<0?(i=_.length,_=p+(i<=l?"0."+f("0",l-i)+_:d(_,0,i-l)+"."+d(_,i-l))):_=p+_,_}})},b727:function(t,e,n){var r=n("0366"),i=n("e330"),o=n("44ad"),a=n("7b0b"),s=n("07fa"),l=n("65f0"),u=i([].push),c=function(t){var e=1==t,n=2==t,i=3==t,c=4==t,h=6==t,f=7==t,d=5==t||h;return function(p,g,v,y){for(var m,b,_=a(p),x=o(_),w=r(g,v),S=s(x),O=0,C=y||l,k=e?C(p,S):n||f?C(p,0):void 0;S>O;O++)if((d||O in x)&&(m=x[O],b=w(m,O,_),t))if(e)k[O]=b;else if(b)switch(t){case 3:return!0;case 5:return m;case 6:return O;case 2:u(k,m)}else switch(t){case 4:return!1;case 7:u(k,m)}return h?-1:i||c?c:k}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},b72d:function(t,e,n){},b7d1:function(t,e,n){(function(e){function n(t,e){if(r("noDeprecation"))return t;var n=!1;function i(){if(!n){if(r("throwDeprecation"))throw new Error(e);r("traceDeprecation")?console.trace(e):console.warn(e),n=!0}return t.apply(this,arguments)}return i}function r(t){try{if(!e.localStorage)return!1}catch(r){return!1}var n=e.localStorage[t];return null!=n&&"true"===String(n).toLowerCase()}t.exports=n}).call(this,n("c8ba"))},b85c:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("d9e2");var r=n("06c5");function i(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Object(r["a"])(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,a=t},f:function(){try{s||null==n["return"]||n["return"]()}finally{if(l)throw a}}}}},b980:function(t,e,n){var r=n("d039"),i=n("5c6c");t.exports=!r((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",i(1,7)),7!==t.stack)}))},b98b:function(t,e,n){t.exports=n("faa1").EventEmitter},b9c7:function(t,e,n){n("e507"),t.exports=n("5524").Object.assign},ba01:function(t,e,n){t.exports=n("051b")},bb2f:function(t,e,n){var r=n("d039");t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},bc3a:function(t,e,n){t.exports=n("cee4")},bc96:function(t,e,n){},be3f:function(t,e,n){"use strict";(function(e){var r=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=u;var i=n("85f8"),o=n("13a8");n("3fb5")(u,i);for(var a=r(o.prototype),s=0;s=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},c401:function(t,e,n){"use strict";var r=n("c532"),i=n("2444");t.exports=function(t,e,n){var o=this||i;return r.forEach(n,(function(n){t=n.call(o,t,e)})),t}},c423:function(t,e,n){},c430:function(t,e){t.exports=!1},c4c7:function(t,e,n){"use strict";const{Buffer:r}=n("1c35"),i=n("035d").Transform,o=n("fb12");let a,s,l,u=!1;function c(){const t=new i;return t._write=function(t,e,n){a.sendSocketMessage({data:t.buffer,success:function(){n()},fail:function(){n(new Error)}})},t._flush=function(t){a.closeSocket({success:function(){t()}})},t}function h(t){t.hostname||(t.hostname="localhost"),t.path||(t.path="/"),t.wsOptions||(t.wsOptions={})}function f(t,e){const n="alis"===t.protocol?"wss":"ws";let r=n+"://"+t.hostname+t.path;return t.port&&80!==t.port&&443!==t.port&&(r=n+"://"+t.hostname+":"+t.port+t.path),"function"===typeof t.transformWsUrl&&(r=t.transformWsUrl(r,t,e)),r}function d(){u||(u=!0,a.onSocketOpen((function(){l.setReadable(s),l.setWritable(s),l.emit("connect")})),a.onSocketMessage((function(t){if("string"===typeof t.data){const e=r.from(t.data,"base64");s.push(e)}else{const e=new FileReader;e.addEventListener("load",(function(){let t=e.result;t=t instanceof ArrayBuffer?r.from(t):r.from(t,"utf8"),s.push(t)})),e.readAsArrayBuffer(t.data)}})),a.onSocketClose((function(){l.end(),l.destroy()})),a.onSocketError((function(t){l.destroy(t)})))}function p(t,e){if(e.hostname=e.hostname||e.host,!e.hostname)throw new Error("Could not determine host. Specify host manually.");const n="MQIsdp"===e.protocolId&&3===e.protocolVersion?"mqttv3.1":"mqtt";h(e);const r=f(e,t);return a=e.my,a.connectSocket({url:r,protocols:n}),s=c(),l=o.obj(),d(),l}t.exports=p},c513:function(t,e,n){var r=n("23e7"),i=n("1a2d"),o=n("d9b5"),a=n("0d51"),s=n("5692"),l=n("0b43"),u=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{keyFor:function(t){if(!o(t))throw TypeError(a(t)+" is not a symbol");if(i(u,t))return u[t]}})},c532:function(t,e,n){"use strict";var r=n("1d2b"),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function a(t){return"undefined"===typeof t}function s(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function l(t){return"[object ArrayBuffer]"===i.call(t)}function u(t){return"undefined"!==typeof FormData&&t instanceof FormData}function c(t){var e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function h(t){return"string"===typeof t}function f(t){return"number"===typeof t}function d(t){return null!==t&&"object"===typeof t}function p(t){if("[object Object]"!==i.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function g(t){return"[object Date]"===i.call(t)}function v(t){return"[object File]"===i.call(t)}function y(t){return"[object Blob]"===i.call(t)}function m(t){return"[object Function]"===i.call(t)}function b(t){return d(t)&&m(t.pipe)}function _(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams}function x(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function w(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function S(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),o(t))for(var n=0,r=t.length;n1?arguments[1]:void 0)}}),o(a)},c7c8:function(t,e,n){},c7eb:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("b636"),n("944a"),n("0c47"),n("23dc"),n("3410"),n("d9e2"),n("14d9"),n("159b"),n("b0c0"),n("131a"),n("1f68"),n("fb6a");var r=n("53ca");function i(){ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ i=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(I){c=function(t,e,n){return t[e]=n}}function h(t,e,n,r){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),s=new A(r||[]);return o(a,"_invoke",{value:S(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(I){return{type:"throw",arg:I}}}t.wrap=h;var d={};function p(){}function g(){}function v(){}var y={};c(y,s,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(M([])));b&&b!==e&&n.call(b,s)&&(y=b);var _=v.prototype=p.prototype=Object.create(y);function x(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function i(o,a,s,l){var u=f(t[o],t,a);if("throw"!==u.type){var c=u.arg,h=c.value;return h&&"object"==Object(r["a"])(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){i("next",t,s,l)}),(function(t){i("throw",t,s,l)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return i("throw",t,s,l)}))}l(u.arg)}var a;o(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return a=a?a.then(r,r):r()}})}function S(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return T()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=O(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=f(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function O(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator["return"]&&(e.method="return",e.arg=void 0,O(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=f(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,d;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function M(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:M(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}},c8af:function(t,e,n){"use strict";var r=n("c532");t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},c8d2:function(t,e,n){var r=n("5e77").PROPER,i=n("d039"),o=n("5899"),a="​…᠎";t.exports=function(t){return i((function(){return!!o[t]()||a[t]()!==a||r&&o[t].name!==t}))}},c901:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},c930:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.yAxisConfig=e.xAxisConfig=void 0;var r={name:"",show:!0,position:"bottom",nameGap:15,nameLocation:"end",nameTextStyle:{fill:"#333",fontSize:10},min:"20%",max:"20%",interval:null,minInterval:null,maxInterval:null,boundaryGap:null,splitNumber:5,axisLine:{show:!0,style:{stroke:"#333",lineWidth:1}},axisTick:{show:!0,style:{stroke:"#333",lineWidth:1}},axisLabel:{show:!0,formatter:null,style:{fill:"#333",fontSize:10,rotate:0}},splitLine:{show:!1,style:{stroke:"#d4d4d4",lineWidth:1}},rLevel:-20,animationCurve:"easeOutCubic",animationFrame:50};e.xAxisConfig=r;var i={name:"",show:!0,position:"left",nameGap:15,nameLocation:"end",nameTextStyle:{fill:"#333",fontSize:10},min:"20%",max:"20%",interval:null,minInterval:null,maxInterval:null,boundaryGap:null,splitNumber:5,axisLine:{show:!0,style:{stroke:"#333",lineWidth:1}},axisTick:{show:!0,style:{stroke:"#333",lineWidth:1}},axisLabel:{show:!0,formatter:null,style:{fill:"#333",fontSize:10,rotate:0}},splitLine:{show:!0,style:{stroke:"#d4d4d4",lineWidth:1}},rLevel:-20,animationCurve:"easeOutCubic",animationFrame:50};e.yAxisConfig=i},c973:function(t,e,n){function r(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,i)}function i(t){return function(){var e=this,n=arguments;return new Promise((function(i,o){var a=t.apply(e,n);function s(t){r(a,i,o,s,l,"next",t)}function l(t){r(a,i,o,s,l,"throw",t)}s(void 0)}))}}n("d3b7"),t.exports=i,t.exports.__esModule=!0,t.exports["default"]=t.exports},ca84:function(t,e,n){var r=n("e330"),i=n("1a2d"),o=n("fc6a"),a=n("4d64").indexOf,s=n("d012"),l=r([].push);t.exports=function(t,e){var n,r=o(t),u=0,c=[];for(n in r)!i(s,n)&&i(r,n)&&l(c,n);while(e.length>u)i(r,n=e[u++])&&(~a(c,n)||l(c,n));return c}},caad:function(t,e,n){"use strict";var r=n("23e7"),i=n("4d64").includes,o=n("d039"),a=n("44d2"),s=o((function(){return!Array(1).includes()}));r({target:"Array",proto:!0,forced:s},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),a("includes")},cb29:function(t,e,n){var r=n("23e7"),i=n("81d5"),o=n("44d2");r({target:"Array",proto:!0},{fill:i}),o("fill")},cb2d:function(t,e,n){var r=n("1626"),i=n("9bf2"),o=n("13d2"),a=n("6374");t.exports=function(t,e,n,s){s||(s={});var l=s.enumerable,u=void 0!==s.name?s.name:e;if(r(n)&&o(n,u,s),s.global)l?t[e]=n:a(e,n);else{try{s.unsafe?t[e]&&(l=!0):delete t[e]}catch(c){}l?t[e]=n:i.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},cc12:function(t,e,n){var r=n("da84"),i=n("861d"),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},cc15:function(t,e,n){var r=n("b367")("wks"),i=n("8b1a"),o=n("ef08").Symbol,a="function"==typeof o,s=t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))};s.store=r},cc6d:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.gaugeConfig=void 0;var r={show:!0,name:"",radius:"60%",center:["50%","50%"],startAngle:-Math.PI/4*5,endAngle:Math.PI/4,min:0,max:100,splitNum:5,arcLineWidth:15,data:[],dataItemStyle:{},axisTick:{show:!0,tickLength:6,style:{stroke:"#999",lineWidth:1}},axisLabel:{show:!0,data:[],formatter:null,labelGap:5,style:{}},pointer:{show:!0,valueIndex:0,style:{scale:[1,1],fill:"#fb7293"}},details:{show:!1,formatter:null,offset:[0,0],valueToFixed:0,position:"center",style:{fontSize:20,fontWeight:"bold",textAlign:"center",textBaseline:"middle"}},backgroundArc:{show:!0,style:{stroke:"#e0e0e0"}},rLevel:10,animationCurve:"easeOutCubic",animationFrame:50};e.gaugeConfig=r},cc98:function(t,e,n){"use strict";var r=n("23e7"),i=n("c430"),o=n("4738").CONSTRUCTOR,a=n("d256"),s=n("d066"),l=n("1626"),u=n("cb2d"),c=a&&a.prototype;if(r({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(t){return this.then(void 0,t)}}),!i&&l(a)){var h=s("Promise").prototype["catch"];c["catch"]!==h&&u(c,"catch",h,{unsafe:!0})}},cca6:function(t,e,n){var r=n("23e7"),i=n("60da");r({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},cdce:function(t,e,n){var r=n("da84"),i=n("1626"),o=r.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},cdf9:function(t,e,n){var r=n("825a"),i=n("861d"),o=n("f069");t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t),a=n.resolve;return a(e),n.promise}},ce7a:function(t,e,n){var r=n("9c0e"),i=n("0983"),o=n("5a94")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},cee4:function(t,e,n){"use strict";var r=n("c532"),i=n("1d2b"),o=n("0a06"),a=n("4a7b"),s=n("2444");function l(t){var e=new o(t),n=i(o.prototype.request,e);return r.extend(n,o.prototype,e),r.extend(n,e),n.create=function(e){return l(a(t,e))},n}var u=l(s);u.Axios=o,u.Cancel=n("7a77"),u.CancelToken=n("8df4"),u.isCancel=n("2e67"),u.VERSION=n("5cce").version,u.all=function(t){return Promise.all(t)},u.spread=n("0df6"),u.isAxiosError=n("5f02"),t.exports=u,t.exports.default=u},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,n){var r=n("da84"),i=n("1626"),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t]):r[t]&&r[t][e]}},d0b5:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=void 0;var i=r(n("448a")),o=r(n("970b")),a=n("a870"),s=n("5557"),l=function t(e){(0,o["default"])(this,t),this.colorProcessor(e);var n={fill:[0,0,0,1],stroke:[0,0,0,0],opacity:1,lineCap:null,lineJoin:null,lineDash:null,lineDashOffset:null,shadowBlur:0,shadowColor:[0,0,0,0],shadowOffsetX:0,shadowOffsetY:0,lineWidth:0,graphCenter:null,scale:null,rotate:null,translate:null,hoverCursor:"pointer",fontStyle:"normal",fontVarient:"normal",fontWeight:"normal",fontSize:10,fontFamily:"Arial",textAlign:"center",textBaseline:"middle",gradientColor:null,gradientType:"linear",gradientParams:null,gradientWith:"stroke",gradientStops:"auto",colors:null};Object.assign(this,n,e)};function u(t,e){t.save();var n=e.graphCenter,r=e.rotate,o=e.scale,a=e.translate;n instanceof Array&&(t.translate.apply(t,(0,i["default"])(n)),r&&t.rotate(r*Math.PI/180),o instanceof Array&&t.scale.apply(t,(0,i["default"])(o)),a&&t.translate.apply(t,(0,i["default"])(a)),t.translate(-n[0],-n[1]))}e["default"]=l,l.prototype.colorProcessor=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e?a.getColorFromRgbValue:a.getRgbaValue,r=["fill","stroke","shadowColor"],i=Object.keys(t),o=i.filter((function(t){return r.find((function(e){return e===t}))}));o.forEach((function(e){return t[e]=n(t[e])}));var s=t.gradientColor,l=t.colors;if(s&&(t.gradientColor=s.map((function(t){return n(t)}))),l){var u=Object.keys(l);u.forEach((function(t){return l[t]=n(l[t])}))}},l.prototype.initStyle=function(t){u(t,this),h(t,this),f(t,this)};var c=["lineCap","lineJoin","lineDashOffset","shadowOffsetX","shadowOffsetY","lineWidth","textAlign","textBaseline"];function h(t,e){var n=e.fill,r=e.stroke,o=e.shadowColor,s=e.opacity;c.forEach((function(n){(n||"number"===typeof n)&&(t[n]=e[n])})),n=(0,i["default"])(n),r=(0,i["default"])(r),o=(0,i["default"])(o),n[3]*=s,r[3]*=s,o[3]*=s,t.fillStyle=(0,a.getColorFromRgbValue)(n),t.strokeStyle=(0,a.getColorFromRgbValue)(r),t.shadowColor=(0,a.getColorFromRgbValue)(o);var l=e.lineDash,u=e.shadowBlur;l&&(l=l.map((function(t){return t>=0?t:0})),t.setLineDash(l)),"number"===typeof u&&(t.shadowBlur=u>0?u:.001);var h=e.fontStyle,f=e.fontVarient,d=e.fontWeight,p=e.fontSize,g=e.fontFamily;t.font=h+" "+f+" "+d+" "+p+"px "+g}function f(t,e){if(d(e)){var n=e.gradientColor,r=e.gradientParams,o=e.gradientType,s=e.gradientWith,l=e.gradientStops,u=e.opacity;n=n.map((function(t){var e=t[3]*u,n=(0,i["default"])(t);return n[3]=e,n})),n=n.map((function(t){return(0,a.getColorFromRgbValue)(t)})),"auto"===l&&(l=p(n));var c=t["create".concat(o.slice(0,1).toUpperCase()+o.slice(1),"Gradient")].apply(t,(0,i["default"])(r));l.forEach((function(t,e){return c.addColorStop(t,n[e])})),t["".concat(s,"Style")]=c}}function d(t){var e=t.gradientColor,n=t.gradientParams,r=t.gradientType,i=t.gradientWith,o=t.gradientStops;if(!e||!n)return!1;if(1===e.length)return console.warn("The gradient needs to provide at least two colors"),!1;if("linear"!==r&&"radial"!==r)return console.warn("GradientType only supports linear or radial, current value is "+r),!1;var a=n.length;return"linear"===r&&4!==a||"radial"===r&&6!==a?(console.warn("The expected length of gradientParams is "+("linear"===r?"4":"6")),!1):"fill"!==i&&"stroke"!==i?(console.warn("GradientWith only supports fill or stroke, current value is "+i),!1):"auto"===o||o instanceof Array||(console.warn("gradientStops only supports 'auto' or Number Array ([0, .5, 1]), current value is "+o),!1)}function p(t){var e=1/(t.length-1);return t.map((function(t,n){return e*n}))}l.prototype.restoreTransform=function(t){t.restore()},l.prototype.update=function(t){this.colorProcessor(t),Object.assign(this,t)},l.prototype.getStyle=function(){var t=(0,s.deepClone)(this,!0);return this.colorProcessor(t,!0),t}},d16a:function(t,e,n){var r=n("fc5e"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},d1e7:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},d256:function(t,e,n){var r=n("da84");t.exports=r.Promise},d28b:function(t,e,n){var r=n("e065");r("iterator")},d2bb:function(t,e,n){var r=n("e330"),i=n("825a"),o=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),t(n,[]),e=n instanceof Array}catch(a){}return function(n,r){return i(n),o(r),e?t(n,r):n.__proto__=r,n}}():void 0)},d3b7:function(t,e,n){var r=n("00ee"),i=n("cb2d"),o=n("b041");r||i(Object.prototype,"toString",o,{unsafe:!0})},d44e:function(t,e,n){var r=n("9bf2").f,i=n("1a2d"),o=n("b622"),a=o("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!i(t,a)&&r(t,a,{configurable:!0,value:e})}},d4af:function(t,e,n){"use strict";var r=n("8eb7"),i=n("7b3e"),o=10,a=40,s=800;function l(t){var e=0,n=0,r=0,i=0;return"detail"in t&&(n=t.detail),"wheelDelta"in t&&(n=-t.wheelDelta/120),"wheelDeltaY"in t&&(n=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=n,n=0),r=e*o,i=n*o,"deltaY"in t&&(i=t.deltaY),"deltaX"in t&&(r=t.deltaX),(r||i)&&t.deltaMode&&(1==t.deltaMode?(r*=a,i*=a):(r*=s,i*=s)),r&&!e&&(e=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:e,spinY:n,pixelX:r,pixelY:i}}l.getEventType=function(){return r.firefox()?"DOMMouseScroll":i("wheel")?"wheel":"mousewheel"},t.exports=l},d4c3:function(t,e,n){var r=n("342f"),i=n("da84");t.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==i.Pebble},d4ec:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));n("d9e2");function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},d51b:function(t,e,n){"use strict";var r=function(){function t(t){this.value=t}return t}(),i=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new r(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),o=function(){function t(t){this._list=new i,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,o=null;if(null==i[t]){var a=n.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=n.head;n.remove(l),delete i[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new r(e),s.key=t,n.insertEntry(s),i[t]=s}return o},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();e["a"]=o},d51d:function(t,e,n){},d58f:function(t,e,n){var r=n("59ed"),i=n("7b0b"),o=n("44ad"),a=n("07fa"),s=TypeError,l=function(t){return function(e,n,l,u){r(n);var c=i(e),h=o(c),f=a(c),d=t?f-1:0,p=t?-1:1;if(l<2)while(1){if(d in h){u=h[d],d+=p;break}if(d+=p,t?d<0:f<=d)throw s("Reduce of empty array with no initial value")}for(;t?d>=0:f>d;d+=p)d in h&&(u=n(u,h[d],d,c));return u}};t.exports={left:l(!1),right:l(!0)}},d633:function(t,e){function n(t,e){if(t&&e)return n(t)(e);if("function"!==typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){r[e]=t[e]})),r;function r(){for(var e=new Array(arguments.length),n=0;n1?arguments[1]:void 0)}})},d86b:function(t,e,n){var r=n("d039");t.exports=r((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},d925:function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},d998:function(t,e,n){var r=n("342f");t.exports=/MSIE|Trident/.test(r)},d9b5:function(t,e,n){var r=n("d066"),i=n("1626"),o=n("3a9b"),a=n("fdbf"),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&o(e.prototype,s(t))}},d9e1:function(t,e,n){"use strict";var r=n("fbd7").codes.ERR_STREAM_PREMATURE_CLOSE;function i(t){var e=!1;return function(){if(!e){e=!0;for(var n=arguments.length,r=new Array(n),i=0;ih)n=i(r,e=u[h++]),void 0!==n&&l(c,e,n);return c}})},dbbf:function(t,e,n){},dc4a:function(t,e,n){var r=n("59ed"),i=n("7234");t.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},dc90:function(t,e,n){function r(t){function e(t){let e=0;for(let n=0;n{if("%%"===e)return"%";a++;const o=r.formatters[i];if("function"===typeof o){const r=t[a];e=o.call(n,r),t.splice(a,1),a--}return e}),r.formatArgs.call(n,t);const l=n.log||r.log;l.apply(n,t)}return s.namespace=t,s.useColors=r.useColors(),s.color=r.selectColor(t),s.extend=i,s.destroy=r.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(n!==r.namespaces&&(n=r.namespaces,o=r.enabled(t)),o),set:t=>{a=t}}),"function"===typeof r.init&&r.init(s),s}function i(t,e){const n=r(this.namespace+("undefined"===typeof e?":":e)+t);return n.log=this.log,n}function o(t){let e;r.save(t),r.namespaces=t,r.names=[],r.skips=[];const n=("string"===typeof t?t:"").split(/[\s,]+/),i=n.length;for(e=0;e"-"+t)].join(",");return r.enable(""),t}function s(t){if("*"===t[t.length-1])return!0;let e,n;for(e=0,n=r.skips.length;e{r[e]=t[e]}),r.names=[],r.skips=[],r.formatters={},r.selectColor=e,r.enable(r.load()),r}t.exports=r},dcc3:function(t,e,n){"use strict";var r=n("ae93").IteratorPrototype,i=n("7c73"),o=n("5c6c"),a=n("d44e"),s=n("3f8c"),l=function(){return this};t.exports=function(t,e,n,u){var c=e+" Iterator";return t.prototype=i(r,{next:o(+!u,n)}),a(t,c,!1,!0),s[c]=l,t}},ddb0:function(t,e,n){var r=n("da84"),i=n("fdbc"),o=n("785a"),a=n("e260"),s=n("9112"),l=n("b622"),u=l("iterator"),c=l("toStringTag"),h=a.values,f=function(t,e){if(t){if(t[u]!==h)try{s(t,u,h)}catch(r){t[u]=h}if(t[c]||s(t,c,e),i[e])for(var n in a)if(t[n]!==a[n])try{s(t,n,a[n])}catch(r){t[n]=a[n]}}};for(var d in i)f(r[d]&&r[d].prototype,d);f(o,"DOMTokenList")},ddda:function(t,e,n){"use strict";var r=n("e142").codes.ERR_STREAM_PREMATURE_CLOSE;function i(t){var e=!1;return function(){if(!e){e=!0;for(var n=arguments.length,r=new Array(n),i=0;i=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function r(t){"string"!==typeof t&&(t+="");var e,n=0,r=-1,i=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!i){n=e+1;break}}else-1===r&&(i=!1,r=e+1);return-1===r?"":t.slice(n,r)}function i(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r=-1&&!r;o--){var a=o>=0?arguments[o]:t.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(e=a+"/"+e,r="/"===a.charAt(0))}return e=n(i(e.split("/"),(function(t){return!!t})),!r).join("/"),(r?"/":"")+e||"."},e.normalize=function(t){var r=e.isAbsolute(t),a="/"===o(t,-1);return t=n(i(t.split("/"),(function(t){return!!t})),!r).join("/"),t||r||(t="."),t&&a&&(t+="/"),(r?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(i(t,(function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,n){function r(t){for(var e=0;e=0;n--)if(""!==t[n])break;return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var i=r(t.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,l=0;l=1;--o)if(e=t.charCodeAt(o),47===e){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":t.slice(0,r)},e.basename=function(t,e){var n=r(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,n=0,r=-1,i=!0,o=0,a=t.length-1;a>=0;--a){var s=t.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!i){n=a+1;break}}return-1===e||-1===r||0===o||1===o&&e===r-1&&e===n+1?"":t.slice(e,r)};var o="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n("4362"))},df83:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=e.easeInOutBounce=e.easeOutBounce=e.easeInBounce=e.easeInOutElastic=e.easeOutElastic=e.easeInElastic=e.easeInOutBack=e.easeOutBack=e.easeInBack=e.easeInOutQuint=e.easeOutQuint=e.easeInQuint=e.easeInOutQuart=e.easeOutQuart=e.easeInQuart=e.easeInOutCubic=e.easeOutCubic=e.easeInCubic=e.easeInOutQuad=e.easeOutQuad=e.easeInQuad=e.easeInOutSine=e.easeOutSine=e.easeInSine=e.linear=void 0;var r=[[[0,1],"",[.33,.67]],[[1,0],[.67,.33]]];e.linear=r;var i=[[[0,1]],[[.538,.564],[.169,.912],[.88,.196]],[[1,0]]];e.easeInSine=i;var o=[[[0,1]],[[.444,.448],[.169,.736],[.718,.16]],[[1,0]]];e.easeOutSine=o;var a=[[[0,1]],[[.5,.5],[.2,1],[.8,0]],[[1,0]]];e.easeInOutSine=a;var s=[[[0,1]],[[.55,.584],[.231,.904],[.868,.264]],[[1,0]]];e.easeInQuad=s;var l=[[[0,1]],[[.413,.428],[.065,.816],[.76,.04]],[[1,0]]];e.easeOutQuad=l;var u=[[[0,1]],[[.5,.5],[.3,.9],[.7,.1]],[[1,0]]];e.easeInOutQuad=u;var c=[[[0,1]],[[.679,.688],[.366,.992],[.992,.384]],[[1,0]]];e.easeInCubic=c;var h=[[[0,1]],[[.321,.312],[.008,.616],[.634,.008]],[[1,0]]];e.easeOutCubic=h;var f=[[[0,1]],[[.5,.5],[.3,1],[.7,0]],[[1,0]]];e.easeInOutCubic=f;var d=[[[0,1]],[[.812,.74],[.611,.988],[1.013,.492]],[[1,0]]];e.easeInQuart=d;var p=[[[0,1]],[[.152,.244],[.001,.448],[.285,-.02]],[[1,0]]];e.easeOutQuart=p;var g=[[[0,1]],[[.5,.5],[.4,1],[.6,0]],[[1,0]]];e.easeInOutQuart=g;var v=[[[0,1]],[[.857,.856],[.714,1],[1,.712]],[[1,0]]];e.easeInQuint=v;var y=[[[0,1]],[[.108,.2],[.001,.4],[.214,-.012]],[[1,0]]];e.easeOutQuint=y;var m=[[[0,1]],[[.5,.5],[.5,1],[.5,0]],[[1,0]]];e.easeInOutQuint=m;var b=[[[0,1]],[[.667,.896],[.38,1.184],[.955,.616]],[[1,0]]];e.easeInBack=b;var _=[[[0,1]],[[.335,.028],[.061,.22],[.631,-.18]],[[1,0]]];e.easeOutBack=_;var x=[[[0,1]],[[.5,.5],[.4,1.4],[.6,-.4]],[[1,0]]];e.easeInOutBack=x;var w=[[[0,1]],[[.474,.964],[.382,.988],[.557,.952]],[[.619,1.076],[.565,1.088],[.669,1.08]],[[.77,.916],[.712,.924],[.847,.904]],[[.911,1.304],[.872,1.316],[.961,1.34]],[[1,0]]];e.easeInElastic=w;var S=[[[0,1]],[[.073,-.32],[.034,-.328],[.104,-.344]],[[.191,.092],[.11,.06],[.256,.08]],[[.31,-.076],[.26,-.068],[.357,-.076]],[[.432,.032],[.362,.028],[.683,-.004]],[[1,0]]];e.easeOutElastic=S;var O=[[[0,1]],[[.21,.94],[.167,.884],[.252,.98]],[[.299,1.104],[.256,1.092],[.347,1.108]],[[.5,.496],[.451,.672],[.548,.324]],[[.696,-.108],[.652,-.112],[.741,-.124]],[[.805,.064],[.756,.012],[.866,.096]],[[1,0]]];e.easeInOutElastic=O;var C=[[[0,1]],[[.148,1],[.075,.868],[.193,.848]],[[.326,1],[.276,.836],[.405,.712]],[[.6,1],[.511,.708],[.671,.348]],[[1,0]]];e.easeInBounce=C;var k=[[[0,1]],[[.357,.004],[.27,.592],[.376,.252]],[[.604,-.004],[.548,.312],[.669,.184]],[[.82,0],[.749,.184],[.905,.132]],[[1,0]]];e.easeOutBounce=k;var A=[[[0,1]],[[.102,1],[.05,.864],[.117,.86]],[[.216,.996],[.208,.844],[.227,.808]],[[.347,.996],[.343,.8],[.48,.292]],[[.635,.004],[.511,.676],[.656,.208]],[[.787,0],[.76,.2],[.795,.144]],[[.905,-.004],[.899,.164],[.944,.144]],[[1,0]]];e.easeInOutBounce=A;var M=new Map([["linear",r],["easeInSine",i],["easeOutSine",o],["easeInOutSine",a],["easeInQuad",s],["easeOutQuad",l],["easeInOutQuad",u],["easeInCubic",c],["easeOutCubic",h],["easeInOutCubic",f],["easeInQuart",d],["easeOutQuart",p],["easeInOutQuart",g],["easeInQuint",v],["easeOutQuint",y],["easeInOutQuint",m],["easeInBack",b],["easeOutBack",_],["easeInOutBack",x],["easeInElastic",w],["easeOutElastic",S],["easeInOutElastic",O],["easeInBounce",C],["easeOutBounce",k],["easeInOutBounce",A]]);e["default"]=M},df86:function(t,e,n){"use strict";(function(e,r){const i=n("faa1").EventEmitter,o=n("ea08"),a=n("e7d0"),s=n("a43f"),l=n("3409"),u=n("1e4d"),c=n("035d").Writable,h=n("3fb5"),f=n("29a2"),d=n("2a28"),p=n("ae84"),g=n("53a8"),v=n("34eb")("mqttjs:client"),y=e?e.nextTick:function(t){setTimeout(t,0)},m=r.setImmediate||function(t){y(t)},b={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:3e4,clean:!0,resubscribe:!0},_=["ECONNREFUSED","EADDRINUSE","ECONNRESET","ENOTFOUND"],x={0:"",1:"Unacceptable protocol version",2:"Identifier rejected",3:"Server unavailable",4:"Bad username or password",5:"Not authorized",16:"No matching subscribers",17:"No subscription existed",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",132:"Unsupported Protocol Version",133:"Client Identifier not valid",134:"Bad User Name or Password",135:"Not authorized",136:"Server unavailable",137:"Server busy",138:"Banned",139:"Server shutting down",140:"Bad authentication method",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",145:"Packet identifier in use",146:"Packet Identifier not found",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"};function w(){return"mqttjs_"+Math.random().toString(16).substr(2,8)}function S(t,e){if(5===t.options.protocolVersion&&"publish"===e.cmd){let n;e.properties&&(n=e.properties.topicAlias);const r=e.topic.toString();if(t.topicAliasSend)if(n){if(0!==r.length&&(v("applyTopicAlias :: register topic: %s - alias: %d",r,n),!t.topicAliasSend.put(r,n)))return v("applyTopicAlias :: error out of range. topic: %s - alias: %d",r,n),new Error("Sending Topic Alias out of range")}else 0!==r.length&&(t.options.autoAssignTopicAlias?(n=t.topicAliasSend.getAliasByTopic(r),n?(e.topic="",e.properties={...e.properties,topicAlias:n},v("applyTopicAlias :: auto assign(use) topic: %s - alias: %d",r,n)):(n=t.topicAliasSend.getLruAlias(),t.topicAliasSend.put(r,n),e.properties={...e.properties,topicAlias:n},v("applyTopicAlias :: auto assign topic: %s - alias: %d",r,n))):t.options.autoUseTopicAlias&&(n=t.topicAliasSend.getAliasByTopic(r),n&&(e.topic="",e.properties={...e.properties,topicAlias:n},v("applyTopicAlias :: auto use topic: %s - alias: %d",r,n))));else if(n)return v("applyTopicAlias :: error out of range. topic: %s - alias: %d",r,n),new Error("Sending Topic Alias out of range")}}function O(t,e){let n;e.properties&&(n=e.properties.topicAlias);let r=e.topic.toString();if(0===r.length){if("undefined"===typeof n)return new Error("Unregistered Topic Alias");if(r=t.topicAliasSend.getTopicByAlias(n),"undefined"===typeof r)return new Error("Unregistered Topic Alias");e.topic=r}n&&delete e.properties.topicAlias}function C(t,e,n){v("sendPacket :: packet: %O",e),v("sendPacket :: emitting `packetsend`"),t.emit("packetsend",e),v("sendPacket :: writing to stream");const r=l.writeToStream(e,t.stream,t.options);v("sendPacket :: writeToStream result %s",r),!r&&n&&n!==T?(v("sendPacket :: handle events on `drain` once through callback."),t.stream.once("drain",n)):n&&(v("sendPacket :: invoking cb"),n())}function k(t){t&&(v("flush: queue exists? %b",!!t),Object.keys(t).forEach((function(e){"function"===typeof t[e].cb&&(t[e].cb(new Error("Connection closed")),delete t[e])})))}function A(t){t&&(v("flushVolatile :: deleting volatile messages from the queue and setting their callbacks as error function"),Object.keys(t).forEach((function(e){t[e].volatile&&"function"===typeof t[e].cb&&(t[e].cb(new Error("Connection closed")),delete t[e])})))}function M(t,e,n,r){v("storeAndSend :: store packet with cmd %s to outgoingStore",e.cmd);let i,o=e;if("publish"===o.cmd&&(o=d(e),i=O(t,o),i))return n&&n(i);t.outgoingStore.put(o,(function(i){if(i)return n&&n(i);r(),C(t,e,n)}))}function T(t){v("nop ::",t)}function I(t,e){let n;const r=this;if(!(this instanceof I))return new I(t,e);for(n in this.options=e||{},b)"undefined"===typeof this.options[n]?this.options[n]=b[n]:this.options[n]=e[n];v("MqttClient :: options.protocol",e.protocol),v("MqttClient :: options.protocolVersion",e.protocolVersion),v("MqttClient :: options.username",e.username),v("MqttClient :: options.keepalive",e.keepalive),v("MqttClient :: options.reconnectPeriod",e.reconnectPeriod),v("MqttClient :: options.rejectUnauthorized",e.rejectUnauthorized),v("MqttClient :: options.topicAliasMaximum",e.topicAliasMaximum),this.options.clientId="string"===typeof e.clientId?e.clientId:w(),v("MqttClient :: clientId",this.options.clientId),this.options.customHandleAcks=5===e.protocolVersion&&e.customHandleAcks?e.customHandleAcks:function(){arguments[3](0)},this.streamBuilder=t,this.messageIdProvider="undefined"===typeof this.options.messageIdProvider?new u:this.options.messageIdProvider,this.outgoingStore=e.outgoingStore||new o,this.incomingStore=e.incomingStore||new o,this.queueQoSZero=void 0===e.queueQoSZero||e.queueQoSZero,this._resubscribeTopics={},this.messageIdToTopic={},this.pingTimer=null,this.connected=!1,this.disconnecting=!1,this.queue=[],this.connackTimer=null,this.reconnectTimer=null,this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={},this._storeProcessingQueue=[],this.outgoing={},this._firstConnection=!0,e.topicAliasMaximum>0&&(e.topicAliasMaximum>65535?v("MqttClient :: options.topicAliasMaximum is out of range"):this.topicAliasRecv=new a(e.topicAliasMaximum)),this.on("connect",(function(){const t=this.queue;function e(){const n=t.shift();v("deliver :: entry %o",n);let i=null;if(!n)return void r._resubscribe();i=n.packet,v("deliver :: call _sendPacket for %o",i);let o=!0;i.messageId&&0!==i.messageId&&(r.messageIdProvider.register(i.messageId)||(o=!1)),o?r._sendPacket(i,(function(t){n.cb&&n.cb(t),e()})):(v("messageId: %d has already used. The message is skipped and removed.",i.messageId),e())}v("connect :: sending queued packets"),e()})),this.on("close",(function(){v("close :: connected set to `false`"),this.connected=!1,v("close :: clearing connackTimer"),clearTimeout(this.connackTimer),v("close :: clearing ping timer"),null!==r.pingTimer&&(r.pingTimer.clear(),r.pingTimer=null),this.topicAliasRecv&&this.topicAliasRecv.clear(),v("close :: calling _setupReconnect"),this._setupReconnect()})),i.call(this),v("MqttClient :: setting up stream"),this._setupStream()}h(I,i),I.prototype._setupStream=function(){const t=this,e=new c,n=l.parser(this.options);let r=null;const i=[];function o(){if(i.length)y(a);else{const t=r;r=null,t()}}function a(){v("work :: getting next packet in queue");const e=i.shift();if(e)v("work :: packet pulled from queue"),t._handlePacket(e,o);else{v("work :: no packets in queue");const t=r;r=null,v("work :: done flag is %s",!!t),t&&t()}}function s(e){v("streamErrorHandler :: error",e.message),_.includes(e.code)?(v("streamErrorHandler :: emitting error"),t.emit("error",e)):T(e)}v("_setupStream :: calling method to clear reconnect"),this._clearReconnect(),v("_setupStream :: using streamBuilder provided to client to create stream"),this.stream=this.streamBuilder(this),n.on("packet",(function(t){v("parser :: on packet push to packets array."),i.push(t)})),e._write=function(t,e,i){r=i,v("writable stream :: parsing buffer"),n.parse(t),a()},v("_setupStream :: pipe stream to writable stream"),this.stream.pipe(e),this.stream.on("error",s),this.stream.on("close",(function(){v("(%s)stream :: on close",t.options.clientId),A(t.outgoing),v("stream: emit close to MqttClient"),t.emit("close")})),v("_setupStream: sending packet `connect`");const u=Object.create(this.options);if(u.cmd="connect",this.topicAliasRecv&&(u.properties||(u.properties={}),this.topicAliasRecv&&(u.properties.topicAliasMaximum=this.topicAliasRecv.max)),C(this,u),n.on("error",this.emit.bind(this,"error")),this.options.properties){if(!this.options.properties.authenticationMethod&&this.options.properties.authenticationData)return t.end(()=>this.emit("error",new Error("Packet has no Authentication Method"))),this;if(this.options.properties.authenticationMethod&&this.options.authPacket&&"object"===typeof this.options.authPacket){const t=g({cmd:"auth",reasonCode:0},this.options.authPacket);C(this,t)}}this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout((function(){v("!!connectTimeout hit!! Calling _cleanUp with force `true`"),t._cleanUp(!0)}),this.options.connectTimeout)},I.prototype._handlePacket=function(t,e){const n=this.options;if(5===n.protocolVersion&&n.properties&&n.properties.maximumPacketSize&&n.properties.maximumPacketSize0||!s())&&this._storeProcessingQueue.push({invoke:s,cbStorePut:n.cbStorePut,callback:r}),this},I.prototype.subscribe=function(){const t=this,e=new Array(arguments.length);for(let h=0;h0){const r={qos:n.qos};5===s&&(r.nl=n.nl||!1,r.rap=n.rap||!1,r.rh=n.rh||0,r.properties=n.properties),t._resubscribeTopics[n.topic]=r,e.push(n.topic)}})),t.messageIdToTopic[r.messageId]=e}return t.outgoing[r.messageId]={volatile:!0,cb:function(t,e){if(!t){const t=e.granted;for(let e=0;e0||!c())&&this._storeProcessingQueue.push({invoke:c,callback:o}),this},I.prototype.unsubscribe=function(){const t=this,e=new Array(arguments.length);for(let s=0;s0||!a())&&this._storeProcessingQueue.push({invoke:a,callback:r}),this},I.prototype.end=function(t,e,n){const r=this;function i(){v("end :: closeStores: closing incoming and outgoing stores"),r.disconnected=!0,r.incomingStore.close((function(t){r.outgoingStore.close((function(e){if(v("end :: closeStores: emitting end"),r.emit("end"),n){const r=t||e;v("end :: closeStores: invoking callback with args"),n(r)}}))})),r._deferredReconnect&&r._deferredReconnect()}function o(){v("end :: (%s) :: finish :: calling _cleanUp with force %s",r.options.clientId,t),r._cleanUp(t,()=>{v("end :: finish :: calling process.nextTick on closeStores"),y(i.bind(r))},e)}return v("end :: (%s)",this.options.clientId),null!=t&&"boolean"===typeof t||(n=e||T,e=t,t=!1,"object"!==typeof e&&(n=e,e=null,"function"!==typeof n&&(n=T))),"object"!==typeof e&&(n=e,e=null),v("end :: cb? %s",!!n),n=n||T,this.disconnecting?(n(),this):(this._clearReconnect(),this.disconnecting=!0,!t&&Object.keys(this.outgoing).length>0?(v("end :: (%s) :: calling finish in 10ms once outgoing is empty",r.options.clientId),this.once("outgoingEmpty",setTimeout.bind(null,o,10))):(v("end :: (%s) :: immediately calling finish",r.options.clientId),o()),this)},I.prototype.removeOutgoingMessage=function(t){const e=this.outgoing[t]?this.outgoing[t].cb:null;return delete this.outgoing[t],this.outgoingStore.del({messageId:t},(function(){e(new Error("Message removed"))})),this},I.prototype.reconnect=function(t){v("client reconnect");const e=this,n=function(){t?(e.options.incomingStore=t.incomingStore,e.options.outgoingStore=t.outgoingStore):(e.options.incomingStore=null,e.options.outgoingStore=null),e.incomingStore=e.options.incomingStore||new o,e.outgoingStore=e.options.outgoingStore||new o,e.disconnecting=!1,e.disconnected=!1,e._deferredReconnect=null,e._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=n:n(),this},I.prototype._reconnect=function(){v("_reconnect: emitting reconnect to client"),this.emit("reconnect"),this.connected?(this.end(()=>{this._setupStream()}),v("client already connected. disconnecting first.")):(v("_reconnect: calling _setupStream"),this._setupStream())},I.prototype._setupReconnect=function(){const t=this;!t.disconnecting&&!t.reconnectTimer&&t.options.reconnectPeriod>0?(this.reconnecting||(v("_setupReconnect :: emit `offline` state"),this.emit("offline"),v("_setupReconnect :: set `reconnecting` to `true`"),this.reconnecting=!0),v("_setupReconnect :: setting reconnectTimer for %d ms",t.options.reconnectPeriod),t.reconnectTimer=setInterval((function(){v("reconnectTimer :: reconnect triggered!"),t._reconnect()}),t.options.reconnectPeriod)):v("_setupReconnect :: doing nothing...")},I.prototype._clearReconnect=function(){v("_clearReconnect : clearing reconnect timer"),this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null)},I.prototype._cleanUp=function(t,e){const n=arguments[2];if(e&&(v("_cleanUp :: done callback provided for on stream close"),this.stream.on("close",e)),v("_cleanUp :: forced? %s",t),t)0===this.options.reconnectPeriod&&this.options.clean&&k(this.outgoing),v("_cleanUp :: (%s) :: destroying stream",this.options.clientId),this.stream.destroy();else{const t=g({cmd:"disconnect"},n);v("_cleanUp :: (%s) :: call _sendPacket with disconnect packet",this.options.clientId),this._sendPacket(t,m.bind(null,this.stream.end.bind(this.stream)))}this.disconnecting||(v("_cleanUp :: client not disconnecting. Clearing and resetting reconnect."),this._clearReconnect(),this._setupReconnect()),null!==this.pingTimer&&(v("_cleanUp :: clearing pingTimer"),this.pingTimer.clear(),this.pingTimer=null),e&&!this.connected&&(v("_cleanUp :: (%s) :: removing stream `done` callback `close` listener",this.options.clientId),this.stream.removeListener("close",e),e())},I.prototype._sendPacket=function(t,e,n){v("_sendPacket :: (%s) :: start",this.options.clientId),n=n||T,e=e||T;const r=S(this,t);if(r)e(r);else{if(!this.connected)return"auth"===t.cmd?(this._shiftPingInterval(),void C(this,t,e)):(v("_sendPacket :: client not connected. Storing packet offline."),void this._storePacket(t,e,n));switch(this._shiftPingInterval(),t.cmd){case"publish":break;case"pubrel":return void M(this,t,e,n);default:return void C(this,t,e)}switch(t.qos){case 2:case 1:M(this,t,e,n);break;case 0:default:C(this,t,e);break}v("_sendPacket :: (%s) :: end",this.options.clientId)}},I.prototype._storePacket=function(t,e,n){v("_storePacket :: packet: %o",t),v("_storePacket :: cb? %s",!!e),n=n||T;let r=t;if("publish"===r.cmd){r=d(t);const n=O(this,r);if(n)return e&&e(n)}0===(r.qos||0)&&this.queueQoSZero||"publish"!==r.cmd?this.queue.push({packet:r,cb:e}):r.qos>0?(e=this.outgoing[r.messageId]?this.outgoing[r.messageId].cb:null,this.outgoingStore.put(r,(function(t){if(t)return e&&e(t);n()}))):e&&e(new Error("No connection to broker"))},I.prototype._setupPingTimer=function(){v("_setupPingTimer :: keepalive %d (seconds)",this.options.keepalive);const t=this;!this.pingTimer&&this.options.keepalive&&(this.pingResp=!0,this.pingTimer=f((function(){t._checkPing()}),1e3*this.options.keepalive))},I.prototype._shiftPingInterval=function(){this.pingTimer&&this.options.keepalive&&this.options.reschedulePings&&this.pingTimer.reschedule(1e3*this.options.keepalive)},I.prototype._checkPing=function(){v("_checkPing :: checking ping..."),this.pingResp?(v("_checkPing :: ping response received. Clearing flag and sending `pingreq`"),this.pingResp=!1,this._sendPacket({cmd:"pingreq"})):(v("_checkPing :: calling _cleanUp with force true"),this._cleanUp(!0))},I.prototype._handlePingresp=function(){this.pingResp=!0},I.prototype._handleConnack=function(t){v("_handleConnack");const e=this.options,n=e.protocolVersion,r=5===n?t.reasonCode:t.returnCode;if(clearTimeout(this.connackTimer),delete this.topicAliasSend,t.properties){if(t.properties.topicAliasMaximum){if(t.properties.topicAliasMaximum>65535)return void this.emit("error",new Error("topicAliasMaximum from broker is out of range"));t.properties.topicAliasMaximum>0&&(this.topicAliasSend=new s(t.properties.topicAliasMaximum))}t.properties.serverKeepAlive&&e.keepalive&&(e.keepalive=t.properties.serverKeepAlive,this._shiftPingInterval()),t.properties.maximumPacketSize&&(e.properties||(e.properties={}),e.properties.maximumPacketSize=t.properties.maximumPacketSize)}if(0===r)this.reconnecting=!1,this._onConnect(t);else if(r>0){const t=new Error("Connection refused: "+x[r]);t.code=r,this.emit("error",t)}},I.prototype._handleAuth=function(t){const e=this.options,n=e.protocolVersion,r=5===n?t.reasonCode:t.returnCode;if(5!==n){const t=new Error("Protocol error: Auth packets are only supported in MQTT 5. Your version:"+n);return t.code=r,void this.emit("error",t)}const i=this;this.handleAuth(t,(function(t,e){if(t)i.emit("error",t);else if(24===r)i.reconnecting=!1,i._sendPacket(e);else{const e=new Error("Connection refused: "+x[r]);t.code=r,i.emit("error",e)}}))},I.prototype.handleAuth=function(t,e){e()},I.prototype._handlePublish=function(t,e){v("_handlePublish: packet %o",t),e="undefined"!==typeof e?e:T;let n=t.topic.toString();const r=t.payload,i=t.qos,o=t.messageId,a=this,s=this.options,l=[0,16,128,131,135,144,145,151,153];if(5===this.options.protocolVersion){let e;if(t.properties&&(e=t.properties.topicAlias),"undefined"!==typeof e)if(0===n.length){if(!(e>0&&e<=65535))return v("_handlePublish :: topic alias out of range. alias: %d",e),void this.emit("error",new Error("Received Topic Alias is out of range"));{const t=this.topicAliasRecv.getTopicByAlias(e);if(!t)return v("_handlePublish :: unregistered topic alias. alias: %d",e),void this.emit("error",new Error("Received unregistered Topic Alias"));n=t,v("_handlePublish :: topic complemented by alias. topic: %s - alias: %d",n,e)}}else{if(!this.topicAliasRecv.put(n,e))return v("_handlePublish :: topic alias out of range. alias: %d",e),void this.emit("error",new Error("Received Topic Alias is out of range"));v("_handlePublish :: registered topic: %s - alias: %d",n,e)}}switch(v("_handlePublish: qos %d",i),i){case 2:s.customHandleAcks(n,r,t,(function(n,r){return n instanceof Error||(r=n,n=null),n?a.emit("error",n):-1===l.indexOf(r)?a.emit("error",new Error("Wrong reason code for pubrec")):void(r?a._sendPacket({cmd:"pubrec",messageId:o,reasonCode:r},e):a.incomingStore.put(t,(function(){a._sendPacket({cmd:"pubrec",messageId:o},e)})))}));break;case 1:s.customHandleAcks(n,r,t,(function(i,s){return i instanceof Error||(s=i,i=null),i?a.emit("error",i):-1===l.indexOf(s)?a.emit("error",new Error("Wrong reason code for puback")):(s||a.emit("message",n,r,t),void a.handleMessage(t,(function(t){if(t)return e&&e(t);a._sendPacket({cmd:"puback",messageId:o,reasonCode:s},e)})))}));break;case 0:this.emit("message",n,r,t),this.handleMessage(t,e);break;default:v("_handlePublish: unknown QoS. Doing nothing.");break}},I.prototype.handleMessage=function(t,e){e()},I.prototype._handleAck=function(t){const e=t.messageId,n=t.cmd;let r=null;const i=this.outgoing[e]?this.outgoing[e].cb:null,o=this;let a;if(i){switch(v("_handleAck :: packet type",n),n){case"pubcomp":case"puback":{const n=t.reasonCode;n&&n>0&&16!==n&&(a=new Error("Publish error: "+x[n]),a.code=n,i(a,t)),delete this.outgoing[e],this.outgoingStore.del(t,i),this.messageIdProvider.deallocate(e),this._invokeStoreProcessingQueue();break}case"pubrec":{r={cmd:"pubrel",qos:2,messageId:e};const n=t.reasonCode;n&&n>0&&16!==n?(a=new Error("Publish error: "+x[n]),a.code=n,i(a,t)):this._sendPacket(r);break}case"suback":delete this.outgoing[e],this.messageIdProvider.deallocate(e);for(let n=0;n0)if(this.options.resubscribe)if(5===this.options.protocolVersion){v("_resubscribe: protocolVersion 5");for(let e=0;e0){const t=this._storeProcessingQueue[0];if(t&&t.invoke())return this._storeProcessingQueue.shift(),!0}return!1},I.prototype._invokeAllStoreProcessingQueue=function(){while(this._invokeStoreProcessingQueue());},I.prototype._flushStoreProcessingQueue=function(){for(const t of this._storeProcessingQueue)t.cbStorePut&&t.cbStorePut(new Error("Connection closed")),t.callback&&t.callback(new Error("Connection closed"));this._storeProcessingQueue.splice(0)},t.exports=I}).call(this,n("4362"),n("c8ba"))},dfe5:function(t,e){},e017:function(t,e,n){(function(e){(function(e,n){t.exports=n()})(0,(function(){"use strict";var t=function(t){var e=t.id,n=t.viewBox,r=t.content;this.id=e,this.viewBox=n,this.content=r};t.prototype.stringify=function(){return this.content},t.prototype.toString=function(){return this.stringify()},t.prototype.destroy=function(){var t=this;["id","viewBox","content"].forEach((function(e){return delete t[e]}))};var n=function(t){var e=!!document.importNode,n=(new DOMParser).parseFromString(t,"image/svg+xml").documentElement;return e?document.importNode(n,!0):n};"undefined"!==typeof window?window:"undefined"!==typeof e||"undefined"!==typeof self&&self;function r(t,e){return e={exports:{}},t(e,e.exports),e.exports}var i=r((function(t,e){(function(e,n){t.exports=n()})(0,(function(){function t(t){var e=t&&"object"===typeof t;return e&&"[object RegExp]"!==Object.prototype.toString.call(t)&&"[object Date]"!==Object.prototype.toString.call(t)}function e(t){return Array.isArray(t)?[]:{}}function n(n,r){var i=r&&!0===r.clone;return i&&t(n)?o(e(n),n,r):n}function r(e,r,i){var a=e.slice();return r.forEach((function(r,s){"undefined"===typeof a[s]?a[s]=n(r,i):t(r)?a[s]=o(e[s],r,i):-1===e.indexOf(r)&&a.push(n(r,i))})),a}function i(e,r,i){var a={};return t(e)&&Object.keys(e).forEach((function(t){a[t]=n(e[t],i)})),Object.keys(r).forEach((function(s){t(r[s])&&e[s]?a[s]=o(e[s],r[s],i):a[s]=n(r[s],i)})),a}function o(t,e,o){var a=Array.isArray(e),s=o||{arrayMerge:r},l=s.arrayMerge||r;return a?Array.isArray(t)?l(t,e,o):n(e,o):i(t,e,o)}return o.all=function(t,e){if(!Array.isArray(t)||t.length<2)throw new Error("first argument should be an array with at least two elements");return t.reduce((function(t,n){return o(t,n,e)}))},o}))})),o=r((function(t,e){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};e.default=n,t.exports=e.default})),a=function(t){return Object.keys(t).map((function(e){var n=t[e].toString().replace(/"/g,""");return e+'="'+n+'"'})).join(" ")},s=o.svg,l=o.xlink,u={};u[s.name]=s.uri,u[l.name]=l.uri;var c=function(t,e){void 0===t&&(t="");var n=i(u,e||{}),r=a(n);return""+t+""},h=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={isMounted:{}};return r.isMounted.get=function(){return!!this.node},e.createFromExistingNode=function(t){return new e({id:t.getAttribute("id"),viewBox:t.getAttribute("viewBox"),content:t.outerHTML})},e.prototype.destroy=function(){this.isMounted&&this.unmount(),t.prototype.destroy.call(this)},e.prototype.mount=function(t){if(this.isMounted)return this.node;var e="string"===typeof t?document.querySelector(t):t,n=this.render();return this.node=n,e.appendChild(n),n},e.prototype.render=function(){var t=this.stringify();return n(c(t)).childNodes[0]},e.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(e.prototype,r),e}(t);return h}))}).call(this,n("c8ba"))},e01a:function(t,e,n){"use strict";var r=n("23e7"),i=n("83ab"),o=n("da84"),a=n("e330"),s=n("1a2d"),l=n("1626"),u=n("3a9b"),c=n("577e"),h=n("9bf2").f,f=n("e893"),d=o.Symbol,p=d&&d.prototype;if(i&&l(d)&&(!("description"in p)||void 0!==d().description)){var g={},v=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),e=u(p,this)?new d(t):void 0===t?d():d(t);return""===t&&(g[e]=!0),e};f(v,d),v.prototype=p,p.constructor=v;var y="Symbol(test)"==String(d("test")),m=a(p.valueOf),b=a(p.toString),_=/^Symbol\((.*)\)[^)]+$/,x=a("".replace),w=a("".slice);h(p,"description",{configurable:!0,get:function(){var t=m(this);if(s(g,t))return"";var e=b(t),n=y?w(e,7,-1):x(e,_,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:v})}},e065:function(t,e,n){var r=n("428f"),i=n("1a2d"),o=n("e538"),a=n("9bf2").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},e099:function(t,e,n){"use strict";var r=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,n,s){return e=e||"&",n=n||"=",null===t&&(t=void 0),"object"===typeof t?o(a(t),(function(a){var s=encodeURIComponent(r(a))+n;return i(t[a])?o(t[a],(function(t){return s+encodeURIComponent(r(t))})).join(e):s+encodeURIComponent(r(t[a]))})).join(e):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(t)):""};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function o(t,e){if(t.map)return t.map(e);for(var n=[],r=0;r2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:2===n?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}function s(t,e,n){return t.substr(!n||n<0?0:+n,e.length)===e}function l(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}function u(t,e,n){return"number"!==typeof n&&(n=0),!(n+e.length>t.length)&&-1!==t.indexOf(e,n)}o("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(t,e,n){var r,i;if("string"===typeof e&&s(e,"not ")?(r="must not be",e=e.replace(/^not /,"")):r="must be",l(t," argument"))i="The ".concat(t," ").concat(r," ").concat(a(e,"type"));else{var o=u(t,".")?"property":"argument";i='The "'.concat(t,'" ').concat(o," ").concat(r," ").concat(a(e,"type"))}return i+=". Received type ".concat(typeof n),i}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=i},e163:function(t,e,n){var r=n("1a2d"),i=n("1626"),o=n("7b0b"),a=n("f772"),s=n("e177"),l=a("IE_PROTO"),u=Object,c=u.prototype;t.exports=s?u.getPrototypeOf:function(t){var e=o(t);if(r(e,l))return e[l];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof u?c:null}},e169:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.drawPolylinePath=o,e.drawBezierCurvePath=a,e["default"]=void 0;var i=r(n("448a"));function o(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!t||e.length<2)return!1;n&&t.beginPath(),e.forEach((function(e,n){return e&&(0===n?t.moveTo.apply(t,(0,i["default"])(e)):t.lineTo.apply(t,(0,i["default"])(e)))})),r&&t.closePath()}function a(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!t||!e)return!1;r&&t.beginPath(),n&&t.moveTo.apply(t,(0,i["default"])(n)),e.forEach((function(e){return e&&t.bezierCurveTo.apply(t,(0,i["default"])(e[0]).concat((0,i["default"])(e[1]),(0,i["default"])(e[2])))})),o&&t.closePath()}var s={drawPolylinePath:o,drawBezierCurvePath:a};e["default"]=s},e177:function(t,e,n){var r=n("d039");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},e198:function(t,e,n){var r=n("ef08"),i=n("5524"),o=n("e444"),a=n("fcd4"),s=n("1a14").f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},e260:function(t,e,n){"use strict";var r=n("fc6a"),i=n("44d2"),o=n("3f8c"),a=n("69f3"),s=n("9bf2").f,l=n("c6d2"),u=n("4754"),c=n("c430"),h=n("83ab"),f="Array Iterator",d=a.set,p=a.getterFor(f);t.exports=l(Array,"Array",(function(t,e){d(this,{type:f,target:r(t),index:0,kind:e})}),(function(){var t=p(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,u(void 0,!0)):u("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values");var g=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!c&&h&&"values"!==g.name)try{s(g,"name",{value:"values"})}catch(v){}},e330:function(t,e,n){var r=n("40d5"),i=Function.prototype,o=i.bind,a=i.call,s=r&&o.bind(a,a);t.exports=r?function(t){return t&&s(t)}:function(t){return t&&function(){return a.apply(t,arguments)}}},e34a:function(t,e,n){var r=n("8b1a")("meta"),i=n("7a41"),o=n("9c0e"),a=n("1a14").f,s=0,l=Object.isExtensible||function(){return!0},u=!n("4b8b")((function(){return l(Object.preventExtensions({}))})),c=function(t){a(t,r,{value:{i:"O"+ ++s,w:{}}})},h=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!l(t))return"F";if(!e)return"E";c(t)}return t[r].i},f=function(t,e){if(!o(t,r)){if(!l(t))return!0;if(!e)return!1;c(t)}return t[r].w},d=function(t){return u&&p.NEED&&l(t)&&!o(t,r)&&c(t),t},p=t.exports={KEY:r,NEED:!1,fastKey:h,getWeak:f,onFreeze:d}},e391:function(t,e,n){var r=n("577e");t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:r(t)}},e439:function(t,e,n){var r=n("23e7"),i=n("d039"),o=n("fc6a"),a=n("06cf").f,s=n("83ab"),l=i((function(){a(1)})),u=!s||l;r({target:"Object",stat:!0,forced:u,sham:!s},{getOwnPropertyDescriptor:function(t,e){return a(o(t),e)}})},e444:function(t,e){t.exports=!0},e507:function(t,e,n){var r=n("512c");r(r.S+r.F,"Object",{assign:n("072d")})},e50d:function(t,e,n){n("8172"),n("efec"),n("a4d3"),n("e01a"),n("d3b7"),n("d9e2"),n("a9e3");var r=n("7037")["default"];function i(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}t.exports=i,t.exports.__esModule=!0,t.exports["default"]=t.exports},e538:function(t,e,n){var r=n("b622");e.f=r},e5cb:function(t,e,n){"use strict";var r=n("d066"),i=n("1a2d"),o=n("9112"),a=n("3a9b"),s=n("d2bb"),l=n("e893"),u=n("aeb0"),c=n("7156"),h=n("e391"),f=n("ab36"),d=n("0d26"),p=n("b980"),g=n("83ab"),v=n("c430");t.exports=function(t,e,n,y){var m="stackTraceLimit",b=y?2:1,_=t.split("."),x=_[_.length-1],w=r.apply(null,_);if(w){var S=w.prototype;if(!v&&i(S,"cause")&&delete S.cause,!n)return w;var O=r("Error"),C=e((function(t,e){var n=h(y?e:t,void 0),r=y?new w(t):new w;return void 0!==n&&o(r,"message",n),p&&o(r,"stack",d(r.stack,2)),this&&a(S,this)&&c(r,this,C),arguments.length>b&&f(r,arguments[b]),r}));if(C.prototype=S,"Error"!==x?s?s(C,O):l(C,O,{name:!0}):g&&m in w&&(u(C,w,m),u(C,w,"prepareStackTrace")),l(C,w),!v)try{S.name!==x&&o(S,"name",x),S.constructor=C}catch(k){}return C}}},e667:function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},e683:function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},e6cf:function(t,e,n){n("5e7e"),n("14e5"),n("cc98"),n("3529"),n("f22b"),n("7149")},e7d0:function(t,e,n){"use strict";function r(t){if(!(this instanceof r))return new r(t);this.aliasToTopic={},this.max=t}r.prototype.put=function(t,e){return!(0===e||e>this.max)&&(this.aliasToTopic[e]=t,this.length=Object.keys(this.aliasToTopic).length,!0)},r.prototype.getTopicByAlias=function(t){return this.aliasToTopic[t]},r.prototype.clear=function(){this.aliasToTopic={}},t.exports=r},e7fc:function(t,e,n){"use strict";(function(e){const r=n("df86"),i=n("ea08"),o=n("0b16"),a=n("53a8"),s=n("34eb")("mqttjs"),l={};function u(t){let e;t.auth&&(e=t.auth.match(/^(.+):(.+)$/),e?(t.username=e[1],t.password=e[2]):t.username=t.auth)}function c(t,e){if(s("connecting to an MQTT broker..."),"object"!==typeof t||e||(e=t,t=null),e=e||{},t){const n=o.parse(t,!0);if(null!=n.port&&(n.port=Number(n.port)),e=a(n,e),null===e.protocol)throw new Error("Missing protocol");e.protocol=e.protocol.replace(/:$/,"")}if(u(e),e.query&&"string"===typeof e.query.clientId&&(e.clientId=e.query.clientId),e.cert&&e.key){if(!e.protocol)throw new Error("Missing secure protocol key");if(-1===["mqtts","wss","wxs","alis"].indexOf(e.protocol))switch(e.protocol){case"mqtt":e.protocol="mqtts";break;case"ws":e.protocol="wss";break;case"wx":e.protocol="wxs";break;case"ali":e.protocol="alis";break;default:throw new Error('Unknown protocol for secure connection: "'+e.protocol+'"!')}}if(!l[e.protocol]){const t=-1!==["mqtts","wss"].indexOf(e.protocol);e.protocol=["mqtt","mqtts","ws","wss","wx","wxs","ali","alis"].filter((function(e,n){return(!t||n%2!==0)&&"function"===typeof l[e]}))[0]}if(!1===e.clean&&!e.clientId)throw new Error("Missing clientId for unclean clients");function n(t){return e.servers&&(t._reconnectCount&&t._reconnectCount!==e.servers.length||(t._reconnectCount=0),e.host=e.servers[t._reconnectCount].host,e.port=e.servers[t._reconnectCount].port,e.protocol=e.servers[t._reconnectCount].protocol?e.servers[t._reconnectCount].protocol:e.defaultProtocol,e.hostname=e.host,t._reconnectCount++),s("calling streambuilder for",e.protocol),l[e.protocol](t,e)}e.protocol&&(e.defaultProtocol=e.protocol);const i=new r(n,e);return i.on("error",(function(){})),i}"undefined"!==typeof e&&"browser"!==e.title||"function"!==typeof n?(l.mqtt=n("05ee"),l.tcp=n("05ee"),l.ssl=n("fe3c"),l.tls=n("fe3c"),l.mqtts=n("fe3c")):(l.wx=n("8311"),l.wxs=n("8311"),l.ali=n("c4c7"),l.alis=n("c4c7")),l.ws=n("fcb9"),l.wss=n("fcb9"),t.exports=c,t.exports.connect=c,t.exports.MqttClient=r,t.exports.Store=i}).call(this,n("4362"))},e893:function(t,e,n){var r=n("1a2d"),i=n("56ef"),o=n("06cf"),a=n("9bf2");t.exports=function(t,e,n){for(var s=i(e),l=a.f,u=o.f,c=0;c0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";var e=this.head,n=""+e.data;while(e=e.next)n+=t+e.data;return n}},{key:"concat",value:function(t){if(0===this.length)return c.alloc(0);var e=c.allocUnsafe(t>>>0),n=this.head,r=0;while(n)p(n.data,e,r),r+=n.data.length,n=n.next;return e}},{key:"consume",value:function(t,e){var n;return ti.length?i.length:t;if(o===i.length?r+=i:r+=i.slice(0,t),t-=o,0===t){o===i.length?(++n,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(t){var e=c.allocUnsafe(t),n=this.head,r=1;n.data.copy(e),t-=n.data.length;while(n=n.next){var i=n.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),t-=o,0===t){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,e}},{key:d,value:function(t,e){return f(this,i({},e,{depth:0,customInspect:!1}))}}]),t}()},e95a:function(t,e,n){var r=n("b622"),i=n("3f8c"),o=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},e9c4:function(t,e,n){var r=n("23e7"),i=n("d066"),o=n("2ba4"),a=n("c65b"),s=n("e330"),l=n("d039"),u=n("e8b5"),c=n("1626"),h=n("861d"),f=n("d9b5"),d=n("f36a"),p=n("04f8"),g=i("JSON","stringify"),v=s(/./.exec),y=s("".charAt),m=s("".charCodeAt),b=s("".replace),_=s(1..toString),x=/[\uD800-\uDFFF]/g,w=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,O=!p||l((function(){var t=i("Symbol")();return"[null]"!=g([t])||"{}"!=g({a:t})||"{}"!=g(Object(t))})),C=l((function(){return'"\\udf06\\ud834"'!==g("\udf06\ud834")||'"\\udead"'!==g("\udead")})),k=function(t,e){var n=d(arguments),r=e;if((h(e)||void 0!==t)&&!f(t))return u(e)||(e=function(t,e){if(c(r)&&(e=a(r,this,t,e)),!f(e))return e}),n[1]=e,o(g,null,n)},A=function(t,e,n){var r=y(n,e-1),i=y(n,e+1);return v(w,t)&&!v(S,i)||v(S,t)&&!v(w,r)?"\\u"+_(m(t,0),16):t};g&&r({target:"JSON",stat:!0,arity:3,forced:O||C},{stringify:function(t,e,n){var r=d(arguments),i=o(O?k:g,null,r);return C&&"string"==typeof i?b(i,x,A):i}})},ea08:function(t,e,n){"use strict";const r=n("53a8"),i=n("035d").Readable,o={objectMode:!0},a={clean:!0};function s(t){if(!(this instanceof s))return new s(t);this.options=t||{},this.options=r(a,t),this._inflights=new Map}s.prototype.put=function(t,e){return this._inflights.set(t.messageId,t),e&&e(),this},s.prototype.createStream=function(){const t=new i(o),e=[];let n=!1,r=0;return this._inflights.forEach((function(t,n){e.push(t)})),t._read=function(){!n&&r1&&void 0!==arguments[1]?arguments[1]:void 0;if(!t||void 0===e)return!1;var n="object"===(0,a["default"])(this[t]);n&&(e=(0,h.deepClone)(e,!0));var r=this.render;"style"===t?this.style.update(e):n?Object.assign(this[t],e):this[t]=e,"index"===t&&r.sortGraphsByIndex(),r.drawAllGraph()},f.prototype.animation=function(){var t=(0,o["default"])(i["default"].mark((function t(e,n){var r,a,s,l,u,f,p,g,v,y=arguments;return i["default"].wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r=y.length>2&&void 0!==y[2]&&y[2],"shape"===e||"style"===e){t.next=4;break}return console.error("Only supported shape and style animation!"),t.abrupt("return");case 4:if(n=(0,h.deepClone)(n,!0),"style"===e&&this.style.colorProcessor(n),a=this[e],s=Object.keys(n),l={},s.forEach((function(t){return l[t]=a[t]})),u=this.animationFrame,f=this.animationCurve,p=this.animationDelay,g=(0,c["default"])(f,l,n,u,!0),this.animationRoot.push(a),this.animationKeys.push(s),this.animationFrameState.push(g),!r){t.next=17;break}return t.abrupt("return");case 17:if(!(p>0)){t.next=20;break}return t.next=20,d(p);case 20:return v=this.render,t.abrupt("return",new Promise(function(){var t=(0,o["default"])(i["default"].mark((function t(e){return i["default"].wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,v.launchAnimation();case 2:e();case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()));case 22:case"end":return t.stop()}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}(),f.prototype.turnNextAnimationFrame=function(t){var e=this.animationDelay,n=this.animationRoot,r=this.animationKeys,i=this.animationFrameState,o=this.animationPause;o||Date.now()-t>8,0),n.writeUInt8(255&t,1),n}function a(){for(let t=0;t0&&(r|=128),a.writeUInt8(r,o++)}while(t>0&&o0&&(o=0),i?a.subarray(0,o):a.slice(0,o)}function l(t){const n=e.allocUnsafe(4);return n.writeUInt32BE(t,0),n}t.exports={cache:r,generateCache:a,generateNumber:o,genBufVariableByteInt:s,generate4ByteBuffer:l}}).call(this,n("1c35").Buffer)},f111:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.barConfig=void 0;var r={show:!0,name:"",stack:"",shapeType:"normal",echelonOffset:10,barWidth:"auto",barGap:"30%",barCategoryGap:"20%",xAxisIndex:0,yAxisIndex:0,data:[],backgroundBar:{show:!1,width:"auto",style:{fill:"rgba(200, 200, 200, .4)"}},label:{show:!1,position:"top",offset:[0,-10],formatter:null,style:{fontSize:10}},gradient:{color:[],local:!0},barStyle:{},independentColor:!1,independentColors:[],rLevel:0,animationCurve:"easeOutCubic",animationFrame:50};e.barConfig=r},f183:function(t,e,n){var r=n("23e7"),i=n("e330"),o=n("d012"),a=n("861d"),s=n("1a2d"),l=n("9bf2").f,u=n("241c"),c=n("057f"),h=n("4fad"),f=n("90e3"),d=n("bb2f"),p=!1,g=f("meta"),v=0,y=function(t){l(t,g,{value:{objectID:"O"+v++,weakData:{}}})},m=function(t,e){if(!a(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,g)){if(!h(t))return"F";if(!e)return"E";y(t)}return t[g].objectID},b=function(t,e){if(!s(t,g)){if(!h(t))return!0;if(!e)return!1;y(t)}return t[g].weakData},_=function(t){return d&&p&&h(t)&&!s(t,g)&&y(t),t},x=function(){w.enable=function(){},p=!0;var t=u.f,e=i([].splice),n={};n[g]=1,t(n).length&&(u.f=function(n){for(var r=t(n),i=0,o=r.length;i0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";var e=this.head,n=""+e.data;while(e=e.next)n+=t+e.data;return n}},{key:"concat",value:function(t){if(0===this.length)return c.alloc(0);var e=c.allocUnsafe(t>>>0),n=this.head,r=0;while(n)p(n.data,e,r),r+=n.data.length,n=n.next;return e}},{key:"consume",value:function(t,e){var n;return ti.length?i.length:t;if(o===i.length?r+=i:r+=i.slice(0,t),t-=o,0===t){o===i.length?(++n,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(t){var e=c.allocUnsafe(t),n=this.head,r=1;n.data.copy(e),t-=n.data.length;while(n=n.next){var i=n.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),t-=o,0===t){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,e}},{key:d,value:function(t,e){return f(this,i({},e,{depth:0,customInspect:!1}))}}]),t}()},f6b4:function(t,e,n){"use strict";var r=n("c532");function i(){this.handlers=[]}i.prototype.use=function(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},f6ba:function(t,e,n){"use strict";(function(e,r){function i(t){var e=this;this.next=null,this.entry=null,this.finish=function(){W(e,t)}}var o;t.exports=M,M.WritableState=A;var a={deprecate:n("b7d1")},s=n("b98b"),l=n("1c35").Buffer,u=e.Uint8Array||function(){};function c(t){return l.from(t)}function h(t){return l.isBuffer(t)||t instanceof u}var f,d=n("f482"),p=n("86c6"),g=p.getHighWaterMark,v=n("9bfc").codes,y=v.ERR_INVALID_ARG_TYPE,m=v.ERR_METHOD_NOT_IMPLEMENTED,b=v.ERR_MULTIPLE_CALLBACK,_=v.ERR_STREAM_CANNOT_PIPE,x=v.ERR_STREAM_DESTROYED,w=v.ERR_STREAM_NULL_VALUES,S=v.ERR_STREAM_WRITE_AFTER_END,O=v.ERR_UNKNOWN_ENCODING,C=d.errorOrDestroy;function k(){}function A(t,e,r){o=o||n("a493"),t=t||{},"boolean"!==typeof r&&(r=e instanceof o),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=g(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===t.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){R(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function M(t){o=o||n("a493");var e=this instanceof o;if(!e&&!f.call(M,this))return new M(t);this._writableState=new A(t,this,e),this.writable=!0,t&&("function"===typeof t.write&&(this._write=t.write),"function"===typeof t.writev&&(this._writev=t.writev),"function"===typeof t.destroy&&(this._destroy=t.destroy),"function"===typeof t.final&&(this._final=t.final)),s.call(this)}function T(t,e){var n=new S;C(t,n),r.nextTick(e,n)}function I(t,e,n,i){var o;return null===n?o=new w:"string"===typeof n||e.objectMode||(o=new y("chunk",["string","Buffer"],n)),!o||(C(t,o),r.nextTick(i,o),!1)}function E(t,e,n){return t.objectMode||!1===t.decodeStrings||"string"!==typeof e||(e=l.from(e,n)),e}function P(t,e,n,r,i,o){if(!n){var a=E(e,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=e.objectMode?1:r.length;e.length+=s;var l=e.length-1))throw new O(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(M.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(M.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),M.prototype._write=function(t,e,n){n(new m("_write()"))},M.prototype._writev=null,M.prototype.end=function(t,e,n){var r=this._writableState;return"function"===typeof t?(n=t,t=null,e=null):"function"===typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||H(this,r,n),this},Object.defineProperty(M.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(M.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),M.prototype.destroy=d.destroy,M.prototype._undestroy=d.undestroy,M.prototype._destroy=function(t,e){e(t)}}).call(this,n("c8ba"),n("4362"))},f772:function(t,e,n){var r=n("5692"),i=n("90e3"),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},f893:function(t,e,n){t.exports={default:n("8119"),__esModule:!0}},f9c1:function(t,e){function n(t){var e=t._readableState;return e?e.objectMode||"number"===typeof t._duplexState?t.read():t.read(r(e)):null}function r(t){return t.buffer.length?t.buffer.head?t.buffer.head.data.length:t.buffer[0].length:t.length}t.exports=n},fa10:function(t,e,n){},faa1:function(t,e,n){"use strict";var r,i="object"===typeof Reflect?Reflect:null,o=i&&"function"===typeof i.apply?i.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};function a(t){console&&console.warn&&console.warn(t)}r=i&&"function"===typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var s=Number.isNaN||function(t){return t!==t};function l(){l.init.call(this)}t.exports=l,t.exports.once=_,l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var u=10;function c(t){if("function"!==typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function h(t){return void 0===t._maxListeners?l.defaultMaxListeners:t._maxListeners}function f(t,e,n,r){var i,o,s;if(c(n),o=t._events,void 0===o?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),s=o[e]),void 0===s)s=o[e]=n,++t._eventsCount;else if("function"===typeof s?s=o[e]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),i=h(t),i>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=t,l.type=e,l.count=s.length,a(l)}return t}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=d.bind(r);return i.listener=n,r.wrapFn=i,i}function g(t,e,n){var r=t._events;if(void 0===r)return[];var i=r[e];return void 0===i?[]:"function"===typeof i?n?[i.listener||i]:[i]:n?b(i):y(i,i.length)}function v(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"===typeof n)return 1;if(void 0!==n)return n.length}return 0}function y(t,e){for(var n=new Array(e),r=0;r0&&(a=e[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=i[t];if(void 0===l)return!1;if("function"===typeof l)o(l,this,e);else{var u=l.length,c=y(l,u);for(n=0;n=0;o--)if(n[o]===e||n[o].listener===e){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():m(n,i),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,a||e)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(t){var e,n,r;if(n=this._events,void 0===n)return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r=0;r--)this.removeListener(t,e[r]);return this},l.prototype.listeners=function(t){return g(this,t,!0)},l.prototype.rawListeners=function(t){return g(this,t,!1)},l.listenerCount=function(t,e){return"function"===typeof t.listenerCount?t.listenerCount(e):v.call(t,e)},l.prototype.listenerCount=v,l.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},faf5:function(t,e,n){t.exports=!n("0bad")&&!n("4b8b")((function(){return 7!=Object.defineProperty(n("05f5")("div"),"a",{get:function(){return 7}}).a}))},fb12:function(t,e,n){(function(e,r){var i=n("b4de"),o=n("ab52"),a=n("3fb5"),s=n("f9c1"),l=e.from&&e.from!==Uint8Array.from?e.from([0]):new e([0]),u=function(t,e){t._corked?t.once("uncork",e):e()},c=function(t,e){t._autoDestroy&&t.destroy(e)},h=function(t,e){return function(n){n?c(t,"premature close"===n.message?null:n):e&&!t._ended&&t.end()}},f=function(t,e){return t?t._writableState&&t._writableState.finished?e():t._writableState?t.end(e):(t.end(),void e()):e()},d=function(){},p=function(t){return new i.Readable({objectMode:!0,highWaterMark:16}).wrap(t)},g=function(t,e,n){if(!(this instanceof g))return new g(t,e,n);i.Duplex.call(this,n),this._writable=null,this._readable=null,this._readable2=null,this._autoDestroy=!n||!1!==n.autoDestroy,this._forwardDestroy=!n||!1!==n.destroy,this._forwardEnd=!n||!1!==n.end,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this.destroyed=!1,t&&this.setWritable(t),e&&this.setReadable(e)};a(g,i.Duplex),g.obj=function(t,e,n){return n||(n={}),n.objectMode=!0,n.highWaterMark=16,new g(t,e,n)},g.prototype.cork=function(){1===++this._corked&&this.emit("cork")},g.prototype.uncork=function(){this._corked&&0===--this._corked&&this.emit("uncork")},g.prototype.setWritable=function(t){if(this._unwrite&&this._unwrite(),this.destroyed)t&&t.destroy&&t.destroy();else if(null!==t&&!1!==t){var e=this,n=o(t,{writable:!0,readable:!1},h(this,this._forwardEnd)),i=function(){var t=e._ondrain;e._ondrain=null,t&&t()},a=function(){e._writable.removeListener("drain",i),n()};this._unwrite&&r.nextTick(i),this._writable=t,this._writable.on("drain",i),this._unwrite=a,this.uncork()}else this.end()},g.prototype.setReadable=function(t){if(this._unread&&this._unread(),this.destroyed)t&&t.destroy&&t.destroy();else{if(null===t||!1===t)return this.push(null),void this.resume();var e=this,n=o(t,{writable:!1,readable:!0},h(this)),r=function(){e._forward()},i=function(){e.push(null)},a=function(){e._readable2.removeListener("readable",r),e._readable2.removeListener("end",i),n()};this._drained=!0,this._readable=t,this._readable2=t._readableState?t:p(t),this._readable2.on("readable",r),this._readable2.on("end",i),this._unread=a,this._forward()}},g.prototype._read=function(){this._drained=!0,this._forward()},g.prototype._forward=function(){if(!this._forwarding&&this._readable2&&this._drained){var t;this._forwarding=!0;while(this._drained&&null!==(t=s(this._readable2)))this.destroyed||(this._drained=this.push(t));this._forwarding=!1}},g.prototype.destroy=function(t,e){if(e||(e=d),this.destroyed)return e(null);this.destroyed=!0;var n=this;r.nextTick((function(){n._destroy(t),e(null)}))},g.prototype._destroy=function(t){if(t){var e=this._ondrain;this._ondrain=null,e?e(t):this.emit("error",t)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close")},g.prototype._write=function(t,e,n){if(!this.destroyed)return this._corked?u(this,this._write.bind(this,t,e,n)):t===l?this._finish(n):this._writable?void(!1===this._writable.write(t)?this._ondrain=n:this.destroyed||n()):n()},g.prototype._finish=function(t){var e=this;this.emit("preend"),u(this,(function(){f(e._forwardEnd&&e._writable,(function(){!1===e._writableState.prefinished&&(e._writableState.prefinished=!0),e.emit("prefinish"),u(e,t)}))}))},g.prototype.end=function(t,e,n){return"function"===typeof t?this.end(null,null,t):"function"===typeof e?this.end(t,null,e):(this._ended=!0,t&&this.write(t),this._writableState.ending||this._writableState.destroyed||this.write(l),i.Writable.prototype.end.call(this,n))},t.exports=g}).call(this,n("1c35").Buffer,n("4362"))},fb6a:function(t,e,n){"use strict";var r=n("23e7"),i=n("e8b5"),o=n("68ee"),a=n("861d"),s=n("23cb"),l=n("07fa"),u=n("fc6a"),c=n("8418"),h=n("b622"),f=n("1dde"),d=n("f36a"),p=f("slice"),g=h("species"),v=Array,y=Math.max;r({target:"Array",proto:!0,forced:!p},{slice:function(t,e){var n,r,h,f=u(this),p=l(f),m=s(t,p),b=s(void 0===e?p:e,p);if(i(f)&&(n=f.constructor,o(n)&&(n===v||i(n.prototype))?n=void 0:a(n)&&(n=n[g],null===n&&(n=void 0)),n===v||void 0===n))return d(f,m,b);for(r=new(void 0===n?v:n)(y(b-m,0)),h=0;m2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:2===n?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}function s(t,e,n){return t.substr(!n||n<0?0:+n,e.length)===e}function l(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}function u(t,e,n){return"number"!==typeof n&&(n=0),!(n+e.length>t.length)&&-1!==t.indexOf(e,n)}o("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(t,e,n){var r,i;if("string"===typeof e&&s(e,"not ")?(r="must not be",e=e.replace(/^not /,"")):r="must be",l(t," argument"))i="The ".concat(t," ").concat(r," ").concat(a(e,"type"));else{var o=u(t,".")?"property":"argument";i='The "'.concat(t,'" ').concat(o," ").concat(r," ").concat(a(e,"type"))}return i+=". Received type ".concat(typeof n),i}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=i},fc5e:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},fc6a:function(t,e,n){var r=n("44ad"),i=n("1d80");t.exports=function(t){return r(i(t))}},fcb9:function(t,e,n){"use strict";(function(e){const{Buffer:r}=n("1c35"),i=n("7f73"),o=n("34eb")("mqttjs:ws"),a=n("fb12"),s=n("035d").Transform,l=["rejectUnauthorized","ca","cert","key","pfx","passphrase"],u="undefined"!==typeof e&&"browser"===e.title||"function"===typeof n;function c(t,e){let n=t.protocol+"://"+t.hostname+":"+t.port+t.path;return"function"===typeof t.transformWsUrl&&(n=t.transformWsUrl(n,t,e)),n}function h(t){const e=t;return t.hostname||(e.hostname="localhost"),t.port||("wss"===t.protocol?e.port=443:e.port=80),t.path||(e.path="/"),t.wsOptions||(e.wsOptions={}),u||"wss"!==t.protocol||l.forEach((function(n){Object.prototype.hasOwnProperty.call(t,n)&&!Object.prototype.hasOwnProperty.call(t.wsOptions,n)&&(e.wsOptions[n]=t[n])})),e}function f(t){const e=h(t);if(e.hostname||(e.hostname=e.host),!e.hostname){if("undefined"===typeof document)throw new Error("Could not determine host. Specify host manually.");const t=new URL(document.URL);e.hostname=t.hostname,e.port||(e.port=t.port)}return void 0===e.objectMode&&(e.objectMode=!(!0===e.binary||void 0===e.binary)),e}function d(t,e,n){o("createWebSocket"),o("protocol: "+n.protocolId+" "+n.protocolVersion);const r="MQIsdp"===n.protocolId&&3===n.protocolVersion?"mqttv3.1":"mqtt";o("creating new Websocket for url: "+e+" and protocol: "+r);const a=new i(e,[r],n.wsOptions);return a}function p(t,e){const n="MQIsdp"===e.protocolId&&3===e.protocolVersion?"mqttv3.1":"mqtt",r=c(e,t),i=new WebSocket(r,[n]);return i.binaryType="arraybuffer",i}function g(t,e){o("streamBuilder");const n=h(e),r=c(n,t),a=d(t,r,n),s=i.createWebSocketStream(a,n.wsOptions);return s.url=r,a.on("close",()=>{s.destroy()}),s}function v(t,e){let n;o("browserStreamBuilder");const i=f(e),l=i.browserBufferSize||524288,u=e.browserBufferTimeout||1e3,c=!e.objectMode,h=p(t,e),d=v(e,w,S);e.objectMode||(d._writev=x),d.on("close",()=>{h.close()});const g="undefined"!==typeof h.addEventListener;function v(t,e,n){const r=new s({objectModeMode:t.objectMode});return r._write=e,r._flush=n,r}function y(){n.setReadable(d),n.setWritable(d),n.emit("connect")}function m(){n.end(),n.destroy()}function b(t){n.destroy(t)}function _(t){let e=t.data;e=e instanceof ArrayBuffer?r.from(e):r.from(e,"utf8"),d.push(e)}function x(t,e){const n=new Array(t.length);for(let i=0;il&&setTimeout(w,u,t,e,n),c&&"string"===typeof t&&(t=r.from(t,"utf8"));try{h.send(t)}catch(i){return n(i)}n()}function S(t){h.close(),t()}return h.readyState===h.OPEN?n=d:(n=n=a(void 0,void 0,e),e.objectMode||(n._writev=x),g?h.addEventListener("open",y):h.onopen=y),n.socket=h,g?(h.addEventListener("close",m),h.addEventListener("error",b),h.addEventListener("message",_)):(h.onclose=m,h.onerror=b,h.onmessage=_),n}t.exports=u?v:g}).call(this,n("4362"))},fcd4:function(t,e,n){e.f=n("cc15")},fce3:function(t,e,n){var r=n("d039"),i=n("da84"),o=i.RegExp;t.exports=r((function(){var t=o(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},fdbc:function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(t,e,n){var r=n("04f8");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fe34:function(t,e,n){"use strict";t.exports=c;var r=n("9bfc").codes,i=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,l=n("a493");function u(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=e&&this.push(e),r(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length