(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 j=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 j({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,x=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:x},this.pattern=m?n:n.toLowerCase(),this.chunks=[],this.pattern.length){var _=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,x=t.length,_=Math.max(0,Math.min(o,x)),w=u,O=_,C=d>1||g,k=C?Array(x):[];(m=t.indexOf(e,O))>-1;){var A=R(e,{currentLocation:m,expectedLocation:_,distance:s,ignoreLocation:y});if(w=Math.min(A,w),O=m+b,C)for(var M=0;M=F;H-=1){var G=H-1,W=n[t.charAt(G)];if(C&&(k[G]=+!!W),q[H]=(q[H+1]<<1|1)&W,L&&(q[H]|=(I[H+1]|I[H])<<1|1|I[H+1]),q[H]&P&&(E=R(e,{errors:L,currentLocation:G,expectedLocation:_,distance:s,ignoreLocation:y}))<=w){if(w=E,(O=G)<=_)break;F=Math.max(1,2*_-O)}}var U=R(e,{errors:L+1,currentLocation:_,expectedLocation:_,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}(),F=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}(F),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=-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}(F),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=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}(F),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}(F),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}(F),$=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}(F),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,x=o.ignoreLocation,_=void 0===x?T.ignoreLocation:x;return e(this,i),(r=n.call(this,t))._bitapSearch=new z(t,{location:s,threshold:u,distance:h,includeMatches:d,findAllMatches:g,minMatchCharLength:y,isCaseSensitive:b,ignoreLocation:_}),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}(F),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}(F),Z=[q,X,G,W,$,U,H,Y],K=Z.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 j))throw new Error("Incorrect 'index' type");this._myIndex=e||P(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=P,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 j({getFn:r});return a.setKeys(i),a.setIndexRecords(o),a},ft.config=T,function(){nt.push.apply(nt,arguments)}(et),ft},t.exports=r()},"035d":function(t,e,n){e=t.exports=n("85f8"),e.Stream=e,e.Readable=e,e.Writable=n("13a8"),e.Duplex=n("be3f"),e.Transform=n("3ca2"),e.PassThrough=n("7058"),e.finished=n("d9e1"),e.pipeline=n("652a")},"0366":function(t,e,n){var r=n("e330"),i=n("59ed"),o=r(r.bind);t.exports=function(t,e){return i(t),void 0===e?t:o?o(t,e):function(){return t.apply(e,arguments)}}},"037e":function(t,e,n){},"03d6":function(t,e,n){var r=n("9c0e"),i=n("6ca1"),o=n("39ad")(!1),a=n("5a94")("IE_PROTO");t.exports=function(t,e){var n,s=i(t),l=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);while(e.length>l)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]},"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("f36a"),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){function n(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}t.exports=n,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=x(o),o=_(o,i),o=L(o),o=D(o,t),o=R(o,t),o=B(o,t),o=z(o,t)),(0,l.doUpdate)({chart:t,series:o,key:"axisLine",getGraphConfig:F}),(0,l.doUpdate)({chart:t,series:o,key:"axisTick",getGraphConfig:H}),(0,l.doUpdate)({chart:t,series:o,key:"axisLabel",getGraphConfig:U}),(0,l.doUpdate)({chart:t,series:o,key:"axisName",getGraphConfig:K}),(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 x(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 _(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=j(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=P(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)]})),x=N(e,a,r,b,m);return d(d({},t),{},{tickPosition:b,tickLinePosition:x,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 z(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 F(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 H(t){var e=t.animationCurve,n=t.animationFrame,r=t.rLevel,i=G(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 G(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=Z(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 Z(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 K(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)}},"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=_,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},x=n("b383");function _(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=_(t)),t instanceof o?t.format():o.prototype.format.call(t)}function S(t,e){return _(t,!1,!0).resolve(e)}function O(t,e){return t?_(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=j.slice(0,T),z=j.slice(T+1),F=L.match(v);F&&(B.push(F[1]),z.unshift(F[2])),z.length&&(_="/"+z.join(".")+_),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),"/"!==_[0]&&(_="/"+_))}if(!y[O])for(T=0,P=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(!_&&!w)for(;M--;M)S.unshift("..");!_||""===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 _=_||n.host&&S.length,_&&!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("da84"),i=n("e8b5"),o=n("68ee"),a=n("861d"),s=n("b622"),l=s("species"),u=r.Array;t.exports=function(t){var e;return i(t)&&(e=t.constructor,o(e)&&(e===u||i(e.prototype))?e=void 0:a(e)&&(e=e[l],null===e&&(e=void 0))),void 0===e?u:e}},"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}))},"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("53b8"),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=_,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}))},"0d51":function(t,e,n){var r=n("da84"),i=r.String;t.exports=function(t){try{return i(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("b639").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,x=n("9bfc").codes,_=x.ERR_INVALID_ARG_TYPE,w=x.ERR_STREAM_PUSH_AFTER_EOF,S=x.ERR_METHOD_NOT_IMPLEMENTED,O=x.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("7d72").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=j(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):z(t,a)):E(t,a,e,!1)}else r||(a.reading=!1,z(t,a));return!a.ended&&(a.length=P?t=P:(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 z(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(F,t,e))}function F(t,e){while(!e.reading&&!e.ended&&(e.length0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function H(t){h("readable nexttick read 0"),t.read(0)}function G(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 Z(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!==Z(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(H,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,G(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;o1)return arguments[1];throw TypeError("cannot reduce a value from an empty iterator with no initial value")}i=arguments.length>1?t.call(a,i,e.value,s,n):e.value,s++;while(1){if(e=n.next(),!0===e.done)return i;i=t.call(a,i,e.value,s,n),s++}},o.prototype.concat=function(){return o.concat(Array.prototype.concat.apply(this,arguments))},o.prototype.dropWhile=function(t){var e,n,i=o(this),a=arguments[1],s=!1,l=0;if("[object Function]"!=r.prototype.toString.call(t))throw new TypeError;while(1){if(n=i.next(),!0===n.done)break;if(!t.call(a,n.value,l,i)){s=!0,e=n.value;break}l++}return s?i.constructor([e]).concat(i):i.constructor([])},o.prototype.takeWhile=function(t){var e=o(this),n=arguments[1],i=0;if("[object Function]"!=r.prototype.toString.call(t))throw new TypeError;return new e.constructor((function(){if(!0!==e._iterationObject.done){var r=e.next().value;t.call(n,r,i++,e)?e._iterationObject.value=r:(e._iterationObject.done=!0,e._iterationObject.value=void 0)}return e._iterationObject}))},o.prototype.zipIterator=function(){return o.unzip(Array.prototype.concat.apply(this,arguments))},o.prototype.enumerateIterator=function(t){return o.count(t).zipIterator(this)},o.iterate=function(t){var e;return e=0,new o((function(){if("object"===typeof t)while(!(e in t)){if(e>=t.length){this._iterationObject.done=!0,this._iterationObject.value=void 0;break}e+=1}else e>=t.length&&(this._iterationObject.done=!0,this._iterationObject.value=void 0);return this._iterationObject.done||(this._iterationObject.value=t[e],e+=1),this._iterationObject}))},o.cycle=function(t,e){var n;return arguments.length<2&&(e=1/0),new o((function(){var r,i;return n&&(i=n()),n&&!0!==i.done||(e>0?(e--,r=o.iterate(t),i=(n=r.next.bind(r))()):(this._iterationObject.done=!0,i=this._iterationObject)),i}))},o.concat=function(t){var e;return t=o(t),new o((function(){var n,r;return e&&(r=e()),r&&!0!==r.done?r:(r=t.next(),!1===r.done?(n=o(r.value),e=n.next.bind(n),e()):r)}))},o.unzip=function(t){return t=o(t).map(o),0===t.length?new o([]):new o((function(){var e,n,r=t.map((function(t){return n=t.next(),!0===n.done&&(e=!0),n.value}));return e?(this._iterationObject.done=!0,this._iterationObject.value=void 0):this._iterationObject.value=r,this._iterationObject}))},o.zip=function(){return o.unzip(Array.prototype.slice.call(arguments))},o.chain=function(){return o.concat(Array.prototype.slice.call(arguments))},o.range=function(t,e,n){return arguments.length<3&&(n=1),arguments.length<2&&(e=t,t=0),t=t||0,n=n||1,new o((function(){t>=e&&(this._iterationObject.done=!0,this._iterationObject.value=void 0);var r=t;return t+=n,this._iterationObject.value=r,this._iterationObject}))},o.count=function(t,e){return o.range(t,1/0,e)},o.repeat=function(t,e){return new o.range(e).mapIterator((function(){return t}))}},"107c":function(t,e,n){var r=n("d039"),i=n("da84"),o=i.RegExp;t.exports=r((function(){var t=o("(?b)","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("da84"),i=n("5926"),o=n("577e"),a=n("1d80"),s=r.RangeError;t.exports=function(t){var e=o(a(this)),n="",r=i(t);if(r<0||r==1/0)throw s("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(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("44e7"),l=n("825a"),u=n("1d80"),c=n("4840"),h=n("8aa5"),f=n("50c4"),d=n("577e"),p=n("dc4a"),g=n("f36a"),v=n("14c3"),y=n("9263"),m=n("9f7f"),b=n("d039"),x=m.UNSUPPORTED_Y,_=4294967295,w=Math.min,S=[].push,O=o(/./.exec),C=o(S),k=o("".slice),A=!b((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=d(u(this)),a=void 0===n?_:n>>>0;if(0===a)return[];if(void 0===t)return[o];if(!s(t))return i(e,o,t,a);var l,c,h,f=[],p=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),v=0,m=new RegExp(t.source,p+"g");while(l=i(y,m,o)){if(c=m.lastIndex,c>v&&(C(f,k(o,v,l.index)),l.length>1&&l.index=a))break;m.lastIndex===l.index&&m.lastIndex++}return v===o.length?!h&&O(m,"")||C(f,""):C(f,k(o,v)),f.length>a?g(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=u(this),a=void 0==e?void 0:p(e,t);return a?i(a,e,r,n):i(o,d(r),e,n)},function(t,r){var i=l(this),a=d(t),s=n(o,i,a,r,o!==e);if(s.done)return s.value;var u=c(i,RegExp),p=i.unicode,g=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(x?"g":"y"),y=new u(x?"^(?:"+i.source+")":i,g),m=void 0===r?_:r>>>0;if(0===m)return[];if(0===a.length)return null===v(y,a)?[a]:[];var b=0,S=0,O=[];while(S0&&(r.push(t),this.length>=this.capacity&&(e=this.store.order.head.next,i.push(e.value)),this.dispatchesRangeChanges&&this.dispatchBeforeRangeChange(r,i,0),this.store.add(t),i.length>0&&this.store["delete"](e.value),this.length=this.length+r.length-i.length,this.dispatchesRangeChanges&&this.dispatchRangeChange(r,i,0)),r.length!==i.length},l.prototype["delete"]=function(t,e){if(e)throw new Error("LruSet#delete does not support second argument: equals");var n=this.store.has(t);return n&&(this.dispatchesRangeChanges&&this.dispatchBeforeRangeChange([],[t],0),this.store["delete"](t),this.length--,this.dispatchesRangeChanges&&this.dispatchRangeChange([],[t],0)),n},l.prototype.one=function(){if(this.length>0)return this.store.one()},l.prototype.clear=function(){this.store.clear(),this.length=0},l.prototype.reduce=function(t,e){var n=arguments[2],r=this.store,i=0;return r.reduce((function(e,r){return t.call(n,e,r,i++,this)}),e,this)},l.prototype.reduceRight=function(t,e){var n=arguments[2],r=this.store,i=this.length-1;return r.reduceRight((function(e,r){return t.call(n,e,r,i--,this)}),e,this)},l.prototype.iterate=function(){return this.store.iterate()}},"13a8":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("9ede"),l=n("b639").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("edb3"),p=n("31b5"),g=p.getHighWaterMark,v=n("fbd7").codes,y=v.ERR_INVALID_ARG_TYPE,m=v.ERR_METHOD_NOT_IMPLEMENTED,b=v.ERR_MULTIPLE_CALLBACK,x=v.ERR_STREAM_CANNOT_PIPE,_=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("be3f"),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("be3f");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 j(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||G(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"))},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("da84"),i=n("c65b"),o=n("825a"),a=n("1626"),s=n("c6b6"),l=n("9263"),u=r.TypeError;t.exports=function(t,e){var n=t.exec;if(a(n)){var r=i(n,t,e);return null!==r&&o(r),r}if("RegExp"===s(t))return i(l,t,e);throw u("RegExp#exec called on incompatible receiver")}},"14e1":function(t,e,n){},"159b":function(t,e,n){var r=n("da84"),i=n("fdbc"),o=n("785a"),a=n("17c2"),s=n("9112"),l=function(t){if(t&&t.forEach!==a)try{s(t,"forEach",a)}catch(e){t.forEach=a}};for(var u in i)i[u]&&l(r[u]&&r[u].prototype);l(o)},1609:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},1626:function(t,e){t.exports=function(t){return"function"==typeof t}},"17c2":function(t,e,n){"use strict";var r=n("b727").forEach,i=n("a640"),o=i("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?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))}},"186f":function(t,e,n){"use strict";(function(e){n("a4dc");var r,i,o,a=n("f15e");if(void 0!==e.Map&&"function"===typeof e.Set.prototype.values){r=t.exports=e.Map,i=r,r.Map=r;var s,l={}.__proto__===Object.prototype;s=l?function(){this.__proto__=v}:function(){Object.defineProperties(this,observableSetProperties)},Object.defineProperty(r.prototype,"makeObservable",{value:s,writable:!0,configurable:!0,enumerable:!1}),Object.defineProperty(r.prototype,"makePropertyObservable",{value:function(){},writable:!0,configurable:!0,enumerable:!1}),r.prototype.constructClone=function(t){return new this.constructor(t)},r.prototype.isMap=!0,r.prototype.addEach=function(t){if(t&&Object(t)===t)if("function"===typeof t.forEach)!0===t.isMap?t.forEach((function(t,e){this.set(e,t)}),this):t.forEach((function(t){this.set(t[0],t[1])}),this);else if("number"===typeof t.length)for(var e=0;eo){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,x={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=u-c,w=Math.floor,S=String.fromCharCode;function O(t){throw new RangeError(x[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>_*h>>1;r+=u)t=w(t/_);return w(r+(_+1)*t/(t+f))}function j(t){var e,n,r,i,o,a,s,f,d,y,m=[],b=t.length,x=0,_=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-x)/a))&&O("overflow"),x+=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(x-o,e,0==o),w(x/e)>l-_&&O("overflow"),_+=w(x/e),x%=e,m.splice(x++,0,_)}return M(m)}function P(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)/x)&&O("overflow"),n+=(s-e)*x,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")},"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("53b8");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=x(r,t),r=_(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:P,getStartGraphConfig:R}),(0,l.doUpdate)({chart:t,series:r,key:"gaugeArc",getGraphConfig:N,getStartGraphConfig:F,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 x(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 _(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:j(t,o)}}))}function E(t,e){var n=t.labelPosition,r=t.axisLabel.data;return{content:r[e].toString(),position:n[e]}}function j(t,e){var n=t.labelAlign,r=t.axisLabel,i=r.style;return(0,h.deepMerge)(p({},n[e]),i)}function P(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=P(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:z(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 z(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 F(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:H(t),style:G(t),setGraphCenter:function(t,e){e.style.graphCenter=r}}]}function H(t){var e=t.center;return{points:W(e),close:!0}}function G(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)}},"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:P}),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:Z})}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),x(t),_(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 x(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 _(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=j(o,a,o<0?0:o,s,i),u=n.map((function(t){return j(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 j(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 P(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:z(t,a),style:H(t,a)}}))}function B(t){var e=t.shapeType;return"leftEchelon"===e||"rightEchelon"===e?"polyline":"rect"}function z(t,e){var n=t.shapeType;return"leftEchelon"===n?F(t,e):"rightEchelon"===n?V(t,e):q(t,e)}function F(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)},x={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)}},_=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){_(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 j(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function P(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(j(i),"g"),o)})),P(e,i,o)},B={MOUNT:"mount",SYMBOL_MOUNT:"symbol_mount"},z=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),(x.isIE()||x.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=x.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),F=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__",H=!!window[q];H?L=window[q]:(L=new z({attrs:{id:V,"aria-hidden":"true"}}),window[q]=L);var G=function(){var t=document.getElementById(V);t?L.attach(t):L.mount(document.body,!0)};document.body?G():F(G);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("da84"),i=n("0366"),o=n("c65b"),a=n("825a"),s=n("0d51"),l=n("e95a"),u=n("07fa"),c=n("3a9b"),h=n("9a1f"),f=n("35a1"),d=n("2a62"),p=r.TypeError,g=function(t,e){this.stopped=t,this.result=e},v=g.prototype;t.exports=function(t,e,n){var r,y,m,b,x,_,w,S=n&&n.that,O=!(!n||!n.AS_ENTRIES),C=!(!n||!n.IS_ITERATOR),k=!(!n||!n.INTERRUPTED),A=i(e,S),M=function(t){return r&&d(r,"normal",t),new g(!0,t)},T=function(t){return O?(a(t),k?A(t[0],t[1],M):A(t[0],t[1])):k?A(t,M):A(t)};if(C)r=t;else{if(y=f(t),!y)throw p(s(t)+" is not iterable");if(l(y)){for(m=0,b=u(t);b>m;m++)if(x=T(t[m]),x&&c(v,x))return x;return new g(!1)}r=h(t,y)}_=r.next;while(!(w=o(_,r)).done){try{x=T(w.value)}catch(I){d(r,"throw",I)}if("object"==typeof x&&x&&c(v,x))return x}return new g(!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)}},"23e7":function(t,e,n){var r=n("da84"),i=n("06cf").f,o=n("9112"),a=n("6eeb"),s=n("ce4e"),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.noTargetGet?(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:z})}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=x(r,i),a=_(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 x(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 _(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 z(t){var e=t.animationCurve,n=t.animationFrame,r=t.rLevel,i=F(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 F(t){var e=G(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=H(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 H(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 G(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("e330"),i=n("5e77").PROPER,o=n("6eeb"),a=n("825a"),s=n("3a9b"),l=n("577e"),u=n("d039"),c=n("ad6d"),h="toString",f=RegExp.prototype,d=f[h],p=r(c),g=u((function(){return"/a/b"!=d.call({source:"a",flags:"b"})})),v=i&&d.name!=h;(g||v)&&o(RegExp.prototype,h,(function(){var t=a(this),e=l(t.source),n=t.flags,r=l(void 0===n&&s(f,t)&&!("flags"in f)?p(t):n);return"/"+e+"/"+r}),{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");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 x(t,e){return b.call(t,e)}function _(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var w=/-(\w)/g,S=_((function(t){return t.replace(w,(function(t,e){return e?e.toUpperCase():""}))})),O=_((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),C=/\B([A-Z])/g,k=_((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 j(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(Z)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=!Z&&!K&&"undefined"!==typeof t&&(t["process"]&&"server"===t["process"].env.VUE_ENV)),Y},ut=Z&&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=P,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&&!x(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 Zn(){var t,e;for($n=Yn(),Gn=!0,Fn.sort((function(t,e){return t.id-e.id})),Wn=0;WnWn&&Fn[n].id>t.id)n--;Fn.splice(n+1,0,t)}else Fn.push(t);Hn||(Hn=!0,pe(Zn))}}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=P)),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:P,set:P};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):Pt(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=Zt(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&&x(r,o)||G(o)||ir(t,"_data",o)}Pt(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||P,P,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=P):(rr.get=n.get?r&&!1!==n.cache?fr(e):dr(n.get):P,rr.set=n.set||P),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]?P: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,F.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){F.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 jr(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)&&Pr(n,o,r,i)}}}function Pr(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),Pn(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)Pr(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",(function(e){jr(t,(function(t){return Er(e,t)}))})),this.$watch("exclude",(function(e){jr(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)&&Pr(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 Pt(t),t},t.options=Object.create(null),F.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:Ke}),Sr.version="2.6.12";var Br=v("style,class"),zr=v("input,textarea,option,select,progress"),Fr=function(t,e,n){return"value"===n&&zr(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"),Hr=function(t,e){return Yr(e)||"false"===e?"false":"contenteditable"===t&&qr(e)?e:"true"},Gr=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=Zr(r.data,e));while(i(n=n.parent))n&&n.data&&(e=Zr(e,n.data));return Kr(e.staticClass,e.class)}function Zr(t,e){return{staticClass:Qr(t.staticClass,e.staticClass),class:i(t.class)?[t.class,e.class]:e.class}}function Kr(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 xi(t){return t.tagName}function _i(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:xi,setTextContent:_i,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):Gr(e)?Yr(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Vr(e)?t.setAttribute(e,Hr(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 Hi={create:Fi,update:Fi};function Gi(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:Gi,update:Gi},$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 Zi(t,e,n){var r=Wi;return function i(){var o=e.apply(null,arguments);null!==o&&Ji(t,i,n,r)}}var Ki=ae&&!(it&&Number(it[1])<=53);function Qi(t,e,n,r){if(Ki){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),xe(n,i,Qi,Ji,Zi,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=_((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)?j(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(_o).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(_o).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=_((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=Z&&!et,Ao="transition",Mo="animation",To="transition",Io="transitionend",Eo="animation",jo="animationend";ko&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(To="WebkitTransition",Io="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Eo="WebkitAnimation",jo="webkitAnimationEnd"));var Po=Z?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Lo(t){Po((function(){Po(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=zo(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===Ao?Io:jo,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 Fo(t,e){while(t.length1}function Uo(t,e){!0!==e.data.show&&qo(e)}var $o=Z?{create:Uo,activate:Uo,remove:function(t,e){!0!==t.data.show?Ho(t,e):e()}}:{},Yo=[Hi,Ui,no,so,xo,$o],Xo=Yo.concat(zi),Zo=Ei({nodeOps:Si,modules:Xo});et&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&ia(t,"input")}));var Ko={inserted:function(t,e,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?_e(n,"postpatch",(function(){Ko.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})):Ho(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:Ko,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,_e(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()};_e(l,"afterEnter",d),_e(l,"enterCancelled",d),_e(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("1cdc"),y=n("605d"),m=s.setImmediate,b=s.clearImmediate,x=s.process,_=s.Dispatch,w=s.Function,S=s.MessageChannel,O=s.String,C=0,k={},A="onreadystatechange";try{r=s.location}catch(j){}var M=function(t){if(h(k,t)){var e=k[t];delete k[t],e()}},T=function(t){return function(){M(t)}},I=function(t){M(t.data)},E=function(t){s.postMessage(O(t),r.protocol+"//"+r.host)};m&&b||(m=function(t){var e=p(arguments,1);return k[++C]=function(){l(c(t)?t:w(t),void 0,e)},i(C),C},b=function(t){delete k[t]},y?i=function(t){x.nextTick(T(t))}:_&&_.now?i=function(t){_.now(T(t))}:S&&!v?(o=new S,a=o.port2,o.port1.onmessage=I,i=u(a.postMessage,a)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!f(E)?(i=E,s.addEventListener("message",I,!1)):i=A in g("script")?function(t){d.appendChild(g("script"))[A]=function(){d.removeChild(this),M(t)}}:function(t){setTimeout(T(t),0)}),t.exports={set:m,clear:b}},"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=x,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 x=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 x(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 _=b;e["default"]=_},"2dd0":function(t,e,n){var r=n("186f"),i=t.exports.ObjectChangeDescriptor=function(t){return this.name=t,this.isActive=!1,this._willChangeListeners=null,this._changeListeners=null,this};Object.defineProperties(i.prototype,{name:{value:null,writable:!0},isActive:{value:!1,writable:!0},_willChangeListeners:{value:null,writable:!0},willChangeListeners:{get:function(){return this._willChangeListeners||(this._willChangeListeners=new this.willChangeListenersRecordConstructor(this.name))}},_changeListeners:{value:null,writable:!0},changeListeners:{get:function(){return this._changeListeners||(this._changeListeners=new this.changeListenersRecordConstructor(this.name))}},changeListenersRecordConstructor:{value:s,writable:!0},willChangeListenersRecordConstructor:{value:u,writable:!0}});var o=t.exports.ListenerGhost=Object.create(null),a=new r;function s(t){var e=a.get(t);return e||(e="handle",e+=t,e+="Change",a.set(t,e)),this._current=null,this._current=null,this.specificHandlerMethodName=e,this}t.exports.ChangeListenersRecord=s,Object.defineProperties(s.prototype,{_current:{value:null,writable:!0},current:{get:function(){return this._current},set:function(t){this._current=t}},ListenerGhost:{value:o,writable:!0},ghostCount:{value:0,writable:!0},maxListenerGhostRatio:{value:.3,writable:!0},listenerGhostFilter:{value:function(t){return t!==this.ListenerGhost}},removeCurrentGostListenersIfNeeded:{value:function(){return this._current&&this.ghostCount/this._current.length>this.maxListenerGhostRatio&&(this.ghostCount=0,this._current=this._current.filter(this.listenerGhostFilter,this)),this._current}},dispatchBeforeChange:{value:!1,writable:!0},genericHandlerMethodName:{value:"handlePropertyChange",writable:!0}}),t.exports.WillChangeListenersRecord=u;var l=new r;function u(t){var e=l.get(t);return e||(e="handle",e+=t,e+="WillChange",l.set(t,e)),this.specificHandlerMethodName=e,this}u.prototype=new s,u.prototype.constructor=u,u.prototype.genericHandlerMethodName="handlePropertyWillChange"},"2e67":function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},"2f03":function(t,e){(function(){"use strict";if("undefined"===typeof ses||!ses.ok||ses.ok()){"undefined"!==typeof ses&&(ses.weakMapPermitHostObjects=v);var e=!1;if("function"===typeof WeakMap){var n=WeakMap;if("undefined"!==typeof navigator&&/Firefox/.test(navigator.userAgent));else{var r=new n,i=Object.freeze({});if(r.set(i,1),1===r.get(i))return void(t.exports=WeakMap);e=!0}}Object.prototype.hasOwnProperty;var o=Object.getOwnPropertyNames,a=Object.defineProperty,s=Object.isExtensible,l="weakmap:",u=l+"ident:"+Math.random()+"___";if("undefined"!==typeof crypto&&"function"===typeof crypto.getRandomValues&&"function"===typeof ArrayBuffer&&"function"===typeof Uint8Array){var c=new ArrayBuffer(25),h=new Uint8Array(c);crypto.getRandomValues(h),u=l+"rand:"+Array.prototype.map.call(h,(function(t){return(t%36).toString(36)})).join("")+"___"}if(a(Object,"getOwnPropertyNames",{value:function(t){return o(t).filter(y)}}),"getPropertyNames"in Object){var f=Object.getPropertyNames;a(Object,"getPropertyNames",{value:function(t){return f(t).filter(y)}})}(function(){var t=Object.freeze;a(Object,"freeze",{value:function(e){return m(e),t(e)}});var e=Object.seal;a(Object,"seal",{value:function(t){return m(t),e(t)}});var n=Object.preventExtensions;a(Object,"preventExtensions",{value:function(t){return m(t),n(t)}})})();var d=!1,p=0,g=function(){this instanceof g||x();var t=[],e=[],n=p++;function r(r,i){var o,a=m(r);return a?n in a?a[n]:i:(o=t.indexOf(r),o>=0?e[o]:i)}function i(e){var r=m(e);return r?n in r:t.indexOf(e)>=0}function o(r,i){var o,a=m(r);return a?a[n]=i:(o=t.indexOf(r),o>=0?e[o]=i:(o=t.length,e[o]=i,t[o]=r)),this}function a(r){var i,o,a=m(r);return a?n in a&&delete a[n]:(i=t.indexOf(r),!(i<0)&&(o=t.length-1,t[i]=void 0,e[i]=e[o],t[i]=t[o],t.length=o,e.length=o,!0))}return Object.create(g.prototype,{get___:{value:b(r)},has___:{value:b(i)},set___:{value:b(o)},delete___:{value:b(a)}})};g.prototype=Object.create(Object.prototype,{get:{value:function(t,e){return this.get___(t,e)},writable:!0,configurable:!0},has:{value:function(t){return this.has___(t)},writable:!0,configurable:!0},set:{value:function(t,e){return this.set___(t,e)},writable:!0,configurable:!0},delete:{value:function(t){return this.delete___(t)},writable:!0,configurable:!0}}),"function"===typeof n?function(){function r(){this instanceof g||x();var t,r=new n,i=void 0,o=!1;function a(t,e){return i?r.has(t)?r.get(t):i.get___(t,e):r.get(t,e)}function s(t){return r.has(t)||!!i&&i.has___(t)}function l(t){var e=!!r["delete"](t);return i&&i.delete___(t)||e}return t=e?function(t,e){return r.set(t,e),r.has(t)||(i||(i=new g),i.set(t,e)),this}:function(t,e){if(o)try{r.set(t,e)}catch(n){i||(i=new g),i.set___(t,e)}else r.set(t,e);return this},Object.create(g.prototype,{get___:{value:b(a)},has___:{value:b(s)},set___:{value:b(t)},delete___:{value:b(l)},permitHostObjects___:{value:b((function(t){if(t!==v)throw new Error("bogus call to permitHostObjects___");o=!0}))}})}e&&"undefined"!==typeof Proxy&&(Proxy=void 0),r.prototype=g.prototype,t.exports=r,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():("undefined"!==typeof Proxy&&(Proxy=void 0),t.exports=g)}function v(t){t.permitHostObjects___&&t.permitHostObjects___(v)}function y(t){return!(t.substr(0,l.length)==l&&"___"===t.substr(t.length-3))}function m(t){if(t!==Object(t))throw new TypeError("Not an object: "+t);var e=t[u];if(e&&e.key===t)return e;if(s(t)){e={key:t};try{return a(t,u,{value:e,writable:!1,enumerable:!1,configurable:!1}),e}catch(n){return}}}function b(t){return t.prototype=null,Object.freeze(t)}function x(){d||"undefined"===typeof console||(d=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}})()},"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 P}));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&&j(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 x(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 _(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 j(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 x(t,this._subscribers,e)},m.prototype.subscribeAction=function(t,e){var n="function"===typeof t?{before:t}:t;return x(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])})),_(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),_(this,!0)},m.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(m.prototype,b);var P=F((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=F((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=F((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=F((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:P.bind(null,t),mapGetters:D.bind(null,t),mapMutations:L.bind(null,t),mapActions:R.bind(null,t)}};function B(t){return z(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 z(t){return Array.isArray(t)||c(t)}function F(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;H(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)),G(c)}h=a})),u&&t.subscribeAction((function(t,n){if(o(t,n)){var r=W(),i=a(t),s="action "+t.type+r;H(c,s,e),c.log("%c action","color: #03A9F4; font-weight: bold",i),G(c)}})))}}function H(t,e,n){var r=n?t.groupCollapsed:t.group;try{r.call(t,e)}catch(i){t.log(e)}}function G(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:j,version:"3.6.0",mapState:P,mapMutations:L,mapGetters:D,mapActions:R,createNamespacedHelpers:N,createLogger:q};e["a"]=Y}).call(this,n("c8ba"))},"2f9a":function(t,e){t.exports=function(){}},"301c":function(t,e,n){n("e198")("asyncIterator")},"30b5":function(t,e,n){"use strict";var r=n("c532");function i(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var a=[];r.forEach(e,(function(t,e){null!==t&&"undefined"!==typeof t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(i(e)+"="+i(t))})))})),o=a.join("&")}if(o){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},"313e":function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return kb})),n.d(e,"dependencies",(function(){return Ab})),n.d(e,"PRIORITY",(function(){return Gb})),n.d(e,"init",(function(){return Bx})),n.d(e,"connect",(function(){return zx})),n.d(e,"disConnect",(function(){return Fx})),n.d(e,"disconnect",(function(){return Vx})),n.d(e,"dispose",(function(){return qx})),n.d(e,"getInstanceByDom",(function(){return Hx})),n.d(e,"getInstanceById",(function(){return Gx})),n.d(e,"registerTheme",(function(){return Wx})),n.d(e,"registerPreprocessor",(function(){return Ux})),n.d(e,"registerProcessor",(function(){return $x})),n.d(e,"registerPostInit",(function(){return Yx})),n.d(e,"registerPostUpdate",(function(){return Xx})),n.d(e,"registerUpdateLifecycle",(function(){return Zx})),n.d(e,"registerAction",(function(){return Kx})),n.d(e,"registerCoordinateSystem",(function(){return Qx})),n.d(e,"getCoordinateSystemDimensions",(function(){return Jx})),n.d(e,"registerLocale",(function(){return ec})),n.d(e,"registerLayout",(function(){return t_})),n.d(e,"registerVisual",(function(){return e_})),n.d(e,"registerLoading",(function(){return i_})),n.d(e,"setCanvasCreator",(function(){return o_})),n.d(e,"registerMap",(function(){return a_})),n.d(e,"getMap",(function(){return s_})),n.d(e,"registerTransform",(function(){return l_})),n.d(e,"dataTool",(function(){return u_})),n.d(e,"zrender",(function(){return o})),n.d(e,"matrix",(function(){return i})),n.d(e,"vector",(function(){return r})),n.d(e,"zrUtil",(function(){return v})),n.d(e,"color",(function(){return Me})),n.d(e,"throttle",(function(){return vy})),n.d(e,"helper",(function(){return s})),n.d(e,"use",(function(){return f_})),n.d(e,"setPlatformAPI",(function(){return ur["e"]})),n.d(e,"parseGeoJSON",(function(){return rO})),n.d(e,"parseGeoJson",(function(){return rO})),n.d(e,"number",(function(){return l})),n.d(e,"time",(function(){return u})),n.d(e,"graphic",(function(){return c})),n.d(e,"format",(function(){return h})),n.d(e,"util",(function(){return f})),n.d(e,"env",(function(){return g["a"]})),n.d(e,"List",(function(){return U_})),n.d(e,"Model",(function(){return Vu})),n.d(e,"Axis",(function(){return OO})),n.d(e,"ComponentModel",(function(){return gh})),n.d(e,"ComponentView",(function(){return Wp})),n.d(e,"SeriesModel",(function(){return Hp})),n.d(e,"ChartView",(function(){return fy})),n.d(e,"innerDrawElementOnCanvas",(function(){return sb})),n.d(e,"extendComponentModel",(function(){return CO})),n.d(e,"extendComponentView",(function(){return kO})),n.d(e,"extendSeriesModel",(function(){return AO})),n.d(e,"extendChartView",(function(){return MO}));var r={};n.r(r),n.d(r,"create",(function(){return b})),n.d(r,"copy",(function(){return x})),n.d(r,"clone",(function(){return _})),n.d(r,"set",(function(){return w})),n.d(r,"add",(function(){return S})),n.d(r,"scaleAndAdd",(function(){return O})),n.d(r,"sub",(function(){return C})),n.d(r,"len",(function(){return k})),n.d(r,"length",(function(){return A})),n.d(r,"lenSquare",(function(){return M})),n.d(r,"lengthSquare",(function(){return T})),n.d(r,"mul",(function(){return I})),n.d(r,"div",(function(){return E})),n.d(r,"dot",(function(){return j})),n.d(r,"scale",(function(){return P})),n.d(r,"normalize",(function(){return L})),n.d(r,"distance",(function(){return D})),n.d(r,"dist",(function(){return R})),n.d(r,"distanceSquare",(function(){return N})),n.d(r,"distSquare",(function(){return B})),n.d(r,"negate",(function(){return z})),n.d(r,"lerp",(function(){return F})),n.d(r,"applyTransform",(function(){return V})),n.d(r,"min",(function(){return q})),n.d(r,"max",(function(){return H}));var i={};n.r(i),n.d(i,"create",(function(){return In})),n.d(i,"identity",(function(){return En})),n.d(i,"copy",(function(){return jn})),n.d(i,"mul",(function(){return Pn})),n.d(i,"translate",(function(){return Ln})),n.d(i,"rotate",(function(){return Dn})),n.d(i,"scale",(function(){return Rn})),n.d(i,"invert",(function(){return Nn})),n.d(i,"clone",(function(){return Bn}));var o={};n.r(o),n.d(o,"init",(function(){return Fr})),n.d(o,"dispose",(function(){return Vr})),n.d(o,"disposeAll",(function(){return qr})),n.d(o,"getInstance",(function(){return Hr})),n.d(o,"registerPainter",(function(){return Gr})),n.d(o,"version",(function(){return Wr}));var a={};n.r(a),n.d(a,"updateProps",(function(){return iu})),n.d(a,"initProps",(function(){return ou})),n.d(a,"removeElement",(function(){return su})),n.d(a,"removeElementWithFadeOut",(function(){return uu})),n.d(a,"isElementRemoved",(function(){return au})),n.d(a,"extendShape",(function(){return Tv})),n.d(a,"extendPath",(function(){return Ev})),n.d(a,"registerShape",(function(){return jv})),n.d(a,"getShapeClass",(function(){return Pv})),n.d(a,"makePath",(function(){return Lv})),n.d(a,"makeImage",(function(){return Dv})),n.d(a,"mergePath",(function(){return Nv})),n.d(a,"resizePath",(function(){return Bv})),n.d(a,"subPixelOptimizeLine",(function(){return zv})),n.d(a,"subPixelOptimizeRect",(function(){return Fv})),n.d(a,"subPixelOptimize",(function(){return Vv})),n.d(a,"getTransform",(function(){return qv})),n.d(a,"applyTransform",(function(){return Hv})),n.d(a,"transformDirection",(function(){return Gv})),n.d(a,"groupTransition",(function(){return $v})),n.d(a,"clipPointsByRect",(function(){return Yv})),n.d(a,"clipRectByRect",(function(){return Xv})),n.d(a,"createIcon",(function(){return Zv})),n.d(a,"linePolygonIntersect",(function(){return Kv})),n.d(a,"lineLineIntersect",(function(){return Qv})),n.d(a,"setTooltipConfig",(function(){return ey})),n.d(a,"traverseElements",(function(){return ry})),n.d(a,"Group",(function(){return Lr})),n.d(a,"Image",(function(){return hs})),n.d(a,"Text",(function(){return Bs})),n.d(a,"Circle",(function(){return mg})),n.d(a,"Ellipse",(function(){return _g})),n.d(a,"Sector",(function(){return zg})),n.d(a,"Ring",(function(){return qg})),n.d(a,"Polygon",(function(){return $g})),n.d(a,"Polyline",(function(){return Zg})),n.d(a,"Rect",(function(){return xs})),n.d(a,"Line",(function(){return tv})),n.d(a,"BezierCurve",(function(){return ov})),n.d(a,"Arc",(function(){return lv})),n.d(a,"IncrementalDisplayable",(function(){return Cv})),n.d(a,"CompoundPath",(function(){return cv})),n.d(a,"LinearGradient",(function(){return pv})),n.d(a,"RadialGradient",(function(){return vv})),n.d(a,"BoundingRect",(function(){return sr})),n.d(a,"OrientedBoundingRect",(function(){return wv})),n.d(a,"Point",(function(){return Kn})),n.d(a,"Path",(function(){return rs}));var s={};n.r(s),n.d(s,"createList",(function(){return NS})),n.d(s,"getLayoutRect",(function(){return oh})),n.d(s,"createDimensions",(function(){return $_})),n.d(s,"dataStack",(function(){return BS})),n.d(s,"createSymbol",(function(){return Cm})),n.d(s,"createScale",(function(){return zS})),n.d(s,"mixinAxisModelCommonMethods",(function(){return FS})),n.d(s,"getECData",(function(){return zs})),n.d(s,"enableHoverEmphasis",(function(){return Vl})),n.d(s,"createTextStyle",(function(){return VS}));var l={};n.r(l),n.d(l,"linearMap",(function(){return Xr})),n.d(l,"round",(function(){return Kr})),n.d(l,"asc",(function(){return Qr})),n.d(l,"getPrecision",(function(){return Jr})),n.d(l,"getPrecisionSafe",(function(){return ti})),n.d(l,"getPixelPrecision",(function(){return ei})),n.d(l,"getPercentWithPrecision",(function(){return ni})),n.d(l,"MAX_SAFE_INTEGER",(function(){return ii})),n.d(l,"remRadian",(function(){return oi})),n.d(l,"isRadianAroundZero",(function(){return ai})),n.d(l,"parseDate",(function(){return li})),n.d(l,"quantity",(function(){return ui})),n.d(l,"quantityExponent",(function(){return ci})),n.d(l,"nice",(function(){return hi})),n.d(l,"quantile",(function(){return fi})),n.d(l,"reformIntervals",(function(){return di})),n.d(l,"isNumeric",(function(){return gi})),n.d(l,"numericToNumber",(function(){return pi}));var u={};n.r(u),n.d(u,"parse",(function(){return li})),n.d(u,"format",(function(){return bc}));var c={};n.r(c),n.d(c,"extendShape",(function(){return Tv})),n.d(c,"extendPath",(function(){return Ev})),n.d(c,"makePath",(function(){return Lv})),n.d(c,"makeImage",(function(){return Dv})),n.d(c,"mergePath",(function(){return Nv})),n.d(c,"resizePath",(function(){return Bv})),n.d(c,"createIcon",(function(){return Zv})),n.d(c,"updateProps",(function(){return iu})),n.d(c,"initProps",(function(){return ou})),n.d(c,"getTransform",(function(){return qv})),n.d(c,"clipPointsByRect",(function(){return Yv})),n.d(c,"clipRectByRect",(function(){return Xv})),n.d(c,"registerShape",(function(){return jv})),n.d(c,"getShapeClass",(function(){return Pv})),n.d(c,"Group",(function(){return Lr})),n.d(c,"Image",(function(){return hs})),n.d(c,"Text",(function(){return Bs})),n.d(c,"Circle",(function(){return mg})),n.d(c,"Ellipse",(function(){return _g})),n.d(c,"Sector",(function(){return zg})),n.d(c,"Ring",(function(){return qg})),n.d(c,"Polygon",(function(){return $g})),n.d(c,"Polyline",(function(){return Zg})),n.d(c,"Rect",(function(){return xs})),n.d(c,"Line",(function(){return tv})),n.d(c,"BezierCurve",(function(){return ov})),n.d(c,"Arc",(function(){return lv})),n.d(c,"IncrementalDisplayable",(function(){return Cv})),n.d(c,"CompoundPath",(function(){return cv})),n.d(c,"LinearGradient",(function(){return pv})),n.d(c,"RadialGradient",(function(){return vv})),n.d(c,"BoundingRect",(function(){return sr}));var h={};n.r(h),n.d(h,"addCommas",(function(){return Nc})),n.d(h,"toCamelCase",(function(){return Bc})),n.d(h,"normalizeCssArray",(function(){return zc})),n.d(h,"encodeHTML",(function(){return qc})),n.d(h,"formatTpl",(function(){return Uc})),n.d(h,"getTooltipMarker",(function(){return Yc})),n.d(h,"formatTime",(function(){return Xc})),n.d(h,"capitalFirst",(function(){return Zc})),n.d(h,"truncateText",(function(){return Ao})),n.d(h,"getTextRect",(function(){return iO}));var f={};n.r(f),n.d(f,"map",(function(){return v["map"]})),n.d(f,"each",(function(){return v["each"]})),n.d(f,"indexOf",(function(){return v["indexOf"]})),n.d(f,"inherits",(function(){return v["inherits"]})),n.d(f,"reduce",(function(){return v["reduce"]})),n.d(f,"filter",(function(){return v["filter"]})),n.d(f,"bind",(function(){return v["bind"]})),n.d(f,"curry",(function(){return v["curry"]})),n.d(f,"isArray",(function(){return v["isArray"]})),n.d(f,"isString",(function(){return v["isString"]})),n.d(f,"isObject",(function(){return v["isObject"]})),n.d(f,"isFunction",(function(){return v["isFunction"]})),n.d(f,"extend",(function(){return v["extend"]})),n.d(f,"defaults",(function(){return v["defaults"]})),n.d(f,"clone",(function(){return v["clone"]})),n.d(f,"merge",(function(){return v["merge"]})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var d=function(t,e){return d=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])},d(t,e)};function p(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}d(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create;var g=n("22d1"),v=n("6d8b"),y=function(t,e){return y=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])},y(t,e)};function m(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}y(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create;function b(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function x(t,e){return t[0]=e[0],t[1]=e[1],t}function _(t){return[t[0],t[1]]}function w(t,e,n){return t[0]=e,t[1]=n,t}function S(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function O(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function C(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function k(t){return Math.sqrt(M(t))}var A=k;function M(t){return t[0]*t[0]+t[1]*t[1]}var T=M;function I(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function E(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function j(t,e){return t[0]*e[0]+t[1]*e[1]}function P(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function L(t,e){var n=k(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function D(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var R=D;function N(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var B=N;function z(t,e){return t[0]=-e[0],t[1]=-e[1],t}function F(t,e,n,r){return t[0]=e[0]+r*(n[0]-e[0]),t[1]=e[1]+r*(n[1]-e[1]),t}function V(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function q(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function H(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var G=function(){function t(t,e){this.target=t,this.topTarget=e&&e.topTarget}return t}(),W=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){var e=t.target;while(e&&!e.draggable)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new G(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,r=t.offsetY,i=n-this._x,o=r-this._y;this._x=n,this._y=r,e.drift(i,o,t),this.handler.dispatchToElement(new G(e,t),"drag",t.event);var a=this.handler.findHover(n,r,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new G(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new G(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new G(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new G(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),U=W,$=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"===typeof e&&(r=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),i[t]||(i[t]=[]);for(var a=0;a>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 rt(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?K(s,a):K(a,s))}function it(t){return"CANVAS"===t.nodeName.toUpperCase()}var ot=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,at=[],st=g["a"].browser.firefox&&+g["a"].browser.version.split(".")[0]<39;function lt(t,e,n,r){return n=n||{},r?ut(t,e,n):st&&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):ut(t,e,n),n}function ut(t,e,n){if(g["a"].domSupported&&t.getBoundingClientRect){var r=e.clientX,i=e.clientY;if(it(t)){var o=t.getBoundingClientRect();return n.zrX=r-o.left,void(n.zrY=i-o.top)}if(et(at,t,r,i))return n.zrX=at[0],void(n.zrY=at[1])}n.zrX=n.zrY=0}function ct(t){return t||window.event}function ht(t,e,n){if(e=ct(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&<(t,o,e,n)}else{lt(t,e,e,n);var a=ft(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&ot.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function ft(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 dt(t,e,n,r){t.addEventListener(e,n,r)}function pt(t,e,n,r){t.removeEventListener(e,n,r)}var gt=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function vt(t){return 2===t.which||3===t.which}var yt=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=mt(r)/mt(i);!isFinite(o)&&(o=1),e.pinchScale=o;var a=bt(r);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}},_t="silent";function wt(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:St}}function St(){gt(this.event)}var Ot=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return m(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Y),Ct=function(){function t(t,e){this.x=t,this.y=e}return t}(),kt=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],At=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o._hovered=new Ct(0,0),o.storage=e,o.painter=n,o.painterRoot=i,r=r||new Ot,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new U(o),o}return m(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(v["each"](kt,(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=Tt(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 Ct(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 Ct(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=wt(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){for(var r=this.storage.getDisplayList(),i=new Ct(t,e),o=r.length-1;o>=0;o--){var a=void 0;if(r[o]!==n&&!r[o].ignore&&(a=Mt(r[o],t,e))&&(!i.topTarget&&(i.topTarget=r[o]),a!==_t)){i.target=r[o];break}}return i},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new yt);var n=this._gestureMgr;"start"===e&&n.clear();var r=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),r){var i=r.type;t.gestureEvent=i;var o=new Ct;o.target=r.target,this.dispatchToElement(o,i,r.event)}},e}(Y);function Mt(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){var r=t,i=void 0,o=!1;while(r){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(e,n))return!1;r.silent&&(i=!0)}var s=r.__hostTarget;r=s||r.parent}return!i||_t}return!1}function Tt(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){At.prototype[t]=function(e){var n,r,i=e.zrX,o=e.zrY,a=Tt(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||R(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));var It=At,Et=32,jt=7;function Pt(t){var e=0;while(t>=Et)e|=1&t,t>>=1;return t+e}function Lt(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 Dt(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 Nt(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 Bt(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 zt(t,e){var n,r,i=jt,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]=jt||d>=jt);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-Nt(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=jt||v>=jt);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),Rt(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 Vt=1,qt=2,Ht=4,Gt=!1;function Wt(){Gt||(Gt=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Ut(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var $t,Yt=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Ut}return t.prototype.traverse=function(t,e){for(var n=0;n0&&(u.__clipPaths=[]),isNaN(u.z)&&(Wt(),u.z=0),isNaN(u.z2)&&(Wt(),u.z2=0),isNaN(u.zlevel)&&(Wt(),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}(),Xt=Yt;$t=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 Zt=$t,Kt={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-Kt.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*Kt.bounceIn(2*t):.5*Kt.bounceOut(2*t-1)+.5}},Qt=Kt,Jt=Math.pow,te=Math.sqrt,ee=1e-8,ne=1e-4,re=te(3),ie=1/3,oe=b(),ae=b(),se=b();function le(t){return t>-ee&&tee||t<-ee}function ce(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 he(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)}function fe(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(le(c)&&le(h))if(le(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(le(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=te(g),b=c*s+1.5*a*(-h+m),x=c*s+1.5*a*(-h-m);b=b<0?-Jt(-b,ie):Jt(b,ie),x=x<0?-Jt(-x,ie):Jt(x,ie);p=(-s-(b+x))/(3*a);p>=0&&p<=1&&(o[d++]=p)}else{var _=(2*c*s-3*a*h)/(2*te(c*c*c)),w=Math.acos(_)/3,S=te(c),O=Math.cos(w),C=(p=(-s-2*S*O)/(3*a),y=(-s+S*(O+re*Math.sin(w)))/(3*a),(-s+S*(O-re*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 de(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(le(a)){if(ue(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(le(c))i[0]=-o/(2*a);else if(c>0){var h=te(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 pe(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 ge(t,e,n,r,i,o,a,s,l,u,c){var h,f,d,p,g,v=.005,y=1/0;oe[0]=l,oe[1]=u;for(var m=0;m<1;m+=.05)ae[0]=ce(t,n,i,a,m),ae[1]=ce(e,r,o,s,m),p=B(oe,ae),p=0&&p=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(le(c)){u=-a/(2*o);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var h=te(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 xe(t,e,n){var r=t+n-2*e;return 0===r?.5:(t-e)/r}function _e(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 we(t,e,n,r,i,o,a,s,l){var u,c=.005,h=1/0;oe[0]=a,oe[1]=s;for(var f=0;f<1;f+=.05){ae[0]=ye(t,n,i,f),ae[1]=ye(e,r,o,f);var d=B(oe,ae);d=0&&d=1?1:fe(0,r,o,1,t,s)&&ce(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:Qt[t]||Ce(t)},t}(),Ae=ke,Me=n("41ef"),Te=n("7a29"),Ie=Array.prototype.slice;function Ee(t,e,n){return(e-t)*n+t}function je(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=$e,s=e;if(Object(v["isArrayLike"])(e)){var l=Fe(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=Ve;else if(Object(v["isString"])(e))if(isNaN(+e)){var u=Me["parse"](e);u&&(s=u,a=Ge)}else a=Ve;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:Me["parse"](t.color)}})),Object(Te["m"])(e)?a=We:Object(Te["o"])(e)&&(a=Ue),s=c}0===i?this.valType=a:a===this.valType&&a!==$e||(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:Qt[n]||Ce(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=Xe(r),l=Ye(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?Ze:t[c];if(!Xe(s)&&!h||m||(m=this._additiveValue=[]),this.discrete)t[c]=y<1?r.rawValue:i.rawValue;else if(Xe(s))s===qe?je(m,r[a],i[a],y):Pe(m,r[a],i[a],y);else if(Ye(s)){var b=r[a],x=i[a],_=s===We;t[c]={type:_?"linear":"radial",x:Ee(b.x,x.x,y),y:Ee(b.y,x.y,y),colorStops:Object(v["map"])(b.colorStops,(function(t,e){var n=x.colorStops[e];return{offset:Ee(t.offset,n.offset,y),color:ze(je([],t.color,n.color,y))}})),global:x.global},_?(t[c].x2=Ee(b.x2,x.x2,y),t[c].y2=Ee(b.y2,x.y2,y)):t[c].r=Ee(b.r,x.r,y)}else if(h)je(m,r[a],i[a],y),o||(t[c]=ze(m));else{var w=Ee(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===Ve?t[n]=t[n]+r:e===Ge?(Me["parse"](t[n],Ze),Le(Ze,Ze,r,1),t[n]=ze(Ze)):e===qe?Le(t[n],t[n],r,1):e===He&&De(t[n],t[n],r,1)},t}(),Qe=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,Be(l),r),this._trackKeys.push(a)}s.addKeyframe(t,Be(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}(),Je=Qe;function tn(){return(new Date).getTime()}var en=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 m(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=tn()-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&&(Zt(e),!t._paused&&t.update())}this._running=!0,Zt(e)},e.prototype.start=function(){this._running||(this._time=tn(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=tn(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=tn()-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 Je(t,e.loop);return this.addAnimator(n),n},e}(Y),nn=en,rn=300,on=g["a"].domSupported,an=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}}(),sn={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},ln=!1;function un(t){var e=t.pointerType;return"pen"===e||"touch"===e}function cn(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 hn(t){t&&(t.zrByTouch=!0)}function fn(t,e){return ht(t.dom,new pn(t,e),!0)}function dn(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 pn=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}(),gn={mousedown:function(t){t=ht(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=ht(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=ht(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=ht(this.dom,t);var e=t.toElement||t.relatedTarget;dn(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){ln=!0,t=ht(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){ln||(t=ht(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=ht(this.dom,t),hn(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),gn.mousemove.call(this,t),gn.mousedown.call(this,t)},touchmove:function(t){t=ht(this.dom,t),hn(t),this.handler.processGesture(t,"change"),gn.mousemove.call(this,t)},touchend:function(t){t=ht(this.dom,t),hn(t),this.handler.processGesture(t,"end"),gn.mouseup.call(this,t),+new Date-+this.__lastTouchMomentFn||t<-Fn}var qn=[],Hn=[],Gn=In(),Wn=Math.abs,Un=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 Vn(this.rotation)||Vn(this.x)||Vn(this.y)||Vn(this.scaleX-1)||Vn(this.scaleY-1)||Vn(this.skewX)||Vn(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||In(),e?this.getLocalTransform(n):zn(n),t&&(e?Pn(n,t,n):jn(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&zn(n)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(qn);var n=qn[0]<0?-1:1,r=qn[1]<0?-1:1,i=((qn[0]-n)*e+n)/qn[0]||0,o=((qn[1]-r)*e+r)/qn[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||In(),Nn(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&&(Pn(Hn,t.invTransform,e),e=Hn);var n=this.originX,r=this.originY;(n||r)&&(Gn[4]=n,Gn[5]=r,Pn(Hn,e,Gn),Hn[4]-=n,Hn[5]-=r,e=Hn),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&&V(n,n,r),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],r=this.transform;return r&&V(n,n,r),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&Wn(t[0]-1)>1e-10&&Wn(t[3]-1)>1e-10?Math.sqrt(Wn(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){Yn(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&&Dn(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}(),$n=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Yn(t,e){for(var n=0;n<$n.length;n++){var r=$n[n];t[r]=e[r]}}var Xn=Un,Zn=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}(),Kn=Zn,Qn=Math.min,Jn=Math.max,tr=new Kn,er=new Kn,nr=new Kn,rr=new Kn,ir=new Kn,or=new Kn,ar=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=Qn(t.x,this.x),n=Qn(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Jn(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Jn(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=In();return Ln(i,i,[-e.x,-e.y]),Rn(i,i,[n,r]),Ln(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=x,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))}tr.x=nr.x=n.x,tr.y=rr.y=n.y,er.x=rr.x=n.x+n.width,er.y=nr.y=n.y+n.height,tr.transform(r),rr.transform(r),er.transform(r),nr.transform(r),e.x=Qn(tr.x,er.x,nr.x,rr.x),e.y=Qn(tr.y,er.y,nr.y,rr.y);var l=Jn(tr.x,er.x,nr.x,rr.x),u=Jn(tr.y,er.y,nr.y,rr.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}(),sr=ar,lr=n("d51b"),ur=n("726e"),cr={};function hr(t,e){e=e||ur["a"];var n=cr[e];n||(n=cr[e]=new lr["a"](500));var r=n.get(t);return null==r&&(r=ur["d"].measureText(t,e).width,n.put(t,r)),r}function fr(t,e,n,r){var i=hr(t,e),o=vr(e),a=pr(0,i,n),s=gr(0,o,r),l=new sr(a,s,i,o);return l}function dr(t,e,n,r){var i=((t||"")+"").split("\n"),o=i.length;if(1===o)return fr(i[0],e,n,r);for(var a=new sr(0,0,0,0),s=0;s=0?parseFloat(t)/100*e:parseFloat(t):t}function mr(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+=yr(r[0],n.width),u+=yr(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 br="__zr_normal__",xr=$n.concat(["ignore"]),_r=Object(v["reduce"])($n,(function(t,e){return t[e]=!0,t}),{ignore:!1}),wr={},Sr=new sr(0,0,0,0),Or=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=Sr;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),r||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(wr,n,u):mr(wr,n,u),i.x=wr.x,i.y=wr.y,o=wr.align,a=wr.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=yr(c[0],u.width),f=yr(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|=Vt,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()?Mn:An},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof e&&Object(Me["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(Me["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(br,!1,t)},t.prototype.useState=function(t,e,n,r){var i=t===br,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&=~Vt),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&=~Vt)}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(_=0;_=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 Zr(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)?Yr(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function Kr(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),$r),t=(+t).toFixed(e),n?t:+t}function Qr(t){return t.sort((function(t,e){return t-e})),t}function Jr(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 ti(t)}function ti(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 ei(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 ni(t,e,n){if(!t[e])return 0;var r=v["reduce"](t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===r)return 0;var i=Math.pow(10,n),o=v["map"](t,(function(t){return(isNaN(t)?0:t)/r*i*100})),a=100*i,s=v["map"](o,(function(t){return Math.floor(t)})),l=v["reduce"](s,(function(t,e){return t+e}),0),u=v["map"](o,(function(t,e){return t-s[e]}));while(lc&&(c=u[f],h=f);++s[h],u[h]=0,++l}return s[e]/i}function ri(t,e){var n=Math.max(Jr(t),Jr(e)),r=t+e;return n>$r?r:Kr(r,n)}var ii=9007199254740991;function oi(t){var e=2*Math.PI;return(t%e+e)%e}function ai(t){return t>-Ur&&t=10&&e++,e}function hi(t,e){var n,r=ci(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 fi(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 di(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 mo=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],bo=yo(mo),xo=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return bo(this,t,e)},t}(),_o=new lr["a"](50);function wo(t){if("string"===typeof t){var e=_o.get(t);return e&&e.image}return t}function So(t,e,n,r,i){if(t){if("string"===typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=_o.get(t),a={hostEl:n,cb:r,cbPayload:i};if(o)e=o.image,!Co(e)&&o.pending.push(a);else{var s=ur["d"].loadImage(t,Oo,Oo);s.__zrImageSrc=t,_o.put(t,s.__cachedImgObj={image:s,pending:[a]})}return e}return t}return e}function Oo(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=a;l++)s-=a;var u=hr(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 To(t,e){var n=e.containerWidth,r=e.font,i=e.contentWidth;if(!n)return"";var o=hr(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?Io(t,i,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,s),o=hr(t,r)}return""===t&&(t=e.placeholder),t}function Io(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=Mo(h,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),y=0;yl&&Ro(n,t.substring(l,u),e,s),Ro(n,r[2],e,s,r[1]),l=ko.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=hr(S.text,A);else{if(I){var E=O.backgroundColor,j=E&&E.image;j&&(j=wo(j),Co(j)&&(S.width=Math.max(S.width,j.width*M/j.height)))}var P=p&&null!=i?i-_:null;null!=P&&P0&&p+r.accumWidth>r.width&&(o=e.split("\n"),h=!0),r.accumWidth=p}else{var g=Fo(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 Bo=Object(v["reduce"])(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function zo(t){return!No(t)||!!Bo[t]}function Fo(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 Vo="__zr_style_"+Math.round(10*Math.random()),qo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ho={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};qo[Vo]=!0;var Go=["z","z2","invisible"],Wo=["invisible"],Uo=function(t){function e(e){return t.call(this,e)||this}return m(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(na[0]=ta(i)*n+t,na[1]=Jo(i)*r+e,ra[0]=ta(o)*n+t,ra[1]=Jo(o)*r+e,u(s,na,ra),c(l,na,ra),i%=ea,i<0&&(i+=ea),o%=ea,o<0&&(o+=ea),i>o&&!a?o+=ea:ii&&(ia[0]=ta(d)*n+t,ia[1]=Jo(d)*r+e,u(s,ia,s),c(l,ia,l))}var fa={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},da=[],pa=[],ga=[],va=[],ya=[],ma=[],ba=Math.min,xa=Math.max,_a=Math.cos,wa=Math.sin,Sa=Math.abs,Oa=Math.PI,Ca=2*Oa,ka="undefined"!==typeof Float32Array,Aa=[];function Ma(t){var e=Math.round(t/Oa*1e8)/1e8;return e%2*Oa}function Ta(t,e){var n=Ma(t[0]);n<0&&(n+=Ca);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=Ca?i=n+Ca:e&&n-i>=Ca?i=n-Ca:!e&&n>i?i=n+(Ca-Ma(n-i)):e&&n0&&(this._ux=Sa(n/Cn/t)||0,this._uy=Sa(n/Cn/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(fa.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=Sa(t-this._xi),r=Sa(e-this._yi),i=n>this._ux||r>this._uy;if(this.addData(fa.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(fa.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(fa.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(),Aa[0]=r,Aa[1]=i,Ta(Aa,o),r=Aa[0],i=Aa[1];var a=i-r;return this.addData(fa.A,t,e,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,r,i,o),this._xi=_a(i)*n+t,this._yi=wa(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(fa.R,t,e,n,r),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(fa.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||!ka||(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(){ga[0]=ga[1]=ya[0]=ya[1]=Number.MAX_VALUE,va[0]=va[1]=ma[0]=ma[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,r=0,i=0,o=0;for(t=0;tn||Sa(m)>r||h===e-1)&&(p=Math.sqrt(y*y+m*m),i=g,o=v);break;case fa.C:var b=t[h++],x=t[h++],_=(g=t[h++],v=t[h++],t[h++]),w=t[h++];p=ve(i,o,b,x,g,v,_,w,10),i=_,o=w;break;case fa.Q:b=t[h++],x=t[h++],g=t[h++],v=t[h++];p=Se(i,o,b,x,g,v,10),i=g,o=v;break;case fa.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=_a(A)*C+S,s=wa(A)*k+O),p=xa(C,k)*ba(Ca,Math.abs(M)),i=_a(T)*C+S,o=wa(T)*k+O;break;case fa.R:a=i=t[h++],s=o=t[h++];var I=t[h++],E=t[h++];p=2*I+2*E;break;case fa.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,x=0;if(!y||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=this._pathLen,c=e*u,c))t:for(var _=0;_0&&(t.lineTo(h,f),x=0),w){case fa.M:n=i=d[_++],r=o=d[_++],t.moveTo(i,o);break;case fa.L:a=d[_++],s=d[_++];var O=Sa(a-i),C=Sa(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,x=0}else{var M=O*O+C*C;M>x&&(h=a,f=s,x=M)}break;case fa.C:var T=d[_++],I=d[_++],E=d[_++],j=d[_++],P=d[_++],L=d[_++];if(y){k=l[b++];if(m+k>c){A=(c-m)/k;pe(i,T,E,P,A,da),pe(o,I,j,L,A,pa),t.bezierCurveTo(da[1],pa[1],da[2],pa[2],da[3],pa[3]);break t}m+=k}t.bezierCurveTo(T,I,E,j,P,L),i=P,o=L;break;case fa.Q:T=d[_++],I=d[_++],E=d[_++],j=d[_++];if(y){k=l[b++];if(m+k>c){A=(c-m)/k;_e(i,T,E,A,da),_e(o,I,j,A,pa),t.quadraticCurveTo(da[1],pa[1],da[2],pa[2]);break t}m+=k}t.quadraticCurveTo(T,I,E,j),i=E,o=j;break;case fa.A:var D=d[_++],R=d[_++],N=d[_++],B=d[_++],z=d[_++],F=d[_++],V=d[_++],q=!d[_++],H=N>B?N:B,G=Sa(N-B)>.001,W=z+F,U=!1;if(y){k=l[b++];m+k>c&&(W=z+F*(c-m)/k,U=!0),m+=k}if(G&&t.ellipse?t.ellipse(D,R,N,B,V,z,W,q):t.arc(D,R,H,z,W,q),U)break t;S&&(n=_a(z)*N+D,r=wa(z)*B+R),i=_a(W)*N+D,o=wa(W)*B+R;break;case fa.R:n=i=d[_],r=o=d[_+1],a=d[_++],s=d[_++];var $=d[_++],Y=d[_++];if(y){k=l[b++];if(m+k>c){var X=c-m;t.moveTo(a,s),t.lineTo(a+ba(X,$),s),X-=$,X>0&&t.lineTo(a+$,s+ba(X,Y)),X-=Y,X>0&&t.lineTo(a+xa($-X,0),s+Y),X-=$,X>0&&t.lineTo(a,s+xa(Y-X,0));break t}m+=k}t.rect(a,s,$,Y);break;case fa.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=fa,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),Ea=Ia;function ja(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+=Na);var f=Math.atan2(l,s);return f<0&&(f+=Na),f>=r&&f<=i||f+Na>=r&&f+Na<=i}function za(t,e,n,r,i,o){if(o>e&&o>r||oi?s:0}var Fa=Ea.CMD,Va=2*Math.PI,qa=1e-4;function Ha(t,e){return Math.abs(t-e)e&&u>r&&u>o&&u>s||u1&&Ua(),d=ce(e,r,o,s,Wa[0]),f>1&&(p=ce(e,r,o,s,Wa[1]))),2===f?ve&&s>r&&s>o||s=0&&u<=1){for(var c=0,h=ye(e,r,o,u),f=0;fn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Ga[0]=-l,Ga[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=Va-1e-4){r=0,i=Va;var c=o?1:-1;return a>=Ga[0]+t&&a<=Ga[1]+t?c:0}if(r>i){var h=r;r=i,i=h}r<0&&(r+=Va,i+=Va);for(var f=0,d=0;d<2;d++){var p=Ga[d];if(p+t>a){var g=Math.atan2(s,p);c=o?1:-1;g<0&&(g=Va+g),(g>=r&&g<=i||g+Va>=r&&g+Va<=i)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),f+=c)}}return f}function Za(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+=za(c,h,f,d,r,i))),v&&(c=s[p],h=s[p+1],f=c,d=h),g){case Fa.M:f=s[p++],d=s[p++],c=f,h=d;break;case Fa.L:if(n){if(ja(c,h,s[p],s[p+1],e,r,i))return!0}else u+=za(c,h,s[p],s[p+1],r,i)||0;c=s[p++],h=s[p++];break;case Fa.C:if(n){if(Pa(c,h,s[p++],s[p++],s[p++],s[p++],s[p],s[p+1],e,r,i))return!0}else u+=$a(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 Fa.Q:if(n){if(La(c,h,s[p++],s[p++],s[p],s[p+1],e,r,i))return!0}else u+=Ya(c,h,s[p++],s[p++],s[p],s[p+1],r,i)||0;c=s[p++],h=s[p++];break;case Fa.A:var y=s[p++],m=s[p++],b=s[p++],x=s[p++],_=s[p++],w=s[p++];p+=1;var S=!!(1-s[p++]);o=Math.cos(_)*b+y,a=Math.sin(_)*x+m,v?(f=o,d=a):u+=za(c,h,o,a,r,i);var O=(r-y)*x/b+y;if(n){if(Ba(y,m,x,_,_+w,S,e,O,i))return!0}else u+=Xa(y,m,x,_,_+w,S,O,i);c=Math.cos(_+w)*b+y,h=Math.sin(_+w)*x+m;break;case Fa.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(ja(f,d,o,d,e,r,i)||ja(o,d,o,a,e,r,i)||ja(o,a,f,a,e,r,i)||ja(f,a,f,d,e,r,i))return!0}else u+=za(o,d,o,a,r,i),u+=za(f,a,f,d,r,i);break;case Fa.Z:if(n){if(ja(c,h,f,d,e,r,i))return!0}else u+=za(c,h,f,d,r,i);c=f,h=d;break}}return n||Ha(h,d)||(u+=za(c,h,f,d,r,i)||0),0!==u}function Ka(t,e,n){return Za(t,0,!1,e,n)}function Qa(t,e,n,r){return Za(t,e,!0,n,r)}var Ja=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},qo),ts={style:Object(v["defaults"])({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ho.style)},es=$n.concat(["invisible","culling","z","z2","zlevel","parent"]),ns=function(t){function e(e){return t.call(this,e)||this}return m(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?An:e>.2?Tn:Mn}if(t)return Mn}return An},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(Me["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&Ht)&&(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)),Qa(o,a/s,t,e)))return!0}if(this.hasFill())return Ka(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Ht,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&Ht)},e.prototype.createStyle=function(t){return Object(v["createObject"])(Ja,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"])(is,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=dr(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}(Zo);os.prototype.type="tspan";var as=os,ss=Object(v["defaults"])({x:0,y:0},qo),ls={style:Object(v["defaults"])({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ho.style)};function us(t){return!!(t&&"string"!==typeof t&&t.width&&t.height)}var cs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.createStyle=function(t){return Object(v["createObject"])(ss,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var r=us(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 ls},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new sr(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Zo);cs.prototype.type="image";var hs=cs;function fs(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 ds=Math.round;function ps(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?(ds(2*r)===ds(2*i)&&(t.x1=t.x2=vs(r,s,!0)),ds(2*o)===ds(2*a)&&(t.y1=t.y2=vs(o,s,!0)),t):t}}function gs(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=vs(r,s,!0),t.y=vs(i,s,!0),t.width=Math.max(vs(r+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(vs(i+a,s,!1)-t.y,0===a?0:1),t):t}}function vs(t,e,n){if(!e)return t;var r=ds(2*t);return(r+ds(e))%2===0?r/2:(r+(n?1:-1))/2}var ys=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),ms={},bs=function(t){function e(e){return t.call(this,e)||this}return m(e,t),e.prototype.getDefaultShape=function(){return new ys},e.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=gs(ms,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?fs(t,e):t.rect(n,r,i,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(rs);bs.prototype.type="rect";var xs=bs,_s={fill:"#000"},ws=2,Ss={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},Ho.style)},Os=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=_s,n.attr(e),n}return m(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=x[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=x[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&&Ns(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=Ds(i,o,f),u-=t.height/2-f[0]-t.innerHeight/2);var d=this._getOrCreateChild(as),p=d.createStyle();d.useStyle(p);var g=this._defaultStyle,y=!1,m=0,b=Ls("fill"in s?s.fill:"fill"in e?e.fill:(y=!0,g.fill)),x=Ps("stroke"in s?s.stroke:"stroke"in e?e.stroke:h||a||g.autoStroke&&!y?null:(m=ws,g.stroke)),_=s.textShadowBlur>0||e.textShadowBlur>0;p.text=t.text,p.x=i,p.y=u,_&&(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||ur["a"],p.opacity=Object(v["retrieve3"])(s.opacity,e.opacity,1),Ts(p,s),x&&(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=x),b&&(p.fill=b);var w=t.contentWidth,S=t.contentHeight;d.setBoundingRect(new sr(pr(p.x,w,p.textAlign),gr(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(xs),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(hs),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 Is(t)&&(e=[t.fontStyle,t.fontWeight,Ms(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&Object(v["trim"])(e)||t.textFont||t.font},e}(Zo),Cs={left:!0,right:1,center:1},ks={top:1,bottom:1,middle:1},As=["fontStyle","fontWeight","fontSize","fontFamily"];function Ms(t){return"string"!==typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?ur["c"]+"px":t+"px":t}function Ts(t,e){for(var n=0;n=0,o=!1;if(t instanceof rs){var a=Hs(t),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(rl(s)||rl(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):!rl(u.fill)&&rl(s)?(o=!0,r=Object(v["extend"])({},r),u=Object(v["extend"])({},u),u.fill=ol(s)):!rl(u.stroke)&&rl(l)&&(o||(r=Object(v["extend"])({},r),u=Object(v["extend"])({},u)),u.stroke=ol(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:Zs)}return r}function ml(t,e,n){if(n&&null==n.z2){n=Object(v["extend"])({},n);var r=t.z2SelectLift;n.z2=t.z2+(null!=r?r:Ks)}return n}function bl(t,e,n){var r=Object(v["indexOf"])(t.currentStates,e)>=0,i=t.style.opacity,o=r?null:vl(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 xl(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return yl(this,t,e,n);if("blur"===t)return bl(this,t,n);if("select"===t)return ml(this,t,n)}return n}function _l(t){t.stateProxy=xl;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=xl),n&&(n.stateProxy=xl)}function wl(t,e){!Il(t,e)&&!t.__highByOuter&&pl(t,sl)}function Sl(t,e){!Il(t,e)&&!t.__highByOuter&&pl(t,ll)}function Ol(t,e){t.__highByOuter|=1<<(e||0),pl(t,sl)}function Cl(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&pl(t,ll)}function kl(t){pl(t,ul)}function Al(t){pl(t,cl)}function Ml(t){pl(t,hl)}function Tl(t){pl(t,fl)}function Il(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function El(t){var e=t.getModel();e.eachComponent((function(e,n){var r=Gs(n);if(r.isBlured){var i="series"===e?t.getViewOfSeriesModel(n):t.getViewOfComponentModel(n);i.group.traverse((function(t){cl(t)}))}r.isBlured=!1}))}function jl(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 Vl(t,e,n){Yl(t,!0),pl(t,_l),Gl(t,e,n)}function ql(t){Yl(t,!1)}function Hl(t,e,n,r){r?ql(t):Vl(t,e,n)}function Gl(t,e,n){var r=zs(t);null!=e?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}var Wl=["emphasis","blur","select"],Ul={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function $l(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 iu(t,e,n,r,i,o){ru("update",t,e,n,r,i,o)}function ou(t,e,n,r,i,o){ru("enter",t,e,n,r,i,o)}function au(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 Uu(t,e){return v["merge"](v["merge"]({},t,!0),e,!0)}var $u={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:". "}}}},Yu={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:""}}}},Xu="ZH",Zu="EN",Ku=Zu,Qu={},Ju={},tc=g["a"].domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return t.indexOf(Xu)>-1?Xu:Ku}():Ku;function ec(t,e){t=t.toUpperCase(),Ju[t]=new Vu(e),Qu[t]=e}function nc(t){if(Object(v["isString"])(t)){var e=Qu[t.toUpperCase()]||{};return t===Xu||t===Zu?Object(v["clone"])(e):Object(v["merge"])(Object(v["clone"])(e),Object(v["clone"])(Qu[Ku]),!1)}return Object(v["merge"])(Object(v["clone"])(t),Object(v["clone"])(Qu[Ku]),!1)}function rc(t){return Ju[t]}function ic(){return Ju[Ku]}ec(Zu,$u),ec(Xu,Yu);var oc=1e3,ac=60*oc,sc=60*ac,lc=24*sc,uc=365*lc,cc={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}"},hc="{yyyy}-{MM}-{dd}",fc={year:"{yyyy}",month:"{yyyy}-{MM}",day:hc,hour:hc+" "+cc.hour,minute:hc+" "+cc.minute,second:hc+" "+cc.second,millisecond:cc.none},dc=["year","month","day","hour","minute","second","millisecond"],pc=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function gc(t,e){return t+="","0000".substr(0,e-t.length)+t}function vc(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 yc(t){return t===vc(t)}function mc(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function bc(t,e,n,r){var i=li(t),o=i[Sc(n)](),a=i[Oc(n)]()+1,s=Math.floor((a-1)/4)+1,l=i[Cc(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[kc(n)](),h=(c-1)%12+1,f=i[Ac(n)](),d=i[Mc(n)](),p=i[Tc(n)](),g=r instanceof Vu?r:rc(r||tc)||ic(),v=g.getModel("time"),y=v.get("month"),m=v.get("monthAbbr"),b=v.get("dayOfWeek"),x=v.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[a-1]).replace(/{MMM}/g,m[a-1]).replace(/{MM}/g,gc(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,gc(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,gc(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,gc(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,gc(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,gc(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,gc(p,3)).replace(/{S}/g,p+"")}function xc(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"]({},cc);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 bc(new Date(t.value),o,i,r)}function _c(t,e){var n=li(t),r=n[Oc(e)]()+1,i=n[Cc(e)](),o=n[kc(e)](),a=n[Ac(e)](),s=n[Mc(e)](),l=n[Tc(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 wc(t,e,n){var r=v["isNumber"](t)?li(t):t;switch(e=e||_c(t,n),e){case"year":return r[Sc(n)]();case"half-year":return r[Oc(n)]()>=6?1:0;case"quarter":return Math.floor((r[Oc(n)]()+1)/4);case"month":return r[Oc(n)]();case"day":return r[Cc(n)]();case"half-day":return r[kc(n)]()/24;case"hour":return r[kc(n)]();case"minute":return r[Ac(n)]();case"second":return r[Mc(n)]();case"millisecond":return r[Tc(n)]()}}function Sc(t){return t?"getUTCFullYear":"getFullYear"}function Oc(t){return t?"getUTCMonth":"getMonth"}function Cc(t){return t?"getUTCDate":"getDate"}function kc(t){return t?"getUTCHours":"getHours"}function Ac(t){return t?"getUTCMinutes":"getMinutes"}function Mc(t){return t?"getUTCSeconds":"getSeconds"}function Tc(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Ic(t){return t?"setUTCFullYear":"setFullYear"}function Ec(t){return t?"setUTCMonth":"setMonth"}function jc(t){return t?"setUTCDate":"setDate"}function Pc(t){return t?"setUTCHours":"setHours"}function Lc(t){return t?"setUTCMinutes":"setMinutes"}function Dc(t){return t?"setUTCSeconds":"setSeconds"}function Rc(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Nc(t){if(!gi(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 Bc(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 zc=v["normalizeCssArray"],Fc=/([&<>"'])/g,Vc={"&":"&","<":"<",">":">",'"':""","'":"'"};function qc(t){return null==t?"":(t+"").replace(Fc,(function(t,e){return Vc[e]}))}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?li(t):t;if(!isNaN(+l))return bc(l,r,n);if(s)return"-"}if("ordinal"===e)return v["isStringSafe"](t)?i(t):v["isNumber"](t)&&o(t)?t+"":"-";var u=pi(t);return o(u)?Nc(u):v["isStringSafe"](t)?i(t):"boolean"===typeof t?t+"":"-"}var Gc=["a","b","c","d","e","f","g"],Wc=function(t,e){return"{"+t+(null==e?"":e)+"}"};function Uc(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 Xc(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var r=li(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",gc(a,2)).replace("M",a).replace("yyyy",o).replace("yy",o%100+"").replace("dd",gc(s,2)).replace("d",s).replace("hh",gc(l,2)).replace("h",l).replace("mm",gc(u,2)).replace("m",u).replace("ss",gc(c,2)).replace("s",c).replace("SSS",gc(h,3)),t}function Zc(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function Kc(t,e){return e=e||"transparent",v["isString"](t)?t:v["isObject"](t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Qc(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var Jc=v["each"],th=["left","right","top","bottom","width","height"],eh=[["width","left","right"],["height","top","bottom"]];function nh(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 rh=nh;v["curry"](nh,"vertical"),v["curry"](nh,"horizontal");function ih(t,e,n){var r=e.width,i=e.height,o=Zr(t.left,r),a=Zr(t.top,i),s=Zr(t.right,r),l=Zr(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=zc(n||0),{width:Math.max(s-o-n[1]-n[3],0),height:Math.max(l-a-n[0]-n[2],0)}}function oh(t,e,n){n=zc(n||0);var r=e.width,i=e.height,o=Zr(t.left,r),a=Zr(t.top,i),s=Zr(t.right,r),l=Zr(t.bottom,i),u=Zr(t.width,r),c=Zr(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 sr(o+n[3],a+n[0],u,c);return p.margin=n,p}function ah(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 sr(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=oh(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 sh(t,e){return null!=t[eh[e][0]]||null!=t[eh[e][1]]&&null!=t[eh[e][2]]}function lh(t){var e=t.layoutMode||t.constructor.layoutMode;return v["isObject"](e)?e:e?{type:e}:null}function uh(t,e,n){var r=n&&n.ignoreSize;!v["isArray"](r)&&(r=[r,r]);var i=a(eh[0],0),o=a(eh[1],1);function a(n,i){var o={},a=0,u={},c=0,h=2;if(Jc(n,(function(e){u[e]=t[e]})),Jc(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 Zi(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}(Vu);function ph(t){var e=[];return v["each"](dh.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=v["map"](e,(function(t){return oo(t).main})),"dataset"!==t&&v["indexOf"](e,"dataset")<=0&&e.unshift("dataset"),e}co(dh,Vu),vo(dh),Gu(dh),Wu(dh,ph);var gh=dh,vh="";"undefined"!==typeof navigator&&(vh=navigator.platform||"");var yh="rgba(0, 0, 0, 0.2)",mh={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:yh,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:yh,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:yh,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:yh,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:yh,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:yh,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:vh.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},bh=Object(v["createHashMap"])(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),xh="original",_h="arrayRows",wh="objectRows",Sh="keyedColumns",Oh="typedArray",Ch="unknown",kh="column",Ah="row",Mh={Must:1,Might:2,Not:3},Th=Gi();function Ih(t){Th(t).datasetMap=Object(v["createHashMap"])()}function Eh(t,e,n){var r={},i=Ph(e);if(!i||!t)return r;var o,a,s=[],l=[],u=e.ecModel,c=Th(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 Wh(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?Gh(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 Uh(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var $h,Yh,Xh;"undefined"!==typeof console&&console.warn&&console.log;function Zh(t){0}function Kh(t){throw new Error(t)}var Qh="\0_ec_inner",Jh=1;var tf=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 Vu(r),this._locale=new Vu(i),this._optionManager=o},e.prototype.setOption=function(t,e,n){var r=af(e);this._optionManager.setOption(t,n,r),this._resetOption(null,r)},e.prototype.resetOption=function(t,e){return this._resetOption(t,af(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)):Xh(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,wi(t[e])),a=r.get(e),l=a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",u=Ai(a,o,l);Fi(u,e,gh),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=gh.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&&$h(this)}Ih(this),Object(v["each"])(t,(function(t,e){null!=t&&(gh.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){gh.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),gh.topologicalTravel(o,gh.getAllClassMainTypes(),l,this),this._seriesIndices||$h(this)},e.prototype.getOption=function(){var t=Object(v["clone"])(this.option);return Object(v["each"])(t,(function(e,n){if(gh.hasClass(n)){for(var r=wi(e),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!Bi(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,t[n]=r}})),delete t[Qh],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 bf(t,e){return t.join(",")===e.join(",")}var xf=gf,_f=v["each"],wf=v["isObject"],Sf=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Of(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=Sf.length;n=0;p--){var g=t[p];if(s||(h=g.data.rawIndexOf(g.stackedByDimension,c)),h>=0){var v=g.data.getByRawIndex(g.stackResultDimension,h);if(f>=0&&v>0||f<=0&&v<0){f=ri(f,v),d=v;break}}}return r[0]=f,r[1]=d,r}))}))}var $f,Yf,Xf,Zf,Kf,Qf=function(){function t(t){this.data=t.data||(t.sourceFormat===Sh?{}:[]),this.sourceFormat=t.sourceFormat||Ch,this.seriesLayoutBy=t.seriesLayoutBy||kh,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 Sd(t){var e,n;return v["isObject"](t)?t.type&&(n=t):e=t,{text:e,frag:n}}function Od(t){return new Cd(t)}var Cd=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}},Ed=function(){function t(t,e){if(!Object(v["isNumber"])(e)){var n="";0,Kh(n)}this._opFn=Id[t],this._rvalFloat=pi(e)}return t.prototype.evaluate=function(t){return Object(v["isNumber"])(t)?this._opFn(t,this._rvalFloat):this._opFn(pi(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:pi(t),r=Object(v["isNumber"])(e)?e:pi(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}(),Pd=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=pi(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=pi(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function Ld(t,e){return"eq"===t||"ne"===t?new Pd("eq"===t,e):Object(v["hasOwn"])(Id,t)?new Ed(t,e):null}var Dd=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 Ad(t,e)},t}();function Rd(t,e){var n=new Dd,r=t.data,i=n.sourceFormat=t.sourceFormat,o=t.startIndex,a="";t.seriesLayoutBy!==kh&&Kh(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)&&Kh(i),l[n]=r}}));else for(var c=0;c65535?Yd:Xd}function tp(){return[1/0,-1/0]}function ep(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function np(t,e,n,r,i){var o=Qd[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]],x=t[r[1]][0],_=t[r[1]][1];for(y=0;y=c&&m<=h||isNaN(m))&&(w>=x&&w<=_||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(Jd(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 Ad(t[r],this._dimensions[r])}Ud={arrayRows:t,objectRows:function(t,e,n,r){return Ad(t[e],this._dimensions[r])},keyedColumns:t,original:function(t,e,n,r){var i=t&&(null==t.value?t:t.value);return Ad(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(t,e,n,r){return t[r]}}}(),t}(),ip=rp,op=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(sp(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)?Oh: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?[td(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=[td(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&&lp(o)}var a=[],s=[];return Object(v["each"])(t,(function(t){t.prepareSource();var e=t.getSource(i||0),n="";null==i||e||lp(n),a.push(e),s.push(t._getVersionSign())})),r?e=Hd(r,a,{datasetIndex:n.componentIndex}):null!=i&&(e=[nd(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=vp(t);n>=e&&(e=n+ +(r&&(!n||pp(t)&&!t.noHeader)))})),e}return 0}function yp(t,e,n,r){var i=e.noHeader,o=xp(vp(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=gp(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):_p(a.join(""),i?n:o.html);if(i)return h;var f=Hc(e.header,"ordinal",t.useUTC),d=cp(r,t.renderMode).nameStyle;return"richText"===t.renderMode?Op(t,f,d)+o.richText+h:_p('
'+qc(f)+"
"+h,n)}function mp(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=cp(r,i),b=m.nameStyle,x=m.valueStyle;return"richText"===i?(s?"":h)+(o?"":Op(t,f,b))+(a?"":Cp(t,p,g,y,x)):_p((s?"":h)+(o?"":wp(f,!s,b))+(a?"":Sp(p,g,y,x)),n)}}function bp(t,e,n,r,i,o){if(t){var a=gp(t),s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter};return a(s,t,0,o)}}function xp(t){return{html:hp[t],richText:fp[t]}}function _p(t,e){var n='
',r="margin: "+e+"px 0 0";return'
'+t+n+"
"}function wp(t,e,n){var r=e?"margin-left:2px":"";return''+qc(t)+""}function Sp(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 qc(t)})).join("  ")+""}function Op(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Cp(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 kp(t,e){var n=t.getData().getItemVisual(e,"style"),r=n[t.visualDrawType];return Kc(r)}function Ap(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var Mp=function(){function t(){this.richTextStyles={},this._nextStyleNameId=vi()}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=Yc({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 Tp(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=kp(o,a);if(c>1||f&&!c){var p=Ip(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=Ni(o),m=y&&o.name||"",b=l.getName(a),x=s?m:b;return dp("section",{header:m,noHeader:s||!y,sortParam:i,blocks:[dp("nameValue",{markerType:"item",markerColor:d,name:x,noName:!Object(v["trim"])(x),value:e,valueType:n})].concat(r||[])})}function Ip(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(dp("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 Ep=Gi();function jp(t,e){return t.getName(e)||t.getId(e)}var Pp="__universalTransitionEnabled",Lp=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=Od({count:Np,reset:Bp}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var r=Ep(this).sourceManager=new op(this);r.prepareSource();var i=this.getInitialData(t,n);Fp(i,this),this.dataTask.context.data=i,Ep(this).dataBeforeProcessed=i,Dp(this),this._initSelectedMapFromData(i)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=lh(this),r=n?ch(t):{},i=this.subType;gh.hasClass(i)&&(i+="Series"),v["merge"](t,e.getTheme().get(this.subType)),v["merge"](t,this.getDefaultOption()),Si(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&uh(t,r,n)},e.prototype.mergeOption=function(t,e){t=v["merge"](this.option,t,!0),this.fillDataTextStyle(t.data);var n=lh(this);n&&uh(this.option,t,n);var r=Ep(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(t,e);Fp(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,Ep(this).dataBeforeProcessed=i,Dp(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=qh.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[Pp])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 gh.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}(gh);function Dp(t){var e=t.name;Ni(t)||(t.name=Rp(t)||e)}function Rp(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 Np(t){return t.model.getRawData().count()}function Bp(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 Fp(t,e){v["each"](v["concatArray"](t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,v["curry"](Vp,e))}))}function Vp(t,e){var n=qp(t);return n&&n.setOutputEnd((e||this).count()),e}function qp(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"](Lp,wd),v["mixin"](Lp,qh),co(Lp,gh);var Hp=Lp,Gp=function(){function t(){this.group=new Lr,this.uid=Hu("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.blurSeries=function(t,e){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();lo(Gp),vo(Gp);var Wp=Gp;function Up(){var t=Gi();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 $p=Ea.CMD,Yp=[[],[],[]],Xp=Math.sqrt,Zp=Math.atan2;function Kp(t,e){if(e){var n,r,i,o,a,s,l=t.data,u=t.len(),c=$p.M,h=$p.C,f=$p.L,d=$p.R,p=$p.A,g=$p.Q;for(i=0,o=0;i1&&(a*=Qp(p),s*=Qp(p));var g=(i===o?-1:1)*Qp((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+tg(h)*v-Jp(h)*y,b=(e+r)/2+Jp(h)*v+tg(h)*y,x=ig([1,0],[(f-v)/a,(d-y)/s]),_=[(f-v)/a,(d-y)/s],w=[(-1*f-v)/a,(-1*d-y)/s],S=ig(_,w);if(rg(_,w)<=-1&&(S=eg),rg(_,w)>=1&&(S=0),S<0){var O=Math.round(S/eg*1e6)/1e6;S=2*eg+O%2*eg}c.addData(u,m,b,a,s,x,S,h,o)}var ag=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,sg=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function lg(t){var e=new Ea;if(!t)return e;var n,r=0,i=0,o=r,a=i,s=Ea.CMD,l=t.match(ag);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/_-1),y1:C*(i/_-1)}}function Dg(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 Rg(t,e){var n,r=Ig(e.r,0),i=Ig(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=Mg(u-l),p=d>Sg&&d%Sg;if(p>jg&&(d=p),r>jg)if(d>Sg-jg)t.moveTo(c+r*Cg(l),h+r*Og(l)),t.arc(c,h,r,l,u,!f),i>jg&&(t.moveTo(c+i*Cg(u),h+i*Og(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,x=void 0,_=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*Cg(l),j=r*Og(l),P=i*Cg(u),L=i*Og(u),D=d>jg;if(D){var R=e.cornerRadius;R&&(n=Dg(R),g=n[0],v=n[1],y=n[2],m=n[3]);var N=Mg(r-i)/2;if(b=Eg(N,y),x=Eg(N,m),_=Eg(N,g),w=Eg(N,v),C=S=Ig(b,x),k=O=Ig(_,w),(S>jg||O>jg)&&(A=r*Cg(u),M=r*Og(u),T=i*Cg(l),I=i*Og(l),djg){var W=Eg(y,C),U=Eg(m,C),$=Lg(T,I,E,j,r,W,f),Y=Lg(A,M,P,L,r,U,f);t.moveTo(c+$.cx+$.x0,h+$.cy+$.y0),C0&&t.arc(c+$.cx,h+$.cy,W,Ag($.y0,$.x0),Ag($.y1,$.x1),!f),t.arc(c,h,r,Ag($.cy+$.y1,$.cx+$.x1),Ag(Y.cy+Y.y1,Y.cx+Y.x1),!f),U>0&&t.arc(c+Y.cx,h+Y.cy,U,Ag(Y.y1,Y.x1),Ag(Y.y0,Y.x0),!f))}else t.moveTo(c+E,h+j),t.arc(c,h,r,l,u,!f);else t.moveTo(c+E,h+j);if(i>jg&&D)if(k>jg){W=Eg(g,k),U=Eg(v,k),$=Lg(P,L,A,M,i,-U,f),Y=Lg(E,j,T,I,i,-W,f);t.lineTo(c+$.cx+$.x0,h+$.cy+$.y0),k0&&t.arc(c+$.cx,h+$.cy,U,Ag($.y0,$.x0),Ag($.y1,$.x1),!f),t.arc(c,h,i,Ag($.cy+$.y1,$.cx+$.x1),Ag(Y.cy+Y.y1,Y.cx+Y.x1),f),W>0&&t.arc(c+Y.cx,h+Y.cy,W,Ag(Y.y1,Y.x1),Ag(Y.y0,Y.x0),!f))}else t.lineTo(c+P,h+L),t.arc(c,h,i,u,l,f);else t.lineTo(c+P,h+L)}else t.moveTo(c,h);t.closePath()}}}var Ng=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}(),Bg=function(t){function e(e){return t.call(this,e)||this}return m(e,t),e.prototype.getDefaultShape=function(){return new Ng},e.prototype.buildPath=function(t,e){Rg(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(rs);Bg.prototype.type="sector";var zg=Bg,Fg=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),Vg=function(t){function e(e){return t.call(this,e)||this}return m(e,t),e.prototype.getDefaultShape=function(){return new Fg},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}(rs);Vg.prototype.type="ring";var qg=Vg;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;smv[1]){if(a=!1,i)return a;var u=Math.abs(mv[0]-yv[1]),c=Math.abs(yv[0]-mv[1]);Math.min(u,c)>r.len()&&(uMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Wv(t){return!t.isGroup}function Uv(t){return null!=t.shape}function $v(t,e,n){if(t&&e){var r=i(t);e.traverse((function(t){if(Wv(t)&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),iu(t,i,n,zs(t).dataIndex)}}}))}function i(t){var e={};return t.traverse((function(t){Wv(t)&&t.anid&&(e[t.anid]=t)})),e}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return Uv(t)&&(e.shape=Object(v["extend"])({},t.shape)),e}}function Yv(t,e){return Object(v["map"])(t,(function(t){var n=t[0];n=kv(n,e.x),n=Av(n,e.x+e.width);var r=t[1];return r=kv(r,e.y),r=Av(r,e.y+e.height),[n,r]}))}function Xv(t,e){var n=kv(t.x,e.x),r=Av(t.x+t.width,e.x+e.width),i=kv(t.y,e.y),o=Av(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 hs(r)):Lv(t.replace("path://",""),r,n,"center")}function Kv(t,e,n,r,i){for(var o=0,a=i[i.length-1];o1)return!1;var v=Jv(d,p,c,h)/f;return!(v<0||v>1)}function Jv(t,e,n,r){return t*r-n*e}function ty(t){return t<=1e-6&&t>=-1e-6}function ey(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=zs(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:Object(v["defaults"])({content:r,formatterParams:s},i)}}function ny(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function ry(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 yy(t,e,n,r){var i=t[e];if(i){var o=i[dy]||i,a=i[gy],s=i[py];if(s!==n||a!==r){if(null==n||!r)return t[e]=o;i=t[e]=vy(o,n,"debounce"===r),i[dy]=o,i[gy]=r,i[py]=n}return i}}function my(t,e){var n=t[e];n&&n[dy]&&(n.clear&&n.clear(),t[e]=n[dy])}var by=Gi(),xy={itemStyle:yo(Nu,!0),lineStyle:yo(Lu,!0)},_y={lineStyle:"stroke",itemStyle:"fill"};function wy(t,e){var n=t.visualStyleMapper||xy[e];return n||(console.warn("Unkown style type '"+e+"'."),xy.itemStyle)}function Sy(t,e){var n=t.visualDrawType||_y[e];return n||(console.warn("Unkown style type '"+e+"'."),"fill")}var Oy={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=t.getModel(r),o=wy(t,r),a=o(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=Sy(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)}}}},Cy=new Vu,ky={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=wy(t,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[r]){Cy.option=n[r];var a=i(Cy),s=t.ensureUniqueItemVisual(e,"style");Object(v["extend"])(s,a),Cy.option.decal&&(t.setItemVisual(e,"decal",Cy.option.decal),Cy.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},Ay={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)),by(t).scope=i}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),r={},i=e.getData(),o=by(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=Sy(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)}}))}}))}},My=Math.PI;function Ty(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 Lr,r=new xs({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var i,o=new Bs({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 xs({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&(i=new lv({shape:{startAngle:-My/2,endAngle:-My/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*My/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*My/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 Iy=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)||Od({plan:Dy,reset:Ry,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||Od({reset:Ey});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,Od({reset:jy,onDirty:Ly})));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:Fy(t)}),t.uid=Hu("stageHandler"),e&&(t.visualType=e),t},t}();function Ey(t){t.overallReset(t.ecModel,t.api,t.payload)}function jy(t){return t.overallProgress&&Py}function Py(){this.agent.dirty(),this.getDownstream().dirty()}function Ly(){this.agent&&this.agent.dirty()}function Dy(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Ry(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=wi(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Object(v["map"])(e,(function(t,e){return By(e)})):Ny}var Ny=By(0);function By(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}(),em=["symbol","symbolSize","symbolRotate","symbolOffset"],nm=em.concat(["symbolKeepAspect"]),rm={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;a0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:Object(v["isNumber"])(t)?[t]:Object(v["isArray"])(t)?t:null:null}function Dm(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&Lm(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 Rm=new Ea(!0);function Nm(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function Bm(t){return"string"===typeof t&&"none"!==t}function zm(t){var e=t.fill;return null!=e&&"none"!==e}function Fm(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 Vm(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 qm(t,e,n){var r=So(e.image,e.__image,n);if(Co(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 Hm(t,e,n,r){var i,o=Nm(n),a=zm(n),s=n.strokePercent,l=s<1,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var c=e.path||Rm,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,x=void 0,_=void 0,w=void 0;(p||g)&&(w=e.getBoundingRect()),p&&(m=h?Im(t,f,w):e.__canvasFillGradient,e.__canvasFillGradient=m),g&&(b=h?Im(t,d,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=b),v&&(x=h||!e.__canvasFillPattern?qm(t,f,e):e.__canvasFillPattern,e.__canvasFillPattern=x),y&&(_=h||!e.__canvasStrokePattern?qm(t,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=x),p?t.fillStyle=m:v&&(x?t.fillStyle=x:a=!1),g?t.strokeStyle=b:y&&(_?t.strokeStyle=_:o=!1)}var S,O,C=e.getGlobalScale();c.setScale(C[0],C[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(i=Dm(e),S=i[0],O=i[1]);var k=!0;(u||h&Ht)&&(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&&Vm(t,n),a&&Fm(t,n)):(a&&Fm(t,n),o&&Vm(t,n))),S&&t.setLineDash([])}function Gm(t,e,n){var r=e.__image=So(n.image,e.__image,e,e.onload);if(r&&Co(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 Wm(t,e,n){var r,i=n.text;if(null!=i&&(i+=""),i){t.font=n.font||ur["a"],t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(r=Dm(e),o=r[0],a=r[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(Nm(n)&&t.strokeText(i,n.x,n.y),zm(n)&&t.fillText(i,n.x,n.y)):(zm(n)&&t.fillText(i,n.x,n.y),Nm(n)&&t.strokeText(i,n.x,n.y)),o&&t.setLineDash([])}}var Um=["shadowBlur","shadowOffsetX","shadowOffsetY"],$m=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Ym(t,e,n,r,i){var o=!1;if(!r&&(n=n||{},e===n))return!1;if(r||e.opacity!==n.opacity){ob(t,i),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?qo.opacity:a}(r||e.blend!==n.blend)&&(o||(ob(t,i),o=!0),t.globalCompositeOperation=e.blend||qo.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[Wb])if(this._disposed)Cx(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[Wb]=!0,!this._model||e){var a=new xf(this._api),s=this._theme,l=this._model=new sf;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:i},Tx);var u={seriesTransition:o,optionChanged:!0};if(n)this[Ub]={silent:r,updateParams:u},this[Wb]=!1,this.getZr().wakeUp();else{try{nx(this),ox.update.call(this,null,u)}catch(c){throw this[Ub]=null,this[Wb]=!1,c}this._ssr||this._zr.flush(),this[Ub]=null,this[Wb]=!1,ux.call(this,r),cx.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||Cb&&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}Cx(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(Lx[n]){var a=o,s=o,l=-o,u=-o,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();Object(v["each"])(Px,(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=ur["d"].createCanvas(),g=Fr(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 xs({shape:{x:0,y:0,width:f,height:d},style:{fill:t.connectedBackgroundColor}})),Object(v["each"])(c,(function(t){var e=new hs({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)}Cx(this.id)},e.prototype.convertToPixel=function(t,e){return ax(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return ax(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){if(!this._disposed){var n,r=this._model,i=Ui(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}Cx(this.id)},e.prototype.getVisual=function(t,e){var n=this._model,r=Ui(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?om(o,a,e):am(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"])(Ox,(function(e){var n=function(n){var r,i=t.getModel(),o=n.target,a="globalout"===e;if(a?r={}:o&&hm(o,(function(t){var e=zs(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"])(Ax,(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)})),cm(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?Cx(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)Cx(this.id);else{this._disposed=!0;var t=this.getDom();t&&Ki(this.getDom(),Nx,"");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 Px[e.id]}},e.prototype.resize=function(t){if(!this[Wb])if(this._disposed)Cx(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[Ub]&&(null==r&&(r=this[Ub].silent),n=!0,this[Ub]=null),this[Wb]=!0;try{n&&nx(this),ox.update.call(this,{type:"resize",animation:Object(v["extend"])({duration:0},t&&t.animation)})}catch(i){throw this[Wb]=!1,i}this[Wb]=!1,ux.call(this,r),cx.call(this,r)}}},e.prototype.showLoading=function(t,e){if(this._disposed)Cx(this.id);else if(Object(v["isObject"])(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),jx[t]){var n=jx[t](this._api,e),r=this._zr;this._loadingFX=n,r.add(n)}},e.prototype.hideLoading=function(){this._disposed?Cx(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=Ax[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)Cx(this.id);else if(Object(v["isObject"])(e)||(e={silent:!!e}),kx[t.type]&&this._model)if(this[Wb])this._pendingActions.push(t);else{var n=e.silent;lx.call(this,t,n);var r=e.flush;r?this._zr.flush():!1!==r&&g["a"].browser.weChat&&this._throttledZrFlush(),ux.call(this,n),cx.call(this,n)}},e.prototype.updateLabelLayout=function(){_b.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)Cx(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);Ft(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(au(t))return;if(t instanceof rs&&tu(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)}}))}nx=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),rx(t,!0),rx(t,!1),e.plan()},rx=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)){n_.push(n);var o=Wy.wrapStageHandler(n,i);o.__prio=e,o.__raw=n,t.push(o)}}function i_(t,e){jx[t]=e}function o_(t){Object(ur["e"])({createCanvas:t})}function a_(t,e,n){var r=Ob("registerMap");r&&r(t,e,n)}function s_(t){var e=Ob("getMap");return e&&e(t)}var l_=qd;e_(Rb,Oy),e_(zb,ky),e_(zb,Ay),e_(Rb,rm),e_(zb,im),e_(Hb,bb),Ux(Gf),$x(Ib,Wf),i_("default",Ty),Kx({type:Qs,event:Qs,update:Qs},v["noop"]),Kx({type:Js,event:Js,update:Js},v["noop"]),Kx({type:tl,event:tl,update:tl},v["noop"]),Kx({type:el,event:el,update:el},v["noop"]),Kx({type:nl,event:nl,update:nl},v["noop"]),Wx("light",$y),Wx("dark",Jy);var u_={},c_=[],h_={registerPreprocessor:Ux,registerProcessor:$x,registerPostInit:Yx,registerPostUpdate:Xx,registerUpdateLifecycle:Zx,registerAction:Kx,registerCoordinateSystem:Qx,registerLayout:t_,registerVisual:e_,registerTransform:l_,registerLoading:i_,registerMap:a_,registerImpl:Sb,PRIORITY:Gb,ComponentModel:gh,ComponentView:Wp,SeriesModel:Hp,ChartView:fy,registerComponentModel:function(t){gh.registerClass(t)},registerComponentView:function(t){Wp.registerClass(t)},registerSeriesModel:function(t){Hp.registerClass(t)},registerChartView:function(t){fy.registerClass(t)},registerSubTypeDefaulter:function(t,e){gh.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Gr(t,e)}};function f_(t){Object(v["isArray"])(t)?Object(v["each"])(t,(function(t){f_(t)})):Object(v["indexOf"])(c_,t)>=0||(c_.push(t),Object(v["isFunction"])(t)&&(t={install:t}),t.install(h_))}function d_(t){return null==t?0:t.length||1}function p_(t){return t}var g_=function(){function t(t,e,n,r,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||p_,this._newKeyGetter=r||p_,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 E_,j_,P_,L_,D_,R_,N_,B_=v["isObject"],z_=v["map"],F_="undefined"===typeof Int32Array?Array:Int32Array,V_="e\0\0",q_=-1,H_=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],G_=["_approximateExtent"],W_=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;A_(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():B_(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,B_(e)?v["extend"](r,e):r[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){B_(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;Fs(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:z_(this.dimensions,this._getDimInfo,this),this.hostModel)),D_(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(){E_=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 F_(o.categories.length);for(var s=0;s1&&(s+="__ec__"+u),r[e]=s}}}(),t}(),U_=W_;function $_(t,e){return Y_(t,e).dimensions}function Y_(t,e){Jf(t)||(t=ed(t)),e=e||{};var n=e.coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],i=Object(v["createHashMap"])(),o=[],a=Z_(t,n,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&I_(a),l=r===t.dimensionsDefine,u=l?T_(t):M_(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 Z_(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 K_(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 Q_=function(){function t(t){this.coordSysDims=[],this.axisMap=Object(v["createHashMap"])(),this.categoryAxisMap=Object(v["createHashMap"])(),this.coordSysName=t}return t}();function J_(t){var e=t.get("coordinateSystem"),n=new Q_(e),r=tw[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}var tw={cartesian2d:function(t,e,n,r){var i=t.getReferringComponents("xAxis",Yi).models[0],o=t.getReferringComponents("yAxis",Yi).models[0];e.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),ew(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),ew(o)&&(r.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var i=t.getReferringComponents("singleAxis",Yi).models[0];e.coordSysDims=["single"],n.set("single",i),ew(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var i=t.getReferringComponents("polar",Yi).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),ew(o)&&(r.set("radius",o),e.firstCategoryDimIndex=0),ew(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),ew(s)&&(r.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))}))}};function ew(t){return"category"===t.get("type")}function nw(t,e,n){n=n||{};var r,i,o,a=n.byIndex,s=n.stackedCoordDimension;rw(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 rw(t){return!A_(t.schema)}function iw(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function ow(t,e){return iw(t,e)?t.getCalculationInfo("stackResultDimension"):e}function aw(t,e){var n,r=t.get("coordinateSystem"),i=df.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=x_(i)}return n}))),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function sw(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 lw(t,e,n){n=n||{};var r,i=e.getSourceManager(),o=!1;t?(o=!0,r=ed(t)):(r=i.getSource(),o=r.sourceFormat===xh);var a=J_(e),s=aw(e,a),l=n.useEncodeDefaulter,u=v["isFunction"](l)?l:l?v["curry"](Eh,s,e):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},h=Y_(r,c),f=sw(h.dimensions,n.createInvertedIndices,a),d=o?null:i.getSharedDataStore(h),p=nw(e,{schema:h,store:d}),g=new U_(h,e);g.setCalculationInfo(p);var y=null!=f&&uw(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 uw(t){if(t.sourceFormat===xh){var e=cw(t.data||[]);return!v["isArray"](Ci(e))}}function cw(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}();vo(fw);var dw=fw,pw=0,gw=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++pw}return t.createByAxisModel=function(e){var n=e.option,r=n.data,i=r&&Object(v["map"])(r,vw);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 vw(t){return Object(v["isObject"])(t)&&null!=t.value?t.value:t+""}var yw=gw;function mw(t){return"interval"===t.type||"log"===t.type}function bw(t,e,n,r){var i={},o=t[1]-t[0],a=i.interval=hi(o/e,!0);null!=n&&ar&&(a=i.interval=r);var s=i.intervalPrecision=_w(a),l=i.niceTickExtent=[Kr(Math.ceil(t[0]/a)*a,s),Kr(Math.floor(t[1]/a)*a,s)];return Sw(l,t),i}function xw(t){var e=Math.pow(10,ci(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Kr(n*e)}function _w(t){return Jr(t)+2}function ww(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function Sw(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),ww(t,0,e),ww(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function Ow(t,e){return t>=e[0]&&t<=e[1]}function Cw(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function kw(t,e){return t*(e[1]-e[0])+e[0]}var Aw=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new yw({})),Object(v["isArray"])(r)&&(r=new yw({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 Object(v["isString"])(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),Ow(t,this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Cw(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(kw(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}(dw);dw.registerClass(Aw);var Mw=Aw,Tw=Kr,Iw=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 Ow(t,this._extent)},e.prototype.normalize=function(t){return Cw(t,this._extent)},e.prototype.scale=function(t){return kw(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=_w(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:Tw(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 Vw(t){var e=Fw(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=Zr(t.get("barWidth"),r),p=Zr(t.get("barMaxWidth"),r),g=Zr(t.get("barMinWidth")||($w(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:Nw(o),stackId:Rw(t)})})),qw(n)}function qw(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=Zr(o,i),l=Zr(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 Hw(t,e,n){if(t&&e){var r=t[Nw(e)];return null!=r&&null!=n?r[Rw(n)]:r}}function Gw(t,e){var n=zw(t,e),r=Vw(n);Object(v["each"])(n,(function(t){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),o=Rw(t),a=r[Nw(i)][o],s=a.offset,l=a.width;e.setLayout({bandWidth:a.bandWidth,offset:s,size:l})}))}function Ww(t){return{seriesType:t,plan:Up(),reset:function(t){if(Uw(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=iw(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),f=Yw(r,i),d=$w(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&&Lw(3*i),u=d&&s&&Lw(3*i),m=d&&Lw(i),b=n.master.getRect(),x=h?b.width:b.height,_=e.getStore(),w=0;while(null!=(r=t.next())){var S=_.get(c?g:o,r),O=_.get(a,r),C=f,k=void 0;c&&(k=+S-_.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 j=n.dataToPoint([k,O]);C=j[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=Kw.length,a=Math.min(Xw(Kw,this._approxInterval,0,o),o-1);this._interval=Kw[a][1],this._minLevelUnit=Kw[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return Object(v["isNumber"])(t)?t:+li(t)},e.prototype.contain=function(t){return Ow(this.parse(t),this._extent)},e.prototype.normalize=function(t){return Cw(this.parse(t),this._extent)},e.prototype.scale=function(t){return kw(t,this._extent)},e.type="time",e}(Ew),Kw=[["second",oc],["minute",ac],["hour",sc],["quarter-day",6*sc],["half-day",12*sc],["day",1.2*lc],["half-week",3.5*lc],["week",7*lc],["month",31*lc],["quarter",95*lc],["half-year",uc/2],["year",uc]];function Qw(t,e,n,r){var i=li(e),o=li(n),a=function(t){return wc(i,t,r)===wc(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 Jw(t,e){return t/=lc,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function tS(t){var e=30*lc;return t/=e,t>6?6:t>3?3:t>2?2:1}function eS(t){return t/=sc,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function nS(t,e){return t/=e?ac:oc,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function rS(t){return hi(t,!0)}function iS(t,e,n){var r=new Date(t);switch(vc(e)){case"year":case"month":r[Ec(n)](0);case"day":r[jc(n)](1);case"hour":r[Pc(n)](0);case"minute":r[Lc(n)](0);case"second":r[Dc(n)](0),r[Rc(n)](0)}return r.getTime()}function oS(t,e,n,r){var i=1e4,o=pc,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 x=(r[1]-r[0])/e;if(h>1.5*x&&f>x/1.5)break;if(u.push(y),h>x||t===o[d])break}c=[]}}}var _=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=_.length-1;for(d=0;d<_.length;++d)for(var O=_[d],C=0;C0)r*=10;var o=[Kr(hS(e[0]/r)*r),Kr(cS(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},e.prototype.calcNiceExtent=function(t){lS.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=dS(t)/dS(this.base),Ow(t,this._extent)},e.prototype.normalize=function(t){return t=dS(t)/dS(this.base),Cw(t,this._extent)},e.prototype.scale=function(t){return t=kw(t,this._extent),fS(this.base,t)},e.type="log",e}(dw),gS=pS.prototype;function vS(t,e){return uS(t,Jr(e))}gS.getMinorTicks=lS.getMinorTicks,gS.getLabel=lS.getLabel,dw.registerClass(pS);var yS=pS,mS=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[xS[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=bS[t];this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),bS={min:"_determinedMin",max:"_determinedMax"},xS={min:"_dataMin",max:"_dataMax"};function _S(t,e,n){var r=t.rawExtentInfo;return r||(r=new mS(t,e,n),t.rawExtentInfo=r,r)}function wS(t,e){return null==e?null:Object(v["eqNaN"])(e)?NaN:t.parse(e)}function SS(t,e){var n=t.type,r=_S(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=zw("bar",a),l=!1;if(v["each"](s,(function(t){l=l||t.getBaseAxis()===e.axis})),l){var u=Vw(s),c=OS(i,o,e,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function OS(t,e,n,r){var i=n.axis.getExtent(),o=i[1]-i[0],a=Hw(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 CS(t,e){var n=e,r=SS(t,n),i=r.extent,o=n.get("splitNumber");t instanceof yS&&(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 kS(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new Mw({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new aS({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(dw.getClass(e)||Ew)}}function AS(t){var e=t.scale.getExtent(),n=e[0],r=e[1];return!(n>0&&r>0||n<0&&r<0)}function MS(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(TS(t,r),i,null!=r.level?{level:r.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function TS(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function IS(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var r,i,o=n.getExtent();n instanceof Mw?i=n.count():(r=n.getTicks(),i=r.length);var a,s=t.getLabelModel(),l=MS(t),u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;ct[1]&&(t[1]=r[1])}))}var RS=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},t.prototype.getCoordSysModel=function(){},t}();function NS(t){return hw(null,t)}var BS={isDimensionStacked:iw,enableDataStack:nw,getStackedDimension:ow};function zS(t,e){var n=e;e instanceof Vu||(n=new Vu(e));var r=kS(n);return r.setExtent(t[0],t[1]),CS(r,n),r}function FS(t){v["mixin"](t,RS)}function VS(t,e){return e=e||{},yu(t,null,null,"normal"!==e.state)}var qS=1e-8;function HS(t,e){return Math.abs(t-e)n&&(t=i,n=a)}if(t)return YS(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?$S(e.exterior,n,r,t):Object(v["each"])(e.points,(function(e){$S(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 sr(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 rO(t,e){return t=tO(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 ZS(o[0],o.slice(1)));break;case"MultiPolygon":v["each"](r.coordinates,(function(t){t[0]&&i.push(new ZS(t[0],t.slice(1)))}));break;case"LineString":i.push(new KS([r.coordinates]));break;case"MultiLineString":i.push(new KS(r.coordinates))}var a=new QS(n[e||"name"],i,n.cp);return a.properties=n,a}))}function iO(t,e,n,r,i,o,a,s){var l=new Bs({style:{text:t,font:e,align:n,verticalAlign:r,padding:i,rich:o,overflow:a?"truncate":null,lineHeight:s}});return l.getBoundingRect()}var oO=Gi();function aO(t){return"category"===t.type?lO(t):hO(t)}function sO(t,e){return"category"===t.type?cO(t,e):{ticks:v["map"](t.scale.getTicks(),(function(t){return t.value}))}}function lO(t){var e=t.getLabelModel(),n=uO(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function uO(t,e){var n,r,i=fO(t,"labels"),o=jS(e),a=dO(i,o);return a||(v["isFunction"](o)?n=bO(t,o):(r="auto"===o?gO(t):o,n=mO(t,r)),pO(i,o,{labels:n,labelCategoryInterval:r}))}function cO(t,e){var n,r,i=fO(t,"ticks"),o=jS(e),a=dO(i,o);if(a)return a;if(e.get("show")&&!t.scale.isBlank()||(n=[]),v["isFunction"](o))n=bO(t,o,!0);else if("auto"===o){var s=uO(t,t.getLabelModel());r=s.labelCategoryInterval,n=v["map"](s.labels,(function(t){return t.tickValue}))}else r=o,n=mO(t,r,!0);return pO(i,o,{ticks:n,tickCategoryInterval:r})}function hO(t){var e=t.scale.getTicks(),n=MS(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 fO(t,e){return oO(t)[e]||(oO(t)[e]=[])}function dO(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=dr(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))),x=oO(t.model),_=t.getExtent(),w=x.lastAutoInterval,S=x.lastTickCount;return null!=w&&null!=S&&Math.abs(w-b)<=1&&Math.abs(S-a)<=1&&w>b&&x.axisExtent0===_[0]&&x.axisExtent1===_[1]?b=w:(x.lastTickCount=a,x.lastAutoInterval=b,x.axisExtent0=_[0],x.axisExtent1=_[1]),b}function yO(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 mO(t,e,n){var r=MS(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=PS(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 bO(t,e,n){var r=t.scale,i=MS(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 xO=[0,1],_O=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 ei(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(),wO(n,r.count())),Xr(t,xO,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&(n=n.slice(),wO(n,r.count()));var i=Xr(t,n,xO,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=sO(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 SO(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 aO(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 vO(this)},t}();function wO(t,e){var n=t[1]-t[0],r=e,i=n/r/2;t[0]+=i,t[1]-=i}function SO(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=Kr(t),e=Kr(e),h?t>e:ti&&(i+=TO);var d=Math.atan2(s,a);if(d<0&&(d+=TO),d>=r&&d<=i||d+TO>=r&&d+TO<=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,zO.fromArray(t[0]),FO.fromArray(t[1]),VO.fromArray(t[2]),Kn.sub(qO,zO,FO),Kn.sub(HO,VO,FO);var n=qO.len(),r=HO.len();if(!(n<.001||r<.001)){qO.scale(1/n),HO.scale(1/r);var i=qO.dot(HO),o=Math.cos(e);if(o1&&Kn.copy(UO,VO),UO.toArray(t[1])}}}}function YO(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,zO.fromArray(t[0]),FO.fromArray(t[1]),VO.fromArray(t[2]),Kn.sub(qO,FO,zO),Kn.sub(HO,VO,FO);var r=qO.len(),i=HO.len();if(!(r<.001||i<.001)){qO.scale(1/r),HO.scale(1/i);var o=qO.dot(e),a=Math.cos(n);if(o=l)Kn.copy(UO,VO);else{UO.scaleAndAdd(HO,s/Math.tan(Math.PI/2-c));var h=VO.x!==FO.x?(UO.x-FO.x)/(VO.x-FO.x):(UO.y-FO.y)/(VO.y-FO.y);if(isNaN(h))return;h<0?Kn.copy(UO,FO):h>1&&Kn.copy(UO,VO)}UO.toArray(t[1])}}}}function XO(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 ZO(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=R(r[0],r[1]),o=R(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=F([],r[1],r[0],a/i),l=F([],r[1],r[2],a/o),u=F([],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 x(),v<0&&S(-v,.8),y<0&&S(y,.8),x(),_(v,y,1),_(y,v,-1),x(),v<0&&O(-v),y<0&&O(y),u}function x(){v=m.rect[e]-r,y=i-b.rect[e]-b.rect[n]}function _(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 eC(t,e,n,r){return tC(t,"x","width",e,n,r)}function nC(t,e,n,r){return tC(t,"y","height",e,n,r)}function rC(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new sr(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)),iu(n,l,e,s)}else if(n.attr(l),!ku(n).valueAnimation){var h=Object(v["retrieve2"])(n.style.opacity,1);n.style.opacity=0,ou(n,{style:{opacity:h}},e,s)}if(i.oldLayout=l,n.states.select){var f=i.oldLayoutSelect={};cC(f,l,hC),cC(f,n.states.select,hC)}if(n.states.emphasis){var d=i.oldLayoutEmphasis={};cC(d,l,hC),cC(d,n.states.emphasis,hC)}Mu(n,s,u,e,e)}if(r&&!r.ignore&&!r.invisible){i=uC(r),o=i.oldLayout;var p={points:r.shape.points};o?(r.attr({shape:o}),iu(r,{shape:p},e)):(r.setShape(p),r.style.strokePercent=0,ou(r,{style:{strokePercent:1}},e)),i.oldLayout=p}},t}(),dC=fC,pC=Gi();function gC(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){var r=pC(e).labelManager;r||(r=pC(e).labelManager=new dC),r.clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,n){var r=pC(e).labelManager;n.updatedSeries.forEach((function(t){r.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),r.updateLayoutConfig(e),r.layout(e),r.processLabelsOverall()}))}function vC(t,e,n){var r=ur["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}f_(gC);var yC=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||Cn,"string"===typeof e?i=vC(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 m(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=vC("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 sr(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===o.length){var e=new sr(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 x=f.dpr,_=0;_0&&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?_C: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&Vt&&!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=EC:-l>=EC),f=l>0?l%EC:l%EC+EC,d=!1;d=!!h||!Object(Te["j"])(c)&&f>=IC===!!u;var p=t+n*TC(o),g=e+r*MC(o);this._start&&this._add("M",p,g);var v=Math.round(i*jC);if(h){var y=1/this._p,m=(u?1:-1)*(EC-y);this._add("A",n,r,v,1,+u,t+n*TC(o+m),e+r*MC(o+m)),y>.01&&this._add("A",n,r,v,0,+u,p,g)}else{var b=t+n*TC(a),x=e+r*MC(a);this._add("A",n,r,v,+d,+u,b,x)}},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 XC(t){return""}function ZC(t,e){e=e||{};var n=e.newline?"\n":"";function r(t){var e=t.children,i=t.tag,o=t.attrs;return YC(i,o)+(t.text||"")+(e?""+n+Object(v["map"])(e,(function(t){return r(t)})).join(n)+n:"")+XC(i)}return r(t)}function KC(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 QC(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function JC(t,e,n,r){return $C("svg","root",{width:t,height:e,xmlns:qC,"xmlns:xlink":HC,version:"1.1",baseProfile:"full",viewBox:!!r&&"0 0 "+t+" "+e},n)}var tk={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"},ek="transform-origin";function nk(t,e,n){var r=Object(v["extend"])({},t.shape);Object(v["extend"])(r,e),t.buildPath(n,r);var i=new LC;return i.reset(Object(Te["f"])(t)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function rk(t,e){var n=e.originX,r=e.originY;(n||r)&&(t[ek]=n+"px "+r+"px")}var ik={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function ok(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function ak(t,e,n){var r,i,o=t.shape.paths,a={};if(Object(v["each"])(o,(function(t){var e=QC(n.zrId);e.animation=!0,lk(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=ok(a,n);return r.replace(i,s)}}function sk(t){return Object(v["isString"])(t)?tk[t]?"cubic-bezier("+tk[t]+")":Ce(t)?t:"":""}function lk(t,e,n,r){var i=t.animators,o=i.length,a=[];if(t instanceof cv){var s=ak(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=ok(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 uk=Math.round;function ck(t){return t&&Object(v["isString"])(t.src)}function hk(t){return t&&Object(v["isFunction"])(t.toDataURL)}function fk(t,e,n,r){VC((function(i,o){var a="fill"===i||"stroke"===i;a&&Object(Te["k"])(o)?kk(e,t,i,r):a&&Object(Te["n"])(o)?Ak(n,t,i,r):t[i]=o}),e,n,!1),Ck(n,t,r)}function dk(t){return Object(Te["j"])(t[0]-1)&&Object(Te["j"])(t[1])&&Object(Te["j"])(t[2])&&Object(Te["j"])(t[3]-1)}function pk(t){return Object(Te["j"])(t[4])&&Object(Te["j"])(t[5])}function gk(t,e,n){if(e&&(!pk(e)||!dk(e))){var r=n?10:1e4;t.transform=dk(e)?"translate("+uk(e[4]*r)/r+" "+uk(e[5]*r)/r+")":Object(Te["e"])(e)}}function vk(t,e,n){for(var r=t.points,i=[],o=0;ou?(a=null==n[f+1]?null:n[f+1].elm,Gk(t,a,n,l,f)):Wk(t,e,s,u))}function Yk(t,e){var n=e.elm=t.elm,r=t.children,i=e.children;t!==e&&(Uk(t,e),zk(e.text)?Fk(r)&&Fk(i)?r!==i&&$k(n,r,i):Fk(i)?(Fk(t.text)&&Dk(n,""),Gk(n,null,i,0,i.length-1)):Fk(r)?Wk(n,r,0,r.length-1):Fk(t.text)&&Dk(n,""):t.text!==e.text&&(Fk(r)&&Wk(n,r,0,r.length-1),Dk(n,e.text)))}function Xk(t,e){if(qk(t,e))Yk(t,e);else{var n=t.elm,r=Pk(n);Hk(e),null!==r&&(Ik(r,e.elm,Lk(n)),Wk(r,[t],0,0))}return e}var Zk=0,Kk=function(){function t(t,e,n){if(this.type="svg",this.refreshHover=Qk("refreshHover"),this.configLayer=Qk("configLayer"),this.storage=e,this._opts=n=Object(v["extend"])({},n),this.root=t,this._id="zr"+Zk++,this._oldVNode=JC(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=UC("svg");Uk(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",Xk(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return Ok(t,QC(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=QC(this._id);o.animation=t.animation,o.willUpdate=t.willUpdate,o.compress=t.compress;var a=[];if(n&&"none"!==n){var s=Object(Te["p"])(n),l=s.color,u=s.opacity;this._bgVNode=$C("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=$C("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($C("defs","defs",{},h)),t.animation){var f=KC(o.cssNodes,o.cssAnims,{newline:!0});if(f){var d=$C("style","stl",{},[],f);a.push(d)}}return JC(r,i,a,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},ZC(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(Te["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),nA=eA;function rA(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 oA=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=Cm(t,-1,-1,2,2,null,i);o.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=aA,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(){Ol(this.childAt(0))},e.prototype.downplay=function(){Cl(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){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":e.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):iu(h,f,a,n),cu(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,ou(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=vu(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 x=Am(t.getItemVisual(e,"symbolOffset"),n);x&&(p.x=x[0],p.y=x[1]),d&&p.attr("cursor",d);var _=t.getItemVisual(e,"style"),w=_.fill;if(p instanceof hs){var S=p.style;p.useStyle(Object(v["extend"])({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},_))}else p.__isEmptyBrush?p.useStyle(Object(v["extend"])({},_)):p.useStyle(_),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):rA(t,e)}gu(p,h,{labelFetcher:g,labelDataIndex:e,defaultText:A,inheritColor:w,defaultOpacity:_.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var M=p.ensureState("emphasis");if(M.style=o,p.ensureState("select").style=s,p.ensureState("blur").style=a,f){var T=Math.max(1.1,3/this._sizeY);M.scaleX=this._sizeX*T,M.scaleY=this._sizeY*T}this.setSymbolScale(1),Hl(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=zs(this).dataIndex,o=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var a=r.getTextContent();a&&su(a,{style:{opacity:0}},e,{dataIndex:i,removeOpt:o,cb:function(){r.removeTextContent()}})}else r.removeTextContent();su(r,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:i,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return km(t.getItemVisual(e,"symbolSize"))},e}(Lr);function aA(t,e){this.parent.drift(t,e)}var sA=oA;function lA(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 uA(t){return null==t||Object(v["isObject"])(t)||(t={isIgnore:t}),t||{}}function cA(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:vu(e),cursorStyle:e.get("cursor")}}var hA=function(){function t(t){this.group=new Lr,this._SymbolCtor=t||sA}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=uA(e);var n=this.group,r=t.hostModel,i=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=cA(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(lA(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(lA(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):iu(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=cA(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=uA(n);for(var i=t.start;i0?n=r[0]:r[1]<0&&(n=r[1]),n}function gA(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 vA(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 yA(t,e,n,r,i,o,a,s){for(var l=vA(t,e),u=[],c=[],h=[],f=[],d=[],p=[],g=[],v=dA(i,e,a),y=t.getLayout("points")||[],m=e.getLayout("points")||[],b=0;b=i||g<0)break;if(xA(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,x=m-c;if(b*b+x*x<.5){g+=o;continue}if(a>0){var _=g+o,w=e[2*_],S=e[2*_+1];while(w===y&&S===m&&v=r||xA(w,S))d=y,p=m;else{k=w-u,A=S-c;var I=y-u,E=w-y,j=m-c,P=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(j),D=Math.abs(P);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+j*j),D=Math.sqrt(E*E+P*P),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=mA(M,bA(w,y)),T=mA(T,bA(S,m)),M=bA(M,mA(w,y)),T=bA(T,mA(S,m)),k=M-y,A=T-m,d=y-k*L/D,p=m-A*L/D,d=mA(d,bA(u,y)),p=mA(p,bA(c,m)),d=bA(d,mA(u,y)),p=bA(p,mA(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 wA=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),SA=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 wA},e.prototype.buildPath=function(t,e){var n=e.points,r=0,i=n.length/2;if(e.connectNulls){for(;i>0;i--)if(!xA(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?fe(n,h,d,g,t,l):fe(r,f,p,v,t,l);if(b>0)for(var x=0;x=0){m=s?ce(r,f,p,v,_):ce(n,h,d,g,_);return s?[t,m]:[m,t]}}n=g,r=v;break}}},e}(rs),OA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e}(wA),CA=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 OA},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(!xA(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 NA(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=RA(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 pv(0,0,0,0,f,!0);return b[i]=g,b[i+"2"]=y,b}}}function BA(t,e,n){var r=t.get("showAllSymbol"),i="auto"===r;if(!r||i){var o=n.getAxesByScale("ordinal")[0];if(o&&(!i||!zA(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 zA(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 FA(t,e){return isNaN(t)||isNaN(e)}function VA(t){for(var e=t.length/2;e>0;e--)if(!FA(t[2*e-2],t[2*e-1]))break;return e-1}function qA(t,e){return[t[2*e],t[2*e+1]]}function HA(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 GA(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}zs(d).seriesIndex=t.seriesIndex,Hl(d,j,P,L);var R=PA(t.get("smooth")),N=t.get("smoothMonotone");if(d.setShape({smooth:R,smoothMonotone:N,connectNulls:S}),p){var B=a.getCalculationInfo("stackedOnSeries"),z=0;p.useStyle(v["defaults"](l.getAreaStyle(),{fill:M,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),B&&(z=PA(B.get("smooth"))),p.setShape({smooth:R,stackedOnSmooth:z,smoothMonotone:N,connectNulls:S}),$l(p,t,"areaStyle"),zs(p).seriesIndex=t.seriesIndex,Hl(p,j,P,L)}var F=function(t){r._changePolyState(t)};a.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=F)})),this._polyline.onHoverStateChange=F,this._data=a,this._coordSys=i,this._stackedOnPoints=_,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){zs(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=Hi(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"),h=t.get("z");s=new sA(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 fy.prototype.highlight.call(this,t,e,n,r)},e.prototype.downplay=function(t,e,n,r){var i=t.getData(),o=Hi(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 fy.prototype.downplay.call(this,t,e,n,r)},e.prototype._changePolyState=function(t){var e=this._polygon;gl(this._polyline,t),e&&gl(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new SA({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 CA({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 x=v["isFunction"](u)?u(o):l*b+c,_=s.getSymbolPath(),w=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),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(GA(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 Bs({z2:200}),s.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=VA(a);l>=0&&(gu(o,vu(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?iA(i,n):rA(i,t)},enableTextSetter:!0},UA(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),x=(g?0:-d)*(v?-1:1),_=g?"x":"y",w=HA(u,m,_),S=w.range,O=S[1]-S[0],C=void 0;if(O>=1){if(O>1&&!h){var k=qA(u,S[0]);s.attr({x:k[0]+b,y:k[1]+x}),i&&(C=c.getRawValue(S[0]))}else{k=l.getPointOn(m,_);k&&s.attr({x:k[0]+b,y:k[1]+x});var A=c.getRawValue(S[0]),M=c.getRawValue(S[1]);i&&(C=eo(n,f,A,M,w.t))}r.lastFrameIndex=S[0]}else{var T=1===t||r.lastFrameIndex>0?S[0]:0;k=qA(u,T);i&&(C=c.getRawValue(T)),s.attr({x:k[0]+b,y:k[1]+x})}i&&ku(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=yA(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=DA(c.current,n,i,a),f=DA(c.stackedOnCurrent,n,i,a),d=DA(c.next,n,i,a),p=DA(c.stackedOnNext,n,i,a)),jA(h,d)>3e3||l&&jA(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(),iu(s,g,u),l&&(l.setShape({points:h,stackedOnPoints:f}),l.stopAnimation(),iu(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=ZA[i]:Object(v["isFunction"])(i)&&(d=i),d&&t.setData(r.downSample(r.mapDimension(l.dim),1/f,d,KA))}}}}}function JA(t){t.registerChartView(YA),t.registerSeriesModel(nA),t.registerLayout(XA("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,QA("line"))}var tM=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 hw(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(tM);var eM=tM,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(){return hw(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=Uu(eM.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}(eM),rM=nM,iM=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}(),oM=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 iM},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 uM(t,e,n){return e*Math.sin(t)*(n?-1:1)}function cM(t,e,n){return e*Math.cos(t)*(n?1:-1)}var hM=Math.max,fM=Math.min;function dM(t,e){var n=t.getArea&&t.getArea();if(TA(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 pM=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){ry(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=yM(t,l);h&&this._enableRealtimeSort(h,a,n);var f=t.get("clip",!0)||h,d=dM(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,x=r&&r.isInitSort,_=r&&"changeAxisOrder"===r.type;function w(t){var e=SM[l.type](a,t),n=LM(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=SM[l.type](a,e,n);if(g&&w(e),a.hasValue(e)&&wM[l.type](r)){var s=!1;f&&(s=gM[l.type](d,r));var v=vM[l.type](t,a,e,r,i,c,u.model,!1,p);h&&(v.forceLabelAnimation=!0),kM(v,a,e,n,r,t,i,"polar"===l.type),x?v.attr({shape:r}):h?mM(h,c,v,r,e,i,!1,!1):ou(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=SM[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=SM[l.type](a,e),k=PM(i,C,l);iu(O,{shape:k},c,e)}var A=s.getItemGraphicEl(n);if(a.hasValue(e)&&wM[l.type](S)){var M=!1;if(f&&(M=gM[l.type](d,S),M&&o.remove(A)),A?cu(A):A=vM[l.type](t,a,e,S,i,c,u.model,!!A,p),h&&(A.forceLabelAnimation=!0),_){var T=A.getTextContent();if(T){var I=ku(T);null!=I.prevValue&&(I.prevValue=I.value)}}else kM(A,a,e,r,S,t,i,"polar"===l.type);x?A.attr({shape:S}):h?mM(h,c,A,S,e,i,!0,_):iu(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&&uu(n,t,e)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new Lr);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){uu(e,t,zs(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}(fy),gM={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=hM(e.x,t.x),s=fM(e.x+e.width,i),l=hM(e.y,t.y),u=fM(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=fM(e.r,t.r),o=hM(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}},vM={cartesian2d:function(t,e,n,r,i,o,a,s,l){var u=new xs({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?aM:zg,c=new u({shape:r,z2:1});c.name="item";var h=CM(i);if(c.calculateTextPosition=sM(h,{isRoundCap:u===aM}),o){var f=c.shape,d=i?"r":"endAngle",p={};f[d]=i?0:r.startAngle,p[d]=r[d],(s?iu:ou)(c,{shape:p},o)}return c}};function yM(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 mM(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?iu:ou)(n,{shape:l},e,i,null);var c=e?t.baseAxis.model:null;(a?iu:ou)(n,{shape:u},c,i)}function bM(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 OM(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}function CM(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 kM(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=vu(r);gu(t,h,{labelFetcher:o,labelDataIndex:n,defaultText:rA(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,lM(t,"outside"===d?c:d,CM(a),r.get(["label","rotate"]))}Au(f,h,o.getRawValue(n),(function(t){return iA(e,t)}));var p=r.getModel(["emphasis"]);Hl(t,p.get("focus"),p.get("blurScope"),p.get("disabled")),$l(t,r),OM(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 AM(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 MM=function(){function t(){}return t}(),TM=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 MM},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 jM(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 PM(t,e,n){if(TA(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 LM(t,e,n){var r="polar"===t.type?zg:xs;return new r({shape:PM(e,n,t),silent:!0,z2:0})}var DM=pM;function RM(t){t.registerChartView(DM),t.registerSeriesModel(rM),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,v["curry"](Gw,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Ww("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,QA("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 NM=2*Math.PI,BM=Math.PI/180;function zM(t,e){return oh(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function FM(t,e){var n=zM(t,e),r=t.get("center"),i=t.get("radius");v["isArray"](i)||(i=[0,i]),v["isArray"](r)||(r=[r,r]);var o=Zr(n.width,e.getWidth()),a=Zr(n.height,e.getHeight()),s=Math.min(o,a),l=Zr(r[0],o)+n.x,u=Zr(r[1],a)+n.y,c=Zr(i[0],s/2),h=Zr(i[1],s/2);return{cx:l,cy:u,r0:c,r:h}}function VM(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),r=e.mapDimension("value"),i=zM(t,n),o=FM(t,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-t.get("startAngle")*BM,h=t.get("minAngle")*BM,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=NM,x=0,_=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:NM/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 $M(t){return"center"===t.position}function YM(t){var e,n,r=t.getData(),i=[],o=!1,a=(t.get("minShowLabelAngle")||0)*HM,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"]),x=m.get("distanceToLabelLine"),_=m.get("alignTo"),w=Zr(m.get("edgeDistance"),u),S=m.get("bleedMargin"),O=y.getModel("labelLine"),C=O.get("length");C=Zr(C,u);var k=O.get("length2");if(k=Zr(k,u),Math.abs(h.endAngle-h.startAngle)0?"right":"left":j>0?"left":"right"}var V=Math.PI,q=0,H=m.get("rotate");if(Object(v["isNumber"])(H))q=H*(V/180);else if("center"===b)q=0;else if("radial"===H||!0===H){var G=j<0?-E+V:-E;q=G}else if("tangential"===H&&"outside"!==b&&"outer"!==b){var W=Math.atan2(j,P);W<0&&(W=2*V+W);var U=P>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 Kn(j,P),linePoints:T,textAlign:I,labelDistance:x,labelAlignTo:_,edgeDistance:w,bleedMargin:S,rect:Y,unconstrainedWidth:Y.width,labelStyleWidth:f.style.width})}s.setTextConfig({inside:L})}})),!o&&t.get("avoidLabelOverlap")&&WM(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}(fy),QM=KM;function JM(t,e,n){e=Object(v["isArray"])(e)&&{coordDimensions:e}||Object(v["extend"])({encodeDefine:t.getEncode()},e);var r=t.getSource(),i=Y_(r,e).dimensions,o=new U_(i,t);return o.initData(r,n),o}var tT=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}(),eT=tT,nT=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 eT(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(){return JM(this,{coordDimensions:["value"],encodeDefaulter:v["curry"](jh,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),r=t.prototype.getDataParams.call(this,e),i=[];return n.each(n.mapDimension("value"),(function(t){i.push(t)})),r.percent=ni(i,e,n.hostModel.get("percentPrecision")),r.$vars.push("percent"),r},e.prototype._defaultLabelLine=function(t){Si(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),rT=nT;function iT(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 oT(t){t.registerChartView(QM),t.registerSeriesModel(rT),lm("pie",t.registerAction),t.registerLayout(Object(v["curry"])(VM,"pie")),t.registerProcessor(qM("pie")),t.registerProcessor(iT("pie"))}var aT=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 hw(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),sT=aT,lT=4,uT=function(){function t(){}return t}(),cT=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 uT},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}(),fT=hT,dT=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=XA("").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 fT:new fA,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}(fy),pT=dT,gT=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}(gh),vT=gT,yT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Yi).models[0]},e.type="cartesian2dAxis",e}(gh);v["mixin"](yT,RS);var mT={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)"]}}},bT=v["merge"]({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},mT),xT=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}}},mT),_T=v["merge"]({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},xT),wT=v["defaults"]({logBase:10},xT),ST={category:bT,value:xT,time:_T,log:wT},OT={value:1,category:1,time:1,log:1};function CT(t,e,n,r){Object(v["each"])(OT,(function(i,o){var a=Object(v["merge"])(Object(v["merge"])({},ST[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=lh(this),r=n?ch(t):{},i=e.getTheme();Object(v["merge"])(t,i.get(o+"Axis")),Object(v["merge"])(t,this.getDefaultOption()),t.type=kT(t),n&&uh(t,r,n)},n.prototype.optionUpdated=function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=yw.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",kT)}function kT(t){return t.type||(t.data?"category":"value")}var AT=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}(),MT=AT,TT=["x","y"];function IT(t){return"interval"===t.type||"time"===t.type}var ET=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=TT,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(IT(t)&&IT(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=Nn([],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.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 V(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 V(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 sr(n,r,i,o)},e}(MT),jT=ET,PT=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}(OO),LT=PT;function DT(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 RT(t){return"cartesian2d"===t.get("coordinateSystem")}function NT(t){var e={xAxisModel:null,yAxisModel:null};return v["each"](e,(function(n,r){var i=r.replace(/Model$/,""),o=t.getReferringComponents(i,Yi).models[0];e[r]=o})),e}var BT=Math.log;function zT(t,e,n){var r=Ew.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=SS(t,e),u=l.extent,c=l.fixMin,h=l.fixMax;if("log"===t.type){var f=BT(t.base);u=[BT(u[0])/f,BT(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=xw(p),g=u[1]-p*a}else{var y=t.getTicks().length-1;y>a&&(p=xw(p));var m=p*a;v=Math.ceil(u[1]/p)*p,g=Kr(v-m),g<0&&u[0]>=0?(g=0,v=Kr(m)):v>0&&u[1]<=0&&(v=0,g=-Kr(m))}var b=(i[0].value-o[0].value)/s,x=(i[a].value-o[a].value)/s;r.setExtent.call(t,g+p*b,v+p*x),r.setInterval.call(t,p),(b||x)&&r.setNiceExtent.call(t,g+p,v-p)}var FT=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=TT,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;mw(u)&&l.get("alignTicks")&&null==l.get("interval")?i.push(s):(CS(u,l),mw(u)&&(e=s))}i.length&&(e||(e=i.pop(),CS(e.scale,e.model)),Object(v["each"])(i,(function(t){zT(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){qT(n,"y",t,i)})),Object(v["each"])(n.y,(function(t){qT(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=oh(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]),GT(t,e?o.x:o.y)}))}s(),i&&(Object(v["each"])(a,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=IS(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"):ai(o-UT)?(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}(),YT={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];a&&(V(s,s,a),V(l,l,a));var u=Object(v["extend"])({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new tv({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});c.anid="line",n.add(c);var h=e.get(["axisLine","symbol"]);if(null!=h){var f=e.get(["axisLine","symbolSize"]);Object(v["isString"])(h)&&(h=[h,h]),(Object(v["isString"])(f)||Object(v["isNumber"])(f))&&(f=[f,f]);var d=Am(e.get(["axisLine","symbolOffset"])||0,f),p=f[0],g=f[1];Object(v["each"])([{rotate:t.rotation+Math.PI/2,offset:d[0],r:0},{rotate:t.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(e,r){if("none"!==h[r]&&null!=h[r]){var i=Cm(h[r],-p/2,-g/2,p,g,u.stroke,!0),o=e.r+e.offset;i.attr({rotation:e.rotate,x:s[0]+o*Math.cos(t.rotation),y:s[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(i)}}))}}},axisTickLabel:function(t,e,n,r){var i=eI(n,r,e,t),o=rI(n,r,e,t);if(ZT(e,o,i),nI(n,r,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var a=JO(Object(v["map"])(o,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})));rC(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,JT(s)?t.labelOffset+l*c:0],p=e.get("nameRotate");null!=p&&(p=p*UT/180),JT(s)?o=$T.innerTextLayout(t.rotation,null!=p?p:t.rotation,l):(o=XT(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),x=new Bs({x:d[0],y:d[1],rotation:o.rotation,silent:$T.isLabelSilent(e),style:yu(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(ey({el:x,componentModel:e,itemName:i}),x.__fullText=i,x.anid="name",e.get("triggerEvent")){var _=$T.makeAxisEventDataBase(e);_.targetType="axisName",_.name=i,zs(x).eventData=_}r.add(x),x.updateTransform(),n.add(x),x.decomposeTransform()}}};function XT(t,e,n,r){var i,o,a=oi(n-t),s=r[0]>r[1],l="start"===e&&!s||"start"!==e&&s;return ai(a-UT/2)?(o=l?"bottom":"top",i="center"):ai(a-1.5*UT)?(o=l?"top":"bottom",i="center"):(o="middle",i=a<1.5*UT&&a>UT/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function ZT(t,e,n){if(!PS(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?(KT(o),KT(u)):QT(o,a)&&(r?(KT(a),KT(c)):(KT(o),KT(u))),!1===i?(KT(s),KT(h)):QT(l,s)&&(i?(KT(l),KT(f)):(KT(s),KT(h)))}}function KT(t){t&&(t.ignore=!0)}function QT(t,e){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(n&&r){var i=En([]);return Dn(i,i,-t.rotation),n.applyTransform(Pn([],i,t.getLocalTransform())),r.applyTransform(Pn([],i,e.getLocalTransform())),n.intersect(r)}}function JT(t){return"middle"===t||"center"===t}function tI(t,e,n,r,i){for(var o=[],a=[],s=[],l=0;l=0||t===e}function hI(t){var e=fI(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=pI(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(s||(d.name=""),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 Vu(d,null,this.ecModel);return v["mixin"](g,RS.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"}},FI.axisLine),axisLabel:VI(FI.axisLabel,!1),axisTick:VI(FI.axisTick,!1),splitLine:VI(FI.splitLine,!0),splitArea:VI(FI.splitArea,!0),indicator:[]},e}(gh),HI=qI,GI=["axisLine","axisTickLabel","axisName"],WI=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 iI(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"](GI,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,x=0;x3?1.4:i>1?1.2:1.1,l=r>0?s:1/s;oE(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);oE(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:c,originX:o,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!nE(this._zr,"globalPan")){var e=t.pinchScale>1?1.1:1/1.1;oE(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(Y);function oE(t,e,n,r,i){t.pointerChecker&&t.pointerChecker(r,i.originX,i.originY)&&(gt(r.event),aE(t,e,n,r,i))}function aE(t,e,n,r,i){i.isAvailableBehavior=Object(v["bind"])(sE,null,n,r),t.trigger(e,i)}function sE(t,e,n){var r=n[t];return!t||r&&(!Object(v["isString"])(r)||e.event[r+"Key"])}var lE=iE;function uE(t,e,n){var r=t.target;r.x+=e,r.y+=n,r.dirty()}function cE(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 hE,fE={axisPointer:1,tooltip:1,brush:1};function dE(t,e,n){var r=e.getComponentByElement(t.topTarget),i=r&&r.coordinateSystem;return r&&r!==n&&!fE.hasOwnProperty(r.mainType)&&i&&i.model!==n}function pE(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 gE={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"},vE=Object(v["keys"])(gE),yE={"alignment-baseline":"textBaseline","stop-color":"stopColor"},mE=Object(v["keys"])(yE),bE=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=pE(t);this._defsUsePending=[];var r=new Lr;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),CE(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(TE(this._defs,this._defsUsePending),this._defsUsePending=[],o){var h=EE(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=BE(l,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var f=r;r=new Lr,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 xs({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=hE[s];if(u&&Object(v["hasOwn"])(hE,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=xE[s];if(f&&Object(v["hasOwn"])(xE,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 as({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});SE(e,n),CE(t,n,this._defsUsePending,!1,!1),kE(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(){hE={g:function(t,e){var n=new Lr;return SE(e,n),CE(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new xs;return SE(e,n),CE(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 mg;return SE(e,n),CE(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 tv;return SE(e,n),CE(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 _g;return SE(e,n),CE(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=OE(r));var i=new $g({shape:{points:n||[]},silent:!0});return SE(e,i),CE(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n,r=t.getAttribute("points");r&&(n=OE(r));var i=new Zg({shape:{points:n||[]},silent:!0});return SE(e,i),CE(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new hs;return SE(e,n),CE(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 Lr;return SE(e,a),CE(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 Lr;return SE(e,a),CE(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=fg(n);return SE(e,r),CE(t,r,this._defsUsePending,!1,!1),r.silent=!0,r}}}(),t}(),xE={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 pv(e,n,r,i);return _E(t,o),wE(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 vv(e,n,r);return _E(t,i),wE(t,i),i}};function _E(t,e){var n=t.getAttribute("gradientUnits");"userSpaceOnUse"===n&&(e.global=!0)}function wE(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={};RE(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:a})}n=n.nextSibling}}function SE(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Object(v["defaults"])(e.__inheritedStyle,t.__inheritedStyle))}function OE(t){for(var e=EE(t),n=[],r=0;r0;o-=2){var a=r[o],s=r[o-1],l=EE(a);switch(i=i||In(),s){case"translate":Ln(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Rn(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Dn(i,i,-parseFloat(l[0])*PE);break;case"skewX":var u=Math.tan(parseFloat(l[0])*PE);Pn(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*PE);Pn(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 DE=/([^\s:;]+)\s*:\s*([^:;]+)/g;function RE(t,e,n){var r=t.getAttribute("style");if(r){var i;DE.lastIndex=0;while(null!=(i=DE.exec(r))){var o=i[1],a=Object(v["hasOwn"])(gE,o)?gE[o]:null;a&&(e[a]=i[2]);var s=Object(v["hasOwn"])(yE,o)?yE[o]:null;s&&(n[s]=i[2])}}}function NE(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;gu(e,vu(r),{labelFetcher:f,labelDataIndex:h,defaultText:n},d);var p=e.getTextContent();if(p&&(cj(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 vj(t,e,n,r,i,o){t.data?t.data.setItemGraphicEl(o,e):zs(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function yj(t,e,n,r,i){t.data||ey({el:e,componentModel:i,itemName:n,itemTooltipOption:r.get("tooltip")})}function mj(t,e,n,r,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var o=r.getModel("emphasis"),a=o.get("focus");return Hl(e,a,o.get("blurScope"),o.get("disabled")),t.isGeo&&Zl(e,i,n),a}function bj(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),Oj=Sj;function Cj(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 _=t.getBoxLayoutParams();_.aspect=b,d=oh(_,{width:y,height:m})}this.setViewRect(d.x,d.y,d.width,d.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}function Bj(t,e){v["each"](e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}var zj=function(){function t(){this.dimensions=Pj}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 Rj(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=Nj,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 Rj(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=Nj,a.resize(t[0],e),v["each"](t,(function(t){t.coordinateSystem=a,Bj(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 Qj(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){rP(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=iP(t,i,t.parentNode.hierNode.defaultAncestor||r[0],e)}function Jj(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function tP(t){return arguments.length?t:uP}function eP(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function nP(t,e){return oh(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function rP(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 iP(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=oP(s),o=aP(o),s&&o){i=oP(i),a=aP(a),i.hierNode.ancestor=t;var f=s.hierNode.prelim+h-o.hierNode.prelim-u+r(s,o);f>0&&(lP(sP(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&&!oP(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=h-l),o&&!aP(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=t)}return n}function oP(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function aP(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function sP(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function lP(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 uP(t,e){return t.parentNode===e.parentNode?1:2}var cP=function(){function t(){this.parentPoint=[],this.childPoints=[]}return t}(),hP=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 cP},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=Zr(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;fm.x,_||(x-=Math.PI));var S=_?"left":"right",O=s.getModel("label"),C=O.get("rotate"),k=C*(Math.PI/180),A=v.getTextContent();A&&(v.setTextConfig({position:O.get("position")||S,rotation:null==C?-x:k,origin:"center"}),A.setStyle("verticalAlign","middle"))}var M=s.get(["emphasis","focus"]),T="ancestor"===M?a.getAncestorsIndices():"descendant"===M?a.getDescendantIndices():null;T&&(zs(n).focus=T),gP(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===Us||gl(n.__edge,e)}})}function gP(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 ov({shape:bP(c,h,f,i,i)})),iu(g,{shape:bP(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 NP(t){var e=[];while(t)t=t.parentNode,t&&e.push(t);return e.reverse()}function BP(t,e){var n=NP(t);return v["indexOf"](n,e)>=0}function zP(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 FP=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 Vu(n,this,this.ecModel),i=DP.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 dp("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=zP(r,this),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),VP=FP;function qP(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 GP(t,e){t.eachSeriesByType("tree",(function(t){WP(t,e)}))}function WP(t,e){var n=nP(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=tP((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(i=n.width,o=n.height,a=tP());var s=t.getData().tree.root,l=s.children[0];if(l){Kj(s),qP(l,Qj,a),s.hierNode.modifier=-l.hierNode.prelim,HP(l,Jj);var u=l,c=l,h=l;HP(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),HP(l,(function(t){v=(t.getLayout().x+d)*p,y=(t.depth-1)*g;var e=eP(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),HP(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),HP(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 UP(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 $P(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){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=e.coordinateSystem,r=Wj(n,t);e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom)}))}))}function YP(t){t.registerChartView(xP),t.registerSeriesModel(VP),t.registerLayout(GP),t.registerVisual(UP),$P(t)}var XP=["treemapZoomToNode","treemapRender","treemapMove"];function ZP(t){for(var e=0;e1)n=n.parentNode;var i=Hh(t.ecModel,n.name||n.dataIndex+"",r);e.setVisual("decal",i)}))}var QP=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};JP(n);var r=t.levels||[],i=this.designatedVisualItemStyle={},o=new Vu({itemStyle:i},this,e);r=t.levels=tL(r,e);var a=v["map"](r||[],(function(t){return new Vu(t,o,e)}),this),s=DP.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 dp("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=zP(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(){KP(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"}}},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 JP(t){var e=0;v["each"](t.children,(function(t){JP(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 tL(t,e){var n=wi(e.get("color")),r=wi(e.get(["aria","decal","decals"]));if(n){var i,o;t=t||[],v["each"](t,(function(t){var e=new Vu(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 eL=QP,nL=8,rL=8,iL=5,oL=function(){function t(t){this.group=new Lr,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=a.getModel("textStyle"),l={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,l,s),this._renderContent(t,l,a,s,r),ah(o,l.pos,l.box)}},t.prototype._prepare=function(t,e,n){for(var r=t;r;r=r.parentNode){var i=Ri(r.getModel().get("name"),""),o=n.getTextRect(i),a=Math.max(o.width+2*nL,e.emptyItemWidth);e.totalWidth+=a+rL,e.renderList.push({node:r,text:i,width:a})}},t.prototype._renderContent=function(t,e,n,r,i){for(var o=0,a=e.emptyItemWidth,s=t.get(["breadcrumb","height"]),l=ih(e.pos,e.box),u=e.totalWidth,c=e.renderList,h=c.length-1;h>=0;h--){var f=c[h],d=f.node,p=f.width,g=f.text;u>l.width&&(u-=p-a,p=a,g=null);var y=new $g({shape:{points:aL(o,0,p,s,h===c.length-1,0===h)},style:Object(v["defaults"])(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Bs({style:{text:g,fill:r.getTextColor(),font:r.getFont()}}),textConfig:{position:"inside"},z2:1e4*Zs,onclick:Object(v["curry"])(i,d)});y.disableLabelAnimation=!0,this.group.add(y),sL(y,t,d),o+=p+rL}},t.prototype.remove=function(){this.group.removeAll()},t}();function aL(t,e,n,r,i,o){var a=[[i?t:t-iL,e],[t+n,e],[t+n,e+r],[i?t:t-iL,e+r]];return!o&&a.splice(2,0,[t+n+iL,e+r/2]),!i&&a.push([t,e+r/2]),a}function sL(t,e,n){zs(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&&zP(n,e)}}var lL=oL,uL=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;rdL||Math.abs(t.dy)>dL)){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 sr(i.x,i.y,i.width,i.height),a=this.seriesModel.layoutInfo;e-=a.x,n-=a.y;var s=In();Ln(s,s,[-e,-n]),Rn(s,s,[t.scale,t.scale]),Ln(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&&Qc(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 lL(this.group))).render(t,e,n.node,(function(e){"animating"!==r._state&&(BP(t.getViewRoot(),e)?r._rootToNode({node:e}):r._zoomToNode({node:e}))}))},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=SL(),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}(fy);function SL(){return{nodeGroup:[],background:[],content:[]}}function OL(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(),x=a.viewChildren,_=c.upperHeight,w=x&&x.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",hL);if(M){if(l.add(M),M.x=c.x||0,M.y=c.y||0,M.markRedraw(),_L(M).nodeWidth=d,_L(M).nodeHeight=p,c.isAboveViewRoot)return M;var T=V("background",fL,u,yL);T&&R(M,T,w&&c.upperLabelHeight);var I=f.getModel("emphasis"),E=I.get("focus"),j=I.get("blurScope"),P=I.get("disabled"),L="ancestor"===E?a.getAncestorsIndices():"descendant"===E?a.getDescendantIndices():E;if(w)Xl(M)&&Yl(M,!1),T&&(Yl(T,!P),h.setItemGraphicEl(a.dataIndex,T),Gl(T,L,j));else{var D=V("content",fL,u,mL);D&&N(M,D),T.disableMorphing=!0,T&&Xl(T)&&Yl(T,!1),Yl(M,!P),h.setItemGraphicEl(a.dataIndex,M),Gl(M,L,j)}return M}}}function R(e,n,r){var i=zs(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=xL(S);l.fill=s;var u=bL(O);u.fill=O.get("borderColor");var c=bL(C);c.fill=C.get("borderColor");var h=bL(k);if(h.fill=k.get("borderColor"),r){var f=d-2*g;z(n,s,o.opacity,{x:g,y:0,width:f,height:_})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=c,n.ensureState("select").style=h,_l(n)}e.add(n)}function N(e,n){var r=zs(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=xL(S);u.fill=l,u.decal=s.decal;var c=bL(O),h=bL(C),f=bL(k);z(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=h,n.ensureState("select").style=f,_l(n)}e.add(n)}function B(t){!t.invisible&&o.push(t)}function z(e,n,r,i){var o=f.getModel(i?gL:pL),s=Ri(f.get("name"),null),l=o.getShallow("show");gu(e,vu(f,i?gL:pL),{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",F(h,i,c);var p=u.getState("emphasis");F(p?p.style:null,i,c)}}function F(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 Zo&&(s.z2=CL(o,a)),H(l,s)),e[t][m]=s}function q(t,e){var n=t[m]={};e instanceof hL?(n.oldX=e.x,n.oldY=e.y):n.oldShape=Object(v["extend"])({},e.shape)}function H(t,e){var n=t[m]={},o=a.parentNode,s=e instanceof Lr;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 CL(t,e){return t*vL+e}var kL=wL,AL=v["each"],ML=v["isObject"],TL=-1,IL=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=qL[n];var o=t.visualHandlers[r];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(PL(i),EL(i)):"category"===n?i.categories?jL(i):PL(i,!0):(v["assert"]("linear"!==n||i.dataExtent),PL(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&&AL(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(!ML(t))return[];var e=[];AL(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 PL(t,e){var n=t.visual,r=[];v["isObject"](n)?AL(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]),VL(t,r)}function LL(t){return{applyVisual:function(e,n,r){var i=this.mapValueToVisual(e);r("color",t(n("color"),i))},_normalizedToVisual:zL([0,1])}}function DL(t){var e=this.option.visual;return e[Math.round(Xr(t,[0,1],[0,e.length-1],!0))]||{}}function RL(t){return function(e,n,r){r(t,this.mapValueToVisual(e))}}function NL(t){var e=this.option.visual;return e[this.option.loop&&t!==TL?t%e.length:t]}function BL(){return this.option.visual[0]}function zL(t){return{linear:function(e){return Xr(e,t,this.option.visual,!0)},category:NL,piecewise:function(e,n){var r=FL.call(this,n);return null==r&&(r=Xr(e,t,this.option.visual,!0)),r},fixed:BL}}function FL(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var r=IL.findPieceIndex(t,n),i=n[r];if(i&&i.visual)return i.visual[this.type]}}function VL(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=v["map"](e,(function(t){return Me["parse"](t)}))),e}var qL={linear:function(t){return Xr(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=IL.findPieceIndex(t,e,!0);if(null!=n)return Xr(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?TL:e},fixed:v["noop"]};function HL(t,e,n){return t?e<=n:e=n.length||t===n[t.depth]){var o=eD(i,u,t,e,p,r);YL(t,o,n,r)}}))}else s=ZL(u),c.fill=s}}function XL(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 ZL(t){var e=QL(t,"color");if(e){var n=QL(t,"colorAlpha"),r=QL(t,"colorSaturation");return r&&(e=Object(Me["modifyHSL"])(e,null,null,r)),n&&(e=Object(Me["modifyAlpha"])(e,n)),e}}function KL(t,e){return null!=e?Object(Me["modifyHSL"])(e,null,null,t):null}function QL(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function JL(t,e,n,r,i,o){if(o&&o.length){var a=tD(e,"color")||null!=i.color&&"none"!==i.color&&(tD(e,"colorAlpha")||tD(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 GL(h);return UL(f).drColorMappingBy=c,f}}}function tD(t,e){var n=t.get(e);return Object(v["isArray"])(n)&&n.length?{name:e,range:n}:null}function eD(t,e,n,r,i,o){var a=Object(v["extend"])({},e);if(i){var s=i.type,l="color"===s&&UL(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 nD=Math.max,rD=Math.min,iD=v["retrieve"],oD=v["each"],aD=["itemStyle","borderWidth"],sD=["itemStyle","gapWidth"],lD=["upperLabel","show"],uD=["upperLabel","height"],cD={seriesType:"treemap",reset:function(t,e,n,r){var i=n.getWidth(),o=n.getHeight(),a=t.option,s=oh(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=Zr(iD(s.width,l[0]),i),c=Zr(iD(s.height,l[1]),o),h=r&&r.type,f=["treemapZoomToNode","treemapRootToNode"],d=RP(r,f,t),p="treemapRender"===h||"treemapMove"===h?r.rootRect:null,g=t.getViewRoot(),y=NP(g);if("treemapMove"!==h){var m="treemapZoomToNode"===h?mD(t,d,g,u,c):p?[p.width,p.height]:[u,c],b=a.sort;b&&"asc"!==b&&"desc"!==b&&(b="desc");var x={squareRatio:a.squareRatio,sort:b,leafDepth:a.leafDepth};g.hostTree.clearLayouts();var _={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};g.setLayout(_),hD(g,x,!1,0),_=g.getLayout(),oD(y,(function(t,e){var n=(y[e+1]||g).getValue();t.setLayout(v["extend"]({dataExtent:[n,n],borderWidth:0,upperHeight:0},_))}))}var w=t.getData().tree.root;w.setLayout(bD(s,p,d),!0),t.setLayoutInfo(s),xD(w,new sr(-s.x,-s.y,i,o),y,g,0)}};function hD(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(aD),u=s.get(sD)/2,c=_D(s),h=Math.max(l,c),f=l-u,d=h-u;t.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:c},!0),i=nD(i-2*f,0),o=nD(o-f-d,0);var p=i*o,g=fD(t,s,p,e,n,r);if(g.length){var v={x:f,y:d,width:i,height:o},y=rD(i,o),m=1/0,b=[];b.area=0;for(var x=0,_=g.length;x<_;){var w=g[x];b.push(w),b.area+=w.getLayout().area;var S=vD(b,y,e.squareRatio);S<=m?(x++,m=S):(b.area-=b.pop().getLayout().area,yD(b,y,v,u,!1),y=rD(v.width,v.height),b.length=b.area=0,m=1/0)}if(b.length&&yD(b,y,v,u,!0),!n){var O=s.get("childrenVisibleMin");null!=O&&p=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 vD(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?nD(u*r/l,l/(u*i)):1/0}function yD(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;hii&&(u=ii),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 x=y[0]<0?-1:1;if("start"!==r.__position&&"end"!==r.__position){var _=-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*x+l[0],r.y=l[1]+w,h=y[0]<0?"right":"left",r.originX=-p*x,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*x+u[0],r.y=u[1]+w,h=y[0]>=0?"right":"left",r.originX=p*x,r.originY=-w;break}r.scaleX=r.scaleY=i,r.setStyle({verticalAlign:r.__verticalAlign||f,align:r.__align||h})}}}function S(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}(Lr),hR=cR,fR=function(){function t(t){this.group=new Lr,this._LineCtor=t||hR}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=pR(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=pR(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){t.isGroup||dR(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var r=t.start;r0}function pR(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:vu(e)}}function gR(t){return isNaN(t[0])||isNaN(t[1])}function vR(t){return t&&!gR(t[0])&&!gR(t[1])}var yR=fR,mR=[],bR=[],xR=[],_R=ye,wR=B,SR=Math.abs;function OR(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){mR[0]=_R(i[0],o[0],a[0],c),mR[1]=_R(i[1],o[1],a[1],c);var h=SR(wR(mR,e)-l);h=0?r+=u:r-=u:p>=0?r-=u:r+=u}return r}function CR(t,e){var n=[],r=_e,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=[_(l[0]),_(l[1])],l[2]&&l.__original.push(_(l[2])));var h=l.__original;if(null!=l[2]){if(x(i[0],h[0]),x(i[1],h[2]),x(i[2],h[1]),u&&"none"!==u){var f=qD(t.node1),d=OR(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=qD(t.node2),d=OR(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]}x(l[0],i[0]),x(l[1],i[2]),x(l[2],i[1])}else{if(x(o[0],h[0]),x(o[1],h[1]),C(a,o[1],o[0]),L(a,a),u&&"none"!==u){f=qD(t.node1);O(o[0],o[0],a,f*e)}if(c&&"none"!==c){f=qD(t.node2);O(o[1],o[1],a,-f*e)}x(l[0],o[0]),x(l[1],o[1])}}))}function kR(t){return"view"===t.type}var AR=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 fA,r=new yR,i=this.group;this._controller=new lE(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(kR(i)){var l={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY};this._firstRender?s.attr(l):iu(s,l,t)}CR(t.getGraph(),VD(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),u.graph.eachNode((function(t){var e=t.dataIndex,n=t.getGraphicEl(),i=t.getModel();if(n){n.off("drag").off("dragend");var o=i.get("draggable");o&&n.on("drag",(function(){h&&(h.warmUp(),!r._layouting&&r._startForceLayoutIteration(h,f),h.setFixed(e),u.setItemLayout(e,[n.x,n.y]))})).on("dragend",(function(){h&&h.setUnfixed(e)})),n.setDraggable(o&&!!h);var a=i.get(["emphasis","focus"]);"adjacency"===a&&(zs(n).focus=t.getAdjacentDataIndices())}})),u.graph.eachEdge((function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&(zs(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})}));var d="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),p=u.getLayout("cx"),g=u.getLayout("cy");u.eachItemGraphicEl((function(t,e){var n=u.getItemModel(e),r=n.get(["label","rotate"])||0,i=t.getSymbolPath();if(d){var o=u.getItemLayout(e),a=Math.atan2(o[1]-g,o[0]-p);a<0&&(a=2*Math.PI+a);var s=o[0]=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 ER||(e=this._nodesMap[TR(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"](ER,PR("hostGraph","data")),v["mixin"](jR,PR("hostGraph","edgeData"));var LR=IR;function DR(t,e,n,r,i){for(var o=new LR(r),a=0;a "+f)),u++)}var d,p=n.get("coordinateSystem");if("cartesian2d"===p||"polar"===p)d=hw(t,n);else{var g=df.get(p),y=g&&g.dimensions||[];v["indexOf"](y,"value")<0&&y.concat(["value"]);var m=Y_(t,{coordDimensions:y,encodeDefine:n.getEncode()}).dimensions;d=new U_(m,n),d.initData(t)}var b=new U_(["value"],n);return b.initData(l,s),i&&i(d,b),EP({mainData:d,struct:o,structAttr:"graph",datas:{node:d,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var RR=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 eT(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),Si(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){DD(this);var o=DR(r,n,this,!0,a);return v["each"](o.edges,(function(t){RD(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=Vu.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),dp("nameValue",{name:l.join(" > "),value:i.value,noValue:null==i.value})}var u=Tp({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 U_(["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),NR=RR,BR={type:"graphRoam",event:"graphRoam",update:"none"};function zR(t){t.registerChartView(MR),t.registerSeriesModel(NR),t.registerProcessor(SD),t.registerVisual(OD),t.registerVisual(kD),t.registerLayout(FD),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,$D),t.registerLayout(ZD),t.registerCoordinateSystem("graphView",{dimensions:Ej.dimensions,create:QD}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},v["noop"]),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},v["noop"]),t.registerAction(BR,(function(t,e){e.eachComponent({mainType:"series",query:t},(function(e){var n=e.coordinateSystem,r=Wj(n,t);e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom)}))}))}var FR=function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t}(),VR=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 FR},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}(rs),qR=VR;function HR(t,e){var n=t.get("center"),r=e.getWidth(),i=e.getHeight(),o=Math.min(r,i),a=Zr(n[0],e.getWidth()),s=Zr(n[1],e.getHeight()),l=Zr(t.get("radius"),o/2);return{cx:a,cy:s,r:l}}function GR(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 WR=2*Math.PI,UR=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=HR(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){for(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?aM:zg,f=u.get("show"),d=u.getModel("lineStyle"),p=d.get("width"),g=(l-s)%WR||l===s?(l-s)%WR:WR,v=s,y=0;f&&y=t&&(0===e?0:r[e-1][0]).8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:L}),silent:!0}))}if(m.get("show")&&I!==x){E=m.get("distance");E=E?E+l:l;for(var D=0;D<=_;D++){u=Math.cos(O),c=Math.sin(O);var R=new tv({shape:{x1:u*(p-E)+f,y1:c*(p-E)+d,x2:u*(p-S-E)+f,y2:c*(p-S-E)+d},silent:!0,style:M});"auto"===M.stroke&&R.setStyle({stroke:r((I+D/_)/x)}),h.add(R),O+=k}O-=k}else O+=C}},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"),x=+t.get("max"),_=[b,x],w=[o,a];function S(e,n){var r,o=y.getItemModel(e),a=o.getModel("pointer"),s=Zr(a.get("width"),i.r),l=Zr(a.get("length"),i.r),u=t.get(["pointer","icon"]),c=a.get("offsetCenter"),h=Zr(c[0],i.r),f=Zr(c[1],i.r),d=a.get("keepAspect");return r=u?Cm(u,h-s/2,f-l,s,l,null,d):new qR({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?aM: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=x-y.get(m,t)%x),f}(g||d)&&(y.diff(c).add((function(e){var n=y.get(m,e);if(d){var r=S(e,o);ou(r,{rotation:-((isNaN(+n)?w[0]:Xr(n,_,w,!0))+Math.PI/2)},t),u.add(r),y.setItemGraphicEl(e,r)}if(g){var i=O(e,o),a=p.get("clip");ou(i,{shape:{endAngle:Xr(n,_,w,a)}},t),u.add(i),Fs(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,iu(s,{rotation:-((isNaN(+r)?w[0]:Xr(r,_,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),x=p.get("clip");iu(b,{shape:{endAngle:Xr(r,_,w,x)}},t),u.add(b),Fs(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 hs){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(Xr(y.get(m,t),_,[0,1],!0))),s.z2EmphasisLift=0,$l(s,e),Hl(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,$l(h,e),Hl(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=Cm(o,e.cx-i/2+Zr(a[0],e.r),e.cy-i/2+Zr(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 Lr,h=[],f=[],d=t.isAnimationEnabled(),p=t.get(["pointer","showAbove"]);a.diff(this._data).add((function(t){h[t]=new Bs({silent:!0}),f[t]=new Bs({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 Lr,v=r(Xr(o,[l,u],[0,1],!0)),y=n.getModel("title");if(y.get("show")){var m=y.get("offsetCenter"),b=i.cx+Zr(m[0],i.r),x=i.cy+Zr(m[1],i.r),_=h[e];_.attr({z2:p?0:2,style:yu(y,{x:b,y:x,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:v})}),g.add(_)}var w=n.getModel("detail");if(w.get("show")){var S=w.get("offsetCenter"),O=i.cx+Zr(S[0],i.r),C=i.cy+Zr(S[1],i.r),k=Zr(w.get("width"),i.r),A=Zr(w.get("height"),i.r),M=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:v,T=(_=f[e],w.get("formatter"));_.attr({z2:p?0:2,style:yu(w,{x:O,y:C,text:GR(o,T),width:isNaN(k)?null:k,height:isNaN(A)?null:A,align:"center",verticalAlign:"middle"},{inheritColor:M})}),Au(_,{normal:w},o,(function(t){return GR(t,T)})),d&&Mu(_,e,a,t,{getFormattedLabel:function(t,e,n,r,i,a){return GR(a?a.interpolatedValue:o,T)}}),g.add(_)}c.add(g)})),this.group.add(c),this._titleEls=h,this._detailEls=f},e.type="gauge",e}(fy),$R=UR,YR=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 JM(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},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),XR=YR;function ZR(t){t.registerChartView($R),t.registerSeriesModel(XR)}var KR=["itemStyle","opacity"],QR=function(t){function e(e,n){var r=t.call(this)||this,i=r,o=new Zg,a=new Bs;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(KR);l=null==l?1:l,n||cu(r),r.useStyle(t.getItemVisual(e,"style")),r.style.lineJoin="round",n?(r.setShape({points:a.points}),r.style.opacity=0,ou(r,{style:{opacity:l}},i,e)):iu(r,{style:{opacity:l},shape:{points:a.points}},i,e),$l(r,o),this._updateLabel(t,e),Hl(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;gu(i,vu(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 Kn(h[0][0],h[0][1]):null},iu(i,{style:{x:l.x,y:l.y}},o,e),i.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),KO(n,QO(a),{stroke:c})},e}($g),JR=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 QR(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);uu(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}(fy),tN=JR,eN=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 eT(v["bind"](this.getData,this),v["bind"](this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return JM(this,{coordDimensions:["value"],encodeDefaulter:v["curry"](jh,this)})},e.prototype._defaultLabelLine=function(t){Si(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),nN=eN;function rN(t,e){return oh(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function iN(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();aAN)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&&IN(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 IN(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}var EN=MN,jN=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}(gh),PN=jN,LN=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}(OO),DN=LN;function RN(t,e,n,r,i,o){t=t||0;var a=n[1]-n[0];if(null!=i&&(i=BN(i,[0,a])),null!=o&&(o=Math.max(o,null!=i?i:0)),"all"===r){var s=Math.abs(e[1]-e[0]);s=BN(s,[0,a]),i=o=BN(s,[i,o]),r=0}e[0]=BN(e[0],n),e[1]=BN(e[1],n);var l=NN(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]=BN(e[r],h),u=NN(e,r),null!=i&&(u.sign!==l.sign||u.spano&&(e[1-r]=e[r]+u.sign*o),e}function NN(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 BN(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var zN=v["each"],FN=Math.min,VN=Math.max,qN=Math.floor,HN=Math.ceil,GN=Kr,WN=Math.PI,UN=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;zN(r,(function(t,n){var r=i[n],o=e.getComponent("parallelAxis",r),a=this._axesMap.set(t,new DN(t,kS(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();zN(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(r,r.mapDimension(t)),CS(e.scale,e.model)}),this)}}),this)},t.prototype.resize=function(t,e){this._rect=oh(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=$N(e.get("axisExpandWidth"),l),h=$N(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=$N(d[1]-d[0],l),d[1]=d[0]+t;else{t=$N(c*(h-1),l);var p=e.get("axisExpandCenter")||qN(u/2);d=[c*p-t/2],d[1]=d[0]+t}var g=(s-t)/(u-h);g<3&&(g=0);var v=[qN(GN(d[0]/c,1))+1,HN(GN(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])})),zN(n,(function(e,n){var o=(r.axisExpandable?XN:YN)(n,r),a={horizontal:{x:o.position,y:r.axisLength},vertical:{x:0,y:o.position}},s={horizontal:WN/2,vertical:0},l=[a[i].x+t.x,a[i].y+t.y],u=s[i],c=In();Dn(c,c,u),Ln(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?RN(a,r,o,"all"):l="none";else{var f=r[1]-r[0],d=o[1]*s/f;r=[VN(0,d-f/2)],r[1]=FN(o[1],r[0]+f),r[0]=r[1]-f}return{axisExpandWindow:r,behavior:l}},t}();function $N(t,e){return FN(VN(t,e[0]),e[1])}function YN(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function XN(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--)Qr(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;rsB}function kB(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function AB(t,e,n,r){var i=new Lr;return i.add(new xs({name:"main",style:EB(n),silent:!0,draggable:!0,cursor:"move",drift:Object(v["curry"])(RB,t,e,i,["n","s","w","e"]),ondragend:Object(v["curry"])(OB,e,{isEnd:!0})})),Object(v["each"])(r,(function(n){i.add(new xs({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(v["curry"])(RB,t,e,i,n),ondragend:Object(v["curry"])(OB,e,{isEnd:!0})}))})),i}function MB(t,e,n,r){var i=r.brushStyle.lineWidth||0,o=iB(i,lB),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;IB(t,e,"main",a,s,p,g),r.transformable&&(IB(t,e,"w",l,u,o,y),IB(t,e,"e",f,u,o,y),IB(t,e,"n",l,u,v,o),IB(t,e,"s",l,d,v,o),IB(t,e,"nw",l,u,o,o),IB(t,e,"ne",f,u,o,o),IB(t,e,"sw",l,d,o,o),IB(t,e,"se",f,d,o,o))}function TB(t,e){var n=e.__brushOption,r=n.transformable,i=e.childAt(0);i.useStyle(EB(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?LB(t,n[0]):DB(t,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?hB[o]+"-resize":null})}))}function IB(t,e,n,r,i,o,a){var s=e.childOfName(n);s&&s.setShape(FB(zB(t,e,[[r,i],[r+o,i+a]])))}function EB(t){return Object(v["defaults"])({strokeNoScale:!0},t.brushStyle)}function jB(t,e,n,r){var i=[rB(t,n),rB(e,r)],o=[iB(t,n),iB(e,r)];return[[i[0],o[0]],[i[1],o[1]]]}function PB(t){return qv(t.group)}function LB(t,e){var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},i=Gv(n[e],PB(t));return r[i]}function DB(t,e){var n=[LB(t,e[0]),LB(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function RB(t,e,n,r,i,o){var a=n.__brushOption,s=t.toRectRange(a.range),l=BB(e,i,o);Object(v["each"])(r,(function(t){var e=cB[t];s[e[0]][e[1]]+=l[e[0]]})),a.range=t.fromRectRange(jB(s[0][0],s[1][0],s[0][1],s[1][1])),bB(e,n),OB(e,{isEnd:!1})}function NB(t,e,n,r){var i=e.__brushOption.range,o=BB(t,n,r);Object(v["each"])(i,(function(t){t[0]+=o[0],t[1]+=o[1]})),bB(t,e),OB(t,{isEnd:!1})}function BB(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 zB(t,e,n){var r=wB(t,e);return r&&r!==nB?r.clipPath(n,t._transform):Object(v["clone"])(n)}function FB(t){var e=rB(t[0][0],t[1][0]),n=rB(t[0][1],t[1][1]),r=iB(t[0][0],t[1][0]),i=iB(t[0][1],t[1][1]);return{x:e,y:n,width:r-e,height:i-n}}function VB(t,e,n){if(t._brushType&&!YB(t,e.offsetX,e.offsetY)){var r=t._zr,i=t._covers,o=_B(t,e,n);if(!t._dragging)for(var a=0;ar.getWidth()||n<0||n>r.getHeight()}var XB={lineX:ZB(0),lineY:ZB(1),rect:{createCover:function(t,e){function n(t){return t}return AB({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=kB(t);return jB(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,r){MB(t,e,n,r)},updateCommon:TB,contain:HB},polygon:{createCover:function(t,e){var n=new Lr;return n.add(new Zg({name:"main",style:EB(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new $g({name:"main",draggable:!0,drift:Object(v["curry"])(NB,t,e),ondragend:Object(v["curry"])(OB,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,r){e.childAt(0).setShape({points:zB(t,e,n)})},updateCommon:TB,contain:HB}};function ZB(t){return{createCover:function(e,n){return AB({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=kB(e),r=rB(n[0][t],n[1][t]),i=iB(n[0][t],n[1][t]);return[r,i]},updateCoverShape:function(e,n,r,i){var o,a=wB(e,n);if(a!==nB&&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(),MB(e,n,l,i)},updateCommon:TB,contain:HB}}var KB=pB;function QB(t){return t=ez(t),function(e){return Yv(e,t)}}function JB(t,e){return t=ez(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 tz(t,e,n){var r=ez(t);return function(t,i){return r.contain(i[0],i[1])&&!dE(t,e,n)}}function ez(t){return sr.create(t)}var nz=["axisLine","axisTickLabel","axisName"],rz=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 KB(n.getZr())).on("brush",v["bind"](this._onBrush,this))},e.prototype.render=function(t,e,n,r){if(!iz(t,e,r)){this.axisModel=t,this.api=n,this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new Lr,this.group.add(this._axisGroup),t.get("show")){var o=az(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 iI(t,h);v["each"](nz,f.add,f),this._axisGroup.add(f.getGroup()),this._refreshBrushController(h,s,t,o,l,n),$v(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=sr.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:QB(u),isTargetByCursor:tz(u,o,r),getLinearBrushOtherExtent:JB(u,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(oz(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}(Wp);function iz(t,e,n){return n&&"axisAreaSelect"===n.type&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}function oz(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 az(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}var sz=rz,lz={type:"axisAreaSelect",event:"axisAreaSelected"};function uz(t){t.registerAction(lz,(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 cz={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function hz(t){t.registerComponentView(EN),t.registerComponentModel(PN),t.registerCoordinateSystem("parallel",JN),t.registerPreprocessor(ON),t.registerComponentModel(eB),t.registerComponentView(sz),CT(t,"parallel",eB,cz),uz(t)}function fz(t){f_(hz),t.registerChartView(vN),t.registerSeriesModel(xN),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,SN)}var dz=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}(),pz=function(t){function e(e){return t.call(this,e)||this}return p(e,t),e.prototype.getDefaultShape=function(){return new dz},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(){Ol(this)},e.prototype.downplay=function(){Cl(this)},e}(rs),gz=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 pz,r=zs(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"),x=b.get("curveness"),_=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)+T.sy,a=(null!=O?O*l:_.y)+_.dy,u=(null!=A?A*s:C.x)+T.ty,f=null!=M?M*l:C.y,d=i,p=a*(1-x)+f*x,g=u,y=a*x+f*(1-x)):(i=(null!=S?S*s:_.x)+_.dx,a=(null!=O?O*l:_.y)+T.sy,u=null!=A?A*s:C.x,f=(null!=M?M*l:C.y)+T.ty,d=i*(1-x)+u*x,p=a,g=i*x+u*(1-x),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 pv(0,0,+("horizontal"===h),+("vertical"===h),[{color:I,offset:0},{color:E,offset:1}]))}var j=m.getModel("emphasis");$l(n,m,"lineStyle",(function(t){return t.getItemStyle()})),o.add(n),c.setItemGraphicEl(e.dataIndex,n);var P=j.get("focus");Hl(n,"adjacency"===P?e.getAdjacentDataIndices():P,j.get("blurScope"),j.get("disabled")),zs(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 xs({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});gu(h,vu(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),$l(h,r),o.add(h),u.setItemGraphicEl(e.dataIndex,h),zs(h).dataType="node";var f=c.get("focus");Hl(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(vz(o.getBoundingRect(),t,(function(){o.removeClipPath()}))),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(fy);function vz(t,e,n){var r=new xs({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return ou(r,{shape:{width:t.width+20}},e,n),r}var yz=gz,mz=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 Vu(i[a],this,e));if(r&&n){var s=DR(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 dp("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 dp("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),bz=mz;function xz(t,e){t.eachSeriesByType("sankey",(function(t){var n=t.get("nodeWidth"),r=t.get("nodeGap"),i=_z(t,e);t.layoutInfo=i;var o=i.width,a=i.height,s=t.getGraph(),l=s.nodes,u=s.edges;Sz(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");wz(l,u,n,r,o,a,h,f,d)}))}function _z(t,e){return oh(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function wz(t,e,n,r,i,o,a,s,l){Oz(t,e,n,i,o,s,l),Tz(t,e,o,i,r,a,s),qz(t,s)}function Sz(t){v["each"](t,(function(t){var e=Fz(t.outEdges,zz),n=Fz(t.inEdges,zz),r=t.getValue()||0,i=Math.max(e,n,r);t.setLayout({value:i},!0)}))}function Oz(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&&kz(t,a,o,S);var O="vertical"===o?(i-n)/S:(r-n)/S;Mz(t,O,o)}function Cz(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function kz(t,e,n,r){if("right"===e){var i=[],o=t,a=0;while(o.length){for(var s=0;s0;o--)l*=.99,Pz(s,l,a),jz(s,i,n,r,a),Vz(s,l,a),jz(s,i,n,r,a)}function Iz(t,e){var n=[],r="vertical"===e?"y":"x",i=to(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 Ez(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 Pz(t,e,n){v["each"](t.slice().reverse(),(function(t){v["each"](t,(function(t){if(t.outEdges.length){var r=Fz(t.outEdges,Lz,n)/Fz(t.outEdges,zz);if(isNaN(r)){var i=t.outEdges.length;r=i?Fz(t.outEdges,Dz,n)/i:0}if("vertical"===n){var o=t.getLayout().x+(r-Bz(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(r-Bz(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function Lz(t,e){return Bz(t.node2,e)*t.getValue()}function Dz(t,e){return Bz(t.node2,e)}function Rz(t,e){return Bz(t.node1,e)*t.getValue()}function Nz(t,e){return Bz(t.node1,e)}function Bz(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function zz(t){return t.getValue()}function Fz(t,e,n){var r=0,i=t.length,o=-1;while(++oi&&(i=e)})),v["each"](n,(function(e){var n=new GL({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 Gz(t){t.registerChartView(yz),t.registerSeriesModel(bz),t.registerLayout(xz),t.registerVisual(Hz),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 Wz=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:x_(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:x_(p),dimsDef:m.slice()}];return JM(this,{coordDimensions:b,dimensionsCount:m.length+1,encodeDefaulter:v["curry"](Eh,b,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),Uz=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"])(Uz,Wz,!0);var $z=Uz,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.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=Kz(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?(cu(n),Qz(s,n,r,t)):n=Kz(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}(fy),Xz=function(){function t(){}return t}(),Zz=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 Xz},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 _=[m,x];r.push(_)}}}return{boxData:n,outliers:r}}var lF={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==_h){var n="";0,Kh(n)}var r=sF(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:r.boxData},{data:r.outliers}]}};function uF(t){t.registerSeriesModel($z),t.registerChartView(tF),t.registerVisual(eF),t.registerLayout(rF),t.registerTransform(lF)}var cF=["color","borderColor"],hF=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){ry(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&&gF(s,a))return;var l=pF(a,n,!0);ou(l,{shape:{points:a.ends}},t,n),vF(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&&gF(s,c)?r.remove(u):(u?(iu(u,{shape:{points:c.ends}},t,a),cu(u)):u=pF(c,a),vF(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(),xF(t,this.group);var e=t.get("clip",!0)?MA(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=pF(o,n);vF(a,r,n,i),a.incremental=!0,this.group.add(a),this._progressiveEls.push(a)}},e.prototype._incrementalRenderLarge=function(t,e){xF(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}(fy),fF=function(){function t(){}return t}(),dF=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 fF},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}(rs);function pF(t,e,n){var r=t.ends;return new dF({shape:{points:n?yF(r,t):r},z2:100})}function gF(t,e){for(var n=!0,r=0;r0?"borderColor":"borderColor0"])||n.get(["itemStyle",t>0?"color":"color0"]),o=n.getModel("itemStyle").getItemStyle(cF);e.useStyle(o),e.style.fill=null,e.style.stroke=i}var wF=hF,SF=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"])(SF,Wz,!0);var OF=SF;function CF(t){t&&v["isArray"](t.series)&&v["each"](t.series,(function(t){v["isObject"](t)&&"k"===t.type&&(t.type="candlestick")}))}var kF=["itemStyle","borderColor"],AF=["itemStyle","borderColor0"],MF=["itemStyle","color"],TF=["itemStyle","color0"],IF={seriesType:"candlestick",plan:Up(),performRawSeries:!0,reset:function(t,e){function n(t,e){return e.get(t>0?MF:TF)}function r(t,e){return e.get(t>0?kF:AF)}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)}}}}}},EF=IF,jF={seriesType:"candlestick",plan:Up(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),r=LF(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),x=C(m,d),_=C(b,d),w=C(v,d),S=C(y,d),O=[];k(O,_,0),k(O,x,1),O.push(M(S),M(_),M(w),M(x)),n.setItemLayout(a,{sign:PF(l,a,p,g,c),initBaseline:p>g?_[o]:x[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]=Vv(o[i]+r/2,1,!1),a[i]=Vv(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]=Vv(t[i],1),t}}function p(t,n){var r,a,l=Lw(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),x=v.get(h,a),_=v.get(f,a);isNaN(y)||isNaN(x)||isNaN(_)?(l[d++]=NaN,d+=3):(l[d++]=PF(v,a,m,b,c),p[i]=y,p[o]=x,r=e.dataToPoint(p,null,g),l[d++]=r?r[0]:NaN,l[d++]=r?r[1]:NaN,p[o]=_,r=e.dataToPoint(p,null,g),l[d++]=r?r[1]:NaN)}n.setLayout("largePoints",l)}}};function PF(t,e,n,r,i){var o;return o=n>r?-1:n0?t.get(i,e-1)<=r?1:-1:1,o}function LF(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=Zr(Object(v["retrieve2"])(t.get("barMaxWidth"),i),i),a=Zr(Object(v["retrieve2"])(t.get("barMinWidth"),1),i),s=t.get("barWidth");return null!=s?Zr(s,i):Math.max(Math.min(i/2,o),a)}var DF=jF;function RF(t){t.registerChartView(wF),t.registerSeriesModel(OF),t.registerPreprocessor(CF),t.registerVisual(EF),t.registerLayout(DF)}function NF(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 BF=function(t){function e(e,n){var r=t.call(this)||this,i=new sA(e,n),o=new Lr;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)/s*1e3),o!==this._period||a!==this._loop){r.stopAnimation();var u=void 0;u=v["isFunction"](l)?l(n):l,r.__t>0&&(u=-o*r.__t),this._animateSymbol(r,o,u,a)}this._period=o,this._loop=a}},e.prototype._animateSymbol=function(t,e,n,r){if(e>0){t.__t=0;var i=this,o=t.animate("",r).when(e,{__t:1}).delay(n).during((function(){i._updateSymbolPosition(t)}));r||o.done((function(){i.remove(t)})),o.start()}},e.prototype._getLineLength=function(t){return R(t.__p1,t.__cp1)+R(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,o=[t.x,t.y],a=o.slice(),s=ye,l=me;o[0]=s(e[0],r[0],n[0],i),o[1]=s(e[1],r[1],n[1],i);var u=l(e[0],r[0],n[0],i),c=l(e[1],r[1],n[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=c[0]-u[0],f=c[1]-u[1];t.rotation=-Math.atan2(f,h)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},e}(UF),ZF=XF,KF=function(){function t(){this.polyline=!1,this.curveness=0,this.segs=[]}return t}(),QF=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 KF},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(La(u,c,p,g,f,d,o,t,e))return a}else if(ja(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}(),tV=JF,eV={seriesType:"lines",plan:Up(),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)&&MA(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=nV.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 tV:new yR(i?r?ZF:YF:r?UF:hR),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}(fy),iV=rV,oV="undefined"===typeof Uint32Array?Array:Uint32Array,aV="undefined"===typeof Float64Array?Array:Float64Array;function sV(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 lV=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||[],sV(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(sV(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),uV=lV;function cV(t){return t instanceof Array||(t=[t,t]),t}var hV={seriesType:"lines",reset:function(t){var e=cV(t.get("symbol")),n=cV(t.get("symbolSize")),r=t.getData();function i(t,e){var n=t.getItemModel(e),r=cV(n.getShallow("symbol",!0)),i=cV(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}}},fV=hV;function dV(t){t.registerChartView(iV),t.registerSeriesModel(uV),t.registerLayout(nV),t.registerVisual(fV)}var pV=256,gV=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=ur["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 _+=4}return h.putImageData(b,0,0),c},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=ur["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}(),vV=gV;function yV(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 bV(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var xV=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()):bV(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&&(bV(i)?this.render(e,n,r):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,r,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){ry(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,e,n,r,i){var o,a,s,l,u=t.coordinateSystem;if(TA(u,"cartesian2d")){var c=u.getAxis("x"),h=u.getAxis("y");0,o=c.getBandWidth(),a=h.getBandWidth(),s=c.scale.getExtent(),l=h.scale.getExtent()}for(var f=this.group,d=t.getData(),p=t.getModel(["emphasis","itemStyle"]).getItemStyle(),g=t.getModel(["blur","itemStyle"]).getItemStyle(),v=t.getModel(["select","itemStyle"]).getItemStyle(),y=t.get(["itemStyle","borderRadius"]),m=vu(t),b=t.getModel("emphasis"),x=b.get("focus"),_=b.get("blurScope"),w=b.get("disabled"),S=TA(u,"cartesian2d")?[d.mapDimension("x"),d.mapDimension("y"),d.mapDimension("value")]:[d.mapDimension("time"),d.mapDimension("value")],O=n;Os[1]||Ml[1])continue;var T=u.dataToPoint([A,M]);C=new xs({shape:{x:Math.floor(Math.round(T[0])-o/2),y:Math.floor(Math.round(T[1])-a/2),width:Math.ceil(o),height:Math.ceil(a)},style:k})}else{if(isNaN(d.get(S[1],O)))continue;C=new xs({z2:1,shape:u.dataToRect([d.get(S[0],O)]).contentShape,style:k})}if(d.hasItemOption){var I=d.getItemModel(O),E=I.getModel("emphasis");p=E.getModel("itemStyle").getItemStyle(),g=I.getModel(["blur","itemStyle"]).getItemStyle(),v=I.getModel(["select","itemStyle"]).getItemStyle(),y=I.get(["itemStyle","borderRadius"]),x=E.get("focus"),_=E.get("blurScope"),w=E.get("disabled"),m=vu(I)}C.shape.r=y;var j=t.getRawValue(O),P="-";j&&null!=j[2]&&(P=j[2]+""),gu(C,m,{labelFetcher:t,labelDataIndex:O,defaultOpacity:k.opacity,defaultText:P}),C.ensureState("emphasis").style=p,C.ensureState("blur").style=g,C.ensureState("select").style=v,Hl(C,x,_,w),C.incremental=i,i&&(C.states.emphasis.hoverLayer=!0),f.add(C),d.setItemGraphicEl(O,C),this._progressiveEls&&this._progressiveEls.push(C)}},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 vV;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?mV(m,n.option.range):yV(m,n.getPieceList(),n.option.selected);s.update(y,p,g,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:o.color.getColorMapper()},b);var x=new hs({style:{width:p,height:g,x:c,y:h,image:s.canvas},silent:!0});this.group.add(x)},e.type="heatmap",e}(fy),_V=xV,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.getInitialData=function(t,e){return hw(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=df.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),SV=wV;function OV(t){t.registerChartView(_V),t.registerSeriesModel(SV)}var CV=["itemStyle","borderWidth"],kV=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],AV=new mg,MV=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:kV[+l],categoryDim:kV[1-+l]};return i.diff(o).add((function(t){if(i.hasValue(t)){var e=FV(i,t),n=TV(i,t,e,c),o=HV(i,c,n);i.setItemGraphicEl(t,o),r.add(o),XV(o,c,n)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var a=FV(i,t),s=TV(i,t,a,c),l=UV(i,s);n&&l!==n.__pictorialShapeStr&&(r.remove(n),i.setItemGraphicEl(t,null),n=null),n?GV(n,c,s):n=HV(i,c,s,!0),i.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,r.add(n),XV(n,c,s)}else r.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&WV(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){WV(r,zs(e).dataIndex,t,e)})):n.removeAll()},e.type="pictorialBar",e}(fy);function TV(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};IV(n,o,i,r,f),jV(t,e,i,o,a,f.boundingLength,f.pxSign,c,r,f),PV(n,f.symbolScale,u,r,f);var d=f.symbolSize,p=Am(n.get("symbolOffset"),d);return LV(n,d,i,o,a,p,s,f.valueLineWidth,f.boundingLength,f.repeatCutLength,r,f),f}function IV(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=[EV(l,s[0])-u,EV(l,s[1])-u];h[1]0?1:-1}function EV(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function jV(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]=Zr(c[f.index],d),c[h.index]=Zr(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 PV(t,e,n,r,i){var o=t.get(CV)||0;o&&(AV.attr({scaleX:e[0],scaleY:e[1],rotation:n}),AV.updateTransform(),o/=AV.getLineScale(),o*=e[r.valueDim.index]),i.valueLineWidth=o||0}function LV(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%")+"",x=!1;b.lastIndexOf("!")===b.length-1&&(x=!0,b=b.slice(0,b.length-1));var _=Zr(b,e[d.index]),w=Math.max(g+2*_,0),S=x?0:2*_,O=gi(r),C=O?r:ZV((m+S)/w),k=m-C*g;_=k/2/(x?C:Math.max(C-1,1)),w=g+2*_,S=x?0:2*_,O||"fixed"===r||(C=u?ZV((Math.abs(u)+S)/w):0),y=C*w-S,h.repeatTimes=C,h.symbolMargin=_}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 DV(t){var e=t.symbolPatternSize,n=Cm(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function RV(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($V(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 NV(t,e,n,r){var i=t.__pictorialBundle,o=t.__pictorialMainPath;o?YV(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=DV(n),i.add(o),YV(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 BV(t,e,n){var r=v["extend"]({},e.barRectShape),i=t.__pictorialBarRect;i?YV(i,null,{shape:r},e,n):(i=t.__pictorialBarRect=new xs({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,t.add(i))}function zV(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)iu(i,{shape:o},l,u);else{o[s.wh]=0,i=new xs({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 FV(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=VV,n.isAnimationEnabled=qV,n}function VV(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function qV(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function HV(t,e,n,r){var i=new Lr,o=new Lr;return i.add(o),i.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?RV(i,e,n):NV(i,e,n),BV(i,n,r),zV(i,e,n,r),i.__pictorialShapeStr=UV(t,n),i.__pictorialSymbolMeta=n,i}function GV(t,e,n){var r=n.animationModel,i=n.dataIndex,o=t.__pictorialBundle;iu(o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?RV(t,e,n,!0):NV(t,e,n,!0),BV(t,n,!0),zV(t,e,n,!0)}function WV(t,e,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var o=[];$V(r,(function(t){o.push(t)})),r.__pictorialMainPath&&o.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),v["each"](o,(function(t){su(t,{scaleX:0,scaleY:0},n,e,(function(){r.parent&&r.parent.remove(r)}))})),t.setItemGraphicEl(e,null)}function UV(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function $V(t,e,n){v["each"](t.__pictorialBundle.children(),(function(r){r!==t.__pictorialBarRect&&e.call(n,r)}))}function YV(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 XV(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");$V(t,(function(t){if(t instanceof hs){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;gu(p,vu(i),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:rA(e.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:d}),Hl(t,c,h,o.get("disabled"))}function ZV(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var KV=MV,QV=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=Uu(eM.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}(eM),JV=QV;function tq(t){t.registerChartView(KV),t.registerSeriesModel(JV),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,Object(v["curry"])(Gw,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Ww("pictorialBar"))}var eq=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 v_(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 cq(t){t.registerChartView(rq),t.registerSeriesModel(aq),t.registerLayout(sq),t.registerProcessor(qM("themeRiver"))}var hq=2,fq=4,dq=function(t){function e(e,n,r,i){var o=t.call(this)||this;o.z2=hq,o.textConfig={inside:!0},zs(o).seriesIndex=n.seriesIndex;var a=new Bs({z2:fq,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;zs(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=db(h,i));var f=XM(a.getModel("itemStyle"),u,!0);v["extend"](u,f),v["each"](Ys,(function(t){var e=o.ensureState(t),n=a.getModel([t,"itemStyle"]);e.style=n.getItemStyle();var r=XM(n,u);r&&(e.shape=r)})),t?(o.setShape(u),o.shape.r=l.r0,iu(o,{shape:{r:l.r}},n,e.dataIndex)):(iu(o,{shape:u},n),cu(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;Hl(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),pq=dq,gq="sunburstRootToNode",vq="sunburstHighlight",yq="sunburstUnhighlight";function mq(t){t.registerAction({type:gq,update:"updateView"},(function(t,e){function n(e,n){var r=RP(t,[gq],e);if(r){var i=e.getViewRoot();i&&(t.direction=BP(i,r.node)?"rollUp":"drillDown"),e.resetViewRoot(r.node)}}e.eachComponent({mainType:"series",subType:"sunburst",query:t},n)})),t.registerAction({type:vq,update:"none"},(function(t,e,n){function r(e){var n=RP(t,[vq],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:yq,update:"updateView"},(function(t,e,n){t=Object(v["extend"])({},t),n.dispatchAction(Object(v["extend"])(t,{type:"downplay"}))}))}var bq=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 v_(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 pq(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 pq(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";Qc(a,s)}}n=!0}}))}))},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:gq,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}(fy),xq=bq,_q=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};wq(n);var r=this._levelModels=v["map"](t.levels||[],(function(t){return new Vu(t,this,e)}),this),i=DP.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=zP(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(){KP(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 wq(t){var e=0;v["each"](t.children,(function(t){wq(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 Sq=_q,Oq=Math.PI/180;function Cq(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=Zr(e[0],i),l=Zr(e[1],o),u=Zr(r[0],a/2),c=Zr(r[1],a/2),h=-t.get("startAngle")*Oq,f=t.get("minAngle")*Oq,d=t.getData().tree.root,p=t.getViewRoot(),g=p.depth,y=t.get("sort");null!=y&&kq(p,y);var m=0;v["each"](p.children,(function(t){!isNaN(t.getValue())&&m++}));var b=p.getValue(),x=Math.PI/(b||m)*2,_=p.depth>0,w=p.height-(_?-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?x:i*x;o1)i=i.parentNode;var o=n.getColorFromPalette(i.name||i.dataIndex+"",e);return t.depth>1&&Object(v["isString"])(o)&&(o=Object(Me["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 Tq(t){t.registerChartView(xq),t.registerSeriesModel(Sq),t.registerLayout(Object(v["curry"])(Cq,"sunburst")),t.registerProcessor(Object(v["curry"])(qM,"sunburst")),t.registerVisual(Mq),mq(t)}var Iq={color:"fill",borderColor:"stroke"},Eq={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},jq=Gi(),Pq=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 hw(null,this)},e.prototype.getDataParams=function(e,n,r){var i=t.prototype.getDataParams.call(this,e,n);return r&&(i.info=jq(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),Lq=Pq;function Dq(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 Rq(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"](Dq,t)}}}function Nq(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 Bq(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"](Nq,t)}}}function zq(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 Fq(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"])(zq,t)}}}function Vq(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 qq(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"](Vq,t)}}}function Hq(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 Gq(t,e,n,r){return t&&(t.legacy||!1!==t.legacy&&!n&&!r&&"tspan"!==e&&("text"===e||Object(v["hasOwn"])(t,"text")))}function Wq(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 Uq(o,t),Object(v["each"])(o.rich,(function(t){Uq(t,t)})),{textConfig:r,textContent:i}}function Uq(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 $q(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";Yq(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){Yq(t,t)})),r}function Yq(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 Xq={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Zq=Object(v["keys"])(Xq),Kq=(Object(v["reduce"])($n,(function(t,e){return t[e]=1,t}),{}),$n.join(", "),["","style","shape","extra"]),Qq=Gi();function Jq(t,e,n,r,i){var o=t+"Animation",a=nu(t,r,i)||{},s=Qq(e).userDuring;return a.duration>0&&(a.during=s?Object(v["bind"])(uH,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=t),Object(v["extend"])(a,n[o]),a}function tH(t,e,n,r){r=r||{};var i=r.dataIndex,o=r.isInit,a=r.clearStyle,s=n.isAnimationEnabled(),l=Qq(t),u=e.style;l.userDuring=e.during;var c={},h={};if(dH(t,e,h),hH("shape",e,h),hH("extra",e,h),!o&&s&&(fH(t,e,c),cH("shape",t,e,c),cH("extra",t,e,c),pH(t,e,u,c)),h.style=u,iH(t,h,a),aH(t,e),s)if(o){var f={};Object(v["each"])(Kq,(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=Jq("enter",t,e,n,i);d.duration>0&&t.animateFrom(f,d)}else oH(t,e,i||0,n,c);eH(t,e),u?t.dirty():t.markRedraw()}function eH(t,e){for(var n=Qq(t).leaveToProps,r=0;r0&&t.animateFrom(i,o)}}function aH(t,e){Object(v["hasOwn"])(e,"silent")&&(t.silent=e.silent),Object(v["hasOwn"])(e,"ignore")&&(t.ignore=e.ignore),t instanceof Zo&&Object(v["hasOwn"])(e,"invisible")&&(t.invisible=e.invisible),t instanceof rs&&Object(v["hasOwn"])(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}var sH={},lH={setTransform:function(t,e){return sH.el[t]=e,this},getTransform:function(t){return sH.el[t]},setShape:function(t,e){var n=sH.el,r=n.shape||(n.shape={});return r[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=sH.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=sH.el,r=n.style;return r&&(r[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=sH.el.style;if(e)return e[t]},setExtra:function(t,e){var n=sH.el.extra||(sH.el.extra={});return n[t]=e,this},getExtra:function(t){var e=sH.el.extra;if(e)return e[t]}};function uH(){var t=this,e=t.el;if(e){var n=Qq(e).userDuring,r=t.userDuring;n===r?(sH.el=e,r(lH)):t.el=t.userDuring=null}}function cH(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]={}),rH(l))Object(v["extend"])(o,a);else for(var u=wi(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,_H).getItemStyle();null!=o&&(l.fill=o),null!=a&&(l.opacity=a);var u={inheritColor:Object(v["isString"])(o)?o:"#000"},c=x(r,_H),h=yu(c,null,u,!1,!0);h.text=c.getShallow("show")?Object(v["retrieve2"])(t.getFormattedLabel(r,_H),rA(e,r)):null;var f=mu(c,u,!1);return k(n,l),l=$q(l,h,f),n&&C(l,n),l.legacy=!0,l}function O(n,r){null==r&&(r=s);var i=b(r,xH).getItemStyle(),o=x(r,xH),a=yu(o,null,null,!0,!0);a.text=o.getShallow("show")?Object(v["retrieve3"])(t.getFormattedLabel(r,xH),t.getFormattedLabel(r,_H),rA(e,r)):null;var l=mu(o,null,!0);return k(n,i),i=$q(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"])(Iq,t)){var r=e.getItemVisual(n,"style");return r?r[Iq[t]]:null}if(Object(v["hasOwn"])(Eq,t))return e.getItemVisual(n,t)}function M(t){if("cartesian2d"===o.type){var e=o.getBaseAxis();return Bw(Object(v["defaults"])({axis:e},t))}}function T(){return n.getCurrentSeriesIndices()}function I(t){return Cu(t,n)}}function qH(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 HH(t,e,n,r,i,o,a){if(r){var s=GH(t,e,n,r,i,o);return s&&a.setItemGraphicEl(n,s),s&&Hl(s,r.focus,r.blurScope,r.emphasisDisabled),s}o.remove(e)}function GH(t,e,n,r,i,o){var a=-1,s=e;e&&WH(e,r,i)&&(a=Object(v["indexOf"])(o.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=RH(r),s&&PH(s,u)),!1===r.morph?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),TH.normal.cfg=TH.normal.conOpt=TH.emphasis.cfg=TH.emphasis.conOpt=TH.blur.cfg=TH.blur.conOpt=TH.select.cfg=TH.select.conOpt=null,TH.isLegacy=!1,$H(u,n,r,i,l,TH),UH(u,n,r,i,l),NH(t,u,n,r,TH,i,l),Object(v["hasOwn"])(r,"info")&&(jq(u).info=r.info);for(var c=0;c=0?o.replaceAt(u,a):o.add(u),u}function WH(t,e,n){var r=jq(t),i=e.type,o=e.shape,a=e.style;return n.isUniversalTransitionEnabled()||null!=i&&i!==r.customGraphicType||"path"===i&&rG(o)&&nG(o)!==r.customPathData||"image"===i&&Object(v["hasOwn"])(a,"image")&&a.image!==r.customImagePath}function UH(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&&WH(a,o,r)&&(a=null),a||(a=RH(o),t.setClipPath(a)),NH(null,a,e,o,null,r,i)}}function $H(t,e,n,r,i,o){if(!t.isGroup){YH(n,null,o),YH(n,xH,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=RH(a),t.setTextContent(c)),NH(null,c,e,a,null,r,i);for(var h=a&&a.style,f=0;f=c;h--){var f=e.childAt(h);nH(f,jq(e).option,i)}}}function QH(t){new v_(t.oldChildren,t.newChildren,JH,JH,t).add(tG).update(tG).remove(eG).execute()}function JH(t,e){var n=t&&t.name;return null!=n?n:MH+e}function tG(t,e){var n=this.context,r=null!=t?n.newChildren[t]:null,i=null!=e?n.oldChildren[e]:null;GH(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function eG(t){var e=this.context,n=e.oldChildren[t];nH(n,jq(n).option,e.seriesModel)}function nG(t){return t&&(t.pathData||t.d)}function rG(t){return t&&(Object(v["hasOwn"])(t,"pathData")||Object(v["hasOwn"])(t,"d"))}function iG(t){t.registerChartView(DH),t.registerSeriesModel(Lq)}var oG=Gi(),aG=v["clone"],sG=v["bind"],lG=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"](uG,e,c);this.updatePointerEl(a,l,h),this.updateLabelEl(a,l,h,e)}else a=this._group=new Lr,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);dG(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=fI(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=oG(t).pointerEl=new a[i.type](aG(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,r){if(e.label){var i=oG(t).labelEl=new Bs(aG(e.label));t.add(i),hG(i,r)}},t.prototype.updatePointerEl=function(t,e,n){var r=oG(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=oG(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),hG(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){gt(t.event)},onmousedown:sG(this._onHandleDragMove,this,0,0),drift:sG(this._onHandleDragMove,this),ondragend:sG(this._onHandleDragEnd,this)}),r.add(i)),dG(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,yy(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){uG(this._axisPointerModel,!e&&this._moveAnimation,this._handle,fG(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(fG(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(fG(r)),oG(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),my(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 uG(t,e,n,r){cG(oG(n).lastProp,r)||(oG(n).lastProp=r,e?iu(n,r,t):(n.stopAnimation(),n.attr(r)))}function cG(t,e){if(v["isObject"](t)&&v["isObject"](e)){var n=!0;return v["each"](e,(function(e,r){n=n&&cG(t[r],e)})),!!n}return t===e}function hG(t,e){t[e.get(["label","show"])?"show":"hide"]()}function fG(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function dG(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 pG=lG;function gG(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 vG(t,e,n,r,i){var o=n.get("value"),a=mG(o,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=zc(s.get("padding")||0),u=s.getFont(),c=dr(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),yG(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:yu(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:v}),z2:10}}function yG(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 mG(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:TS(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 bG(t,e,n){var r=In();return Dn(r,r,n.rotation),Ln(r,r,n.position),Hv([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function xG(t,e,n,r,i,o){var a=iI.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),vG(e,r,i,o,{position:bG(r.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function _G(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function wG(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function SG(t,e,n,r,i,o){return{cx:t,cy:e,r0:n,r:r,startAngle:i,endAngle:o,clockwise:!0}}var OG=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=CG(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=gG(r),h=kG[s](o,u,l);h.style=c,t.graphicKey=h.type,t.pointer=h}var f=DT(a.model,n);xG(e,t,f,n,r,i)},e.prototype.getHandleTransform=function(t,e,n){var r=DT(e.axis.grid.model,e,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=bG(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=CG(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}(pG);function CG(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var kG={line:function(t,e,n){var r=_G([e,n[0]],[e,n[1]],AG(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:wG([e-r/2,n[0]],[r,i],AG(t))}}};function AG(t){return"x"===t.dim?0:1}var MG=OG,TG=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}(gh),IG=TG,EG=Gi(),jG=v["each"];function PG(t,e,n){if(!g["a"].node){var r=e.getZr();EG(r).records||(EG(r).records={}),LG(r,e);var i=EG(r).records[t]||(EG(r).records[t]={});i.handler=n}}function LG(t,e){function n(n,r){t.on(n,(function(n){var i=BG(e);jG(EG(t).records,(function(t){t&&r(t,n,i.dispatchAction)})),DG(i.pendings,e)}))}EG(t).initialized||(EG(t).initialized=!0,n("click",v["curry"](NG,"click")),n("mousemove",v["curry"](NG,"mousemove")),n("globalout",RG))}function DG(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 RG(t,e,n){t.handler("leave",null,n)}function NG(t,e,n,r){e.handler(t,n,r)}function BG(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 zG(t,e){if(!g["a"].node){var n=e.getZr(),r=(EG(n).records||{})[t];r&&(EG(n).records[t]=null)}}var FG=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";PG("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){zG("axisPointer",e)},e.prototype.dispose=function(t,e){zG("axisPointer",e)},e.type="axisPointer",e}(Wp),VG=FG;function qG(t,e){var n,r=[],i=t.seriesIndex;if(null==i||!(n=e.getSeriesByIndex(i)))return{point:[]};var o=n.getData(),a=Hi(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 HG=Gi();function GG(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){tW(i)&&(i=qG({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=tW(i),u=o.axesInfo,c=s.axesInfo,h="leave"===r||tW(i),f={},d={},p={list:[],map:{}},g={showPointer:Object(v["curry"])($G,d),showTooltip:Object(v["curry"])(YG,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=QG(u,t);if(!h&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=r.pointToData(i)),null!=a&&WG(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,JG(e),JG(t)))),y[t.key]=o}}))})),Object(v["each"])(y,(function(t,e){WG(c[e],t,g,!0,f)})),XG(d,c,f),ZG(p,i,t,a),KG(c,a,n),f}}function WG(t,e,n,r,i){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=UG(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 UG(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 $G(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function YG(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=gI(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 XG(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 ZG(t,e,n,r){if(!tW(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 KG(t,e,n){var r=n.getZr(),i="axisPointerLastHighlights",o=HG(r)[i]||{},a=HG(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 QG(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 JG(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 tW(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function eW(t){mI.registerAxisPointerClass("CartesianAxisPointer",MG),t.registerComponentModel(IG),t.registerComponentView(VG),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=oI(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},GG)}function nW(t){f_(II),f_(eW)}var rW=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=gG(r),f=oW[c](o,a,u,l);f.style=h,t.graphicKey=f.type,t.pointer=f}var d=r.get(["label","margin"]),p=iW(e,n,r,a,d);vG(t,n,r,i,p)},e}(pG);function iW(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=In();Dn(f,f,s),Ln(f,f,[r.cx,r.cy]),l=Hv([a,-i],f);var d=e.getModel("axisLabel").get("rotate")||0,p=iI.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 oW={line:function(t,e,n,r){return"angle"===t.dim?{type:"Line",shape:_G(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:SG(e.cx,e.cy,r[0],r[1],(-n-i/2)*o,(i/2-n)*o)}:{type:"Sector",shape:SG(e.cx,e.cy,n-i/2,n+i/2,0,2*Math.PI)}}},aW=rW,sW=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}(gh),lW=sW,uW=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Yi).models[0]},e.type="polarAxis",e}(gh);v["mixin"](uW,RS);var 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.type="angleAxis",e}(uW),hW=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}(uW),fW=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}(OO);fW.prototype.dataToRadius=OO.prototype.dataToCoord,fW.prototype.radiusToData=OO.prototype.coordToData;var dW=fW,pW=Gi(),gW=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=dr(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=pW(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}(OO);gW.prototype.dataToAngle=OO.prototype.dataToCoord,gW.prototype.angleToData=OO.prototype.coordToData;var vW=gW,yW=["radius","angle"],mW=function(){function t(t){this.dimensions=yW,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new dW,this._angleAxis=new vW,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=bW(e);return r===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var r=bW(e);return r===this?this.pointToData(n):null},t}();function bW(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var xW=mW;function _W(t,e,n){var r=e.get("center"),i=n.getWidth(),o=n.getHeight();t.cx=Zr(r[0],i),t.cy=Zr(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=[Zr(l[0],s),Zr(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}function wW(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"](LS(e,"radius"),(function(t){i.scale.unionExtentFromData(e,t)})),v["each"](LS(e,"angle"),(function(t){r.scale.unionExtentFromData(e,t)}))}})),CS(r.scale,r.model),CS(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 SW(t){return"angleAxis"===t.mainType}function OW(t,e){if(t.type=e.get("type"),t.scale=kS(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),SW(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 CW={dimensions:yW,create:function(t,e){var n=[];return t.eachComponent("polar",(function(t,r){var i=new xW(r+"");i.update=wW;var o=i.getRadiusAxis(),a=i.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");OW(o,s),OW(a,l),_W(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",Yi).models[0];0,t.coordinateSystem=e.coordinateSystem}})),n}},kW=CW,AW=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function MW(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 TW(t){var e=t.getRadiusAxis();return e.inverse?0:1}function IW(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 EW=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}));IW(s),IW(o),v["each"](AW,(function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||jW[e](this.group,t,r,o,a,i,s)}),this)}},e.type="angleAxis",e}(mI),jW={axisLine:function(t,e,n,r,i,o){var a,s=e.getModel(["axisLine","lineStyle"]),l=TW(n),u=l?0:1;a=0===o[u]?new mg({shape:{cx:n.cx,cy:n.cy,r:o[l]},style:s.getLineStyle(),z2:1,silent:!0}):new qg({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[TW(n)],u=v["map"](r,(function(t){return new tv({shape:MW(n,[l,l+s],t.coord)})}));t.add(Nv(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[TW(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 Vu(b.textStyle,l,l.ecModel))}var x=new Bs({silent:iI.isLabelSilent(e),style:yu(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(x),c){var _=iI.makeAxisEventDataBase(e);_.targetType="axisLabel",_.value=r.rawLabel,zs(x).eventData=_}}),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=x;m&&(r[s][O]||(r[s][O]={p:x,n:x}),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)-x,j=o.dataToCoord(O);Math.abs(E)=I})}}}))}function HW(t){var e={};v["each"](t,(function(t,n){var r=t.getData(),i=t.coordinateSystem,o=i.getBaseAxis(),a=VW(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=FW(t);c[h]||u.autoWidthCount++,c[h]=c[h]||{width:0,maxWidth:0};var f=Zr(t.get("barWidth"),l),d=Zr(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=Zr(t.categoryGap,i),a=Zr(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=sU(e);return r===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var r=sU(e);return r===this?this.pointToData(n):null},t}();function sU(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var lU=aU;function uU(t,e){var n=[];return t.eachComponent("singleAxis",(function(r,i){var o=new lU(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",Yi).models[0];t.coordinateSystem=e&&e.coordinateSystem}})),n}var cU={create:uU,dimensions:oU},hU=cU,fU=["x","y"],dU=["width","height"],pU=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=yU(a,1-vU(o)),l=a.dataToPoint(e)[0],u=r.get("type");if(u&&"none"!==u){var c=gG(r),h=gU[u](o,l,s);h.style=c,t.graphicKey=h.type,t.pointer=h}var f=XW(n);xG(e,t,f,n,r,i)},e.prototype.getHandleTransform=function(t,e,n){var r=XW(e,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=bG(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=vU(i),s=yU(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=yU(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}(pG),gU={line:function(t,e,n){var r=_G([e,n[0]],[e,n[1]],vU(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:wG([e-r/2,n[0]],[r,i],vU(t))}}};function vU(t){return t.isHorizontal()?0:1}function yU(t,e){var n=t.getRect();return[n[fU[e]],n[fU[e]]+n[dU[e]]]}var mU=pU,bU=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}(Wp);function xU(t){f_(eW),mI.registerAxisPointerClass("SingleAxisPointer",mU),t.registerComponentView(bU),t.registerComponentView(tU),t.registerComponentModel(nU),CT(t,"single",nU,nU.defaultOption),t.registerCoordinateSystem("single",hU)}var _U=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=ch(e);t.prototype.init.apply(this,arguments),wU(e,i)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),wU(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}(gh);function wU(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 sh(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]}));uh(t,e,{type:"box",ignoreSize:i})}var SU=_U,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.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 xs({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?$c(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 Bs({z2:30,style:yu(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=rc(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/kU)-Math.floor(n[0].time/kU)+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 MU(t){var e=t.calendarModel,n=t.seriesModel,r=e?e.coordinateSystem:n?n.coordinateSystem:null;return r}var TU=AU;function IU(t){t.registerComponentModel(SU),t.registerComponentView(CU),t.registerCoordinateSystem("calendar",TU)}function EU(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 jU(t,e){var n;return v["each"](e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}function PU(t,e,n){var r=v["extend"]({},n),i=t[e],o=n.$action||"merge";"merge"===o?i?(v["merge"](i,r,!0),uh(i,r,{ignoreSize:!0}),hh(n,i),RU(n,i),RU(n,i,"shape"),RU(n,i,"style"),RU(n,i,"extra"),n.clipPath=i.clipPath):t[e]=r:"replace"===o?t[e]=r:"remove"===o&&i&&(t[e]=null)}var LU=["transition","enterFrom","leaveTo"],DU=LU.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function RU(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var r=n?LU:DU,i=0;i=0;l--){u=n[l],c=Ri(u.id,null),h=null!=c?i.get(c):null;if(h){f=h.parent,g=FU(f);var y=f===r?{width:o,height:a}:{width:g.width,height:g.height},m={},b=ah(h,u,y,null,{hv:u.hv,boundingMode:u.bounding},m);if(!FU(h).isNew&&b){for(var x=u.transition,_={},w=0;w=0)?_[S]=O:h[S]=O}iu(h,_,t,0)}else h.attr(m)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each((function(n){GU(n,FU(n).option,e,t._lastGraphicModel)})),this._elMap=v["createHashMap"]()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Wp);function qU(t){var e=v["hasOwn"](zU,t)?zU[t]:Pv(t);var n=new e({});return FU(n).type=t,n}function HU(t,e,n,r){var i=qU(n);return e.add(i),r.set(t,i),FU(i).id=t,FU(i).isNew=!0,i}function GU(t,e,n,r){var i=t&&t.parent;i&&("group"===t.type&&t.traverse((function(t){GU(t,e,n,r)})),nH(t,e,r),n.removeKey(FU(t).id))}function WU(t,e,n,r){if(!t.isGroup){var i=t;i.cursor=v["retrieve2"](e.cursor,Zo.prototype.cursor),i.z=v["retrieve2"](e.z,n||0),i.zlevel=v["retrieve2"](e.zlevel,r||0);var o=e.z2;null!=o&&(i.z2=o||0)}v["each"](v["keys"](e),(function(n){var r=e[n];0===n.indexOf("on")&&v["isFunction"](r)&&(t[n]=r)})),t.draggable=e.draggable,null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}function UU(t){return t=v["extend"]({},t),v["each"](["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(th),(function(e){delete t[e]})),t}function $U(t,e,n){var r=zs(t).eventData;t.silent||t.ignore||r||(r=zs(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),r&&(r.info=n.info)}function YU(t){t.registerComponentModel(BU),t.registerComponentView(VU),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 XU=["x","y","radius","angle","single"],ZU=["cartesian2d","polar","singleAxis"];function KU(t){var e=t.get("coordinateSystem");return Object(v["indexOf"])(ZU,e)>=0}function QU(t){return t+"Axis"}function JU(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 t$(t){var e=t.ecModel,n={infoList:[],infoMap:Object(v["createHashMap"])()};return t.eachTargetAxis((function(t,r){var i=e.getComponent(QU(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 e$=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}(),n$=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=r$(t);this.settledOption=r,this.mergeDefaultAndTheme(t,n),this._doInit(r)},e.prototype.mergeOption=function(t){var e=r$(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"])(XU,(function(n){var r=this.getReferringComponents(QU(n),Xi);if(r.specified){e=!0;var i=new e$;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 e$;if(o.add(i.componentIndex),t.set(n,o),r=!1,"x"===n||"y"===n){var a=i.getReferringComponents("grid",Yi).models[0];a&&Object(v["each"])(e,(function(t){i.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",Yi).models[0]&&o.add(t.componentIndex)}))}}}r&&Object(v["each"])(XU,(function(e){if(r){var i=n.findComponents({mainType:QU(e),filter:function(t){return"category"===t.get("type",!0)}});if(i[0]){var o=new e$;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(QU(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(QU(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 h$(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)}}));h$(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;h$(["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=Xr(n[0]+o,n,[0,100],!0):null!=i&&(o=Xr(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=ei(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 p$(t,e,n){var r=[1/0,-1/0];h$(n,(function(t){DS(r,t.getData(),e)}));var i=t.getAxisModel(),o=_S(i.axis.scale,i,r).calculate();return[o.min,o.max]}var g$=d$,v$={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(r,i){var o=t.getComponent(QU(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 g$(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]})}}))}},y$=v$;function m$(t){t.registerAction("dataZoom",(function(t,e){var n=JU(e,t);Object(v["each"])(n,(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))}var b$=!1;function x$(t){b$||(b$=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,y$),m$(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function _$(t){t.registerComponentModel(a$),t.registerComponentView(c$),x$(t)}var w$=function(){function t(){}return t}(),S$={};function O$(t,e){S$[t]=e}function C$(t){return S$[t]}var k$=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=C$(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}(gh),A$=k$;function M$(t,e,n){var r=e.getBoxLayoutParams(),i=e.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=oh(r,o,i);rh(e.get("orient"),t,e.get("itemGap"),a.width,a.height),ah(t,r,o,i)}function T$(t,e){var n=zc(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),t=new xs({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 I$=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=t.get("feature")||{},s=this._features||(this._features={}),l=[];v["each"](a,(function(t,e){l.push(e)})),new v_(this._featureNames||[],l).add(u).update(u).remove(v["curry"](u,null)).execute(),this._featureNames=l,M$(i,t,n),i.add(T$(i.getBoundingRect(),t)),i.eachChild((function(t){var e=t.__title,r=t.ensureState("emphasis"),a=r.textConfig||(r.textConfig={}),s=t.getTextContent(),l=s&&s.states.emphasis;if(l&&!v["isFunction"](l)&&e){var u=l.style||(l.style={}),c=dr(e,Bs.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+8;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 u(i,o){var u,h=l[i],f=l[o],d=a[h],p=new Vu(d,t,t.ecModel);if(r&&null!=r.newTitle&&r.featureName===h&&(d.title=r.newTitle),h&&!f){if(E$(h))u={onclick:p.option.onclick,featureName:h};else{var g=C$(h);if(!g)return;u=new g}s[h]=u}else if(u=s[f],!u)return;u.uid=Hu("toolbox-feature"),u.model=p,u.ecModel=e,u.api=n;var v=u instanceof w$;h||!f?!p.get("show")||v&&u.unusable?v&&u.remove&&u.remove(e,n):(c(p,u,h),p.setIconStatus=function(t,e){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,r[t]&&("emphasis"===e?Ol:Cl)(r[t])},u instanceof w$&&u.render&&u.render(p,e,n,r)):v&&u.dispose&&u.dispose(e,n)}function c(r,a,s){var l,u,c=r.getModel("iconStyle"),h=r.getModel(["emphasis","iconStyle"]),f=a instanceof w$&&a.getIcons?a.getIcons():r.get("icon"),d=r.get("title")||{};v["isString"](f)?(l={},l[s]=f):l=f,v["isString"](d)?(u={},u[s]=d):u=d;var p=r.iconPaths={};v["each"](l,(function(s,l){var f=Zv(s,{},{x:-o/2,y:-o/2,width:o,height:o});f.setStyle(c.getItemStyle());var d=f.ensureState("emphasis");d.style=h.getItemStyle();var g=new Bs({style:{text:u[l],align:h.get("textAlign"),borderRadius:h.get("textBorderRadius"),padding:h.get("textPadding"),fill:null},ignore:!0});f.setTextContent(g),ey({el:f,componentModel:t,itemName:l,formatterParamsExtra:{title:u[l]}}),f.__title=u[l],f.on("mouseover",(function(){var e=h.getItemStyle(),n="vertical"===t.get("orient")?null==t.get("right")?"right":"left":null==t.get("bottom")?"bottom":"top";g.setStyle({fill:h.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:h.get("textBackgroundColor")}),f.setTextConfig({position:h.get("textPosition")||n}),g.ignore=!t.get("showTitle"),Ol(this)})).on("mouseout",(function(){"emphasis"!==r.get(["iconStatus",l])&&Cl(this),g.hide()})),("emphasis"===r.get(["iconStatus",l])?Ol:Cl)(f),i.add(f),f.on("click",v["bind"](a.onclick,a,e,n,l)),p[l]=f}))}},e.prototype.updateView=function(t,e,n,r){v["each"](this._features,(function(t){t instanceof w$&&t.updateView&&t.updateView(t.model,e,n,r)}))},e.prototype.remove=function(t,e){v["each"](this._features,(function(n){n instanceof w$&&n.remove&&n.remove(t,e)})),this.group.removeAll()},e.prototype.dispose=function(t,e){v["each"](this._features,(function(n){n instanceof w$&&n.dispose&&n.dispose(t,e)}))},e.type="toolbox",e}(Wp);function E$(t){return 0===t.indexOf("my")}var j$=I$,P$=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 x=b.contentWindow,_=x.document;_.open("image/svg+xml","replace"),_.write(f),_.close(),x.focus(),_.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}(w$),L$=P$,D$="__ec_magicType_stack__",R$=[["line","bar"],["stack"]],N$=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(B$[n]){var o,a={series:[]},s=function(t){var e=t.subType,i=t.id,o=B$[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,Yi).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"](R$,(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}(w$),B$={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")===D$;if("line"===t||"bar"===t)return r.setIconStatus("stack",i?"normal":"emphasis"),v["merge"]({id:e,stack:i?"":D$},r.get(["option","stack"])||{},!0)}};Kx({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)}));var z$=N$,F$=new Array(60).join("-"),V$="\t";function q$(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 H$(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(V$)],u=0;u=0)return!0}var Y$=new RegExp("["+V$+"]+","g");function X$(t){for(var e=t.split(/\n+/g),n=U$(e.shift()).split(Y$),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 iY(t){var e=sY(t),n=e[e.length-1];e.length>1&&e.pop();var r={};return eY(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 oY(t){nY(t).snapshots=null}function aY(t){return sY(t).length}function sY(t){var e=nY(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var lY=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.onclick=function(t,e){oY(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}(w$);Kx({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));var uY=lY,cY=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],hY=function(){function t(t,e,n){var r=this;this._targetInfoList=[];var i=dY(e,t);Object(v["each"])(pY,(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=yY[t.brushType](0,n,e);t.__rangeOffset={offset:bY[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=yY[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=yY[t.brushType](0,n.coordSys,t.coordRange),i=t.__rangeOffset;t.range=i?bY[t.brushType](r.values,i.offset,_Y(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:QB(r),isTargetByCursor:tz(r,t,n.coordSysModel),getLinearBrushOtherExtent:JB(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=dY(e,t),i=0;it[1]&&t.reverse(),t}function dY(t,e){return Ui(t,e,{includeMainTypes:cY})}var pY={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:vY.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:vY.geo})}))}},gY=[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}],vY={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(qv(t)),e}},yY={lineX:Object(v["curry"])(mY,0),lineY:Object(v["curry"])(mY,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=[fY([i[0],o[0]]),fY([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 mY(t,e,n,r){var i=n.getAxis(["x","y"][t]),o=fY(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 bY={lineX:Object(v["curry"])(xY,0),lineY:Object(v["curry"])(xY,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 xY(t,e,n,r){return[e[0]-r[t]*n[0],e[1]-r[t]*n[1]]}function _Y(t,e){var n=wY(t),r=wY(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 wY(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var SY=hY,OY=v["each"],CY=zi("toolbox-dataZoom_"),kY=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 KB(n.getZr()),this._brushController.on("brush",v["bind"](this._onBrush,this)).mount()),IY(t,e,this,r,n),TY(t,e)},e.prototype.onclick=function(t,e,n){AY[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 SY(MY(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)}})),rY(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=RN(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=[];OY(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}(w$),AY={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(iY(this.ecModel))}};function MY(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 TY(t,e){t.setIconStatus("back",aY(e)>1?"emphasis":"normal")}function IY(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 SY(MY(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()})}Bh("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=MY(r),a=Ui(t,o);return OY(a.xAxisModels,(function(t){return s(t,"xAxis","xAxisIndex")})),OY(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:CY+e+o};a[n]=o,i.push(a)}}));var EY=kY;function jY(t){t.registerComponentModel(A$),t.registerComponentView(j$),O$("saveAsImage",L$),O$("magicType",z$),O$("dataView",tY),O$("dataZoom",EY),O$("restore",uY),f_(_$)}var PY=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}(gh),LY=PY;function DY(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function RY(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 UY(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?","+qY+r:",left"+r+",top"+r),VY+":"+i}function $Y(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;"+qY+":"+a+";":[["top",0],["left",0],[NY,a]]}function YY(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 XY(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=Ap(t,"html"),f=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+f),e&&i&&r.push(UY(i,n)),o&&r.push("background-color:"+o),Object(v["each"])(["width","color","radius"],(function(e){var n="border-"+e,i=Bc(n),o=t.get(i);null!=o&&r.push(n+":"+o+("color"===e?"":"px"))})),r.push(YY(c)),null!=h&&r.push("padding:"+zc(h).join("px ")+"px"),r.join(";")+";"}function ZY(t,e,n,r,i){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&tt(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 KY=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;ZY(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();ht(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=FY(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=HY+XY(t,!this._firstShow,this._longHide)+$Y(i[0],i[1],!0)+"border-color:"+Kc(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")&&!DY(n)&&(a=WY(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;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,r){if(r.from!==this.uid&&!g["a"].node&&n.getDom()){var i=sX(r,n);this._ticket="";var o=r.dataByCoordSys,a=fX(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=iX;l.x=r.x,l.y=r.y,l.update(),zs(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=qG(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(sX(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=aX([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,hm(n,(function(t){return null!=zs(t).dataIndex?(o=t,!0):null!=zs(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=aX([e.tooltipOption],r),a=this._renderMode,s=[],l=dp("section",{blocks:[],noHeader:!0}),u=[],c=new Mp;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=mG(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),h=dp("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=TS(e.axis,{value:i}),p.axisValueLabel=o,p.marker=c.makeTooltipMarker("item",Kc(p.color),a);var g=Sd(f.formatTooltip(d,!0,null)),y=g.frag;if(y){var m=aX([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=bp(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=zs(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=aX([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 Mp;g.marker=y.makeTooltipMarker("item",Kc(g.color),h);var m=Sd(s.formatTooltip(l,!1,u)),b=d.get("order"),x=d.get("valueFormatter"),_=m.frag,w=_?bp(x?Object(v["extend"])({valueFormatter: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=zs(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=aX(s,this._tooltipModel,u?{position:u}:null),h=c.get("content"),f=Math.random()+"",d=new Mp;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=bc(g.axisValue,h,p)),h=Uc(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=Zr(e[0],s),r=Zr(e[1],l);else if(Object(v["isObject"])(e)){var d=e;d.width=u[0],d.height=u[1];var p=oh(d,{width:s,height:l});n=p.x,r=p.y,c=null,h=null}else if(Object(v["isString"])(e)&&a){var g=cX(e,f,u,t.get("borderWidth"));n=g[0],r=g[1]}else{g=lX(n,r,i,s,l,c?null:20,h?null:20);n=g[0],r=g[1]}if(c&&(n-=hX(c)?u[0]/2:"right"===c?u[0]:0),h&&(r-=hX(h)?u[1]/2:"bottom"===h?u[1]:0),DY(t)){g=uX(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()&&(my(this,"_updatePosition"),this._tooltipContent.dispose(),zG("itemTooltip",e))},e.type="tooltip",e}(Wp);function aX(t,e,n){var r,i=e.ecModel;n?(r=new Vu(n,i,i),r=new Vu(e.option,r,i)):r=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof Vu&&(a=a.get("tooltip",!0)),Object(v["isString"])(a)&&(a={formatter:a}),a&&(r=new Vu(a,r,i)))}return r}function sX(t,e){return t.dispatchAction||Object(v["bind"])(e.dispatchAction,e)}function lX(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 uX(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 cX(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 hX(t){return"center"===t||"middle"===t}function fX(t,e,n){var r=$i(t).queryOptionMap,i=r.keys()[0];if(i&&"series"!==i){var o=Zi(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=zs(e).tooltipConfig;if(n&&n.name===t.name)return s=e,!0})),s?{componentMainType:i,componentIndex:a.componentIndex,el:s}:void 0}}}var dX=oX;function pX(t){f_(eW),t.registerComponentModel(LY),t.registerComponentView(dX),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},v["noop"]),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},v["noop"])}var gX=["rect","polygon","keep","clear"];function vX(t,e){var n=wi(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),yX(s),e&&!s.length&&s.push.apply(s,gX)}}function yX(t){var e={};v["each"](t,(function(t){e[t]=1})),t.length=0,v["each"](e,(function(e,n){t.push(n)}))}var mX=v["each"];function bX(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function xX(t,e,n){var r={};return mX(e,(function(e){var o=r[e]=i();mX(t[e],(function(t,r){if(GL.isValidType(r)){var i={type:r,visual:t};n&&n(i,e),o[r]=new GL(i),"opacity"===r&&(i=v["clone"](i),i.type="colorAlpha",o.__hidden.__alphaForOpacity=new GL(i))}}))})),r;function i(){var t=function(){};t.prototype.__hidden=t.prototype;var e=new t;return e}}function _X(t,e,n){var r;v["each"](n,(function(t){e.hasOwnProperty(t)&&bX(e[t])&&(r=!0)})),r&&v["each"](n,(function(n){e.hasOwnProperty(n)&&bX(e[n])?t[n]=v["clone"](e[n]):delete t[n]}))}function wX(t,e,n,r,i,o){var a,s={};function l(t){return om(n,a,t)}function u(t,e){sm(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&&BX(e)}};function BX(t){return new sr(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var zX=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 KB(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){EX(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}(Wp),FX=zX,VX="#ddd",qX=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&&_X(n,t,["inBrush","outOfBrush"]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:VX},r.hasOwnProperty("liftZ")||(r.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=v["map"](t,(function(t){return HX(this.option,t)}),this))},e.prototype.setBrushOption=function(t){this.brushOption=HX(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}(gh);function HX(t,e){return v["merge"]({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new Vu(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var GX=qX,WX=["rect","polygon","lineX","lineY","keep","clear"],UX=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:WX.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}(w$),$X=UX;function YX(t){t.registerComponentView(FX),t.registerComponentModel(GX),t.registerPreprocessor(vX),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,jX),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"]),O$("brush",$X)}var XX=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}(gh),ZX=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 Bs({style:yu(i,{text:t.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=t.get("subtext"),h=new Bs({style:yu(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(){Qc(f,"_"+t.get("target"))})),d&&h.on("click",(function(){Qc(d,"_"+t.get("subtarget"))})),zs(l).eventData=zs(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=oh(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 x=m.margin,_=t.getItemStyle(["color","opacity"]);_.fill=t.get("backgroundColor");var w=new xs({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:t.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});r.add(w)}},e.type="title",e}(Wp);function KX(t){t.registerComponentModel(XX),t.registerComponentView(ZX)}var QX=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=Ri(Ci(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 U_([{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}(gh),JX=QX,tZ=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=Uu(JX.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}(JX);Object(v["mixin"])(tZ,wd.prototype);var eZ=tZ,nZ=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}(Wp),rZ=nZ,iZ=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}(OO),oZ=iZ,aZ=Math.PI,sZ=Gi(),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.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 dp("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=cZ(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:aZ/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*aZ/180;var x=d.get("position",!0),_=p&&d.get("showPlayBtn",!0),w=p&&d.get("showPrevBtn",!0),S=p&&d.get("showNextBtn",!0),O=0,C=f;"left"===x||"bottom"===x?(_&&(a=[0,0],O+=m),w&&(s=[O,0],O+=m),S&&(l=[C-g,0],C-=m)):(_&&(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=In(),a=i.x,s=i.y+i.height;Ln(o,o,[-a,-s]),Dn(o,o,-aZ/2),Ln(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=uZ(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 oZ("value",i,t.axisExtent,r);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new Lr;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 tv({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 tv({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=fZ(s,l,e,h);f.ensureState("emphasis").style=u.getItemStyle(),f.ensureState("progress").style=c.getItemStyle(),Vl(f);var d=zs(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 Bs({x:h,y:0,rotation:t.labelRotation-t.rotation,onclick:Object(v["bind"])(i._changeTimeline,i,o),silent:!1,style:yu(l,{text:r.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});f.ensureState("emphasis").style=yu(u),f.ensureState("progress").style=yu(c),e.add(f),Vl(f),sZ(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=yr(Object(v["retrieve2"])(r.get(["controlStyle",n+"BtnSize"]),i),i),h=[0,-c/2,c,c],f=hZ(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),Vl(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),dZ(t,s._progressLine,o,n,r,!0)},onUpdate:function(t){dZ(t,s._progressLine,o,n,r)}};this._currentPointer=fZ(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=Qr(r.getExtent().slice());n>i[1]&&(n=i[1]),n=0&&(a[o]=+a[o].toFixed(f)),[a,h]}var EZ={min:Object(v["curry"])(IZ,"min"),max:Object(v["curry"])(IZ,"max"),average:Object(v["curry"])(IZ,"average"),median:Object(v["curry"])(IZ,"median")};function jZ(t,e){var n=t.getData(),r=t.coordinateSystem;if(e&&!TZ(e)&&!Object(v["isArray"])(e.coord)&&r){var i=r.dimensions,o=PZ(e,n,r,t);if(e=Object(v["clone"])(e),e.type&&EZ[e.type]&&o.baseAxis&&o.valueAxis){var a=Object(v["indexOf"])(i,o.baseAxis.dim),s=Object(v["indexOf"])(i,o.valueAxis.dim),l=EZ[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++)EZ[u[c]]&&(u[c]=NZ(n,n.mapDimension(i[c]),u[c]));e.coord=u}}return e}function PZ(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(LZ(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 LZ(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}function DZ(t,e){return!(t&&t.containData&&e.coord&&!MZ(e))||t.containData(e.coord)}function RZ(t,e){return t?function(t,n,r,i){var o=i<2?t.coord&&t.coord[i]:t.value;return Ad(o,e[i])}:function(t,n,r,i){return Ad(t.value,e[i])}}function NZ(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 BZ=Gi(),zZ=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){BZ(t).keep=!1})),e.eachSeries((function(t){var i=CZ.getMarkerModelFromSeries(t,r.type);i&&r.renderSeries(t,i,e,n)})),i.each((function(t){!BZ(t).keep&&r.group.remove(t.group)}))},e.prototype.markKeep=function(t){BZ(t).keep=!0},e.prototype.blurSeries=function(t){var e=this;Object(v["each"])(t,(function(t){var n=CZ.getMarkerModelFromSeries(t,e.type);if(n){var r=n.getData();r.eachItemGraphicEl((function(t){t&&kl(t)}))}}))},e.type="marker",e}(Wp),FZ=zZ;function VZ(t,e,n){var r=e.coordinateSystem;t.each((function(i){var o,a=t.getItemModel(i),s=Zr(a.get("x"),n.getWidth()),l=Zr(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 qZ=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=CZ.getMarkerModelFromSeries(t,"markPoint");e&&(VZ(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 fA),u=HZ(i,t,e);e.setData(u),VZ(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=am(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){zs(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(FZ);function HZ(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 U_(r,n),o=Object(v["map"])(n.get("data"),Object(v["curry"])(jZ,e));t&&(o=Object(v["filter"])(o,Object(v["curry"])(DZ,t)));var a=RZ(!!t,r);return i.initData(o,null,a),i}var GZ=qZ;function WZ(t){t.registerComponentModel(AZ),t.registerComponentView(GZ),t.registerPreprocessor((function(t){_Z(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})}))}var UZ=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}(CZ),$Z=UZ,YZ=Gi(),XZ=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=PZ(r,o,e,t);s=u.valueAxis;var c=ow(o,u.valueDataDim);l=NZ(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=[jZ(t,i[0]),jZ(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 ZZ(t){return!isNaN(t)&&!isFinite(t)}function KZ(t,e,n,r){var i=1-t,o=r.dimensions[t];return ZZ(e[i])&&ZZ(n[i])&&e[t]===n[t]&&r.getAxis(o).containData(e[t])}function QZ(t,e){if("cartesian2d"===t.type){var n=e[0].coord,r=e[1].coord;if(n&&r&&(KZ(1,n,r,t)||KZ(0,n,r,t)))return!0}return DZ(t,e[0])&&DZ(t,e[1])}function JZ(t,e,n,r,i){var o,a=r.coordinateSystem,s=t.getItemModel(e),l=Zr(s.get("x"),i.getWidth()),u=Zr(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(TA(a,"cartesian2d")){var d=a.getAxis("x"),p=a.getAxis("y");c=a.dimensions;ZZ(t.get(c[0],e))?o[0]=d.toGlobalCoord(d.getExtent()[n?0:1]):ZZ(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 tK=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=CZ.getMarkerModelFromSeries(t,"markLine");if(e){var r=e.getData(),i=YZ(e).from,o=YZ(e).to;i.each((function(e){JZ(i,e,!0,t,n),JZ(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 yR);this.group.add(l.group);var u=eK(i,t,e),c=u.from,h=u.to,f=u.line;YZ(e).from=c,YZ(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);JZ(e,n,i,t,r);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=am(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,n){t.traverse((function(t){zs(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(FZ);function eK(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 U_(r,n),o=new U_(r,n),a=new U_([],n),s=Object(v["map"])(n.get("data"),Object(v["curry"])(XZ,e,t,n));t&&(s=Object(v["filter"])(s,Object(v["curry"])(QZ,t)));var l=RZ(!!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 nK=tK;function rK(t){t.registerComponentModel($Z),t.registerComponentView(nK),t.registerPreprocessor((function(t){_Z(t.series,"markLine")&&(t.markLine=t.markLine||{})}))}var iK=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}(CZ),oK=iK,aK=Gi(),sK=function(t,e,n,r){var i=jZ(t,r[0]),o=jZ(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 lK(t){return!isNaN(t)&&!isFinite(t)}function uK(t,e,n,r){var i=1-t;return lK(e[i])&&lK(n[i])}function cK(t,e){var n=e.coord[0],r=e.coord[1];return!!(TA(t,"cartesian2d")&&n&&r&&(uK(1,n,r,t)||uK(0,n,r,t)))||(DZ(t,{coord:n,x:e.x0,y:e.y0})||DZ(t,{coord:r,x:e.x1,y:e.y1}))}function hK(t,e,n,r,i){var o,a=r.coordinateSystem,s=t.getItemModel(e),l=Zr(s.get(n[0]),i.getWidth()),u=Zr(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(TA(a,"cartesian2d")){var d=a.getAxis("x"),p=a.getAxis("y");c=t.get(n[0],e),h=t.get(n[1],e);lK(c)?o[0]=d.toGlobalCoord(d.getExtent()["x0"===n[0]?0:1]):lK(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 fK=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],dK=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=CZ.getMarkerModelFromSeries(t,"markArea");if(e){var r=e.getData();r.each((function(e){var i=Object(v["map"])(fK,(function(i){return hK(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 Lr});this.group.add(l.group),this.markKeep(l);var u=pK(i,t,e);e.setData(u),u.each((function(e){var n=Object(v["map"])(fK,(function(n){return hK(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))];Qr(h),Qr(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}(gh),bK=mK,xK=v["curry"],_K=v["each"],wK=Lr,SK=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 wK),this.group.add(this._selectorGroup=new wK),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=oh(l,u,c),f=this.layoutInner(t,i,h,r,a,s),d=oh(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=T$(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)})),_K(e.getData(),(function(i,o){var a=i.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var h=new wK;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);m.on("click",xK(kK,a,null,r,c)).on("mouseover",xK(MK,f.name,null,r,c)).on("mouseout",xK(TK,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(Me["parse"])(f.fill);p&&0===p[3]&&(p[3]=.2,f=v["extend"](v["extend"]({},f),{fill:Object(Me["stringify"])(p,"rgba")}));var g=this._createItem(n,a,o,i,e,t,{},f,d,u);g.on("click",xK(kK,null,a,r,c)).on("mouseover",xK(MK,null,a,r,c)).on("mouseout",xK(TK,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();_K(t,(function(t){var r=t.type,i=new Bs({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"]);gu(i,{normal:a,emphasis:s},{defaultText:t.title}),Vl(i)}))},e.prototype._createItem=function(t,e,n,r,i,o,a,s,l,u){var c=t.visualDrawType,h=i.get("itemWidth"),f=i.get("itemHeight"),d=i.isSelected(e),p=r.get("symbolRotate"),g=r.get("symbolKeepAspect"),y=r.get("icon");l=y||l||"roundRect";var m=OK(l,r,a,s,c,d),b=new wK,x=r.getModel("textStyle");if(!v["isFunction"](t.getLegendIcon)||y&&"inherit"!==y){var _="inherit"===y&&t.getData().getVisual("symbol")?"inherit"===p?t.getData().getVisual("symbolRotate"):p:0;b.add(CK({itemWidth:h,itemHeight:f,icon:l,iconRotate:_,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:g}))}else b.add(t.getLegendIcon({itemWidth:h,itemHeight:f,icon:l,iconRotate:p,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:g}));var w="left"===o?h+5:-5,S=o,O=i.get("formatter"),C=e;v["isString"](O)&&O?C=O.replace("{name}",null!=e?e:""):v["isFunction"](O)&&(C=O(e));var k=r.get("inactiveColor");b.add(new Bs({style:yu(x,{text:C,x:w,y:f/2,fill:d?x.getTextColor():k,align:S,verticalAlign:"middle"})}));var A=new xs({shape:b.getBoundingRect(),invisible:!0}),M=r.getModel("tooltip");return M.get("show")&&ey({el:A,componentModel:i,itemName:e,itemTooltipOption:M.option}),b.add(A),b.eachChild((function(t){t.silent=!0})),A.silent=!u,this.getContentGroup().add(b),Vl(b),b.__legendDataIndex=n,b},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();rh(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){rh("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}(Wp);function OK(t,e,n,r,i,o){function a(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),_K(t,(function(n,r){"inherit"===t[r]&&(t[r]=e[r])}))}var s=e.getModel("itemStyle"),l=s.getItemStyle(),u=0===t.lastIndexOf("empty",0)?"fill":"stroke";l.decal=r.decal,"inherit"===l.fill&&(l.fill=r[i]),"inherit"===l.stroke&&(l.stroke=r[u]),"inherit"===l.opacity&&(l.opacity=("fill"===i?r:n).opacity),a(l,r);var c=e.getModel("lineStyle"),h=c.getLineStyle();if(a(h,n),"auto"===l.fill&&(l.fill=r.fill),"auto"===l.stroke&&(l.stroke=r.fill),"auto"===h.stroke&&(h.stroke=r.fill),!o){var f=e.get("inactiveBorderWidth"),d=l[u];l.lineWidth="auto"===f?r.lineWidth>0&&d?2:0:l.lineWidth,l.fill=e.get("inactiveColor"),l.stroke=e.get("inactiveBorderColor"),h.stroke=c.get("inactiveColor"),h.lineWidth=c.get("inactiveWidth")}return{itemStyle:l,lineStyle:h}}function CK(t){var e=t.icon||"roundRect",n=Cm(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 kK(t,e,n,r){TK(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),MK(t,e,n,r)}function AK(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={x:0,y:0};if(x[i]=d?n[i]:h[i],x[o]=Math.max(h[o],f[o]),x[a]=Math.min(0,f[a]+y[1-r]),u.__rectSize=n[i],d){var _={x:0,y:0};_[i]=Math.max(n[i]-f[i]-m,0),_[o]=x[o],u.setClipPath(new xs({shape:_})),u.__rectSize=_[i]}else c.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var w=this._getPageInfo(t);return null!=w.pageIndex&&iu(l,{x:w.contentPosition[0],y:w.contentPosition[1]},d?t:null),this._updatePageInfoView(t,w),x},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=zK[i],a=FK[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}(IK),qK=VK;function HK(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 GK(t){f_(LK),t.registerComponentModel(NK),t.registerComponentView(qK),HK(t)}function WK(t){f_(LK),f_(GK)}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.type="dataZoom.inside",e.defaultOption=Uu(i$.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(i$),$K=UK,YK=Gi();function XK(t,e,n){YK(t).coordSysRecordMap.each((function(t){var r=t.dataZoomInfoMap.get(e.uid);r&&(r.getRange=n)}))}function ZK(t,e){for(var n=YK(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 nQ(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var n=YK(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=t$(t);Object(v["each"])(n.infoList,(function(n){var i=n.model.uid,o=r.get(i)||r.set(i,QK(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=eQ(i);n.enable(a.controlType,a.opt),n.setPointerChecker(t.containsPoint),yy(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else KK(r,t)}))}))}var rQ=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(),XK(r,e,{pan:Object(v["bind"])(iQ.pan,this),zoom:Object(v["bind"])(iQ.zoom,this),scrollMove:Object(v["bind"])(iQ.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){ZK(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(l$),iQ={zoom:function(t,e,n,r){var i=this.range,o=i.slice(),a=t.axisModels[0];if(a){var s=aQ[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 RN(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,i[0]!==o[0]||i[1]!==o[1]?o:void 0}},pan:oQ((function(t,e,n,r,i,o){var a=aQ[r]([o.oldX,o.oldY],[o.newX,o.newY],e,i,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength})),scrollMove:oQ((function(t,e,n,r,i,o){var a=aQ[r]([0,0],[o.scrollDelta,o.scrollDelta],e,i,n);return a.signal*(t[1]-t[0])*o.scrollDelta}))};function oQ(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 RN(l,a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}}var aQ={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}},sQ=rQ;function lQ(t){x$(t),t.registerComponentModel($K),t.registerComponentView(sQ),nQ(t)}var uQ=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=Uu(i$.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}(i$),cQ=uQ,hQ=xs,fQ=7,dQ=1,pQ=30,gQ=7,vQ="horizontal",yQ="vertical",mQ=5,bQ=["line","bar","candlestick","scatter"],xQ={easing:"cubicOut",duration:100,delay:0},_Q=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),yy(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(){my(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 Lr;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?gQ:0,i=this._findCoordRect(),o={width:e.getWidth(),height:e.getHeight()},a=this._orient===vQ?{right:o.width-i.x-i.width,top:o.height-pQ-fQ-r,width:i.width,height:pQ}:{right:fQ,top:i.y,width:pQ,height:i.height},s=ch(t.option);Object(v["each"])(["right","top","width","height"],(function(t){"ph"===s[t]&&(s[t]=a[t])}));var l=oh(s,o);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===yQ&&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!==vQ||i?n===vQ&&i?{scaleY:a?1:-1,scaleX:-1}:n!==yQ||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 hQ({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var i=new hQ({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():t.otherDim;if(null!=o){var a=this._shadowPolygonPts,s=this._shadowPolylinePts;if(i!==this._shadowData||o!==this._shadowDim||e[0]!==n[0]||e[1]!==n[1]){var l=i.getDataExtent(o),u=.3*(l[1]-l[0]);l=[l[0]-u,l[1]+u];var c,h=[0,e[1]],f=[0,e[0]],d=[[e[0],0],[0,0]],p=[],g=f[1]/(i.count()-1),v=0,y=Math.round(i.count()/e[0]);i.each([o],(function(t,e){if(y>0&&e%y)v+=g;else{var n=null==t||isNaN(t)||""===t,r=n?0:Xr(t,l,h,!0);n&&!c&&e?(d.push([d[d.length-1][0],0]),p.push([p[p.length-1][0],0])):!n&&c&&(d.push([v,0]),p.push([v,0])),d.push([v,r]),p.push([v,r]),v+=g,c=n}})),a=this._shadowPolygonPts=d,s=this._shadowPolylinePts=p}this._shadowData=i,this._shadowDim=o,this._shadowSize=[e[0],e[1]];for(var m=this.dataZoomModel,b=0;b<3;b++){var x=_(1===b);this._displayables.sliderGroup.add(x),this._displayables.dataShadowSegs.push(x)}}}function _(t){var e=m.getModel(t?"selectedDataBackground":"dataBackground"),n=new Lr,r=new $g({shape:{points:a},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),i=new Zg({shape:{points:s},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"])(bQ,t.get("type"))<0)){var a,s=r.getComponent(QU(i),o).axis,l=wQ(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 hQ({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});i.add(c),i.add(new hQ({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:dQ,fill:"rgba(0,0,0,0)"}})),Object(v["each"])([0,1],(function(e){var o=a.get("handleIcon");!wm[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=Cm(o,-1,0,2,2,null,!0);s.attr({cursor:SQ(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=Zr(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(),Vl(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 Bs({silent:!0,invisible:!0,style:yu(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=Zr(a.get("moveHandleSize"),o[1]),d=e.moveHandle=new xs({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=Cm(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 xs({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:SQ(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=[Xr(t[0],[0,100],e,!0),Xr(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];RN(e,r,i,n.get("zoomLock")?"all":t,null!=o.minSpan?Xr(o.minSpan,a,i,!0):null,null!=o.maxSpan?Xr(o.maxSpan,a,i,!0):null);var s=this._range,l=this._range=Qr([Xr(r[0],i,a,!0),Xr(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=Qr(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 Kn(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=Qr([Xr(n.x,i,o,!0),Xr(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&&(gt(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 hQ({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?xQ:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=t$(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}(l$);function wQ(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function SQ(t){return"vertical"===t?"ns-resize":"ew-resize"}var OQ=_Q;function CQ(t){t.registerComponentModel(cQ),t.registerComponentView(OQ),x$(t)}function kQ(t){f_(lQ),f_(CQ)}var AQ={get:function(t,e,n){var r=v["clone"]((MQ[t]||{})[e]);return n&&v["isArray"](r)?r[r.length-1]:r}},MQ={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]}},TQ=AQ,IQ=GL.mapVisual,EQ=GL.eachVisual,jQ=v["isArray"],PQ=v["each"],LQ=Qr,DQ=Xr,RQ=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&&_X(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=xX(this.option.controller,e,t),this.targetVisuals=xX(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=wi(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=LQ([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){jQ(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]={},PQ(r,(function(t,e){if(GL.isValidType(e)){var n=TQ.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";PQ(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=IQ(l.symbol,(function(t){return"none"===t?a:t}));var u=l.symbolSize;if(null!=u){var c=-1/0;EQ(u,(function(t){t>c&&(c=t)})),l.symbolSize=IQ(u,(function(t){return DQ(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}(gh),NQ=RQ,BQ=[20,140],zQ=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]=BQ[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=BQ[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=Qr((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=FQ(this,"outOfRange",this.getExtent()),n=FQ(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 Lr("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();YQ([0,1],(function(l){var u=i[l];u.setStyle("fill",e.handlesColor[l]),u.y=t[l];var c=$Q(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],qv(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=$Q(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,qv(u,this.group)),y=l.indicatorLabel;y.attr("invisible",!1);var m=this._applyTransform("left",l.mainGroup),b=this._orient,x="horizontal"===b;y.setStyle({text:(n||"")+i.formatValueText(e),verticalAlign:x?m:"middle",align:x?"center":m});var _={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(_,S),y.animateTo(w,S)}else u.attr(_),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||nJ(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var f=qi(c,h);this._dispatchHighDown("downplay",UQ(f[0],n)),this._dispatchHighDown("highlight",UQ(f[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e=t.target,n=this.visualMapModel;if(e&&null!=zs(e).dataIndex){var r=zs(e),i=this.ecModel.getSeriesByIndex(r.seriesIndex);if(n.isTargetSeries(i)){var o=i.getData(r.dataType),a=o.getStore().get(n.getDataDimensionIndex(o),r.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},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 lJ(t,e,n,r){for(var i=e.targetVisuals[r],o=GL.prepareVisualTypes(i),a={color:am(t.getData(),"color")},s=0,l=o.length;s0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(oJ,aJ),Object(v["each"])(sJ,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(cJ))}function pJ(t){t.registerComponentModel(VQ),t.registerComponentView(iJ),dJ(t)}var gJ=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=[],vJ[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=GL.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]=TQ.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=GL.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=GL.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=Uu(NQ.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}(NQ),vJ={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 yJ(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var mJ=gJ,bJ=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 Lr;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 Bs({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),rh(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:UQ(r.findTargetDataIndices(e),r)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return WQ(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 Lr,a=this.visualMapModel.textStyleModel;o.add(new Bs({style:{x:r?"right"===i?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:r?i:"center",text:e,font:a.getFont(),fill:a.getTextColor()}})),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(Cm(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=v["clone"](n.selected),i=e.getSelectedMapKey(t);"single"===n.selectedMode?(r[i]=!0,v["each"](r,(function(t,e){r[e]=e===i}))):r[i]=!r[i],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})},e.type="visualMap.piecewise",e}(HQ),xJ=bJ;function _J(t){t.registerComponentModel(mJ),t.registerComponentView(xJ),dJ(t)}function wJ(t){f_(pJ),f_(_J)}var SJ={label:{enabled:!0},decal:{show:!1}},OJ=Gi(),CJ={};function kJ(t,e){var n=t.getModel("aria");if(n.get("enabled")){var r=v["clone"](SJ);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)),OJ(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,CJ,t.getSeriesCount()),i=n.getVisual("decal");n.setVisual("decal",u(i,r))}else{var o=e.getRawData(),a={},s=OJ(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"},IJ=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,Kh(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}(),EJ=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),jJ=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){ZJ(t,r)&&ZJ(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 QJ(t,e,n,r,i,o,a,s,l,u){if(ZJ(t,n)&&ZJ(e,r)&&ZJ(i,a)&&ZJ(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,x=y*y+m*m;if(b=0&&O=0)l.push(a,s);else{var C=[],k=[];pe(t,n,i,a,.5,C),pe(e,r,o,s,.5,k),QJ(C[0],k[0],C[1],k[1],C[2],k[2],C[3],k[3],l,u),QJ(C[4],k[4],C[5],k[5],C[6],k[6],C[7],k[7],l,u)}}}}function JJ(t,e){var n=KJ(t),r=[];e=e||1;for(var i=0;i0)for(u=0;uMath.abs(u),h=t0([l,u],c?0:1,e),f=(c?s:u)/h.length,d=0;di,a=t0([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 Kn(g*l+t,g*u+e)}function o0(t,e,n){var r=new Kn;Kn.sub(r,n,e),r.normalize();var i=new Kn;Kn.sub(i,t,e);var o=i.dot(r);return o}function a0(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function s0(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),s0(e,u,c)}function u0(t,e,n,r){if(1===n)r.push(e);else{var i=Math.floor(n/2),o=t(e);u0(t,o[0],i,r),u0(t,o[1],n-i,r)}return r}function c0(t,e){for(var n=[],r=0;r0)for(var _=r/n,w=-r/2;w<=r/2;w+=_){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 T0(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:M0(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 I0(t){return d0(t.path,t.count)}function E0(){return{fromIndividuals:[],toIndividuals:[],count:0}}function j0(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 R0={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);L0(t)&&(s=t,l=e),L0(e)&&(s=e,l=t);for(var h=s?s===t:t.length>e.length,f=s?D0(l,s):D0(h?e:t,[h?t:e]),d=0,p=0;pz0))for(var r=n.getIndices(),i=V0(n),o=0;o0&&i.group.traverse((function(t){t instanceof rs&&!t.animators.length&&t.animateFrom({style:{opacity:0}},o)}))}))}function X0(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function Z0(t){return Object(v["isArray"])(t)?t.sort().join(","):t}function K0(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function Q0(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=X0(e),s=Z0(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=X0(t),a=Z0(o),s=r.get(a);if(s)n.set(a,{oldSeries:[{divide:K0(s),data:s}],newSeries:[{divide:K0(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:K0(e),data:e})})),l.length&&n.set(a,{oldSeries:l,newSeries:[{data:e,divide:K0(e)}]})}else{var u=i.get(o);if(u){var c=n.get(u.key);c||(c={oldSeries:[{data:u.data,divide:K0(u.data)}],newSeries:[]},n.set(u.key,c)),c.newSeries.push({data:e,divide:K0(e)})}}}})),n}function J0(t,e){for(var n=0;n=0&&i.push({data:e.oldData[n],divide:K0(e.oldData[n]),dim:t.dimension})})),Object(v["each"])(wi(t.to),(function(t){var e=J0(n.updatedSeries,t);if(e>=0){var r=n.updatedSeries[e].getData();o.push({data:r,divide:K0(r),dim:t.dimension})}})),i.length>0&&o.length>0&&Y0(i,o,r)}function e1(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){Object(v["each"])(wi(n.seriesTransition),(function(t){Object(v["each"])(wi(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}))},3301:function(t,e,n){"use strict";const{Buffer:r}=n("b639"),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_EMQX_API_PASSWORD:"public",VUE_APP_EMQX_API_USER_NAME:"admin",VUE_APP_EMQX_SERVER_URL:"",VUE_APP_TITLE:"物美智能系统",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"))},"357d":function(t,e,n){},"35a1":function(t,e,n){var r=n("f5df"),i=n("dc4a"),o=n("3f8c"),a=n("b622"),s=a("iterator");t.exports=function(t){if(void 0!=t)return i(t,s)||i(t,"@@iterator")||o[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("9bf2"),o=n("825a"),a=n("fc6a"),s=n("df75");t.exports=r?Object.defineProperties:function(t,e){o(t);var n,r=a(e),l=s(e),u=l.length,c=0;while(u>c)i.f(t,n=l[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");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=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done);a=!0)if(o.push(r.value),e&&o.length===e)break}catch(l){s=!0,i=l}finally{try{a||null==n["return"]||n["return"]()}finally{if(s)throw i}}return o}}var o=n("06c5");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,x){l(n,e,y);var _,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,j="Array"==e&&M.entries||T;if(j&&(S=c(j.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&&!x||!f&&!A&&M[h]||a(M,h,I),s[e]=I,s[C]=v,m)if(_={values:k?I:O(g),keys:b?I:O(p),entries:E},x)for(w in _)w in M||o(M,w,_[w]);else i(i.P+i.F*(f||A),e,_);return _}},"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}}},"3a9b":function(t,e,n){var r=n("e330");t.exports=r({}.isPrototypeOf)},"3b1b":function(t,e,n){"use strict";var r=n("2195"),i=n("186f"),o=n("2dd0"),a=o.ObjectChangeDescriptor,s=o.ChangeListenersRecord,l=o.ListenerGhost;function u(){throw new Error("Can't construct. MapChanges is a mixin.")}t.exports=u;Object.prototype.hasOwnProperty;var c=new r;function h(t){this.name=t,this.isActive=!1,this._willChangeListeners=null,this._changeListeners=null}h.prototype=new a,h.prototype.constructor=h,h.prototype.changeListenersRecordConstructor=d,h.prototype.willChangeListenersRecordConstructor=g;var f=new i;function d(t){var e=f.get(t);return e||(e="handle",e+=t.slice(0,1).toUpperCase(),e+=t.slice(1),e+="MapChange",f.set(t,e)),this.specificHandlerMethodName=e,this}d.prototype=new s,d.prototype.constructor=d,d.prototype.genericHandlerMethodName="handleMapChange";var p=new i;function g(t){var e=p.get(t);return e||(e="handle",e+=t.slice(0,1).toUpperCase(),e+=t.slice(1),e+="MapWillChange",p.set(t,e)),this.specificHandlerMethodName=e,this}g.prototype=new s,g.prototype.constructor=g,g.prototype.genericHandlerMethodName="handleMapWillChange",u.prototype.getAllMapChangeDescriptors=function(){return c.has(this)||c.set(this,new i),c.get(this)},u.prototype.getMapChangeDescriptor=function(t){var e=this.getAllMapChangeDescriptors();return t=t||"",e.has(t)||e.set(t,new h(t)),e.get(t)};var v=new r,y=function(){return v.get(this)},m=function(t){return v.set(this,t)},b="dispatchesMapChanges",x={get:y,set:m,configurable:!0,enumerable:!1};u.prototype.addMapChangeListener=function(t,e,n){!this.isObservable&&this.makeObservable&&this.makeObservable();var r,i=this.getMapChangeDescriptor(e);r=n?i.willChangeListeners:i.changeListeners,r._current?Array.isArray(r._current)?r._current.push(t):r._current=[r._current,t]:r._current=t,void 0===Object.getOwnPropertyDescriptor(this.__proto__||Object.getPrototypeOf(this),b)&&Object.defineProperty(this.__proto__||Object.getPrototypeOf(this),b,x),this.dispatchesMapChanges=!0;var o=this;return function(){o&&(o.removeMapChangeListener(t,e,n),o=null)}},u.prototype.removeMapChangeListener=function(t,e,n){var r,i=this.getMapChangeDescriptor(e);if(r=n?i.willChangeListeners:i.changeListeners,r._current)if(r._current===t)r._current=null;else{var o=r._current.lastIndexOf(t);if(-1===o)throw new Error("Can't remove map change listener: does not exist: token "+JSON.stringify(e));i.isActive?(r.ghostCount=r.ghostCount+1,r._current[o]=l):r._current.spliceOne(o)}},u.prototype.dispatchMapChange=function(t,e,n){var r=this.getAllMapChangeDescriptors(),i=l;r.forEach((function(r,o){if(!r.isActive){var a=n?r.willChangeListeners:r.changeListeners;if(a&&a._current){var s=a.specificHandlerMethodName;if(Array.isArray(a._current)){if(a._current.length){var l,u,c,h=a.removeCurrentGostListenersIfNeeded();r.isActive=!0;try{for(l=0,u=h.length;l=n.length?{value:void 0,done:!0}:(t=r(n,i),e.index+=t.length,{value:t,done:!1})}))},"3d67":function(t,e,n){"use strict";n.r(e),n.d(e,"Vector",(function(){return l})),n.d(e,"Stack",(function(){return c})),n.d(e,"Queue",(function(){return v})),n.d(e,"LinkList",(function(){return p})),n.d(e,"Deque",(function(){return b})),n.d(e,"PriorityQueue",(function(){return _})),n.d(e,"Set",(function(){return A})),n.d(e,"Map",(function(){return E})),n.d(e,"HashSet",(function(){return D})),n.d(e,"HashMap",(function(){return z}));var r=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},o=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.")};function s(t){var e=this;void 0===t&&(t=[]);var n=0,s=[];this.size=function(){return n},this.empty=function(){return 0===n},this.clear=function(){n=0,s.length=0},this.front=function(){if(!this.empty())return s[0]},this.back=function(){if(!this.empty())return s[n-1]},this.forEach=function(t){s.forEach(t)},this.getElementByPos=function(t){if(t<0||t>=n)throw new Error("pos must more than 0 and less than vector's size");return s[t]},this.eraseElementByPos=function(t){if(t<0||t>=n)throw new Error("pos must more than 0 and less than vector's size");for(var e=t;er)this.popBack()},this.pushBack=function(t){s.push(t),++n},this.popBack=function(){s.pop(),n>0&&--n},this.setElementByPos=function(t,e){if(t<0||t>=n)throw new Error("pos must more than 0 and less than vector's size");s[t]=e},this.insert=function(t,e,r){if(void 0===r&&(r=1),t<0||t>n)throw new Error("pos must more than 0 and less than or equal to vector's size");s.splice.apply(s,o([t,0],i(new Array(r).fill(e)),!1)),n+=r},this.find=function(t){return s.includes(t)},this.reverse=function(){s.reverse()},this.unique=function(){var t,e=[];this.forEach((function(n,r){0!==r&&n===t||(e.push(n),t=n)})),e.forEach((function(t,e){s[e]=t}));var r=e.length;while(n>r)this.popBack()},this.sort=function(t){s.sort(t)},this[Symbol.iterator]=function(){return function(){return r(this,(function(t){switch(t.label){case 0:return[5,a(s)];case 1:return[2,t.sent()]}}))}()},t.forEach((function(t){return e.pushBack(t)})),Object.freeze(this)}Object.freeze(s);var l=s;function u(t){var e=this;void 0===t&&(t=[]);var n=0,r=[];this.size=function(){return n},this.empty=function(){return 0===n},this.clear=function(){n=0,r.length=0},this.push=function(t){r.push(t),++n},this.pop=function(){r.pop(),n>0&&--n},this.top=function(){return r[n-1]},t.forEach((function(t){return e.push(t)})),Object.freeze(this)}Object.freeze(u);var c=u,h=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]=n)throw new Error("pos must more then 0 and less then the list length");var e=r;while(t--){if(!e)break;e=e.next}if(!e||void 0===e.value)throw new Error("unknown error");return e.value},this.eraseElementByPos=function(t){if(t<0||t>=n)throw new Error("erase pos must more then 0 and less then the list length");if(0===t)this.popFront();else if(t===n-1)this.popBack();else{var e=r;while(t--){if(!(null===e||void 0===e?void 0:e.next))throw new Error("unknown error");e=e.next}if(!e||!e.pre||!e.next)throw new Error("unknown error");var i=e.pre,o=e.next;o.pre=i,i.next=o,n>0&&--n}},this.eraseElementByValue=function(t){while(r&&r.value===t)this.popFront();while(i&&i.value===t)this.popBack();if(r){var e=r;while(e){if(e.value===t){var o=e.pre,a=e.next;a&&(a.pre=o),o&&(o.next=a),n>0&&--n}e=e.next}}},this.pushBack=function(t){if(null===t||void 0===t)throw new Error("you can't push null or undefined here");++n;var e=new f(t);i?(i.next=e,e.pre=i,i=e):r=i=e},this.popBack=function(){i&&(n>0&&--n,i&&(r===i?r=i=void 0:(i=i.pre,i&&(i.next=void 0))))},this.setElementByPos=function(t,e){if(null===e||void 0===e)throw new Error("you can't set null or undefined here");if(t<0||t>=n)throw new Error("pos must more then 0 and less then the list length");var i=r;while(t--){if(!i)throw new Error("unknown error");i=i.next}i&&(i.value=e)},this.insert=function(t,e,i){if(void 0===i&&(i=1),null===e||void 0===e)throw new Error("you can't insert null or undefined here");if(t<0||t>n)throw new Error("insert pos must more then 0 and less then or equal to the list length");if(i<0)throw new Error("insert size must more than 0");if(0===t)while(i--)this.pushFront(e);else if(t===n)while(i--)this.pushBack(e);else{for(var o=r,a=1;a0&&--n;t.next=e.next,t.next&&(t.next.pre=t),t=t.next}},this.sort=function(t){var e=[];this.forEach((function(t){e.push(t)})),e.sort(t);var n=r;e.forEach((function(t){n&&(n.value=t,n=n.next)}))},this.pushFront=function(t){if(null===t||void 0===t)throw new Error("you can't push null or undefined here");++n;var e=new f(t);r?(e.next=r,r.pre=e,r=e):r=i=e},this.popFront=function(){r&&(n>0&&--n,r&&(r===i?r=i=void 0:(r=r.next,r&&(r.pre=void 0))))},this.merge=function(t){var e=this,o=r;t.forEach((function(t){while(o&&void 0!==o.value&&o.value<=t)o=o.next;if(void 0===o)e.pushBack(t),o=i;else if(o===r)e.pushFront(t),o=r;else{++n;var a=o.pre;a&&(a.next=new f(t),a.next.pre=a,a.next.next=o,o&&(o.pre=a.next))}}))},this[Symbol.iterator]=function(){return function(){var t;return h(this,(function(e){switch(e.label){case 0:t=r,e.label=1;case 1:if(void 0===t)return[3,3];if(!t.value)throw new Error("unknown error");return[4,t.value];case 2:return e.sent(),t=t.next,[3,1];case 3:return[2]}}))}()},t.forEach((function(t){return e.pushBack(t)})),Object.freeze(this)}Object.freeze(d);var p=d;function g(t){void 0===t&&(t=[]);var e=new p(t);this.size=function(){return e.size()},this.empty=function(){return e.empty()},this.clear=function(){e.clear()},this.push=function(t){e.pushBack(t)},this.pop=function(){e.popFront()},this.front=function(){return e.front()},Object.freeze(this)}Object.freeze(g);var v=g,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]s)throw new Error("pos should more than 0 and less than queue's size");var l=Math.floor(n/m.bucketSize),u=n%m.bucketSize;return{curNodeBucketIndex:l,curNodePointerIndex:u}};this.getElementByPos=function(t){var e=u(t),r=e.curNodeBucketIndex,i=e.curNodePointerIndex;return n[r][i]},this.eraseElementByPos=function(t){var e=this;if(t<0||t>l)throw new Error("pos should more than 0 and less than queue's size");if(0===t)this.popFront();else if(t===this.size())this.popBack();else{for(var n=[],r=t+1;r0?--a:r0&&--l)},this.setElementByPos=function(t,e){var r=u(t),i=r.curNodeBucketIndex,o=r.curNodePointerIndex;n[i][o]=e},this.insert=function(t,e,n){var r=this;if(void 0===n&&(n=1),0===t)while(n--)this.pushFront(e);else if(t===this.size())while(n--)this.pushBack(e);else{for(var i=[],o=t;o0?--i:r>0&&(--r,i=m.bucketSize-1)),++l,n[r][i]=t},this.popFront=function(){this.empty()||(1!==this.size()&&(i0&&--l)},this.shrinkToFit=function(){var t=this,e=[];this.forEach((function(t){e.push(t)}));var r=e.length;n=[];for(var i=Math.ceil(r/m.bucketSize),o=0;oe?-1:t=r)throw new Error("unknown error");if(e<0||e>=r)throw new Error("unknown error");var i=n[t];n[t]=n[e],n[e]=i},o=function(t){if(t<0||t>=r)throw new Error("unknown error");var o=2*t+1,a=2*t+2;o0&&i(t,o),a0&&i(t,a)};(function(){for(var t=Math.floor((r-1)/2);t>=0;--t){var o=t,a=2*o+1;while(a0&&(u=l),e(n[o],n[u])<=0)break;i(o,u),o=u,a=2*o+1}}})(),this.size=function(){return r},this.empty=function(){return 0===r},this.clear=function(){r=0,n.length=0},this.push=function(t){if(n.push(t),++r,1!==r){var i=r-1;while(i>0){var a=Math.floor((i-1)/2);if(e(n[a],t)<=0)break;o(a),i=a}}},this.pop=function(){if(!this.empty())if(1!==this.size()){var t=n[r-1];--r;var i=0;while(i=this.size())break;var s=o;if(a0&&(s=a),e(n[s],t)>=0)break;n[i]=n[s],i=s}n[i]=t}else--r},this.top=function(){return n[0]},Object.freeze(this)}Object.freeze(x);var _=x,w=function(){function t(t,e){this.color=!0,this.key=void 0,this.value=void 0,this.parent=void 0,this.brother=void 0,this.leftChild=void 0,this.rightChild=void 0,this.key=t,this.value=e}return t.prototype.rotateLeft=function(){var t=this.parent,e=this.brother,n=this.leftChild,r=this.rightChild;if(!r)throw new Error("unknown error");var i=r.leftChild,o=r.rightChild;return t&&(t.leftChild===this?t.leftChild=r:t.rightChild===this&&(t.rightChild=r)),r.parent=t,r.brother=e,r.leftChild=this,r.rightChild=o,e&&(e.brother=r),this.parent=r,this.brother=o,this.leftChild=n,this.rightChild=i,o&&(o.parent=r,o.brother=this),n&&(n.parent=this,n.brother=i),i&&(i.parent=this,i.brother=n),r},t.prototype.rotateRight=function(){var t=this.parent,e=this.brother,n=this.leftChild;if(!n)throw new Error("unknown error");var r=this.rightChild,i=n.leftChild,o=n.rightChild;return t&&(t.leftChild===this?t.leftChild=n:t.rightChild===this&&(t.rightChild=n)),n.parent=t,n.brother=e,n.leftChild=i,n.rightChild=this,e&&(e.brother=n),i&&(i.parent=n,i.brother=this),this.parent=n,this.brother=i,this.leftChild=o,this.rightChild=r,o&&(o.parent=this,o.brother=r),r&&(r.parent=this,r.brother=o),n},t.prototype.remove=function(){if(this.leftChild||this.rightChild)throw new Error("can only remove leaf node");this.parent&&(this===this.parent.leftChild?this.parent.leftChild=void 0:this===this.parent.rightChild&&(this.parent.rightChild=void 0)),this.brother&&(this.brother.brother=void 0),this.key=void 0,this.value=void 0,this.parent=void 0,this.brother=void 0},t.TreeNodeColorType={red:!0,black:!1},t}();Object.freeze(w);var S=w,O=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.")};function k(t,e){var n=this;void 0===t&&(t=[]),e=e||function(t,e){return te?1:0};var r=0,i=new S;i.color=S.TreeNodeColorType.black,this.size=function(){return r},this.empty=function(){return 0===r},this.clear=function(){r=0,i.key=void 0,i.leftChild=i.rightChild=i.brother=i.parent=void 0,i.color=S.TreeNodeColorType.black};var o=function(t){if(!t||void 0===t.key)throw new Error("unknown error");return t.leftChild?o(t.leftChild):t},a=function(t){if(!t||void 0===t.key)throw new Error("unknown error");return t.rightChild?a(t.rightChild):t};this.front=function(){if(!this.empty()){var t=o(i);return t.key}},this.back=function(){if(!this.empty()){var t=a(i);return t.key}},this.forEach=function(t){var e,n,r=0;try{for(var i=C(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}}},this.getElementByPos=function(t){var e,n;if(t<0||t>=this.size())throw new Error("pos must more than 0 and less than set's size");var r=0;try{for(var i=C(this),o=i.next();!o.done;o=i.next()){var a=o.value;if(r===t)return a;++r}}catch(s){e={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}throw new Error("unknown error")};var s=function(t){var e=t.parent;if(!e){if(t===i)return;throw new Error("unknown error")}if(t.color!==S.TreeNodeColorType.red){var n=t.brother;if(!n)throw new Error("unknown error");if(t===e.leftChild){if(n.color===S.TreeNodeColorType.red){n.color=S.TreeNodeColorType.black,e.color=S.TreeNodeColorType.red;var r=e.rotateLeft();i===e&&(i=r),s(t)}else if(n.color===S.TreeNodeColorType.black)if(n.rightChild&&n.rightChild.color===S.TreeNodeColorType.red){n.color=e.color,e.color=S.TreeNodeColorType.black,n.rightChild&&(n.rightChild.color=S.TreeNodeColorType.black);r=e.rotateLeft();i===e&&(i=r),t.color=S.TreeNodeColorType.black}else if(n.rightChild&&n.rightChild.color!==S.TreeNodeColorType.black||!n.leftChild||n.leftChild.color!==S.TreeNodeColorType.red)n.leftChild&&n.leftChild.color!==S.TreeNodeColorType.black||n.rightChild&&n.rightChild.color!==S.TreeNodeColorType.black||(n.color=S.TreeNodeColorType.red,s(e));else{n.color=S.TreeNodeColorType.red,n.leftChild&&(n.leftChild.color=S.TreeNodeColorType.black);r=n.rotateRight();i===n&&(i=r),s(t)}}else if(t===e.rightChild)if(n.color===S.TreeNodeColorType.red){n.color=S.TreeNodeColorType.black,e.color=S.TreeNodeColorType.red;r=e.rotateRight();i===e&&(i=r),s(t)}else if(n.color===S.TreeNodeColorType.black)if(n.leftChild&&n.leftChild.color===S.TreeNodeColorType.red){n.color=e.color,e.color=S.TreeNodeColorType.black,n.leftChild&&(n.leftChild.color=S.TreeNodeColorType.black);r=e.rotateRight();i===e&&(i=r),t.color=S.TreeNodeColorType.black}else if(n.leftChild&&n.leftChild.color!==S.TreeNodeColorType.black||!n.rightChild||n.rightChild.color!==S.TreeNodeColorType.red)n.leftChild&&n.leftChild.color!==S.TreeNodeColorType.black||n.rightChild&&n.rightChild.color!==S.TreeNodeColorType.black||(n.color=S.TreeNodeColorType.red,s(e));else{n.color=S.TreeNodeColorType.red,n.rightChild&&(n.rightChild.color=S.TreeNodeColorType.black);r=n.rotateLeft();i===n&&(i=r),s(t)}}else t.color=S.TreeNodeColorType.black},l=function(t){var e=t;while(e.leftChild||e.rightChild){if(e.rightChild){e=o(e.rightChild);var n=t.key;t.key=e.key,e.key=n,t=e}if(e.leftChild){e=a(e.leftChild);n=t.key;t.key=e.key,e.key=n,t=e}}s(e),e&&e.remove(),--r,i.color=S.TreeNodeColorType.black},u=function(t,e){if(!t||void 0===t.key)return!1;var n=u(t.leftChild,e);return!!n||(!!e(t)||u(t.rightChild,e))};this.eraseElementByPos=function(t){if(t<0||t>=r)throw new Error("pos must more than 0 and less than set's size");var e=0;u(i,(function(n){return t===e?(l(n),!0):(++e,!1)}))},this.eraseElementByValue=function(t){if(!this.empty()){var n=f(i,t);void 0!==n&&void 0!==n.key&&0===e(n.key,t)&&l(n)}};var c=function(t,n){if(!t||void 0===t.key)throw new Error("unknown error");var r=e(n,t.key);return r<0?t.leftChild?c(t.leftChild,n):(t.leftChild=new S,t.leftChild.parent=t,t.leftChild.brother=t.rightChild,t.rightChild&&(t.rightChild.brother=t.leftChild),t.leftChild):r>0?t.rightChild?c(t.rightChild,n):(t.rightChild=new S,t.rightChild.parent=t,t.rightChild.brother=t.leftChild,t.leftChild&&(t.leftChild.brother=t.rightChild),t.rightChild):t},h=function(t){var e=t.parent;if(!e){if(t===i)return;throw new Error("unknown error")}if(e.color!==S.TreeNodeColorType.black&&e.color===S.TreeNodeColorType.red){var n=e.brother,r=e.parent;if(!r)throw new Error("unknown error");if(n&&n.color===S.TreeNodeColorType.red)n.color=e.color=S.TreeNodeColorType.black,r.color=S.TreeNodeColorType.red,h(r);else if(!n||n.color===S.TreeNodeColorType.black)if(e===r.leftChild){if(t===e.leftChild){e.color=S.TreeNodeColorType.black,r.color=S.TreeNodeColorType.red;var o=r.rotateRight();r===i&&(i=o)}else if(t===e.rightChild){o=e.rotateLeft();r===i&&(i=o),h(e)}}else if(e===r.rightChild)if(t===e.leftChild){o=e.rotateRight();r===i&&(i=o),h(e)}else if(t===e.rightChild){e.color=S.TreeNodeColorType.black,r.color=S.TreeNodeColorType.red;o=r.rotateLeft();r===i&&(i=o)}}};this.insert=function(t){if(null===t||void 0===t)throw new Error("to avoid some unnecessary errors, we don't suggest you insert null or undefined here");if(this.empty())return++r,i.key=t,void(i.color=S.TreeNodeColorType.black);var n=c(i,t);void 0!==n.key&&0===e(n.key,t)||(++r,n.key=t,h(n),i.color=S.TreeNodeColorType.black)};var f=function(t,n){if(t&&void 0!==t.key){var r=e(n,t.key);return r<0?f(t.leftChild,n):r>0?f(t.rightChild,n):t}};this.find=function(t){var n=f(i,t);return void 0!==n&&void 0!==n.key&&0===e(n.key,t)};var d=function(t,n){if(t&&void 0!==t.key){var r=e(t.key,n);return 0===r?t.key:r<0?d(t.rightChild,n):d(t.leftChild,n)||t.key}};this.lowerBound=function(t){return d(i,t)};var p=function(t,n){if(t&&void 0!==t.key){var r=e(t.key,n);return r<=0?p(t.rightChild,n):p(t.leftChild,n)||t.key}};this.upperBound=function(t){return p(i,t)};var g=function(t,n){if(t&&void 0!==t.key){var r=e(t.key,n);return 0===r?t.key:r>0?g(t.leftChild,n):g(t.rightChild,n)||t.key}};this.reverseLowerBound=function(t){return g(i,t)};var v=function(t,n){if(t&&void 0!==t.key){var r=e(t.key,n);return r>=0?v(t.leftChild,n):v(t.rightChild,n)||t.key}};this.reverseUpperBound=function(t){return v(i,t)},this.union=function(t){var e=this;t.forEach((function(t){return e.insert(t)}))},this.getHeight=function(){if(this.empty())return 0;var t=function(e){return e?Math.max(t(e.leftChild),t(e.rightChild))+1:1};return t(i)};var y=function(t){return O(this,(function(e){switch(e.label){case 0:return t&&void 0!==t.key?[5,C(y(t.leftChild))]:[2];case 1:return e.sent(),[4,t.key];case 2:return e.sent(),[5,C(y(t.rightChild))];case 3:return e.sent(),[2]}}))};this[Symbol.iterator]=function(){return y(i)},t.forEach((function(t){return n.insert(t)})),Object.freeze(this)}Object.freeze(k);var A=k,M=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.")};function I(t,e){var n=this;void 0===t&&(t=[]),e=e||function(t,e){return te?1:0};var r=0,i=new S;i.color=S.TreeNodeColorType.black,this.size=function(){return r},this.empty=function(){return 0===r},this.clear=function(){r=0,i.key=i.value=void 0,i.leftChild=i.rightChild=i.brother=void 0};var o=function(t){if(!t||void 0===t.key)throw new Error("unknown error");return t.leftChild?o(t.leftChild):t},a=function(t){if(!t||void 0===t.key)throw new Error("unknown error");return t.rightChild?a(t.rightChild):t};this.front=function(){if(!this.empty()){var t=o(i);if(void 0===t.key||void 0===t.value)throw new Error("unknown error");return{key:t.key,value:t.value}}},this.back=function(){if(!this.empty()){var t=a(i);if(void 0===t.key||void 0===t.value)throw new Error("unknown error");return{key:t.key,value:t.value}}},this.forEach=function(t){var e,n,r=0;try{for(var i=T(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}}},this.getElementByPos=function(t){var e,n;if(t<0||t>=this.size())throw new Error("pos must more than 0 and less than set's size");var r=0;try{for(var i=T(this),o=i.next();!o.done;o=i.next()){var a=o.value;if(r===t)return a;++r}}catch(s){e={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}throw new Error("unknown Error")};var s=function(t,n){if(t&&void 0!==t.key&&void 0!==t.value){var r=e(t.key,n);return 0===r?{key:t.key,value:t.value}:r<0?s(t.rightChild,n):s(t.leftChild,n)||{key:t.key,value:t.value}}};this.lowerBound=function(t){return s(i,t)};var l=function(t,n){if(t&&void 0!==t.key&&void 0!==t.value){var r=e(t.key,n);return r<=0?l(t.rightChild,n):l(t.leftChild,n)||{key:t.key,value:t.value}}};this.upperBound=function(t){return l(i,t)};var u=function(t,n){if(t&&void 0!==t.key&&void 0!==t.value){var r=e(t.key,n);return 0===r?{key:t.key,value:t.value}:r>0?u(t.leftChild,n):u(t.rightChild,n)||{key:t.key,value:t.value}}};this.reverseLowerBound=function(t){return u(i,t)};var c=function(t,n){if(t&&void 0!==t.key&&void 0!==t.value){var r=e(t.key,n);return r>=0?c(t.leftChild,n):c(t.rightChild,n)||{key:t.key,value:t.value}}};this.reverseUpperBound=function(t){return c(i,t)};var h=function(t){var e=t.parent;if(!e){if(t===i)return;throw new Error("unknown error")}if(t.color!==S.TreeNodeColorType.red){var n=t.brother;if(!n)throw new Error("unknown error");if(t===e.leftChild){if(n.color===S.TreeNodeColorType.red){n.color=S.TreeNodeColorType.black,e.color=S.TreeNodeColorType.red;var r=e.rotateLeft();i===e&&(i=r),h(t)}else if(n.color===S.TreeNodeColorType.black)if(n.rightChild&&n.rightChild.color===S.TreeNodeColorType.red){n.color=e.color,e.color=S.TreeNodeColorType.black,n.rightChild&&(n.rightChild.color=S.TreeNodeColorType.black);r=e.rotateLeft();i===e&&(i=r),t.color=S.TreeNodeColorType.black}else if(n.rightChild&&n.rightChild.color!==S.TreeNodeColorType.black||!n.leftChild||n.leftChild.color!==S.TreeNodeColorType.red)n.leftChild&&n.leftChild.color!==S.TreeNodeColorType.black||n.rightChild&&n.rightChild.color!==S.TreeNodeColorType.black||(n.color=S.TreeNodeColorType.red,h(e));else{n.color=S.TreeNodeColorType.red,n.leftChild&&(n.leftChild.color=S.TreeNodeColorType.black);r=n.rotateRight();i===n&&(i=r),h(t)}}else if(t===e.rightChild)if(n.color===S.TreeNodeColorType.red){n.color=S.TreeNodeColorType.black,e.color=S.TreeNodeColorType.red;r=e.rotateRight();i===e&&(i=r),h(t)}else if(n.color===S.TreeNodeColorType.black)if(n.leftChild&&n.leftChild.color===S.TreeNodeColorType.red){n.color=e.color,e.color=S.TreeNodeColorType.black,n.leftChild&&(n.leftChild.color=S.TreeNodeColorType.black);r=e.rotateRight();i===e&&(i=r),t.color=S.TreeNodeColorType.black}else if(n.leftChild&&n.leftChild.color!==S.TreeNodeColorType.black||!n.rightChild||n.rightChild.color!==S.TreeNodeColorType.red)n.leftChild&&n.leftChild.color!==S.TreeNodeColorType.black||n.rightChild&&n.rightChild.color!==S.TreeNodeColorType.black||(n.color=S.TreeNodeColorType.red,h(e));else{n.color=S.TreeNodeColorType.red,n.rightChild&&(n.rightChild.color=S.TreeNodeColorType.black);r=n.rotateLeft();i===n&&(i=r),h(t)}}else t.color=S.TreeNodeColorType.black},f=function(t){var e=t;while(e.leftChild||e.rightChild){if(e.rightChild){e=o(e.rightChild);var n=t.key;t.key=e.key,e.key=n;var s=t.value;t.value=e.value,e.value=s,t=e}if(e.leftChild){e=a(e.leftChild);n=t.key;t.key=e.key,e.key=n;s=t.value;t.value=e.value,e.value=s,t=e}}h(e),e&&e.remove(),--r,i.color=S.TreeNodeColorType.black},d=function(t,e){if(!t||void 0===t.key)return!1;var n=d(t.leftChild,e);return!!n||(!!e(t)||d(t.rightChild,e))};this.eraseElementByPos=function(t){if(t<0||t>=r)throw new Error("pos must more than 0 and less than set's size");var e=0;d(i,(function(n){return t===e?(f(n),!0):(++e,!1)}))},this.eraseElementByKey=function(t){if(!this.empty()){var n=v(i,t);void 0!==n&&void 0!==n.key&&0===e(n.key,t)&&f(n)}};var p=function(t,n){if(!t||void 0===t.key)throw new Error("unknown error");var r=e(n,t.key);return r<0?t.leftChild?p(t.leftChild,n):(t.leftChild=new S,t.leftChild.parent=t,t.leftChild.brother=t.rightChild,t.rightChild&&(t.rightChild.brother=t.leftChild),t.leftChild):r>0?t.rightChild?p(t.rightChild,n):(t.rightChild=new S,t.rightChild.parent=t,t.rightChild.brother=t.leftChild,t.leftChild&&(t.leftChild.brother=t.rightChild),t.rightChild):t},g=function(t){var e=t.parent;if(!e){if(t===i)return;throw new Error("unknown error")}if(e.color!==S.TreeNodeColorType.black&&e.color===S.TreeNodeColorType.red){var n=e.brother,r=e.parent;if(!r)throw new Error("unknown error");if(n&&n.color===S.TreeNodeColorType.red)n.color=e.color=S.TreeNodeColorType.black,r.color=S.TreeNodeColorType.red,g(r);else if(!n||n.color===S.TreeNodeColorType.black)if(e===r.leftChild){if(t===e.leftChild){e.color=S.TreeNodeColorType.black,r.color=S.TreeNodeColorType.red;var o=r.rotateRight();r===i&&(i=o)}else if(t===e.rightChild){o=e.rotateLeft();r===i&&(i=o),g(e)}}else if(e===r.rightChild)if(t===e.leftChild){o=e.rotateRight();r===i&&(i=o),g(e)}else if(t===e.rightChild){e.color=S.TreeNodeColorType.black,r.color=S.TreeNodeColorType.red;o=r.rotateLeft();r===i&&(i=o)}}};this.setElement=function(t,n){if(null===t||void 0===t)throw new Error("to avoid some unnecessary errors, we don't suggest you insert null or undefined here");if(null!==n&&void 0!==n){if(this.empty())return++r,i.key=t,i.value=n,void(i.color=S.TreeNodeColorType.black);var o=p(i,t);void 0===o.key||0!==e(o.key,t)?(++r,o.key=t,o.value=n,g(o),i.color=S.TreeNodeColorType.black):o.value=n}else this.eraseElementByKey(t)};var v=function(t,n){if(t&&void 0!==t.key){var r=e(n,t.key);return r<0?v(t.leftChild,n):r>0?v(t.rightChild,n):t}};this.find=function(t){return!!v(i,t)},this.getElementByKey=function(t){var e=v(i,t);if(void 0===(null===e||void 0===e?void 0:e.key)||void 0===(null===e||void 0===e?void 0:e.value))throw new Error("unknown error");return e.value},this.union=function(t){var e=this;t.forEach((function(t){var n=t.key,r=t.value;return e.setElement(n,r)}))},this.getHeight=function(){if(this.empty())return 0;var t=function(e){return e?Math.max(t(e.leftChild),t(e.rightChild))+1:1};return t(i)};var y=function(t){return M(this,(function(e){switch(e.label){case 0:return t&&void 0!==t.key&&void 0!==t.value?[5,T(y(t.leftChild))]:[2];case 1:return e.sent(),[4,{key:t.key,value:t.value}];case 2:return e.sent(),[5,T(y(t.rightChild))];case 3:return e.sent(),[2]}}))};this[Symbol.iterator]=function(){return y(i)},t.forEach((function(t){var e=t.key,r=t.value;return n.setElement(e,r)})),Object.freeze(this)}Object.freeze(I);var E=I,j=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.")};function L(t,e,n){var r=this;if(void 0===t&&(t=[]),void 0===e&&(e=L.initSize),n=n||function(t){var e=0,n="";if("number"===typeof t)e=Math.floor(t),e=(e<<5)-e,e&=e;else{n="string"!==typeof t?JSON.stringify(t):t;for(var r=0;r>>16,e},0!==(e&e-1))throw new Error("initBucketNum must be 2 to the power of n");var i=0,o=[],a=Math.max(L.initSize,Math.min(L.maxSize,e));this.size=function(){return i},this.empty=function(){return 0===i},this.clear=function(){i=0,a=e,o=[]},this.forEach=function(t){var e=0;o.forEach((function(n){n.forEach((function(n){t(n,e++)}))}))};var s=function(t){if(!(t>=L.maxSize)){a=2*t;var e=[];o.forEach((function(r,i){if(!r.empty()){if(r instanceof p&&1===r.size()){var s=r.front();if(void 0===s)throw new Error("unknown error");e[n(s)&a-1]=new p([s])}else if(r instanceof A){var l=new p,u=new p;r.forEach((function(e){var r=n(e);0===(r&t)?l.pushBack(e):u.pushBack(e)})),l.size()>L.untreeifyThreshold?e[i]=new A(l):l.size()&&(e[i]=l),u.size()>L.untreeifyThreshold?e[i+t]=new A(u):u.size()&&(e[i+t]=u)}else{var c=new p,h=new p;r.forEach((function(e){var r=n(e);0===(r&t)?c.pushBack(e):h.pushBack(e)})),c.size()&&(e[i]=c),h.size()&&(e[i+t]=h)}o[i].clear()}})),o=e}};this.insert=function(t){if(null===t||void 0===t)throw new Error("to avoid some unnecessary errors, we don't suggest you insert null or undefined here");var e=n(t)&a-1;if(o[e]){var r=o[e].size();if(o[e]instanceof p){if(o[e].find(t))return;o[e].pushBack(t),o[e].size()>=L.treeifyThreshold&&(o[e]=new A(o[e]))}else o[e].insert(t);var l=o[e].size();i+=l-r}else o[e]=new p([t]),++i;i>a*L.sigma&&s.call(this,a)},this.eraseElementByValue=function(t){var e=n(t)&a-1;if(o[e]){var r=o[e].size();o[e].eraseElementByValue(t),o[e]instanceof A&&o[e].size()<=L.untreeifyThreshold&&(o[e]=new p(o[e]));var s=o[e].size();i+=s-r}},this.find=function(t){var e=n(t)&a-1;return!!o[e]&&o[e].find(t)},this[Symbol.iterator]=function(){return function(){var t,e,n,r,i,s,l;return j(this,(function(u){switch(u.label){case 0:t=0,u.label=1;case 1:if(!(t=a)return[3,10];u.label=2;case 2:u.trys.push([2,7,8,9]),s=void 0,e=P(o[t]),n=e.next(),u.label=3;case 3:return n.done?[3,6]:(r=n.value,[4,r]);case 4:u.sent(),u.label=5;case 5:return n=e.next(),[3,3];case 6:return[3,9];case 7:return i=u.sent(),s={error:i},[3,9];case 8:try{n&&!n.done&&(l=e.return)&&l.call(e)}finally{if(s)throw s.error}return[7];case 9:return++t,[3,1];case 10:return[2]}}))}()},t.forEach((function(t){return r.insert(t)})),Object.freeze(this)}L.initSize=16,L.maxSize=1<<30,L.sigma=.75,L.treeifyThreshold=8,L.untreeifyThreshold=6,L.minTreeifySize=64,Object.freeze(L);var D=L,R=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.")};function B(t,e,n){var r=this;if(void 0===t&&(t=[]),void 0===e&&(e=B.initSize),n=n||function(t){var e,n,r=0,i="";if("number"===typeof t)r=Math.floor(t),r=(r<<5)-r,r&=r;else{i="string"!==typeof t?JSON.stringify(t):t;try{for(var o=N(i),a=o.next();!a.done;a=o.next()){var s=a.value,l=s.charCodeAt(0);r=(r<<5)-r+l,r&=r}}catch(u){e={error:u}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}}return r^=r>>>16,r},0!==(e&e-1))throw new Error("initBucketNum must be 2 to the power of n");var i=0,o=[],a=Math.max(B.initSize,Math.min(B.maxSize,e));this.size=function(){return i},this.empty=function(){return 0===i},this.clear=function(){i=0,a=e,o=[]},this.forEach=function(t){var e=0;o.forEach((function(n){n.forEach((function(n){t(n,e++)}))}))};var s=function(t){if(!(t>=B.maxSize)){a=2*t;var e=[];o.forEach((function(r,i){if(!r.empty()){if(r instanceof p&&1===r.size()){var s=r.front(),l=s.key,u=s.value;e[n(l)&a-1]=new p([{key:l,value:u}])}else if(r instanceof E){var c=new p,h=new p;r.forEach((function(e){var r=n(e.key);0===(r&t)?c.pushBack(e):h.pushBack(e)})),c.size()>B.untreeifyThreshold?e[i]=new E(c):c.size()&&(e[i]=c),h.size()>B.untreeifyThreshold?e[i+t]=new E(h):h.size()&&(e[i+t]=h)}else{var f=new p,d=new p;r.forEach((function(e){var r=n(e.key);0===(r&t)?f.pushBack(e):d.pushBack(e)})),f.size()&&(e[i]=f),d.size()&&(e[i+t]=d)}o[i].clear()}})),o=e}};this.setElement=function(t,e){var r,l;if(null===t||void 0===t)throw new Error("to avoid some unnecessary errors, we don't suggest you insert null or undefined here");if(null!==e&&void 0!==e){var u=n(t)&a-1;if(o[u]){var c=o[u].size();if(o[u]instanceof p){try{for(var h=N(o[u]),f=h.next();!f.done;f=h.next()){var d=f.value;if(d.key===t)return void(d.value=e)}}catch(v){r={error:v}}finally{try{f&&!f.done&&(l=h.return)&&l.call(h)}finally{if(r)throw r.error}}o[u].pushBack({key:t,value:e}),o[u].size()>=B.treeifyThreshold&&(o[u]=new E(o[u]))}else o[u].setElement(t,e);var g=o[u].size();i+=g-c}else++i,o[u]=new p([{key:t,value:e}]);i>a*B.sigma&&s.call(this,a)}else this.eraseElementByKey(t)},this.getElementByKey=function(t){var e,r,i=n(t)&a-1;if(o[i]){if(o[i]instanceof E)return o[i].getElementByKey(t);try{for(var s=N(o[i]),l=s.next();!l.done;l=s.next()){var u=l.value;if(u.key===t)return u.value}}catch(c){e={error:c}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}}},this.eraseElementByKey=function(t){var e,r,s=n(t)&a-1;if(o[s]){var l=o[s].size();if(o[s]instanceof E)o[s].eraseElementByKey(t),o[s].size()<=B.untreeifyThreshold&&(o[s]=new p(o[s]));else{var u=-1;try{for(var c=N(o[s]),h=c.next();!h.done;h=c.next()){var f=h.value;if(++u,f.key===t){o[s].eraseElementByPos(u);break}}}catch(g){e={error:g}}finally{try{h&&!h.done&&(r=c.return)&&r.call(c)}finally{if(e)throw e.error}}}var d=o[s].size();i+=d-l}},this.find=function(t){var e,r,i=n(t)&a-1;if(!o[i])return!1;if(o[i]instanceof E)return o[i].find(t);try{for(var s=N(o[i]),l=s.next();!l.done;l=s.next()){var u=l.value;if(u.key===t)return!0}}catch(c){e={error:c}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}return!1},this[Symbol.iterator]=function(){return function(){var t,e,n,r,i,s,l;return R(this,(function(u){switch(u.label){case 0:t=0,u.label=1;case 1:if(!(t=a)return[3,10];u.label=2;case 2:u.trys.push([2,7,8,9]),s=void 0,e=N(o[t]),n=e.next(),u.label=3;case 3:return n.done?[3,6]:(r=n.value,[4,r]);case 4:u.sent(),u.label=5;case 5:return n=e.next(),[3,3];case 6:return[3,9];case 7:return i=u.sent(),s={error:i},[3,9];case 8:try{n&&!n.done&&(l=e.return)&&l.call(e)}finally{if(s)throw s.error}return[7];case 9:return++t,[3,1];case 10:return[2]}}))}()},t.forEach((function(t){var e=t.key,n=t.value;return r.setElement(e,n)})),Object.freeze(this)}B.initSize=16,B.maxSize=1<<30,B.sigma=.75,B.treeifyThreshold=8,B.untreeifyThreshold=6,B.minTreeifySize=64,Object.freeze(B);var z=B},"3e8a":function(t,e,n){},"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)},"412e":function(t,e,n){"use strict";function r(){}t.exports=r,r.ascii={intersection:"+",through:"-",branchUp:"+",branchDown:"+",fromBelow:".",fromAbove:"'",fromBoth:"+",strafe:"|"},r.unicodeRound={intersection:"╋",through:"━",branchUp:"┻",branchDown:"┳",fromBelow:"╭",fromAbove:"╰",fromBoth:"┣",strafe:"┃"},r.unicodeSharp={intersection:"╋",through:"━",branchUp:"┻",branchDown:"┳",fromBelow:"┏",fromAbove:"┗",fromBoth:"┣",strafe:"┃"}},"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 3!==h.length?void f(e,0,0,0,1):(f(e,l(h[0]),l(h[1]),l(h[2]),g),v(t,e),e);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 x(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 _(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("da84"),i=n("e330"),o=n("d039"),a=n("c6b6"),s=r.Object,l=i("".split);t.exports=o((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"==a(t)?l(t,""):s(t)}:s},"44d2":function(t,e,n){var r=n("b622"),i=n("7c73"),o=n("9bf2"),a=r("unscopables"),s=Array.prototype;void 0==s[a]&&o.f(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){},"466d":function(t,e,n){"use strict";var r=n("c65b"),i=n("d784"),o=n("825a"),a=n("50c4"),s=n("577e"),l=n("1d80"),u=n("dc4a"),c=n("8aa5"),h=n("14c3");i("match",(function(t,e,n){return[function(e){var n=l(this),i=void 0==e?void 0:u(e,t);return i?r(i,e,n):new RegExp(e)[t](s(n))},function(t){var r=o(this),i=s(t),l=n(e,r,i);if(l.done)return l.value;if(!r.global)return h(r,i);var u=r.unicode;r.lastIndex=0;var f,d=[],p=0;while(null!==(f=h(r,i))){var g=s(f[0]);d[p]=g,""===g&&(r.lastIndex=c(i,a(r.lastIndex),u)),p++}return 0===p?null:d}]}))},"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){},4840:function(t,e,n){var r=n("825a"),i=n("5087"),o=n("b622"),a=o("species");t.exports=function(t,e){var n,o=r(t).constructor;return void 0===o||void 0==(n=r(o)[a])?e:i(n)}},"485a":function(t,e,n){var r=n("da84"),i=n("c65b"),o=n("1626"),a=n("861d"),s=r.TypeError;t.exports=function(t,e){var n,r;if("string"===e&&o(n=t.toString)&&!a(r=i(n,t)))return r;if(o(n=t.valueOf)&&!a(r=i(n,t)))return r;if("string"!==e&&o(n=t.toString)&&!a(r=i(n,t)))return r;throw s("Can't convert object to primitive value")}},4930: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}))},"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("9bf2").f,c=n("241c").f,h=n("3a9b"),f=n("44e7"),d=n("577e"),p=n("ad6d"),g=n("9f7f"),v=n("6eeb"),y=n("d039"),m=n("1a2d"),b=n("69f3").enforce,x=n("2626"),_=n("b622"),w=n("fce3"),S=n("107c"),O=_("match"),C=i.RegExp,k=C.prototype,A=i.SyntaxError,M=o(p),T=o(k.exec),I=o("".charAt),E=o("".replace),j=o("".indexOf),P=o("".slice),L=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,D=/a/g,R=/a/g,N=new C(D)!==D,B=g.UNSUPPORTED_Y,z=r&&(!N||B||w||S||y((function(){return R[O]=!1,C(D)!=D||C(R)==R||"/a/i"!=C(D,"i")}))),F=function(t){for(var e,n=t.length,r=0,i="",o=!1;r<=n;r++)e=I(t,r),"\\"!==e?o||"."!==e?("["===e?o=!0:"]"===e&&(o=!1),i+=e):i+="[\\s\\S]":i+=e+I(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=I(t,r),"\\"===e)e+=I(t,++r);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:T(L,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",z)){for(var q=function(t,e){var n,r,i,o,a,u,c=h(k,this),p=f(t),g=void 0===e,v=[],y=t;if(!c&&p&&g&&t.constructor===q)return t;if((p||h(k,t))&&(t=t.source,g&&(e="flags"in y?y.flags:M(y))),t=void 0===t?"":d(t),e=void 0===e?"":d(e),y=t,w&&"dotAll"in D&&(r=!!e&&j(e,"s")>-1,r&&(e=E(e,/s/g,""))),n=e,B&&"sticky"in D&&(i=!!e&&j(e,"y")>-1,i&&(e=E(e,/y/g,""))),S&&(o=V(t),t=o[0],v=o[1]),a=s(C(t,e),c?this:k,q),(r||i||v.length)&&(u=b(a),r&&(u.dotAll=!0,u.raw=q(F(t),n)),i&&(u.sticky=!0),v.length&&(u.groups=v)),t!==y)try{l(a,"source",""===y?"(?:)":y)}catch(m){}return a},H=function(t){t in q||u(q,t,{configurable:!0,get:function(){return C[t]},set:function(e){C[t]=e}})},G=c(C),W=0;G.length>W;)H(G[W++]);k.constructor=q,q.prototype=k,v(i,"RegExp",q)}x("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").Set,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)return!1;if(n.low===t)return++n.low,i("use():"+t),!0;if(n.high===t)return--n.high,i("use():"+t),!0;const r=n.low;return n.low=t+1,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.lowerBound(e);if(n){if(n.low<=t&&t<=n.high)return void o("free():"+t+" has already been vacant");if(n===this.ss.front())t+1===n.low?--n.low:this.ss.insert(e);else{const r=this.ss.reverseLowerBound(e);r.high+1===t?t+1===n.low?(this.ss.eraseElementByValue(r),n.low=r.low):r.high=t:t+1===n.low?n.low=t:this.ss.insert(e)}}else{if(n===this.ss.front())return void this.ss.insert(e);const r=this.ss.reverseLowerBound(e);r.high+1===t?r.high=t: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)}},"4de4":function(t,e,n){"use strict";var r=n("23e7"),i=n("b727").filter,o=n("1dde"),a=o("filter");r({target:"Array",proto:!0,forced:!a},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(t,e,n){"use strict";var r=n("da84"),i=n("0366"),o=n("c65b"),a=n("7b0b"),s=n("9bdd"),l=n("e95a"),u=n("68ee"),c=n("07fa"),h=n("8418"),f=n("9a1f"),d=n("35a1"),p=r.Array;t.exports=function(t){var e=a(t),n=u(this),r=arguments.length,g=r>1?arguments[1]:void 0,v=void 0!==g;v&&(g=i(g,r>2?arguments[2]:void 0));var y,m,b,x,_,w,S=d(e),O=0;if(!S||this==p&&l(S))for(y=c(e),m=n?new this(y):p(y);y>O;O++)w=v?g(e[O],O):e[O],h(m,O,w);else for(x=f(e,S),_=x.next,m=n?new this:[];!(b=o(_,x)).done;O++)w=v?s(x,g,[b.value,O],!0):b.value,h(m,O,w);return m.length=O,m}},"4dfd":function(t,e,n){"use strict";(function(e){var r,i=n("71c0"),o=n("d319"),a=n("3b38"),s=n("3b1b"),l="size";if(void 0!==e.Set&&"function"===typeof e.Set.prototype.values){r=e.Set,t.exports=i;var u,c={}.__proto__===Object.prototype;u=c?function(){this.__proto__=g}:function(){Object.defineProperties(this,p)},Object.defineProperty(r.prototype,"makeObservable",{value:u,writable:!0,configurable:!0,enumerable:!1});var h=r.prototype.clear,f=r.prototype.add,d=r.prototype.delete,p={_dispatchEmptyArray:{value:[]},clear:{value:function(){var t,e=this.size;e&&this.dispatchBeforeOwnPropertyChange(l,e),this.dispatchesRangeChanges&&(t=this.toArray(),this.dispatchBeforeRangeChange(this._dispatchEmptyArray,t,0)),h.call(this),this.dispatchesRangeChanges&&this.dispatchRangeChange(this._dispatchEmptyArray,t,0),e&&this.dispatchOwnPropertyChange(l,0)},writable:!0,configurable:!0},add:{value:function(t){if(!this.has(t)){var e=this.size,n=[t];return this.dispatchBeforeOwnPropertyChange(l,e),this.dispatchesRangeChanges&&this.dispatchBeforeRangeChange(n,this._dispatchEmptyArray,e),f.call(this,t),this.dispatchesRangeChanges&&this.dispatchRangeChange(n,this._dispatchEmptyArray,e),this.dispatchOwnPropertyChange(l,e+1),!0}return!1},writable:!0,configurable:!0},delete:{value:function(t,e){if(this.has(t)){var n=this.size;if(void 0===e){var r=this.values();e=0;while(r.next().value!==t)e++}this.dispatchBeforeOwnPropertyChange(l,n);var i=[t];return this.dispatchesRangeChanges&&this.dispatchBeforeRangeChange(this._dispatchEmptyArray,i,e),d.call(this,t),this.dispatchesRangeChanges&&this.dispatchRangeChange(this._dispatchEmptyArray,i,e),this.dispatchOwnPropertyChange(l,n-1),!0}return!1}}},g=Object.create(r.prototype,p);Object.defineEach(i.prototype,o.prototype,!1,!0,!1,!0),Object.defineProperty(i.prototype,"makePropertyObservable",{value:function(){},writable:!0,configurable:!0,enumerable:!1}),Object.defineEach(i.prototype,a.prototype,!1,!0,!1,!0),Object.defineEach(i.prototype,s.prototype,!1,!0,!1,!0),Object.defineProperty(i,"_setupCollectionSet",{value:v,writable:!0,configurable:!0,enumerable:!1})}else v();function v(){var e=i.CollectionsSet,r=function t(n,r,i,o){return e._init(t,this,n,r,i,o)};r.Set=r,r.from=e.from,i.CollectionsSet=r,r.prototype=new e,r.prototype.constructor=r;var s=n("f060"),u=n("8298");r.prototype.Order=s,r.prototype.Store=u,Object.defineProperty(r.prototype,"_dispatchEmptyArray",{value:[]}),r.prototype.add=function(t){var e=new this.order.Node(t);if(!this.store.has(e)){var n=this.length,r=[t];return this.dispatchBeforeOwnPropertyChange(l,n),this.dispatchesRangeChanges&&this.dispatchBeforeRangeChange(r,this._dispatchEmptyArray,n),this.order.add(t),e=this.order.head.prev,this.store.add(e),this.length++,this.dispatchesRangeChanges&&this.dispatchRangeChange(r,this._dispatchEmptyArray,n),this.dispatchOwnPropertyChange(l,n+1),!0}return!1},r.prototype["delete"]=function(t,e){if(e)throw new Error("Set#delete does not support second argument: equals");var n=new this.order.Node(t);if(this.store.has(n)){n=this.store.get(n);var r=[t];return this.dispatchBeforeOwnPropertyChange(l,this.length),this.dispatchesRangeChanges&&this.dispatchBeforeRangeChange(this._dispatchEmptyArray,r,n.index),this.store["delete"](n),this.order.splice(n,1),this.length--,this.dispatchesRangeChanges&&this.dispatchRangeChange(this._dispatchEmptyArray,r,n.index),this.dispatchOwnPropertyChange(l,this.length),!0}return!1},r.prototype.clear=function(){var t,e=this.length;e&&this.dispatchBeforeOwnPropertyChange(l,e),this.dispatchesRangeChanges&&(t=this.toArray(),this.dispatchBeforeRangeChange(this._dispatchEmptyArray,t,0)),this._clear(),this.dispatchesRangeChanges&&this.dispatchRangeChange(this._dispatchEmptyArray,t,0),e&&this.dispatchOwnPropertyChange(l,0)},Object.addEach(i.CollectionsSet.prototype,o.prototype),Object.addEach(i.CollectionsSet.prototype,a.prototype),i.CollectionsSet.prototype.makeObservable=function(){this.order.makeObservable()},t.exports=r}}).call(this,n("c8ba"))},"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("577e"),u=n("d039"),c=n("addb"),h=n("a640"),f=n("04d1"),d=n("d998"),p=n("2d00"),g=n("512ce"),v=[],y=i(v.sort),m=i(v.push),b=u((function(){v.sort(void 0)})),x=u((function(){v.sort(null)})),_=h("sort"),w=!u((function(){if(p)return p<70;if(!(f&&f>3)){if(d)return!0;if(g)return g<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++)v.push({k:e+r,v:n})}for(v.sort((function(t,e){return e.v-t.v})),r=0;rl(n)?1:-1}};r({target:"Array",proto:!0,forced:S},{sort:function(t){void 0!==t&&o(t);var e=a(this);if(w)return void 0===t?y(e):y(e,t);var n,r,i=[],l=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:x,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:_(t),style:w(t)}]}function x(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 _(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]={}),x=b[l],_=p?r:g?r[e]:(r[e]||{})[l];for(c in p&&(n=e),n)h=!d&&_&&void 0!==_[c],h&&s(b,c)||(f=h?_[c]:n[c],b[c]=p&&"function"!=typeof _[c]?n[c]:y&&h?o(f,r):m&&_[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&&x&&!x[c]&&a(x,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},"51f0":function(t,e,n){"use strict";n("a4dc");var r=n("9a26"),i=n("7b07"),o=n("f15e"),a=n("2c87"),s=n("412e");Object.prototype.hasOwnProperty;function l(t,e,n,r){if(!(this instanceof l))return new l(t,e,n,r);e=e||Object.equals,n=n||Object.hash,r=r||Function.noop,this.contentEquals=e,this.contentHash=n,this.getDefault=r;var i=this;this.buckets=new this.Buckets(null,(function(){return new i.Bucket})),this.length=0,this.addEach(t)}t.exports=l,l.FastSet=l,Object.addEach(l.prototype,o.prototype),Object.addEach(l.prototype,a.prototype),l.from=o.from,l.prototype.Buckets=r,l.prototype.Bucket=i,l.prototype.constructClone=function(t){return new this.constructor(t,this.contentEquals,this.contentHash,this.getDefault)},l.prototype.has=function(t){var e=this.contentHash(t);return this.buckets.get(e).has(t)},l.prototype.get=function(t,e){if(e)throw new Error("FastSet#get does not support second argument: equals");var n=this.contentHash(t),r=this.buckets;return r.has(n)?r.get(n).get(t):this.getDefault(t)},l.prototype["delete"]=function(t,e){if(e)throw new Error("FastSet#delete does not support second argument: equals");var n=this.contentHash(t),r=this.buckets;if(r.has(n)){var i=r.get(n);if(i["delete"](t))return this.length--,0===i.length&&r["delete"](n),!0}return!1},l.prototype.clear=function(){this.buckets.clear(),this.length=0},l.prototype.add=function(t){var e=this.contentHash(t),n=this.buckets;return n.has(e)||n.set(e,new this.Bucket(null,this.contentEquals)),!n.get(e).has(t)&&(n.get(e).add(t),this.length++,!0)},l.prototype.reduce=function(t,e){var n=arguments[2],r=this.buckets,i=0;return r.reduce((function(e,r){return r.reduce((function(e,r){return t.call(n,e,r,i++,this)}),e,this)}),e,this)},l.prototype.one=function(){if(this.length>0)return this.buckets.one().one()},l.prototype.iterate=function(){return this.buckets.valuesArray().flatten().iterate()},l.prototype.log=function(t,e,n,r){t=t||s.unicodeSharp,e=e||this.logNode,n||(n=console.log,r=console),n=n.bind(r);var i,o,a,l,u=this.buckets,c=u.size,h=u.keys(),f=0;while(i=h.next().value)f===c-1?(o=t.fromAbove,a=" "):0===f?(o=t.branchDown,a=t.strafe):(o=t.fromBoth,a=t.strafe),l=u.get(i),n.call(r,o+t.through+t.branchDown+" "+i),l.forEach((function(i,o){var s,u,c;o===l.head.prev?(s=t.fromAbove,u=" "):(s=t.fromBoth,u=t.strafe),e(o,(function(e){c?n.call(r,a+" "+u+" "+e):(n.call(r,a+" "+s+t.through+t.through+e),c=!0)}),(function(e){n.call(r,a+" "+t.strafe+" "+e)}))})),f++},l.prototype.logNode=function(t,e){var n=t.value;Object(n)===n?JSON.stringify(n,null,4).split("\n").forEach((function(t){e(" "+t)})):e(" "+n)}},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("5926"),h=n("50c4"),f=n("577e"),d=n("1d80"),p=n("8aa5"),g=n("dc4a"),v=n("0cb2"),y=n("14c3"),m=n("b622"),b=m("replace"),x=Math.max,_=Math.min,w=o([].concat),S=o([].push),O=o("".indexOf),C=o("".slice),k=function(t){return void 0===t?t:String(t)},A=function(){return"$0"==="a".replace(/./,"$0")}(),M=function(){return!!/./[b]&&""===/./[b]("a","$0")}(),T=!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=M?"$":"$0";return[function(t,n){var r=d(this),o=void 0==t?void 0:g(t,b);return o?i(o,t,r,n):i(e,f(r),t,n)},function(t,i){var a=l(this),s=f(t);if("string"==typeof i&&-1===O(i,o)&&-1===O(i,"$<")){var d=n(e,a,s,i);if(d.done)return d.value}var g=u(i);g||(i=f(i));var m=a.global;if(m){var b=a.unicode;a.lastIndex=0}var A=[];while(1){var M=y(a,s);if(null===M)break;if(S(A,M),!m)break;var T=f(M[0]);""===T&&(a.lastIndex=p(s,h(a.lastIndex),b))}for(var I="",E=0,j=0;j=E&&(I+=C(s,E,L)+z,E=L+P.length)}return I+C(s,E)}]}),!T||!A||M)},"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]:0;if(!t)return console.error("darken: Missing parameters!"),!1;var n=p(t);return!!n&&(n=n.map((function(t,n){return 3===n?t:t-Math.ceil(2.55*e)})).map((function(t){return t<0?0:t})),m(n))}function x(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!t)return console.error("lighten: Missing parameters!"),!1;var n=p(t);return!!n&&(n=n.map((function(t,n){return 3===n?t:t+Math.ceil(2.55*e)})).map((function(t){return t>255?255:t})),m(n))}function _(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;if(!t)return console.error("fade: Missing parameters!"),!1;var n=h(t);if(!n)return!1;var r=[].concat((0,i["default"])(n),[e/100]);return m(r)}var w={fade:_,toHex:y,toRgb:v,darken:b,lighten:x,getOpacity:g,getRgbValue:h,getRgbaValue:p,getColorFromRgbValue:m};e["default"]=w},"53ca":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0");function r(t){return 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},r(t)}},5524:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},5530:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));n("b64b"),n("a4d3"),n("4de4"),n("d3b7"),n("e439"),n("159b"),n("dbb4");var r=n("ade3");function i(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 o(t){for(var e=1;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),_=(0,o["default"])(b,2),w=_[0],S=_[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],j=f>d;if(j){var P=p([E,I]),L=(0,o["default"])(P,2);I=L[0],E=L[1]}var D=x(I,T)&&!x(E,T);return j&&(D=!D),c&&(D=!D),D}function x(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 _(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:_,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.19.1",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},"56ac":function(t,e,n){(function(e,r){var i=n("035d"),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("b639").Buffer,n("4362"))},"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("da84"),i=n("f5df"),o=r.String;t.exports=function(t){if("Symbol"===i(t))throw TypeError("Cannot convert a Symbol value to a string");return o(t)}},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 x(t){return"object"===a(t)&&null!==t}function _(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",j="data-vue-meta",P="data-vue-meta-server-rendered",L="vmid",D="template",R="content",N="ssr",B=10,z=!0,F={keyName:E,attribute:j,ssrAttribute:P,tagIDKeyName:L,contentKeyName:R,metaTemplateKeyName:D,waitOnDestroyed:z,debounceWait:B,ssrAppId:N},V=Object.keys(T),q=[V[12],V[13]],H=[V[1],V[2],"changed"].concat(q),G=[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"],Z=["body","pbody"],K=["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(H,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 x(t)?St(t,e,n,!0):a(t)})):x(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)xt(e,t);else if(1===n)for(var i in e[t])xt(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]=_(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,G.forEach((function(t){if(e[t])for(var n in e[t])n in e[t]&&void 0===e[t][n]&&(it(K,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 jt(t){return"complete"===(t||document).readyState}function Pt(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,Pt("".concat(e,"[data-").concat(i,'="').concat(t[i],'"]'),t.callback))})),r&&o?Dt():o}function Dt(){jt()?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 zt(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(K,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(H,h))if("title"!==h){if(it(G,h)){var f=h.substr(0,4);zt(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 Ft(n.title);return{tagsAdded:u,tagsRemoved:c}}function Ht(t,e,n){return{set:function(r){return Gt(t,e,n,r)},remove:function(){return Wt(t,e,n)}}}function Gt(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(G);try{for(o.s();!(r=o.n()).done;){var a=r.value,s=a.substr(0,4);zt(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&&_(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 Zt(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+=K.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 Kt(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(Z));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&&K.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(H.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 Kt(t,e,r.data[e],i);if(G.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 Zt(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,_t,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 Ht(e,n,t)}}}function ne(t,e){e=mt(e);var n=Yt(e,t,_t),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){var n=Math.ceil,r=Math.floor;t.exports=function(t){var e=+t;return e!==e||0===e?0:(e>0?r:n)(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("da84"),i=n("1626"),o=n("0d51"),a=r.TypeError;t.exports=function(t){if(i(t))return t;throw a(o(t)+" is not a function")}},"5a34":function(t,e,n){var r=n("da84"),i=n("44e7"),o=r.TypeError;t.exports=function(t){if(i(t))throw o("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 _(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=x(o,n,t),l=s+r+5+e.textWidth;l>=i&&(o=n,s=x(o,n,t),a.push([])),e.iconPosition=[s,0],e.textPosition=[s+r+5,0],a.slice(-1)[0].push(e)})),a}function x(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 _(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:j(t,s),style:P(t,s),click:D(t,s,e)}}))}function j(t,e){var n=t.data[e],r=n.textPosition,i=n.name;return{content:i,position:r}}function P(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){},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)}},"64f6":function(t,e,n){"use strict";n("a4dc");var r=n("1344"),i=n("f15e"),o=n("e13a"),a=n("d319"),s=n("3b1b");function l(t,e,n,i,o){if(!(this instanceof l))return new l(t,e,n,i,o);n=n||Object.equals,i=i||Object.hash,o=o||Function.noop,this.contentEquals=n,this.contentHash=i,this.getDefault=o,this.store=new r(void 0,e,(function(t,e){return n(t.key,e.key)}),(function(t){return i(t.key)})),this.length=0,this.addEach(t)}t.exports=l,l.LruMap=l,Object.addEach(l.prototype,i.prototype),Object.addEach(l.prototype,o.prototype),Object.addEach(l.prototype,a.prototype),Object.addEach(l.prototype,s.prototype),Object.defineProperty(l.prototype,"size",i._sizePropertyDescriptor),l.from=i.from,l.prototype.constructClone=function(t){return new this.constructor(t,this.maxLength,this.contentEquals,this.contentHash,this.getDefault)},l.prototype.log=function(t,e){e=e||this.stringify,this.store.log(t,e)},l.prototype.stringify=function(t,e){return e+JSON.stringify(t.key)+": "+JSON.stringify(t.value)},l.prototype.addMapChangeListener=function(){if(!this.dispatchesMapChanges){var t=this;this.store.addBeforeRangeChangeListener((function(e,n){e.length&&n.length&&t.dispatchBeforeMapChange(n[0].key,void 0)})),this.store.addRangeChangeListener((function(e,n){e.length&&n.length&&t.dispatchMapChange(n[0].key,void 0)}))}s.prototype.addMapChangeListener.apply(this,arguments)}},"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("e2cc"),a=n("0366"),s=n("19aa"),l=n("2266"),u=n("7dd0"),c=n("2626"),h=n("83ab"),f=n("f183").fastKey,d=n("69f3"),p=d.set,g=d.getterFor;t.exports={getConstructor:function(t,e,n,u){var c=t((function(t,r){s(t,d),p(t,{type:e,index:i(null),first:void 0,last:void 0,size:0}),h||(t.size=0),void 0!=r&&l(r,t[u],{that:t,AS_ENTRIES:n})})),d=c.prototype,v=g(e),y=function(t,e,n){var r,i,o=v(t),a=m(t,e);return a?a.value=n:(o.last=a={index:i=f(e,!0),key:e,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),h?o.size++:t.size++,"F"!==i&&(o.index[i]=a)),t},m=function(t,e){var n,r=v(t),i=f(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==e)return n};return o(d,{clear:function(){var t=this,e=v(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,h?e.size=0:t.size=0},delete:function(t){var e=this,n=v(e),r=m(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),h?n.size--:e.size--}return!!r},forEach:function(t){var e,n=v(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!!m(this,t)}}),o(d,n?{get:function(t){var e=m(this,t);return e&&e.value},set:function(t,e){return y(this,0===t?0:t,e)}}:{add:function(t){return y(this,t=0===t?0:t,t)}}),h&&r(d,"size",{get:function(){return v(this).size}}),c},setStrong:function(t,e,n){var r=e+" Iterator",i=g(e),o=g(r);u(t,e,(function(t,e){p(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)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),c(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}return p||!!d(f,l(t))};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"),x=n("0983"),_=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,j=C.f,P=r.Symbol,L=r.JSON,D=L&&L.stringify,R="prototype",N=d("_hidden"),B=d("toPrimitive"),z={}.propertyIsEnumerable,F=c("symbol-registry"),V=c("symbols"),q=c("op-symbols"),H=Object[R],G="function"==typeof P&&!!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(H,e);r&&delete H[e],E(t,e,n),r&&t!==H&&E(H,e,r)}:E,Y=function(t){var e=V[t]=O(P[R]);return e._k=t,e},X=G&&"symbol"==typeof P.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof P},Z=function(t,e,n){return t===H&&Z(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)},K=function(t,e){m(t);var n,r=v(e=_(e)),i=0,o=r.length;while(o>i)Z(t,n=r[i++],e[n]);return t},Q=function(t,e){return void 0===e?O(t):K(O(t),e)},J=function(t){var e=z.call(this,t=w(t,!0));return!(this===H&&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=_(t),e=w(e,!0),t!==H||!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=j(_(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===H,r=j(n?q:_(t)),o=[],a=0;while(r.length>a)!i(V,e=r[a++])||n&&!i(H,e)||o.push(V[e]);return o};G||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(n){this===H&&e.call(q,n),i(this,N)&&i(this[N],t)&&(this[N][t]=!1),$(this,t,S(1,n))};return o&&U&&$(H,t,{configurable:!0,set:e}),Y(t)},s(P[R],"toString",(function(){return this._k})),k.f=tt,M.f=Z,n("6438").f=C.f=et,n("1917").f=J,A.f=nt,o&&!n("e444")&&s(H,"propertyIsEnumerable",J,!0),p.f=function(t){return Y(d(t))}),a(a.G+a.W+a.F*!G,{Symbol:P});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*!G,"Symbol",{for:function(t){return i(F,t+="")?F[t]:F[t]=P(t)},keyFor:function(t){if(!X(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){U=!0},useSimple:function(){U=!1}}),a(a.S+a.F*!G,"Object",{create:Q,defineProperty:Z,defineProperties:K,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(x(t))}}),L&&a(a.S+a.F*(!G||u((function(){var t=P();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)}}),P[R][B]||n("051b")(P[R],B,P[R].valueOf),h(P,"Symbol"),h(Math,"Math",!0),h(r.JSON,"JSON",!0)},6981:function(t,e,n){ /*! * clipboard.js v2.0.6 * https://clipboardjs.com/ * * Licensed MIT © Zeno Rocha */ !function(e,n){t.exports=n()}(0,(function(){return n={},t.m=e=[function(t,e){t.exports=function(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}},function(t,e){function n(){}n.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){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),r=0,i=n.length;rt.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=_,S=Object(m["a"])(w,r,i,!1,null,null,null),O=(S.exports,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)}),C=[];function k(t,e){return 1===arguments.length?parseInt(Math.random()*t+1,10):parseInt(Math.random()*(e-t+1)+t,10)}function A(t,e){let n;return function(){clearTimeout(n);const[r,i]=[this,arguments];n=setTimeout(()=>{e.apply(r,i)},t)}}function M(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 T(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 I(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 E={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=A(100,t)},bindDomResizeCallback(){const{dom:t,debounceInitWHFun:e}=this;this.domObserver=M(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()}},j={name:"DvBorderBox1",mixins:[E],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()}},P=j,L=Object(m["a"])(P,O,C,!1,null,null,null),D=(L.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)}),R=[],N={name:"DvBorderBox10",mixins:[E],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()}},B=N,z=Object(m["a"])(B,D,R,!1,null,null,null),F=(z.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)])}),V=[],q=(n("a9e3"),n("53b8")),H={name:"DvBorderBox11",mixins:[E],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=I();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:q["fade"]},mounted:function(){var t=this.mergeColor;t()}},G=H,W=Object(m["a"])(G,F,V,!1,null,null,null),U=(W.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)])}),$=[],Y={name:"DvBorderBox12",mixins:[E],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){var t=I();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:q["fade"]},mounted:function(){var t=this.mergeColor;t()}},X=Y,Z=Object(m["a"])(X,U,$,!1,null,null,null),K=(Z.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)])}),Q=[],J={name:"DvBorderBox13",mixins:[E],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()}},tt=J,et=Object(m["a"])(tt,K,Q,!1,null,null,null),nt=et.exports,rt=function(t){t.component(nt.name,nt)},it=(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)])}),ot=[],at={name:"DvBorderBox2",mixins:[E],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()}},st=at,lt=Object(m["a"])(st,it,ot,!1,null,null,null),ut=(lt.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)])}),ct=[],ht={name:"DvBorderBox3",mixins:[E],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()}},ft=ht,dt=Object(m["a"])(ft,ut,ct,!1,null,null,null),pt=(dt.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)])}),gt=[],vt={name:"DvBorderBox4",mixins:[E],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()}},yt=vt,mt=Object(m["a"])(yt,pt,gt,!1,null,null,null),bt=(mt.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)])}),xt=[],_t={name:"DvBorderBox5",mixins:[E],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()}},wt=_t,St=Object(m["a"])(wt,bt,xt,!1,null,null,null),Ot=(St.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)])}),Ct=[],kt={name:"DvBorderBox6",mixins:[E],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()}},At=kt,Mt=Object(m["a"])(At,Ot,Ct,!1,null,null,null),Tt=(Mt.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)])}),It=[],Et={name:"DvBorderBox7",mixins:[E],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()}},jt=Et,Pt=Object(m["a"])(jt,Tt,It,!1,null,null,null),Lt=(Pt.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)])}),Dt=[],Rt=(n("99af"),{name:"DvBorderBox8",mixins:[E],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=I();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()}}),Nt=Rt,Bt=Object(m["a"])(Nt,Lt,Dt,!1,null,null,null),zt=Bt.exports,Ft=function(t){t.component(zt.name,zt)},Vt=(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)])}),qt=[],Ht={name:"DvBorderBox9",mixins:[E],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){var t=I();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()}},Gt=Ht,Wt=Object(m["a"])(Gt,Vt,qt,!1,null,null,null),Ut=(Wt.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)}),$t=[],Yt=(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()}}),Xt=Yt,Zt=Object(m["a"])(Xt,Ut,$t,!1,null,null,null),Kt=Zt.exports,Qt=function(t){t.component(Kt.name,Kt)},Jt=(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"})])}),te=[],ee={name:"DvCharts",mixins:[E],props:{option:{type:Object,default:function(){return{}}}},data:function(){var t=I();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()}}},ne=ee,re=Object(m["a"])(ne,Jt,te,!1,null,null,null),ie=(re.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)])}),oe=[],ae=(n("4e82"),{name:"DvConicalColumnChart",mixins:[E],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)])}),ce=[],he={name:"DvDecoration1",mixins:[E],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()}},fe=he,de=Object(m["a"])(fe,ue,ce,!1,null,null,null),pe=(de.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"}})])])])}),ge=[],ve={name:"DvDecoration10",mixins:[E],props:{color:{type:Array,default:function(){return[]}}},data:function(){var t=I();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()}},ye=ve,me=Object(m["a"])(ye,pe,ge,!1,null,null,null),be=(me.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)])}),xe=[],_e={name:"DvDecoration11",mixins:[E],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:q["fade"]},mounted:function(){var t=this.mergeColor;t()}},we=_e,Se=Object(m["a"])(we,be,xe,!1,null,null,null),Oe=(Se.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)])}),Ce=[],ke=(n("a15b"),{name:"DvDecoration12",mixins:[E],props:{color:{type:Array,default:function(){return[]}},scanDur:{type:Number,default:3},haloDur:{type:Number,default:2}},data:function(){var t=I();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(q["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:q["fade"]}}),Ae=ke,Me=Object(m["a"])(Ae,Oe,Ce,!1,null,null,null),Te=(Me.exports,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"}})])])])}),Ie=[],Ee={name:"DvDecoration2",mixins:[E],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()}},je=Ee,Pe=Object(m["a"])(je,Te,Ie,!1,null,null,null),Le=(Pe.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)])}),De=[],Re={name:"DvDecoration3",mixins:[E],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()}},Ne=Re,Be=Object(m["a"])(Ne,Le,De,!1,null,null,null),ze=(Be.exports,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}})])])])}),Fe=[],Ve={name:"DvDecoration4",mixins:[E],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()}},qe=Ve,He=Object(m["a"])(qe,ze,Fe,!1,null,null,null),Ge=(He.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"}})])])])}),We=[],Ue={name:"DvDecoration5",mixins:[E],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()}},$e=Ue,Ye=Object(m["a"])($e,Ge,We,!1,null,null,null),Xe=(Ye.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)])}),Ze=[],Ke={name:"DvDecoration6",mixins:[E],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?k(.7*a,a):k(.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()}},Qe=Ke,Je=Object(m["a"])(Qe,Xe,Ze,!1,null,null,null),tn=(Je.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)}),en=[],nn={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()}},rn=nn,on=Object(m["a"])(rn,tn,en,!1,null,null,null),an=(on.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)}})])])}),sn=[],ln={name:"DvDecoration8",mixins:[E],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()}},un=ln,cn=Object(m["a"])(un,an,sn,!1,null,null,null),hn=(cn.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)}),fn=[],dn={name:"DvDecoration9",mixins:[E],props:{color:{type:Array,default:function(){return[]}},dur:{type:Number,default:3}},data:function(){var t=I();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:q["fade"]},mounted:function(){var t=this.mergeColor;t()}},pn=dn,gn=Object(m["a"])(pn,hn,fn,!1,null,null,null),vn=(gn.exports,n("bc96"),function(t){t.component(x.name,x)}),yn=(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()])}),mn=[],bn=n("1da1"),xn=(n("96cf"),{name:"DvFlylineChart",mixins:[E],props:{config:{type:Object,default:function(){return{}}},dev:{type:Boolean,default:!1}},data:function(){var t=I();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(bn["a"])(regeneratorRuntime.mark((function e(){var n,r,i,o,a;return regeneratorRuntime.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=T([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(T([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)+" ")])])])}),Vn=[],qn=(n("ac1f"),n("5319"),{name:"DvPercentPond",props:{config:{type:Object,default:function(){return{}}}},data:function(){var t=I();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(bn["a"])(regeneratorRuntime.mark((function e(){var n,r,i;return regeneratorRuntime.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(bn["a"])(regeneratorRuntime.mark((function e(){var n,r,i,o,a;return regeneratorRuntime.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()}}),Hn=qn,Gn=Object(m["a"])(Hn,Fn,Vn,!1,null,null,null),Wn=(Gn.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()])}),Un=[],$n=(n("fb6a"),n("a434"),{name:"DvScrollBoard",mixins:[E],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(bn["a"])(regeneratorRuntime.mark((function n(){var r,i,a,s,l,u,c,h,f,d,p,g,v,y,m,b,x,_;return regeneratorRuntime.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,x=f.slice(c),x.push.apply(x,Object(o["a"])(f.slice(0,c))),e.rows=x.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,_=c-m,_>=0&&(c=_),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()}}),Yn=$n,Xn=Object(m["a"])(Yn,Wn,Un,!1,null,null,null),Zn=(Xn.exports,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)}),Kn=[],Qn={name:"DvScrollRankingBoard",mixins:[E],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(bn["a"])(regeneratorRuntime.mark((function n(){var r,i,a,s,l,u,c,h,f,d,p,g,v,y,m;return regeneratorRuntime.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()}},Jn=Qn,tr=Object(m["a"])(Jn,Zn,Kn,!1,null,null,null),er=(tr.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+";"})])}),nr=[],rr={name:"DvWaterLevelPond",props:{config:Object,default:function(){return{}}},data:function(){var t=I();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(bn["a"])(regeneratorRuntime.mark((function n(){var r,i,o,a,s;return regeneratorRuntime.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=[]}},ir=rr,or=Object(m["a"])(ir,er,nr,!1,null,null,null);or.exports},"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("6eeb"),l=n("f183"),u=n("2266"),c=n("19aa"),h=n("1626"),f=n("861d"),d=n("d039"),p=n("1c7e"),g=n("d44e"),v=n("7156");t.exports=function(t,e,n){var y=-1!==t.indexOf("Map"),m=-1!==t.indexOf("Weak"),b=y?"set":"add",x=i[t],_=x&&x.prototype,w=x,S={},O=function(t){var e=o(_[t]);s(_,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(m&&!f(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return m&&!f(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(m&&!f(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})},C=a(t,!h(x)||!(m||_.forEach&&!d((function(){(new x).entries().next()}))));if(C)w=n.getConstructor(e,t,y,b),l.enable();else if(a(t,!0)){var k=new w,A=k[b](m?{}:-0,1)!=k,M=d((function(){k.has(1)})),T=p((function(t){new x(t)})),I=!m&&d((function(){var t=new x,e=5;while(e--)t[b](e,e);return!t.has(-0)}));T||(w=e((function(t,e){c(t,_);var n=v(new x,t,w);return void 0!=e&&u(e,n[b],{that:n,AS_ENTRIES:y}),n})),w.prototype=_,_.constructor=w),(M||I)&&(O("delete"),O("has"),y&&O("get")),(I||A)&&O(b),m&&_.clear&&delete _.clear}return S[t]=w,r({global:!0,forced:w!=x},S),g(w,t),m||n.setStrong(w,t,y),w}},"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 x})),n.d(e,"extend",(function(){return _})),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 j})),n.d(e,"keys",(function(){return P})),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 z})),n.d(e,"isStringSafe",(function(){return F})),n.d(e,"isNumber",(function(){return V})),n.d(e,"isObject",(function(){return q})),n.d(e,"isBuiltInObject",(function(){return H})),n.d(e,"isTypedArray",(function(){return G})),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 Z})),n.d(e,"retrieve2",(function(){return K})),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},"6eeb":function(t,e,n){var r=n("da84"),i=n("1626"),o=n("1a2d"),a=n("9112"),s=n("ce4e"),l=n("8925"),u=n("69f3"),c=n("5e77").CONFIGURABLE,h=u.get,f=u.enforce,d=String(String).split("String");(t.exports=function(t,e,n,l){var u,h=!!l&&!!l.unsafe,p=!!l&&!!l.enumerable,g=!!l&&!!l.noTargetGet,v=l&&void 0!==l.name?l.name:e;i(n)&&("Symbol("===String(v).slice(0,7)&&(v="["+String(v).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!o(n,"name")||c&&n.name!==v)&&a(n,"name",v),u=f(n),u.source||(u.source=d.join("string"==typeof v?v:""))),t!==r?(h?!g&&t[e]&&(p=!0):delete t[e],p?t[e]=n:a(t,e,n)):p?t[e]=n:s(e,n)})(Function.prototype,"toString",(function(){return i(this)&&h(this).source||l(this)}))},"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=P,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 x(t,e,n);case"puback":case"pubrec":case"pubrel":case"pubcomp":return _(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 x=0;return x|=null!=f?r.USERNAME_MASK:0,x|=null!=d?r.PASSWORD_MASK:0,x|=l&&l.retain?r.WILL_RETAIN_MASK:0,x|=l&&l.qos?l.qos<0&&p(n,d),null!=y&&y.write(),l("publish: payload: %o",f),n.write(f)}function _(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 j(t,e,n){E(t,e),E(t,n)}function P(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(){F(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 z(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]])),j(t,o.toString(),i.toString())}):(t.write(e.from([r.properties[n]])),j(t,o.toString(),a.toString()))});break;default:return t.emit("error",new Error(`Invalid property ${n} value: ${i}`)),!1}}function F(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;e0)return this.values().next().value},r.prototype.pop=function(){if(this.size){var t,e,n=this.values();while(t=n.next().value)e=t;return this["delete"](e,this.size-1),e}},r.prototype.shift=function(){if(this.size){var t=this.values().next().value;return this["delete"](t,0),t}},Object.defineProperty(r.prototype,"length",{get:function(){return this.size},enumerable:!0,configurable:!0}),r.from=function(t){var e=new this;return e.addEach(t),e},Object.addEach(r.prototype,o.prototype,!1),Object.addEach(r.prototype,a.prototype,!1));var s=n("7b07"),l=n("51f0"),u=n("0eac");i=function t(e,n,r,i){return t._init(t,this,e,n,r,i)},i._init=function(t,e,n,r,i,o){if(!(e instanceof t))return new t(n,r,i,o);r=r||Object.equals,i=i||Object.hash,o=o||Function.noop,e.contentEquals=r,e.contentHash=i,e.getDefault=o,e.order=new e.Order(void 0,r),e.store=new e.Store(void 0,(function(t,e){return r(t.value,e.value)}),(function(t){return i(t.value)})),e.length=0,e.addEach(n)},i.Set=i,i.CollectionsSet=i,Object.addEach(i.prototype,o.prototype),Object.addEach(i.prototype,a.prototype),i.from=o.from,Object.defineProperty(i.prototype,"size",o._sizePropertyDescriptor),i.prototype.Order=s,i.prototype.Store=l,i.prototype.constructClone=function(t){return new this.constructor(t,this.contentEquals,this.contentHash,this.getDefault)},i.prototype.has=function(t){var e=new this.order.Node(t);return this.store.has(e)},i.prototype.get=function(t,e){if(e)throw new Error("Set#get does not support second argument: equals");var n=new this.order.Node(t);return n=this.store.get(n),n?n.value:this.getDefault(t)},i.prototype.add=function(t){var e=new this.order.Node(t);if(!this.store.has(e)){this.length;return this.order.add(t),e=this.order.head.prev,this.store.add(e),this.length++,!0}return!1},i.prototype["delete"]=function(t,e){if(e)throw new Error("Set#delete does not support second argument: equals");var n=new this.order.Node(t);return!!this.store.has(n)&&(n=this.store.get(n),this.store["delete"](n),this.order.splice(n,1),this.length--,!0)},i.prototype.pop=function(){if(this.length){var t=this.order.head.prev.value;return this["delete"](t),t}},i.prototype.shift=function(){if(this.length){var t=this.order.head.next.value;return this["delete"](t),t}},i.prototype.one=function(){if(this.length>0)return this.store.one().value},i.prototype.clear=function(){this.store.clear(),this.order.clear(),this.length=0},Object.defineProperty(i.prototype,"_clear",{value:i.prototype.clear}),i.prototype.reduce=function(t,e){var n=arguments[2],r=this.order,i=0;return r.reduce((function(e,r){return t.call(n,e,r,i++,this)}),e,this)},i.prototype.reduceRight=function(t,e){var n=arguments[2],r=this.order,i=this.length-1;return r.reduceRight((function(e,r){return t.call(n,e,r,i--,this)}),e,this)},i.prototype.iterate=function(){return this.order.iterate()},i.prototype.values=function(){return new u(this.valuesArray(),!0)},i.prototype.log=function(){var t=this.store;return t.log.apply(t,arguments)},r?(r.prototype.valuesArray=a.prototype.valuesArray,r.prototype.entriesArray=a.prototype.entriesArray,t.exports=r,r.CollectionsSet=i):t.exports=i}).call(this,n("c8ba"))},"726e":function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"d",(function(){return h})),n.d(e,"e",(function(){return f}));var r=12,i="sans-serif",o=r+"px "+i,a=20,s=100,l="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function u(t){var e={};if("undefined"===typeof JSON)return e;for(var n=0;n=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=_(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:F}),(0,l.doUpdate)({chart:t,series:r,key:"pieOutsideLabelLine",getGraphConfig:H,getStartGraphConfig:G}),(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=x(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=j(t),n=j(t,!1);e=P(e),n=P(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 j(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 P(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:z(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 z(t,e){var n=t.pieStyle,r=t.data,i=r[e],o=i.color;return(0,h.deepMerge)({fill:o},n)}function F(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 H(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 G(t){var e=t.data,n=H(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:Z(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 Z(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},"746f":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)})}},"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},"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 x})),n.d(e,"o",(function(){return _})),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 x(t){return"linear"===t.type}function _(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("b639").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(){}}}()},"7b07":function(t,e,n){"use strict";t.exports=o;n("a4dc");var r=n("f15e"),i=n("7f2a");function o(t,e,n){return o._init(o,this,t,e,n)}function a(t){this.head=t,this.at=t.next}function s(t){this.value=t,this.prev=null,this.next=null}o._init=function(t,e,n,r,i){if(!(e instanceof t))return new t(n,r,i);var o=e.head=new e.Node;o.next=o,o.prev=o,e.contentEquals=r||Object.equals,e.getDefault=i||Function.noop,e.length=0,e.addEach(n)},o.List=o,Object.addEach(o.prototype,r.prototype),Object.addEach(o.prototype,i.prototype),o.from=r.from,o.prototype.constructClone=function(t){return new this.constructor(t,this.contentEquals,this.getDefault)},o.prototype.find=function(t,e,n){e=e||this.contentEquals;var r=this.head,i=this.scan(n,r.next);while(i!==r){if(e(i.value,t))return i;i=i.next}},o.prototype.findLast=function(t,e,n){e=e||this.contentEquals;var r=this.head,i=this.scan(n,r.prev);while(i!==r){if(e(i.value,t))return i;i=i.prev}},o.prototype.has=function(t,e){return!!this.find(t,e)},o.prototype.get=function(t,e){var n=this.find(t,e);return n?n.value:this.getDefault(t)},o.prototype["delete"]=function(t,e){var n=this.findLast(t,e);return!!n&&(n["delete"](),this.length--,!0)},o.prototype.deleteAll=function(t,e){e=e||this.contentEquals;var n=this.head,r=n.next,i=0;while(r!==n)e(t,r.value)&&(r["delete"](),i++),r=r.next;return this.length-=i,i},o.prototype.clear=function(){this.head.next=this.head.prev=this.head,this.length=0},o.prototype.add=function(t){var e=new this.Node(t);return this._addNode(e)},o.prototype._addNode=function(t){return this.head.addBefore(t),this.length++,!0},o.prototype.push=function(){for(var t=this.head,e=0;e=0){t=n.next;while(r)if(r--,t=t.next,t==n)break}else{t=n;while(r<0)if(r++,t=t.prev,t==n)break}return t}return t||e},o.prototype.slice=function(t,e){var n=[],r=this.head;t=this.scan(t,r.next),e=this.scan(e,r);while(t!==e&&t!==r)n.push(t.value),t=t.next;return n},o.prototype.splice=function(t,e){return this.swap(t,e,Array.prototype.slice.call(arguments,2))},o.prototype.swap=function(t,e,n,r,i){var o=t;t=this.scan(t,this.head),null==e&&(e=1/0),n=Array.from(n);var a=[],s=t;while(e--&&e>=0&&s!==this.head)a.push(s.value),s=s.next;r&&r.call(this,t,n,a);s=t;var l=0;for(s=t;l>>0;if("function"!==typeof t)throw new TypeError("predicate must be a function");var r=arguments[1],i=0;while(i0);return-1})),u("swap",(function(t,e,n){var r,i,o,l,u;if(t>this.length&&(this.length=t),"undefined"!==typeof n){if(r=[t,e],Array.isArray(n)||(n=s.call(n)),o=0,i=n.length,i<1e3){for(o;o0&&(this[0]=t)})),u("peekBack",(function(){if(this.length>0)return this[this.length-1]})),u("pokeBack",(function(t){this.length>0&&(this[this.length-1]=t)})),u("one",(function(){for(var t in this)if(Object.owns(this,t))return this[t]})),Array.prototype.clear||u("clear",(function(){return this.length=0,this})),u("compare",(function(t,e){var n,r,o,a,s;if(e=e||Object.compare,this===t)return 0;if(!t||!Array.isArray(t))return i.prototype.compare.call(this,t,e);for(r=this.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},x=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}x="undefined"!=typeof document?document.domain&&r?m(r):b():m(r);var t=a.length;while(t--)delete x[d][a[t]];return x()};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=x(),void 0===e?n:o(n,e)}},"7cc8":function(t,e,n){},"7d72":function(t,e,n){"use strict";var r=n("8707").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 n1?arguments[1]:void 0)}}),o(a)},"7dd0":function(t,e,n){"use strict";var r=n("23e7"),i=n("c65b"),o=n("c430"),a=n("5e77"),s=n("1626"),l=n("9ed3"),u=n("e163"),c=n("d2bb"),h=n("d44e"),f=n("9112"),d=n("6eeb"),p=n("b622"),g=n("3f8c"),v=n("ae93"),y=a.PROPER,m=a.CONFIGURABLE,b=v.IteratorPrototype,x=v.BUGGY_SAFARI_ITERATORS,_=p("iterator"),w="keys",S="values",O="entries",C=function(){return this};t.exports=function(t,e,n,a,p,v,k){l(n,e,a);var A,M,T,I=function(t){if(t===p&&D)return D;if(!x&&t in P)return P[t];switch(t){case w:return function(){return new n(this,t)};case S:return function(){return new n(this,t)};case O:return function(){return new n(this,t)}}return function(){return new n(this)}},E=e+" Iterator",j=!1,P=t.prototype,L=P[_]||P["@@iterator"]||p&&P[p],D=!x&&L||I(p),R="Array"==e&&P.entries||L;if(R&&(A=u(R.call(new t)),A!==Object.prototype&&A.next&&(o||u(A)===b||(c?c(A,b):s(A[_])||d(A,_,C)),h(A,E,!0,!0),o&&(g[E]=C))),y&&p==S&&L&&L.name!==S&&(!o&&m?f(P,"name",S):(j=!0,D=function(){return i(L,this)})),p)if(M={values:I(S),keys:v?D:I(w),entries:I(O)},k)for(T in M)(x||j||!(T in P))&&d(P,T,M[T]);else r({target:e,proto:!0,forced:x||j},M);return o&&!k||P[_]===D||d(P,_,D,{name:p}),g[e]=D,M}},"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;i=n?t:e(r[0],r[1]):t}),0);return 0===i?this.length-t.length:i},i.prototype.toJSON=function(){return this.toArray()}},"7f9a":function(t,e,n){var r=n("da84"),i=n("1626"),o=n("8925"),a=r.WeakMap;t.exports=i(a)&&/native code/.test(o(a))},8096:function(t,e,n){},8119:function(t,e,n){n("693d"),n("dfe5"),n("301c"),n("4e71"),t.exports=n("5524").Symbol},"81d5":function(t,e,n){"use strict";var r=n("7b0b"),i=n("23cb"),o=n("07fa");t.exports=function(t){var e=r(this),n=o(e),a=arguments.length,s=i(a>1?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("da84"),i=n("861d"),o=r.String,a=r.TypeError;t.exports=function(t){if(i(t))return t;throw a(o(t)+" is not an object")}},8261:function(t,e,n){},8298:function(t,e,n){"use strict";n("a4dc");var r=n("51f0"),i=n("d319");t.exports=r,Object.addEach(r.prototype,i.prototype)},8311:function(t,e,n){"use strict";(function(e){const r=n("035d").Transform,i=n("56ac");let o,a,s;function l(){const t=new r;return t._write=function(t,e,n){o.send({data:t.buffer,success:function(){n()},fail:function(t){n(new Error(t))}})},t._flush=function(t){o.close({success:function(){t()}})},t}function u(t){t.hostname||(t.hostname="localhost"),t.path||(t.path="/"),t.wsOptions||(t.wsOptions={})}function c(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 h(){o.onOpen((function(){s.setReadable(a),s.setWritable(a),s.emit("connect")})),o.onMessage((function(t){let n=t.data;n=n instanceof ArrayBuffer?e.from(n):e.from(n,"utf8"),a.push(n)})),o.onClose((function(){s.end(),s.destroy()})),o.onError((function(t){s.destroy(new Error(t.errMsg))}))}function f(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";u(e);const r=c(e,t);o=wx.connectSocket({url:r,protocols:[n]}),a=l(),s=i.obj(),s._destroy=function(t,e){o.close({success:function(){e&&e(t)}})};const f=s.destroy;return s.destroy=function(){s.destroy=f;const t=this;setTimeout((function(){o.close({fail:function(){t._destroy(new Error)}})}),0)}.bind(s),h(),s}t.exports=f}).call(this,n("b639").Buffer)},"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("1d80"),s=n("129f"),l=n("577e"),u=n("dc4a"),c=n("14c3");i("search",(function(t,e,n){return[function(e){var n=a(this),i=void 0==e?void 0:u(e,t);return i?r(i,e,n):new RegExp(e)[t](l(n))},function(t){var r=o(this),i=l(t),a=n(e,r,i);if(a.done)return a.value;var u=r.lastIndex;s(u,0)||(r.lastIndex=0);var h=c(r,i);return s(r.lastIndex,u)||(r.lastIndex=u),null===h?-1:h.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("53b8")),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("b639").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,x=n("fbd7").codes,_=x.ERR_INVALID_ARG_TYPE,w=x.ERR_STREAM_PUSH_AFTER_EOF,S=x.ERR_METHOD_NOT_IMPLEMENTED,O=x.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("7d72").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=j(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):z(t,a)):E(t,a,e,!1)}else r||(a.reading=!1,z(t,a));return!a.ended&&(a.length=P?t=P:(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 z(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(F,t,e))}function F(t,e){while(!e.reading&&!e.ended&&(e.length0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function H(t){h("readable nexttick read 0"),t.read(0)}function G(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 Z(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!==Z(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(H,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,G(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;o1&&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 x(t,e){return e===y?t===e:!!e&&(t.path&&e.path?t.path.replace(p,"")===e.path.replace(p,"")&&t.hash===e.hash&&_(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&_(t.query,e.query)&&_(t.params,e.params)))}function _(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?_(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)},j=K,P=B,L=z,D=q,R=Z,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,x="?"===v||"*"===v,_=n[2]||s,w=p||g;r.push({name:d||i++,prefix:f||"",delimiter:_,optional:x,repeat:b,partial:m,asterisk:!!y,pattern:w?G(w):y?".*":"[^"+H(_)+"]+?"})}}return o1||!O.length)return 0===O.length?t():t("span",{},O)}if("a"===this.tag)S.on=_,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 _&&(k.on[A]=Array.isArray(M)?M:[M])}for(var T in _)T in k.on?k.on[T].push(_[T]):k.on[T]=b;var I=C.data.attrs=i({},C.data.attrs);I.href=l,I["aria-current"]=m}else S.on=_}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 zt={redirected:2,aborted:4,cancelled:8,duplicated:16};function Ft(t,e){return Gt(t,e,zt.redirected,'Redirected when going from "'+t.fullPath+'" to "'+Ut(e)+'" via a navigation guard.')}function Vt(t,e){var n=Gt(t,e,zt.duplicated,'Avoided redundant navigation to current location: "'+t.fullPath+'".');return n.name="NavigationDuplicated",n}function qt(t,e){return Gt(t,e,zt.cancelled,'Navigation cancelled from "'+t.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function Ht(t,e){return Gt(t,e,zt.aborted,'Navigation aborted from "'+t.fullPath+'" to "'+e.fullPath+'" via a navigation guard.')}function Gt(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;Zt(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 Zt(t,e){return Kt(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function Kt(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 xe=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,zt.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),_e=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 xe(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}_e.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},we.currentRoute.get=function(){return this.history&&this.history.current},_e.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}))}))}},_e.prototype.beforeEach=function(t){return Se(this.beforeHooks,t)},_e.prototype.beforeResolve=function(t){return Se(this.resolveHooks,t)},_e.prototype.afterEach=function(t){return Se(this.afterHooks,t)},_e.prototype.onReady=function(t,e){this.history.onReady(t,e)},_e.prototype.onError=function(t){this.history.onError(t)},_e.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)},_e.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)},_e.prototype.go=function(t){this.history.go(t)},_e.prototype.back=function(){this.go(-1)},_e.prototype.forward=function(){this.go(1)},_e.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]}))}))):[]},_e.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}},_e.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==y&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(_e.prototype,we),_e.install=lt,_e.version="3.4.9",_e.isNavigationFailure=Yt,_e.NavigationFailureType=zt,ut&&window.Vue&&window.Vue.use(_e),e["a"]=_e},"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=_,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?x(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),x=function(){var t=/a/,e=/b*/g;return r(p,t,"a"),r(p,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),_=s.UNSUPPORTED_Y||s.BROKEN_CARET,w=void 0!==/()??/.exec("")[1],S=x||w||_||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=_&&S.sticky,T=r(a,S),I=S.source,E=0,j=C;if(M&&(T=m(T,"y",""),-1===y(T,"g")&&(T+="g"),j=b(C,S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&"\n"!==v(C,S.lastIndex-1))&&(I="(?: "+I+")",j=" "+j,E++),n=new RegExp("^(?:"+I+")",T)),w&&(n=new RegExp("^"+I+"$(?!\\s)",T)),x&&(i=S.lastIndex),s=r(p,M?n:S,j),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:x&&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()-_)){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"),_.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=j(i,a,e):0!==r&&(i=j(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 j(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);_.blotName="code-block",_.tagName="PRE",_.TAB=" ",e.Code=x,e.default=_},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),x=i(b,1),_=x[0];m=(0,C.default)(m,(0,v.bubbleFormats)(_))}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,_.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,_.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,_.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 j(t){return t.reduce((function(t,e){if(1===e.insert){var n=(0,_.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,_.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},x=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(!_(this.root,t.startContainer)||!t.collapsed&&!_(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 _(t,e){try{e.parentNode}catch(n){return!1}return e instanceof Text&&(e=e.parentNode),t.contains(e)}e.Range=b,e.default=x},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 x;y&&(x=Object.getOwnPropertyDescriptor(y,b)),x&&null==x.set||(v[b]=g(a[b],l-1))}if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(a);for(b=0;b<_.length;b++){var w=_[b],S=Object.getOwnPropertyDescriptor(a,w);(!S||S.enumerable||h)&&(v[w]=g(a[w],l-1),S.enumerable||Object.defineProperty(v,w,{enumerable:!1}))}}if(h){var O=Object.getOwnPropertyNames(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=z(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),x=b[0],_=b[1],w=g instanceof y.default.Text?g.value().slice(0,v):"",S=x instanceof y.default.Text?x.value().slice(_):"",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 j(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 P(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 z(t){if("string"===typeof t||"number"===typeof t)return z({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":j(E.keys.LEFT,!1),"embed left shift":j(E.keys.LEFT,!0),"embed right":j(E.keys.RIGHT,!1),"embed right shift":j(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),x=T(b),_=n(7),w=T(_),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":x.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,x.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=P,e.default=j},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-x;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){_=s+d-C;if(_>=0&&_=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[_.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new u.default).insert(n,A({},_.default.blotName,e[_.default.blotName]))}var r=this.prepareMatching(),o=i(r,2),a=o[0],s=o[1],l=V(this.container,a,s);return z(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[j]=t[j]||[],t[j].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 z(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[j]||[]).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 H(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 G(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 z(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||!z(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 z(e,"\n")||(F(t)||e.length()>0&&t.nextSibling&&F(t.nextSibling))&&e.insert("\n"),e}function X(t,e){if(F(t)&&null!=t.nextElementSibling&&!z(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 Z(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 K(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&&F(t.parentNode)||null!=t.previousSibling&&F(t.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==t.nextSibling&&F(t.parentNode)||null!=t.nextSibling&&F(t.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return e.insert(n)}R.DEFAULTS={matchers:[],matchVisual:!0},e.default=R,e.matchAttributor=H,e.matchBlot=G,e.matchNewline=Y,e.matchSpacing=X,e.matchText=K},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),x=n(68),_=nt(x),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),j=n(73),P=nt(j),L=n(13),D=nt(L),R=n(74),N=nt(R),B=n(75),z=nt(B),F=n(57),V=nt(F),q=n(41),H=nt(q),G=n(28),W=nt(G),U=n(59),$=nt(U),Y=n(60),X=nt(Y),Z=n(61),K=nt(Z),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":_.default,"formats/link":S.default,"formats/script":C.default,"formats/strike":A.default,"formats/underline":T.default,"formats/image":E.default,"formats/video":P.default,"formats/list/item":f.ListItem,"modules/formula":N.default,"modules/syntax":z.default,"modules/toolbar":V.default,"themes/bubble":J.default,"themes/snow":et.default,"ui/icons":H.default,"ui/picker":W.default,"ui/icon-picker":X.default,"ui/color-picker":$.default,"ui/tooltip":K.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);x.TEMPLATE=['','
','','',"
"].join(""),e.BubbleTooltip=x,e.default=b},function(t,e,n){t.exports=n(63)}])["default"]}))}).call(this,n("b639").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=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),g}},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;M(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}(t.exports);try{regeneratorRuntime=r}catch(i){"object"===typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},"96eb":function(module,exports,__webpack_require__){(function(t,e){module.exports=e()})(0,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=t,n.c=e,n.p="",n(0)}([function(t,e,n){var r,i=n(1),o=n(3),a=n(5),s=n(20),l=n(23),u=n(25);"undefined"!==typeof window&&(r=n(27) /*! Mock - 模拟请求 & 模拟数据 https://github.com/nuysoft/Mock 墨智 mozhi.gyy@taobao.com nuysoft@gmail.com */);var c={Handler:i,Random:a,Util:o,XHR:r,RE:s,toJSONSchema:l,valid:u,heredoc:o.heredoc,setup:function(t){return r.setup(t)},_mocked:{},version:"1.0.1-beta3"};r&&(r.Mock=c),c.mock=function(t,e,n){return 1===arguments.length?i.gen(t):(2===arguments.length&&(n=e,e=void 0),r&&(window.XMLHttpRequest=r),c._mocked[t+(e||"")]={rurl:t,rtype:e,template:n},c)},t.exports=c},function(module,exports,__webpack_require__){var Constant=__webpack_require__(2),Util=__webpack_require__(3),Parser=__webpack_require__(4),Random=__webpack_require__(5),RE=__webpack_require__(20),Handler={extend:Util.extend,gen:function(t,e,n){e=void 0==e?"":e+"",n=n||{},n={path:n.path||[Constant.GUID],templatePath:n.templatePath||[Constant.GUID++],currentContext:n.currentContext,templateCurrentContext:n.templateCurrentContext||t,root:n.root||n.currentContext,templateRoot:n.templateRoot||n.templateCurrentContext||t};var r,i=Parser.parse(e),o=Util.type(t);return Handler[o]?(r=Handler[o]({type:o,template:t,name:e,parsedName:e?e.replace(Constant.RE_KEY,"$1"):e,rule:i,context:n}),n.root||(n.root=r),r):t}};Handler.extend({array:function(t){var e,n,r=[];if(0===t.template.length)return r;if(t.rule.parameters)if(1===t.rule.min&&void 0===t.rule.max)t.context.path.push(t.name),t.context.templatePath.push(t.name),r=Random.pick(Handler.gen(t.template,void 0,{path:t.context.path,templatePath:t.context.templatePath,currentContext:r,templateCurrentContext:t.template,root:t.context.root||r,templateRoot:t.context.templateRoot||t.template})),t.context.path.pop(),t.context.templatePath.pop();else if(t.rule.parameters[2])t.template.__order_index=t.template.__order_index||0,t.context.path.push(t.name),t.context.templatePath.push(t.name),r=Handler.gen(t.template,void 0,{path:t.context.path,templatePath:t.context.templatePath,currentContext:r,templateCurrentContext:t.template,root:t.context.root||r,templateRoot:t.context.templateRoot||t.template})[t.template.__order_index%t.template.length],t.template.__order_index+=+t.rule.parameters[2],t.context.path.pop(),t.context.templatePath.pop();else for(e=0;e1)return this.getValueByKeyPath(key,options);if(templateContext&&"object"===typeof templateContext&&key in templateContext&&placeholder!==templateContext[key])return templateContext[key]=Handler.gen(templateContext[key],key,{currentContext:obj,templateCurrentContext:templateContext}),templateContext[key];if(!(key in Random)&&!(lkey in Random)&&!(okey in Random))return placeholder;for(var i=0;i1&&(i=e.context.path.slice(0),i.pop(),i=this.normalizePath(i.concat(r)));try{t=r[r.length-1];for(var o=e.context.root,a=e.context.templateRoot,s=1;s1/(t+e)*t?!n:n):Math.random()>=.5},bool:function(t,e,n){return this.boolean(t,e,n)},natural:function(t,e){return t="undefined"!==typeof t?parseInt(t,10):0,e="undefined"!==typeof e?parseInt(e,10):9007199254740992,Math.round(Math.random()*(e-t))+t},integer:function(t,e){return t="undefined"!==typeof t?parseInt(t,10):-9007199254740992,e="undefined"!==typeof e?parseInt(e,10):9007199254740992,Math.round(Math.random()*(e-t))+t},int:function(t,e){return this.integer(t,e)},float:function(t,e,n,r){n=void 0===n?0:n,n=Math.max(Math.min(n,17),0),r=void 0===r?17:r,r=Math.max(Math.min(r,17),0);for(var i=this.integer(t,e)+".",o=0,a=this.natural(n,r);o1&&r--,o=6*r<1?e+6*(n-e)*r:2*r<1?n:3*r<2?e+(n-e)*(2/3-r)*6:e,i[u]=255*o;return i},hsl2hsv:function(t){var e,n,r=t[0],i=t[1]/100,o=t[2]/100;return o*=2,i*=o<=1?o:2-o,n=(o+i)/2,e=2*i/(o+i),[r,100*e,100*n]},hsv2rgb:function(t){var e=t[0]/60,n=t[1]/100,r=t[2]/100,i=Math.floor(e)%6,o=e-Math.floor(e),a=255*r*(1-n),s=255*r*(1-n*o),l=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}},hsv2hsl:function(t){var e,n,r=t[0],i=t[1]/100,o=t[2]/100;return n=(2-i)*o,e=i*o,e/=n<=1?n:2-n,n/=2,[r,100*e,100*n]},rgb2hex:function(t,e,n){return"#"+((256+t<<8|e)<<8|n).toString(16).slice(1)},hex2rgb:function(t){return t="0x"+t.slice(1).replace(t.length>4?t:/./g,"$&$&")|0,[t>>16,t>>8&255,255&t]}}},function(t,e){t.exports={navy:{value:"#000080",nicer:"#001F3F"},blue:{value:"#0000ff",nicer:"#0074D9"},aqua:{value:"#00ffff",nicer:"#7FDBFF"},teal:{value:"#008080",nicer:"#39CCCC"},olive:{value:"#008000",nicer:"#3D9970"},green:{value:"#008000",nicer:"#2ECC40"},lime:{value:"#00ff00",nicer:"#01FF70"},yellow:{value:"#ffff00",nicer:"#FFDC00"},orange:{value:"#ffa500",nicer:"#FF851B"},red:{value:"#ff0000",nicer:"#FF4136"},maroon:{value:"#800000",nicer:"#85144B"},fuchsia:{value:"#ff00ff",nicer:"#F012BE"},purple:{value:"#800080",nicer:"#B10DC9"},silver:{value:"#c0c0c0",nicer:"#DDDDDD"},gray:{value:"#808080",nicer:"#AAAAAA"},black:{value:"#000000",nicer:"#111111"},white:{value:"#FFFFFF",nicer:"#FFFFFF"}}},function(t,e,n){var r=n(6),i=n(14);function o(t,e,n,i){return void 0===n?r.natural(t,e):void 0===i?n:r.natural(parseInt(n,10),parseInt(i,10))}t.exports={paragraph:function(t,e){for(var n=o(3,7,t,e),r=[],i=0;i1&&(e=[].slice.call(arguments,0));var n=t.options,r=n.context.templatePath.join("."),i=t.cache[r]=t.cache[r]||{index:0,array:e};return i.array[i.index++%i.array.length]}}},function(t,e){t.exports={first:function(){var t=["James","John","Robert","Michael","William","David","Richard","Charles","Joseph","Thomas","Christopher","Daniel","Paul","Mark","Donald","George","Kenneth","Steven","Edward","Brian","Ronald","Anthony","Kevin","Jason","Matthew","Gary","Timothy","Jose","Larry","Jeffrey","Frank","Scott","Eric"].concat(["Mary","Patricia","Linda","Barbara","Elizabeth","Jennifer","Maria","Susan","Margaret","Dorothy","Lisa","Nancy","Karen","Betty","Helen","Sandra","Donna","Carol","Ruth","Sharon","Michelle","Laura","Sarah","Kimberly","Deborah","Jessica","Shirley","Cynthia","Angela","Melissa","Brenda","Amy","Anna"]);return this.pick(t)},last:function(){var t=["Smith","Johnson","Williams","Brown","Jones","Miller","Davis","Garcia","Rodriguez","Wilson","Martinez","Anderson","Taylor","Thomas","Hernandez","Moore","Martin","Jackson","Thompson","White","Lopez","Lee","Gonzalez","Harris","Clark","Lewis","Robinson","Walker","Perez","Hall","Young","Allen"];return this.pick(t)},name:function(t){return this.first()+" "+(t?this.first()+" ":"")+this.last()},cfirst:function(){var t="王 李 张 刘 陈 杨 赵 黄 周 吴 徐 孙 胡 朱 高 林 何 郭 马 罗 梁 宋 郑 谢 韩 唐 冯 于 董 萧 程 曹 袁 邓 许 傅 沈 曾 彭 吕 苏 卢 蒋 蔡 贾 丁 魏 薛 叶 阎 余 潘 杜 戴 夏 锺 汪 田 任 姜 范 方 石 姚 谭 廖 邹 熊 金 陆 郝 孔 白 崔 康 毛 邱 秦 江 史 顾 侯 邵 孟 龙 万 段 雷 钱 汤 尹 黎 易 常 武 乔 贺 赖 龚 文".split(" ");return this.pick(t)},clast:function(){var t="伟 芳 娜 秀英 敏 静 丽 强 磊 军 洋 勇 艳 杰 娟 涛 明 超 秀兰 霞 平 刚 桂英".split(" ");return this.pick(t)},cname:function(){return this.cfirst()+this.clast()}}},function(t,e){t.exports={url:function(t,e){return(t||this.protocol())+"://"+(e||this.domain())+"/"+this.word()},protocol:function(){return this.pick("http ftp gopher mailto mid cid news nntp prospero telnet rlogin tn3270 wais".split(" "))},domain:function(t){return this.word()+"."+(t||this.tld())},tld:function(){return this.pick("com net org edu gov int mil cn com.cn net.cn gov.cn org.cn 中国 中国互联.公司 中国互联.网络 tel biz cc tv info name hk mobi asia cd travel pro museum coop aero ad ae af ag ai al am an ao aq ar as at au aw az ba bb bd be bf bg bh bi bj bm bn bo br bs bt bv bw by bz ca cc cf cg ch ci ck cl cm cn co cq cr cu cv cx cy cz de dj dk dm do dz ec ee eg eh es et ev fi fj fk fm fo fr ga gb gd ge gf gh gi gl gm gn gp gr gt gu gw gy hk hm hn hr ht hu id ie il in io iq ir is it jm jo jp ke kg kh ki km kn kp kr kw ky kz la lb lc li lk lr ls lt lu lv ly ma mc md mg mh ml mm mn mo mp mq mr ms mt mv mw mx my mz na nc ne nf ng ni nl no np nr nt nu nz om qa pa pe pf pg ph pk pl pm pn pr pt pw py re ro ru rw sa sb sc sd se sg sh si sj sk sl sm sn so sr st su sy sz tc td tf tg th tj tk tm tn to tp tr tt tv tw tz ua ug uk us uy va vc ve vg vn vu wf ws ye yu za zm zr zw".split(" "))},email:function(t){return this.character("lower")+"."+this.word()+"@"+(t||this.word()+"."+this.tld())},ip:function(){return this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)}}},function(t,e,n){var r=n(18),i=["东北","华北","华东","华中","华南","西南","西北"];t.exports={region:function(){return this.pick(i)},province:function(){return this.pick(r).name},city:function(t){var e=this.pick(r),n=this.pick(e.children);return t?[e.name,n.name].join(" "):n.name},county:function(t){var e=this.pick(r),n=this.pick(e.children),i=this.pick(n.children)||{name:"-"};return t?[e.name,n.name,i.name].join(" "):i.name},zip:function(t){for(var e="",n=0;n<(t||6);n++)e+=this.natural(0,9);return e}}},function(t,e){var n={11e4:"北京",110100:"北京市",110101:"东城区",110102:"西城区",110105:"朝阳区",110106:"丰台区",110107:"石景山区",110108:"海淀区",110109:"门头沟区",110111:"房山区",110112:"通州区",110113:"顺义区",110114:"昌平区",110115:"大兴区",110116:"怀柔区",110117:"平谷区",110228:"密云县",110229:"延庆县",110230:"其它区",12e4:"天津",120100:"天津市",120101:"和平区",120102:"河东区",120103:"河西区",120104:"南开区",120105:"河北区",120106:"红桥区",120110:"东丽区",120111:"西青区",120112:"津南区",120113:"北辰区",120114:"武清区",120115:"宝坻区",120116:"滨海新区",120221:"宁河县",120223:"静海县",120225:"蓟县",120226:"其它区",13e4:"河北省",130100:"石家庄市",130102:"长安区",130103:"桥东区",130104:"桥西区",130105:"新华区",130107:"井陉矿区",130108:"裕华区",130121:"井陉县",130123:"正定县",130124:"栾城县",130125:"行唐县",130126:"灵寿县",130127:"高邑县",130128:"深泽县",130129:"赞皇县",130130:"无极县",130131:"平山县",130132:"元氏县",130133:"赵县",130181:"辛集市",130182:"藁城市",130183:"晋州市",130184:"新乐市",130185:"鹿泉市",130186:"其它区",130200:"唐山市",130202:"路南区",130203:"路北区",130204:"古冶区",130205:"开平区",130207:"丰南区",130208:"丰润区",130223:"滦县",130224:"滦南县",130225:"乐亭县",130227:"迁西县",130229:"玉田县",130230:"曹妃甸区",130281:"遵化市",130283:"迁安市",130284:"其它区",130300:"秦皇岛市",130302:"海港区",130303:"山海关区",130304:"北戴河区",130321:"青龙满族自治县",130322:"昌黎县",130323:"抚宁县",130324:"卢龙县",130398:"其它区",130400:"邯郸市",130402:"邯山区",130403:"丛台区",130404:"复兴区",130406:"峰峰矿区",130421:"邯郸县",130423:"临漳县",130424:"成安县",130425:"大名县",130426:"涉县",130427:"磁县",130428:"肥乡县",130429:"永年县",130430:"邱县",130431:"鸡泽县",130432:"广平县",130433:"馆陶县",130434:"魏县",130435:"曲周县",130481:"武安市",130482:"其它区",130500:"邢台市",130502:"桥东区",130503:"桥西区",130521:"邢台县",130522:"临城县",130523:"内丘县",130524:"柏乡县",130525:"隆尧县",130526:"任县",130527:"南和县",130528:"宁晋县",130529:"巨鹿县",130530:"新河县",130531:"广宗县",130532:"平乡县",130533:"威县",130534:"清河县",130535:"临西县",130581:"南宫市",130582:"沙河市",130583:"其它区",130600:"保定市",130602:"新市区",130603:"北市区",130604:"南市区",130621:"满城县",130622:"清苑县",130623:"涞水县",130624:"阜平县",130625:"徐水县",130626:"定兴县",130627:"唐县",130628:"高阳县",130629:"容城县",130630:"涞源县",130631:"望都县",130632:"安新县",130633:"易县",130634:"曲阳县",130635:"蠡县",130636:"顺平县",130637:"博野县",130638:"雄县",130681:"涿州市",130682:"定州市",130683:"安国市",130684:"高碑店市",130699:"其它区",130700:"张家口市",130702:"桥东区",130703:"桥西区",130705:"宣化区",130706:"下花园区",130721:"宣化县",130722:"张北县",130723:"康保县",130724:"沽源县",130725:"尚义县",130726:"蔚县",130727:"阳原县",130728:"怀安县",130729:"万全县",130730:"怀来县",130731:"涿鹿县",130732:"赤城县",130733:"崇礼县",130734:"其它区",130800:"承德市",130802:"双桥区",130803:"双滦区",130804:"鹰手营子矿区",130821:"承德县",130822:"兴隆县",130823:"平泉县",130824:"滦平县",130825:"隆化县",130826:"丰宁满族自治县",130827:"宽城满族自治县",130828:"围场满族蒙古族自治县",130829:"其它区",130900:"沧州市",130902:"新华区",130903:"运河区",130921:"沧县",130922:"青县",130923:"东光县",130924:"海兴县",130925:"盐山县",130926:"肃宁县",130927:"南皮县",130928:"吴桥县",130929:"献县",130930:"孟村回族自治县",130981:"泊头市",130982:"任丘市",130983:"黄骅市",130984:"河间市",130985:"其它区",131e3:"廊坊市",131002:"安次区",131003:"广阳区",131022:"固安县",131023:"永清县",131024:"香河县",131025:"大城县",131026:"文安县",131028:"大厂回族自治县",131081:"霸州市",131082:"三河市",131083:"其它区",131100:"衡水市",131102:"桃城区",131121:"枣强县",131122:"武邑县",131123:"武强县",131124:"饶阳县",131125:"安平县",131126:"故城县",131127:"景县",131128:"阜城县",131181:"冀州市",131182:"深州市",131183:"其它区",14e4:"山西省",140100:"太原市",140105:"小店区",140106:"迎泽区",140107:"杏花岭区",140108:"尖草坪区",140109:"万柏林区",140110:"晋源区",140121:"清徐县",140122:"阳曲县",140123:"娄烦县",140181:"古交市",140182:"其它区",140200:"大同市",140202:"城区",140203:"矿区",140211:"南郊区",140212:"新荣区",140221:"阳高县",140222:"天镇县",140223:"广灵县",140224:"灵丘县",140225:"浑源县",140226:"左云县",140227:"大同县",140228:"其它区",140300:"阳泉市",140302:"城区",140303:"矿区",140311:"郊区",140321:"平定县",140322:"盂县",140323:"其它区",140400:"长治市",140421:"长治县",140423:"襄垣县",140424:"屯留县",140425:"平顺县",140426:"黎城县",140427:"壶关县",140428:"长子县",140429:"武乡县",140430:"沁县",140431:"沁源县",140481:"潞城市",140482:"城区",140483:"郊区",140485:"其它区",140500:"晋城市",140502:"城区",140521:"沁水县",140522:"阳城县",140524:"陵川县",140525:"泽州县",140581:"高平市",140582:"其它区",140600:"朔州市",140602:"朔城区",140603:"平鲁区",140621:"山阴县",140622:"应县",140623:"右玉县",140624:"怀仁县",140625:"其它区",140700:"晋中市",140702:"榆次区",140721:"榆社县",140722:"左权县",140723:"和顺县",140724:"昔阳县",140725:"寿阳县",140726:"太谷县",140727:"祁县",140728:"平遥县",140729:"灵石县",140781:"介休市",140782:"其它区",140800:"运城市",140802:"盐湖区",140821:"临猗县",140822:"万荣县",140823:"闻喜县",140824:"稷山县",140825:"新绛县",140826:"绛县",140827:"垣曲县",140828:"夏县",140829:"平陆县",140830:"芮城县",140881:"永济市",140882:"河津市",140883:"其它区",140900:"忻州市",140902:"忻府区",140921:"定襄县",140922:"五台县",140923:"代县",140924:"繁峙县",140925:"宁武县",140926:"静乐县",140927:"神池县",140928:"五寨县",140929:"岢岚县",140930:"河曲县",140931:"保德县",140932:"偏关县",140981:"原平市",140982:"其它区",141e3:"临汾市",141002:"尧都区",141021:"曲沃县",141022:"翼城县",141023:"襄汾县",141024:"洪洞县",141025:"古县",141026:"安泽县",141027:"浮山县",141028:"吉县",141029:"乡宁县",141030:"大宁县",141031:"隰县",141032:"永和县",141033:"蒲县",141034:"汾西县",141081:"侯马市",141082:"霍州市",141083:"其它区",141100:"吕梁市",141102:"离石区",141121:"文水县",141122:"交城县",141123:"兴县",141124:"临县",141125:"柳林县",141126:"石楼县",141127:"岚县",141128:"方山县",141129:"中阳县",141130:"交口县",141181:"孝义市",141182:"汾阳市",141183:"其它区",15e4:"内蒙古自治区",150100:"呼和浩特市",150102:"新城区",150103:"回民区",150104:"玉泉区",150105:"赛罕区",150121:"土默特左旗",150122:"托克托县",150123:"和林格尔县",150124:"清水河县",150125:"武川县",150126:"其它区",150200:"包头市",150202:"东河区",150203:"昆都仑区",150204:"青山区",150205:"石拐区",150206:"白云鄂博矿区",150207:"九原区",150221:"土默特右旗",150222:"固阳县",150223:"达尔罕茂明安联合旗",150224:"其它区",150300:"乌海市",150302:"海勃湾区",150303:"海南区",150304:"乌达区",150305:"其它区",150400:"赤峰市",150402:"红山区",150403:"元宝山区",150404:"松山区",150421:"阿鲁科尔沁旗",150422:"巴林左旗",150423:"巴林右旗",150424:"林西县",150425:"克什克腾旗",150426:"翁牛特旗",150428:"喀喇沁旗",150429:"宁城县",150430:"敖汉旗",150431:"其它区",150500:"通辽市",150502:"科尔沁区",150521:"科尔沁左翼中旗",150522:"科尔沁左翼后旗",150523:"开鲁县",150524:"库伦旗",150525:"奈曼旗",150526:"扎鲁特旗",150581:"霍林郭勒市",150582:"其它区",150600:"鄂尔多斯市",150602:"东胜区",150621:"达拉特旗",150622:"准格尔旗",150623:"鄂托克前旗",150624:"鄂托克旗",150625:"杭锦旗",150626:"乌审旗",150627:"伊金霍洛旗",150628:"其它区",150700:"呼伦贝尔市",150702:"海拉尔区",150703:"扎赉诺尔区",150721:"阿荣旗",150722:"莫力达瓦达斡尔族自治旗",150723:"鄂伦春自治旗",150724:"鄂温克族自治旗",150725:"陈巴尔虎旗",150726:"新巴尔虎左旗",150727:"新巴尔虎右旗",150781:"满洲里市",150782:"牙克石市",150783:"扎兰屯市",150784:"额尔古纳市",150785:"根河市",150786:"其它区",150800:"巴彦淖尔市",150802:"临河区",150821:"五原县",150822:"磴口县",150823:"乌拉特前旗",150824:"乌拉特中旗",150825:"乌拉特后旗",150826:"杭锦后旗",150827:"其它区",150900:"乌兰察布市",150902:"集宁区",150921:"卓资县",150922:"化德县",150923:"商都县",150924:"兴和县",150925:"凉城县",150926:"察哈尔右翼前旗",150927:"察哈尔右翼中旗",150928:"察哈尔右翼后旗",150929:"四子王旗",150981:"丰镇市",150982:"其它区",152200:"兴安盟",152201:"乌兰浩特市",152202:"阿尔山市",152221:"科尔沁右翼前旗",152222:"科尔沁右翼中旗",152223:"扎赉特旗",152224:"突泉县",152225:"其它区",152500:"锡林郭勒盟",152501:"二连浩特市",152502:"锡林浩特市",152522:"阿巴嘎旗",152523:"苏尼特左旗",152524:"苏尼特右旗",152525:"东乌珠穆沁旗",152526:"西乌珠穆沁旗",152527:"太仆寺旗",152528:"镶黄旗",152529:"正镶白旗",152530:"正蓝旗",152531:"多伦县",152532:"其它区",152900:"阿拉善盟",152921:"阿拉善左旗",152922:"阿拉善右旗",152923:"额济纳旗",152924:"其它区",21e4:"辽宁省",210100:"沈阳市",210102:"和平区",210103:"沈河区",210104:"大东区",210105:"皇姑区",210106:"铁西区",210111:"苏家屯区",210112:"东陵区",210113:"新城子区",210114:"于洪区",210122:"辽中县",210123:"康平县",210124:"法库县",210181:"新民市",210184:"沈北新区",210185:"其它区",210200:"大连市",210202:"中山区",210203:"西岗区",210204:"沙河口区",210211:"甘井子区",210212:"旅顺口区",210213:"金州区",210224:"长海县",210281:"瓦房店市",210282:"普兰店市",210283:"庄河市",210298:"其它区",210300:"鞍山市",210302:"铁东区",210303:"铁西区",210304:"立山区",210311:"千山区",210321:"台安县",210323:"岫岩满族自治县",210381:"海城市",210382:"其它区",210400:"抚顺市",210402:"新抚区",210403:"东洲区",210404:"望花区",210411:"顺城区",210421:"抚顺县",210422:"新宾满族自治县",210423:"清原满族自治县",210424:"其它区",210500:"本溪市",210502:"平山区",210503:"溪湖区",210504:"明山区",210505:"南芬区",210521:"本溪满族自治县",210522:"桓仁满族自治县",210523:"其它区",210600:"丹东市",210602:"元宝区",210603:"振兴区",210604:"振安区",210624:"宽甸满族自治县",210681:"东港市",210682:"凤城市",210683:"其它区",210700:"锦州市",210702:"古塔区",210703:"凌河区",210711:"太和区",210726:"黑山县",210727:"义县",210781:"凌海市",210782:"北镇市",210783:"其它区",210800:"营口市",210802:"站前区",210803:"西市区",210804:"鲅鱼圈区",210811:"老边区",210881:"盖州市",210882:"大石桥市",210883:"其它区",210900:"阜新市",210902:"海州区",210903:"新邱区",210904:"太平区",210905:"清河门区",210911:"细河区",210921:"阜新蒙古族自治县",210922:"彰武县",210923:"其它区",211e3:"辽阳市",211002:"白塔区",211003:"文圣区",211004:"宏伟区",211005:"弓长岭区",211011:"太子河区",211021:"辽阳县",211081:"灯塔市",211082:"其它区",211100:"盘锦市",211102:"双台子区",211103:"兴隆台区",211121:"大洼县",211122:"盘山县",211123:"其它区",211200:"铁岭市",211202:"银州区",211204:"清河区",211221:"铁岭县",211223:"西丰县",211224:"昌图县",211281:"调兵山市",211282:"开原市",211283:"其它区",211300:"朝阳市",211302:"双塔区",211303:"龙城区",211321:"朝阳县",211322:"建平县",211324:"喀喇沁左翼蒙古族自治县",211381:"北票市",211382:"凌源市",211383:"其它区",211400:"葫芦岛市",211402:"连山区",211403:"龙港区",211404:"南票区",211421:"绥中县",211422:"建昌县",211481:"兴城市",211482:"其它区",22e4:"吉林省",220100:"长春市",220102:"南关区",220103:"宽城区",220104:"朝阳区",220105:"二道区",220106:"绿园区",220112:"双阳区",220122:"农安县",220181:"九台市",220182:"榆树市",220183:"德惠市",220188:"其它区",220200:"吉林市",220202:"昌邑区",220203:"龙潭区",220204:"船营区",220211:"丰满区",220221:"永吉县",220281:"蛟河市",220282:"桦甸市",220283:"舒兰市",220284:"磐石市",220285:"其它区",220300:"四平市",220302:"铁西区",220303:"铁东区",220322:"梨树县",220323:"伊通满族自治县",220381:"公主岭市",220382:"双辽市",220383:"其它区",220400:"辽源市",220402:"龙山区",220403:"西安区",220421:"东丰县",220422:"东辽县",220423:"其它区",220500:"通化市",220502:"东昌区",220503:"二道江区",220521:"通化县",220523:"辉南县",220524:"柳河县",220581:"梅河口市",220582:"集安市",220583:"其它区",220600:"白山市",220602:"浑江区",220621:"抚松县",220622:"靖宇县",220623:"长白朝鲜族自治县",220625:"江源区",220681:"临江市",220682:"其它区",220700:"松原市",220702:"宁江区",220721:"前郭尔罗斯蒙古族自治县",220722:"长岭县",220723:"乾安县",220724:"扶余市",220725:"其它区",220800:"白城市",220802:"洮北区",220821:"镇赉县",220822:"通榆县",220881:"洮南市",220882:"大安市",220883:"其它区",222400:"延边朝鲜族自治州",222401:"延吉市",222402:"图们市",222403:"敦化市",222404:"珲春市",222405:"龙井市",222406:"和龙市",222424:"汪清县",222426:"安图县",222427:"其它区",23e4:"黑龙江省",230100:"哈尔滨市",230102:"道里区",230103:"南岗区",230104:"道外区",230106:"香坊区",230108:"平房区",230109:"松北区",230111:"呼兰区",230123:"依兰县",230124:"方正县",230125:"宾县",230126:"巴彦县",230127:"木兰县",230128:"通河县",230129:"延寿县",230181:"阿城区",230182:"双城市",230183:"尚志市",230184:"五常市",230186:"其它区",230200:"齐齐哈尔市",230202:"龙沙区",230203:"建华区",230204:"铁锋区",230205:"昂昂溪区",230206:"富拉尔基区",230207:"碾子山区",230208:"梅里斯达斡尔族区",230221:"龙江县",230223:"依安县",230224:"泰来县",230225:"甘南县",230227:"富裕县",230229:"克山县",230230:"克东县",230231:"拜泉县",230281:"讷河市",230282:"其它区",230300:"鸡西市",230302:"鸡冠区",230303:"恒山区",230304:"滴道区",230305:"梨树区",230306:"城子河区",230307:"麻山区",230321:"鸡东县",230381:"虎林市",230382:"密山市",230383:"其它区",230400:"鹤岗市",230402:"向阳区",230403:"工农区",230404:"南山区",230405:"兴安区",230406:"东山区",230407:"兴山区",230421:"萝北县",230422:"绥滨县",230423:"其它区",230500:"双鸭山市",230502:"尖山区",230503:"岭东区",230505:"四方台区",230506:"宝山区",230521:"集贤县",230522:"友谊县",230523:"宝清县",230524:"饶河县",230525:"其它区",230600:"大庆市",230602:"萨尔图区",230603:"龙凤区",230604:"让胡路区",230605:"红岗区",230606:"大同区",230621:"肇州县",230622:"肇源县",230623:"林甸县",230624:"杜尔伯特蒙古族自治县",230625:"其它区",230700:"伊春市",230702:"伊春区",230703:"南岔区",230704:"友好区",230705:"西林区",230706:"翠峦区",230707:"新青区",230708:"美溪区",230709:"金山屯区",230710:"五营区",230711:"乌马河区",230712:"汤旺河区",230713:"带岭区",230714:"乌伊岭区",230715:"红星区",230716:"上甘岭区",230722:"嘉荫县",230781:"铁力市",230782:"其它区",230800:"佳木斯市",230803:"向阳区",230804:"前进区",230805:"东风区",230811:"郊区",230822:"桦南县",230826:"桦川县",230828:"汤原县",230833:"抚远县",230881:"同江市",230882:"富锦市",230883:"其它区",230900:"七台河市",230902:"新兴区",230903:"桃山区",230904:"茄子河区",230921:"勃利县",230922:"其它区",231e3:"牡丹江市",231002:"东安区",231003:"阳明区",231004:"爱民区",231005:"西安区",231024:"东宁县",231025:"林口县",231081:"绥芬河市",231083:"海林市",231084:"宁安市",231085:"穆棱市",231086:"其它区",231100:"黑河市",231102:"爱辉区",231121:"嫩江县",231123:"逊克县",231124:"孙吴县",231181:"北安市",231182:"五大连池市",231183:"其它区",231200:"绥化市",231202:"北林区",231221:"望奎县",231222:"兰西县",231223:"青冈县",231224:"庆安县",231225:"明水县",231226:"绥棱县",231281:"安达市",231282:"肇东市",231283:"海伦市",231284:"其它区",232700:"大兴安岭地区",232702:"松岭区",232703:"新林区",232704:"呼中区",232721:"呼玛县",232722:"塔河县",232723:"漠河县",232724:"加格达奇区",232725:"其它区",31e4:"上海",310100:"上海市",310101:"黄浦区",310104:"徐汇区",310105:"长宁区",310106:"静安区",310107:"普陀区",310108:"闸北区",310109:"虹口区",310110:"杨浦区",310112:"闵行区",310113:"宝山区",310114:"嘉定区",310115:"浦东新区",310116:"金山区",310117:"松江区",310118:"青浦区",310120:"奉贤区",310230:"崇明县",310231:"其它区",32e4:"江苏省",320100:"南京市",320102:"玄武区",320104:"秦淮区",320105:"建邺区",320106:"鼓楼区",320111:"浦口区",320113:"栖霞区",320114:"雨花台区",320115:"江宁区",320116:"六合区",320124:"溧水区",320125:"高淳区",320126:"其它区",320200:"无锡市",320202:"崇安区",320203:"南长区",320204:"北塘区",320205:"锡山区",320206:"惠山区",320211:"滨湖区",320281:"江阴市",320282:"宜兴市",320297:"其它区",320300:"徐州市",320302:"鼓楼区",320303:"云龙区",320305:"贾汪区",320311:"泉山区",320321:"丰县",320322:"沛县",320323:"铜山区",320324:"睢宁县",320381:"新沂市",320382:"邳州市",320383:"其它区",320400:"常州市",320402:"天宁区",320404:"钟楼区",320405:"戚墅堰区",320411:"新北区",320412:"武进区",320481:"溧阳市",320482:"金坛市",320483:"其它区",320500:"苏州市",320505:"虎丘区",320506:"吴中区",320507:"相城区",320508:"姑苏区",320581:"常熟市",320582:"张家港市",320583:"昆山市",320584:"吴江区",320585:"太仓市",320596:"其它区",320600:"南通市",320602:"崇川区",320611:"港闸区",320612:"通州区",320621:"海安县",320623:"如东县",320681:"启东市",320682:"如皋市",320684:"海门市",320694:"其它区",320700:"连云港市",320703:"连云区",320705:"新浦区",320706:"海州区",320721:"赣榆县",320722:"东海县",320723:"灌云县",320724:"灌南县",320725:"其它区",320800:"淮安市",320802:"清河区",320803:"淮安区",320804:"淮阴区",320811:"清浦区",320826:"涟水县",320829:"洪泽县",320830:"盱眙县",320831:"金湖县",320832:"其它区",320900:"盐城市",320902:"亭湖区",320903:"盐都区",320921:"响水县",320922:"滨海县",320923:"阜宁县",320924:"射阳县",320925:"建湖县",320981:"东台市",320982:"大丰市",320983:"其它区",321e3:"扬州市",321002:"广陵区",321003:"邗江区",321023:"宝应县",321081:"仪征市",321084:"高邮市",321088:"江都区",321093:"其它区",321100:"镇江市",321102:"京口区",321111:"润州区",321112:"丹徒区",321181:"丹阳市",321182:"扬中市",321183:"句容市",321184:"其它区",321200:"泰州市",321202:"海陵区",321203:"高港区",321281:"兴化市",321282:"靖江市",321283:"泰兴市",321284:"姜堰区",321285:"其它区",321300:"宿迁市",321302:"宿城区",321311:"宿豫区",321322:"沭阳县",321323:"泗阳县",321324:"泗洪县",321325:"其它区",33e4:"浙江省",330100:"杭州市",330102:"上城区",330103:"下城区",330104:"江干区",330105:"拱墅区",330106:"西湖区",330108:"滨江区",330109:"萧山区",330110:"余杭区",330122:"桐庐县",330127:"淳安县",330182:"建德市",330183:"富阳市",330185:"临安市",330186:"其它区",330200:"宁波市",330203:"海曙区",330204:"江东区",330205:"江北区",330206:"北仑区",330211:"镇海区",330212:"鄞州区",330225:"象山县",330226:"宁海县",330281:"余姚市",330282:"慈溪市",330283:"奉化市",330284:"其它区",330300:"温州市",330302:"鹿城区",330303:"龙湾区",330304:"瓯海区",330322:"洞头县",330324:"永嘉县",330326:"平阳县",330327:"苍南县",330328:"文成县",330329:"泰顺县",330381:"瑞安市",330382:"乐清市",330383:"其它区",330400:"嘉兴市",330402:"南湖区",330411:"秀洲区",330421:"嘉善县",330424:"海盐县",330481:"海宁市",330482:"平湖市",330483:"桐乡市",330484:"其它区",330500:"湖州市",330502:"吴兴区",330503:"南浔区",330521:"德清县",330522:"长兴县",330523:"安吉县",330524:"其它区",330600:"绍兴市",330602:"越城区",330621:"绍兴县",330624:"新昌县",330681:"诸暨市",330682:"上虞市",330683:"嵊州市",330684:"其它区",330700:"金华市",330702:"婺城区",330703:"金东区",330723:"武义县",330726:"浦江县",330727:"磐安县",330781:"兰溪市",330782:"义乌市",330783:"东阳市",330784:"永康市",330785:"其它区",330800:"衢州市",330802:"柯城区",330803:"衢江区",330822:"常山县",330824:"开化县",330825:"龙游县",330881:"江山市",330882:"其它区",330900:"舟山市",330902:"定海区",330903:"普陀区",330921:"岱山县",330922:"嵊泗县",330923:"其它区",331e3:"台州市",331002:"椒江区",331003:"黄岩区",331004:"路桥区",331021:"玉环县",331022:"三门县",331023:"天台县",331024:"仙居县",331081:"温岭市",331082:"临海市",331083:"其它区",331100:"丽水市",331102:"莲都区",331121:"青田县",331122:"缙云县",331123:"遂昌县",331124:"松阳县",331125:"云和县",331126:"庆元县",331127:"景宁畲族自治县",331181:"龙泉市",331182:"其它区",34e4:"安徽省",340100:"合肥市",340102:"瑶海区",340103:"庐阳区",340104:"蜀山区",340111:"包河区",340121:"长丰县",340122:"肥东县",340123:"肥西县",340192:"其它区",340200:"芜湖市",340202:"镜湖区",340203:"弋江区",340207:"鸠江区",340208:"三山区",340221:"芜湖县",340222:"繁昌县",340223:"南陵县",340224:"其它区",340300:"蚌埠市",340302:"龙子湖区",340303:"蚌山区",340304:"禹会区",340311:"淮上区",340321:"怀远县",340322:"五河县",340323:"固镇县",340324:"其它区",340400:"淮南市",340402:"大通区",340403:"田家庵区",340404:"谢家集区",340405:"八公山区",340406:"潘集区",340421:"凤台县",340422:"其它区",340500:"马鞍山市",340503:"花山区",340504:"雨山区",340506:"博望区",340521:"当涂县",340522:"其它区",340600:"淮北市",340602:"杜集区",340603:"相山区",340604:"烈山区",340621:"濉溪县",340622:"其它区",340700:"铜陵市",340702:"铜官山区",340703:"狮子山区",340711:"郊区",340721:"铜陵县",340722:"其它区",340800:"安庆市",340802:"迎江区",340803:"大观区",340811:"宜秀区",340822:"怀宁县",340823:"枞阳县",340824:"潜山县",340825:"太湖县",340826:"宿松县",340827:"望江县",340828:"岳西县",340881:"桐城市",340882:"其它区",341e3:"黄山市",341002:"屯溪区",341003:"黄山区",341004:"徽州区",341021:"歙县",341022:"休宁县",341023:"黟县",341024:"祁门县",341025:"其它区",341100:"滁州市",341102:"琅琊区",341103:"南谯区",341122:"来安县",341124:"全椒县",341125:"定远县",341126:"凤阳县",341181:"天长市",341182:"明光市",341183:"其它区",341200:"阜阳市",341202:"颍州区",341203:"颍东区",341204:"颍泉区",341221:"临泉县",341222:"太和县",341225:"阜南县",341226:"颍上县",341282:"界首市",341283:"其它区",341300:"宿州市",341302:"埇桥区",341321:"砀山县",341322:"萧县",341323:"灵璧县",341324:"泗县",341325:"其它区",341400:"巢湖市",341421:"庐江县",341422:"无为县",341423:"含山县",341424:"和县",341500:"六安市",341502:"金安区",341503:"裕安区",341521:"寿县",341522:"霍邱县",341523:"舒城县",341524:"金寨县",341525:"霍山县",341526:"其它区",341600:"亳州市",341602:"谯城区",341621:"涡阳县",341622:"蒙城县",341623:"利辛县",341624:"其它区",341700:"池州市",341702:"贵池区",341721:"东至县",341722:"石台县",341723:"青阳县",341724:"其它区",341800:"宣城市",341802:"宣州区",341821:"郎溪县",341822:"广德县",341823:"泾县",341824:"绩溪县",341825:"旌德县",341881:"宁国市",341882:"其它区",35e4:"福建省",350100:"福州市",350102:"鼓楼区",350103:"台江区",350104:"仓山区",350105:"马尾区",350111:"晋安区",350121:"闽侯县",350122:"连江县",350123:"罗源县",350124:"闽清县",350125:"永泰县",350128:"平潭县",350181:"福清市",350182:"长乐市",350183:"其它区",350200:"厦门市",350203:"思明区",350205:"海沧区",350206:"湖里区",350211:"集美区",350212:"同安区",350213:"翔安区",350214:"其它区",350300:"莆田市",350302:"城厢区",350303:"涵江区",350304:"荔城区",350305:"秀屿区",350322:"仙游县",350323:"其它区",350400:"三明市",350402:"梅列区",350403:"三元区",350421:"明溪县",350423:"清流县",350424:"宁化县",350425:"大田县",350426:"尤溪县",350427:"沙县",350428:"将乐县",350429:"泰宁县",350430:"建宁县",350481:"永安市",350482:"其它区",350500:"泉州市",350502:"鲤城区",350503:"丰泽区",350504:"洛江区",350505:"泉港区",350521:"惠安县",350524:"安溪县",350525:"永春县",350526:"德化县",350527:"金门县",350581:"石狮市",350582:"晋江市",350583:"南安市",350584:"其它区",350600:"漳州市",350602:"芗城区",350603:"龙文区",350622:"云霄县",350623:"漳浦县",350624:"诏安县",350625:"长泰县",350626:"东山县",350627:"南靖县",350628:"平和县",350629:"华安县",350681:"龙海市",350682:"其它区",350700:"南平市",350702:"延平区",350721:"顺昌县",350722:"浦城县",350723:"光泽县",350724:"松溪县",350725:"政和县",350781:"邵武市",350782:"武夷山市",350783:"建瓯市",350784:"建阳市",350785:"其它区",350800:"龙岩市",350802:"新罗区",350821:"长汀县",350822:"永定县",350823:"上杭县",350824:"武平县",350825:"连城县",350881:"漳平市",350882:"其它区",350900:"宁德市",350902:"蕉城区",350921:"霞浦县",350922:"古田县",350923:"屏南县",350924:"寿宁县",350925:"周宁县",350926:"柘荣县",350981:"福安市",350982:"福鼎市",350983:"其它区",36e4:"江西省",360100:"南昌市",360102:"东湖区",360103:"西湖区",360104:"青云谱区",360105:"湾里区",360111:"青山湖区",360121:"南昌县",360122:"新建县",360123:"安义县",360124:"进贤县",360128:"其它区",360200:"景德镇市",360202:"昌江区",360203:"珠山区",360222:"浮梁县",360281:"乐平市",360282:"其它区",360300:"萍乡市",360302:"安源区",360313:"湘东区",360321:"莲花县",360322:"上栗县",360323:"芦溪县",360324:"其它区",360400:"九江市",360402:"庐山区",360403:"浔阳区",360421:"九江县",360423:"武宁县",360424:"修水县",360425:"永修县",360426:"德安县",360427:"星子县",360428:"都昌县",360429:"湖口县",360430:"彭泽县",360481:"瑞昌市",360482:"其它区",360483:"共青城市",360500:"新余市",360502:"渝水区",360521:"分宜县",360522:"其它区",360600:"鹰潭市",360602:"月湖区",360622:"余江县",360681:"贵溪市",360682:"其它区",360700:"赣州市",360702:"章贡区",360721:"赣县",360722:"信丰县",360723:"大余县",360724:"上犹县",360725:"崇义县",360726:"安远县",360727:"龙南县",360728:"定南县",360729:"全南县",360730:"宁都县",360731:"于都县",360732:"兴国县",360733:"会昌县",360734:"寻乌县",360735:"石城县",360781:"瑞金市",360782:"南康市",360783:"其它区",360800:"吉安市",360802:"吉州区",360803:"青原区",360821:"吉安县",360822:"吉水县",360823:"峡江县",360824:"新干县",360825:"永丰县",360826:"泰和县",360827:"遂川县",360828:"万安县",360829:"安福县",360830:"永新县",360881:"井冈山市",360882:"其它区",360900:"宜春市",360902:"袁州区",360921:"奉新县",360922:"万载县",360923:"上高县",360924:"宜丰县",360925:"靖安县",360926:"铜鼓县",360981:"丰城市",360982:"樟树市",360983:"高安市",360984:"其它区",361e3:"抚州市",361002:"临川区",361021:"南城县",361022:"黎川县",361023:"南丰县",361024:"崇仁县",361025:"乐安县",361026:"宜黄县",361027:"金溪县",361028:"资溪县",361029:"东乡县",361030:"广昌县",361031:"其它区",361100:"上饶市",361102:"信州区",361121:"上饶县",361122:"广丰县",361123:"玉山县",361124:"铅山县",361125:"横峰县",361126:"弋阳县",361127:"余干县",361128:"鄱阳县",361129:"万年县",361130:"婺源县",361181:"德兴市",361182:"其它区",37e4:"山东省",370100:"济南市",370102:"历下区",370103:"市中区",370104:"槐荫区",370105:"天桥区",370112:"历城区",370113:"长清区",370124:"平阴县",370125:"济阳县",370126:"商河县",370181:"章丘市",370182:"其它区",370200:"青岛市",370202:"市南区",370203:"市北区",370211:"黄岛区",370212:"崂山区",370213:"李沧区",370214:"城阳区",370281:"胶州市",370282:"即墨市",370283:"平度市",370285:"莱西市",370286:"其它区",370300:"淄博市",370302:"淄川区",370303:"张店区",370304:"博山区",370305:"临淄区",370306:"周村区",370321:"桓台县",370322:"高青县",370323:"沂源县",370324:"其它区",370400:"枣庄市",370402:"市中区",370403:"薛城区",370404:"峄城区",370405:"台儿庄区",370406:"山亭区",370481:"滕州市",370482:"其它区",370500:"东营市",370502:"东营区",370503:"河口区",370521:"垦利县",370522:"利津县",370523:"广饶县",370591:"其它区",370600:"烟台市",370602:"芝罘区",370611:"福山区",370612:"牟平区",370613:"莱山区",370634:"长岛县",370681:"龙口市",370682:"莱阳市",370683:"莱州市",370684:"蓬莱市",370685:"招远市",370686:"栖霞市",370687:"海阳市",370688:"其它区",370700:"潍坊市",370702:"潍城区",370703:"寒亭区",370704:"坊子区",370705:"奎文区",370724:"临朐县",370725:"昌乐县",370781:"青州市",370782:"诸城市",370783:"寿光市",370784:"安丘市",370785:"高密市",370786:"昌邑市",370787:"其它区",370800:"济宁市",370802:"市中区",370811:"任城区",370826:"微山县",370827:"鱼台县",370828:"金乡县",370829:"嘉祥县",370830:"汶上县",370831:"泗水县",370832:"梁山县",370881:"曲阜市",370882:"兖州市",370883:"邹城市",370884:"其它区",370900:"泰安市",370902:"泰山区",370903:"岱岳区",370921:"宁阳县",370923:"东平县",370982:"新泰市",370983:"肥城市",370984:"其它区",371e3:"威海市",371002:"环翠区",371081:"文登市",371082:"荣成市",371083:"乳山市",371084:"其它区",371100:"日照市",371102:"东港区",371103:"岚山区",371121:"五莲县",371122:"莒县",371123:"其它区",371200:"莱芜市",371202:"莱城区",371203:"钢城区",371204:"其它区",371300:"临沂市",371302:"兰山区",371311:"罗庄区",371312:"河东区",371321:"沂南县",371322:"郯城县",371323:"沂水县",371324:"苍山县",371325:"费县",371326:"平邑县",371327:"莒南县",371328:"蒙阴县",371329:"临沭县",371330:"其它区",371400:"德州市",371402:"德城区",371421:"陵县",371422:"宁津县",371423:"庆云县",371424:"临邑县",371425:"齐河县",371426:"平原县",371427:"夏津县",371428:"武城县",371481:"乐陵市",371482:"禹城市",371483:"其它区",371500:"聊城市",371502:"东昌府区",371521:"阳谷县",371522:"莘县",371523:"茌平县",371524:"东阿县",371525:"冠县",371526:"高唐县",371581:"临清市",371582:"其它区",371600:"滨州市",371602:"滨城区",371621:"惠民县",371622:"阳信县",371623:"无棣县",371624:"沾化县",371625:"博兴县",371626:"邹平县",371627:"其它区",371700:"菏泽市",371702:"牡丹区",371721:"曹县",371722:"单县",371723:"成武县",371724:"巨野县",371725:"郓城县",371726:"鄄城县",371727:"定陶县",371728:"东明县",371729:"其它区",41e4:"河南省",410100:"郑州市",410102:"中原区",410103:"二七区",410104:"管城回族区",410105:"金水区",410106:"上街区",410108:"惠济区",410122:"中牟县",410181:"巩义市",410182:"荥阳市",410183:"新密市",410184:"新郑市",410185:"登封市",410188:"其它区",410200:"开封市",410202:"龙亭区",410203:"顺河回族区",410204:"鼓楼区",410205:"禹王台区",410211:"金明区",410221:"杞县",410222:"通许县",410223:"尉氏县",410224:"开封县",410225:"兰考县",410226:"其它区",410300:"洛阳市",410302:"老城区",410303:"西工区",410304:"瀍河回族区",410305:"涧西区",410306:"吉利区",410307:"洛龙区",410322:"孟津县",410323:"新安县",410324:"栾川县",410325:"嵩县",410326:"汝阳县",410327:"宜阳县",410328:"洛宁县",410329:"伊川县",410381:"偃师市",410400:"平顶山市",410402:"新华区",410403:"卫东区",410404:"石龙区",410411:"湛河区",410421:"宝丰县",410422:"叶县",410423:"鲁山县",410425:"郏县",410481:"舞钢市",410482:"汝州市",410483:"其它区",410500:"安阳市",410502:"文峰区",410503:"北关区",410505:"殷都区",410506:"龙安区",410522:"安阳县",410523:"汤阴县",410526:"滑县",410527:"内黄县",410581:"林州市",410582:"其它区",410600:"鹤壁市",410602:"鹤山区",410603:"山城区",410611:"淇滨区",410621:"浚县",410622:"淇县",410623:"其它区",410700:"新乡市",410702:"红旗区",410703:"卫滨区",410704:"凤泉区",410711:"牧野区",410721:"新乡县",410724:"获嘉县",410725:"原阳县",410726:"延津县",410727:"封丘县",410728:"长垣县",410781:"卫辉市",410782:"辉县市",410783:"其它区",410800:"焦作市",410802:"解放区",410803:"中站区",410804:"马村区",410811:"山阳区",410821:"修武县",410822:"博爱县",410823:"武陟县",410825:"温县",410881:"济源市",410882:"沁阳市",410883:"孟州市",410884:"其它区",410900:"濮阳市",410902:"华龙区",410922:"清丰县",410923:"南乐县",410926:"范县",410927:"台前县",410928:"濮阳县",410929:"其它区",411e3:"许昌市",411002:"魏都区",411023:"许昌县",411024:"鄢陵县",411025:"襄城县",411081:"禹州市",411082:"长葛市",411083:"其它区",411100:"漯河市",411102:"源汇区",411103:"郾城区",411104:"召陵区",411121:"舞阳县",411122:"临颍县",411123:"其它区",411200:"三门峡市",411202:"湖滨区",411221:"渑池县",411222:"陕县",411224:"卢氏县",411281:"义马市",411282:"灵宝市",411283:"其它区",411300:"南阳市",411302:"宛城区",411303:"卧龙区",411321:"南召县",411322:"方城县",411323:"西峡县",411324:"镇平县",411325:"内乡县",411326:"淅川县",411327:"社旗县",411328:"唐河县",411329:"新野县",411330:"桐柏县",411381:"邓州市",411382:"其它区",411400:"商丘市",411402:"梁园区",411403:"睢阳区",411421:"民权县",411422:"睢县",411423:"宁陵县",411424:"柘城县",411425:"虞城县",411426:"夏邑县",411481:"永城市",411482:"其它区",411500:"信阳市",411502:"浉河区",411503:"平桥区",411521:"罗山县",411522:"光山县",411523:"新县",411524:"商城县",411525:"固始县",411526:"潢川县",411527:"淮滨县",411528:"息县",411529:"其它区",411600:"周口市",411602:"川汇区",411621:"扶沟县",411622:"西华县",411623:"商水县",411624:"沈丘县",411625:"郸城县",411626:"淮阳县",411627:"太康县",411628:"鹿邑县",411681:"项城市",411682:"其它区",411700:"驻马店市",411702:"驿城区",411721:"西平县",411722:"上蔡县",411723:"平舆县",411724:"正阳县",411725:"确山县",411726:"泌阳县",411727:"汝南县",411728:"遂平县",411729:"新蔡县",411730:"其它区",42e4:"湖北省",420100:"武汉市",420102:"江岸区",420103:"江汉区",420104:"硚口区",420105:"汉阳区",420106:"武昌区",420107:"青山区",420111:"洪山区",420112:"东西湖区",420113:"汉南区",420114:"蔡甸区",420115:"江夏区",420116:"黄陂区",420117:"新洲区",420118:"其它区",420200:"黄石市",420202:"黄石港区",420203:"西塞山区",420204:"下陆区",420205:"铁山区",420222:"阳新县",420281:"大冶市",420282:"其它区",420300:"十堰市",420302:"茅箭区",420303:"张湾区",420321:"郧县",420322:"郧西县",420323:"竹山县",420324:"竹溪县",420325:"房县",420381:"丹江口市",420383:"其它区",420500:"宜昌市",420502:"西陵区",420503:"伍家岗区",420504:"点军区",420505:"猇亭区",420506:"夷陵区",420525:"远安县",420526:"兴山县",420527:"秭归县",420528:"长阳土家族自治县",420529:"五峰土家族自治县",420581:"宜都市",420582:"当阳市",420583:"枝江市",420584:"其它区",420600:"襄阳市",420602:"襄城区",420606:"樊城区",420607:"襄州区",420624:"南漳县",420625:"谷城县",420626:"保康县",420682:"老河口市",420683:"枣阳市",420684:"宜城市",420685:"其它区",420700:"鄂州市",420702:"梁子湖区",420703:"华容区",420704:"鄂城区",420705:"其它区",420800:"荆门市",420802:"东宝区",420804:"掇刀区",420821:"京山县",420822:"沙洋县",420881:"钟祥市",420882:"其它区",420900:"孝感市",420902:"孝南区",420921:"孝昌县",420922:"大悟县",420923:"云梦县",420981:"应城市",420982:"安陆市",420984:"汉川市",420985:"其它区",421e3:"荆州市",421002:"沙市区",421003:"荆州区",421022:"公安县",421023:"监利县",421024:"江陵县",421081:"石首市",421083:"洪湖市",421087:"松滋市",421088:"其它区",421100:"黄冈市",421102:"黄州区",421121:"团风县",421122:"红安县",421123:"罗田县",421124:"英山县",421125:"浠水县",421126:"蕲春县",421127:"黄梅县",421181:"麻城市",421182:"武穴市",421183:"其它区",421200:"咸宁市",421202:"咸安区",421221:"嘉鱼县",421222:"通城县",421223:"崇阳县",421224:"通山县",421281:"赤壁市",421283:"其它区",421300:"随州市",421302:"曾都区",421321:"随县",421381:"广水市",421382:"其它区",422800:"恩施土家族苗族自治州",422801:"恩施市",422802:"利川市",422822:"建始县",422823:"巴东县",422825:"宣恩县",422826:"咸丰县",422827:"来凤县",422828:"鹤峰县",422829:"其它区",429004:"仙桃市",429005:"潜江市",429006:"天门市",429021:"神农架林区",43e4:"湖南省",430100:"长沙市",430102:"芙蓉区",430103:"天心区",430104:"岳麓区",430105:"开福区",430111:"雨花区",430121:"长沙县",430122:"望城区",430124:"宁乡县",430181:"浏阳市",430182:"其它区",430200:"株洲市",430202:"荷塘区",430203:"芦淞区",430204:"石峰区",430211:"天元区",430221:"株洲县",430223:"攸县",430224:"茶陵县",430225:"炎陵县",430281:"醴陵市",430282:"其它区",430300:"湘潭市",430302:"雨湖区",430304:"岳塘区",430321:"湘潭县",430381:"湘乡市",430382:"韶山市",430383:"其它区",430400:"衡阳市",430405:"珠晖区",430406:"雁峰区",430407:"石鼓区",430408:"蒸湘区",430412:"南岳区",430421:"衡阳县",430422:"衡南县",430423:"衡山县",430424:"衡东县",430426:"祁东县",430481:"耒阳市",430482:"常宁市",430483:"其它区",430500:"邵阳市",430502:"双清区",430503:"大祥区",430511:"北塔区",430521:"邵东县",430522:"新邵县",430523:"邵阳县",430524:"隆回县",430525:"洞口县",430527:"绥宁县",430528:"新宁县",430529:"城步苗族自治县",430581:"武冈市",430582:"其它区",430600:"岳阳市",430602:"岳阳楼区",430603:"云溪区",430611:"君山区",430621:"岳阳县",430623:"华容县",430624:"湘阴县",430626:"平江县",430681:"汨罗市",430682:"临湘市",430683:"其它区",430700:"常德市",430702:"武陵区",430703:"鼎城区",430721:"安乡县",430722:"汉寿县",430723:"澧县",430724:"临澧县",430725:"桃源县",430726:"石门县",430781:"津市市",430782:"其它区",430800:"张家界市",430802:"永定区",430811:"武陵源区",430821:"慈利县",430822:"桑植县",430823:"其它区",430900:"益阳市",430902:"资阳区",430903:"赫山区",430921:"南县",430922:"桃江县",430923:"安化县",430981:"沅江市",430982:"其它区",431e3:"郴州市",431002:"北湖区",431003:"苏仙区",431021:"桂阳县",431022:"宜章县",431023:"永兴县",431024:"嘉禾县",431025:"临武县",431026:"汝城县",431027:"桂东县",431028:"安仁县",431081:"资兴市",431082:"其它区",431100:"永州市",431102:"零陵区",431103:"冷水滩区",431121:"祁阳县",431122:"东安县",431123:"双牌县",431124:"道县",431125:"江永县",431126:"宁远县",431127:"蓝山县",431128:"新田县",431129:"江华瑶族自治县",431130:"其它区",431200:"怀化市",431202:"鹤城区",431221:"中方县",431222:"沅陵县",431223:"辰溪县",431224:"溆浦县",431225:"会同县",431226:"麻阳苗族自治县",431227:"新晃侗族自治县",431228:"芷江侗族自治县",431229:"靖州苗族侗族自治县",431230:"通道侗族自治县",431281:"洪江市",431282:"其它区",431300:"娄底市",431302:"娄星区",431321:"双峰县",431322:"新化县",431381:"冷水江市",431382:"涟源市",431383:"其它区",433100:"湘西土家族苗族自治州",433101:"吉首市",433122:"泸溪县",433123:"凤凰县",433124:"花垣县",433125:"保靖县",433126:"古丈县",433127:"永顺县",433130:"龙山县",433131:"其它区",44e4:"广东省",440100:"广州市",440103:"荔湾区",440104:"越秀区",440105:"海珠区",440106:"天河区",440111:"白云区",440112:"黄埔区",440113:"番禺区",440114:"花都区",440115:"南沙区",440116:"萝岗区",440183:"增城市",440184:"从化市",440189:"其它区",440200:"韶关市",440203:"武江区",440204:"浈江区",440205:"曲江区",440222:"始兴县",440224:"仁化县",440229:"翁源县",440232:"乳源瑶族自治县",440233:"新丰县",440281:"乐昌市",440282:"南雄市",440283:"其它区",440300:"深圳市",440303:"罗湖区",440304:"福田区",440305:"南山区",440306:"宝安区",440307:"龙岗区",440308:"盐田区",440309:"其它区",440320:"光明新区",440321:"坪山新区",440322:"大鹏新区",440323:"龙华新区",440400:"珠海市",440402:"香洲区",440403:"斗门区",440404:"金湾区",440488:"其它区",440500:"汕头市",440507:"龙湖区",440511:"金平区",440512:"濠江区",440513:"潮阳区",440514:"潮南区",440515:"澄海区",440523:"南澳县",440524:"其它区",440600:"佛山市",440604:"禅城区",440605:"南海区",440606:"顺德区",440607:"三水区",440608:"高明区",440609:"其它区",440700:"江门市",440703:"蓬江区",440704:"江海区",440705:"新会区",440781:"台山市",440783:"开平市",440784:"鹤山市",440785:"恩平市",440786:"其它区",440800:"湛江市",440802:"赤坎区",440803:"霞山区",440804:"坡头区",440811:"麻章区",440823:"遂溪县",440825:"徐闻县",440881:"廉江市",440882:"雷州市",440883:"吴川市",440884:"其它区",440900:"茂名市",440902:"茂南区",440903:"茂港区",440923:"电白县",440981:"高州市",440982:"化州市",440983:"信宜市",440984:"其它区",441200:"肇庆市",441202:"端州区",441203:"鼎湖区",441223:"广宁县",441224:"怀集县",441225:"封开县",441226:"德庆县",441283:"高要市",441284:"四会市",441285:"其它区",441300:"惠州市",441302:"惠城区",441303:"惠阳区",441322:"博罗县",441323:"惠东县",441324:"龙门县",441325:"其它区",441400:"梅州市",441402:"梅江区",441421:"梅县",441422:"大埔县",441423:"丰顺县",441424:"五华县",441426:"平远县",441427:"蕉岭县",441481:"兴宁市",441482:"其它区",441500:"汕尾市",441502:"城区",441521:"海丰县",441523:"陆河县",441581:"陆丰市",441582:"其它区",441600:"河源市",441602:"源城区",441621:"紫金县",441622:"龙川县",441623:"连平县",441624:"和平县",441625:"东源县",441626:"其它区",441700:"阳江市",441702:"江城区",441721:"阳西县",441723:"阳东县",441781:"阳春市",441782:"其它区",441800:"清远市",441802:"清城区",441821:"佛冈县",441823:"阳山县",441825:"连山壮族瑶族自治县",441826:"连南瑶族自治县",441827:"清新区",441881:"英德市",441882:"连州市",441883:"其它区",441900:"东莞市",442e3:"中山市",442101:"东沙群岛",445100:"潮州市",445102:"湘桥区",445121:"潮安区",445122:"饶平县",445186:"其它区",445200:"揭阳市",445202:"榕城区",445221:"揭东区",445222:"揭西县",445224:"惠来县",445281:"普宁市",445285:"其它区",445300:"云浮市",445302:"云城区",445321:"新兴县",445322:"郁南县",445323:"云安县",445381:"罗定市",445382:"其它区",45e4:"广西壮族自治区",450100:"南宁市",450102:"兴宁区",450103:"青秀区",450105:"江南区",450107:"西乡塘区",450108:"良庆区",450109:"邕宁区",450122:"武鸣县",450123:"隆安县",450124:"马山县",450125:"上林县",450126:"宾阳县",450127:"横县",450128:"其它区",450200:"柳州市",450202:"城中区",450203:"鱼峰区",450204:"柳南区",450205:"柳北区",450221:"柳江县",450222:"柳城县",450223:"鹿寨县",450224:"融安县",450225:"融水苗族自治县",450226:"三江侗族自治县",450227:"其它区",450300:"桂林市",450302:"秀峰区",450303:"叠彩区",450304:"象山区",450305:"七星区",450311:"雁山区",450321:"阳朔县",450322:"临桂区",450323:"灵川县",450324:"全州县",450325:"兴安县",450326:"永福县",450327:"灌阳县",450328:"龙胜各族自治县",450329:"资源县",450330:"平乐县",450331:"荔浦县",450332:"恭城瑶族自治县",450333:"其它区",450400:"梧州市",450403:"万秀区",450405:"长洲区",450406:"龙圩区",450421:"苍梧县",450422:"藤县",450423:"蒙山县",450481:"岑溪市",450482:"其它区",450500:"北海市",450502:"海城区",450503:"银海区",450512:"铁山港区",450521:"合浦县",450522:"其它区",450600:"防城港市",450602:"港口区",450603:"防城区",450621:"上思县",450681:"东兴市",450682:"其它区",450700:"钦州市",450702:"钦南区",450703:"钦北区",450721:"灵山县",450722:"浦北县",450723:"其它区",450800:"贵港市",450802:"港北区",450803:"港南区",450804:"覃塘区",450821:"平南县",450881:"桂平市",450882:"其它区",450900:"玉林市",450902:"玉州区",450903:"福绵区",450921:"容县",450922:"陆川县",450923:"博白县",450924:"兴业县",450981:"北流市",450982:"其它区",451e3:"百色市",451002:"右江区",451021:"田阳县",451022:"田东县",451023:"平果县",451024:"德保县",451025:"靖西县",451026:"那坡县",451027:"凌云县",451028:"乐业县",451029:"田林县",451030:"西林县",451031:"隆林各族自治县",451032:"其它区",451100:"贺州市",451102:"八步区",451119:"平桂管理区",451121:"昭平县",451122:"钟山县",451123:"富川瑶族自治县",451124:"其它区",451200:"河池市",451202:"金城江区",451221:"南丹县",451222:"天峨县",451223:"凤山县",451224:"东兰县",451225:"罗城仫佬族自治县",451226:"环江毛南族自治县",451227:"巴马瑶族自治县",451228:"都安瑶族自治县",451229:"大化瑶族自治县",451281:"宜州市",451282:"其它区",451300:"来宾市",451302:"兴宾区",451321:"忻城县",451322:"象州县",451323:"武宣县",451324:"金秀瑶族自治县",451381:"合山市",451382:"其它区",451400:"崇左市",451402:"江州区",451421:"扶绥县",451422:"宁明县",451423:"龙州县",451424:"大新县",451425:"天等县",451481:"凭祥市",451482:"其它区",46e4:"海南省",460100:"海口市",460105:"秀英区",460106:"龙华区",460107:"琼山区",460108:"美兰区",460109:"其它区",460200:"三亚市",460300:"三沙市",460321:"西沙群岛",460322:"南沙群岛",460323:"中沙群岛的岛礁及其海域",469001:"五指山市",469002:"琼海市",469003:"儋州市",469005:"文昌市",469006:"万宁市",469007:"东方市",469025:"定安县",469026:"屯昌县",469027:"澄迈县",469028:"临高县",469030:"白沙黎族自治县",469031:"昌江黎族自治县",469033:"乐东黎族自治县",469034:"陵水黎族自治县",469035:"保亭黎族苗族自治县",469036:"琼中黎族苗族自治县",471005:"其它区",5e5:"重庆",500100:"重庆市",500101:"万州区",500102:"涪陵区",500103:"渝中区",500104:"大渡口区",500105:"江北区",500106:"沙坪坝区",500107:"九龙坡区",500108:"南岸区",500109:"北碚区",500110:"万盛区",500111:"双桥区",500112:"渝北区",500113:"巴南区",500114:"黔江区",500115:"长寿区",500222:"綦江区",500223:"潼南县",500224:"铜梁县",500225:"大足区",500226:"荣昌县",500227:"璧山县",500228:"梁平县",500229:"城口县",500230:"丰都县",500231:"垫江县",500232:"武隆县",500233:"忠县",500234:"开县",500235:"云阳县",500236:"奉节县",500237:"巫山县",500238:"巫溪县",500240:"石柱土家族自治县",500241:"秀山土家族苗族自治县",500242:"酉阳土家族苗族自治县",500243:"彭水苗族土家族自治县",500381:"江津区",500382:"合川区",500383:"永川区",500384:"南川区",500385:"其它区",51e4:"四川省",510100:"成都市",510104:"锦江区",510105:"青羊区",510106:"金牛区",510107:"武侯区",510108:"成华区",510112:"龙泉驿区",510113:"青白江区",510114:"新都区",510115:"温江区",510121:"金堂县",510122:"双流县",510124:"郫县",510129:"大邑县",510131:"蒲江县",510132:"新津县",510181:"都江堰市",510182:"彭州市",510183:"邛崃市",510184:"崇州市",510185:"其它区",510300:"自贡市",510302:"自流井区",510303:"贡井区",510304:"大安区",510311:"沿滩区",510321:"荣县",510322:"富顺县",510323:"其它区",510400:"攀枝花市",510402:"东区",510403:"西区",510411:"仁和区",510421:"米易县",510422:"盐边县",510423:"其它区",510500:"泸州市",510502:"江阳区",510503:"纳溪区",510504:"龙马潭区",510521:"泸县",510522:"合江县",510524:"叙永县",510525:"古蔺县",510526:"其它区",510600:"德阳市",510603:"旌阳区",510623:"中江县",510626:"罗江县",510681:"广汉市",510682:"什邡市",510683:"绵竹市",510684:"其它区",510700:"绵阳市",510703:"涪城区",510704:"游仙区",510722:"三台县",510723:"盐亭县",510724:"安县",510725:"梓潼县",510726:"北川羌族自治县",510727:"平武县",510781:"江油市",510782:"其它区",510800:"广元市",510802:"利州区",510811:"昭化区",510812:"朝天区",510821:"旺苍县",510822:"青川县",510823:"剑阁县",510824:"苍溪县",510825:"其它区",510900:"遂宁市",510903:"船山区",510904:"安居区",510921:"蓬溪县",510922:"射洪县",510923:"大英县",510924:"其它区",511e3:"内江市",511002:"市中区",511011:"东兴区",511024:"威远县",511025:"资中县",511028:"隆昌县",511029:"其它区",511100:"乐山市",511102:"市中区",511111:"沙湾区",511112:"五通桥区",511113:"金口河区",511123:"犍为县",511124:"井研县",511126:"夹江县",511129:"沐川县",511132:"峨边彝族自治县",511133:"马边彝族自治县",511181:"峨眉山市",511182:"其它区",511300:"南充市",511302:"顺庆区",511303:"高坪区",511304:"嘉陵区",511321:"南部县",511322:"营山县",511323:"蓬安县",511324:"仪陇县",511325:"西充县",511381:"阆中市",511382:"其它区",511400:"眉山市",511402:"东坡区",511421:"仁寿县",511422:"彭山县",511423:"洪雅县",511424:"丹棱县",511425:"青神县",511426:"其它区",511500:"宜宾市",511502:"翠屏区",511521:"宜宾县",511522:"南溪区",511523:"江安县",511524:"长宁县",511525:"高县",511526:"珙县",511527:"筠连县",511528:"兴文县",511529:"屏山县",511530:"其它区",511600:"广安市",511602:"广安区",511603:"前锋区",511621:"岳池县",511622:"武胜县",511623:"邻水县",511681:"华蓥市",511683:"其它区",511700:"达州市",511702:"通川区",511721:"达川区",511722:"宣汉县",511723:"开江县",511724:"大竹县",511725:"渠县",511781:"万源市",511782:"其它区",511800:"雅安市",511802:"雨城区",511821:"名山区",511822:"荥经县",511823:"汉源县",511824:"石棉县",511825:"天全县",511826:"芦山县",511827:"宝兴县",511828:"其它区",511900:"巴中市",511902:"巴州区",511903:"恩阳区",511921:"通江县",511922:"南江县",511923:"平昌县",511924:"其它区",512e3:"资阳市",512002:"雁江区",512021:"安岳县",512022:"乐至县",512081:"简阳市",512082:"其它区",513200:"阿坝藏族羌族自治州",513221:"汶川县",513222:"理县",513223:"茂县",513224:"松潘县",513225:"九寨沟县",513226:"金川县",513227:"小金县",513228:"黑水县",513229:"马尔康县",513230:"壤塘县",513231:"阿坝县",513232:"若尔盖县",513233:"红原县",513234:"其它区",513300:"甘孜藏族自治州",513321:"康定县",513322:"泸定县",513323:"丹巴县",513324:"九龙县",513325:"雅江县",513326:"道孚县",513327:"炉霍县",513328:"甘孜县",513329:"新龙县",513330:"德格县",513331:"白玉县",513332:"石渠县",513333:"色达县",513334:"理塘县",513335:"巴塘县",513336:"乡城县",513337:"稻城县",513338:"得荣县",513339:"其它区",513400:"凉山彝族自治州",513401:"西昌市",513422:"木里藏族自治县",513423:"盐源县",513424:"德昌县",513425:"会理县",513426:"会东县",513427:"宁南县",513428:"普格县",513429:"布拖县",513430:"金阳县",513431:"昭觉县",513432:"喜德县",513433:"冕宁县",513434:"越西县",513435:"甘洛县",513436:"美姑县",513437:"雷波县",513438:"其它区",52e4:"贵州省",520100:"贵阳市",520102:"南明区",520103:"云岩区",520111:"花溪区",520112:"乌当区",520113:"白云区",520121:"开阳县",520122:"息烽县",520123:"修文县",520151:"观山湖区",520181:"清镇市",520182:"其它区",520200:"六盘水市",520201:"钟山区",520203:"六枝特区",520221:"水城县",520222:"盘县",520223:"其它区",520300:"遵义市",520302:"红花岗区",520303:"汇川区",520321:"遵义县",520322:"桐梓县",520323:"绥阳县",520324:"正安县",520325:"道真仡佬族苗族自治县",520326:"务川仡佬族苗族自治县",520327:"凤冈县",520328:"湄潭县",520329:"余庆县",520330:"习水县",520381:"赤水市",520382:"仁怀市",520383:"其它区",520400:"安顺市",520402:"西秀区",520421:"平坝县",520422:"普定县",520423:"镇宁布依族苗族自治县",520424:"关岭布依族苗族自治县",520425:"紫云苗族布依族自治县",520426:"其它区",522200:"铜仁市",522201:"碧江区",522222:"江口县",522223:"玉屏侗族自治县",522224:"石阡县",522225:"思南县",522226:"印江土家族苗族自治县",522227:"德江县",522228:"沿河土家族自治县",522229:"松桃苗族自治县",522230:"万山区",522231:"其它区",522300:"黔西南布依族苗族自治州",522301:"兴义市",522322:"兴仁县",522323:"普安县",522324:"晴隆县",522325:"贞丰县",522326:"望谟县",522327:"册亨县",522328:"安龙县",522329:"其它区",522400:"毕节市",522401:"七星关区",522422:"大方县",522423:"黔西县",522424:"金沙县",522425:"织金县",522426:"纳雍县",522427:"威宁彝族回族苗族自治县",522428:"赫章县",522429:"其它区",522600:"黔东南苗族侗族自治州",522601:"凯里市",522622:"黄平县",522623:"施秉县",522624:"三穗县",522625:"镇远县",522626:"岑巩县",522627:"天柱县",522628:"锦屏县",522629:"剑河县",522630:"台江县",522631:"黎平县",522632:"榕江县",522633:"从江县",522634:"雷山县",522635:"麻江县",522636:"丹寨县",522637:"其它区",522700:"黔南布依族苗族自治州",522701:"都匀市",522702:"福泉市",522722:"荔波县",522723:"贵定县",522725:"瓮安县",522726:"独山县",522727:"平塘县",522728:"罗甸县",522729:"长顺县",522730:"龙里县",522731:"惠水县",522732:"三都水族自治县",522733:"其它区",53e4:"云南省",530100:"昆明市",530102:"五华区",530103:"盘龙区",530111:"官渡区",530112:"西山区",530113:"东川区",530121:"呈贡区",530122:"晋宁县",530124:"富民县",530125:"宜良县",530126:"石林彝族自治县",530127:"嵩明县",530128:"禄劝彝族苗族自治县",530129:"寻甸回族彝族自治县",530181:"安宁市",530182:"其它区",530300:"曲靖市",530302:"麒麟区",530321:"马龙县",530322:"陆良县",530323:"师宗县",530324:"罗平县",530325:"富源县",530326:"会泽县",530328:"沾益县",530381:"宣威市",530382:"其它区",530400:"玉溪市",530402:"红塔区",530421:"江川县",530422:"澄江县",530423:"通海县",530424:"华宁县",530425:"易门县",530426:"峨山彝族自治县",530427:"新平彝族傣族自治县",530428:"元江哈尼族彝族傣族自治县",530429:"其它区",530500:"保山市",530502:"隆阳区",530521:"施甸县",530522:"腾冲县",530523:"龙陵县",530524:"昌宁县",530525:"其它区",530600:"昭通市",530602:"昭阳区",530621:"鲁甸县",530622:"巧家县",530623:"盐津县",530624:"大关县",530625:"永善县",530626:"绥江县",530627:"镇雄县",530628:"彝良县",530629:"威信县",530630:"水富县",530631:"其它区",530700:"丽江市",530702:"古城区",530721:"玉龙纳西族自治县",530722:"永胜县",530723:"华坪县",530724:"宁蒗彝族自治县",530725:"其它区",530800:"普洱市",530802:"思茅区",530821:"宁洱哈尼族彝族自治县",530822:"墨江哈尼族自治县",530823:"景东彝族自治县",530824:"景谷傣族彝族自治县",530825:"镇沅彝族哈尼族拉祜族自治县",530826:"江城哈尼族彝族自治县",530827:"孟连傣族拉祜族佤族自治县",530828:"澜沧拉祜族自治县",530829:"西盟佤族自治县",530830:"其它区",530900:"临沧市",530902:"临翔区",530921:"凤庆县",530922:"云县",530923:"永德县",530924:"镇康县",530925:"双江拉祜族佤族布朗族傣族自治县",530926:"耿马傣族佤族自治县",530927:"沧源佤族自治县",530928:"其它区",532300:"楚雄彝族自治州",532301:"楚雄市",532322:"双柏县",532323:"牟定县",532324:"南华县",532325:"姚安县",532326:"大姚县",532327:"永仁县",532328:"元谋县",532329:"武定县",532331:"禄丰县",532332:"其它区",532500:"红河哈尼族彝族自治州",532501:"个旧市",532502:"开远市",532522:"蒙自市",532523:"屏边苗族自治县",532524:"建水县",532525:"石屏县",532526:"弥勒市",532527:"泸西县",532528:"元阳县",532529:"红河县",532530:"金平苗族瑶族傣族自治县",532531:"绿春县",532532:"河口瑶族自治县",532533:"其它区",532600:"文山壮族苗族自治州",532621:"文山市",532622:"砚山县",532623:"西畴县",532624:"麻栗坡县",532625:"马关县",532626:"丘北县",532627:"广南县",532628:"富宁县",532629:"其它区",532800:"西双版纳傣族自治州",532801:"景洪市",532822:"勐海县",532823:"勐腊县",532824:"其它区",532900:"大理白族自治州",532901:"大理市",532922:"漾濞彝族自治县",532923:"祥云县",532924:"宾川县",532925:"弥渡县",532926:"南涧彝族自治县",532927:"巍山彝族回族自治县",532928:"永平县",532929:"云龙县",532930:"洱源县",532931:"剑川县",532932:"鹤庆县",532933:"其它区",533100:"德宏傣族景颇族自治州",533102:"瑞丽市",533103:"芒市",533122:"梁河县",533123:"盈江县",533124:"陇川县",533125:"其它区",533300:"怒江傈僳族自治州",533321:"泸水县",533323:"福贡县",533324:"贡山独龙族怒族自治县",533325:"兰坪白族普米族自治县",533326:"其它区",533400:"迪庆藏族自治州",533421:"香格里拉县",533422:"德钦县",533423:"维西傈僳族自治县",533424:"其它区",54e4:"西藏自治区",540100:"拉萨市",540102:"城关区",540121:"林周县",540122:"当雄县",540123:"尼木县",540124:"曲水县",540125:"堆龙德庆县",540126:"达孜县",540127:"墨竹工卡县",540128:"其它区",542100:"昌都地区",542121:"昌都县",542122:"江达县",542123:"贡觉县",542124:"类乌齐县",542125:"丁青县",542126:"察雅县",542127:"八宿县",542128:"左贡县",542129:"芒康县",542132:"洛隆县",542133:"边坝县",542134:"其它区",542200:"山南地区",542221:"乃东县",542222:"扎囊县",542223:"贡嘎县",542224:"桑日县",542225:"琼结县",542226:"曲松县",542227:"措美县",542228:"洛扎县",542229:"加查县",542231:"隆子县",542232:"错那县",542233:"浪卡子县",542234:"其它区",542300:"日喀则地区",542301:"日喀则市",542322:"南木林县",542323:"江孜县",542324:"定日县",542325:"萨迦县",542326:"拉孜县",542327:"昂仁县",542328:"谢通门县",542329:"白朗县",542330:"仁布县",542331:"康马县",542332:"定结县",542333:"仲巴县",542334:"亚东县",542335:"吉隆县",542336:"聂拉木县",542337:"萨嘎县",542338:"岗巴县",542339:"其它区",542400:"那曲地区",542421:"那曲县",542422:"嘉黎县",542423:"比如县",542424:"聂荣县",542425:"安多县",542426:"申扎县",542427:"索县",542428:"班戈县",542429:"巴青县",542430:"尼玛县",542431:"其它区",542432:"双湖县",542500:"阿里地区",542521:"普兰县",542522:"札达县",542523:"噶尔县",542524:"日土县",542525:"革吉县",542526:"改则县",542527:"措勤县",542528:"其它区",542600:"林芝地区",542621:"林芝县",542622:"工布江达县",542623:"米林县",542624:"墨脱县",542625:"波密县",542626:"察隅县",542627:"朗县",542628:"其它区",61e4:"陕西省",610100:"西安市",610102:"新城区",610103:"碑林区",610104:"莲湖区",610111:"灞桥区",610112:"未央区",610113:"雁塔区",610114:"阎良区",610115:"临潼区",610116:"长安区",610122:"蓝田县",610124:"周至县",610125:"户县",610126:"高陵县",610127:"其它区",610200:"铜川市",610202:"王益区",610203:"印台区",610204:"耀州区",610222:"宜君县",610223:"其它区",610300:"宝鸡市",610302:"渭滨区",610303:"金台区",610304:"陈仓区",610322:"凤翔县",610323:"岐山县",610324:"扶风县",610326:"眉县",610327:"陇县",610328:"千阳县",610329:"麟游县",610330:"凤县",610331:"太白县",610332:"其它区",610400:"咸阳市",610402:"秦都区",610403:"杨陵区",610404:"渭城区",610422:"三原县",610423:"泾阳县",610424:"乾县",610425:"礼泉县",610426:"永寿县",610427:"彬县",610428:"长武县",610429:"旬邑县",610430:"淳化县",610431:"武功县",610481:"兴平市",610482:"其它区",610500:"渭南市",610502:"临渭区",610521:"华县",610522:"潼关县",610523:"大荔县",610524:"合阳县",610525:"澄城县",610526:"蒲城县",610527:"白水县",610528:"富平县",610581:"韩城市",610582:"华阴市",610583:"其它区",610600:"延安市",610602:"宝塔区",610621:"延长县",610622:"延川县",610623:"子长县",610624:"安塞县",610625:"志丹县",610626:"吴起县",610627:"甘泉县",610628:"富县",610629:"洛川县",610630:"宜川县",610631:"黄龙县",610632:"黄陵县",610633:"其它区",610700:"汉中市",610702:"汉台区",610721:"南郑县",610722:"城固县",610723:"洋县",610724:"西乡县",610725:"勉县",610726:"宁强县",610727:"略阳县",610728:"镇巴县",610729:"留坝县",610730:"佛坪县",610731:"其它区",610800:"榆林市",610802:"榆阳区",610821:"神木县",610822:"府谷县",610823:"横山县",610824:"靖边县",610825:"定边县",610826:"绥德县",610827:"米脂县",610828:"佳县",610829:"吴堡县",610830:"清涧县",610831:"子洲县",610832:"其它区",610900:"安康市",610902:"汉滨区",610921:"汉阴县",610922:"石泉县",610923:"宁陕县",610924:"紫阳县",610925:"岚皋县",610926:"平利县",610927:"镇坪县",610928:"旬阳县",610929:"白河县",610930:"其它区",611e3:"商洛市",611002:"商州区",611021:"洛南县",611022:"丹凤县",611023:"商南县",611024:"山阳县",611025:"镇安县",611026:"柞水县",611027:"其它区",62e4:"甘肃省",620100:"兰州市",620102:"城关区",620103:"七里河区",620104:"西固区",620105:"安宁区",620111:"红古区",620121:"永登县",620122:"皋兰县",620123:"榆中县",620124:"其它区",620200:"嘉峪关市",620300:"金昌市",620302:"金川区",620321:"永昌县",620322:"其它区",620400:"白银市",620402:"白银区",620403:"平川区",620421:"靖远县",620422:"会宁县",620423:"景泰县",620424:"其它区",620500:"天水市",620502:"秦州区",620503:"麦积区",620521:"清水县",620522:"秦安县",620523:"甘谷县",620524:"武山县",620525:"张家川回族自治县",620526:"其它区",620600:"武威市",620602:"凉州区",620621:"民勤县",620622:"古浪县",620623:"天祝藏族自治县",620624:"其它区",620700:"张掖市",620702:"甘州区",620721:"肃南裕固族自治县",620722:"民乐县",620723:"临泽县",620724:"高台县",620725:"山丹县",620726:"其它区",620800:"平凉市",620802:"崆峒区",620821:"泾川县",620822:"灵台县",620823:"崇信县",620824:"华亭县",620825:"庄浪县",620826:"静宁县",620827:"其它区",620900:"酒泉市",620902:"肃州区",620921:"金塔县",620922:"瓜州县",620923:"肃北蒙古族自治县",620924:"阿克塞哈萨克族自治县",620981:"玉门市",620982:"敦煌市",620983:"其它区",621e3:"庆阳市",621002:"西峰区",621021:"庆城县",621022:"环县",621023:"华池县",621024:"合水县",621025:"正宁县",621026:"宁县",621027:"镇原县",621028:"其它区",621100:"定西市",621102:"安定区",621121:"通渭县",621122:"陇西县",621123:"渭源县",621124:"临洮县",621125:"漳县",621126:"岷县",621127:"其它区",621200:"陇南市",621202:"武都区",621221:"成县",621222:"文县",621223:"宕昌县",621224:"康县",621225:"西和县",621226:"礼县",621227:"徽县",621228:"两当县",621229:"其它区",622900:"临夏回族自治州",622901:"临夏市",622921:"临夏县",622922:"康乐县",622923:"永靖县",622924:"广河县",622925:"和政县",622926:"东乡族自治县",622927:"积石山保安族东乡族撒拉族自治县",622928:"其它区",623e3:"甘南藏族自治州",623001:"合作市",623021:"临潭县",623022:"卓尼县",623023:"舟曲县",623024:"迭部县",623025:"玛曲县",623026:"碌曲县",623027:"夏河县",623028:"其它区",63e4:"青海省",630100:"西宁市",630102:"城东区",630103:"城中区",630104:"城西区",630105:"城北区",630121:"大通回族土族自治县",630122:"湟中县",630123:"湟源县",630124:"其它区",632100:"海东市",632121:"平安县",632122:"民和回族土族自治县",632123:"乐都区",632126:"互助土族自治县",632127:"化隆回族自治县",632128:"循化撒拉族自治县",632129:"其它区",632200:"海北藏族自治州",632221:"门源回族自治县",632222:"祁连县",632223:"海晏县",632224:"刚察县",632225:"其它区",632300:"黄南藏族自治州",632321:"同仁县",632322:"尖扎县",632323:"泽库县",632324:"河南蒙古族自治县",632325:"其它区",632500:"海南藏族自治州",632521:"共和县",632522:"同德县",632523:"贵德县",632524:"兴海县",632525:"贵南县",632526:"其它区",632600:"果洛藏族自治州",632621:"玛沁县",632622:"班玛县",632623:"甘德县",632624:"达日县",632625:"久治县",632626:"玛多县",632627:"其它区",632700:"玉树藏族自治州",632721:"玉树市",632722:"杂多县",632723:"称多县",632724:"治多县",632725:"囊谦县",632726:"曲麻莱县",632727:"其它区",632800:"海西蒙古族藏族自治州",632801:"格尔木市",632802:"德令哈市",632821:"乌兰县",632822:"都兰县",632823:"天峻县",632824:"其它区",64e4:"宁夏回族自治区",640100:"银川市",640104:"兴庆区",640105:"西夏区",640106:"金凤区",640121:"永宁县",640122:"贺兰县",640181:"灵武市",640182:"其它区",640200:"石嘴山市",640202:"大武口区",640205:"惠农区",640221:"平罗县",640222:"其它区",640300:"吴忠市",640302:"利通区",640303:"红寺堡区",640323:"盐池县",640324:"同心县",640381:"青铜峡市",640382:"其它区",640400:"固原市",640402:"原州区",640422:"西吉县",640423:"隆德县",640424:"泾源县",640425:"彭阳县",640426:"其它区",640500:"中卫市",640502:"沙坡头区",640521:"中宁县",640522:"海原县",640523:"其它区",65e4:"新疆维吾尔自治区",650100:"乌鲁木齐市",650102:"天山区",650103:"沙依巴克区",650104:"新市区",650105:"水磨沟区",650106:"头屯河区",650107:"达坂城区",650109:"米东区",650121:"乌鲁木齐县",650122:"其它区",650200:"克拉玛依市",650202:"独山子区",650203:"克拉玛依区",650204:"白碱滩区",650205:"乌尔禾区",650206:"其它区",652100:"吐鲁番地区",652101:"吐鲁番市",652122:"鄯善县",652123:"托克逊县",652124:"其它区",652200:"哈密地区",652201:"哈密市",652222:"巴里坤哈萨克自治县",652223:"伊吾县",652224:"其它区",652300:"昌吉回族自治州",652301:"昌吉市",652302:"阜康市",652323:"呼图壁县",652324:"玛纳斯县",652325:"奇台县",652327:"吉木萨尔县",652328:"木垒哈萨克自治县",652329:"其它区",652700:"博尔塔拉蒙古自治州",652701:"博乐市",652702:"阿拉山口市",652722:"精河县",652723:"温泉县",652724:"其它区",652800:"巴音郭楞蒙古自治州",652801:"库尔勒市",652822:"轮台县",652823:"尉犁县",652824:"若羌县",652825:"且末县",652826:"焉耆回族自治县",652827:"和静县",652828:"和硕县",652829:"博湖县",652830:"其它区",652900:"阿克苏地区",652901:"阿克苏市",652922:"温宿县",652923:"库车县",652924:"沙雅县",652925:"新和县",652926:"拜城县",652927:"乌什县",652928:"阿瓦提县",652929:"柯坪县",652930:"其它区",653e3:"克孜勒苏柯尔克孜自治州",653001:"阿图什市",653022:"阿克陶县",653023:"阿合奇县",653024:"乌恰县",653025:"其它区",653100:"喀什地区",653101:"喀什市",653121:"疏附县",653122:"疏勒县",653123:"英吉沙县",653124:"泽普县",653125:"莎车县",653126:"叶城县",653127:"麦盖提县",653128:"岳普湖县",653129:"伽师县",653130:"巴楚县",653131:"塔什库尔干塔吉克自治县",653132:"其它区",653200:"和田地区",653201:"和田市",653221:"和田县",653222:"墨玉县",653223:"皮山县",653224:"洛浦县",653225:"策勒县",653226:"于田县",653227:"民丰县",653228:"其它区",654e3:"伊犁哈萨克自治州",654002:"伊宁市",654003:"奎屯市",654021:"伊宁县",654022:"察布查尔锡伯自治县",654023:"霍城县",654024:"巩留县",654025:"新源县",654026:"昭苏县",654027:"特克斯县",654028:"尼勒克县",654029:"其它区",654200:"塔城地区",654201:"塔城市",654202:"乌苏市",654221:"额敏县",654223:"沙湾县",654224:"托里县",654225:"裕民县",654226:"和布克赛尔蒙古自治县",654227:"其它区",654300:"阿勒泰地区",654301:"阿勒泰市",654321:"布尔津县",654322:"富蕴县",654323:"福海县",654324:"哈巴河县",654325:"青河县",654326:"吉木乃县",654327:"其它区",659001:"石河子市",659002:"阿拉尔市",659003:"图木舒克市",659004:"五家渠市",71e4:"台湾",710100:"台北市",710101:"中正区",710102:"大同区",710103:"中山区",710104:"松山区",710105:"大安区",710106:"万华区",710107:"信义区",710108:"士林区",710109:"北投区",710110:"内湖区",710111:"南港区",710112:"文山区",710113:"其它区",710200:"高雄市",710201:"新兴区",710202:"前金区",710203:"芩雅区",710204:"盐埕区",710205:"鼓山区",710206:"旗津区",710207:"前镇区",710208:"三民区",710209:"左营区",710210:"楠梓区",710211:"小港区",710212:"其它区",710241:"苓雅区",710242:"仁武区",710243:"大社区",710244:"冈山区",710245:"路竹区",710246:"阿莲区",710247:"田寮区",710248:"燕巢区",710249:"桥头区",710250:"梓官区",710251:"弥陀区",710252:"永安区",710253:"湖内区",710254:"凤山区",710255:"大寮区",710256:"林园区",710257:"鸟松区",710258:"大树区",710259:"旗山区",710260:"美浓区",710261:"六龟区",710262:"内门区",710263:"杉林区",710264:"甲仙区",710265:"桃源区",710266:"那玛夏区",710267:"茂林区",710268:"茄萣区",710300:"台南市",710301:"中西区",710302:"东区",710303:"南区",710304:"北区",710305:"安平区",710306:"安南区",710307:"其它区",710339:"永康区",710340:"归仁区",710341:"新化区",710342:"左镇区",710343:"玉井区",710344:"楠西区",710345:"南化区",710346:"仁德区",710347:"关庙区",710348:"龙崎区",710349:"官田区",710350:"麻豆区",710351:"佳里区",710352:"西港区",710353:"七股区",710354:"将军区",710355:"学甲区",710356:"北门区",710357:"新营区",710358:"后壁区",710359:"白河区",710360:"东山区",710361:"六甲区",710362:"下营区",710363:"柳营区",710364:"盐水区",710365:"善化区",710366:"大内区",710367:"山上区",710368:"新市区",710369:"安定区",710400:"台中市",710401:"中区",710402:"东区",710403:"南区",710404:"西区",710405:"北区",710406:"北屯区",710407:"西屯区",710408:"南屯区",710409:"其它区",710431:"太平区",710432:"大里区",710433:"雾峰区",710434:"乌日区",710435:"丰原区",710436:"后里区",710437:"石冈区",710438:"东势区",710439:"和平区",710440:"新社区",710441:"潭子区",710442:"大雅区",710443:"神冈区",710444:"大肚区",710445:"沙鹿区",710446:"龙井区",710447:"梧栖区",710448:"清水区",710449:"大甲区",710450:"外埔区",710451:"大安区",710500:"金门县",710507:"金沙镇",710508:"金湖镇",710509:"金宁乡",710510:"金城镇",710511:"烈屿乡",710512:"乌坵乡",710600:"南投县",710614:"南投市",710615:"中寮乡",710616:"草屯镇",710617:"国姓乡",710618:"埔里镇",710619:"仁爱乡",710620:"名间乡",710621:"集集镇",710622:"水里乡",710623:"鱼池乡",710624:"信义乡",710625:"竹山镇",710626:"鹿谷乡",710700:"基隆市",710701:"仁爱区",710702:"信义区",710703:"中正区",710704:"中山区",710705:"安乐区",710706:"暖暖区",710707:"七堵区",710708:"其它区",710800:"新竹市",710801:"东区",710802:"北区",710803:"香山区",710804:"其它区",710900:"嘉义市",710901:"东区",710902:"西区",710903:"其它区",711100:"新北市",711130:"万里区",711131:"金山区",711132:"板桥区",711133:"汐止区",711134:"深坑区",711135:"石碇区",711136:"瑞芳区",711137:"平溪区",711138:"双溪区",711139:"贡寮区",711140:"新店区",711141:"坪林区",711142:"乌来区",711143:"永和区",711144:"中和区",711145:"土城区",711146:"三峡区",711147:"树林区",711148:"莺歌区",711149:"三重区",711150:"新庄区",711151:"泰山区",711152:"林口区",711153:"芦洲区",711154:"五股区",711155:"八里区",711156:"淡水区",711157:"三芝区",711158:"石门区",711200:"宜兰县",711214:"宜兰市",711215:"头城镇",711216:"礁溪乡",711217:"壮围乡",711218:"员山乡",711219:"罗东镇",711220:"三星乡",711221:"大同乡",711222:"五结乡",711223:"冬山乡",711224:"苏澳镇",711225:"南澳乡",711226:"钓鱼台",711300:"新竹县",711314:"竹北市",711315:"湖口乡",711316:"新丰乡",711317:"新埔镇",711318:"关西镇",711319:"芎林乡",711320:"宝山乡",711321:"竹东镇",711322:"五峰乡",711323:"横山乡",711324:"尖石乡",711325:"北埔乡",711326:"峨眉乡",711400:"桃园县",711414:"中坜市",711415:"平镇市",711416:"龙潭乡",711417:"杨梅市",711418:"新屋乡",711419:"观音乡",711420:"桃园市",711421:"龟山乡",711422:"八德市",711423:"大溪镇",711424:"复兴乡",711425:"大园乡",711426:"芦竹乡",711500:"苗栗县",711519:"竹南镇",711520:"头份镇",711521:"三湾乡",711522:"南庄乡",711523:"狮潭乡",711524:"后龙镇",711525:"通霄镇",711526:"苑里镇",711527:"苗栗市",711528:"造桥乡",711529:"头屋乡",711530:"公馆乡",711531:"大湖乡",711532:"泰安乡",711533:"铜锣乡",711534:"三义乡",711535:"西湖乡",711536:"卓兰镇",711700:"彰化县",711727:"彰化市",711728:"芬园乡",711729:"花坛乡",711730:"秀水乡",711731:"鹿港镇",711732:"福兴乡",711733:"线西乡",711734:"和美镇",711735:"伸港乡",711736:"员林镇",711737:"社头乡",711738:"永靖乡",711739:"埔心乡",711740:"溪湖镇",711741:"大村乡",711742:"埔盐乡",711743:"田中镇",711744:"北斗镇",711745:"田尾乡",711746:"埤头乡",711747:"溪州乡",711748:"竹塘乡",711749:"二林镇",711750:"大城乡",711751:"芳苑乡",711752:"二水乡",711900:"嘉义县",711919:"番路乡",711920:"梅山乡",711921:"竹崎乡",711922:"阿里山乡",711923:"中埔乡",711924:"大埔乡",711925:"水上乡",711926:"鹿草乡",711927:"太保市",711928:"朴子市",711929:"东石乡",711930:"六脚乡",711931:"新港乡",711932:"民雄乡",711933:"大林镇",711934:"溪口乡",711935:"义竹乡",711936:"布袋镇",712100:"云林县",712121:"斗南镇",712122:"大埤乡",712123:"虎尾镇",712124:"土库镇",712125:"褒忠乡",712126:"东势乡",712127:"台西乡",712128:"仑背乡",712129:"麦寮乡",712130:"斗六市",712131:"林内乡",712132:"古坑乡",712133:"莿桐乡",712134:"西螺镇",712135:"二仑乡",712136:"北港镇",712137:"水林乡",712138:"口湖乡",712139:"四湖乡",712140:"元长乡",712400:"屏东县",712434:"屏东市",712435:"三地门乡",712436:"雾台乡",712437:"玛家乡",712438:"九如乡",712439:"里港乡",712440:"高树乡",712441:"盐埔乡",712442:"长治乡",712443:"麟洛乡",712444:"竹田乡",712445:"内埔乡",712446:"万丹乡",712447:"潮州镇",712448:"泰武乡",712449:"来义乡",712450:"万峦乡",712451:"崁顶乡",712452:"新埤乡",712453:"南州乡",712454:"林边乡",712455:"东港镇",712456:"琉球乡",712457:"佳冬乡",712458:"新园乡",712459:"枋寮乡",712460:"枋山乡",712461:"春日乡",712462:"狮子乡",712463:"车城乡",712464:"牡丹乡",712465:"恒春镇",712466:"满州乡",712500:"台东县",712517:"台东市",712518:"绿岛乡",712519:"兰屿乡",712520:"延平乡",712521:"卑南乡",712522:"鹿野乡",712523:"关山镇",712524:"海端乡",712525:"池上乡",712526:"东河乡",712527:"成功镇",712528:"长滨乡",712529:"金峰乡",712530:"大武乡",712531:"达仁乡",712532:"太麻里乡",712600:"花莲县",712615:"花莲市",712616:"新城乡",712617:"太鲁阁",712618:"秀林乡",712619:"吉安乡",712620:"寿丰乡",712621:"凤林镇",712622:"光复乡",712623:"丰滨乡",712624:"瑞穗乡",712625:"万荣乡",712626:"玉里镇",712627:"卓溪乡",712628:"富里乡",712700:"澎湖县",712707:"马公市",712708:"西屿乡",712709:"望安乡",712710:"七美乡",712711:"白沙乡",712712:"湖西乡",712800:"连江县",712805:"南竿乡",712806:"北竿乡",712807:"莒光乡",712808:"东引乡",81e4:"香港特别行政区",810100:"香港岛",810101:"中西区",810102:"湾仔",810103:"东区",810104:"南区",810200:"九龙",810201:"九龙城区",810202:"油尖旺区",810203:"深水埗区",810204:"黄大仙区",810205:"观塘区",810300:"新界",810301:"北区",810302:"大埔区",810303:"沙田区",810304:"西贡区",810305:"元朗区",810306:"屯门区",810307:"荃湾区",810308:"葵青区",810309:"离岛区",82e4:"澳门特别行政区",820100:"澳门半岛",820200:"离岛",99e4:"海外",990100:"海外"};function r(t){for(var e,n={},r=0;ri;i++)o=t.charAt(i),"\n"===o?(e.seenCR||e.line++,e.column=1,e.seenCR=!1):"\r"===o||"\u2028"===o||"\u2029"===o?(e.line++,e.column=1,e.seenCR=!0):(e.column++,e.seenCR=!1)}return tr!==e&&(tr>e&&(tr=0,er={line:1,column:1,seenCR:!1}),n(er,tr,e),tr=e),er}function x(t){nr>Qn||(Qn>nr&&(nr=Qn,rr=[]),rr.push(t))}function _(t){var e=0;for(t.sort();eQn?(r=t.charAt(Qn),Qn++):(r=null,0===ir&&x(En)),null!==r?(Jn=e,n=jn(r),null===n?(Qn=e,e=n):e=n):(Qn=e,e=St)):(Qn=e,e=St),e}function dt(){var e,n,r;return e=Qn,92===t.charCodeAt(Qn)?(n=Pn,Qn++):(n=null,0===ir&&x(Ln)),null!==n?(Dn.test(t.charAt(Qn))?(r=t.charAt(Qn),Qn++):(r=null,0===ir&&x(Rn)),null!==r?(Jn=e,n=Nn(r),null===n?(Qn=e,e=n):e=n):(Qn=e,e=St)):(Qn=e,e=St),e}function pt(){var e,n,r,i;if(e=Qn,t.substr(Qn,2)===Bn?(n=Bn,Qn+=2):(n=null,0===ir&&x(zn)),null!==n){if(r=[],Fn.test(t.charAt(Qn))?(i=t.charAt(Qn),Qn++):(i=null,0===ir&&x(Vn)),null!==i)for(;null!==i;)r.push(i),Fn.test(t.charAt(Qn))?(i=t.charAt(Qn),Qn++):(i=null,0===ir&&x(Vn));else r=St;null!==r?(Jn=e,n=qn(r),null===n?(Qn=e,e=n):e=n):(Qn=e,e=St)}else Qn=e,e=St;return e}function gt(){var e,n,r,i;if(e=Qn,t.substr(Qn,2)===Hn?(n=Hn,Qn+=2):(n=null,0===ir&&x(Gn)),null!==n){if(r=[],Wn.test(t.charAt(Qn))?(i=t.charAt(Qn),Qn++):(i=null,0===ir&&x(Un)),null!==i)for(;null!==i;)r.push(i),Wn.test(t.charAt(Qn))?(i=t.charAt(Qn),Qn++):(i=null,0===ir&&x(Un));else r=St;null!==r?(Jn=e,n=$n(r),null===n?(Qn=e,e=n):e=n):(Qn=e,e=St)}else Qn=e,e=St;return e}function vt(){var e,n,r,i;if(e=Qn,t.substr(Qn,2)===Yn?(n=Yn,Qn+=2):(n=null,0===ir&&x(Xn)),null!==n){if(r=[],Wn.test(t.charAt(Qn))?(i=t.charAt(Qn),Qn++):(i=null,0===ir&&x(Un)),null!==i)for(;null!==i;)r.push(i),Wn.test(t.charAt(Qn))?(i=t.charAt(Qn),Qn++):(i=null,0===ir&&x(Un));else r=St;null!==r?(Jn=e,n=Zn(r),null===n?(Qn=e,e=n):e=n):(Qn=e,e=St)}else Qn=e,e=St;return e}function yt(){var e,n;return e=Qn,t.substr(Qn,2)===Bn?(n=Bn,Qn+=2):(n=null,0===ir&&x(zn)),null!==n&&(Jn=e,n=Kn()),null===n?(Qn=e,e=n):e=n,e}function mt(){var e,n,r;return e=Qn,92===t.charCodeAt(Qn)?(n=Pn,Qn++):(n=null,0===ir&&x(Ln)),null!==n?(t.length>Qn?(r=t.charAt(Qn),Qn++):(r=null,0===ir&&x(En)),null!==r?(Jn=e,n=De(r),null===n?(Qn=e,e=n):e=n):(Qn=e,e=St)):(Qn=e,e=St),e}var bt,xt=arguments.length>1?arguments[1]:{},_t={regexp:w},wt=w,St=null,Ot="",Ct="|",kt='"|"',At=function(t,e){return e?new r(t,e[1]):t},Mt=function(t,e,n){return new i([t].concat(e).concat([n]))},Tt="^",It='"^"',Et=function(){return new n("start")},jt="$",Pt='"$"',Lt=function(){return new n("end")},Dt=function(t,e){return new s(t,e)},Rt="Quantifier",Nt=function(t,e){return e&&(t.greedy=!1),t},Bt="{",zt='"{"',Ft=",",Vt='","',qt="}",Ht='"}"',Gt=function(t,e){return new l(t,e)},Wt=",}",Ut='",}"',$t=function(t){return new l(t,1/0)},Yt=function(t){return new l(t,t)},Xt="+",Zt='"+"',Kt=function(){return new l(1,1/0)},Qt="*",Jt='"*"',te=function(){return new l(0,1/0)},ee="?",ne='"?"',re=function(){return new l(0,1)},ie=/^[0-9]/,oe="[0-9]",ae=function(t){return+t.join("")},se="(",le='"("',ue=")",ce='")"',he=function(t){return t},fe=function(t){return new a(t)},de="?:",pe='"?:"',ge=function(t){return new o("non-capture-group",t)},ve="?=",ye='"?="',me=function(t){return new o("positive-lookahead",t)},be="?!",xe='"?!"',_e=function(t){return new o("negative-lookahead",t)},we="CharacterSet",Se="[",Oe='"["',Ce="]",ke='"]"',Ae=function(t,e){return new u(!!t,e)},Me="CharacterRange",Te="-",Ie='"-"',Ee=function(t,e){return new c(t,e)},je="Character",Pe=/^[^\\\]]/,Le="[^\\\\\\]]",De=function(t){return new h(t)},Re=".",Ne='"."',Be=function(){return new n("any-character")},ze="Literal",Fe=/^[^|\\\/.[()?+*$\^]/,Ve="[^|\\\\\\/.[()?+*$\\^]",qe="\\b",He='"\\\\b"',Ge=function(){return new n("backspace")},We=function(){return new n("word-boundary")},Ue="\\B",$e='"\\\\B"',Ye=function(){return new n("non-word-boundary")},Xe="\\d",Ze='"\\\\d"',Ke=function(){return new n("digit")},Qe="\\D",Je='"\\\\D"',tn=function(){return new n("non-digit")},en="\\f",nn='"\\\\f"',rn=function(){return new n("form-feed")},on="\\n",an='"\\\\n"',sn=function(){return new n("line-feed")},ln="\\r",un='"\\\\r"',cn=function(){return new n("carriage-return")},hn="\\s",fn='"\\\\s"',dn=function(){return new n("white-space")},pn="\\S",gn='"\\\\S"',vn=function(){return new n("non-white-space")},yn="\\t",mn='"\\\\t"',bn=function(){return new n("tab")},xn="\\v",_n='"\\\\v"',wn=function(){return new n("vertical-tab")},Sn="\\w",On='"\\\\w"',Cn=function(){return new n("word")},kn="\\W",An='"\\\\W"',Mn=function(){return new n("non-word")},Tn="\\c",In='"\\\\c"',En="any character",jn=function(t){return new v(t)},Pn="\\",Ln='"\\\\"',Dn=/^[1-9]/,Rn="[1-9]",Nn=function(t){return new g(t)},Bn="\\0",zn='"\\\\0"',Fn=/^[0-7]/,Vn="[0-7]",qn=function(t){return new p(t.join(""))},Hn="\\x",Gn='"\\\\x"',Wn=/^[0-9a-fA-F]/,Un="[0-9a-fA-F]",$n=function(t){return new d(t.join(""))},Yn="\\u",Xn='"\\\\u"',Zn=function(t){return new f(t.join(""))},Kn=function(){return new n("null-character")},Qn=0,Jn=0,tr=0,er={line:1,column:1,seenCR:!1},nr=0,rr=[],ir=0;if("startRule"in xt){if(!(xt.startRule in _t))throw new Error("Can't start parsing from rule \""+xt.startRule+'".');wt=_t[xt.startRule]}if(n.offset=m,n.text=y,bt=wt(),null!==bt&&Qn===t.length)return bt;throw _(rr),Jn=Math.max(Qn,nr),new e(rr,Jnr)return!0;var a={path:e,type:t,actual:n,expected:r,action:"is greater than",message:o};return a.message=l.message(a),i.push(a),!1},lessThan:function(t,e,n,r,i,o){if(n=r)return!0;var a={path:e,type:t,actual:n,expected:r,action:"is greater than or equal to",message:o};return a.message=l.message(a),i.push(a),!1},lessThanOrEqualTo:function(t,e,n,r,i,o){if(n<=r)return!0;var a={path:e,type:t,actual:n,expected:r,action:"is less than or equal to",message:o};return a.message=l.message(a),i.push(a),!1}};a.Diff=s,a.Assert=l,t.exports=a},function(t,e,n){t.exports=n(28)},function(t,e,n){var r=n(3);window._XMLHttpRequest=window.XMLHttpRequest,window._ActiveXObject=window.ActiveXObject;try{new window.Event("custom")}catch(d){window.Event=function(t,e,n,r){var i=document.createEvent("CustomEvent");return i.initCustomEvent(t,e,n,r),i}}var i={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},o="readystatechange loadstart progress abort error load timeout loadend".split(" "),a="timeout withCredentials".split(" "),s="readyState responseURL status statusText responseType response responseText responseXML".split(" "),l={100:"Continue",101:"Switching Protocols",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Multiple Choice",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",422:"Unprocessable Entity",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"};function u(){this.custom={events:{},requestHeaders:{},responseHeaders:{}}}function c(){var t=function(){var t=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,e=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,n=location.href,r=e.exec(n.toLowerCase())||[];return t.test(r[1])}();return window.ActiveXObject?!t&&e()||n():e();function e(){try{return new window._XMLHttpRequest}catch(t){}}function n(){try{return new window._ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}}function h(t){for(var e in u.Mock._mocked){var n=u.Mock._mocked[e];if((!n.rurl||i(n.rurl,t.url))&&(!n.rtype||i(n.rtype,t.type.toLowerCase())))return n}function i(t,e){return"string"===r.type(t)?t===e:"regexp"===r.type(t)?t.test(e):void 0}}function f(t,e){return r.isFunction(t.template)?t.template(e):u.Mock.mock(t.template)}u._settings={timeout:"10-100"},u.setup=function(t){return r.extend(u._settings,t),u._settings},r.extend(u,i),r.extend(u.prototype,i),u.prototype.mock=!0,u.prototype.match=!1,r.extend(u.prototype,{open:function(t,e,n,i,l){var f=this;r.extend(this.custom,{method:t,url:e,async:"boolean"!==typeof n||n,username:i,password:l,options:{url:e,type:t}}),this.custom.timeout=function(t){if("number"===typeof t)return t;if("string"===typeof t&&!~t.indexOf("-"))return parseInt(t,10);if("string"===typeof t&&~t.indexOf("-")){var e=t.split("-"),n=parseInt(e[0],10),r=parseInt(e[1],10);return Math.round(Math.random()*(r-n))+n}}(u._settings.timeout);var d=h(this.custom.options);function p(t){for(var e=0;e=51||!o((function(){var t=[];return t[g]=!1,t.concat()[0]!==t})),x=f("concat"),_=function(t){if(!s(t))return!1;var e=t[g];return void 0!==e?!!e:a(t)},w=!b||!x;r({target:"Array",proto:!0,forced:w},{concat:function(t){var e,n,r,i,o,a=l(this),s=h(a,0),f=0;for(e=-1,r=arguments.length;ev)throw m(y);for(n=0;n=v)throw m(y);c(s,f++,o)}return s.length=f,s}})},"9a1f":function(t,e,n){var r=n("da84"),i=n("c65b"),o=n("59ed"),a=n("825a"),s=n("0d51"),l=n("35a1"),u=r.TypeError;t.exports=function(t,e){var n=arguments.length<2?l(t):e;if(o(n))return a(i(n,t));throw u(s(t)+" is not iterable")}},"9a26":function(t,e,n){"use strict";n("a4dc");var r=n("f15e"),i=n("e13a");function o(t,e){if(!(this instanceof o))return new o(t,e);e=e||Function.noop,this.getDefault=e,this.store=Object.create(null),this.length=0,this.addEach(t)}t.exports=o,o.Dict=o,Object.addEach(o.prototype,r.prototype),Object.addEach(o.prototype,i.prototype),o.from=r.from,o.prototype.constructClone=function(t){return new this.constructor(t,this.getDefault)},o.prototype.assertString=function(t){if("string"!==typeof t)throw new TypeError("key must be a string but Got "+t)},Object.defineProperty(o.prototype,"$__proto__",{writable:!0}),Object.defineProperty(o.prototype,"_hasProto",{get:function(){return this.hasOwnProperty("$__proto__")&&"undefined"!==typeof this._protoValue}}),Object.defineProperty(o.prototype,"_protoValue",{get:function(){return this["$__proto__"]},set:function(t){this["$__proto__"]=t}}),Object.defineProperty(o.prototype,"size",r._sizePropertyDescriptor),o.prototype.get=function(t,e){return this.assertString(t),"__proto__"===t?this._hasProto?this._protoValue:arguments.length>1?e:this.getDefault(t):t in this.store?this.store[t]:arguments.length>1?e:this.getDefault(t)},o.prototype.set=function(t,e){this.assertString(t);var n="__proto__"===t;return(n?this._hasProto:t in this.store)?(this.dispatchesMapChanges&&this.dispatchBeforeMapChange(t,n?this._protoValue:this.store[t]),n?this._protoValue=e:this.store[t]=e,this.dispatchesMapChanges&&this.dispatchMapChange(t,e),!1):(this.dispatchesMapChanges&&this.dispatchBeforeMapChange(t,void 0),this.length++,n?this._protoValue=e:this.store[t]=e,this.dispatchesMapChanges&&this.dispatchMapChange(t,e),!0)},o.prototype.has=function(t){return this.assertString(t),"__proto__"===t?this._hasProto:t in this.store},o.prototype["delete"]=function(t){return this.assertString(t),"__proto__"===t?!!this._hasProto&&(this.dispatchesMapChanges&&this.dispatchBeforeMapChange(t,this._protoValue),this._protoValue=void 0,this.length--,this.dispatchesMapChanges&&this.dispatchMapChange(t,void 0),!0):t in this.store&&(this.dispatchesMapChanges&&this.dispatchBeforeMapChange(t,this.store[t]),delete this.store[t],this.length--,this.dispatchesMapChanges&&this.dispatchMapChange(t,void 0),!0)},o.prototype.clear=function(){var t;for(t in this._hasProto&&(this.dispatchesMapChanges&&this.dispatchBeforeMapChange("__proto__",this._protoValue),this._protoValue=void 0,this.dispatchesMapChanges&&this.dispatchMapChange("__proto__",void 0)),this.store)this.dispatchesMapChanges&&this.dispatchBeforeMapChange(t,this.store[t]),delete this.store[t],this.dispatchesMapChanges&&this.dispatchMapChange(t,void 0);this.length=0},o.prototype.reduce=function(t,e,n){this._hasProto&&(e=t.call(n,e,"$__proto__","__proto__",this));var r=this.store;for(var i in this.store)e=t.call(n,e,r[i],i,this);return e},o.prototype.reduceRight=function(t,e,n){var r=this,i=this.store;return e=Object.keys(this.store).reduceRight((function(e,o){return t.call(n,e,i[o],o,r)}),e),this._hasProto?t.call(n,e,this._protoValue,"__proto__",r):e},o.prototype.one=function(){var t;for(t in this.store)return this.store[t];return this._protoValue},o.prototype.toJSON=function(){return this.toObject()}},"9ab4":function(t,e,n){},"9b06":function(t,e,n){},"9b42":function(t,e,n){function r(t,e){var n=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done);a=!0)if(o.push(r.value),e&&o.length===e)break}catch(l){s=!0,i=l}finally{try{a||null==n["return"]||n["return"]()}finally{if(s)throw i}}return o}}n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},"9bdd":function(t,e,n){var r=n("825a"),i=n("2a62");t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(a){i(t,"throw",a)}}},"9bf2":function(t,e,n){var r=n("da84"),i=n("83ab"),o=n("0cfb"),a=n("825a"),s=n("a04b"),l=r.TypeError,u=Object.defineProperty;e.f=i?u:function(t,e,n){if(a(t),e=s(e),a(n),o)try{return u(t,e,n)}catch(r){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},"9bfc":function(t,e,n){"use strict";function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i={};function o(t,e,n){function o(t,n,r){return"string"===typeof e?e:e(t,n,r)}n||(n=Error);var a=function(t){function e(e,n,r){return t.call(this,o(e,n,r))||this}return r(e,t),e}(n);a.prototype.name=n.name,a.prototype.code=t,i[t]=a}function a(t,e){if(Array.isArray(t)){var n=t.length;return t=t.map((function(t){return String(t)})),n>2?"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},"9ed3":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){var u=e+" Iterator";return t.prototype=i(r,{next:o(1,n)}),a(t,u,!1,!0),s[u]=l,t}},"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;e.UNSUPPORTED_Y=r((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=r((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},"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:x,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:P}),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 x(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:_(t,n),style:w(t,n)}}))}function _(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:j(t,o)}}))}function E(t,e){var n=t.centerPos,r=t.axisLinePosition,i=[n,r[e]];return{points:i}}function j(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 P(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 j=E,P={required:b,whitespace:_,type:C,range:A,enum:I,pattern:j};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();P.required(t,e,r,o,i,"string"),h(e,"string")||(P.type(t,e,r,o,i),P.range(t,e,r,o,i),P.pattern(t,e,r,o,i),!0===t.whitespace&&P.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();P.required(t,e,r,o,i),void 0!==e&&P.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();P.required(t,e,r,o,i),void 0!==e&&(P.type(t,e,r,o,i),P.range(t,e,r,o,i))}n(o)}var z=B;function F(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();P.required(t,e,r,o,i),void 0!==e&&P.type(t,e,r,o,i)}n(o)}var V=F;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();P.required(t,e,r,o,i),h(e)||P.type(t,e,r,o,i)}n(o)}var H=q;function G(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();P.required(t,e,r,o,i),void 0!==e&&(P.type(t,e,r,o,i),P.range(t,e,r,o,i))}n(o)}var W=G;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();P.required(t,e,r,o,i),void 0!==e&&(P.type(t,e,r,o,i),P.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();P.required(t,e,r,o,i,"array"),h(e,"array")||(P.type(t,e,r,o,i),P.range(t,e,r,o,i))}n(o)}var X=Y;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();P.required(t,e,r,o,i),void 0!==e&&P.type(t,e,r,o,i)}n(o)}var K=Z,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();P.required(t,e,r,o,i),e&&P[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();P.required(t,e,r,o,i),h(e,"string")||P.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(P.required(t,e,r,o,i),!h(e)){var s=void 0;s="number"===typeof e?new Date(e):e,P.type(t,s,r,o,i),s&&P.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);P.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();P.required(t,e,r,a,i,o),h(e,o)||P.type(t,e,r,a,i)}n(a)}var lt=st,ut={string:D,method:N,number:z,boolean:V,regexp:H,integer:W,float:$,array:X,object:K,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){x(t)}))}else c&&c();function x(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;ev)throw d(y);for(i=u(b,r),h=0;hx-r+n;h--)delete b[h-1]}else if(n>r)for(h=x-r;h>_;h--)f=h+r-1,m=h+n-1,f in b?b[m]=b[f]:delete b[m];for(h=0;h0&&(this.aliasToTopic=new r,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.topic],this.aliasToTopic.set(e,{topic:t,alias:e}),this.topicToAlias[t]=e,this.numberAllocator.use(e),this.length=this.aliasToTopic.length,!0},o.prototype.getTopicByAlias=function(t){const e=this.aliasToTopic.get(t);return"undefined"===typeof e?e:e.topic},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.clear(),this.topicToAlias={},this.numberAllocator.clear(),this.length=0},o.prototype.getLruAlias=function(){const t=this.numberAllocator.firstVacant();return t||this.aliasToTopic.min().alias},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;s2)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,!x(" 0o1")||!x("0b1")||x("+0x1"))){for(var A,M=function(t){var e=arguments.length<1?0:x(C(t)),n=this;return c(_,n)&&d((function(){y(n)}))?u(Object(e),n,M):e},T=r?p(x):"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(x,A=T[I])&&!l(M,A)&&v(M,A,g(x,A));M.prototype=_,_.constructor=M,s(i,b,M)}},ab13:function(t,e,n){var r=n("b622"),i=r("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[i]=!1,"/./"[t](e)}catch(r){}}return!1}},ab52:function(t,e,n){(function(e){var r=n("566b"),i=function(){},o=function(t){return t.setHeader&&"function"===typeof t.abort},a=function(t){return t.stdio&&Array.isArray(t.stdio)&&3===t.stdio.length},s=function(t,n,l){if("function"===typeof n)return s(t,null,n);n||(n={}),l=r(l||i);var u=t._writableState,c=t._readableState,h=n.readable||!1!==n.readable&&t.readable,f=n.writable||!1!==n.writable&&t.writable,d=!1,p=function(){t.writable||g()},g=function(){f=!1,h||l.call(t)},v=function(){h=!1,f||l.call(t)},y=function(e){l.call(t,e?new Error("exited with error code: "+e):null)},m=function(e){l.call(t,e)},b=function(){e.nextTick(x)},x=function(){if(!d)return(!h||c&&c.ended&&!c.destroyed)&&(!f||u&&u.ended&&!u.destroyed)?void 0:l.call(t,new Error("premature close"))},_=function(){t.req.on("finish",g)};return o(t)?(t.on("complete",g),t.on("abort",b),t.req?_():t.on("request",_)):f&&!u&&(t.on("end",p),t.on("close",p)),a(t)&&t.on("exit",y),t.on("end",v),t.on("finish",g),!1!==n.error&&t.on("error",m),t.on("close",b),function(){d=!0,t.removeListener("complete",g),t.removeListener("abort",b),t.removeListener("request",_),t.req&&t.req.removeListener("finish",g),t.removeListener("end",p),t.removeListener("close",p),t.removeListener("finish",g),t.removeListener("exit",y),t.removeListener("end",v),t.removeListener("error",m),t.removeListener("close",b)}};t.exports=s}).call(this,n("4362"))},ac1f:function(t,e,n){"use strict";var r=n("23e7"),i=n("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},ad6d:function(t,e,n){"use strict";var r=n("825a");t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},addb:function(t,e,n){var r=n("f36a"),i=Math.floor,o=function(t,e){var n=t.length,l=i(n/2);return n<8?a(t,e):s(t,o(r(t,0,l),e),o(r(t,l),e),e)},a=function(t,e){var n,r,i=t.length,o=1;while(o0)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},{MAX_SAFE_INTEGER:9007199254740991})},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 x={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=x;var _={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,x=0;"middle"===c&&(x=b/2,v+=f/2),"bottom"===c&&(x=b,v+=f),s=new Array(y).fill(0).map((function(t,e){return[g,v+e*m-x]})),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=_;var w=new Map([["circle",h],["ellipse",f],["rect",d],["ring",p],["arc",g],["sector",v],["regPolygon",y],["polyline",m],["smoothline",b],["bezierCurve",x],["text",_]]),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=/^\s*function ([^ (]*)/,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("b639").Buffer)},b367:function(t,e,n){var r=n("5524"),i=n("ef08"),o="__core-js_shared__",a=i[o]||(i[o]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("e444")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},b383:function(t,e,n){"use strict";e.decode=e.parse=n("91dd"),e.encode=e.stringify=n("e099")},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||"",x=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";g.Authorization="Basic "+btoa(b+":"+x)}var _=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(_,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(_))&&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,x=h.document,_=h.process,w=h.Promise,S=d(h,"queueMicrotask"),O=S&&S.value;O||(r=function(){var t,e;m&&(t=_.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||!x?!v&&w&&w.resolve?(u=w.resolve(void 0),u.constructor=w,c=f(u.then,u),a=function(){c(r)}):m?a=function(){_.nextTick(r)}:(p=f(p,h),a=function(){p(r)}):(s=!0,l=x.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("4930"),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]}},b639: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("e3db");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 x(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 Z(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 Z(t).length;e=(""+e).toLowerCase(),r=!0}}function _(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 j(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 P=4096;function L(t){var e=t.length;if(e<=P)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 F(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 H(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 G(t,e,n,r,o){return o||H(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||H(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||z(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||z(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||z(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||z(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||z(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||z(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||z(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||z(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||z(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||z(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||z(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||z(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||z(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||z(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||z(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||z(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;F(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||F(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||F(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||F(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||F(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||F(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);F(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);F(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||F(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||F(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||F(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||F(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||F(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 G(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return G(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 K(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"))},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("da84"),o=n("e330"),a=n("5926"),s=n("408a"),l=n("1148"),u=n("d039"),c=i.RangeError,h=i.String,f=Math.floor,d=o(l),p=o("".slice),g=o(1..toFixed),v=function(t,e,n){return 0===e?n:e%2===1?v(t,e-1,n*t):v(t*t,e/2,n)},y=function(t){var e=0,n=t;while(n>=4096)e+=12,n/=4096;while(n>=2)e+=1,n/=2;return e},m=function(t,e,n){var r=-1,i=n;while(++r<6)i+=e*t[r],t[r]=i%1e7,i=f(i/1e7)},b=function(t,e){var n=6,r=0;while(--n>=0)r+=t[n],t[n]=f(r/e),r=r%e*1e7},x=function(t){var e=6,n="";while(--e>=0)if(""!==n||0===e||0!==t[e]){var r=h(t[e]);n=""===n?r:n+d("0",7-r.length)+r}return n},_=u((function(){return"0.000"!==g(8e-5,3)||"1"!==g(.9,0)||"1.25"!==g(1.255,2)||"1000000000000000128"!==g(0xde0b6b3a7640080,0)}))||!u((function(){g({})}));r({target:"Number",proto:!0,forced:_},{toFixed:function(t){var e,n,r,i,o=s(this),l=a(t),u=[0,0,0,0,0,0],f="",g="0";if(l<0||l>20)throw c("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return h(o);if(o<0&&(f="-",o=-o),o>1e-21)if(e=y(o*v(2,69,1))-69,n=e<0?o*v(2,-e,1):o/v(2,e,1),n*=4503599627370496,e=52-e,e>0){m(u,0,n),r=l;while(r>=7)m(u,1e7,0),r-=7;m(u,v(10,r,1),0),r=e-1;while(r>=23)b(u,1<<23),r-=23;b(u,1<0?(i=g.length,g=f+(i<=l?"0."+d("0",l-i)+g:p(g,0,i-l)+"."+p(g,i-l))):g=f+g,g}})},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,x=a(p),_=o(x),w=r(g,v),S=s(_),O=0,C=y||l,k=e?C(p,S):n||f?C(p,0):void 0;S>O;O++)if((d||O in _)&&(m=_[O],b=w(m,O,x),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){},b7c2:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=void 0;var r=new Map([["transparent","rgba(0,0,0,0)"],["black","#000000"],["silver","#C0C0C0"],["gray","#808080"],["white","#FFFFFF"],["maroon","#800000"],["red","#FF0000"],["purple","#800080"],["fuchsia","#FF00FF"],["green","#008000"],["lime","#00FF00"],["olive","#808000"],["yellow","#FFFF00"],["navy","#000080"],["blue","#0000FF"],["teal","#008080"],["aqua","#00FFFF"],["aliceblue","#f0f8ff"],["antiquewhite","#faebd7"],["aquamarine","#7fffd4"],["azure","#f0ffff"],["beige","#f5f5dc"],["bisque","#ffe4c4"],["blanchedalmond","#ffebcd"],["blueviolet","#8a2be2"],["brown","#a52a2a"],["burlywood","#deb887"],["cadetblue","#5f9ea0"],["chartreuse","#7fff00"],["chocolate","#d2691e"],["coral","#ff7f50"],["cornflowerblue","#6495ed"],["cornsilk","#fff8dc"],["crimson","#dc143c"],["cyan","#00ffff"],["darkblue","#00008b"],["darkcyan","#008b8b"],["darkgoldenrod","#b8860b"],["darkgray","#a9a9a9"],["darkgreen","#006400"],["darkgrey","#a9a9a9"],["darkkhaki","#bdb76b"],["darkmagenta","#8b008b"],["darkolivegreen","#556b2f"],["darkorange","#ff8c00"],["darkorchid","#9932cc"],["darkred","#8b0000"],["darksalmon","#e9967a"],["darkseagreen","#8fbc8f"],["darkslateblue","#483d8b"],["darkslategray","#2f4f4f"],["darkslategrey","#2f4f4f"],["darkturquoise","#00ced1"],["darkviolet","#9400d3"],["deeppink","#ff1493"],["deepskyblue","#00bfff"],["dimgray","#696969"],["dimgrey","#696969"],["dodgerblue","#1e90ff"],["firebrick","#b22222"],["floralwhite","#fffaf0"],["forestgreen","#228b22"],["gainsboro","#dcdcdc"],["ghostwhite","#f8f8ff"],["gold","#ffd700"],["goldenrod","#daa520"],["greenyellow","#adff2f"],["grey","#808080"],["honeydew","#f0fff0"],["hotpink","#ff69b4"],["indianred","#cd5c5c"],["indigo","#4b0082"],["ivory","#fffff0"],["khaki","#f0e68c"],["lavender","#e6e6fa"],["lavenderblush","#fff0f5"],["lawngreen","#7cfc00"],["lemonchiffon","#fffacd"],["lightblue","#add8e6"],["lightcoral","#f08080"],["lightcyan","#e0ffff"],["lightgoldenrodyellow","#fafad2"],["lightgray","#d3d3d3"],["lightgreen","#90ee90"],["lightgrey","#d3d3d3"],["lightpink","#ffb6c1"],["lightsalmon","#ffa07a"],["lightseagreen","#20b2aa"],["lightskyblue","#87cefa"],["lightslategray","#778899"],["lightslategrey","#778899"],["lightsteelblue","#b0c4de"],["lightyellow","#ffffe0"],["limegreen","#32cd32"],["linen","#faf0e6"],["magenta","#ff00ff"],["mediumaquamarine","#66cdaa"],["mediumblue","#0000cd"],["mediumorchid","#ba55d3"],["mediumpurple","#9370db"],["mediumseagreen","#3cb371"],["mediumslateblue","#7b68ee"],["mediumspringgreen","#00fa9a"],["mediumturquoise","#48d1cc"],["mediumvioletred","#c71585"],["midnightblue","#191970"],["mintcream","#f5fffa"],["mistyrose","#ffe4e1"],["moccasin","#ffe4b5"],["navajowhite","#ffdead"],["oldlace","#fdf5e6"],["olivedrab","#6b8e23"],["orange","#ffa500"],["orangered","#ff4500"],["orchid","#da70d6"],["palegoldenrod","#eee8aa"],["palegreen","#98fb98"],["paleturquoise","#afeeee"],["palevioletred","#db7093"],["papayawhip","#ffefd5"],["peachpuff","#ffdab9"],["peru","#cd853f"],["pink","#ffc0cb"],["plum","#dda0dd"],["powderblue","#b0e0e6"],["rosybrown","#bc8f8f"],["royalblue","#4169e1"],["saddlebrown","#8b4513"],["salmon","#fa8072"],["sandybrown","#f4a460"],["seagreen","#2e8b57"],["seashell","#fff5ee"],["sienna","#a0522d"],["skyblue","#87ceeb"],["slateblue","#6a5acd"],["slategray","#708090"],["slategrey","#708090"],["snow","#fffafa"],["springgreen","#00ff7f"],["steelblue","#4682b4"],["tan","#d2b48c"],["thistle","#d8bfd8"],["tomato","#ff6347"],["turquoise","#40e0d0"],["violet","#ee82ee"],["wheat","#f5deb3"],["whitesmoke","#f5f5f5"],["yellowgreen","#9acd32"]]);e["default"]=r},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");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}}}}},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";(function(e){const r=n("035d").Transform,i=n("56ac");let o,a,s,l=!1;function u(){const t=new r;return t._write=function(t,e,n){o.sendSocketMessage({data:t.buffer,success:function(){n()},fail:function(){n(new Error)}})},t._flush=function(t){o.closeSocket({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="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 f(){l||(l=!0,o.onSocketOpen((function(){s.setReadable(a),s.setWritable(a),s.emit("connect")})),o.onSocketMessage((function(t){if("string"===typeof t.data){const n=e.from(t.data,"base64");a.push(n)}else{const n=new FileReader;n.addEventListener("load",(function(){let t=n.result;t=t instanceof ArrayBuffer?e.from(t):e.from(t,"utf8"),a.push(t)})),n.readAsArrayBuffer(t.data)}})),o.onSocketClose((function(){s.end(),s.destroy()})),o.onSocketError((function(t){s.destroy(t)})))}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);return o=e.my,o.connectSocket({url:r,protocols:n}),a=u(),s=i.obj(),f(),s}t.exports=d}).call(this,n("b639").Buffer)},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 x(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams}function _(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){},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("44d2");r({target:"Array",proto:!0},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("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")},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},cca6:function(t,e,n){var r=n("23e7"),i=n("60da");r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},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}},ce4e: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}},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("53b8"),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},d28b:function(t,e,n){var r=n("746f");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)},d319:function(t,e,n){Object.prototype.hasOwnProperty;function r(){throw new Error("This is an abstract interface. Mix it. Don't construct it")}t.exports=r,n("a4dc");var i=n("186f"),o=n("2195"),a=n("2dd0"),s=a.ObjectChangeDescriptor,l=a.ListenerGhost;r.debug=!0;var u=new o,c=new i;function h(t,e,n,r){if(t&&t._current){var i,o,a,s,u,c=t.specificHandlerMethodName,h=t.genericHandlerMethodName,f=l;if(Array.isArray(t._current)){for(i=t.removeCurrentGostListenersIfNeeded(),a=0,s=i.length;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){},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("da84"),i=n("d066"),o=n("1626"),a=n("3a9b"),s=n("fdbf"),l=r.Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return o(e)&&a(e.prototype,l(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");t.exports=function(t,e){var n=t[e];return null==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},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")},df75:function(t,e,n){var r=n("ca84"),i=n("7839");t.exports=Object.keys||function(t){return r(t,i)}},df7c:function(t,e,n){(function(t){function n(t,e){for(var n=0,r=t.length-1;r>=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 x=[[[0,1]],[[.335,.028],[.061,.22],[.631,-.18]],[[1,0]]];e.easeOutBack=x;var _=[[[0,1]],[[.5,.5],[.4,1.4],[.6,-.4]],[[1,0]]];e.easeInOutBack=_;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",x],["easeInOutBack",_],["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},x=["ECONNREFUSED","EADDRINUSE","ECONNRESET","ENOTFOUND"],_={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?(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),x.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: "+_[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: "+_[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: "+_[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: "+_[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.toString),b=a(p.valueOf),x=/^Symbol\((.*)\)[^)]+$/,_=a("".replace),w=a("".slice);h(p,"description",{configurable:!0,get:function(){var t=b(this),e=m(t);if(s(g,t))return"";var n=y?w(e,7,-1):_(e,x,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:v})}},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;r1?(console.log("Use of a second argument as default value is deprecated to match standards"),e):this.getDefault(t)},o.prototype.set=function(t,e){var n=new this.Item(t,e),r=this.store.get(n);return r?(this.dispatchesMapChanges&&this.dispatchBeforeMapChange(t,r.value),r.value=e,this.dispatchesMapChanges&&this.dispatchMapChange(t,e)):(this.dispatchesMapChanges&&this.dispatchBeforeMapChange(t,void 0),this.store.add(n)&&(this.length++,!0),this.dispatchesMapChanges&&this.dispatchMapChange(t,e)),this},o.prototype.add=function(t,e){return this.set(e,t)},o.prototype.has=function(t){return this.store.has(new this.Item(t))},o.prototype["delete"]=function(t){var e=new this.Item(t);if(this.store.has(e)){var n=this.store.get(e).value;return this.dispatchesMapChanges&&this.dispatchBeforeMapChange(t,n),this.store["delete"](e),this.length--,this.dispatchesMapChanges&&this.dispatchMapChange(t,void 0),!0}return!1},o.prototype.clear=function(){var t,e;if(this.dispatchesMapChanges&&(this.forEach((function(t,e){this.dispatchBeforeMapChange(e,t)}),this),t=this.keysArray()),this.store.clear(),this.length=0,this.dispatchesMapChanges)for(var n=0;e=t[n];n++)this.dispatchMapChange(e)},o.prototype.reduce=function(t,e,n){return this.store.reduce((function(e,r){return t.call(n,e,r.value,r.key,this)}),e,this)},o.prototype.reduceRight=function(t,e,n){return this.store.reduceRight((function(e,r){return t.call(n,e,r.value,r.key,this)}),e,this)},o.prototype.keysArray=function(){return this.map((function(t,e){return e}))},o.prototype.keys=function(){return new i(this.keysArray(),!0)},o.prototype.valuesArray=function(){return this.map(Function.identity)},o.prototype.values=function(){return new i(this.valuesArray(),!0)},o.prototype.entriesArray=function(){return this.map((function(t,e){return[e,t]}))},o.prototype.entries=function(){return new i(this.entriesArray(),!0)},o.prototype.items=function(){return this.entriesArray()},o.prototype.equals=function(t,e){if(e=e||r.equals,this===t)return!0;if(t&&"function"===typeof t.every)return t.length===this.length&&t.every((function(t,n){return e(this.get(n),t)}),this);var n=r.keys(t);return n.length===this.length&&r.keys(t).every((function(n){return e(this.get(n),t[n])}),this)},o.prototype.toJSON=function(){return this.entriesArray()},o.prototype.Item=a,a.prototype.equals=function(t){return r.equals(this.key,t.key)&&r.equals(this.value,t.value)},a.prototype.compare=function(t){return r.compare(this.key,t.key)}},e163:function(t,e,n){var r=n("da84"),i=n("1a2d"),o=n("1626"),a=n("7b0b"),s=n("f772"),l=n("e177"),u=s("IE_PROTO"),c=r.Object,h=c.prototype;t.exports=l?c.getPrototypeOf:function(t){var e=a(t);if(i(e,u))return e[u];var n=e.constructor;return o(n)&&e instanceof n?n.prototype:e instanceof c?h: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("7dd0"),l="Array Iterator",u=a.set,c=a.getterFor(l);t.exports=s(Array,"Array",(function(t,e){u(this,{type:l,target:r(t),index:0,kind:e})}),(function(){var t=c(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},e2cc:function(t,e,n){var r=n("6eeb");t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},e330:function(t,e){var n=Function.prototype,r=n.bind,i=n.call,o=r&&r.bind(i);t.exports=r?function(t){return t&&o(i,t)}:function(t){return t&&function(){return i.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}},e3db:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(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")})},e538:function(t,e,n){var r=n("b622");e.f=r},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){"use strict";var r,i,o,a,s=n("23e7"),l=n("c430"),u=n("da84"),c=n("d066"),h=n("c65b"),f=n("fea9"),d=n("6eeb"),p=n("e2cc"),g=n("d2bb"),v=n("d44e"),y=n("2626"),m=n("59ed"),b=n("1626"),x=n("861d"),_=n("19aa"),w=n("8925"),S=n("2266"),O=n("1c7e"),C=n("4840"),k=n("2cf4").set,A=n("b575"),M=n("cdf9"),T=n("44de"),I=n("f069"),E=n("e667"),j=n("69f3"),P=n("94ca"),L=n("b622"),D=n("6069"),R=n("605d"),N=n("2d00"),B=L("species"),z="Promise",F=j.get,V=j.set,q=j.getterFor(z),H=f&&f.prototype,G=f,W=H,U=u.TypeError,$=u.document,Y=u.process,X=I.f,Z=X,K=!!($&&$.createEvent&&u.dispatchEvent),Q=b(u.PromiseRejectionEvent),J="unhandledrejection",tt="rejectionhandled",et=0,nt=1,rt=2,it=1,ot=2,at=!1,st=P(z,(function(){var t=w(G),e=t!==String(G);if(!e&&66===N)return!0;if(l&&!W["finally"])return!0;if(N>=51&&/native code/.test(t))return!1;var n=new G((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))},i=n.constructor={};return i[B]=r,at=n.then((function(){}))instanceof r,!at||!e&&D&&!Q})),lt=st||!O((function(t){G.all(t)["catch"]((function(){}))})),ut=function(t){var e;return!(!x(t)||!b(e=t.then))&&e},ct=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;A((function(){var r=t.value,i=t.state==nt,o=0;while(n.length>o){var a,s,l,u=n[o++],c=i?u.ok:u.fail,f=u.resolve,d=u.reject,p=u.domain;try{c?(i||(t.rejection===ot&&pt(t),t.rejection=it),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),l=!0)),a===u.promise?d(U("Promise-chain cycle")):(s=ut(a))?h(s,a,f,d):f(a)):d(r)}catch(g){p&&!l&&p.exit(),d(g)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&ft(t)}))}},ht=function(t,e,n){var r,i;K?(r=$.createEvent("Event"),r.promise=e,r.reason=n,r.initEvent(t,!1,!0),u.dispatchEvent(r)):r={promise:e,reason:n},!Q&&(i=u["on"+t])?i(r):t===J&&T("Unhandled promise rejection",n)},ft=function(t){h(k,u,(function(){var e,n=t.facade,r=t.value,i=dt(t);if(i&&(e=E((function(){R?Y.emit("unhandledRejection",r,n):ht(J,n,r)})),t.rejection=R||dt(t)?ot:it,e.error))throw e.value}))},dt=function(t){return t.rejection!==it&&!t.parent},pt=function(t){h(k,u,(function(){var e=t.facade;R?Y.emit("rejectionHandled",e):ht(tt,e,t.value)}))},gt=function(t,e,n){return function(r){t(e,r,n)}},vt=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=rt,ct(t,!0))},yt=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw U("Promise can't be resolved itself");var r=ut(e);r?A((function(){var n={done:!1};try{h(r,e,gt(yt,n,t),gt(vt,n,t))}catch(i){vt(n,i,t)}})):(t.value=e,t.state=nt,ct(t,!1))}catch(i){vt({done:!1},i,t)}}};if(st&&(G=function(t){_(this,W),m(t),h(r,this);var e=F(this);try{t(gt(yt,e),gt(vt,e))}catch(n){vt(e,n)}},W=G.prototype,r=function(t){V(this,{type:z,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:et,value:void 0})},r.prototype=p(W,{then:function(t,e){var n=q(this),r=n.reactions,i=X(C(this,G));return i.ok=!b(t)||t,i.fail=b(e)&&e,i.domain=R?Y.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=et&&ct(n,!1),i.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r,e=F(t);this.promise=t,this.resolve=gt(yt,e),this.reject=gt(vt,e)},I.f=X=function(t){return t===G||t===o?new i(t):Z(t)},!l&&b(f)&&H!==Object.prototype)){a=H.then,at||(d(H,"then",(function(t,e){var n=this;return new G((function(t,e){h(a,n,t,e)})).then(t,e)}),{unsafe:!0}),d(H,"catch",W["catch"],{unsafe:!0}));try{delete H.constructor}catch(mt){}g&&g(H,W)}s({global:!0,wrap:!0,forced:st},{Promise:G}),v(G,z,!1,!0),y(z),o=c(z),s({target:z,stat:!0,forced:st},{reject:function(t){var e=X(this);return h(e.reject,void 0,t),e.promise}}),s({target:z,stat:!0,forced:l||st},{resolve:function(t){return M(l&&this===o?G:this,t)}}),s({target:z,stat:!0,forced:lt},{all:function(t){var e=this,n=X(e),r=n.resolve,i=n.reject,o=E((function(){var n=m(e.resolve),o=[],a=0,s=1;S(t,(function(t){var l=a++,u=!1;s++,h(n,e,t).then((function(t){u||(u=!0,o[l]=t,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(t){var e=this,n=X(e),r=n.reject,i=E((function(){var i=m(e.resolve);S(t,(function(t){h(i,e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},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){for(var n=i(e),s=a.f,l=o.f,u=0;u0?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("da84"),o=n("d066"),a=n("2ba4"),s=n("e330"),l=n("d039"),u=i.Array,c=o("JSON","stringify"),h=s(/./.exec),f=s("".charAt),d=s("".charCodeAt),p=s("".replace),g=s(1..toString),v=/[\uD800-\uDFFF]/g,y=/^[\uD800-\uDBFF]$/,m=/^[\uDC00-\uDFFF]$/,b=function(t,e,n){var r=f(n,e-1),i=f(n,e+1);return h(y,t)&&!h(m,i)||h(m,t)&&!h(y,r)?"\\u"+g(d(t,0),16):t},x=l((function(){return'"\\udf06\\ud834"'!==c("\udf06\ud834")||'"\\udead"'!==c("\udead")}));c&&r({target:"JSON",stat:!0,forced:x},{stringify:function(t,e,n){for(var r=0,i=arguments.length,o=u(i);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("b639").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},f15e:function(t,e,n){"use strict";(function(e){function r(){throw new Error("Can't construct. GenericCollection is a mixin.")}t.exports=r;var i=e.DOMTokenList||function(){};r.EmptyArray=Object.freeze([]),r.prototype.addEach=function(t,e,n){if(t&&(t instanceof Array||t instanceof i||t instanceof String))if(e)for(var r=0;r0?r:n}),void 0)},r.prototype.sum=function(t){return t=void 0===t?0:t,this.reduce((function(t,e){return t+e}),t)},r.prototype.average=function(t){var e=void 0===t?0:t,n=void 0===t?0:t;return this.reduce((function(t,r){e+=r,n+=1}),void 0),e/n},r.prototype.concat=function(){for(var t=this.constructClone(this),e=0;e0?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("b639").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,x=v.ERR_STREAM_CANNOT_PIPE,_=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 j(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||G(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=x,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}))},fb6a:function(t,e,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("e8b5"),a=n("68ee"),s=n("861d"),l=n("23cb"),u=n("07fa"),c=n("fc6a"),h=n("8418"),f=n("b622"),d=n("1dde"),p=n("f36a"),g=d("slice"),v=f("species"),y=i.Array,m=Math.max;r({target:"Array",proto:!0,forced:!g},{slice:function(t,e){var n,r,i,f=c(this),d=u(f),g=l(t,d),b=l(void 0===e?d:e,d);if(o(f)&&(n=f.constructor,a(n)&&(n===y||o(n.prototype))?n=void 0:s(n)&&(n=n[v],null===n&&(n=void 0)),n===y||void 0===n))return p(f,g,b);for(r=new(void 0===n?y:n)(m(b-g,0)),i=0;g2?"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,r){const i=n("a9b9"),o=n("34eb")("mqttjs:ws"),a=n("56ac"),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=_),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 x(t){let e=t.data;e=e instanceof ArrayBuffer?r.from(e):r.from(e,"utf8"),d.push(e)}function _(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=_),g?h.addEventListener("open",y):h.onopen=y),n.socket=h,g?(h.addEventListener("close",m),h.addEventListener("error",b),h.addEventListener("message",x)):(h.onclose=m,h.onerror=b,h.onmessage=x),n}t.exports=u?v:g}).call(this,n("4362"),n("b639").Buffer)},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("4930");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