mirror of
https://github.com/hustcc/echarts-for-react.git
synced 2025-12-08 20:16:09 +00:00
1 line
2.3 MiB
1 line
2.3 MiB
(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/echarts-for-react/",n(n.s=0)})({"+0WQ":function(e,t,n){"use strict";var r=n("zb3V"),i=n("H4kQ"),a=n("g7gH"),o={},s=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),l=function(e){function t(t){return e.call(this,t)||this}return Object(r["b"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new s},t.prototype.buildPath=function(e,t){var n,r,i,s;if(this.subPixelOptimize){var l=Object(a["b"])(o,t,this.style);n=l.x1,r=l.y1,i=l.x2,s=l.y2}else n=t.x1,r=t.y1,i=t.x2,s=t.y2;var u=t.percent;0!==u&&(e.moveTo(n,r),u<1&&(i=n*(1-u)+i*u,s=r*(1-u)+s*u),e.lineTo(i,s))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(i["b"]);l.prototype.type="line",t["a"]=l},"+3Ak":function(e,t,n){var r=n("HIsA");r({target:"Math",stat:!0},{DEG_PER_RAD:Math.PI/180})},"+3y3":function(e,t,n){"use strict";var r=n("HIsA"),i=n("PaPB"),a=n("t0cd"),o="Invalid number representation",s="Invalid radix",l=/^[\da-z]+$/;r({target:"Number",stat:!0},{fromString:function(e,t){var n,r,u=1;if("string"!=typeof e)throw TypeError(o);if(!e.length)throw SyntaxError(o);if("-"==e.charAt(0)&&(u=-1,e=e.slice(1),!e.length))throw SyntaxError(o);if(n=void 0===t?10:i(t),n<2||n>36)throw RangeError(s);if(!l.test(e)||(r=a(e,n)).toString(n)!==e)throw SyntaxError(o);return u*r}})},"+4Yi":function(e,t,n){var r=n("JqKL");r("Float64",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},"+7Kl":function(e,t,n){"use strict";var r=n("HIsA"),i=n("Hiyu"),a=n("QD/U"),o=n("DDwO"),s=n("hXyk"),l=n("pxmn"),u=n("xOST"),c=n("2RC6").f,h=n("D8FR"),d=n("masK"),f=n("0Ccx"),p=n("Ji6T"),g=n("liI8"),m=n("kPvK"),v=n("twJ5"),y=m("observable"),b=v.get,_=v.set,x=function(e){return null==e?void 0:o(e)},w=function(e){var t=e.cleanup;if(t){e.cleanup=void 0;try{t()}catch(n){g(n)}}},S=function(e){return void 0===e.observer},T=function(e,t){if(!i){e.closed=!0;var n=t.subscriptionObserver;n&&(n.closed=!0)}t.observer=void 0},O=function(e,t){var n,r=_(this,{cleanup:void 0,observer:s(e),subscriptionObserver:void 0});i||(this.closed=!1);try{(n=x(e.start))&&n.call(e,this)}catch(c){g(c)}if(!S(r)){var a=r.subscriptionObserver=new M(this);try{var l=t(a),u=l;null!=l&&(r.cleanup="function"===typeof l.unsubscribe?function(){u.unsubscribe()}:o(l))}catch(c){return void a.error(c)}S(r)&&w(r)}};O.prototype=d({},{unsubscribe:function(){var e=b(this);S(e)||(T(this,e),w(e))}}),i&&c(O.prototype,"closed",{configurable:!0,get:function(){return S(b(this))}});var M=function(e){_(this,{subscription:e}),i||(this.closed=!1)};M.prototype=d({},{next:function(e){var t=b(b(this).subscription);if(!S(t)){var n=t.observer;try{var r=x(n.next);r&&r.call(n,e)}catch(i){g(i)}}},error:function(e){var t=b(this).subscription,n=b(t);if(!S(n)){var r=n.observer;T(t,n);try{var i=x(r.error);i?i.call(r,e):g(e)}catch(a){g(a)}w(n)}},complete:function(){var e=b(this).subscription,t=b(e);if(!S(t)){var n=t.observer;T(e,t);try{var r=x(n.complete);r&&r.call(n)}catch(i){g(i)}w(t)}}}),i&&c(M.prototype,"closed",{configurable:!0,get:function(){return S(b(b(this).subscription))}});var E=function(e){u(this,E,"Observable"),_(this,{subscriber:o(e)})};d(E.prototype,{subscribe:function(e){var t=arguments.length;return new O("function"===typeof e?{next:e,error:t>1?arguments[1]:void 0,complete:t>2?arguments[2]:void 0}:l(e)?e:{},b(this).subscriber)}}),d(E,{from:function(e){var t="function"===typeof this?this:E,n=x(s(e)[y]);if(n){var r=s(n.call(e));return r.constructor===t?r:new t((function(e){return r.subscribe(e)}))}var i=f(e);return new t((function(e){p(i,(function(t){if(e.next(t),e.closed)return p.stop()}),void 0,!1,!0),e.complete()}))},of:function(){var e="function"===typeof this?this:E,t=arguments.length,n=new Array(t),r=0;while(r<t)n[r]=arguments[r++];return new e((function(e){for(var r=0;r<t;r++)if(e.next(n[r]),e.closed)return;e.complete()}))}}),h(E.prototype,y,(function(){return this})),r({global:!0},{Observable:E}),a("Observable")},"+G+T":function(e,t,n){n("n2r9")},"+S3R":function(e,t){function n(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}e.exports=n},"+eKy":function(e,t,n){var r=n("HIsA"),i=n("bXon"),a=n("DDwO"),o=n("hXyk"),s=n("7+LC"),l=i("Reflect","apply"),u=Function.apply,c=!s((function(){l((function(){}))}));r({target:"Reflect",stat:!0,forced:c},{apply:function(e,t,n){return a(e),o(n),l?l(e,t,n):u.call(e,t,n)}})},"+kF3":function(e,t,n){"use strict";var r=n("NVMI"),i=n("4dbd"),a=n("2I03");e.exports=function(e){var t=r(this),n=a(t.length),o=arguments.length,s=i(o>1?arguments[1]:void 0,n),l=o>2?arguments[2]:void 0,u=void 0===l?n:i(l,n);while(u>s)t[s++]=e;return t}},"+noq":function(e,t,n){n("1Xnk")},"+qhb":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"+rxo":function(e,t,n){"use strict";n.d(t,"i",(function(){return i})),n.d(t,"f",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"e",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"g",(function(){return u})),n.d(t,"h",(function(){return c})),n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return d}));var r=n("a0Kb"),i=Object(r["createHashMap"])(["tooltip","label","itemName","itemId","seriesName"]),a="original",o="arrayRows",s="objectRows",l="keyedColumns",u="typedArray",c="unknown",h="column",d="row"},"/5yA":function(e,t,n){var r=n("Hiyu"),i=n("7+LC"),a=n("+qhb"),o=Object.defineProperty,s={},l=function(e){throw e};e.exports=function(e,t){if(a(s,e))return s[e];t||(t={});var n=[][e],u=!!a(t,"ACCESSORS")&&t.ACCESSORS,c=a(t,0)?t[0]:l,h=a(t,1)?t[1]:void 0;return s[e]=!!n&&!i((function(){if(u&&!r)return!0;var e={length:-1};u?o(e,1,{enumerable:!0,get:l}):e[1]=1,n.call(e,c,h)}))}},"/7QA":function(e,t,n){"use strict";n.r(t),n.d(t,"EChartsReactProps",(function(){return i["EChartsReactProps"]})),n.d(t,"EChartsOption",(function(){return i["EChartsOption"]})),n.d(t,"EChartsInstance",(function(){return i["EChartsInstance"]})),n.d(t,"default",(function(){return g}));var r=n("P7C2"),i=n("p21n"),a=n("Fano"),o=n("xwgP"),s=n.n(o),l=n("bCfE");function u(e,t){var n={};return t.forEach((t=>{n[t]=e[t]})),n}function c(e){return"function"===typeof e}function h(e){return"string"===typeof e}var d=n("Diaw"),f=n.n(d);class p extends o["PureComponent"]{constructor(e){super(e),this.ele=void 0,this.echarts=void 0,this.echarts=e.echarts,this.ele=null}componentDidMount(){this.renderNewEcharts()}componentDidUpdate(e){var t=this.props.shouldSetOption;if(!c(t)||t(e,this.props)){if(!f()(e.theme,this.props.theme)||!f()(e.opts,this.props.opts)||!f()(e.onEvents,this.props.onEvents))return this.dispose(),void this.renderNewEcharts();var n=["option","notMerge","lazyUpdate","showLoading","loadingOption"];if(!f()(u(this.props,n),u(e,n))){var r=this.updateEChartsOption();if(!f()(e.style,this.props.style)||!f()(e.className,this.props.className))try{r.resize()}catch(i){console.warn(i)}}}}componentWillUnmount(){this.dispose()}getEchartsInstance(){return this.echarts.getInstanceByDom(this.ele)||this.echarts.init(this.ele,this.props.theme,this.props.opts)}dispose(){if(this.ele){try{Object(l["clear"])(this.ele)}catch(e){console.warn(e)}this.echarts.dispose(this.ele)}}renderNewEcharts(){var e=this.props,t=e.onEvents,n=e.onChartReady,r=this.updateEChartsOption();this.bindEvents(r,t||{}),c(n)&&n(r),this.ele&&Object(l["bind"])(this.ele,(()=>{try{r.resize()}catch(e){console.warn(e)}}))}bindEvents(e,t){function n(t,n){h(t)&&c(n)&&e.on(t,(t=>{n(t,e)}))}for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n(r,t[r])}updateEChartsOption(){var e=this.props,t=e.option,n=e.notMerge,r=void 0!==n&&n,i=e.lazyUpdate,a=void 0!==i&&i,o=e.showLoading,s=e.loadingOption,l=void 0===s?null:s,u=this.getEchartsInstance();return u.setOption(t,r,a),o?u.showLoading(l):u.hideLoading(),u}render(){var e=this.props,t=e.style,n=e.className,r=void 0===n?"":n,i=Object(a["a"])({height:300},t);return s.a.createElement("div",{ref:e=>{this.ele=e},style:i,className:"echarts-for-react ".concat(r)})}}class g extends p{constructor(e){super(e),this.echarts=r}}},"/Fc6":function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol["for"],i=r?Symbol["for"]("react.element"):60103,a=r?Symbol["for"]("react.portal"):60106,o=r?Symbol["for"]("react.fragment"):60107,s=r?Symbol["for"]("react.strict_mode"):60108,l=r?Symbol["for"]("react.profiler"):60114,u=r?Symbol["for"]("react.provider"):60109,c=r?Symbol["for"]("react.context"):60110,h=r?Symbol["for"]("react.async_mode"):60111,d=r?Symbol["for"]("react.concurrent_mode"):60111,f=r?Symbol["for"]("react.forward_ref"):60112,p=r?Symbol["for"]("react.suspense"):60113,g=r?Symbol["for"]("react.suspense_list"):60120,m=r?Symbol["for"]("react.memo"):60115,v=r?Symbol["for"]("react.lazy"):60116,y=r?Symbol["for"]("react.block"):60121,b=r?Symbol["for"]("react.fundamental"):60117,_=r?Symbol["for"]("react.responder"):60118,x=r?Symbol["for"]("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type,e){case h:case d:case o:case l:case s:case p:return e;default:switch(e=e&&e.$$typeof,e){case c:case f:case v:case m:case u:return e;default:return t}}case a:return t}}}function S(e){return w(e)===d}t.AsyncMode=h,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=u,t.Element=i,t.ForwardRef=f,t.Fragment=o,t.Lazy=v,t.Memo=m,t.Portal=a,t.Profiler=l,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||w(e)===h},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===u},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===a},t.isProfiler=function(e){return w(e)===l},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===d||e===l||e===s||e===p||e===g||"object"===typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===u||e.$$typeof===c||e.$$typeof===f||e.$$typeof===b||e.$$typeof===_||e.$$typeof===x||e.$$typeof===y)},t.typeOf=w},"/Izz":function(e,t){e.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},"/P+o":function(e,t,n){"use strict";var r=n("HIsA"),i=n("Hiyu"),a=n("12fA"),o=n("NVMI"),s=n("DDwO"),l=n("2RC6");i&&r({target:"Object",proto:!0,forced:a},{__defineGetter__:function(e,t){l.f(o(this),e,{get:s(t),enumerable:!0,configurable:!0})}})},"/UWH":function(e,t,n){"use strict";var r=n("kvGf"),i=n("p1W9"),a=n("xFFj"),o=n("Tek4"),s=n("g9E2"),l=n("a0Kb"),u=n("kJzX"),c=n("Rj4u"),h=n("jwv5"),d="__zr_normal__",f=["x","y","scaleX","scaleY","originX","originY","rotation","ignore"],p={x:!0,y:!0,scaleX:!0,scaleY:!0,originX:!0,originY:!0,rotation:!0,ignore:!1},g={},m=new a["a"](0,0,0,0),v=function(){function e(e){this.id=Object(l["guid"])(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=t.attachedTransform,a=void 0,o=void 0,l=!1;i.parent=r?this:null;var u=!1;if(i.x=t.x,i.y=t.y,i.originX=t.originX,i.originY=t.originY,i.rotation=t.rotation,i.scaleX=t.scaleX,i.scaleY=t.scaleY,null!=n.position){var c=m;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),r||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(g,n,c):Object(s["d"])(g,n,c),i.x=g.x,i.y=g.y,a=g.align,o=g.verticalAlign;var h=n.origin;if(h&&null!=n.rotation){var d=void 0,f=void 0;"center"===h?(d=.5*c.width,f=.5*c.height):(d=Object(s["h"])(h[0],c.width),f=Object(s["h"])(h[1],c.height)),u=!0,i.originX=-i.x+d+(r?0:c.x),i.originY=-i.y+f+(r?0:c.y)}}null!=n.rotation&&(i.rotation=n.rotation);var p=n.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var v=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),b=void 0,_=void 0,x=void 0;v&&this.canBeInsideText()?(b=n.insideFill,_=n.insideStroke,null!=b&&"auto"!==b||(b=this.getInsideTextFill()),null!=_&&"auto"!==_||(_=this.getInsideTextStroke(b),x=!0)):(b=n.outsideFill,_=n.outsideStroke,null!=b&&"auto"!==b||(b=this.getOutsideFill()),null!=_&&"auto"!==_||(_=this.getOutsideStroke(b),x=!0)),b=b||"#000",b===y.fill&&_===y.stroke&&x===y.autoStroke&&a===y.align&&o===y.verticalAlign||(l=!0,y.fill=b,y.stroke=_,y.autoStroke=x,y.align=a,y.verticalAlign=o,t.setDefaultTextStyle(y)),l&&t.dirtyStyle(),t.markRedraw()}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(e){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?u["d"]:u["a"]},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof t&&Object(c["parse"])(t);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,Object(c["stringify"])(n,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},Object(l["extend"])(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if("string"===typeof e)this.attrKV(e,t);else if(Object(l["isObject"])(e))for(var n=e,r=Object(l["keys"])(n),i=0;i<r.length;i++){var a=r[i];this.attrKV(a,e[a])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!i||i===d){var a=r.targetName,o=a?t[a]:t;r.saveFinalToTarget(o)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,f)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];null==e[i]||i in t||(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(d,!1,e)},e.prototype.useState=function(t,n,r){var i=t===d,a=this.hasState();if(a||!i){var o=this.currentStates,s=this.stateTransition;if(!(Object(l["indexOf"])(o,t)>=0)||!n&&1!==o.length){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),u||i){i||this.saveCurrentToNormalState(u);var c=!(!u||!u.hoverLayer);return c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,n,!r&&!this.__inHover&&s&&s.duration>0,s),this._textContent&&this._textContent.useState(t,n),this._textGuide&&this._textGuide.useState(t,n),i?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~e.REDARAW_BIT),u}Object(l["logError"])("State "+t+" not exists.")}}},e.prototype.useStates=function(t,n){if(t.length){var r=[],i=this.currentStates,a=t.length,o=a===i.length;if(o)for(var s=0;s<a;s++)if(t[s]!==i[s]){o=!1;break}if(o)return;for(s=0;s<a;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&r.push(u)}var c=!(!r[a-1]||!r[a-1].hoverLayer);c&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(r),d=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(","),h,this._normalState,!1,!n&&!this.__inHover&&d&&d.duration>0,d),this._textContent&&this._textContent.useStates(t),this._textGuide&&this._textGuide.useStates(t),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~e.REDARAW_BIT)}else this.clearStates()},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=Object(l["indexOf"])(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=Object(l["indexOf"])(r,e),a=Object(l["indexOf"])(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,n={},r=0;r<e.length;r++){var i=e[r];Object(l["extend"])(n,i),i.textConfig&&(t=t||{},Object(l["extend"])(t,i.textConfig))}return t&&(n.textConfig=t),n},e.prototype._applyStateObj=function(e,t,n,r,i,a){var o=!(t&&r);t&&t.textConfig?(this.textConfig=Object(l["extend"])({},r?this.textConfig:n.textConfig),Object(l["extend"])(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},u=!1,c=0;c<f.length;c++){var h=f[c],d=i&&p[h];t&&null!=t[h]?d?(u=!0,s[h]=t[h]):this[h]=t[h]:o&&null!=n[h]&&(d?(u=!0,s[h]=n[h]):this[h]=n[h])}if(!i)for(c=0;c<this.animators.length;c++){var g=this.animators[c],m=g.targetName;g.__changeFinalValue(m?(t||n)[m]:t||n)}u&&this._transitionState(e,s,a)},e.prototype._attachComponent=function(e){if(e.__zr&&!e.__hostTarget)throw new Error("Text element has been added to zrender.");if(e===this)throw new Error("Recursive component attachment.");var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;if(t!==e){if(t&&t!==e&&this.removeTextContent(),e.__zr&&!e.__hostTarget)throw new Error("Text element has been added to zrender.");e.attachedTransform=new r["a"],this._attachComponent(e),this._textContent=e,this.markRedraw()}},e.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),Object(l["extend"])(this.textConfig,e),this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.attachedTransform=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=e.REDARAW_BIT;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},e.prototype.addSelfToZr=function(e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)},e.prototype.removeSelfFromZr=function(e){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)},e.prototype.animate=function(e,t){var n=e?this[e]:this;if(n){var r=new i["b"](n,t);return this.addAnimator(r,e),r}Object(l["logError"])('Property "'+e+'" is not existed in element '+this.id)},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during((function(){r.updateDuringAnimation(t)})).done((function(){var t=r.animators,n=Object(l["indexOf"])(t,e);n>=0&&t.splice(n,1)})),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a<r;a++){var o=n[a];e&&e!==o.scope?i.push(o):o.stop(t)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){y(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){y(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=y(this,t,n,r),a=0;a<i.length;a++)i[a].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.REDARAW_BIT=1,e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=!1,t.silent=!1,t.isGroup=!1,t.draggable=!1,t.dragging=!1,t.ignoreClip=!1,t.__inHover=!1,t.__dirty=e.REDARAW_BIT;var n={};function r(e,t,r){n[e+t+r]||(console.warn("DEPRECATED: '"+e+"' has been deprecated. use '"+t+"', '"+r+"' instead"),n[e+t+r]=!0)}function i(e,n,i,a){function o(e,t){Object.defineProperty(t,0,{get:function(){return e[i]},set:function(t){e[i]=t}}),Object.defineProperty(t,1,{get:function(){return e[a]},set:function(t){e[a]=t}})}Object.defineProperty(t,e,{get:function(){if(r(e,i,a),!this[n]){var t=this[n]=[];o(this,t)}return this[n]},set:function(t){r(e,i,a),this[i]=t[0],this[a]=t[1],this[n]=t,o(this,t)}})}Object.defineProperty&&(!h["a"].browser.ie||h["a"].browser.version>8)&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))}(),e}();function y(e,t,n,r,i){n=n||{};var a=[];w(e,"",e,t,n,r,a,i);var o=a.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},h=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&n.during&&a[0].during((function(e,t){n.during(t)}));for(var d=0;d<a.length;d++){var f=a[d];c&&f.done(c),h&&f.aborted(h),f.start(n.easing,n.force)}return a}function b(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function _(e){return Object(l["isArrayLike"])(e[0])}function x(e,t,n){if(Object(l["isArrayLike"])(t[n]))if(Object(l["isArrayLike"])(e[n])||(e[n]=[]),Object(l["isTypedArray"])(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),b(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(_(i))for(var s=i[0].length,u=0;u<o;u++)a[u]?b(a[u],i[u],s):a[u]=Array.prototype.slice.call(i[u]);else b(a,i,o);a.length=i.length}else e[n]=t[n]}function w(e,t,n,r,a,o,s,u){for(var c=[],h=[],d=Object(l["keys"])(r),f=a.duration,p=a.delay,g=a.additive,m=a.setToFinal,v=!Object(l["isObject"])(o),y=0;y<d.length;y++){var b=d[y];if(null!=n[b]&&null!=r[b]&&(v||o[b]))if(Object(l["isObject"])(r[b])&&!Object(l["isArrayLike"])(r[b])){if(t){u||(n[b]=r[b],e.updateDuringAnimation(t));continue}w(e,b,n[b],r[b],a,o&&o[b],s,u)}else c.push(b),h.push(b);else u||(n[b]=r[b],e.updateDuringAnimation(t),h.push(b))}var _=c.length;if(_>0||a.force&&!s.length){for(var S=e.animators,T=[],O=0;O<S.length;O++)S[O].targetName===t&&T.push(S[O]);if(!g&&T.length)for(O=0;O<T.length;O++){var M=T[O].stopTracks(h);if(M){var E=Object(l["indexOf"])(S,T[O]);S.splice(E,1)}}var A=void 0,C=void 0,I=void 0;if(u){C={},m&&(A={});for(O=0;O<_;O++){b=c[O];C[b]=n[b],m?A[b]=r[b]:n[b]=r[b]}}else if(m){I={};for(O=0;O<_;O++){b=c[O];I[b]=Object(i["a"])(n[b]),x(n,r,b)}}var D=new i["b"](n,!1,g?T:null);D.targetName=t,a.scope&&(D.scope=a.scope),m&&A&&D.whenWithKeys(0,A,c),I&&D.whenWithKeys(0,I,c),D.whenWithKeys(null==f?500:f,u?C:r,c).delay(p||0),e.addAnimator(D,t),s.push(D)}}Object(l["mixin"])(v,o["a"]),Object(l["mixin"])(v,r["a"]),t["a"]=v},"/llE":function(e,t,n){"use strict";var r=n("HIsA"),i=n("PBBb");r({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},"/p+0":function(e,t,n){"use strict";var r=n("HIsA"),i=n("m52V"),a=n("hXyk"),o=n("DDwO");r({target:"Map",proto:!0,real:!0,forced:i},{update:function(e,t){var n=a(this),r=arguments.length;o(t);var i=n.has(e);if(!i&&r<3)throw TypeError("Updating absent value");var s=i?n.get(e):o(r>2?arguments[2]:void 0)(e,n);return n.set(e,t(s,e,n)),n}})},"/ypL":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("a0Kb");function i(e,t){return e&&"solid"!==e&&t>0?(t=t||1,"dashed"===e?[4*t,2*t]:"dotted"===e?[t]:Object(r["isNumber"])(e)?[e]:Object(r["isArray"])(e)?e:null):null}},0:function(e,t,n){e.exports=n("tB8F")},"0Brq":function(e,t,n){var r=n("JqKL");r("Int16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},"0Ccx":function(e,t,n){var r=n("hXyk"),i=n("tg/3");e.exports=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return r(t.call(e))}},"0MLT":function(e,t,n){"use strict";var r=n("DDwO"),i=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new i(e)}},"0Q0k":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},e.prototype.getCoordSysModel=function(){},e}()},"0Uim":function(e,t,n){var r=n("HIsA"),i=n("Rkte");r({target:"Math",stat:!0},{scale:i})},"0f0C":function(e,t,n){var r=n("pxmn");e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"0ou5":function(e,t,n){},"1+Eb":function(e,t,n){"use strict";var r=n("7+LC");e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},"12fA":function(e,t,n){"use strict";var r=n("m52V"),i=n("2JD6"),a=n("7+LC");e.exports=r||!a((function(){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete i[e]}))},"13/t":function(e,t){e.exports="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof DataView},"1Cya":function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"g",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return c})),n.d(t,"f",(function(){return h})),n.d(t,"e",(function(){return d})),n.d(t,"b",(function(){return f}));var r=n("b26b"),i=n("a0Kb"),a=n("+rxo"),o={Must:1,Might:2,Not:3},s=Object(r["o"])();function l(e){s(e).datasetMap=Object(i["createHashMap"])()}function u(e,t,n){var r={},a=h(t);if(!a||!e)return r;var o,l,u=[],c=[],d=t.ecModel,f=s(d).datasetMap,p=a.uid+"_"+n.seriesLayoutBy;e=e.slice(),Object(i["each"])(e,(function(t,n){var a=Object(i["isObject"])(t)?t:e[n]={name:t};"ordinal"===a.type&&null==o&&(o=n,l=v(a)),r[a.name]=[]}));var g=f.get(p)||f.set(p,{categoryWayDim:l,valueWayDim:0});function m(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function v(e){var t=e.dimsDef;return t?t.length:1}return Object(i["each"])(e,(function(e,t){var n=e.name,i=v(e);if(null==o){var a=g.valueWayDim;m(r[n],a,i),m(c,a,i),g.valueWayDim+=i}else if(o===t)m(r[n],0,i),m(u,0,i);else{a=g.categoryWayDim;m(r[n],a,i),m(c,a,i),g.categoryWayDim+=i}})),u.length&&(r.itemName=u),c.length&&(r.seriesName=c),r}function c(e,t,n){var r={},s=h(e);if(!s)return r;var l,u=t.sourceFormat,c=t.dimensionsDefine;u!==a["e"]&&u!==a["d"]||Object(i["each"])(c,(function(e,t){"name"===(Object(i["isObject"])(e)?e.name:e)&&(l=t)}));var d=function(){for(var e={},r={},i=[],a=0,s=Math.min(5,n);a<s;a++){var h=p(t.data,u,t.seriesLayoutBy,c,t.startIndex,a);i.push(h);var d=h===o.Not;if(d&&null==e.v&&a!==l&&(e.v=a),(null==e.n||e.n===e.v||!d&&i[e.n]===o.Not)&&(e.n=a),f(e)&&i[e.n]!==o.Not)return e;d||(h===o.Might&&null==r.v&&a!==l&&(r.v=a),null!=r.n&&r.n!==r.v||(r.n=a))}function f(e){return null!=e.v&&null!=e.n}return f(e)?e:f(r)?r:null}();if(d){r.value=[d.v];var f=null!=l?l:d.n;r.itemName=[f],r.seriesName=[f]}return r}function h(e){var t=e.get("data",!0);if(!t)return Object(r["u"])(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},r["b"]).models[0]}function d(e){return e.get("transform",!0)||e.get("fromTransformResult",!0)?Object(r["u"])(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},r["b"]).models:[]}function f(e,t){return p(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function p(e,t,n,s,l,u){var c,h,d,f=5;if(Object(i["isTypedArray"])(e))return o.Not;if(s){var p=s[u];Object(i["isObject"])(p)?(h=p.name,d=p.type):Object(i["isString"])(p)&&(h=p)}if(null!=d)return"ordinal"===d?o.Must:o.Not;if(t===a["c"]){var g=e;if(n===a["b"]){for(var m=g[u],v=0;v<(m||[]).length&&v<f;v++)if(null!=(c=T(m[l+v])))return c}else for(v=0;v<g.length&&v<f;v++){var y=g[l+v];if(y&&null!=(c=T(y[u])))return c}}else if(t===a["e"]){var b=e;if(!h)return o.Not;for(v=0;v<b.length&&v<f;v++){var _=b[v];if(_&&null!=(c=T(_[h])))return c}}else if(t===a["d"]){var x=e;if(!h)return o.Not;m=x[h];if(!m||Object(i["isTypedArray"])(m))return o.Not;for(v=0;v<m.length&&v<f;v++)if(null!=(c=T(m[v])))return c}else if(t===a["f"]){var w=e;for(v=0;v<w.length&&v<f;v++){_=w[v];var S=Object(r["h"])(_);if(!Object(i["isArray"])(S))return o.Not;if(null!=(c=T(S[u])))return c}}function T(e){var t=Object(i["isString"])(e);return null!=e&&isFinite(e)&&""!==e?t?o.Might:o.Not:t&&"-"!==e?o.Must:void 0}return o.Not}},"1Je0":function(e,t,n){"use strict";var r=n("HIsA"),i=n("Xf1w").some,a=n("1+Eb"),o=n("/5yA"),s=a("some"),l=o("some");r({target:"Array",proto:!0,forced:!s||!l},{some:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},"1PYm":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var r=a(n("xwgP")),i=n("CU0g");function a(e){return e&&e.__esModule?e:{default:e}}function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function s(e){return e.offsetTop+(e.offsetParent?s(e.offsetParent):0)}var l=function e(t){var n,a=(null===(n=t.to.match(/(#.+)$/))||void 0===n?void 0:n[1])||"";return r["default"].createElement(i.NavLink,o({},t,{onClick:function(){return e.scrollToAnchor(a.substring(1))},isActive:function(e,t){return a&&decodeURIComponent(t.hash)===a}}))};l.scrollToAnchor=function(e){window.requestAnimationFrame((function(){var t=document.getElementById(decodeURIComponent(e));t&&window.scrollTo(0,s(t)-100)}))};var u=l;t["default"]=u},"1PaV":function(e,t,n){var r=n("2JD6"),i=r.isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&i(e)}},"1XUj":function(e,t,n){var r=n("HIsA"),i=n("RUgK").values;r({target:"Object",stat:!0},{values:function(e){return i(e)}})},"1Xnk":function(e,t,n){var r=n("HIsA"),i=n("2JD6");r({global:!0},{globalThis:i})},"1agv":function(e,t){e.exports={}},"2+gS":function(e,t,n){var r=n("Hiyu"),i=n("2RC6"),a=n("hXyk"),o=n("y6vz");e.exports=r?Object.defineProperties:function(e,t){a(e);var n,r=o(t),s=r.length,l=0;while(s>l)i.f(e,n=r[l++],t[n]);return e}},"27OL":function(e,t,n){"use strict";var r=n("HIsA"),i=n("Xf1w").filter,a=n("HqdE"),o=n("/5yA"),s=a("filter"),l=o("filter");r({target:"Array",proto:!0,forced:!s||!l},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},"2BKa":function(e,t,n){"use strict";var r=2147483647,i=36,a=1,o=26,s=38,l=700,u=72,c=128,h="-",d=/[^\0-\u007E]/,f=/[.\u3002\uFF0E\uFF61]/g,p="Overflow: input needs wider integers to process",g=i-a,m=Math.floor,v=String.fromCharCode,y=function(e){var t=[],n=0,r=e.length;while(n<r){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var a=e.charCodeAt(n++);56320==(64512&a)?t.push(((1023&i)<<10)+(1023&a)+65536):(t.push(i),n--)}else t.push(i)}return t},b=function(e){return e+22+75*(e<26)},_=function(e,t,n){var r=0;for(e=n?m(e/l):e>>1,e+=m(e/t);e>g*o>>1;r+=i)e=m(e/g);return m(r+(g+1)*e/(e+s))},x=function(e){var t=[];e=y(e);var n,s,l=e.length,d=c,f=0,g=u;for(n=0;n<e.length;n++)s=e[n],s<128&&t.push(v(s));var x=t.length,w=x;x&&t.push(h);while(w<l){var S=r;for(n=0;n<e.length;n++)s=e[n],s>=d&&s<S&&(S=s);var T=w+1;if(S-d>m((r-f)/T))throw RangeError(p);for(f+=(S-d)*T,d=S,n=0;n<e.length;n++){if(s=e[n],s<d&&++f>r)throw RangeError(p);if(s==d){for(var O=f,M=i;;M+=i){var E=M<=g?a:M>=g+o?o:M-g;if(O<E)break;var A=O-E,C=i-E;t.push(v(b(E+A%C))),O=m(A/C)}t.push(v(b(O))),g=_(f,T,w==x),f=0,++w}}++f,++d}return t.join("")};e.exports=function(e){var t,n,r=[],i=e.toLowerCase().replace(f,".").split(".");for(t=0;t<i.length;t++)n=i[t],r.push(d.test(n)?"xn--"+x(n):n);return r.join(".")}},"2Dhz":function(e,t,n){var r=n("JqKL");r("Uint32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},"2I03":function(e,t,n){var r=n("PaPB"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},"2JD6":function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")()}).call(this,n("UywP"))},"2Pxf":function(e,t,n){"use strict";var r=n("Hiyu"),i=n("7+LC"),a=n("y6vz"),o=n("CmBG"),s=n("73Ew"),l=n("NVMI"),u=n("aS93"),c=Object.assign,h=Object.defineProperty;e.exports=!c||i((function(){if(r&&1!==c({b:1},c(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||a(c({},t)).join("")!=i}))?function(e,t){var n=l(e),i=arguments.length,c=1,h=o.f,d=s.f;while(i>c){var f,p=u(arguments[c++]),g=h?a(p).concat(h(p)):a(p),m=g.length,v=0;while(m>v)f=g[v++],r&&!d.call(p,f)||(n[f]=p[f])}return n}:c},"2RC6":function(e,t,n){var r=n("Hiyu"),i=n("IDl8"),a=n("hXyk"),o=n("n2ef"),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(a(e),t=o(t,!0),a(n),i)try{return s(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"2ZPZ":function(e,t,n){"use strict";var r=n("zb3V"),i=n("DEQW"),a=n("rSg8"),o=n("a0Kb"),s=n("g9E2"),l=n("AGhn"),u=n("uN9/"),c=n("xFFj"),h=n("VpdQ"),d=n("Kidy"),f={fill:"#000"},p=2,g={style:Object(o["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},d["a"].style)},m=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=f,n.attr(t),n}return Object(r["b"])(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}var r=this.attachedTransform;if(r){r.updateTransform();var i=r.transform;i?(this.transform=this.transform||[],Object(h["copy"])(this.transform,i)):this.transform=null}else e.prototype.update.call(this)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),this.attachedTransform?this.attachedTransform.getComputedTransform():e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,b(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new c["a"](0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var a=t[i],o=a.getBoundingRect(),s=a.getLocalTransform(n);s?(e.copy(o),e.applyTransform(s),r=r||e.clone(),r.union(e)):(r=r||o.clone(),r.union(o))}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||f},t.prototype.setTextContent=function(e){throw new Error("Can't attach text on another text")},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return Object(o["extend"])(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=Object(o["keys"])(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},Object(o["extend"])(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return g},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return t&&t instanceof e||(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||s["a"],n=e.padding,r=T(e),o=Object(i["a"])(r,e),l=O(e),u=!!e.backgroundColor,h=o.outerHeight,d=o.lines,f=o.lineHeight,g=this._defaultStyle,m=e.x||0,v=e.y||0,y=e.align||g.align||"left",b=e.verticalAlign||g.verticalAlign||"top",_=m,M=Object(s["c"])(v,o.contentHeight,b);if(l||n){var E=o.width;n&&(E+=n[1]+n[3]);var A=Object(s["b"])(m,E,y),C=Object(s["c"])(v,h,b);l&&this._renderBackground(e,e,A,C,E,h)}M+=f/2,n&&(_=S(m,y,n),"top"===b?M+=n[0]:"bottom"===b&&(M-=n[2]));for(var I=0,D=!1,L=(w("fill"in e?e.fill:(D=!0,g.fill))),P=(x("stroke"in e?e.stroke:u||g.autoStroke&&!D?null:(I=p,g.stroke))),k=e.textShadowBlur>0,R=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),N=o.calculatedLineHeight,j=0;j<d.length;j++){var F=this._getOrCreateChild(a["a"]),z=F.createStyle();F.useStyle(z),z.text=d[j],z.x=_,z.y=M,y&&(z.textAlign=y),z.textBaseline="middle",z.opacity=e.opacity,z.strokeFirst=!0,k&&(z.shadowBlur=e.textShadowBlur||0,z.shadowColor=e.textShadowColor||"transparent",z.shadowOffsetX=e.textShadowOffsetX||0,z.shadowOffsetY=e.textShadowOffsetY||0),P&&(z.stroke=P,z.lineWidth=e.lineWidth||I,z.lineDash=e.lineDash,z.lineDashOffset=e.lineDashOffset||0),L&&(z.fill=L),z.font=t,M+=f,R&&F.setBoundingRect(new c["a"](Object(s["b"])(z.x,e.width,z.textAlign),Object(s["c"])(z.y,N,z.textBaseline),e.width,N))}},t.prototype._updateRichTexts=function(){var e=this.style,t=T(e),n=Object(i["b"])(t,e),r=n.width,a=n.outerWidth,o=n.outerHeight,l=e.padding,u=e.x||0,c=e.y||0,h=this._defaultStyle,d=e.align||h.align,f=e.verticalAlign||h.verticalAlign,p=Object(s["b"])(u,a,d),g=Object(s["c"])(c,o,f),m=p,v=g;l&&(m+=l[3],v+=l[0]);var y=m+r;O(e)&&this._renderBackground(e,e,p,g,a,o);for(var b=!!e.backgroundColor,_=0;_<n.lines.length;_++){var x=n.lines[_],w=x.tokens,S=w.length,M=x.lineHeight,E=x.width,A=0,C=m,I=y,D=S-1,L=void 0;while(A<S&&(L=w[A],!L.align||"left"===L.align))this._placeToken(L,e,M,v,C,"left",b),E-=L.width,C+=L.width,A++;while(D>=0&&(L=w[D],"right"===L.align))this._placeToken(L,e,M,v,I,"right",b),E-=L.width,I-=L.width,D--;C+=(r-(C-m)-(y-I)-E)/2;while(A<=D)L=w[A],this._placeToken(L,e,M,v,C+L.width/2,"center",b),C+=L.width,A++;v+=M}},t.prototype._placeToken=function(e,t,n,r,i,l,u){var h=t.rich[e.styleName]||{};h.text=e.text;var d=e.verticalAlign,f=r+n/2;"top"===d?f=r+e.height/2:"bottom"===d&&(f=r+n-e.height/2);var g=!e.isLineHolder&&O(h);g&&this._renderBackground(h,t,"right"===l?i-e.width:"center"===l?i-e.width/2:i,f-e.height/2,e.width,e.height);var m=!!h.backgroundColor,v=e.textPadding;v&&(i=S(i,l,v),f-=e.height/2-v[0]-e.innerHeight/2);var y=this._getOrCreateChild(a["a"]),b=y.createStyle();y.useStyle(b);var _=this._defaultStyle,w=!1,T=0,M=x("fill"in h?h.fill:"fill"in t?t.fill:(w=!0,_.fill)),E=x("stroke"in h?h.stroke:"stroke"in t?t.stroke:m||u||_.autoStroke&&!w?null:(T=p,_.stroke)),A=h.textShadowBlur>0||t.textShadowBlur>0;b.text=e.text,b.x=i,b.y=f,A&&(b.shadowBlur=h.textShadowBlur||t.textShadowBlur||0,b.shadowColor=h.textShadowColor||t.textShadowColor||"transparent",b.shadowOffsetX=h.textShadowOffsetX||t.textShadowOffsetX||0,b.shadowOffsetY=h.textShadowOffsetY||t.textShadowOffsetY||0),b.textAlign=l,b.textBaseline="middle",b.font=e.font||s["a"],b.opacity=Object(o["retrieve3"])(h.opacity,t.opacity,1),E&&(b.lineWidth=Object(o["retrieve3"])(h.lineWidth,t.lineWidth,T),b.lineDash=Object(o["retrieve2"])(h.lineDash,t.lineDash),b.lineDashOffset=t.lineDashOffset||0,b.stroke=E),M&&(b.fill=M);var C=e.contentWidth,I=e.contentHeight;y.setBoundingRect(new c["a"](Object(s["b"])(b.x,C,b.textAlign),Object(s["c"])(b.y,I,b.textBaseline),C,I))},t.prototype._renderBackground=function(e,t,n,r,i,a){var s,c,h=e.backgroundColor,d=e.borderWidth,f=e.borderColor,p=Object(o["isString"])(h),g=e.borderRadius,m=this;if(p||d&&f){s=this._getOrCreateChild(u["a"]),s.useStyle(s.createStyle()),s.style.fill=null;var v=s.shape;v.x=n,v.y=r,v.width=i,v.height=a,v.r=g,s.dirtyShape()}if(p){var y=s.style;y.fill=h||null,y.fillOpacity=Object(o["retrieve2"])(e.fillOpacity,1)}else if(h&&h.image){c=this._getOrCreateChild(l["a"]),c.onload=function(){m.dirtyStyle()};var b=c.style;b.image=h.image,b.x=n,b.y=r,b.width=i,b.height=a}if(d&&f){y=s.style;y.lineWidth=d,y.stroke=f,y.strokeOpacity=Object(o["retrieve2"])(e.strokeOpacity,1),y.lineDash=e.borderDash,y.lineDashOffset=e.borderDashOffset||0,s.strokeContainThreshold=0,s.hasFill()&&s.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var _=(s||c).style;_.shadowBlur=e.shadowBlur||0,_.shadowColor=e.shadowColor||"transparent",_.shadowOffsetX=e.shadowOffsetX||0,_.shadowOffsetY=e.shadowOffsetY||0,_.opacity=Object(o["retrieve3"])(e.opacity,t.opacity,1)},t.makeFont=function(e){var t="";if(e.fontSize||e.fontFamily||e.fontWeight){var n="";n="string"!==typeof e.fontSize||-1===e.fontSize.indexOf("px")&&-1===e.fontSize.indexOf("rem")&&-1===e.fontSize.indexOf("em")?isNaN(+e.fontSize)?"12px":e.fontSize+"px":e.fontSize,t=[e.fontStyle,e.fontWeight,n,e.fontFamily||"sans-serif"].join(" ")}return t&&Object(o["trim"])(t)||e.textFont||e.font},t}(d["c"]),v={left:!0,right:1,center:1},y={top:1,bottom:1,middle:1};function b(e){return _(e),Object(o["each"])(e.rich,_),e}function _(e){if(e){e.font=m.makeFont(e);var t=e.align;"middle"===t&&(t="center"),e.align=null==t||v[t]?t:"left";var n=e.verticalAlign;"center"===n&&(n="middle"),e.verticalAlign=null==n||y[n]?n:"top";var r=e.padding;r&&(e.padding=Object(o["normalizeCssArray"])(e.padding))}}function x(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function w(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function S(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function T(e){var t=e.text;return null!=t&&(t+=""),t}function O(e){return!!(e.backgroundColor||e.borderWidth&&e.borderColor)}t["a"]=m},"2h8N":function(e,t,n){"use strict";n.d(t,"c",(function(){return _})),n.d(t,"b",(function(){return z})),n.d(t,"a",(function(){return B}));var r=n("Kidy"),i=n("5MTG"),a=n("Pfkn"),o=n("nSFs"),s=n("H4kQ"),l=n("AGhn"),u=n("rSg8"),c=n("g9E2"),h=n("a0Kb"),d=n("/ypL"),f=n("/UWH"),p=n("FghA"),g=new i["a"](!0);function m(e){var t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))}function v(e){var t=e.fill;return null!=t&&"none"!==t}function y(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function b(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function _(e,t,n){var r=Object(a["a"])(t.image,t.__image,n);if(Object(a["c"])(r)){var i=e.createPattern(r,t.repeat||"repeat");if("function"===typeof DOMMatrix){var o=new DOMMatrix;o.rotateSelf(0,0,(t.rotation||0)/Math.PI*180),o.scaleSelf(t.scaleX||1,t.scaleY||1),o.translateSelf(t.x||0,t.y||0),i.setTransform(o)}return i}}function x(e,t,n,r){var i=m(n),a=v(n),l=n.strokePercent,u=l<1,c=!t.path;t.silent&&!u||!c||t.createPathProxy();var f=t.path||g;if(!r){var p=n.fill,x=n.stroke,w=a&&!!p.colorStops,S=i&&!!x.colorStops,T=a&&!!p.image,O=i&&!!x.image,M=void 0,E=void 0,A=void 0,C=void 0,I=void 0;(w||S)&&(I=t.getBoundingRect()),w&&(M=t.__dirty?Object(o["a"])(e,p,I):t.__canvasFillGradient,t.__canvasFillGradient=M),S&&(E=t.__dirty?Object(o["a"])(e,x,I):t.__canvasStrokeGradient,t.__canvasStrokeGradient=E),T&&(A=t.__dirty||!t.__canvasFillPattern?_(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=A),O&&(C=t.__dirty||!t.__canvasStrokePattern?_(e,x,t):t.__canvasStrokePattern,t.__canvasStrokePattern=A),w?e.fillStyle=M:T&&(A?e.fillStyle=A:a=!1),S?e.strokeStyle=E:O&&(C?e.strokeStyle=C:i=!1)}var D=n.lineDash&&n.lineWidth>0&&Object(d["a"])(n.lineDash,n.lineWidth),L=n.lineDashOffset,P=!!e.setLineDash,k=t.getGlobalScale();if(f.setScale(k[0],k[1],t.segmentIgnoreThreshold),D){var R=n.strokeNoScale&&t.getLineScale?t.getLineScale():1;R&&1!==R&&(D=Object(h["map"])(D,(function(e){return e/R})),L/=R)}var N=!0;(c||t.__dirty&s["b"].SHAPE_CHANGED_BIT||D&&!P&&i)&&(f.setDPR(e.dpr),u?f.setContext(null):(f.setContext(e),N=!1),f.reset(),D&&!P&&(f.setLineDash(D),f.setLineDashOffset(L)),t.buildPath(f,t.shape,r),f.toStatic(),t.pathUpdated()),N&&f.rebuildPath(e,u?l:1),D&&P&&(e.setLineDash(D),e.lineDashOffset=L),r||(n.strokeFirst?(i&&b(e,n),a&&y(e,n)):(a&&y(e,n),i&&b(e,n))),D&&P&&e.setLineDash([])}function w(e,t,n){var r=t.__image=Object(a["a"])(n.image,t.__image,t,t.onload);if(r&&Object(a["c"])(r)){var i=n.x||0,o=n.y||0,s=t.getWidth(),l=t.getHeight(),u=r.width/r.height;if(null==s&&null!=l?s=l*u:null==l&&null!=s?l=s/u:null==s&&null==l&&(s=r.width,l=r.height),n.sWidth&&n.sHeight){var c=n.sx||0,h=n.sy||0;e.drawImage(r,c,h,n.sWidth,n.sHeight,i,o,s,l)}else if(n.sx&&n.sy){c=n.sx,h=n.sy;var d=s-c,f=l-h;e.drawImage(r,c,h,d,f,i,o,s,l)}else e.drawImage(r,i,o,s,l)}}function S(e,t,n){var r=n.text;if(null!=r&&(r+=""),r){e.font=n.font||c["a"],e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var i=void 0;if(e.setLineDash){var a=n.lineDash&&n.lineWidth>0&&Object(d["a"])(n.lineDash,n.lineWidth),o=n.lineDashOffset;if(a){var s=n.strokeNoScale&&t.getLineScale?t.getLineScale():1;s&&1!==s&&(a=Object(h["map"])(a,(function(e){return e/s})),o/=s),e.setLineDash(a),e.lineDashOffset=o,i=!0}}n.strokeFirst?(m(n)&&e.strokeText(r,n.x,n.y),v(n)&&e.fillText(r,n.x,n.y)):(v(n)&&e.fillText(r,n.x,n.y),m(n)&&e.strokeText(r,n.x,n.y)),i&&e.setLineDash([])}}var T=["shadowBlur","shadowOffsetX","shadowOffsetY"],O=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function M(e,t,n,i,a){var o=!1;if(!i&&(n=n||{},t===n))return!1;(i||t.opacity!==n.opacity)&&(o||(j(e,a),o=!0),e.globalAlpha=null==t.opacity?r["b"].opacity:t.opacity),(i||t.blend!==n.blend)&&(o||(j(e,a),o=!0),e.globalCompositeOperation=t.blend||r["b"].blend);for(var s=0;s<T.length;s++){var l=T[s];(i||t[l]!==n[l])&&(o||(j(e,a),o=!0),e[l]=e.dpr*(t[l]||0))}return(i||t.shadowColor!==n.shadowColor)&&(o||(j(e,a),o=!0),e.shadowColor=t.shadowColor||r["b"].shadowColor),o}function E(e,t,n,r,i){var a=F(t,i.inHover),o=r?null:n&&F(n,i.inHover)||{};if(a===o)return!1;var s=M(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||(j(e,i),s=!0),e.fillStyle=a.fill),(r||a.stroke!==o.stroke)&&(s||(j(e,i),s=!0),e.strokeStyle=a.stroke),(r||a.opacity!==o.opacity)&&(s||(j(e,i),s=!0),e.globalAlpha=null==a.opacity?1:a.opacity),t.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&t&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(j(e,i),s=!0),e.lineWidth=u)}for(var c=0;c<O.length;c++){var h=O[c],d=h[0];(r||a[d]!==o[d])&&(s||(j(e,i),s=!0),e[d]=a[d]||h[1])}return s}function A(e,t,n,r,i){return M(e,F(t,i.inHover),n&&F(n,i.inHover),r,i)}function C(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function I(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r=r||a.isZeroArea(),C(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}function D(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var L=1,P=2,k=3,R=4;function N(e){var t=v(e),n=m(e);return!(e.lineDash||!(+t^+n)||t&&"string"!==typeof e.fill||n&&"string"!==typeof e.stroke||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function j(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function F(e,t){return t&&e.__hoverStyle||e.style}function z(e,t){B(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function B(e,t,n,r){var i=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return t.__dirty&=~f["a"].REDARAW_BIT,void(t.__isRendered=!1);var a=t.__clipPaths,c=n.prevElClipPaths,h=!1,d=!1;if(c&&!Object(o["b"])(a,c)||(c&&c.length&&(j(e,n),e.restore(),d=h=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),a&&a.length&&(j(e,n),e.save(),I(a,e,n),h=!0),n.prevElClipPaths=a),n.allClipped)t.__isRendered=!1;else{t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var g=n.prevEl;g||(d=h=!0);var m=t instanceof s["b"]&&t.autoBatch&&N(t.style);h||D(i,g.transform)?(j(e,n),C(e,t)):m||j(e,n);var v=F(t,n.inHover);t instanceof s["b"]?(n.lastDrawType!==L&&(d=!0,n.lastDrawType=L),E(e,t,g,d,n),m&&(n.batchFill||n.batchStroke)||e.beginPath(),x(e,t,v,m),m&&(n.batchFill=v.fill||"",n.batchStroke=v.stroke||"")):t instanceof u["a"]?(n.lastDrawType!==k&&(d=!0,n.lastDrawType=k),E(e,t,g,d,n),S(e,t,v)):t instanceof l["a"]?(n.lastDrawType!==P&&(d=!0,n.lastDrawType=P),A(e,t,g,d,n),w(e,t,v)):t instanceof p["a"]&&(n.lastDrawType!==R&&(d=!0,n.lastDrawType=R),V(e,t,n)),m&&r&&j(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}}function V(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a,o,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(a=t.getCursor(),o=r.length;a<o;a++){var l=r[a];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),B(e,l,s,a===o-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,c=i.length;u<c;u++){l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),B(e,l,s,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}},"2hCa":function(e,t,n){var r=n("aS93"),i=n("JzK+");e.exports=function(e){return r(i(e))}},"2kiq":function(e,t,n){"use strict";e.exports=n("/Fc6")},"2x2d":function(e,t,n){var r=n("HIsA"),i=n("icJ8"),a=n("hXyk"),o=n("kI7s"),s=i.has,l=i.get,u=i.toKey,c=function(e,t,n){var r=s(e,t,n);if(r)return l(e,t,n);var i=o(t);return null!==i?c(e,i,n):void 0};r({target:"Reflect",stat:!0},{getMetadata:function(e,t){var n=arguments.length<3?void 0:u(arguments[2]);return c(e,a(t),n)}})},"3/xt":function(e,t,n){"use strict";n.r(t);var r=n("xwgP"),i=n.n(r),a=n("kvV8"),o=n("lBQG"),s=i.a.memo(n("Rsk4").default["dynamic-demo"].component);t["default"]=function(){return i.a.createElement(i.a.Fragment,null,i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"markdown"},i.a.createElement("h2",{id:"dynamic"},i.a.createElement(a["AnchorLink"],{to:"#dynamic","aria-hidden":"true",tabIndex:-1},i.a.createElement("span",{className:["icon","icon-link"]})),"Dynamic")),i.a.createElement(o["default"],n("Rsk4").default["dynamic-demo"].previewerProps,i.a.createElement(s,null))))}},"3Bqt":function(e,t,n){"use strict";var r=n("a0Kb"),i=n("BAGR"),a=n("rJci"),o=n("EPlJ"),s=n("b26b"),l=n("wh+7"),u=n("Y+i/"),c=n("3qB0"),h=s["o"](),d=Object(c["a"])(),f=function(){function e(){this.group=new i["a"],this.uid=a["c"]("viewChart"),this.renderTask=Object(u["a"])({plan:m,reset:v}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.highlight=function(e,t,n,r){g(e.getData(),r,"emphasis")},e.prototype.downplay=function(e,t,n,r){g(e.getData(),r,"normal")},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateLayout=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.markUpdateMethod=function(e,t){h(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function p(e,t,n){e&&("emphasis"===t?l["n"]:l["w"])(e,n)}function g(e,t,n){var i=s["t"](e,t),a=t&&null!=t.highlightKey?Object(l["r"])(t.highlightKey):null;null!=i?Object(r["each"])(s["r"](i),(function(t){p(e.getItemGraphicEl(t),n,a)})):e.eachItemGraphicEl((function(e){p(e,n,a)}))}function m(e){return d(e.model)}function v(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&h(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return"render"!==l&&o[l](t,n,r,i),y[l]}o["b"](f,["dispose"]),o["c"](f);var y={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};t["a"]=f},"3MuR":function(e,t,n){"use strict";var r=n("zb3V"),i=n("LD4z"),a=n("LarJ"),o=n("Rvel"),s=n("a0Kb"),l=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new a["a"]({})),Object(s["isArray"])(r)&&(r=new a["a"]({categories:Object(s["map"])(r,(function(e){return Object(s["isObject"])(e)?e.value:e}))})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return Object(r["b"])(t,e),t.prototype.parse=function(e){return"string"===typeof e?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),o["a"](e,this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),o["d"](e,this._extent)},t.prototype.scale=function(e){return e=Math.round(o["e"](e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){var e=[],t=this._extent,n=t[0];while(n<=t[1])e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null!=e){for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=Math.min(a,t.length);i<o;++i){var s=t[i];n[i]=s,r[s]=i}for(var l=0;i<a;++i){while(null!=r[l])l++;n.push(l),r[l]=i}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return null==n?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.niceTicks=function(){},t.prototype.niceExtent=function(){},t.type="ordinal",t}(i["a"]);i["a"].registerClass(l),t["a"]=l},"3fYz":function(e,t,n){"use strict";var r=n("HIsA"),i=n("m52V"),a=n("LTDN");r({target:"WeakSet",proto:!0,real:!0,forced:i},{deleteAll:function(){return a.apply(this,arguments)}})},"3gt4":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r={"\u5357\u6d77\u8bf8\u5c9b":[32,80],"\u5e7f\u4e1c":[0,-10],"\u9999\u6e2f":[10,5],"\u6fb3\u95e8":[-10,10],"\u5929\u6d25":[5,5]};function i(e,t){if("china"===e){var n=r[t.name];if(n){var i=t.center;i[0]+=n[0]/10.5,i[1]+=-n[1]/14}}}},"3i2j":function(e,t,n){"use strict";var r=n("HIsA"),i=n("m52V"),a=n("bXon"),o=n("hXyk"),s=n("DDwO"),l=n("0Ccx"),u=n("Ji6T");r({target:"Set",proto:!0,real:!0,forced:i},{isSubsetOf:function(e){var t=l(this),n=o(e),r=n.has;return"function"!=typeof r&&(n=new(a("Set"))(e),r=s(n.has)),!u(t,(function(e){if(!1===r.call(n,e))return u.stop()}),void 0,!1,!0).stopped}})},"3qB0":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("b26b");function i(){var e=Object(r["o"])();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,a=!!n.progressiveRender,o=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===o&&a===s)&&"reset"}}},"40mc":function(e,t,n){var r=n("DDwO");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"41ra":function(e,t,n){"use strict";var r=n("HIsA"),i=n("UTnC");r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},"45XY":function(e,t,n){var r=n("EPMC"),i=n("4lsV"),a=n("egoY"),o=n("B2Tl");function s(e,t){return r(e)||i(e,t)||a(e,t)||o()}e.exports=s},"4CZv":function(e,t){var n=1/0,r=Math.abs,i=Math.pow,a=Math.floor,o=Math.log,s=Math.LN2,l=function(e,t,l){var u,c,h,d=new Array(l),f=8*l-t-1,p=(1<<f)-1,g=p>>1,m=23===t?i(2,-24)-i(2,-77):0,v=e<0||0===e&&1/e<0?1:0,y=0;for(e=r(e),e!=e||e===n?(c=e!=e?1:0,u=p):(u=a(o(e)/s),e*(h=i(2,-u))<1&&(u--,h*=2),e+=u+g>=1?m/h:m*i(2,1-g),e*h>=2&&(u++,h/=2),u+g>=p?(c=0,u=p):u+g>=1?(c=(e*h-1)*i(2,t),u+=g):(c=e*i(2,g-1)*i(2,t),u=0));t>=8;d[y++]=255&c,c/=256,t-=8);for(u=u<<t|c,f+=t;f>0;d[y++]=255&u,u/=256,f-=8);return d[--y]|=128*v,d},u=function(e,t){var r,a=e.length,o=8*a-t-1,s=(1<<o)-1,l=s>>1,u=o-7,c=a-1,h=e[c--],d=127&h;for(h>>=7;u>0;d=256*d+e[c],c--,u-=8);for(r=d&(1<<-u)-1,d>>=-u,u+=t;u>0;r=256*r+e[c],c--,u-=8);if(0===d)d=1-l;else{if(d===s)return r?NaN:h?-n:n;r+=i(2,t),d-=l}return(h?-1:1)*r*i(2,d-t)};e.exports={pack:l,unpack:u}},"4FMk":function(e,t){function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e.exports=n},"4LU/":function(e,t,n){"use strict";n.d(t,"ab",(function(){return u["A"]})),n.d(t,"l",(function(){return u["d"]})),n.d(t,"g",(function(){return u["a"]})),n.d(t,"B",(function(){return u["l"]})),n.d(t,"j",(function(){return u["b"]})),n.d(t,"m",(function(){return u["e"]})),n.d(t,"n",(function(){return u["f"]})),n.d(t,"o",(function(){return u["g"]})),n.d(t,"w",(function(){return u["i"]})),n.d(t,"x",(function(){return u["j"]})),n.d(t,"R",(function(){return u["w"]})),n.d(t,"P",(function(){return u["u"]})),n.d(t,"Q",(function(){return u["v"]})),n.d(t,"N",(function(){return u["s"]})),n.d(t,"O",(function(){return u["t"]})),n.d(t,"H",(function(){return u["m"]})),n.d(t,"I",(function(){return u["n"]})),n.d(t,"v",(function(){return u["h"]})),n.d(t,"L",(function(){return u["q"]})),n.d(t,"J",(function(){return u["o"]})),n.d(t,"T",(function(){return u["y"]})),n.d(t,"K",(function(){return u["p"]})),n.d(t,"U",(function(){return u["z"]})),n.d(t,"M",(function(){return u["r"]})),n.d(t,"y",(function(){return u["k"]})),n.d(t,"S",(function(){return u["x"]})),n.d(t,"k",(function(){return u["c"]})),n.d(t,"cb",(function(){return p})),n.d(t,"D",(function(){return g})),n.d(t,"Z",(function(){return m})),n.d(t,"bb",(function(){return v})),n.d(t,"i",(function(){return y})),n.d(t,"V",(function(){return b["c"]})),n.d(t,"A",(function(){return r})),n.d(t,"X",(function(){return N["a"]})),n.d(t,"F",(function(){return j["a"]})),n.d(t,"G",(function(){return j["a"]})),n.d(t,"E",(function(){return i})),n.d(t,"W",(function(){return a})),n.d(t,"z",(function(){return o})),n.d(t,"u",(function(){return s})),n.d(t,"Y",(function(){return l})),n.d(t,"p",(function(){return le["a"]})),n.d(t,"e",(function(){return ue["a"]})),n.d(t,"f",(function(){return S["a"]})),n.d(t,"a",(function(){return ce["a"]})),n.d(t,"c",(function(){return c["a"]})),n.d(t,"d",(function(){return h["a"]})),n.d(t,"h",(function(){return d["a"]})),n.d(t,"b",(function(){return f["a"]})),n.d(t,"C",(function(){return he["b"]})),n.d(t,"r",(function(){return de})),n.d(t,"s",(function(){return fe})),n.d(t,"t",(function(){return pe})),n.d(t,"q",(function(){return ge}));var r={};n.r(r),n.d(r,"createList",(function(){return D})),n.d(r,"getLayoutRect",(function(){return T["g"]})),n.d(r,"createDimensions",(function(){return A["a"]})),n.d(r,"dataStack",(function(){return L})),n.d(r,"createSymbol",(function(){return C["a"]})),n.d(r,"createScale",(function(){return P})),n.d(r,"mixinAxisModelCommonMethods",(function(){return k})),n.d(r,"getECData",(function(){return M["a"]})),n.d(r,"enableHoverEmphasis",(function(){return I["k"]})),n.d(r,"createTextStyle",(function(){return R}));var i={};n.r(i),n.d(i,"linearMap",(function(){return F["k"]})),n.d(i,"round",(function(){return F["u"]})),n.d(i,"asc",(function(){return F["b"]})),n.d(i,"getPrecision",(function(){return F["f"]})),n.d(i,"getPrecisionSafe",(function(){return F["g"]})),n.d(i,"getPixelPrecision",(function(){return F["e"]})),n.d(i,"getPercentWithPrecision",(function(){return F["d"]})),n.d(i,"MAX_SAFE_INTEGER",(function(){return F["a"]})),n.d(i,"remRadian",(function(){return F["t"]})),n.d(i,"isRadianAroundZero",(function(){return F["j"]})),n.d(i,"parseDate",(function(){return F["n"]})),n.d(i,"quantity",(function(){return F["q"]})),n.d(i,"quantityExponent",(function(){return F["r"]})),n.d(i,"nice",(function(){return F["l"]})),n.d(i,"quantile",(function(){return F["p"]})),n.d(i,"reformIntervals",(function(){return F["s"]})),n.d(i,"isNumeric",(function(){return F["i"]})),n.d(i,"numericToNumber",(function(){return F["m"]}));var a={};n.r(a),n.d(a,"parse",(function(){return F["n"]})),n.d(a,"format",(function(){return z["h"]}));var o={};n.r(o),n.d(o,"extendShape",(function(){return B["extendShape"]})),n.d(o,"extendPath",(function(){return B["extendPath"]})),n.d(o,"makePath",(function(){return B["makePath"]})),n.d(o,"makeImage",(function(){return B["makeImage"]})),n.d(o,"mergePath",(function(){return B["mergePath"]})),n.d(o,"resizePath",(function(){return B["resizePath"]})),n.d(o,"createIcon",(function(){return B["createIcon"]})),n.d(o,"updateProps",(function(){return B["updateProps"]})),n.d(o,"initProps",(function(){return B["initProps"]})),n.d(o,"getTransform",(function(){return B["getTransform"]})),n.d(o,"clipPointsByRect",(function(){return B["clipPointsByRect"]})),n.d(o,"clipRectByRect",(function(){return B["clipRectByRect"]})),n.d(o,"registerShape",(function(){return B["registerShape"]})),n.d(o,"getShapeClass",(function(){return B["getShapeClass"]})),n.d(o,"Group",(function(){return V["a"]})),n.d(o,"Image",(function(){return G["a"]})),n.d(o,"Text",(function(){return H["a"]})),n.d(o,"Circle",(function(){return U["a"]})),n.d(o,"Ellipse",(function(){return W["a"]})),n.d(o,"Sector",(function(){return X["a"]})),n.d(o,"Ring",(function(){return Y["a"]})),n.d(o,"Polygon",(function(){return K["a"]})),n.d(o,"Polyline",(function(){return q["a"]})),n.d(o,"Rect",(function(){return Z["a"]})),n.d(o,"Line",(function(){return $["a"]})),n.d(o,"BezierCurve",(function(){return Q["a"]})),n.d(o,"Arc",(function(){return J["a"]})),n.d(o,"IncrementalDisplayable",(function(){return ee["a"]})),n.d(o,"CompoundPath",(function(){return te["a"]})),n.d(o,"LinearGradient",(function(){return ne["a"]})),n.d(o,"RadialGradient",(function(){return re["a"]})),n.d(o,"BoundingRect",(function(){return ie["a"]}));var s={};n.r(s),n.d(s,"addCommas",(function(){return ae["a"]})),n.d(s,"toCamelCase",(function(){return ae["k"]})),n.d(s,"normalizeCssArray",(function(){return ae["j"]})),n.d(s,"encodeHTML",(function(){return ae["d"]})),n.d(s,"formatTpl",(function(){return ae["f"]})),n.d(s,"getTooltipMarker",(function(){return ae["h"]})),n.d(s,"formatTime",(function(){return ae["e"]})),n.d(s,"capitalFirst",(function(){return ae["b"]})),n.d(s,"truncateText",(function(){return oe["c"]})),n.d(s,"getTextRect",(function(){return se["a"]}));var l={};n.r(l),n.d(l,"map",(function(){return v["map"]})),n.d(l,"each",(function(){return v["each"]})),n.d(l,"indexOf",(function(){return v["indexOf"]})),n.d(l,"inherits",(function(){return v["inherits"]})),n.d(l,"reduce",(function(){return v["reduce"]})),n.d(l,"filter",(function(){return v["filter"]})),n.d(l,"bind",(function(){return v["bind"]})),n.d(l,"curry",(function(){return v["curry"]})),n.d(l,"isArray",(function(){return v["isArray"]})),n.d(l,"isString",(function(){return v["isString"]})),n.d(l,"isObject",(function(){return v["isObject"]})),n.d(l,"isFunction",(function(){return v["isFunction"]})),n.d(l,"extend",(function(){return v["extend"]})),n.d(l,"defaults",(function(){return v["defaults"]})),n.d(l,"clone",(function(){return v["clone"]})),n.d(l,"merge",(function(){return v["merge"]}));var u=n("6BwO"),c=n("XVzY"),h=n("x5Va"),d=n("bTwz"),f=n("3Bqt"),p=n("XGRq"),g=n("VpdQ"),m=n("T3M/"),v=n("a0Kb"),y=n("Rj4u"),b=n("qtYV"),_=n("qKCw"),x=n("PW5N"),w=n("0Q0k"),S=n("tbCl"),T=n("Fi3l"),O=n("EzfI"),M=n("MJ25"),E=n("IhSh"),A=n("r34c"),C=n("ljS3"),I=n("wh+7");function D(e){return Object(_["a"])(e.getSource(),e)}var L={isDimensionStacked:O["c"],enableDataStack:O["a"],getStackedDimension:O["b"]};function P(e,t){var n=t;t instanceof S["a"]||(n=new S["a"](t));var r=x["a"](n);return r.setExtent(e[0],e[1]),x["i"](r,n),r}function k(e){v["mixin"](e,w["a"])}function R(e,t){return t=t||{},Object(E["c"])(e,null,null,"normal"!==t.state)}var N=n("m1m1"),j=n("IMrv"),F=n("sKBc"),z=n("6+zH"),B=n("AyoT"),V=n("BAGR"),G=n("AGhn"),H=n("2ZPZ"),U=n("O9WU"),W=n("d1dw"),X=n("yY2/"),Y=n("TbZX"),K=n("tw5J"),q=n("9kVb"),Z=n("uN9/"),$=n("+0WQ"),Q=n("VGoH"),J=n("afOt"),ee=n("FghA"),te=n("RA87"),ne=n("wxy1"),re=n("PSNI"),ie=n("xFFj"),ae=n("90zU"),oe=n("DEQW"),se=n("tOoc"),le=n("jwv5"),ue=n("m0HX"),ce=n("tToO"),he=n("2h8N");function de(e){var t=c["a"].extend(e);return c["a"].registerClass(t),t}function fe(e){var t=h["a"].extend(e);return h["a"].registerClass(t),t}function pe(e){var t=d["a"].extend(e);return d["a"].registerClass(t),t}function ge(e){var t=f["a"].extend(e);return f["a"].registerClass(t),t}},"4Rd9":function(e,t,n){"use strict";var r=n("HIsA"),i=n("m52V"),a=n("keKz"),o=n("7+LC"),s=n("bXon"),l=n("70zE"),u=n("n+WB"),c=n("GUTS"),h=!!a&&o((function(){a.prototype["finally"].call({then:function(){}},(function(){}))}));r({target:"Promise",proto:!0,real:!0,forced:h},{finally:function(e){var t=l(this,s("Promise")),n="function"==typeof e;return this.then(n?function(n){return u(t,e()).then((function(){return n}))}:e,n?function(n){return u(t,e()).then((function(){throw n}))}:e)}}),i||"function"!=typeof a||a.prototype["finally"]||c(a.prototype,"finally",s("Promise").prototype["finally"])},"4YzK":function(e,t,n){var r=n("R64i"),i=n("GUTS"),a=n("Uvls");r||i(Object.prototype,"toString",a,{unsafe:!0})},"4dbd":function(e,t,n){var r=n("PaPB"),i=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):a(n,t)}},"4dmQ":function(e,t,n){var r=n("IRht");e.exports=function(e){if("number"!=typeof e&&"Number"!=r(e))throw TypeError("Incorrect invocation");return+e}},"4e8G":function(e,t,n){n("Nau9")},"4lsV":function(e,t){function n(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(n.push(o.value),t&&n.length===t)break}catch(l){i=!0,a=l}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw a}}return n}}e.exports=n},"5AZ8":function(e,t,n){"use strict";var r=n("DDwO"),i=n("40mc"),a=n("Ji6T");e.exports=function(e){var t,n,o,s,l=arguments.length,u=l>1?arguments[1]:void 0;return r(this),t=void 0!==u,t&&r(u),void 0==e?new this:(n=[],t?(o=0,s=i(u,l>2?arguments[2]:void 0,2),a(e,(function(e){n.push(s(e,o++))}))):a(e,n.push,n),new this(n))}},"5Au7":function(e,t,n){"use strict";var r=n("HIsA"),i=n("m52V"),a=n("hXyk"),o=n("40mc"),s=n("YjHi"),l=n("Ji6T");r({target:"Map",proto:!0,real:!0,forced:i},{find:function(e){var t=a(this),n=s(t),r=o(e,arguments.length>1?arguments[1]:void 0,3);return l(n,(function(e,n){if(r(n,e,t))return l.stop(n)}),void 0,!0,!0).result}})},"5D2R":function(e,t,n){"use strict";var r=n("fAam");function i(){var e=s(n("xwgP"));return i=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var a=n("kvV8");function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function s(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n["default"]=e,t&&t.set(e,n),n}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){return m(e)||g(e,t)||f(e,t)||d()}function d(){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 f(e,t){if(e){if("string"===typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(n.push(o.value),t&&n.length===t)break}catch(l){i=!0,a=l}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw a}}return n}}function m(e){if(Array.isArray(e))return e}var v=function(e){var t=(0,i().useContext)(a.context),n=t.locale,o=t.routes,s=t.config.locales,l=(0,i().useState)([]),u=h(l,2),c=u[0],d=u[1],f=(0,i().useState)([]),p=h(f,2),g=p[0],m=p[1];return(0,i().useEffect)((function(){d(o.filter((function(e){var t=e.title,r=e.meta,i=(null===r||void 0===r?void 0:r.locale)===n,a=(null===r||void 0===r?void 0:r.locale)===s[0].name||!(null===r||void 0===r?void 0:r.locale)&&(!s.length||n===s[0].name);return t&&(a||i)})).reduce((function(e,t){var n,i,a={title:t.title,path:t.path};return(null===(n=t.meta)||void 0===n?void 0:n.group)&&(a.parent=t.meta.group),e.push(a),e.push.apply(e,r(((null===(i=t.meta)||void 0===i?void 0:i.slugs)||[]).filter((function(e){var n=e.value;return n!==t.title})).map((function(e){return{title:e.value,path:"".concat(t.path,"#").concat(e.heading),parent:a}})))),e}),[]))}),[o.length,n]),(0,i().useEffect)((function(){var t=null===e||void 0===e?void 0:e.trim().toUpperCase();if(t){for(var n=[],r=0;r<c.length&&n.length<6;r+=1)c[r].title.toUpperCase().indexOf(t)>-1&&n.push(c[r]);m(n)}else m([])}),[e,c.length]),g},y=function(){var e=(0,i().useContext)(a.context),t=e.config.algolia,n=(0,i().useCallback)((function(e){window.docsearch(u({inputSelector:e},t))}),[t]);return n},b=function(e){var t=(0,i().useContext)(a.context),n=t.config,r=v(e),o=y();return n.algolia?o:r};t["default"]=b},"5M8n":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,n=null;return function(){for(var r=this,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];clearTimeout(n),n=setTimeout((function(){e.apply(r,a)}),t)}};t["default"]=r},"5MTG":function(e,t,n){"use strict";n.d(t,"b",(function(){return M}));var r=n("T3M/"),i=n("xFFj"),a=n("kJzX"),o=n("nApx"),s=n("Yc1X"),l={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},u=[],c=[],h=[],d=[],f=[],p=[],g=Math.min,m=Math.max,v=Math.cos,y=Math.sin,b=Math.sqrt,_=Math.abs,x=Math.PI,w=2*x,S="undefined"!==typeof Float32Array,T=[];function O(e){var t=Math.round(e/x*1e8)/1e8;return t%2*x}function M(e,t){var n=O(e[0]);n<0&&(n+=w);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=w?i=n+w:t&&n-i>=w?i=n-w:!t&&n>i?i=n+(w-O(n-i)):t&&n<i&&(i=n-(w-O(i-n))),e[0]=n,e[1]=i}var E=function(){function e(e){this.dpr=1,this._version=0,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){n=n||0,n>0&&(this._ux=_(n/a["e"]/e)||0,this._uy=_(n/a["e"]/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this.addData(l.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=_(e-this._xi)>this._ux||_(t-this._yi)>this._uy||this._len<5;return this.addData(l.L,e,t),this._ctx&&n&&(this._needsDash?this._dashedLineTo(e,t):this._ctx.lineTo(e,t)),n&&(this._xi=e,this._yi=t),this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this.addData(l.C,e,t,n,r,i,a),this._ctx&&(this._needsDash?this._dashedBezierTo(e,t,n,r,i,a):this._ctx.bezierCurveTo(e,t,n,r,i,a)),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this.addData(l.Q,e,t,n,r),this._ctx&&(this._needsDash?this._dashedQuadraticTo(e,t,n,r):this._ctx.quadraticCurveTo(e,t,n,r)),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){T[0]=r,T[1]=i,M(T,a),r=T[0],i=T[1];var o=i-r;return this.addData(l.A,e,t,n,n,r,o,0,a?0:1),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=v(i)*n+e,this._yi=y(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._ctx&&this._ctx.rect(e,t,n,r),this.addData(l.R,e,t,n,r),this},e.prototype.closePath=function(){this.addData(l.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&(this._needsDash&&this._dashedLineTo(t,n),e.closePath()),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.setLineDash=function(e){if(e instanceof Array){this._lineDash=e,this._dashIdx=0;for(var t=0,n=0;n<e.length;n++)t+=e[n];this._dashSum=t,this._needsDash=!0}else this._lineDash=null,this._needsDash=!1;return this},e.prototype.setLineDashOffset=function(e){return this._dashOffset=e,this},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;this.data&&this.data.length===t||!S||(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},e.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();S&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(i=0;i<t;i++)for(var a=e[i].data,o=0;o<a.length;o++)this.data[r++]=a[o];this._len=r},e.prototype.addData=function(e,t,n,r,i,a,o,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype._dashedLineTo=function(e,t){var n,r,i=this._dashSum,a=this._lineDash,o=this._ctx,s=this._dashOffset,l=this._xi,u=this._yi,c=e-l,h=t-u,d=b(c*c+h*h),f=l,p=u,v=a.length;c/=d,h/=d,s<0&&(s=i+s),s%=i,f-=s*c,p-=s*h;while(c>0&&f<=e||c<0&&f>=e||0===c&&(h>0&&p<=t||h<0&&p>=t))r=this._dashIdx,n=a[r],f+=c*n,p+=h*n,this._dashIdx=(r+1)%v,c>0&&f<l||c<0&&f>l||h>0&&p<u||h<0&&p>u||o[r%2?"moveTo":"lineTo"](c>=0?g(f,e):m(f,e),h>=0?g(p,t):m(p,t));c=f-e,h=p-t,this._dashOffset=-b(c*c+h*h)},e.prototype._dashedBezierTo=function(e,t,n,r,i,a){var o,l,u,c,h,d=this._ctx,f=this._dashSum,p=this._dashOffset,g=this._lineDash,m=this._xi,v=this._yi,y=0,_=this._dashIdx,x=g.length,w=0;for(p<0&&(p=f+p),p%=f,o=0;o<1;o+=.1)l=Object(s["a"])(m,e,n,i,o+.1)-Object(s["a"])(m,e,n,i,o),u=Object(s["a"])(v,t,r,a,o+.1)-Object(s["a"])(v,t,r,a,o),y+=b(l*l+u*u);for(;_<x;_++)if(w+=g[_],w>p)break;o=(w-p)/y;while(o<=1)c=Object(s["a"])(m,e,n,i,o),h=Object(s["a"])(v,t,r,a,o),_%2?d.moveTo(c,h):d.lineTo(c,h),o+=g[_]/y,_=(_+1)%x;_%2!==0&&d.lineTo(i,a),l=i-c,u=a-h,this._dashOffset=-b(l*l+u*u)},e.prototype._dashedQuadraticTo=function(e,t,n,r){var i=n,a=r;n=(n+2*e)/3,r=(r+2*t)/3,e=(this._xi+2*e)/3,t=(this._yi+2*t)/3,this._dashedBezierTo(e,t,n,r,i,a)},e.prototype.toStatic=function(){if(this._saveData){var e=this.data;e instanceof Array&&(e.length=this._len,S&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){h[0]=h[1]=f[0]=f[1]=Number.MAX_VALUE,d[0]=d[1]=p[0]=p[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,a=0,s=0,u=0;for(e=0;e<this._len;){var c=t[e++],g=1===e;switch(g&&(n=t[e],a=t[e+1],s=n,u=a),c){case l.M:n=s=t[e++],a=u=t[e++],f[0]=s,f[1]=u,p[0]=s,p[1]=u;break;case l.L:Object(o["c"])(n,a,t[e],t[e+1],f,p),n=t[e++],a=t[e++];break;case l.C:Object(o["b"])(n,a,t[e++],t[e++],t[e++],t[e++],t[e],t[e+1],f,p),n=t[e++],a=t[e++];break;case l.Q:Object(o["e"])(n,a,t[e++],t[e++],t[e],t[e+1],f,p),n=t[e++],a=t[e++];break;case l.A:var m=t[e++],b=t[e++],_=t[e++],x=t[e++],w=t[e++],S=t[e++]+w;e+=1;var T=!t[e++];g&&(s=v(w)*_+m,u=y(w)*x+b),Object(o["a"])(m,b,_,x,w,S,T,f,p),n=v(S)*_+m,a=y(S)*x+b;break;case l.R:s=n=t[e++],u=a=t[e++];var O=t[e++],M=t[e++];Object(o["c"])(s,u,s+O,u+M,f,p);break;case l.Z:n=s,a=u;break}r["min"](h,h,f),r["max"](d,d,p)}return 0===e&&(h[0]=h[1]=d[0]=d[1]=0),new i["a"](h[0],h[1],d[0]-h[0],d[1]-h[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,a=0,o=0,u=0;this._pathSegLen||(this._pathSegLen=[]);for(var c=this._pathSegLen,h=0,d=0,f=0;f<t;){var p=e[f++],b=1===f;b&&(i=e[f],a=e[f+1],o=i,u=a);var x=-1;switch(p){case l.M:i=o=e[f++],a=u=e[f++];break;case l.L:var S=e[f++],T=e[f++],O=S-i,M=T-a;(_(O)>n||_(M)>r||f===t-1)&&(x=Math.sqrt(O*O+M*M),i=S,a=T);break;case l.C:var E=e[f++],A=e[f++],C=(S=e[f++],T=e[f++],e[f++]),I=e[f++];x=Object(s["d"])(i,a,E,A,S,T,C,I,10),i=C,a=I;break;case l.Q:E=e[f++],A=e[f++],S=e[f++],T=e[f++];x=Object(s["k"])(i,a,E,A,S,T,10),i=S,a=T;break;case l.A:var D=e[f++],L=e[f++],P=e[f++],k=e[f++],R=e[f++],N=e[f++],j=N+R;f+=1;e[f++];b&&(o=v(R)*P+D,u=y(R)*k+L),x=m(P,k)*g(w,Math.abs(N)),i=v(j)*P+D,a=y(j)*k+L;break;case l.R:o=i=e[f++],u=a=e[f++];var F=e[f++],z=e[f++];x=2*F+2*z;break;case l.Z:O=o-i,M=u-a;x=Math.sqrt(O*O+M*M),i=o,a=u;break}x>=0&&(c[d++]=x,h+=x)}return this._pathLen=h,h},e.prototype.rebuildPath=function(e,t){var n,r,i,a,o,h,d,f,p,b=this.data,x=this._ux,w=this._uy,S=this._len,T=t<1,O=0,M=0;if(!T||(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,f=this._pathLen,p=t*f,p))e:for(var E=0;E<S;){var A=b[E++],C=1===E;switch(C&&(i=b[E],a=b[E+1],n=i,r=a),A){case l.M:n=i=b[E++],r=a=b[E++],e.moveTo(i,a);break;case l.L:if(o=b[E++],h=b[E++],_(o-i)>x||_(h-a)>w||E===S-1){if(T){var I=d[M++];if(O+I>p){var D=(p-O)/I;e.lineTo(i*(1-D)+o*D,a*(1-D)+h*D);break e}O+=I}e.lineTo(o,h),i=o,a=h}break;case l.C:var L=b[E++],P=b[E++],k=b[E++],R=b[E++],N=b[E++],j=b[E++];if(T){I=d[M++];if(O+I>p){D=(p-O)/I;Object(s["g"])(i,L,k,N,D,u),Object(s["g"])(a,P,R,j,D,c),e.bezierCurveTo(u[1],c[1],u[2],c[2],u[3],c[3]);break e}O+=I}e.bezierCurveTo(L,P,k,R,N,j),i=N,a=j;break;case l.Q:L=b[E++],P=b[E++],k=b[E++],R=b[E++];if(T){I=d[M++];if(O+I>p){D=(p-O)/I;Object(s["n"])(i,L,k,D,u),Object(s["n"])(a,P,R,D,c),e.quadraticCurveTo(u[1],c[1],u[2],c[2]);break e}O+=I}e.quadraticCurveTo(L,P,k,R),i=k,a=R;break;case l.A:var F=b[E++],z=b[E++],B=b[E++],V=b[E++],G=b[E++],H=b[E++],U=b[E++],W=!b[E++],X=B>V?B:V,Y=_(B-V)>.001,K=G+H,q=!1;if(T){I=d[M++];O+I>p&&(K=G+H*(p-O)/I,q=!0),O+=I}if(Y&&e.ellipse?e.ellipse(F,z,B,V,U,G,K,W):e.arc(F,z,X,G,K,W),q)break e;C&&(n=v(G)*B+F,r=y(G)*V+z),i=v(K)*B+F,a=y(K)*V+z;break;case l.R:n=i=b[E],r=a=b[E+1],o=b[E++],h=b[E++];var Z=b[E++],$=b[E++];if(T){I=d[M++];if(O+I>p){var Q=p-O;e.moveTo(o,h),e.lineTo(o+g(Q,Z),h),Q-=Z,Q>0&&e.lineTo(o+Z,h+g(Q,$)),Q-=$,Q>0&&e.lineTo(o+m(Z-Q,0),h+$),Q-=Z,Q>0&&e.lineTo(o,h+m($-Q,0));break e}O+=I}e.rect(o,h,Z,$);break;case l.Z:if(T){I=d[M++];if(O+I>p){D=(p-O)/I;e.lineTo(i*(1-D)+n*D,a*(1-D)+r*D);break e}O+=I}e.closePath(),i=n,a=r}}},e.CMD=l,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._needsDash=!1,t._dashOffset=0,t._dashIdx=0,t._dashSum=0,t._ux=0,t._uy=0}(),e}();t["a"]=E},"5Nth":function(e,t,n){var r=n("2JD6"),i=n("D8FR");e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},"5Wdj":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("YOYE"),i=1e-8;function a(e,t){return Math.abs(e-t)<i}function o(e,t,n){var i=0,o=e[0];if(!o)return!1;for(var s=1;s<e.length;s++){var l=e[s];i+=Object(r["a"])(o[0],o[1],l[0],l[1],t,n),o=l}var u=e[0];return a(o[0],u[0])&&a(o[1],u[1])||(i+=Object(r["a"])(o[0],o[1],u[0],u[1],t,n)),0!==i}},"5isN":function(e,t,n){"use strict";var r=n("40mc"),i=n("NVMI"),a=n("acWz"),o=n("mKn/"),s=n("2I03"),l=n("G70G"),u=n("tg/3");e.exports=function(e){var t,n,c,h,d,f,p=i(e),g="function"==typeof this?this:Array,m=arguments.length,v=m>1?arguments[1]:void 0,y=void 0!==v,b=u(p),_=0;if(y&&(v=r(v,m>2?arguments[2]:void 0,2)),void 0==b||g==Array&&o(b))for(t=s(p.length),n=new g(t);t>_;_++)f=y?v(p[_],_):p[_],l(n,_,f);else for(h=b.call(p),d=h.next,n=new g;!(c=d.call(h)).done;_++)f=y?a(h,v,[c.value,_],!0):c.value,l(n,_,f);return n.length=_,n}},"6+zH":function(e,t,n){"use strict";n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return c})),n.d(t,"e",(function(){return h})),n.d(t,"i",(function(){return p})),n.d(t,"B",(function(){return m})),n.d(t,"y",(function(){return v})),n.d(t,"m",(function(){return y})),n.d(t,"q",(function(){return b})),n.d(t,"l",(function(){return _})),n.d(t,"h",(function(){return x})),n.d(t,"r",(function(){return w})),n.d(t,"n",(function(){return T})),n.d(t,"j",(function(){return O})),n.d(t,"w",(function(){return M})),n.d(t,"f",(function(){return E})),n.d(t,"o",(function(){return A})),n.d(t,"u",(function(){return C})),n.d(t,"z",(function(){return I})),n.d(t,"s",(function(){return D})),n.d(t,"k",(function(){return L})),n.d(t,"x",(function(){return P})),n.d(t,"g",(function(){return k})),n.d(t,"p",(function(){return R})),n.d(t,"v",(function(){return N})),n.d(t,"A",(function(){return j})),n.d(t,"t",(function(){return F}));var r=n("a0Kb"),i=n("sKBc"),a=n("zFVJ"),o=n("tbCl"),s=1e3,l=60*s,u=60*l,c=24*u,h=365*c,d={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}"},f="{yyyy}-{MM}-{dd}",p={year:"{yyyy}",month:"{yyyy}-{MM}",day:f,hour:f+" "+d.hour,minute:f+" "+d.minute,second:f+" "+d.second,millisecond:d.none},g=["year","month","day","hour","minute","second","millisecond"],m=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function v(e,t){return e+="","0000".substr(0,t-e.length)+e}function y(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function b(e){return e===y(e)}function _(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function x(e,t,n,r){var s=i["n"](e),l=s[O(n)](),u=s[M(n)]()+1,c=Math.floor((u-1)/4)+1,h=s[E(n)](),d=s["get"+(n?"UTC":"")+"Day"](),f=s[A(n)](),p=(f-1)%12+1,g=s[C(n)](),m=s[I(n)](),y=s[D(n)](),b=r instanceof o["a"]?r:Object(a["d"])(r||a["a"])||Object(a["c"])(),_=b.getModel("time"),x=_.get("month"),w=_.get("monthAbbr"),S=_.get("dayOfWeek"),T=_.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,l+"").replace(/{yy}/g,l%100+"").replace(/{Q}/g,c+"").replace(/{MMMM}/g,x[u-1]).replace(/{MMM}/g,w[u-1]).replace(/{MM}/g,v(u,2)).replace(/{M}/g,u+"").replace(/{dd}/g,v(h,2)).replace(/{d}/g,h+"").replace(/{eeee}/g,S[d]).replace(/{ee}/g,T[d]).replace(/{e}/g,d+"").replace(/{HH}/g,v(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,v(p+"",2)).replace(/{h}/g,p+"").replace(/{mm}/g,v(g,2)).replace(/{m}/g,g+"").replace(/{ss}/g,v(m,2)).replace(/{s}/g,m+"").replace(/{SSS}/g,v(y,3)).replace(/{S}/g,y+"")}function w(e,t,n,i,a){var o=null;if("string"===typeof n)o=n;else if("function"===typeof n)o=n(e.value,t,{level:e.level});else{var s=r["extend"]({},d);if(e.level>0)for(var l=0;l<g.length;++l)s[g[l]]="{primary|"+s[g[l]]+"}";var u=n?!1===n.inherit?n:r["defaults"](n,s):s,c=S(e.value,a);if(u[c])o=u[c];else if(u.inherit){var h=m.indexOf(c);for(l=h-1;l>=0;--l)if(u[c]){o=u[c];break}o=o||s.none}if(r["isArray"](o)){var f=null==e.level?0:e.level>=0?e.level:o.length+e.level;f=Math.min(f,o.length-1),o=o[f]}}return x(new Date(e.value),o,a,i)}function S(e,t){var n=i["n"](e),r=n[M(t)]()+1,a=n[E(t)](),o=n[A(t)](),s=n[C(t)](),l=n[I(t)](),u=n[D(t)](),c=0===u,h=c&&0===l,d=h&&0===s,f=d&&0===o,p=f&&1===a,g=p&&1===r;return g?"year":p?"month":f?"day":d?"hour":h?"minute":c?"second":"millisecond"}function T(e,t,n){var r="number"===typeof e?i["n"](e):e;switch(t=t||S(e,n),t){case"year":return r[O(n)]();case"half-year":return r[M(n)]()>=6?1:0;case"quarter":return Math.floor((r[M(n)]()+1)/4);case"month":return r[M(n)]();case"day":return r[E(n)]();case"half-day":return r[A(n)]()/24;case"hour":return r[A(n)]();case"minute":return r[C(n)]();case"second":return r[I(n)]();case"millisecond":return r[D(n)]()}}function O(e){return e?"getUTCFullYear":"getFullYear"}function M(e){return e?"getUTCMonth":"getMonth"}function E(e){return e?"getUTCDate":"getDate"}function A(e){return e?"getUTCHours":"getHours"}function C(e){return e?"getUTCMinutes":"getMinutes"}function I(e){return e?"getUTCSeconds":"getSeconds"}function D(e){return e?"getUTCSeconds":"getSeconds"}function L(e){return e?"setUTCFullYear":"setFullYear"}function P(e){return e?"setUTCMonth":"setMonth"}function k(e){return e?"setUTCDate":"setDate"}function R(e){return e?"setUTCHours":"setHours"}function N(e){return e?"setUTCMinutes":"setMinutes"}function j(e){return e?"setUTCSeconds":"setSeconds"}function F(e){return e?"setUTCSeconds":"setSeconds"}},"66f4":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("a0Kb");function i(e){if(Object(r["isString"])(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var n=e;9===n.nodeType&&(n=n.firstChild);while("svg"!==n.nodeName.toLowerCase()||1!==n.nodeType)n=n.nextSibling;return n}},"6BwO":function(e,t,n){"use strict";n.d(t,"A",(function(){return Kt})),n.d(t,"d",(function(){return qt})),n.d(t,"a",(function(){return fn})),n.d(t,"l",(function(){return dr})),n.d(t,"b",(function(){return fr})),n.d(t,"e",(function(){return pr})),n.d(t,"f",(function(){return gr})),n.d(t,"g",(function(){return mr})),n.d(t,"i",(function(){return vr})),n.d(t,"j",(function(){return yr})),n.d(t,"w",(function(){return br})),n.d(t,"u",(function(){return _r})),n.d(t,"v",(function(){return xr})),n.d(t,"s",(function(){return wr})),n.d(t,"t",(function(){return Sr})),n.d(t,"m",(function(){return Tr})),n.d(t,"n",(function(){return Or})),n.d(t,"h",(function(){return Mr})),n.d(t,"q",(function(){return Ft["e"]})),n.d(t,"o",(function(){return Er})),n.d(t,"y",(function(){return Ar})),n.d(t,"p",(function(){return Dr})),n.d(t,"z",(function(){return Lr})),n.d(t,"r",(function(){return Pr})),n.d(t,"k",(function(){return kr})),n.d(t,"x",(function(){return Rr})),n.d(t,"c",(function(){return Nr}));var r=n("zb3V"),i=n("XGRq"),a=n("a0Kb"),o=n("Rj4u"),s=n("jwv5"),l=n("YoUd"),u=n("Tek4"),c=n("b26b"),h=n("tbCl"),d=n("XVzY"),f="";"undefined"!==typeof navigator&&(f=navigator.platform||"");var p,g,m,v="rgba(0, 0, 0, 0.2)",y={darkMode:"auto",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:v,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:v,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:v,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:v,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:v,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:v,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:f.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},b=n("1Cya"),_=n("UluK"),x=n("t8P9"),w="\0_ec_inner",S=1,T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r["b"])(t,e),t.prototype.init=function(e,t,n,r,i,a){r=r||{},this.option=null,this._theme=new h["a"](r),this._locale=new h["a"](i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=C(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,C(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||"recreate"===e){var i=r.mountOption("recreate"===e);this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(i,t)):m(this,i),n=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var o=r.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,t))}if(!e||"recreate"===e||"media"===e){var s=r.getMediaOption(this);s.length&&Object(a["each"])(s,(function(e){n=!0,this._mergeOption(e,t)}),this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,o=[],s=Object(a["createHashMap"])(),l=t&&t.replaceMergeMainTypeMap;function u(t){var o=Object(_["a"])(this,t,c["r"](e[t])),s=r.get(t),u=s?l&&l.get(t)?"replaceMerge":"normalMerge":"replaceAll",h=c["q"](s,o,u);c["w"](h,t,d["a"]),n[t]=null,r.set(t,null),i.set(t,0);var f=[],g=[],m=0;Object(a["each"])(h,(function(e,n){var r=e.existing,i=e.newOption;if(i){var o=d["a"].getClass(t,e.keyInfo.subType,!0);if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=Object(a["extend"])({componentIndex:n},e.keyInfo);r=new o(i,this,this,s),Object(a["extend"])(r,s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(f.push(r.option),g.push(r),m++):(f.push(void 0),g.push(void 0))}),this),n[t]=f,r.set(t,g),i.set(t,m),"series"===t&&p(this)}Object(b["g"])(this),Object(a["each"])(e,(function(e,t){null!=e&&(d["a"].hasClass(t)?t&&(o.push(t),s.set(t,!0)):n[t]=null==n[t]?Object(a["clone"])(e):Object(a["merge"])(n[t],e,!0))})),l&&l.each((function(e,t){d["a"].hasClass(t)&&!s.get(t)&&(o.push(t),s.set(t,!0))})),d["a"].topologicalTravel(o,d["a"].getAllClassMainTypes(),u,this),this._seriesIndices||p(this)},t.prototype.getOption=function(){var e=Object(a["clone"])(this.option);return Object(a["each"])(e,(function(t,n){if(d["a"].hasClass(n)){for(var r=c["r"](t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!c["l"](r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}})),delete e[w],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.getLocale=function(e){var t=this.getLocaleModel();return t.get(e)},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(null==t)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n,r=e.index,i=e.id,o=e.name,s=this._componentsMap.get(t);return s&&s.length?(null!=r?(n=[],Object(a["each"])(c["r"](r),(function(e){s[e]&&n.push(s[e])}))):n=null!=i?E("id",i,s):null!=o?E("name",o,s):Object(a["filter"])(s,(function(e){return!!e})),A(n,e)):[]},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=o(t),i=r?this.queryComponents(r):Object(a["filter"])(this._componentsMap.get(n),(function(e){return!!e}));return s(A(i,e));function o(e){var t=n+"Index",r=n+"Id",i=n+"Name";return!e||null==e[t]&&null==e[r]&&null==e[i]?null:{mainType:n,index:e[t],id:e[r],name:e[i]}}function s(t){return e.filter?Object(a["filter"])(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(Object(a["isFunction"])(e)){var i=t,o=e;r.each((function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&o.call(i,t,r,r.componentIndex)}}))}else for(var s=Object(a["isString"])(e)?r.get(e):Object(a["isObject"])(e)?this.findComponents(e):null,l=0;s&&l<s.length;l++){var u=s[l];u&&t.call(n,u,u.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=c["e"](e,null);return Object(a["filter"])(this._componentsMap.get("series"),(function(e){return!!e&&null!=t&&e.name===t}))},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return Object(a["filter"])(this._componentsMap.get("series"),(function(t){return!!t&&t.subType===e}))},t.prototype.getSeries=function(){return Object(a["filter"])(this._componentsMap.get("series").slice(),(function(e){return!!e}))},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,t){g(this),Object(a["each"])(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];e.call(t,r,n)}),this)},t.prototype.eachRawSeries=function(e,t){Object(a["each"])(this._componentsMap.get("series"),(function(n){n&&e.call(t,n,n.componentIndex)}))},t.prototype.eachSeriesByType=function(e,t,n){g(this),Object(a["each"])(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];i.subType===e&&t.call(n,i,r)}),this)},t.prototype.eachRawSeriesByType=function(e,t,n){return Object(a["each"])(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return g(this),null==this._seriesIndicesMap.get(e.componentIndex)},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){g(this);var n=[];Object(a["each"])(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];e.call(t,i,r)&&n.push(r)}),this),this._seriesIndices=n,this._seriesIndicesMap=Object(a["createHashMap"])(n)},t.prototype.restoreData=function(e){p(this);var t=this._componentsMap,n=[];t.each((function(e,t){d["a"].hasClass(t)&&n.push(t)})),d["a"].topologicalTravel(n,d["a"].getAllClassMainTypes(),(function(n){Object(a["each"])(t.get(n),(function(t){!t||"series"===n&&O(t,e)||t.restoreData()}))}))},t.internalField=function(){p=function(e){var t=e._seriesIndices=[];Object(a["each"])(e._componentsMap.get("series"),(function(e){e&&t.push(e.componentIndex)})),e._seriesIndicesMap=Object(a["createHashMap"])(t)},g=function(e){0},m=function(e,t){e.option={},e.option[w]=S,e._componentsMap=Object(a["createHashMap"])({series:[]}),e._componentsCount=Object(a["createHashMap"])();var n=t.aria;Object(a["isObject"])(n)&&null==n.enabled&&(n.enabled=!0),M(t,e._theme.option),Object(a["merge"])(t,y,!1),e._mergeOption(t,null)}}(),t}(h["a"]);function O(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return null!=n&&e.componentIndex!==n||null!=r&&e.id!==r||null!=i&&e.name!==i}}function M(e,t){var n=e.color&&!e.colorLayer;Object(a["each"])(t,(function(t,r){"colorLayer"===r&&n||d["a"].hasClass(r)||("object"===typeof t?e[r]=e[r]?Object(a["merge"])(e[r],t,!1):Object(a["clone"])(t):null==e[r]&&(e[r]=t))}))}function E(e,t,n){if(Object(a["isArray"])(t)){var r=Object(a["createHashMap"])();return Object(a["each"])(t,(function(e){if(null!=e){var t=c["e"](e,null);null!=t&&r.set(e,!0)}})),Object(a["filter"])(n,(function(t){return t&&r.get(t[e])}))}var i=c["e"](t,null);return Object(a["filter"])(n,(function(t){return t&&null!=i&&t[e]===i}))}function A(e,t){return t.hasOwnProperty("subType")?Object(a["filter"])(e,(function(e){return e&&e.subType===t.subType})):e}function C(e){var t=Object(a["createHashMap"])();return e&&Object(a["each"])(c["r"](e.replaceMerge),(function(e){t.set(e,!0)})),{replaceMergeMainTypeMap:t}}Object(a["mixin"])(T,x["a"]);var I=T,D=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],L=function(){function e(e){a["each"](D,(function(t){this[t]=a["bind"](e[t],e)}),this)}return e}(),P=L,k=n("ajRN"),R=/^(min|max)?(.+)$/,N=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(Object(a["each"])(Object(c["r"])(e.series),(function(e){e&&e.data&&Object(a["isTypedArray"])(e.data)&&Object(a["setAsPrimitive"])(e.data)})),Object(a["each"])(Object(c["r"])(e.dataset),(function(e){e&&e.source&&Object(a["isTypedArray"])(e.source)&&Object(a["setAsPrimitive"])(e.source)}))),e=Object(a["clone"])(e);var r=this._optionBackup,i=j(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],Object(a["clone"])(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent("timeline");r&&(t=Object(a["clone"])(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!r.length&&!i)return s;for(var l=0,u=r.length;l<u;l++)F(r[l].query,t,n)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!B(o,this._currentMediaIndices)&&(s=Object(a["map"])(o,(function(e){return Object(a["clone"])(-1===e?i.option:r[e].option)}))),this._currentMediaIndices=o,s},e}();function j(e,t,n){var r,i,o=[],s=e.baseOption,l=e.timeline,u=e.options,c=e.media,h=!!e.media,d=!!(u||l||s&&s.timeline);function f(e){Object(a["each"])(t,(function(t){t(e,n)}))}return s?(i=s,i.timeline||(i.timeline=l)):((d||h)&&(e.options=e.media=null),i=e),h&&Object(a["isArray"])(c)&&Object(a["each"])(c,(function(e){e&&e.option&&(e.query?o.push(e):r||(r=e))})),f(i),Object(a["each"])(u,(function(e){return f(e)})),Object(a["each"])(o,(function(e){return f(e.option)})),{baseOption:i,timelineOptions:u||[],mediaDefault:r,mediaList:o}}function F(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return Object(a["each"])(e,(function(e,t){var n=t.match(R);if(n&&n[1]&&n[2]){var a=n[1],o=n[2].toLowerCase();z(r[o],e,a)||(i=!1)}})),i}function z(e,t,n){return"min"===n?e>=t:"max"===n?e<=t:e===t}function B(e,t){return e.join(",")===t.join(",")}var V=N,G=a["each"],H=a["isObject"],U=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function W(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=U.length;n<r;n++){var i=U[n],o=t.normal,s=t.emphasis;o&&o[i]&&(e[i]=e[i]||{},e[i].normal?a["merge"](e[i].normal,o[i]):e[i].normal=o[i],o[i]=null),s&&s[i]&&(e[i]=e[i]||{},e[i].emphasis?a["merge"](e[i].emphasis,s[i]):e[i].emphasis=s[i],s[i]=null)}}function X(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,a["defaults"](e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function Y(e){X(e,"itemStyle"),X(e,"lineStyle"),X(e,"areaStyle"),X(e,"label"),X(e,"labelLine"),X(e,"upperLabel"),X(e,"edgeLabel")}function K(e,t){var n=H(e)&&e[t],r=H(n)&&n.textStyle;if(r){0;for(var i=0,a=c["c"].length;i<a;i++){var o=c["c"][i];r.hasOwnProperty(o)&&(n[o]=r[o])}}}function q(e){e&&(Y(e),K(e,"label"),e.emphasis&&K(e.emphasis,"label"))}function Z(e){if(H(e)){W(e),Y(e),K(e,"label"),K(e,"upperLabel"),K(e,"edgeLabel"),e.emphasis&&(K(e.emphasis,"label"),K(e.emphasis,"upperLabel"),K(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(W(t),q(t));var n=e.markLine;n&&(W(n),q(n));var r=e.markArea;r&&q(r);var i=e.data;if("graph"===e.type){i=i||e.nodes;var o=e.links||e.edges;if(o&&!a["isTypedArray"](o))for(var s=0;s<o.length;s++)q(o[s]);a["each"](e.categories,(function(e){Y(e)}))}if(i&&!a["isTypedArray"](i))for(s=0;s<i.length;s++)q(i[s]);if(t=e.markPoint,t&&t.data){var l=t.data;for(s=0;s<l.length;s++)q(l[s])}if(n=e.markLine,n&&n.data){var u=n.data;for(s=0;s<u.length;s++)a["isArray"](u[s])?(q(u[s][0]),q(u[s][1])):q(u[s])}"gauge"===e.type?(K(e,"axisLabel"),K(e,"title"),K(e,"detail")):"treemap"===e.type?(X(e.breadcrumb,"itemStyle"),a["each"](e.levels,(function(e){Y(e)}))):"tree"===e.type&&Y(e.leaves)}}function $(e){return a["isArray"](e)?e:e?[e]:[]}function Q(e){return(a["isArray"](e)?e[0]:e)||{}}function J(e,t){G($(e.series),(function(e){H(e)&&Z(e)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),G(n,(function(t){G($(e[t]),(function(e){e&&(K(e,"axisLabel"),K(e.axisPointer,"label"))}))})),G($(e.parallel),(function(e){var t=e&&e.parallelAxisDefault;K(t,"axisLabel"),K(t&&t.axisPointer,"label")})),G($(e.calendar),(function(e){X(e,"itemStyle"),K(e,"dayLabel"),K(e,"monthLabel"),K(e,"yearLabel")})),G($(e.radar),(function(e){K(e,"name"),e.name&&null==e.axisName&&(e.axisName=e.name,delete e.name),null!=e.nameGap&&null==e.axisNameGap&&(e.axisNameGap=e.nameGap,delete e.nameGap)})),G($(e.geo),(function(e){H(e)&&(q(e),G($(e.regions),(function(e){q(e)})))})),G($(e.timeline),(function(e){q(e),X(e,"label"),X(e,"itemStyle"),X(e,"controlStyle",!0);var t=e.data;a["isArray"](t)&&a["each"](t,(function(e){a["isObject"](e)&&(X(e,"label"),X(e,"itemStyle"))}))})),G($(e.toolbox),(function(e){X(e,"iconStyle"),G(e.feature,(function(e){X(e,"iconStyle")}))})),K(Q(e.axisPointer),"label"),K(Q(e.tooltip).axisPointer,"label")}function ee(e,t){for(var n=t.split(","),r=e,i=0;i<n.length;i++)if(r=r&&r[n[i]],null==r)break;return r}function te(e,t,n,r){for(var i,a=t.split(","),o=e,s=0;s<a.length-1;s++)i=a[s],null==o[i]&&(o[i]={}),o=o[i];(r||null==o[a[s]])&&(o[a[s]]=n)}function ne(e){e&&Object(a["each"])(re,(function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])}))}var re=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],ie=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],ae=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function oe(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<ae.length;n++){var r=ae[n][1],i=ae[n][0];null!=t[r]&&(t[i]=t[r])}}function se(e){e&&"edge"===e.alignTo&&null!=e.margin&&null==e.edgeDistance&&(e.edgeDistance=e.margin)}function le(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function ue(e){e&&null!=e.focusNodeAdjacency&&(e.emphasis=e.emphasis||{},null==e.emphasis.focus&&(e.emphasis.focus="adjacency"))}function ce(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&ce(e[n].children,t)}function he(e,t){J(e,t),e.series=Object(c["r"])(e.series),Object(a["each"])(e.series,(function(e){if(Object(a["isObject"])(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow);else if("pie"===t||"gauge"===t){null!=e.clockWise&&(e.clockwise=e.clockWise),se(e.label);var n=e.data;if(n&&!Object(a["isTypedArray"])(n))for(var r=0;r<n.length;r++)se(n[r]);null!=e.hoverOffset&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if("gauge"===t){var i=ee(e,"pointer.color");null!=i&&te(e,"itemStyle.color",i)}else if("bar"===t){oe(e),oe(e.backgroundStyle),oe(e.emphasis);n=e.data;if(n&&!Object(a["isTypedArray"])(n))for(r=0;r<n.length;r++)"object"===typeof n[r]&&(oe(n[r]),oe(n[r]&&n[r].emphasis))}else if("sunburst"===t){var o=e.highlightPolicy;o&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=o)),le(e),ce(e.data,le)}else"graph"===t||"sankey"===t?ue(e):"map"===t&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&Object(a["defaults"])(e,e.mapLocation));null!=e.hoverAnimation&&(e.emphasis=e.emphasis||{},e.emphasis&&null==e.emphasis.scale&&(e.emphasis.scale=e.hoverAnimation)),ne(e)}})),e.dataRange&&(e.visualMap=e.dataRange),Object(a["each"])(ie,(function(t){var n=e[t];n&&(Object(a["isArray"])(n)||(n=[n]),Object(a["each"])(n,(function(e){ne(e)})))}))}function de(e){var t=Object(a["createHashMap"])();e.eachSeries((function(e){var n=e.get("stack");if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),a={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:e};if(!a.stackedDimension||!a.isStackedByIndex&&!a.stackedByDimension)return;r.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(a)}})),t.each(fe)}function fe(e){Object(a["each"])(e,(function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=o.map(a,(function(a,l,u){var c,h,d=o.get(t.stackedDimension,u);if(isNaN(d))return i;s?h=o.getRawIndex(u):c=o.get(t.stackedByDimension,u);for(var f=NaN,p=n-1;p>=0;p--){var g=e[p];if(s||(h=g.data.rawIndexOf(g.stackedByDimension,c)),h>=0){var m=g.data.getByRawIndex(g.stackResultDimension,h);if(d>=0&&m>0||d<=0&&m<0){d+=m,f=m;break}}}return r[0]=d,r[1]=f,r}));o.hostModel.setData(l),t.data=l}))}var pe=n("bTwz"),ge=n("x5Va"),me=n("3Bqt"),ve=n("uN9/"),ye=n("AGhn"),be=n("AyoT"),_e=n("H4kQ"),xe=n("MJ25"),we=n("wh+7"),Se=n("qtYV"),Te=n("ekZt"),Oe=n("SPWa"),Me=n("8Mh8"),Ee=Object(c["o"])(),Ae={itemStyle:Object(Te["a"])(Oe["a"],!0),lineStyle:Object(Te["a"])(Me["a"],!0)},Ce={lineStyle:"stroke",itemStyle:"fill"};function Ie(e,t){var n=e.visualStyleMapper||Ae[t];return n||(console.warn("Unkown style type '"+t+"'."),Ae.itemStyle)}function De(e,t){var n=e.visualDrawType||Ce[t];return n||(console.warn("Unkown style type '"+t+"'."),"fill")}var Le={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),o=Ie(e,r),s=o(i),l=i.getShallow("decal");l&&(n.setVisual("decal",l),l.dirty=!0);var u=De(e,r),c=s[u],h=Object(a["isFunction"])(c)?c:null;if(s[u]&&!h||(s[u]=e.getColorFromPalette(e.name,null,t.getSeriesCount()),n.setVisual("colorFromPalette",!0)),n.setVisual("style",s),n.setVisual("drawType",u),!t.isSeriesFiltered(e)&&h)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=Object(a["extend"])({},s);i[u]=h(r),t.setItemVisual(n,"style",i)}}}},Pe=new h["a"],ke={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=Ie(e,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){Pe.option=n[r];var s=i(Pe),l=e.ensureUniqueItemVisual(t,"style");Object(a["extend"])(l,s),Pe.option.decal&&(e.setItemVisual(t,"decal",Pe.option.decal),Pe.option.decal.dirty=!0),o in s&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},Re={performRawSeries:!0,overallReset:function(e){var t=Object(a["createHashMap"])();e.eachSeries((function(e){if(e.useColorPaletteOnData){var n=t.get(e.type);n||(n={},t.set(e.type,n)),Ee(e).scope=n}})),e.eachSeries((function(t){if(t.useColorPaletteOnData&&!e.isSeriesFiltered(t)){var n=t.getRawData(),r={},i=t.getData(),a=Ee(t).scope,o=t.visualStyleAccessPath||"itemStyle",s=De(t,o);i.each((function(e){var t=i.getRawIndex(e);r[t]=e})),n.each((function(e){var o=r[e],l=i.getItemVisual(o,"colorFromPalette");if(l){var u=i.ensureUniqueItemVisual(o,"style"),c=n.getName(e)||e+"",h=n.count();u[s]=t.getColorFromPalette(c,a,h)}}))}}))}},Ne=n("BAGR"),je=n("2ZPZ"),Fe=n("afOt"),ze=Math.PI;function Be(e,t){t=t||{},a["defaults"](t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Ne["a"],r=new ve["a"]({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i,o=new je["a"]({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily}}),s=new ve["a"]({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return n.add(s),t.showSpinner&&(i=new Fe["a"]({shape:{startAngle:-ze/2,endAngle:-ze/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),i.animateShape(!0).when(1e3,{endAngle:3*ze/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*ze/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=o.getBoundingRect().width,a=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*a-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:a),u=e.getHeight()/2;t.showSpinner&&i.setShape({cx:l,cy:u}),s.setShape({x:l-a,y:u-a,width:2*a,height:2*a}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var Ve=n("Y+i/"),Ge=n("rJci"),He=function(){function e(e,t,n,r){this._stageTaskMap=Object(a["createHashMap"])(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each((function(e){var t=e.overallTask;t&&t.dirty()}))},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex,a=i?n.step:null,o=r&&r.modDataCount,s=null!=o?Math.ceil(o/a):null;return{step:a,modBy:s,modDataCount:o}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),r=e.getData(),i=r.count(),a=n.progressiveEnabled&&t.incrementalPrepareRender&&i>=n.threshold,o=e.get("large")&&i>=e.get("largeThreshold"),s="mod"===e.get("progressiveChunkMode")?i:null;e.pipelineContext=n.context={progressiveRender:a,modDataCount:s,large:o}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=Object(a["createHashMap"])();e.eachSeries((function(e){var r=e.getProgressive(),i=e.uid;n.set(i,{id:i,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),t._pipe(e,e.dataTask)}))},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;Object(a["each"])(this._allHandlers,(function(r){var i=e.get(r.uid)||e.set(r.uid,{}),o="";Object(a["assert"])(!(r.reset&&r.overallReset),o),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)}),this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r=r||{};var i=!1,o=this;function s(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}Object(a["each"])(e,(function(e,a){if(!r.visualType||r.visualType===e.visualType){var l=o._stageTaskMap.get(e.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,d=c.agentStubMap;d.each((function(e){s(r,e)&&(e.dirty(),h=!0)})),h&&c.dirty(),o.updatePayload(c,n);var f=o.getPerformArgs(c,r.block);d.each((function(e){e.perform(f)})),c.perform(f)&&(i=!0)}else u&&u.each((function(a,l){s(r,a)&&a.dirty();var u=o.getPerformArgs(a,r.block);u.skip=!e.performRawSeries&&t.isSeriesFiltered(a.context.model),o.updatePayload(a,n),a.perform(u)&&(i=!0)}))}})),this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries((function(e){t=e.dataTask.perform()||t})),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each((function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)}))},e.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=Object(a["createHashMap"])(),l=e.seriesType,u=e.getTargetSeries;function c(t){var a=t.uid,l=s.set(a,o&&o.get(a)||Object(Ve["a"])({plan:Ke,reset:qe,count:Qe}));l.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,l)}e.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,r).each(c)},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,o=t.overallTask=t.overallTask||Object(Ve["a"])({reset:Ue});o.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=Object(a["createHashMap"])(),u=e.seriesType,c=e.getTargetSeries,h=!0,d=!1,f="";function p(e){var t=e.uid,n=l.set(t,s&&s.get(t)||(d=!0,Object(Ve["a"])({reset:We,onDirty:Ye})));n.context={model:e,overallProgress:h},n.agent=o,n.__block=h,i._pipe(e,n)}Object(a["assert"])(!e.createOnAllSeries,f),u?n.eachRawSeriesByType(u,p):c?c(n,r).each(p):(h=!1,Object(a["each"])(n.getSeries(),p)),d&&o.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return Object(a["isFunction"])(e)&&(e={overallReset:e,seriesType:Je(e)}),e.uid=Object(Ge["c"])("stageHandler"),t&&(e.visualType=t),e},e}();function Ue(e){e.overallReset(e.ecModel,e.api,e.payload)}function We(e){return e.overallProgress&&Xe}function Xe(){this.agent.dirty(),this.getDownstream().dirty()}function Ye(){this.agent&&this.agent.dirty()}function Ke(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function qe(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Object(c["r"])(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Object(a["map"])(t,(function(e,t){return $e(t)})):Ze}var Ze=$e(0);function $e(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(r,a);else i&&i.progress&&i.progress(t,r)}}function Qe(e){return e.data.count()}function Je(e){et=null;try{e(tt,nt)}catch(t){}return et}var et,tt={},nt={};function rt(e,t){for(var n in t.prototype)e[n]=a["noop"]}rt(tt,I),rt(nt,P),tt.eachSeriesByType=tt.eachRawSeriesByType=function(e){et=e},tt.eachComponent=function(e){"series"===e.mainType&&e.subType&&(et=e.subType)};var it=He,at=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],ot={color:at,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],at]},st="#B9B8CE",lt="#100C2A",ut=function(){return{axisLine:{lineStyle:{color:st}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},ct=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],ht={darkMode:!0,color:ct,backgroundColor:lt,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:st}},textStyle:{color:st},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:st}},dataZoom:{borderColor:"#71708A",textStyle:{color:st},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:st}},timeline:{lineStyle:{color:st},label:{color:st},controlStyle:{color:st,borderColor:st}},calendar:{itemStyle:{color:lt},dayLabel:{color:st},monthLabel:{color:st},yearLabel:{color:st}},timeAxis:ut(),logAxis:ut(),valueAxis:ut(),categoryAxis:ut(),line:{symbol:"circle"},graph:{color:ct},gauge:{title:{color:st},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:st},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};ht.categoryAxis.splitLine.show=!1;var dt=ht,ft=n("LRGS"),pt=n("EPlJ"),gt=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(a["isString"](e)){var i=Object(pt["f"])(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};a["each"](e,(function(e,i){for(var a=!1,l=0;l<o.length;l++){var u=o[l],c=i.lastIndexOf(u);if(c>0&&c===i.length-u.length){var h=i.slice(0,c);"data"!==h&&(t.mainType=h,t[u.toLowerCase()]=e,a=!0)}}s.hasOwnProperty(i)&&(n[i]=e,a=!0),a||(r[i]=e)}))}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,l=t.dataQuery;return u(s,a,"mainType")&&u(s,a,"subType")&&u(s,a,"index","componentIndex")&&u(s,a,"name")&&u(s,a,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function u(e,t,n,r){return null==e[n]||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),mt={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendSymbol&&n.setVisual("legendSymbol",e.legendSymbol),e.hasSymbolVisual){var r=e.get("symbol"),i=e.get("symbolSize"),o=e.get("symbolKeepAspect"),s=e.get("symbolRotate"),l=Object(a["isFunction"])(r),u=Object(a["isFunction"])(i),c=Object(a["isFunction"])(s),h=l||u||c,d=!l&&r?r:e.defaultSymbol,f=u?null:i,p=c?null:s;if(n.setVisual({legendSymbol:e.legendSymbol||d,symbol:d,symbolSize:f,symbolKeepAspect:o,symbolRotate:p}),!t.isSeriesFiltered(e))return{dataEach:h?g:null}}function g(t,n){var a=e.getRawValue(n),o=e.getDataParams(n);l&&t.setItemVisual(n,"symbol",r(a,o)),u&&t.setItemVisual(n,"symbolSize",i(a,o)),c&&t.setItemVisual(n,"symbolRotate",s(a,o))}}},vt={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(e.hasSymbolVisual&&!t.isSeriesFiltered(e)){var n=e.getData();return{dataEach:n.hasItemOption?r:null}}function r(e,t){var n=e.getItemModel(t),r=n.getShallow("symbol",!0),i=n.getShallow("symbolSize",!0),a=n.getShallow("symbolRotate",!0),o=n.getShallow("symbolKeepAspect",!0);null!=r&&e.setItemVisual(t,"symbol",r),null!=i&&e.setItemVisual(t,"symbolSize",i),null!=a&&e.setItemVisual(t,"symbolRotate",a),null!=o&&e.setItemVisual(t,"symbolKeepAspect",o)}}},yt=n("EcRG"),bt=n("xFFj"),_t=n("sKBc"),xt=n("kvGf"),wt=n("V1Aq"),St=n("czcW"),Tt=n("IhSh");function Ot(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function Mt(e,t){var n=e.label,r=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:Ot(r&&r.shape.points)}}var Et=["align","verticalAlign","width","height","fontSize"],At=new xt["a"],Ct=Object(c["o"])(),It=Object(c["o"])();function Dt(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];null!=t[i]&&(e[i]=t[i])}}var Lt=["x","y","rotation"],Pt=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,r,i){var a=r.style,o=r.__hostTarget,s=o.textConfig||{},l=r.getComputedTransform(),u=r.getBoundingRect().plain();bt["a"].applyTransform(u,u,l),l?At.setLocalTransform(l):(At.x=At.y=At.rotation=At.originX=At.originY=0,At.scaleX=At.scaleY=1);var c,h=r.__hostTarget;if(h){c=h.getBoundingRect().plain();var d=h.getComputedTransform();bt["a"].applyTransform(c,c,d)}var f=c&&h.getTextGuideLine();this._labelList.push({label:r,labelLine:f,seriesModel:n,dataIndex:e,dataType:t,layoutOption:i,computedLayoutOption:null,rect:u,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:f&&f.ignore,x:At.x,y:At.y,rotation:At.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:r.cursor,attachedPos:s.position,attachedRot:s.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,r=n.get("labelLayout");(Object(a["isFunction"])(r)||Object(a["keys"])(r).length)&&e.group.traverse((function(e){if(e.ignore)return!0;var i=e.getTextContent(),a=Object(xe["a"])(e);i&&!i.disableLabelLayout&&t._addLabel(a.dataIndex,a.dataType,n,i,r)}))},e.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function r(e,t){return function(){Object(wt["e"])(e,t)}}for(var i=0;i<this._labelList.length;i++){var a=this._labelList[i],o=a.label,s=o.__hostTarget,l=a.defaultAttr,u=void 0;u="function"===typeof a.layoutOption?a.layoutOption(Mt(a,s)):a.layoutOption,u=u||{},a.computedLayoutOption=u;var c=Math.PI/180;s&&s.setTextConfig({local:!1,position:null!=u.x||null!=u.y?null:l.attachedPos,rotation:null!=u.rotate?u.rotate*c:l.attachedRot,offset:[u.dx||0,u.dy||0]});var h=!1;if(null!=u.x?(o.x=Object(_t["o"])(u.x,t),o.setStyle("x",0),h=!0):(o.x=l.x,o.setStyle("x",l.style.x)),null!=u.y?(o.y=Object(_t["o"])(u.y,n),o.setStyle("y",0),h=!0):(o.y=l.y,o.setStyle("y",l.style.y)),u.labelLinePoints){var d=s.getTextGuideLine();d&&(d.setShape({points:u.labelLinePoints}),h=!1)}var f=Ct(o);f.needsUpdateLabelLine=h,o.rotation=null!=u.rotate?u.rotate*c:l.rotation;for(var p=0;p<Et.length;p++){var g=Et[p];o.setStyle(g,null!=u[g]?u[g]:l.style[g])}if(u.draggable){if(o.draggable=!0,o.cursor="move",s){var m=a.seriesModel;if(null!=a.dataIndex){var v=a.seriesModel.getData(a.dataType);m=v.getItemModel(a.dataIndex)}o.on("drag",r(s,m.getModel("labelLine")))}}else o.off("drag"),o.cursor=l.cursor}},e.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),r=Object(St["b"])(this._labelList),i=Object(a["filter"])(r,(function(e){return"shiftX"===e.layoutOption.moveOverlap})),o=Object(a["filter"])(r,(function(e){return"shiftY"===e.layoutOption.moveOverlap}));Object(St["c"])(i,0,t),Object(St["d"])(o,0,n);var s=Object(a["filter"])(r,(function(e){return e.layoutOption.hideOverlap}));Object(St["a"])(s)},e.prototype.processLabelsOverall=function(){var e=this;Object(a["each"])(this._chartViewList,(function(t){var n=t.__model,r=t.ignoreLabelLineUpdate,i=n.isAnimationEnabled();t.group.traverse((function(t){if(t.ignore)return!0;var a=!r,o=t.getTextContent();!a&&o&&(a=Ct(o).needsUpdateLabelLine),a&&e._updateLabelLine(t,n),i&&e._animateLabels(t,n)}))}))},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),r=Object(xe["a"])(e),i=r.dataIndex;if(n&&null!=i){var a=t.getData(r.dataType),o=a.getItemModel(i),s={},l=a.getItemVisual(i,"style"),u=a.getVisual("drawType");s.stroke=l[u];var c=o.getModel("labelLine");Object(wt["d"])(e,Object(wt["a"])(o),s),Object(wt["e"])(e,c)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),r=e.getTextGuideLine();if(n&&!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!Object(be["isElementRemoved"])(e)){var i=Ct(n),o=i.oldLayout,s=Object(xe["a"])(e),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},c=t.getData(s.dataType);if(o){n.attr(o);var h=e.prevStates;h&&(Object(a["indexOf"])(h,"select")>=0&&n.attr(i.oldLayoutSelect),Object(a["indexOf"])(h,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),Object(be["updateProps"])(n,u,t,l)}else if(n.attr(u),!Object(Tt["f"])(n).valueAnimation){var d=Object(a["retrieve2"])(n.style.opacity,1);n.style.opacity=0,Object(be["initProps"])(n,{style:{opacity:d}},t,l)}if(i.oldLayout=u,n.states.select){var f=i.oldLayoutSelect={};Dt(f,u,Lt),Dt(f,n.states.select,Lt)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};Dt(p,u,Lt),Dt(p,n.states.emphasis,Lt)}Object(Tt["a"])(n,l,c,t,t)}if(r&&!r.ignore&&!r.invisible){i=It(r),o=i.oldLayout;var g={points:r.shape.points};o?(r.attr({shape:o}),Object(be["updateProps"])(r,{shape:g},t)):(r.setShape(g),r.style.strokePercent=0,Object(be["initProps"])(r,{style:{strokePercent:1}},t)),i.oldLayout=g}},e}(),kt=Pt,Rt=n("b9e6"),Nt=n("cvH+"),jt=n("kRSx"),Ft=n("zFVJ"),zt=n("WJAu"),Bt=n("dWfN");function Vt(e,t){e.eachRawSeries((function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each((function(e){var n=r.getItemVisual(e,"decal");if(n){var i=r.ensureUniqueItemVisual(e,"style");i.decal=Object(Bt["a"])(n,t)}}));var i=r.getVisual("decal");if(i){var a=r.getVisual("style");a.decal=Object(Bt["a"])(i,t)}}}))}var Gt=a["assert"],Ht=a["each"],Ut=a["isFunction"],Wt=a["isObject"],Xt=a["indexOf"],Yt="undefined"!==typeof window,Kt="5.0.2",qt={zrender:"5.0.4"},Zt=1,$t=800,Qt=900,Jt=1e3,en=2e3,tn=5e3,nn=1e3,rn=1100,an=2e3,on=3e3,sn=4e3,ln=4500,un=4600,cn=5e3,hn=6e3,dn=7e3,fn={PROCESSOR:{FILTER:Jt,SERIES_FILTER:$t,STATISTIC:tn},VISUAL:{LAYOUT:nn,PROGRESSIVE_LAYOUT:rn,GLOBAL:an,CHART:on,POST_CHART_LAYOUT:un,COMPONENT:sn,BRUSH:cn,CHART_ITEM:ln,ARIA:hn,DECAL:dn}},pn="__flagInMainProcess",gn="__optionUpdated",mn="__needsUpdateStatus",vn=/^[a-zA-Z0-9_]+$/,yn="__connectUpdateStatus",bn=0,_n=1,xn=2;function wn(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!this.isDisposed())return Tn(this,e,t);$n(this.id)}}function Sn(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Tn(this,e,t)}}function Tn(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),u["a"].prototype[t].apply(e,n)}var On,Mn,En,An,Cn,In,Dn,Ln,Pn,kn,Rn,Nn,jn,Fn,zn,Bn,Vn,Gn,Hn,Un,Wn,Xn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r["b"])(t,e),t}(u["a"]),Yn=Xn.prototype;Yn.on=Sn("on"),Yn.off=Sn("off");var Kn=function(e){function t(t,n,r){var o=e.call(this,new gt)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],r=r||{},"string"===typeof n&&(n=ar[n]),o._dom=t;var s="canvas",u=!1,c=o._zr=i["init"](t,{renderer:r.renderer||s,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,useDirtyRect:null==r.useDirtyRect?u:r.useDirtyRect});o._throttledZrFlush=Object(Se["c"])(a["bind"](c.flush,c),17),n=a["clone"](n),n&&he(n,!0),o._theme=n,o._locale=Object(Ft["b"])(r.locale||Ft["a"]),o._coordSysMgr=new k["a"];var h=o._api=Vn(o);function d(e,t){return e.__prio-t.__prio}return Object(l["a"])(ir,d),Object(l["a"])(er,d),o._scheduler=new it(o,h,er,ir),o._messageCenter=new Xn,o._labelManager=new kt,o._initEvents(),o.resize=a["bind"](o.resize,o),c.animation.on("frame",o._onframe,o),kn(c,o),Rn(c,o),a["setAsPrimitive"](o),o}return Object(r["b"])(t,e),t.prototype._onframe=function(){if(!this._disposed){Wn(this);var e=this._scheduler;if(this[gn]){var t=this[gn].silent;this[pn]=!0,On(this),An.update.call(this),this._zr.flush(),this[pn]=!1,this[gn]=!1,Ln.call(this,t),Pn.call(this,t)}else if(e.unfinished){var n=Zt,r=this._model,i=this._api;e.unfinished=!1;do{var a=+new Date;e.performSeriesTasks(r),e.performDataProcessorTasks(r),In(this,r),e.performVisualTasks(r),zn(this,this._model,i,"remain"),n-=+new Date-a}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.setOption=function(e,t,n){if(this._disposed)$n(this.id);else{var r,i,a;if(Wt(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[pn]=!0,!this._model||t){var o=new V(this._api),s=this._theme,l=this._model=new I;l.scheduler=this._scheduler,l.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},tr),Hn(this,a),n?(this[gn]={silent:r},this[pn]=!1,this.getZr().wakeUp()):(On(this),An.update.call(this),this._zr.flush(),this[gn]=!1,this[pn]=!1,Ln.call(this,r),Pn.call(this,r))}},t.prototype.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Yt&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){if(s["a"].canvasSupported){e=a["extend"]({},e||{}),e.pixelRatio=e.pixelRatio||this.getDevicePixelRatio(),e.backgroundColor=e.backgroundColor||this._model.get("backgroundColor");var t=this._zr;return t.painter.getRenderedCanvas(e)}},t.prototype.getSvgDataURL=function(){if(s["a"].svgSupported){var e=this._zr,t=e.storage.getDisplayList();return a["each"](t,(function(e){e.stopAnimation(null,!0)})),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){e=e||{};var t=e.excludeComponents,n=this._model,r=[],i=this;Ht(t,(function(e){n.eachComponent({mainType:e},(function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)}))}));var a="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return Ht(r,(function(e){e.group.ignore=!1})),a}$n(this.id)},t.prototype.getConnectedDataURL=function(e){if(this._disposed)$n(this.id);else if(s["a"].canvasSupported){var t="svg"===e.type,n=this.group,r=Math.min,o=Math.max,l=1/0;if(lr[n]){var u=l,c=l,h=-l,d=-l,f=[],p=e&&e.pixelRatio||this.getDevicePixelRatio();a["each"](sr,(function(i,s){if(i.group===n){var l=t?i.getZr().painter.getSvgDom().innerHTML:i.getRenderedCanvas(a["clone"](e)),p=i.getDom().getBoundingClientRect();u=r(p.left,u),c=r(p.top,c),h=o(p.right,h),d=o(p.bottom,d),f.push({dom:l,left:p.left,top:p.top})}})),u*=p,c*=p,h*=p,d*=p;var g=h-u,m=d-c,v=a["createCanvas"](),y=i["init"](v,{renderer:t?"svg":"canvas"});if(y.resize({width:g,height:m}),t){var b="";return Ht(f,(function(e){var t=e.left-u,n=e.top-c;b+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"})),y.painter.getSvgRoot().innerHTML=b,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}return e.connectedBackgroundColor&&y.add(new ve["a"]({shape:{x:0,y:0,width:g,height:m},style:{fill:e.connectedBackgroundColor}})),Ht(f,(function(e){var t=new ye["a"]({style:{x:e.left*p-u,y:e.top*p-c,image:e.dom}});y.add(t)})),y.refreshImmediately(),v.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}},t.prototype.convertToPixel=function(e,t){return Cn(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return Cn(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){if(!this._disposed){var n,r=this._model,i=c["s"](r,e);return a["each"](i,(function(e,r){r.indexOf("Models")>=0&&a["each"](e,(function(e){var i=e.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(t);else if("seriesModels"===r){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(n=n||a.containPoint(t,e))}else 0}),this)}),this),!!n}$n(this.id)},t.prototype.getVisual=function(e,t){var n=this._model,r=c["s"](n,e,{defaultMainType:"series"}),i=r.seriesModel;var a=i.getData(),o=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?a.indexOfRawIndex(r.dataIndex):null;return null!=o?Object(yt["a"])(a,o,t):Object(yt["b"])(a,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;Ht(Zn,(function(t){var n=function(n){var r,i=e.getModel(),o=n.target,s="globalout"===t;if(s?r={}:o&&Object(zt["a"])(o,(function(e){var t=Object(xe["a"])(e);if(t&&null!=t.dataIndex){var n=t.dataModel||i.getSeriesByIndex(t.seriesIndex);return r=n&&n.getDataParams(t.dataIndex,t.dataType)||{},!0}if(t.eventData)return r=a["extend"]({},t.eventData),!0}),!0),r){var l=r.componentType,u=r.componentIndex;"markLine"!==l&&"markPoint"!==l&&"markArea"!==l||(l="series",u=r.seriesIndex);var c=l&&null!=u&&i.getComponent(l,u),h=c&&e["series"===c.mainType?"_chartsMap":"_componentsMap"][c.__viewId];0,r.event=n,r.type=t,e._$eventProcessor.eventInfo={targetEl:o,packedEvent:r,model:c,view:h},e.trigger(t,r)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)})),Ht(Jn,(function(t,n){e._messageCenter.on(n,(function(e){this.trigger(n,e)}),e)})),Ht(["selectchanged"],(function(t){e._messageCenter.on(t,(function(e){this.trigger(t,e)}),e)})),Object(Nt["b"])(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?$n(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)$n(this.id);else{this._disposed=!0,c["v"](this.getDom(),hr,"");var e=this._api,t=this._model;Ht(this._componentsViews,(function(n){n.dispose(t,e)})),Ht(this._chartsViews,(function(n){n.dispose(t,e)})),this._zr.dispose(),delete sr[this.id]}},t.prototype.resize=function(e){if(this._disposed)$n(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),r=e&&e.silent;this[pn]=!0,n&&On(this),An.update.call(this,{type:"resize",animation:{duration:0}}),this[pn]=!1,Ln.call(this,r),Pn.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed)$n(this.id);else if(Wt(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),or[e]){var n=or[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){this._disposed?$n(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=a["extend"]({},e);return t.type=Jn[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)$n(this.id);else if(Wt(t)||(t={silent:!!t}),Qn[e.type]&&this._model)if(this[pn])this._pendingActions.push(e);else{var n=t.silent;Dn.call(this,e,n);var r=t.flush;r?this._zr.flush():!1!==r&&s["a"].browser.weChat&&this._throttledZrFlush(),Ln.call(this,n),Pn.call(this,n)}},t.prototype.updateLabelLayout=function(){var e=this._labelManager;e.updateLayoutConfig(this._api),e.layout(this._api),e.processLabelsOverall()},t.prototype.appendData=function(e){if(this._disposed)$n(this.id);else{var t=e.seriesIndex,n=this.getModel(),r=n.getSeriesByIndex(t);0,r.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];"emphasis"!==i&&"blur"!==i&&"select"!==i&&t.push(i)}e.selected&&e.states.select&&t.push("select"),e.hoverState===we["e"]&&e.states.emphasis?t.push("emphasis"):e.hoverState===we["d"]&&e.states.blur&&t.push("blur"),e.useStates(t)}function t(e,t){var n=e._zr,r=n.storage,i=0;r.traverse((function(e){e.isGroup||i++})),i>t.get("hoverLayerThreshold")&&!s["a"].node&&!s["a"].worker&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.group.traverse((function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)}))}}))}function n(e,t){var n=e.get("blendMode")||null;t.group.traverse((function(e){e.isGroup||(e.style.blend=n),e.eachPendingDisplayable&&e.eachPendingDisplayable((function(e){e.style.blend=n}))}))}function i(e,t){if(!e.preventAutoZ){var n=e.get("z"),r=e.get("zlevel");t.group.traverse((function(e){if(!e.isGroup){null!=n&&(e.z=n),null!=r&&(e.zlevel=r);var t=e.getTextContent(),i=e.getTextGuideLine();if(t&&(t.z=e.z,t.zlevel=e.zlevel,t.z2=e.z2+2),i){var a=e.textGuideLineConfig&&e.textGuideLineConfig.showAbove;i.z=e.z,i.zlevel=e.zlevel,i.z2=e.z2+(a?1:-1)}}}))}}function l(e,t){t.group.traverse((function(e){if(!be["isElementRemoved"](e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&(e.stateTransition=null),t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&(e.prevStates=null)}}))}function u(t,n){var r=t.getModel("stateAnimation"),i=t.isAnimationEnabled(),a=r.get("duration"),o=a>0?{duration:a,delay:r.get("delay"),easing:r.get("easing")}:null;n.group.traverse((function(t){if(t.states&&t.states.emphasis){if(be["isElementRemoved"](t))return;if(t instanceof _e["b"]&&Object(we["z"])(t),t.__dirty){var n=t.prevStates;n&&t.useStates(n)}if(i){t.stateTransition=o;var r=t.getTextContent(),a=t.getTextGuideLine();r&&(r.stateTransition=o),a&&(a.stateTransition=o)}t.__dirty&&e(t)}}))}On=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),Mn(e,!0),Mn(e,!1),t.plan()},Mn=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,l=0;l<i.length;l++)i[l].__alive=!1;function u(e){var l=e.__requireNewView;e.__requireNewView=!1;var u="_ec_"+e.id+"_"+e.type,c=!l&&a[u];if(!c){var h=Object(pt["f"])(e.type),d=t?ge["a"].getClass(h.main,h.sub):me["a"].getClass(h.sub);0,c=new d,c.init(n,s),a[u]=c,i.push(c),o.add(c.group)}e.__viewId=c.__id=u,c.__alive=!0,c.__model=e,c.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(c,e,n,s)}t?n.eachComponent((function(e,t){"series"!==e&&u(t)})):n.eachSeries(u);for(l=0;l<i.length;){var c=i[l];c.__alive?l++:(!t&&c.renderTask.dispose(),o.remove(c.group),c.dispose(n,s),i.splice(l,1),a[c.__id]===c&&delete a[c.__id],c.__id=c.group.__ecComponentInfo=null)}},En=function(e,t,n,r,i){var o=e._model;if(o.setUpdatePayload(n),r){var s={};s[r+"Id"]=n[r+"Id"],s[r+"Index"]=n[r+"Index"],s[r+"Name"]=n[r+"Name"];var l={mainType:r,query:s};i&&(l.subType=i);var u,h=n.excludeSeriesId;null!=h&&(u=a["createHashMap"](),Ht(c["r"](h),(function(e){var t=c["e"](e,null);null!=t&&u.set(t,!0)}))),o&&o.eachComponent(l,(function(t){u&&null!=u.get(t.id)||(Object(we["t"])(n)&&!n.notBlur?t instanceof pe["a"]&&Object(we["G"])(t,n,e._api):Object(we["u"])(n)&&t instanceof pe["a"]&&(Object(we["E"])(t,n,e._api),Object(we["H"])(t),Un(e)),d(e["series"===r?"_chartsMap":"_componentsMap"][t.__viewId]))}),e)}else Ht([].concat(e._componentsViews).concat(e._chartsViews),d);function d(r){r&&r.__alive&&r[t]&&r[t](r.__model,o,e._api,n)}},An={prepareAndUpdate:function(e){On(this),An.update.call(this,e)},update:function(e){var t=this._model,n=this._api,r=this._zr,i=this._coordSysMgr,a=this._scheduler;if(t){t.setUpdatePayload(e),a.restoreData(t,e),a.performSeriesTasks(t),i.create(t,n),a.performDataProcessorTasks(t,e),In(this,t),i.update(t,n),Nn(t),a.performVisualTasks(t,e),jn(this,t,n,e);var l=t.get("backgroundColor")||"transparent",u=t.get("darkMode");if(s["a"].canvasSupported)r.setBackgroundColor(l),null!=u&&"auto"!==u&&r.setDarkMode(u);else{var c=o["parse"](l);l=o["stringify"](c,"rgb"),0===c[3]&&(l="transparent")}Bn(t,n)}},updateTransform:function(e){var t=this,n=this._model,r=this._api;if(n){n.setUpdatePayload(e);var i=[];n.eachComponent((function(a,o){if("series"!==a){var s=t.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,n,r,e);l&&l.update&&i.push(s)}else i.push(s)}}));var o=a["createHashMap"]();n.eachSeries((function(i){var a=t._chartsMap[i.__viewId];if(a.updateTransform){var s=a.updateTransform(i,n,r,e);s&&s.update&&o.set(i.uid,1)}else o.set(i.uid,1)})),Nn(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0,dirtyMap:o}),zn(this,n,r,e,o),Bn(n,this._api)}},updateView:function(e){var t=this._model;t&&(t.setUpdatePayload(e),me["a"].markUpdateMethod(e,"updateView"),Nn(t),this._scheduler.performVisualTasks(t,e,{setDirty:!0}),jn(this,this._model,this._api,e),Bn(t,this._api))},updateVisual:function(e){var t=this,n=this._model;n&&(n.setUpdatePayload(e),n.eachSeries((function(e){e.getData().clearAllVisual()})),me["a"].markUpdateMethod(e,"updateVisual"),Nn(n),this._scheduler.performVisualTasks(n,e,{visualType:"visual",setDirty:!0}),n.eachComponent((function(r,i){if("series"!==r){var a=t.getViewOfComponentModel(i);a&&a.__alive&&a.updateVisual(i,n,t._api,e)}})),n.eachSeries((function(r){var i=t._chartsMap[r.__viewId];i.updateVisual(r,n,t._api,e)})),Bn(n,this._api))},updateLayout:function(e){An.update.call(this,e)}},Cn=function(e,t,n,r){if(e._disposed)$n(e.id);else{for(var i,a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s=c["s"](a,n),l=0;l<o.length;l++){var u=o[l];if(u[t]&&null!=(i=u[t](a,s,r)))return i}0}},In=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries((function(e){r.updateStreamModes(e,n[e.__viewId])}))},Dn=function(e,t){var n=this,r=this.getModel(),i=e.type,o=e.escapeConnect,s=Qn[i],l=s.actionInfo,u=(l.update||"update").split(":"),c=u.pop(),h=null!=u[0]&&Object(pt["f"])(u[0]);this[pn]=!0;var d=[e],f=!1;e.batch&&(f=!0,d=a["map"](e.batch,(function(t){return t=a["defaults"](a["extend"]({},t),e),t.batch=null,t})));var p,g=[],m=Object(we["u"])(e),v=Object(we["t"])(e)||m;if(Ht(d,(function(e){p=s.action(e,n._model,n._api),p=p||a["extend"]({},e),p.type=l.event||p.type,g.push(p),v?(En(n,c,e,"series"),Un(n)):h&&En(n,c,e,h.main,h.sub)})),"none"===c||v||h||(this[gn]?(On(this),An.update.call(this,e),this[gn]=!1):An[c].call(this,e)),p=f?{type:l.event||i,escapeConnect:o,batch:g}:g[0],this[pn]=!1,!t){var y=this._messageCenter;if(y.trigger(p.type,p),m){var b={type:"selectchanged",escapeConnect:o,selected:Object(we["q"])(r),isFromClick:e.isFromClick||!1,fromAction:e.type,fromActionPayload:e};y.trigger(b.type,b)}}},Ln=function(e){var t=this._pendingActions;while(t.length){var n=t.shift();Dn.call(this,n,e)}},Pn=function(e){!e&&this.trigger("updated")},kn=function(e,t){e.on("rendered",(function(n){t.trigger("rendered",n),!e.animation.isFinished()||t[gn]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")}))},Rn=function(e,t){e.on("mouseover",(function(e){var n=e.target,r=Object(zt["a"])(n,we["s"]);if(r){var i=Object(xe["a"])(r);Object(we["F"])(i.seriesIndex,i.focus,i.blurScope,t._api,!0),Object(we["o"])(r,e),Un(t)}})).on("mouseout",(function(e){var n=e.target,r=Object(zt["a"])(n,we["s"]);if(r){var i=Object(xe["a"])(r);Object(we["F"])(i.seriesIndex,i.focus,i.blurScope,t._api,!1),Object(we["x"])(r,e),Un(t)}})).on("click",(function(e){var n=e.target,r=Object(zt["a"])(n,(function(e){return null!=Object(xe["a"])(e).dataIndex}),!0);if(r){var i=r.selected?"unselect":"select",a=Object(xe["a"])(r);t._api.dispatchAction({type:i,dataType:a.dataType,dataIndexInside:a.dataIndex,seriesIndex:a.seriesIndex,isFromClick:!0})}}))},Nn=function(e){e.clearColorPalette(),e.eachSeries((function(e){e.clearColorPalette()}))},jn=function(e,t,n,r){Fn(e,t,n,r),Ht(e._chartsViews,(function(e){e.__alive=!1})),zn(e,t,n,r),Ht(e._chartsViews,(function(e){e.__alive||e.remove(t,n)}))},Fn=function(e,t,n,r,a){Ht(a||e._componentsViews,(function(e){var a=e.__model;l(a,e),e.render(a,t,n,r),i(a,e),u(a,e)}))},zn=function(e,r,a,o,s){var c=e._scheduler,h=e._labelManager;h.clearLabels();var d=!1;r.eachSeries((function(t){var r=e._chartsMap[t.__viewId];r.__alive=!0;var i=r.renderTask;c.updatePayload(i,o),l(t,r),s&&s.get(t.uid)&&i.dirty(),i.perform(c.getPerformArgs(i))&&(d=!0),t.__transientTransitionOpt=null,r.group.silent=!!t.get("silent"),n(t,r),Object(we["H"])(t),h.addLabelsOfSeries(r)})),c.unfinished=d||c.unfinished,h.updateLayoutConfig(a),h.layout(a),h.processLabelsOverall(),r.eachSeries((function(t){var n=e._chartsMap[t.__viewId];i(t,n),u(t,n)})),t(e,r)},Bn=function(e,t){Ht(rr,(function(n){n(e,t)}))},Un=function(e){e[mn]=!0,e.getZr().wakeUp()},Wn=function(t){t[mn]&&(t.getZr().storage.traverse((function(t){be["isElementRemoved"](t)||e(t)})),t[mn]=!1)},Vn=function(e){return new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(n,t),n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){while(t){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){Object(we["n"])(t,n),Un(e)},n.prototype.leaveEmphasis=function(t,n){Object(we["w"])(t,n),Un(e)},n.prototype.enterBlur=function(t){Object(we["m"])(t),Un(e)},n.prototype.leaveBlur=function(t){Object(we["v"])(t),Un(e)},n.prototype.enterSelect=function(t){Object(we["p"])(t),Un(e)},n.prototype.leaveSelect=function(t){Object(we["y"])(t),Un(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n}(P))(e)},Gn=function(e){function t(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[yn]=t}}Ht(Jn,(function(n,r){e._messageCenter.on(r,(function(n){if(lr[e.group]&&e[yn]!==bn){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];Ht(sr,(function(t){t!==e&&t.group===e.group&&i.push(t)})),t(i,bn),Ht(i,(function(e){e[yn]!==_n&&e.dispatchAction(r)})),t(i,xn)}}))}))},Hn=function(e,t){var n=e._model;a["each"](c["r"](t),(function(e){var t,r=e.from,i=e.to;null==i&&Object(Rt["b"])(t);var a={includeMainTypes:["series"],enableAll:!1,enableNone:!1},o=r?c["s"](n,r,a):null,s=c["s"](n,i,a),l=s.seriesModel;null==l&&(t=""),o&&o.seriesModel!==l&&(t=""),null!=t&&Object(Rt["b"])(t),l.__transientTransitionOpt={from:r?r.dimension:null,to:i.dimension,dividingMethod:e.dividingMethod}}))}}(),t}(u["a"]),qn=Kn.prototype;qn.on=wn("on"),qn.off=wn("off"),qn.one=function(e,t,n){var r=this;function i(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];t&&t.apply&&t.apply(this,n),r.off(e,i)}Object(Rt["a"])("ECharts#one is deprecated."),this.on.call(this,e,i,n)};var Zn=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function $n(e){0}var Qn={},Jn={},er=[],tr=[],nr=[],rr=[],ir=[],ar={},or={},sr={},lr={},ur=+new Date-0,cr=+new Date-0,hr="_echarts_instance_";function dr(e,t,n){var r=vr(e);if(r)return r;var i=new Kn(e,t,n);return i.id="ec_"+ur++,sr[i.id]=i,c["v"](e,hr,i.id),Gn(i),Ht(nr,(function(e){e(i)})),i}function fr(e){if(a["isArray"](e)){var t=e;e=null,Ht(t,(function(t){null!=t.group&&(e=t.group)})),e=e||"g_"+cr++,Ht(t,(function(t){t.group=e}))}return lr[e]=!0,e}function pr(e){lr[e]=!1}var gr=pr;function mr(e){"string"===typeof e?e=sr[e]:e instanceof Kn||(e=vr(e)),e instanceof Kn&&!e.isDisposed()&&e.dispose()}function vr(e){return sr[c["g"](e,hr)]}function yr(e){return sr[e]}function br(e,t){ar[e]=t}function _r(e){Xt(tr,e)<0&&tr.push(e)}function xr(e,t){Ir(er,e,t,en)}function wr(e){Xt(nr,e)<0&&e&&nr.push(e)}function Sr(e){Xt(rr,e)<0&&e&&rr.push(e)}function Tr(e,t,n){"function"===typeof t&&(n=t,t="");var r=Wt(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),t=e.event,Jn[t]||(Gt(vn.test(r)&&vn.test(t)),Qn[r]||(Qn[r]={action:n,actionInfo:e}),Jn[t]=r)}function Or(e,t){k["a"].register(e,t)}function Mr(e){var t=k["a"].get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function Er(e,t){Ir(ir,e,t,nn,"layout")}function Ar(e,t){Ir(ir,e,t,on,"visual")}var Cr=[];function Ir(e,t,n,r,i){if((Ut(t)||Wt(t))&&(n=t,t=r),!(Xt(Cr,n)>=0)){Cr.push(n);var a=it.wrapStageHandler(n,i);a.__prio=t,a.__raw=n,e.push(a)}}function Dr(e,t){or[e]=t}function Lr(e){a["$override"]("createCanvas",e)}function Pr(e,t,n){ft["a"].registerMap(e,t,n)}function kr(e){var t=ft["a"].retrieveMap(e);return t&&t[0]&&{geoJson:t[0].geoJSON,specialAreas:t[0].specialAreas}}var Rr=jt["b"];Ar(an,Le),Ar(ln,ke),Ar(ln,Re),Ar(an,mt),Ar(ln,vt),Ar(dn,Vt),_r(he),xr(Qt,de),Dr("default",Be),Tr({type:we["c"],event:we["c"],update:we["c"]},a["noop"]),Tr({type:we["b"],event:we["b"],update:we["b"]},a["noop"]),Tr({type:we["f"],event:we["f"],update:we["f"]},a["noop"]),Tr({type:we["i"],event:we["i"],update:we["i"]},a["noop"]),Tr({type:we["h"],event:we["h"],update:we["h"]},a["noop"]),br("light",ot),br("dark",dt);var Nr={}},"6Nbm":function(e,t,n){var r=n("7+LC"),i=/#|\.prototype\./,a=function(e,t){var n=s[o(e)];return n==u||n!=l&&("function"==typeof t?r(t):!!t)},o=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=a.data={},l=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},"6S0j":function(e,t,n){"use strict";function r(e){return null==e?0:e.length||1}function i(e){return e}var a=function(){function e(e,t,n,r,a,o){this._old=e,this._new=t,this._oldKeyGetter=n||i,this._newKeyGetter=r||i,this.context=a,this._diffModeMultiple="multiple"===o}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},i=new Array(e.length),a=new Array(t.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(t,n,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=i[o],l=n[s],u=r(l);if(u>1){var c=l.shift();1===l.length&&(n[s]=l[0]),this._update&&this._update(c,o)}else 1===u?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},i={},a=[],o=[];this._initIndexMap(e,n,a,"_oldKeyGetter"),this._initIndexMap(t,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],c=i[l],h=r(u),d=r(c);if(h>1&&1===d)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(1===h&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(1===h&&1===d)this._update&&this._update(c,u),i[l]=null;else if(h>1)for(var f=0;f<h;f++)this._remove&&this._remove(u[f]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var i=e[n],a=t[i],o=r(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else 1===o&&this._add&&this._add(a);t[i]=null}},e.prototype._initIndexMap=function(e,t,n,i){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[i](e[o],o);if(a||(n[o]=s),t){var l=t[s],u=r(l);0===u?(t[s]=o,a&&n.push(s)):1===u?t[s]=[l,o]:l.push(o)}}},e}();t["a"]=a},"6UgN":function(e,t,n){"use strict";n.r(t),n.d(t,"matchRoutes",(function(){return s})),n.d(t,"renderRoutes",(function(){return l}));var r=n("q5+0"),i=n("a1z2"),a=n("xwgP"),o=n.n(a);function s(e,t,n){return void 0===n&&(n=[]),e.some((function(e){var i=e.path?Object(r["i"])(t,e):n.length?n[n.length-1].match:r["e"].computeRootMatch(t);return i&&(n.push({route:e,match:i}),e.routes&&s(e.routes,t,n)),i})),n}function l(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),e?o.a.createElement(r["g"],n,e.map((function(e,n){return o.a.createElement(r["d"],{key:e.key||n,path:e.path,exact:e.exact,strict:e.strict,render:function(n){return e.render?e.render(Object(i["a"])({},n,{},t,{route:e})):o.a.createElement(e.component,Object(i["a"])({},n,t,{route:e}))}})}))):null}},"6mmk":function(e,t,n){"use strict";var r=n("HIsA"),i=n("4dbd"),a=n("PaPB"),o=n("2I03"),s=n("NVMI"),l=n("HKEF"),u=n("G70G"),c=n("HqdE"),h=n("/5yA"),d=c("splice"),f=h("splice",{ACCESSORS:!0,0:0,1:2}),p=Math.max,g=Math.min,m=9007199254740991,v="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!d||!f},{splice:function(e,t){var n,r,c,h,d,f,y=s(this),b=o(y.length),_=i(e,b),x=arguments.length;if(0===x?n=r=0:1===x?(n=0,r=b-_):(n=x-2,r=g(p(a(t),0),b-_)),b+n-r>m)throw TypeError(v);for(c=l(y,r),h=0;h<r;h++)d=_+h,d in y&&u(c,h,y[d]);if(c.length=r,n<r){for(h=_;h<b-r;h++)d=h+r,f=h+n,d in y?y[f]=y[d]:delete y[f];for(h=b;h>b-r+n;h--)delete y[h-1]}else if(n>r)for(h=b-r;h>_;h--)d=h+r-1,f=h+n-1,d in y?y[f]=y[d]:delete y[f];for(h=0;h<n;h++)y[h+_]=arguments[h+2];return y.length=b-r+n,c}})},"6tTE":function(e,t,n){var r=n("+qhb"),i=n("2hCa"),a=n("Ra/9").indexOf,o=n("1agv");e.exports=function(e,t){var n,s=i(e),l=0,u=[];for(n in s)!r(o,n)&&r(s,n)&&u.push(n);while(t.length>l)r(s,n=t[l++])&&(~a(u,n)||u.push(n));return u}},"7+LC":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"7/qK":function(e,t,n){"use strict";function r(){var e=s(n("xwgP"));return r=function(){return e},e}function i(){var e=a(n("rXtS"));return i=function(){return e},e}function a(e){return e&&e.__esModule?e:{default:e}}function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function s(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n["default"]=e,t&&t.set(e,n),n}function l(e,t){return f(e)||d(e,t)||c(e,t)||u()}function u(){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 c(e,t){if(e){if("string"===typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(n.push(o.value),t&&n.length===t)break}catch(l){i=!0,a=l}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw a}}return n}}function f(e){if(Array.isArray(e))return e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var p=function(){var e=(0,r().useState)(),t=l(e,2),n=t[0],a=t[1],o=(0,r().useState)("ready"),s=l(o,2),u=s[0],c=s[1],h=(0,r().useCallback)((function(e){(0,i()["default"])(e),c("copied"),clearTimeout(n),a(setTimeout((function(){c("ready")}),2e3))}),[]);return[h,u]};t["default"]=p},"70zE":function(e,t,n){var r=n("hXyk"),i=n("DDwO"),a=n("kPvK"),o=a("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||void 0==(n=r(a)[o])?t:i(n)}},"72Hr":function(e,t,n){"use strict";var r=n("qesp");function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},"73Ew":function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,a=i&&!r.call({1:2},1);t.f=a?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},"7GOV":function(e,t,n){"use strict";n.r(t);var r=n("ob7Q"),i=n("xwgP"),a=n.n(i),o=n("kvV8"),s=n("9kvl"),l=(n("dao+"),e=>{var t=e.location,n=Object(i["useContext"])(o["context"]),r=n.base,l=n.locale,u=n.config.locales,c=u.find((e=>{var t=e.name;return t!==l}));function h(e){var n=r.replace("/".concat(l),""),i=t.pathname.replace(r,n)||"/";if(e!==u[0].name){var a="".concat(n,"/").concat(e).replace(/\/\//,"/"),o=t.pathname.replace(r.replace(/^\/$/,"//"),"");return"".concat(a).concat(o).replace(/\/$/,"")}return i}return c?a.a.createElement("div",{className:"__dumi-default-locale-select","data-locale-count":u.length},u.length>2?a.a.createElement("select",{value:l,onChange:e=>s["a"].push(h(e.target.value))},u.map((e=>a.a.createElement("option",{value:e.name,key:e.name},e.label)))):a.a.createElement(o["Link"],{to:h(c.name)},c.label)):null}),u=l,c=(n("CE66"),e=>{var t=e.onMobileMenuClick,n=e.navPrefix,r=e.location,s=Object(i["useContext"])(o["context"]),l=s.base,c=s.config,h=c.mode,d=c.title,f=c.logo,p=s.nav;return a.a.createElement("div",{className:"__dumi-default-navbar","data-mode":h},a.a.createElement("button",{className:"__dumi-default-navbar-toggle",onClick:t}),a.a.createElement(o["Link"],{className:"__dumi-default-navbar-logo",style:{backgroundImage:f&&"url('".concat(f,"')")},to:l,"data-plaintext":!1===f||void 0},d),a.a.createElement("nav",null,n,p.map((e=>{var t,n=Boolean(null===(t=e.children)||void 0===t?void 0:t.length)&&a.a.createElement("ul",null,e.children.map((e=>a.a.createElement("li",{key:e.path},a.a.createElement(o["NavLink"],{to:e.path},e.title)))));return a.a.createElement("span",{key:e.title||e.path},e.path?a.a.createElement(o["NavLink"],{to:e.path,key:e.path},e.title):e.title,n)})),a.a.createElement(u,{location:r})))}),h=c,d=n("a1z2"),f=n("gDF8"),p=(n("UyjF"),e=>{var t=e.slugs,n=Object(f["a"])(e,["slugs"]);return a.a.createElement("ul",Object(d["a"])({role:"slug-list"},n),t.filter((e=>{var t=e.depth;return t>1&&t<4})).map((e=>a.a.createElement("li",{key:e.heading,title:e.value,"data-depth":e.depth},a.a.createElement(o["AnchorLink"],{to:"#".concat(e.heading)},a.a.createElement("span",null,e.value))))))}),g=p,m=(n("WZyy"),e=>{var t=e.mobileMenuCollapsed,n=e.location,r=Object(i["useContext"])(o["context"]),s=r.config,l=s.logo,c=s.title,h=s.description,d=s.mode,f=s.repository.url,p=r.menu,m=r.nav,v=r.base,y=r.meta,b=Boolean((y.hero||y.features||y.gapless)&&"site"===d)||!1===y.sidemenu||void 0;return a.a.createElement("div",{className:"__dumi-default-menu","data-mode":d,"data-hidden":b,"data-mobile-show":!t||void 0},a.a.createElement("div",{className:"__dumi-default-menu-inner"},a.a.createElement("div",{className:"__dumi-default-menu-header"},a.a.createElement(o["Link"],{to:v,className:"__dumi-default-menu-logo",style:{backgroundImage:l&&"url('".concat(l,"')")}}),a.a.createElement("h1",null,c),a.a.createElement("p",null,h),/github\.com/.test(f)&&"doc"===d&&a.a.createElement("p",null,a.a.createElement("object",{type:"image/svg+xml",data:"https://img.shields.io/github/stars".concat(f.match(/((\/[^\/]+){2})$/)[1],"?style=social")}))),m.length?a.a.createElement("div",{className:"__dumi-default-menu-mobile-area"},a.a.createElement("ul",{className:"__dumi-default-menu-nav-list"},m.map((e=>{var t,n=Boolean(null===(t=e.children)||void 0===t?void 0:t.length)&&a.a.createElement("ul",null,e.children.map((e=>a.a.createElement("li",{key:e.path||e.title},a.a.createElement(o["NavLink"],{to:e.path},e.title)))));return a.a.createElement("li",{key:e.path||e.title},e.path?a.a.createElement(o["NavLink"],{to:e.path},e.title):e.title,n)}))),a.a.createElement(u,{location:n})):a.a.createElement("div",{className:"__dumi-default-menu-doc-locale"},a.a.createElement(u,{location:n})),a.a.createElement("ul",{className:"__dumi-default-menu-list"},!b&&p.map((e=>{var t,r=Boolean(null===(t=y.slugs)||void 0===t?void 0:t.length),i=e.children&&Boolean(e.children.length),s="menu"===y.toc&&!i&&r&&e.path===n.pathname;return a.a.createElement("li",{key:e.path||e.title},a.a.createElement(o["NavLink"],{to:e.path,exact:!(e.children&&e.children.length)},e.title),Boolean(e.children&&e.children.length)&&a.a.createElement("ul",null,e.children.map((e=>a.a.createElement("li",{key:e.path},a.a.createElement(o["NavLink"],{to:e.path,exact:!0},a.a.createElement("span",null,e.title)),Boolean("menu"===y.toc&&"undefined"!==typeof window&&e.path===n.pathname&&r)&&a.a.createElement(g,{slugs:y.slugs}))))),s&&a.a.createElement(g,{slugs:y.slugs}))})))))}),v=m,y=(n("HVuH"),()=>{var e=Object(i["useState"])(""),t=Object(r["default"])(e,2),n=t[0],s=t[1],l=Object(i["useState"])([]),u=Object(r["default"])(l,2),c=u[0],h=u[1],f=Object(i["useRef"])(),p=Object(o["useSearch"])(n);return Object(i["useEffect"])((()=>{Array.isArray(p)?h(p):"function"===typeof p&&p(".".concat(f.current.className))}),[p]),a.a.createElement("div",{className:"__dumi-default-search"},a.a.createElement("input",Object(d["a"])({className:"__dumi-default-search-input",type:"search",ref:f},Array.isArray(p)?{value:n,onChange:e=>s(e.target.value)}:{})),a.a.createElement("ul",null,c.map((e=>{var t;return a.a.createElement("li",{key:e.path,onClick:()=>s("")},a.a.createElement(o["AnchorLink"],{to:e.path},(null===(t=e.parent)||void 0===t?void 0:t.title)&&a.a.createElement("span",null,e.parent.title),e.title))}))))}),b=(n("Wovb"),e=>a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"__dumi-default-layout-hero"},e.image&&a.a.createElement("img",{src:e.image}),a.a.createElement("h1",null,e.title),a.a.createElement("div",{dangerouslySetInnerHTML:{__html:e.desc}}),e.actions&&e.actions.map((e=>a.a.createElement(o["Link"],{to:e.link,key:e.text},a.a.createElement("button",{type:"button"},e.text))))))),_=e=>a.a.createElement("div",{className:"__dumi-default-layout-features"},e.map((e=>a.a.createElement("dl",{key:e.title,style:{backgroundImage:e.icon?"url(".concat(e.icon,")"):void 0}},e.link?a.a.createElement(o["Link"],{to:e.link},a.a.createElement("dt",null,e.title)):a.a.createElement("dt",null,e.title),a.a.createElement("dd",{dangerouslySetInnerHTML:{__html:e.desc}}))))),x=e=>{var t,n,s=e.children,l=e.location,u=Object(i["useContext"])(o["context"]),c=u.config,d=c.mode,f=c.repository,p=u.meta,m=u.locale,x=f.url,w=f.branch,S=f.platform,T=Object(i["useState"])(!0),O=Object(r["default"])(T,2),M=O[0],E=O[1],A="site"===d,C=A&&p.hero,I=A&&p.features,D=!1!==p.sidemenu&&!C&&!I&&!p.gapless,L=!C&&!I&&Boolean(null===(t=p.slugs)||void 0===t?void 0:t.length)&&("content"===p.toc||void 0===p.toc)&&!p.gapless,P=/^zh|cn$/i.test(m),k=new Date(p.updatedTime),R="".concat(k.toLocaleDateString([],{hour12:!1})," ").concat(k.toLocaleTimeString([],{hour12:!1})),N={github:"GitHub",gitlab:"GitLab"}[(null===(n=(x||"").match(/(github|gitlab)/))||void 0===n?void 0:n[1])||"nothing"]||S;return a.a.createElement("div",{className:"__dumi-default-layout","data-route":l.pathname,"data-show-sidemenu":String(D),"data-show-slugs":String(L),"data-site-mode":A,"data-gapless":String(!!p.gapless),onClick:()=>{M||E(!0)}},a.a.createElement(h,{location:l,navPrefix:a.a.createElement(y,null),onMobileMenuClick:e=>{E((e=>!e)),e.stopPropagation()}}),a.a.createElement(v,{mobileMenuCollapsed:M,location:l}),L&&a.a.createElement(g,{slugs:p.slugs,className:"__dumi-default-layout-toc"}),C&&b(p.hero),I&&_(p.features),a.a.createElement("div",{className:"__dumi-default-layout-content"},s,!C&&!I&&p.filePath&&!p.gapless&&a.a.createElement("div",{className:"__dumi-default-layout-footer-meta"},N&&a.a.createElement(o["Link"],{to:"".concat(x,"/edit/").concat(w,"/").concat(p.filePath)},P?"\u5728 ".concat(N," \u4e0a\u7f16\u8f91\u6b64\u9875"):"Edit this doc on ".concat(N)),a.a.createElement("span",{"data-updated-text":P?"\u6700\u540e\u66f4\u65b0\u65f6\u95f4\uff1a":"Last update: "},R)),(C||I)&&p.footer&&a.a.createElement("div",{className:"__dumi-default-layout-footer",dangerouslySetInnerHTML:{__html:p.footer}})))};t["default"]=x},"7Kf9":function(e,t,n){"use strict";var r=n("HIsA"),i=n("m52V"),a=n("hXyk"),o=n("DDwO"),s=n("Ji6T");r({target:"Set",proto:!0,real:!0,forced:i},{isSupersetOf:function(e){var t=a(this),n=o(t.has);return!s(e,(function(e){if(!1===n.call(t,e))return s.stop()})).stopped}})},"7LRl":function(e,t,n){"use strict";var r=n("HIsA"),i=n("Ra/9").indexOf,a=n("1+Eb"),o=n("/5yA"),s=[].indexOf,l=!!s&&1/[1].indexOf(1,-0)<0,u=a("indexOf"),c=o("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:l||!u||!c},{indexOf:function(e){return l?s.apply(this,arguments)||0:i(this,e,arguments.length>1?arguments[1]:void 0)}})},"7Q2v":function(e,t,n){"use strict";var r,i,a,o,s=n("HIsA"),l=n("m52V"),u=n("2JD6"),c=n("bXon"),h=n("keKz"),d=n("GUTS"),f=n("masK"),p=n("J7X1"),g=n("QD/U"),m=n("pxmn"),v=n("DDwO"),y=n("xOST"),b=n("IRht"),_=n("ECWN"),x=n("Ji6T"),w=n("9HG5"),S=n("70zE"),T=n("vYQ8").set,O=n("I67C"),M=n("n+WB"),E=n("liI8"),A=n("0MLT"),C=n("uCRN"),I=n("twJ5"),D=n("6Nbm"),L=n("kPvK"),P=n("9ZTU"),k=L("species"),R="Promise",N=I.get,j=I.set,F=I.getterFor(R),z=h,B=u.TypeError,V=u.document,G=u.process,H=c("fetch"),U=A.f,W=U,X="process"==b(G),Y=!!(V&&V.createEvent&&u.dispatchEvent),K="unhandledrejection",q="rejectionhandled",Z=0,$=1,Q=2,J=1,ee=2,te=D(R,(function(){var e=_(z)!==String(z);if(!e){if(66===P)return!0;if(!X&&"function"!=typeof PromiseRejectionEvent)return!0}if(l&&!z.prototype["finally"])return!0;if(P>=51&&/native code/.test(z))return!1;var t=z.resolve(1),n=function(e){e((function(){}),(function(){}))},r=t.constructor={};return r[k]=n,!(t.then((function(){}))instanceof n)})),ne=te||!w((function(e){z.all(e)["catch"]((function(){}))})),re=function(e){var t;return!(!m(e)||"function"!=typeof(t=e.then))&&t},ie=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;O((function(){var i=t.value,a=t.state==$,o=0;while(r.length>o){var s,l,u,c=r[o++],h=a?c.ok:c.fail,d=c.resolve,f=c.reject,p=c.domain;try{h?(a||(t.rejection===ee&&le(e,t),t.rejection=J),!0===h?s=i:(p&&p.enter(),s=h(i),p&&(p.exit(),u=!0)),s===c.promise?f(B("Promise-chain cycle")):(l=re(s))?l.call(s,d,f):d(s)):f(i)}catch(g){p&&!u&&p.exit(),f(g)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&oe(e,t)}))}},ae=function(e,t,n){var r,i;Y?(r=V.createEvent("Event"),r.promise=t,r.reason=n,r.initEvent(e,!1,!0),u.dispatchEvent(r)):r={promise:t,reason:n},(i=u["on"+e])?i(r):e===K&&E("Unhandled promise rejection",n)},oe=function(e,t){T.call(u,(function(){var n,r=t.value,i=se(t);if(i&&(n=C((function(){X?G.emit("unhandledRejection",r,e):ae(K,e,r)})),t.rejection=X||se(t)?ee:J,n.error))throw n.value}))},se=function(e){return e.rejection!==J&&!e.parent},le=function(e,t){T.call(u,(function(){X?G.emit("rejectionHandled",e):ae(q,e,t.value)}))},ue=function(e,t,n,r){return function(i){e(t,n,i,r)}},ce=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=Q,ie(e,t,!0))},he=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw B("Promise can't be resolved itself");var i=re(n);i?O((function(){var r={done:!1};try{i.call(n,ue(he,e,r,t),ue(ce,e,r,t))}catch(a){ce(e,r,a,t)}})):(t.value=n,t.state=$,ie(e,t,!1))}catch(a){ce(e,{done:!1},a,t)}}};te&&(z=function(e){y(this,z,R),v(e),r.call(this);var t=N(this);try{e(ue(he,this,t),ue(ce,this,t))}catch(n){ce(this,t,n)}},r=function(e){j(this,{type:R,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:Z,value:void 0})},r.prototype=f(z.prototype,{then:function(e,t){var n=F(this),r=U(S(this,z));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=X?G.domain:void 0,n.parent=!0,n.reactions.push(r),n.state!=Z&&ie(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r,t=N(e);this.promise=e,this.resolve=ue(he,e,t),this.reject=ue(ce,e,t)},A.f=U=function(e){return e===z||e===a?new i(e):W(e)},l||"function"!=typeof h||(o=h.prototype.then,d(h.prototype,"then",(function(e,t){var n=this;return new z((function(e,t){o.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof H&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return M(z,H.apply(u,arguments))}}))),s({global:!0,wrap:!0,forced:te},{Promise:z}),p(z,R,!1,!0),g(R),a=c(R),s({target:R,stat:!0,forced:te},{reject:function(e){var t=U(this);return t.reject.call(void 0,e),t.promise}}),s({target:R,stat:!0,forced:l||te},{resolve:function(e){return M(l&&this===a?z:this,e)}}),s({target:R,stat:!0,forced:ne},{all:function(e){var t=this,n=U(t),r=n.resolve,i=n.reject,a=C((function(){var n=v(t.resolve),a=[],o=0,s=1;x(e,(function(e){var l=o++,u=!1;a.push(void 0),s++,n.call(t,e).then((function(e){u||(u=!0,a[l]=e,--s||r(a))}),i)})),--s||r(a)}));return a.error&&i(a.value),n.promise},race:function(e){var t=this,n=U(t),r=n.reject,i=C((function(){var i=v(t.resolve);x(e,(function(e){i.call(t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},"7QR1":function(e,t,n){var r,i=function(){var e=String.fromCharCode,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",r={};function i(e,t){if(!r[e]){r[e]={};for(var n=0;n<e.length;n++)r[e][e.charAt(n)]=n}return r[e][t]}var a={compressToBase64:function(e){if(null==e)return"";var n=a._compress(e,6,(function(e){return t.charAt(e)}));switch(n.length%4){default:case 0:return n;case 1:return n+"===";case 2:return n+"==";case 3:return n+"="}},decompressFromBase64:function(e){return null==e?"":""==e?null:a._decompress(e.length,32,(function(n){return i(t,e.charAt(n))}))},compressToUTF16:function(t){return null==t?"":a._compress(t,15,(function(t){return e(t+32)}))+" "},decompressFromUTF16:function(e){return null==e?"":""==e?null:a._decompress(e.length,16384,(function(t){return e.charCodeAt(t)-32}))},compressToUint8Array:function(e){for(var t=a.compress(e),n=new Uint8Array(2*t.length),r=0,i=t.length;r<i;r++){var o=t.charCodeAt(r);n[2*r]=o>>>8,n[2*r+1]=o%256}return n},decompressFromUint8Array:function(t){if(null===t||void 0===t)return a.decompress(t);for(var n=new Array(t.length/2),r=0,i=n.length;r<i;r++)n[r]=256*t[2*r]+t[2*r+1];var o=[];return n.forEach((function(t){o.push(e(t))})),a.decompress(o.join(""))},compressToEncodedURIComponent:function(e){return null==e?"":a._compress(e,6,(function(e){return n.charAt(e)}))},decompressFromEncodedURIComponent:function(e){return null==e?"":""==e?null:(e=e.replace(/ /g,"+"),a._decompress(e.length,32,(function(t){return i(n,e.charAt(t))})))},compress:function(t){return a._compress(t,16,(function(t){return e(t)}))},_compress:function(e,t,n){if(null==e)return"";var r,i,a,o={},s={},l="",u="",c="",h=2,d=3,f=2,p=[],g=0,m=0;for(a=0;a<e.length;a+=1)if(l=e.charAt(a),Object.prototype.hasOwnProperty.call(o,l)||(o[l]=d++,s[l]=!0),u=c+l,Object.prototype.hasOwnProperty.call(o,u))c=u;else{if(Object.prototype.hasOwnProperty.call(s,c)){if(c.charCodeAt(0)<256){for(r=0;r<f;r++)g<<=1,m==t-1?(m=0,p.push(n(g)),g=0):m++;for(i=c.charCodeAt(0),r=0;r<8;r++)g=g<<1|1&i,m==t-1?(m=0,p.push(n(g)),g=0):m++,i>>=1}else{for(i=1,r=0;r<f;r++)g=g<<1|i,m==t-1?(m=0,p.push(n(g)),g=0):m++,i=0;for(i=c.charCodeAt(0),r=0;r<16;r++)g=g<<1|1&i,m==t-1?(m=0,p.push(n(g)),g=0):m++,i>>=1}h--,0==h&&(h=Math.pow(2,f),f++),delete s[c]}else for(i=o[c],r=0;r<f;r++)g=g<<1|1&i,m==t-1?(m=0,p.push(n(g)),g=0):m++,i>>=1;h--,0==h&&(h=Math.pow(2,f),f++),o[u]=d++,c=String(l)}if(""!==c){if(Object.prototype.hasOwnProperty.call(s,c)){if(c.charCodeAt(0)<256){for(r=0;r<f;r++)g<<=1,m==t-1?(m=0,p.push(n(g)),g=0):m++;for(i=c.charCodeAt(0),r=0;r<8;r++)g=g<<1|1&i,m==t-1?(m=0,p.push(n(g)),g=0):m++,i>>=1}else{for(i=1,r=0;r<f;r++)g=g<<1|i,m==t-1?(m=0,p.push(n(g)),g=0):m++,i=0;for(i=c.charCodeAt(0),r=0;r<16;r++)g=g<<1|1&i,m==t-1?(m=0,p.push(n(g)),g=0):m++,i>>=1}h--,0==h&&(h=Math.pow(2,f),f++),delete s[c]}else for(i=o[c],r=0;r<f;r++)g=g<<1|1&i,m==t-1?(m=0,p.push(n(g)),g=0):m++,i>>=1;h--,0==h&&(h=Math.pow(2,f),f++)}for(i=2,r=0;r<f;r++)g=g<<1|1&i,m==t-1?(m=0,p.push(n(g)),g=0):m++,i>>=1;while(1){if(g<<=1,m==t-1){p.push(n(g));break}m++}return p.join("")},decompress:function(e){return null==e?"":""==e?null:a._decompress(e.length,32768,(function(t){return e.charCodeAt(t)}))},_decompress:function(t,n,r){var i,a,o,s,l,u,c,h=[],d=4,f=4,p=3,g="",m=[],v={val:r(0),position:n,index:1};for(i=0;i<3;i+=1)h[i]=i;o=0,l=Math.pow(2,2),u=1;while(u!=l)s=v.val&v.position,v.position>>=1,0==v.position&&(v.position=n,v.val=r(v.index++)),o|=(s>0?1:0)*u,u<<=1;switch(o){case 0:o=0,l=Math.pow(2,8),u=1;while(u!=l)s=v.val&v.position,v.position>>=1,0==v.position&&(v.position=n,v.val=r(v.index++)),o|=(s>0?1:0)*u,u<<=1;c=e(o);break;case 1:o=0,l=Math.pow(2,16),u=1;while(u!=l)s=v.val&v.position,v.position>>=1,0==v.position&&(v.position=n,v.val=r(v.index++)),o|=(s>0?1:0)*u,u<<=1;c=e(o);break;case 2:return""}h[3]=c,a=c,m.push(c);while(1){if(v.index>t)return"";o=0,l=Math.pow(2,p),u=1;while(u!=l)s=v.val&v.position,v.position>>=1,0==v.position&&(v.position=n,v.val=r(v.index++)),o|=(s>0?1:0)*u,u<<=1;switch(c=o){case 0:o=0,l=Math.pow(2,8),u=1;while(u!=l)s=v.val&v.position,v.position>>=1,0==v.position&&(v.position=n,v.val=r(v.index++)),o|=(s>0?1:0)*u,u<<=1;h[f++]=e(o),c=f-1,d--;break;case 1:o=0,l=Math.pow(2,16),u=1;while(u!=l)s=v.val&v.position,v.position>>=1,0==v.position&&(v.position=n,v.val=r(v.index++)),o|=(s>0?1:0)*u,u<<=1;h[f++]=e(o),c=f-1,d--;break;case 2:return m.join("")}if(0==d&&(d=Math.pow(2,p),p++),h[c])g=h[c];else{if(c!==f)return null;g=a+a.charAt(0)}m.push(g),h[f++]=a+g.charAt(0),d--,a=g,0==d&&(d=Math.pow(2,p),p++)}}};return a}();r=function(){return i}.call(t,n,t,e),void 0===r||(e.exports=r)},"7SXh":function(e,t,n){"use strict";var r=n("hXyk"),i=n("DDwO");e.exports=function(){for(var e=r(this),t=i(e.add),n=0,a=arguments.length;n<a;n++)t.call(e,arguments[n]);return e}},"7saB":function(e,t,n){var r=n("7+LC");e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},"892e":function(e,t,n){"use strict";var r=n("HIsA"),i=n("2JD6"),a=n("bXon"),o=n("m52V"),s=n("Hiyu"),l=n("xUti"),u=n("dMsU"),c=n("7+LC"),h=n("+qhb"),d=n("dOdC"),f=n("pxmn"),p=n("hXyk"),g=n("NVMI"),m=n("2hCa"),v=n("n2ef"),y=n("OLna"),b=n("bWCM"),_=n("y6vz"),x=n("szjD"),w=n("wFHg"),S=n("CmBG"),T=n("qmtO"),O=n("2RC6"),M=n("73Ew"),E=n("D8FR"),A=n("GUTS"),C=n("bShA"),I=n("fbKl"),D=n("1agv"),L=n("fotI"),P=n("kPvK"),k=n("Q1Da"),R=n("bVFb"),N=n("J7X1"),j=n("twJ5"),F=n("Xf1w").forEach,z=I("hidden"),B="Symbol",V="prototype",G=P("toPrimitive"),H=j.set,U=j.getterFor(B),W=Object[V],X=i.Symbol,Y=a("JSON","stringify"),K=T.f,q=O.f,Z=w.f,$=M.f,Q=C("symbols"),J=C("op-symbols"),ee=C("string-to-symbol-registry"),te=C("symbol-to-string-registry"),ne=C("wks"),re=i.QObject,ie=!re||!re[V]||!re[V].findChild,ae=s&&c((function(){return 7!=b(q({},"a",{get:function(){return q(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=K(W,t);r&&delete W[t],q(e,t,n),r&&e!==W&&q(W,t,r)}:q,oe=function(e,t){var n=Q[e]=b(X[V]);return H(n,{type:B,tag:e,description:t}),s||(n.description=t),n},se=u?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof X},le=function(e,t,n){e===W&&le(J,t,n),p(e);var r=v(t,!0);return p(n),h(Q,r)?(n.enumerable?(h(e,z)&&e[z][r]&&(e[z][r]=!1),n=b(n,{enumerable:y(0,!1)})):(h(e,z)||q(e,z,y(1,{})),e[z][r]=!0),ae(e,r,n)):q(e,r,n)},ue=function(e,t){p(e);var n=m(t),r=_(n).concat(pe(n));return F(r,(function(t){s&&!he.call(n,t)||le(e,t,n[t])})),e},ce=function(e,t){return void 0===t?b(e):ue(b(e),t)},he=function(e){var t=v(e,!0),n=$.call(this,t);return!(this===W&&h(Q,t)&&!h(J,t))&&(!(n||!h(this,t)||!h(Q,t)||h(this,z)&&this[z][t])||n)},de=function(e,t){var n=m(e),r=v(t,!0);if(n!==W||!h(Q,r)||h(J,r)){var i=K(n,r);return!i||!h(Q,r)||h(n,z)&&n[z][r]||(i.enumerable=!0),i}},fe=function(e){var t=Z(m(e)),n=[];return F(t,(function(e){h(Q,e)||h(D,e)||n.push(e)})),n},pe=function(e){var t=e===W,n=Z(t?J:m(e)),r=[];return F(n,(function(e){!h(Q,e)||t&&!h(W,e)||r.push(Q[e])})),r};if(l||(X=function(){if(this instanceof X)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=L(e),n=function(e){this===W&&n.call(J,e),h(this,z)&&h(this[z],t)&&(this[z][t]=!1),ae(this,t,y(1,e))};return s&&ie&&ae(W,t,{configurable:!0,set:n}),oe(t,e)},A(X[V],"toString",(function(){return U(this).tag})),A(X,"withoutSetter",(function(e){return oe(L(e),e)})),M.f=he,O.f=le,T.f=de,x.f=w.f=fe,S.f=pe,k.f=function(e){return oe(P(e),e)},s&&(q(X[V],"description",{configurable:!0,get:function(){return U(this).description}}),o||A(W,"propertyIsEnumerable",he,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:X}),F(_(ne),(function(e){R(e)})),r({target:B,stat:!0,forced:!l},{for:function(e){var t=String(e);if(h(ee,t))return ee[t];var n=X(t);return ee[t]=n,te[n]=t,n},keyFor:function(e){if(!se(e))throw TypeError(e+" is not a symbol");if(h(te,e))return te[e]},useSetter:function(){ie=!0},useSimple:function(){ie=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!s},{create:ce,defineProperty:le,defineProperties:ue,getOwnPropertyDescriptor:de}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:fe,getOwnPropertySymbols:pe}),r({target:"Object",stat:!0,forced:c((function(){S.f(1)}))},{getOwnPropertySymbols:function(e){return S.f(g(e))}}),Y){var ge=!l||c((function(){var e=X();return"[null]"!=Y([e])||"{}"!=Y({a:e})||"{}"!=Y(Object(e))}));r({target:"JSON",stat:!0,forced:ge},{stringify:function(e,t,n){var r,i=[e],a=1;while(arguments.length>a)i.push(arguments[a++]);if(r=t,(f(t)||void 0!==e)&&!se(e))return d(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!se(t))return t}),i[1]=t,Y.apply(null,i)}})}X[V][G]||E(X[V],G,X[V].valueOf),N(X,B),D[z]=!0},"8CG2":function(e,t){e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<a.length;l++){var u=a[l];if(!s(u))return!1;var c=e[u],h=t[u];if(i=n?n.call(r,c,h,u):void 0,!1===i||void 0===i&&c!==h)return!1}return!0}},"8Jzd":function(e,t,n){var r=n("HIsA"),i=n("2Pxf");r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},"8Mh8":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n("ekZt"),i=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],a=Object(r["a"])(i),o=function(){function e(){}return e.prototype.getLineStyle=function(e){return a(this,e)},e}()},"8XEw":function(e,t,n){"use strict";var r=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}();t["a"]=r},"8al2":function(e,t,n){"use strict";n("lttk");var r,i=n("HIsA"),a=n("Hiyu"),o=n("nXFK"),s=n("2JD6"),l=n("2+gS"),u=n("GUTS"),c=n("xOST"),h=n("+qhb"),d=n("2Pxf"),f=n("5isN"),p=n("9izy").codeAt,g=n("2BKa"),m=n("J7X1"),v=n("w3Dd"),y=n("twJ5"),b=s.URL,_=v.URLSearchParams,x=v.getState,w=y.set,S=y.getterFor("URL"),T=Math.floor,O=Math.pow,M="Invalid authority",E="Invalid scheme",A="Invalid host",C="Invalid port",I=/[A-Za-z]/,D=/[\d+-.A-Za-z]/,L=/\d/,P=/^(0x|0X)/,k=/^[0-7]+$/,R=/^\d+$/,N=/^[\dA-Fa-f]+$/,j=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,F=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,z=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,B=/[\u0009\u000A\u000D]/g,V=function(e,t){var n,r,i;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return A;if(n=H(t.slice(1,-1)),!n)return A;e.host=n}else if(Q(e)){if(t=g(t),j.test(t))return A;if(n=G(t),null===n)return A;e.host=n}else{if(F.test(t))return A;for(n="",r=f(t),i=0;i<r.length;i++)n+=Z(r[i],X);e.host=n}},G=function(e){var t,n,r,i,a,o,s,l=e.split(".");if(l.length&&""==l[l.length-1]&&l.pop(),t=l.length,t>4)return e;for(n=[],r=0;r<t;r++){if(i=l[r],""==i)return e;if(a=10,i.length>1&&"0"==i.charAt(0)&&(a=P.test(i)?16:8,i=i.slice(8==a?1:2)),""===i)o=0;else{if(!(10==a?R:8==a?k:N).test(i))return e;o=parseInt(i,a)}n.push(o)}for(r=0;r<t;r++)if(o=n[r],r==t-1){if(o>=O(256,5-t))return null}else if(o>255)return null;for(s=n.pop(),r=0;r<n.length;r++)s+=n[r]*O(256,3-r);return s},H=function(e){var t,n,r,i,a,o,s,l=[0,0,0,0,0,0,0,0],u=0,c=null,h=0,d=function(){return e.charAt(h)};if(":"==d()){if(":"!=e.charAt(1))return;h+=2,u++,c=u}while(d()){if(8==u)return;if(":"!=d()){t=n=0;while(n<4&&N.test(d()))t=16*t+parseInt(d(),16),h++,n++;if("."==d()){if(0==n)return;if(h-=n,u>6)return;r=0;while(d()){if(i=null,r>0){if(!("."==d()&&r<4))return;h++}if(!L.test(d()))return;while(L.test(d())){if(a=parseInt(d(),10),null===i)i=a;else{if(0==i)return;i=10*i+a}if(i>255)return;h++}l[u]=256*l[u]+i,r++,2!=r&&4!=r||u++}if(4!=r)return;break}if(":"==d()){if(h++,!d())return}else if(d())return;l[u++]=t}else{if(null!==c)return;h++,u++,c=u}}if(null!==c){o=u-c,u=7;while(0!=u&&o>0)s=l[u],l[u--]=l[c+o-1],l[c+--o]=s}else if(8!=u)return;return l},U=function(e){for(var t=null,n=1,r=null,i=0,a=0;a<8;a++)0!==e[a]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=a),++i);return i>n&&(t=r,n=i),t},W=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=T(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=U(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},X={},Y=d({},X,{" ":1,'"':1,"<":1,">":1,"`":1}),K=d({},Y,{"#":1,"?":1,"{":1,"}":1}),q=d({},K,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Z=function(e,t){var n=p(e,0);return n>32&&n<127&&!h(t,e)?e:encodeURIComponent(e)},$={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Q=function(e){return h($,e.scheme)},J=function(e){return""!=e.username||""!=e.password},ee=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},te=function(e,t){var n;return 2==e.length&&I.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},ne=function(e){var t;return e.length>1&&te(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},re=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&te(t[0],!0)||t.pop()},ie=function(e){return"."===e||"%2e"===e.toLowerCase()},ae=function(e){return e=e.toLowerCase(),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},oe={},se={},le={},ue={},ce={},he={},de={},fe={},pe={},ge={},me={},ve={},ye={},be={},_e={},xe={},we={},Se={},Te={},Oe={},Me={},Ee=function(e,t,n,i){var a,o,s,l,u=n||oe,c=0,d="",p=!1,g=!1,m=!1;n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(z,"")),t=t.replace(B,""),a=f(t);while(c<=a.length){switch(o=a[c],u){case oe:if(!o||!I.test(o)){if(n)return E;u=le;continue}d+=o.toLowerCase(),u=se;break;case se:if(o&&(D.test(o)||"+"==o||"-"==o||"."==o))d+=o.toLowerCase();else{if(":"!=o){if(n)return E;d="",u=le,c=0;continue}if(n&&(Q(e)!=h($,d)||"file"==d&&(J(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=d,n)return void(Q(e)&&$[e.scheme]==e.port&&(e.port=null));d="","file"==e.scheme?u=be:Q(e)&&i&&i.scheme==e.scheme?u=ue:Q(e)?u=fe:"/"==a[c+1]?(u=ce,c++):(e.cannotBeABaseURL=!0,e.path.push(""),u=Te)}break;case le:if(!i||i.cannotBeABaseURL&&"#"!=o)return E;if(i.cannotBeABaseURL&&"#"==o){e.scheme=i.scheme,e.path=i.path.slice(),e.query=i.query,e.fragment="",e.cannotBeABaseURL=!0,u=Me;break}u="file"==i.scheme?be:he;continue;case ue:if("/"!=o||"/"!=a[c+1]){u=he;continue}u=pe,c++;break;case ce:if("/"==o){u=ge;break}u=Se;continue;case he:if(e.scheme=i.scheme,o==r)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query;else if("/"==o||"\\"==o&&Q(e))u=de;else if("?"==o)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query="",u=Oe;else{if("#"!=o){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.path.pop(),u=Se;continue}e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query,e.fragment="",u=Me}break;case de:if(!Q(e)||"/"!=o&&"\\"!=o){if("/"!=o){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,u=Se;continue}u=ge}else u=pe;break;case fe:if(u=pe,"/"!=o||"/"!=d.charAt(c+1))continue;c++;break;case pe:if("/"!=o&&"\\"!=o){u=ge;continue}break;case ge:if("@"==o){p&&(d="%40"+d),p=!0,s=f(d);for(var v=0;v<s.length;v++){var y=s[v];if(":"!=y||m){var b=Z(y,q);m?e.password+=b:e.username+=b}else m=!0}d=""}else if(o==r||"/"==o||"?"==o||"#"==o||"\\"==o&&Q(e)){if(p&&""==d)return M;c-=f(d).length+1,d="",u=me}else d+=o;break;case me:case ve:if(n&&"file"==e.scheme){u=xe;continue}if(":"!=o||g){if(o==r||"/"==o||"?"==o||"#"==o||"\\"==o&&Q(e)){if(Q(e)&&""==d)return A;if(n&&""==d&&(J(e)||null!==e.port))return;if(l=V(e,d),l)return l;if(d="",u=we,n)return;continue}"["==o?g=!0:"]"==o&&(g=!1),d+=o}else{if(""==d)return A;if(l=V(e,d),l)return l;if(d="",u=ye,n==ve)return}break;case ye:if(!L.test(o)){if(o==r||"/"==o||"?"==o||"#"==o||"\\"==o&&Q(e)||n){if(""!=d){var _=parseInt(d,10);if(_>65535)return C;e.port=Q(e)&&_===$[e.scheme]?null:_,d=""}if(n)return;u=we;continue}return C}d+=o;break;case be:if(e.scheme="file","/"==o||"\\"==o)u=_e;else{if(!i||"file"!=i.scheme){u=Se;continue}if(o==r)e.host=i.host,e.path=i.path.slice(),e.query=i.query;else if("?"==o)e.host=i.host,e.path=i.path.slice(),e.query="",u=Oe;else{if("#"!=o){ne(a.slice(c).join(""))||(e.host=i.host,e.path=i.path.slice(),re(e)),u=Se;continue}e.host=i.host,e.path=i.path.slice(),e.query=i.query,e.fragment="",u=Me}}break;case _e:if("/"==o||"\\"==o){u=xe;break}i&&"file"==i.scheme&&!ne(a.slice(c).join(""))&&(te(i.path[0],!0)?e.path.push(i.path[0]):e.host=i.host),u=Se;continue;case xe:if(o==r||"/"==o||"\\"==o||"?"==o||"#"==o){if(!n&&te(d))u=Se;else if(""==d){if(e.host="",n)return;u=we}else{if(l=V(e,d),l)return l;if("localhost"==e.host&&(e.host=""),n)return;d="",u=we}continue}d+=o;break;case we:if(Q(e)){if(u=Se,"/"!=o&&"\\"!=o)continue}else if(n||"?"!=o)if(n||"#"!=o){if(o!=r&&(u=Se,"/"!=o))continue}else e.fragment="",u=Me;else e.query="",u=Oe;break;case Se:if(o==r||"/"==o||"\\"==o&&Q(e)||!n&&("?"==o||"#"==o)){if(ae(d)?(re(e),"/"==o||"\\"==o&&Q(e)||e.path.push("")):ie(d)?"/"==o||"\\"==o&&Q(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&te(d)&&(e.host&&(e.host=""),d=d.charAt(0)+":"),e.path.push(d)),d="","file"==e.scheme&&(o==r||"?"==o||"#"==o))while(e.path.length>1&&""===e.path[0])e.path.shift();"?"==o?(e.query="",u=Oe):"#"==o&&(e.fragment="",u=Me)}else d+=Z(o,K);break;case Te:"?"==o?(e.query="",u=Oe):"#"==o?(e.fragment="",u=Me):o!=r&&(e.path[0]+=Z(o,X));break;case Oe:n||"#"!=o?o!=r&&("'"==o&&Q(e)?e.query+="%27":e.query+="#"==o?"%23":Z(o,X)):(e.fragment="",u=Me);break;case Me:o!=r&&(e.fragment+=Z(o,Y));break}c++}},Ae=function(e){var t,n,r=c(this,Ae,"URL"),i=arguments.length>1?arguments[1]:void 0,o=String(e),s=w(r,{type:"URL"});if(void 0!==i)if(i instanceof Ae)t=S(i);else if(n=Ee(t={},String(i)),n)throw TypeError(n);if(n=Ee(s,o,null,t),n)throw TypeError(n);var l=s.searchParams=new _,u=x(l);u.updateSearchParams(s.query),u.updateURL=function(){s.query=String(l)||null},a||(r.href=Ie.call(r),r.origin=De.call(r),r.protocol=Le.call(r),r.username=Pe.call(r),r.password=ke.call(r),r.host=Re.call(r),r.hostname=Ne.call(r),r.port=je.call(r),r.pathname=Fe.call(r),r.search=ze.call(r),r.searchParams=Be.call(r),r.hash=Ve.call(r))},Ce=Ae.prototype,Ie=function(){var e=S(this),t=e.scheme,n=e.username,r=e.password,i=e.host,a=e.port,o=e.path,s=e.query,l=e.fragment,u=t+":";return null!==i?(u+="//",J(e)&&(u+=n+(r?":"+r:"")+"@"),u+=W(i),null!==a&&(u+=":"+a)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?o[0]:o.length?"/"+o.join("/"):"",null!==s&&(u+="?"+s),null!==l&&(u+="#"+l),u},De=function(){var e=S(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(r){return"null"}return"file"!=t&&Q(e)?t+"://"+W(e.host)+(null!==n?":"+n:""):"null"},Le=function(){return S(this).scheme+":"},Pe=function(){return S(this).username},ke=function(){return S(this).password},Re=function(){var e=S(this),t=e.host,n=e.port;return null===t?"":null===n?W(t):W(t)+":"+n},Ne=function(){var e=S(this).host;return null===e?"":W(e)},je=function(){var e=S(this).port;return null===e?"":String(e)},Fe=function(){var e=S(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},ze=function(){var e=S(this).query;return e?"?"+e:""},Be=function(){return S(this).searchParams},Ve=function(){var e=S(this).fragment;return e?"#"+e:""},Ge=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(a&&l(Ce,{href:Ge(Ie,(function(e){var t=S(this),n=String(e),r=Ee(t,n);if(r)throw TypeError(r);x(t.searchParams).updateSearchParams(t.query)})),origin:Ge(De),protocol:Ge(Le,(function(e){var t=S(this);Ee(t,String(e)+":",oe)})),username:Ge(Pe,(function(e){var t=S(this),n=f(String(e));if(!ee(t)){t.username="";for(var r=0;r<n.length;r++)t.username+=Z(n[r],q)}})),password:Ge(ke,(function(e){var t=S(this),n=f(String(e));if(!ee(t)){t.password="";for(var r=0;r<n.length;r++)t.password+=Z(n[r],q)}})),host:Ge(Re,(function(e){var t=S(this);t.cannotBeABaseURL||Ee(t,String(e),me)})),hostname:Ge(Ne,(function(e){var t=S(this);t.cannotBeABaseURL||Ee(t,String(e),ve)})),port:Ge(je,(function(e){var t=S(this);ee(t)||(e=String(e),""==e?t.port=null:Ee(t,e,ye))})),pathname:Ge(Fe,(function(e){var t=S(this);t.cannotBeABaseURL||(t.path=[],Ee(t,e+"",we))})),search:Ge(ze,(function(e){var t=S(this);e=String(e),""==e?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",Ee(t,e,Oe)),x(t.searchParams).updateSearchParams(t.query)})),searchParams:Ge(Be),hash:Ge(Ve,(function(e){var t=S(this);e=String(e),""!=e?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",Ee(t,e,Me)):t.fragment=null}))}),u(Ce,"toJSON",(function(){return Ie.call(this)}),{enumerable:!0}),u(Ce,"toString",(function(){return Ie.call(this)}),{enumerable:!0}),b){var He=b.createObjectURL,Ue=b.revokeObjectURL;He&&u(Ae,"createObjectURL",(function(e){return He.apply(b,arguments)})),Ue&&u(Ae,"revokeObjectURL",(function(e){return Ue.apply(b,arguments)}))}m(Ae,"URL"),i({global:!0,forced:!o,sham:!a},{URL:Ae})},"8g5g":function(e,t,n){"use strict";var r=n("HIsA"),i=n("WNir").right,a=n("1+Eb"),o=n("/5yA"),s=a("reduceRight"),l=o("reduce",{1:0});r({target:"Array",proto:!0,forced:!s||!l},{reduceRight:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"8iHL":function(e,t,n){var r=n("7+LC"),i=n("/Izz"),a="\u200b\x85\u180e";e.exports=function(e){return r((function(){return!!i[e]()||a[e]()!=a||i[e].name!==e}))}},"8idk":function(e,t,n){var r=n("tGsd");e.exports=y,e.exports.parse=a,e.exports.compile=o,e.exports.tokensToFunction=u,e.exports.tokensToRegExp=v;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function a(e,t){var n,r=[],a=0,o=0,s="",l=t&&t.delimiter||"/";while(null!=(n=i.exec(e))){var u=n[0],d=n[1],f=n.index;if(s+=e.slice(o,f),o=f+u.length,d)s+=d[1];else{var p=e[o],g=n[2],m=n[3],v=n[4],y=n[5],b=n[6],_=n[7];s&&(r.push(s),s="");var x=null!=g&&null!=p&&p!==g,w="+"===b||"*"===b,S="?"===b||"*"===b,T=n[2]||l,O=v||y;r.push({name:m||a++,prefix:g||"",delimiter:T,optional:S,repeat:w,partial:x,asterisk:!!_,pattern:O?h(O):_?".*":"[^"+c(T)+"]+?"})}}return o<e.length&&(s+=e.substr(o)),s&&r.push(s),r}function o(e,t){return u(a(e,t),t)}function s(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function l(e){return encodeURI(e).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function u(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"===typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",f(t)));return function(t,i){for(var a="",o=t||{},u=i||{},c=u.pretty?s:encodeURIComponent,h=0;h<e.length;h++){var d=e[h];if("string"!==typeof d){var f,p=o[d.name];if(null==p){if(d.optional){d.partial&&(a+=d.prefix);continue}throw new TypeError('Expected "'+d.name+'" to be defined')}if(r(p)){if(!d.repeat)throw new TypeError('Expected "'+d.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(d.optional)continue;throw new TypeError('Expected "'+d.name+'" to not be empty')}for(var g=0;g<p.length;g++){if(f=c(p[g]),!n[h].test(f))throw new TypeError('Expected all "'+d.name+'" to match "'+d.pattern+'", but received `'+JSON.stringify(f)+"`");a+=(0===g?d.prefix:d.delimiter)+f}}else{if(f=d.asterisk?l(p):c(p),!n[h].test(f))throw new TypeError('Expected "'+d.name+'" to match "'+d.pattern+'", but received "'+f+'"');a+=d.prefix+f}}else a+=d}return a}}function c(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function h(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function d(e,t){return e.keys=t,e}function f(e){return e&&e.sensitive?"":"i"}function p(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return d(e,t)}function g(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(y(e[i],t,n).source);var a=new RegExp("(?:"+r.join("|")+")",f(n));return d(a,t)}function m(e,t,n){return v(a(e,n),t,n)}function v(e,t,n){r(t)||(n=t||n,t=[]),n=n||{};for(var i=n.strict,a=!1!==n.end,o="",s=0;s<e.length;s++){var l=e[s];if("string"===typeof l)o+=c(l);else{var u=c(l.prefix),h="(?:"+l.pattern+")";t.push(l),l.repeat&&(h+="(?:"+u+h+")*"),h=l.optional?l.partial?u+"("+h+")?":"(?:"+u+"("+h+"))?":u+"("+h+")",o+=h}}var p=c(n.delimiter||"/"),g=o.slice(-p.length)===p;return i||(o=(g?o.slice(0,-p.length):o)+"(?:"+p+"(?=$))?"),o+=a?"$":i&&g?"":"(?="+p+"|$)",d(new RegExp("^"+o,f(n)),t)}function y(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?p(e,t):r(e)?g(e,t,n):m(e,t,n)}},"8kSY":function(e,t,n){"use strict";var r=n("sJYe");Object.defineProperty(t,"__esModule",{value:!0});var i=n("fK+4"),a=n("xwgP"),o=n("CU0g"),s=n("6UgN");function l(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var u=l(a);function c(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function h(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){c(a,r,i,o,s,"next",e)}function s(e){c(a,r,i,o,s,"throw",e)}o(void 0)}))}}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function v(e,t){if(null==e)return{};var n,r,i=m(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function y(e,t){return b(e)||_(e,t)||x(e,t)||S()}function b(e){if(Array.isArray(e))return e}function _(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(n.push(o.value),t&&n.length===t)break}catch(l){i=!0,a=l}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw a}}return n}}function x(e,t){if(e){if("string"===typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function S(){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 T(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=x(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},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 a,o=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n["return"]||n["return"]()}finally{if(s)throw a}}}}function O(e){return u["default"].createElement(o.__RouterContext.Consumer,null,(function(t){var n,r=e.children,i=v(e,["children"]),s=t.location,l=null;return a.Children.forEach(r,(function(e){if(null===l&&a.isValidElement(e)){n=e;var r=e.props.path||e.props.from;l=r?o.matchPath(s.pathname,g(g({},e.props),{},{path:r})):t.match}})),l?a.cloneElement(n,{location:s,computedMatch:l,layoutProps:i}):null}))}function M(e){return u["default"].createElement(o.__RouterContext.Consumer,null,(function(t){var n=t.location,r=e.computedMatch,i=g(g({},t),{},{location:n,match:r}),a=e.render;return u["default"].createElement(o.__RouterContext.Provider,{value:i},i.match?a(g(g({},e.layoutProps),i)):null)}))}function E(e,t){e.component;var n=v(e,["component"]),i=e.component;function s(s){var l=a.useState((function(){return window.g_initialProps})),c=y(l,2),d=c[0],p=c[1];return a.useEffect((function(){var a=function(){var a=h(r.mark((function a(){var l,u,c,h,d;return r.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(!i.preload){r.next=5;break}return r.next=3,i.preload();case 3:u=r.sent,i=u["default"]||u;case 5:if(c=g(g({isServer:!1,match:null===s||void 0===s?void 0:s.match,history:null===s||void 0===s?void 0:s.history,route:e},t.getInitialPropsCtx||{}),n),!(null===(l=i)||void 0===l?void 0:l.getInitialProps)){r.next=14;break}return r.next=9,t.plugin.applyPlugins({key:"ssr.modifyGetInitialPropsCtx",type:o.ApplyPluginsType.modify,initialValue:c,async:!0});case 9:return h=r.sent,r.next=12,i.getInitialProps(h||c);case 12:d=r.sent,p(d);case 14:case"end":return r.stop()}}),a)})));return function(){return a.apply(this,arguments)}}();window.g_initialProps||a()}),[window.location.pathname,window.location.search]),u["default"].createElement(i,f({},s,d))}return s.wrapInitialPropsLoaded=!0,s.displayName="ComponentWithInitialPropsFetch",s}function A(e){var t=e.route,n=e.opts,r=e.props,i=I(g(g({},n),{},{routes:t.routes||[],rootRoutes:n.rootRoutes})),o=t.component,s=t.wrappers;if(o){var l=n.isServer?{}:window.g_initialProps,c=g(g(g(g({},r),n.extraProps),n.pageInitialProps||l),{},{route:t,routes:n.rootRoutes}),h=u["default"].createElement(o,c,i);if(s){var d=s.length-1;while(d>=0)h=a.createElement(s[d],c,h),d-=1}return h}return i}function C(e){var t,n,r,i=e.route,a=e.index,s=e.opts,l={key:i.key||a,exact:i.exact,strict:i.strict,sensitive:i.sensitive,path:i.path};return i.redirect?u["default"].createElement(o.Redirect,f({},l,{from:i.path,to:i.redirect})):(!s.ssrProps||s.isServer||(null===(t=i.component)||void 0===t?void 0:t.wrapInitialPropsLoaded)||!(null===(n=i.component)||void 0===n?void 0:n.getInitialProps)&&!(null===(r=i.component)||void 0===r?void 0:r.preload)||(i.component=E(i,s)),u["default"].createElement(M,f({},l,{render:function(e){return A({route:i,opts:s,props:e})}})))}function I(e){return e.routes?u["default"].createElement(O,null,e.routes.map((function(t,n){return C({route:t,index:n,opts:g(g({},e),{},{rootRoutes:e.rootRoutes||e.routes})})}))):null}function D(e){var t=e.history,n=v(e,["history"]);return a.useEffect((function(){function r(t,r){var i=s.matchRoutes(e.routes,t.pathname);"undefined"!==typeof document&&void 0!==n.defaultTitle&&(document.title=i.length&&i[i.length-1].route.title||n.defaultTitle||""),e.plugin.applyPlugins({key:"onRouteChange",type:o.ApplyPluginsType.event,args:{routes:e.routes,matchedRoutes:i,location:t,action:r}})}return window.g_useSSR&&(window.g_initialProps=null),r(t.location,"POP"),t.listen(r)}),[t]),u["default"].createElement(o.Router,{history:t},I(n))}function L(e){return P.apply(this,arguments)}function P(){return P=h(r.mark((function e(t){var n,i,a,o,l,u,c,h,d=arguments;return r.wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=d.length>1&&void 0!==d[1]?d[1]:window.location.pathname,i=s.matchRoutes(t,n),a=T(i),e.prev=3,a.s();case 5:if((o=a.n()).done){e.next=19;break}if(u=o.value,c=u.route,!(null===(l=c.component)||void 0===l?void 0:l.preload)){e.next=13;break}return e.next=11,c.component.preload();case 11:h=e.sent,c.component=h["default"]||h;case 13:if(!c.routes){e.next=17;break}return e.next=16,L(c.routes,n);case 16:c.routes=e.sent;case 17:e.next=5;break;case 19:e.next=24;break;case 21:e.prev=21,e.t0=e["catch"](3),a.e(e.t0);case 24:return e.prev=24,a.f(),e.finish(24);case 27:return e.abrupt("return",t);case 28:case"end":return e.stop()}}),e,null,[[3,21,24,27]])}))),P.apply(this,arguments)}function k(e){var t=e.plugin.applyPlugins({type:o.ApplyPluginsType.modify,key:"rootContainer",initialValue:u["default"].createElement(D,{history:e.history,routes:e.routes,plugin:e.plugin,ssrProps:e.ssrProps,defaultTitle:e.defaultTitle}),args:{history:e.history,routes:e.routes,plugin:e.plugin}});if(!e.rootElement)return t;var n="string"===typeof e.rootElement?document.getElementById(e.rootElement):e.rootElement,r=e.callback||function(){};window.g_useSSR?e.dynamicImport?L(e.routes).then((function(){i.hydrate(t,n,r)})):i.hydrate(t,n,r):i.render(t,n,r)}t.renderClient=k,t.renderRoutes=I},"8rjF":function(e,t,n){var r=n("bVFb");r("hasInstance")},"8wsV":function(e,t,n){"use strict";var r=n("Wp5u"),i=n("Ra/9").includes,a=r.aTypedArray,o=r.exportTypedArrayMethod;o("includes",(function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0)}))},"90zU":function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"k",(function(){return s})),n.d(t,"j",(function(){return l})),n.d(t,"d",(function(){return h})),n.d(t,"i",(function(){return d})),n.d(t,"f",(function(){return g})),n.d(t,"g",(function(){return m})),n.d(t,"h",(function(){return v})),n.d(t,"e",(function(){return y})),n.d(t,"b",(function(){return b})),n.d(t,"c",(function(){return _})),n.d(t,"l",(function(){return x}));var r=n("a0Kb"),i=n("sKBc"),a=n("6+zH");function o(e){if(!Object(i["i"])(e))return r["isString"](e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function s(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var l=r["normalizeCssArray"],u=/([&<>"'])/g,c={"&":"&","<":"<",">":">",'"':""","'":"'"};function h(e){return null==e?"":(e+"").replace(u,(function(e,t){return c[t]}))}function d(e,t,n){var s="yyyy-MM-dd hh:mm:ss";function l(e){return e&&r["trim"](e)?e:"-"}function u(e){return!(null==e||isNaN(e)||!isFinite(e))}var c="time"===t,h=e instanceof Date;if(c||h){var d=c?Object(i["n"])(e):e;if(!isNaN(+d))return Object(a["h"])(d,s,n);if(h)return"-"}if("ordinal"===t)return r["isStringSafe"](e)?l(e):r["isNumber"](e)&&u(e)?e+"":"-";var f=Object(i["m"])(e);return u(f)?o(f):r["isStringSafe"](e)?l(e):"-"}var f=["a","b","c","d","e","f","g"],p=function(e,t){return"{"+e+(null==t?"":t)+"}"};function g(e,t,n){r["isArray"](t)||(t=[t]);var i=t.length;if(!i)return"";for(var a=t[0].$vars||[],o=0;o<a.length;o++){var s=f[o];e=e.replace(p(s),p(s,0))}for(var l=0;l<i;l++)for(var u=0;u<a.length;u++){var c=t[l][a[u]];e=e.replace(p(f[u],l),n?h(c):c)}return e}function m(e,t,n){return r["each"](t,(function(t,r){e=e.replace("{"+r+"}",n?h(t):t)})),e}function v(e,t){var n=r["isString"](e)?{color:e,extraCssText:t}:e||{},i=n.color,a=n.type;t=n.extraCssText;var o=n.renderMode||"html";if(!i)return"";if("html"===o)return"subItem"===a?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+h(i)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+h(i)+";"+(t||"")+'"></span>';var s=n.markerId||"markerX";return{renderMode:o,content:"{"+s+"|} ",style:"subItem"===a?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function y(e,t,n){"week"!==e&&"month"!==e&&"quarter"!==e&&"half-year"!==e&&"year"!==e||(e="MM-dd\nyyyy");var r=Object(i["n"])(t),o=n?"UTC":"",s=r["get"+o+"FullYear"](),l=r["get"+o+"Month"]()+1,u=r["get"+o+"Date"](),c=r["get"+o+"Hours"](),h=r["get"+o+"Minutes"](),d=r["get"+o+"Seconds"](),f=r["get"+o+"Milliseconds"]();return e=e.replace("MM",Object(a["y"])(l,2)).replace("M",l).replace("yyyy",s).replace("yy",s%100+"").replace("dd",Object(a["y"])(u,2)).replace("d",u).replace("hh",Object(a["y"])(c,2)).replace("h",c).replace("mm",Object(a["y"])(h,2)).replace("m",h).replace("ss",Object(a["y"])(d,2)).replace("s",d).replace("SSS",Object(a["y"])(f,3)),e}function b(e){return e?e.charAt(0).toUpperCase()+e.substr(1):e}function _(e,t){return t=t||"transparent",r["isString"](e)?e:r["isObject"](e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function x(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}},"9A8K":function(e,t,n){"use strict";(function(e){var r=n("xwgP"),i=n.n(r),a=n("HMkG"),o=n("EH+i"),s=n.n(o),l=1073741823,u="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:{};function c(){var e="__global_unique_id__";return u[e]=(u[e]||0)+1}function h(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function d(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}function f(e){return Array.isArray(e)?e[0]:e}function p(e,t){var n,i,o="__create-react-context-"+c()+"__",u=function(e){function n(){var t;return t=e.apply(this,arguments)||this,t.emitter=d(t.props.value),t}Object(a["a"])(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return e={},e[o]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;h(r,i)?n=0:(n="function"===typeof t?t(r,i):l,n|=0,0!==n&&this.emitter.set(e.value,n))}},r.render=function(){return this.props.children},n}(r["Component"]);u.childContextTypes=(n={},n[o]=s.a.object.isRequired,n);var p=function(t){function n(){var e;return e=t.apply(this,arguments)||this,e.state={value:e.getValue()},e.onUpdate=function(t,n){var r=0|e.observedBits;0!==(r&n)&&e.setState({value:e.getValue()})},e}Object(a["a"])(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?l:t},r.componentDidMount=function(){this.context[o]&&this.context[o].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?l:e},r.componentWillUnmount=function(){this.context[o]&&this.context[o].off(this.onUpdate)},r.getValue=function(){return this.context[o]?this.context[o].get():e},r.render=function(){return f(this.props.children)(this.state.value)},n}(r["Component"]);return p.contextTypes=(i={},i[o]=s.a.object,i),{Provider:u,Consumer:p}}var g=i.a.createContext||p;t["a"]=g}).call(this,n("UywP"))},"9FIh":function(e,t,n){"use strict";var r=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}();t["a"]=r},"9HG5":function(e,t,n){var r=n("kPvK"),i=r("iterator"),a=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){a=!0}};s[i]=function(){return this},Array.from(s,(function(){throw 2}))}catch(l){}e.exports=function(e,t){if(!t&&!a)return!1;var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(l){}return n}},"9Ihz":function(e,t){},"9IyG":function(e,t,n){"use strict";n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return f}));var r=n("jwv5"),i=Math.log(2);function a(e,t,n,r,o,s){var l=r+"-"+o,u=e.length;if(s.hasOwnProperty(l))return s[l];if(1===t){var c=Math.round(Math.log((1<<u)-1&~o)/i);return e[n][c]}var h=r|1<<n,d=n+1;while(r&1<<d)d++;for(var f=0,p=0,g=0;p<u;p++){var m=1<<p;m&o||(f+=(g%2?-1:1)*e[n][p]*a(e,t-1,d,h,o|m,s),g++)}return s[l]=f,f}function o(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=a(n,8,0,0,0,r);if(0!==i){for(var o=[],s=0;s<8;s++)for(var l=0;l<8;l++)null==o[l]&&(o[l]=0),o[l]+=((s+l)%2?-1:1)*a(n,7,0===s?1:0,1<<s,1<<l,r)/i*t[s];return function(e,t,n){var r=t*o[6]+n*o[7]+1;e[0]=(t*o[0]+n*o[1]+o[2])/r,e[1]=(t*o[3]+n*o[4]+o[5])/r}}}var s="___zrEVENTSAVED",l=[];function u(e,t,n,r,i){return c(l,t,r,i,!0)&&c(e,n,l[0],l[1])}function c(e,t,n,i,a){if(t.getBoundingClientRect&&r["a"].domSupported&&!f(t)){var o=t[s]||(t[s]={}),l=h(t,o),u=d(l,o,a);if(u)return u(e,n,i),!0}return!1}function h(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(o),n.push(o)}return n}function d(e,t,n){for(var r=n?"invTrans":"trans",i=t[r],a=t.srcCoords,s=[],l=[],u=!0,c=0;c<4;c++){var h=e[c].getBoundingClientRect(),d=2*c,f=h.left,p=h.top;s.push(f,p),u=u&&a&&f===a[d]&&p===a[d+1],l.push(e[c].offsetLeft,e[c].offsetTop)}return u&&i?i:(t.srcCoords=s,t[r]=n?o(l,s):o(s,l))}function f(e){return"CANVAS"===e.nodeName.toUpperCase()}},"9OO5":function(e,t,n){"use strict";var r=n("sqIH"),i=n("hXyk"),a=n("2I03"),o=n("JzK+"),s=n("OOuR"),l=n("WdrS");r("match",1,(function(e,t,n){return[function(t){var n=o(this),r=void 0==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var o=i(e),u=String(this);if(!o.global)return l(o,u);var c=o.unicode;o.lastIndex=0;var h,d=[],f=0;while(null!==(h=l(o,u))){var p=String(h[0]);d[f]=p,""===p&&(o.lastIndex=s(u,a(o.lastIndex),c)),f++}return 0===f?null:d}]}))},"9VYP":function(e,t,n){"use strict";var r=n("dZOt"),i="function"===typeof Symbol&&Symbol.for,a=i?Symbol.for("react.element"):60103,o=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,l=i?Symbol.for("react.strict_mode"):60108,u=i?Symbol.for("react.profiler"):60114,c=i?Symbol.for("react.provider"):60109,h=i?Symbol.for("react.context"):60110,d=i?Symbol.for("react.forward_ref"):60112,f=i?Symbol.for("react.suspense"):60113,p=i?Symbol.for("react.memo"):60115,g=i?Symbol.for("react.lazy"):60116,m="function"===typeof Symbol&&Symbol.iterator;function v(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function _(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}function x(){}function w(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(v(85));this.updater.enqueueSetState(this,e,t,"setState")},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},x.prototype=_.prototype;var S=w.prototype=new x;S.constructor=w,r(S,_.prototype),S.isPureReactComponent=!0;var T={current:null},O=Object.prototype.hasOwnProperty,M={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,n){var r,i={},o=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)O.call(t,r)&&!M.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:a,type:e,key:o,ref:s,props:i,_owner:T.current}}function A(e,t){return{$$typeof:a,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function C(e){return"object"===typeof e&&null!==e&&e.$$typeof===a}function I(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}var D=/\/+/g,L=[];function P(e,t,n,r){if(L.length){var i=L.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function k(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>L.length&&L.push(e)}function R(e,t,n,r){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var s=!1;if(null===e)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case a:case o:s=!0}}if(s)return n(r,e,""===t?"."+j(e,0):t),1;if(s=0,t=""===t?".":t+":",Array.isArray(e))for(var l=0;l<e.length;l++){i=e[l];var u=t+j(i,l);s+=R(i,u,n,r)}else if(null===e||"object"!==typeof e?u=null:(u=m&&e[m]||e["@@iterator"],u="function"===typeof u?u:null),"function"===typeof u)for(e=u.call(e),l=0;!(i=e.next()).done;)i=i.value,u=t+j(i,l++),s+=R(i,u,n,r);else if("object"===i)throw n=""+e,Error(v(31,"[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return s}function N(e,t,n){return null==e?0:R(e,"",t,n)}function j(e,t){return"object"===typeof e&&null!==e&&null!=e.key?I(e.key):t.toString(36)}function F(e,t){e.func.call(e.context,t,e.count++)}function z(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?B(e,r,n,(function(e){return e})):null!=e&&(C(e)&&(e=A(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(D,"$&/")+"/")+n)),r.push(e))}function B(e,t,n,r,i){var a="";null!=n&&(a=(""+n).replace(D,"$&/")+"/"),t=P(t,a,r,i),N(e,z,t),k(t)}var V={current:null};function G(){var e=V.current;if(null===e)throw Error(v(321));return e}var H={ReactCurrentDispatcher:V,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:T,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return B(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;t=P(null,null,t,n),N(e,F,t),k(t)},count:function(e){return N(e,(function(){return null}),null)},toArray:function(e){var t=[];return B(e,t,null,(function(e){return e})),t},only:function(e){if(!C(e))throw Error(v(143));return e}},t.Component=_,t.Fragment=s,t.Profiler=u,t.PureComponent=w,t.StrictMode=l,t.Suspense=f,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=H,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(v(267,e));var i=r({},e.props),o=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=T.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)O.call(t,c)&&!M.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){u=Array(c);for(var h=0;h<c;h++)u[h]=arguments[h+2];i.children=u}return{$$typeof:a,type:e.type,key:o,ref:s,props:i,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),e={$$typeof:h,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:d,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:g,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return G().useCallback(e,t)},t.useContext=function(e,t){return G().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return G().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return G().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return G().useLayoutEffect(e,t)},t.useMemo=function(e,t){return G().useMemo(e,t)},t.useReducer=function(e,t,n){return G().useReducer(e,t,n)},t.useRef=function(e){return G().useRef(e)},t.useState=function(e){return G().useState(e)},t.version="16.14.0"},"9Vf9":function(e,t,n){var r=n("HIsA"),i=Math.hypot,a=Math.abs,o=Math.sqrt,s=!!i&&i(1/0,NaN)!==1/0;r({target:"Math",stat:!0,forced:s},{hypot:function(e,t){var n,r,i=0,s=0,l=arguments.length,u=0;while(s<l)n=a(arguments[s++]),u<n?(r=u/n,i=i*r*r+1,u=n):n>0?(r=n/u,i+=r*r):i+=n;return u===1/0?1/0:u*o(i)}})},"9Ywa":function(e,t,n){"use strict";var r=n("HIsA"),i=n("m52V"),a=n("LTDN");r({target:"Set",proto:!0,real:!0,forced:i},{deleteAll:function(){return a.apply(this,arguments)}})},"9ZTU":function(e,t,n){var r,i,a=n("2JD6"),o=n("T9r4"),s=a.process,l=s&&s.versions,u=l&&l.v8;u?(r=u.split("."),i=r[0]+r[1]):o&&(r=o.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/),r&&(i=r[1]))),e.exports=i&&+i},"9izy":function(e,t,n){var r=n("PaPB"),i=n("JzK+"),a=function(e){return function(t,n){var a,o,s=String(i(t)),l=r(n),u=s.length;return l<0||l>=u?e?"":void 0:(a=s.charCodeAt(l),a<55296||a>56319||l+1===u||(o=s.charCodeAt(l+1))<56320||o>57343?e?s.charAt(l):a:e?s.slice(l,l+2):o-56320+(a-55296<<10)+65536)}};e.exports={codeAt:a(!1),charAt:a(!0)}},"9kVb":function(e,t,n){"use strict";var r=n("zb3V"),i=n("H4kQ"),a=n("bJj0"),o=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),s=function(e){function t(t){return e.call(this,t)||this}return Object(r["b"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new o},t.prototype.buildPath=function(e,t){a["a"](e,t,!1)},t}(i["b"]);s.prototype.type="polyline",t["a"]=s},"9kvl":function(e,t,n){"use strict";var r=n("FfOG");n.d(t,"a",(function(){return r["b"]}));n("bCY9")},A2sQ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSensor=void 0;var r=n("PJ1B"),i=n("BF5W"),a="undefined"!==typeof ResizeObserver?i.createSensor:r.createSensor;t.createSensor=a},AGhn:function(e,t,n){"use strict";var r=n("zb3V"),i=n("Kidy"),a=n("xFFj"),o=n("a0Kb"),s=Object(o["defaults"])({x:0,y:0},i["b"]),l={style:Object(o["defaults"])({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},i["a"].style)};function u(e){return!!(e&&"string"!==typeof e&&e.width&&e.height)}var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r["b"])(t,e),t.prototype.createStyle=function(e){return Object(o["createObject"])(s,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(null!=n)return n;var r=u(t.image)?t.image:this.__image;if(!r)return 0;var i="width"===e?"height":"width",a=t[i];return null==a?r[e]:r[e]/r[i]*a},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return l},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new a["a"](e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(i["c"]);c.prototype.type="image",t["a"]=c},AKk7:function(e,t,n){"use strict";var r=!0,i="Invariant failed";function a(e,t){if(!e){if(r)throw new Error(i);throw new Error(i+": "+(t||""))}}t["a"]=a},AyoT:function(e,t,n){"use strict";n.r(t),n.d(t,"extendShape",(function(){return k})),n.d(t,"extendPath",(function(){return N})),n.d(t,"registerShape",(function(){return j})),n.d(t,"getShapeClass",(function(){return F})),n.d(t,"makePath",(function(){return z})),n.d(t,"makeImage",(function(){return B})),n.d(t,"mergePath",(function(){return G})),n.d(t,"resizePath",(function(){return H})),n.d(t,"subPixelOptimizeLine",(function(){return U})),n.d(t,"subPixelOptimizeRect",(function(){return W})),n.d(t,"subPixelOptimize",(function(){return X})),n.d(t,"updateProps",(function(){return K})),n.d(t,"initProps",(function(){return q})),n.d(t,"removeElement",(function(){return Z})),n.d(t,"removeElementWithFadeOut",(function(){return Q})),n.d(t,"isElementRemoved",(function(){return J})),n.d(t,"getTransform",(function(){return ee})),n.d(t,"applyTransform",(function(){return te})),n.d(t,"transformDirection",(function(){return ne})),n.d(t,"groupTransition",(function(){return ae})),n.d(t,"clipPointsByRect",(function(){return oe})),n.d(t,"clipRectByRect",(function(){return se})),n.d(t,"createIcon",(function(){return le})),n.d(t,"linePolygonIntersect",(function(){return ue})),n.d(t,"lineLineIntersect",(function(){return ce}));var r=n("qvkS"),i=n("VpdQ"),a=n("T3M/"),o=n("H4kQ");n.d(t,"Path",(function(){return o["b"]}));var s=n("kvGf"),l=n("AGhn");n.d(t,"Image",(function(){return l["a"]}));var u=n("BAGR");n.d(t,"Group",(function(){return u["a"]}));var c=n("2ZPZ");n.d(t,"Text",(function(){return c["a"]}));var h=n("O9WU");n.d(t,"Circle",(function(){return h["a"]}));var d=n("d1dw");n.d(t,"Ellipse",(function(){return d["a"]}));var f=n("yY2/");n.d(t,"Sector",(function(){return f["a"]}));var p=n("TbZX");n.d(t,"Ring",(function(){return p["a"]}));var g=n("tw5J");n.d(t,"Polygon",(function(){return g["a"]}));var m=n("9kVb");n.d(t,"Polyline",(function(){return m["a"]}));var v=n("uN9/");n.d(t,"Rect",(function(){return v["a"]}));var y=n("+0WQ");n.d(t,"Line",(function(){return y["a"]}));var b=n("VGoH");n.d(t,"BezierCurve",(function(){return b["a"]}));var _=n("afOt");n.d(t,"Arc",(function(){return _["a"]}));var x=n("RA87");n.d(t,"CompoundPath",(function(){return x["a"]}));var w=n("wxy1");n.d(t,"LinearGradient",(function(){return w["a"]}));var S=n("PSNI");n.d(t,"RadialGradient",(function(){return S["a"]}));var T=n("xFFj");n.d(t,"BoundingRect",(function(){return T["a"]}));var O=n("WFeI");n.d(t,"OrientedBoundingRect",(function(){return O["a"]}));var M=n("8XEw");n.d(t,"Point",(function(){return M["a"]}));var E=n("FghA");n.d(t,"IncrementalDisplayable",(function(){return E["a"]}));var A=n("g7gH"),C=n("a0Kb"),I=n("MJ25"),D=Math.max,L=Math.min,P={};function k(e){return o["b"].extend(e)}var R=r["b"];function N(e,t){return R(e,t)}function j(e,t){P[e]=t}function F(e){if(P.hasOwnProperty(e))return P[e]}function z(e,t,n,i){var a=r["a"](e,t);return n&&("center"===i&&(n=V(n,a.getBoundingRect())),H(a,n)),a}function B(e,t,n){var r=new l["a"]({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===n){var i={width:e.width,height:e.height};r.setStyle(V(t,i))}}});return r}function V(e,t){var n,r=t.width/t.height,i=e.height*r;i<=e.width?n=e.height:(i=e.width,n=i/r);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-i/2,y:o-n/2,width:i,height:n}}var G=r["c"];function H(e,t){if(e.applyTransform){var n=e.getBoundingRect(),r=n.calculateTransform(t);e.applyTransform(r)}}function U(e){return A["b"](e.shape,e.shape,e.style),e}function W(e){return A["c"](e.shape,e.shape,e.style),e}var X=A["a"];function Y(e,t,n,r,i,a,o){var s,l=!1;"function"===typeof i?(o=a,a=i,i=null):Object(C["isObject"])(i)&&(a=i.cb,o=i.during,l=i.isFrom,s=i.removeOpt,i=i.dataIndex);var u,c="update"===e,h="remove"===e;if(r&&r.ecModel){var d=r.ecModel.getUpdatePayload();u=d&&d.animation}var f=r&&r.isAnimationEnabled();if(h||t.stopAnimation("remove"),f){var p=void 0,g=void 0,m=void 0;u?(p=u.duration||0,g=u.easing||"cubicOut",m=u.delay||0):h?(s=s||{},p=Object(C["retrieve2"])(s.duration,200),g=Object(C["retrieve2"])(s.easing,"cubicOut"),m=0):(p=r.getShallow(c?"animationDurationUpdate":"animationDuration"),g=r.getShallow(c?"animationEasingUpdate":"animationEasing"),m=r.getShallow(c?"animationDelayUpdate":"animationDelay")),"function"===typeof m&&(m=m(i,r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null)),"function"===typeof p&&(p=p(i)),p>0?l?t.animateFrom(n,{duration:p,delay:m||0,easing:g,done:a,force:!!a||!!o,scope:e,during:o}):t.animateTo(n,{duration:p,delay:m||0,easing:g,done:a,force:!!a||!!o,setToFinal:!0,scope:e,during:o}):(t.stopAnimation(),!l&&t.attr(n),a&&a())}else t.stopAnimation(),!l&&t.attr(n),o&&o(1),a&&a()}function K(e,t,n,r,i,a){Y("update",e,t,n,r,i,a)}function q(e,t,n,r,i,a){Y("init",e,t,n,r,i,a)}function Z(e,t,n,r,i,a){J(e)||Y("remove",e,t,n,r,i,a)}function $(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),Z(e,{style:{opacity:0}},t,n,r)}function Q(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse((function(e){e.isGroup||$(e,t,n,r)})):$(e,t,n,r)}function J(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var n=e.animators[t];if("remove"===n.scope)return!0}return!1}function ee(e,t){var n=i["identity"]([]);while(e&&e!==t)i["mul"](n,e.getLocalTransform(),n),e=e.parent;return n}function te(e,t,n){return t&&!Object(C["isArrayLike"])(t)&&(t=s["a"].getLocalTransform(t)),n&&(t=i["invert"]([],t)),a["applyTransform"]([],e,t)}function ne(e,t,n){var r=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),i=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),a=["left"===e?-r:"right"===e?r:0,"top"===e?-i:"bottom"===e?i:0];return a=te(a,t,n),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function re(e){return!e.isGroup}function ie(e){return null!=e.shape}function ae(e,t,n){if(e&&t){var r=i(e);t.traverse((function(e){if(re(e)&&e.anid){var t=r[e.anid];if(t){var i=a(e);e.attr(a(t)),K(e,i,n,Object(I["a"])(e).dataIndex)}}}))}function i(e){var t={};return e.traverse((function(e){re(e)&&e.anid&&(t[e.anid]=e)})),t}function a(e){var t={x:e.x,y:e.y,rotation:e.rotation};return ie(e)&&(t.shape=Object(C["extend"])({},e.shape)),t}}function oe(e,t){return Object(C["map"])(e,(function(e){var n=e[0];n=D(n,t.x),n=L(n,t.x+t.width);var r=e[1];return r=D(r,t.y),r=L(r,t.y+t.height),[n,r]}))}function se(e,t){var n=D(e.x,t.x),r=L(e.x+e.width,t.x+t.width),i=D(e.y,t.y),a=L(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function le(e,t,n){var r=Object(C["extend"])({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(i.image=e.slice(8),Object(C["defaults"])(i,n),new l["a"](r)):z(e.replace("path://",""),r,n,"center")}function ue(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(ce(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function ce(e,t,n,r,i,a,o,s){var l=n-e,u=r-t,c=o-i,h=s-a,d=he(c,h,l,u);if(de(d))return!1;var f=e-i,p=t-a,g=he(f,p,l,u)/d;if(g<0||g>1)return!1;var m=he(f,p,c,h)/d;return!(m<0||m>1)}function he(e,t,n,r){return e*r-n*t}function de(e){return e<=1e-6&&e>=-1e-6}j("circle",h["a"]),j("ellipse",d["a"]),j("sector",f["a"]),j("ring",p["a"]),j("polygon",g["a"]),j("polyline",m["a"]),j("rect",v["a"]),j("line",y["a"]),j("bezierCurve",b["a"]),j("arc",_["a"])},B2Tl:function(e,t){function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.exports=n},B6LR:function(e,t,n){var r=n("ihzt");e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},B7jn:function(e,t,n){var r=n("bVFb");r("species")},BAGR:function(e,t,n){"use strict";var r=n("zb3V"),i=n("a0Kb"),a=n("/UWH"),o=n("xFFj"),s=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return Object(r["b"])(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){if(e&&(e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),e.__hostTarget))throw"This elemenet has been used as an attachment";return this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=i["indexOf"](n,e);return r<0||(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++){var r=this._children[n];r.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++){var r=this._children[n];r.removeSelfFromZr(t)}},t.prototype.getBoundingRect=function(e){for(var t=new o["a"](0,0,0,0),n=e||this._children,r=[],i=null,a=0;a<n.length;a++){var s=n[a];if(!s.ignore&&!s.invisible){var l=s.getBoundingRect(),u=s.getLocalTransform(r);u?(o["a"].applyTransform(t,l,u),i=i||t.clone(),i.union(t)):(i=i||l.clone(),i.union(l))}}return i||t},t}(a["a"]);s.prototype.type="group",t["a"]=s},BF5W:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSensor=void 0;var r=i(n("5M8n"));function i(e){return e&&e.__esModule?e:{default:e}}var a=function(e){var t=void 0,n=[],i=(0,r["default"])((function(){n.forEach((function(t){t(e)}))})),a=function(){var t=new ResizeObserver(i);return t.observe(e),i(),t},o=function(e){t||(t=a()),-1===n.indexOf(e)&&n.push(e)},s=function(){t.disconnect(),n=[],t=void 0},l=function(e){var r=n.indexOf(e);-1!==r&&n.splice(r,1),0===n.length&&t&&s()};return{element:e,bind:o,destroy:s,unbind:l}};t.createSensor=a},Bktt:function(e,t){e.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}},BlUI:function(e,t,n){"use strict";(function(e){var n=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype["delete"]=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),r="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,i=function(){return"undefined"!==typeof e&&e.Math===Math?e:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),a=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)}}(),o=2;function s(e,t){var n=!1,r=!1,i=0;function s(){n&&(n=!1,e()),r&&u()}function l(){a(s)}function u(){var e=Date.now();if(n){if(e-i<o)return;r=!0}else n=!0,r=!1,setTimeout(l,t);i=e}return u}var l=20,u=["top","right","bottom","left","width","height","size","weight"],c="undefined"!==typeof MutationObserver,h=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=s(this.refresh.bind(this),l)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.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)},e.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)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,r=u.some((function(e){return!!~n.indexOf(e)}));r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),d=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},f=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||i},p=T(0,0,0,0);function g(e){return parseFloat(e)||0}function m(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){var r=e["border-"+n+"-width"];return t+g(r)}),0)}function v(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var a=i[r],o=e["padding-"+a];n[a]=g(o)}return n}function y(e){var t=e.getBBox();return T(0,0,t.width,t.height)}function b(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return p;var r=f(e).getComputedStyle(e),i=v(r),a=i.left+i.right,o=i.top+i.bottom,s=g(r.width),l=g(r.height);if("border-box"===r.boxSizing&&(Math.round(s+a)!==t&&(s-=m(r,"left","right")+a),Math.round(l+o)!==n&&(l-=m(r,"top","bottom")+o)),!x(e)){var u=Math.round(s+a)-t,c=Math.round(l+o)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(c)&&(l-=c)}return T(i.left,i.top,s,l)}var _=function(){return"undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof f(e).SVGGraphicsElement}:function(e){return e instanceof f(e).SVGElement&&"function"===typeof e.getBBox}}();function x(e){return e===f(e).document.documentElement}function w(e){return r?_(e)?y(e):b(e):p}function S(e){var t=e.x,n=e.y,r=e.width,i=e.height,a="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,o=Object.create(a.prototype);return d(o,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),o}function T(e,t,n,r){return{x:e,y:t,width:n,height:r}}var O=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=T(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=w(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),M=function(){function e(e,t){var n=S(t);d(this,{target:e,contentRect:n})}return e}(),E=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new O(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t["delete"](e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new M(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),A="undefined"!==typeof WeakMap?new WeakMap:new n,C=function(){function e(t){if(!(this instanceof e))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 E(t,n,this);A.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach((function(e){C.prototype[e]=function(){var t;return(t=A.get(this))[e].apply(t,arguments)}}));var I=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:C}();t["a"]=I}).call(this,n("UywP"))},BtfP:function(e,t,n){"use strict";function r(){var e=a(n("xwgP"));return r=function(){return e},e}function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function a(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n["default"]=e,t&&t.set(e,n),n}function o(e,t){return h(e)||c(e,t)||l(e,t)||s()}function s(){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 l(e,t){if(e){if("string"===typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(n.push(o.value),t&&n.length===t)break}catch(l){i=!0,a=l}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw a}}return n}}function h(e){if(Array.isArray(e))return e}function d(){return"BASEMENT"===Object({NODE_ENV:"production"}).PLATFORM_TYPE}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=t.getDemoUrl=t.getDemoRouteName=void 0;var f=function(){return d()?"_demos":"~demos"};t.getDemoRouteName=f;var p=function(e){var t,n=window,r=n.location,i=r.href,a=r.origin,s=i.split(/#\//),l=o(s,2),u=l[0],c=l[1],h="string"===typeof c;return[h?"".concat(u,"#"):a,"".concat((null===(t=window)||void 0===t?void 0:t.routerBase)||"","/").replace(/\/\/$/,"/"),f(),"/",e,d()?"/index.html":""].join("")};t.getDemoUrl=p;var g=function(e){var t=(0,r().useState)(""),n=o(t,2),i=n[0],a=n[1];return(0,r().useEffect)((function(){a(p(e))}),[e]),i};t["default"]=g},CE66:function(e,t,n){},CG2G:function(e,t,n){"use strict";var r=n("HIsA"),i=n("dOdC"),a=[].reverse,o=[1,2];r({target:"Array",proto:!0,forced:String(o)===String(o.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),a.call(this)}})},CLo7:function(e,t,n){var r=n("2JD6"),i=n("Bktt"),a=n("PBBb"),o=n("D8FR");for(var s in i){var l=r[s],u=l&&l.prototype;if(u&&u.forEach!==a)try{o(u,"forEach",a)}catch(c){u.forEach=a}}},CNWJ:function(e,t,n){"use strict";var r=n("HIsA"),i=n("DDwO"),a=n("NVMI"),o=n("7+LC"),s=n("1+Eb"),l=[],u=l.sort,c=o((function(){l.sort(void 0)})),h=o((function(){l.sort(null)})),d=s("sort"),f=c||!h||!d;r({target:"Array",proto:!0,forced:f},{sort:function(e){return void 0===e?u.call(a(this)):u.call(a(this),i(e))}})},CRiW:function(e,t,n){"use strict";n.r(t);var r=n("xwgP"),i=n.n(r),a=n("kvV8"),o=n("lBQG"),s=i.a.memo(n("Rsk4").default["simple-demo"].component);t["default"]=function(){return i.a.createElement(i.a.Fragment,null,i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"markdown"},i.a.createElement("h2",{id:"\u7b80\u5355\u5806\u79ef\u9762\u79ef\u56fe"},i.a.createElement(a["AnchorLink"],{to:"#\u7b80\u5355\u5806\u79ef\u9762\u79ef\u56fe","aria-hidden":"true",tabIndex:-1},i.a.createElement("span",{className:["icon","icon-link"]})),"\u7b80\u5355\u5806\u79ef\u9762\u79ef\u56fe")),i.a.createElement(o["default"],n("Rsk4").default["simple-demo"].previewerProps,i.a.createElement(s,null))))}},CU0g:function(e,t,n){"use strict";n.r(t),n.d(t,"Link",(function(){return b})),n.d(t,"MemoryRouter",(function(){return a["a"]})),n.d(t,"NavLink",(function(){return T})),n.d(t,"Prompt",(function(){return a["b"]})),n.d(t,"Redirect",(function(){return a["c"]})),n.d(t,"Route",(function(){return a["d"]})),n.d(t,"Router",(function(){return a["e"]})),n.d(t,"StaticRouter",(function(){return a["f"]})),n.d(t,"Switch",(function(){return a["g"]})),n.d(t,"matchPath",(function(){return a["i"]})),n.d(t,"useHistory",(function(){return a["j"]})),n.d(t,"useLocation",(function(){return a["k"]})),n.d(t,"useParams",(function(){return a["l"]})),n.d(t,"useRouteMatch",(function(){return a["m"]})),n.d(t,"withRouter",(function(){return a["n"]})),n.d(t,"__RouterContext",(function(){return a["h"]})),n.d(t,"createBrowserHistory",(function(){return u["a"]})),n.d(t,"createHashHistory",(function(){return u["b"]})),n.d(t,"createMemoryHistory",(function(){return u["d"]})),n.d(t,"ApplyPluginsType",(function(){return S})),n.d(t,"Plugin",(function(){return W})),n.d(t,"dynamic",(function(){return ae}));var r=n("sJYe"),i=n.n(r),a=n("q5+0"),o=n("HMkG"),s=n("xwgP"),l=n.n(s),u=n("HFu6"),c=(n("EH+i"),n("a1z2")),h=n("LDy6"),d=n("AKk7");l.a.Component;l.a.Component;var f=function(e,t){return"function"===typeof e?e(t):e},p=function(e,t){return"string"===typeof e?Object(u["c"])(e,null,null,t):e},g=function(e){return e},m=l.a.forwardRef;function v(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}"undefined"===typeof m&&(m=g);var y=m((function(e,t){var n=e.innerRef,r=e.navigate,i=e.onClick,a=Object(h["a"])(e,["innerRef","navigate","onClick"]),o=a.target,s=Object(c["a"])({},a,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||o&&"_self"!==o||v(e)||(e.preventDefault(),r())}});return s.ref=g!==m&&t||n,l.a.createElement("a",s)}));var b=m((function(e,t){var n=e.component,r=void 0===n?y:n,i=e.replace,o=e.to,s=e.innerRef,u=Object(h["a"])(e,["component","replace","to","innerRef"]);return l.a.createElement(a["h"].Consumer,null,(function(e){e||Object(d["a"])(!1);var n=e.history,a=p(f(o,e.location),e.location),h=a?n.createHref(a):"",v=Object(c["a"])({},u,{href:h,navigate:function(){var t=f(o,e.location),r=i?n.replace:n.push;r(t)}});return g!==m?v.ref=t||s:v.innerRef=s,l.a.createElement(r,v)}))})),_=function(e){return e},x=l.a.forwardRef;function w(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}"undefined"===typeof x&&(x=_);var S,T=x((function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,i=e.activeClassName,o=void 0===i?"active":i,s=e.activeStyle,u=e.className,g=e.exact,m=e.isActive,v=e.location,y=e.sensitive,S=e.strict,T=e.style,O=e.to,M=e.innerRef,E=Object(h["a"])(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return l.a.createElement(a["h"].Consumer,null,(function(e){e||Object(d["a"])(!1);var n=v||e.location,i=p(f(O,n),n),h=i.pathname,A=h&&h.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),C=A?Object(a["i"])(n.pathname,{path:A,exact:g,sensitive:y,strict:S}):null,I=!!(m?m(C,n):C),D=I?w(u,o):u,L=I?Object(c["a"])({},T,{},s):T,P=Object(c["a"])({"aria-current":I&&r||null,className:D,style:L,to:i},E);return _!==x?P.ref=t||M:P.innerRef=M,l.a.createElement(b,P)}))})),O=n("EwCW");function M(e){return M="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M(e)}function E(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function A(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){E(a,r,i,o,s,"next",e)}function s(e){E(a,r,i,o,s,"throw",e)}o(void 0)}))}}function C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function D(e,t,n){return t&&I(e.prototype,t),n&&I(e,n),e}function L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){L(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function R(e){return N(e)||j(e)||F(e)||B()}function N(e){if(Array.isArray(e))return e}function j(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function F(e,t){if(e){if("string"===typeof e)return z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?z(e,t):void 0}}function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function B(){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 V(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=F(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},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 a,o=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n["return"]||n["return"]()}finally{if(s)throw a}}}}function G(e,t){if(!e)throw new Error(t)}function H(e){var t=e.fns,n=e.args;if(1===t.length)return t[0];var r=t.pop();return t.reduce((function(e,t){return function(){return t(e,n)}}),r)}function U(e){return!!e&&"object"===M(e)&&"function"===typeof e.then}(function(e){e["compose"]="compose",e["modify"]="modify",e["event"]="event"})(S||(S={}));var W=function(){function e(t){C(this,e),this.hooks={},this.validKeys=(null===t||void 0===t?void 0:t.validKeys)||[]}return D(e,[{key:"register",value:function(e){var t=this;G(!!e.apply,"register failed, plugin.apply must supplied"),G(!!e.path,"register failed, plugin.path must supplied"),Object.keys(e.apply).forEach((function(n){G(t.validKeys.indexOf(n)>-1,"register failed, invalid key ".concat(n," from plugin ").concat(e.path,".")),t.hooks[n]||(t.hooks[n]=[]),t.hooks[n]=t.hooks[n].concat(e.apply[n])}))}},{key:"getHooks",value:function(e){var t=e.split("."),n=R(t),r=n[0],i=n.slice(1),a=this.hooks[r]||[];return i.length&&(a=a.map((function(e){try{var t,n=e,r=V(i);try{for(r.s();!(t=r.n()).done;){var a=t.value;n=n[a]}}catch(o){r.e(o)}finally{r.f()}return n}catch(s){return null}})).filter(Boolean)),a}},{key:"applyPlugins",value:function(e){var t=e.key,n=e.type,r=e.initialValue,a=e.args,o=e.async,s=this.getHooks(t)||[];switch(a&&G("object"===M(a),"applyPlugins failed, args must be plain object."),n){case S.modify:return o?s.reduce(function(){var e=A(i.a.mark((function e(n,r){var o;return i.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(G("function"===typeof r||"object"===M(r)||U(r),"applyPlugins failed, all hooks for key ".concat(t," must be function, plain object or Promise.")),!U(n)){e.next=5;break}return e.next=4,n;case 4:n=e.sent;case 5:if("function"!==typeof r){e.next=16;break}if(o=r(n,a),!U(o)){e.next=13;break}return e.next=10,o;case 10:return e.abrupt("return",e.sent);case 13:return e.abrupt("return",o);case 14:e.next=21;break;case 16:if(!U(r)){e.next=20;break}return e.next=19,r;case 19:r=e.sent;case 20:return e.abrupt("return",k(k({},n),r));case 21:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),U(r)?r:Promise.resolve(r)):s.reduce((function(e,n){return G("function"===typeof n||"object"===M(n),"applyPlugins failed, all hooks for key ".concat(t," must be function or plain object.")),"function"===typeof n?n(e,a):k(k({},e),n)}),r);case S.event:return s.forEach((function(e){G("function"===typeof e,"applyPlugins failed, all hooks for key ".concat(t," must be function.")),e(a)}));case S.compose:return function(){return H({fns:s.concat(r),args:a})()}}}}]),e}(),X=Object(s["createContext"])(null),Y=[],K=[],q=!1;function Z(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((function(e){return n.loading=!1,n.loaded=e,e}))["catch"]((function(e){throw n.loading=!1,n.error=e,e})),n}function $(e){var t={loading:!1,loaded:{},error:null},n=[];try{Object.keys(e).forEach((function(r){var i=Z(e[r]);i.loading?t.loading=!0:(t.loaded[r]=i.loaded,t.error=i.error),n.push(i.promise),i.promise.then((function(e){t.loaded[r]=e}))["catch"]((function(e){t.error=e}))}))}catch(r){t.error=r}return t.promise=Promise.all(n).then((function(e){return t.loading=!1,e}))["catch"]((function(e){throw t.loading=!1,e})),t}function Q(e){return e&&e.__esModule?e["default"]:e}function J(e,t){return Object(s["createElement"])(Q(e),t)}function ee(e,t){var n=Object.assign({loader:null,loading:null,delay:200,timeout:null,render:J,webpack:null,modules:null},t),r=null;function i(){if(!r){var t=new te(e,n);r={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return r.promise()}if("undefined"===typeof window&&Y.push(i),!q&&"undefined"!==typeof window&&"function"===typeof n.webpack){var a=n.webpack();K.push((function(e){var t,n=V(a);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(-1!==e.indexOf(r))return i()}}catch(o){n.e(o)}finally{n.f()}}))}var o=function(e,t){i();var a=Object(s["useContext"])(X),o=Object(O["useSubscription"])(r);return Object(s["useImperativeHandle"])(t,(function(){return{retry:r.retry}})),a&&Array.isArray(n.modules)&&n.modules.forEach((function(e){a(e)})),o.loading||o.error?Object(s["createElement"])(n.loading,{isLoading:o.loading,pastDelay:o.pastDelay,timedOut:o.timedOut,error:o.error,retry:r.retry}):o.loaded?n.render(o.loaded,e):null},l=Object(s["forwardRef"])(o);return l.preload=function(){return i()},l.displayName="LoadableComponent",l}var te=function(){function e(t,n){C(this,e),this._loadFn=t,this._opts=n,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}return D(e,[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var e=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var t=this._res,n=this._opts;t.loading&&("number"===typeof n.delay&&(0===n.delay?this._state.pastDelay=!0:this._delay=setTimeout((function(){e._update({pastDelay:!0})}),n.delay)),"number"===typeof n.timeout&&(this._timeout=setTimeout((function(){e._update({timedOut:!0})}),n.timeout))),this._res.promise.then((function(){e._update(),e._clearTimeouts()}))["catch"]((function(t){e._update(),e._clearTimeouts()})),this._update({})}},{key:"_update",value:function(e){this._state=k(k({},this._state),e),this._callbacks.forEach((function(e){return e()}))}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return k(k({},this._state),{},{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading})}},{key:"subscribe",value:function(e){var t=this;return this._callbacks.add(e),function(){t._callbacks["delete"](e)}}}]),e}();function ne(e){return ee(Z,e)}function re(e){if("function"!==typeof e.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return ee($,e)}function ie(e,t){var n=[];while(e.length){var r=e.pop();n.push(r(t))}return Promise.all(n).then((function(){if(e.length)return ie(e,t)}))}function ae(e){var t=ne,n={loading:function(e){e.error,e.isLoading;return Object(s["createElement"])("p",null,"loading...")}};if("function"===typeof e)n.loader=e;else{if("object"!==M(e))throw new Error("Unexpect arguments ".concat(e));n=k(k({},n),e)}return t(n)}ne.Map=re,ne.preloadAll=function(){return new Promise((function(e,t){ie(Y).then(e,t)}))},ne.preloadReady=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise((function(t){var n=function(){return q=!0,t()};ie(K,e).then(n,n)}))},"undefined"!==typeof window&&(window.__NEXT_PRELOADREADY=ne.preloadReady)},CWx7:function(e,t,n){"use strict";var r=n("HIsA"),i=n("m52V"),a=n("hXyk"),o=n("YjHi"),s=n("jd72"),l=n("Ji6T");r({target:"Map",proto:!0,real:!0,forced:i},{includes:function(e){return l(o(a(this)),(function(t,n){if(s(n,e))return l.stop()}),void 0,!0,!0).stopped}})},CfRN:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return g})),n.d(t,"b",(function(){return y})),n.d(t,"d",(function(){return x})),n.d(t,"e",(function(){return S}));var r,i,a,o,s,l=n("a0Kb"),u=n("b26b"),c=n("sKIF"),h=n("+rxo"),d=function(){function e(e,t){var n=Object(c["e"])(e)?e:Object(c["c"])(e);this._source=n;var r=this._data=n.data;n.sourceFormat===h["g"]&&(this._offset=0,this._dimSize=t,this._data=r),s(this,r,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;s=function(e,i,a){var s=a.sourceFormat,u=a.seriesLayoutBy,c=a.startIndex,d=a.dimensionsDefine,f=o[w(s,u)];if(Object(l["extend"])(e,f),s===h["g"])e.getItem=t,e.count=r,e.fillStorage=n;else{var p=g(s,u);e.getItem=Object(l["bind"])(p,null,i,c,d);var m=y(s,u);e.count=Object(l["bind"])(m,null,i,c,d)}};var t=function(e,t){e-=this._offset,t=t||[];for(var n=this._data,r=this._dimSize,i=r*e,a=0;a<r;a++)t[a]=n[i+a];return t},n=function(e,t,n,r){for(var i=this._data,a=this._dimSize,o=0;o<a;o++){for(var s=r[o],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=t-e,h=n[o],d=0;d<c;d++){var f=i[d*a+o];h[e+d]=f,f<l&&(l=f),f>u&&(u=f)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}e={},e[h["c"]+"_"+h["a"]]={pure:!0,appendData:i},e[h["c"]+"_"+h["b"]]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[h["e"]]={pure:!0,appendData:i},e[h["d"]]={pure:!0,appendData:function(e){var t=this._data;Object(l["each"])(e,(function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])}))}},e[h["f"]]={appendData:i},e[h["g"]]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},o=e}(),e}(),f=function(e,t,n,r){return e[r]},p=(r={},r[h["c"]+"_"+h["a"]]=function(e,t,n,r){return e[r+t]},r[h["c"]+"_"+h["b"]]=function(e,t,n,r){r+=t;for(var i=[],a=e,o=0;o<a.length;o++){var s=a[o];i.push(s?s[r]:null)}return i},r[h["e"]]=f,r[h["d"]]=function(e,t,n,r){for(var i=[],a=0;a<n.length;a++){var o=n[a].name;0;var s=e[o];i.push(s?s[r]:null)}return i},r[h["f"]]=f,r);function g(e,t){var n=p[w(e,t)];return n}var m=function(e,t,n){return e.length},v=(i={},i[h["c"]+"_"+h["a"]]=function(e,t,n){return Math.max(0,e.length-t)},i[h["c"]+"_"+h["b"]]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},i[h["e"]]=m,i[h["d"]]=function(e,t,n){var r=n[0].name;var i=e[r];return i?i.length:0},i[h["f"]]=m,i);function y(e,t){var n=v[w(e,t)];return n}var b=function(e,t,n){return null!=t?e[t]:e},_=(a={},a[h["c"]]=b,a[h["e"]]=function(e,t,n){return null!=t?e[n]:e},a[h["d"]]=b,a[h["f"]]=function(e,t,n){var r=Object(u["h"])(e);return null!=t&&r instanceof Array?r[t]:r},a[h["g"]]=b,a);function x(e){var t=_[e];return t}function w(e,t){return e===h["c"]?e+"_"+t:e}function S(e,t,n){if(e){var r=e.getRawDataItem(t);if(null!=r){var i,a,o=e.getProvider().getSource().sourceFormat,s=e.getDimensionInfo(n);return s&&(i=s.name,a=s.index),x(o)(r,a,i)}}}},ClHO:function(e,t,n){"use strict";var r=n("HIsA"),i=n("Hiyu"),a=n("2JD6"),o=n("+qhb"),s=n("pxmn"),l=n("2RC6").f,u=n("xp0c"),c=a.Symbol;if(i&&"function"==typeof c&&(!("description"in c.prototype)||void 0!==c().description)){var h={},d=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof d?new c(e):void 0===e?c():c(e);return""===e&&(h[t]=!0),t};u(d,c);var f=d.prototype=c.prototype;f.constructor=d;var p=f.toString,g="Symbol(test)"==String(c("test")),m=/^Symbol\((.*)\)[^)]+$/;l(f,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=p.call(e);if(o(h,e))return"";var n=g?t.slice(7,-1):t.replace(m,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:d})}},CmBG:function(e,t){t.f=Object.getOwnPropertySymbols},"D0A+":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("lUyv");function i(e,t){if(e){if("string"===typeof e)return Object(r["a"])(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r["a"])(e,t):void 0}}},D2hf:function(e,t,n){var r=n("HIsA");r({target:"Math",stat:!0},{iaddh:function(e,t,n,r){var i=e>>>0,a=t>>>0,o=n>>>0;return a+(r>>>0)+((i&o|(i|o)&~(i+o>>>0))>>>31)|0}})},D8FR:function(e,t,n){var r=n("Hiyu"),i=n("2RC6"),a=n("OLna");e.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},DDwO:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},DEQW:function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return g}));var r=n("Pfkn"),i=n("a0Kb"),a=n("g9E2"),o=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function s(e,t,n,r,i){if(!t)return"";var a=(e+"").split("\n");i=l(t,n,r,i);for(var o=0,s=a.length;o<s;o++)a[o]=u(a[o],i);return a.join("\n")}function l(e,t,n,r){r=r||{};var o=Object(i["extend"])({},r);o.font=t,n=Object(i["retrieve2"])(n,"..."),o.maxIterations=Object(i["retrieve2"])(r.maxIterations,2);var s=o.minChar=Object(i["retrieve2"])(r.minChar,0);o.cnCharWidth=Object(a["g"])("\u56fd",t);var l=o.ascCharWidth=Object(a["g"])("a",t);o.placeholder=Object(i["retrieve2"])(r.placeholder,"");for(var u=e=Math.max(0,e-1),c=0;c<s&&u>=l;c++)u-=l;var h=Object(a["g"])(n,t);return h>u&&(n="",h=0),u=e-h,o.ellipsis=n,o.ellipsisWidth=h,o.contentWidth=u,o.containerWidth=e,o}function u(e,t){var n=t.containerWidth,r=t.font,i=t.contentWidth;if(!n)return"";var o=Object(a["g"])(e,r);if(o<=n)return e;for(var s=0;;s++){if(o<=i||s>=t.maxIterations){e+=t.ellipsis;break}var l=0===s?c(e,i,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,l),o=Object(a["g"])(e,r)}return""===e&&(e=t.placeholder),e}function c(e,t,n,r){for(var i=0,a=0,o=e.length;a<o&&i<t;a++){var s=e.charCodeAt(a);i+=0<=s&&s<=127?n:r}return a}function h(e,t){null!=e&&(e+="");var n,r=t.overflow,o=t.padding,s=t.font,c="truncate"===r,h=Object(a["f"])(s),d=Object(i["retrieve2"])(t.lineHeight,h),f="truncate"===t.lineOverflow,p=t.width;n=null!=p&&"break"===r||"breakAll"===r?e?_(e,t.font,p,"breakAll"===r,0).lines:[]:e?e.split("\n"):[];var g=n.length*d,m=Object(i["retrieve2"])(t.height,g);if(g>m&&f){var v=Math.floor(m/d);n=n.slice(0,v)}var y=m,b=p;if(o&&(y+=o[0]+o[2],null!=b&&(b+=o[1]+o[3])),e&&c&&null!=b)for(var x=l(p,s,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),w=0;w<n.length;w++)n[w]=u(n[w],x);if(null==p){var S=0;for(w=0;w<n.length;w++)S=Math.max(Object(a["g"])(n[w],s),S);p=S}return{lines:n,height:m,outerHeight:y,lineHeight:d,calculatedLineHeight:h,contentHeight:g,width:p}}var d=function(){function e(){}return e}(),f=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),p=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return e}();function g(e,t){var n=new p;if(null!=e&&(e+=""),!e)return n;var l,u=t.width,c=t.height,h=t.overflow,d="break"!==h&&"breakAll"!==h||null==u?null:{width:u,accumWidth:0,breakAll:"breakAll"===h},f=o.lastIndex=0;while(null!=(l=o.exec(e))){var g=l.index;g>f&&m(n,e.substring(f,g),t,d),m(n,l[2],t,d,l[1]),f=o.lastIndex}f<e.length&&m(n,e.substring(f,e.length),t,d);var v=[],y=0,b=0,_=t.padding,x="truncate"===h,w="truncate"===t.lineOverflow;function S(e,t,n){e.width=t,e.lineHeight=n,y+=n,b=Math.max(b,t)}e:for(var T=0;T<n.lines.length;T++){for(var O=n.lines[T],M=0,E=0,A=0;A<O.tokens.length;A++){var C=O.tokens[A],I=C.styleName&&t.rich[C.styleName]||{},D=C.textPadding=I.padding,L=D?D[1]+D[3]:0,P=C.font=I.font||t.font;C.contentHeight=Object(a["f"])(P);var k=Object(i["retrieve2"])(I.height,C.contentHeight);if(C.innerHeight=k,D&&(k+=D[0]+D[2]),C.height=k,C.lineHeight=Object(i["retrieve3"])(I.lineHeight,t.lineHeight,k),C.align=I&&I.align||t.align,C.verticalAlign=I&&I.verticalAlign||"middle",w&&null!=c&&y+C.lineHeight>c){A>0?(O.tokens=O.tokens.slice(0,A),S(O,E,M),n.lines=n.lines.slice(0,T+1)):n.lines=n.lines.slice(0,T);break e}var R=I.width,N=null==R||"auto"===R;if("string"===typeof R&&"%"===R.charAt(R.length-1))C.percentWidth=R,v.push(C),C.contentWidth=Object(a["g"])(C.text,P);else{if(N){var j=I.backgroundColor,F=j&&j.image;F&&(F=r["b"](F),r["c"](F)&&(C.width=Math.max(C.width,F.width*k/F.height)))}var z=x&&null!=u?u-E:null;null!=z&&z<C.width?!N||z<L?(C.text="",C.width=C.contentWidth=0):(C.text=s(C.text,z-L,P,t.ellipsis,{minChar:t.truncateMinChar}),C.width=C.contentWidth=Object(a["g"])(C.text,P)):C.contentWidth=Object(a["g"])(C.text,P)}C.width+=L,E+=C.width,I&&(M=Math.max(M,C.lineHeight)),C}S(O,E,M)}n.outerWidth=n.width=Object(i["retrieve2"])(u,b),n.outerHeight=n.height=Object(i["retrieve2"])(c,y),n.contentHeight=y,n.contentWidth=b,_&&(n.outerWidth+=_[1]+_[3],n.outerHeight+=_[0]+_[2]);for(T=0;T<v.length;T++){C=v[T];var B=C.percentWidth;C.width=parseInt(B,10)/100*n.width}return n}function m(e,t,n,r,i){var o,s,l=""===t,u=i&&n.rich[i]||{},c=e.lines,h=u.font||n.font,p=!1;if(r){var g=u.padding,m=g?g[1]+g[3]:0;if(null!=u.width&&"auto"!==u.width){var v=x(u.width,r.width)+m;c.length>0&&v+r.accumWidth>r.width&&(o=t.split("\n"),p=!0),r.accumWidth=v}else{var y=_(t,h,r.width,r.breakAll,r.accumWidth);r.accumWidth=y.accumWidth+m,s=y.linesWidths,o=y.lines}}else o=t.split("\n");for(var b=0;b<o.length;b++){var w=o[b],S=new d;if(S.styleName=i,S.text=w,S.isLineHolder=!w&&!l,"number"===typeof u.width?S.width=u.width:S.width=s?s[b]:Object(a["g"])(w,h),b||p)c.push(new f([S]));else{var T=(c[c.length-1]||(c[0]=new f)).tokens,O=T.length;1===O&&T[0].isLineHolder?T[0]=S:(w||!O||l)&&T.push(S)}}}function v(e){var t=e.charCodeAt(0);return t>=33&&t<=255}var y=Object(i["reduce"])(",&?/;] ".split(""),(function(e,t){return e[t]=!0,e}),{});function b(e){return!v(e)||!!y[e]}function _(e,t,n,r,i){for(var o=[],s=[],l="",u="",c=0,h=0,d=0;d<e.length;d++){var f=e.charAt(d);if("\n"!==f){var p=Object(a["g"])(f,t),g=!r&&!b(f);(o.length?h+p>n:i+h+p>n)?h?(l||u)&&(g?(l||(l=u,u="",c=0,h=c),o.push(l),s.push(h-c),u+=f,c+=p,l="",h=c):(u&&(l+=u,h+=c,u="",c=0),o.push(l),s.push(h),l=f,h=p)):g?(o.push(u),s.push(c),u=f,c=p):(o.push(f),s.push(p)):(h+=p,g?(u+=f,c+=p):(u&&(l+=u,u="",c=0),l+=f))}else u&&(l+=u,h+=c),o.push(l),s.push(h),l="",u="",c=0,h=0}return o.length||l||(l=e,u="",c=0),u&&(l+=u),l&&(o.push(l),s.push(h)),1===o.length&&(h+=i),{accumWidth:h,lines:o,linesWidths:s}}function x(e,t){return"string"===typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}},DXpG:function(e,t,n){"use strict";var r=n("sqIH"),i=n("ihzt"),a=n("hXyk"),o=n("JzK+"),s=n("70zE"),l=n("OOuR"),u=n("2I03"),c=n("WdrS"),h=n("UTnC"),d=n("7+LC"),f=[].push,p=Math.min,g=4294967295,m=!d((function(){return!RegExp(g,"y")}));r("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(o(this)),a=void 0===n?g:n>>>0;if(0===a)return[];if(void 0===e)return[r];if(!i(e))return t.call(r,e,a);var s,l,u,c=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,m=new RegExp(e.source,d+"g");while(s=h.call(m,r)){if(l=m.lastIndex,l>p&&(c.push(r.slice(p,s.index)),s.length>1&&s.index<r.length&&f.apply(c,s.slice(1)),u=s[0].length,p=l,c.length>=a))break;m.lastIndex===s.index&&m.lastIndex++}return p===r.length?!u&&m.test("")||c.push(""):c.push(r.slice(p)),c.length>a?c.slice(0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var i=o(this),a=void 0==t?void 0:t[e];return void 0!==a?a.call(t,i,n):r.call(String(i),t,n)},function(e,i){var o=n(r,e,this,i,r!==t);if(o.done)return o.value;var h=a(e),d=String(this),f=s(h,RegExp),v=h.unicode,y=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(m?"y":"g"),b=new f(m?h:"^(?:"+h.source+")",y),_=void 0===i?g:i>>>0;if(0===_)return[];if(0===d.length)return null===c(b,d)?[d]:[];var x=0,w=0,S=[];while(w<d.length){b.lastIndex=m?w:0;var T,O=c(b,m?d:d.slice(w));if(null===O||(T=p(u(b.lastIndex+(m?0:w)),d.length))===x)w=l(d,w,v);else{if(S.push(d.slice(x,w)),S.length===_)return S;for(var M=1;M<=O.length-1;M++)if(S.push(O[M]),S.length===_)return S;w=x=T}}return S.push(d.slice(x)),S}]}),!m)},DeDD:function(e,t,n){var r=n("HIsA"),i=n("icJ8"),a=n("hXyk"),o=i.has,s=i.toKey;r({target:"Reflect",stat:!0},{hasOwnMetadata:function(e,t){var n=arguments.length<3?void 0:s(arguments[2]);return o(e,a(t),n)}})},Diaw:function(e,t,n){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;0!==i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;0!==i--;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;0!==i--;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}},DnHg:function(e,t,n){var r=n("JY8B");r("flat")},E06e:function(e,t){var n=Math.log;e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:n(1+e)}},E7N6:function(e,t,n){"use strict";var r=n("a0Kb");function i(e){return"_EC_"+e}var a=function(){function e(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(e,t){e=null==e?""+t:""+e;var n=this._nodesMap;if(!n[i(e)]){var r=new o(e,t);return r.hostGraph=this,this.nodes.push(r),n[i(e)]=r,r}},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[i(e)]},e.prototype.addEdge=function(e,t,n){var r=this._nodesMap,a=this._edgesMap;if("number"===typeof e&&(e=this.nodes[e]),"number"===typeof t&&(t=this.nodes[t]),e instanceof o||(e=r[i(e)]),t instanceof o||(t=r[i(t)]),e&&t){var l=e.id+"-"+t.id,u=new s(e,t,n);return u.hostGraph=this,this._directed&&(e.outEdges.push(u),t.inEdges.push(u)),e.edges.push(u),e!==t&&t.edges.push(u),this.edges.push(u),a[l]=u,u}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof o&&(e=e.id),t instanceof o&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},e.prototype.eachNode=function(e,t){for(var n=this.nodes,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&e.call(t,n[i],i)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},e.prototype.breadthFirstTraverse=function(e,t,n,r){if(t instanceof o||(t=this._nodesMap[i(t)]),t){for(var a="out"===n?"outEdges":"in"===n?"inEdges":"edges",s=0;s<this.nodes.length;s++)this.nodes[s].__visited=!1;if(!e.call(r,t,null)){var l=[t];while(l.length){var u=l.shift(),c=u[a];for(s=0;s<c.length;s++){var h=c[s],d=h.node1===u?h.node2:h.node1;if(!d.__visited){if(e.call(r,d,u))return;l.push(d),d.__visited=!0}}}}}},e.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,r=this.edges,i=0,a=n.length;i<a;i++)n[i].dataIndex=-1;for(i=0,a=e.count();i<a;i++)n[e.getRawIndex(i)].dataIndex=i;t.filterSelf((function(e){var n=r[t.getRawIndex(e)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0}));for(i=0,a=r.length;i<a;i++)r[i].dataIndex=-1;for(i=0,a=t.count();i<a;i++)r[t.getRawIndex(i)].dataIndex=i},e.prototype.clone=function(){for(var t=new e(this._directed),n=this.nodes,r=this.edges,i=0;i<n.length;i++)t.addNode(n[i].id,n[i].dataIndex);for(i=0;i<r.length;i++){var a=r[i];t.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return t},e}(),o=function(){function e(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==e?"":e,this.dataIndex=null==t?-1:t}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},e}(),s=function(){function e(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=null==n?-1:n}return e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.edgeData.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e}();function l(e,t){return{getValue:function(n){var r=this[e][t];return r.get(r.getDimension(n||"value"),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}r["mixin"](o,l("hostGraph","data")),r["mixin"](s,l("hostGraph","edgeData")),t["a"]=a},"EC/F":function(e,t,n){"use strict";var r=n("HIsA"),i=n("m52V"),a=n("bXon"),o=n("hXyk"),s=n("DDwO"),l=n("40mc"),u=n("70zE"),c=n("YjHi"),h=n("Ji6T");r({target:"Map",proto:!0,real:!0,forced:i},{mapValues:function(e){var t=o(this),n=c(t),r=l(e,arguments.length>1?arguments[1]:void 0,3),i=new(u(t,a("Map"))),d=s(i.set);return h(n,(function(e,n){d.call(i,e,r(n,e,t))}),void 0,!0,!0),i}})},ECWN:function(e,t,n){var r=n("Ogjs"),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},"EH+i":function(e,t,n){e.exports=n("72Hr")()},EMzR:function(e,t,n){"use strict";var r=n("HIsA"),i=n("m52V"),a=n("7SXh");r({target:"WeakSet",proto:!0,real:!0,forced:i},{addAll:function(){return a.apply(this,arguments)}})},EPMC:function(e,t){function n(e){if(Array.isArray(e))return e}e.exports=n},EPlJ:function(e,t,n){"use strict";n.d(t,"f",(function(){return l})),n.d(t,"d",(function(){return c})),n.d(t,"b",(function(){return h})),n.d(t,"e",(function(){return f})),n.d(t,"a",(function(){return g})),n.d(t,"c",(function(){return y}));var r=n("zb3V"),i=n("a0Kb"),a=".",o="___EC__COMPONENT__CONTAINER___",s="___EC__EXTENDED_CLASS___";function l(e){var t={main:"",sub:""};if(e){var n=e.split(a);t.main=n[0]||"",t.sub=n[1]||""}return t}function u(e){i["assert"](/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function c(e){return!(!e||!e[s])}function h(e,t){e.$constructor=e,e.extend=function(e){var t=this;function n(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];if(e.$constructor)e.$constructor.apply(this,arguments);else{if(d(t)){var s=i["createObject"](n.prototype,new(t.bind.apply(t,Object(r["c"])([void 0],a))));return s}t.apply(this,arguments)}}return n[s]=!0,i["extend"](n.prototype,e),n.extend=this.extend,n.superCall=m,n.superApply=v,i["inherits"](n,this),n.superClass=t,n}}function d(e){return"function"===typeof e&&/^class\s/.test(Function.prototype.toString.call(e))}function f(e,t){e.extend=t.extend}var p=Math.round(10*Math.random());function g(e){var t=["__\0is_clz",p++].join("_");e.prototype[t]=!0,e.isInstance=function(e){return!(!e||!e[t])}}function m(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[t].apply(e,n)}function v(e,t,n){return this.superClass.prototype[t].apply(e,n)}function y(e){var t={};function n(e){var n=t[e.main];return n&&n[o]||(n=t[e.main]={},n[o]=!0),n}e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){u(r),e.prototype.type=r;var i=l(r);if(i.sub){if(i.sub!==o){var a=n(i);a[i.sub]=e}}else t[i.main]=e}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[o]&&(i=n?i[n]:null),r&&!i)throw new Error(n?"Component "+e+"."+(n||"")+" not exists. Load it first.":e+".type should be specified.");return i},e.getClassesByMainType=function(e){var n=l(e),r=[],a=t[n.main];return a&&a[o]?i["each"](a,(function(e,t){t!==o&&r.push(e)})):r.push(a),r},e.hasClass=function(e){var n=l(e);return!!t[n.main]},e.getAllClassMainTypes=function(){var e=[];return i["each"](t,(function(t,n){e.push(n)})),e},e.hasSubTypes=function(e){var n=l(e),r=t[n.main];return r&&r[o]}}},EcRG:function(e,t,n){"use strict";function r(e,t,n){switch(n){case"color":var r=e.getItemVisual(t,"style");return r[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n);default:0}}function i(e,t){switch(t){case"color":var n=e.getVisual("style");return n[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t);default:0}}function a(e,t,n,r){switch(n){case"color":var i=e.ensureUniqueItemVisual(t,"style");i[e.getVisual("drawType")]=r,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,n,r);break;default:0}}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a}))},EwCW:function(e,t,n){"use strict";e.exports=n("xdXA")},EzfI:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return o}));var r=n("a0Kb");function i(e,t,n){n=n||{};var i,a,o,s,l=n.byIndex,u=n.stackedCoordDimension,c=!(!e||!e.get("stack"));if(Object(r["each"])(t,(function(e,n){Object(r["isString"])(e)&&(t[n]=e={name:e}),c&&!e.isExtraCoord&&(l||i||!e.ordinalMeta||(i=e),a||"ordinal"===e.type||"time"===e.type||u&&u!==e.coordDim||(a=e))})),!a||l||i||(l=!0),a){o="__\0ecstackresult",s="__\0ecstackedover",i&&(i.createInvertedIndices=!0);var h=a.coordDim,d=a.type,f=0;Object(r["each"])(t,(function(e){e.coordDim===h&&f++})),t.push({name:o,coordDim:h,coordDimIndex:f,type:d,isExtraCoord:!0,isCalculationCoord:!0}),f++,t.push({name:s,coordDim:s,coordDimIndex:f,type:d,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:a&&a.name,stackedByDimension:i&&i.name,isStackedByIndex:l,stackedOverDimension:s,stackResultDimension:o}}function a(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function o(e,t){return a(e,t)?e.getCalculationInfo("stackResultDimension"):t}},"F+kV":function(e,t,n){"use strict";n.r(t);var r=n("xwgP"),i=n.n(r),a=n("kvV8"),o=n("lBQG"),s=n("HFCj"),l=i.a.memo(n("Rsk4").default["docs-demo"].component);t["default"]=function(){return i.a.createElement(i.a.Fragment,null,i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"markdown"},i.a.createElement("h2",{id:"\u5b89\u88c5"},i.a.createElement(a["AnchorLink"],{to:"#\u5b89\u88c5","aria-hidden":"true",tabIndex:-1},i.a.createElement("span",{className:["icon","icon-link"]})),"\u5b89\u88c5"),i.a.createElement(s["a"],{code:"$ npm install echarts-for-react\n",lang:"bash"}),i.a.createElement("h2",{id:"\u4f7f\u7528"},i.a.createElement(a["AnchorLink"],{to:"#\u4f7f\u7528","aria-hidden":"true",tabIndex:-1},i.a.createElement("span",{className:["icon","icon-link"]})),"\u4f7f\u7528"),i.a.createElement(s["a"],{code:"import React from 'react';\nimport ReactECharts from 'echarts-for-react';\n\nconst Page: React.FC = () => {\n const options = {\n grid: { top: 8, right: 8, bottom: 24, left: 36 },\n xAxis: {\n type: 'category',\n data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],\n },\n yAxis: {\n type: 'value',\n },\n series: [\n {\n data: [820, 932, 901, 934, 1290, 1330, 1320],\n type: 'line',\n smooth: true,\n },\n ],\n };\n\n return <ReactECharts option={options} />;\n};\n\nexport default Page;\n",lang:"tsx"}),i.a.createElement("p",null,"\u6700\u7ec8\u7ed3\u679c\uff1a")),i.a.createElement(o["default"],n("Rsk4").default["docs-demo"].previewerProps,i.a.createElement(l,null)),i.a.createElement("div",{className:"markdown"},i.a.createElement("h2",{id:"\u53cd\u9988"},i.a.createElement(a["AnchorLink"],{to:"#\u53cd\u9988","aria-hidden":"true",tabIndex:-1},i.a.createElement("span",{className:["icon","icon-link"]})),"\u53cd\u9988"),i.a.createElement("p",null,"\u8bf7\u8bbf\u95ee ",i.a.createElement(a["Link"],{to:"https://github.com/hustcc/echarts-for-react"},"GitHub"),"\u3002"))))}},F0Xa:function(e,t,n){"use strict";var r=n("xFFj"),i=n("nApx"),a=n("T3M/"),o=n("5Wdj"),s=function(){function e(e,t,n){if(this.name=e,this.geometries=t,n)n=[n[0],n[1]];else{var r=this.getBoundingRect();n=[r.x+r.width/2,r.y+r.height/2]}this.center=n}return e.prototype.getBoundingRect=function(){var e=this._rect;if(e)return e;for(var t=Number.MAX_VALUE,n=[t,t],o=[-t,-t],s=[],l=[],u=this.geometries,c=0;c<u.length;c++)if("polygon"===u[c].type){var h=u[c].exterior;i["d"](h,s,l),a["min"](n,n,s),a["max"](o,o,l)}return 0===c&&(n[0]=n[1]=o[0]=o[1]=0),this._rect=new r["a"](n[0],n[1],o[0]-n[0],o[1]-n[1])},e.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var r=0,i=n.length;r<i;r++)if("polygon"===n[r].type){var a=n[r].exterior,s=n[r].interiors;if(o["a"](a,e[0],e[1])){for(var l=0;l<(s?s.length:0);l++)if(o["a"](s[l],e[0],e[1]))continue e;return!0}}return!1},e.prototype.transformTo=function(e,t,n,i){var o=this.getBoundingRect(),s=o.width/o.height;n?i||(i=n/s):n=s*i;for(var l=new r["a"](e,t,n,i),u=o.calculateTransform(l),c=this.geometries,h=0;h<c.length;h++)if("polygon"===c[h].type){for(var d=c[h].exterior,f=c[h].interiors,p=0;p<d.length;p++)a["applyTransform"](d[p],d[p],u);for(var g=0;g<(f?f.length:0);g++)for(p=0;p<f[g].length;p++)a["applyTransform"](f[g][p],f[g][p],u)}o=this._rect,o.copy(l),this.center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(t){null==t&&(t=this.name);var n=new e(t,this.geometries,this.center);return n._rect=this._rect,n.transformTo=null,n},e}();t["a"]=s},F4Qn:function(e,t,n){"use strict";var r=n("HIsA"),i=n("WNir").left,a=n("1+Eb"),o=n("/5yA"),s=a("reduce"),l=o("reduce",{1:0});r({target:"Array",proto:!0,forced:!s||!l},{reduce:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},FFjv:function(e,t,n){"use strict";var r=n("HIsA"),i=n("qmtO").f,a=n("2I03"),o=n("B6LR"),s=n("JzK+"),l=n("eD14"),u=n("m52V"),c="".endsWith,h=Math.min,d=l("endsWith"),f=!u&&!d&&!!function(){var e=i(String.prototype,"endsWith");return e&&!e.writable}();r({target:"String",proto:!0,forced:!f&&!d},{endsWith:function(e){var t=String(s(this));o(e);var n=arguments.length>1?arguments[1]:void 0,r=a(t.length),i=void 0===n?r:h(a(n),r),l=String(e);return c?c.call(t,l,i):t.slice(i-l.length,i)===l}})},FLIr:function(e,t,n){var r=n("bVFb");r("match")},"FT/y":function(e,t,n){var r=n("J7X1");r(Math,"Math",!0)},FaOA:function(e,t,n){"use strict";function r(){var e=a(n("xwgP"));return r=function(){return e},e}function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function a(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n["default"]=e,t&&t.set(e,n),n}function o(e,t){return h(e)||c(e,t)||l(e,t)||s()}function s(){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 l(e,t){if(e){if("string"===typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(n.push(o.value),t&&n.length===t)break}catch(l){i=!0,a=l}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw a}}return n}}function h(e){if(Array.isArray(e))return e}function d(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(i<t.length){var a=t[i],s=function(){return d(e,t,n,i+1)},l=a.match(/^([^:]+):?(.*)$/)||[],u=o(l,3),c=u[1],h=u[2];switch(c){case"autoplay":s();break;case"click":var f=h.match(/^(global\()?(.+?)\)?$/)||[],p=o(f,3),g=p[1],m=p[2],v=g?document:e;null===(r=v.querySelector(m))||void 0===r||r.click(),s();break;case"timeout":setTimeout(s,Number(h));break;case"capture":window.postMessage({type:"dumi:capture-element",value:h},"*"),s();break;default:console.warn("[dumi: motion] unknown motion '".concat(a,"', skip.")),s()}}else n()}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var f=function(e,t){var n=(0,r().useState)(!1),i=o(n,2),a=i[0],s=i[1],l=(0,r().useCallback)((function(){a||(d(t,e,(function(){s(!1)})),s(!0))}),[e,t,a]);return(0,r().useEffect)((function(){"autoplay"===e[0]&&t&&l()}),[e,t]),[l,a]};t["default"]=f},Fano:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("RtWR");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(r["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},"Fcd/":function(e,t,n){var r=n("kPW5");function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function a(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}return n["default"]=e,t&&t.set(e,n),n}e.exports=a},FfOG:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));var r=n("HFu6"),i={basename:"/echarts-for-react/"};window.routerBase&&(i.basename=window.routerBase);var a=Object({NODE_ENV:"production"}).__IS_SERVER?null:Object(r["a"])(i),o=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e||(a=Object(r["a"])(i)),a}},FghA:function(e,t,n){"use strict";var r=n("zb3V"),i=n("Kidy"),a=n("xFFj"),o=[],s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return Object(r["b"])(t,e),t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(e=0;e<this._temporaryDisplayables.length;e++){t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new a["a"](1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(o)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();if(r.contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++){var a=this._displayables[i];if(a.contain(e,t))return!0}return!1},t}(i["c"]);t["a"]=s},Fi3l:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return h})),n.d(t,"e",(function(){return d})),n.d(t,"g",(function(){return f})),n.d(t,"i",(function(){return p})),n.d(t,"j",(function(){return g})),n.d(t,"d",(function(){return m})),n.d(t,"h",(function(){return v})),n.d(t,"f",(function(){return y})),n.d(t,"c",(function(){return b}));var r=n("a0Kb"),i=n("xFFj"),a=n("sKBc"),o=n("90zU"),s=r["each"],l=["left","right","top","bottom","width","height"],u=[["width","left","right"],["height","top","bottom"]];function c(e,t,n,r,i){var a=0,o=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;t.eachChild((function(l,u){var c,h,d=l.getBoundingRect(),f=t.childAt(u+1),p=f&&f.getBoundingRect();if("horizontal"===e){var g=d.width+(p?-p.x+d.x:0);c=a+g,c>r||l.newline?(a=0,c=g,o+=s+n,s=d.height):s=Math.max(s,d.height)}else{var m=d.height+(p?-p.y+d.y:0);h=o+m,h>i||l.newline?(a+=s+n,o=0,h=m,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),"horizontal"===e?a=c+n:o=h+n)}))}var h=c;r["curry"](c,"vertical"),r["curry"](c,"horizontal");function d(e,t,n){var r=t.width,i=t.height,s=Object(a["o"])(e.left,r),l=Object(a["o"])(e.top,i),u=Object(a["o"])(e.right,r),c=Object(a["o"])(e.bottom,i);return(isNaN(s)||isNaN(parseFloat(e.left)))&&(s=0),(isNaN(u)||isNaN(parseFloat(e.right)))&&(u=r),(isNaN(l)||isNaN(parseFloat(e.top)))&&(l=0),(isNaN(c)||isNaN(parseFloat(e.bottom)))&&(c=i),n=o["j"](n||0),{width:Math.max(u-s-n[1]-n[3],0),height:Math.max(c-l-n[0]-n[2],0)}}function f(e,t,n){n=o["j"](n||0);var r=t.width,s=t.height,l=Object(a["o"])(e.left,r),u=Object(a["o"])(e.top,s),c=Object(a["o"])(e.right,r),h=Object(a["o"])(e.bottom,s),d=Object(a["o"])(e.width,r),f=Object(a["o"])(e.height,s),p=n[2]+n[0],g=n[1]+n[3],m=e.aspect;switch(isNaN(d)&&(d=r-c-g-l),isNaN(f)&&(f=s-h-p-u),null!=m&&(isNaN(d)&&isNaN(f)&&(m>r/s?d=.8*r:f=.8*s),isNaN(d)&&(d=m*f),isNaN(f)&&(f=d/m)),isNaN(l)&&(l=r-c-d-g),isNaN(u)&&(u=s-h-f-p),e.left||e.right){case"center":l=r/2-d/2-n[3];break;case"right":l=r-d-g;break}switch(e.top||e.bottom){case"middle":case"center":u=s/2-f/2-n[0];break;case"bottom":u=s-f-p;break}l=l||0,u=u||0,isNaN(d)&&(d=r-g-l-(c||0)),isNaN(f)&&(f=s-p-u-(h||0));var v=new i["a"](l+n[3],u+n[0],d,f);return v.margin=n,v}function p(e,t,n,a,o){var s=!o||!o.hv||o.hv[0],l=!o||!o.hv||o.hv[1],u=o&&o.boundingMode||"all";if(s||l){var c;if("raw"===u)c="group"===e.type?new i["a"](0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(c=e.getBoundingRect(),e.needLocalTransform()){var h=e.getLocalTransform();c=c.clone(),c.applyTransform(h)}var d=f(r["defaults"]({width:c.width,height:c.height},t),n,a),p=s?d.x-c.x:0,g=l?d.y-c.y:0;"raw"===u?(e.x=p,e.y=g):(e.x+=p,e.y+=g),e.markRedraw()}}function g(e,t){return null!=e[u[t][0]]||null!=e[u[t][1]]&&null!=e[u[t][2]]}function m(e){var t=e.layoutMode||e.constructor.layoutMode;return r["isObject"](t)?t:t?{type:t}:null}function v(e,t,n){var i=n&&n.ignoreSize;!r["isArray"](i)&&(i=[i,i]);var a=l(u[0],0),o=l(u[1],1);function l(n,r){var a={},o=0,l={},u=0,d=2;if(s(n,(function(t){l[t]=e[t]})),s(n,(function(e){c(t,e)&&(a[e]=l[e]=t[e]),h(a,e)&&o++,h(l,e)&&u++})),i[r])return h(t,n[1])?l[n[2]]=null:h(t,n[2])&&(l[n[1]]=null),l;if(u!==d&&o){if(o>=d)return a;for(var f=0;f<n.length;f++){var p=n[f];if(!c(a,p)&&c(e,p)){a[p]=e[p];break}}return a}return l}function c(e,t){return e.hasOwnProperty(t)}function h(e,t){return null!=e[t]&&"auto"!==e[t]}function d(e,t,n){s(e,(function(e){t[e]=n[e]}))}d(u[0],e,a),d(u[1],e,o)}function y(e){return b({},e)}function b(e,t){return t&&e&&s(l,(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}},FmLo:function(e,t,n){"use strict";var r=n("HIsA"),i=n("9izy").charAt;r({target:"String",proto:!0},{at:function(e){return i(this,e)}})},G4R5:function(e,t,n){"use strict";var r=n("ghbW"),i=n("vldi");e.exports=r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},G5kI:function(e,t,n){var r=n("2JD6");e.exports=r},G70G:function(e,t,n){"use strict";var r=n("n2ef"),i=n("2RC6"),a=n("OLna");e.exports=function(e,t,n){var o=r(t);o in e?i.f(e,o,a(0,n)):e[o]=n}},G7GF:function(e,t,n){"use strict";var r=n("2JD6"),i=n("Wp5u"),a=n("7+LC"),o=r.Int8Array,s=i.aTypedArray,l=i.exportTypedArrayMethod,u=[].toLocaleString,c=[].slice,h=!!o&&a((function(){u.call(new o(1))})),d=a((function(){return[1,2].toLocaleString()!=new o([1,2]).toLocaleString()}))||!a((function(){o.prototype.toLocaleString.call([1,2])}));l("toLocaleString",(function(){return u.apply(h?c.call(s(this)):s(this),arguments)}),d)},GP7J:function(e,t,n){"use strict";var r=n("HIsA"),i=n("m52V"),a=n("hXyk"),o=n("YjHi"),s=n("Ji6T");r({target:"Map",proto:!0,real:!0,forced:i},{keyOf:function(e){return s(o(a(this)),(function(t,n){if(n===e)return s.stop(t)}),void 0,!0,!0).result}})},GPbW:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},GUTS:function(e,t,n){var r=n("2JD6"),i=n("D8FR"),a=n("+qhb"),o=n("5Nth"),s=n("ECWN"),l=n("twJ5"),u=l.get,c=l.enforce,h=String(String).split("String");(e.exports=function(e,t,n,s){var l=!!s&&!!s.unsafe,u=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||a(n,"name")||i(n,"name",t),c(n).source=h.join("string"==typeof t?t:"")),e!==r?(l?!d&&e[t]&&(u=!0):delete e[t],u?e[t]=n:i(e,t,n)):u?e[t]=n:o(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||s(this)}))},GboX:function(e,t,n){"use strict";var r=n("Wp5u"),i=n("pMf/"),a=r.aTypedArrayConstructor,o=r.exportTypedArrayStaticMethod;o("of",(function(){var e=0,t=arguments.length,n=new(a(this))(t);while(t>e)n[e]=arguments[e++];return n}),i)},Gcgh:function(e,t,n){"use strict";var r=n("ghbW"),i=n("r73t");r("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},GumR:function(e,t,n){var r=n("egoY");function i(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}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,s=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,o=e},f:function(){try{s||null==n["return"]||n["return"]()}finally{if(l)throw o}}}}e.exports=i},"H++4":function(e,t,n){var r=n("JqKL");r("Int8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},H4kQ:function(e,t,n){"use strict";n.d(t,"a",(function(){return D}));var r=n("zb3V"),i=n("Kidy"),a=n("/UWH"),o=n("5MTG"),s=n("aEsj"),l=n("Yc1X");function u(e,t,n,r,i,a,o,s,u,c,h){if(0===u)return!1;var d=u;if(h>t+d&&h>r+d&&h>a+d&&h>s+d||h<t-d&&h<r-d&&h<a-d&&h<s-d||c>e+d&&c>n+d&&c>i+d&&c>o+d||c<e-d&&c<n-d&&c<i-d&&c<o-d)return!1;var f=l["e"](e,t,n,r,i,a,o,s,c,h,null);return f<=d/2}var c=n("PzXq"),h=n("qNXd"),d=2*Math.PI;function f(e,t,n,r,i,a,o,s,l){if(0===o)return!1;var u=o;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(r-i)%d<1e-4)return!0;if(a){var f=r;r=Object(h["a"])(i),i=Object(h["a"])(f)}else r=Object(h["a"])(r),i=Object(h["a"])(i);r>i&&(i+=d);var p=Math.atan2(l,s);return p<0&&(p+=d),p>=r&&p<=i||p+d>=r&&p+d<=i}var p=n("YOYE"),g=o["a"].CMD,m=2*Math.PI,v=1e-4;function y(e,t){return Math.abs(e-t)<v}var b=[-1,-1,-1],_=[-1,-1];function x(){var e=_[0];_[0]=_[1],_[1]=e}function w(e,t,n,r,i,a,o,s,u,c){if(c>t&&c>r&&c>a&&c>s||c<t&&c<r&&c<a&&c<s)return 0;var h=l["f"](t,r,a,s,c,b);if(0===h)return 0;for(var d=0,f=-1,p=void 0,g=void 0,m=0;m<h;m++){var v=b[m],y=0===v||1===v?.5:1,w=l["a"](e,n,i,o,v);w<u||(f<0&&(f=l["c"](t,r,a,s,_),_[1]<_[0]&&f>1&&x(),p=l["a"](t,r,a,s,_[0]),f>1&&(g=l["a"](t,r,a,s,_[1]))),2===f?v<_[0]?d+=p<t?y:-y:v<_[1]?d+=g<p?y:-y:d+=s<g?y:-y:v<_[0]?d+=p<t?y:-y:d+=s<p?y:-y)}return d}function S(e,t,n,r,i,a,o,s){if(s>t&&s>r&&s>a||s<t&&s<r&&s<a)return 0;var u=l["m"](t,r,a,s,b);if(0===u)return 0;var c=l["j"](t,r,a);if(c>=0&&c<=1){for(var h=0,d=l["h"](t,r,a,c),f=0;f<u;f++){var p=0===b[f]||1===b[f]?.5:1,g=l["h"](e,n,i,b[f]);g<o||(b[f]<c?h+=d<t?p:-p:h+=a<d?p:-p)}return h}p=0===b[0]||1===b[0]?.5:1,g=l["h"](e,n,i,b[0]);return g<o?0:a<t?p:-p}function T(e,t,n,r,i,a,o,s){if(s-=t,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);b[0]=-l,b[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=m-1e-4){r=0,i=m;var c=a?1:-1;return o>=b[0]+e&&o<=b[1]+e?c:0}if(r>i){var h=r;r=i,i=h}r<0&&(r+=m,i+=m);for(var d=0,f=0;f<2;f++){var p=b[f];if(p+e>o){var g=Math.atan2(s,p);c=a?1:-1;g<0&&(g=m+g),(g>=r&&g<=i||g+m>=r&&g+m<=i)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),d+=c)}}return d}function O(e,t,n,r,i){for(var a,o,l=e.data,h=e.len(),d=0,m=0,v=0,b=0,_=0,x=0;x<h;){var O=l[x++],M=1===x;switch(O===g.M&&x>1&&(n||(d+=Object(p["a"])(m,v,b,_,r,i))),M&&(m=l[x],v=l[x+1],b=m,_=v),O){case g.M:b=l[x++],_=l[x++],m=b,v=_;break;case g.L:if(n){if(s["a"](m,v,l[x],l[x+1],t,r,i))return!0}else d+=Object(p["a"])(m,v,l[x],l[x+1],r,i)||0;m=l[x++],v=l[x++];break;case g.C:if(n){if(u(m,v,l[x++],l[x++],l[x++],l[x++],l[x],l[x+1],t,r,i))return!0}else d+=w(m,v,l[x++],l[x++],l[x++],l[x++],l[x],l[x+1],r,i)||0;m=l[x++],v=l[x++];break;case g.Q:if(n){if(c["a"](m,v,l[x++],l[x++],l[x],l[x+1],t,r,i))return!0}else d+=S(m,v,l[x++],l[x++],l[x],l[x+1],r,i)||0;m=l[x++],v=l[x++];break;case g.A:var E=l[x++],A=l[x++],C=l[x++],I=l[x++],D=l[x++],L=l[x++];x+=1;var P=!!(1-l[x++]);a=Math.cos(D)*C+E,o=Math.sin(D)*I+A,M?(b=a,_=o):d+=Object(p["a"])(m,v,a,o,r,i);var k=(r-E)*I/C+E;if(n){if(f(E,A,I,D,D+L,P,t,k,i))return!0}else d+=T(E,A,I,D,D+L,P,k,i);m=Math.cos(D+L)*C+E,v=Math.sin(D+L)*I+A;break;case g.R:b=m=l[x++],_=v=l[x++];var R=l[x++],N=l[x++];if(a=b+R,o=_+N,n){if(s["a"](b,_,a,_,t,r,i)||s["a"](a,_,a,o,t,r,i)||s["a"](a,o,b,o,t,r,i)||s["a"](b,o,b,_,t,r,i))return!0}else d+=Object(p["a"])(a,_,a,o,r,i),d+=Object(p["a"])(b,o,b,_,r,i);break;case g.Z:if(n){if(s["a"](m,v,b,_,t,r,i))return!0}else d+=Object(p["a"])(m,v,b,_,r,i);m=b,v=_;break}}return n||y(v,_)||(d+=Object(p["a"])(m,v,b,_,r,i)||0),0!==d}function M(e,t,n){return O(e,0,!1,t,n)}function E(e,t,n,r){return O(e,t,!0,n,r)}var A=n("a0Kb"),C=n("Rj4u"),I=n("kJzX"),D=Object(A["defaults"])({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},i["b"]),L={style:Object(A["defaults"])({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},i["a"].style)},P=["x","y","rotation","scaleX","scaleY","originX","originY","invisible","culling","z","z2","zlevel","parent"],k=function(e){function t(t){return e.call(this,t)||this}return Object(r["b"])(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var o=i.style;for(var s in r)o[s]!==r[s]&&(o[s]=r[s]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var l=0;l<P.length;++l)i[P[l]]=this[P[l]];i.__dirty|=a["a"].REDARAW_BIT}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=Object(A["keys"])(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var a=n[i],o=t[a];"style"===a?this.style?Object(A["extend"])(this.style,o):this.useStyle(o):"shape"===a?Object(A["extend"])(this.shape,o):e.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if("none"!==e){if(Object(A["isString"])(e)){var t=Object(C["lum"])(e,0);return t>.5?I["a"]:t>.2?I["c"]:I["d"]}if(e)return I["d"]}return I["a"]},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(Object(A["isString"])(t)){var n=this.__zr,r=!(!n||!n.isDarkMode()),i=Object(C["lum"])(e,0)<I["b"];if(r===i)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=~t.SHAPE_CHANGED_BIT},t.prototype.createPathProxy=function(){this.path=new o["a"](!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,t=e.fill;return null!=t&&"none"!==t},t.prototype.getBoundingRect=function(){var e=this._rect,n=this.style,r=!e;if(r){var i=!1;this.path||(i=!0,this.createPathProxy());var a=this.path;(i||this.__dirty&t.SHAPE_CHANGED_BIT)&&(a.beginPath(),this.buildPath(a,this.shape,!1),this.pathUpdated()),e=a.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectWithStroke||(this._rectWithStroke=e.clone());if(this.__dirty||r){o.copy(e);var s=n.strokeNoScale?this.getLineScale():1,l=n.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;l=Math.max(l,null==u?4:u)}s>1e-10&&(o.width+=l/s,o.height+=l/s,o.x-=l/s/2,o.y-=l/s/2)}return o}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),E(a,o/s,e,t)))return!0}if(this.hasFill())return M(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=t.SHAPE_CHANGED_BIT,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"===typeof e?n[e]=t:Object(A["extend"])(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&t.SHAPE_CHANGED_BIT)},t.prototype.createStyle=function(e){return Object(A["createObject"])(D,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=Object(A["extend"])({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s,l=!(n&&i);if(n&&n.shape?a?i?s=n.shape:(s=Object(A["extend"])({},r.shape),Object(A["extend"])(s,n.shape)):(s=Object(A["extend"])({},i?this.shape:r.shape),Object(A["extend"])(s,n.shape)):l&&(s=r.shape),s)if(a){this.shape=Object(A["extend"])({},this.shape);for(var u={},c=Object(A["keys"])(s),h=0;h<c.length;h++){var d=c[h];"object"===typeof s[d]?this.shape[d]=s[d]:u[d]=s[d]}this._transitionState(t,{shape:u},o)}else this.shape=s,this.dirtyShape()},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var a=t[i];a.shape&&(n=n||{},this._mergeStyle(n,a.shape))}return n&&(r.shape=n),r},t.prototype.getAnimationStyleProps=function(){return L},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return Object(r["b"])(n,t),n.prototype.getDefaultStyle=function(){return Object(A["clone"])(e.style)},n.prototype.getDefaultShape=function(){return Object(A["clone"])(e.shape)},n}(t);for(var i in e)"function"===typeof e[i]&&(n.prototype[i]=e[i]);return n},t.SHAPE_CHANGED_BIT=4,t.initDefaultProps=function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=a["a"].REDARAW_BIT|i["c"].STYLE_CHANGED_BIT|t.SHAPE_CHANGED_BIT}(),t}(i["c"]);t["b"]=k},H7G2:function(e,t,n){var r=n("HIsA"),i=n("icJ8"),a=n("hXyk"),o=n("kI7s"),s=i.has,l=i.toKey,u=function(e,t,n){var r=s(e,t,n);if(r)return!0;var i=o(t);return null!==i&&u(e,i,n)};r({target:"Reflect",stat:!0},{hasMetadata:function(e,t){var n=arguments.length<3?void 0:l(arguments[2]);return u(e,a(t),n)}})},HC6C:function(e,t,n){"use strict";var r=n("GUTS"),i=n("hXyk"),a=n("7+LC"),o=n("ma2j"),s="toString",l=RegExp.prototype,u=l[s],c=a((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),h=u.name!=s;(c||h)&&r(RegExp.prototype,s,(function(){var e=i(this),t=String(e.source),n=e.flags,r=String(void 0===n&&e instanceof RegExp&&!("flags"in l)?o.call(e):n);return"/"+t+"/"+r}),{unsafe:!0})},HC6f:function(e,t,n){"use strict";var r=n("2JD6"),i=n("Hiyu"),a=n("13/t"),o=n("D8FR"),s=n("masK"),l=n("7+LC"),u=n("xOST"),c=n("PaPB"),h=n("2I03"),d=n("PM2V"),f=n("4CZv"),p=n("kI7s"),g=n("UPu9"),m=n("szjD").f,v=n("2RC6").f,y=n("+kF3"),b=n("J7X1"),_=n("twJ5"),x=_.get,w=_.set,S="ArrayBuffer",T="DataView",O="prototype",M="Wrong length",E="Wrong index",A=r[S],C=A,I=r[T],D=I&&I[O],L=Object.prototype,P=r.RangeError,k=f.pack,R=f.unpack,N=function(e){return[255&e]},j=function(e){return[255&e,e>>8&255]},F=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},z=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},B=function(e){return k(e,23,4)},V=function(e){return k(e,52,8)},G=function(e,t){v(e[O],t,{get:function(){return x(this)[t]}})},H=function(e,t,n,r){var i=d(n),a=x(e);if(i+t>a.byteLength)throw P(E);var o=x(a.buffer).bytes,s=i+a.byteOffset,l=o.slice(s,s+t);return r?l:l.reverse()},U=function(e,t,n,r,i,a){var o=d(n),s=x(e);if(o+t>s.byteLength)throw P(E);for(var l=x(s.buffer).bytes,u=o+s.byteOffset,c=r(+i),h=0;h<t;h++)l[u+h]=c[a?h:t-h-1]};if(a){if(!l((function(){A(1)}))||!l((function(){new A(-1)}))||l((function(){return new A,new A(1.5),new A(NaN),A.name!=S}))){C=function(e){return u(this,C),new A(d(e))};for(var W,X=C[O]=A[O],Y=m(A),K=0;Y.length>K;)(W=Y[K++])in C||o(C,W,A[W]);X.constructor=C}g&&p(D)!==L&&g(D,L);var q=new I(new C(2)),Z=D.setInt8;q.setInt8(0,2147483648),q.setInt8(1,2147483649),!q.getInt8(0)&&q.getInt8(1)||s(D,{setInt8:function(e,t){Z.call(this,e,t<<24>>24)},setUint8:function(e,t){Z.call(this,e,t<<24>>24)}},{unsafe:!0})}else C=function(e){u(this,C,S);var t=d(e);w(this,{bytes:y.call(new Array(t),0),byteLength:t}),i||(this.byteLength=t)},I=function(e,t,n){u(this,I,T),u(e,C,T);var r=x(e).byteLength,a=c(t);if(a<0||a>r)throw P("Wrong offset");if(n=void 0===n?r-a:h(n),a+n>r)throw P(M);w(this,{buffer:e,byteLength:n,byteOffset:a}),i||(this.buffer=e,this.byteLength=n,this.byteOffset=a)},i&&(G(C,"byteLength"),G(I,"buffer"),G(I,"byteLength"),G(I,"byteOffset")),s(I[O],{getInt8:function(e){return H(this,1,e)[0]<<24>>24},getUint8:function(e){return H(this,1,e)[0]},getInt16:function(e){var t=H(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=H(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return z(H(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return z(H(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return R(H(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return R(H(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){U(this,1,e,N,t)},setUint8:function(e,t){U(this,1,e,N,t)},setInt16:function(e,t){U(this,2,e,j,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){U(this,2,e,j,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){U(this,4,e,F,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){U(this,4,e,F,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){U(this,4,e,B,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){U(this,8,e,V,t,arguments.length>2?arguments[2]:void 0)}});b(C,S),b(I,T),e.exports={ArrayBuffer:C,DataView:I}},HFCj:function(e,t,n){"use strict";var r=n("a1z2"),i=n("ob7Q"),a=n("xwgP"),o=n.n(a),s=function(){var e=0,t={util:{encode:function(e){return e instanceof n?new n(e.type,t.util.encode(e.content),e.alias):"Array"===t.util.type(e)?e.map(t.util.encode):e.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).match(/\[object (\w+)\]/)[1]},objId:function(t){return t["__id"]||Object.defineProperty(t,"__id",{value:++e}),t["__id"]},clone:function(e,n){var r=t.util.type(e);switch(n=n||{},r){case"Object":if(n[t.util.objId(e)])return n[t.util.objId(e)];a={};for(var i in n[t.util.objId(e)]=a,e)e.hasOwnProperty(i)&&(a[i]=t.util.clone(e[i],n));return a;case"Array":if(n[t.util.objId(e)])return n[t.util.objId(e)];var a=[];return n[t.util.objId(e)]=a,e.forEach((function(e,r){a[r]=t.util.clone(e,n)})),a}return e}},languages:{extend:function(e,n){var r=t.util.clone(t.languages[e]);for(var i in n)r[i]=n[i];return r},insertBefore:function(e,n,r,i){i=i||t.languages;var a=i[e];if(2==arguments.length){for(var o in r=arguments[1],r)r.hasOwnProperty(o)&&(a[o]=r[o]);return a}var s={};for(var l in a)if(a.hasOwnProperty(l)){if(l==n)for(var o in r)r.hasOwnProperty(o)&&(s[o]=r[o]);s[l]=a[l]}return t.languages.DFS(t.languages,(function(t,n){n===i[e]&&t!=e&&(this[t]=s)})),i[e]=s},DFS:function(e,n,r,i){for(var a in i=i||{},e)e.hasOwnProperty(a)&&(n.call(e,a,e[a],r||a),"Object"!==t.util.type(e[a])||i[t.util.objId(e[a])]?"Array"!==t.util.type(e[a])||i[t.util.objId(e[a])]||(i[t.util.objId(e[a])]=!0,t.languages.DFS(e[a],n,a,i)):(i[t.util.objId(e[a])]=!0,t.languages.DFS(e[a],n,null,i)))}},plugins:{},highlight:function(e,r,i){var a={code:e,grammar:r,language:i};return a.tokens=t.tokenize(a.code,a.grammar),n.stringify(t.util.encode(a.tokens),a.language)},matchGrammar:function(e,n,r,i,a,o,s){var l=t.Token;for(var u in r)if(r.hasOwnProperty(u)&&r[u]){if(u==s)return;var c=r[u];c="Array"===t.util.type(c)?c:[c];for(var h=0;h<c.length;++h){var d=c[h],f=d.inside,p=!!d.lookbehind,g=!!d.greedy,m=0,v=d.alias;if(g&&!d.pattern.global){var y=d.pattern.toString().match(/[imuy]*$/)[0];d.pattern=RegExp(d.pattern.source,y+"g")}d=d.pattern||d;for(var b=i,_=a;b<n.length;_+=n[b].length,++b){var x=n[b];if(n.length>e.length)return;if(!(x instanceof l)){if(g&&b!=n.length-1){d.lastIndex=_;var w=d.exec(e);if(!w)break;for(var S=w.index+(p?w[1].length:0),T=w.index+w[0].length,O=b,M=_,E=n.length;O<E&&(M<T||!n[O].type&&!n[O-1].greedy);++O)M+=n[O].length,S>=M&&(++b,_=M);if(n[b]instanceof l)continue;A=O-b,x=e.slice(_,M),w.index-=_}else{d.lastIndex=0;w=d.exec(x);var A=1}if(w){p&&(m=w[1]?w[1].length:0);S=w.index+m,w=w[0].slice(m),T=S+w.length;var C=x.slice(0,S),I=x.slice(T),D=[b,A];C&&(++b,_+=C.length,D.push(C));var L=new l(u,f?t.tokenize(w,f):w,v,w,g);if(D.push(L),I&&D.push(I),Array.prototype.splice.apply(n,D),1!=A&&t.matchGrammar(e,n,r,b,_,!0,u),o)break}else if(o)break}}}}},hooks:{add:function(){}},tokenize:function(e,n,r){var i=[e],a=n.rest;if(a){for(var o in a)n[o]=a[o];delete n.rest}return t.matchGrammar(e,i,n,0,0,!1),i}},n=t.Token=function(e,t,n,r,i){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length,this.greedy=!!i};return n.stringify=function(e,r,i){if("string"==typeof e)return e;if("Array"===t.util.type(e))return e.map((function(t){return n.stringify(t,r,e)})).join("");var a={type:e.type,content:n.stringify(e.content,r,i),tag:"span",classes:["token",e.type],attributes:{},language:r,parent:i};if(e.alias){var o="Array"===t.util.type(e.alias)?e.alias:[e.alias];Array.prototype.push.apply(a.classes,o)}var s=Object.keys(a.attributes).map((function(e){return e+'="'+(a.attributes[e]||"").replace(/"/g,""")+'"'})).join(" ");return"<"+a.tag+' class="'+a.classes.join(" ")+'"'+(s?" "+s:"")+">"+a.content+"</"+a.tag+">"},t}();s.languages.markup={comment:/<!--[\s\S]*?-->/,prolog:/<\?[\s\S]+?\?>/,doctype:/<!DOCTYPE[\s\S]+?>/i,cdata:/<!\[CDATA\[[\s\S]*?]]>/i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/i,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/i,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i},s.languages.markup["tag"].inside["attr-value"].inside["entity"]=s.languages.markup["entity"],s.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes["title"]=e.content.replace(/&/,"&"))})),Object.defineProperty(s.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:s.languages[t]},n["cdata"]=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:s.languages[t]};var i={};i[e]={pattern:RegExp(/(<__[\s\S]*?>)(?:<!\[CDATA\[[\s\S]*?\]\]>\s*|[\s\S])*?(?=<\/__>)/.source.replace(/__/g,e),"i"),lookbehind:!0,greedy:!0,inside:r},s.languages.insertBefore("markup","cdata",i)}}),s.languages.xml=s.languages.extend("markup",{}),s.languages.html=s.languages.markup,s.languages.mathml=s.languages.markup,s.languages.svg=s.languages.markup,function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|-=|\+\+?|\+=|!=?|~|\*\*?|\*=|\/=?|%=?|<<=?|>>=?|<=?|>=?|==?|&&?|&=|\^=?|\|\|?|\|=|\?|:/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)\w+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b\w+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+?)\s*(?:\r?\n|\r)(?:[\s\S])*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:n},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s*(?:\r?\n|\r)(?:[\s\S])*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0},{pattern:/(["'])(?:\\[\s\S]|\$\([^)]+\)|`[^`]+`|(?!\1)[^\\])*\1/,greedy:!0,inside:n}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:n.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|==?|!=?|=~|<<[<-]?|[&\d]?>>|\d?[<>]&?|&[>&]?|\|[&|]?|<=?|>=?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}};for(var r=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=n.variable[1].inside,a=0;a<r.length;a++)i[r[a]]=e.languages.bash[r[a]];e.languages.shell=e.languages.bash}(s),s.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/},s.languages.c=s.languages.extend("clike",{"class-name":{pattern:/(\b(?:enum|struct)\s+)\w+/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/,number:/(?:\b0x(?:[\da-f]+\.?[\da-f]*|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?)[ful]*/i}),s.languages.insertBefore("c","string",{macro:{pattern:/(^\s*)#\s*[a-z]+(?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,alias:"property",inside:{string:{pattern:/(#\s*include\s*)(?:<.+?>|("|')(?:\\?.)+?\2)/,lookbehind:!0},directive:{pattern:/(#\s*)\b(?:define|defined|elif|else|endif|error|ifdef|ifndef|if|import|include|line|pragma|undef|using)\b/,lookbehind:!0,alias:"keyword"}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete s.languages.c["boolean"],s.languages.cpp=s.languages.extend("c",{"class-name":{pattern:/(\b(?:class|enum|struct)\s+)\w+/,lookbehind:!0},keyword:/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|class|compl|const|constexpr|const_cast|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|float|for|friend|goto|if|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|mutable|namespace|new|noexcept|nullptr|operator|private|protected|public|register|reinterpret_cast|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+\.?[\da-f']*|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+\.?[\d']*|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]*/i,greedy:!0},operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),s.languages.insertBefore("cpp","string",{"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-]+[\s\S]*?(?:;|(?=\s*\{))/,inside:{rule:/@[\w-]+/}},url:{pattern:RegExp("url\\((?:"+t.source+"|[^\n\r()]*)\\)","i"),inside:{function:/^url/i,punctuation:/^\(|\)$/}},selector:RegExp("[^{}\\s](?:[^{};\"']|"+t.source+")*?(?=\\s*\\{)"),string:{pattern:t,greedy:!0},property:/[-_a-z\xA0-\uFFFF][-\w\xA0-\uFFFF]*(?=\s*:)/i,important:/!important\b/i,function:/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:,]/},e.languages.css["atrule"].inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),e.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:n.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:e.languages.css}},alias:"language-css"}},n.tag))}(s),s.languages.css.selector={pattern:s.languages.css.selector,inside:{"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-:.\w]+/,id:/#[-:.\w]+/,attribute:{pattern:/\[(?:[^[\]"']|("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1)*\]/,greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)[-*\w\xA0-\uFFFF]*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},attribute:{pattern:/^(\s*)[-\w\xA0-\uFFFF]+/,lookbehind:!0},value:[/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,{pattern:/(=\s*)[-\w\xA0-\uFFFF]+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],punctuation:/[()]/}},s.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--[-_a-z\xA0-\uFFFF][-\w\xA0-\uFFFF]*/i,lookbehind:!0}}),s.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:/#[\da-f]{3,8}/i,entity:/\\[\da-f]{1,8}/i,unit:{pattern:/(\d)(?:%|[a-z]+)/,lookbehind:!0},number:/-?[\d.]+/}),s.languages.javascript=s.languages.extend("clike",{"class-name":[s.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])[_$A-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|})\s*)(?:catch|finally)\b/,lookbehind:!0},{pattern:/(^|[^.])\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,function:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,operator:/-[-=]?|\+[+=]?|!=?=?|<<?=?|>>?>?=?|=(?:==?|>)?|&[&=]?|\|[|=]?|\*\*?=?|\/=?|~|\^=?|%=?|\?|\.{3}/}),s.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,s.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^/\\\[\r\n])+\/[gimyus]{0,6}(?=\s*($|[\r\n,.;})\]]))/,lookbehind:!0,greedy:!0},"function-variable":{pattern:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)?\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\))/,lookbehind:!0,inside:s.languages.javascript},{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=>)/i,inside:s.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*=>)/,lookbehind:!0,inside:s.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\s*)\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*\{)/,lookbehind:!0,inside:s.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),s.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}|(?!\${)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\${|}$/,alias:"punctuation"},rest:s.languages.javascript}},string:/[\s\S]+/}}}),s.languages.markup&&s.languages.markup.tag.addInlined("script","javascript"),s.languages.js=s.languages.javascript,function(e){var t=e.util.clone(e.languages.javascript);e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=/<\/?(?:[\w.:-]+\s*(?:\s+(?:[\w.:-]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s{'">=]+|\{(?:\{(?:\{[^}]*\}|[^{}])*\}|[^{}])+\}))?|\{\.{3}[a-z_$][\w$]*(?:\.[a-z_$][\w$]*)*\}))*\s*\/?)?>/i,e.languages.jsx.tag.inside["tag"].pattern=/^<\/?[^\s>\/]*/i,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">]+)/i,e.languages.jsx.tag.inside["tag"].inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.insertBefore("inside","attr-name",{spread:{pattern:/\{\.{3}[a-z_$][\w$]*(?:\.[a-z_$][\w$]*)*\}/,inside:{punctuation:/\.{3}|[{}.]/,"attr-value":/\w+/}}},e.languages.jsx.tag),e.languages.insertBefore("inside","attr-value",{script:{pattern:/=(\{(?:\{(?:\{[^}]*\}|[^}])*\}|[^}])+\})/i,inside:{"script-punctuation":{pattern:/^=(?={)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.languages.jsx.tag);var n=function e(t){return t?"string"===typeof t?t:"string"===typeof t.content?t.content:t.content.map(e).join(""):""},r=function t(r){for(var i=[],a=0;a<r.length;a++){var o=r[a],s=!1;if("string"!==typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?i.length>0&&i[i.length-1].tagName===n(o.content[0].content[1])&&i.pop():"/>"===o.content[o.content.length-1].content||i.push({tagName:n(o.content[0].content[1]),openedBraces:0}):i.length>0&&"punctuation"===o.type&&"{"===o.content?i[i.length-1].openedBraces++:i.length>0&&i[i.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?i[i.length-1].openedBraces--:s=!0),(s||"string"===typeof o)&&i.length>0&&0===i[i.length-1].openedBraces){var l=n(o);a<r.length-1&&("string"===typeof r[a+1]||"plain-text"===r[a+1].type)&&(l+=n(r[a+1]),r.splice(a+1,1)),a>0&&("string"===typeof r[a-1]||"plain-text"===r[a-1].type)&&(l=n(r[a-1])+l,r.splice(a-1,1),a--),r[a]=new e.Token("plain-text",l,null,l)}o.content&&"string"!==typeof o.content&&t(o.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||r(e.tokens)}))}(s),function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^\s*(?:\/{3}|\*|\/\*\*)\s*@(?:param|arg|arguments)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^\s*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function n(t,n){var r="doc-comment",i=e.languages[t];if(i){var a=i[r];if(!a){var o={};o[r]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,alias:"comment"},i=e.languages.insertBefore(t,"comment",o),a=i[r]}if(a instanceof RegExp&&(a=i[r]={pattern:a}),Array.isArray(a))for(var s=0,l=a.length;s<l;s++)a[s]instanceof RegExp&&(a[s]={pattern:a[s]}),n(a[s]);else n(a)}}function r(e,t){"string"===typeof e&&(e=[e]),e.forEach((function(e){n(e,(function(e){e.inside||(e.inside={}),e.inside.rest=t}))}))}Object.defineProperty(t,"addSupport",{value:r}),t.addSupport(["java","javascript","php"],t)}(s),function(e){var t=/\b(?:abstract|continue|for|new|switch|assert|default|goto|package|synchronized|boolean|do|if|private|this|break|double|implements|protected|throw|byte|else|import|public|throws|case|enum|instanceof|return|transient|catch|extends|int|short|try|char|final|interface|static|void|class|finally|long|strictfp|volatile|const|float|native|super|while|var|null|exports|module|open|opens|provides|requires|to|transitive|uses|with)\b/,n=/\b[A-Z](?:\w*[a-z]\w*)?\b/;e.languages.java=e.languages.extend("clike",{"class-name":[n,/\b[A-Z]\w*(?=\s+\w+\s*[;,=())])/],keyword:t,function:[e.languages.clike["function"],{pattern:/(\:\:)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x[\da-f_]*\.?[\da-f_p+-]+\b|(?:\b\d[\d_]*\.?[\d_]*|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|([-+&|])\2|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","class-name",{annotation:{alias:"punctuation",pattern:/(^|[^.])@\w+/,lookbehind:!0},namespace:{pattern:/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)[a-z]\w*(\.[a-z]\w*)+/,lookbehind:!0,inside:{punctuation:/\./}},generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":n,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(s),function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,i,a){if(n.language===r){var o=n.tokenStack=[];n.code=n.code.replace(i,(function(e){if("function"===typeof a&&!a(e))return e;var i,s=o.length;while(-1!==n.code.indexOf(i=t(r,s)))++s;return o[s]=e,i})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var i=0,a=Object.keys(n.tokenStack);o(n.tokens)}function o(s){for(var l=0;l<s.length;l++){if(i>=a.length)break;var u=s[l];if("string"===typeof u||u.content&&"string"===typeof u.content){var c=a[i],h=n.tokenStack[c],d="string"===typeof u?u:u.content,f=t(r,c),p=d.indexOf(f);if(p>-1){++i;var g=d.substring(0,p),m=new e.Token(r,e.tokenize(h,n.grammar),"language-"+r,h),v=d.substring(p+f.length),y=[];g&&y.push.apply(y,o([g])),y.push(m),v&&y.push.apply(y,o([v])),"string"===typeof u?s.splice.apply(s,[l,1].concat(y)):u.content=y}}else u.content&&o(u.content)}return s}}}})}(s),function(e){e.languages.php=e.languages.extend("clike",{keyword:/\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|class|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|eval|exit|extends|final|finally|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|new|or|parent|print|private|protected|public|require|require_once|return|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,boolean:{pattern:/\b(?:false|true)\b/i,alias:"constant"},constant:[/\b[A-Z_][A-Z0-9_]*\b/,/\b(?:null)\b/i],comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0}}),e.languages.insertBefore("php","string",{"shell-comment":{pattern:/(^|[^\\])#.*/,lookbehind:!0,alias:"comment"}}),e.languages.insertBefore("php","comment",{delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"}}),e.languages.insertBefore("php","keyword",{variable:/\$+(?:\w+\b|(?={))/i,package:{pattern:/(\\|namespace\s+|use\s+)[\w\\]+/,lookbehind:!0,inside:{punctuation:/\\/}}}),e.languages.insertBefore("php","operator",{property:{pattern:/(->)[\w]+/,lookbehind:!0}});var t={pattern:/{\$(?:{(?:{[^{}]+}|[^{}]+)}|[^{}])+}|(^|[^\\{])\$+(?:\w+(?:\[.+?]|->\w+)*)/,lookbehind:!0,inside:{rest:e.languages.php}};e.languages.insertBefore("php","string",{"nowdoc-string":{pattern:/<<<'([^']+)'(?:\r\n?|\n)(?:.*(?:\r\n?|\n))*?\1;/,greedy:!0,alias:"string",inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},"heredoc-string":{pattern:/<<<(?:"([^"]+)"(?:\r\n?|\n)(?:.*(?:\r\n?|\n))*?\1;|([a-z_]\w*)(?:\r\n?|\n)(?:.*(?:\r\n?|\n))*?\2;)/i,greedy:!0,alias:"string",inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:t}},"single-quoted-string":{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,alias:"string",inside:{interpolation:t}}}),delete e.languages.php["string"],e.hooks.add("before-tokenize",(function(t){if(/<\?/.test(t.code)){var n=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#)(?:[^?\n\r]|\?(?!>))*|\/\*[\s\S]*?(?:\*\/|$))*?(?:\?>|$)/gi;e.languages["markup-templating"].buildPlaceholders(t,"php",n)}})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(s),function(e){var t=e.languages.javascript,n=/{(?:[^{}]|{(?:[^{}]|{[^{}]*})*})+}/.source,r="(@(?:param|arg|argument|property)\\s+(?:"+n+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/[$\w\xA0-\uFFFF.]+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[[$\w\xA0-\uFFFF.]+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{punctuation:/[.,:?=<>|{}()[\]]/}},{pattern:/(@(?:augments|extends|class|interface|memberof!?|this)\s+)[A-Z]\w*(?:\.[A-Z]\w*)*/,lookbehind:!0,inside:{punctuation:/\./}}],example:{pattern:/(@example\s+)[^@]+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^(\s*(?:\*\s*)?).+$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}(s),s.languages.actionscript=s.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|else|extends|finally|for|function|if|implements|import|in|instanceof|interface|internal|is|native|new|null|package|private|protected|public|return|super|switch|this|throw|try|typeof|use|var|void|while|with|dynamic|each|final|get|include|namespace|native|override|set|static)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),s.languages.actionscript["class-name"].alias="function",s.languages.markup&&s.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:{rest:s.languages.markup}}}),function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},rest:e.languages.javascript}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(s),function(e){e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function"].source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:(?:Uint|Int)(?:8|16|32)|Uint8Clamped|Float(?:32|64))?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|(?:Weak)?(?:Set|Map)|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.javascript["keyword"].unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:/(\.\s*)#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*/,lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|location|navigator|performance|(?:local|session)Storage|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var t=["function","function-variable","method","method-variable","property-access"],n=0;n<t.length;n++){var r=t[n],i=e.languages.javascript[r];"RegExp"===e.util.type(i)&&(i=e.languages.javascript[r]={pattern:i});var a=i.inside||{};i.inside=a,a["maybe-class-name"]=/^[A-Z][\s\S]*/}}(s),function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Nn]umber|[Ss]tring|[Bb]oolean|Function|any|mixed|null|void)\b/,alias:"tag"}]}),e.languages.flow["function-variable"].pattern=/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/i,delete e.languages.flow["parameter"],e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:type|opaque|declare|Class)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:await|Diff|Exact|Keys|ObjMap|PropertyType|Shape|Record|Supertype|Subtype|Enum)\b(?!\$)/,lookbehind:!0})}(s),s.languages.n4js=s.languages.extend("javascript",{keyword:/\b(?:any|Array|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),s.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),s.languages.n4jsd=s.languages.n4js,s.languages.typescript=s.languages.extend("javascript",{keyword:/\b(?:abstract|as|async|await|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|is|keyof|let|module|namespace|new|null|of|package|private|protected|public|readonly|return|require|set|static|super|switch|this|throw|try|type|typeof|var|void|while|with|yield)\b/,builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),s.languages.ts=s.languages.typescript,function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside["interpolation"],i=r.inside["interpolation-punctuation"],a=r.pattern.source;function o(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function s(e,t){return"___"+t.toUpperCase()+"_"+e+"___"}function l(t,n,r){var i={code:t,grammar:n,language:r};return e.hooks.run("before-tokenize",i),i.tokens=e.tokenize(i.code,i.grammar),e.hooks.run("after-tokenize",i),i.tokens}function u(t){var n={};n["interpolation-punctuation"]=i;var a=e.tokenize(t,n);if(3===a.length){var o=[1,1];o.push.apply(o,l(a[1],e.languages.javascript,"javascript")),a.splice.apply(a,o)}return new e.Token("interpolation",a,r.alias,t)}function c(t,n,r){var i=e.tokenize(t,{interpolation:{pattern:RegExp(a),lookbehind:!0}}),o=0,c={},h=i.map((function(e){if("string"===typeof e)return e;var n,i=e.content;while(-1!==t.indexOf(n=s(o++,r)));return c[n]=i,n})).join(""),d=l(h,n,r),f=Object.keys(c);function p(e){for(var t=0;t<e.length;t++){if(o>=f.length)return;var n=e[t];if("string"===typeof n||"string"===typeof n.content){var r=f[o],i="string"===typeof n?n:n.content,a=i.indexOf(r);if(-1!==a){++o;var s=i.substring(0,a),l=u(c[r]),h=i.substring(a+r.length),d=[];if(s&&d.push(s),d.push(l),h){var g=[h];p(g),d.push.apply(d,g)}"string"===typeof n?(e.splice.apply(e,[t,1].concat(d)),t+=d.length-1):n.content=d}}else{var m=n.content;Array.isArray(m)?p(m):p([m])}}}return o=0,p(d),new e.Token(r,d,"language-"+r,t)}e.languages.javascript["template-string"]=[o("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),o("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),o("svg",/\bsvg/.source),o("markdown",/\b(?:md|markdown)/.source),o("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),t].filter(Boolean);var h={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function d(e){return"string"===typeof e?e:Array.isArray(e)?e.map(d).join(""):d(e.content)}e.hooks.add("after-tokenize",(function(t){function n(t){for(var r=0,i=t.length;r<i;r++){var a=t[r];if("string"!==typeof a){var o=a.content;if(Array.isArray(o))if("template-string"===a.type){var s=o[1];if(3===o.length&&"string"!==typeof s&&"embedded-code"===s.type){var l=d(s),u=s.alias,h=Array.isArray(u)?u[0]:u,f=e.languages[h];if(!f)continue;o[1]=c(l,f,h)}}else n(o);else"string"!==typeof o&&n([o])}}}t.language in h&&n(t.tokens)}))}(s),s.languages.graphql={comment:/#.*/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:true|false)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+)[a-zA-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:enum|fragment|implements|input|interface|mutation|on|query|scalar|schema|type|union)\b/,operator:/[!=|]|\.{3}/,punctuation:/[!(){}\[\]:=,]/,constant:/\b(?!ID\b)[A-Z][A-Z_\d]*\b/},function(e){var t=/(?:\\.|[^\\\n\r]|(?:\r?\n|\r)(?!\r?\n|\r))/.source;function n(e,n){return e=e.replace(/<inner>/g,t),n&&(e=e+"|"+e.replace(/_/g,"\\*")),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``.+?``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\r?\n|\r)|$)/.source.replace(/__/g,r),a=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\r?\n|\r)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+a+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+a+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+a+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/(^[ \t]*(?:\r?\n|\r))(?: {4}|\t).+(?:(?:\r?\n|\r)(?: {4}|\t).+)*/m,lookbehind:!0,alias:"keyword"},{pattern:/``.+?``|`[^`\r\n]+`/,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\r?\n|\r))[\s\S]+?(?=(?:\r?\n|\r)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\r?\n|\r)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#+.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__/.source,!0),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_/.source,!0),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+?\2/.source,!1),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)| ?\[(?:(?!\])<inner>)+\])/.source,!1),lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(\[)[^\]]+(?=\]$)/,lookbehind:!0},content:{pattern:/(^!?\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},string:{pattern:/"(?:\\.|[^"\\])*"(?=\)$)/}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){function t(e){if(e&&"string"!==typeof e)for(var n=0,r=e.length;n<r;n++){var i=e[n];if("code"===i.type){var a=i.content[1],o=i.content[3];if(a&&o&&"code-language"===a.type&&"code-block"===o.type&&"string"===typeof a.content){var s="language-"+a.content.trim().split(/\s+/)[0].toLowerCase();o.alias?"string"===typeof o.alias?o.alias=[o.alias,s]:o.alias.push(s):o.alias=[s]}}else t(i.content)}}"markdown"!==e.language&&"md"!==e.language||t(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,i=t.classes.length;r<i;r++){var a=t.classes[r],o=/language-(.+)/.exec(a);if(o){n=o[1];break}}var s=e.languages[n];if(s){var l=t.content.replace(/</g,"<").replace(/&/g,"&");t.content=e.highlight(l,s,n)}else if(n&&"none"!==n&&e.plugins.autoloader){var u="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes["id"]=u,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(u);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}})),e.languages.md=e.languages.markdown}(s),function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d+.*$/m]};var t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(t).forEach((function(n){var r=t[n],i=[];/^\w+$/.test(n)||i.push(/\w+/.exec(n)[0]),"diff"===n&&i.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:i}})),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}(s),s.languages.git={comment:/^#.*/m,deleted:/^[-\u2013].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/m,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/m}},coord:/^@@.*@@$/m,commit_sha1:/^commit \w{40}$/m},s.languages.go=s.languages.extend("clike",{keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,number:/(?:\b0x[a-f\d]+|(?:\b\d+\.?\d*|\B\.\d+)(?:e[-+]?\d+)?)i?/i,string:{pattern:/(["'`])(\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0}}),delete s.languages.go["class-name"],function(e){e.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/i,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:true|false)\b/,block:{pattern:/^(\s*~?\s*)[#\/]\S+?(?=\s*~?\s*$|\s)/i,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~\s]+/},e.hooks.add("before-tokenize",(function(t){var n=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;e.languages["markup-templating"].buildPlaceholders(t,"handlebars",n)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"handlebars")}))}(s),s.languages.json={property:{pattern:/"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,greedy:!0},comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,number:/-?\d+\.?\d*(e[+-]?\d+)?/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:true|false)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},s.languages.less=s.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-]+?(?:\([^{}]+\)|[^(){};])*?(?=\s*\{)/i,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\([^{}]*\)|[^{};@])*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/i,operator:/[+\-*\/]/}),s.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-]+.*?(?=[(;])/,lookbehind:!0,alias:"function"}}),s.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},builtin:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,symbol:{pattern:/^[^:=\r\n]+(?=\s*:(?!=))/m,inside:{variable:/\$+(?:[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:[/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,{pattern:/(\()(?:addsuffix|abspath|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:s|list)?)(?=[ \t])/,lookbehind:!0}],operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/},s.languages.objectivec=s.languages.extend("c",{keyword:/\b(?:asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while|in|self|super)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,string:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|@"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete s.languages.objectivec["class-name"],s.languages.ocaml={comment:/\(\*[\s\S]*?\*\)/,string:[{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},{pattern:/(['`])(?:\\(?:\d+|x[\da-f]+|.)|(?!\1)[^\\\r\n])\1/i,greedy:!0}],number:/\b(?:0x[\da-f][\da-f_]+|(?:0[bo])?\d[\d_]*\.?[\d_]*(?:e[+-]?[\d_]+)?)/i,type:{pattern:/\B['`]\w*/,alias:"variable"},directive:{pattern:/\B#\w+/,alias:"function"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|object|of|open|prefix|private|rec|then|sig|struct|to|try|type|val|value|virtual|where|while|with)\b/,boolean:/\b(?:false|true)\b/,operator:/:=|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lxor|lsl|lsr|mod|nor|or)\b/,punctuation:/[(){}\[\]|_.,:;]/},s.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:{{)*){(?!{)(?:[^{}]|{(?!{)(?:[^{}]|{(?!{)(?:[^{}])+})+})+}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]+?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^\s*)@\w+(?:\.\w+)*/i,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*\.?\d*|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},s.languages.python["string-interpolation"].inside["interpolation"].inside.rest=s.languages.python,s.languages.py=s.languages.python,s.languages.reason=s.languages.extend("clike",{comment:{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:mod|land|lor|lxor|lsl|lsr|asr)\b/}),s.languages.insertBefore("reason","class-name",{character:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,alias:"string"},constructor:{pattern:/\b[A-Z]\w*\b(?!\s*\.)/,alias:"variable"},label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete s.languages.reason["function"],function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t]+.+)*/m,lookbehind:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,inside:{atrule:/(?:@[\w-]+|[+=])/m}}}),delete e.languages.sass.atrule;var t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|or|not)\b/,{pattern:/(\s+)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s]+.*)/m,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/([ \t]*)\S(?:,?[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,?[^,\r\n]+)*)*/,lookbehind:!0}})}(s),s.languages.scss=s.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-]+(?:\([^()]+\)|[^(])*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()]|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}]+[:{][^}]+))/m,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[\w-]|\$[-\w]+|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),s.languages.insertBefore("scss","atrule",{keyword:[/@(?:if|else(?: if)?|for|each|while|import|extend|debug|warn|mixin|include|function|return|content)/i,{pattern:/( +)(?:from|through)(?= )/,lookbehind:!0}]}),s.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),s.languages.insertBefore("scss","function",{placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:true|false)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|or|not)(?=\s)/,lookbehind:!0}}),s.languages.scss["atrule"].inside.rest=s.languages.scss,s.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURNS?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+\.?\d*|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|IN|LIKE|NOT|OR|IS|DIV|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t={url:/url\((["']?).*?\1\)/i,string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:if|else|for|return|unless)(?=\s+|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,number:/\b\d+(?:\.\d+)?%?/,boolean:/\b(?:true|false)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.+|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],punctuation:/[{}()\[\];:,]/};t["interpolation"]={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^{|}$/,alias:"punctuation"},rest:t}},t["func"]={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:t}},e.languages.stylus={comment:{pattern:/(^|[^\\])(\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},"atrule-declaration":{pattern:/(^\s*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:t}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:(?:\{[^}]*\}|.+)|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:t}},statement:{pattern:/(^[ \t]*)(?:if|else|for|return|unless)[ \t]+.+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:t}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)[^{\r\n]*(?:;|[^{\r\n,](?=$)(?!(\r?\n|\r)(?:\{|\2[ \t]+)))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:t.interpolation}},rest:t}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\))?|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\))?|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t]+)))/m,lookbehind:!0,inside:{interpolation:t.interpolation,punctuation:/[{},]/}},func:t.func,string:t.string,interpolation:t.interpolation,punctuation:/[{}()\[\];:.]/}}(s);var l=s.util.clone(s.languages.typescript);s.languages.tsx=s.languages.extend("jsx",l),s.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^_`|~]+/i,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/},s.languages.yaml={scalar:{pattern:/([\-:]\s*(?:![^\s]+)?[ \t]*[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)[^\r\n]+(?:\2[^\r\n]+)*)/,lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:/(\s*(?:^|[:\-,[{\r\n?])[ \t]*(?:![^\s]+)?[ \t]*)[^\r\n{[\]},#\s]+?(?=\s*:\s)/,lookbehind:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:/([:\-,[{]\s*(?:![^\s]+)?[ \t]*)(?:\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?)?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?)(?=[ \t]*(?:$|,|]|}))/m,lookbehind:!0,alias:"number"},boolean:{pattern:/([:\-,[{]\s*(?:![^\s]+)?[ \t]*)(?:true|false)[ \t]*(?=$|,|]|})/im,lookbehind:!0,alias:"important"},null:{pattern:/([:\-,[{]\s*(?:![^\s]+)?[ \t]*)(?:null|~)[ \t]*(?=$|,|]|})/im,lookbehind:!0,alias:"important"},string:{pattern:/([:\-,[{]\s*(?:![^\s]+)?[ \t]*)("|')(?:(?!\2)[^\\\r\n]|\\.)*\2(?=[ \t]*(?:$|,|]|}|\s*#))/m,lookbehind:!0,greedy:!0},number:{pattern:/([:\-,[{]\s*(?:![^\s]+)?[ \t]*)[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+\.?\d*|\.?\d+)(?:e[+-]?\d+)?|\.inf|\.nan)[ \t]*(?=$|,|]|})/im,lookbehind:!0},tag:/![^\s]+/,important:/[&*][\w]+/,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},s.languages.yml=s.languages.yaml;var u=s,c={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","at-rule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},h=c,d={Prism:u,theme:h};function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}var g=/\r\n|\r|\n/,m=function(e){0===e.length?e.push({types:["plain"],content:"",empty:!0}):1===e.length&&""===e[0].content&&(e[0].empty=!0)},v=function(e,t){var n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},y=function(e){var t=[[]],n=[e],r=[0],i=[e.length],a=0,o=0,s=[],l=[s];while(o>-1){while((a=r[o]++)<i[o]){var u=void 0,c=t[o],h=n[o],d=h[a];if("string"===typeof d?(c=o>0?c:["plain"],u=d):(c=v(c,d.type),d.alias&&(c=v(c,d.alias)),u=d.content),"string"===typeof u){var f=u.split(g),p=f.length;s.push({types:c,content:f[0]});for(var y=1;y<p;y++)m(s),l.push(s=[]),s.push({types:c,content:f[y]})}else o++,t.push(c),n.push(u),r.push(0),i.push(u.length)}o--,t.pop(),n.pop(),r.pop(),i.pop()}return m(s),l},b=function(e,t){var n=e.plain,r=Object.create(null),i=e.styles.reduce((function(e,n){var r=n.languages,i=n.style;return r&&!r.includes(t)||n.types.forEach((function(t){var n=p({},e[t],i);e[t]=n})),e}),r);return i.root=n,i.plain=p({},n,{backgroundColor:null}),i};function _(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&-1===t.indexOf(r)&&(n[r]=e[r]);return n}var x=function(e){function t(){var t=this,n=[],r=arguments.length;while(r--)n[r]=arguments[r];e.apply(this,n),f(this,"getThemeDict",(function(e){if(void 0!==t.themeDict&&e.theme===t.prevTheme&&e.language===t.prevLanguage)return t.themeDict;t.prevTheme=e.theme,t.prevLanguage=e.language;var n=e.theme?b(e.theme,e.language):void 0;return t.themeDict=n})),f(this,"getLineProps",(function(e){var n=e.key,r=e.className,i=e.style,a=_(e,["key","className","style","line"]),o=a,s=p({},o,{className:"token-line",style:void 0,key:void 0}),l=t.getThemeDict(t.props);return void 0!==l&&(s.style=l.plain),void 0!==i&&(s.style=void 0!==s.style?p({},s.style,i):i),void 0!==n&&(s.key=n),r&&(s.className+=" "+r),s})),f(this,"getStyleForToken",(function(e){var n=e.types,r=e.empty,i=n.length,a=t.getThemeDict(t.props);if(void 0!==a){if(1===i&&"plain"===n[0])return r?{display:"inline-block"}:void 0;if(1===i&&!r)return a[n[0]];var o=r?{display:"inline-block"}:{},s=n.map((function(e){return a[e]}));return Object.assign.apply(Object,[o].concat(s))}})),f(this,"getTokenProps",(function(e){var n=e.key,r=e.className,i=e.style,a=e.token,o=_(e,["key","className","style","token"]),s=o,l=p({},s,{className:"token "+a.types.join(" "),children:a.content,style:t.getStyleForToken(a),key:void 0});return void 0!==i&&(l.style=void 0!==l.style?p({},l.style,i):i),void 0!==n&&(l.key=n),r&&(l.className+=" "+r),l}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.render=function(){var e=this.props,t=e.Prism,n=e.language,r=e.code,i=e.children,a=this.getThemeDict(this.props),o=t.languages[n],s=void 0!==o?t.tokenize(r,o,n):[r],l=y(s);return i({tokens:l,className:"prism-code language-"+n,style:void 0!==a?a.root:{},getLineProps:this.getLineProps,getTokenProps:this.getTokenProps})},t}(a["Component"]),w=x,S=n("kvV8");n("ovrx"),n("0ou5"),t["a"]=e=>{var t=e.code,n=e.lang,a=e.showCopy,s=void 0===a||a,l=Object(S["useCopy"])(),u=Object(i["default"])(l,2),c=u[0],h=u[1];return o.a.createElement("div",{className:"__dumi-default-code-block"},o.a.createElement(w,Object(r["a"])({},d,{code:t,language:n,theme:void 0}),(e=>{var n=e.className,r=e.style,i=e.tokens,a=e.getLineProps,l=e.getTokenProps;return o.a.createElement("pre",{className:n,style:r},s&&o.a.createElement("button",{className:"__dumi-default-icon __dumi-default-code-block-copy-btn","data-status":h,onClick:()=>c(t)}),i.map(((e,t)=>o.a.createElement("div",a({line:e,key:t}),e.map(((e,t)=>o.a.createElement("span",l({token:e,key:t}))))))))})))}},HFu6:function(e,t,n){"use strict";n.d(t,"a",(function(){return P})),n.d(t,"b",(function(){return B})),n.d(t,"d",(function(){return G})),n.d(t,"c",(function(){return x})),n.d(t,"f",(function(){return w})),n.d(t,"e",(function(){return _}));var r=n("a1z2");function i(e){return"/"===e.charAt(0)}function a(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}function o(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],o=t&&t.split("/")||[],s=e&&i(e),l=t&&i(t),u=s||l;if(e&&i(e)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var c=o[o.length-1];n="."===c||".."===c||""===c}else n=!1;for(var h=0,d=o.length;d>=0;d--){var f=o[d];"."===f?a(o,d):".."===f?(a(o,d),h++):h&&(a(o,d),h--)}if(!u)for(;h--;h)o.unshift("..");!u||""===o[0]||o[0]&&i(o[0])||o.unshift("");var p=o.join("/");return n&&"/"!==p.substr(-1)&&(p+="/"),p}var s=o;function l(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}function u(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every((function(e,n){return u(e,t[n])}));if("object"===typeof e||"object"===typeof t){var n=l(e),r=l(t);return n!==e||r!==t?u(n,r):Object.keys(Object.assign({},e,t)).every((function(n){return u(e[n],t[n])}))}return!1}var c=u,h=n("w41v"),d=n.n(h),f=n("AKk7");function p(e){return"/"===e.charAt(0)?e:"/"+e}function g(e){return"/"===e.charAt(0)?e.substr(1):e}function m(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}function v(e,t){return m(e,t)?e.substr(t.length):e}function y(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function b(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}function _(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function x(e,t,n,i){var a;"string"===typeof e?(a=b(e),a.query=a.search?d.a.parse(a.search):{},a.state=t):(a=Object(r["a"])({},e),void 0===a.pathname&&(a.pathname=""),a.search?("?"!==a.search.charAt(0)&&(a.search="?"+a.search),a.query=d.a.parse(a.search)):(a.search=a.query?d.a.stringify(a.query):"",a.query=a.query||{}),a.hash?"#"!==a.hash.charAt(0)&&(a.hash="#"+a.hash):a.hash="",void 0!==t&&void 0===a.state&&(a.state=t));try{a.pathname=decodeURI(a.pathname)}catch(o){throw o instanceof URIError?new URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):o}return n&&(a.key=n),i?a.pathname?"/"!==a.pathname.charAt(0)&&(a.pathname=s(a.pathname,i.pathname)):a.pathname=i.pathname:a.pathname||(a.pathname="/"),a}function w(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&c(e.state,t.state)}function S(){var e=null;function t(t){return e=t,function(){e===t&&(e=null)}}function n(t,n,r,i){if(null!=e){var a="function"===typeof e?e(t,n):e;"string"===typeof a?"function"===typeof r?r(a,i):i(!0):i(!1!==a)}else i(!0)}var r=[];function i(e){var t=!0;function n(){t&&e.apply(void 0,arguments)}return r.push(n),function(){t=!1,r=r.filter((function(e){return e!==n}))}}function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.forEach((function(e){return e.apply(void 0,t)}))}return{setPrompt:t,confirmTransitionTo:n,appendListener:i,notifyListeners:a}}var T=!("undefined"===typeof window||!window.document||!window.document.createElement);function O(e,t){t(window.confirm(e))}function M(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}function E(){return-1===window.navigator.userAgent.indexOf("Trident")}function A(){return-1===window.navigator.userAgent.indexOf("Firefox")}function C(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")}var I="popstate",D="hashchange";function L(){try{return window.history.state||{}}catch(e){return{}}}function P(e){void 0===e&&(e={}),T||Object(f["a"])(!1);var t=window.history,n=M(),i=!E(),a=e,o=a.forceRefresh,s=void 0!==o&&o,l=a.getUserConfirmation,u=void 0===l?O:l,c=a.keyLength,h=void 0===c?6:c,d=e.basename?y(p(e.basename)):"";function g(e){var t=e||{},n=t.key,r=t.state,i=window.location,a=i.pathname,o=i.search,s=i.hash,l=a+o+s;return d&&(l=v(l,d)),x(l,r,n)}function m(){return Math.random().toString(36).substr(2,h)}var b=S();function w(e){Object(r["a"])(Z,e),Z.length=t.length,b.notifyListeners(Z.location,Z.action)}function A(e){C(e)||R(g(e.state))}function P(){R(g(L()))}var k=!1;function R(e){if(k)k=!1,w();else{var t="POP";b.confirmTransitionTo(e,t,u,(function(n){n?w({action:t,location:e}):N(e)}))}}function N(e){var t=Z.location,n=F.indexOf(t.key);-1===n&&(n=0);var r=F.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(k=!0,G(i))}var j=g(L()),F=[j.key];function z(e){return d+_(e)}function B(e,r){var i="PUSH",a=x(e,r,m(),Z.location);b.confirmTransitionTo(a,i,u,(function(e){if(e){var r=z(a),o=a.key,l=a.state;if(n)if(t.pushState({key:o,state:l},null,r),s)window.location.href=r;else{var u=F.indexOf(Z.location.key),c=F.slice(0,u+1);c.push(a.key),F=c,w({action:i,location:a})}else window.location.href=r}}))}function V(e,r){var i="REPLACE",a=x(e,r,m(),Z.location);b.confirmTransitionTo(a,i,u,(function(e){if(e){var r=z(a),o=a.key,l=a.state;if(n)if(t.replaceState({key:o,state:l},null,r),s)window.location.replace(r);else{var u=F.indexOf(Z.location.key);-1!==u&&(F[u]=a.key),w({action:i,location:a})}else window.location.replace(r)}}))}function G(e){t.go(e)}function H(){G(-1)}function U(){G(1)}var W=0;function X(e){W+=e,1===W&&1===e?(window.addEventListener(I,A),i&&window.addEventListener(D,P)):0===W&&(window.removeEventListener(I,A),i&&window.removeEventListener(D,P))}var Y=!1;function K(e){void 0===e&&(e=!1);var t=b.setPrompt(e);return Y||(X(1),Y=!0),function(){return Y&&(Y=!1,X(-1)),t()}}function q(e){var t=b.appendListener(e);return X(1),function(){X(-1),t()}}var Z={length:t.length,action:"POP",location:j,createHref:z,push:B,replace:V,go:G,goBack:H,goForward:U,block:K,listen:q};return Z}var k="hashchange",R={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+g(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:g,decodePath:p},slash:{encodePath:p,decodePath:p}};function N(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function j(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function F(e){window.location.hash=e}function z(e){window.location.replace(N(window.location.href)+"#"+e)}function B(e){void 0===e&&(e={}),T||Object(f["a"])(!1);var t=window.history,n=(A(),e),i=n.getUserConfirmation,a=void 0===i?O:i,o=n.hashType,s=void 0===o?"slash":o,l=e.basename?y(p(e.basename)):"",u=R[s],c=u.encodePath,h=u.decodePath;function d(){var e=h(j());return l&&(e=v(e,l)),x(e)}var g=S();function m(e){Object(r["a"])(Q,e),Q.length=t.length,g.notifyListeners(Q.location,Q.action)}var b=!1,w=null;function M(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash}function E(){var e=j(),t=c(e);if(e!==t)z(t);else{var n=d(),r=Q.location;if(!b&&M(r,n))return;if(w===_(n))return;w=null,C(n)}}function C(e){if(b)b=!1,m();else{var t="POP";g.confirmTransitionTo(e,t,a,(function(n){n?m({action:t,location:e}):I(e)}))}}function I(e){var t=Q.location,n=B.lastIndexOf(_(t));-1===n&&(n=0);var r=B.lastIndexOf(_(e));-1===r&&(r=0);var i=n-r;i&&(b=!0,U(i))}var D=j(),L=c(D);D!==L&&z(L);var P=d(),B=[_(P)];function V(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=N(window.location.href)),n+"#"+c(l+_(e))}function G(e,t){var n="PUSH",r=x(e,void 0,void 0,Q.location);g.confirmTransitionTo(r,n,a,(function(e){if(e){var t=_(r),i=c(l+t),a=j()!==i;if(a){w=t,F(i);var o=B.lastIndexOf(_(Q.location)),s=B.slice(0,o+1);s.push(t),B=s,m({action:n,location:r})}else m()}}))}function H(e,t){var n="REPLACE",r=x(e,void 0,void 0,Q.location);g.confirmTransitionTo(r,n,a,(function(e){if(e){var t=_(r),i=c(l+t),a=j()!==i;a&&(w=t,z(i));var o=B.indexOf(_(Q.location));-1!==o&&(B[o]=t),m({action:n,location:r})}}))}function U(e){t.go(e)}function W(){U(-1)}function X(){U(1)}var Y=0;function K(e){Y+=e,1===Y&&1===e?window.addEventListener(k,E):0===Y&&window.removeEventListener(k,E)}var q=!1;function Z(e){void 0===e&&(e=!1);var t=g.setPrompt(e);return q||(K(1),q=!0),function(){return q&&(q=!1,K(-1)),t()}}function $(e){var t=g.appendListener(e);return K(1),function(){K(-1),t()}}var Q={length:t.length,action:"POP",location:P,createHref:V,push:G,replace:H,go:U,goBack:W,goForward:X,block:Z,listen:$};return Q}function V(e,t,n){return Math.min(Math.max(e,t),n)}function G(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,i=t.initialEntries,a=void 0===i?["/"]:i,o=t.initialIndex,s=void 0===o?0:o,l=t.keyLength,u=void 0===l?6:l,c=S();function h(e){Object(r["a"])(E,e),E.length=E.entries.length,c.notifyListeners(E.location,E.action)}function d(){return Math.random().toString(36).substr(2,u)}var f=V(s,0,a.length-1),p=a.map((function(e){return x(e,void 0,"string"===typeof e?d():e.key||d())})),g=_;function m(e,t){var r="PUSH",i=x(e,t,d(),E.location);c.confirmTransitionTo(i,r,n,(function(e){if(e){var t=E.index,n=t+1,a=E.entries.slice(0);a.length>n?a.splice(n,a.length-n,i):a.push(i),h({action:r,location:i,index:n,entries:a})}}))}function v(e,t){var r="REPLACE",i=x(e,t,d(),E.location);c.confirmTransitionTo(i,r,n,(function(e){e&&(E.entries[E.index]=i,h({action:r,location:i}))}))}function y(e){var t=V(E.index+e,0,E.entries.length-1),r="POP",i=E.entries[t];c.confirmTransitionTo(i,r,n,(function(e){e?h({action:r,location:i,index:t}):h()}))}function b(){y(-1)}function w(){y(1)}function T(e){var t=E.index+e;return t>=0&&t<E.entries.length}function O(e){return void 0===e&&(e=!1),c.setPrompt(e)}function M(e){return c.appendListener(e)}var E={length:p.length,action:"POP",location:p[f],index:f,entries:p,createHref:g,push:m,replace:v,go:y,goBack:b,goForward:w,canGo:T,block:O,listen:M};return E}},HIsA:function(e,t,n){var r=n("2JD6"),i=n("qmtO").f,a=n("D8FR"),o=n("GUTS"),s=n("5Nth"),l=n("xp0c"),u=n("6Nbm");e.exports=function(e,t){var n,c,h,d,f,p,g=e.target,m=e.global,v=e.stat;if(c=m?r:v?r[g]||s(g,{}):(r[g]||{}).prototype,c)for(h in t){if(f=t[h],e.noTargetGet?(p=i(c,h),d=p&&p.value):d=c[h],n=u(m?h:g+(v?".":"#")+h,e.forced),!n&&void 0!==d){if(typeof f===typeof d)continue;l(f,d)}(e.sham||d&&d.sham)&&a(f,"sham",!0),o(c,h,f,e)}}},HKEF:function(e,t,n){var r=n("pxmn"),i=n("dOdC"),a=n("kPvK"),o=a("species");e.exports=function(e,t){var n;return i(e)&&(n=e.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?r(n)&&(n=n[o],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},HMkG:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("tNTM");function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Object(r["a"])(e,t)}},HOlZ:function(e,t,n){"use strict";var r;r="undefined"!==typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},t["a"]=r},HQcF:function(e,t,n){"use strict";var r=n("HIsA"),i=n("JzK+"),a=n("ihzt"),o=n("ma2j"),s=n("kPvK"),l=n("m52V"),u=s("replace"),c=RegExp.prototype;r({target:"String",proto:!0},{replaceAll:function e(t,n){var r,s,h,d,f,p,g,m,v,y=i(this);if(null!=t){if(r=a(t),r&&(s=String(i("flags"in c?t.flags:o.call(t))),!~s.indexOf("g")))throw TypeError("`.replaceAll` does not allow non-global regexes");if(h=t[u],void 0!==h)return h.call(t,y,n);if(l&&r)return String(y).replace(t,n)}if(d=String(y),f=String(t),""===f)return e.call(d,/(?:)/g,n);if(p=d.split(f),"function"!==typeof n)return p.join(String(n));for(g=p[0],m=g.length,v=1;v<p.length;v++)g+=String(n(f,m,d)),m+=f.length+p[v].length,g+=p[v];return g}})},HVuH:function(e,t,n){},He07:function(e,t,n){var r=n("D8FR"),i=n("Tk1U"),a=n("kPvK"),o=a("toPrimitive"),s=Date.prototype;o in s||r(s,o,i)},Hiyu:function(e,t,n){var r=n("7+LC");e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},HqdE:function(e,t,n){var r=n("7+LC"),i=n("kPvK"),a=n("9ZTU"),o=i("species");e.exports=function(e){return a>=51||!r((function(){var t=[],n=t.constructor={};return n[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},Hr9Q:function(e,t,n){"use strict";var r=n("HIsA"),i=n("m52V"),a=n("hXyk"),o=n("DDwO"),s=n("Ji6T");r({target:"Map",proto:!0,real:!0,forced:i},{merge:function(e){var t=a(this),n=o(t.set),r=0;while(r<arguments.length)s(arguments[r++],n,t,!0);return t}})},Hx2v:function(e,t,n){"use strict";var r=n("HIsA"),i=n("Ji6T"),a=n("DDwO");r({target:"Map",stat:!0},{groupBy:function(e,t){var n=new this;a(t);var r=a(n.has),o=a(n.get),s=a(n.set);return i(e,(function(e){var i=t(e);r.call(n,i)?o.call(n,i).push(e):s.call(n,i,[e])})),n}})},I5Nx:function(e,t,n){"use strict";var r=n("HIsA"),i=n("O4tt"),a=n("NVMI"),o=n("2I03"),s=n("PaPB"),l=n("HKEF");r({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=a(this),n=o(t.length),r=l(t,0);return r.length=i(r,t,t,n,0,void 0===e?1:s(e)),r}})},I67C:function(e,t,n){var r,i,a,o,s,l,u,c,h=n("2JD6"),d=n("qmtO").f,f=n("IRht"),p=n("vYQ8").set,g=n("dpzy"),m=h.MutationObserver||h.WebKitMutationObserver,v=h.process,y=h.Promise,b="process"==f(v),_=d(h,"queueMicrotask"),x=_&&_.value;x||(r=function(){var e,t;b&&(e=v.domain)&&e.exit();while(i){t=i.fn,i=i.next;try{t()}catch(n){throw i?o():a=void 0,n}}a=void 0,e&&e.enter()},b?o=function(){v.nextTick(r)}:m&&!g?(s=!0,l=document.createTextNode(""),new m(r).observe(l,{characterData:!0}),o=function(){l.data=s=!s}):y&&y.resolve?(u=y.resolve(void 0),c=u.then,o=function(){c.call(u,r)}):o=function(){p.call(h,r)}),e.exports=x||function(e){var t={fn:e,next:void 0};a&&(a.next=t),i||(i=t,o()),a=t}},IDl8:function(e,t,n){var r=n("Hiyu"),i=n("7+LC"),a=n("riWr");e.exports=!r&&!i((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},IKXP:function(e,t,n){"use strict";var r=n("HIsA"),i=n("PaPB"),a=n("4dmQ"),o=n("x+a2"),s=n("7+LC"),l=1..toFixed,u=Math.floor,c=function(e,t,n){return 0===t?n:t%2===1?c(e,t-1,n*e):c(e*e,t/2,n)},h=function(e){var t=0,n=e;while(n>=4096)t+=12,n/=4096;while(n>=2)t+=1,n/=2;return t},d=l&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!s((function(){l.call({})}));r({target:"Number",proto:!0,forced:d},{toFixed:function(e){var t,n,r,s,l=a(this),d=i(e),f=[0,0,0,0,0,0],p="",g="0",m=function(e,t){var n=-1,r=t;while(++n<6)r+=e*f[n],f[n]=r%1e7,r=u(r/1e7)},v=function(e){var t=6,n=0;while(--t>=0)n+=f[t],f[t]=u(n/e),n=n%e*1e7},y=function(){var e=6,t="";while(--e>=0)if(""!==t||0===e||0!==f[e]){var n=String(f[e]);t=""===t?n:t+o.call("0",7-n.length)+n}return t};if(d<0||d>20)throw RangeError("Incorrect fraction digits");if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(p="-",l=-l),l>1e-21)if(t=h(l*c(2,69,1))-69,n=t<0?l*c(2,-t,1):l/c(2,t,1),n*=4503599627370496,t=52-t,t>0){m(0,n),r=d;while(r>=7)m(1e7,0),r-=7;m(c(10,r,1),0),r=t-1;while(r>=23)v(1<<23),r-=23;v(1<<r),m(1,1),v(2),g=y()}else m(0,n),m(1<<-t,0),g=y()+o.call("0",d);return d>0?(s=g.length,g=p+(s<=d?"0."+o.call("0",d-s)+g:g.slice(0,s-d)+"."+g.slice(s-d))):g=p+g,g}})},IMrv:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("a0Kb"),i=n("F0Xa");function a(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;null==n&&(n=1024);for(var r=t.features,i=0;i<r.length;i++){var a=r[i],s=a.geometry;if("Polygon"===s.type)for(var l=s.coordinates,u=0;u<l.length;u++)l[u]=o(l[u],s.encodeOffsets[u],n);else if("MultiPolygon"===s.type)for(l=s.coordinates,u=0;u<l.length;u++)for(var c=l[u],h=0;h<c.length;h++)c[h]=o(c[h],s.encodeOffsets[u][h],n)}return t.UTF8Encoding=!1,t}function o(e,t,n){for(var r=[],i=t[0],a=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,l=e.charCodeAt(o+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=i,l+=a,i=s,a=l,r.push([s/n,l/n])}return r}function s(e,t){return e=a(e),r["map"](r["filter"](e.features,(function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0})),(function(e){var n=e.properties,a=e.geometry,o=[];if("Polygon"===a.type){var s=a.coordinates;o.push({type:"polygon",exterior:s[0],interiors:s.slice(1)})}if("MultiPolygon"===a.type){s=a.coordinates;r["each"](s,(function(e){e[0]&&o.push({type:"polygon",exterior:e[0],interiors:e.slice(1)})}))}var l=new i["a"](n[t||"name"],o,n.cp);return l.properties=n,l}))}},IRht:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},IU95:function(e,t,n){var r=n("HIsA"),i=n("hXyk"),a=n("1PaV"),o=n("afop"),s=n("twJ5"),l="Seeded Random",u=l+" Generator",c=s.set,h=s.getterFor(u),d='Math.seededPRNG() argument should have a "seed" field with a finite value.',f=o((function(e){c(this,{type:u,seed:e%2147483647})}),l,(function(){var e=h(this),t=e.seed=(1103515245*e.seed+12345)%2147483647;return{value:(1073741823&t)/1073741823,done:!1}}));r({target:"Math",stat:!0,forced:!0},{seededPRNG:function(e){var t=i(e).seed;if(!a(t))throw TypeError(d);return new f(t)}})},IXhw:function(e,t,n){var r=n("HIsA"),i=n("VeQJ");r({target:"Set",stat:!0},{of:i})},IhSh:function(e,t,n){"use strict";n.d(t,"g",(function(){return h})),n.d(t,"e",(function(){return d})),n.d(t,"c",(function(){return f})),n.d(t,"b",(function(){return p})),n.d(t,"d",(function(){return x})),n.d(t,"f",(function(){return w})),n.d(t,"h",(function(){return S})),n.d(t,"a",(function(){return T}));var r=n("2ZPZ"),i=n("a0Kb"),a=n("wh+7"),o=n("b26b"),s=n("AyoT"),l={};function u(e,t){for(var n=0;n<a["g"].length;n++){var r=a["g"][n],i=t[r],o=e.ensureState(r);o.style=o.style||{},o.style.text=i}var s=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(s,!0)}function c(e,t,n){var r,o=e.labelFetcher,s=e.labelDataIndex,l=e.labelDimIndex,u=t.normal;o&&(r=o.getFormattedLabel(s,"normal",null,l,u&&u.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=Object(i["isFunction"])(e.defaultText)?e.defaultText(s,e,n):e.defaultText);for(var c={normal:r},h=0;h<a["g"].length;h++){var d=a["g"][h],f=t[d];c[d]=Object(i["retrieve2"])(o?o.getFormattedLabel(s,d,null,l,f&&f.get("formatter")):null,r)}return c}function h(e,t,n,o){n=n||l;for(var s=e instanceof r["a"],h=!1,d=0;d<a["a"].length;d++){var g=t[a["a"][d]];if(g&&g.getShallow("show")){h=!0;break}}var m=s?e:e.getTextContent();if(h){s||(m||(m=new r["a"],e.setTextContent(m)),e.stateProxy&&(m.stateProxy=e.stateProxy));var v=c(n,t),y=t.normal,b=!!y.getShallow("show"),_=f(y,o&&o.normal,n,!1,!s);_.text=v.normal,s||e.setTextConfig(p(y,n,!1));for(d=0;d<a["g"].length;d++){var x=a["g"][d];g=t[x];if(g){var S=m.ensureState(x),T=!!Object(i["retrieve2"])(g.getShallow("show"),b);if(T!==b&&(S.ignore=!T),S.style=f(g,o&&o[x],n,!0,!s),S.style.text=v[x],!s){var O=e.ensureState(x);O.textConfig=p(g,n,!0)}}}m.silent=!!y.getShallow("silent"),null!=m.style.x&&(_.x=m.style.x),null!=m.style.y&&(_.y=m.style.y),m.ignore=!b,m.useStyle(_),m.dirty(),n.enableTextSetter&&(w(m).setLabelText=function(e){var r=c(n,t,e);u(m,r)})}else m&&(m.ignore=!0);e.dirty()}function d(e,t){t=t||"label";for(var n={normal:e.getModel(t)},r=0;r<a["g"].length;r++){var i=a["g"][r];n[i]=e.getModel([i,t])}return n}function f(e,t,n,r,a){var o={};return g(o,e,n,r,a),t&&Object(i["extend"])(o,t),o}function p(e,t,n){t=t||{};var r,a={},o=e.getShallow("rotate"),s=Object(i["retrieve2"])(e.getShallow("distance"),n?null:5),l=e.getShallow("offset");return r=e.getShallow("position")||(n?null:"inside"),"outside"===r&&(r=t.defaultOutsidePosition||"top"),null!=r&&(a.position=r),null!=l&&(a.offset=l),null!=o&&(o*=Math.PI/180,a.rotation=o),null!=s&&(a.distance=s),a.outsideFill="inherit"===e.get("color")?t.inheritColor||null:"auto",a}function g(e,t,n,r,i){n=n||l;var a,o=t.ecModel,s=o&&o.option.textStyle,u=m(t);if(u)for(var c in a={},u)if(u.hasOwnProperty(c)){var h=t.getModel(["rich",c]);_(a[c]={},h,s,n,r,i,!1,!0)}a&&(e.rich=a);var d=t.get("overflow");d&&(e.overflow=d);var f=t.get("minMargin");null!=f&&(e.margin=f),_(e,t,s,n,r,i,!0,!1)}function m(e){var t;while(e&&e!==e.ecModel){var n=(e.option||l).rich;if(n){t=t||{};for(var r=Object(i["keys"])(n),a=0;a<r.length;a++){var o=r[a];t[o]=1}}e=e.parentModel}return t}var v=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],y=["align","lineHeight","width","height","tag","verticalAlign"],b=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function _(e,t,n,r,a,o,s,u){n=!a&&n||l;var c=r&&r.inheritColor,h=t.getShallow("color"),d=t.getShallow("textBorderColor"),f=Object(i["retrieve2"])(t.getShallow("opacity"),n.opacity);"inherit"!==h&&"auto"!==h||(h=c||null),"inherit"!==d&&"auto"!==d||(d=c||null),o||(h=h||n.color,d=d||n.textBorderColor),null!=h&&(e.fill=h),null!=d&&(e.stroke=d);var p=Object(i["retrieve2"])(t.getShallow("textBorderWidth"),n.textBorderWidth);null!=p&&(e.lineWidth=p);var g=Object(i["retrieve2"])(t.getShallow("textBorderType"),n.textBorderType);null!=g&&(e.lineDash=g);var m=Object(i["retrieve2"])(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=m&&(e.lineDashOffset=m),a||null!=f||u||(f=r&&r.defaultOpacity),null!=f&&(e.opacity=f),a||o||null==e.fill&&r.inheritColor&&(e.fill=r.inheritColor);for(var _=0;_<v.length;_++){var x=v[_],w=Object(i["retrieve2"])(t.getShallow(x),n[x]);null!=w&&(e[x]=w)}for(_=0;_<y.length;_++){x=y[_],w=t.getShallow(x);null!=w&&(e[x]=w)}if(null==e.verticalAlign){var S=t.getShallow("baseline");null!=S&&(e.verticalAlign=S)}if(!s||!r.disableBox){for(_=0;_<b.length;_++){x=b[_],w=t.getShallow(x);null!=w&&(e[x]=w)}var T=t.getShallow("borderType");null!=T&&(e.borderDash=T),"auto"!==e.backgroundColor&&"inherit"!==e.backgroundColor||!c||(e.backgroundColor=c),"auto"!==e.borderColor&&"inherit"!==e.borderColor||!c||(e.borderColor=c)}}function x(e,t){var n=t&&t.getModel("textStyle");return Object(i["trim"])([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var w=Object(o["o"])();function S(e,t,n,r){if(e){var i=w(e);i.prevValue=i.value,i.value=n;var a=t.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=r,i.statesModels=t)}}function T(e,t,n,r,a){var l=w(e);if(l.valueAnimation){var h=l.defaultInterpolatedText,d=Object(i["retrieve2"])(l.interpolatedValue,l.prevValue),f=l.value;(null==d?s["initProps"]:s["updateProps"])(e,{},r,t,null,p)}function p(r){var i=Object(o["k"])(n,l.precision,d,f,r);l.interpolatedValue=1===r?null:i;var s=c({labelDataIndex:t,labelFetcher:a,defaultText:h?h(i):i+""},l.statesModels,i);u(e,s)}}},IpVE:function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return f}));var r=n("sKBc"),i=n("a0Kb"),a=n("b9e6");function o(e,t){var n=t&&t.type;if("ordinal"===n){var i=t&&t.ordinalMeta;return i?i.parseAndCollect(e):e}return"time"===n&&"number"!==typeof e&&null!=e&&"-"!==e&&(e=+Object(r["n"])(e)),null==e||""===e?NaN:+e}var s=Object(i["createHashMap"])({number:function(e){return parseFloat(e)},time:function(e){return+Object(r["n"])(e)},trim:function(e){return"string"===typeof e?Object(i["trim"])(e):e}});function l(e){return s.get(e)}var u={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},c=function(){function e(e,t){if("number"!==typeof t){var n="";0,Object(a["b"])(n)}this._opFn=u[e],this._rvalFloat=Object(r["m"])(t)}return e.prototype.evaluate=function(e){return"number"===typeof e?this._opFn(e,this._rvalFloat):this._opFn(Object(r["m"])(e),this._rvalFloat)},e}(),h=function(){function e(e,t){var n="desc"===e;this._resultLT=n?1:-1,null==t&&(t=n?"min":"max"),this._incomparable="min"===t?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=typeof e,i=typeof t,a="number"===n?e:Object(r["m"])(e),o="number"===i?t:Object(r["m"])(t),s=isNaN(a),l=isNaN(o);if(s&&(a=this._incomparable),l&&(o=this._incomparable),s&&l){var u="string"===n,c="string"===i;u&&(a=c?e:0),c&&(o=u?t:0)}return a<o?this._resultLT:a>o?-this._resultLT:0},e}(),d=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Object(r["m"])(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(t=Object(r["m"])(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function f(e,t){return"eq"===e||"ne"===e?new d("eq"===e,t):Object(i["hasOwn"])(u,e)?new c(e,t):null}},Iu9s:function(e,t,n){"use strict";var r=n("7+LC");function i(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r((function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},IuL5:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function i(e,t){if("world"===e){var n=r[t.name];if(n){var i=t.center;i[0]=n[0],i[1]=n[1]}}}},J6EZ:function(e,t,n){var r=n("bVFb");r("split")},J7X1:function(e,t,n){var r=n("2RC6").f,i=n("+qhb"),a=n("kPvK"),o=a("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},JENe:function(e,t,n){var r=n("HIsA"),i=n("5AZ8");r({target:"WeakSet",stat:!0},{from:i})},JVZd:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("a0Kb"),i=n("c7YS"),a=n("CfRN"),o=n("b26b");function s(e){var t,n,s,u,c=e.series,h=e.dataIndex,d=e.multipleSeries,f=c.getData(),p=f.mapDimensionsAll("defaultedTooltip"),g=p.length,m=c.getRawValue(h),v=Object(r["isArray"])(m),y=Object(i["e"])(c,h);if(g>1||v&&!g){var b=l(m,c,h,p,y);t=b.inlineValues,n=b.inlineValueTypes,s=b.blocks,u=b.inlineValues[0]}else if(g){var _=f.getDimensionInfo(p[0]);u=t=Object(a["e"])(f,h,p[0]),n=_.type}else u=t=v?m[0]:m;var x=Object(o["n"])(c),w=x&&c.name||"",S=f.getName(h),T=d?w:S;return Object(i["c"])("section",{header:w,noHeader:d||!x,sortParam:u,blocks:[Object(i["c"])("nameValue",{markerType:"item",markerColor:y,name:T,noName:!Object(r["trim"])(T),value:t,valueType:n})].concat(s||[])})}function l(e,t,n,o,s){var l=t.getData(),u=Object(r["reduce"])(e,(function(e,t,n){var r=l.getDimensionInfo(n);return e||r&&!1!==r.tooltip&&null!=r.displayName}),!1),c=[],h=[],d=[];function f(e,t){var n=l.getDimensionInfo(t);n&&!1!==n.otherDims.tooltip&&(u?d.push(Object(i["c"])("nameValue",{markerType:"subItem",markerColor:s,name:n.displayName,value:e,valueType:n.type})):(c.push(e),h.push(n.type)))}return o.length?Object(r["each"])(o,(function(e){f(Object(a["e"])(l,n,e),e)})):Object(r["each"])(e,f),{inlineValues:c,inlineValueTypes:h,blocks:d}}},JY8B:function(e,t,n){var r=n("kPvK"),i=n("bWCM"),a=n("2RC6"),o=r("unscopables"),s=Array.prototype;void 0==s[o]&&a.f(s,o,{configurable:!0,value:i(null)}),e.exports=function(e){s[o][e]=!0}},Ji6T:function(e,t,n){var r=n("hXyk"),i=n("mKn/"),a=n("2I03"),o=n("40mc"),s=n("tg/3"),l=n("acWz"),u=function(e,t){this.stopped=e,this.result=t},c=e.exports=function(e,t,n,c,h){var d,f,p,g,m,v,y,b=o(t,n,c?2:1);if(h)d=e;else{if(f=s(e),"function"!=typeof f)throw TypeError("Target is not iterable");if(i(f)){for(p=0,g=a(e.length);g>p;p++)if(m=c?b(r(y=e[p])[0],y[1]):b(e[p]),m&&m instanceof u)return m;return new u(!1)}d=f.call(e)}v=d.next;while(!(y=v.call(d)).done)if(m=l(d,b,y.value,c),"object"==typeof m&&m&&m instanceof u)return m;return new u(!1)};c.stop=function(e){return new u(!0,e)}},JqKL:function(e,t,n){"use strict";var r=n("HIsA"),i=n("2JD6"),a=n("Hiyu"),o=n("pMf/"),s=n("Wp5u"),l=n("HC6f"),u=n("xOST"),c=n("OLna"),h=n("D8FR"),d=n("2I03"),f=n("PM2V"),p=n("eusP"),g=n("n2ef"),m=n("+qhb"),v=n("KpHK"),y=n("pxmn"),b=n("bWCM"),_=n("UPu9"),x=n("szjD").f,w=n("b4JQ"),S=n("Xf1w").forEach,T=n("QD/U"),O=n("2RC6"),M=n("qmtO"),E=n("twJ5"),A=n("cGOV"),C=E.get,I=E.set,D=O.f,L=M.f,P=Math.round,k=i.RangeError,R=l.ArrayBuffer,N=l.DataView,j=s.NATIVE_ARRAY_BUFFER_VIEWS,F=s.TYPED_ARRAY_TAG,z=s.TypedArray,B=s.TypedArrayPrototype,V=s.aTypedArrayConstructor,G=s.isTypedArray,H="BYTES_PER_ELEMENT",U="Wrong length",W=function(e,t){var n=0,r=t.length,i=new(V(e))(r);while(r>n)i[n]=t[n++];return i},X=function(e,t){D(e,t,{get:function(){return C(this)[t]}})},Y=function(e){var t;return e instanceof R||"ArrayBuffer"==(t=v(e))||"SharedArrayBuffer"==t},K=function(e,t){return G(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},q=function(e,t){return K(e,t=g(t,!0))?c(2,e[t]):L(e,t)},Z=function(e,t,n){return!(K(e,t=g(t,!0))&&y(n)&&m(n,"value"))||m(n,"get")||m(n,"set")||n.configurable||m(n,"writable")&&!n.writable||m(n,"enumerable")&&!n.enumerable?D(e,t,n):(e[t]=n.value,e)};a?(j||(M.f=q,O.f=Z,X(B,"buffer"),X(B,"byteOffset"),X(B,"byteLength"),X(B,"length")),r({target:"Object",stat:!0,forced:!j},{getOwnPropertyDescriptor:q,defineProperty:Z}),e.exports=function(e,t,n){var a=e.match(/\d+$/)[0]/8,s=e+(n?"Clamped":"")+"Array",l="get"+e,c="set"+e,g=i[s],m=g,v=m&&m.prototype,O={},M=function(e,t){var n=C(e);return n.view[l](t*a+n.byteOffset,!0)},E=function(e,t,r){var i=C(e);n&&(r=(r=P(r))<0?0:r>255?255:255&r),i.view[c](t*a+i.byteOffset,r,!0)},L=function(e,t){D(e,t,{get:function(){return M(this,t)},set:function(e){return E(this,t,e)},enumerable:!0})};j?o&&(m=t((function(e,t,n,r){return u(e,m,s),A(function(){return y(t)?Y(t)?void 0!==r?new g(t,p(n,a),r):void 0!==n?new g(t,p(n,a)):new g(t):G(t)?W(m,t):w.call(m,t):new g(f(t))}(),e,m)})),_&&_(m,z),S(x(g),(function(e){e in m||h(m,e,g[e])})),m.prototype=v):(m=t((function(e,t,n,r){u(e,m,s);var i,o,l,c=0,h=0;if(y(t)){if(!Y(t))return G(t)?W(m,t):w.call(m,t);i=t,h=p(n,a);var g=t.byteLength;if(void 0===r){if(g%a)throw k(U);if(o=g-h,o<0)throw k(U)}else if(o=d(r)*a,o+h>g)throw k(U);l=o/a}else l=f(t),o=l*a,i=new R(o);I(e,{buffer:i,byteOffset:h,byteLength:o,length:l,view:new N(i)});while(c<l)L(e,c++)})),_&&_(m,z),v=m.prototype=b(B)),v.constructor!==m&&h(v,"constructor",m),F&&h(v,F,s),O[s]=m,r({global:!0,forced:m!=g,sham:!j},O),H in m||h(m,H,a),H in v||h(v,H,a),T(s)}):e.exports=function(){}},"JzK+":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},Kidy:function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return u}));var r=n("zb3V"),i=n("/UWH"),a=n("xFFj"),o=n("a0Kb"),s="__zr_style_"+Math.round(10*Math.random()),l={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},u={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};l[s]=!0;var c=["z","z2","invisible"],h=function(e){function t(t){return e.call(this,t)||this}return Object(r["b"])(t,e),t.prototype._init=function(t){for(var n=Object(o["keys"])(t),r=0;r<n.length;r++){var i=n[r];"style"===i?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&p(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths)for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1;if(r&&this.parent){var o=this.parent;while(o){if(o.ignore)return!1;o=o.parent}}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return r.contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,o=r.shadowOffsetX||0,s=r.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new a["a"](0,0,0,0)),t?a["a"].applyTransform(e,n,t):e.copy(n),(i||o||s)&&(e.width+=2*i+Math.abs(o),e.height+=2*i+Math.abs(s),e.x=Math.min(e.x,e.x+o-i),e.y=Math.min(e.y,e.y+s-i));var l=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-l),e.y=Math.floor(e.y-l),e.width=Math.ceil(e.width+1+2*l),e.height=Math.ceil(e.height+1+2*l))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new a["a"](0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){"style"!==t?e.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(e,t){return"string"===typeof e?this.style[e]=t:Object(o["extend"])(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(){this.markRedraw(),this.__dirty|=t.STYLE_CHANGED_BIT,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&t.STYLE_CHANGED_BIT)},t.prototype.styleUpdated=function(){this.__dirty&=~t.STYLE_CHANGED_BIT},t.prototype.createStyle=function(e){return Object(o["createObject"])(l,e)},t.prototype.useStyle=function(e){e[s]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[s]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,c)},t.prototype._applyStateObj=function(t,n,r,i,a,s){e.prototype._applyStateObj.call(this,t,n,r,i,a,s);var l,u=!(n&&i);if(n&&n.style?a?i?l=n.style:(l=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(l,n.style)):u&&(l=r.style),l)if(a){var h=this.style;if(this.style=this.createStyle(u?{}:h),u)for(var d=Object(o["keys"])(h),f=0;f<d.length;f++){var p=d[f];p in l&&(l[p]=l[p],this.style[p]=h[p])}var g=Object(o["keys"])(l);for(f=0;f<g.length;f++){p=g[f];this.style[p]=this.style[p]}this._transitionState(t,{style:l},s,this.getAnimationStyleProps())}else this.useStyle(l);for(f=0;f<c.length;f++){p=c[f];n&&null!=n[p]?this[p]=n[p]:u&&null!=r[p]&&(this[p]=r[p])}},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var a=t[i];a.style&&(n=n||{},this._mergeStyle(n,a.style))}return n&&(r.style=n),r},t.prototype._mergeStyle=function(e,t){return Object(o["extend"])(e,t),e},t.prototype.getAnimationStyleProps=function(){return u},t.STYLE_CHANGED_BIT=2,t.initDefaultProps=function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=i["a"].REDARAW_BIT|t.STYLE_CHANGED_BIT}(),t}(i["a"]),d=new a["a"](0,0,0,0),f=new a["a"](0,0,0,0);function p(e,t,n){return d.copy(e.getBoundingRect()),e.transform&&d.applyTransform(e.transform),f.width=t,f.height=n,!d.intersect(f)}t["c"]=h},KpHK:function(e,t,n){var r=n("R64i"),i=n("IRht"),a=n("kPvK"),o=a("toStringTag"),s="Arguments"==i(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(n){}};e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=l(t=Object(e),o))?n:s?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},Krz3:function(e,t,n){"use strict";var r,i,a,o=n("kI7s"),s=n("D8FR"),l=n("+qhb"),u=n("kPvK"),c=n("m52V"),h=u("iterator"),d=!1,f=function(){return this};[].keys&&(a=[].keys(),"next"in a?(i=o(o(a)),i!==Object.prototype&&(r=i)):d=!0),void 0==r&&(r={}),c||l(r,h)||s(r,h,f),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},L1c7:function(e,t,n){var r=n("HIsA");r({target:"Math",stat:!0},{isubh:function(e,t,n,r){var i=e>>>0,a=t>>>0,o=n>>>0;return a-(r>>>0)-((~i&o|~(i^o)&i-o>>>0)>>>31)|0}})},LD4z:function(e,t,n){"use strict";var r=n("EPlJ"),i=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();r["c"](i),t["a"]=i},LDy6:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,"a",(function(){return r}))},LRGS:function(e,t,n){"use strict";var r=n("a0Kb"),i=n("66f4"),a=Object(r["createHashMap"])();t["a"]={registerMap:function(e,t,n){var i;if(Object(r["isArray"])(t))i=t;else if(t.svg)i=[{type:"svg",source:t.svg,specialAreas:t.specialAreas}];else{var s=t.geoJson||t.geoJSON;s&&!t.features&&(n=t.specialAreas,t=s),i=[{type:"geoJSON",source:t,specialAreas:n}]}return Object(r["each"])(i,(function(e){var t=e.type;"geoJson"===t&&(t=e.type="geoJSON");var n=o[t];n(e)})),a.set(e,i)},retrieveMap:function(e){return a.get(e)}};var o={geoJSON:function(e){var t=e.source;e.geoJSON=Object(r["isString"])(t)?"undefined"!==typeof JSON&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t},svg:function(e){e.svgXML=Object(i["a"])(e.source)}}},LTDN:function(e,t,n){"use strict";var r=n("hXyk"),i=n("DDwO");e.exports=function(){for(var e,t=r(this),n=i(t["delete"]),a=!0,o=0,s=arguments.length;o<s;o++)e=n.call(t,arguments[o]),a=a&&e;return!!a}},LarJ:function(e,t,n){"use strict";var r=n("a0Kb"),i=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication}return e.createByAxisModel=function(t){var n=t.option,i=n.data,o=i&&Object(r["map"])(i,a);return new e({categories:o,needCollect:!o,deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if("string"!==typeof e&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var r=this._getOrCreateMap();return t=r.get(e),null==t&&(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(r["createHashMap"])(this.categories))},e}();function a(e){return Object(r["isObject"])(e)&&null!=e.value?e.value:e+""}t["a"]=i},LuuT:function(e,t,n){"use strict";var r=n("HIsA"),i=n("Xf1w").map,a=n("HqdE"),o=n("/5yA"),s=a("map"),l=o("map");r({target:"Array",proto:!0,forced:!s||!l},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},MD2b:function(e,t,n){},MJ25:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("b26b"),i=Object(r["o"])()},MMtT:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=t.LinkWrapper=void 0;var r=a(n("xwgP")),i=n("CU0g");function a(e){return e&&e.__esModule?e:{default:e}}function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function s(e,t){if(null==e)return{};var n,r,i=l(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function l(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var u=function(e){return function(t){var n=t.to,i=s(t,["to"]),a=/^(\w+:)?\/\//.test(n)||!n,l=r["default"].isValidElement(i.children);return r["default"].createElement(e,o({to:n||"",component:a?function(){return r["default"].createElement("a",{target:"_blank",rel:"noopener noreferrer",href:n},i.children,n&&!l&&r["default"].createElement("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",x:"0px",y:"0px",viewBox:"0 0 100 100",width:"15",height:"15",className:"__dumi-default-external-link-icon"},r["default"].createElement("path",{fill:"currentColor",d:"M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"}),r["default"].createElement("polygon",{fill:"currentColor",points:"45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"})))}:void 0},i,a?{}:{onClick:function(){var e;window.scrollTo({top:0});for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];null===(e=i.onClick)||void 0===e||e.apply(this,n)}}))}};t.LinkWrapper=u;var c=u(i.Link);t["default"]=c},MOrU:function(e,t,n){var r=n("bVFb");r("search")},MPYE:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SensorTabIndex=t.SensorClassName=t.SizeSensorId=void 0;var r="size-sensor-id";t.SizeSensorId=r;var i="size-sensor-object";t.SensorClassName=i;var a="-1";t.SensorTabIndex=a},MR8S:function(e,t,n){"use strict";function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var i=c(n("xwgP")),a=l(n("q3YX")),o=l(n("1PYm")),s=l(n("xgte"));function l(e){return e&&e.__esModule?e:{default:e}}function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=i?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n["default"]=e,t&&t.set(e,n),n}function h(e,t){return m(e)||g(e,t)||f(e,t)||d()}function d(){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 f(e,t){if(e){if("string"===typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(n.push(o.value),t&&n.length===t)break}catch(l){i=!0,a=l}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw a}}return n}}function m(e){if(Array.isArray(e))return e}var v=function(e,t){var n=function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[1].replace(/[^^]\/$/,"");return(null===(e=n[0].find((function(e){var t=e.path;return t===i})))||void 0===e?void 0:e.meta)||{}},r=(0,i.useState)(n(e,t)),a=h(r,2),o=a[0],s=a[1];return(0,i.useLayoutEffect)((function(){s(n(e,t))}),[t]),o},y=function(e,t){var n=function(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(null===(t=r[0].find((function(e){return r[1].startsWith("/".concat(e.name))})))||void 0===t?void 0:t.name)||e[0].name},r=(0,i.useState)(n(e,t)),a=h(r,2),o=a[0],s=a[1];return(0,i.useLayoutEffect)((function(){s(n(e,t))}),[t]),o},b=function(e,t,n){var r=function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var i=n[0].navs[n[1]]||[],a="*",o=i.length-1;o>=0;o-=1){var s=i[o],l=[s].concat(s.children).filter(Boolean),u=l.find((function(e){return e.path&&new RegExp("^".concat(e.path.replace(/\.html$/,""),"(/|.|$)")).test(n[2])}));if(u){a=u.path;break}}return(null===(e=n[0].menus[n[1]])||void 0===e?void 0:e[a])||[]},a=(0,i.useState)(r(e,t,n)),o=h(a,2),s=o[0],l=o[1];return(0,i.useLayoutEffect)((function(){l(r(e,t,n))}),[e.navs,e.menus,t,n]),s},_=function(e,t,n){var r=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return r[0]===r[1][0].name?r[2].path:"".concat(n.path,"/").concat(e).replace(/\/\//,"/")},a=(0,i.useState)(r(e,t,n)),o=h(a,2),s=o[0],l=o[1];return(0,i.useLayoutEffect)((function(){l(r(e,t,n))}),[e]),s},x=function e(t){var n;return null===(n=t.find((function(t){return!!t.__dumiRoot||!!t.routes&&e(t.routes)})))||void 0===n?void 0:n.routes},w=function(e){var t=e.location,n=e.route,r=e.children,l=t.pathname.replace(n.path.replace(/^\/$/,"//"),""),u=x(e.routes)||[],c=v(u,t.pathname),h=y(a["default"].locales,l),d=b(a["default"],h,t.pathname),f=_(h,a["default"].locales,n);return(0,i.useEffect)((function(){t.hash&&o["default"].scrollToAnchor(decodeURIComponent(t.hash.slice(1)))}),[]),i["default"].createElement(s["default"].Provider,{value:{config:a["default"],meta:c,locale:h,nav:a["default"].navs[h]||[],menu:d,base:f,routes:u}},r)},S=w;t["default"]=S},Mi4E:function(e,t,n){var r=n("HIsA");r({target:"Math",stat:!0},{RAD_PER_DEG:180/Math.PI})},Mvsp:function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return c})),n.d(t,"e",(function(){return h})),n.d(t,"a",(function(){return f})),n.d(t,"f",(function(){return p})),n.d(t,"g",(function(){return g})),n.d(t,"d",(function(){return m}));var r=n("jwv5"),i=n("9IyG"),a="undefined"!==typeof window&&!!window.addEventListener,o=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,s=[];function l(e,t,n,i){return n=n||{},i||!r["a"].canvasSupported?u(e,t,n):r["a"].browser.firefox&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):u(e,t,n),n}function u(e,t,n){if(r["a"].domSupported&&e.getBoundingClientRect){var a=t.clientX,o=t.clientY;if(Object(i["a"])(e)){var l=e.getBoundingClientRect();return n.zrX=a-l.left,void(n.zrY=o-l.top)}if(Object(i["b"])(s,e,a,o))return n.zrX=s[0],void(n.zrY=s[1])}n.zrX=n.zrY=0}function c(e){return e||window.event}function h(e,t,n){if(t=c(t),null!=t.zrX)return t;var r=t.type,i=r&&r.indexOf("touch")>=0;if(i){var a="touchend"!==r?t.targetTouches[0]:t.changedTouches[0];a&&l(e,a,t,n)}else{l(e,t,t,n);var s=d(t);t.zrDelta=s?s/120:-(t.detail||0)/3}var u=t.button;return null==t.which&&void 0!==u&&o.test(t.type)&&(t.which=1&u?1:2&u?3:4&u?2:0),t}function d(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(null==n||null==r)return t;var i=0!==r?Math.abs(r):Math.abs(n),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function f(e,t,n,r){a?e.addEventListener(t,n,r):e.attachEvent("on"+t,n)}function p(e,t,n,r){a?e.removeEventListener(t,n,r):e.detachEvent("on"+t,n)}var g=a?function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}:function(e){e.returnValue=!1,e.cancelBubble=!0};function m(e){return 2===e.which||3===e.which}},NA9k:function(e,t,n){var r=n("Hiyu"),i=n("2RC6"),a=n("ma2j"),o=n("Iu9s").UNSUPPORTED_Y;r&&("g"!=/./g.flags||o)&&i.f(RegExp.prototype,"flags",{configurable:!0,get:a})},NNdr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var r=1,i=function(){return"".concat(r++)};t["default"]=i},NNlX:function(e,t,n){"use strict";var r=n("ghbW"),i=n("vldi");e.exports=r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},NVMI:function(e,t,n){var r=n("JzK+");e.exports=function(e){return Object(r(e))}},NYcp:function(e,t,n){"use strict";var r=n("DDwO"),i=n("pxmn"),a=[].slice,o={},s=function(e,t,n){if(!(t in o)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";o[t]=Function("C,a","return new C("+r.join(",")+")")}return o[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=a.call(arguments,1),o=function(){var r=n.concat(a.call(arguments));return this instanceof o?s(t,r.length,r):t.apply(e,r)};return i(t.prototype)&&(o.prototype=t.prototype),o}},Nau9:function(e,t,n){"use strict";var r=n("HIsA"),i=n("DDwO"),a=n("0MLT"),o=n("uCRN"),s=n("Ji6T");r({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=a.f(t),r=n.resolve,l=n.reject,u=o((function(){var n=i(t.resolve),a=[],o=0,l=1;s(e,(function(e){var i=o++,s=!1;a.push(void 0),l++,n.call(t,e).then((function(e){s||(s=!0,a[i]={status:"fulfilled",value:e},--l||r(a))}),(function(e){s||(s=!0,a[i]={status:"rejected",reason:e},--l||r(a))}))})),--l||r(a)}));return u.error&&l(u.value),n.promise}})},O4tt:function(e,t,n){"use strict";var r=n("dOdC"),i=n("2I03"),a=n("40mc"),o=function(e,t,n,s,l,u,c,h){var d,f=l,p=0,g=!!c&&a(c,h,3);while(p<s){if(p in n){if(d=g?g(n[p],p,t):n[p],u>0&&r(d))f=o(e,t,d,i(d.length),f,u-1)-1;else{if(f>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[f]=d}f++}p++}return f};e.exports=o},O9WU:function(e,t,n){"use strict";var r=n("zb3V"),i=n("H4kQ"),a=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),o=function(e){function t(t){return e.call(this,t)||this}return Object(r["b"])(t,e),t.prototype.getDefaultShape=function(){return new a},t.prototype.buildPath=function(e,t,n){n&&e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI)},t}(i["b"]);o.prototype.type="circle",t["a"]=o},OLna:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},OOuR:function(e,t,n){"use strict";var r=n("9izy").charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},OXHO:function(e,t,n){var r=n("HIsA"),i=n("bXon"),a=n("DDwO"),o=n("hXyk"),s=n("pxmn"),l=n("bWCM"),u=n("NYcp"),c=n("7+LC"),h=i("Reflect","construct"),d=c((function(){function e(){}return!(h((function(){}),[],e)instanceof e)})),f=!c((function(){h((function(){}))})),p=d||f;r({target:"Reflect",stat:!0,forced:p,sham:p},{construct:function(e,t){a(e),o(t);var n=arguments.length<3?e:a(arguments[2]);if(f&&!d)return h(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(u.apply(e,r))}var i=n.prototype,c=l(s(i)?i:Object.prototype),p=Function.apply.call(e,c,t);return s(p)?p:c}})},Oaiz:function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},Ogjs:function(e,t,n){var r=n("2JD6"),i=n("5Nth"),a="__core-js_shared__",o=r[a]||i(a,{});e.exports=o},P7C2:function(e,t,n){"use strict";n.r(t),n.d(t,"version",(function(){return i["ab"]})),n.d(t,"dependencies",(function(){return i["l"]})),n.d(t,"PRIORITY",(function(){return i["g"]})),n.d(t,"init",(function(){return i["B"]})),n.d(t,"connect",(function(){return i["j"]})),n.d(t,"disConnect",(function(){return i["m"]})),n.d(t,"disconnect",(function(){return i["n"]})),n.d(t,"dispose",(function(){return i["o"]})),n.d(t,"getInstanceByDom",(function(){return i["w"]})),n.d(t,"getInstanceById",(function(){return i["x"]})),n.d(t,"registerTheme",(function(){return i["R"]})),n.d(t,"registerPreprocessor",(function(){return i["P"]})),n.d(t,"registerProcessor",(function(){return i["Q"]})),n.d(t,"registerPostInit",(function(){return i["N"]})),n.d(t,"registerPostUpdate",(function(){return i["O"]})),n.d(t,"registerAction",(function(){return i["H"]})),n.d(t,"registerCoordinateSystem",(function(){return i["I"]})),n.d(t,"getCoordinateSystemDimensions",(function(){return i["v"]})),n.d(t,"registerLocale",(function(){return i["L"]})),n.d(t,"registerLayout",(function(){return i["J"]})),n.d(t,"registerVisual",(function(){return i["T"]})),n.d(t,"registerLoading",(function(){return i["K"]})),n.d(t,"setCanvasCreator",(function(){return i["U"]})),n.d(t,"registerMap",(function(){return i["M"]})),n.d(t,"getMap",(function(){return i["y"]})),n.d(t,"registerTransform",(function(){return i["S"]})),n.d(t,"dataTool",(function(){return i["k"]})),n.d(t,"zrender",(function(){return i["cb"]})),n.d(t,"matrix",(function(){return i["D"]})),n.d(t,"vector",(function(){return i["Z"]})),n.d(t,"zrUtil",(function(){return i["bb"]})),n.d(t,"color",(function(){return i["i"]})),n.d(t,"throttle",(function(){return i["V"]})),n.d(t,"helper",(function(){return i["A"]})),n.d(t,"use",(function(){return i["X"]})),n.d(t,"parseGeoJSON",(function(){return i["F"]})),n.d(t,"parseGeoJson",(function(){return i["G"]})),n.d(t,"number",(function(){return i["E"]})),n.d(t,"time",(function(){return i["W"]})),n.d(t,"graphic",(function(){return i["z"]})),n.d(t,"format",(function(){return i["u"]})),n.d(t,"util",(function(){return i["Y"]})),n.d(t,"env",(function(){return i["p"]})),n.d(t,"List",(function(){return i["e"]})),n.d(t,"Model",(function(){return i["f"]})),n.d(t,"Axis",(function(){return i["a"]})),n.d(t,"ComponentModel",(function(){return i["c"]})),n.d(t,"ComponentView",(function(){return i["d"]})),n.d(t,"SeriesModel",(function(){return i["h"]})),n.d(t,"ChartView",(function(){return i["b"]})),n.d(t,"innerDrawElementOnCanvas",(function(){return i["C"]})),n.d(t,"extendComponentModel",(function(){return i["r"]})),n.d(t,"extendComponentView",(function(){return i["s"]})),n.d(t,"extendSeriesModel",(function(){return i["t"]})),n.d(t,"extendChartView",(function(){return i["q"]}));var r=n("m1m1"),i=n("4LU/"),a=n("XJ6e");function o(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}var s=n("a0Kb"),l=n("H4kQ"),u=n("AGhn"),c=n("rSg8");function h(e,t,n){n||(n=function(e,t){return e===t}),e=e.slice(),t=t.slice();var r=t.length,i=e.length,a=1,o=r+i,s=[{newPos:-1,components:[]}],l=d(s[0],t,e,0,n);if(s[0].newPos+1>=r&&l+1>=i){for(var u=[],c=0;c<t.length;c++)u.push(c);return[{indices:u,count:t.length,added:!1,removed:!1}]}function h(){for(var o=-1*a;o<=a;o+=2){var l,u=s[o-1],c=s[o+1],h=(c?c.newPos:0)-o;u&&(s[o-1]=void 0);var m=u&&u.newPos+1<r,v=c&&0<=h&&h<i;if(m||v){if(!m||v&&u.newPos<c.newPos?(l=g(c),f(l.components,!1,!0)):(l=u,l.newPos++,f(l.components,!0,!1)),h=d(l,t,e,o,n),l.newPos+1>=r&&h+1>=i)return p(l.components);s[o]=l}else s[o]=void 0}a++}while(a<=o){var m=h();if(m)return m}}function d(e,t,n,r,i){var a=t.length,o=n.length,s=e.newPos,l=s-r,u=0;while(s+1<a&&l+1<o&&i(t[s+1],n[l+1]))s++,l++,u++;return u&&e.components.push({count:u,added:!1,removed:!1,indices:[]}),e.newPos=s,l}function f(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n,indices:[]}:e.push({count:1,added:t,removed:n,indices:[]})}function p(e){for(var t=0,n=e.length,r=0,i=0;t<n;t++){var a=e[t];if(a.removed){for(s=i;s<i+a.count;s++)a.indices.push(s);i+=a.count}else{for(var o=[],s=r;s<r+a.count;s++)o.push(s);a.indices=o,r+=a.count,a.added||(i+=a.count)}}return e}function g(e){return{newPos:e.newPos,components:e.components.slice(0)}}function m(e,t,n){return h(e,t,n)}var v=n("zb3V"),y=n("g9E2"),b=n("/ypL"),_="none",x=Math.round,w=Math.sin,S=Math.cos,T=Math.PI,O=2*Math.PI,M=180/T,E=1e-4;function A(e){return x(1e3*e)/1e3}function C(e){return x(1e4*e)/1e4}function I(e){return e<E&&e>-E}function D(e){var t=e.fill;return null!=t&&t!==_}function L(e){var t=e.stroke;return null!=t&&t!==_}function P(e,t){t&&k(e,"transform","matrix("+A(t[0])+","+A(t[1])+","+A(t[2])+","+A(t[3])+","+C(t[4])+","+C(t[5])+")")}function k(e,t,n){(!n||"linear"!==n.type&&"radial"!==n.type)&&e.setAttribute(t,n)}function R(e,t,n){e.setAttributeNS("http://www.w3.org/1999/xlink",t,n)}function N(e,t,n){e.setAttributeNS("http://www.w3.org/XML/1998/namespace",t,n)}function j(e,t,n){var r=null==t.opacity?1:t.opacity;if(n instanceof u["a"])e.style.opacity=r+"";else{if(D(t)){var i=t.fill;i="transparent"===i?_:i,k(e,"fill",i),k(e,"fill-opacity",(null!=t.fillOpacity?t.fillOpacity*r:r)+"")}else k(e,"fill",_);if(L(t)){var a=t.stroke;a="transparent"===a?_:a,k(e,"stroke",a);var o=t.lineWidth,l=t.strokeNoScale?n.getLineScale():1;k(e,"stroke-width",(l?o/l:0)+""),k(e,"paint-order",t.strokeFirst?"stroke":"fill"),k(e,"stroke-opacity",(null!=t.strokeOpacity?t.strokeOpacity*r:r)+"");var c=t.lineDash&&o>0&&Object(b["a"])(t.lineDash,o);if(c){var h=t.lineDashOffset;l&&1!==l&&(c=Object(s["map"])(c,(function(e){return e/l})),h&&(h/=l,h=x(h))),k(e,"stroke-dasharray",c.join(",")),k(e,"stroke-dashoffset",(h||0)+"")}else k(e,"stroke-dasharray","");t.lineCap&&k(e,"stroke-linecap",t.lineCap),t.lineJoin&&k(e,"stroke-linejoin",t.lineJoin),t.miterLimit&&k(e,"stroke-miterlimit",t.miterLimit+"")}else k(e,"stroke",_)}}var F=function(){function e(){}return e.prototype.reset=function(){this._d=[],this._str=""},e.prototype.moveTo=function(e,t){this._add("M",e,t)},e.prototype.lineTo=function(e,t){this._add("L",e,t)},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){this._add("C",e,t,n,r,i,a)},e.prototype.quadraticCurveTo=function(e,t,n,r){this._add("Q",e,t,n,r)},e.prototype.arc=function(e,t,n,r,i,a){this.ellipse(e,t,n,n,0,r,i,a)},e.prototype.ellipse=function(e,t,n,r,i,a,o,s){var l=0===this._d.length,u=o-a,c=!s,h=Math.abs(u),d=I(h-O)||(c?u>=O:-u>=O),f=u>0?u%O:u%O+O,p=!1;p=!!d||!I(h)&&f>=T===!!c;var g=C(e+n*S(a)),m=C(t+r*w(a));d&&(u=c?O-1e-4:1e-4-O,p=!0,l&&this._d.push("M",g,m));var v=C(e+n*S(a+u)),y=C(t+r*w(a+u));if(isNaN(g)||isNaN(m)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(M)||isNaN(v)||isNaN(y))return"";this._d.push("A",C(n),C(r),x(i*M),+p,+c,v,y)},e.prototype.rect=function(e,t,n,r){this._add("M",e,t),this._add("L",e+n,t),this._add("L",e+n,t+r),this._add("L",e,t+r),this._add("L",e,t)},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(e,t,n,r,i,a,o,s,l){this._d.push(e);for(var u=1;u<arguments.length;u++){var c=arguments[u];if(isNaN(c))return void(this._invalid=!0);this._d.push(C(c))}},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(" "),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),z={brush:function(e){var t=e.style,n=e.__svgEl;n||(n=o("path"),e.__svgEl=n),e.path||e.createPathProxy();var r=e.path;e.shapeChanged()&&(r.beginPath(),e.buildPath(r,e.shape),e.pathUpdated());var i=r.getVersion(),a=e,s=a.__svgPathBuilder;(a.__svgPathVersion!==i||!s||e.style.strokePercent<1)&&(s||(s=a.__svgPathBuilder=new F),s.reset(),r.rebuildPath(s,e.style.strokePercent),s.generateStr(),a.__svgPathVersion=i),k(n,"d",s.getStr()),j(n,t,e),P(n,e.transform)}},B={brush:function(e){var t=e.style,n=t.image;if(n instanceof HTMLImageElement?n=n.src:n instanceof HTMLCanvasElement&&(n=n.toDataURL()),n){var r=t.x||0,i=t.y||0,a=t.width,s=t.height,l=e.__svgEl;l||(l=o("image"),e.__svgEl=l),n!==e.__imageSrc&&(R(l,"href",n),e.__imageSrc=n),k(l,"width",a+""),k(l,"height",s+""),k(l,"x",r+""),k(l,"y",i+""),j(l,t,e),P(l,e.transform)}}},V={left:"start",right:"end",center:"middle",middle:"middle"};function G(e,t,n){return"top"===n?e+=t/2:"bottom"===n&&(e-=t/2),e}var H={brush:function(e){var t=e.style,n=t.text;if(null!=n&&(n+=""),n&&!isNaN(t.x)&&!isNaN(t.y)){var r=e.__svgEl;r||(r=o("text"),N(r,"xml:space","preserve"),e.__svgEl=r);var i=t.font||y["a"],a=r.style;a.font=i,r.textContent=n,j(r,t,e),P(r,e.transform);var s=t.x||0,l=G(t.y||0,Object(y["f"])(i),t.textBaseline),u=V[t.textAlign]||t.textAlign;k(r,"dominant-baseline","central"),k(r,"text-anchor",u),k(r,"x",s+""),k(r,"y",l+"")}}},U="0",W="1",X=function(){function e(e,t,n,r,i){this.nextId=0,this._domName="_dom",this.createElement=o,this._zrId=e,this._svgRoot=t,this._tagNames="string"===typeof n?[n]:n,this._markLabel=r,i&&(this._domName=i)}return e.prototype.getDefs=function(e){var t=this._svgRoot,n=this._svgRoot.getElementsByTagName("defs");if(0===n.length){if(e){var r=t.insertBefore(this.createElement("defs"),t.firstChild);return r.contains||(r.contains=function(e){var t=r.children;if(!t)return!1;for(var n=t.length-1;n>=0;--n)if(t[n]===e)return!0;return!1}),r}return null}return n[0]},e.prototype.doUpdate=function(e,t){if(e){var n=this.getDefs(!1);if(e[this._domName]&&n.contains(e[this._domName]))"function"===typeof t&&t(e);else{var r=this.add(e);r&&(e[this._domName]=r)}}},e.prototype.add=function(e){return null},e.prototype.addDom=function(e){var t=this.getDefs(!0);e.parentNode!==t&&t.appendChild(e)},e.prototype.removeDom=function(e){var t=this.getDefs(!1);t&&e[this._domName]&&(t.removeChild(e[this._domName]),e[this._domName]=null)},e.prototype.getDoms=function(){var e=this.getDefs(!1);if(!e)return[];var t=[];return s["each"](this._tagNames,(function(n){for(var r=e.getElementsByTagName(n),i=0;i<r.length;i++)t.push(r[i])})),t},e.prototype.markAllUnused=function(){var e=this.getDoms(),t=this;s["each"](e,(function(e){e[t._markLabel]=U}))},e.prototype.markDomUsed=function(e){e&&(e[this._markLabel]=W)},e.prototype.markDomUnused=function(e){e&&(e[this._markLabel]=U)},e.prototype.isDomUnused=function(e){return e&&e[this._markLabel]!==W},e.prototype.removeUnused=function(){var e=this,t=this.getDefs(!1);if(t){var n=this.getDoms();s["each"](n,(function(n){e.isDomUnused(n)&&t.removeChild(n)}))}},e.prototype.getSvgProxy=function(e){return e instanceof l["b"]?z:e instanceof u["a"]?B:e instanceof c["a"]?H:z},e.prototype.getSvgElement=function(e){return e.__svgEl},e}(),Y=X,K=n("Rj4u");function q(e){return"linear"===e.type}function Z(e){return"radial"===e.type}function $(e){return e&&("linear"===e.type||"radial"===e.type)}var Q=function(e){function t(t,n){return e.call(this,t,n,["linearGradient","radialGradient"],"__gradient_in_use__")||this}return Object(v["b"])(t,e),t.prototype.addWithoutUpdate=function(e,t){if(t&&t.style){var n=this;s["each"](["fill","stroke"],(function(r){var i=t.style[r];if($(i)){var a=i,o=n.getDefs(!0),s=void 0;a.__dom?(s=a.__dom,o.contains(a.__dom)||n.addDom(s)):s=n.add(a),n.markUsed(t);var l=s.getAttribute("id");e.setAttribute(r,"url(#"+l+")")}}))}},t.prototype.add=function(e){var t;if(q(e))t=this.createElement("linearGradient");else{if(!Z(e))return s["logError"]("Illegal gradient type."),null;t=this.createElement("radialGradient")}return e.id=e.id||this.nextId++,t.setAttribute("id","zr"+this._zrId+"-gradient-"+e.id),this.updateDom(e,t),this.addDom(t),t},t.prototype.update=function(e){if($(e)){var t=this;this.doUpdate(e,(function(){var n=e.__dom;if(n){var r=n.tagName,i=e.type;"linear"===i&&"linearGradient"===r||"radial"===i&&"radialGradient"===r?t.updateDom(e,e.__dom):(t.removeDom(e),t.add(e))}}))}},t.prototype.updateDom=function(e,t){if(q(e))t.setAttribute("x1",e.x+""),t.setAttribute("y1",e.y+""),t.setAttribute("x2",e.x2+""),t.setAttribute("y2",e.y2+"");else{if(!Z(e))return void s["logError"]("Illegal gradient type.");t.setAttribute("cx",e.x+""),t.setAttribute("cy",e.y+""),t.setAttribute("r",e.r+"")}e.global?t.setAttribute("gradientUnits","userSpaceOnUse"):t.setAttribute("gradientUnits","objectBoundingBox"),t.innerHTML="";for(var n=e.colorStops,r=0,i=n.length;r<i;++r){var a=this.createElement("stop");a.setAttribute("offset",100*n[r].offset+"%");var o=n[r].color;if(o.indexOf("rgba")>-1){var l=K["parse"](o)[3],u=K["toHex"](o);a.setAttribute("stop-color","#"+u),a.setAttribute("stop-opacity",l+"")}else a.setAttribute("stop-color",n[r].color);t.appendChild(a)}e.__dom=t},t.prototype.markUsed=function(t){if(t.style){var n=t.style.fill;n&&n.__dom&&e.prototype.markDomUsed.call(this,n.__dom),n=t.style.stroke,n&&n.__dom&&e.prototype.markDomUsed.call(this,n.__dom)}},t}(Y),J=Q,ee=n("Pfkn"),te=n("wxpZ");function ne(e){return e&&(!!e.image||!!e.svgElement)}var re=new te["a"],ie=function(e){function t(t,n){return e.call(this,t,n,["pattern"],"__pattern_in_use__")||this}return Object(v["b"])(t,e),t.prototype.addWithoutUpdate=function(e,t){if(t&&t.style){var n=this;s["each"](["fill","stroke"],(function(r){var i=t.style[r];if(ne(i)){var a=n.getDefs(!0),o=re.get(i);o?a.contains(o)||n.addDom(o):o=n.add(i),n.markUsed(t);var s=o.getAttribute("id");e.setAttribute(r,"url(#"+s+")")}}))}},t.prototype.add=function(e){if(ne(e)){var t=this.createElement("pattern");return e.id=null==e.id?this.nextId++:e.id,t.setAttribute("id","zr"+this._zrId+"-pattern-"+e.id),t.setAttribute("x","0"),t.setAttribute("y","0"),t.setAttribute("patternUnits","userSpaceOnUse"),this.updateDom(e,t),this.addDom(t),t}},t.prototype.update=function(e){if(ne(e)){var t=this;this.doUpdate(e,(function(){var n=re.get(e);t.updateDom(e,n)}))}},t.prototype.updateDom=function(e,t){var n=e.svgElement;if(n instanceof SVGElement)n.parentNode!==t&&(t.innerHTML="",t.appendChild(n),t.setAttribute("width",e.svgWidth+""),t.setAttribute("height",e.svgHeight+""));else{var r=void 0,i=t.getElementsByTagName("image");if(i.length){if(!e.image)return void t.removeChild(i[0]);r=i[0]}else e.image&&(r=this.createElement("image"));if(r){var a=void 0;if("string"===typeof e.image?a=e.image:e.image instanceof HTMLImageElement?a=e.image.src:e.image instanceof HTMLCanvasElement&&(a=e.image.toDataURL()),a){r.setAttribute("href",a),r.setAttribute("x","0"),r.setAttribute("y","0");var o={dirty:function(){}},s=Object(ee["a"])(a,r,o,(function(e){t.setAttribute("width",e.width+""),t.setAttribute("height",e.height+"")}));s&&s.width&&s.height&&(t.setAttribute("width",s.width+""),t.setAttribute("height",s.height+"")),t.appendChild(r)}}}var l=e.x||0,u=e.y||0,c=(e.rotation||0)/Math.PI*180,h=e.scaleX||1,d=e.scaleY||1,f="translate("+l+", "+u+") rotate("+c+") scale("+h+", "+d+")";t.setAttribute("patternTransform",f),re.set(e,t)},t.prototype.markUsed=function(t){t.style&&(ne(t.style.fill)&&e.prototype.markDomUsed.call(this,re.get(t.style.fill)),ne(t.style.stroke)&&e.prototype.markDomUsed.call(this,re.get(t.style.stroke)))},t}(Y),ae=ie,oe=n("nSFs");function se(e){var t=[];if(e)for(var n=0;n<e.length;n++){var r=e[n];t.push(r.id)}return t.join(",")}function le(e){var t=e.__clipPaths;return t&&t.length>0}var ue=function(e){function t(t,n){var r=e.call(this,t,n,"clipPath","__clippath_in_use__")||this;return r._refGroups={},r._keyDuplicateCount={},r}return Object(v["b"])(t,e),t.prototype.markAllUnused=function(){for(var t in e.prototype.markAllUnused.call(this),this._refGroups)this.markDomUnused(this._refGroups[t]);this._keyDuplicateCount={}},t.prototype._getClipPathGroup=function(e,t){if(le(e)){var n=e.__clipPaths,r=this._keyDuplicateCount,i=se(n);return Object(oe["b"])(n,t&&t.__clipPaths)&&(r[i]=r[i]||0,r[i]&&(i+="-"+r[i]),r[i]++),this._refGroups[i]||(this._refGroups[i]=this.createElement("g"))}},t.prototype.update=function(e,t){var n=this._getClipPathGroup(e,t);return n&&(this.markDomUsed(n),this.updateDom(n,e.__clipPaths)),n},t.prototype.updateDom=function(e,t){if(t&&t.length>0){var n=this.getDefs(!0),r=t[0],i=void 0,a=void 0;r._dom?(a=r._dom.getAttribute("id"),i=r._dom,n.contains(i)||n.appendChild(i)):(a="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,i=this.createElement("clipPath"),i.setAttribute("id",a),n.appendChild(i),r._dom=i);var o=this.getSvgProxy(r);o.brush(r);var s=this.getSvgElement(r);i.innerHTML="",i.appendChild(s),e.setAttribute("clip-path","url(#"+a+")"),t.length>1&&this.updateDom(i,t.slice(1))}else e&&e.setAttribute("clip-path","none")},t.prototype.markUsed=function(t){var n=this;t.__clipPaths&&s["each"](t.__clipPaths,(function(t){t._dom&&e.prototype.markDomUsed.call(n,t._dom)}))},t.prototype.removeUnused=function(){e.prototype.removeUnused.call(this);var t={};for(var n in this._refGroups){var r=this._refGroups[n];this.isDomUnused(r)?r.parentNode&&r.parentNode.removeChild(r):t[n]=r}this._refGroups=t},t}(Y),ce=ue,he=function(e){function t(t,n){var r=e.call(this,t,n,["filter"],"__filter_in_use__","_shadowDom")||this;return r._shadowDomMap={},r._shadowDomPool=[],r}return Object(v["b"])(t,e),t.prototype._getFromPool=function(){var e=this._shadowDomPool.pop();if(!e){e=this.createElement("filter"),e.setAttribute("id","zr"+this._zrId+"-shadow-"+this.nextId++);var t=this.createElement("feDropShadow");e.appendChild(t),this.addDom(e)}return e},t.prototype.update=function(e,t){var n=t.style;if(fe(n)){var r=pe(t),i=t._shadowDom=this._shadowDomMap[r];i||(i=this._getFromPool(),this._shadowDomMap[r]=i),this.updateDom(e,t,i)}else this.remove(e,t)},t.prototype.remove=function(e,t){null!=t._shadowDom&&(t._shadowDom=null,e.style.filter="")},t.prototype.updateDom=function(e,t,n){var r=n.children[0],i=t.style,a=t.getGlobalScale(),o=a[0],s=a[1];if(o&&s){var l=i.shadowOffsetX||0,u=i.shadowOffsetY||0,c=i.shadowBlur,h=i.shadowColor;r.setAttribute("dx",l/o+""),r.setAttribute("dy",u/s+""),r.setAttribute("flood-color",h);var d=c/2/o,f=c/2/s,p=d+" "+f;r.setAttribute("stdDeviation",p),n.setAttribute("x","-100%"),n.setAttribute("y","-100%"),n.setAttribute("width","300%"),n.setAttribute("height","300%"),t._shadowDom=n;var g=n.getAttribute("id");e.style.filter="url(#"+g+")"}},t.prototype.removeUnused=function(){var e=this.getDefs(!1);if(e){var t=this._shadowDomPool;for(var n in this._shadowDomMap){var r=this._shadowDomMap[n];t.push(r)}this._shadowDomMap={}}},t}(Y),de=he;function fe(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function pe(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function ge(e){return parseInt(e,10)}function me(e){return e instanceof l["b"]?z:e instanceof u["a"]?B:e instanceof c["a"]?H:z}function ve(e,t){return t&&e&&t.parentNode!==e}function ye(e,t,n){if(ve(e,t)&&n){var r=n.nextSibling;r?e.insertBefore(t,r):e.appendChild(t)}}function be(e,t){if(ve(e,t)){var n=e.firstChild;n?e.insertBefore(t,n):e.appendChild(t)}}function _e(e,t){t&&e&&t.parentNode===e&&e.removeChild(t)}function xe(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function we(e){return e.__svgEl}var Se=function(){function e(e,t,n,r){this.type="svg",this.refreshHover=Te("refreshHover"),this.pathToImage=Te("pathToImage"),this.configLayer=Te("configLayer"),this.root=e,this.storage=t,this._opts=n=s["extend"]({},n||{});var i=o("svg");i.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),i.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),i.setAttribute("version","1.1"),i.setAttribute("baseProfile","full"),i.style.cssText="user-select:none;position:absolute;left:0;top:0;";var a=o("g");i.appendChild(a);var l=o("g");i.appendChild(l),this._gradientManager=new J(r,l),this._patternManager=new ae(r,l),this._clipPathManager=new ce(r,l),this._shadowManager=new de(r,l);var u=document.createElement("div");u.style.cssText="overflow:hidden;position:relative",this._svgDom=i,this._svgRoot=l,this._backgroundRoot=a,this._viewport=u,e.appendChild(u),u.appendChild(i),this.resize(n.width,n.height),this._visibleList=[]}return e.prototype.getType=function(){return"svg"},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.getSvgRoot=function(){return this._svgRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(){var e=this.storage.getDisplayList(!0);this._paintList(e)},e.prototype.setBackgroundColor=function(e){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var t=o("rect");t.setAttribute("width",this.getWidth()),t.setAttribute("height",this.getHeight()),t.setAttribute("x",0),t.setAttribute("y",0),t.setAttribute("id",0),t.style.fill=e,this._backgroundRoot.appendChild(t),this._backgroundNode=t},e.prototype.createSVGElement=function(e){return o(e)},e.prototype.paintOne=function(e){var t=me(e);return t&&t.brush(e),we(e)},e.prototype._paintList=function(e){var t=this._gradientManager,n=this._patternManager,r=this._clipPathManager,i=this._shadowManager;t.markAllUnused(),n.markAllUnused(),r.markAllUnused(),i.markAllUnused();for(var a=this._svgRoot,o=this._visibleList,s=e.length,l=[],u=0;u<s;u++){var c=e[u],h=me(c),d=we(c);c.invisible||(!c.__dirty&&d||(h&&h.brush(c),d=we(c),d&&c.style&&(t.update(c.style.fill),t.update(c.style.stroke),n.update(c.style.fill),n.update(c.style.stroke),i.update(d,c)),c.__dirty=0),d&&l.push(c))}var f,p,g,v,y=m(o,l);for(u=0;u<y.length;u++){var b=y[u];if(b.removed)for(var _=0;_<b.count;_++){c=o[b.indices[_]],d=we(c);le(c)?xe(d):_e(a,d)}}for(u=0;u<y.length;u++){b=y[u];if(!b.removed)for(_=0;_<b.count;_++){c=l[b.indices[_]];var x=r.update(c,g);x!==v&&(f=p,x&&(f?ye(a,x,f):be(a,x),p=x,f=null),v=x);d=we(c);f?ye(v||a,d,f):be(v||a,d),f=d||f,v||(p=f),t.markUsed(c),t.addWithoutUpdate(d,c),n.markUsed(c),n.addWithoutUpdate(d,c),r.markUsed(c),g=c}}t.removeUnused(),n.removeUnused(),r.removeUnused(),i.removeUnused(),this._visibleList=l},e.prototype._getDefs=function(e){var t=this._svgDom,n=t.getElementsByTagName("defs");if(0===n.length){if(e){var r=t.insertBefore(o("defs"),t.firstChild);return r.contains||(r.contains=function(e){var t=r.children;if(!t)return!1;for(var n=t.length-1;n>=0;--n)if(t[n]===e)return!0;return!1}),r}return null}return n[0]},e.prototype.resize=function(e,t){var n=this._viewport;n.style.display="none";var r=this._opts;if(null!=e&&(r.width=e),null!=t&&(r.height=t),e=this._getSize(0),t=this._getSize(1),n.style.display="",this._width!==e||this._height!==t){this._width=e,this._height=t;var i=n.style;i.width=e+"px",i.height=t+"px";var a=this._svgDom;a.setAttribute("width",e+""),a.setAttribute("height",t+"")}this._backgroundNode&&(this._backgroundNode.setAttribute("width",e),this._backgroundNode.setAttribute("height",t))},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype._getSize=function(e){var t=this._opts,n=["width","height"][e],r=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=t[n]&&"auto"!==t[n])return parseFloat(t[n]);var o=this.root,s=document.defaultView.getComputedStyle(o);return(o[r]||ge(s[n])||ge(o.style[n]))-(ge(s[i])||0)-(ge(s[a])||0)|0},e.prototype.dispose=function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},e.prototype.clear=function(){var e=this._viewport;e&&e.parentNode&&e.parentNode.removeChild(e)},e.prototype.toDataURL=function(){this.refresh();var e=this._svgDom,t=e.outerHTML||(e.parentNode&&e.parentNode).innerHTML,n=encodeURIComponent(t.replace(/></g,">\n\r<"));return"data:image/svg+xml;charset=UTF-8,"+n},e}();function Te(e){return function(){s["logError"]('In SVG mode painter not support method "'+e+'"')}}var Oe=Se;function Me(e){e.registerPainter("svg",Oe)}var Ee=n("qKCw"),Ae=n("bTwz"),Ce=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.legendSymbol="line",n}return Object(v["b"])(t,e),t.prototype.getInitialData=function(e){return Object(Ee["a"])(this.getSource(),this,{useEncodeDefaulter:!0})},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={zlevel:0,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,lineStyle:{width:"bolder"}},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},t}(Ae["a"]),Ie=Ce,De=n("BAGR"),Le=n("AyoT"),Pe=n("ljS3"),ke=n("MJ25"),Re=n("wh+7"),Ne=n("sKBc"),je=n("CfRN");function Fe(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=Object(je["e"])(e,t,n[0]);return null!=i?i+"":null}if(r){for(var a=[],o=0;o<n.length;o++)a.push(Object(je["e"])(e,t,n[o]));return a.join(" ")}}function ze(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!Object(s["isArray"])(t))return t+"";for(var r=[],i=0;i<n.length;i++){var a=e.getDimensionInfo(n[i]);a&&r.push(t[a.index])}return r.join(" ")}var Be=n("IhSh"),Ve=function(e){function t(t,n,r,i){var a=e.call(this)||this;return a.updateData(t,n,r,i),a}return Object(v["b"])(t,e),t.prototype._createSymbol=function(e,t,n,r,i){this.removeAll();var a=Object(Pe["a"])(e,-1,-1,2,2,null,i);a.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),a.drift=Ge,this._symbolType=e,this.add(a)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Object(Re["n"])(this.childAt(0))},t.prototype.downplay=function(){Object(Re["w"])(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e){var t=this.childAt(0);t.draggable=e,t.cursor=e?"move":t.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var a=e.getItemVisual(n,"symbol")||"circle",o=e.hostModel,s=t.getSymbolSize(e,n),l=a!==this._symbolType,u=i&&i.disableAnimation;if(l){var c=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(a,e,n,s,c)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:s[0]/2,scaleY:s[1]/2};u?h.attr(d):Le["updateProps"](h,d,o,n)}if(this._updateCommon(e,n,s,r,i),l){h=this.childAt(0);if(!u){d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Le["initProps"](h,d,o,n)}}u&&this.childAt(0).stopAnimation("remove"),this._seriesModel=o},t.prototype._updateCommon=function(e,t,n,r,i){var a,o,l,c,h,d,f,p,g,m=this.childAt(0),v=e.hostModel;if(r&&(a=r.emphasisItemStyle,o=r.blurItemStyle,l=r.selectItemStyle,c=r.focus,h=r.blurScope,d=r.symbolOffset,f=r.labelStatesModels,p=r.hoverScale,g=r.cursorStyle),!r||e.hasItemOption){var y=r&&r.itemModel?r.itemModel:e.getItemModel(t),b=y.getModel("emphasis");a=b.getModel("itemStyle").getItemStyle(),l=y.getModel(["select","itemStyle"]).getItemStyle(),o=y.getModel(["blur","itemStyle"]).getItemStyle(),c=b.get("focus"),h=b.get("blurScope"),d=y.getShallow("symbolOffset"),f=Object(Be["e"])(y),p=b.getShallow("scale"),g=y.getShallow("cursor")}var _=e.getItemVisual(t,"symbolRotate");m.attr("rotation",(_||0)*Math.PI/180||0),d&&(m.x=Object(Ne["o"])(d[0],n[0]),m.y=Object(Ne["o"])(d[1],n[1])),g&&m.attr("cursor",g);var x=e.getItemVisual(t,"style"),w=x.fill;if(m instanceof u["a"]){var S=m.style;m.useStyle(Object(s["extend"])({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},x))}else m.__isEmptyBrush?m.useStyle(Object(s["extend"])({},x)):m.useStyle(x),m.style.decal=null,m.setColor(w,i&&i.symbolInnerColor),m.style.strokeNoScale=!0;var T=e.getItemVisual(t,"liftZ"),O=this._z2;null!=T?null==O&&(this._z2=m.z2,m.z2+=T):null!=O&&(m.z2=O,this._z2=null);var M=i&&i.useNameLabel;function E(t){return M?e.getName(t):Fe(e,t)}Object(Be["g"])(m,f,{labelFetcher:v,labelDataIndex:t,defaultText:E,inheritColor:w,defaultOpacity:x.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var A=m.ensureState("emphasis");if(A.style=a,m.ensureState("select").style=l,m.ensureState("blur").style=o,p){var C=Math.max(1.1,3/this._sizeY);A.scaleX=this._sizeX*C,A.scaleY=this._sizeY*C}this.setSymbolScale(1),Object(Re["k"])(this,c,h)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t){var n=this.childAt(0),r=this._seriesModel,i=Object(ke["a"])(this).dataIndex,a=t&&t.animation;if(this.silent=n.silent=!0,t&&t.fadeLabel){var o=n.getTextContent();o&&Le["removeElement"](o,{style:{opacity:0}},r,{dataIndex:i,removeOpt:a,cb:function(){n.removeTextContent()}})}else n.removeTextContent();Le["removeElement"](n,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:i,cb:e,removeOpt:a})},t.getSymbolSize=function(e,t){var n=e.getItemVisual(t,"symbolSize");return n instanceof Array?n.slice():[+n,+n]},t}(De["a"]);function Ge(e,t){this.parent.drift(e,t)}var He=Ve;function Ue(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function We(e){return null==e||Object(s["isObject"])(e)||(e={isIgnore:e}),e||{}}function Xe(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),symbolRotate:t.get("symbolRotate"),symbolOffset:t.get("symbolOffset"),hoverScale:n.get("scale"),labelStatesModels:Object(Be["e"])(t),cursorStyle:t.get("cursor")}}var Ye=function(){function e(e){this.group=new De["a"],this._SymbolCtor=e||He}return e.prototype.updateData=function(e,t){t=We(t);var n=this.group,r=e.hostModel,i=this._data,a=this._SymbolCtor,o=t.disableAnimation,s=Xe(e),l={disableAnimation:o},u=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add((function(r){var i=u(r);if(Ue(e,i,r,t)){var o=new a(e,r,s,l);o.setPosition(i),e.setItemGraphicEl(r,o),n.add(o)}})).update((function(c,h){var d=i.getItemGraphicEl(h),f=u(c);if(Ue(e,f,c,t)){if(d){d.updateData(e,c,s,l);var p={x:f[0],y:f[1]};o?d.attr(p):Le["updateProps"](d,p,r)}else d=new a(e,c),d.setPosition(f);n.add(d),e.setItemGraphicEl(c,d)}else n.remove(d)})).remove((function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut((function(){n.remove(t)}))})).execute(),this._getSymbolPoint=u,this._data=e},e.prototype.isPersistent=function(){return!0},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl((function(t,n){var r=e._getSymbolPoint(n);t.setPosition(r),t.markRedraw()}))},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Xe(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){function r(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}n=We(n);for(var i=e.start;i<e.end;i++){var a=t.getItemLayout(i);if(Ue(t,a,i,n)){var o=new this._SymbolCtor(t,i,this._seriesScope);o.traverse(r),o.setPosition(a),this.group.add(o),t.setItemGraphicEl(i,o)}}},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl((function(e){e.fadeOut((function(){t.remove(e)}))})):t.removeAll()},e}(),Ke=Ye,qe=n("EzfI");function Ze(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),a=$e(i,n),o=r.dim,l=i.dim,u=t.mapDimension(l),c=t.mapDimension(o),h="x"===l||"radius"===l?1:0,d=Object(s["map"])(e.dimensions,(function(e){return t.mapDimension(e)})),f=!1,p=t.getCalculationInfo("stackResultDimension");return Object(qe["c"])(t,d[0])&&(f=!0,d[0]=p),Object(qe["c"])(t,d[1])&&(f=!0,d[1]=p),{dataDimsForPoint:d,valueStart:a,valueAxisDim:l,baseAxisDim:o,stacked:!!f,valueDim:u,baseDim:c,baseDataOffset:h,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function $e(e,t){var n=0,r=e.scale.getExtent();return"start"===t?n=r[0]:"end"===t?n=r[1]:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function Qe(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=n.get(e.baseDim,r),o[1-a]=i,t.dataToPoint(o)}var Je="undefined"!==typeof Float32Array,et=Je?Float32Array:Array;function tt(e){return Object(s["isArray"])(e)?Je?new Float32Array(e):e:new et(e)}function nt(e,t){var n=[];return t.diff(e).add((function(e){n.push({cmd:"+",idx:e})})).update((function(e,t){n.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){n.push({cmd:"-",idx:e})})).execute(),n}function rt(e,t,n,r,i,a,o,s){for(var l=nt(e,t),u=[],c=[],h=[],d=[],f=[],p=[],g=[],m=Ze(i,t,o),v=Ze(a,e,s),y=e.getLayout("points")||[],b=t.getLayout("points")||[],_=0;_<l.length;_++){var x=l[_],w=!0,S=void 0,T=void 0;switch(x.cmd){case"=":S=2*x.idx,T=2*x.idx1;var O=y[S],M=y[S+1],E=b[T],A=b[T+1];(isNaN(O)||isNaN(M))&&(O=E,M=A),u.push(O,M),c.push(E,A),h.push(n[S],n[S+1]),d.push(r[T],r[T+1]),g.push(t.getRawIndex(x.idx1));break;case"+":var C=x.idx,I=m.dataDimsForPoint,D=i.dataToPoint([t.get(I[0],C),t.get(I[1],C)]);T=2*C,u.push(D[0],D[1]),c.push(b[T],b[T+1]);var L=Qe(m,i,t,C);h.push(L[0],L[1]),d.push(r[T],r[T+1]),g.push(t.getRawIndex(C));break;case"-":var P=x.idx,k=e.getRawIndex(P),R=v.dataDimsForPoint;if(S=2*P,k!==P){var N=a.dataToPoint([e.get(R[0],P),e.get(R[1],P)]),j=Qe(v,a,e,P);u.push(y[S],y[S+1]),c.push(N[0],N[1]),h.push(n[S],n[S+1]),d.push(j[0],j[1]),g.push(k)}else w=!1}w&&(f.push(x),p.push(p.length))}p.sort((function(e,t){return g[e]-g[t]}));var F=u.length,z=tt(F),B=tt(F),V=tt(F),G=tt(F),H=[];for(_=0;_<p.length;_++){var U=p[_],W=2*_,X=2*U;z[W]=u[X],z[W+1]=u[X+1],B[W]=c[X],B[W+1]=c[X+1],V[W]=h[X],V[W+1]=h[X+1],G[W]=d[X],G[W+1]=d[X+1],H[_]=f[U]}return{current:z,next:B,stackedOnCurrent:V,stackedOnNext:G,status:H}}var it=n("wxy1"),at=n("2ZPZ"),ot=n("b26b"),st=n("5MTG"),lt=n("Yc1X"),ut=Math.min,ct=Math.max;function ht(e,t){return isNaN(e)||isNaN(t)}function dt(e,t,n,r,i,a,o,s,l){for(var u,c,h,d,f,p,g=n,m=0;m<r;m++){var v=t[2*g],y=t[2*g+1];if(g>=i||g<0)break;if(ht(v,y)){if(l){g+=a;continue}break}if(g===n)e[a>0?"moveTo":"lineTo"](v,y),h=v,d=y;else{var b=v-u,_=y-c;if(b*b+_*_<.5){g+=a;continue}if(o>0){var x=g+a,w=t[2*x],S=t[2*x+1],T=m+1;if(l)while(ht(w,S)&&T<r)T++,x+=a,w=t[2*x],S=t[2*x+1];var O=.5,M=0,E=0,A=void 0,C=void 0;if(T>=r||ht(w,S))f=v,p=y;else{M=w-u,E=S-c;var I=v-u,D=w-v,L=y-c,P=S-y,k=void 0,R=void 0;"x"===s?(k=Math.abs(I),R=Math.abs(D),f=v-k*o,p=y,A=v+k*o,C=y):"y"===s?(k=Math.abs(L),R=Math.abs(P),f=v,p=y-k*o,A=v,C=y+k*o):(k=Math.sqrt(I*I+L*L),R=Math.sqrt(D*D+P*P),O=R/(R+k),f=v-M*o*(1-O),p=y-E*o*(1-O),A=v+M*o*O,C=y+E*o*O,A=ut(A,ct(w,v)),C=ut(C,ct(S,y)),A=ct(A,ut(w,v)),C=ct(C,ut(S,y)),M=A-v,E=C-y,f=v-M*k/R,p=y-E*k/R,f=ut(f,ct(u,v)),p=ut(p,ct(c,y)),f=ct(f,ut(u,v)),p=ct(p,ut(c,y)),M=v-f,E=y-p,A=v+M*R/k,C=y+E*R/k)}e.bezierCurveTo(h,d,f,p,v,y),h=A,d=C}else e.lineTo(v,y)}u=v,c=y,g+=a}return m}var ft=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),pt=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return Object(v["b"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ft},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0;i--)if(!ht(n[2*i-2],n[2*i-1]))break;for(;r<i;r++)if(!ht(n[2*r],n[2*r+1]))break}while(r<i)r+=dt(e,n,r,i,i,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,r,i=this.path,a=i.data,o=st["a"].CMD,s="x"===t,l=[],u=0;u<a.length;){var c=a[u++],h=void 0,d=void 0,f=void 0,p=void 0,g=void 0,m=void 0,v=void 0;switch(c){case o.M:n=a[u++],r=a[u++];break;case o.L:if(h=a[u++],d=a[u++],v=s?(e-n)/(h-n):(e-r)/(d-r),v<=1&&v>=0){var y=s?(d-r)*v+r:(h-n)*v+n;return s?[e,y]:[y,e]}n=h,r=d;break;case o.C:h=a[u++],d=a[u++],f=a[u++],p=a[u++],g=a[u++],m=a[u++];var b=s?Object(lt["f"])(n,h,f,g,e,l):Object(lt["f"])(r,d,p,m,e,l);if(b>0)for(var _=0;_<b;_++){var x=l[_];if(x<=1&&x>=0){y=s?Object(lt["a"])(r,d,p,m,x):Object(lt["a"])(n,h,f,g,x);return s?[e,y]:[y,e]}}n=g,r=m;break}}},t}(l["b"]),gt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(v["b"])(t,e),t}(ft),mt=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return Object(v["b"])(t,e),t.prototype.getDefaultShape=function(){return new gt},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,a=n.length/2,o=t.smoothMonotone;if(t.connectNulls){for(;a>0;a--)if(!ht(n[2*a-2],n[2*a-1]))break;for(;i<a;i++)if(!ht(n[2*i],n[2*i+1]))break}while(i<a){var s=dt(e,n,i,a,a,1,t.smooth,o,t.connectNulls);dt(e,r,i+s-1,s,a,-1,t.stackedOnSmooth,o,t.connectNulls),i+=s+1,e.closePath()}},t}(l["b"]),vt=n("3Bqt"),yt=n("uN9/"),bt=n("yY2/");function _t(e,t,n,r,i){var a=e.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,c=n.get(["lineStyle","width"])||2;o-=c/2,s-=c/2,l+=c,u+=c,o=Math.floor(o),l=Math.round(l);var h=new yt["a"]({shape:{x:o,y:s,width:l,height:u}});if(t){var d=e.getBaseAxis(),f=d.isHorizontal(),p=d.inverse;f?(p&&(h.shape.x+=l),h.shape.width=0):(p||(h.shape.y+=u),h.shape.height=0);var g="function"===typeof i?function(e){i(e,h)}:null;Le["initProps"](h,{shape:{width:l,height:u,x:o,y:s}},n,null,r,g)}return h}function xt(e,t,n){var r=e.getArea(),i=Object(Ne["u"])(r.r0,1),a=Object(Ne["u"])(r.r,1),o=new bt["a"]({shape:{cx:Object(Ne["u"])(e.cx,1),cy:Object(Ne["u"])(e.cy,1),r0:i,r:a,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(t){var s="angle"===e.getBaseAxis().dim;s?o.shape.endAngle=r.startAngle:o.shape.r=i,Le["initProps"](o,{shape:{endAngle:r.endAngle,r:a}},n)}return o}function wt(e,t,n,r,i){return e?"polar"===e.type?xt(e,t,n):"cartesian2d"===e.type?_t(e,t,n,r,i):null:null}function St(e,t){return e.type===t}var Tt=n("90zU");function Ot(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function Mt(e){for(var t=1/0,n=1/0,r=-1/0,i=-1/0,a=0;a<e.length;){var o=e[a++],s=e[a++];isNaN(o)||(t=Math.min(o,t),r=Math.max(o,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[t,n],[r,i]]}function Et(e,t){var n=Mt(e),r=n[0],i=n[1],a=Mt(t),o=a[0],s=a[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(r[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function At(e){return"number"===typeof e?e:e?.5:0}function Ct(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),i=tt(2*r),a=0;a<r;a++){var o=Qe(n,e,t,a);i[2*a]=o[0],i[2*a+1]=o[1]}return i}function It(e,t,n){for(var r=t.getBaseAxis(),i="x"===r.dim||"radius"===r.dim?0:1,a=[],o=0,s=[],l=[],u=[];o<e.length-2;o+=2)switch(u[0]=e[o+2],u[1]=e[o+3],l[0]=e[o],l[1]=e[o+1],a.push(l[0],l[1]),n){case"end":s[i]=u[i],s[1-i]=l[1-i],a.push(s[0],s[1]);break;case"middle":var c=(l[i]+u[i])/2,h=[];s[i]=h[i]=c,s[1-i]=l[1-i],h[1-i]=u[1-i],a.push(s[0],s[1]),a.push(h[0],h[1]);break;default:s[i]=l[i],s[1-i]=u[1-i],a.push(s[0],s[1])}return a.push(e[o++],e[o++]),a}function Dt(e,t){var n=e.getVisual("visualMeta");if(n&&n.length&&e.count()&&"cartesian2d"===t.type){for(var r,i,a=n.length-1;a>=0;a--){var o=n[a].dimension,l=e.dimensions[o],u=e.getDimensionInfo(l);if(r=u&&u.coordDim,"x"===r||"y"===r){i=n[a];break}}if(i){var c=t.getAxis(r),h=s["map"](i.stops,(function(e){return{offset:0,coord:c.toGlobalCoord(c.dataToCoord(e.value)),color:e.color}})),d=h.length,f=i.outerColors.slice();d&&h[0].coord>h[d-1].coord&&(h.reverse(),f.reverse());var p=10,g=h[0].coord-p,m=h[d-1].coord+p,v=m-g;if(v<.001)return"transparent";s["each"](h,(function(e){e.offset=(e.coord-g)/v})),h.push({offset:d?h[d-1].offset:.5,color:f[1]||"transparent"}),h.unshift({offset:d?h[0].offset:.5,color:f[0]||"transparent"});var y=new it["a"](0,0,0,0,h,!0);return y[r]=g,y[r+"2"]=m,y}}}function Lt(e,t,n){var r=e.get("showAllSymbol"),i="auto"===r;if(!r||i){var a=n.getAxesByScale("ordinal")[0];if(a&&(!i||!Pt(a,t))){var o=t.mapDimension(a.dim),l={};return s["each"](a.getViewLabels(),(function(e){var t=a.scale.getRawOrdinalNumber(e.tickValue);l[t]=1})),function(e){return!l.hasOwnProperty(t.get(o,e))}}}}function Pt(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(1.5*He.getSymbolSize(t,o)[e.isHorizontal()?1:0]>r)return!1;return!0}function kt(e,t){return isNaN(e)||isNaN(t)}function Rt(e){for(var t=e.length/2;t>0;t--)if(!kt(e[2*t-2],e[2*t-1]))break;return t-1}function Nt(e,t){return[e[2*t],e[2*t+1]]}function jt(e,t,n){for(var r,i,a=e.length/2,o="x"===n?0:1,s=0,l=-1,u=0;u<a;u++)if(i=e[2*u+o],!isNaN(i)&&!isNaN(e[2*u+1-o]))if(0!==u){if(r<=t&&i>=t||r>=t&&i<=t){l=u;break}s=u,r=i}else r=i;return{range:[s,l],t:(t-r)/(i-r)}}function Ft(e,t,n,r){if(St(t,"cartesian2d")){var i=r.getModel("endLabel"),a=i.get("show"),o=i.get("valueAnimation"),s=r.getData(),l={lastFrameIndex:0},u=a?function(n,r){e._endLabelOnDuring(n,r,s,l,o,i,t)}:null,c=t.getBaseAxis().isHorizontal(),h=_t(t,n,r,(function(){var t=e._endLabel;t&&n&&null!=l.originalX&&t.attr({x:l.originalX,y:l.originalY})}),u);if(!r.get("clip",!0)){var d=h.shape,f=Math.max(d.width,d.height);c?(d.y-=f,d.height+=2*f):(d.x-=f,d.width+=2*f)}return u&&u(1,h),h}return xt(t,n,r)}function zt(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,a=r?i?"right":"left":"center",o=r?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||a,verticalAlign:e.get("verticalAlign")||o}}}var Bt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(v["b"])(t,e),t.prototype.init=function(){var e=new De["a"],t=new Ke;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},t.prototype.render=function(e,t,n){var r=this,i=e.coordinateSystem,a=this.group,o=e.getData(),l=e.getModel("lineStyle"),u=e.getModel("areaStyle"),c=o.getLayout("points")||[],h="polar"===i.type,d=this._coordSys,f=this._symbolDraw,p=this._polyline,g=this._polygon,m=this._lineGroup,v=e.get("animation"),y=!u.isEmpty(),b=u.get("origin"),_=Ze(i,o,b),x=y&&Ct(i,o,_),w=e.get("showSymbol"),S=w&&!h&&Lt(e,o,i),T=this._data;T&&T.eachItemGraphicEl((function(e,t){e.__temp&&(a.remove(e),T.setItemGraphicEl(t,null))})),w||f.remove(),a.add(m);var O,M=!h&&e.get("step");i&&i.getArea&&e.get("clip",!0)&&(O=i.getArea(),null!=O.width?(O.x-=.1,O.y-=.1,O.width+=.2,O.height+=.2):O.r0&&(O.r0-=.5,O.r+=.5)),this._clipShapeForSymbol=O;var E=Dt(o,i)||o.getVisual("style")[o.getVisual("drawType")];p&&d.type===i.type&&M===this._step?(y&&!g?g=this._newPolygon(c,x):g&&!y&&(m.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(e,i,Object(Tt["c"])(E)),m.setClipPath(Ft(this,i,!1,e)),w&&f.updateData(o,{isIgnore:S,clipShape:O,disableAnimation:!0,getSymbolPoint:function(e){return[c[2*e],c[2*e+1]]}}),Ot(this._stackedOnPoints,x)&&Ot(this._points,c)||(v?this._doUpdateAnimation(o,x,i,n,M,b):(M&&(c=It(c,i,M),x&&(x=It(x,i,M))),p.setShape({points:c}),g&&g.setShape({points:c,stackedOnPoints:x})))):(w&&f.updateData(o,{isIgnore:S,clipShape:O,disableAnimation:!0,getSymbolPoint:function(e){return[c[2*e],c[2*e+1]]}}),v&&this._initSymbolLabelAnimation(o,i,O),M&&(c=It(c,i,M),x&&(x=It(x,i,M))),p=this._newPolyline(c),y&&(g=this._newPolygon(c,x)),h||this._initOrUpdateEndLabel(e,i,Object(Tt["c"])(E)),m.setClipPath(Ft(this,i,!0,e)));var A=e.get(["emphasis","focus"]),C=e.get(["emphasis","blurScope"]);if(p.useStyle(s["defaults"](l.getLineStyle(),{fill:"none",stroke:E,lineJoin:"bevel"})),Object(Re["D"])(p,e,"lineStyle"),p.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"])){var I=p.getState("emphasis").style;I.lineWidth=p.style.lineWidth+1}Object(ke["a"])(p).seriesIndex=e.seriesIndex,Object(Re["k"])(p,A,C);var D=At(e.get("smooth")),L=e.get("smoothMonotone"),P=e.get("connectNulls");if(p.setShape({smooth:D,smoothMonotone:L,connectNulls:P}),g){var k=o.getCalculationInfo("stackedOnSeries"),R=0;g.useStyle(s["defaults"](u.getAreaStyle(),{fill:E,opacity:.7,lineJoin:"bevel",decal:o.getVisual("style").decal})),k&&(R=At(k.get("smooth"))),g.setShape({smooth:D,stackedOnSmooth:R,smoothMonotone:L,connectNulls:P}),Object(Re["D"])(g,e,"areaStyle"),Object(ke["a"])(g).seriesIndex=e.seriesIndex,Object(Re["k"])(g,A,C)}var N=function(e){r._changePolyState(e)};o.eachItemGraphicEl((function(e){e&&(e.onHoverStateChange=N)})),this._polyline.onHoverStateChange=N,this._data=o,this._coordSys=i,this._stackedOnPoints=x,this._points=c,this._step=M,this._valueOrigin=b},t.prototype.dispose=function(){},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),a=ot["t"](i,r);if(this._changePolyState("emphasis"),!(a instanceof Array)&&null!=a&&a>=0){var o=i.getLayout("points"),s=i.getItemGraphicEl(a);if(!s){var l=o[2*a],u=o[2*a+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;s=new He(i,a),s.x=l,s.y=u,s.setZ(e.get("zlevel"),e.get("z")),s.__temp=!0,i.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else vt["a"].prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),a=ot["t"](i,r);if(this._changePolyState("normal"),null!=a&&a>=0){var o=i.getItemGraphicEl(a);o&&(o.__temp?(i.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else vt["a"].prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;Object(Re["C"])(this._polyline,e),t&&Object(Re["C"])(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new pt({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new mt({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,a=t.getBaseAxis(),o=a.inverse;"cartesian2d"===t.type?(r=a.isHorizontal(),i=!1):"polar"===t.type&&(r="angle"===a.dim,i=!0);var s=e.hostModel,l=s.get("animationDuration");"function"===typeof l&&(l=l(null));var u=s.get("animationDelay")||0,c="function"===typeof u?u(null):u;e.eachItemGraphicEl((function(e,a){var s=e;if(s){var h=[e.x,e.y],d=void 0,f=void 0,p=void 0;if(i){var g=n,m=t.pointToCoord(h);r?(d=g.startAngle,f=g.endAngle,p=-m[1]/180*Math.PI):(d=g.r0,f=g.r,p=m[0])}else{var v=n;r?(d=v.x,f=v.x+v.width,p=e.x):(d=v.y+v.height,f=v.y,p=e.y)}var y=f===d?0:(p-d)/(f-d);o&&(y=1-y);var b="function"===typeof u?u(a):l*y+c,_=s.getSymbolPath(),x=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,delay:b}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:b}),_.disableLabelAnimation=!0}}))},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel("endLabel");if(r.get("show")){var i=e.getData(),a=this._polyline,o=this._endLabel;o||(o=this._endLabel=new at["a"]({z2:200}),o.ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var s=Rt(i.getLayout("points"));s>=0&&(Object(Be["g"])(a,Object(Be["e"])(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:s,defaultText:function(e,t,n){return null!=n?ze(i,n):Fe(i,e)},enableTextSetter:!0},zt(r,t)),a.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,a,o){var s=this._endLabel,l=this._polyline;if(s){e<1&&null==r.originalX&&(r.originalX=s.x,r.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),d=a.get("precision"),f=a.get("distance")||0,p=o.getBaseAxis(),g=p.isHorizontal(),m=p.inverse,v=t.shape,y=m?g?v.x:v.y+v.height:g?v.x+v.width:v.y,b=(g?f:0)*(m?-1:1),_=(g?0:-f)*(m?-1:1),x=g?"x":"y",w=jt(u,y,x),S=w.range,T=S[1]-S[0],O=void 0;if(T>=1){if(T>1&&!h){var M=Nt(u,S[0]);s.attr({x:M[0]+b,y:M[1]+_}),i&&(O=c.getRawValue(S[0]))}else{M=l.getPointOn(y,x);M&&s.attr({x:M[0]+b,y:M[1]+_});var E=c.getRawValue(S[0]),A=c.getRawValue(S[1]);i&&(O=ot["k"](n,d,E,A,w.t))}r.lastFrameIndex=S[0]}else{var C=1===e||r.lastFrameIndex>0?S[0]:0;M=Nt(u,C);i&&(O=c.getRawValue(C)),s.attr({x:M[0]+b,y:M[1]+_})}i&&Object(Be["f"])(s).setLabelText(O)}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,a){var o=this._polyline,s=this._polygon,l=e.hostModel,u=rt(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,a),c=u.current,h=u.stackedOnCurrent,d=u.next,f=u.stackedOnNext;if(i&&(c=It(u.current,n,i),h=It(u.stackedOnCurrent,n,i),d=It(u.next,n,i),f=It(u.stackedOnNext,n,i)),Et(c,d)>3e3||s&&Et(h,f)>3e3)return o.setShape({points:d}),void(s&&s.setShape({points:d,stackedOnPoints:f}));o.shape.__points=u.current,o.shape.points=c;var p={shape:{points:d}};u.current!==c&&(p.shape.__points=u.next),o.stopAnimation(),Le["updateProps"](o,p,l),s&&(s.setShape({points:c,stackedOnPoints:h}),s.stopAnimation(),Le["updateProps"](s,{shape:{stackedOnPoints:f}},l),o.shape.points!==s.shape.points&&(s.shape.points=o.shape.points));for(var g=[],m=u.status,v=0;v<m.length;v++){var y=m[v].cmd;if("="===y){var b=e.getItemGraphicEl(m[v].idx1);b&&g.push({el:b,ptIdx:v})}}o.animators&&o.animators.length&&o.animators[0].during((function(){s&&s.dirtyShape();for(var e=o.shape.__points,t=0;t<g.length;t++){var n=g[t].el,r=2*g[t].ptIdx;n.x=e[r],n.y=e[r+1],n.markRedraw()}}))},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(vt["a"]),Vt=Bt,Gt=n("3qB0");function Ht(e,t){return{seriesType:e,plan:Object(Gt["a"])(),reset:function(e){var n=e.getData(),r=e.coordinateSystem,i=e.pipelineContext,a=t||i.large;if(r){var o=Object(s["map"])(r.dimensions,(function(e){return n.mapDimension(e)})).slice(0,2),l=o.length,u=n.getCalculationInfo("stackResultDimension");Object(qe["c"])(n,o[0])&&(o[0]=u),Object(qe["c"])(n,o[1])&&(o[1]=u);var c=n.getDimensionInfo(o[0]),h=n.getDimensionInfo(o[1]),d=c&&c.index,f=h&&h.index;return l&&{progress:function(e,t){for(var n=e.end-e.start,i=a&&tt(n*l),o=[],s=[],u=e.start,c=0;u<e.end;u++){var h=void 0;if(1===l){var p=t.getByDimIdx(d,u);h=r.dataToPoint(p,null,s)}else o[0]=t.getByDimIdx(d,u),o[1]=t.getByDimIdx(f,u),h=r.dataToPoint(o,null,s);a?(i[c++]=h[0],i[c++]=h[1]):t.setItemLayout(u,h.slice())}a&&t.setLayout("points",i)}}}}}}var Ut={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return 0===n?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},Wt=function(e){return Math.round(e.length/2)};function Xt(e){return{seriesType:e,reset:function(e,t,n){var r=e.getData(),i=e.get("sampling"),a=e.coordinateSystem,o=r.count();if(o>10&&"cartesian2d"===a.type&&i){var s=a.getBaseAxis(),l=a.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(u[1]-u[0])*(c||1),d=Math.round(o/h);if(d>1){"lttb"===i&&e.setData(r.lttbDownSample(r.mapDimension(l.dim),1/d));var f=void 0;"string"===typeof i?f=Ut[i]:"function"===typeof i&&(f=i),f&&e.setData(r.downSample(r.mapDimension(l.dim),1/d,f,Wt))}}}}}function Yt(e){e.registerChartView(Vt),e.registerSeriesModel(Ie),e.registerLayout(Ht("line",!0)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Xt("line"))}var Kt=n("elbk"),qt=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.getInitialData=function(e,t){return Object(Ee["a"])(this.getSource(),this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e){var t=this.coordinateSystem;if(t){var n=t.dataToPoint(t.clampData(e)),r=this.getData(),i=r.getLayout("offset"),a=r.getLayout("size"),o=t.getBaseAxis().isHorizontal()?0:1;return n[o]+=i+a/2,n}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(Ae["a"]);Ae["a"].registerClass(qt);var Zt=qt,$t=n("rJci"),Qt=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.getInitialData=function(){return Object(Ee["a"])(this.getSource(),this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Object($t["d"])(Zt.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(Zt),Jt=Qt,en=n("qtYV"),tn=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return e}(),nn=function(e){function t(t){var n=e.call(this,t)||this;return n.type="sausage",n}return Object(v["b"])(t,e),t.prototype.getDefaultShape=function(){return new tn},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=.5*(a-i),s=i+o,l=t.startAngle,u=t.endAngle,c=t.clockwise,h=Math.cos(l),d=Math.sin(l),f=Math.cos(u),p=Math.sin(u),g=c?u-l<2*Math.PI:l-u<2*Math.PI;g&&(e.moveTo(h*i+n,d*i+r),e.arc(h*s+n,d*s+r,o,-Math.PI+l,l,!c)),e.arc(n,r,a,l,u,!c),e.moveTo(f*a+n,p*a+r),e.arc(f*s+n,p*s+r,o,u-2*Math.PI,u-Math.PI,!c),0!==i&&(e.arc(n,r,i,u,l,c),e.moveTo(h*i+n,p*i+r)),e.closePath()},t}(l["b"]),rn=nn,an=["itemStyle","borderWidth"],on=["itemStyle","borderRadius"],sn=[0,0],ln=Math.max,un=Math.min;function cn(e,t){var n=e.getArea&&e.getArea();if(St(e,"cartesian2d")){var r=e.getBaseAxis();if("category"!==r.type||!r.onBand){var i=t.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=2*i):(n.y-=i,n.height+=2*i)}}return n}var hn=function(e){function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return Object(v["b"])(t,e),t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var i=e.get("coordinateSystem");("cartesian2d"===i||"polar"===i)&&(this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._incrementalRenderLarge(e,t)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,r){var i,a=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?i=u.isHorizontal():"polar"===l.type&&(i="angle"===u.dim);var c=e.isAnimationEnabled()?e:null,h=pn(e,l);h&&this._enableRealtimeSort(h,o,n);var d=e.get("clip",!0)||h,f=cn(l,o);a.removeClipPath();var p=e.get("roundCap",!0),g=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),v=m.get("borderRadius")||0,y=[],b=this._backgroundEls,_=r&&r.isInitSort,x=r&&"changeAxisOrder"===r.type;function w(e){var t=mn[l.type](o,e),n=An(l,i,t);return n.useStyle(m.getItemStyle()),"cartesian2d"===l.type&&n.setShape("r",v),y[e]=n,n}o.diff(s).add((function(t){var n=o.getItemModel(t),r=mn[l.type](o,t,n);if(g&&w(t),o.hasValue(t)){var s=!1;d&&(s=dn[l.type](f,r));var m=fn[l.type](e,o,t,r,i,c,u.model,!1,p);yn(m,o,t,n,r,e,i,"polar"===l.type),_?m.attr({shape:r}):h?gn(h,c,m,r,t,i,!1,!1):Object(Le["initProps"])(m,{shape:r},e,t),o.setItemGraphicEl(t,m),a.add(m),m.ignore=s}})).update((function(t,n){var r=o.getItemModel(t),S=mn[l.type](o,t,r);if(g){var T=void 0;0===b.length?T=w(n):(T=b[n],T.useStyle(m.getItemStyle()),"cartesian2d"===l.type&&T.setShape("r",v),y[t]=T);var O=mn[l.type](o,t),M=En(i,O,l);Object(Le["updateProps"])(T,{shape:M},c,t)}var E=s.getItemGraphicEl(n);if(!o.hasValue(t))return a.remove(E),void(E=null);var A=!1;d&&(A=dn[l.type](f,S),A&&a.remove(E)),E||(E=fn[l.type](e,o,t,S,i,c,u.model,!!E,p)),x||yn(E,o,t,r,S,e,i,"polar"===l.type),_?E.attr({shape:S}):h?gn(h,c,E,S,t,i,!0,x):Object(Le["updateProps"])(E,{shape:S},e,t,null),o.setItemGraphicEl(t,E),E.ignore=A,a.add(E)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&Object(Le["removeElementWithFadeOut"])(n,e,t)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new De["a"]);S.removeAll();for(var T=0;T<y.length;++T)S.add(y[T]);a.add(S),this._backgroundEls=y,this._data=o},t.prototype._renderLarge=function(e,t,n){this._clear(),wn(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),wn(t,this.group,!0)},t.prototype._updateLargeClip=function(e){var t=e.get("clip",!0)?wt(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var r=this;if(t.count()){var i=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var a=function(e){var n=t.getItemGraphicEl(e);if(n){var r=n.shape;return(i.isHorizontal()?Math.abs(r.height):Math.abs(r.width))||0}return 0};this._onRendered=function(){r._updateSortWithinSameData(t,a,i,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),(function(e,t){var i=n(t);i=null==i?NaN:i,r.push({dataIndex:t,mappedValue:i,ordinalNumber:e})})),r.sort((function(e,t){return t.mappedValue-e.mappedValue})),{ordinalNumbers:Object(s["map"])(r,(function(e){return e.ordinalNumber}))}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var r=n.scale,i=e.mapDimension(n.dim),a=Number.MAX_VALUE,o=0,s=r.getOrdinalMeta().categories.length;o<s;++o){var l=e.rawIndexOf(i,r.getRawOrdinalNumber(o)),u=l<0?Number.MIN_VALUE:t(e.indexOfRawIndex(l));if(u>a)return!0;a=u}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,(function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:i,animation:{duration:0}})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(t){Object(Le["removeElementWithFadeOut"])(t,e,Object(ke["a"])(t).dataIndex)}))):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(vt["a"]),dn={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=ln(t.x,e.x),s=un(t.x+t.width,i),l=ln(t.y,e.y),u=un(t.y+t.height,a),c=s<o,h=u<l;return t.x=c&&o>i?s:o,t.y=h&&l>a?u:l,t.width=c?0:s-o,t.height=h?0:u-l,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),c||h},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=un(t.r,e.r),a=ln(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(n<0){r=t.r;t.r=t.r0,t.r0=r}return o}},fn={cartesian2d:function(e,t,n,r,i,a,o,l,u){var c=new yt["a"]({shape:Object(s["extend"])({},r),z2:1});if(c.__dataIndex=n,c.name="item",a){var h=c.shape,d=i?"height":"width";h[d]=0}return c},polar:function(e,t,n,r,i,a,o,l,u){var c=r.startAngle<r.endAngle,h=!i&&u?rn:bt["a"],d=new h({shape:Object(s["defaults"])({clockwise:c},r),z2:1});if(d.name="item",a){var f=d.shape,p=i?"r":"endAngle",g={};f[p]=i?0:r.startAngle,g[p]=r[p],(l?Le["updateProps"]:Le["initProps"])(d,{shape:g},a)}return d}};function pn(e,t){var n=e.get("realtimeSort",!0),r=t.getBaseAxis();if(n&&"category"===r.type&&"cartesian2d"===t.type)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function gn(e,t,n,r,i,a,o,s){var l,u;a?(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||(o?Le["updateProps"]:Le["initProps"])(n,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(o?Le["updateProps"]:Le["initProps"])(n,{shape:u},c,i)}var mn={cartesian2d:function(e,t,n){var r=e.getItemLayout(t),i=n?bn(n,r):0,a=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle}}};function vn(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}function yn(e,t,n,r,i,a,o,l){var u=t.getItemVisual(n,"style");l||e.setShape("r",r.get(on)||0),e.useStyle(u);var c=r.getShallow("cursor");if(c&&e.attr("cursor",c),!l){var h=o?i.height>0?"bottom":"top":i.width>0?"left":"right",d=Object(Be["e"])(r);Object(Be["g"])(e,d,{labelFetcher:a,labelDataIndex:n,defaultText:Fe(a.getData(),n),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:h});var f=e.getTextContent();Object(Be["h"])(f,d,a.getRawValue(n),(function(e){return ze(t,e)}))}var p=r.getModel(["emphasis"]);Object(Re["k"])(e,p.get("focus"),p.get("blurScope")),Object(Re["D"])(e,r),vn(i)&&(e.style.fill="none",e.style.stroke="none",Object(s["each"])(e.states,(function(e){e.style&&(e.style.fill=e.style.stroke="none")})))}function bn(e,t){var n=e.get(an)||0,r=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,r,i)}var _n=function(){function e(){}return e}(),xn=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeBar",n}return Object(v["b"])(t,e),t.prototype.getDefaultShape=function(){return new _n},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.__startPoint,i=this.__baseDimIdx,a=0;a<n.length;a+=2)r[i]=n[a+i],e.moveTo(r[0],r[1]),e.lineTo(n[a],n[a+1])},t}(l["b"]);function wn(e,t,n){var r=e.getData(),i=[],a=r.getLayout("valueAxisHorizontal")?1:0;i[1-a]=r.getLayout("valueAxisStart");var o=r.getLayout("largeDataIndices"),s=r.getLayout("barWidth"),l=e.getModel("backgroundStyle"),u=e.get("showBackground",!0);if(u){var c=r.getLayout("largeBackgroundPoints"),h=[];h[1-a]=r.getLayout("backgroundStart");var d=new xn({shape:{points:c},incremental:!!n,silent:!0,z2:0});d.__startPoint=h,d.__baseDimIdx=a,d.__largeDataIndices=o,d.__barWidth=s,Mn(d,l,r),t.add(d)}var f=new xn({shape:{points:r.getLayout("largePoints")},incremental:!!n});f.__startPoint=i,f.__baseDimIdx=a,f.__largeDataIndices=o,f.__barWidth=s,t.add(f),On(f,e,r),Object(ke["a"])(f).seriesIndex=e.seriesIndex,e.get("silent")||(f.on("mousedown",Sn),f.on("mousemove",Sn))}var Sn=Object(en["c"])((function(e){var t=this,n=Tn(t,e.offsetX,e.offsetY);Object(ke["a"])(t).dataIndex=n>=0?n:null}),30,!1);function Tn(e,t,n){var r=e.__baseDimIdx,i=1-r,a=e.shape.points,o=e.__largeDataIndices,s=Math.abs(e.__barWidth/2),l=e.__startPoint[i];sn[0]=t,sn[1]=n;for(var u=sn[r],c=sn[1-r],h=u-s,d=u+s,f=0,p=a.length/2;f<p;f++){var g=2*f,m=a[g+r],v=a[g+i];if(m>=h&&m<=d&&(l<=v?c>=l&&c<=v:c>=v&&c<=l))return o[f]}return-1}function On(e,t,n){var r=n.getVisual("style");e.useStyle(Object(s["extend"])({},r)),e.style.fill=null,e.style.stroke=r.fill,e.style.lineWidth=n.getLayout("barWidth")}function Mn(e,t,n){var r=t.get("borderColor")||t.get("color"),i=t.getItemStyle();e.useStyle(i),e.style.fill=null,e.style.stroke=r,e.style.lineWidth=n.getLayout("barWidth")}function En(e,t,n){if(St(n,"cartesian2d")){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}i=n.getArea();var a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:2*Math.PI}}function An(e,t,n){var r="polar"===e.type?bt["a"]:yt["a"];return new r({shape:En(t,n,e),silent:!0,z2:0})}var Cn=hn;function In(e){e.registerChartView(Cn),e.registerSeriesModel(Jt),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,s["curry"](Kt["c"],"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Kt["b"]),e.registerVisual({seriesType:"bar",reset:function(e){e.getData().setVisual("legendSymbol","roundRect")}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Xt("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},(function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)}))}))}var Dn=n("cvH+"),Ln=n("Fi3l"),Pn=2*Math.PI,kn=Math.PI/180;function Rn(e,t){return Ln["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Nn(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.getData(),r=t.mapDimension("value"),i=Rn(e,n),a=e.get("center"),o=e.get("radius");s["isArray"](o)||(o=[0,o]),s["isArray"](a)||(a=[a,a]);var l=Object(Ne["o"])(i.width,n.getWidth()),u=Object(Ne["o"])(i.height,n.getHeight()),c=Math.min(l,u),h=Object(Ne["o"])(a[0],l)+i.x,d=Object(Ne["o"])(a[1],u)+i.y,f=Object(Ne["o"])(o[0],c/2),p=Object(Ne["o"])(o[1],c/2),g=-e.get("startAngle")*kn,m=e.get("minAngle")*kn,v=0;t.each(r,(function(e){!isNaN(e)&&v++}));var y=t.getSum(r),b=Math.PI/(y||v)*2,_=e.get("clockwise"),x=e.get("roseType"),w=e.get("stillShowZeroSum"),S=t.getDataExtent(r);S[0]=0;var T=Pn,O=0,M=g,E=_?1:-1;if(t.setLayout({viewRect:i,r:p}),t.each(r,(function(e,n){var r;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:h,cy:d,r0:f,r:x?NaN:p});else{r="area"!==x?0===y&&w?b:e*b:Pn/v,r<m?(r=m,T-=m):O+=e;var i=M+E*r;t.setItemLayout(n,{angle:r,startAngle:M,endAngle:i,clockwise:_,cx:h,cy:d,r0:f,r:x?Object(Ne["k"])(e,S,[f,p]):p}),M=i}})),T<Pn&&v)if(T<=.001){var A=Pn/v;t.each(r,(function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n);r.angle=A,r.startAngle=g+E*n*A,r.endAngle=g+E*(n+1)*A}}))}else b=T/O,M=g,t.each(r,(function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n),i=r.angle===m?m:e*b;r.startAngle=M,r.endAngle=M+E*i,M+=E*i}}))}))}function jn(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(n&&n.length){var r=e.getData();r.filterSelf((function(e){for(var t=r.getName(e),i=0;i<n.length;i++)if(!n[i].isSelected(t))return!1;return!0}))}}}}var Fn=n("9kVb"),zn=n("8XEw"),Bn=n("V1Aq"),Vn=n("czcW"),Gn=Math.PI/180;function Hn(e,t,n,r,i,a,o,s,l,u){if(!(e.length<2)){for(var c=e.length,h=0;h<c;h++)if("outer"===e[h].position&&"labelLine"===e[h].labelAlignTo){var d=e[h].label.x-u;e[h].linePoints[1][0]+=d,e[h].label.x=u}Object(Vn["d"])(e,l,l+o)&&p(e)}function f(e){for(var a=e.rB,o=a*a,s=0;s<e.list.length;s++){var l=e.list[s],u=Math.abs(l.label.y-n),c=r+l.len,h=c*c,d=Math.sqrt((1-Math.abs(u*u/o))*h);l.label.x=t+(d+l.len2)*i}}function p(e){for(var a={list:[],maxY:0},o={list:[],maxY:0},s=0;s<e.length;s++)if("none"===e[s].labelAlignTo){var l=e[s],u=l.label.y>n?o:a,c=Math.abs(l.label.y-n);if(c>u.maxY){var h=l.label.x-t-l.len2*i,d=r+l.len,p=Math.abs(h)<d?Math.sqrt(c*c/(1-h*h/d/d)):d;u.rB=p,u.maxY=c}u.list.push(l)}f(a),f(o)}}function Un(e,t,n,r,i,a,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,d=0;d<e.length;d++){var f=e[d].label;Wn(e[d])||(f.x<t?(c=Math.min(c,f.x),l.push(e[d])):(h=Math.max(h,f.x),u.push(e[d])))}Hn(u,t,n,r,1,i,a,o,s,h),Hn(l,t,n,r,-1,i,a,o,s,c);for(d=0;d<e.length;d++){var p=e[d];f=p.label;if(!Wn(p)){var g=p.linePoints;if(g){var m="edge"===p.labelAlignTo,v=p.rect.width,y=void 0;y=m?f.x<t?g[2][0]-p.labelDistance-o-p.edgeDistance:o+i-p.edgeDistance-g[2][0]-p.labelDistance:f.x<t?f.x-o-p.bleedMargin:o+i-f.x-p.bleedMargin,y<p.rect.width&&(p.label.style.width=y,"edge"===p.labelAlignTo&&(v=y));var b=g[1][0]-g[2][0];m?f.x<t?g[2][0]=o+p.edgeDistance+v+p.labelDistance:g[2][0]=o+i-p.edgeDistance-v-p.labelDistance:(f.x<t?g[2][0]=f.x+p.labelDistance:g[2][0]=f.x-p.labelDistance,g[1][0]=g[2][0]+b),g[1][1]=g[2][1]=f.y}}}}function Wn(e){return"center"===e.position}function Xn(e){var t,n,r=e.getData(),i=[],a=!1,o=(e.get("minShowLabelAngle")||0)*Gn,l=r.getLayout("viewRect"),u=r.getLayout("r"),c=l.width,h=l.x,d=l.y,f=l.height;function p(e){e.ignore=!0}function g(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}r.each((function(e){var l=r.getItemGraphicEl(e),d=l.shape,f=l.getTextContent(),m=l.getTextGuideLine(),v=r.getItemModel(e),y=v.getModel("label"),b=y.get("position")||v.get(["emphasis","label","position"]),_=y.get("distanceToLabelLine"),x=y.get("alignTo"),w=Object(Ne["o"])(y.get("edgeDistance"),c),S=y.get("bleedMargin"),T=v.getModel("labelLine"),O=T.get("length");O=Object(Ne["o"])(O,c);var M=T.get("length2");if(M=Object(Ne["o"])(M,c),Math.abs(d.endAngle-d.startAngle)<o)return Object(s["each"])(f.states,p),void(f.ignore=!0);if(g(f)){var E,A,C,I,D=(d.startAngle+d.endAngle)/2,L=Math.cos(D),P=Math.sin(D);t=d.cx,n=d.cy;var k,R="inside"===b||"inner"===b;if("center"===b)E=d.cx,A=d.cy,I="center";else{var N=(R?(d.r+d.r0)/2*L:d.r*L)+t,j=(R?(d.r+d.r0)/2*P:d.r*P)+n;if(E=N+3*L,A=j+3*P,!R){var F=N+L*(O+u-d.r),z=j+P*(O+u-d.r),B=F+(L<0?-1:1)*M,V=z;E="edge"===x?L<0?h+w:h+c-w:B+(L<0?-_:_),A=V,C=[[N,j],[F,z],[B,V]]}I=R?"center":"edge"===x?L>0?"right":"left":L>0?"left":"right"}var G=y.get("rotate");if(k="number"===typeof G?G*(Math.PI/180):G?L<0?-D+Math.PI:-D:0,a=!!k,f.x=E,f.y=A,f.rotation=k,f.setStyle({verticalAlign:"middle"}),R){f.setStyle({align:I});var H=f.states.select;H&&(H.x+=f.x,H.y+=f.y)}else{var U=f.getBoundingRect().clone();U.applyTransform(f.getComputedTransform());var W=(f.style.margin||0)+2.1;U.y-=W/2,U.height+=W,i.push({label:f,labelLine:m,position:b,len:O,len2:M,minTurnAngle:T.get("minTurnAngle"),maxSurfaceAngle:T.get("maxSurfaceAngle"),surfaceNormal:new zn["a"](L,P),linePoints:C,textAlign:I,labelDistance:_,labelAlignTo:x,edgeDistance:w,bleedMargin:S,rect:U})}l.setTextConfig({inside:R})}})),!a&&e.get("avoidLabelOverlap")&&Un(i,t,n,u,c,f,h,d);for(var m=0;m<i.length;m++){var v=i[m],y=v.label,b=v.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:v.textAlign}),_&&(Object(s["each"])(y.states,p),y.ignore=!0);var x=y.states.select;x&&(x.x+=y.x,x.y+=y.y)}if(b){var w=v.linePoints;_||!w?(Object(s["each"])(b.states,p),b.ignore=!0):(Object(Bn["c"])(w,v.minTurnAngle),Object(Bn["b"])(w,v.surfaceNormal,v.maxSurfaceAngle),b.setShape({points:w}),y.__hostTarget.textGuideLineConfig={anchor:new zn["a"](w[0][0],w[0][1])})}}}function Yn(e,t){var n=e.get("borderRadius");return null==n?null:(Object(s["isArray"])(n)||(n=[n,n]),{innerCornerRadius:Object(y["h"])(n[0],t.r0),cornerRadius:Object(y["h"])(n[1],t.r)})}var Kn=function(e){function t(t,n,r){var i=e.call(this)||this;i.z2=2;var a=new Fn["a"],o=new at["a"];return i.setTextGuideLine(a),i.setTextContent(o),i.updateData(t,n,r,!0),i}return Object(v["b"])(t,e),t.prototype.updateData=function(e,t,n,r){var i=this,a=e.hostModel,o=e.getItemModel(t),l=o.getModel("emphasis"),u=e.getItemLayout(t),c=Object(s["extend"])(Yn(o.getModel("itemStyle"),u)||{},u);if(r){i.setShape(c);var h=a.getShallow("animationType");"scale"===h?(i.shape.r=u.r0,Le["initProps"](i,{shape:{r:u.r}},a,t)):null!=n?(i.setShape({startAngle:n,endAngle:n}),Le["initProps"](i,{shape:{startAngle:u.startAngle,endAngle:u.endAngle}},a,t)):(i.shape.endAngle=u.startAngle,Le["updateProps"](i,{shape:{endAngle:u.endAngle}},a,t))}else Le["updateProps"](i,{shape:c},a,t);i.useStyle(e.getItemVisual(t,"style")),Object(Re["D"])(i,o);var d=(u.startAngle+u.endAngle)/2,f=a.get("selectedOffset"),p=Math.cos(d)*f,g=Math.sin(d)*f,m=o.getShallow("cursor");m&&i.attr("cursor",m),this._updateLabel(a,e,t),i.ensureState("emphasis").shape=Object(v["a"])({r:u.r+(l.get("scale")&&l.get("scaleSize")||0)},Yn(l.getModel("itemStyle"),u)),Object(s["extend"])(i.ensureState("select"),{x:p,y:g,shape:Yn(o.getModel(["select","itemStyle"]),u)}),Object(s["extend"])(i.ensureState("blur"),{shape:Yn(o.getModel(["blur","itemStyle"]),u)});var y=i.getTextGuideLine(),b=i.getTextContent();y&&Object(s["extend"])(y.ensureState("select"),{x:p,y:g}),Object(s["extend"])(b.ensureState("select"),{x:p,y:g}),Object(Re["k"])(this,l.get("focus"),l.get("blurScope"))},t.prototype._updateLabel=function(e,t,n){var r,i=this,a=t.getItemModel(n),o=a.getModel("labelLine"),l=t.getItemVisual(n,"style"),u=l&&l.fill,c=l&&l.opacity;Object(Be["g"])(i,Object(Be["e"])(a),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:c,defaultText:e.getFormattedLabel(n,"normal")||t.getName(n)});var h=i.getTextContent();i.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var d=e.get(["label","position"]);"outside"===d||"outer"===d?Object(Bn["d"])(this,Object(Bn["a"])(a),{stroke:u,opacity:Object(s["retrieve3"])(o.get(["lineStyle","opacity"]),c,1)}):null===(r=i.getTextGuideLine())||void 0===r||r.hide()},t}(bt["a"]),qn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return Object(v["b"])(t,e),t.prototype.init=function(){var e=new De["a"];this._sectorGroup=e},t.prototype.render=function(e,t,n,r){var i,a=e.getData(),o=this._data,s=this.group;if(!o&&a.count()>0){for(var l=a.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<a.count();++u)l=a.getItemLayout(u);l&&(i=l.startAngle)}a.diff(o).add((function(e){var t=new Kn(a,e,i);a.setItemGraphicEl(e,t),s.add(t)})).update((function(e,t){var n=o.getItemGraphicEl(t);n.updateData(a,e,i),n.off("click"),s.add(n),a.setItemGraphicEl(e,n)})).remove((function(t){var n=o.getItemGraphicEl(t);Le["removeElementWithFadeOut"](n,e,t)})).execute(),Xn(e),"expansion"!==e.get("animationTypeUpdate")&&(this._data=a)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData(),r=n.getItemLayout(0);if(r){var i=e[0]-r.cx,a=e[1]-r.cy,o=Math.sqrt(i*i+a*a);return o<=r.r&&o>=r.r0}},t.type="pie",t}(vt["a"]),Zn=qn,$n=n("r34c"),Qn=n("m0HX");function Jn(e,t,n){t=Object(s["isArray"])(t)&&{coordDimensions:t}||Object(s["extend"])({},t);var r=e.getSource(),i=Object($n["a"])(r,t),a=new Qn["a"](i,e);return a.initData(r,n),a}var er=n("1Cya"),tr=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},e.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},e.prototype.getItemVisual=function(e,t){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,t)},e}(),nr=tr,rr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.useColorPaletteOnData=!0,t}return Object(v["b"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new nr(s["bind"](this.getData,this),s["bind"](this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Jn(this,{coordDimensions:["value"],encodeDefaulter:s["curry"](er["d"],this)})},t.prototype.getDataParams=function(t){var n=this.getData(),r=e.prototype.getDataParams.call(this,t),i=[];return n.each(n.mapDimension("value"),(function(e){i.push(e)})),r.percent=Object(Ne["d"])(i,t,n.hostModel.get("percentPrecision")),r.$vars.push("percent"),r},t.prototype._defaultLabelLine=function(e){ot["f"](e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={zlevel:0,z:2,legendHoverLink:!0,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},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(Ae["a"]),ir=rr;function ar(e){e.registerChartView(Zn),e.registerSeriesModel(ir),Object(Dn["a"])("pie",e.registerAction),e.registerLayout(Object(s["curry"])(Nn,"pie")),e.registerProcessor(jn("pie"))}var or=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(v["b"])(t,e),t.prototype.getInitialData=function(e,t){return Object(Ee["a"])(this.getSource(),this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}}},t}(Ae["a"]),sr=or,lr=n("FghA"),ur=4,cr=function(){function e(){}return e}(),hr=function(e){function t(t){return e.call(this,t)||this}return Object(v["b"])(t,e),t.prototype.getDefaultShape=function(){return new cr},t.prototype.buildPath=function(e,t){var n=t.points,r=t.size,i=this.symbolProxy,a=i.shape,o=e.getContext?e.getContext():e,s=o&&r[0]<ur;if(s)this._ctx=o;else{this._ctx=null;for(var l=0;l<n.length;){var u=n[l++],c=n[l++];isNaN(u)||isNaN(c)||(this.softClipShape&&!this.softClipShape.contain(u,c)||(a.x=u-r[0]/2,a.y=c-r[1]/2,a.width=r[0],a.height=r[1],i.buildPath(e,a,!0)))}}},t.prototype.afterBrush=function(){var e=this.shape,t=e.points,n=e.size,r=this._ctx;if(r)for(var i=0;i<t.length;){var a=t[i++],o=t[i++];isNaN(a)||isNaN(o)||(this.softClipShape&&!this.softClipShape.contain(a,o)||r.fillRect(a-n[0]/2,o-n[1]/2,n[0],n[1]))}},t.prototype.findDataIndex=function(e,t){for(var n=this.shape,r=n.points,i=n.size,a=Math.max(i[0],4),o=Math.max(i[1],4),s=r.length/2-1;s>=0;s--){var l=2*s,u=r[l]-a/2,c=r[l+1]-o/2;if(e>=u&&t>=c&&e<=u+a&&t<=c+o)return s}return-1},t}(l["b"]),dr=function(){function e(){this.group=new De["a"]}return e.prototype.isPersistent=function(){return!this._incremental},e.prototype.updateData=function(e,t){this.group.removeAll();var n=new hr({rectHover:!0,cursor:"default"});n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,!1,t),this.group.add(n),this._incremental=null},e.prototype.updateLayout=function(e){if(!this._incremental){var t=e.getLayout("points");this.group.eachChild((function(e){if(null!=e.startIndex){var n=2*(e.endIndex-e.startIndex),r=4*e.startIndex*2;t=new Float32Array(t.buffer,r,n)}e.setShape("points",t)}))}},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),e.count()>2e6?(this._incremental||(this._incremental=new lr["a"]({silent:!0})),this.group.add(this._incremental)):this._incremental=null},e.prototype.incrementalUpdate=function(e,t,n){var r;this._incremental?(r=new hr,this._incremental.addDisplayable(r,!0)):(r=new hr({rectHover:!0,cursor:"default",startIndex:e.start,endIndex:e.end}),r.incremental=!0,this.group.add(r)),r.setShape({points:t.getLayout("points")}),this._setCommon(r,t,!!this._incremental,n)},e.prototype._setCommon=function(e,t,n,r){var i=t.hostModel;r=r||{};var a=t.getVisual("symbolSize");e.setShape("size",a instanceof Array?a:[a,a]),e.softClipShape=r.clipShape||null,e.symbolProxy=Object(Pe["a"])(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<ur;e.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),l=s&&s.fill;if(l&&e.setColor(l),!n){var u=Object(ke["a"])(e);u.seriesIndex=i.seriesIndex,e.on("mousemove",(function(t){u.dataIndex=null;var n=e.findDataIndex(t.offsetX,t.offsetY);n>=0&&(u.dataIndex=n+(e.startIndex||0))}))}},e.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},e.prototype._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()},e}(),fr=dr,pr=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this._updateSymbolDraw(r,e);i.updateData(r,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData(),i=this._updateSymbolDraw(r,e);i.incrementalPrepareUpdate(r),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var r=e.getData();if(this.group.dirty(),!this._finished||r.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var i=Ht("").reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(r)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,r=t.pipelineContext,i=r.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new fr:new Ke,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(vt["a"]),gr=pr,mr=n("x5Va"),vr=n("XVzY"),yr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(v["b"])(t,e),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(vr["a"]),br=yr,_r=n("0Q0k"),xr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(v["b"])(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ot["b"]).models[0]},t.type="cartesian2dAxis",t}(vr["a"]);s["mixin"](xr,_r["a"]);var wr={show:!0,zlevel: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)"]}}},Sr=s["merge"]({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},wr),Tr=s["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}}},wr),Or=s["merge"]({scale:!0,splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Tr),Mr=s["defaults"]({scale:!0,logBase:10},Tr),Er={category:Sr,value:Tr,time:Or,log:Mr},Ar=n("LarJ"),Cr={value:1,category:1,time:1,log:1};function Ir(e,t,n,r){Object(s["each"])(Cr,(function(i,a){var o=Object(s["merge"])(Object(s["merge"])({},Er[a],!0),r,!0),l=function(e){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.apply(this,n)||this;return i.type=t+"Axis."+a,i}return Object(v["b"])(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=Object(Ln["d"])(this),r=n?Object(Ln["f"])(e):{},i=t.getTheme();Object(s["merge"])(e,i.get(a+"Axis")),Object(s["merge"])(e,this.getDefaultOption()),e.type=Dr(e),n&&Object(Ln["h"])(e,r,n)},n.prototype.optionUpdated=function(){var e=this.option;"category"===e.type&&(this.__ordinalMeta=Ar["a"].createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=t+"Axis."+a,n.defaultOption=o,n}(n);e.registerComponentModel(l)})),e.registerSubTypeDefaulter(t+"Axis",Dr)}function Dr(e){return e.type||(e.data?"category":"value")}var Lr=n("PW5N"),Pr=n("xFFj"),kr=n("uVz+"),Rr=n("VpdQ"),Nr=n("T3M/"),jr=["x","y"];function Fr(e){return"interval"===e.type||"time"===e.type}var zr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=jr,t}return Object(v["b"])(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(Fr(e)&&Fr(t)){var n=e.getExtent(),r=t.getExtent(),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(o&&s){var l=(a[0]-i[0])/o,u=(a[1]-i[1])/s,c=i[0]-n[0]*l,h=i[1]-r[0]*u,d=this._transform=[l,0,0,u,c,h];this._invTransform=Object(Rr["invert"])([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.dataToPoint=function(e,t,n){n=n||[];var r=e[0],i=e[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return Object(Nr["applyTransform"])(n,e,this._transform);var a=this.getAxis("x"),o=this.getAxis("y");return n[0]=a.toGlobalCoord(a.dataToCoord(r)),n[1]=o.toGlobalCoord(o.dataToCoord(i)),n},t.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return t=t||[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},t.prototype.pointToData=function(e,t){if(t=t||[],this._invTransform)return Object(Nr["applyTransform"])(t,e,this._invTransform);var n=this.getAxis("x"),r=this.getAxis("y");return t[0]=n.coordToData(n.toLocalCoord(e[0])),t[1]=r.coordToData(r.toLocalCoord(e[1])),t},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),t=this.getAxis("y").getGlobalExtent(),n=Math.min(e[0],e[1]),r=Math.min(t[0],t[1]),i=Math.max(e[0],e[1])-n,a=Math.max(t[0],t[1])-r;return new Pr["a"](n,r,i,a)},t}(kr["a"]),Br=zr,Vr=n("tToO"),Gr=function(e){function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.index=0,o.type=i||"value",o.position=a||"bottom",o}return Object(v["b"])(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(Vr["a"]),Hr=Gr;function Ur(e,t,n){n=n||{};var r=e.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],l=i.position,u=o?"onZero":l,c=i.dim,h=r.getRect(),d=[h.x,h.x+h.width,h.y,h.y+h.height],f={left:0,right:1,top:0,bottom:1,onZero:2},p=t.get("offset")||0,g="x"===c?[d[2]-p,d[3]+p]:[d[0]-p,d[1]+p];if(o){var m=o.toGlobalCoord(o.dataToCoord(0));g[f.onZero]=Math.max(Math.min(m,g[1]),g[0])}a.position=["y"===c?g[f[u]]:d[0],"x"===c?g[f[u]]:d[3]],a.rotation=Math.PI/2*("x"===c?0:1);var v={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=v[l],a.labelOffset=o?g[f[l]]-g[f.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),s["retrieve"](n.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=t.get(["axisLabel","rotate"]);return a.labelRotate="top"===u?-y:y,a.z2=1,a}function Wr(e){return"cartesian2d"===e.get("coordinateSystem")}function Xr(e){var t={xAxisModel:null,yAxisModel:null};return s["each"](t,(function(n,r){var i=r.replace(/Model$/,""),a=e.getReferringComponents(i,ot["b"]).models[0];t[r]=a})),t}var Yr=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=jr,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;this._updateScale(e,this.model),Object(s["each"])(n.x,(function(e){Object(Lr["i"])(e.scale,e.model)})),Object(s["each"])(n.y,(function(e){Object(Lr["i"])(e.scale,e.model)}));var r={};Object(s["each"])(n.x,(function(e){qr(n,"y",e,r)})),Object(s["each"])(n.y,(function(e){qr(n,"x",e,r)})),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=e.getBoxLayoutParams(),i=!n&&e.get("containLabel"),a=Object(Ln["g"])(r,{width:t.getWidth(),height:t.getHeight()});this._rect=a;var o=this._axesList;function l(){Object(s["each"])(o,(function(e){var t=e.isHorizontal(),n=t?[0,a.width]:[0,a.height],r=e.inverse?1:0;e.setExtent(n[r],n[1-r]),$r(e,t?a.x:a.y)}))}l(),i&&(Object(s["each"])(o,(function(e){if(!e.model.get(["axisLabel","inside"])){var t=Object(Lr["b"])(e);if(t){var n=e.isHorizontal()?"height":"width",r=e.model.get(["axisLabel","margin"]);a[n]-=t[n]+r,"top"===e.position?a.y+=t.height+r:"left"===e.position&&(a.x+=t.width+r)}}})),l()),Object(s["each"])(this._coordsList,(function(e){e.calcAffineTransform()}))},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}Object(s["isObject"])(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis("x").index===e||i[r].getAxis("y").index===t)return i[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t,n,r=e.seriesModel,i=e.xAxisModel||r&&r.getReferringComponents("xAxis",ot["b"]).models[0],a=e.yAxisModel||r&&r.getReferringComponents("yAxis",ot["b"]).models[0],o=e.gridModel,l=this._coordsList;if(r)t=r.coordinateSystem,Object(s["indexOf"])(l,t)<0&&(t=null);else if(i&&a)t=this.getCartesian(i.componentIndex,a.componentIndex);else if(i)n=this.getAxis("x",i.componentIndex);else if(a)n=this.getAxis("y",a.componentIndex);else if(o){var u=o.coordinateSystem;u===this&&(t=this._coordsList[0])}return{cartesian:t,axis:n}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var r=this,i=this,a={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},l={x:0,y:0};if(t.eachComponent("xAxis",u("x"),this),t.eachComponent("yAxis",u("y"),this),!l.x||!l.y)return this._axesMap={},void(this._axesList=[]);function u(t){return function(n,r){if(Kr(n,e)){var s=n.get("position");"x"===t?"top"!==s&&"bottom"!==s&&(s=a.bottom?"top":"bottom"):"left"!==s&&"right"!==s&&(s=a.left?"right":"left"),a[s]=!0;var u=new Hr(t,Object(Lr["a"])(n),[0,0],n.get("type"),s),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=i,u.index=r,i._axesList.push(u),o[t][r]=u,l[t]++}}}this._axesMap=o,Object(s["each"])(o.x,(function(t,n){Object(s["each"])(o.y,(function(i,a){var o="x"+n+"y"+a,s=new Br(o);s.master=r,s.model=e,r._coordsMap[o]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)}))}))},e.prototype._updateScale=function(e,t){function n(e,t){Object(s["each"])(Object(Lr["d"])(e,t.dim),(function(n){t.scale.unionExtentFromData(e,n)}))}Object(s["each"])(this._axesList,(function(e){if(e.scale.setExtent(1/0,-1/0),"category"===e.type){var t=e.model.get("categorySortInfo");e.scale.setSortInfo(t)}})),e.eachSeries((function(e){if(Wr(e)){var r=Xr(e),i=r.xAxisModel,a=r.yAxisModel;if(!Kr(i,t)||!Kr(a,t))return;var o=this.getCartesian(i.componentIndex,a.componentIndex),s=e.getData(),l=o.getAxis("x"),u=o.getAxis("y");"list"===s.type&&(n(s,l),n(s,u))}}),this)},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return Object(s["each"])(this.getCartesians(),(function(r){var i=null!=e&&"auto"!==e?r.getAxis(e):r.getBaseAxis(),a=r.getOtherAxis(i);Object(s["indexOf"])(t,i)<0&&t.push(i),Object(s["indexOf"])(n,a)<0&&n.push(a)})),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent("grid",(function(i,a){var o=new e(i,t,n);o.name="grid_"+a,o.resize(i,n,!0),i.coordinateSystem=o,r.push(o)})),t.eachSeries((function(e){if(Wr(e)){var t=Xr(e),n=t.xAxisModel,r=t.yAxisModel,i=n.getCoordSysModel();0;var a=i.coordinateSystem;e.coordinateSystem=a.getCartesian(n.componentIndex,r.componentIndex)}})),r},e.dimensions=jr,e}();function Kr(e,t){return e.getCoordSysModel()===t}function qr(e,t,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var i,a=e[t],o=n.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)Zr(a[l])&&(i=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&Zr(a[u])&&!r[c(a[u])]){i=a[u];break}i&&(r[c(i)]=!0)}function c(e){return e.dim+"_"+e.index}}function Zr(e){return e&&"category"!==e.type&&"time"!==e.type&&Object(Lr["g"])(e)}function $r(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return r-e+t}}var Qr=Yr,Jr=n("+0WQ"),ei=n("tbCl"),ti=Math.PI,ni=function(){function e(e,t){this.group=new De["a"],this.opt=t,this.axisModel=e,Object(s["defaults"])(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new De["a"]({x:t.position[0],y:t.position[1],rotation:t.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(e){return!!ri[e]},e.prototype.add=function(e){ri[e](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(e,t,n){var r,i,a=Object(Ne["t"])(t-e);return Object(Ne["j"])(a)?(i=n>0?"top":"bottom",r="center"):Object(Ne["j"])(a-ti)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=a>0&&a<ti?n>0?"right":"left":n>0?"left":"right"),{rotation:a,textAlign:r,textVerticalAlign:i}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},e}(),ri={axisLine:function(e,t,n,r){var i=t.get(["axisLine","show"]);if("auto"===i&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),i){var a=t.axis.getExtent(),o=r.transform,l=[a[0],0],u=[a[1],0];o&&(Object(Nr["applyTransform"])(l,l,o),Object(Nr["applyTransform"])(u,u,o));var c=Object(s["extend"])({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new Jr["a"]({subPixelOptimize:!0,shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});h.anid="line",n.add(h);var d=t.get(["axisLine","symbol"]),f=t.get(["axisLine","symbolSize"]),p=t.get(["axisLine","symbolOffset"])||0;if("number"===typeof p&&(p=[p,p]),null!=d){"string"===typeof d&&(d=[d,d]),"string"!==typeof f&&"number"!==typeof f||(f=[f,f]);var g=f[0],m=f[1];Object(s["each"])([{rotate:e.rotation+Math.PI/2,offset:p[0],r:0},{rotate:e.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((l[0]-u[0])*(l[0]-u[0])+(l[1]-u[1])*(l[1]-u[1]))}],(function(t,r){if("none"!==d[r]&&null!=d[r]){var i=Object(Pe["a"])(d[r],-g/2,-m/2,g,m,c.stroke,!0),a=t.r+t.offset;i.attr({rotation:t.rotate,x:l[0]+a*Math.cos(e.rotation),y:l[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),n.add(i)}}))}}},axisTickLabel:function(e,t,n,r){var i=ci(n,r,t,e),a=di(n,r,t,e);ai(t,a,i),hi(n,r,t,e.tickDirection)},axisName:function(e,t,n,r){var i=Object(s["retrieve"])(e.axisName,t.get("name"));if(i){var a,o,l=t.get("nameLocation"),u=e.nameDirection,c=t.getModel("nameTextStyle"),h=t.get("nameGap")||0,d=t.axis.getExtent(),f=d[0]>d[1]?-1:1,p=["start"===l?d[0]-f*h:"end"===l?d[1]+f*h:(d[0]+d[1])/2,li(l)?e.labelOffset+u*h:0],g=t.get("nameRotate");null!=g&&(g=g*ti/180),li(l)?a=ni.innerTextLayout(e.rotation,null!=g?g:e.rotation,u):(a=ii(e.rotation,l,g||0,d),o=e.axisNameAvailableWidth,null!=o&&(o=Math.abs(o/Math.sin(a.rotation)),!isFinite(o)&&(o=null)));var m=c.getFont(),v=t.get("nameTruncate",!0)||{},y=v.ellipsis,b=Object(s["retrieve"])(e.nameTruncateMaxWidth,v.maxWidth,o),_=t.get("tooltip",!0),x=t.mainType,w={componentType:x,name:i,$vars:["name"]};w[x+"Index"]=t.componentIndex;var S=new at["a"]({x:p[0],y:p[1],rotation:a.rotation,silent:ni.isLabelSilent(t),style:Object(Be["c"])(c,{text:i,font:m,overflow:"truncate",width:b,ellipsis:y,fill:c.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:c.get("align")||a.textAlign,verticalAlign:c.get("verticalAlign")||a.textVerticalAlign}),z2:1});if(S.tooltip=_&&_.show?Object(s["extend"])({content:i,formatter:function(){return i},formatterParams:w},_):null,S.__fullText=i,S.anid="name",t.get("triggerEvent")){var T=ni.makeAxisEventDataBase(t);T.targetType="axisName",T.name=i,Object(ke["a"])(S).eventData=T}r.add(S),S.updateTransform(),n.add(S),S.decomposeTransform()}}};function ii(e,t,n,r){var i,a,o=Object(Ne["t"])(n-e),s=r[0]>r[1],l="start"===t&&!s||"start"!==t&&s;return Object(Ne["j"])(o-ti/2)?(a=l?"bottom":"top",i="center"):Object(Ne["j"])(o-1.5*ti)?(a=l?"top":"bottom",i="center"):(a="middle",i=o<1.5*ti&&o>ti/2?l?"left":"right":l?"right":"left"),{rotation:o,textAlign:i,textVerticalAlign:a}}function ai(e,t,n){if(!Object(Lr["j"])(e.axis)){var r=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=n[0],c=n[1],h=n[n.length-1],d=n[n.length-2];!1===r?(oi(a),oi(u)):si(a,o)&&(r?(oi(o),oi(c)):(oi(a),oi(u))),!1===i?(oi(s),oi(h)):si(l,s)&&(i?(oi(l),oi(d)):(oi(s),oi(h)))}}function oi(e){e&&(e.ignore=!0)}function si(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(n&&r){var i=Rr["identity"]([]);return Rr["rotate"](i,i,-e.rotation),n.applyTransform(Rr["mul"]([],i,e.getLocalTransform())),r.applyTransform(Rr["mul"]([],i,t.getLocalTransform())),n.intersect(r)}}function li(e){return"middle"===e||"center"===e}function ui(e,t,n,r,i){for(var a=[],o=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=n,t&&(Object(Nr["applyTransform"])(o,o,t),Object(Nr["applyTransform"])(s,s,t));var c=new Jr["a"]({subPixelOptimize:!0,shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});c.anid=i+"_"+e[l].tickValue,a.push(c)}return a}function ci(e,t,n,r){var i=n.axis,a=n.getModel("axisTick"),o=a.get("show");if("auto"===o&&r.handleAutoShown&&(o=r.handleAutoShown("axisTick")),o&&!i.scale.isBlank()){for(var l=a.getModel("lineStyle"),u=r.tickDirection*a.get("length"),c=i.getTicksCoords(),h=ui(c,t.transform,u,Object(s["defaults"])(l.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),d=0;d<h.length;d++)e.add(h[d]);return h}}function hi(e,t,n,r){var i=n.axis,a=n.getModel("minorTick");if(a.get("show")&&!i.scale.isBlank()){var o=i.getMinorTicksCoords();if(o.length)for(var l=a.getModel("lineStyle"),u=r*a.get("length"),c=Object(s["defaults"])(l.getLineStyle(),Object(s["defaults"])(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),h=0;h<o.length;h++)for(var d=ui(o[h],t.transform,u,c,"minorticks_"+h),f=0;f<d.length;f++)e.add(d[f])}}function di(e,t,n,r){var i=n.axis,a=Object(s["retrieve"])(r.axisLabelShow,n.get(["axisLabel","show"]));if(a&&!i.scale.isBlank()){var o=n.getModel("axisLabel"),l=o.get("margin"),u=i.getViewLabels(),c=(Object(s["retrieve"])(r.labelRotate,o.get("rotate"))||0)*ti/180,h=ni.innerTextLayout(r.rotation,c,r.labelDirection),d=n.getCategories&&n.getCategories(!0),f=[],p=ni.isLabelSilent(n),g=n.get("triggerEvent");return Object(s["each"])(u,(function(a,u){var c="ordinal"===i.scale.type?i.scale.getRawOrdinalNumber(a.tickValue):a.tickValue,m=a.formattedLabel,v=a.rawLabel,y=o;if(d&&d[c]){var b=d[c];Object(s["isObject"])(b)&&b.textStyle&&(y=new ei["a"](b.textStyle,o,n.ecModel))}var _=y.getTextColor()||n.get(["axisLine","lineStyle","color"]),x=i.dataToCoord(c),w=new at["a"]({x:x,y:r.labelOffset+r.labelDirection*l,rotation:h.rotation,silent:p,z2:10,style:Object(Be["c"])(y,{text:m,align:y.getShallow("align",!0)||h.textAlign,verticalAlign:y.getShallow("verticalAlign",!0)||y.getShallow("baseline",!0)||h.textVerticalAlign,fill:"function"===typeof _?_("category"===i.type?v:"value"===i.type?c+"":c,u):_})});if(w.anid="label_"+c,g){var S=ni.makeAxisEventDataBase(n);S.targetType="axisLabel",S.value=v,Object(ke["a"])(w).eventData=S}t.add(w),w.updateTransform(),f.push(w),e.add(w),w.decomposeTransform()})),f}}var fi=ni;function pi(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return gi(n,e,t),n.seriesInvolved&&vi(n,e),n}function gi(e,t,n){var r=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];Object(s["each"])(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var l=Ti(n.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=n;var c=n.model,h=c.getModel("tooltip",r);if(Object(s["each"])(n.getAxes(),Object(s["curry"])(g,!1,null)),n.getTooltipAxes&&r&&h.get("show")){var d="axis"===h.get("trigger"),f="cross"===h.get(["axisPointer","type"]),p=n.getTooltipAxes(h.get(["axisPointer","axis"]));(d||f)&&Object(s["each"])(p.baseAxes,Object(s["curry"])(g,!f||"cross",d)),f&&Object(s["each"])(p.otherAxes,Object(s["curry"])(g,"cross",!1))}}function g(r,s,l){var c=l.model.getModel("axisPointer",i),d=c.get("show");if(d&&("auto"!==d||r||Si(c))){null==s&&(s=c.get("triggerTooltip")),c=r?mi(l,h,i,t,r,s):c;var f=c.get("snap"),p=Ti(l.model),g=s||f||"category"===l.type,m=e.axesInfo[p]={key:p,axis:l,coordSys:n,axisPointerModel:c,triggerTooltip:s,involveSeries:g,snap:f,useHandle:Si(c),seriesModels:[],linkGroup:null};u[p]=m,e.seriesInvolved=e.seriesInvolved||g;var v=yi(a,l);if(null!=v){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[p]=m,y.mapper=a[v].mapper,m.linkGroup=y}}}}))}function mi(e,t,n,r,i,a){var o=t.getModel("axisPointer"),l=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],u={};Object(s["each"])(l,(function(e){u[e]=Object(s["clone"])(o.get(e))})),u.snap="category"!==e.type&&!!a,"cross"===o.get("type")&&(u.type="line");var c=u.label||(u.label={});if(null==c.show&&(c.show=!1),"cross"===i){var h=o.get(["label","show"]);if(c.show=null==h||h,!a){var d=u.lineStyle=o.get("crossStyle");d&&Object(s["defaults"])(c,d.textStyle)}}return e.model.getModel("axisPointer",new ei["a"](u,n,r))}function vi(e,t){t.eachSeries((function(t){var n=t.coordinateSystem,r=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);n&&"none"!==r&&!1!==r&&"item"!==r&&!1!==i&&!1!==t.get(["axisPointer","show"],!0)&&Object(s["each"])(e.coordSysAxesInfo[Ti(n.model)],(function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())}))}))}function yi(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(bi(a[r+"AxisId"],n.id)||bi(a[r+"AxisIndex"],n.componentIndex)||bi(a[r+"AxisName"],n.name))return i}}function bi(e,t){return"all"===e||Object(s["isArray"])(e)&&Object(s["indexOf"])(e,t)>=0||e===t}function _i(e){var t=xi(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get("status"),o=n.get("value");null!=o&&(o=r.parse(o));var s=Si(n);null==a&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==o||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function xi(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Ti(e)]}function wi(e){var t=xi(e);return t&&t.axisPointerModel}function Si(e){return!!e.get(["handle","show"])}function Ti(e){return e.type+"||"+e.id}var Oi={},Mi=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.render=function(t,n,r,i){this.axisPointerClass&&_i(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var a=wi(e);a?(this._axisPointer||(this._axisPointer=new i)).render(e,a,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){Oi[e]=t},t.getAxisPointerClass=function(e){return e&&Oi[e]},t.type="axis",t}(mr["a"]),Ei=Mi,Ai=Object(ot["o"])();function Ci(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel("splitArea"),o=a.getModel("areaStyle"),l=o.get("color"),u=r.coordinateSystem.getRect(),c=i.getTicksCoords({tickModel:a,clamp:!0});if(c.length){var h=l.length,d=Ai(e).splitAreaColors,f=s["createHashMap"](),p=0;if(d)for(var g=0;g<c.length;g++){var m=d.get(c[g].tickValue);if(null!=m){p=(m+(h-1)*g)%h;break}}var v=i.toGlobalCoord(c[0].coord),y=o.getAreaStyle();l=s["isArray"](l)?l:[l];for(g=1;g<c.length;g++){var b=i.toGlobalCoord(c[g].coord),_=void 0,x=void 0,w=void 0,S=void 0;i.isHorizontal()?(_=v,x=u.y,w=b-_,S=u.height,v=_+w):(_=u.x,x=v,w=u.width,S=b-x,v=x+S);var T=c[g-1].tickValue;null!=T&&f.set(T,p),t.add(new yt["a"]({anid:null!=T?"area_"+T:null,shape:{x:_,y:x,width:w,height:S},style:s["defaults"]({fill:l[p]},y),autoBatch:!0,silent:!0})),p=(p+1)%h}Ai(e).splitAreaColors=f}}}function Ii(e){Ai(e).splitAreaColors=null}var Di=["axisLine","axisTickLabel","axisName"],Li=["splitArea","splitLine","minorSplitLine"],Pi=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return Object(v["b"])(t,e),t.prototype.render=function(t,n,r,i){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new De["a"],this.group.add(this._axisGroup),t.get("show")){var o=t.getCoordSysModel(),l=Ur(o,t),u=new fi(t,s["extend"]({handleAutoShown:function(e){for(var n=o.coordinateSystem.getCartesians(),r=0;r<n.length;r++){var i=n[r].getOtherAxis(t.axis).type;if("value"===i||"log"===i)return!0}return!1}},l));s["each"](Di,u.add,u),this._axisGroup.add(u.getGroup()),s["each"](Li,(function(e){t.get([e,"show"])&&ki[e](this,this._axisGroup,t,o)}),this),Le["groupTransition"](a,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i)}},t.prototype.remove=function(){Ii(this)},t.type="cartesianAxis",t}(Ei),ki={splitLine:function(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel("splitLine"),o=a.getModel("lineStyle"),l=o.get("color");l=s["isArray"](l)?l:[l];for(var u=r.coordinateSystem.getRect(),c=i.isHorizontal(),h=0,d=i.getTicksCoords({tickModel:a}),f=[],p=[],g=o.getLineStyle(),m=0;m<d.length;m++){var v=i.toGlobalCoord(d[m].coord);c?(f[0]=v,f[1]=u.y,p[0]=v,p[1]=u.y+u.height):(f[0]=u.x,f[1]=v,p[0]=u.x+u.width,p[1]=v);var y=h++%l.length,b=d[m].tickValue;t.add(new Jr["a"]({anid:null!=b?"line_"+d[m].tickValue:null,subPixelOptimize:!0,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:p[0],y2:p[1]},style:s["defaults"]({stroke:l[y]},g),silent:!0}))}}},minorSplitLine:function(e,t,n,r){var i=n.axis,a=n.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=r.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(u.length)for(var c=[],h=[],d=o.getLineStyle(),f=0;f<u.length;f++)for(var p=0;p<u[f].length;p++){var g=i.toGlobalCoord(u[f][p].coord);l?(c[0]=g,c[1]=s.y,h[0]=g,h[1]=s.y+s.height):(c[0]=s.x,c[1]=g,h[0]=s.x+s.width,h[1]=g),t.add(new Jr["a"]({anid:"minor_line_"+u[f][p].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:d,silent:!0}))}},splitArea:function(e,t,n,r){Ci(e,t,n,r)}},Ri=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.type="xAxis",t}(Pi),Ni=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=Ri.type,t}return Object(v["b"])(t,e),t.type="yAxis",t}(Pi),ji=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="grid",t}return Object(v["b"])(t,e),t.prototype.render=function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new yt["a"]({shape:e.coordinateSystem.getRect(),style:Object(s["defaults"])({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(mr["a"]),Fi={offset:0};function zi(e){e.registerComponentView(ji),e.registerComponentModel(br),e.registerCoordinateSystem("cartesian2d",Qr),Ir(e,"x",xr,Fi),Ir(e,"y",xr,Fi),e.registerComponentView(Ri),e.registerComponentView(Ni),e.registerPreprocessor((function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})}))}function Bi(e){Object(r["a"])(zi),e.registerSeriesModel(sr),e.registerChartView(gr),e.registerLayout(Ht("scatter"))}function Vi(e){e.eachSeriesByType("radar",(function(e){var t=e.getData(),n=[],r=e.coordinateSystem;if(r){var i=r.getIndicatorAxes();s["each"](i,(function(e,a){t.each(t.mapDimension(i[a].dim),(function(e,t){n[t]=n[t]||[];var i=r.dataToPoint(e,a);n[t][a]=Gi(i)?i:Hi(r)}))})),t.each((function(e){var i=s["find"](n[e],(function(e){return Gi(e)}))||Hi(r);n[e].push(i.slice()),t.setItemLayout(e,n[e])}))}}))}function Gi(e){return!isNaN(e[0])&&!isNaN(e[1])}function Hi(e){return[e.cx,e.cy]}function Ui(e){var t=e.polar;if(t){s["isArray"](t)||(t=[t]);var n=[];s["each"](t,(function(t,r){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],s["isArray"](e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)})),e.polar=n}s["each"](e.series,(function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)}))}var Wi=n("tw5J");function Xi(e){return s["isArray"](e)||(e=[+e,+e]),e}var Yi=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.render=function(e,t,n){var r=e.coordinateSystem,i=this.group,a=e.getData(),o=this._data;function l(e,t){var n=e.getItemVisual(t,"symbol")||"circle";if("none"!==n){var r=Xi(e.getItemVisual(t,"symbolSize")),i=Pe["a"](n,-1,-1,2,2),a=e.getItemVisual(t,"symbolRotate")||0;return i.attr({style:{strokeNoScale:!0},z2:100,scaleX:r[0]/2,scaleY:r[1]/2,rotation:a*Math.PI/180||0}),i}}function c(t,n,r,i,a,o){r.removeAll();for(var s=0;s<n.length-1;s++){var u=l(i,a);u&&(u.__dimIdx=s,t[s]?(u.setPosition(t[s]),Le[o?"initProps":"updateProps"](u,{x:n[s][0],y:n[s][1]},e,a)):u.setPosition(n[s]),r.add(u))}}function h(e){return s["map"](e,(function(e){return[r.cx,r.cy]}))}a.diff(o).add((function(t){var n=a.getItemLayout(t);if(n){var r=new Wi["a"],i=new Fn["a"],o={shape:{points:n}};r.shape.points=h(n),i.shape.points=h(n),Le["initProps"](r,o,e,t),Le["initProps"](i,o,e,t);var s=new De["a"],l=new De["a"];s.add(i),s.add(r),s.add(l),c(i.shape.points,n,l,a,t,!0),a.setItemGraphicEl(t,s)}})).update((function(t,n){var r=o.getItemGraphicEl(n),i=r.childAt(0),s=r.childAt(1),l=r.childAt(2),u={shape:{points:a.getItemLayout(t)}};u.shape.points&&(c(i.shape.points,u.shape.points,l,a,t,!1),Le["updateProps"](i,u,e),Le["updateProps"](s,u,e),a.setItemGraphicEl(t,r))})).remove((function(e){i.remove(o.getItemGraphicEl(e))})).execute(),a.eachItemGraphicEl((function(e,t){var n=a.getItemModel(t),r=e.childAt(0),o=e.childAt(1),l=e.childAt(2),c=a.getItemVisual(t,"style"),h=c.fill;i.add(e),r.useStyle(s["defaults"](n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:h})),Object(Re["D"])(r,n,"lineStyle"),Object(Re["D"])(o,n,"areaStyle");var d=n.getModel("areaStyle"),f=d.isEmpty()&&d.parentModel.isEmpty();o.ignore=f,s["each"](["emphasis","select","blur"],(function(e){var t=n.getModel([e,"areaStyle"]),r=t.isEmpty()&&t.parentModel.isEmpty();o.ensureState(e).ignore=r&&f})),o.useStyle(s["defaults"](d.getAreaStyle(),{fill:h,opacity:.7,decal:c.decal}));var p=n.getModel("emphasis"),g=p.getModel("itemStyle").getItemStyle();l.eachChild((function(e){if(e instanceof u["a"]){var r=e.style;e.useStyle(s["extend"]({image:r.image,x:r.x,y:r.y,width:r.width,height:r.height},c))}else e.useStyle(c),e.setColor(h);var i=e.ensureState("emphasis");i.style=s["clone"](g);var o=a.get(a.dimensions[e.__dimIdx],t);(null==o||isNaN(o))&&(o=""),Object(Be["g"])(e,Object(Be["e"])(n),{labelFetcher:a.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:o,inheritColor:h,defaultOpacity:c.opacity})})),Object(Re["k"])(e,p.get("focus"),p.get("blurScope"))})),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(vt["a"]),Ki=Yi,qi=n("c7YS"),Zi=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.useColorPaletteOnData=!0,n.hasSymbolVisual=!0,n}return Object(v["b"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new nr(s["bind"](this.getData,this),s["bind"](this.getRawData,this))},t.prototype.getInitialData=function(e,t){return Jn(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.coordinateSystem,a=i.getIndicatorAxes(),o=this.getData().getName(e),l=""===o?this.name:o,u=Object(qi["e"])(this,e);return Object(qi["c"])("section",{header:l,sortBlocks:!0,blocks:s["map"](a,(function(t){var n=r.get(r.mapDimension(t.dim),e);return Object(qi["c"])("nameValue",{markerType:"subItem",markerColor:u,name:t.name,value:n,sortParam:n})}))})},t.prototype.getTooltipPosition=function(e){if(null!=e)for(var t=this.getData(),n=this.coordinateSystem,r=t.getValues(s["map"](n.dimensions,(function(e){return t.mapDimension(e)})),e),i=0,a=r.length;i<a;i++)if(!isNaN(r[i])){var o=n.getIndicatorAxes();return n.coordToPoint(o[i].dataToCoord(r[i]),i)}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4},t}(Ae["a"]),$i=Zi,Qi=Er.value;function Ji(e,t){return s["defaults"]({show:t},e)}var ea=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),t=this.get("splitNumber"),n=this.get("scale"),r=this.get("axisLine"),i=this.get("axisTick"),a=this.get("axisLabel"),o=this.get("axisName"),l=this.get(["axisName","show"]),u=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),h=this.get("triggerEvent"),d=s["map"](this.get("indicator")||[],(function(d){null!=d.max&&d.max>0&&!d.min?d.min=0:null!=d.min&&d.min<0&&!d.max&&(d.max=0);var f=o;null!=d.color&&(f=s["defaults"]({color:d.color},o));var p=s["merge"](s["clone"](d),{boundaryGap:e,splitNumber:t,scale:n,axisLine:r,axisTick:i,axisLabel:a,name:d.text,nameLocation:"end",nameGap:c,nameTextStyle:f,triggerEvent:h},!1);if(l||(p.name=""),"string"===typeof u){var g=p.name;p.name=u.replace("{value}",null!=g?g:"")}else"function"===typeof u&&(p.name=u(p.name,p));var m=new ei["a"](p,null,this.ecModel);return s["mixin"](m,_r["a"].prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m}),this);this._indicatorModels=d},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:s["merge"]({lineStyle:{color:"#bbb"}},Qi.axisLine),axisLabel:Ji(Qi.axisLabel,!1),axisTick:Ji(Qi.axisTick,!1),splitLine:Ji(Qi.splitLine,!0),splitArea:Ji(Qi.splitArea,!0),indicator:[]},t}(vr["a"]),ta=ea,na=n("O9WU"),ra=n("TbZX"),ia=["axisLine","axisTickLabel","axisName"],aa=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.render=function(e,t,n){var r=this.group;r.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes(),r=s["map"](n,(function(e){var n=new fi(e.model,{position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return n}));s["each"](r,(function(e){s["each"](ia,e.add,e),this.group.add(e.getGroup())}),this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(n.length){var r=e.get("shape"),i=e.getModel("splitLine"),a=e.getModel("splitArea"),o=i.getModel("lineStyle"),l=a.getModel("areaStyle"),u=i.get("show"),c=a.get("show"),h=o.get("color"),d=l.get("color"),f=s["isArray"](h)?h:[h],p=s["isArray"](d)?d:[d],g=[],m=[];if("circle"===r)for(var v=n[0].getTicksCoords(),y=t.cx,b=t.cy,_=0;_<v.length;_++){if(u){var x=C(g,f,_);g[x].push(new na["a"]({shape:{cx:y,cy:b,r:v[_].coord}}))}if(c&&_<v.length-1){x=C(m,p,_);m[x].push(new ra["a"]({shape:{cx:y,cy:b,r0:v[_].coord,r:v[_+1].coord}}))}}else{var w,S=s["map"](n,(function(e,n){var r=e.getTicksCoords();return w=null==w?r.length-1:Math.min(r.length-1,w),s["map"](r,(function(e){return t.coordToPoint(e.coord,n)}))})),T=[];for(_=0;_<=w;_++){for(var O=[],M=0;M<n.length;M++)O.push(S[M][_]);if(O[0]&&O.push(O[0].slice()),u){x=C(g,f,_);g[x].push(new Fn["a"]({shape:{points:O}}))}if(c&&T){x=C(m,p,_-1);m[x].push(new Wi["a"]({shape:{points:O.concat(T)}}))}T=O.slice().reverse()}}var E=o.getLineStyle(),A=l.getAreaStyle();s["each"](m,(function(e,t){this.group.add(Le["mergePath"](e,{style:s["defaults"]({stroke:"none",fill:p[t%p.length]},A),silent:!0}))}),this),s["each"](g,(function(e,t){this.group.add(Le["mergePath"](e,{style:s["defaults"]({fill:"none",stroke:f[t%f.length]},E),silent:!0}))}),this)}function C(e,t,n){var r=n%t.length;return e[r]=e[r]||[],r}},t.type="radar",t}(mr["a"]),oa=aa,sa=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.type="value",i.angle=0,i.name="",i}return Object(v["b"])(t,e),t}(Vr["a"]),la=sa,ua=n("gI5n"),ca=n("Yb4w"),ha=function(){function e(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=Object(s["map"])(e.getIndicatorModels(),(function(e,t){var n="indicator_"+t,r=new la(n,new ua["a"]);return r.name=e.get("name"),r.model=e,e.axis=r,this.dimensions.push(n),r}),this),this.resize(e,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},e.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t],r=n.angle,i=this.cx+e*Math.cos(r),a=this.cy-e*Math.sin(r);return[i,a]},e.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=Math.sqrt(t*t+n*n);t/=r,n/=r;for(var i,a=Math.atan2(-n,t),o=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(a-u.angle);c<o&&(i=u,s=l,o=c)}return[s,+(i&&i.coordToData(r))]},e.prototype.resize=function(e,t){var n=e.get("center"),r=t.getWidth(),i=t.getHeight(),a=Math.min(r,i)/2;this.cx=Ne["o"](n[0],r),this.cy=Ne["o"](n[1],i),this.startAngle=e.get("startAngle")*Math.PI/180;var o=e.get("radius");"string"!==typeof o&&"number"!==typeof o||(o=[0,o]),this.r0=Ne["o"](o[0],a),this.r=Ne["o"](o[1],a),Object(s["each"])(this._indicatorAxes,(function(e,t){e.setExtent(this.r0,this.r);var n=this.startAngle+t*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),e.angle=n}),this)},e.prototype.update=function(e,t){var n=this._indicatorAxes,r=this._model;Object(s["each"])(n,(function(e){e.scale.setExtent(1/0,-1/0)})),e.eachSeriesByType("radar",(function(t,i){if("radar"===t.get("coordinateSystem")&&e.getComponent("radar",t.get("radarIndex"))===r){var a=t.getData();Object(s["each"])(n,(function(e){e.scale.unionExtentFromData(a,a.mapDimension(e.dim))}))}}),this);var i=r.get("splitNumber");function a(e){var t=Math.pow(10,Math.floor(Math.log(e)/Math.LN10)),n=e/t;return 2===n?n=5:n*=2,n*t}Object(s["each"])(n,(function(e,t){var n=Object(Lr["f"])(e.scale,e.model).extent;Object(Lr["i"])(e.scale,e.model);var r=e.model,o=e.scale,s=Object(ca["b"])(o,r.get("min",!0)),l=Object(ca["b"])(o,r.get("max",!0)),u=o.getInterval();if(null!=s&&null!=l)o.setExtent(+s,+l),o.setInterval((l-s)/i);else if(null!=s){var c=void 0;do{c=s+u*i,o.setExtent(+s,c),o.setInterval(u),u=a(u)}while(c<n[1]&&isFinite(c)&&isFinite(n[1]))}else if(null!=l){var h=void 0;do{h=l-u*i,o.setExtent(h,+l),o.setInterval(u),u=a(u)}while(h>n[0]&&isFinite(h)&&isFinite(n[0]))}else{var d=o.getTicks().length-1;d>i&&(u=a(u));c=Math.ceil(n[1]/u)*u,h=Ne["u"](c-u*i);o.setExtent(h,c),o.setInterval(u)}}))},e.prototype.convertToPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.create=function(t,n){var r=[];return t.eachComponent("radar",(function(i){var a=new e(i,t,n);r.push(a),i.coordinateSystem=a})),t.eachSeriesByType("radar",(function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=r[e.get("radarIndex")||0])})),r},e.dimensions=[],e}(),da=ha;function fa(e){e.registerCoordinateSystem("radar",da),e.registerComponentModel(ta),e.registerComponentView(oa)}function pa(e){Object(r["a"])(fa),e.registerChartView(Ki),e.registerSeriesModel($i),e.registerLayout(Vi),e.registerProcessor(jn("radar")),e.registerPreprocessor(Ui)}var ga=n("Tek4"),ma=n("Mvsp"),va=n("6BwO"),ya="\0_ec_interaction_mutex";function ba(e,t,n){var r=wa(e);r[t]=n}function _a(e,t,n){var r=wa(e),i=r[t];i===n&&(r[t]=null)}function xa(e,t){return!!wa(e)[t]}function wa(e){return e[ya]||(e[ya]={})}va["m"]({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},(function(){}));var Sa=function(e){function t(t){var n=e.call(this)||this;n._zr=t;var r=Object(s["bind"])(n._mousedownHandler,n),i=Object(s["bind"])(n._mousemoveHandler,n),a=Object(s["bind"])(n._mouseupHandler,n),o=Object(s["bind"])(n._mousewheelHandler,n),l=Object(s["bind"])(n._pinchHandler,n);return n.enable=function(e,n){this.disable(),this._opt=Object(s["defaults"])(Object(s["clone"])(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",r),t.on("mousemove",i),t.on("mouseup",a)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",o),t.on("pinch",l))},n.disable=function(){t.off("mousedown",r),t.off("mousemove",i),t.off("mouseup",a),t.off("mousewheel",o),t.off("pinch",l)},n}return Object(v["b"])(t,e),t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!(ma["d"](e)||e.target&&e.target.draggable)){var t=e.offsetX,n=e.offsetY;this.pointerChecker&&this.pointerChecker(e,t,n)&&(this._x=t,this._y=n,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(this._dragging&&Ma("moveOnMouseMove",e,this._opt)&&"pinch"!==e.gestureEvent&&!xa(this._zr,"globalPan")){var t=e.offsetX,n=e.offsetY,r=this._x,i=this._y,a=t-r,o=n-i;this._x=t,this._y=n,this._opt.preventDefaultMouseMove&&ma["g"](e.event),Oa(this,"pan","moveOnMouseMove",e,{dx:a,dy:o,oldX:r,oldY:i,newX:t,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){ma["d"](e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var t=Ma("zoomOnMouseWheel",e,this._opt),n=Ma("moveOnMouseWheel",e,this._opt),r=e.wheelDelta,i=Math.abs(r),a=e.offsetX,o=e.offsetY;if(0!==r&&(t||n)){if(t){var s=i>3?1.4:i>1?1.2:1.1,l=r>0?s:1/s;Ta(this,"zoom","zoomOnMouseWheel",e,{scale:l,originX:a,originY:o,isAvailableBehavior:null})}if(n){var u=Math.abs(r),c=(r>0?1:-1)*(u>3?.4:u>1?.15:.05);Ta(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:c,originX:a,originY:o,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!xa(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;Ta(this,"zoom",null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(ga["a"]);function Ta(e,t,n,r,i){e.pointerChecker&&e.pointerChecker(r,i.originX,i.originY)&&(ma["g"](r.event),Oa(e,t,n,r,i))}function Oa(e,t,n,r,i){i.isAvailableBehavior=Object(s["bind"])(Ma,null,n,r),e.trigger(t,i)}function Ma(e,t,n){var r=n[e];return!e||r&&(!Object(s["isString"])(r)||t.event[r+"Key"])}var Ea=Sa;function Aa(e,t,n){var r=e.target;r.x+=t,r.y+=n,r.dirty()}function Ca(e,t,n,r){var i=e.target,a=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/e.zoom;e.zoom=o,i.x-=(n-i.x)*(u-1),i.y-=(r-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var Ia={axisPointer:1,tooltip:1,brush:1};function Da(e,t,n){var r=t.getComponentByElement(e.topTarget),i=r&&r.coordinateSystem;return r&&r!==n&&!Ia.hasOwnProperty(r.mainType)&&i&&i.model!==n}for(var La=n("RA87"),Pa=n("LRGS"),ka=n("IMrv"),Ra=n("F0Xa"),Na=[126,25],ja=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],Fa=0;Fa<ja.length;Fa++)for(var za=0;za<ja[Fa].length;za++)ja[Fa][za][0]/=10.5,ja[Fa][za][1]/=-14,ja[Fa][za][0]+=Na[0],ja[Fa][za][1]+=Na[1];function Ba(e,t){"china"===e&&t.push(new Ra["a"]("\u5357\u6d77\u8bf8\u5c9b",s["map"](ja,(function(e){return{type:"polygon",exterior:e}})),Na))}var Va=n("3gt4"),Ga=n("IuL5"),Ha=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function Ua(e,t){"china"===e&&"\u53f0\u6e7e"===t.name&&t.geometries.push({type:"polygon",exterior:Ha[0]})}var Wa=Object(ot["o"])(),Xa={load:function(e,t,n){var r=Wa(t).parsed;if(r)return r;var i,a=t.specialAreas||{},o=t.geoJSON;try{i=o?Object(ka["a"])(o,n):[]}catch(l){throw new Error("Invalid geoJson format\n"+l.message)}return Ba(e,i),Object(s["each"])(i,(function(t){var n=t.name;Object(Va["a"])(e,t),Object(Ga["a"])(e,t),Ua(e,t);var r=a[n];r&&t.transformTo(r.left,r.top,r.width,r.height)})),Wa(t).parsed={regions:i,boundingRect:Ya(i)}}};function Ya(e){for(var t,n=0;n<e.length;n++){var r=e[n].getBoundingRect();t=t||r.clone(),t.union(r)}return t}var Ka,qa=n("d1dw"),Za=n("qvkS"),$a=n("66f4"),Qa=/[\s,]+/,Ja=function(){function e(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}return e.prototype.parse=function(e,t){t=t||{};var n=Object($a["a"])(e);if(!n)throw new Error("Illegal svg");var r=new De["a"];this._root=r;var i=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||t.width),o=parseFloat(n.getAttribute("height")||t.height);isNaN(a)&&(a=null),isNaN(o)&&(o=null),ao(n,r,null,!0);var l,u,c=n.firstChild;while(c)this._parseNode(c,r),c=c.nextSibling;if(i){var h=Object(s["trim"])(i).split(Qa);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!=o&&(u=fo(l,a,o),!t.ignoreViewBox)){var d=r;r=new De["a"],r.add(d),d.scaleX=d.scaleY=u.scale,d.x=u.x,d.y=u.y}return t.ignoreRootClip||null==a||null==o||r.setClipPath(new yt["a"]({shape:{x:0,y:0,width:a,height:o}})),{root:r,width:a,height:o,viewBoxRect:l,viewBoxTransform:u}},e.prototype._parseNode=function(e,t){var n,r=e.nodeName.toLowerCase();if("defs"===r?this._isDefine=!0:"text"===r&&(this._isText=!0),this._isDefine){var i=eo[r];if(i){var a=i.call(this,e),o=e.getAttribute("id");o&&(this._defs[o]=a)}}else{i=Ka[r];i&&(n=i.call(this,e,t),t.add(n))}if(n){var s=e.firstChild;while(s)1===s.nodeType&&this._parseNode(s,n),3===s.nodeType&&this._isText&&this._parseText(s,n),s=s.nextSibling}"defs"===r?this._isDefine=!1:"text"===r&&(this._isText=!1)},e.prototype._parseText=function(e,t){if(1===e.nodeType){var n=e.getAttribute("dx")||0,r=e.getAttribute("dy")||0;this._textX+=parseFloat(n),this._textY+=parseFloat(r)}var i=new c["a"]({style:{text:e.textContent},x:this._textX||0,y:this._textY||0});no(t,i),ao(e,i,this._defs);var a=i.style,o=a.fontSize;o&&o<9&&(a.fontSize=9,i.scaleX*=o/9,i.scaleY*=o/9);var s=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=s;var l=i.getBoundingRect();return this._textX+=l.width,t.add(i),i},e.internalField=function(){Ka={g:function(e,t){var n=new De["a"];return no(t,n),ao(e,n,this._defs),n},rect:function(e,t){var n=new yt["a"];return no(t,n),ao(e,n,this._defs),n.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),n},circle:function(e,t){var n=new na["a"];return no(t,n),ao(e,n,this._defs),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n},line:function(e,t){var n=new Jr["a"];return no(t,n),ao(e,n,this._defs),n.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),n},ellipse:function(e,t){var n=new qa["a"];return no(t,n),ao(e,n,this._defs),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),n},polygon:function(e,t){var n,r=e.getAttribute("points");r&&(n=ro(r));var i=new Wi["a"]({shape:{points:n||[]}});return no(t,i),ao(e,i,this._defs),i},polyline:function(e,t){var n=new l["b"];no(t,n),ao(e,n,this._defs);var r,i=e.getAttribute("points");i&&(r=ro(i));var a=new Fn["a"]({shape:{points:r||[]}});return a},image:function(e,t){var n=new u["a"];return no(t,n),ao(e,n,this._defs),n.setStyle({image:e.getAttribute("xlink:href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n},text:function(e,t){var n=e.getAttribute("x")||"0",r=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",a=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(r)+parseFloat(a);var o=new De["a"];return no(t,o),ao(e,o,this._defs),o},tspan:function(e,t){var n=e.getAttribute("x"),r=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=r&&(this._textY=parseFloat(r));var i=e.getAttribute("dx")||0,a=e.getAttribute("dy")||0,o=new De["a"];return no(t,o),ao(e,o,this._defs),this._textX+=i,this._textY+=a,o},path:function(e,t){var n=e.getAttribute("d")||"",r=Object(Za["a"])(n);return no(t,r),ao(e,r,this._defs),r}}}(),e}(),eo={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),r=parseInt(e.getAttribute("x2")||"10",10),i=parseInt(e.getAttribute("y2")||"0",10),a=new it["a"](t,n,r,i);return to(e,a),a}};function to(e,t){var n=e.firstChild;while(n){if(1===n.nodeType){var r=n.getAttribute("offset"),i=void 0;i=r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var a=n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:a})}n=n.nextSibling}}function no(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Object(s["defaults"])(t.__inheritedStyle,e.__inheritedStyle))}function ro(e){for(var t=Object(s["trim"])(e).split(Qa),n=[],r=0;r<t.length;r+=2){var i=parseFloat(t[r]),a=parseFloat(t[r+1]);n.push([i,a])}return n}var io={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-align":"textAlign","alignment-baseline":"textBaseline"};function ao(e,t,n,r){var i=t,a=i.__inheritedStyle||{};if(1===e.nodeType&&(uo(e,t),Object(s["extend"])(a,ho(e)),!r))for(var o in io)if(io.hasOwnProperty(o)){var l=e.getAttribute(o);null!=l&&(a[io[o]]=l)}i.style=i.style||{},null!=a.fill&&(i.style.fill=so(a.fill,n)),null!=a.stroke&&(i.style.stroke=so(a.stroke,n)),Object(s["each"])(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(e){null!=a[e]&&(i.style[e]=parseFloat(a[e]))})),a.textBaseline&&"auto"!==a.textBaseline||(a.textBaseline="alphabetic"),"alphabetic"===a.textBaseline&&(a.textBaseline="bottom"),"start"===a.textAlign&&(a.textAlign="left"),"end"===a.textAlign&&(a.textAlign="right"),Object(s["each"])(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],(function(e){null!=a[e]&&(i.style[e]=a[e])})),a.lineDash&&(i.style.lineDash=Object(s["map"])(Object(s["trim"])(a.lineDash).split(Qa),(function(e){return parseFloat(e)}))),i.__inheritedStyle=a}var oo=/url\(\s*#(.*?)\)/;function so(e,t){var n=t&&e&&e.match(oo);if(n){var r=Object(s["trim"])(n[1]),i=t[r];return i}return e}var lo=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;function uo(e,t){var n=e.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],i=null;n.replace(lo,(function(e,t,n){return r.push(t,n),""}));for(var a=r.length-1;a>0;a-=2){var o=r[a],l=r[a-1],u=void 0;switch(i=i||Rr["create"](),l){case"translate":u=Object(s["trim"])(o).split(Qa),Rr["translate"](i,i,[parseFloat(u[0]),parseFloat(u[1]||"0")]);break;case"scale":u=Object(s["trim"])(o).split(Qa),Rr["scale"](i,i,[parseFloat(u[0]),parseFloat(u[1]||u[0])]);break;case"rotate":u=Object(s["trim"])(o).split(Qa),Rr["rotate"](i,i,parseFloat(u[0]));break;case"skew":u=Object(s["trim"])(o).split(Qa),console.warn("Skew transform is not supported yet");break;case"matrix":u=Object(s["trim"])(o).split(Qa),i[0]=parseFloat(u[0]),i[1]=parseFloat(u[1]),i[2]=parseFloat(u[2]),i[3]=parseFloat(u[3]),i[4]=parseFloat(u[4]),i[5]=parseFloat(u[5]);break}}t.setLocalTransform(i)}}var co=/([^\s:;]+)\s*:\s*([^:;]+)/g;function ho(e){var t=e.getAttribute("style"),n={};if(!t)return n;var r,i={};co.lastIndex=0;while(null!=(r=co.exec(t)))i[r[1]]=r[2];for(var a in io)io.hasOwnProperty(a)&&null!=i[a]&&(n[io[a]]=i[a]);return n}function fo(e,t,n){var r=t/e.width,i=n/e.height,a=Math.min(r,i);return{scale:a,x:-(e.x+e.width/2)*a+t/2,y:-(e.y+e.height/2)*a+n/2}}function po(e,t){var n=new Ja;return n.parse(e,t)}var go=Object(ot["o"])(),mo={load:function(e,t){var n=go(t).originRoot;if(n)return{root:n,boundingRect:go(t).boundingRect};var r=vo(t);return go(t).originRoot=r.root,go(t).boundingRect=r.boundingRect,r},makeGraphic:function(e,t,n){var r=go(t),i=r.rootMap||(r.rootMap=Object(s["createHashMap"])()),a=i.get(n);if(a)return a;var o=r.originRoot,l=r.boundingRect;return r.originRootHostKey?a=vo(t,l).root:(r.originRootHostKey=n,a=o),i.set(n,a)},removeGraphic:function(e,t,n){var r=go(t),i=r.rootMap;i&&i.removeKey(n),n===r.originRootHostKey&&(r.originRootHostKey=null)}};function vo(e,t){var n,r,i=e.svgXML;try{n=i&&po(i,{ignoreViewBox:!0,ignoreRootClip:!0})||{},r=n.root,Object(s["assert"])(null!=r)}catch(h){throw new Error("Invalid svg format\n"+h.message)}var a=n.width,o=n.height,l=n.viewBoxRect;if(t||(t=null==a||null==o?r.getBoundingRect():new Pr["a"](0,0,0,0),null!=a&&(t.width=a),null!=o&&(t.height=o)),l){var u=fo(l,t.width,t.height),c=r;r=new De["a"],r.add(c),c.scaleX=c.scaleY=u.scale,c.x=u.x,c.y=u.y}return r.setClipPath(new yt["a"]({shape:t.plain()})),{root:r,boundingRect:t}}var yo={geoJSON:Xa,svg:mo},bo={load:function(e,t,n){var r,i=[],a=Object(s["createHashMap"])(),o=Object(s["createHashMap"])(),l=_o(e);return Object(s["each"])(l,(function(l){var u=yo[l.type].load(e,l,n);Object(s["each"])(u.regions,(function(e){var n=e.name;t&&t.hasOwnProperty(n)&&(e=e.cloneShallow(n=t[n])),i.push(e),a.set(n,e),o.set(n,e.center)}));var c=u.boundingRect;c&&(r?r.union(c):r=c.clone())})),{regions:i,regionsMap:a,nameCoordMap:o,boundingRect:r||new Pr["a"](0,0,0,0)}},makeGraphic:function(e,t){var n=_o(e),r=[];return Object(s["each"])(n,(function(n){var i=yo[n.type].makeGraphic;i&&r.push(i(e,n,t))})),r},removeGraphic:function(e,t){var n=_o(e);Object(s["each"])(n,(function(n){var r=yo[n.type].makeGraphic;r&&r(e,n,t)}))}};function _o(e){var t=Pa["a"].retrieveMap(e)||[];return t}var xo=n("kvGf"),wo=n("dWfN");function So(e){var t=e.getItemStyle(),n=e.get("areaColor");return null!=n&&(t.fill=n),t}var To=function(){function e(e){var t=new De["a"];this.uid=Object($t["c"])("ec_map_draw"),this._controller=new Ea(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new De["a"]),t.add(this._backgroundGroup=new De["a"])}return e.prototype.draw=function(e,t,n,r,i){var a="geo"===e.mainType,o=e.getData&&e.getData();a&&t.eachComponent({mainType:"series",subType:"map"},(function(t){o||t.getHostGeoModel()!==e||(o=t.getData())}));var l=e.coordinateSystem;this._updateBackground(l);var u,c,h=this._regionsGroup,d=this.group,f=l.getTransformInfo(),p=!h.childAt(0)||i;if(p)d.transform=f.roamTransform,d.decomposeTransform(),d.dirty();else{var g=new xo["a"];g.transform=f.roamTransform,g.decomposeTransform();var m={scaleX:g.scaleX,scaleY:g.scaleY,x:g.x,y:g.y};u=g.scaleX,c=g.scaleY,Le["updateProps"](d,m,e)}h.removeAll();var v=s["createHashMap"](),y=o&&o.getVisual("visualMeta")&&o.getVisual("visualMeta").length>0;s["each"](l.regions,(function(t){var r=v.get(t.name)||v.set(t.name,new De["a"]),i=new La["a"]({segmentIgnoreThreshold:1,shape:{paths:[]}});r.add(i);var l,g=e.getRegionModel(t.name)||e,m=g.getModel("itemStyle"),b=g.getModel("emphasis"),_=b.getModel("itemStyle"),x=g.getModel(["blur","itemStyle"]),w=g.getModel(["select","itemStyle"]),S=So(m),T=So(_),O=So(x),M=So(w);if(o){l=o.indexOfName(t.name);var E=o.getItemVisual(l,"style"),A=o.getItemVisual(l,"decal");y&&E.fill&&(S.fill=E.fill),A&&(S.decal=Object(wo["a"])(A,n))}var C=f.rawScaleX,I=f.rawScaleY,D=f.rawX,L=f.rawY,P=function(e){return[e[0]*C+D,e[1]*I+L]};s["each"](t.geometries,(function(e){if("polygon"===e.type){for(var t=[],n=0;n<e.exterior.length;++n)t.push(P(e.exterior[n]));i.shape.paths.push(new Wi["a"]({segmentIgnoreThreshold:1,shape:{points:t}}));for(n=0;n<(e.interiors?e.interiors.length:0);++n){for(var r=e.interiors[n],a=[],o=0;o<r.length;++o)a.push(P(r[o]));i.shape.paths.push(new Wi["a"]({segmentIgnoreThreshold:1,shape:{points:a}}))}}})),i.setStyle(S),i.style.strokeNoScale=!0,i.culling=!0,i.ensureState("emphasis").style=T,i.ensureState("blur").style=O,i.ensureState("select").style=M;for(var k=!1,R=0;R<Re["a"].length;R++){var N=Re["a"][R];if(g.get("normal"===N?["label","show"]:[N,"label","show"])){k=!0;break}}var j=o&&isNaN(o.get(o.mapDimension("value"),l)),F=o&&o.getItemLayout(l);if(a||j&&k||F&&F.showLabel){var z=a?t.name:l,B=void 0;(!o||l>=0)&&(B=e);var V=P(t.center),G=new at["a"]({x:V[0],y:V[1],scaleX:1/d.scaleX,scaleY:1/d.scaleY,z2:10,silent:!0});Object(Be["g"])(G,Object(Be["e"])(g),{labelFetcher:B,labelDataIndex:z,defaultText:t.name},{normal:{align:"center",verticalAlign:"middle"}}),i.setTextContent(G),i.setTextConfig({local:!0}),i.disableLabelAnimation=!0,p||Le["updateProps"](G,{scaleX:1/u,scaleY:1/c},e)}if(o)o.setItemGraphicEl(l,r);else{var H=e.getRegionModel(t.name);Object(ke["a"])(i).eventData={componentType:"geo",componentIndex:e.componentIndex,geoIndex:e.componentIndex,name:t.name,region:H&&H.option||{}}}var U=r.__regions||(r.__regions=[]);U.push(t),r.highDownSilentOnTouch=!!e.get("selectedMode"),Object(Re["k"])(r,b.get("focus"),b.get("blurScope")),h.add(r)})),this._updateController(e,t,n),this._updateMapSelectHandler(e,h,n,r)},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&bo.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost=null},e.prototype._updateBackground=function(e){var t=e.map;this._mapName!==t&&s["each"](bo.makeGraphic(t,this.uid),(function(e){this._backgroundGroup.add(e)}),this),this._mapName=t},e.prototype._updateController=function(e,t,n){var r=e.coordinateSystem,i=this._controller,a=this._controllerHost;a.zoomLimit=e.get("scaleLimit"),a.zoom=r.getZoom(),i.enable(e.get("roam")||!1);var o=e.mainType;function l(){var t={type:"geoRoam",componentType:o};return t[o+"Id"]=e.id,t}i.off("pan").on("pan",(function(e){this._mouseDownFlag=!1,Aa(a,e.dx,e.dy),n.dispatchAction(s["extend"](l(),{dx:e.dx,dy:e.dy}))}),this),i.off("zoom").on("zoom",(function(e){this._mouseDownFlag=!1,Ca(a,e.scale,e.originX,e.originY),n.dispatchAction(s["extend"](l(),{zoom:e.scale,originX:e.originX,originY:e.originY}));var t=this.group;this._regionsGroup.traverse((function(e){var n=e.getTextContent();n&&(n.scaleX=1/t.scaleX,n.scaleY=1/t.scaleY,n.markRedraw())}))}),this),i.setPointerChecker((function(t,i,a){return r.getViewRectAfterRoam().contain(i,a)&&!Da(t,n,e)}))},e.prototype._updateMapSelectHandler=function(e,t,n,r){var i=this;t.off("mousedown"),e.get("selectedMode")&&(t.on("mousedown",(function(){i._mouseDownFlag=!0})),t.on("click",(function(e){i._mouseDownFlag&&(i._mouseDownFlag=!1)})))},e}(),Oo=To,Mo=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.render=function(e,t,n,r){if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var i=this.group;if(i.removeAll(),!e.getHostGeoModel()){if(r&&"geoRoam"===r.type&&"series"===r.componentType&&r.seriesId===e.id){a=this._mapDraw;a&&i.add(a.group)}else if(e.needsDrawMap){var a=this._mapDraw||new Oo(n);i.add(a.group),a.draw(e,t,n,this,r),this._mapDraw=a}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,n)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,t,n){var r=e.originalData,i=this.group;r.each(r.mapDimension("value"),(function(t,n){if(!isNaN(t)){var a=r.getItemLayout(n);if(a&&a.point){var o=a.point,s=a.offset,l=new na["a"]({style:{fill:e.getData().getVisual("style").fill},shape:{cx:o[0]+9*s,cy:o[1],r:3},silent:!0,z2:8+(s?0:Re["j"]+1)});if(!s){var u=e.mainSeries.getData(),c=r.getName(n),h=u.indexOfName(c),d=r.getItemModel(n),f=d.getModel("label"),p=u.getItemGraphicEl(h);Object(Be["g"])(l,Object(Be["e"])(d),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(h,n)}}}),l.disableLabelAnimation=!0,f.get("position")||l.setTextConfig({position:"bottom"}),p.onHoverStateChange=function(e){l.useState(e)}}i.add(l)}}}))},t.type="map",t}(vt["a"]),Eo=Mo,Ao=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(e){if(null!=e){var t=this.getData().getName(e),n=this.coordinateSystem,r=n.getRegion(t);return r&&n.dataToPoint(r.center)}},n}return Object(v["b"])(t,e),t.prototype.getInitialData=function(e){for(var t=Jn(this,{coordDimensions:["value"],encodeDefaulter:s["curry"](er["d"],this)}),n=s["createHashMap"](),r=[],i=0,a=t.count();i<a;i++){var o=t.getName(i);n.set(o,!0)}var l=bo.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return s["each"](l.regions,(function(e){var t=e.name;n.get(t)||r.push(t)})),t.appendValues([],r),t},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return null!=e?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var t=this.getData();return t.get(t.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},t.prototype.formatTooltip=function(e,t,n){for(var r=this.getData(),i=this.getRawValue(e),a=r.getName(e),o=this.seriesGroup,s=[],l=0;l<o.length;l++){var u=o[l].originalData.indexOfName(a),c=r.mapDimension("value");isNaN(o[l].originalData.get(c,u))||s.push(o[l].name)}return Object(qi["c"])("section",{header:s.join(", "),noHeader:!s.length,blocks:[Object(qi["c"])("nameValue",{name:a,value:i})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,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"},t}(Ae["a"]),Co=Ao;function Io(e,t){var n={};return s["each"](e,(function(e){e.each(e.mapDimension("value"),(function(t,r){var i="ec-"+e.getName(r);n[i]=n[i]||[],isNaN(t)||n[i].push(t)}))})),e[0].map(e[0].mapDimension("value"),(function(r,i){for(var a,o="ec-"+e[0].getName(i),s=0,l=1/0,u=-1/0,c=n[o].length,h=0;h<c;h++)l=Math.min(l,n[o][h]),u=Math.max(u,n[o][h]),s+=n[o][h];return a="min"===t?l:"max"===t?u:"average"===t?s/c:s,0===c?NaN:a}))}function Do(e){var t={};e.eachSeriesByType("map",(function(e){var n=e.getHostGeoModel(),r=n?"o"+n.id:"i"+e.getMapType();(t[r]=t[r]||[]).push(e)})),s["each"](t,(function(e,t){for(var n=Io(s["map"](e,(function(e){return e.getData()})),e[0].get("mapValueCalculation")),r=0;r<e.length;r++)e[r].originalData=e[r].getData();for(r=0;r<e.length;r++)e[r].seriesGroup=e,e[r].needsDrawMap=0===r&&!e[r].getHostGeoModel(),e[r].setData(n.cloneShallow()),e[r].mainSeries=e[0]}))}function Lo(e){var t={};e.eachSeriesByType("map",(function(n){var r=n.getMapType();if(!n.getHostGeoModel()&&!t[r]){var i={};s["each"](n.seriesGroup,(function(t){var n=t.coordinateSystem,r=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&r.each(r.mapDimension("value"),(function(e,t){var a=r.getName(t),o=n.getRegion(a);if(o&&!isNaN(e)){var s=i[a]||0,l=n.dataToPoint(o.center);i[a]=s+1,r.setItemLayout(t,{point:l,offset:s})}}))}));var a=n.getData();a.each((function(e){var t=a.getName(e),n=a.getItemLayout(e)||{};n.showLabel=!i[t],a.setItemLayout(e,n)})),t[r]=!0}}))}var Po=Nr["applyTransform"],ko=function(e){function t(t){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new xo["a"],n._rawTransformable=new xo["a"],n.name=t,n}return Object(v["b"])(t,e),t.prototype.setBoundingRect=function(e,t,n,r){return this._rect=new Pr["a"](e,t,n,r),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,t,n,r){this.transformTo(e,t,n,r),this._viewRect=new Pr["a"](e,t,n,r)},t.prototype.transformTo=function(e,t,n,r){var i=this.getBoundingRect(),a=this._rawTransformable;a.transform=i.calculateTransform(new Pr["a"](e,t,n,r)),a.decomposeTransform(),this._updateTransform()},t.prototype.setCenter=function(e){e&&(this._center=e,this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var t=this.zoomLimit;t&&(null!=t.max&&(e=Math.min(t.max,e)),null!=t.min&&(e=Math.max(t.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect(),t=e.x+e.width/2,n=e.y+e.height/2;return[t,n]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),t=this._roamTransformable,n=this.getDefaultCenter(),r=this.getCenter(),i=this.getZoom();r=Nr["applyTransform"]([],r,e),n=Nr["applyTransform"]([],n,e),t.originX=r[0],t.originY=r[1],t.x=n[0]-r[0],t.y=n[1]-r[1],t.scaleX=t.scaleY=i,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),Rr["copy"](this.transform||(this.transform=[]),t.transform||Rr["create"]()),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],Rr["invert"](this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._roamTransformable.transform,t=this._rawTransformable;return{roamTransform:e?s["slice"](e):Rr["create"](),rawScaleX:t.scaleX,rawScaleY:t.scaleY,rawX:t.x,rawY:t.y}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,t,n){var r=t?this._rawTransform:this.transform;return n=n||[],r?Po(n,e,r):Nr["copy"](n,e)},t.prototype.pointToData=function(e){var t=this.invTransform;return t?Po([],e,t):[e[0],e[1]]},t.prototype.convertToPixel=function(e,t,n){var r=Ro(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=Ro(t);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(xo["a"]);function Ro(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var No=ko,jo=function(e){function t(t,n,r,i){var a=e.call(this,t)||this;a.dimensions=["lng","lat"],a.type="geo",a.map=n;var o=bo.load(n,r);return a._nameCoordMap=o.nameCoordMap,a._regionsMap=o.regionsMap,a._invertLongitute=null==i||i,a.regions=o.regions,a._rect=o.boundingRect,a}return Object(v["b"])(t,e),t.prototype.containCoord=function(e){for(var t=this.regions,n=0;n<t.length;n++)if(t[n].contain(e))return!0;return!1},t.prototype.transformTo=function(e,t,n,r){var i=this.getBoundingRect(),a=this._invertLongitute;i=i.clone(),a&&(i.y=-i.y-i.height);var o=this._rawTransformable;o.transform=i.calculateTransform(new Pr["a"](e,t,n,r)),o.decomposeTransform(),a&&(o.scaleY=-o.scaleY),o.updateTransform(),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var t=this.regions,n=0;n<t.length;n++)if(t[n].contain(e))return t[n]},t.prototype.addGeoCoord=function(e,t){this._nameCoordMap.set(e,t)},t.prototype.getGeoCoord=function(e){return this._nameCoordMap.get(e)},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.dataToPoint=function(e,t,n){if("string"===typeof e&&(e=this.getGeoCoord(e)),e)return No.prototype.dataToPoint.call(this,e,t,n)},t.prototype.convertToPixel=function(e,t,n){var r=Fo(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=Fo(t);return r===this?r.pointToData(n):null},t}(No);function Fo(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",ot["b"]).models[0]||{}).coordinateSystem:null}s["mixin"](jo,No);var zo=jo;function Bo(e,t){var n=e.get("boundingCoords");if(null!=n){var r=n[0],i=n[1];isNaN(r[0])||isNaN(r[1])||isNaN(i[0])||isNaN(i[1])||this.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1])}var a,o,s,l=this.getBoundingRect(),u=e.get("layoutCenter"),c=e.get("layoutSize"),h=t.getWidth(),d=t.getHeight(),f=l.width/l.height*this.aspectScale,p=!1;if(u&&c&&(a=[Ne["o"](u[0],h),Ne["o"](u[1],d)],o=Ne["o"](c,Math.min(h,d)),isNaN(a[0])||isNaN(a[1])||isNaN(o)||(p=!0)),p)s={},f>1?(s.width=o,s.height=o/f):(s.height=o,s.width=o*f),s.y=a[1]-s.height/2,s.x=a[0]-s.width/2;else{var g=e.getBoxLayoutParams();g.aspect=f,s=Ln["g"](g,{width:h,height:d})}this.setViewRect(s.x,s.y,s.width,s.height),this.setCenter(e.get("center")),this.setZoom(e.get("zoom"))}function Vo(e,t){s["each"](t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}var Go=function(){function e(){this.dimensions=zo.prototype.dimensions}return e.prototype.create=function(e,t){var n=[];e.eachComponent("geo",(function(e,r){var i=e.get("map"),a=e.get("aspectScale"),o=!0,s=Pa["a"].retrieveMap(i);s&&s[0]&&"svg"===s[0].type?(null==a&&(a=1),o=!1):null==a&&(a=.75);var l=new zo(i+r,i,e.get("nameMap"),o);l.aspectScale=a,l.zoomLimit=e.get("scaleLimit"),n.push(l),e.coordinateSystem=l,l.model=e,l.resize=Bo,l.resize(e,t)})),e.eachSeries((function(e){var t=e.get("coordinateSystem");if("geo"===t){var r=e.get("geoIndex")||0;e.coordinateSystem=n[r]}}));var r={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();r[t]=r[t]||[],r[t].push(e)}})),s["each"](r,(function(e,r){var i=s["map"](e,(function(e){return e.get("nameMap")})),a=new zo(r,r,s["mergeAll"](i));a.zoomLimit=s["retrieve"].apply(null,s["map"](e,(function(e){return e.get("scaleLimit")}))),n.push(a),a.resize=Bo,a.aspectScale=e[0].get("aspectScale"),a.resize(e[0],t),s["each"](e,(function(e){e.coordinateSystem=a,Vo(a,e)}))})),n},e.prototype.getFilledRegions=function(e,t,n){for(var r=(e||[]).slice(),i=s["createHashMap"](),a=0;a<r.length;a++)i.set(r[a].name,r[a]);var o=bo.load(t,n);return s["each"](o.regions,(function(e){var t=e.name;!i.get(t)&&r.push({name:t})})),r},e}(),Ho=new Go,Uo=Ho,Wo=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.init=function(t,n,r){e.prototype.init.call(this,t,n,r),ot["f"](t,"label",["show"])},t.prototype.optionUpdated=function(){var e=this.option,t=this;e.regions=Uo.getFilledRegions(e.regions,e.map,e.nameMap);var n={};this._optionModelMap=s["reduce"](e.regions||[],(function(e,r){var i=r.name;return i&&(e.set(i,new ei["a"](r,t)),r.selected&&(n[i]=!0)),e}),s["createHashMap"]()),e.selectedMap||(e.selectedMap=n)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new ei["a"](null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,t){var n=this.getRegionModel(e),r="normal"===t?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),i={name:e};return"function"===typeof r?(i.status=t,r(i)):"string"===typeof r?r.replace("{a}",null!=e?e:""):void 0},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var t=this.option,n=t.selectedMode;if(n){"multiple"!==n&&(t.selectedMap=null);var r=t.selectedMap||(t.selectedMap={});r[e]=!0}},t.prototype.unSelect=function(e){var t=this.option.selectedMap;t&&(t[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var t=this.option.selectedMap;return!(!t||!t[e])},t.prototype._initSelectedMapFromData=function(){},t.type="geo",t.layoutMode="box",t.defaultOption={zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(vr["a"]),Xo=Wo;function Yo(e,t,n){var r=e.getZoom(),i=e.getCenter(),a=t.zoom,o=e.dataToPoint(i);if(null!=t.dx&&null!=t.dy&&(o[0]-=t.dx,o[1]-=t.dy,e.setCenter(e.pointToData(o))),null!=a){if(n){var s=n.min||0,l=n.max||1/0;a=Math.max(Math.min(r*a,l),s)/r}e.scaleX*=a,e.scaleY*=a;var u=(t.originX-e.x)*(a-1),c=(t.originY-e.y)*(a-1);e.x-=u,e.y-=c,e.updateTransform(),e.setCenter(e.pointToData(o)),e.setZoom(a*r)}return{center:e.getCenter(),zoom:e.getZoom()}}var Ko=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.init=function(e,t){var n=new Oo(t);this._mapDraw=n,this.group.add(n.group),this._api=t},t.prototype.render=function(e,t,n,r){var i=this._mapDraw;e.get("show")?i.draw(e,t,n,this,r):this._mapDraw.group.removeAll(),i.group.on("click",this._handleRegionClick,this),i.group.silent=e.get("silent"),this._model=e,this.updateSelectStatus(e,t,n)},t.prototype._handleRegionClick=function(e){var t,n=e.target;while(n&&null==(t=Object(ke["a"])(n).eventData))n=n.__hostTarget||n.parent;t&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:t.name})},t.prototype.updateSelectStatus=function(e,t,n){var r=this;this._mapDraw.group.traverse((function(e){var t=Object(ke["a"])(e).eventData;if(t)return r._model.isSelected(t.name)?n.enterSelect(e):n.leaveSelect(e),!0}))},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(mr["a"]),qo=Ko;function Zo(e){function t(t,n){n.update="geo:updateSelectStatus",e.registerAction(n,(function(e,n){var r={};return n.eachComponent({mainType:"geo",query:e},(function(n){n[t](e.name);var i=n.coordinateSystem;Object(s["each"])(i.regions,(function(e){r[e.name]=n.isSelected(e.name)||!1}))})),{selected:r,name:e.name}}))}e.registerCoordinateSystem("geo",Uo),e.registerComponentModel(Xo),e.registerComponentView(qo),t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},(function(t){var r=t.coordinateSystem;if("geo"===r.type){var i=Yo(r,e,t.get("scaleLimit"));t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom),"series"===n&&Object(s["each"])(t.seriesGroup,(function(e){e.setCenter(i.center),e.setZoom(i.zoom)}))}}))}))}function $o(e){Object(r["a"])(Zo),e.registerChartView(Eo),e.registerSeriesModel(Co),e.registerLayout(Lo),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Do),Object(Dn["a"])("map",e.registerAction)}var Qo=n("VGoH");function Jo(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var n,r,i=[t];while(n=i.pop())if(r=n.children,n.isExpand&&r.length)for(var a=r.length,o=a-1;o>=0;o--){var s=r[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},i.push(s)}}function es(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,i=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){as(e);var a=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-a):e.hierNode.prelim=a}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=os(e,i,e.parentNode.hierNode.defaultAncestor||r[0],t)}function ts(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function ns(e){return arguments.length?e:hs}function rs(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function is(e,t){return Ln["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function as(e){var t=e.children,n=t.length,r=0,i=0;while(--n>=0){var a=t[n];a.hierNode.prelim+=r,a.hierNode.modifier+=r,i+=a.hierNode.change,r+=a.hierNode.shift+i}}function os(e,t,n,r){if(t){var i=e,a=e,o=a.parentNode.children[0],s=t,l=i.hierNode.modifier,u=a.hierNode.modifier,c=o.hierNode.modifier,h=s.hierNode.modifier;while(s=ss(s),a=ls(a),s&&a){i=ss(i),o=ls(o),i.hierNode.ancestor=e;var d=s.hierNode.prelim+h-a.hierNode.prelim-u+r(s,a);d>0&&(cs(us(s,e,n),e,d),u+=d,l+=d),h+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=i.hierNode.modifier,c+=o.hierNode.modifier}s&&!ss(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=h-l),a&&!ls(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,n=e)}return n}function ss(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function ls(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function us(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function cs(e,t,n){var r=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=r,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=r}function hs(e,t){return e.parentNode===t.parentNode?1:2}var ds=n("nApx"),fs=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),ps=function(e){function t(t){return e.call(this,t)||this}return Object(v["b"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new fs},t.prototype.buildPath=function(e,t){var n=t.childPoints,r=n.length,i=t.parentPoint,a=n[0],o=n[r-1];if(1===r)return e.moveTo(i[0],i[1]),void e.lineTo(a[0],a[1]);var s=t.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=Object(Ne["o"])(t.forkPosition,1),h=[];h[l]=i[l],h[u]=i[u]+(o[u]-i[u])*c,e.moveTo(i[0],i[1]),e.lineTo(h[0],h[1]),e.moveTo(a[0],a[1]),h[l]=a[l],e.lineTo(h[0],h[1]),h[l]=o[l],e.lineTo(h[0],h[1]),e.lineTo(o[0],o[1]);for(var d=1;d<r-1;d++){var f=n[d];e.moveTo(f[0],f[1]),h[l]=f[l],e.lineTo(h[0],h[1])}},t}(l["b"]),gs=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new De["a"],n}return Object(v["b"])(t,e),t.prototype.init=function(e,t){this._controller=new Ea(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,t,n){var r=e.getData(),i=e.layoutInfo,a=this._mainGroup,o=e.get("layout");"radial"===o?(a.x=i.x+i.width/2,a.y=i.y+i.height/2):(a.x=i.x,a.y=i.y),this._updateViewCoordSys(e),this._updateController(e,t,n);var s=this._data;r.diff(s).add((function(t){ms(r,t)&&vs(r,t,null,a,e)})).update((function(t,n){var i=s.getItemGraphicEl(n);ms(r,t)?vs(r,t,i,a,e):i&&bs(s,n,i,a,e)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&bs(s,t,n,a,e)})).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),!0===e.get("expandAndCollapse")&&r.eachItemGraphicEl((function(t,r){t.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:r})}))})),this._data=r},t.prototype._updateViewCoordSys=function(e){var t=e.getData(),n=[];t.each((function(e){var r=t.getItemLayout(e);!r||isNaN(r.x)||isNaN(r.y)||n.push([+r.x,+r.y])}));var r=[],i=[];ds["d"](n,r,i);var a=this._min,o=this._max;i[0]-r[0]===0&&(r[0]=a?a[0]:r[0]-1,i[0]=o?o[0]:i[0]+1),i[1]-r[1]===0&&(r[1]=a?a[1]:r[1]-1,i[1]=o?o[1]:i[1]+1);var s=e.coordinateSystem=new No;s.zoomLimit=e.get("scaleLimit"),s.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1]),s.setCenter(e.get("center")),s.setZoom(e.get("zoom")),this.group.attr({x:s.x,y:s.y,scaleX:s.scaleX,scaleY:s.scaleY}),this._min=r,this._max=i},t.prototype._updateController=function(e,t,n){var r=this,i=this._controller,a=this._controllerHost,o=this.group;i.setPointerChecker((function(t,r,i){var a=o.getBoundingRect();return a.applyTransform(o.transform),a.contain(r,i)&&!Da(t,n,e)})),i.enable(e.get("roam")),a.zoomLimit=e.get("scaleLimit"),a.zoom=e.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(t){Aa(a,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"treeRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){Ca(a,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),r._updateNodeAndLinkScale(e),n.updateLabelLayout()}))},t.prototype._updateNodeAndLinkScale=function(e){var t=e.getData(),n=this._getNodeGlobalScale(e);t.eachItemGraphicEl((function(e,t){e.setSymbolScale(n)}))},t.prototype._getNodeGlobalScale=function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=this._nodeScaleRatio,r=t.scaleX||1,i=t.getZoom(),a=(i-1)*n+1;return a/r},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(vt["a"]);function ms(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function vs(e,t,n,r,i){var a=!n,o=e.tree.getNodeByDataIndex(t),s=o.getModel(),l=o.getVisual("style").fill,u=!1===o.isExpand&&0!==o.children.length?l:"#fff",c=e.tree.root,h=o.parentNode===c?o:o.parentNode||o,d=e.getItemGraphicEl(h.dataIndex),f=h.getLayout(),p=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:f,g=o.getLayout();a?(n=new He(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),n.x=p.x,n.y=p.y):n.updateData(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=g.rawX,n.__radialRawY=g.rawY,r.add(n),e.setItemGraphicEl(t,n),n.__oldX=n.x,n.__oldY=n.y,Le["updateProps"](n,{x:g.x,y:g.y},i);var m=n.getSymbolPath();if("radial"===i.get("layout")){var v=c.children[0],y=v.getLayout(),b=v.children.length,_=void 0,x=void 0;if(g.x===y.x&&!0===o.isExpand){var w={x:(v.children[0].getLayout().x+v.children[b-1].getLayout().x)/2,y:(v.children[0].getLayout().y+v.children[b-1].getLayout().y)/2};_=Math.atan2(w.y-y.y,w.x-y.x),_<0&&(_=2*Math.PI+_),x=w.x<y.x,x&&(_-=Math.PI)}else _=Math.atan2(g.y-y.y,g.x-y.x),_<0&&(_=2*Math.PI+_),0===o.children.length||0!==o.children.length&&!1===o.isExpand?(x=g.x<y.x,x&&(_-=Math.PI)):(x=g.x>y.x,x||(_-=Math.PI));var S=x?"left":"right",T=s.getModel("label"),O=T.get("rotate"),M=O*(Math.PI/180),E=m.getTextContent();E&&(m.setTextConfig({position:T.get("position")||S,rotation:null==O?-_:M,origin:"center"}),E.setStyle("verticalAlign","middle"))}var A=s.get(["emphasis","focus"]),C="ancestor"===A?o.getAncestorsIndices():"descendant"===A?o.getDescendantIndices():null;C&&(Object(ke["a"])(n).focus=C),ys(i,o,c,n,p,f,g,r),n.__edge&&(n.onHoverStateChange=function(t){if("blur"!==t){var r=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);r&&r.hoverState===Re["d"]||Object(Re["C"])(n.__edge,t)}})}function ys(e,t,n,r,i,a,o,l){var u=t.getModel(),c=e.get("edgeShape"),h=e.get("layout"),d=e.getOrient(),f=e.get(["lineStyle","curveness"]),p=e.get("edgeForkPosition"),g=u.getModel("lineStyle").getLineStyle(),m=r.__edge;if("curve"===c)t.parentNode&&t.parentNode!==n&&(m||(m=r.__edge=new Qo["a"]({shape:_s(h,d,f,i,i)})),Le["updateProps"](m,{shape:_s(h,d,f,a,o)},e));else if("polyline"===c)if("orthogonal"===h){if(t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var v=t.children,y=[],b=0;b<v.length;b++){var _=v[b].getLayout();y.push([_.x,_.y])}m||(m=r.__edge=new ps({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:d,forkPosition:p}})),Le["updateProps"](m,{shape:{parentPoint:[o.x,o.y],childPoints:y}},e)}}else 0;m&&(m.useStyle(s["defaults"]({strokeNoScale:!0,fill:null},g)),Object(Re["D"])(m,u,"lineStyle"),Object(Re["B"])(m),l.add(m))}function bs(e,t,n,r,i){var a,o=e.tree.getNodeByDataIndex(t),s=e.tree.root,l=o.parentNode===s?o:o.parentNode||o;while(a=l.getLayout(),null==a)l=l.parentNode===s?l:l.parentNode||l;var u={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};Le["removeElement"](n,{x:a.x+1,y:a.y+1},i,{cb:function(){r.remove(n),e.setItemGraphicEl(t,null)},removeOpt:u}),n.fadeOut(null,{fadeLabel:!0,animation:u});var c=e.getItemGraphicEl(l.dataIndex),h=c.__edge,d=n.__edge||(!1===l.isExpand||1===l.children.length?h:void 0),f=i.get("edgeShape"),p=i.get("layout"),g=i.get("orient"),m=i.get(["lineStyle","curveness"]);d&&("curve"===f?Le["removeElement"](d,{shape:_s(p,g,m,a,a),style:{opacity:0}},i,{cb:function(){r.remove(d)},removeOpt:u}):"polyline"===f&&"orthogonal"===i.get("layout")&&Le["removeElement"](d,{shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]]},style:{opacity:0}},i,{cb:function(){r.remove(d)},removeOpt:u}))}function _s(e,t,n,r,i){var a,o,s,l,u,c,h,d;if("radial"===e){u=r.rawX,h=r.rawY,c=i.rawX,d=i.rawY;var f=rs(u,h),p=rs(u,h+(d-h)*n),g=rs(c,d+(h-d)*n),m=rs(c,d);return{x1:f.x||0,y1:f.y||0,x2:m.x||0,y2:m.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:g.x||0,cpy2:g.y||0}}return u=r.x,h=r.y,c=i.x,d=i.y,"LR"!==t&&"RL"!==t||(a=u+(c-u)*n,o=h,s=c+(u-c)*n,l=d),"TB"!==t&&"BT"!==t||(a=u,o=h+(d-h)*n,s=c,l=d+(h-d)*n),{x1:u,y1:h,x2:c,y2:d,cpx1:a,cpy1:o,cpx2:s,cpy2:l}}var xs=gs,ws=n("xw5M"),Ss=function(){function e(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(e,t,n){"function"===typeof e&&(n=t,t=e,e=null),e=e||{},s["isString"](e)&&(e={order:e});var r,i=e.order||"preorder",a=this[e.attr||"children"];"preorder"===i&&(r=t.call(n,this));for(var o=0;!r&&o<a.length;o++)a[o].eachNode(e,t,n);"postorder"===i&&t.call(n,this)},e.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var r=this.children[n];r.updateDepthAndHeight(e+1),r.height>t&&(t=r.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,r=n.length;t<r;t++){var i=n[t].getNodeById(e);if(i)return i}},e.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,r=n.length;t<r;t++){var i=n[t].contains(e);if(i)return i}},e.prototype.getAncestors=function(e){var t=[],n=e?this:this.parentNode;while(n)t.push(n),n=n.parentNode;return t.reverse(),t},e.prototype.getAncestorsIndices=function(){var e=[],t=this;while(t)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},e.prototype.getDescendantIndices=function(){var e=[];return this.eachNode((function(t){e.push(t.dataIndex)})),e},e.prototype.getValue=function(e){var t=this.hostTree.data;return t.get(t.getDimension(e||"value"),this.dataIndex)},e.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.isAncestorOf=function(e){var t=e.parentNode;while(t){if(t===this)return!0;t=t.parentNode}return!1},e.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},e}(),Ts=function(){function e(e){this.type="tree",this._nodes=[],this.hostModel=e}return e.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},e.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},e.prototype.getNodeById=function(e){return this.root.getNodeById(e)},e.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,r=t.length;n<r;n++)t[n].dataIndex=-1;for(n=0,r=e.count();n<r;n++)t[e.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,r){var i=new e(n),a=[],o=1;function l(e,t){var n=e.value;o=Math.max(o,s["isArray"](n)?n.length:1),a.push(e);var r=new Ss(Object(ot["e"])(e.name,""),i);t?Os(r,t):i.root=r,i._nodes.push(r);var u=e.children;if(u)for(var c=0;c<u.length;c++)l(u[c],r)}l(t),i.root.updateDepthAndHeight(0);var u=Object($n["a"])(a,{coordDimensions:["value"],dimensionsCount:o}),c=new Qn["a"](u,n);return c.initData(a),r&&r(c),Object(ws["a"])({mainData:c,struct:i,structAttr:"tree"}),i.update(),i},e}();function Os(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}var Ms=Ts,Es=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return Object(v["b"])(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=e.leaves||{},r=new ei["a"](n,this,this.ecModel),i=Ms.createTree(t,this,a);function a(e){e.wrapMethod("getItemModel",(function(e,t){var n=i.getNodeByDataIndex(t);return n.children.length&&n.isExpand||(e.parentModel=r),e}))}var o=0;i.eachNode("preorder",(function(e){e.depth>o&&(o=e.depth)}));var s=e.expandAndCollapse,l=s&&e.initialTreeDepth>=0?e.initialTreeDepth:o;return i.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=l})),i.data},t.prototype.getOrient=function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,n){var r=this.getData().tree,i=r.root.children[0],a=r.getNodeByDataIndex(e),o=a.getValue(),s=a.name;while(a&&a!==i)s=a.parentNode.name+"."+s,a=a.parentNode;return Object(qi["c"])("nameValue",{name:s,value:o,noValue:isNaN(o)||null==o})},t.type="series.tree",t.layoutMode="box",t.defaultOption={zlevel:0,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",borderColor:"#c23531",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(Ae["a"]),As=Es;function Cs(e,t,n){var r,i=[e],a=[];while(r=i.pop())if(a.push(r),r.isExpand){var o=r.children;if(o.length)for(var s=0;s<o.length;s++)i.push(o[s])}while(r=a.pop())t(r,n)}function Is(e,t){var n,r=[e];while(n=r.pop())if(t(n),n.isExpand){var i=n.children;if(i.length)for(var a=i.length-1;a>=0;a--)r.push(i[a])}}function Ds(e,t){e.eachSeriesByType("tree",(function(e){Ls(e,t)}))}function Ls(e,t){var n=is(e,t);e.layoutInfo=n;var r=e.get("layout"),i=0,a=0,o=null;"radial"===r?(i=2*Math.PI,a=Math.min(n.height,n.width)/2,o=ns((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(i=n.width,a=n.height,o=ns());var s=e.getData().tree.root,l=s.children[0];if(l){Jo(s),Cs(l,es,o),s.hierNode.modifier=-l.hierNode.prelim,Is(l,ts);var u=l,c=l,h=l;Is(l,(function(e){var t=e.getLayout().x;t<u.getLayout().x&&(u=e),t>c.getLayout().x&&(c=e),e.depth>h.depth&&(h=e)}));var d=u===c?1:o(u,c)/2,f=d-u.getLayout().x,p=0,g=0,m=0,v=0;if("radial"===r)p=i/(c.getLayout().x+d+f),g=a/(h.depth-1||1),Is(l,(function(e){m=(e.getLayout().x+f)*p,v=(e.depth-1)*g;var t=rs(m,v);e.setLayout({x:t.x,y:t.y,rawX:m,rawY:v},!0)}));else{var y=e.getOrient();"RL"===y||"LR"===y?(g=a/(c.getLayout().x+d+f),p=i/(h.depth-1||1),Is(l,(function(e){v=(e.getLayout().x+f)*g,m="LR"===y?(e.depth-1)*p:i-(e.depth-1)*p,e.setLayout({x:m,y:v},!0)}))):"TB"!==y&&"BT"!==y||(p=i/(c.getLayout().x+d+f),g=a/(h.depth-1||1),Is(l,(function(e){m=(e.getLayout().x+f)*p,v="TB"===y?(e.depth-1)*g:a-(e.depth-1)*g,e.setLayout({x:m,y:v},!0)})))}}}function Ps(e){e.eachSeriesByType("tree",(function(e){var t=e.getData(),n=t.tree;n.eachNode((function(e){var n=e.getModel(),r=n.getModel("itemStyle").getItemStyle(),i=t.ensureUniqueItemVisual(e.dataIndex,"style");Object(s["extend"])(i,r)}))}))}function ks(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=e.dataIndex,r=t.getData().tree,i=r.getNodeByDataIndex(n);i.isExpand=!i.isExpand}))})),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=t.coordinateSystem,r=Yo(n,e);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom)}))}))}function Rs(e){e.registerChartView(xs),e.registerSeriesModel(As),e.registerLayout(Ds),e.registerVisual(Ps),ks(e)}function Ns(e,t,n){if(e&&s["indexOf"](t,e.type)>=0){var r=n.getData().tree.root,i=e.targetNode;if("string"===typeof i&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var a=e.targetNodeId;if(null!=a&&(i=r.getNodeById(a)))return{node:i}}}function js(e){var t=[];while(e)e=e.parentNode,e&&t.push(e);return t.reverse()}function Fs(e,t){var n=js(e);return s["indexOf"](n,t)>=0}function zs(e,t){var n=[];while(e){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}var Bs=function(){},Vs=["treemapZoomToNode","treemapRender","treemapMove"];function Gs(e){for(var t=0;t<Vs.length;t++)e.registerAction({type:Vs[t],update:"updateView"},Bs);e.registerAction({type:"treemapRootToNode",update:"updateView"},(function(e,t){function n(t,n){var r=["treemapZoomToNode","treemapRootToNode"],i=Ns(e,r,t);if(i){var a=t.getViewRoot();a&&(e.direction=Fs(a,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node)}}t.eachComponent({mainType:"series",subType:"treemap",query:e},n)}))}var Hs=n("t8P9");function Us(e){var t=e.getData(),n=t.tree,r={};n.eachNode((function(t){var n=t;while(n&&n.depth>1)n=n.parentNode;var i=Object(Hs["b"])(e.ecModel,n.name||n.dataIndex+"",r);t.setVisual("decal",i)}))}var Ws=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return Object(v["b"])(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};Xs(n);var r=e.levels||[],i=this.designatedVisualItemStyle={},a=new ei["a"]({itemStyle:i},this,t);r=e.levels=Ys(r,t);var o=s["map"](r||[],(function(e){return new ei["a"](e,a,t)}),this),l=Ms.createTree(n,this,u);function u(e){e.wrapMethod("getItemModel",(function(e,t){var n=l.getNodeByDataIndex(t),r=o[n.depth];return e.parentModel=r||a,e}))}return l.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e),a=r.getName(e);return Object(qi["c"])("nameValue",{name:a,value:i})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=zs(r,this),n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},s["extend"](this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=s["createHashMap"](),this._idIndexMapCount=0);var n=t.get(e);return null==n&&t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){Us(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25b6",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%"],ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(Ae["a"]);function Xs(e){var t=0;s["each"](e.children,(function(e){Xs(e);var n=e.value;s["isArray"](n)&&(n=n[0]),t+=n}));var n=e.value;s["isArray"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),s["isArray"](e.value)?e.value[0]=n:e.value=n}function Ys(e,t){var n=Object(ot["r"])(t.get("color")),r=Object(ot["r"])(t.get(["aria","decal","decals"]));if(n){var i,a;e=e||[],s["each"](e,(function(e){var t=new ei["a"](e),n=t.get("color"),r=t.get("decal");(t.get(["itemStyle","color"])||n&&"none"!==n)&&(i=!0),(t.get(["itemStyle","decal"])||r&&"none"!==r)&&(a=!0)}));var o=e[0]||(e[0]={});return i||(o.color=n.slice()),!a&&r&&(o.decal=r.slice()),e}}var Ks=Ws,qs=n("6S0j"),Zs=8,$s=8,Qs=5,Js=function(){function e(e){this.group=new De["a"],e.add(this.group)}return e.prototype.render=function(e,t,n,r){var i=e.getModel("breadcrumb"),a=this.group;if(a.removeAll(),i.get("show")&&n){var o=i.getModel("itemStyle"),s=o.getModel("textStyle"),l={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,l,s),this._renderContent(e,l,o,s,r),Ln["i"](a,l.pos,l.box)}},e.prototype._prepare=function(e,t,n){for(var r=e;r;r=r.parentNode){var i=Object(ot["e"])(r.getModel().get("name"),""),a=n.getTextRect(i),o=Math.max(a.width+2*Zs,t.emptyItemWidth);t.totalWidth+=o+$s,t.renderList.push({node:r,text:i,width:o})}},e.prototype._renderContent=function(e,t,n,r,i){for(var a=0,o=t.emptyItemWidth,l=e.get(["breadcrumb","height"]),u=Ln["e"](t.pos,t.box),c=t.totalWidth,h=t.renderList,d=h.length-1;d>=0;d--){var f=h[d],p=f.node,g=f.width,m=f.text;c>u.width&&(c-=g-o,g=o,m=null);var v=new Wi["a"]({shape:{points:el(a,0,g,l,d===h.length-1,0===d)},style:Object(s["defaults"])(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new at["a"]({style:{text:m,fill:r.getTextColor(),font:r.getFont()}}),textConfig:{position:"inside"},z:10,onclick:Object(s["curry"])(i,p)});v.disableLabelAnimation=!0,this.group.add(v),tl(v,e,p),a+=g+$s}},e.prototype.remove=function(){this.group.removeAll()},e}();function el(e,t,n,r,i,a){var o=[[i?e:e-Qs,t],[e+n,t],[e+n,t+r],[i?e:e-Qs,t+r]];return!a&&o.splice(2,0,[e+n+Qs,t+r/2]),!i&&o.push([e,t+r/2]),o}function tl(e,t,n){Object(ke["a"])(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.componentIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&zs(n,t)}}var nl=Js,rl=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,r,i){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:r,easing:i}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},r=0,i=this._storage.length;r<i;r++){var a=this._storage[r];a.el.animateTo(a.target,{duration:a.duration,delay:a.delay,easing:a.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();function il(){return new rl}var al=n("ekZt"),ol=n("Kidy"),sl=De["a"],ll=yt["a"],ul=3,cl="label",hl="upperLabel",dl=10,fl=1,pl=2,gl=Object(al["a"])([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),ml=function(e){var t=gl(e);return t.stroke=t.fill=t.lineWidth=null,t},vl=Object(ot["o"])(),yl=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._state="ready",n._storage=bl(),n}return Object(v["b"])(t,e),t.prototype.render=function(e,t,n,r){var i=t.findComponents({mainType:"series",subType:"treemap",query:r});if(!(Object(s["indexOf"])(i,e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var a=["treemapZoomToNode","treemapRootToNode"],o=Ns(r,a,e),l=r&&r.type,u=e.layoutInfo,c=!this._oldTree,h=this._storage,d="treemapRootToNode"===l&&o&&h?{rootNodeGroup:h.nodeGroup[o.node.getRawIndex()],direction:r.direction}:null,f=this._giveContainerGroup(u),p=this._doRender(f,e,d);c||l&&"treemapZoomToNode"!==l&&"treemapRootToNode"!==l?p.renderFinally():this._doAnimation(f,p,e,d),this._resetController(n),this._renderBreadcrumb(e,n,o)}},t.prototype._giveContainerGroup=function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new sl,this._initEvents(t),this.group.add(t)),t.x=e.x,t.y=e.y,t},t.prototype._doRender=function(e,t,n){var r=t.getData().tree,i=this._oldTree,a=bl(),o=bl(),l=this._storage,u=[];function c(e,r,i,s){return _l(t,o,l,n,a,u,e,r,i,s)}d(r.root?[r.root]:[],i&&i.root?[i.root]:[],e,r===i||!i,0);var h=f(l);return this._oldTree=r,this._storage=o,{lastsForAnimation:a,willDeleteEls:h,renderFinally:p};function d(e,t,n,r,i){function a(e){return e.getId()}function o(a,o){var s=null!=a?e[a]:null,l=null!=o?t[o]:null,u=c(s,l,n,i);u&&d(s&&s.viewChildren||[],l&&l.viewChildren||[],u,r,i+1)}r?(t=e,Object(s["each"])(e,(function(e,t){!e.isRemoved()&&o(t,t)}))):new qs["a"](t,e,a,a).add(o).update(o).remove(Object(s["curry"])(o,null)).execute()}function f(e){var t=bl();return e&&Object(s["each"])(e,(function(e,n){var r=t[n];Object(s["each"])(e,(function(e){e&&(r.push(e),vl(e).willDelete=!0)}))})),t}function p(){Object(s["each"])(h,(function(e){Object(s["each"])(e,(function(e){e.parent&&e.parent.remove(e)}))})),Object(s["each"])(u,(function(e){e.invisible=!0,e.dirty()}))}},t.prototype._doAnimation=function(e,t,n,r){if(n.get("animation")){var i=n.get("animationDurationUpdate"),a=n.get("animationEasing"),o=(Object(s["isFunction"])(i)?0:i)||0,l=(Object(s["isFunction"])(a)?null:a)||"cubicOut",u=il();Object(s["each"])(t.willDeleteEls,(function(e,t){Object(s["each"])(e,(function(e,n){if(!e.invisible){var i,a=e.parent,s=vl(a);if(r&&"drillDown"===r.direction)i=a===r.rootNodeGroup?{shape:{x:0,y:0,width:s.nodeWidth,height:s.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,h=0;s.willDelete||(c=s.nodeWidth/2,h=s.nodeHeight/2),i="nodeGroup"===t?{x:c,y:h,style:{opacity:0}}:{shape:{x:c,y:h,width:0,height:0},style:{opacity:0}}}i&&u.add(e,i,o,0,l)}}))})),Object(s["each"])(this._storage,(function(e,n){Object(s["each"])(e,(function(e,r){var i=t.lastsForAnimation[n][r],a={};i&&(e instanceof De["a"]?null!=i.oldX&&(a.x=e.x,a.y=e.y,e.x=i.oldX,e.y=i.oldY):(i.oldShape&&(a.shape=Object(s["extend"])({},e.shape),e.setShape(i.oldShape)),i.fadein?(e.setStyle("opacity",0),a.style={opacity:1}):1!==e.style.opacity&&(a.style={opacity:1})),u.add(e,a,o,0,l))}))}),this),this._state="animating",u.finished(Object(s["bind"])((function(){this._state="ready",t.renderFinally()}),this)).start()}},t.prototype._resetController=function(e){var t=this._controller;t||(t=this._controller=new Ea(e.getZr()),t.enable(this.seriesModel.get("roam")),t.on("pan",Object(s["bind"])(this._onPan,this)),t.on("zoom",Object(s["bind"])(this._onZoom,this)));var n=new Pr["a"](0,0,e.getWidth(),e.getHeight());t.setPointerChecker((function(e,t,r){return n.contain(t,r)}))},t.prototype._clearController=function(){var e=this._controller;e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if("animating"!==this._state&&(Math.abs(e.dx)>ul||Math.abs(e.dy)>ul)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY;if("animating"!==this._state){var r=this.seriesModel.getData().tree.root;if(!r)return;var i=r.getLayout();if(!i)return;var a=new Pr["a"](i.x,i.y,i.width,i.height),o=this.seriesModel.layoutInfo;t-=o.x,n-=o.y;var s=Rr["create"]();Rr["translate"](s,s,[-t,-n]),Rr["scale"](s,s,[e.scale,e.scale]),Rr["translate"](s,s,[t,n]),a.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x,y:a.y,width:a.width,height:a.height}})}},t.prototype._initEvents=function(e){var t=this;e.on("click",(function(e){if("ready"===t._state){var n=t.seriesModel.get("nodeClick",!0);if(n){var r=t.findTarget(e.offsetX,e.offsetY);if(r){var i=r.node;if(i.getLayout().isLeafRoot)t._rootToNode(r);else if("zoomToNode"===n)t._zoomToNode(r);else if("link"===n){var a=i.hostTree.data.getItemModel(i.dataIndex),o=a.get("link",!0),s=a.get("target",!0)||"blank";o&&Object(Tt["l"])(o,s)}}}}}),this)},t.prototype._renderBreadcrumb=function(e,t,n){var r=this;n||(n=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2),n||(n={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new nl(this.group))).render(e,t,n.node,(function(t){"animating"!==r._state&&(Fs(e.getViewRoot(),t)?r._rootToNode({node:t}):r._zoomToNode({node:t}))}))},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=bl(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){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 a=i.transformCoordToLocal(e,t),o=i.shape;if(!(o.x<=a[0]&&a[0]<=o.x+o.width&&o.y<=a[1]&&a[1]<=o.y+o.height))return!1;n={node:r,offsetX:a[0],offsetY:a[1]}}}),this),n},t.type="treemap",t}(vt["a"]);function bl(){return{nodeGroup:[],background:[],content:[]}}function _l(e,t,n,r,i,a,o,l,u,c){if(o){var h=o.getLayout(),d=e.getData(),f=o.getModel();if(d.setItemGraphicEl(o.dataIndex,null),h&&h.isInView){var p=h.width,g=h.height,m=h.borderWidth,v=h.invisible,y=o.getRawIndex(),b=l&&l.getRawIndex(),_=o.viewChildren,x=h.upperHeight,w=_&&_.length,S=f.getModel("itemStyle"),T=f.getModel(["emphasis","itemStyle"]),O=f.getModel(["blur","itemStyle"]),M=f.getModel(["select","itemStyle"]),E=S.get("borderRadius")||0,A=z("nodeGroup",sl);if(A){if(u.add(A),A.x=h.x||0,A.y=h.y||0,A.markRedraw(),vl(A).nodeWidth=p,vl(A).nodeHeight=g,h.isAboveViewRoot)return A;var C=z("background",ll,c,fl);C&&k(A,C,w&&h.upperLabelHeight);var I=f.get(["emphasis","focus"]),D=f.get(["emphasis","blurScope"]),L="ancestor"===I?o.getAncestorsIndices():"descendant"===I?o.getDescendantIndices():null;if(w)Object(Re["s"])(A)&&Object(Re["A"])(A,!1),C&&(Object(Re["A"])(C,!0),d.setItemGraphicEl(o.dataIndex,C),Object(Re["l"])(C,L||I,D));else{var P=z("content",ll,c,pl);P&&R(A,P),C&&Object(Re["s"])(C)&&Object(Re["A"])(C,!1),Object(Re["A"])(A,!0),d.setItemGraphicEl(o.dataIndex,A),Object(Re["l"])(A,L||I,D)}return A}}}function k(t,n,r){var i=Object(ke["a"])(n);if(i.dataIndex=o.dataIndex,i.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:p,height:g,r:E}),v)N(n);else{n.invisible=!1;var a=o.getVisual("style"),s=a.stroke,l=ml(S);l.fill=s;var u=gl(T);u.fill=T.get("borderColor");var c=gl(O);c.fill=O.get("borderColor");var h=gl(M);if(h.fill=M.get("borderColor"),r){var d=p-2*m;j(n,s,d,x,a.opacity,{x:m,y:0,width:d,height:x})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=c,n.ensureState("select").style=h,Object(Re["B"])(n)}t.add(n)}function R(t,n){var r=Object(ke["a"])(n);r.dataIndex=o.dataIndex,r.seriesIndex=e.seriesIndex;var i=Math.max(p-2*m,0),a=Math.max(g-2*m,0);if(n.culling=!0,n.setShape({x:m,y:m,width:i,height:a,r:E}),v)N(n);else{n.invisible=!1;var s=o.getVisual("style"),l=s.fill,u=ml(S);u.fill=l,u.decal=s.decal;var c=gl(T),h=gl(O),d=gl(M);j(n,l,i,s.opacity,a),n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=h,n.ensureState("select").style=d,Object(Re["B"])(n)}t.add(n)}function N(e){!e.invisible&&a.push(e)}function j(t,n,r,i,a,l){var u=f.getModel(l?hl:cl),c=Object(s["retrieve"])(e.getFormattedLabel(o.dataIndex,"normal",null,null,u.get("formatter")),Object(ot["e"])(f.get("name"),null));if(!l&&h.isLeafRoot){var d=e.get("drillDownIcon",!0);c=d?d+" "+c:c}var p=u.getShallow("show");Object(Be["g"])(t,Object(Be["e"])(f,l?hl:cl),{defaultText:p?c:null,inheritColor:n,defaultOpacity:r,labelFetcher:e,labelDataIndex:o.dataIndex});var g=t.getTextContent(),m=g.style,v=Object(s["normalizeCssArray"])(m.padding||0);l&&(t.setTextConfig({layoutRect:l}),g.disableLabelLayout=!0),g.beforeUpdate=function(){var e=Math.max((l?l.width:t.shape.width)-v[1]-v[3],0),n=Math.max((l?l.height:t.shape.height)-v[0]-v[2],0);m.width===e&&m.height===n||g.setStyle({width:e,height:n})},m.truncateMinChar=2,m.lineOverflow="truncate",F(m,l,h);var y=g.getState("emphasis");F(y?y.style:null,l,h)}function F(t,n,r){var i=t?t.text:null;if(!n&&r.isLeafRoot&&null!=i){var a=e.get("drillDownIcon",!0);t.text=a?a+" "+i:i}}function z(e,r,a,o){var s=null!=b&&n[e][b],l=i[e];return s?(n[e][b]=null,B(l,s)):v||(s=new r,s instanceof ol["c"]&&(s.z=xl(a,o)),V(l,s)),t[e][y]=s}function B(e,t){var n=e[y]={};t instanceof sl?(n.oldX=t.x,n.oldY=t.y):n.oldShape=Object(s["extend"])({},t.shape)}function V(e,t){var n=e[y]={},a=o.parentNode,s=t instanceof De["a"];if(a&&(!r||"drillDown"===r.direction)){var l=0,u=0,c=i.background[a.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 xl(e,t){var n=e*dl+t;return(n-1)/n}var wl=yl,Sl=s["each"],Tl=s["isObject"],Ol=-1,Ml=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=s["clone"](t);this.type=r,this.mappingMethod=n,this._normalizeData=Fl[n];var a=e.visualHandlers[r];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],"piecewise"===n?(Cl(i),El(i)):"category"===n?i.categories?Al(i):Cl(i,!0):(s["assert"]("linear"!==n||i.dataExtent),Cl(i))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return s["bind"](this._normalizeData,this)},e.listVisualTypes=function(){return s["keys"](e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){s["isObject"](e)?s["each"](e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var i,a=s["isArray"](t)?[]:s["isObject"](t)?{}:(i=!0,null);return e.eachVisual(t,(function(e,t){var o=n.call(r,e,t);i?a=o:a[t]=o})),a},e.retrieveVisuals=function(t){var n,r={};return t&&Sl(e.visualHandlers,(function(e,i){t.hasOwnProperty(i)&&(r[i]=t[i],n=!0)})),n?r:null},e.prepareVisualTypes=function(e){if(s["isArray"](e))e=e.slice();else{if(!Tl(e))return[];var t=[];Sl(e,(function(e,n){t.push(n)})),e=t}return e.sort((function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1})),e},e.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},e.findPieceIndex=function(e,t,n){for(var r,i=1/0,a=0,o=t.length;a<o;a++){var s=t[a].value;if(null!=s){if(s===e||"string"===typeof s&&s===e+"")return a;n&&h(s,a)}}for(a=0,o=t.length;a<o;a++){var l=t[a],u=l.interval,c=l.close;if(u){if(u[0]===-1/0){if(zl(c[1],e,u[1]))return a}else if(u[1]===1/0){if(zl(c[0],u[0],e))return a}else if(zl(c[0],u[0],e)&&zl(c[1],e,u[1]))return a;n&&h(u[0],a),n&&h(u[1],a)}}if(n)return e===1/0?t.length-1:e===-1/0?0:r;function h(t,n){var a=Math.abs(t-e);a<i&&(i=a,r=n)}},e.visualHandlers={color:{applyVisual:Ll("color"),getColorMapper:function(){var e=this.option;return s["bind"]("category"===e.mappingMethod?function(e,t){return!t&&(e=this._normalizeData(e)),Pl.call(this,e)}:function(t,n,r){var i=!!r;return!n&&(t=this._normalizeData(t)),r=K["fastLerp"](t,e.parsedVisual,r),i?r:K["stringify"](r,"rgba")},this)},_normalizedToVisual:{linear:function(e){return K["stringify"](K["fastLerp"](e,this.option.parsedVisual),"rgba")},category:Pl,piecewise:function(e,t){var n=Nl.call(this,t);return null==n&&(n=K["stringify"](K["fastLerp"](e,this.option.parsedVisual),"rgba")),n},fixed:kl}},colorHue:Il((function(e,t){return K["modifyHSL"](e,t)})),colorSaturation:Il((function(e,t){return K["modifyHSL"](e,null,t)})),colorLightness:Il((function(e,t){return K["modifyHSL"](e,null,null,t)})),colorAlpha:Il((function(e,t){return K["modifyAlpha"](e,t)})),decal:{applyVisual:Ll("decal"),_normalizedToVisual:{linear:null,category:Pl,piecewise:null,fixed:null}},opacity:{applyVisual:Ll("opacity"),_normalizedToVisual:Rl([0,1])},liftZ:{applyVisual:Ll("liftZ"),_normalizedToVisual:{linear:kl,category:kl,piecewise:kl,fixed:kl}},symbol:{applyVisual:function(e,t,n){var r=this.mapValueToVisual(e);n("symbol",r)},_normalizedToVisual:{linear:Dl,category:Pl,piecewise:function(e,t){var n=Nl.call(this,t);return null==n&&(n=Dl.call(this,e)),n},fixed:kl}},symbolSize:{applyVisual:Ll("symbolSize"),_normalizedToVisual:Rl([0,1])}},e}();function El(e){var t=e.pieceList;e.hasSpecialVisual=!1,s["each"](t,(function(t,n){t.originIndex=n,null!=t.visual&&(e.hasSpecialVisual=!0)}))}function Al(e){var t=e.categories,n=e.categoryMap={},r=e.visual;if(Sl(t,(function(e,t){n[e]=t})),!s["isArray"](r)){var i=[];s["isObject"](r)?Sl(r,(function(e,t){var r=n[t];i[null!=r?r:Ol]=e})):i[Ol]=r,r=jl(e,i)}for(var a=t.length-1;a>=0;a--)null==r[a]&&(delete n[t[a]],t.pop())}function Cl(e,t){var n=e.visual,r=[];s["isObject"](n)?Sl(n,(function(e){r.push(e)})):null!=n&&r.push(n);var i={color:1,symbol:1};t||1!==r.length||i.hasOwnProperty(e.type)||(r[1]=r[0]),jl(e,r)}function Il(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r("color",e(n("color"),i))},_normalizedToVisual:Rl([0,1])}}function Dl(e){var t=this.option.visual;return t[Math.round(Object(Ne["k"])(e,[0,1],[0,t.length-1],!0))]||{}}function Ll(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function Pl(e){var t=this.option.visual;return t[this.option.loop&&e!==Ol?e%t.length:e]}function kl(){return this.option.visual[0]}function Rl(e){return{linear:function(t){return Object(Ne["k"])(t,e,this.option.visual,!0)},category:Pl,piecewise:function(t,n){var r=Nl.call(this,n);return null==r&&(r=Object(Ne["k"])(t,e,this.option.visual,!0)),r},fixed:kl}}function Nl(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=Ml.findPieceIndex(e,n),i=n[r];if(i&&i.visual)return i.visual[this.type]}}function jl(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=s["map"](t,(function(e){return K["parse"](e)}))),t}var Fl={linear:function(e){return Object(Ne["k"])(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=Ml.findPieceIndex(e,t,!0);if(null!=n)return Object(Ne["k"])(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?Ol:t},fixed:s["noop"]};function zl(e,t,n){return e?t<=n:t<n}var Bl=Ml,Vl="itemStyle",Gl=Object(ot["o"])(),Hl={seriesType:"treemap",reset:function(e){var t=e.getData().tree,n=t.root;n.isRemoved()||Ul(n,{},e.getViewRoot().getAncestors(),e)}};function Ul(e,t,n,r){var i=e.getModel(),a=e.getLayout(),o=e.hostTree.data;if(a&&!a.invisible&&a.isInView){var l,u=i.getModel(Vl),c=Wl(u,t,r),h=o.ensureUniqueItemVisual(e.dataIndex,"style"),d=u.get("borderColor"),f=u.get("borderColorSaturation");null!=f&&(l=Xl(c),d=Yl(f,l)),h.stroke=d;var p=e.viewChildren;if(p&&p.length){var g=ql(e,i,a,u,c,p);Object(s["each"])(p,(function(e,t){if(e.depth>=n.length||e===n[e.depth]){var a=$l(i,c,e,t,g,r);Ul(e,a,n,r)}}))}else l=Xl(c),h.fill=l}}function Wl(e,t,n){var r=Object(s["extend"])({},t),i=n.designatedVisualItemStyle;return Object(s["each"])(["color","colorAlpha","colorSaturation"],(function(n){i[n]=t[n];var a=e.get(n);i[n]=null,null!=a&&(r[n]=a)})),r}function Xl(e){var t=Kl(e,"color");if(t){var n=Kl(e,"colorAlpha"),r=Kl(e,"colorSaturation");return r&&(t=Object(K["modifyHSL"])(t,null,null,r)),n&&(t=Object(K["modifyAlpha"])(t,n)),t}}function Yl(e,t){return null!=t?Object(K["modifyHSL"])(t,null,null,e):null}function Kl(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function ql(e,t,n,r,i,a){if(a&&a.length){var o=Zl(t,"color")||null!=i.color&&"none"!==i.color&&(Zl(t,"colorAlpha")||Zl(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=n.dataExtent.slice();null!=s&&s<u[0]&&(u[0]=s),null!=l&&l>u[1]&&(u[1]=l);var c=t.get("colorMappingBy"),h={type:o.name,dataExtent:u,visual:o.range};"color"!==h.type||"index"!==c&&"id"!==c?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var d=new Bl(h);return Gl(d).drColorMappingBy=c,d}}}function Zl(e,t){var n=e.get(t);return Object(s["isArray"])(n)&&n.length?{name:t,range:n}:null}function $l(e,t,n,r,i,a){var o=Object(s["extend"])({},t);if(i){var l=i.type,u="color"===l&&Gl(i).drColorMappingBy,c="index"===u?r:"id"===u?a.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));o[l]=i.mapValueToVisual(c)}return o}var Ql=Math.max,Jl=Math.min,eu=s["retrieve"],tu=s["each"],nu=["itemStyle","borderWidth"],ru=["itemStyle","gapWidth"],iu=["upperLabel","show"],au=["upperLabel","height"],ou={seriesType:"treemap",reset:function(e,t,n,r){var i=n.getWidth(),a=n.getHeight(),o=e.option,l=Ln["g"](e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),u=o.size||[],c=Object(Ne["o"])(eu(l.width,u[0]),i),h=Object(Ne["o"])(eu(l.height,u[1]),a),d=r&&r.type,f=["treemapZoomToNode","treemapRootToNode"],p=Ns(r,f,e),g="treemapRender"===d||"treemapMove"===d?r.rootRect:null,m=e.getViewRoot(),v=js(m);if("treemapMove"!==d){var y="treemapZoomToNode"===d?pu(e,p,m,c,h):g?[g.width,g.height]:[c,h],b=o.sort;b&&"asc"!==b&&"desc"!==b&&(b="desc");var _={squareRatio:o.squareRatio,sort:b,leafDepth:o.leafDepth};m.hostTree.clearLayouts();var x={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};m.setLayout(x),su(m,_,!1,0),x=m.getLayout(),tu(v,(function(e,t){var n=(v[t+1]||m).getValue();e.setLayout(s["extend"]({dataExtent:[n,n],borderWidth:0,upperHeight:0},x))}))}var w=e.getData().tree.root;w.setLayout(gu(l,g,p),!0),e.setLayoutInfo(l),mu(w,new Pr["a"](-l.x,-l.y,i,a),v,m,0)}};function su(e,t,n,r){var i,a;if(!e.isRemoved()){var o=e.getLayout();i=o.width,a=o.height;var s=e.getModel(),l=s.get(nu),u=s.get(ru)/2,c=vu(s),h=Math.max(l,c),d=l-u,f=h-u;e.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:c},!0),i=Ql(i-2*d,0),a=Ql(a-d-f,0);var p=i*a,g=lu(e,s,p,t,n,r);if(g.length){var m={x:d,y:f,width:i,height:a},v=Jl(i,a),y=1/0,b=[];b.area=0;for(var _=0,x=g.length;_<x;){var w=g[_];b.push(w),b.area+=w.getLayout().area;var S=du(b,v,t.squareRatio);S<=y?(_++,y=S):(b.area-=b.pop().getLayout().area,fu(b,v,m,u,!1),v=Jl(m.width,m.height),b.length=b.area=0,y=1/0)}if(b.length&&fu(b,v,m,u,!0),!n){var T=s.get("childrenVisibleMin");null!=T&&p<T&&(n=!0)}for(_=0,x=g.length;_<x;_++)su(g[_],t,n,r+1)}}}function lu(e,t,n,r,i,a){var o=e.children||[],l=r.sort;"asc"!==l&&"desc"!==l&&(l=null);var u=null!=r.leafDepth&&r.leafDepth<=a;if(i&&!u)return e.viewChildren=[];o=s["filter"](o,(function(e){return!e.isRemoved()})),cu(o,l);var c=hu(t,o,l);if(0===c.sum)return e.viewChildren=[];if(c.sum=uu(t,n,c.sum,l,o),0===c.sum)return e.viewChildren=[];for(var h=0,d=o.length;h<d;h++){var f=o[h].getValue()/c.sum*n;o[h].setLayout({area:f})}return u&&(o.length&&e.setLayout({isLeafRoot:!0},!0),o.length=0),e.viewChildren=o,e.setLayout({dataExtent:c.dataExtent},!0),o}function uu(e,t,n,r,i){if(!r)return n;for(var a=e.get("visibleMin"),o=i.length,s=o,l=o-1;l>=0;l--){var u=i["asc"===r?o-l-1:l].getValue();u/n*t<a&&(s=l,n-=u)}return"asc"===r?i.splice(0,o-s):i.splice(s,o-s),n}function cu(e,t){return t&&e.sort((function(e,n){var r="asc"===t?e.getValue()-n.getValue():n.getValue()-e.getValue();return 0===r?"asc"===t?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:r})),e}function hu(e,t,n){for(var r=0,i=0,a=t.length;i<a;i++)r+=t[i].getValue();var o,s=e.get("visualDimension");return t&&t.length?"value"===s&&n?(o=[t[t.length-1].getValue(),t[0].getValue()],"asc"===n&&o.reverse()):(o=[1/0,-1/0],tu(t,(function(e){var t=e.getValue(s);t<o[0]&&(o[0]=t),t>o[1]&&(o[1]=t)}))):o=[NaN,NaN],{sum:r,dataExtent:o}}function du(e,t,n){for(var r=0,i=1/0,a=0,o=void 0,s=e.length;a<s;a++)o=e[a].getLayout().area,o&&(o<i&&(i=o),o>r&&(r=o));var l=e.area*e.area,u=t*t*n;return l?Ql(u*r/l,l/(u*i)):1/0}function fu(e,t,n,r,i){var a=t===n.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=n[s[a]],c=t?e.area/t:0;(i||c>n[l[o]])&&(c=n[l[o]]);for(var h=0,d=e.length;h<d;h++){var f=e[h],p={},g=c?f.getLayout().area/c:0,m=p[l[o]]=Ql(c-2*r,0),v=n[s[a]]+n[l[a]]-u,y=h===d-1||v<g?v:g,b=p[l[a]]=Ql(y-2*r,0);p[s[o]]=n[s[o]]+Jl(r,m/2),p[s[a]]=u+Jl(r,b/2),u+=y,f.setLayout(p,!0)}n[s[o]]+=c,n[l[o]]-=c}function pu(e,t,n,r,i){var a,o=(t||{}).node,s=[r,i];if(!o||o===n)return s;var l=r*i,u=l*e.option.zoomToNodeRatio;while(a=o.parentNode){for(var c=0,h=a.children,d=0,f=h.length;d<f;d++)c+=h[d].getValue();var p=o.getValue();if(0===p)return s;u*=c/p;var g=a.getModel(),m=g.get(nu),v=Math.max(m,vu(g));u+=4*m*m+(3*m+v)*Math.pow(u,.5),u>Ne["a"]&&(u=Ne["a"]),o=a}u<l&&(u=l);var y=Math.pow(u/l,.5);return[r*y,i*y]}function gu(e,t,n){if(t)return{x:t.x,y:t.y};var r={x:0,y:0};if(!n)return r;var i=n.node,a=i.getLayout();if(!a)return r;var o=[a.width/2,a.height/2],s=i;while(s){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:e.width/2-o[0],y:e.height/2-o[1]}}function mu(e,t,n,r,i){var a=e.getLayout(),o=n[i],s=o&&o===e;if(!(o&&!s||i===n.length&&e!==r)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(a),isAboveViewRoot:s},!0);var l=new Pr["a"](t.x-a.x,t.y-a.y,t.width,t.height);tu(e.viewChildren||[],(function(e){mu(e,l,n,r,i+1)}))}}function vu(e){return e.get(iu)?e.get(au):0}function yu(e){e.registerSeriesModel(Ks),e.registerChartView(wl),e.registerVisual(Hl),e.registerLayout(ou),Gs(e)}function bu(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),r=e.getGraph(),i=r.data,a=n.mapArray(n.getName);i.filterSelf((function(e){var n=i.getItemModel(e),r=n.getShallow("category");if(null!=r){"number"===typeof r&&(r=a[r]);for(var o=0;o<t.length;o++)if(!t[o].isSelected(r))return!1}return!0}))}))}function _u(e){var t={};e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),r=e.getData(),i={};n.each((function(r){var a=n.getName(r);i["ec-"+a]=r;var o=n.getItemModel(r),s=o.getModel("itemStyle").getItemStyle();s.fill||(s.fill=e.getColorFromPalette(a,t)),n.setItemVisual(r,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++){var c=o.getShallow(l[u],!0);null!=c&&n.setItemVisual(r,l[u],c)}})),n.count()&&r.each((function(e){var t=r.getItemModel(e),a=t.getShallow("category");if(null!=a){"string"===typeof a&&(a=i["ec-"+a]);var o=n.getItemVisual(a,"style"),l=r.ensureUniqueItemVisual(e,"style");Object(s["extend"])(l,o);for(var u=["symbol","symbolSize","symbolKeepAspect"],c=0;c<u.length;c++)r.setItemVisual(e,u[c],n.getItemVisual(a,u[c]))}}))}))}function xu(e){return e instanceof Array||(e=[e,e]),e}function wu(e){e.eachSeriesByType("graph",(function(e){var t=e.getGraph(),n=e.getEdgeData(),r=xu(e.get("edgeSymbol")),i=xu(e.get("edgeSymbolSize"));n.setVisual("fromSymbol",r&&r[0]),n.setVisual("toSymbol",r&&r[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each((function(e){var r=n.getItemModel(e),i=t.getEdgeByIndex(e),a=xu(r.getShallow("symbol",!0)),o=xu(r.getShallow("symbolSize",!0)),l=r.getModel("lineStyle").getLineStyle(),u=n.ensureUniqueItemVisual(e,"style");switch(Object(s["extend"])(u,l),u.stroke){case"source":var c=i.node1.getVisual("style");u.stroke=c&&c.fill;break;case"target":c=i.node2.getVisual("style");u.stroke=c&&c.fill;break}a[0]&&i.setVisual("fromSymbol",a[0]),a[1]&&i.setVisual("toSymbol",a[1]),o[0]&&i.setVisual("fromSymbolSize",o[0]),o[1]&&i.setVisual("toSymbolSize",o[1])}))}))}var Su="--\x3e",Tu=function(e){return e.get("autoCurveness")||null},Ou=function(e,t){var n=Tu(e),r=20,i=[];if("number"===typeof n)r=n;else if(s["isArray"](n))return void(e.__curvenessList=n);t>r&&(r=t);var a=r%2?r+2:r+3;i=[];for(var o=0;o<a;o++)i.push((o%2?o+1:o)/10*(o%2?-1:1));e.__curvenessList=i},Mu=function(e,t,n){var r=[e.id,e.dataIndex].join("."),i=[t.id,t.dataIndex].join(".");return[n.uid,r,i].join(Su)},Eu=function(e){var t=e.split(Su);return[t[0],t[2],t[1]].join(Su)},Au=function(e,t){var n=Mu(e.node1,e.node2,t);return t.__edgeMap[n]},Cu=function(e,t){var n=Iu(Mu(e.node1,e.node2,t),t),r=Iu(Mu(e.node2,e.node1,t),t);return n+r},Iu=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function Du(e){Tu(e)&&(e.__curvenessList=[],e.__edgeMap={},Ou(e))}function Lu(e,t,n,r){if(Tu(n)){var i=Mu(e,t,n),a=n.__edgeMap,o=a[Eu(i)];a[i]&&!o?a[i].isForward=!0:o&&a[i]&&(o.isForward=!0,a[i].isForward=!1),a[i]=a[i]||[],a[i].push(r)}}function Pu(e,t,n,r){var i=Tu(t),a=s["isArray"](i);if(!i)return null;var o=Au(e,t);if(!o)return null;for(var l=-1,u=0;u<o.length;u++)if(o[u]===n){l=u;break}var c=Cu(e,t);Ou(t,c),e.lineStyle=e.lineStyle||{};var h=Mu(e.node1,e.node2,t),d=t.__curvenessList,f=a||c%2?0:1;if(o.isForward)return d[f+l];var p=Eu(h),g=Iu(p,t),m=d[l+g+f];return r?a?i&&0===i[0]?(g+f)%2?m:-m:((g%2?0:1)+f)%2?m:-m:(g+f)%2?m:-m:d[l+g+f]}function ku(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var n=e.getGraph();n.eachNode((function(e){var t=e.getModel();e.setLayout([+t.get("x"),+t.get("y")])})),Ru(n,e)}}function Ru(e,t){e.eachEdge((function(e,n){var r=s["retrieve3"](e.getModel().get(["lineStyle","curveness"]),-Pu(e,t,n,!0),0),i=Nr["clone"](e.node1.getLayout()),a=Nr["clone"](e.node2.getLayout()),o=[i,a];+r&&o.push([(i[0]+a[0])/2-(i[1]-a[1])*r,(i[1]+a[1])/2-(a[0]-i[0])*r]),e.setLayout(o)}))}function Nu(e,t){e.eachSeriesByType("graph",(function(e){var t=e.get("layout"),n=e.coordinateSystem;if(n&&"view"!==n.type){var r=e.getData(),i=[];Object(s["each"])(n.dimensions,(function(e){i=i.concat(r.mapDimensionsAll(e))}));for(var a=0;a<r.count();a++){for(var o=[],l=!1,u=0;u<i.length;u++){var c=r.get(i[u],a);isNaN(c)||(l=!0),o.push(c)}l?r.setItemLayout(a,n.dataToPoint(o)):r.setItemLayout(a,[NaN,NaN])}Ru(r.graph,e)}else t&&"none"!==t||ku(e)}))}function ju(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=e.option.nodeScaleRatio,r=t.scaleX,i=t.getZoom(),a=(i-1)*n+1;return a/r}function Fu(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var zu=Math.PI,Bu=[];function Vu(e,t){var n=e.coordinateSystem;if(!n||"view"===n.type){var r=n.getBoundingRect(),i=e.getData(),a=i.graph,o=r.width/2+r.x,l=r.height/2+r.y,u=Math.min(r.width,r.height)/2,c=i.count();i.setLayout({cx:o,cy:l}),c&&(Gu[t](e,a,i,u,o,l,c),a.eachEdge((function(t,n){var r,i=s["retrieve3"](t.getModel().get(["lineStyle","curveness"]),Pu(t,e,n),0),a=Nr["clone"](t.node1.getLayout()),u=Nr["clone"](t.node2.getLayout()),c=(a[0]+u[0])/2,h=(a[1]+u[1])/2;+i&&(i*=3,r=[o*i+c*(1-i),l*i+h*(1-i)]),t.setLayout([a,u,r])})))}}var Gu={value:function(e,t,n,r,i,a,o){var s=0,l=n.getSum("value"),u=2*Math.PI/(l||o);t.eachNode((function(e){var t=e.getValue("value"),n=u*(l?t:1)/2;s+=n,e.setLayout([r*Math.cos(s)+i,r*Math.sin(s)+a]),s+=n}))},symbolSize:function(e,t,n,r,i,a,o){var s=0;Bu.length=o;var l=ju(e);t.eachNode((function(e){var t=Fu(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=l;var n=Math.asin(t/2/r);isNaN(n)&&(n=zu/2),Bu[e.dataIndex]=n,s+=2*n}));var u=(2*zu-s)/o/2,c=0;t.eachNode((function(e){var t=u+Bu[e.dataIndex];c+=t,e.setLayout([r*Math.cos(c)+i,r*Math.sin(c)+a]),c+=t}))}};function Hu(e){e.eachSeriesByType("graph",(function(e){"circular"===e.get("layout")&&Vu(e,"symbolSize")}))}var Uu=Nr["scaleAndAdd"];function Wu(e,t,n){for(var r=e,i=t,a=n.rect,o=a.width,s=a.height,l=[a.x+o/2,a.y+s/2],u=null==n.gravity?.1:n.gravity,c=0;c<r.length;c++){var h=r[c];h.p||(h.p=Nr["create"](o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=Nr["clone"](h.p),h.edges=null}var d,f,p=null==n.friction?.6:n.friction,g=p;return{warmUp:function(){g=.8*p},setFixed:function(e){r[e].fixed=!0},setUnfixed:function(e){r[e].fixed=!1},beforeStep:function(e){d=e},afterStep:function(e){f=e},step:function(e){d&&d(r,i);for(var t=[],n=r.length,a=0;a<i.length;a++){var o=i[a];if(!o.ignoreForceLayout){var s=o.n1,c=o.n2;Nr["sub"](t,c.p,s.p);var h=Nr["len"](t)-o.d,p=c.w/(s.w+c.w);isNaN(p)&&(p=0),Nr["normalize"](t,t),!s.fixed&&Uu(s.p,s.p,t,p*h*g),!c.fixed&&Uu(c.p,c.p,t,-(1-p)*h*g)}}for(a=0;a<n;a++){var m=r[a];m.fixed||(Nr["sub"](t,l,m.p),Uu(m.p,m.p,t,u*g))}for(a=0;a<n;a++){s=r[a];for(var v=a+1;v<n;v++){c=r[v];Nr["sub"](t,c.p,s.p);h=Nr["len"](t);0===h&&(Nr["set"](t,Math.random()-.5,Math.random()-.5),h=1);var y=(s.rep+c.rep)/h/h;!s.fixed&&Uu(s.pp,s.pp,t,y),!c.fixed&&Uu(c.pp,c.pp,t,-y)}}var b=[];for(a=0;a<n;a++){m=r[a];m.fixed||(Nr["sub"](b,m.p,m.pp),Uu(m.p,m.p,b,g),Nr["copy"](m.pp,m.p))}g*=.992;var _=g<.01;f&&f(r,i,_),e&&e(_)}}}function Xu(e){e.eachSeriesByType("graph",(function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var n=e.preservedPoints||{},r=e.getGraph(),i=r.data,a=r.edgeData,o=e.getModel("force"),l=o.get("initLayout");e.preservedPoints?i.each((function(e){var t=i.getId(e);i.setItemLayout(e,n[t]||[NaN,NaN])})):l&&"none"!==l?"circular"===l&&Vu(e,"value"):ku(e);var u=i.getDataExtent("value"),c=a.getDataExtent("value"),h=o.get("repulsion"),d=o.get("edgeLength"),f=s["isArray"](h)?h:[h,h],p=s["isArray"](d)?d:[d,d];p=[p[1],p[0]];var g=i.mapArray("value",(function(e,t){var n=i.getItemLayout(t),r=Object(Ne["k"])(e,u,f);return isNaN(r)&&(r=(f[0]+f[1])/2),{w:r,rep:r,fixed:i.getItemModel(t).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),m=a.mapArray("value",(function(t,n){var i=r.getEdgeByIndex(n),a=Object(Ne["k"])(t,c,p);isNaN(a)&&(a=(p[0]+p[1])/2);var o=i.getModel(),l=s["retrieve3"](i.getModel().get(["lineStyle","curveness"]),-Pu(i,e,n,!0),0);return{n1:g[i.node1.dataIndex],n2:g[i.node2.dataIndex],d:a,curveness:l,ignoreForceLayout:o.get("ignoreForceLayout")}})),v=t.getBoundingRect(),y=Wu(g,m,{rect:v,gravity:o.get("gravity"),friction:o.get("friction")});y.beforeStep((function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].fixed&&Nr["copy"](e[n].p,r.getNodeByIndex(n).getLayout())})),y.afterStep((function(e,t,a){for(var o=0,s=e.length;o<s;o++)e[o].fixed||r.getNodeByIndex(o).setLayout(e[o].p),n[i.getId(o)]=e[o].p;for(o=0,s=t.length;o<s;o++){var l=t[o],u=r.getEdgeByIndex(o),c=l.n1.p,h=l.n2.p,d=u.getLayout();d=d?d.slice():[],d[0]=d[0]||[],d[1]=d[1]||[],Nr["copy"](d[0],c),Nr["copy"](d[1],h),+l.curveness&&(d[2]=[(c[0]+h[0])/2-(c[1]-h[1])*l.curveness,(c[1]+h[1])/2-(h[0]-c[0])*l.curveness]),u.setLayout(d)}})),e.forceLayout=y,e.preservedPoints=n,y.step()}else e.forceLayout=null}))}function Yu(e,t,n){var r=Object(s["extend"])(e.getBoxLayoutParams(),{aspect:n});return Object(Ln["g"])(r,{width:t.getWidth(),height:t.getHeight()})}function Ku(e,t){var n=[];return e.eachSeriesByType("graph",(function(e){var r=e.get("coordinateSystem");if(!r||"view"===r){var i=e.getData(),a=i.mapArray((function(e){var t=i.getItemModel(e);return[+t.get("x"),+t.get("y")]})),o=[],s=[];ds["d"](a,o,s),s[0]-o[0]===0&&(s[0]+=1,o[0]-=1),s[1]-o[1]===0&&(s[1]+=1,o[1]-=1);var l=(s[0]-o[0])/(s[1]-o[1]),u=Yu(e,t,l);isNaN(l)&&(o=[u.x,u.y],s=[u.x+u.width,u.y+u.height]);var c=s[0]-o[0],h=s[1]-o[1],d=u.width,f=u.height,p=e.coordinateSystem=new No;p.zoomLimit=e.get("scaleLimit"),p.setBoundingRect(o[0],o[1],c,h),p.setViewRect(u.x,u.y,d,f),p.setCenter(e.get("center")),p.setZoom(e.get("zoom")),n.push(p)}})),n}var qu=Jr["a"].prototype,Zu=Qo["a"].prototype,$u=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}Object(v["b"])(t,e)})($u);function Qu(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var Ju=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-line",n}return Object(v["b"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new $u},t.prototype.buildPath=function(e,t){Qu(t)?qu.buildPath.call(this,e,t):Zu.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return Qu(this.shape)?qu.pointAt.call(this,e):Zu.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,n=Qu(t)?[t.x2-t.x1,t.y2-t.y1]:Zu.tangentAt.call(this,e);return Nr["normalize"](n,n)},t}(l["b"]),ec=Ju,tc=["fromSymbol","toSymbol"];function nc(e){return"_"+e+"Type"}function rc(e,t,n){var r=t.getItemVisual(n,e);if(r&&"none"!==r){var i=t.getItemVisual(n,e+"Size"),a=t.getItemVisual(n,e+"Rotate"),o=s["isArray"](i)?i:[i,i],l=Pe["a"](r,-o[0]/2,-o[1]/2,o[0],o[1]);return l.__specifiedRotation=null==a||isNaN(a)?void 0:+a*Math.PI/180||0,l.name=e,l}}function ic(e){var t=new ec({name:"line",subPixelOptimize:!0});return ac(t.shape,e),t}function ac(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}var oc=function(e){function t(t,n,r){var i=e.call(this)||this;return i._createLine(t,n,r),i}return Object(v["b"])(t,e),t.prototype._createLine=function(e,t,n){var r=e.hostModel,i=e.getItemLayout(t),a=ic(i);a.shape.percent=0,Le["initProps"](a,{shape:{percent:1}},r,t),this.add(a),s["each"](tc,(function(n){var r=rc(n,e,t);this.add(r),this[nc(n)]=e.getItemVisual(t,n)}),this),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel,i=this.childOfName("line"),a=e.getItemLayout(t),o={shape:{}};ac(o.shape,a),Le["updateProps"](i,o,r,t),s["each"](tc,(function(n){var r=e.getItemVisual(t,n),i=nc(n);if(this[i]!==r){this.remove(this.childOfName(n));var a=rc(n,e,t);this.add(a)}this[i]=r}),this),this._updateCommonStl(e,t,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,t,n){var r=e.hostModel,i=this.childOfName("line"),a=n&&n.emphasisLineStyle,o=n&&n.blurLineStyle,l=n&&n.selectLineStyle,u=n&&n.labelStatesModels;if(!n||e.hasItemOption){var c=e.getItemModel(t);a=c.getModel(["emphasis","lineStyle"]).getLineStyle(),o=c.getModel(["blur","lineStyle"]).getLineStyle(),l=c.getModel(["select","lineStyle"]).getLineStyle(),u=Object(Be["e"])(c)}var h=e.getItemVisual(t,"style"),d=h.stroke;i.useStyle(h),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=a,i.ensureState("blur").style=o,i.ensureState("select").style=l,s["each"](tc,(function(e){var t=this.childOfName(e);if(t){t.setColor(d),t.style.opacity=h.opacity;for(var n=0;n<Re["g"].length;n++){var r=Re["g"][n],a=i.getState(r);if(a){var o=a.style||{},s=t.ensureState(r),l=s.style||(s.style={});null!=o.stroke&&(l[t.__isEmptyBrush?"stroke":"fill"]=o.stroke),null!=o.opacity&&(l.opacity=o.opacity)}}t.markRedraw()}}),this);var f=r.getRawValue(t);Object(Be["g"])(this,u,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,n){return r.getFormattedLabel(t,n,e.dataType)}},inheritColor:d||"#000",defaultOpacity:h.opacity,defaultText:(null==f?e.getName(t):isFinite(f)?Object(Ne["u"])(f):f)+""});var p=this.getTextContent();if(p){var g=u.normal;p.__align=p.style.align,p.__verticalAlign=p.style.verticalAlign,p.__position=g.get("position")||"middle";var m=g.get("distance");s["isArray"](m)||(m=[m,m]),p.__labelDistance=m}this.setTextConfig({position:null,local:!0,inside:!1}),Object(Re["k"])(this)},t.prototype.highlight=function(){Object(Re["n"])(this)},t.prototype.downplay=function(){Object(Re["w"])(this)},t.prototype.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},t.prototype.setLinePoints=function(e){var t=this.childOfName("line");ac(t.shape,e),t.dirty()},t.prototype.beforeUpdate=function(){var e=this,t=e.childOfName("fromSymbol"),n=e.childOfName("toSymbol"),r=e.getTextContent();if(t||n||r&&!r.ignore){var i=1,a=this.parent;while(a)a.scaleX&&(i/=a.scaleX),a=a.parent;var o=e.childOfName("line");if(this.__dirty||o.__dirty){var s=o.shape.percent,l=o.pointAt(0),u=o.pointAt(s),c=Nr["sub"]([],u,l);if(Nr["normalize"](c,c),t&&(t.setPosition(l),S(t,0),t.scaleX=t.scaleY=i*s,t.markRedraw()),n&&(n.setPosition(u),S(n,1),n.scaleX=n.scaleY=i*s,n.markRedraw()),r&&!r.ignore){r.x=r.y=0,r.originX=r.originY=0;var h=void 0,d=void 0,f=r.__labelDistance,p=f[0]*i,g=f[1]*i,m=s/2,v=o.tangentAt(m),y=[v[1],-v[0]],b=o.pointAt(m);y[1]>0&&(y[0]=-y[0],y[1]=-y[1]);var _=v[0]<0?-1:1;if("start"!==r.__position&&"end"!==r.__position){var x=-Math.atan2(v[1],v[0]);u[0]<l[0]&&(x=Math.PI+x),r.rotation=x}var w=void 0;switch(r.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":w=-g,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":w=g,d="top";break;default:w=0,d="middle"}switch(r.__position){case"end":r.x=c[0]*p+u[0],r.y=c[1]*g+u[1],h=c[0]>.8?"left":c[0]<-.8?"right":"center",d=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",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":r.x=p*_+l[0],r.y=l[1]+w,h=v[0]<0?"right":"left",r.originX=-p*_,r.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":r.x=b[0],r.y=b[1]+w,h="center",r.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":r.x=-p*_+u[0],r.y=u[1]+w,h=v[0]>=0?"right":"left",r.originX=p*_,r.originY=-w;break}r.scaleX=r.scaleY=i,r.setStyle({verticalAlign:r.__verticalAlign||d,align:r.__align||h})}}}function S(e,t){var n=e.__specifiedRotation;if(null==n){var r=o.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(r[1],r[0]))}else e.attr("rotation",n)}},t}(De["a"]),sc=oc,lc=function(){function e(e){this.group=new De["a"],this._LineCtor=e||sc}return e.prototype.isPersistent=function(){return!0},e.prototype.updateData=function(e){var t=this,n=this,r=n.group,i=n._lineData;n._lineData=e,i||r.removeAll();var a=cc(e);e.diff(i).add((function(n){t._doAdd(e,n,a)})).update((function(n,r){t._doUpdate(i,e,r,n,a)})).remove((function(e){r.remove(i.getItemGraphicEl(e))})).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl((function(t,n){t.updateLayout(e,n)}),this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=cc(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function n(e){e.isGroup||uc(e)||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}for(var r=e.start;r<e.end;r++){var i=t.getItemLayout(r);if(dc(i)){var a=new this._LineCtor(t,r,this._seriesScope);a.traverse(n),this.group.add(a),t.setItemGraphicEl(r,a)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype._doAdd=function(e,t,n){var r=e.getItemLayout(t);if(dc(r)){var i=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,i),this.group.add(i)}},e.prototype._doUpdate=function(e,t,n,r,i){var a=e.getItemGraphicEl(n);dc(t.getItemLayout(r))?(a?a.updateData(t,r,i):a=new this._LineCtor(t,r,i),t.setItemGraphicEl(r,a),this.group.add(a)):this.group.remove(a)},e}();function uc(e){return e.animators&&e.animators.length>0}function cc(e){var t=e.hostModel;return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["emphasis","lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),labelStatesModels:Object(Be["e"])(t)}}function hc(e){return isNaN(e[0])||isNaN(e[1])}function dc(e){return!hc(e[0])&&!hc(e[1])}var fc=lc,pc=[],gc=[],mc=[],vc=lt["h"],yc=Nr["distSquare"],bc=Math.abs;function _c(e,t,n){for(var r,i=e[0],a=e[1],o=e[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1){pc[0]=vc(i[0],a[0],o[0],c),pc[1]=vc(i[1],a[1],o[1],c);var h=bc(yc(pc,t)-l);h<s&&(s=h,r=c)}for(var d=0;d<32;d++){var f=r+u;gc[0]=vc(i[0],a[0],o[0],r),gc[1]=vc(i[1],a[1],o[1],r),mc[0]=vc(i[0],a[0],o[0],f),mc[1]=vc(i[1],a[1],o[1],f);h=yc(gc,t)-l;if(bc(h)<.01)break;var p=yc(mc,t)-l;u/=2,h<0?p>=0?r+=u:r-=u:p>=0?r-=u:r+=u}return r}function xc(e,t){var n=[],r=lt["n"],i=[[],[],[]],a=[[],[]],o=[];t/=2,e.eachEdge((function(e,s){var l=e.getLayout(),u=e.getVisual("fromSymbol"),c=e.getVisual("toSymbol");l.__original||(l.__original=[Nr["clone"](l[0]),Nr["clone"](l[1])],l[2]&&l.__original.push(Nr["clone"](l[2])));var h=l.__original;if(null!=l[2]){if(Nr["copy"](i[0],h[0]),Nr["copy"](i[1],h[2]),Nr["copy"](i[2],h[1]),u&&"none"!==u){var d=Fu(e.node1),f=_c(i,h[0],d*t);r(i[0][0],i[1][0],i[2][0],f,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],f,n),i[0][1]=n[3],i[1][1]=n[4]}if(c&&"none"!==c){d=Fu(e.node2),f=_c(i,h[1],d*t);r(i[0][0],i[1][0],i[2][0],f,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],f,n),i[1][1]=n[1],i[2][1]=n[2]}Nr["copy"](l[0],i[0]),Nr["copy"](l[1],i[2]),Nr["copy"](l[2],i[1])}else{if(Nr["copy"](a[0],h[0]),Nr["copy"](a[1],h[1]),Nr["sub"](o,a[1],a[0]),Nr["normalize"](o,o),u&&"none"!==u){d=Fu(e.node1);Nr["scaleAndAdd"](a[0],a[0],o,d*t)}if(c&&"none"!==c){d=Fu(e.node2);Nr["scaleAndAdd"](a[1],a[1],o,-d*t)}Nr["copy"](l[0],a[0]),Nr["copy"](l[1],a[1])}}))}function wc(e){return"view"===e.type}var Sc=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.init=function(e,t){var n=new Ke,r=new fc,i=this.group;this._controller=new Ea(t.getZr()),this._controllerHost={target:i},i.add(n.group),i.add(r.group),this._symbolDraw=n,this._lineDraw=r,this._firstRender=!0},t.prototype.render=function(e,t,n){var r=this,i=e.coordinateSystem;this._model=e;var a=this._symbolDraw,o=this._lineDraw,l=this.group;if(wc(i)){var u={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY};this._firstRender?l.attr(u):Le["updateProps"](l,u,e)}xc(e.getGraph(),ju(e));var c=e.getData();a.updateData(c);var h=e.getEdgeData();o.updateData(h),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var d=e.forceLayout,f=e.get(["force","layoutAnimation"]);d&&this._startForceLayoutIteration(d,f),c.graph.eachNode((function(e){var t=e.dataIndex,n=e.getGraphicEl(),i=e.getModel();n.off("drag").off("dragend");var a=i.get("draggable");a&&n.on("drag",(function(){d&&(d.warmUp(),!r._layouting&&r._startForceLayoutIteration(d,f),d.setFixed(t),c.setItemLayout(t,[n.x,n.y]))})).on("dragend",(function(){d&&d.setUnfixed(t)})),n.setDraggable(a&&!!d);var o=i.get(["emphasis","focus"]);"adjacency"===o&&(Object(ke["a"])(n).focus=e.getAdjacentDataIndices())})),c.graph.eachEdge((function(e){var t=e.getGraphicEl(),n=e.getModel().get(["emphasis","focus"]);"adjacency"===n&&(Object(ke["a"])(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})}));var p="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),g=c.getLayout("cx"),m=c.getLayout("cy");c.eachItemGraphicEl((function(e,t){var n=c.getItemModel(t),r=n.get(["label","rotate"])||0,i=e.getSymbolPath();if(p){var a=c.getItemLayout(t),o=Math.atan2(a[1]-m,a[0]-g);o<0&&(o=2*Math.PI+o);var l=a[0]<g;l&&(o-=Math.PI);var u=l?"left":"right";i.setTextConfig({rotation:-o,position:u,origin:"center"});var h=i.ensureState("emphasis");s["extend"](h.textConfig||(h.textConfig={}),{position:u})}else i.setTextConfig({rotation:r*=Math.PI/180})})),this._firstRender=!1},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t){var n=this;(function r(){e.step((function(e){n.updateLayout(n._model),(n._layouting=!e)&&(t?n._layoutTimeout=setTimeout(r,16):r())}))})()},t.prototype._updateController=function(e,t,n){var r=this,i=this._controller,a=this._controllerHost,o=this.group;i.setPointerChecker((function(t,r,i){var a=o.getBoundingRect();return a.applyTransform(o.transform),a.contain(r,i)&&!Da(t,n,e)})),wc(e.coordinateSystem)?(i.enable(e.get("roam")),a.zoomLimit=e.get("scaleLimit"),a.zoom=e.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(t){Aa(a,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){Ca(a,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),r._updateNodeAndLinkScale(),xc(e.getGraph(),ju(e)),r._lineDraw.updateLayout(),n.updateLabelLayout()}))):i.disable()},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=ju(e);t.eachItemGraphicEl((function(e,t){e.setSymbolScale(n)}))},t.prototype.updateLayout=function(e){xc(e.getGraph(),ju(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(vt["a"]),Tc=Sc,Oc=n("E7N6"),Mc=n("ajRN");function Ec(e,t,n,r,i){for(var a=new Oc["a"](r),o=0;o<e.length;o++)a.addNode(s["retrieve"](e[o].id,e[o].name,o),o);var l=[],u=[],c=0;for(o=0;o<t.length;o++){var h=t[o],d=h.source,f=h.target;a.addEdge(d,f,c)&&(u.push(h),l.push(s["retrieve"](Object(ot["e"])(h.id,null),d+" > "+f)),c++)}var p,g=n.get("coordinateSystem");if("cartesian2d"===g||"polar"===g)p=Object(Ee["a"])(e,n);else{var m=Mc["a"].get(g),v=m&&m.dimensions||[];s["indexOf"](v,"value")<0&&v.concat(["value"]);var y=Object($n["a"])(e,{coordDimensions:v});p=new Qn["a"](y,n),p.initData(e)}var b=new Qn["a"](["value"],n);return b.initData(u,l),i&&i(p,b),Object(ws["a"])({mainData:p,struct:a,structAttr:"graph",datas:{node:p,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var Ac=n("JVZd"),Cc=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(v["b"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function r(){return n._categoriesData}this.legendVisualProvider=new nr(r,r),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),Object(ot["f"])(t,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[],i=this;if(r&&n){Du(this);var a=Ec(r,n,this,!0,o);return s["each"](a.edges,(function(e){Lu(e.node1,e.node2,this,e.dataIndex)}),this),a.data}function o(e,t){e.wrapMethod("getItemModel",(function(e){var t=i._categoriesModels,n=e.getShallow("category"),r=t[n];return r&&(r.parentModel=e.parentModel,e.parentModel=r),e}));var n=ei["a"].prototype.getModel;function r(e,t){var r=n.call(this,e,t);return r.resolveParentPath=a,r}function a(e){if(e&&("label"===e[0]||"label"===e[1])){var t=e.slice();return"label"===e[0]?t[0]="edgeLabel":"label"===e[1]&&(t[1]="edgeLabel"),t}return e}t.wrapMethod("getItemModel",(function(e){return e.resolveParentPath=a,e.getModel=r,e}))}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,n){if("edge"===n){var r=this.getData(),i=this.getDataParams(e,n),a=r.graph.getEdgeByIndex(e),o=r.getName(a.node1.dataIndex),s=r.getName(a.node2.dataIndex),l=[];return null!=o&&l.push(o),null!=s&&l.push(s),Object(qi["c"])("nameValue",{name:l.join(" > "),value:i.value,noValue:null==i.value})}var u=Object(Ac["a"])({series:this,dataIndex:e,multipleSeries:t});return u},t.prototype._updateCategoriesData=function(){var e=s["map"](this.option.categories||[],(function(e){return null!=e.value?e:s["extend"]({value:0},e)})),t=new Qn["a"](["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray((function(e){return t.getItemModel(e)}))},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={zlevel:0,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"}}},t}(Ae["a"]),Ic=Cc,Dc={type:"graphRoam",event:"graphRoam",update:"none"};function Lc(e){e.registerChartView(Tc),e.registerSeriesModel(Ic),e.registerProcessor(bu),e.registerVisual(_u),e.registerVisual(wu),e.registerLayout(Nu),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,Hu),e.registerLayout(Xu),e.registerCoordinateSystem("graphView",{dimensions:No.dimensions,create:Ku}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},(function(){})),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},(function(){})),e.registerAction(Dc,(function(e,t){t.eachComponent({mainType:"series",query:e},(function(t){var n=t.coordinateSystem,r=Yo(n,e);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom)}))}))}var Pc=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),kc=function(e){function t(t){var n=e.call(this,t)||this;return n.type="pointer",n}return Object(v["b"])(t,e),t.prototype.getDefaultShape=function(){return new Pc},t.prototype.buildPath=function(e,t){var n=Math.cos,r=Math.sin,i=t.r,a=t.width,o=t.angle,s=t.x-n(o)*a*(a>=i/3?1:2),l=t.y-r(o)*a*(a>=i/3?1:2);o=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+n(o)*a,t.y+r(o)*a),e.lineTo(t.x+n(t.angle)*i,t.y+r(t.angle)*i),e.lineTo(t.x-n(o)*a,t.y-r(o)*a),e.lineTo(s,l)},t}(l["b"]),Rc=kc;function Nc(e,t){var n=e.get("center"),r=t.getWidth(),i=t.getHeight(),a=Math.min(r,i),o=Object(Ne["o"])(n[0],t.getWidth()),s=Object(Ne["o"])(n[1],t.getHeight()),l=Object(Ne["o"])(e.get("radius"),a/2);return{cx:o,cy:s,r:l}}function jc(e,t){var n=null==e?"":e+"";return t&&("string"===typeof t?n=t.replace("{value}",n):"function"===typeof t&&(n=t(e))),n}var Fc=2*Math.PI,zc=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.render=function(e,t,n){this.group.removeAll();var r=e.get(["axisLine","lineStyle","color"]),i=Nc(e,n);this._renderMain(e,t,n,r,i),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,r,i){for(var a=this.group,o=e.get("clockwise"),s=-e.get("startAngle")/180*Math.PI,l=-e.get("endAngle")/180*Math.PI,u=e.getModel("axisLine"),c=u.get("roundCap"),h=c?rn:bt["a"],d=u.get("show"),f=u.getModel("lineStyle"),p=f.get("width"),g=(l-s)%Fc||l===s?(l-s)%Fc:Fc,m=s,v=0;d&&v<r.length;v++){var y=Math.min(Math.max(r[v][0],0),1);l=s+g*y;var b=new h({shape:{startAngle:m,endAngle:l,cx:i.cx,cy:i.cy,clockwise:o,r0:i.r-p,r:i.r},silent:!0});b.setStyle({fill:r[v][1]}),b.setStyle(f.getLineStyle(["color","width"])),a.add(b),m=l}var _=function(e){if(e<=0)return r[0][1];var t;for(t=0;t<r.length;t++)if(r[t][0]>=e&&(0===t?0:r[t-1][0])<e)return r[t][1];return r[t-1][1]};if(!o){var x=s;s=l,l=x}this._renderTicks(e,t,n,_,i,s,l,o,p),this._renderTitleAndDetail(e,t,n,_,i),this._renderAnchor(e,i),this._renderPointer(e,t,n,_,i,s,l,o,p)},t.prototype._renderTicks=function(e,t,n,r,i,a,o,s,l){for(var u,c,h=this.group,d=i.cx,f=i.cy,p=i.r,g=+e.get("min"),m=+e.get("max"),v=e.getModel("splitLine"),y=e.getModel("axisTick"),b=e.getModel("axisLabel"),_=e.get("splitNumber"),x=y.get("splitNumber"),w=Object(Ne["o"])(v.get("length"),p),S=Object(Ne["o"])(y.get("length"),p),T=a,O=(o-a)/_,M=O/x,E=v.getModel("lineStyle").getLineStyle(),A=y.getModel("lineStyle").getLineStyle(),C=v.get("distance"),I=0;I<=_;I++){if(u=Math.cos(T),c=Math.sin(T),v.get("show")){var D=C?C+l:l,L=new Jr["a"]({shape:{x1:u*(p-D)+d,y1:c*(p-D)+f,x2:u*(p-w-D)+d,y2:c*(p-w-D)+f},style:E,silent:!0});"auto"===E.stroke&&L.setStyle({stroke:r(I/_)}),h.add(L)}if(b.get("show")){D=b.get("distance")+C;var P=jc(Object(Ne["u"])(I/_*(m-g)+g),b.get("formatter")),k=r(I/_);h.add(new at["a"]({style:Object(Be["c"])(b,{text:P,x:u*(p-w-D)+d,y:c*(p-w-D)+f,verticalAlign:c<-.8?"top":c>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:k}),silent:!0}))}if(y.get("show")&&I!==_){D=y.get("distance");D=D?D+l:l;for(var R=0;R<=x;R++){u=Math.cos(T),c=Math.sin(T);var N=new Jr["a"]({shape:{x1:u*(p-D)+d,y1:c*(p-D)+f,x2:u*(p-S-D)+d,y2:c*(p-S-D)+f},silent:!0,style:A});"auto"===A.stroke&&N.setStyle({stroke:r((I+R/x)/_)}),h.add(N),T+=M}T-=M}else T+=O}},t.prototype._renderPointer=function(e,t,n,r,i,a,o,s,l){var u=this.group,c=this._data,h=this._progressEls,d=[],f=e.get(["pointer","show"]),p=e.getModel("progress"),g=p.get("show"),m=e.getData(),v=m.mapDimension("value"),y=+e.get("min"),b=+e.get("max"),_=[y,b],x=[a,o];function w(t,n){var r,a=m.getItemModel(t),o=a.getModel("pointer"),s=Object(Ne["o"])(o.get("width"),i.r),l=Object(Ne["o"])(o.get("length"),i.r),u=e.get(["pointer","icon"]),c=o.get("offsetCenter"),h=Object(Ne["o"])(c[0],i.r),d=Object(Ne["o"])(c[1],i.r),f=o.get("keepAspect");return r=u?Object(Pe["a"])(u,h-s/2,d-l,s,l,null,f):new Rc({shape:{angle:-Math.PI/2,width:s,r:l,x:h,y:d}}),r.rotation=-(n+Math.PI/2),r.x=i.cx,r.y=i.cy,r}function S(e,t){var n=p.get("roundCap"),r=n?rn:bt["a"],o=p.get("overlap"),u=o?p.get("width"):l/m.count(),c=o?i.r-u:i.r-(e+1)*u,h=o?i.r:i.r-e*u,d=new r({shape:{startAngle:a,endAngle:t,cx:i.cx,cy:i.cy,clockwise:s,r0:c,r:h}});return o&&(d.z2=b-m.get(v,e)%b),d}(g||f)&&(m.diff(c).add((function(t){if(f){var n=w(t,a);Le["initProps"](n,{rotation:-(Object(Ne["k"])(m.get(v,t),_,x,!0)+Math.PI/2)},e),u.add(n),m.setItemGraphicEl(t,n)}if(g){var r=S(t,a),i=p.get("clip");Le["initProps"](r,{shape:{endAngle:Object(Ne["k"])(m.get(v,t),_,x,i)}},e),u.add(r),d[t]=r}})).update((function(t,n){if(f){var r=c.getItemGraphicEl(n),i=r?r.rotation:a,o=w(t,i);o.rotation=i,Le["updateProps"](o,{rotation:-(Object(Ne["k"])(m.get(v,t),_,x,!0)+Math.PI/2)},e),u.add(o),m.setItemGraphicEl(t,o)}if(g){var s=h[n],l=s?s.shape.endAngle:a,y=S(t,l),b=p.get("clip");Le["updateProps"](y,{shape:{endAngle:Object(Ne["k"])(m.get(v,t),_,x,b)}},e),u.add(y),d[t]=y}})).execute(),m.each((function(e){var t=m.getItemModel(e),n=t.getModel("emphasis");if(f){var i=m.getItemGraphicEl(e);i.useStyle(m.getItemVisual(e,"style")),i.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===i.style.fill&&i.setStyle("fill",r(Object(Ne["k"])(m.get(v,e),_,[0,1],!0))),i.z2EmphasisLift=0,Object(Re["D"])(i,t),Object(Re["k"])(i,n.get("focus"),n.get("blurScope"))}if(g){var a=d[e];a.useStyle(m.getItemVisual(e,"style")),a.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),a.z2EmphasisLift=0,Object(Re["D"])(a,t),Object(Re["k"])(a,n.get("focus"),n.get("blurScope"))}})),this._progressEls=d)},t.prototype._renderAnchor=function(e,t){var n=e.getModel("anchor"),r=n.get("show");if(r){var i=n.get("size"),a=n.get("icon"),o=n.get("offsetCenter"),s=n.get("keepAspect"),l=Object(Pe["a"])(a,t.cx-i/2+Object(Ne["o"])(o[0],t.r),t.cy-i/2+Object(Ne["o"])(o[1],t.r),i,i,null,s);l.z2=n.get("showAbove")?1:0,l.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(l)}},t.prototype._renderTitleAndDetail=function(e,t,n,r,i){var a=this,o=e.getData(),s=o.mapDimension("value"),l=+e.get("min"),u=+e.get("max"),c=new De["a"],h=[],d=[],f=e.isAnimationEnabled();o.diff(this._data).add((function(e){h[e]=new at["a"]({silent:!0}),d[e]=new at["a"]({silent:!0})})).update((function(e,t){h[e]=a._titleEls[t],d[e]=a._detailEls[t]})).execute(),o.each((function(t){var n=o.getItemModel(t),a=o.get(s,t),p=new De["a"],g=r(Object(Ne["k"])(a,[l,u],[0,1],!0)),m=n.getModel("title");if(m.get("show")){var v=m.get("offsetCenter"),y=i.cx+Object(Ne["o"])(v[0],i.r),b=i.cy+Object(Ne["o"])(v[1],i.r),_=h[t];_.attr({style:Object(Be["c"])(m,{x:y,y:b,text:o.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:g})}),p.add(_)}var x=n.getModel("detail");if(x.get("show")){var w=x.get("offsetCenter"),S=i.cx+Object(Ne["o"])(w[0],i.r),T=i.cy+Object(Ne["o"])(w[1],i.r),O=Object(Ne["o"])(x.get("width"),i.r),M=Object(Ne["o"])(x.get("height"),i.r),E=e.get(["progress","show"])?o.getItemVisual(t,"style").fill:g,A=(_=d[t],x.get("formatter"));_.attr({style:Object(Be["c"])(x,{x:S,y:T,text:jc(a,A),width:isNaN(O)?null:O,height:isNaN(M)?null:M,align:"center",verticalAlign:"middle"},{inheritColor:E})}),Object(Be["h"])(_,{normal:x},a,(function(e){return jc(e,A)})),f&&Object(Be["a"])(_,t,o,e,{getFormattedLabel:function(e,t,n,r,i,o){return jc(o?o.interpolatedValue:a,A)}}),p.add(_)}c.add(p)})),this.group.add(c),this._titleEls=h,this._detailEls=d},t.type="gauge",t}(vt["a"]),Bc=zc,Vc=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n.useColorPaletteOnData=!0,n}return Object(v["b"])(t,e),t.prototype.getInitialData=function(e,t){return Jn(this,["value"])},t.type="series.gauge",t.defaultOption={zlevel:0,z:2,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,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}},t}(Ae["a"]),Gc=Vc;function Hc(e){e.registerChartView(Bc),e.registerSeriesModel(Gc)}var Uc=["itemStyle","opacity"],Wc=function(e){function t(t,n){var r=e.call(this)||this,i=r,a=new Fn["a"],o=new at["a"];return i.setTextContent(o),r.setTextGuideLine(a),r.updateData(t,n,!0),r}return Object(v["b"])(t,e),t.prototype.updateData=function(e,t,n){var r=this,i=e.hostModel,a=e.getItemModel(t),o=e.getItemLayout(t),s=a.getModel("emphasis"),l=a.get(Uc);l=null==l?1:l,r.useStyle(e.getItemVisual(t,"style")),r.style.lineJoin="round",n?(r.setShape({points:o.points}),r.style.opacity=0,Le["initProps"](r,{style:{opacity:l}},i,t)):Le["updateProps"](r,{style:{opacity:l},shape:{points:o.points}},i,t),Object(Re["D"])(r,a),this._updateLabel(e,t),Object(Re["k"])(this,s.get("focus"),s.get("blurScope"))},t.prototype._updateLabel=function(e,t){var n=this,r=this.getTextGuideLine(),i=n.getTextContent(),a=e.hostModel,o=e.getItemModel(t),s=e.getItemLayout(t),l=s.label,u=e.getItemVisual(t,"style"),c=u.fill;Object(Be["g"])(i,Object(Be["e"])(o),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:u.opacity,defaultText:e.getName(t)},{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 zn["a"](h[0][0],h[0][1]):null},Le["updateProps"](i,{style:{x:l.x,y:l.y}},a,t),i.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),Object(Bn["d"])(n,Object(Bn["a"])(o),{stroke:c})},t}(Wi["a"]),Xc=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return Object(v["b"])(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this._data,a=this.group;r.diff(i).add((function(e){var t=new Wc(r,e);r.setItemGraphicEl(e,t),a.add(t)})).update((function(e,t){var n=i.getItemGraphicEl(t);n.updateData(r,e),a.add(n),r.setItemGraphicEl(e,n)})).remove((function(t){var n=i.getItemGraphicEl(t);Le["removeElementWithFadeOut"](n,e,t)})).execute(),this._data=r},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(vt["a"]),Yc=Xc,Kc=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.useColorPaletteOnData=!0,n}return Object(v["b"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new nr(s["bind"](this.getData,this),s["bind"](this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return Jn(this,{coordDimensions:["value"],encodeDefaulter:s["curry"](er["d"],this)})},t.prototype._defaultLabelLine=function(e){Object(ot["f"])(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),r=e.prototype.getDataParams.call(this,t),i=n.mapDimension("value"),a=n.getSum(i);return r.percent=a?+(n.get(i,t)/a*100).toFixed(2):0,r.$vars.push("percent"),r},t.type="series.funnel",t.defaultOption={zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Ae["a"]),qc=Kc;function Zc(e,t){return Ln["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function $c(e,t){for(var n=e.mapDimension("value"),r=e.mapArray(n,(function(e){return e})),i=[],a="ascending"===t,o=0,s=e.count();o<s;o++)i[o]=o;return"function"===typeof t?i.sort(t):"none"!==t&&i.sort((function(e,t){return a?r[e]-r[t]:r[t]-r[e]})),i}function Qc(e){var t=e.hostModel,n=t.get("orient");e.each((function(t){var r,i,a,o,s=e.getItemModel(t),l=s.getModel("label"),u=l.get("position"),c=s.getModel("labelLine"),h=e.getItemLayout(t),d=h.points,f="inner"===u||"inside"===u||"center"===u||"insideLeft"===u||"insideRight"===u;if(f)"insideLeft"===u?(i=(d[0][0]+d[3][0])/2+5,a=(d[0][1]+d[3][1])/2,r="left"):"insideRight"===u?(i=(d[1][0]+d[2][0])/2-5,a=(d[1][1]+d[2][1])/2,r="right"):(i=(d[0][0]+d[1][0]+d[2][0]+d[3][0])/4,a=(d[0][1]+d[1][1]+d[2][1]+d[3][1])/4,r="center"),o=[[i,a],[i,a]];else{var p=void 0,g=void 0,m=void 0,v=void 0,y=c.get("length");0,"left"===u?(p=(d[3][0]+d[0][0])/2,g=(d[3][1]+d[0][1])/2,m=p-y,i=m-5,r="right"):"right"===u?(p=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,m=p+y,i=m+5,r="left"):"top"===u?(p=(d[3][0]+d[0][0])/2,g=(d[3][1]+d[0][1])/2,v=g-y,a=v-5,r="center"):"bottom"===u?(p=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,v=g+y,a=v+5,r="center"):"rightTop"===u?(p="horizontal"===n?d[3][0]:d[1][0],g="horizontal"===n?d[3][1]:d[1][1],"horizontal"===n?(v=g-y,a=v-5,r="center"):(m=p+y,i=m+5,r="top")):"rightBottom"===u?(p=d[2][0],g=d[2][1],"horizontal"===n?(v=g+y,a=v+5,r="center"):(m=p+y,i=m+5,r="bottom")):"leftTop"===u?(p=d[0][0],g="horizontal"===n?d[0][1]:d[1][1],"horizontal"===n?(v=g-y,a=v-5,r="center"):(m=p-y,i=m-5,r="right")):"leftBottom"===u?(p="horizontal"===n?d[1][0]:d[3][0],g="horizontal"===n?d[1][1]:d[2][1],"horizontal"===n?(v=g+y,a=v+5,r="center"):(m=p-y,i=m-5,r="right")):(p=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,"horizontal"===n?(v=g+y,a=v+5,r="center"):(m=p+y,i=m+5,r="left")),"horizontal"===n?(m=p,i=m):(v=g,a=v),o=[[p,g],[m,v]]}h.label={linePoints:o,x:i,y:a,verticalAlign:"middle",textAlign:r,inside:f}}))}function Jc(e,t){e.eachSeriesByType("funnel",(function(e){var n=e.getData(),r=n.mapDimension("value"),i=e.get("sort"),a=Zc(e,t),o=e.get("orient"),s=a.width,l=a.height,u=$c(n,i),c=a.x,h=a.y,d="horizontal"===o?[Object(Ne["o"])(e.get("minSize"),l),Object(Ne["o"])(e.get("maxSize"),l)]:[Object(Ne["o"])(e.get("minSize"),s),Object(Ne["o"])(e.get("maxSize"),s)],f=n.getDataExtent(r),p=e.get("min"),g=e.get("max");null==p&&(p=Math.min(f[0],0)),null==g&&(g=f[1]);var m=e.get("funnelAlign"),v=e.get("gap"),y="horizontal"===o?s:l,b=(y-v*(n.count()-1))/n.count(),_=function(e,t){if("horizontal"===o){var i=n.get(r,e)||0,a=Object(Ne["k"])(i,[p,g],d,!0),u=void 0;switch(m){case"top":u=h;break;case"center":u=h+(l-a)/2;break;case"bottom":u=h+(l-a);break}return[[t,u],[t,u+a]]}var f,v=n.get(r,e)||0,y=Object(Ne["k"])(v,[p,g],d,!0);switch(m){case"left":f=c;break;case"center":f=c+(s-y)/2;break;case"right":f=c+s-y;break}return[[f,t],[f+y,t]]};"ascending"===i&&(b=-b,v=-v,"horizontal"===o?c+=s:h+=l,u=u.reverse());for(var x=0;x<u.length;x++){var w=u[x],S=u[x+1],T=n.getItemModel(w);if("horizontal"===o){var O=T.get(["itemStyle","width"]);null==O?O=b:(O=Object(Ne["o"])(O,s),"ascending"===i&&(O=-O));var M=_(w,c),E=_(S,c+O);c+=O+v,n.setItemLayout(w,{points:M.concat(E.slice().reverse())})}else{var A=T.get(["itemStyle","height"]);null==A?A=b:(A=Object(Ne["o"])(A,l),"ascending"===i&&(A=-A));M=_(w,h),E=_(S,h+A);h+=A+v,n.setItemLayout(w,{points:M.concat(E.slice().reverse())})}}Qc(n)}))}function eh(e){e.registerChartView(Yc),e.registerSeriesModel(qc),e.registerLayout(Jc),e.registerProcessor(jn("funnel"))}var th=.3,nh=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new De["a"],n._initialized=!1,n}return Object(v["b"])(t,e),t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,t,n,r){var i=this._dataGroup,a=e.getData(),o=this._data,s=e.coordinateSystem,l=s.dimensions,u=oh(e);function c(e){var t=ah(a,i,e,l,s);sh(t,a,e,u)}function h(t,n){var r=o.getItemGraphicEl(n),i=ih(a,t,l,s);a.setItemGraphicEl(t,r),Le["updateProps"](r,{shape:{points:i}},e,t),sh(r,a,t,u)}function d(e){var t=o.getItemGraphicEl(e);i.remove(t)}if(a.diff(o).add(c).update(h).remove(d).execute(),!this._initialized){this._initialized=!0;var f=rh(s,e,(function(){setTimeout((function(){i.removeClipPath()}))}));i.setClipPath(f)}this._data=a},t.prototype.incrementalPrepareRender=function(e,t,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,t,n){for(var r=t.getData(),i=t.coordinateSystem,a=i.dimensions,o=oh(t),s=e.start;s<e.end;s++){var l=ah(r,this._dataGroup,s,a,i);l.incremental=!0,sh(l,r,s,o)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(vt["a"]);function rh(e,t,n){var r=e.model,i=e.getRect(),a=new yt["a"]({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),o="horizontal"===r.get("layout")?"width":"height";return a.setShape(o,0),Le["initProps"](a,{shape:{width:i.width,height:i.height}},t,n),a}function ih(e,t,n,r){for(var i=[],a=0;a<n.length;a++){var o=n[a],s=e.get(e.mapDimension(o),t);lh(s,r.getAxis(o).type)||i.push(r.dataToPoint(s,o))}return i}function ah(e,t,n,r,i){var a=ih(e,n,r,i),o=new Fn["a"]({shape:{points:a},z2:10});return t.add(o),e.setItemGraphicEl(n,o),o}function oh(e){var t=e.get("smooth",!0);return!0===t&&(t=th),t=Object(Ne["m"])(t),Object(s["eqNaN"])(t)&&(t=0),{smooth:t}}function sh(e,t,n,r){e.useStyle(t.getItemVisual(n,"style")),e.style.fill=null,e.setShape("smooth",r.smooth);var i=t.getItemModel(n),a=i.getModel("emphasis");Object(Re["D"])(e,i,"lineStyle"),Object(Re["k"])(e,a.get("focus"),a.get("blurScope"))}function lh(e,t){return"category"===t?null==e:null==e||isNaN(e)}var uh=nh,ch=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return Object(v["b"])(t,e),t.prototype.getInitialData=function(e,t){return Object(Ee["a"])(this.getSource(),this,{useEncodeDefaulter:Object(s["bind"])(hh,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var t=this.coordinateSystem,n=this.getData(),r=[];return t.eachActiveState(n,(function(t,i){e===t&&r.push(n.getRawIndex(i))})),r},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(Ae["a"]);function hh(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var n={};return Object(s["each"])(t.dimensions,(function(e){var t=dh(e);n[e]=t})),n}}function dh(e){return+e.replace("dim","")}var fh=ch,ph=["lineStyle","opacity"],gh={seriesType:"parallel",reset:function(e,t){var n=e.coordinateSystem,r={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(e,t){n.eachActiveState(t,(function(e,n){var i=r[e];if("normal"===e&&t.hasItemOption){var a=t.getItemModel(n).get(ph,!0);null!=a&&(i=a)}var o=t.ensureUniqueItemVisual(n,"style");o.opacity=i}),e.start,e.end)}}}},mh=gh;function vh(e){yh(e),bh(e)}function yh(e){if(!e.parallel){var t=!1;s["each"](e.series,(function(e){e&&"parallel"===e.type&&(t=!0)})),t&&(e.parallel=[{}])}}function bh(e){var t=ot["r"](e.parallelAxis);s["each"](t,(function(t){if(s["isObject"](t)){var n=t.parallelIndex||0,r=ot["r"](e.parallel)[n];r&&r.parallelAxisDefault&&s["merge"](t,r.parallelAxisDefault,!1)}}))}var _h=5,xh=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.render=function(e,t,n){this._model=e,this._api=n,this._handlers||(this._handlers={},Object(s["each"])(wh,(function(e,t){n.getZr().on(t,this._handlers[t]=Object(s["bind"])(e,this))}),this)),Object(en["b"])(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,t){Object(s["each"])(this._handlers,(function(e,n){t.getZr().off(n,e)})),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(Object(s["extend"])({type:"parallelAxisExpand"},e))},t.type="parallel",t}(mr["a"]),wh={mousedown:function(e){Sh(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(Sh(this,"click")&&t){var n=[e.offsetX,e.offsetY],r=Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2);if(r>_h)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&Sh(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),r=n.behavior;"jump"===r&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===r?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===r?null:{duration:0}})}}};function Sh(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}var Th=xh,Oh=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&s["merge"](t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var n=e.get("parallelIndex");return null!=n&&t.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){s["each"](["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])}),this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[],n=s["filter"](this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this);s["each"](n,(function(n){e.push("dim"+n.get("dim")),t.push(n.componentIndex)}))},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(vr["a"]),Mh=Oh,Eh=function(e){function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.type=i||"value",o.axisIndex=a,o}return Object(v["b"])(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(Vr["a"]),Ah=Eh;function Ch(e,t,n,r,i,a){e=e||0;var o=n[1]-n[0];if(null!=i&&(i=Dh(i,[0,o])),null!=a&&(a=Math.max(a,null!=i?i:0)),"all"===r){var s=Math.abs(t[1]-t[0]);s=Dh(s,[0,o]),i=a=Dh(s,[i,a]),r=0}t[0]=Dh(t[0],n),t[1]=Dh(t[1],n);var l=Ih(t,r);t[r]+=e;var u,c=i||0,h=n.slice();return l.sign<0?h[0]+=c:h[1]-=c,t[r]=Dh(t[r],h),u=Ih(t,r),null!=i&&(u.sign!==l.sign||u.span<i)&&(t[1-r]=t[r]+l.sign*i),u=Ih(t,r),null!=a&&u.span>a&&(t[1-r]=t[r]+u.sign*a),t}function Ih(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function Dh(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}var Lh=s["each"],Ph=Math.min,kh=Math.max,Rh=Math.floor,Nh=Math.ceil,jh=Ne["u"],Fh=Math.PI,zh=function(){function e(e,t,n){this.type="parallel",this._axesMap=s["createHashMap"](),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=e.dimensions,i=e.parallelAxisIndex;Lh(r,(function(e,n){var r=i[n],a=t.getComponent("parallelAxis",r),o=this._axesMap.set(e,new Ah(e,Lr["a"](a),[0,0],a.get("type"),r)),s="category"===o.type;o.onBand=s&&a.get("boundaryGap"),o.inverse=a.get("inverse"),a.axis=o,o.model=a,o.coordinateSystem=a.coordinateSystem=this}),this)},e.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,r=t.layoutBase,i=t.pixelDimIndex,a=e[1-i],o=e[i];return a>=n&&a<=n+t.axisLength&&o>=r&&o<=r+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries((function(n){if(e.contains(n,t)){var r=n.getData();Lh(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(r,r.mapDimension(e)),Lr["i"](t.scale,t.model)}),this)}}),this)},e.prototype.resize=function(e,t){this._rect=Ln["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e,t=this._model,n=this._rect,r=["x","y"],i=["width","height"],a=t.get("layout"),o="horizontal"===a?0:1,s=n[i[o]],l=[0,s],u=this.dimensions.length,c=Bh(t.get("axisExpandWidth"),l),h=Bh(t.get("axisExpandCount")||0,[0,u]),d=t.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,f=t.get("axisExpandWindow");if(f)e=Bh(f[1]-f[0],l),f[1]=f[0]+e;else{e=Bh(c*(h-1),l);var p=t.get("axisExpandCenter")||Rh(u/2);f=[c*p-e/2],f[1]=f[0]+e}var g=(s-e)/(u-h);g<3&&(g=0);var m=[Rh(jh(f[0]/c,1))+1,Nh(jh(f[1]/c,1))-1],v=g/c*f[0];return{layout:a,pixelDimIndex:o,layoutBase:n[r[o]],layoutLength:s,axisBase:n[r[1-o]],axisLength:n[i[1-o]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:f,axisCount:u,winInnerIndices:m,axisExpandWindow0Pos:v}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,r=this._makeLayoutInfo(),i=r.layout;t.each((function(e){var t=[0,r.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])})),Lh(n,(function(t,n){var a=(r.axisExpandable?Gh:Vh)(n,r),o={horizontal:{x:a.position,y:r.axisLength},vertical:{x:0,y:a.position}},s={horizontal:Fh/2,vertical:0},l=[o[i].x+e.x,o[i].y+e.y],u=s[i],c=Rr["create"]();Rr["rotate"](c,c,u),Rr["translate"](c,c,l),this._axesLayout[t]={position:l,rotation:u,transform:c,axisNameAvailableWidth:a.axisNameAvailableWidth,axisLabelShow:a.axisLabelShow,nameTruncateMaxWidth:a.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,n,r){null==n&&(n=0),null==r&&(r=e.count());var i=this._axesMap,a=this.dimensions,o=[],l=[];s["each"](a,(function(t){o.push(e.mapDimension(t)),l.push(i.get(t).model)}));for(var u=this.hasAxisBrushed(),c=n;c<r;c++){var h=void 0;if(u){h="active";for(var d=e.getValues(o,c),f=0,p=a.length;f<p;f++){var g=l[f].getActiveState(d[f]);if("inactive"===g){h="inactive";break}}}else h="normal";t(h,c)}},e.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,r=0,i=e.length;r<i;r++)"normal"!==t.get(e[r]).model.getActiveState()&&(n=!0);return n},e.prototype.axisCoordToPoint=function(e,t){var n=this._axesLayout[t];return Le["applyTransform"]([e,0],n.transform)},e.prototype.getAxisLayout=function(e){return s["clone"](this._axesLayout[e])},e.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,r=t.axisExpandWindow.slice(),i=r[1]-r[0],a=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:r};var o,s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,l="slide",u=t.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),h=null!=c[0];if(u)h&&u&&s<i*c[0]?(l="jump",o=s-i*c[2]):h&&u&&s>i*(1-c[0])?(l="jump",o=s-i*(1-c[2])):(o=s-i*c[1])>=0&&(o=s-i*(1-c[1]))<=0&&(o=0),o*=t.axisExpandWidth/u,o?Ch(o,r,a,"all"):l="none";else{var d=r[1]-r[0],f=a[1]*s/d;r=[kh(0,f-d/2)],r[1]=Ph(a[1],r[0]+d),r[0]=r[1]-d}return{axisExpandWindow:r,behavior:l}},e}();function Bh(e,t){return Ph(kh(e,t[0]),t[1])}function Vh(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function Gh(e,t){var n,r,i=t.layoutLength,a=t.axisExpandWidth,o=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,u=s,c=!1;return e<l[0]?(n=e*s,r=s):e<=l[1]?(n=t.axisExpandWindow0Pos+e*a-t.axisExpandWindow[0],u=a,c=!0):(n=i-(o-1-e)*s,r=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:r}}var Hh=zh;function Uh(e,t){var n=[];return e.eachComponent("parallel",(function(r,i){var a=new Hh(r,e,t);a.name="parallel_"+i,a.resize(r,t),r.coordinateSystem=a,a.model=r,n.push(a)})),e.eachSeries((function(e){if("parallel"===e.get("coordinateSystem")){var t=e.getReferringComponents("parallel",ot["b"]).models[0];e.coordinateSystem=t.coordinateSystem}})),n}var Wh={create:Uh},Xh=Wh,Yh=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.activeIntervals=[],n}return Object(v["b"])(t,e),t.prototype.getAreaSelectStyle=function(){return Object(al["a"])([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var t=this.activeIntervals=s["clone"](e);if(t)for(var n=t.length-1;n>=0;n--)Ne["b"](t[n])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(+e))return"inactive";if(1===t.length){var n=t[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var r=0,i=t.length;r<i;r++)if(t[r][0]<=e&&e<=t[r][1])return"active";return"inactive"},t}(vr["a"]);s["mixin"](Yh,_r["a"]);var Kh=Yh,qh=!0,Zh=Math.min,$h=Math.max,Qh=Math.pow,Jh=1e4,ed=6,td=6,nd="globalPan",rd={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},id={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},ad={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},od=0,sd=function(e){function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new De["a"],n._uid="brushController_"+od++,Object(s["each"])(zd,(function(e,t){this._handlers[t]=Object(s["bind"])(e,this)}),n),n}return Object(v["b"])(t,e),t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||ba(t,nd,this._uid),Object(s["each"])(this._handlers,(function(e,n){t.on(n,e)})),this._brushType=e.brushType,this._brushOption=Object(s["merge"])(Object(s["clone"])(ad),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;_a(e,nd,this._uid),Object(s["each"])(this._handlers,(function(t,n){e.off(n,t)})),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};Object(s["each"])(e,(function(e){t[e.panelId]=Object(s["clone"])(e)}))}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=Object(s["map"])(e,(function(e){return Object(s["merge"])(Object(s["clone"])(ad),e,!0)}));var t="\0-brush-index-",n=this._covers,r=this._covers=[],i=this,a=this._creatingCover;return new qs["a"](n,e,l,o).add(u).update(u).remove(c).execute(),this;function o(e,n){return(null!=e.id?e.id:t+n)+"-"+e.brushType}function l(e,t){return o(e.__brushOption,t)}function u(t,o){var s=e[t];if(null!=o&&n[o]===a)r[t]=n[o];else{var l=r[t]=null!=o?(n[o].__brushOption=s,n[o]):ud(i,ld(i,s));dd(i,l)}}function c(e){n[e]!==a&&i.group.remove(n[e])}},t.prototype.unmount=function(){return this.enableBrush(!1),md(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(ga["a"]);function ld(e,t){var n=Gd[t.brushType].createCover(e,t);return n.__brushOption=t,hd(n,t),e.group.add(n),n}function ud(e,t){var n=fd(t);return n.endCreating&&(n.endCreating(e,t),hd(t,t.__brushOption)),t}function cd(e,t){var n=t.__brushOption;fd(t).updateCoverShape(e,t,n.range,n)}function hd(e,t){var n=t.z;null==n&&(n=Jh),e.traverse((function(e){e.z=n,e.z2=n}))}function dd(e,t){fd(t).updateCommon(e,t),cd(e,t)}function fd(e){return Gd[e.__brushOption.brushType]}function pd(e,t,n){var r,i=e._panels;if(!i)return qh;var a=e._transform;return Object(s["each"])(i,(function(e){e.isTargetByCursor(t,n,a)&&(r=e)})),r}function gd(e,t){var n=e._panels;if(!n)return qh;var r=t.__brushOption.panelId;return null!=r?n[r]:qh}function md(e){var t=e._covers,n=t.length;return Object(s["each"])(t,(function(t){e.group.remove(t)}),e),t.length=0,!!n}function vd(e,t){var n=Object(s["map"])(e._covers,(function(e){var t=e.__brushOption,n=Object(s["clone"])(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}}));e.trigger("brush",{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function yd(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],r=t[0],i=n[0]-r[0],a=n[1]-r[1],o=Qh(i*i+a*a,.5);return o>ed}function bd(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function _d(e,t,n,r){var i=new De["a"];return i.add(new yt["a"]({name:"main",style:Td(n),silent:!0,draggable:!0,cursor:"move",drift:Object(s["curry"])(Cd,e,t,i,["n","s","w","e"]),ondragend:Object(s["curry"])(vd,t,{isEnd:!0})})),Object(s["each"])(r,(function(n){i.add(new yt["a"]({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(s["curry"])(Cd,e,t,i,n),ondragend:Object(s["curry"])(vd,t,{isEnd:!0})}))})),i}function xd(e,t,n,r){var i=r.brushStyle.lineWidth||0,a=$h(i,td),o=n[0][0],s=n[1][0],l=o-i/2,u=s-i/2,c=n[0][1],h=n[1][1],d=c-a+i/2,f=h-a+i/2,p=c-o,g=h-s,m=p+i,v=g+i;Sd(e,t,"main",o,s,p,g),r.transformable&&(Sd(e,t,"w",l,u,a,v),Sd(e,t,"e",d,u,a,v),Sd(e,t,"n",l,u,m,a),Sd(e,t,"s",l,f,m,a),Sd(e,t,"nw",l,u,a,a),Sd(e,t,"ne",d,u,a,a),Sd(e,t,"sw",l,f,a,a),Sd(e,t,"se",d,f,a,a))}function wd(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(Td(n)),i.attr({silent:!r,cursor:r?"move":"default"}),Object(s["each"])([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var i=t.childOfName(n.join("")),a=1===n.length?Ed(e,n[0]):Ad(e,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?id[a]+"-resize":null})}))}function Sd(e,t,n,r,i,a,o){var s=t.childOfName(n);s&&s.setShape(Pd(Ld(e,t,[[r,i],[r+a,i+o]])))}function Td(e){return Object(s["defaults"])({strokeNoScale:!0},e.brushStyle)}function Od(e,t,n,r){var i=[Zh(e,n),Zh(t,r)],a=[$h(e,n),$h(t,r)];return[[i[0],a[0]],[i[1],a[1]]]}function Md(e){return Le["getTransform"](e.group)}function Ed(e,t){var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},i=Le["transformDirection"](n[t],Md(e));return r[i]}function Ad(e,t){var n=[Ed(e,t[0]),Ed(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function Cd(e,t,n,r,i,a){var o=n.__brushOption,l=e.toRectRange(o.range),u=Dd(t,i,a);Object(s["each"])(r,(function(e){var t=rd[e];l[t[0]][t[1]]+=u[t[0]]})),o.range=e.fromRectRange(Od(l[0][0],l[1][0],l[0][1],l[1][1])),dd(t,n),vd(t,{isEnd:!1})}function Id(e,t,n,r){var i=t.__brushOption.range,a=Dd(e,n,r);Object(s["each"])(i,(function(e){e[0]+=a[0],e[1]+=a[1]})),dd(e,t),vd(e,{isEnd:!1})}function Dd(e,t,n){var r=e.group,i=r.transformCoordToLocal(t,n),a=r.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function Ld(e,t,n){var r=gd(e,t);return r&&r!==qh?r.clipPath(n,e._transform):Object(s["clone"])(n)}function Pd(e){var t=Zh(e[0][0],e[1][0]),n=Zh(e[0][1],e[1][1]),r=$h(e[0][0],e[1][0]),i=$h(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:i-n}}function kd(e,t,n){if(e._brushType&&!Vd(e,t.offsetX,t.offsetY)){var r=e._zr,i=e._covers,a=pd(e,t,n);if(!e._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===qh||s.panelId===a.panelId)&&Gd[s.brushType].contain(i[o],n[0],n[1]))return}a&&r.setCursorStyle("crosshair")}}function Rd(e){var t=e.event;t.preventDefault&&t.preventDefault()}function Nd(e,t,n){return e.childOfName("main").contain(t,n)}function jd(e,t,n,r){var i,a=e._creatingCover,o=e._creatingPanel,l=e._brushOption;if(e._track.push(n.slice()),yd(e)||a){if(o&&!a){"single"===l.brushMode&&md(e);var u=Object(s["clone"])(l);u.brushType=Fd(u.brushType,o),u.panelId=o===qh?null:o.panelId,a=e._creatingCover=ld(e,u),e._covers.push(a)}if(a){var c=Gd[Fd(e._brushType,o)],h=a.__brushOption;h.range=c.getCreatingRange(Ld(e,a,e._track)),r&&(ud(e,a),c.updateCommon(e,a)),cd(e,a),i={isEnd:r}}}else r&&"single"===l.brushMode&&l.removeOnClick&&pd(e,t,n)&&md(e)&&(i={isEnd:r,removeOnClick:!0});return i}function Fd(e,t){return"auto"===e?t.defaultBrushType:e}var zd={mousedown:function(e){if(this._dragging)Bd(this,e);else if(!e.target||!e.target.draggable){Rd(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var n=this._creatingPanel=pd(this,e,t);n&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,r=this.group.transformCoordToLocal(t,n);if(kd(this,e,r),this._dragging){Rd(e);var i=jd(this,e,r,!1);i&&vd(this,i)}},mouseup:function(e){Bd(this,e)}};function Bd(e,t){if(e._dragging){Rd(t);var n=t.offsetX,r=t.offsetY,i=e.group.transformCoordToLocal(n,r),a=jd(e,t,i,!0);e._dragging=!1,e._track=[],e._creatingCover=null,a&&vd(e,a)}}function Vd(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var Gd={lineX:Hd(0),lineY:Hd(1),rect:{createCover:function(e,t){function n(e){return e}return _d({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=bd(e);return Od(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){xd(e,t,n,r)},updateCommon:wd,contain:Nd},polygon:{createCover:function(e,t){var n=new De["a"];return n.add(new Fn["a"]({name:"main",style:Td(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Wi["a"]({name:"main",draggable:!0,drift:Object(s["curry"])(Id,e,t),ondragend:Object(s["curry"])(vd,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:Ld(e,t,n)})},updateCommon:wd,contain:Nd}};function Hd(e){return{createCover:function(t,n){return _d({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=bd(t),r=Zh(n[0][e],n[1][e]),i=$h(n[0][e],n[1][e]);return[r,i]},updateCoverShape:function(t,n,r,i){var a,o=gd(t,n);if(o!==qh&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[r,a];e&&l.reverse(),xd(t,n,l,i)},updateCommon:wd,contain:Nd}}var Ud=sd;function Wd(e){return e=Kd(e),function(t){return Le["clipPointsByRect"](t,e)}}function Xd(e,t){return e=Kd(e),function(n){var r=null!=t?t:n,i=r?e.width:e.height,a=r?e.x:e.y;return[a,a+(i||0)]}}function Yd(e,t,n){var r=Kd(e);return function(e,i){return r.contain(i[0],i[1])&&!Da(e,t,n)}}function Kd(e){return Pr["a"].create(e)}var qd=["axisLine","axisTickLabel","axisName"],Zd=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new Ud(n.getZr())).on("brush",s["bind"](this._onBrush,this))},t.prototype.render=function(e,t,n,r){if(!$d(e,t,r)){this.axisModel=e,this.api=n,this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new De["a"],this.group.add(this._axisGroup),e.get("show")){var a=Jd(e,t),o=a.coordinateSystem,l=e.getAreaSelectStyle(),u=l.width,c=e.axis.dim,h=o.getAxisLayout(c),d=s["extend"]({strokeContainThreshold:u},h),f=new fi(e,d);s["each"](qd,f.add,f),this._axisGroup.add(f.getGroup()),this._refreshBrushController(d,l,e,a,u,n),Le["groupTransition"](i,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,r,i,a){var o=n.axis.getExtent(),s=o[1]-o[0],l=Math.min(30,.1*Math.abs(s)),u=Pr["a"].create({x:o[0],y:-i/2,width:s,height:i});u.x-=l,u.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:Wd(u),isTargetByCursor:Yd(u,a,r),getLinearBrushOtherExtent:Xd(u,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(Qd(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,r=n.axis,i=s["map"](t,(function(e){return[r.coordToData(e.range[0],!0),r.coordToData(e.range[1],!0)]}));(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:i})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(mr["a"]);function $d(e,t,n){return n&&"axisAreaSelect"===n.type&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}function Qd(e){var t=e.axis;return s["map"](e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}function Jd(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var ef=Zd,tf={type:"axisAreaSelect",event:"axisAreaSelected"};function nf(e){e.registerAction(tf,(function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},(function(t){t.axis.model.setActiveIntervals(e.intervals)}))})),e.registerAction("parallelAxisExpand",(function(e,t){t.eachComponent({mainType:"parallel",query:e},(function(t){t.setAxisExpand(e)}))}))}var rf={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function af(e){e.registerComponentView(Th),e.registerComponentModel(Mh),e.registerCoordinateSystem("parallel",Xh),e.registerPreprocessor(vh),e.registerComponentModel(Kh),e.registerComponentView(ef),Ir(e,"parallel",Kh,rf),nf(e)}function of(e){Object(r["a"])(af),e.registerChartView(uh),e.registerSeriesModel(fh),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,mh)}var sf=function(){function e(){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 e}(),lf=function(e){function t(t){return e.call(this,t)||this}return Object(v["b"])(t,e),t.prototype.getDefaultShape=function(){return new sf},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){Object(Re["n"])(this)},t.prototype.downplay=function(){Object(Re["w"])(this)},t}(l["b"]),uf=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return Object(v["b"])(t,e),t.prototype.render=function(e,t,n){var r=this,i=e.getGraph(),a=this.group,o=e.layoutInfo,s=o.width,l=o.height,u=e.getData(),c=e.getData("edge"),h=e.get("orient");this._model=e,a.removeAll(),a.x=o.x,a.y=o.y,i.eachEdge((function(t){var n=new lf,r=Object(ke["a"])(n);r.dataIndex=t.dataIndex,r.seriesIndex=e.seriesIndex,r.dataType="edge";var i,o,u,d,f,p,g,m,v=t.getModel(),y=v.getModel("lineStyle"),b=y.get("curveness"),_=t.node1.getLayout(),x=t.node1.getModel(),w=x.get("localX"),S=x.get("localY"),T=t.node2.getLayout(),O=t.node2.getModel(),M=O.get("localX"),E=O.get("localY"),A=t.getLayout();switch(n.shape.extent=Math.max(1,A.dy),n.shape.orient=h,"vertical"===h?(i=(null!=w?w*s:_.x)+A.sy,o=(null!=S?S*l:_.y)+_.dy,u=(null!=M?M*s:T.x)+A.ty,d=null!=E?E*l:T.y,f=i,p=o*(1-b)+d*b,g=u,m=o*b+d*(1-b)):(i=(null!=w?w*s:_.x)+_.dx,o=(null!=S?S*l:_.y)+A.sy,u=null!=M?M*s:T.x,d=(null!=E?E*l:T.y)+A.ty,f=i*(1-b)+u*b,p=o,g=i*b+u*(1-b),m=d),n.setShape({x1:i,y1:o,x2:u,y2:d,cpx1:f,cpy1:p,cpx2:g,cpy2:m}),n.useStyle(y.getItemStyle()),n.style.fill){case"source":n.style.fill=t.node1.getVisual("color"),n.style.decal=t.node1.getVisual("style").decal;break;case"target":n.style.fill=t.node2.getVisual("color"),n.style.decal=t.node2.getVisual("style").decal;break;case"gradient":var C=t.node1.getVisual("color"),I=t.node2.getVisual("color");"string"===typeof C&&"string"===typeof I&&(n.style.fill=new it["a"](0,0,1,0,[{color:C,offset:0},{color:I,offset:1}]))}var D=v.getModel("emphasis");Object(Re["D"])(n,v,"lineStyle",(function(e){return e.getItemStyle()})),a.add(n),c.setItemGraphicEl(t.dataIndex,n);var L=D.get("focus");Object(Re["k"])(n,"adjacency"===L?t.getAdjacentDataIndices():L,D.get("blurScope")),Object(ke["a"])(n).dataType="edge"})),i.eachNode((function(t){var n=t.getLayout(),r=t.getModel(),i=r.get("localX"),o=r.get("localY"),c=r.getModel("emphasis"),h=new yt["a"]({shape:{x:null!=i?i*s:n.x,y:null!=o?o*l:n.y,width:n.dx,height:n.dy},style:r.getModel("itemStyle").getItemStyle()});Object(Be["g"])(h,Object(Be["e"])(r),{labelFetcher:e,labelDataIndex:t.dataIndex,defaultText:t.id}),h.disableLabelAnimation=!0,h.setStyle("fill",t.getVisual("color")),h.setStyle("decal",t.getVisual("style").decal),Object(Re["D"])(h,r),a.add(h),u.setItemGraphicEl(t.dataIndex,h),Object(ke["a"])(h).dataType="node";var d=c.get("focus");Object(Re["k"])(h,"adjacency"===d?t.getAdjacentDataIndices():d,c.get("blurScope"))})),u.eachItemGraphicEl((function(t,i){var a=u.getItemModel(i);a.get("draggable")&&(t.drift=function(t,a){r._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=a,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:u.getRawIndex(i),localX:this.shape.x/s,localY:this.shape.y/l})},t.ondragend=function(){r._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")})),!this._data&&e.isAnimationEnabled()&&a.setClipPath(cf(a.getBoundingRect(),e,(function(){a.removeClipPath()}))),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(vt["a"]);function cf(e,t,n){var r=new yt["a"]({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Le["initProps"](r,{shape:{width:e.width+20}},t,n),r}var hf=uf,df=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.getInitialData=function(e,t){var n=e.edges||e.links,r=e.data||e.nodes,i=e.levels;this.levelModels=[];for(var a=this.levelModels,o=0;o<i.length;o++)null!=i[o].depth&&i[o].depth>=0&&(a[i[o].depth]=new ei["a"](i[o],this,t));if(r&&n){var s=Ec(r,n,this,!0,l);return s.data}function l(e,t){e.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,r=n.getData().getItemLayout(t);if(r){var i=r.depth,a=n.levelModels[i];a&&(e.parentModel=a)}return e})),t.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,r=n.getGraph().getEdgeByIndex(t),i=r.node1.getLayout();if(i){var a=i.depth,o=n.levelModels[a];o&&(e.parentModel=o)}return e}))}},t.prototype.setNodePosition=function(e,t){var n=this.option.data[e];n.localX=t[0],n.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function r(e){return isNaN(e)||null==e}if("edge"===n){var i=this.getDataParams(e,n),a=i.data,o=i.value,s=a.source+" -- "+a.target;return Object(qi["c"])("nameValue",{name:s,value:o,noValue:r(o)})}var l=this.getGraph().getNodeByIndex(e),u=l.getLayout().value,c=this.getDataParams(e,n).data.name;return Object(qi["c"])("nameValue",{name:null!=c?c+"":null,value:u,noValue:r(u)})},t.prototype.optionUpdated=function(){this.option},t.prototype.getDataParams=function(t,n){var r=e.prototype.getDataParams.call(this,t,n);if(null==r.value&&"node"===n){var i=this.getGraph().getNodeByIndex(t),a=i.getLayout().value;r.value=a}return r},t.type="series.sankey",t.defaultOption={zlevel:0,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},t}(Ae["a"]),ff=df;function pf(e,t){e.eachSeriesByType("sankey",(function(e){var n=e.get("nodeWidth"),r=e.get("nodeGap"),i=gf(e,t);e.layoutInfo=i;var a=i.width,o=i.height,l=e.getGraph(),u=l.nodes,c=l.edges;vf(u);var h=s["filter"](u,(function(e){return 0===e.getLayout().value})),d=0!==h.length?0:e.get("layoutIterations"),f=e.get("orient"),p=e.get("nodeAlign");mf(u,c,n,r,a,o,d,f,p)}))}function gf(e,t){return Ln["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function mf(e,t,n,r,i,a,o,s,l){yf(e,t,n,i,a,s,l),Sf(e,t,a,i,r,o,s),Nf(e,s)}function vf(e){s["each"](e,(function(e){var t=kf(e.outEdges,Pf),n=kf(e.inEdges,Pf),r=e.getValue()||0,i=Math.max(t,n,r);e.setLayout({value:i},!0)}))}function yf(e,t,n,r,i,a,o){for(var s=[],l=[],u=[],c=[],h=0,d=0;d<t.length;d++)s[d]=1;for(d=0;d<e.length;d++)l[d]=e[d].inEdges.length,0===l[d]&&u.push(e[d]);var f=-1;while(u.length){for(var p=0;p<u.length;p++){var g=u[p],m=g.hostGraph.data.getRawDataItem(g.dataIndex),v=null!=m.depth&&m.depth>=0;v&&m.depth>f&&(f=m.depth),g.setLayout({depth:v?m.depth:h},!0),"vertical"===a?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var y=0;y<g.outEdges.length;y++){var b=g.outEdges[y],_=t.indexOf(b);s[_]=0;var x=b.node2,w=e.indexOf(x);0===--l[w]&&c.indexOf(x)<0&&c.push(x)}}++h,u=c,c=[]}for(d=0;d<s.length;d++)if(1===s[d])throw new Error("Sankey is a DAG, the original data has cycle!");var S=f>h-1?f:h-1;o&&"left"!==o&&_f(e,o,a,S);var T="vertical"===a?(i-n)/S:(r-n)/S;wf(e,T,a)}function bf(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function _f(e,t,n,r){if("right"===t){var i=[],a=e,o=0;while(a.length){for(var l=0;l<a.length;l++){var u=a[l];u.setLayout({skNodeHeight:o},!0);for(var c=0;c<u.inEdges.length;c++){var h=u.inEdges[c];i.indexOf(h.node1)<0&&i.push(h.node1)}}a=i,i=[],++o}s["each"](e,(function(e){bf(e)||e.setLayout({depth:Math.max(0,r-e.getLayout().skNodeHeight)},!0)}))}else"justify"===t&&xf(e,r)}function xf(e,t){s["each"](e,(function(e){bf(e)||e.outEdges.length||e.setLayout({depth:t},!0)}))}function wf(e,t,n){s["each"](e,(function(e){var r=e.getLayout().depth*t;"vertical"===n?e.setLayout({y:r},!0):e.setLayout({x:r},!0)}))}function Sf(e,t,n,r,i,a,o){var s=Tf(e,o);Of(s,t,n,r,i,o),Mf(s,i,n,r,o);for(var l=1;a>0;a--)l*=.99,Ef(s,l,o),Mf(s,i,n,r,o),Rf(s,l,o),Mf(s,i,n,r,o)}function Tf(e,t){var n=[],r="vertical"===t?"y":"x",i=Object(ot["j"])(e,(function(e){return e.getLayout()[r]}));return i.keys.sort((function(e,t){return e-t})),s["each"](i.keys,(function(e){n.push(i.buckets.get(e))})),n}function Of(e,t,n,r,i,a){var o=1/0;s["each"](e,(function(e){var t=e.length,l=0;s["each"](e,(function(e){l+=e.getLayout().value}));var u="vertical"===a?(r-(t-1)*i)/l:(n-(t-1)*i)/l;u<o&&(o=u)})),s["each"](e,(function(e){s["each"](e,(function(e,t){var n=e.getLayout().value*o;"vertical"===a?(e.setLayout({x:t},!0),e.setLayout({dx:n},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:n},!0))}))})),s["each"](t,(function(e){var t=+e.getValue()*o;e.setLayout({dy:t},!0)}))}function Mf(e,t,n,r,i){var a="vertical"===i?"x":"y";s["each"](e,(function(e){var o,s,l;e.sort((function(e,t){return e.getLayout()[a]-t.getLayout()[a]}));for(var u=0,c=e.length,h="vertical"===i?"dx":"dy",d=0;d<c;d++)s=e[d],l=u-s.getLayout()[a],l>0&&(o=s.getLayout()[a]+l,"vertical"===i?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),u=s.getLayout()[a]+s.getLayout()[h]+t;var f="vertical"===i?r:n;if(l=u-t-f,l>0){o=s.getLayout()[a]-l,"vertical"===i?s.setLayout({x:o},!0):s.setLayout({y:o},!0),u=o;for(d=c-2;d>=0;--d)s=e[d],l=s.getLayout()[a]+s.getLayout()[h]+t-u,l>0&&(o=s.getLayout()[a]-l,"vertical"===i?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),u=s.getLayout()[a]}}))}function Ef(e,t,n){s["each"](e.slice().reverse(),(function(e){s["each"](e,(function(e){if(e.outEdges.length){var r=kf(e.outEdges,Af,n)/kf(e.outEdges,Pf);if(isNaN(r)){var i=e.outEdges.length;r=i?kf(e.outEdges,Cf,n)/i:0}if("vertical"===n){var a=e.getLayout().x+(r-Lf(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(r-Lf(e,n))*t;e.setLayout({y:o},!0)}}}))}))}function Af(e,t){return Lf(e.node2,t)*e.getValue()}function Cf(e,t){return Lf(e.node2,t)}function If(e,t){return Lf(e.node1,t)*e.getValue()}function Df(e,t){return Lf(e.node1,t)}function Lf(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function Pf(e){return e.getValue()}function kf(e,t,n){var r=0,i=e.length,a=-1;while(++a<i){var o=+t(e[a],n);isNaN(o)||(r+=o)}return r}function Rf(e,t,n){s["each"](e,(function(e){s["each"](e,(function(e){if(e.inEdges.length){var r=kf(e.inEdges,If,n)/kf(e.inEdges,Pf);if(isNaN(r)){var i=e.inEdges.length;r=i?kf(e.inEdges,Df,n)/i:0}if("vertical"===n){var a=e.getLayout().x+(r-Lf(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(r-Lf(e,n))*t;e.setLayout({y:o},!0)}}}))}))}function Nf(e,t){var n="vertical"===t?"x":"y";s["each"](e,(function(e){e.outEdges.sort((function(e,t){return e.node2.getLayout()[n]-t.node2.getLayout()[n]})),e.inEdges.sort((function(e,t){return e.node1.getLayout()[n]-t.node1.getLayout()[n]}))})),s["each"](e,(function(e){var t=0,n=0;s["each"](e.outEdges,(function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy})),s["each"](e.inEdges,(function(e){e.setLayout({ty:n},!0),n+=e.getLayout().dy}))}))}function jf(e){e.eachSeriesByType("sankey",(function(e){var t=e.getGraph(),n=t.nodes;if(n.length){var r=1/0,i=-1/0;s["each"](n,(function(e){var t=e.getLayout().value;t<r&&(r=t),t>i&&(i=t)})),s["each"](n,(function(t){var n=new Bl({type:"color",mappingMethod:"linear",dataExtent:[r,i],visual:e.get("color")}),a=n.mapValueToVisual(t.getLayout().value),o=t.getModel().get(["itemStyle","color"]);null!=o?(t.setVisual("color",o),t.setVisual("style",{fill:o})):(t.setVisual("color",a),t.setVisual("style",{fill:a}))}))}}))}function Ff(e){e.registerChartView(hf),e.registerSeriesModel(ff),e.registerLayout(pf),e.registerVisual(jf),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},(function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])}))}))}var zf=n("W4wi"),Bf=function(){function e(){}return e.prototype.getInitialData=function(e,t){var n,r,i=t.getComponent("xAxis",this.get("xAxisIndex")),a=t.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),l=a.get("type");"category"===o?(e.layout="horizontal",n=i.getOrdinalMeta(),r=!0):"category"===l?(e.layout="vertical",n=a.getOrdinalMeta(),r=!0):e.layout=e.layout||"horizontal";var u=["x","y"],c="horizontal"===e.layout?0:1,h=this._baseAxisDim=u[c],d=u[1-c],f=[i,a],p=f[c].get("type"),g=f[1-c].get("type"),m=e.data;if(m&&r){var v=[];s["each"](m,(function(e,t){var n;s["isArray"](e)?(n=e.slice(),e.unshift(t)):s["isArray"](e.value)?(n=e.value.slice(),e.value.unshift(t)):n=e,v.push(n)})),e.data=v}var y=this.defaultValueDimensions,b=[{name:h,type:Object(zf["a"])(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:Object(zf["a"])(g),dimsDef:y.slice()}];return Jn(this,{coordDimensions:b,dimensionsCount:y.length+1,encodeDefaulter:s["curry"](er["c"],b,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}(),Vf=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.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 Object(v["b"])(t,e),t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={zlevel:0,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},t}(Ae["a"]);Object(s["mixin"])(Vf,Bf,!0);var Gf=Vf,Hf=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this.group,a=this._data;this._data||i.removeAll();var o="horizontal"===e.get("layout")?1:0;r.diff(a).add((function(e){if(r.hasValue(e)){var t=r.getItemLayout(e),n=Xf(t,r,e,o,!0);r.setItemGraphicEl(e,n),i.add(n)}})).update((function(e,t){var n=a.getItemGraphicEl(t);if(r.hasValue(e)){var s=r.getItemLayout(e);n?Yf(s,n,r,e):n=Xf(s,r,e,o),i.add(n),r.setItemGraphicEl(e,n)}else i.remove(n)})).remove((function(e){var t=a.getItemGraphicEl(e);t&&i.remove(t)})).execute(),this._data=r},t.prototype.remove=function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(e){e&&t.remove(e)}))},t.type="boxplot",t}(vt["a"]),Uf=function(){function e(){}return e}(),Wf=function(e){function t(t){var n=e.call(this,t)||this;return n.type="boxplotBoxPath",n}return Object(v["b"])(t,e),t.prototype.getDefaultShape=function(){return new Uf},t.prototype.buildPath=function(e,t){var n=t.points,r=0;for(e.moveTo(n[r][0],n[r][1]),r++;r<4;r++)e.lineTo(n[r][0],n[r][1]);for(e.closePath();r<n.length;r++)e.moveTo(n[r][0],n[r][1]),r++,e.lineTo(n[r][0],n[r][1])},t}(l["b"]);function Xf(e,t,n,r,i){var a=e.ends,o=new Wf({shape:{points:i?Kf(a,r,e):a}});return Yf(e,o,t,n,i),o}function Yf(e,t,n,r,i){var a=n.hostModel,o=Le[i?"initProps":"updateProps"];o(t,{shape:{points:e.ends}},a,r),t.useStyle(n.getItemVisual(r,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=n.getItemModel(r);Object(Re["D"])(t,s),Object(Re["k"])(t,s.get(["emphasis","focus"]),s.get(["emphasis","blurScope"]))}function Kf(e,t,n){return s["map"](e,(function(e){return e=e.slice(),e[t]=n.initBaseline,e}))}var qf=Hf;function Zf(e,t){e.eachRawSeriesByType("boxplot",(function(e){e.getData().setVisual("legendSymbol","roundRect")}))}var $f=s["each"];function Qf(e){var t=Jf(e);$f(t,(function(e){var t=e.seriesModels;t.length&&(ep(e),$f(t,(function(t,n){tp(t,e.boxOffsetList[n],e.boxWidthList[n])})))}))}function Jf(e){var t=[],n=[];return e.eachSeriesByType("boxplot",(function(e){var r=e.getBaseAxis(),i=s["indexOf"](n,r);i<0&&(i=n.length,n[i]=r,t[i]={axis:r,seriesModels:[]}),t[i].seriesModels.push(e)})),t}function ep(e){var t,n,r=e.axis,i=e.seriesModels,a=i.length,o=e.boxWidthList=[],l=e.boxOffsetList=[],u=[];if("category"===r.type)n=r.getBandWidth();else{var c=0;$f(i,(function(e){c=Math.max(c,e.getData().count())})),t=r.getExtent(),Math.abs(t[1]-t[0])}$f(i,(function(e){var t=e.get("boxWidth");s["isArray"](t)||(t=[t,t]),u.push([Object(Ne["o"])(t[0],n)||0,Object(Ne["o"])(t[1],n)||0])}));var h=.8*n-2,d=h/a*.3,f=(h-d*(a-1))/a,p=f/2-h/2;$f(i,(function(e,t){l.push(p),p+=d+f,o.push(Math.min(Math.max(f,u[t][0]),u[t][1]))}))}function tp(e,t,n){var r=e.coordinateSystem,i=e.getData(),a=n/2,o="horizontal"===e.get("layout")?0:1,s=1-o,l=["x","y"],u=i.mapDimension(l[o]),c=i.mapDimensionsAll(l[s]);if(!(null==u||c.length<5))for(var h=0;h<i.count();h++){var d=i.get(u,h),f=b(d,c[2],h),p=b(d,c[0],h),g=b(d,c[1],h),m=b(d,c[3],h),v=b(d,c[4],h),y=[];_(y,g,!1),_(y,m,!0),y.push(p,g,v,m),x(y,p),x(y,v),x(y,f),i.setItemLayout(h,{initBaseline:f[s],ends:y})}function b(e,n,a){var l,u=i.get(n,a),c=[];return c[o]=e,c[s]=u,isNaN(e)||isNaN(u)?l=[NaN,NaN]:(l=r.dataToPoint(c),l[o]+=t),l}function _(e,t,n){var r=t.slice(),i=t.slice();r[o]+=a,i[o]-=a,n?e.push(r,i):e.push(i,r)}function x(e,t){var n=t.slice(),r=t.slice();n[o]-=a,r[o]+=a,e.push(n,r)}}function np(e,t){t=t||{};for(var n=[],r=[],i=t.boundIQR,a="none"===i||0===i,o=0;o<e.length;o++){var l=Object(Ne["b"])(e[o].slice()),u=Object(Ne["p"])(l,.25),c=Object(Ne["p"])(l,.5),h=Object(Ne["p"])(l,.75),d=l[0],f=l[l.length-1],p=(null==i?1.5:i)*(h-u),g=a?d:Math.max(d,u-p),m=a?f:Math.min(f,h+p),v=t.itemNameFormatter,y=Object(s["isFunction"])(v)?v({value:o}):Object(s["isString"])(v)?v.replace("{value}",o+""):o+"";n.push([y,g,u,c,h,m]);for(var b=0;b<l.length;b++){var _=l[b];if(_<g||_>m){var x=[y,_];r.push(x)}}}return{boxData:n,outliers:r}}var rp=n("b9e6"),ip=n("+rxo"),ap={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==ip["c"]){var n="";0,Object(rp["b"])(n)}var r=np(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:r.boxData},{data:r.outliers}]}};function op(e){e.registerSeriesModel(Gf),e.registerChartView(qf),e.registerVisual(Zf),e.registerLayout(Qf),e.registerTransform(ap)}var sp=["color","borderColor"],lp=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.render=function(e,t,n){this.group.removeClipPath(),this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,r){this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,r=this.group,i=t.getLayout("isSimpleBox"),a=e.get("clip",!0),o=e.coordinateSystem,s=o.getArea&&o.getArea();this._data||r.removeAll(),t.diff(n).add((function(n){if(t.hasValue(n)){var o=t.getItemLayout(n);if(a&&dp(s,o))return;var l=hp(o,n,!0);Le["initProps"](l,{shape:{points:o.ends}},e,n),fp(l,t,n,i),r.add(l),t.setItemGraphicEl(n,l)}})).update((function(o,l){var u=n.getItemGraphicEl(l);if(t.hasValue(o)){var c=t.getItemLayout(o);a&&dp(s,c)?r.remove(u):(u?Le["updateProps"](u,{shape:{points:c.ends}},e,o):u=hp(c,o),fp(u,t,o,i),r.add(u),t.setItemGraphicEl(o,u))}else r.remove(u)})).remove((function(e){var t=n.getItemGraphicEl(e);t&&r.remove(t)})).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),vp(e,this.group);var t=e.get("clip",!0)?wt(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){var n,r=t.getData(),i=r.getLayout("isSimpleBox");while(null!=(n=e.next())){var a=r.getItemLayout(n),o=hp(a,n);fp(o,r,n,i),o.incremental=!0,this.group.add(o)}},t.prototype._incrementalRenderLarge=function(e,t){vp(t,this.group,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(vt["a"]),up=function(){function e(){}return e}(),cp=function(e){function t(t){var n=e.call(this,t)||this;return n.type="normalCandlestickBox",n}return Object(v["b"])(t,e),t.prototype.getDefaultShape=function(){return new up},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(l["b"]);function hp(e,t,n){var r=e.ends;return new cp({shape:{points:n?pp(r,e):r},z2:100})}function dp(e,t){for(var n=!0,r=0;r<t.ends.length;r++)if(e.contain(t.ends[r][0],t.ends[r][1])){n=!1;break}return n}function fp(e,t,n,r){var i=t.getItemModel(n);e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.__simpleBox=r,Object(Re["D"])(e,i)}function pp(e,t){return s["map"](e,(function(e){return e=e.slice(),e[1]=t.initBaseline,e}))}var gp=function(){function e(){}return e}(),mp=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeCandlestickBox",n}return Object(v["b"])(t,e),t.prototype.getDefaultShape=function(){return new gp},t.prototype.buildPath=function(e,t){for(var n=t.points,r=0;r<n.length;)if(this.__sign===n[r++]){var i=n[r++];e.moveTo(i,n[r++]),e.lineTo(i,n[r++])}else r+=3},t}(l["b"]);function vp(e,t,n){var r=e.getData(),i=r.getLayout("largePoints"),a=new mp({shape:{points:i},__sign:1});t.add(a);var o=new mp({shape:{points:i},__sign:-1});t.add(o),yp(1,a,e,r),yp(-1,o,e,r),n&&(a.incremental=!0,o.incremental=!0)}function yp(e,t,n,r){var i=n.get(["itemStyle",e>0?"borderColor":"borderColor0"])||n.get(["itemStyle",e>0?"color":"color0"]),a=n.getModel("itemStyle").getItemStyle(sp);t.useStyle(a),t.style.fill=null,t.style.stroke=i}var bp=lp,_p=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return Object(v["b"])(t,e),t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,t,n){var r=t.getItemLayout(e);return r&&n.rect(r.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={zlevel:0,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},t}(Ae["a"]);Object(s["mixin"])(_p,Bf,!0);var xp=_p;function wp(e){e&&s["isArray"](e.series)&&s["each"](e.series,(function(e){s["isObject"](e)&&"k"===e.type&&(e.type="candlestick")}))}var Sp=["itemStyle","borderColor"],Tp=["itemStyle","borderColor0"],Op=["itemStyle","color"],Mp=["itemStyle","color0"],Ep={seriesType:"candlestick",plan:Object(Gt["a"])(),performRawSeries:!0,reset:function(e,t){function n(e,t){return t.get(e>0?Op:Mp)}function r(e,t){return t.get(e>0?Sp:Tp)}var i=e.getData();if(i.setVisual("legendSymbol","roundRect"),!t.isSeriesFiltered(e)){var a=e.pipelineContext.large;return!a&&{progress:function(e,t){var i;while(null!=(i=e.next())){var a=t.getItemModel(i),o=t.getItemLayout(i).sign,l=a.getItemStyle();l.fill=n(o,a),l.stroke=r(o,a)||l.fill;var u=t.ensureUniqueItemVisual(i,"style");Object(s["extend"])(u,l)}}}}}},Ap=Ep,Cp="undefined"!==typeof Float32Array?Float32Array:Array,Ip={seriesType:"candlestick",plan:Object(Gt["a"])(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),r=Lp(e,n),i=0,a=1,o=["x","y"],s=n.mapDimension(o[i]),l=n.mapDimensionsAll(o[a]),u=l[0],c=l[1],h=l[2],d=l[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),!(null==s||l.length<4))return{progress:e.pipelineContext.large?p:f};function f(e,n){var o;while(null!=(o=e.next())){var l=n.get(s,o),f=n.get(u,o),p=n.get(c,o),g=n.get(h,o),m=n.get(d,o),v=Math.min(f,p),y=Math.max(f,p),b=T(v,l),_=T(y,l),x=T(g,l),w=T(m,l),S=[];O(S,_,0),O(S,b,1),S.push(E(w),E(_),E(x),E(b)),n.setItemLayout(o,{sign:Dp(n,o,f,p,c),initBaseline:f>p?_[a]:b[a],ends:S,brushRect:M(g,m,l)})}function T(e,n){var r=[];return r[i]=n,r[a]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(r)}function O(e,t,n){var a=t.slice(),o=t.slice();a[i]=Object(Le["subPixelOptimize"])(a[i]+r/2,1,!1),o[i]=Object(Le["subPixelOptimize"])(o[i]-r/2,1,!0),n?e.push(a,o):e.push(o,a)}function M(e,t,n){var o=T(e,n),s=T(t,n);return o[i]-=r/2,s[i]-=r/2,{x:o[0],y:o[1],width:a?r:s[0]-o[0],height:a?s[1]-o[1]:r}}function E(e){return e[i]=Object(Le["subPixelOptimize"])(e[i],1),e}}function p(e,n){var r,o,l=new Cp(4*e.count),f=0,p=[],g=[];while(null!=(o=e.next())){var m=n.get(s,o),v=n.get(u,o),y=n.get(c,o),b=n.get(h,o),_=n.get(d,o);isNaN(m)||isNaN(b)||isNaN(_)?(l[f++]=NaN,f+=3):(l[f++]=Dp(n,o,v,y,c),p[i]=m,p[a]=b,r=t.dataToPoint(p,null,g),l[f++]=r?r[0]:NaN,l[f++]=r?r[1]:NaN,p[a]=_,r=t.dataToPoint(p,null,g),l[f++]=r?r[1]:NaN)}n.setLayout("largePoints",l)}}};function Dp(e,t,n,r,i){var a;return a=n>r?-1:n<r?1:t>0?e.get(i,t-1)<=r?1:-1:1,a}function Lp(e,t){var n,r=e.getBaseAxis(),i="category"===r.type?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/t.count()),a=Object(Ne["o"])(Object(s["retrieve2"])(e.get("barMaxWidth"),i),i),o=Object(Ne["o"])(Object(s["retrieve2"])(e.get("barMinWidth"),1),i),l=e.get("barWidth");return null!=l?Object(Ne["o"])(l,i):Math.max(Math.min(i/2,a),o)}var Pp=Ip;function kp(e){e.registerChartView(bp),e.registerSeriesModel(xp),e.registerPreprocessor(wp),e.registerVisual(Ap),e.registerLayout(Pp)}var Rp=3;function Np(e){return s["isArray"](e)||(e=[+e,+e]),e}function jp(e,t){var n=t.rippleEffectColor||t.color;e.eachChild((function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?n:null,fill:"fill"===t.brushType?n:null}})}))}var Fp=function(e){function t(t,n){var r=e.call(this)||this,i=new He(t,n),a=new De["a"];return r.add(i),r.add(a),r.updateData(t,n),r}return Object(v["b"])(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,r=this.childAt(1),i=0;i<Rp;i++){var a=Object(Pe["a"])(t,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var o=-i/Rp*e.period+e.effectOffset;a.animate("",!0).when(e.period,{scale:[e.rippleScale/2,e.rippleScale/2]}).delay(o).start(),a.animateStyle(!0).when(e.period,{opacity:0}).delay(o).start(),r.add(a)}jp(r,e)},t.prototype.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),r=["symbolType","period","rippleScale"],i=0;i<r.length;i++){var a=r[i];if(t[a]!==e[a])return this.stopEffectAnimation(),void this.startEffectAnimation(e)}jp(n,e)},t.prototype.highlight=function(){Object(Re["n"])(this)},t.prototype.downplay=function(){Object(Re["w"])(this)},t.prototype.updateData=function(e,t){var n=this,r=e.hostModel;this.childAt(0).updateData(e,t);var i=this.childAt(1),a=e.getItemModel(t),o=e.getItemVisual(t,"symbol"),s=Np(e.getItemVisual(t,"symbolSize")),l=e.getItemVisual(t,"style"),u=l&&l.fill;i.setScale(s),i.traverse((function(e){e.setStyle("fill",u)}));var c=a.getShallow("symbolOffset");c&&(i.x=Object(Ne["o"])(c[0],s[0]),i.y=Object(Ne["o"])(c[1],s[1]));var h=e.getItemVisual(t,"symbolRotate");i.rotation=(h||0)*Math.PI/180||0;var d={};d.showEffectOn=r.get("showEffectOn"),d.rippleScale=a.get(["rippleEffect","scale"]),d.brushType=a.get(["rippleEffect","brushType"]),d.period=1e3*a.get(["rippleEffect","period"]),d.effectOffset=t/e.count(),d.z=r.getShallow("z")||0,d.zlevel=r.getShallow("zlevel")||0,d.symbolType=o,d.color=u,d.rippleEffectColor=a.get(["rippleEffect","color"]),this.off("mouseover").off("mouseout").off("emphasis").off("normal"),"render"===d.showEffectOn?(this._effectCfg?this.updateEffectAnimation(d):this.startEffectAnimation(d),this._effectCfg=d):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(e){"emphasis"===e?"render"!==d.showEffectOn&&n.startEffectAnimation(d):"normal"===e&&"render"!==d.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=d,Object(Re["k"])(this)},t.prototype.fadeOut=function(e){this.off("mouseover").off("mouseout"),e&&e()},t}(De["a"]);s["inherits"](Fp,De["a"]);var zp=Fp,Bp=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.init=function(){this._symbolDraw=new Ke(zp)},t.prototype.render=function(e,t,n){var r=e.getData(),i=this._symbolDraw;i.updateData(r),this.group.add(i.group)},t.prototype.updateTransform=function(e,t,n){var r=e.getData();this.group.dirty();var i=Ht("").reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=Rr["clone"](t.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(vt["a"]),Vp=Bp,Gp=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(v["b"])(t,e),t.prototype.getInitialData=function(e,t){return Object(Ee["a"])(this.getSource(),this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10},t}(Ae["a"]),Hp=Gp;function Up(e){e.registerChartView(Vp),e.registerSeriesModel(Hp),e.registerLayout(Ht("effectScatter"))}var Wp=function(e){function t(t,n,r){var i=e.call(this)||this;return i.add(i.createLine(t,n,r)),i._updateEffectSymbol(t,n),i}return Object(v["b"])(t,e),t.prototype.createLine=function(e,t,n){return new sc(e,t,n)},t.prototype._updateEffectSymbol=function(e,t){var n=e.getItemModel(t),r=n.getModel("effect"),i=r.get("symbolSize"),a=r.get("symbol");s["isArray"](i)||(i=[i,i]);var o=e.getItemVisual(t,"style"),l=r.get("color")||o&&o.stroke,u=this.childAt(1);this._symbolType!==a&&(this.remove(u),u=Object(Pe["a"])(a,-.5,-.5,1,1,l),u.z2=100,u.culling=!0,this.add(u)),u&&(u.setStyle("shadowColor",l),u.setStyle(r.getItemStyle(["color"])),u.scaleX=i[0],u.scaleY=i[1],u.setColor(l),this._symbolType=a,this._symbolScale=i,this._updateEffectAnimation(e,r,t))},t.prototype._updateEffectAnimation=function(e,t,n){var r=this.childAt(1);if(r){var i=this,a=e.getItemLayout(n),o=1e3*t.get("period"),l=t.get("loop"),u=t.get("constantSpeed"),c=s["retrieve"](t.get("delay"),(function(t){return t/e.count()*o/3}));if(r.ignore=!0,this._updateAnimationPoints(r,a),u>0&&(o=this._getLineLength(r)/u*1e3),(o!==this._period||l!==this._loop)&&(r.stopAnimation(),o>0)){var h=void 0;h="function"===typeof c?c(n):c,r.__t>0&&(h=-o*r.__t),r.__t=0;var d=r.animate("",l).when(o,{__t:1}).delay(h).during((function(){i._updateSymbolPosition(r)}));l||d.done((function(){i.remove(r)})),d.start()}this._period=o,this._loop=l}},t.prototype._getLineLength=function(e){return Nr["dist"](e.__p1,e.__cp1)+Nr["dist"](e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,r=e.__cp1,i=e.__t,a=[e.x,e.y],o=a.slice(),s=lt["h"],l=lt["i"];a[0]=s(t[0],r[0],n[0],i),a[1]=s(t[1],r[1],n[1],i);var u=l(t[0],r[0],n[0],i),c=l(t[1],r[1],n[1],i);e.rotation=-Math.atan2(c,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==e.__lastT&&e.__lastT<e.__t?(e.scaleY=1.05*Nr["dist"](o,a),1===i&&(a[0]=o[0]+(a[0]-o[0])/2,a[1]=o[1]+(a[1]-o[1])/2)):1===e.__lastT?e.scaleY=2*Nr["dist"](t,a):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=a[0],e.y=a[1]},t.prototype.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var n=e.getItemModel(t).getModel("effect");this._updateEffectAnimation(e,n,t)},t}(De["a"]),Xp=Wp,Yp=function(e){function t(t,n,r){var i=e.call(this)||this;return i._createPolyline(t,n,r),i}return Object(v["b"])(t,e),t.prototype._createPolyline=function(e,t,n){var r=e.getItemLayout(t),i=new Fn["a"]({shape:{points:r}});this.add(i),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel,i=this.childAt(0),a={shape:{points:e.getItemLayout(t)}};Le["updateProps"](i,a,r,t),this._updateCommonStl(e,t,n)},t.prototype._updateCommonStl=function(e,t,n){var r=this.childAt(0),i=e.getItemModel(t),a=n&&n.emphasisLineStyle;n&&!e.hasItemOption||(a=i.getModel(["emphasis","lineStyle"]).getLineStyle()),r.useStyle(e.getItemVisual(t,"style")),r.style.fill=null,r.style.strokeNoScale=!0;var o=r.ensureState("emphasis");o.style=a,Object(Re["k"])(this)},t.prototype.updateLayout=function(e,t){var n=this.childAt(0);n.setShape("points",e.getItemLayout(t))},t}(De["a"]),Kp=Yp,qp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return Object(v["b"])(t,e),t.prototype.createLine=function(e,t,n){return new Kp(e,t,n)},t.prototype._updateAnimationPoints=function(e,t){this._points=t;for(var n=[0],r=0,i=1;i<t.length;i++){var a=t[i-1],o=t[i];r+=Nr["dist"](a,o),n.push(r)}if(0!==r){for(i=0;i<n.length;i++)n[i]/=r;this._offsets=n,this._length=r}else this._length=0},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var t=e.__t,n=this._points,r=this._offsets,i=n.length;if(r){var a,o=this._lastFrame;if(t<this._lastFramePercent){var s=Math.min(o+1,i-1);for(a=s;a>=0;a--)if(r[a]<=t)break;a=Math.min(a,i-2)}else{for(a=o;a<i;a++)if(r[a]>t)break;a=Math.min(a-1,i-2)}var l=(t-r[a])/(r[a+1]-r[a]),u=n[a],c=n[a+1];e.x=u[0]*(1-l)+l*c[0],e.y=u[1]*(1-l)+l*c[1];var h=c[0]-u[0],d=c[1]-u[1];e.rotation=-Math.atan2(d,h)-Math.PI/2,this._lastFrame=a,this._lastFramePercent=t,e.ignore=!1}},t}(Xp),Zp=qp,$p=n("aEsj"),Qp=n("PzXq"),Jp=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),eg=function(e){function t(t){return e.call(this,t)||this}return Object(v["b"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Jp},t.prototype.buildPath=function(e,t){var n=t.segs,r=t.curveness;if(t.polyline)for(var i=0;i<n.length;){var a=n[i++];if(a>0){e.moveTo(n[i++],n[i++]);for(var o=1;o<a;o++)e.lineTo(n[i++],n[i++])}}else for(i=0;i<n.length;){var s=n[i++],l=n[i++],u=n[i++],c=n[i++];if(e.moveTo(s,l),r>0){var h=(s+u)/2-(l-c)*r,d=(l+c)/2-(u-s)*r;e.quadraticCurveTo(h,d,u,c)}else e.lineTo(u,c)}},t.prototype.findDataIndex=function(e,t){var n=this.shape,r=n.segs,i=n.curveness,a=this.style.lineWidth;if(n.polyline)for(var o=0,s=0;s<r.length;){var l=r[s++];if(l>0)for(var u=r[s++],c=r[s++],h=1;h<l;h++){var d=r[s++],f=r[s++];if($p["a"](u,c,d,f,a,e,t))return o}o++}else for(o=0,s=0;s<r.length;){u=r[s++],c=r[s++],d=r[s++],f=r[s++];if(i>0){var p=(u+d)/2-(c-f)*i,g=(c+f)/2-(d-u)*i;if(Qp["a"](u,c,p,g,d,f,a,e,t))return o}else if($p["a"](u,c,d,f,a,e,t))return o;o++}return-1},t}(l["b"]),tg=function(){function e(){this.group=new De["a"]}return e.prototype.isPersistent=function(){return!this._incremental},e.prototype.updateData=function(e){this.group.removeAll();var t=new eg({rectHover:!0,cursor:"default"});t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e),this.group.add(t),this._incremental=null},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),e.count()>5e5?(this._incremental||(this._incremental=new lr["a"]({silent:!0})),this.group.add(this._incremental)):this._incremental=null},e.prototype.incrementalUpdate=function(e,t){var n=new eg;n.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(n,t,!!this._incremental),this._incremental?this._incremental.addDisplayable(n,!0):(n.rectHover=!0,n.cursor="default",n.__startIndex=e.start,this.group.add(n))},e.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},e.prototype._setCommon=function(e,t,n){var r=t.hostModel;e.setShape({polyline:r.get("polyline"),curveness:r.get(["lineStyle","curveness"])}),e.useStyle(r.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var i=t.getVisual("style");if(i&&i.stroke&&e.setStyle("stroke",i.stroke),e.setStyle("fill",null),!n){var a=Object(ke["a"])(e);a.seriesIndex=r.seriesIndex,e.on("mousemove",(function(t){a.dataIndex=null;var n=e.findDataIndex(t.offsetX,t.offsetY);n>0&&(a.dataIndex=n+e.__startIndex)}))}},e.prototype._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()},e}(),ng=tg,rg={seriesType:"lines",plan:Object(Gt["a"])(),reset:function(e){var t=e.coordinateSystem,n=e.get("polyline"),r=e.pipelineContext.large;return{progress:function(i,a){var o=[];if(r){var s=void 0,l=i.end-i.start;if(n){for(var u=0,c=i.start;c<i.end;c++)u+=e.getLineCoordsCount(c);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var h=0,d=[];for(c=i.start;c<i.end;c++){var f=e.getLineCoords(c,o);n&&(s[h++]=f);for(var p=0;p<f;p++)d=t.dataToPoint(o[p],!1,d),s[h++]=d[0],s[h++]=d[1]}a.setLayout("linesPoints",s)}else for(c=i.start;c<i.end;c++){var g=a.getItemModel(c),m=(f=e.getLineCoords(c,o),[]);if(n)for(var v=0;v<f;v++)m.push(t.dataToPoint(o[v]));else{m[0]=t.dataToPoint(o[0]),m[1]=t.dataToPoint(o[1]);var y=g.get(["lineStyle","curveness"]);+y&&(m[2]=[(m[0][0]+m[1][0])/2-(m[0][1]-m[1][1])*y,(m[0][1]+m[1][1])/2-(m[1][0]-m[0][0])*y])}a.setItemLayout(c,m)}}}}},ig=rg,ag=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this._updateLineDraw(r,e),a=e.get("zlevel"),o=e.get(["effect","trailLength"]),s=n.getZr(),l="svg"===s.painter.getType();(l||s.painter.getLayer(a).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&o)&&(l||s.configLayer(a,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(o/10+.9,1),0)}));i.updateData(r);var u=e.get("clip",!0)&&wt(e.coordinateSystem,!1,e);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=a,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData(),i=this._updateLineDraw(r,e);i.incrementalPrepareUpdate(r),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var r=e.getData(),i=e.pipelineContext;if(!this._finished||i.large||i.progressiveRender)return{update:!0};var a=ig.reset(e,t,n);a.progress&&a.progress({start:0,end:r.count(),count:r.count()},r),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,r=this._showEffect(t),i=!!t.get("polyline"),a=t.pipelineContext,o=a.large;return n&&r===this._hasEffet&&i===this._isPolyline&&o===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=o?new ng:new fc(i?r?Zp:Kp:r?Xp:sc),this._hasEffet=r,this._isPolyline=i,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var t=e.getZr(),n="svg"===t.painter.getType();n||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.type="lines",t}(vt["a"]),og=ag,sg="undefined"===typeof Uint32Array?Array:Uint32Array,lg="undefined"===typeof Float64Array?Array:Float64Array;function ug(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=Object(s["map"])(t,(function(e){var t=[e[0].coord,e[1].coord],n={coords:t};return e[0].name&&(n.fromName=e[0].name),e[1].name&&(n.toName=e[1].name),Object(s["mergeAll"])([n,e[0],e[1]])})))}var cg=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return Object(v["b"])(t,e),t.prototype.init=function(t){t.data=t.data||[],ug(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(ug(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=Object(s["concatArray"])(this._flatCoords,t.flatCoords),this._flatCoordsOffset=Object(s["concatArray"])(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e),n=t.option instanceof Array?t.option:t.getShallow("coords");return n},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*e],r=this._flatCoordsOffset[2*e+1],i=0;i<r;i++)t[i]=t[i]||[],t[i][0]=this._flatCoords[n+2*i],t[i][1]=this._flatCoords[n+2*i+1];return r}var a=this._getCoordsFromItemModel(e);for(i=0;i<a.length;i++)t[i]=t[i]||[],t[i][0]=a[i][0],t[i][1]=a[i][1];return a.length},t.prototype._processFlatCoordsArray=function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),"number"===typeof e[0]){for(var n=e.length,r=new sg(n),i=new lg(n),a=0,o=0,s=0,l=0;l<n;){s++;var u=e[l++];r[o++]=a+t,r[o++]=u;for(var c=0;c<u;c++){var h=e[l++],d=e[l++];i[a++]=h,i[a++]=d}}return{flatCoordsOffset:new Uint32Array(r.buffer,0,o),flatCoords:i,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,t){var n=new Qn["a"](["value"],this);return n.hasItemOption=!1,n.initData(e.data,[],(function(e,t,r,i){if(e instanceof Array)return NaN;n.hasItemOption=!0;var a=e.value;return null!=a?a instanceof Array?a[i]:a:void 0})),n},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=r.getItemModel(e),a=i.get("name");if(a)return a;var o=i.get("fromName"),s=i.get("toName"),l=[];return null!=o&&l.push(o),null!=s&&l.push(s),Object(qi["c"])("nameValue",{name:l.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",zlevel:0,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}},t}(Ae["a"]),hg=cg;function dg(e){return e instanceof Array||(e=[e,e]),e}var fg={seriesType:"lines",reset:function(e){var t=dg(e.get("symbol")),n=dg(e.get("symbolSize")),r=e.getData();function i(e,t){var n=e.getItemModel(t),r=dg(n.getShallow("symbol",!0)),i=dg(n.getShallow("symbolSize",!0));r[0]&&e.setItemVisual(t,"fromSymbol",r[0]),r[1]&&e.setItemVisual(t,"toSymbol",r[1]),i[0]&&e.setItemVisual(t,"fromSymbolSize",i[0]),i[1]&&e.setItemVisual(t,"toSymbolSize",i[1])}return r.setVisual("fromSymbol",t&&t[0]),r.setVisual("toSymbol",t&&t[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]),{dataEach:r.hasItemOption?i:null}}},pg=fg;function gg(e){e.registerChartView(og),e.registerSeriesModel(hg),e.registerLayout(ig),e.registerVisual(pg)}var mg=256,vg=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=s["createCanvas"]();this.canvas=e}return e.prototype.update=function(e,t,n,r,i,a){var o=this._getBrush(),s=this._getGradient(i,"inRange"),l=this._getGradient(i,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),d=e.length;c.width=t,c.height=n;for(var f=0;f<d;++f){var p=e[f],g=p[0],m=p[1],v=p[2],y=r(v);h.globalAlpha=y,h.drawImage(o,g-u,m-u)}if(!c.width||!c.height)return c;var b=h.getImageData(0,0,c.width,c.height),_=b.data,x=0,w=_.length,S=this.minOpacity,T=this.maxOpacity,O=T-S;while(x<w){y=_[x+3]/256;var M=4*Math.floor(y*(mg-1));if(y>0){var E=a(y)?s:l;y>0&&(y=y*O+S),_[x++]=E[M],_[x++]=E[M+1],_[x++]=E[M+2],_[x++]=E[M+3]*y*256}else x+=4}return h.putImageData(b,0,0),c},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=s["createCanvas"]()),t=this.pointSize+this.blurSize,n=2*t;e.width=n,e.height=n;var r=e.getContext("2d");return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor="#000",r.beginPath(),r.arc(-t,t,this.pointSize,0,2*Math.PI,!0),r.closePath(),r.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,r=n[t]||(n[t]=new Uint8ClampedArray(1024)),i=[0,0,0,0],a=0,o=0;o<256;o++)e[t](o/255,!0,i),r[a++]=i[0],r[a++]=i[1],r[a++]=i[2],r[a++]=i[3];return r},e}(),yg=vg;function bg(e,t,n){var r=e[1]-e[0];t=s["map"](t,(function(t){return{interval:[(t.interval[0]-e[0])/r,(t.interval[1]-e[0])/r]}}));var i=t.length,a=0;return function(e){var r;for(r=a;r<i;r++){var o=t[r].interval;if(o[0]<=e&&e<=o[1]){a=r;break}}if(r===i)for(r=a-1;r>=0;r--){o=t[r].interval;if(o[0]<=e&&e<=o[1]){a=r;break}}return r>=0&&r<i&&n[r]}}function _g(e,t){var n=e[1]-e[0];return t=[(t[0]-e[0])/n,(t[1]-e[0])/n],function(e){return e>=t[0]&&e<=t[1]}}function xg(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var wg=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.render=function(e,t,n){var r;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(n){n===e&&(r=t)}))})),this.group.removeAll(),this._incrementalDisplayable=null;var i=e.coordinateSystem;"cartesian2d"===i.type||"calendar"===i.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):xg(i)&&this._renderOnGeo(i,e,r,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,r){var i=t.coordinateSystem;i&&(xg(i)?this.render(t,n,r):this._renderOnCartesianAndCalendar(t,r,e.start,e.end,!0))},t.prototype._renderOnCartesianAndCalendar=function(e,t,n,r,i){var a,o,s,l,u=e.coordinateSystem;if(St(u,"cartesian2d")){var c=u.getAxis("x"),h=u.getAxis("y");0,a=c.getBandWidth(),o=h.getBandWidth(),s=c.scale.getExtent(),l=h.scale.getExtent()}for(var d=this.group,f=e.getData(),p=e.getModel(["emphasis","itemStyle"]).getItemStyle(),g=e.getModel(["blur","itemStyle"]).getItemStyle(),m=e.getModel(["select","itemStyle"]).getItemStyle(),v=Object(Be["e"])(e),y=e.get(["emphasis","focus"]),b=e.get(["emphasis","blurScope"]),_=St(u,"cartesian2d")?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],x=n;x<r;x++){var w=void 0,S=f.getItemVisual(x,"style");if(St(u,"cartesian2d")){var T=f.get(_[0],x),O=f.get(_[1],x);if(isNaN(f.get(_[2],x))||T<s[0]||T>s[1]||O<l[0]||O>l[1])continue;var M=u.dataToPoint([T,O]);w=new yt["a"]({shape:{x:Math.floor(Math.round(M[0])-a/2),y:Math.floor(Math.round(M[1])-o/2),width:Math.ceil(a),height:Math.ceil(o)},style:S})}else{if(isNaN(f.get(_[1],x)))continue;w=new yt["a"]({z2:1,shape:u.dataToRect([f.get(_[0],x)]).contentShape,style:S})}var E=f.getItemModel(x);if(f.hasItemOption){var A=E.getModel("emphasis");p=A.getModel("itemStyle").getItemStyle(),g=E.getModel(["blur","itemStyle"]).getItemStyle(),m=E.getModel(["select","itemStyle"]).getItemStyle(),y=A.get("focus"),b=A.get("blurScope"),v=Object(Be["e"])(E)}var C=e.getRawValue(x),I="-";C&&null!=C[2]&&(I=C[2]+""),Object(Be["g"])(w,v,{labelFetcher:e,labelDataIndex:x,defaultOpacity:S.opacity,defaultText:I}),w.ensureState("emphasis").style=p,w.ensureState("blur").style=g,w.ensureState("select").style=m,Object(Re["k"])(w,y,b),w.incremental=i,i&&(w.states.emphasis.hoverLayer=!0),d.add(w),f.setItemGraphicEl(x,w)}},t.prototype._renderOnGeo=function(e,t,n,r){var i=n.targetVisuals.inRange,a=n.targetVisuals.outOfRange,o=t.getData(),s=this._hmLayer||this._hmLayer||new yg;s.blurSize=t.get("blurSize"),s.pointSize=t.get("pointSize"),s.minOpacity=t.get("minOpacity"),s.maxOpacity=t.get("maxOpacity");var l=e.getViewRect().clone(),c=e.getRoamTransform();l.applyTransform(c);var h=Math.max(l.x,0),d=Math.max(l.y,0),f=Math.min(l.width+l.x,r.getWidth()),p=Math.min(l.height+l.y,r.getHeight()),g=f-h,m=p-d,v=[o.mapDimension("lng"),o.mapDimension("lat"),o.mapDimension("value")],y=o.mapArray(v,(function(t,n,r){var i=e.dataToPoint([t,n]);return i[0]-=h,i[1]-=d,i.push(r),i})),b=n.getExtent(),_="visualMap.continuous"===n.type?_g(b,n.option.range):bg(b,n.getPieceList(),n.option.selected);s.update(y,g,m,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:a.color.getColorMapper()},_);var x=new u["a"]({style:{width:g,height:m,x:h,y:d,image:s.canvas},silent:!0});this.group.add(x)},t.type="heatmap",t}(vt["a"]),Sg=wg,Tg=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.getInitialData=function(e,t){return Object(Ee["a"])(this.getSource(),this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=Mc["a"].get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(Ae["a"]),Og=Tg;function Mg(e){e.registerChartView(Sg),e.registerSeriesModel(Og)}var Eg=["itemStyle","borderWidth"],Ag=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Cg=new na["a"],Ig=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.render=function(e,t,n){var r=this.group,i=e.getData(),a=this._data,o=e.coordinateSystem,s=o.getBaseAxis(),l=s.isHorizontal(),u=o.master.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:o,coordSysExtent:[[u.x,u.x+u.width],[u.y,u.y+u.height]],isHorizontal:l,valueDim:Ag[+l],categoryDim:Ag[1-+l]};return i.diff(a).add((function(e){if(i.hasValue(e)){var t=Gg(i,e),n=Dg(i,e,t,c),a=Wg(i,c,n);i.setItemGraphicEl(e,a),r.add(a),$g(a,c,n)}})).update((function(e,t){var n=a.getItemGraphicEl(t);if(i.hasValue(e)){var o=Gg(i,e),s=Dg(i,e,o,c),l=Kg(i,s);n&&l!==n.__pictorialShapeStr&&(r.remove(n),i.setItemGraphicEl(e,null),n=null),n?Xg(n,c,s):n=Wg(i,c,s,!0),i.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=s,r.add(n),$g(n,c,s)}else r.remove(n)})).remove((function(e){var t=a.getItemGraphicEl(e);t&&Yg(a,e,t.__pictorialSymbolMeta.animationModel,t)})).execute(),this._data=i,this.group},t.prototype.remove=function(e,t){var n=this.group,r=this._data;e.get("animation")?r&&r.eachItemGraphicEl((function(t){Yg(r,Object(ke["a"])(t).dataIndex,e,t)})):n.removeAll()},t.type="pictorialBar",t}(vt["a"]);function Dg(e,t,n,r){var i=e.getItemLayout(t),a=n.get("symbolRepeat"),o=n.get("symbolClip"),l=n.get("symbolPosition")||"start",u=n.get("symbolRotate"),c=(u||0)*Math.PI/180||0,h=n.get("symbolPatternSize")||2,d=n.isAnimationEnabled(),f={dataIndex:t,layout:i,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:h,rotation:c,animationModel:d?n:null,hoverScale:d&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};Lg(n,a,i,r,f),kg(e,t,i,a,o,f.boundingLength,f.pxSign,h,r,f),Rg(n,f.symbolScale,c,r,f);var p=f.symbolSize,g=n.get("symbolOffset");return s["isArray"](g)&&(g=[Object(Ne["o"])(g[0],p[0]),Object(Ne["o"])(g[1],p[1])]),Ng(n,p,i,a,o,g,l,f.valueLineWidth,f.boundingLength,f.repeatCutLength,r,f),f}function Lg(e,t,n,r,i){var a,o=r.valueDim,l=e.get("symbolBoundingData"),u=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),c=u.toGlobalCoord(u.dataToCoord(0)),h=1-+(n[o.wh]<=0);if(s["isArray"](l)){var d=[Pg(u,l[0])-c,Pg(u,l[1])-c];d[1]<d[0]&&d.reverse(),a=d[h]}else a=null!=l?Pg(u,l)-c:t?r.coordSysExtent[o.index][h]-c:n[o.wh];i.boundingLength=a,t&&(i.repeatCutLength=n[o.wh]),i.pxSign=a>0?1:a<0?-1:0}function Pg(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function kg(e,t,n,r,i,a,o,l,u,c){var h,d=u.valueDim,f=u.categoryDim,p=Math.abs(n[f.wh]),g=e.getItemVisual(t,"symbolSize");h=s["isArray"](g)?g.slice():null==g?["100%","100%"]:[g,g],h[f.index]=Object(Ne["o"])(h[f.index],p),h[d.index]=Object(Ne["o"])(h[d.index],r?p:Math.abs(a)),c.symbolSize=h;var m=c.symbolScale=[h[0]/l,h[1]/l];m[d.index]*=(u.isHorizontal?-1:1)*o}function Rg(e,t,n,r,i){var a=e.get(Eg)||0;a&&(Cg.attr({scaleX:t[0],scaleY:t[1],rotation:n}),Cg.updateTransform(),a/=Cg.getLineScale(),a*=t[r.valueDim.index]),i.valueLineWidth=a}function Ng(e,t,n,r,i,a,o,l,u,c,h,d){var f=h.categoryDim,p=h.valueDim,g=d.pxSign,m=Math.max(t[p.index]+l,0),v=m;if(r){var y=Math.abs(u),b=s["retrieve"](e.get("symbolMargin"),"15%")+"",_=!1;b.lastIndexOf("!")===b.length-1&&(_=!0,b=b.slice(0,b.length-1));var x=Object(Ne["o"])(b,t[p.index]),w=Math.max(m+2*x,0),S=_?0:2*x,T=Object(Ne["i"])(r),O=T?r:Qg((y+S)/w),M=y-O*m;x=M/2/(_?O:O-1),w=m+2*x,S=_?0:2*x,T||"fixed"===r||(O=c?Qg((Math.abs(c)+S)/w):0),v=O*w-S,d.repeatTimes=O,d.symbolMargin=x}var E=g*(v/2),A=d.pathPosition=[];A[f.index]=n[f.wh]/2,A[p.index]="start"===o?E:"end"===o?u-E:u/2,a&&(A[0]+=a[0],A[1]+=a[1]);var C=d.bundlePosition=[];C[f.index]=n[f.xy],C[p.index]=n[p.xy];var I=d.barRectShape=s["extend"]({},n);I[p.wh]=g*Math.max(Math.abs(n[p.wh]),Math.abs(A[p.index]+E)),I[f.wh]=n[f.wh];var D=d.clipShape={};D[f.xy]=-n[f.xy],D[f.wh]=h.ecSize[f.wh],D[p.xy]=0,D[p.wh]=n[p.wh]}function jg(e){var t=e.symbolPatternSize,n=Object(Pe["a"])(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function Fg(e,t,n,r){var i=e.__pictorialBundle,a=n.symbolSize,o=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,u=n.repeatTimes||0,c=0,h=a[t.valueDim.index]+o+2*n.symbolMargin;for(qg(e,(function(e){e.__pictorialAnimationIndex=c,e.__pictorialRepeatTimes=u,c<u?Zg(e,null,p(c),n,r):Zg(e,null,{scaleX:0,scaleY:0},n,r,(function(){i.remove(e)})),c++}));c<u;c++){var d=jg(n);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,i.add(d);var f=p(c);Zg(d,{x:f.x,y:f.y,scaleX:0,scaleY:0},{scaleX:f.scaleX,scaleY:f.scaleY,rotation:f.rotation},n,r)}function p(e){var t=s.slice(),r=n.pxSign,i=e;return("start"===n.symbolRepeatDirection?r>0:r<0)&&(i=u-1-e),t[l.index]=h*(i-u/2+.5)+s[l.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function zg(e,t,n,r){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?Zg(a,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(a=e.__pictorialMainPath=jg(n),i.add(a),Zg(a,{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 Bg(e,t,n){var r=s["extend"]({},t.barRectShape),i=e.__pictorialBarRect;i?Zg(i,null,{shape:r},t,n):(i=e.__pictorialBarRect=new yt["a"]({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),e.add(i))}function Vg(e,t,n,r){if(n.symbolClip){var i=e.__pictorialClipPath,a=s["extend"]({},n.clipShape),o=t.valueDim,l=n.animationModel,u=n.dataIndex;if(i)Le["updateProps"](i,{shape:a},l,u);else{a[o.wh]=0,i=new yt["a"]({shape:a}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var c={};c[o.wh]=n.clipShape[o.wh],Le[r?"updateProps":"initProps"](i,{shape:c},l,u)}}}function Gg(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=Hg,n.isAnimationEnabled=Ug,n}function Hg(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function Ug(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Wg(e,t,n,r){var i=new De["a"],a=new De["a"];return i.add(a),i.__pictorialBundle=a,a.x=n.bundlePosition[0],a.y=n.bundlePosition[1],n.symbolRepeat?Fg(i,t,n):zg(i,t,n),Bg(i,n,r),Vg(i,t,n,r),i.__pictorialShapeStr=Kg(e,n),i.__pictorialSymbolMeta=n,i}function Xg(e,t,n){var r=n.animationModel,i=n.dataIndex,a=e.__pictorialBundle;Le["updateProps"](a,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?Fg(e,t,n,!0):zg(e,t,n,!0),Bg(e,n,!0),Vg(e,t,n,!0)}function Yg(e,t,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var a=[];qg(r,(function(e){a.push(e)})),r.__pictorialMainPath&&a.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),s["each"](a,(function(e){Le["removeElement"](e,{scaleX:0,scaleY:0},n,t,(function(){r.parent&&r.parent.remove(r)}))})),e.setItemGraphicEl(t,null)}function Kg(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function qg(e,t,n){s["each"](e.__pictorialBundle.children(),(function(r){r!==e.__pictorialBarRect&&t.call(n,r)}))}function Zg(e,t,n,r,i,a){t&&e.attr(t),r.symbolClip&&!i?n&&e.attr(n):n&&Le[i?"updateProps":"initProps"](e,n,r.animationModel,r.dataIndex,a)}function $g(e,t,n){var r=n.dataIndex,i=n.itemModel,a=i.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),l=i.getModel(["blur","itemStyle"]).getItemStyle(),c=i.getModel(["select","itemStyle"]).getItemStyle(),h=i.getShallow("cursor"),d=a.get("focus"),f=a.get("blurScope"),p=a.get("scale");qg(e,(function(e){if(e instanceof u["a"]){var t=e.style;e.useStyle(s["extend"]({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var r=e.ensureState("emphasis");r.style=o,p&&(r.scaleX=1.1*e.scaleX,r.scaleY=1.1*e.scaleY),e.ensureState("blur").style=l,e.ensureState("select").style=c,h&&(e.cursor=h),e.z2=n.z2}));var g=t.valueDim.posDesc[+(n.boundingLength>0)],m=e.__pictorialBarRect;Object(Be["g"])(m,Object(Be["e"])(i),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:Fe(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:g}),Object(Re["k"])(e,d,f)}function Qg(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var Jg=Ig,em=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return Object(v["b"])(t,e),t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Object($t["d"])(Zt.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"}}}),t}(Zt),tm=em;function nm(e){e.registerChartView(Jg),e.registerSeriesModel(tm),e.registerLayout(Object(s["curry"])(Kt["c"],"pictorialBar"))}var rm=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return Object(v["b"])(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this,a=this.group,o=e.getLayerSeries(),l=r.getLayout("layoutInfo"),u=l.rect,c=l.boundaryGap;function h(e){return e.name}a.x=0,a.y=u.y+c[0];var d=new qs["a"](this._layersSeries||[],o,h,h),f=[];function p(t,n,s){var l=i._layers;if("remove"!==t){for(var u,c,h=[],d=[],p=o[n].indices,g=0;g<p.length;g++){var m=r.getItemLayout(p[g]),v=m.x,y=m.y0,b=m.y;h.push(v,y),d.push(v,y+b),u=r.getItemVisual(p[g],"style")}var _=r.getItemLayout(p[0]),x=e.getModel("label"),w=x.get("margin"),S=e.getModel("emphasis");if("add"===t){var T=f[n]=new De["a"];c=new mt({shape:{points:h,stackedOnPoints:d,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),T.add(c),a.add(T),e.isAnimationEnabled()&&c.setClipPath(im(c.getBoundingRect(),e,(function(){c.removeClipPath()})))}else{T=l[s];c=T.childAt(0),a.add(T),f[n]=T,Le["updateProps"](c,{shape:{points:h,stackedOnPoints:d}},e)}Object(Be["g"])(c,Object(Be["e"])(e),{labelDataIndex:p[g-1],defaultText:r.getName(p[g-1]),inheritColor:u.fill},{normal:{verticalAlign:"middle"}}),c.setTextConfig({position:null,local:!0});var O=c.getTextContent();O&&(O.x=_.x-w,O.y=_.y0+_.y/2),c.useStyle(u),r.setItemGraphicEl(n,c),Object(Re["D"])(c,e),Object(Re["k"])(c,S.get("focus"),S.get("blurScope"))}else a.remove(l[n])}d.add(Object(s["bind"])(p,this,"add")).update(Object(s["bind"])(p,this,"update")).remove(Object(s["bind"])(p,this,"remove")).execute(),this._layersSeries=o,this._layers=f},t.type="themeRiver",t}(vt["a"]);function im(e,t,n){var r=new yt["a"]({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Le["initProps"](r,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),r}var am=rm,om=2,sm=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.useColorPaletteOnData=!0,n}return Object(v["b"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new nr(s["bind"](this.getData,this),s["bind"](this.getRawData,this))},t.prototype.fixData=function(e){var t=e.length,n={},r=Object(ot["j"])(e,(function(e){return n.hasOwnProperty(e[0]+"")||(n[e[0]+""]=-1),e[2]})),i=[];r.buckets.each((function(e,t){i.push({name:t,dataList:e})}));for(var a=i.length,o=0;o<a;++o){for(var s=i[o].name,l=0;l<i[o].dataList.length;++l){var u=i[o].dataList[l][0]+"";n[u]=o}for(var u in n)n.hasOwnProperty(u)&&n[u]!==o&&(n[u]=o,e[t]=[u,0,s],t++)}return e},t.prototype.getInitialData=function(e,t){for(var n=this.getReferringComponents("singleAxis",ot["b"]).models[0],r=n.get("type"),i=s["filter"](e.data,(function(e){return void 0!==e[2]})),a=this.fixData(i||[]),o=[],l=this.nameMap=s["createHashMap"](),u=0,c=0;c<a.length;++c)o.push(a[c][om]),l.get(a[c][om])||(l.set(a[c][om],u),u++);var h=Object($n["a"])(a,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Object(zf["a"])(r)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),d=new Qn["a"](h,this);return d.initData(a),d},t.prototype.getLayerSeries=function(){for(var e=this.getData(),t=e.count(),n=[],r=0;r<t;++r)n[r]=r;var i=e.mapDimension("single"),a=Object(ot["j"])(n,(function(t){return e.get("name",t)})),o=[];return a.buckets.each((function(t,n){t.sort((function(t,n){return e.get(i,t)-e.get(i,n)})),o.push({name:n,indices:t})})),o},t.prototype.getAxisTooltipData=function(e,t,n){s["isArray"](e)||(e=e?[e]:[]);for(var r,i=this.getData(),a=this.getLayerSeries(),o=[],l=a.length,u=0;u<l;++u){for(var c=Number.MAX_VALUE,h=-1,d=a[u].indices.length,f=0;f<d;++f){var p=i.get(e[0],a[u].indices[f]),g=Math.abs(p-t);g<=c&&(r=p,c=g,h=a[u].indices[f])}o.push(h)}return{dataIndices:o,nestestValue:r}},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=r.getName(e),a=r.get(r.mapDimension("value"),e);return Object(qi["c"])("nameValue",{name:i,value:a})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={zlevel:0,z:2,coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(Ae["a"]),lm=sm;function um(e,t){e.eachSeriesByType("themeRiver",(function(e){var t=e.getData(),n=e.coordinateSystem,r={},i=n.getRect();r.rect=i;var a=e.get("boundaryGap"),o=n.getAxis();if(r.boundaryGap=a,"horizontal"===o.orient){a[0]=Ne["o"](a[0],i.height),a[1]=Ne["o"](a[1],i.height);var s=i.height-a[0]-a[1];cm(t,e,s)}else{a[0]=Ne["o"](a[0],i.width),a[1]=Ne["o"](a[1],i.width);var l=i.width-a[0]-a[1];cm(t,e,l)}t.setLayout("layoutInfo",r)}))}function cm(e,t,n){if(e.count())for(var r,i=t.coordinateSystem,a=t.getLayerSeries(),o=e.mapDimension("single"),l=e.mapDimension("value"),u=s["map"](a,(function(t){return s["map"](t.indices,(function(t){var n=i.dataToPoint(e.get(o,t));return n[1]=e.get(l,t),n}))})),c=hm(u),h=c.y0,d=n/c.max,f=a.length,p=a[0].indices.length,g=0;g<p;++g){r=h[g]*d,e.setItemLayout(a[0].indices[g],{layerIndex:0,x:u[0][g][0],y0:r,y:u[0][g][1]*d});for(var m=1;m<f;++m)r+=u[m-1][g][1]*d,e.setItemLayout(a[m].indices[g],{layerIndex:m,x:u[m][g][0],y0:r,y:u[m][g][1]*d})}}function hm(e){for(var t=e.length,n=e[0].length,r=[],i=[],a=0,o=0;o<n;++o){for(var s=0,l=0;l<t;++l)s+=e[l][o][1];s>a&&(a=s),r.push(s)}for(var u=0;u<n;++u)i[u]=(a-r[u])/2;a=0;for(var c=0;c<n;++c){var h=r[c]+i[c];h>a&&(a=h)}return{y0:i,max:a}}function dm(e){e.registerChartView(am),e.registerSeriesModel(lm),e.registerLayout(um),e.registerProcessor(jn("themeRiver"))}var fm=2,pm=4,gm=function(e){function t(t,n,r,i){var a=e.call(this)||this;a.z2=fm,a.textConfig={inside:!0},Object(ke["a"])(a).seriesIndex=n.seriesIndex;var o=new at["a"]({z2:pm,silent:t.getModel().get(["label","silent"])});return a.setTextContent(o),a.updateData(!0,t,n,r,i),a}return Object(v["b"])(t,e),t.prototype.updateData=function(e,t,n,r,i){this.node=t,t.piece=this,n=n||this._seriesModel,r=r||this._ecModel;var a=this;Object(ke["a"])(a).dataIndex=t.dataIndex;var o=t.getModel(),l=o.getModel("emphasis"),u=t.getLayout(),c=s["extend"]({},u);c.label=null;var h=t.getVisual("style");h.lineJoin="bevel";var d=t.getVisual("decal");d&&(h.decal=Object(wo["a"])(d,i));var f=Yn(o.getModel("itemStyle"),c);s["extend"](c,f),s["each"](Re["g"],(function(e){var t=a.ensureState(e),n=o.getModel([e,"itemStyle"]);t.style=n.getItemStyle();var r=Yn(n,c);r&&(t.shape=r)})),e?(a.setShape(c),a.shape.r=u.r0,Le["updateProps"](a,{shape:{r:u.r}},n,t.dataIndex)):Le["updateProps"](a,{shape:c},n),a.useStyle(h),this._updateLabel(n);var p=o.getShallow("cursor");p&&a.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=r||this._ecModel;var g=l.get("focus"),m="ancestor"===g?t.getAncestorsIndices():"descendant"===g?t.getDescendantIndices():null;Object(Re["k"])(this,m||g,l.get("blurScope"))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),r=n.getModel("label"),i=this.node.getLayout(),a=i.endAngle-i.startAngle,o=(i.startAngle+i.endAngle)/2,l=Math.cos(o),u=Math.sin(o),c=this,h=c.getTextContent(),d=this.node.dataIndex,f=r.get("minAngle")/180*Math.PI,p=r.get("show")&&!(null!=f&&Math.abs(a)<f);function g(e,t){var n=e.get(t);return null==n?r.get(t):n}h.ignore=!p,s["each"](Re["a"],(function(r){var a="normal"===r?n.getModel("label"):n.getModel([r,"label"]),s="normal"===r,f=s?h:h.ensureState(r),p=e.getFormattedLabel(d,r);s&&(p=p||t.node.name),f.style=Object(Be["c"])(a,{},null,"normal"!==r,!0),p&&(f.style.text=p);var m=a.get("show");null==m||s||(f.ignore=!m);var v,y=g(a,"position"),b=s?c:c.states[r],_=b.style.fill;b.textConfig={outsideFill:"inherit"===a.get("color")?_:null,inside:"outside"!==y};var x=g(a,"distance")||0,w=g(a,"align");"outside"===y?(v=i.r+x,w=o>Math.PI/2?"right":"left"):w&&"center"!==w?"left"===w?(v=i.r0+x,o>Math.PI/2&&(w="right")):"right"===w&&(v=i.r-x,o>Math.PI/2&&(w="left")):(v=(i.r+i.r0)/2,w="center"),f.style.align=w,f.style.verticalAlign=g(a,"verticalAlign")||"middle",f.x=v*l+i.cx,f.y=v*u+i.cy;var S=g(a,"rotate"),T=0;"radial"===S?(T=-o,T<-Math.PI/2&&(T+=Math.PI)):"tangential"===S?(T=Math.PI/2-o,T>Math.PI/2?T-=Math.PI:T<-Math.PI/2&&(T+=Math.PI)):"number"===typeof S&&(T=S*Math.PI/180),f.rotation=T})),h.dirtyStyle()},t}(bt["a"]),mm=gm,vm="sunburstRootToNode",ym="sunburstHighlight",bm="sunburstUnhighlight";function _m(e){e.registerAction({type:vm,update:"updateView"},(function(e,t){function n(t,n){var r=Ns(e,[vm],t);if(r){var i=t.getViewRoot();i&&(e.direction=Fs(i,r.node)?"rollUp":"drillDown"),t.resetViewRoot(r.node)}}t.eachComponent({mainType:"series",subType:"sunburst",query:e},n)})),e.registerAction({type:ym,update:"none"},(function(e,t,n){function r(t){var n=Ns(e,[ym],t);n&&(e.dataIndex=n.node.dataIndex)}e=Object(s["extend"])({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},r),n.dispatchAction(Object(s["extend"])(e,{type:"highlight"}))})),e.registerAction({type:bm,update:"updateView"},(function(e,t,n){e=Object(s["extend"])({},e),n.dispatchAction(Object(s["extend"])(e,{type:"downplay"}))}))}var xm=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.render=function(e,t,n,r){var i=this;this.seriesModel=e,this.api=n,this.ecModel=t;var a=e.getData(),o=a.tree.root,l=e.getViewRoot(),u=this.group,c=e.get("renderLabelForZeroData"),h=[];l.eachNode((function(e){h.push(e)}));var d=this._oldChildren||[];function f(e,t){function n(e){return e.getId()}function r(n,r){var i=null==n?null:e[n],a=null==r?null:t[r];p(i,a)}0===e.length&&0===t.length||new qs["a"](t,e,n,n).add(r).update(r).remove(s["curry"](r,null)).execute()}function p(r,i){if(c||!r||r.getValue()||(r=null),r!==o&&i!==o)if(i&&i.piece)r?(i.piece.updateData(!1,r,e,t,n),a.setItemGraphicEl(r.dataIndex,i.piece)):g(i);else if(r){var s=new mm(r,e,t,n);u.add(s),a.setItemGraphicEl(r.dataIndex,s)}}function g(e){e&&e.piece&&(u.remove(e.piece),e.piece=null)}function m(r,a){a.depth>0?(i.virtualPiece?i.virtualPiece.updateData(!1,r,e,t,n):(i.virtualPiece=new mm(r,e,t,n),u.add(i.virtualPiece)),a.piece.off("click"),i.virtualPiece.on("click",(function(e){i._rootToNode(a.parentNode)}))):i.virtualPiece&&(u.remove(i.virtualPiece),i.virtualPiece=null)}f(h,d),m(o,l),this._initEvents(),this._oldChildren=h},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",(function(t){var n=!1,r=e.seriesModel.getViewRoot();r.eachNode((function(r){if(!n&&r.piece&&r.piece===t.target){var i=r.getModel().get("nodeClick");if("rootToNode"===i)e._rootToNode(r);else if("link"===i){var a=r.getModel(),o=a.get("link");if(o){var s=a.get("target",!0)||"_blank";Object(Tt["l"])(o,s)}}n=!0}}))}))},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:vm,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData(),r=n.getItemLayout(0);if(r){var i=e[0]-r.cx,a=e[1]-r.cy,o=Math.sqrt(i*i+a*a);return o<=r.r&&o>=r.r0}},t.type="sunburst",t}(vt["a"]),wm=xm,Sm=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return Object(v["b"])(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};Tm(n);var r=s["map"](e.levels||[],(function(e){return new ei["a"](e,this,t)}),this),i=Ms.createTree(n,this,a);function a(e){e.wrapMethod("getItemModel",(function(e,t){var n=i.getNodeByDataIndex(t),a=r[n.depth];return a&&(e.parentModel=a),e}))}return i.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=zs(r,this),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){Us(this)},t.type="series.sunburst",t.defaultOption={zlevel:0,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:[],levels:[],sort:"desc"},t}(Ae["a"]);function Tm(e){var t=0;s["each"](e.children,(function(e){Tm(e);var n=e.value;s["isArray"](n)&&(n=n[0]),t+=n}));var n=e.value;s["isArray"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),s["isArray"](e.value)?e.value[0]=n:e.value=n}var Om=Sm,Mm=Math.PI/180;function Em(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.get("center"),r=e.get("radius");s["isArray"](r)||(r=[0,r]),s["isArray"](t)||(t=[t,t]);var i=n.getWidth(),a=n.getHeight(),o=Math.min(i,a),l=Object(Ne["o"])(t[0],i),u=Object(Ne["o"])(t[1],a),c=Object(Ne["o"])(r[0],o/2),h=Object(Ne["o"])(r[1],o/2),d=-e.get("startAngle")*Mm,f=e.get("minAngle")*Mm,p=e.getData().tree.root,g=e.getViewRoot(),m=g.depth,v=e.get("sort");null!=v&&Am(g,v);var y=0;s["each"](g.children,(function(e){!isNaN(e.getValue())&&y++}));var b=g.getValue(),_=Math.PI/(b||y)*2,x=g.depth>0,w=g.height-(x?-1:1),S=(h-c)/(w||1),T=e.get("clockwise"),O=e.get("stillShowZeroSum"),M=T?1:-1,E=function(e,t){if(e){var n=t;if(e!==p){var r=e.getValue(),i=0===b&&O?_:r*_;i<f&&(i=f),n=t+M*i;var a=e.depth-m-(x?-1:1),h=c+S*a,d=c+S*(a+1),g=e.getModel();null!=g.get("r0")&&(h=Object(Ne["o"])(g.get("r0"),o/2)),null!=g.get("r")&&(d=Object(Ne["o"])(g.get("r"),o/2)),e.setLayout({angle:i,startAngle:t,endAngle:n,clockwise:T,cx:l,cy:u,r0:h,r:d})}if(e.children&&e.children.length){var v=0;s["each"](e.children,(function(e){v+=E(e,t+v)}))}return n-t}};if(x){var A=c,C=c+S,I=2*Math.PI;p.setLayout({angle:I,startAngle:d,endAngle:d+I,clockwise:T,cx:l,cy:u,r0:A,r:C})}E(g,d)}))}function Am(e,t){var n=e.children||[];e.children=Cm(n,t),n.length&&s["each"](e.children,(function(e){Am(e,t)}))}function Cm(e,t){if("function"===typeof t){var n=s["map"](e,(function(e,t){var n=e.getValue();return{params:{depth:e.depth,height:e.height,dataIndex:e.dataIndex,getValue:function(){return n}},index:t}}));return n.sort((function(e,n){return t(e.params,n.params)})),s["map"](n,(function(t){return e[t.index]}))}var r="asc"===t;return e.sort((function(e,t){var n=(e.getValue()-t.getValue())*(r?1:-1);return 0===n?(e.dataIndex-t.dataIndex)*(r?-1:1):n}))}function Im(e){var t={};function n(e,n,r){var i=e;while(i&&i.depth>1)i=i.parentNode;var a=n.getColorFromPalette(i.name||i.dataIndex+"",t);return e.depth>1&&"string"===typeof a&&(a=Object(K["lift"])(a,(e.depth-1)/(r-1)*.5)),a}e.eachSeriesByType("sunburst",(function(e){var t=e.getData(),r=t.tree;r.eachNode((function(i){var a=i.getModel(),o=a.getModel("itemStyle").getItemStyle();o.fill||(o.fill=n(i,e,r.root.height));var l=t.ensureUniqueItemVisual(i.dataIndex,"style");Object(s["extend"])(l,o)}))}))}function Dm(e){e.registerChartView(wm),e.registerSeriesModel(Om),e.registerLayout(Object(s["curry"])(Em,"sunburst")),e.registerProcessor(Object(s["curry"])(jn,"sunburst")),e.registerVisual(Im),_m(e)}function Lm(e,t){return t=t||[0,0],s["map"](["x","y"],(function(n,r){var i=this.getAxis(n),a=t[r],o=e[r]/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))}),this)}function Pm(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:s["bind"](Lm,e)}}}function km(e,t){return t=t||[0,0],s["map"]([0,1],(function(n){var r=t[n],i=e[n]/2,a=[],o=[];return a[n]=r-i,o[n]=r+i,a[1-n]=o[1-n]=t[1-n],Math.abs(this.dataToPoint(a)[n]-this.dataToPoint(o)[n])}),this)}function Rm(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:s["bind"](km,e)}}}function Nm(e,t){var n=this.getAxis(),r=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function jm(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:Object(s["bind"])(Nm,e)}}}function Fm(e,t){return t=t||[0,0],s["map"](["Radius","Angle"],(function(n,r){var i="get"+n+"Axis",a=this[i](),o=t[r],s=e[r]/2,l="category"===a.type?a.getBandWidth():Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}function zm(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:function(r){var i=t.dataToRadius(r[0]),a=n.dataToAngle(r[1]),o=e.coordToPoint([i,a]);return o.push(i,a*Math.PI/180),o},size:s["bind"](Fm,e)}}}function Bm(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)}}}}function Vm(e,t,n,r){return e&&(e.legacy||!1!==e.legacy&&!n&&!r&&"tspan"!==t&&("text"===t||Object(s["hasOwn"])(e,"text")))}function Gm(e,t,n){var r,i,a,o=e;if("text"===t)a=o;else{a={},Object(s["hasOwn"])(o,"text")&&(a.text=o.text),Object(s["hasOwn"])(o,"rich")&&(a.rich=o.rich),Object(s["hasOwn"])(o,"textFill")&&(a.fill=o.textFill),Object(s["hasOwn"])(o,"textStroke")&&(a.stroke=o.textStroke),i={type:"text",style:a,silent:!0},r={};var l=Object(s["hasOwn"])(o,"textPosition");n?r.position=l?o.textPosition:"inside":l&&(r.position=o.textPosition),Object(s["hasOwn"])(o,"textPosition")&&(r.position=o.textPosition),Object(s["hasOwn"])(o,"textOffset")&&(r.offset=o.textOffset),Object(s["hasOwn"])(o,"textRotation")&&(r.rotation=o.textRotation),Object(s["hasOwn"])(o,"textDistance")&&(r.distance=o.textDistance)}return Hm(a,e),Object(s["each"])(a.rich,(function(e){Hm(e,e)})),{textConfig:r,textContent:i}}function Hm(e,t){t&&(t.font=t.textFont||t.font,Object(s["hasOwn"])(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Object(s["hasOwn"])(t,"textAlign")&&(e.align=t.textAlign),Object(s["hasOwn"])(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Object(s["hasOwn"])(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Object(s["hasOwn"])(t,"textWidth")&&(e.width=t.textWidth),Object(s["hasOwn"])(t,"textHeight")&&(e.height=t.textHeight),Object(s["hasOwn"])(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Object(s["hasOwn"])(t,"textPadding")&&(e.padding=t.textPadding),Object(s["hasOwn"])(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Object(s["hasOwn"])(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Object(s["hasOwn"])(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Object(s["hasOwn"])(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Object(s["hasOwn"])(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Object(s["hasOwn"])(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Object(s["hasOwn"])(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function Um(e,t,n){var r=e;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,a=e.fill||"#000";Wm(r,t);var o=null==r.textFill;return i?o&&(r.textFill=n.insideFill||"#fff",!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=a),null==r.textStrokeWidth&&(r.textStrokeWidth=2)):(o&&(r.textFill=n.outsideFill||a),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,Object(s["each"])(t.rich,(function(e){Wm(e,e)})),r}function Wm(e,t){t&&(Object(s["hasOwn"])(t,"fill")&&(e.textFill=t.fill),Object(s["hasOwn"])(t,"stroke")&&(e.textStroke=t.fill),Object(s["hasOwn"])(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Object(s["hasOwn"])(t,"font")&&(e.font=t.font),Object(s["hasOwn"])(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Object(s["hasOwn"])(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Object(s["hasOwn"])(t,"fontSize")&&(e.fontSize=t.fontSize),Object(s["hasOwn"])(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Object(s["hasOwn"])(t,"align")&&(e.textAlign=t.align),Object(s["hasOwn"])(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Object(s["hasOwn"])(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Object(s["hasOwn"])(t,"width")&&(e.textWidth=t.width),Object(s["hasOwn"])(t,"height")&&(e.textHeight=t.height),Object(s["hasOwn"])(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Object(s["hasOwn"])(t,"padding")&&(e.textPadding=t.padding),Object(s["hasOwn"])(t,"borderColor")&&(e.textBorderColor=t.borderColor),Object(s["hasOwn"])(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Object(s["hasOwn"])(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Object(s["hasOwn"])(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Object(s["hasOwn"])(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Object(s["hasOwn"])(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Object(s["hasOwn"])(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Object(s["hasOwn"])(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Object(s["hasOwn"])(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Object(s["hasOwn"])(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Object(s["hasOwn"])(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var Xm=n("p1W9"),Ym=st["a"].CMD,Km=2*Math.PI,qm=["x","y"],Zm=["width","height"],$m=[];function Qm(e,t){return Math.abs(e-t)<1e-5}function Jm(e){var t,n,r,i,a,o=e.data,s=e.len(),l=[],u=0,c=0,h=0,d=0;function f(e,n){t&&t.length>2&&l.push(t),t=[e,n]}function p(e,n,r,i){Qm(e,r)&&Qm(n,i)||t.push(e,n,r,i,r,i)}function g(e,n,r,i,a,o){var s=Math.abs(n-e),l=4*Math.tan(s/4)/3,u=n<e?-1:1,c=Math.cos(e),h=Math.sin(e),d=Math.cos(n),f=Math.sin(n),p=c*a+r,g=h*o+i,m=d*a+r,v=f*o+i,y=a*l*u,b=o*l*u;t.push(p-y*h,g+b*c,m+y*f,v-b*d,m,v)}for(var m=0;m<s;){var v=o[m++],y=1===m;switch(y&&(u=o[m],c=o[m+1],h=u,d=c,v!==Ym.L&&v!==Ym.C&&v!==Ym.Q||(t=[h,d])),v){case Ym.M:u=h=o[m++],c=d=o[m++],f(h,d);break;case Ym.L:n=o[m++],r=o[m++],p(u,c,n,r),u=n,c=r;break;case Ym.C:t.push(o[m++],o[m++],o[m++],o[m++],u=o[m++],c=o[m++]);break;case Ym.Q:n=o[m++],r=o[m++],i=o[m++],a=o[m++],t.push(u+2/3*(n-u),c+2/3*(r-c),i+2/3*(n-i),a+2/3*(r-a),i,a),u=i,c=a;break;case Ym.A:var b=o[m++],_=o[m++],x=o[m++],w=o[m++],S=o[m++],T=o[m++]+S;m+=1;var O=!o[m++];n=Math.cos(S)*x+b,r=Math.sin(S)*w+_,y?(h=n,d=r,f(h,d)):p(u,c,n,r),u=Math.cos(T)*x+b,c=Math.sin(T)*w+_;for(var M=(O?-1:1)*Math.PI/2,E=S;O?E>T:E<T;E+=M){var A=O?Math.max(E+M,T):Math.min(E+M,T);g(E,A,b,_,x,w)}break;case Ym.R:h=u=o[m++],d=c=o[m++],n=h+o[m++],r=d+o[m++],f(n,d),p(n,d,n,r),p(n,r,h,r),p(h,r,h,d),p(h,d,n,d);break;case Ym.Z:t&&p(u,c,h,d),u=h,c=d;break}}return t&&t.length>2&&l.push(t),l}function ev(e,t){var n=e.length,r=t.length;if(n===r)return[e,t];for(var i=n<r?e:t,a=Math.min(n,r),o=Math.abs(r-n)/6,s=(a-2)/6,l=Math.ceil(o/s)+1,u=[i[0],i[1]],c=o,h=[],d=[],f=2;f<a;){var p=i[f-2],g=i[f-1],m=i[f++],v=i[f++],y=i[f++],b=i[f++],_=i[f++],x=i[f++];if(c<=0)u.push(m,v,y,b,_,x);else{for(var w=Math.min(c,l-1)+1,S=1;S<=w;S++){var T=S/w;Object(lt["g"])(p,m,y,_,T,h),Object(lt["g"])(g,v,b,x,T,d),p=h[3],g=d[3],u.push(h[1],d[1],h[2],d[2],p,g),m=h[5],v=d[5],y=h[6],b=d[6]}c-=w-1}}return i===e?[u,t]:[e,u]}function tv(e,t){for(var n=e.length,r=e[n-2],i=e[n-1],a=[],o=0;o<t.length;)a[o++]=r,a[o++]=i;return a}function nv(e,t){for(var n,r,i,a=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],u=t[s],c=void 0,h=void 0;l?u?(n=ev(l,u),c=n[0],h=n[1],r=c,i=h):(h=tv(i||l,l),c=l):(c=tv(r||u,u),h=u),a.push(c),o.push(h)}return[a,o]}function rv(e){for(var t=0,n=0,r=0,i=e.length,a=0,o=i-2;a<i;o=a,a+=2){var s=e[o],l=e[o+1],u=e[a],c=e[a+1],h=s*c-u*l;t+=h,n+=(s+u)*h,r+=(l+c)*h}return 0===t?[e[0]||0,e[1]||0]:[n/t/3,r/t/3,t]}function iv(e,t,n,r){for(var i=(e.length-2)/6,a=1/0,o=0,s=e.length,l=s-2,u=0;u<i;u++){for(var c=6*u,h=0,d=0;d<s;d+=2){var f=0===d?c:(c+d-2)%l+2,p=e[f]-n[0],g=e[f+1]-n[1],m=t[d]-r[0],v=t[d+1]-r[1],y=m-p,b=v-g;h+=y*y+b*b}h<a&&(a=h,o=u)}return o}function av(e){for(var t=[],n=e.length,r=0;r<n;r+=2)t[r]=e[n-r-2],t[r+1]=e[n-r-1];return t}function ov(e,t,n,r){for(var i,a=[],o=0;o<e.length;o++){var s=e[o],l=t[o],u=rv(s),c=rv(l);null==i&&(i=u[2]<0!==c[2]<0);var h=[],d=[],f=0,p=1/0,g=[],m=s.length;i&&(s=av(s));for(var v=6*iv(s,l,u,c),y=m-2,b=0;b<y;b+=2){var _=(v+b)%y+2;h[b+2]=s[_]-u[0],h[b+3]=s[_+1]-u[1]}if(h[0]=s[v]-u[0],h[1]=s[v+1]-u[1],n>0)for(var x=r/n,w=-r/2;w<=r/2;w+=x){var S=Math.sin(w),T=Math.cos(w),O=0;for(b=0;b<s.length;b+=2){var M=h[b],E=h[b+1],A=l[b]-c[0],C=l[b+1]-c[1],I=A*T-C*S,D=A*S+C*T;g[b]=I,g[b+1]=D;var L=I-M,P=D-E;O+=L*L+P*P}if(O<p){p=O,f=w;for(var k=0;k<g.length;k++)d[k]=g[k]}}else for(var R=0;R<m;R+=2)d[R]=l[R]-c[0],d[R+1]=l[R+1]-c[1];a.push({from:h,to:d,fromCp:u,toCp:c,rotation:-f})}return a}function sv(e,t,n){var r,i;if(!e||!t)return t;!e.path&&e.createPathProxy(),r=e.path,r.beginPath(),e.buildPath(r,e.shape),!t.path&&t.createPathProxy(),i=t.path,i===r&&(i=new st["a"](!1)),i.beginPath(),dv(t)?t.__oldBuildPath(i,t.shape):t.buildPath(i,t.shape);var a=nv(Jm(r),Jm(i)),o=a[0],l=a[1],u=ov(o,l,10,Math.PI);uv(t,u,0);var c=n&&n.done,h=n&&n.aborted,d=n&&n.during;return t.animateTo({__morphT:1},Object(s["defaults"])({during:function(e){t.dirtyShape(),d&&d(e)},done:function(){hv(t),t.createPathProxy(),t.dirtyShape(),c&&c()},aborted:function(){h&&h()}},n)),t}function lv(e){for(var t=this.__morphingData,n=this.__morphT,r=1-n,i=[],a=0;a<t.length;a++){var o=t[a],s=o.from,l=o.to,u=o.rotation*n,c=o.fromCp,h=o.toCp,d=Math.sin(u),f=Math.cos(u);Object(Nr["lerp"])(i,c,h,n);for(var p=0;p<s.length;p+=2){var g=s[p],m=s[p+1],v=l[p],y=l[p+1],b=g*r+v*n,_=m*r+y*n;$m[p]=b*f-_*d+i[0],$m[p+1]=b*d+_*f+i[1]}for(p=0;p<s.length;)0===p&&e.moveTo($m[p++],$m[p++]),e.bezierCurveTo($m[p++],$m[p++],$m[p++],$m[p++],$m[p++],$m[p++])}}function uv(e,t,n){if(dv(e))cv(e,t,n);else{var r=e;r.__oldBuildPath=r.buildPath,r.buildPath=lv,cv(r,t,n)}}function cv(e,t,n){e.__morphingData=t,e.__morphT=n}function hv(e){dv(e)&&(e.buildPath=e.__oldBuildPath,e.__oldBuildPath=e.__morphingData=null)}function dv(e){return null!=e.__oldBuildPath}function fv(e){return!!e.__combiningSubList}function pv(e){return dv(e)||fv(e)}function gv(e,t,n,r){for(var i=[],a=0,o=0;o<e.length;o++){var l=e[o];if(fv(l)){for(var u=l.__combiningSubList,c=0;c<u.length;c++)i.push(u[c]);a+=u.length}else i.push(l),a++}if(a){var h=n?n.dividingMethod:null,d=Tv(t,a,h);Object(s["assert"])(d.length===a);var f=n&&n.done,p=n&&n.aborted,g=n&&n.during,m=0,v=!1,y=Object(s["defaults"])({during:function(e){g&&g(e)},done:function(){m++,m===d.length&&(vv(t),f&&f())},aborted:function(){v||(v=!0,p&&p())}},n);for(o=0;o<a;o++){var b=i[o],_=d[o];r&&r(t,_,!0),sv(b,_,y)}return mv(t,d),{fromIndividuals:i,toIndividuals:d,count:a}}}function mv(e,t){if(fv(e))yv(e,t);else{var n=e;yv(n,t),n.__oldAddSelfToZr=e.addSelfToZr,n.__oldRemoveSelfFromZr=e.removeSelfFromZr,n.addSelfToZr=bv,n.removeSelfFromZr=xv,n.__oldBuildPath=n.buildPath,n.buildPath=s["noop"],n.childrenRef=wv}}function vv(e){if(fv(e)){var t=e;yv(t,null),t.addSelfToZr=t.__oldAddSelfToZr,t.removeSelfFromZr=t.__oldRemoveSelfFromZr,t.buildPath=t.__oldBuildPath,t.childrenRef=t.__combiningSubList=t.__oldAddSelfToZr=t.__oldRemoveSelfFromZr=t.__oldBuildPath=null}}function yv(e,t){if(e.__combiningSubList!==t){if(_v(e,"removeSelfFromZr"),e.__combiningSubList=t,t)for(var n=0;n<t.length;n++)t[n].parent=e;_v(e,"addSelfToZr")}}function bv(e){this.__oldAddSelfToZr(e),_v(this,"addSelfToZr")}function _v(e,t){var n=e.__combiningSubList,r=e.__zr;if(n&&r)for(var i=0;i<n.length;i++){var a=n[i];a[t](r)}}function xv(e){this.__oldRemoveSelfFromZr(e);for(var t=this.__combiningSubList,n=0;n<t.length;n++){var r=t[n];r.removeSelfFromZr(e)}}function wv(){return this.__combiningSubList}function Sv(e,t,n,r){var i,a=t.length,o=n?n.dividingMethod:null,l=!1;if(fv(e)){var u=e.__combiningSubList;u.length===a?i=u:(i=Tv(e,a,o),l=!0)}else i=Tv(e,a,o),l=!0;Object(s["assert"])(i.length===a);for(var c=0;c<a;c++)l&&r&&r(e,i[c],!1),sv(i[c],t[c],n);return{fromIndividuals:i,toIndividuals:t,count:a}}function Tv(e,t,n){return"duplicate"===n?Mv(e,t):Ov(e,t)}function Ov(e,t){var n=[];if(t<=0)return n;if(1===t)return Mv(e,t);if(e instanceof yt["a"])for(var r=e.shape,i=r.height>r.width?1:0,a=Zm[i],o=qm[i],s=r[a]/t,l=r[o],u=0;u<t;u++,l+=s){var c={x:r.x,y:r.y,width:r.width,height:r.height};c[o]=l,c[a]=u<t-1?s:r[o]+r[a]-l;var h=new yt["a"]({shape:c});n.push(h)}else{if(!(e instanceof bt["a"]))return Mv(e,t);r=e.shape;var d=r.clockwise,f=r.startAngle,p=r.endAngle,g=Ev(f,r.endAngle,d),m=(g-f)/t,v=f;for(u=0;u<t;u++,v+=m){h=new bt["a"]({shape:{cx:r.cx,cy:r.cy,r:r.r,r0:r.r0,clockwise:d,startAngle:v,endAngle:u===t-1?p:v+m}});n.push(h)}}return n}function Mv(e,t){var n=[];if(t<=0)return n;for(var r=e.constructor,i=0;i<t;i++){var a=new r({shape:Object(s["clone"])(e.shape)});n.push(a)}return n}function Ev(e,t,n){return t+Km*Math[n?"ceil":"floor"]((e-t)/Km)}var Av=Object(ot["o"])(),Cv={x:1,y:1,scaleX:1,scaleY:1,originX:1,originY:1,rotation:1},Iv=(Object(s["keys"])(Cv).join(", "),{color:"fill",borderColor:"stroke"}),Dv={symbol:1,symbolSize:1,symbolKeepAspect:1,legendSymbol:1,visualMeta:1,liftZ:1,decal:1},Lv="emphasis",Pv="normal",kv="blur",Rv="select",Nv=[Pv,Lv,kv,Rv],jv={normal:["itemStyle"],emphasis:[Lv,"itemStyle"],blur:[kv,"itemStyle"],select:[Rv,"itemStyle"]},Fv={normal:["label"],emphasis:[Lv,"label"],blur:[kv,"label"],select:[Rv,"label"]},zv="e\0\0",Bv={normal:{},emphasis:{},blur:{},select:{}},Vv={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Gv=new xo["a"],Hv={cartesian2d:Pm,geo:Rm,singleAxis:jm,polar:zm,calendar:Bm},Uv=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,t){return Object(Ee["a"])(this.getSource(),this)},t.prototype.getDataParams=function(t,n,r){var i=e.prototype.getDataParams.call(this,t,n);return r&&(i.info=Av(r).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,clip:!1},t}(Ae["a"]),Wv=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.render=function(e,t,n,r){var i=this._data,a=e.getData(),o=this.group,s=py(e,a,t,n),l=e.__transientTransitionOpt;if(!l||null!=l.from&&null!=l.to){var u=new ky(e,l),c=l?"multiple":"oneToOne";new qs["a"](i?i.getIndices():[],a.getIndices(),Xv(i,c,l&&l.from),Xv(a,c,l&&l.to),null,c).add((function(t){my(n,null,t,s(t,r),e,o,a,null)})).remove((function(t){Cy(i.getItemGraphicEl(t),e,o)})).update((function(t,l){u.reset("oneToOne");var c=i.getItemGraphicEl(l);u.findAndAddFrom(c),u.hasFrom()&&(Py(c,o),c=null),my(n,c,t,s(t,r),e,o,a,u),u.applyMorphing()})).updateManyToOne((function(t,l){u.reset("manyToOne");for(var c=0;c<l.length;c++){var h=i.getItemGraphicEl(l[c]);u.findAndAddFrom(h),Py(h,o)}my(n,null,t,s(t,r),e,o,a,u),u.applyMorphing()})).updateOneToMany((function(t,l){u.reset("oneToMany");var c=t.length,h=i.getItemGraphicEl(l);u.findAndAddFrom(h),Py(h,o);for(var d=0;d<c;d++)my(n,null,t[d],s(t[d],r),e,o,a,u);u.applyMorphing()})).execute()}else i&&i.each((function(t){Cy(i.getItemGraphicEl(t),e,o)})),a.each((function(t){my(n,null,t,s(t,r),e,o,a,null)}));var h=e.get("clip",!0)?wt(e.coordinateSystem,!1,e):null;h?o.setClipPath(h):o.removeClipPath(),this._data=a},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,t,n,r,i){var a=t.getData(),o=py(t,a,n,r);function s(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}for(var l=e.start;l<e.end;l++){var u=my(null,null,l,o(l,i),t,this.group,a,null);u.traverse(s)}},t.prototype.filterForExposedEvent=function(e,t,n,r){var i=t.element;if(null==i||n.name===i)return!0;while((n=n.__hostTarget||n.parent)&&n!==this.group)if(n.name===i)return!0;return!1},t.type="custom",t}(vt["a"]);function Xv(e,t,n){if(e){if("oneToOne"===t)return function(t,n){return e.getId(n)};var r=e.getDimension(n),i=e.getDimensionInfo(r);if(!i){var a="";0,Object(rp["b"])(a)}var o=i.ordinalMeta;return function(t,n){var i=e.get(r,n);return o&&(i=o.categories[i]),null==i||Object(s["eqNaN"])(i)?t+"":"_ec_"+i}}}function Yv(e){var t,n=e.type;if("path"===n){var r=e.shape,i=null!=r.width&&null!=r.height?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,a=Iy(r);t=Le["makePath"](a,null,i,r.layout||"center"),Av(t).customPathData=a}else if("image"===n)t=new u["a"]({}),Av(t).customImagePath=e.style.image;else if("text"===n)t=new at["a"]({});else if("group"===n)t=new De["a"];else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var o=Le["getShapeClass"](n);if(!o){var s="";0,Object(rp["b"])(s)}t=new o}return Av(t).customGraphicType=n,t.name=e.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function Kv(e,t,n,r,i,a,o,l,u,c){var h={},d={},f=t.isGroup?null:t;!n&&$v("shape",t,null,i,h,u),Qv("shape",i,d),!n&&$v("extra",t,null,i,h,u),Qv("extra",i,d),!n&&Jv(t,null,i,h,u),ey(i,d);var p=o&&o.normal.cfg;if(p&&t.setTextConfig(p),"text"===t.type&&a){var g=a;Object(s["hasOwn"])(g,"textFill")&&(g.fill=g.textFill),Object(s["hasOwn"])(g,"textStroke")&&(g.stroke=g.textStroke)}if(a){var m=void 0,v=Ly(t)?a.decal:null;e&&v&&(v.dirty=!0,m=Object(wo["a"])(v,e)),a.__decalPattern=m}return!n&&ty(t,null,i,a,h,u),f&&Object(s["hasOwn"])(i,"invisible")&&(f.invisible=i.invisible),n||(qv(t,d,a),Zv(t,r,i,l,h,u)),Object(s["hasOwn"])(i,"silent")&&(t.silent=i.silent),Object(s["hasOwn"])(i,"ignore")&&(t.ignore=i.ignore),c||Object(s["hasOwn"])(i,"info")&&(Av(t).info=i.info),a?t.dirty():t.markRedraw(),n?d:null}function qv(e,t,n){var r=e.isGroup?null:e;if(r&&n){var i=n.__decalPattern,a=void 0;i&&(a=n.decal,n.decal=i),r.useStyle(n),i&&(n.decal=a);for(var o=r.animators,s=0;s<o.length;s++){var l=o[s];"style"===l.targetName&&l.changeTarget(r.style)}}t&&e.attr(t)}function Zv(e,t,n,r,i,a){if(i){var o=n.during;Av(e).userDuring=o;var l=o?Object(s["bind"])(sy,{el:e,userDuring:o}):null,u={dataIndex:t,isFrom:!0,during:l};a?Le["initProps"](e,i,r,u):Le["updateProps"](e,i,r,u)}}function $v(e,t,n,r,i,a){var o=r[e];if(o){var l,u=t[e],c=o.enterFrom;if(a&&c){!l&&(l=i[e]={});for(var h=Object(s["keys"])(c),d=0;d<h.length;d++){var f=h[d];l[f]=c[f]}}if(!a&&u&&(null==n||"shape"!==e))if(o.transition){!l&&(l=i[e]={});var p=Object(ot["r"])(o.transition);for(d=0;d<p.length;d++){f=p[d];var g=u[f];0,l[f]=g}}else if(Object(s["indexOf"])(r.transition,e)>=0){!l&&(l=i[e]={});var m=Object(s["keys"])(u);for(d=0;d<m.length;d++){f=m[d],g=u[f];ry(o[f],g)&&(l[f]=g)}}var v=o.leaveTo;if(v){var y=iy(t),b=y[e]||(y[e]={}),_=Object(s["keys"])(v);for(d=0;d<_.length;d++){f=_[d];b[f]=v[f]}}}}function Qv(e,t,n){var r=t[e];if(r)for(var i=n[e]={},a=Object(s["keys"])(r),o=0;o<a.length;o++){var l=a[o];i[l]=Object(Xm["a"])(r[l])}}function Jv(e,t,n,r,i){var a=n.enterFrom;if(i&&a)for(var o=Object(s["keys"])(a),l=0;l<o.length;l++){var u=o[l];0,r[u]=a[u]}if(!i)if(t){var c=ny(t,e);fy(r,"x",c),fy(r,"y",c),fy(r,"scaleX",c),fy(r,"scaleY",c),fy(r,"originX",c),fy(r,"originY",c),fy(r,"rotation",c)}else if(n.transition){var h=Object(ot["r"])(n.transition);for(l=0;l<h.length;l++){u=h[l];if("style"!==u&&"shape"!==u&&"extra"!==u){var d=e[u];0,r[u]=d}}}else fy(r,"x",e),fy(r,"y",e);var f=n.leaveTo;if(f){var p=iy(e),g=Object(s["keys"])(f);for(l=0;l<g.length;l++){u=g[l];0,p[u]=f[u]}}}function ey(e,t){hy(e,t,"position"),hy(e,t,"scale"),hy(e,t,"origin"),dy(e,t,"x"),dy(e,t,"y"),dy(e,t,"scaleX"),dy(e,t,"scaleY"),dy(e,t,"originX"),dy(e,t,"originY"),dy(e,t,"rotation")}function ty(e,t,n,r,i,a){if(r){var o,l=t||e,u=l.style,c=r.enterFrom;if(a&&c){var h=Object(s["keys"])(c);!o&&(o=i.style={});for(var d=0;d<h.length;d++){var f=h[d];o[f]=c[f]}}if(!a&&u)if(r.transition){var p=Object(ot["r"])(r.transition);!o&&(o=i.style={});for(d=0;d<p.length;d++){f=p[d];var g=u[f];o[f]=g}}else if(e.getAnimationStyleProps&&Object(s["indexOf"])(n.transition,"style")>=0){var m=e.getAnimationStyleProps(),v=m?m.style:null;if(v){!o&&(o=i.style={});var y=Object(s["keys"])(r);for(d=0;d<y.length;d++){f=y[d];if(v[f]){g=u[f];o[f]=g}}}}var b=r.leaveTo;if(b){var _=Object(s["keys"])(b),x=iy(e),w=x.style||(x.style={});for(d=0;d<_.length;d++){f=_[d];w[f]=b[f]}}}}function ny(e,t){if(!e||e===t||e.parent===t.parent)return e;var n=Gv.transform||(Gv.transform=Rr["identity"]([])),r=e.getComputedTransform();r?Rr["copy"](n,r):Rr["identity"](n);var i=t.parent;return i&&i.getComputedTransform(),Gv.originX=e.originX,Gv.originY=e.originY,Gv.parent=i,Gv.decomposeTransform(),Gv}function ry(e,t){return Object(s["isArrayLike"])(e)?e!==t:null!=e&&isFinite(e)}function iy(e){var t=Av(e);return t.leaveToProps||(t.leaveToProps={})}var ay={},oy={setTransform:function(e,t){return ay.el[e]=t,this},getTransform:function(e){return ay.el[e]},setShape:function(e,t){var n=ay.el.shape||(ay.el.shape={});return n[e]=t,ay.isShapeDirty=!0,this},getShape:function(e){var t=ay.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=ay.el.style;return n&&(n[e]=t,ay.isStyleDirty=!0),this},getStyle:function(e){var t=ay.el.style;if(t)return t[e]},setExtra:function(e,t){var n=ay.el.extra||(ay.el.extra={});return n[e]=t,this},getExtra:function(e){var t=ay.el.extra;if(t)return t[e]}};function sy(){var e=this,t=e.el;if(t){var n=Av(t).userDuring,r=e.userDuring;n===r?(ay.el=t,ay.isShapeDirty=!1,ay.isStyleDirty=!1,r(oy),ay.isShapeDirty&&t.dirtyShape&&t.dirtyShape(),ay.isStyleDirty&&t.dirtyStyle&&t.dirtyStyle()):e.el=e.userDuring=null}}function ly(e,t,n,r,i,a,o){var s=t.isGroup?null:t,l=i&&i[e].cfg;if(s){var u=s.ensureState(e);if(!1===r){var c=s.getState(e);c&&(c.style=null)}else u.style=r||null;l&&(u.textConfig=l),Object(Re["B"])(s)}}function uy(e,t,n,r){if(!e.isGroup){var i=e,a=n.currentZ,o=n.currentZLevel;i.z=a,i.zlevel=o;var s=t.z2;null!=s&&(i.z2=s||0);for(var l=0;l<Nv.length;l++)cy(i,t,Nv[l])}}function cy(e,t,n){var r,i=n===Pv,a=i?t:wy(t,n),o=a?a.z2:null;null!=o&&(r=i?e:e.ensureState(n),r.z2=o||0)}function hy(e,t,n,r){var i=e[n],a=Vv[n];i&&(r?(t[a[0]]=r[a[0]],t[a[1]]=r[a[1]]):(t[a[0]]=i[0],t[a[1]]=i[1]))}function dy(e,t,n,r){null!=e[n]&&(t[n]=r?r[n]:e[n])}function fy(e,t,n){n&&(e[t]=n[t])}function py(e,t,n,r){var i=e.get("renderItem"),a=e.coordinateSystem,o={};a&&(o=a.prepareCustoms?a.prepareCustoms(a):Hv[a.type](a));for(var l,u,c=Object(s["defaults"])({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:x,style:S,ordinalRawValue:w,styleEmphasis:T,visual:E,barLayout:A,currentSeriesIndices:C,font:I},o.api||{}),h={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:gy(e.getData())},d={},f={},p={},g={},m=0;m<Nv.length;m++){var v=Nv[m];p[v]=e.getModel(jv[v]),g[v]=e.getModel(Fv[v])}function y(e){return e===l?u||(u=t.getItemModel(e)):t.getItemModel(e)}function b(e,n){return t.hasItemOption?e===l?d[n]||(d[n]=y(e).getModel(jv[n])):y(e).getModel(jv[n]):p[n]}function _(e,n){return t.hasItemOption?e===l?f[n]||(f[n]=y(e).getModel(Fv[n])):y(e).getModel(Fv[n]):g[n]}return function(e,n){return l=e,u=null,d={},f={},i&&i(Object(s["defaults"])({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:n?n.type:null},h),c)};function x(e,n){return null==n&&(n=l),t.get(t.getDimension(e||0),n)}function w(e,n){null==n&&(n=l);var r=t.getDimensionInfo(e||0);if(r){var i=t.get(r.name,n),a=r&&r.ordinalMeta;return a?a.categories[i]:i}}function S(n,r){null==r&&(r=l);var i=t.getItemVisual(r,"style"),a=i&&i.fill,o=i&&i.opacity,u=b(r,Pv).getItemStyle();null!=a&&(u.fill=a),null!=o&&(u.opacity=o);var c={inheritColor:Object(s["isString"])(a)?a:"#000"},h=_(r,Pv),d=Be["c"](h,null,c,!1,!0);d.text=h.getShallow("show")?Object(s["retrieve2"])(e.getFormattedLabel(r,Pv),Fe(t,r)):null;var f=Be["b"](h,c,!1);return M(n,u),u=Um(u,d,f),n&&O(u,n),u.legacy=!0,u}function T(n,r){null==r&&(r=l);var i=b(r,Lv).getItemStyle(),a=_(r,Lv),o=Be["c"](a,null,null,!0,!0);o.text=a.getShallow("show")?Object(s["retrieve3"])(e.getFormattedLabel(r,Lv),e.getFormattedLabel(r,Pv),Fe(t,r)):null;var u=Be["b"](a,null,!0);return M(n,i),i=Um(i,o,u),n&&O(i,n),i.legacy=!0,i}function O(e,t){for(var n in t)Object(s["hasOwn"])(t,n)&&(e[n]=t[n])}function M(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}function E(e,n){if(null==n&&(n=l),Object(s["hasOwn"])(Iv,e)){var r=t.getItemVisual(n,"style");return r?r[Iv[e]]:null}if(Object(s["hasOwn"])(Dv,e))return t.getItemVisual(n,e)}function A(e){if("cartesian2d"===a.type){var t=a.getBaseAxis();return Object(Kt["a"])(Object(s["defaults"])({axis:t},e))}}function C(){return n.getCurrentSeriesIndices()}function I(e){return Be["d"](e,n)}}function gy(e){var t={};return Object(s["each"])(e.dimensions,(function(n,r){var i=e.getDimensionInfo(n);if(!i.isExtraCoord){var a=i.coordDim,o=t[a]=t[a]||[];o[i.coordDimIndex]=r}})),t}function my(e,t,n,r,i,a,o,s){if(r)return t=vy(e,t,n,r,i,a,!0,s),t&&o.setItemGraphicEl(n,t),Object(Re["k"])(t,r.focus,r.blurScope),t;Py(t,a)}function vy(e,t,n,r,i,a,o,s){var l=-1;t&&yy(t,r)&&(l=a.childrenRef().indexOf(t),t=null);var u=!t;t?t.clearStates():t=Yv(r);var c=Av(t).canMorph=r.morph&&Ly(t),h=c&&s&&s.hasFrom(),d=u&&!h;Bv.normal.cfg=Bv.normal.conOpt=Bv.emphasis.cfg=Bv.emphasis.conOpt=Bv.blur.cfg=Bv.blur.conOpt=Bv.select.cfg=Bv.select.conOpt=null,Bv.isLegacy=!1,_y(t,n,r,i,d,Bv),by(t,n,r,i,d);var f=Kv(e,t,h,n,r,r.style,Bv,i,d,!1);h&&s.addTo(t,r,n,f);for(var p=0;p<Nv.length;p++){var g=Nv[p];if(g!==Pv){var m=wy(r,g),v=Sy(r,m,g);ly(g,t,m,v,Bv,o,!1)}}return uy(t,r,i,Bv),"group"===r.type&&Ty(e,t,n,r,i,s),l>=0?a.replaceAt(t,l):a.add(t),t}function yy(e,t){var n=Av(e),r=t.type,i=t.shape,a=t.style;return null!=r&&r!==n.customGraphicType||"path"===r&&Dy(i)&&Iy(i)!==n.customPathData||"image"===r&&Object(s["hasOwn"])(a,"image")&&a.image!==n.customImagePath}function by(e,t,n,r,i){var a=n.clipPath;if(!1===a)e&&e.getClipPath()&&e.removeClipPath();else if(a){var o=e.getClipPath();o&&yy(o,a)&&(o=null),o||(o=Yv(a),e.setClipPath(o)),Kv(null,o,null,t,a,null,null,r,i,!1)}}function _y(e,t,n,r,i,a){if(!e.isGroup){xy(n,null,a),xy(n,Lv,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,u=a.select.conOpt;if(null!=o||null!=s||null!=u||null!=l){var c=e.getTextContent();if(!1===o)c&&e.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=Yv(o),e.setTextContent(c));var h=o&&o.style;Kv(null,c,null,t,o,h,null,r,i,!0);for(var d=0;d<Nv.length;d++){var f=Nv[d];if(f!==Pv){var p=a[f].conOpt;ly(f,c,p,Sy(o,p,f),null,!1,!0)}}h?c.dirty():c.markRedraw()}}}}function xy(e,t,n){var r=t?wy(e,t):e,i=t?Sy(e,r,Lv):e.style,a=e.type,o=r?r.textConfig:null,s=e.textContent,l=s?t?wy(s,t):s:null;if(i&&(n.isLegacy||Vm(i,a,!!o,!!l))){n.isLegacy=!0;var u=Gm(i,a,!t);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var c=l;!c.type&&(c.type="text")}var h=t?n[t]:n.normal;h.cfg=o,h.conOpt=l}function wy(e,t){return t?e?e[t]:null:e}function Sy(e,t,n){var r=t&&t.style;return null==r&&n===Lv&&e&&(r=e.styleEmphasis),r}function Ty(e,t,n,r,i,a){var o=r.children,s=o?o.length:0,l=r.$mergeChildren,u="byName"===l||r.diffChildrenByName,c=!1===l;if(s||u||c)if(u)Oy({api:e,oldChildren:t.children()||[],newChildren:o||[],dataIndex:n,seriesModel:i,group:t,morphPreparation:a});else{c&&t.removeAll();for(var h=0;h<s;h++)o[h]&&vy(e,t.childAt(h),n,o[h],i,t,!1,a);for(var d=t.childCount()-1;d>=h;d--)Cy(t.childAt(d),i,t)}}function Oy(e){new qs["a"](e.oldChildren,e.newChildren,My,My,e).add(Ey).update(Ey).remove(Ay).execute()}function My(e,t){var n=e&&e.name;return null!=n?n:zv+t}function Ey(e,t){var n=this.context,r=null!=e?n.newChildren[e]:null,i=null!=t?n.oldChildren[t]:null;vy(n.api,i,n.dataIndex,r,n.seriesModel,n.group,!1,n.morphPreparation)}function Ay(e){var t=this.context,n=t.oldChildren[e];Cy(n,t.seriesModel,t.group)}function Cy(e,t,n){if(e){var r=Av(e).leaveToProps;r?Le["updateProps"](e,r,t,{cb:function(){n.remove(e)}}):n.remove(e)}}function Iy(e){return e&&(e.pathData||e.d)}function Dy(e){return e&&(Object(s["hasOwn"])(e,"pathData")||Object(s["hasOwn"])(e,"d"))}function Ly(e){return e&&e instanceof l["b"]}function Py(e,t){e&&t.remove(e)}var ky=function(){function e(e,t){this._fromList=[],this._toList=[],this._toElOptionList=[],this._allPropsFinalList=[],this._toDataIndices=[],this._morphConfigList=[],this._seriesModel=e,this._transOpt=t}return e.prototype.hasFrom=function(){return!!this._fromList.length},e.prototype.findAndAddFrom=function(e){if(e&&(Av(e).canMorph&&this._fromList.push(e),e.isGroup))for(var t=e.childrenRef(),n=0;n<t.length;n++)this.findAndAddFrom(t[n])},e.prototype.addTo=function(e,t,n,r){e&&(this._toList.push(e),this._toElOptionList.push(t),this._toDataIndices.push(n),this._allPropsFinalList.push(r))},e.prototype.applyMorphing=function(){var e=this._type,t=this._fromList,n=this._toList,r=n.length,i=t.length;if(i&&r)if("oneToOne"===e)for(var a=0;a<r;a++)this._oneToOneForSingleTo(a,a);else if("manyToOne"===e)for(var o=Math.max(1,Math.floor(i/r)),s=(a=0,0);a<r;a++,s+=o){var l=a+1>=r?i-s:o;this._manyToOneForSingleTo(a,s>=i?null:s,l)}else if("oneToMany"===e)for(var u=Math.max(1,Math.floor(r/i)),c=0,h=0;c<r;c+=u,h++){var d=c+u>=r?r-c:u;this._oneToManyForSingleFrom(c,d,h>=i?null:h)}},e.prototype._oneToOneForSingleTo=function(e,t){var n=this._toList[e],r=this._toElOptionList[e],i=this._toDataIndices[e],a=this._allPropsFinalList[e],o=this._fromList[t],s=this._getOrCreateMorphConfig(i),l=s.duration;if(o&&fv(o)){if(qv(n,a,r.style),l){var u=gv([o],n,s,Ry);this._processResultIndividuals(u,e,null)}}else{var c=l&&o&&(o!==n||pv(o))?o:null,h={};$v("shape",n,c,r,h,!1),$v("extra",n,c,r,h,!1),Jv(n,c,r,h,!1),ty(n,c,r,r.style,h,!1),qv(n,a,r.style),c&&sv(c,n,s),Zv(n,i,r,this._seriesModel,h,!1)}},e.prototype._manyToOneForSingleTo=function(e,t,n){var r=this._toList[e],i=this._toElOptionList[e],a=this._allPropsFinalList[e];qv(r,a,i.style);var o=this._getOrCreateMorphConfig(this._toDataIndices[e]);if(o.duration&&null!=t){for(var s=[],l=t;l<n;l++)s.push(this._fromList[l]);var u=gv(s,r,o,Ry);this._processResultIndividuals(u,e,null)}},e.prototype._oneToManyForSingleFrom=function(e,t,n){for(var r=null==n?null:this._fromList[n],i=this._toList,a=[],o=e;o<t;o++){var s=i[o];qv(s,this._allPropsFinalList[o],this._toElOptionList[o].style),a.push(s)}var l=this._getOrCreateMorphConfig(this._toDataIndices[e]);if(l.duration&&r){var u=Sv(r,a,l,Ry);this._processResultIndividuals(u,e,t)}},e.prototype._processResultIndividuals=function(e,t,n){for(var r=null!=n,i=0;i<e.count;i++){var a=e.fromIndividuals[i],o=e.toIndividuals[i],s=t+(r?i:0),l=this._toElOptionList[s],u=this._toDataIndices[s],c={};Jv(o,a,l,c,!1),ty(o,a,l,l.style,c,!1),Zv(o,u,l,this._seriesModel,c,!1)}},e.prototype._getOrCreateMorphConfig=function(e){var t,n,r,i=this._morphConfigList,a=i[e];if(a)return a;var o=this._seriesModel,l=this._transOpt;if(o.isAnimationEnabled()){var u=void 0;if(o&&o.ecModel){var c=o.ecModel.getUpdatePayload();u=c&&c.animation}if(u)t=u.duration||0,n=u.easing||"cubicOut",r=u.delay||0;else{n=o.get("animationEasingUpdate");var h=o.get("animationDelayUpdate");r=Object(s["isFunction"])(h)?h(e):h;var d=o.get("animationDurationUpdate");t=Object(s["isFunction"])(d)?d(e):d}}return a={duration:t||0,delay:r,easing:n,dividingMethod:l?l.dividingMethod:null},i[e]=a,a},e.prototype.reset=function(e){this._type=e,this._fromList.length=this._toList.length=this._toElOptionList.length=this._allPropsFinalList.length=this._toDataIndices.length=0},e}();function Ry(e,t,n){t.style=n?Object(s["clone"])(e.style):e.style,t.zlevel=e.zlevel,t.z=e.z,t.z2=e.z2}function Ny(e){e.registerChartView(Wv),e.registerSeriesModel(Uv)}var jy=Object(ot["o"])(),Fy=s["clone"],zy=s["bind"],By=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get("value"),a=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,r||this._lastValue!==i||this._lastStatus!==a){this._lastValue=i,this._lastStatus=a;var o=this._group,l=this._handle;if(!a||"hide"===a)return o&&o.hide(),void(l&&l.hide());o&&o.show(),l&&l.show();var u={};this.makeElOption(u,i,e,t,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var h=this._moveAnimation=this.determineAnimation(e,t);if(o){var d=s["curry"](Vy,t,h);this.updatePointerEl(o,u,d),this.updateLabelEl(o,u,d,t)}else o=this._group=new De["a"],this.createPointerEl(o,u,e,t),this.createLabelEl(o,u,e,t),n.getZr().add(o);Wy(o,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get("animation"),r=e.axis,i="category"===r.type,a=t.get("snap");if(!a&&!i)return!1;if("auto"===n||null==n){var o=this.animationThreshold;if(i&&r.getBandWidth()>o)return!0;if(a){var s=xi(e).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>o}return!1}return!0===n},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=jy(e).pointerEl=new Le[i.type](Fy(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=jy(e).labelEl=new at["a"](Fy(t.label));e.add(i),Hy(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=jy(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=jy(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),Hy(i,r))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,a=n.getModel("handle"),o=n.get("status");if(!a.get("show")||!o||"hide"===o)return i&&r.remove(i),void(this._handle=null);this._handle||(t=!0,i=this._handle=Le["createIcon"](a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){ma["g"](e.event)},onmousedown:zy(this._onHandleDragMove,this,0,0),drift:zy(this._onHandleDragMove,this),ondragend:zy(this._onHandleDragEnd,this)}),r.add(i)),Wy(i,n,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");s["isArray"](l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,en["b"](this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){Vy(this._axisPointerModel,!t&&this._moveAnimation,this._handle,Uy(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(Uy(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(Uy(r)),jy(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function Vy(e,t,n,r){Gy(jy(n).lastProp,r)||(jy(n).lastProp=r,t?Le["updateProps"](n,r,e):(n.stopAnimation(),n.attr(r)))}function Gy(e,t){if(s["isObject"](e)&&s["isObject"](t)){var n=!0;return s["each"](t,(function(t,r){n=n&&Gy(e[r],t)})),!!n}return e===t}function Hy(e,t){e[t.get(["label","show"])?"show":"hide"]()}function Uy(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function Wy(e,t,n){var r=t.get("z"),i=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=r&&(e.z=r),null!=i&&(e.zlevel=i),e.silent=n)}))}var Xy=By;function Yy(e){var t,n=e.get("type"),r=e.getModel(n+"Style");return"line"===n?(t=r.getLineStyle(),t.fill=null):"shadow"===n&&(t=r.getAreaStyle(),t.stroke=null),t}function Ky(e,t,n,r,i){var a=n.get("value"),o=Zy(a,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=Tt["j"](s.get("padding")||0),u=s.getFont(),c=y["e"](o,u),h=i.position,d=c.width+l[1]+l[3],f=c.height+l[0]+l[2],p=i.align;"right"===p&&(h[0]-=d),"center"===p&&(h[0]-=d/2);var g=i.verticalAlign;"bottom"===g&&(h[1]-=f),"middle"===g&&(h[1]-=f/2),qy(h,d,f,r);var m=s.get("backgroundColor");m&&"auto"!==m||(m=t.get(["axisLine","lineStyle","color"])),e.label={x:h[0],y:h[1],style:Object(Be["c"])(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function qy(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function Zy(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var l={value:Lr["c"](t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};s["each"](r,(function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&l.seriesData.push(i)})),s["isString"](o)?a=o.replace("{value}",a):s["isFunction"](o)&&(a=o(l))}return a}function $y(e,t,n){var r=Rr["create"]();return Rr["rotate"](r,r,n.rotation),Rr["translate"](r,r,n.position),Le["applyTransform"]([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function Qy(e,t,n,r,i,a){var o=fi.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),Ky(t,r,i,a,{position:$y(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Jy(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function eb(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function tb(e,t,n,r,i,a){return{cx:e,cy:t,r0:n,r:r,startAngle:i,endAngle:a,clockwise:!0}}var nb=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(v["b"])(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get("type"),l=rb(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&"none"!==s){var c=Yy(r),h=ib[s](a,u,l);h.style=c,e.graphicKey=h.type,e.pointer=h}var d=Ur(o.model,n);Qy(t,e,d,n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=Ur(t.axis.grid.model,t,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=$y(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=rb(a,i).getOtherAxis(i).getGlobalExtent(),l="x"===i.dim?0:1,u=[e.x,e.y];u[l]+=t[l],u[l]=Math.min(o[1],u[l]),u[l]=Math.max(o[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];h[l]=u[l];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:u[0],y:u[1],rotation:e.rotation,cursorPoint:h,tooltipOption:d[l]}},t}(Xy);function rb(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var ib={line:function(e,t,n){var r=Jy([t,n[0]],[t,n[1]],ab(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:eb([t-r/2,n[0]],[r,i],ab(e))}}};function ab(e){return"x"===e.dim?0:1}var ob=nb,sb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.type="axisPointer",t.defaultOption={show:"auto",zlevel:0,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}},t}(vr["a"]),lb=sb,ub=n("jwv5"),cb=Object(ot["o"])(),hb=s["each"];function db(e,t,n){if(!ub["a"].node){var r=t.getZr();cb(r).records||(cb(r).records={}),fb(r,t);var i=cb(r).records[e]||(cb(r).records[e]={});i.handler=n}}function fb(e,t){function n(n,r){e.on(n,(function(n){var i=vb(t);hb(cb(e).records,(function(e){e&&r(e,n,i.dispatchAction)})),pb(i.pendings,t)}))}cb(e).initialized||(cb(e).initialized=!0,n("click",s["curry"](mb,"click")),n("mousemove",s["curry"](mb,"mousemove")),n("globalout",gb))}function pb(e,t){var n,r=e.showTip.length,i=e.hideTip.length;r?n=e.showTip[r-1]:i&&(n=e.hideTip[i-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function gb(e,t,n){e.handler("leave",null,n)}function mb(e,t,n,r){t.handler(e,n,r)}function vb(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function yb(e,t){if(!ub["a"].node){var n=t.getZr(),r=(cb(n).records||{})[e];r&&(cb(n).records[e]=null)}}var bb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.render=function(e,t,n){var r=t.getComponent("tooltip"),i=e.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";db("axisPointer",n,(function(e,t,n){"none"!==i&&("leave"===e||i.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},t.prototype.remove=function(e,t){yb("axisPointer",t)},t.prototype.dispose=function(e,t){yb("axisPointer",t)},t.type="axisPointer",t}(mr["a"]),_b=bb;function xb(e,t){var n,r=[],i=e.seriesIndex;if(null==i||!(n=t.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=ot["t"](a,e);if(null==o||o<0||s["isArray"](o))return{point:[]};var l=a.getItemGraphicEl(o),u=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(o)||[];else if(u&&u.dataToPoint)if(e.isStacked){var c=u.getBaseAxis(),h=u.getOtherAxis(c),d=h.dim,f=c.dim,p="x"===d||"radius"===d?1:0,g=a.mapDimension(f),m=[];m[p]=a.get(g,o),m[1-p]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=u.dataToPoint(m)||[]}else r=u.dataToPoint(a.getValues(s["map"](u.dimensions,(function(e){return a.mapDimension(e)})),o))||[];else if(l){var v=l.getBoundingRect().clone();v.applyTransform(l.transform),r=[v.x+v.width/2,v.y+v.height/2]}return{point:r,el:l}}var wb=Object(ot["o"])();function Sb(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||Object(s["bind"])(n.dispatchAction,n),l=t.getComponent("axisPointer").coordSysAxesInfo;if(l){Pb(i)&&(i=xb({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var u=Pb(i),c=a.axesInfo,h=l.axesInfo,d="leave"===r||Pb(i),f={},p={},g={list:[],map:{}},m={showPointer:Object(s["curry"])(Mb,p),showTooltip:Object(s["curry"])(Eb,g)};Object(s["each"])(l.coordSysMap,(function(e,t){var n=u||e.containPoint(i);Object(s["each"])(l.coordSysAxesInfo[t],(function(e,t){var r=e.axis,a=Db(c,e);if(!d&&n&&(!c||a)){var o=a&&a.value;null!=o||u||(o=r.pointToData(i)),null!=o&&Tb(e,o,m,!1,f)}}))}));var v={};return Object(s["each"])(h,(function(e,t){var n=e.linkGroup;n&&!p[t]&&Object(s["each"])(n.axesInfo,(function(t,r){var i=p[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,Lb(t),Lb(e)))),v[e.key]=a}}))})),Object(s["each"])(v,(function(e,t){Tb(h[t],e,m,!0,f)})),Ab(p,h,f),Cb(g,i,e,o),Ib(h,o,n),f}}function Tb(e,t,n,r,i){var a=e.axis;if(!a.scale.isBlank()&&a.containData(t))if(e.involveSeries){var o=Ob(t,e),l=o.payloadBatch,u=o.snapToValue;l[0]&&null==i.seriesIndex&&Object(s["extend"])(i,l[0]),!r&&e.snap&&a.containData(u)&&null!=u&&(t=u),n.showPointer(e,t,l),n.showTooltip(e,o,u)}else n.showPointer(e,t)}function Ob(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,l=-1;return Object(s["each"])(t.seriesModels,(function(t,u){var c,h,d=t.getData().mapDimensionsAll(r);if(t.getAxisTooltipData){var f=t.getAxisTooltipData(d,e,n);h=f.dataIndices,c=f.nestestValue}else{if(h=t.getData().indicesOfNearest(d[0],e,"category"===n.type?.5:null),!h.length)return;c=t.getData().get(d[0],h[0])}if(null!=c&&isFinite(c)){var p=e-c,g=Math.abs(p);g<=o&&((g<o||p>=0&&l<0)&&(o=g,l=p,i=c,a.length=0),Object(s["each"])(h,(function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:a,snapToValue:i}}function Mb(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function Eb(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(t.triggerTooltip&&i.length){var l=t.coordSys.model,u=Ti(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function Ab(e,t,n){var r=n.axesInfo=[];Object(s["each"])(t,(function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status="show"),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})}))}function Cb(e,t,n,r){if(!Pb(t)&&e.list.length){var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}else r({type:"hideTip"})}function Ib(e,t,n){var r=n.getZr(),i="axisPointerLastHighlights",a=wb(r)[i]||{},o=wb(r)[i]={};Object(s["each"])(e,(function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&Object(s["each"])(n.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;o[t]=e}))}));var l=[],u=[];Object(s["each"])(a,(function(e,t){!o[t]&&u.push(e)})),Object(s["each"])(o,(function(e,t){!a[t]&&l.push(e)})),u.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),l.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:l})}function Db(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function Lb(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function Pb(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function kb(e){Ei.registerAxisPointerClass("CartesianAxisPointer",ob),e.registerComponentModel(lb),e.registerComponentView(_b),e.registerPreprocessor((function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!Object(s["isArray"])(t)&&(e.axisPointer.link=[t])}})),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=pi(e,t)})),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Sb)}function Rb(e){Object(r["a"])(zi),Object(r["a"])(kb)}var Nb=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(v["b"])(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis;"angle"===a.dim&&(this.animationThreshold=Math.PI/18);var o=a.polar,s=o.getOtherAxis(a),l=s.getExtent(),u=a.dataToCoord(t),c=r.get("type");if(c&&"none"!==c){var h=Yy(r),d=Fb[c](a,o,u,l);d.style=h,e.graphicKey=d.type,e.pointer=d}var f=r.get(["label","margin"]),p=jb(t,n,r,o,f);Ky(e,n,r,i,p)},t}(Xy);function jb(e,t,n,r,i){var a=t.axis,o=a.dataToCoord(e),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,c,h=r.getRadiusAxis().getExtent();if("radius"===a.dim){var d=Rr["create"]();Rr["rotate"](d,d,s),Rr["translate"](d,d,[r.cx,r.cy]),l=Le["applyTransform"]([o,-i],d);var f=t.getModel("axisLabel").get("rotate")||0,p=fi.innerTextLayout(s,f*Math.PI/180,-1);u=p.textAlign,c=p.textVerticalAlign}else{var g=h[1];l=r.coordToPoint([g+i,o]);var m=r.cx,v=r.cy;u=Math.abs(l[0]-m)/g<.3?"center":l[0]>m?"left":"right",c=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}var Fb={line:function(e,t,n,r){return"angle"===e.dim?{type:"Line",shape:Jy(t.coordToPoint([r[0],n]),t.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,r){var i=Math.max(1,e.getBandWidth()),a=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:tb(t.cx,t.cy,r[0],r[1],(-n-i/2)*a,(i/2-n)*a)}:{type:"Sector",shape:tb(t.cx,t.cy,n-i/2,n+i/2,0,2*Math.PI)}}},zb=Nb,Bb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.findAxisModel=function(e){var t,n=this.ecModel;return n.eachComponent(e,(function(e){e.getCoordSysModel()===this&&(t=e)}),this),t},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={zlevel:0,z:0,center:["50%","50%"],radius:"80%"},t}(vr["a"]),Vb=Bb,Gb=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(v["b"])(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ot["b"]).models[0]},t.type="polarAxis",t}(vr["a"]);s["mixin"](Gb,_r["a"]);var Hb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.type="angleAxis",t}(Gb),Ub=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.type="radiusAxis",t}(Gb),Wb=function(e){function t(t,n){return e.call(this,"radius",t,n)||this}return Object(v["b"])(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}(Vr["a"]);Wb.prototype.dataToRadius=Vr["a"].prototype.dataToCoord,Wb.prototype.radiusToData=Vr["a"].prototype.coordToData;var Xb=Wb,Yb=Object(ot["o"])(),Kb=function(e){function t(t,n){return e.call(this,"angle",t,n||[0,360])||this}return Object(v["b"])(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),n=e.scale,r=n.getExtent(),i=n.count();if(r[1]-r[0]<1)return 0;var a=r[0],o=e.dataToCoord(a+1)-e.dataToCoord(a),s=Math.abs(o),l=y["e"](null==a?"":a+"",t.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)),d=Yb(e.model),f=d.lastAutoInterval,p=d.lastTickCount;return null!=f&&null!=p&&Math.abs(f-h)<=1&&Math.abs(p-i)<=1&&f>h?h=f:(d.lastTickCount=i,d.lastAutoInterval=h),h},t}(Vr["a"]);Kb.prototype.dataToAngle=Vr["a"].prototype.dataToCoord,Kb.prototype.angleToData=Vr["a"].prototype.coordToData;var qb=Kb,Zb=function(){function e(e){this.dimensions=["radius","angle"],this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Xb,this._angleAxis=new qb,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,r=this._radiusAxis;return n.scale.type===e&&t.push(n),r.scale.type===e&&t.push(r),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},e.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=this.getAngleAxis(),i=r.getExtent(),a=Math.min(i[0],i[1]),o=Math.max(i[0],i[1]);r.inverse?a=o-360:o=a+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;var l=Math.atan2(-n,t)/Math.PI*180,u=l<a?1:-1;while(l<a||l>o)l+=360*u;return[s,l]},e.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI,r=Math.cos(n)*t+this.cx,i=-Math.sin(n)*t+this.cy;return[r,i]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var r=e.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:e.inverse,contain:function(e,t){var n=e-this.cx,r=t-this.cy,i=n*n+r*r,a=this.r,o=this.r0;return i<=a*a&&i>=o*o}}},e.prototype.convertToPixel=function(e,t,n){var r=$b(t);return r===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var r=$b(t);return r===this?this.pointToData(n):null},e}();function $b(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var Qb=Zb;function Jb(e,t,n){var r=t.get("center"),i=n.getWidth(),a=n.getHeight();e.cx=Object(Ne["o"])(r[0],i),e.cy=Object(Ne["o"])(r[1],a);var o=e.getRadiusAxis(),l=Math.min(i,a)/2,u=t.get("radius");null==u?u=[0,"100%"]:s["isArray"](u)||(u=[0,u]);var c=[Object(Ne["o"])(u[0],l),Object(Ne["o"])(u[1],l)];o.inverse?o.setExtent(c[1],c[0]):o.setExtent(c[0],c[1])}function e_(e,t){var n=this,r=n.getAngleAxis(),i=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===n){var t=e.getData();s["each"](Object(Lr["d"])(t,"radius"),(function(e){i.scale.unionExtentFromData(t,e)})),s["each"](Object(Lr["d"])(t,"angle"),(function(e){r.scale.unionExtentFromData(t,e)}))}})),Object(Lr["i"])(r.scale,r.model),Object(Lr["i"])(i.scale,i.model),"category"===r.type&&!r.onBand){var a=r.getExtent(),o=360/r.scale.count();r.inverse?a[1]+=o:a[1]-=o,r.setExtent(a[0],a[1])}}function t_(e){return"angleAxis"===e.mainType}function n_(e,t){if(e.type=t.get("type"),e.scale=Object(Lr["a"])(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),t_(t)){e.inverse=e.inverse!==t.get("clockwise");var n=t.get("startAngle");e.setExtent(n,n+(e.inverse?-360:360))}t.axis=e,e.model=t}var r_={dimensions:Qb.prototype.dimensions,create:function(e,t){var n=[];return e.eachComponent("polar",(function(e,r){var i=new Qb(r+"");i.update=e_;var a=i.getRadiusAxis(),o=i.getAngleAxis(),s=e.findAxisModel("radiusAxis"),l=e.findAxisModel("angleAxis");n_(a,s),n_(o,l),Jb(i,e,t),n.push(i),e.coordinateSystem=i,i.model=e})),e.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var t=e.getReferringComponents("polar",ot["b"]).models[0];0,e.coordinateSystem=t.coordinateSystem}})),n}},i_=r_,a_=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function o_(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var r=e.coordToPoint([t[0],n]),i=e.coordToPoint([t[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function s_(e){var t=e.getRadiusAxis();return t.inverse?0:1}function l_(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var u_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return Object(v["b"])(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,r=n.polar,i=r.getRadiusAxis().getExtent(),a=n.getTicksCoords(),o=n.getMinorTicksCoords(),l=s["map"](n.getViewLabels(),(function(e){e=s["clone"](e);var t=n.scale,r="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(r),e}));l_(l),l_(a),s["each"](a_,(function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||c_[t](this.group,e,r,a,o,i,l)}),this)}},t.type="angleAxis",t}(Ei),c_={axisLine:function(e,t,n,r,i,a){var o,s=t.getModel(["axisLine","lineStyle"]),l=s_(n),u=l?0:1;o=0===a[u]?new na["a"]({shape:{cx:n.cx,cy:n.cy,r:a[l]},style:s.getLineStyle(),z2:1,silent:!0}):new ra["a"]({shape:{cx:n.cx,cy:n.cy,r:a[l],r0:a[u]},style:s.getLineStyle(),z2:1,silent:!0}),o.style.fill=null,e.add(o)},axisTick:function(e,t,n,r,i,a){var o=t.getModel("axisTick"),l=(o.get("inside")?-1:1)*o.get("length"),u=a[s_(n)],c=s["map"](r,(function(e){return new Jr["a"]({shape:o_(n,[u,u+l],e.coord)})}));e.add(Le["mergePath"](c,{style:s["defaults"](o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,r,i,a){if(i.length){for(var o=t.getModel("axisTick"),l=t.getModel("minorTick"),u=(o.get("inside")?-1:1)*l.get("length"),c=a[s_(n)],h=[],d=0;d<i.length;d++)for(var f=0;f<i[d].length;f++)h.push(new Jr["a"]({shape:o_(n,[c,c+u],i[d][f].coord)}));e.add(Le["mergePath"](h,{style:s["defaults"](l.getModel("lineStyle").getLineStyle(),s["defaults"](o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,n,r,i,a,o){var l=t.getCategories(!0),u=t.getModel("axisLabel"),c=u.get("margin"),h=t.get("triggerEvent");s["each"](o,(function(r,i){var o=u,d=r.tickValue,f=a[s_(n)],p=n.coordToPoint([f+c,r.coord]),g=n.cx,m=n.cy,v=Math.abs(p[0]-g)/f<.3?"center":p[0]>g?"left":"right",y=Math.abs(p[1]-m)/f<.3?"middle":p[1]>m?"top":"bottom";if(l&&l[d]){var b=l[d];s["isObject"](b)&&b.textStyle&&(o=new ei["a"](b.textStyle,u,u.ecModel))}var _=new at["a"]({silent:fi.isLabelSilent(t),style:Object(Be["c"])(o,{x:p[0],y:p[1],fill:o.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:r.formattedLabel,align:v,verticalAlign:y})});if(e.add(_),h){var x=fi.makeAxisEventDataBase(t);x.targetType="axisLabel",x.value=r.rawLabel,Object(ke["a"])(_).eventData=x}}),this)},splitLine:function(e,t,n,r,i,a){var o=t.getModel("splitLine"),l=o.getModel("lineStyle"),u=l.get("color"),c=0;u=u instanceof Array?u:[u];for(var h=[],d=0;d<r.length;d++){var f=c++%u.length;h[f]=h[f]||[],h[f].push(new Jr["a"]({shape:o_(n,a,r[d].coord)}))}for(d=0;d<h.length;d++)e.add(Le["mergePath"](h[d],{style:s["defaults"]({stroke:u[d%u.length]},l.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,n,r,i,a){if(i.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<i.length;u++)for(var c=0;c<i[u].length;c++)l.push(new Jr["a"]({shape:o_(n,a,i[u][c].coord)}));e.add(Le["mergePath"](l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,n,r,i,a){if(r.length){var o=t.getModel("splitArea"),l=o.getModel("areaStyle"),u=l.get("color"),c=0;u=u instanceof Array?u:[u];for(var h=[],d=Math.PI/180,f=-r[0].coord*d,p=Math.min(a[0],a[1]),g=Math.max(a[0],a[1]),m=t.get("clockwise"),v=1,y=r.length;v<=y;v++){var b=v===y?r[0].coord:r[v].coord,_=c++%u.length;h[_]=h[_]||[],h[_].push(new bt["a"]({shape:{cx:n.cx,cy:n.cy,r0:p,r:g,startAngle:f,endAngle:-b*d,clockwise:m},silent:!0})),f=-b*d}for(v=0;v<h.length;v++)e.add(Le["mergePath"](h[v],{style:s["defaults"]({fill:u[v%u.length]},l.getAreaStyle()),silent:!0}))}}},h_=u_,d_=["axisLine","axisTickLabel","axisName"],f_=["splitLine","splitArea","minorSplitLine"],p_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return Object(v["b"])(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=this._axisGroup,r=this._axisGroup=new De["a"];this.group.add(r);var i=e.axis,a=i.polar,o=a.getAngleAxis(),l=i.getTicksCoords(),u=i.getMinorTicksCoords(),c=o.getExtent()[0],h=i.getExtent(),d=m_(a,e,c),f=new fi(e,d);s["each"](d_,f.add,f),r.add(f.getGroup()),Le["groupTransition"](n,r,e),s["each"](f_,(function(t){e.get([t,"show"])&&!i.scale.isBlank()&&g_[t](this.group,e,a,c,h,l,u)}),this)}},t.type="radiusAxis",t}(Ei),g_={splitLine:function(e,t,n,r,i,a){var o=t.getModel("splitLine"),l=o.getModel("lineStyle"),u=l.get("color"),c=0;u=u instanceof Array?u:[u];for(var h=[],d=0;d<a.length;d++){var f=c++%u.length;h[f]=h[f]||[],h[f].push(new na["a"]({shape:{cx:n.cx,cy:n.cy,r:a[d].coord}}))}for(d=0;d<h.length;d++)e.add(Le["mergePath"](h[d],{style:s["defaults"]({stroke:u[d%u.length],fill:null},l.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,r,i,a,o){if(o.length){for(var l=t.getModel("minorSplitLine"),u=l.getModel("lineStyle"),c=[],h=0;h<o.length;h++)for(var d=0;d<o[h].length;d++)c.push(new na["a"]({shape:{cx:n.cx,cy:n.cy,r:o[h][d].coord}}));e.add(Le["mergePath"](c,{style:s["defaults"]({fill:null},u.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,r,i,a){if(a.length){var o=t.getModel("splitArea"),l=o.getModel("areaStyle"),u=l.get("color"),c=0;u=u instanceof Array?u:[u];for(var h=[],d=a[0].coord,f=1;f<a.length;f++){var p=c++%u.length;h[p]=h[p]||[],h[p].push(new bt["a"]({shape:{cx:n.cx,cy:n.cy,r0:d,r:a[f].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),d=a[f].coord}for(f=0;f<h.length;f++)e.add(Le["mergePath"](h[f],{style:s["defaults"]({fill:u[f%u.length]},l.getAreaStyle()),silent:!0}))}}};function m_(e,t,n){return{position:[e.cx,e.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}var v_=p_;function y_(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function b_(e,t){return t.dim+e.model.componentIndex}function __(e,t,n){var r={},i=x_(s["filter"](t.getSeriesByType(e),(function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&"polar"===e.coordinateSystem.type})));t.eachSeriesByType(e,(function(e){if("polar"===e.coordinateSystem.type){var t=e.getData(),n=e.coordinateSystem,a=n.getBaseAxis(),o=b_(n,a),s=y_(e),l=i[o][s],u=l.offset,c=l.width,h=n.getOtherAxis(a),d=e.coordinateSystem.cx,f=e.coordinateSystem.cy,p=e.get("barMinHeight")||0,g=e.get("barMinAngle")||0;r[s]=r[s]||[];for(var m=t.mapDimension(h.dim),v=t.mapDimension(a.dim),y=Object(qe["c"])(t,m),b="radius"!==a.dim||!e.get("roundCap",!0),_=h.dataToCoord(0),x=0,w=t.count();x<w;x++){var S=t.get(m,x),T=t.get(v,x),O=S>=0?"p":"n",M=_;y&&(r[s][T]||(r[s][T]={p:_,n:_}),M=r[s][T][O]);var E=void 0,A=void 0,C=void 0,I=void 0;if("radius"===h.dim){var D=h.dataToCoord(S)-_,L=a.dataToCoord(T);Math.abs(D)<p&&(D=(D<0?-1:1)*p),E=M,A=M+D,C=L-u,I=C-c,y&&(r[s][T][O]=A)}else{var P=h.dataToCoord(S,b)-_,k=a.dataToCoord(T);Math.abs(P)<g&&(P=(P<0?-1:1)*g),E=k+u,A=E+c,C=M,I=M+P,y&&(r[s][T][O]=I)}t.setItemLayout(x,{cx:d,cy:f,r0:E,r:A,startAngle:-C*Math.PI/180,endAngle:-I*Math.PI/180})}}}))}function x_(e){var t={};s["each"](e,(function(e,n){var r=e.getData(),i=e.coordinateSystem,a=i.getBaseAxis(),o=b_(i,a),s=a.getExtent(),l="category"===a.type?a.getBandWidth():Math.abs(s[1]-s[0])/r.count(),u=t[o]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=u.stacks;t[o]=u;var h=y_(e);c[h]||u.autoWidthCount++,c[h]=c[h]||{width:0,maxWidth:0};var d=Object(Ne["o"])(e.get("barWidth"),l),f=Object(Ne["o"])(e.get("barMaxWidth"),l),p=e.get("barGap"),g=e.get("barCategoryGap");d&&!c[h].width&&(d=Math.min(u.remainedWidth,d),c[h].width=d,u.remainedWidth-=d),f&&(c[h].maxWidth=f),null!=p&&(u.gap=p),null!=g&&(u.categoryGap=g)}));var n={};return s["each"](t,(function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,a=Object(Ne["o"])(e.categoryGap,i),o=Object(Ne["o"])(e.gap,1),l=e.remainedWidth,u=e.autoWidthCount,c=(l-a)/(u+(u-1)*o);c=Math.max(c,0),s["each"](r,(function(e,t){var n=e.maxWidth;n&&n<c&&(n=Math.min(n,l),e.width&&(n=Math.min(n,e.width)),l-=n,e.width=n,u--)})),c=(l-a)/(u+(u-1)*o),c=Math.max(c,0);var h,d=0;s["each"](r,(function(e,t){e.width||(e.width=c),h=e,d+=e.width*(1+o)})),h&&(d-=h.width*o);var f=-d/2;s["each"](r,(function(e,r){n[t][r]=n[t][r]||{offset:f,width:e.width},f+=e.width*(1+o)}))})),n}var w_=__,S_={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},T_={splitNumber:5},O_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.type="polar",t}(mr["a"]);function M_(e){Object(r["a"])(kb),Ei.registerAxisPointerClass("PolarAxisPointer",zb),e.registerCoordinateSystem("polar",i_),e.registerComponentModel(Vb),e.registerComponentView(O_),Ir(e,"angle",Hb,S_),Ir(e,"radius",Ub,T_),e.registerComponentView(h_),e.registerComponentView(v_),e.registerLayout(Object(s["curry"])(w_,"bar"))}function E_(e,t){t=t||{};var n=e.coordinateSystem,r=e.axis,i={},a=r.position,o=r.orient,l=n.getRect(),u=[l.x,l.x+l.width,l.y,l.y+l.height],c={horizontal:{top:u[2],bottom:u[3]},vertical:{left:u[0],right:u[1]}};i.position=["vertical"===o?c.vertical[a]:u[0],"horizontal"===o?c.horizontal[a]:u[3]];var h={horizontal:0,vertical:1};i.rotation=Math.PI/2*h[o];var d={top:-1,bottom:1,right:1,left:-1};i.labelDirection=i.tickDirection=i.nameDirection=d[a],e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),s["retrieve"](t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var f=t.rotate;return null==f&&(f=e.get(["axisLabel","rotate"])),i.labelRotation="top"===a?-f:f,i.z2=1,i}var A_=["axisLine","axisTickLabel","axisName"],C_=["splitArea","splitLine"],I_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="SingleAxisPointer",n}return Object(v["b"])(t,e),t.prototype.render=function(t,n,r,i){var a=this.group;a.removeAll();var o=this._axisGroup;this._axisGroup=new De["a"];var l=E_(t),u=new fi(t,l);s["each"](A_,u.add,u),a.add(this._axisGroup),a.add(u.getGroup()),s["each"](C_,(function(e){t.get([e,"show"])&&D_[e](this,this.group,this._axisGroup,t)}),this),Le["groupTransition"](o,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i)},t.prototype.remove=function(){Ii(this)},t.type="singleAxis",t}(Ei),D_={splitLine:function(e,t,n,r){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitLine"),o=a.getModel("lineStyle"),l=o.get("color");l=l instanceof Array?l:[l];for(var u=r.coordinateSystem.getRect(),c=i.isHorizontal(),h=[],d=0,f=i.getTicksCoords({tickModel:a}),p=[],g=[],m=0;m<f.length;++m){var v=i.toGlobalCoord(f[m].coord);c?(p[0]=v,p[1]=u.y,g[0]=v,g[1]=u.y+u.height):(p[0]=u.x,p[1]=v,g[0]=u.x+u.width,g[1]=v);var y=d++%l.length;h[y]=h[y]||[],h[y].push(new Jr["a"]({subPixelOptimize:!0,shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},silent:!0}))}var b=o.getLineStyle(["color"]);for(m=0;m<h.length;++m)t.add(Le["mergePath"](h[m],{style:s["defaults"]({stroke:l[m%l.length]},b),silent:!0}))}},splitArea:function(e,t,n,r){Ci(e,n,r,r)}},L_=I_,P_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(vr["a"]);Object(s["mixin"])(P_,_r["a"].prototype);var k_=P_,R_=function(e){function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.type=i||"value",o.position=a||"bottom",o}return Object(v["b"])(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.pointToData=function(e,t){return this.coordinateSystem.pointToData(e)[0]},t}(Vr["a"]),N_=R_,j_=function(){function e(e,t,n){this.type="single",this.dimension="single",this.dimensions=["single"],this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=this.dimension,i=new N_(r,Lr["a"](e),[0,0],e.get("type"),e.get("position")),a="category"===i.type;i.onBand=a&&e.get("boundaryGap"),i.inverse=e.get("inverse"),i.orient=e.get("orient"),e.axis=i,i.model=e,i.coordinateSystem=this,this._axis=i},e.prototype.update=function(e,t){e.eachSeries((function(e){if(e.coordinateSystem===this){var t=e.getData();Object(s["each"])(t.mapDimensionsAll(this.dimension),(function(e){this._axis.scale.unionExtentFromData(t,e)}),this),Lr["i"](this._axis.scale,this._axis.model)}}),this)},e.prototype.resize=function(e,t){this._rect=Object(Ln["g"])({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),r=n?[0,e.width]:[0,e.height],i=t.reverse?1:0;t.setExtent(r[i],r[1-i]),this._updateAxisTransform(t,n?e.x:e.y)},e.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),r=n[0]+n[1],i=e.isHorizontal();e.toGlobalCoord=i?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=i?function(e){return e-t}:function(e){return r-e+t}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(e){var t=this.getRect(),n=this.getAxis(),r=n.orient;return"horizontal"===r?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},e.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},e.prototype.dataToPoint=function(e){var t=this.getAxis(),n=this.getRect(),r=[],i="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),r[i]=t.toGlobalCoord(t.dataToCoord(+e)),r[1-i]=0===i?n.y+n.height/2:n.x+n.width/2,r},e.prototype.convertToPixel=function(e,t,n){var r=F_(t);return r===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var r=F_(t);return r===this?this.pointToData(n):null},e}();function F_(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var z_=j_;function B_(e,t){var n=[];return e.eachComponent("singleAxis",(function(r,i){var a=new z_(r,e,t);a.name="single_"+i,a.resize(r,t),r.coordinateSystem=a,n.push(a)})),e.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",ot["b"]).models[0];e.coordinateSystem=t&&t.coordinateSystem}})),n}var V_={create:B_,dimensions:z_.prototype.dimensions},G_=V_,H_=["x","y"],U_=["width","height"],W_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(v["b"])(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.coordinateSystem,s=K_(o,1-Y_(a)),l=o.dataToPoint(t)[0],u=r.get("type");if(u&&"none"!==u){var c=Yy(r),h=X_[u](a,l,s);h.style=c,e.graphicKey=h.type,e.pointer=h}var d=E_(n);Qy(t,e,d,n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=E_(t,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=$y(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.coordinateSystem,o=Y_(i),s=K_(a,o),l=[e.x,e.y];l[o]+=t[o],l[o]=Math.min(s[1],l[o]),l[o]=Math.max(s[0],l[o]);var u=K_(a,1-o),c=(u[1]+u[0])/2,h=[c,c];return h[o]=l[o],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(Xy),X_={line:function(e,t,n){var r=Jy([t,n[0]],[t,n[1]],Y_(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=e.getBandWidth(),i=n[1]-n[0];return{type:"Rect",shape:eb([t-r/2,n[0]],[r,i],Y_(e))}}};function Y_(e){return e.isHorizontal()?0:1}function K_(e,t){var n=e.getRect();return[n[H_[t]],n[H_[t]]+n[U_[t]]]}var q_=W_,Z_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.type="single",t}(mr["a"]);function $_(e){Object(r["a"])(kb),Ei.registerAxisPointerClass("SingleAxisPointer",q_),e.registerComponentView(Z_),e.registerComponentView(L_),e.registerComponentModel(k_),Ir(e,"single",k_,k_.defaultOption),e.registerCoordinateSystem("single",G_)}var Q_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.init=function(t,n,r){var i=Object(Ln["f"])(t);e.prototype.init.apply(this,arguments),J_(t,i)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),J_(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={zlevel:0,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%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(vr["a"]);function J_(e,t){var n,r=e.cellSize;n=s["isArray"](r)?r:e.cellSize=[r,r],1===n.length&&(n[1]=n[0]);var i=s["map"]([0,1],(function(e){return Object(Ln["j"])(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]}));Object(Ln["h"])(e,t,{type:"box",ignoreSize:i})}var ex=Q_,tx={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"]},nx={EN:["S","M","T","W","T","F","S"],CN:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"]},rx=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.render=function(e,t,n){var r=this.group;r.removeAll();var i=e.coordinateSystem,a=i.getRangeInfo(),o=i.getOrient();this._renderDayRect(e,a,r),this._renderLines(e,a,o,r),this._renderYearText(e,a,o,r),this._renderMonthText(e,o,r),this._renderWeekText(e,a,o,r)},t.prototype._renderDayRect=function(e,t,n){for(var r=e.coordinateSystem,i=e.getModel("itemStyle").getItemStyle(),a=r.getCellWidth(),o=r.getCellHeight(),s=t.start.time;s<=t.end.time;s=r.getNextNDay(s,1).time){var l=r.dataToRect([s],!1).tl,u=new yt["a"]({shape:{x:l[0],y:l[1],width:a,height:o},cursor:"default",style:i});n.add(u)}},t.prototype._renderLines=function(e,t,n,r){var i=this,a=e.coordinateSystem,o=e.getModel(["splitLine","lineStyle"]).getLineStyle(),s=e.get(["splitLine","show"]),l=o.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=t.start,c=0;u.time<=t.end.time;c++){d(u.formatedDate),0===c&&(u=a.getDateInfo(t.start.y+"-"+t.start.m));var h=u.date;h.setMonth(h.getMonth()+1),u=a.getDateInfo(h)}function d(t){i._firstDayOfMonth.push(a.getDateInfo(t)),i._firstDayPoints.push(a.dataToRect([t],!1).tl);var l=i._getLinePointsOfOneWeek(e,t,n);i._tlpoints.push(l[0]),i._blpoints.push(l[l.length-1]),s&&i._drawSplitline(l,o,r)}d(a.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,l,n),o,r),s&&this._drawSplitline(i._getEdgesPoints(i._blpoints,l,n),o,r)},t.prototype._getEdgesPoints=function(e,t,n){var r=[e[0].slice(),e[e.length-1].slice()],i="horizontal"===n?0:1;return r[0][i]=r[0][i]-t/2,r[1][i]=r[1][i]+t/2,r},t.prototype._drawSplitline=function(e,t,n){var r=new Fn["a"]({z2:20,shape:{points:e},style:t});n.add(r)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var r=e.coordinateSystem,i=r.getDateInfo(t),a=[],o=0;o<7;o++){var s=r.getNextNDay(i.time,o),l=r.dataToRect([s.time],!1);a[2*s.day]=l.tl,a[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return a},t.prototype._formatterLabel=function(e,t){return"string"===typeof e&&e?Tt["g"](e,t):"function"===typeof e?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,r,i){var a=t[0],o=t[1],s=["center","bottom"];"bottom"===r?(o+=i,s=["center","top"]):"left"===r?a-=i:"right"===r?(a+=i,s=["center","top"]):o-=i;var l=0;return"left"!==r&&"right"!==r||(l=Math.PI/2),{rotation:l,x:a,y:o,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,r){var i=e.getModel("yearLabel");if(i.get("show")){var a=i.get("margin"),o=i.get("position");o||(o="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]},d=t.start.y;+t.end.y>+t.start.y&&(d=d+"-"+t.end.y);var f=i.get("formatter"),p={start:t.start.y,end:t.end.y,nameMap:d},g=this._formatterLabel(f,p),m=new at["a"]({z2:30,style:Object(Be["c"])(i,{text:g})});m.attr(this._yearTextPositionControl(m,h[o],n,o,a)),r.add(m)}},t.prototype._monthTextPositionControl=function(e,t,n,r,i){var a="left",o="top",s=e[0],l=e[1];return"horizontal"===n?(l+=i,t&&(a="center"),"start"===r&&(o="bottom")):(s+=i,t&&(o="middle"),"start"===r&&(a="right")),{x:s,y:l,align:a,verticalAlign:o}},t.prototype._renderMonthText=function(e,t,n){var r=e.getModel("monthLabel");if(r.get("show")){var i=r.get("nameMap"),a=r.get("margin"),o=r.get("position"),l=r.get("align"),u=[this._tlpoints,this._blpoints];s["isString"](i)&&(i=tx[i.toUpperCase()]||[]);var c="start"===o?0:1,h="horizontal"===t?0:1;a="start"===o?-a:a;for(var d="center"===l,f=0;f<u[c].length-1;f++){var p=u[c][f].slice(),g=this._firstDayOfMonth[f];if(d){var m=this._firstDayPoints[f];p[h]=(m[h]+u[0][f+1][h])/2}var v=r.get("formatter"),y=i[+g.m-1],b={yyyy:g.y,yy:(g.y+"").slice(2),MM:g.m,M:+g.m,nameMap:y},_=this._formatterLabel(v,b),x=new at["a"]({z2:30,style:s["extend"](Object(Be["c"])(r,{text:_}),this._monthTextPositionControl(p,d,t,o,a))});n.add(x)}}},t.prototype._weekTextPositionControl=function(e,t,n,r,i){var a="center",o="middle",s=e[0],l=e[1],u="start"===n;return"horizontal"===t?(s=s+r+(u?1:-1)*i[0]/2,a=u?"right":"left"):(l=l+r+(u?1:-1)*i[1]/2,o=u?"bottom":"top"),{x:s,y:l,align:a,verticalAlign:o}},t.prototype._renderWeekText=function(e,t,n,r){var i=e.getModel("dayLabel");if(i.get("show")){var a=e.coordinateSystem,o=i.get("position"),l=i.get("nameMap"),u=i.get("margin"),c=a.getFirstDayOfWeek();s["isString"](l)&&(l=nx[l.toUpperCase()]||[]);var h=a.getNextNDay(t.end.time,7-t.lweek).time,d=[a.getCellWidth(),a.getCellHeight()];u=Ne["o"](u,d["horizontal"===n?0:1]),"start"===o&&(h=a.getNextNDay(t.start.time,-(7+t.fweek)).time,u=-u);for(var f=0;f<7;f++){var p=a.getNextNDay(h,f),g=a.dataToRect([p.time],!1).center,m=f;m=Math.abs((f+c)%7);var v=new at["a"]({z2:30,style:s["extend"](Object(Be["c"])(i,{text:l[m]}),this._weekTextPositionControl(g,n,o,u,d))});r.add(v)}}},t.type="calendar",t}(mr["a"]),ix=rx,ax=864e5,ox=function(){function e(t,n,r){this.type="calendar",this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t}return e.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(e){e=Ne["n"](e);var t=e.getFullYear(),n=e.getMonth()+1,r=n<10?"0"+n:""+n,i=e.getDate(),a=i<10?"0"+i:""+i,o=e.getDay();return o=Math.abs((o+7-this.getFirstDayOfWeek())%7),{y:t+"",m:r,d:a,day:o,time:e.getTime(),formatedDate:t+"-"+r+"-"+a,date:e}},e.prototype.getNextNDay=function(e,t){return t=t||0,0===t||(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t)),this.getDateInfo(e)},e.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,r=["width","height"],i=this._model.getCellSize().slice(),a=this._model.getBoxLayoutParams(),o="horizontal"===this._orient?[n,7]:[7,n];s["each"]([0,1],(function(e){c(i,e)&&(a[r[e]]=i[e]*o[e])}));var l={width:t.getWidth(),height:t.getHeight()},u=this._rect=Ln["g"](a,l);function c(e,t){return null!=e[t]&&"auto"!==e[t]}s["each"]([0,1],(function(e){c(i,e)||(i[e]=u[r[e]]/o[e])})),this._sw=i[0],this._sh=i[1]},e.prototype.dataToPoint=function(e,t){s["isArray"](e)&&(e=e[0]),null==t&&(t=!0);var n=this.getDateInfo(e),r=this._rangeInfo,i=n.formatedDate;if(t&&!(n.time>=r.start.time&&n.time<r.end.time+ax))return[NaN,NaN];var a=n.day,o=this._getRangeInfo([r.start.time,i]).nthWeek;return"vertical"===this._orient?[this._rect.x+a*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]:[this._rect.x+o*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]},e.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},e.prototype.dataToRect=function(e,t){var n=this.dataToPoint(e,t);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},e.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,r=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,t-1,r):this._getDateByWeeksAndDay(t,n-1,r)},e.prototype.convertToPixel=function(e,t,n){var r=sx(t);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var r=sx(t);return r===this?r.pointToData(n):null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.prototype._initRangeOption=function(){var e,t=this._model.get("range");if(s["isArray"](t)&&1===t.length&&(t=t[0]),s["isArray"](t))e=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(e=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var r=this.getDateInfo(n),i=r.date;i.setMonth(i.getMonth()+1);var a=this.getNextNDay(i,-1);e=[r.formatedDate,a.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(e=[n,n])}if(!e)return t;var o=this._getRangeInfo(e);return o.start.time>o.end.time&&e.reverse(),e},e.prototype._getRangeInfo=function(e){var t,n=[this.getDateInfo(e[0]),this.getDateInfo(e[1])];n[0].time>n[1].time&&(t=!0,n.reverse());var r=Math.floor(n[1].time/ax)-Math.floor(n[0].time/ax)+1,i=new Date(n[0].time),a=i.getDate(),o=n[1].date.getDate();i.setDate(a+r-1);var s=i.getDate();if(s!==o){var l=i.getTime()-n[1].time>0?1:-1;while((s=i.getDate())!==o&&(i.getTime()-n[1].time)*l>0)r-=l,i.setDate(s-l)}var u=Math.floor((r+n[0].day+6)/7),c=t?1-u:u-1;return t&&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}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var r=this._getRangeInfo(n);if(e>r.weeks||0===e&&t<r.fweek||e===r.weeks&&t>r.lweek)return null;var i=7*(e-1)-r.fweek+t,a=new Date(r.start.time);return a.setDate(+r.start.d+i),this.getDateInfo(a)},e.create=function(t,n){var r=[];return t.eachComponent("calendar",(function(i){var a=new e(i,t,n);r.push(a),i.coordinateSystem=a})),t.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=r[e.get("calendarIndex")||0])})),r},e.dimensions=["time","value"],e}();function sx(e){var t=e.calendarModel,n=e.seriesModel,r=t?t.coordinateSystem:n?n.coordinateSystem:null;return r}var lx=ox;function ux(e){e.registerComponentModel(ex),e.registerComponentView(ix),e.registerCoordinateSystem("calendar",lx)}var cx=ot["o"](),hx={path:null,compoundPath:null,group:De["a"],image:u["a"],text:at["a"]},dx=function(e){var t=e.graphic;s["isArray"](t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])},fx=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.mergeOption=function(t,n){var r=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=r},t.prototype.optionUpdated=function(e,t){var n=this.option,r=(t?n:e).elements,i=n.elements=t?[]:n.elements,a=[];this._flatten(r,a,null);var o=ot["q"](i,a,"normalMerge"),l=this._elOptionsToUpdate=[];s["each"](o,(function(e,t){var n=e.newOption;n&&(l.push(n),bx(e,n),_x(i,t,n),xx(i[t],n))}),this);for(var u=i.length-1;u>=0;u--)null==i[u]?i.splice(u,1):delete i[u].$action},t.prototype._flatten=function(e,t,n){s["each"](e,(function(e){if(e){n&&(e.parentOption=n),t.push(e);var r=e.children;"group"===e.type&&r&&this._flatten(r,t,e),delete e.children}}),this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(vr["a"]),px=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.init=function(){this._elMap=s["createHashMap"]()},t.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,r=this.group;s["each"](t,(function(t){var i=ot["e"](t.id,null),a=null!=i?n.get(i):null,o=ot["e"](t.parentId,null),s=null!=o?n.get(o):r,l=t.type,u=t.style;"text"===l&&u&&t.hv&&t.hv[1]&&(u.textVerticalAlign=u.textBaseline=u.verticalAlign=u.align=null);var c=t.textContent,h=t.textConfig;if(u&&Vm(u,l,!!h,!!c)){var d=Gm(u,l,!0);!h&&d.textConfig&&(h=t.textConfig=d.textConfig),!c&&d.textContent&&(c=d.textContent)}var f=vx(t);var p=t.$action||"merge";"merge"===p?a?a.attr(f):gx(i,s,f,n):"replace"===p?(mx(a,n),gx(i,s,f,n)):"remove"===p&&mx(a,n);var g=n.get(i);if(g&&c)if("merge"===p){var m=g.getTextContent();m?m.attr(c):g.setTextContent(new at["a"](c))}else"replace"===p&&g.setTextContent(new at["a"](c));if(g){var v=cx(g);v.__ecGraphicWidthOption=t.width,v.__ecGraphicHeightOption=t.height,wx(g,e,t)}}))}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,r=this.group,i=this._elMap,a=t.getWidth(),o=t.getHeight(),s=0;s<n.length;s++){var l=n[s],u=ot["e"](l.id,null),c=null!=u?i.get(u):null;if(c&&c.isGroup){var h=c.parent,d=h===r,f=cx(c),p=cx(h);f.__ecGraphicWidth=Object(Ne["o"])(f.__ecGraphicWidthOption,d?a:p.__ecGraphicWidth)||0,f.__ecGraphicHeight=Object(Ne["o"])(f.__ecGraphicHeightOption,d?o:p.__ecGraphicHeight)||0}}for(s=n.length-1;s>=0;s--){l=n[s],u=ot["e"](l.id,null),c=null!=u?i.get(u):null;if(c){h=c.parent,p=cx(h);var g=h===r?{width:a,height:o}:{width:p.__ecGraphicWidth,height:p.__ecGraphicHeight};Ln["i"](c,l,g,null,{hv:l.hv,boundingMode:l.bounding})}}},t.prototype._clear=function(){var e=this._elMap;e.each((function(t){mx(t,e)})),this._elMap=s["createHashMap"]()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(mr["a"]);function gx(e,t,n,r){var i=n.type;var a=s["hasOwn"](hx,i)?hx[i]:Le["getShapeClass"](i);var o=new a(n);t.add(o),r.set(e,o),cx(o).__ecGraphicId=e}function mx(e,t){var n=e&&e.parent;n&&("group"===e.type&&e.traverse((function(e){mx(e,t)})),t.removeKey(cx(e).__ecGraphicId),n.remove(e))}function vx(e){return e=s["extend"]({},e),s["each"](["id","parentId","$action","hv","bounding","textContent"].concat(Ln["a"]),(function(t){delete e[t]})),e}function yx(e,t){var n;return s["each"](t,(function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)})),n}function bx(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),null==t.parentId){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function _x(e,t,n){var r=s["extend"]({},n),i=e[t],a=n.$action||"merge";"merge"===a?i?(s["merge"](i,r,!0),Ln["h"](i,r,{ignoreSize:!0}),Ln["c"](n,i)):e[t]=r:"replace"===a?e[t]=r:"remove"===a&&i&&(e[t]=null)}function xx(e,t){if(e&&(e.hv=t.hv=[yx(t,["left","right"]),yx(t,["top","bottom"])],"group"===e.type)){var n=e,r=t;null==n.width&&(n.width=r.width=0),null==n.height&&(n.height=r.height=0)}}function wx(e,t,n){var r=Object(ke["a"])(e).eventData;e.silent||e.ignore||r||(r=Object(ke["a"])(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}function Sx(e){e.registerComponentModel(fx),e.registerComponentView(px),e.registerPreprocessor(dx)}var Tx=["x","y","radius","angle","single"],Ox=["cartesian2d","polar","singleAxis"];function Mx(e){var t=e.get("coordinateSystem");return Object(s["indexOf"])(Ox,t)>=0}function Ex(e){return e+"Axis"}function Ax(e,t){var n,r=Object(s["createHashMap"])(),i=[],a=Object(s["createHashMap"])();e.eachComponent({mainType:"dataZoom",query:t},(function(e){a.get(e.uid)||l(e)}));do{n=!1,e.eachComponent("dataZoom",o)}while(n);function o(e){!a.get(e.uid)&&u(e)&&(l(e),n=!0)}function l(e){a.set(e.uid,!0),i.push(e),c(e)}function u(e){var t=!1;return e.eachTargetAxis((function(e,n){var i=r.get(e);i&&i[n]&&(t=!0)})),t}function c(e){e.eachTargetAxis((function(e,t){(r.get(e)||r.set(e,[]))[t]=!0}))}return i}function Cx(e){var t=e.ecModel,n={infoList:[],infoMap:Object(s["createHashMap"])()};return e.eachTargetAxis((function(e,r){var i=t.getComponent(Ex(e),r);if(i){var a=i.getCoordSysModel();if(a){var o=a.uid,s=n.infoMap.get(o);s||(s={model:a,axisModels:[]},n.infoList.push(s),n.infoMap.set(o,s)),s.axisModels.push(i)}}})),n}var Ix=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),Dx=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return Object(v["b"])(t,e),t.prototype.init=function(e,t,n){var r=Lx(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=Lx(e);Object(s["merge"])(this.option,e,!0),Object(s["merge"])(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;Object(s["each"])([["start","startValue"],["end","endValue"]],(function(e,r){"value"===this._rangePropMode[r]&&(t[e[0]]=n[e[0]]=null)}),this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=Object(s["createHashMap"])(),n=this._fillSpecifiedTargetAxis(t);n?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each((function(e){e.indexList.length&&(this._noTarget=!1)}),this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return Object(s["each"])(Tx,(function(n){var r=this.getReferringComponents(Ex(n),ot["a"]);if(r.specified){t=!0;var i=new Ix;Object(s["each"])(r.models,(function(e){i.add(e.componentIndex)})),e.set(n,i)}}),this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,r=!0;if(r){var i="vertical"===t?"y":"x",a=n.findComponents({mainType:i+"Axis"});o(a,i)}if(r){a=n.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}});o(a,"single")}function o(t,n){var i=t[0];if(i){var a=new Ix;if(a.add(i.componentIndex),e.set(n,a),r=!1,"x"===n||"y"===n){var o=i.getReferringComponents("grid",ot["b"]).models[0];o&&Object(s["each"])(t,(function(e){i.componentIndex!==e.componentIndex&&o===e.getReferringComponents("grid",ot["b"]).models[0]&&a.add(e.componentIndex)}))}}}r&&Object(s["each"])(Tx,(function(t){if(r){var i=n.findComponents({mainType:Ex(t),filter:function(e){return"category"===e.get("type",!0)}});if(i[0]){var a=new Ix;a.add(i[0].componentIndex),e.set(t,a),r=!1}}}),this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis((function(t){!e&&(e=t)}),this),"y"===e?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get("rangeMode");Object(s["each"])([["start","startValue"],["end","endValue"]],(function(r,i){var a=null!=e[r[0]],o=null!=e[r[1]];a&&!o?t[i]="percent":!a&&o?t[i]="value":n?t[i]=n[i]:a&&(t[i]="percent")}))},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis((function(t,n){null==e&&(e=this.ecModel.getComponent(Ex(t),n))}),this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each((function(n,r){Object(s["each"])(n.indexList,(function(n){e.call(t,r,n)}))}))},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(Ex(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;Object(s["each"])([["start","startValue"],["end","endValue"]],(function(r){null==e[r[0]]&&null==e[r[1]]||(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])}),this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;Object(s["each"])(["start","startValue","end","endValue"],(function(n){t[n]=e[n]}))},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),r=0;r<n.length;r++)for(var i=n[r],a=this._targetAxisInfoMap.get(i),o=0;o<a.indexList.length;o++){var s=this.getAxisProxy(i,a.indexList[o]);if(s.hostedBy(this))return s;t||(t=s)}return t},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={zlevel:0,z:4,filterMode:"filter",start:0,end:100},t}(vr["a"]);function Lx(e){var t={};return Object(s["each"])(["start","end","startValue","endValue","throttle"],(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}var Px=Dx,kx=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.type="dataZoom.select",t}(Px),Rx=kx,Nx=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.render=function(e,t,n,r){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type="dataZoom",t}(mr["a"]),jx=Nx,Fx=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.type="dataZoom.select",t}(jx),zx=Fx,Bx=s["each"],Vx=Ne["b"],Gx=function(){function e(e,t,n,r){this._dimName=e,this._axisIndex=t,this.ecModel=r,this._dataZoomModel=n}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries((function(t){if(Mx(t)){var n=Ex(this._dimName),r=t.getReferringComponents(n,ot["b"]).models[0];r&&this._axisIndex===r.componentIndex&&e.push(t)}}),this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return s["clone"](this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t,n=this._dataExtent,r=this.getAxisModel(),i=r.axis.scale,a=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[];Bx(["start","end"],(function(r,u){var c=e[r],h=e[r+"Value"];"percent"===a[u]?(null==c&&(c=o[u]),h=i.parse(Ne["k"](c,o,n))):(t=!0,h=null==h?n[u]:i.parse(h),c=Ne["k"](h,n,o)),l[u]=h,s[u]=c})),Vx(l),Vx(s);var u=this._minMaxSpan;function c(e,t,n,r,a){var o=a?"Span":"ValueSpan";Ch(0,e,n,"all",u["min"+o],u["max"+o]);for(var s=0;s<2;s++)t[s]=Ne["k"](e[s],n,r,!0),a&&(t[s]=i.parse(t[s]))}return t?c(l,s,n,o,!1):c(s,l,o,n,!0),{valueWindow:l,percentWindow:s}},e.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=Hx(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(e,t){if(e===this._dataZoomModel){var n=this._dimName,r=this.getTargetSeriesModels(),i=e.get("filterMode"),a=this._valueWindow;"none"!==i&&Bx(r,(function(e){var t=e.getData(),r=t.mapDimensionsAll(n);r.length&&("weakFilter"===i?t.filterSelf((function(e){for(var n,i,o,s=0;s<r.length;s++){var l=t.get(r[s],e),u=!isNaN(l),c=l<a[0],h=l>a[1];if(u&&!c&&!h)return!0;u&&(o=!0),c&&(n=!0),h&&(i=!0)}return o&&n&&i})):Bx(r,(function(n){if("empty"===i)e.setData(t=t.map(n,(function(e){return o(e)?e:NaN})));else{var r={};r[n]=a,t.selectRange(r)}})),Bx(r,(function(e){t.setApproximateExtent(a,e)})))}))}function o(e){return e>=a[0]&&e<=a[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;Bx(["min","max"],(function(r){var i=t.get(r+"Span"),a=t.get(r+"ValueSpan");null!=a&&(a=this.getAxisModel().axis.scale.parse(a)),null!=a?i=Ne["k"](n[0]+a,n,[0,100],!0):null!=i&&(a=Ne["k"](i,[0,100],n,!0)-n[0]),e[r+"Span"]=i,e[r+"ValueSpan"]=a}),this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var r=Ne["e"](n,[0,500]);r=Math.min(r,20);var i=e.axis.scale.rawExtentInfo;0!==t[0]&&i.setDeterminedMinMax("min",+n[0].toFixed(r)),100!==t[1]&&i.setDeterminedMinMax("max",+n[1].toFixed(r)),i.freeze()}},e}();function Hx(e,t,n){var r=[1/0,-1/0];Bx(n,(function(e){Object(Lr["k"])(r,e.getData(),t)}));var i=e.getAxisModel(),a=Object(ca["a"])(i.axis.scale,i,r).calculate();return[a.min,a.max]}var Ux=Gx,Wx={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(r,i){var a=e.getComponent(Ex(r),i);t(r,i,a,n)}))}))}t((function(e,t,n,r){n.__dzAxisProxy=null}));var n=[];t((function(t,r,i,a){i.__dzAxisProxy||(i.__dzAxisProxy=new Ux(t,r,a,e),n.push(i.__dzAxisProxy))}));var r=Object(s["createHashMap"])();return Object(s["each"])(n,(function(e){Object(s["each"])(e.getTargetSeriesModels(),(function(e){r.set(e.uid,e)}))})),r},overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(t,n){e.getAxisProxy(t,n).reset(e)})),e.eachTargetAxis((function(n,r){e.getAxisProxy(n,r).filterData(e,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),r=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}}))}},Xx=Wx;function Yx(e){e.registerAction("dataZoom",(function(e,t){var n=Ax(t,e);Object(s["each"])(n,(function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))}var Kx=!1;function qx(e){Kx||(Kx=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,Xx),Yx(e),e.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function Zx(e){e.registerComponentModel(Rx),e.registerComponentView(zx),qx(e)}var $x=function(){function e(){}return e}(),Qx={};function Jx(e,t){Qx[e]=t}function ew(e){return Qx[e]}var tw=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;s["each"](this.option.feature,(function(e,n){var r=ew(n);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(t)),s["merge"](e,r.defaultOption))}))},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,zlevel:0,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}},t}(vr["a"]),nw=tw;function rw(e,t,n){var r=t.getBoxLayoutParams(),i=t.get("padding"),a={width:n.getWidth(),height:n.getHeight()},o=Object(Ln["g"])(r,a,i);Object(Ln["b"])(t.get("orient"),e,t.get("itemGap"),o.width,o.height),Object(Ln["i"])(e,r,a,i)}function iw(e,t){var n=Tt["j"](t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new yt["a"]({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1}),e}var aw=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(v["b"])(t,e),t.prototype.render=function(e,t,n,r){var i=this.group;if(i.removeAll(),e.get("show")){var a=+e.get("itemSize"),o=e.get("feature")||{},l=this._features||(this._features={}),u=[];s["each"](o,(function(e,t){u.push(t)})),new qs["a"](this._featureNames||[],u).add(c).update(c).remove(s["curry"](c,null)).execute(),this._featureNames=u,rw(i,e,n),i.add(iw(i.getBoundingRect(),e)),i.eachChild((function(e){var t=e.__title,r=e.ensureState("emphasis"),o=r.textConfig||(r.textConfig={}),l=e.getTextContent(),u=l&&l.states.emphasis;if(u&&!s["isFunction"](u)&&t){var c=u.style||(u.style={}),h=y["e"](t,at["a"].makeFont(c)),d=e.x+i.x,f=e.y+i.y+a,p=!1;f+h.height>n.getHeight()&&(o.position="top",p=!0);var g=p?-5-h.height:a+8;d+h.width/2>n.getWidth()?(o.position=["100%",g],c.align="right"):d-h.width/2<0&&(o.position=[0,g],c.align="left")}}))}function c(i,a){var s,c=u[i],d=u[a],f=o[c],p=new ei["a"](f,e,e.ecModel);if(r&&null!=r.newTitle&&r.featureName===c&&(f.title=r.newTitle),c&&!d){if(ow(c))s={onclick:p.option.onclick,featureName:c};else{var g=ew(c);if(!g)return;s=new g}l[c]=s}else if(s=l[d],!s)return;if(s.uid=Object($t["c"])("toolbox-feature"),s.model=p,s.ecModel=t,s.api=n,s instanceof $x){if(!c&&d)return void(s.dispose&&s.dispose(t,n));if(!p.get("show")||s.unusable)return void(s.remove&&s.remove(t,n))}h(p,s,c),p.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&("emphasis"===t?Re["n"]:Re["w"])(r[e])},s instanceof $x&&s.render&&s.render(p,t,n,r)}function h(r,o,l){var u,c,h=r.getModel("iconStyle"),d=r.getModel(["emphasis","iconStyle"]),f=o instanceof $x&&o.getIcons?o.getIcons():r.get("icon"),p=r.get("title")||{};"string"===typeof f?(u={},u[l]=f):u=f,"string"===typeof p?(c={},c[l]=p):c=p;var g=r.iconPaths={};s["each"](u,(function(l,u){var f=Le["createIcon"](l,{},{x:-a/2,y:-a/2,width:a,height:a});f.setStyle(h.getItemStyle());var p=f.ensureState("emphasis");p.style=d.getItemStyle();var m=new at["a"]({style:{text:c[u],align:d.get("textAlign"),borderRadius:d.get("textBorderRadius"),padding:d.get("textPadding"),fill:null},ignore:!0});f.setTextContent(m);var v=e.getModel("tooltip");v&&v.get("show")&&(f.tooltip=s["extend"]({content:c[u],formatter:v.get("formatter",!0)||function(){return c[u]},formatterParams:{componentType:"toolbox",name:u,title:c[u],$vars:["name","title"]},position:v.get("position",!0)||"bottom"},v.option)),f.__title=c[u],f.on("mouseover",(function(){var t=d.getItemStyle(),n="vertical"===e.get("orient")?null==e.get("right")?"right":"left":null==e.get("bottom")?"bottom":"top";m.setStyle({fill:d.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:d.get("textBackgroundColor")}),f.setTextConfig({position:d.get("textPosition")||n}),m.ignore=!e.get("showTitle"),Object(Re["n"])(this)})).on("mouseout",(function(){"emphasis"!==r.get(["iconStatus",u])&&Object(Re["w"])(this),m.hide()})),("emphasis"===r.get(["iconStatus",u])?Re["n"]:Re["w"])(f),i.add(f),f.on("click",s["bind"](o.onclick,o,t,n,u)),g[u]=f}))}},t.prototype.updateView=function(e,t,n,r){s["each"](this._features,(function(e){e instanceof $x&&e.updateView&&e.updateView(e.model,t,n,r)}))},t.prototype.remove=function(e,t){s["each"](this._features,(function(n){n instanceof $x&&n.remove&&n.remove(e,t)})),this.group.removeAll()},t.prototype.dispose=function(e,t){s["each"](this._features,(function(n){n instanceof $x&&n.dispose&&n.dispose(e,t)}))},t.type="toolbox",t}(mr["a"]);function ow(e){return 0===e.indexOf("my")}var sw=aw,lw=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(v["b"])(t,e),t.prototype.onclick=function(e,t){var n=this.model,r=n.get("name")||e.get("title.0.text")||"echarts",i="svg"===t.getZr().painter.getType(),a=i?"svg":n.get("type",!0)||"png",o=t.getConnectedDataURL({type:a,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if("function"!==typeof MouseEvent||!ub["a"].browser.newEdge&&(ub["a"].browser.ie||ub["a"].browser.edge))if(window.navigator.msSaveOrOpenBlob||i){var s=o.split(","),l=s[0].indexOf("base64")>-1,u=i?decodeURIComponent(s[1]):s[1];l&&(u=atob(u));var c=r+"."+a;if(window.navigator.msSaveOrOpenBlob){var h=u.length,d=new Uint8Array(h);while(h--)d[h]=u.charCodeAt(h);var f=new Blob([d]);window.navigator.msSaveOrOpenBlob(f,c)}else{var p=document.createElement("iframe");document.body.appendChild(p);var g=p.contentWindow,m=g.document;m.open("image/svg+xml","replace"),m.write(u),m.close(),g.focus(),m.execCommand("SaveAs",!0,c),document.body.removeChild(p)}}else{var v=n.get("lang"),y='<body style="margin:0;"><img src="'+o+'" style="max-width:100%;" title="'+(v&&v[0]||"")+'" /></body>',b=window.open();b.document.write(y),b.document.title=r}else{var _=document.createElement("a");_.download=r+"."+a,_.target="_blank",_.href=o;var x=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});_.dispatchEvent(x)}},t.getDefaultOption=function(e){var t={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:e.getLocale(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocale(["toolbox","saveAsImage","lang"])};return t},t}($x);lw.prototype.unusable=!ub["a"].canvasSupported;var uw=lw,cw="__ec_magicType_stack__",hw=[["line","bar"],["stack"]],dw=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(v["b"])(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return s["each"](e.get("type"),(function(e){t[e]&&(n[e]=t[e])})),n},t.getDefaultOption=function(e){var t={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:e.getLocale(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return t},t.prototype.onclick=function(e,t,n){var r=this.model,i=r.get(["seriesIndex",n]);if(fw[n]){var a,o={series:[]},l=function(e){var t=e.subType,i=e.id,a=fw[n](t,i,e,r);a&&(s["defaults"](a,e.option),o.series.push(a));var l=e.coordinateSystem;if(l&&"cartesian2d"===l.type&&("line"===n||"bar"===n)){var u=l.getAxesByScale("ordinal")[0];if(u){var c=u.dim,h=c+"Axis",d=e.getReferringComponents(h,ot["b"]).models[0],f=d.componentIndex;o[h]=o[h]||[];for(var p=0;p<=f;p++)o[h][f]=o[h][f]||{};o[h][f].boundaryGap="bar"===n}}};s["each"](hw,(function(e){s["indexOf"](e,n)>=0&&s["each"](e,(function(e){r.setIconStatus(e,"normal")}))})),r.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==i?null:{seriesIndex:i}},l),"stack"===n&&(a=s["merge"]({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title)),t.dispatchAction({type:"changeMagicType",currentType:n,newOption:o,newTitle:a,featureName:"magicType"})}},t}($x),fw={line:function(e,t,n,r){if("bar"===e)return s["merge"]({id:t,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(e,t,n,r){if("line"===e)return s["merge"]({id:t,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(e,t,n,r){var i=n.get("stack")===cw;if("line"===e||"bar"===e)return r.setIconStatus("stack",i?"normal":"emphasis"),s["merge"]({id:t,stack:i?"":cw},r.get(["option","stack"])||{},!0)}};va["m"]({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)}));var pw=dw,gw=new Array(60).join("-"),mw="\t";function vw(e){var t={},n=[],r=[];return e.eachRawSeries((function(e){var i=e.coordinateSystem;if(!i||"cartesian2d"!==i.type&&"polar"!==i.type)n.push(e);else{var a=i.getBaseAxis();if("category"===a.type){var o=a.dim+"_"+a.index;t[o]||(t[o]={categoryAxis:a,valueAxis:i.getOtherAxis(a),series:[]},r.push({axisDim:a.dim,axisIndex:a.index})),t[o].series.push(e)}else n.push(e)}})),{seriesGroupByCategoryAxis:t,other:n,meta:r}}function yw(e){var t=[];return s["each"](e,(function(e,n){var r=e.categoryAxis,i=e.valueAxis,a=i.dim,o=[" "].concat(s["map"](e.series,(function(e){return e.name}))),l=[r.model.getCategories()];s["each"](e.series,(function(e){var t=e.getRawData();l.push(e.getRawData().mapArray(t.mapDimension(a),(function(e){return e})))}));for(var u=[o.join(mw)],c=0;c<l[0].length;c++){for(var h=[],d=0;d<l.length;d++)h.push(l[d][c]);u.push(h.join(mw))}t.push(u.join("\n"))})),t.join("\n\n"+gw+"\n\n")}function bw(e){return s["map"](e,(function(e){var t=e.getRawData(),n=[e.name],r=[];return t.each(t.dimensions,(function(){for(var e=arguments.length,i=arguments[e-1],a=t.getName(i),o=0;o<e-1;o++)r[o]=arguments[o];n.push((a?a+mw:"")+r.join(mw))})),n.join("\n")})).join("\n\n"+gw+"\n\n")}function _w(e){var t=vw(e);return{value:s["filter"]([yw(t.seriesGroupByCategoryAxis),bw(t.other)],(function(e){return!!e.replace(/[\n\t\s]/g,"")})).join("\n\n"+gw+"\n\n"),meta:t.meta}}function xw(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function ww(e){var t=e.slice(0,e.indexOf("\n"));if(t.indexOf(mw)>=0)return!0}var Sw=new RegExp("["+mw+"]+","g");function Tw(e){for(var t=e.split(/\n+/g),n=xw(t.shift()).split(Sw),r=[],i=s["map"](n,(function(e){return{name:e,data:[]}})),a=0;a<t.length;a++){var o=xw(t[a]).split(Sw);r.push(o.shift());for(var l=0;l<o.length;l++)i[l]&&(i[l].data[a]=o[l])}return{series:i,categories:r}}function Ow(e){for(var t=e.split(/\n+/g),n=xw(t.shift()),r=[],i=0;i<t.length;i++){var a=xw(t[i]);if(a){var o=a.split(Sw),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),r[i]={name:s,value:[]},l=r[i].value):l=r[i]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);1===l.length&&(u?r[i].value=l[0]:r[i]=l[0])}}return{name:n,data:r}}function Mw(e,t){var n=e.split(new RegExp("\n*"+gw+"\n*","g")),r={series:[]};return s["each"](n,(function(e,n){if(ww(e)){var i=Tw(e),a=t[n],o=a.axisDim+"Axis";a&&(r[o]=r[o]||[],r[o][a.axisIndex]={data:i.categories},r.series=r.series.concat(i.series))}else{i=Ow(e);r.series.push(i)}})),r}var Ew=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(v["b"])(t,e),t.prototype.onclick=function(e,t){var n=t.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var i=document.createElement("div");i.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",i.style.backgroundColor=r.get("backgroundColor")||"#fff";var a=document.createElement("h4"),o=r.get("lang")||[];a.innerHTML=o[0]||r.get("title"),a.style.cssText="margin: 10px 20px;",a.style.color=r.get("textColor");var l=document.createElement("div"),u=document.createElement("textarea");l.style.cssText="display:block;width:100%;overflow:auto;";var c=r.get("optionToContent"),h=r.get("contentToOption"),d=_w(e);if("function"===typeof c){var f=c(t.getOption());"string"===typeof f?l.innerHTML=f:s["isDom"](f)&&l.appendChild(f)}else l.appendChild(u),u.readOnly=r.get("readOnly"),u.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",u.style.color=r.get("textColor"),u.style.borderColor=r.get("textareaBorderColor"),u.style.backgroundColor=r.get("textareaColor"),u.value=d.value;var p=d.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:0;left:0;right:0;";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",v=document.createElement("div"),y=document.createElement("div");m+=";background-color:"+r.get("buttonColor"),m+=";color:"+r.get("buttonTextColor");var b=this;function _(){n.removeChild(i),b._dom=null}Object(ma["a"])(v,"click",_),Object(ma["a"])(y,"click",(function(){if(null==h&&null!=c||null!=h&&null==c)_();else{var e;try{e="function"===typeof h?h(l,t.getOption()):Mw(u.value,p)}catch(n){throw _(),new Error("Data view format error "+n)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),_()}})),v.innerHTML=o[1],y.innerHTML=o[2],y.style.cssText=m,v.style.cssText=m,!r.get("readOnly")&&g.appendChild(y),g.appendChild(v),i.appendChild(a),i.appendChild(l),i.appendChild(g),l.style.height=n.clientHeight-80+"px",n.appendChild(i),this._dom=i},t.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.getDefaultOption=function(e){var t={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocale(["toolbox","dataView","title"]),lang:e.getLocale(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return t},t}($x);function Aw(e,t){return s["map"](e,(function(e,n){var r=t&&t[n];if(s["isObject"](r)&&!s["isArray"](r)){var i=s["isObject"](e)&&!s["isArray"](e);i||(e={value:e});var a=null!=r.name&&null==e.name;return e=s["defaults"](e,r),a&&delete e.name,e}return e}))}va["m"]({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(e,t){var n=[];s["each"](e.newOption.series,(function(e){var r=t.getSeriesByName(e.name)[0];if(r){var i=r.get("data");n.push({name:e.name,data:Aw(e.data,i)})}else n.push(s["extend"]({type:"scatter"},e))})),t.mergeOption(s["defaults"]({series:n},e.newOption))}));var Cw=Ew,Iw=s["each"],Dw=Object(ot["o"])();function Lw(e,t){var n=Nw(e);Iw(t,(function(t,r){for(var i=n.length-1;i>=0;i--){var a=n[i];if(a[r])break}if(i<0){var o=e.queryComponents({mainType:"dataZoom",subType:"select",id:r})[0];if(o){var s=o.getPercentRange();n[0][r]={dataZoomId:r,start:s[0],end:s[1]}}}})),n.push(t)}function Pw(e){var t=Nw(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return Iw(n,(function(e,n){for(var i=t.length-1;i>=0;i--)if(e=t[i][n],e){r[n]=e;break}})),r}function kw(e){Dw(e).snapshots=null}function Rw(e){return Nw(e).length}function Nw(e){var t=Dw(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var jw=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(v["b"])(t,e),t.prototype.onclick=function(e,t){kw(e),t.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var t={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:e.getLocale(["toolbox","restore","title"])};return t},t}($x);va["m"]({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));var Fw=jw,zw=["dataToPoint","pointToData"],Bw=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Vw=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var i=Hw(t,e);Object(s["each"])(Uw,(function(e,t){(!n||!n.include||Object(s["indexOf"])(n.include,t)>=0)&&e(i,r._targetInfoList)}))}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,(function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var r=Yw[e.brushType](0,n,t);e.__rangeOffset={offset:qw[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}})),e},e.prototype.matchOutputRanges=function(e,t,n){Object(s["each"])(e,(function(e){var r=this.findTargetInfo(e,t);r&&!0!==r&&Object(s["each"])(r.coordSyses,(function(r){var i=Yw[e.brushType](1,r,e.range);n(e,i.values,r,t)}))}),this)},e.prototype.setInputRanges=function(e,t){Object(s["each"])(e,(function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&!0!==n){e.panelId=n.panelId;var r=Yw[e.brushType](0,n.coordSys,e.coordRange),i=e.__rangeOffset;e.range=i?qw[e.brushType](r.values,i.offset,$w(r.xyMinMax,i.xyMinMax)):r.values}}),this)},e.prototype.makePanelOpts=function(e,t){return Object(s["map"])(this._targetInfoList,(function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:Wd(r),isTargetByCursor:Yd(r,e,n.coordSysModel),getLinearBrushOtherExtent:Xd(r)}}))},e.prototype.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return!0===r||r&&Object(s["indexOf"])(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=Hw(t,e),i=0;i<n.length;i++){var a=n[i],o=e.panelId;if(o){if(a.panelId===o)return a}else for(var s=0;s<Ww.length;s++)if(Ww[s](r,a))return a}return!0},e}();function Gw(e){return e[0]>e[1]&&e.reverse(),e}function Hw(e,t){return Object(ot["s"])(e,t,{includeMainTypes:Bw})}var Uw={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,i=e.gridModels,a=Object(s["createHashMap"])(),o={},l={};(n||r||i)&&(Object(s["each"])(n,(function(e){var t=e.axis.grid.model;a.set(t.id,t),o[t.id]=!0})),Object(s["each"])(r,(function(e){var t=e.axis.grid.model;a.set(t.id,t),l[t.id]=!0})),Object(s["each"])(i,(function(e){a.set(e.id,e),o[e.id]=!0,l[e.id]=!0})),a.each((function(e){var i=e.coordinateSystem,a=[];Object(s["each"])(i.getCartesians(),(function(e,t){(Object(s["indexOf"])(n,e.getAxis("x").model)>=0||Object(s["indexOf"])(r,e.getAxis("y").model)>=0)&&a.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:a[0],coordSyses:a,getPanelRect:Xw.grid,xAxisDeclared:o[e.id],yAxisDeclared:l[e.id]})})))},geo:function(e,t){Object(s["each"])(e.geoModels,(function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:Xw.geo})}))}},Ww=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,i=e.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],Xw={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(Le["getTransform"](e)),t}},Yw={lineX:Object(s["curry"])(Kw,0),lineY:Object(s["curry"])(Kw,1),rect:function(e,t,n){var r=t[zw[e]]([n[0][0],n[1][0]]),i=t[zw[e]]([n[0][1],n[1][1]]),a=[Gw([r[0],i[0]]),Gw([r[1],i[1]])];return{values:a,xyMinMax:a}},polygon:function(e,t,n){var r=[[1/0,-1/0],[1/0,-1/0]],i=Object(s["map"])(n,(function(n){var i=t[zw[e]](n);return r[0][0]=Math.min(r[0][0],i[0]),r[1][0]=Math.min(r[1][0],i[1]),r[0][1]=Math.max(r[0][1],i[0]),r[1][1]=Math.max(r[1][1],i[1]),i}));return{values:i,xyMinMax:r}}};function Kw(e,t,n,r){var i=n.getAxis(["x","y"][e]),a=Gw(Object(s["map"])([0,1],(function(e){return t?i.coordToData(i.toLocalCoord(r[e])):i.toGlobalCoord(i.dataToCoord(r[e]))}))),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var qw={lineX:Object(s["curry"])(Zw,0),lineY:Object(s["curry"])(Zw,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return Object(s["map"])(e,(function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]}))}};function Zw(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function $w(e,t){var n=Qw(e),r=Qw(t),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function Qw(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var Jw=Vw,eS=n("UluK"),tS=s["each"],nS=Object(ot["p"])("toolbox-dataZoom_"),rS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(v["b"])(t,e),t.prototype.render=function(e,t,n,r){this._brushController||(this._brushController=new Ud(n.getZr()),this._brushController.on("brush",s["bind"](this._onBrush,this)).mount()),sS(e,t,this,r,n),oS(e,t)},t.prototype.onclick=function(e,t,n){iS[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(e.isEnd&&t.length){var n={},r=this.ecModel;this._brushController.updateCovers([]);var i=new Jw(aS(this.model),r,{include:["grid"]});i.matchOutputRanges(t,r,(function(e,t,n){if("cartesian2d"===n.type){var r=e.brushType;"rect"===r?(a("x",n,t[0]),a("y",n,t[1])):a({lineX:"x",lineY:"y"}[r],n,t)}})),Lw(r,n),this._dispatchZoomAction(n)}function a(e,t,i){var a=t.getAxis(e),s=a.model,l=o(e,s,r),u=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(i=Ch(0,i.slice(),a.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),l&&(n[l.id]={dataZoomId:l.id,startValue:i[0],endValue:i[1]})}function o(e,t,n){var r;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var i=n.getAxisModel(e,t.componentIndex);i&&(r=n)})),r}},t.prototype._dispatchZoomAction=function(e){var t=[];tS(e,(function(e,n){t.push(s["clone"](e))})),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},t.getDefaultOption=function(e){var t={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:e.getLocale(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return t},t}($x),iS={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(Pw(this.ecModel))}};function aS(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}function oS(e,t){e.setIconStatus("back",Rw(t)>1?"emphasis":"normal")}function sS(e,t,n,r,i){var a=n._isZoomActive;r&&"takeGlobalCursor"===r.type&&(a="dataZoomSelect"===r.key&&r.dataZoomSelectActive),n._isZoomActive=a,e.setIconStatus("zoom",a?"emphasis":"normal");var o=new Jw(aS(e),t,{include:["grid"]}),s=o.makePanelOpts(i,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!a||!s.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}Object(eS["b"])("dataZoom",(function(e){var t=e.getComponent("toolbox",0);if(t){var n=t.getModel(["feature","dataZoom"]),r=[],i=aS(n),a=Object(ot["s"])(e,i);return tS(a.xAxisModels,(function(e){return o(e,"xAxis","xAxisIndex")})),tS(a.yAxisModels,(function(e){return o(e,"yAxis","yAxisIndex")})),r}function o(e,t,i){var a=e.componentIndex,o={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:nS+t+a};o[i]=a,r.push(o)}}));var lS=rS;function uS(e){e.registerComponentModel(nw),e.registerComponentView(sw),Jx("saveAsImage",uw),Jx("magicType",pw),Jx("dataView",Cw),Jx("dataZoom",lS),Jx("restore",Fw),Object(r["a"])(Zx)}var cS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(vr["a"]),hS=cS,dS=n("9IyG");function fS(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}var pS=["-ms-","-moz-","-o-","-webkit-",""],gS="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";function mS(e){return e="left"===e?"right":"right"===e?"left":"top"===e?"bottom":"top",e}function vS(e,t,n){if(!Object(s["isString"])(n)||"inside"===n)return"";t=Object(Tt["c"])(t);var r=mS(n),i="",a="";Object(s["indexOf"])(["left","right"],r)>-1?(i=r+":-6px;top:50%;",a="translateY(-50%) rotate("+("left"===r?-225:-45)+"deg)"):(i=r+":-6px;left:50%;",a="translateX(-50%) rotate("+("top"===r?225:45)+"deg)"),a=Object(s["map"])(pS,(function(e){return e+"transform:"+a})).join(";");var o=["position:absolute;width:10px;height:10px;",""+i+a+";","border-bottom: "+t+" solid 1px;","border-right: "+t+" solid 1px;","background-color: "+e+";","box-shadow: 8px 8px 16px -3px #000;"];return'<div style="'+o.join("")+'"></div>'}function yS(e,t){var n="cubic-bezier(0.23, 1, 0.32, 1)",r="opacity "+e/2+"s "+n+",visibility "+e/2+"s "+n;return t||(r+=",left "+e+"s "+n+",top "+e+"s "+n),Object(s["map"])(pS,(function(e){return e+"transition:"+r})).join(";")}function bS(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(3*n/2)+"px");var i=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,l=e.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+l+"px "+a+"px "+i),Object(s["each"])(["decoration","align"],(function(n){var r=e.get(n);r&&t.push("text-"+n+":"+r)})),t.join(";")}function _S(e,t,n){var r=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),l=e.get("shadowColor"),u=e.get("shadowOffsetX"),c=e.get("shadowOffsetY"),h=e.getModel("textStyle"),d=Object(qi["d"])(e,"html"),f=u+"px "+c+"px "+o+"px "+l;return r.push("box-shadow:"+f),t&&i&&r.push(yS(i,n)),a&&(ub["a"].canvasSupported?r.push("background-Color:"+a):(r.push("background-Color:#"+Object(K["toHex"])(a)),r.push("filter:alpha(opacity=70)"))),Object(s["each"])(["width","color","radius"],(function(t){var n="border-"+t,i=Object(Tt["k"])(n),a=e.get(i);null!=a&&r.push(n+":"+a+("color"===t?"":"px"))})),r.push(bS(h)),null!=d&&r.push("padding:"+Object(Tt["j"])(d).join("px ")+"px"),r.join(";")+";"}function xS(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&Object(dS["c"])(e,o,document.body,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var wS=function(){function e(e,t,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,ub["a"].wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=t.getZr(),a=this._appendToBody=n&&n.appendToBody;xS(this._styleCoord,i,a,t.getWidth()/2,t.getHeight()/2),a?document.body.appendChild(r):e.appendChild(r),this._container=e;var o=this;r.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},r.onmousemove=function(e){if(e=e||window.event,!o._enterable){var t=i.handler,n=i.painter.getViewportRoot();Object(ma["e"])(n,e,!0),t.dispatch("mousemove",e)}},r.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){var t=this._container,n=t.currentStyle||document.defaultView.getComputedStyle(t),r=t.style;"absolute"!==r.position&&"absolute"!==n.position&&(r.position="relative");var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this.el.className=e.get("className")||""},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=this._styleCoord,i=n.offsetHeight/2;t=Object(Tt["c"])(t),n.style.cssText=gS+_S(e,!this._firstShow,this._longHide)+";left:"+r[0]+"px;top:"+(r[1]-i)+"px;border-color: "+t+";"+(e.get("extraCssText")||""),n.style.display=n.innerHTML?"block":"none",n.style.pointerEvents=this._enterable?"auto":"none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){if(null!=e){var a=this.el;if(Object(s["isString"])(i)&&"item"===n.get("trigger")&&!fS(n)&&(e+=vS(n.get("backgroundColor"),r,i)),Object(s["isString"])(e))a.innerHTML=e;else if(e){a.innerHTML="",Object(s["isArray"])(e)||(e=[e]);for(var o=0;o<e.length;o++)Object(s["isDom"])(e[o])&&e[o].parentNode!==a&&a.appendChild(e[o])}}},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return[e.clientWidth,e.clientHeight]},e.prototype.moveTo=function(e,t){var n=this._styleCoord;if(xS(n,this._zr,this._appendToBody,e,t),null!=n[0]&&null!=n[1]){var r=this.el.style;r.left=n[0].toFixed(0)+"px",r.top=n[1].toFixed(0)+"px"}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this;this.el.style.visibility="hidden",this.el.style.opacity="0",this._show=!1,this._longHideTimeout=setTimeout((function(){return e._longHide=!0}),500)},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Object(s["bind"])(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},e.prototype.getOuterSize=function(){var e=this.el.clientWidth,t=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var n=document.defaultView.getComputedStyle(this.el);n&&(e+=parseInt(n.borderLeftWidth,10)+parseInt(n.borderRightWidth,10),t+=parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10))}return{width:e,height:t}},e}(),SS=wS,TS=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=e.getZr(),ES(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized()},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,r,i){s["isObject"](e)&&Object(rp["b"])(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new at["a"]({style:{rich:t.richTextStyles,text:e,lineHeight:22,backgroundColor:n.get("backgroundColor"),borderRadius:n.get("borderRadius"),borderWidth:1,borderColor:r,shadowColor:n.get("shadowColor"),shadowBlur:n.get("shadowBlur"),shadowOffsetX:n.get("shadowOffsetX"),shadowOffsetY:n.get("shadowOffsetY"),textShadowColor:a.get("textShadowColor"),textShadowBlur:a.get("textShadowBlur")||0,textShadowOffsetX:a.get("textShadowOffsetX")||0,textShadowOffsetY:a.get("textShadowOffsetY")||0,fill:n.get(["textStyle","color"]),padding:Object(qi["d"])(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),this._zr.add(this.el);var o=this;this.el.on("mouseover",(function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0})),this.el.on("mouseout",(function(){o._enterable&&o._show&&o.hideLater(o._hideDelay),o._inContent=!1}))},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=MS(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var r=this._styleCoord;ES(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,a=OS(i.borderWidth||0),o=MS(i);n.x=e+a+o.left,n.y=t+a+o.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(s["bind"](this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.getOuterSize=function(){var e=this.getSize();return{width:e[0],height:e[1]}},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function OS(e){return Math.max(0,e)}function MS(e){var t=OS(e.shadowBlur||0),n=OS(e.shadowOffsetX||0),r=OS(e.shadowOffsetY||0);return{left:OS(t-n),right:OS(t+n),top:OS(t-r),bottom:OS(t+r)}}function ES(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var AS=TS,CS=n("6+zH"),IS=n("bs6j"),DS=n("WJAu"),LS=s["bind"],PS=s["each"],kS=Ne["o"],RS=new yt["a"]({shape:{x:-1,y:-1,width:2,height:2}}),NS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.init=function(e,t){if(!ub["a"].node){var n=e.getComponent("tooltip"),r=n.get("renderMode");this._renderMode=Object(ot["i"])(r),this._tooltipContent="richText"===this._renderMode?new AS(t):new SS(t.getDom(),t,{appendToBody:n.get("appendToBody",!0)})}},t.prototype.render=function(e,t,n){if(!ub["a"].node){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n,this._alwaysShowContent=e.get("alwaysShowContent");var r=this._tooltipContent;r.update(e),r.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow()}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,t=e.get("triggerOn");db("itemTooltip",this._api,LS((function(e,n,r){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,r):"leave"===e&&this._hide(r))}),this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==e.get("triggerOn")){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(e,t,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},t.prototype.manuallyShowTip=function(e,t,n,r){if(r.from!==this.uid&&!ub["a"].node){var i=FS(r,n);this._ticket="";var a=r.dataByCoordSys;if(r.tooltip&&null!=r.x&&null!=r.y){var o=RS;o.x=r.x,o.y=r.y,o.update(),o.tooltip=r.tooltip,this._tryShow({offsetX:r.x,offsetY:r.y,target:o},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,r))return;var s=xb(r,t),l=s.point[0],u=s.point[1];null!=l&&null!=u&&this._tryShow({offsetX:l,offsetY:u,position:r.position,target:s.el},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))}},t.prototype.manuallyHideTip=function(e,t,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(FS(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=a&&null!=o){var s=t.getSeriesByIndex(i);if(s){var l=s.getData(),u=jS([l.getItemModel(a),s,(s.coordinateSystem||{}).model,e]);if("axis"===u.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:a,position:r.position}),!0}}},t.prototype._tryShow=function(e,t){var n=e.target,r=this._tooltipModel;if(r){this._lastX=e.offsetX,this._lastY=e.offsetY;var i=e.dataByCoordSys;i&&i.length?this._showAxisTooltip(i,e):n&&Object(DS["a"])(n,(function(e){return null!=Object(ke["a"])(e).dataIndex}),!0)?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(e,n,t)):n&&n.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(e,n,t)):(this._lastDataByCoordSys=null,this._hide(t))}},t.prototype._showOrMove=function(e,t){var n=e.get("showDelay");t=s["bind"](t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=jS([t.tooltipOption,r]),o=this._renderMode,l=[],u=Object(qi["c"])("section",{blocks:[],noHeader:!0}),c=[],h=new qi["a"];PS(e,(function(e){PS(e.dataByAxis,(function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),r=e.value;if(t&&null!=r){var i=Zy(r,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),a=Object(qi["c"])("section",{header:i,noHeader:!s["trim"](i),sortBlocks:!0,blocks:[]});u.blocks.push(a),s["each"](e.seriesDataIndices,(function(s){var u=n.getSeriesByIndex(s.seriesIndex),d=s.dataIndexInside,f=u.getDataParams(d);f.axisDim=e.axisDim,f.axisIndex=e.axisIndex,f.axisType=e.axisType,f.axisId=e.axisId,f.axisValue=Lr["c"](t.axis,{value:r}),f.axisValueLabel=i,f.marker=h.makeTooltipMarker("item",Tt["c"](f.color),o);var p=Object(IS["b"])(u.formatTooltip(d,!0,null));p.markupFragment&&a.blocks.push(p.markupFragment),p.markupText&&c.push(p.markupText),l.push(f)}))}}))})),u.blocks.reverse(),c.reverse();var d=t.position,f=a.get("order"),p=Object(qi["b"])(u,h,o,f,n.get("useUTC"),a.get("textStyle"));p&&c.unshift(p);var g="richText"===o?"\n\n":"<br/>",m=c.join(g);this._showOrMove(a,(function(){this._updateContentNotChangedOnAxis(e)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,l):this._showTooltipContent(a,m,l,Math.random()+"",i[0],i[1],d,null,h)}))},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=Object(DS["a"])(t,(function(e){return null!=Object(ke["a"])(e).dataIndex}),!0),i=this._ecModel,a=Object(ke["a"])(r),o=a.seriesIndex,s=i.getSeriesByIndex(o),l=a.dataModel||s,u=a.dataIndex,c=a.dataType,h=l.getData(c),d=this._renderMode,f=jS([h.getItemModel(u),l,s&&(s.coordinateSystem||{}).model,this._tooltipModel]),p=f.get("trigger");if(null==p||"item"===p){var g=l.getDataParams(u,c),m=new qi["a"];g.marker=m.makeTooltipMarker("item",Tt["c"](g.color),d);var v=Object(IS["b"])(l.formatTooltip(u,!1,c)),y=f.get("order"),b=v.markupFragment?Object(qi["b"])(v.markupFragment,m,d,y,i.get("useUTC"),f.get("textStyle")):v.markupText,_="item_"+l.name+"_"+u;this._showOrMove(f,(function(){this._showTooltipContent(f,b,g,_,e.offsetX,e.offsetY,e.position,e.target,m)})),n({type:"showTip",dataIndexInside:u,dataIndex:h.getRawIndex(u),seriesIndex:o,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=t.tooltip;if(s["isString"](r)){var i=r;r={content:i,formatter:i}}var a=new ei["a"](r,this._tooltipModel,this._ecModel),o=a.get("content"),l=Math.random()+"",u=new qi["a"];this._showOrMove(a,(function(){this._showTooltipContent(a,o,a.get("formatterParams")||{},l,e.offsetX,e.offsetY,e.position,t,u)})),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,l,u){if(this._ticket="",e.get("showContent")&&e.get("show")){var c=this._tooltipContent,h=e.get("formatter");o=o||e.get("position");var d=t,f=this._getNearestPoint([i,a],n,e.get("trigger"),e.get("borderColor"));if(h&&s["isString"](h)){var p=e.ecModel.get("useUTC"),g=s["isArray"](n)?n[0]:n,m=g&&g.axisType&&g.axisType.indexOf("time")>=0;d=h,m&&(d=Object(CS["h"])(g.axisValue,d,p)),d=Tt["f"](d,n,!0)}else if(s["isFunction"](h)){var v=LS((function(t,r){t===this._ticket&&(c.setContent(r,u,e,f.color,o),this._updatePosition(e,o,i,a,c,n,l))}),this);this._ticket=r,d=h(n,r,v)}c.setContent(d,u,e,f.color,o),c.show(e,f.color),this._updatePosition(e,o,i,a,c,n,l)}},t.prototype._getNearestPoint=function(e,t,n,r){return"axis"===n||s["isArray"](t)?{color:r||("html"===this._renderMode?"#fff":"none")}:s["isArray"](t)?void 0:{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var l=this._api.getWidth(),u=this._api.getHeight();t=t||e.get("position");var c=i.getSize(),h=e.get("align"),d=e.get("verticalAlign"),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),s["isFunction"](t)&&(t=t([n,r],a,i.el,f,{viewSize:[l,u],contentSize:c.slice()})),s["isArray"](t))n=kS(t[0],l),r=kS(t[1],u);else if(s["isObject"](t)){var p=t;p.width=c[0],p.height=c[1];var g=Ln["g"](p,{width:l,height:u});n=g.x,r=g.y,h=null,d=null}else if(s["isString"](t)&&o){var m=VS(t,f,c);n=m[0],r=m[1]}else{m=zS(n,r,i,l,u,h?null:20,d?null:20);n=m[0],r=m[1]}if(h&&(n-=GS(h)?c[0]/2:"right"===h?c[0]:0),d&&(r-=GS(d)?c[1]/2:"bottom"===d?c[1]:0),fS(e)){m=BS(n,r,i,l,u);n=m[0],r=m[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e){var t=this._lastDataByCoordSys,n=!!t&&t.length===e.length;return n&&PS(t,(function(t,r){var i=t.dataByAxis||[],a=e[r]||{},o=a.dataByAxis||[];n=n&&i.length===o.length,n&&PS(i,(function(e,t){var r=o[t]||{},i=e.seriesDataIndices||[],a=r.seriesDataIndices||[];n=n&&e.value===r.value&&e.axisType===r.axisType&&e.axisId===r.axisId&&i.length===a.length,n&&PS(i,(function(e,t){var r=a[t];n=n&&e.seriesIndex===r.seriesIndex&&e.dataIndex===r.dataIndex}))}))})),this._lastDataByCoordSys=e,!!n},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){ub["a"].node||(this._tooltipContent.dispose(),yb("itemTooltip",t))},t.type="tooltip",t}(mr["a"]);function jS(e){var t=e.pop();while(e.length){var n=e.pop();n&&(n instanceof ei["a"]&&(n=n.get("tooltip",!0)),s["isString"](n)&&(n={formatter:n}),t=new ei["a"](n,t,t.ecModel))}return t}function FS(e,t){return e.dispatchAction||s["bind"](t.dispatchAction,t)}function zS(e,t,n,r,i,a,o){var s=n.getOuterSize(),l=s.width,u=s.height;return null!=a&&(e+l+a+2>r?e-=l+a:e+=a),null!=o&&(t+u+o>i?t-=u+o:t+=o),[e,t]}function BS(e,t,n,r,i){var a=n.getOuterSize(),o=a.width,s=a.height;return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function VS(e,t,n){var r=n[0],i=n[1],a=10,o=5,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-r/2,l=t.y+c/2-i/2;break;case"top":s=t.x+u/2-r/2,l=t.y-i-a;break;case"bottom":s=t.x+u/2-r/2,l=t.y+c+a;break;case"left":s=t.x-r-a-o,l=t.y+c/2-i/2;break;case"right":s=t.x+u+a+o,l=t.y+c/2-i/2}return[s,l]}function GS(e){return"center"===e||"middle"===e}var HS=NS;function US(e){Object(r["a"])(kb),e.registerComponentModel(hS),e.registerComponentView(HS),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},(function(){})),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},(function(){}))}var WS=["rect","polygon","keep","clear"];function XS(e,t){var n=Object(ot["r"])(e?e.brush:[]);if(n.length){var r=[];s["each"](n,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(r=r.concat(t))}));var i=e&&e.toolbox;s["isArray"](i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var a=i.feature||(i.feature={}),o=a.brush||(a.brush={}),l=o.type||(o.type=[]);l.push.apply(l,r),YS(l),t&&!l.length&&l.push.apply(l,WS)}}function YS(e){var t={};s["each"](e,(function(e){t[e]=1})),e.length=0,s["each"](t,(function(t,n){e.push(n)}))}var KS=n("EcRG"),qS=s["each"];function ZS(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function $S(e,t,n){var r={};return qS(t,(function(t){var a=r[t]=i();qS(e[t],(function(e,r){if(Bl.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),a[r]=new Bl(i),"opacity"===r&&(i=s["clone"](i),i.type="colorAlpha",a.__hidden.__alphaForOpacity=new Bl(i))}}))})),r;function i(){var e=function(){};e.prototype.__hidden=e.prototype;var t=new e;return t}}function QS(e,t,n){var r;s["each"](n,(function(e){t.hasOwnProperty(e)&&ZS(t[e])&&(r=!0)})),r&&s["each"](n,(function(n){t.hasOwnProperty(n)&&ZS(t[n])?e[n]=s["clone"](t[n]):delete e[n]}))}function JS(e,t,n,r,i,a){var o,l={};function u(e){return Object(KS["a"])(n,o,e)}function c(e,t){Object(KS["c"])(n,o,e,t)}function h(e,s){o=null==a?e:s;var h=n.getRawDataItem(o);if(!h||!1!==h.visualMap)for(var d=r.call(i,e),f=t[d],p=l[d],g=0,m=p.length;g<m;g++){var v=p[g];f[v]&&f[v].applyVisual(e,u,c)}}s["each"](e,(function(e){var n=Bl.prepareVisualTypes(t[e]);l[e]=n})),null==a?n.each(h):n.each([a],h)}function eT(e,t,n,r){var i={};return s["each"](e,(function(e){var n=Bl.prepareVisualTypes(t[e]);i[e]=n})),{progress:function(e,a){var o,s;function l(e){return Object(KS["a"])(a,s,e)}function u(e,t){Object(KS["c"])(a,s,e,t)}null!=r&&(o=a.getDimension(r));while(null!=(s=e.next())){var c=a.getRawDataItem(s);if(!c||!1!==c.visualMap)for(var h=null!=r?a.get(o,s):s,d=n(h),f=t[d],p=i[d],g=0,m=p.length;g<m;g++){var v=p[g];f[v]&&f[v].applyVisual(h,l,u)}}}}}var tT=n("5Wdj");function nT(e){var t=e.brushType,n={point:function(r){return rT[t].point(r,n,e)},rect:function(r){return rT[t].rect(r,n,e)}};return n}var rT={lineX:iT(0),lineY:iT(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&tT["a"](n.range,e[0],e[1])},rect:function(e,t,n){var r=n.range;if(!e||r.length<=1)return!1;var i=e.x,a=e.y,o=e.width,s=e.height,l=r[0];return!!(tT["a"](r,i,a)||tT["a"](r,i+o,a)||tT["a"](r,i,a+s)||tT["a"](r,i+o,a+s)||Pr["a"].create(e).contain(l[0],l[1])||Object(Le["linePolygonIntersect"])(i,a,i+o,a,r)||Object(Le["linePolygonIntersect"])(i,a,i,a+s,r)||Object(Le["linePolygonIntersect"])(i+o,a,i+o,a+s,r)||Object(Le["linePolygonIntersect"])(i,a+s,i+o,a+s,r))||void 0}}};function iT(e){var t=["x","y"],n=["width","height"];return{point:function(t,n,r){if(t){var i=r.range,a=t[e];return aT(a,i)}},rect:function(r,i,a){if(r){var o=a.range,s=[r[t[e]],r[t[e]]+r[n[e]]];return s[1]<s[0]&&s.reverse(),aT(s[0],o)||aT(s[1],o)||aT(o[0],s)||aT(o[1],s)}}}}function aT(e,t){return t[0]<=e&&e<=t[1]}var oT=["inBrush","outOfBrush"],sT="__ecBrushSelect",lT="__ecInBrushSelectEvent";function uT(e){e.eachComponent({mainType:"brush"},(function(t){var n=t.brushTargetManager=new Jw(t.option,e);n.setInputRanges(t.areas,e)}))}function cT(e,t,n){var r,i,a=[];e.eachComponent({mainType:"brush"},(function(e){n&&"takeGlobalCursor"===n.type&&e.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),uT(e),e.eachComponent({mainType:"brush"},(function(t,n){var o={brushId:t.id,brushIndex:n,brushName:t.name,areas:s["clone"](t.areas),selected:[]};a.push(o);var l=t.option,u=l.brushLink,c=[],h=[],d=[],f=!1;n||(r=l.throttleType,i=l.throttleDelay);var p=s["map"](t.areas,(function(e){var t=gT[e.brushType],n=s["defaults"]({boundingRect:t?t(e):void 0},e);return n.selectors=nT(n),n})),g=$S(t.option,oT,(function(e){e.mappingMethod="fixed"}));function m(e){return"all"===u||!!c[e]}function v(e){return!!e.length}function y(e,t){var n=e.coordinateSystem;f=f||n.hasAxisBrushed(),m(t)&&n.eachActiveState(e.getData(),(function(e,t){"active"===e&&(h[t]=1)}))}function b(n,r,i){if(n.brushSelector&&!pT(t,r)&&(s["each"](p,(function(r){t.brushTargetManager.controlSeries(r,n,e)&&i.push(r),f=f||v(i)})),m(r)&&v(i))){var a=n.getData();a.each((function(e){fT(n,i,a,e)&&(h[e]=1)}))}}s["isArray"](u)&&s["each"](u,(function(e){c[e]=1})),e.eachSeries((function(e,t){var n=d[t]=[];"parallel"===e.subType?y(e,t):b(e,t,n)})),e.eachSeries((function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};o.selected.push(n);var r=d[t],i=e.getData(),a=m(t)?function(e){return h[e]?(n.dataIndex.push(i.getRawIndex(e)),"inBrush"):"outOfBrush"}:function(t){return fT(e,r,i,t)?(n.dataIndex.push(i.getRawIndex(t)),"inBrush"):"outOfBrush"};(m(t)?f:v(r))&&JS(oT,g,i,a)}))})),hT(t,r,i,a,n)}function hT(e,t,n,r,i){if(i){var a=e.getZr();if(!a[lT]){a[sT]||(a[sT]=dT);var o=en["b"](a,sT,n,t);o(e,r)}}}function dT(e,t){if(!e.isDisposed()){var n=e.getZr();n[lT]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[lT]=!1}}function fT(e,t,n,r){for(var i=0,a=t.length;i<a;i++){var o=t[i];if(e.brushSelector(r,n,o.selectors,o))return!0}}function pT(e,t){var n=e.option.seriesIndex;return null!=n&&"all"!==n&&(s["isArray"](n)?s["indexOf"](n,t)<0:t!==n)}var gT={rect:function(e){return mT(e.range)},polygon:function(e){for(var t,n=e.range,r=0,i=n.length;r<i;r++){t=t||[[1/0,-1/0],[1/0,-1/0]];var a=n[r];a[0]<t[0][0]&&(t[0][0]=a[0]),a[0]>t[0][1]&&(t[0][1]=a[0]),a[1]<t[1][0]&&(t[1][0]=a[1]),a[1]>t[1][1]&&(t[1][1]=a[1])}return t&&mT(t)}};function mT(e){return new Pr["a"](e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var vT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new Ud(t.getZr())).on("brush",s["bind"](this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,r){this.model=e,this._updateController(e,t,n,r)},t.prototype.updateTransform=function(e,t,n,r){uT(t),this._updateController(e,t,n,r)},t.prototype.updateVisual=function(e,t,n,r){this.updateTransform(e,t,n,r)},t.prototype.updateView=function(e,t,n,r){this._updateController(e,t,n,r)},t.prototype._updateController=function(e,t,n,r){(!r||r.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:s["clone"](n),$from:t}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:s["clone"](n),$from:t})},t.type="brush",t}(mr["a"]),yT=vT,bT="#ddd",_T=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return Object(v["b"])(t,e),t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&QS(n,e,["inBrush","outOfBrush"]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:bT},r.hasOwnProperty("liftZ")||(r.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=s["map"](e,(function(e){return xT(this.option,e)}),this))},t.prototype.setBrushOption=function(e){this.brushOption=xT(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.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},t}(vr["a"]);function xT(e,t){return s["merge"]({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new ei["a"](e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var wT=_T,ST=["rect","polygon","lineX","lineY","keep","clear"],TT=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(v["b"])(t,e),t.prototype.render=function(e,t,n){var r,i,a;t.eachComponent({mainType:"brush"},(function(e){r=e.brushType,i=e.brushOption.brushMode||"single",a=a||!!e.areas.length})),this._brushType=r,this._brushMode=i,s["each"](e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===i:"clear"===t?a:t===r)?"emphasis":"normal")}))},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return s["each"](e.get("type",!0),(function(e){t[e]&&(n[e]=t[e])})),n},t.prototype.onclick=function(e,t,n){var r=this._brushType,i=this._brushMode;"clear"===n?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?r:r!==n&&n,brushMode:"keep"===n?"multiple"===i?"single":"multiple":i}})},t.getDefaultOption=function(e){var t={show:!0,type:ST.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:e.getLocale(["toolbox","brush","title"])};return t},t}($x),OT=TT;function MT(e){e.registerComponentView(yT),e.registerComponentModel(wT),e.registerPreprocessor(XS),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,cT),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(e,t){t.eachComponent({mainType:"brush",query:e},(function(t){t.setAreas(e.areas)}))})),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},(function(){})),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},(function(){})),Jx("brush",OT)}var ET=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return Object(v["b"])(t,e),t.type="title",t.defaultOption={zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(vr["a"]),AT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get("show")){var r=this.group,i=e.getModel("textStyle"),a=e.getModel("subtextStyle"),o=e.get("textAlign"),l=s["retrieve2"](e.get("textBaseline"),e.get("textVerticalAlign")),u=new at["a"]({style:Object(Be["c"])(i,{text:e.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),c=u.getBoundingRect(),h=e.get("subtext"),d=new at["a"]({style:Object(Be["c"])(a,{text:h,fill:a.getTextColor(),y:c.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),f=e.get("link"),p=e.get("sublink"),g=e.get("triggerEvent",!0);u.silent=!f&&!g,d.silent=!p&&!g,f&&u.on("click",(function(){Object(Tt["l"])(f,"_"+e.get("target"))})),p&&d.on("click",(function(){Object(Tt["l"])(p,"_"+e.get("subtarget"))})),Object(ke["a"])(u).eventData=Object(ke["a"])(d).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,r.add(u),h&&r.add(d);var m=r.getBoundingRect(),v=e.getBoxLayoutParams();v.width=m.width,v.height=m.height;var y=Object(Ln["g"])(v,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));o||(o=e.get("left")||e.get("right"),"middle"===o&&(o="center"),"right"===o?y.x+=y.width:"center"===o&&(y.x+=y.width/2)),l||(l=e.get("top")||e.get("bottom"),"center"===l&&(l="middle"),"bottom"===l?y.y+=y.height:"middle"===l&&(y.y+=y.height/2),l=l||"top"),r.x=y.x,r.y=y.y,r.markRedraw();var b={align:o,verticalAlign:l};u.setStyle(b),d.setStyle(b),m=r.getBoundingRect();var _=y.margin,x=e.getItemStyle(["color","opacity"]);x.fill=e.get("backgroundColor");var w=new yt["a"]({shape:{x:m.x-_[3],y:m.y-_[0],width:m.width+_[1]+_[3],height:m.height+_[0]+_[2],r:e.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});r.add(w)}},t.type="title",t}(mr["a"]);function CT(e){e.registerComponentModel(ET),e.registerComponentView(AT)}var IT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return Object(v["b"])(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e,t=this.option,n=t.data||[],r=t.axisType,i=this._names=[];"category"===r?(e=[],Object(s["each"])(n,(function(t,n){var r,a=Object(ot["e"])(Object(ot["h"])(t),"");Object(s["isObject"])(t)?(r=Object(s["clone"])(t),r.value=n):r=n,e.push(r),i.push(a)}))):e=n;var a={category:"ordinal",time:"time",value:"number"}[r]||"number",o=this._data=new Qn["a"]([{name:"value",type:a}],this);o.initData(e,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},t.type="timeline",t.defaultOption={zlevel:0,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:[]},t}(vr["a"]),DT=IT,LT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.type="timeline.slider",t.defaultOption=Object($t["d"])(DT.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:[]}),t}(DT);Object(s["mixin"])(LT,IS["a"].prototype);var PT=LT,kT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.type="timeline",t}(mr["a"]),RT=kT,NT=function(e){function t(t,n,r,i){var a=e.call(this,t,n,r)||this;return a.type=i||"value",a}return Object(v["b"])(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(Vr["a"]),jT=NT,FT=n("3MuR"),zT=n("mDwk"),BT=Math.PI,VT=Object(ot["o"])(),GT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var r=this._layout(e,n),i=this._createGroup("_mainGroup"),a=this._createGroup("_labelGroup"),o=this._axis=this._createAxis(r,e);e.formatTooltip=function(e){var t=o.scale.getLabel({value:e});return Object(qi["c"])("nameValue",{noName:!0,value:t})},Object(s["each"])(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](r,i,o,e)}),this),this._renderAxisLabel(r,a,o,e),this._position(r,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n,r=e.get(["label","position"]),i=e.get("orient"),a=UT(e,t);n=null==r||"auto"===r?"horizontal"===i?a.y+a.height/2<t.getHeight()/2?"-":"+":a.x+a.width/2<t.getWidth()/2?"+":"-":Object(s["isString"])(r)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][r]:r;var o,l,u,c={horizontal:"center",vertical:n>=0||"+"===n?"left":"right"},h={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},d={horizontal:0,vertical:BT/2},f="vertical"===i?a.height:a.width,p=e.getModel("controlStyle"),g=p.get("show",!0),m=g?p.get("itemSize"):0,v=g?p.get("itemGap"):0,y=m+v,b=e.get(["label","rotate"])||0;b=b*BT/180;var _=p.get("position",!0),x=g&&p.get("showPlayBtn",!0),w=g&&p.get("showPrevBtn",!0),S=g&&p.get("showNextBtn",!0),T=0,O=f;"left"===_||"bottom"===_?(x&&(o=[0,0],T+=y),w&&(l=[T,0],T+=y),S&&(u=[O-m,0],O-=y)):(x&&(o=[O-m,0],O-=y),w&&(l=[0,0],T+=y),S&&(u=[O-m,0],O-=y));var M=[T,O];return e.get("inverse")&&M.reverse(),{viewRect:a,mainLength:f,orient:i,rotation:d[i],labelRotation:b,labelPosOpt:n,labelAlign:e.get(["label","align"])||c[i],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||h[i],playPosition:o,prevBtnPosition:l,nextBtnPosition:u,axisExtent:M,controlSize:m,controlGap:v}},t.prototype._position=function(e,t){var n=this._mainGroup,r=this._labelGroup,i=e.viewRect;if("vertical"===e.orient){var a=Rr["create"](),o=i.x,l=i.y+i.height;Rr["translate"](a,a,[-o,-l]),Rr["rotate"](a,a,-BT/2),Rr["translate"](a,a,[o,l]),i=i.clone(),i.applyTransform(a)}var u=v(i),c=v(n.getBoundingRect()),h=v(r.getBoundingRect()),d=[n.x,n.y],f=[r.x,r.y];f[0]=d[0]=u[0][0];var p=e.labelPosOpt;if(null==p||Object(s["isString"])(p)){var g="+"===p?0:1;y(d,c,u,1,g),y(f,h,u,1,1-g)}else{g=p>=0?0:1;y(d,c,u,1,g),f[1]=d[1]+p}function m(e){e.originX=u[0][0]-e.x,e.originY=u[1][0]-e.y}function v(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function y(e,t,n,r,i){e[r]+=n[r][i]-t[r][i]}n.setPosition(d),r.setPosition(f),n.rotation=r.rotation=e.rotation,m(n),m(r)},t.prototype._createAxis=function(e,t){var n=t.getData(),r=t.get("axisType"),i=HT(t,r);i.getTicks=function(){return n.mapArray(["value"],(function(e){return{value:e}}))};var a=n.getDataExtent("value");i.setExtent(a[0],a[1]),i.niceTicks();var o=new jT("value",i,e.axisExtent,r);return o.model=t,o},t.prototype._createGroup=function(e){var t=this[e]=new De["a"];return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,r){var i=n.getExtent();if(r.get(["lineStyle","show"])){var a=new Jr["a"]({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:Object(s["extend"])({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(a);var o=this._progressLine=new Jr["a"]({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:Object(s["defaults"])({lineCap:"round",lineWidth:a.style.lineWidth},r.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(o)}},t.prototype._renderAxisTick=function(e,t,n,r){var i=this,a=r.getData(),o=n.scale.getTicks();this._tickSymbols=[],Object(s["each"])(o,(function(e){var o=n.dataToCoord(e.value),l=a.getItemModel(e.value),u=l.getModel("itemStyle"),c=l.getModel(["emphasis","itemStyle"]),h=l.getModel(["progress","itemStyle"]),d={x:o,y:0,onclick:Object(s["bind"])(i._changeTimeline,i,e.value)},f=XT(l,u,t,d);f.ensureState("emphasis").style=c.getItemStyle(),f.ensureState("progress").style=h.getItemStyle(),Object(Re["k"])(f);var p=Object(ke["a"])(f);l.get("tooltip")?(p.dataIndex=e.value,p.dataModel=r):p.dataIndex=p.dataModel=null,i._tickSymbols.push(f)}))},t.prototype._renderAxisLabel=function(e,t,n,r){var i=this,a=n.getLabelModel();if(a.get("show")){var o=r.getData(),l=n.getViewLabels();this._tickLabels=[],Object(s["each"])(l,(function(r){var a=r.tickValue,l=o.getItemModel(a),u=l.getModel("label"),c=l.getModel(["emphasis","label"]),h=l.getModel(["progress","label"]),d=n.dataToCoord(r.tickValue),f=new at["a"]({x:d,y:0,rotation:e.labelRotation-e.rotation,onclick:Object(s["bind"])(i._changeTimeline,i,a),silent:!1,style:Object(Be["c"])(u,{text:r.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});f.ensureState("emphasis").style=Object(Be["c"])(c),f.ensureState("progress").style=Object(Be["c"])(h),t.add(f),Object(Re["k"])(f),VT(f).dataIndex=a,i._tickLabels.push(f)}))}},t.prototype._renderControl=function(e,t,n,r){var i=e.controlSize,a=e.rotation,o=r.getModel("controlStyle").getItemStyle(),l=r.getModel(["emphasis","controlStyle"]).getItemStyle(),u=r.getPlayState(),c=r.get("inverse",!0);function h(e,n,u,c){if(e){var h=Object(y["h"])(Object(s["retrieve2"])(r.get(["controlStyle",n+"BtnSize"]),i),i),d=[0,-h/2,h,h],f={position:e,origin:[i/2,0],rotation:c?-a:0,rectHover:!0,style:o,onclick:u},p=WT(r,n+"Icon",d,f);p.ensureState("emphasis").style=l,t.add(p),Object(Re["k"])(p)}}h(e.nextBtnPosition,"next",Object(s["bind"])(this._changeTimeline,this,c?"-":"+")),h(e.prevBtnPosition,"prev",Object(s["bind"])(this._changeTimeline,this,c?"+":"-")),h(e.playPosition,u?"stop":"play",Object(s["bind"])(this._handlePlayClick,this,!u),!0)},t.prototype._renderCurrentPointer=function(e,t,n,r){var i=r.getData(),a=r.getCurrentIndex(),o=i.getItemModel(a).getModel("checkpointStyle"),l=this,u={onCreate:function(e){e.draggable=!0,e.drift=Object(s["bind"])(l._handlePointerDrag,l),e.ondragend=Object(s["bind"])(l._handlePointerDragend,l),YT(e,l._progressLine,a,n,r,!0)},onUpdate:function(e){YT(e,l._progressLine,a,n,r)}};this._currentPointer=XT(o,o,this._mainGroup,{},this._currentPointer,u)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],r=this._axis,i=Ne["b"](r.getExtent().slice());n>i[1]&&(n=i[1]),n<i[0]&&(n=i[0]),this._currentPointer.x=n,this._currentPointer.markRedraw(),this._progressLine.shape.x2=n,this._progressLine.dirty();var a=this._findNearestTick(n),o=this.model;(t||a!==o.getCurrentIndex()&&o.get("realtime"))&&this._changeTimeline(a)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var t=e.model;e._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){var t=this._mainGroup.getLocalTransform();return Le["applyTransform"](e,t,!0)},t.prototype._findNearestTick=function(e){var t,n=this.model.getData(),r=1/0,i=this._axis;return n.each(["value"],(function(n,a){var o=i.dataToCoord(n),s=Math.abs(o-e);s<r&&(r=s,t=a)})),t},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var t=this.model.getCurrentIndex();"+"===e?e=t+1:"-"===e&&(e=t-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),t=this._tickSymbols,n=this._tickLabels;if(t)for(var r=0;r<t.length;r++)t&&t[r]&&t[r].toggleState("progress",r<e);if(n)for(r=0;r<n.length;r++)n&&n[r]&&n[r].toggleState("progress",VT(n[r]).dataIndex<=e)},t.type="timeline.slider",t}(RT);function HT(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new FT["a"]({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new zT["a"]({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new ua["a"]}}function UT(e,t){return Ln["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function WT(e,t,n,r){var i=r.style,a=Le["createIcon"](e.get(["controlStyle",t]),r||{},new Pr["a"](n[0],n[1],n[2],n[3]));return i&&a.setStyle(i),a}function XT(e,t,n,r,i,a){var o=t.get("color");if(i)i.setColor(o),n.add(i),a&&a.onUpdate(i);else{var l=e.get("symbol");i=Object(Pe["a"])(l,-1,-1,2,2,o),i.setStyle("strokeNoScale",!0),n.add(i),a&&a.onCreate(i)}var u=t.getItemStyle(["color"]);i.setStyle(u),r=Object(s["merge"])({rectHover:!0,z2:100},r,!0);var c=e.get("symbolSize");c=c instanceof Array?c.slice():[+c,+c],r.scaleX=c[0]/2,r.scaleY=c[1]/2;var h=e.get("symbolOffset");h&&(r.x=r.x||0,r.y=r.y||0,r.x+=Ne["o"](h[0],c[0]),r.y+=Ne["o"](h[1],c[1]));var d=e.get("symbolRotate");return r.rotation=(d||0)*Math.PI/180||0,i.attr(r),i.updateTransform(),i}function YT(e,t,n,r,i,a){if(!e.dragging){var o=i.getModel("checkpointStyle"),s=r.dataToCoord(i.getData().get("value",n));if(a||!o.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}var KT=GT;function qT(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(e,t){var n=t.getComponent("timeline");return n&&null!=e.currentIndex&&(n.setCurrentIndex(e.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.setPlayState(!1)),t.resetOption("timeline",{replaceMerge:n.get("replaceMerge",!0)}),Object(s["defaults"])({currentIndex:n.option.currentIndex},e)})),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(e,t){var n=t.getComponent("timeline");n&&null!=e.playState&&n.setPlayState(e.playState)}))}function ZT(e){var t=e&&e.timeline;s["isArray"](t)||(t=t?[t]:[]),s["each"](t,(function(e){e&&$T(e)}))}function $T(e){var t=e.type,n={number:"value",time:"time"};if(n[t]&&(e.axisType=n[t],delete e.type),QT(e),JT(e,"controlPosition")){var r=e.controlStyle||(e.controlStyle={});JT(r,"position")||(r.position=e.controlPosition),"none"!==r.position||JT(r,"show")||(r.show=!1,delete r.position),delete e.controlPosition}s["each"](e.data||[],(function(e){s["isObject"](e)&&!s["isArray"](e)&&(!JT(e,"value")&&JT(e,"name")&&(e.value=e.name),QT(e))}))}function QT(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),r=e.label||e.label||{},i=r.normal||(r.normal={}),a={normal:1,emphasis:1};s["each"](r,(function(e,t){a[t]||JT(i,t)||(i[t]=e)})),n.label&&!JT(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function JT(e,t){return e.hasOwnProperty(t)}function eO(e){e.registerComponentModel(PT),e.registerComponentView(KT),e.registerSubTypeDefaulter("timeline",(function(){return"slider"})),qT(e),e.registerPreprocessor(ZT)}function tO(e){Object(ot["f"])(e,"label",["show"])}var nO=Object(ot["o"])(),rO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n}return Object(v["b"])(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(ub["a"].node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,t){this._mergeOption(e,t,!1,!1)},t.prototype._mergeOption=function(e,t,n,r){var i=this.mainType;n||t.eachSeries((function(e){var n=e.get(this.mainType,!0),a=nO(e)[i];n&&n.data?(a?a._mergeOption(n,t,!0):(r&&tO(n),s["each"](n.data,(function(e){e instanceof Array?(tO(e[0]),tO(e[1])):tO(e)})),a=this.createMarkerModelFromSeries(n,this,t),s["extend"](a,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),a.__hostSeries=e),nO(e)[i]=a):nO(e)[i]=null}),this)},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e),a=r.getName(e);return Object(qi["c"])("section",{header:this.name,blocks:[Object(qi["c"])("nameValue",{name:a,value:i,noName:!a,noValue:null==i})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.getMarkerModelFromSeries=function(e,t){return nO(e)[t]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(vr["a"]);s["mixin"](rO,IS["a"].prototype);var iO=rO,aO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type="markPoint",t.defaultOption={zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(iO),oO=aO;function sO(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function lO(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function uO(e,t,n,r,i,a){var o=[],s=Object(qe["c"])(t,r),l=s?t.getCalculationInfo("stackResultDimension"):r,u=mO(t,l,e),c=t.indicesOfNearest(l,u)[0];o[i]=t.get(n,c),o[a]=t.get(l,c);var h=t.get(r,c),d=Ne["f"](t.get(r,c));return d=Math.min(d,20),d>=0&&(o[a]=+o[a].toFixed(d)),[o,h]}var cO={min:Object(s["curry"])(uO,"min"),max:Object(s["curry"])(uO,"max"),average:Object(s["curry"])(uO,"average"),median:Object(s["curry"])(uO,"median")};function hO(e,t){var n=e.getData(),r=e.coordinateSystem;if(t&&!lO(t)&&!Object(s["isArray"])(t.coord)&&r){var i=r.dimensions,a=dO(t,n,r,e);if(t=Object(s["clone"])(t),t.type&&cO[t.type]&&a.baseAxis&&a.valueAxis){var o=Object(s["indexOf"])(i,a.baseAxis.dim),l=Object(s["indexOf"])(i,a.valueAxis.dim),u=cO[t.type](n,a.baseDataDim,a.valueDataDim,o,l);t.coord=u[0],t.value=u[1]}else{for(var c=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis],h=0;h<2;h++)cO[c[h]]&&(c[h]=mO(n,n.mapDimension(i[h]),c[h]));t.coord=c}}return t}function dO(e,t,n,r){var i={};return null!=e.valueIndex||null!=e.valueDim?(i.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,i.valueAxis=n.getAxis(fO(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function fO(e,t){var n=e.getData(),r=n.dimensions;t=n.getDimension(t);for(var i=0;i<r.length;i++){var a=n.getDimensionInfo(r[i]);if(a.name===t)return a.coordDim}}function pO(e,t){return!(e&&e.containData&&t.coord&&!sO(t))||e.containData(t.coord)}function gO(e,t,n,r){return r<2?e.coord&&e.coord[r]:e.value}function mO(e,t,n){if("average"===n){var r=0,i=0;return e.each(t,(function(e,t){isNaN(e)||(r+=e,i++)})),r/i}return"median"===n?e.getMedian(t):e.getDataExtent(t)["max"===n?1:0]}var vO=Object(ot["o"])(),yO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.init=function(){this.markerGroupMap=Object(s["createHashMap"])()},t.prototype.render=function(e,t,n){var r=this,i=this.markerGroupMap;i.each((function(e){vO(e).keep=!1})),t.eachSeries((function(e){var i=iO.getMarkerModelFromSeries(e,r.type);i&&r.renderSeries(e,i,t,n)})),i.each((function(e){!vO(e).keep&&r.group.remove(e.group)}))},t.prototype.markKeep=function(e){vO(e).keep=!0},t.prototype.blurSeries=function(e){var t=this;Object(s["each"])(e,(function(e){var n=iO.getMarkerModelFromSeries(e,t.type);if(n){var r=n.getData();r.eachItemGraphicEl((function(e){e&&Object(Re["m"])(e)}))}}))},t.type="marker",t}(mr["a"]),bO=yO;function _O(e,t,n){var r=t.coordinateSystem;e.each((function(i){var a,o=e.getItemModel(i),s=Ne["o"](o.get("x"),n.getWidth()),l=Ne["o"](o.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(t.getMarkerPosition)a=t.getMarkerPosition(e.getValues(e.dimensions,i));else if(r){var u=e.get(r.dimensions[0],i),c=e.get(r.dimensions[1],i);a=r.dataToPoint([u,c])}}else a=[s,l];isNaN(s)||(a[0]=s),isNaN(l)||(a[1]=l),e.setItemLayout(i,a)}))}var xO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=iO.getMarkerModelFromSeries(e,"markPoint");t&&(_O(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())}),this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),l=this.markerGroupMap,u=l.get(a)||l.set(a,new Ke),c=wO(i,e,t);t.setData(c),_O(t.getData(),e,r),c.each((function(e){var n=c.getItemModel(e),r=n.getShallow("symbol"),i=n.getShallow("symbolSize"),a=n.getShallow("symbolRotate");if(Object(s["isFunction"])(r)||Object(s["isFunction"])(i)||Object(s["isFunction"])(a)){var l=t.getRawValue(e),u=t.getDataParams(e);Object(s["isFunction"])(r)&&(r=r(l,u)),Object(s["isFunction"])(i)&&(i=i(l,u)),Object(s["isFunction"])(a)&&(a=a(l,u))}var h=n.getModel("itemStyle").getItemStyle(),d=Object(KS["b"])(o,"color");h.fill||(h.fill=d),c.setItemVisual(e,{symbol:r,symbolSize:i,symbolRotate:a,style:h})})),u.updateData(c),this.group.add(u.group),c.eachItemGraphicEl((function(e){e.traverse((function(e){Object(ke["a"])(e).dataModel=t}))})),this.markKeep(u),u.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}(bO);function wO(e,t,n){var r;r=e?Object(s["map"])(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(s["defaults"])({name:e},n)})):[{name:"value",type:"float"}];var i=new Qn["a"](r,n),a=Object(s["map"])(n.get("data"),Object(s["curry"])(hO,t));return e&&(a=Object(s["filter"])(a,Object(s["curry"])(pO,e))),i.initData(a,null,e?gO:function(e){return e.value}),i}var SO=xO;function TO(e){e.registerComponentModel(oO),e.registerComponentView(SO),e.registerPreprocessor((function(e){e.markPoint=e.markPoint||{}}))}var OO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type="markLine",t.defaultOption={zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(iO),MO=OO,EO=Object(ot["o"])(),AO=function(e,t,n,r){var i,a=e.getData();if(Object(s["isArray"])(r))i=r;else{var o=r.type;if("min"===o||"max"===o||"average"===o||"median"===o||null!=r.xAxis||null!=r.yAxis){var l=void 0,u=void 0;if(null!=r.yAxis||null!=r.xAxis)l=t.getAxis(null!=r.yAxis?"y":"x"),u=Object(s["retrieve"])(r.yAxis,r.xAxis);else{var c=dO(r,a,t,e);l=c.valueAxis;var h=Object(qe["b"])(a,c.valueDataDim);u=mO(a,h,o)}var d="x"===l.dim?0:1,f=1-d,p=Object(s["clone"])(r),g={coord:[]};p.type=null,p.coord=[],p.coord[f]=-1/0,g.coord[f]=1/0;var m=n.get("precision");m>=0&&"number"===typeof u&&(u=+u.toFixed(Math.min(m,20))),p.coord[d]=g.coord[d]=u,i=[p,g,{type:o,valueIndex:r.valueIndex,value:u}]}else i=[]}var v=[hO(e,i[0]),hO(e,i[1]),Object(s["extend"])({},i[2])];return v[2].type=v[2].type||null,Object(s["merge"])(v[2],v[0]),Object(s["merge"])(v[2],v[1]),v};function CO(e){return!isNaN(e)&&!isFinite(e)}function IO(e,t,n,r){var i=1-e,a=r.dimensions[e];return CO(t[i])&&CO(n[i])&&t[e]===n[e]&&r.getAxis(a).containData(t[e])}function DO(e,t){if("cartesian2d"===e.type){var n=t[0].coord,r=t[1].coord;if(n&&r&&(IO(1,n,r,e)||IO(0,n,r,e)))return!0}return pO(e,t[0])&&pO(e,t[1])}function LO(e,t,n,r,i){var a,o=r.coordinateSystem,s=e.getItemModel(t),l=Ne["o"](s.get("x"),i.getWidth()),u=Ne["o"](s.get("y"),i.getHeight());if(isNaN(l)||isNaN(u)){if(r.getMarkerPosition)a=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=o.dimensions,h=e.get(c[0],t),d=e.get(c[1],t);a=o.dataToPoint([h,d])}if(St(o,"cartesian2d")){var f=o.getAxis("x"),p=o.getAxis("y");c=o.dimensions;CO(e.get(c[0],t))?a[0]=f.toGlobalCoord(f.getExtent()[n?0:1]):CO(e.get(c[1],t))&&(a[1]=p.toGlobalCoord(p.getExtent()[n?0:1]))}isNaN(l)||(a[0]=l),isNaN(u)||(a[1]=u)}else a=[l,u];e.setItemLayout(t,a)}var PO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=iO.getMarkerModelFromSeries(e,"markLine");if(t){var r=t.getData(),i=EO(t).from,a=EO(t).to;i.each((function(t){LO(i,t,!0,e,n),LO(a,t,!1,e,n)})),r.each((function(e){r.setItemLayout(e,[i.getItemLayout(e),a.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),l=this.markerGroupMap,u=l.get(a)||l.set(a,new fc);this.group.add(u.group);var c=kO(i,e,t),h=c.from,d=c.to,f=c.line;EO(t).from=h,EO(t).to=d,t.setData(f);var p=t.get("symbol"),g=t.get("symbolSize");function m(t,n,i){var a=t.getItemModel(n);LO(t,n,i,e,r);var s=a.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=Object(KS["b"])(o,"color")),t.setItemVisual(n,{symbolRotate:a.get("symbolRotate"),symbolSize:a.get("symbolSize")||g[i?0:1],symbol:a.get("symbol",!0)||p[i?0:1],style:s})}Object(s["isArray"])(p)||(p=[p,p]),Object(s["isArray"])(g)||(g=[g,g]),c.from.each((function(e){m(h,e,!0),m(d,e,!1)})),f.each((function(e){var t=f.getItemModel(e).getModel("lineStyle").getLineStyle();f.setItemLayout(e,[h.getItemLayout(e),d.getItemLayout(e)]),null==t.stroke&&(t.stroke=h.getItemVisual(e,"style").fill),f.setItemVisual(e,{fromSymbolRotate:h.getItemVisual(e,"symbolRotate"),fromSymbolSize:h.getItemVisual(e,"symbolSize"),fromSymbol:h.getItemVisual(e,"symbol"),toSymbolRotate:d.getItemVisual(e,"symbolRotate"),toSymbolSize:d.getItemVisual(e,"symbolSize"),toSymbol:d.getItemVisual(e,"symbol"),style:t})})),u.updateData(f),c.line.eachItemGraphicEl((function(e,n){e.traverse((function(e){Object(ke["a"])(e).dataModel=t}))})),this.markKeep(u),u.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}(bO);function kO(e,t,n){var r;r=e?Object(s["map"])(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(s["defaults"])({name:e},n)})):[{name:"value",type:"float"}];var i=new Qn["a"](r,n),a=new Qn["a"](r,n),o=new Qn["a"]([],n),l=Object(s["map"])(n.get("data"),Object(s["curry"])(AO,t,e,n));e&&(l=Object(s["filter"])(l,Object(s["curry"])(DO,e)));var u=e?gO:function(e){return e.value};return i.initData(Object(s["map"])(l,(function(e){return e[0]})),null,u),a.initData(Object(s["map"])(l,(function(e){return e[1]})),null,u),o.initData(Object(s["map"])(l,(function(e){return e[2]}))),o.hasItemOption=!0,{from:i,to:a,line:o}}var RO=PO;function NO(e){e.registerComponentModel(MO),e.registerComponentView(RO),e.registerPreprocessor((function(e){e.markLine=e.markLine||{}}))}var jO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type="markArea",t.defaultOption={zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(iO),FO=jO,zO=Object(ot["o"])(),BO=function(e,t,n,r){var i=hO(e,r[0]),a=hO(e,r[1]),o=i.coord,l=a.coord;o[0]=Object(s["retrieve"])(o[0],-1/0),o[1]=Object(s["retrieve"])(o[1],-1/0),l[0]=Object(s["retrieve"])(l[0],1/0),l[1]=Object(s["retrieve"])(l[1],1/0);var u=Object(s["mergeAll"])([{},i,a]);return u.coord=[i.coord,a.coord],u.x0=i.x,u.y0=i.y,u.x1=a.x,u.y1=a.y,u};function VO(e){return!isNaN(e)&&!isFinite(e)}function GO(e,t,n,r){var i=1-e;return VO(t[i])&&VO(n[i])}function HO(e,t){var n=t.coord[0],r=t.coord[1];return!!(St(e,"cartesian2d")&&n&&r&&(GO(1,n,r,e)||GO(0,n,r,e)))||(pO(e,{coord:n,x:t.x0,y:t.y0})||pO(e,{coord:r,x:t.x1,y:t.y1}))}function UO(e,t,n,r,i){var a,o=r.coordinateSystem,s=e.getItemModel(t),l=Ne["o"](s.get(n[0]),i.getWidth()),u=Ne["o"](s.get(n[1]),i.getHeight());if(isNaN(l)||isNaN(u)){if(r.getMarkerPosition)a=r.getMarkerPosition(e.getValues(n,t));else{var c=e.get(n[0],t),h=e.get(n[1],t),d=[c,h];o.clampData&&o.clampData(d,d),a=o.dataToPoint(d,!0)}if(St(o,"cartesian2d")){var f=o.getAxis("x"),p=o.getAxis("y");c=e.get(n[0],t),h=e.get(n[1],t);VO(c)?a[0]=f.toGlobalCoord(f.getExtent()["x0"===n[0]?0:1]):VO(h)&&(a[1]=p.toGlobalCoord(p.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(a[0]=l),isNaN(u)||(a[1]=u)}else a=[l,u];return a}var WO=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],XO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=iO.getMarkerModelFromSeries(e,"markArea");if(t){var r=t.getData();r.each((function(t){var i=Object(s["map"])(WO,(function(i){return UO(r,t,i,e,n)}));r.setItemLayout(t,i);var a=r.getItemGraphicEl(t);a.setShape("points",i)}))}}),this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),l=this.markerGroupMap,u=l.get(a)||l.set(a,{group:new De["a"]});this.group.add(u.group),this.markKeep(u);var c=YO(i,e,t);t.setData(c),c.each((function(t){var n=Object(s["map"])(WO,(function(n){return UO(c,t,n,e,r)})),a=!0;Object(s["each"])(WO,(function(e){if(a){var n=c.get(e[0],t),r=c.get(e[1],t);(VO(n)||i.getAxis("x").containData(n))&&(VO(r)||i.getAxis("y").containData(r))&&(a=!1)}})),c.setItemLayout(t,{points:n,allClipped:a});var l=c.getItemModel(t).getModel("itemStyle").getItemStyle(),u=Object(KS["b"])(o,"color");l.fill||(l.fill=u,"string"===typeof l.fill&&(l.fill=K["modifyAlpha"](l.fill,.4))),l.stroke||(l.stroke=u),c.setItemVisual(t,"style",l)})),c.diff(zO(u).data).add((function(e){var t=c.getItemLayout(e);if(!t.allClipped){var n=new Wi["a"]({shape:{points:t.points}});c.setItemGraphicEl(e,n),u.group.add(n)}})).update((function(e,n){var r=zO(u).data.getItemGraphicEl(n),i=c.getItemLayout(e);i.allClipped?r&&u.group.remove(r):(r?Le["updateProps"](r,{shape:{points:i.points}},t,e):r=new Wi["a"]({shape:{points:i.points}}),c.setItemGraphicEl(e,r),u.group.add(r))})).remove((function(e){var t=zO(u).data.getItemGraphicEl(e);u.group.remove(t)})).execute(),c.eachItemGraphicEl((function(e,n){var r=c.getItemModel(n),i=c.getItemVisual(n,"style");e.useStyle(c.getItemVisual(n,"style")),Object(Be["g"])(e,Object(Be["e"])(r),{labelFetcher:t,labelDataIndex:n,defaultText:c.getName(n)||"",inheritColor:"string"===typeof i.fill?K["modifyAlpha"](i.fill,1):"#000"}),Object(Re["D"])(e,r),Object(Re["k"])(e),Object(ke["a"])(e).dataModel=t})),zO(u).data=c,u.group.silent=t.get("silent")||e.get("silent")},t.type="markArea",t}(bO);function YO(e,t,n){var r,i,a=["x0","y0","x1","y1"];e?(r=Object(s["map"])(e&&e.dimensions,(function(e){var n=t.getData(),r=n.getDimensionInfo(n.mapDimension(e))||{};return Object(s["defaults"])({name:e},r)})),i=new Qn["a"](Object(s["map"])(a,(function(e,t){return{name:e,type:r[t%2].type}})),n)):(r=[{name:"value",type:"float"}],i=new Qn["a"](r,n));var o=Object(s["map"])(n.get("data"),Object(s["curry"])(BO,t,e,n));e&&(o=Object(s["filter"])(o,Object(s["curry"])(HO,e)));var l=e?function(e,t,n,r){return e.coord[Math.floor(r/2)][r%2]}:function(e){return e.value};return i.initData(o,null,l),i.hasItemOption=!0,i}var KO=XO;function qO(e){e.registerComponentModel(FO),e.registerComponentView(KO),e.registerPreprocessor((function(e){e.markArea=e.markArea||{}}))}var ZO=function(e,t){return"all"===t?{type:"all",title:e.getLocale(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:e.getLocale(["legend","selector","inverse"])}:void 0},$O=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return Object(v["b"])(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;!0===t&&(t=e.selector=["all","inverse"]),s["isArray"](t)&&s["each"](t,(function(e,r){s["isString"](e)&&(e={type:e}),t[r]=s["merge"](e,ZO(n,e.type))}))},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get("name");if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries((function(r){var i,a=r.name;if(n.push(a),r.legendVisualProvider){var o=r.legendVisualProvider,s=o.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(s)),s.length?t=t.concat(s):i=!0}else i=!0;i&&Object(ot["n"])(r)&&t.push(r.name)})),this._availableNames=n;var r=this.get("data")||t,i=s["map"](r,(function(e){return"string"!==typeof e&&"number"!==typeof e||(e={name:e}),new ei["a"](e,this,this.ecModel)}),this);this._data=i},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected,n=this.get("selectedMode");if("single"===n){var r=this._data;s["each"](r,(function(e){t[e.get("name")]=!1}))}t[e]=!0},t.prototype.unSelect=function(e){"single"!==this.get("selectedMode")&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;s["each"](e,(function(e){t[e.get("name",!0)]=!0}))},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;s["each"](e,(function(e){var n=e.get("name",!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]}))},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&s["indexOf"](this._availableNames,e)>=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={zlevel:0,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,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",itemStyle:{borderWidth:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(vr["a"]),QO=$O,JO=s["curry"],eM=s["each"],tM=De["a"],nM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return Object(v["b"])(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new tM),this.group.add(this._selectorGroup=new tM),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var i=e.get("align"),a=e.get("orient");i&&"auto"!==i||(i="right"===e.get("left")&&"vertical"===a?"right":"left");var o=e.get("selector",!0),l=e.get("selectorPosition",!0);!o||l&&"auto"!==l||(l="horizontal"===a?"end":"start"),this.renderInner(i,e,t,n,o,a,l);var u=e.getBoxLayoutParams(),c={width:n.getWidth(),height:n.getHeight()},h=e.get("padding"),d=Ln["g"](u,c,h),f=this.layoutInner(e,i,d,r,o,l),p=Ln["g"](s["defaults"]({width:f.width,height:f.height},u),c,h);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=iw(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var l=this.getContentGroup(),u=s["createHashMap"](),c=t.get("selectedMode"),h=[];n.eachRawSeries((function(e){!e.get("legendHoverLink")&&h.push(e.id)})),eM(t.getData(),(function(i,a){var o=i.get("name");if(!this.newlineDisabled&&(""===o||"\n"===o)){var s=new tM;return s.newline=!0,void l.add(s)}var d=n.getSeriesByName(o)[0];if(!u.get(o)){if(d){var f=d.getData(),p=f.getVisual("style"),g=p[f.getVisual("drawType")]||p.fill,m=p.stroke,v=p.decal,y=f.getVisual("legendSymbol")||"roundRect",b=f.getVisual("symbol"),_=this._createItem(o,a,i,t,y,b,e,g,m,v,c);_.on("click",JO(iM,o,null,r,h)).on("mouseover",JO(oM,d.name,null,r,h)).on("mouseout",JO(sM,d.name,null,r,h)),u.set(o,!0)}else n.eachRawSeries((function(n){if(!u.get(o)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(o))return;var l=s.indexOfName(o),d=s.getItemVisual(l,"style"),f=d.stroke,p=d.decal,g=d.fill,m=Object(K["parse"])(d.fill);m&&0===m[3]&&(m[3]=.2,g=Object(K["stringify"])(m,"rgba"));var v="roundRect",y=this._createItem(o,a,i,t,v,null,e,g,f,p,c);y.on("click",JO(iM,null,o,r,h)).on("mouseover",JO(oM,null,o,r,h)).on("mouseout",JO(sM,null,o,r,h)),u.set(o,!0)}}),this);0}}),this),i&&this._createSelector(i,t,r,a,o)},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();eM(e,(function(e){var r=e.type,i=new at["a"]({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});a.add(i);var o=t.getModel("selectorLabel"),s=t.getModel(["emphasis","selectorLabel"]);Object(Be["g"])(i,{normal:o,emphasis:s},{defaultText:e.title}),Object(Re["k"])(i)}))},t.prototype._createItem=function(e,t,n,r,i,a,o,l,u,c,h){var d=r.get("itemWidth"),f=r.get("itemHeight"),p=r.get("inactiveColor"),g=r.get("inactiveBorderColor"),m=r.get("symbolKeepAspect"),v=r.getModel("itemStyle"),y=r.isSelected(e),b=new tM,_=n.getModel("textStyle"),x=n.get("icon"),w=n.getModel("tooltip"),S=w.parentModel;i=x||i;var T=Object(Pe["a"])(i,0,0,d,f,y?l:p,null==m||m);if(b.add(rM(T,i,v,u,g,c,y)),!x&&a&&(a!==i||"none"===a)){var O=.8*f;"none"===a&&(a="circle");var M=Object(Pe["a"])(a,(d-O)/2,(f-O)/2,O,O,y?l:p,null==m||m);b.add(rM(M,a,v,u,g,c,y))}var E="left"===o?d+5:-5,A=o,C=r.get("formatter"),I=e;"string"===typeof C&&C?I=C.replace("{name}",null!=e?e:""):"function"===typeof C&&(I=C(e)),b.add(new at["a"]({style:Object(Be["c"])(_,{text:I,x:E,y:f/2,fill:y?_.getTextColor():p,align:A,verticalAlign:"middle"})}));var D=new yt["a"]({shape:b.getBoundingRect(),invisible:!0});if(w.get("show")){var L={componentType:"legend",legendIndex:r.componentIndex,name:e,$vars:["name"]};D.tooltip=s["extend"]({content:e,formatter:S.get("formatter",!0)||function(e){return e.name},formatterParams:L},w.option)}return b.add(D),b.eachChild((function(e){e.silent=!0})),D.silent=!h,this.getContentGroup().add(b),Object(Re["k"])(b),b.__legendDataIndex=t,b},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();Ln["b"](e.get("orient"),o,e.get("itemGap"),n.width,n.height);var l=o.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),o.markRedraw(),i){Ln["b"]("horizontal",s,e.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],d=e.get("selectorButtonGap",!0),f=e.getOrient().index,p=0===f?"width":"height",g=0===f?"height":"width",m=0===f?"y":"x";"end"===a?h[f]+=l[p]+d:u[f]+=c[p]+d,h[1-f]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],o.x=u[0],o.y=u[1];var v={x:0,y:0};return v[p]=l[p]+d+c[p],v[g]=Math.max(l[g],c[g]),v[m]=Math.min(0,c[m]+h[1-f]),v}return o.x=u[0],o.y=u[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(mr["a"]);function rM(e,t,n,r,i,a,o){var s;return"line"!==t&&t.indexOf("empty")<0?(s=n.getItemStyle(),e.style.stroke=r,e.style.decal=a,o||(s.stroke=i)):s=n.getItemStyle(["borderWidth","borderColor"]),e.setStyle(s),e}function iM(e,t,n,r){sM(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),oM(e,t,n,r)}function aM(e){var t,n=e.getZr().storage.getDisplayList(),r=0,i=n.length;while(r<i&&!(t=n[r].states.emphasis))r++;return t&&t.hoverLayer}function oM(e,t,n,r){aM(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:r})}function sM(e,t,n,r){aM(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:r})}var lM=nM;function uM(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries((function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0}))}function cM(e,t,n){var r,i={},a="toggleSelected"===e;return n.eachComponent("legend",(function(n){a&&null!=r?n[r?"select":"unSelect"](t.name):"allSelect"===e||"inverseSelect"===e?n[e]():(n[e](t.name),r=n.isSelected(t.name));var o=n.getData();Object(s["each"])(o,(function(e){var t=e.get("name");if("\n"!==t&&""!==t){var r=n.isSelected(t);i.hasOwnProperty(t)?i[t]=i[t]&&r:i[t]=r}}))})),"allSelect"===e||"inverseSelect"===e?{selected:i}:{name:t.name,selected:i}}function hM(e){e.registerAction("legendToggleSelect","legendselectchanged",Object(s["curry"])(cM,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Object(s["curry"])(cM,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Object(s["curry"])(cM,"inverseSelect")),e.registerAction("legendSelect","legendselected",Object(s["curry"])(cM,"select")),e.registerAction("legendUnSelect","legendunselected",Object(s["curry"])(cM,"unSelect"))}function dM(e){e.registerComponentModel(QO),e.registerComponentView(lM),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,uM),e.registerSubTypeDefaulter("legend",(function(){return"plain"})),hM(e)}var fM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=Object(Ln["f"])(t);e.prototype.init.call(this,t,n,r),pM(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),pM(this,this.option,t)},t.type="legend.scroll",t.defaultOption=Object($t["d"])(QO.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(QO);function pM(e,t,n){var r=e.getOrient(),i=[1,1];i[r.index]=0,Object(Ln["h"])(t,n,{type:"box",ignoreSize:!!i})}var gM=fM,mM=De["a"],vM=["width","height"],yM=["x","y"],bM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return Object(v["b"])(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new mM),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new mM)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,r,i,a,o,l){var u=this;e.prototype.renderInner.call(this,t,n,r,i,a,o,l);var c=this._controllerGroup,h=n.get("pageIconSize",!0),d=s["isArray"](h)?h:[h,h];p("pagePrev",0);var f=n.getModel("pageTextStyle");function p(e,t){var r=e+"DataIndex",a=Le["createIcon"](n.get("pageIcons",!0)[n.getOrient().name][t],{onclick:s["bind"](u._pageGo,u,r,n,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});a.name=e,c.add(a)}c.add(new at["a"]({name:"pageText",style:{text:"xx/xx",fill:f.getTextColor(),font:f.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1)},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getSelectorGroup(),l=e.getOrient().index,u=vM[l],c=yM[l],h=vM[1-l],d=yM[1-l];i&&Ln["b"]("horizontal",o,e.get("selectorItemGap",!0));var f=e.get("selectorButtonGap",!0),p=o.getBoundingRect(),g=[-p.x,-p.y],m=s["clone"](n);i&&(m[u]=n[u]-p[u]-f);var v=this._layoutContentAndController(e,r,m,l,u,h,d,c);if(i){if("end"===a)g[l]+=v[u]+f;else{var y=p[u]+f;g[l]-=y,v[c]-=y}v[u]+=p[u]+f,g[1-l]+=v[d]+v[h]/2-p[h]/2,v[h]=Math.max(v[h],p[h]),v[d]=Math.min(v[d],p[d]+g[1-l]),o.x=g[0],o.y=g[1],o.markRedraw()}return v},t.prototype._layoutContentAndController=function(e,t,n,r,i,a,o,l){var u=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;Ln["b"](e.get("orient"),u,e.get("itemGap"),r?n.width:null,r?null:n.height),Ln["b"]("horizontal",h,e.get("pageButtonItemGap",!0));var d=u.getBoundingRect(),f=h.getBoundingRect(),p=this._showController=d[i]>n[i],g=[-d.x,-d.y];t||(g[r]=u[l]);var m=[0,0],v=[-f.x,-f.y],y=s["retrieve2"](e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var b=e.get("pageButtonPosition",!0);"end"===b?v[r]+=n[i]-f[i]:m[r]+=f[i]+y}v[1-r]+=d[a]/2-f[a]/2,u.setPosition(g),c.setPosition(m),h.setPosition(v);var _={x:0,y:0};if(_[i]=p?n[i]:d[i],_[a]=Math.max(d[a],f[a]),_[o]=Math.min(0,f[o]+v[1-r]),c.__rectSize=n[i],p){var x={x:0,y:0};x[i]=Math.max(n[i]-f[i]-y,0),x[a]=_[a],c.setClipPath(new yt["a"]({shape:x})),c.__rectSize=x[i]}else h.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var w=this._getPageInfo(e);return null!=w.pageIndex&&Le["updateProps"](u,{x:w.contentPosition[0],y:w.contentPosition[1]},p?e:null),this._updatePageInfoView(e,w),_},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;s["each"](["pagePrev","pageNext"],(function(r){var i=r+"DataIndex",a=null!=t[i],o=n.childOfName(r);o&&(o.setStyle("fill",a?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),o.cursor=a?"pointer":"default")}));var r=n.childOfName("pageText"),i=e.get("pageFormatter"),a=t.pageIndex,o=null!=a?a+1:0,l=t.pageCount;r&&i&&r.setStyle("text",s["isString"](i)?i.replace("{current}",null==o?"":o+"").replace("{total}",null==l?"":l+""):i({current:o,total:l}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=vM[i],o=yM[i],s=this._findTargetItemIndex(t),l=n.children(),u=l[s],c=l.length,h=c?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var f=y(u);d.contentPosition[i]=-f.s;for(var p=s+1,g=f,m=f,v=null;p<=c;++p)v=y(l[p]),(!v&&m.e>g.s+r||v&&!b(v,g.s))&&(g=m.i>g.i?m:v,g&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount)),m=v;for(p=s-1,g=f,m=f,v=null;p>=-1;--p)v=y(l[p]),v&&b(m,v.s)||!(g.i<m.i)||(m=g,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=v;return d;function y(e){if(e){var t=e.getBoundingRect(),n=t[o]+e[o];return{s:n,e:n+t[a],i:e.__legendDataIndex}}}function b(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n,r=this.getContentGroup();return r.eachChild((function(r,i){var a=r.__legendDataIndex;null==n&&null!=a&&(n=i),a===e&&(t=i)})),null!=t?t:n},t.type="legend.scroll",t}(lM),_M=bM;function xM(e){e.registerAction("legendScroll","legendscroll",(function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},(function(e){e.setScrollDataIndex(n)}))}))}function wM(e){Object(r["a"])(dM),e.registerComponentModel(gM),e.registerComponentView(_M),xM(e)}function SM(e){Object(r["a"])(dM),Object(r["a"])(wM)}var TM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.type="dataZoom.inside",t.defaultOption=Object($t["d"])(Px.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Px),OM=TM,MM=Object(ot["o"])();function EM(e,t,n){MM(e).coordSysRecordMap.each((function(e){var r=e.dataZoomInfoMap.get(t.uid);r&&(r.getRange=n)}))}function AM(e,t){for(var n=MM(e).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var a=r[i],o=n.get(a),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||CM(n,o))}}}function CM(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function IM(e,t){var n={model:t,containsPoint:Object(s["curry"])(LM,t),dispatchAction:Object(s["curry"])(DM,e),dataZoomInfoMap:null,controller:null},r=n.controller=new Ea(e.getZr());return Object(s["each"])(["pan","zoom","scrollMove"],(function(e){r.on(e,(function(t){var r=[];n.dataZoomInfoMap.each((function(i){if(t.isAvailableBehavior(i.model.option)){var a=(i.getRange||{})[e],o=a&&a(i.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!i.model.get("disabled",!0)&&o&&r.push({dataZoomId:i.model.id,start:o[0],end:o[1]})}})),r.length&&n.dispatchAction(r)}))})),n}function DM(e,t){e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function LM(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}function PM(e){var t,n="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return e.each((function(e){var a=e.model,o=!a.get("disabled",!0)&&(!a.get("zoomLock",!0)||"move");r[n+o]>r[n+t]&&(t=o),i=i&&a.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function kM(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,(function(e,t){var n=MM(t),r=n.coordSysRecordMap||(n.coordSysRecordMap=Object(s["createHashMap"])());r.each((function(e){e.dataZoomInfoMap=null})),e.eachComponent({mainType:"dataZoom",subType:"inside"},(function(e){var n=Cx(e);Object(s["each"])(n.infoList,(function(n){var i=n.model.uid,a=r.get(i)||r.set(i,IM(t,n.model)),o=a.dataZoomInfoMap||(a.dataZoomInfoMap=Object(s["createHashMap"])());o.set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})}))})),r.each((function(e){var t,n=e.controller,i=e.dataZoomInfoMap;if(i){var a=i.keys()[0];null!=a&&(t=i.get(a))}if(t){var o=PM(i);n.enable(o.controlType,o.opt),n.setPointerChecker(e.containsPoint),en["b"](e,"dispatchAction",t.model.get("throttle",!0),"fixRate")}else CM(r,e)}))}))}var RM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return Object(v["b"])(t,e),t.prototype.render=function(t,n,r){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),EM(r,t,{pan:Object(s["bind"])(NM.pan,this),zoom:Object(s["bind"])(NM.zoom,this),scrollMove:Object(s["bind"])(NM.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){AM(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(jx),NM={zoom:function(e,t,n,r){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=FM[t](null,[r.originX,r.originY],o,n,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/r.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return Ch(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1]?a:void 0}},pan:jM((function(e,t,n,r,i,a){var o=FM[r]([a.oldX,a.oldY],[a.newX,a.newY],t,i,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength})),scrollMove:jM((function(e,t,n,r,i,a){var o=FM[r]([0,0],[a.scrollDelta,a.scrollDelta],t,i,n);return o.signal*(e[1]-e[0])*a.scrollDelta}))};function jM(e){return function(t,n,r,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,n,r,i);return Ch(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1]?o:void 0}}}var FM={grid:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem.getRect();return e=e||[0,0],"x"===a.dim?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===n.mainType?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,n,r,i){var a=n.axis,o=i.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===a.orient?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}},zM=RM;function BM(e){qx(e),e.registerComponentModel(OM),e.registerComponentView(zM),kM(e)}var VM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Object($t["d"])(Px.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"}}}),t}(Px),GM=VM,HM=yt["a"],UM=7,WM=1,XM=30,YM=7,KM="horizontal",qM="vertical",ZM=5,$M=["line","bar","candlestick","scatter"],QM={easing:"cubicOut",duration:100},JM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return Object(v["b"])(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=Object(s["bind"])(this._onBrush,this),this._onBrushEnd=Object(s["bind"])(this._onBrushEnd,this)},t.prototype.render=function(t,n,r,i){if(e.prototype.render.apply(this,arguments),en["b"](this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){en["a"](this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new De["a"];this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get("brushSelect"),r=n?YM:0,i=this._findCoordRect(),a={width:t.getWidth(),height:t.getHeight()},o=this._orient===KM?{right:a.width-i.x-i.width,top:a.height-XM-UM-r,width:i.width,height:XM}:{right:UM,top:i.y,width:XM,height:i.height},l=Ln["f"](e.option);Object(s["each"])(["right","top","width","height"],(function(e){"ph"===l[e]&&(l[e]=o[e])}));var u=Ln["g"](l,a);this._location={x:u.x,y:u.y},this._size=[u.width,u.height],this._orient===qM&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get("inverse"),a=this._displayables.sliderGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(n!==KM||i?n===KM&&i?{scaleY:o?1:-1,scaleX:-1}:n!==qM||i?{scaleY:o?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:o?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:o?1:-1,scaleX:1});var s=e.getBoundingRect([a]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,r=e.get("brushSelect");n.add(new HM({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var i=new HM({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:Object(s["bind"])(this._onClickPanel,this)}),a=this.api.getZr();r?(i.on("mousedown",this._onBrushStart,this),i.cursor="crosshair",a.on("mousemove",this._onBrush),a.on("mouseup",this._onBrushEnd)):(a.off("mousemove",this._onBrush),a.off("mouseup",this._onBrushEnd)),n.add(i)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,n=e.series,r=n.getRawData(),i=n.getShadowDim?n.getShadowDim():e.otherDim;if(null!=i){var a=r.getDataExtent(i),o=.3*(a[1]-a[0]);a=[a[0]-o,a[1]+o];var s,l=[0,t[1]],u=[0,t[0]],c=[[t[0],0],[0,0]],h=[],d=u[1]/(r.count()-1),f=0,p=Math.round(r.count()/t[0]);r.each([i],(function(e,t){if(p>0&&t%p)f+=d;else{var n=null==e||isNaN(e)||""===e,r=n?0:Object(Ne["k"])(e,a,l,!0);n&&!s&&t?(c.push([c[c.length-1][0],0]),h.push([h[h.length-1][0],0])):!n&&s&&(c.push([f,0]),h.push([f,0])),c.push([f,r]),h.push([f,r]),f+=d,s=n}}));for(var g=this.dataZoomModel,m=0;m<3;m++){var v=y(1===m);this._displayables.sliderGroup.add(v),this._displayables.dataShadowSegs.push(v)}}}function y(e){var t=g.getModel(e?"selectedDataBackground":"dataBackground"),n=new De["a"],r=new Wi["a"]({shape:{points:c},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),i=new Fn["a"]({shape:{points:h},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,r=this.ecModel;return e.eachTargetAxis((function(i,a){var o=e.getAxisProxy(i,a).getTargetSeriesModels();Object(s["each"])(o,(function(e){if(!n&&!(!0!==t&&Object(s["indexOf"])($M,e.get("type"))<0)){var o,l=r.getComponent(Ex(i),a).axis,u=eE(i),c=e.coordinateSystem;null!=u&&c.getOtherAxis&&(o=c.getOtherAxis(l).inverse),u=e.getData().mapDimension(u),n={thisAxis:l,series:e,thisDim:i,otherDim:u,otherAxisInverse:o}}}),this)}),this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],r=t.handleLabels=[null,null],i=this._displayables.sliderGroup,a=this._size,o=this.dataZoomModel,l=this.api,u=o.get("borderRadius")||0,c=o.get("brushSelect"),h=t.filler=new HM({silent:c,style:{fill:o.get("fillerColor")},textConfig:{position:"inside"}});i.add(h),i.add(new HM({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:a[0],height:a[1],r:u},style:{stroke:o.get("dataBackgroundColor")||o.get("borderColor"),lineWidth:WM,fill:"rgba(0,0,0,0)"}})),Object(s["each"])([0,1],(function(t){var a=o.get("handleIcon");!Pe["b"][a]&&a.indexOf("path://")<0&&a.indexOf("image://")<0&&(a="path://"+a);var l=Object(Pe["a"])(a,-1,0,2,2,null,!0);l.attr({cursor:tE(this._orient),draggable:!0,drift:Object(s["bind"])(this._onDragMove,this,t),ondragend:Object(s["bind"])(this._onDragEnd,this),onmouseover:Object(s["bind"])(this._showDataInfo,this,!0),onmouseout:Object(s["bind"])(this._showDataInfo,this,!1),z2:5});var u=l.getBoundingRect(),c=o.get("handleSize");this._handleHeight=Object(Ne["o"])(c,this._size[1]),this._handleWidth=u.width/u.height*this._handleHeight,l.setStyle(o.getModel("handleStyle").getItemStyle()),l.style.strokeNoScale=!0,l.rectHover=!0,l.ensureState("emphasis").style=o.getModel(["emphasis","handleStyle"]).getItemStyle(),Object(Re["k"])(l);var h=o.get("handleColor");null!=h&&(l.style.fill=h),i.add(n[t]=l);var d=o.getModel("textStyle");e.add(r[t]=new at["a"]({silent:!0,invisible:!0,style:{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:d.getTextColor(),font:d.getFont()},z2:10}))}),this);var d=h;if(c){var f=Object(Ne["o"])(o.get("moveHandleSize"),a[1]),p=t.moveHandle=new yt["a"]({style:o.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:a[1]-.5,height:f}}),g=.8*f,m=t.moveHandleIcon=Object(Pe["a"])(o.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);m.silent=!0,m.y=a[1]+f/2-.5,p.ensureState("emphasis").style=o.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var v=Math.min(a[1]/2,Math.max(f,10));d=t.moveZone=new yt["a"]({invisible:!0,shape:{y:a[1]-v,height:f+v}}),d.on("mouseover",(function(){l.enterEmphasis(p)})).on("mouseout",(function(){l.leaveEmphasis(p)})),i.add(p),i.add(m),i.add(d)}d.attr({draggable:!0,cursor:tE(this._orient),drift:Object(s["bind"])(this._onDragMove,this,"all"),ondragstart:Object(s["bind"])(this._showDataInfo,this,!0),ondragend:Object(s["bind"])(this._onDragEnd,this),onmouseover:Object(s["bind"])(this._showDataInfo,this,!0),onmouseout:Object(s["bind"])(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[Object(Ne["k"])(e[0],[0,100],t,!0),Object(Ne["k"])(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),a=n.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];Ch(t,r,i,n.get("zoomLock")?"all":e,null!=a.minSpan?Object(Ne["k"])(a.minSpan,o,i,!0):null,null!=a.maxSpan?Object(Ne["k"])(a.maxSpan,o,i,!0):null);var s=this._range,l=this._range=Object(Ne["b"])([Object(Ne["k"])(r[0],i,o,!0),Object(Ne["k"])(r[1],i,o,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,r=Object(Ne["b"])(n.slice()),i=this._size;Object(s["each"])([0,1],(function(e){var r=t.handles[e],a=this._handleHeight;r.attr({scaleX:a/2,scaleY:a/2,x:n[e]+(e?-1:1),y:i[1]/2-a/2})}),this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var a={x:r[0],width:r[1]-r[0]};t.moveHandle&&(t.moveHandle.setShape(a),t.moveZone.setShape(a),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr("x",a.x+a.width/2));for(var o=t.dataShadowSegs,l=[0,r[0],r[1],i[0]],u=0;u<o.length;u++){var c=o[u],h=c.getClipPath();h||(h=new yt["a"],c.setClipPath(h)),h.setShape({x:l[u],y:0,width:l[u+1]-l[u],height:i[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,r=n.handleLabels,i=this._orient,a=["",""];if(t.get("showDetail")){var o=t.findRepresentativeAxisProxy();if(o){var s=o.getAxisModel().axis,l=this._range,u=e?o.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:o.getDataValueWindow();a=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var c=Object(Ne["b"])(this._handleEnds.slice());function h(e){var t=Le["getTransform"](n.handles[e].parent,this.group),o=Le["transformDirection"](0===e?"right":"left",t),s=this._handleWidth/2+ZM,l=Le["applyTransform"]([c[e]+(0===e?-s:s),this._size[1]/2],t);r[e].setStyle({x:l[0],y:l[1],verticalAlign:i===KM?"middle":o,align:i===KM?o:"center",text:a[e]})}h.call(this,0),h.call(this,1)},t.prototype._formatLabel=function(e,t){var n=this.dataZoomModel,r=n.get("labelFormatter"),i=n.get("labelPrecision");null!=i&&"auto"!==i||(i=t.getPixelPrecision());var a=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(i,20));return Object(s["isFunction"])(r)?r(e,a):Object(s["isString"])(r)?r.replace("{value}",a):a},t.prototype._showDataInfo=function(e){e=this._dragging||e;var t=this._displayables,n=t.handleLabels;n[0].attr("invisible",!e),n[1].attr("invisible",!e),t.moveHandle&&this.api[e?"enterEmphasis":"leaveEmphasis"](t.moveHandle,1)},t.prototype._onDragMove=function(e,t,n,r){this._dragging=!0,ma["g"](r.event);var i=this._displayables.sliderGroup.getLocalTransform(),a=Le["applyTransform"]([t,n],i,!0),o=this._updateInterval(e,a[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),o&&s&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var t=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,a=this._updateInterval("all",n[0]-i);this._updateView(),a&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new zn["a"](t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr("ignore",!0);var n=t.shape,r=+new Date;if(!(r-this._brushStartTime<200&&Math.abs(n.width)<5)){var i=this._getViewExtent(),a=[0,100];this._range=Object(Ne["b"])([Object(Ne["k"])(n.x,i,a,!0),Object(Ne["k"])(n.x+n.width,i,a,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(ma["g"](e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new HM({silent:!0,style:r.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(i)),i.attr("ignore",!1);var a=this._brushStart,o=this._displayables.sliderGroup,s=o.transformCoordToLocal(e,t),l=o.transformCoordToLocal(a.x,a.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]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?QM:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=Cx(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var r=this.api.getWidth(),i=this.api.getHeight();e={x:.2*r,y:.2*i,width:.6*r,height:.6*i}}return e},t.type="dataZoom.slider",t}(jx);function eE(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function tE(e){return"vertical"===e?"ns-resize":"ew-resize"}var nE=JM;function rE(e){e.registerComponentModel(GM),e.registerComponentView(nE),qx(e)}function iE(e){Object(r["a"])(BM),Object(r["a"])(rE)}var aE={get:function(e,t,n){var r=s["clone"]((oE[e]||{})[t]);return n&&s["isArray"](r)?r[r.length-1]:r}},oE={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]}},sE=aE,lE=Bl.mapVisual,uE=Bl.eachVisual,cE=s["isArray"],hE=s["each"],dE=Ne["b"],fE=Ne["k"],pE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.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 Object(v["b"])(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;ub["a"].canvasSupported||(n.realtime=!1),!t&&QS(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=s["bind"](e,this),this.controllerVisuals=$S(this.option.controller,t,e),this.targetVisuals=$S(this.option.target,t,e)},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,t=[];return null==e||"all"===e?this.ecModel.eachSeries((function(e,n){t.push(n)})):t=ot["r"](e),t},t.prototype.eachTargetSeries=function(e,t){s["each"](this.getTargetSeriesIndices(),(function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)}),this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries((function(n){n===e&&(t=!0)})),t},t.prototype.formatValueText=function(e,t,n){var r,i=this.option,a=i.precision,o=this.dataBound,l=i.formatter;n=n||["<",">"],s["isArray"](e)&&(e=e.slice(),r=!0);var u=t?e:r?[c(e[0]),c(e[1])]:c(e);return s["isString"](l)?l.replace("{value}",r?u[0]:u).replace("{value2}",r?u[1]:u):s["isFunction"](l)?r?l(e[0],e[1]):l(e):r?e[0]===o[0]?n[0]+" "+u[1]:e[1]===o[1]?n[1]+" "+u[0]:u[0]+" - "+u[1]:u;function c(e){return e===o[0]?"min":e===o[1]?"max":(+e).toFixed(Math.min(a,20))}},t.prototype.resetExtent=function(){var e=this.option,t=dE([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimension=function(e){var t=this.option.dimension,n=e.dimensions;if(null!=t||n.length){if(null!=t)return e.getDimension(t);for(var r=e.dimensions,i=r.length-1;i>=0;i--){var a=r[i],o=e.getDimensionInfo(a);if(!o.isCalculationCoord)return a}}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||(t.target={}),i=t.controller||(t.controller={});s["merge"](r,n),s["merge"](i,n);var a=this.isCategory();function o(n){cE(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get("gradientColor")}}function l(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},hE(r,(function(e,t){if(Bl.isValidType(t)){var n=sE.get(t,"inactive",a);null!=n&&(i[t]=n,"color"!==t||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}})))}function u(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get("inactiveColor");hE(this.stateList,(function(i){var o=this.itemSize,l=e[i];l||(l=e[i]={color:a?r:[r]}),null==l.symbol&&(l.symbol=t&&s["clone"](t)||(a?"roundRect":["roundRect"])),null==l.symbolSize&&(l.symbolSize=n&&s["clone"](n)||(a?o[0]:[o[0],o[0]])),l.symbol=lE(l.symbol,(function(e){return"none"===e||"square"===e?"roundRect":e}));var u=l.symbolSize;if(null!=u){var c=-1/0;uE(u,(function(e){e>c&&(c=e)})),l.symbolSize=lE(u,(function(e){return fE(e,[0,c],[0,o[0]],!0)}))}}),this)}o.call(this,r),o.call(this,i),l.call(this,r,"inRange","outOfRange"),u.call(this,i)},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,zlevel: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"}},t}(vr["a"]),gE=pE,mE=[20,140],vE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()})),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(null==t[0]||isNaN(t[0]))&&(t[0]=mE[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=mE[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):s["isArray"](t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),s["each"](this.stateList,(function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)}),this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=Ne["b"]((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},t.prototype.getValueState=function(e){var t=this.option.range,n=this.getExtent();return(t[0]<=n[0]||t[0]<=e)&&(t[1]>=n[1]||e<=t[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries((function(n){var r=[],i=n.getData();i.each(this.getDataDimension(i),(function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)}),this),t.push({seriesId:n.id,dataIndex:r})}),this),t},t.prototype.getVisualMeta=function(e){var t=yE(this,"outOfRange",this.getExtent()),n=yE(this,"inRange",this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var a=0,o=0,s=n.length,l=t.length;o<l&&(!n.length||t[o]<=n[0]);o++)t[o]<n[a]&&i(t[o],"outOfRange");for(var u=1;a<s;a++,u=0)u&&r.length&&i(n[a],"outOfRange"),i(n[a],"inRange");for(u=1;o<l;o++)(!n.length||n[n.length-1]<t[o])&&(u&&(r.length&&i(r[r.length-1].value,"outOfRange"),u=0),i(t[o],"outOfRange"));var c=r.length;return{stops:r,outerColors:[c?r[0].color:"transparent",c?r[c-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=Object($t["d"])(gE.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(gE);function yE(e,t,n){if(n[0]===n[1])return n.slice();for(var r=200,i=(n[1]-n[0])/r,a=n[0],o=[],s=0;s<=r&&a<n[1];s++)o.push(a),a+=i;return o.push(n[1]),o}var bE=vE,_E=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return Object(v["b"])(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,n,r){this.visualMapModel=e,!1!==e.get("show")?this.doRender(e,t,n,r):this.group.removeAll()},t.prototype.renderBackground=function(e){var t=this.visualMapModel,n=Tt["j"](t.get("padding")||0),r=e.getBoundingRect();e.add(new yt["a"]({z2:-1,silent:!0,shape:{x:r.x-n[3],y:r.y-n[0],width:r.width+n[3]+n[1],height:r.height+n[0]+n[2]},style:{fill:t.get("backgroundColor"),stroke:t.get("borderColor"),lineWidth:t.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,t,n){n=n||{};var r=n.forceState,i=this.visualMapModel,a={};if("symbol"===t&&(a.symbol=i.get("itemSymbol")),"color"===t){var o=i.get("contentColor");a.color=o}function l(e){return a[e]}function u(e,t){a[e]=t}var c=i.controllerVisuals[r||i.getValueState(e)],h=Bl.prepareVisualTypes(c);return s["each"](h,(function(r){var i=c[r];n.convertOpacityToAlpha&&"opacity"===r&&(r="colorAlpha",i=c.__alphaForOpacity),Bl.dependsOn(r,t)&&i&&i.applyVisual(e,l,u)})),a[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api;Ln["i"](e,t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},t.prototype.doRender=function(e,t,n,r){},t.type="visualMap",t}(mr["a"]),xE=_E,wE=[["left","right","width"],["top","bottom","height"]];function SE(e,t,n){var r=e.option,i=r.align;if(null!=i&&"auto"!==i)return i;for(var a={width:t.getWidth(),height:t.getHeight()},o="horizontal"===r.orient?1:0,s=wE[o],l=[0,null,10],u={},c=0;c<3;c++)u[wE[1-o][c]]=l[c],u[s[c]]=2===c?n[0]:r[s[c]];var h=[["x","width",3],["y","height",0]][o],d=Object(Ln["g"])(u,a,r.padding);return s[(d.margin[h[2]]||0)+d[h[0]]+.5*d[h[1]]<.5*a[h[1]]?0:1]}function TE(e,t){return s["each"](e||[],(function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")})),e}var OE=Ne["k"],ME=s["each"],EE=Math.min,AE=Math.max,CE=12,IE=6,DE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return Object(v["b"])(t,e),t.prototype.doRender=function(e,t,n,r){this._api=n,r&&"selectDataRange"===r.type&&r.from===this.uid||this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(t);var n=e.get("text");this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},t.prototype._renderEndsText=function(e,t,n){if(t){var r=t[1-n];r=null!=r?r+"":"";var i=this.visualMapModel,a=i.get("textGap"),o=i.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([o[0]/2,0===n?-a:o[1]+a],s),u=this._applyTransform(0===n?"bottom":"top",s),c=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new at["a"]({style:{x:l[0],y:l[1],verticalAlign:"horizontal"===c?"middle":u,align:"horizontal"===c?u:"center",text:r,font:h.getFont(),fill:h.getTextColor()}}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,r=t.itemSize,i=this._orient,a=this._useHandle,o=SE(t,this.api,r),l=n.mainGroup=this._createBarGroup(o),u=new De["a"];l.add(u),u.add(n.outOfRange=LE()),u.add(n.inRange=LE(null,a?RE(this._orient):null,s["bind"](this._dragHandle,this,"all",!1),s["bind"](this._dragHandle,this,"all",!0))),u.setClipPath(new yt["a"]({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var c=t.textStyleModel.getTextRect("\u56fd"),h=AE(c.width,c.height);a&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,l,0,r,h,i),this._createHandle(t,l,1,r,h,i)),this._createIndicator(t,l,r,h,i),e.add(l)},t.prototype._createHandle=function(e,t,n,r,i,a){var o=s["bind"](this._dragHandle,this,n,!1),l=s["bind"](this._dragHandle,this,n,!0),u=Object(y["h"])(e.get("handleSize"),r[0]),c=Object(Pe["a"])(e.get("handleIcon"),-u/2,-u/2,u,u,null,!0),h=RE(this._orient);c.attr({cursor:h,draggable:!0,drift:o,ondragend:l,onmousemove:function(e){ma["g"](e.event)}}),c.x=r[0]/2,c.useStyle(e.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),Object(Re["A"])(c,!0),t.add(c);var d=this.visualMapModel.textStyleModel,f=new at["a"]({cursor:h,draggable:!0,drift:o,onmousemove:function(e){ma["g"](e.event)},ondragend:l,style:{x:0,y:0,text:"",font:d.getFont(),fill:d.getTextColor()}});f.ensureState("blur").style={opacity:.1},f.stateTransition={duration:200},this.group.add(f);var p=[u,0],g=this._shapes;g.handleThumbs[n]=c,g.handleLabelPoints[n]=p,g.handleLabels[n]=f},t.prototype._createIndicator=function(e,t,n,r,i){var a=Object(y["h"])(e.get("indicatorSize"),n[0]),o=Object(Pe["a"])(e.get("indicatorIcon"),-a/2,-a/2,a,a,null,!0);o.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var l=e.getModel("indicatorStyle").getItemStyle();if(o instanceof u["a"]){var c=o.style;o.useStyle(s["extend"]({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},l))}else o.useStyle(l);t.add(o);var h=this.visualMapModel.textStyleModel,d=new at["a"]({silent:!0,invisible:!0,style:{x:0,y:0,text:"",font:h.getFont(),fill:h.getTextColor()}});this.group.add(d);var f=[("horizontal"===i?r/2:IE)+n[0]/2,0],p=this._shapes;p.indicator=o,p.indicatorLabel=d,p.indicatorLabelPoint=f,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,n,r){if(this._useHandle){if(this._dragging=!t,!t){var i=this._applyTransform([n,r],this._shapes.mainGroup,!0);this._updateInterval(e,i[1]),this._hideIndicator(),this._updateView()}t===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():kE(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),r=[0,e.itemSize[1]];this._handleEnds=[OE(t[0],n,r,!0),OE(t[1],n,r,!0)]},t.prototype._updateInterval=function(e,t){t=t||0;var n=this.visualMapModel,r=this._handleEnds,i=[0,n.itemSize[1]];Ch(t,r,i,e,0);var a=n.getExtent();this._dataInterval=[OE(r[0],i,a,!0),OE(r[1],i,a,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),r=this._shapes,i=[0,t.itemSize[1]],a=e?i:this._handleEnds,o=this._createBarVisual(this._dataInterval,n,a,"inRange"),s=this._createBarVisual(n,n,i,"outOfRange");r.inRange.setStyle({fill:o.barColor}).setShape("points",o.barPoints),r.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(a,o)},t.prototype._createBarVisual=function(e,t,n,r){var i={forceState:r,convertOpacityToAlpha:!0},a=this._makeColorGradient(e,i),o=[this.getControllerVisual(e[0],"symbolSize",i),this.getControllerVisual(e[1],"symbolSize",i)],s=this._createBarPoints(n,o);return{barColor:new it["a"](0,0,0,1,a),barPoints:s,handlesColor:[a[0].color,a[a.length-1].color]}},t.prototype._makeColorGradient=function(e,t){var n=100,r=[],i=(e[1]-e[0])/n;r.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var a=1;a<n;a++){var o=e[0]+i*a;if(o>e[1])break;r.push({color:this.getControllerVisual(o,"color",t),offset:a/n})}return r.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),r},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new De["a"]("horizontal"!==t||n?"horizontal"===t&&n?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==t||n?{scaleX:"left"===e?1:-1}:{scaleX:"left"===e?1:-1,scaleY:-1}:{scaleX:"bottom"===e?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,a=n.handleLabels,o=r.itemSize,s=r.getExtent();ME([0,1],(function(l){var u=i[l];u.setStyle("fill",t.handlesColor[l]),u.y=e[l];var c=OE(e[l],[0,o[1]],s,!0),h=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=h/o[0],u.x=o[0]-h/2;var d=Le["applyTransform"](n.handleLabelPoints[l],Le["getTransform"](u,this.group));a[l].setStyle({x:d[0],y:d[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,a=i.getExtent(),o=i.itemSize,s=[0,o[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c={convertOpacityToAlpha:!0},h=this.getControllerVisual(e,"color",c),d=this.getControllerVisual(e,"symbolSize"),f=OE(e,a,s,!0),p=o[0]-d/2,g={x:u.x,y:u.y};u.y=f,u.x=p;var m=Le["applyTransform"](l.indicatorLabelPoint,Le["getTransform"](u,this.group)),v=l.indicatorLabel;v.attr("invisible",!1);var y=this._applyTransform("left",l.mainGroup),b=this._orient,_="horizontal"===b;v.setStyle({text:(n||"")+i.formatValueText(t),verticalAlign:_?y:"middle",align:_?"center":y});var x={x:p,y:f,style:{fill:h}},w={style:{x:m[0],y:m[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var S={duration:100,easing:"cubicInOut",additive:!0};u.x=g.x,u.y=g.y,u.animateTo(x,S),v.animateTo(w,S)}else u.attr(x),v.attr(w);this._firstShowIndicator=!1;var T=this._shapes.handleLabels;if(T)for(var O=0;O<T.length;O++)this._api.enterBlur(T[O])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",(function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,r=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);r[1]=EE(AE(0,r[1]),n[1]),e._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=n[0])}})).on("mouseout",(function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()}))},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,t){var n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var i=[0,r[1]],a=n.getExtent();e=EE(AE(i[0],e),i[1]);var o=PE(n,a,i),s=[e-o,e+o],l=OE(e,i,a,!0),u=[OE(s[0],i,a,!0),OE(s[1],i,a,!0)];s[0]<i[0]&&(u[0]=-1/0),s[1]>i[1]&&(u[1]=1/0),t&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",o):u[1]===1/0?this._showIndicator(l,u[0],"> ",o):this._showIndicator(l,l,"\u2248 ",o));var c=this._hoverLinkDataIndices,h=[];(t||kE(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var d=ot["d"](c,h);this._dispatchHighDown("downplay",TE(d[0],n)),this._dispatchHighDown("highlight",TE(d[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t=e.target,n=this.visualMapModel;if(t&&null!=Object(ke["a"])(t).dataIndex){var r=Object(ke["a"])(t),i=this.ecModel.getSeriesByIndex(r.seriesIndex);if(n.isTargetSeries(i)){var a=i.getData(r.dataType),o=a.get(n.getDataDimension(a),r.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n<t.length;n++)this._api.leaveBlur(t[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",TE(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,t,n,r){var i=Le["getTransform"](t,r?null:this.group);return s["isArray"](e)?Le["applyTransform"](e,i,n):Le["transformDirection"](e,i,n)},t.prototype._dispatchHighDown=function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(xE);function LE(e,t,n,r){return new Wi["a"]({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){ma["g"](e.event)},ondragend:r})}function PE(e,t,n){var r=CE/2,i=e.get("hoverLinkDataSize");return i&&(r=OE(i,t,n,!0)/2),r}function kE(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function RE(e){return"vertical"===e?"ns-resize":"ew-resize"}var NE=DE,jE={type:"selectDataRange",event:"dataRangeSelected",update:"update"},FE=function(e,t){t.eachComponent({mainType:"visualMap",query:e},(function(t){t.setSelected(e.selected)}))},zE=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent("visualMap",(function(t){var r=e.pipelineContext;!t.isTargetSeries(e)||r&&r.large||n.push(eT(t.stateList,t.targetVisuals,s["bind"](t.getValueState,t),t.getDataDimension(e.getData())))})),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),r=[];t.eachComponent("visualMap",(function(t){if(t.isTargetSeries(e)){var i=t.getVisualMeta(s["bind"](BE,null,e,t))||{stops:[],outerColors:[]},a=t.getDataDimension(n),o=n.getDimensionInfo(a);null!=o&&(i.dimension=o.index,r.push(i))}})),e.getData().setVisual("visualMeta",r)}}];function BE(e,t,n,r){for(var i=t.targetVisuals[r],a=Bl.prepareVisualTypes(i),o={color:Object(KS["b"])(e.getData(),"color")},s=0,l=a.length;s<l;s++){var u=a[s],c=i["opacity"===u?"__alphaForOpacity":u];c&&c.applyVisual(n,h,d)}return o.color;function h(e){return o[e]}function d(e,t){o[e]=t}}var VE=s["each"];function GE(e){var t=e&&e.visualMap;s["isArray"](t)||(t=t?[t]:[]),VE(t,(function(e){if(e){HE(e,"splitList")&&!HE(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&s["isArray"](t)&&VE(t,(function(e){s["isObject"](e)&&(HE(e,"start")&&!HE(e,"min")&&(e.min=e.start),HE(e,"end")&&!HE(e,"max")&&(e.max=e.end))}))}}))}function HE(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var UE=!1;function WE(e){UE||(UE=!0,e.registerSubTypeDefaulter("visualMap",(function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"})),e.registerAction(jE,FE),Object(s["each"])(zE,(function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)})),e.registerPreprocessor(GE))}function XE(e){e.registerComponentModel(bE),e.registerComponentView(NE),WE(e)}var YE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return Object(v["b"])(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],KE[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual((function(e,t){"categories"===r?(e.mappingMethod="category",e.categories=s["clone"](i)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=s["map"](this._pieceList,(function(e){return e=s["clone"](e),"inRange"!==t&&(e.visual=null),e})))}))},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=Bl.listVisualTypes(),i=this.isCategory();function a(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}s["each"](t.pieces,(function(e){s["each"](r,(function(t){e.hasOwnProperty(t)&&(n[t]=1)}))})),s["each"](n,(function(e,n){var r=!1;s["each"](this.stateList,(function(e){r=r||a(t,e,n)||a(t.target,e,n)}),this),!r&&s["each"](this.stateList,(function(e){(t[e]||(t[e]={}))[n]=sE.get(n,"inRange"===e?"active":"inactive",i)}))}),this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,s["each"](r,(function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)}),this),"single"===n.selectedMode){var a=!1;s["each"](r,(function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(a?i[n]=!1:a=!0)}),this)}},t.prototype.getSelectedMapKey=function(e){return"categories"===this._mode?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=s["clone"](e)},t.prototype.getValueState=function(e){var t=Bl.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries((function(r){var i=[],a=r.getData();a.each(this.getDataDimension(a),(function(t,r){var a=Bl.findPieceIndex(t,n);a===e&&i.push(r)}),this),t.push({seriesId:r.id,dataIndex:i})}),this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var t=[],n=["",""],r=this,i=this._pieceList.slice();if(i.length){var a=i[0].interval[0];a!==-1/0&&i.unshift({interval:[-1/0,a]}),a=i[i.length-1].interval[1],a!==1/0&&i.push({interval:[a,1/0]})}else i.push({interval:[-1/0,1/0]});var o=-1/0;return s["each"](i,(function(e){var t=e.interval;t&&(t[0]>o&&l([o,t[0]],"outOfRange"),l(t.slice()),o=t[1])}),this),{stops:t,outerColors:n}}function l(i,a){var o=r.getRepresentValue({interval:i});a||(a=r.getValueState(o));var s=e(o,a);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}},t.type="visualMap.piecewise",t.defaultOption=Object($t["d"])(gE.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}),t}(gE),KE={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;var a=(r[1]-r[0])/i;while(+a.toFixed(n)!==a&&n<5)n++;t.precision=n,a=+a.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,l=r[0];o<i;l+=a,o++){var u=o===i-1?r[1]:l+a;e.push({interval:[l,u],close:[1,1]})}t.maxOpen&&e.push({interval:[r[1],1/0],close:[0,0]}),Object(Ne["s"])(e),s["each"](e,(function(e,t){e.index=t,e.text=this.formatValueText(e.interval)}),this)},categories:function(e){var t=this.option;s["each"](t.categories,(function(t){e.push({text:this.formatValueText(t,!0),value:t})}),this),qE(t,e)},pieces:function(e){var t=this.option;s["each"](t.pieces,(function(t,n){s["isObject"](t)||(t={value:t});var r={text:"",index:n};if(null!=t.label&&(r.text=t.label),t.hasOwnProperty("value")){var i=r.value=t.value;r.interval=[i,i],r.close=[1,1]}else{for(var a=r.interval=[],o=r.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],h=0;h<2;h++){for(var d=[["gte","gt","min"],["lte","lt","max"]][h],f=0;f<3&&null==a[h];f++)a[h]=t[d[f]],o[h]=l[f],c[h]=2===f;null==a[h]&&(a[h]=u[h])}c[0]&&a[1]===1/0&&(o[0]=0),c[1]&&a[0]===-1/0&&(o[1]=0),a[0]===a[1]&&o[0]&&o[1]&&(r.value=a[0])}r.visual=Bl.retrieveVisuals(t),e.push(r)}),this),qE(t,e),Object(Ne["s"])(e),s["each"](e,(function(e){var t=e.close,n=[["<","\u2264"][t[1]],[">","\u2265"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)}),this)}};function qE(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}var ZE=YE,$E=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(v["b"])(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),r=t.textStyleModel,i=r.getFont(),a=r.getTextColor(),o=this._getItemAlign(),l=t.itemSize,u=this._getViewData(),c=u.endsText,h=s["retrieve"](t.get("showLabel",!0),!c);c&&this._renderEndsText(e,c[0],l,h,o),s["each"](u.viewPieceList,(function(r){var u=r.piece,c=new De["a"];c.onclick=s["bind"](this._onItemClick,this,u),this._enableHoverLink(c,r.indexInModelPieceList);var d=t.getRepresentValue(u);if(this._createItemSymbol(c,d,[0,0,l[0],l[1]]),h){var f=this.visualMapModel.getValueState(d);c.add(new at["a"]({style:{x:"right"===o?-n:l[0]+n,y:l[1]/2,text:u.text,verticalAlign:"middle",align:o,font:i,fill:a,opacity:"outOfRange"===f?.5:1}}))}e.add(c)}),this),c&&this._renderEndsText(e,c[1],l,h,o),Ln["b"](t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on("mouseover",(function(){return r("highlight")})).on("mouseout",(function(){return r("downplay")}));var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:TE(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return SE(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var a=new De["a"],o=this.visualMapModel.textStyleModel;a.add(new at["a"]({style:{x:r?"right"===i?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:r?i:"center",text:t,font:o.getFont(),fill:o.getTextColor()}})),e.add(a)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=s["map"](e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),n=e.get("text"),r=e.get("orient"),i=e.get("inverse");return("horizontal"===r?i:!i)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n){e.add(Object(Pe["a"])(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color")))},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=s["clone"](n.selected),i=t.getSelectedMapKey(e);"single"===n.selectedMode?(r[i]=!0,s["each"](r,(function(e,t){r[t]=t===i}))):r[i]=!r[i],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})},t.type="visualMap.piecewise",t}(xE),QE=$E;function JE(e){e.registerComponentModel(ZE),e.registerComponentView(QE),WE(e)}function eA(e){Object(r["a"])(XE),Object(r["a"])(JE)}var tA={label:{enabled:!0},decal:{show:!1}},nA=Object(ot["o"])(),rA={};function iA(e,t){var n=e.getModel("aria");if(n.get("enabled")){var r=s["clone"](tA);s["merge"](r.label,e.getLocaleModel().get("aria"),!1),s["merge"](n.option,r,!1),i(),a()}function i(){var t=n.getModel("decal"),r=t.get("show");if(r){var i=s["createHashMap"]();e.eachSeries((function(e){if(e.useColorPaletteOnData){var t=i.get(e.type);t||(t={},i.set(e.type,t)),nA(e).scope=t}})),e.eachRawSeries((function(t){if(!e.isSeriesFiltered(t))if("function"!==typeof t.enableAriaDecal){var n=t.getData();if(t.useColorPaletteOnData){var r=t.getRawData(),i={},a=nA(t).scope;n.each((function(e){var t=n.getRawIndex(e);i[t]=e}));var o=r.count();r.each((function(e){var s=i[e],l=r.getName(e)||e+"",u=Object(Hs["b"])(t.ecModel,l,a,o),h=n.getItemVisual(s,"decal");n.setItemVisual(s,"decal",c(h,u))}))}else{var l=Object(Hs["b"])(t.ecModel,t.name,rA,e.getSeriesCount()),u=n.getVisual("decal");n.setVisual("decal",c(u,l))}}else t.enableAriaDecal();function c(e,t){var n=e?s["extend"](s["extend"]({},t),e):t;return n.dirty=!0,n}}))}}function a(){var r=e.getLocaleModel().get("aria"),i=n.getModel("label");if(i.option=s["defaults"](i.option,r),i.get("enabled")){var a=t.getZr().dom;if(i.get("description"))a.setAttribute("aria-label",i.get("description"));else{var c,h=e.getSeriesCount(),d=i.get(["data","maxCount"])||10,f=i.get(["series","maxCount"])||10,p=Math.min(h,f);if(!(h<1)){var g=l();if(g){var m=i.get(["general","withTitle"]);c=o(m,{title:g})}else c=i.get(["general","withoutTitle"]);var v=[],y=h>1?i.get(["series","multiple","prefix"]):i.get(["series","single","prefix"]);c+=o(y,{seriesCount:h}),e.eachSeries((function(e,t){if(t<p){var n=void 0,r=e.get("name"),a=r?"withName":"withoutName";n=h>1?i.get(["series","multiple",a]):i.get(["series","single",a]),n=o(n,{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:u(e.subType)});var s=e.getData();if(s.count()>d){var l=i.get(["data","partialData"]);n+=o(l,{displayCnt:d})}else n+=i.get(["data","allData"]);for(var c=[],f=0;f<s.count();f++)if(f<d){var g=s.getName(f),m=Object(je["e"])(s,f),y=i.get(["data",g?"withName":"withoutName"]);c.push(o(y,{name:g,value:m}))}var b=i.get(["data","separator","middle"]),_=i.get(["data","separator","end"]);n+=c.join(b)+_,v.push(n)}}));var b=i.getModel(["series","multiple","separator"]),_=b.get("middle"),x=b.get("end");c+=v.join(_)+x,a.setAttribute("aria-label",c)}}}}function o(e,t){if("string"!==typeof e)return e;var n=e;return s["each"](t,(function(e,t){n=n.replace(new RegExp("\\{\\s*"+t+"\\s*\\}","g"),e)})),n}function l(){var t=e.get("title");return t&&t.length&&(t=t[0]),t&&t.text}function u(t){return e.getLocaleModel().get(["series","typeNames"])[t]||"\u81ea\u5b9a\u4e49\u56fe"}}function aA(e){if(e&&e.aria){var t=e.aria;null!=t.show&&(t.enabled=t.show),t.label=t.label||{},s["each"](["description","general","series","data"],(function(e){null!=t[e]&&(t.label[e]=t[e])}))}}function oA(e){e.registerPreprocessor(aA),e.registerVisual(e.PRIORITY.VISUAL.ARIA,iA)}var sA=n("IpVE"),lA={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},uA=function(){function e(e){var t=this._condVal=Object(s["isString"])(e)?new RegExp(e):Object(s["isRegExp"])(e)?e:null;if(null==t){var n="";0,Object(rp["b"])(n)}}return e.prototype.evaluate=function(e){var t=typeof e;return"string"===t?this._condVal.test(e):"number"===t&&this._condVal.test(e+"")},e}(),cA=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),hA=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},e}(),dA=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},e}(),fA=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),pA=function(){function e(){}return e.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,n=t(this.valueGetterParam),r=e?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?r:n))return!1;return!0},e}();function gA(e,t){if(!0===e||!1===e){var n=new cA;return n.value=e,n}var r="";return bA(e)||Object(rp["b"])(r),e.and?mA("and",e,t):e.or?mA("or",e,t):e.not?vA(e,t):yA(e,t)}function mA(e,t,n){var r=t[e],i="";Object(s["isArray"])(r)||Object(rp["b"])(i),r.length||Object(rp["b"])(i);var a="and"===e?new hA:new dA;return a.children=Object(s["map"])(r,(function(e){return gA(e,n)})),a.children.length||Object(rp["b"])(i),a}function vA(e,t){var n=e.not,r="";bA(n)||Object(rp["b"])(r);var i=new fA;return i.child=gA(n,t),i.child||Object(rp["b"])(r),i}function yA(e,t){for(var n="",r=t.prepareGetValue(e),i=[],a=Object(s["keys"])(e),o=e.parser,l=o?Object(sA["c"])(o):null,u=0;u<a.length;u++){var c=a[u];if("parser"!==c&&!t.valueGetterAttrMap.get(c)){var h=Object(s["hasOwn"])(lA,c)?lA[c]:c,d=e[c],f=l?l(d):d,p=Object(sA["b"])(h,f)||"reg"===h&&new uA(f);p||Object(rp["b"])(n),i.push(p)}}i.length||Object(rp["b"])(n);var g=new pA;return g.valueGetterParam=r,g.valueParser=l,g.getValue=t.getValue,g.subCondList=i,g}function bA(e){return Object(s["isObject"])(e)&&!Object(s["isArrayLike"])(e)}var _A=function(){function e(e,t){this._cond=gA(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function xA(e,t){return new _A(e,t)}var wA={type:"echarts:filter",transform:function(e){for(var t,n=e.upstream,r=xA(e.config,{valueGetterAttrMap:Object(s["createHashMap"])({dimension:!0}),prepareGetValue:function(e){var t="",r=e.dimension;Object(s["hasOwn"])(e,"dimension")||Object(rp["b"])(t);var i=n.getDimensionInfo(r);return i||Object(rp["b"])(t),{dimIdx:i.index}},getValue:function(e){return n.retrieveValueFromItem(t,e.dimIdx)}}),i=[],a=0,o=n.count();a<o;a++)t=n.getRawDataItem(a),r.evaluate()&&i.push(t);return{data:i}}};var SA={type:"echarts:sort",transform:function(e){var t=e.upstream,n=e.config,r="",i=Object(ot["r"])(n);i.length||Object(rp["b"])(r);var a=[];Object(s["each"])(i,(function(e){var n=e.dimension,i=e.order,o=e.parser,s=e.incomparable;if(null==n&&Object(rp["b"])(r),"asc"!==i&&"desc"!==i&&Object(rp["b"])(r),s&&"min"!==s&&"max"!==s){var l="";0,Object(rp["b"])(l)}if("asc"!==i&&"desc"!==i){var u="";0,Object(rp["b"])(u)}var c=t.getDimensionInfo(n);c||Object(rp["b"])(r);var h=o?Object(sA["c"])(o):null;o&&!h&&Object(rp["b"])(r),a.push({dimIdx:c.index,parser:h,comparator:new sA["a"](i,s)})}));var o=t.sourceFormat;o!==ip["c"]&&o!==ip["e"]&&Object(rp["b"])(r);for(var l=[],u=0,c=t.count();u<c;u++)l.push(t.getRawDataItem(u));return l.sort((function(e,n){for(var r=0;r<a.length;r++){var i=a[r],o=t.retrieveValueFromItem(e,i.dimIdx),s=t.retrieveValueFromItem(n,i.dimIdx);i.parser&&(o=i.parser(o),s=i.parser(s));var l=i.comparator.evaluate(o,s);if(0!==l)return l}return 0})),{data:l}}};function TA(e){e.registerTransform(wA),e.registerTransform(SA)}var OA=n("eMAo");Object(r["a"])([a["a"]]),Object(r["a"])([Me]),Object(r["a"])([Yt,In,ar,Bi,pa,$o,Rs,yu,Lc,Hc,eh,of,Ff,op,kp,Up,gg,Mg,nm,dm,Dm,Ny]),Object(r["a"])(Rb),Object(r["a"])(M_),Object(r["a"])(Zo),Object(r["a"])($_),Object(r["a"])(af),Object(r["a"])(ux),Object(r["a"])(Sx),Object(r["a"])(uS),Object(r["a"])(US),Object(r["a"])(kb),Object(r["a"])(MT),Object(r["a"])(CT),Object(r["a"])(eO),Object(r["a"])(TO),Object(r["a"])(NO),Object(r["a"])(qO),Object(r["a"])(SM),Object(r["a"])(iE),Object(r["a"])(BM),Object(r["a"])(rE),Object(r["a"])(eA),Object(r["a"])(XE),Object(r["a"])(JE),Object(r["a"])(oA),Object(r["a"])(TA),Object(r["a"])(OA["a"])},PBBb:function(e,t,n){"use strict";var r=n("Xf1w").forEach,i=n("1+Eb"),a=n("/5yA"),o=i("forEach"),s=a("forEach");e.exports=o&&s?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},PF9H:function(e,t,n){var r=n("HIsA"),i=n("Rkte"),a=n("kes9");r({target:"Math",stat:!0},{fscale:function(e,t,n,r,o){return a(i(e,t,n,r,o))}})},PJ1B:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSensor=void 0;var r=a(n("5M8n")),i=n("MPYE");function a(e){return e&&e.__esModule?e:{default:e}}var o=function(e){var t=void 0,n=[],a=function(){"static"===getComputedStyle(e).position&&(e.style.position="relative");var t=document.createElement("object");return t.onload=function(){t.contentDocument.defaultView.addEventListener("resize",o),o()},t.style.display="block",t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.height="100%",t.style.width="100%",t.style.overflow="hidden",t.style.pointerEvents="none",t.style.zIndex="-1",t.style.opacity="0",t.setAttribute("class",i.SensorClassName),t.setAttribute("tabindex",i.SensorTabIndex),t.type="text/html",e.appendChild(t),t.data="about:blank",t},o=(0,r["default"])((function(){n.forEach((function(t){t(e)}))})),s=function(e){t||(t=a()),-1===n.indexOf(e)&&n.push(e)},l=function(){t&&t.parentNode&&(t.contentDocument&&t.contentDocument.defaultView.removeEventListener("resize",o),t.parentNode.removeChild(t),t=void 0,n=[])},u=function(e){var r=n.indexOf(e);-1!==r&&n.splice(r,1),0===n.length&&t&&l()};return{element:e,bind:s,destroy:l,unbind:u}};t.createSensor=o},PLZd:function(e,t,n){"use strict";function r(){var e=s(n("xwgP"));return r=function(){return e},e}function i(){var e=a(n("7QR1"));return i=function(){return e},e}function a(e){return e&&e.__esModule?e:{default:e}}function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function s(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n["default"]=e,t&&t.set(e,n),n}function l(e,t){return f(e)||d(e,t)||c(e,t)||u()}function u(){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 c(e,t){if(e){if("string"===typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(n.push(o.value),t&&n.length===t)break}catch(l){i=!0,a=l}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw a}}return n}}function f(e){if(Array.isArray(e))return e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var p={"zh-CN":"https://www.typescriptlang.org/zh/play","en-US":"https://www.typescriptlang.org/play"},g=function(e,t){var n=function(){var e=/^zh|cn$/.test(arguments.length<=0?void 0:arguments[0])?p["zh-CN"]:p["en-US"];return"".concat(e,"?skipLibCheck=true&jsx=1#code/").concat(i()["default"].compressToEncodedURIComponent(arguments.length<=1?void 0:arguments[1]))},a=(0,r().useState)(n(e,t)),o=l(a,2),s=o[0],u=o[1];return(0,r().useEffect)((function(){u(n(e,t))}),[e,t]),s};t["default"]=g},PM2V:function(e,t,n){var r=n("PaPB"),i=n("2I03");e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw RangeError("Wrong length or index");return n}},PR8p:function(e,t,n){var r=n("JqKL");r("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0)},PSNI:function(e,t,n){"use strict";var r=n("zb3V"),i=n("9FIh"),a=function(e){function t(t,n,r,i,a){var o=e.call(this,i)||this;return o.x=null==t?.5:t,o.y=null==n?.5:n,o.r=null==r?.5:r,o.type="radial",o.global=a||!1,o}return Object(r["b"])(t,e),t}(i["a"]);t["a"]=a},PW5N:function(e,t,n){"use strict";n.d(t,"f",(function(){return E})),n.d(t,"i",(function(){return C})),n.d(t,"a",(function(){return I})),n.d(t,"g",(function(){return D})),n.d(t,"h",(function(){return L})),n.d(t,"c",(function(){return P})),n.d(t,"b",(function(){return k})),n.d(t,"e",(function(){return N})),n.d(t,"j",(function(){return j})),n.d(t,"d",(function(){return F})),n.d(t,"k",(function(){return z}));var r=n("a0Kb"),i=n("3MuR"),a=n("gI5n"),o=n("LD4z"),s=n("elbk"),l=n("xFFj"),u=n("mDwk"),c=n("zb3V"),h=n("sKBc"),d=n("Rvel"),f=o["a"].prototype,p=a["a"].prototype,g=h["g"],m=h["u"],v=Math.floor,y=Math.ceil,b=Math.pow,_=Math.log,x=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new a["a"],t._interval=0,t}return Object(c["b"])(t,e),t.prototype.getTicks=function(e){var t=this._originalScale,n=this._extent,i=t.getExtent(),a=p.getTicks.call(this,e);return r["map"](a,(function(e){var t=e.value,r=h["u"](b(this.base,t));return r=t===n[0]&&this._fixMin?S(r,i[0]):r,r=t===n[1]&&this._fixMax?S(r,i[1]):r,{value:r}}),this)},t.prototype.setExtent=function(e,t){var n=this.base;e=_(e)/_(n),t=_(t)/_(n),p.setExtent.call(this,e,t)},t.prototype.getExtent=function(){var e=this.base,t=f.getExtent.call(this);t[0]=b(e,t[0]),t[1]=b(e,t[1]);var n=this._originalScale,r=n.getExtent();return this._fixMin&&(t[0]=S(t[0],r[0])),this._fixMax&&(t[1]=S(t[1],r[1])),t},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=_(e[0])/_(t),e[1]=_(e[1])/_(t),f.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.niceTicks=function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(!(n===1/0||n<=0)){var r=h["q"](n),i=e/n*r;i<=.5&&(r*=10);while(!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0)r*=10;var a=[h["u"](y(t[0]/r)*r),h["u"](v(t[1]/r)*r)];this._interval=r,this._niceExtent=a}},t.prototype.niceExtent=function(e){p.niceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=_(e)/_(this.base),d["a"](e,this._extent)},t.prototype.normalize=function(e){return e=_(e)/_(this.base),d["d"](e,this._extent)},t.prototype.scale=function(e){return e=d["e"](e,this._extent),b(this.base,e)},t.type="log",t}(o["a"]),w=x.prototype;function S(e,t){return m(e,g(t))}w.getMinorTicks=p.getMinorTicks,w.getLabel=p.getLabel,o["a"].registerClass(x);var T=x,O=n("EzfI"),M=n("Yb4w");function E(e,t){var n=e.type,i=Object(M["a"])(e,t,e.getExtent()).calculate();e.setBlank(i.isBlank);var a=i.min,o=i.max,l=t.ecModel;if(l&&"time"===n){var u=Object(s["e"])("bar",l),c=!1;if(r["each"](u,(function(e){c=c||e.getBaseAxis()===t.axis})),c){var h=Object(s["d"])(u),d=A(a,o,t,h);a=d.min,o=d.max}}return{extent:[a,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function A(e,t,n,i){var a=n.axis.getExtent(),o=a[1]-a[0],l=Object(s["f"])(i,n.axis);if(void 0===l)return{min:e,max:t};var u=1/0;r["each"](l,(function(e){u=Math.min(e.offset,u)}));var c=-1/0;r["each"](l,(function(e){c=Math.max(e.offset+e.width,c)})),u=Math.abs(u),c=Math.abs(c);var h=u+c,d=t-e,f=1-(u+c)/o,p=d/f-d;return t+=p*(c/h),e-=p*(u/h),{min:e,max:t}}function C(e,t){var n=E(e,t),r=n.extent,i=t.get("splitNumber");e instanceof T&&(e.base=t.get("logBase"));var a=e.type;e.setExtent(r[0],r[1]),e.niceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:"interval"===a||"time"===a?t.get("minInterval"):null,maxInterval:"interval"===a||"time"===a?t.get("maxInterval"):null});var o=t.get("interval");null!=o&&e.setInterval&&e.setInterval(o)}function I(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new i["a"]({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new u["a"]({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(o["a"].getClass(t)||a["a"])}}function D(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function L(e){var t=e.getLabelModel().get("formatter"),n="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?function(t){return function(n,r){return e.scale.getFormattedLabel(n,r,t)}}(t):"string"===typeof t?function(t){return function(n){var r=e.scale.getLabel(n),i=t.replace("{value}",null!=r?r:"");return i}}(t):"function"===typeof t?function(t){return function(r,i){return null!=n&&(i=r.value-n),t(P(e,r),i,null!=r.level?{level:r.level}:null)}}(t):function(t){return e.scale.getLabel(t)}}function P(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function k(e){var t=e.model,n=e.scale;if(t.get(["axisLabel","show"])&&!n.isBlank()){var r,a,o=n.getExtent();n instanceof i["a"]?a=n.count():(r=n.getTicks(),a=r.length);var s,l=e.getLabelModel(),u=L(e),c=1;a>40&&(c=Math.ceil(a/40));for(var h=0;h<a;h+=c){var d=r?r[h]:{value:o[0]+h},f=u(d,h),p=l.getTextRect(f),g=R(p,l.get("rotate")||0);s?s.union(g):s=g}return s}}function R(e,t){var n=t*Math.PI/180,r=e.width,i=e.height,a=r*Math.abs(Math.cos(n))+Math.abs(i*Math.sin(n)),o=r*Math.abs(Math.sin(n))+Math.abs(i*Math.cos(n)),s=new l["a"](e.x,e.y,a,o);return s}function N(e){var t=e.get("interval");return null==t?"auto":t}function j(e){return"category"===e.type&&0===N(e.getLabelModel())}function F(e,t){var n={};return r["each"](e.mapDimensionsAll(t),(function(t){n[Object(O["b"])(e,t)]=!0})),r["keys"](n)}function z(e,t,n){t&&r["each"](F(t,n),(function(n){var r=t.getApproximateExtent(n);r[0]<e[0]&&(e[0]=r[0]),r[1]>e[1]&&(e[1]=r[1])}))}},PaPB:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},Pfkn:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return l}));var r=n("cOEc"),i=new r["a"](50);function a(e){if("string"===typeof e){var t=i.get(e);return t&&t.image}return e}function o(e,t,n,r,a){if(e){if("string"===typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var o=i.get(e),u={hostEl:n,cb:r,cbPayload:a};return o?(t=o.image,!l(t)&&o.pending.push(u)):(t=new Image,t.onload=t.onerror=s,i.put(e,t.__cachedImgObj={image:t,pending:[u]}),t.src=t.__zrImageSrc=e),t}return e}return t}function s(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function l(e){return e&&e.width&&e.height}},"Pj+0":function(e,t,n){var r=n("bVFb");r("observable")},Pjiy:function(e,t,n){"use strict";var r=n("45XY");function i(){var e=o(n("xwgP"));return i=function(){return e},e}function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function o(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n["default"]=e,t&&t.set(e,n),n}function s(e,t){return d(e)||h(e,t)||u(e,t)||l()}function l(){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 u(e,t){if(e){if("string"===typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(n.push(o.value),t&&n.length===t)break}catch(l){i=!0,a=l}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw a}}return n}}function d(e){if(Array.isArray(e))return e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var f,p="https://riddle.alibaba-inc.com/riddles/define",g=function(){var e=(0,i().useState)(Boolean(f)),t=s(e,2),n=t[0],r=t[1];return(0,i().useEffect)((function(){if(void 0===f){var e=document.createElement("img");setTimeout((function(){e.src="",e.remove()}),200),e.onload=function(){f=!0,r(!0),e.remove()},e.src="https://private-alipayobjects.alipay.com/alipay-rmsdeploy-image/rmsportal/RKuAiriJqrUhyqW.png"}}),[]),n};function m(e){var t,n=e.dependencies,r=e.sources._.tsx||e.sources._.jsx;return r=r.replace(/^/,"import ReactDOM from 'react-dom@".concat((null===(t=n.react)||void 0===t?void 0:t.version)||"latest","';\n")).replace("export default","const DumiDemo =").concat("\nReactDOM.render(<DumiDemo />, mountNode);"),r=r.replace(/(from ')((?:@[^/'"]+)?[^/'"]+)/g,(function(e,t,r){var i="".concat(t).concat(r);return n[r]&&(i+="@".concat(n[r].version)),i})),r}var v=function(e){var t=(0,i().useState)(),n=s(t,2),a=n[0],o=n[1],l=g();return(0,i().useEffect)((function(){if(e&&l&&1===Object.keys(e.sources).length){var t=document.createElement("form"),n=document.createElement("input");return t.method="POST",t.target="_blank",t.style.display="none",t.action=p,t.appendChild(n),t.setAttribute("data-demo",e.title||""),n.name="data",n.value=JSON.stringify({title:e.titlle,js:m(e),css:Object.entries(e.dependencies).filter((function(e){var t=r(e,2),n=t[1];return n.css})).map((function(e){var t=r(e,2),n=t[0],i=t[1],a=i.version,o=i.css;return"@import '~".concat(o.replace(new RegExp("^(".concat(n,")")),"$1@".concat(a)),"';")})).join("\n")}),document.body.appendChild(t),o((function(){return function(){return t.submit()}})),function(){return t.remove()}}}),[e,l]),a};t["default"]=v},PlQJ:function(e,t,n){"use strict";var r=n("HIsA"),i=n("7+LC"),a=n("HC6f"),o=n("hXyk"),s=n("4dbd"),l=n("2I03"),u=n("70zE"),c=a.ArrayBuffer,h=a.DataView,d=c.prototype.slice,f=i((function(){return!new c(2).slice(1,void 0).byteLength}));r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:f},{slice:function(e,t){if(void 0!==d&&void 0===t)return d.call(o(this),e);var n=o(this).byteLength,r=s(e,n),i=s(void 0===t?n:t,n),a=new(u(this,c))(l(i-r)),f=new h(this),p=new h(a),g=0;while(r<i)p.setUint8(g++,f.getUint8(r++));return a}})},PzXq:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("Yc1X");function i(e,t,n,i,a,o,s,l,u){if(0===s)return!1;var c=s;if(u>t+c&&u>i+c&&u>o+c||u<t-c&&u<i-c&&u<o-c||l>e+c&&l>n+c&&l>a+c||l<e-c&&l<n-c&&l<a-c)return!1;var h=Object(r["l"])(e,t,n,i,a,o,l,u,null);return h<=c/2}},Q1Da:function(e,t,n){var r=n("kPvK");t.f=r},"QD/U":function(e,t,n){"use strict";var r=n("bXon"),i=n("2RC6"),a=n("kPvK"),o=n("Hiyu"),s=a("species");e.exports=function(e){var t=r(e),n=i.f;o&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},QIG3:function(e,t,n){"use strict";var r=n("2kiq"),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function u(e){return r.isMemo(e)?s:l[e["$$typeof"]]||i}l[r.ForwardRef]=o,l[r.Memo]=s;var c=Object.defineProperty,h=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,g=Object.prototype;function m(e,t,n){if("string"!==typeof t){if(g){var r=p(t);r&&r!==g&&m(e,r,n)}var i=h(t);d&&(i=i.concat(d(t)));for(var o=u(e),s=u(t),l=0;l<i.length;++l){var v=i[l];if(!a[v]&&(!n||!n[v])&&(!s||!s[v])&&(!o||!o[v])){var y=f(t,v);try{c(e,v,y)}catch(b){}}}}return e}e.exports=m},"Qf+e":function(e,t,n){var r=n("JqKL");r("Int32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},QwcI:function(e,t,n){"use strict";n.r(t);var r=n("xwgP"),i=n.n(r),a=n("kvV8"),o=n("lBQG"),s=i.a.memo(n("Rsk4").default["graph-demo"].component);t["default"]=function(){return i.a.createElement(i.a.Fragment,null,i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"markdown"},i.a.createElement("h2",{id:"graph"},i.a.createElement(a["AnchorLink"],{to:"#graph","aria-hidden":"true",tabIndex:-1},i.a.createElement("span",{className:["icon","icon-link"]})),"Graph")),i.a.createElement(o["default"],n("Rsk4").default["graph-demo"].previewerProps,i.a.createElement(s,null))))}},R64i:function(e,t,n){var r=n("kPvK"),i=r("toStringTag"),a={};a[i]="z",e.exports="[object z]"===String(a)},R6vp:function(e,t,n){"use strict";var r=n("HIsA"),i=n("m52V"),a=n("hXyk"),o=n("40mc"),s=n("wKMT"),l=n("Ji6T");r({target:"Set",proto:!0,real:!0,forced:i},{some:function(e){var t=a(this),n=s(t),r=o(e,arguments.length>1?arguments[1]:void 0,3);return l(n,(function(e){if(r(e,e,t))return l.stop()}),void 0,!1,!0).stopped}})},RA87:function(e,t,n){"use strict";var r=n("zb3V"),i=n("H4kQ"),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="compound",t}return Object(r["b"])(t,e),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t=t||e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),i["b"].prototype.getBoundingRect.call(this)},t}(i["b"]);t["a"]=a},RUgK:function(e,t,n){var r=n("Hiyu"),i=n("y6vz"),a=n("2hCa"),o=n("73Ew").f,s=function(e){return function(t){var n,s=a(t),l=i(s),u=l.length,c=0,h=[];while(u>c)n=l[c++],r&&!o.call(s,n)||h.push(e?[n,s[n]]:s[n]);return h}};e.exports={entries:s(!0),values:s(!1)}},"Ra/9":function(e,t,n){var r=n("2hCa"),i=n("2I03"),a=n("4dbd"),o=function(e){return function(t,n,o){var s,l=r(t),u=i(l.length),c=a(o,u);if(e&&n!=n){while(u>c)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},Rj4u:function(e,t,n){"use strict";n.r(t),n.d(t,"parse",(function(){return v})),n.d(t,"lift",(function(){return _})),n.d(t,"toHex",(function(){return x})),n.d(t,"fastLerp",(function(){return w})),n.d(t,"fastMapToColor",(function(){return S})),n.d(t,"lerp",(function(){return T})),n.d(t,"mapToColor",(function(){return O})),n.d(t,"modifyHSL",(function(){return M})),n.d(t,"modifyAlpha",(function(){return E})),n.d(t,"stringify",(function(){return A})),n.d(t,"lum",(function(){return C})),n.d(t,"random",(function(){return I}));var r=n("cOEc"),i={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function a(e){return e=Math.round(e),e<0?0:e>255?255:e}function o(e){return e=Math.round(e),e<0?0:e>360?360:e}function s(e){return e<0?0:e>1?1:e}function l(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?a(parseFloat(t)/100*255):a(parseInt(t,10))}function u(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?s(parseFloat(t)/100):s(parseFloat(t))}function c(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function h(e,t,n){return e+(t-e)*n}function d(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function f(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var p=new r["a"](20),g=null;function m(e,t){g&&f(g,t),g=p.put(e,g||t.slice())}function v(e,t){if(e){t=t||[];var n=p.get(e);if(n)return f(t,n);e+="";var r=e.replace(/ /g,"").toLowerCase();if(r in i)return f(t,i[r]),m(e,t),t;var a=r.length;if("#"!==r.charAt(0)){var o=r.indexOf("("),s=r.indexOf(")");if(-1!==o&&s+1===a){var c=r.substr(0,o),h=r.substr(o+1,s-(o+1)).split(","),g=1;switch(c){case"rgba":if(4!==h.length)return 3===h.length?d(t,+h[0],+h[1],+h[2],1):d(t,0,0,0,1);g=u(h.pop());case"rgb":return 3!==h.length?void d(t,0,0,0,1):(d(t,l(h[0]),l(h[1]),l(h[2]),g),m(e,t),t);case"hsla":return 4!==h.length?void d(t,0,0,0,1):(h[3]=u(h[3]),y(h,t),m(e,t),t);case"hsl":return 3!==h.length?void d(t,0,0,0,1):(y(h,t),m(e,t),t);default:return}}d(t,0,0,0,1)}else{if(4===a||5===a){var v=parseInt(r.slice(1,4),16);return v>=0&&v<=4095?(d(t,(3840&v)>>4|(3840&v)>>8,240&v|(240&v)>>4,15&v|(15&v)<<4,5===a?parseInt(r.slice(4),16)/15:1),m(e,t),t):void d(t,0,0,0,1)}if(7===a||9===a){v=parseInt(r.slice(1,7),16);return v>=0&&v<=16777215?(d(t,(16711680&v)>>16,(65280&v)>>8,255&v,9===a?parseInt(r.slice(7),16)/255:1),m(e,t),t):void d(t,0,0,0,1)}}}}function y(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=u(e[1]),i=u(e[2]),o=i<=.5?i*(r+1):i+r-i*r,s=2*i-o;return t=t||[],d(t,a(255*c(s,o,n+1/3)),a(255*c(s,o,n)),a(255*c(s,o,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function b(e){if(e){var t,n,r=e[0]/255,i=e[1]/255,a=e[2]/255,o=Math.min(r,i,a),s=Math.max(r,i,a),l=s-o,u=(s+o)/2;if(0===l)t=0,n=0;else{n=u<.5?l/(s+o):l/(2-s-o);var c=((s-r)/6+l/2)/l,h=((s-i)/6+l/2)/l,d=((s-a)/6+l/2)/l;r===s?t=d-h:i===s?t=1/3+c-d:a===s&&(t=2/3+h-c),t<0&&(t+=1),t>1&&(t-=1)}var f=[360*t,n,u];return null!=e[3]&&f.push(e[3]),f}}function _(e,t){var n=v(e);if(n){for(var r=0;r<3;r++)n[r]=t<0?n[r]*(1-t)|0:(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return A(n,4===n.length?"rgba":"rgb")}}function x(e){var t=v(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function w(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];var r=e*(t.length-1),i=Math.floor(r),o=Math.ceil(r),l=t[i],u=t[o],c=r-i;return n[0]=a(h(l[0],u[0],c)),n[1]=a(h(l[1],u[1],c)),n[2]=a(h(l[2],u[2],c)),n[3]=s(h(l[3],u[3],c)),n}}var S=w;function T(e,t,n){if(t&&t.length&&e>=0&&e<=1){var r=e*(t.length-1),i=Math.floor(r),o=Math.ceil(r),l=v(t[i]),u=v(t[o]),c=r-i,d=A([a(h(l[0],u[0],c)),a(h(l[1],u[1],c)),a(h(l[2],u[2],c)),s(h(l[3],u[3],c))],"rgba");return n?{color:d,leftIndex:i,rightIndex:o,value:r}:d}}var O=T;function M(e,t,n,r){var i=v(e);if(e)return i=b(i),null!=t&&(i[0]=o(t)),null!=n&&(i[1]=u(n)),null!=r&&(i[2]=u(r)),A(y(i),"rgba")}function E(e,t){var n=v(e);if(n&&null!=t)return n[3]=s(t),A(n,"rgba")}function A(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}function C(e,t){var n=v(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}function I(){var e=Math.round(255*Math.random()),t=Math.round(255*Math.random()),n=Math.round(255*Math.random());return"rgb("+e+","+t+","+n+")"}},Rkte:function(e,t){e.exports=Math.scale||function(e,t,n,r,i){return 0===arguments.length||e!=e||t!=t||n!=n||r!=r||i!=i?NaN:e===1/0||e===-1/0?e:(e-t)*(i-r)/(n-t)+r}},Rsk4:function(e,t,n){"use strict";n.r(t),t["default"]={"docs-demo":{component:function(){var e=n("sTX5"),t=e(n("xwgP")),r=e(n("/7QA")),i=function(){var e={grid:{top:8,right:8,bottom:24,left:36},xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value"},series:[{data:[820,932,901,934,1290,1330,1320],type:"line",smooth:!0}]};return t["default"].createElement(r["default"],{option:e})},a=i;return t["default"].createElement(a)},previewerProps:{sources:{_:{tsx:"import React from 'react';\nimport ReactECharts from 'echarts-for-react';\n\nconst Page: React.FC = () => {\n const options = {\n grid: { top: 8, right: 8, bottom: 24, left: 36 },\n xAxis: {\n type: 'category',\n data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],\n },\n yAxis: {\n type: 'value',\n },\n series: [\n {\n data: [820, 932, 901, 934, 1290, 1330, 1320],\n type: 'line',\n smooth: true,\n },\n ],\n };\n\n return <ReactECharts option={options} />;\n};\n\nexport default Page;"}},dependencies:{react:{version:"^15.0.0 || >=16.0.0"},"echarts-for-react":{version:"3.0.0-beta.2"},echarts:{version:"^3.0.0 || ^4.0.0 || ^5.0.0"}},identifier:"docs-demo"}},"api-demo":{component:function(){var e=n("sTX5"),t=n("Fcd/"),r=t(n("xwgP")),i=e(n("/7QA")),a=function(){var e={title:{text:"\u6f0f\u6597\u56fe",subtext:"\u7eaf\u5c5e\u865a\u6784"},tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c}%"},toolbox:{feature:{dataView:{readOnly:!1},restore:{},saveAsImage:{}}},legend:{data:["\u5c55\u73b0","\u70b9\u51fb","\u8bbf\u95ee","\u54a8\u8be2","\u8ba2\u5355"]},series:[{name:"\u9884\u671f",type:"funnel",left:"10%",width:"80%",label:{normal:{formatter:"{b}\u9884\u671f"},emphasis:{position:"inside",formatter:"{b}\u9884\u671f: {c}%"}},labelLine:{normal:{show:!1}},itemStyle:{normal:{opacity:.7}},data:[{value:60,name:"\u8bbf\u95ee"},{value:40,name:"\u54a8\u8be2"},{value:20,name:"\u8ba2\u5355"},{value:80,name:"\u70b9\u51fb"},{value:100,name:"\u5c55\u73b0"}]},{name:"\u5b9e\u9645",type:"funnel",left:"10%",width:"80%",maxSize:"80%",label:{normal:{position:"inside",formatter:"{c}%",textStyle:{color:"#fff"}},emphasis:{position:"inside",formatter:"{b}\u5b9e\u9645: {c}%"}},itemStyle:{normal:{opacity:.5,borderColor:"#fff",borderWidth:2}},data:[{value:30,name:"\u8bbf\u95ee"},{value:10,name:"\u54a8\u8be2"},{value:5,name:"\u8ba2\u5355"},{value:50,name:"\u70b9\u51fb"},{value:80,name:"\u5c55\u73b0"}]}]},t=(0,r.useRef)(null);function n(){var e=t.current.getEchartsInstance().getDataURL(),n=new Image;n.src=e;var r=window.open("","_blank");r.document.write(n.outerHTML)}return r["default"].createElement(r["default"].Fragment,null,r["default"].createElement(i["default"],{ref:t,option:e,style:{height:400}}),r["default"].createElement("div",null,r["default"].createElement("button",{onClick:n},"click here to get the DataURL of chart.")))},o=a;return r["default"].createElement(o)},previewerProps:{sources:{_:{tsx:"import React, { useRef } from 'react';\nimport ReactECharts from 'echarts-for-react';\n\nconst Page: React.FC = () => {\n const option = {\n title: {\n text: '\u6f0f\u6597\u56fe',\n subtext: '\u7eaf\u5c5e\u865a\u6784'\n },\n tooltip: {\n trigger: 'item',\n formatter: \"{a} <br/>{b} : {c}%\"\n },\n toolbox: {\n feature: {\n dataView: {readOnly: false},\n restore: {},\n saveAsImage: {}\n }\n },\n legend: {\n data: ['\u5c55\u73b0','\u70b9\u51fb','\u8bbf\u95ee','\u54a8\u8be2','\u8ba2\u5355']\n },\n series: [\n {\n name: '\u9884\u671f',\n type: 'funnel',\n left: '10%',\n width: '80%',\n label: {\n normal: {\n formatter: '{b}\u9884\u671f'\n },\n emphasis: {\n position:'inside',\n formatter: '{b}\u9884\u671f: {c}%'\n }\n },\n labelLine: {\n normal: {\n show: false\n }\n },\n itemStyle: {\n normal: {\n opacity: 0.7\n }\n },\n data: [\n {value: 60, name: '\u8bbf\u95ee'},\n {value: 40, name: '\u54a8\u8be2'},\n {value: 20, name: '\u8ba2\u5355'},\n {value: 80, name: '\u70b9\u51fb'},\n {value: 100, name: '\u5c55\u73b0'}\n ]\n },\n {\n name: '\u5b9e\u9645',\n type: 'funnel',\n left: '10%',\n width: '80%',\n maxSize: '80%',\n label: {\n normal: {\n position: 'inside',\n formatter: '{c}%',\n textStyle: {\n color: '#fff'\n }\n },\n emphasis: {\n position:'inside',\n formatter: '{b}\u5b9e\u9645: {c}%'\n }\n },\n itemStyle: {\n normal: {\n opacity: 0.5,\n borderColor: '#fff',\n borderWidth: 2\n }\n },\n data: [\n {value: 30, name: '\u8bbf\u95ee'},\n {value: 10, name: '\u54a8\u8be2'},\n {value: 5, name: '\u8ba2\u5355'},\n {value: 50, name: '\u70b9\u51fb'},\n {value: 80, name: '\u5c55\u73b0'}\n ]\n }\n ]\n };\n\n const instance = useRef(null);\n\n function clickBtn() {\n const base64 = instance.current.getEchartsInstance().getDataURL();\n\n const img = new Image();\n img.src = base64;\n const newWin = window.open('', '_blank');\n newWin.document.write(img.outerHTML);\n }\n\n return (\n <>\n <ReactECharts\n ref={instance}\n option={option}\n style={{ height: 400 }}\n />\n <div>\n <button onClick={clickBtn}>click here to get the DataURL of chart.</button>\n </div>\n </>\n );\n};\n\nexport default Page;"}},dependencies:{react:{version:"^15.0.0 || >=16.0.0"},"echarts-for-react":{version:"3.0.0-beta.2"},echarts:{version:"^3.0.0 || ^4.0.0 || ^5.0.0"}},identifier:"api-demo"}},"dynamic-demo":{component:function(){var e=n("Fcd/"),t=n("sTX5"),r=t(n("ob7Q")),i=e(n("xwgP")),a=t(n("/7QA")),o=t(n("aveK")),s=function(){var e,t={title:{text:"Hello Echarts-for-react."},tooltip:{trigger:"axis"},legend:{data:["\u6700\u65b0\u6210\u4ea4\u4ef7","\u9884\u8d2d\u961f\u5217"]},toolbox:{show:!0,feature:{dataView:{readOnly:!1},restore:{},saveAsImage:{}}},grid:{top:60,left:30,right:60,bottom:30},dataZoom:{show:!1,start:0,end:100},visualMap:{show:!1,min:0,max:1e3,color:["#BE002F","#F20C00","#F00056","#FF2D51","#FF2121","#FF4C00","#FF7500","#FF8936","#FFA400","#F0C239","#FFF143","#FAFF72","#C9DD22","#AFDD22","#9ED900","#00E500","#0EB83A","#0AA344","#0C8918","#057748","#177CB0"]},xAxis:[{type:"category",boundaryGap:!0,data:function(){var e=new Date,t=[],n=50;while(n--)t.unshift(e.toLocaleTimeString().replace(/^\D*/,"")),e=new Date(e-2e3);return t}()},{type:"category",boundaryGap:!0,data:function(){var e=[],t=50;while(t--)e.push(50-t+1);return e}()}],yAxis:[{type:"value",scale:!0,name:"\u4ef7\u683c",max:20,min:0,boundaryGap:[.2,.2]},{type:"value",scale:!0,name:"\u9884\u8d2d\u91cf",max:1200,min:0,boundaryGap:[.2,.2]}],series:[{name:"\u9884\u8d2d\u961f\u5217",type:"bar",xAxisIndex:1,yAxisIndex:1,itemStyle:{normal:{barBorderRadius:4}},animationEasing:"elasticOut",animationDelay:function(e){return 10*e},animationDelayUpdate:function(e){return 10*e},data:function(){var e=[],t=50;while(t--)e.push(Math.round(1e3*Math.random()));return e}()},{name:"\u6700\u65b0\u6210\u4ea4\u4ef7",type:"line",data:function(){var e=[],t=0;while(t<50)e.push((10*Math.random()+5).toFixed(1)-0),t++;return e}()}]},n=(0,i.useState)(t),s=(0,r["default"])(n,2),l=s[0],u=s[1];function c(){var t=(new Date).toLocaleTimeString().replace(/^\D*/,""),n=(0,o["default"])(l);n.title.text="Hello Echarts-for-react."+(new Date).getSeconds();var r=n.series[0].data,i=n.series[1].data;r.shift(),r.push(Math.round(1e3*Math.random())),i.shift(),i.push((10*Math.random()+5).toFixed(1)-0),n.xAxis[0].data.shift(),n.xAxis[0].data.push(t),n.xAxis[1].data.shift(),n.xAxis[1].data.push(e++),u(n)}return(0,i.useEffect)((function(){var e=setInterval((function(){c()}),1e3);return function(){return clearInterval(e)}})),i["default"].createElement(a["default"],{option:l,style:{height:400}})},l=s;return i["default"].createElement(l)},previewerProps:{sources:{_:{tsx:"import React, { useState, useEffect } from 'react';\nimport ReactECharts from 'echarts-for-react';\nimport cloneDeep from 'lodash.clonedeep';\n\nconst Page: React.FC = () => {\n const DEFAULT_OPTION = {\n title: {\n text:'Hello Echarts-for-react.',\n },\n tooltip: {\n trigger: 'axis'\n },\n legend: {\n data:['\u6700\u65b0\u6210\u4ea4\u4ef7', '\u9884\u8d2d\u961f\u5217']\n },\n toolbox: {\n show: true,\n feature: {\n dataView: {readOnly: false},\n restore: {},\n saveAsImage: {}\n }\n },\n grid: {\n top: 60,\n left: 30,\n right: 60,\n bottom:30\n },\n dataZoom: {\n show: false,\n start: 0,\n end: 100\n },\n visualMap: {\n show: false,\n min: 0,\n max: 1000,\n color: ['#BE002F', '#F20C00', '#F00056', '#FF2D51', '#FF2121', '#FF4C00', '#FF7500',\n '#FF8936', '#FFA400', '#F0C239', '#FFF143', '#FAFF72', '#C9DD22', '#AFDD22',\n '#9ED900', '#00E500', '#0EB83A', '#0AA344', '#0C8918', '#057748', '#177CB0']\n },\n xAxis: [\n {\n type: 'category',\n boundaryGap: true,\n data: (function (){\n let now = new Date();\n let res = [];\n let len = 50;\n while (len--) {\n res.unshift(now.toLocaleTimeString().replace(/^\\D*/,''));\n now = new Date(now - 2000);\n }\n return res;\n })()\n },\n {\n type: 'category',\n boundaryGap: true,\n data: (function (){\n let res = [];\n let len = 50;\n while (len--) {\n res.push(50 - len + 1);\n }\n return res;\n })()\n }\n ],\n yAxis: [\n {\n type: 'value',\n scale: true,\n name: '\u4ef7\u683c',\n max: 20,\n min: 0,\n boundaryGap: [0.2, 0.2]\n },\n {\n type: 'value',\n scale: true,\n name: '\u9884\u8d2d\u91cf',\n max: 1200,\n min: 0,\n boundaryGap: [0.2, 0.2]\n }\n ],\n series: [\n {\n name:'\u9884\u8d2d\u961f\u5217',\n type:'bar',\n xAxisIndex: 1,\n yAxisIndex: 1,\n itemStyle: {\n normal: {\n barBorderRadius: 4,\n }\n },\n animationEasing: 'elasticOut',\n animationDelay: function (idx) {\n return idx * 10;\n },\n animationDelayUpdate: function (idx) {\n return idx * 10;\n },\n data:(function (){\n let res = [];\n let len = 50;\n while (len--) {\n res.push(Math.round(Math.random() * 1000));\n }\n return res;\n })()\n },\n {\n name:'\u6700\u65b0\u6210\u4ea4\u4ef7',\n type:'line',\n data:(function (){\n let res = [];\n let len = 0;\n while (len < 50) {\n res.push((Math.random()*10 + 5).toFixed(1) - 0);\n len++;\n }\n return res;\n })()\n }\n ]\n };\n\n let count;\n\n const [option, setOption] = useState(DEFAULT_OPTION);\n\n function fetchNewData() {\n const axisData = (new Date()).toLocaleTimeString().replace(/^\\D*/,'');\n const newOption = cloneDeep(option); // immutable\n newOption.title.text = 'Hello Echarts-for-react.' + new Date().getSeconds();\n const data0 = newOption.series[0].data;\n const data1 = newOption.series[1].data;\n data0.shift();\n data0.push(Math.round(Math.random() * 1000));\n data1.shift();\n data1.push((Math.random() * 10 + 5).toFixed(1) - 0);\n\n newOption.xAxis[0].data.shift();\n newOption.xAxis[0].data.push(axisData);\n newOption.xAxis[1].data.shift();\n newOption.xAxis[1].data.push(count++);\n\n setOption(newOption);\n }\n\n useEffect(() => {\n const timer = setInterval(() => {\n fetchNewData();\n }, 1000);\n\n return () => clearInterval(timer);\n });\n\n return <ReactECharts\n option={option}\n style={{ height: 400 }}\n />;\n};\n\nexport default Page;"}},dependencies:{react:{version:"^15.0.0 || >=16.0.0"},"echarts-for-react":{version:"3.0.0-beta.2"},"lodash.clonedeep":{version:"4.5.0"},echarts:{version:"^3.0.0 || ^4.0.0 || ^5.0.0"}},identifier:"dynamic-demo"}},"event-demo":{component:function(){var e=n("Fcd/"),t=n("sTX5"),r=t(n("ob7Q")),i=e(n("xwgP")),a=t(n("/7QA")),o=function(){var e={title:{text:"\u67d0\u7ad9\u70b9\u7528\u6237\u8bbf\u95ee\u6765\u6e90",subtext:"\u7eaf\u5c5e\u865a\u6784",x:"center"},tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:{orient:"vertical",left:"left",data:["\u76f4\u63a5\u8bbf\u95ee","\u90ae\u4ef6\u8425\u9500","\u8054\u76df\u5e7f\u544a","\u89c6\u9891\u5e7f\u544a","\u641c\u7d22\u5f15\u64ce"]},series:[{name:"\u8bbf\u95ee\u6765\u6e90",type:"pie",radius:"55%",center:["50%","60%"],data:[{value:335,name:"\u76f4\u63a5\u8bbf\u95ee"},{value:310,name:"\u90ae\u4ef6\u8425\u9500"},{value:234,name:"\u8054\u76df\u5e7f\u544a"},{value:135,name:"\u89c6\u9891\u5e7f\u544a"},{value:1548,name:"\u641c\u7d22\u5f15\u64ce"}],itemStyle:{emphasis:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},t=(0,i.useState)(0),n=(0,r["default"])(t,2),o=n[0],s=n[1];function l(e){console.log("echarts is ready",e)}function u(e,t){console.log(e,t),s(o+1)}function c(e,t){console.log(e,t)}return i["default"].createElement(i["default"].Fragment,null,i["default"].createElement(a["default"],{option:e,style:{height:400},onChartReady:l,onEvents:{click:u,legendselectchanged:c}}),i["default"].createElement("div",null,"Click Count: ",o),i["default"].createElement("div",null,"Open console, see the log detail."))},s=o;return i["default"].createElement(s)},previewerProps:{sources:{_:{tsx:"import React, { useState } from 'react';\nimport ReactECharts from 'echarts-for-react';\n\nconst Page: React.FC = () => {\n const option = {\n title : {\n text: '\u67d0\u7ad9\u70b9\u7528\u6237\u8bbf\u95ee\u6765\u6e90',\n subtext: '\u7eaf\u5c5e\u865a\u6784',\n x:'center'\n },\n tooltip : {\n trigger: 'item',\n formatter: \"{a} <br/>{b} : {c} ({d}%)\"\n },\n legend: {\n orient: 'vertical',\n left: 'left',\n data: ['\u76f4\u63a5\u8bbf\u95ee','\u90ae\u4ef6\u8425\u9500','\u8054\u76df\u5e7f\u544a','\u89c6\u9891\u5e7f\u544a','\u641c\u7d22\u5f15\u64ce']\n },\n series : [\n {\n name: '\u8bbf\u95ee\u6765\u6e90',\n type: 'pie',\n radius : '55%',\n center: ['50%', '60%'],\n data:[\n {value:335, name:'\u76f4\u63a5\u8bbf\u95ee'},\n {value:310, name:'\u90ae\u4ef6\u8425\u9500'},\n {value:234, name:'\u8054\u76df\u5e7f\u544a'},\n {value:135, name:'\u89c6\u9891\u5e7f\u544a'},\n {value:1548, name:'\u641c\u7d22\u5f15\u64ce'}\n ],\n itemStyle: {\n emphasis: {\n shadowBlur: 10,\n shadowOffsetX: 0,\n shadowColor: 'rgba(0, 0, 0, 0.5)'\n }\n }\n }\n ]\n };\n\n const [count, setCount] = useState(0);\n\n function onChartReady(echarts) {\n console.log('echarts is ready', echarts);\n }\n\n function onChartClick(param, echarts) {\n console.log(param, echarts);\n setCount(count + 1);\n };\n\n function onChartLegendselectchanged(param, echarts) {\n console.log(param, echarts);\n };\n\n return (\n <>\n <ReactECharts\n option={option}\n style={{ height: 400 }}\n onChartReady={onChartReady}\n onEvents={{\n 'click': onChartClick,\n 'legendselectchanged': onChartLegendselectchanged\n }}\n />\n <div>Click Count: {count}</div>\n <div>Open console, see the log detail.</div>\n </>\n );\n};\n\nexport default Page;"}},dependencies:{react:{version:"^15.0.0 || >=16.0.0"},"echarts-for-react":{version:"3.0.0-beta.2"},echarts:{version:"^3.0.0 || ^4.0.0 || ^5.0.0"}},identifier:"event-demo"}},"gl-demo":{component:function(){var e=n("sTX5"),t=e(n("xwgP")),r=e(n("/7QA"));n("uGNz");var i=function(){var e={grid3D:{},xAxis3D:{},yAxis3D:{},zAxis3D:{},series:[{type:"scatter3D",symbolSize:50,data:[[-1,-1,-1],[0,0,0],[1,1,1]],itemStyle:{opacity:1}}]};return t["default"].createElement(r["default"],{option:e,style:{height:400}})},a=i;return t["default"].createElement(a)},previewerProps:{sources:{_:{tsx:"import React from 'react';\nimport ReactECharts from 'echarts-for-react';\nimport 'echarts-gl';\n\nconst Page: React.FC = () => {\n const option = {\n grid3D: {},\n xAxis3D: {},\n yAxis3D: {},\n zAxis3D: {},\n series: [{\n type: 'scatter3D',\n symbolSize: 50,\n data: [[-1, -1, -1], [0, 0, 0], [1, 1, 1]],\n itemStyle: {\n opacity: 1\n }\n }]\n };\n\n return <ReactECharts\n option={option}\n style={{ height: 400 }}\n />;\n};\n\nexport default Page;"}},dependencies:{react:{version:"^15.0.0 || >=16.0.0"},"echarts-for-react":{version:"3.0.0-beta.2"},"echarts-gl":{version:"2.0.1"},echarts:{version:"^5.0.1"}},identifier:"gl-demo"}},"graph-demo":{component:function(){var e=n("sTX5"),t=e(n("xwgP")),r=e(n("/7QA")),i=function(){var e={type:"force",categories:[{name:"HTMLElement",keyword:{},base:"HTMLElement"},{name:"WebGL",keyword:{},base:"WebGLRenderingContext"},{name:"SVG",keyword:{},base:"SVGElement"},{name:"CSS",keyword:{},base:"CSSRule"},{name:"Other",keyword:{}}],nodes:[{name:"AnalyserNode",value:1,category:4},{name:"AudioNode",value:1,category:4},{name:"Uint8Array",value:1,category:4},{name:"Float32Array",value:1,category:4},{name:"ArrayBuffer",value:1,category:4},{name:"ArrayBufferView",value:1,category:4},{name:"Attr",value:1,category:4},{name:"Node",value:1,category:4},{name:"Element",value:1,category:4},{name:"AudioBuffer",value:1,category:4},{name:"AudioBufferCallback",value:1,category:4},{name:"AudioBufferSourceNode",value:1,category:4},{name:"AudioSourceNode",value:1,category:4},{name:"AudioGain",value:1,category:4},{name:"AudioParam",value:1,category:4},{name:"AudioContext",value:1,category:4},{name:"AudioDestinationNode",value:1,category:4},{name:"AudioListener",value:1,category:4},{name:"BiquadFilterNode",value:1,category:4},{name:"ChannelMergerNode",value:1,category:4},{name:"ChannelSplitterNode",value:1,category:4},{name:"ConvolverNode",value:1,category:4},{name:"DelayNode",value:1,category:4},{name:"DynamicsCompressorNode",value:1,category:4},{name:"GainNode",value:1,category:4},{name:"MediaElementAudioSourceNode",value:1,category:4},{name:"MediaStreamAudioDestinationNode",value:1,category:4},{name:"MediaStreamAudioSourceNode",value:1,category:4},{name:"OscillatorNode",value:1,category:4},{name:"PannerNode",value:1,category:4},{name:"ScriptProcessorNode",value:1,category:4},{name:"WaveShaperNode",value:1,category:4},{name:"WaveTable",value:1,category:4},{name:"CanvasRenderingContext",value:1,category:4},{name:"HTMLCanvasElement",value:1,category:0},{name:"CanvasRenderingContext2D",value:1,category:4},{name:"ImageData",value:1,category:4},{name:"CanvasGradient",value:1,category:4},{name:"CanvasPattern",value:1,category:4},{name:"HTMLImageElement",value:1,category:0},{name:"HTMLVideoElement",value:1,category:0},{name:"TextMetrics",value:1,category:4},{name:"CDATASection",value:1,category:4},{name:"Text",value:1,category:4},{name:"CharacterData",value:1,category:4},{name:"ClientRectList",value:1,category:4},{name:"ClientRect",value:1,category:4},{name:"Clipboard",value:1,category:4},{name:"FileList",value:1,category:4},{name:"DataTransferItemList",value:1,category:4},{name:"Comment",value:1,category:4},{name:"Console",value:1,category:4},{name:"MemoryInfo",value:1,category:4},{name:"Crypto",value:1,category:4},{name:"CSSCharsetRule",value:1,category:3},{name:"CSSRule",value:3,category:3},{name:"CSSFontFaceRule",value:1,category:3},{name:"CSSStyleDeclaration",value:1,category:3},{name:"CSSImportRule",value:1,category:3},{name:"MediaList",value:1,category:4},{name:"CSSStyleSheet",value:1,category:3},{name:"CSSMediaRule",value:1,category:3},{name:"CSSRuleList",value:1,category:3},{name:"CSSPageRule",value:1,category:3},{name:"CSSPrimitiveValue",value:1,category:3},{name:"CSSValue",value:1,category:3},{name:"Counter",value:1,category:4},{name:"RGBColor",value:1,category:4},{name:"Rect",value:1,category:4},{name:"CSSStyleRule",value:1,category:3},{name:"StyleSheet",value:1,category:4},{name:"CSSUnknownRule",value:1,category:3},{name:"CSSValueList",value:1,category:3},{name:"Database",value:1,category:4},{name:"SQLTransactionCallback",value:1,category:4},{name:"DatabaseCallback",value:1,category:4},{name:"DatabaseSync",value:1,category:4},{name:"SQLTransactionSyncCallback",value:1,category:4},{name:"DataTransferItem",value:1,category:4},{name:"StringCallback",value:1,category:4},{name:"Entry",value:1,category:4},{name:"File",value:1,category:4},{name:"DataView",value:1,category:4},{name:"DedicatedWorkerContext",value:1,category:4},{name:"WorkerContext",value:1,category:4},{name:"DirectoryEntry",value:1,category:4},{name:"DirectoryReader",value:1,category:4},{name:"VoidCallback",value:1,category:4},{name:"DirectoryEntrySync",value:1,category:4},{name:"EntrySync",value:1,category:4},{name:"DirectoryReaderSync",value:1,category:4},{name:"FileEntrySync",value:1,category:4},{name:"EntriesCallback",value:1,category:4},{name:"EntryArraySync",value:1,category:4},{name:"DocumentFragment",value:1,category:4},{name:"NodeList",value:1,category:4},{name:"DocumentType",value:1,category:4},{name:"NamedNodeMap",value:1,category:4},{name:"DOMFileSystem",value:1,category:4},{name:"DOMFileSystemSync",value:1,category:4},{name:"DOMImplementation",value:1,category:4},{name:"HTMLDocument",value:1,category:0},{name:"DOMMimeType",value:1,category:4},{name:"DOMPlugin",value:1,category:4},{name:"DOMMimeTypeArray",value:1,category:4},{name:"DOMPluginArray",value:1,category:4},{name:"DOMSelection",value:1,category:4},{name:"Range",value:1,category:4},{name:"DOMSettableTokenList",value:1,category:4},{name:"DOMTokenList",value:1,category:4},{name:"DOMStringMap",value:1,category:4},{name:"ShadowRoot",value:1,category:4},{name:"Entity",value:1,category:4},{name:"EntityReference",value:1,category:4},{name:"EntryArray",value:1,category:4},{name:"MetadataCallback",value:1,category:4},{name:"EntryCallback",value:1,category:4},{name:"Metadata",value:1,category:4},{name:"ErrorCallback",value:1,category:4},{name:"FileError",value:1,category:4},{name:"FileCallback",value:1,category:4},{name:"FileEntry",value:1,category:4},{name:"FileWriterCallback",value:1,category:4},{name:"FileWriterSync",value:1,category:4},{name:"FileReader",value:1,category:4},{name:"FileReaderSync",value:1,category:4},{name:"FileSystemCallback",value:1,category:4},{name:"FileWriter",value:1,category:4},{name:"Float64Array",value:1,category:4},{name:"GamepadList",value:1,category:4},{name:"Gamepad",value:1,category:4},{name:"Geolocation",value:1,category:4},{name:"PositionCallback",value:1,category:4},{name:"Geoposition",value:1,category:4},{name:"Coordinates",value:1,category:4},{name:"HTMLAllCollection",value:1,category:0},{name:"HTMLAnchorElement",value:1,category:0},{name:"HTMLElement",value:3,category:0},{name:"HTMLAppletElement",value:1,category:0},{name:"HTMLAreaElement",value:1,category:0},{name:"HTMLAudioElement",value:1,category:0},{name:"HTMLMediaElement",value:1,category:0},{name:"HTMLBaseElement",value:1,category:0},{name:"HTMLBaseFontElement",value:1,category:0},{name:"HTMLBodyElement",value:1,category:0},{name:"HTMLBRElement",value:1,category:0},{name:"HTMLButtonElement",value:1,category:0},{name:"HTMLFormElement",value:1,category:0},{name:"ValidityState",value:1,category:4},{name:"HTMLCollection",value:1,category:0},{name:"HTMLContentElement",value:1,category:0},{name:"HTMLDataListElement",value:1,category:0},{name:"HTMLDetailsElement",value:1,category:0},{name:"HTMLDirectoryElement",value:1,category:0},{name:"HTMLDivElement",value:1,category:0},{name:"HTMLDListElement",value:1,category:0},{name:"HTMLEmbedElement",value:1,category:0},{name:"SVGDocument",value:1,category:2},{name:"HTMLFieldSetElement",value:1,category:0},{name:"HTMLFontElement",value:1,category:0},{name:"HTMLFormControlsCollection",value:1,category:0},{name:"HTMLFrameElement",value:1,category:0},{name:"HTMLFrameSetElement",value:1,category:0},{name:"HTMLHeadElement",value:1,category:0},{name:"HTMLHeadingElement",value:1,category:0},{name:"HTMLHRElement",value:1,category:0},{name:"HTMLHtmlElement",value:1,category:0},{name:"HTMLIFrameElement",value:1,category:0},{name:"HTMLInputElement",value:1,category:0},{name:"HTMLKeygenElement",value:1,category:0},{name:"HTMLLabelElement",value:1,category:0},{name:"HTMLLegendElement",value:1,category:0},{name:"HTMLLIElement",value:1,category:0},{name:"HTMLLinkElement",value:1,category:0},{name:"HTMLMapElement",value:1,category:0},{name:"HTMLMarqueeElement",value:1,category:0},{name:"TimeRanges",value:1,category:4},{name:"MediaController",value:1,category:4},{name:"MediaError",value:1,category:4},{name:"TextTrackList",value:1,category:4},{name:"TextTrack",value:1,category:4},{name:"HTMLMenuElement",value:1,category:0},{name:"HTMLMetaElement",value:1,category:0},{name:"HTMLMeterElement",value:1,category:0},{name:"HTMLModElement",value:1,category:0},{name:"HTMLObjectElement",value:1,category:0},{name:"HTMLOListElement",value:1,category:0},{name:"HTMLOptGroupElement",value:1,category:0},{name:"HTMLOptionElement",value:1,category:0},{name:"HTMLOptionsCollection",value:1,category:0},{name:"HTMLOutputElement",value:1,category:0},{name:"HTMLParagraphElement",value:1,category:0},{name:"HTMLParamElement",value:1,category:0},{name:"HTMLPreElement",value:1,category:0},{name:"HTMLProgressElement",value:1,category:0},{name:"HTMLQuoteElement",value:1,category:0},{name:"HTMLScriptElement",value:1,category:0},{name:"HTMLSelectElement",value:1,category:0},{name:"HTMLShadowElement",value:1,category:0},{name:"HTMLSourceElement",value:1,category:0},{name:"HTMLSpanElement",value:1,category:0},{name:"HTMLStyleElement",value:1,category:0},{name:"HTMLTableCaptionElement",value:1,category:0},{name:"HTMLTableCellElement",value:1,category:0},{name:"HTMLTableColElement",value:1,category:0},{name:"HTMLTableElement",value:1,category:0},{name:"HTMLTableSectionElement",value:1,category:0},{name:"HTMLTableRowElement",value:1,category:0},{name:"HTMLTextAreaElement",value:1,category:0},{name:"HTMLTitleElement",value:1,category:0},{name:"HTMLTrackElement",value:1,category:0},{name:"HTMLUListElement",value:1,category:0},{name:"HTMLUnknownElement",value:1,category:0},{name:"IDBCursor",value:1,category:4},{name:"IDBAny",value:1,category:4},{name:"IDBKey",value:1,category:4},{name:"IDBRequest",value:1,category:4},{name:"IDBCursorWithValue",value:1,category:4},{name:"IDBDatabase",value:1,category:4},{name:"DOMStringList",value:1,category:4},{name:"IDBObjectStore",value:1,category:4},{name:"IDBTransaction",value:1,category:4},{name:"IDBFactory",value:1,category:4},{name:"IDBVersionChangeRequest",value:1,category:4},{name:"IDBOpenDBRequest",value:1,category:4},{name:"IDBIndex",value:1,category:4},{name:"IDBKeyRange",value:1,category:4},{name:"DOMError",value:1,category:4},{name:"Int16Array",value:1,category:4},{name:"Int32Array",value:1,category:4},{name:"Int8Array",value:1,category:4},{name:"JavaScriptCallFrame",value:1,category:4},{name:"LocalMediaStream",value:1,category:4},{name:"MediaStream",value:1,category:4},{name:"Location",value:1,category:4},{name:"MediaQueryList",value:1,category:4},{name:"MediaQueryListListener",value:1,category:4},{name:"MediaSource",value:1,category:4},{name:"SourceBufferList",value:1,category:4},{name:"SourceBuffer",value:1,category:4},{name:"MediaStreamTrackList",value:1,category:4},{name:"MediaStreamList",value:1,category:4},{name:"MediaStreamTrack",value:1,category:4},{name:"MessageChannel",value:1,category:4},{name:"MessagePort",value:1,category:4},{name:"MutationObserver",value:1,category:4},{name:"MutationRecord",value:1,category:4},{name:"Navigator",value:1,category:4},{name:"BatteryManager",value:1,category:4},{name:"NavigatorUserMediaErrorCallback",value:1,category:4},{name:"NavigatorUserMediaError",value:1,category:4},{name:"NavigatorUserMediaSuccessCallback",value:1,category:4},{name:"NodeFilter",value:1,category:4},{name:"NodeIterator",value:1,category:4},{name:"Notation",value:1,category:4},{name:"Notification",value:1,category:4},{name:"NotificationPermissionCallback",value:1,category:4},{name:"NotificationCenter",value:1,category:4},{name:"OESVertexArrayObject",value:1,category:4},{name:"WebGLVertexArrayObjectOES",value:1,category:1},{name:"Performance",value:1,category:4},{name:"PerformanceNavigation",value:1,category:4},{name:"PerformanceTiming",value:1,category:4},{name:"PositionErrorCallback",value:1,category:4},{name:"PositionError",value:1,category:4},{name:"ProcessingInstruction",value:1,category:4},{name:"RadioNodeList",value:1,category:4},{name:"RTCDataChannel",value:1,category:4},{name:"RTCPeerConnection",value:1,category:4},{name:"RTCSessionDescription",value:1,category:4},{name:"RTCIceCandidate",value:1,category:4},{name:"RTCSessionDescriptionCallback",value:1,category:4},{name:"RTCStatsCallback",value:1,category:4},{name:"RTCStatsResponse",value:1,category:4},{name:"RTCStatsReport",value:1,category:4},{name:"RTCStatsElement",value:1,category:4},{name:"ScriptProfile",value:1,category:4},{name:"ScriptProfileNode",value:1,category:4},{name:"SharedWorker",value:1,category:4},{name:"AbstractWorker",value:1,category:4},{name:"SharedWorkerContext",value:1,category:4},{name:"SpeechGrammarList",value:1,category:4},{name:"SpeechGrammar",value:1,category:4},{name:"SpeechInputResultList",value:1,category:4},{name:"SpeechInputResult",value:1,category:4},{name:"SpeechRecognition",value:1,category:4},{name:"SpeechRecognitionResult",value:1,category:4},{name:"SpeechRecognitionAlternative",value:1,category:4},{name:"SpeechRecognitionResultList",value:1,category:4},{name:"SQLResultSet",value:1,category:4},{name:"SQLResultSetRowList",value:1,category:4},{name:"SQLStatementCallback",value:1,category:4},{name:"SQLTransaction",value:1,category:4},{name:"SQLStatementErrorCallback",value:1,category:4},{name:"SQLTransactionErrorCallback",value:1,category:4},{name:"SQLError",value:1,category:4},{name:"SQLTransactionSync",value:1,category:4},{name:"StorageInfo",value:1,category:4},{name:"StorageInfoUsageCallback",value:1,category:4},{name:"StorageInfoQuotaCallback",value:1,category:4},{name:"StorageInfoErrorCallback",value:1,category:4},{name:"DOMCoreException",value:1,category:4},{name:"StyleSheetList",value:1,category:4},{name:"SVGAElement",value:1,category:2},{name:"SVGTransformable",value:1,category:2},{name:"SVGAnimatedString",value:1,category:2},{name:"SVGAltGlyphDefElement",value:1,category:2},{name:"SVGElement",value:3,category:2},{name:"SVGAltGlyphElement",value:1,category:2},{name:"SVGURIReference",value:1,category:2},{name:"SVGAltGlyphItemElement",value:1,category:2},{name:"SVGAnimateColorElement",value:1,category:2},{name:"SVGAnimationElement",value:1,category:2},{name:"SVGAnimatedAngle",value:1,category:2},{name:"SVGAngle",value:1,category:2},{name:"SVGAnimatedLength",value:1,category:2},{name:"SVGLength",value:1,category:2},{name:"SVGAnimatedLengthList",value:1,category:2},{name:"SVGLengthList",value:1,category:2},{name:"SVGAnimatedNumberList",value:1,category:2},{name:"SVGNumberList",value:1,category:2},{name:"SVGAnimatedPreserveAspectRatio",value:1,category:2},{name:"SVGPreserveAspectRatio",value:1,category:2},{name:"SVGAnimatedRect",value:1,category:2},{name:"SVGRect",value:1,category:2},{name:"SVGAnimatedTransformList",value:1,category:2},{name:"SVGTransformList",value:1,category:2},{name:"SVGAnimateElement",value:1,category:2},{name:"SVGAnimateMotionElement",value:1,category:2},{name:"SVGAnimateTransformElement",value:1,category:2},{name:"ElementTimeControl",value:1,category:4},{name:"SVGCircleElement",value:1,category:2},{name:"SVGClipPathElement",value:1,category:2},{name:"SVGAnimatedEnumeration",value:1,category:2},{name:"SVGColor",value:1,category:2},{name:"SVGComponentTransferFunctionElement",value:1,category:2},{name:"SVGAnimatedNumber",value:1,category:2},{name:"SVGCursorElement",value:1,category:2},{name:"SVGExternalResourcesRequired",value:1,category:2},{name:"SVGDefsElement",value:1,category:2},{name:"SVGDescElement",value:1,category:2},{name:"SVGStylable",value:1,category:2},{name:"SVGSVGElement",value:1,category:2},{name:"SVGElementInstance",value:1,category:2},{name:"EventTarget",value:1,category:4},{name:"SVGElementInstanceList",value:1,category:2},{name:"SVGUseElement",value:1,category:2},{name:"SVGEllipseElement",value:1,category:2},{name:"SVGAnimatedBoolean",value:1,category:2},{name:"SVGFEBlendElement",value:1,category:2},{name:"SVGFilterPrimitiveStandardAttributes",value:1,category:2},{name:"SVGFEColorMatrixElement",value:1,category:2},{name:"SVGFEComponentTransferElement",value:1,category:2},{name:"SVGFECompositeElement",value:1,category:2},{name:"SVGFEConvolveMatrixElement",value:1,category:2},{name:"SVGAnimatedInteger",value:1,category:2},{name:"SVGFEDiffuseLightingElement",value:1,category:2},{name:"SVGFEDisplacementMapElement",value:1,category:2},{name:"SVGFEDistantLightElement",value:1,category:2},{name:"SVGFEDropShadowElement",value:1,category:2},{name:"SVGFEFloodElement",value:1,category:2},{name:"SVGFEFuncAElement",value:1,category:2},{name:"SVGFEFuncBElement",value:1,category:2},{name:"SVGFEFuncGElement",value:1,category:2},{name:"SVGFEFuncRElement",value:1,category:2},{name:"SVGFEGaussianBlurElement",value:1,category:2},{name:"SVGFEImageElement",value:1,category:2},{name:"SVGFEMergeElement",value:1,category:2},{name:"SVGFEMergeNodeElement",value:1,category:2},{name:"SVGFEMorphologyElement",value:1,category:2},{name:"SVGFEOffsetElement",value:1,category:2},{name:"SVGFEPointLightElement",value:1,category:2},{name:"SVGFESpecularLightingElement",value:1,category:2},{name:"SVGFESpotLightElement",value:1,category:2},{name:"SVGFETileElement",value:1,category:2},{name:"SVGFETurbulenceElement",value:1,category:2},{name:"SVGFilterElement",value:1,category:2},{name:"SVGFitToViewBox",value:1,category:2},{name:"SVGFontElement",value:1,category:2},{name:"SVGFontFaceElement",value:1,category:2},{name:"SVGFontFaceFormatElement",value:1,category:2},{name:"SVGFontFaceNameElement",value:1,category:2},{name:"SVGFontFaceSrcElement",value:1,category:2},{name:"SVGFontFaceUriElement",value:1,category:2},{name:"SVGForeignObjectElement",value:1,category:2},{name:"SVGGElement",value:1,category:2},{name:"SVGGlyphElement",value:1,category:2},{name:"SVGGlyphRefElement",value:1,category:2},{name:"SVGGradientElement",value:1,category:2},{name:"SVGHKernElement",value:1,category:2},{name:"SVGImageElement",value:1,category:2},{name:"SVGLinearGradientElement",value:1,category:2},{name:"SVGLineElement",value:1,category:2},{name:"SVGLocatable",value:1,category:2},{name:"SVGMatrix",value:1,category:2},{name:"SVGMarkerElement",value:1,category:2},{name:"SVGMaskElement",value:1,category:2},{name:"SVGMetadataElement",value:1,category:2},{name:"SVGMissingGlyphElement",value:1,category:2},{name:"SVGMPathElement",value:1,category:2},{name:"SVGNumber",value:1,category:2},{name:"SVGPaint",value:1,category:2},{name:"SVGPathElement",value:1,category:2},{name:"SVGPathSegList",value:1,category:2},{name:"SVGPathSegArcAbs",value:1,category:2},{name:"SVGPathSegArcRel",value:1,category:2},{name:"SVGPathSegClosePath",value:1,category:2},{name:"SVGPathSegCurvetoCubicAbs",value:1,category:2},{name:"SVGPathSegCurvetoCubicRel",value:1,category:2},{name:"SVGPathSegCurvetoCubicSmoothAbs",value:1,category:2},{name:"SVGPathSegCurvetoCubicSmoothRel",value:1,category:2},{name:"SVGPathSegCurvetoQuadraticAbs",value:1,category:2},{name:"SVGPathSegCurvetoQuadraticRel",value:1,category:2},{name:"SVGPathSegCurvetoQuadraticSmoothAbs",value:1,category:2},{name:"SVGPathSegCurvetoQuadraticSmoothRel",value:1,category:2},{name:"SVGPathSegLinetoAbs",value:1,category:2},{name:"SVGPathSegLinetoHorizontalAbs",value:1,category:2},{name:"SVGPathSegLinetoHorizontalRel",value:1,category:2},{name:"SVGPathSegLinetoRel",value:1,category:2},{name:"SVGPathSegLinetoVerticalAbs",value:1,category:2},{name:"SVGPathSegLinetoVerticalRel",value:1,category:2},{name:"SVGPathSegMovetoAbs",value:1,category:2},{name:"SVGPathSegMovetoRel",value:1,category:2},{name:"SVGPoint",value:1,category:2},{name:"SVGPathSeg",value:1,category:2},{name:"SVGPatternElement",value:1,category:2},{name:"SVGPointList",value:1,category:2},{name:"SVGPolygonElement",value:1,category:2},{name:"SVGPolylineElement",value:1,category:2},{name:"SVGRadialGradientElement",value:1,category:2},{name:"SVGRectElement",value:1,category:2},{name:"SVGScriptElement",value:1,category:2},{name:"SVGSetElement",value:1,category:2},{name:"SVGStopElement",value:1,category:2},{name:"SVGStyleElement",value:1,category:2},{name:"SVGLangSpace",value:1,category:2},{name:"SVGZoomAndPan",value:1,category:2},{name:"SVGViewSpec",value:1,category:2},{name:"SVGTransform",value:1,category:2},{name:"SVGSwitchElement",value:1,category:2},{name:"SVGSymbolElement",value:1,category:2},{name:"SVGTests",value:1,category:2},{name:"SVGStringList",value:1,category:2},{name:"SVGTextContentElement",value:1,category:2},{name:"SVGTextElement",value:1,category:2},{name:"SVGTextPathElement",value:1,category:2},{name:"SVGTextPositioningElement",value:1,category:2},{name:"SVGTitleElement",value:1,category:2},{name:"SVGTRefElement",value:1,category:2},{name:"SVGTSpanElement",value:1,category:2},{name:"SVGViewElement",value:1,category:2},{name:"SVGVKernElement",value:1,category:2},{name:"TextTrackCueList",value:1,category:4},{name:"TextTrackCue",value:1,category:4},{name:"Touch",value:1,category:4},{name:"TouchList",value:1,category:4},{name:"TreeWalker",value:1,category:4},{name:"Uint16Array",value:1,category:4},{name:"Uint32Array",value:1,category:4},{name:"Uint8ClampedArray",value:1,category:4},{name:"WebGLRenderingContext",value:3,category:1},{name:"WebGLProgram",value:1,category:1},{name:"WebGLBuffer",value:1,category:1},{name:"WebGLFramebuffer",value:1,category:1},{name:"WebGLRenderbuffer",value:1,category:1},{name:"WebGLTexture",value:1,category:1},{name:"WebGLShader",value:1,category:1},{name:"WebGLActiveInfo",value:1,category:1},{name:"WebGLContextAttributes",value:1,category:1},{name:"WebGLShaderPrecisionFormat",value:1,category:1},{name:"WebGLUniformLocation",value:1,category:1},{name:"WebKitAnimationList",value:1,category:4},{name:"WebKitAnimation",value:1,category:4},{name:"WebKitCSSFilterValue",value:1,category:4},{name:"WebKitCSSKeyframeRule",value:1,category:4},{name:"WebKitCSSKeyframesRule",value:1,category:4},{name:"WebKitCSSMatrix",value:1,category:4},{name:"WebKitCSSMixFunctionValue",value:1,category:4},{name:"WebKitCSSTransformValue",value:1,category:4},{name:"WebKitNamedFlow",value:1,category:4},{name:"WebSocket",value:1,category:4},{name:"Worker",value:1,category:4},{name:"WorkerLocation",value:1,category:4},{name:"WorkerNavigator",value:1,category:4},{name:"XMLHttpRequest",value:1,category:4},{name:"XMLHttpRequestUpload",value:1,category:4},{name:"DOMFormData",value:1,category:4},{name:"XPathEvaluator",value:1,category:4},{name:"XPathExpression",value:1,category:4},{name:"XPathNSResolver",value:1,category:4},{name:"XPathResult",value:1,category:4},{name:"XSLTProcessor",value:1,category:4}],links:[{source:0,target:1},{source:0,target:2},{source:0,target:3},{source:4,target:4},{source:5,target:4},{source:6,target:7},{source:6,target:8},{source:9,target:3},{source:10,target:9},{source:11,target:12},{source:11,target:9},{source:11,target:13},{source:11,target:14},{source:15,target:16},{source:15,target:17},{source:15,target:0},{source:15,target:18},{source:15,target:9},{source:15,target:11},{source:15,target:19},{source:15,target:20},{source:15,target:21},{source:15,target:22},{source:15,target:23},{source:15,target:24},{source:15,target:25},{source:15,target:26},{source:15,target:27},{source:15,target:28},{source:15,target:29},{source:15,target:30},{source:15,target:31},{source:15,target:32},{source:15,target:4},{source:16,target:1},{source:13,target:14},{source:1,target:15},{source:1,target:1},{source:1,target:14},{source:14,target:3},{source:12,target:1},{source:18,target:1},{source:18,target:14},{source:18,target:3},{source:33,target:34},{source:35,target:33},{source:35,target:36},{source:35,target:37},{source:35,target:38},{source:35,target:39},{source:35,target:34},{source:35,target:40},{source:35,target:41},{source:42,target:43},{source:19,target:1},{source:20,target:1},{source:44,target:7},{source:45,target:46},{source:47,target:48},{source:47,target:49},{source:47,target:39},{source:50,target:44},{source:51,target:52},{source:21,target:1},{source:21,target:9},{source:53,target:5},{source:54,target:55},{source:56,target:55},{source:56,target:57},{source:58,target:55},{source:58,target:59},{source:58,target:60},{source:61,target:55},{source:61,target:62},{source:61,target:59},{source:63,target:55},{source:63,target:57},{source:64,target:65},{source:64,target:66},{source:64,target:67},{source:64,target:68},{source:55,target:55},{source:55,target:60},{source:62,target:55},{source:57,target:55},{source:57,target:65},{source:69,target:55},{source:69,target:57},{source:60,target:70},{source:60,target:62},{source:60,target:55},{source:71,target:55},{source:72,target:65},{source:73,target:74},{source:75,target:73},{source:75,target:76},{source:76,target:77},{source:78,target:79},{source:78,target:80},{source:49,target:81},{source:49,target:78},{source:82,target:5},{source:83,target:84},{source:22,target:1},{source:22,target:14},{source:85,target:80},{source:85,target:86},{source:85,target:87},{source:88,target:89},{source:88,target:90},{source:88,target:88},{source:88,target:91},{source:86,target:92},{source:90,target:93},{source:94,target:7},{source:94,target:8},{source:94,target:95},{source:96,target:7},{source:96,target:97},{source:98,target:85},{source:99,target:88},{source:100,target:60},{source:100,target:96},{source:100,target:101},{source:102,target:103},{source:104,target:102},{source:103,target:102},{source:105,target:103},{source:106,target:7},{source:106,target:107},{source:108,target:109},{source:23,target:1},{source:23,target:14},{source:8,target:7},{source:8,target:109},{source:8,target:110},{source:8,target:8},{source:8,target:57},{source:8,target:6},{source:8,target:46},{source:8,target:45},{source:8,target:95},{source:8,target:111},{source:112,target:7},{source:113,target:7},{source:92,target:114},{source:80,target:98},{source:80,target:85},{source:80,target:115},{source:80,target:116},{source:80,target:87},{source:114,target:80},{source:93,target:89},{source:116,target:80},{source:89,target:99},{source:89,target:89},{source:89,target:117},{source:89,target:88},{source:118,target:119},{source:120,target:81},{source:121,target:80},{source:121,target:122},{source:121,target:120},{source:91,target:89},{source:91,target:123},{source:91,target:81},{source:48,target:81},{source:124,target:119},{source:125,target:4},{source:126,target:98},{source:127,target:119},{source:122,target:127},{source:3,target:5},{source:3,target:3},{source:128,target:5},{source:128,target:128},{source:24,target:1},{source:24,target:13},{source:129,target:130},{source:131,target:132},{source:133,target:134},{source:135,target:7},{source:135,target:95},{source:136,target:137},{source:138,target:137},{source:139,target:137},{source:140,target:141},{source:142,target:137},{source:143,target:137},{source:144,target:137},{source:145,target:137},{source:146,target:137},{source:146,target:147},{source:146,target:95},{source:146,target:148},{source:34,target:137},{source:149,target:7},{source:150,target:137},{source:150,target:95},{source:151,target:137},{source:151,target:149},{source:152,target:137},{source:153,target:137},{source:154,target:137},{source:155,target:137},{source:101,target:8},{source:101,target:135},{source:101,target:149},{source:137,target:8},{source:137,target:149},{source:156,target:137},{source:156,target:157},{source:158,target:137},{source:158,target:149},{source:158,target:147},{source:158,target:148},{source:159,target:137},{source:160,target:149},{source:160,target:7},{source:147,target:137},{source:147,target:149},{source:161,target:137},{source:161,target:157},{source:162,target:137},{source:163,target:137},{source:164,target:137},{source:165,target:137},{source:166,target:137},{source:167,target:137},{source:167,target:157},{source:39,target:137},{source:168,target:137},{source:168,target:48},{source:168,target:147},{source:168,target:95},{source:168,target:148},{source:168,target:114},{source:169,target:137},{source:169,target:147},{source:169,target:95},{source:169,target:148},{source:170,target:137},{source:170,target:147},{source:171,target:137},{source:171,target:147},{source:172,target:137},{source:173,target:137},{source:173,target:70},{source:173,target:108},{source:174,target:137},{source:174,target:149},{source:175,target:137},{source:141,target:137},{source:141,target:176},{source:141,target:177},{source:141,target:178},{source:141,target:179},{source:141,target:180},{source:181,target:137},{source:182,target:137},{source:183,target:137},{source:183,target:95},{source:184,target:137},{source:185,target:137},{source:185,target:147},{source:185,target:148},{source:185,target:157},{source:186,target:137},{source:187,target:137},{source:188,target:137},{source:188,target:147},{source:189,target:149},{source:189,target:188},{source:189,target:7},{source:190,target:137},{source:190,target:147},{source:190,target:108},{source:190,target:95},{source:190,target:148},{source:191,target:137},{source:192,target:137},{source:193,target:137},{source:194,target:137},{source:194,target:95},{source:195,target:137},{source:196,target:137},{source:197,target:137},{source:197,target:147},{source:197,target:95},{source:197,target:189},{source:197,target:149},{source:197,target:148},{source:197,target:7},{source:198,target:137},{source:199,target:137},{source:200,target:137},{source:201,target:137},{source:201,target:70},{source:202,target:137},{source:203,target:137},{source:204,target:137},{source:205,target:137},{source:205,target:202},{source:205,target:149},{source:205,target:206},{source:207,target:137},{source:207,target:149},{source:206,target:137},{source:206,target:149},{source:208,target:137},{source:208,target:147},{source:208,target:95},{source:208,target:148},{source:209,target:137},{source:210,target:137},{source:210,target:180},{source:211,target:137},{source:212,target:137},{source:40,target:141},{source:213,target:214},{source:213,target:215},{source:213,target:216},{source:217,target:213},{source:218,target:219},{source:218,target:214},{source:218,target:220},{source:218,target:221},{source:222,target:215},{source:222,target:223},{source:222,target:224},{source:222,target:216},{source:225,target:214},{source:225,target:220},{source:225,target:216},{source:226,target:215},{source:226,target:226},{source:220,target:219},{source:220,target:214},{source:220,target:221},{source:220,target:216},{source:220,target:225},{source:224,target:216},{source:216,target:227},{source:216,target:214},{source:216,target:221},{source:221,target:218},{source:221,target:227},{source:221,target:220},{source:223,target:216},{source:228,target:5},{source:228,target:228},{source:229,target:5},{source:229,target:229},{source:230,target:5},{source:230,target:230},{source:231,target:231},{source:232,target:233},{source:234,target:219},{source:177,target:176},{source:25,target:12},{source:25,target:141},{source:235,target:236},{source:236,target:235},{source:237,target:238},{source:237,target:239},{source:233,target:240},{source:26,target:12},{source:26,target:233},{source:27,target:12},{source:27,target:233},{source:241,target:233},{source:240,target:242},{source:243,target:244},{source:115,target:117},{source:245,target:7},{source:246,target:95},{source:246,target:7},{source:97,target:7},{source:247,target:131},{source:247,target:104},{source:247,target:105},{source:247,target:248},{source:247,target:129},{source:249,target:250},{source:251,target:232},{source:7,target:97},{source:7,target:95},{source:7,target:7},{source:7,target:8},{source:252,target:7},{source:253,target:252},{source:253,target:7},{source:95,target:7},{source:254,target:7},{source:255,target:256},{source:257,target:255},{source:257,target:87},{source:258,target:259},{source:28,target:12},{source:28,target:14},{source:28,target:32},{source:29,target:1},{source:260,target:52},{source:260,target:261},{source:260,target:262},{source:132,target:133},{source:263,target:264},{source:265,target:7},{source:265,target:70},{source:266,target:95},{source:107,target:7},{source:107,target:94},{source:107,target:107},{source:107,target:46},{source:107,target:45},{source:68,target:64},{source:67,target:64},{source:267,target:4},{source:267,target:5},{source:268,target:269},{source:268,target:241},{source:268,target:270},{source:268,target:233},{source:268,target:271},{source:268,target:267},{source:268,target:272},{source:271,target:269},{source:272,target:273},{source:274,target:275},{source:30,target:1},{source:276,target:277},{source:111,target:94},{source:111,target:8},{source:111,target:7},{source:111,target:95},{source:111,target:106},{source:278,target:279},{source:278,target:244},{source:280,target:84},{source:239,target:176},{source:239,target:2},{source:238,target:239},{source:281,target:282},{source:283,target:284},{source:285,target:281},{source:286,target:287},{source:288,target:286},{source:289,target:290},{source:291,target:292},{source:293,target:292},{source:74,target:292},{source:294,target:295},{source:296,target:289},{source:77,target:296},{source:297,target:298},{source:297,target:299},{source:300,target:301},{source:70,target:59},{source:70,target:7},{source:70,target:70},{source:302,target:70},{source:303,target:304},{source:303,target:305},{source:306,target:307},{source:308,target:309},{source:310,target:307},{source:311,target:312},{source:313,target:314},{source:315,target:316},{source:317,target:318},{source:319,target:320},{source:321,target:322},{source:323,target:324},{source:325,target:326},{source:327,target:312},{source:328,target:312},{source:329,target:312},{source:312,target:330},{source:312,target:307},{source:331,target:304},{source:331,target:315},{source:332,target:304},{source:332,target:333},{source:334,target:65},{source:334,target:67},{source:335,target:307},{source:335,target:336},{source:335,target:319},{source:335,target:333},{source:337,target:338},{source:337,target:315},{source:339,target:304},{source:340,target:341},{source:157,target:342},{source:307,target:8},{source:307,target:342},{source:307,target:307},{source:343,target:344},{source:343,target:345},{source:343,target:307},{source:343,target:346},{source:343,target:343},{source:345,target:343},{source:347,target:304},{source:347,target:315},{source:338,target:348},{source:349,target:350},{source:349,target:305},{source:349,target:333},{source:351,target:350},{source:351,target:305},{source:351,target:333},{source:351,target:319},{source:352,target:350},{source:352,target:305},{source:353,target:350},{source:353,target:305},{source:353,target:336},{source:353,target:333},{source:354,target:350},{source:354,target:336},{source:354,target:333},{source:354,target:305},{source:354,target:319},{source:354,target:355},{source:354,target:348},{source:356,target:350},{source:356,target:336},{source:356,target:305},{source:357,target:350},{source:357,target:305},{source:357,target:336},{source:357,target:333},{source:358,target:307},{source:358,target:336},{source:359,target:350},{source:359,target:336},{source:359,target:305},{source:360,target:350},{source:361,target:335},{source:362,target:335},{source:363,target:335},{source:364,target:335},{source:365,target:350},{source:365,target:305},{source:365,target:336},{source:366,target:350},{source:366,target:321},{source:367,target:350},{source:368,target:307},{source:368,target:305},{source:369,target:350},{source:369,target:305},{source:369,target:333},{source:369,target:336},{source:370,target:350},{source:370,target:336},{source:370,target:305},{source:371,target:307},{source:371,target:336},{source:372,target:350},{source:372,target:305},{source:372,target:336},{source:373,target:307},{source:373,target:336},{source:374,target:350},{source:374,target:305},{source:375,target:350},{source:375,target:336},{source:375,target:355},{source:375,target:333},{source:376,target:341},{source:376,target:355},{source:376,target:333},{source:376,target:315},{source:350,target:341},{source:350,target:315},{source:350,target:305},{source:377,target:321},{source:377,target:323},{source:378,target:307},{source:379,target:307},{source:380,target:307},{source:381,target:307},{source:382,target:307},{source:383,target:307},{source:384,target:304},{source:384,target:315},{source:385,target:304},{source:386,target:307},{source:387,target:341},{source:388,target:341},{source:388,target:325},{source:388,target:333},{source:389,target:307},{source:390,target:304},{source:390,target:315},{source:390,target:321},{source:318,target:316},{source:391,target:388},{source:391,target:315},{source:392,target:304},{source:392,target:315},{source:393,target:307},{source:393,target:324},{source:393,target:394},{source:395,target:377},{source:395,target:315},{source:395,target:333},{source:395,target:313},{source:395,target:314},{source:396,target:341},{source:396,target:315},{source:396,target:333},{source:394,target:394},{source:397,target:307},{source:398,target:307},{source:399,target:338},{source:320,target:400},{source:401,target:334},{source:402,target:304},{source:402,target:403},{source:402,target:336},{source:402,target:404},{source:402,target:405},{source:402,target:406},{source:402,target:407},{source:402,target:408},{source:402,target:409},{source:402,target:410},{source:402,target:411},{source:402,target:412},{source:402,target:413},{source:402,target:414},{source:402,target:415},{source:402,target:416},{source:402,target:417},{source:402,target:418},{source:402,target:419},{source:402,target:420},{source:402,target:421},{source:402,target:422},{source:402,target:423},{source:404,target:424},{source:405,target:424},{source:406,target:424},{source:407,target:424},{source:408,target:424},{source:409,target:424},{source:410,target:424},{source:411,target:424},{source:412,target:424},{source:413,target:424},{source:414,target:424},{source:415,target:424},{source:416,target:424},{source:417,target:424},{source:418,target:424},{source:419,target:424},{source:420,target:424},{source:403,target:424},{source:421,target:424},{source:422,target:424},{source:425,target:377},{source:425,target:315},{source:425,target:333},{source:425,target:325},{source:423,target:423},{source:426,target:423},{source:427,target:304},{source:427,target:426},{source:428,target:304},{source:428,target:426},{source:429,target:388},{source:429,target:315},{source:430,target:304},{source:430,target:315},{source:431,target:338},{source:432,target:312},{source:433,target:341},{source:433,target:336},{source:341,target:305},{source:341,target:57},{source:341,target:65},{source:434,target:435},{source:342,target:436},{source:342,target:423},{source:342,target:437},{source:342,target:315},{source:342,target:324},{source:342,target:307},{source:342,target:314},{source:342,target:316},{source:342,target:394},{source:342,target:400},{source:342,target:438},{source:342,target:8},{source:342,target:95},{source:439,target:304},{source:440,target:377},{source:441,target:442},{source:443,target:341},{source:443,target:333},{source:443,target:315},{source:443,target:423},{source:443,target:324},{source:444,target:304},{source:445,target:309},{source:445,target:333},{source:445,target:315},{source:446,target:443},{source:446,target:317},{source:446,target:319},{source:447,target:341},{source:438,target:394},{source:304,target:393},{source:304,target:325},{source:326,target:438},{source:448,target:309},{source:449,target:446},{source:309,target:305},{source:346,target:304},{source:346,target:343},{source:346,target:315},{source:450,target:436},{source:450,target:442},{source:437,target:321},{source:437,target:326},{source:437,target:323},{source:437,target:307},{source:451,target:307},{source:43,target:44},{source:43,target:43},{source:180,target:452},{source:180,target:453},{source:453,target:180},{source:453,target:94},{source:452,target:453},{source:179,target:180},{source:454,target:344},{source:455,target:454},{source:456,target:7},{source:456,target:252},{source:457,target:5},{source:457,target:457},{source:458,target:5},{source:458,target:458},{source:2,target:5},{source:2,target:2},{source:459,target:2},{source:459,target:459},{source:31,target:1},{source:31,target:3},{source:460,target:33},{source:460,target:461},{source:460,target:462},{source:460,target:463},{source:460,target:464},{source:460,target:465},{source:460,target:4},{source:460,target:5},{source:460,target:466},{source:460,target:467},{source:460,target:468},{source:460,target:469},{source:460,target:470},{source:460,target:36},{source:460,target:39},{source:460,target:34},{source:460,target:40},{source:460,target:3},{source:471,target:472},{source:473,target:72},{source:474,target:55},{source:474,target:57},{source:475,target:55},{source:475,target:62},{source:475,target:474},{source:476,target:476},{source:477,target:72},{source:478,target:72},{source:479,target:95},{source:480,target:4},{source:480,target:5},{source:481,target:279},{source:84,target:222},{source:84,target:482},{source:84,target:483},{source:84,target:84},{source:84,target:257},{source:84,target:73},{source:84,target:76},{source:84,target:126},{source:84,target:99},{source:84,target:89},{source:484,target:485},{source:484,target:4},{source:484,target:5},{source:484,target:486},{source:487,target:488},{source:487,target:489},{source:487,target:490},{source:488,target:490},{source:490,target:7},{source:491,target:7},{source:491,target:94}]},n={legend:{data:["HTMLElement","WebGL","SVG","CSS","Other"]},series:[{type:"graph",layout:"force",animation:!1,label:{normal:{position:"right",formatter:"{b}"}},draggable:!0,data:e.nodes.map((function(e,t){return e.id=t,e})),categories:e.categories,force:{edgeLength:5,repulsion:20,gravity:.2},edges:e.links}]};return t["default"].createElement(r["default"],{option:n,style:{height:"700px",width:"100%"}})},a=i;return t["default"].createElement(a)},previewerProps:{sources:{_:{tsx:'import React from \'react\';\nimport ReactECharts from \'echarts-for-react\';\n\nconst Page: React.FC = () => {\n const webkitDep = {"type":"force","categories":[{"name":"HTMLElement","keyword":{},"base":"HTMLElement"},{"name":"WebGL","keyword":{},"base":"WebGLRenderingContext"},{"name":"SVG","keyword":{},"base":"SVGElement"},{"name":"CSS","keyword":{},"base":"CSSRule"},{"name":"Other","keyword":{}}],"nodes":[{"name":"AnalyserNode","value":1,"category":4},{"name":"AudioNode","value":1,"category":4},{"name":"Uint8Array","value":1,"category":4},{"name":"Float32Array","value":1,"category":4},{"name":"ArrayBuffer","value":1,"category":4},{"name":"ArrayBufferView","value":1,"category":4},{"name":"Attr","value":1,"category":4},{"name":"Node","value":1,"category":4},{"name":"Element","value":1,"category":4},{"name":"AudioBuffer","value":1,"category":4},{"name":"AudioBufferCallback","value":1,"category":4},{"name":"AudioBufferSourceNode","value":1,"category":4},{"name":"AudioSourceNode","value":1,"category":4},{"name":"AudioGain","value":1,"category":4},{"name":"AudioParam","value":1,"category":4},{"name":"AudioContext","value":1,"category":4},{"name":"AudioDestinationNode","value":1,"category":4},{"name":"AudioListener","value":1,"category":4},{"name":"BiquadFilterNode","value":1,"category":4},{"name":"ChannelMergerNode","value":1,"category":4},{"name":"ChannelSplitterNode","value":1,"category":4},{"name":"ConvolverNode","value":1,"category":4},{"name":"DelayNode","value":1,"category":4},{"name":"DynamicsCompressorNode","value":1,"category":4},{"name":"GainNode","value":1,"category":4},{"name":"MediaElementAudioSourceNode","value":1,"category":4},{"name":"MediaStreamAudioDestinationNode","value":1,"category":4},{"name":"MediaStreamAudioSourceNode","value":1,"category":4},{"name":"OscillatorNode","value":1,"category":4},{"name":"PannerNode","value":1,"category":4},{"name":"ScriptProcessorNode","value":1,"category":4},{"name":"WaveShaperNode","value":1,"category":4},{"name":"WaveTable","value":1,"category":4},{"name":"CanvasRenderingContext","value":1,"category":4},{"name":"HTMLCanvasElement","value":1,"category":0},{"name":"CanvasRenderingContext2D","value":1,"category":4},{"name":"ImageData","value":1,"category":4},{"name":"CanvasGradient","value":1,"category":4},{"name":"CanvasPattern","value":1,"category":4},{"name":"HTMLImageElement","value":1,"category":0},{"name":"HTMLVideoElement","value":1,"category":0},{"name":"TextMetrics","value":1,"category":4},{"name":"CDATASection","value":1,"category":4},{"name":"Text","value":1,"category":4},{"name":"CharacterData","value":1,"category":4},{"name":"ClientRectList","value":1,"category":4},{"name":"ClientRect","value":1,"category":4},{"name":"Clipboard","value":1,"category":4},{"name":"FileList","value":1,"category":4},{"name":"DataTransferItemList","value":1,"category":4},{"name":"Comment","value":1,"category":4},{"name":"Console","value":1,"category":4},{"name":"MemoryInfo","value":1,"category":4},{"name":"Crypto","value":1,"category":4},{"name":"CSSCharsetRule","value":1,"category":3},{"name":"CSSRule","value":3,"category":3},{"name":"CSSFontFaceRule","value":1,"category":3},{"name":"CSSStyleDeclaration","value":1,"category":3},{"name":"CSSImportRule","value":1,"category":3},{"name":"MediaList","value":1,"category":4},{"name":"CSSStyleSheet","value":1,"category":3},{"name":"CSSMediaRule","value":1,"category":3},{"name":"CSSRuleList","value":1,"category":3},{"name":"CSSPageRule","value":1,"category":3},{"name":"CSSPrimitiveValue","value":1,"category":3},{"name":"CSSValue","value":1,"category":3},{"name":"Counter","value":1,"category":4},{"name":"RGBColor","value":1,"category":4},{"name":"Rect","value":1,"category":4},{"name":"CSSStyleRule","value":1,"category":3},{"name":"StyleSheet","value":1,"category":4},{"name":"CSSUnknownRule","value":1,"category":3},{"name":"CSSValueList","value":1,"category":3},{"name":"Database","value":1,"category":4},{"name":"SQLTransactionCallback","value":1,"category":4},{"name":"DatabaseCallback","value":1,"category":4},{"name":"DatabaseSync","value":1,"category":4},{"name":"SQLTransactionSyncCallback","value":1,"category":4},{"name":"DataTransferItem","value":1,"category":4},{"name":"StringCallback","value":1,"category":4},{"name":"Entry","value":1,"category":4},{"name":"File","value":1,"category":4},{"name":"DataView","value":1,"category":4},{"name":"DedicatedWorkerContext","value":1,"category":4},{"name":"WorkerContext","value":1,"category":4},{"name":"DirectoryEntry","value":1,"category":4},{"name":"DirectoryReader","value":1,"category":4},{"name":"VoidCallback","value":1,"category":4},{"name":"DirectoryEntrySync","value":1,"category":4},{"name":"EntrySync","value":1,"category":4},{"name":"DirectoryReaderSync","value":1,"category":4},{"name":"FileEntrySync","value":1,"category":4},{"name":"EntriesCallback","value":1,"category":4},{"name":"EntryArraySync","value":1,"category":4},{"name":"DocumentFragment","value":1,"category":4},{"name":"NodeList","value":1,"category":4},{"name":"DocumentType","value":1,"category":4},{"name":"NamedNodeMap","value":1,"category":4},{"name":"DOMFileSystem","value":1,"category":4},{"name":"DOMFileSystemSync","value":1,"category":4},{"name":"DOMImplementation","value":1,"category":4},{"name":"HTMLDocument","value":1,"category":0},{"name":"DOMMimeType","value":1,"category":4},{"name":"DOMPlugin","value":1,"category":4},{"name":"DOMMimeTypeArray","value":1,"category":4},{"name":"DOMPluginArray","value":1,"category":4},{"name":"DOMSelection","value":1,"category":4},{"name":"Range","value":1,"category":4},{"name":"DOMSettableTokenList","value":1,"category":4},{"name":"DOMTokenList","value":1,"category":4},{"name":"DOMStringMap","value":1,"category":4},{"name":"ShadowRoot","value":1,"category":4},{"name":"Entity","value":1,"category":4},{"name":"EntityReference","value":1,"category":4},{"name":"EntryArray","value":1,"category":4},{"name":"MetadataCallback","value":1,"category":4},{"name":"EntryCallback","value":1,"category":4},{"name":"Metadata","value":1,"category":4},{"name":"ErrorCallback","value":1,"category":4},{"name":"FileError","value":1,"category":4},{"name":"FileCallback","value":1,"category":4},{"name":"FileEntry","value":1,"category":4},{"name":"FileWriterCallback","value":1,"category":4},{"name":"FileWriterSync","value":1,"category":4},{"name":"FileReader","value":1,"category":4},{"name":"FileReaderSync","value":1,"category":4},{"name":"FileSystemCallback","value":1,"category":4},{"name":"FileWriter","value":1,"category":4},{"name":"Float64Array","value":1,"category":4},{"name":"GamepadList","value":1,"category":4},{"name":"Gamepad","value":1,"category":4},{"name":"Geolocation","value":1,"category":4},{"name":"PositionCallback","value":1,"category":4},{"name":"Geoposition","value":1,"category":4},{"name":"Coordinates","value":1,"category":4},{"name":"HTMLAllCollection","value":1,"category":0},{"name":"HTMLAnchorElement","value":1,"category":0},{"name":"HTMLElement","value":3,"category":0},{"name":"HTMLAppletElement","value":1,"category":0},{"name":"HTMLAreaElement","value":1,"category":0},{"name":"HTMLAudioElement","value":1,"category":0},{"name":"HTMLMediaElement","value":1,"category":0},{"name":"HTMLBaseElement","value":1,"category":0},{"name":"HTMLBaseFontElement","value":1,"category":0},{"name":"HTMLBodyElement","value":1,"category":0},{"name":"HTMLBRElement","value":1,"category":0},{"name":"HTMLButtonElement","value":1,"category":0},{"name":"HTMLFormElement","value":1,"category":0},{"name":"ValidityState","value":1,"category":4},{"name":"HTMLCollection","value":1,"category":0},{"name":"HTMLContentElement","value":1,"category":0},{"name":"HTMLDataListElement","value":1,"category":0},{"name":"HTMLDetailsElement","value":1,"category":0},{"name":"HTMLDirectoryElement","value":1,"category":0},{"name":"HTMLDivElement","value":1,"category":0},{"name":"HTMLDListElement","value":1,"category":0},{"name":"HTMLEmbedElement","value":1,"category":0},{"name":"SVGDocument","value":1,"category":2},{"name":"HTMLFieldSetElement","value":1,"category":0},{"name":"HTMLFontElement","value":1,"category":0},{"name":"HTMLFormControlsCollection","value":1,"category":0},{"name":"HTMLFrameElement","value":1,"category":0},{"name":"HTMLFrameSetElement","value":1,"category":0},{"name":"HTMLHeadElement","value":1,"category":0},{"name":"HTMLHeadingElement","value":1,"category":0},{"name":"HTMLHRElement","value":1,"category":0},{"name":"HTMLHtmlElement","value":1,"category":0},{"name":"HTMLIFrameElement","value":1,"category":0},{"name":"HTMLInputElement","value":1,"category":0},{"name":"HTMLKeygenElement","value":1,"category":0},{"name":"HTMLLabelElement","value":1,"category":0},{"name":"HTMLLegendElement","value":1,"category":0},{"name":"HTMLLIElement","value":1,"category":0},{"name":"HTMLLinkElement","value":1,"category":0},{"name":"HTMLMapElement","value":1,"category":0},{"name":"HTMLMarqueeElement","value":1,"category":0},{"name":"TimeRanges","value":1,"category":4},{"name":"MediaController","value":1,"category":4},{"name":"MediaError","value":1,"category":4},{"name":"TextTrackList","value":1,"category":4},{"name":"TextTrack","value":1,"category":4},{"name":"HTMLMenuElement","value":1,"category":0},{"name":"HTMLMetaElement","value":1,"category":0},{"name":"HTMLMeterElement","value":1,"category":0},{"name":"HTMLModElement","value":1,"category":0},{"name":"HTMLObjectElement","value":1,"category":0},{"name":"HTMLOListElement","value":1,"category":0},{"name":"HTMLOptGroupElement","value":1,"category":0},{"name":"HTMLOptionElement","value":1,"category":0},{"name":"HTMLOptionsCollection","value":1,"category":0},{"name":"HTMLOutputElement","value":1,"category":0},{"name":"HTMLParagraphElement","value":1,"category":0},{"name":"HTMLParamElement","value":1,"category":0},{"name":"HTMLPreElement","value":1,"category":0},{"name":"HTMLProgressElement","value":1,"category":0},{"name":"HTMLQuoteElement","value":1,"category":0},{"name":"HTMLScriptElement","value":1,"category":0},{"name":"HTMLSelectElement","value":1,"category":0},{"name":"HTMLShadowElement","value":1,"category":0},{"name":"HTMLSourceElement","value":1,"category":0},{"name":"HTMLSpanElement","value":1,"category":0},{"name":"HTMLStyleElement","value":1,"category":0},{"name":"HTMLTableCaptionElement","value":1,"category":0},{"name":"HTMLTableCellElement","value":1,"category":0},{"name":"HTMLTableColElement","value":1,"category":0},{"name":"HTMLTableElement","value":1,"category":0},{"name":"HTMLTableSectionElement","value":1,"category":0},{"name":"HTMLTableRowElement","value":1,"category":0},{"name":"HTMLTextAreaElement","value":1,"category":0},{"name":"HTMLTitleElement","value":1,"category":0},{"name":"HTMLTrackElement","value":1,"category":0},{"name":"HTMLUListElement","value":1,"category":0},{"name":"HTMLUnknownElement","value":1,"category":0},{"name":"IDBCursor","value":1,"category":4},{"name":"IDBAny","value":1,"category":4},{"name":"IDBKey","value":1,"category":4},{"name":"IDBRequest","value":1,"category":4},{"name":"IDBCursorWithValue","value":1,"category":4},{"name":"IDBDatabase","value":1,"category":4},{"name":"DOMStringList","value":1,"category":4},{"name":"IDBObjectStore","value":1,"category":4},{"name":"IDBTransaction","value":1,"category":4},{"name":"IDBFactory","value":1,"category":4},{"name":"IDBVersionChangeRequest","value":1,"category":4},{"name":"IDBOpenDBRequest","value":1,"category":4},{"name":"IDBIndex","value":1,"category":4},{"name":"IDBKeyRange","value":1,"category":4},{"name":"DOMError","value":1,"category":4},{"name":"Int16Array","value":1,"category":4},{"name":"Int32Array","value":1,"category":4},{"name":"Int8Array","value":1,"category":4},{"name":"JavaScriptCallFrame","value":1,"category":4},{"name":"LocalMediaStream","value":1,"category":4},{"name":"MediaStream","value":1,"category":4},{"name":"Location","value":1,"category":4},{"name":"MediaQueryList","value":1,"category":4},{"name":"MediaQueryListListener","value":1,"category":4},{"name":"MediaSource","value":1,"category":4},{"name":"SourceBufferList","value":1,"category":4},{"name":"SourceBuffer","value":1,"category":4},{"name":"MediaStreamTrackList","value":1,"category":4},{"name":"MediaStreamList","value":1,"category":4},{"name":"MediaStreamTrack","value":1,"category":4},{"name":"MessageChannel","value":1,"category":4},{"name":"MessagePort","value":1,"category":4},{"name":"MutationObserver","value":1,"category":4},{"name":"MutationRecord","value":1,"category":4},{"name":"Navigator","value":1,"category":4},{"name":"BatteryManager","value":1,"category":4},{"name":"NavigatorUserMediaErrorCallback","value":1,"category":4},{"name":"NavigatorUserMediaError","value":1,"category":4},{"name":"NavigatorUserMediaSuccessCallback","value":1,"category":4},{"name":"NodeFilter","value":1,"category":4},{"name":"NodeIterator","value":1,"category":4},{"name":"Notation","value":1,"category":4},{"name":"Notification","value":1,"category":4},{"name":"NotificationPermissionCallback","value":1,"category":4},{"name":"NotificationCenter","value":1,"category":4},{"name":"OESVertexArrayObject","value":1,"category":4},{"name":"WebGLVertexArrayObjectOES","value":1,"category":1},{"name":"Performance","value":1,"category":4},{"name":"PerformanceNavigation","value":1,"category":4},{"name":"PerformanceTiming","value":1,"category":4},{"name":"PositionErrorCallback","value":1,"category":4},{"name":"PositionError","value":1,"category":4},{"name":"ProcessingInstruction","value":1,"category":4},{"name":"RadioNodeList","value":1,"category":4},{"name":"RTCDataChannel","value":1,"category":4},{"name":"RTCPeerConnection","value":1,"category":4},{"name":"RTCSessionDescription","value":1,"category":4},{"name":"RTCIceCandidate","value":1,"category":4},{"name":"RTCSessionDescriptionCallback","value":1,"category":4},{"name":"RTCStatsCallback","value":1,"category":4},{"name":"RTCStatsResponse","value":1,"category":4},{"name":"RTCStatsReport","value":1,"category":4},{"name":"RTCStatsElement","value":1,"category":4},{"name":"ScriptProfile","value":1,"category":4},{"name":"ScriptProfileNode","value":1,"category":4},{"name":"SharedWorker","value":1,"category":4},{"name":"AbstractWorker","value":1,"category":4},{"name":"SharedWorkerContext","value":1,"category":4},{"name":"SpeechGrammarList","value":1,"category":4},{"name":"SpeechGrammar","value":1,"category":4},{"name":"SpeechInputResultList","value":1,"category":4},{"name":"SpeechInputResult","value":1,"category":4},{"name":"SpeechRecognition","value":1,"category":4},{"name":"SpeechRecognitionResult","value":1,"category":4},{"name":"SpeechRecognitionAlternative","value":1,"category":4},{"name":"SpeechRecognitionResultList","value":1,"category":4},{"name":"SQLResultSet","value":1,"category":4},{"name":"SQLResultSetRowList","value":1,"category":4},{"name":"SQLStatementCallback","value":1,"category":4},{"name":"SQLTransaction","value":1,"category":4},{"name":"SQLStatementErrorCallback","value":1,"category":4},{"name":"SQLTransactionErrorCallback","value":1,"category":4},{"name":"SQLError","value":1,"category":4},{"name":"SQLTransactionSync","value":1,"category":4},{"name":"StorageInfo","value":1,"category":4},{"name":"StorageInfoUsageCallback","value":1,"category":4},{"name":"StorageInfoQuotaCallback","value":1,"category":4},{"name":"StorageInfoErrorCallback","value":1,"category":4},{"name":"DOMCoreException","value":1,"category":4},{"name":"StyleSheetList","value":1,"category":4},{"name":"SVGAElement","value":1,"category":2},{"name":"SVGTransformable","value":1,"category":2},{"name":"SVGAnimatedString","value":1,"category":2},{"name":"SVGAltGlyphDefElement","value":1,"category":2},{"name":"SVGElement","value":3,"category":2},{"name":"SVGAltGlyphElement","value":1,"category":2},{"name":"SVGURIReference","value":1,"category":2},{"name":"SVGAltGlyphItemElement","value":1,"category":2},{"name":"SVGAnimateColorElement","value":1,"category":2},{"name":"SVGAnimationElement","value":1,"category":2},{"name":"SVGAnimatedAngle","value":1,"category":2},{"name":"SVGAngle","value":1,"category":2},{"name":"SVGAnimatedLength","value":1,"category":2},{"name":"SVGLength","value":1,"category":2},{"name":"SVGAnimatedLengthList","value":1,"category":2},{"name":"SVGLengthList","value":1,"category":2},{"name":"SVGAnimatedNumberList","value":1,"category":2},{"name":"SVGNumberList","value":1,"category":2},{"name":"SVGAnimatedPreserveAspectRatio","value":1,"category":2},{"name":"SVGPreserveAspectRatio","value":1,"category":2},{"name":"SVGAnimatedRect","value":1,"category":2},{"name":"SVGRect","value":1,"category":2},{"name":"SVGAnimatedTransformList","value":1,"category":2},{"name":"SVGTransformList","value":1,"category":2},{"name":"SVGAnimateElement","value":1,"category":2},{"name":"SVGAnimateMotionElement","value":1,"category":2},{"name":"SVGAnimateTransformElement","value":1,"category":2},{"name":"ElementTimeControl","value":1,"category":4},{"name":"SVGCircleElement","value":1,"category":2},{"name":"SVGClipPathElement","value":1,"category":2},{"name":"SVGAnimatedEnumeration","value":1,"category":2},{"name":"SVGColor","value":1,"category":2},{"name":"SVGComponentTransferFunctionElement","value":1,"category":2},{"name":"SVGAnimatedNumber","value":1,"category":2},{"name":"SVGCursorElement","value":1,"category":2},{"name":"SVGExternalResourcesRequired","value":1,"category":2},{"name":"SVGDefsElement","value":1,"category":2},{"name":"SVGDescElement","value":1,"category":2},{"name":"SVGStylable","value":1,"category":2},{"name":"SVGSVGElement","value":1,"category":2},{"name":"SVGElementInstance","value":1,"category":2},{"name":"EventTarget","value":1,"category":4},{"name":"SVGElementInstanceList","value":1,"category":2},{"name":"SVGUseElement","value":1,"category":2},{"name":"SVGEllipseElement","value":1,"category":2},{"name":"SVGAnimatedBoolean","value":1,"category":2},{"name":"SVGFEBlendElement","value":1,"category":2},{"name":"SVGFilterPrimitiveStandardAttributes","value":1,"category":2},{"name":"SVGFEColorMatrixElement","value":1,"category":2},{"name":"SVGFEComponentTransferElement","value":1,"category":2},{"name":"SVGFECompositeElement","value":1,"category":2},{"name":"SVGFEConvolveMatrixElement","value":1,"category":2},{"name":"SVGAnimatedInteger","value":1,"category":2},{"name":"SVGFEDiffuseLightingElement","value":1,"category":2},{"name":"SVGFEDisplacementMapElement","value":1,"category":2},{"name":"SVGFEDistantLightElement","value":1,"category":2},{"name":"SVGFEDropShadowElement","value":1,"category":2},{"name":"SVGFEFloodElement","value":1,"category":2},{"name":"SVGFEFuncAElement","value":1,"category":2},{"name":"SVGFEFuncBElement","value":1,"category":2},{"name":"SVGFEFuncGElement","value":1,"category":2},{"name":"SVGFEFuncRElement","value":1,"category":2},{"name":"SVGFEGaussianBlurElement","value":1,"category":2},{"name":"SVGFEImageElement","value":1,"category":2},{"name":"SVGFEMergeElement","value":1,"category":2},{"name":"SVGFEMergeNodeElement","value":1,"category":2},{"name":"SVGFEMorphologyElement","value":1,"category":2},{"name":"SVGFEOffsetElement","value":1,"category":2},{"name":"SVGFEPointLightElement","value":1,"category":2},{"name":"SVGFESpecularLightingElement","value":1,"category":2},{"name":"SVGFESpotLightElement","value":1,"category":2},{"name":"SVGFETileElement","value":1,"category":2},{"name":"SVGFETurbulenceElement","value":1,"category":2},{"name":"SVGFilterElement","value":1,"category":2},{"name":"SVGFitToViewBox","value":1,"category":2},{"name":"SVGFontElement","value":1,"category":2},{"name":"SVGFontFaceElement","value":1,"category":2},{"name":"SVGFontFaceFormatElement","value":1,"category":2},{"name":"SVGFontFaceNameElement","value":1,"category":2},{"name":"SVGFontFaceSrcElement","value":1,"category":2},{"name":"SVGFontFaceUriElement","value":1,"category":2},{"name":"SVGForeignObjectElement","value":1,"category":2},{"name":"SVGGElement","value":1,"category":2},{"name":"SVGGlyphElement","value":1,"category":2},{"name":"SVGGlyphRefElement","value":1,"category":2},{"name":"SVGGradientElement","value":1,"category":2},{"name":"SVGHKernElement","value":1,"category":2},{"name":"SVGImageElement","value":1,"category":2},{"name":"SVGLinearGradientElement","value":1,"category":2},{"name":"SVGLineElement","value":1,"category":2},{"name":"SVGLocatable","value":1,"category":2},{"name":"SVGMatrix","value":1,"category":2},{"name":"SVGMarkerElement","value":1,"category":2},{"name":"SVGMaskElement","value":1,"category":2},{"name":"SVGMetadataElement","value":1,"category":2},{"name":"SVGMissingGlyphElement","value":1,"category":2},{"name":"SVGMPathElement","value":1,"category":2},{"name":"SVGNumber","value":1,"category":2},{"name":"SVGPaint","value":1,"category":2},{"name":"SVGPathElement","value":1,"category":2},{"name":"SVGPathSegList","value":1,"category":2},{"name":"SVGPathSegArcAbs","value":1,"category":2},{"name":"SVGPathSegArcRel","value":1,"category":2},{"name":"SVGPathSegClosePath","value":1,"category":2},{"name":"SVGPathSegCurvetoCubicAbs","value":1,"category":2},{"name":"SVGPathSegCurvetoCubicRel","value":1,"category":2},{"name":"SVGPathSegCurvetoCubicSmoothAbs","value":1,"category":2},{"name":"SVGPathSegCurvetoCubicSmoothRel","value":1,"category":2},{"name":"SVGPathSegCurvetoQuadraticAbs","value":1,"category":2},{"name":"SVGPathSegCurvetoQuadraticRel","value":1,"category":2},{"name":"SVGPathSegCurvetoQuadraticSmoothAbs","value":1,"category":2},{"name":"SVGPathSegCurvetoQuadraticSmoothRel","value":1,"category":2},{"name":"SVGPathSegLinetoAbs","value":1,"category":2},{"name":"SVGPathSegLinetoHorizontalAbs","value":1,"category":2},{"name":"SVGPathSegLinetoHorizontalRel","value":1,"category":2},{"name":"SVGPathSegLinetoRel","value":1,"category":2},{"name":"SVGPathSegLinetoVerticalAbs","value":1,"category":2},{"name":"SVGPathSegLinetoVerticalRel","value":1,"category":2},{"name":"SVGPathSegMovetoAbs","value":1,"category":2},{"name":"SVGPathSegMovetoRel","value":1,"category":2},{"name":"SVGPoint","value":1,"category":2},{"name":"SVGPathSeg","value":1,"category":2},{"name":"SVGPatternElement","value":1,"category":2},{"name":"SVGPointList","value":1,"category":2},{"name":"SVGPolygonElement","value":1,"category":2},{"name":"SVGPolylineElement","value":1,"category":2},{"name":"SVGRadialGradientElement","value":1,"category":2},{"name":"SVGRectElement","value":1,"category":2},{"name":"SVGScriptElement","value":1,"category":2},{"name":"SVGSetElement","value":1,"category":2},{"name":"SVGStopElement","value":1,"category":2},{"name":"SVGStyleElement","value":1,"category":2},{"name":"SVGLangSpace","value":1,"category":2},{"name":"SVGZoomAndPan","value":1,"category":2},{"name":"SVGViewSpec","value":1,"category":2},{"name":"SVGTransform","value":1,"category":2},{"name":"SVGSwitchElement","value":1,"category":2},{"name":"SVGSymbolElement","value":1,"category":2},{"name":"SVGTests","value":1,"category":2},{"name":"SVGStringList","value":1,"category":2},{"name":"SVGTextContentElement","value":1,"category":2},{"name":"SVGTextElement","value":1,"category":2},{"name":"SVGTextPathElement","value":1,"category":2},{"name":"SVGTextPositioningElement","value":1,"category":2},{"name":"SVGTitleElement","value":1,"category":2},{"name":"SVGTRefElement","value":1,"category":2},{"name":"SVGTSpanElement","value":1,"category":2},{"name":"SVGViewElement","value":1,"category":2},{"name":"SVGVKernElement","value":1,"category":2},{"name":"TextTrackCueList","value":1,"category":4},{"name":"TextTrackCue","value":1,"category":4},{"name":"Touch","value":1,"category":4},{"name":"TouchList","value":1,"category":4},{"name":"TreeWalker","value":1,"category":4},{"name":"Uint16Array","value":1,"category":4},{"name":"Uint32Array","value":1,"category":4},{"name":"Uint8ClampedArray","value":1,"category":4},{"name":"WebGLRenderingContext","value":3,"category":1},{"name":"WebGLProgram","value":1,"category":1},{"name":"WebGLBuffer","value":1,"category":1},{"name":"WebGLFramebuffer","value":1,"category":1},{"name":"WebGLRenderbuffer","value":1,"category":1},{"name":"WebGLTexture","value":1,"category":1},{"name":"WebGLShader","value":1,"category":1},{"name":"WebGLActiveInfo","value":1,"category":1},{"name":"WebGLContextAttributes","value":1,"category":1},{"name":"WebGLShaderPrecisionFormat","value":1,"category":1},{"name":"WebGLUniformLocation","value":1,"category":1},{"name":"WebKitAnimationList","value":1,"category":4},{"name":"WebKitAnimation","value":1,"category":4},{"name":"WebKitCSSFilterValue","value":1,"category":4},{"name":"WebKitCSSKeyframeRule","value":1,"category":4},{"name":"WebKitCSSKeyframesRule","value":1,"category":4},{"name":"WebKitCSSMatrix","value":1,"category":4},{"name":"WebKitCSSMixFunctionValue","value":1,"category":4},{"name":"WebKitCSSTransformValue","value":1,"category":4},{"name":"WebKitNamedFlow","value":1,"category":4},{"name":"WebSocket","value":1,"category":4},{"name":"Worker","value":1,"category":4},{"name":"WorkerLocation","value":1,"category":4},{"name":"WorkerNavigator","value":1,"category":4},{"name":"XMLHttpRequest","value":1,"category":4},{"name":"XMLHttpRequestUpload","value":1,"category":4},{"name":"DOMFormData","value":1,"category":4},{"name":"XPathEvaluator","value":1,"category":4},{"name":"XPathExpression","value":1,"category":4},{"name":"XPathNSResolver","value":1,"category":4},{"name":"XPathResult","value":1,"category":4},{"name":"XSLTProcessor","value":1,"category":4}],"links":[{"source":0,"target":1},{"source":0,"target":2},{"source":0,"target":3},{"source":4,"target":4},{"source":5,"target":4},{"source":6,"target":7},{"source":6,"target":8},{"source":9,"target":3},{"source":10,"target":9},{"source":11,"target":12},{"source":11,"target":9},{"source":11,"target":13},{"source":11,"target":14},{"source":15,"target":16},{"source":15,"target":17},{"source":15,"target":0},{"source":15,"target":18},{"source":15,"target":9},{"source":15,"target":11},{"source":15,"target":19},{"source":15,"target":20},{"source":15,"target":21},{"source":15,"target":22},{"source":15,"target":23},{"source":15,"target":24},{"source":15,"target":25},{"source":15,"target":26},{"source":15,"target":27},{"source":15,"target":28},{"source":15,"target":29},{"source":15,"target":30},{"source":15,"target":31},{"source":15,"target":32},{"source":15,"target":4},{"source":16,"target":1},{"source":13,"target":14},{"source":1,"target":15},{"source":1,"target":1},{"source":1,"target":14},{"source":14,"target":3},{"source":12,"target":1},{"source":18,"target":1},{"source":18,"target":14},{"source":18,"target":3},{"source":33,"target":34},{"source":35,"target":33},{"source":35,"target":36},{"source":35,"target":37},{"source":35,"target":38},{"source":35,"target":39},{"source":35,"target":34},{"source":35,"target":40},{"source":35,"target":41},{"source":42,"target":43},{"source":19,"target":1},{"source":20,"target":1},{"source":44,"target":7},{"source":45,"target":46},{"source":47,"target":48},{"source":47,"target":49},{"source":47,"target":39},{"source":50,"target":44},{"source":51,"target":52},{"source":21,"target":1},{"source":21,"target":9},{"source":53,"target":5},{"source":54,"target":55},{"source":56,"target":55},{"source":56,"target":57},{"source":58,"target":55},{"source":58,"target":59},{"source":58,"target":60},{"source":61,"target":55},{"source":61,"target":62},{"source":61,"target":59},{"source":63,"target":55},{"source":63,"target":57},{"source":64,"target":65},{"source":64,"target":66},{"source":64,"target":67},{"source":64,"target":68},{"source":55,"target":55},{"source":55,"target":60},{"source":62,"target":55},{"source":57,"target":55},{"source":57,"target":65},{"source":69,"target":55},{"source":69,"target":57},{"source":60,"target":70},{"source":60,"target":62},{"source":60,"target":55},{"source":71,"target":55},{"source":72,"target":65},{"source":73,"target":74},{"source":75,"target":73},{"source":75,"target":76},{"source":76,"target":77},{"source":78,"target":79},{"source":78,"target":80},{"source":49,"target":81},{"source":49,"target":78},{"source":82,"target":5},{"source":83,"target":84},{"source":22,"target":1},{"source":22,"target":14},{"source":85,"target":80},{"source":85,"target":86},{"source":85,"target":87},{"source":88,"target":89},{"source":88,"target":90},{"source":88,"target":88},{"source":88,"target":91},{"source":86,"target":92},{"source":90,"target":93},{"source":94,"target":7},{"source":94,"target":8},{"source":94,"target":95},{"source":96,"target":7},{"source":96,"target":97},{"source":98,"target":85},{"source":99,"target":88},{"source":100,"target":60},{"source":100,"target":96},{"source":100,"target":101},{"source":102,"target":103},{"source":104,"target":102},{"source":103,"target":102},{"source":105,"target":103},{"source":106,"target":7},{"source":106,"target":107},{"source":108,"target":109},{"source":23,"target":1},{"source":23,"target":14},{"source":8,"target":7},{"source":8,"target":109},{"source":8,"target":110},{"source":8,"target":8},{"source":8,"target":57},{"source":8,"target":6},{"source":8,"target":46},{"source":8,"target":45},{"source":8,"target":95},{"source":8,"target":111},{"source":112,"target":7},{"source":113,"target":7},{"source":92,"target":114},{"source":80,"target":98},{"source":80,"target":85},{"source":80,"target":115},{"source":80,"target":116},{"source":80,"target":87},{"source":114,"target":80},{"source":93,"target":89},{"source":116,"target":80},{"source":89,"target":99},{"source":89,"target":89},{"source":89,"target":117},{"source":89,"target":88},{"source":118,"target":119},{"source":120,"target":81},{"source":121,"target":80},{"source":121,"target":122},{"source":121,"target":120},{"source":91,"target":89},{"source":91,"target":123},{"source":91,"target":81},{"source":48,"target":81},{"source":124,"target":119},{"source":125,"target":4},{"source":126,"target":98},{"source":127,"target":119},{"source":122,"target":127},{"source":3,"target":5},{"source":3,"target":3},{"source":128,"target":5},{"source":128,"target":128},{"source":24,"target":1},{"source":24,"target":13},{"source":129,"target":130},{"source":131,"target":132},{"source":133,"target":134},{"source":135,"target":7},{"source":135,"target":95},{"source":136,"target":137},{"source":138,"target":137},{"source":139,"target":137},{"source":140,"target":141},{"source":142,"target":137},{"source":143,"target":137},{"source":144,"target":137},{"source":145,"target":137},{"source":146,"target":137},{"source":146,"target":147},{"source":146,"target":95},{"source":146,"target":148},{"source":34,"target":137},{"source":149,"target":7},{"source":150,"target":137},{"source":150,"target":95},{"source":151,"target":137},{"source":151,"target":149},{"source":152,"target":137},{"source":153,"target":137},{"source":154,"target":137},{"source":155,"target":137},{"source":101,"target":8},{"source":101,"target":135},{"source":101,"target":149},{"source":137,"target":8},{"source":137,"target":149},{"source":156,"target":137},{"source":156,"target":157},{"source":158,"target":137},{"source":158,"target":149},{"source":158,"target":147},{"source":158,"target":148},{"source":159,"target":137},{"source":160,"target":149},{"source":160,"target":7},{"source":147,"target":137},{"source":147,"target":149},{"source":161,"target":137},{"source":161,"target":157},{"source":162,"target":137},{"source":163,"target":137},{"source":164,"target":137},{"source":165,"target":137},{"source":166,"target":137},{"source":167,"target":137},{"source":167,"target":157},{"source":39,"target":137},{"source":168,"target":137},{"source":168,"target":48},{"source":168,"target":147},{"source":168,"target":95},{"source":168,"target":148},{"source":168,"target":114},{"source":169,"target":137},{"source":169,"target":147},{"source":169,"target":95},{"source":169,"target":148},{"source":170,"target":137},{"source":170,"target":147},{"source":171,"target":137},{"source":171,"target":147},{"source":172,"target":137},{"source":173,"target":137},{"source":173,"target":70},{"source":173,"target":108},{"source":174,"target":137},{"source":174,"target":149},{"source":175,"target":137},{"source":141,"target":137},{"source":141,"target":176},{"source":141,"target":177},{"source":141,"target":178},{"source":141,"target":179},{"source":141,"target":180},{"source":181,"target":137},{"source":182,"target":137},{"source":183,"target":137},{"source":183,"target":95},{"source":184,"target":137},{"source":185,"target":137},{"source":185,"target":147},{"source":185,"target":148},{"source":185,"target":157},{"source":186,"target":137},{"source":187,"target":137},{"source":188,"target":137},{"source":188,"target":147},{"source":189,"target":149},{"source":189,"target":188},{"source":189,"target":7},{"source":190,"target":137},{"source":190,"target":147},{"source":190,"target":108},{"source":190,"target":95},{"source":190,"target":148},{"source":191,"target":137},{"source":192,"target":137},{"source":193,"target":137},{"source":194,"target":137},{"source":194,"target":95},{"source":195,"target":137},{"source":196,"target":137},{"source":197,"target":137},{"source":197,"target":147},{"source":197,"target":95},{"source":197,"target":189},{"source":197,"target":149},{"source":197,"target":148},{"source":197,"target":7},{"source":198,"target":137},{"source":199,"target":137},{"source":200,"target":137},{"source":201,"target":137},{"source":201,"target":70},{"source":202,"target":137},{"source":203,"target":137},{"source":204,"target":137},{"source":205,"target":137},{"source":205,"target":202},{"source":205,"target":149},{"source":205,"target":206},{"source":207,"target":137},{"source":207,"target":149},{"source":206,"target":137},{"source":206,"target":149},{"source":208,"target":137},{"source":208,"target":147},{"source":208,"target":95},{"source":208,"target":148},{"source":209,"target":137},{"source":210,"target":137},{"source":210,"target":180},{"source":211,"target":137},{"source":212,"target":137},{"source":40,"target":141},{"source":213,"target":214},{"source":213,"target":215},{"source":213,"target":216},{"source":217,"target":213},{"source":218,"target":219},{"source":218,"target":214},{"source":218,"target":220},{"source":218,"target":221},{"source":222,"target":215},{"source":222,"target":223},{"source":222,"target":224},{"source":222,"target":216},{"source":225,"target":214},{"source":225,"target":220},{"source":225,"target":216},{"source":226,"target":215},{"source":226,"target":226},{"source":220,"target":219},{"source":220,"target":214},{"source":220,"target":221},{"source":220,"target":216},{"source":220,"target":225},{"source":224,"target":216},{"source":216,"target":227},{"source":216,"target":214},{"source":216,"target":221},{"source":221,"target":218},{"source":221,"target":227},{"source":221,"target":220},{"source":223,"target":216},{"source":228,"target":5},{"source":228,"target":228},{"source":229,"target":5},{"source":229,"target":229},{"source":230,"target":5},{"source":230,"target":230},{"source":231,"target":231},{"source":232,"target":233},{"source":234,"target":219},{"source":177,"target":176},{"source":25,"target":12},{"source":25,"target":141},{"source":235,"target":236},{"source":236,"target":235},{"source":237,"target":238},{"source":237,"target":239},{"source":233,"target":240},{"source":26,"target":12},{"source":26,"target":233},{"source":27,"target":12},{"source":27,"target":233},{"source":241,"target":233},{"source":240,"target":242},{"source":243,"target":244},{"source":115,"target":117},{"source":245,"target":7},{"source":246,"target":95},{"source":246,"target":7},{"source":97,"target":7},{"source":247,"target":131},{"source":247,"target":104},{"source":247,"target":105},{"source":247,"target":248},{"source":247,"target":129},{"source":249,"target":250},{"source":251,"target":232},{"source":7,"target":97},{"source":7,"target":95},{"source":7,"target":7},{"source":7,"target":8},{"source":252,"target":7},{"source":253,"target":252},{"source":253,"target":7},{"source":95,"target":7},{"source":254,"target":7},{"source":255,"target":256},{"source":257,"target":255},{"source":257,"target":87},{"source":258,"target":259},{"source":28,"target":12},{"source":28,"target":14},{"source":28,"target":32},{"source":29,"target":1},{"source":260,"target":52},{"source":260,"target":261},{"source":260,"target":262},{"source":132,"target":133},{"source":263,"target":264},{"source":265,"target":7},{"source":265,"target":70},{"source":266,"target":95},{"source":107,"target":7},{"source":107,"target":94},{"source":107,"target":107},{"source":107,"target":46},{"source":107,"target":45},{"source":68,"target":64},{"source":67,"target":64},{"source":267,"target":4},{"source":267,"target":5},{"source":268,"target":269},{"source":268,"target":241},{"source":268,"target":270},{"source":268,"target":233},{"source":268,"target":271},{"source":268,"target":267},{"source":268,"target":272},{"source":271,"target":269},{"source":272,"target":273},{"source":274,"target":275},{"source":30,"target":1},{"source":276,"target":277},{"source":111,"target":94},{"source":111,"target":8},{"source":111,"target":7},{"source":111,"target":95},{"source":111,"target":106},{"source":278,"target":279},{"source":278,"target":244},{"source":280,"target":84},{"source":239,"target":176},{"source":239,"target":2},{"source":238,"target":239},{"source":281,"target":282},{"source":283,"target":284},{"source":285,"target":281},{"source":286,"target":287},{"source":288,"target":286},{"source":289,"target":290},{"source":291,"target":292},{"source":293,"target":292},{"source":74,"target":292},{"source":294,"target":295},{"source":296,"target":289},{"source":77,"target":296},{"source":297,"target":298},{"source":297,"target":299},{"source":300,"target":301},{"source":70,"target":59},{"source":70,"target":7},{"source":70,"target":70},{"source":302,"target":70},{"source":303,"target":304},{"source":303,"target":305},{"source":306,"target":307},{"source":308,"target":309},{"source":310,"target":307},{"source":311,"target":312},{"source":313,"target":314},{"source":315,"target":316},{"source":317,"target":318},{"source":319,"target":320},{"source":321,"target":322},{"source":323,"target":324},{"source":325,"target":326},{"source":327,"target":312},{"source":328,"target":312},{"source":329,"target":312},{"source":312,"target":330},{"source":312,"target":307},{"source":331,"target":304},{"source":331,"target":315},{"source":332,"target":304},{"source":332,"target":333},{"source":334,"target":65},{"source":334,"target":67},{"source":335,"target":307},{"source":335,"target":336},{"source":335,"target":319},{"source":335,"target":333},{"source":337,"target":338},{"source":337,"target":315},{"source":339,"target":304},{"source":340,"target":341},{"source":157,"target":342},{"source":307,"target":8},{"source":307,"target":342},{"source":307,"target":307},{"source":343,"target":344},{"source":343,"target":345},{"source":343,"target":307},{"source":343,"target":346},{"source":343,"target":343},{"source":345,"target":343},{"source":347,"target":304},{"source":347,"target":315},{"source":338,"target":348},{"source":349,"target":350},{"source":349,"target":305},{"source":349,"target":333},{"source":351,"target":350},{"source":351,"target":305},{"source":351,"target":333},{"source":351,"target":319},{"source":352,"target":350},{"source":352,"target":305},{"source":353,"target":350},{"source":353,"target":305},{"source":353,"target":336},{"source":353,"target":333},{"source":354,"target":350},{"source":354,"target":336},{"source":354,"target":333},{"source":354,"target":305},{"source":354,"target":319},{"source":354,"target":355},{"source":354,"target":348},{"source":356,"target":350},{"source":356,"target":336},{"source":356,"target":305},{"source":357,"target":350},{"source":357,"target":305},{"source":357,"target":336},{"source":357,"target":333},{"source":358,"target":307},{"source":358,"target":336},{"source":359,"target":350},{"source":359,"target":336},{"source":359,"target":305},{"source":360,"target":350},{"source":361,"target":335},{"source":362,"target":335},{"source":363,"target":335},{"source":364,"target":335},{"source":365,"target":350},{"source":365,"target":305},{"source":365,"target":336},{"source":366,"target":350},{"source":366,"target":321},{"source":367,"target":350},{"source":368,"target":307},{"source":368,"target":305},{"source":369,"target":350},{"source":369,"target":305},{"source":369,"target":333},{"source":369,"target":336},{"source":370,"target":350},{"source":370,"target":336},{"source":370,"target":305},{"source":371,"target":307},{"source":371,"target":336},{"source":372,"target":350},{"source":372,"target":305},{"source":372,"target":336},{"source":373,"target":307},{"source":373,"target":336},{"source":374,"target":350},{"source":374,"target":305},{"source":375,"target":350},{"source":375,"target":336},{"source":375,"target":355},{"source":375,"target":333},{"source":376,"target":341},{"source":376,"target":355},{"source":376,"target":333},{"source":376,"target":315},{"source":350,"target":341},{"source":350,"target":315},{"source":350,"target":305},{"source":377,"target":321},{"source":377,"target":323},{"source":378,"target":307},{"source":379,"target":307},{"source":380,"target":307},{"source":381,"target":307},{"source":382,"target":307},{"source":383,"target":307},{"source":384,"target":304},{"source":384,"target":315},{"source":385,"target":304},{"source":386,"target":307},{"source":387,"target":341},{"source":388,"target":341},{"source":388,"target":325},{"source":388,"target":333},{"source":389,"target":307},{"source":390,"target":304},{"source":390,"target":315},{"source":390,"target":321},{"source":318,"target":316},{"source":391,"target":388},{"source":391,"target":315},{"source":392,"target":304},{"source":392,"target":315},{"source":393,"target":307},{"source":393,"target":324},{"source":393,"target":394},{"source":395,"target":377},{"source":395,"target":315},{"source":395,"target":333},{"source":395,"target":313},{"source":395,"target":314},{"source":396,"target":341},{"source":396,"target":315},{"source":396,"target":333},{"source":394,"target":394},{"source":397,"target":307},{"source":398,"target":307},{"source":399,"target":338},{"source":320,"target":400},{"source":401,"target":334},{"source":402,"target":304},{"source":402,"target":403},{"source":402,"target":336},{"source":402,"target":404},{"source":402,"target":405},{"source":402,"target":406},{"source":402,"target":407},{"source":402,"target":408},{"source":402,"target":409},{"source":402,"target":410},{"source":402,"target":411},{"source":402,"target":412},{"source":402,"target":413},{"source":402,"target":414},{"source":402,"target":415},{"source":402,"target":416},{"source":402,"target":417},{"source":402,"target":418},{"source":402,"target":419},{"source":402,"target":420},{"source":402,"target":421},{"source":402,"target":422},{"source":402,"target":423},{"source":404,"target":424},{"source":405,"target":424},{"source":406,"target":424},{"source":407,"target":424},{"source":408,"target":424},{"source":409,"target":424},{"source":410,"target":424},{"source":411,"target":424},{"source":412,"target":424},{"source":413,"target":424},{"source":414,"target":424},{"source":415,"target":424},{"source":416,"target":424},{"source":417,"target":424},{"source":418,"target":424},{"source":419,"target":424},{"source":420,"target":424},{"source":403,"target":424},{"source":421,"target":424},{"source":422,"target":424},{"source":425,"target":377},{"source":425,"target":315},{"source":425,"target":333},{"source":425,"target":325},{"source":423,"target":423},{"source":426,"target":423},{"source":427,"target":304},{"source":427,"target":426},{"source":428,"target":304},{"source":428,"target":426},{"source":429,"target":388},{"source":429,"target":315},{"source":430,"target":304},{"source":430,"target":315},{"source":431,"target":338},{"source":432,"target":312},{"source":433,"target":341},{"source":433,"target":336},{"source":341,"target":305},{"source":341,"target":57},{"source":341,"target":65},{"source":434,"target":435},{"source":342,"target":436},{"source":342,"target":423},{"source":342,"target":437},{"source":342,"target":315},{"source":342,"target":324},{"source":342,"target":307},{"source":342,"target":314},{"source":342,"target":316},{"source":342,"target":394},{"source":342,"target":400},{"source":342,"target":438},{"source":342,"target":8},{"source":342,"target":95},{"source":439,"target":304},{"source":440,"target":377},{"source":441,"target":442},{"source":443,"target":341},{"source":443,"target":333},{"source":443,"target":315},{"source":443,"target":423},{"source":443,"target":324},{"source":444,"target":304},{"source":445,"target":309},{"source":445,"target":333},{"source":445,"target":315},{"source":446,"target":443},{"source":446,"target":317},{"source":446,"target":319},{"source":447,"target":341},{"source":438,"target":394},{"source":304,"target":393},{"source":304,"target":325},{"source":326,"target":438},{"source":448,"target":309},{"source":449,"target":446},{"source":309,"target":305},{"source":346,"target":304},{"source":346,"target":343},{"source":346,"target":315},{"source":450,"target":436},{"source":450,"target":442},{"source":437,"target":321},{"source":437,"target":326},{"source":437,"target":323},{"source":437,"target":307},{"source":451,"target":307},{"source":43,"target":44},{"source":43,"target":43},{"source":180,"target":452},{"source":180,"target":453},{"source":453,"target":180},{"source":453,"target":94},{"source":452,"target":453},{"source":179,"target":180},{"source":454,"target":344},{"source":455,"target":454},{"source":456,"target":7},{"source":456,"target":252},{"source":457,"target":5},{"source":457,"target":457},{"source":458,"target":5},{"source":458,"target":458},{"source":2,"target":5},{"source":2,"target":2},{"source":459,"target":2},{"source":459,"target":459},{"source":31,"target":1},{"source":31,"target":3},{"source":460,"target":33},{"source":460,"target":461},{"source":460,"target":462},{"source":460,"target":463},{"source":460,"target":464},{"source":460,"target":465},{"source":460,"target":4},{"source":460,"target":5},{"source":460,"target":466},{"source":460,"target":467},{"source":460,"target":468},{"source":460,"target":469},{"source":460,"target":470},{"source":460,"target":36},{"source":460,"target":39},{"source":460,"target":34},{"source":460,"target":40},{"source":460,"target":3},{"source":471,"target":472},{"source":473,"target":72},{"source":474,"target":55},{"source":474,"target":57},{"source":475,"target":55},{"source":475,"target":62},{"source":475,"target":474},{"source":476,"target":476},{"source":477,"target":72},{"source":478,"target":72},{"source":479,"target":95},{"source":480,"target":4},{"source":480,"target":5},{"source":481,"target":279},{"source":84,"target":222},{"source":84,"target":482},{"source":84,"target":483},{"source":84,"target":84},{"source":84,"target":257},{"source":84,"target":73},{"source":84,"target":76},{"source":84,"target":126},{"source":84,"target":99},{"source":84,"target":89},{"source":484,"target":485},{"source":484,"target":4},{"source":484,"target":5},{"source":484,"target":486},{"source":487,"target":488},{"source":487,"target":489},{"source":487,"target":490},{"source":488,"target":490},{"source":490,"target":7},{"source":491,"target":7},{"source":491,"target":94}]};\n const option = {\n legend: {\n data: [\'HTMLElement\', \'WebGL\', \'SVG\', \'CSS\', \'Other\']\n },\n series: [{\n type: \'graph\',\n layout: \'force\',\n animation: false,\n label: {\n normal: {\n position: \'right\',\n formatter: \'{b}\'\n }\n },\n draggable: true,\n data: webkitDep.nodes.map(function (node, idx) {\n node.id = idx;\n return node;\n }),\n categories: webkitDep.categories,\n force: {\n // initLayout: \'circular\'\n // repulsion: 20,\n edgeLength: 5,\n repulsion: 20,\n gravity: 0.2\n },\n edges: webkitDep.links\n }]\n };\n\n return <ReactECharts\n option={option}\n style={{ height: \'700px\', width: \'100%\' }}\n />;\n};\n\nexport default Page;'}},dependencies:{react:{version:"^15.0.0 || >=16.0.0"},"echarts-for-react":{version:"3.0.0-beta.2"},echarts:{version:"^3.0.0 || ^4.0.0 || ^5.0.0"}},identifier:"graph-demo"}},"loading-demo":{component:function(){var e=n("sTX5"),t=n("Fcd/"),r=t(n("xwgP")),i=e(n("/7QA")),a=function(){var e,t={title:{text:"\u57fa\u7840\u96f7\u8fbe\u56fe"},tooltip:{},legend:{data:["\u9884\u7b97\u5206\u914d\uff08Allocated Budget\uff09","\u5b9e\u9645\u5f00\u9500\uff08Actual Spending\uff09"]},radar:{indicator:[{name:"\u9500\u552e\uff08sales\uff09",max:6500},{name:"\u7ba1\u7406\uff08Administration\uff09",max:16e3},{name:"\u4fe1\u606f\u6280\u672f\uff08Information Techology\uff09",max:3e4},{name:"\u5ba2\u670d\uff08Customer Support\uff09",max:38e3},{name:"\u7814\u53d1\uff08Development\uff09",max:52e3},{name:"\u5e02\u573a\uff08Marketing\uff09",max:25e3}]},series:[{name:"\u9884\u7b97 vs \u5f00\u9500\uff08Budget vs spending\uff09",type:"radar",data:[{value:[4300,1e4,28e3,35e3,5e4,19e3],name:"\u9884\u7b97\u5206\u914d\uff08Allocated Budget\uff09"},{value:[5e3,14e3,28e3,31e3,42e3,21e3],name:"\u5b9e\u9645\u5f00\u9500\uff08Actual Spending\uff09"}]}]};(0,r.useEffect)((function(){return function(){return clearTimeout(e)}}));var n={text:"\u52a0\u8f7d\u4e2d...",color:"#4413c2",textColor:"#270240",maskColor:"rgba(194, 88, 86, 0.3)",zlevel:0};function a(t){e=setTimeout((function(){t.hideLoading()}),3e3)}return r["default"].createElement(i["default"],{option:t,style:{height:400},onChartReady:a,loadingOption:n,showLoading:!0})},o=a;return r["default"].createElement(o)},previewerProps:{sources:{_:{tsx:"import React, { useState, useEffect } from 'react';\nimport ReactECharts from 'echarts-for-react';\n\nconst Page: React.FC = () => {\n const option = {\n title: {\n text: '\u57fa\u7840\u96f7\u8fbe\u56fe'\n },\n tooltip: {},\n legend: {\n data: ['\u9884\u7b97\u5206\u914d\uff08Allocated Budget\uff09', '\u5b9e\u9645\u5f00\u9500\uff08Actual Spending\uff09']\n },\n radar: {\n // shape: 'circle',\n indicator: [\n { name: '\u9500\u552e\uff08sales\uff09', max: 6500},\n { name: '\u7ba1\u7406\uff08Administration\uff09', max: 16000},\n { name: '\u4fe1\u606f\u6280\u672f\uff08Information Techology\uff09', max: 30000},\n { name: '\u5ba2\u670d\uff08Customer Support\uff09', max: 38000},\n { name: '\u7814\u53d1\uff08Development\uff09', max: 52000},\n { name: '\u5e02\u573a\uff08Marketing\uff09', max: 25000}\n ]\n },\n series: [{\n name: '\u9884\u7b97 vs \u5f00\u9500\uff08Budget vs spending\uff09',\n type: 'radar',\n // areaStyle: {normal: {}},\n data : [\n {\n value : [4300, 10000, 28000, 35000, 50000, 19000],\n name : '\u9884\u7b97\u5206\u914d\uff08Allocated Budget\uff09'\n },\n {\n value : [5000, 14000, 28000, 31000, 42000, 21000],\n name : '\u5b9e\u9645\u5f00\u9500\uff08Actual Spending\uff09'\n }\n ]\n }]\n };\n\n let timer;\n\n useEffect(() => {\n return () => clearTimeout(timer);\n });\n\n const loadingOption = {\n text: '\u52a0\u8f7d\u4e2d...',\n color: '#4413c2',\n textColor: '#270240',\n maskColor: 'rgba(194, 88, 86, 0.3)',\n zlevel: 0\n };\n\n function onChartReady(echarts) {\n timer = setTimeout(function() {\n echarts.hideLoading();\n }, 3000);\n }\n\n return <ReactECharts\n option={option}\n style={{ height: 400 }}\n onChartReady={onChartReady}\n loadingOption={loadingOption}\n showLoading={true}\n />;\n};\n\nexport default Page;"}},dependencies:{react:{version:"^15.0.0 || >=16.0.0"},"echarts-for-react":{version:"3.0.0-beta.2"},echarts:{version:"^3.0.0 || ^4.0.0 || ^5.0.0"}},identifier:"loading-demo"}},"simple-demo":{component:function(){var e=n("sTX5"),t=e(n("xwgP")),r=e(n("/7QA")),i=function(){var e={title:{text:"\u5806\u53e0\u533a\u57df\u56fe"},tooltip:{trigger:"axis"},legend:{data:["\u90ae\u4ef6\u8425\u9500","\u8054\u76df\u5e7f\u544a","\u89c6\u9891\u5e7f\u544a"]},toolbox:{feature:{saveAsImage:{}}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:["\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d","\u5468\u65e5"]}],yAxis:[{type:"value"}],series:[{name:"\u90ae\u4ef6\u8425\u9500",type:"line",stack:"\u603b\u91cf",areaStyle:{normal:{}},data:[120,132,101,134,90,230,210]},{name:"\u8054\u76df\u5e7f\u544a",type:"line",stack:"\u603b\u91cf",areaStyle:{normal:{}},data:[220,182,191,234,290,330,310]},{name:"\u89c6\u9891\u5e7f\u544a",type:"line",stack:"\u603b\u91cf",areaStyle:{normal:{}},data:[150,232,201,154,190,330,410]}]};return t["default"].createElement(r["default"],{option:e,style:{height:400}})},a=i;return t["default"].createElement(a)},previewerProps:{sources:{_:{tsx:"import React from 'react';\nimport ReactECharts from 'echarts-for-react';\n\nconst Page: React.FC = () => {\n const option = {\n title: {\n text: '\u5806\u53e0\u533a\u57df\u56fe'\n },\n tooltip : {\n trigger: 'axis'\n },\n legend: {\n data:['\u90ae\u4ef6\u8425\u9500','\u8054\u76df\u5e7f\u544a','\u89c6\u9891\u5e7f\u544a']\n },\n toolbox: {\n feature: {\n saveAsImage: {}\n }\n },\n grid: {\n left: '3%',\n right: '4%',\n bottom: '3%',\n containLabel: true\n },\n xAxis : [\n {\n type : 'category',\n boundaryGap : false,\n data : ['\u5468\u4e00','\u5468\u4e8c','\u5468\u4e09','\u5468\u56db','\u5468\u4e94','\u5468\u516d','\u5468\u65e5']\n }\n ],\n yAxis : [\n {\n type : 'value'\n }\n ],\n series : [\n {\n name:'\u90ae\u4ef6\u8425\u9500',\n type:'line',\n stack: '\u603b\u91cf',\n areaStyle: {normal: {}},\n data:[120, 132, 101, 134, 90, 230, 210]\n },\n {\n name:'\u8054\u76df\u5e7f\u544a',\n type:'line',\n stack: '\u603b\u91cf',\n areaStyle: {normal: {}},\n data:[220, 182, 191, 234, 290, 330, 310]\n },\n {\n name:'\u89c6\u9891\u5e7f\u544a',\n type:'line',\n stack: '\u603b\u91cf',\n areaStyle: {normal: {}},\n data:[150, 232, 201, 154, 190, 330, 410]\n }\n ]\n };\n\n return <ReactECharts\n option={option}\n style={{ height: 400 }}\n />;\n};\n\nexport default Page;"}},dependencies:{react:{version:"^15.0.0 || >=16.0.0"},"echarts-for-react":{version:"3.0.0-beta.2"},echarts:{version:"^3.0.0 || ^4.0.0 || ^5.0.0"}},identifier:"simple-demo"}},"svg-demo":{component:function(){var e=n("sTX5"),t=e(n("xwgP")),r=e(n("/7QA")),i=function(){var e={title:{text:"ECharts \u5165\u95e8\u793a\u4f8b"},tooltip:{},legend:{data:["\u9500\u91cf"]},xAxis:{data:["\u886c\u886b","\u7f8a\u6bdb\u886b","\u96ea\u7eba\u886b","\u88e4\u5b50","\u9ad8\u8ddf\u978b","\u889c\u5b50"]},yAxis:{},series:[{name:"\u9500\u91cf",type:"bar",data:[5,20,36,10,10,20]}]};return t["default"].createElement(r["default"],{option:e,style:{height:400},opts:{renderer:"svg"}})},a=i;return t["default"].createElement(a)},previewerProps:{sources:{_:{tsx:"import React from 'react';\nimport ReactECharts from 'echarts-for-react';\n\nconst Page: React.FC = () => {\n const option = {\n title: {\n text: 'ECharts \u5165\u95e8\u793a\u4f8b'\n },\n tooltip: {},\n legend: {\n data:['\u9500\u91cf']\n },\n xAxis: {\n data: ['\u886c\u886b', '\u7f8a\u6bdb\u886b', '\u96ea\u7eba\u886b', '\u88e4\u5b50', '\u9ad8\u8ddf\u978b', '\u889c\u5b50']\n },\n yAxis: {},\n series: [{\n name: '\u9500\u91cf',\n type: 'bar',\n data: [5, 20, 36, 10, 10, 20]\n }]\n };\n\n return <ReactECharts\n option={option}\n style={{ height: 400 }}\n opts={{ renderer: 'svg' }}\n />;\n};\n\nexport default Page;"}},dependencies:{react:{version:"^15.0.0 || >=16.0.0"},"echarts-for-react":{version:"3.0.0-beta.2"},echarts:{version:"^3.0.0 || ^4.0.0 || ^5.0.0"}},identifier:"svg-demo"}},"theme-demo":{component:function(){var e=n("Fcd/"),t=n("sTX5"),r=t(n("ob7Q")),i=e(n("xwgP")),a=e(n("P7C2")),o=t(n("/7QA"));a.registerTheme("my_theme",{backgroundColor:"#f4cccc"}),a.registerTheme("another_theme",{backgroundColor:"#eee"});var s=function(){var e={title:{text:"\u9636\u68af\u7011\u5e03\u56fe",subtext:"From ExcelHome",sublink:"http://e.weibo.com/1341556070/Aj1J2x5a5"},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{data:["\u652f\u51fa","\u6536\u5165"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",splitLine:{show:!1},data:["11\u67081\u65e5","11\u67082\u65e5","11\u67083\u65e5","11\u67084\u65e5","11\u67085\u65e5","11\u67086\u65e5","11\u67087\u65e5","11\u67088\u65e5","11\u67089\u65e5","11\u670810\u65e5","11\u670811\u65e5"]},yAxis:{type:"value"},series:[{name:"\u8f85\u52a9",type:"bar",stack:"\u603b\u91cf",itemStyle:{normal:{barBorderColor:"rgba(0,0,0,0)",color:"rgba(0,0,0,0)"},emphasis:{barBorderColor:"rgba(0,0,0,0)",color:"rgba(0,0,0,0)"}},data:[0,900,1245,1530,1376,1376,1511,1689,1856,1495,1292]},{name:"\u6536\u5165",type:"bar",stack:"\u603b\u91cf",label:{normal:{show:!0,position:"top"}},data:[900,345,393,"-","-",135,178,286,"-","-","-"]},{name:"\u652f\u51fa",type:"bar",stack:"\u603b\u91cf",label:{normal:{show:!0,position:"bottom"}},data:["-","-","-",108,154,"-","-","-",119,361,203]}]},t=(0,i.useState)(),n=(0,r["default"])(t,2),a=n[0],s=n[1],l=(0,i.useState)("class_1"),u=(0,r["default"])(l,2),c=u[0],h=u[1];function d(){s("my_theme"===a?"another_theme":"my_theme")}function f(){h("class_1"===c?"class_2":"class_1")}return i["default"].createElement(i["default"].Fragment,null,i["default"].createElement(o["default"],{option:e,className:c,theme:a,style:{height:400}}),i["default"].createElement("br",null),i["default"].createElement("div",null,i["default"].createElement("button",{onClick:d},"Click to Toggle theme."),i["default"].createElement("button",{onClick:f},"Click to Toggle className.")))},l=s;return i["default"].createElement(l)},previewerProps:{sources:{_:{tsx:"import React, { useState } from 'react';\nimport * as echarts from 'echarts';\nimport ReactECharts from 'echarts-for-react';\n\necharts.registerTheme('my_theme', {\n backgroundColor: '#f4cccc'\n});\necharts.registerTheme('another_theme', {\n backgroundColor: '#eee'\n});\n\nconst Page: React.FC = () => {\n const option = {\n title: {\n text: '\u9636\u68af\u7011\u5e03\u56fe',\n subtext: 'From ExcelHome',\n sublink: 'http://e.weibo.com/1341556070/Aj1J2x5a5'\n },\n tooltip : {\n trigger: 'axis',\n axisPointer : { // \u5750\u6807\u8f74\u6307\u793a\u5668\uff0c\u5750\u6807\u8f74\u89e6\u53d1\u6709\u6548\n type : 'shadow' // \u9ed8\u8ba4\u4e3a\u76f4\u7ebf\uff0c\u53ef\u9009\u4e3a\uff1a'line' | 'shadow'\n }\n },\n legend: {\n data:['\u652f\u51fa','\u6536\u5165']\n },\n grid: {\n left: '3%',\n right: '4%',\n bottom: '3%',\n containLabel: true\n },\n xAxis: {\n type : 'category',\n splitLine: {show:false},\n data : [\"11\u67081\u65e5\", \"11\u67082\u65e5\", \"11\u67083\u65e5\", \"11\u67084\u65e5\", \"11\u67085\u65e5\", \"11\u67086\u65e5\", \"11\u67087\u65e5\", \"11\u67088\u65e5\", \"11\u67089\u65e5\", \"11\u670810\u65e5\", \"11\u670811\u65e5\"]\n },\n yAxis: {\n type : 'value'\n },\n series: [\n {\n name: '\u8f85\u52a9',\n type: 'bar',\n stack: '\u603b\u91cf',\n itemStyle: {\n normal: {\n barBorderColor: 'rgba(0,0,0,0)',\n color: 'rgba(0,0,0,0)'\n },\n emphasis: {\n barBorderColor: 'rgba(0,0,0,0)',\n color: 'rgba(0,0,0,0)'\n }\n },\n data: [0, 900, 1245, 1530, 1376, 1376, 1511, 1689, 1856, 1495, 1292]\n },\n {\n name: '\u6536\u5165',\n type: 'bar',\n stack: '\u603b\u91cf',\n label: {\n normal: {\n show: true,\n position: 'top'\n }\n },\n data: [900, 345, 393, '-', '-', 135, 178, 286, '-', '-', '-']\n },\n {\n name: '\u652f\u51fa',\n type: 'bar',\n stack: '\u603b\u91cf',\n label: {\n normal: {\n show: true,\n position: 'bottom'\n }\n },\n data: ['-', '-', '-', 108, 154, '-', '-', '-', 119, 361, 203]\n }\n ]\n };\n\n const [theme, setTheme] = useState();\n const [className, setClassName] = useState('class_1');\n\n function toggleTheme() {\n setTheme(theme === 'my_theme' ? 'another_theme' : 'my_theme');\n }\n\n function toggleClassName() {\n setClassName(className === 'class_1' ? 'class_2' : 'class_1');\n }\n\n return (\n <>\n <ReactECharts\n option={option}\n className={className}\n theme={theme}\n style={{ height: 400 }}\n />\n <br />\n <div>\n <button onClick={toggleTheme}>Click to Toggle theme.</button>\n <button onClick={toggleClassName}>Click to Toggle className.</button>\n </div>\n </>\n );\n};\n\nexport default Page;"}},dependencies:{react:{version:"^15.0.0 || >=16.0.0"},echarts:{version:"^3.0.0 || ^4.0.0 || ^5.0.0"},"echarts-for-react":{version:"3.0.0-beta.2"}},identifier:"theme-demo"}}}},RtWR:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},Rvel:function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return u})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return h}));var r=n("sKBc"),i=r["u"];function a(e,t,n,a){var s={},u=e[1]-e[0],c=s.interval=r["l"](u/t,!0);null!=n&&c<n&&(c=s.interval=n),null!=a&&c>a&&(c=s.interval=a);var h=s.intervalPrecision=o(c),d=s.niceTickExtent=[i(Math.ceil(e[0]/c)*c,h),i(Math.floor(e[1]/c)*c,h)];return l(d,e),s}function o(e){return r["g"](e)+2}function s(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function l(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),s(e,0,t),s(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function u(e,t){return e>=t[0]&&e<=t[1]}function c(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function h(e,t){return e*(t[1]-t[0])+t[0]}},"Rx/k":function(e,t,n){"use strict";var r="%[a-f0-9]{2}",i=new RegExp(r,"gi"),a=new RegExp("("+r+")+","gi");function o(e,t){try{return decodeURIComponent(e.join(""))}catch(i){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],o(n),o(r))}function s(e){try{return decodeURIComponent(e)}catch(r){for(var t=e.match(i),n=1;n<t.length;n++)e=o(t,n).join(""),t=e.match(i);return e}}function l(e){var t={"%FE%FF":"\ufffd\ufffd","%FF%FE":"\ufffd\ufffd"},n=a.exec(e);while(n){try{t[n[0]]=decodeURIComponent(n[0])}catch(u){var r=s(n[0]);r!==n[0]&&(t[n[0]]=r)}n=a.exec(e)}t["%C2"]="\ufffd";for(var i=Object.keys(t),o=0;o<i.length;o++){var l=i[o];e=e.replace(new RegExp(l,"g"),t[l])}return e}e.exports=function(e){if("string"!==typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return l(e)}}},S6jd:function(e,t,n){"use strict";var r=n("HIsA"),i=n("m52V"),a=n("LTDN");r({target:"Map",proto:!0,real:!0,forced:i},{deleteAll:function(){return a.apply(this,arguments)}})},SCzs:function(e,t,n){var r=n("HIsA"),i=n("icJ8"),a=n("hXyk"),o=i.toKey,s=i.set;r({target:"Reflect",stat:!0},{defineMetadata:function(e,t,n){var r=arguments.length<4?void 0:o(arguments[3]);s(e,t,a(n),r)}})},SPWa:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n("ekZt"),i=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],a=Object(r["a"])(i),o=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return a(this,e,t)},e}()},SrKn:function(e,t,n){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())}))}},"T3M/":function(e,t,n){"use strict";function r(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function i(e,t){return e[0]=t[0],e[1]=t[1],e}function a(e){return[e[0],e[1]]}function o(e,t,n){return e[0]=t,e[1]=n,e}function s(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function l(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function u(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function c(e){return Math.sqrt(d(e))}n.r(t),n.d(t,"create",(function(){return r})),n.d(t,"copy",(function(){return i})),n.d(t,"clone",(function(){return a})),n.d(t,"set",(function(){return o})),n.d(t,"add",(function(){return s})),n.d(t,"scaleAndAdd",(function(){return l})),n.d(t,"sub",(function(){return u})),n.d(t,"len",(function(){return c})),n.d(t,"length",(function(){return h})),n.d(t,"lenSquare",(function(){return d})),n.d(t,"lengthSquare",(function(){return f})),n.d(t,"mul",(function(){return p})),n.d(t,"div",(function(){return g})),n.d(t,"dot",(function(){return m})),n.d(t,"scale",(function(){return v})),n.d(t,"normalize",(function(){return y})),n.d(t,"distance",(function(){return b})),n.d(t,"dist",(function(){return _})),n.d(t,"distanceSquare",(function(){return x})),n.d(t,"distSquare",(function(){return w})),n.d(t,"negate",(function(){return S})),n.d(t,"lerp",(function(){return T})),n.d(t,"applyTransform",(function(){return O})),n.d(t,"min",(function(){return M})),n.d(t,"max",(function(){return E}));var h=c;function d(e){return e[0]*e[0]+e[1]*e[1]}var f=d;function p(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function g(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function m(e,t){return e[0]*t[0]+e[1]*t[1]}function v(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function y(e,t){var n=c(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function b(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var _=b;function x(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var w=x;function S(e,t){return e[0]=-t[0],e[1]=-t[1],e}function T(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function O(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function M(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function E(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}},T9r4:function(e,t,n){var r=n("bXon");e.exports=r("navigator","userAgent")||""},TOff:function(e,t,n){"use strict";var r=n("45XY");function i(){var e=l(n("xwgP"));return i=function(){return e},e}function a(){var e=o(n("7QR1"));return a=function(){return e},e}function o(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n["default"]=e,t&&t.set(e,n),n}function u(e,t){return p(e)||f(e,t)||h(e,t)||c()}function c(){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 h(e,t){if(e){if("string"===typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(n.push(o.value),t&&n.length===t)break}catch(l){i=!0,a=l}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw a}}return n}}function p(e){if(Array.isArray(e))return e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var g="https://codesandbox.io/api/v1/sandboxes/define";function m(e){return a()["default"].compressToBase64(JSON.stringify(e)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function v(e){var t=document.createElement("span");t.innerHTML=e;var n=t.textContent;return t.remove(),n}function y(e){var t=Boolean(e.sources._.tsx),n=t?".tsx":".jsx",i={},a={},o=Object.values(e.dependencies).filter((function(e){return e.css})),s="App".concat(n),l="index".concat(n);return Object.entries(e.dependencies).forEach((function(e){var t=r(e,2),n=t[0],i=t[1].version;a[n]=i})),a["react-dom"]||(a["react-dom"]=a.react||"latest"),i["sandbox.config.json"]={content:JSON.stringify({template:t?"create-react-app-typescript":"create-react-app"},null,2)},i["package.json"]={content:JSON.stringify({name:e.title,description:v(e.description)||"An auto-generated demo by dumi",main:l,dependencies:a,devDependencies:t?{typescript:"^3"}:{}},null,2)},i["index.html"]={content:'<div style="margin: 16px;" id="root"></div>'},i[l]={content:"/**\n* This is an auto-generated demo by dumi\n* if you think it is not working as expected,\n* please report the issue at\n* https://github.com/umijs/dumi/issues\n**/\n\nimport React from 'react';\nimport ReactDOM from 'react-dom';\n".concat(o.map((function(e){var t=e.css;return"import '".concat(t,"';")})).join("\n"),"\nimport App from './App';\n\nReactDOM.render(\n <App />,\n document.getElementById('root'),\n);")},Object.entries(e.sources).forEach((function(e){var t=r(e,2),n=t[0],a=t[1],o=a.tsx,l=a.jsx,u=a.content;i["_"===n?s:n]={content:o||l||u}})),m({files:i})}var b=function(e){var t=(0,i().useState)(),n=u(t,2),r=n[0],a=n[1];return(0,i().useEffect)((function(){if(e){var t=document.createElement("form"),n=document.createElement("input"),r=y(e);return t.method="POST",t.target="_blank",t.style.display="none",t.action=g,t.appendChild(n),t.setAttribute("data-demo",e.title||""),n.name="parameters",n.value=r,document.body.appendChild(t),a((function(){return function(){return t.submit()}})),function(){return t.remove()}}}),[e]),r};t["default"]=b},TbZX:function(e,t,n){"use strict";var r=n("zb3V"),i=n("H4kQ"),a=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),o=function(e){function t(t){return e.call(this,t)||this}return Object(r["b"])(t,e),t.prototype.getDefaultShape=function(){return new a},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=2*Math.PI;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(i["b"]);o.prototype.type="ring",t["a"]=o},Tek4:function(e,t,n){"use strict";var r=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"===typeof t&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;null!=t&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o<i[e].length;o++)if(i[e][o].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},l=i[e].length-1,u=i[e][l];return u&&u.callAtLast?i[e].splice(l,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,a=n[e].length;i<a;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&0===n[e].length&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var a=t.length,o=r.length,s=0;s<o;s++){var l=r[s];if(!i||!i.filter||null==l.query||i.filter(e,l.query))switch(a){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,t[0]);break;case 2:l.h.call(l.ctx,t[0],t[1]);break;default:l.h.apply(l.ctx,t);break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){if(!this._$handlers)return this;var t=this._$handlers[e],n=this._$eventProcessor;if(t)for(var r=arguments,i=r.length,a=r[i-1],o=t.length,s=0;s<o;s++){var l=t[s];if(!n||!n.filter||null==l.query||n.filter(e,l.query))switch(i){case 0:l.h.call(a);break;case 1:l.h.call(a,r[0]);break;case 2:l.h.call(a,r[0],r[1]);break;default:l.h.apply(a,r.slice(1,i-1));break}}return n&&n.afterTrigger&&n.afterTrigger(e),this},e}();t["a"]=r},Tk1U:function(e,t,n){"use strict";var r=n("hXyk"),i=n("n2ef");e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return i(r(this),"number"!==e)}},Tphk:function(e,t,n){"use strict";var r=n("HIsA"),i=n("Ji6T"),a=n("DDwO");r({target:"Map",stat:!0},{keyBy:function(e,t){var n=new this;a(t);var r=a(n.set);return i(e,(function(e){r.call(n,t(e),e)})),n}})},UPu9:function(e,t,n){var r=n("hXyk"),i=n("0f0C");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(n,[]),t=n instanceof Array}catch(a){}return function(n,a){return r(n),i(a),t?e.call(n,a):n.__proto__=a,n}}():void 0)},UTnC:function(e,t,n){"use strict";var r=n("ma2j"),i=n("Iu9s"),a=RegExp.prototype.exec,o=String.prototype.replace,s=a,l=function(){var e=/a/,t=/b*/g;return a.call(e,"a"),a.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),u=i.UNSUPPORTED_Y||i.BROKEN_CARET,c=void 0!==/()??/.exec("")[1],h=l||c||u;h&&(s=function(e){var t,n,i,s,h=this,d=u&&h.sticky,f=r.call(h),p=h.source,g=0,m=e;return d&&(f=f.replace("y",""),-1===f.indexOf("g")&&(f+="g"),m=String(e).slice(h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==e[h.lastIndex-1])&&(p="(?: "+p+")",m=" "+m,g++),n=new RegExp("^(?:"+p+")",f)),c&&(n=new RegExp("^"+p+"$(?!\\s)",f)),l&&(t=h.lastIndex),i=a.call(d?n:h,m),d?i?(i.input=i.input.slice(g),i[0]=i[0].slice(g),i.index=h.lastIndex,h.lastIndex+=i[0].length):h.lastIndex=0:l&&i&&(h.lastIndex=h.global?i.index+i[0].length:t),c&&i&&i.length>1&&o.call(i[0],n,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(i[s]=void 0)})),i}),e.exports=s},Uadk:function(e,t,n){var r=n("HIsA"),i=n("E06e"),a=Math.acosh,o=Math.log,s=Math.sqrt,l=Math.LN2,u=!a||710!=Math.floor(a(Number.MAX_VALUE))||a(1/0)!=1/0;r({target:"Math",stat:!0,forced:u},{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?o(e)+l:i(e-1+s(e-1)*s(e+1))}})},UluK:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return o}));var r=n("a0Kb"),i=Object(r["createHashMap"])();function a(e,t){Object(r["assert"])(null==i.get(e)&&t),i.set(e,t)}function o(e,t,n){var r=i.get(t);if(!r)return n;var a=r(e);return a?n.concat(a):n}},UqPo:function(e,t,n){var r=n("HIsA"),i=n("icJ8"),a=n("hXyk"),o=i.toKey,s=i.getMap,l=i.store;r({target:"Reflect",stat:!0},{deleteMetadata:function(e,t){var n=arguments.length<3?void 0:o(arguments[2]),r=s(a(t),n,!1);if(void 0===r||!r["delete"](e))return!1;if(r.size)return!0;var i=l.get(t);return i["delete"](n),!!i.size||l["delete"](t)}})},Uvls:function(e,t,n){"use strict";var r=n("R64i"),i=n("KpHK");e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},UyjF:function(e,t,n){},UywP:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},V1Aq:function(e,t,n){"use strict";n.d(t,"e",(function(){return A})),n.d(t,"c",(function(){return D})),n.d(t,"b",(function(){return L})),n.d(t,"d",(function(){return R})),n.d(t,"a",(function(){return N}));var r=n("8XEw"),i=n("H4kQ"),a=n("9kVb"),o=n("5MTG"),s=n("qNXd"),l=n("Yc1X"),u=n("a0Kb"),c=n("VpdQ"),h=n("T3M/"),d=n("wh+7"),f=2*Math.PI,p=o["a"].CMD,g=["top","right","bottom","left"];function m(e,t,n,r,i){var a=n.width,o=n.height;switch(e){case"top":r.set(n.x+a/2,n.y-t),i.set(0,-1);break;case"bottom":r.set(n.x+a/2,n.y+o+t),i.set(0,1);break;case"left":r.set(n.x-t,n.y+o/2),i.set(-1,0);break;case"right":r.set(n.x+a+t,n.y+o/2),i.set(1,0);break}}function v(e,t,n,r,i,a,o,l,u){o-=e,l-=t;var c=Math.sqrt(o*o+l*l);o/=c,l/=c;var h=o*n+e,d=l*n+t;if(Math.abs(r-i)%f<1e-4)return u[0]=h,u[1]=d,c-n;if(a){var p=r;r=Object(s["a"])(i),i=Object(s["a"])(p)}else r=Object(s["a"])(r),i=Object(s["a"])(i);r>i&&(i+=f);var g=Math.atan2(l,o);if(g<0&&(g+=f),g>=r&&g<=i||g+f>=r&&g+f<=i)return u[0]=h,u[1]=d,c-n;var m=n*Math.cos(r)+e,v=n*Math.sin(r)+t,y=n*Math.cos(i)+e,b=n*Math.sin(i)+t,_=(m-o)*(m-o)+(v-l)*(v-l),x=(y-o)*(y-o)+(b-l)*(b-l);return _<x?(u[0]=m,u[1]=v,Math.sqrt(_)):(u[0]=y,u[1]=b,Math.sqrt(x))}function y(e,t,n,r,i,a,o,s){var l=i-e,u=a-t,c=n-e,h=r-t,d=Math.sqrt(c*c+h*h);c/=d,h/=d;var f=l*c+u*h,p=f/d;s&&(p=Math.min(Math.max(p,0),1)),p*=d;var g=o[0]=e+p*c,m=o[1]=t+p*h;return Math.sqrt((g-i)*(g-i)+(m-a)*(m-a))}function b(e,t,n,r,i,a,o){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r);var s=e+n,l=t+r,u=o[0]=Math.min(Math.max(i,e),s),c=o[1]=Math.min(Math.max(a,t),l);return Math.sqrt((u-i)*(u-i)+(c-a)*(c-a))}var _=[];function x(e,t,n){var r=b(t.x,t.y,t.width,t.height,e.x,e.y,_);return n.set(_[0],_[1]),r}function w(e,t,n){for(var r,i,a=0,o=0,s=0,u=0,c=1/0,h=t.data,d=e.x,f=e.y,g=0;g<h.length;){var m=h[g++];1===g&&(a=h[g],o=h[g+1],s=a,u=o);var x=c;switch(m){case p.M:s=h[g++],u=h[g++],a=s,o=u;break;case p.L:x=y(a,o,h[g],h[g+1],d,f,_,!0),a=h[g++],o=h[g++];break;case p.C:x=Object(l["e"])(a,o,h[g++],h[g++],h[g++],h[g++],h[g],h[g+1],d,f,_),a=h[g++],o=h[g++];break;case p.Q:x=Object(l["l"])(a,o,h[g++],h[g++],h[g],h[g+1],d,f,_),a=h[g++],o=h[g++];break;case p.A:var w=h[g++],S=h[g++],T=h[g++],O=h[g++],M=h[g++],E=h[g++];g+=1;var A=!!(1-h[g++]);r=Math.cos(M)*T+w,i=Math.sin(M)*O+S,g<=1&&(s=r,u=i);var C=(d-w)*O/T+w;x=v(w,S,O,M,M+E,A,C,f,_),a=Math.cos(M+E)*T+w,o=Math.sin(M+E)*O+S;break;case p.R:s=a=h[g++],u=o=h[g++];var I=h[g++],D=h[g++];x=b(s,u,I,D,d,f,_);break;case p.Z:x=y(a,o,s,u,d,f,_,!0),a=s,o=u;break}x<c&&(c=x,n.set(_[0],_[1]))}return c}var S=new r["a"],T=new r["a"],O=new r["a"],M=new r["a"],E=new r["a"];function A(e,t){if(e){var n=e.getTextGuideLine(),a=e.getTextContent();if(a&&n){var o=e.textGuideLineConfig||{},s=[[0,0],[0,0],[0,0]],l=o.candidates||g,u=a.getBoundingRect().clone();u.applyTransform(a.getComputedTransform());var h=1/0,d=o.anchor,f=e.getComputedTransform(),p=f&&Object(c["invert"])([],f),v=t.get("length2")||0;d&&O.copy(d);for(var y=0;y<l.length;y++){var b=l[y];m(b,0,u,S,M),r["a"].scaleAndAdd(T,S,M,v),T.transform(p);var _=e.getBoundingRect(),E=d?d.distance(T):e instanceof i["b"]?w(T,e.path,O):x(T,_,O);E<h&&(h=E,T.transform(f),O.transform(f),O.toArray(s[0]),T.toArray(s[1]),S.toArray(s[2]))}D(s,t.get("minTurnAngle")),n.setShape({points:s})}}}var C=[],I=new r["a"];function D(e,t){if(t<=180&&t>0){t=t/180*Math.PI,S.fromArray(e[0]),T.fromArray(e[1]),O.fromArray(e[2]),r["a"].sub(M,S,T),r["a"].sub(E,O,T);var n=M.len(),i=E.len();if(!(n<.001||i<.001)){M.scale(1/n),E.scale(1/i);var a=M.dot(E),o=Math.cos(t);if(o<a){var s=y(T.x,T.y,O.x,O.y,S.x,S.y,C,!1);I.fromArray(C),I.scaleAndAdd(E,s/Math.tan(Math.PI-t));var l=O.x!==T.x?(I.x-T.x)/(O.x-T.x):(I.y-T.y)/(O.y-T.y);if(isNaN(l))return;l<0?r["a"].copy(I,T):l>1&&r["a"].copy(I,O),I.toArray(e[1])}}}}function L(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,S.fromArray(e[0]),T.fromArray(e[1]),O.fromArray(e[2]),r["a"].sub(M,T,S),r["a"].sub(E,O,T);var i=M.len(),a=E.len();if(!(i<.001||a<.001)){M.scale(1/i),E.scale(1/a);var o=M.dot(t),s=Math.cos(n);if(o<s){var l=y(T.x,T.y,O.x,O.y,S.x,S.y,C,!1);I.fromArray(C);var u=Math.PI/2,c=Math.acos(E.dot(t)),h=u+c-n;if(h>=u)r["a"].copy(I,O);else{I.scaleAndAdd(E,l/Math.tan(Math.PI/2-h));var d=O.x!==T.x?(I.x-T.x)/(O.x-T.x):(I.y-T.y)/(O.y-T.y);if(isNaN(d))return;d<0?r["a"].copy(I,T):d>1&&r["a"].copy(I,O)}I.toArray(e[1])}}}}function P(e,t,n,r){var i="normal"===n,a=i?e:e.ensureState(n);a.ignore=t;var o=r.get("smooth");o&&!0===o&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=r.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function k(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=h["dist"](r[0],r[1]),a=h["dist"](r[1],r[2]);if(!i||!a)return e.lineTo(r[1][0],r[1][1]),void e.lineTo(r[2][0],r[2][1]);var o=Math.min(i,a)*n,s=h["lerp"]([],r[1],r[0],o/i),l=h["lerp"]([],r[1],r[2],o/a),u=h["lerp"]([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c<r.length;c++)e.lineTo(r[c][0],r[c][1])}function R(e,t,n){var r=e.getTextGuideLine(),i=e.getTextContent();if(i){for(var o=t.normal,s=o.get("show"),l=i.ignore,c=0;c<d["a"].length;c++){var h=d["a"][c],f=t[h],p="normal"===h;if(f){var g=f.get("show"),m=p?l:Object(u["retrieve2"])(i.states[h]&&i.states[h].ignore,l);if(m||!Object(u["retrieve2"])(g,s)){var v=p?r:r&&r.states.normal;v&&(v.ignore=!0);continue}r||(r=new a["a"],e.setTextGuideLine(r),p||!l&&s||P(r,!0,"normal",t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),P(r,!1,h,f)}}if(r){Object(u["defaults"])(r.style,n),r.style.fill=null;var y=o.get("showAbove"),b=e.textGuideLineConfig=e.textGuideLineConfig||{};b.showAbove=y||!1,r.buildPath=k}}else r&&e.removeTextGuideLine()}function N(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},r=0;r<d["g"].length;r++){var i=d["g"][r];n[i]=e.getModel([i,t])}return n}},"V8i+":function(e,t,n){"use strict";var r=n("HIsA"),i=n("m52V"),a=n("bXon"),o=n("hXyk"),s=n("DDwO"),l=n("40mc"),u=n("70zE"),c=n("YjHi"),h=n("Ji6T");r({target:"Map",proto:!0,real:!0,forced:i},{filter:function(e){var t=o(this),n=c(t),r=l(e,arguments.length>1?arguments[1]:void 0,3),i=new(u(t,a("Map"))),d=s(i.set);return h(n,(function(e,n){r(n,e,t)&&d.call(i,e,n)}),void 0,!0,!0),i}})},VGoH:function(e,t,n){"use strict";var r=n("zb3V"),i=n("H4kQ"),a=n("T3M/"),o=n("Yc1X"),s=[],l=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function u(e,t,n){var r=e.cpx2,i=e.cpy2;return null===r||null===i?[(n?o["b"]:o["a"])(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?o["b"]:o["a"])(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?o["i"]:o["h"])(e.x1,e.cpx1,e.x2,t),(n?o["i"]:o["h"])(e.y1,e.cpy1,e.y2,t)]}var c=function(e){function t(t){return e.call(this,t)||this}return Object(r["b"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new l},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2,l=t.cpx1,u=t.cpy1,c=t.cpx2,h=t.cpy2,d=t.percent;0!==d&&(e.moveTo(n,r),null==c||null==h?(d<1&&(Object(o["n"])(n,l,i,d,s),l=s[1],i=s[2],Object(o["n"])(r,u,a,d,s),u=s[1],a=s[2]),e.quadraticCurveTo(l,u,i,a)):(d<1&&(Object(o["g"])(n,l,c,i,d,s),l=s[1],c=s[2],i=s[3],Object(o["g"])(r,u,h,a,d,s),u=s[1],h=s[2],a=s[3]),e.bezierCurveTo(l,u,c,h,i,a)))},t.prototype.pointAt=function(e){return u(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=u(this.shape,e,!0);return a["normalize"](t,t)},t}(i["b"]);c.prototype.type="bezier-curve",t["a"]=c},VeQJ:function(e,t,n){"use strict";e.exports=function(){var e=arguments.length,t=new Array(e);while(e--)t[e]=arguments[e];return new this(t)}},VpdQ:function(e,t,n){"use strict";function r(){return[1,0,0,1,0,0]}function i(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function a(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function o(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function s(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function l(e,t,n){var r=t[0],i=t[2],a=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(n),c=Math.cos(n);return e[0]=r*c+o*u,e[1]=-r*u+o*c,e[2]=i*c+s*u,e[3]=-i*u+c*s,e[4]=c*a+u*l,e[5]=c*l-u*a,e}function u(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function c(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=n*o-a*r;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-o*i)*l,e[5]=(a*i-n*s)*l,e):null}function h(e){var t=r();return a(t,e),t}n.r(t),n.d(t,"create",(function(){return r})),n.d(t,"identity",(function(){return i})),n.d(t,"copy",(function(){return a})),n.d(t,"mul",(function(){return o})),n.d(t,"translate",(function(){return s})),n.d(t,"rotate",(function(){return l})),n.d(t,"scale",(function(){return u})),n.d(t,"invert",(function(){return c})),n.d(t,"clone",(function(){return h}))},Vq5P:function(e,t,n){"use strict";n.r(t);var r=n("xwgP"),i=n.n(r),a=n("kvV8"),o=n("lBQG"),s=i.a.memo(n("Rsk4").default["event-demo"].component);t["default"]=function(){return i.a.createElement(i.a.Fragment,null,i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"markdown"},i.a.createElement("h2",{id:"event"},i.a.createElement(a["AnchorLink"],{to:"#event","aria-hidden":"true",tabIndex:-1},i.a.createElement("span",{className:["icon","icon-link"]})),"Event")),i.a.createElement(o["default"],n("Rsk4").default["event-demo"].previewerProps,i.a.createElement(s,null))))}},W4wi:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var r=n("a0Kb"),i=n("+rxo");function a(e){var t={},n=t.encode={},a=Object(r["createHashMap"])(),s=[],u=[],c=t.userOutput={dimensionNames:e.dimensions.slice(),encode:{}};Object(r["each"])(e.dimensions,(function(t){var r=e.getDimensionInfo(t),h=r.coordDim;if(h){0;var d=r.coordDimIndex;o(n,h)[d]=t,r.isExtraCoord||(a.set(h,1),l(r.type)&&(s[0]=t),o(c.encode,h)[d]=r.index),r.defaultTooltip&&u.push(t)}i["i"].each((function(e,t){var i=o(n,t),a=r.otherDims[t];null!=a&&!1!==a&&(i[a]=r.name)}))}));var h=[],d={};a.each((function(e,t){var r=n[t];d[t]=r[0],h=h.concat(r)})),t.dataDimsOnCoord=h,t.encodeFirstDimNotExtra=d;var f=n.label;f&&f.length&&(s=f.slice());var p=n.tooltip;return p&&p.length?u=p.slice():u.length||(u=s.slice()),n.defaultedLabel=s,n.defaultedTooltip=u,t}function o(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function s(e){return"category"===e?"ordinal":"time"===e?"time":"float"}function l(e){return!("ordinal"===e||"time"===e)}},"W6v+":function(e,t,n){var r=n("bVFb");r("isConcatSpreadable")},WFeI:function(e,t,n){"use strict";var r=n("8XEw"),i=[0,0],a=[0,0],o=new r["a"],s=new r["a"],l=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new r["a"];for(n=0;n<2;n++)this._axes[n]=new r["a"];e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,i=this._axes,a=e.x,o=e.y,s=a+e.width,l=o+e.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),t)for(var u=0;u<4;u++)n[u].transform(t);r["a"].sub(i[0],n[1],n[0]),r["a"].sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},e.prototype.intersect=function(e,t){var n=!0,i=!t;return o.set(1/0,1/0),s.set(0,0),!this._intersectCheckOneSide(this,e,o,s,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(e,this,o,s,i,-1)&&(n=!1,i)||i||r["a"].copy(t,n?o:s),n},e.prototype._intersectCheckOneSide=function(e,t,n,o,s,l){for(var u=!0,c=0;c<2;c++){var h=this._axes[c];if(this._getProjMinMaxOnAxis(c,e._corners,i),this._getProjMinMaxOnAxis(c,t._corners,a),i[1]<a[0]||i[0]>a[1]){if(u=!1,s)return u;var d=Math.abs(a[0]-i[1]),f=Math.abs(i[0]-a[1]);Math.min(d,f)>o.len()&&(d<f?r["a"].scale(o,h,-d*l):r["a"].scale(o,h,f*l))}else if(n){d=Math.abs(a[0]-i[1]),f=Math.abs(i[0]-a[1]);Math.min(d,f)<n.len()&&(d<f?r["a"].scale(n,h,d*l):r["a"].scale(n,h,-f*l))}}return u},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,l=1;l<t.length;l++){var u=t[l].dot(r)+i[e];o=Math.min(u,o),s=Math.max(u,s)}n[0]=o,n[1]=s},e}();t["a"]=l},WJAu:function(e,t,n){"use strict";function r(e,t,n){var r;while(e){if(t(e)&&(r=e,n))break;e=e.__hostTarget||e.parent}return r}n.d(t,"a",(function(){return r}))},WNir:function(e,t,n){var r=n("DDwO"),i=n("NVMI"),a=n("aS93"),o=n("2I03"),s=function(e){return function(t,n,s,l){r(n);var u=i(t),c=a(u),h=o(u.length),d=e?h-1:0,f=e?-1:1;if(s<2)while(1){if(d in c){l=c[d],d+=f;break}if(d+=f,e?d<0:h<=d)throw TypeError("Reduce of empty array with no initial value")}for(;e?d>=0:h>d;d+=f)d in c&&(l=n(l,c[d],d,u));return l}};e.exports={left:s(!1),right:s(!0)}},WPZa:function(e,t,n){"use strict";var r=n("a0Kb"),i=function(){function e(e){this.otherDims={},null!=e&&r["extend"](this,e)}return e}();t["a"]=i},WZyy:function(e,t,n){},WdrS:function(e,t,n){var r=n("IRht"),i=n("UTnC");e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var a=n.call(e,t);if("object"!==typeof a)throw TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},Wovb:function(e,t,n){},Wp5u:function(e,t,n){"use strict";var r,i=n("13/t"),a=n("Hiyu"),o=n("2JD6"),s=n("pxmn"),l=n("+qhb"),u=n("KpHK"),c=n("D8FR"),h=n("GUTS"),d=n("2RC6").f,f=n("kI7s"),p=n("UPu9"),g=n("kPvK"),m=n("fotI"),v=o.Int8Array,y=v&&v.prototype,b=o.Uint8ClampedArray,_=b&&b.prototype,x=v&&f(v),w=y&&f(y),S=Object.prototype,T=S.isPrototypeOf,O=g("toStringTag"),M=m("TYPED_ARRAY_TAG"),E=i&&!!p&&"Opera"!==u(o.opera),A=!1,C={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},I=function(e){var t=u(e);return"DataView"===t||l(C,t)},D=function(e){return s(e)&&l(C,u(e))},L=function(e){if(D(e))return e;throw TypeError("Target is not a typed array")},P=function(e){if(p){if(T.call(x,e))return e}else for(var t in C)if(l(C,r)){var n=o[t];if(n&&(e===n||T.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},k=function(e,t,n){if(a){if(n)for(var r in C){var i=o[r];i&&l(i.prototype,e)&&delete i.prototype[e]}w[e]&&!n||h(w,e,n?t:E&&y[e]||t)}},R=function(e,t,n){var r,i;if(a){if(p){if(n)for(r in C)i=o[r],i&&l(i,e)&&delete i[e];if(x[e]&&!n)return;try{return h(x,e,n?t:E&&v[e]||t)}catch(s){}}for(r in C)i=o[r],!i||i[e]&&!n||h(i,e,t)}};for(r in C)o[r]||(E=!1);if((!E||"function"!=typeof x||x===Function.prototype)&&(x=function(){throw TypeError("Incorrect invocation")},E))for(r in C)o[r]&&p(o[r],x);if((!E||!w||w===S)&&(w=x.prototype,E))for(r in C)o[r]&&p(o[r].prototype,w);if(E&&f(_)!==w&&p(_,w),a&&!l(w,O))for(r in A=!0,d(w,O,{get:function(){return s(this)?this[M]:void 0}}),C)o[r]&&c(o[r],M,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:E,TYPED_ARRAY_TAG:A&&M,aTypedArray:L,aTypedArrayConstructor:P,exportTypedArrayMethod:k,exportTypedArrayStaticMethod:R,isView:I,isTypedArray:D,TypedArray:x,TypedArrayPrototype:w}},"X/7a":function(e,t,n){var r=n("4FMk");function i(e){if(Array.isArray(e))return r(e)}e.exports=i},X260:function(e,t,n){var r=n("HIsA"),i=Math.min,a=Math.max;r({target:"Math",stat:!0},{clamp:function(e,t,n){return i(n,a(t,e))}})},XGRq:function(e,t,n){"use strict";n.r(t),n.d(t,"init",(function(){return de})),n.d(t,"dispose",(function(){return fe})),n.d(t,"disposeAll",(function(){return pe})),n.d(t,"getInstance",(function(){return ge})),n.d(t,"registerPainter",(function(){return me})),n.d(t,"version",(function(){return ve}));var r=n("jwv5"),i=n("a0Kb"),a=n("zb3V"),o=n("T3M/"),s=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),l=function(){function e(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(e){var t=e.target;while(t&&!t.draggable)t=t.parent;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new s(t,e),"dragstart",e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,a=r-this._y;this._x=n,this._y=r,t.drift(i,a,e),this.handler.dispatchToElement(new s(t,e),"drag",e.event);var o=this.handler.findHover(n,r,t).target,l=this._dropTarget;this._dropTarget=o,t!==o&&(l&&o!==l&&this.handler.dispatchToElement(new s(l,e),"dragleave",e.event),o&&o!==l&&this.handler.dispatchToElement(new s(o,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new s(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new s(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}(),u=l,c=n("Tek4"),h=n("Mvsp"),d=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a<o;a++){var s=r[a],l=h["b"](n,s,{});i.points.push([l.zrX,l.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in g)if(g.hasOwnProperty(t)){var n=g[t](this._track,e);if(n)return n}},e}();function f(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function p(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var g={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,i=(e[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var a=f(r)/f(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=p(r);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}},m="silent";function v(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.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:y}}function y(){h["g"](this.event)}var b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return Object(a["b"])(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(c["a"]),_=function(){function e(e,t){this.x=e,this.y=t}return e}(),x=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],w=function(e){function t(t,n,r,i){var a=e.call(this)||this;return a._hovered=new _(0,0),a.storage=t,a.painter=n,a.painterRoot=i,r=r||new b,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new u(a),a}return Object(a["b"])(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(i["each"](x,(function(t){e.on&&e.on(t,this[t],this)}),this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=T(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(i=this.findHover(i.x,i.y),a=i.target);var o=this._hovered=r?new _(t,n):this.findHover(t,n),s=o.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),a&&s!==a&&this.dispatchToElement(i,"mouseout",e),this.dispatchToElement(o,"mousemove",e),s&&s!==a&&this.dispatchToElement(o,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new _(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e=e||{};var r=e.target;if(!r||!r.silent){var i="on"+t,a=v(t,e,n);while(r)if(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,a.cancelBubble)break;a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(e){"function"===typeof e[i]&&e[i].call(e,a),e.trigger&&e.trigger(t,a)})))}},t.prototype.findHover=function(e,t,n){for(var r=this.storage.getDisplayList(),i=new _(e,t),a=r.length-1;a>=0;a--){var o=void 0;if(r[a]!==n&&!r[a].ignore&&(o=S(r[a],e,t))&&(!i.topTarget&&(i.topTarget=r[a]),o!==m)){i.target=r[a];break}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new d);var n=this._gestureMgr;"start"===t&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),r){var i=r.type;e.gestureEvent=i;var a=new _;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(c["a"]);function S(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){var r=e,i=void 0,a=!1;while(r){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1;r.silent&&(i=!0)}var s=r.__hostTarget;r=s||r.parent}return!i||m}return!1}function T(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}i["each"](["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){w.prototype[e]=function(t){var n,r,i=t.zrX,a=t.zrY,s=T(this,i,a);if("mouseup"===e&&s||(n=this.findHover(i,a),r=n.target),"mousedown"===e)this._downEl=r,this._downPoint=[t.zrX,t.zrY],this._upEl=r;else if("mouseup"===e)this._upEl=r;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||o["dist"](this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}}));var O=w,M=n("/UWH"),E=n("YoUd"),A=!1;function C(){A||(A=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function I(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var D=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=I}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return!e&&n.length||this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,i=0,a=t.length;i<a;i++)this._updateAndAddDisplayable(t[i],null,e);n.length=this._displayListLen,r["a"].canvasSupported&&Object(E["a"])(n,I)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath();if(e.ignoreClip)t=null;else if(r){t=t?t.slice():[];var i=r,a=e;while(i)i.parent=a,i.updateTransform(),t.push(i),a=i,i=i.getClipPath()}if(e.childrenRef){for(var o=e.childrenRef(),s=0;s<o.length;s++){var l=o[s];e.__dirty&&(l.__dirty|=M["a"].REDARAW_BIT),this._updateAndAddDisplayable(l,t,n)}e.__dirty=0}else{var u=e;t&&t.length?u.__clipPaths=t:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(C(),u.z=0),isNaN(u.z2)&&(C(),u.z2=0),isNaN(u.zlevel)&&(C(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=e.getDecalElement&&e.getDecalElement();c&&this._updateAndAddDisplayable(c,t,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,t,n);var d=e.getTextContent();d&&this._updateAndAddDisplayable(d,t,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);else{var r=i["indexOf"](this._roots,e);r>=0&&this._roots.splice(r,1)}},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),L=D,P=n("HOlZ"),k=n("p1W9"),R=function(e){function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n.onframe=t.onframe||function(){},n}return Object(a["b"])(t,e),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._clipsHead?(this._clipsTail.next=e,e.prev=this._clipsTail,e.next=null,this._clipsTail=e):this._clipsHead=this._clipsTail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._clipsHead=n,n?n.prev=t:this._clipsTail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){var t=(new Date).getTime()-this._pausedTime,n=t-this._time,r=this._clipsHead;while(r){var i=r.next,a=r.step(t,n);a?(r.ondestroy&&r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.onframe(n),this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;function t(){e._running&&(Object(P["a"])(t),!e._paused&&e.update())}this._running=!0,Object(P["a"])(t)},t.prototype.start=function(){this._running||(this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){var e=this._clipsHead;while(e){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._clipsHead=this._clipsTail=null},t.prototype.isFinished=function(){return null==this._clipsHead},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new k["b"](e,t.loop);return this.addAnimator(n),n},t}(c["a"]),N=R,j=300,F=r["a"].domSupported,z=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=i["map"](e,(function(e){var t=e.replace("mouse","pointer");return n.hasOwnProperty(t)?t:e}));return{mouse:e,touch:t,pointer:r}}(),B={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},V=!1;function G(e){var t=e.pointerType;return"pen"===t||"touch"===t}function H(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout((function(){e.touching=!1,e.touchTimer=null}),700)}function U(e){e&&(e.zrByTouch=!0)}function W(e,t){return Object(h["e"])(e.dom,new Y(e,t),!0)}function X(e,t){var n=t,r=!1;while(n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot))n=n.parentNode;return r}var Y=function(){function e(e,t){this.stopPropagation=i["noop"],this.stopImmediatePropagation=i["noop"],this.preventDefault=i["noop"],this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),K={mousedown:function(e){e=Object(h["e"])(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Object(h["e"])(this.dom,e);var t=this.__mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Object(h["e"])(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Object(h["e"])(this.dom,e);var t=e.toElement||e.relatedTarget;X(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){V=!0,e=Object(h["e"])(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){V||(e=Object(h["e"])(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Object(h["e"])(this.dom,e),U(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),K.mousemove.call(this,e),K.mousedown.call(this,e)},touchmove:function(e){e=Object(h["e"])(this.dom,e),U(e),this.handler.processGesture(e,"change"),K.mousemove.call(this,e)},touchend:function(e){e=Object(h["e"])(this.dom,e),U(e),this.handler.processGesture(e,"end"),K.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<j&&K.click.call(this,e)},pointerdown:function(e){K.mousedown.call(this,e)},pointermove:function(e){G(e)||K.mousemove.call(this,e)},pointerup:function(e){K.mouseup.call(this,e)},pointerout:function(e){G(e)||K.mouseout.call(this,e)}};i["each"](["click","dblclick","contextmenu"],(function(e){K[e]=function(t){t=Object(h["e"])(this.dom,t),this.trigger(e,t)}}));var q={pointermove:function(e){G(e)||q.mousemove.call(this,e)},pointerup:function(e){q.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function Z(e,t){var n=t.domHandlers;r["a"].pointerEventsSupported?i["each"](z.pointer,(function(r){Q(t,r,(function(t){n[r].call(e,t)}))})):(r["a"].touchEventsSupported&&i["each"](z.touch,(function(r){Q(t,r,(function(i){n[r].call(e,i),H(t)}))})),i["each"](z.mouse,(function(r){Q(t,r,(function(i){i=Object(h["c"])(i),t.touching||n[r].call(e,i)}))})))}function $(e,t){function n(n){function r(r){r=Object(h["c"])(r),X(e,r.target)||(r=W(e,r),t.domHandlers[n].call(e,r))}Q(t,n,r,{capture:!0})}r["a"].pointerEventsSupported?i["each"](B.pointer,n):r["a"].touchEventsSupported||i["each"](B.mouse,n)}function Q(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,Object(h["a"])(e.domTarget,t,n,r)}function J(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&Object(h["f"])(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var ee=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),te=function(e){function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new ee(t,K),F&&(r._globalHandlerScope=new ee(document,q)),Z(r,r._localHandlerScope),r}return Object(a["b"])(t,e),t.prototype.dispose=function(){J(this._localHandlerScope),F&&J(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,F&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?$(this,t):J(t)}},t}(c["a"]),ne=te,re=n("Rj4u"),ie=n("kJzX"),ae=n("BAGR"),oe=!r["a"].canvasSupported,se={},le={};function ue(e){delete le[e]}function ce(e){if(!e)return!1;if("string"===typeof e)return Object(re["lum"])(e,1)<ie["b"];if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=Object(re["lum"])(t[i].color,1);return n/=r,n<ie["b"]}return!1}var he=function(){function e(e,t,n){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var o=new L,s=n.renderer||"canvas";if(oe)throw new Error("IE8 support has been dropped since 5.0");if(se[s]||(s=i["keys"](se)[0]),!se[s])throw new Error("Renderer '"+s+"' is not imported. Please import it first.");n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var l=new se[s](t,o,n,e);this.storage=o,this.painter=l;var u=r["a"].node||r["a"].worker?null:new ne(l.getViewportRoot(),l.root);this.handler=new O(o,l,u,l.root),this.animation=new N({stage:{update:function(){return a._flush(!0)}}}),this.animation.start()}return e.prototype.add=function(e){e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh()},e.prototype.setBackgroundColor=function(e){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=ce(e)},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},e.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},e.prototype.flush=function(){this._flush(!1)},e.prototype._flush=function(e){var t,n=(new Date).getTime();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var r=(new Date).getTime();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.addHover=function(e){},e.prototype.removeHover=function(e){},e.prototype.clearHover=function(){},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},e.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.pathToImage=function(e,t){if(this.painter.pathToImage)return this.painter.pathToImage(e,t)},e.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this.handler.off(e,t)},e.prototype.trigger=function(e,t){this.handler.trigger(e,t)},e.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof ae["a"]&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},e.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,ue(this.id)},e}();function de(e,t){var n=new he(i["guid"](),e,t);return le[n.id]=n,n}function fe(e){e.dispose()}function pe(){for(var e in le)le.hasOwnProperty(e)&&le[e].dispose();le={}}function ge(e){return le[e]}function me(e,t){se[e]=t}var ve="5.0.4"},XJ6e:function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var r=n("kJzX"),i=n("a0Kb"),a=n("zb3V"),o=n("Tek4"),s=n("/UWH"),l=n("nSFs"),u=n("2h8N"),c=n("xFFj");function h(){return!1}function d(e,t,n){var r=i["createCanvas"](),a=t.getWidth(),o=t.getHeight(),s=r.style;return s&&(s.position="absolute",s.left="0",s.top="0",s.width=a+"px",s.height=o+"px",r.setAttribute("data-zr-dom-id",e)),r.width=a*n,r.height=o*n,r}var f=function(e){function t(t,n,a){var o,s=e.call(this)||this;s.motionBlur=!1,s.lastFrameAlpha=.7,s.dpr=1,s.virtual=!1,s.config={},s.incremental=!1,s.zlevel=0,s.maxRepaintRectCount=5,s.__dirty=!0,s.__firstTimePaint=!0,s.__used=!1,s.__drawIndex=0,s.__startIndex=0,s.__endIndex=0,s.__prevStartIndex=null,s.__prevEndIndex=null,a=a||r["e"],"string"===typeof t?o=d(t,n,a):i["isObject"](t)&&(o=t,t=o.id),s.id=t,s.dom=o;var l=o.style;return l&&(o.onselectstart=h,l.webkitUserSelect="none",l.userSelect="none",l.webkitTapHighlightColor="rgba(0,0,0,0)",l["-webkit-touch-callout"]="none",l.padding="0",l.margin="0",l.borderWidth="0"),s.domBack=null,s.ctxBack=null,s.painter=n,s.config=null,s.dpr=a,s}return Object(a["b"])(t,e),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=d("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,a=[],o=this.maxRepaintRectCount,l=!1,u=new c["a"](0,0,0,0);function h(e){if(e.isFinite()&&!e.isZero())if(0===a.length){var t=new c["a"](0,0,0,0);t.copy(e),a.push(t)}else{for(var n=!1,r=1/0,i=0,s=0;s<a.length;++s){var h=a[s];if(h.intersect(e)){var d=new c["a"](0,0,0,0);d.copy(h),d.union(e),a[s]=d,n=!0;break}if(l){u.copy(e),u.union(h);var f=e.width*e.height,p=h.width*h.height,g=u.width*u.height,m=g-f-p;m<r&&(r=m,i=s)}}if(l&&(a[i].union(e),n=!0),!n){t=new c["a"](0,0,0,0);t.copy(e),a.push(t)}l||(l=a.length>=o)}}for(var d=this.__startIndex;d<this.__endIndex;++d){var f=e[d];if(f){var p=f.shouldBePainted(n,r,!0,!0),g=f.__isRendered&&(f.__dirty&s["a"].REDARAW_BIT||!p)?f.getPrevPaintRect():null;g&&h(g);var m=p&&(f.__dirty&s["a"].REDARAW_BIT||!f.__isRendered)?f.getPaintRect():null;m&&h(m)}}for(d=this.__prevStartIndex;d<this.__prevEndIndex;++d){f=t[d],p=f.shouldBePainted(n,r,!0,!0);if(f&&(!p||!f.__zr)&&f.__isRendered){g=f.getPrevPaintRect();g&&h(g)}}do{i=!1;for(d=0;d<a.length;)if(a[d].isZero())a.splice(d,1);else{for(var v=d+1;v<a.length;)a[d].intersect(a[v])?(i=!0,a[d].union(a[v]),a.splice(v,1)):v++;d++}}while(i);return this._paintRects=a,a},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,a=this.domBack;i&&(i.width=e+"px",i.height=t+"px"),r.width=e*n,r.height=t*n,a&&(a.width=e*n,a.height=t*n,1!==n&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,a=this.ctx,o=r.width,s=r.height;t=t||this.clearColor;var c=this.motionBlur&&!e,h=this.lastFrameAlpha,d=this.dpr,f=this;c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,o/d,s/d));var p=this.domBack;function g(e,n,r,o){if(a.clearRect(e,n,r,o),t&&"transparent"!==t){var s=void 0;i["isGradientObject"](t)?(s=t.__canvasGradient||Object(l["a"])(a,t,{x:0,y:0,width:r,height:o}),t.__canvasGradient=s):i["isPatternObject"](t)&&(s=Object(u["c"])(a,t,{dirty:function(){f.setUnpainted(),f.__painter.refresh()}})),a.save(),a.fillStyle=s||t,a.fillRect(e,n,r,o),a.restore()}c&&(a.save(),a.globalAlpha=h,a.drawImage(p,e,n,r,o),a.restore())}!n||c?g(0,0,o,s):n.length&&i["each"](n,(function(e){g(e.x*d,e.y*d,e.width*d,e.height*d)}))},t}(o["a"]),p=f,g=n("HOlZ"),m=n("AGhn"),v=n("jwv5"),y=1e5,b=314159,_=.01,x=.001;function w(e){return parseInt(e,10)}function S(e){return!!e&&(!!e.__builtin__||"function"===typeof e.resize&&"function"===typeof e.refresh)}function T(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var O=function(){function e(e,t,n,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=i["extend"]({},n||{}),this.dpr=n.devicePixelRatio||r["e"],this._singleCanvas=o,this.root=e;var s=e.style;s&&(s.webkitTapHighlightColor="transparent",s.webkitUserSelect="none",s.userSelect="none",s["-webkit-touch-callout"]="none",e.innerHTML=""),this.storage=t;var l=this._zlevelList;this._prevDisplayList=[];var u=this._layers;if(o){var c=e,h=c.width,d=c.height;null!=n.width&&(h=n.width),null!=n.height&&(d=n.height),this.dpr=n.devicePixelRatio||1,c.width=h*this.dpr,c.height=d*this.dpr,this._width=h,this._height=d;var f=new p(c,this,this.dpr);f.__builtin__=!0,f.initContext(),u[b]=f,f.zlevel=b,l.push(b),this._domRoot=e}else{this._width=this._getSize(0),this._height=this._getSize(1);var g=this._domRoot=T(this._width,this._height);e.appendChild(g)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var i=0;i<r.length;i++){var a=r[i],o=this._layers[a];if(!o.__builtin__&&o.refresh){var s=0===i?this._backgroundColor:null;o.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){for(var r,i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a=0;a<t;a++){var o=e[a];o.__inHover&&(n||(n=this._hoverlayer=this.getLayer(y)),r||(r=n.ctx,r.save()),Object(u["a"])(r,o,i,a===t-1))}r&&r.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(y)},e.prototype.paintOne=function(e,t){Object(u["b"])(e,t)},e.prototype._paintList=function(e,t,n,r){if(this._redrawId===r){n=n||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t,n),a=i.finished,o=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),o&&this._paintHoverList(e),a)this.eachLayer((function(e){e.afterBrush&&e.afterBrush()}));else{var s=this;Object(g["a"])((function(){s._paintList(e,t,n,r)}))}}},e.prototype._compositeManually=function(){var e=this.getLayer(b).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer((function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)}))},e.prototype._doPaintList=function(e,t,n){for(var r=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&a.push(u)}for(var c=!0,h=!1,d=function(i){var s=a[i],l=s.ctx,u=o&&s.createRepaintRects(e,t,f._width,f._height);l.save();var d,p=n?s.__startIndex:s.__drawIndex,g=!n&&s.incremental&&Date.now,m=g&&Date.now(),v=s.zlevel===f._zlevelList[0]?f._backgroundColor:null;if(s.__startIndex===s.__endIndex)s.clear(!1,v,u);else if(p===s.__startIndex){var y=e[p];y.incremental&&y.notClear&&!n||s.clear(!1,v,u)}-1===p&&(console.error("For some unknown reason. drawIndex is -1"),p=s.__startIndex);var b=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(d=p;d<s.__endIndex;d++){var i=e[d];if(i.__inHover&&(h=!0),r._doPaintEl(i,s,o,t,n,d===s.__endIndex-1),g){var a=Date.now()-m;if(a>15)break}}n.prevElClipPaths&&l.restore()};if(u)if(0===u.length)d=s.__endIndex;else for(var _=f.dpr,x=0;x<u.length;++x){var w=u[x];l.save(),l.beginPath(),l.rect(w.x*_,w.y*_,w.width*_,w.height*_),l.clip(),b(w),l.restore()}else l.save(),b(),l.restore();s.__drawIndex=d,s.__drawIndex<s.__endIndex&&(c=!1)},f=this,p=0;p<a.length;p++)d(p);return v["a"].wxa&&i["each"](this._layers,(function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()})),{finished:c,needsRefreshHover:h}},e.prototype._doPaintEl=function(e,t,n,r,i,a){var o=t.ctx;if(n){var s=e.getPaintRect();(!r||s&&s.intersect(r))&&(Object(u["a"])(o,e,i,a),e.setPrevPaintRect(s))}else Object(u["a"])(o,e,i,a)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=b);var n=this._layers[e];return n||(n=new p("zr_"+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?i["merge"](n,this._layerConfig[e],!0):this._layerConfig[e-_]&&i["merge"](n,this._layerConfig[e-_],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},e.prototype.insertLayer=function(e,t){var n=this._layers,r=this._zlevelList,a=r.length,o=this._domRoot,s=null,l=-1;if(n[e])i["logError"]("ZLevel "+e+" has been used already");else if(S(t)){if(a>0&&e>r[0]){for(l=0;l<a-1;l++)if(r[l]<e&&r[l+1]>e)break;s=n[r[l]]}if(r.splice(l+1,0,e),n[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this}else i["logError"]("Layer of zlevel "+e+" is not valid")},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];e.call(t,this._layers[i],i)}},e.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],a=this._layers[i];a.__builtin__&&e.call(t,a,i)}},e.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],a=this._layers[i];a.__builtin__||e.call(t,a,i)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(e){function t(e){l&&(l.__endIndex!==e&&(l.__dirty=!0),l.__endIndex=e)}if(this.eachBuiltinLayer((function(e,t){e.__dirty=e.__used=!1})),this._singleCanvas)for(var n=1;n<e.length;n++){var r=e[n];if(r.zlevel!==e[n-1].zlevel||r.incremental){this._needsManuallyCompositing=!0;break}}var a,o,l=null,u=0;for(o=0;o<e.length;o++){r=e[o];var c=r.zlevel,h=void 0;a!==c&&(a=c,u=0),r.incremental?(h=this.getLayer(c+x,this._needsManuallyCompositing),h.incremental=!0,u=1):h=this.getLayer(c+(u>0?_:0),this._needsManuallyCompositing),h.__builtin__||i["logError"]("ZLevel "+c+" has been used by unkown layer "+h.id),h!==l&&(h.__used=!0,h.__startIndex!==o&&(h.__dirty=!0),h.__startIndex=o,h.incremental?h.__drawIndex=-1:h.__drawIndex=o,t(o),l=h),r.__dirty&s["a"].REDARAW_BIT&&!r.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__drawIndex=o))}t(o),this.eachBuiltinLayer((function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)}))},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,i["each"](this._layers,(function(e){e.setUnpainted()}))},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?i["merge"](n[e],t,!0):n[e]=t;for(var r=0;r<this._zlevelList.length;r++){var a=this._zlevelList[r];if(a===e||a===e+_){var o=this._layers[a];i["merge"](o,n[e],!0)}}}},e.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,r=t[e];r&&(r.dom.parentNode.removeChild(r.dom),delete t[e],n.splice(i["indexOf"](n,e),1))},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var r=this._opts;if(null!=e&&(r.width=e),null!=t&&(r.height=t),e=this._getSize(0),t=this._getSize(1),n.style.display="",this._width!==e||t!==this._height){for(var i in n.style.width=e+"px",n.style.height=t+"px",this._layers)this._layers.hasOwnProperty(i)&&this._layers[i].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(b).resize(e,t)}return this},e.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[b].dom;var t=new p("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,i=t.dom.height;this.eachLayer((function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())}))}else for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height},o=this.storage.getDisplayList(!0),s=0,l=o.length;s<l;s++){var c=o[s];Object(u["a"])(n,c,a,s===l-1)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype._getSize=function(e){var t=this._opts,n=["width","height"][e],r=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=t[n]&&"auto"!==t[n])return parseFloat(t[n]);var o=this.root,s=document.defaultView.getComputedStyle(o);return(o[r]||w(s[n])||w(o.style[n]))-(w(s[i])||0)-(w(s[a])||0)|0},e.prototype.pathToImage=function(e,t){t=t||this.dpr;var n=document.createElement("canvas"),r=n.getContext("2d"),a=e.getBoundingRect(),o=e.style,s=o.shadowBlur*t,l=o.shadowOffsetX*t,c=o.shadowOffsetY*t,h=e.hasStroke()?o.lineWidth:0,d=Math.max(h/2,-l+s),f=Math.max(h/2,l+s),p=Math.max(h/2,-c+s),g=Math.max(h/2,c+s),v=a.width+d+f,y=a.height+p+g;n.width=v*t,n.height=y*t,r.scale(t,t),r.clearRect(0,0,v,y),r.dpr=t;var b={x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY,rotation:e.rotation,originX:e.originX,originY:e.originY};e.x=d-a.x,e.y=p-a.y,e.rotation=0,e.scaleX=1,e.scaleY=1,e.updateTransform(),e&&Object(u["a"])(r,e,{inHover:!1,viewWidth:this._width,viewHeight:this._height},!0);var _=new m["a"]({style:{x:0,y:0,image:n}});return i["extend"](e,b),_},e}(),M=O;function E(e){e.registerPainter("canvas",M)}},XVzY:function(e,t,n){"use strict";var r=n("zb3V"),i=n("a0Kb"),a=n("tbCl"),o=n("rJci"),s=n("EPlJ"),l=n("b26b"),u=n("Fi3l"),c=Object(l["o"])(),h=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=o["c"]("ec_cpt_model"),i}return Object(r["b"])(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=u["d"](this),r=n?u["f"](e):{},a=t.getTheme();i["merge"](e,a.get(this.mainType)),i["merge"](e,this.getDefaultOption()),n&&u["h"](e,r,n)},t.prototype.mergeOption=function(e,t){i["merge"](this.option,e,!0);var n=u["d"](this);n&&u["h"](this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!Object(s["d"])(e))return e.defaultOption;var t=c(this);if(!t.defaultOption){var n=[],r=e;while(r){var a=r.prototype.defaultOption;a&&n.push(a),r=r.superClass}for(var o={},l=n.length-1;l>=0;l--)o=i["merge"](o,n[l],!0);t.defaultOption=o}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+"Index",r=e+"Id";return Object(l["u"])(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(a["a"]);function d(e){var t=[];return i["each"](h.getClassesByMainType(e),(function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])})),t=i["map"](t,(function(e){return Object(s["f"])(e).main})),"dataset"!==e&&i["indexOf"](t,"dataset")<=0&&t.unshift("dataset"),t}Object(s["e"])(h,a["a"]),Object(s["c"])(h),o["a"](h),o["b"](h,d),t["a"]=h},Xf1w:function(e,t,n){var r=n("40mc"),i=n("aS93"),a=n("NVMI"),o=n("2I03"),s=n("HKEF"),l=[].push,u=function(e){var t=1==e,n=2==e,u=3==e,c=4==e,h=6==e,d=5==e||h;return function(f,p,g,m){for(var v,y,b=a(f),_=i(b),x=r(p,g,3),w=o(_.length),S=0,T=m||s,O=t?T(f,w):n?T(f,0):void 0;w>S;S++)if((d||S in _)&&(v=_[S],y=x(v,S,b),e))if(t)O[S]=y;else if(y)switch(e){case 3:return!0;case 5:return v;case 6:return S;case 2:l.call(O,v)}else if(c)return!1;return h?-1:u||c?c:O}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6)}},Xk3x:function(e,t,n){var r=n("HIsA"),i=n("5AZ8");r({target:"WeakMap",stat:!0},{from:i})},Xp9m:function(e,t,n){"use strict";var r=n("sqIH"),i=n("hXyk"),a=n("NVMI"),o=n("2I03"),s=n("PaPB"),l=n("JzK+"),u=n("OOuR"),c=n("WdrS"),h=Math.max,d=Math.min,f=Math.floor,p=/\$([$&'`]|\d\d?|<[^>]*>)/g,g=/\$([$&'`]|\d\d?)/g,m=function(e){return void 0===e?e:String(e)};r("replace",2,(function(e,t,n,r){var v=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,y=r.REPLACE_KEEPS_$0,b=v?"$":"$0";return[function(n,r){var i=l(this),a=void 0==n?void 0:n[e];return void 0!==a?a.call(n,i,r):t.call(String(i),n,r)},function(e,r){if(!v&&y||"string"===typeof r&&-1===r.indexOf(b)){var a=n(t,e,this,r);if(a.done)return a.value}var l=i(e),f=String(this),p="function"===typeof r;p||(r=String(r));var g=l.global;if(g){var x=l.unicode;l.lastIndex=0}var w=[];while(1){var S=c(l,f);if(null===S)break;if(w.push(S),!g)break;var T=String(S[0]);""===T&&(l.lastIndex=u(f,o(l.lastIndex),x))}for(var O="",M=0,E=0;E<w.length;E++){S=w[E];for(var A=String(S[0]),C=h(d(s(S.index),f.length),0),I=[],D=1;D<S.length;D++)I.push(m(S[D]));var L=S.groups;if(p){var P=[A].concat(I,C,f);void 0!==L&&P.push(L);var k=String(r.apply(void 0,P))}else k=_(A,f,C,I,L,r);C>=M&&(O+=f.slice(M,C)+k,M=C+A.length)}return O+f.slice(M)}];function _(e,n,r,i,o,s){var l=r+e.length,u=i.length,c=g;return void 0!==o&&(o=a(o),c=p),t.call(s,c,(function(t,a){var s;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(l);case"<":s=o[a.slice(1,-1)];break;default:var c=+a;if(0===c)return t;if(c>u){var h=f(c/10);return 0===h?t:h<=u?void 0===i[h-1]?a.charAt(1):i[h-1]+a.charAt(1):t}s=i[c-1]}return void 0===s?"":s}))}}))},Xwir:function(e,t,n){var r=n("HIsA");r({target:"Math",stat:!0},{imulh:function(e,t){var n=65535,r=+e,i=+t,a=r&n,o=i&n,s=r>>16,l=i>>16,u=(s*o>>>0)+(a*o>>>16);return s*l+(u>>16)+((a*l>>>0)+(u&n)>>16)}})},XxnP:function(e,t,n){"use strict";var r=n("HIsA"),i=n("m52V"),a=n("bXon"),o=n("hXyk"),s=n("DDwO"),l=n("70zE"),u=n("Ji6T");r({target:"Set",proto:!0,real:!0,forced:i},{union:function(e){var t=o(this),n=new(l(t,a("Set")))(t);return u(e,s(n.add),n),n}})},"Y+i/":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("a0Kb");function i(e){return new a(e)}var a=function(){function e(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t,n=this._upstream,i=e&&e.skip;if(this._dirty&&n){var a=this.context;a.data=a.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(t=this._plan(this.context));var o,s=h(this._modBy),l=this._modDataCount||0,u=h(e&&e.modBy),c=e&&e.modDataCount||0;function h(e){return!(e>=1)&&(e=1),e}s===u&&l===c||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,o=this._doReset(i)),this._modBy=u,this._modDataCount=c;var d=e&&e.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!i&&(o||f<p)){var g=this._progress;if(Object(r["isArray"])(g))for(var m=0;m<g.length;m++)this._doProgress(g[m],f,p,u,c);else this._doProgress(g,f,p,u,c)}this._dueIndex=p;var v=null!=this._settedOutputEnd?this._settedOutputEnd:p;0,this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){o.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:o.next},this.context)},e.prototype._doReset=function(e){var t,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),Object(r["isArray"])(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),o=function(){var e,t,n,r,i,a={reset:function(l,u,c,h){t=l,e=u,n=c,r=h,i=Math.ceil(r/n),a.next=n>1&&r>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var a=t%i*n+Math.ceil(t/i),o=t>=e?null:a<r?a:t;return t++,o}}()},Y0Ny:function(e,t,n){"use strict";var r=n("HIsA"),i=n("m52V"),a=n("hXyk"),o=n("DDwO"),s=n("YjHi"),l=n("Ji6T");r({target:"Map",proto:!0,real:!0,forced:i},{reduce:function(e){var t=a(this),n=s(t),r=arguments.length<2,i=r?void 0:arguments[1];if(o(e),l(n,(function(n,a){r?(r=!1,i=a):i=e(i,a,n,t)}),void 0,!0,!0),r)throw TypeError("Reduce of empty map with no initial value");return i}})},Y22F:function(e,t,n){var r=n("HIsA"),i=n("5AZ8");r({target:"Map",stat:!0},{from:i})},YAei:function(e,t,n){var r=n("bVFb");r("patternMatch")},"YE/S":function(e,t,n){var r=n("2JD6"),i=n("ECWN"),a=r.WeakMap;e.exports="function"===typeof a&&/native code/.test(i(a))},YOYE:function(e,t,n){"use strict";function r(e,t,n,r,i,a){if(a>t&&a>r||a<t&&a<r)return 0;if(r===t)return 0;var o=(a-t)/(r-t),s=r<t?1:-1;1!==o&&0!==o||(s=r<t?.5:-.5);var l=o*(n-e)+e;return l===i?1/0:l>i?s:0}n.d(t,"a",(function(){return r}))},YXa4:function(e,t,n){var r=n("PaPB");e.exports=function(e){var t=r(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},Yb4w:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return u}));var r=n("a0Kb"),i=n("g9E2"),a=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var a=this._isOrdinal="ordinal"===e.type;this._needCrossZero=t.getNeedCrossZero&&t.getNeedCrossZero();var o=this._modelMinRaw=t.get("min",!0);Object(r["isFunction"])(o)?this._modelMinNum=u(e,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=u(e,o));var s=this._modelMaxRaw=t.get("max",!0);if(Object(r["isFunction"])(s)?this._modelMaxNum=u(e,s({min:n[0],max:n[1]})):"dataMax"!==s&&(this._modelMaxNum=u(e,s)),a)this._axisDataLen=t.getCategories().length;else{var l=t.get("boundaryGap"),c=Object(r["isArray"])(l)?l:[l||0,l||0];"boolean"===typeof c[0]||"boolean"===typeof c[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Object(i["h"])(c[0],1),Object(i["h"])(c[1],1)]}},e.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=e?null:n-t||Math.abs(t),s="dataMin"===this._modelMinRaw?t:this._modelMinNum,l="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,u=null!=s,c=null!=l;null==s&&(s=e?i?0:NaN:t-a[0]*o),null==l&&(l=e?i?i-1:NaN:n+a[1]*o),(null==s||!isFinite(s))&&(s=NaN),(null==l||!isFinite(l))&&(l=NaN),s>l&&(s=NaN,l=NaN);var h=Object(r["eqNaN"])(s)||Object(r["eqNaN"])(l)||e&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,f=this._determinedMax;return null!=d&&(s=d,u=!0),null!=f&&(l=f,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:h}},e.prototype.modifyDataMinMax=function(e,t){this[s[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){var n=o[e];this[n]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),o={min:"_determinedMin",max:"_determinedMax"},s={min:"_dataMin",max:"_dataMax"};function l(e,t,n){var r=e.rawExtentInfo;return r||(r=new a(e,t,n),e.rawExtentInfo=r,r)}function u(e,t){return null==t?null:Object(r["eqNaN"])(t)?NaN:e.parse(t)}},Yc1X:function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return m})),n.d(t,"f",(function(){return v})),n.d(t,"c",(function(){return y})),n.d(t,"g",(function(){return b})),n.d(t,"e",(function(){return _})),n.d(t,"d",(function(){return x})),n.d(t,"h",(function(){return w})),n.d(t,"i",(function(){return S})),n.d(t,"m",(function(){return T})),n.d(t,"j",(function(){return O})),n.d(t,"n",(function(){return M})),n.d(t,"l",(function(){return E})),n.d(t,"k",(function(){return A}));var r=n("T3M/"),i=Math.pow,a=Math.sqrt,o=1e-8,s=1e-4,l=a(3),u=1/3,c=Object(r["create"])(),h=Object(r["create"])(),d=Object(r["create"])();function f(e){return e>-o&&e<o}function p(e){return e>o||e<-o}function g(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function m(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function v(e,t,n,r,o,s){var c=r+3*(t-n)-e,h=3*(n-2*t+e),d=3*(t-e),p=e-o,g=h*h-3*c*d,m=h*d-9*c*p,v=d*d-3*h*p,y=0;if(f(g)&&f(m))if(f(h))s[0]=0;else{var b=-d/h;b>=0&&b<=1&&(s[y++]=b)}else{var _=m*m-4*g*v;if(f(_)){var x=m/g,w=(b=-h/c+x,-x/2);b>=0&&b<=1&&(s[y++]=b),w>=0&&w<=1&&(s[y++]=w)}else if(_>0){var S=a(_),T=g*h+1.5*c*(-m+S),O=g*h+1.5*c*(-m-S);T=T<0?-i(-T,u):i(T,u),O=O<0?-i(-O,u):i(O,u);b=(-h-(T+O))/(3*c);b>=0&&b<=1&&(s[y++]=b)}else{var M=(2*g*h-3*c*m)/(2*a(g*g*g)),E=Math.acos(M)/3,A=a(g),C=Math.cos(E),I=(b=(-h-2*A*C)/(3*c),w=(-h+A*(C+l*Math.sin(E)))/(3*c),(-h+A*(C-l*Math.sin(E)))/(3*c));b>=0&&b<=1&&(s[y++]=b),w>=0&&w<=1&&(s[y++]=w),I>=0&&I<=1&&(s[y++]=I)}}return y}function y(e,t,n,r,i){var o=6*n-12*t+6*e,s=9*t+3*r-3*e-9*n,l=3*t-3*e,u=0;if(f(s)){if(p(o)){var c=-l/o;c>=0&&c<=1&&(i[u++]=c)}}else{var h=o*o-4*s*l;if(f(h))i[0]=-o/(2*s);else if(h>0){var d=a(h),g=(c=(-o+d)/(2*s),(-o-d)/(2*s));c>=0&&c<=1&&(i[u++]=c),g>=0&&g<=1&&(i[u++]=g)}}return u}function b(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,l=(r-n)*i+n,u=(s-o)*i+o,c=(l-s)*i+s,h=(c-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=c,a[6]=l,a[7]=r}function _(e,t,n,i,o,l,u,f,p,m,v){var y,b,_,x,w,S=.005,T=1/0;c[0]=p,c[1]=m;for(var O=0;O<1;O+=.05)h[0]=g(e,n,o,u,O),h[1]=g(t,i,l,f,O),x=Object(r["distSquare"])(c,h),x<T&&(y=O,T=x);T=1/0;for(var M=0;M<32;M++){if(S<s)break;b=y-S,_=y+S,h[0]=g(e,n,o,u,b),h[1]=g(t,i,l,f,b),x=Object(r["distSquare"])(h,c),b>=0&&x<T?(y=b,T=x):(d[0]=g(e,n,o,u,_),d[1]=g(t,i,l,f,_),w=Object(r["distSquare"])(d,c),_<=1&&w<T?(y=_,T=w):S*=.5)}return v&&(v[0]=g(e,n,o,u,y),v[1]=g(t,i,l,f,y)),a(T)}function x(e,t,n,r,i,a,o,s,l){for(var u=e,c=t,h=0,d=1/l,f=1;f<=l;f++){var p=f*d,m=g(e,n,i,o,p),v=g(t,r,a,s,p),y=m-u,b=v-c;h+=Math.sqrt(y*y+b*b),u=m,c=v}return h}function w(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function S(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function T(e,t,n,r,i){var o=e-2*t+n,s=2*(t-e),l=e-r,u=0;if(f(o)){if(p(s)){var c=-l/s;c>=0&&c<=1&&(i[u++]=c)}}else{var h=s*s-4*o*l;if(f(h)){c=-s/(2*o);c>=0&&c<=1&&(i[u++]=c)}else if(h>0){var d=a(h),g=(c=(-s+d)/(2*o),(-s-d)/(2*o));c>=0&&c<=1&&(i[u++]=c),g>=0&&g<=1&&(i[u++]=g)}}return u}function O(e,t,n){var r=e+n-2*t;return 0===r?.5:(e-t)/r}function M(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function E(e,t,n,i,o,l,u,f,p){var g,m=.005,v=1/0;c[0]=u,c[1]=f;for(var y=0;y<1;y+=.05){h[0]=w(e,n,o,y),h[1]=w(t,i,l,y);var b=Object(r["distSquare"])(c,h);b<v&&(g=y,v=b)}v=1/0;for(var _=0;_<32;_++){if(m<s)break;var x=g-m,S=g+m;h[0]=w(e,n,o,x),h[1]=w(t,i,l,x);b=Object(r["distSquare"])(h,c);if(x>=0&&b<v)g=x,v=b;else{d[0]=w(e,n,o,S),d[1]=w(t,i,l,S);var T=Object(r["distSquare"])(d,c);S<=1&&T<v?(g=S,v=T):m*=.5}}return p&&(p[0]=w(e,n,o,g),p[1]=w(t,i,l,g)),a(v)}function A(e,t,n,r,i,a,o){for(var s=e,l=t,u=0,c=1/o,h=1;h<=o;h++){var d=h*c,f=w(e,n,i,d),p=w(t,r,a,d),g=f-s,m=p-l;u+=Math.sqrt(g*g+m*m),s=f,l=p}return u}},YjHi:function(e,t,n){var r=n("m52V"),i=n("0Ccx");e.exports=r?i:function(e){return Map.prototype.entries.call(e)}},YoUd:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=32,i=7;function a(e){var t=0;while(e>=r)t|=1&e,e>>=1;return e+t}function o(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){while(i<n&&r(e[i],e[i-1])<0)i++;s(e,t,i)}else while(i<n&&r(e[i],e[i-1])>=0)i++;return i-t}function s(e,t,n){n--;while(t<n){var r=e[t];e[t++]=e[n],e[n--]=r}}function l(e,t,n,r,i){for(r===t&&r++;r<n;r++){var a,o=e[r],s=t,l=r;while(s<l)a=s+l>>>1,i(o,e[a])<0?l=a:s=a+1;var u=r-s;switch(u){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:while(u>0)e[s+u]=e[s+u-1],u--}e[s]=o}}function u(e,t,n,r,i,a){var o=0,s=0,l=1;if(a(e,t[n+i])>0){s=r-i;while(l<s&&a(e,t[n+i+l])>0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{s=i+1;while(l<s&&a(e,t[n+i-l])<=0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}o++;while(o<l){var c=o+(l-o>>>1);a(e,t[n+c])>0?o=c+1:l=c}return l}function c(e,t,n,r,i,a){var o=0,s=0,l=1;if(a(e,t[n+i])<0){s=i+1;while(l<s&&a(e,t[n+i-l])<0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{s=r-i;while(l<s&&a(e,t[n+i+l])>=0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}o++;while(o<l){var c=o+(l-o>>>1);a(e,t[n+c])<0?l=c:o=c+1}return l}function h(e,t){var n,r,a=i,o=0,s=0;o=e.length;var l=[];function h(e,t){n[s]=e,r[s]=t,s+=1}function d(){while(s>1){var e=s-2;if(e>=1&&r[e-1]<=r[e]+r[e+1]||e>=2&&r[e-2]<=r[e]+r[e-1])r[e-1]<r[e+1]&&e--;else if(r[e]>r[e+1])break;p(e)}}function f(){while(s>1){var e=s-2;e>0&&r[e-1]<r[e+1]&&e--,p(e)}}function p(i){var a=n[i],o=r[i],l=n[i+1],h=r[i+1];r[i]=o+h,i===s-3&&(n[i+1]=n[i+2],r[i+1]=r[i+2]),s--;var d=c(e[l],e,a,o,0,t);a+=d,o-=d,0!==o&&(h=u(e[a+o-1],e,l,h,h-1,t),0!==h&&(o<=h?g(a,o,l,h):m(a,o,l,h)))}function g(n,r,o,s){var h=0;for(h=0;h<r;h++)l[h]=e[n+h];var d=0,f=o,p=n;if(e[p++]=e[f++],0!==--s)if(1!==r){var g,m,v,y=a;while(1){g=0,m=0,v=!1;do{if(t(e[f],l[d])<0){if(e[p++]=e[f++],m++,g=0,0===--s){v=!0;break}}else if(e[p++]=l[d++],g++,m=0,1===--r){v=!0;break}}while((g|m)<y);if(v)break;do{if(g=c(e[f],l,d,r,0,t),0!==g){for(h=0;h<g;h++)e[p+h]=l[d+h];if(p+=g,d+=g,r-=g,r<=1){v=!0;break}}if(e[p++]=e[f++],0===--s){v=!0;break}if(m=u(l[d],e,f,s,0,t),0!==m){for(h=0;h<m;h++)e[p+h]=e[f+h];if(p+=m,f+=m,s-=m,0===s){v=!0;break}}if(e[p++]=l[d++],1===--r){v=!0;break}y--}while(g>=i||m>=i);if(v)break;y<0&&(y=0),y+=2}if(a=y,a<1&&(a=1),1===r){for(h=0;h<s;h++)e[p+h]=e[f+h];e[p+s]=l[d]}else{if(0===r)throw new Error;for(h=0;h<r;h++)e[p+h]=l[d+h]}}else{for(h=0;h<s;h++)e[p+h]=e[f+h];e[p+s]=l[d]}else for(h=0;h<r;h++)e[p+h]=l[d+h]}function m(n,r,o,s){var h=0;for(h=0;h<s;h++)l[h]=e[o+h];var d=n+r-1,f=s-1,p=o+s-1,g=0,m=0;if(e[p--]=e[d--],0!==--r)if(1!==s){var v=a;while(1){var y=0,b=0,_=!1;do{if(t(l[f],e[d])<0){if(e[p--]=e[d--],y++,b=0,0===--r){_=!0;break}}else if(e[p--]=l[f--],b++,y=0,1===--s){_=!0;break}}while((y|b)<v);if(_)break;do{if(y=r-c(l[f],e,n,r,r-1,t),0!==y){for(p-=y,d-=y,r-=y,m=p+1,g=d+1,h=y-1;h>=0;h--)e[m+h]=e[g+h];if(0===r){_=!0;break}}if(e[p--]=l[f--],1===--s){_=!0;break}if(b=s-u(e[d],l,0,s,s-1,t),0!==b){for(p-=b,f-=b,s-=b,m=p+1,g=f+1,h=0;h<b;h++)e[m+h]=l[g+h];if(s<=1){_=!0;break}}if(e[p--]=e[d--],0===--r){_=!0;break}v--}while(y>=i||b>=i);if(_)break;v<0&&(v=0),v+=2}if(a=v,a<1&&(a=1),1===s){for(p-=r,d-=r,m=p+1,g=d+1,h=r-1;h>=0;h--)e[m+h]=e[g+h];e[p]=l[f]}else{if(0===s)throw new Error;for(g=p-(s-1),h=0;h<s;h++)e[g+h]=l[h]}}else{for(p-=r,d-=r,m=p+1,g=d+1,h=r-1;h>=0;h--)e[m+h]=e[g+h];e[p]=l[f]}else for(g=p-(s-1),h=0;h<s;h++)e[g+h]=l[h]}return o<120?5:o<1542?10:o<119151?19:40,n=[],r=[],{mergeRuns:d,forceMergeRuns:f,pushRun:h}}function d(e,t,n,i){n||(n=0),i||(i=e.length);var s=i-n;if(!(s<2)){var u=0;if(s<r)return u=o(e,n,i,t),void l(e,n,i,n+u,t);var c=h(e,t),d=a(s);do{if(u=o(e,n,i,t),u<d){var f=s;f>d&&(f=d),l(e,n,n+f,n+u,t),u=f}c.pushRun(n,u),c.mergeRuns(),s-=u,n+=u}while(0!==s);c.forceMergeRuns()}}},"ZL/h":function(e,t,n){var r=n("7+LC");e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},ZPal:function(e,t,n){"use strict";var r=n("HIsA"),i=n("wQ+q").end,a=n("8iHL"),o=a("trimEnd"),s=o?function(){return i(this)}:"".trimEnd;r({target:"String",proto:!0,forced:o},{trimEnd:s,trimRight:s})},ZcxN:function(e,t,n){"use strict";var r=n("HIsA"),i=n("m52V"),a=n("bXon"),o=n("hXyk"),s=n("DDwO"),l=n("40mc"),u=n("70zE"),c=n("wKMT"),h=n("Ji6T");r({target:"Set",proto:!0,real:!0,forced:i},{map:function(e){var t=o(this),n=c(t),r=l(e,arguments.length>1?arguments[1]:void 0,3),i=new(u(t,a("Set"))),d=s(i.add);return h(n,(function(e){d.call(i,r(e,e,t))}),void 0,!1,!0),i}})},Zwxo:function(e,t,n){"use strict";e.exports=function(e,t){if("string"!==typeof e||"string"!==typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];var n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},a0Kb:function(e,t,n){"use strict";n.r(t),n.d(t,"$override",(function(){return p})),n.d(t,"guid",(function(){return m})),n.d(t,"logError",(function(){return v})),n.d(t,"clone",(function(){return y})),n.d(t,"merge",(function(){return b})),n.d(t,"mergeAll",(function(){return _})),n.d(t,"extend",(function(){return x})),n.d(t,"defaults",(function(){return w})),n.d(t,"createCanvas",(function(){return S})),n.d(t,"indexOf",(function(){return T})),n.d(t,"inherits",(function(){return O})),n.d(t,"mixin",(function(){return M})),n.d(t,"isArrayLike",(function(){return E})),n.d(t,"each",(function(){return A})),n.d(t,"map",(function(){return C})),n.d(t,"reduce",(function(){return I})),n.d(t,"filter",(function(){return D})),n.d(t,"find",(function(){return L})),n.d(t,"keys",(function(){return P})),n.d(t,"bind",(function(){return R})),n.d(t,"curry",(function(){return N})),n.d(t,"isArray",(function(){return j})),n.d(t,"isFunction",(function(){return F})),n.d(t,"isString",(function(){return z})),n.d(t,"isStringSafe",(function(){return B})),n.d(t,"isNumber",(function(){return V})),n.d(t,"isObject",(function(){return G})),n.d(t,"isBuiltInObject",(function(){return H})),n.d(t,"isTypedArray",(function(){return U})),n.d(t,"isDom",(function(){return W})),n.d(t,"isGradientObject",(function(){return X})),n.d(t,"isPatternObject",(function(){return Y})),n.d(t,"isRegExp",(function(){return K})),n.d(t,"eqNaN",(function(){return q})),n.d(t,"retrieve",(function(){return Z})),n.d(t,"retrieve2",(function(){return $})),n.d(t,"retrieve3",(function(){return Q})),n.d(t,"slice",(function(){return J})),n.d(t,"normalizeCssArray",(function(){return ee})),n.d(t,"assert",(function(){return te})),n.d(t,"trim",(function(){return ne})),n.d(t,"setAsPrimitive",(function(){return ie})),n.d(t,"isPrimitive",(function(){return ae})),n.d(t,"HashMap",(function(){return oe})),n.d(t,"createHashMap",(function(){return se})),n.d(t,"concatArray",(function(){return le})),n.d(t,"createObject",(function(){return ue})),n.d(t,"hasOwn",(function(){return ce})),n.d(t,"noop",(function(){return he}));var r={"[object Function]":!0,"[object RegExp]":!0,"[object Date]":!0,"[object Error]":!0,"[object CanvasGradient]":!0,"[object CanvasPattern]":!0,"[object Image]":!0,"[object Canvas]":!0},i={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0},a=Object.prototype.toString,o=Array.prototype,s=o.forEach,l=o.filter,u=o.slice,c=o.map,h=function(){}.constructor,d=h?h.prototype:null,f={};function p(e,t){f[e]=t}var g=2311;function m(){return g++}function v(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];"undefined"!==typeof console&&console.error.apply(console,e)}function y(e){if(null==e||"object"!==typeof e)return e;var t=e,n=a.call(e);if("[object Array]"===n){if(!ae(e)){t=[];for(var o=0,s=e.length;o<s;o++)t[o]=y(e[o])}}else if(i[n]){if(!ae(e)){var l=e.constructor;if(l.from)t=l.from(e);else{t=new l(e.length);for(o=0,s=e.length;o<s;o++)t[o]=y(e[o])}}}else if(!r[n]&&!ae(e)&&!W(e))for(var u in t={},e)e.hasOwnProperty(u)&&(t[u]=y(e[u]));return t}function b(e,t,n){if(!G(t)||!G(e))return n?y(t):e;for(var r in t)if(t.hasOwnProperty(r)){var i=e[r],a=t[r];!G(a)||!G(i)||j(a)||j(i)||W(a)||W(i)||H(a)||H(i)||ae(a)||ae(i)?!n&&r in e||(e[r]=y(t[r])):b(i,a,n)}return e}function _(e,t){for(var n=e[0],r=1,i=e.length;r<i;r++)n=b(n,e[r],t);return n}function x(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function w(e,t,n){for(var r=P(t),i=0;i<r.length;i++){var a=r[i];(n?null!=t[a]:null==e[a])&&(e[a]=t[a])}return e}var S=function(){return f.createCanvas()};function T(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function O(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function M(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var a=r[i];"constructor"!==a&&(n?null!=t[a]:null==e[a])&&(e[a]=t[a])}else w(e,t,n)}function E(e){return!!e&&("string"!==typeof e&&"number"===typeof e.length)}function A(e,t,n){if(e&&t)if(e.forEach&&e.forEach===s)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}function C(e,t,n){if(!e)return[];if(!t)return J(e);if(e.map&&e.map===c)return e.map(t,n);for(var r=[],i=0,a=e.length;i<a;i++)r.push(t.call(n,e[i],i,e));return r}function I(e,t,n,r){if(e&&t){for(var i=0,a=e.length;i<a;i++)n=t.call(r,n,e[i],i,e);return n}}function D(e,t,n){if(!e)return[];if(!t)return J(e);if(e.filter&&e.filter===l)return e.filter(t,n);for(var r=[],i=0,a=e.length;i<a;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function L(e,t,n){if(e&&t)for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]}function P(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function k(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(u.call(arguments)))}}f.createCanvas=function(){return document.createElement("canvas")};var R=d&&F(d.bind)?d.call.bind(d.bind):k;function N(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(u.call(arguments)))}}function j(e){return Array.isArray?Array.isArray(e):"[object Array]"===a.call(e)}function F(e){return"function"===typeof e}function z(e){return"string"===typeof e}function B(e){return"[object String]"===a.call(e)}function V(e){return"number"===typeof e}function G(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function H(e){return!!r[a.call(e)]}function U(e){return!!i[a.call(e)]}function W(e){return"object"===typeof e&&"number"===typeof e.nodeType&&"object"===typeof e.ownerDocument}function X(e){return null!=e.colorStops}function Y(e){return null!=e.image}function K(e){return"[object RegExp]"===a.call(e)}function q(e){return e!==e}function Z(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e.length;n<r;n++)if(null!=e[n])return e[n]}function $(e,t){return null!=e?e:t}function Q(e,t,n){return null!=e?e:null!=t?t:n}function J(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return u.apply(e,t)}function ee(e){if("number"===typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e}function te(e,t){if(!e)throw new Error(t)}function ne(e){return null==e?null:"function"===typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var re="__ec_primitive__";function ie(e){e[re]=!0}function ae(e){return e[re]}var oe=function(){function e(t){this.data={};var n=j(t);this.data={};var r=this;function i(e,t){n?r.set(e,t):r.set(t,e)}t instanceof e?t.each(i):t&&A(t,i)}return e.prototype.get=function(e){return this.data.hasOwnProperty(e)?this.data[e]:null},e.prototype.set=function(e,t){return this.data[e]=t},e.prototype.each=function(e,t){for(var n in this.data)this.data.hasOwnProperty(n)&&e.call(t,this.data[n],n)},e.prototype.keys=function(){return P(this.data)},e.prototype.removeKey=function(e){delete this.data[e]},e}();function se(e){return new oe(e)}function le(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];var i=e.length;for(r=0;r<t.length;r++)n[r+i]=t[r];return n}function ue(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&x(n,t),n}function ce(e,t){return e.hasOwnProperty(t)}function he(){}},a1z2:function(e,t,n){"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,"a",(function(){return r}))},aEsj:function(e,t,n){"use strict";function r(e,t,n,r,i,a,o){if(0===i)return!1;var s=i,l=0,u=e;if(o>t+s&&o>r+s||o<t-s&&o<r-s||a>e+s&&a>n+s||a<e-s&&a<n-s)return!1;if(e===n)return Math.abs(a-e)<=s/2;l=(t-r)/(e-n),u=(e*r-n*t)/(e-n);var c=l*a-o+u,h=c*c/(l*l+1);return h<=s/2*s/2}n.d(t,"a",(function(){return r}))},aK5P:function(e,t,n){var r=n("bVFb");r("dispose")},aNCL:function(e,t,n){"use strict";var r=n("HIsA"),i=n("m52V"),a=n("bXon"),o=n("hXyk"),s=n("DDwO"),l=n("40mc"),u=n("70zE"),c=n("YjHi"),h=n("Ji6T");r({target:"Map",proto:!0,real:!0,forced:i},{mapKeys:function(e){var t=o(this),n=c(t),r=l(e,arguments.length>1?arguments[1]:void 0,3),i=new(u(t,a("Map"))),d=s(i.set);return h(n,(function(e,n){d.call(i,r(n,e,t),n)}),void 0,!0,!0),i}})},aS93:function(e,t,n){var r=n("7+LC"),i=n("IRht"),a="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?a.call(e,""):Object(e)}:Object},acWz:function(e,t,n){var r=n("hXyk");e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(o){var a=e["return"];throw void 0!==a&&r(a.call(e)),o}}},afOt:function(e,t,n){"use strict";var r=n("zb3V"),i=n("H4kQ"),a=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return e}(),o=function(e){function t(t){return e.call(this,t)||this}return Object(r["b"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new a},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),a=t.startAngle,o=t.endAngle,s=t.clockwise,l=Math.cos(a),u=Math.sin(a);e.moveTo(l*i+n,u*i+r),e.arc(n,r,i,a,o,!s)},t}(i["b"]);o.prototype.type="arc",t["a"]=o},afop:function(e,t,n){"use strict";var r=n("Krz3").IteratorPrototype,i=n("bWCM"),a=n("OLna"),o=n("J7X1"),s=n("mAbK"),l=function(){return this};e.exports=function(e,t,n){var u=t+" Iterator";return e.prototype=i(r,{next:a(1,n)}),o(e,u,!1,!0),s[u]=l,e}},ajRN:function(e,t,n){"use strict";var r=n("a0Kb"),i={},a=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];r["each"](i,(function(r,i){var a=r.create(e,t);n=n.concat(a||[])})),this._coordinateSystems=n},e.prototype.update=function(e,t){r["each"](this._coordinateSystems,(function(n){n.update&&n.update(e,t)}))},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){i[e]=t},e.get=function(e){return i[e]},e}();t["a"]=a},auPx:function(e,t,n){var r=n("HIsA"),i=n("jXsC");r({target:"Array",proto:!0,forced:i!==[].lastIndexOf},{lastIndexOf:i})},aveK:function(e,t,n){(function(e,n){var r=200,i="__lodash_hash_undefined__",a=9007199254740991,o="[object Arguments]",s="[object Array]",l="[object Boolean]",u="[object Date]",c="[object Error]",h="[object Function]",d="[object GeneratorFunction]",f="[object Map]",p="[object Number]",g="[object Object]",m="[object Promise]",v="[object RegExp]",y="[object Set]",b="[object String]",_="[object Symbol]",x="[object WeakMap]",w="[object ArrayBuffer]",S="[object DataView]",T="[object Float32Array]",O="[object Float64Array]",M="[object Int8Array]",E="[object Int16Array]",A="[object Int32Array]",C="[object Uint8Array]",I="[object Uint8ClampedArray]",D="[object Uint16Array]",L="[object Uint32Array]",P=/[\\^$.*+?()[\]{}|]/g,k=/\w*$/,R=/^\[object .+?Constructor\]$/,N=/^(?:0|[1-9]\d*)$/,j={};j[o]=j[s]=j[w]=j[S]=j[l]=j[u]=j[T]=j[O]=j[M]=j[E]=j[A]=j[f]=j[p]=j[g]=j[v]=j[y]=j[b]=j[_]=j[C]=j[I]=j[D]=j[L]=!0,j[c]=j[h]=j[x]=!1;var F="object"==typeof e&&e&&e.Object===Object&&e,z="object"==typeof self&&self&&self.Object===Object&&self,B=F||z||Function("return this")(),V=t&&!t.nodeType&&t,G=V&&"object"==typeof n&&n&&!n.nodeType&&n,H=G&&G.exports===V;function U(e,t){return e.set(t[0],t[1]),e}function W(e,t){return e.add(t),e}function X(e,t){var n=-1,r=e?e.length:0;while(++n<r)if(!1===t(e[n],n,e))break;return e}function Y(e,t){var n=-1,r=t.length,i=e.length;while(++n<r)e[i+n]=t[n];return e}function K(e,t,n,r){var i=-1,a=e?e.length:0;r&&a&&(n=e[++i]);while(++i<a)n=t(n,e[i],i,e);return n}function q(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}function Z(e,t){return null==e?void 0:e[t]}function $(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function Q(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function J(e,t){return function(n){return e(t(n))}}function ee(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var te=Array.prototype,ne=Function.prototype,re=Object.prototype,ie=B["__core-js_shared__"],ae=function(){var e=/[^.]+$/.exec(ie&&ie.keys&&ie.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),oe=ne.toString,se=re.hasOwnProperty,le=re.toString,ue=RegExp("^"+oe.call(se).replace(P,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ce=H?B.Buffer:void 0,he=B.Symbol,de=B.Uint8Array,fe=J(Object.getPrototypeOf,Object),pe=Object.create,ge=re.propertyIsEnumerable,me=te.splice,ve=Object.getOwnPropertySymbols,ye=ce?ce.isBuffer:void 0,be=J(Object.keys,Object),_e=Mt(B,"DataView"),xe=Mt(B,"Map"),we=Mt(B,"Promise"),Se=Mt(B,"Set"),Te=Mt(B,"WeakMap"),Oe=Mt(Object,"create"),Me=Nt(_e),Ee=Nt(xe),Ae=Nt(we),Ce=Nt(Se),Ie=Nt(Te),De=he?he.prototype:void 0,Le=De?De.valueOf:void 0;function Pe(e){var t=-1,n=e?e.length:0;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function ke(){this.__data__=Oe?Oe(null):{}}function Re(e){return this.has(e)&&delete this.__data__[e]}function Ne(e){var t=this.__data__;if(Oe){var n=t[e];return n===i?void 0:n}return se.call(t,e)?t[e]:void 0}function je(e){var t=this.__data__;return Oe?void 0!==t[e]:se.call(t,e)}function Fe(e,t){var n=this.__data__;return n[e]=Oe&&void 0===t?i:t,this}function ze(e){var t=-1,n=e?e.length:0;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Be(){this.__data__=[]}function Ve(e){var t=this.__data__,n=at(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():me.call(t,n,1),!0}function Ge(e){var t=this.__data__,n=at(t,e);return n<0?void 0:t[n][1]}function He(e){return at(this.__data__,e)>-1}function Ue(e,t){var n=this.__data__,r=at(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}function We(e){var t=-1,n=e?e.length:0;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Xe(){this.__data__={hash:new Pe,map:new(xe||ze),string:new Pe}}function Ye(e){return Ot(this,e)["delete"](e)}function Ke(e){return Ot(this,e).get(e)}function qe(e){return Ot(this,e).has(e)}function Ze(e,t){return Ot(this,e).set(e,t),this}function $e(e){this.__data__=new ze(e)}function Qe(){this.__data__=new ze}function Je(e){return this.__data__["delete"](e)}function et(e){return this.__data__.get(e)}function tt(e){return this.__data__.has(e)}function nt(e,t){var n=this.__data__;if(n instanceof ze){var i=n.__data__;if(!xe||i.length<r-1)return i.push([e,t]),this;n=this.__data__=new We(i)}return n.set(e,t),this}function rt(e,t){var n=Bt(e)||zt(e)?q(e.length,String):[],r=n.length,i=!!r;for(var a in e)!t&&!se.call(e,a)||i&&("length"==a||Lt(a,r))||n.push(a);return n}function it(e,t,n){var r=e[t];se.call(e,t)&&Ft(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function at(e,t){var n=e.length;while(n--)if(Ft(e[n][0],t))return n;return-1}function ot(e,t){return e&&wt(t,Kt(t),e)}function st(e,t,n,r,i,a,s){var l;if(r&&(l=a?r(e,i,a,s):r(e)),void 0!==l)return l;if(!Xt(e))return e;var u=Bt(e);if(u){if(l=Ct(e),!t)return xt(e,l)}else{var c=At(e),f=c==h||c==d;if(Ht(e))return ft(e,t);if(c==g||c==o||f&&!a){if($(e))return a?e:{};if(l=It(f?{}:e),!t)return St(e,ot(l,e))}else{if(!j[c])return a?e:{};l=Dt(e,c,st,t)}}s||(s=new $e);var p=s.get(e);if(p)return p;if(s.set(e,l),!u)var m=n?Tt(e):Kt(e);return X(m||e,(function(i,a){m&&(a=i,i=e[a]),it(l,a,st(i,t,n,r,a,e,s))})),l}function lt(e){return Xt(e)?pe(e):{}}function ut(e,t,n){var r=t(e);return Bt(e)?r:Y(r,n(e))}function ct(e){return le.call(e)}function ht(e){if(!Xt(e)||kt(e))return!1;var t=Ut(e)||$(e)?ue:R;return t.test(Nt(e))}function dt(e){if(!Rt(e))return be(e);var t=[];for(var n in Object(e))se.call(e,n)&&"constructor"!=n&&t.push(n);return t}function ft(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}function pt(e){var t=new e.constructor(e.byteLength);return new de(t).set(new de(e)),t}function gt(e,t){var n=t?pt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function mt(e,t,n){var r=t?n(Q(e),!0):Q(e);return K(r,U,new e.constructor)}function vt(e){var t=new e.constructor(e.source,k.exec(e));return t.lastIndex=e.lastIndex,t}function yt(e,t,n){var r=t?n(ee(e),!0):ee(e);return K(r,W,new e.constructor)}function bt(e){return Le?Object(Le.call(e)):{}}function _t(e,t){var n=t?pt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function xt(e,t){var n=-1,r=e.length;t||(t=Array(r));while(++n<r)t[n]=e[n];return t}function wt(e,t,n,r){n||(n={});var i=-1,a=t.length;while(++i<a){var o=t[i],s=r?r(n[o],e[o],o,n,e):void 0;it(n,o,void 0===s?e[o]:s)}return n}function St(e,t){return wt(e,Et(e),t)}function Tt(e){return ut(e,Kt,Et)}function Ot(e,t){var n=e.__data__;return Pt(t)?n["string"==typeof t?"string":"hash"]:n.map}function Mt(e,t){var n=Z(e,t);return ht(n)?n:void 0}Pe.prototype.clear=ke,Pe.prototype["delete"]=Re,Pe.prototype.get=Ne,Pe.prototype.has=je,Pe.prototype.set=Fe,ze.prototype.clear=Be,ze.prototype["delete"]=Ve,ze.prototype.get=Ge,ze.prototype.has=He,ze.prototype.set=Ue,We.prototype.clear=Xe,We.prototype["delete"]=Ye,We.prototype.get=Ke,We.prototype.has=qe,We.prototype.set=Ze,$e.prototype.clear=Qe,$e.prototype["delete"]=Je,$e.prototype.get=et,$e.prototype.has=tt,$e.prototype.set=nt;var Et=ve?J(ve,Object):qt,At=ct;function Ct(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&se.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function It(e){return"function"!=typeof e.constructor||Rt(e)?{}:lt(fe(e))}function Dt(e,t,n,r){var i=e.constructor;switch(t){case w:return pt(e);case l:case u:return new i(+e);case S:return gt(e,r);case T:case O:case M:case E:case A:case C:case I:case D:case L:return _t(e,r);case f:return mt(e,r,n);case p:case b:return new i(e);case v:return vt(e);case y:return yt(e,r,n);case _:return bt(e)}}function Lt(e,t){return t=null==t?a:t,!!t&&("number"==typeof e||N.test(e))&&e>-1&&e%1==0&&e<t}function Pt(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function kt(e){return!!ae&&ae in e}function Rt(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||re;return e===n}function Nt(e){if(null!=e){try{return oe.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function jt(e){return st(e,!0,!0)}function Ft(e,t){return e===t||e!==e&&t!==t}function zt(e){return Gt(e)&&se.call(e,"callee")&&(!ge.call(e,"callee")||le.call(e)==o)}(_e&&At(new _e(new ArrayBuffer(1)))!=S||xe&&At(new xe)!=f||we&&At(we.resolve())!=m||Se&&At(new Se)!=y||Te&&At(new Te)!=x)&&(At=function(e){var t=le.call(e),n=t==g?e.constructor:void 0,r=n?Nt(n):void 0;if(r)switch(r){case Me:return S;case Ee:return f;case Ae:return m;case Ce:return y;case Ie:return x}return t});var Bt=Array.isArray;function Vt(e){return null!=e&&Wt(e.length)&&!Ut(e)}function Gt(e){return Yt(e)&&Vt(e)}var Ht=ye||Zt;function Ut(e){var t=Xt(e)?le.call(e):"";return t==h||t==d}function Wt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function Xt(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Yt(e){return!!e&&"object"==typeof e}function Kt(e){return Vt(e)?rt(e):dt(e)}function qt(){return[]}function Zt(){return!1}n.exports=jt}).call(this,n("UywP"),n("qrga")(e))},b26b:function(e,t,n){"use strict";n.d(t,"r",(function(){return u})),n.d(t,"f",(function(){return c})),n.d(t,"c",(function(){return h})),n.d(t,"h",(function(){return d})),n.d(t,"m",(function(){return f})),n.d(t,"q",(function(){return p})),n.d(t,"e",(function(){return S})),n.d(t,"n",(function(){return T})),n.d(t,"l",(function(){return O})),n.d(t,"p",(function(){return M})),n.d(t,"w",(function(){return E})),n.d(t,"d",(function(){return C})),n.d(t,"t",(function(){return I})),n.d(t,"o",(function(){return D})),n.d(t,"s",(function(){return P})),n.d(t,"b",(function(){return k})),n.d(t,"a",(function(){return R})),n.d(t,"u",(function(){return N})),n.d(t,"v",(function(){return j})),n.d(t,"g",(function(){return F})),n.d(t,"i",(function(){return z})),n.d(t,"j",(function(){return B})),n.d(t,"k",(function(){return V}));var r=n("a0Kb"),i=n("jwv5"),a=n("sKBc"),o=n("p1W9"),s="series\0",l="\0_ec_\0";function u(e){return e instanceof Array?e:null==e?[]:[e]}function c(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var a=n[r];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var h=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function d(e){return!Object(r["isObject"])(e)||Object(r["isArray"])(e)||e instanceof Date?e:e.value}function f(e){return Object(r["isObject"])(e)&&!(e instanceof Array)}function p(e,t,n){var i="normalMerge"===n,a="replaceMerge"===n,o="replaceAll"===n;e=e||[],t=(t||[]).slice();var s=Object(r["createHashMap"])();Object(r["each"])(t,(function(e,n){Object(r["isObject"])(e)||(t[n]=null)}));var l=g(e,s,n);return(i||a)&&m(l,e,s,t),i&&v(l,t),i||a?y(l,t,a):o&&b(l,t),_(l),l}function g(e,t,n){var r=[];if("replaceAll"===n)return r;for(var i=0;i<e.length;i++){var a=e[i];a&&null!=a.id&&t.set(a.id,i),r.push({existing:"replaceMerge"===n||O(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function m(e,t,n,i){Object(r["each"])(i,(function(a,o){if(a&&null!=a.id){var s=w(a.id),l=n.get(s);if(null!=l){var u=e[l];Object(r["assert"])(!u.newOption,'Duplicated option on id "'+s+'".'),u.newOption=a,u.existing=t[l],i[o]=null}}}))}function v(e,t){Object(r["each"])(t,(function(n,r){if(n&&null!=n.name)for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(null==a.id||null==n.id)&&!O(n)&&!O(a)&&x("name",a,n))return e[i].newOption=n,void(t[r]=null)}}))}function y(e,t,n){Object(r["each"])(t,(function(t){if(t){var r,i=0;while((r=e[i])&&(r.newOption||O(r.existing)||r.existing&&null!=t.id&&!x("id",t,r.existing)))i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}}))}function b(e,t){Object(r["each"])(t,(function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})}))}function _(e){var t=Object(r["createHashMap"])();Object(r["each"])(e,(function(e){var n=e.existing;n&&t.set(n.id,e)})),Object(r["each"])(e,(function(e){var n=e.newOption;Object(r["assert"])(!n||null==n.id||!t.get(n.id)||t.get(n.id)===e,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})})),Object(r["each"])(e,(function(e,n){var i=e.existing,a=e.newOption,o=e.keyInfo;if(Object(r["isObject"])(a)){if(o.name=null!=a.name?w(a.name):i?i.name:s+n,i)o.id=w(i.id);else if(null!=a.id)o.id=w(a.id);else{var l=0;do{o.id="\0"+o.name+"\0"+l++}while(t.get(o.id))}t.set(o.id,e)}}))}function x(e,t,n){var r=S(t[e],null),i=S(n[e],null);return null!=r&&null!=i&&r===i}function w(e){return S(e,"")}function S(e,t){if(null==e)return t;var n=typeof e;return"string"===n?e:"number"===n||Object(r["isStringSafe"])(e)?e+"":t}function T(e){var t=e.name;return!(!t||!t.indexOf(s))}function O(e){return e&&null!=e.id&&0===w(e.id).indexOf(l)}function M(e){return l+e}function E(e,t,n){Object(r["each"])(e,(function(e){var i=e.newOption;Object(r["isObject"])(i)&&(e.keyInfo.mainType=t,e.keyInfo.subType=A(t,i,e.existing,n))}))}function A(e,t,n,r){var i=t.type?t.type:n?n.subType:r.determineSubType(e,t);return i}function C(e,t){var n={},r={};return i(e||[],n),i(t||[],r,n),[a(n),a(r)];function i(e,t,n){for(var r=0,i=e.length;r<i;r++){var a=S(e[r].seriesId,null);if(null==a)return;for(var o=u(e[r].dataIndex),s=n&&n[a],l=0,c=o.length;l<c;l++){var h=o[l];s&&s[h]?s[h]=null:(t[a]||(t[a]={}))[h]=1}}}function a(e,t){var n=[];for(var r in e)if(e.hasOwnProperty(r)&&null!=e[r])if(t)n.push(+r);else{var i=a(e[r],!0);i.length&&n.push({seriesId:r,dataIndex:i})}return n}}function I(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?Object(r["isArray"])(t.dataIndex)?Object(r["map"])(t.dataIndex,(function(t){return e.indexOfRawIndex(t)})):e.indexOfRawIndex(t.dataIndex):null!=t.name?Object(r["isArray"])(t.name)?Object(r["map"])(t.name,(function(t){return e.indexOfName(t)})):e.indexOfName(t.name):void 0}function D(){var e="__ec_inner_"+L++;return function(t){return t[e]||(t[e]={})}}var L=Object(a["h"])();function P(e,t,n){var i;if(Object(r["isString"])(t)){var a={};a[t+"Index"]=0,i=a}else i=t;var o=Object(r["createHashMap"])(),s={},l=!1;Object(r["each"])(i,(function(e,t){if("dataIndex"!==t&&"dataIndexInside"!==t){var i=t.match(/^(\w+)(Index|Id|Name)$/)||[],a=i[1],u=(i[2]||"").toLowerCase();if(a&&u&&!(n&&n.includeMainTypes&&Object(r["indexOf"])(n.includeMainTypes,a)<0)){l=l||!!a;var c=o.get(a)||o.set(a,{});c[u]=e}}else s[t]=e}));var u=n?n.defaultMainType:null;return!l&&u&&o.set(u,{}),o.each((function(t,r){var i=N(e,r,t,{useDefault:u===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});s[r+"Models"]=i.models,s[r+"Model"]=i.models[0]})),s}var k={useDefault:!0,enableAll:!1,enableNone:!1},R={useDefault:!1,enableAll:!0,enableNone:!0};function N(e,t,n,i){i=i||k;var a=n.index,o=n.id,s=n.name,l={models:null,specified:null!=a||null!=o||null!=s};if(!l.specified){var u=void 0;return l.models=i.useDefault&&(u=e.getComponent(t))?[u]:[],l}return"none"===a||!1===a?(Object(r["assert"])(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),l.models=[],l):("all"===a&&(Object(r["assert"])(i.enableAll,'`"all"` is not a valid value on index option.'),a=o=s=null),l.models=e.queryComponents({mainType:t,index:a,id:o,name:s}),l)}function j(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function F(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function z(e){return"auto"===e?i["a"].domSupported?"html":"richText":e||"html"}function B(e,t){var n=Object(r["createHashMap"])(),i=[];return Object(r["each"])(e,(function(e){var r=t(e);(n.get(r)||(i.push(r),n.set(r,[]))).push(e)})),{keys:i,buckets:n}}function V(e,t,n,r,i){var s=null==t||"auto"===t;if(null==r)return r;if("number"===typeof r){var l=Object(o["c"])(n||0,r,i);return Object(a["u"])(l,s?Math.max(Object(a["g"])(n||0),Object(a["g"])(r)):t)}if("string"===typeof r)return i<1?n:r;for(var u=[],c=n,h=r,d=Math.max(c?c.length:0,h.length),f=0;f<d;++f){var p=e.getDimensionInfo(f);if("ordinal"===p.type)u[f]=(i<1&&c?c:h)[f];else{var g=c&&c[f]?c[f]:0,m=h[f];l=Object(o["c"])(g,m,i);u[f]=Object(a["u"])(l,s?Math.max(Object(a["g"])(g),Object(a["g"])(m)):t)}}return u}},b4JQ:function(e,t,n){var r=n("NVMI"),i=n("2I03"),a=n("tg/3"),o=n("mKn/"),s=n("40mc"),l=n("Wp5u").aTypedArrayConstructor;e.exports=function(e){var t,n,u,c,h,d,f=r(e),p=arguments.length,g=p>1?arguments[1]:void 0,m=void 0!==g,v=a(f);if(void 0!=v&&!o(v)){h=v.call(f),d=h.next,f=[];while(!(c=d.call(h)).done)f.push(c.value)}for(m&&p>2&&(g=s(g,arguments[2],2)),n=i(f.length),u=new(l(this))(n),t=0;n>t;t++)u[t]=m?g(f[t],t):f[t];return u}},"b9+m":function(e,t,n){var r=n("bXon");e.exports=r("document","documentElement")},b9e6:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));"undefined"!==typeof console&&console.warn&&console.log;function r(e){0}function i(e){throw new Error(e)}},bCY9:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("CU0g"),i=new r["Plugin"]({validKeys:["modifyClientRenderOpts","patchRoutes","rootContainer","render","onRouteChange"]})},bCfE:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ver=t.clear=t.bind=void 0;var r=n("hQli"),i=function(e,t){var n=(0,r.getSensor)(e);return n.bind(t),function(){n.unbind(t)}};t.bind=i;var a=function(e){var t=(0,r.getSensor)(e);(0,r.removeSensor)(t)};t.clear=a;var o="1.0.1";t.ver=o},bG4S:function(e,t,n){var r=n("HIsA"),i=n("VeQJ");r({target:"WeakSet",stat:!0},{of:i})},bJj0:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("T3M/");function i(e,t,n,r,i,a,o){var s=.5*(n-e),l=.5*(r-t);return(2*(t-n)+s+l)*o+(-3*(t-n)-2*s-l)*a+s*i+t}function a(e,t){for(var n=e.length,a=[],o=0,s=1;s<n;s++)o+=Object(r["distance"])(e[s-1],e[s]);var l=o/2;l=l<n?n:l;for(s=0;s<l;s++){var u=s/(l-1)*(t?n:n-1),c=Math.floor(u),h=u-c,d=void 0,f=e[c%n],p=void 0,g=void 0;t?(d=e[(c-1+n)%n],p=e[(c+1)%n],g=e[(c+2)%n]):(d=e[0===c?c:c-1],p=e[c>n-2?n-1:c+1],g=e[c>n-3?n-1:c+2]);var m=h*h,v=h*m;a.push([i(d[0],f[0],p[0],g[0],h,m,v),i(d[1],f[1],p[1],g[1],h,m,v)])}return a}function o(e,t,n,i){var a,o,s,l,u=[],c=[],h=[],d=[];if(i){s=[1/0,1/0],l=[-1/0,-1/0];for(var f=0,p=e.length;f<p;f++)Object(r["min"])(s,s,e[f]),Object(r["max"])(l,l,e[f]);Object(r["min"])(s,s,i[0]),Object(r["max"])(l,l,i[1])}for(f=0,p=e.length;f<p;f++){var g=e[f];if(n)a=e[f?f-1:p-1],o=e[(f+1)%p];else{if(0===f||f===p-1){u.push(Object(r["clone"])(e[f]));continue}a=e[f-1],o=e[f+1]}Object(r["sub"])(c,o,a),Object(r["scale"])(c,c,t);var m=Object(r["distance"])(g,a),v=Object(r["distance"])(g,o),y=m+v;0!==y&&(m/=y,v/=y),Object(r["scale"])(h,c,-m),Object(r["scale"])(d,c,v);var b=Object(r["add"])([],g,h),_=Object(r["add"])([],g,d);i&&(Object(r["max"])(b,b,s),Object(r["min"])(b,b,l),Object(r["max"])(_,_,s),Object(r["min"])(_,_,l)),u.push(b),u.push(_)}return n&&u.push(u.shift()),u}function s(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r&&"spline"!==r){var s=o(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var l=i.length,u=0;u<(n?l:l-1);u++){var c=s[2*u],h=s[2*u+1],d=i[(u+1)%l];e.bezierCurveTo(c[0],c[1],h[0],h[1],d[0],d[1])}}else{"spline"===r&&(i=a(i,n)),e.moveTo(i[0][0],i[0][1]);u=1;for(var f=i.length;u<f;u++)e.lineTo(i[u][0],i[u][1])}n&&e.closePath()}}},bL85:function(e,t,n){var r=n("HIsA"),i=n("icJ8"),a=n("hXyk"),o=i.get,s=i.toKey;r({target:"Reflect",stat:!0},{getOwnMetadata:function(e,t){var n=arguments.length<3?void 0:s(arguments[2]);return o(e,a(t),n)}})},bShA:function(e,t,n){var r=n("m52V"),i=n("Ogjs");(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},bTwz:function(e,t,n){"use strict";var r=n("zb3V"),i=n("a0Kb"),a=n("jwv5"),o=n("b26b"),s=n("XVzY"),l=n("t8P9"),u=n("bs6j"),c=n("Fi3l"),h=n("Y+i/"),d=n("EPlJ"),f=n("eN5g"),p=n("JVZd"),g=o["o"]();function m(e,t){return e.getName(t)||e.getId(t)}var v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return Object(r["b"])(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=Object(h["a"])({count:_,reset:x}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var r=g(this).sourceManager=new f["a"](this);r.prepareSource();var i=this.getInitialData(e,n);S(i,this),this.dataTask.context.data=i,g(this).dataBeforeProcessed=i,y(this),this._initSelectedMapFromData(i)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Object(c["d"])(this),r=n?Object(c["f"])(e):{},a=this.subType;s["a"].hasClass(a)&&(a+="Series"),i["merge"](e,t.getTheme().get(this.subType)),i["merge"](e,this.getDefaultOption()),o["f"](e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Object(c["h"])(e,r,n)},t.prototype.mergeOption=function(e,t){e=i["merge"](this.option,e,!0),this.fillDataTextStyle(e.data);var n=Object(c["d"])(this);n&&Object(c["h"])(this.option,e,n);var r=g(this).sourceManager;r.dirty(),r.prepareSource();var a=this.getInitialData(e,t);S(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,g(this).dataBeforeProcessed=a,y(this),this._initSelectedMapFromData(a)},t.prototype.fillDataTextStyle=function(e){if(e&&!i["isTypedArray"](e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&o["f"](e[n],"label",t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){var t=this.getRawData();t.appendData(e.data)},t.prototype.getData=function(e){var t=O(this);if(t){var n=t.context.data;return null==e?n:n.getLinkedData(e)}return g(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=O(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}g(this).data=e},t.prototype.getSource=function(){return g(this).sourceManager.getSource()},t.prototype.getRawData=function(){return g(this).dataBeforeProcessed},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,t,n){return Object(p["a"])({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){if(a["a"].node)return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=l["a"].prototype.getColorFromPalette.call(this,e,t,n);return i||(i=r.getColorFromPalette(e,t,n)),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n)for(var r=this.getData(t),i=0;i<e.length;i++){var a=e[i],o=m(r,a);n[o]=!1,this._selectedDataIndicesMap[o]=-1}},t.prototype.toggleSelect=function(e,t){for(var n=[],r=0;r<e.length;r++)n[0]=e[r],this.isSelected(e[r],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){for(var e=this._selectedDataIndicesMap,t=i["keys"](e),n=[],r=0;r<t.length;r++){var a=e[t[r]];a>=0&&n.push(a)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t),i=m(r,e);return n[i]||!1},t.prototype._innerSelect=function(e,t){var n,r,i=this.option.selectedMode,a=t.length;if(i&&a)if("multiple"===i)for(var o=this.option.selectedMap||(this.option.selectedMap={}),s=0;s<a;s++){var l=t[s],u=m(e,l);o[u]=!0,this._selectedDataIndicesMap[u]=e.getRawIndex(l)}else if("single"===i||!0===i){var c=t[a-1];u=m(e,c);this.option.selectedMap=(n={},n[u]=!0,n),this._selectedDataIndicesMap=(r={},r[u]=e.getRawIndex(c),r)}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each((function(n){var r=e.getRawDataItem(n);"object"===typeof r&&r.selected&&t.push(n)})),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return s["a"].registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.useColorPaletteOnData=!1,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(s["a"]);function y(e){var t=e.name;o["n"](e)||(e.name=b(e)||t)}function b(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return i["each"](n,(function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)})),r.join(" ")}function _(e){return e.model.getRawData().count()}function x(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),w}function w(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function S(e,t){i["each"](Object(r["c"])(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),(function(n){e.wrapMethod(n,i["curry"](T,t))}))}function T(e,t){var n=O(e);return n&&n.setOutputEnd((t||this).count()),t}function O(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}i["mixin"](v,u["a"]),i["mixin"](v,l["a"]),Object(d["e"])(v,s["a"]),t["a"]=v},bVFb:function(e,t,n){var r=n("G5kI"),i=n("+qhb"),a=n("Q1Da"),o=n("2RC6").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||o(t,e,{value:a.f(e)})}},bWCM:function(e,t,n){var r,i=n("hXyk"),a=n("2+gS"),o=n("GPbW"),s=n("1agv"),l=n("b9+m"),u=n("riWr"),c=n("fbKl"),h=">",d="<",f="prototype",p="script",g=c("IE_PROTO"),m=function(){},v=function(e){return d+p+h+e+d+"/"+p+h},y=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=u("iframe"),n="java"+p+":";return t.style.display="none",l.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(v("document.F=Object")),e.close(),e.F},_=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}_=r?y(r):b();var e=o.length;while(e--)delete _[f][o[e]];return _()};s[g]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(m[f]=i(e),n=new m,m[f]=null,n[g]=e):n=_(),void 0===t?n:a(n,t)}},bXon:function(e,t,n){var r=n("G5kI"),i=n("2JD6"),a=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e])||a(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},bbTr:function(e,t,n){"use strict";var r=n("HIsA"),i=n("wQ+q").trim,a=n("8iHL");r({target:"String",proto:!0,forced:a("trim")},{trim:function(){return i(this)}})},br1d:function(e,t,n){"use strict";var r=n("HIsA"),i=n("m52V"),a=n("7SXh");r({target:"Set",proto:!0,real:!0,forced:i},{addAll:function(){return a.apply(this,arguments)}})},bs6j:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l}));var r=n("a0Kb"),i=n("CfRN"),a=n("90zU"),o=/\{@(.+?)\}/g,s=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,"style"),l=s&&s[n.getItemVisual(e,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,h="series"===c,d=n.userOutput;return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:l,borderColor:u,dimensionNames:d?d.dimensionNames:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(e,t,n,s,l,u){t=t||"normal";var c=this.getData(n),h=this.getDataParams(e,n);if(u&&(h.value=u.interpolatedValue),null!=s&&r["isArray"](h.value)&&(h.value=h.value[s]),!l){var d=c.getItemModel(e);l=d.get("normal"===t?["label","formatter"]:[t,"label","formatter"])}if("function"===typeof l)return h.status=t,h.dimensionIndex=s,l(h);if("string"===typeof l){var f=Object(a["f"])(l,h);return f.replace(o,(function(t,n){var a=n.length,o="["===n.charAt(0)&&"]"===n.charAt(a-1)?+n.slice(1,a-1):n,s=Object(i["e"])(c,e,o);if(u&&r["isArray"](u.interpolatedValue)){var l=c.getDimensionInfo(o);l&&(s=u.interpolatedValue[l.index])}return null!=s?s+"":""}))}},e.prototype.getRawValue=function(e,t){return Object(i["e"])(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function l(e){var t,n;return r["isObject"](e)?e.type&&(n=e):t=e,{markupText:t,markupFragment:n}}},c2jp:function(e,t,n){var r=n("HIsA"),i=n("VeQJ");r({target:"Map",stat:!0},{of:i})},c7YS:function(e,t,n){"use strict";n.d(t,"c",(function(){return h})),n.d(t,"b",(function(){return g})),n.d(t,"e",(function(){return w})),n.d(t,"d",(function(){return S})),n.d(t,"a",(function(){return T}));var r=n("90zU"),i=n("a0Kb"),a=n("IpVE"),o=n("sKBc"),s="line-height:1";function l(e,t){var n=e.color||"#6e7079",i=e.fontSize||12,a=e.fontWeight||"400",o=e.color||"#464646",s=e.fontSize||14,l=e.fontWeight||"900";return"html"===t?{nameStyle:"font-size:"+Object(r["d"])(i+"")+"px;color:"+Object(r["d"])(n)+";font-weight:"+Object(r["d"])(a+""),valueStyle:"font-size:"+Object(r["d"])(s+"")+"px;color:"+Object(r["d"])(o)+";font-weight:"+Object(r["d"])(l+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:a},valueStyle:{fontSize:s,fill:o,fontWeight:l}}}var u=[0,10,20,30],c=["","\n","\n\n","\n\n\n"];function h(e,t){return t.type=e,t}function d(e){return Object(i["hasOwn"])(f,e.type)&&f[e.type]}var f={section:{planLayout:function(e){var t=e.blocks.length,n=t>1||t>0&&!e.noHeader,r=0;Object(i["each"])(e.blocks,(function(e){d(e).planLayout(e);var t=e.__gapLevelBetweenSubBlocks;t>=r&&(r=t+(!n||t&&("section"!==e.type||e.noHeader)?0:1))})),e.__gapLevelBetweenSubBlocks=r},build:function(e,t,n,i){var a=t.noHeader,o=m(t),u=p(e,t,a?n:o.html,i);if(a)return u;var c=Object(r["i"])(t.header,"ordinal",e.useUTC),h=l(i,e.renderMode).nameStyle;return"richText"===e.renderMode?_(e,c,h)+o.richText+u:v('<div style="'+h+";"+s+';">'+Object(r["d"])(c)+"</div>"+u,n)}},nameValue:{planLayout:function(e){e.__gapLevelBetweenSubBlocks=0},build:function(e,t,n,a){var o=e.renderMode,s=t.noName,u=t.noValue,c=!t.markerType,h=t.name,d=t.value,f=e.useUTC;if(!s||!u){var p=c?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",o),g=s?"":Object(r["i"])(h,"ordinal",f),m=t.valueType,w=u?[]:Object(i["isArray"])(d)?Object(i["map"])(d,(function(e,t){return Object(r["i"])(e,Object(i["isArray"])(m)?m[t]:m,f)})):[Object(r["i"])(d,Object(i["isArray"])(m)?m[0]:m,f)],S=!c||!s,T=!c&&s,O=l(a,o),M=O.nameStyle,E=O.valueStyle;return"richText"===o?(c?"":p)+(s?"":_(e,g,M))+(u?"":x(e,w,S,T,E)):v((c?"":p)+(s?"":y(g,!c,M))+(u?"":b(w,S,T,E)),n)}}}};function p(e,t,n,r){var o=[],s=t.blocks||[];Object(i["assert"])(!s||Object(i["isArray"])(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Object(i["hasOwn"])(u,l)){var c=new a["a"](u[l],null);s.sort((function(e,t){return c.evaluate(e.sortParam,t.sortParam)}))}else"seriesDesc"===l&&s.reverse()}var h=m(t);if(Object(i["each"])(s,(function(t,n){var i=d(t).build(e,t,n>0?h.html:0,r);null!=i&&o.push(i)})),o.length)return"richText"===e.renderMode?o.join(h.richText):v(o.join(""),n)}function g(e,t,n,r,i,a){if(e){var o=d(e);o.planLayout(e);var s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t};return o.build(s,e,0,a)}}function m(e){var t=e.__gapLevelBetweenSubBlocks;return{html:u[t],richText:c[t]}}function v(e,t){var n='<div style="clear:both"></div>',r="margin: "+t+"px 0 0";return'<div style="'+r+";"+s+';">'+e+n+"</div>"}function y(e,t,n){var i=t?"margin-left:2px":"";return'<span style="'+n+";"+i+'">'+Object(r["d"])(e)+"</span>"}function b(e,t,n,a){var o=n?"10px":"20px",s=t?"float:right;margin-left:"+o:"";return'<span style="'+s+";"+a+'">'+Object(i["map"])(e,(function(e){return Object(r["d"])(e)})).join(" ")+"</span>"}function _(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function x(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(t.join(" "),a)}function w(e,t){var n=e.getData().getItemVisual(t,"style"),i=n[e.visualDrawType];return Object(r["c"])(i)}function S(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}var T=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Object(o["h"])()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var a="richText"===n?this._generateStyleName():null,o=Object(r["h"])({color:t,type:e,renderMode:n,markerId:a});return Object(i["isString"])(o)?o:(this.richTextStyles[a]=o.style,o.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};Object(i["isArray"])(t)?Object(i["each"])(t,(function(e){return Object(i["extend"])(n,e)})):Object(i["extend"])(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+e+"}"},e}()},c8OV:function(e,t,n){var r=n("T9r4");e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(r)},cCpg:function(e,t,n){var r=n("HIsA");r({target:"Math",stat:!0},{umulh:function(e,t){var n=65535,r=+e,i=+t,a=r&n,o=i&n,s=r>>>16,l=i>>>16,u=(s*o>>>0)+(a*o>>>16);return s*l+(u>>>16)+((a*l>>>0)+(u&n)>>>16)}})},cGOV:function(e,t,n){var r=n("pxmn"),i=n("UPu9");e.exports=function(e,t,n){var a,o;return i&&"function"==typeof(a=t.constructor)&&a!==n&&r(o=a.prototype)&&o!==n.prototype&&i(e,o),e}},cOEc:function(e,t,n){"use strict";var r=function(){function e(e){this.value=e}return e}(),i=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new r(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),a=function(){function e(e){this._list=new i,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,i=this._map,a=null;if(null==i[e]){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new r(t),s.key=e,n.insertEntry(s),i[e]=s}return a},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(null!=t)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();t["a"]=a},"cvH+":function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var r=n("a0Kb"),i=n("b26b");function a(e,t){function n(t,n){var r=[];return t.eachComponent({mainType:"series",subType:e,query:n},(function(e){r.push(e.seriesIndex)})),r}Object(r["each"])([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],(function(e){t(e[0],(function(t,i,a){t=Object(r["extend"])({},t),a.dispatchAction(Object(r["extend"])(t,{type:e[1],seriesIndex:n(i,t)}))}))}))}function o(e,t,n,a,o){var s=e+t;n.isSilent(s)||a.eachComponent({mainType:"series",subType:"pie"},(function(e){for(var t=e.seriesIndex,a=o.selected,l=0;l<a.length;l++)if(a[l].seriesIndex===t){var u=e.getData(),c=Object(i["t"])(u,o.fromActionPayload);n.trigger(s,{type:s,seriesId:e.id,name:Object(r["isArray"])(c)?u.getName(c[0]):u.getName(c),selected:Object(r["extend"])({},e.option.selectedMap)})}}))}function s(e,t,n){e.on("selectchanged",(function(e){var r=n.getModel();e.isFromClick?(o("map","selectchanged",t,r,e),o("pie","selectchanged",t,r,e)):"select"===e.fromAction?(o("map","selected",t,r,e),o("pie","selected",t,r,e)):"unselect"===e.fromAction&&(o("map","unselected",t,r,e),o("pie","unselected",t,r,e))}))}},czcW:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return u}));var r=n("WFeI"),i=n("xFFj");function a(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];if(!i.defaultAttr.ignore){var a=i.label,o=a.getComputedTransform(),s=a.getBoundingRect(),l=!o||o[1]<1e-5&&o[2]<1e-5,u=a.style.margin||0,c=s.clone();c.applyTransform(o),c.x-=u/2,c.y-=u/2,c.width+=u,c.height+=u;var h=l?new r["a"](s,o):null;t.push({label:a,labelLine:i.labelLine,rect:c,localRect:s,obb:h,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:l,transform:o})}}return t}function o(e,t,n,r,i,a){var o=e.length;if(!(o<2)){e.sort((function(e,n){return e.rect[t]-n.rect[t]}));for(var s,l=0,u=!1,c=[],h=0,d=0;d<o;d++){var f=e[d],p=f.rect;s=p[t]-l,s<0&&(p[t]-=s,f.label[t]-=s,u=!0);var g=Math.max(-s,0);c.push(g),h+=g,l=p[t]+p[n]}h>0&&a&&w(-h/o,0,o);var m,v,y=e[0],b=e[o-1];return _(),m<0&&S(-m,.8),v<0&&S(v,.8),_(),x(m,v,1),x(v,m,-1),_(),m<0&&T(-m),v<0&&T(v),u}function _(){m=y.rect[t]-r,v=i-b.rect[t]-b.rect[n]}function x(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){w(r*n,0,o);var i=r+e;i<0&&S(-i*n,1)}else S(-e*n,1)}}function w(n,r,i){0!==n&&(u=!0);for(var a=r;a<i;a++){var o=e[a],s=o.rect;s[t]+=n,o.label[t]+=n}}function S(r,i){for(var a=[],s=0,l=1;l<o;l++){var u=e[l-1].rect,c=Math.max(e[l].rect[t]-u[t]-u[n],0);a.push(c),s+=c}if(s){var h=Math.min(Math.abs(r)/s,i);if(r>0)for(l=0;l<o-1;l++){var d=a[l]*h;w(d,0,l+1)}else for(l=o-1;l>0;l--){d=a[l-1]*h;w(-d,l,o)}}}function T(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(o-1)),r=0;r<o-1;r++)if(t>0?w(n,0,r+1):w(-n,o-r-1,o),e-=n,e<=0)return}}function s(e,t,n,r){return o(e,"x","width",t,n,r)}function l(e,t,n,r){return o(e,"y","height",t,n,r)}function u(e){var t=[];e.sort((function(e,t){return t.priority-e.priority}));var n=new i["a"](0,0,0,0);function a(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var o=0;o<e.length;o++){var s=e[o],l=s.axisAligned,u=s.localRect,c=s.transform,h=s.label,d=s.labelLine;n.copy(s.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var f=s.obb,p=!1,g=0;g<t.length;g++){var m=t[g];if(n.intersect(m.rect)){if(l&&m.axisAligned){p=!0;break}if(m.obb||(m.obb=new r["a"](m.localRect,m.transform)),f||(f=new r["a"](u,c)),f.intersect(m.obb)){p=!0;break}}}p?(a(h),d&&a(d)):(h.attr("ignore",s.defaultAttr.ignore),d&&d.attr("ignore",s.defaultAttr.labelGuideIgnore),t.push(s))}}},d1dw:function(e,t,n){"use strict";var r=n("zb3V"),i=n("H4kQ"),a=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),o=function(e){function t(t){return e.call(this,t)||this}return Object(r["b"])(t,e),t.prototype.getDefaultShape=function(){return new a},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,a=t.rx,o=t.ry,s=a*n,l=o*n;e.moveTo(r-a,i),e.bezierCurveTo(r-a,i-l,r-s,i-o,r,i-o),e.bezierCurveTo(r+s,i-o,r+a,i-l,r+a,i),e.bezierCurveTo(r+a,i+l,r+s,i+o,r,i+o),e.bezierCurveTo(r-s,i+o,r-a,i+l,r-a,i),e.closePath()},t}(i["b"]);o.prototype.type="ellipse",t["a"]=o},d62z:function(e,t,n){"use strict";var r=n("HIsA"),i=n("pxmn"),a=n("dOdC"),o=n("4dbd"),s=n("2I03"),l=n("2hCa"),u=n("G70G"),c=n("kPvK"),h=n("HqdE"),d=n("/5yA"),f=h("slice"),p=d("slice",{ACCESSORS:!0,0:0,1:2}),g=c("species"),m=[].slice,v=Math.max;r({target:"Array",proto:!0,forced:!f||!p},{slice:function(e,t){var n,r,c,h=l(this),d=s(h.length),f=o(e,d),p=o(void 0===t?d:t,d);if(a(h)&&(n=h.constructor,"function"!=typeof n||n!==Array&&!a(n.prototype)?i(n)&&(n=n[g],null===n&&(n=void 0)):n=void 0,n===Array||void 0===n))return m.call(h,f,p);for(r=new(void 0===n?Array:n)(v(p-f,0)),c=0;f<p;f++,c++)f in h&&u(r,c,h[f]);return r.length=c,r}})},dMsU:function(e,t,n){var r=n("xUti");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},dOdC:function(e,t,n){var r=n("IRht");e.exports=Array.isArray||function(e){return"Array"==r(e)}},dWfN:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n("wxpZ"),i=n("cOEc"),a=n("a0Kb"),o=n("sKBc"),s=n("ljS3"),l=n("2h8N"),u=new r["a"],c=new i["a"](100),h=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function d(e,t){if("none"===e)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i="svg"===r.painter.type;e.dirty&&u["delete"](e);var d=u.get(e);if(d)return d;var y=Object(a["defaults"])(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===y.backgroundColor&&(y.backgroundColor=null);var b={repeat:"repeat"};return _(b),b.rotation=y.rotation,b.scaleX=b.scaleY=i?1:1/n,u.set(e,b),e.dirty=!1,b;function _(e){for(var t,u=[n],d=!0,b=0;b<h.length;++b){var _=y[h[b]],x=typeof _;if(null!=_&&!Object(a["isArray"])(_)&&"string"!==x&&"number"!==x&&"boolean"!==x){d=!1;break}u.push(_)}if(d){t=u.join(",")+(i?"-svg":"");var w=c.get(t);w&&(i?e.svgElement=w:e.image=w)}var S,T=p(y.dashArrayX),O=g(y.dashArrayY),M=f(y.symbol),E=m(T),A=v(O),C=!i&&Object(a["createCanvas"])(),I=i&&r.painter.createSVGElement("g"),D=L();function L(){for(var e=1,t=0,n=E.length;t<n;++t)e=Object(o["c"])(e,E[t]);var r=1;for(t=0,n=M.length;t<n;++t)r=Object(o["c"])(r,M[t].length);e*=r;var i=A*E.length*M.length;return{width:Math.max(1,Math.min(e,y.maxTileWidth)),height:Math.max(1,Math.min(i,y.maxTileHeight))}}function P(){S&&(S.clearRect(0,0,C.width,C.height),y.backgroundColor&&(S.fillStyle=y.backgroundColor,S.fillRect(0,0,C.width,C.height)));for(var e=0,t=0;t<O.length;++t)e+=O[t];if(!(e<=0)){var a=-A,o=0,u=0,c=0;while(a<D.height){if(o%2===0){var h=u/2%M.length,d=0,f=0,p=0;while(d<2*D.width){var g=0;for(t=0;t<T[c].length;++t)g+=T[c][t];if(g<=0)break;if(f%2===0){var m=.5*(1-y.symbolSize),v=d+T[c][f]*m,b=a+O[o]*m,_=T[c][f]*y.symbolSize,x=O[o]*y.symbolSize,w=p/2%M[h].length;E(v,b,_,x,M[h][w])}d+=T[c][f],++p,++f,f===T[c].length&&(f=0)}++c,c===T.length&&(c=0)}a+=O[o],++u,++o,o===O.length&&(o=0)}}function E(e,t,a,o,u){var c=i?1:n,h=Object(s["a"])(u,e*c,t*c,a*c,o*c,y.color,y.symbolKeepAspect);i?I.appendChild(r.painter.paintOne(h)):Object(l["b"])(S,h)}}C&&(C.width=D.width*n,C.height=D.height*n,S=C.getContext("2d")),P(),d&&c.put(t,C||I),e.image=C,e.svgElement=I,e.svgWidth=D.width,e.svgHeight=D.height}}function f(e){if(!e||0===e.length)return[["rect"]];if("string"===typeof e)return[[e]];for(var t=!0,n=0;n<e.length;++n)if("string"!==typeof e[n]){t=!1;break}if(t)return f([e]);var r=[];for(n=0;n<e.length;++n)"string"===typeof e[n]?r.push([e[n]]):r.push(e[n]);return r}function p(e){if(!e||0===e.length)return[[0,0]];if("number"===typeof e){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if("number"!==typeof e[r]){n=!1;break}if(n)return p([e]);var i=[];for(r=0;r<e.length;++r)if("number"===typeof e[r]){t=Math.ceil(e[r]);i.push([t,t])}else{t=Object(a["map"])(e[r],(function(e){return Math.ceil(e)}));t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function g(e){if(!e||"object"===typeof e&&0===e.length)return[0,0];if("number"===typeof e){var t=Math.ceil(e);return[t,t]}var n=Object(a["map"])(e,(function(e){return Math.ceil(e)}));return e.length%2?n.concat(n):n}function m(e){return Object(a["map"])(e,(function(e){return v(e)}))}function v(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2===1?2*t:t}},dXt2:function(e,t,n){"use strict";var r=n("Hiyu"),i=n("JY8B"),a=n("NVMI"),o=n("2I03"),s=n("2RC6").f;r&&!("lastIndex"in[])&&(s(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=a(this),t=o(e.length);return 0==t?0:t-1}}),i("lastIndex"))},dZOt:function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function s(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(a){return!1}}e.exports=s()?Object.assign:function(e,t){for(var n,s,l=o(e),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]),n)i.call(n,c)&&(l[c]=n[c]);if(r){s=r(n);for(var h=0;h<s.length;h++)a.call(n,s[h])&&(l[s[h]]=n[s[h]])}}return l}},"dao+":function(e,t,n){},dpzy:function(e,t,n){var r=n("T9r4");e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},dske:function(e,t,n){"use strict";e.exports=n("fIC7")},eD14:function(e,t,n){var r=n("kPvK"),i=r("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,"/./"[e](t)}catch(r){}}return!1}},eMAo:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("zb3V"),i=n("XVzY"),a=n("x5Va"),o=n("+rxo"),s=n("eN5g"),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return Object(r["b"])(t,e),t.prototype.init=function(t,n,r){e.prototype.init.call(this,t,n,r),this._sourceManager=new s["a"](this),Object(s["b"])(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),Object(s["b"])(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:o["a"]},t}(i["a"]),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return Object(r["b"])(t,e),t.type="dataset",t}(a["a"]);function c(e){e.registerComponentModel(l),e.registerComponentView(u)}},eN5g:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return u}));var r=n("a0Kb"),i=n("sKIF"),a=n("+rxo"),o=n("1Cya"),s=n("kRSx"),l=function(){function e(e){this._sourceList=[],this._upstreamSignList=[],this._versionSignBase=0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[])},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&this._createSource()},e.prototype._createSource=function(){this._setLocalSource([],[]);var e,t,n=this._sourceHost,o=this._getUpstreamSourceManagers(),s=!!o.length;if(c(n)){var l=n,u=void 0,h=void 0,d=void 0;if(s){var f=o[0];f.prepareSource(),d=f.getSource(),u=d.data,h=d.sourceFormat,t=[f._getVersionSign()]}else u=l.get("data",!0),h=Object(r["isTypedArray"])(u)?a["g"]:a["f"],t=[];var p=this._getSourceMetaRawOption(),g=d?d.metaRawOption:null,m=Object(r["retrieve2"])(p.seriesLayoutBy,g?g.seriesLayoutBy:null),v=Object(r["retrieve2"])(p.sourceHeader,g?g.sourceHeader:null),y=Object(r["retrieve2"])(p.dimensions,g?g.dimensions:null);e=[Object(i["b"])(u,{seriesLayoutBy:m,sourceHeader:v,dimensions:y},h,l.get("encode",!0))]}else{var b=n;if(s){var _=this._applyTransform(o);e=_.sourceList,t=_.upstreamSignList}else{var x=b.get("source",!0);e=[Object(i["b"])(x,this._getSourceMetaRawOption(),null,null)],t=[]}}this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n=this._sourceHost,a=n.get("transform",!0),o=n.get("fromTransformResult",!0);if(null!=o){var l="";1!==e.length&&h(l)}var u=[],c=[];return Object(r["each"])(e,(function(e){e.prepareSource();var t=e.getSource(o||0),n="";null==o||t||h(n),u.push(t),c.push(e._getVersionSign())})),a?t=Object(s["a"])(a,u,{datasetIndex:n.componentIndex}):null!=o&&(t=[Object(i["a"])(u[0])]),{sourceList:t,upstreamSignList:c}},e.prototype._isDirty=function(){var e=this._sourceList;if(!e.length)return!0;for(var t=this._getUpstreamSourceManagers(),n=0;n<t.length;n++){var r=t[n];if(r._isDirty()||this._upstreamSignList[n]!==r._getVersionSign())return!0}},e.prototype.getSource=function(e){return this._sourceList[e||0]},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(c(e)){var t=Object(o["f"])(e);return t?[t.getSourceManager()]:[]}return Object(r["map"])(Object(o["e"])(e),(function(e){return e.getSourceManager()}))},e.prototype._getSourceMetaRawOption=function(){var e,t,n,r=this._sourceHost;if(c(r))e=r.get("seriesLayoutBy",!0),t=r.get("sourceHeader",!0),n=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=r;e=i.get("seriesLayoutBy",!0),t=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:t,dimensions:n}},e}();function u(e){var t=e.option.transform;t&&Object(r["setAsPrimitive"])(e.option.transform)}function c(e){return"series"===e.mainType}function h(e){throw new Error(e)}},egoY:function(e,t,n){var r=n("4FMk");function i(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}e.exports=i},ekZt:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("a0Kb");function i(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(n,i,a){for(var o={},s=0;s<e.length;s++){var l=e[s][1];if(!(i&&r["indexOf"](i,l)>=0||a&&r["indexOf"](a,l)<0)){var u=n.getShallow(l,t);null!=u&&(o[e[s][0]]=u)}}return o}}},elbk:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"e",(function(){return f})),n.d(t,"d",(function(){return g})),n.d(t,"f",(function(){return v})),n.d(t,"c",(function(){return y})),n.d(t,"b",(function(){return b}));var r=n("a0Kb"),i=n("sKBc"),a=n("EzfI"),o=n("3qB0"),s="__ec_stack_",l=.5,u="undefined"!==typeof Float32Array?Float32Array:Array;function c(e){return e.get("stack")||s+e.seriesIndex}function h(e){return e.dim+e.index}function d(e){var t=[],n=e.axis,i="axis0";if("category"===n.type){for(var a=n.getBandWidth(),o=0;o<e.count;o++)t.push(r["defaults"]({bandWidth:a,axisKey:i,stackId:s+o},e));var l=m(t),u=[];for(o=0;o<e.count;o++){var c=l[i][s+o];c.offsetCenter=c.offset+c.width/2,u.push(c)}return u}}function f(e,t){var n=[];return t.eachSeriesByType(e,(function(e){_(e)&&!x(e)&&n.push(e)})),n}function p(e){var t={};r["each"](e,(function(e){var n=e.coordinateSystem,r=n.getBaseAxis();if("time"===r.type||"value"===r.type)for(var i=e.getData(),a=r.dim+"_"+r.index,o=i.mapDimension(r.dim),s=0,l=i.count();s<l;++s){var u=i.get(o,s);t[a]?t[a].push(u):t[a]=[u]}}));var n={};for(var i in t)if(t.hasOwnProperty(i)){var a=t[i];if(a){a.sort((function(e,t){return e-t}));for(var o=null,s=1;s<a.length;++s){var l=a[s]-a[s-1];l>0&&(o=null===o?l:Math.min(o,l))}n[i]=o}}return n}function g(e){var t=p(e),n=[];return r["each"](e,(function(e){var r,a=e.coordinateSystem,o=a.getBaseAxis(),s=o.getExtent();if("category"===o.type)r=o.getBandWidth();else if("value"===o.type||"time"===o.type){var l=o.dim+"_"+o.index,u=t[l],d=Math.abs(s[1]-s[0]),f=o.scale.getExtent(),p=Math.abs(f[1]-f[0]);r=u?d/p*u:d}else{var g=e.getData();r=Math.abs(s[1]-s[0])/g.count()}var m=Object(i["o"])(e.get("barWidth"),r),v=Object(i["o"])(e.get("barMaxWidth"),r),y=Object(i["o"])(e.get("barMinWidth")||1,r),b=e.get("barGap"),_=e.get("barCategoryGap");n.push({bandWidth:r,barWidth:m,barMaxWidth:v,barMinWidth:y,barGap:b,barCategoryGap:_,axisKey:h(o),stackId:c(e)})})),m(n)}function m(e){var t={};r["each"](e,(function(e,n){var r=e.axisKey,i=e.bandWidth,a=t[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},o=a.stacks;t[r]=a;var s=e.stackId;o[s]||a.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!o[s].width&&(o[s].width=l,l=Math.min(a.remainedWidth,l),a.remainedWidth-=l);var u=e.barMaxWidth;u&&(o[s].maxWidth=u);var c=e.barMinWidth;c&&(o[s].minWidth=c);var h=e.barGap;null!=h&&(a.gap=h);var d=e.barCategoryGap;null!=d&&(a.categoryGap=d)}));var n={};return r["each"](t,(function(e,t){n[t]={};var a=e.stacks,o=e.bandWidth,s=e.categoryGap;if(null==s){var l=r["keys"](a).length;s=Math.max(35-4*l,15)+"%"}var u=Object(i["o"])(s,o),c=Object(i["o"])(e.gap,1),h=e.remainedWidth,d=e.autoWidthCount,f=(h-u)/(d+(d-1)*c);f=Math.max(f,0),r["each"](a,(function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){r=e.width;t&&(r=Math.min(r,t)),n&&(r=Math.max(r,n)),e.width=r,h-=r+c*r,d--}else{var r=f;t&&t<r&&(r=Math.min(t,h)),n&&n>r&&(r=n),r!==f&&(e.width=r,h-=r+c*r,d--)}})),f=(h-u)/(d+(d-1)*c),f=Math.max(f,0);var p,g=0;r["each"](a,(function(e,t){e.width||(e.width=f),p=e,g+=e.width*(1+c)})),p&&(g-=p.width*c);var m=-g/2;r["each"](a,(function(e,r){n[t][r]=n[t][r]||{bandWidth:o,offset:m,width:e.width},m+=e.width*(1+c)}))})),n}function v(e,t,n){if(e&&t){var r=e[h(t)];return null!=r&&null!=n?r[c(n)]:r}}function y(e,t){var n=f(e,t),i=g(n),o={};r["each"](n,(function(e){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),s=c(e),l=i[h(r)][s],u=l.offset,d=l.width,f=n.getOtherAxis(r),p=e.get("barMinHeight")||0;o[s]=o[s]||[],t.setLayout({bandWidth:l.bandWidth,offset:u,size:d});for(var g=t.mapDimension(f.dim),m=t.mapDimension(r.dim),v=Object(a["c"])(t,g),y=f.isHorizontal(),b=w(r,f,v),_=0,x=t.count();_<x;_++){var S=t.get(g,_),T=t.get(m,_),O=S>=0?"p":"n",M=b;v&&(o[s][T]||(o[s][T]={p:b,n:b}),M=o[s][T][O]);var E=void 0,A=void 0,C=void 0,I=void 0;if(y){var D=n.dataToPoint([S,T]);E=M,A=D[1]+u,C=D[0]-b,I=d,Math.abs(C)<p&&(C=(C<0?-1:1)*p),isNaN(C)||v&&(o[s][T][O]+=C)}else{D=n.dataToPoint([T,S]);E=D[0]+u,A=M,C=d,I=D[1]-b,Math.abs(I)<p&&(I=(I<=0?-1:1)*p),isNaN(I)||v&&(o[s][T][O]+=I)}t.setItemLayout(_,{x:E,y:A,width:C,height:I})}}))}var b={seriesType:"bar",plan:Object(o["a"])(),reset:function(e){if(_(e)&&x(e)){var t=e.getData(),n=e.coordinateSystem,r=n.master.getRect(),i=n.getBaseAxis(),a=n.getOtherAxis(i),o=t.mapDimension(a.dim),s=t.mapDimension(i.dim),c=a.isHorizontal(),h=c?0:1,d=v(g([e]),i,e).width;return d>l||(d=l),{progress:function(e,t){var l,f=e.count,p=new u(2*f),g=new u(2*f),m=new u(f),v=[],y=[],b=0,_=0;while(null!=(l=e.next()))y[h]=t.get(o,l),y[1-h]=t.get(s,l),v=n.dataToPoint(y,null,v),g[b]=c?r.x+r.width:v[0],p[b++]=v[0],g[b]=c?v[1]:r.y+r.height,p[b++]=v[1],m[_++]=l;t.setLayout({largePoints:p,largeDataIndices:m,largeBackgroundPoints:g,barWidth:d,valueAxisStart:w(i,a,!1),backgroundStart:c?r.x:r.y,valueAxisHorizontal:c})}}}}};function _(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function x(e){return e.pipelineContext&&e.pipelineContext.large}function w(e,t,n){return t.toGlobalCoord(t.dataToCoord("log"===t.type?1:0))}},esEm:function(e,t,n){var r=n("2JD6"),i=n("J7X1");i(r.JSON,"JSON",!0)},eusP:function(e,t,n){var r=n("YXa4");e.exports=function(e,t){var n=r(e);if(n%t)throw RangeError("Wrong offset");return n}},fAam:function(e,t,n){var r=n("X/7a"),i=n("+S3R"),a=n("egoY"),o=n("vRjm");function s(e){return r(e)||i(e)||a(e)||o()}e.exports=s},fIC7:function(e,t,n){"use strict";var r,i,a,o,s;if("undefined"===typeof window||"function"!==typeof MessageChannel){var l=null,u=null,c=function e(){if(null!==l)try{var n=t.unstable_now();l(!0,n),l=null}catch(r){throw setTimeout(e,0),r}},h=Date.now();t.unstable_now=function(){return Date.now()-h},r=function(e){null!==l?setTimeout(r,0,e):(l=e,setTimeout(c,0))},i=function(e,t){u=setTimeout(e,t)},a=function(){clearTimeout(u)},o=function(){return!1},s=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,f=window.Date,p=window.setTimeout,g=window.clearTimeout;if("undefined"!==typeof console){var m=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!==typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"===typeof d&&"function"===typeof d.now)t.unstable_now=function(){return d.now()};else{var v=f.now();t.unstable_now=function(){return f.now()-v}}var y=!1,b=null,_=-1,x=5,w=0;o=function(){return t.unstable_now()>=w},s=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):x=0<e?Math.floor(1e3/e):5};var S=new MessageChannel,T=S.port2;S.port1.onmessage=function(){if(null!==b){var e=t.unstable_now();w=e+x;try{b(!0,e)?T.postMessage(null):(y=!1,b=null)}catch(n){throw T.postMessage(null),n}}else y=!1},r=function(e){b=e,y||(y=!0,T.postMessage(null))},i=function(e,n){_=p((function(){e(t.unstable_now())}),n)},a=function(){g(_),_=-1}}function O(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<A(i,t)))break e;e[r]=t,e[n]=i,n=r}}function M(e){return e=e[0],void 0===e?null:e}function E(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var a=2*(r+1)-1,o=e[a],s=a+1,l=e[s];if(void 0!==o&&0>A(o,n))void 0!==l&&0>A(l,o)?(e[r]=l,e[s]=n,r=s):(e[r]=o,e[a]=n,r=a);else{if(!(void 0!==l&&0>A(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function A(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var C=[],I=[],D=1,L=null,P=3,k=!1,R=!1,N=!1;function j(e){for(var t=M(I);null!==t;){if(null===t.callback)E(I);else{if(!(t.startTime<=e))break;E(I),t.sortIndex=t.expirationTime,O(C,t)}t=M(I)}}function F(e){if(N=!1,j(e),!R)if(null!==M(C))R=!0,r(z);else{var t=M(I);null!==t&&i(F,t.startTime-e)}}function z(e,n){R=!1,N&&(N=!1,a()),k=!0;var r=P;try{for(j(n),L=M(C);null!==L&&(!(L.expirationTime>n)||e&&!o());){var s=L.callback;if(null!==s){L.callback=null,P=L.priorityLevel;var l=s(L.expirationTime<=n);n=t.unstable_now(),"function"===typeof l?L.callback=l:L===M(C)&&E(C),j(n)}else E(C);L=M(C)}if(null!==L)var u=!0;else{var c=M(I);null!==c&&i(F,c.startTime-n),u=!1}return u}finally{L=null,P=r,k=!1}}function B(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var V=s;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){R||k||(R=!0,r(z))},t.unstable_getCurrentPriorityLevel=function(){return P},t.unstable_getFirstCallbackNode=function(){return M(C)},t.unstable_next=function(e){switch(P){case 1:case 2:case 3:var t=3;break;default:t=P}var n=P;P=t;try{return e()}finally{P=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=V,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=P;P=e;try{return t()}finally{P=n}},t.unstable_scheduleCallback=function(e,n,o){var s=t.unstable_now();if("object"===typeof o&&null!==o){var l=o.delay;l="number"===typeof l&&0<l?s+l:s,o="number"===typeof o.timeout?o.timeout:B(e)}else o=B(e),l=s;return o=l+o,e={id:D++,callback:n,priorityLevel:e,startTime:l,expirationTime:o,sortIndex:-1},l>s?(e.sortIndex=l,O(I,e),null===M(C)&&e===M(I)&&(N?a():N=!0,i(F,l-s))):(e.sortIndex=o,O(C,e),R||k||(R=!0,r(z))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();j(e);var n=M(C);return n!==L&&null!==L&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<L.expirationTime||o()},t.unstable_wrapCallback=function(e){var t=P;return function(){var n=P;P=t;try{return e.apply(this,arguments)}finally{P=n}}}},"fK+4":function(e,t,n){"use strict";function r(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}}r(),e.exports=n("ochL")},fbKl:function(e,t,n){var r=n("bShA"),i=n("fotI"),a=r("keys");e.exports=function(e){return a[e]||(a[e]=i(e))}},fmhB:function(e,t,n){"use strict";var r=n("45XY");function i(){var e=u(n("xwgP"));return i=function(){return e},e}function a(){var e=s(n("x2v5"));return a=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var o=s(n("xgte"));function s(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n["default"]=e,t&&t.set(e,n),n}function c(e,t){return g(e)||p(e,t)||d(e,t)||h()}function h(){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 d(e,t){if(e){if("string"===typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(n.push(o.value),t&&n.length===t)break}catch(l){i=!0,a=l}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw a}}return n}}function g(e){if(Array.isArray(e))return e}function m(e,t,n){return Object.entries(a()["default"][e]).reduce((function(e,i){var a=r(i,2),o=a[0],s=a[1];return e[o]=s.map((function(e){var r=Object.assign({},e);return Object.keys(e).forEach((function(e){if(/^description(\.|$)/.test(e)){var i=e.match(/^description\.?(.*)$/),a=c(i,2),o=a[1];o&&o!==t||!o&&!n?delete r[e]:r.description=r[e]}})),r})),e}),{})}var v=function(e){var t=(0,i().useContext)(o["default"]),n=t.locale,r=t.config.locales,a=!r.length||r[0].name===n,s=(0,i().useState)(m(e,n,a)),l=c(s,2),u=l[0],h=l[1];return(0,i().useEffect)((function(){h(m(e,n,a))}),[e,n,a]),u};t["default"]=v},fotI:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},fvmE:function(e,t,n){"use strict";function r(e){var t=new XMLHttpRequest;t.open("get",e.url),t.responseType=e.responseType||"text",e.onprogress&&(t.onprogress=function(t){if(t.lengthComputable){var n=t.loaded/t.total;e.onprogress(n,t.loaded,t.total)}else e.onprogress(null)}),t.onload=function(n){t.status>=400?e.onerror&&e.onerror():e.onload&&e.onload(t.response)},e.onerror&&(t.onerror=e.onerror),t.send(null)}t["a"]={get:r}},"g+uz":function(e,t,n){var r=n("HIsA"),i=n("VeQJ");r({target:"WeakMap",stat:!0},{of:i})},g7gH:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return o}));var r=Math.round;function i(e,t,n){if(t){var i=t.x1,a=t.x2,s=t.y1,l=t.y2;e.x1=i,e.x2=a,e.y1=s,e.y2=l;var u=n&&n.lineWidth;return u?(r(2*i)===r(2*a)&&(e.x1=e.x2=o(i,u,!0)),r(2*s)===r(2*l)&&(e.y1=e.y2=o(s,u,!0)),e):e}}function a(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,s=t.height;e.x=r,e.y=i,e.width=a,e.height=s;var l=n&&n.lineWidth;return l?(e.x=o(r,l,!0),e.y=o(i,l,!0),e.width=Math.max(o(r+a,l,!1)-e.x,0===a?0:1),e.height=Math.max(o(i+s,l,!1)-e.y,0===s?0:1),e):e}}function o(e,t,n){if(!t)return e;var i=r(2*e);return(i+r(t))%2===0?i/2:(i+(n?1:-1))/2}},g9E2:function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"g",(function(){return d})),n.d(t,"e",(function(){return p})),n.d(t,"b",(function(){return g})),n.d(t,"c",(function(){return m})),n.d(t,"f",(function(){return v})),n.d(t,"h",(function(){return y})),n.d(t,"d",(function(){return b}));var r,i,a=n("xFFj"),o=n("a0Kb"),s=n("cOEc"),l={},u="12px sans-serif";function c(e,t){return r||(r=Object(o["createCanvas"])().getContext("2d")),i!==t&&(i=r.font=t||u),r.measureText(e)}var h={measureText:c};function d(e,t){t=t||u;var n=l[t];n||(n=l[t]=new s["a"](500));var r=n.get(e);return null==r&&(r=h.measureText(e,t).width,n.put(e,r)),r}function f(e,t,n,r){var i=d(e,t),o=v(t),s=g(0,i,n),l=m(0,o,r),u=new a["a"](s,l,i,o);return u}function p(e,t,n,r){var i=((e||"")+"").split("\n"),o=i.length;if(1===o)return f(i[0],t,n,r);for(var s=new a["a"](0,0,0,0),l=0;l<i.length;l++){var u=f(i[l],t,n,r);0===l?s.copy(u):s.union(u)}return s}function g(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function m(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function v(e){return d("\u56fd",e)}function y(e,t){return"string"===typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function b(e,t,n){var r=t.position||"inside",i=null!=t.distance?t.distance:5,a=n.height,o=n.width,s=a/2,l=n.x,u=n.y,c="left",h="top";if(r instanceof Array)l+=y(r[0],n.width),u+=y(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+o,u+=s,h="middle";break;case"top":l+=o/2,u-=i,c="center",h="bottom";break;case"bottom":l+=o/2,u+=a+i,c="center";break;case"inside":l+=o/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=o-i,u+=s,c="right",h="middle";break;case"insideTop":l+=o/2,u+=i,c="center";break;case"insideBottom":l+=o/2,u+=a-i,c="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=a-i,h="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,c="right",h="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=h,e}},gDF8:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("LDy6");function i(e,t){if(null==e)return{};var n,i,a=Object(r["a"])(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},gI5n:function(e,t,n){"use strict";var r=n("zb3V"),i=n("sKBc"),a=n("90zU"),o=n("LD4z"),s=n("Rvel"),l=i["u"],u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return Object(r["b"])(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return s["a"](e,this._extent)},t.prototype.normalize=function(e){return s["d"](e,this._extent)},t.prototype.scale=function(e){return s["e"](e,this._extent)},t.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=s["b"](e)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,a=[];if(!t)return a;var o=1e4;n[0]<r[0]&&(e?a.push({value:l(r[0]-t,i)}):a.push({value:n[0]}));var s=r[0];while(s<=r[1]){if(a.push({value:s}),s=l(s+t,i),s===a[a.length-1].value)break;if(a.length>o)return[]}var u=a.length?a[a.length-1].value:r[1];return n[1]>u&&(e?a.push({value:l(u+t,i)}):a.push({value:n[1]})),a},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],r=this.getExtent(),i=1;i<t.length;i++){var a=t[i],o=t[i-1],s=0,u=[],c=a.value-o.value,h=c/e;while(s<e-1){var d=l(o.value+(s+1)*h);d>r[0]&&d<r[1]&&u.push(d),s++}n.push(u)}return n},t.prototype.getLabel=function(e,t){if(null==e)return"";var n=t&&t.precision;null==n?n=i["g"](e.value)||0:"auto"===n&&(n=this._intervalPrecision);var r=l(e.value,n,!0);return a["a"](r)},t.prototype.niceTicks=function(e,t,n){e=e||5;var r=this._extent,i=r[1]-r[0];if(isFinite(i)){i<0&&(i=-i,r.reverse());var a=s["c"](r,e,t,n);this._intervalPrecision=a.intervalPrecision,this._interval=a.interval,this._niceExtent=a.niceTickExtent}},t.prototype.niceExtent=function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var n=t[0];e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;var r=t[1]-t[0];isFinite(r)||(t[0]=0,t[1]=1),this.niceTicks(e.splitNumber,e.minInterval,e.maxInterval);var i=this._interval;e.fixMin||(t[0]=l(Math.floor(t[0]/i)*i)),e.fixMax||(t[1]=l(Math.ceil(t[1]/i)*i))},t.type="interval",t}(o["a"]);o["a"].registerClass(u),t["a"]=u},gS7u:function(e,t,n){"use strict";var r=n("HIsA"),i=n("Hiyu"),a=n("kI7s"),o=n("UPu9"),s=n("bWCM"),l=n("2RC6"),u=n("OLna"),c=n("Ji6T"),h=n("D8FR"),d=n("twJ5"),f=d.set,p=d.getterFor("AggregateError"),g=function(e,t){var n=this;if(!(n instanceof g))return new g(e,t);o&&(n=o(new Error(t),a(n)));var r=[];return c(e,r.push,r),i?f(n,{errors:r,type:"AggregateError"}):n.errors=r,void 0!==t&&h(n,"message",String(t)),n};g.prototype=s(Error.prototype,{constructor:u(5,g),message:u(5,""),name:u(5,"AggregateError")}),i&&l.f(g.prototype,"errors",{get:function(){return p(this).errors},configurable:!0}),r({global:!0},{AggregateError:g})},ghbW:function(e,t,n){"use strict";var r=n("HIsA"),i=n("2JD6"),a=n("6Nbm"),o=n("GUTS"),s=n("qDpf"),l=n("Ji6T"),u=n("xOST"),c=n("pxmn"),h=n("7+LC"),d=n("9HG5"),f=n("J7X1"),p=n("cGOV");e.exports=function(e,t,n){var g=-1!==e.indexOf("Map"),m=-1!==e.indexOf("Weak"),v=g?"set":"add",y=i[e],b=y&&y.prototype,_=y,x={},w=function(e){var t=b[e];o(b,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(m&&!c(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!c(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!c(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(a(e,"function"!=typeof y||!(m||b.forEach&&!h((function(){(new y).entries().next()})))))_=n.getConstructor(t,e,g,v),s.REQUIRED=!0;else if(a(e,!0)){var S=new _,T=S[v](m?{}:-0,1)!=S,O=h((function(){S.has(1)})),M=d((function(e){new y(e)})),E=!m&&h((function(){var e=new y,t=5;while(t--)e[v](t,t);return!e.has(-0)}));M||(_=t((function(t,n){u(t,_,e);var r=p(new y,t,_);return void 0!=n&&l(n,r[v],r,g),r})),_.prototype=b,b.constructor=_),(O||E)&&(w("delete"),w("has"),g&&w("get")),(E||T)&&w(v),m&&b.clear&&delete b.clear}return x[e]=_,r({global:!0,forced:_!=y},x),f(_,e),m||n.setStrong(_,e,g),_}},gla0:function(e,t,n){var r=n("JqKL");r("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},h6PP:function(e,t,n){var r=n("HIsA"),i=180/Math.PI;r({target:"Math",stat:!0},{degrees:function(e){return e*i}})},hIhI:function(e,t,n){"use strict";var r=n("HIsA"),i=n("wQ+q").start,a=n("8iHL"),o=a("trimStart"),s=o?function(){return i(this)}:"".trimStart;r({target:"String",proto:!0,forced:o},{trimStart:s,trimLeft:s})},hLNC:function(e,t,n){var r=n("2JD6"),i=n("wQ+q").trim,a=n("/Izz"),o=r.parseFloat,s=1/o(a+"-0")!==-1/0;e.exports=s?function(e){var t=i(String(e)),n=o(t);return 0===n&&"-"==t.charAt(0)?-0:n}:o},hLzx:function(e,t,n){"use strict";var r=n("HIsA"),i=n("Xf1w").every,a=n("1+Eb"),o=n("/5yA"),s=a("every"),l=o("every");r({target:"Array",proto:!0,forced:!s||!l},{every:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},hQli:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeSensor=t.getSensor=void 0;var r=o(n("NNdr")),i=n("A2sQ"),a=n("MPYE");function o(e){return e&&e.__esModule?e:{default:e}}var s={},l=function(e){var t=e.getAttribute(a.SizeSensorId);if(t&&s[t])return s[t];var n=(0,r["default"])();e.setAttribute(a.SizeSensorId,n);var o=(0,i.createSensor)(e);return s[n]=o,o};t.getSensor=l;var u=function(e){var t=e.element.getAttribute(a.SizeSensorId);e.element.removeAttribute(a.SizeSensorId),e.destroy(),t&&s[t]&&delete s[t]};t.removeSensor=u},hXyk:function(e,t,n){var r=n("pxmn");e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},horb:function(e,t,n){"use strict";var r=n("HIsA"),i=n("O4tt"),a=n("NVMI"),o=n("2I03"),s=n("DDwO"),l=n("HKEF");r({target:"Array",proto:!0},{flatMap:function(e){var t,n=a(this),r=o(n.length);return s(e),t=l(n,0),t.length=i(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},"hv/N":function(e,t,n){var r=n("JY8B");r("flatMap")},iKoX:function(e,t,n){"use strict";var r=n("HIsA"),i=n("m52V"),a=n("hXyk"),o=n("DDwO"),s=n("wKMT"),l=n("Ji6T");r({target:"Set",proto:!0,real:!0,forced:i},{reduce:function(e){var t=a(this),n=s(t),r=arguments.length<2,i=r?void 0:arguments[1];if(o(e),l(n,(function(n){r?(r=!1,i=n):i=e(i,n,n,t)}),void 0,!1,!0),r)throw TypeError("Reduce of empty set with no initial value");return i}})},iPOA:function(e,t,n){"use strict";n.r(t);var r=n("xwgP"),i=n.n(r),a=n("kvV8"),o=n("lBQG"),s=i.a.memo(n("Rsk4").default["theme-demo"].component);t["default"]=function(){return i.a.createElement(i.a.Fragment,null,i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"markdown"},i.a.createElement("h2",{id:"theme"},i.a.createElement(a["AnchorLink"],{to:"#theme","aria-hidden":"true",tabIndex:-1},i.a.createElement("span",{className:["icon","icon-link"]})),"Theme")),i.a.createElement(o["default"],n("Rsk4").default["theme-demo"].previewerProps,i.a.createElement(s,null))))}},iY6v:function(e,t,n){"use strict";var r=n("HIsA"),i=n("iYBb").start,a=n("c8OV");r({target:"String",proto:!0,forced:a},{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},iYBb:function(e,t,n){var r=n("2I03"),i=n("x+a2"),a=n("JzK+"),o=Math.ceil,s=function(e){return function(t,n,s){var l,u,c=String(a(t)),h=c.length,d=void 0===s?" ":String(s),f=r(n);return f<=h||""==d?c:(l=f-h,u=i.call(d,o(l/d.length)),u.length>l&&(u=u.slice(0,l)),e?c+u:u+c)}};e.exports={start:s(!1),end:s(!0)}},icJ8:function(e,t,n){var r=n("G4R5"),i=n("stff"),a=n("bShA"),o=a("metadata"),s=o.store||(o.store=new i),l=function(e,t,n){var i=s.get(e);if(!i){if(!n)return;s.set(e,i=new r)}var a=i.get(t);if(!a){if(!n)return;i.set(t,a=new r)}return a},u=function(e,t,n){var r=l(t,n,!1);return void 0!==r&&r.has(e)},c=function(e,t,n){var r=l(t,n,!1);return void 0===r?void 0:r.get(e)},h=function(e,t,n,r){l(n,r,!0).set(e,t)},d=function(e,t){var n=l(e,t,!1),r=[];return n&&n.forEach((function(e,t){r.push(t)})),r},f=function(e){return void 0===e||"symbol"==typeof e?e:String(e)};e.exports={store:s,getMap:l,has:u,get:c,set:h,keys:d,toKey:f}},iczh:function(e,t,n){var r,i;(function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var o=a.apply(null,r);o&&e.push(o)}else if("object"===i)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(a["default"]=a,e.exports=a):(r=[],i=function(){return a}.apply(t,r),void 0===i||(e.exports=i))})()},idQS:function(e,t,n){var r=n("bVFb");r("toStringTag")},ihzt:function(e,t,n){var r=n("pxmn"),i=n("IRht"),a=n("kPvK"),o=a("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},ij3K:function(e,t,n){"use strict";n.r(t);var r=n("xwgP"),i=n.n(r),a=n("kvV8"),o=n("lBQG"),s=i.a.memo(n("Rsk4").default["loading-demo"].component);t["default"]=function(){return i.a.createElement(i.a.Fragment,null,i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"markdown"},i.a.createElement("h2",{id:"loading"},i.a.createElement(a["AnchorLink"],{to:"#loading","aria-hidden":"true",tabIndex:-1},i.a.createElement("span",{className:["icon","icon-link"]})),"Loading")),i.a.createElement(o["default"],n("Rsk4").default["loading-demo"].previewerProps,i.a.createElement(s,null))))}},iqln:function(e,t,n){var r=n("HIsA"),i=n("q0Qw"),a=n("bXon"),o=n("bWCM"),s=function(){var e=a("Object","freeze");return e?e(o(null)):o(null)};r({global:!0},{compositeKey:function(){return i.apply(Object,arguments).get("object",s)}})},jAXh:function(e,t,n){"use strict";var r=n("HIsA"),i=n("m52V"),a=n("hXyk"),o=n("40mc"),s=n("YjHi"),l=n("Ji6T");r({target:"Map",proto:!0,real:!0,forced:i},{findKey:function(e){var t=a(this),n=s(t),r=o(e,arguments.length>1?arguments[1]:void 0,3);return l(n,(function(e,n){if(r(n,e,t))return l.stop(e)}),void 0,!0,!0).result}})},jDiR:function(e,t,n){"use strict";function r(){var e=a(n("xwgP"));return r=function(){return e},e}function i(){var e=a(n("Rsk4"));return i=function(){return e},e}function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var u=function(e){var t=[],a=e.match.params.uuid,o=void 0===e.location.query.wrapper,l=i()["default"][a];if(l){var u=s(s({},l.previewerProps),{},{hideActions:(l.previewerProps.hideActions||[]).concat(["EXTERNAL"])});void 0!==e.location.query.capture&&(u.motions=(u.motions||[]).slice(),u.motions.unshift("autoplay"),u.motions.every((function(e){return!e.startsWith("capture")}))&&u.motions.push("capture:[id|=root]")),t=o?[r()["default"].createElement((function(){return n("kvV8").useMotions(u.motions||[],document),r()["default"].createElement("div",{},r()["default"].createElement(l.component))}))]:[u,r()["default"].createElement(l.component)]}return t};t["default"]=u},jUTB:function(e,t,n){var r=n("bXon"),i=n("szjD"),a=n("CmBG"),o=n("hXyk");e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(o(e)),n=a.f;return n?t.concat(n(e)):t}},jXsC:function(e,t,n){"use strict";var r=n("2hCa"),i=n("PaPB"),a=n("2I03"),o=n("1+Eb"),s=n("/5yA"),l=Math.min,u=[].lastIndexOf,c=!!u&&1/[1].lastIndexOf(1,-0)<0,h=o("lastIndexOf"),d=s("indexOf",{ACCESSORS:!0,1:0}),f=c||!h||!d;e.exports=f?function(e){if(c)return u.apply(this,arguments)||0;var t=r(this),n=a(t.length),o=n-1;for(arguments.length>1&&(o=l(o,i(arguments[1]))),o<0&&(o=n+o);o>=0;o--)if(o in t&&t[o]===e)return o||0;return-1}:u},jd72:function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},jiNi:function(e,t,n){var r=n("HIsA"),i=n("q0Qw"),a=n("bXon");r({global:!0},{compositeSymbol:function(){return 1===arguments.length&&"string"===typeof arguments[0]?a("Symbol")["for"](arguments[0]):i.apply(null,arguments).get("symbol",a("Symbol"))}})},jnx3:function(e,t,n){"use strict";n.r(t);var r=n("xwgP"),i=n.n(r),a=n("kvV8"),o=n("lBQG"),s=i.a.memo(n("Rsk4").default["api-demo"].component);t["default"]=function(){return i.a.createElement(i.a.Fragment,null,i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"markdown"},i.a.createElement("h2",{id:"echarts-api"},i.a.createElement(a["AnchorLink"],{to:"#echarts-api","aria-hidden":"true",tabIndex:-1},i.a.createElement("span",{className:["icon","icon-link"]})),"ECharts API")),i.a.createElement(o["default"],n("Rsk4").default["api-demo"].previewerProps,i.a.createElement(s,null))))}},jthf:function(e,t,n){"use strict";function r(){var e=a(n("xwgP"));return r=function(){return e},e}function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function a(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n["default"]=e,t&&t.set(e,n),n}function o(e,t){return h(e)||c(e,t)||l(e,t)||s()}function s(){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 l(e,t){if(e){if("string"===typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(n.push(o.value),t&&n.length===t)break}catch(l){i=!0,a=l}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw a}}return n}}function h(e){if(Array.isArray(e))return e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var d=function(e,t){var n=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r={};return Object.keys(t[1]).forEach((function(e){var n=(e.match(/^(.+)\.([^_]+)$/)||[]).slice(1),i=o(n,2),a=i[0],s=i[1];s&&s!==t[0]||(r[a||e]=t[1][e])})),r},i=(0,r().useState)(n(e,t)),a=o(i,2),s=a[0],l=a[1];return(0,r().useEffect)((function(){l(n(e,t))}),[e,t]),s};t["default"]=d},jwv5:function(e,t,n){"use strict";var r=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),i=function(){function e(){this.browser=new r,this.node=!1,this.wxa=!1,this.worker=!1,this.canvasSupported=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1}return e}(),a=new i;function o(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(".")[0]>18),o&&(n.weChat=!0),t.canvasSupported=!!document.createElement("canvas").getContext,t.svgSupported="undefined"!==typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="undefined"!==typeof document}"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(a.wxa=!0,a.canvasSupported=!0,a.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?(a.worker=!0,a.canvasSupported=!0):"undefined"===typeof navigator?(a.node=!0,a.canvasSupported=!0,a.svgSupported=!0):o(navigator.userAgent,a),t["a"]=a},kI7s:function(e,t,n){var r=n("+qhb"),i=n("NVMI"),a=n("fbKl"),o=n("7saB"),s=a("IE_PROTO"),l=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=i(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},kJzX:function(e,t,n){"use strict";n.d(t,"e",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return l}));var r=1;"undefined"!==typeof window&&(r=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var i=r,a=.4,o="#333",s="#ccc",l="#eee"},kKrw:function(e,t,n){"use strict";var r=n("HIsA"),i=n("B6LR"),a=n("JzK+"),o=n("eD14");r({target:"String",proto:!0,forced:!o("includes")},{includes:function(e){return!!~String(a(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})},kPW5:function(e,t){function n(t){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},kPvK:function(e,t,n){var r=n("2JD6"),i=n("bShA"),a=n("+qhb"),o=n("fotI"),s=n("xUti"),l=n("dMsU"),u=i("wks"),c=r.Symbol,h=l?c:c&&c.withoutSetter||o;e.exports=function(e){return a(u,e)||(s&&a(c,e)?u[e]=c[e]:u[e]=h("Symbol."+e)),u[e]}},kRSx:function(e,t,n){"use strict";n.d(t,"b",(function(){return v})),n.d(t,"a",(function(){return y}));var r=n("+rxo"),i=n("b26b"),a=n("a0Kb"),o=n("CfRN"),s=n("IpVE"),l=n("b9e6"),u=n("sKIF"),c=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(e){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return Object(s["d"])(e,t)},e}();function h(e,t){var n=new c,i=e.data,s=n.sourceFormat=e.sourceFormat,u=e.startIndex,h="";e.seriesLayoutBy!==r["a"]&&Object(l["b"])(h);var m=[],v={},y=e.dimensionsDefine;if(y)Object(a["each"])(y,(function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};if(m.push(r),null!=n){var i="";Object(a["hasOwn"])(v,n)&&Object(l["b"])(i),v[n]=r}}));else for(var b=0;b<e.dimensionsDetectedCount;b++)m.push({index:b});var _=Object(o["c"])(s,r["a"]);t.__isBuiltIn&&(n.getRawDataItem=function(e){return _(i,u,m,e)},n.getRawData=Object(a["bind"])(d,null,e)),n.cloneRawData=Object(a["bind"])(f,null,e);var x=Object(o["b"])(s,r["a"]);n.count=Object(a["bind"])(x,null,i,u,m);var w=Object(o["d"])(s);n.retrieveValue=function(e,t){var n=_(i,u,m,e);return S(n,t)};var S=n.retrieveValueFromItem=function(e,t){if(null!=e){var n=m[t];return n?w(e,t,n.name):void 0}};return n.getDimensionInfo=Object(a["bind"])(p,null,m,v),n.cloneAllDimensionInfo=Object(a["bind"])(g,null,m),n}function d(e){var t=e.sourceFormat;if(!_(t)){var n="";0,Object(l["b"])(n)}return e.data}function f(e){var t=e.sourceFormat,n=e.data;if(!_(t)){var i="";0,Object(l["b"])(i)}if(t===r["c"]){for(var o=[],s=0,u=n.length;s<u;s++)o.push(n[s].slice());return o}if(t===r["e"]){for(o=[],s=0,u=n.length;s<u;s++)o.push(Object(a["extend"])({},n[s]));return o}}function p(e,t,n){if(null!=n)return"number"===typeof n||!isNaN(n)&&!Object(a["hasOwn"])(t,n)?e[n]:Object(a["hasOwn"])(t,n)?t[n]:void 0}function g(e){return Object(a["clone"])(e)}var m=Object(a["createHashMap"])();function v(e){e=Object(a["clone"])(e);var t=e.type,n="";t||Object(l["b"])(n);var r=t.split(":");2!==r.length&&Object(l["b"])(n);var i=!1;"echarts"===r[0]&&(t=r[1],i=!0),e.__isBuiltIn=i,m.set(t,e)}function y(e,t,n){var r=Object(i["r"])(e),a=r.length,o="";a||Object(l["b"])(o);for(var s=0,u=a;s<u;s++){var c=r[s];t=b(c,t,n,1===a?null:s),s!==u-1&&(t.length=Math.max(t.length,1))}return t}function b(e,t,n,o){var s="";t.length||Object(l["b"])(s),Object(a["isObject"])(e)||Object(l["b"])(s);var c=e.type,d=m.get(c);d||Object(l["b"])(s);var f=Object(a["map"])(t,(function(e){return h(e,d)})),p=Object(i["r"])(d.transform({upstream:f[0],upstreamList:f,config:Object(a["clone"])(e.config)}));return Object(a["map"])(p,(function(e,n){var i="";Object(a["isObject"])(e)||Object(l["b"])(i),e.data||Object(l["b"])(i);var o,s=Object(u["d"])(e.data);_(s)||Object(l["b"])(i);var c=t[0];if(c&&0===n&&!e.dimensions){var h=c.startIndex;h&&(e.data=c.data.slice(0,h).concat(e.data)),o={seriesLayoutBy:r["a"],sourceHeader:h,dimensions:c.metaRawOption.dimensions}}else o={seriesLayoutBy:r["a"],sourceHeader:0,dimensions:e.dimensions};return Object(u["b"])(e.data,o,null,null)}))}function _(e){return e===r["c"]||e===r["e"]}},kRmj:function(e,t,n){var r=n("JqKL");r("Uint16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},keKz:function(e,t,n){var r=n("2JD6");e.exports=r.Promise},kes9:function(e,t,n){var r=n("Oaiz"),i=Math.abs,a=Math.pow,o=a(2,-52),s=a(2,-23),l=a(2,127)*(2-s),u=a(2,-126),c=function(e){return e+1/o-1/o};e.exports=Math.fround||function(e){var t,n,a=i(e),h=r(e);return a<u?h*c(a/u/s)*u*s:(t=(1+s/o)*a,n=t-(t-a),n>l||n!=n?h*(1/0):h*n)}},kh0G:function(e,t,n){"use strict";var r=n("HIsA"),i=n("m52V"),a=n("hXyk"),o=n("40mc"),s=n("wKMT"),l=n("Ji6T");r({target:"Set",proto:!0,real:!0,forced:i},{find:function(e){var t=a(this),n=s(t),r=o(e,arguments.length>1?arguments[1]:void 0,3);return l(n,(function(e){if(r(e,e,t))return l.stop(e)}),void 0,!1,!0).result}})},knnx:function(e,t,n){"use strict";var r=n("HIsA"),i=n("iYBb").end,a=n("c8OV");r({target:"String",proto:!0,forced:a},{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},kvGf:function(e,t,n){"use strict";var r=n("VpdQ"),i=n("T3M/"),a=r["identity"],o=5e-5;function s(e){return e>o||e<-o}var l=[],u=[],c=r["create"](),h=Math.abs,d=function(){function e(){}return e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return s(this.rotation)||s(this.x)||s(this.y)||s(this.scaleX-1)||s(this.scaleY-1)},e.prototype.updateTransform=function(){var e=this.parent,t=e&&e.transform,n=this.needLocalTransform(),i=this.transform;n||t?(i=i||r["create"](),n?this.getLocalTransform(i):a(i),t&&(n?r["mul"](i,e.transform,i):r["copy"](i,e.transform)),this.transform=i,this._resolveGlobalScaleRatio(i)):i&&a(i)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(l);var n=l[0]<0?-1:1,i=l[1]<0?-1:1,a=((l[0]-n)*t+n)/l[0]||0,o=((l[1]-i)*t+i)/l[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||r["create"](),r["invert"](this.invTransform,e)},e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.getComputedTransform=function(){var e=this,t=[];while(e)t.push(e),e=e.parent;while(e=t.pop())e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3];s(t-1)&&(t=Math.sqrt(t)),s(n-1)&&(n=Math.sqrt(n)),e[0]<0&&(t=-t),e[3]<0&&(n=-n),this.rotation=Math.atan2(-e[1]/n,e[0]/t),t<0&&n<0&&(this.rotation+=Math.PI,t=-t,n=-n),this.x=e[4],this.y=e[5],this.scaleX=t,this.scaleY=n}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(r["mul"](u,e.invTransform,t),t=u);var n=this.originX,i=this.originY;(n||i)&&(c[4]=n,c[5]=i,r["mul"](u,t,c),u[4]-=n,u[5]-=i,t=u),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&i["applyTransform"](n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&i["applyTransform"](n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&h(e[0]-1)>1e-10&&h(e[3]-1)>1e-10?Math.sqrt(h(e[0]*e[3]-e[2]*e[1])):1},e.getLocalTransform=function(e,t){t=t||[],a(t);var n=e.originX||0,i=e.originY||0,o=e.scaleX,s=e.scaleY,l=e.rotation||0,u=e.x,c=e.y;return t[4]-=n,t[5]-=i,t[0]*=o,t[1]*=s,t[2]*=o,t[3]*=s,t[4]*=o,t[5]*=s,l&&r["rotate"](t,t,l),t[4]+=n,t[5]+=i,t[4]+=u,t[5]+=c,t},e.initDefaultProps=function(){var t=e.prototype;t.x=0,t.y=0,t.scaleX=1,t.scaleY=1,t.originX=0,t.originY=0,t.rotation=0,t.globalScaleRatio=1}(),e}();t["a"]=d},kvV8:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"context",{enumerable:!0,get:function(){return r["default"]}}),Object.defineProperty(t,"Link",{enumerable:!0,get:function(){return i["default"]}}),Object.defineProperty(t,"NavLink",{enumerable:!0,get:function(){return a["default"]}}),Object.defineProperty(t,"AnchorLink",{enumerable:!0,get:function(){return o["default"]}}),Object.defineProperty(t,"useSearch",{enumerable:!0,get:function(){return s["default"]}}),Object.defineProperty(t,"useCopy",{enumerable:!0,get:function(){return l["default"]}}),Object.defineProperty(t,"useRiddle",{enumerable:!0,get:function(){return u["default"]}}),Object.defineProperty(t,"useMotions",{enumerable:!0,get:function(){return c["default"]}}),Object.defineProperty(t,"useCodeSandbox",{enumerable:!0,get:function(){return h["default"]}}),Object.defineProperty(t,"useLocaleProps",{enumerable:!0,get:function(){return d["default"]}}),Object.defineProperty(t,"useDemoUrl",{enumerable:!0,get:function(){return f["default"]}}),Object.defineProperty(t,"useApiData",{enumerable:!0,get:function(){return p["default"]}}),Object.defineProperty(t,"useTSPlaygroundUrl",{enumerable:!0,get:function(){return g["default"]}});var r=m(n("xgte")),i=m(n("MMtT")),a=m(n("vAB1")),o=m(n("1PYm")),s=m(n("5D2R")),l=m(n("7/qK")),u=m(n("Pjiy")),c=m(n("FaOA")),h=m(n("TOff")),d=m(n("jthf")),f=m(n("BtfP")),p=m(n("fmhB")),g=m(n("PLZd"));function m(e){return e&&e.__esModule?e:{default:e}}},lBFn:function(e,t,n){"use strict";var r=n("HIsA"),i=n("afop"),a=n("JzK+"),o=n("twJ5"),s=n("9izy"),l=s.codeAt,u=s.charAt,c="String Iterator",h=o.set,d=o.getterFor(c),f=i((function(e){h(this,{type:c,string:e,index:0})}),"String",(function(){var e,t=d(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=u(n,r),t.index+=e.length,{value:{codePoint:l(e,0),position:r},done:!1})}));r({target:"String",proto:!0},{codePoints:function(){return new f(String(a(this)))}})},lBQG:function(e,t,n){"use strict";n.r(t);var r=n("ob7Q"),i=n("xwgP"),a=n.n(i),o=n("a1z2"),s=n("RtWR");function l(e){return l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}var u=n("gDF8"),c=n("Fano"),h=n("iczh"),d=n.n(h),f=n("2kiq");function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return a.a.Children.forEach(e,(function(e){(void 0!==e&&null!==e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(p(e)):Object(f["isFragment"])(e)&&e.props?n=n.concat(p(e.props.children,t)):n.push(e))})),n}var g=function(){var e=navigator.userAgent||navigator.vendor||window.opera;return!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e.substr(0,4)))};function m(e,t){var n=t||{},a=n.defaultValue,o=n.value,s=n.onChange,l=n.postState,u=i["useState"]((function(){return void 0!==o?o:void 0!==a?"function"===typeof a?a():a:"function"===typeof e?e():e})),c=Object(r["default"])(u,2),h=c[0],d=c[1],f=void 0!==o?o:h;function p(e){d(e),f!==e&&s&&s(e,f)}l&&(f=l(f));var g=i["useRef"](!0);return i["useEffect"]((function(){g.current?g.current=!1:void 0===o&&d(o)}),[o]),[f,p]}var v=n("lUyv");function y(e){if(Array.isArray(e))return Object(v["a"])(e)}function b(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}var _=n("D0A+");function x(){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 w(e){return y(e)||b(e)||Object(_["a"])(e)||x()}var S=function(e){return+setTimeout(e,16)},T=function(e){return clearTimeout(e)};function O(e){return S(e)}function M(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function A(e,t,n){return t&&E(e.prototype,t),n&&E(e,n),e}"undefined"!==typeof window&&"requestAnimationFrame"in window&&(S=function(e){return window.requestAnimationFrame(e)},T=function(e){return window.cancelAnimationFrame(e)}),O.cancel=T;var C=n("tNTM");function I(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Object(C["a"])(e,t)}function D(e){return D=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},D(e)}function L(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function P(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(e,t){return!t||"object"!==l(t)&&"function"!==typeof t?P(e):t}function R(e){var t=L();return function(){var n,r=D(e);if(t){var i=D(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return k(this,n)}}var N=n("fK+4"),j=n.n(N);function F(e){return e instanceof HTMLElement?e:j.a.findDOMNode(e)}var z={};function B(e,t){0}function V(e,t,n){t||z[n]||(e(!1,n),z[n]=!0)}function G(e,t){V(B,e,t)}var H=G;function U(e,t){"function"===typeof e?e(t):"object"===l(e)&&e&&"current"in e&&(e.current=t)}function W(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){U(t,e)}))}}function X(e){var t,n,r=Object(f["isMemo"])(e)?e.type.type:e.type;return!("function"===typeof r&&!(null===(t=r.prototype)||void 0===t?void 0:t.render))&&!("function"===typeof e&&!(null===(n=e.prototype)||void 0===n?void 0:n.render))}var Y=n("BlUI"),K="rc-observer-key",q=function(e){I(n,e);var t=R(n);function n(){var e;return M(this,n),e=t.apply(this,arguments),e.resizeObserver=null,e.childNode=null,e.currentElement=null,e.state={width:0,height:0,offsetHeight:0,offsetWidth:0},e.onResize=function(t){var n=e.props.onResize,r=t[0].target,i=r.getBoundingClientRect(),a=i.width,o=i.height,s=r.offsetWidth,l=r.offsetHeight,u=Math.floor(a),h=Math.floor(o);if(e.state.width!==u||e.state.height!==h||e.state.offsetWidth!==s||e.state.offsetHeight!==l){var d={width:u,height:h,offsetWidth:s,offsetHeight:l};e.setState(d),n&&Promise.resolve().then((function(){n(Object(c["a"])(Object(c["a"])({},d),{},{offsetWidth:s,offsetHeight:l}),r)}))}},e.setChildNode=function(t){e.childNode=t},e}return A(n,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var e=this.props.disabled;if(e)this.destroyObserver();else{var t=F(this.childNode||this),n=t!==this.currentElement;n&&(this.destroyObserver(),this.currentElement=t),!this.resizeObserver&&t&&(this.resizeObserver=new Y["a"](this.onResize),this.resizeObserver.observe(t))}}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var e=this.props.children,t=p(e);if(t.length>1)H(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(0===t.length)return H(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var n=t[0];if(i["isValidElement"](n)&&X(n)){var r=n.ref;t[0]=i["cloneElement"](n,{ref:W(r,this.setChildNode)})}return 1===t.length?t[0]:t.map((function(e,t){return!i["isValidElement"](e)||"key"in e&&null!==e.key?e:i["cloneElement"](e,{key:"".concat(K,"-").concat(t)})}))}}]),n}(i["Component"]);q.displayName="ResizeObserver";var Z=q;function $(e){var t=Object(i["useRef"])(),n=Object(i["useRef"])(!1);function r(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];n.current||(O.cancel(t.current),t.current=O((function(){e.apply(void 0,i)})))}return Object(i["useEffect"])((function(){return function(){n.current=!0,O.cancel(t.current)}}),[]),r}function Q(e){var t=Object(i["useRef"])([]),n=Object(i["useState"])({}),a=Object(r["default"])(n,2),o=a[1],s=Object(i["useRef"])("function"===typeof e?e():e),l=$((function(){var e=s.current;t.current.forEach((function(t){e=t(e)})),t.current=[],s.current=e,o({})}));function u(e){t.current.push(e),l()}return[s.current,u]}var J={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=J.F1&&t<=J.F12)return!1;switch(t){case J.ALT:case J.CAPS_LOCK:case J.CONTEXT_MENU:case J.CTRL:case J.DOWN:case J.END:case J.ESC:case J.HOME:case J.INSERT:case J.LEFT:case J.MAC_FF_META:case J.META:case J.NUMLOCK:case J.NUM_CENTER:case J.PAGE_DOWN:case J.PAGE_UP:case J.PAUSE:case J.PRINT_SCREEN:case J.RIGHT:case J.SHIFT:case J.UP:case J.WIN_KEY:case J.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=J.ZERO&&e<=J.NINE)return!0;if(e>=J.NUM_ZERO&&e<=J.NUM_MULTIPLY)return!0;if(e>=J.A&&e<=J.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case J.SPACE:case J.QUESTION_MARK:case J.NUM_PLUS:case J.NUM_MINUS:case J.NUM_PERIOD:case J.NUM_DIVISION:case J.SEMICOLON:case J.DASH:case J.EQUALS:case J.COMMA:case J.PERIOD:case J.SLASH:case J.APOSTROPHE:case J.SINGLE_QUOTE:case J.OPEN_SQUARE_BRACKET:case J.BACKSLASH:case J.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ee=J;function te(e,t){var n,r=e.prefixCls,a=e.id,o=e.active,l=e.rtl,u=e.tab,c=u.key,h=u.tab,f=u.disabled,p=u.closeIcon,g=e.tabBarGutter,m=e.tabPosition,v=e.closable,y=e.renderWrapper,b=e.removeAriaLabel,_=e.editable,x=e.onClick,w=e.onRemove,S=e.onFocus,T="".concat(r,"-tab");i["useEffect"]((function(){return w}),[]);var O={};"top"===m||"bottom"===m?O[l?"marginLeft":"marginRight"]=g:O.marginBottom=g;var M=_&&!1!==v&&!f;function E(e){f||x(e)}function A(e){e.preventDefault(),e.stopPropagation(),_.onEdit("remove",{key:c,event:e})}var C=i["createElement"]("div",{key:c,ref:t,className:d()(T,(n={},Object(s["a"])(n,"".concat(T,"-with-remove"),M),Object(s["a"])(n,"".concat(T,"-active"),o),Object(s["a"])(n,"".concat(T,"-disabled"),f),n)),style:O,onClick:E},i["createElement"]("div",{role:"tab","aria-selected":o,id:a&&"".concat(a,"-tab-").concat(c),className:"".concat(T,"-btn"),"aria-controls":a&&"".concat(a,"-panel-").concat(c),"aria-disabled":f,tabIndex:f?null:0,onClick:function(e){e.stopPropagation(),E(e)},onKeyDown:function(e){[ee.SPACE,ee.ENTER].includes(e.which)&&(e.preventDefault(),E(e))},onFocus:S},h),M&&i["createElement"]("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(T,"-remove"),onClick:function(e){e.stopPropagation(),A(e)}},p||_.removeIcon||"\xd7"));return y&&(C=y(C)),C}var ne=i["forwardRef"](te),re={width:0,height:0,left:0,top:0};function ie(e,t,n){return Object(i["useMemo"])((function(){for(var n,r=new Map,i=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||re,a=i.left+i.width,o=0;o<e.length;o+=1){var s,l=e[o].key,u=t.get(l);if(!u)u=t.get(null===(s=e[o-1])||void 0===s?void 0:s.key)||re;var h=r.get(l)||Object(c["a"])({},u);h.right=a-h.left-h.width,r.set(l,h)}return r}),[e.map((function(e){return e.key})).join("_"),t,n])}var ae={width:0,height:0,left:0,top:0,right:0};function oe(e,t,n,r,a){var o,s,l,u=a.tabs,c=a.tabPosition,h=a.rtl;["top","bottom"].includes(c)?(o="width",s=h?"right":"left",l=Math.abs(t.left)):(o="height",s="top",l=-t.top);var d=t[o],f=n[o],p=r[o],g=d;return f+p>d&&(g=d-p),Object(i["useMemo"])((function(){if(!u.length)return[0,0];for(var t=u.length,n=t,r=0;r<t;r+=1){var i=e.get(u[r].key)||ae;if(i[s]+i[o]>l+g){n=r-1;break}}for(var a=0,c=t-1;c>=0;c-=1){var h=e.get(u[c].key)||ae;if(h[s]<l){a=c+1;break}}return[a,n]}),[e,l,g,c,u.map((function(e){return e.key})).join("_"),h])}var se=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),le=i["createContext"](null),ue=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return se(t,e),t.prototype.render=function(){return i["createElement"](le.Provider,{value:this.props.store},this.props.children)},t}(i["Component"]),ce=n("8CG2"),he=n.n(ce),de=n("QIG3"),fe=n.n(de),pe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ge=function(){return ge=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ge.apply(this,arguments)};function me(e){return e.displayName||e.name||"Component"}var ve=function(){return{}};function ye(e,t){void 0===t&&(t={});var n=!!e,r=e||ve;return function(a){var o=function(t){function o(e,n){var i=t.call(this,e,n)||this;return i.unsubscribe=null,i.handleChange=function(){if(i.unsubscribe){var e=r(i.store.getState(),i.props);i.setState({subscribed:e})}},i.store=i.context,i.state={subscribed:r(i.store.getState(),e),store:i.store,props:e},i}return pe(o,t),o.getDerivedStateFromProps=function(t,n){return e&&2===e.length&&t!==n.props?{subscribed:r(n.store.getState(),t),props:t}:{props:t}},o.prototype.componentDidMount=function(){this.trySubscribe()},o.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},o.prototype.shouldComponentUpdate=function(e,t){return!he()(this.props,e)||!he()(this.state.subscribed,t.subscribed)},o.prototype.trySubscribe=function(){n&&(this.unsubscribe=this.store.subscribe(this.handleChange),this.handleChange())},o.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},o.prototype.render=function(){var e=ge(ge(ge({},this.props),this.state.subscribed),{store:this.store});return i["createElement"](a,ge({},e,{ref:this.props.miniStoreForwardedRef}))},o.displayName="Connect("+me(a)+")",o.contextType=le,o}(i["Component"]);if(t.forwardRef){var s=i["forwardRef"]((function(e,t){return i["createElement"](o,ge({},e,{miniStoreForwardedRef:t}))}));return fe()(s,a)}return fe()(o,a)}}var be=function(){return be=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},be.apply(this,arguments)};function _e(e){var t=e,n=[];function r(e){t=be(be({},t),e);for(var r=0;r<n.length;r++)n[r]()}function i(){return t}function a(e){return n.push(e),function(){var t=n.indexOf(e);n.splice(t,1)}}return{setState:r,getState:i,subscribe:a}}function xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function we(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(n),!0).forEach((function(t){Object(s["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Se(e,t){var n=we({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}function Te(){var e=[].slice.call(arguments,0);return 1===e.length?e[0]:function(){for(var t=0;t<e.length;t++)e[t]&&e[t].apply&&e[t].apply(this,arguments)}}var Oe=/iPhone/i,Me=/iPod/i,Ee=/iPad/i,Ae=/\bAndroid(?:.+)Mobile\b/i,Ce=/Android/i,Ie=/\bAndroid(?:.+)SD4930UR\b/i,De=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,Le=/Windows Phone/i,Pe=/\bWindows(?:.+)ARM\b/i,ke=/BlackBerry/i,Re=/BB10/i,Ne=/Opera Mini/i,je=/\b(CriOS|Chrome)(?:.+)Mobile/i,Fe=/Mobile(?:.+)Firefox\b/i;function ze(e,t){return e.test(t)}function Be(e){var t=e||("undefined"!==typeof navigator?navigator.userAgent:""),n=t.split("[FBAN");if("undefined"!==typeof n[1]){var i=n,a=Object(r["default"])(i,1);t=a[0]}if(n=t.split("Twitter"),"undefined"!==typeof n[1]){var o=n,s=Object(r["default"])(o,1);t=s[0]}var l={apple:{phone:ze(Oe,t)&&!ze(Le,t),ipod:ze(Me,t),tablet:!ze(Oe,t)&&ze(Ee,t)&&!ze(Le,t),device:(ze(Oe,t)||ze(Me,t)||ze(Ee,t))&&!ze(Le,t)},amazon:{phone:ze(Ie,t),tablet:!ze(Ie,t)&&ze(De,t),device:ze(Ie,t)||ze(De,t)},android:{phone:!ze(Le,t)&&ze(Ie,t)||!ze(Le,t)&&ze(Ae,t),tablet:!ze(Le,t)&&!ze(Ie,t)&&!ze(Ae,t)&&(ze(De,t)||ze(Ce,t)),device:!ze(Le,t)&&(ze(Ie,t)||ze(De,t)||ze(Ae,t)||ze(Ce,t))||ze(/\bokhttp\b/i,t)},windows:{phone:ze(Le,t),tablet:ze(Pe,t),device:ze(Le,t)||ze(Pe,t)},other:{blackberry:ze(ke,t),blackberry10:ze(Re,t),opera:ze(Ne,t),firefox:ze(Fe,t),chrome:ze(je,t),device:ze(ke,t)||ze(Re,t)||ze(Ne,t)||ze(Fe,t)||ze(je,t)},any:null,phone:null,tablet:null};return l.any=l.apple.device||l.android.device||l.windows.device||l.other.device,l.phone=l.apple.phone||l.android.phone||l.windows.phone,l.tablet=l.apple.tablet||l.android.tablet||l.windows.tablet,l}var Ve=Object(c["a"])(Object(c["a"])({},Be()),{},{isMobile:Be}),Ge=Ve;function He(){}function Ue(e,t,n){var r=t||"";return e.key||"".concat(r,"item_").concat(n)}function We(e){return"".concat(e,"-menu-")}function Xe(e,t){var n=-1;i["Children"].forEach(e,(function(e){n+=1,e&&e.type&&e.type.isMenuItemGroup?i["Children"].forEach(e.props.children,(function(e){n+=1,t(e,n)})):t(e,n)}))}function Ye(e,t,n){e&&!n.find&&i["Children"].forEach(e,(function(e){if(e){var r=e.type;if(!r||!(r.isSubMenu||r.isMenuItem||r.isMenuItemGroup))return;-1!==t.indexOf(e.key)?n.find=!0:e.props.children&&Ye(e.props.children,t,n)}}))}var Ke=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],qe=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e&&"function"===typeof e.getBoundingClientRect&&e.getBoundingClientRect().width;if(n){if(t){var r=getComputedStyle(e),i=r.marginLeft,a=r.marginRight;n+=+i.replace("px","")+ +a.replace("px","")}n=+n.toFixed(6)}return n||0},Ze=function(e,t,n){e&&"object"===l(e.style)&&(e.style[t]=n)},$e=function(){return Ge.any};function Qe(e,t){return!!e&&e.contains(t)}function Je(e,t,n,r){var i=j.a.unstable_batchedUpdates?function(e){j.a.unstable_batchedUpdates(n,e)}:n;return e.addEventListener&&e.addEventListener(t,i,r),{remove:function(){e.removeEventListener&&e.removeEventListener(t,i)}}}function et(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}var tt=Object(i["forwardRef"])((function(e,t){var n=e.didUpdate,r=e.getContainer,a=e.children,o=Object(i["useRef"])();Object(i["useImperativeHandle"])(t,(function(){return{}}));var s=Object(i["useRef"])(!1);return!s.current&&et()&&(o.current=r(),s.current=!0),Object(i["useEffect"])((function(){null===n||void 0===n||n(e)})),Object(i["useEffect"])((function(){return function(){var e,t;null===(e=o.current)||void 0===e||null===(t=e.parentNode)||void 0===t||t.removeChild(o.current)}}),[]),o.current?j.a.createPortal(a,o.current):null})),nt=tt;function rt(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function it(e,t,n){var r=e[t]||{};return Object(c["a"])(Object(c["a"])({},r),n)}function at(e,t,n,r){for(var i=n.points,a=Object.keys(e),o=0;o<a.length;o+=1){var s=a[o];if(rt(e[s].points,i,r))return"".concat(t,"-placement-").concat(s)}return""}function ot(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function st(e,t){var n={animationend:ot("Animation","AnimationEnd"),transitionend:ot("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var lt=st(et(),"undefined"!==typeof window?window:{}),ut={};if(et()){var ct=document.createElement("div");ut=ct.style}var ht={};function dt(e){if(ht[e])return ht[e];var t=lt[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i<r;i+=1){var a=n[i];if(Object.prototype.hasOwnProperty.call(t,a)&&a in ut)return ht[e]=t[a],ht[e]}return""}var ft=dt("animationend"),pt=dt("transitionend"),gt=!(!ft||!pt),mt=ft||"animationend",vt=pt||"transitionend";function yt(e,t){if(!e)return null;if("object"===l(e)){var n=t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}));return e[n]}return"".concat(e,"-").concat(t)}var bt="none",_t="appear",xt="enter",wt="leave",St="none",Tt="prepare",Ot="start",Mt="active",Et="end";function At(e){var t=Object(i["useRef"])(!1),n=Object(i["useState"])(e),a=Object(r["default"])(n,2),o=a[0],s=a[1];function l(e){t.current||s(e)}return Object(i["useEffect"])((function(){return function(){t.current=!0}}),[]),[o,l]}var Ct=et()?i["useLayoutEffect"]:i["useEffect"],It=Ct,Dt=function(){var e=i["useRef"](null);function t(){O.cancel(e.current)}function n(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var a=O((function(){i<=1?r({isCanceled:function(){return a!==e.current}}):n(r,i-1)}));e.current=a}return i["useEffect"]((function(){return function(){t()}}),[]),[n,t]},Lt=[Tt,Ot,Mt,Et],Pt=!1,kt=!0;function Rt(e){return e===Mt||e===Et}var Nt=function(e,t){var n=i["useState"](St),a=Object(r["default"])(n,2),o=a[0],s=a[1],l=Dt(),u=Object(r["default"])(l,2),c=u[0],h=u[1];function d(){s(Tt)}return It((function(){if(o!==St&&o!==Et){var e=Lt.indexOf(o),n=Lt[e+1],r=t(o);r===Pt?s(n):c((function(e){function t(){e.isCanceled()||s(n)}!0===r?t():Promise.resolve(r).then(t)}))}}),[e,o]),i["useEffect"]((function(){return function(){h()}}),[]),[d,o]},jt=function(e){var t=Object(i["useRef"])(),n=Object(i["useRef"])(e);n.current=e;var r=i["useCallback"]((function(e){n.current(e)}),[]);function a(e){e&&(e.removeEventListener(vt,r),e.removeEventListener(mt,r))}function o(e){t.current&&t.current!==e&&a(t.current),e&&e!==t.current&&(e.addEventListener(vt,r),e.addEventListener(mt,r),t.current=e)}return i["useEffect"]((function(){return function(){a(t.current)}}),[]),[o,a]};function Ft(e,t,n,a){var o=a.motionEnter,l=void 0===o||o,u=a.motionAppear,h=void 0===u||u,d=a.motionLeave,f=void 0===d||d,p=a.motionDeadline,g=a.motionLeaveImmediately,m=a.onAppearPrepare,v=a.onEnterPrepare,y=a.onLeavePrepare,b=a.onAppearStart,_=a.onEnterStart,x=a.onLeaveStart,w=a.onAppearActive,S=a.onEnterActive,T=a.onLeaveActive,O=a.onAppearEnd,M=a.onEnterEnd,E=a.onLeaveEnd,A=a.onVisibleChanged,C=At(),I=Object(r["default"])(C,2),D=I[0],L=I[1],P=At(bt),k=Object(r["default"])(P,2),R=k[0],N=k[1],j=At(null),F=Object(r["default"])(j,2),z=F[0],B=F[1],V=Object(i["useRef"])(!1),G=Object(i["useRef"])(null),H=Object(i["useRef"])(!1),U=Object(i["useRef"])(null);function W(){var e=n();return e||U.current}var X=Object(i["useRef"])(!1);function Y(e){var t,n=W();e&&!e.deadline&&e.target!==n||(R===_t&&X.current?t=null===O||void 0===O?void 0:O(n,e):R===xt&&X.current?t=null===M||void 0===M?void 0:M(n,e):R===wt&&X.current&&(t=null===E||void 0===E?void 0:E(n,e)),!1===t||H.current||(N(bt),B(null)))}var K=jt(Y),q=Object(r["default"])(K,1),Z=q[0],$=i["useMemo"]((function(){var e,t,n;switch(R){case"appear":return e={},Object(s["a"])(e,Tt,m),Object(s["a"])(e,Ot,b),Object(s["a"])(e,Mt,w),e;case"enter":return t={},Object(s["a"])(t,Tt,v),Object(s["a"])(t,Ot,_),Object(s["a"])(t,Mt,S),t;case"leave":return n={},Object(s["a"])(n,Tt,y),Object(s["a"])(n,Ot,x),Object(s["a"])(n,Mt,T),n;default:return{}}}),[R]),Q=Nt(R,(function(e){if(e===Tt){var t=$[Tt];return t?t(W()):Pt}var n;te in $&&B((null===(n=$[te])||void 0===n?void 0:n.call($,W(),null))||null);return te===Mt&&(Z(W()),p>0&&(clearTimeout(G.current),G.current=setTimeout((function(){Y({deadline:!0})}),p))),kt})),J=Object(r["default"])(Q,2),ee=J[0],te=J[1],ne=Rt(te);X.current=ne,It((function(){if(L(t),e){var n,r=V.current;V.current=!0,!r&&t&&h&&(n=_t),r&&t&&l&&(n=xt),(r&&!t&&f||!r&&g&&!t&&f)&&(n=wt),n&&(N(n),ee())}}),[t]),Object(i["useEffect"])((function(){(R===_t&&!h||R===xt&&!l||R===wt&&!f)&&N(bt)}),[h,l,f]),Object(i["useEffect"])((function(){return function(){clearTimeout(G.current),H.current=!0}}),[]),Object(i["useEffect"])((function(){void 0!==D&&R===bt&&(null===A||void 0===A||A(D))}),[D,R]);var re=z;return $[Tt]&&te===Ot&&(re=Object(c["a"])({transition:"none"},re)),[R,te,re,null!==D&&void 0!==D?D:t]}var zt=function(e){I(n,e);var t=R(n);function n(){return M(this,n),t.apply(this,arguments)}return A(n,[{key:"render",value:function(){return this.props.children}}]),n}(i["Component"]),Bt=zt;function Vt(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===l(e)&&(t=e.transitionSupport);var a=i["forwardRef"]((function(e,t){var a=e.visible,o=void 0===a||a,l=e.removeOnLeave,u=void 0===l||l,h=e.forceRender,f=e.children,p=e.motionName,g=e.leavedClassName,m=e.eventProps,v=n(e),y=Object(i["useRef"])(),b=Object(i["useRef"])();function _(){try{return F(y.current||b.current)}catch(e){return null}}var x=Ft(v,o,_,e),w=Object(r["default"])(x,4),S=w[0],T=w[1],O=w[2],M=w[3],E=Object(i["useRef"])(t);E.current=t;var A,C=i["useCallback"]((function(e){y.current=e,U(E.current,e)}),[]),I=Object(c["a"])(Object(c["a"])({},m),{},{visible:o});if(f)if(S!==bt&&n(e)){var D,L;T===Tt?L="prepare":Rt(T)?L="active":T===Ot&&(L="start"),A=f(Object(c["a"])(Object(c["a"])({},I),{},{className:d()(yt(p,S),(D={},Object(s["a"])(D,yt(p,"".concat(S,"-").concat(L)),L),Object(s["a"])(D,p,"string"===typeof p),D)),style:O}),C)}else A=M?f(Object(c["a"])({},I),C):u?h?f(Object(c["a"])(Object(c["a"])({},I),{},{style:{display:"none"}}),C):null:f(Object(c["a"])(Object(c["a"])({},I),{},{className:g}),C);else A=null;return i["createElement"](Bt,{ref:b},A)}));return a.displayName="CSSMotion",a}var Gt=Vt(gt),Ht="add",Ut="keep",Wt="remove",Xt="removed";function Yt(e){var t;return t=e&&"object"===l(e)&&"key"in e?e:{key:e},Object(c["a"])(Object(c["a"])({},t),{},{key:String(t.key)})}function Kt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(Yt)}function qt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,i=t.length,a=Kt(e),o=Kt(t);a.forEach((function(e){for(var t=!1,a=r;a<i;a+=1){var s=o[a];if(s.key===e.key){r<a&&(n=n.concat(o.slice(r,a).map((function(e){return Object(c["a"])(Object(c["a"])({},e),{},{status:Ht})}))),r=a),n.push(Object(c["a"])(Object(c["a"])({},s),{},{status:Ut})),r+=1,t=!0;break}}t||n.push(Object(c["a"])(Object(c["a"])({},e),{},{status:Wt}))})),r<i&&(n=n.concat(o.slice(r).map((function(e){return Object(c["a"])(Object(c["a"])({},e),{},{status:Ht})}))));var s={};n.forEach((function(e){var t=e.key;s[t]=(s[t]||0)+1}));var l=Object.keys(s).filter((function(e){return s[e]>1}));return l.forEach((function(e){n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==Wt})),n.forEach((function(t){t.key===e&&(t.status=Ut)}))})),n}var Zt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function $t(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Gt,n=function(e){I(r,e);var n=R(r);function r(){var e;return M(this,r),e=n.apply(this,arguments),e.state={keyEntities:[]},e.removeKey=function(t){e.setState((function(e){var n=e.keyEntities;return{keyEntities:n.map((function(e){return e.key!==t?e:Object(c["a"])(Object(c["a"])({},e),{},{status:Xt})}))}}))},e}return A(r,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,r=this.props,a=r.component,o=r.children,s=r.onVisibleChanged,l=Object(u["a"])(r,["component","children","onVisibleChanged"]),c=a||i["Fragment"],h={};return Zt.forEach((function(e){h[e]=l[e],delete l[e]})),delete l.keys,i["createElement"](c,Object.assign({},l),n.map((function(n){var r=n.status,a=Object(u["a"])(n,["status"]),l=r===Ht||r===Ut;return i["createElement"](t,Object.assign({},h,{key:a.key,visible:l,eventProps:a,onVisibleChanged:function(t){null===s||void 0===s||s(t,{key:a.key}),t||e.removeKey(a.key)}}),o)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,i=Kt(n),a=qt(r,i);return{keyEntities:a.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==Xt||e.status!==Wt}))}}}]),r}(i["Component"]);return n.defaultProps={component:"div"},n}$t(gt);var Qt=Gt;function Jt(e){var t=e.prefixCls,n=e.motion,r=e.animation,i=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:i?{motionName:i}:null)}function en(e){var t=e.prefixCls,n=e.visible,r=e.zIndex,a=e.mask,o=e.maskMotion,s=e.maskAnimation,l=e.maskTransitionName;if(!a)return null;var u={};return(o||l||s)&&(u=Object(c["a"])({motionAppear:!0},Jt({motion:o,prefixCls:t,transitionName:l,animation:s}))),i["createElement"](Qt,Object.assign({},u,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return i["createElement"]("div",{style:{zIndex:r},className:d()("".concat(t,"-mask"),n)})}))}var tn,nn=function(e){if(!e)return!1;if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox();if(t.width||t.height)return!0}if(e.getBoundingClientRect){var n=e.getBoundingClientRect();if(n.width||n.height)return!0}return!1};function rn(e){return rn="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rn(e)}function an(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function on(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?on(n,!0).forEach((function(t){an(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):on(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ln={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function un(){if(void 0!==tn)return tn;tn="";var e=document.createElement("p").style,t="Transform";for(var n in ln)n+t in e&&(tn=n);return tn}function cn(){return un()?"".concat(un(),"TransitionProperty"):"transitionProperty"}function hn(){return un()?"".concat(un(),"Transform"):"transform"}function dn(e,t){var n=cn();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function fn(e,t){var n=hn();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}function pn(e){return e.style.transitionProperty||e.style[cn()]}function gn(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(hn());if(n&&"none"!==n){var r=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(r[12]||r[4],0),y:parseFloat(r[13]||r[5],0)}}return{x:0,y:0}}var mn=/matrix\((.*)\)/,vn=/matrix3d\((.*)\)/;function yn(e,t){var n=window.getComputedStyle(e,null),r=n.getPropertyValue("transform")||n.getPropertyValue(hn());if(r&&"none"!==r){var i,a=r.match(mn);if(a)a=a[1],i=a.split(",").map((function(e){return parseFloat(e,10)})),i[4]=t.x,i[5]=t.y,fn(e,"matrix(".concat(i.join(","),")"));else{var o=r.match(vn)[1];i=o.split(",").map((function(e){return parseFloat(e,10)})),i[12]=t.x,i[13]=t.y,fn(e,"matrix3d(".concat(i.join(","),")"))}}else fn(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}var bn,_n=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source;function xn(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function wn(e,t,n){var r=n;if("object"!==rn(t))return"undefined"!==typeof r?("number"===typeof r&&(r="".concat(r,"px")),void(e.style[t]=r)):bn(e,t);for(var i in t)t.hasOwnProperty(i)&&wn(e,i,t[i])}function Sn(e){var t,n,r,i=e.ownerDocument,a=i.body,o=i&&i.documentElement;return t=e.getBoundingClientRect(),n=t.left,r=t.top,n-=o.clientLeft||a.clientLeft||0,r-=o.clientTop||a.clientTop||0,{left:n,top:r}}function Tn(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!==typeof n){var i=e.document;n=i.documentElement[r],"number"!==typeof n&&(n=i.body[r])}return n}function On(e){return Tn(e)}function Mn(e){return Tn(e,!0)}function En(e){var t=Sn(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=On(r),t.top+=Mn(r),t}function An(e){return null!==e&&void 0!==e&&e==e.window}function Cn(e){return An(e)?e.document:9===e.nodeType?e:e.ownerDocument}function In(e,t,n){var r=n,i="",a=Cn(e);return r=r||a.defaultView.getComputedStyle(e,null),r&&(i=r.getPropertyValue(t)||r[t]),i}var Dn=new RegExp("^(".concat(_n,")(?!px)[a-z%]+$"),"i"),Ln=/^(top|right|bottom|left)$/,Pn="currentStyle",kn="runtimeStyle",Rn="left",Nn="px";function jn(e,t){var n=e[Pn]&&e[Pn][t];if(Dn.test(n)&&!Ln.test(t)){var r=e.style,i=r[Rn],a=e[kn][Rn];e[kn][Rn]=e[Pn][Rn],r[Rn]="fontSize"===t?"1em":n||0,n=r.pixelLeft+Nn,r[Rn]=i,e[kn][Rn]=a}return""===n?"auto":n}function Fn(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function zn(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function Bn(e,t,n){"static"===wn(e,"position")&&(e.style.position="relative");var r=-999,i=-999,a=Fn("left",n),o=Fn("top",n),s=zn(a),l=zn(o);"left"!==a&&(r=999),"top"!==o&&(i=999);var u="",c=En(e);("left"in t||"top"in t)&&(u=pn(e)||"",dn(e,"none")),"left"in t&&(e.style[s]="",e.style[a]="".concat(r,"px")),"top"in t&&(e.style[l]="",e.style[o]="".concat(i,"px")),xn(e);var h=En(e),d={};for(var f in t)if(t.hasOwnProperty(f)){var p=Fn(f,n),g="left"===f?r:i,m=c[f]-h[f];d[p]=p===f?g+m:g-m}wn(e,d),xn(e),("left"in t||"top"in t)&&dn(e,u);var v={};for(var y in t)if(t.hasOwnProperty(y)){var b=Fn(y,n),_=t[y]-c[y];v[b]=y===b?d[b]+_:d[b]-_}wn(e,v)}function Vn(e,t){var n=En(e),r=gn(e),i={x:r.x,y:r.y};"left"in t&&(i.x=r.x+t.left-n.left),"top"in t&&(i.y=r.y+t.top-n.top),yn(e,i)}function Gn(e,t,n){if(n.ignoreShake){var r=En(e),i=r.left.toFixed(0),a=r.top.toFixed(0),o=t.left.toFixed(0),s=t.top.toFixed(0);if(i===o&&a===s)return}n.useCssRight||n.useCssBottom?Bn(e,t,n):n.useCssTransform&&hn()in document.body.style?Vn(e,t):Bn(e,t,n)}function Hn(e,t){for(var n=0;n<e.length;n++)t(e[n])}function Un(e){return"border-box"===bn(e,"boxSizing")}"undefined"!==typeof window&&(bn=window.getComputedStyle?In:jn);var Wn=["margin","border","padding"],Xn=-1,Yn=2,Kn=1,qn=0;function Zn(e,t,n){var r,i={},a=e.style;for(r in t)t.hasOwnProperty(r)&&(i[r]=a[r],a[r]=t[r]);for(r in n.call(e),t)t.hasOwnProperty(r)&&(a[r]=i[r])}function $n(e,t,n){var r,i,a,o=0;for(i=0;i<t.length;i++)if(r=t[i],r)for(a=0;a<n.length;a++){var s=void 0;s="border"===r?"".concat(r).concat(n[a],"Width"):r+n[a],o+=parseFloat(bn(e,s))||0}return o}var Qn={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function Jn(e,t,n){var r=n;if(An(e))return"width"===t?Qn.viewportWidth(e):Qn.viewportHeight(e);if(9===e.nodeType)return"width"===t?Qn.docWidth(e):Qn.docHeight(e);var i="width"===t?["Left","Right"]:["Top","Bottom"],a="width"===t?e.getBoundingClientRect().width:e.getBoundingClientRect().height,o=(bn(e),Un(e)),s=0;(null===a||void 0===a||a<=0)&&(a=void 0,s=bn(e,t),(null===s||void 0===s||Number(s)<0)&&(s=e.style[t]||0),s=parseFloat(s)||0),void 0===r&&(r=o?Kn:Xn);var l=void 0!==a||o,u=a||s;return r===Xn?l?u-$n(e,["border","padding"],i):s:l?r===Kn?u:u+(r===Yn?-$n(e,["border"],i):$n(e,["margin"],i)):s+$n(e,Wn.slice(r),i)}Hn(["Width","Height"],(function(e){Qn["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],Qn["viewport".concat(e)](n))},Qn["viewport".concat(e)]=function(t){var n="client".concat(e),r=t.document,i=r.body,a=r.documentElement,o=a[n];return"CSS1Compat"===r.compatMode&&o||i&&i[n]||o}}));var er={position:"absolute",visibility:"hidden",display:"block"};function tr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=t[0];return 0!==i.offsetWidth?r=Jn.apply(void 0,t):Zn(i,er,(function(){r=Jn.apply(void 0,t)})),r}function nr(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}Hn(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);Qn["outer".concat(t)]=function(t,n){return t&&tr(t,e,n?qn:Kn)};var n="width"===e?["Left","Right"]:["Top","Bottom"];Qn[e]=function(t,r){var i=r;if(void 0===i)return t&&tr(t,e,Xn);if(t){bn(t);var a=Un(t);return a&&(i+=$n(t,["padding","border"],n)),wn(t,e,i)}}}));var rr={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:Cn,offset:function(e,t,n){if("undefined"===typeof t)return En(e);Gn(e,t,n||{})},isWindow:An,each:Hn,css:wn,clone:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);var r=e.overflow;if(r)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:nr,getWindowScrollLeft:function(e){return On(e)},getWindowScrollTop:function(e){return Mn(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)rr.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};nr(rr,Qn);var ir=rr.getParent;function ar(e){if(rr.isWindow(e)||9===e.nodeType)return null;var t,n=rr.getDocument(e),r=n.body,i=rr.css(e,"position"),a="fixed"===i||"absolute"===i;if(!a)return"html"===e.nodeName.toLowerCase()?null:ir(e);for(t=ir(e);t&&t!==r&&9!==t.nodeType;t=ir(t))if(i=rr.css(t,"position"),"static"!==i)return t;return null}var or=rr.getParent;function sr(e){if(rr.isWindow(e)||9===e.nodeType)return!1;var t=rr.getDocument(e),n=t.body,r=null;for(r=or(e);r&&r!==n;r=or(r)){var i=rr.css(r,"position");if("fixed"===i)return!0}return!1}function lr(e,t){var n={left:0,right:1/0,top:0,bottom:1/0},r=ar(e),i=rr.getDocument(e),a=i.defaultView||i.parentWindow,o=i.body,s=i.documentElement;while(r){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===r.clientWidth||r===o||r===s||"visible"===rr.css(r,"overflow")){if(r===o||r===s)break}else{var l=rr.offset(r);l.left+=r.clientLeft,l.top+=r.clientTop,n.top=Math.max(n.top,l.top),n.right=Math.min(n.right,l.left+r.clientWidth),n.bottom=Math.min(n.bottom,l.top+r.clientHeight),n.left=Math.max(n.left,l.left)}r=ar(r)}var u=null;if(!rr.isWindow(e)&&9!==e.nodeType){u=e.style.position;var c=rr.css(e,"position");"absolute"===c&&(e.style.position="fixed")}var h=rr.getWindowScrollLeft(a),d=rr.getWindowScrollTop(a),f=rr.viewportWidth(a),p=rr.viewportHeight(a),g=s.scrollWidth,m=s.scrollHeight,v=window.getComputedStyle(o);if("hidden"===v.overflowX&&(g=a.innerWidth),"hidden"===v.overflowY&&(m=a.innerHeight),e.style&&(e.style.position=u),t||sr(e))n.left=Math.max(n.left,h),n.top=Math.max(n.top,d),n.right=Math.min(n.right,h+f),n.bottom=Math.min(n.bottom,d+p);else{var y=Math.max(g,h+f);n.right=Math.min(n.right,y);var b=Math.max(m,d+p);n.bottom=Math.min(n.bottom,b)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function ur(e,t,n,r){var i=rr.clone(e),a={width:t.width,height:t.height};return r.adjustX&&i.left<n.left&&(i.left=n.left),r.resizeWidth&&i.left>=n.left&&i.left+a.width>n.right&&(a.width-=i.left+a.width-n.right),r.adjustX&&i.left+a.width>n.right&&(i.left=Math.max(n.right-a.width,n.left)),r.adjustY&&i.top<n.top&&(i.top=n.top),r.resizeHeight&&i.top>=n.top&&i.top+a.height>n.bottom&&(a.height-=i.top+a.height-n.bottom),r.adjustY&&i.top+a.height>n.bottom&&(i.top=Math.max(n.bottom-a.height,n.top)),rr.mix(i,a)}function cr(e){var t,n,r;if(rr.isWindow(e)||9===e.nodeType){var i=rr.getWindow(e);t={left:rr.getWindowScrollLeft(i),top:rr.getWindowScrollTop(i)},n=rr.viewportWidth(i),r=rr.viewportHeight(i)}else t=rr.offset(e),n=rr.outerWidth(e),r=rr.outerHeight(e);return t.width=n,t.height=r,t}function hr(e,t){var n=t.charAt(0),r=t.charAt(1),i=e.width,a=e.height,o=e.left,s=e.top;return"c"===n?s+=a/2:"b"===n&&(s+=a),"c"===r?o+=i/2:"r"===r&&(o+=i),{left:o,top:s}}function dr(e,t,n,r,i){var a=hr(t,n[1]),o=hr(e,n[0]),s=[o.left-a.left,o.top-a.top];return{left:Math.round(e.left-s[0]+r[0]-i[0]),top:Math.round(e.top-s[1]+r[1]-i[1])}}function fr(e,t,n){return e.left<n.left||e.left+t.width>n.right}function pr(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function gr(e,t,n){return e.left>n.right||e.left+t.width<n.left}function mr(e,t,n){return e.top>n.bottom||e.top+t.height<n.top}function vr(e,t,n){var r=[];return rr.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function yr(e,t){return e[t]=-e[t],e}function br(e,t){var n;return n=/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10),n||0}function _r(e,t){e[0]=br(e[0],t.width),e[1]=br(e[1],t.height)}function xr(e,t,n,r){var i=n.points,a=n.offset||[0,0],o=n.targetOffset||[0,0],s=n.overflow,l=n.source||e;a=[].concat(a),o=[].concat(o),s=s||{};var u={},c=0,h=!(!s||!s.alwaysByViewport),d=lr(l,h),f=cr(l);_r(a,f),_r(o,t);var p=dr(f,t,i,a,o),g=rr.merge(f,p);if(d&&(s.adjustX||s.adjustY)&&r){if(s.adjustX&&fr(p,f,d)){var m=vr(i,/[lr]/gi,{l:"r",r:"l"}),v=yr(a,0),y=yr(o,0),b=dr(f,t,m,v,y);gr(b,f,d)||(c=1,i=m,a=v,o=y)}if(s.adjustY&&pr(p,f,d)){var _=vr(i,/[tb]/gi,{t:"b",b:"t"}),x=yr(a,1),w=yr(o,1),S=dr(f,t,_,x,w);mr(S,f,d)||(c=1,i=_,a=x,o=w)}c&&(p=dr(f,t,i,a,o),rr.mix(g,p));var T=fr(p,f,d),O=pr(p,f,d);if(T||O){var M=i;T&&(M=vr(i,/[lr]/gi,{l:"r",r:"l"})),O&&(M=vr(i,/[tb]/gi,{t:"b",b:"t"})),i=M,a=n.offset||[0,0],o=n.targetOffset||[0,0]}u.adjustX=s.adjustX&&T,u.adjustY=s.adjustY&&O,(u.adjustX||u.adjustY)&&(g=ur(p,f,d,u))}return g.width!==f.width&&rr.css(l,"width",rr.width(l)+g.width-f.width),g.height!==f.height&&rr.css(l,"height",rr.height(l)+g.height-f.height),rr.offset(l,{left:g.left,top:g.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:i,offset:a,targetOffset:o,overflow:u}}function wr(e,t){var n=lr(e,t),r=cr(e);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}function Sr(e,t,n){var r=n.target||t,i=cr(r),a=!wr(r,n.overflow&&n.overflow.alwaysByViewport);return xr(e,i,n,a)}function Tr(e,t,n){var r,i,a=rr.getDocument(e),o=a.defaultView||a.parentWindow,s=rr.getWindowScrollLeft(o),l=rr.getWindowScrollTop(o),u=rr.viewportWidth(o),c=rr.viewportHeight(o);r="pageX"in t?t.pageX:s+t.clientX,i="pageY"in t?t.pageY:l+t.clientY;var h={left:r,top:i,width:0,height:0},d=r>=0&&r<=s+u&&i>=0&&i<=l+c,f=[n.points[0],"cc"];return xr(e,h,sn({},n,{points:f}),d)}Sr.__getOffsetParent=ar,Sr.__getVisibleRectForElement=lr;function Or(e,t){return e===t||!(!e||!t)&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&(e.clientX===t.clientX&&e.clientY===t.clientY))}function Mr(e,t){e!==document.activeElement&&Qe(t,e)&&"function"===typeof e.focus&&e.focus()}function Er(e,t){var n=null,i=null;function a(e){var a=Object(r["default"])(e,1),o=a[0].target;if(document.documentElement.contains(o)){var s=o.getBoundingClientRect(),l=s.width,u=s.height,c=Math.floor(l),h=Math.floor(u);n===c&&i===h||Promise.resolve().then((function(){t({width:c,height:h})})),n=c,i=h}}var o=new Y["a"](a);return e&&o.observe(e),function(){o.disconnect()}}var Ar=function(e,t){var n=a.a.useRef(!1),r=a.a.useRef(null);function i(){window.clearTimeout(r.current)}function o(a){if(n.current&&!0!==a)i(),r.current=window.setTimeout((function(){n.current=!1,o()}),t);else{if(!1===e())return;n.current=!0,i(),r.current=window.setTimeout((function(){n.current=!1}),t)}}return[o,function(){n.current=!1,i()}]};function Cr(e){return"function"!==typeof e?null:e()}function Ir(e){return"object"===l(e)&&e?e:null}var Dr=function(e,t){var n=e.children,i=e.disabled,o=e.target,s=e.align,l=e.onAlign,u=e.monitorWindowResize,c=e.monitorBufferTime,h=void 0===c?0:c,d=a.a.useRef({}),f=a.a.useRef(),p=a.a.Children.only(n),g=a.a.useRef({});g.current.disabled=i,g.current.target=o,g.current.onAlign=l;var m=Ar((function(){var e=g.current,t=e.disabled,n=e.target,r=e.onAlign;if(!t&&n){var i,a=f.current,o=Cr(n),l=Ir(n);d.current.element=o,d.current.point=l;var u=document,c=u.activeElement;return o&&nn(o)?i=Sr(a,o,s):l&&(i=Tr(a,l,s)),Mr(c,a),r&&i&&r(a,i),!0}return!1}),h),v=Object(r["default"])(m,2),y=v[0],b=v[1],_=a.a.useRef({cancel:function(){}}),x=a.a.useRef({cancel:function(){}});a.a.useEffect((function(){var e=Cr(o),t=Ir(o);f.current!==x.current.element&&(x.current.cancel(),x.current.element=f.current,x.current.cancel=Er(f.current,y)),d.current.element===e&&Or(d.current.point,t)||(y(),_.current.element!==e&&(_.current.cancel(),_.current.element=e,_.current.cancel=Er(e,y)))})),a.a.useEffect((function(){i?b():y()}),[i]);var w=a.a.useRef(null);return a.a.useEffect((function(){u?w.current||(w.current=Je(window,"resize",y)):w.current&&(w.current.remove(),w.current=null)}),[u]),a.a.useEffect((function(){return function(){_.current.cancel(),x.current.cancel(),w.current&&w.current.remove(),b()}}),[]),a.a.useImperativeHandle(t,(function(){return{forceAlign:function(){return y(!0)}}})),a.a.isValidElement(p)&&(p=a.a.cloneElement(p,{ref:W(p.ref,f)})),p},Lr=a.a.forwardRef(Dr);Lr.displayName="Align";var Pr=Lr,kr=Pr,Rr=n("sJYe"),Nr=n.n(Rr);function jr(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function Fr(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){jr(a,r,i,o,s,"next",e)}function s(e){jr(a,r,i,o,s,"throw",e)}o(void 0)}))}}var zr=["measure","align",null,"motion"],Br=function(e,t){var n=Object(i["useState"])(null),a=Object(r["default"])(n,2),o=a[0],s=a[1],l=Object(i["useRef"])();function u(){O.cancel(l.current)}function c(e){u(),l.current=O((function(){s((function(e){switch(o){case"align":return"motion";case"motion":return"stable"}return e})),null===e||void 0===e||e()}))}return Object(i["useEffect"])((function(){s("measure")}),[e]),Object(i["useEffect"])((function(){switch(o){case"measure":t();break}o&&(l.current=O(Fr(Nr.a.mark((function e(){var t,n;return Nr.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=zr.indexOf(o),n=zr[t+1],n&&-1!==t&&s(n);case 3:case"end":return e.stop()}}),e)})))))}),[o]),Object(i["useEffect"])((function(){return function(){u()}}),[]),[o,c]},Vr=function(e){var t=i["useState"]({width:0,height:0}),n=Object(r["default"])(t,2),a=n[0],o=n[1];function s(e){o({width:e.offsetWidth,height:e.offsetHeight})}var l=i["useMemo"]((function(){var t={};if(e){var n=a.width,r=a.height;-1!==e.indexOf("height")&&r?t.height=r:-1!==e.indexOf("minHeight")&&r&&(t.minHeight=r),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,a]);return[l,s]},Gr=i["forwardRef"]((function(e,t){var n=e.visible,a=e.prefixCls,o=e.className,s=e.style,l=e.children,u=e.zIndex,h=e.stretch,f=e.destroyPopupOnHide,p=e.align,g=e.point,m=e.getRootDomNode,v=e.getClassNameFromAlign,y=e.onAlign,b=e.onMouseEnter,_=e.onMouseLeave,x=e.onMouseDown,w=e.onTouchStart,S=Object(i["useRef"])(),T=Object(i["useRef"])(),O=Object(i["useState"])(),M=Object(r["default"])(O,2),E=M[0],A=M[1],C=Vr(h),I=Object(r["default"])(C,2),D=I[0],L=I[1];function P(){h&&L(m())}var k=Br(n,P),R=Object(r["default"])(k,2),N=R[0],j=R[1],F=Object(i["useRef"])();function z(){return g||m}function B(){var e;null===(e=S.current)||void 0===e||e.forceAlign()}function V(e,t){if("align"===N){var n=v(t);A(n),E!==n?Promise.resolve().then((function(){B()})):j((function(){var e;null===(e=F.current)||void 0===e||e.call(F)})),null===y||void 0===y||y(e,t)}}var G=Object(c["a"])({},Jt(e));function H(){return new Promise((function(e){F.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=G[e];G[e]=function(e,n){return j(),null===t||void 0===t?void 0:t(e,n)}})),i["useEffect"]((function(){G.motionName||"motion"!==N||j()}),[G.motionName,N]),i["useImperativeHandle"](t,(function(){return{forceAlign:B,getElement:function(){return T.current}}}));var U=Object(c["a"])(Object(c["a"])(Object(c["a"])({},D),{},{zIndex:u},s),{},{opacity:"motion"!==N&&"stable"!==N&&n?0:void 0,pointerEvents:"stable"===N?void 0:"none"}),W=!0;!(null===p||void 0===p?void 0:p.points)||"align"!==N&&"stable"!==N||(W=!1);var X=l;return i["Children"].count(l)>1&&(X=i["createElement"]("div",{className:"".concat(a,"-content")},l)),i["createElement"](Qt,Object.assign({visible:n,ref:T,leavedClassName:"".concat(a,"-hidden")},G,{onAppearPrepare:H,onEnterPrepare:H,removeOnLeave:f}),(function(e,t){var n=e.className,r=e.style,s=d()(a,o,E,n);return i["createElement"](kr,{target:z(),key:"popup",ref:S,monitorWindowResize:!0,disabled:W,align:p,onAlign:V},i["createElement"]("div",{ref:t,className:s,onMouseEnter:b,onMouseLeave:_,onMouseDown:x,onTouchStart:w,style:Object(c["a"])(Object(c["a"])({},r),U)},X))}))}));Gr.displayName="PopupInner";var Hr=Gr,Ur=i["forwardRef"]((function(e,t){var n=e.prefixCls,r=e.visible,a=e.zIndex,o=e.children,s=e.mobile;s=void 0===s?{}:s;var l=s.popupClassName,u=s.popupStyle,h=s.popupMotion,f=void 0===h?{}:h,p=s.popupRender,g=i["useRef"]();i["useImperativeHandle"](t,(function(){return{forceAlign:function(){},getElement:function(){return g.current}}}));var m=Object(c["a"])({zIndex:a},u),v=o;return i["Children"].count(o)>1&&(v=i["createElement"]("div",{className:"".concat(n,"-content")},o)),p&&(v=p(v)),i["createElement"](Qt,Object.assign({visible:r,ref:g,removeOnLeave:!0},f),(function(e,t){var r=e.className,a=e.style,o=d()(n,l,r);return i["createElement"]("div",{ref:t,className:o,style:Object(c["a"])(Object(c["a"])({},a),m)},v)}))}));Ur.displayName="MobilePopupInner";var Wr=Ur,Xr=i["forwardRef"]((function(e,t){var n=e.visible,a=e.mobile,o=Object(u["a"])(e,["visible","mobile"]),s=Object(i["useState"])(n),l=Object(r["default"])(s,2),h=l[0],d=l[1],f=Object(i["useState"])(!1),p=Object(r["default"])(f,2),m=p[0],v=p[1],y=Object(c["a"])(Object(c["a"])({},o),{},{visible:h});Object(i["useEffect"])((function(){d(n),n&&a&&v(g())}),[n,!!a]);var b=m?i["createElement"](Wr,Object.assign({},y,{mobile:a,ref:t})):i["createElement"](Hr,Object.assign({},y,{ref:t}));return i["createElement"]("div",null,i["createElement"](en,Object.assign({},y)),b)}));Xr.displayName="Popup";var Yr=Xr,Kr=i["createContext"](null),qr=Kr;function Zr(){}function $r(){return""}function Qr(e){return e?e.ownerDocument:window.document}var Jr=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function ei(e){var t=function(t){I(r,t);var n=R(r);function r(e){var t,a;return M(this,r),t=n.call(this,e),t.popupRef=i["createRef"](),t.triggerRef=i["createRef"](),t.onMouseEnter=function(e){var n=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",e),t.delaySetPopupVisible(!0,n,n?null:e)},t.onMouseMove=function(e){t.fireEvents("onMouseMove",e),t.setPoint(e)},t.onMouseLeave=function(e){t.fireEvents("onMouseLeave",e),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(e){var n;e.relatedTarget&&!e.relatedTarget.setTimeout&&Qe(null===(n=t.popupRef.current)||void 0===n?void 0:n.getElement(),e.relatedTarget)||t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(e){t.fireEvents("onFocus",e),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(e){t.fireEvents("onMouseDown",e),t.preClickTime=Date.now()},t.onTouchStart=function(e){t.fireEvents("onTouchStart",e),t.preTouchTime=Date.now()},t.onBlur=function(e){t.fireEvents("onBlur",e),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(e){e.preventDefault(),t.fireEvents("onContextMenu",e),t.setPopupVisible(!0,e)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(e){if(t.fireEvents("onClick",e),t.focusTime){var n;if(t.preClickTime&&t.preTouchTime?n=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?n=t.preClickTime:t.preTouchTime&&(n=t.preTouchTime),Math.abs(n-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var r=!t.state.popupVisible;(t.isClickToHide()&&!r||r&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,e)},t.onPopupMouseDown=function(){var e;(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout((function(){t.hasPopupMouseDown=!1}),0),t.context)&&(e=t.context).onPopupMouseDown.apply(e,arguments)},t.onDocumentClick=function(e){if(!t.props.mask||t.props.maskClosable){var n=e.target,r=t.getRootDomNode(),i=t.getPopupDomNode();Qe(r,n)||Qe(i,n)||t.hasPopupMouseDown||t.close()}},t.getRootDomNode=function(){var e=t.props.getTriggerDOMNode;if(e)return e(t.triggerRef.current);try{var n=F(t.triggerRef.current);if(n)return n}catch(r){}return j.a.findDOMNode(P(t))},t.getPopupClassNameFromAlign=function(e){var n=[],r=t.props,i=r.popupPlacement,a=r.builtinPlacements,o=r.prefixCls,s=r.alignPoint,l=r.getPopupClassNameFromAlign;return i&&a&&n.push(at(a,o,e,s)),l&&n.push(l(e)),n.join(" ")},t.getComponent=function(){var e=t.props,n=e.prefixCls,r=e.destroyPopupOnHide,a=e.popupClassName,o=e.onPopupAlign,s=e.popupMotion,l=e.popupAnimation,u=e.popupTransitionName,c=e.popupStyle,h=e.mask,d=e.maskAnimation,f=e.maskTransitionName,p=e.maskMotion,g=e.zIndex,m=e.popup,v=e.stretch,y=e.alignPoint,b=e.mobile,_=t.state,x=_.popupVisible,w=_.point,S=t.getPopupAlign(),T={};return t.isMouseEnterToShow()&&(T.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(T.onMouseLeave=t.onPopupMouseLeave),T.onMouseDown=t.onPopupMouseDown,T.onTouchStart=t.onPopupMouseDown,i["createElement"](Yr,Object.assign({prefixCls:n,destroyPopupOnHide:r,visible:x,point:y&&w,className:a,align:S,onAlign:o,animation:l,getClassNameFromAlign:t.getPopupClassNameFromAlign},T,{stretch:v,getRootDomNode:t.getRootDomNode,style:c,mask:h,zIndex:g,transitionName:u,maskAnimation:d,maskTransitionName:f,maskMotion:p,ref:t.popupRef,motion:s,mobile:b}),"function"===typeof m?m():m)},t.attachParent=function(e){O.cancel(t.attachId);var n,r=t.props,i=r.getPopupContainer,a=r.getDocument,o=t.getRootDomNode();i?(o||0===i.length)&&(n=i(o)):n=a(t.getRootDomNode()).body,n?n.appendChild(e):t.attachId=O((function(){t.attachParent(e)}))},t.getContainer=function(){var e=t.props.getDocument,n=e(t.getRootDomNode()).createElement("div");return n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%",t.attachParent(n),n},t.setPoint=function(e){var n=t.props.alignPoint;n&&e&&t.setState({point:{pageX:e.pageX,pageY:e.pageY}})},t.handlePortalUpdate=function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)},a="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,t.state={prevPopupVisible:a,popupVisible:a},Jr.forEach((function(e){t["fire".concat(e)]=function(n){t.fireEvents(e,n)}})),t}return A(r,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props,n=this.state;if(n.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Je(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Je(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Je(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Je(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),O.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,r=e.builtinPlacements;return t&&r?it(r,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:r}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var r=this,i=1e3*t;if(this.clearDelayTimer(),i){var a=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){r.setPopupVisible(e,a),r.clearDelayTimer()}),i)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var r=this.props[e];r&&r(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,n=this.props,r=n.children,a=n.forceRender,o=n.alignPoint,s=n.className,l=n.autoDestroy,u=i["Children"].only(r),h={key:"trigger"};this.isContextMenuToShow()?h.onContextMenu=this.onContextMenu:h.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(h.onClick=this.onClick,h.onMouseDown=this.onMouseDown,h.onTouchStart=this.onTouchStart):(h.onClick=this.createTwoChains("onClick"),h.onMouseDown=this.createTwoChains("onMouseDown"),h.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(h.onMouseEnter=this.onMouseEnter,o&&(h.onMouseMove=this.onMouseMove)):h.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?h.onMouseLeave=this.onMouseLeave:h.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(h.onFocus=this.onFocus,h.onBlur=this.onBlur):(h.onFocus=this.createTwoChains("onFocus"),h.onBlur=this.createTwoChains("onBlur"));var f=d()(u&&u.props&&u.props.className,s);f&&(h.className=f);var p=Object(c["a"])({},h);X(u)&&(p.ref=W(this.triggerRef,u.ref));var g,m=i["cloneElement"](u,p);return(t||this.popupRef.current||a)&&(g=i["createElement"](e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&l&&(g=null),i["createElement"](qr.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},m,g)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,r={};return void 0!==n&&t.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=t.popupVisible),r}}]),r}(i["Component"]);return t.contextType=qr,t.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:$r,getDocument:Qr,onPopupVisibleChange:Zr,afterPopupVisibleChange:Zr,onPopupAlign:Zr,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},t}var ti=ei(nt),ni={adjustX:1,adjustY:1},ri={topLeft:{points:["bl","tl"],overflow:ni,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ni,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ni,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ni,offset:[4,0]}},ii={topLeft:{points:["bl","tl"],overflow:ni,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ni,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ni,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ni,offset:[4,0]}},ai=0,oi={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},si=function(e,t,n){var r=We(t),i=e.getState();e.setState({defaultActiveFirst:Object(c["a"])(Object(c["a"])({},i.defaultActiveFirst),{},Object(s["a"])({},r,n))})},li=function(e){I(n,e);var t=R(n);function n(e){var r;M(this,n),r=t.call(this,e),r.onDestroy=function(e){r.props.onDestroy(e)},r.onKeyDown=function(e){var t=e.keyCode,n=r.menuInstance,i=r.props.store,a=r.getVisible();if(t===ee.ENTER)return r.onTitleClick(e),si(i,r.props.eventKey,!0),!0;if(t===ee.RIGHT)return a?n.onKeyDown(e):(r.triggerOpenChange(!0),si(i,r.props.eventKey,!0)),!0;if(t===ee.LEFT){var o;if(!a)return;return o=n.onKeyDown(e),o||(r.triggerOpenChange(!1),o=!0),o}return!a||t!==ee.UP&&t!==ee.DOWN?void 0:n.onKeyDown(e)},r.onOpenChange=function(e){r.props.onOpenChange(e)},r.onPopupVisibleChange=function(e){r.triggerOpenChange(e,e?"mouseenter":"mouseleave")},r.onMouseEnter=function(e){var t=r.props,n=t.eventKey,i=t.onMouseEnter,a=t.store;si(a,r.props.eventKey,!1),i({key:n,domEvent:e})},r.onMouseLeave=function(e){var t=r.props,n=t.parentMenu,i=t.eventKey,a=t.onMouseLeave;n.subMenuInstance=P(r),a({key:i,domEvent:e})},r.onTitleMouseEnter=function(e){var t=r.props,n=t.eventKey,i=t.onItemHover,a=t.onTitleMouseEnter;i({key:n,hover:!0}),a({key:n,domEvent:e})},r.onTitleMouseLeave=function(e){var t=r.props,n=t.parentMenu,i=t.eventKey,a=t.onItemHover,o=t.onTitleMouseLeave;n.subMenuInstance=P(r),a({key:i,hover:!1}),o({key:i,domEvent:e})},r.onTitleClick=function(e){var t=P(r),n=t.props;n.onTitleClick({key:n.eventKey,domEvent:e}),"hover"!==n.triggerSubMenuAction&&(r.triggerOpenChange(!r.getVisible(),"click"),si(n.store,r.props.eventKey,!1))},r.onSubMenuClick=function(e){"function"===typeof r.props.onClick&&r.props.onClick(r.addKeyPath(e))},r.onSelect=function(e){r.props.onSelect(e)},r.onDeselect=function(e){r.props.onDeselect(e)},r.getPrefixCls=function(){return"".concat(r.props.rootPrefixCls,"-submenu")},r.getActiveClassName=function(){return"".concat(r.getPrefixCls(),"-active")},r.getDisabledClassName=function(){return"".concat(r.getPrefixCls(),"-disabled")},r.getSelectedClassName=function(){return"".concat(r.getPrefixCls(),"-selected")},r.getOpenClassName=function(){return"".concat(r.props.rootPrefixCls,"-submenu-open")},r.getVisible=function(){return r.state.isOpen},r.getMode=function(){return r.state.mode},r.saveMenuInstance=function(e){r.menuInstance=e},r.addKeyPath=function(e){return Object(c["a"])(Object(c["a"])({},e),{},{keyPath:(e.keyPath||[]).concat(r.props.eventKey)})},r.triggerOpenChange=function(e,t){var n=r.props.eventKey,i=function(){r.onOpenChange({key:n,item:P(r),trigger:t,open:e})};"mouseenter"===t?r.mouseenterTimeout=setTimeout((function(){i()}),0):i()},r.isChildrenSelected=function(){var e={find:!1};return Ye(r.props.children,r.props.selectedKeys,e),e.find},r.isInlineMode=function(){return"inline"===r.getMode()},r.adjustWidth=function(){if(r.subMenuTitle&&r.menuInstance){var e=N["findDOMNode"](r.menuInstance);e.offsetWidth>=r.subMenuTitle.offsetWidth||(e.style.minWidth="".concat(r.subMenuTitle.offsetWidth,"px"))}},r.saveSubMenuTitle=function(e){r.subMenuTitle=e},r.getBaseProps=function(){var e=P(r),t=e.props,n=r.getMode();return{mode:"horizontal"===n?"vertical":n,visible:r.getVisible(),level:t.level+1,inlineIndent:t.inlineIndent,focusable:!1,onClick:r.onSubMenuClick,onSelect:r.onSelect,onDeselect:r.onDeselect,onDestroy:r.onDestroy,selectedKeys:t.selectedKeys,eventKey:"".concat(t.eventKey,"-menu-"),openKeys:t.openKeys,motion:t.motion,onOpenChange:r.onOpenChange,subMenuOpenDelay:t.subMenuOpenDelay,parentMenu:P(r),subMenuCloseDelay:t.subMenuCloseDelay,forceSubMenuRender:t.forceSubMenuRender,triggerSubMenuAction:t.triggerSubMenuAction,builtinPlacements:t.builtinPlacements,defaultActiveFirst:t.store.getState().defaultActiveFirst[We(t.eventKey)],multiple:t.multiple,prefixCls:t.rootPrefixCls,id:r.internalMenuId,manualRef:r.saveMenuInstance,itemIcon:t.itemIcon,expandIcon:t.expandIcon,direction:t.direction}},r.getMotion=function(e,t){var n=P(r),i=n.haveRendered,a=r.props,o=a.motion,s=a.rootPrefixCls,l=Object(c["a"])(Object(c["a"])({},o),{},{leavedClassName:"".concat(s,"-hidden"),removeOnLeave:!1,motionAppear:i||!t||"inline"!==e});return l};var i=e.store,a=e.eventKey,o=i.getState(),s=o.defaultActiveFirst;r.isRootMenu=!1;var l=!1;return s&&(l=s[a]),si(i,a,l),r.state={mode:e.mode,isOpen:e.isOpen},r}return A(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,t=this.props,n=t.mode,r=t.parentMenu,i=t.manualRef,a=t.isOpen,o=function(){e.setState({mode:n,isOpen:a})},s=a!==this.state.isOpen,l=n!==this.state.mode;(l||s)&&(O.cancel(this.updateStateRaf),l?this.updateStateRaf=O(o):o()),i&&i(this),"horizontal"===n&&(null===r||void 0===r?void 0:r.isRootMenu)&&a&&(this.minWidthTimeout=setTimeout((function(){return e.adjustWidth()}),0))}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.onDestroy,n=e.eventKey;t&&t(n),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),O.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(e,t){var n=this.getBaseProps();return i["createElement"](wi,Object.assign({},n,{id:this.internalMenuId,className:e,style:t}),this.props.children)}},{key:"renderChildren",value:function(){var e=this,t=this.getBaseProps(),n=t.mode,r=t.visible,a=t.forceSubMenuRender,o=t.direction,l=this.getMotion(n,r);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||r||a,!this.haveOpened)return i["createElement"]("div",null);var u=d()("".concat(t.prefixCls,"-sub"),Object(s["a"])({},"".concat(t.prefixCls,"-rtl"),"rtl"===o));return this.isInlineMode()?i["createElement"](Qt,Object.assign({visible:t.visible},l),(function(t){var n=t.className,r=t.style,i=d()(u,n);return e.renderPopupMenu(i,r)})):this.renderPopupMenu(u)}},{key:"render",value:function(){var e,t,n,r=Object(c["a"])({},this.props),a=this.getVisible(),o=this.getPrefixCls(),l=this.isInlineMode(),u=this.getMode(),h=d()(o,"".concat(o,"-").concat(u),(e={},Object(s["a"])(e,r.className,!!r.className),Object(s["a"])(e,this.getOpenClassName(),a),Object(s["a"])(e,this.getActiveClassName(),r.active||a&&!l),Object(s["a"])(e,this.getDisabledClassName(),r.disabled),Object(s["a"])(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(r.eventKey?this.internalMenuId="".concat(r.eventKey,"$Menu"):(ai+=1,this.internalMenuId="$__$".concat(ai,"$Menu")));var f={},p={},g={};r.disabled||(f={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},p={onClick:this.onTitleClick},g={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var m={},v=r.direction,y="rtl"===v;l&&(y?m.paddingRight=r.inlineIndent*r.level:m.paddingLeft=r.inlineIndent*r.level);var b={};this.getVisible()&&(b={"aria-owns":this.internalMenuId});var _=null;"horizontal"!==u&&(_=this.props.expandIcon,"function"===typeof this.props.expandIcon&&(_=i["createElement"](this.props.expandIcon,Object(c["a"])({},this.props))));var x=i["createElement"]("div",Object.assign({ref:this.saveSubMenuTitle,style:m,className:"".concat(o,"-title"),role:"button"},g,p,{"aria-expanded":a},b,{"aria-haspopup":"true",title:"string"===typeof r.title?r.title:void 0}),r.title,_||i["createElement"]("i",{className:"".concat(o,"-arrow")})),w=this.renderChildren(),S=(null===(t=r.parentMenu)||void 0===t?void 0:t.isRootMenu)?r.parentMenu.props.getPopupContainer:function(e){return e.parentNode},T=oi[u],O=r.popupOffset?{offset:r.popupOffset}:{},M=d()((n={},Object(s["a"])(n,r.popupClassName,r.popupClassName&&!l),Object(s["a"])(n,"".concat(o,"-rtl"),y),n)),E=r.disabled,A=r.triggerSubMenuAction,C=r.subMenuOpenDelay,I=r.forceSubMenuRender,D=r.subMenuCloseDelay,L=r.builtinPlacements;Ke.forEach((function(e){return delete r[e]})),delete r.onClick;var P=y?Object.assign({},ii,L):Object.assign({},ri,L);delete r.direction;var k=this.getBaseProps(),R=l?null:this.getMotion(k.mode,k.visible);return i["createElement"]("li",Object.assign({},r,f,{className:h,role:"menuitem"}),i["createElement"](ti,{prefixCls:o,popupClassName:d()("".concat(o,"-popup"),M),getPopupContainer:S,builtinPlacements:P,popupPlacement:T,popupVisible:!l&&a,popupAlign:O,popup:l?null:w,action:E||l?[]:[A],mouseEnterDelay:C,mouseLeaveDelay:D,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:I,popupMotion:R},x),l?w:null)}}]),n}(i["Component"]);li.defaultProps={onMouseEnter:He,onMouseLeave:He,onTitleMouseEnter:He,onTitleMouseLeave:He,onTitleClick:He,manualRef:He,mode:"vertical",title:""};var ui=ye((function(e,t){var n=e.openKeys,r=e.activeKey,i=e.selectedKeys,a=t.eventKey,o=t.subMenuKey;return{isOpen:n.indexOf(a)>-1,active:r[o]===a,selectedKeys:i}}))(li);ui.isSubMenu=!0;var ci=ui,hi="menuitem-overflowed",di=.5,fi=function(e){I(n,e);var t=R(n);function n(){var e;return M(this,n),e=t.apply(this,arguments),e.resizeObserver=null,e.mutationObserver=null,e.originalTotalWidth=0,e.overflowedItems=[],e.menuItemSizes=[],e.cancelFrameId=null,e.state={lastVisibleIndex:void 0},e.childRef=i["createRef"](),e.getMenuItemNodes=function(){var t=e.props.prefixCls,n=e.childRef.current;return n?[].slice.call(n.children).filter((function(e){return e.className.split(" ").indexOf("".concat(t,"-overflowed-submenu"))<0})):[]},e.getOverflowedSubMenuItem=function(t,n,r){var a=e.props,o=a.overflowedIndicator,s=a.level,l=a.mode,h=a.prefixCls,d=a.theme;if(1!==s||"horizontal"!==l)return null;var f=e.props.children[0],p=f.props,g=(p.children,p.title,p.style),m=Object(u["a"])(p,["children","title","style"]),v=Object(c["a"])({},g),y="".concat(t,"-overflowed-indicator"),b="".concat(t,"-overflowed-indicator");0===n.length&&!0!==r?v=Object(c["a"])(Object(c["a"])({},v),{},{display:"none"}):r&&(v=Object(c["a"])(Object(c["a"])({},v),{},{visibility:"hidden",position:"absolute"}),y="".concat(y,"-placeholder"),b="".concat(b,"-placeholder"));var _=d?"".concat(h,"-").concat(d):"",x={};return Ke.forEach((function(e){void 0!==m[e]&&(x[e]=m[e])})),i["createElement"](ci,Object.assign({title:o,className:"".concat(h,"-overflowed-submenu"),popupClassName:_},x,{key:y,eventKey:b,disabled:!1,style:v}),n)},e.setChildrenWidthAndResize=function(){if("horizontal"===e.props.mode){var t=e.childRef.current;if(t){var n=t.children;if(n&&0!==n.length){var r=t.children[n.length-1];Ze(r,"display","inline-block");var i=e.getMenuItemNodes(),a=i.filter((function(e){return e.className.split(" ").indexOf(hi)>=0}));a.forEach((function(e){Ze(e,"display","inline-block")})),e.menuItemSizes=i.map((function(e){return qe(e,!0)})),a.forEach((function(e){Ze(e,"display","none")})),e.overflowedIndicatorWidth=qe(t.children[t.children.length-1],!0),e.originalTotalWidth=e.menuItemSizes.reduce((function(e,t){return e+t}),0),e.handleResize(),Ze(r,"display","none")}}}},e.handleResize=function(){if("horizontal"===e.props.mode){var t=e.childRef.current;if(t){var n=qe(t);e.overflowedItems=[];var r,i=0;e.originalTotalWidth>n+di&&(r=-1,e.menuItemSizes.forEach((function(t){i+=t,i+e.overflowedIndicatorWidth<=n&&(r+=1)}))),e.setState({lastVisibleIndex:r})}}},e}return A(n,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),1===this.props.level&&"horizontal"===this.props.mode){var t=this.childRef.current;if(!t)return;this.resizeObserver=new Y["a"]((function(t){t.forEach((function(){var t=e.cancelFrameId;cancelAnimationFrame(t),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)}))})),[].slice.call(t.children).concat(t).forEach((function(t){e.resizeObserver.observe(t)})),"undefined"!==typeof MutationObserver&&(this.mutationObserver=new MutationObserver((function(){e.resizeObserver.disconnect(),[].slice.call(t.children).concat(t).forEach((function(t){e.resizeObserver.observe(t)})),e.setChildrenWidthAndResize()})),this.mutationObserver.observe(t,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(e){var t=this,n=this.state.lastVisibleIndex;return(e||[]).reduce((function(r,a,o){var s=a;if("horizontal"===t.props.mode){var l=t.getOverflowedSubMenuItem(a.props.eventKey,[]);void 0!==n&&-1!==t.props.className.indexOf("".concat(t.props.prefixCls,"-root"))&&(o>n&&(s=i["cloneElement"](a,{style:{display:"none"},eventKey:"".concat(a.props.eventKey,"-hidden"),className:"".concat(hi)})),o===n+1&&(t.overflowedItems=e.slice(n+1).map((function(e){return i["cloneElement"](e,{key:e.props.eventKey,mode:"vertical-left"})})),l=t.getOverflowedSubMenuItem(a.props.eventKey,t.overflowedItems)));var u=[].concat(w(r),[l,s]);return o===e.length-1&&u.push(t.getOverflowedSubMenuItem(a.props.eventKey,[],!0)),u}return[].concat(w(r),[s])}),[])}},{key:"render",value:function(){var e=this.props,t=(e.visible,e.prefixCls,e.overflowedIndicator,e.mode,e.level,e.tag),n=e.children,r=(e.theme,Object(u["a"])(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"])),a=t;return i["createElement"](a,Object.assign({ref:this.childRef},r),this.renderChildren(n))}}]),n}(i["Component"]);fi.defaultProps={tag:"div",className:""};var pi=fi;function gi(e){return!e.length||e.every((function(e){return!!e.props.disabled}))}function mi(e,t,n){var r=e.getState();e.setState({activeKey:Object(c["a"])(Object(c["a"])({},r.activeKey),{},Object(s["a"])({},t,n))})}function vi(e){return e.eventKey||"0-menu-"}function yi(e,t){var n,r=t,i=e.children,a=e.eventKey;if(r&&(Xe(i,(function(e,t){e&&e.props&&!e.props.disabled&&r===Ue(e,a,t)&&(n=!0)})),n))return r;return r=null,e.defaultActiveFirst?(Xe(i,(function(e,t){r||!e||e.props.disabled||(r=Ue(e,a,t))})),r):r}function bi(e){if(e){var t=this.instanceArray.indexOf(e);-1!==t?this.instanceArray[t]=e:this.instanceArray.push(e)}}var _i=function(e){I(n,e);var t=R(n);function n(e){var r;return M(this,n),r=t.call(this,e),r.onKeyDown=function(e,t){var n,i=e.keyCode;if(r.getFlatInstanceArray().forEach((function(t){t&&t.props.active&&t.onKeyDown&&(n=t.onKeyDown(e))})),n)return 1;var a=null;return i!==ee.UP&&i!==ee.DOWN||(a=r.step(i===ee.UP?-1:1)),a?(e.preventDefault(),mi(r.props.store,vi(r.props),a.props.eventKey),"function"===typeof t&&t(a),1):void 0},r.onItemHover=function(e){var t=e.key,n=e.hover;mi(r.props.store,vi(r.props),n?t:null)},r.onDeselect=function(e){r.props.onDeselect(e)},r.onSelect=function(e){r.props.onSelect(e)},r.onClick=function(e){r.props.onClick(e)},r.onOpenChange=function(e){r.props.onOpenChange(e)},r.onDestroy=function(e){r.props.onDestroy(e)},r.getFlatInstanceArray=function(){return r.instanceArray},r.step=function(e){var t=r.getFlatInstanceArray(),n=r.props.store.getState().activeKey[vi(r.props)],i=t.length;if(!i)return null;e<0&&(t=t.concat().reverse());var a=-1;if(t.every((function(e,t){return!e||e.props.eventKey!==n||(a=t,!1)})),r.props.defaultActiveFirst||-1===a||!gi(t.slice(a,i-1))){var o=(a+1)%i,s=o;do{var l=t[s];if(l&&!l.props.disabled)return l;s=(s+1)%i}while(s!==o);return null}},r.renderCommonMenuItem=function(e,t,n){var a=r.props.store.getState(),o=P(r),s=o.props,l=Ue(e,s.eventKey,t),u=e.props;if(!u||"string"===typeof e.type)return e;var h=l===a.activeKey,d=Object(c["a"])(Object(c["a"])({mode:u.mode||s.mode,level:s.level,inlineIndent:s.inlineIndent,renderMenuItem:r.renderMenuItem,rootPrefixCls:s.prefixCls,index:t,parentMenu:s.parentMenu,manualRef:u.disabled?void 0:Te(e.ref,bi.bind(P(r))),eventKey:l,active:!u.disabled&&h,multiple:s.multiple,onClick:function(e){(u.onClick||He)(e),r.onClick(e)},onItemHover:r.onItemHover,motion:s.motion,subMenuOpenDelay:s.subMenuOpenDelay,subMenuCloseDelay:s.subMenuCloseDelay,forceSubMenuRender:s.forceSubMenuRender,onOpenChange:r.onOpenChange,onDeselect:r.onDeselect,onSelect:r.onSelect,builtinPlacements:s.builtinPlacements,itemIcon:u.itemIcon||r.props.itemIcon,expandIcon:u.expandIcon||r.props.expandIcon},n),{},{direction:s.direction});return("inline"===s.mode||$e())&&(d.triggerSubMenuAction="click"),i["cloneElement"](e,Object(c["a"])(Object(c["a"])({},d),{},{key:l||t}))},r.renderMenuItem=function(e,t,n){if(!e)return null;var i=r.props.store.getState(),a={openKeys:i.openKeys,selectedKeys:i.selectedKeys,triggerSubMenuAction:r.props.triggerSubMenuAction,subMenuKey:n};return r.renderCommonMenuItem(e,t,a)},e.store.setState({activeKey:Object(c["a"])(Object(c["a"])({},e.store.getState().activeKey),{},Object(s["a"])({},e.eventKey,yi(e,e.activeKey)))}),r.instanceArray=[],r}return A(n,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!he()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n="activeKey"in t?t.activeKey:t.store.getState().activeKey[vi(t)],r=yi(t,n);if(r!==n)mi(t.store,vi(t),r);else if("activeKey"in e){var i=yi(e,e.activeKey);r!==i&&mi(t.store,vi(t),r)}}},{key:"render",value:function(){var e=this,t=Object(o["a"])({},this.props);this.instanceArray=[];var n=d()(t.prefixCls,t.className,"".concat(t.prefixCls,"-").concat(t.mode)),r={className:n,role:t.role||"menu"};t.id&&(r.id=t.id),t.focusable&&(r.tabIndex=0,r.onKeyDown=this.onKeyDown);var a=t.prefixCls,s=t.eventKey,l=t.visible,u=t.level,c=t.mode,h=t.overflowedIndicator,f=t.theme;return Ke.forEach((function(e){return delete t[e]})),delete t.onClick,i["createElement"](pi,Object.assign({},t,{prefixCls:a,mode:c,tag:"ul",level:u,theme:f,visible:l,overflowedIndicator:h},r),p(t.children).map((function(t,n){return e.renderMenuItem(t,n,s||"0-menu-")})))}}]),n}(i["Component"]);_i.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:He};var xi=ye()(_i),wi=xi;function Si(e,t,n){var r=e.prefixCls,i=e.motion,a=e.defaultMotions,o=void 0===a?{}:a,s=e.openAnimation,u=e.openTransitionName,c=t.switchingModeFromInline;if(i)return i;if("object"===l(s)&&s)H(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if("string"===typeof s)return{motionName:"".concat(r,"-open-").concat(s)};if(u)return{motionName:u};var h=o[n];return h||(c?null:o.other)}var Ti=function(e){I(n,e);var t=R(n);function n(e){var r;M(this,n),r=t.call(this,e),r.onSelect=function(e){var t=P(r),n=t.props;if(n.selectable){var i=r.store.getState(),a=i.selectedKeys,o=e.key;a=n.multiple?a.concat([o]):[o],"selectedKeys"in n||r.store.setState({selectedKeys:a}),n.onSelect(Object(c["a"])(Object(c["a"])({},e),{},{selectedKeys:a}))}},r.onClick=function(e){var t=r.getRealMenuMode(),n=P(r),i=n.store,a=n.props.onOpenChange;"inline"===t||"openKeys"in r.props||(i.setState({openKeys:[]}),a([])),r.props.onClick(e)},r.onKeyDown=function(e,t){r.innerMenu.getWrappedInstance().onKeyDown(e,t)},r.onOpenChange=function(e){var t=P(r),n=t.props,i=r.store.getState().openKeys.concat(),a=!1,o=function(e){var t=!1;if(e.open)t=-1===i.indexOf(e.key),t&&i.push(e.key);else{var n=i.indexOf(e.key);t=-1!==n,t&&i.splice(n,1)}a=a||t};Array.isArray(e)?e.forEach(o):o(e),a&&("openKeys"in r.props||r.store.setState({openKeys:i}),n.onOpenChange(i))},r.onDeselect=function(e){var t=P(r),n=t.props;if(n.selectable){var i=r.store.getState().selectedKeys.concat(),a=e.key,o=i.indexOf(a);-1!==o&&i.splice(o,1),"selectedKeys"in n||r.store.setState({selectedKeys:i}),n.onDeselect(Object(c["a"])(Object(c["a"])({},e),{},{selectedKeys:i}))}},r.onMouseEnter=function(e){r.restoreModeVerticalFromInline();var t=r.props.onMouseEnter;t&&t(e)},r.onTransitionEnd=function(e){var t="width"===e.propertyName&&e.target===e.currentTarget,n=e.target.className,i="[object SVGAnimatedString]"===Object.prototype.toString.call(n)?n.animVal:n,a="font-size"===e.propertyName&&i.indexOf("anticon")>=0;(t||a)&&r.restoreModeVerticalFromInline()},r.setInnerMenu=function(e){r.innerMenu=e},r.isRootMenu=!0;var i=e.defaultSelectedKeys,a=e.defaultOpenKeys;return"selectedKeys"in e&&(i=e.selectedKeys||[]),"openKeys"in e&&(a=e.openKeys||[]),r.store=_e({selectedKeys:i,openKeys:a,activeKey:{"0-menu-":yi(e,e.activeKey)}}),r.state={switchingModeFromInline:!1,prevProps:e,inlineOpenKeys:[],store:r.store},r}return A(n,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.siderCollapsed,r=t.inlineCollapsed,i=t.onOpenChange;(!e.inlineCollapsed&&r||!e.siderCollapsed&&n)&&i([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,t=this.store,n=this.prevOpenKeys,r=this.getInlineCollapsed()&&(0===e||"0"===e||"0px"===e);r?(this.prevOpenKeys=t.getState().openKeys.concat(),this.store.setState({openKeys:[]})):n&&(this.store.setState({openKeys:n}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,t=this.state.switchingModeFromInline,n=this.getInlineCollapsed();return t&&n?"inline":n?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,t=e.inlineCollapsed,n=e.siderCollapsed;return void 0!==n?n:t}},{key:"restoreModeVerticalFromInline",value:function(){var e=this.state.switchingModeFromInline;e&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var e=Object(c["a"])({},Se(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),t=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),"rtl"===e.direction&&(e.className+=" ".concat(e.prefixCls,"-rtl")),e=Object(c["a"])(Object(c["a"])({},e),{},{mode:t,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Si(this.props,this.state,t)}),delete e.openAnimation,delete e.openTransitionName,i["createElement"](ue,{store:this.store},i["createElement"](wi,Object.assign({},e,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.store,i=r.getState(),a={},o={prevProps:e};return"inline"===n.mode&&"inline"!==e.mode&&(o.switchingModeFromInline=!0),"openKeys"in e?a.openKeys=e.openKeys||[]:((e.inlineCollapsed&&!n.inlineCollapsed||e.siderCollapsed&&!n.siderCollapsed)&&(o.switchingModeFromInline=!0,o.inlineOpenKeys=i.openKeys,a.openKeys=[]),(!e.inlineCollapsed&&n.inlineCollapsed||!e.siderCollapsed&&n.siderCollapsed)&&(a.openKeys=t.inlineOpenKeys,o.inlineOpenKeys=[])),Object.keys(a).length&&r.setState(a),o}}]),n}(i["Component"]);Ti.defaultProps={selectable:!0,onClick:He,onSelect:He,onOpenChange:He,onDeselect:He,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:i["createElement"]("span",null,"\xb7\xb7\xb7")};var Oi=Ti,Mi=function(e){I(n,e);var t=R(n);function n(){var e;return M(this,n),e=t.apply(this,arguments),e.onKeyDown=function(t){var n=t.keyCode;if(n===ee.ENTER)return e.onClick(t),!0},e.onMouseLeave=function(t){var n=e.props,r=n.eventKey,i=n.onItemHover,a=n.onMouseLeave;i({key:r,hover:!1}),a({key:r,domEvent:t})},e.onMouseEnter=function(t){var n=e.props,r=n.eventKey,i=n.onItemHover,a=n.onMouseEnter;i({key:r,hover:!0}),a({key:r,domEvent:t})},e.onClick=function(t){var n=e.props,r=n.eventKey,i=n.multiple,a=n.onClick,o=n.onSelect,s=n.onDeselect,l=n.isSelected,u={key:r,keyPath:[r],item:P(e),domEvent:t};a(u),i?l?s(u):o(u):l||o(u)},e.saveNode=function(t){e.node=t},e}return A(n,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var e,t=Object(c["a"])({},this.props),n=d()(this.getPrefixCls(),t.className,(e={},Object(s["a"])(e,this.getActiveClassName(),!t.disabled&&t.active),Object(s["a"])(e,this.getSelectedClassName(),t.isSelected),Object(s["a"])(e,this.getDisabledClassName(),t.disabled),e)),r=Object(c["a"])(Object(c["a"])({},t.attribute),{},{title:"string"===typeof t.title?t.title:void 0,className:n,role:t.role||"menuitem","aria-disabled":t.disabled});"option"===t.role?r=Object(c["a"])(Object(c["a"])({},r),{},{role:"option","aria-selected":t.isSelected}):null!==t.role&&"none"!==t.role||(r.role="none");var a={onClick:t.disabled?null:this.onClick,onMouseLeave:t.disabled?null:this.onMouseLeave,onMouseEnter:t.disabled?null:this.onMouseEnter},o=Object(c["a"])({},t.style);"inline"===t.mode&&("rtl"===t.direction?o.paddingRight=t.inlineIndent*t.level:o.paddingLeft=t.inlineIndent*t.level),Ke.forEach((function(e){return delete t[e]})),delete t.direction;var l=this.props.itemIcon;return"function"===typeof this.props.itemIcon&&(l=i["createElement"](this.props.itemIcon,this.props)),i["createElement"]("li",Object.assign({},Se(t,["onClick","onMouseEnter","onMouseLeave","onSelect"]),r,a,{style:o,ref:this.saveNode}),t.children,l)}}]),n}(i["Component"]);Mi.isMenuItem=!0,Mi.defaultProps={onSelect:He,onMouseEnter:He,onMouseLeave:He,manualRef:He};var Ei=ye((function(e,t){var n=e.activeKey,r=e.selectedKeys,i=t.eventKey,a=t.subMenuKey;return{active:n[a]===i,isSelected:-1!==r.indexOf(i)}}))(Mi),Ai=Ei,Ci=function(e){I(n,e);var t=R(n);function n(){var e;return M(this,n),e=t.apply(this,arguments),e.renderInnerMenuItem=function(t){var n=e.props,r=n.renderMenuItem,i=n.index;return r(t,i,e.props.subMenuKey)},e}return A(n,[{key:"render",value:function(){var e=Object(o["a"])({},this.props),t=e.className,n=void 0===t?"":t,r=e.rootPrefixCls,a="".concat(r,"-item-group-title"),s="".concat(r,"-item-group-list"),l=e.title,u=e.children;return Ke.forEach((function(t){return delete e[t]})),delete e.onClick,delete e.direction,i["createElement"]("li",Object.assign({},e,{className:"".concat(n," ").concat(r,"-item-group")}),i["createElement"]("div",{className:a,title:"string"===typeof l?l:void 0},l),i["createElement"]("ul",{className:s},i["Children"].map(u,this.renderInnerMenuItem)))}}]),n}(i["Component"]);Ci.isMenuItemGroup=!0,Ci.defaultProps={disabled:!0};var Ii=function(e){var t=e.className,n=e.rootPrefixCls,r=e.style;return i["createElement"]("li",{className:"".concat(t," ").concat(n,"-item-divider"),style:r})};Ii.defaultProps={disabled:!0,className:"",style:{}};var Di=Oi,Li={adjustX:1,adjustY:1},Pi=[0,0],ki={topLeft:{points:["bl","tl"],overflow:Li,offset:[0,-4],targetOffset:Pi},topCenter:{points:["bc","tc"],overflow:Li,offset:[0,-4],targetOffset:Pi},topRight:{points:["br","tr"],overflow:Li,offset:[0,-4],targetOffset:Pi},bottomLeft:{points:["tl","bl"],overflow:Li,offset:[0,4],targetOffset:Pi},bottomCenter:{points:["tc","bc"],overflow:Li,offset:[0,4],targetOffset:Pi},bottomRight:{points:["tr","br"],overflow:Li,offset:[0,4],targetOffset:Pi}},Ri=ki;function Ni(e,t){var n=e.arrow,a=void 0!==n&&n,o=e.prefixCls,l=void 0===o?"rc-dropdown":o,c=e.transitionName,h=e.animation,f=e.align,p=e.placement,g=void 0===p?"bottomLeft":p,m=e.placements,v=void 0===m?Ri:m,y=e.getPopupContainer,b=e.showAction,_=e.hideAction,x=e.overlayClassName,w=e.overlayStyle,S=e.visible,T=e.trigger,O=void 0===T?["hover"]:T,M=Object(u["a"])(e,["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger"]),E=i["useState"](),A=Object(r["default"])(E,2),C=A[0],I=A[1],D="visible"in e?S:C,L=i["useRef"](null);i["useImperativeHandle"](t,(function(){return L.current}));var P=function(){var t,n=e.overlay;return t="function"===typeof n?n():n,t},k=function(t){var n=e.onOverlayClick,r=P().props;I(!1),n&&n(t),r.onClick&&r.onClick(t)},R=function(t){var n=e.onVisibleChange;I(t),"function"===typeof n&&n(t)},N=function(){var e=P(),t={prefixCls:"".concat(l,"-menu"),onClick:k};return"string"===typeof e.type&&delete t.prefixCls,i["createElement"](i["Fragment"],null,a&&i["createElement"]("div",{className:"".concat(l,"-arrow")}),i["cloneElement"](e,t))},j=function(){var t=e.overlay;return"function"===typeof t?N:N()},F=function(){var t=e.minOverlayWidthMatchTrigger,n=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?t:!n},z=function(){var t=e.openClassName;return void 0!==t?t:"".concat(l,"-open")},B=function(){var t=e.children,n=t.props?t.props:{},r=d()(n.className,z());return C&&t?i["cloneElement"](t,{className:r}):t},V=_;return V||-1===O.indexOf("contextMenu")||(V=["click"]),i["createElement"](ti,Object.assign({},M,{prefixCls:l,ref:L,popupClassName:d()(x,Object(s["a"])({},"".concat(l,"-show-arrow"),a)),popupStyle:w,builtinPlacements:v,action:O,showAction:b,hideAction:V||[],popupPlacement:g,popupAlign:f,popupTransitionName:c,popupAnimation:h,popupVisible:D,stretch:F()?"minWidth":"",popup:j(),onPopupVisibleChange:R,getPopupContainer:y}),B())}var ji=i["forwardRef"](Ni),Fi=ji;function zi(e,t){var n=e.prefixCls,r=e.editable,a=e.locale,o=e.style;return r&&!1!==r.showAdd?i["createElement"]("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:o,"aria-label":(null===a||void 0===a?void 0:a.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null}var Bi=i["forwardRef"](zi);function Vi(e,t){var n=e.prefixCls,a=e.id,o=e.tabs,l=e.locale,u=e.mobile,c=e.moreIcon,h=void 0===c?"More":c,f=e.moreTransitionName,p=e.style,g=e.className,m=e.editable,v=e.tabBarGutter,y=e.rtl,b=e.onTabClick,_=Object(i["useState"])(!1),x=Object(r["default"])(_,2),w=x[0],S=x[1],T=Object(i["useState"])(null),O=Object(r["default"])(T,2),M=O[0],E=O[1],A="".concat(a,"-more-popup"),C="".concat(n,"-dropdown"),I=null!==M?"".concat(A,"-").concat(M):null,D=null===l||void 0===l?void 0:l.dropdownAriaLabel,L=i["createElement"](Di,{onClick:function(e){var t=e.key,n=e.domEvent;b(t,n),S(!1)},id:A,tabIndex:-1,role:"listbox","aria-activedescendant":I,selectedKeys:[M],"aria-label":void 0!==D?D:"expanded dropdown"},o.map((function(e){return i["createElement"](Ai,{key:e.key,id:"".concat(A,"-").concat(e.key),role:"option","aria-controls":a&&"".concat(a,"-panel-").concat(e.key),disabled:e.disabled},e.tab)})));function P(e){for(var t=o.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===M}))||0,r=t.length,i=0;i<r;i+=1){n=(n+e+r)%r;var a=t[n];if(!a.disabled)return void E(a.key)}}function k(e){var t=e.which;if(w)switch(t){case ee.UP:P(-1),e.preventDefault();break;case ee.DOWN:P(1),e.preventDefault();break;case ee.ESC:S(!1);break;case ee.SPACE:case ee.ENTER:null!==M&&b(M,e);break}else[ee.DOWN,ee.SPACE,ee.ENTER].includes(t)&&(S(!0),e.preventDefault())}Object(i["useEffect"])((function(){var e=document.getElementById(I);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[M]),Object(i["useEffect"])((function(){w||E(null)}),[w]);var R=Object(s["a"])({},y?"marginLeft":"marginRight",v);o.length||(R.visibility="hidden",R.order=1);var N=d()(Object(s["a"])({},"".concat(C,"-rtl"),y)),j=u?null:i["createElement"](Fi,{prefixCls:C,overlay:L,trigger:["hover"],visible:w,transitionName:f,onVisibleChange:S,overlayClassName:N,mouseEnterDelay:.1,mouseLeaveDelay:.1},i["createElement"]("button",{type:"button",className:"".concat(n,"-nav-more"),style:R,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":A,id:"".concat(a,"-more"),"aria-expanded":w,onKeyDown:k},h));return i["createElement"]("div",{className:d()("".concat(n,"-nav-operations"),g),style:p,ref:t},j,i["createElement"](Bi,{prefixCls:n,locale:l,editable:m}))}var Gi=i["forwardRef"](Vi),Hi=Object(i["createContext"])(null),Ui=.1,Wi=.01,Xi=20,Yi=Math.pow(.995,Xi);function Ki(e,t){var n=Object(i["useState"])(),a=Object(r["default"])(n,2),o=a[0],s=a[1],l=Object(i["useState"])(0),u=Object(r["default"])(l,2),c=u[0],h=u[1],d=Object(i["useState"])(0),f=Object(r["default"])(d,2),p=f[0],g=f[1],m=Object(i["useState"])(),v=Object(r["default"])(m,2),y=v[0],b=v[1],_=Object(i["useRef"])();function x(e){var t=e.touches[0],n=t.screenX,r=t.screenY;s({x:n,y:r}),window.clearInterval(_.current)}function w(e){if(o){e.preventDefault();var n=e.touches[0],r=n.screenX,i=n.screenY;s({x:r,y:i});var a=r-o.x,l=i-o.y;t(a,l);var u=Date.now();h(u),g(u-c),b({x:a,y:l})}}function S(){if(o&&(s(null),b(null),y)){var e=y.x/p,n=y.y/p,r=Math.abs(e),i=Math.abs(n);if(Math.max(r,i)<Ui)return;var a=e,l=n;_.current=window.setInterval((function(){Math.abs(a)<Wi&&Math.abs(l)<Wi?window.clearInterval(_.current):(a*=Yi,l*=Yi,t(a*Xi,l*Xi))}),Xi)}}var T=Object(i["useRef"])();function O(e){var n=e.deltaX,r=e.deltaY,i=0,a=Math.abs(n),o=Math.abs(r);a===o?i="x"===T.current?n:r:a>o?(i=n,T.current="x"):(i=r,T.current="y"),t(-i,-i)&&e.preventDefault()}var M=Object(i["useRef"])(null);M.current={onTouchStart:x,onTouchMove:w,onTouchEnd:S,onWheel:O},i["useEffect"]((function(){function t(e){M.current.onTouchStart(e)}function n(e){M.current.onTouchMove(e)}function r(e){M.current.onTouchEnd(e)}function i(e){M.current.onWheel(e)}return document.addEventListener("touchmove",n,{passive:!1}),document.addEventListener("touchend",r,{passive:!1}),e.current.addEventListener("touchstart",t,{passive:!1}),e.current.addEventListener("wheel",i),function(){document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r)}}),[])}function qi(){var e=Object(i["useRef"])(new Map);function t(t){return e.current.has(t)||e.current.set(t,i["createRef"]()),e.current.get(t)}function n(t){e.current["delete"](t)}return[t,n]}function Zi(e,t){var n=i["useRef"](e),a=i["useState"]({}),o=Object(r["default"])(a,2),s=o[1];function l(e){var r="function"===typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,s({})}return[n.current,l]}var $i=function(e){var t,n=e.position,r=e.prefixCls,a=e.extra;if(!a)return null;var o=a;return"right"===n&&(t=o.right||!o.left&&o||null),"left"===n&&(t=o.left||null),t?i["createElement"]("div",{className:"".concat(r,"-extra-content")},t):null};function Qi(e,t){var n,a=i["useContext"](Hi),l=a.prefixCls,u=a.tabs,h=e.className,f=e.style,p=e.id,g=e.animated,m=e.activeKey,v=e.rtl,y=e.extra,b=e.editable,_=e.locale,x=e.tabPosition,S=e.tabBarGutter,T=e.children,M=e.onTabClick,E=e.onTabScroll,A=Object(i["useRef"])(),C=Object(i["useRef"])(),I=Object(i["useRef"])(),D=Object(i["useRef"])(),L=qi(),P=Object(r["default"])(L,2),k=P[0],R=P[1],N="top"===x||"bottom"===x,j=Zi(0,(function(e,t){N&&E&&E({direction:e>t?"left":"right"})})),F=Object(r["default"])(j,2),z=F[0],B=F[1],V=Zi(0,(function(e,t){!N&&E&&E({direction:e>t?"top":"bottom"})})),G=Object(r["default"])(V,2),H=G[0],U=G[1],W=Object(i["useState"])(0),X=Object(r["default"])(W,2),Y=X[0],K=X[1],q=Object(i["useState"])(0),J=Object(r["default"])(q,2),ee=J[0],te=J[1],re=Object(i["useState"])(0),ae=Object(r["default"])(re,2),se=ae[0],le=ae[1],ue=Object(i["useState"])(0),ce=Object(r["default"])(ue,2),he=ce[0],de=ce[1],fe=Object(i["useState"])(null),pe=Object(r["default"])(fe,2),ge=pe[0],me=pe[1],ve=Object(i["useState"])(null),ye=Object(r["default"])(ve,2),be=ye[0],_e=ye[1],xe=Object(i["useState"])(0),we=Object(r["default"])(xe,2),Se=we[0],Te=we[1],Oe=Object(i["useState"])(0),Me=Object(r["default"])(Oe,2),Ee=Me[0],Ae=Me[1],Ce=Q(new Map),Ie=Object(r["default"])(Ce,2),De=Ie[0],Le=Ie[1],Pe=ie(u,De,Y),ke="".concat(l,"-nav-operations-hidden"),Re=0,Ne=0;function je(e){return e<Re?Re:e>Ne?Ne:e}N?v?(Re=0,Ne=Math.max(0,Y-ge)):(Re=Math.min(0,ge-Y),Ne=0):(Re=Math.min(0,be-ee),Ne=0);var Fe=Object(i["useRef"])(),ze=Object(i["useState"])(),Be=Object(r["default"])(ze,2),Ve=Be[0],Ge=Be[1];function He(){Ge(Date.now())}function Ue(){window.clearTimeout(Fe.current)}function We(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m,t=Pe.get(e)||{width:0,height:0,left:0,right:0,top:0};if(N){var n=z;v?t.right<z?n=t.right:t.right+t.width>z+ge&&(n=t.right+t.width-ge):t.left<-z?n=-t.left:t.left+t.width>-z+ge&&(n=-(t.left+t.width-ge)),U(0),B(je(n))}else{var r=H;t.top<-H?r=-t.top:t.top+t.height>-H+be&&(r=-(t.top+t.height-be)),B(0),U(je(r))}}Ki(A,(function(e,t){function n(e,t){e((function(e){var n=je(e+t);return n}))}if(N){if(ge>=Y)return!1;n(B,e)}else{if(be>=ee)return!1;n(U,t)}return Ue(),He(),!0})),Object(i["useEffect"])((function(){return Ue(),Ve&&(Fe.current=window.setTimeout((function(){Ge(0)}),100)),Ue}),[Ve]);var Xe=oe(Pe,{width:ge,height:be,left:z,top:H},{width:se,height:he},{width:Se,height:Ee},Object(c["a"])(Object(c["a"])({},e),{},{tabs:u})),Ye=Object(r["default"])(Xe,2),Ke=Ye[0],qe=Ye[1],Ze=u.map((function(e){var t=e.key;return i["createElement"](ne,{id:p,prefixCls:l,key:t,rtl:v,tab:e,closable:e.closable,editable:b,active:t===m,tabPosition:x,tabBarGutter:S,renderWrapper:T,removeAriaLabel:null===_||void 0===_?void 0:_.removeAriaLabel,ref:k(t),onClick:function(e){M(t,e)},onRemove:function(){R(t)},onFocus:function(){We(t),He(),v||(A.current.scrollLeft=0),A.current.scrollTop=0}})})),$e=$((function(){var e,t,n,r,i,a,o,s,l,c=(null===(e=A.current)||void 0===e?void 0:e.offsetWidth)||0,h=(null===(t=A.current)||void 0===t?void 0:t.offsetHeight)||0,d=(null===(n=D.current)||void 0===n?void 0:n.offsetWidth)||0,f=(null===(r=D.current)||void 0===r?void 0:r.offsetHeight)||0,p=(null===(i=I.current)||void 0===i?void 0:i.offsetWidth)||0,g=(null===(a=I.current)||void 0===a?void 0:a.offsetHeight)||0;me(c),_e(h),Te(d),Ae(f);var m=((null===(o=C.current)||void 0===o?void 0:o.offsetWidth)||0)-d,v=((null===(s=C.current)||void 0===s?void 0:s.offsetHeight)||0)-f;K(m),te(v);var y=null===(l=I.current)||void 0===l?void 0:l.className.includes(ke);le(m-(y?0:p)),de(v-(y?0:g)),Le((function(){var e=new Map;return u.forEach((function(t){var n=t.key,r=k(n).current;r&&e.set(n,{width:r.offsetWidth,height:r.offsetHeight,left:r.offsetLeft,top:r.offsetTop})})),e}))})),Qe=u.slice(0,Ke),Je=u.slice(qe+1),et=[].concat(w(Qe),w(Je)),tt=Object(i["useState"])(),nt=Object(r["default"])(tt,2),rt=nt[0],it=nt[1],at=Pe.get(m),ot=Object(i["useRef"])();function st(){O.cancel(ot.current)}Object(i["useEffect"])((function(){var e={};return at&&(N?(v?e.right=at.right:e.left=at.left,e.width=at.width):(e.top=at.top,e.height=at.height)),st(),ot.current=O((function(){it(e)})),st}),[at,N,v]),Object(i["useEffect"])((function(){We()}),[m,at,Pe,N]),Object(i["useEffect"])((function(){$e()}),[v,S,m,u.map((function(e){return e.key})).join("_")]);var lt,ut,ct,ht,dt=!!et.length,ft="".concat(l,"-nav-wrap");return N?v?(ut=z>0,lt=z+ge<Y):(lt=z<0,ut=-z+ge<Y):(ct=H<0,ht=-H+be<ee),i["createElement"]("div",{ref:t,role:"tablist",className:d()("".concat(l,"-nav"),h),style:f,onKeyDown:function(){He()}},i["createElement"]($i,{position:"left",extra:y,prefixCls:l}),i["createElement"](Z,{onResize:$e},i["createElement"]("div",{className:d()(ft,(n={},Object(s["a"])(n,"".concat(ft,"-ping-left"),lt),Object(s["a"])(n,"".concat(ft,"-ping-right"),ut),Object(s["a"])(n,"".concat(ft,"-ping-top"),ct),Object(s["a"])(n,"".concat(ft,"-ping-bottom"),ht),n)),ref:A},i["createElement"](Z,{onResize:$e},i["createElement"]("div",{ref:C,className:"".concat(l,"-nav-list"),style:{transform:"translate(".concat(z,"px, ").concat(H,"px)"),transition:Ve?"none":void 0}},Ze,i["createElement"](Bi,{ref:D,prefixCls:l,locale:_,editable:b,style:{visibility:dt?"hidden":null}}),i["createElement"]("div",{className:d()("".concat(l,"-ink-bar"),Object(s["a"])({},"".concat(l,"-ink-bar-animated"),g.inkBar)),style:rt}))))),i["createElement"](Gi,Object(o["a"])({},e,{ref:I,prefixCls:l,tabs:et,className:!dt&&ke})),i["createElement"]($i,{position:"right",extra:y,prefixCls:l}))}var Ji=i["forwardRef"](Qi);function ea(e){var t=e.id,n=e.activeKey,r=e.animated,a=e.tabPosition,o=e.rtl,l=e.destroyInactiveTabPane,u=i["useContext"](Hi),c=u.prefixCls,h=u.tabs,f=r.tabPane,p=h.findIndex((function(e){return e.key===n}));return i["createElement"]("div",{className:d()("".concat(c,"-content-holder"))},i["createElement"]("div",{className:d()("".concat(c,"-content"),"".concat(c,"-content-").concat(a),Object(s["a"])({},"".concat(c,"-content-animated"),f)),style:p&&f?Object(s["a"])({},o?"marginRight":"marginLeft","-".concat(p,"00%")):null},h.map((function(e){return i["cloneElement"](e.node,{key:e.key,prefixCls:c,tabKey:e.key,id:t,animated:f,active:e.key===n,destroyInactiveTabPane:l})}))))}function ta(e){var t=e.prefixCls,n=e.forceRender,a=e.className,o=e.style,s=e.id,l=e.active,u=e.animated,h=e.destroyInactiveTabPane,f=e.tabKey,p=e.children,g=i["useState"](n),m=Object(r["default"])(g,2),v=m[0],y=m[1];i["useEffect"]((function(){l?y(!0):h&&y(!1)}),[l,h]);var b={};return l||(u?(b.visibility="hidden",b.height=0,b.overflowY="hidden"):b.display="none"),i["createElement"]("div",{id:s&&"".concat(s,"-panel-").concat(f),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":s&&"".concat(s,"-tab-").concat(f),"aria-hidden":!l,style:Object(c["a"])(Object(c["a"])({},b),o),className:d()("".concat(t,"-tabpane"),l&&"".concat(t,"-tabpane-active"),a)},(l||v||n)&&p)}var na=0;function ra(e){return p(e).map((function(e){if(i["isValidElement"](e)){var t=void 0!==e.key?String(e.key):void 0;return Object(c["a"])(Object(c["a"])({key:t},e.props),{},{node:e})}return null})).filter((function(e){return e}))}function ia(e,t){var n,a,h=e.id,f=e.prefixCls,p=void 0===f?"rc-tabs":f,v=e.className,y=e.children,b=e.direction,_=e.activeKey,x=e.defaultActiveKey,w=e.editable,S=e.animated,T=void 0===S?{inkBar:!0,tabPane:!1}:S,O=e.tabPosition,M=void 0===O?"top":O,E=e.tabBarGutter,A=e.tabBarStyle,C=e.tabBarExtraContent,I=e.locale,D=e.moreIcon,L=e.moreTransitionName,P=e.destroyInactiveTabPane,k=e.renderTabBar,R=e.onChange,N=e.onTabClick,j=e.onTabScroll,F=Object(u["a"])(e,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),z=ra(y),B="rtl"===b;a=!1===T?{inkBar:!1,tabPane:!1}:!0===T?{inkBar:!0,tabPane:!0}:Object(c["a"])({inkBar:!0,tabPane:!1},"object"===l(T)?T:{});var V=Object(i["useState"])(!1),G=Object(r["default"])(V,2),H=G[0],U=G[1];Object(i["useEffect"])((function(){U(g())}),[]);var W=m((function(){var e;return null===(e=z[0])||void 0===e?void 0:e.key}),{value:_,defaultValue:x}),X=Object(r["default"])(W,2),Y=X[0],K=X[1],q=Object(i["useState"])((function(){return z.findIndex((function(e){return e.key===Y}))})),Z=Object(r["default"])(q,2),$=Z[0],Q=Z[1];Object(i["useEffect"])((function(){var e,t=z.findIndex((function(e){return e.key===Y}));-1===t&&(t=Math.max(0,Math.min($,z.length-1)),K(null===(e=z[t])||void 0===e?void 0:e.key));Q(t)}),[z.map((function(e){return e.key})).join("_"),Y,$]);var J=m(null,{value:h}),ee=Object(r["default"])(J,2),te=ee[0],ne=ee[1],re=M;function ie(e,t){null===N||void 0===N||N(e,t),K(e),null===R||void 0===R||R(e)}H&&!["left","right"].includes(M)&&(re="top"),Object(i["useEffect"])((function(){h||(ne("rc-tabs-".concat(na)),na+=1)}),[]);var ae,oe={id:te,activeKey:Y,animated:a,tabPosition:re,rtl:B,mobile:H},se=Object(c["a"])(Object(c["a"])({},oe),{},{editable:w,locale:I,moreIcon:D,moreTransitionName:L,tabBarGutter:E,onTabClick:ie,onTabScroll:j,extra:C,style:A,panes:y});return ae=k?k(se,Ji):i["createElement"](Ji,se),i["createElement"](Hi.Provider,{value:{tabs:z,prefixCls:p}},i["createElement"]("div",Object(o["a"])({ref:t,id:h,className:d()(p,"".concat(p,"-").concat(re),(n={},Object(s["a"])(n,"".concat(p,"-mobile"),H),Object(s["a"])(n,"".concat(p,"-editable"),w),Object(s["a"])(n,"".concat(p,"-rtl"),B),n),v)},F),ae,i["createElement"](ea,Object(o["a"])({destroyInactiveTabPane:P},oe,{animated:a}))))}var aa=i["forwardRef"](ia);aa.TabPane=ta;var oa=aa,sa=oa,la=n("9kvl"),ua=n("kvV8"),ca=n("HFCj");n("MD2b");function ha(e,t){var n,r=null===(n=e.match(/\.(\w+)$/))||void 0===n?void 0:n[1];return r||(r=t.tsx?"tsx":"jsx"),r}var da=e=>{var t,n,o,s=Object(i["useRef"])(),l=Object(i["useContext"])(ua["context"]),u=l.locale,c=Object(ua["useLocaleProps"])(u,e),h=Object(ua["useDemoUrl"])(c.identifier),d=c.demoUrl||h,f=(null===la["a"]||void 0===la["a"]?void 0:la["a"].location.hash)==="#".concat(c.identifier),p=1===Object.keys(c.sources).length,g=Object(ua["useCodeSandbox"])((null===(t=c.hideActions)||void 0===t?void 0:t.includes("CSB"))?null:c),m=Object(ua["useRiddle"])((null===(n=c.hideActions)||void 0===n?void 0:n.includes("RIDDLE"))?null:c),v=Object(ua["useMotions"])(c.motions||[],s.current),y=Object(r["default"])(v,2),b=y[0],_=y[1],x=Object(ua["useCopy"])(),w=Object(r["default"])(x,2),S=w[0],T=w[1],O=Object(i["useState"])("_"),M=Object(r["default"])(O,2),E=M[0],A=M[1],C=Object(i["useState"])(ha(E,c.sources[E])),I=Object(r["default"])(C,2),D=I[0],L=I[1],P=Object(i["useState"])(Boolean(c.defaultShowCode)),k=Object(r["default"])(P,2),R=k[0],N=k[1],j=Object(i["useState"])(Math.random()),F=Object(r["default"])(j,2),z=F[0],B=F[1],V=c.sources[E][D]||c.sources[E].content,G=Object(ua["useTSPlaygroundUrl"])(u,V);function H(e){A(e),L(ha(e,c.sources[e]))}return a.a.createElement("div",{style:c.style,className:[c.className,"__dumi-default-previewer",f?"__dumi-default-previewer-target":""].filter(Boolean).join(" "),id:c.identifier,"data-debug":c.debug||void 0,"data-iframe":c.iframe||void 0},c.iframe&&a.a.createElement("div",{className:"__dumi-default-previewer-browser-nav"}),a.a.createElement("div",{ref:s,className:"__dumi-default-previewer-demo",style:{transform:c.transform?"translate(0, 0)":void 0,padding:c.compact||c.iframe&&!1!==c.compact?"0":void 0,background:c.background}},c.iframe?a.a.createElement("iframe",{title:"dumi-previewer",style:{height:String(c.iframe).replace(/(\d)$/,"$1px")},key:z,src:d}):c.children),a.a.createElement("div",{className:"__dumi-default-previewer-desc","data-title":c.title},c.title&&a.a.createElement(ua["AnchorLink"],{to:"#".concat(c.identifier)},c.title),c.description&&a.a.createElement("div",{dangerouslySetInnerHTML:{__html:c.description}})),a.a.createElement("div",{className:"__dumi-default-previewer-actions"},g&&a.a.createElement("button",{title:"Open demo on CodeSandbox.io",className:"__dumi-default-icon",role:"codesandbox",onClick:g}),m&&a.a.createElement("button",{title:"Open demo on Riddle",className:"__dumi-default-icon",role:"riddle",onClick:m}),c.motions&&a.a.createElement("button",{title:"Execute motions",className:"__dumi-default-icon",role:"motions",disabled:_,onClick:()=>b()}),c.iframe&&a.a.createElement("button",{title:"Reload demo iframe page",className:"__dumi-default-icon",role:"refresh",onClick:()=>B(Math.random())}),!(null===(o=c.hideActions)||void 0===o?void 0:o.includes("EXTERNAL"))&&a.a.createElement(ua["Link"],{target:"_blank",to:d},a.a.createElement("button",{title:"Open demo in new tab",className:"__dumi-default-icon",role:"open-demo",type:"button"})),a.a.createElement("span",null),a.a.createElement("button",{title:"Copy source code",className:"__dumi-default-icon",role:"copy","data-status":T,onClick:()=>S(V)}),"tsx"===D&&R&&a.a.createElement(ua["Link"],{target:"_blank",to:G},a.a.createElement("button",{title:"Get JSX via TypeScript Playground",className:"__dumi-default-icon",role:"change-tsx",type:"button"})),a.a.createElement("button",{title:"Toggle source code panel",className:"__dumi-default-icon".concat(R?" __dumi-default-btn-expand":""),role:"source",type:"button",onClick:()=>N(!R)})),R&&a.a.createElement("div",{className:"__dumi-default-previewer-source-wrapper"},!p&&a.a.createElement(sa,{className:"__dumi-default-previewer-source-tab",prefixCls:"__dumi-default-tabs",moreIcon:"\xb7\xb7\xb7",defaultActiveKey:E,onChange:H},Object.keys(c.sources).map((e=>a.a.createElement(ta,{tab:"_"===e?"index.".concat(ha(e,c.sources[e])):e,key:e})))),a.a.createElement("div",{className:"__dumi-default-previewer-source"},a.a.createElement(ca["a"],{code:V,lang:D,showCopy:!1}))))};t["default"]=da},lUyv:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},liI8:function(e,t,n){var r=n("2JD6");e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},ljS3:function(e,t,n){"use strict";n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return b}));var r=n("a0Kb"),i=n("H4kQ"),a=n("uN9/"),o=n("O9WU"),s=n("AyoT"),l=n("xFFj"),u=n("g9E2"),c=i["b"].extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r+a),e.lineTo(n-i,r+a),e.closePath()}}),h=i["b"].extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r),e.lineTo(n,r+a),e.lineTo(n-i,r),e.closePath()}}),d=i["b"].extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),l=r-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,h=Math.sin(u),d=Math.cos(u),f=.6*o,p=.7*o;e.moveTo(n-c,l+s),e.arc(n,l,o,Math.PI-u,2*Math.PI+u),e.bezierCurveTo(n+c-h*f,l+s+d*f,n,r-p,n,r),e.bezierCurveTo(n,r-p,n-c+h*f,l+s+d*f,n-c,l+s),e.closePath()}}),f=i["b"].extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,a=t.y,o=r/3*2;e.moveTo(i,a),e.lineTo(i+o,a+n),e.lineTo(i,a+n/4*3),e.lineTo(i-o,a+n),e.lineTo(i,a),e.closePath()}}),p={line:a["a"],rect:a["a"],roundRect:a["a"],square:a["a"],circle:o["a"],diamond:h,pin:d,arrow:f,triangle:c},g={line:function(e,t,n,r,i){var a=2;i.x=e,i.y=t+r/2-a/2,i.width=n,i.height=a},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var a=Math.min(n,r);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},m={};r["each"](p,(function(e,t){m[t]=new e}));var v=i["b"].extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=Object(u["d"])(e,t,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===t.position&&(r.y=n.y+.4*n.height),r},buildPath:function(e,t,n){var r=t.symbolType;if("none"!==r){var i=m[r];i||(r="rect",i=m[r]),g[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function y(e,t){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):n.fill=e,this.markRedraw()}}function b(e,t,n,r,i,a,o){var u,c=0===e.indexOf("empty");return c&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),u=0===e.indexOf("image://")?s["makeImage"](e.slice(8),new l["a"](t,n,r,i),o?"center":"cover"):0===e.indexOf("path://")?s["makePath"](e.slice(7),{},new l["a"](t,n,r,i),o?"center":"cover"):new v({shape:{symbolType:e,x:t,y:n,width:r,height:i}}),u.__isEmptyBrush=c,u.setColor=y,a&&u.setColor(a),u}},lttk:function(e,t,n){"use strict";var r=n("9izy").charAt,i=n("twJ5"),a=n("me7Q"),o="String Iterator",s=i.set,l=i.getterFor(o);a(String,"String",(function(e){s(this,{type:o,string:String(e),index:0})}),(function(){var e,t=l(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=r(n,i),t.index+=e.length,{value:e,done:!1})}))},m0HX:function(e,t,n){"use strict";var r,i,a,o,s,l,u,c,h,d,f,p,g,m,v=n("a0Kb"),y=n("tbCl"),b=n("6S0j"),_=n("CfRN"),x=n("W4wi"),w=n("WPZa"),S=n("+rxo"),T=n("b26b"),O=n("MJ25"),M=n("IpVE"),E=n("sKIF"),A=Math.floor,C=v["isObject"],I=v["map"],D="undefined",L=-1,P="e\0\0",k={float:typeof Float64Array===D?Array:Float64Array,int:typeof Int32Array===D?Array:Int32Array,ordinal:Array,number:Array,time:Array},R=typeof Uint32Array===D?Array:Uint32Array,N=typeof Int32Array===D?Array:Int32Array,j=typeof Uint16Array===D?Array:Uint16Array,F=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx","_nameRepeatCount"],z=["_extent","_approximateExtent","_rawExtent"],B=function(){function e(e,t){this.type="list",this._count=0,this._rawCount=0,this._storage={},this._storageArr=[],this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._rawExtent={},this._extent={},this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!0,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"],this.getRawIndex=s,e=e||["x","y"];for(var n={},r=[],i={},a=0;a<e.length;a++){var o=e[a],l=v["isString"](o)?new w["a"]({name:o}):o instanceof w["a"]?o:new w["a"](o),u=l.name;l.type=l.type||"float",l.coordDim||(l.coordDim=u,l.coordDimIndex=0);var c=l.otherDims=l.otherDims||{};r.push(u),n[u]=l,l.index=a,l.createInvertedIndices&&(i[u]=[]),0===c.itemName&&(this._nameDimIdx=a,this._nameOrdinalMeta=l.ordinalMeta),0===c.itemId&&(this._idDimIdx=a,this._idOrdinalMeta=l.ordinalMeta)}this.dimensions=r,this._dimensionInfos=n,this.hostModel=t,this._dimensionsSummary=Object(x["b"])(this),this._invertedIndicesMap=i,this.userOutput=this._dimensionsSummary.userOutput}return e.prototype.getDimension=function(e){return"number"!==typeof e&&(isNaN(e)||this._dimensionInfos.hasOwnProperty(e))||(e=this.dimensions[e]),e},e.prototype.getDimensionInfo=function(e){return this._dimensionInfos[this.getDimension(e)]},e.prototype.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimensionsSummary;if(null==t)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){var t=this._dimensionsSummary,n=t.encode[e];return(n||[]).slice()},e.prototype.initData=function(e,t,n){var i=Object(E["e"])(e)||v["isArrayLike"](e),a=i?new _["a"](e,this.dimensions.length):e;this._rawData=a;var o=a.getSource().sourceFormat;this._storage={},this._indices=null,this._dontMakeIdFromName=null!=this._idDimIdx||o===S["g"]||!!a.fillStorage,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},n||(this.hasItemOption=!1),this.defaultDimValueGetter=r[o],this._dimValueGetter=n=n||this.defaultDimValueGetter,this._dimValueGetterArrayRows=r.arrayRows,this._rawExtent={},this._initDataFromProvider(0,a.count()),a.pure&&(this.hasItemOption=!1)},e.prototype.getProvider=function(){return this._rawData},e.prototype.appendData=function(e){var t=this._rawData,n=this.count();t.appendData(e);var r=t.count();t.persistent||(r+=n),this._initDataFromProvider(n,r,!0)},e.prototype.appendValues=function(e,t){for(var n=this._storage,r=this.dimensions,a=r.length,s=this._rawExtent,l=this.count(),u=l+Math.max(e.length,t?t.length:0),c=0;c<a;c++){var d=r[c];s[d]||(s[d]=p()),o(n,this._dimensionInfos[d],u,!0)}for(var f=I(r,(function(e){return s[e]})),g=this._storageArr=I(r,(function(e){return n[e]})),m=[],v=l;v<u;v++){for(var y=v-l,b=0;b<a;b++){d=r[b];var _=this._dimValueGetterArrayRows(e[y]||m,d,y,b);g[b][v]=_;var x=f[b];_<x[0]&&(x[0]=_),_>x[1]&&(x[1]=_)}t&&(this._nameList[v]=t[y],this._dontMakeIdFromName||h(this,v))}this._rawCount=this._count=u,this._extent={},i(this)},e.prototype._initDataFromProvider=function(e,t,n){if(!(e>=t)){for(var r=this._rawData,a=this._storage,s=this.dimensions,l=s.length,u=this._dimensionInfos,c=this._nameList,d=this._idList,f=this._rawExtent,g=r.getSource().sourceFormat,m=g===S["f"],v=0;v<l;v++){var y=s[v];f[y]||(f[y]=p()),o(a,u[y],t,n)}var b=this._storageArr=I(s,(function(e){return a[e]})),_=I(s,(function(e){return f[e]}));if(r.fillStorage)r.fillStorage(e,t,b,_);else for(var x=[],w=e;w<t;w++){x=r.getItem(w,x);for(var O=0;O<l;O++){y=s[O];var M=b[O],E=this._dimValueGetter(x,y,w,O);M[w]=E;var A=_[O];E<A[0]&&(A[0]=E),E>A[1]&&(A[1]=E)}if(m&&!r.pure&&x){var C=x.name;null==c[w]&&null!=C&&(c[w]=Object(T["e"])(C,null));var D=x.id;null==d[w]&&null!=D&&(d[w]=Object(T["e"])(D,null))}this._dontMakeIdFromName||h(this,w)}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent={},i(this)}},e.prototype.count=function(){return this._count},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else{n=a(this);e=new n(this.count());for(i=0;i<e.length;i++)e[i]=i}return e},e.prototype.getByDimIdx=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._storageArr[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._storage[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._storage[e];return n?n[t]:NaN},e.prototype.getValues=function(e,t){var n=[];v["isArray"](e)||(t=e,e=this.dimensions);for(var r=0,i=e.length;r<i;r++)n.push(this.get(e[r],t));return n},e.prototype.hasValue=function(e){for(var t=this._dimensionsSummary.dataDimsOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this.get(t[n],e)))return!1;return!0},e.prototype.getDataExtent=function(e){e=this.getDimension(e);var t=this._storage[e],n=p();if(!t)return n;var r,i=this.count(),a=!this._indices;if(a)return this._rawExtent[e].slice();if(r=this._extent[e],r)return r.slice();r=n;for(var o=r[0],s=r[1],l=0;l<i;l++){var u=this.getRawIndex(l),c=t[u];c<o&&(o=c),c>s&&(s=c)}return r=[o,s],this._extent[e]=r,r},e.prototype.getApproximateExtent=function(e){return e=this.getDimension(e),this._approximateExtent[e]||this.getDataExtent(e)},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){C(e)?v["extend"](this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getSum=function(e){var t=this._storage[e],n=0;if(t)for(var r=0,i=this.count();r<i;r++){var a=this.get(e,r);isNaN(a)||(n+=a)}return n},e.prototype.getMedian=function(e){var t=[];this.each(e,(function(e){isNaN(e)||t.push(e)}));var n=t.sort((function(e,t){return e-t})),r=this.count();return 0===r?0:r%2===1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e];var r=n[t];return null==r||isNaN(r)?L:r},e.prototype.indexOfName=function(e){for(var t=0,n=this.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&n<this._count&&n===e)return e;var r=0,i=this._count-1;while(r<=i){var a=(r+i)/2|0;if(t[a]<e)r=a+1;else{if(!(t[a]>e))return a;i=a-1}}return-1},e.prototype.indicesOfNearest=function(e,t,n){var r=this._storage,i=r[e],a=[];if(!i)return a;null==n&&(n=1/0);for(var o=1/0,s=-1,l=0,u=0,c=this.count();u<c;u++){var h=this.getRawIndex(u),d=t-i[h],f=Math.abs(d);f<=n&&((f<o||f===o&&d>=0&&s<0)&&(o=f,s=d,l=0),d===s&&(a[l++]=u))}return a.length=l,a},e.prototype.getRawDataItem=function(e){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(e));for(var t=[],n=0;n<this.dimensions.length;n++){var r=this.dimensions[n];t.push(this.get(r,e))}return t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return null==n&&null!=this._nameDimIdx&&(n=c(this,this._nameDimIdx,this._nameOrdinalMeta,t)),null==n&&(n=""),n},e.prototype.getId=function(e){return u(this,this.getRawIndex(e))},e.prototype.each=function(e,t,n,r){var i=this;if(this._count){"function"===typeof e&&(r=n,n=t,t=e,e=[]);var a=n||r||this,o=I(d(e),this.getDimension,this);0;for(var s=o.length,l=I(o,(function(e){return i._dimensionInfos[e].index})),u=this._storageArr,c=0,h=this.count();c<h;c++){var f=this.getRawIndex(c);switch(s){case 0:t.call(a,c);break;case 1:t.call(a,u[l[0]][f],c);break;case 2:t.call(a,u[l[0]][f],u[l[1]][f],c);break;default:for(var p=0,g=[];p<s;p++)g[p]=u[l[p]][f];g[p]=c,t.apply(a,g)}}}},e.prototype.filterSelf=function(e,t,n,r){var i=this;if(this._count){"function"===typeof e&&(r=n,n=t,t=e,e=[]);var o=n||r||this,u=I(d(e),this.getDimension,this);0;for(var c=this.count(),h=a(this),f=new h(c),p=[],g=u.length,m=0,v=I(u,(function(e){return i._dimensionInfos[e].index})),y=v[0],b=this._storageArr,_=0;_<c;_++){var x=void 0,w=this.getRawIndex(_);if(0===g)x=t.call(o,_);else if(1===g){var S=b[y][w];x=t.call(o,S,_)}else{for(var T=0;T<g;T++)p[T]=b[v[T]][w];p[T]=_,x=t.apply(o,p)}x&&(f[m++]=w)}return m<c&&(this._indices=f),this._count=m,this._extent={},this.getRawIndex=this._indices?l:s,this}},e.prototype.selectRange=function(e){var t=this,n=this._count;if(n){var r=[];for(var i in e)e.hasOwnProperty(i)&&r.push(i);0;var o=r.length;if(o){var u=this.count(),c=a(this),h=new c(u),d=0,f=r[0],p=I(r,(function(e){return t._dimensionInfos[e].index})),g=e[f][0],m=e[f][1],v=this._storageArr,y=!1;if(!this._indices){var b=0;if(1===o){for(var _=v[p[0]],x=0;x<n;x++){var w=_[x];(w>=g&&w<=m||isNaN(w))&&(h[d++]=b),b++}y=!0}else if(2===o){_=v[p[0]];var S=v[p[1]],T=e[r[1]][0],O=e[r[1]][1];for(x=0;x<n;x++){w=_[x];var M=S[x];(w>=g&&w<=m||isNaN(w))&&(M>=T&&M<=O||isNaN(M))&&(h[d++]=b),b++}y=!0}}if(!y)if(1===o)for(x=0;x<u;x++){var E=this.getRawIndex(x);w=v[p[0]][E];(w>=g&&w<=m||isNaN(w))&&(h[d++]=E)}else for(x=0;x<u;x++){for(var A=!0,C=(E=this.getRawIndex(x),0);C<o;C++){var D=r[C];w=v[p[C]][E];(w<e[D][0]||w>e[D][1])&&(A=!1)}A&&(h[d++]=this.getRawIndex(x))}return d<u&&(this._indices=h),this._count=d,this._extent={},this.getRawIndex=this._indices?l:s,this}}},e.prototype.mapArray=function(e,t,n,r){"function"===typeof e&&(r=n,n=t,t=e,e=[]),n=n||r||this;var i=[];return this.each(e,(function(){i.push(t&&t.apply(this,arguments))}),n),i},e.prototype.map=function(e,t,n,r){var i=n||r||this,a=I(d(e),this.getDimension,this);var o=f(this,a),u=o._storage;o._indices=this._indices,o.getRawIndex=o._indices?l:s;for(var c=[],h=a.length,p=this.count(),g=[],m=o._rawExtent,v=0;v<p;v++){for(var y=0;y<h;y++)g[y]=this.get(a[y],v);g[h]=v;var b=t&&t.apply(i,g);if(null!=b){"object"!==typeof b&&(c[0]=b,b=c);for(var _=this.getRawIndex(v),x=0;x<b.length;x++){var w=a[x],S=b[x],T=m[w],O=u[w];O&&(O[_]=S),S<T[0]&&(T[0]=S),S>T[1]&&(T[1]=S)}}}return o},e.prototype.downSample=function(e,t,n,r){for(var i=f(this,[e]),o=i._storage,s=[],u=A(1/t),c=o[e],h=this.count(),d=i._rawExtent[e],p=new(a(this))(h),g=0,m=0;m<h;m+=u){u>h-m&&(u=h-m,s.length=u);for(var v=0;v<u;v++){var y=this.getRawIndex(m+v);s[v]=c[y]}var b=n(s),_=this.getRawIndex(Math.min(m+r(s,b)||0,h-1));c[_]=b,b<d[0]&&(d[0]=b),b>d[1]&&(d[1]=b),p[g++]=_}return i._count=g,i._indices=p,i.getRawIndex=l,i},e.prototype.lttbDownSample=function(e,t){var n,r,i,o=f(this,[]),s=o._storage,u=s[e],c=this.count(),h=new(a(this))(c),d=0,p=A(1/t),g=this.getRawIndex(0);h[d++]=g;for(var m=1;m<c-1;m+=p){for(var v=Math.min(m+p,c-1),y=Math.min(m+2*p,c),b=(y+v)/2,_=0,x=v;x<y;x++){var w=this.getRawIndex(x),S=u[w];isNaN(S)||(_+=S)}_/=y-v;var T=m,O=Math.min(m+p,c),M=m-1,E=u[g];n=-1,i=T;for(x=T;x<O;x++){w=this.getRawIndex(x),S=u[w];isNaN(S)||(r=Math.abs((M-b)*(S-E)-(M-x)*(_-E)),r>n&&(n=r,i=w))}h[d++]=i,g=i}return h[d++]=this.getRawIndex(c-1),o._count=d,o._indices=h,o.getRawIndex=l,o},e.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new y["a"](n,t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new b["a"](e?e.getIndices():[],this.getIndices(),(function(t){return u(e,t)}),(function(e){return u(t,e)}))},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},C(e)?v["extend"](this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],r=n&&n[t];return null==r?this.getVisual(t):r},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||(r=n[e]={});var i=r[t];return null==i&&(i=this.getVisual(t),v["isArray"](i)?i=i.slice():C(i)&&(i=v["extend"]({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,C(t)?v["extend"](r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){if(C(e))for(var n in e)e.hasOwnProperty(n)&&this.setLayout(n,e[n]);else this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?v["extend"](this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel;if(t){var r=Object(O["a"])(t);r.dataIndex=e,r.dataType=this.dataType,r.seriesIndex=n&&n.seriesIndex,"group"===t.type&&t.traverse(g,t)}this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){v["each"](this._graphicEls,(function(n,r){n&&e&&e.call(t,n,r)}))},e.prototype.cloneShallow=function(t){if(!t){var n=I(this.dimensions,this.getDimensionInfo,this);t=new e(n,this.hostModel)}if(t._storage=this._storage,t._storageArr=this._storageArr,m(t,this),this._indices){var r=this._indices.constructor;if(r===Array){var i=this._indices.length;t._indices=new r(i);for(var a=0;a<i;a++)t._indices[a]=this._indices[a]}else t._indices=new r(this._indices)}else t._indices=null;return t.getRawIndex=t._indices?l:s,t},e.prototype.wrapMethod=function(e,t){var n=this[e];"function"===typeof n&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(v["slice"](arguments)))})},e.internalField=function(){function t(e,t,n,r){return Object(M["d"])(e[r],this._dimensionInfos[t])}function n(e){var t=e.constructor;return t===Array?e.slice():new t(e)}r={arrayRows:t,objectRows:function(e,t,n,r){return Object(M["d"])(e[t],this._dimensionInfos[t])},keyedColumns:t,original:function(e,t,n,r){var i=e&&(null==e.value?e:e.value);return!this._rawData.pure&&Object(T["m"])(e)&&(this.hasItemOption=!0),Object(M["d"])(i instanceof Array?i[r]:i,this._dimensionInfos[t])},typedArray:function(e,t,n,r){return e[r]}},i=function(e){var t=e._invertedIndicesMap;v["each"](t,(function(n,r){var i=e._dimensionInfos[r],a=i.ordinalMeta;if(a){n=t[r]=new N(a.categories.length);for(var o=0;o<n.length;o++)n[o]=L;for(o=0;o<e._count;o++)n[e.get(r,o)]=o}}))},c=function(e,t,n,r){var i,a=e._storageArr[t];return a&&(i=a[r],n&&n.categories.length&&(i=n.categories[i])),Object(T["e"])(i,null)},a=function(e){return e._rawCount>65535?R:j},o=function(e,t,n,r){var i=k[t.type],a=t.name;if(r){var o=e[a],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;u<s;u++)l[u]=o[u];e[a]=l}}else e[a]=new i(n)},s=function(e){return e},l=function(e){return e<this._count&&e>=0?this._indices[e]:-1},u=function(e,t){var n=e._idList[t];return null==n&&null!=e._idDimIdx&&(n=c(e,e._idDimIdx,e._idOrdinalMeta,t)),null==n&&(n=P+t),n},d=function(e){return v["isArray"](e)||(e=null!=e?[e]:[]),e},function(e,t){for(var n=0;n<t.length;n++)e._dimensionInfos[t[n]]||console.error("Unkown dimension "+t[n])},f=function(t,r){var i=t.dimensions,a=new e(I(i,t.getDimensionInfo,t),t.hostModel);m(a,t);for(var o=a._storage={},s=t._storage,l=a._storageArr=[],u=0;u<i.length;u++){var c=i[u];s[c]&&(v["indexOf"](r,c)>=0?(o[c]=n(s[c]),a._rawExtent[c]=p(),a._extent[c]=null):o[c]=s[c],l.push(o[c]))}return a},p=function(){return[1/0,-1/0]},g=function(e){var t=Object(O["a"])(e),n=Object(O["a"])(this);t.seriesIndex=n.seriesIndex,t.dataIndex=n.dataIndex,t.dataType=n.dataType},m=function(e,t){v["each"](F.concat(t.__wrappedMethods||[]),(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e.__wrappedMethods=t.__wrappedMethods,v["each"](z,(function(n){e[n]=v["clone"](t[n])})),e._calculationInfo=v["extend"]({},t._calculationInfo)},h=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,a=e._idDimIdx,o=n[t],s=r[t];if(null==o&&null!=i&&(n[t]=o=c(e,i,e._nameOrdinalMeta,t)),null==s&&null!=a&&(r[t]=s=c(e,a,e._idOrdinalMeta,t)),null==s&&null!=o){var l=e._nameRepeatCount,u=l[o]=(l[o]||0)+1;s=o,u>1&&(s+="__ec__"+u),r[t]=s}}}(),e}();t["a"]=B},m1m1:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n("6BwO"),i=n("x5Va"),a=n("3Bqt"),o=n("XVzY"),s=n("bTwz"),l=n("a0Kb"),u=n("XGRq"),c=[],h={registerPreprocessor:r["u"],registerProcessor:r["v"],registerPostInit:r["s"],registerPostUpdate:r["t"],registerAction:r["m"],registerCoordinateSystem:r["n"],registerLayout:r["o"],registerVisual:r["y"],registerTransform:r["x"],registerLoading:r["p"],registerMap:r["r"],PRIORITY:r["a"],ComponentModel:o["a"],ComponentView:i["a"],SeriesModel:s["a"],ChartView:a["a"],registerComponentModel:function(e){o["a"].registerClass(e)},registerComponentView:function(e){i["a"].registerClass(e)},registerSeriesModel:function(e){s["a"].registerClass(e)},registerChartView:function(e){a["a"].registerClass(e)},registerSubTypeDefaulter:function(e,t){o["a"].registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Object(u["registerPainter"])(e,t)}};function d(e){Object(l["isArray"])(e)?Object(l["each"])(e,(function(e){d(e)})):Object(l["indexOf"])(c,e)>=0||(c.push(e),Object(l["isFunction"])(e)&&(e={install:e}),e.install(h))}},m52V:function(e,t){e.exports=!1},mAbK:function(e,t){e.exports={}},mDwk:function(e,t,n){"use strict";var r=n("zb3V"),i=n("sKBc"),a=n("6+zH"),o=n("Rvel"),s=n("gI5n"),l=n("LD4z"),u=n("a0Kb"),c=function(e,t,n,r){while(n<r){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},h=function(e){function t(t){var n=e.call(this,t)||this;return n.type="time",n}return Object(r["b"])(t,e),t.prototype.getLabel=function(e){var t=this.getSetting("useUTC");return Object(a["h"])(e.value,a["i"][Object(a["l"])(Object(a["m"])(this._minLevelUnit))]||a["i"].second,t,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,t,n){var r=this.getSetting("useUTC"),i=this.getSetting("locale");return Object(a["r"])(e,t,n,i,r)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,r=[];if(!t)return r;r.push({value:n[0],level:0});var i=this.getSetting("useUTC"),a=_(this._minLevelUnit,this._approxInterval,i,n);return r=r.concat(a),r.push({value:n[1],level:0}),r},t.prototype.niceExtent=function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=a["a"],t[1]+=a["a"]),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-a["a"]}this.niceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.niceTicks=function(e,t,n){e=e||10;var r=this._extent,i=r[1]-r[0];this._approxInterval=i/e,null!=t&&this._approxInterval<t&&(this._approxInterval=t),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var a=d.length,o=Math.min(c(d,this._approxInterval,0,a),a-1);this._interval=d[o][1],this._minLevelUnit=d[Math.max(o-1,0)][0]},t.prototype.parse=function(e){return"number"===typeof e?e:+i["n"](e)},t.prototype.contain=function(e){return o["a"](this.parse(e),this._extent)},t.prototype.normalize=function(e){return o["d"](this.parse(e),this._extent)},t.prototype.scale=function(e){return o["e"](e,this._extent)},t.type="time",t}(s["a"]),d=[["second",a["d"]],["minute",a["c"]],["hour",a["b"]],["quarter-day",6*a["b"]],["half-day",12*a["b"]],["day",1.2*a["a"]],["half-week",3.5*a["a"]],["week",7*a["a"]],["month",31*a["a"]],["quarter",95*a["a"]],["half-year",a["e"]/2],["year",a["e"]]];function f(e,t,n,r){var o=i["n"](t),s=i["n"](n),l=function(e){return Object(a["n"])(o,e,r)===Object(a["n"])(s,e,r)},u=function(){return l("year")},c=function(){return u()&&l("month")},h=function(){return c()&&l("day")},d=function(){return h()&&l("hour")},f=function(){return d()&&l("minute")},p=function(){return f()&&l("second")},g=function(){return p()&&l("millisecond")};switch(e){case"year":return u();case"month":return c();case"day":return h();case"hour":return d();case"minute":return f();case"second":return p();case"millisecond":return g()}}function p(e,t){return e/=a["a"],e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function g(e){var t=30*a["a"];return e/=t,e>6?6:e>3?3:e>2?2:1}function m(e){return e/=a["b"],e>12?12:e>6?6:e>3.5?4:e>2?2:1}function v(e,t){return e/=t?a["c"]:a["d"],e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function y(e){return i["l"](e,!0)}function b(e,t,n){var r=new Date(e);switch(Object(a["m"])(t)){case"year":case"month":r[Object(a["x"])(n)](0);case"day":r[Object(a["g"])(n)](1);case"hour":r[Object(a["p"])(n)](0);case"minute":r[Object(a["v"])(n)](0);case"second":r[Object(a["A"])(n)](0),r[Object(a["t"])(n)](0)}return r.getTime()}function _(e,t,n,r){var i=1e4,o=a["B"],s=0;function l(e,t,n,i,a,o,s){var l=new Date(t),u=t,c=l[i]();while(u<n&&u<=r[1])s.push({value:u}),c+=e,l[a](c),u=l.getTime();s.push({value:u,notAdd:!0})}function c(e,i,o){var s=[],u=!i.length;if(!f(Object(a["m"])(e),r[0],r[1],n)){u&&(i=[{value:b(new Date(r[0]),e,n)},{value:r[1]}]);for(var c=0;c<i.length-1;c++){var h=i[c].value,d=i[c+1].value;if(h!==d){var _=void 0,x=void 0,w=void 0,S=!1;switch(e){case"year":_=Math.max(1,Math.round(t/a["a"]/365)),x=Object(a["j"])(n),w=Object(a["k"])(n);break;case"half-year":case"quarter":case"month":_=g(t),x=Object(a["w"])(n),w=Object(a["x"])(n);break;case"week":case"half-week":case"day":_=p(t,31),x=Object(a["f"])(n),w=Object(a["g"])(n),S=!0;break;case"half-day":case"quarter-day":case"hour":_=m(t),x=Object(a["o"])(n),w=Object(a["p"])(n);break;case"minute":_=v(t,!0),x=Object(a["u"])(n),w=Object(a["v"])(n);break;case"second":_=v(t,!1),x=Object(a["z"])(n),w=Object(a["A"])(n);break;case"millisecond":_=y(t),x=Object(a["s"])(n),w=Object(a["t"])(n);break}l(_,h,d,x,w,S,s),"year"===e&&o.length>1&&0===c&&o.unshift({value:o[0].value-_})}}for(c=0;c<s.length;c++)o.push(s[c]);return s}}for(var h=[],d=[],_=0,x=0,w=0;w<o.length&&s++<i;++w){var S=Object(a["m"])(o[w]);if(Object(a["q"])(o[w])){c(o[w],h[h.length-1]||[],d);var T=o[w+1]?Object(a["m"])(o[w+1]):null;if(S!==T){if(d.length){x=_,d.sort((function(e,t){return e.value-t.value}));for(var O=[],M=0;M<d.length;++M){var E=d[M].value;0!==M&&d[M-1].value===E||(O.push(d[M]),E>=r[0]&&E<=r[1]&&_++)}var A=(r[1]-r[0])/t;if(_>1.5*A&&x>A/1.5)break;if(h.push(O),_>A||e===o[w])break}d=[]}}}var C=Object(u["filter"])(Object(u["map"])(h,(function(e){return Object(u["filter"])(e,(function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd}))})),(function(e){return e.length>0})),I=[],D=C.length-1;for(w=0;w<C.length;++w)for(var L=C[w],P=0;P<L.length;++P)I.push({value:L[P].value,level:D-w});I.sort((function(e,t){return e.value-t.value}));var k=[];for(w=0;w<I.length;++w)0!==w&&I[w].value===I[w-1].value||k.push(I[w]);return k}l["a"].registerClass(h),t["a"]=h},"mKn/":function(e,t,n){var r=n("kPvK"),i=n("mAbK"),a=r("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||o[a]===e)}},mODz:function(e,t,n){var r=n("HIsA"),i=n("5isN"),a=n("9HG5"),o=!a((function(e){Array.from(e)}));r({target:"Array",stat:!0,forced:o},{from:i})},mTX6:function(e,t,n){"use strict";var r=n("HIsA"),i=n("m52V"),a=n("hXyk"),o=n("DDwO"),s=n("Ji6T");r({target:"Set",proto:!0,real:!0,forced:i},{isDisjointFrom:function(e){var t=a(this),n=o(t.has);return!s(e,(function(e){if(!0===n.call(t,e))return s.stop()})).stopped}})},mVYA:function(e,t,n){"use strict";n.r(t);var r=n("xwgP"),i=n.n(r),a=n("kvV8"),o=n("lBQG"),s=i.a.memo(n("Rsk4").default["gl-demo"].component);t["default"]=function(){return i.a.createElement(i.a.Fragment,null,i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"markdown"},i.a.createElement("h2",{id:"web-gl"},i.a.createElement(a["AnchorLink"],{to:"#web-gl","aria-hidden":"true",tabIndex:-1},i.a.createElement("span",{className:["icon","icon-link"]})),"Web GL")),i.a.createElement(o["default"],n("Rsk4").default["gl-demo"].previewerProps,i.a.createElement(s,null))))}},ma2j:function(e,t,n){"use strict";var r=n("hXyk");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},masK:function(e,t,n){var r=n("GUTS");e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},me7Q:function(e,t,n){"use strict";var r=n("HIsA"),i=n("afop"),a=n("kI7s"),o=n("UPu9"),s=n("J7X1"),l=n("D8FR"),u=n("GUTS"),c=n("kPvK"),h=n("m52V"),d=n("mAbK"),f=n("Krz3"),p=f.IteratorPrototype,g=f.BUGGY_SAFARI_ITERATORS,m=c("iterator"),v="keys",y="values",b="entries",_=function(){return this};e.exports=function(e,t,n,c,f,x,w){i(n,t,c);var S,T,O,M=function(e){if(e===f&&D)return D;if(!g&&e in C)return C[e];switch(e){case v:return function(){return new n(this,e)};case y:return function(){return new n(this,e)};case b:return function(){return new n(this,e)}}return function(){return new n(this)}},E=t+" Iterator",A=!1,C=e.prototype,I=C[m]||C["@@iterator"]||f&&C[f],D=!g&&I||M(f),L="Array"==t&&C.entries||I;if(L&&(S=a(L.call(new e)),p!==Object.prototype&&S.next&&(h||a(S)===p||(o?o(S,p):"function"!=typeof S[m]&&l(S,m,_)),s(S,E,!0,!0),h&&(d[E]=_))),f==y&&I&&I.name!==y&&(A=!0,D=function(){return I.call(this)}),h&&!w||C[m]===D||l(C,m,D),d[t]=D,f)if(T={values:M(y),keys:x?D:M(v),entries:M(b)},w)for(O in T)(g||A||!(O in C))&&u(C,O,T[O]);else r({target:t,proto:!0,forced:g||A},T);return T}},mlmj:function(e,t,n){"use strict";var r=n("HIsA"),i=n("m52V"),a=n("bXon"),o=n("hXyk"),s=n("DDwO"),l=n("70zE"),u=n("Ji6T");r({target:"Set",proto:!0,real:!0,forced:i},{symmetricDifference:function(e){var t=o(this),n=new(l(t,a("Set")))(t),r=s(n["delete"]),i=s(n.add);return u(e,(function(e){r.call(n,e)||i.call(n,e)})),n}})},"n+WB":function(e,t,n){var r=n("hXyk"),i=n("pxmn"),a=n("0MLT");e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=a.f(e),o=n.resolve;return o(t),n.promise}},n2ef:function(e,t,n){var r=n("pxmn");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},n2r9:function(e,t,n){"use strict";var r=n("HIsA"),i=n("afop"),a=n("JzK+"),o=n("2I03"),s=n("DDwO"),l=n("hXyk"),u=n("IRht"),c=n("ihzt"),h=n("ma2j"),d=n("D8FR"),f=n("7+LC"),p=n("kPvK"),g=n("70zE"),m=n("OOuR"),v=n("twJ5"),y=n("m52V"),b=p("matchAll"),_="RegExp String",x=_+" Iterator",w=v.set,S=v.getterFor(x),T=RegExp.prototype,O=T.exec,M="".matchAll,E=!!M&&!f((function(){"a".matchAll(/./)})),A=function(e,t){var n,r=e.exec;if("function"==typeof r){if(n=r.call(e,t),"object"!=typeof n)throw TypeError("Incorrect exec result");return n}return O.call(e,t)},C=i((function(e,t,n,r){w(this,{type:x,regexp:e,string:t,global:n,unicode:r,done:!1})}),_,(function(){var e=S(this);if(e.done)return{value:void 0,done:!0};var t=e.regexp,n=e.string,r=A(t,n);return null===r?{value:void 0,done:e.done=!0}:e.global?(""==String(r[0])&&(t.lastIndex=m(n,o(t.lastIndex),e.unicode)),{value:r,done:!1}):(e.done=!0,{value:r,done:!1})})),I=function(e){var t,n,r,i,a,s,u=l(this),c=String(e);return t=g(u,RegExp),n=u.flags,void 0===n&&u instanceof RegExp&&!("flags"in T)&&(n=h.call(u)),r=void 0===n?"":String(n),i=new t(t===RegExp?u.source:u,r),a=!!~r.indexOf("g"),s=!!~r.indexOf("u"),i.lastIndex=o(u.lastIndex),new C(i,c,a,s)};r({target:"String",proto:!0,forced:E},{matchAll:function(e){var t,n,r,i,o=a(this);if(null!=e){if(c(e)&&(t=String(a("flags"in T?e.flags:h.call(e))),!~t.indexOf("g")))throw TypeError("`.matchAll` does not allow non-global regexes");if(E)return M.apply(o,arguments);if(r=e[b],void 0===r&&y&&"RegExp"==u(e)&&(r=I),null!=r)return s(r).call(e,o)}else if(E)return M.apply(o,arguments);return n=String(o),i=new RegExp(e,"g"),y?I.call(i,n):i[b](n)}}),y||b in T||d(T,b,I)},nApx:function(e,t,n){"use strict";n.d(t,"d",(function(){return f})),n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return v})),n.d(t,"e",(function(){return y})),n.d(t,"a",(function(){return b}));var r=n("T3M/"),i=n("Yc1X"),a=Math.min,o=Math.max,s=Math.sin,l=Math.cos,u=2*Math.PI,c=r["create"](),h=r["create"](),d=r["create"]();function f(e,t,n){if(0!==e.length){for(var r=e[0],i=r[0],s=r[0],l=r[1],u=r[1],c=1;c<e.length;c++)r=e[c],i=a(i,r[0]),s=o(s,r[0]),l=a(l,r[1]),u=o(u,r[1]);t[0]=i,t[1]=l,n[0]=s,n[1]=u}}function p(e,t,n,r,i,s){i[0]=a(e,n),i[1]=a(t,r),s[0]=o(e,n),s[1]=o(t,r)}var g=[],m=[];function v(e,t,n,r,s,l,u,c,h,d){var f=i["c"],p=i["a"],v=f(e,n,s,u,g);h[0]=1/0,h[1]=1/0,d[0]=-1/0,d[1]=-1/0;for(var y=0;y<v;y++){var b=p(e,n,s,u,g[y]);h[0]=a(b,h[0]),d[0]=o(b,d[0])}v=f(t,r,l,c,m);for(y=0;y<v;y++){var _=p(t,r,l,c,m[y]);h[1]=a(_,h[1]),d[1]=o(_,d[1])}h[0]=a(e,h[0]),d[0]=o(e,d[0]),h[0]=a(u,h[0]),d[0]=o(u,d[0]),h[1]=a(t,h[1]),d[1]=o(t,d[1]),h[1]=a(c,h[1]),d[1]=o(c,d[1])}function y(e,t,n,r,s,l,u,c){var h=i["j"],d=i["h"],f=o(a(h(e,n,s),1),0),p=o(a(h(t,r,l),1),0),g=d(e,n,s,f),m=d(t,r,l,p);u[0]=a(e,s,g),u[1]=a(t,l,m),c[0]=o(e,s,g),c[1]=o(t,l,m)}function b(e,t,n,i,a,o,f,p,g){var m=r["min"],v=r["max"],y=Math.abs(a-o);if(y%u<1e-4&&y>1e-4)return p[0]=e-n,p[1]=t-i,g[0]=e+n,void(g[1]=t+i);if(c[0]=l(a)*n+e,c[1]=s(a)*i+t,h[0]=l(o)*n+e,h[1]=s(o)*i+t,m(p,c,h),v(g,c,h),a%=u,a<0&&(a+=u),o%=u,o<0&&(o+=u),a>o&&!f?o+=u:a<o&&f&&(a+=u),f){var b=o;o=a,a=b}for(var _=0;_<o;_+=Math.PI/2)_>a&&(d[0]=l(_)*n+e,d[1]=s(_)*i+t,m(p,d,p),v(g,d,g))}},nMhH:function(e,t,n){var r=n("HIsA"),i=n("Ji6T"),a=n("G70G");r({target:"Object",stat:!0},{fromEntries:function(e){var t={};return i(e,(function(e,n){a(t,e,n)}),void 0,!0),t}})},"nPP+":function(e,t,n){"use strict";var r=n("sqIH"),i=n("hXyk"),a=n("JzK+"),o=n("nVx8"),s=n("WdrS");r("search",1,(function(e,t,n){return[function(t){var n=a(this),r=void 0==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var a=i(e),l=String(this),u=a.lastIndex;o(u,0)||(a.lastIndex=0);var c=s(a,l);return o(a.lastIndex,u)||(a.lastIndex=u),null===c?-1:c.index}]}))},nSFs:function(e,t,n){"use strict";function r(e,t,n){var r=null==t.x?0:t.x,i=null==t.x2?1:t.x2,a=null==t.y?0:t.y,o=null==t.y2?0:t.y2;t.global||(r=r*n.width+n.x,i=i*n.width+n.x,a=a*n.height+n.y,o=o*n.height+n.y),r=isNaN(r)?0:r,i=isNaN(i)?1:i,a=isNaN(a)?0:a,o=isNaN(o)?0:o;var s=e.createLinearGradient(r,a,i,o);return s}function i(e,t,n){var r=n.width,i=n.height,a=Math.min(r,i),o=null==t.x?.5:t.x,s=null==t.y?.5:t.y,l=null==t.r?.5:t.r;t.global||(o=o*r+n.x,s=s*i+n.y,l*=a);var u=e.createRadialGradient(o,s,0,o,s,l);return u}function a(e,t,n){for(var a="radial"===t.type?i(e,t,n):r(e,t,n),o=t.colorStops,s=0;s<o.length;s++)a.addColorStop(o[s].offset,o[s].color);return a}function o(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return o}))},nVx8:function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},nXFK:function(e,t,n){var r=n("7+LC"),i=n("kPvK"),a=n("m52V"),o=i("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t["delete"]("b"),n+=r+e})),a&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[o]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://\u0442\u0435\u0441\u0442").host||"#%D0%B1"!==new URL("http://a#\u0431").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},nsiD:function(e,t,n){"use strict";var r=n("HIsA"),i=n("Hiyu"),a=n("12fA"),o=n("NVMI"),s=n("DDwO"),l=n("2RC6");i&&r({target:"Object",proto:!0,forced:a},{__defineSetter__:function(e,t){l.f(o(this),e,{set:s(t),enumerable:!0,configurable:!0})}})},nufT:function(e,t,n){var r=n("HIsA"),i=n("icJ8"),a=n("hXyk"),o=i.keys,s=i.toKey;r({target:"Reflect",stat:!0},{getOwnMetadataKeys:function(e){var t=arguments.length<2?void 0:s(arguments[1]);return o(a(e),t)}})},o0xK:function(e,t,n){"use strict";var r=n("HIsA"),i=n("m52V"),a=n("hXyk"),o=n("40mc"),s=n("YjHi"),l=n("Ji6T");r({target:"Map",proto:!0,real:!0,forced:i},{every:function(e){var t=a(this),n=s(t),r=o(e,arguments.length>1?arguments[1]:void 0,3);return!l(n,(function(e,n){if(!r(n,e,t))return l.stop()}),void 0,!0,!0).stopped}})},o1AR:function(e,t,n){"use strict";var r=n("HIsA"),i=n("Hiyu"),a=n("12fA"),o=n("NVMI"),s=n("n2ef"),l=n("kI7s"),u=n("qmtO").f;i&&r({target:"Object",proto:!0,forced:a},{__lookupGetter__:function(e){var t,n=o(this),r=s(e,!0);do{if(t=u(n,r))return t.get}while(n=l(n))}})},o9qH:function(e,t,n){"use strict";var r=n("pxmn"),i=n("2RC6"),a=n("kI7s"),o=n("kPvK"),s=o("hasInstance"),l=Function.prototype;s in l||i.f(l,s,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;while(e=a(e))if(this.prototype===e)return!0;return!1}})},oDub:function(e,t,n){var r=n("bVFb");r("asyncIterator")},oFyO:function(e,t,n){"use strict";var r=n("HIsA"),i=n("m52V"),a=n("bXon"),o=n("hXyk"),s=n("DDwO"),l=n("70zE"),u=n("Ji6T");r({target:"Set",proto:!0,real:!0,forced:i},{difference:function(e){var t=o(this),n=new(l(t,a("Set")))(t),r=s(n["delete"]);return u(e,(function(e){r.call(n,e)})),n}})},oTOb:function(e,t,n){"use strict";var r=n("2hCa"),i=n("JY8B"),a=n("mAbK"),o=n("twJ5"),s=n("me7Q"),l="Array Iterator",u=o.set,c=o.getterFor(l);e.exports=s(Array,"Array",(function(e,t){u(this,{type:l,target:r(e),index:0,kind:t})}),(function(){var e=c(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),a.Arguments=a.Array,i("keys"),i("values"),i("entries")},ob7Q:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}function i(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(n.push(o.value),t&&n.length===t)break}catch(l){i=!0,a=l}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw a}}return n}}n.r(t),n.d(t,"default",(function(){return s}));var a=n("D0A+");function o(){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(e,t){return r(e)||i(e,t)||Object(a["a"])(e,t)||o()}},ochL:function(e,t,n){"use strict";var r=n("xwgP"),i=n("dZOt"),a=n("dske");function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(o(227));function s(e,t,n,r,i,a,o,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var l=!1,u=null,c=!1,h=null,d={onError:function(e){l=!0,u=e}};function f(e,t,n,r,i,a,o,c,h){l=!1,u=null,s.apply(d,arguments)}function p(e,t,n,r,i,a,s,d,p){if(f.apply(this,arguments),l){if(!l)throw Error(o(198));var g=u;l=!1,u=null,c||(c=!0,h=g)}}var g=null,m=null,v=null;function y(e,t,n){var r=e.type||"unknown-event";e.currentTarget=v(n),p(r,t,void 0,e),e.currentTarget=null}var b=null,_={};function x(){if(b)for(var e in _){var t=_[e],n=b.indexOf(e);if(!(-1<n))throw Error(o(96,e));if(!S[n]){if(!t.extractEvents)throw Error(o(97,e));for(var r in S[n]=t,n=t.eventTypes,n){var i=void 0,a=n[r],s=t,l=r;if(T.hasOwnProperty(l))throw Error(o(99,l));T[l]=a;var u=a.phasedRegistrationNames;if(u){for(i in u)u.hasOwnProperty(i)&&w(u[i],s,l);i=!0}else a.registrationName?(w(a.registrationName,s,l),i=!0):i=!1;if(!i)throw Error(o(98,r,e))}}}}function w(e,t,n){if(O[e])throw Error(o(100,e));O[e]=t,M[e]=t.eventTypes[n].dependencies}var S=[],T={},O={},M={};function E(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!_.hasOwnProperty(t)||_[t]!==r){if(_[t])throw Error(o(102,t));_[t]=r,n=!0}}n&&x()}var A=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),C=null,I=null,D=null;function L(e){if(e=m(e)){if("function"!==typeof C)throw Error(o(280));var t=e.stateNode;t&&(t=g(t),C(e.stateNode,e.type,t))}}function P(e){I?D?D.push(e):D=[e]:I=e}function k(){if(I){var e=I,t=D;if(D=I=null,L(e),t)for(e=0;e<t.length;e++)L(t[e])}}function R(e,t){return e(t)}function N(e,t,n,r,i){return e(t,n,r,i)}function j(){}var F=R,z=!1,B=!1;function V(){null===I&&null===D||(j(),k())}function G(e,t,n){if(B)return e(t,n);B=!0;try{return F(e,t,n)}finally{B=!1,V()}}var H=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,U=Object.prototype.hasOwnProperty,W={},X={};function Y(e){return!!U.call(X,e)||!U.call(W,e)&&(H.test(e)?X[e]=!0:(W[e]=!0,!1))}function K(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),"data-"!==e&&"aria-"!==e));default:return!1}}function q(e,t,n,r){if(null===t||"undefined"===typeof t||K(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Z(e,t,n,r,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a}var $={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){$[e]=new Z(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];$[t]=new Z(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){$[e]=new Z(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){$[e]=new Z(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){$[e]=new Z(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){$[e]=new Z(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){$[e]=new Z(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){$[e]=new Z(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){$[e]=new Z(e,5,!1,e.toLowerCase(),null,!1)}));var Q=/[\-:]([a-z])/g;function J(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(Q,J);$[t]=new Z(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(Q,J);$[t]=new Z(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(Q,J);$[t]=new Z(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){$[e]=new Z(e,1,!1,e.toLowerCase(),null,!1)})),$.xlinkHref=new Z("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){$[e]=new Z(e,1,!1,e.toLowerCase(),null,!0)}));var ee=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function te(e,t,n,r){var i=$.hasOwnProperty(t)?$[t]:null,a=null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]));a||(q(t,n,i,r)&&(n=null),r||null===i?Y(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(i=i.type,n=3===i||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}ee.hasOwnProperty("ReactCurrentDispatcher")||(ee.ReactCurrentDispatcher={current:null}),ee.hasOwnProperty("ReactCurrentBatchConfig")||(ee.ReactCurrentBatchConfig={suspense:null});var ne=/^(.*)[\\\/]/,re="function"===typeof Symbol&&Symbol.for,ie=re?Symbol.for("react.element"):60103,ae=re?Symbol.for("react.portal"):60106,oe=re?Symbol.for("react.fragment"):60107,se=re?Symbol.for("react.strict_mode"):60108,le=re?Symbol.for("react.profiler"):60114,ue=re?Symbol.for("react.provider"):60109,ce=re?Symbol.for("react.context"):60110,he=re?Symbol.for("react.concurrent_mode"):60111,de=re?Symbol.for("react.forward_ref"):60112,fe=re?Symbol.for("react.suspense"):60113,pe=re?Symbol.for("react.suspense_list"):60120,ge=re?Symbol.for("react.memo"):60115,me=re?Symbol.for("react.lazy"):60116,ve=re?Symbol.for("react.block"):60121,ye="function"===typeof Symbol&&Symbol.iterator;function be(e){return null===e||"object"!==typeof e?null:(e=ye&&e[ye]||e["@@iterator"],"function"===typeof e?e:null)}function _e(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}function xe(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case oe:return"Fragment";case ae:return"Portal";case le:return"Profiler";case se:return"StrictMode";case fe:return"Suspense";case pe:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case ce:return"Context.Consumer";case ue:return"Context.Provider";case de:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case ge:return xe(e.type);case ve:return xe(e.render);case me:if(e=1===e._status?e._result:null)return xe(e)}return null}function we(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,i=e._debugSource,a=xe(e.type);n=null,r&&(n=xe(r.type)),r=a,a="",i?a=" (at "+i.fileName.replace(ne,"")+":"+i.lineNumber+")":n&&(a=" (created by "+n+")"),n="\n in "+(r||"Unknown")+a}t+=n,e=e.return}while(e);return t}function Se(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Te(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Oe(e){var t=Te(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Me(e){e._valueTracker||(e._valueTracker=Oe(e))}function Ee(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Te(e)?e.checked?"true":"false":e.value),e=r,e!==n&&(t.setValue(e),!0)}function Ae(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Ce(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Se(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Ie(e,t){t=t.checked,null!=t&&te(e,"checked",t,!1)}function De(e,t){Ie(e,t);var n=Se(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Pe(e,t.type,n):t.hasOwnProperty("defaultValue")&&Pe(e,t.type,Se(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Le(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,""!==n&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Pe(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ke(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}function Re(e,t){return e=i({children:void 0},t),(t=ke(t.children))&&(e.children=t),e}function Ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Se(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function je(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Fe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Se(n)}}function ze(e,t){var n=Se(t.value),r=Se(t.defaultValue);null!=n&&(n=""+n,n!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Be(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Ve={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Ge(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function He(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Ge(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Ue,We=function(e){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n,r,i)}))}:e}((function(e,t){if(e.namespaceURI!==Ve.svg||"innerHTML"in e)e.innerHTML=t;else{for(Ue=Ue||document.createElement("div"),Ue.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function Xe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function Ye(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ke={animationend:Ye("Animation","AnimationEnd"),animationiteration:Ye("Animation","AnimationIteration"),animationstart:Ye("Animation","AnimationStart"),transitionend:Ye("Transition","TransitionEnd")},qe={},Ze={};function $e(e){if(qe[e])return qe[e];if(!Ke[e])return e;var t,n=Ke[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ze)return qe[e]=n[t];return e}A&&(Ze=document.createElement("div").style,"AnimationEvent"in window||(delete Ke.animationend.animation,delete Ke.animationiteration.animation,delete Ke.animationstart.animation),"TransitionEvent"in window||delete Ke.transitionend.transition);var Qe=$e("animationend"),Je=$e("animationiteration"),et=$e("animationstart"),tt=$e("transitionend"),nt="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),rt=new("function"===typeof WeakMap?WeakMap:Map);function it(e){var t=rt.get(e);return void 0===t&&(t=new Map,rt.set(e,t)),t}function at(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{t=e,0!==(1026&t.effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function ot(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(e=e.alternate,null!==e&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function st(e){if(at(e)!==e)throw Error(o(188))}function lt(e){var t=e.alternate;if(!t){if(t=at(e),null===t)throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(r=i.return,null!==r){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return st(i),e;if(a===r)return st(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}function ut(e){if(e=lt(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function ct(e,t){if(null==t)throw Error(o(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function ht(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var dt=null;function ft(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)y(e,t[r],n[r]);else t&&y(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function pt(e){if(null!==e&&(dt=ct(dt,e)),e=dt,dt=null,e){if(ht(e,ft),dt)throw Error(o(95));if(c)throw e=h,c=!1,h=null,e}}function gt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function mt(e){if(!A)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t="function"===typeof t[e]),t}var vt=[];function yt(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>vt.length&&vt.push(e)}function bt(e,t,n,r){if(vt.length){var i=vt.pop();return i.topLevelType=e,i.eventSystemFlags=r,i.nativeEvent=t,i.targetInst=n,i}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function _t(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;t=n.tag,5!==t&&6!==t||e.ancestors.push(n),n=Vn(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var i=gt(e.nativeEvent);r=e.topLevelType;var a=e.nativeEvent,o=e.eventSystemFlags;0===n&&(o|=64);for(var s=null,l=0;l<S.length;l++){var u=S[l];u&&(u=u.extractEvents(r,t,a,i,o))&&(s=ct(s,u))}pt(s)}}function xt(e,t,n){if(!n.has(e)){switch(e){case"scroll":rn(t,"scroll",!0);break;case"focus":case"blur":rn(t,"focus",!0),rn(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":mt(e)&&rn(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===nt.indexOf(e)&&nn(e,t)}n.set(e,null)}}var wt,St,Tt,Ot=!1,Mt=[],Et=null,At=null,Ct=null,It=new Map,Dt=new Map,Lt=[],Pt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),kt="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Rt(e,t){var n=it(t);Pt.forEach((function(e){xt(e,t,n)})),kt.forEach((function(e){xt(e,t,n)}))}function Nt(e,t,n,r,i){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:i,container:r}}function jt(e,t){switch(e){case"focus":case"blur":Et=null;break;case"dragenter":case"dragleave":At=null;break;case"mouseover":case"mouseout":Ct=null;break;case"pointerover":case"pointerout":It.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dt.delete(t.pointerId)}}function Ft(e,t,n,r,i,a){return null===e||e.nativeEvent!==a?(e=Nt(t,n,r,i,a),null!==t&&(t=Gn(t),null!==t&&St(t)),e):(e.eventSystemFlags|=r,e)}function zt(e,t,n,r,i){switch(t){case"focus":return Et=Ft(Et,e,t,n,r,i),!0;case"dragenter":return At=Ft(At,e,t,n,r,i),!0;case"mouseover":return Ct=Ft(Ct,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return It.set(a,Ft(It.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,Dt.set(a,Ft(Dt.get(a)||null,e,t,n,r,i)),!0}return!1}function Bt(e){var t=Vn(e.target);if(null!==t){var n=at(t);if(null!==n)if(t=n.tag,13===t){if(t=ot(n),null!==t)return e.blockedOn=t,void a.unstable_runWithPriority(e.priority,(function(){Tt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Vt(e){if(null!==e.blockedOn)return!1;var t=ln(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=Gn(t);return null!==n&&St(n),e.blockedOn=t,!1}return!0}function Gt(e,t,n){Vt(e)&&n.delete(t)}function Ht(){for(Ot=!1;0<Mt.length;){var e=Mt[0];if(null!==e.blockedOn){e=Gn(e.blockedOn),null!==e&&wt(e);break}var t=ln(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:Mt.shift()}null!==Et&&Vt(Et)&&(Et=null),null!==At&&Vt(At)&&(At=null),null!==Ct&&Vt(Ct)&&(Ct=null),It.forEach(Gt),Dt.forEach(Gt)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,Ot||(Ot=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Ht)))}function Wt(e){function t(t){return Ut(t,e)}if(0<Mt.length){Ut(Mt[0],e);for(var n=1;n<Mt.length;n++){var r=Mt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Et&&Ut(Et,e),null!==At&&Ut(At,e),null!==Ct&&Ut(Ct,e),It.forEach(t),Dt.forEach(t),n=0;n<Lt.length;n++)r=Lt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Lt.length&&(n=Lt[0],null===n.blockedOn);)Bt(n),null===n.blockedOn&&Lt.shift()}var Xt={},Yt=new Map,Kt=new Map,qt=["abort","abort",Qe,"animationEnd",Je,"animationIteration",et,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",tt,"transitionEnd","waiting","waiting"];function Zt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1],a="on"+(i[0].toUpperCase()+i.slice(1));a={phasedRegistrationNames:{bubbled:a,captured:a+"Capture"},dependencies:[r],eventPriority:t},Kt.set(r,t),Yt.set(r,a),Xt[i]=a}}Zt("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Zt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Zt(qt,2);for(var $t="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Qt=0;Qt<$t.length;Qt++)Kt.set($t[Qt],0);var Jt=a.unstable_UserBlockingPriority,en=a.unstable_runWithPriority,tn=!0;function nn(e,t){rn(t,e,!1)}function rn(e,t,n){var r=Kt.get(t);switch(void 0===r?2:r){case 0:r=an.bind(null,t,1,e);break;case 1:r=on.bind(null,t,1,e);break;default:r=sn.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function an(e,t,n,r){z||j();var i=sn,a=z;z=!0;try{N(i,e,t,n,r)}finally{(z=a)||V()}}function on(e,t,n,r){en(Jt,sn.bind(null,e,t,n,r))}function sn(e,t,n,r){if(tn)if(0<Mt.length&&-1<Pt.indexOf(e))e=Nt(null,e,t,n,r),Mt.push(e);else{var i=ln(e,t,n,r);if(null===i)jt(e,r);else if(-1<Pt.indexOf(e))e=Nt(i,e,t,n,r),Mt.push(e);else if(!zt(i,e,t,n,r)){jt(e,r),e=bt(e,r,null,t);try{G(_t,e)}finally{yt(e)}}}}function ln(e,t,n,r){if(n=gt(r),n=Vn(n),null!==n){var i=at(n);if(null===i)n=null;else{var a=i.tag;if(13===a){if(n=ot(i),null!==n)return n;n=null}else if(3===a){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}e=bt(e,r,n,t);try{G(_t,e)}finally{yt(e)}return null}var un={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},cn=["Webkit","ms","Moz","O"];function hn(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||un.hasOwnProperty(e)&&un[e]?(""+t).trim():t+"px"}function dn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=hn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(un).forEach((function(e){cn.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),un[t]=un[e]}))}));var fn=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function pn(e,t){if(t){if(fn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62,""))}}function gn(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var mn=Ve.html;function vn(e,t){e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument;var n=it(e);t=M[t];for(var r=0;r<t.length;r++)xt(t[r],e,n)}function yn(){}function bn(e){if(e=e||("undefined"!==typeof document?document:void 0),"undefined"===typeof e)return null;try{return e.activeElement||e.body}catch(t){return e.body}}function _n(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xn(e,t){var n,r=_n(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=_n(r)}}function wn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?wn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Sn(){for(var e=window,t=bn();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;e=t.contentWindow,t=bn(e.document)}return t}function Tn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var On="$",Mn="/$",En="$?",An="$!",Cn=null,In=null;function Dn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Ln(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Pn="function"===typeof setTimeout?setTimeout:void 0,kn="function"===typeof clearTimeout?clearTimeout:void 0;function Rn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Nn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===On||n===An||n===En){if(0===t)return e;t--}else n===Mn&&t++}e=e.previousSibling}return null}var jn=Math.random().toString(36).slice(2),Fn="__reactInternalInstance$"+jn,zn="__reactEventHandlers$"+jn,Bn="__reactContainere$"+jn;function Vn(e){var t=e[Fn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Bn]||n[Fn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Nn(e);null!==e;){if(n=e[Fn])return n;e=Nn(e)}return t}e=n,n=e.parentNode}return null}function Gn(e){return e=e[Fn]||e[Bn],!e||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Hn(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function Un(e){return e[zn]||null}function Wn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Xn(e,t){var n=e.stateNode;if(!n)return null;var r=g(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!("button"===e||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}function Yn(e,t,n){(t=Xn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=ct(n._dispatchListeners,t),n._dispatchInstances=ct(n._dispatchInstances,e))}function Kn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Wn(t);for(t=n.length;0<t--;)Yn(n[t],"captured",e);for(t=0;t<n.length;t++)Yn(n[t],"bubbled",e)}}function qn(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Xn(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=ct(n._dispatchListeners,t),n._dispatchInstances=ct(n._dispatchInstances,e))}function Zn(e){e&&e.dispatchConfig.registrationName&&qn(e._targetInst,null,e)}function $n(e){ht(e,Kn)}var Qn=null,Jn=null,er=null;function tr(){if(er)return er;var e,t,n=Jn,r=n.length,i="value"in Qn?Qn.value:Qn.textContent,a=i.length;for(e=0;e<r&&n[e]===i[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===i[a-t];t++);return er=i.slice(e,1<t?1-t:void 0)}function nr(){return!0}function rr(){return!1}function ir(e,t,n,r){for(var i in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface,e)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?nr:rr,this.isPropagationStopped=rr,this}function ar(e,t,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,n,r),i}return new this(e,t,n,r)}function or(e){if(!(e instanceof this))throw Error(o(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function sr(e){e.eventPool=[],e.getPooled=ar,e.release=or}i(ir.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nr)},persist:function(){this.isPersistent=nr},isPersistent:rr,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=rr,this._dispatchInstances=this._dispatchListeners=null}}),ir.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},ir.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var a=new t;return i(a,n.prototype),n.prototype=a,n.prototype.constructor=n,n.Interface=i({},r.Interface,e),n.extend=r.extend,sr(n),n},sr(ir);var lr=ir.extend({data:null}),ur=ir.extend({data:null}),cr=[9,13,27,32],hr=A&&"CompositionEvent"in window,dr=null;A&&"documentMode"in document&&(dr=document.documentMode);var fr=A&&"TextEvent"in window&&!dr,pr=A&&(!hr||dr&&8<dr&&11>=dr),gr=String.fromCharCode(32),mr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},vr=!1;function yr(e,t){switch(e){case"keyup":return-1!==cr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function br(e){return e=e.detail,"object"===typeof e&&"data"in e?e.data:null}var _r=!1;function xr(e,t){switch(e){case"compositionend":return br(t);case"keypress":return 32!==t.which?null:(vr=!0,gr);case"textInput":return e=t.data,e===gr&&vr?null:e;default:return null}}function wr(e,t){if(_r)return"compositionend"===e||!hr&&yr(e,t)?(e=tr(),er=Jn=Qn=null,_r=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return pr&&"ko"!==t.locale?null:t.data;default:return null}}var Sr={eventTypes:mr,extractEvents:function(e,t,n,r){var i;if(hr)e:{switch(e){case"compositionstart":var a=mr.compositionStart;break e;case"compositionend":a=mr.compositionEnd;break e;case"compositionupdate":a=mr.compositionUpdate;break e}a=void 0}else _r?yr(e,n)&&(a=mr.compositionEnd):"keydown"===e&&229===n.keyCode&&(a=mr.compositionStart);return a?(pr&&"ko"!==n.locale&&(_r||a!==mr.compositionStart?a===mr.compositionEnd&&_r&&(i=tr()):(Qn=r,Jn="value"in Qn?Qn.value:Qn.textContent,_r=!0)),a=lr.getPooled(a,t,n,r),i?a.data=i:(i=br(n),null!==i&&(a.data=i)),$n(a),i=a):i=null,(e=fr?xr(e,n):wr(e,n))?(t=ur.getPooled(mr.beforeInput,t,n,r),t.data=e,$n(t)):t=null,null===i?t:null===t?i:[i,t]}},Tr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Or(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Tr[e.type]:"textarea"===t}var Mr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function Er(e,t,n){return e=ir.getPooled(Mr.change,e,t,n),e.type="change",P(n),$n(e),e}var Ar=null,Cr=null;function Ir(e){pt(e)}function Dr(e){var t=Hn(e);if(Ee(t))return e}function Lr(e,t){if("change"===e)return t}var Pr=!1;function kr(){Ar&&(Ar.detachEvent("onpropertychange",Rr),Cr=Ar=null)}function Rr(e){if("value"===e.propertyName&&Dr(Cr))if(e=Er(Cr,e,gt(e)),z)pt(e);else{z=!0;try{R(Ir,e)}finally{z=!1,V()}}}function Nr(e,t,n){"focus"===e?(kr(),Ar=t,Cr=n,Ar.attachEvent("onpropertychange",Rr)):"blur"===e&&kr()}function jr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Dr(Cr)}function Fr(e,t){if("click"===e)return Dr(t)}function zr(e,t){if("input"===e||"change"===e)return Dr(t)}A&&(Pr=mt("input")&&(!document.documentMode||9<document.documentMode));var Br={eventTypes:Mr,_isInputEventSupported:Pr,extractEvents:function(e,t,n,r){var i=t?Hn(t):window,a=i.nodeName&&i.nodeName.toLowerCase();if("select"===a||"input"===a&&"file"===i.type)var o=Lr;else if(Or(i))if(Pr)o=zr;else{o=jr;var s=Nr}else(a=i.nodeName)&&"input"===a.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(o=Fr);if(o&&(o=o(e,t)))return Er(o,n,r);s&&s(e,i,t),"blur"===e&&(e=i._wrapperState)&&e.controlled&&"number"===i.type&&Pe(i,"number",i.value)}},Vr=ir.extend({view:null,detail:null}),Gr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Hr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Gr[e])&&!!t[e]}function Ur(){return Hr}var Wr=0,Xr=0,Yr=!1,Kr=!1,qr=Vr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Ur,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Wr;return Wr=e.screenX,Yr?"mousemove"===e.type?e.screenX-t:0:(Yr=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Xr;return Xr=e.screenY,Kr?"mousemove"===e.type?e.screenY-t:0:(Kr=!0,0)}}),Zr=qr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),$r={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Qr={eventTypes:$r,extractEvents:function(e,t,n,r,i){var a="mouseover"===e||"pointerover"===e,o="mouseout"===e||"pointerout"===e;if(a&&0===(32&i)&&(n.relatedTarget||n.fromElement)||!o&&!a)return null;if(a=r.window===r?r:(a=r.ownerDocument)?a.defaultView||a.parentWindow:window,o){if(o=t,t=(t=n.relatedTarget||n.toElement)?Vn(t):null,null!==t){var s=at(t);(t!==s||5!==t.tag&&6!==t.tag)&&(t=null)}}else o=null;if(o===t)return null;if("mouseout"===e||"mouseover"===e)var l=qr,u=$r.mouseLeave,c=$r.mouseEnter,h="mouse";else"pointerout"!==e&&"pointerover"!==e||(l=Zr,u=$r.pointerLeave,c=$r.pointerEnter,h="pointer");if(e=null==o?a:Hn(o),a=null==t?a:Hn(t),u=l.getPooled(u,o,n,r),u.type=h+"leave",u.target=e,u.relatedTarget=a,n=l.getPooled(c,t,n,r),n.type=h+"enter",n.target=a,n.relatedTarget=e,r=o,h=t,r&&h)e:{for(l=r,c=h,o=0,e=l;e;e=Wn(e))o++;for(e=0,t=c;t;t=Wn(t))e++;for(;0<o-e;)l=Wn(l),o--;for(;0<e-o;)c=Wn(c),e--;for(;o--;){if(l===c||l===c.alternate)break e;l=Wn(l),c=Wn(c)}l=null}else l=null;for(c=l,l=[];r&&r!==c;){if(o=r.alternate,null!==o&&o===c)break;l.push(r),r=Wn(r)}for(r=[];h&&h!==c;){if(o=h.alternate,null!==o&&o===c)break;r.push(h),h=Wn(h)}for(h=0;h<l.length;h++)qn(l[h],"bubbled",u);for(h=r.length;0<h--;)qn(r[h],"captured",n);return 0===(64&i)?[u]:[u,n]}};function Jr(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t}var ei="function"===typeof Object.is?Object.is:Jr,ti=Object.prototype.hasOwnProperty;function ni(e,t){if(ei(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!ti.call(t,n[r])||!ei(e[n[r]],t[n[r]]))return!1;return!0}var ri=A&&"documentMode"in document&&11>=document.documentMode,ii={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},ai=null,oi=null,si=null,li=!1;function ui(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return li||null==ai||ai!==bn(n)?null:(n=ai,"selectionStart"in n&&Tn(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),si&&ni(si,n)?null:(si=n,e=ir.getPooled(ii.select,oi,e,t),e.type="select",e.target=ai,$n(e),e))}var ci={eventTypes:ii,extractEvents:function(e,t,n,r,i,a){if(i=a||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument),!(a=!i)){e:{i=it(i),a=M.onSelect;for(var o=0;o<a.length;o++)if(!i.has(a[o])){i=!1;break e}i=!0}a=!i}if(a)return null;switch(i=t?Hn(t):window,e){case"focus":(Or(i)||"true"===i.contentEditable)&&(ai=i,oi=t,si=null);break;case"blur":si=oi=ai=null;break;case"mousedown":li=!0;break;case"contextmenu":case"mouseup":case"dragend":return li=!1,ui(n,r);case"selectionchange":if(ri)break;case"keydown":case"keyup":return ui(n,r)}return null}},hi=ir.extend({animationName:null,elapsedTime:null,pseudoElement:null}),di=ir.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),fi=Vr.extend({relatedTarget:null});function pi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,0===e&&13===t&&(e=13)):e=t,10===e&&(e=13),32<=e||13===e?e:0}var gi={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mi={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},vi=Vr.extend({key:function(e){if(e.key){var t=gi[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?(e=pi(e),13===e?"Enter":String.fromCharCode(e)):"keydown"===e.type||"keyup"===e.type?mi[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Ur,charCode:function(e){return"keypress"===e.type?pi(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?pi(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),yi=qr.extend({dataTransfer:null}),bi=Vr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Ur}),_i=ir.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),xi=qr.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),wi={eventTypes:Xt,extractEvents:function(e,t,n,r){var i=Yt.get(e);if(!i)return null;switch(e){case"keypress":if(0===pi(n))return null;case"keydown":case"keyup":e=vi;break;case"blur":case"focus":e=fi;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=qr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=yi;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=bi;break;case Qe:case Je:case et:e=hi;break;case tt:e=_i;break;case"scroll":e=Vr;break;case"wheel":e=xi;break;case"copy":case"cut":case"paste":e=di;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Zr;break;default:e=ir}return t=e.getPooled(i,t,n,r),$n(t),t}};if(b)throw Error(o(101));b=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),x();var Si=Gn;g=Un,m=Si,v=Hn,E({SimpleEventPlugin:wi,EnterLeaveEventPlugin:Qr,ChangeEventPlugin:Br,SelectEventPlugin:ci,BeforeInputEventPlugin:Sr});var Ti=[],Oi=-1;function Mi(e){0>Oi||(e.current=Ti[Oi],Ti[Oi]=null,Oi--)}function Ei(e,t){Oi++,Ti[Oi]=e.current,e.current=t}var Ai={},Ci={current:Ai},Ii={current:!1},Di=Ai;function Li(e,t){var n=e.type.contextTypes;if(!n)return Ai;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Pi(e){return e=e.childContextTypes,null!==e&&void 0!==e}function ki(){Mi(Ii),Mi(Ci)}function Ri(e,t,n){if(Ci.current!==Ai)throw Error(o(168));Ei(Ci,t),Ei(Ii,n)}function Ni(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var a in r=r.getChildContext(),r)if(!(a in e))throw Error(o(108,xe(t)||"Unknown",a));return i({},n,{},r)}function ji(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ai,Di=Ci.current,Ei(Ci,e),Ei(Ii,Ii.current),!0}function Fi(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Ni(e,t,Di),r.__reactInternalMemoizedMergedChildContext=e,Mi(Ii),Mi(Ci),Ei(Ci,e)):Mi(Ii),Ei(Ii,n)}var zi=a.unstable_runWithPriority,Bi=a.unstable_scheduleCallback,Vi=a.unstable_cancelCallback,Gi=a.unstable_requestPaint,Hi=a.unstable_now,Ui=a.unstable_getCurrentPriorityLevel,Wi=a.unstable_ImmediatePriority,Xi=a.unstable_UserBlockingPriority,Yi=a.unstable_NormalPriority,Ki=a.unstable_LowPriority,qi=a.unstable_IdlePriority,Zi={},$i=a.unstable_shouldYield,Qi=void 0!==Gi?Gi:function(){},Ji=null,ea=null,ta=!1,na=Hi(),ra=1e4>na?Hi:function(){return Hi()-na};function ia(){switch(Ui()){case Wi:return 99;case Xi:return 98;case Yi:return 97;case Ki:return 96;case qi:return 95;default:throw Error(o(332))}}function aa(e){switch(e){case 99:return Wi;case 98:return Xi;case 97:return Yi;case 96:return Ki;case 95:return qi;default:throw Error(o(332))}}function oa(e,t){return e=aa(e),zi(e,t)}function sa(e,t,n){return e=aa(e),Bi(e,t,n)}function la(e){return null===Ji?(Ji=[e],ea=Bi(Wi,ca)):Ji.push(e),Zi}function ua(){if(null!==ea){var e=ea;ea=null,Vi(e)}ca()}function ca(){if(!ta&&null!==Ji){ta=!0;var e=0;try{var t=Ji;oa(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ji=null}catch(n){throw null!==Ji&&(Ji=Ji.slice(e+1)),Bi(Wi,ua),n}finally{ta=!1}}}function ha(e,t,n){return n/=10,1073741821-(1+((1073741821-e+t/10)/n|0))*n}function da(e,t){if(e&&e.defaultProps)for(var n in t=i({},t),e=e.defaultProps,e)void 0===t[n]&&(t[n]=e[n]);return t}var fa={current:null},pa=null,ga=null,ma=null;function va(){ma=ga=pa=null}function ya(e){var t=fa.current;Mi(fa),e.type._context._currentValue=t}function ba(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function _a(e,t){pa=e,ma=ga=null,e=e.dependencies,null!==e&&null!==e.firstContext&&(e.expirationTime>=t&&(Ko=!0),e.firstContext=null)}function xa(e,t){if(ma!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(ma=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ga){if(null===pa)throw Error(o(308));ga=t,pa.dependencies={expirationTime:0,firstContext:t,responders:null}}else ga=ga.next=t;return e._currentValue}var wa=!1;function Sa(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function Ta(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function Oa(e,t){return e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null},e.next=e}function Ma(e,t){if(e=e.updateQueue,null!==e){e=e.shared;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function Ea(e,t){var n=e.alternate;null!==n&&Ta(n,e),e=e.updateQueue,n=e.baseQueue,null===n?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function Aa(e,t,n,r){var a=e.updateQueue;wa=!1;var o=a.baseQueue,s=a.shared.pending;if(null!==s){if(null!==o){var l=o.next;o.next=s.next,s.next=l}o=s,a.shared.pending=null,l=e.alternate,null!==l&&(l=l.updateQueue,null!==l&&(l.baseQueue=s))}if(null!==o){l=o.next;var u=a.baseState,c=0,h=null,d=null,f=null;if(null!==l){var p=l;do{if(s=p.expirationTime,s<r){var g={expirationTime:p.expirationTime,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null};null===f?(d=f=g,h=u):f=f.next=g,s>c&&(c=s)}else{null!==f&&(f=f.next={expirationTime:1073741823,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null}),Nl(s,p.suspenseConfig);e:{var m=e,v=p;switch(s=t,g=n,v.tag){case 1:if(m=v.payload,"function"===typeof m){u=m.call(g,u,s);break e}u=m;break e;case 3:m.effectTag=-4097&m.effectTag|64;case 0:if(m=v.payload,s="function"===typeof m?m.call(g,u,s):m,null===s||void 0===s)break e;u=i({},u,s);break e;case 2:wa=!0}}null!==p.callback&&(e.effectTag|=32,s=a.effects,null===s?a.effects=[p]:s.push(p))}if(p=p.next,null===p||p===l){if(s=a.shared.pending,null===s)break;p=o.next=s.next,s.next=l,a.baseQueue=o=s,a.shared.pending=null}}while(1)}null===f?h=u:f.next=d,a.baseState=h,a.baseQueue=f,jl(c),e.expirationTime=c,e.memoizedState=u}}function Ca(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=i,i=n,"function"!==typeof r)throw Error(o(191,r));r.call(i)}}}var Ia=ee.ReactCurrentBatchConfig,Da=(new r.Component).refs;function La(e,t,n,r){t=e.memoizedState,n=n(r,t),n=null===n||void 0===n?t:i({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var Pa={isMounted:function(e){return!!(e=e._reactInternalFiber)&&at(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=wl(),i=Ia.suspense;r=Sl(r,e,i),i=Oa(r,i),i.payload=t,void 0!==n&&null!==n&&(i.callback=n),Ma(e,i),Tl(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=wl(),i=Ia.suspense;r=Sl(r,e,i),i=Oa(r,i),i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),Ma(e,i),Tl(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=wl(),r=Ia.suspense;n=Sl(n,e,r),r=Oa(n,r),r.tag=2,void 0!==t&&null!==t&&(r.callback=t),Ma(e,r),Tl(e,n)}};function ka(e,t,n,r,i,a,o){return e=e.stateNode,"function"===typeof e.shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!t.prototype||!t.prototype.isPureReactComponent||(!ni(n,r)||!ni(i,a))}function Ra(e,t,n){var r=!1,i=Ai,a=t.contextType;return"object"===typeof a&&null!==a?a=xa(a):(i=Pi(t)?Di:Ci.current,r=t.contextTypes,a=(r=null!==r&&void 0!==r)?Li(e,i):Ai),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Pa,e.stateNode=t,t._reactInternalFiber=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Na(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Pa.enqueueReplaceState(t,t.state,null)}function ja(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Da,Sa(e);var a=t.contextType;"object"===typeof a&&null!==a?i.context=xa(a):(a=Pi(t)?Di:Ci.current,i.context=Li(e,a)),Aa(e,n,i,r),i.state=e.memoizedState,a=t.getDerivedStateFromProps,"function"===typeof a&&(La(e,t,a,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&Pa.enqueueReplaceState(i,i.state,null),Aa(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.effectTag|=4)}var Fa=Array.isArray;function za(e,t,n){if(e=n.ref,null!==e&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner,n){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=r.refs;t===Da&&(t=r.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!==typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Ba(e,t){if("textarea"!==e.type)throw Error(o(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Va(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return e=au(e,t),e.index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?(r=t.alternate,null!==r?(r=r.index,r<n?(t.effectTag=2,n):r):(t.effectTag=2,n)):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function l(e,t,n,r){return null===t||6!==t.tag?(t=lu(n,e.mode,r),t.return=e,t):(t=i(t,n),t.return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?(r=i(t,n.props),r.ref=za(e,t,n),r.return=e,r):(r=ou(n.type,n.key,n.props,null,e.mode,r),r.ref=za(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=uu(n,e.mode,r),t.return=e,t):(t=i(t,n.children||[]),t.return=e,t)}function h(e,t,n,r,a){return null===t||7!==t.tag?(t=su(n,e.mode,r,a),t.return=e,t):(t=i(t,n),t.return=e,t)}function d(e,t,n){if("string"===typeof t||"number"===typeof t)return t=lu(""+t,e.mode,n),t.return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case ie:return n=ou(t.type,t.key,t.props,null,e.mode,n),n.ref=za(e,null,t),n.return=e,n;case ae:return t=uu(t,e.mode,n),t.return=e,t}if(Fa(t)||be(t))return t=su(t,e.mode,n,null),t.return=e,t;Ba(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==i?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case ie:return n.key===i?n.type===oe?h(e,t,n.props.children,r,i):u(e,t,n,r):null;case ae:return n.key===i?c(e,t,n,r):null}if(Fa(n)||be(n))return null!==i?null:h(e,t,n,r,null);Ba(e,n)}return null}function p(e,t,n,r,i){if("string"===typeof r||"number"===typeof r)return e=e.get(n)||null,l(t,e,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case ie:return e=e.get(null===r.key?n:r.key)||null,r.type===oe?h(t,e,r.props.children,i,r.key):u(t,e,r,i);case ae:return e=e.get(null===r.key?n:r.key)||null,c(t,e,r,i)}if(Fa(r)||be(r))return e=e.get(n)||null,h(t,e,r,i,null);Ba(t,r)}return null}function g(i,o,s,l){for(var u=null,c=null,h=o,g=o=0,m=null;null!==h&&g<s.length;g++){h.index>g?(m=h,h=null):m=h.sibling;var v=f(i,h,s[g],l);if(null===v){null===h&&(h=m);break}e&&h&&null===v.alternate&&t(i,h),o=a(v,o,g),null===c?u=v:c.sibling=v,c=v,h=m}if(g===s.length)return n(i,h),u;if(null===h){for(;g<s.length;g++)h=d(i,s[g],l),null!==h&&(o=a(h,o,g),null===c?u=h:c.sibling=h,c=h);return u}for(h=r(i,h);g<s.length;g++)m=p(h,i,g,s[g],l),null!==m&&(e&&null!==m.alternate&&h.delete(null===m.key?g:m.key),o=a(m,o,g),null===c?u=m:c.sibling=m,c=m);return e&&h.forEach((function(e){return t(i,e)})),u}function m(i,s,l,u){var c=be(l);if("function"!==typeof c)throw Error(o(150));if(l=c.call(l),null==l)throw Error(o(151));for(var h=c=null,g=s,m=s=0,v=null,y=l.next();null!==g&&!y.done;m++,y=l.next()){g.index>m?(v=g,g=null):v=g.sibling;var b=f(i,g,y.value,u);if(null===b){null===g&&(g=v);break}e&&g&&null===b.alternate&&t(i,g),s=a(b,s,m),null===h?c=b:h.sibling=b,h=b,g=v}if(y.done)return n(i,g),c;if(null===g){for(;!y.done;m++,y=l.next())y=d(i,y.value,u),null!==y&&(s=a(y,s,m),null===h?c=y:h.sibling=y,h=y);return c}for(g=r(i,g);!y.done;m++,y=l.next())y=p(g,i,m,y.value,u),null!==y&&(e&&null!==y.alternate&&g.delete(null===y.key?m:y.key),s=a(y,s,m),null===h?c=y:h.sibling=y,h=y);return e&&g.forEach((function(e){return t(i,e)})),c}return function(e,r,a,l){var u="object"===typeof a&&null!==a&&a.type===oe&&null===a.key;u&&(a=a.props.children);var c="object"===typeof a&&null!==a;if(c)switch(a.$$typeof){case ie:e:{for(c=a.key,u=r;null!==u;){if(u.key===c){switch(u.tag){case 7:if(a.type===oe){n(e,u.sibling),r=i(u,a.props.children),r.return=e,e=r;break e}break;default:if(u.elementType===a.type){n(e,u.sibling),r=i(u,a.props),r.ref=za(e,u,a),r.return=e,e=r;break e}}n(e,u);break}t(e,u),u=u.sibling}a.type===oe?(r=su(a.props.children,e.mode,l,a.key),r.return=e,e=r):(l=ou(a.type,a.key,a.props,null,e.mode,l),l.ref=za(e,r,a),l.return=e,e=l)}return s(e);case ae:e:{for(u=a.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),r=i(r,a.children||[]),r.return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}r=uu(a,e.mode,l),r.return=e,e=r}return s(e)}if("string"===typeof a||"number"===typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),r=i(r,a),r.return=e,e=r):(n(e,r),r=lu(a,e.mode,l),r.return=e,e=r),s(e);if(Fa(a))return g(e,r,a,l);if(be(a))return m(e,r,a,l);if(c&&Ba(e,a),"undefined"===typeof a&&!u)switch(e.tag){case 1:case 0:throw e=e.type,Error(o(152,e.displayName||e.name||"Component"))}return n(e,r)}}var Ga=Va(!0),Ha=Va(!1),Ua={},Wa={current:Ua},Xa={current:Ua},Ya={current:Ua};function Ka(e){if(e===Ua)throw Error(o(174));return e}function qa(e,t){switch(Ei(Ya,t),Ei(Xa,e),Ei(Wa,Ua),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:He(null,"");break;default:e=8===e?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=He(t,e)}Mi(Wa),Ei(Wa,t)}function Za(){Mi(Wa),Mi(Xa),Mi(Ya)}function $a(e){Ka(Ya.current);var t=Ka(Wa.current),n=He(t,e.type);t!==n&&(Ei(Xa,e),Ei(Wa,n))}function Qa(e){Xa.current===e&&(Mi(Wa),Mi(Xa))}var Ja={current:0};function eo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(n=n.dehydrated,null===n||n.data===En||n.data===An))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function to(e,t){return{responder:e,props:t}}var no=ee.ReactCurrentDispatcher,ro=ee.ReactCurrentBatchConfig,io=0,ao=null,oo=null,so=null,lo=!1;function uo(){throw Error(o(321))}function co(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ei(e[n],t[n]))return!1;return!0}function ho(e,t,n,r,i,a){if(io=a,ao=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,no.current=null===e||null===e.memoizedState?Ro:No,e=n(r,i),t.expirationTime===io){a=0;do{if(t.expirationTime=0,!(25>a))throw Error(o(301));a+=1,so=oo=null,t.updateQueue=null,no.current=jo,e=n(r,i)}while(t.expirationTime===io)}if(no.current=ko,t=null!==oo&&null!==oo.next,io=0,so=oo=ao=null,lo=!1,t)throw Error(o(300));return e}function fo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===so?ao.memoizedState=so=e:so=so.next=e,so}function po(){if(null===oo){var e=ao.alternate;e=null!==e?e.memoizedState:null}else e=oo.next;var t=null===so?ao.memoizedState:so.next;if(null!==t)so=t,oo=e;else{if(null===e)throw Error(o(310));oo=e,e={memoizedState:oo.memoizedState,baseState:oo.baseState,baseQueue:oo.baseQueue,queue:oo.queue,next:null},null===so?ao.memoizedState=so=e:so=so.next=e}return so}function go(e,t){return"function"===typeof t?t(e):t}function mo(e){var t=po(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=oo,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var l=s=a=null,u=i;do{var c=u.expirationTime;if(c<io){var h={expirationTime:u.expirationTime,suspenseConfig:u.suspenseConfig,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===l?(s=l=h,a=r):l=l.next=h,c>ao.expirationTime&&(ao.expirationTime=c,jl(c))}else null!==l&&(l=l.next={expirationTime:1073741823,suspenseConfig:u.suspenseConfig,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),Nl(c,u.suspenseConfig),r=u.eagerReducer===e?u.eagerState:e(r,u.action);u=u.next}while(null!==u&&u!==i);null===l?a=r:l.next=s,ei(r,t.memoizedState)||(Ko=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function vo(e){var t=po(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);ei(a,t.memoizedState)||(Ko=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function yo(e){var t=fo();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:go,lastRenderedState:e},e=e.dispatch=Po.bind(null,ao,e),[t.memoizedState,e]}function bo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ao.updateQueue,null===t?(t={lastEffect:null},ao.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,null===n?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function _o(){return po().memoizedState}function xo(e,t,n,r){var i=fo();ao.effectTag|=e,i.memoizedState=bo(1|t,n,void 0,void 0===r?null:r)}function wo(e,t,n,r){var i=po();r=void 0===r?null:r;var a=void 0;if(null!==oo){var o=oo.memoizedState;if(a=o.destroy,null!==r&&co(r,o.deps))return void bo(t,n,a,r)}ao.effectTag|=e,i.memoizedState=bo(1|t,n,a,r)}function So(e,t){return xo(516,4,e,t)}function To(e,t){return wo(516,4,e,t)}function Oo(e,t){return wo(4,2,e,t)}function Mo(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Eo(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,wo(4,2,Mo.bind(null,t,e),n)}function Ao(){}function Co(e,t){return fo().memoizedState=[e,void 0===t?null:t],e}function Io(e,t){var n=po();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&co(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Do(e,t){var n=po();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&co(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Lo(e,t,n){var r=ia();oa(98>r?98:r,(function(){e(!0)})),oa(97<r?97:r,(function(){var r=ro.suspense;ro.suspense=void 0===t?null:t;try{e(!1),n()}finally{ro.suspense=r}}))}function Po(e,t,n){var r=wl(),i=Ia.suspense;r=Sl(r,e,i),i={expirationTime:r,suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var a=t.pending;if(null===a?i.next=i:(i.next=a.next,a.next=i),t.pending=i,a=e.alternate,e===ao||null!==a&&a===ao)lo=!0,i.expirationTime=io,ao.expirationTime=io;else{if(0===e.expirationTime&&(null===a||0===a.expirationTime)&&(a=t.lastRenderedReducer,null!==a))try{var o=t.lastRenderedState,s=a(o,n);if(i.eagerReducer=a,i.eagerState=s,ei(s,o))return}catch(l){}Tl(e,r)}}var ko={readContext:xa,useCallback:uo,useContext:uo,useEffect:uo,useImperativeHandle:uo,useLayoutEffect:uo,useMemo:uo,useReducer:uo,useRef:uo,useState:uo,useDebugValue:uo,useResponder:uo,useDeferredValue:uo,useTransition:uo},Ro={readContext:xa,useCallback:Co,useContext:xa,useEffect:So,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,xo(4,2,Mo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return xo(4,2,e,t)},useMemo:function(e,t){var n=fo();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=fo();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=Po.bind(null,ao,e),[r.memoizedState,e]},useRef:function(e){var t=fo();return e={current:e},t.memoizedState=e},useState:yo,useDebugValue:Ao,useResponder:to,useDeferredValue:function(e,t){var n=yo(e),r=n[0],i=n[1];return So((function(){var n=ro.suspense;ro.suspense=void 0===t?null:t;try{i(e)}finally{ro.suspense=n}}),[e,t]),r},useTransition:function(e){var t=yo(!1),n=t[0];return t=t[1],[Co(Lo.bind(null,t,e),[t,e]),n]}},No={readContext:xa,useCallback:Io,useContext:xa,useEffect:To,useImperativeHandle:Eo,useLayoutEffect:Oo,useMemo:Do,useReducer:mo,useRef:_o,useState:function(){return mo(go)},useDebugValue:Ao,useResponder:to,useDeferredValue:function(e,t){var n=mo(go),r=n[0],i=n[1];return To((function(){var n=ro.suspense;ro.suspense=void 0===t?null:t;try{i(e)}finally{ro.suspense=n}}),[e,t]),r},useTransition:function(e){var t=mo(go),n=t[0];return t=t[1],[Io(Lo.bind(null,t,e),[t,e]),n]}},jo={readContext:xa,useCallback:Io,useContext:xa,useEffect:To,useImperativeHandle:Eo,useLayoutEffect:Oo,useMemo:Do,useReducer:vo,useRef:_o,useState:function(){return vo(go)},useDebugValue:Ao,useResponder:to,useDeferredValue:function(e,t){var n=vo(go),r=n[0],i=n[1];return To((function(){var n=ro.suspense;ro.suspense=void 0===t?null:t;try{i(e)}finally{ro.suspense=n}}),[e,t]),r},useTransition:function(e){var t=vo(go),n=t[0];return t=t[1],[Io(Lo.bind(null,t,e),[t,e]),n]}},Fo=null,zo=null,Bo=!1;function Vo(e,t){var n=nu(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Go(e,t){switch(e.tag){case 5:var n=e.type;return t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,null!==t&&(e.stateNode=t,!0);case 6:return t=""===e.pendingProps||3!==t.nodeType?null:t,null!==t&&(e.stateNode=t,!0);case 13:return!1;default:return!1}}function Ho(e){if(Bo){var t=zo;if(t){var n=t;if(!Go(e,t)){if(t=Rn(n.nextSibling),!t||!Go(e,t))return e.effectTag=-1025&e.effectTag|2,Bo=!1,void(Fo=e);Vo(Fo,n)}Fo=e,zo=Rn(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Bo=!1,Fo=e}}function Uo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Fo=e}function Wo(e){if(e!==Fo)return!1;if(!Bo)return Uo(e),Bo=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Ln(t,e.memoizedProps))for(t=zo;t;)Vo(e,t),t=Rn(t.nextSibling);if(Uo(e),13===e.tag){if(e=e.memoizedState,e=null!==e?e.dehydrated:null,!e)throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if(n===Mn){if(0===t){zo=Rn(e.nextSibling);break e}t--}else n!==On&&n!==An&&n!==En||t++}e=e.nextSibling}zo=null}}else zo=Fo?Rn(e.stateNode.nextSibling):null;return!0}function Xo(){zo=Fo=null,Bo=!1}var Yo=ee.ReactCurrentOwner,Ko=!1;function qo(e,t,n,r){t.child=null===e?Ha(t,null,n,r):Ga(t,e.child,n,r)}function Zo(e,t,n,r,i){n=n.render;var a=t.ref;return _a(t,i),r=ho(e,t,n,r,a,i),null===e||Ko?(t.effectTag|=1,qo(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),fs(e,t,i))}function $o(e,t,n,r,i,a){if(null===e){var o=n.type;return"function"!==typeof o||ru(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?(e=ou(n.type,null,r,null,t.mode,a),e.ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Qo(e,t,o,r,i,a))}return o=e.child,i<a&&(i=o.memoizedProps,n=n.compare,n=null!==n?n:ni,n(i,r)&&e.ref===t.ref)?fs(e,t,a):(t.effectTag|=1,e=au(o,r),e.ref=t.ref,e.return=t,t.child=e)}function Qo(e,t,n,r,i,a){return null!==e&&ni(e.memoizedProps,r)&&e.ref===t.ref&&(Ko=!1,i<a)?(t.expirationTime=e.expirationTime,fs(e,t,a)):es(e,t,n,r,a)}function Jo(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function es(e,t,n,r,i){var a=Pi(n)?Di:Ci.current;return a=Li(t,a),_a(t,i),n=ho(e,t,n,r,a,i),null===e||Ko?(t.effectTag|=1,qo(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),fs(e,t,i))}function ts(e,t,n,r,i){if(Pi(n)){var a=!0;ji(t)}else a=!1;if(_a(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),Ra(t,n,r),ja(t,n,r,i),r=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,u=n.contextType;"object"===typeof u&&null!==u?u=xa(u):(u=Pi(n)?Di:Ci.current,u=Li(t,u));var c=n.getDerivedStateFromProps,h="function"===typeof c||"function"===typeof o.getSnapshotBeforeUpdate;h||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s!==r||l!==u)&&Na(t,o,r,u),wa=!1;var d=t.memoizedState;o.state=d,Aa(t,r,o,i),l=t.memoizedState,s!==r||d!==l||Ii.current||wa?("function"===typeof c&&(La(t,n,c,r),l=t.memoizedState),(s=wa||ka(t,n,s,r,d,l,u))?(h||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||("function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"===typeof o.componentDidMount&&(t.effectTag|=4)):("function"===typeof o.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=s):("function"===typeof o.componentDidMount&&(t.effectTag|=4),r=!1)}else o=t.stateNode,Ta(e,t),s=t.memoizedProps,o.props=t.type===t.elementType?s:da(t.type,s),l=o.context,u=n.contextType,"object"===typeof u&&null!==u?u=xa(u):(u=Pi(n)?Di:Ci.current,u=Li(t,u)),c=n.getDerivedStateFromProps,(h="function"===typeof c||"function"===typeof o.getSnapshotBeforeUpdate)||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s!==r||l!==u)&&Na(t,o,r,u),wa=!1,l=t.memoizedState,o.state=l,Aa(t,r,o,i),d=t.memoizedState,s!==r||l!==d||Ii.current||wa?("function"===typeof c&&(La(t,n,c,r),d=t.memoizedState),(c=wa||ka(t,n,s,r,l,d,u))?(h||"function"!==typeof o.UNSAFE_componentWillUpdate&&"function"!==typeof o.componentWillUpdate||("function"===typeof o.componentWillUpdate&&o.componentWillUpdate(r,d,u),"function"===typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,d,u)),"function"===typeof o.componentDidUpdate&&(t.effectTag|=4),"function"===typeof o.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!==typeof o.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!==typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=d),o.props=r,o.state=d,o.context=u,r=c):("function"!==typeof o.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!==typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),r=!1);return ns(e,t,n,r,a,i)}function ns(e,t,n,r,i,a){Jo(e,t);var o=0!==(64&t.effectTag);if(!r&&!o)return i&&Fi(t,n,!1),fs(e,t,a);r=t.stateNode,Yo.current=t;var s=o&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&o?(t.child=Ga(t,e.child,null,a),t.child=Ga(t,null,s,a)):qo(e,t,s,a),t.memoizedState=r.state,i&&Fi(t,n,!0),t.child}function rs(e){var t=e.stateNode;t.pendingContext?Ri(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ri(e,t.context,!1),qa(e,t.containerInfo)}var is,as,os,ss,ls={dehydrated:null,retryTime:0};function us(e,t,n){var r,i=t.mode,a=t.pendingProps,o=Ja.current,s=!1;if((r=0!==(64&t.effectTag))||(r=0!==(2&o)&&(null===e||null!==e.memoizedState)),r?(s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===a.fallback||!0===a.unstable_avoidThisFallback||(o|=1),Ei(Ja,1&o),null===e){if(void 0!==a.fallback&&Ho(t),s){if(s=a.fallback,a=su(null,i,0,null),a.return=t,0===(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,a.child=e;null!==e;)e.return=a,e=e.sibling;return n=su(s,i,n,null),n.return=t,a.sibling=n,t.memoizedState=ls,t.child=a,n}return i=a.children,t.memoizedState=null,t.child=Ha(t,null,i,n)}if(null!==e.memoizedState){if(e=e.child,i=e.sibling,s){if(a=a.fallback,n=au(e,e.pendingProps),n.return=t,0===(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child,s!==e.child))for(n.child=s;null!==s;)s.return=n,s=s.sibling;return i=au(i,a),i.return=t,n.sibling=i,n.childExpirationTime=0,t.memoizedState=ls,t.child=n,i}return n=Ga(t,e.child,a.children,n),t.memoizedState=null,t.child=n}if(e=e.child,s){if(s=a.fallback,a=su(null,i,0,null),a.return=t,a.child=e,null!==e&&(e.return=a),0===(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,a.child=e;null!==e;)e.return=a,e=e.sibling;return n=su(s,i,n,null),n.return=t,a.sibling=n,n.effectTag|=2,a.childExpirationTime=0,t.memoizedState=ls,t.child=a,n}return t.memoizedState=null,t.child=Ga(t,e,a.children,n)}function cs(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),ba(e.return,t)}function hs(e,t,n,r,i,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:i,lastEffect:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailExpiration=0,o.tailMode=i,o.lastEffect=a)}function ds(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(qo(e,t,r.children,n),r=Ja.current,0!==(2&r))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!==(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&cs(e,n);else if(19===e.tag)cs(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ei(Ja,r),0===(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)e=n.alternate,null!==e&&null===eo(e)&&(i=n),n=n.sibling;n=i,null===n?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),hs(t,!1,i,n,a,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(e=i.alternate,null!==e&&null===eo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}hs(t,!0,n,null,a,t.lastEffect);break;case"together":hs(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function fs(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&jl(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(e=t.child,n=au(e,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,n=n.sibling=au(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ps(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function gs(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return Pi(t.type)&&ki(),null;case 3:return Za(),Mi(Ii),Mi(Ci),n=t.stateNode,n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Wo(t)||(t.effectTag|=4),as(t),null;case 5:Qa(t),n=Ka(Ya.current);var a=t.type;if(null!==e&&null!=t.stateNode)os(e,t,a,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(o(166));return null}if(e=Ka(Wa.current),Wo(t)){r=t.stateNode,a=t.type;var s=t.memoizedProps;switch(r[Fn]=t,r[zn]=s,a){case"iframe":case"object":case"embed":nn("load",r);break;case"video":case"audio":for(e=0;e<nt.length;e++)nn(nt[e],r);break;case"source":nn("error",r);break;case"img":case"image":case"link":nn("error",r),nn("load",r);break;case"form":nn("reset",r),nn("submit",r);break;case"details":nn("toggle",r);break;case"input":Ce(r,s),nn("invalid",r),vn(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!s.multiple},nn("invalid",r),vn(n,"onChange");break;case"textarea":Fe(r,s),nn("invalid",r),vn(n,"onChange")}for(var l in pn(a,s),e=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"===typeof u?r.textContent!==u&&(e=["children",u]):"number"===typeof u&&r.textContent!==""+u&&(e=["children",""+u]):O.hasOwnProperty(l)&&null!=u&&vn(n,l)}switch(a){case"input":Me(r),Le(r,s,!0);break;case"textarea":Me(r),Be(r);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(r.onclick=yn)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(l=9===n.nodeType?n:n.ownerDocument,e===mn&&(e=Ge(a)),e===mn?"script"===a?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(a,{is:r.is}):(e=l.createElement(a),"select"===a&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,a),e[Fn]=t,e[zn]=r,is(e,t,!1,!1),t.stateNode=e,l=gn(a,r),a){case"iframe":case"object":case"embed":nn("load",e),u=r;break;case"video":case"audio":for(u=0;u<nt.length;u++)nn(nt[u],e);u=r;break;case"source":nn("error",e),u=r;break;case"img":case"image":case"link":nn("error",e),nn("load",e),u=r;break;case"form":nn("reset",e),nn("submit",e),u=r;break;case"details":nn("toggle",e),u=r;break;case"input":Ce(e,r),u=Ae(e,r),nn("invalid",e),vn(n,"onChange");break;case"option":u=Re(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},u=i({},r,{value:void 0}),nn("invalid",e),vn(n,"onChange");break;case"textarea":Fe(e,r),u=je(e,r),nn("invalid",e),vn(n,"onChange");break;default:u=r}pn(a,u);var c=u;for(s in c)if(c.hasOwnProperty(s)){var h=c[s];"style"===s?dn(e,h):"dangerouslySetInnerHTML"===s?(h=h?h.__html:void 0,null!=h&&We(e,h)):"children"===s?"string"===typeof h?("textarea"!==a||""!==h)&&Xe(e,h):"number"===typeof h&&Xe(e,""+h):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(O.hasOwnProperty(s)?null!=h&&vn(n,s):null!=h&&te(e,s,h,l))}switch(a){case"input":Me(e),Le(e,r,!1);break;case"textarea":Me(e),Be(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Se(r.value));break;case"select":e.multiple=!!r.multiple,n=r.value,null!=n?Ne(e,!!r.multiple,n,!1):null!=r.defaultValue&&Ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof u.onClick&&(e.onclick=yn)}Dn(a,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)ss(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));n=Ka(Ya.current),Ka(Wa.current),Wo(t)?(n=t.stateNode,r=t.memoizedProps,n[Fn]=t,n.nodeValue!==r&&(t.effectTag|=4)):(n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r),n[Fn]=t,t.stateNode=n)}return null;case 13:return Mi(Ja),r=t.memoizedState,0!==(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Wo(t):(a=e.memoizedState,r=null!==a,n||null===a||(a=e.child.sibling,null!==a&&(s=t.firstEffect,null!==s?(t.firstEffect=a,a.nextEffect=s):(t.firstEffect=t.lastEffect=a,a.nextEffect=null),a.effectTag=8))),n&&!r&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&Ja.current)?nl===Xs&&(nl=qs):(nl!==Xs&&nl!==qs||(nl=Zs),0!==sl&&null!==Js&&(du(Js,tl),fu(Js,sl)))),(n||r)&&(t.effectTag|=4),null);case 4:return Za(),as(t),null;case 10:return ya(t),null;case 17:return Pi(t.type)&&ki(),null;case 19:if(Mi(Ja),r=t.memoizedState,null===r)return null;if(a=0!==(64&t.effectTag),s=r.rendering,null===s){if(a)ps(r,!1);else if(nl!==Xs||null!==e&&0!==(64&e.effectTag))for(s=t.child;null!==s;){if(e=eo(s),null!==e){for(t.effectTag|=64,ps(r,!1),a=e.updateQueue,null!==a&&(t.updateQueue=a,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)a=r,s=n,a.effectTag&=2,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null,e=a.alternate,null===e?(a.childExpirationTime=0,a.expirationTime=s,a.child=null,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null):(a.childExpirationTime=e.childExpirationTime,a.expirationTime=e.expirationTime,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,s=e.dependencies,a.dependencies=null===s?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),r=r.sibling;return Ei(Ja,1&Ja.current|2),t.child}s=s.sibling}}else{if(!a)if(e=eo(s),null!==e){if(t.effectTag|=64,a=!0,n=e.updateQueue,null!==n&&(t.updateQueue=n,t.effectTag|=4),ps(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate)return t=t.lastEffect=r.lastEffect,null!==t&&(t.nextEffect=null),null}else 2*ra()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,a=!0,ps(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(s.sibling=t.child,t.child=s):(n=r.last,null!==n?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=ra()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=ra(),n.sibling=null,t=Ja.current,Ei(Ja,a?1&t|2:1&t),n):null}throw Error(o(156,t.tag))}function ms(e){switch(e.tag){case 1:Pi(e.type)&&ki();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Za(),Mi(Ii),Mi(Ci),t=e.effectTag,0!==(64&t))throw Error(o(285));return e.effectTag=-4097&t|64,e;case 5:return Qa(e),null;case 13:return Mi(Ja),t=e.effectTag,4096&t?(e.effectTag=-4097&t|64,e):null;case 19:return Mi(Ja),null;case 4:return Za(),null;case 10:return ya(e),null;default:return null}}function vs(e,t){return{value:e,source:t,stack:we(t)}}is=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},as=function(){},os=function(e,t,n,r,a){var o=e.memoizedProps;if(o!==r){var s,l,u=t.stateNode;switch(Ka(Wa.current),e=null,n){case"input":o=Ae(u,o),r=Ae(u,r),e=[];break;case"option":o=Re(u,o),r=Re(u,r),e=[];break;case"select":o=i({},o,{value:void 0}),r=i({},r,{value:void 0}),e=[];break;case"textarea":o=je(u,o),r=je(u,r),e=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(u.onclick=yn)}for(s in pn(n,r),n=null,o)if(!r.hasOwnProperty(s)&&o.hasOwnProperty(s)&&null!=o[s])if("style"===s)for(l in u=o[s],u)u.hasOwnProperty(l)&&(n||(n={}),n[l]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(O.hasOwnProperty(s)?e||(e=[]):(e=e||[]).push(s,null));for(s in r){var c=r[s];if(u=null!=o?o[s]:void 0,r.hasOwnProperty(s)&&c!==u&&(null!=c||null!=u))if("style"===s)if(u){for(l in u)!u.hasOwnProperty(l)||c&&c.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in c)c.hasOwnProperty(l)&&u[l]!==c[l]&&(n||(n={}),n[l]=c[l])}else n||(e||(e=[]),e.push(s,n)),n=c;else"dangerouslySetInnerHTML"===s?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(e=e||[]).push(s,c)):"children"===s?u===c||"string"!==typeof c&&"number"!==typeof c||(e=e||[]).push(s,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(O.hasOwnProperty(s)?(null!=c&&vn(a,s),e||u===c||(e=[])):(e=e||[]).push(s,c))}n&&(e=e||[]).push("style",n),a=e,(t.updateQueue=a)&&(t.effectTag|=4)}},ss=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var ys="function"===typeof WeakSet?WeakSet:Set;function bs(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=we(n)),null!==n&&xe(n.type),t=t.value,null!==e&&1===e.tag&&xe(e.type);try{console.error(t)}catch(i){setTimeout((function(){throw i}))}}function _s(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(n){ql(e,n)}}function xs(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){ql(e,n)}else t.current=null}function ws(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?n:da(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(o(163))}function Ss(e,t){if(t=t.updateQueue,t=null!==t?t.lastEffect:null,null!==t){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function Ts(e,t){if(t=t.updateQueue,t=null!==t?t.lastEffect:null,null!==t){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Os(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void Ts(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:da(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return t=n.updateQueue,void(null!==t&&Ca(n,t,e));case 3:if(t=n.updateQueue,null!==t){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}Ca(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&Dn(n.type,n.memoizedProps)&&e.focus());case 6:return;case 4:return;case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Wt(n)))));case 19:case 17:case 20:case 21:return}throw Error(o(163))}function Ms(e,t,n){switch("function"===typeof Jl&&Jl(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,null!==e&&(e=e.lastEffect,null!==e)){var r=e.next;oa(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var i=t;try{n()}catch(a){ql(i,a)}}e=e.next}while(e!==r)}))}break;case 1:xs(t),n=t.stateNode,"function"===typeof n.componentWillUnmount&&_s(t,n);break;case 5:xs(t);break;case 4:Ls(e,t,n)}}function Es(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&Es(t)}function As(e){return 5===e.tag||3===e.tag||4===e.tag}function Cs(e){e:{for(var t=e.return;null!==t;){if(As(t)){var n=t;break e}t=t.return}throw Error(o(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:t=t.containerInfo,r=!0;break;case 4:t=t.containerInfo,r=!0;break;default:throw Error(o(161))}16&n.effectTag&&(Xe(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||As(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?Is(e,n,t):Ds(e,n,t)}function Is(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,null!==n&&void 0!==n||null!==t.onclick||(t.onclick=yn));else if(4!==r&&(e=e.child,null!==e))for(Is(e,t,n),e=e.sibling;null!==e;)Is(e,t,n),e=e.sibling}function Ds(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(e=e.child,null!==e))for(Ds(e,t,n),e=e.sibling;null!==e;)Ds(e,t,n),e=e.sibling}function Ls(e,t,n){for(var r,i,a=t,s=!1;;){if(!s){s=a.return;e:for(;;){if(null===s)throw Error(o(160));switch(r=s.stateNode,s.tag){case 5:i=!1;break e;case 3:r=r.containerInfo,i=!0;break e;case 4:r=r.containerInfo,i=!0;break e}s=s.return}s=!0}if(5===a.tag||6===a.tag){e:for(var l=e,u=a,c=n,h=u;;)if(Ms(l,h,c),null!==h.child&&4!==h.tag)h.child.return=h,h=h.child;else{if(h===u)break e;for(;null===h.sibling;){if(null===h.return||h.return===u)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}i?(l=r,u=a.stateNode,8===l.nodeType?l.parentNode.removeChild(u):l.removeChild(u)):r.removeChild(a.stateNode)}else if(4===a.tag){if(null!==a.child){r=a.stateNode.containerInfo,i=!0,a.child.return=a,a=a.child;continue}}else if(Ms(e,a,n),null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break;for(;null===a.sibling;){if(null===a.return||a.return===t)return;a=a.return,4===a.tag&&(s=!1)}a.sibling.return=a.return,a=a.sibling}}function Ps(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Ss(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,i=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[zn]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Ie(n,r),gn(e,i),t=gn(e,r),i=0;i<a.length;i+=2){var s=a[i],l=a[i+1];"style"===s?dn(n,l):"dangerouslySetInnerHTML"===s?We(n,l):"children"===s?Xe(n,l):te(n,s,l,t)}switch(e){case"input":De(n,r);break;case"textarea":ze(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,e=r.value,null!=e?Ne(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Ne(n,!!r.multiple,r.defaultValue,!0):Ne(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(o(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return t=t.stateNode,void(t.hydrate&&(t.hydrate=!1,Wt(t.containerInfo)));case 12:return;case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,ul=ra()),null!==n)e:for(e=n;;){if(5===e.tag)a=e.stateNode,r?(a=a.style,"function"===typeof a.setProperty?a.setProperty("display","none","important"):a.display="none"):(a=e.stateNode,i=e.memoizedProps.style,i=void 0!==i&&null!==i&&i.hasOwnProperty("display")?i.display:null,a.style.display=hn("display",i));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){a=e.child.sibling,a.return=e,e=a;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void ks(t);case 19:return void ks(t);case 17:return}throw Error(o(163))}function ks(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ys),t.forEach((function(t){var r=$l.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var Rs="function"===typeof WeakMap?WeakMap:Map;function Ns(e,t,n){n=Oa(n,null),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){dl||(dl=!0,fl=r),bs(e,t)},n}function js(e,t,n){n=Oa(n,null),n.tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return bs(e,t),r(i)}}var a=e.stateNode;return null!==a&&"function"===typeof a.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===pl?pl=new Set([this]):pl.add(this),bs(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var Fs,zs=Math.ceil,Bs=ee.ReactCurrentDispatcher,Vs=ee.ReactCurrentOwner,Gs=0,Hs=8,Us=16,Ws=32,Xs=0,Ys=1,Ks=2,qs=3,Zs=4,$s=5,Qs=Gs,Js=null,el=null,tl=0,nl=Xs,rl=null,il=1073741823,al=1073741823,ol=null,sl=0,ll=!1,ul=0,cl=500,hl=null,dl=!1,fl=null,pl=null,gl=!1,ml=null,vl=90,yl=null,bl=0,_l=null,xl=0;function wl(){return(Qs&(Us|Ws))!==Gs?1073741821-(ra()/10|0):0!==xl?xl:xl=1073741821-(ra()/10|0)}function Sl(e,t,n){if(t=t.mode,0===(2&t))return 1073741823;var r=ia();if(0===(4&t))return 99===r?1073741823:1073741822;if((Qs&Us)!==Gs)return tl;if(null!==n)e=ha(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=ha(e,150,100);break;case 97:case 96:e=ha(e,5e3,250);break;case 95:e=2;break;default:throw Error(o(326))}return null!==Js&&e===tl&&--e,e}function Tl(e,t){if(50<bl)throw bl=0,_l=null,Error(o(185));if(e=Ol(e,t),null!==e){var n=ia();1073741823===t?(Qs&Hs)!==Gs&&(Qs&(Us|Ws))===Gs?Cl(e):(El(e),Qs===Gs&&ua()):El(e),(4&Qs)===Gs||98!==n&&99!==n||(null===yl?yl=new Map([[e,t]]):(n=yl.get(e),(void 0===n||n>t)&&yl.set(e,t)))}}function Ol(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,i=null;if(null===r&&3===e.tag)i=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return null!==i&&(Js===i&&(jl(t),nl===Zs&&du(i,tl)),fu(i,t)),i}function Ml(e){var t=e.lastExpiredTime;if(0!==t)return t;if(t=e.firstPendingTime,!hu(e,t))return t;var n=e.lastPingedTime;return e=e.nextKnownPendingLevel,e=n>e?n:e,2>=e&&t!==e?0:e}function El(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=la(Cl.bind(null,e));else{var t=Ml(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=wl();if(1073741823===t?r=99:1===t||2===t?r=95:(r=10*(1073741821-t)-10*(1073741821-r),r=0>=r?99:250>=r?98:5250>=r?97:95),null!==n){var i=e.callbackPriority;if(e.callbackExpirationTime===t&&i>=r)return;n!==Zi&&Vi(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?la(Cl.bind(null,e)):sa(r,Al.bind(null,e),{timeout:10*(1073741821-t)-ra()}),e.callbackNode=t}}}function Al(e,t){if(xl=0,t)return t=wl(),pu(e,t),El(e),null;var n=Ml(e);if(0!==n){if(t=e.callbackNode,(Qs&(Us|Ws))!==Gs)throw Error(o(327));if(Xl(),e===Js&&n===tl||Pl(e,n),null!==el){var r=Qs;Qs|=Us;var i=Rl();do{try{zl();break}catch(l){kl(e,l)}}while(1);if(va(),Qs=r,Bs.current=i,nl===Ys)throw t=rl,Pl(e,n),du(e,n),El(e),t;if(null===el)switch(i=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=nl,Js=null,r){case Xs:case Ys:throw Error(o(345));case Ks:pu(e,2<n?2:n);break;case qs:if(du(e,n),r=e.lastSuspendedTime,n===r&&(e.nextKnownPendingLevel=Gl(i)),1073741823===il&&(i=ul+cl-ra(),10<i)){if(ll){var a=e.lastPingedTime;if(0===a||a>=n){e.lastPingedTime=n,Pl(e,n);break}}if(a=Ml(e),0!==a&&a!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=Pn(Hl.bind(null,e),i);break}Hl(e);break;case Zs:if(du(e,n),r=e.lastSuspendedTime,n===r&&(e.nextKnownPendingLevel=Gl(i)),ll&&(i=e.lastPingedTime,0===i||i>=n)){e.lastPingedTime=n,Pl(e,n);break}if(i=Ml(e),0!==i&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==al?r=10*(1073741821-al)-ra():1073741823===il?r=0:(r=10*(1073741821-il)-5e3,i=ra(),n=10*(1073741821-n)-i,r=i-r,0>r&&(r=0),r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*zs(r/1960))-r,n<r&&(r=n)),10<r){e.timeoutHandle=Pn(Hl.bind(null,e),r);break}Hl(e);break;case $s:if(1073741823!==il&&null!==ol){a=il;var s=ol;if(r=0|s.busyMinDurationMs,0>=r?r=0:(i=0|s.busyDelayMs,a=ra()-(10*(1073741821-a)-(0|s.timeoutMs||5e3)),r=a<=i?0:i+r-a),10<r){du(e,n),e.timeoutHandle=Pn(Hl.bind(null,e),r);break}}Hl(e);break;default:throw Error(o(329))}if(El(e),e.callbackNode===t)return Al.bind(null,e)}}return null}function Cl(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,(Qs&(Us|Ws))!==Gs)throw Error(o(327));if(Xl(),e===Js&&t===tl||Pl(e,t),null!==el){var n=Qs;Qs|=Us;var r=Rl();do{try{Fl();break}catch(i){kl(e,i)}}while(1);if(va(),Qs=n,Bs.current=r,nl===Ys)throw n=rl,Pl(e,t),du(e,t),El(e),n;if(null!==el)throw Error(o(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Js=null,Hl(e),El(e)}return null}function Il(){if(null!==yl){var e=yl;yl=null,e.forEach((function(e,t){pu(t,e),El(t)})),ua()}}function Dl(e,t){var n=Qs;Qs|=1;try{return e(t)}finally{Qs=n,Qs===Gs&&ua()}}function Ll(e,t){var n=Qs;Qs&=-2,Qs|=Hs;try{return e(t)}finally{Qs=n,Qs===Gs&&ua()}}function Pl(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,kn(n)),null!==el)for(n=el.return;null!==n;){var r=n;switch(r.tag){case 1:r=r.type.childContextTypes,null!==r&&void 0!==r&&ki();break;case 3:Za(),Mi(Ii),Mi(Ci);break;case 5:Qa(r);break;case 4:Za();break;case 13:Mi(Ja);break;case 19:Mi(Ja);break;case 10:ya(r)}n=n.return}Js=e,el=au(e.current,null),tl=t,nl=Xs,rl=null,al=il=1073741823,ol=null,sl=0,ll=!1}function kl(e,t){do{try{if(va(),no.current=ko,lo)for(var n=ao.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(io=0,so=oo=ao=null,lo=!1,null===el||null===el.return)return nl=Ys,rl=t,el=null;e:{var i=e,a=el.return,o=el,s=t;if(t=tl,o.effectTag|=2048,o.firstEffect=o.lastEffect=null,null!==s&&"object"===typeof s&&"function"===typeof s.then){var l=s;if(0===(2&o.mode)){var u=o.alternate;u?(o.updateQueue=u.updateQueue,o.memoizedState=u.memoizedState,o.expirationTime=u.expirationTime):(o.updateQueue=null,o.memoizedState=null)}var c=0!==(1&Ja.current),h=a;do{var d;if(d=13===h.tag){var f=h.memoizedState;if(null!==f)d=null!==f.dehydrated;else{var p=h.memoizedProps;d=void 0!==p.fallback&&(!0!==p.unstable_avoidThisFallback||!c)}}if(d){var g=h.updateQueue;if(null===g){var m=new Set;m.add(l),h.updateQueue=m}else g.add(l);if(0===(2&h.mode)){if(h.effectTag|=64,o.effectTag&=-2981,1===o.tag)if(null===o.alternate)o.tag=17;else{var v=Oa(1073741823,null);v.tag=2,Ma(o,v)}o.expirationTime=1073741823;break e}s=void 0,o=t;var y=i.pingCache;if(null===y?(y=i.pingCache=new Rs,s=new Set,y.set(l,s)):(s=y.get(l),void 0===s&&(s=new Set,y.set(l,s))),!s.has(o)){s.add(o);var b=Zl.bind(null,i,l,o);l.then(b,b)}h.effectTag|=4096,h.expirationTime=t;break e}h=h.return}while(null!==h);s=Error((xe(o.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+we(o))}nl!==$s&&(nl=Ks),s=vs(s,o),h=a;do{switch(h.tag){case 3:l=s,h.effectTag|=4096,h.expirationTime=t;var _=Ns(h,l,t);Ea(h,_);break e;case 1:l=s;var x=h.type,w=h.stateNode;if(0===(64&h.effectTag)&&("function"===typeof x.getDerivedStateFromError||null!==w&&"function"===typeof w.componentDidCatch&&(null===pl||!pl.has(w)))){h.effectTag|=4096,h.expirationTime=t;var S=js(h,l,t);Ea(h,S);break e}}h=h.return}while(null!==h)}el=Vl(el)}catch(T){t=T;continue}break}while(1)}function Rl(){var e=Bs.current;return Bs.current=ko,null===e?ko:e}function Nl(e,t){e<il&&2<e&&(il=e),null!==t&&e<al&&2<e&&(al=e,ol=t)}function jl(e){e>sl&&(sl=e)}function Fl(){for(;null!==el;)el=Bl(el)}function zl(){for(;null!==el&&!$i();)el=Bl(el)}function Bl(e){var t=Fs(e.alternate,e,tl);return e.memoizedProps=e.pendingProps,null===t&&(t=Vl(e)),Vs.current=null,t}function Vl(e){el=e;do{var t=el.alternate;if(e=el.return,0===(2048&el.effectTag)){if(t=gs(t,el,tl),1===tl||1!==el.childExpirationTime){for(var n=0,r=el.child;null!==r;){var i=r.expirationTime,a=r.childExpirationTime;i>n&&(n=i),a>n&&(n=a),r=r.sibling}el.childExpirationTime=n}if(null!==t)return t;null!==e&&0===(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=el.firstEffect),null!==el.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=el.firstEffect),e.lastEffect=el.lastEffect),1<el.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=el:e.firstEffect=el,e.lastEffect=el))}else{if(t=ms(el),null!==t)return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(t=el.sibling,null!==t)return t;el=e}while(null!==el);return nl===Xs&&(nl=$s),null}function Gl(e){var t=e.expirationTime;return e=e.childExpirationTime,t>e?t:e}function Hl(e){var t=ia();return oa(99,Ul.bind(null,e,t)),null}function Ul(e,t){do{Xl()}while(null!==ml);if((Qs&(Us|Ws))!==Gs)throw Error(o(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var i=Gl(n);if(e.firstPendingTime=i,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Js&&(el=Js=null,tl=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,null!==i){var a=Qs;Qs|=Ws,Vs.current=null,Cn=tn;var s=Sn();if(Tn(s)){if("selectionStart"in s)var l={start:s.selectionStart,end:s.selectionEnd};else e:{l=(l=s.ownerDocument)&&l.defaultView||window;var u=l.getSelection&&l.getSelection();if(u&&0!==u.rangeCount){l=u.anchorNode;var c=u.anchorOffset,h=u.focusNode;u=u.focusOffset;try{l.nodeType,h.nodeType}catch(M){l=null;break e}var d=0,f=-1,p=-1,g=0,m=0,v=s,y=null;t:for(;;){for(var b;;){if(v!==l||0!==c&&3!==v.nodeType||(f=d+c),v!==h||0!==u&&3!==v.nodeType||(p=d+u),3===v.nodeType&&(d+=v.nodeValue.length),null===(b=v.firstChild))break;y=v,v=b}for(;;){if(v===s)break t;if(y===l&&++g===c&&(f=d),y===h&&++m===u&&(p=d),null!==(b=v.nextSibling))break;v=y,y=v.parentNode}v=b}l=-1===f||-1===p?null:{start:f,end:p}}else l=null}l=l||{start:0,end:0}}else l=null;In={activeElementDetached:null,focusedElem:s,selectionRange:l},tn=!1,hl=i;do{try{Wl()}catch(M){if(null===hl)throw Error(o(330));ql(hl,M),hl=hl.nextEffect}}while(null!==hl);hl=i;do{try{for(s=e,l=t;null!==hl;){var _=hl.effectTag;if(16&_&&Xe(hl.stateNode,""),128&_){var x=hl.alternate;if(null!==x){var w=x.ref;null!==w&&("function"===typeof w?w(null):w.current=null)}}switch(1038&_){case 2:Cs(hl),hl.effectTag&=-3;break;case 6:Cs(hl),hl.effectTag&=-3,Ps(hl.alternate,hl);break;case 1024:hl.effectTag&=-1025;break;case 1028:hl.effectTag&=-1025,Ps(hl.alternate,hl);break;case 4:Ps(hl.alternate,hl);break;case 8:c=hl,Ls(s,c,l),Es(c)}hl=hl.nextEffect}}catch(M){if(null===hl)throw Error(o(330));ql(hl,M),hl=hl.nextEffect}}while(null!==hl);if(w=In,x=Sn(),_=w.focusedElem,l=w.selectionRange,x!==_&&_&&_.ownerDocument&&wn(_.ownerDocument.documentElement,_)){null!==l&&Tn(_)&&(x=l.start,w=l.end,void 0===w&&(w=x),"selectionStart"in _?(_.selectionStart=x,_.selectionEnd=Math.min(w,_.value.length)):(w=(x=_.ownerDocument||document)&&x.defaultView||window,w.getSelection&&(w=w.getSelection(),c=_.textContent.length,s=Math.min(l.start,c),l=void 0===l.end?s:Math.min(l.end,c),!w.extend&&s>l&&(c=l,l=s,s=c),c=xn(_,s),h=xn(_,l),c&&h&&(1!==w.rangeCount||w.anchorNode!==c.node||w.anchorOffset!==c.offset||w.focusNode!==h.node||w.focusOffset!==h.offset)&&(x=x.createRange(),x.setStart(c.node,c.offset),w.removeAllRanges(),s>l?(w.addRange(x),w.extend(h.node,h.offset)):(x.setEnd(h.node,h.offset),w.addRange(x)))))),x=[];for(w=_;w=w.parentNode;)1===w.nodeType&&x.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"===typeof _.focus&&_.focus(),_=0;_<x.length;_++)w=x[_],w.element.scrollLeft=w.left,w.element.scrollTop=w.top}tn=!!Cn,In=Cn=null,e.current=n,hl=i;do{try{for(_=e;null!==hl;){var S=hl.effectTag;if(36&S&&Os(_,hl.alternate,hl),128&S){x=void 0;var T=hl.ref;if(null!==T){var O=hl.stateNode;switch(hl.tag){case 5:x=O;break;default:x=O}"function"===typeof T?T(x):T.current=x}}hl=hl.nextEffect}}catch(M){if(null===hl)throw Error(o(330));ql(hl,M),hl=hl.nextEffect}}while(null!==hl);hl=null,Qi(),Qs=a}else e.current=n;if(gl)gl=!1,ml=e,vl=t;else for(hl=i;null!==hl;)t=hl.nextEffect,hl.nextEffect=null,hl=t;if(t=e.firstPendingTime,0===t&&(pl=null),1073741823===t?e===_l?bl++:(bl=0,_l=e):bl=0,"function"===typeof Ql&&Ql(n.stateNode,r),El(e),dl)throw dl=!1,e=fl,fl=null,e;return(Qs&Hs)!==Gs||ua(),null}function Wl(){for(;null!==hl;){var e=hl.effectTag;0!==(256&e)&&ws(hl.alternate,hl),0===(512&e)||gl||(gl=!0,sa(97,(function(){return Xl(),null}))),hl=hl.nextEffect}}function Xl(){if(90!==vl){var e=97<vl?97:vl;return vl=90,oa(e,Yl)}}function Yl(){if(null===ml)return!1;var e=ml;if(ml=null,(Qs&(Us|Ws))!==Gs)throw Error(o(331));var t=Qs;for(Qs|=Ws,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!==(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:Ss(5,n),Ts(5,n)}}catch(r){if(null===e)throw Error(o(330));ql(e,r)}n=e.nextEffect,e.nextEffect=null,e=n}return Qs=t,ua(),!0}function Kl(e,t,n){t=vs(n,t),t=Ns(e,t,1073741823),Ma(e,t),e=Ol(e,1073741823),null!==e&&El(e)}function ql(e,t){if(3===e.tag)Kl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Kl(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===pl||!pl.has(r))){e=vs(t,e),e=js(n,e,1073741823),Ma(n,e),n=Ol(n,1073741823),null!==n&&El(n);break}}n=n.return}}function Zl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),Js===e&&tl===n?nl===Zs||nl===qs&&1073741823===il&&ra()-ul<cl?Pl(e,tl):ll=!0:hu(e,n)&&(t=e.lastPingedTime,0!==t&&t<n||(e.lastPingedTime=n,El(e)))}function $l(e,t){var n=e.stateNode;null!==n&&n.delete(t),t=0,0===t&&(t=wl(),t=Sl(t,e,null)),e=Ol(e,t),null!==e&&El(e)}Fs=function(e,t,n){var r=t.expirationTime;if(null!==e){var i=t.pendingProps;if(e.memoizedProps!==i||Ii.current)Ko=!0;else{if(r<n){switch(Ko=!1,t.tag){case 3:rs(t),Xo();break;case 5:if($a(t),4&t.mode&&1!==n&&i.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:Pi(t.type)&&ji(t);break;case 4:qa(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,i=t.type._context,Ei(fa,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return r=t.child.childExpirationTime,0!==r&&r>=n?us(e,t,n):(Ei(Ja,1&Ja.current),t=fs(e,t,n),null!==t?t.sibling:null);Ei(Ja,1&Ja.current);break;case 19:if(r=t.childExpirationTime>=n,0!==(64&e.effectTag)){if(r)return ds(e,t,n);t.effectTag|=64}if(i=t.memoizedState,null!==i&&(i.rendering=null,i.tail=null),Ei(Ja,Ja.current),!r)return null}return fs(e,t,n)}Ko=!1}}else Ko=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=Li(t,Ci.current),_a(t,n),i=ho(null,t,r,e,i,n),t.effectTag|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pi(r)){var a=!0;ji(t)}else a=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Sa(t);var s=r.getDerivedStateFromProps;"function"===typeof s&&La(t,r,s,e),i.updater=Pa,t.stateNode=i,i._reactInternalFiber=t,ja(t,r,e,n),t=ns(null,t,r,!0,a,n)}else t.tag=0,qo(null,t,i,n),t=t.child;return t;case 16:e:{if(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,_e(i),1!==i._status)throw i._result;switch(i=i._result,t.type=i,a=t.tag=iu(i),e=da(i,e),a){case 0:t=es(null,t,i,e,n);break e;case 1:t=ts(null,t,i,e,n);break e;case 11:t=Zo(null,t,i,e,n);break e;case 14:t=$o(null,t,i,da(i.type,e),r,n);break e}throw Error(o(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:da(r,i),es(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:da(r,i),ts(e,t,r,i,n);case 3:if(rs(t),r=t.updateQueue,null===e||null===r)throw Error(o(282));if(r=t.pendingProps,i=t.memoizedState,i=null!==i?i.element:null,Ta(e,t),Aa(t,r,null,n),r=t.memoizedState.element,r===i)Xo(),t=fs(e,t,n);else{if((i=t.stateNode.hydrate)&&(zo=Rn(t.stateNode.containerInfo.firstChild),Fo=t,i=Bo=!0),i)for(n=Ha(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else qo(e,t,r,n),Xo();t=t.child}return t;case 5:return $a(t),null===e&&Ho(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,Ln(r,i)?s=null:null!==a&&Ln(r,a)&&(t.effectTag|=16),Jo(e,t),4&t.mode&&1!==n&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(qo(e,t,s,n),t=t.child),t;case 6:return null===e&&Ho(t),null;case 13:return us(e,t,n);case 4:return qa(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ga(t,null,r,n):qo(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:da(r,i),Zo(e,t,r,i,n);case 7:return qo(e,t,t.pendingProps,n),t.child;case 8:return qo(e,t,t.pendingProps.children,n),t.child;case 12:return qo(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,s=t.memoizedProps,a=i.value;var l=t.type._context;if(Ei(fa,l._currentValue),l._currentValue=a,null!==s)if(l=s.value,a=ei(l,a)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(l,a):1073741823),0===a){if(s.children===i.children&&!Ii.current){t=fs(e,t,n);break e}}else for(l=t.child,null!==l&&(l.return=t);null!==l;){var u=l.dependencies;if(null!==u){s=l.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&0!==(c.observedBits&a)){1===l.tag&&(c=Oa(n,null),c.tag=2,Ma(l,c)),l.expirationTime<n&&(l.expirationTime=n),c=l.alternate,null!==c&&c.expirationTime<n&&(c.expirationTime=n),ba(l.return,n),u.expirationTime<n&&(u.expirationTime=n);break}c=c.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(l=s.sibling,null!==l){l.return=s.return,s=l;break}s=s.return}l=s}qo(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,a=t.pendingProps,r=a.children,_a(t,n),i=xa(i,a.unstable_observedBits),r=r(i),t.effectTag|=1,qo(e,t,r,n),t.child;case 14:return i=t.type,a=da(i,t.pendingProps),a=da(i.type,a),$o(e,t,i,a,r,n);case 15:return Qo(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:da(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,Pi(r)?(e=!0,ji(t)):e=!1,_a(t,n),Ra(t,r,i),ja(t,r,i,n),ns(null,t,r,!0,e,n);case 19:return ds(e,t,n)}throw Error(o(156,t.tag))};var Ql=null,Jl=null;function eu(e){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Ql=function(e){try{t.onCommitFiberRoot(n,e,void 0,64===(64&e.current.effectTag))}catch(r){}},Jl=function(e){try{t.onCommitFiberUnmount(n,e)}catch(r){}}}catch(r){}return!0}function tu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function nu(e,t,n,r){return new tu(e,t,n,r)}function ru(e){return e=e.prototype,!(!e||!e.isReactComponent)}function iu(e){if("function"===typeof e)return ru(e)?1:0;if(void 0!==e&&null!==e){if(e=e.$$typeof,e===de)return 11;if(e===ge)return 14}return 2}function au(e,t){var n=e.alternate;return null===n?(n=nu(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ou(e,t,n,r,i,a){var s=2;if(r=e,"function"===typeof e)ru(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case oe:return su(n.children,i,a,t);case he:s=8,i|=7;break;case se:s=8,i|=1;break;case le:return e=nu(12,n,t,8|i),e.elementType=le,e.type=le,e.expirationTime=a,e;case fe:return e=nu(13,n,t,i),e.type=fe,e.elementType=fe,e.expirationTime=a,e;case pe:return e=nu(19,n,t,i),e.elementType=pe,e.expirationTime=a,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case ue:s=10;break e;case ce:s=9;break e;case de:s=11;break e;case ge:s=14;break e;case me:s=16,r=null;break e;case ve:s=22;break e}throw Error(o(130,null==e?e:typeof e,""))}return t=nu(s,n,t,i),t.elementType=e,t.type=r,t.expirationTime=a,t}function su(e,t,n,r){return e=nu(7,e,r,t),e.expirationTime=n,e}function lu(e,t,n){return e=nu(6,e,null,t),e.expirationTime=n,e}function uu(e,t,n){return t=nu(4,null!==e.children?e.children:[],e.key,t),t.expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function cu(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function hu(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function du(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function fu(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function pu(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function gu(e,t,n,r){var i=t.current,a=wl(),s=Ia.suspense;a=Sl(a,i,s);e:if(n){n=n._reactInternalFiber;t:{if(at(n)!==n||1!==n.tag)throw Error(o(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(Pi(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(o(171))}if(1===n.tag){var u=n.type;if(Pi(u)){n=Ni(n,u,l);break e}}n=l}else n=Ai;return null===t.context?t.context=n:t.pendingContext=n,t=Oa(a,s),t.payload={element:e},r=void 0===r?null:r,null!==r&&(t.callback=r),Ma(i,t),Tl(i,a),a}function mu(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function vu(e,t){e=e.memoizedState,null!==e&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function yu(e,t){vu(e,t),(e=e.alternate)&&vu(e,t)}function bu(e,t,n){n=null!=n&&!0===n.hydrate;var r=new cu(e,t,n),i=nu(3,null,null,2===t?7:1===t?3:0);r.current=i,i.stateNode=r,Sa(i),e[Bn]=r.current,n&&0!==t&&Rt(e,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function _u(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function xu(e,t){if(t||(t=e?9===e.nodeType?e.documentElement:e.firstChild:null,t=!(!t||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new bu(e,0,t?{hydrate:!0}:void 0)}function wu(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a._internalRoot;if("function"===typeof i){var s=i;i=function(){var e=mu(o);s.call(e)}}gu(t,o,e,i)}else{if(a=n._reactRootContainer=xu(n,r),o=a._internalRoot,"function"===typeof i){var l=i;i=function(){var e=mu(o);l.call(e)}}Ll((function(){gu(t,o,e,i)}))}return mu(o)}function Su(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:ae,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Tu(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!_u(t))throw Error(o(200));return Su(e,t,null,n)}bu.prototype.render=function(e){gu(e,this._internalRoot,null,null)},bu.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;gu(null,e,null,(function(){t[Bn]=null}))},wt=function(e){if(13===e.tag){var t=ha(wl(),150,100);Tl(e,t),yu(e,t)}},St=function(e){13===e.tag&&(Tl(e,3),yu(e,3))},Tt=function(e){if(13===e.tag){var t=wl();t=Sl(t,e,null),Tl(e,t),yu(e,t)}},C=function(e,t,n){switch(t){case"input":if(De(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Un(r);if(!i)throw Error(o(90));Ee(r),De(r,i)}}}break;case"textarea":ze(e,n);break;case"select":t=n.value,null!=t&&Ne(e,!!n.multiple,t,!1)}},R=Dl,N=function(e,t,n,r,i){var a=Qs;Qs|=4;try{return oa(98,e.bind(null,t,n,r,i))}finally{Qs=a,Qs===Gs&&ua()}},j=function(){(Qs&(1|Us|Ws))===Gs&&(Il(),Xl())},F=function(e,t){var n=Qs;Qs|=2;try{return e(t)}finally{Qs=n,Qs===Gs&&ua()}};var Ou={Events:[Gn,Hn,Un,E,T,$n,function(e){ht(e,Zn)},P,k,sn,pt,Xl,{current:!1}]};(function(e){var t=e.findFiberByHostInstance;eu(i({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ee.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ut(e),null===e?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))})({findFiberByHostInstance:Vn,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ou,t.createPortal=Tu,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw Error(o(268,Object.keys(e)))}return e=ut(t),e=null===e?null:e.stateNode,e},t.flushSync=function(e,t){if((Qs&(Us|Ws))!==Gs)throw Error(o(187));var n=Qs;Qs|=1;try{return oa(99,e.bind(null,t))}finally{Qs=n,ua()}},t.hydrate=function(e,t,n){if(!_u(t))throw Error(o(200));return wu(null,e,t,!0,n)},t.render=function(e,t,n){if(!_u(t))throw Error(o(200));return wu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!_u(e))throw Error(o(40));return!!e._reactRootContainer&&(Ll((function(){wu(null,null,e,!1,(function(){e._reactRootContainer=null,e[Bn]=null}))})),!0)},t.unstable_batchedUpdates=Dl,t.unstable_createPortal=function(e,t){return Tu(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!_u(n))throw Error(o(200));if(null==e||void 0===e._reactInternalFiber)throw Error(o(38));return wu(e,t,n,!1,r)},t.version="16.14.0"},ovrx:function(e,t,n){},p1W9:function(e,t,n){"use strict";n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return x}));var r={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r))},elasticOut:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-r.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*r.bounceIn(2*e):.5*r.bounceOut(2*e-1)+.5}},i=r,a=function(){function e(e){this._initialized=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=null!=e.loop&&e.loop,this.gap=e.gap||0,this.easing=e.easing||"linear",this.onframe=e.onframe,this.ondestroy=e.ondestroy,this.onrestart=e.onrestart}return e.prototype.step=function(e,t){if(this._initialized||(this._startTime=e+this._delay,this._initialized=!0),!this._paused){var n=(e-this._startTime-this._pausedTime)/this._life;n<0&&(n=0),n=Math.min(n,1);var r=this.easing,a="string"===typeof r?i[r]:r,o="function"===typeof a?a(n):n;if(this.onframe&&this.onframe(o),1===n){if(!this.loop)return!0;this._restart(e),this.onrestart&&this.onrestart()}return!1}this._pausedTime+=t},e.prototype._restart=function(e){var t=(e-this._startTime-this._pausedTime)%this._life;this._startTime=e-t+this.gap,this._pausedTime=0},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e}(),o=a,s=n("Rj4u"),l=n("a0Kb"),u=Array.prototype.slice;function c(e,t,n){return(t-e)*n+e}function h(e,t,n){return n>.5?t:e}function d(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=c(t[a],n[a],r)}function f(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=c(t[o][s],n[o][s],r)}}function p(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function g(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+n[o][s]*r}return e}function m(e,t,n){var r=e,i=t;if(r.push&&i.push){var a=r.length,o=i.length;if(a!==o){var s=a>o;if(s)r.length=o;else for(var l=a;l<o;l++)r.push(1===n?i[l]:u.call(i[l]))}var c=r[0]&&r[0].length;for(l=0;l<r.length;l++)if(1===n)isNaN(r[l])&&(r[l]=i[l]);else for(var h=0;h<c;h++)isNaN(r[l][h])&&(r[l][h]=i[l][h])}}function v(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function y(e,t,n,r,i,a,o){var s=.5*(n-e),l=.5*(r-t);return(2*(t-n)+s+l)*o+(-3*(t-n)-2*s-l)*a+s*i+t}function b(e,t,n,r,i,a,o,s){for(var l=t.length,u=0;u<l;u++)e[u]=y(t[u],n[u],r[u],i[u],a,o,s)}function _(e,t,n,r,i,a,o,s){for(var l=t.length,u=t[0].length,c=0;c<l;c++){e[c]||(e[1]=[]);for(var h=0;h<u;h++)e[c][h]=y(t[c][h],n[c][h],r[c][h],i[c][h],a,o,s)}}function x(e){if(Object(l["isArrayLike"])(e)){var t=e.length;if(Object(l["isArrayLike"])(e[0])){for(var n=[],r=0;r<t;r++)n.push(u.call(e[r]));return n}return u.call(e)}return e}function w(e){return e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.floor(e[2]),"rgba("+e.join(",")+")"}function S(e){return Object(l["isArrayLike"])(e&&e[0])?2:1}var T=[0,0,0,0],O=function(){function e(e){this.keyframes=[],this.maxTime=0,this.arrDim=0,this.interpolable=!0,this._needsSort=!1,this._isAllValueEqual=!0,this._lastFrame=0,this._lastFramePercent=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return!this._isAllValueEqual&&this.keyframes.length>=2&&this.interpolable},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t){e>=this.maxTime?this.maxTime=e:this._needsSort=!0;var n=this.keyframes,r=n.length;if(this.interpolable)if(Object(l["isArrayLike"])(t)){var i=S(t);if(r>0&&this.arrDim!==i)return void(this.interpolable=!1);if(1===i&&"number"!==typeof t[0]||2===i&&"number"!==typeof t[0][0])return void(this.interpolable=!1);if(r>0){var a=n[r-1];this._isAllValueEqual&&(1===i&&v(t,a.value)||(this._isAllValueEqual=!1))}this.arrDim=i}else{if(this.arrDim>0)return void(this.interpolable=!1);if("string"===typeof t){var o=s["parse"](t);o?(t=o,this.isValueColor=!0):this.interpolable=!1}else if("number"!==typeof t)return void(this.interpolable=!1);if(this._isAllValueEqual&&r>0){a=n[r-1];(this.isValueColor&&!v(a.value,t)||a.value!==t)&&(this._isAllValueEqual=!1)}}var u={time:e,value:t,percent:0};return this.keyframes.push(u),u},e.prototype.prepare=function(e){var t=this.keyframes;this._needsSort&&t.sort((function(e,t){return e.time-t.time}));for(var n=this.arrDim,r=t.length,i=t[r-1],a=0;a<r;a++)t[a].percent=t[a].time/this.maxTime,n>0&&a!==r-1&&m(t[a].value,i.value,n);if(e&&this.needsAnimate()&&e.needsAnimate()&&n===e.arrDim&&this.isValueColor===e.isValueColor&&!e._finished){this._additiveTrack=e;var o=t[0].value;for(a=0;a<r;a++)0===n?this.isValueColor?t[a].additiveValue=p([],t[a].value,o,-1):t[a].additiveValue=t[a].value-o:1===n?t[a].additiveValue=p([],t[a].value,o,-1):2===n&&(t[a].additiveValue=g([],t[a].value,o,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r=null!=this._additiveTrack,i=r?"additiveValue":"value",a=this.keyframes,o=this.keyframes.length,s=this.propName,l=this.arrDim,u=this.isValueColor;if(t<0)n=0;else if(t<this._lastFramePercent){var p=Math.min(this._lastFrame+1,o-1);for(n=p;n>=0;n--)if(a[n].percent<=t)break;n=Math.min(n,o-2)}else{for(n=this._lastFrame;n<o;n++)if(a[n].percent>t)break;n=Math.min(n-1,o-2)}var g=a[n+1],m=a[n];if(m&&g){this._lastFrame=n,this._lastFramePercent=t;var v=g.percent-m.percent;if(0!==v){var x=(t-m.percent)/v,S=r?this._additiveValue:u?T:e[s];if((l>0||u)&&!S&&(S=this._additiveValue=[]),this.useSpline){var O=a[n][i],M=a[0===n?n:n-1][i],E=a[n>o-2?o-1:n+1][i],A=a[n>o-3?o-1:n+2][i];if(l>0)1===l?b(S,M,O,E,A,x,x*x,x*x*x):_(S,M,O,E,A,x,x*x,x*x*x);else if(u)b(S,M,O,E,A,x,x*x,x*x*x),r||(e[s]=w(S));else{var C=void 0;C=this.interpolable?y(M,O,E,A,x,x*x,x*x*x):E,r?this._additiveValue=C:e[s]=C}}else if(l>0)1===l?d(S,m[i],g[i],x):f(S,m[i],g[i],x);else if(u)d(S,m[i],g[i],x),r||(e[s]=w(S));else{C=void 0;C=this.interpolable?c(m[i],g[i],x):h(m[i],g[i],x),r?this._additiveValue=C:e[s]=C}r&&this._addToTarget(e)}}}},e.prototype._addToTarget=function(e){var t=this.arrDim,n=this.propName,r=this._additiveValue;0===t?this.isValueColor?(s["parse"](e[n],T),p(T,T,r,1),e[n]=w(T)):e[n]=e[n]+r:1===t?p(e[n],e[n],r,1):2===t&&g(e[n],e[n],r,1)},e}(),M=function(){function e(e,t,n){this._tracks={},this._trackKeys=[],this._delay=0,this._maxTime=0,this._paused=!1,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n?Object(l["logError"])("Can' use additive animation on looped animation."):this._additiveAnimators=n}return e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t){return this.whenWithKeys(e,t,Object(l["keys"])(t))},e.prototype.whenWithKeys=function(e,t,n){for(var r=this._tracks,i=0;i<n.length;i++){var a=n[i],o=r[a];if(!o){o=r[a]=new O(a);var s=void 0,l=this._getAdditiveTrack(a);if(l){var u=l.keyframes[l.keyframes.length-1];s=u&&u.value,l.isValueColor&&s&&(s=w(s))}else s=this._target[a];if(null==s)continue;0!==e&&o.addKeyframe(0,x(s)),this._trackKeys.push(a)}o.addKeyframe(e,x(t[a]))}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneList;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedList;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e,t){if(!(this._started>0)){this._started=1;for(var n=this,r=[],i=0;i<this._trackKeys.length;i++){var a=this._trackKeys[i],s=this._tracks[a],l=this._getAdditiveTrack(a),u=s.keyframes;if(s.prepare(l),s.needsAnimate())r.push(s);else if(!s.interpolable){var c=u[u.length-1];c&&(n._target[s.propName]=c.value)}}if(r.length||t){var h=new o({life:this._maxTime,loop:this._loop,delay:this._delay,onframe:function(e){n._started=2;var t=n._additiveAnimators;if(t){for(var i=!1,a=0;a<t.length;a++)if(t[a]._clip){i=!0;break}i||(n._additiveAnimators=null)}for(a=0;a<r.length;a++)r[a].step(n._target,e);var o=n._onframeList;if(o)for(a=0;a<o.length;a++)o[a](n._target,e)},ondestroy:function(){n._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),e&&"spline"!==e&&(h.easing=e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeList||(this._onframeList=[]),this._onframeList.push(e)),this},e.prototype.done=function(e){return e&&(this._doneList||(this._doneList=[]),this._doneList.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedList||(this._abortedList=[]),this._abortedList.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var a=n[e[i]];a&&(t?a.step(this._target,1):1===this._started&&a.step(this._target,0),a.setFinished())}var o=!0;for(i=0;i<r.length;i++)if(!n[r[i]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},e.prototype.saveFinalToTarget=function(e,t){if(e){t=t||this._trackKeys;for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i&&!i.isFinished()){var a=i.keyframes,o=a[a.length-1];if(o){var s=x(o.value);i.isValueColor&&(s=w(s)),e[r]=s}}}}},e.prototype.__changeFinalValue=function(e,t){t=t||Object(l["keys"])(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var a=i.keyframes;if(a.length>1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(i.getAdditiveTrack())}}}},e}();t["b"]=M},p21n:function(e,t){},"pMf/":function(e,t,n){var r=n("2JD6"),i=n("7+LC"),a=n("9HG5"),o=n("Wp5u").NATIVE_ARRAY_BUFFER_VIEWS,s=r.ArrayBuffer,l=r.Int8Array;e.exports=!o||!i((function(){l(1)}))||!i((function(){new l(-1)}))||!a((function(e){new l,new l(null),new l(1.5),new l(e)}),!0)||i((function(){return 1!==new l(new s(2),1,void 0).length}))},pYsg:function(e,t,n){"use strict";var r=n("HIsA"),i=n("m52V"),a=n("hXyk"),o=n("40mc"),s=n("YjHi"),l=n("Ji6T");r({target:"Map",proto:!0,real:!0,forced:i},{some:function(e){var t=a(this),n=s(t),r=o(e,arguments.length>1?arguments[1]:void 0,3);return l(n,(function(e,n){if(r(n,e,t))return l.stop()}),void 0,!0,!0).stopped}})},plly:function(e,t,n){"use strict";var r=n("Hiyu"),i=n("JY8B"),a=n("NVMI"),o=n("2I03"),s=n("2RC6").f;r&&!("lastItem"in[])&&(s(Array.prototype,"lastItem",{configurable:!0,get:function(){var e=a(this),t=o(e.length);return 0==t?void 0:e[t-1]},set:function(e){var t=a(this),n=o(t.length);return t[0==n?0:n-1]=e}}),i("lastItem"))},pthC:function(e,t,n){"use strict";var r=n("HIsA"),i=n("0MLT"),a=n("uCRN");r({target:"Promise",stat:!0},{try:function(e){var t=i.f(this),n=a(e);return(n.error?t.reject:t.resolve)(n.value),t.promise}})},pxmn:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},q0Qw:function(e,t,n){var r=n("G4R5"),i=n("stff"),a=n("bWCM"),o=n("pxmn"),s=function(){this.object=null,this.symbol=null,this.primitives=null,this.objectsByIndex=a(null)};s.prototype.get=function(e,t){return this[e]||(this[e]=t())},s.prototype.next=function(e,t,n){var a=n?this.objectsByIndex[e]||(this.objectsByIndex[e]=new i):this.primitives||(this.primitives=new r),o=a.get(t);return o||a.set(t,o=new s),o};var l=new s;e.exports=function(){var e,t,n=l,r=arguments.length;for(e=0;e<r;e++)o(t=arguments[e])&&(n=n.next(e,t,!0));if(this===Object&&n===l)throw TypeError("Composite keys must contain a non-primitive component");for(e=0;e<r;e++)o(t=arguments[e])||(n=n.next(e,t,!1));return n}},q3Pu:function(e,t,n){var r=n("HIsA"),i=n("icJ8"),a=n("hXyk"),o=i.toKey,s=i.set;r({target:"Reflect",stat:!0},{metadata:function(e,t){return function(n,r){s(e,t,a(n),o(r))}}})},q3YX:function(e){e.exports=JSON.parse('{"menus":{"en-US":{"*":[{"path":"/","title":"ECharts for React - \u5168\u7f51\u6700\u597d\u7528\u7684 ECharts \u7684 React \u7ec4\u4ef6\u5c01\u88c5","meta":{"order":10}}],"/examples":[{"path":"/examples/simple","title":"Simple","meta":{"order":1}},{"path":"/examples/api","title":"ECharts API","meta":{"order":2}},{"path":"/examples/theme","title":"Theme","meta":{"order":3}},{"path":"/examples/event","title":"Event","meta":{"order":4}},{"path":"/examples/loading","title":"Loading","meta":{"order":5}},{"path":"/examples/dynamic","title":"Dynamic","meta":{"order":6}},{"path":"/examples/gl","title":"Web GL","meta":{"order":7}},{"path":"/examples/svg","title":"SVG","meta":{"order":8}},{"path":"/examples/graph","title":"Graph","meta":{"order":9}}]}},"locales":[{"name":"en-US","label":"English"}],"navs":{"en-US":[{"path":"/examples","title":"Examples"},{"title":"G2Plot","path":"https://github.com/antvis/G2Plot"},{"title":"\u5728\u7ebf\u6587\u6863","path":"https://github.com/hustcc/echarts-for-react"},{"title":"GitHub","path":"https://github.com/hustcc/echarts-for-react"}]},"title":"\\b","logo":"https://cdn.jsdelivr.net/gh/apache/echarts-website@asf-site/zh/images/logo.png?_v_=20200710_1","mode":"site","repository":{"url":"https://github.com/hustcc/echarts-for-react","branch":"master"},"theme":{}}')},"q5+0":function(e,t,n){"use strict";n.d(t,"a",(function(){return _})),n.d(t,"b",(function(){return w})),n.d(t,"c",(function(){return A})),n.d(t,"d",(function(){return k})),n.d(t,"e",(function(){return b})),n.d(t,"f",(function(){return V})),n.d(t,"g",(function(){return G})),n.d(t,"h",(function(){return y})),n.d(t,"i",(function(){return P})),n.d(t,"j",(function(){return W})),n.d(t,"k",(function(){return X})),n.d(t,"l",(function(){return Y})),n.d(t,"m",(function(){return K})),n.d(t,"n",(function(){return H}));var r=n("HMkG"),i=n("xwgP"),a=n.n(i),o=(n("EH+i"),n("HFu6")),s=n("9A8K"),l=n("AKk7"),u=n("a1z2"),c=n("8idk"),h=n.n(c),d=(n("2kiq"),n("LDy6")),f=n("QIG3"),p=n.n(f),g=function(e){var t=Object(s["a"])();return t.displayName=e,t},m=g("Router-History"),v=function(e){var t=Object(s["a"])();return t.displayName=e,t},y=v("Router"),b=function(e){function t(t){var n;return n=e.call(this,t)||this,n.state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(r["a"])(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return a.a.createElement(y.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},a.a.createElement(m.Provider,{children:this.props.children||null,value:this.props.history}))},t}(a.a.Component);var _=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t=e.call.apply(e,[this].concat(r))||this,t.history=Object(o["d"])(t.props),t}Object(r["a"])(t,e);var n=t.prototype;return n.render=function(){return a.a.createElement(b,{history:this.history,children:this.props.children})},t}(a.a.Component);var x=function(e){function t(){return e.apply(this,arguments)||this}Object(r["a"])(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(a.a.Component);function w(e){var t=e.message,n=e.when,r=void 0===n||n;return a.a.createElement(y.Consumer,null,(function(e){if(e||Object(l["a"])(!1),!r||e.staticContext)return null;var n=e.history.block;return a.a.createElement(x,{onMount:function(e){e.release=n(t)},onUpdate:function(e,r){r.message!==t&&(e.release(),e.release=n(t))},onUnmount:function(e){e.release()},message:t})}))}var S={},T=1e4,O=0;function M(e){if(S[e])return S[e];var t=h.a.compile(e);return O<T&&(S[e]=t,O++),t}function E(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:M(e)(t,{pretty:!0})}function A(e){var t=e.computedMatch,n=e.to,r=e.push,i=void 0!==r&&r;return a.a.createElement(y.Consumer,null,(function(e){e||Object(l["a"])(!1);var r=e.history,s=e.staticContext,c=i?r.push:r.replace,h=Object(o["c"])(t?"string"===typeof n?E(n,t.params):Object(u["a"])({},n,{pathname:E(n.pathname,t.params)}):n);return s?(c(h),null):a.a.createElement(x,{onMount:function(){c(h)},onUpdate:function(e,t){var n=Object(o["c"])(t.to);Object(o["f"])(n,Object(u["a"])({},h,{key:n.key}))||c(h)},to:n})}))}var C={},I=1e4,D=0;function L(e,t){var n=""+t.end+t.strict+t.sensitive,r=C[n]||(C[n]={});if(r[e])return r[e];var i=[],a=h()(e,i,t),o={regexp:a,keys:i};return D<I&&(r[e]=o,D++),o}function P(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,a=void 0!==i&&i,o=n.strict,s=void 0!==o&&o,l=n.sensitive,u=void 0!==l&&l,c=[].concat(r);return c.reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=L(n,{end:a,strict:s,sensitive:u}),i=r.regexp,o=r.keys,l=i.exec(e);if(!l)return null;var c=l[0],h=l.slice(1),d=e===c;return a&&!d?null:{path:n,url:"/"===n&&""===c?"/":c,isExact:d,params:o.reduce((function(e,t,n){return e[t.name]=h[n],e}),{})}}),null)}var k=function(e){function t(){return e.apply(this,arguments)||this}Object(r["a"])(t,e);var n=t.prototype;return n.render=function(){var e=this;return a.a.createElement(y.Consumer,null,(function(t){t||Object(l["a"])(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?P(n.pathname,e.props):t.match,i=Object(u["a"])({},t,{location:n,match:r}),o=e.props,s=o.children,c=o.component,h=o.render;return Array.isArray(s)&&0===s.length&&(s=null),a.a.createElement(y.Provider,{value:i},i.match?s?"function"===typeof s?s(i):s:c?a.a.createElement(c,i):h?h(i):null:"function"===typeof s?s(i):null)}))},t}(a.a.Component);function R(e){return"/"===e.charAt(0)?e:"/"+e}function N(e,t){return e?Object(u["a"])({},t,{pathname:R(e)+t.pathname}):t}function j(e,t){if(!e)return t;var n=R(e);return 0!==t.pathname.indexOf(n)?t:Object(u["a"])({},t,{pathname:t.pathname.substr(n.length)})}function F(e){return"string"===typeof e?e:Object(o["e"])(e)}function z(e){return function(){Object(l["a"])(!1)}}function B(){}var V=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t=e.call.apply(e,[this].concat(r))||this,t.handlePush=function(e){return t.navigateTo(e,"PUSH")},t.handleReplace=function(e){return t.navigateTo(e,"REPLACE")},t.handleListen=function(){return B},t.handleBlock=function(){return B},t}Object(r["a"])(t,e);var n=t.prototype;return n.navigateTo=function(e,t){var n=this.props,r=n.basename,i=void 0===r?"":r,a=n.context,s=void 0===a?{}:a;s.action=t,s.location=N(i,Object(o["c"])(e)),s.url=F(s.location)},n.render=function(){var e=this.props,t=e.basename,n=void 0===t?"":t,r=e.context,i=void 0===r?{}:r,s=e.location,l=void 0===s?"/":s,c=Object(d["a"])(e,["basename","context","location"]),h={createHref:function(e){return R(n+F(e))},action:"POP",location:j(n,Object(o["c"])(l)),push:this.handlePush,replace:this.handleReplace,go:z("go"),goBack:z("goBack"),goForward:z("goForward"),listen:this.handleListen,block:this.handleBlock};return a.a.createElement(b,Object(u["a"])({},c,{history:h,staticContext:i}))},t}(a.a.Component);var G=function(e){function t(){return e.apply(this,arguments)||this}Object(r["a"])(t,e);var n=t.prototype;return n.render=function(){var e=this;return a.a.createElement(y.Consumer,null,(function(t){t||Object(l["a"])(!1);var n,r,i=e.props.location||t.location;return a.a.Children.forEach(e.props.children,(function(e){if(null==r&&a.a.isValidElement(e)){n=e;var o=e.props.path||e.props.from;r=o?P(i.pathname,Object(u["a"])({},e.props,{path:o})):t.match}})),r?a.a.cloneElement(n,{location:i,computedMatch:r}):null}))},t}(a.a.Component);function H(e){var t="withRouter("+(e.displayName||e.name)+")",n=function(t){var n=t.wrappedComponentRef,r=Object(d["a"])(t,["wrappedComponentRef"]);return a.a.createElement(y.Consumer,null,(function(t){return t||Object(l["a"])(!1),a.a.createElement(e,Object(u["a"])({},r,t,{ref:n}))}))};return n.displayName=t,n.WrappedComponent=e,p()(n,e)}var U=a.a.useContext;function W(){return U(m)}function X(){return U(y).location}function Y(){var e=U(y).match;return e?e.params:{}}function K(e){var t=X(),n=U(y).match;return e?P(t.pathname,e):n}},qDpf:function(e,t,n){var r=n("1agv"),i=n("pxmn"),a=n("+qhb"),o=n("2RC6").f,s=n("fotI"),l=n("ZL/h"),u=s("meta"),c=0,h=Object.isExtensible||function(){return!0},d=function(e){o(e,u,{value:{objectID:"O"+ ++c,weakData:{}}})},f=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,u)){if(!h(e))return"F";if(!t)return"E";d(e)}return e[u].objectID},p=function(e,t){if(!a(e,u)){if(!h(e))return!0;if(!t)return!1;d(e)}return e[u].weakData},g=function(e){return l&&m.REQUIRED&&h(e)&&!a(e,u)&&d(e),e},m=e.exports={REQUIRED:!1,fastKey:f,getWeakData:p,onFreeze:g};r[u]=!0},qKCw:function(e,t,n){"use strict";var r=n("a0Kb"),i=n("m0HX"),a=n("r34c"),o=n("W4wi"),s=n("b26b"),l=n("ajRN"),u=function(){function e(e){this.coordSysDims=[],this.axisMap=Object(r["createHashMap"])(),this.categoryAxisMap=Object(r["createHashMap"])(),this.coordSysName=e}return e}();function c(e){var t=e.get("coordinateSystem"),n=new u(t),r=h[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var h={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents("xAxis",s["b"]).models[0],a=e.getReferringComponents("yAxis",s["b"]).models[0];t.coordSysDims=["x","y"],n.set("x",i),n.set("y",a),d(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),d(a)&&(r.set("y",a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var i=e.getReferringComponents("singleAxis",s["b"]).models[0];t.coordSysDims=["single"],n.set("single",i),d(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents("polar",s["b"]).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",a),n.set("angle",o),d(a)&&(r.set("radius",a),t.firstCategoryDimIndex=0),d(o)&&(r.set("angle",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,i){var a=e.ecModel,o=a.getComponent("parallel",e.get("parallelIndex")),s=t.coordSysDims=o.dimensions.slice();Object(r["each"])(o.parallelAxisIndex,(function(e,r){var o=a.getComponent("parallelAxis",e),l=s[r];n.set(l,o),d(o)&&(i.set(l,o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=r))}))}};function d(e){return"category"===e.get("type")}var f=n("sKIF"),p=n("EzfI"),g=n("1Cya"),m=n("+rxo");function v(e,t,n){n=n||{},Object(f["e"])(e)||(e=Object(f["c"])(e));var s,u=t.get("coordinateSystem"),h=l["a"].get(u),d=c(t);d&&d.coordSysDims&&(s=r["map"](d.coordSysDims,(function(e){var t={name:e},n=d.axisMap.get(e);if(n){var r=n.get("type");t.type=Object(o["a"])(r)}return t}))),s||(s=h&&(h.getDimensionsInfo?h.getDimensionsInfo():h.dimensions.slice())||["x","y"]);var m,v,b=n.useEncodeDefaulter,_=Object(a["a"])(e,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefaulter:r["isFunction"](b)?b:b?r["curry"](g["c"],s,t):null});d&&r["each"](_,(function(e,t){var r=e.coordDim,i=d.categoryAxisMap.get(r);i&&(null==m&&(m=t),e.ordinalMeta=i.getOrdinalMeta(),n.createInvertedIndices&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(v=!0)})),v||null==m||(_[m].otherDims.itemName=0);var x=Object(p["a"])(t,_),w=new i["a"](_,t);w.setCalculationInfo(x);var S=null!=m&&y(e)?function(e,t,n,r){return r===m?n:this.defaultDimValueGetter(e,t,n,r)}:null;return w.hasItemOption=!1,w.initData(e,null,S),w}function y(e){if(e.sourceFormat===m["f"]){var t=b(e.data||[]);return null!=t&&!r["isArray"](Object(s["h"])(t))}}function b(e){var t=0;while(t<e.length&&null==e[t])t++;return e[t]}t["a"]=v},qNXd:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=2*Math.PI;function i(e){return e%=r,e<0&&(e+=r),e}},"qa/l":function(e,t,n){"use strict";var r=n("HIsA");r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},qesp:function(e,t,n){"use strict";var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=r},qmtO:function(e,t,n){var r=n("Hiyu"),i=n("73Ew"),a=n("OLna"),o=n("2hCa"),s=n("n2ef"),l=n("+qhb"),u=n("IDl8"),c=Object.getOwnPropertyDescriptor;t.f=r?c:function(e,t){if(e=o(e),t=s(t,!0),u)try{return c(e,t)}catch(n){}if(l(e,t))return a(!i.f.call(e,t),e[t])}},qoFA:function(e,t,n){"use strict";var r=n("HIsA"),i=n("m52V"),a=n("hXyk"),o=n("40mc"),s=n("wKMT"),l=n("Ji6T");r({target:"Set",proto:!0,real:!0,forced:i},{every:function(e){var t=a(this),n=s(t),r=o(e,arguments.length>1?arguments[1]:void 0,3);return!l(n,(function(e){if(!r(e,e,t))return l.stop()}),void 0,!1,!0).stopped}})},qrga:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},qsB9:function(e,t,n){var r=n("HIsA"),i=Math.PI/180;r({target:"Math",stat:!0},{radians:function(e){return e*i}})},qtYV:function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return l}));var r="\0__throttleOriginMethod",i="\0__throttleRate",a="\0__throttleType";function o(e,t,n){var r,i,a,o,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,e.apply(a,o||[])}t=t||0;var d=function(){for(var e=[],d=0;d<arguments.length;d++)e[d]=arguments[d];r=(new Date).getTime(),a=this,o=e;var f=s||t,p=s||n;s=null,i=r-(p?l:u)-f,clearTimeout(c),p?c=setTimeout(h,f):i>=0?h():c=setTimeout(h,-i),l=r};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(e){s=e},d}function s(e,t,n,s){var l=e[t];if(l){var u=l[r]||l,c=l[a],h=l[i];if(h!==n||c!==s){if(null==n||!s)return e[t]=u;l=e[t]=o(u,n,"debounce"===s),l[r]=u,l[a]=s,l[i]=n}return l}}function l(e,t){var n=e[t];n&&n[r]&&(e[t]=n[r])}},qvkS:function(e,t,n){"use strict";n.d(t,"a",(function(){return E})),n.d(t,"b",(function(){return A})),n.d(t,"c",(function(){return C}));var r=n("zb3V"),i=n("H4kQ"),a=n("5MTG"),o=n("T3M/"),s=a["a"].CMD,l=[[],[],[]],u=Math.sqrt,c=Math.atan2;function h(e,t){var n,r,i,a,h,d,f=e.data,p=e.len(),g=s.M,m=s.C,v=s.L,y=s.R,b=s.A,_=s.Q;for(i=0,a=0;i<p;){switch(n=f[i++],a=i,r=0,n){case g:r=1;break;case v:r=1;break;case m:r=3;break;case _:r=2;break;case b:var x=t[4],w=t[5],S=u(t[0]*t[0]+t[1]*t[1]),T=u(t[2]*t[2]+t[3]*t[3]),O=c(-t[1]/T,t[0]/S);f[i]*=S,f[i++]+=x,f[i]*=T,f[i++]+=w,f[i++]*=S,f[i++]*=T,f[i++]+=O,f[i++]+=O,i+=2,a=i;break;case y:d[0]=f[i++],d[1]=f[i++],Object(o["applyTransform"])(d,d,t),f[a++]=d[0],f[a++]=d[1],d[0]+=f[i++],d[1]+=f[i++],Object(o["applyTransform"])(d,d,t),f[a++]=d[0],f[a++]=d[1]}for(h=0;h<r;h++){var M=l[h];M[0]=f[i++],M[1]=f[i++],Object(o["applyTransform"])(M,M,t),f[a++]=M[0],f[a++]=M[1]}}e.increaseVersion()}var d=n("a0Kb"),f=Math.sqrt,p=Math.sin,g=Math.cos,m=Math.PI;function v(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function y(e,t){return(e[0]*t[0]+e[1]*t[1])/(v(e)*v(t))}function b(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(y(e,t))}function _(e,t,n,r,i,a,o,s,l,u,c){var h=l*(m/180),d=g(h)*(e-n)/2+p(h)*(t-r)/2,v=-1*p(h)*(e-n)/2+g(h)*(t-r)/2,_=d*d/(o*o)+v*v/(s*s);_>1&&(o*=f(_),s*=f(_));var x=(i===a?-1:1)*f((o*o*(s*s)-o*o*(v*v)-s*s*(d*d))/(o*o*(v*v)+s*s*(d*d)))||0,w=x*o*v/s,S=x*-s*d/o,T=(e+n)/2+g(h)*w-p(h)*S,O=(t+r)/2+p(h)*w+g(h)*S,M=b([1,0],[(d-w)/o,(v-S)/s]),E=[(d-w)/o,(v-S)/s],A=[(-1*d-w)/o,(-1*v-S)/s],C=b(E,A);if(y(E,A)<=-1&&(C=m),y(E,A)>=1&&(C=0),C<0){var I=Math.round(C/m*1e6)/1e6;C=2*m+I%2*m}c.addData(u,T,O,o,s,M,C,h,a)}var x=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,w=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function S(e){var t=new a["a"];if(!e)return t;var n,r=0,i=0,o=r,s=i,l=a["a"].CMD,u=e.match(x);if(!u)return t;for(var c=0;c<u.length;c++){for(var h=u[c],d=h.charAt(0),f=void 0,p=h.match(w)||[],g=p.length,m=0;m<g;m++)p[m]=parseFloat(p[m]);var v=0;while(v<g){var y=void 0,b=void 0,S=void 0,T=void 0,O=void 0,M=void 0,E=void 0,A=r,C=i,I=void 0,D=void 0;switch(d){case"l":r+=p[v++],i+=p[v++],f=l.L,t.addData(f,r,i);break;case"L":r=p[v++],i=p[v++],f=l.L,t.addData(f,r,i);break;case"m":r+=p[v++],i+=p[v++],f=l.M,t.addData(f,r,i),o=r,s=i,d="l";break;case"M":r=p[v++],i=p[v++],f=l.M,t.addData(f,r,i),o=r,s=i,d="L";break;case"h":r+=p[v++],f=l.L,t.addData(f,r,i);break;case"H":r=p[v++],f=l.L,t.addData(f,r,i);break;case"v":i+=p[v++],f=l.L,t.addData(f,r,i);break;case"V":i=p[v++],f=l.L,t.addData(f,r,i);break;case"C":f=l.C,t.addData(f,p[v++],p[v++],p[v++],p[v++],p[v++],p[v++]),r=p[v-2],i=p[v-1];break;case"c":f=l.C,t.addData(f,p[v++]+r,p[v++]+i,p[v++]+r,p[v++]+i,p[v++]+r,p[v++]+i),r+=p[v-2],i+=p[v-1];break;case"S":y=r,b=i,I=t.len(),D=t.data,n===l.C&&(y+=r-D[I-4],b+=i-D[I-3]),f=l.C,A=p[v++],C=p[v++],r=p[v++],i=p[v++],t.addData(f,y,b,A,C,r,i);break;case"s":y=r,b=i,I=t.len(),D=t.data,n===l.C&&(y+=r-D[I-4],b+=i-D[I-3]),f=l.C,A=r+p[v++],C=i+p[v++],r+=p[v++],i+=p[v++],t.addData(f,y,b,A,C,r,i);break;case"Q":A=p[v++],C=p[v++],r=p[v++],i=p[v++],f=l.Q,t.addData(f,A,C,r,i);break;case"q":A=p[v++]+r,C=p[v++]+i,r+=p[v++],i+=p[v++],f=l.Q,t.addData(f,A,C,r,i);break;case"T":y=r,b=i,I=t.len(),D=t.data,n===l.Q&&(y+=r-D[I-4],b+=i-D[I-3]),r=p[v++],i=p[v++],f=l.Q,t.addData(f,y,b,r,i);break;case"t":y=r,b=i,I=t.len(),D=t.data,n===l.Q&&(y+=r-D[I-4],b+=i-D[I-3]),r+=p[v++],i+=p[v++],f=l.Q,t.addData(f,y,b,r,i);break;case"A":S=p[v++],T=p[v++],O=p[v++],M=p[v++],E=p[v++],A=r,C=i,r=p[v++],i=p[v++],f=l.A,_(A,C,r,i,M,E,S,T,O,f,t);break;case"a":S=p[v++],T=p[v++],O=p[v++],M=p[v++],E=p[v++],A=r,C=i,r+=p[v++],i+=p[v++],f=l.A,_(A,C,r,i,M,E,S,T,O,f,t);break}}"z"!==d&&"Z"!==d||(f=l.Z,t.addData(f),r=o,i=s),n=f}return t.toStatic(),t}var T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r["b"])(t,e),t.prototype.applyTransform=function(e){},t}(i["b"]);function O(e){return null!=e.setData}function M(e,t){var n=S(e),r=Object(d["extend"])({},t);return r.buildPath=function(e){if(O(e)){e.setData(n.data);var t=e.getContext();t&&e.rebuildPath(t,1)}else{t=e;n.rebuildPath(t,1)}},r.applyTransform=function(e){h(n,e),this.dirtyShape()},r}function E(e,t){return new T(M(e,t))}function A(e,t){var n=M(e,t),i=function(e){function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return Object(r["b"])(t,e),t}(T);return i}function C(e,t){for(var n=[],r=e.length,a=0;a<r;a++){var o=e[a];o.path||o.createPathProxy(),o.shapeChanged()&&o.buildPath(o.path,o.shape,!0),n.push(o.path)}var s=new i["b"](t);return s.createPathProxy(),s.buildPath=function(e){if(O(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},s}},qya5:function(e,t,n){var r=n("QD/U");r("Array")},r34c:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n("a0Kb"),i=n("b26b"),a=n("1Cya"),o=n("sKIF"),s=n("+rxo"),l=n("WPZa");function u(e,t,n){Object(o["e"])(t)||(t=Object(o["c"])(t)),n=n||{},e=(e||[]).slice();for(var u=(n.dimsDef||[]).slice(),d=Object(r["createHashMap"])(),f=Object(r["createHashMap"])(),p=[],g=c(t,e,u,n.dimCount),m=0;m<g;m++){var v=u[m],y=u[m]=Object(r["extend"])({},Object(r["isObject"])(v)?v:{name:v}),b=y.name,_=p[m]=new l["a"];null!=b&&null==d.get(b)&&(_.name=_.displayName=b,d.set(b,m)),null!=y.type&&(_.type=y.type),null!=y.displayName&&(_.displayName=y.displayName)}var x=n.encodeDef;!x&&n.encodeDefaulter&&(x=n.encodeDefaulter(t,g));var w=Object(r["createHashMap"])(x);w.each((function(e,t){var n=Object(i["r"])(e).slice();if(1===n.length&&!Object(r["isString"])(n[0])&&n[0]<0)w.set(t,!1);else{var a=w.set(t,[]);Object(r["each"])(n,(function(e,n){var i=Object(r["isString"])(e)?d.get(e):e;null!=i&&i<g&&(a[n]=i,T(p[i],t,n))}))}}));var S=0;function T(e,t,n){null!=s["i"].get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,f.set(t,!0))}Object(r["each"])(e,(function(e){var t,n,a,o;if(Object(r["isString"])(e))t=e,o={};else{o=e,t=o.name;var s=o.ordinalMeta;o.ordinalMeta=null,o=Object(r["clone"])(o),o.ordinalMeta=s,n=o.dimsDef,a=o.otherDims,o.name=o.coordDim=o.coordDimIndex=o.dimsDef=o.otherDims=null}var l=w.get(t);if(!1!==l){if(l=Object(i["r"])(l),!l.length)for(var u=0;u<(n&&n.length||1);u++){while(S<p.length&&null!=p[S].coordDim)S++;S<p.length&&l.push(S++)}Object(r["each"])(l,(function(e,i){var s=p[e];if(T(Object(r["defaults"])(s,o),t,i),null==s.name&&n){var l=n[i];!Object(r["isObject"])(l)&&(l={name:l}),s.name=s.displayName=l.name,s.defaultTooltip=l.defaultTooltip}a&&Object(r["defaults"])(s.otherDims,a)}))}}));var O=n.generateCoord,M=n.generateCoordCount,E=null!=M;M=O?M||1:0;for(var A=O||"value",C=0;C<g;C++){_=p[C]=p[C]||new l["a"];var I=_.coordDim;null==I&&(_.coordDim=h(A,f,E),_.coordDimIndex=0,(!O||M<=0)&&(_.isExtraCoord=!0),M--),null==_.name&&(_.name=h(_.coordDim,d,!1)),null!=_.type||Object(a["b"])(t,C)!==a["a"].Must&&(!_.isExtraCoord||null==_.otherDims.itemName&&null==_.otherDims.seriesName)||(_.type="ordinal")}return p}function c(e,t,n,i){var a=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,i||0);return Object(r["each"])(t,(function(e){var t;Object(r["isObject"])(e)&&(t=e.dimsDef)&&(a=Math.max(a,t.length))})),a}function h(e,t,n){if(n||null!=t.get(e)){var r=0;while(null!=t.get(e+r))r++;e+=r}return t.set(e,!0),e}var d=u;function f(e,t){return t=t||{},d(t.coordDimensions||[],e,{dimsDef:t.dimensionsDefine||e.dimensionsDefine,encodeDef:t.encodeDefine||e.encodeDefine,dimCount:t.dimensionsCount,encodeDefaulter:t.encodeDefaulter,generateCoord:t.generateCoord,generateCoordCount:t.generateCoordCount})}},r4Zb:function(e,t,n){var r=n("2JD6"),i=n("Bktt"),a=n("oTOb"),o=n("D8FR"),s=n("kPvK"),l=s("iterator"),u=s("toStringTag"),c=a.values;for(var h in i){var d=r[h],f=d&&d.prototype;if(f){if(f[l]!==c)try{o(f,l,c)}catch(g){f[l]=c}if(f[u]||o(f,u,h),i[h])for(var p in a)if(f[p]!==a[p])try{o(f,p,a[p])}catch(g){f[p]=a[p]}}}},r73t:function(e,t,n){"use strict";var r=n("masK"),i=n("qDpf").getWeakData,a=n("hXyk"),o=n("pxmn"),s=n("xOST"),l=n("Ji6T"),u=n("Xf1w"),c=n("+qhb"),h=n("twJ5"),d=h.set,f=h.getterFor,p=u.find,g=u.findIndex,m=0,v=function(e){return e.frozen||(e.frozen=new y)},y=function(){this.entries=[]},b=function(e,t){return p(e.entries,(function(e){return e[0]===t}))};y.prototype={get:function(e){var t=b(this,e);if(t)return t[1]},has:function(e){return!!b(this,e)},set:function(e,t){var n=b(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=g(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,u){var h=e((function(e,r){s(e,h,t),d(e,{type:t,id:m++,frozen:void 0}),void 0!=r&&l(r,e[u],e,n)})),p=f(t),g=function(e,t,n){var r=p(e),o=i(a(t),!0);return!0===o?v(r).set(t,n):o[r.id]=n,e};return r(h.prototype,{delete:function(e){var t=p(this);if(!o(e))return!1;var n=i(e);return!0===n?v(t)["delete"](e):n&&c(n,t.id)&&delete n[t.id]},has:function(e){var t=p(this);if(!o(e))return!1;var n=i(e);return!0===n?v(t).has(e):n&&c(n,t.id)}}),r(h.prototype,n?{get:function(e){var t=p(this);if(o(e)){var n=i(e);return!0===n?v(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return g(this,e,t)}}:{add:function(e){return g(this,e,!0)}}),h}}},rJci:function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"d",(function(){return u}));var r=n("a0Kb"),i=n("EPlJ"),a=Math.round(10*Math.random());function o(e){return[e||"",a++].join("_")}function s(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=Object(i["f"])(e);t[r.main]=n},e.determineSubType=function(n,r){var a=r.type;if(!a){var o=Object(i["f"])(n).main;e.hasSubTypes(n)&&t[o]&&(a=t[o](r))}return a}}function l(e,t){function n(e){var n={},o=[];return r["each"](e,(function(s){var l=i(n,s),u=l.originalDeps=t(s),c=a(u,e);l.entryCount=c.length,0===l.entryCount&&o.push(s),r["each"](c,(function(e){r["indexOf"](l.predecessor,e)<0&&l.predecessor.push(e);var t=i(n,e);r["indexOf"](t.successor,e)<0&&t.successor.push(s)}))})),{graph:n,noEntryList:o}}function i(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function a(e,t){var n=[];return r["each"](e,(function(e){r["indexOf"](t,e)>=0&&n.push(e)})),n}e.topologicalTravel=function(e,t,i,a){if(e.length){var o=n(t),s=o.graph,l=o.noEntryList,u={};r["each"](e,(function(e){u[e]=!0}));while(l.length){var c=l.pop(),h=s[c],d=!!u[c];d&&(i.call(a,c,h.originalDeps.slice()),delete u[c]),r["each"](h.successor,d?p:f)}r["each"](u,(function(){var e="";throw new Error(e)}))}function f(e){s[e].entryCount--,0===s[e].entryCount&&l.push(e)}function p(e){u[e]=!0,f(e)}}}function u(e,t){return r["merge"](r["merge"]({},e,!0),t,!0)}},rKDr:function(e,t,n){var r=n("HIsA"),i=n("NNlX"),a=n("icJ8"),o=n("hXyk"),s=n("kI7s"),l=n("Ji6T"),u=a.keys,c=a.toKey,h=function(e){var t=[];return l(e,t.push,t),t},d=function(e,t){var n=u(e,t),r=s(e);if(null===r)return n;var a=d(r,t);return a.length?n.length?h(new i(n.concat(a))):a:n};r({target:"Reflect",stat:!0},{getMetadataKeys:function(e){var t=arguments.length<2?void 0:c(arguments[1]);return d(o(e),t)}})},rLG7:function(e,t,n){"use strict";var r=n("HIsA"),i=n("Hiyu"),a=n("12fA"),o=n("NVMI"),s=n("n2ef"),l=n("kI7s"),u=n("qmtO").f;i&&r({target:"Object",proto:!0,forced:a},{__lookupSetter__:function(e){var t,n=o(this),r=s(e,!0);do{if(t=u(n,r))return t.set}while(n=l(n))}})},rSg8:function(e,t,n){"use strict";var r=n("zb3V"),i=n("Kidy"),a=n("g9E2"),o=n("H4kQ"),s=n("a0Kb"),l=Object(s["defaults"])({strokeFirst:!0,font:a["a"],x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},o["a"]),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r["b"])(t,e),t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style,t=e.fill;return null!=t&&"none"!==t},t.prototype.createStyle=function(e){return Object(s["createObject"])(l,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var n=Object(a["e"])(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var r=e.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(i["c"]);u.prototype.type="tspan",t["a"]=u},rXtS:function(e,t,n){"use strict";var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.target,r=void 0===n?document.body:n,i=document.createElement("textarea"),a=document.activeElement;i.value=e,i.setAttribute("readonly",""),i.style.contain="strict",i.style.position="absolute",i.style.left="-9999px",i.style.fontSize="12pt";var o=document.getSelection(),s=!1;o.rangeCount>0&&(s=o.getRangeAt(0)),r.append(i),i.select(),i.selectionStart=0,i.selectionEnd=e.length;var l=!1;try{l=document.execCommand("copy")}catch(u){}return i.remove(),s&&(o.removeAllRanges(),o.addRange(s)),a&&a.focus(),l};e.exports=r,e.exports["default"]=r},rcF6:function(e,t,n){var r=n("HIsA");r({target:"Math",stat:!0},{signbit:function(e){return(e=+e)==e&&0==e?1/e==-1/0:e<0}})},riWr:function(e,t,n){var r=n("2JD6"),i=n("pxmn"),a=r.document,o=i(a)&&i(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},rrU6:function(e,t,n){"use strict";n.r(t);var r=n("xwgP"),i=n.n(r),a=n("kvV8"),o=n("lBQG"),s=i.a.memo(n("Rsk4").default["svg-demo"].component);t["default"]=function(){return i.a.createElement(i.a.Fragment,null,i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"markdown"},i.a.createElement("h2",{id:"svg"},i.a.createElement(a["AnchorLink"],{to:"#svg","aria-hidden":"true",tabIndex:-1},i.a.createElement("span",{className:["icon","icon-link"]})),"SVG")),i.a.createElement(o["default"],n("Rsk4").default["svg-demo"].previewerProps,i.a.createElement(s,null))))}},sDKr:function(e,t,n){var r=n("HIsA"),i=n("2JD6"),a=n("vYQ8"),o=!i.setImmediate||!i.clearImmediate;r({global:!0,bind:!0,enumerable:!0,forced:o},{setImmediate:a.set,clearImmediate:a.clear})},sJYe:function(e,t,n){e.exports=n("tEmt")},sKBc:function(e,t,n){"use strict";n.d(t,"k",(function(){return o})),n.d(t,"o",(function(){return s})),n.d(t,"u",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"f",(function(){return c})),n.d(t,"g",(function(){return h})),n.d(t,"e",(function(){return d})),n.d(t,"d",(function(){return f})),n.d(t,"a",(function(){return p})),n.d(t,"t",(function(){return g})),n.d(t,"j",(function(){return m})),n.d(t,"n",(function(){return y})),n.d(t,"q",(function(){return b})),n.d(t,"r",(function(){return _})),n.d(t,"l",(function(){return x})),n.d(t,"p",(function(){return w})),n.d(t,"s",(function(){return S})),n.d(t,"m",(function(){return T})),n.d(t,"i",(function(){return O})),n.d(t,"h",(function(){return M})),n.d(t,"c",(function(){return A}));var r=n("a0Kb"),i=1e-4;function a(e){return e.replace(/^\s+|\s+$/g,"")}function o(e,t,n,r){var i=t[1]-t[0],a=n[1]-n[0];if(0===i)return 0===a?n[0]:(n[0]+n[1])/2;if(r)if(i>0){if(e<=t[0])return n[0];if(e>=t[1])return n[1]}else{if(e>=t[0])return n[0];if(e<=t[1])return n[1]}else{if(e===t[0])return n[0];if(e===t[1])return n[1]}return(e-t[0])/i*a+n[0]}function s(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return"string"===typeof e?a(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e}function l(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),e=(+e).toFixed(t),n?e:+e}function u(e){return e.sort((function(e,t){return e-t})),e}function c(e){if(e=+e,isNaN(e))return 0;var t=1,n=0;while(Math.round(e*t)/t!==e)t*=10,n++;return n}function h(e){var t=e.toString(),n=t.indexOf("e");if(n>0){var r=+t.slice(n+1);return r<0?-r:0}var i=t.indexOf(".");return i<0?0:t.length-1-i}function d(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),a=Math.round(n(Math.abs(t[1]-t[0]))/r),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function f(e,t,n){if(!e[t])return 0;var i=r["reduce"](e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===i)return 0;var a=Math.pow(10,n),o=r["map"](e,(function(e){return(isNaN(e)?0:e)/i*a*100})),s=100*a,l=r["map"](o,(function(e){return Math.floor(e)})),u=r["reduce"](l,(function(e,t){return e+t}),0),c=r["map"](o,(function(e,t){return e-l[t]}));while(u<s){for(var h=Number.NEGATIVE_INFINITY,d=null,f=0,p=c.length;f<p;++f)c[f]>h&&(h=c[f],d=f);++l[d],c[d]=0,++u}return l[t]/a}var p=9007199254740991;function g(e){var t=2*Math.PI;return(e%t+t)%t}function m(e){return e>-i&&e<i}var v=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function y(e){if(e instanceof Date)return e;if("string"===typeof e){var t=v.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,+t[7]||0))}return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,+t[7]||0)}return null==e?new Date(NaN):new Date(Math.round(e))}function b(e){return Math.pow(10,_(e))}function _(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function x(e,t){var n,r=_(e),i=Math.pow(10,r),a=e/i;return n=t?a<1.5?1:a<2.5?2:a<4?3:a<7?5:10:a<1?1:a<2?2:a<3?3:a<5?5:10,e=n*i,r>=-20?+e.toFixed(r<0?-r:0):e}function w(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),i=+e[r-1],a=n-r;return a?i+a*(e[r]-i):i}function S(e){e.sort((function(e,t){return s(e,t,0)?-1:1}));for(var t=-1/0,n=1,r=0;r<e.length;){for(var i=e[r].interval,a=e[r].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-n),t=i[o],n=a[o];i[0]===i[1]&&a[0]*a[1]!==1?e.splice(r,1):r++}return e;function s(e,t,n){return e.interval[n]<t.interval[n]||e.interval[n]===t.interval[n]&&(e.close[n]-t.close[n]===(n?-1:1)||!n&&s(e,t,1))}}function T(e){var t=parseFloat(e);return t==e&&(0!==t||"string"!==typeof e||e.indexOf("x")<=0)?t:NaN}function O(e){return!isNaN(T(e))}function M(){return Math.round(9*Math.random())}function E(e,t){return 0===t?e:E(t,e%t)}function A(e,t){return null==e?t:null==t?e:e*t/E(e,t)}},sKIF:function(e,t,n){"use strict";n.d(t,"e",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return c})),n.d(t,"d",(function(){return d}));var r=n("a0Kb"),i=n("+rxo"),a=n("b26b"),o=function(){function e(e){this.data=e.data||(e.sourceFormat===i["d"]?{}:[]),this.sourceFormat=e.sourceFormat||i["h"],this.seriesLayoutBy=e.seriesLayoutBy||i["a"],this.startIndex=e.startIndex||0,this.dimensionsDefine=e.dimensionsDefine,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.encodeDefine=e.encodeDefine,this.metaRawOption=e.metaRawOption}return e}();function s(e){return e instanceof o}function l(e,t,n,i){n=n||d(e);var a=t.seriesLayoutBy,s=f(e,n,a,t.sourceHeader,t.dimensions),l=new o({data:e,sourceFormat:n,seriesLayoutBy:a,dimensionsDefine:s.dimensionsDefine,startIndex:s.startIndex,dimensionsDetectedCount:s.dimensionsDetectedCount,encodeDefine:h(i),metaRawOption:Object(r["clone"])(t)});return l}function u(e){return new o({data:e,sourceFormat:Object(r["isTypedArray"])(e)?i["g"]:i["f"]})}function c(e){return new o({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:Object(r["clone"])(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount,encodeDefine:h(e.encodeDefine)})}function h(e){return e?Object(r["createHashMap"])(e):null}function d(e){var t=i["h"];if(Object(r["isTypedArray"])(e))t=i["g"];else if(Object(r["isArray"])(e)){0===e.length&&(t=i["c"]);for(var n=0,a=e.length;n<a;n++){var o=e[n];if(null!=o){if(Object(r["isArray"])(o)){t=i["c"];break}if(Object(r["isObject"])(o)){t=i["e"];break}}}}else if(Object(r["isObject"])(e))for(var s in e)if(Object(r["hasOwn"])(e,s)&&Object(r["isArrayLike"])(e[s])){t=i["d"];break}return t}function f(e,t,n,o,s){var l,u;if(!e)return{dimensionsDefine:g(s),startIndex:u,dimensionsDetectedCount:l};if(t===i["c"]){var c=e;"auto"===o||null==o?m((function(e){null!=e&&"-"!==e&&(Object(r["isString"])(e)?null==u&&(u=1):u=0)}),n,c,10):u=Object(r["isNumber"])(o)?o:o?1:0,s||1!==u||(s=[],m((function(e,t){s[t]=null!=e?e+"":""}),n,c,1/0)),l=s?s.length:n===i["b"]?c.length:c[0]?c[0].length:null}else if(t===i["e"])s||(s=p(e));else if(t===i["d"])s||(s=[],Object(r["each"])(e,(function(e,t){s.push(t)})));else if(t===i["f"]){var h=Object(a["h"])(e[0]);l=Object(r["isArray"])(h)&&h.length||1}else i["g"];return{startIndex:u,dimensionsDefine:g(s),dimensionsDetectedCount:l}}function p(e){var t,n=0;while(n<e.length&&!(t=e[n++]));if(t){var i=[];return Object(r["each"])(t,(function(e,t){i.push(t)})),i}}function g(e){if(e){var t=Object(r["createHashMap"])();return Object(r["map"])(e,(function(e,n){e=Object(r["isObject"])(e)?e:{name:e};var i={name:e.name,displayName:e.displayName,type:e.type};if(null==i.name)return i;i.name+="",null==i.displayName&&(i.displayName=i.name);var a=t.get(i.name);return a?i.name+="-"+a.count++:t.set(i.name,{count:1}),i}))}}function m(e,t,n,r){if(t===i["b"])for(var a=0;a<n.length&&a<r;a++)e(n[a]?n[a][0]:null,a);else{var o=n[0]||[];for(a=0;a<o.length&&a<r;a++)e(o[a],a)}}},sMrD:function(e,t,n){var r=n("bVFb");r("replace")},sTDl:function(e,t,n){"use strict";var r=n("HIsA"),i=n("Ra/9").includes,a=n("JY8B"),o=n("/5yA"),s=o("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:!s},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},sTX5:function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}e.exports=n},sqIH:function(e,t,n){"use strict";n("41ra");var r=n("GUTS"),i=n("7+LC"),a=n("kPvK"),o=n("UTnC"),s=n("D8FR"),l=a("species"),u=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),c=function(){return"$0"==="a".replace(/./,"$0")}(),h=a("replace"),d=function(){return!!/./[h]&&""===/./[h]("a","$0")}(),f=!i((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,h){var p=a(e),g=!i((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),m=g&&!i((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[l]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return t=!0,null},n[p](""),!t}));if(!g||!m||"replace"===e&&(!u||!c||d)||"split"===e&&!f){var v=/./[p],y=n(p,""[e],(function(e,t,n,r,i){return t.exec===o?g&&!i?{done:!0,value:v.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:c,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:d}),b=y[0],_=y[1];r(String.prototype,e,b),r(RegExp.prototype,p,2==t?function(e,t){return _.call(e,this,t)}:function(e){return _.call(e,this)})}h&&s(RegExp.prototype[p],"sham",!0)}},stff:function(e,t,n){"use strict";var r,i=n("2JD6"),a=n("masK"),o=n("qDpf"),s=n("ghbW"),l=n("r73t"),u=n("pxmn"),c=n("twJ5").enforce,h=n("YE/S"),d=!i.ActiveXObject&&"ActiveXObject"in i,f=Object.isExtensible,p=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},g=e.exports=s("WeakMap",p,l);if(h&&d){r=l.getConstructor(p,"WeakMap",!0),o.REQUIRED=!0;var m=g.prototype,v=m["delete"],y=m.has,b=m.get,_=m.set;a(m,{delete:function(e){if(u(e)&&!f(e)){var t=c(this);return t.frozen||(t.frozen=new r),v.call(this,e)||t.frozen["delete"](e)}return v.call(this,e)},has:function(e){if(u(e)&&!f(e)){var t=c(this);return t.frozen||(t.frozen=new r),y.call(this,e)||t.frozen.has(e)}return y.call(this,e)},get:function(e){if(u(e)&&!f(e)){var t=c(this);return t.frozen||(t.frozen=new r),y.call(this,e)?b.call(this,e):t.frozen.get(e)}return b.call(this,e)},set:function(e,t){if(u(e)&&!f(e)){var n=c(this);n.frozen||(n.frozen=new r),y.call(this,e)?_.call(this,e,t):n.frozen.set(e,t)}else _.call(this,e,t);return this}})}},swIl:function(e,t,n){"use strict";(function(e){var r,i=n("fvmE"),a={supportWebGL:function(){if(null==r)try{var e=document.createElement("canvas"),t=e.getContext("webgl")||e.getContext("experimental-webgl");if(!t)throw new Error}catch(n){r=!1}return r}};a.Int8Array="undefined"===typeof Int8Array?Array:Int8Array,a.Uint8Array="undefined"===typeof Uint8Array?Array:Uint8Array,a.Uint16Array="undefined"===typeof Uint16Array?Array:Uint16Array,a.Uint32Array="undefined"===typeof Uint32Array?Array:Uint32Array,a.Int16Array="undefined"===typeof Int16Array?Array:Int16Array,a.Float32Array="undefined"===typeof Float32Array?Array:Float32Array,a.Float64Array="undefined"===typeof Float64Array?Array:Float64Array;var o={};"undefined"!==typeof window?o=window:"undefined"!==typeof e&&(o=e),a.requestAnimationFrame=o.requestAnimationFrame||o.msRequestAnimationFrame||o.mozRequestAnimationFrame||o.webkitRequestAnimationFrame||function(e){setTimeout(e,16)},a.createCanvas=function(){return document.createElement("canvas")},a.createImage=function(){return new o.Image},a.request={get:i["a"].get},a.addEventListener=function(e,t,n,r){e.addEventListener(t,n,r)},a.removeEventListener=function(e,t,n){e.removeEventListener(t,n)},t["a"]=a}).call(this,n("UywP"))},szjD:function(e,t,n){var r=n("6tTE"),i=n("GPbW"),a=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,a)}},t0cd:function(e,t,n){var r=n("2JD6"),i=n("wQ+q").trim,a=n("/Izz"),o=r.parseInt,s=/^[+-]?0[Xx]/,l=8!==o(a+"08")||22!==o(a+"0x16");e.exports=l?function(e,t){var n=i(String(e));return o(n,t>>>0||(s.test(n)?16:10))}:o},t8P9:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return o}));var r=n("b26b"),i=Object(r["o"])(),a=Object(r["o"])(),o=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var a=Object(r["r"])(this.get("color",!0)),o=this.get("colorLayer",!0);return u(this,i,a,o,e,t,n)},e.prototype.clearColorPalette=function(){c(this,i)},e}();function s(e,t,n,i){var o=Object(r["r"])(e.get(["aria","decal","decals"]));return u(e,a,o,null,t,n,i)}function l(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}function u(e,t,n,r,i,a,o){a=a||e;var s=t(a),u=s.paletteIdx||0,c=s.paletteNameMap=s.paletteNameMap||{};if(c.hasOwnProperty(i))return c[i];var h=null!=o&&r?l(r,o):n;if(h=h||n,h&&h.length){var d=h[u];return i&&(c[i]=d),s.paletteIdx=(u+1)%h.length,d}}function c(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}},tB8F:function(e,t,n){"use strict";n.r(t);n("892e"),n("ClHO"),n("oDub"),n("8rjF"),n("W6v+"),n("FLIr"),n("sMrD"),n("MOrU"),n("B7jn"),n("J6EZ"),n("tgv4"),n("idQS"),n("tPuD"),n("hLzx"),n("27OL"),n("I5Nx"),n("horb"),n("/llE"),n("mODz"),n("sTDl"),n("7LRl"),n("oTOb"),n("auPx"),n("LuuT"),n("F4Qn"),n("8g5g"),n("CG2G"),n("d62z"),n("1Je0"),n("CNWJ"),n("qya5"),n("6mmk"),n("DnHg"),n("hv/N"),n("PlQJ"),n("He07"),n("o9qH"),n("esEm"),n("G4R5"),n("Uadk"),n("9Vf9"),n("FT/y"),n("tpE2"),n("IKXP"),n("8Jzd"),n("/P+o"),n("nsiD"),n("wdlL"),n("nMhH"),n("v4S0"),n("o1AR"),n("rLG7"),n("4YzK"),n("1XUj"),n("7Q2v"),n("4Rd9"),n("+eKy"),n("OXHO"),n("xlmz"),n("NA9k"),n("HC6C"),n("NNlX"),n("FFjv"),n("kKrw"),n("9OO5"),n("knnx"),n("iY6v"),n("Xp9m"),n("nPP+"),n("DXpG"),n("uyFV"),n("bbTr"),n("ZPal"),n("hIhI"),n("trzq"),n("+4Yi"),n("H++4"),n("0Brq"),n("Qf+e"),n("gla0"),n("PR8p"),n("kRmj"),n("2Dhz"),n("zZgq"),n("8wsV"),n("GboX"),n("G7GF"),n("w7rW"),n("stff"),n("Gcgh"),n("gS7u"),n("dXt2"),n("plly"),n("iqln"),n("jiNi"),n("+noq"),n("S6jd"),n("o0xK"),n("V8i+"),n("5Au7"),n("jAXh"),n("Y22F"),n("Hx2v"),n("CWx7"),n("Tphk"),n("GP7J"),n("aNCL"),n("EC/F"),n("Hr9Q"),n("c2jp"),n("Y0Ny"),n("pYsg"),n("/p+0"),n("X260"),n("+3Ak"),n("h6PP"),n("PF9H"),n("D2hf"),n("Xwir"),n("L1c7"),n("Mi4E"),n("qsB9"),n("0Uim"),n("IU95"),n("rcF6"),n("cCpg"),n("+3y3"),n("+7Kl"),n("4e8G"),n("xUzk"),n("pthC"),n("SCzs"),n("UqPo"),n("2x2d"),n("rKDr"),n("bL85"),n("nufT"),n("H7G2"),n("DeDD"),n("q3Pu"),n("br1d"),n("9Ywa"),n("oFyO"),n("qoFA"),n("waKi"),n("kh0G"),n("zcJV"),n("vn/D"),n("mTX6"),n("3i2j"),n("7Kf9"),n("zM5O"),n("ZcxN"),n("IXhw"),n("iKoX"),n("R6vp"),n("mlmj"),n("XxnP"),n("FmLo"),n("lBFn"),n("+G+T"),n("HQcF"),n("aK5P"),n("Pj+0"),n("YAei"),n("v8az"),n("Xk3x"),n("g+uz"),n("EMzR"),n("3fYz"),n("JENe"),n("bG4S"),n("CLo7"),n("r4Zb"),n("sDKr"),n("u2e+"),n("8al2"),n("qa/l"),n("w3Dd"),n("tEmt");var r=n("bCY9"),i=(n("9Ihz"),n("FfOG")),a=n("CU0g"),o=n("8kSY");function s(){var e=[{path:"/~demos/:uuid",layout:!1,wrappers:[n("MR8S").default],component:e=>{var t=n("xwgP"),r=n("jDiR").default(e);switch(r.length){case 1:return r[0];case 2:return t.createElement(n("lBQG").default,r[0],r[1]);default:return"Demo ".concat(uuid," not found :(")}}},{path:"/_demos/:uuid",redirect:"/~demos/:uuid"},{__dumiRoot:!0,layout:!1,path:"/",wrappers:[n("MR8S").default,n("7GOV").default],routes:[{path:"/",component:n("F+kV").default,exact:!0,meta:{filePath:"docs/index.md",updatedTime:1612697441e3,title:"ECharts for React - \u5168\u7f51\u6700\u597d\u7528\u7684 ECharts \u7684 React \u7ec4\u4ef6\u5c01\u88c5",order:10,hero:{title:"ECharts for React",desc:'<div class="markdown"><p>\u5168\u7f51\u6700\u597d\u7528\u7684 ECharts \u7684 React \u7ec4\u4ef6\u5c01\u88c5</p></div>',actions:[{text:"\u5728\u7ebf\u5b9e\u4f8b",link:"/examples/dynamic"},{text:"\u5f00\u6e90\u5730\u5740",link:"https://github.com/hustcc/echarts-for-react"}]},footer:'<div class="markdown"><p>Open-source MIT Licensed | Copyright \xa9 2021-present</p></div>',slugs:[{depth:2,value:"\u5b89\u88c5",heading:"\u5b89\u88c5"},{depth:2,value:"\u4f7f\u7528",heading:"\u4f7f\u7528"},{depth:2,value:"\u53cd\u9988",heading:"\u53cd\u9988"}]},title:"ECharts for React - \u5168\u7f51\u6700\u597d\u7528\u7684 ECharts \u7684 React \u7ec4\u4ef6\u5c01\u88c5"},{path:"/examples/api",component:n("jnx3").default,exact:!0,meta:{filePath:"docs/examples/api.md",updatedTime:1612692239e3,title:"ECharts API",order:2,slugs:[{depth:2,value:"ECharts API",heading:"echarts-api"}],nav:{path:"/examples",title:"Examples"}},title:"ECharts API"},{path:"/examples/dynamic",component:n("3/xt").default,exact:!0,meta:{filePath:"docs/examples/dynamic.md",updatedTime:1612692239e3,title:"Dynamic",order:6,slugs:[{depth:2,value:"Dynamic",heading:"dynamic"}],nav:{path:"/examples",title:"Examples"}},title:"Dynamic"},{path:"/examples/event",component:n("Vq5P").default,exact:!0,meta:{filePath:"docs/examples/event.md",updatedTime:1612692239e3,title:"Event",order:4,slugs:[{depth:2,value:"Event",heading:"event"}],nav:{path:"/examples",title:"Examples"}},title:"Event"},{path:"/examples/gl",component:n("mVYA").default,exact:!0,meta:{filePath:"docs/examples/gl.md",updatedTime:1612692239e3,title:"Web GL",order:7,slugs:[{depth:2,value:"Web GL",heading:"web-gl"}],nav:{path:"/examples",title:"Examples"}},title:"Web GL"},{path:"/examples/graph",component:n("QwcI").default,exact:!0,meta:{filePath:"docs/examples/graph.md",updatedTime:1612692239e3,title:"Graph",order:9,slugs:[{depth:2,value:"Graph",heading:"graph"}],nav:{path:"/examples",title:"Examples"}},title:"Graph"},{path:"/examples/loading",component:n("ij3K").default,exact:!0,meta:{filePath:"docs/examples/loading.md",updatedTime:1612692239e3,title:"Loading",order:5,slugs:[{depth:2,value:"Loading",heading:"loading"}],nav:{path:"/examples",title:"Examples"}},title:"Loading"},{path:"/examples/simple",component:n("CRiW").default,exact:!0,meta:{filePath:"docs/examples/simple.md",updatedTime:1612692239e3,title:"Simple",order:1,slugs:[{depth:2,value:"\u7b80\u5355\u5806\u79ef\u9762\u79ef\u56fe",heading:"\u7b80\u5355\u5806\u79ef\u9762\u79ef\u56fe"}],nav:{path:"/examples",title:"Examples"}},title:"Simple"},{path:"/examples/svg",component:n("rrU6").default,exact:!0,meta:{filePath:"docs/examples/svg.md",updatedTime:1612692239e3,title:"SVG",order:8,slugs:[{depth:2,value:"SVG",heading:"svg"}],nav:{path:"/examples",title:"Examples"}},title:"SVG"},{path:"/examples/theme",component:n("iPOA").default,exact:!0,meta:{filePath:"docs/examples/theme.md",updatedTime:1612692239e3,title:"Theme",order:3,slugs:[{depth:2,value:"Theme",heading:"theme"}],nav:{path:"/examples",title:"Examples"}},title:"Theme"},{path:"/examples",meta:{},exact:!0,redirect:"/examples/simple"}],title:"\b",component:e=>e.children}];return r["a"].applyPlugins({key:"patchRoutes",type:a["ApplyPluginsType"].event,args:{routes:e}}),e}var l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r["a"].applyPlugins({key:"render",type:a["ApplyPluginsType"].compose,initialValue:()=>{var t=r["a"].applyPlugins({key:"modifyClientRenderOpts",type:a["ApplyPluginsType"].modify,initialValue:{routes:e.routes||s(),plugin:r["a"],history:Object(i["a"])(e.hot),isServer:Object({NODE_ENV:"production"}).__IS_SERVER,rootElement:"root",defaultTitle:"\b"}});return Object(o["renderClient"])(t)},args:e})},u=l();t["default"]=u();window.g_umi={version:"3.3.7"}},tEmt:function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,a=Object.create(i.prototype),o=new A(r||[]);return a._invoke=T(e,n,o),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}e.wrap=l;var c="suspendedStart",h="suspendedYield",d="executing",f="completed",p={};function g(){}function m(){}function v(){}var y={};y[a]=function(){return this};var b=Object.getPrototypeOf,_=b&&b(b(C([])));_&&_!==n&&r.call(_,a)&&(y=_);var x=v.prototype=g.prototype=Object.create(y);function w(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function S(e,t){function n(i,a,o,s){var l=u(e[i],e,a);if("throw"!==l.type){var c=l.arg,h=c.value;return h&&"object"===typeof h&&r.call(h,"__await")?t.resolve(h.__await).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):t.resolve(h).then((function(e){c.value=e,o(c)}),(function(e){return n("throw",e,o,s)}))}s(l.arg)}var i;function a(e,r){function a(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(a,a):a()}this._invoke=a}function T(e,t,n){var r=c;return function(i,a){if(r===d)throw new Error("Generator is already running");if(r===f){if("throw"===i)throw a;return I()}n.method=i,n.arg=a;while(1){var o=n.delegate;if(o){var s=O(o,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===c)throw r=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var l=u(e,t,n);if("normal"===l.type){if(r=n.done?f:h,l.arg===p)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=f,n.method="throw",n.arg=l.arg)}}}function O(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator["return"]&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var i=u(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,p;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,p):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function C(e){if(e){var n=e[a];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){while(++i<e.length)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}return{next:I}}function I(){return{value:t,done:!0}}return m.prototype=x.constructor=v,v.constructor=m,v[s]=m.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s in e||(e[s]="GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},w(S.prototype),S.prototype[o]=function(){return this},e.AsyncIterator=S,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new S(l(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},w(x),x[s]="Generator",x[a]=function(){return this},x.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){while(t.length){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=C,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var l=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(l&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=r}catch(i){Function("r","regeneratorRuntime = r")(r)}},tGsd:function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},tNTM:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,"a",(function(){return r}))},tOoc:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("2ZPZ"),i=n("b9e6");function a(e,t,n,a,o,s,l,u){Object(i["a"])("getTextRect is deprecated.");var c=new r["a"]({style:{text:e,font:t,align:n,verticalAlign:a,padding:o,rich:s,overflow:l?"truncate":null,lineHeight:u}});return c.getBoundingRect()}},tPuD:function(e,t,n){"use strict";var r=n("HIsA"),i=n("7+LC"),a=n("dOdC"),o=n("pxmn"),s=n("NVMI"),l=n("2I03"),u=n("G70G"),c=n("HKEF"),h=n("HqdE"),d=n("kPvK"),f=n("9ZTU"),p=d("isConcatSpreadable"),g=9007199254740991,m="Maximum allowed index exceeded",v=f>=51||!i((function(){var e=[];return e[p]=!1,e.concat()[0]!==e})),y=h("concat"),b=function(e){if(!o(e))return!1;var t=e[p];return void 0!==t?!!t:a(e)},_=!v||!y;r({target:"Array",proto:!0,forced:_},{concat:function(e){var t,n,r,i,a,o=s(this),h=c(o,0),d=0;for(t=-1,r=arguments.length;t<r;t++)if(a=-1===t?o:arguments[t],b(a)){if(i=l(a.length),d+i>g)throw TypeError(m);for(n=0;n<i;n++,d++)n in a&&u(h,d,a[n])}else{if(d>=g)throw TypeError(m);u(h,d++,a)}return h.length=d,h}})},tToO:function(e,t,n){"use strict";var r=n("a0Kb"),i=n("sKBc"),a=n("g9E2"),o=n("b26b"),s=n("PW5N"),l=Object(o["o"])();function u(e){return"category"===e.type?h(e):p(e)}function c(e,t){return"category"===e.type?f(e,t):{ticks:r["map"](e.scale.getTicks(),(function(e){return e.value}))}}function h(e){var t=e.getLabelModel(),n=d(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function d(e,t){var n,i,a=g(e,"labels"),o=Object(s["e"])(t),l=m(a,o);return l||(r["isFunction"](o)?n=w(e,o):(i="auto"===o?y(e):o,n=x(e,i)),v(a,o,{labels:n,labelCategoryInterval:i}))}function f(e,t){var n,i,a=g(e,"ticks"),o=Object(s["e"])(t),l=m(a,o);if(l)return l;if(t.get("show")&&!e.scale.isBlank()||(n=[]),r["isFunction"](o))n=w(e,o,!0);else if("auto"===o){var u=d(e,e.getLabelModel());i=u.labelCategoryInterval,n=r["map"](u.labels,(function(e){return e.tickValue}))}else i=o,n=x(e,i,!0);return v(a,o,{ticks:n,tickCategoryInterval:i})}function p(e){var t=e.scale.getTicks(),n=Object(s["h"])(e);return{labels:r["map"](t,(function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tickValue:t.value}}))}}function g(e,t){return l(e)[t]||(l(e)[t]=[])}function m(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function v(e,t,n){return e.push({key:t,value:n}),n}function y(e){var t=l(e).autoInterval;return null!=t?t:l(e).autoInterval=e.calculateCategoryInterval()}function b(e){var t=_(e),n=Object(s["h"])(e),r=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,o=i.getExtent(),u=i.count();if(o[1]-o[0]<1)return 0;var c=1;u>40&&(c=Math.max(1,Math.floor(u/40)));for(var h=o[0],d=e.dataToCoord(h+1)-e.dataToCoord(h),f=Math.abs(d*Math.cos(r)),p=Math.abs(d*Math.sin(r)),g=0,m=0;h<=o[1];h+=c){var v=0,y=0,b=a["e"](n({value:h}),t.font,"center","top");v=1.3*b.width,y=1.3*b.height,g=Math.max(g,v,7),m=Math.max(m,y,7)}var x=g/f,w=m/p;isNaN(x)&&(x=1/0),isNaN(w)&&(w=1/0);var S=Math.max(0,Math.floor(Math.min(x,w))),T=l(e.model),O=e.getExtent(),M=T.lastAutoInterval,E=T.lastTickCount;return null!=M&&null!=E&&Math.abs(M-S)<=1&&Math.abs(E-u)<=1&&M>S&&T.axisExtent0===O[0]&&T.axisExtent1===O[1]?S=M:(T.lastTickCount=u,T.lastAutoInterval=S,T.axisExtent0=O[0],T.axisExtent1=O[1]),S}function _(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function x(e,t,n){var r=Object(s["h"])(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),l=[],u=Math.max((t||0)+1,1),c=a[0],h=i.count();0!==c&&u>1&&h/u>2&&(c=Math.round(Math.ceil(c/u)*u));var d=Object(s["j"])(e),f=o.get("showMinLabel")||d,p=o.get("showMaxLabel")||d;f&&c!==a[0]&&m(a[0]);for(var g=c;g<=a[1];g+=u)m(g);function m(e){var t={value:e};l.push(n?e:{formattedLabel:r(t),rawLabel:i.getLabel(t),tickValue:e})}return p&&g-u!==a[1]&&m(a[1]),l}function w(e,t,n){var i=e.scale,a=Object(s["h"])(e),o=[];return r["each"](i.getTicks(),(function(e){var r=i.getLabel(e),s=e.value;t(e.value,r)&&o.push(n?s:{formattedLabel:a(e),rawLabel:r,tickValue:s})})),o}var S=[0,1],T=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return Object(i["e"])(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this._extent,r=this.scale;return e=r.normalize(e),this.onBand&&"ordinal"===r.type&&(n=n.slice(),O(n,r.count())),Object(i["k"])(e,S,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&(n=n.slice(),O(n,r.count()));var a=Object(i["k"])(e,n,S,t);return this.scale.scale(a)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=c(this,t),i=n.ticks,a=Object(r["map"])(i,(function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}}),this),o=t.get("alignWithLabel");return M(this,a,o,e.clamp),a},e.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var n=this.scale.getMinorTicks(t),i=Object(r["map"])(n,(function(e){return Object(r["map"])(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this);return i},e.prototype.getViewLabels=function(){return u(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(e[1]-e[0]);return Math.abs(r)/n},e.prototype.calculateCategoryInterval=function(){return b(this)},e}();function O(e,t){var n=e[1]-e[0],r=t,i=n/r/2;e[0]+=i,e[1]-=i}function M(e,t,n,a){var o=t.length;if(e.onBand&&!n&&o){var s,l,u=e.getExtent();if(1===o)t[0].coord=u[0],s=t[1]={coord:u[0]};else{var c=t[o-1].tickValue-t[0].tickValue,h=(t[o-1].coord-t[0].coord)/c;Object(r["each"])(t,(function(e){e.coord-=h/2}));var d=e.scale.getExtent();l=1+d[1]-t[o-1].tickValue,s={coord:t[o-1].coord+h*l},t.push(s)}var f=u[0]>u[1];p(t[0].coord,u[0])&&(a?t[0].coord=u[0]:t.shift()),a&&p(u[0],t[0].coord)&&t.unshift({coord:u[0]}),p(u[1],s.coord)&&(a?s.coord=u[1]:t.pop()),a&&p(s.coord,u[1])&&t.push({coord:u[1]})}function p(e,t){return e=Object(i["u"])(e),t=Object(i["u"])(t),f?e>t:e<t}}t["a"]=T},tbCl:function(e,t,n){"use strict";var r=n("jwv5"),i=n("EPlJ"),a=n("ekZt"),o=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],s=Object(a["a"])(o),l=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return s(this,e,t)},e}(),u=n("IhSh"),c=n("2ZPZ"),h=["textStyle","color"],d=new c["a"],f=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(h):null)},e.prototype.getFont=function(){return Object(u["d"])({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(e){return d.useStyle({text:e,fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily"),verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline"),padding:this.getShallow("padding"),lineHeight:this.getShallow("lineHeight"),rich:this.getShallow("rich")}),d.update(),d.getBoundingRect()},e}(),p=f,g=n("8Mh8"),m=n("SPWa"),v=n("a0Kb"),y=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i]},e.prototype.mergeOption=function(e,t){Object(v["merge"])(this.option,e,!0)},e.prototype.get=function(e,t){return null==e?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=null==n?n:n[e];if(null==r&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=null!=t,i=r?this.parsePath(t):null,a=r?this._doGet(i):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,n,this.ecModel)},e.prototype.isEmpty=function(){return null==this.option},e.prototype.restoreData=function(){},e.prototype.clone=function(){var e=this.constructor;return new e(Object(v["clone"])(this.option))},e.prototype.parsePath=function(e){return"string"===typeof e?e.split("."):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!r["a"].node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length;r++)if(e[r]&&(n=n&&"object"===typeof n?n[e[r]]:null,null==n))break;return null==n&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();Object(i["b"])(y),Object(i["a"])(y),Object(v["mixin"])(y,g["b"]),Object(v["mixin"])(y,m["b"]),Object(v["mixin"])(y,l),Object(v["mixin"])(y,p);t["a"]=y},"tg/3":function(e,t,n){var r=n("KpHK"),i=n("mAbK"),a=n("kPvK"),o=a("iterator");e.exports=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||i[r(e)]}},tgv4:function(e,t,n){var r=n("bVFb");r("toPrimitive")},tpE2:function(e,t,n){var r=n("HIsA"),i=n("hLNC");r({target:"Number",stat:!0,forced:Number.parseFloat!=i},{parseFloat:i})},trzq:function(e,t,n){var r=n("JqKL");r("Float32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},tw5J:function(e,t,n){"use strict";var r=n("zb3V"),i=n("H4kQ"),a=n("bJj0"),o=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),s=function(e){function t(t){return e.call(this,t)||this}return Object(r["b"])(t,e),t.prototype.getDefaultShape=function(){return new o},t.prototype.buildPath=function(e,t){a["a"](e,t,!0)},t}(i["b"]);s.prototype.type="polygon",t["a"]=s},twJ5:function(e,t,n){var r,i,a,o=n("YE/S"),s=n("2JD6"),l=n("pxmn"),u=n("D8FR"),c=n("+qhb"),h=n("fbKl"),d=n("1agv"),f=s.WeakMap,p=function(e){return a(e)?i(e):r(e,{})},g=function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}};if(o){var m=new f,v=m.get,y=m.has,b=m.set;r=function(e,t){return b.call(m,e,t),t},i=function(e){return v.call(m,e)||{}},a=function(e){return y.call(m,e)}}else{var _=h("state");d[_]=!0,r=function(e,t){return u(e,_,t),t},i=function(e){return c(e,_)?e[_]:{}},a=function(e){return c(e,_)}}e.exports={set:r,get:i,has:a,enforce:p,getterFor:g}},"u2e+":function(e,t,n){var r=n("HIsA"),i=n("2JD6"),a=n("I67C"),o=n("IRht"),s=i.process,l="process"==o(s);r({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(e){var t=l&&s.domain;a(t?t.bind(e):e)}})},uCRN:function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},uGNz:function(e,t,n){"use strict";n.r(t);var r=n("4LU/"),i=n("m1m1"),a=(n("6BwO"),n("XJ6e")),o=n("eMAo");Object(i["a"])([a["a"],o["a"]]);function s(e,t,n){"object"==typeof t&&(n=t,t=null);var r,i=this;if(!(e instanceof Function))for(var a in r=[],e)e.hasOwnProperty(a)&&r.push(a);var o=function t(n){if(i.apply(this,arguments),e instanceof Function?l(this,e.call(this,n)):u(this,e,r),this.constructor===t)for(var a=t.__initializers__,o=0;o<a.length;o++)a[o].apply(this,arguments)};o.__super__=i,i.__initializers__?o.__initializers__=i.__initializers__.slice():o.__initializers__=[],t&&o.__initializers__.push(t);var s=function(){};return s.prototype=i.prototype,o.prototype=new s,o.prototype.constructor=o,l(o.prototype,n),o.extend=i.extend,o.derive=i.extend,o}function l(e,t){if(t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}function u(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];e[i]=t[i]}}var c={extend:s,derive:s};function h(e,t){this.action=e,this.context=t}var d={trigger:function(e){if(this.hasOwnProperty("__handlers__")&&this.__handlers__.hasOwnProperty(e)){var t=this.__handlers__[e],n=t.length,r=-1,i=arguments;switch(i.length){case 1:while(++r<n)t[r].action.call(t[r].context);return;case 2:while(++r<n)t[r].action.call(t[r].context,i[1]);return;case 3:while(++r<n)t[r].action.call(t[r].context,i[1],i[2]);return;case 4:while(++r<n)t[r].action.call(t[r].context,i[1],i[2],i[3]);return;case 5:while(++r<n)t[r].action.call(t[r].context,i[1],i[2],i[3],i[4]);return;default:while(++r<n)t[r].action.apply(t[r].context,Array.prototype.slice.call(i,1));return}}},on:function(e,t,n){if(e&&t){var r=this.__handlers__||(this.__handlers__={});if(r[e]){if(this.has(e,t))return}else r[e]=[];var i=new h(t,n||this);return r[e].push(i),this}},once:function(e,t,n){if(e&&t){var r=this;return this.on(e,i,n)}function i(){r.off(e,i),t.apply(this,arguments)}},before:function(e,t,n){if(e&&t)return e="before"+e,this.on(e,t,n)},after:function(e,t,n){if(e&&t)return e="after"+e,this.on(e,t,n)},success:function(e,t){return this.once("success",e,t)},error:function(e,t){return this.once("error",e,t)},off:function(e,t){var n=this.__handlers__||(this.__handlers__={});if(t){if(n[e]){for(var r=n[e],i=[],a=0;a<r.length;a++)t&&r[a].action!==t&&i.push(r[a]);n[e]=i}return this}n[e]=[]},has:function(e,t){var n=this.__handlers__;if(!n||!n[e])return!1;for(var r=n[e],i=0;i<r.length;i++)if(r[i].action===t)return!0}},f=d,p=0,g=Array.prototype,m=g.forEach,v={genGUID:function(){return++p},relative2absolute:function(e,t){if(!t||e.match(/^\//))return e;var n=e.split("/"),r=t.split("/"),i=n[0];while("."===i||".."===i)".."===i&&r.pop(),n.shift(),i=n[0];return r.join("/")+"/"+n.join("/")},extend:function(e,t){if(t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},defaults:function(e,t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n]);return e},extendWithPropList:function(e,t,n){if(t)for(var r=0;r<n.length;r++){var i=n[r];e[i]=t[i]}return e},defaultsWithPropList:function(e,t,n){if(t)for(var r=0;r<n.length;r++){var i=n[r];null==e[i]&&(e[i]=t[i])}return e},each:function(e,t,n){if(e&&t)if(e.forEach&&e.forEach===m)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)},isObject:function(e){return e===Object(e)},isArray:function(e){return Array.isArray(e)},isArrayLike:function(e){return!!e&&e.length===+e.length},clone:function(e){if(v.isObject(e)){if(v.isArray(e))return e.slice();if(v.isArrayLike(e)){for(var t=new e.constructor(e.length),n=0;n<e.length;n++)t[n]=e[n];return t}return v.extend({},e)}return e}},y=v,b=function(){this.__uid__=y.genGUID()};b.__initializers__=[function(e){y.extend(this,e)}],y.extend(b,c),y.extend(b.prototype,f);var _=b,x=["OES_texture_float","OES_texture_half_float","OES_texture_float_linear","OES_texture_half_float_linear","OES_standard_derivatives","OES_vertex_array_object","OES_element_index_uint","WEBGL_compressed_texture_s3tc","WEBGL_depth_texture","EXT_texture_filter_anisotropic","EXT_shader_texture_lod","WEBGL_draw_buffers","EXT_frag_depth","EXT_sRGB","ANGLE_instanced_arrays"],w=["MAX_TEXTURE_SIZE","MAX_CUBE_MAP_TEXTURE_SIZE"];function S(e){for(var t={},n={},r=0;r<x.length;r++){var i=x[r];o(i)}for(r=0;r<w.length;r++){var a=w[r];n[a]=e.getParameter(e[a])}function o(n){if(e.getExtension){var r=e.getExtension(n);r||(r=e.getExtension("MOZ_"+n)),r||(r=e.getExtension("WEBKIT_"+n)),t[n]=r}}this.getExtension=function(e){return e in t||o(e),t[e]},this.getParameter=function(e){return n[e]}}var T=S,O={DEPTH_BUFFER_BIT:256,STENCIL_BUFFER_BIT:1024,COLOR_BUFFER_BIT:16384,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,ZERO:0,ONE:1,SRC_COLOR:768,ONE_MINUS_SRC_COLOR:769,SRC_ALPHA:770,ONE_MINUS_SRC_ALPHA:771,DST_ALPHA:772,ONE_MINUS_DST_ALPHA:773,DST_COLOR:774,ONE_MINUS_DST_COLOR:775,SRC_ALPHA_SATURATE:776,FUNC_ADD:32774,BLEND_EQUATION:32777,BLEND_EQUATION_RGB:32777,BLEND_EQUATION_ALPHA:34877,FUNC_SUBTRACT:32778,FUNC_REVERSE_SUBTRACT:32779,BLEND_DST_RGB:32968,BLEND_SRC_RGB:32969,BLEND_DST_ALPHA:32970,BLEND_SRC_ALPHA:32971,CONSTANT_COLOR:32769,ONE_MINUS_CONSTANT_COLOR:32770,CONSTANT_ALPHA:32771,ONE_MINUS_CONSTANT_ALPHA:32772,BLEND_COLOR:32773,ARRAY_BUFFER:34962,ELEMENT_ARRAY_BUFFER:34963,ARRAY_BUFFER_BINDING:34964,ELEMENT_ARRAY_BUFFER_BINDING:34965,STREAM_DRAW:35040,STATIC_DRAW:35044,DYNAMIC_DRAW:35048,BUFFER_SIZE:34660,BUFFER_USAGE:34661,CURRENT_VERTEX_ATTRIB:34342,FRONT:1028,BACK:1029,FRONT_AND_BACK:1032,CULL_FACE:2884,BLEND:3042,DITHER:3024,STENCIL_TEST:2960,DEPTH_TEST:2929,SCISSOR_TEST:3089,POLYGON_OFFSET_FILL:32823,SAMPLE_ALPHA_TO_COVERAGE:32926,SAMPLE_COVERAGE:32928,NO_ERROR:0,INVALID_ENUM:1280,INVALID_VALUE:1281,INVALID_OPERATION:1282,OUT_OF_MEMORY:1285,CW:2304,CCW:2305,LINE_WIDTH:2849,ALIASED_POINT_SIZE_RANGE:33901,ALIASED_LINE_WIDTH_RANGE:33902,CULL_FACE_MODE:2885,FRONT_FACE:2886,DEPTH_RANGE:2928,DEPTH_WRITEMASK:2930,DEPTH_CLEAR_VALUE:2931,DEPTH_FUNC:2932,STENCIL_CLEAR_VALUE:2961,STENCIL_FUNC:2962,STENCIL_FAIL:2964,STENCIL_PASS_DEPTH_FAIL:2965,STENCIL_PASS_DEPTH_PASS:2966,STENCIL_REF:2967,STENCIL_VALUE_MASK:2963,STENCIL_WRITEMASK:2968,STENCIL_BACK_FUNC:34816,STENCIL_BACK_FAIL:34817,STENCIL_BACK_PASS_DEPTH_FAIL:34818,STENCIL_BACK_PASS_DEPTH_PASS:34819,STENCIL_BACK_REF:36003,STENCIL_BACK_VALUE_MASK:36004,STENCIL_BACK_WRITEMASK:36005,VIEWPORT:2978,SCISSOR_BOX:3088,COLOR_CLEAR_VALUE:3106,COLOR_WRITEMASK:3107,UNPACK_ALIGNMENT:3317,PACK_ALIGNMENT:3333,MAX_TEXTURE_SIZE:3379,MAX_VIEWPORT_DIMS:3386,SUBPIXEL_BITS:3408,RED_BITS:3410,GREEN_BITS:3411,BLUE_BITS:3412,ALPHA_BITS:3413,DEPTH_BITS:3414,STENCIL_BITS:3415,POLYGON_OFFSET_UNITS:10752,POLYGON_OFFSET_FACTOR:32824,TEXTURE_BINDING_2D:32873,SAMPLE_BUFFERS:32936,SAMPLES:32937,SAMPLE_COVERAGE_VALUE:32938,SAMPLE_COVERAGE_INVERT:32939,COMPRESSED_TEXTURE_FORMATS:34467,DONT_CARE:4352,FASTEST:4353,NICEST:4354,GENERATE_MIPMAP_HINT:33170,BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,DEPTH_COMPONENT:6402,ALPHA:6406,RGB:6407,RGBA:6408,LUMINANCE:6409,LUMINANCE_ALPHA:6410,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,FRAGMENT_SHADER:35632,VERTEX_SHADER:35633,MAX_VERTEX_ATTRIBS:34921,MAX_VERTEX_UNIFORM_VECTORS:36347,MAX_VARYING_VECTORS:36348,MAX_COMBINED_TEXTURE_IMAGE_UNITS:35661,MAX_VERTEX_TEXTURE_IMAGE_UNITS:35660,MAX_TEXTURE_IMAGE_UNITS:34930,MAX_FRAGMENT_UNIFORM_VECTORS:36349,SHADER_TYPE:35663,DELETE_STATUS:35712,LINK_STATUS:35714,VALIDATE_STATUS:35715,ATTACHED_SHADERS:35717,ACTIVE_UNIFORMS:35718,ACTIVE_ATTRIBUTES:35721,SHADING_LANGUAGE_VERSION:35724,CURRENT_PROGRAM:35725,NEVER:512,LESS:513,EQUAL:514,LEQUAL:515,GREATER:516,NOTEQUAL:517,GEQUAL:518,ALWAYS:519,KEEP:7680,REPLACE:7681,INCR:7682,DECR:7683,INVERT:5386,INCR_WRAP:34055,DECR_WRAP:34056,VENDOR:7936,RENDERER:7937,VERSION:7938,NEAREST:9728,LINEAR:9729,NEAREST_MIPMAP_NEAREST:9984,LINEAR_MIPMAP_NEAREST:9985,NEAREST_MIPMAP_LINEAR:9986,LINEAR_MIPMAP_LINEAR:9987,TEXTURE_MAG_FILTER:10240,TEXTURE_MIN_FILTER:10241,TEXTURE_WRAP_S:10242,TEXTURE_WRAP_T:10243,TEXTURE_2D:3553,TEXTURE:5890,TEXTURE_CUBE_MAP:34067,TEXTURE_BINDING_CUBE_MAP:34068,TEXTURE_CUBE_MAP_POSITIVE_X:34069,TEXTURE_CUBE_MAP_NEGATIVE_X:34070,TEXTURE_CUBE_MAP_POSITIVE_Y:34071,TEXTURE_CUBE_MAP_NEGATIVE_Y:34072,TEXTURE_CUBE_MAP_POSITIVE_Z:34073,TEXTURE_CUBE_MAP_NEGATIVE_Z:34074,MAX_CUBE_MAP_TEXTURE_SIZE:34076,TEXTURE0:33984,TEXTURE1:33985,TEXTURE2:33986,TEXTURE3:33987,TEXTURE4:33988,TEXTURE5:33989,TEXTURE6:33990,TEXTURE7:33991,TEXTURE8:33992,TEXTURE9:33993,TEXTURE10:33994,TEXTURE11:33995,TEXTURE12:33996,TEXTURE13:33997,TEXTURE14:33998,TEXTURE15:33999,TEXTURE16:34e3,TEXTURE17:34001,TEXTURE18:34002,TEXTURE19:34003,TEXTURE20:34004,TEXTURE21:34005,TEXTURE22:34006,TEXTURE23:34007,TEXTURE24:34008,TEXTURE25:34009,TEXTURE26:34010,TEXTURE27:34011,TEXTURE28:34012,TEXTURE29:34013,TEXTURE30:34014,TEXTURE31:34015,ACTIVE_TEXTURE:34016,REPEAT:10497,CLAMP_TO_EDGE:33071,MIRRORED_REPEAT:33648,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,INT_VEC2:35667,INT_VEC3:35668,INT_VEC4:35669,BOOL:35670,BOOL_VEC2:35671,BOOL_VEC3:35672,BOOL_VEC4:35673,FLOAT_MAT2:35674,FLOAT_MAT3:35675,FLOAT_MAT4:35676,SAMPLER_2D:35678,SAMPLER_CUBE:35680,VERTEX_ATTRIB_ARRAY_ENABLED:34338,VERTEX_ATTRIB_ARRAY_SIZE:34339,VERTEX_ATTRIB_ARRAY_STRIDE:34340,VERTEX_ATTRIB_ARRAY_TYPE:34341,VERTEX_ATTRIB_ARRAY_NORMALIZED:34922,VERTEX_ATTRIB_ARRAY_POINTER:34373,VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:34975,COMPILE_STATUS:35713,LOW_FLOAT:36336,MEDIUM_FLOAT:36337,HIGH_FLOAT:36338,LOW_INT:36339,MEDIUM_INT:36340,HIGH_INT:36341,FRAMEBUFFER:36160,RENDERBUFFER:36161,RGBA4:32854,RGB5_A1:32855,RGB565:36194,DEPTH_COMPONENT16:33189,STENCIL_INDEX:6401,STENCIL_INDEX8:36168,DEPTH_STENCIL:34041,RENDERBUFFER_WIDTH:36162,RENDERBUFFER_HEIGHT:36163,RENDERBUFFER_INTERNAL_FORMAT:36164,RENDERBUFFER_RED_SIZE:36176,RENDERBUFFER_GREEN_SIZE:36177,RENDERBUFFER_BLUE_SIZE:36178,RENDERBUFFER_ALPHA_SIZE:36179,RENDERBUFFER_DEPTH_SIZE:36180,RENDERBUFFER_STENCIL_SIZE:36181,FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE:36048,FRAMEBUFFER_ATTACHMENT_OBJECT_NAME:36049,FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL:36050,FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:36051,COLOR_ATTACHMENT0:36064,DEPTH_ATTACHMENT:36096,STENCIL_ATTACHMENT:36128,DEPTH_STENCIL_ATTACHMENT:33306,NONE:0,FRAMEBUFFER_COMPLETE:36053,FRAMEBUFFER_INCOMPLETE_ATTACHMENT:36054,FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:36055,FRAMEBUFFER_INCOMPLETE_DIMENSIONS:36057,FRAMEBUFFER_UNSUPPORTED:36061,FRAMEBUFFER_BINDING:36006,RENDERBUFFER_BINDING:36007,MAX_RENDERBUFFER_SIZE:34024,INVALID_FRAMEBUFFER_OPERATION:1286,UNPACK_FLIP_Y_WEBGL:37440,UNPACK_PREMULTIPLY_ALPHA_WEBGL:37441,CONTEXT_LOST_WEBGL:37442,UNPACK_COLORSPACE_CONVERSION_WEBGL:37443,BROWSER_DEFAULT_WEBGL:37444},M=n("swIl"),E=function(){this.head=null,this.tail=null,this._length=0};E.prototype.insert=function(e){var t=new E.Entry(e);return this.insertEntry(t),t},E.prototype.insertAt=function(e,t){if(!(e<0)){var n=this.head,r=0;while(n&&r!=e)n=n.next,r++;if(n){var i=new E.Entry(t),a=n.prev;a?(a.next=i,i.prev=a):this.head=i,i.next=n,n.prev=i}else this.insert(t)}},E.prototype.insertBeforeEntry=function(e,t){var n=new E.Entry(e),r=t.prev;r?(r.next=n,n.prev=r):this.head=n,n.next=t,t.prev=n,this._length++},E.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,this.tail=e):this.head=this.tail=e,this._length++},E.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._length--},E.prototype.removeAt=function(e){if(!(e<0)){var t=this.head,n=0;while(t&&n!=e)t=t.next,n++;return t?(this.remove(t),t.value):void 0}},E.prototype.getHead=function(){if(this.head)return this.head.value},E.prototype.getTail=function(){if(this.tail)return this.tail.value},E.prototype.getAt=function(e){if(!(e<0)){var t=this.head,n=0;while(t&&n!=e)t=t.next,n++;return t.value}},E.prototype.indexOf=function(e){var t=this.head,n=0;while(t){if(t.value===e)return n;t=t.next,n++}},E.prototype.length=function(){return this._length},E.prototype.isEmpty=function(){return 0===this._length},E.prototype.forEach=function(e,t){var n=this.head,r=0,i="undefined"!=typeof t;while(n)i?e.call(t,n.value,r):e(n.value,r),n=n.next,r++},E.prototype.clear=function(){this.tail=this.head=null,this._length=0},E.Entry=function(e){this.value=e,this.next=null,this.prev=null};var A=E,C=function(e){this._list=new A,this._map={},this._maxSize=e||10};C.prototype.setMaxSize=function(e){this._maxSize=e},C.prototype.put=function(e,t){if(!this._map.hasOwnProperty(e)){var n=this._list.length();if(n>=this._maxSize&&n>0){var r=this._list.head;this._list.remove(r),delete this._map[r.key]}var i=this._list.insert(t);i.key=e,this._map[e]=i}},C.prototype.get=function(e){var t=this._map[e];if(this._map.hasOwnProperty(e))return t!==this._list.tail&&(this._list.remove(t),this._list.insertEntry(t)),t.value},C.prototype.remove=function(e){var t=this._map[e];"undefined"!==typeof t&&(delete this._map[e],this._list.remove(t))},C.prototype.clear=function(){this._list.clear(),this._map={}};var I=C,D={},L={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function P(e){return e=Math.round(e),e<0?0:e>255?255:e}function k(e){return e=Math.round(e),e<0?0:e>360?360:e}function R(e){return e<0?0:e>1?1:e}function N(e){return e.length&&"%"===e.charAt(e.length-1)?P(parseFloat(e)/100*255):P(parseInt(e,10))}function j(e){return e.length&&"%"===e.charAt(e.length-1)?R(parseFloat(e)/100):R(parseFloat(e))}function F(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function z(e,t,n){return e+(t-e)*n}function B(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function V(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var G=new I(20),H=null;function U(e,t){H&&V(H,t),H=G.put(e,H||t.slice())}function W(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=j(e[1]),i=j(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=2*i-a;return t=t||[],B(t,P(255*F(o,a,n+1/3)),P(255*F(o,a,n)),P(255*F(o,a,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function X(e){if(e){var t,n,r=e[0]/255,i=e[1]/255,a=e[2]/255,o=Math.min(r,i,a),s=Math.max(r,i,a),l=s-o,u=(s+o)/2;if(0===l)t=0,n=0;else{n=u<.5?l/(s+o):l/(2-s-o);var c=((s-r)/6+l/2)/l,h=((s-i)/6+l/2)/l,d=((s-a)/6+l/2)/l;r===s?t=d-h:i===s?t=1/3+c-d:a===s&&(t=2/3+h-c),t<0&&(t+=1),t>1&&(t-=1)}var f=[360*t,n,u];return null!=e[3]&&f.push(e[3]),f}}D.parse=function(e,t){if(e){t=t||[];var n=G.get(e);if(n)return V(t,n);e+="";var r=e.replace(/ /g,"").toLowerCase();if(r in L)return V(t,L[r]),U(e,t),t;if("#"!==r.charAt(0)){var i=r.indexOf("("),a=r.indexOf(")");if(-1!==i&&a+1===r.length){var o=r.substr(0,i),s=r.substr(i+1,a-(i+1)).split(","),l=1;switch(o){case"rgba":if(4!==s.length)return void B(t,0,0,0,1);l=j(s.pop());case"rgb":return 3!==s.length?void B(t,0,0,0,1):(B(t,N(s[0]),N(s[1]),N(s[2]),l),U(e,t),t);case"hsla":return 4!==s.length?void B(t,0,0,0,1):(s[3]=j(s[3]),W(s,t),U(e,t),t);case"hsl":return 3!==s.length?void B(t,0,0,0,1):(W(s,t),U(e,t),t);default:return}}B(t,0,0,0,1)}else{if(4===r.length){var u=parseInt(r.substr(1),16);return u>=0&&u<=4095?(B(t,(3840&u)>>4|(3840&u)>>8,240&u|(240&u)>>4,15&u|(15&u)<<4,1),U(e,t),t):void B(t,0,0,0,1)}if(7===r.length){u=parseInt(r.substr(1),16);return u>=0&&u<=16777215?(B(t,(16711680&u)>>16,(65280&u)>>8,255&u,1),U(e,t),t):void B(t,0,0,0,1)}}}},D.parseToFloat=function(e,t){if(t=D.parse(e,t),t)return t[0]/=255,t[1]/=255,t[2]/=255,t},D.lift=function(e,t){var n=D.parse(e);if(n){for(var r=0;r<3;r++)n[r]=t<0?n[r]*(1-t)|0:(255-n[r])*t+n[r]|0;return D.stringify(n,4===n.length?"rgba":"rgb")}},D.toHex=function(e){var t=D.parse(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)},D.fastLerp=function(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=t[i],s=t[a],l=r-i;return n[0]=P(z(o[0],s[0],l)),n[1]=P(z(o[1],s[1],l)),n[2]=P(z(o[2],s[2],l)),n[3]=R(z(o[3],s[3],l)),n}},D.fastMapToColor=D.fastLerp,D.lerp=function(e,t,n){if(t&&t.length&&e>=0&&e<=1){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=D.parse(t[i]),s=D.parse(t[a]),l=r-i,u=D.stringify([P(z(o[0],s[0],l)),P(z(o[1],s[1],l)),P(z(o[2],s[2],l)),R(z(o[3],s[3],l))],"rgba");return n?{color:u,leftIndex:i,rightIndex:a,value:r}:u}},D.mapToColor=D.lerp,D.modifyHSL=function(e,t,n,r){if(e=D.parse(e),e)return e=X(e),null!=t&&(e[0]=k(t)),null!=n&&(e[1]=j(n)),null!=r&&(e[2]=j(r)),D.stringify(W(e),"rgba")},D.modifyAlpha=function(e,t){if(e=D.parse(e),e&&null!=t)return e[3]=R(t),D.stringify(e,"rgba")},D.stringify=function(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}};var Y=D,K=Y.parseToFloat,q={};function Z(e){var t=Object.keys(e);t.sort();for(var n=[],r=0;r<t.length;r++){var i=t[r],a=e[i];null===a?n.push(i):n.push(i+" "+a.toString())}return n.join("\n")}function $(e,t,n){n.sort();for(var r=[],i=0;i<n.length;i++){var a=n[i];r.push(a)}var o=Z(e)+"\n"+Z(t)+"\n"+r.join("\n");if(q[o])return q[o];var s=y.genGUID();return q[o]=s,s}var Q=_.extend((function(){return{name:"",depthTest:!0,depthMask:!0,transparent:!1,blend:null,autoUpdateTextureStatus:!0,uniforms:{},vertexDefines:{},fragmentDefines:{},_textureStatus:{},_enabledUniforms:null}}),(function(){this.name||(this.name="MATERIAL_"+this.__uid__),this.shader&&this.attachShader(this.shader,!0)}),{precision:"highp",setUniform:function(e,t){void 0===t&&console.warn('Uniform value "'+e+'" is undefined');var n=this.uniforms[e];n&&("string"===typeof t&&(t=K(t)||t),n.value=t,this.autoUpdateTextureStatus&&"t"===n.type&&(t?this.enableTexture(e):this.disableTexture(e)))},setUniforms:function(e){for(var t in e){var n=e[t];this.setUniform(t,n)}},isUniformEnabled:function(e){return this._enabledUniforms.indexOf(e)>=0},getEnabledUniforms:function(){return this._enabledUniforms},getTextureUniforms:function(){return this._textureUniforms},set:function(e,t){if("object"===typeof e)for(var n in e){var r=e[n];this.setUniform(n,r)}else this.setUniform(e,t)},get:function(e){var t=this.uniforms[e];if(t)return t.value},attachShader:function(e,t){var n=this.uniforms;this.uniforms=e.createUniforms(),this.shader=e;var r=this.uniforms;this._enabledUniforms=Object.keys(r),this._enabledUniforms.sort(),this._textureUniforms=this._enabledUniforms.filter((function(e){var t=this.uniforms[e].type;return"t"===t||"tv"===t}),this);var i=this.vertexDefines,a=this.fragmentDefines;if(this.vertexDefines=y.clone(e.vertexDefines),this.fragmentDefines=y.clone(e.fragmentDefines),t){for(var o in n)r[o]&&(r[o].value=n[o].value);y.defaults(this.vertexDefines,i),y.defaults(this.fragmentDefines,a)}var s={};for(var l in e.textures)s[l]={shaderType:e.textures[l].shaderType,type:e.textures[l].type,enabled:!(!t||!this._textureStatus[l])&&this._textureStatus[l].enabled};this._textureStatus=s,this._programKey=""},clone:function(){var e=new this.constructor({name:this.name,shader:this.shader});for(var t in this.uniforms)e.uniforms[t].value=this.uniforms[t].value;return e.depthTest=this.depthTest,e.depthMask=this.depthMask,e.transparent=this.transparent,e.blend=this.blend,e.vertexDefines=y.clone(this.vertexDefines),e.fragmentDefines=y.clone(this.fragmentDefines),e.enableTexture(this.getEnabledTextures()),e.precision=this.precision,e},define:function(e,t,n){var r=this.vertexDefines,i=this.fragmentDefines;"vertex"!==e&&"fragment"!==e&&"both"!==e&&arguments.length<3&&(n=t,t=e,e="both"),n=null!=n?n:null,"vertex"!==e&&"both"!==e||r[t]!==n&&(r[t]=n,this._programKey=""),"fragment"!==e&&"both"!==e||i[t]!==n&&(i[t]=n,"both"!==e&&(this._programKey=""))},undefine:function(e,t){"vertex"!==e&&"fragment"!==e&&"both"!==e&&arguments.length<2&&(t=e,e="both"),"vertex"!==e&&"both"!==e||this.isDefined("vertex",t)&&(delete this.vertexDefines[t],this._programKey=""),"fragment"!==e&&"both"!==e||this.isDefined("fragment",t)&&(delete this.fragmentDefines[t],"both"!==e&&(this._programKey=""))},isDefined:function(e,t){switch(e){case"vertex":return void 0!==this.vertexDefines[t];case"fragment":return void 0!==this.fragmentDefines[t]}},getDefine:function(e,t){switch(e){case"vertex":return this.vertexDefines[t];case"fragment":return this.fragmentDefines[t]}},enableTexture:function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++)this.enableTexture(e[t]);else{var n=this._textureStatus[e];if(n){var r=n.enabled;r||(n.enabled=!0,this._programKey="")}}},enableTexturesAll:function(){var e=this._textureStatus;for(var t in e)e[t].enabled=!0;this._programKey=""},disableTexture:function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++)this.disableTexture(e[t]);else{var n=this._textureStatus[e];if(n){var r=!n.enabled;r||(n.enabled=!1,this._programKey="")}}},disableTexturesAll:function(){var e=this._textureStatus;for(var t in e)e[t].enabled=!1;this._programKey=""},isTextureEnabled:function(e){var t=this._textureStatus;return!!t[e]&&t[e].enabled},getEnabledTextures:function(){var e=[],t=this._textureStatus;for(var n in t)t[n].enabled&&e.push(n);return e},dirtyDefines:function(){this._programKey=""},getProgramKey:function(){return this._programKey||(this._programKey=$(this.vertexDefines,this.fragmentDefines,this.getEnabledTextures())),this._programKey}}),J=Q,ee=1e-6,te=Array,ne=Math.random,re={create:function(){var e=new te(2);return e[0]=0,e[1]=0,e},clone:function(e){var t=new te(2);return t[0]=e[0],t[1]=e[1],t},fromValues:function(e,t){var n=new te(2);return n[0]=e,n[1]=t,n},copy:function(e,t){return e[0]=t[0],e[1]=t[1],e},set:function(e,t,n){return e[0]=t,e[1]=n,e},add:function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e},subtract:function(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}};re.sub=re.subtract,re.multiply=function(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e},re.mul=re.multiply,re.divide=function(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e},re.div=re.divide,re.min=function(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e},re.max=function(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e},re.scale=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e},re.scaleAndAdd=function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e},re.distance=function(e,t){var n=t[0]-e[0],r=t[1]-e[1];return Math.sqrt(n*n+r*r)},re.dist=re.distance,re.squaredDistance=function(e,t){var n=t[0]-e[0],r=t[1]-e[1];return n*n+r*r},re.sqrDist=re.squaredDistance,re.length=function(e){var t=e[0],n=e[1];return Math.sqrt(t*t+n*n)},re.len=re.length,re.squaredLength=function(e){var t=e[0],n=e[1];return t*t+n*n},re.sqrLen=re.squaredLength,re.negate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e},re.inverse=function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e},re.normalize=function(e,t){var n=t[0],r=t[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i),e[0]=t[0]*i,e[1]=t[1]*i),e},re.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]},re.cross=function(e,t,n){var r=t[0]*n[1]-t[1]*n[0];return e[0]=e[1]=0,e[2]=r,e},re.lerp=function(e,t,n,r){var i=t[0],a=t[1];return e[0]=i+r*(n[0]-i),e[1]=a+r*(n[1]-a),e},re.random=function(e,t){t=t||1;var n=2*GLMAT_RANDOM()*Math.PI;return e[0]=Math.cos(n)*t,e[1]=Math.sin(n)*t,e},re.transformMat2=function(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i,e[1]=n[1]*r+n[3]*i,e},re.transformMat2d=function(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e},re.transformMat3=function(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[3]*i+n[6],e[1]=n[1]*r+n[4]*i+n[7],e},re.transformMat4=function(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[4]*i+n[12],e[1]=n[1]*r+n[5]*i+n[13],e},re.forEach=function(){var e=re.create();return function(t,n,r,i,a,o){var s,l;for(n||(n=2),r||(r=0),l=i?Math.min(i*n+r,t.length):t.length,s=r;s<l;s+=n)e[0]=t[s],e[1]=t[s+1],a(e,e,o),t[s]=e[0],t[s+1]=e[1];return t}}();var ie=re,ae=function(e,t){e=e||0,t=t||0,this.array=ie.fromValues(e,t),this._dirty=!0};if(ae.prototype={constructor:ae,add:function(e){return ie.add(this.array,this.array,e.array),this._dirty=!0,this},set:function(e,t){return this.array[0]=e,this.array[1]=t,this._dirty=!0,this},setArray:function(e){return this.array[0]=e[0],this.array[1]=e[1],this._dirty=!0,this},clone:function(){return new ae(this.x,this.y)},copy:function(e){return ie.copy(this.array,e.array),this._dirty=!0,this},cross:function(e,t){return ie.cross(e.array,this.array,t.array),e._dirty=!0,this},dist:function(e){return ie.dist(this.array,e.array)},distance:function(e){return ie.distance(this.array,e.array)},div:function(e){return ie.div(this.array,this.array,e.array),this._dirty=!0,this},divide:function(e){return ie.divide(this.array,this.array,e.array),this._dirty=!0,this},dot:function(e){return ie.dot(this.array,e.array)},len:function(){return ie.len(this.array)},length:function(){return ie.length(this.array)},lerp:function(e,t,n){return ie.lerp(this.array,e.array,t.array,n),this._dirty=!0,this},min:function(e){return ie.min(this.array,this.array,e.array),this._dirty=!0,this},max:function(e){return ie.max(this.array,this.array,e.array),this._dirty=!0,this},mul:function(e){return ie.mul(this.array,this.array,e.array),this._dirty=!0,this},multiply:function(e){return ie.multiply(this.array,this.array,e.array),this._dirty=!0,this},negate:function(){return ie.negate(this.array,this.array),this._dirty=!0,this},normalize:function(){return ie.normalize(this.array,this.array),this._dirty=!0,this},random:function(e){return ie.random(this.array,e),this._dirty=!0,this},scale:function(e){return ie.scale(this.array,this.array,e),this._dirty=!0,this},scaleAndAdd:function(e,t){return ie.scaleAndAdd(this.array,this.array,e.array,t),this._dirty=!0,this},sqrDist:function(e){return ie.sqrDist(this.array,e.array)},squaredDistance:function(e){return ie.squaredDistance(this.array,e.array)},sqrLen:function(){return ie.sqrLen(this.array)},squaredLength:function(){return ie.squaredLength(this.array)},sub:function(e){return ie.sub(this.array,this.array,e.array),this._dirty=!0,this},subtract:function(e){return ie.subtract(this.array,this.array,e.array),this._dirty=!0,this},transformMat2:function(e){return ie.transformMat2(this.array,this.array,e.array),this._dirty=!0,this},transformMat2d:function(e){return ie.transformMat2d(this.array,this.array,e.array),this._dirty=!0,this},transformMat3:function(e){return ie.transformMat3(this.array,this.array,e.array),this._dirty=!0,this},transformMat4:function(e){return ie.transformMat4(this.array,this.array,e.array),this._dirty=!0,this},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}},Object.defineProperty){var oe=ae.prototype;Object.defineProperty(oe,"x",{get:function(){return this.array[0]},set:function(e){this.array[0]=e,this._dirty=!0}}),Object.defineProperty(oe,"y",{get:function(){return this.array[1]},set:function(e){this.array[1]=e,this._dirty=!0}})}ae.add=function(e,t,n){return ie.add(e.array,t.array,n.array),e._dirty=!0,e},ae.set=function(e,t,n){return ie.set(e.array,t,n),e._dirty=!0,e},ae.copy=function(e,t){return ie.copy(e.array,t.array),e._dirty=!0,e},ae.cross=function(e,t,n){return ie.cross(e.array,t.array,n.array),e._dirty=!0,e},ae.dist=function(e,t){return ie.distance(e.array,t.array)},ae.distance=ae.dist,ae.div=function(e,t,n){return ie.divide(e.array,t.array,n.array),e._dirty=!0,e},ae.divide=ae.div,ae.dot=function(e,t){return ie.dot(e.array,t.array)},ae.len=function(e){return ie.length(e.array)},ae.lerp=function(e,t,n,r){return ie.lerp(e.array,t.array,n.array,r),e._dirty=!0,e},ae.min=function(e,t,n){return ie.min(e.array,t.array,n.array),e._dirty=!0,e},ae.max=function(e,t,n){return ie.max(e.array,t.array,n.array),e._dirty=!0,e},ae.mul=function(e,t,n){return ie.multiply(e.array,t.array,n.array),e._dirty=!0,e},ae.multiply=ae.mul,ae.negate=function(e,t){return ie.negate(e.array,t.array),e._dirty=!0,e},ae.normalize=function(e,t){return ie.normalize(e.array,t.array),e._dirty=!0,e},ae.random=function(e,t){return ie.random(e.array,t),e._dirty=!0,e},ae.scale=function(e,t,n){return ie.scale(e.array,t.array,n),e._dirty=!0,e},ae.scaleAndAdd=function(e,t,n,r){return ie.scaleAndAdd(e.array,t.array,n.array,r),e._dirty=!0,e},ae.sqrDist=function(e,t){return ie.sqrDist(e.array,t.array)},ae.squaredDistance=ae.sqrDist,ae.sqrLen=function(e){return ie.sqrLen(e.array)},ae.squaredLength=ae.sqrLen,ae.sub=function(e,t,n){return ie.subtract(e.array,t.array,n.array),e._dirty=!0,e},ae.subtract=ae.sub,ae.transformMat2=function(e,t,n){return ie.transformMat2(e.array,t.array,n.array),e._dirty=!0,e},ae.transformMat2d=function(e,t,n){return ie.transformMat2d(e.array,t.array,n.array),e._dirty=!0,e},ae.transformMat3=function(e,t,n){return ie.transformMat3(e.array,t.array,n.array),e._dirty=!0,e},ae.transformMat4=function(e,t,n){return ie.transformMat4(e.array,t.array,n.array),e._dirty=!0,e};var se=ae,le=1,ue=2,ce=3,he={};function de(e){for(var t=e.split("\n"),n=0,r=t.length;n<r;n++)t[n]=n+1+": "+t[n];return t.join("\n")}function fe(e,t,n){if(!e.getShaderParameter(t,e.COMPILE_STATUS))return[e.getShaderInfoLog(t),de(n)].join("\n")}var pe=new M["a"].Float32Array(16),ge=_.extend({uniformSemantics:{},attributes:{}},(function(){this._locations={},this._textureSlot=0,this._program=null}),{bind:function(e){this._textureSlot=0,e.gl.useProgram(this._program)},hasUniform:function(e){var t=this._locations[e];return null!==t&&void 0!==t},useTextureSlot:function(e,t,n){t&&(e.gl.activeTexture(e.gl.TEXTURE0+n),t.isRenderable()?t.bind(e):t.unbind(e))},currentTextureSlot:function(){return this._textureSlot},resetTextureSlot:function(e){this._textureSlot=e||0},takeCurrentTextureSlot:function(e,t){var n=this._textureSlot;return this.useTextureSlot(e,t,n),this._textureSlot++,n},setUniform:function(e,t,n,r){var i=this._locations,a=i[n];if(null===a||void 0===a)return!1;switch(t){case"m4":if(!(r instanceof Float32Array)){for(var o=0;o<r.length;o++)pe[o]=r[o];r=pe}e.uniformMatrix4fv(a,!1,r);break;case"2i":e.uniform2i(a,r[0],r[1]);break;case"2f":e.uniform2f(a,r[0],r[1]);break;case"3i":e.uniform3i(a,r[0],r[1],r[2]);break;case"3f":e.uniform3f(a,r[0],r[1],r[2]);break;case"4i":e.uniform4i(a,r[0],r[1],r[2],r[3]);break;case"4f":e.uniform4f(a,r[0],r[1],r[2],r[3]);break;case"1i":e.uniform1i(a,r);break;case"1f":e.uniform1f(a,r);break;case"1fv":e.uniform1fv(a,r);break;case"1iv":e.uniform1iv(a,r);break;case"2iv":e.uniform2iv(a,r);break;case"2fv":e.uniform2fv(a,r);break;case"3iv":e.uniform3iv(a,r);break;case"3fv":e.uniform3fv(a,r);break;case"4iv":e.uniform4iv(a,r);break;case"4fv":e.uniform4fv(a,r);break;case"m2":case"m2v":e.uniformMatrix2fv(a,!1,r);break;case"m3":case"m3v":e.uniformMatrix3fv(a,!1,r);break;case"m4v":if(Array.isArray(r)&&Array.isArray(r[0])){var s=new M["a"].Float32Array(16*r.length),l=0;for(o=0;o<r.length;o++)for(var u=r[o],c=0;c<16;c++)s[l++]=u[c];e.uniformMatrix4fv(a,!1,s)}else e.uniformMatrix4fv(a,!1,r);break}return!0},setUniformOfSemantic:function(e,t,n){var r=this.uniformSemantics[t];return!!r&&this.setUniform(e,r.type,r.symbol,n)},enableAttributes:function(e,t,n){var r,i=e.gl,a=this._program,o=this._locations;r=n?n.__enabledAttributeList:he[e.__uid__],r||(r=n?n.__enabledAttributeList=[]:he[e.__uid__]=[]);for(var s=[],l=0;l<t.length;l++){var u=t[l];if(this.attributes[u]){var c=o[u];if(null==c){if(c=i.getAttribLocation(a,u),-1===c){s[l]=-1;continue}o[u]=c}s[l]=c,r[c]?r[c]=ue:r[c]=le}else s[l]=-1}for(l=0;l<r.length;l++)switch(r[l]){case le:i.enableVertexAttribArray(l),r[l]=ce;break;case ue:r[l]=ce;break;case ce:i.disableVertexAttribArray(l),r[l]=0;break}return s},getAttribLocation:function(e,t){var n=this._locations,r=n[t];return null==r&&(r=e.getAttribLocation(this._program,t),n[t]=r),r},buildProgram:function(e,t,n,r){var i=e.createShader(e.VERTEX_SHADER),a=e.createProgram();e.shaderSource(i,n),e.compileShader(i);var o=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(o,r),e.compileShader(o);var s=fe(e,i,n);if(s)return s;if(s=fe(e,o,r),s)return s;if(e.attachShader(a,i),e.attachShader(a,o),t.attributeSemantics["POSITION"])e.bindAttribLocation(a,0,t.attributeSemantics["POSITION"].symbol);else{var l=Object.keys(this.attributes);e.bindAttribLocation(a,0,l[0])}if(e.linkProgram(a),e.deleteShader(i),e.deleteShader(o),this._program=a,this.vertexCode=n,this.fragmentCode=r,!e.getProgramParameter(a,e.LINK_STATUS))return"Could not link program\n"+e.getProgramInfoLog(a);for(var u=0;u<t.uniforms.length;u++){var c=t.uniforms[u];this._locations[c]=e.getUniformLocation(a,c)}}}),me=ge,ve=/for\s*?\(int\s*?_idx_\s*\=\s*([\w-]+)\;\s*_idx_\s*<\s*([\w-]+);\s*_idx_\s*\+\+\s*\)\s*\{\{([\s\S]+?)(?=\}\})\}\}/g;function ye(e,t,n){function r(e,n,r,a){var o="";isNaN(n)&&(n=n in t?t[n]:i[n]),isNaN(r)&&(r=r in t?t[r]:i[r]);for(var s=parseInt(n);s<parseInt(r);s++)o+="{"+a.replace(/float\s*\(\s*_idx_\s*\)/g,s.toFixed(1)).replace(/_idx_/g,s)+"}";return o}var i={};for(var a in n)i[a+"_COUNT"]=n[a];return e.replace(ve,r)}function be(e,t,n){var r=[];if(t)for(var i in t){var a=t[i];a>0&&r.push("#define "+i.toUpperCase()+"_COUNT "+a)}if(n)for(var o=0;o<n.length;o++){var s=n[o];r.push("#define "+s.toUpperCase()+"_ENABLED")}for(var s in e){var l=e[s];null===l?r.push("#define "+s):r.push("#define "+s+" "+l.toString())}return r.join("\n")}function _e(e){for(var t=[],n=0;n<e.length;n++)t.push("#extension GL_"+e[n]+" : enable");return t.join("\n")}function xe(e){return["precision",e,"float"].join(" ")+";\n"+["precision",e,"int"].join(" ")+";\n"+["precision",e,"sampler2D"].join(" ")+";\n"}function we(e){this._renderer=e,this._cache={}}we.prototype.getProgram=function(e,t,n){var r=this._cache,i=e.isSkinnedMesh&&e.isSkinnedMesh(),a=e.isInstancedMesh&&e.isInstancedMesh(),o="s"+t.shader.shaderID+"m"+t.getProgramKey();n&&(o+="se"+n.getProgramKey(e.lightGroup)),i&&(o+=",sk"+e.joints.length),a&&(o+=",is");var s=r[o];if(s)return s;var l=n?n.getLightsNumbers(e.lightGroup):{},u=this._renderer,c=u.gl,h=t.getEnabledTextures(),d="";if(i){var f={SKINNING:null,JOINT_COUNT:e.joints.length};e.joints.length>u.getMaxJointNumber()&&(f.USE_SKIN_MATRICES_TEXTURE=null),d+="\n"+be(f)+"\n"}a&&(d+="\n#define INSTANCING\n");var p=d+be(t.vertexDefines,l,h),g=d+be(t.fragmentDefines,l,h),m=p+"\n"+t.shader.vertex,v=["OES_standard_derivatives","EXT_shader_texture_lod"].filter((function(e){return null!=u.getGLExtension(e)}));v.indexOf("EXT_shader_texture_lod")>=0&&(g+="\n#define SUPPORT_TEXTURE_LOD"),v.indexOf("OES_standard_derivatives")>=0&&(g+="\n#define SUPPORT_STANDARD_DERIVATIVES");var y=_e(v)+"\n"+xe(t.precision)+"\n"+g+"\n"+t.shader.fragment,b=ye(m,t.vertexDefines,l),_=ye(y,t.fragmentDefines,l);s=new me;s.uniformSemantics=t.shader.uniformSemantics,s.attributes=t.shader.attributes;var x=s.buildProgram(c,t.shader,b,_);return s.__error=x,r[o]=s,s};var Se=we,Te=/uniform\s+(bool|float|int|vec2|vec3|vec4|ivec2|ivec3|ivec4|mat2|mat3|mat4|sampler2D|samplerCube)\s+([\s\S]*?);/g,Oe=/attribute\s+(float|int|vec2|vec3|vec4)\s+([\s\S]*?);/g,Me=/#define\s+(\w+)?(\s+[\d-.]+)?\s*;?\s*\n/g,Ee={bool:"1i",int:"1i",sampler2D:"t",samplerCube:"t",float:"1f",vec2:"2f",vec3:"3f",vec4:"4f",ivec2:"2i",ivec3:"3i",ivec4:"4i",mat2:"m2",mat3:"m3",mat4:"m4"};function Ae(e){for(var t=[],n=0;n<e;n++)t[n]=0;return t}var Ce={bool:function(){return!0},int:function(){return 0},float:function(){return 0},sampler2D:function(){return null},samplerCube:function(){return null},vec2:function(){return Ae(2)},vec3:function(){return Ae(3)},vec4:function(){return Ae(4)},ivec2:function(){return Ae(2)},ivec3:function(){return Ae(3)},ivec4:function(){return Ae(4)},mat2:function(){return Ae(4)},mat3:function(){return Ae(9)},mat4:function(){return Ae(16)},array:function(){return[]}},Ie=["POSITION","NORMAL","BINORMAL","TANGENT","TEXCOORD","TEXCOORD_0","TEXCOORD_1","COLOR","JOINT","WEIGHT"],De=["SKIN_MATRIX","VIEWPORT_SIZE","VIEWPORT","DEVICEPIXELRATIO","WINDOW_SIZE","NEAR","FAR","TIME"],Le=["WORLD","VIEW","PROJECTION","WORLDVIEW","VIEWPROJECTION","WORLDVIEWPROJECTION","WORLDINVERSE","VIEWINVERSE","PROJECTIONINVERSE","WORLDVIEWINVERSE","VIEWPROJECTIONINVERSE","WORLDVIEWPROJECTIONINVERSE","WORLDTRANSPOSE","VIEWTRANSPOSE","PROJECTIONTRANSPOSE","WORLDVIEWTRANSPOSE","VIEWPROJECTIONTRANSPOSE","WORLDVIEWPROJECTIONTRANSPOSE","WORLDINVERSETRANSPOSE","VIEWINVERSETRANSPOSE","PROJECTIONINVERSETRANSPOSE","WORLDVIEWINVERSETRANSPOSE","VIEWPROJECTIONINVERSETRANSPOSE","WORLDVIEWPROJECTIONINVERSETRANSPOSE"],Pe={vec4:4,vec3:3,vec2:2,float:1},ke={},Re={};function Ne(e,t){var n="vertex:"+e+"fragment:"+t;if(ke[n])return ke[n];var r=y.genGUID();return ke[n]=r,Re[r]={vertex:e,fragment:t},r}function je(e){return e.replace(/[ \t]*\/\/.*\n/g,"").replace(/[ \t]*\/\*[\s\S]*?\*\//g,"")}function Fe(){console.error("Wrong uniform/attributes syntax")}function ze(e,t){for(var n=/[,=\(\):]/,r=t.replace(/:\s*\[\s*(.*)\s*\]/g,"="+e+"($1)").replace(/\s+/g,"").split(/(?=[,=\(\):])/g),i=[],a=0;a<r.length;a++)r[a].match(n)?i.push(r[a].charAt(0),r[a].slice(1)):i.push(r[a]);r=i;var o,s=0,l=1,u=2,c=3,h=4,d=5,f=s,p={},g=null;function m(e){e||Fe();var t=e.match(/\[(.*?)\]/);o=e.replace(/\[(.*?)\]/,""),p[o]={},t&&(p[o].isArray=!0,p[o].arraySize=t[1])}m(r[0]);for(a=1;a<r.length;a++){var v=r[a];if(v)if("="!==v)if(":"!==v)if(","!==v)if(")"!==v)if("("!==v)if(v.indexOf("vec")>=0){if(f!==l&&f!==h){Fe();break}f=u,g=[]}else if(f!==l)if(f!==h)m(v),f=s;else{var y=v;Ie.indexOf(y)>=0||De.indexOf(y)>=0||Le.indexOf(y)>=0?p[o].semantic=y:"ignore"===y||"unconfigurable"===y?p[o].ignore=!0:p[o].value="bool"===e?"true"===y:parseFloat(y)}else p[o].value="bool"===e?"true"===v:parseFloat(v),g=null;else{if(f!==u){Fe();break}if(!(g instanceof Array)){Fe();break}g.push(+r[++a])}else p[o].value=new M["a"].Float32Array(g),g=null,f=d;else if(f===u){if(!(g instanceof Array)){Fe();break}g.push(+r[++a])}else f=d;else f=h;else{if(f!==s&&f!==c){Fe();break}f=l}}return p}function Be(e,t){"object"===typeof e&&(t=e.fragment,e=e.vertex),e=je(e),t=je(t),this._shaderID=Ne(e,t),this._vertexCode=Be.parseImport(e),this._fragmentCode=Be.parseImport(t),this.attributeSemantics={},this.matrixSemantics={},this.uniformSemantics={},this.matrixSemanticKeys=[],this.uniformTemplates={},this.attributes={},this.textures={},this.vertexDefines={},this.fragmentDefines={},this._parseAttributes(),this._parseUniforms(),this._parseDefines()}Be.prototype={constructor:Be,createUniforms:function(){var e={};for(var t in this.uniformTemplates){var n=this.uniformTemplates[t];e[t]={type:n.type,value:n.value()}}return e},_parseImport:function(){this._vertexCode=Be.parseImport(this.vertex),this._fragmentCode=Be.parseImport(this.fragment)},_addSemanticUniform:function(e,t,n){if(Ie.indexOf(n)>=0)this.attributeSemantics[n]={symbol:e,type:t};else if(Le.indexOf(n)>=0){var r=!1,i=n;n.match(/TRANSPOSE$/)&&(r=!0,i=n.slice(0,-9)),this.matrixSemantics[n]={symbol:e,type:t,isTranspose:r,semanticNoTranspose:i}}else De.indexOf(n)>=0&&(this.uniformSemantics[n]={symbol:e,type:t})},_addMaterialUniform:function(e,t,n,r,i,a){a[e]={type:n,value:i?Ce["array"]:r||Ce[t],semantic:null}},_parseUniforms:function(){var e={},t=this,n="vertex";function r(e){return null!=e?function(){return e}:null}function i(i,a,o){var s=ze(a,o),l=[];for(var u in s){var c=s[u],h=c.semantic,d=u,f=Ee[a],p=r(s[u].value);s[u].isArray&&(d+="["+s[u].arraySize+"]",f+="v"),l.push(d),t._uniformList.push(u),c.ignore||("sampler2D"!==a&&"samplerCube"!==a||(t.textures[u]={shaderType:n,type:a}),h?t._addSemanticUniform(u,f,h):t._addMaterialUniform(u,a,f,p,s[u].isArray,e))}return l.length>0?"uniform "+a+" "+l.join(",")+";\n":""}this._uniformList=[],this._vertexCode=this._vertexCode.replace(Te,i),n="fragment",this._fragmentCode=this._fragmentCode.replace(Te,i),t.matrixSemanticKeys=Object.keys(this.matrixSemantics),this.uniformTemplates=e},_parseAttributes:function(){var e={},t=this;function n(n,r,i){var a=ze(r,i),o=Pe[r]||1,s=[];for(var l in a){var u=a[l].semantic;if(e[l]={type:"float",size:o,semantic:u||null},u){if(Ie.indexOf(u)<0)throw new Error('Unkown semantic "'+u+'"');t.attributeSemantics[u]={symbol:l,type:r}}s.push(l)}return"attribute "+r+" "+s.join(",")+";\n"}this._vertexCode=this._vertexCode.replace(Oe,n),this.attributes=e},_parseDefines:function(){var e=this,t="vertex";function n(n,r,i){var a="vertex"===t?e.vertexDefines:e.fragmentDefines;return a[r]||(a[r]="false"!==i&&("true"===i||(i?isNaN(parseFloat(i))?i.trim():parseFloat(i):null))),""}this._vertexCode=this._vertexCode.replace(Me,n),t="fragment",this._fragmentCode=this._fragmentCode.replace(Me,n)},clone:function(){var e=Re[this._shaderID],t=new Be(e.vertex,e.fragment);return t}},Object.defineProperty&&(Object.defineProperty(Be.prototype,"shaderID",{get:function(){return this._shaderID}}),Object.defineProperty(Be.prototype,"vertex",{get:function(){return this._vertexCode}}),Object.defineProperty(Be.prototype,"fragment",{get:function(){return this._fragmentCode}}),Object.defineProperty(Be.prototype,"uniforms",{get:function(){return this._uniformList}}));var Ve=/(@import)\s*([0-9a-zA-Z_\-\.]*)/g;Be.parseImport=function(e){return e=e.replace(Ve,(function(e,t,n){e=Be.source(n);return e?Be.parseImport(e):(console.error('Shader chunk "'+n+'" not existed in library'),"")})),e};var Ge=/(@export)\s*([0-9a-zA-Z_\-\.]*)\s*\n([\s\S]*?)@end/g;Be["import"]=function(e){e.replace(Ge,(function(e,t,n,r){r=r.replace(/(^[\s\t\xa0\u3000]+)|([\u3000\xa0\s\t]+\x24)/g,"");if(r){var i,a=n.split("."),o=Be.codes,s=0;while(s<a.length-1)i=a[s++],o[i]||(o[i]={}),o=o[i];i=a[s],o[i]=r}return r}))},Be.codes={},Be.source=function(e){var t=e.split("."),n=Be.codes,r=0;while(n&&r<t.length){var i=t[r++];n=n[i]}return"string"!==typeof n?(console.error('Shader "'+e+'" not existed in library'),""):n};var He=Be,Ue="@export clay.prez.vertex\nuniform mat4 WVP : WORLDVIEWPROJECTION;\nattribute vec3 pos : POSITION;\nattribute vec2 uv : TEXCOORD_0;\nuniform vec2 uvRepeat : [1.0, 1.0];\nuniform vec2 uvOffset : [0.0, 0.0];\n@import clay.chunk.skinning_header\n@import clay.chunk.instancing_header\nvarying vec2 v_Texcoord;\nvoid main()\n{\n vec4 P = vec4(pos, 1.0);\n#ifdef SKINNING\n @import clay.chunk.skin_matrix\n P = skinMatrixWS * P;\n#endif\n#ifdef INSTANCING\n @import clay.chunk.instancing_matrix\n P = instanceMat * P;\n#endif\n gl_Position = WVP * P;\n v_Texcoord = uv * uvRepeat + uvOffset;\n}\n@end\n@export clay.prez.fragment\nuniform sampler2D alphaMap;\nuniform float alphaCutoff: 0.0;\nvarying vec2 v_Texcoord;\nvoid main()\n{\n if (alphaCutoff > 0.0) {\n if (texture2D(alphaMap, v_Texcoord).a <= alphaCutoff) {\n discard;\n }\n }\n gl_FragColor = vec4(0.0,0.0,0.0,1.0);\n}\n@end",We={create:function(){var e=new te(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},clone:function(e){var t=new te(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},copy:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},identity:function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},transpose:function(e,t){if(e===t){var n=t[1],r=t[2],i=t[3],a=t[6],o=t[7],s=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=n,e[6]=t[9],e[7]=t[13],e[8]=r,e[9]=a,e[11]=t[14],e[12]=i,e[13]=o,e[14]=s}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e},invert:function(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],h=t[9],d=t[10],f=t[11],p=t[12],g=t[13],m=t[14],v=t[15],y=n*s-r*o,b=n*l-i*o,_=n*u-a*o,x=r*l-i*s,w=r*u-a*s,S=i*u-a*l,T=c*g-h*p,O=c*m-d*p,M=c*v-f*p,E=h*m-d*g,A=h*v-f*g,C=d*v-f*m,I=y*C-b*A+_*E+x*M-w*O+S*T;return I?(I=1/I,e[0]=(s*C-l*A+u*E)*I,e[1]=(i*A-r*C-a*E)*I,e[2]=(g*S-m*w+v*x)*I,e[3]=(d*w-h*S-f*x)*I,e[4]=(l*M-o*C-u*O)*I,e[5]=(n*C-i*M+a*O)*I,e[6]=(m*_-p*S-v*b)*I,e[7]=(c*S-d*_+f*b)*I,e[8]=(o*A-s*M+u*T)*I,e[9]=(r*M-n*A-a*T)*I,e[10]=(p*w-g*_+v*y)*I,e[11]=(h*_-c*w-f*y)*I,e[12]=(s*O-o*E-l*T)*I,e[13]=(n*E-r*O+i*T)*I,e[14]=(g*b-p*x-m*y)*I,e[15]=(c*x-h*b+d*y)*I,e):null},adjoint:function(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],h=t[9],d=t[10],f=t[11],p=t[12],g=t[13],m=t[14],v=t[15];return e[0]=s*(d*v-f*m)-h*(l*v-u*m)+g*(l*f-u*d),e[1]=-(r*(d*v-f*m)-h*(i*v-a*m)+g*(i*f-a*d)),e[2]=r*(l*v-u*m)-s*(i*v-a*m)+g*(i*u-a*l),e[3]=-(r*(l*f-u*d)-s*(i*f-a*d)+h*(i*u-a*l)),e[4]=-(o*(d*v-f*m)-c*(l*v-u*m)+p*(l*f-u*d)),e[5]=n*(d*v-f*m)-c*(i*v-a*m)+p*(i*f-a*d),e[6]=-(n*(l*v-u*m)-o*(i*v-a*m)+p*(i*u-a*l)),e[7]=n*(l*f-u*d)-o*(i*f-a*d)+c*(i*u-a*l),e[8]=o*(h*v-f*g)-c*(s*v-u*g)+p*(s*f-u*h),e[9]=-(n*(h*v-f*g)-c*(r*v-a*g)+p*(r*f-a*h)),e[10]=n*(s*v-u*g)-o*(r*v-a*g)+p*(r*u-a*s),e[11]=-(n*(s*f-u*h)-o*(r*f-a*h)+c*(r*u-a*s)),e[12]=-(o*(h*m-d*g)-c*(s*m-l*g)+p*(s*d-l*h)),e[13]=n*(h*m-d*g)-c*(r*m-i*g)+p*(r*d-i*h),e[14]=-(n*(s*m-l*g)-o*(r*m-i*g)+p*(r*l-i*s)),e[15]=n*(s*d-l*h)-o*(r*d-i*h)+c*(r*l-i*s),e},determinant:function(e){var t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],l=e[7],u=e[8],c=e[9],h=e[10],d=e[11],f=e[12],p=e[13],g=e[14],m=e[15],v=t*o-n*a,y=t*s-r*a,b=t*l-i*a,_=n*s-r*o,x=n*l-i*o,w=r*l-i*s,S=u*p-c*f,T=u*g-h*f,O=u*m-d*f,M=c*g-h*p,E=c*m-d*p,A=h*m-d*g;return v*A-y*E+b*M+_*O-x*T+w*S},multiply:function(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],h=t[8],d=t[9],f=t[10],p=t[11],g=t[12],m=t[13],v=t[14],y=t[15],b=n[0],_=n[1],x=n[2],w=n[3];return e[0]=b*r+_*s+x*h+w*g,e[1]=b*i+_*l+x*d+w*m,e[2]=b*a+_*u+x*f+w*v,e[3]=b*o+_*c+x*p+w*y,b=n[4],_=n[5],x=n[6],w=n[7],e[4]=b*r+_*s+x*h+w*g,e[5]=b*i+_*l+x*d+w*m,e[6]=b*a+_*u+x*f+w*v,e[7]=b*o+_*c+x*p+w*y,b=n[8],_=n[9],x=n[10],w=n[11],e[8]=b*r+_*s+x*h+w*g,e[9]=b*i+_*l+x*d+w*m,e[10]=b*a+_*u+x*f+w*v,e[11]=b*o+_*c+x*p+w*y,b=n[12],_=n[13],x=n[14],w=n[15],e[12]=b*r+_*s+x*h+w*g,e[13]=b*i+_*l+x*d+w*m,e[14]=b*a+_*u+x*f+w*v,e[15]=b*o+_*c+x*p+w*y,e},multiplyAffine:function(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[4],s=t[5],l=t[6],u=t[8],c=t[9],h=t[10],d=t[12],f=t[13],p=t[14],g=n[0],m=n[1],v=n[2];return e[0]=g*r+m*o+v*u,e[1]=g*i+m*s+v*c,e[2]=g*a+m*l+v*h,g=n[4],m=n[5],v=n[6],e[4]=g*r+m*o+v*u,e[5]=g*i+m*s+v*c,e[6]=g*a+m*l+v*h,g=n[8],m=n[9],v=n[10],e[8]=g*r+m*o+v*u,e[9]=g*i+m*s+v*c,e[10]=g*a+m*l+v*h,g=n[12],m=n[13],v=n[14],e[12]=g*r+m*o+v*u+d,e[13]=g*i+m*s+v*c+f,e[14]=g*a+m*l+v*h+p,e}};We.mul=We.multiply,We.mulAffine=We.multiplyAffine,We.translate=function(e,t,n){var r,i,a,o,s,l,u,c,h,d,f,p,g=n[0],m=n[1],v=n[2];return t===e?(e[12]=t[0]*g+t[4]*m+t[8]*v+t[12],e[13]=t[1]*g+t[5]*m+t[9]*v+t[13],e[14]=t[2]*g+t[6]*m+t[10]*v+t[14],e[15]=t[3]*g+t[7]*m+t[11]*v+t[15]):(r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],h=t[8],d=t[9],f=t[10],p=t[11],e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e[6]=u,e[7]=c,e[8]=h,e[9]=d,e[10]=f,e[11]=p,e[12]=r*g+s*m+h*v+t[12],e[13]=i*g+l*m+d*v+t[13],e[14]=a*g+u*m+f*v+t[14],e[15]=o*g+c*m+p*v+t[15]),e},We.scale=function(e,t,n){var r=n[0],i=n[1],a=n[2];return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},We.rotate=function(e,t,n,r){var i,a,o,s,l,u,c,h,d,f,p,g,m,v,y,b,_,x,w,S,T,O,M,E,A=r[0],C=r[1],I=r[2],D=Math.sqrt(A*A+C*C+I*I);return Math.abs(D)<ee?null:(D=1/D,A*=D,C*=D,I*=D,i=Math.sin(n),a=Math.cos(n),o=1-a,s=t[0],l=t[1],u=t[2],c=t[3],h=t[4],d=t[5],f=t[6],p=t[7],g=t[8],m=t[9],v=t[10],y=t[11],b=A*A*o+a,_=C*A*o+I*i,x=I*A*o-C*i,w=A*C*o-I*i,S=C*C*o+a,T=I*C*o+A*i,O=A*I*o+C*i,M=C*I*o-A*i,E=I*I*o+a,e[0]=s*b+h*_+g*x,e[1]=l*b+d*_+m*x,e[2]=u*b+f*_+v*x,e[3]=c*b+p*_+y*x,e[4]=s*w+h*S+g*T,e[5]=l*w+d*S+m*T,e[6]=u*w+f*S+v*T,e[7]=c*w+p*S+y*T,e[8]=s*O+h*M+g*E,e[9]=l*O+d*M+m*E,e[10]=u*O+f*M+v*E,e[11]=c*O+p*M+y*E,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)},We.rotateX=function(e,t,n){var r=Math.sin(n),i=Math.cos(n),a=t[4],o=t[5],s=t[6],l=t[7],u=t[8],c=t[9],h=t[10],d=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*i+u*r,e[5]=o*i+c*r,e[6]=s*i+h*r,e[7]=l*i+d*r,e[8]=u*i-a*r,e[9]=c*i-o*r,e[10]=h*i-s*r,e[11]=d*i-l*r,e},We.rotateY=function(e,t,n){var r=Math.sin(n),i=Math.cos(n),a=t[0],o=t[1],s=t[2],l=t[3],u=t[8],c=t[9],h=t[10],d=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i-u*r,e[1]=o*i-c*r,e[2]=s*i-h*r,e[3]=l*i-d*r,e[8]=a*r+u*i,e[9]=o*r+c*i,e[10]=s*r+h*i,e[11]=l*r+d*i,e},We.rotateZ=function(e,t,n){var r=Math.sin(n),i=Math.cos(n),a=t[0],o=t[1],s=t[2],l=t[3],u=t[4],c=t[5],h=t[6],d=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i+u*r,e[1]=o*i+c*r,e[2]=s*i+h*r,e[3]=l*i+d*r,e[4]=u*i-a*r,e[5]=c*i-o*r,e[6]=h*i-s*r,e[7]=d*i-l*r,e},We.fromRotationTranslation=function(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3],s=r+r,l=i+i,u=a+a,c=r*s,h=r*l,d=r*u,f=i*l,p=i*u,g=a*u,m=o*s,v=o*l,y=o*u;return e[0]=1-(f+g),e[1]=h+y,e[2]=d-v,e[3]=0,e[4]=h-y,e[5]=1-(c+g),e[6]=p+m,e[7]=0,e[8]=d+v,e[9]=p-m,e[10]=1-(c+f),e[11]=0,e[12]=n[0],e[13]=n[1],e[14]=n[2],e[15]=1,e},We.fromQuat=function(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=n+n,s=r+r,l=i+i,u=n*o,c=r*o,h=r*s,d=i*o,f=i*s,p=i*l,g=a*o,m=a*s,v=a*l;return e[0]=1-h-p,e[1]=c+v,e[2]=d-m,e[3]=0,e[4]=c-v,e[5]=1-u-p,e[6]=f+g,e[7]=0,e[8]=d+m,e[9]=f-g,e[10]=1-u-h,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},We.frustum=function(e,t,n,r,i,a,o){var s=1/(n-t),l=1/(i-r),u=1/(a-o);return e[0]=2*a*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*a*l,e[6]=0,e[7]=0,e[8]=(n+t)*s,e[9]=(i+r)*l,e[10]=(o+a)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*a*2*u,e[15]=0,e},We.perspective=function(e,t,n,r,i){var a=1/Math.tan(t/2),o=1/(r-i);return e[0]=a/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(i+r)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*i*r*o,e[15]=0,e},We.ortho=function(e,t,n,r,i,a,o){var s=1/(t-n),l=1/(r-i),u=1/(a-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+n)*s,e[13]=(i+r)*l,e[14]=(o+a)*u,e[15]=1,e},We.lookAt=function(e,t,n,r){var i,a,o,s,l,u,c,h,d,f,p=t[0],g=t[1],m=t[2],v=r[0],y=r[1],b=r[2],_=n[0],x=n[1],w=n[2];return Math.abs(p-_)<ee&&Math.abs(g-x)<ee&&Math.abs(m-w)<ee?We.identity(e):(c=p-_,h=g-x,d=m-w,f=1/Math.sqrt(c*c+h*h+d*d),c*=f,h*=f,d*=f,i=y*d-b*h,a=b*c-v*d,o=v*h-y*c,f=Math.sqrt(i*i+a*a+o*o),f?(f=1/f,i*=f,a*=f,o*=f):(i=0,a=0,o=0),s=h*o-d*a,l=d*i-c*o,u=c*a-h*i,f=Math.sqrt(s*s+l*l+u*u),f?(f=1/f,s*=f,l*=f,u*=f):(s=0,l=0,u=0),e[0]=i,e[1]=s,e[2]=c,e[3]=0,e[4]=a,e[5]=l,e[6]=h,e[7]=0,e[8]=o,e[9]=u,e[10]=d,e[11]=0,e[12]=-(i*p+a*g+o*m),e[13]=-(s*p+l*g+u*m),e[14]=-(c*p+h*g+d*m),e[15]=1,e)},We.frob=function(e){return Math.sqrt(Math.pow(e[0],2)+Math.pow(e[1],2)+Math.pow(e[2],2)+Math.pow(e[3],2)+Math.pow(e[4],2)+Math.pow(e[5],2)+Math.pow(e[6],2)+Math.pow(e[7],2)+Math.pow(e[8],2)+Math.pow(e[9],2)+Math.pow(e[10],2)+Math.pow(e[11],2)+Math.pow(e[12],2)+Math.pow(e[13],2)+Math.pow(e[14],2)+Math.pow(e[15],2))};var Xe=We,Ye={create:function(){var e=new te(3);return e[0]=0,e[1]=0,e[2]=0,e},clone:function(e){var t=new te(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},fromValues:function(e,t,n){var r=new te(3);return r[0]=e,r[1]=t,r[2]=n,r},copy:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},set:function(e,t,n,r){return e[0]=t,e[1]=n,e[2]=r,e},add:function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e},subtract:function(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}};Ye.sub=Ye.subtract,Ye.multiply=function(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e},Ye.mul=Ye.multiply,Ye.divide=function(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e},Ye.div=Ye.divide,Ye.min=function(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e},Ye.max=function(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e},Ye.scale=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e},Ye.scaleAndAdd=function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e},Ye.distance=function(e,t){var n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return Math.sqrt(n*n+r*r+i*i)},Ye.dist=Ye.distance,Ye.squaredDistance=function(e,t){var n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return n*n+r*r+i*i},Ye.sqrDist=Ye.squaredDistance,Ye.length=function(e){var t=e[0],n=e[1],r=e[2];return Math.sqrt(t*t+n*n+r*r)},Ye.len=Ye.length,Ye.squaredLength=function(e){var t=e[0],n=e[1],r=e[2];return t*t+n*n+r*r},Ye.sqrLen=Ye.squaredLength,Ye.negate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e},Ye.inverse=function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e},Ye.normalize=function(e,t){var n=t[0],r=t[1],i=t[2],a=n*n+r*r+i*i;return a>0&&(a=1/Math.sqrt(a),e[0]=t[0]*a,e[1]=t[1]*a,e[2]=t[2]*a),e},Ye.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]},Ye.cross=function(e,t,n){var r=t[0],i=t[1],a=t[2],o=n[0],s=n[1],l=n[2];return e[0]=i*l-a*s,e[1]=a*o-r*l,e[2]=r*s-i*o,e},Ye.lerp=function(e,t,n,r){var i=t[0],a=t[1],o=t[2];return e[0]=i+r*(n[0]-i),e[1]=a+r*(n[1]-a),e[2]=o+r*(n[2]-o),e},Ye.random=function(e,t){t=t||1;var n=2*ne()*Math.PI,r=2*ne()-1,i=Math.sqrt(1-r*r)*t;return e[0]=Math.cos(n)*i,e[1]=Math.sin(n)*i,e[2]=r*t,e},Ye.transformMat4=function(e,t,n){var r=t[0],i=t[1],a=t[2],o=n[3]*r+n[7]*i+n[11]*a+n[15];return o=o||1,e[0]=(n[0]*r+n[4]*i+n[8]*a+n[12])/o,e[1]=(n[1]*r+n[5]*i+n[9]*a+n[13])/o,e[2]=(n[2]*r+n[6]*i+n[10]*a+n[14])/o,e},Ye.transformMat3=function(e,t,n){var r=t[0],i=t[1],a=t[2];return e[0]=r*n[0]+i*n[3]+a*n[6],e[1]=r*n[1]+i*n[4]+a*n[7],e[2]=r*n[2]+i*n[5]+a*n[8],e},Ye.transformQuat=function(e,t,n){var r=t[0],i=t[1],a=t[2],o=n[0],s=n[1],l=n[2],u=n[3],c=u*r+s*a-l*i,h=u*i+l*r-o*a,d=u*a+o*i-s*r,f=-o*r-s*i-l*a;return e[0]=c*u+f*-o+h*-l-d*-s,e[1]=h*u+f*-s+d*-o-c*-l,e[2]=d*u+f*-l+c*-s-h*-o,e},Ye.rotateX=function(e,t,n,r){var i=[],a=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],a[0]=i[0],a[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),a[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),e[0]=a[0]+n[0],e[1]=a[1]+n[1],e[2]=a[2]+n[2],e},Ye.rotateY=function(e,t,n,r){var i=[],a=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],a[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),a[1]=i[1],a[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),e[0]=a[0]+n[0],e[1]=a[1]+n[1],e[2]=a[2]+n[2],e},Ye.rotateZ=function(e,t,n,r){var i=[],a=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],a[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),a[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),a[2]=i[2],e[0]=a[0]+n[0],e[1]=a[1]+n[1],e[2]=a[2]+n[2],e},Ye.forEach=function(){var e=Ye.create();return function(t,n,r,i,a,o){var s,l;for(n||(n=3),r||(r=0),l=i?Math.min(i*n+r,t.length):t.length,s=r;s<l;s+=n)e[0]=t[s],e[1]=t[s+1],e[2]=t[s+2],a(e,e,o),t[s]=e[0],t[s+1]=e[1],t[s+2]=e[2];return t}}(),Ye.angle=function(e,t){var n=Ye.fromValues(e[0],e[1],e[2]),r=Ye.fromValues(t[0],t[1],t[2]);Ye.normalize(n,n),Ye.normalize(r,r);var i=Ye.dot(n,r);return i>1?0:Math.acos(i)};var Ke=Ye;He["import"](Ue);var qe=Xe.create,Ze={};function $e(e){return e.material}function Qe(e,t,n){return t.uniforms[n].value}function Je(e,t,n,r){return n!==r}function et(e){return!0}function tt(){}var nt={float:O.FLOAT,byte:O.BYTE,ubyte:O.UNSIGNED_BYTE,short:O.SHORT,ushort:O.UNSIGNED_SHORT};function rt(e,t,n){this.availableAttributes=e,this.availableAttributeSymbols=t,this.indicesBuffer=n,this.vao=null}function it(e){var t,n;this.bind=function(e){t||(t=M["a"].createCanvas(),t.width=t.height=1,t.getContext("2d"));var r=e.gl,i=!n;i&&(n=r.createTexture()),r.bindTexture(r.TEXTURE_2D,n),i&&r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,t)},this.unbind=function(e){e.gl.bindTexture(e.gl.TEXTURE_2D,null)},this.isRenderable=function(){return!0}}var at=_.extend((function(){return{canvas:null,_width:100,_height:100,devicePixelRatio:"undefined"!==typeof window&&window.devicePixelRatio||1,clearColor:[0,0,0,0],clearBit:17664,alpha:!0,depth:!0,stencil:!1,antialias:!0,premultipliedAlpha:!0,preserveDrawingBuffer:!1,throwError:!0,gl:null,viewport:{},maxJointNumber:20,__currentFrameBuffer:null,_viewportStack:[],_clearStack:[],_sceneRendering:null}}),(function(){this.canvas||(this.canvas=M["a"].createCanvas());var e=this.canvas;try{var t={alpha:this.alpha,depth:this.depth,stencil:this.stencil,antialias:this.antialias,premultipliedAlpha:this.premultipliedAlpha,preserveDrawingBuffer:this.preserveDrawingBuffer};if(this.gl=e.getContext("webgl",t)||e.getContext("experimental-webgl",t),!this.gl)throw new Error;this._glinfo=new T(this.gl),this.gl.targetRenderer&&console.error("Already created a renderer"),this.gl.targetRenderer=this,this.resize()}catch(n){throw"Error creating WebGL Context "+n}this._programMgr=new Se(this),this._placeholderTexture=new it(this)}),{resize:function(e,t){var n=this.canvas,r=this.devicePixelRatio;null!=e?(n.style&&(n.style.width=e+"px",n.style.height=t+"px"),n.width=e*r,n.height=t*r,this._width=e,this._height=t):(this._width=n.width/r,this._height=n.height/r),this.setViewport(0,0,this._width,this._height)},getWidth:function(){return this._width},getHeight:function(){return this._height},getViewportAspect:function(){var e=this.viewport;return e.width/e.height},setDevicePixelRatio:function(e){this.devicePixelRatio=e,this.resize(this._width,this._height)},getDevicePixelRatio:function(){return this.devicePixelRatio},getGLExtension:function(e){return this._glinfo.getExtension(e)},getGLParameter:function(e){return this._glinfo.getParameter(e)},setViewport:function(e,t,n,r,i){if("object"===typeof e){var a=e;e=a.x,t=a.y,n=a.width,r=a.height,i=a.devicePixelRatio}i=i||this.devicePixelRatio,this.gl.viewport(e*i,t*i,n*i,r*i),this.viewport={x:e,y:t,width:n,height:r,devicePixelRatio:i}},saveViewport:function(){this._viewportStack.push(this.viewport)},restoreViewport:function(){this._viewportStack.length>0&&this.setViewport(this._viewportStack.pop())},saveClear:function(){this._clearStack.push({clearBit:this.clearBit,clearColor:this.clearColor})},restoreClear:function(){if(this._clearStack.length>0){var e=this._clearStack.pop();this.clearColor=e.clearColor,this.clearBit=e.clearBit}},bindSceneRendering:function(e){this._sceneRendering=e},render:function(e,t,n,r){var i=this.gl,a=this.clearColor;if(this.clearBit){i.colorMask(!0,!0,!0,!0),i.depthMask(!0);var o=this.viewport,s=!1,l=o.devicePixelRatio;(o.width!==this._width||o.height!==this._height||l&&l!==this.devicePixelRatio||o.x||o.y)&&(s=!0,i.enable(i.SCISSOR_TEST),i.scissor(o.x*l,o.y*l,o.width*l,o.height*l)),i.clearColor(a[0],a[1],a[2],a[3]),i.clear(this.clearBit),s&&i.disable(i.SCISSOR_TEST)}if(n||e.update(!1),e.updateLights(),t=t||e.getMainCamera(),t){t.update();var u=e.updateRenderList(t,!0);this._sceneRendering=e;var c=u.opaque,h=u.transparent,d=e.material;e.trigger("beforerender",this,e,t,u),r?(this.renderPreZ(c,e,t),i.depthFunc(i.LEQUAL)):i.depthFunc(i.LESS);for(var f=qe(),p=Ke.create(),g=0;g<h.length;g++){var m=h[g];Xe.multiplyAffine(f,t.viewMatrix.array,m.worldTransform.array),Ke.transformMat4(p,m.position.array,f),m.__depth=p[2]}this.renderPass(c,t,{getMaterial:function(e){return d||e.material},sortCompare:this.opaqueSortCompare}),this.renderPass(h,t,{getMaterial:function(e){return d||e.material},sortCompare:this.transparentSortCompare}),e.trigger("afterrender",this,e,t,u),this._sceneRendering=null}else console.error("Can't find camera in the scene.")},getProgram:function(e,t,n){return t=t||e.material,this._programMgr.getProgram(e,t,n)},validateProgram:function(e){if(e.__error){var t=e.__error;if(Ze[e.__uid__])return;if(Ze[e.__uid__]=!0,this.throwError)throw new Error(t);this.trigger("error",t)}},updatePrograms:function(e,t,n){var r=n&&n.getMaterial||$e;t=t||null;for(var i=0;i<e.length;i++){var a=e[i],o=r.call(this,a);if(i>0){var s=e[i-1],l=s.joints?s.joints.length:0,u=a.joints?a.joints.length:0;if(u===l&&a.material===s.material&&a.lightGroup===s.lightGroup){a.__program=s.__program;continue}}var c=this._programMgr.getProgram(a,o,t);this.validateProgram(c),a.__program=c}},renderPass:function(e,t,n){this.trigger("beforerenderpass",this,e,t,n),n=n||{},n.getMaterial=n.getMaterial||$e,n.getUniform=n.getUniform||Qe,n.isMaterialChanged=n.isMaterialChanged||Je,n.beforeRender=n.beforeRender||tt,n.afterRender=n.afterRender||tt;var r=n.ifRender||et;this.updatePrograms(e,this._sceneRendering,n),n.sortCompare&&e.sort(n.sortCompare);var i=this.viewport,a=i.devicePixelRatio,o=[i.x*a,i.y*a,i.width*a,i.height*a],s=this.devicePixelRatio,l=this.__currentFrameBuffer?[this.__currentFrameBuffer.getTextureWidth(),this.__currentFrameBuffer.getTextureHeight()]:[this._width*s,this._height*s],u=[o[2],o[3]],c=Date.now();t?(Xe.copy(ot.VIEW,t.viewMatrix.array),Xe.copy(ot.PROJECTION,t.projectionMatrix.array),Xe.copy(ot.VIEWINVERSE,t.worldTransform.array)):(Xe.identity(ot.VIEW),Xe.identity(ot.PROJECTION),Xe.identity(ot.VIEWINVERSE)),Xe.multiply(ot.VIEWPROJECTION,ot.PROJECTION,ot.VIEW),Xe.invert(ot.PROJECTIONINVERSE,ot.PROJECTION),Xe.invert(ot.VIEWPROJECTIONINVERSE,ot.VIEWPROJECTION);for(var h,d,f,p,g,m,v,y,b,_,x,w,S=this.gl,T=this._sceneRendering,O=null,M=0;M<e.length;M++){var E,A=e[M],C=null!=A.worldTransform;if(r(A)){C&&(E=A.isSkinnedMesh&&A.isSkinnedMesh()?A.offsetMatrix?A.offsetMatrix.array:ot.IDENTITY:A.worldTransform.array);var I=A.geometry,D=n.getMaterial.call(this,A),L=A.__program,P=D.shader,k=I.__uid__+"-"+L.__uid__,R=k!==_;_=k,R&&O&&O.bindVertexArrayOES(null),C&&(Xe.copy(ot.WORLD,E),Xe.multiply(ot.WORLDVIEWPROJECTION,ot.VIEWPROJECTION,E),Xe.multiplyAffine(ot.WORLDVIEW,ot.VIEW,E),(P.matrixSemantics.WORLDINVERSE||P.matrixSemantics.WORLDINVERSETRANSPOSE)&&Xe.invert(ot.WORLDINVERSE,E),(P.matrixSemantics.WORLDVIEWINVERSE||P.matrixSemantics.WORLDVIEWINVERSETRANSPOSE)&&Xe.invert(ot.WORLDVIEWINVERSE,ot.WORLDVIEW),(P.matrixSemantics.WORLDVIEWPROJECTIONINVERSE||P.matrixSemantics.WORLDVIEWPROJECTIONINVERSETRANSPOSE)&&Xe.invert(ot.WORLDVIEWPROJECTIONINVERSE,ot.WORLDVIEWPROJECTION)),A.beforeRender&&A.beforeRender(this),n.beforeRender.call(this,A,D,h);var N=L!==d;N?(L.bind(this),L.setUniformOfSemantic(S,"VIEWPORT",o),L.setUniformOfSemantic(S,"WINDOW_SIZE",l),t&&(L.setUniformOfSemantic(S,"NEAR",t.near),L.setUniformOfSemantic(S,"FAR",t.far)),L.setUniformOfSemantic(S,"DEVICEPIXELRATIO",a),L.setUniformOfSemantic(S,"TIME",c),L.setUniformOfSemantic(S,"VIEWPORT_SIZE",u),T&&T.setLightUniforms(L,A.lightGroup,this)):L=d,(N||n.isMaterialChanged(A,f,D,h))&&(D.depthTest!==p&&(D.depthTest?S.enable(S.DEPTH_TEST):S.disable(S.DEPTH_TEST),p=D.depthTest),D.depthMask!==g&&(S.depthMask(D.depthMask),g=D.depthMask),D.transparent!==b&&(D.transparent?S.enable(S.BLEND):S.disable(S.BLEND),b=D.transparent),D.transparent&&(D.blend?D.blend(S):(S.blendEquationSeparate(S.FUNC_ADD,S.FUNC_ADD),S.blendFuncSeparate(S.SRC_ALPHA,S.ONE_MINUS_SRC_ALPHA,S.ONE,S.ONE_MINUS_SRC_ALPHA))),w=this._bindMaterial(A,D,L,f||null,h||null,d||null,n.getUniform),h=D);var j=P.matrixSemanticKeys;if(C)for(var F=0;F<j.length;F++){var z=j[F],B=P.matrixSemantics[z],V=ot[z];if(B.isTranspose){var G=ot[B.semanticNoTranspose];Xe.transpose(V,G)}L.setUniform(S,B.type,B.symbol,V)}A.cullFace!==v&&(v=A.cullFace,S.cullFace(v)),A.frontFace!==y&&(y=A.frontFace,S.frontFace(y)),A.culling!==m&&(m=A.culling,m?S.enable(S.CULL_FACE):S.disable(S.CULL_FACE)),this._updateSkeleton(A,L,w),R&&(x=this._bindVAO(O,P,I,L)),this._renderObject(A,x,L),n.afterRender(this,A),A.afterRender&&A.afterRender(this),d=L,f=A}}O&&O.bindVertexArrayOES(null),this.trigger("afterrenderpass",this,e,t,n)},getMaxJointNumber:function(){return this.maxJointNumber},_updateSkeleton:function(e,t,n){var r=this.gl,i=e.skeleton;if(i)if(i.update(),e.joints.length>this.getMaxJointNumber()){var a=i.getSubSkinMatricesTexture(e.__uid__,e.joints);t.useTextureSlot(this,a,n),t.setUniform(r,"1i","skinMatricesTexture",n),t.setUniform(r,"1f","skinMatricesTextureSize",a.width)}else{var o=i.getSubSkinMatrices(e.__uid__,e.joints);t.setUniformOfSemantic(r,"SKIN_MATRIX",o)}},_renderObject:function(e,t,n){var r=this.gl,i=e.geometry,a=e.mode;null==a&&(a=4);var o=null,s=e.isInstancedMesh&&e.isInstancedMesh();if(!s||(o=this.getGLExtension("ANGLE_instanced_arrays"),o)){var l;if(s&&(l=this._bindInstancedAttributes(e,n,o)),t.indicesBuffer){var u=this.getGLExtension("OES_element_index_uint"),c=u&&i.indices instanceof Uint32Array,h=c?r.UNSIGNED_INT:r.UNSIGNED_SHORT;s?o.drawElementsInstancedANGLE(a,t.indicesBuffer.count,h,0,e.getInstanceCount()):r.drawElements(a,t.indicesBuffer.count,h,0)}else s?o.drawArraysInstancedANGLE(a,0,i.vertexCount,e.getInstanceCount()):r.drawArrays(a,0,i.vertexCount);if(s)for(var d=0;d<l.length;d++)r.disableVertexAttribArray(l[d])}else console.warn("Device not support ANGLE_instanced_arrays extension")},_bindInstancedAttributes:function(e,t,n){for(var r=this.gl,i=e.getInstancedAttributesBuffers(this),a=[],o=0;o<i.length;o++){var s=i[o],l=t.getAttribLocation(r,s.symbol);if(!(l<0)){var u=nt[s.type]||r.FLOAT;r.enableVertexAttribArray(l),r.bindBuffer(r.ARRAY_BUFFER,s.buffer),r.vertexAttribPointer(l,s.size,u,!1,0,0),n.vertexAttribDivisorANGLE(l,s.divisor),a.push(l)}}return a},_bindMaterial:function(e,t,n,r,i,a,o){for(var s=this.gl,l=a===n,u=n.currentTextureSlot(),c=t.getEnabledUniforms(),h=t.getTextureUniforms(),d=this._placeholderTexture,f=0;f<h.length;f++){var p=h[f],g=o(e,t,p),m=t.uniforms[p].type;if("t"===m&&g)g.__slot=-1;else if("tv"===m)for(var v=0;v<g.length;v++)g[v]&&(g[v].__slot=-1)}d.__slot=-1;for(f=0;f<c.length;f++){p=c[f];var y=t.uniforms[p],b=(g=o(e,t,p),m=y.type,"t"===m);if(b&&(g&&g.isRenderable()||(g=d)),i&&l){var _=o(r,i,p);if(b&&(_&&_.isRenderable()||(_=d)),_===g){if(b)n.takeCurrentTextureSlot(this,null);else if("tv"===m&&g)for(v=0;v<g.length;v++)n.takeCurrentTextureSlot(this,null);continue}}if(null!=g)if(b)if(g.__slot<0){var x=n.currentTextureSlot(),w=n.setUniform(s,"1i",p,x);w&&(n.takeCurrentTextureSlot(this,g),g.__slot=x)}else n.setUniform(s,"1i",p,g.__slot);else if(Array.isArray(g)){if(0===g.length)continue;if("tv"===m){if(!n.hasUniform(p))continue;var S=[];for(v=0;v<g.length;v++){var T=g[v];if(T.__slot<0){x=n.currentTextureSlot();S.push(x),n.takeCurrentTextureSlot(this,T),T.__slot=x}else S.push(T.__slot)}n.setUniform(s,"1iv",p,S)}else n.setUniform(s,y.type,p,g)}else n.setUniform(s,y.type,p,g)}var O=n.currentTextureSlot();return n.resetTextureSlot(u),O},_bindVAO:function(e,t,n,r){var i=!n.dynamic,a=this.gl,o=this.__uid__+"-"+r.__uid__,s=n.__vaoCache[o];if(!s){var l=n.getBufferChunks(this);if(!l||!l.length)return;for(var u=l[0],c=u.attributeBuffers,h=u.indicesBuffer,d=[],f=[],p=0;p<c.length;p++){var g,m=c[p],v=m.name,y=m.semantic;if(y){var b=t.attributeSemantics[y];g=b&&b.symbol}else g=v;g&&r.attributes[g]&&(d.push(m),f.push(g))}s=new rt(d,f,h),i&&(n.__vaoCache[o]=s)}var _=!0;e&&i&&(null==s.vao?s.vao=e.createVertexArrayOES():_=!1,e.bindVertexArrayOES(s.vao));d=s.availableAttributes,h=s.indicesBuffer;if(_){var x=r.enableAttributes(this,s.availableAttributeSymbols,e&&i&&s);for(p=0;p<d.length;p++){var w=x[p];if(-1!==w){m=d[p];var S=m.buffer,T=m.size,O=nt[m.type]||a.FLOAT;a.bindBuffer(a.ARRAY_BUFFER,S),a.vertexAttribPointer(w,T,O,!1,0,0)}}n.isUseIndices()&&a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,h.buffer)}return s},renderPreZ:function(e,t,n){var r=this.gl,i=this._prezMaterial||new J({shader:new He(He.source("clay.prez.vertex"),He.source("clay.prez.fragment"))});this._prezMaterial=i,r.colorMask(!1,!1,!1,!1),r.depthMask(!0),this.renderPass(e,n,{ifRender:function(e){return!e.ignorePreZ},isMaterialChanged:function(e,t){var n=e.material,r=t.material;return n.get("diffuseMap")!==r.get("diffuseMap")||(n.get("alphaCutoff")||0)!==(r.get("alphaCutoff")||0)},getUniform:function(e,t,n){if("alphaMap"===n)return e.material.get("diffuseMap");if("alphaCutoff"===n){if(e.material.isDefined("fragment","ALPHA_TEST")&&e.material.get("diffuseMap")){var r=e.material.get("alphaCutoff");return r||0}return 0}return"uvRepeat"===n?e.material.get("uvRepeat"):"uvOffset"===n?e.material.get("uvOffset"):t.get(n)},getMaterial:function(){return i},sort:this.opaqueSortCompare}),r.colorMask(!0,!0,!0,!0),r.depthMask(!0)},disposeScene:function(e){this.disposeNode(e,!0,!0),e.dispose()},disposeNode:function(e,t,n){e.getParent()&&e.getParent().remove(e);var r={};e.traverse((function(e){var i=e.material;if(e.geometry&&t&&e.geometry.dispose(this),n&&i&&!r[i.__uid__]){for(var a=i.getTextureUniforms(),o=0;o<a.length;o++){var s=a[o],l=i.uniforms[s].value,u=i.uniforms[s].type;if(l)if("t"===u)l.dispose&&l.dispose(this);else if("tv"===u)for(var c=0;c<l.length;c++)l[c]&&l[c].dispose&&l[c].dispose(this)}r[i.__uid__]=!0}e.dispose&&e.dispose(this)}),this)},disposeGeometry:function(e){e.dispose(this)},disposeTexture:function(e){e.dispose(this)},disposeFrameBuffer:function(e){e.dispose(this)},dispose:function(){},screenToNDC:function(e,t,n){n||(n=new se),t=this._height-t;var r=this.viewport,i=n.array;return i[0]=(e-r.x)/r.width,i[0]=2*i[0]-1,i[1]=(t-r.y)/r.height,i[1]=2*i[1]-1,n}});at.opaqueSortCompare=at.prototype.opaqueSortCompare=function(e,t){return e.renderOrder===t.renderOrder?e.__program===t.__program?e.material===t.material?e.geometry.__uid__-t.geometry.__uid__:e.material.__uid__-t.material.__uid__:e.__program&&t.__program?e.__program.__uid__-t.__program.__uid__:0:e.renderOrder-t.renderOrder},at.transparentSortCompare=at.prototype.transparentSortCompare=function(e,t){return e.renderOrder===t.renderOrder?e.__depth===t.__depth?e.__program===t.__program?e.material===t.material?e.geometry.__uid__-t.geometry.__uid__:e.material.__uid__-t.material.__uid__:e.__program&&t.__program?e.__program.__uid__-t.__program.__uid__:0:e.__depth-t.__depth:e.renderOrder-t.renderOrder};var ot={IDENTITY:qe(),WORLD:qe(),VIEW:qe(),PROJECTION:qe(),WORLDVIEW:qe(),VIEWPROJECTION:qe(),WORLDVIEWPROJECTION:qe(),WORLDINVERSE:qe(),VIEWINVERSE:qe(),PROJECTIONINVERSE:qe(),WORLDVIEWINVERSE:qe(),VIEWPROJECTIONINVERSE:qe(),WORLDVIEWPROJECTIONINVERSE:qe(),WORLDTRANSPOSE:qe(),VIEWTRANSPOSE:qe(),PROJECTIONTRANSPOSE:qe(),WORLDVIEWTRANSPOSE:qe(),VIEWPROJECTIONTRANSPOSE:qe(),WORLDVIEWPROJECTIONTRANSPOSE:qe(),WORLDINVERSETRANSPOSE:qe(),VIEWINVERSETRANSPOSE:qe(),PROJECTIONINVERSETRANSPOSE:qe(),WORLDVIEWINVERSETRANSPOSE:qe(),VIEWPROJECTIONINVERSETRANSPOSE:qe(),WORLDVIEWPROJECTIONINVERSETRANSPOSE:qe()};at.COLOR_BUFFER_BIT=O.COLOR_BUFFER_BIT,at.DEPTH_BUFFER_BIT=O.DEPTH_BUFFER_BIT,at.STENCIL_BUFFER_BIT=O.STENCIL_BUFFER_BIT;var st=at,lt=function(e,t,n){e=e||0,t=t||0,n=n||0,this.array=Ke.fromValues(e,t,n),this._dirty=!0};lt.prototype={constructor:lt,add:function(e){return Ke.add(this.array,this.array,e.array),this._dirty=!0,this},set:function(e,t,n){return this.array[0]=e,this.array[1]=t,this.array[2]=n,this._dirty=!0,this},setArray:function(e){return this.array[0]=e[0],this.array[1]=e[1],this.array[2]=e[2],this._dirty=!0,this},clone:function(){return new lt(this.x,this.y,this.z)},copy:function(e){return Ke.copy(this.array,e.array),this._dirty=!0,this},cross:function(e,t){return Ke.cross(this.array,e.array,t.array),this._dirty=!0,this},dist:function(e){return Ke.dist(this.array,e.array)},distance:function(e){return Ke.distance(this.array,e.array)},div:function(e){return Ke.div(this.array,this.array,e.array),this._dirty=!0,this},divide:function(e){return Ke.divide(this.array,this.array,e.array),this._dirty=!0,this},dot:function(e){return Ke.dot(this.array,e.array)},len:function(){return Ke.len(this.array)},length:function(){return Ke.length(this.array)},lerp:function(e,t,n){return Ke.lerp(this.array,e.array,t.array,n),this._dirty=!0,this},min:function(e){return Ke.min(this.array,this.array,e.array),this._dirty=!0,this},max:function(e){return Ke.max(this.array,this.array,e.array),this._dirty=!0,this},mul:function(e){return Ke.mul(this.array,this.array,e.array),this._dirty=!0,this},multiply:function(e){return Ke.multiply(this.array,this.array,e.array),this._dirty=!0,this},negate:function(){return Ke.negate(this.array,this.array),this._dirty=!0,this},normalize:function(){return Ke.normalize(this.array,this.array),this._dirty=!0,this},random:function(e){return Ke.random(this.array,e),this._dirty=!0,this},scale:function(e){return Ke.scale(this.array,this.array,e),this._dirty=!0,this},scaleAndAdd:function(e,t){return Ke.scaleAndAdd(this.array,this.array,e.array,t),this._dirty=!0,this},sqrDist:function(e){return Ke.sqrDist(this.array,e.array)},squaredDistance:function(e){return Ke.squaredDistance(this.array,e.array)},sqrLen:function(){return Ke.sqrLen(this.array)},squaredLength:function(){return Ke.squaredLength(this.array)},sub:function(e){return Ke.sub(this.array,this.array,e.array),this._dirty=!0,this},subtract:function(e){return Ke.subtract(this.array,this.array,e.array),this._dirty=!0,this},transformMat3:function(e){return Ke.transformMat3(this.array,this.array,e.array),this._dirty=!0,this},transformMat4:function(e){return Ke.transformMat4(this.array,this.array,e.array),this._dirty=!0,this},transformQuat:function(e){return Ke.transformQuat(this.array,this.array,e.array),this._dirty=!0,this},applyProjection:function(e){var t=this.array;if(e=e.array,0===e[15]){var n=-1/t[2];t[0]=e[0]*t[0]*n,t[1]=e[5]*t[1]*n,t[2]=(e[10]*t[2]+e[14])*n}else t[0]=e[0]*t[0]+e[12],t[1]=e[5]*t[1]+e[13],t[2]=e[10]*t[2]+e[14];return this._dirty=!0,this},eulerFromQuat:function(e,t){lt.eulerFromQuat(this,e,t)},eulerFromMat3:function(e,t){lt.eulerFromMat3(this,e,t)},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}};var ut=Object.defineProperty;if(ut){var ct=lt.prototype;ut(ct,"x",{get:function(){return this.array[0]},set:function(e){this.array[0]=e,this._dirty=!0}}),ut(ct,"y",{get:function(){return this.array[1]},set:function(e){this.array[1]=e,this._dirty=!0}}),ut(ct,"z",{get:function(){return this.array[2]},set:function(e){this.array[2]=e,this._dirty=!0}})}function ht(e,t,n){return e<t?t:e>n?n:e}lt.add=function(e,t,n){return Ke.add(e.array,t.array,n.array),e._dirty=!0,e},lt.set=function(e,t,n,r){Ke.set(e.array,t,n,r),e._dirty=!0},lt.copy=function(e,t){return Ke.copy(e.array,t.array),e._dirty=!0,e},lt.cross=function(e,t,n){return Ke.cross(e.array,t.array,n.array),e._dirty=!0,e},lt.dist=function(e,t){return Ke.distance(e.array,t.array)},lt.distance=lt.dist,lt.div=function(e,t,n){return Ke.divide(e.array,t.array,n.array),e._dirty=!0,e},lt.divide=lt.div,lt.dot=function(e,t){return Ke.dot(e.array,t.array)},lt.len=function(e){return Ke.length(e.array)},lt.lerp=function(e,t,n,r){return Ke.lerp(e.array,t.array,n.array,r),e._dirty=!0,e},lt.min=function(e,t,n){return Ke.min(e.array,t.array,n.array),e._dirty=!0,e},lt.max=function(e,t,n){return Ke.max(e.array,t.array,n.array),e._dirty=!0,e},lt.mul=function(e,t,n){return Ke.multiply(e.array,t.array,n.array),e._dirty=!0,e},lt.multiply=lt.mul,lt.negate=function(e,t){return Ke.negate(e.array,t.array),e._dirty=!0,e},lt.normalize=function(e,t){return Ke.normalize(e.array,t.array),e._dirty=!0,e},lt.random=function(e,t){return Ke.random(e.array,t),e._dirty=!0,e},lt.scale=function(e,t,n){return Ke.scale(e.array,t.array,n),e._dirty=!0,e},lt.scaleAndAdd=function(e,t,n,r){return Ke.scaleAndAdd(e.array,t.array,n.array,r),e._dirty=!0,e},lt.sqrDist=function(e,t){return Ke.sqrDist(e.array,t.array)},lt.squaredDistance=lt.sqrDist,lt.sqrLen=function(e){return Ke.sqrLen(e.array)},lt.squaredLength=lt.sqrLen,lt.sub=function(e,t,n){return Ke.subtract(e.array,t.array,n.array),e._dirty=!0,e},lt.subtract=lt.sub,lt.transformMat3=function(e,t,n){return Ke.transformMat3(e.array,t.array,n.array),e._dirty=!0,e},lt.transformMat4=function(e,t,n){return Ke.transformMat4(e.array,t.array,n.array),e._dirty=!0,e},lt.transformQuat=function(e,t,n){return Ke.transformQuat(e.array,t.array,n.array),e._dirty=!0,e};var dt=Math.atan2,ft=Math.asin,pt=Math.abs;lt.eulerFromQuat=function(e,t,n){e._dirty=!0,t=t.array;var r=e.array,i=t[0],a=t[1],o=t[2],s=t[3],l=i*i,u=a*a,c=o*o,h=s*s;n=(n||"XYZ").toUpperCase();switch(n){case"XYZ":r[0]=dt(2*(i*s-a*o),h-l-u+c),r[1]=ft(ht(2*(i*o+a*s),-1,1)),r[2]=dt(2*(o*s-i*a),h+l-u-c);break;case"YXZ":r[0]=ft(ht(2*(i*s-a*o),-1,1)),r[1]=dt(2*(i*o+a*s),h-l-u+c),r[2]=dt(2*(i*a+o*s),h-l+u-c);break;case"ZXY":r[0]=ft(ht(2*(i*s+a*o),-1,1)),r[1]=dt(2*(a*s-o*i),h-l-u+c),r[2]=dt(2*(o*s-i*a),h-l+u-c);break;case"ZYX":r[0]=dt(2*(i*s+o*a),h-l-u+c),r[1]=ft(ht(2*(a*s-i*o),-1,1)),r[2]=dt(2*(i*a+o*s),h+l-u-c);break;case"YZX":r[0]=dt(2*(i*s-o*a),h-l+u-c),r[1]=dt(2*(a*s-i*o),h+l-u-c),r[2]=ft(ht(2*(i*a+o*s),-1,1));break;case"XZY":r[0]=dt(2*(i*s+a*o),h-l+u-c),r[1]=dt(2*(i*o+a*s),h+l-u-c),r[2]=ft(ht(2*(o*s-i*a),-1,1));break;default:console.warn("Unkown order: "+n)}return e},lt.eulerFromMat3=function(e,t,n){var r=t.array,i=r[0],a=r[3],o=r[6],s=r[1],l=r[4],u=r[7],c=r[2],h=r[5],d=r[8],f=e.array;n=(n||"XYZ").toUpperCase();switch(n){case"XYZ":f[1]=ft(ht(o,-1,1)),pt(o)<.99999?(f[0]=dt(-u,d),f[2]=dt(-a,i)):(f[0]=dt(h,l),f[2]=0);break;case"YXZ":f[0]=ft(-ht(u,-1,1)),pt(u)<.99999?(f[1]=dt(o,d),f[2]=dt(s,l)):(f[1]=dt(-c,i),f[2]=0);break;case"ZXY":f[0]=ft(ht(h,-1,1)),pt(h)<.99999?(f[1]=dt(-c,d),f[2]=dt(-a,l)):(f[1]=0,f[2]=dt(s,i));break;case"ZYX":f[1]=ft(-ht(c,-1,1)),pt(c)<.99999?(f[0]=dt(h,d),f[2]=dt(s,i)):(f[0]=0,f[2]=dt(-a,l));break;case"YZX":f[2]=ft(ht(s,-1,1)),pt(s)<.99999?(f[0]=dt(-u,l),f[1]=dt(-c,i)):(f[0]=0,f[1]=dt(o,d));break;case"XZY":f[2]=ft(-ht(a,-1,1)),pt(a)<.99999?(f[0]=dt(h,l),f[1]=dt(o,i)):(f[0]=dt(-u,d),f[1]=0);break;default:console.warn("Unkown order: "+n)}return e._dirty=!0,e},Object.defineProperties(lt,{POSITIVE_X:{get:function(){return new lt(1,0,0)}},NEGATIVE_X:{get:function(){return new lt(-1,0,0)}},POSITIVE_Y:{get:function(){return new lt(0,1,0)}},NEGATIVE_Y:{get:function(){return new lt(0,-1,0)}},POSITIVE_Z:{get:function(){return new lt(0,0,1)}},NEGATIVE_Z:{get:function(){return new lt(0,0,-1)}},UP:{get:function(){return new lt(0,1,0)}},ZERO:{get:function(){return new lt}}});var gt=lt,mt=1e-5,vt=function(e,t){this.origin=e||new gt,this.direction=t||new gt};vt.prototype={constructor:vt,intersectPlane:function(e,t){var n=e.normal.array,r=e.distance,i=this.origin.array,a=this.direction.array,o=Ke.dot(n,a);if(0===o)return null;t||(t=new gt);var s=(Ke.dot(n,i)-r)/o;return Ke.scaleAndAdd(t.array,i,a,-s),t._dirty=!0,t},mirrorAgainstPlane:function(e){var t=Ke.dot(e.normal.array,this.direction.array);Ke.scaleAndAdd(this.direction.array,this.direction.array,e.normal.array,2*-t),this.direction._dirty=!0},distanceToPoint:function(){var e=Ke.create();return function(t){Ke.sub(e,t,this.origin.array);var n=Ke.dot(e,this.direction.array);if(n<0)return Ke.distance(this.origin.array,t);var r=Ke.lenSquared(e);return Math.sqrt(r-n*n)}}(),intersectSphere:function(){var e=Ke.create();return function(t,n,r){var i=this.origin.array,a=this.direction.array;t=t.array,Ke.sub(e,t,i);var o=Ke.dot(e,a),s=Ke.squaredLength(e),l=s-o*o,u=n*n;if(!(l>u)){var c=Math.sqrt(u-l),h=o-c,d=o+c;return r||(r=new gt),h<0?d<0?null:(Ke.scaleAndAdd(r.array,i,a,d),r):(Ke.scaleAndAdd(r.array,i,a,h),r)}}}(),intersectBoundingBox:function(e,t){var n,r,i,a,o,s,l=this.direction.array,u=this.origin.array,c=e.min.array,h=e.max.array,d=1/l[0],f=1/l[1],p=1/l[2];if(d>=0?(n=(c[0]-u[0])*d,r=(h[0]-u[0])*d):(r=(c[0]-u[0])*d,n=(h[0]-u[0])*d),f>=0?(i=(c[1]-u[1])*f,a=(h[1]-u[1])*f):(a=(c[1]-u[1])*f,i=(h[1]-u[1])*f),n>a||i>r)return null;if((i>n||n!==n)&&(n=i),(a<r||r!==r)&&(r=a),p>=0?(o=(c[2]-u[2])*p,s=(h[2]-u[2])*p):(s=(c[2]-u[2])*p,o=(h[2]-u[2])*p),n>s||o>r)return null;if((o>n||n!==n)&&(n=o),(s<r||r!==r)&&(r=s),r<0)return null;var g=n>=0?n:r;return t||(t=new gt),Ke.scaleAndAdd(t.array,u,l,g),t},intersectTriangle:function(){var e=Ke.create(),t=Ke.create(),n=Ke.create(),r=Ke.create();return function(i,a,o,s,l,u){var c=this.direction.array,h=this.origin.array;i=i.array,a=a.array,o=o.array,Ke.sub(e,a,i),Ke.sub(t,o,i),Ke.cross(r,t,c);var d=Ke.dot(e,r);if(s){if(d>-mt)return null}else if(d>-mt&&d<mt)return null;Ke.sub(n,h,i);var f=Ke.dot(r,n)/d;if(f<0||f>1)return null;Ke.cross(r,e,n);var p=Ke.dot(c,r)/d;if(p<0||p>1||f+p>1)return null;Ke.cross(r,e,t);var g=-Ke.dot(n,r)/d;return g<0?null:(l||(l=new gt),u&>.set(u,1-f-p,f,p),Ke.scaleAndAdd(l.array,h,c,g),l)}}(),applyTransform:function(e){gt.add(this.direction,this.direction,this.origin),gt.transformMat4(this.origin,this.origin,e),gt.transformMat4(this.direction,this.direction,e),gt.sub(this.direction,this.direction,this.origin),gt.normalize(this.direction,this.direction)},copy:function(e){gt.copy(this.origin,e.origin),gt.copy(this.direction,e.direction)},clone:function(){var e=new vt;return e.copy(this),e}};var yt=vt,bt={create:function(){var e=new te(4);return e[0]=0,e[1]=0,e[2]=0,e[3]=0,e},clone:function(e){var t=new te(4);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},fromValues:function(e,t,n,r){var i=new te(4);return i[0]=e,i[1]=t,i[2]=n,i[3]=r,i},copy:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},set:function(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e},add:function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e},subtract:function(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e}};bt.sub=bt.subtract,bt.multiply=function(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e[3]=t[3]*n[3],e},bt.mul=bt.multiply,bt.divide=function(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e[3]=t[3]/n[3],e},bt.div=bt.divide,bt.min=function(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e[3]=Math.min(t[3],n[3]),e},bt.max=function(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e[3]=Math.max(t[3],n[3]),e},bt.scale=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e},bt.scaleAndAdd=function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e[3]=t[3]+n[3]*r,e},bt.distance=function(e,t){var n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2],a=t[3]-e[3];return Math.sqrt(n*n+r*r+i*i+a*a)},bt.dist=bt.distance,bt.squaredDistance=function(e,t){var n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2],a=t[3]-e[3];return n*n+r*r+i*i+a*a},bt.sqrDist=bt.squaredDistance,bt.length=function(e){var t=e[0],n=e[1],r=e[2],i=e[3];return Math.sqrt(t*t+n*n+r*r+i*i)},bt.len=bt.length,bt.squaredLength=function(e){var t=e[0],n=e[1],r=e[2],i=e[3];return t*t+n*n+r*r+i*i},bt.sqrLen=bt.squaredLength,bt.negate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},bt.inverse=function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},bt.normalize=function(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=n*n+r*r+i*i+a*a;return o>0&&(o=1/Math.sqrt(o),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o,e[3]=t[3]*o),e},bt.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]},bt.lerp=function(e,t,n,r){var i=t[0],a=t[1],o=t[2],s=t[3];return e[0]=i+r*(n[0]-i),e[1]=a+r*(n[1]-a),e[2]=o+r*(n[2]-o),e[3]=s+r*(n[3]-s),e},bt.random=function(e,t){return t=t||1,e[0]=ne(),e[1]=ne(),e[2]=ne(),e[3]=ne(),bt.normalize(e,e),bt.scale(e,e,t),e},bt.transformMat4=function(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3];return e[0]=n[0]*r+n[4]*i+n[8]*a+n[12]*o,e[1]=n[1]*r+n[5]*i+n[9]*a+n[13]*o,e[2]=n[2]*r+n[6]*i+n[10]*a+n[14]*o,e[3]=n[3]*r+n[7]*i+n[11]*a+n[15]*o,e},bt.transformQuat=function(e,t,n){var r=t[0],i=t[1],a=t[2],o=n[0],s=n[1],l=n[2],u=n[3],c=u*r+s*a-l*i,h=u*i+l*r-o*a,d=u*a+o*i-s*r,f=-o*r-s*i-l*a;return e[0]=c*u+f*-o+h*-l-d*-s,e[1]=h*u+f*-s+d*-o-c*-l,e[2]=d*u+f*-l+c*-s-h*-o,e},bt.forEach=function(){var e=bt.create();return function(t,n,r,i,a,o){var s,l;for(n||(n=4),r||(r=0),l=i?Math.min(i*n+r,t.length):t.length,s=r;s<l;s+=n)e[0]=t[s],e[1]=t[s+1],e[2]=t[s+2],e[3]=t[s+3],a(e,e,o),t[s]=e[0],t[s+1]=e[1],t[s+2]=e[2],t[s+3]=e[3];return t}}();var _t=bt,xt={create:function(){var e=new te(9);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e},fromMat4:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[4],e[4]=t[5],e[5]=t[6],e[6]=t[8],e[7]=t[9],e[8]=t[10],e},clone:function(e){var t=new te(9);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},copy:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e},identity:function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e},transpose:function(e,t){if(e===t){var n=t[1],r=t[2],i=t[5];e[1]=t[3],e[2]=t[6],e[3]=n,e[5]=t[7],e[6]=r,e[7]=i}else e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8];return e},invert:function(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],h=c*o-s*u,d=-c*a+s*l,f=u*a-o*l,p=n*h+r*d+i*f;return p?(p=1/p,e[0]=h*p,e[1]=(-c*r+i*u)*p,e[2]=(s*r-i*o)*p,e[3]=d*p,e[4]=(c*n-i*l)*p,e[5]=(-s*n+i*a)*p,e[6]=f*p,e[7]=(-u*n+r*l)*p,e[8]=(o*n-r*a)*p,e):null},adjoint:function(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8];return e[0]=o*c-s*u,e[1]=i*u-r*c,e[2]=r*s-i*o,e[3]=s*l-a*c,e[4]=n*c-i*l,e[5]=i*a-n*s,e[6]=a*u-o*l,e[7]=r*l-n*u,e[8]=n*o-r*a,e},determinant:function(e){var t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],l=e[7],u=e[8];return t*(u*a-o*l)+n*(-u*i+o*s)+r*(l*i-a*s)},multiply:function(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],h=t[8],d=n[0],f=n[1],p=n[2],g=n[3],m=n[4],v=n[5],y=n[6],b=n[7],_=n[8];return e[0]=d*r+f*o+p*u,e[1]=d*i+f*s+p*c,e[2]=d*a+f*l+p*h,e[3]=g*r+m*o+v*u,e[4]=g*i+m*s+v*c,e[5]=g*a+m*l+v*h,e[6]=y*r+b*o+_*u,e[7]=y*i+b*s+_*c,e[8]=y*a+b*l+_*h,e}};xt.mul=xt.multiply,xt.translate=function(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],h=t[8],d=n[0],f=n[1];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e[6]=d*r+f*o+u,e[7]=d*i+f*s+c,e[8]=d*a+f*l+h,e},xt.rotate=function(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],h=t[8],d=Math.sin(n),f=Math.cos(n);return e[0]=f*r+d*o,e[1]=f*i+d*s,e[2]=f*a+d*l,e[3]=f*o-d*r,e[4]=f*s-d*i,e[5]=f*l-d*a,e[6]=u,e[7]=c,e[8]=h,e},xt.scale=function(e,t,n){var r=n[0],i=n[1];return e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=i*t[3],e[4]=i*t[4],e[5]=i*t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e},xt.fromMat2d=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=0,e[3]=t[2],e[4]=t[3],e[5]=0,e[6]=t[4],e[7]=t[5],e[8]=1,e},xt.fromQuat=function(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=n+n,s=r+r,l=i+i,u=n*o,c=r*o,h=r*s,d=i*o,f=i*s,p=i*l,g=a*o,m=a*s,v=a*l;return e[0]=1-h-p,e[3]=c-v,e[6]=d+m,e[1]=c+v,e[4]=1-u-p,e[7]=f-g,e[2]=d-m,e[5]=f+g,e[8]=1-u-h,e},xt.normalFromMat4=function(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],h=t[9],d=t[10],f=t[11],p=t[12],g=t[13],m=t[14],v=t[15],y=n*s-r*o,b=n*l-i*o,_=n*u-a*o,x=r*l-i*s,w=r*u-a*s,S=i*u-a*l,T=c*g-h*p,O=c*m-d*p,M=c*v-f*p,E=h*m-d*g,A=h*v-f*g,C=d*v-f*m,I=y*C-b*A+_*E+x*M-w*O+S*T;return I?(I=1/I,e[0]=(s*C-l*A+u*E)*I,e[1]=(l*M-o*C-u*O)*I,e[2]=(o*A-s*M+u*T)*I,e[3]=(i*A-r*C-a*E)*I,e[4]=(n*C-i*M+a*O)*I,e[5]=(r*M-n*A-a*T)*I,e[6]=(g*S-m*w+v*x)*I,e[7]=(m*_-p*S-v*b)*I,e[8]=(p*w-g*_+v*y)*I,e):null},xt.frob=function(e){return Math.sqrt(Math.pow(e[0],2)+Math.pow(e[1],2)+Math.pow(e[2],2)+Math.pow(e[3],2)+Math.pow(e[4],2)+Math.pow(e[5],2)+Math.pow(e[6],2)+Math.pow(e[7],2)+Math.pow(e[8],2))};var wt=xt,St={create:function(){var e=new te(4);return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e}};St.rotationTo=function(){var e=Ke.create(),t=Ke.fromValues(1,0,0),n=Ke.fromValues(0,1,0);return function(r,i,a){var o=Ke.dot(i,a);return o<-.999999?(Ke.cross(e,t,i),Ke.length(e)<1e-6&&Ke.cross(e,n,i),Ke.normalize(e,e),St.setAxisAngle(r,e,Math.PI),r):o>.999999?(r[0]=0,r[1]=0,r[2]=0,r[3]=1,r):(Ke.cross(e,i,a),r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=1+o,St.normalize(r,r))}}(),St.setAxes=function(){var e=wt.create();return function(t,n,r,i){return e[0]=r[0],e[3]=r[1],e[6]=r[2],e[1]=i[0],e[4]=i[1],e[7]=i[2],e[2]=-n[0],e[5]=-n[1],e[8]=-n[2],St.normalize(t,St.fromMat3(t,e))}}(),St.clone=_t.clone,St.fromValues=_t.fromValues,St.copy=_t.copy,St.set=_t.set,St.identity=function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e},St.setAxisAngle=function(e,t,n){n*=.5;var r=Math.sin(n);return e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=Math.cos(n),e},St.add=_t.add,St.multiply=function(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3],s=n[0],l=n[1],u=n[2],c=n[3];return e[0]=r*c+o*s+i*u-a*l,e[1]=i*c+o*l+a*s-r*u,e[2]=a*c+o*u+r*l-i*s,e[3]=o*c-r*s-i*l-a*u,e},St.mul=St.multiply,St.scale=_t.scale,St.rotateX=function(e,t,n){n*=.5;var r=t[0],i=t[1],a=t[2],o=t[3],s=Math.sin(n),l=Math.cos(n);return e[0]=r*l+o*s,e[1]=i*l+a*s,e[2]=a*l-i*s,e[3]=o*l-r*s,e},St.rotateY=function(e,t,n){n*=.5;var r=t[0],i=t[1],a=t[2],o=t[3],s=Math.sin(n),l=Math.cos(n);return e[0]=r*l-a*s,e[1]=i*l+o*s,e[2]=a*l+r*s,e[3]=o*l-i*s,e},St.rotateZ=function(e,t,n){n*=.5;var r=t[0],i=t[1],a=t[2],o=t[3],s=Math.sin(n),l=Math.cos(n);return e[0]=r*l+i*s,e[1]=i*l-r*s,e[2]=a*l+o*s,e[3]=o*l-a*s,e},St.calculateW=function(e,t){var n=t[0],r=t[1],i=t[2];return e[0]=n,e[1]=r,e[2]=i,e[3]=Math.sqrt(Math.abs(1-n*n-r*r-i*i)),e},St.dot=_t.dot,St.lerp=_t.lerp,St.slerp=function(e,t,n,r){var i,a,o,s,l,u=t[0],c=t[1],h=t[2],d=t[3],f=n[0],p=n[1],g=n[2],m=n[3];return a=u*f+c*p+h*g+d*m,a<0&&(a=-a,f=-f,p=-p,g=-g,m=-m),1-a>1e-6?(i=Math.acos(a),o=Math.sin(i),s=Math.sin((1-r)*i)/o,l=Math.sin(r*i)/o):(s=1-r,l=r),e[0]=s*u+l*f,e[1]=s*c+l*p,e[2]=s*h+l*g,e[3]=s*d+l*m,e},St.invert=function(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=n*n+r*r+i*i+a*a,s=o?1/o:0;return e[0]=-n*s,e[1]=-r*s,e[2]=-i*s,e[3]=a*s,e},St.conjugate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e},St.length=_t.length,St.len=St.length,St.squaredLength=_t.squaredLength,St.sqrLen=St.squaredLength,St.normalize=_t.normalize,St.fromMat3=function(e,t){var n,r=t[0]+t[4]+t[8];if(r>0)n=Math.sqrt(r+1),e[3]=.5*n,n=.5/n,e[0]=(t[5]-t[7])*n,e[1]=(t[6]-t[2])*n,e[2]=(t[1]-t[3])*n;else{var i=0;t[4]>t[0]&&(i=1),t[8]>t[3*i+i]&&(i=2);var a=(i+1)%3,o=(i+2)%3;n=Math.sqrt(t[3*i+i]-t[3*a+a]-t[3*o+o]+1),e[i]=.5*n,n=.5/n,e[3]=(t[3*a+o]-t[3*o+a])*n,e[a]=(t[3*a+i]+t[3*i+a])*n,e[o]=(t[3*o+i]+t[3*i+o])*n}return e};var Tt=St,Ot=function(){this._axisX=new gt,this._axisY=new gt,this._axisZ=new gt,this.array=Xe.create(),this._dirty=!0};Ot.prototype={constructor:Ot,setArray:function(e){for(var t=0;t<this.array.length;t++)this.array[t]=e[t];return this._dirty=!0,this},adjoint:function(){return Xe.adjoint(this.array,this.array),this._dirty=!0,this},clone:function(){return(new Ot).copy(this)},copy:function(e){return Xe.copy(this.array,e.array),this._dirty=!0,this},determinant:function(){return Xe.determinant(this.array)},fromQuat:function(e){return Xe.fromQuat(this.array,e.array),this._dirty=!0,this},fromRotationTranslation:function(e,t){return Xe.fromRotationTranslation(this.array,e.array,t.array),this._dirty=!0,this},fromMat2d:function(e){return Ot.fromMat2d(this,e),this},frustum:function(e,t,n,r,i,a){return Xe.frustum(this.array,e,t,n,r,i,a),this._dirty=!0,this},identity:function(){return Xe.identity(this.array),this._dirty=!0,this},invert:function(){return Xe.invert(this.array,this.array),this._dirty=!0,this},lookAt:function(e,t,n){return Xe.lookAt(this.array,e.array,t.array,n.array),this._dirty=!0,this},mul:function(e){return Xe.mul(this.array,this.array,e.array),this._dirty=!0,this},mulLeft:function(e){return Xe.mul(this.array,e.array,this.array),this._dirty=!0,this},multiply:function(e){return Xe.multiply(this.array,this.array,e.array),this._dirty=!0,this},multiplyLeft:function(e){return Xe.multiply(this.array,e.array,this.array),this._dirty=!0,this},ortho:function(e,t,n,r,i,a){return Xe.ortho(this.array,e,t,n,r,i,a),this._dirty=!0,this},perspective:function(e,t,n,r){return Xe.perspective(this.array,e,t,n,r),this._dirty=!0,this},rotate:function(e,t){return Xe.rotate(this.array,this.array,e,t.array),this._dirty=!0,this},rotateX:function(e){return Xe.rotateX(this.array,this.array,e),this._dirty=!0,this},rotateY:function(e){return Xe.rotateY(this.array,this.array,e),this._dirty=!0,this},rotateZ:function(e){return Xe.rotateZ(this.array,this.array,e),this._dirty=!0,this},scale:function(e){return Xe.scale(this.array,this.array,e.array),this._dirty=!0,this},translate:function(e){return Xe.translate(this.array,this.array,e.array),this._dirty=!0,this},transpose:function(){return Xe.transpose(this.array,this.array),this._dirty=!0,this},decomposeMatrix:function(){var e=Ke.create(),t=Ke.create(),n=Ke.create(),r=wt.create();return function(i,a,o){var s=this.array;Ke.set(e,s[0],s[1],s[2]),Ke.set(t,s[4],s[5],s[6]),Ke.set(n,s[8],s[9],s[10]);var l=Ke.length(e),u=Ke.length(t),c=Ke.length(n),h=this.determinant();h<0&&(l=-l),i&&i.set(l,u,c),o.set(s[12],s[13],s[14]),wt.fromMat4(r,s),r[0]/=l,r[1]/=l,r[2]/=l,r[3]/=u,r[4]/=u,r[5]/=u,r[6]/=c,r[7]/=c,r[8]/=c,Tt.fromMat3(a.array,r),Tt.normalize(a.array,a.array),a._dirty=!0,o._dirty=!0}}(),toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}};var Mt=Object.defineProperty;if(Mt){var Et=Ot.prototype;Mt(Et,"z",{get:function(){var e=this.array;return this._axisZ.set(e[8],e[9],e[10]),this._axisZ},set:function(e){var t=this.array;e=e.array,t[8]=e[0],t[9]=e[1],t[10]=e[2],this._dirty=!0}}),Mt(Et,"y",{get:function(){var e=this.array;return this._axisY.set(e[4],e[5],e[6]),this._axisY},set:function(e){var t=this.array;e=e.array,t[4]=e[0],t[5]=e[1],t[6]=e[2],this._dirty=!0}}),Mt(Et,"x",{get:function(){var e=this.array;return this._axisX.set(e[0],e[1],e[2]),this._axisX},set:function(e){var t=this.array;e=e.array,t[0]=e[0],t[1]=e[1],t[2]=e[2],this._dirty=!0}})}Ot.adjoint=function(e,t){return Xe.adjoint(e.array,t.array),e._dirty=!0,e},Ot.copy=function(e,t){return Xe.copy(e.array,t.array),e._dirty=!0,e},Ot.determinant=function(e){return Xe.determinant(e.array)},Ot.identity=function(e){return Xe.identity(e.array),e._dirty=!0,e},Ot.ortho=function(e,t,n,r,i,a,o){return Xe.ortho(e.array,t,n,r,i,a,o),e._dirty=!0,e},Ot.perspective=function(e,t,n,r,i){return Xe.perspective(e.array,t,n,r,i),e._dirty=!0,e},Ot.lookAt=function(e,t,n,r){return Xe.lookAt(e.array,t.array,n.array,r.array),e._dirty=!0,e},Ot.invert=function(e,t){return Xe.invert(e.array,t.array),e._dirty=!0,e},Ot.mul=function(e,t,n){return Xe.mul(e.array,t.array,n.array),e._dirty=!0,e},Ot.multiply=Ot.mul,Ot.fromQuat=function(e,t){return Xe.fromQuat(e.array,t.array),e._dirty=!0,e},Ot.fromRotationTranslation=function(e,t,n){return Xe.fromRotationTranslation(e.array,t.array,n.array),e._dirty=!0,e},Ot.fromMat2d=function(e,t){e._dirty=!0;t=t.array,e=e.array;return e[0]=t[0],e[4]=t[2],e[12]=t[4],e[1]=t[1],e[5]=t[3],e[13]=t[5],e},Ot.rotate=function(e,t,n,r){return Xe.rotate(e.array,t.array,n,r.array),e._dirty=!0,e},Ot.rotateX=function(e,t,n){return Xe.rotateX(e.array,t.array,n),e._dirty=!0,e},Ot.rotateY=function(e,t,n){return Xe.rotateY(e.array,t.array,n),e._dirty=!0,e},Ot.rotateZ=function(e,t,n){return Xe.rotateZ(e.array,t.array,n),e._dirty=!0,e},Ot.scale=function(e,t,n){return Xe.scale(e.array,t.array,n.array),e._dirty=!0,e},Ot.transpose=function(e,t){return Xe.transpose(e.array,t.array),e._dirty=!0,e},Ot.translate=function(e,t,n){return Xe.translate(e.array,t.array,n.array),e._dirty=!0,e};var At=Ot,Ct=function(e,t,n,r){e=e||0,t=t||0,n=n||0,r=void 0===r?1:r,this.array=Tt.fromValues(e,t,n,r),this._dirty=!0};Ct.prototype={constructor:Ct,add:function(e){return Tt.add(this.array,this.array,e.array),this._dirty=!0,this},calculateW:function(){return Tt.calculateW(this.array,this.array),this._dirty=!0,this},set:function(e,t,n,r){return this.array[0]=e,this.array[1]=t,this.array[2]=n,this.array[3]=r,this._dirty=!0,this},setArray:function(e){return this.array[0]=e[0],this.array[1]=e[1],this.array[2]=e[2],this.array[3]=e[3],this._dirty=!0,this},clone:function(){return new Ct(this.x,this.y,this.z,this.w)},conjugate:function(){return Tt.conjugate(this.array,this.array),this._dirty=!0,this},copy:function(e){return Tt.copy(this.array,e.array),this._dirty=!0,this},dot:function(e){return Tt.dot(this.array,e.array)},fromMat3:function(e){return Tt.fromMat3(this.array,e.array),this._dirty=!0,this},fromMat4:function(){var e=wt.create();return function(t){return wt.fromMat4(e,t.array),wt.transpose(e,e),Tt.fromMat3(this.array,e),this._dirty=!0,this}}(),identity:function(){return Tt.identity(this.array),this._dirty=!0,this},invert:function(){return Tt.invert(this.array,this.array),this._dirty=!0,this},len:function(){return Tt.len(this.array)},length:function(){return Tt.length(this.array)},lerp:function(e,t,n){return Tt.lerp(this.array,e.array,t.array,n),this._dirty=!0,this},mul:function(e){return Tt.mul(this.array,this.array,e.array),this._dirty=!0,this},mulLeft:function(e){return Tt.multiply(this.array,e.array,this.array),this._dirty=!0,this},multiply:function(e){return Tt.multiply(this.array,this.array,e.array),this._dirty=!0,this},multiplyLeft:function(e){return Tt.multiply(this.array,e.array,this.array),this._dirty=!0,this},normalize:function(){return Tt.normalize(this.array,this.array),this._dirty=!0,this},rotateX:function(e){return Tt.rotateX(this.array,this.array,e),this._dirty=!0,this},rotateY:function(e){return Tt.rotateY(this.array,this.array,e),this._dirty=!0,this},rotateZ:function(e){return Tt.rotateZ(this.array,this.array,e),this._dirty=!0,this},rotationTo:function(e,t){return Tt.rotationTo(this.array,e.array,t.array),this._dirty=!0,this},setAxes:function(e,t,n){return Tt.setAxes(this.array,e.array,t.array,n.array),this._dirty=!0,this},setAxisAngle:function(e,t){return Tt.setAxisAngle(this.array,e.array,t),this._dirty=!0,this},slerp:function(e,t,n){return Tt.slerp(this.array,e.array,t.array,n),this._dirty=!0,this},sqrLen:function(){return Tt.sqrLen(this.array)},squaredLength:function(){return Tt.squaredLength(this.array)},fromEuler:function(e,t){return Ct.fromEuler(this,e,t)},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}};var It=Object.defineProperty;if(It){var Dt=Ct.prototype;It(Dt,"x",{get:function(){return this.array[0]},set:function(e){this.array[0]=e,this._dirty=!0}}),It(Dt,"y",{get:function(){return this.array[1]},set:function(e){this.array[1]=e,this._dirty=!0}}),It(Dt,"z",{get:function(){return this.array[2]},set:function(e){this.array[2]=e,this._dirty=!0}}),It(Dt,"w",{get:function(){return this.array[3]},set:function(e){this.array[3]=e,this._dirty=!0}})}Ct.add=function(e,t,n){return Tt.add(e.array,t.array,n.array),e._dirty=!0,e},Ct.set=function(e,t,n,r,i){Tt.set(e.array,t,n,r,i),e._dirty=!0},Ct.copy=function(e,t){return Tt.copy(e.array,t.array),e._dirty=!0,e},Ct.calculateW=function(e,t){return Tt.calculateW(e.array,t.array),e._dirty=!0,e},Ct.conjugate=function(e,t){return Tt.conjugate(e.array,t.array),e._dirty=!0,e},Ct.identity=function(e){return Tt.identity(e.array),e._dirty=!0,e},Ct.invert=function(e,t){return Tt.invert(e.array,t.array),e._dirty=!0,e},Ct.dot=function(e,t){return Tt.dot(e.array,t.array)},Ct.len=function(e){return Tt.length(e.array)},Ct.lerp=function(e,t,n,r){return Tt.lerp(e.array,t.array,n.array,r),e._dirty=!0,e},Ct.slerp=function(e,t,n,r){return Tt.slerp(e.array,t.array,n.array,r),e._dirty=!0,e},Ct.mul=function(e,t,n){return Tt.multiply(e.array,t.array,n.array),e._dirty=!0,e},Ct.multiply=Ct.mul,Ct.rotateX=function(e,t,n){return Tt.rotateX(e.array,t.array,n),e._dirty=!0,e},Ct.rotateY=function(e,t,n){return Tt.rotateY(e.array,t.array,n),e._dirty=!0,e},Ct.rotateZ=function(e,t,n){return Tt.rotateZ(e.array,t.array,n),e._dirty=!0,e},Ct.setAxisAngle=function(e,t,n){return Tt.setAxisAngle(e.array,t.array,n),e._dirty=!0,e},Ct.normalize=function(e,t){return Tt.normalize(e.array,t.array),e._dirty=!0,e},Ct.sqrLen=function(e){return Tt.sqrLen(e.array)},Ct.squaredLength=Ct.sqrLen,Ct.fromMat3=function(e,t){return Tt.fromMat3(e.array,t.array),e._dirty=!0,e},Ct.setAxes=function(e,t,n,r){return Tt.setAxes(e.array,t.array,n.array,r.array),e._dirty=!0,e},Ct.rotationTo=function(e,t,n){return Tt.rotationTo(e.array,t.array,n.array),e._dirty=!0,e},Ct.fromEuler=function(e,t,n){e._dirty=!0,t=t.array;var r=e.array,i=Math.cos(t[0]/2),a=Math.cos(t[1]/2),o=Math.cos(t[2]/2),s=Math.sin(t[0]/2),l=Math.sin(t[1]/2),u=Math.sin(t[2]/2);n=(n||"XYZ").toUpperCase();switch(n){case"XYZ":r[0]=s*a*o+i*l*u,r[1]=i*l*o-s*a*u,r[2]=i*a*u+s*l*o,r[3]=i*a*o-s*l*u;break;case"YXZ":r[0]=s*a*o+i*l*u,r[1]=i*l*o-s*a*u,r[2]=i*a*u-s*l*o,r[3]=i*a*o+s*l*u;break;case"ZXY":r[0]=s*a*o-i*l*u,r[1]=i*l*o+s*a*u,r[2]=i*a*u+s*l*o,r[3]=i*a*o-s*l*u;break;case"ZYX":r[0]=s*a*o-i*l*u,r[1]=i*l*o+s*a*u,r[2]=i*a*u-s*l*o,r[3]=i*a*o+s*l*u;break;case"YZX":r[0]=s*a*o+i*l*u,r[1]=i*l*o+s*a*u,r[2]=i*a*u-s*l*o,r[3]=i*a*o-s*l*u;break;case"XZY":r[0]=s*a*o-i*l*u,r[1]=i*l*o-s*a*u,r[2]=i*a*u+s*l*o,r[3]=i*a*o+s*l*u;break}};var Lt=Ct,Pt=Ke.set,kt=Ke.copy,Rt=function(e,t){this.min=e||new gt(1/0,1/0,1/0),this.max=t||new gt(-1/0,-1/0,-1/0),this.vertices=null};Rt.prototype={constructor:Rt,updateFromVertices:function(e){if(e.length>0){var t=this.min,n=this.max,r=t.array,i=n.array;kt(r,e[0]),kt(i,e[0]);for(var a=1;a<e.length;a++){var o=e[a];o[0]<r[0]&&(r[0]=o[0]),o[1]<r[1]&&(r[1]=o[1]),o[2]<r[2]&&(r[2]=o[2]),o[0]>i[0]&&(i[0]=o[0]),o[1]>i[1]&&(i[1]=o[1]),o[2]>i[2]&&(i[2]=o[2])}t._dirty=!0,n._dirty=!0}},union:function(e){var t=this.min,n=this.max;return Ke.min(t.array,t.array,e.min.array),Ke.max(n.array,n.array,e.max.array),t._dirty=!0,n._dirty=!0,this},intersection:function(e){var t=this.min,n=this.max;return Ke.max(t.array,t.array,e.min.array),Ke.min(n.array,n.array,e.max.array),t._dirty=!0,n._dirty=!0,this},intersectBoundingBox:function(e){var t=this.min.array,n=this.max.array,r=e.min.array,i=e.max.array;return!(t[0]>i[0]||t[1]>i[1]||t[2]>i[2]||n[0]<r[0]||n[1]<r[1]||n[2]<r[2])},containBoundingBox:function(e){var t=this.min.array,n=this.max.array,r=e.min.array,i=e.max.array;return t[0]<=r[0]&&t[1]<=r[1]&&t[2]<=r[2]&&n[0]>=i[0]&&n[1]>=i[1]&&n[2]>=i[2]},containPoint:function(e){var t=this.min.array,n=this.max.array,r=e.array;return t[0]<=r[0]&&t[1]<=r[1]&&t[2]<=r[2]&&n[0]>=r[0]&&n[1]>=r[1]&&n[2]>=r[2]},isFinite:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){var e=this.min.array,t=this.max.array;return isFinite(e[0])&&isFinite(e[1])&&isFinite(e[2])&&isFinite(t[0])&&isFinite(t[1])&&isFinite(t[2])})),applyTransform:function(e){this.transformFrom(this,e)},transformFrom:function(){var e=Ke.create(),t=Ke.create(),n=Ke.create(),r=Ke.create(),i=Ke.create(),a=Ke.create();return function(o,s){var l=o.min.array,u=o.max.array,c=s.array;return e[0]=c[0]*l[0],e[1]=c[1]*l[0],e[2]=c[2]*l[0],t[0]=c[0]*u[0],t[1]=c[1]*u[0],t[2]=c[2]*u[0],n[0]=c[4]*l[1],n[1]=c[5]*l[1],n[2]=c[6]*l[1],r[0]=c[4]*u[1],r[1]=c[5]*u[1],r[2]=c[6]*u[1],i[0]=c[8]*l[2],i[1]=c[9]*l[2],i[2]=c[10]*l[2],a[0]=c[8]*u[2],a[1]=c[9]*u[2],a[2]=c[10]*u[2],l=this.min.array,u=this.max.array,l[0]=Math.min(e[0],t[0])+Math.min(n[0],r[0])+Math.min(i[0],a[0])+c[12],l[1]=Math.min(e[1],t[1])+Math.min(n[1],r[1])+Math.min(i[1],a[1])+c[13],l[2]=Math.min(e[2],t[2])+Math.min(n[2],r[2])+Math.min(i[2],a[2])+c[14],u[0]=Math.max(e[0],t[0])+Math.max(n[0],r[0])+Math.max(i[0],a[0])+c[12],u[1]=Math.max(e[1],t[1])+Math.max(n[1],r[1])+Math.max(i[1],a[1])+c[13],u[2]=Math.max(e[2],t[2])+Math.max(n[2],r[2])+Math.max(i[2],a[2])+c[14],this.min._dirty=!0,this.max._dirty=!0,this}}(),applyProjection:function(e){var t=this.min.array,n=this.max.array,r=e.array,i=t[0],a=t[1],o=t[2],s=n[0],l=n[1],u=t[2],c=n[0],h=n[1],d=n[2];if(1===r[15])t[0]=r[0]*i+r[12],t[1]=r[5]*a+r[13],n[2]=r[10]*o+r[14],n[0]=r[0]*c+r[12],n[1]=r[5]*h+r[13],t[2]=r[10]*d+r[14];else{var f=-1/o;t[0]=r[0]*i*f,t[1]=r[5]*a*f,n[2]=(r[10]*o+r[14])*f,f=-1/u,n[0]=r[0]*s*f,n[1]=r[5]*l*f,f=-1/d,t[2]=(r[10]*d+r[14])*f}return this.min._dirty=!0,this.max._dirty=!0,this},updateVertices:function(){var e=this.vertices;if(!e){e=[];for(var t=0;t<8;t++)e[t]=Ke.fromValues(0,0,0);this.vertices=e}var n=this.min.array,r=this.max.array;return Pt(e[0],n[0],n[1],n[2]),Pt(e[1],n[0],r[1],n[2]),Pt(e[2],r[0],n[1],n[2]),Pt(e[3],r[0],r[1],n[2]),Pt(e[4],n[0],n[1],r[2]),Pt(e[5],n[0],r[1],r[2]),Pt(e[6],r[0],n[1],r[2]),Pt(e[7],r[0],r[1],r[2]),this},copy:function(e){var t=this.min,n=this.max;return kt(t.array,e.min.array),kt(n.array,e.max.array),t._dirty=!0,n._dirty=!0,this},clone:function(){var e=new Rt;return e.copy(this),e}};var Nt=Rt,jt=0,Ft=_.extend({name:"",position:null,rotation:null,scale:null,worldTransform:null,localTransform:null,autoUpdateLocalTransform:!0,_parent:null,_scene:null,_needsUpdateWorldTransform:!0,_inIterating:!1,__depth:0},(function(){this.name||(this.name=(this.type||"NODE")+"_"+jt++),this.position||(this.position=new gt),this.rotation||(this.rotation=new Lt),this.scale||(this.scale=new gt(1,1,1)),this.worldTransform=new At,this.localTransform=new At,this._children=[]}),{target:null,invisible:!1,isSkinnedMesh:function(){return!1},isRenderable:function(){return!1},setName:function(e){var t=this._scene;if(t){var n=t._nodeRepository;delete n[this.name],n[e]=this}this.name=e},add:function(e){var t=e._parent;if(t!==this){t&&t.remove(e),e._parent=this,this._children.push(e);var n=this._scene;n&&n!==e.scene&&e.traverse(this._addSelfToScene,this),e._needsUpdateWorldTransform=!0}},remove:function(e){var t=this._children,n=t.indexOf(e);n<0||(t.splice(n,1),e._parent=null,this._scene&&e.traverse(this._removeSelfFromScene,this))},removeAll:function(){for(var e=this._children,t=0;t<e.length;t++)e[t]._parent=null,this._scene&&e[t].traverse(this._removeSelfFromScene,this);this._children=[]},getScene:function(){return this._scene},getParent:function(){return this._parent},_removeSelfFromScene:function(e){e._scene.removeFromScene(e),e._scene=null},_addSelfToScene:function(e){this._scene.addToScene(e),e._scene=this._scene},isAncestor:function(e){var t=e._parent;while(t){if(t===this)return!0;t=t._parent}return!1},children:function(){return this._children.slice()},childAt:function(e){return this._children[e]},getChildByName:function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},getDescendantByName:function(e){for(var t=this._children,n=0;n<t.length;n++){var r=t[n];if(r.name===e)return r;var i=r.getDescendantByName(e);if(i)return i}},queryNode:function(e){if(e){for(var t=e.split("/"),n=this,r=0;r<t.length;r++){var i=t[r];if(i){for(var a=!1,o=n._children,s=0;s<o.length;s++){var l=o[s];if(l.name===i){n=l,a=!0;break}}if(!a)return}}return n}},getPath:function(e){if(!this._parent)return"/";var t=this._parent,n=this.name;while(t._parent){if(n=t.name+"/"+n,t._parent==e)break;t=t._parent}return!t._parent&&e?null:n},traverse:function(e,t){e.call(t,this);for(var n=this._children,r=0,i=n.length;r<i;r++)n[r].traverse(e,t)},eachChild:function(e,t){for(var n=this._children,r=0,i=n.length;r<i;r++){var a=n[r];e.call(t,a,r)}},setLocalTransform:function(e){Xe.copy(this.localTransform.array,e.array),this.decomposeLocalTransform()},decomposeLocalTransform:function(e){var t=e?null:this.scale;this.localTransform.decomposeMatrix(t,this.rotation,this.position)},setWorldTransform:function(e){Xe.copy(this.worldTransform.array,e.array),this.decomposeWorldTransform()},decomposeWorldTransform:function(){var e=Xe.create();return function(t){var n=this.localTransform,r=this.worldTransform;this._parent?(Xe.invert(e,this._parent.worldTransform.array),Xe.multiply(n.array,e,r.array)):Xe.copy(n.array,r.array);var i=t?null:this.scale;n.decomposeMatrix(i,this.rotation,this.position)}}(),transformNeedsUpdate:function(){return this.position._dirty||this.rotation._dirty||this.scale._dirty},updateLocalTransform:function(){var e=this.position,t=this.rotation,n=this.scale;if(this.transformNeedsUpdate()){var r=this.localTransform.array;Xe.fromRotationTranslation(r,t.array,e.array),Xe.scale(r,r,n.array),t._dirty=!1,n._dirty=!1,e._dirty=!1,this._needsUpdateWorldTransform=!0}},_updateWorldTransformTopDown:function(){var e=this.localTransform.array,t=this.worldTransform.array;this._parent?Xe.multiplyAffine(t,this._parent.worldTransform.array,e):Xe.copy(t,e)},updateWorldTransform:function(){var e=this;while(e&&e.getParent()&&e.getParent().transformNeedsUpdate())e=e.getParent();e.update()},update:function(e){this.autoUpdateLocalTransform?this.updateLocalTransform():e=!0,(e||this._needsUpdateWorldTransform)&&(this._updateWorldTransformTopDown(),e=!0,this._needsUpdateWorldTransform=!1);for(var t=this._children,n=0,r=t.length;n<r;n++)t[n].update(e)},getBoundingBox:function(){function e(e){return!e.invisible&&e.geometry}var t=new Nt,n=new At,r=new At;return function(i,a){return a=a||new Nt,i=i||e,this._parent?At.invert(r,this._parent.worldTransform):At.identity(r),this.traverse((function(e){e.geometry&&e.geometry.boundingBox&&(t.copy(e.geometry.boundingBox),At.multiply(n,r,e.worldTransform),t.applyTransform(n),a.union(t))}),this,e),a}}(),getWorldPosition:function(e){this.transformNeedsUpdate()&&this.updateWorldTransform();var t=this.worldTransform.array;if(e){var n=e.array;return n[0]=t[12],n[1]=t[13],n[2]=t[14],e}return new gt(t[12],t[13],t[14])},clone:function(){var e=new this.constructor,t=this._children;e.setName(this.name),e.position.copy(this.position),e.rotation.copy(this.rotation),e.scale.copy(this.scale);for(var n=0;n<t.length;n++)e.add(t[n].clone());return e},rotateAround:function(){var e=new gt,t=new At;return function(n,r,i){e.copy(this.position).subtract(n);var a=this.localTransform;a.identity(),a.translate(n),a.rotate(i,r),t.fromRotationTranslation(this.rotation,e),a.multiply(t),a.scale(this.scale),this.decomposeLocalTransform(),this._needsUpdateWorldTransform=!0}}(),lookAt:function(){var e=new At;return function(t,n){e.lookAt(this.position,t,n||this.localTransform.y).invert(),this.setLocalTransform(e),this.target=t}}()}),zt=Ft,Bt=zt.extend({material:null,geometry:null,mode:O.TRIANGLES,_renderInfo:null},{__program:null,lightGroup:0,renderOrder:0,culling:!0,cullFace:O.BACK,frontFace:O.CCW,frustumCulling:!0,receiveShadow:!0,castShadow:!0,ignorePicking:!1,ignorePreZ:!1,ignoreGBuffer:!1,isRenderable:function(){return this.geometry&&this.material&&this.material.shader&&!this.invisible&&this.geometry.vertexCount>0},beforeRender:function(e){},afterRender:function(e,t){},getBoundingBox:function(e,t){return t=zt.prototype.getBoundingBox.call(this,e,t),this.geometry&&this.geometry.boundingBox&&t.union(this.geometry.boundingBox),t},clone:function(){var e=["castShadow","receiveShadow","mode","culling","cullFace","frontFace","frustumCulling","renderOrder","lineWidth","ignorePicking","ignorePreZ","ignoreGBuffer"];return function(){var t=zt.prototype.clone.call(this);t.geometry=this.geometry,t.material=this.material;for(var n=0;n<e.length;n++){var r=e[n];t[r]!==this[r]&&(t[r]=this[r])}return t}}()});Bt.POINTS=O.POINTS,Bt.LINES=O.LINES,Bt.LINE_LOOP=O.LINE_LOOP,Bt.LINE_STRIP=O.LINE_STRIP,Bt.TRIANGLES=O.TRIANGLES,Bt.TRIANGLE_STRIP=O.TRIANGLE_STRIP,Bt.TRIANGLE_FAN=O.TRIANGLE_FAN,Bt.BACK=O.BACK,Bt.FRONT=O.FRONT,Bt.FRONT_AND_BACK=O.FRONT_AND_BACK,Bt.CW=O.CW,Bt.CCW=O.CCW;var Vt=Bt,Gt=_.extend({scene:null,camera:null,renderer:null},(function(){this._ray=new yt,this._ndc=new se}),{pick:function(e,t,n){var r=this.pickAll(e,t,[],n);return r[0]||null},pickAll:function(e,t,n,r){return this.renderer.screenToNDC(e,t,this._ndc),this.camera.castRay(this._ndc,this._ray),n=n||[],this._intersectNode(this.scene,n,r||!1),n.sort(this._intersectionCompareFunc),n},_intersectNode:function(e,t,n){e instanceof Vt&&e.isRenderable()&&(e.ignorePicking&&!n||!(e.mode===O.TRIANGLES&&e.geometry.isUseIndices()||e.geometry.pickByRay||e.geometry.pick)||this._intersectRenderable(e,t));for(var r=0;r<e._children.length;r++)this._intersectNode(e._children[r],t,n)},_intersectRenderable:function(){var e=new gt,t=new gt,n=new gt,r=new yt,i=new At;return function(a,o){var s=a.isSkinnedMesh();r.copy(this._ray),At.invert(i,a.worldTransform),s||r.applyTransform(i);var l=a.geometry,u=s?a.skeleton.boundingBox:l.boundingBox;if(!u||r.intersectBoundingBox(u))if(l.pick)l.pick(this._ndc.x,this._ndc.y,this.renderer,this.camera,a,o);else if(l.pickByRay)l.pickByRay(r,a,o);else{var c,h,d=a.cullFace===O.BACK&&a.frontFace===O.CCW||a.cullFace===O.FRONT&&a.frontFace===O.CW,f=l.indices,p=l.attributes.position,g=l.attributes.weight,m=l.attributes.joint,v=[];if(p&&p.value&&f){if(s){h=a.skeleton.getSubSkinMatrices(a.__uid__,a.joints);for(var y=0;y<a.joints.length;y++){v[y]=v[y]||[];for(var b=0;b<16;b++)v[y][b]=h[16*y+b]}var _=[],x=[],w=[],S=[],T=[],M=l.attributes.skinnedPosition;M&&M.value||(l.createAttribute("skinnedPosition","f",3),M=l.attributes.skinnedPosition,M.init(l.vertexCount));for(y=0;y<l.vertexCount;y++){p.get(y,_),g.get(y,x),m.get(y,w),x[3]=1-x[0]-x[1]-x[2],Ke.set(S,0,0,0);for(b=0;b<4;b++)w[b]>=0&&x[b]>1e-4&&(Ke.transformMat4(T,_,v[w[b]]),Ke.scaleAndAdd(S,S,T,x[b]));M.set(y,S)}}for(y=0;y<f.length;y+=3){var E=f[y],A=f[y+1],C=f[y+2],I=s?l.attributes.skinnedPosition:p;if(I.get(E,e.array),I.get(A,t.array),I.get(C,n.array),c=d?r.intersectTriangle(e,t,n,a.culling):r.intersectTriangle(e,n,t,a.culling),c){var D=new gt;s?gt.copy(D,c):gt.transformMat4(D,c,a.worldTransform),o.push(new Gt.Intersection(c,D,a,[E,A,C],y/3,gt.dist(D,this._ray.origin)))}}}}}}(),_intersectionCompareFunc:function(e,t){return e.distance-t.distance}});Gt.Intersection=function(e,t,n,r,i,a){this.point=e,this.pointWorld=t,this.target=n,this.triangle=r,this.triangleIndex=i,this.distance=a};var Ht=Gt,Ut="__dt__",Wt=function(){this._contextId=0,this._caches=[],this._context={}};Wt.prototype={use:function(e,t){var n=this._caches;n[e]||(n[e]={},t&&(n[e]=t())),this._contextId=e,this._context=n[e]},put:function(e,t){this._context[e]=t},get:function(e){return this._context[e]},dirty:function(e){e=e||"";var t=Ut+e;this.put(t,!0)},dirtyAll:function(e){e=e||"";for(var t=Ut+e,n=this._caches,r=0;r<n.length;r++)n[r]&&(n[r][t]=!0)},fresh:function(e){e=e||"";var t=Ut+e;this.put(t,!1)},freshAll:function(e){e=e||"";for(var t=Ut+e,n=this._caches,r=0;r<n.length;r++)n[r]&&(n[r][t]=!1)},isDirty:function(e){e=e||"";var t=Ut+e,n=this._context;return!n.hasOwnProperty(t)||!0===n[t]},deleteContext:function(e){delete this._caches[e],this._context={}},delete:function(e){delete this._context[e]},clearAll:function(){this._caches={}},getContext:function(){return this._context},eachContext:function(e,t){var n=Object.keys(this._caches);n.forEach((function(n){e&&e.call(t,n)}))},miss:function(e){return!this._context.hasOwnProperty(e)}},Wt.prototype.constructor=Wt;var Xt=Wt,Yt=_.extend({width:512,height:512,type:O.UNSIGNED_BYTE,format:O.RGBA,wrapS:O.REPEAT,wrapT:O.REPEAT,minFilter:O.LINEAR_MIPMAP_LINEAR,magFilter:O.LINEAR,useMipmap:!0,anisotropic:1,flipY:!0,sRGB:!0,unpackAlignment:4,premultiplyAlpha:!1,dynamic:!1,NPOT:!1,__used:0},(function(){this._cache=new Xt}),{getWebGLTexture:function(e){var t=e.gl,n=this._cache;return n.use(e.__uid__),n.miss("webgl_texture")&&n.put("webgl_texture",t.createTexture()),this.dynamic?this.update(e):n.isDirty()&&(this.update(e),n.fresh()),n.get("webgl_texture")},bind:function(){},unbind:function(){},dirty:function(){this._cache&&this._cache.dirtyAll()},update:function(e){},updateCommon:function(e){var t=e.gl;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,this.flipY),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this.premultiplyAlpha),t.pixelStorei(t.UNPACK_ALIGNMENT,this.unpackAlignment),this.format===O.DEPTH_COMPONENT&&(this.useMipmap=!1);var n=e.getGLExtension("EXT_sRGB");this.format!==Yt.SRGB||n||(this.format=Yt.RGB),this.format!==Yt.SRGB_ALPHA||n||(this.format=Yt.RGBA),this.NPOT=!this.isPowerOfTwo()},getAvailableWrapS:function(){return this.NPOT?O.CLAMP_TO_EDGE:this.wrapS},getAvailableWrapT:function(){return this.NPOT?O.CLAMP_TO_EDGE:this.wrapT},getAvailableMinFilter:function(){var e=this.minFilter;return this.NPOT||!this.useMipmap?e===O.NEAREST_MIPMAP_NEAREST||e===O.NEAREST_MIPMAP_LINEAR?O.NEAREST:e===O.LINEAR_MIPMAP_LINEAR||e===O.LINEAR_MIPMAP_NEAREST?O.LINEAR:e:e},getAvailableMagFilter:function(){return this.magFilter},nextHighestPowerOfTwo:function(e){--e;for(var t=1;t<32;t<<=1)e|=e>>t;return e+1},dispose:function(e){var t=this._cache;t.use(e.__uid__);var n=t.get("webgl_texture");n&&e.gl.deleteTexture(n),t.deleteContext(e.__uid__)},isRenderable:function(){},isPowerOfTwo:function(){}});Object.defineProperty(Yt.prototype,"width",{get:function(){return this._width},set:function(e){this._width=e}}),Object.defineProperty(Yt.prototype,"height",{get:function(){return this._height},set:function(e){this._height=e}}),Yt.BYTE=O.BYTE,Yt.UNSIGNED_BYTE=O.UNSIGNED_BYTE,Yt.SHORT=O.SHORT,Yt.UNSIGNED_SHORT=O.UNSIGNED_SHORT,Yt.INT=O.INT,Yt.UNSIGNED_INT=O.UNSIGNED_INT,Yt.FLOAT=O.FLOAT,Yt.HALF_FLOAT=36193,Yt.UNSIGNED_INT_24_8_WEBGL=34042,Yt.DEPTH_COMPONENT=O.DEPTH_COMPONENT,Yt.DEPTH_STENCIL=O.DEPTH_STENCIL,Yt.ALPHA=O.ALPHA,Yt.RGB=O.RGB,Yt.RGBA=O.RGBA,Yt.LUMINANCE=O.LUMINANCE,Yt.LUMINANCE_ALPHA=O.LUMINANCE_ALPHA,Yt.SRGB=35904,Yt.SRGB_ALPHA=35906,Yt.COMPRESSED_RGB_S3TC_DXT1_EXT=33776,Yt.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777,Yt.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778,Yt.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779,Yt.NEAREST=O.NEAREST,Yt.LINEAR=O.LINEAR,Yt.NEAREST_MIPMAP_NEAREST=O.NEAREST_MIPMAP_NEAREST,Yt.LINEAR_MIPMAP_NEAREST=O.LINEAR_MIPMAP_NEAREST,Yt.NEAREST_MIPMAP_LINEAR=O.NEAREST_MIPMAP_LINEAR,Yt.LINEAR_MIPMAP_LINEAR=O.LINEAR_MIPMAP_LINEAR,Yt.REPEAT=O.REPEAT,Yt.CLAMP_TO_EDGE=O.CLAMP_TO_EDGE,Yt.MIRRORED_REPEAT=O.MIRRORED_REPEAT;var Kt=Yt,qt=Vt.extend({skeleton:null,joints:null},(function(){this.joints||(this.joints=[])}),{offsetMatrix:null,isInstancedMesh:function(){return!1},isSkinnedMesh:function(){return!!(this.skeleton&&this.joints&&this.joints.length>0)},clone:function(){var e=Vt.prototype.clone.call(this);return e.skeleton=this.skeleton,this.joints&&(e.joints=this.joints.slice()),e}});qt.POINTS=O.POINTS,qt.LINES=O.LINES,qt.LINE_LOOP=O.LINE_LOOP,qt.LINE_STRIP=O.LINE_STRIP,qt.TRIANGLES=O.TRIANGLES,qt.TRIANGLE_STRIP=O.TRIANGLE_STRIP,qt.TRIANGLE_FAN=O.TRIANGLE_FAN,qt.BACK=O.BACK,qt.FRONT=O.FRONT,qt.FRONT_AND_BACK=O.FRONT_AND_BACK,qt.CW=O.CW,qt.CCW=O.CCW;var Zt=qt,$t={isPowerOfTwo:function(e){return 0===(e&e-1)},nextPowerOfTwo:function(e){return e--,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,e++,e},nearestPowerOfTwo:function(e){return Math.pow(2,Math.round(Math.log(e)/Math.LN2))}},Qt=$t,Jt=Qt.isPowerOfTwo;function en(e){return Math.pow(2,Math.round(Math.log(e)/Math.LN2))}function tn(e,t){var n=en(e.width),r=en(e.height);t=t||document.createElement("canvas"),t.width=n,t.height=r;var i=t.getContext("2d");return i.drawImage(e.image,0,0,n,r),t}var nn=Kt.extend((function(){return{image:null,pixels:null,mipmaps:[],convertToPOT:!1}}),{textureType:"texture2D",update:function(e){var t=e.gl;t.bindTexture(t.TEXTURE_2D,this._cache.get("webgl_texture")),this.updateCommon(e);var n=this.format,r=this.type,i=!(!this.convertToPOT||this.mipmaps.length||!this.image||this.wrapS!==Kt.REPEAT&&this.wrapT!==Kt.REPEAT||!this.NPOT);t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,i?this.wrapS:this.getAvailableWrapS()),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,i?this.wrapT:this.getAvailableWrapT()),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,i?this.magFilter:this.getAvailableMagFilter()),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,i?this.minFilter:this.getAvailableMinFilter());var a=e.getGLExtension("EXT_texture_filter_anisotropic");if(a&&this.anisotropic>1&&t.texParameterf(t.TEXTURE_2D,a.TEXTURE_MAX_ANISOTROPY_EXT,this.anisotropic),36193===r){var o=e.getGLExtension("OES_texture_half_float");o||(r=O.FLOAT)}if(this.mipmaps.length)for(var s=this.width,l=this.height,u=0;u<this.mipmaps.length;u++){var c=this.mipmaps[u];this._updateTextureData(t,c,u,s,l,n,r,!1),s/=2,l/=2}else this._updateTextureData(t,this,0,this.width,this.height,n,r,i),!this.useMipmap||this.NPOT&&!i||t.generateMipmap(t.TEXTURE_2D);t.bindTexture(t.TEXTURE_2D,null)},_updateTextureData:function(e,t,n,r,i,a,o,s){if(t.image){var l=t.image;s&&(this._potCanvas=tn(this,this._potCanvas),l=this._potCanvas),e.texImage2D(e.TEXTURE_2D,n,a,a,o,l)}else a<=Kt.COMPRESSED_RGBA_S3TC_DXT5_EXT&&a>=Kt.COMPRESSED_RGB_S3TC_DXT1_EXT?e.compressedTexImage2D(e.TEXTURE_2D,n,a,r,i,0,t.pixels):e.texImage2D(e.TEXTURE_2D,n,a,r,i,0,a,o,t.pixels)},generateMipmap:function(e){var t=e.gl;this.useMipmap&&!this.NPOT&&(t.bindTexture(t.TEXTURE_2D,this._cache.get("webgl_texture")),t.generateMipmap(t.TEXTURE_2D))},isPowerOfTwo:function(){return Jt(this.width)&&Jt(this.height)},isRenderable:function(){return this.image?this.image.width>0&&this.image.height>0:!(!this.width||!this.height)},bind:function(e){e.gl.bindTexture(e.gl.TEXTURE_2D,this.getWebGLTexture(e))},unbind:function(e){e.gl.bindTexture(e.gl.TEXTURE_2D,null)},load:function(e,t){var n=M["a"].createImage();t&&(n.crossOrigin=t);var r=this;return n.onload=function(){r.dirty(),r.trigger("success",r)},n.onerror=function(){r.trigger("error",r)},n.src=e,this.image=n,this}});Object.defineProperty(nn.prototype,"width",{get:function(){return this.image?this.image.width:this._width},set:function(e){this.image?console.warn("Texture from image can't set width"):(this._width!==e&&this.dirty(),this._width=e)}}),Object.defineProperty(nn.prototype,"height",{get:function(){return this.image?this.image.height:this._height},set:function(e){this.image?console.warn("Texture from image can't set height"):(this._height!==e&&this.dirty(),this._height=e)}});var rn=nn;function an(e){return{byte:M["a"].Int8Array,ubyte:M["a"].Uint8Array,short:M["a"].Int16Array,ushort:M["a"].Uint16Array}[e]||M["a"].Float32Array}function on(e){return"attr_"+e}function sn(e,t,n,r){switch(this.name=e,this.type=t,this.size=n,this.semantic=r||"",this.value=null,n){case 1:this.get=function(e){return this.value[e]},this.set=function(e,t){this.value[e]=t},this.copy=function(e,t){this.value[e]=this.value[e]};break;case 2:this.get=function(e,t){var n=this.value;return t[0]=n[2*e],t[1]=n[2*e+1],t},this.set=function(e,t){var n=this.value;n[2*e]=t[0],n[2*e+1]=t[1]},this.copy=function(e,t){var n=this.value;t*=2,e*=2,n[e]=n[t],n[e+1]=n[t+1]};break;case 3:this.get=function(e,t){var n=3*e,r=this.value;return t[0]=r[n],t[1]=r[n+1],t[2]=r[n+2],t},this.set=function(e,t){var n=3*e,r=this.value;r[n]=t[0],r[n+1]=t[1],r[n+2]=t[2]},this.copy=function(e,t){var n=this.value;t*=3,e*=3,n[e]=n[t],n[e+1]=n[t+1],n[e+2]=n[t+2]};break;case 4:this.get=function(e,t){var n=this.value,r=4*e;return t[0]=n[r],t[1]=n[r+1],t[2]=n[r+2],t[3]=n[r+3],t},this.set=function(e,t){var n=this.value,r=4*e;n[r]=t[0],n[r+1]=t[1],n[r+2]=t[2],n[r+3]=t[3]},this.copy=function(e,t){var n=this.value;t*=4,e*=4,n[e]=n[t],n[e+1]=n[t+1],n[e+2]=n[t+2],n[e+3]=n[t+3]}}}function ln(e,t,n,r,i){this.name=e,this.type=t,this.buffer=n,this.size=r,this.semantic=i,this.symbol="",this.needsRemove=!1}function un(e){this.buffer=e,this.count=0}sn.prototype.init=function(e){if(!this.value||this.value.length!==e*this.size){var t=an(this.type);this.value=new t(e*this.size)}},sn.prototype.fromArray=function(e){var t,n=an(this.type);if(e[0]&&e[0].length){var r=0,i=this.size;t=new n(e.length*i);for(var a=0;a<e.length;a++)for(var o=0;o<i;o++)t[r++]=e[a][o]}else t=new n(e);this.value=t},sn.prototype.clone=function(e){var t=new sn(this.name,this.type,this.size,this.semantic);return e&&console.warn("todo"),t};var cn=_.extend((function(){return{attributes:{},indices:null,dynamic:!0,_enabledAttributes:null,__used:0}}),(function(){this._cache=new Xt,this._attributeList=Object.keys(this.attributes),this.__vaoCache={}}),{mainAttribute:"",pick:null,pickByRay:null,dirty:function(){for(var e=this.getEnabledAttributes(),t=0;t<e.length;t++)this.dirtyAttribute(e[t]);this.dirtyIndices(),this._enabledAttributes=null,this._cache.dirty("any")},dirtyIndices:function(){this._cache.dirtyAll("indices")},dirtyAttribute:function(e){this._cache.dirtyAll(on(e)),this._cache.dirtyAll("attributes")},getTriangleIndices:function(e,t){if(e<this.triangleCount&&e>=0){t||(t=[]);var n=this.indices;return t[0]=n[3*e],t[1]=n[3*e+1],t[2]=n[3*e+2],t}},setTriangleIndices:function(e,t){var n=this.indices;n[3*e]=t[0],n[3*e+1]=t[1],n[3*e+2]=t[2]},isUseIndices:function(){return!!this.indices},initIndicesFromArray:function(e){var t,n=this.vertexCount>65535?M["a"].Uint32Array:M["a"].Uint16Array;if(e[0]&&e[0].length){var r=0,i=3;t=new n(e.length*i);for(var a=0;a<e.length;a++)for(var o=0;o<i;o++)t[r++]=e[a][o]}else t=new n(e);this.indices=t},createAttribute:function(e,t,n,r){var i=new sn(e,t,n,r);return this.attributes[e]&&this.removeAttribute(e),this.attributes[e]=i,this._attributeList.push(e),i},removeAttribute:function(e){var t=this._attributeList,n=t.indexOf(e);return n>=0&&(t.splice(n,1),delete this.attributes[e],!0)},getAttribute:function(e){return this.attributes[e]},getEnabledAttributes:function(){var e=this._enabledAttributes,t=this._attributeList;if(e)return e;for(var n=[],r=this.vertexCount,i=0;i<t.length;i++){var a=t[i],o=this.attributes[a];o.value&&o.value.length===r*o.size&&n.push(a)}return this._enabledAttributes=n,n},getBufferChunks:function(e){var t=this._cache;t.use(e.__uid__);var n=t.isDirty("attributes"),r=t.isDirty("indices");if(n||r){this._updateBuffer(e.gl,n,r);for(var i=this.getEnabledAttributes(),a=0;a<i.length;a++)t.fresh(on(i[a]));t.fresh("attributes"),t.fresh("indices")}return t.fresh("any"),t.get("chunks")},_updateBuffer:function(e,t,n){var r=this._cache,i=r.get("chunks"),a=!1;i||(i=[],i[0]={attributeBuffers:[],indicesBuffer:null},r.put("chunks",i),a=!0);var o=i[0],s=o.attributeBuffers,l=o.indicesBuffer;if(t||a){var u=this.getEnabledAttributes(),c={};if(!a)for(var h=0;h<s.length;h++)c[s[h].name]=s[h];for(var d=0;d<u.length;d++){var f,p,g=u[d],m=this.attributes[g];a||(f=c[g]),p=f?f.buffer:e.createBuffer(),r.isDirty(on(g))&&(e.bindBuffer(e.ARRAY_BUFFER,p),e.bufferData(e.ARRAY_BUFFER,m.value,this.dynamic?e.DYNAMIC_DRAW:e.STATIC_DRAW)),s[d]=new ln(g,m.type,p,m.size,m.semantic)}for(h=d;h<s.length;h++)e.deleteBuffer(s[h].buffer);s.length=d}this.isUseIndices()&&(n||a)&&(l||(l=new un(e.createBuffer()),o.indicesBuffer=l),l.count=this.indices.length,e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,l.buffer),e.bufferData(e.ELEMENT_ARRAY_BUFFER,this.indices,this.dynamic?e.DYNAMIC_DRAW:e.STATIC_DRAW))},dispose:function(e){var t=this._cache;t.use(e.__uid__);var n=t.get("chunks");if(n)for(var r=0;r<n.length;r++){for(var i=n[r],a=0;a<i.attributeBuffers.length;a++){var o=i.attributeBuffers[a];e.gl.deleteBuffer(o.buffer)}i.indicesBuffer&&e.gl.deleteBuffer(i.indicesBuffer.buffer)}if(this.__vaoCache){var s=e.getGLExtension("OES_vertex_array_object");for(var l in this.__vaoCache){var u=this.__vaoCache[l].vao;u&&s.deleteVertexArrayOES(u)}}this.__vaoCache={},t.deleteContext(e.__uid__)}});Object.defineProperty&&(Object.defineProperty(cn.prototype,"vertexCount",{enumerable:!1,get:function(){var e=this.attributes[this.mainAttribute];return e||(e=this.attributes[this._attributeList[0]]),e&&e.value?e.value.length/e.size:0}}),Object.defineProperty(cn.prototype,"triangleCount",{enumerable:!1,get:function(){var e=this.indices;return e?e.length/3:0}})),cn.STATIC_DRAW=O.STATIC_DRAW,cn.DYNAMIC_DRAW=O.DYNAMIC_DRAW,cn.STREAM_DRAW=O.STREAM_DRAW,cn.AttributeBuffer=ln,cn.IndicesBuffer=un,cn.Attribute=sn;var hn=cn,dn=Ke.create,fn=Ke.add,pn=Ke.set,gn=hn.Attribute,mn=hn.extend((function(){return{attributes:{position:new gn("position","float",3,"POSITION"),texcoord0:new gn("texcoord0","float",2,"TEXCOORD_0"),texcoord1:new gn("texcoord1","float",2,"TEXCOORD_1"),normal:new gn("normal","float",3,"NORMAL"),tangent:new gn("tangent","float",4,"TANGENT"),color:new gn("color","float",4,"COLOR"),weight:new gn("weight","float",3,"WEIGHT"),joint:new gn("joint","float",4,"JOINT"),barycentric:new gn("barycentric","float",3,null)},boundingBox:null}}),{mainAttribute:"position",updateBoundingBox:function(){var e=this.boundingBox;e||(e=this.boundingBox=new Nt);var t=this.attributes.position.value;if(t&&t.length){var n=e.min,r=e.max,i=n.array,a=r.array;Ke.set(i,t[0],t[1],t[2]),Ke.set(a,t[0],t[1],t[2]);for(var o=3;o<t.length;){var s=t[o++],l=t[o++],u=t[o++];s<i[0]&&(i[0]=s),l<i[1]&&(i[1]=l),u<i[2]&&(i[2]=u),s>a[0]&&(a[0]=s),l>a[1]&&(a[1]=l),u>a[2]&&(a[2]=u)}n._dirty=!0,r._dirty=!0}},generateVertexNormals:function(){if(this.vertexCount){var e=this.indices,t=this.attributes,n=t.position.value,r=t.normal.value;if(r&&r.length===n.length)for(var i=0;i<r.length;i++)r[i]=0;else r=t.normal.value=new M["a"].Float32Array(n.length);for(var a,o,s,l=dn(),u=dn(),c=dn(),h=dn(),d=dn(),f=dn(),p=e?e.length:this.vertexCount,g=0;g<p;){e?(a=e[g++],o=e[g++],s=e[g++]):(a=g++,o=g++,s=g++),pn(l,n[3*a],n[3*a+1],n[3*a+2]),pn(u,n[3*o],n[3*o+1],n[3*o+2]),pn(c,n[3*s],n[3*s+1],n[3*s+2]),Ke.sub(h,l,u),Ke.sub(d,u,c),Ke.cross(f,h,d);for(i=0;i<3;i++)r[3*a+i]=r[3*a+i]+f[i],r[3*o+i]=r[3*o+i]+f[i],r[3*s+i]=r[3*s+i]+f[i]}for(i=0;i<r.length;)pn(f,r[i],r[i+1],r[i+2]),Ke.normalize(f,f),r[i++]=f[0],r[i++]=f[1],r[i++]=f[2];this.dirty()}},generateFaceNormals:function(){if(this.vertexCount){this.isUniqueVertex()||this.generateUniqueVertex();var e=this.indices,t=this.attributes,n=t.position.value,r=t.normal.value,i=dn(),a=dn(),o=dn(),s=dn(),l=dn(),u=dn();r||(r=t.normal.value=new Float32Array(n.length));for(var c,h,d,f=e?e.length:this.vertexCount,p=0;p<f;){e?(c=e[p++],h=e[p++],d=e[p++]):(c=p++,h=p++,d=p++),pn(i,n[3*c],n[3*c+1],n[3*c+2]),pn(a,n[3*h],n[3*h+1],n[3*h+2]),pn(o,n[3*d],n[3*d+1],n[3*d+2]),Ke.sub(s,i,a),Ke.sub(l,a,o),Ke.cross(u,s,l),Ke.normalize(u,u);for(var g=0;g<3;g++)r[3*c+g]=u[g],r[3*h+g]=u[g],r[3*d+g]=u[g]}this.dirty()}},generateTangents:function(){if(this.vertexCount){var e=this.vertexCount,t=this.attributes;t.tangent.value||(t.tangent.value=new Float32Array(4*e));var n=t.texcoord0.value,r=t.position.value,i=t.tangent.value,a=t.normal.value;if(n){for(var o=[],s=[],l=0;l<e;l++)o[l]=[0,0,0],s[l]=[0,0,0];var u,c,h,d=[0,0,0],f=[0,0,0],p=this.indices,g=p?p.length:this.vertexCount;for(l=0;l<g;){p?(u=p[l++],c=p[l++],h=p[l++]):(u=l++,c=l++,h=l++);var m=n[2*u],v=n[2*c],y=n[2*h],b=n[2*u+1],_=n[2*c+1],x=n[2*h+1],w=r[3*u],S=r[3*c],T=r[3*h],O=r[3*u+1],M=r[3*c+1],E=r[3*h+1],A=r[3*u+2],C=r[3*c+2],I=r[3*h+2],D=S-w,L=T-w,P=M-O,k=E-O,R=C-A,N=I-A,j=v-m,F=y-m,z=_-b,B=x-b,V=1/(j*B-z*F);d[0]=(B*D-z*L)*V,d[1]=(B*P-z*k)*V,d[2]=(B*R-z*N)*V,f[0]=(j*L-F*D)*V,f[1]=(j*k-F*P)*V,f[2]=(j*N-F*R)*V,fn(o[u],o[u],d),fn(o[c],o[c],d),fn(o[h],o[h],d),fn(s[u],s[u],f),fn(s[c],s[c],f),fn(s[h],s[h],f)}var G=dn(),H=dn(),U=dn();for(l=0;l<e;l++){U[0]=a[3*l],U[1]=a[3*l+1],U[2]=a[3*l+2];var W=o[l];Ke.scale(G,U,Ke.dot(U,W)),Ke.sub(G,W,G),Ke.normalize(G,G),Ke.cross(H,U,W),i[4*l]=G[0],i[4*l+1]=G[1],i[4*l+2]=G[2],i[4*l+3]=Ke.dot(H,s[l])<0?-1:1}this.dirty()}else console.warn("Geometry without texcoords can't generate tangents.")}},isUniqueVertex:function(){return!this.isUseIndices()||this.vertexCount===this.indices.length},generateUniqueVertex:function(){if(this.vertexCount&&this.indices){this.indices.length>65535&&(this.indices=new M["a"].Uint32Array(this.indices));for(var e=this.attributes,t=this.indices,n=this.getEnabledAttributes(),r={},i=0;i<n.length;i++){var a=n[i];r[a]=e[a].value,e[a].init(this.indices.length)}for(var o=0,s=0;s<t.length;s++){var l=t[s];for(i=0;i<n.length;i++){a=n[i];for(var u=e[a].value,c=e[a].size,h=0;h<c;h++)u[o*c+h]=r[a][l*c+h]}t[s]=o,o++}this.dirty()}},generateBarycentric:function(){if(this.vertexCount){this.isUniqueVertex()||this.generateUniqueVertex();var e=this.attributes,t=e.barycentric.value,n=this.indices;if(!t||t.length!==3*n.length){t=e.barycentric.value=new Float32Array(3*n.length);for(var r=0;r<(n?n.length:this.vertexCount/3);)for(var i=0;i<3;i++){var a=n?n[r++]:3*r+i;t[3*a+i]=1}this.dirty()}}},applyTransform:function(e){var t=this.attributes,n=t.position.value,r=t.normal.value,i=t.tangent.value;e=e.array;var a=Xe.create();Xe.invert(a,e),Xe.transpose(a,a);var o=Ke.transformMat4,s=Ke.forEach;s(n,3,0,null,o,e),r&&s(r,3,0,null,o,a),i&&s(i,4,0,null,o,a),this.boundingBox&&this.updateBoundingBox()},dispose:function(e){var t=this._cache;t.use(e.__uid__);var n=t.get("chunks");if(n)for(var r=0;r<n.length;r++){for(var i=n[r],a=0;a<i.attributeBuffers.length;a++){var o=i.attributeBuffers[a];e.gl.deleteBuffer(o.buffer)}i.indicesBuffer&&e.gl.deleteBuffer(i.indicesBuffer.buffer)}if(this.__vaoCache){var s=e.getGLExtension("OES_vertex_array_object");for(var l in this.__vaoCache){var u=this.__vaoCache[l].vao;u&&s.deleteVertexArrayOES(u)}}this.__vaoCache={},t.deleteContext(e.__uid__)}});mn.STATIC_DRAW=hn.STATIC_DRAW,mn.DYNAMIC_DRAW=hn.DYNAMIC_DRAW,mn.STREAM_DRAW=hn.STREAM_DRAW,mn.AttributeBuffer=hn.AttributeBuffer,mn.IndicesBuffer=hn.IndicesBuffer,mn.Attribute=gn;var vn=mn,yn="vec3 calcAmbientSHLight(int idx, vec3 N) {\n int offset = 9 * idx;\n return ambientSHLightCoefficients[0]\n + ambientSHLightCoefficients[1] * N.x\n + ambientSHLightCoefficients[2] * N.y\n + ambientSHLightCoefficients[3] * N.z\n + ambientSHLightCoefficients[4] * N.x * N.z\n + ambientSHLightCoefficients[5] * N.z * N.y\n + ambientSHLightCoefficients[6] * N.y * N.x\n + ambientSHLightCoefficients[7] * (3.0 * N.z * N.z - 1.0)\n + ambientSHLightCoefficients[8] * (N.x * N.x - N.y * N.y);\n}",bn="uniform vec3 ",_n="uniform float ",xn="@export clay.header.",wn="@end",Sn=":unconfigurable;",Tn=[xn+"directional_light",bn+"directionalLightDirection[DIRECTIONAL_LIGHT_COUNT]"+Sn,bn+"directionalLightColor[DIRECTIONAL_LIGHT_COUNT]"+Sn,wn,xn+"ambient_light",bn+"ambientLightColor[AMBIENT_LIGHT_COUNT]"+Sn,wn,xn+"ambient_sh_light",bn+"ambientSHLightColor[AMBIENT_SH_LIGHT_COUNT]"+Sn,bn+"ambientSHLightCoefficients[AMBIENT_SH_LIGHT_COUNT * 9]"+Sn,yn,wn,xn+"ambient_cubemap_light",bn+"ambientCubemapLightColor[AMBIENT_CUBEMAP_LIGHT_COUNT]"+Sn,"uniform samplerCube ambientCubemapLightCubemap[AMBIENT_CUBEMAP_LIGHT_COUNT]"+Sn,"uniform sampler2D ambientCubemapLightBRDFLookup[AMBIENT_CUBEMAP_LIGHT_COUNT]"+Sn,wn,xn+"point_light",bn+"pointLightPosition[POINT_LIGHT_COUNT]"+Sn,_n+"pointLightRange[POINT_LIGHT_COUNT]"+Sn,bn+"pointLightColor[POINT_LIGHT_COUNT]"+Sn,wn,xn+"spot_light",bn+"spotLightPosition[SPOT_LIGHT_COUNT]"+Sn,bn+"spotLightDirection[SPOT_LIGHT_COUNT]"+Sn,_n+"spotLightRange[SPOT_LIGHT_COUNT]"+Sn,_n+"spotLightUmbraAngleCosine[SPOT_LIGHT_COUNT]"+Sn,_n+"spotLightPenumbraAngleCosine[SPOT_LIGHT_COUNT]"+Sn,_n+"spotLightFalloffFactor[SPOT_LIGHT_COUNT]"+Sn,bn+"spotLightColor[SPOT_LIGHT_COUNT]"+Sn,wn].join("\n");He["import"](Tn);var On=zt.extend((function(){return{color:[1,1,1],intensity:1,castShadow:!0,shadowResolution:512,group:0}}),{type:"",clone:function(){var e=zt.prototype.clone.call(this);return e.color=Array.prototype.slice.call(this.color),e.intensity=this.intensity,e.castShadow=this.castShadow,e.shadowResolution=this.shadowResolution,e}}),Mn=On,En=function(e,t){this.normal=e||new gt(0,1,0),this.distance=t||0};En.prototype={constructor:En,distanceToPoint:function(e){return Ke.dot(e.array,this.normal.array)-this.distance},projectPoint:function(e,t){t||(t=new gt);var n=this.distanceToPoint(e);return Ke.scaleAndAdd(t.array,e.array,this.normal.array,-n),t._dirty=!0,t},normalize:function(){var e=1/Ke.len(this.normal.array);Ke.scale(this.normal.array,e),this.distance*=e},intersectFrustum:function(e){for(var t=e.vertices,n=this.normal.array,r=Ke.dot(t[0].array,n)>this.distance,i=1;i<8;i++)if(Ke.dot(t[i].array,n)>this.distance!=r)return!0},intersectLine:function(){var e=Ke.create();return function(t,n,r){var i=this.distanceToPoint(t),a=this.distanceToPoint(n);if(i>0&&a>0||i<0&&a<0)return null;var o=this.normal.array,s=this.distance,l=t.array;Ke.sub(e,n.array,t.array),Ke.normalize(e,e);var u=Ke.dot(o,e);if(0===u)return null;r||(r=new gt);var c=(Ke.dot(o,l)-s)/u;return Ke.scaleAndAdd(r.array,l,e,-c),r._dirty=!0,r}}(),applyTransform:function(){var e=Xe.create(),t=_t.create(),n=_t.create();return n[3]=1,function(r){r=r.array,Ke.scale(n,this.normal.array,this.distance),_t.transformMat4(n,n,r),this.distance=Ke.dot(n,this.normal.array),Xe.invert(e,r),Xe.transpose(e,e),t[3]=0,Ke.copy(t,this.normal.array),_t.transformMat4(t,t,e),Ke.copy(this.normal.array,t)}}(),copy:function(e){Ke.copy(this.normal.array,e.normal.array),this.normal._dirty=!0,this.distance=e.distance},clone:function(){var e=new En;return e.copy(this),e}};var An=En,Cn=Ke.set,In=Ke.copy,Dn=Ke.transformMat4,Ln=Math.min,Pn=Math.max,kn=function(){this.planes=[];for(var e=0;e<6;e++)this.planes.push(new An);this.boundingBox=new Nt,this.vertices=[];for(e=0;e<8;e++)this.vertices[e]=Ke.fromValues(0,0,0)};kn.prototype={setFromProjection:function(e){var t=this.planes,n=e.array,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],l=n[5],u=n[6],c=n[7],h=n[8],d=n[9],f=n[10],p=n[11],g=n[12],m=n[13],v=n[14],y=n[15];Cn(t[0].normal.array,o-r,c-s,p-h),t[0].distance=-(y-g),t[0].normalize(),Cn(t[1].normal.array,o+r,c+s,p+h),t[1].distance=-(y+g),t[1].normalize(),Cn(t[2].normal.array,o+i,c+l,p+d),t[2].distance=-(y+m),t[2].normalize(),Cn(t[3].normal.array,o-i,c-l,p-d),t[3].distance=-(y-m),t[3].normalize(),Cn(t[4].normal.array,o-a,c-u,p-f),t[4].distance=-(y-v),t[4].normalize(),Cn(t[5].normal.array,o+a,c+u,p+f),t[5].distance=-(y+v),t[5].normalize();var b=this.boundingBox,_=this.vertices;if(0===y){var x=l/r,w=-v/(f-1),S=-v/(f+1),T=-S/l,O=-w/l;b.min.set(-T*x,-T,S),b.max.set(T*x,T,w),Cn(_[0],-T*x,-T,S),Cn(_[1],-T*x,T,S),Cn(_[2],T*x,-T,S),Cn(_[3],T*x,T,S),Cn(_[4],-O*x,-O,w),Cn(_[5],-O*x,O,w),Cn(_[6],O*x,-O,w),Cn(_[7],O*x,O,w)}else{var M=(-1-g)/r,E=(1-g)/r,A=(1-m)/l,C=(-1-m)/l,I=(-1-v)/f,D=(1-v)/f;b.min.set(Math.min(M,E),Math.min(C,A),Math.min(D,I)),b.max.set(Math.max(E,M),Math.max(A,C),Math.max(I,D));var L=b.min.array,P=b.max.array;Cn(_[0],L[0],L[1],L[2]),Cn(_[1],L[0],P[1],L[2]),Cn(_[2],P[0],L[1],L[2]),Cn(_[3],P[0],P[1],L[2]),Cn(_[4],L[0],L[1],P[2]),Cn(_[5],L[0],P[1],P[2]),Cn(_[6],P[0],L[1],P[2]),Cn(_[7],P[0],P[1],P[2])}},getTransformedBoundingBox:function(){var e=Ke.create();return function(t,n){var r=this.vertices,i=n.array,a=t.min,o=t.max,s=a.array,l=o.array,u=r[0];Dn(e,u,i),In(s,e),In(l,e);for(var c=1;c<8;c++)u=r[c],Dn(e,u,i),s[0]=Ln(e[0],s[0]),s[1]=Ln(e[1],s[1]),s[2]=Ln(e[2],s[2]),l[0]=Pn(e[0],l[0]),l[1]=Pn(e[1],l[1]),l[2]=Pn(e[2],l[2]);return a._dirty=!0,o._dirty=!0,t}}()};var Rn=kn,Nn=zt.extend((function(){return{projectionMatrix:new At,invProjectionMatrix:new At,viewMatrix:new At,frustum:new Rn}}),(function(){this.update(!0)}),{update:function(e){zt.prototype.update.call(this,e),At.invert(this.viewMatrix,this.worldTransform),this.updateProjectionMatrix(),At.invert(this.invProjectionMatrix,this.projectionMatrix),this.frustum.setFromProjection(this.projectionMatrix)},setViewMatrix:function(e){At.copy(this.viewMatrix,e),At.invert(this.worldTransform,e),this.decomposeWorldTransform()},decomposeProjectionMatrix:function(){},setProjectionMatrix:function(e){At.copy(this.projectionMatrix,e),At.invert(this.invProjectionMatrix,e),this.decomposeProjectionMatrix()},updateProjectionMatrix:function(){},castRay:function(){var e=_t.create();return function(t,n){var r=void 0!==n?n:new yt,i=t.array[0],a=t.array[1];return _t.set(e,i,a,-1,1),_t.transformMat4(e,e,this.invProjectionMatrix.array),_t.transformMat4(e,e,this.worldTransform.array),Ke.scale(r.origin.array,e,1/e[3]),_t.set(e,i,a,1,1),_t.transformMat4(e,e,this.invProjectionMatrix.array),_t.transformMat4(e,e,this.worldTransform.array),Ke.scale(e,e,1/e[3]),Ke.sub(r.direction.array,e,r.origin.array),Ke.normalize(r.direction.array,r.direction.array),r.direction._dirty=!0,r.origin._dirty=!0,r}}()}),jn=Nn,Fn=Xe.create(),zn=Xe.create(),Bn={};function Vn(e){var t=[],n=Object.keys(e);n.sort();for(var r=0;r<n.length;r++){var i=n[r];t.push(i+" "+e[i])}var a=t.join("\n");if(Bn[a])return Bn[a];var o=y.genGUID();return Bn[a]=o,o}function Gn(){this.opaque=[],this.transparent=[],this._opaqueCount=0,this._transparentCount=0}Gn.prototype.startCount=function(){this._opaqueCount=0,this._transparentCount=0},Gn.prototype.add=function(e,t){t?this.transparent[this._transparentCount++]=e:this.opaque[this._opaqueCount++]=e},Gn.prototype.endCount=function(){this.transparent.length=this._transparentCount,this.opaque.length=this._opaqueCount};var Hn=zt.extend((function(){return{material:null,lights:[],viewBoundingBoxLastFrame:new Nt,shadowUniforms:{},_cameraList:[],_lightUniforms:{},_previousLightNumber:{},_lightNumber:{},_lightProgramKeys:{},_nodeRepository:{},_renderLists:new I(20)}}),(function(){this._scene=this}),{addToScene:function(e){e instanceof jn?(this._cameraList.length>0&&console.warn("Found multiple camera in one scene. Use the fist one."),this._cameraList.push(e)):e instanceof Mn&&this.lights.push(e),e.name&&(this._nodeRepository[e.name]=e)},removeFromScene:function(e){var t;e instanceof jn?(t=this._cameraList.indexOf(e),t>=0&&this._cameraList.splice(t,1)):e instanceof Mn&&(t=this.lights.indexOf(e),t>=0&&this.lights.splice(t,1)),e.name&&delete this._nodeRepository[e.name]},getNode:function(e){return this._nodeRepository[e]},setMainCamera:function(e){var t=this._cameraList.indexOf(e);t>=0&&this._cameraList.splice(t,1),this._cameraList.unshift(e)},getMainCamera:function(){return this._cameraList[0]},getLights:function(){return this.lights},updateLights:function(){var e=this.lights;this._previousLightNumber=this._lightNumber;for(var t={},n=0;n<e.length;n++){var r=e[n];if(!r.invisible){var i=r.group;t[i]||(t[i]={}),t[i][r.type]=t[i][r.type]||0,t[i][r.type]++}}for(var a in this._lightNumber=t,t)this._lightProgramKeys[a]=Vn(t[a]);this._updateLightUniforms()},cloneNode:function(e){var t=e.clone(),n={};function r(e,t){n[e.__uid__]=t;for(var i=0;i<e._children.length;i++){var a=e._children[i],o=t._children[i];r(a,o)}}return r(e,t),t.traverse((function(e){e.skeleton&&(e.skeleton=e.skeleton.clone(n)),e.material&&(e.material=e.material.clone())})),t},updateRenderList:function(e,t){var n=e.__uid__,r=this._renderLists.get(n);r||(r=new Gn,this._renderLists.put(n,r)),r.startCount(),t&&(this.viewBoundingBoxLastFrame.min.set(1/0,1/0,1/0),this.viewBoundingBoxLastFrame.max.set(-1/0,-1/0,-1/0));var i=this.material&&this.material.transparent||!1;return this._doUpdateRenderList(this,e,i,r,t),r.endCount(),r},getRenderList:function(e){return this._renderLists.get(e.__uid__)},_doUpdateRenderList:function(e,t,n,r,i){if(!e.invisible)for(var a=0;a<e._children.length;a++){var o=e._children[a];if(o.isRenderable()){var s=o.isSkinnedMesh()?Fn:o.worldTransform.array,l=o.geometry;Xe.multiplyAffine(zn,t.viewMatrix.array,s),(i&&!l.boundingBox||!this.isFrustumCulled(o,t,zn))&&r.add(o,o.material.transparent||n)}o._children.length>0&&this._doUpdateRenderList(o,t,n,r,i)}},isFrustumCulled:function(){var e=new Nt,t=new At;return function(n,r,i){var a=n.boundingBox;if(a||(a=n.skeleton&&n.skeleton.boundingBox?n.skeleton.boundingBox:n.geometry.boundingBox),!a)return!1;if(t.array=i,e.transformFrom(a,t),n.castShadow&&this.viewBoundingBoxLastFrame.union(e),n.frustumCulling){if(!e.intersectBoundingBox(r.frustum.boundingBox))return!0;t.array=r.projectionMatrix.array,e.max.array[2]>0&&e.min.array[2]<0&&(e.max.array[2]=-1e-20),e.applyProjection(t);var o=e.min.array,s=e.max.array;if(s[0]<-1||o[0]>1||s[1]<-1||o[1]>1||s[2]<-1||o[2]>1)return!0}return!1}}(),_updateLightUniforms:function(){var e=this.lights;e.sort(Un);var t=this._lightUniforms;for(var n in t)for(var r in t[n])t[n][r].value.length=0;for(var i=0;i<e.length;i++){var a=e[i];if(!a.invisible){n=a.group;for(var r in a.uniformTemplates){var o=a.uniformTemplates[r],s=o.value(a);if(null!=s){t[n]||(t[n]={}),t[n][r]||(t[n][r]={type:"",value:[]});var l=t[n][r];switch(l.type=o.type+"v",o.type){case"1i":case"1f":case"t":l.value.push(s);break;case"2f":case"3f":case"4f":for(var u=0;u<s.length;u++)l.value.push(s[u]);break;default:console.error("Unkown light uniform type "+o.type)}}}}}},getLightGroups:function(){var e=[];for(var t in this._lightNumber)e.push(t);return e},getNumberChangedLightGroups:function(){var e=[];for(var t in this._lightNumber)this.isLightNumberChanged(t)&&e.push(t);return e},isLightNumberChanged:function(e){var t=this._previousLightNumber,n=this._lightNumber;for(var r in n[e]){if(!t[e])return!0;if(n[e][r]!==t[e][r])return!0}for(var r in t[e]){if(!n[e])return!0;if(n[e][r]!==t[e][r])return!0}return!1},getLightsNumbers:function(e){return this._lightNumber[e]},getProgramKey:function(e){return this._lightProgramKeys[e]},setLightUniforms:function(){function e(e,t,n){for(var r in e){var i=e[r];if("tv"===i.type){if(!t.hasUniform(r))continue;for(var a=[],o=0;o<i.value.length;o++){var s=i.value[o],l=t.takeCurrentTextureSlot(n,s);a.push(l)}t.setUniform(n.gl,"1iv",r,a)}else t.setUniform(n.gl,i.type,r,i.value)}}return function(t,n,r){e(this._lightUniforms[n],t,r),e(this.shadowUniforms,t,r)}}(),dispose:function(){this.material=null,this._opaqueList=[],this._transparentList=[],this.lights=[],this._lightUniforms={},this._lightNumber={},this._nodeRepository={}}});function Un(e,t){if(t.castShadow&&!e.castShadow)return!0}var Wn=Hn,Xn=n("cOEc"),Yn=Qt.isPowerOfTwo,Kn=["px","nx","py","ny","pz","nz"],qn=Kt.extend((function(){return{image:{px:null,nx:null,py:null,ny:null,pz:null,nz:null},pixels:{px:null,nx:null,py:null,ny:null,pz:null,nz:null},mipmaps:[]}}),{textureType:"textureCube",update:function(e){var t=e.gl;t.bindTexture(t.TEXTURE_CUBE_MAP,this._cache.get("webgl_texture")),this.updateCommon(e);var n=this.format,r=this.type;t.texParameteri(t.TEXTURE_CUBE_MAP,t.TEXTURE_WRAP_S,this.getAvailableWrapS()),t.texParameteri(t.TEXTURE_CUBE_MAP,t.TEXTURE_WRAP_T,this.getAvailableWrapT()),t.texParameteri(t.TEXTURE_CUBE_MAP,t.TEXTURE_MAG_FILTER,this.getAvailableMagFilter()),t.texParameteri(t.TEXTURE_CUBE_MAP,t.TEXTURE_MIN_FILTER,this.getAvailableMinFilter());var i=e.getGLExtension("EXT_texture_filter_anisotropic");if(i&&this.anisotropic>1&&t.texParameterf(t.TEXTURE_CUBE_MAP,i.TEXTURE_MAX_ANISOTROPY_EXT,this.anisotropic),36193===r){var a=e.getGLExtension("OES_texture_half_float");a||(r=O.FLOAT)}if(this.mipmaps.length)for(var o=this.width,s=this.height,l=0;l<this.mipmaps.length;l++){var u=this.mipmaps[l];this._updateTextureData(t,u,l,o,s,n,r),o/=2,s/=2}else this._updateTextureData(t,this,0,this.width,this.height,n,r),!this.NPOT&&this.useMipmap&&t.generateMipmap(t.TEXTURE_CUBE_MAP);t.bindTexture(t.TEXTURE_CUBE_MAP,null)},_updateTextureData:function(e,t,n,r,i,a,o){for(var s=0;s<6;s++){var l=Kn[s],u=t.image&&t.image[l];u?e.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+s,n,a,a,o,u):e.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+s,n,a,r,i,0,a,o,t.pixels&&t.pixels[l])}},generateMipmap:function(e){var t=e.gl;this.useMipmap&&!this.NPOT&&(t.bindTexture(t.TEXTURE_CUBE_MAP,this._cache.get("webgl_texture")),t.generateMipmap(t.TEXTURE_CUBE_MAP))},bind:function(e){e.gl.bindTexture(e.gl.TEXTURE_CUBE_MAP,this.getWebGLTexture(e))},unbind:function(e){e.gl.bindTexture(e.gl.TEXTURE_CUBE_MAP,null)},isPowerOfTwo:function(){return this.image.px?Yn(this.image.px.width)&&Yn(this.image.px.height):Yn(this.width)&&Yn(this.height)},isRenderable:function(){return this.image.px?Zn(this.image.px)&&Zn(this.image.nx)&&Zn(this.image.py)&&Zn(this.image.ny)&&Zn(this.image.pz)&&Zn(this.image.nz):!(!this.width||!this.height)},load:function(e,t){var n=0,r=this;return y.each(e,(function(e,i){var a=M["a"].createImage();t&&(a.crossOrigin=t),a.onload=function(){n--,0===n&&(r.dirty(),r.trigger("success",r))},a.onerror=function(){n--},n++,a.src=e,r.image[i]=a})),this}});function Zn(e){return e.width>0&&e.height>0}Object.defineProperty(qn.prototype,"width",{get:function(){return this.image&&this.image.px?this.image.px.width:this._width},set:function(e){this.image&&this.image.px?console.warn("Texture from image can't set width"):(this._width!==e&&this.dirty(),this._width=e)}}),Object.defineProperty(qn.prototype,"height",{get:function(){return this.image&&this.image.px?this.image.px.height:this._height},set:function(e){this.image&&this.image.px?console.warn("Texture from image can't set height"):(this._height!==e&&this.dirty(),this._height=e)}});var $n=qn,Qn=jn.extend({fov:50,aspect:1,near:.1,far:2e3},{updateProjectionMatrix:function(){var e=this.fov/180*Math.PI;this.projectionMatrix.perspective(e,this.aspect,this.near,this.far)},decomposeProjectionMatrix:function(){var e=this.projectionMatrix.array,t=2*Math.atan(1/e[5]);this.fov=t/Math.PI*180,this.aspect=e[5]/e[0],this.near=e[14]/(e[10]-1),this.far=e[14]/(e[10]+1)},clone:function(){var e=jn.prototype.clone.call(this);return e.fov=this.fov,e.aspect=this.aspect,e.near=this.near,e.far=this.far,e}}),Jn=Qn,er="framebuffer",tr="renderbuffer",nr=tr+"_width",rr=tr+"_height",ir=tr+"_attached",ar="depthtexture_attached",or=O.FRAMEBUFFER,sr=O.RENDERBUFFER,lr=O.DEPTH_ATTACHMENT,ur=O.COLOR_ATTACHMENT0,cr=_.extend({depthBuffer:!0,viewport:null,_width:0,_height:0,_textures:null,_boundRenderer:null},(function(){this._cache=new Xt,this._textures={}}),{getTextureWidth:function(){return this._width},getTextureHeight:function(){return this._height},bind:function(e){if(e.__currentFrameBuffer){if(e.__currentFrameBuffer===this)return;console.warn("Renderer already bound with another framebuffer. Unbind it first")}e.__currentFrameBuffer=this;var t=e.gl;t.bindFramebuffer(or,this._getFrameBufferGL(e)),this._boundRenderer=e;var n=this._cache;n.put("viewport",e.viewport);var r,i,a=!1;for(var o in this._textures){a=!0;var s=this._textures[o];s&&(r=s.texture.width,i=s.texture.height,this._doAttach(e,s.texture,o,s.target))}this._width=r,this._height=i,!a&&this.depthBuffer&&console.error("Must attach texture before bind, or renderbuffer may have incorrect width and height."),this.viewport?e.setViewport(this.viewport):e.setViewport(0,0,r,i,1);var l=n.get("attached_textures");if(l)for(var o in l)if(!this._textures[o]){var u=l[o];this._doDetach(t,o,u)}if(!n.get(ar)&&this.depthBuffer){n.miss(tr)&&n.put(tr,t.createRenderbuffer());var c=n.get(tr);r===n.get(nr)&&i===n.get(rr)||(t.bindRenderbuffer(sr,c),t.renderbufferStorage(sr,t.DEPTH_COMPONENT16,r,i),n.put(nr,r),n.put(rr,i),t.bindRenderbuffer(sr,null)),n.get(ir)||(t.framebufferRenderbuffer(or,lr,sr,c),n.put(ir,!0))}},unbind:function(e){e.__currentFrameBuffer=null;var t=e.gl;t.bindFramebuffer(or,null),this._boundRenderer=null,this._cache.use(e.__uid__);var n=this._cache.get("viewport");n&&e.setViewport(n),this.updateMipmap(e)},updateMipmap:function(e){var t=e.gl;for(var n in this._textures){var r=this._textures[n];if(r){var i=r.texture;if(!i.NPOT&&i.useMipmap&&i.minFilter===Kt.LINEAR_MIPMAP_LINEAR){var a="textureCube"===i.textureType?O.TEXTURE_CUBE_MAP:O.TEXTURE_2D;t.bindTexture(a,i.getWebGLTexture(e)),t.generateMipmap(a),t.bindTexture(a,null)}}}},checkStatus:function(e){return e.checkFramebufferStatus(or)},_getFrameBufferGL:function(e){var t=this._cache;return t.use(e.__uid__),t.miss(er)&&t.put(er,e.gl.createFramebuffer()),t.get(er)},attach:function(e,t,n){if(!e.width)throw new Error("The texture attached to color buffer is not a valid.");t=t||ur,n=n||O.TEXTURE_2D;var r,i=this._boundRenderer,a=i&&i.gl;if(a){var o=this._cache;o.use(i.__uid__),r=o.get("attached_textures")}var s=this._textures[t];if(!s||s.target!==n||s.texture!==e||!r||null==r[t]){var l=!0;i&&(l=this._doAttach(i,e,t,n),this.viewport||i.setViewport(0,0,e.width,e.height,1)),l&&(this._textures[t]=this._textures[t]||{},this._textures[t].texture=e,this._textures[t].target=n)}},_doAttach:function(e,t,n,r){var i=e.gl,a=t.getWebGLTexture(e),o=this._cache.get("attached_textures");if(o&&o[n]){var s=o[n];if(s.texture===t&&s.target===r)return}n=+n;var l=!0;if(n===lr||n===O.DEPTH_STENCIL_ATTACHMENT){var u=e.getGLExtension("WEBGL_depth_texture");if(u||(console.error("Depth texture is not supported by the browser"),l=!1),t.format!==O.DEPTH_COMPONENT&&t.format!==O.DEPTH_STENCIL&&(console.error("The texture attached to depth buffer is not a valid."),l=!1),l){var c=this._cache.get(tr);c&&(i.framebufferRenderbuffer(or,lr,sr,null),i.deleteRenderbuffer(c),this._cache.put(tr,!1)),this._cache.put(ir,!1),this._cache.put(ar,!0)}}return i.framebufferTexture2D(or,n,r,a,0),o||(o={},this._cache.put("attached_textures",o)),o[n]=o[n]||{},o[n].texture=t,o[n].target=r,l},_doDetach:function(e,t,n){e.framebufferTexture2D(or,t,n,null,0);var r=this._cache.get("attached_textures");r&&r[t]&&(r[t]=null),t!==lr&&t!==O.DEPTH_STENCIL_ATTACHMENT||this._cache.put(ar,!1)},detach:function(e,t){if(this._textures[e]=null,this._boundRenderer){var n=this._cache;n.use(this._boundRenderer.__uid__),this._doDetach(this._boundRenderer.gl,e,t)}},dispose:function(e){var t=e.gl,n=this._cache;n.use(e.__uid__);var r=n.get(tr);r&&t.deleteRenderbuffer(r);var i=n.get(er);i&&t.deleteFramebuffer(i),n.deleteContext(e.__uid__),this._textures={}}});cr.DEPTH_ATTACHMENT=lr,cr.COLOR_ATTACHMENT0=ur,cr.STENCIL_ATTACHMENT=O.STENCIL_ATTACHMENT,cr.DEPTH_STENCIL_ATTACHMENT=O.DEPTH_STENCIL_ATTACHMENT;var hr=cr,dr=["px","nx","py","ny","pz","nz"],fr=_.extend((function(){var e={position:new gt,far:1e3,near:.1,texture:null,shadowMapPass:null},t=e._cameras={px:new Jn({fov:90}),nx:new Jn({fov:90}),py:new Jn({fov:90}),ny:new Jn({fov:90}),pz:new Jn({fov:90}),nz:new Jn({fov:90})};return t.px.lookAt(gt.POSITIVE_X,gt.NEGATIVE_Y),t.nx.lookAt(gt.NEGATIVE_X,gt.NEGATIVE_Y),t.py.lookAt(gt.POSITIVE_Y,gt.POSITIVE_Z),t.ny.lookAt(gt.NEGATIVE_Y,gt.NEGATIVE_Z),t.pz.lookAt(gt.POSITIVE_Z,gt.NEGATIVE_Y),t.nz.lookAt(gt.NEGATIVE_Z,gt.NEGATIVE_Y),e._frameBuffer=new hr,e}),{getCamera:function(e){return this._cameras[e]},render:function(e,t,n){var r=e.gl;n||t.update();for(var i=this.texture.width,a=2*Math.atan(i/(i-.5))/Math.PI*180,o=0;o<6;o++){var s=dr[o],l=this._cameras[s];if(gt.copy(l.position,this.position),l.far=this.far,l.near=this.near,l.fov=a,this.shadowMapPass){l.update();var u=t.getBoundingBox();u.applyTransform(l.viewMatrix),t.viewBoundingBoxLastFrame.copy(u),this.shadowMapPass.render(e,t,l,!0)}this._frameBuffer.attach(this.texture,r.COLOR_ATTACHMENT0,r.TEXTURE_CUBE_MAP_POSITIVE_X+o),this._frameBuffer.bind(e),e.render(t,l,!0),this._frameBuffer.unbind(e)}},dispose:function(e){this._frameBuffer.dispose(e)}}),pr=fr,gr=vn.extend({dynamic:!1,widthSegments:1,heightSegments:1},(function(){this.build()}),{build:function(){for(var e=this.heightSegments,t=this.widthSegments,n=this.attributes,r=[],i=[],a=[],o=[],s=0;s<=e;s++)for(var l=s/e,u=0;u<=t;u++){var c=u/t;if(r.push([2*c-1,2*l-1,0]),i&&i.push([c,l]),a&&a.push([0,0,1]),u<t&&s<e){var h=u+s*(t+1);o.push([h,h+1,h+t+1]),o.push([h+t+1,h+1,h+t+2])}}n.position.fromArray(r),n.texcoord0.fromArray(i),n.normal.fromArray(a),this.initIndicesFromArray(o),this.boundingBox=new Nt,this.boundingBox.min.set(-1,-1,0),this.boundingBox.max.set(1,1,0)}}),mr=gr,vr=new At,yr=vn.extend({dynamic:!1,widthSegments:1,heightSegments:1,depthSegments:1,inside:!1},(function(){this.build()}),{build:function(){var e={px:br("px",this.depthSegments,this.heightSegments),nx:br("nx",this.depthSegments,this.heightSegments),py:br("py",this.widthSegments,this.depthSegments),ny:br("ny",this.widthSegments,this.depthSegments),pz:br("pz",this.widthSegments,this.heightSegments),nz:br("nz",this.widthSegments,this.heightSegments)},t=["position","texcoord0","normal"],n=0,r=0;for(var i in e)n+=e[i].vertexCount,r+=e[i].indices.length;for(var a=0;a<t.length;a++)this.attributes[t[a]].init(n);this.indices=new M["a"].Uint16Array(r);var o=0,s=0;for(var i in e){var l=e[i];for(a=0;a<t.length;a++)for(var u=t[a],c=l.attributes[u].value,h=l.attributes[u].size,d="normal"===u,f=0;f<c.length;f++){var p=c[f];this.inside&&d&&(p=-p),this.attributes[u].value[f+h*s]=p}var g=l.indices.length;for(f=0;f<l.indices.length;f++)this.indices[f+o]=s+l.indices[this.inside?g-f-1:f];o+=l.indices.length,s+=l.vertexCount}this.boundingBox=new Nt,this.boundingBox.max.set(1,1,1),this.boundingBox.min.set(-1,-1,-1)}});function br(e,t,n){vr.identity();var r=new mr({widthSegments:t,heightSegments:n});switch(e){case"px":At.translate(vr,vr,gt.POSITIVE_X),At.rotateY(vr,vr,Math.PI/2);break;case"nx":At.translate(vr,vr,gt.NEGATIVE_X),At.rotateY(vr,vr,-Math.PI/2);break;case"py":At.translate(vr,vr,gt.POSITIVE_Y),At.rotateX(vr,vr,-Math.PI/2);break;case"ny":At.translate(vr,vr,gt.NEGATIVE_Y),At.rotateX(vr,vr,Math.PI/2);break;case"pz":At.translate(vr,vr,gt.POSITIVE_Z);break;case"nz":At.translate(vr,vr,gt.NEGATIVE_Z),At.rotateY(vr,vr,Math.PI);break}return r.applyTransform(vr),r}var _r=yr,xr="@export clay.skybox.vertex\n#define SHADER_NAME skybox\nuniform mat4 world : WORLD;\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nattribute vec3 position : POSITION;\nvarying vec3 v_WorldPosition;\nvoid main()\n{\n v_WorldPosition = (world * vec4(position, 1.0)).xyz;\n gl_Position = worldViewProjection * vec4(position, 1.0);\n}\n@end\n@export clay.skybox.fragment\n#define PI 3.1415926\nuniform mat4 viewInverse : VIEWINVERSE;\n#ifdef EQUIRECTANGULAR\nuniform sampler2D environmentMap;\n#else\nuniform samplerCube environmentMap;\n#endif\nuniform float lod: 0.0;\nvarying vec3 v_WorldPosition;\n@import clay.util.rgbm\n@import clay.util.srgb\n@import clay.util.ACES\nvoid main()\n{\n vec3 eyePos = viewInverse[3].xyz;\n vec3 V = normalize(v_WorldPosition - eyePos);\n#ifdef EQUIRECTANGULAR\n float phi = acos(V.y);\n float theta = atan(-V.x, V.z) + PI * 0.5;\n vec2 uv = vec2(theta / 2.0 / PI, phi / PI);\n vec4 texel = decodeHDR(texture2D(environmentMap, fract(uv)));\n#else\n #if defined(LOD) || defined(SUPPORT_TEXTURE_LOD)\n vec4 texel = decodeHDR(textureCubeLodEXT(environmentMap, V, lod));\n #else\n vec4 texel = decodeHDR(textureCube(environmentMap, V));\n #endif\n#endif\n#ifdef SRGB_DECODE\n texel = sRGBToLinear(texel);\n#endif\n#ifdef TONEMAPPING\n texel.rgb = ACESToneMapping(texel.rgb);\n#endif\n#ifdef SRGB_ENCODE\n texel = linearTosRGB(texel);\n#endif\n gl_FragColor = encodeHDR(vec4(texel.rgb, 1.0));\n}\n@end";He["import"](xr);var wr=Zt.extend((function(){var e=new He({vertex:He.source("clay.skybox.vertex"),fragment:He.source("clay.skybox.fragment")}),t=new J({shader:e,depthMask:!1});return{scene:null,geometry:new _r,material:t,environmentMap:null,culling:!1,_dummyCamera:new Jn}}),(function(){var e=this.scene;e&&this.attachScene(e),this.environmentMap&&this.setEnvironmentMap(this.environmentMap)}),{attachScene:function(e){this.scene&&this.detachScene(),e.skybox=this,this.scene=e,e.on("beforerender",this._beforeRenderScene,this)},detachScene:function(){this.scene&&(this.scene.off("beforerender",this._beforeRenderScene),this.scene.skybox=null),this.scene=null},dispose:function(e){this.detachScene(),this.geometry.dispose(e)},setEnvironmentMap:function(e){"texture2D"===e.textureType?(this.material.define("EQUIRECTANGULAR"),e.minFilter=Kt.LINEAR):this.material.undefine("EQUIRECTANGULAR"),this.material.set("environmentMap",e)},getEnvironmentMap:function(){return this.material.get("environmentMap")},_beforeRenderScene:function(e,t,n){this.renderSkybox(e,n)},renderSkybox:function(e,t){var n=this._dummyCamera;n.aspect=e.getViewportAspect(),n.fov=t.fov||50,n.updateProjectionMatrix(),At.invert(n.invProjectionMatrix,n.projectionMatrix),n.worldTransform.copy(t.worldTransform),n.viewMatrix.copy(t.viewMatrix),this.position.copy(t.getWorldPosition()),this.update(),e.gl.disable(e.gl.BLEND),this.material.get("lod")>0?this.material.define("fragment","LOD"):this.material.undefine("fragment","LOD"),e.renderPass([this],n)}}),Sr=wr,Tr=Sr,Or=542327876,Mr=131072,Er=512,Ar=4;function Cr(e){return e.charCodeAt(0)+(e.charCodeAt(1)<<8)+(e.charCodeAt(2)<<16)+(e.charCodeAt(3)<<24)}var Ir=31,Dr=Cr("DXT1"),Lr=Cr("DXT3"),Pr=Cr("DXT5"),kr=0,Rr=1,Nr=2,jr=3,Fr=4,zr=7,Br=20,Vr=21,Gr=28,Hr={parse:function(e,t){var n=new Int32Array(e,0,Ir);if(n[kr]!==Or)return null;if(!n(Br)&Ar)return null;var r,i,a=n(Vr),o=n[Fr],s=n[jr],l=n[Gr]&Er,u=n[Nr]&Mr;switch(a){case Dr:r=8,i=Kt.COMPRESSED_RGB_S3TC_DXT1_EXT;break;case Lr:r=16,i=Kt.COMPRESSED_RGBA_S3TC_DXT3_EXT;break;case Pr:r=16,i=Kt.COMPRESSED_RGBA_S3TC_DXT5_EXT;break;default:return null}var c=n[Rr]+4,h=l?6:1,d=1;u&&(d=Math.max(1,n[zr]));for(var f=[],p=0;p<h;p++){var g=o,m=s;f[p]=new rn({width:g,height:m,format:i});for(var v=[],y=0;y<d;y++){var b=Math.max(4,g)/4*Math.max(4,m)/4*r,_=new Uint8Array(e,c,b);c+=b,g*=.5,m*=.5,v[y]=_}f[p].pixels=v[0],u&&(f[p].mipmaps=v)}if(!t)return f[0];t.width=f[0].width,t.height=f[0].height,t.format=f[0].format,t.pixels=f[0].pixels,t.mipmaps=f[0].mipmaps}},Ur=Hr,Wr=String.fromCharCode,Xr=8,Yr=32767;function Kr(e,t,n,r){if(e[3]>0){var i=Math.pow(2,e[3]-128-8+r);t[n+0]=e[0]*i,t[n+1]=e[1]*i,t[n+2]=e[2]*i}else t[n+0]=0,t[n+1]=0,t[n+2]=0;return t[n+3]=1,t}function qr(e,t,n){for(var r="",i=t;i<n;i++)r+=Wr(e[i]);return r}function Zr(e,t){t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3]}function $r(e,t,n,r){var i=0,a=0,o=r;while(o>0)if(e[a][0]=t[n++],e[a][1]=t[n++],e[a][2]=t[n++],e[a][3]=t[n++],1===e[a][0]&&1===e[a][1]&&1===e[a][2]){for(var s=e[a][3]<<i>>>0;s>0;s--)Zr(e[a-1],e[a]),a++,o--;i+=8}else a++,o--,i=0;return n}function Qr(e,t,n,r){if(r<Xr|r>Yr)return $r(e,t,n,r);var i=t[n++];if(2!=i)return $r(e,t,n-1,r);if(e[0][1]=t[n++],e[0][2]=t[n++],i=t[n++],(e[0][2]<<8>>>0|i)>>>0!==r)return null;for(i=0;i<4;i++)for(var a=0;a<r;){var o=t[n++];if(o>128){o=(127&o)>>>0;var s=t[n++];while(o--)e[a++][i]=s}else while(o--)e[a++][i]=t[n++]}return n}var Jr={parseRGBE:function(e,t,n){null==n&&(n=0);var r=new Uint8Array(e),i=r.length;if("#?"===qr(r,0,2)){for(var a=2;a<i;a++)if("\n"===Wr(r[a])&&"\n"===Wr(r[a+1]))break;if(!(a>=i)){a+=2;for(var o="";a<i;a++){var s=Wr(r[a]);if("\n"===s)break;o+=s}var l=o.split(" "),u=parseInt(l[1]),c=parseInt(l[3]);if(c&&u){for(var h=a+1,d=[],f=0;f<c;f++){d[f]=[];for(var p=0;p<4;p++)d[f][p]=0}for(var g=new Float32Array(c*u*4),m=0,v=0;v<u;v++){h=Qr(d,r,h,c);if(!h)return null;for(f=0;f<c;f++)Kr(d[f],g,m,n),m+=4}return t||(t=new rn),t.width=c,t.height=u,t.pixels=g,t.type=Kt.FLOAT,t}}}},parseRGBEFromPNG:function(e){}},ei=Jr,ti={loadTexture:function(e,t,n,r){var i;if("function"===typeof t?(n=t,r=n,t={}):t=t||{},"string"===typeof e){if(e.match(/.hdr$/)||"hdr"===t.fileType)return i=new rn({width:0,height:0,sRGB:!1}),ti._fetchTexture(e,(function(e){ei.parseRGBE(e,i,t.exposure),i.dirty(),n&&n(i)}),r),i;e.match(/.dds$/)||"dds"===t.fileType?(i=new rn({width:0,height:0}),ti._fetchTexture(e,(function(e){Ur.parse(e,i),i.dirty(),n&&n(i)}),r)):(i=new rn,i.load(e),i.success(n),i.error(r))}else"object"===typeof e&&"undefined"!==typeof e.px&&(i=new $n,i.load(e),i.success(n),i.error(r));return i},loadPanorama:function(e,t,n,r,i,a){var o=this;"function"===typeof r?(i=r,a=i,r={}):r=r||{},ti.loadTexture(t,r,(function(t){t.flipY=r.flipY||!1,o.panoramaToCubeMap(e,t,n,r),t.dispose(e),i&&i(n)}),a)},panoramaToCubeMap:function(e,t,n,r){var i=new pr,a=new Tr({scene:new Wn});return a.setEnvironmentMap(t),r=r||{},r.encodeRGBM&&a.material.define("fragment","RGBM_ENCODE"),n.sRGB=t.sRGB,i.texture=n,i.render(e,a.scene),i.texture=null,i.dispose(e),n},heightToNormal:function(e,t){var n=document.createElement("canvas"),r=n.width=e.width,i=n.height=e.height,a=n.getContext("2d");a.drawImage(e,0,0,r,i),t=t||!1;for(var o=a.getImageData(0,0,r,i),s=a.createImageData(r,i),l=0;l<o.data.length;l+=4){if(t){var u=o.data[l],c=o.data[l+1],h=o.data[l+2],d=Math.abs(u-c)+Math.abs(c-h);if(d>20)return console.warn("Given image is not a height map"),e}var f,p,g,m;l%(4*r)===0?(f=o.data[l],g=o.data[l+4]):l%(4*r)===4*(r-1)?(f=o.data[l-4],g=o.data[l]):(f=o.data[l-4],g=o.data[l+4]),l<4*r?(p=o.data[l],m=o.data[l+4*r]):l>r*(i-1)*4?(p=o.data[l-4*r],m=o.data[l]):(p=o.data[l-4*r],m=o.data[l+4*r]),s.data[l]=f-g+127,s.data[l+1]=p-m+127,s.data[l+2]=255,s.data[l+3]=255}return a.putImageData(s,0,0),n},isHeightImage:function(e,t,n){if(!e||!e.width||!e.height)return!1;var r=document.createElement("canvas"),i=r.getContext("2d"),a=t||32;n=n||20,r.width=r.height=a,i.drawImage(e,0,0,a,a);for(var o=i.getImageData(0,0,a,a),s=0;s<o.data.length;s+=4){var l=o.data[s],u=o.data[s+1],c=o.data[s+2],h=Math.abs(l-u)+Math.abs(u-c);if(h>n)return!1}return!0},_fetchTexture:function(e,t,n){M["a"].request.get({url:e,responseType:"arraybuffer",onload:t,onerror:n})},createChessboard:function(e,t,n,r){e=e||512,t=t||64,n=n||"black",r=r||"white";var i=Math.ceil(e/t),a=document.createElement("canvas");a.width=e,a.height=e;var o=a.getContext("2d");o.fillStyle=r,o.fillRect(0,0,e,e),o.fillStyle=n;for(var s=0;s<i;s++)for(var l=0;l<i;l++){var u=l%2?s%2:s%2-1;u&&o.fillRect(s*t,l*t,t,t)}var c=new rn({image:a,anisotropic:8});return c},createBlank:function(e){var t=document.createElement("canvas");t.width=1,t.height=1;var n=t.getContext("2d");n.fillStyle=e,n.fillRect(0,0,1,1);var r=new rn({image:t});return r}},ni=ti,ri=["mousedown","mouseup","mousemove","mouseover","mouseout","click","dblclick","contextmenu"];function ii(e){return"_on"+e}var ai=function(e){var t=this;this._texture=new rn({anisotropic:32,flipY:!1,surface:this,dispose:function(e){t.dispose(),rn.prototype.dispose.call(this,e)}}),ri.forEach((function(e){this[ii(e)]=function(t){t.triangle&&this._meshes.forEach((function(n){this.dispatchEvent(e,n,t.triangle,t.point)}),this)}}),this),this._meshes=[],e&&this.setECharts(e),this.onupdate=null};ai.prototype={constructor:ai,getTexture:function(){return this._texture},setECharts:function(e){this._chart=e;var t=e.getDom();if(t instanceof HTMLCanvasElement){var n=this,r=e.getZr(),i=r.__oldRefreshImmediately||r.refreshImmediately;r.refreshImmediately=function(){i.call(this),n._texture.dirty(),n.onupdate&&n.onupdate()},r.__oldRefreshImmediately=i}else console.error("ECharts must init on canvas if it is used as texture."),t=document.createElement("canvas");this._texture.image=t,this._texture.dirty(),this.onupdate&&this.onupdate()},dispatchEvent:function(){var e=new gt,t=new gt,n=new gt,r=new se,i=new se,a=new se,o=new se,s=new gt;return function(l,u,c,h){var d=u.geometry,f=d.attributes.position,p=d.attributes.texcoord0,g=gt.dot,m=gt.cross;f.get(c[0],e.array),f.get(c[1],t.array),f.get(c[2],n.array),p.get(c[0],r.array),p.get(c[1],i.array),p.get(c[2],a.array),m(s,t,n);var v=g(e,s),y=g(h,s)/v;m(s,n,e);var b=g(h,s)/v;m(s,e,t);var _=g(h,s)/v;se.scale(o,r,y),se.scaleAndAdd(o,o,i,b),se.scaleAndAdd(o,o,a,_);var x=o.x*this._chart.getWidth(),w=o.y*this._chart.getHeight();this._chart.getZr().handler.dispatch(l,{zrX:x,zrY:w})}}(),attachToMesh:function(e){this._meshes.indexOf(e)>=0||(ri.forEach((function(t){e.on(t,this[ii(t)],this)}),this),this._meshes.push(e))},detachFromMesh:function(e){var t=this._meshes.indexOf(e);t>=0&&this._meshes.splice(t,1),ri.forEach((function(t){e.off(t,this[ii(t)])}),this)},dispose:function(){this._meshes.forEach((function(e){this.detachFromMesh(e)}),this)}};var oi=ai,si=jn.extend({left:-1,right:1,near:-1,far:1,top:1,bottom:-1},{updateProjectionMatrix:function(){this.projectionMatrix.ortho(this.left,this.right,this.bottom,this.top,this.near,this.far)},decomposeProjectionMatrix:function(){var e=this.projectionMatrix.array;this.left=(-1-e[12])/e[0],this.right=(1-e[12])/e[0],this.top=(1-e[13])/e[5],this.bottom=(-1-e[13])/e[5],this.near=-(-1-e[14])/e[10],this.far=-(1-e[14])/e[10]},clone:function(){var e=jn.prototype.clone.call(this);return e.left=this.left,e.right=this.right,e.near=this.near,e.far=this.far,e.top=this.top,e.bottom=this.bottom,e}}),li=si,ui="\n@export clay.compositor.vertex\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nattribute vec3 position : POSITION;\nattribute vec2 texcoord : TEXCOORD_0;\nvarying vec2 v_Texcoord;\nvoid main()\n{\n v_Texcoord = texcoord;\n gl_Position = worldViewProjection * vec4(position, 1.0);\n}\n@end";He["import"](ui);var ci=new mr,hi=new Zt({geometry:ci,frustumCulling:!1}),di=new li,fi=_.extend((function(){return{fragment:"",outputs:null,material:null,blendWithPrevious:!1,clearColor:!1,clearDepth:!0}}),(function(){var e=new He(He.source("clay.compositor.vertex"),this.fragment),t=new J({shader:e});t.enableTexturesAll(),this.material=t}),{setUniform:function(e,t){this.material.setUniform(e,t)},getUniform:function(e){var t=this.material.uniforms[e];if(t)return t.value},attachOutput:function(e,t){this.outputs||(this.outputs={}),t=t||O.COLOR_ATTACHMENT0,this.outputs[t]=e},detachOutput:function(e){for(var t in this.outputs)this.outputs[t]===e&&(this.outputs[t]=null)},bind:function(e,t){if(this.outputs)for(var n in this.outputs){var r=this.outputs[n];r&&t.attach(r,n)}t&&t.bind(e)},unbind:function(e,t){t.unbind(e)},render:function(e,t){var n=e.gl;if(t){this.bind(e,t);var r=e.getGLExtension("EXT_draw_buffers");if(r&&this.outputs){var i=[];for(var a in this.outputs)a=+a,a>=n.COLOR_ATTACHMENT0&&a<=n.COLOR_ATTACHMENT0+8&&i.push(a);r.drawBuffersEXT(i)}}this.trigger("beforerender",this,e);var o=this.clearDepth?n.DEPTH_BUFFER_BIT:0;if(n.depthMask(!0),this.clearColor){o|=n.COLOR_BUFFER_BIT,n.colorMask(!0,!0,!0,!0);var s=this.clearColor;Array.isArray(s)&&n.clearColor(s[0],s[1],s[2],s[3])}n.clear(o),this.blendWithPrevious?(n.enable(n.BLEND),this.material.transparent=!0):(n.disable(n.BLEND),this.material.transparent=!1),this.renderQuad(e),this.trigger("afterrender",this,e),t&&this.unbind(e,t)},renderQuad:function(e){hi.material=this.material,e.renderPass([hi],di)},dispose:function(e){}}),pi=fi,gi="#define SAMPLE_NUMBER 1024\n#define PI 3.14159265358979\nuniform sampler2D normalDistribution;\nuniform vec2 viewportSize : [512, 256];\nconst vec3 N = vec3(0.0, 0.0, 1.0);\nconst float fSampleNumber = float(SAMPLE_NUMBER);\nvec3 importanceSampleNormal(float i, float roughness, vec3 N) {\n vec3 H = texture2D(normalDistribution, vec2(roughness, i)).rgb;\n vec3 upVector = abs(N.y) > 0.999 ? vec3(1.0, 0.0, 0.0) : vec3(0.0, 1.0, 0.0);\n vec3 tangentX = normalize(cross(N, upVector));\n vec3 tangentZ = cross(N, tangentX);\n return normalize(tangentX * H.x + N * H.y + tangentZ * H.z);\n}\nfloat G_Smith(float roughness, float NoV, float NoL) {\n float k = roughness * roughness / 2.0;\n float G1V = NoV / (NoV * (1.0 - k) + k);\n float G1L = NoL / (NoL * (1.0 - k) + k);\n return G1L * G1V;\n}\nvoid main() {\n vec2 uv = gl_FragCoord.xy / viewportSize;\n float NoV = uv.x;\n float roughness = uv.y;\n vec3 V;\n V.x = sqrt(1.0 - NoV * NoV);\n V.y = 0.0;\n V.z = NoV;\n float A = 0.0;\n float B = 0.0;\n for (int i = 0; i < SAMPLE_NUMBER; i++) {\n vec3 H = importanceSampleNormal(float(i) / fSampleNumber, roughness, N);\n vec3 L = reflect(-V, H);\n float NoL = clamp(L.z, 0.0, 1.0);\n float NoH = clamp(H.z, 0.0, 1.0);\n float VoH = clamp(dot(V, H), 0.0, 1.0);\n if (NoL > 0.0) {\n float G = G_Smith(roughness, NoV, NoL);\n float G_Vis = G * VoH / (NoH * NoV);\n float Fc = pow(1.0 - VoH, 5.0);\n A += (1.0 - Fc) * G_Vis;\n B += Fc * G_Vis;\n }\n }\n gl_FragColor = vec4(vec2(A, B) / fSampleNumber, 0.0, 1.0);\n}\n",mi="#define SHADER_NAME prefilter\n#define SAMPLE_NUMBER 1024\n#define PI 3.14159265358979\nuniform mat4 viewInverse : VIEWINVERSE;\nuniform samplerCube environmentMap;\nuniform sampler2D normalDistribution;\nuniform float roughness : 0.5;\nvarying vec2 v_Texcoord;\nvarying vec3 v_WorldPosition;\n@import clay.util.rgbm\nvec3 importanceSampleNormal(float i, float roughness, vec3 N) {\n vec3 H = texture2D(normalDistribution, vec2(roughness, i)).rgb;\n vec3 upVector = abs(N.y) > 0.999 ? vec3(1.0, 0.0, 0.0) : vec3(0.0, 1.0, 0.0);\n vec3 tangentX = normalize(cross(N, upVector));\n vec3 tangentZ = cross(N, tangentX);\n return normalize(tangentX * H.x + N * H.y + tangentZ * H.z);\n}\nvoid main() {\n vec3 eyePos = viewInverse[3].xyz;\n vec3 V = normalize(v_WorldPosition - eyePos);\n vec3 N = V;\n vec3 prefilteredColor = vec3(0.0);\n float totalWeight = 0.0;\n float fMaxSampleNumber = float(SAMPLE_NUMBER);\n for (int i = 0; i < SAMPLE_NUMBER; i++) {\n vec3 H = importanceSampleNormal(float(i) / fMaxSampleNumber, roughness, N);\n vec3 L = reflect(-V, H);\n float NoL = clamp(dot(N, L), 0.0, 1.0);\n if (NoL > 0.0) {\n prefilteredColor += decodeHDR(textureCube(environmentMap, L)).rgb * NoL;\n totalWeight += NoL;\n }\n }\n gl_FragColor = encodeHDR(vec4(prefilteredColor / totalWeight, 1.0));\n}\n",vi={},yi=["px","nx","py","ny","pz","nz"];vi.prefilterEnvironmentMap=function(e,t,n,r,i){i&&r||(r=vi.generateNormalDistribution(),i=vi.integrateBRDF(e,r)),n=n||{};var a=n.width||64,o=n.height||64,s=n.type||t.type,l=new $n({width:a,height:o,type:s,flipY:!1,mipmaps:[]});l.isPowerOfTwo()||console.warn("Width and height must be power of two to enable mipmap.");var u=Math.min(a,o),c=Math.log(u)/Math.log(2)+1,h=new J({shader:new He({vertex:He.source("clay.skybox.vertex"),fragment:mi})});h.set("normalDistribution",r),n.encodeRGBM&&h.define("fragment","RGBM_ENCODE"),n.decodeRGBM&&h.define("fragment","RGBM_DECODE");var d,f=new Wn;if("texture2D"===t.textureType){var p=new $n({width:a,height:o,type:s===Kt.FLOAT?Kt.HALF_FLOAT:s});ni.panoramaToCubeMap(e,t,p,{encodeRGBM:n.decodeRGBM}),t=p}d=new Sr({scene:f,material:h}),d.material.set("environmentMap",t);var g=new pr({texture:l});n.encodeRGBM&&(s=l.type=Kt.UNSIGNED_BYTE);for(var m=new rn({width:a,height:o,type:s}),v=new hr({depthBuffer:!1}),y=M["a"][s===Kt.UNSIGNED_BYTE?"Uint8Array":"Float32Array"],b=0;b<c;b++){l.mipmaps[b]={pixels:{}},d.material.set("roughness",b/(c-1));for(var _=m.width,x=2*Math.atan(_/(_-.5))/Math.PI*180,w=0;w<yi.length;w++){var S=new y(m.width*m.height*4);v.attach(m),v.bind(e);var T=g.getCamera(yi[w]);T.fov=x,e.render(f,T),e.gl.readPixels(0,0,m.width,m.height,Kt.RGBA,s,S),v.unbind(e),l.mipmaps[b].pixels[yi[w]]=S}m.width/=2,m.height/=2,m.dirty()}return v.dispose(e),m.dispose(e),d.dispose(e),r.dispose(e),{environmentMap:l,brdfLookup:i,normalDistribution:r,maxMipmapLevel:c}},vi.integrateBRDF=function(e,t){t=t||vi.generateNormalDistribution();var n=new hr({depthBuffer:!1}),r=new pi({fragment:gi}),i=new rn({width:512,height:256,type:Kt.HALF_FLOAT,wrapS:Kt.CLAMP_TO_EDGE,wrapT:Kt.CLAMP_TO_EDGE,minFilter:Kt.NEAREST,magFilter:Kt.NEAREST,useMipmap:!1});return r.setUniform("normalDistribution",t),r.setUniform("viewportSize",[512,256]),r.attachOutput(i),r.render(e,n),n.dispose(e),i},vi.generateNormalDistribution=function(e,t){e=e||256,t=t||1024;for(var n=new rn({width:e,height:t,type:Kt.FLOAT,minFilter:Kt.NEAREST,magFilter:Kt.NEAREST,wrapS:Kt.CLAMP_TO_EDGE,wrapT:Kt.CLAMP_TO_EDGE,useMipmap:!1}),r=new Float32Array(t*e*4),i=[],a=0;a<e;a++){for(var o=a/e,s=o*o,l=0;l<t;l++){var u=(l<<16|l>>>16)>>>0;u=((1431655765&u)<<1|(2863311530&u)>>>1)>>>0,u=((858993459&u)<<2|(3435973836&u)>>>2)>>>0,u=((252645135&u)<<4|(4042322160&u)>>>4)>>>0,u=(((16711935&u)<<8|(4278255360&u)>>>8)>>>0)/4294967296;var c=Math.sqrt((1-u)/(1+(s*s-1)*u));i[l]=c}for(l=0;l<t;l++){var h=4*(l*e+a),d=(c=i[l],Math.sqrt(1-c*c)),f=l/t,p=2*Math.PI*f;r[h]=d*Math.cos(p),r[h+1]=c,r[h+2]=d*Math.sin(p),r[h+3]=1}}return n.pixels=r,n};var bi=vi,_i=Mn.extend({cubemap:null,castShadow:!1,_normalDistribution:null,_brdfLookup:null},{type:"AMBIENT_CUBEMAP_LIGHT",prefilter:function(e,t){if(e.getGLExtension("EXT_shader_texture_lod")){this._brdfLookup||(this._normalDistribution=bi.generateNormalDistribution(),this._brdfLookup=bi.integrateBRDF(e,this._normalDistribution));var n=this.cubemap;if(!n.__prefiltered){var r=bi.prefilterEnvironmentMap(e,n,{encodeRGBM:!0,width:t,height:t},this._normalDistribution,this._brdfLookup);this.cubemap=r.environmentMap,this.cubemap.__prefiltered=!0,n.dispose(e)}}else console.warn("Device not support textureCubeLodEXT")},getBRDFLookup:function(){return this._brdfLookup},uniformTemplates:{ambientCubemapLightColor:{type:"3f",value:function(e){var t=e.color,n=e.intensity;return[t[0]*n,t[1]*n,t[2]*n]}},ambientCubemapLightCubemap:{type:"t",value:function(e){return e.cubemap}},ambientCubemapLightBRDFLookup:{type:"t",value:function(e){return e._brdfLookup}}}}),xi=_i,wi=Mn.extend({castShadow:!1,coefficients:[]},(function(){this._coefficientsTmpArr=new M["a"].Float32Array(27)}),{type:"AMBIENT_SH_LIGHT",uniformTemplates:{ambientSHLightColor:{type:"3f",value:function(e){var t=e.color,n=e.intensity;return[t[0]*n,t[1]*n,t[2]*n]}},ambientSHLightCoefficients:{type:"3f",value:function(e){for(var t=e._coefficientsTmpArr,n=0;n<e.coefficients.length;n++)t[n]=e.coefficients[n];return t}}}}),Si=wi,Ti={},Oi=["px","nx","py","ny","pz","nz"];function Mi(e,t){var n=e[0],r=e[1],i=e[2];return 0===t?1:1===t?n:2===t?r:3===t?i:4===t?n*i:5===t?r*i:6===t?n*r:7===t?3*i*i-1:n*n-r*r}var Ei={px:[2,1,0,-1,-1,1],nx:[2,1,0,1,-1,-1],py:[0,2,1,1,-1,-1],ny:[0,2,1,1,1,1],pz:[0,1,2,-1,-1,-1],nz:[0,1,2,1,-1,1]};function Ai(e,t,n,r){for(var i=new M["a"].Float32Array(27),a=Ke.create(),o=Ke.create(),s=Ke.create(),l=0;l<9;l++){for(var u=Ke.create(),c=0;c<Oi.length;c++){for(var h=t[Oi[c]],d=Ke.create(),f=0,p=0,g=Ei[Oi[c]],m=0;m<r;m++)for(var v=0;v<n;v++){a[0]=v/(n-1)*2-1,a[1]=m/(r-1)*2-1,a[2]=-1,Ke.normalize(a,a),s[0]=a[g[0]]*g[3],s[1]=a[g[1]]*g[4],s[2]=a[g[2]]*g[5],o[0]=h[p++]/255,o[1]=h[p++]/255,o[2]=h[p++]/255;var y=h[p++]/255*8.12;o[0]*=y,o[1]*=y,o[2]*=y,Ke.scaleAndAdd(d,d,o,Mi(s,l)*-a[2]),f+=-a[2]}Ke.scaleAndAdd(u,u,d,1/f)}i[3*l]=u[0]/6,i[3*l+1]=u[1]/6,i[3*l+2]=u[2]/6}return i}Ti.projectEnvironmentMap=function(e,t,n){var r;n=n||{},n.lod=n.lod||0;var i=new Wn,a=64;"texture2D"===t.textureType?r=new Tr({scene:i,environmentMap:t}):(a=t.image&&t.image.px?t.image.px.width:t.width,r=new Sr({scene:i,environmentMap:t}));var o=Math.ceil(a/Math.pow(2,n.lod)),s=Math.ceil(a/Math.pow(2,n.lod)),l=new rn({width:o,height:s}),u=new hr;r.material.define("fragment","RGBM_ENCODE"),n.decodeRGBM&&r.material.define("fragment","RGBM_DECODE"),r.material.set("lod",n.lod);for(var c=new pr({texture:l}),h={},d=0;d<Oi.length;d++){h[Oi[d]]=new Uint8Array(o*s*4);var f=c.getCamera(Oi[d]);f.fov=90,u.attach(l),u.bind(e),e.render(i,f),e.gl.readPixels(0,0,o,s,Kt.RGBA,Kt.UNSIGNED_BYTE,h[Oi[d]]),u.unbind(e)}return r.dispose(e),u.dispose(e),l.dispose(e),Ai(e,h,o,s)};var Ci=Ti,Ii={firstNotNull:function(){for(var e=0,t=arguments.length;e<t;e++)if(null!=arguments[e])return arguments[e]},queryDataIndex:function(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?r["Y"].isArray(t.dataIndex)?r["Y"].map(t.dataIndex,(function(t){return e.indexOfRawIndex(t)})):e.indexOfRawIndex(t.dataIndex):null!=t.name?r["Y"].isArray(t.name)?r["Y"].map(t.name,(function(t){return e.indexOfName(t)})):e.indexOfName(t.name):void 0}},Di=Ii,Li=vn.extend({dynamic:!1,widthSegments:40,heightSegments:20,phiStart:0,phiLength:2*Math.PI,thetaStart:0,thetaLength:Math.PI,radius:1},(function(){this.build()}),{build:function(){var e=this.heightSegments,t=this.widthSegments,n=this.attributes.position,r=this.attributes.texcoord0,i=this.attributes.normal,a=(t+1)*(e+1);n.init(a),r.init(a),i.init(a);var o,s,l,u,c,h,d,f,p,g,m,v=a>65535?Uint32Array:Uint16Array,y=this.indices=new v(t*e*6),b=this.radius,_=this.phiStart,x=this.phiLength,w=this.thetaStart,S=this.thetaLength,T=(b=this.radius,[]),O=[],M=0,E=1/b;for(d=0;d<=e;d++)for(h=0;h<=t;h++)u=h/t,c=d/e,o=-b*Math.cos(_+u*x)*Math.sin(w+c*S),s=b*Math.cos(w+c*S),l=b*Math.sin(_+u*x)*Math.sin(w+c*S),T[0]=o,T[1]=s,T[2]=l,O[0]=u,O[1]=c,n.set(M,T),r.set(M,O),T[0]*=E,T[1]*=E,T[2]*=E,i.set(M,T),M++;var A=t+1,C=0;for(d=0;d<e;d++)for(h=0;h<t;h++)p=d*A+h,f=d*A+h+1,m=(d+1)*A+h+1,g=(d+1)*A+h,y[C++]=f,y[C++]=p,y[C++]=m,y[C++]=p,y[C++]=g,y[C++]=m;this.boundingBox=new Nt,this.boundingBox.max.set(b,b,b),this.boundingBox.min.set(-b,-b,-b)}}),Pi=Li,ki=Mn.extend({castShadow:!1},{type:"AMBIENT_LIGHT",uniformTemplates:{ambientLightColor:{type:"3f",value:function(e){var t=e.color,n=e.intensity;return[t[0]*n,t[1]*n,t[2]*n]}}}}),Ri=ki,Ni=Mn.extend({shadowBias:.001,shadowSlopeScale:2,shadowCascade:1,cascadeSplitLogFactor:.2},{type:"DIRECTIONAL_LIGHT",uniformTemplates:{directionalLightDirection:{type:"3f",value:function(e){return e.__dir=e.__dir||new gt,e.__dir.copy(e.worldTransform.z).normalize().negate().array}},directionalLightColor:{type:"3f",value:function(e){var t=e.color,n=e.intensity;return[t[0]*n,t[1]*n,t[2]*n]}}},clone:function(){var e=Mn.prototype.clone.call(this);return e.shadowBias=this.shadowBias,e.shadowSlopeScale=this.shadowSlopeScale,e}}),ji=Ni,Fi=Mn.extend({range:100,castShadow:!1},{type:"POINT_LIGHT",uniformTemplates:{pointLightPosition:{type:"3f",value:function(e){return e.getWorldPosition().array}},pointLightRange:{type:"1f",value:function(e){return e.range}},pointLightColor:{type:"3f",value:function(e){var t=e.color,n=e.intensity;return[t[0]*n,t[1]*n,t[2]*n]}}},clone:function(){var e=Mn.prototype.clone.call(this);return e.range=this.range,e}}),zi=Fi,Bi=Mn.extend({range:20,umbraAngle:30,penumbraAngle:45,falloffFactor:2,shadowBias:.001,shadowSlopeScale:2},{type:"SPOT_LIGHT",uniformTemplates:{spotLightPosition:{type:"3f",value:function(e){return e.getWorldPosition().array}},spotLightRange:{type:"1f",value:function(e){return e.range}},spotLightUmbraAngleCosine:{type:"1f",value:function(e){return Math.cos(e.umbraAngle*Math.PI/180)}},spotLightPenumbraAngleCosine:{type:"1f",value:function(e){return Math.cos(e.penumbraAngle*Math.PI/180)}},spotLightFalloffFactor:{type:"1f",value:function(e){return e.falloffFactor}},spotLightDirection:{type:"3f",value:function(e){return e.__dir=e.__dir||new gt,e.__dir.copy(e.worldTransform.z).negate().array}},spotLightColor:{type:"3f",value:function(e){var t=e.color,n=e.intensity;return[t[0]*n,t[1]*n,t[2]*n]}}},clone:function(){var e=Mn.prototype.clone.call(this);return e.range=this.range,e.umbraAngle=this.umbraAngle,e.penumbraAngle=this.penumbraAngle,e.falloffFactor=this.falloffFactor,e.shadowBias=this.shadowBias,e.shadowSlopeScale=this.shadowSlopeScale,e}}),Vi=Bi,Gi=function(e,t,n,r){e=e||0,t=t||0,n=n||0,r=r||0,this.array=_t.fromValues(e,t,n,r),this._dirty=!0};Gi.prototype={constructor:Gi,add:function(e){return _t.add(this.array,this.array,e.array),this._dirty=!0,this},set:function(e,t,n,r){return this.array[0]=e,this.array[1]=t,this.array[2]=n,this.array[3]=r,this._dirty=!0,this},setArray:function(e){return this.array[0]=e[0],this.array[1]=e[1],this.array[2]=e[2],this.array[3]=e[3],this._dirty=!0,this},clone:function(){return new Gi(this.x,this.y,this.z,this.w)},copy:function(e){return _t.copy(this.array,e.array),this._dirty=!0,this},dist:function(e){return _t.dist(this.array,e.array)},distance:function(e){return _t.distance(this.array,e.array)},div:function(e){return _t.div(this.array,this.array,e.array),this._dirty=!0,this},divide:function(e){return _t.divide(this.array,this.array,e.array),this._dirty=!0,this},dot:function(e){return _t.dot(this.array,e.array)},len:function(){return _t.len(this.array)},length:function(){return _t.length(this.array)},lerp:function(e,t,n){return _t.lerp(this.array,e.array,t.array,n),this._dirty=!0,this},min:function(e){return _t.min(this.array,this.array,e.array),this._dirty=!0,this},max:function(e){return _t.max(this.array,this.array,e.array),this._dirty=!0,this},mul:function(e){return _t.mul(this.array,this.array,e.array),this._dirty=!0,this},multiply:function(e){return _t.multiply(this.array,this.array,e.array),this._dirty=!0,this},negate:function(){return _t.negate(this.array,this.array),this._dirty=!0,this},normalize:function(){return _t.normalize(this.array,this.array),this._dirty=!0,this},random:function(e){return _t.random(this.array,e),this._dirty=!0,this},scale:function(e){return _t.scale(this.array,this.array,e),this._dirty=!0,this},scaleAndAdd:function(e,t){return _t.scaleAndAdd(this.array,this.array,e.array,t),this._dirty=!0,this},sqrDist:function(e){return _t.sqrDist(this.array,e.array)},squaredDistance:function(e){return _t.squaredDistance(this.array,e.array)},sqrLen:function(){return _t.sqrLen(this.array)},squaredLength:function(){return _t.squaredLength(this.array)},sub:function(e){return _t.sub(this.array,this.array,e.array),this._dirty=!0,this},subtract:function(e){return _t.subtract(this.array,this.array,e.array),this._dirty=!0,this},transformMat4:function(e){return _t.transformMat4(this.array,this.array,e.array),this._dirty=!0,this},transformQuat:function(e){return _t.transformQuat(this.array,this.array,e.array),this._dirty=!0,this},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}};var Hi=Object.defineProperty;if(Hi){var Ui=Gi.prototype;Hi(Ui,"x",{get:function(){return this.array[0]},set:function(e){this.array[0]=e,this._dirty=!0}}),Hi(Ui,"y",{get:function(){return this.array[1]},set:function(e){this.array[1]=e,this._dirty=!0}}),Hi(Ui,"z",{get:function(){return this.array[2]},set:function(e){this.array[2]=e,this._dirty=!0}}),Hi(Ui,"w",{get:function(){return this.array[3]},set:function(e){this.array[3]=e,this._dirty=!0}})}Gi.add=function(e,t,n){return _t.add(e.array,t.array,n.array),e._dirty=!0,e},Gi.set=function(e,t,n,r,i){_t.set(e.array,t,n,r,i),e._dirty=!0},Gi.copy=function(e,t){return _t.copy(e.array,t.array),e._dirty=!0,e},Gi.dist=function(e,t){return _t.distance(e.array,t.array)},Gi.distance=Gi.dist,Gi.div=function(e,t,n){return _t.divide(e.array,t.array,n.array),e._dirty=!0,e},Gi.divide=Gi.div,Gi.dot=function(e,t){return _t.dot(e.array,t.array)},Gi.len=function(e){return _t.length(e.array)},Gi.lerp=function(e,t,n,r){return _t.lerp(e.array,t.array,n.array,r),e._dirty=!0,e},Gi.min=function(e,t,n){return _t.min(e.array,t.array,n.array),e._dirty=!0,e},Gi.max=function(e,t,n){return _t.max(e.array,t.array,n.array),e._dirty=!0,e},Gi.mul=function(e,t,n){return _t.multiply(e.array,t.array,n.array),e._dirty=!0,e},Gi.multiply=Gi.mul,Gi.negate=function(e,t){return _t.negate(e.array,t.array),e._dirty=!0,e},Gi.normalize=function(e,t){return _t.normalize(e.array,t.array),e._dirty=!0,e},Gi.random=function(e,t){return _t.random(e.array,t),e._dirty=!0,e},Gi.scale=function(e,t,n){return _t.scale(e.array,t.array,n),e._dirty=!0,e},Gi.scaleAndAdd=function(e,t,n,r){return _t.scaleAndAdd(e.array,t.array,n.array,r),e._dirty=!0,e},Gi.sqrDist=function(e,t){return _t.sqrDist(e.array,t.array)},Gi.squaredDistance=Gi.sqrDist,Gi.sqrLen=function(e){return _t.sqrLen(e.array)},Gi.squaredLength=Gi.sqrLen,Gi.sub=function(e,t,n){return _t.subtract(e.array,t.array,n.array),e._dirty=!0,e},Gi.subtract=Gi.sub,Gi.transformMat4=function(e,t,n){return _t.transformMat4(e.array,t.array,n.array),e._dirty=!0,e},Gi.transformQuat=function(e,t,n){return _t.transformQuat(e.array,t.array,n.array),e._dirty=!0,e};var Wi=Gi,Xi={create:function(){var e=new te(4);return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e},clone:function(e){var t=new te(4);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},copy:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},identity:function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e},transpose:function(e,t){if(e===t){var n=t[1];e[1]=t[2],e[2]=n}else e[0]=t[0],e[1]=t[2],e[2]=t[1],e[3]=t[3];return e},invert:function(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=n*a-i*r;return o?(o=1/o,e[0]=a*o,e[1]=-r*o,e[2]=-i*o,e[3]=n*o,e):null},adjoint:function(e,t){var n=t[0];return e[0]=t[3],e[1]=-t[1],e[2]=-t[2],e[3]=n,e},determinant:function(e){return e[0]*e[3]-e[2]*e[1]},multiply:function(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3],s=n[0],l=n[1],u=n[2],c=n[3];return e[0]=r*s+a*l,e[1]=i*s+o*l,e[2]=r*u+a*c,e[3]=i*u+o*c,e}};Xi.mul=Xi.multiply,Xi.rotate=function(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3],s=Math.sin(n),l=Math.cos(n);return e[0]=r*l+a*s,e[1]=i*l+o*s,e[2]=r*-s+a*l,e[3]=i*-s+o*l,e},Xi.scale=function(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3],s=n[0],l=n[1];return e[0]=r*s,e[1]=i*s,e[2]=a*l,e[3]=o*l,e},Xi.frob=function(e){return Math.sqrt(Math.pow(e[0],2)+Math.pow(e[1],2)+Math.pow(e[2],2)+Math.pow(e[3],2))},Xi.LDU=function(e,t,n,r){return e[2]=r[2]/r[0],n[0]=r[0],n[1]=r[1],n[3]=r[3]-e[2]*n[1],[e,t,n]};var Yi=Xi,Ki=function(){this.array=Yi.create(),this._dirty=!0};Ki.prototype={constructor:Ki,setArray:function(e){for(var t=0;t<this.array.length;t++)this.array[t]=e[t];return this._dirty=!0,this},clone:function(){return(new Ki).copy(this)},copy:function(e){return Yi.copy(this.array,e.array),this._dirty=!0,this},adjoint:function(){return Yi.adjoint(this.array,this.array),this._dirty=!0,this},determinant:function(){return Yi.determinant(this.array)},identity:function(){return Yi.identity(this.array),this._dirty=!0,this},invert:function(){return Yi.invert(this.array,this.array),this._dirty=!0,this},mul:function(e){return Yi.mul(this.array,this.array,e.array),this._dirty=!0,this},mulLeft:function(e){return Yi.mul(this.array,e.array,this.array),this._dirty=!0,this},multiply:function(e){return Yi.multiply(this.array,this.array,e.array),this._dirty=!0,this},multiplyLeft:function(e){return Yi.multiply(this.array,e.array,this.array),this._dirty=!0,this},rotate:function(e){return Yi.rotate(this.array,this.array,e),this._dirty=!0,this},scale:function(e){return Yi.scale(this.array,this.array,e.array),this._dirty=!0,this},transpose:function(){return Yi.transpose(this.array,this.array),this._dirty=!0,this},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}},Ki.adjoint=function(e,t){return Yi.adjoint(e.array,t.array),e._dirty=!0,e},Ki.copy=function(e,t){return Yi.copy(e.array,t.array),e._dirty=!0,e},Ki.determinant=function(e){return Yi.determinant(e.array)},Ki.identity=function(e){return Yi.identity(e.array),e._dirty=!0,e},Ki.invert=function(e,t){return Yi.invert(e.array,t.array),e._dirty=!0,e},Ki.mul=function(e,t,n){return Yi.mul(e.array,t.array,n.array),e._dirty=!0,e},Ki.multiply=Ki.mul,Ki.rotate=function(e,t,n){return Yi.rotate(e.array,t.array,n),e._dirty=!0,e},Ki.scale=function(e,t,n){return Yi.scale(e.array,t.array,n.array),e._dirty=!0,e},Ki.transpose=function(e,t){return Yi.transpose(e.array,t.array),e._dirty=!0,e};var qi=Ki,Zi={create:function(){var e=new te(6);return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e},clone:function(e){var t=new te(6);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t},copy:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e},identity:function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e},invert:function(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],l=n*a-r*i;return l?(l=1/l,e[0]=a*l,e[1]=-r*l,e[2]=-i*l,e[3]=n*l,e[4]=(i*s-a*o)*l,e[5]=(r*o-n*s)*l,e):null},determinant:function(e){return e[0]*e[3]-e[1]*e[2]},multiply:function(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=n[0],c=n[1],h=n[2],d=n[3],f=n[4],p=n[5];return e[0]=r*u+a*c,e[1]=i*u+o*c,e[2]=r*h+a*d,e[3]=i*h+o*d,e[4]=r*f+a*p+s,e[5]=i*f+o*p+l,e}};Zi.mul=Zi.multiply,Zi.rotate=function(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=Math.sin(n),c=Math.cos(n);return e[0]=r*c+a*u,e[1]=i*c+o*u,e[2]=r*-u+a*c,e[3]=i*-u+o*c,e[4]=s,e[5]=l,e},Zi.scale=function(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=n[0],c=n[1];return e[0]=r*u,e[1]=i*u,e[2]=a*c,e[3]=o*c,e[4]=s,e[5]=l,e},Zi.translate=function(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=n[0],c=n[1];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=r*u+a*c+s,e[5]=i*u+o*c+l,e},Zi.frob=function(e){return Math.sqrt(Math.pow(e[0],2)+Math.pow(e[1],2)+Math.pow(e[2],2)+Math.pow(e[3],2)+Math.pow(e[4],2)+Math.pow(e[5],2)+1)};var $i=Zi,Qi=function(){this.array=$i.create(),this._dirty=!0};Qi.prototype={constructor:Qi,setArray:function(e){for(var t=0;t<this.array.length;t++)this.array[t]=e[t];return this._dirty=!0,this},clone:function(){return(new Qi).copy(this)},copy:function(e){return $i.copy(this.array,e.array),this._dirty=!0,this},determinant:function(){return $i.determinant(this.array)},identity:function(){return $i.identity(this.array),this._dirty=!0,this},invert:function(){return $i.invert(this.array,this.array),this._dirty=!0,this},mul:function(e){return $i.mul(this.array,this.array,e.array),this._dirty=!0,this},mulLeft:function(e){return $i.mul(this.array,e.array,this.array),this._dirty=!0,this},multiply:function(e){return $i.multiply(this.array,this.array,e.array),this._dirty=!0,this},multiplyLeft:function(e){return $i.multiply(this.array,e.array,this.array),this._dirty=!0,this},rotate:function(e){return $i.rotate(this.array,this.array,e),this._dirty=!0,this},scale:function(e){return $i.scale(this.array,this.array,e.array),this._dirty=!0,this},translate:function(e){return $i.translate(this.array,this.array,e.array),this._dirty=!0,this},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}},Qi.copy=function(e,t){return $i.copy(e.array,t.array),e._dirty=!0,e},Qi.determinant=function(e){return $i.determinant(e.array)},Qi.identity=function(e){return $i.identity(e.array),e._dirty=!0,e},Qi.invert=function(e,t){return $i.invert(e.array,t.array),e._dirty=!0,e},Qi.mul=function(e,t,n){return $i.mul(e.array,t.array,n.array),e._dirty=!0,e},Qi.multiply=Qi.mul,Qi.rotate=function(e,t,n){return $i.rotate(e.array,t.array,n),e._dirty=!0,e},Qi.scale=function(e,t,n){return $i.scale(e.array,t.array,n.array),e._dirty=!0,e},Qi.translate=function(e,t,n){return $i.translate(e.array,t.array,n.array),e._dirty=!0,e};var Ji=Qi,ea=function(){this.array=wt.create(),this._dirty=!0};ea.prototype={constructor:ea,setArray:function(e){for(var t=0;t<this.array.length;t++)this.array[t]=e[t];return this._dirty=!0,this},adjoint:function(){return wt.adjoint(this.array,this.array),this._dirty=!0,this},clone:function(){return(new ea).copy(this)},copy:function(e){return wt.copy(this.array,e.array),this._dirty=!0,this},determinant:function(){return wt.determinant(this.array)},fromMat2d:function(e){return wt.fromMat2d(this.array,e.array),this._dirty=!0,this},fromMat4:function(e){return wt.fromMat4(this.array,e.array),this._dirty=!0,this},fromQuat:function(e){return wt.fromQuat(this.array,e.array),this._dirty=!0,this},identity:function(){return wt.identity(this.array),this._dirty=!0,this},invert:function(){return wt.invert(this.array,this.array),this._dirty=!0,this},mul:function(e){return wt.mul(this.array,this.array,e.array),this._dirty=!0,this},mulLeft:function(e){return wt.mul(this.array,e.array,this.array),this._dirty=!0,this},multiply:function(e){return wt.multiply(this.array,this.array,e.array),this._dirty=!0,this},multiplyLeft:function(e){return wt.multiply(this.array,e.array,this.array),this._dirty=!0,this},rotate:function(e){return wt.rotate(this.array,this.array,e),this._dirty=!0,this},scale:function(e){return wt.scale(this.array,this.array,e.array),this._dirty=!0,this},translate:function(e){return wt.translate(this.array,this.array,e.array),this._dirty=!0,this},normalFromMat4:function(e){return wt.normalFromMat4(this.array,e.array),this._dirty=!0,this},transpose:function(){return wt.transpose(this.array,this.array),this._dirty=!0,this},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}},ea.adjoint=function(e,t){return wt.adjoint(e.array,t.array),e._dirty=!0,e},ea.copy=function(e,t){return wt.copy(e.array,t.array),e._dirty=!0,e},ea.determinant=function(e){return wt.determinant(e.array)},ea.identity=function(e){return wt.identity(e.array),e._dirty=!0,e},ea.invert=function(e,t){return wt.invert(e.array,t.array),e},ea.mul=function(e,t,n){return wt.mul(e.array,t.array,n.array),e._dirty=!0,e},ea.multiply=ea.mul,ea.fromMat2d=function(e,t){return wt.fromMat2d(e.array,t.array),e._dirty=!0,e},ea.fromMat4=function(e,t){return wt.fromMat4(e.array,t.array),e._dirty=!0,e},ea.fromQuat=function(e,t){return wt.fromQuat(e.array,t.array),e._dirty=!0,e},ea.normalFromMat4=function(e,t){return wt.normalFromMat4(e.array,t.array),e._dirty=!0,e},ea.rotate=function(e,t,n){return wt.rotate(e.array,t.array,n),e._dirty=!0,e},ea.scale=function(e,t,n){return wt.scale(e.array,t.array,n.array),e._dirty=!0,e},ea.transpose=function(e,t){return wt.transpose(e.array,t.array),e._dirty=!0,e},ea.translate=function(e,t,n){return wt.translate(e.array,t.array,n.array),e._dirty=!0,e};var ta=ea,na=n("p1W9"),ra={_animators:null,getAnimators:function(){return this._animators=this._animators||[],this._animators},animate:function(e,t){this._animators=this._animators||[];var n,r=this;if(e){for(var i=e.split("."),a=r,o=0,s=i.length;o<s;o++)a&&(a=a[i[o]]);a&&(n=a)}else n=r;if(null==n)throw new Error("Target "+e+" not exists");var l=this._animators,u=new na["b"](n,t),c=this;return u.during((function(){c.__zr&&c.__zr.refresh()})).done((function(){var e=l.indexOf(u);e>=0&&l.splice(e,1)})),l.push(u),this.__zr&&this.__zr.animation.addAnimator(u),u},stopAnimation:function(e){this._animators=this._animators||[];for(var t=this._animators,n=t.length,r=0;r<n;r++)t[r].stop(e);return t.length=0,this},addAnimatorsToZr:function(e){if(this._animators)for(var t=0;t<this._animators.length;t++)e.animation.addAnimator(this._animators[t])},removeAnimatorsFromZr:function(e){if(this._animators)for(var t=0;t<this._animators.length;t++)e.animation.removeAnimator(this._animators[t])}},ia=ra,aa="\n@export clay.util.rand\nhighp float rand(vec2 uv) {\n const highp float a = 12.9898, b = 78.233, c = 43758.5453;\n highp float dt = dot(uv.xy, vec2(a,b)), sn = mod(dt, 3.141592653589793);\n return fract(sin(sn) * c);\n}\n@end\n@export clay.util.calculate_attenuation\nuniform float attenuationFactor : 5.0;\nfloat lightAttenuation(float dist, float range)\n{\n float attenuation = 1.0;\n attenuation = dist*dist/(range*range+1.0);\n float att_s = attenuationFactor;\n attenuation = 1.0/(attenuation*att_s+1.0);\n att_s = 1.0/(att_s+1.0);\n attenuation = attenuation - att_s;\n attenuation /= 1.0 - att_s;\n return clamp(attenuation, 0.0, 1.0);\n}\n@end\n@export clay.util.edge_factor\n#ifdef SUPPORT_STANDARD_DERIVATIVES\nfloat edgeFactor(float width)\n{\n vec3 d = fwidth(v_Barycentric);\n vec3 a3 = smoothstep(vec3(0.0), d * width, v_Barycentric);\n return min(min(a3.x, a3.y), a3.z);\n}\n#else\nfloat edgeFactor(float width)\n{\n return 1.0;\n}\n#endif\n@end\n@export clay.util.encode_float\nvec4 encodeFloat(const in float depth)\n{\n const vec4 bitShifts = vec4(256.0*256.0*256.0, 256.0*256.0, 256.0, 1.0);\n const vec4 bit_mask = vec4(0.0, 1.0/256.0, 1.0/256.0, 1.0/256.0);\n vec4 res = fract(depth * bitShifts);\n res -= res.xxyz * bit_mask;\n return res;\n}\n@end\n@export clay.util.decode_float\nfloat decodeFloat(const in vec4 color)\n{\n const vec4 bitShifts = vec4(1.0/(256.0*256.0*256.0), 1.0/(256.0*256.0), 1.0/256.0, 1.0);\n return dot(color, bitShifts);\n}\n@end\n@export clay.util.float\n@import clay.util.encode_float\n@import clay.util.decode_float\n@end\n@export clay.util.rgbm_decode\nvec3 RGBMDecode(vec4 rgbm, float range) {\n return range * rgbm.rgb * rgbm.a;\n}\n@end\n@export clay.util.rgbm_encode\nvec4 RGBMEncode(vec3 color, float range) {\n if (dot(color, color) == 0.0) {\n return vec4(0.0);\n }\n vec4 rgbm;\n color /= range;\n rgbm.a = clamp(max(max(color.r, color.g), max(color.b, 1e-6)), 0.0, 1.0);\n rgbm.a = ceil(rgbm.a * 255.0) / 255.0;\n rgbm.rgb = color / rgbm.a;\n return rgbm;\n}\n@end\n@export clay.util.rgbm\n@import clay.util.rgbm_decode\n@import clay.util.rgbm_encode\nvec4 decodeHDR(vec4 color)\n{\n#if defined(RGBM_DECODE) || defined(RGBM)\n return vec4(RGBMDecode(color, 8.12), 1.0);\n#else\n return color;\n#endif\n}\nvec4 encodeHDR(vec4 color)\n{\n#if defined(RGBM_ENCODE) || defined(RGBM)\n return RGBMEncode(color.xyz, 8.12);\n#else\n return color;\n#endif\n}\n@end\n@export clay.util.srgb\nvec4 sRGBToLinear(in vec4 value) {\n return vec4(mix(pow(value.rgb * 0.9478672986 + vec3(0.0521327014), vec3(2.4)), value.rgb * 0.0773993808, vec3(lessThanEqual(value.rgb, vec3(0.04045)))), value.w);\n}\nvec4 linearTosRGB(in vec4 value) {\n return vec4(mix(pow(value.rgb, vec3(0.41666)) * 1.055 - vec3(0.055), value.rgb * 12.92, vec3(lessThanEqual(value.rgb, vec3(0.0031308)))), value.w);\n}\n@end\n@export clay.chunk.skinning_header\n#ifdef SKINNING\nattribute vec3 weight : WEIGHT;\nattribute vec4 joint : JOINT;\n#ifdef USE_SKIN_MATRICES_TEXTURE\nuniform sampler2D skinMatricesTexture : ignore;\nuniform float skinMatricesTextureSize: ignore;\nmat4 getSkinMatrix(sampler2D tex, float idx) {\n float j = idx * 4.0;\n float x = mod(j, skinMatricesTextureSize);\n float y = floor(j / skinMatricesTextureSize) + 0.5;\n vec2 scale = vec2(skinMatricesTextureSize);\n return mat4(\n texture2D(tex, vec2(x + 0.5, y) / scale),\n texture2D(tex, vec2(x + 1.5, y) / scale),\n texture2D(tex, vec2(x + 2.5, y) / scale),\n texture2D(tex, vec2(x + 3.5, y) / scale)\n );\n}\nmat4 getSkinMatrix(float idx) {\n return getSkinMatrix(skinMatricesTexture, idx);\n}\n#else\nuniform mat4 skinMatrix[JOINT_COUNT] : SKIN_MATRIX;\nmat4 getSkinMatrix(float idx) {\n return skinMatrix[int(idx)];\n}\n#endif\n#endif\n@end\n@export clay.chunk.skin_matrix\nmat4 skinMatrixWS = getSkinMatrix(joint.x) * weight.x;\nif (weight.y > 1e-4)\n{\n skinMatrixWS += getSkinMatrix(joint.y) * weight.y;\n}\nif (weight.z > 1e-4)\n{\n skinMatrixWS += getSkinMatrix(joint.z) * weight.z;\n}\nfloat weightW = 1.0-weight.x-weight.y-weight.z;\nif (weightW > 1e-4)\n{\n skinMatrixWS += getSkinMatrix(joint.w) * weightW;\n}\n@end\n@export clay.chunk.instancing_header\n#ifdef INSTANCING\nattribute vec4 instanceMat1;\nattribute vec4 instanceMat2;\nattribute vec4 instanceMat3;\n#endif\n@end\n@export clay.chunk.instancing_matrix\nmat4 instanceMat = mat4(\n vec4(instanceMat1.xyz, 0.0),\n vec4(instanceMat2.xyz, 0.0),\n vec4(instanceMat3.xyz, 0.0),\n vec4(instanceMat1.w, instanceMat2.w, instanceMat3.w, 1.0)\n);\n@end\n@export clay.util.parallax_correct\nvec3 parallaxCorrect(in vec3 dir, in vec3 pos, in vec3 boxMin, in vec3 boxMax) {\n vec3 first = (boxMax - pos) / dir;\n vec3 second = (boxMin - pos) / dir;\n vec3 further = max(first, second);\n float dist = min(further.x, min(further.y, further.z));\n vec3 fixedPos = pos + dir * dist;\n vec3 boxCenter = (boxMax + boxMin) * 0.5;\n return normalize(fixedPos - boxCenter);\n}\n@end\n@export clay.util.clamp_sample\nvec4 clampSample(const in sampler2D texture, const in vec2 coord)\n{\n#ifdef STEREO\n float eye = step(0.5, coord.x) * 0.5;\n vec2 coordClamped = clamp(coord, vec2(eye, 0.0), vec2(0.5 + eye, 1.0));\n#else\n vec2 coordClamped = clamp(coord, vec2(0.0), vec2(1.0));\n#endif\n return texture2D(texture, coordClamped);\n}\n@end\n@export clay.util.ACES\nvec3 ACESToneMapping(vec3 color)\n{\n const float A = 2.51;\n const float B = 0.03;\n const float C = 2.43;\n const float D = 0.59;\n const float E = 0.14;\n return (color * (A * color + B)) / (color * (C * color + D) + E);\n}\n@end",oa="\n@export ecgl.common.transformUniforms\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform mat4 worldInverseTranspose : WORLDINVERSETRANSPOSE;\nuniform mat4 world : WORLD;\n@end\n\n@export ecgl.common.attributes\nattribute vec3 position : POSITION;\nattribute vec2 texcoord : TEXCOORD_0;\nattribute vec3 normal : NORMAL;\n@end\n\n@export ecgl.common.uv.header\nuniform vec2 uvRepeat : [1.0, 1.0];\nuniform vec2 uvOffset : [0.0, 0.0];\nuniform vec2 detailUvRepeat : [1.0, 1.0];\nuniform vec2 detailUvOffset : [0.0, 0.0];\n\nvarying vec2 v_Texcoord;\nvarying vec2 v_DetailTexcoord;\n@end\n\n@export ecgl.common.uv.main\nv_Texcoord = texcoord * uvRepeat + uvOffset;\nv_DetailTexcoord = texcoord * detailUvRepeat + detailUvOffset;\n@end\n\n@export ecgl.common.uv.fragmentHeader\nvarying vec2 v_Texcoord;\nvarying vec2 v_DetailTexcoord;\n@end\n\n\n@export ecgl.common.albedo.main\n\n vec4 albedoTexel = vec4(1.0);\n#ifdef DIFFUSEMAP_ENABLED\n albedoTexel = texture2D(diffuseMap, v_Texcoord);\n #ifdef SRGB_DECODE\n albedoTexel = sRGBToLinear(albedoTexel);\n #endif\n#endif\n\n#ifdef DETAILMAP_ENABLED\n vec4 detailTexel = texture2D(detailMap, v_DetailTexcoord);\n #ifdef SRGB_DECODE\n detailTexel = sRGBToLinear(detailTexel);\n #endif\n albedoTexel.rgb = mix(albedoTexel.rgb, detailTexel.rgb, detailTexel.a);\n albedoTexel.a = detailTexel.a + (1.0 - detailTexel.a) * albedoTexel.a;\n#endif\n\n@end\n\n@export ecgl.common.wireframe.vertexHeader\n\n#ifdef WIREFRAME_QUAD\nattribute vec4 barycentric;\nvarying vec4 v_Barycentric;\n#elif defined(WIREFRAME_TRIANGLE)\nattribute vec3 barycentric;\nvarying vec3 v_Barycentric;\n#endif\n\n@end\n\n@export ecgl.common.wireframe.vertexMain\n\n#if defined(WIREFRAME_QUAD) || defined(WIREFRAME_TRIANGLE)\n v_Barycentric = barycentric;\n#endif\n\n@end\n\n\n@export ecgl.common.wireframe.fragmentHeader\n\nuniform float wireframeLineWidth : 1;\nuniform vec4 wireframeLineColor: [0, 0, 0, 0.5];\n\n#ifdef WIREFRAME_QUAD\nvarying vec4 v_Barycentric;\nfloat edgeFactor () {\n vec4 d = fwidth(v_Barycentric);\n vec4 a4 = smoothstep(vec4(0.0), d * wireframeLineWidth, v_Barycentric);\n return min(min(min(a4.x, a4.y), a4.z), a4.w);\n}\n#elif defined(WIREFRAME_TRIANGLE)\nvarying vec3 v_Barycentric;\nfloat edgeFactor () {\n vec3 d = fwidth(v_Barycentric);\n vec3 a3 = smoothstep(vec3(0.0), d * wireframeLineWidth, v_Barycentric);\n return min(min(a3.x, a3.y), a3.z);\n}\n#endif\n\n@end\n\n\n@export ecgl.common.wireframe.fragmentMain\n\n#if defined(WIREFRAME_QUAD) || defined(WIREFRAME_TRIANGLE)\n if (wireframeLineWidth > 0.) {\n vec4 lineColor = wireframeLineColor;\n#ifdef SRGB_DECODE\n lineColor = sRGBToLinear(lineColor);\n#endif\n\n gl_FragColor.rgb = mix(gl_FragColor.rgb, lineColor.rgb, (1.0 - edgeFactor()) * lineColor.a);\n }\n#endif\n@end\n\n\n\n\n@export ecgl.common.bumpMap.header\n\n#ifdef BUMPMAP_ENABLED\nuniform sampler2D bumpMap;\nuniform float bumpScale : 1.0;\n\n\nvec3 bumpNormal(vec3 surfPos, vec3 surfNormal, vec3 baseNormal)\n{\n vec2 dSTdx = dFdx(v_Texcoord);\n vec2 dSTdy = dFdy(v_Texcoord);\n\n float Hll = bumpScale * texture2D(bumpMap, v_Texcoord).x;\n float dHx = bumpScale * texture2D(bumpMap, v_Texcoord + dSTdx).x - Hll;\n float dHy = bumpScale * texture2D(bumpMap, v_Texcoord + dSTdy).x - Hll;\n\n vec3 vSigmaX = dFdx(surfPos);\n vec3 vSigmaY = dFdy(surfPos);\n vec3 vN = surfNormal;\n\n vec3 R1 = cross(vSigmaY, vN);\n vec3 R2 = cross(vN, vSigmaX);\n\n float fDet = dot(vSigmaX, R1);\n\n vec3 vGrad = sign(fDet) * (dHx * R1 + dHy * R2);\n return normalize(abs(fDet) * baseNormal - vGrad);\n\n}\n#endif\n\n@end\n\n@export ecgl.common.normalMap.vertexHeader\n\n#ifdef NORMALMAP_ENABLED\nattribute vec4 tangent : TANGENT;\nvarying vec3 v_Tangent;\nvarying vec3 v_Bitangent;\n#endif\n\n@end\n\n@export ecgl.common.normalMap.vertexMain\n\n#ifdef NORMALMAP_ENABLED\n if (dot(tangent, tangent) > 0.0) {\n v_Tangent = normalize((worldInverseTranspose * vec4(tangent.xyz, 0.0)).xyz);\n v_Bitangent = normalize(cross(v_Normal, v_Tangent) * tangent.w);\n }\n#endif\n\n@end\n\n\n@export ecgl.common.normalMap.fragmentHeader\n\n#ifdef NORMALMAP_ENABLED\nuniform sampler2D normalMap;\nvarying vec3 v_Tangent;\nvarying vec3 v_Bitangent;\n#endif\n\n@end\n\n@export ecgl.common.normalMap.fragmentMain\n#ifdef NORMALMAP_ENABLED\n if (dot(v_Tangent, v_Tangent) > 0.0) {\n vec3 normalTexel = texture2D(normalMap, v_DetailTexcoord).xyz;\n if (dot(normalTexel, normalTexel) > 0.0) { N = normalTexel * 2.0 - 1.0;\n mat3 tbn = mat3(v_Tangent, v_Bitangent, v_Normal);\n N = normalize(tbn * N);\n }\n }\n#endif\n@end\n\n\n\n@export ecgl.common.vertexAnimation.header\n\n#ifdef VERTEX_ANIMATION\nattribute vec3 prevPosition;\nattribute vec3 prevNormal;\nuniform float percent;\n#endif\n\n@end\n\n@export ecgl.common.vertexAnimation.main\n\n#ifdef VERTEX_ANIMATION\n vec3 pos = mix(prevPosition, position, percent);\n vec3 norm = mix(prevNormal, normal, percent);\n#else\n vec3 pos = position;\n vec3 norm = normal;\n#endif\n\n@end\n\n\n@export ecgl.common.ssaoMap.header\n#ifdef SSAOMAP_ENABLED\nuniform sampler2D ssaoMap;\nuniform vec4 viewport : VIEWPORT;\n#endif\n@end\n\n@export ecgl.common.ssaoMap.main\n float ao = 1.0;\n#ifdef SSAOMAP_ENABLED\n ao = texture2D(ssaoMap, (gl_FragCoord.xy - viewport.xy) / viewport.zw).r;\n#endif\n@end\n\n\n\n\n@export ecgl.common.diffuseLayer.header\n\n#if (LAYER_DIFFUSEMAP_COUNT > 0)\nuniform float layerDiffuseIntensity[LAYER_DIFFUSEMAP_COUNT];\nuniform sampler2D layerDiffuseMap[LAYER_DIFFUSEMAP_COUNT];\n#endif\n\n@end\n\n@export ecgl.common.emissiveLayer.header\n\n#if (LAYER_EMISSIVEMAP_COUNT > 0)\nuniform float layerEmissionIntensity[LAYER_EMISSIVEMAP_COUNT];\nuniform sampler2D layerEmissiveMap[LAYER_EMISSIVEMAP_COUNT];\n#endif\n\n@end\n\n@export ecgl.common.layers.header\n@import ecgl.common.diffuseLayer.header\n@import ecgl.common.emissiveLayer.header\n@end\n\n@export ecgl.common.diffuseLayer.main\n\n#if (LAYER_DIFFUSEMAP_COUNT > 0)\n for (int _idx_ = 0; _idx_ < LAYER_DIFFUSEMAP_COUNT; _idx_++) {{\n float intensity = layerDiffuseIntensity[_idx_];\n vec4 texel2 = texture2D(layerDiffuseMap[_idx_], v_Texcoord);\n #ifdef SRGB_DECODE\n texel2 = sRGBToLinear(texel2);\n #endif\n albedoTexel.rgb = mix(albedoTexel.rgb, texel2.rgb * intensity, texel2.a);\n albedoTexel.a = texel2.a + (1.0 - texel2.a) * albedoTexel.a;\n }}\n#endif\n\n@end\n\n@export ecgl.common.emissiveLayer.main\n\n#if (LAYER_EMISSIVEMAP_COUNT > 0)\n for (int _idx_ = 0; _idx_ < LAYER_EMISSIVEMAP_COUNT; _idx_++)\n {{\n vec4 texel2 = texture2D(layerEmissiveMap[_idx_], v_Texcoord) * layerEmissionIntensity[_idx_];\n #ifdef SRGB_DECODE\n texel2 = sRGBToLinear(texel2);\n #endif\n float intensity = layerEmissionIntensity[_idx_];\n gl_FragColor.rgb += texel2.rgb * texel2.a * intensity;\n }}\n#endif\n\n@end\n",sa="@export ecgl.color.vertex\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\n@import ecgl.common.uv.header\n\nattribute vec2 texcoord : TEXCOORD_0;\nattribute vec3 position: POSITION;\n\n@import ecgl.common.wireframe.vertexHeader\n\n#ifdef VERTEX_COLOR\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n#endif\n\n#ifdef VERTEX_ANIMATION\nattribute vec3 prevPosition;\nuniform float percent : 1.0;\n#endif\n\n#ifdef ATMOSPHERE_ENABLED\nattribute vec3 normal: NORMAL;\nuniform mat4 worldInverseTranspose : WORLDINVERSETRANSPOSE;\nvarying vec3 v_Normal;\n#endif\n\nvoid main()\n{\n#ifdef VERTEX_ANIMATION\n vec3 pos = mix(prevPosition, position, percent);\n#else\n vec3 pos = position;\n#endif\n\n gl_Position = worldViewProjection * vec4(pos, 1.0);\n\n @import ecgl.common.uv.main\n\n#ifdef VERTEX_COLOR\n v_Color = a_Color;\n#endif\n\n#ifdef ATMOSPHERE_ENABLED\n v_Normal = normalize((worldInverseTranspose * vec4(normal, 0.0)).xyz);\n#endif\n\n @import ecgl.common.wireframe.vertexMain\n\n}\n\n@end\n\n@export ecgl.color.fragment\n\n#define LAYER_DIFFUSEMAP_COUNT 0\n#define LAYER_EMISSIVEMAP_COUNT 0\n\nuniform sampler2D diffuseMap;\nuniform sampler2D detailMap;\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\n#ifdef ATMOSPHERE_ENABLED\nuniform mat4 viewTranspose: VIEWTRANSPOSE;\nuniform vec3 glowColor;\nuniform float glowPower;\nvarying vec3 v_Normal;\n#endif\n\n#ifdef VERTEX_COLOR\nvarying vec4 v_Color;\n#endif\n\n@import ecgl.common.layers.header\n\n@import ecgl.common.uv.fragmentHeader\n\n@import ecgl.common.wireframe.fragmentHeader\n\n@import clay.util.srgb\n\nvoid main()\n{\n#ifdef SRGB_DECODE\n gl_FragColor = sRGBToLinear(color);\n#else\n gl_FragColor = color;\n#endif\n\n#ifdef VERTEX_COLOR\n gl_FragColor *= v_Color;\n#endif\n\n @import ecgl.common.albedo.main\n\n @import ecgl.common.diffuseLayer.main\n\n gl_FragColor *= albedoTexel;\n\n#ifdef ATMOSPHERE_ENABLED\n float atmoIntensity = pow(1.0 - dot(v_Normal, (viewTranspose * vec4(0.0, 0.0, 1.0, 0.0)).xyz), glowPower);\n gl_FragColor.rgb += glowColor * atmoIntensity;\n#endif\n\n @import ecgl.common.emissiveLayer.main\n\n @import ecgl.common.wireframe.fragmentMain\n\n}\n@end",la="/**\n * http: */\n\n@export ecgl.lambert.vertex\n\n@import ecgl.common.transformUniforms\n\n@import ecgl.common.uv.header\n\n\n@import ecgl.common.attributes\n\n@import ecgl.common.wireframe.vertexHeader\n\n#ifdef VERTEX_COLOR\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n#endif\n\n\n@import ecgl.common.vertexAnimation.header\n\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\nvoid main()\n{\n @import ecgl.common.uv.main\n\n @import ecgl.common.vertexAnimation.main\n\n\n gl_Position = worldViewProjection * vec4(pos, 1.0);\n\n v_Normal = normalize((worldInverseTranspose * vec4(norm, 0.0)).xyz);\n v_WorldPosition = (world * vec4(pos, 1.0)).xyz;\n\n#ifdef VERTEX_COLOR\n v_Color = a_Color;\n#endif\n\n @import ecgl.common.wireframe.vertexMain\n}\n\n@end\n\n\n@export ecgl.lambert.fragment\n\n#define LAYER_DIFFUSEMAP_COUNT 0\n#define LAYER_EMISSIVEMAP_COUNT 0\n\n#define NORMAL_UP_AXIS 1\n#define NORMAL_FRONT_AXIS 2\n\n@import ecgl.common.uv.fragmentHeader\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\nuniform sampler2D diffuseMap;\nuniform sampler2D detailMap;\n\n@import ecgl.common.layers.header\n\nuniform float emissionIntensity: 1.0;\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\nuniform mat4 viewInverse : VIEWINVERSE;\n\n#ifdef ATMOSPHERE_ENABLED\nuniform mat4 viewTranspose: VIEWTRANSPOSE;\nuniform vec3 glowColor;\nuniform float glowPower;\n#endif\n\n#ifdef AMBIENT_LIGHT_COUNT\n@import clay.header.ambient_light\n#endif\n#ifdef AMBIENT_SH_LIGHT_COUNT\n@import clay.header.ambient_sh_light\n#endif\n\n#ifdef DIRECTIONAL_LIGHT_COUNT\n@import clay.header.directional_light\n#endif\n\n#ifdef VERTEX_COLOR\nvarying vec4 v_Color;\n#endif\n\n\n@import ecgl.common.ssaoMap.header\n\n@import ecgl.common.bumpMap.header\n\n@import clay.util.srgb\n\n@import ecgl.common.wireframe.fragmentHeader\n\n@import clay.plugin.compute_shadow_map\n\nvoid main()\n{\n#ifdef SRGB_DECODE\n gl_FragColor = sRGBToLinear(color);\n#else\n gl_FragColor = color;\n#endif\n\n#ifdef VERTEX_COLOR\n #ifdef SRGB_DECODE\n gl_FragColor *= sRGBToLinear(v_Color);\n #else\n gl_FragColor *= v_Color;\n #endif\n#endif\n\n @import ecgl.common.albedo.main\n\n @import ecgl.common.diffuseLayer.main\n\n gl_FragColor *= albedoTexel;\n\n vec3 N = v_Normal;\n#ifdef DOUBLE_SIDED\n vec3 eyePos = viewInverse[3].xyz;\n vec3 V = normalize(eyePos - v_WorldPosition);\n\n if (dot(N, V) < 0.0) {\n N = -N;\n }\n#endif\n\n float ambientFactor = 1.0;\n\n#ifdef BUMPMAP_ENABLED\n N = bumpNormal(v_WorldPosition, v_Normal, N);\n ambientFactor = dot(v_Normal, N);\n#endif\n\n vec3 N2 = vec3(N.x, N[NORMAL_UP_AXIS], N[NORMAL_FRONT_AXIS]);\n\n vec3 diffuseColor = vec3(0.0, 0.0, 0.0);\n\n @import ecgl.common.ssaoMap.main\n\n#ifdef AMBIENT_LIGHT_COUNT\n for(int i = 0; i < AMBIENT_LIGHT_COUNT; i++)\n {\n diffuseColor += ambientLightColor[i] * ambientFactor * ao;\n }\n#endif\n#ifdef AMBIENT_SH_LIGHT_COUNT\n for(int _idx_ = 0; _idx_ < AMBIENT_SH_LIGHT_COUNT; _idx_++)\n {{\n diffuseColor += calcAmbientSHLight(_idx_, N2) * ambientSHLightColor[_idx_] * ao;\n }}\n#endif\n#ifdef DIRECTIONAL_LIGHT_COUNT\n#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT];\n if(shadowEnabled)\n {\n computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir);\n }\n#endif\n for(int i = 0; i < DIRECTIONAL_LIGHT_COUNT; i++)\n {\n vec3 lightDirection = -directionalLightDirection[i];\n vec3 lightColor = directionalLightColor[i];\n\n float shadowContrib = 1.0;\n#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n if (shadowEnabled)\n {\n shadowContrib = shadowContribsDir[i];\n }\n#endif\n\n float ndl = dot(N, normalize(lightDirection)) * shadowContrib;\n\n diffuseColor += lightColor * clamp(ndl, 0.0, 1.0);\n }\n#endif\n\n gl_FragColor.rgb *= diffuseColor;\n\n#ifdef ATMOSPHERE_ENABLED\n float atmoIntensity = pow(1.0 - dot(v_Normal, (viewTranspose * vec4(0.0, 0.0, 1.0, 0.0)).xyz), glowPower);\n gl_FragColor.rgb += glowColor * atmoIntensity;\n#endif\n\n @import ecgl.common.emissiveLayer.main\n\n @import ecgl.common.wireframe.fragmentMain\n}\n\n@end",ua="@export ecgl.realistic.vertex\n\n@import ecgl.common.transformUniforms\n\n@import ecgl.common.uv.header\n\n@import ecgl.common.attributes\n\n\n@import ecgl.common.wireframe.vertexHeader\n\n#ifdef VERTEX_COLOR\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n#endif\n\n#ifdef NORMALMAP_ENABLED\nattribute vec4 tangent : TANGENT;\nvarying vec3 v_Tangent;\nvarying vec3 v_Bitangent;\n#endif\n\n@import ecgl.common.vertexAnimation.header\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\nvoid main()\n{\n\n @import ecgl.common.uv.main\n\n @import ecgl.common.vertexAnimation.main\n\n gl_Position = worldViewProjection * vec4(pos, 1.0);\n\n v_Normal = normalize((worldInverseTranspose * vec4(norm, 0.0)).xyz);\n v_WorldPosition = (world * vec4(pos, 1.0)).xyz;\n\n#ifdef VERTEX_COLOR\n v_Color = a_Color;\n#endif\n\n#ifdef NORMALMAP_ENABLED\n v_Tangent = normalize((worldInverseTranspose * vec4(tangent.xyz, 0.0)).xyz);\n v_Bitangent = normalize(cross(v_Normal, v_Tangent) * tangent.w);\n#endif\n\n @import ecgl.common.wireframe.vertexMain\n\n}\n\n@end\n\n\n\n@export ecgl.realistic.fragment\n\n#define LAYER_DIFFUSEMAP_COUNT 0\n#define LAYER_EMISSIVEMAP_COUNT 0\n#define PI 3.14159265358979\n#define ROUGHNESS_CHANEL 0\n#define METALNESS_CHANEL 1\n\n#define NORMAL_UP_AXIS 1\n#define NORMAL_FRONT_AXIS 2\n\n#ifdef VERTEX_COLOR\nvarying vec4 v_Color;\n#endif\n\n@import ecgl.common.uv.fragmentHeader\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\nuniform sampler2D diffuseMap;\n\nuniform sampler2D detailMap;\nuniform sampler2D metalnessMap;\nuniform sampler2D roughnessMap;\n\n@import ecgl.common.layers.header\n\nuniform float emissionIntensity: 1.0;\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\nuniform float metalness : 0.0;\nuniform float roughness : 0.5;\n\nuniform mat4 viewInverse : VIEWINVERSE;\n\n#ifdef ATMOSPHERE_ENABLED\nuniform mat4 viewTranspose: VIEWTRANSPOSE;\nuniform vec3 glowColor;\nuniform float glowPower;\n#endif\n\n#ifdef AMBIENT_LIGHT_COUNT\n@import clay.header.ambient_light\n#endif\n\n#ifdef AMBIENT_SH_LIGHT_COUNT\n@import clay.header.ambient_sh_light\n#endif\n\n#ifdef AMBIENT_CUBEMAP_LIGHT_COUNT\n@import clay.header.ambient_cubemap_light\n#endif\n\n#ifdef DIRECTIONAL_LIGHT_COUNT\n@import clay.header.directional_light\n#endif\n\n@import ecgl.common.normalMap.fragmentHeader\n\n@import ecgl.common.ssaoMap.header\n\n@import ecgl.common.bumpMap.header\n\n@import clay.util.srgb\n\n@import clay.util.rgbm\n\n@import ecgl.common.wireframe.fragmentHeader\n\n@import clay.plugin.compute_shadow_map\n\nvec3 F_Schlick(float ndv, vec3 spec) {\n return spec + (1.0 - spec) * pow(1.0 - ndv, 5.0);\n}\n\nfloat D_Phong(float g, float ndh) {\n float a = pow(8192.0, g);\n return (a + 2.0) / 8.0 * pow(ndh, a);\n}\n\nvoid main()\n{\n vec4 albedoColor = color;\n\n vec3 eyePos = viewInverse[3].xyz;\n vec3 V = normalize(eyePos - v_WorldPosition);\n#ifdef VERTEX_COLOR\n #ifdef SRGB_DECODE\n albedoColor *= sRGBToLinear(v_Color);\n #else\n albedoColor *= v_Color;\n #endif\n#endif\n\n @import ecgl.common.albedo.main\n\n @import ecgl.common.diffuseLayer.main\n\n albedoColor *= albedoTexel;\n\n float m = metalness;\n\n#ifdef METALNESSMAP_ENABLED\n float m2 = texture2D(metalnessMap, v_DetailTexcoord)[METALNESS_CHANEL];\n m = clamp(m2 + (m - 0.5) * 2.0, 0.0, 1.0);\n#endif\n\n vec3 baseColor = albedoColor.rgb;\n albedoColor.rgb = baseColor * (1.0 - m);\n vec3 specFactor = mix(vec3(0.04), baseColor, m);\n\n float g = 1.0 - roughness;\n\n#ifdef ROUGHNESSMAP_ENABLED\n float g2 = 1.0 - texture2D(roughnessMap, v_DetailTexcoord)[ROUGHNESS_CHANEL];\n g = clamp(g2 + (g - 0.5) * 2.0, 0.0, 1.0);\n#endif\n\n vec3 N = v_Normal;\n\n#ifdef DOUBLE_SIDED\n if (dot(N, V) < 0.0) {\n N = -N;\n }\n#endif\n\n float ambientFactor = 1.0;\n\n#ifdef BUMPMAP_ENABLED\n N = bumpNormal(v_WorldPosition, v_Normal, N);\n ambientFactor = dot(v_Normal, N);\n#endif\n\n@import ecgl.common.normalMap.fragmentMain\n\n vec3 N2 = vec3(N.x, N[NORMAL_UP_AXIS], N[NORMAL_FRONT_AXIS]);\n\n vec3 diffuseTerm = vec3(0.0);\n vec3 specularTerm = vec3(0.0);\n\n float ndv = clamp(dot(N, V), 0.0, 1.0);\n vec3 fresnelTerm = F_Schlick(ndv, specFactor);\n\n @import ecgl.common.ssaoMap.main\n\n#ifdef AMBIENT_LIGHT_COUNT\n for(int _idx_ = 0; _idx_ < AMBIENT_LIGHT_COUNT; _idx_++)\n {{\n diffuseTerm += ambientLightColor[_idx_] * ambientFactor * ao;\n }}\n#endif\n\n#ifdef AMBIENT_SH_LIGHT_COUNT\n for(int _idx_ = 0; _idx_ < AMBIENT_SH_LIGHT_COUNT; _idx_++)\n {{\n diffuseTerm += calcAmbientSHLight(_idx_, N2) * ambientSHLightColor[_idx_] * ao;\n }}\n#endif\n\n#ifdef DIRECTIONAL_LIGHT_COUNT\n#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT];\n if(shadowEnabled)\n {\n computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir);\n }\n#endif\n for(int _idx_ = 0; _idx_ < DIRECTIONAL_LIGHT_COUNT; _idx_++)\n {{\n vec3 L = -directionalLightDirection[_idx_];\n vec3 lc = directionalLightColor[_idx_];\n\n vec3 H = normalize(L + V);\n float ndl = clamp(dot(N, normalize(L)), 0.0, 1.0);\n float ndh = clamp(dot(N, H), 0.0, 1.0);\n\n float shadowContrib = 1.0;\n#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n if (shadowEnabled)\n {\n shadowContrib = shadowContribsDir[_idx_];\n }\n#endif\n\n vec3 li = lc * ndl * shadowContrib;\n\n diffuseTerm += li;\n specularTerm += li * fresnelTerm * D_Phong(g, ndh);\n }}\n#endif\n\n\n#ifdef AMBIENT_CUBEMAP_LIGHT_COUNT\n vec3 L = reflect(-V, N);\n L = vec3(L.x, L[NORMAL_UP_AXIS], L[NORMAL_FRONT_AXIS]);\n float rough2 = clamp(1.0 - g, 0.0, 1.0);\n float bias2 = rough2 * 5.0;\n vec2 brdfParam2 = texture2D(ambientCubemapLightBRDFLookup[0], vec2(rough2, ndv)).xy;\n vec3 envWeight2 = specFactor * brdfParam2.x + brdfParam2.y;\n vec3 envTexel2;\n for(int _idx_ = 0; _idx_ < AMBIENT_CUBEMAP_LIGHT_COUNT; _idx_++)\n {{\n envTexel2 = RGBMDecode(textureCubeLodEXT(ambientCubemapLightCubemap[_idx_], L, bias2), 8.12);\n specularTerm += ambientCubemapLightColor[_idx_] * envTexel2 * envWeight2 * ao;\n }}\n#endif\n\n gl_FragColor.rgb = albedoColor.rgb * diffuseTerm + specularTerm;\n gl_FragColor.a = albedoColor.a;\n\n#ifdef ATMOSPHERE_ENABLED\n float atmoIntensity = pow(1.0 - dot(v_Normal, (viewTranspose * vec4(0.0, 0.0, 1.0, 0.0)).xyz), glowPower);\n gl_FragColor.rgb += glowColor * atmoIntensity;\n#endif\n\n#ifdef SRGB_ENCODE\n gl_FragColor = linearTosRGB(gl_FragColor);\n#endif\n\n @import ecgl.common.emissiveLayer.main\n\n @import ecgl.common.wireframe.fragmentMain\n}\n\n@end",ca="@export ecgl.hatching.vertex\n\n@import ecgl.realistic.vertex\n\n@end\n\n\n@export ecgl.hatching.fragment\n\n#define NORMAL_UP_AXIS 1\n#define NORMAL_FRONT_AXIS 2\n\n@import ecgl.common.uv.fragmentHeader\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\nuniform vec4 color : [0.0, 0.0, 0.0, 1.0];\nuniform vec4 paperColor : [1.0, 1.0, 1.0, 1.0];\n\nuniform mat4 viewInverse : VIEWINVERSE;\n\n#ifdef AMBIENT_LIGHT_COUNT\n@import clay.header.ambient_light\n#endif\n#ifdef AMBIENT_SH_LIGHT_COUNT\n@import clay.header.ambient_sh_light\n#endif\n\n#ifdef DIRECTIONAL_LIGHT_COUNT\n@import clay.header.directional_light\n#endif\n\n#ifdef VERTEX_COLOR\nvarying vec4 v_Color;\n#endif\n\n\n@import ecgl.common.ssaoMap.header\n\n@import ecgl.common.bumpMap.header\n\n@import clay.util.srgb\n\n@import ecgl.common.wireframe.fragmentHeader\n\n@import clay.plugin.compute_shadow_map\n\nuniform sampler2D hatch1;\nuniform sampler2D hatch2;\nuniform sampler2D hatch3;\nuniform sampler2D hatch4;\nuniform sampler2D hatch5;\nuniform sampler2D hatch6;\n\nfloat shade(in float tone) {\n vec4 c = vec4(1. ,1., 1., 1.);\n float step = 1. / 6.;\n vec2 uv = v_DetailTexcoord;\n if (tone <= step / 2.0) {\n c = mix(vec4(0.), texture2D(hatch6, uv), 12. * tone);\n }\n else if (tone <= step) {\n c = mix(texture2D(hatch6, uv), texture2D(hatch5, uv), 6. * tone);\n }\n if(tone > step && tone <= 2. * step){\n c = mix(texture2D(hatch5, uv), texture2D(hatch4, uv) , 6. * (tone - step));\n }\n if(tone > 2. * step && tone <= 3. * step){\n c = mix(texture2D(hatch4, uv), texture2D(hatch3, uv), 6. * (tone - 2. * step));\n }\n if(tone > 3. * step && tone <= 4. * step){\n c = mix(texture2D(hatch3, uv), texture2D(hatch2, uv), 6. * (tone - 3. * step));\n }\n if(tone > 4. * step && tone <= 5. * step){\n c = mix(texture2D(hatch2, uv), texture2D(hatch1, uv), 6. * (tone - 4. * step));\n }\n if(tone > 5. * step){\n c = mix(texture2D(hatch1, uv), vec4(1.), 6. * (tone - 5. * step));\n }\n\n return c.r;\n}\n\nconst vec3 w = vec3(0.2125, 0.7154, 0.0721);\n\nvoid main()\n{\n#ifdef SRGB_DECODE\n vec4 inkColor = sRGBToLinear(color);\n#else\n vec4 inkColor = color;\n#endif\n\n#ifdef VERTEX_COLOR\n #ifdef SRGB_DECODE\n inkColor *= sRGBToLinear(v_Color);\n #else\n inkColor *= v_Color;\n #endif\n#endif\n\n vec3 N = v_Normal;\n#ifdef DOUBLE_SIDED\n vec3 eyePos = viewInverse[3].xyz;\n vec3 V = normalize(eyePos - v_WorldPosition);\n\n if (dot(N, V) < 0.0) {\n N = -N;\n }\n#endif\n\n float tone = 0.0;\n\n float ambientFactor = 1.0;\n\n#ifdef BUMPMAP_ENABLED\n N = bumpNormal(v_WorldPosition, v_Normal, N);\n ambientFactor = dot(v_Normal, N);\n#endif\n\n vec3 N2 = vec3(N.x, N[NORMAL_UP_AXIS], N[NORMAL_FRONT_AXIS]);\n\n @import ecgl.common.ssaoMap.main\n\n#ifdef AMBIENT_LIGHT_COUNT\n for(int i = 0; i < AMBIENT_LIGHT_COUNT; i++)\n {\n tone += dot(ambientLightColor[i], w) * ambientFactor * ao;\n }\n#endif\n#ifdef AMBIENT_SH_LIGHT_COUNT\n for(int _idx_ = 0; _idx_ < AMBIENT_SH_LIGHT_COUNT; _idx_++)\n {{\n tone += dot(calcAmbientSHLight(_idx_, N2) * ambientSHLightColor[_idx_], w) * ao;\n }}\n#endif\n#ifdef DIRECTIONAL_LIGHT_COUNT\n#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT];\n if(shadowEnabled)\n {\n computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir);\n }\n#endif\n for(int i = 0; i < DIRECTIONAL_LIGHT_COUNT; i++)\n {\n vec3 lightDirection = -directionalLightDirection[i];\n float lightTone = dot(directionalLightColor[i], w);\n\n float shadowContrib = 1.0;\n#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n if (shadowEnabled)\n {\n shadowContrib = shadowContribsDir[i];\n }\n#endif\n\n float ndl = dot(N, normalize(lightDirection)) * shadowContrib;\n\n tone += lightTone * clamp(ndl, 0.0, 1.0);\n }\n#endif\n\n gl_FragColor = mix(inkColor, paperColor, shade(clamp(tone, 0.0, 1.0)));\n }\n@end\n",ha="@export ecgl.sm.depth.vertex\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\nattribute vec3 position : POSITION;\nattribute vec2 texcoord : TEXCOORD_0;\n\n#ifdef VERTEX_ANIMATION\nattribute vec3 prevPosition;\nuniform float percent : 1.0;\n#endif\n\nvarying vec4 v_ViewPosition;\nvarying vec2 v_Texcoord;\n\nvoid main(){\n\n#ifdef VERTEX_ANIMATION\n vec3 pos = mix(prevPosition, position, percent);\n#else\n vec3 pos = position;\n#endif\n\n v_ViewPosition = worldViewProjection * vec4(pos, 1.0);\n gl_Position = v_ViewPosition;\n\n v_Texcoord = texcoord;\n\n}\n@end\n\n\n\n@export ecgl.sm.depth.fragment\n\n@import clay.sm.depth.fragment\n\n@end";function da(e){return!e||"none"===e}function fa(e){return e instanceof HTMLCanvasElement||e instanceof HTMLImageElement||e instanceof Image}function pa(e){return e.getZr&&e.setOption}Object.assign(zt.prototype,ia),He["import"](aa),He["import"](Ue),He["import"](oa),He["import"](sa),He["import"](la),He["import"](ua),He["import"](ca),He["import"](ha);var ga=Wn.prototype.addToScene,ma=Wn.prototype.removeFromScene;Wn.prototype.addToScene=function(e){if(ga.call(this,e),this.__zr){var t=this.__zr;e.traverse((function(e){e.__zr=t,e.addAnimatorsToZr&&e.addAnimatorsToZr(t)}))}},Wn.prototype.removeFromScene=function(e){ma.call(this,e),e.traverse((function(e){var t=e.__zr;e.__zr=null,t&&e.removeAnimatorsFromZr&&e.removeAnimatorsFromZr(t)}))},J.prototype.setTextureImage=function(e,t,n,r){if(this.shader){var i,a=n.getZr(),o=this;return o.autoUpdateTextureStatus=!1,o.disableTexture(e),da(t)||(i=va.loadTexture(t,n,r,(function(t){o.enableTexture(e),a&&a.refresh()})),o.set(e,i)),i}};var va={};va.Renderer=st,va.Node=zt,va.Mesh=Zt,va.Shader=He,va.Material=J,va.Texture=Kt,va.Texture2D=rn,va.Geometry=vn,va.SphereGeometry=Pi,va.PlaneGeometry=mr,va.CubeGeometry=_r,va.AmbientLight=Ri,va.DirectionalLight=ji,va.PointLight=zi,va.SpotLight=Vi,va.PerspectiveCamera=Jn,va.OrthographicCamera=li,va.Vector2=se,va.Vector3=gt,va.Vector4=Wi,va.Quaternion=Lt,va.Matrix2=qi,va.Matrix2d=Ji,va.Matrix3=ta,va.Matrix4=At,va.Plane=An,va.Ray=yt,va.BoundingBox=Nt,va.Frustum=Rn;var ya=ni.createBlank("rgba(255,255,255,0)").image;function ba(e){return Math.pow(2,Math.round(Math.log(e)/Math.LN2))}function _a(e){if((e.wrapS===Kt.REPEAT||e.wrapT===Kt.REPEAT)&&e.image){var t=ba(e.width),n=ba(e.height);if(t!==e.width||n!==e.height){var r=document.createElement("canvas");r.width=t,r.height=n;var i=r.getContext("2d");i.drawImage(e.image,0,0,t,n),e.image=r}}}va.loadTexture=function(e,t,n,r){"function"===typeof n&&(r=n,n={}),n=n||{};for(var i=Object.keys(n).sort(),a="",o=0;o<i.length;o++)a+=i[o]+"_"+n[i[o]]+"_";var s=t.__textureCache=t.__textureCache||new Xn["a"](20);if(pa(e)){var l=e.__textureid__,u=s.get(a+l);if(u)u.texture.surface.setECharts(e),r&&r(u.texture);else{var c=new oi(e);c.onupdate=function(){t.getZr().refresh()},u={texture:c.getTexture()};for(o=0;o<i.length;o++)u.texture[i[o]]=n[i[o]];l=e.__textureid__||"__ecgl_ec__"+u.texture.__uid__,e.__textureid__=l,s.put(a+l,u),r&&r(u.texture)}return u.texture}if(fa(e)){l=e.__textureid__,u=s.get(a+l);if(!u){u={texture:new va.Texture2D({image:e})};for(o=0;o<i.length;o++)u.texture[i[o]]=n[i[o]];l=e.__textureid__||"__ecgl_image__"+u.texture.__uid__,e.__textureid__=l,s.put(a+l,u),_a(u.texture),r&&r(u.texture)}return u.texture}u=s.get(a+e);if(u)u.callbacks?u.callbacks.push(r):r&&r(u.texture);else if(e.match(/.hdr$|^data:application\/octet-stream/)){u={callbacks:[r]};var h=ni.loadTexture(e,{exposure:n.exposure,fileType:"hdr"},(function(){h.dirty(),u.callbacks.forEach((function(e){e&&e(h)})),u.callbacks=null}));u.texture=h,s.put(a+e,u)}else{for(h=new va.Texture2D({image:new Image}),o=0;o<i.length;o++)h[i[o]]=n[i[o]];u={texture:h,callbacks:[r]};var d=h.image;d.onload=function(){h.image=d,_a(h),h.dirty(),u.callbacks.forEach((function(e){e&&e(h)})),u.callbacks=null},d.src=e,h.image=ya,s.put(a+e,u)}return u.texture},va.createAmbientCubemap=function(e,t,n,r){e=e||{};var i=e.texture,a=Di.firstNotNull(e.exposure,1),o=new xi({intensity:Di.firstNotNull(e.specularIntensity,1)}),s=new Si({intensity:Di.firstNotNull(e.diffuseIntensity,1),coefficients:[.844,.712,.691,-.037,.083,.167,.343,.288,.299,-.041,-.021,-.009,-.003,-.041,-.064,-.011,-.007,-.004,-.031,.034,.081,-.06,-.049,-.06,.046,.056,.05]});return o.cubemap=va.loadTexture(i,n,{exposure:a},(function(){o.cubemap.flipY=!1,o.prefilter(t,32),s.coefficients=Ci.projectEnvironmentMap(t,o.cubemap,{lod:1}),r&&r()})),{specular:o,diffuse:s}},va.createBlankTexture=ni.createBlank,va.isImage=fa,va.additiveBlend=function(e){e.blendEquation(e.FUNC_ADD),e.blendFunc(e.SRC_ALPHA,e.ONE)},va.parseColor=function(e,t){return e instanceof Array?(t||(t=[]),t[0]=e[0],t[1]=e[1],t[2]=e[2],e.length>3?t[3]=e[3]:t[3]=1,t):(t=r["i"].parse(e||"#000",t)||[0,0,0,0],t[0]/=255,t[1]/=255,t[2]/=255,t)},va.directionFromAlphaBeta=function(e,t){var n=e/180*Math.PI+Math.PI/2,r=-t/180*Math.PI+Math.PI/2,i=[],a=Math.sin(n);return i[0]=a*Math.cos(r),i[1]=-Math.cos(n),i[2]=a*Math.sin(r),i},va.getShadowResolution=function(e){var t=1024;switch(e){case"low":t=512;break;case"medium":break;case"high":t=2048;break;case"ultra":t=4096;break}return t},va.COMMON_SHADERS=["lambert","color","realistic","hatching","shadow"],va.createShader=function(e){"ecgl.shadow"===e&&(e="ecgl.displayShadow");var t=He.source(e+".vertex"),n=He.source(e+".fragment");t||console.error("Vertex shader of '%s' not exits",e),n||console.error("Fragment shader of '%s' not exits",e);var r=new He(t,n);return r.name=e,r},va.createMaterial=function(e,t){t instanceof Array||(t=[t]);var n=va.createShader(e),r=new J({shader:n});return t.forEach((function(e){"string"===typeof e&&r.define(e)})),r},va.setMaterialFromModel=function(e,t,n,r){t.autoUpdateTextureStatus=!1;var i=n.getModel(e+"Material"),a=i.get("detailTexture"),o=Di.firstNotNull(i.get("textureTiling"),1),s=Di.firstNotNull(i.get("textureOffset"),0);"number"===typeof o&&(o=[o,o]),"number"===typeof s&&(s=[s,s]);var l=o[0]>1||o[1]>1?va.Texture.REPEAT:va.Texture.CLAMP_TO_EDGE,u={anisotropic:8,wrapS:l,wrapT:l};if("realistic"===e){var c=i.get("roughness"),h=i.get("metalness");null!=h?isNaN(h)&&(t.setTextureImage("metalnessMap",h,r,u),h=Di.firstNotNull(i.get("metalnessAdjust"),.5)):h=0,null!=c?isNaN(c)&&(t.setTextureImage("roughnessMap",c,r,u),c=Di.firstNotNull(i.get("roughnessAdjust"),.5)):c=.5;var d=i.get("normalTexture");t.setTextureImage("detailMap",a,r,u),t.setTextureImage("normalMap",d,r,u),t.set({roughness:c,metalness:h,detailUvRepeat:o,detailUvOffset:s})}else if("lambert"===e)t.setTextureImage("detailMap",a,r,u),t.set({detailUvRepeat:o,detailUvOffset:s});else if("color"===e)t.setTextureImage("detailMap",a,r,u),t.set({detailUvRepeat:o,detailUvOffset:s});else if("hatching"===e){var f=i.get("hatchingTextures")||[];f.length;for(var p=0;p<6;p++)t.setTextureImage("hatch"+(p+1),f[p],r,{anisotropic:8,wrapS:va.Texture.REPEAT,wrapT:va.Texture.REPEAT});t.set({detailUvRepeat:o,detailUvOffset:s})}},va.updateVertexAnimation=function(e,t,n,r){var i=r.get("animation"),a=r.get("animationDurationUpdate"),o=r.get("animationEasingUpdate"),s=n.shadowDepthMaterial;if(i&&t&&a>0&&t.geometry.vertexCount===n.geometry.vertexCount){n.material.define("vertex","VERTEX_ANIMATION"),n.ignorePreZ=!0,s&&s.define("vertex","VERTEX_ANIMATION");for(var l=0;l<e.length;l++)n.geometry.attributes[e[l][0]].value=t.geometry.attributes[e[l][1]].value;n.geometry.dirty(),n.__percent=0,n.material.set("percent",0),n.stopAnimation(),n.animate().when(a,{__percent:1}).during((function(){n.material.set("percent",n.__percent),s&&s.set("percent",n.__percent)})).done((function(){n.ignorePreZ=!1,n.material.undefine("vertex","VERTEX_ANIMATION"),s&&s.undefine("vertex","VERTEX_ANIMATION")})).start(o)}else n.material.undefine("vertex","VERTEX_ANIMATION"),s&&s.undefine("vertex","VERTEX_ANIMATION")};var xa=va,wa=n("HOlZ"),Sa=function(e,t){this.id=e,this.zr=t;try{this.renderer=new st({clearBit:0,devicePixelRatio:t.painter.dpr,preserveDrawingBuffer:!0,premultipliedAlpha:!0}),this.renderer.resize(t.painter.getWidth(),t.painter.getHeight())}catch(i){return this.renderer=null,this.dom=document.createElement("div"),this.dom.style.cssText="position:absolute; left: 0; top: 0; right: 0; bottom: 0;",this.dom.className="ecgl-nowebgl",this.dom.innerHTML="Sorry, your browser does not support WebGL",void console.error(i)}this.onglobalout=this.onglobalout.bind(this),t.on("globalout",this.onglobalout),this.dom=this.renderer.canvas;var n=this.dom.style;n.position="absolute",n.left="0",n.top="0",this.views=[],this._picking=new Ht({renderer:this.renderer}),this._viewsToDispose=[],this._accumulatingId=0,this._zrEventProxy=new r["z"].Rect({shape:{x:-1,y:-1,width:2,height:2},__isGLToZRProxy:!0}),this._backgroundColor=null};function Ta(e){var t=e.__zr;e.__zr=null,t&&e.removeAnimatorsFromZr&&e.removeAnimatorsFromZr(t)}Sa.prototype.setUnpainted=function(){},Sa.prototype.addView=function(e){if(e.layer!==this){var t=this._viewsToDispose.indexOf(e);t>=0&&this._viewsToDispose.splice(t,1),this.views.push(e),e.layer=this;var n=this.zr;e.scene.traverse((function(e){e.__zr=n,e.addAnimatorsToZr&&e.addAnimatorsToZr(n)}))}},Sa.prototype.removeView=function(e){if(e.layer===this){var t=this.views.indexOf(e);t>=0&&(this.views.splice(t,1),e.scene.traverse(Ta,this),e.layer=null,this._viewsToDispose.push(e))}},Sa.prototype.removeViewsAll=function(){this.views.forEach((function(e){e.scene.traverse(Ta,this),e.layer=null,this._viewsToDispose.push(e)}),this),this.views.length=0},Sa.prototype.resize=function(e,t){var n=this.renderer;n.resize(e,t)},Sa.prototype.clear=function(){var e=this.renderer.gl,t=this._backgroundColor||[0,0,0,0];e.clearColor(t[0],t[1],t[2],t[3]),e.depthMask(!0),e.colorMask(!0,!0,!0,!0),e.clear(e.DEPTH_BUFFER_BIT|e.COLOR_BUFFER_BIT)},Sa.prototype.clearDepth=function(){var e=this.renderer.gl;e.clear(e.DEPTH_BUFFER_BIT)},Sa.prototype.clearColor=function(){var e=this.renderer.gl;e.clearColor(0,0,0,0),e.clear(e.COLOR_BUFFER_BIT)},Sa.prototype.needsRefresh=function(){this.zr.refresh()},Sa.prototype.refresh=function(e){this._backgroundColor=e?xa.parseColor(e):[0,0,0,0],this.renderer.clearColor=this._backgroundColor;for(var t=0;t<this.views.length;t++)this.views[t].prepareRender(this.renderer);this._doRender(!1),this._trackAndClean();for(t=0;t<this._viewsToDispose.length;t++)this._viewsToDispose[t].dispose(this.renderer);this._viewsToDispose.length=0,this._startAccumulating()},Sa.prototype.renderToCanvas=function(e){this._startAccumulating(!0),e.drawImage(this.dom,0,0,e.canvas.width,e.canvas.height)},Sa.prototype._doRender=function(e){this.clear(),this.renderer.saveViewport();for(var t=0;t<this.views.length;t++)this.views[t].render(this.renderer,e);this.renderer.restoreViewport()},Sa.prototype._stopAccumulating=function(){this._accumulatingId=0,clearTimeout(this._accumulatingTimeout)};var Oa=1;function Ma(e){for(var t=0;t<e.length;t++)e[t].__used__=0}function Ea(e,t){for(var n=0;n<t.length;n++)t[n].__used__||t[n].dispose(e)}function Aa(e,t){e.__used__=e.__used__||0,e.__used__++,1===e.__used__&&t.push(e)}function Ca(e,t,n){var r,i;e.traverse((function(e){if(e.isRenderable()){var a=e.geometry,o=e.material;if(o!==r)for(var s=o.getTextureUniforms(),l=0;l<s.length;l++){var u=s[l],c=o.uniforms[u].value;if(c)if(c instanceof Kt)Aa(c,t);else if(c instanceof Array)for(var h=0;h<c.length;h++)c[h]instanceof Kt&&Aa(c[h],t)}a!==i&&Aa(a,n),r=o,i=a}}));for(var a=0;a<e.lights.length;a++)e.lights[a].cubemap&&Aa(e.lights[a].cubemap,t)}Sa.prototype._startAccumulating=function(e){var t=this;this._stopAccumulating();for(var n=!1,r=0;r<this.views.length;r++)n=this.views[r].needsAccumulate()||n;function i(r){if(t._accumulatingId&&r===t._accumulatingId){for(var a=!0,o=0;o<t.views.length;o++)a=t.views[o].isAccumulateFinished()&&n;a||(t._doRender(!0),e?i(r):Object(wa["a"])((function(){i(r)})))}}n&&(this._accumulatingId=Oa++,e?i(t._accumulatingId):this._accumulatingTimeout=setTimeout((function(){i(t._accumulatingId)}),50))},Sa.prototype._trackAndClean=function(){var e=[],t=[];this._textureList&&(Ma(this._textureList),Ma(this._geometriesList));for(var n=0;n<this.views.length;n++)Ca(this.views[n].scene,e,t);this._textureList&&(Ea(this.renderer,this._textureList),Ea(this.renderer,this._geometriesList)),this._textureList=e,this._geometriesList=t},Sa.prototype.dispose=function(){this._stopAccumulating(),this.renderer.disposeScene(this.scene),this.zr.off("globalout",this.onglobalout)},Sa.prototype.onmousedown=function(e){if(!e.target||!e.target.__isGLToZRProxy){e=e.event;var t=this.pickObject(e.offsetX,e.offsetY);t&&(this._dispatchEvent("mousedown",e,t),this._dispatchDataEvent("mousedown",e,t)),this._downX=e.offsetX,this._downY=e.offsetY}},Sa.prototype.onmousemove=function(e){if(!e.target||!e.target.__isGLToZRProxy){e=e.event;var t=this.pickObject(e.offsetX,e.offsetY),n=t&&t.target,r=this._hovered;this._hovered=t,r&&n!==r.target&&(r.relatedTarget=n,this._dispatchEvent("mouseout",e,r),this.zr.setCursorStyle("default")),this._dispatchEvent("mousemove",e,t),t&&(this.zr.setCursorStyle("pointer"),r&&n===r.target||this._dispatchEvent("mouseover",e,t)),this._dispatchDataEvent("mousemove",e,t)}},Sa.prototype.onmouseup=function(e){if(!e.target||!e.target.__isGLToZRProxy){e=e.event;var t=this.pickObject(e.offsetX,e.offsetY);t&&(this._dispatchEvent("mouseup",e,t),this._dispatchDataEvent("mouseup",e,t)),this._upX=e.offsetX,this._upY=e.offsetY}},Sa.prototype.onclick=Sa.prototype.dblclick=function(e){if(!e.target||!e.target.__isGLToZRProxy){var t=this._upX-this._downX,n=this._upY-this._downY;if(!(Math.sqrt(t*t+n*n)>20)){e=e.event;var r=this.pickObject(e.offsetX,e.offsetY);r&&(this._dispatchEvent(e.type,e,r),this._dispatchDataEvent(e.type,e,r));var i=this._clickToSetFocusPoint(e);if(i){var a=i.view.setDOFFocusOnPoint(i.distance);a&&this.zr.refresh()}}}},Sa.prototype._clickToSetFocusPoint=function(e){for(var t=this.renderer,n=t.viewport,r=this.views.length-1;r>=0;r--){var i=this.views[r];if(i.hasDOF()&&i.containPoint(e.offsetX,e.offsetY)){this._picking.scene=i.scene,this._picking.camera=i.camera,t.viewport=i.viewport;var a=this._picking.pick(e.offsetX,e.offsetY,!0);if(a)return a.view=i,a}}t.viewport=n},Sa.prototype.onglobalout=function(e){var t=this._hovered;t&&this._dispatchEvent("mouseout",e,{target:t.target})},Sa.prototype.pickObject=function(e,t){for(var n=[],r=this.renderer,i=r.viewport,a=0;a<this.views.length;a++){var o=this.views[a];o.containPoint(e,t)&&(this._picking.scene=o.scene,this._picking.camera=o.camera,r.viewport=o.viewport,this._picking.pickAll(e,t,n))}return r.viewport=i,n.sort((function(e,t){return e.distance-t.distance})),n[0]},Sa.prototype._dispatchEvent=function(e,t,n){n||(n={});var r=n.target;n.cancelBubble=!1,n.event=t,n.type=e,n.offsetX=t.offsetX,n.offsetY=t.offsetY;while(r)if(r.trigger(e,n),r=r.getParent(),n.cancelBubble)break;this._dispatchToView(e,n)},Sa.prototype._dispatchDataEvent=function(e,t,n){var i=n&&n.target,a=i&&i.dataIndex,o=i&&i.seriesIndex,s=i&&i.eventData,l=!1,u=this._zrEventProxy;u.x=t.offsetX,u.y=t.offsetY,u.update();var c={target:u},h=r["A"].getECData(u);"mousemove"===e&&(null!=a?a!==this._lastDataIndex&&(parseInt(this._lastDataIndex,10)>=0&&(h.dataIndex=this._lastDataIndex,h.seriesIndex=this._lastSeriesIndex,this.zr.handler.dispatchToElement(c,"mouseout",t)),l=!0):null!=s&&s!==this._lastEventData&&(null!=this._lastEventData&&(h.eventData=this._lastEventData,this.zr.handler.dispatchToElement(c,"mouseout",t)),l=!0),this._lastEventData=s,this._lastDataIndex=a,this._lastSeriesIndex=o),h.eventData=s,h.dataIndex=a,h.seriesIndex=o,(null!=s||parseInt(a,10)>=0&&parseInt(o,10)>=0)&&(this.zr.handler.dispatchToElement(c,e,t),l&&this.zr.handler.dispatchToElement(c,"mouseover",t))},Sa.prototype._dispatchToView=function(e,t){for(var n=0;n<this.views.length;n++)this.views[n].containPoint(t.offsetX,t.offsetY)&&this.views[n].trigger(e,t)},Object.assign(Sa.prototype,f);var Ia=Sa,Da=["bar3D","line3D","map3D","scatter3D","surface","lines3D","scatterGL","scatter3D"];function La(e,t){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var n=e[t].normal,r=e[t].emphasis;n&&(e[t]=n),r&&(e.emphasis=e.emphasis||{},e.emphasis[t]=r)}}function Pa(e){La(e,"itemStyle"),La(e,"lineStyle"),La(e,"areaStyle"),La(e,"label")}function ka(e){e&&(e instanceof Array||(e=[e]),r["Y"].each(e,(function(e){if(e.axisLabel){var t=e.axisLabel;Object.assign(t,t.textStyle),t.textStyle=null}})))}var Ra=function(e){r["Y"].each(e.series,(function(t){r["Y"].indexOf(Da,t.type)>=0&&(Pa(t),"mapbox"===t.coordinateSystem&&(t.coordinateSystem="mapbox3D",e.mapbox3D=e.mapbox))})),ka(e.xAxis3D),ka(e.yAxis3D),ka(e.zAxis3D),ka(e.grid3D),La(e.geo3D)};function Na(e){this._layers={},this._zr=e}Na.prototype.update=function(e,t){var n=this,i=t.getZr();if(i.getWidth()&&i.getHeight()){for(var a in this._layers)this._layers[a].removeViewsAll();e.eachComponent((function(n,r){if("series"!==n){var i=t.getViewOfComponentModel(r),a=r.coordinateSystem;if(i.__ecgl__){if(a){if(!a.viewGL)return void console.error("Can't find viewGL in coordinateSystem of component "+r.id);l=a.viewGL}else{if(!r.viewGL)return void console.error("Can't find viewGL of component "+r.id);l=a.viewGL}var l=a.viewGL,u=o(r);u.addView(l),i.afterRender&&i.afterRender(r,e,t,u),s(i.groupGL,r.get("silent"))}}})),e.eachSeries((function(n){var r=t.getViewOfSeriesModel(n),i=n.coordinateSystem;if(r.__ecgl__){if(i&&!i.viewGL&&!r.viewGL)return void console.error("Can't find viewGL of series "+r.id);var a=i&&i.viewGL||r.viewGL,l=o(n);l.addView(a),r.afterRender&&r.afterRender(n,e,t,l),s(r.groupGL,n.get("silent"))}}))}else console.warn("Dom has no width or height");function o(e){var t;i.setSleepAfterStill(0),t=(e.coordinateSystem&&e.coordinateSystem.model,e.get("zlevel"));var a=n._layers,o=a[t];if(!o){if(o=a[t]=new Ia("gl-"+t,i),i.painter.isSingleCanvas()){o.virtual=!0;var s=new r["z"].Image({z:1e4,style:{image:o.renderer.canvas},silent:!0});o.__hostImage=s,i.add(s)}i.painter.insertLayer(t,o)}return o.__hostImage&&o.__hostImage.setStyle({width:o.renderer.getWidth(),height:o.renderer.getHeight()}),o}function s(e,t){e&&e.traverse((function(e){e.isRenderable&&e.isRenderable()&&(e.ignorePicking=null!=e.$ignorePicking?e.$ignorePicking:t)}))}},r["N"]((function(e){e.getZr().painter.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas)return this._layers[0].dom;var t=document.createElement("canvas"),n=e.pixelRatio||this.dpr;t.width=this.getWidth()*n,t.height=this.getHeight()*n;var r=t.getContext("2d");r.dpr=n,r.clearRect(0,0,t.width,t.height),e.backgroundColor&&(r.fillStyle=e.backgroundColor,r.fillRect(0,0,t.width,t.height));var i,a=this.storage.getDisplayList(!0),o={},s=this;function l(e,t){var n,i=s._zlevelList;null==e&&(e=-1/0);for(var a=0;a<i.length;a++){var o=i[a],l=s._layers[o];if(!l.__builtin__&&o>e&&o<t){n=l;break}}n&&n.renderToCanvas&&(r.save(),n.renderToCanvas(r),r.restore())}for(var u={ctx:r},c=0;c<a.length;c++){var h=a[c];h.zlevel!==i&&(l(i,h.zlevel),i=h.zlevel),this._doPaintEl(h,u,!0,o)}return l(i,1/0),t}})),r["O"]((function(e,t){var n=t.getZr(),r=n.__egl=n.__egl||new Na(n);r.update(e,t)})),r["P"](Ra);var ja={defaultOption:{viewControl:{projection:"perspective",autoRotate:!1,autoRotateDirection:"cw",autoRotateSpeed:10,autoRotateAfterStill:3,damping:.8,rotateSensitivity:1,zoomSensitivity:1,panSensitivity:1,panMouseButton:"middle",rotateMouseButton:"left",distance:150,minDistance:40,maxDistance:400,orthographicSize:150,maxOrthographicSize:400,minOrthographicSize:20,center:[0,0,0],alpha:0,beta:0,minAlpha:-90,maxAlpha:90}},setView:function(e){e=e||{},this.option.viewControl=this.option.viewControl||{},null!=e.alpha&&(this.option.viewControl.alpha=e.alpha),null!=e.beta&&(this.option.viewControl.beta=e.beta),null!=e.distance&&(this.option.viewControl.distance=e.distance),null!=e.center&&(this.option.viewControl.center=e.center)}},Fa={defaultOption:{postEffect:{enable:!1,bloom:{enable:!0,intensity:.1},depthOfField:{enable:!1,focalRange:20,focalDistance:50,blurRadius:10,fstop:2.8,quality:"medium"},screenSpaceAmbientOcclusion:{enable:!1,radius:2,quality:"medium",intensity:1},screenSpaceReflection:{enable:!1,quality:"medium",maxRoughness:.8},colorCorrection:{enable:!0,exposure:0,brightness:0,contrast:1,saturation:1,lookupTexture:""},edge:{enable:!1},FXAA:{enable:!1}},temporalSuperSampling:{enable:"auto"}}},za={defaultOption:{light:{main:{shadow:!1,shadowQuality:"high",color:"#fff",intensity:1,alpha:0,beta:0},ambient:{color:"#fff",intensity:.2},ambientCubemap:{texture:null,exposure:1,diffuseIntensity:.5,specularIntensity:.5}}}},Ba=r["c"].extend({type:"grid3D",dependencies:["xAxis3D","yAxis3D","zAxis3D"],defaultOption:{show:!0,zlevel:-10,left:0,top:0,width:"100%",height:"100%",environment:"auto",boxWidth:100,boxHeight:100,boxDepth:100,axisPointer:{show:!0,lineStyle:{color:"rgba(0, 0, 0, 0.8)",width:1},label:{show:!0,formatter:null,margin:8,textStyle:{fontSize:14,color:"#fff",backgroundColor:"rgba(0,0,0,0.5)",padding:3,borderRadius:3}}},axisLine:{show:!0,lineStyle:{color:"#333",width:2,type:"solid"}},axisTick:{show:!0,inside:!1,length:3,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,margin:8,textStyle:{fontSize:12}},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}},light:{main:{alpha:30,beta:40},ambient:{intensity:.4}},viewControl:{alpha:20,beta:40,autoRotate:!1,distance:200,minDistance:40,maxDistance:400}}});r["Y"].merge(Ba.prototype,ja),r["Y"].merge(Ba.prototype,Fa),r["Y"].merge(Ba.prototype,za);var Va=Ba,Ga=n("IhSh"),Ha=Di.firstNotNull,Ua={left:0,middle:1,right:2};function Wa(e){return e instanceof Array||(e=[e,e]),e}var Xa=_.extend((function(){return{zr:null,viewGL:null,_center:new gt,minDistance:.5,maxDistance:1.5,maxOrthographicSize:300,minOrthographicSize:30,minAlpha:-90,maxAlpha:90,minBeta:-1/0,maxBeta:1/0,autoRotateAfterStill:0,autoRotateDirection:"cw",autoRotateSpeed:60,damping:.8,rotateSensitivity:1,zoomSensitivity:1,panSensitivity:1,panMouseButton:"middle",rotateMouseButton:"left",_mode:"rotate",_camera:null,_needsUpdate:!1,_rotating:!1,_phi:0,_theta:0,_mouseX:0,_mouseY:0,_rotateVelocity:new se,_panVelocity:new se,_distance:500,_zoomSpeed:0,_stillTimeout:0,_animators:[]}}),(function(){["_mouseDownHandler","_mouseWheelHandler","_mouseMoveHandler","_mouseUpHandler","_pinchHandler","_contextMenuHandler","_update"].forEach((function(e){this[e]=this[e].bind(this)}),this)}),{init:function(){var e=this.zr;e&&(e.on("mousedown",this._mouseDownHandler),e.on("globalout",this._mouseUpHandler),e.on("mousewheel",this._mouseWheelHandler),e.on("pinch",this._pinchHandler),e.animation.on("frame",this._update),e.dom.addEventListener("contextmenu",this._contextMenuHandler))},dispose:function(){var e=this.zr;e&&(e.off("mousedown",this._mouseDownHandler),e.off("mousemove",this._mouseMoveHandler),e.off("mouseup",this._mouseUpHandler),e.off("mousewheel",this._mouseWheelHandler),e.off("pinch",this._pinchHandler),e.off("globalout",this._mouseUpHandler),e.dom.removeEventListener("contextmenu",this._contextMenuHandler),e.animation.off("frame",this._update)),this.stopAllAnimation()},getDistance:function(){return this._distance},setDistance:function(e){this._distance=e,this._needsUpdate=!0},getOrthographicSize:function(){return this._orthoSize},setOrthographicSize:function(e){this._orthoSize=e,this._needsUpdate=!0},getAlpha:function(){return this._theta/Math.PI*180},getBeta:function(){return-this._phi/Math.PI*180},getCenter:function(){return this._center.toArray()},setAlpha:function(e){e=Math.max(Math.min(this.maxAlpha,e),this.minAlpha),this._theta=e/180*Math.PI,this._needsUpdate=!0},setBeta:function(e){e=Math.max(Math.min(this.maxBeta,e),this.minBeta),this._phi=-e/180*Math.PI,this._needsUpdate=!0},setCenter:function(e){this._center.setArray(e)},setViewGL:function(e){this.viewGL=e},getCamera:function(){return this.viewGL.camera},setFromViewControlModel:function(e,t){t=t||{};var n=t.baseDistance||0,r=t.baseOrthoSize||1,i=e.get("projection");"perspective"!==i&&"orthographic"!==i&&"isometric"!==i&&(i="perspective"),this._projection=i,this.viewGL.setProjection(i);var a=e.get("distance")+n,o=e.get("orthographicSize")+r;[["damping",.8],["autoRotate",!1],["autoRotateAfterStill",3],["autoRotateDirection","cw"],["autoRotateSpeed",10],["minDistance",30],["maxDistance",400],["minOrthographicSize",30],["maxOrthographicSize",300],["minAlpha",-90],["maxAlpha",90],["minBeta",-1/0],["maxBeta",1/0],["rotateSensitivity",1],["zoomSensitivity",1],["panSensitivity",1],["panMouseButton","left"],["rotateMouseButton","middle"]].forEach((function(t){this[t[0]]=Ha(e.get(t[0]),t[1])}),this),this.minDistance+=n,this.maxDistance+=n,this.minOrthographicSize+=r,this.maxOrthographicSize+=r;var s=e.ecModel,l={};["animation","animationDurationUpdate","animationEasingUpdate"].forEach((function(t){l[t]=Ha(e.get(t),s&&s.get(t))}));var u=Ha(t.alpha,e.get("alpha"))||0,c=Ha(t.beta,e.get("beta"))||0,h=Ha(t.center,e.get("center"))||[0,0,0];l.animation&&l.animationDurationUpdate>0&&this._notFirst?this.animateTo({alpha:u,beta:c,center:h,distance:a,orthographicSize:o,easing:l.animationEasingUpdate,duration:l.animationDurationUpdate}):(this.setDistance(a),this.setAlpha(u),this.setBeta(c),this.setCenter(h),this.setOrthographicSize(o)),this._notFirst=!0,this._validateProperties()},_validateProperties:function(){0},animateTo:function(e){var t=this.zr,n=this,r={},i={};return null!=e.distance&&(r.distance=this.getDistance(),i.distance=e.distance),null!=e.orthographicSize&&(r.orthographicSize=this.getOrthographicSize(),i.orthographicSize=e.orthographicSize),null!=e.alpha&&(r.alpha=this.getAlpha(),i.alpha=e.alpha),null!=e.beta&&(r.beta=this.getBeta(),i.beta=e.beta),null!=e.center&&(r.center=this.getCenter(),i.center=e.center),this._addAnimator(t.animation.animate(r).when(e.duration||1e3,i).during((function(){null!=r.alpha&&n.setAlpha(r.alpha),null!=r.beta&&n.setBeta(r.beta),null!=r.distance&&n.setDistance(r.distance),null!=r.center&&n.setCenter(r.center),null!=r.orthographicSize&&n.setOrthographicSize(r.orthographicSize),n._needsUpdate=!0}))).start(e.easing||"linear")},stopAllAnimation:function(){for(var e=0;e<this._animators.length;e++)this._animators[e].stop();this._animators.length=0},update:function(){this._needsUpdate=!0,this._update(20)},_isAnimating:function(){return this._animators.length>0},_update:function(e){if(this._rotating){var t=("cw"===this.autoRotateDirection?1:-1)*this.autoRotateSpeed/180*Math.PI;this._phi-=t*e/1e3,this._needsUpdate=!0}else this._rotateVelocity.len()>0&&(this._needsUpdate=!0);(Math.abs(this._zoomSpeed)>.1||this._panVelocity.len()>0)&&(this._needsUpdate=!0),this._needsUpdate&&(e=Math.min(e,50),this._updateDistanceOrSize(e),this._updatePan(e),this._updateRotate(e),this._updateTransform(),this.getCamera().update(),this.zr&&this.zr.refresh(),this.trigger("update"),this._needsUpdate=!1)},_updateRotate:function(e){var t=this._rotateVelocity;this._phi=t.y*e/20+this._phi,this._theta=t.x*e/20+this._theta,this.setAlpha(this.getAlpha()),this.setBeta(this.getBeta()),this._vectorDamping(t,Math.pow(this.damping,e/16))},_updateDistanceOrSize:function(e){"perspective"===this._projection?this._setDistance(this._distance+this._zoomSpeed*e/20):this._setOrthoSize(this._orthoSize+this._zoomSpeed*e/20),this._zoomSpeed*=Math.pow(this.damping,e/16)},_setDistance:function(e){this._distance=Math.max(Math.min(e,this.maxDistance),this.minDistance)},_setOrthoSize:function(e){this._orthoSize=Math.max(Math.min(e,this.maxOrthographicSize),this.minOrthographicSize);var t=this.getCamera(),n=this._orthoSize,r=n/this.viewGL.viewport.height*this.viewGL.viewport.width;t.left=-r/2,t.right=r/2,t.top=n/2,t.bottom=-n/2},_updatePan:function(e){var t=this._panVelocity,n=this._distance,r=this.getCamera(),i=r.worldTransform.y,a=r.worldTransform.x;this._center.scaleAndAdd(a,-t.x*n/200).scaleAndAdd(i,-t.y*n/200),this._vectorDamping(t,0)},_updateTransform:function(){var e=this.getCamera(),t=new gt,n=this._theta+Math.PI/2,r=this._phi+Math.PI/2,i=Math.sin(n);t.x=i*Math.cos(r),t.y=-Math.cos(n),t.z=i*Math.sin(r),e.position.copy(this._center).scaleAndAdd(t,this._distance),e.rotation.identity().rotateY(-this._phi).rotateX(-this._theta)},_startCountingStill:function(){clearTimeout(this._stillTimeout);var e=this.autoRotateAfterStill,t=this;!isNaN(e)&&e>0&&(this._stillTimeout=setTimeout((function(){t._rotating=!0}),1e3*e))},_vectorDamping:function(e,t){var n=e.len();n*=t,n<1e-4&&(n=0),e.normalize().scale(n)},_decomposeTransform:function(){if(this.getCamera()){this.getCamera().updateWorldTransform();var e=this.getCamera().worldTransform.z,t=Math.asin(e.y),n=Math.atan2(e.x,e.z);this._theta=t,this._phi=-n,this.setBeta(this.getBeta()),this.setAlpha(this.getAlpha()),this.getCamera().aspect?this._setDistance(this.getCamera().position.dist(this._center)):this._setOrthoSize(this.getCamera().top-this.getCamera().bottom)}},_mouseDownHandler:function(e){if(!e.target&&!this._isAnimating()){var t=e.offsetX,n=e.offsetY;this.viewGL&&!this.viewGL.containPoint(t,n)||(this.zr.on("mousemove",this._mouseMoveHandler),this.zr.on("mouseup",this._mouseUpHandler),e.event.targetTouches?1===e.event.targetTouches.length&&(this._mode="rotate"):e.event.button===Ua[this.rotateMouseButton]?this._mode="rotate":e.event.button===Ua[this.panMouseButton]?this._mode="pan":this._mode="",this._rotateVelocity.set(0,0),this._rotating=!1,this.autoRotate&&this._startCountingStill(),this._mouseX=e.offsetX,this._mouseY=e.offsetY)}},_mouseMoveHandler:function(e){if((!e.target||!e.target.__isGLToZRProxy)&&!this._isAnimating()){var t=Wa(this.panSensitivity),n=Wa(this.rotateSensitivity);"rotate"===this._mode?(this._rotateVelocity.y=(e.offsetX-this._mouseX)/this.zr.getHeight()*2*n[0],this._rotateVelocity.x=(e.offsetY-this._mouseY)/this.zr.getWidth()*2*n[1]):"pan"===this._mode&&(this._panVelocity.x=(e.offsetX-this._mouseX)/this.zr.getWidth()*t[0]*400,this._panVelocity.y=(-e.offsetY+this._mouseY)/this.zr.getHeight()*t[1]*400),this._mouseX=e.offsetX,this._mouseY=e.offsetY,e.event.preventDefault()}},_mouseWheelHandler:function(e){if(!this._isAnimating()){var t=e.event.wheelDelta||-e.event.detail;this._zoomHandler(e,t)}},_pinchHandler:function(e){this._isAnimating()||(this._zoomHandler(e,e.pinchScale>1?1:-1),this._mode="")},_zoomHandler:function(e,t){if(0!==t){var n,r=e.offsetX,i=e.offsetY;if(!this.viewGL||this.viewGL.containPoint(r,i))n="perspective"===this._projection?Math.max(Math.max(Math.min(this._distance-this.minDistance,this.maxDistance-this._distance))/20,.5):Math.max(Math.max(Math.min(this._orthoSize-this.minOrthographicSize,this.maxOrthographicSize-this._orthoSize))/20,.5),this._zoomSpeed=(t>0?-1:1)*n*this.zoomSensitivity,this._rotating=!1,this.autoRotate&&"rotate"===this._mode&&this._startCountingStill(),e.event.preventDefault()}},_mouseUpHandler:function(){this.zr.off("mousemove",this._mouseMoveHandler),this.zr.off("mouseup",this._mouseUpHandler)},_isRightMouseButtonUsed:function(){return"right"===this.rotateMouseButton||"right"===this.panMouseButton},_contextMenuHandler:function(e){this._isRightMouseButtonUsed()&&e.preventDefault()},_addAnimator:function(e){var t=this._animators;return t.push(e),e.done((function(){var n=t.indexOf(e);n>=0&&t.splice(n,1)})),e}});Object.defineProperty(Xa.prototype,"autoRotate",{get:function(e){return this._autoRotate},set:function(e){this._autoRotate=e,this._rotating=e}});var Ya=Xa,Ka={convertToDynamicArray:function(e){e&&this.resetOffset();var t=this.attributes;for(var n in t)e||!t[n].value?t[n].value=[]:t[n].value=Array.prototype.slice.call(t[n].value);e||!this.indices?this.indices=[]:this.indices=Array.prototype.slice.call(this.indices)},convertToTypedArray:function(){var e=this.attributes;for(var t in e)e[t].value&&e[t].value.length>0?e[t].value=new Float32Array(e[t].value):e[t].value=null;this.indices&&this.indices.length>0&&(this.indices=this.vertexCount>65535?new Uint32Array(this.indices):new Uint16Array(this.indices)),this.dirty()}},qa={vec2:ie,vec3:Ke,vec4:_t,mat2:Yi,mat2d:$i,mat3:wt,mat4:Xe,quat:Tt},Za=qa,$a=Za.vec3,Qa=[[0,0],[1,1]],Ja=vn.extend((function(){return{segmentScale:1,dynamic:!0,useNativeLine:!0,attributes:{position:new vn.Attribute("position","float",3,"POSITION"),positionPrev:new vn.Attribute("positionPrev","float",3),positionNext:new vn.Attribute("positionNext","float",3),prevPositionPrev:new vn.Attribute("prevPositionPrev","float",3),prevPosition:new vn.Attribute("prevPosition","float",3),prevPositionNext:new vn.Attribute("prevPositionNext","float",3),offset:new vn.Attribute("offset","float",1),color:new vn.Attribute("color","float",4,"COLOR")}}}),{resetOffset:function(){this._vertexOffset=0,this._triangleOffset=0,this._itemVertexOffsets=[]},setVertexCount:function(e){var t=this.attributes;this.vertexCount!==e&&(t.position.init(e),t.color.init(e),this.useNativeLine||(t.positionPrev.init(e),t.positionNext.init(e),t.offset.init(e)),e>65535?this.indices instanceof Uint16Array&&(this.indices=new Uint32Array(this.indices)):this.indices instanceof Uint32Array&&(this.indices=new Uint16Array(this.indices)))},setTriangleCount:function(e){this.triangleCount!==e&&(this.indices=0===e?null:this.vertexCount>65535?new Uint32Array(3*e):new Uint16Array(3*e))},_getCubicCurveApproxStep:function(e,t,n,r){var i=$a.dist(e,t)+$a.dist(n,t)+$a.dist(r,n),a=1/(i+1)*this.segmentScale;return a},getCubicCurveVertexCount:function(e,t,n,r){var i=this._getCubicCurveApproxStep(e,t,n,r),a=Math.ceil(1/i);return this.useNativeLine?2*a:2*a+2},getCubicCurveTriangleCount:function(e,t,n,r){var i=this._getCubicCurveApproxStep(e,t,n,r),a=Math.ceil(1/i);return this.useNativeLine?0:2*a},getLineVertexCount:function(){return this.getPolylineVertexCount(Qa)},getLineTriangleCount:function(){return this.getPolylineTriangleCount(Qa)},getPolylineVertexCount:function(e){var t;if("number"===typeof e)t=e;else{var n="number"!==typeof e[0];t=n?e.length:e.length/3}return this.useNativeLine?2*(t-1):2*(t-1)+2},getPolylineTriangleCount:function(e){var t;if("number"===typeof e)t=e;else{var n="number"!==typeof e[0];t=n?e.length:e.length/3}return this.useNativeLine?0:2*Math.max(t-1,0)},addCubicCurve:function(e,t,n,r,i,a){null==a&&(a=1);var o=e[0],s=e[1],l=e[2],u=t[0],c=t[1],h=t[2],d=n[0],f=n[1],p=n[2],g=r[0],m=r[1],v=r[2],y=this._getCubicCurveApproxStep(e,t,n,r),b=y*y,_=b*y,x=3*y,w=3*b,S=6*b,T=6*_,O=o-2*u+d,M=s-2*c+f,E=l-2*h+p,A=3*(u-d)-o+g,C=3*(c-f)-s+m,I=3*(h-p)-l+v,D=o,L=s,P=l,k=(u-o)*x+O*w+A*_,R=(c-s)*x+M*w+C*_,N=(h-l)*x+E*w+I*_,j=O*S+A*T,F=M*S+C*T,z=E*S+I*T,B=A*T,V=C*T,G=I*T,H=0,U=0,W=Math.ceil(1/y),X=new Float32Array(3*(W+1)),Y=(X=[],0);for(U=0;U<W+1;U++)X[Y++]=D,X[Y++]=L,X[Y++]=P,D+=k,L+=R,P+=N,k+=j,R+=F,N+=z,j+=B,F+=V,z+=G,H+=y,H>1&&(D=k>0?Math.min(D,g):Math.max(D,g),L=R>0?Math.min(L,m):Math.max(L,m),P=N>0?Math.min(P,v):Math.max(P,v));return this.addPolyline(X,i,a)},addLine:function(e,t,n,r){return this.addPolyline([e,t],n,r)},addPolyline:function(e,t,n,r,i){if(e.length){var a="number"!==typeof e[0];if(null==i&&(i=a?e.length:e.length/3),!(i<2)){null==r&&(r=0),null==n&&(n=1),this._itemVertexOffsets.push(this._vertexOffset);a="number"!==typeof e[0];var o,s,l=a?"number"!==typeof t[0]:t.length/4===i,u=this.attributes.position,c=this.attributes.positionPrev,h=this.attributes.positionNext,d=this.attributes.color,f=this.attributes.offset,p=this.indices,g=this._vertexOffset;n=Math.max(n,.01);for(var m=r;m<i;m++){if(a)o=e[m],s=l?t[m]:t;else{var v=3*m;if(o=o||[],o[0]=e[v],o[1]=e[v+1],o[2]=e[v+2],l){var y=4*m;s=s||[],s[0]=t[y],s[1]=t[y+1],s[2]=t[y+2],s[3]=t[y+3]}else s=t}if(this.useNativeLine?m>1&&(u.copy(g,g-1),d.copy(g,g-1),g++):(m<i-1&&(c.set(g+2,o),c.set(g+3,o)),m>0&&(h.set(g-2,o),h.set(g-1,o)),u.set(g,o),u.set(g+1,o),d.set(g,s),d.set(g+1,s),f.set(g,n/2),f.set(g+1,-n/2),g+=2),this.useNativeLine)d.set(g,s),u.set(g,o),g++;else if(m>0){var b=3*this._triangleOffset;p=this.indices;p[b]=g-4,p[b+1]=g-3,p[b+2]=g-2,p[b+3]=g-3,p[b+4]=g-1,p[b+5]=g-2,this._triangleOffset+=2}}if(!this.useNativeLine){var _=this._vertexOffset,x=this._vertexOffset+2*i;c.copy(_,_+2),c.copy(_+1,_+3),h.copy(x-1,x-3),h.copy(x-2,x-4)}return this._vertexOffset=g,this._vertexOffset}}},setItemColor:function(e,t){for(var n=this._itemVertexOffsets[e],r=e<this._itemVertexOffsets.length-1?this._itemVertexOffsets[e+1]:this._vertexOffset,i=n;i<r;i++)this.attributes.color.set(i,t);this.dirty("color")},currentTriangleOffset:function(){return this._triangleOffset},currentVertexOffset:function(){return this._vertexOffset}});r["Y"].defaults(Ja.prototype,Ka);var eo=Ja;function to(e,t,n,r,i,a,o){this._zr=e,this._x=0,this._y=0,this._rowHeight=0,this.width=r,this.height=i,this.offsetX=t,this.offsetY=n,this.dpr=o,this.gap=a}function no(e){e=e||{},e.width=e.width||512,e.height=e.height||512,e.devicePixelRatio=e.devicePixelRatio||1,e.gap=null==e.gap?2:e.gap;var t=document.createElement("canvas");t.width=e.width*e.devicePixelRatio,t.height=e.height*e.devicePixelRatio,this._canvas=t,this._texture=new rn({image:t,flipY:!1});var n=this;this._zr=r["cb"].init(t);var i=this._zr.refreshImmediately;this._zr.refreshImmediately=function(){i.call(this),n._texture.dirty(),n.onupdate&&n.onupdate()},this._dpr=e.devicePixelRatio,this._coords={},this.onupdate=e.onupdate,this._gap=e.gap,this._textureAtlasNodes=[new to(this._zr,0,0,e.width,e.height,this._gap,this._dpr)],this._nodeWidth=e.width,this._nodeHeight=e.height,this._currentNodeIdx=0}to.prototype={constructor:to,clear:function(){this._x=0,this._y=0,this._rowHeight=0},add:function(e,t,n){var r=e.getBoundingRect();null==t&&(t=r.width),null==n&&(n=r.height),t*=this.dpr,n*=this.dpr,this._fitElement(e,t,n);var i=this._x,a=this._y,o=this.width*this.dpr,s=this.height*this.dpr,l=this.gap;if(i+t+l>o&&(i=this._x=0,a+=this._rowHeight+l,this._y=a,this._rowHeight=0),this._x+=t+l,this._rowHeight=Math.max(this._rowHeight,n),a+n+l>s)return null;e.x+=this.offsetX*this.dpr+i,e.y+=this.offsetY*this.dpr+a,this._zr.add(e);var u=[this.offsetX/this.width,this.offsetY/this.height],c=[[i/o+u[0],a/s+u[1]],[(i+t)/o+u[0],(a+n)/s+u[1]]];return c},_fitElement:function(e,t,n){var r=e.getBoundingRect(),i=t/r.width,a=n/r.height;e.x=-r.x*i,e.y=-r.y*a,e.scaleX=i,e.scaleY=a,e.update()}},no.prototype={clear:function(){for(var e=0;e<this._textureAtlasNodes.length;e++)this._textureAtlasNodes[e].clear();this._currentNodeIdx=0,this._zr.clear(),this._coords={}},getWidth:function(){return this._width},getHeight:function(){return this._height},getTexture:function(){return this._texture},getDevicePixelRatio:function(){return this._dpr},getZr:function(){return this._zr},_getCurrentNode:function(){return this._textureAtlasNodes[this._currentNodeIdx]},_expand:function(){if(this._currentNodeIdx++,this._textureAtlasNodes[this._currentNodeIdx])return this._textureAtlasNodes[this._currentNodeIdx];var e=4096/this._dpr,t=this._textureAtlasNodes,n=t.length,r=n*this._nodeWidth%e,i=Math.floor(n*this._nodeWidth/e)*this._nodeHeight;if(!(i>=e)){var a=(r+this._nodeWidth)*this._dpr,o=(i+this._nodeHeight)*this._dpr;try{this._zr.resize({width:a,height:o})}catch(l){this._canvas.width=a,this._canvas.height=o}var s=new to(this._zr,r,i,this._nodeWidth,this._nodeHeight,this._gap,this._dpr);return this._textureAtlasNodes.push(s),s}},add:function(e,t,n){if(this._coords[e.id])return this._coords[e.id];var r=this._getCurrentNode().add(e,t,n);if(!r){var i=this._expand();if(!i)return;r=i.add(e,t,n)}return this._coords[e.id]=r,r},getCoordsScale:function(){var e=this._dpr;return[this._nodeWidth/this._canvas.width*e,this._nodeHeight/this._canvas.height*e]},getCoords:function(e){return this._coords[e]}};var ro=no;function io(){}io.prototype={constructor:io,setScene:function(e){this._scene=e,this._skybox&&this._skybox.attachScene(this._scene)},initLight:function(e){this._lightRoot=e,this.mainLight=new xa.DirectionalLight({shadowBias:.005}),this.ambientLight=new xa.AmbientLight,e.add(this.mainLight),e.add(this.ambientLight)},dispose:function(){this._lightRoot&&(this._lightRoot.remove(this.mainLight),this._lightRoot.remove(this.ambientLight))},updateLight:function(e){var t=this.mainLight,n=this.ambientLight,r=e.getModel("light"),i=r.getModel("main"),a=r.getModel("ambient");t.intensity=i.get("intensity"),n.intensity=a.get("intensity"),t.color=xa.parseColor(i.get("color")).slice(0,3),n.color=xa.parseColor(a.get("color")).slice(0,3);var o=i.get("alpha")||0,s=i.get("beta")||0;t.position.setArray(xa.directionFromAlphaBeta(o,s)),t.lookAt(xa.Vector3.ZERO),t.castShadow=i.get("shadow"),t.shadowResolution=xa.getShadowResolution(i.get("shadowQuality"))},updateAmbientCubemap:function(e,t,n){var r=t.getModel("light.ambientCubemap"),i=r.get("texture");if(i){this._cubemapLightsCache=this._cubemapLightsCache||{};var a=this._cubemapLightsCache[i];if(!a){var o=this;a=this._cubemapLightsCache[i]=xa.createAmbientCubemap(r.option,e,n,(function(){o._isSkyboxFromAmbientCubemap&&o._skybox.setEnvironmentMap(a.specular.cubemap),n.getZr().refresh()}))}this._lightRoot.add(a.diffuse),this._lightRoot.add(a.specular),this._currentCubemapLights=a}else this._currentCubemapLights&&(this._lightRoot.remove(this._currentCubemapLights.diffuse),this._lightRoot.remove(this._currentCubemapLights.specular),this._currentCubemapLights=null)},updateSkybox:function(e,t,n){var i=t.get("environment"),a=this;function o(){return a._skybox=a._skybox||new Sr,a._skybox}var s=o();if(i&&"none"!==i)if("auto"===i)if(this._isSkyboxFromAmbientCubemap=!0,this._currentCubemapLights){var l=this._currentCubemapLights.specular.cubemap;s.setEnvironmentMap(l),this._scene&&s.attachScene(this._scene),s.material.set("lod",3)}else this._skybox&&this._skybox.detachScene();else if("object"===typeof i&&i.colorStops||"string"===typeof i&&r["i"].parse(i)){this._isSkyboxFromAmbientCubemap=!1;var u=new xa.Texture2D({anisotropic:8,flipY:!1});s.setEnvironmentMap(u);var c=u.image=document.createElement("canvas");c.width=c.height=16;var h=c.getContext("2d"),d=new r["z"].Rect({shape:{x:0,y:0,width:16,height:16},style:{fill:i}});r["C"](h,d),s.attachScene(this._scene)}else{this._isSkyboxFromAmbientCubemap=!1;u=xa.loadTexture(i,n,{anisotropic:8,flipY:!1});s.setEnvironmentMap(u),s.attachScene(this._scene)}else this._skybox&&this._skybox.detachScene(this._scene),this._skybox=null;var f=t.coordinateSystem;if(this._skybox)if(!f||!f.viewGL||"auto"===i||i.match&&i.match(/.hdr$/))this._skybox.material.undefine("fragment","SRGB_DECODE");else{var p=f.viewGL.isLinearSpace()?"define":"undefine";this._skybox.material[p]("fragment","SRGB_DECODE")}}};var ao=io,oo=Za.vec3,so=vn.extend((function(){return{segmentScale:1,useNativeLine:!0,attributes:{position:new vn.Attribute("position","float",3,"POSITION"),normal:new vn.Attribute("normal","float",3,"NORMAL"),color:new vn.Attribute("color","float",4,"COLOR")}}}),{resetOffset:function(){this._vertexOffset=0,this._faceOffset=0},setQuadCount:function(e){var t=this.attributes,n=this.getQuadVertexCount()*e,r=this.getQuadTriangleCount()*e;this.vertexCount!==n&&(t.position.init(n),t.normal.init(n),t.color.init(n)),this.triangleCount!==r&&(this.indices=n>65535?new Uint32Array(3*r):new Uint16Array(3*r))},getQuadVertexCount:function(){return 4},getQuadTriangleCount:function(){return 2},addQuad:function(){var e=oo.create(),t=oo.create(),n=oo.create(),r=[0,3,1,3,2,1];return function(i,a){var o=this.attributes.position,s=this.attributes.normal,l=this.attributes.color;oo.sub(e,i[1],i[0]),oo.sub(t,i[2],i[1]),oo.cross(n,e,t),oo.normalize(n,n);for(var u=0;u<4;u++)o.set(this._vertexOffset+u,i[u]),l.set(this._vertexOffset+u,a),s.set(this._vertexOffset+u,n);var c=3*this._faceOffset;for(u=0;u<6;u++)this.indices[c+u]=r[u]+this._vertexOffset;this._vertexOffset+=4,this._faceOffset+=2}}()});r["Y"].defaults(so.prototype,Ka);var lo=so,uo=Di.firstNotNull,co={x:0,y:2,z:1};function ho(e,t,n,r){var i=[0,0,0],a=r<0?n.getExtentMin():n.getExtentMax();i[co[n.dim]]=a,e.position.setArray(i),e.rotation.identity(),t.distance=-Math.abs(a),t.normal.set(0,0,0),"x"===n.dim?(e.rotation.rotateY(r*Math.PI/2),t.normal.x=-r):"z"===n.dim?(e.rotation.rotateX(-r*Math.PI/2),t.normal.y=-r):(r>0&&e.rotation.rotateY(Math.PI),t.normal.z=-r)}function fo(e,t,n){this.rootNode=new xa.Node;var r=new xa.Mesh({geometry:new eo({useNativeLine:!1}),material:t,castShadow:!1,ignorePicking:!0,$ignorePicking:!0,renderOrder:1}),i=new xa.Mesh({geometry:new lo,material:n,castShadow:!1,culling:!1,ignorePicking:!0,$ignorePicking:!0,renderOrder:0});this.rootNode.add(i),this.rootNode.add(r),this.faceInfo=e,this.plane=new xa.Plane,this.linesMesh=r,this.quadsMesh=i}fo.prototype.update=function(e,t,n){var r=e.coordinateSystem,i=[r.getAxis(this.faceInfo[0]),r.getAxis(this.faceInfo[1])],a=this.linesMesh.geometry,o=this.quadsMesh.geometry;a.convertToDynamicArray(!0),o.convertToDynamicArray(!0),this._updateSplitLines(a,i,e,n),this._udpateSplitAreas(o,i,e,n),a.convertToTypedArray(),o.convertToTypedArray();var s=r.getAxis(this.faceInfo[2]);ho(this.rootNode,this.plane,s,this.faceInfo[3])},fo.prototype._updateSplitLines=function(e,t,n,i){var a=i.getDevicePixelRatio();t.forEach((function(i,o){var s=i.model,l=t[1-o].getExtent();if(!i.scale.isBlank()){var u=s.getModel("splitLine",n.getModel("splitLine"));if(u.get("show")){var c=u.getModel("lineStyle"),h=c.get("color"),d=uo(c.get("opacity"),1),f=uo(c.get("width"),1);h=r["Y"].isArray(h)?h:[h];for(var p=i.getTicksCoords({tickModel:u}),g=0,m=0;m<p.length;m++){var v=p[m].coord,y=xa.parseColor(h[g%h.length]);y[3]*=d;var b=[0,0,0],_=[0,0,0];b[o]=_[o]=v,b[1-o]=l[0],_[1-o]=l[1],e.addLine(b,_,y,f*a),g++}}}}))},fo.prototype._udpateSplitAreas=function(e,t,n,i){t.forEach((function(i,a){var o=i.model,s=t[1-a].getExtent();if(!i.scale.isBlank()){var l=o.getModel("splitArea",n.getModel("splitArea"));if(l.get("show")){var u=l.getModel("areaStyle"),c=u.get("color"),h=uo(u.get("opacity"),1);c=r["Y"].isArray(c)?c:[c];for(var d=i.getTicksCoords({tickModel:l,clamp:!0}),f=0,p=[0,0,0],g=[0,0,0],m=0;m<d.length;m++){var v=d[m].coord,y=[0,0,0],b=[0,0,0];if(y[a]=b[a]=v,y[1-a]=s[0],b[1-a]=s[1],0!==m){var _=xa.parseColor(c[f%c.length]);_[3]*=h,e.addQuad([p,y,b,g],_),p=y,g=b,f++}else p=y,g=b}}}}))};var po=fo,go=[0,1,2,0,2,3],mo=vn.extend((function(){return{attributes:{position:new vn.Attribute("position","float",3,"POSITION"),texcoord:new vn.Attribute("texcoord","float",2,"TEXCOORD_0"),offset:new vn.Attribute("offset","float",2),color:new vn.Attribute("color","float",4,"COLOR")}}}),{resetOffset:function(){this._vertexOffset=0,this._faceOffset=0},setSpriteCount:function(e){this._spriteCount=e;var t=4*e,n=2*e;this.vertexCount!==t&&(this.attributes.position.init(t),this.attributes.offset.init(t),this.attributes.color.init(t)),this.triangleCount!==n&&(this.indices=t>65535?new Uint32Array(3*n):new Uint16Array(3*n))},setSpriteAlign:function(e,t,n,r,i){var a,o,s,l;switch(null==n&&(n="left"),null==r&&(r="top"),i=i||0,n){case"left":a=i,s=t[0]+i;break;case"center":case"middle":a=-t[0]/2,s=t[0]/2;break;case"right":a=-t[0]-i,s=-i;break}switch(r){case"bottom":o=i,l=t[1]+i;break;case"middle":o=-t[1]/2,l=t[1]/2;break;case"top":o=-t[1]-i,l=-i;break}var u=4*e,c=this.attributes.offset;c.set(u,[a,l]),c.set(u+1,[s,l]),c.set(u+2,[s,o]),c.set(u+3,[a,o])},addSprite:function(e,t,n,r,i,a){var o=this._vertexOffset;this.setSprite(this._vertexOffset/4,e,t,n,r,i,a);for(var s=0;s<go.length;s++)this.indices[3*this._faceOffset+s]=go[s]+o;return this._faceOffset+=2,this._vertexOffset+=4,o/4},setSprite:function(e,t,n,r,i,a,o){for(var s=4*e,l=this.attributes,u=0;u<4;u++)l.position.set(s+u,t);var c=l.texcoord;c.set(s,[r[0][0],r[0][1]]),c.set(s+1,[r[1][0],r[0][1]]),c.set(s+2,[r[1][0],r[1][1]]),c.set(s+3,[r[0][0],r[1][1]]),this.setSpriteAlign(e,n,i,a,o)}});r["Y"].defaults(mo.prototype,Ka);var vo=mo,yo="@export ecgl.labels.vertex\n\nattribute vec3 position: POSITION;\nattribute vec2 texcoord: TEXCOORD_0;\nattribute vec2 offset;\n#ifdef VERTEX_COLOR\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n#endif\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform vec4 viewport : VIEWPORT;\n\nvarying vec2 v_Texcoord;\n\nvoid main()\n{\n vec4 proj = worldViewProjection * vec4(position, 1.0);\n\n vec2 screen = (proj.xy / abs(proj.w) + 1.0) * 0.5 * viewport.zw;\n\n screen += offset;\n\n proj.xy = (screen / viewport.zw - 0.5) * 2.0 * abs(proj.w);\n gl_Position = proj;\n#ifdef VERTEX_COLOR\n v_Color = a_Color;\n#endif\n v_Texcoord = texcoord;\n}\n@end\n\n\n@export ecgl.labels.fragment\n\nuniform vec3 color : [1.0, 1.0, 1.0];\nuniform float alpha : 1.0;\nuniform sampler2D textureAtlas;\nuniform vec2 uvScale: [1.0, 1.0];\n\n#ifdef VERTEX_COLOR\nvarying vec4 v_Color;\n#endif\nvarying float v_Miter;\n\nvarying vec2 v_Texcoord;\n\nvoid main()\n{\n gl_FragColor = vec4(color, alpha) * texture2D(textureAtlas, v_Texcoord * uvScale);\n#ifdef VERTEX_COLOR\n gl_FragColor *= v_Color;\n#endif\n}\n\n@end";xa.Shader["import"](yo);var bo=xa.Mesh.extend((function(){var e=new vo({dynamic:!0}),t=new xa.Material({shader:xa.createShader("ecgl.labels"),transparent:!0,depthMask:!1});return{geometry:e,material:t,culling:!1,castShadow:!1,ignorePicking:!0}})),_o=Di.firstNotNull,xo={x:0,y:2,z:1};function wo(e,t){var n=new xa.Mesh({geometry:new eo({useNativeLine:!1}),material:t,castShadow:!1,ignorePicking:!0,renderOrder:2}),r=new bo;r.material.depthMask=!1;var i=new xa.Node;i.add(n),i.add(r),this.rootNode=i,this.dim=e,this.linesMesh=n,this.labelsMesh=r,this.axisLineCoords=null,this.labelElements=[]}var So={x:"y",y:"x",z:"y"};wo.prototype.update=function(e,t,n){var i=e.coordinateSystem,a=i.getAxis(this.dim),o=this.linesMesh.geometry,s=this.labelsMesh.geometry;o.convertToDynamicArray(!0),s.convertToDynamicArray(!0);var l=a.model,u=a.getExtent(),c=n.getDevicePixelRatio(),h=l.getModel("axisLine",e.getModel("axisLine")),d=l.getModel("axisTick",e.getModel("axisTick")),f=l.getModel("axisLabel",e.getModel("axisLabel")),p=h.get("lineStyle.color");if(h.get("show")){var g=h.getModel("lineStyle"),m=[0,0,0],v=[0,0,0],y=xo[a.dim];m[y]=u[0],v[y]=u[1],this.axisLineCoords=[m,v];var b=xa.parseColor(p),_=_o(g.get("width"),1),x=_o(g.get("opacity"),1);b[3]*=x,o.addLine(m,v,b,_*c)}if(d.get("show")){var w=d.getModel("lineStyle"),S=xa.parseColor(_o(w.get("color"),p));_=_o(w.get("width"),1);S[3]*=_o(w.get("opacity"),1);for(var T=a.getTicksCoords(),O=d.get("length"),M=0;M<T.length;M++){var E=T[M].coord,A=(m=[0,0,0],v=[0,0,0],y=xo[a.dim],xo[So[a.dim]]);m[y]=v[y]=E,v[A]=O,o.addLine(m,v,S,_*c)}}this.labelElements=[];c=n.getDevicePixelRatio();if(f.get("show")){T=a.getTicksCoords();var C=l.get("data"),I=f.get("margin"),D=a.getViewLabels();for(M=0;M<D.length;M++){var L=D[M].tickValue,P=D[M].formattedLabel,k=D[M].rawLabel,R=(E=a.dataToCoord(L),[0,0,0]);y=xo[a.dim],A=xo[So[a.dim]];R[y]=R[y]=E,R[A]=I;var N=f;C&&C[L]&&C[L].textStyle&&(N=new r["f"](C[L].textStyle,f,l.ecModel));var j=_o(N.get("color"),p),F=new r["z"].Text({style:Object(Ga["c"])(N,{text:P,fill:"function"===typeof j?j("category"===a.type?k:"value"===a.type?L+"":L,M):j,verticalAlign:"top",align:"left"})}),z=t.add(F),B=F.getBoundingRect();s.addSprite(R,[B.width*c,B.height*c],z),this.labelElements.push(F)}}if(l.get("name")){var V=l.getModel("nameTextStyle"),G=(R=[0,0,0],y=xo[a.dim],A=xo[So[a.dim]],_o(V.get("color"),p)),H=V.get("borderColor");_=V.get("borderWidth");R[y]=R[y]=(u[0]+u[1])/2,R[A]=l.get("nameGap");F=new r["z"].Text({style:Object(Ga["c"])(V,{text:l.get("name"),fill:G,stroke:H,lineWidth:_})}),z=t.add(F),B=F.getBoundingRect();s.addSprite(R,[B.width*c,B.height*c],z),F.__idx=this.labelElements.length,this.nameLabelElement=F}this.labelsMesh.material.set("textureAtlas",t.getTexture()),this.labelsMesh.material.set("uvScale",t.getCoordsScale()),o.convertToTypedArray(),s.convertToTypedArray()},wo.prototype.setSpriteAlign=function(e,t,n){for(var r=n.getDevicePixelRatio(),i=this.labelsMesh.geometry,a=0;a<this.labelElements.length;a++){var o=this.labelElements[a],s=o.getBoundingRect();i.setSpriteAlign(a,[s.width*r,s.height*r],e,t)}var l=this.nameLabelElement;if(l){s=l.getBoundingRect();i.setSpriteAlign(l.__idx,[s.width*r,s.height*r],e,t),i.dirty()}this.textAlign=e,this.textVerticalAlign=t};var To=wo,Oo="@export ecgl.lines3D.vertex\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\nattribute vec3 position: POSITION;\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n\nvoid main()\n{\n gl_Position = worldViewProjection * vec4(position, 1.0);\n v_Color = a_Color;\n}\n\n@end\n\n@export ecgl.lines3D.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\nvarying vec4 v_Color;\n\n@import clay.util.srgb\n\nvoid main()\n{\n#ifdef SRGB_DECODE\n gl_FragColor = sRGBToLinear(color * v_Color);\n#else\n gl_FragColor = color * v_Color;\n#endif\n}\n@end\n\n\n\n@export ecgl.lines3D.clipNear\n\nvec4 clipNear(vec4 p1, vec4 p2) {\n float n = (p1.w - near) / (p1.w - p2.w);\n return vec4(mix(p1.xy, p2.xy, n), -near, near);\n}\n\n@end\n\n@export ecgl.lines3D.expandLine\n#ifdef VERTEX_ANIMATION\n vec4 prevProj = worldViewProjection * vec4(mix(prevPositionPrev, positionPrev, percent), 1.0);\n vec4 currProj = worldViewProjection * vec4(mix(prevPosition, position, percent), 1.0);\n vec4 nextProj = worldViewProjection * vec4(mix(prevPositionNext, positionNext, percent), 1.0);\n#else\n vec4 prevProj = worldViewProjection * vec4(positionPrev, 1.0);\n vec4 currProj = worldViewProjection * vec4(position, 1.0);\n vec4 nextProj = worldViewProjection * vec4(positionNext, 1.0);\n#endif\n\n if (currProj.w < 0.0) {\n if (nextProj.w > 0.0) {\n currProj = clipNear(currProj, nextProj);\n }\n else if (prevProj.w > 0.0) {\n currProj = clipNear(currProj, prevProj);\n }\n }\n\n vec2 prevScreen = (prevProj.xy / abs(prevProj.w) + 1.0) * 0.5 * viewport.zw;\n vec2 currScreen = (currProj.xy / abs(currProj.w) + 1.0) * 0.5 * viewport.zw;\n vec2 nextScreen = (nextProj.xy / abs(nextProj.w) + 1.0) * 0.5 * viewport.zw;\n\n vec2 dir;\n float len = offset;\n if (position == positionPrev) {\n dir = normalize(nextScreen - currScreen);\n }\n else if (position == positionNext) {\n dir = normalize(currScreen - prevScreen);\n }\n else {\n vec2 dirA = normalize(currScreen - prevScreen);\n vec2 dirB = normalize(nextScreen - currScreen);\n\n vec2 tanget = normalize(dirA + dirB);\n\n float miter = 1.0 / max(dot(tanget, dirA), 0.5);\n len *= miter;\n dir = tanget;\n }\n\n dir = vec2(-dir.y, dir.x) * len;\n currScreen += dir;\n\n currProj.xy = (currScreen / viewport.zw - 0.5) * 2.0 * abs(currProj.w);\n@end\n\n\n@export ecgl.meshLines3D.vertex\n\nattribute vec3 position: POSITION;\nattribute vec3 positionPrev;\nattribute vec3 positionNext;\nattribute float offset;\nattribute vec4 a_Color : COLOR;\n\n#ifdef VERTEX_ANIMATION\nattribute vec3 prevPosition;\nattribute vec3 prevPositionPrev;\nattribute vec3 prevPositionNext;\nuniform float percent : 1.0;\n#endif\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform vec4 viewport : VIEWPORT;\nuniform float near : NEAR;\n\nvarying vec4 v_Color;\n\n@import ecgl.common.wireframe.vertexHeader\n\n@import ecgl.lines3D.clipNear\n\nvoid main()\n{\n @import ecgl.lines3D.expandLine\n\n gl_Position = currProj;\n\n v_Color = a_Color;\n\n @import ecgl.common.wireframe.vertexMain\n}\n@end\n\n\n@export ecgl.meshLines3D.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\nvarying vec4 v_Color;\n\n@import ecgl.common.wireframe.fragmentHeader\n\n@import clay.util.srgb\n\nvoid main()\n{\n#ifdef SRGB_DECODE\n gl_FragColor = sRGBToLinear(color * v_Color);\n#else\n gl_FragColor = color * v_Color;\n#endif\n\n @import ecgl.common.wireframe.fragmentMain\n}\n\n@end",Mo=Di.firstNotNull;xa.Shader["import"](Oo);var Eo={x:0,y:2,z:1},Ao=r["d"].extend({type:"grid3D",__ecgl__:!0,init:function(e,t){var n=[["y","z","x",-1,"left"],["y","z","x",1,"right"],["x","y","z",-1,"bottom"],["x","y","z",1,"top"],["x","z","y",-1,"far"],["x","z","y",1,"near"]],r=["x","y","z"],i=new xa.Material({shader:xa.createShader("ecgl.color"),depthMask:!1,transparent:!0}),a=new xa.Material({shader:xa.createShader("ecgl.meshLines3D"),depthMask:!1,transparent:!0});i.define("fragment","DOUBLE_SIDED"),i.define("both","VERTEX_COLOR"),this.groupGL=new xa.Node,this._control=new Ya({zr:t.getZr()}),this._control.init(),this._faces=n.map((function(e){var t=new po(e,a,i);return this.groupGL.add(t.rootNode),t}),this),this._axes=r.map((function(e){var t=new To(e,a);return this.groupGL.add(t.rootNode),t}),this);var o=t.getDevicePixelRatio();this._axisLabelSurface=new ro({width:256,height:256,devicePixelRatio:o}),this._axisLabelSurface.onupdate=function(){t.getZr().refresh()},this._axisPointerLineMesh=new xa.Mesh({geometry:new eo({useNativeLine:!1}),material:a,castShadow:!1,ignorePicking:!0,renderOrder:3}),this.groupGL.add(this._axisPointerLineMesh),this._axisPointerLabelsSurface=new ro({width:128,height:128,devicePixelRatio:o}),this._axisPointerLabelsMesh=new bo({ignorePicking:!0,renderOrder:4,castShadow:!1}),this._axisPointerLabelsMesh.material.set("textureAtlas",this._axisPointerLabelsSurface.getTexture()),this.groupGL.add(this._axisPointerLabelsMesh),this._lightRoot=new xa.Node,this._sceneHelper=new ao,this._sceneHelper.initLight(this._lightRoot)},render:function(e,t,n){this._model=e,this._api=n;var r=e.coordinateSystem;r.viewGL.add(this._lightRoot),e.get("show")?r.viewGL.add(this.groupGL):r.viewGL.remove(this.groupGL);var i=this._control;i.setViewGL(r.viewGL);var a=e.getModel("viewControl");i.setFromViewControlModel(a,0),this._axisLabelSurface.clear(),i.off("update"),e.get("show")&&(this._faces.forEach((function(r){r.update(e,t,n)}),this),this._axes.forEach((function(t){t.update(e,this._axisLabelSurface,n)}),this)),i.on("update",this._onCameraChange.bind(this,e,n),this),this._sceneHelper.setScene(r.viewGL.scene),this._sceneHelper.updateLight(e),r.viewGL.setPostEffect(e.getModel("postEffect"),n),r.viewGL.setTemporalSuperSampling(e.getModel("temporalSuperSampling")),this._initMouseHandler(e)},afterRender:function(e,t,n,r){var i=r.renderer;this._sceneHelper.updateAmbientCubemap(i,e,n),this._sceneHelper.updateSkybox(i,e,n)},showAxisPointer:function(e,t,n,r){this._doShowAxisPointer(),this._updateAxisPointer(r.value)},hideAxisPointer:function(e,t,n,r){this._doHideAxisPointer()},_initMouseHandler:function(e){var t=e.coordinateSystem,n=t.viewGL;e.get("show")&&e.get("axisPointer.show")?n.on("mousemove",this._updateAxisPointerOnMousePosition,this):n.off("mousemove",this._updateAxisPointerOnMousePosition)},_updateAxisPointerOnMousePosition:function(e){if(!e.target){for(var t,n=this._model,r=n.coordinateSystem,i=r.viewGL,a=i.castRay(e.offsetX,e.offsetY,new xa.Ray),o=0;o<this._faces.length;o++){var s=this._faces[o];if(!s.rootNode.invisible){s.plane.normal.dot(i.camera.worldTransform.z)<0&&s.plane.normal.negate();var l=a.intersectPlane(s.plane);if(l){var u=r.getAxis(s.faceInfo[0]),c=r.getAxis(s.faceInfo[1]),h=Eo[s.faceInfo[0]],d=Eo[s.faceInfo[1]];u.contain(l.array[h])&&c.contain(l.array[d])&&(t=l)}}}if(t){var f=r.pointToData(t.array,[],!0);this._updateAxisPointer(f),this._doShowAxisPointer()}else this._doHideAxisPointer()}},_onCameraChange:function(e,t){e.get("show")&&(this._updateFaceVisibility(),this._updateAxisLinePosition());var n=this._control;t.dispatchAction({type:"grid3DChangeCamera",alpha:n.getAlpha(),beta:n.getBeta(),distance:n.getDistance(),center:n.getCenter(),from:this.uid,grid3DId:e.id})},_updateFaceVisibility:function(){var e=this._control.getCamera(),t=new xa.Vector3;e.update();for(var n=0;n<this._faces.length/2;n++){for(var r=[],i=0;i<2;i++){var a=this._faces[2*n+i];a.rootNode.getWorldPosition(t),t.transformMat4(e.viewMatrix),r[i]=t.z}var o=r[0]>r[1]?0:1,s=this._faces[2*n+o],l=this._faces[2*n+1-o];s.rootNode.invisible=!0,l.rootNode.invisible=!1}},_updateAxisLinePosition:function(){var e=this._model.coordinateSystem,t=e.getAxis("x"),n=e.getAxis("y"),r=e.getAxis("z"),i=r.getExtentMax(),a=r.getExtentMin(),o=t.getExtentMin(),s=t.getExtentMax(),l=n.getExtentMax(),u=n.getExtentMin(),c=this._axes[0].rootNode,h=this._axes[1].rootNode,d=this._axes[2].rootNode,f=this._faces,p=f[4].rootNode.invisible?u:l,g=f[2].rootNode.invisible?i:a,m=f[0].rootNode.invisible?o:s,v=f[2].rootNode.invisible?i:a,y=f[0].rootNode.invisible?s:o,b=f[4].rootNode.invisible?u:l;c.rotation.identity(),h.rotation.identity(),d.rotation.identity(),f[4].rootNode.invisible&&(this._axes[0].flipped=!0,c.rotation.rotateX(Math.PI)),f[0].rootNode.invisible&&(this._axes[1].flipped=!0,h.rotation.rotateZ(Math.PI)),f[4].rootNode.invisible&&(this._axes[2].flipped=!0,d.rotation.rotateY(Math.PI)),c.position.set(0,g,p),h.position.set(m,v,0),d.position.set(y,0,b),c.update(),h.update(),d.update(),this._updateAxisLabelAlign()},_updateAxisLabelAlign:function(){var e=this._control.getCamera(),t=[new xa.Vector4,new xa.Vector4],n=new xa.Vector4;this.groupGL.getWorldPosition(n),n.w=1,n.transformMat4(e.viewMatrix).transformMat4(e.projectionMatrix),n.x/=n.w,n.y/=n.w,this._axes.forEach((function(r){for(var i=r.axisLineCoords,a=(r.labelsMesh.geometry,0);a<t.length;a++)t[a].setArray(i[a]),t[a].w=1,t[a].transformMat4(r.rootNode.worldTransform).transformMat4(e.viewMatrix).transformMat4(e.projectionMatrix),t[a].x/=t[a].w,t[a].y/=t[a].w;var o,s,l=t[1].x-t[0].x,u=t[1].y-t[0].y,c=(t[1].x+t[0].x)/2,h=(t[1].y+t[0].y)/2;Math.abs(u/l)<.5?(o="center",s=h>n.y?"bottom":"top"):(s="middle",o=c>n.x?"left":"right"),r.setSpriteAlign(o,s,this._api)}),this)},_doShowAxisPointer:function(){this._axisPointerLineMesh.invisible&&(this._axisPointerLineMesh.invisible=!1,this._axisPointerLabelsMesh.invisible=!1,this._api.getZr().refresh())},_doHideAxisPointer:function(){this._axisPointerLineMesh.invisible||(this._axisPointerLineMesh.invisible=!0,this._axisPointerLabelsMesh.invisible=!0,this._api.getZr().refresh())},_updateAxisPointer:function(e){var t=this._model.coordinateSystem,n=t.dataToPoint(e),r=this._axisPointerLineMesh,i=r.geometry,a=this._model.getModel("axisPointer"),o=this._api.getDevicePixelRatio();function s(e){return Di.firstNotNull(e.model.get("axisPointer.show"),a.get("show"))}function l(e){var t=e.model.getModel("axisPointer",a),n=t.getModel("lineStyle"),r=xa.parseColor(n.get("color")),i=Mo(n.get("width"),1),o=Mo(n.get("opacity"),1);return r[3]*=o,{color:r,lineWidth:i}}i.convertToDynamicArray(!0);for(var u=0;u<this._faces.length;u++){var c=this._faces[u];if(!c.rootNode.invisible){for(var h=c.faceInfo,d=h[3]<0?t.getAxis(h[2]).getExtentMin():t.getAxis(h[2]).getExtentMax(),f=Eo[h[2]],p=0;p<2;p++){var g=h[p],m=h[1-p],v=t.getAxis(g),y=t.getAxis(m);if(s(v)){var b=[0,0,0],_=[0,0,0],x=Eo[g],w=Eo[m];b[x]=_[x]=n[x],b[f]=_[f]=d,b[w]=y.getExtentMin(),_[w]=y.getExtentMax();var S=l(v);i.addLine(b,_,S.color,S.lineWidth*o)}}if(s(t.getAxis(h[2]))){b=n.slice(),_=n.slice();_[f]=d;S=l(t.getAxis(h[2]));i.addLine(b,_,S.color,S.lineWidth*o)}}}i.convertToTypedArray(),this._updateAxisPointerLabelsMesh(e),this._api.getZr().refresh()},_updateAxisPointerLabelsMesh:function(e){var t=this._model,n=this._axisPointerLabelsMesh,i=this._axisPointerLabelsSurface,a=t.coordinateSystem,o=t.getModel("axisPointer");n.geometry.convertToDynamicArray(!0),i.clear();var s={x:"y",y:"x",z:"y"};this._axes.forEach((function(t,l){var u=a.getAxis(t.dim),c=u.model,h=c.getModel("axisPointer",o),d=h.getModel("label"),f=h.get("lineStyle.color");if(d.get("show")&&h.get("show")){var p=e[l],g=d.get("formatter"),m=u.scale.getLabel({value:p});if(null!=g)m=g(m,e);else if("interval"===u.scale.type||"log"===u.scale.type){var v=r["E"].getPrecisionSafe(u.scale.getTicks()[0]);m=p.toFixed(v+2)}var y=d.get("color"),b=new r["z"].Text({style:Object(Ga["c"])(d,{text:m,fill:y||f,align:"left",verticalAlign:"top"})}),_=i.add(b),x=b.getBoundingRect(),w=this._api.getDevicePixelRatio(),S=t.rootNode.position.toArray(),T=Eo[s[t.dim]];S[T]+=(t.flipped?-1:1)*d.get("margin"),S[Eo[t.dim]]=u.dataToCoord(e[l]),n.geometry.addSprite(S,[x.width*w,x.height*w],_,t.textAlign,t.textVerticalAlign)}}),this),i.getZr().refreshImmediately(),n.material.set("uvScale",i.getCoordsScale()),n.geometry.convertToTypedArray()},dispose:function(){this.groupGL.removeAll(),this._control.dispose()}}),Co=n("uVz+");function Io(e){Co["a"].call(this,e),this.type="cartesian3D",this.dimensions=["x","y","z"],this.size=[0,0,0]}Io.prototype={constructor:Io,model:null,containPoint:function(e){return this.getAxis("x").contain(e[0])&&this.getAxis("y").contain(e[2])&&this.getAxis("z").contain(e[1])},containData:function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])&&this.getAxis("z").containData(e[2])},dataToPoint:function(e,t,n){return t=t||[],t[0]=this.getAxis("x").dataToCoord(e[0],n),t[2]=this.getAxis("y").dataToCoord(e[1],n),t[1]=this.getAxis("z").dataToCoord(e[2],n),t},pointToData:function(e,t,n){return t=t||[],t[0]=this.getAxis("x").coordToData(e[0],n),t[1]=this.getAxis("y").coordToData(e[2],n),t[2]=this.getAxis("z").coordToData(e[1],n),t}},r["Y"].inherits(Io,Co["a"]);var Do=Io;function Lo(e,t,n){r["a"].call(this,e,t,n)}Lo.prototype={constructor:Lo,getExtentMin:function(){var e=this._extent;return Math.min(e[0],e[1])},getExtentMax:function(){var e=this._extent;return Math.max(e[0],e[1])},calculateCategoryInterval:function(){return Math.floor(this.scale.count()/8)}},r["Y"].inherits(Lo,r["a"]);var Po=Lo,ko=n("Fi3l"),Ro=function(){this._pool={},this._allocatedTextures=[]};Ro.prototype={constructor:Ro,get:function(e){var t=Fo(e);this._pool.hasOwnProperty(t)||(this._pool[t]=[]);var n=this._pool[t];if(!n.length){var r=new rn(e);return this._allocatedTextures.push(r),r}return n.pop()},put:function(e){var t=Fo(e);this._pool.hasOwnProperty(t)||(this._pool[t]=[]);var n=this._pool[t];n.push(e)},clear:function(e){for(var t=0;t<this._allocatedTextures.length;t++)this._allocatedTextures[t].dispose(e);this._pool={},this._allocatedTextures=[]}};var No={width:512,height:512,type:O.UNSIGNED_BYTE,format:O.RGBA,wrapS:O.CLAMP_TO_EDGE,wrapT:O.CLAMP_TO_EDGE,minFilter:O.LINEAR_MIPMAP_LINEAR,magFilter:O.LINEAR,useMipmap:!0,anisotropic:1,flipY:!0,unpackAlignment:4,premultiplyAlpha:!1},jo=Object.keys(No);function Fo(e){y.defaultsWithPropList(e,No,jo),zo(e);for(var t="",n=0;n<jo.length;n++){var r=jo[n],i=e[r].toString();t+=i}return t}function zo(e){var t=Bo(e.width,e.height);e.format===O.DEPTH_COMPONENT&&(e.useMipmap=!1),t&&e.useMipmap||(e.minFilter==O.NEAREST_MIPMAP_NEAREST||e.minFilter==O.NEAREST_MIPMAP_LINEAR?e.minFilter=O.NEAREST:e.minFilter!=O.LINEAR_MIPMAP_LINEAR&&e.minFilter!=O.LINEAR_MIPMAP_NEAREST||(e.minFilter=O.LINEAR)),t||(e.wrapS=O.CLAMP_TO_EDGE,e.wrapT=O.CLAMP_TO_EDGE)}function Bo(e,t){return 0===(e&e-1)&&0===(t&t-1)}var Vo=Ro,Go="@export clay.sm.depth.vertex\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nattribute vec3 position : POSITION;\nattribute vec2 texcoord : TEXCOORD_0;\nuniform vec2 uvRepeat = vec2(1.0, 1.0);\nuniform vec2 uvOffset = vec2(0.0, 0.0);\n@import clay.chunk.skinning_header\n@import clay.chunk.instancing_header\nvarying vec4 v_ViewPosition;\nvarying vec2 v_Texcoord;\nvoid main(){\n vec4 P = vec4(position, 1.0);\n#ifdef SKINNING\n @import clay.chunk.skin_matrix\n P = skinMatrixWS * P;\n#endif\n#ifdef INSTANCING\n @import clay.chunk.instancing_matrix\n P = instanceMat * P;\n#endif\n v_ViewPosition = worldViewProjection * P;\n gl_Position = v_ViewPosition;\n v_Texcoord = texcoord * uvRepeat + uvOffset;\n}\n@end\n@export clay.sm.depth.fragment\nvarying vec4 v_ViewPosition;\nvarying vec2 v_Texcoord;\nuniform float bias : 0.001;\nuniform float slopeScale : 1.0;\nuniform sampler2D alphaMap;\nuniform float alphaCutoff: 0.0;\n@import clay.util.encode_float\nvoid main(){\n float depth = v_ViewPosition.z / v_ViewPosition.w;\n if (alphaCutoff > 0.0) {\n if (texture2D(alphaMap, v_Texcoord).a <= alphaCutoff) {\n discard;\n }\n }\n#ifdef USE_VSM\n depth = depth * 0.5 + 0.5;\n float moment1 = depth;\n float moment2 = depth * depth;\n #ifdef SUPPORT_STANDARD_DERIVATIVES\n float dx = dFdx(depth);\n float dy = dFdy(depth);\n moment2 += 0.25*(dx*dx+dy*dy);\n #endif\n gl_FragColor = vec4(moment1, moment2, 0.0, 1.0);\n#else\n #ifdef SUPPORT_STANDARD_DERIVATIVES\n float dx = dFdx(depth);\n float dy = dFdy(depth);\n depth += sqrt(dx*dx + dy*dy) * slopeScale + bias;\n #else\n depth += bias;\n #endif\n gl_FragColor = encodeFloat(depth * 0.5 + 0.5);\n#endif\n}\n@end\n@export clay.sm.debug_depth\nuniform sampler2D depthMap;\nvarying vec2 v_Texcoord;\n@import clay.util.decode_float\nvoid main() {\n vec4 tex = texture2D(depthMap, v_Texcoord);\n#ifdef USE_VSM\n gl_FragColor = vec4(tex.rgb, 1.0);\n#else\n float depth = decodeFloat(tex);\n gl_FragColor = vec4(depth, depth, depth, 1.0);\n#endif\n}\n@end\n@export clay.sm.distance.vertex\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform mat4 world : WORLD;\nattribute vec3 position : POSITION;\n@import clay.chunk.skinning_header\nvarying vec3 v_WorldPosition;\nvoid main (){\n vec4 P = vec4(position, 1.0);\n#ifdef SKINNING\n @import clay.chunk.skin_matrix\n P = skinMatrixWS * P;\n#endif\n#ifdef INSTANCING\n @import clay.chunk.instancing_matrix\n P = instanceMat * P;\n#endif\n gl_Position = worldViewProjection * P;\n v_WorldPosition = (world * P).xyz;\n}\n@end\n@export clay.sm.distance.fragment\nuniform vec3 lightPosition;\nuniform float range : 100;\nvarying vec3 v_WorldPosition;\n@import clay.util.encode_float\nvoid main(){\n float dist = distance(lightPosition, v_WorldPosition);\n#ifdef USE_VSM\n gl_FragColor = vec4(dist, dist * dist, 0.0, 0.0);\n#else\n dist = dist / range;\n gl_FragColor = encodeFloat(dist);\n#endif\n}\n@end\n@export clay.plugin.shadow_map_common\n@import clay.util.decode_float\nfloat tapShadowMap(sampler2D map, vec2 uv, float z){\n vec4 tex = texture2D(map, uv);\n return step(z, decodeFloat(tex) * 2.0 - 1.0);\n}\nfloat pcf(sampler2D map, vec2 uv, float z, float textureSize, vec2 scale) {\n float shadowContrib = tapShadowMap(map, uv, z);\n vec2 offset = vec2(1.0 / textureSize) * scale;\n#ifdef PCF_KERNEL_SIZE\n for (int _idx_ = 0; _idx_ < PCF_KERNEL_SIZE; _idx_++) {{\n shadowContrib += tapShadowMap(map, uv + offset * pcfKernel[_idx_], z);\n }}\n return shadowContrib / float(PCF_KERNEL_SIZE + 1);\n#else\n shadowContrib += tapShadowMap(map, uv+vec2(offset.x, 0.0), z);\n shadowContrib += tapShadowMap(map, uv+vec2(offset.x, offset.y), z);\n shadowContrib += tapShadowMap(map, uv+vec2(-offset.x, offset.y), z);\n shadowContrib += tapShadowMap(map, uv+vec2(0.0, offset.y), z);\n shadowContrib += tapShadowMap(map, uv+vec2(-offset.x, 0.0), z);\n shadowContrib += tapShadowMap(map, uv+vec2(-offset.x, -offset.y), z);\n shadowContrib += tapShadowMap(map, uv+vec2(offset.x, -offset.y), z);\n shadowContrib += tapShadowMap(map, uv+vec2(0.0, -offset.y), z);\n return shadowContrib / 9.0;\n#endif\n}\nfloat pcf(sampler2D map, vec2 uv, float z, float textureSize) {\n return pcf(map, uv, z, textureSize, vec2(1.0));\n}\nfloat chebyshevUpperBound(vec2 moments, float z){\n float p = 0.0;\n z = z * 0.5 + 0.5;\n if (z <= moments.x) {\n p = 1.0;\n }\n float variance = moments.y - moments.x * moments.x;\n variance = max(variance, 0.0000001);\n float mD = moments.x - z;\n float pMax = variance / (variance + mD * mD);\n pMax = clamp((pMax-0.4)/(1.0-0.4), 0.0, 1.0);\n return max(p, pMax);\n}\nfloat computeShadowContrib(\n sampler2D map, mat4 lightVPM, vec3 position, float textureSize, vec2 scale, vec2 offset\n) {\n vec4 posInLightSpace = lightVPM * vec4(position, 1.0);\n posInLightSpace.xyz /= posInLightSpace.w;\n float z = posInLightSpace.z;\n if(all(greaterThan(posInLightSpace.xyz, vec3(-0.99, -0.99, -1.0))) &&\n all(lessThan(posInLightSpace.xyz, vec3(0.99, 0.99, 1.0)))){\n vec2 uv = (posInLightSpace.xy+1.0) / 2.0;\n #ifdef USE_VSM\n vec2 moments = texture2D(map, uv * scale + offset).xy;\n return chebyshevUpperBound(moments, z);\n #else\n return pcf(map, uv * scale + offset, z, textureSize, scale);\n #endif\n }\n return 1.0;\n}\nfloat computeShadowContrib(sampler2D map, mat4 lightVPM, vec3 position, float textureSize) {\n return computeShadowContrib(map, lightVPM, position, textureSize, vec2(1.0), vec2(0.0));\n}\nfloat computeShadowContribOmni(samplerCube map, vec3 direction, float range)\n{\n float dist = length(direction);\n vec4 shadowTex = textureCube(map, direction);\n#ifdef USE_VSM\n vec2 moments = shadowTex.xy;\n float variance = moments.y - moments.x * moments.x;\n float mD = moments.x - dist;\n float p = variance / (variance + mD * mD);\n if(moments.x + 0.001 < dist){\n return clamp(p, 0.0, 1.0);\n }else{\n return 1.0;\n }\n#else\n return step(dist, (decodeFloat(shadowTex) + 0.0002) * range);\n#endif\n}\n@end\n@export clay.plugin.compute_shadow_map\n#if defined(SPOT_LIGHT_SHADOWMAP_COUNT) || defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) || defined(POINT_LIGHT_SHADOWMAP_COUNT)\n#ifdef SPOT_LIGHT_SHADOWMAP_COUNT\nuniform sampler2D spotLightShadowMaps[SPOT_LIGHT_SHADOWMAP_COUNT]:unconfigurable;\nuniform mat4 spotLightMatrices[SPOT_LIGHT_SHADOWMAP_COUNT]:unconfigurable;\nuniform float spotLightShadowMapSizes[SPOT_LIGHT_SHADOWMAP_COUNT]:unconfigurable;\n#endif\n#ifdef DIRECTIONAL_LIGHT_SHADOWMAP_COUNT\n#if defined(SHADOW_CASCADE)\nuniform sampler2D directionalLightShadowMaps[1]:unconfigurable;\nuniform mat4 directionalLightMatrices[SHADOW_CASCADE]:unconfigurable;\nuniform float directionalLightShadowMapSizes[1]:unconfigurable;\nuniform float shadowCascadeClipsNear[SHADOW_CASCADE]:unconfigurable;\nuniform float shadowCascadeClipsFar[SHADOW_CASCADE]:unconfigurable;\n#else\nuniform sampler2D directionalLightShadowMaps[DIRECTIONAL_LIGHT_SHADOWMAP_COUNT]:unconfigurable;\nuniform mat4 directionalLightMatrices[DIRECTIONAL_LIGHT_SHADOWMAP_COUNT]:unconfigurable;\nuniform float directionalLightShadowMapSizes[DIRECTIONAL_LIGHT_SHADOWMAP_COUNT]:unconfigurable;\n#endif\n#endif\n#ifdef POINT_LIGHT_SHADOWMAP_COUNT\nuniform samplerCube pointLightShadowMaps[POINT_LIGHT_SHADOWMAP_COUNT]:unconfigurable;\n#endif\nuniform bool shadowEnabled : true;\n#ifdef PCF_KERNEL_SIZE\nuniform vec2 pcfKernel[PCF_KERNEL_SIZE];\n#endif\n@import clay.plugin.shadow_map_common\n#if defined(SPOT_LIGHT_SHADOWMAP_COUNT)\nvoid computeShadowOfSpotLights(vec3 position, inout float shadowContribs[SPOT_LIGHT_COUNT] ) {\n float shadowContrib;\n for(int _idx_ = 0; _idx_ < SPOT_LIGHT_SHADOWMAP_COUNT; _idx_++) {{\n shadowContrib = computeShadowContrib(\n spotLightShadowMaps[_idx_], spotLightMatrices[_idx_], position,\n spotLightShadowMapSizes[_idx_]\n );\n shadowContribs[_idx_] = shadowContrib;\n }}\n for(int _idx_ = SPOT_LIGHT_SHADOWMAP_COUNT; _idx_ < SPOT_LIGHT_COUNT; _idx_++){{\n shadowContribs[_idx_] = 1.0;\n }}\n}\n#endif\n#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n#ifdef SHADOW_CASCADE\nvoid computeShadowOfDirectionalLights(vec3 position, inout float shadowContribs[DIRECTIONAL_LIGHT_COUNT]){\n float depth = (2.0 * gl_FragCoord.z - gl_DepthRange.near - gl_DepthRange.far)\n / (gl_DepthRange.far - gl_DepthRange.near);\n float shadowContrib;\n shadowContribs[0] = 1.0;\n for (int _idx_ = 0; _idx_ < SHADOW_CASCADE; _idx_++) {{\n if (\n depth >= shadowCascadeClipsNear[_idx_] &&\n depth <= shadowCascadeClipsFar[_idx_]\n ) {\n shadowContrib = computeShadowContrib(\n directionalLightShadowMaps[0], directionalLightMatrices[_idx_], position,\n directionalLightShadowMapSizes[0],\n vec2(1.0 / float(SHADOW_CASCADE), 1.0),\n vec2(float(_idx_) / float(SHADOW_CASCADE), 0.0)\n );\n shadowContribs[0] = shadowContrib;\n }\n }}\n for(int _idx_ = DIRECTIONAL_LIGHT_SHADOWMAP_COUNT; _idx_ < DIRECTIONAL_LIGHT_COUNT; _idx_++) {{\n shadowContribs[_idx_] = 1.0;\n }}\n}\n#else\nvoid computeShadowOfDirectionalLights(vec3 position, inout float shadowContribs[DIRECTIONAL_LIGHT_COUNT]){\n float shadowContrib;\n for(int _idx_ = 0; _idx_ < DIRECTIONAL_LIGHT_SHADOWMAP_COUNT; _idx_++) {{\n shadowContrib = computeShadowContrib(\n directionalLightShadowMaps[_idx_], directionalLightMatrices[_idx_], position,\n directionalLightShadowMapSizes[_idx_]\n );\n shadowContribs[_idx_] = shadowContrib;\n }}\n for(int _idx_ = DIRECTIONAL_LIGHT_SHADOWMAP_COUNT; _idx_ < DIRECTIONAL_LIGHT_COUNT; _idx_++) {{\n shadowContribs[_idx_] = 1.0;\n }}\n}\n#endif\n#endif\n#if defined(POINT_LIGHT_SHADOWMAP_COUNT)\nvoid computeShadowOfPointLights(vec3 position, inout float shadowContribs[POINT_LIGHT_COUNT] ){\n vec3 lightPosition;\n vec3 direction;\n for(int _idx_ = 0; _idx_ < POINT_LIGHT_SHADOWMAP_COUNT; _idx_++) {{\n lightPosition = pointLightPosition[_idx_];\n direction = position - lightPosition;\n shadowContribs[_idx_] = computeShadowContribOmni(pointLightShadowMaps[_idx_], direction, pointLightRange[_idx_]);\n }}\n for(int _idx_ = POINT_LIGHT_SHADOWMAP_COUNT; _idx_ < POINT_LIGHT_COUNT; _idx_++) {{\n shadowContribs[_idx_] = 1.0;\n }}\n}\n#endif\n#endif\n@end",Ho=["px","nx","py","ny","pz","nz"];function Uo(e,t,n){if("alphaMap"===n)return e.material.get("diffuseMap");if("alphaCutoff"===n){if(e.material.isDefined("fragment","ALPHA_TEST")&&e.material.get("diffuseMap")){var r=e.material.get("alphaCutoff");return r||0}return 0}return"uvRepeat"===n?e.material.get("uvRepeat"):"uvOffset"===n?e.material.get("uvOffset"):t.get(n)}function Wo(e,t){var n=e.material,r=t.material;return n.get("diffuseMap")!==r.get("diffuseMap")||(n.get("alphaCutoff")||0)!==(r.get("alphaCutoff")||0)}He["import"](Go);var Xo=_.extend((function(){return{softShadow:Xo.PCF,shadowBlur:1,lightFrustumBias:"auto",kernelPCF:new Float32Array([1,0,1,1,-1,1,0,1,-1,0,-1,-1,1,-1,0,-1]),precision:"highp",_lastRenderNotCastShadow:!1,_frameBuffer:new hr,_textures:{},_shadowMapNumber:{POINT_LIGHT:0,DIRECTIONAL_LIGHT:0,SPOT_LIGHT:0},_depthMaterials:{},_distanceMaterials:{},_receivers:[],_lightsCastShadow:[],_lightCameras:{},_lightMaterials:{},_texturePool:new Vo}}),(function(){this._gaussianPassH=new pi({fragment:He.source("clay.compositor.gaussian_blur")}),this._gaussianPassV=new pi({fragment:He.source("clay.compositor.gaussian_blur")}),this._gaussianPassH.setUniform("blurSize",this.shadowBlur),this._gaussianPassH.setUniform("blurDir",0),this._gaussianPassV.setUniform("blurSize",this.shadowBlur),this._gaussianPassV.setUniform("blurDir",1),this._outputDepthPass=new pi({fragment:He.source("clay.sm.debug_depth")})}),{render:function(e,t,n,r){n||(n=t.getMainCamera()),this.trigger("beforerender",this,e,t,n),this._renderShadowPass(e,t,n,r),this.trigger("afterrender",this,e,t,n)},renderDebug:function(e,t){e.saveClear();var n=e.viewport,r=0,i=0,a=t||n.width/4,o=a;for(var s in this.softShadow===Xo.VSM?this._outputDepthPass.material.define("fragment","USE_VSM"):this._outputDepthPass.material.undefine("fragment","USE_VSM"),this._textures){var l=this._textures[s];e.setViewport(r,i,a*l.width/l.height,o),this._outputDepthPass.setUniform("depthMap",l),this._outputDepthPass.render(e),r+=a*l.width/l.height}e.setViewport(n),e.restoreClear()},_updateReceivers:function(e,t){if(t.receiveShadow?(this._receivers.push(t),t.material.set("shadowEnabled",1),t.material.set("pcfKernel",this.kernelPCF)):t.material.set("shadowEnabled",0),this.softShadow===Xo.VSM)t.material.define("fragment","USE_VSM"),t.material.undefine("fragment","PCF_KERNEL_SIZE");else{t.material.undefine("fragment","USE_VSM");var n=this.kernelPCF;n&&n.length?t.material.define("fragment","PCF_KERNEL_SIZE",n.length/2):t.material.undefine("fragment","PCF_KERNEL_SIZE")}},_update:function(e,t){var n=this;t.traverse((function(t){t.isRenderable()&&n._updateReceivers(e,t)}));for(var r=0;r<t.lights.length;r++){var i=t.lights[r];i.castShadow&&!i.invisible&&this._lightsCastShadow.push(i)}},_renderShadowPass:function(e,t,n,r){for(var i in this._shadowMapNumber)this._shadowMapNumber[i]=0;this._lightsCastShadow.length=0,this._receivers.length=0;var a=e.gl;if(r||t.update(),n&&n.update(),t.updateLights(),this._update(e,t),this._lightsCastShadow.length||!this._lastRenderNotCastShadow){this._lastRenderNotCastShadow=0===this._lightsCastShadow,a.enable(a.DEPTH_TEST),a.depthMask(!0),a.disable(a.BLEND),a.clearColor(1,1,1,1);for(var o,s=[],l=[],u=[],c=[],h=[],d=[],f=0;f<this._lightsCastShadow.length;f++){var p=this._lightsCastShadow[f];if("DIRECTIONAL_LIGHT"===p.type){if(o){console.warn("Only one direectional light supported with shadow cascade");continue}if(p.shadowCascade>4){console.warn("Support at most 4 cascade");continue}p.shadowCascade>1&&(o=p),this.renderDirectionalLightShadow(e,t,n,p,h,c,u)}else"SPOT_LIGHT"===p.type?this.renderSpotLightShadow(e,t,p,l,s):"POINT_LIGHT"===p.type&&this.renderPointLightShadow(e,t,p,d);this._shadowMapNumber[p.type]++}for(var g in this._shadowMapNumber){var m=this._shadowMapNumber[g],v=g+"_SHADOWMAP_COUNT";for(f=0;f<this._receivers.length;f++){var y=this._receivers[f],b=y.material;b.fragmentDefines[v]!==m&&(m>0?b.define("fragment",v,m):b.isDefined("fragment",v)&&b.undefine("fragment",v))}}for(f=0;f<this._receivers.length;f++){y=this._receivers[f],b=y.material;o?b.define("fragment","SHADOW_CASCADE",o.shadowCascade):b.undefine("fragment","SHADOW_CASCADE")}var _=t.shadowUniforms;if(u.length>0){var x=u.map(O);if(_.directionalLightShadowMaps={value:u,type:"tv"},_.directionalLightMatrices={value:c,type:"m4v"},_.directionalLightShadowMapSizes={value:x,type:"1fv"},o){var w=h.slice(),S=h.slice();w.pop(),S.shift(),w.reverse(),S.reverse(),c.reverse(),_.shadowCascadeClipsNear={value:w,type:"1fv"},_.shadowCascadeClipsFar={value:S,type:"1fv"}}}if(s.length>0){var T=s.map(O);_=t.shadowUniforms;_.spotLightShadowMaps={value:s,type:"tv"},_.spotLightMatrices={value:l,type:"m4v"},_.spotLightShadowMapSizes={value:T,type:"1fv"}}d.length>0&&(_.pointLightShadowMaps={value:d,type:"tv"})}function O(e){return e.height}},renderDirectionalLightShadow:function(){var e=new Rn,t=new At,n=new Nt,r=new At,i=new At,a=new At,o=new At;return function(s,l,u,c,h,d,f){var p=this._getDepthMaterial(c),g={getMaterial:function(e){return e.shadowDepthMaterial||p},isMaterialChanged:Wo,getUniform:Uo,ifRender:function(e){return e.castShadow},sortCompare:st.opaqueSortCompare};if(!l.viewBoundingBoxLastFrame.isFinite()){var m=l.getBoundingBox();l.viewBoundingBoxLastFrame.copy(m).applyTransform(u.viewMatrix)}var v=Math.min(-l.viewBoundingBoxLastFrame.min.z,u.far),y=Math.max(-l.viewBoundingBoxLastFrame.max.z,u.near),b=this._getDirectionalLightCamera(c,l,u),_=a.array;o.copy(b.projectionMatrix),Xe.invert(i.array,b.worldTransform.array),Xe.multiply(i.array,i.array,u.worldTransform.array),Xe.multiply(_,o.array,i.array);for(var x=[],w=u instanceof Jn,S=(u.near+u.far)/(u.near-u.far),T=2*u.near*u.far/(u.near-u.far),O=0;O<=c.shadowCascade;O++){var M=y*Math.pow(v/y,O/c.shadowCascade),E=y+(v-y)*O/c.shadowCascade,A=M*c.cascadeSplitLogFactor+E*(1-c.cascadeSplitLogFactor);x.push(A),h.push(-(-A*S+T)/-A)}var C=this._getTexture(c,c.shadowCascade);f.push(C);var I=s.viewport,D=s.gl;this._frameBuffer.attach(C),this._frameBuffer.bind(s),D.clear(D.COLOR_BUFFER_BIT|D.DEPTH_BUFFER_BIT);for(O=0;O<c.shadowCascade;O++){var L=x[O],P=x[O+1];w?Xe.perspective(t.array,u.fov/180*Math.PI,u.aspect,L,P):Xe.ortho(t.array,u.left,u.right,u.bottom,u.top,L,P),e.setFromProjection(t),e.getTransformedBoundingBox(n,i),n.applyProjection(o);var k=n.min.array,R=n.max.array;k[0]=Math.max(k[0],-1),k[1]=Math.max(k[1],-1),R[0]=Math.min(R[0],1),R[1]=Math.min(R[1],1),r.ortho(k[0],R[0],k[1],R[1],1,-1),b.projectionMatrix.multiplyLeft(r);var N=c.shadowResolution||512;s.setViewport((c.shadowCascade-O-1)*N,0,N,N,1);var j=l.updateRenderList(b);s.renderPass(j.opaque,b,g),this.softShadow===Xo.VSM&&this._gaussianFilter(s,C,C.width);var F=new At;F.copy(b.viewMatrix).multiplyLeft(b.projectionMatrix),d.push(F.array),b.projectionMatrix.copy(o)}this._frameBuffer.unbind(s),s.setViewport(I)}}(),renderSpotLightShadow:function(e,t,n,r,i){var a=this._getTexture(n),o=this._getSpotLightCamera(n),s=e.gl;this._frameBuffer.attach(a),this._frameBuffer.bind(e),s.clear(s.COLOR_BUFFER_BIT|s.DEPTH_BUFFER_BIT);var l=this._getDepthMaterial(n),u={getMaterial:function(e){return e.shadowDepthMaterial||l},isMaterialChanged:Wo,getUniform:Uo,ifRender:function(e){return e.castShadow},sortCompare:st.opaqueSortCompare},c=t.updateRenderList(o);e.renderPass(c.opaque,o,u),this._frameBuffer.unbind(e),this.softShadow===Xo.VSM&&this._gaussianFilter(e,a,a.width);var h=new At;h.copy(o.worldTransform).invert().multiplyLeft(o.projectionMatrix),i.push(a),r.push(h.array)},renderPointLightShadow:function(e,t,n,r){var i=this._getTexture(n),a=e.gl;r.push(i);var o=this._getDepthMaterial(n),s={getMaterial:function(e){return e.shadowDepthMaterial||o},getUniform:Uo,sortCompare:st.opaqueSortCompare},l={px:[],py:[],pz:[],nx:[],ny:[],nz:[]},u=new Nt,c=n.getWorldPosition().array,h=new Nt,d=n.range;h.min.setArray(c),h.max.setArray(c);var f=new gt(d,d,d);h.max.add(f),h.min.sub(f);var p={px:!1,py:!1,pz:!1,nx:!1,ny:!1,nz:!1};t.traverse((function(e){if(e.isRenderable()&&e.castShadow){var t=e.geometry;if(!t.boundingBox){for(var n=0;n<Ho.length;n++)l[Ho[n]].push(e);return}if(u.transformFrom(t.boundingBox,e.worldTransform),!u.intersectBoundingBox(h))return;u.updateVertices();for(n=0;n<Ho.length;n++)p[Ho[n]]=!1;for(n=0;n<8;n++){var r=u.vertices[n],i=r[0]-c[0],a=r[1]-c[1],o=r[2]-c[2],s=Math.abs(i),d=Math.abs(a),f=Math.abs(o);s>d?s>f?p[i>0?"px":"nx"]=!0:p[o>0?"pz":"nz"]=!0:d>f?p[a>0?"py":"ny"]=!0:p[o>0?"pz":"nz"]=!0}for(n=0;n<Ho.length;n++)p[Ho[n]]&&l[Ho[n]].push(e)}}));for(var g=0;g<6;g++){var m=Ho[g],v=this._getPointLightCamera(n,m);this._frameBuffer.attach(i,a.COLOR_ATTACHMENT0,a.TEXTURE_CUBE_MAP_POSITIVE_X+g),this._frameBuffer.bind(e),a.clear(a.COLOR_BUFFER_BIT|a.DEPTH_BUFFER_BIT),e.renderPass(l[m],v,s)}this._frameBuffer.unbind(e)},_getDepthMaterial:function(e){var t=this._lightMaterials[e.__uid__],n="POINT_LIGHT"===e.type;if(!t){var r=n?"clay.sm.distance.":"clay.sm.depth.";t=new J({precision:this.precision,shader:new He(He.source(r+"vertex"),He.source(r+"fragment"))}),this._lightMaterials[e.__uid__]=t}return null!=e.shadowSlopeScale&&t.setUniform("slopeScale",e.shadowSlopeScale),null!=e.shadowBias&&t.setUniform("bias",e.shadowBias),this.softShadow===Xo.VSM?t.define("fragment","USE_VSM"):t.undefine("fragment","USE_VSM"),n&&(t.set("lightPosition",e.getWorldPosition().array),t.set("range",e.range)),t},_gaussianFilter:function(e,t,n){var r={width:n,height:n,type:Kt.FLOAT},i=this._texturePool.get(r);this._frameBuffer.attach(i),this._frameBuffer.bind(e),this._gaussianPassH.setUniform("texture",t),this._gaussianPassH.setUniform("textureWidth",n),this._gaussianPassH.render(e),this._frameBuffer.attach(t),this._gaussianPassV.setUniform("texture",i),this._gaussianPassV.setUniform("textureHeight",n),this._gaussianPassV.render(e),this._frameBuffer.unbind(e),this._texturePool.put(i)},_getTexture:function(e,t){var n=e.__uid__,r=this._textures[n],i=e.shadowResolution||512;return t=t||1,r||(r="POINT_LIGHT"===e.type?new $n:new rn,r.width=i*t,r.height=i,this.softShadow===Xo.VSM?(r.type=Kt.FLOAT,r.anisotropic=4):(r.minFilter=O.NEAREST,r.magFilter=O.NEAREST,r.useMipmap=!1),this._textures[n]=r),r},_getPointLightCamera:function(e,t){this._lightCameras.point||(this._lightCameras.point={px:new Jn,nx:new Jn,py:new Jn,ny:new Jn,pz:new Jn,nz:new Jn});var n=this._lightCameras.point[t];switch(n.far=e.range,n.fov=90,n.position.set(0,0,0),t){case"px":n.lookAt(gt.POSITIVE_X,gt.NEGATIVE_Y);break;case"nx":n.lookAt(gt.NEGATIVE_X,gt.NEGATIVE_Y);break;case"py":n.lookAt(gt.POSITIVE_Y,gt.POSITIVE_Z);break;case"ny":n.lookAt(gt.NEGATIVE_Y,gt.NEGATIVE_Z);break;case"pz":n.lookAt(gt.POSITIVE_Z,gt.NEGATIVE_Y);break;case"nz":n.lookAt(gt.NEGATIVE_Z,gt.NEGATIVE_Y);break}return e.getWorldPosition(n.position),n.update(),n},_getDirectionalLightCamera:function(){var e=new At,t=new Nt,n=new Nt;return function(r,i,a){this._lightCameras.directional||(this._lightCameras.directional=new li);var o=this._lightCameras.directional;t.copy(i.viewBoundingBoxLastFrame),t.intersection(a.frustum.boundingBox),o.position.copy(t.min).add(t.max).scale(.5).transformMat4(a.worldTransform),o.rotation.copy(r.rotation),o.scale.copy(r.scale),o.updateWorldTransform(),At.invert(e,o.worldTransform),At.multiply(e,e,a.worldTransform),n.copy(t).applyTransform(e);var s=n.min.array,l=n.max.array;return o.position.set((s[0]+l[0])/2,(s[1]+l[1])/2,l[2]).transformMat4(o.worldTransform),o.near=0,o.far=-s[2]+l[2],isNaN(this.lightFrustumBias)?o.far*=4:o.far+=this.lightFrustumBias,o.left=s[0],o.right=l[0],o.top=l[1],o.bottom=s[1],o.update(!0),o}}(),_getSpotLightCamera:function(e){this._lightCameras.spot||(this._lightCameras.spot=new Jn);var t=this._lightCameras.spot;return t.fov=2*e.penumbraAngle,t.far=e.range,t.worldTransform.copy(e.worldTransform),t.updateProjectionMatrix(),Xe.invert(t.viewMatrix.array,t.worldTransform.array),t},dispose:function(e){var t=e.gl||e;for(var n in this._frameBuffer&&this._frameBuffer.dispose(t),this._textures)this._textures[n].dispose(t);this._texturePool.clear(e.gl),this._depthMaterials={},this._distanceMaterials={},this._textures={},this._lightCameras={},this._shadowMapNumber={POINT_LIGHT:0,DIRECTIONAL_LIGHT:0,SPOT_LIGHT:0},this._meshMaterials={};for(var r=0;r<this._receivers.length;r++){var i=this._receivers[r];if(i.material){var a=i.material;a.undefine("fragment","POINT_LIGHT_SHADOW_COUNT"),a.undefine("fragment","DIRECTIONAL_LIGHT_SHADOW_COUNT"),a.undefine("fragment","AMBIENT_LIGHT_SHADOW_COUNT"),a.set("shadowEnabled",0)}}this._receivers=[],this._lightsCastShadow=[]}});Xo.VSM=1,Xo.PCF=2;var Yo=Xo,Ko=_.extend((function(){return{name:"",inputLinks:{},outputLinks:{},_prevOutputTextures:{},_outputTextures:{},_outputReferences:{},_rendering:!1,_rendered:!1,_compositor:null}}),{updateParameter:function(e,t){var n,r,i=this.outputs[e],a=i.parameters,o=i._parametersCopy;if(o||(o=i._parametersCopy={}),a)for(var s in a)"width"!==s&&"height"!==s&&(o[s]=a[s]);return n=a.width instanceof Function?a.width.call(this,t):a.width,r=a.height instanceof Function?a.height.call(this,t):a.height,o.width===n&&o.height===r||this._outputTextures[e]&&this._outputTextures[e].dispose(t.gl),o.width=n,o.height=r,o},setParameter:function(e,t){},getParameter:function(e){},setParameters:function(e){for(var t in e)this.setParameter(t,e[t])},render:function(){},getOutput:function(e,t){if(null==t)return t=e,this._outputTextures[t];var n=this.outputs[t];return n?this._rendered?n.outputLastFrame?this._prevOutputTextures[t]:this._outputTextures[t]:this._rendering?(this._prevOutputTextures[t]||(this._prevOutputTextures[t]=this._compositor.allocateTexture(n.parameters||{})),this._prevOutputTextures[t]):(this.render(e),this._outputTextures[t]):void 0},removeReference:function(e){if(this._outputReferences[e]--,0===this._outputReferences[e]){var t=this.outputs[e];t.keepLastFrame?(this._prevOutputTextures[e]&&this._compositor.releaseTexture(this._prevOutputTextures[e]),this._prevOutputTextures[e]=this._outputTextures[e]):this._compositor.releaseTexture(this._outputTextures[e])}},link:function(e,t,n){this.inputLinks[e]={node:t,pin:n},t.outputLinks[n]||(t.outputLinks[n]=[]),t.outputLinks[n].push({node:this,pin:e}),this.pass.material.enableTexture(e)},clear:function(){this.inputLinks={},this.outputLinks={}},updateReference:function(e){if(!this._rendering){for(var t in this._rendering=!0,this.inputLinks){var n=this.inputLinks[t];n.node.updateReference(n.pin)}this._rendering=!1}e&&this._outputReferences[e]++},beforeFrame:function(){for(var e in this._rendered=!1,this.outputLinks)this._outputReferences[e]=0},afterFrame:function(){for(var e in this.outputLinks)if(this._outputReferences[e]>0){var t=this.outputs[e];t.keepLastFrame?(this._prevOutputTextures[e]&&this._compositor.releaseTexture(this._prevOutputTextures[e]),this._prevOutputTextures[e]=this._outputTextures[e]):this._compositor.releaseTexture(this._outputTextures[e])}}}),qo=Ko,Zo=_.extend((function(){return{nodes:[]}}),{dirty:function(){this._dirty=!0},addNode:function(e){this.nodes.indexOf(e)>=0||(this.nodes.push(e),this._dirty=!0)},removeNode:function(e){"string"===typeof e&&(e=this.getNodeByName(e));var t=this.nodes.indexOf(e);t>=0&&(this.nodes.splice(t,1),this._dirty=!0)},getNodeByName:function(e){for(var t=0;t<this.nodes.length;t++)if(this.nodes[t].name===e)return this.nodes[t]},update:function(){for(var e=0;e<this.nodes.length;e++)this.nodes[e].clear();for(e=0;e<this.nodes.length;e++){var t=this.nodes[e];if(t.inputs)for(var n in t.inputs)if(t.inputs[n])if(!t.pass||t.pass.material.isUniformEnabled(n)){var r=t.inputs[n],i=this.findPin(r);i?t.link(n,i.node,i.pin):"string"===typeof r?console.warn("Node "+r+" not exist"):console.warn("Pin of "+r.node+"."+r.pin+" not exist")}else console.warn("Pin "+t.name+"."+n+" not used.")}},findPin:function(e){var t;if(("string"===typeof e||e instanceof qo)&&(e={node:e}),"string"===typeof e.node)for(var n=0;n<this.nodes.length;n++){var r=this.nodes[n];r.name===e.node&&(t=r)}else t=e.node;if(t){var i=e.pin;if(i||t.outputs&&(i=Object.keys(t.outputs)[0]),t.outputs[i])return{node:t,pin:i}}}}),$o=Zo,Qo=$o.extend((function(){return{_outputs:[],_texturePool:new Vo,_frameBuffer:new hr({depthBuffer:!1})}}),{addNode:function(e){$o.prototype.addNode.call(this,e),e._compositor=this},render:function(e,t){if(this._dirty){this.update(),this._dirty=!1,this._outputs.length=0;for(var n=0;n<this.nodes.length;n++)this.nodes[n].outputs||this._outputs.push(this.nodes[n])}for(n=0;n<this.nodes.length;n++)this.nodes[n].beforeFrame();for(n=0;n<this._outputs.length;n++)this._outputs[n].updateReference();for(n=0;n<this._outputs.length;n++)this._outputs[n].render(e,t);for(n=0;n<this.nodes.length;n++)this.nodes[n].afterFrame()},allocateTexture:function(e){return this._texturePool.get(e)},releaseTexture:function(e){this._texturePool.put(e)},getFrameBuffer:function(){return this._frameBuffer},dispose:function(e){this._texturePool.clear(e)}}),Jo=Qo,es=qo.extend({name:"scene",scene:null,camera:null,autoUpdateScene:!0,preZ:!1},(function(){this.frameBuffer=new hr}),{render:function(e){this._rendering=!0;var t,n=e.gl;if(this.trigger("beforerender"),this.outputs){var r=this.frameBuffer;for(var i in this.outputs){var a=this.updateParameter(i,e),o=this.outputs[i],s=this._compositor.allocateTexture(a);this._outputTextures[i]=s;var l=o.attachment||n.COLOR_ATTACHMENT0;"string"==typeof l&&(l=n[l]),r.attach(s,l)}r.bind(e);var u=e.getGLExtension("EXT_draw_buffers");if(u){var c=[];for(var l in this.outputs)l=parseInt(l),l>=n.COLOR_ATTACHMENT0&&l<=n.COLOR_ATTACHMENT0+8&&c.push(l);u.drawBuffersEXT(c)}e.saveClear(),e.clearBit=O.DEPTH_BUFFER_BIT|O.COLOR_BUFFER_BIT,t=e.render(this.scene,this.camera,!this.autoUpdateScene,this.preZ),e.restoreClear(),r.unbind(e)}else t=e.render(this.scene,this.camera,!this.autoUpdateScene,this.preZ);this.trigger("afterrender",t),this._rendering=!1,this._rendered=!0}}),ts=es,ns=qo.extend((function(){return{texture:null,outputs:{color:{}}}}),(function(){}),{getOutput:function(e,t){return this.texture},beforeFrame:function(){},afterFrame:function(){}}),rs=ns,is=qo.extend((function(){return{name:"",inputs:{},outputs:null,shader:"",inputLinks:{},outputLinks:{},pass:null,_prevOutputTextures:{},_outputTextures:{},_outputReferences:{},_rendering:!1,_rendered:!1,_compositor:null}}),(function(){var e=new pi({fragment:this.shader});this.pass=e}),{render:function(e,t){this.trigger("beforerender",e),this._rendering=!0;var n=e.gl;for(var r in this.inputLinks){var i=this.inputLinks[r],a=i.node.getOutput(e,i.pin);this.pass.setUniform(r,a)}if(this.outputs){this.pass.outputs={};var o={};for(var s in this.outputs){var l=this.updateParameter(s,e);isNaN(l.width)&&this.updateParameter(s,e);var u=this.outputs[s],c=this._compositor.allocateTexture(l);this._outputTextures[s]=c;var h=u.attachment||n.COLOR_ATTACHMENT0;"string"===typeof h&&(h=n[h]),o[h]=c}for(var h in this._compositor.getFrameBuffer().bind(e),o)this._compositor.getFrameBuffer().attach(o[h],h);this.pass.render(e),this._compositor.getFrameBuffer().updateMipmap(e)}else this.pass.outputs=null,this._compositor.getFrameBuffer().unbind(e),this.pass.render(e,t);for(var r in this.inputLinks){i=this.inputLinks[r];i.node.removeReference(i.pin)}this._rendering=!1,this._rendered=!0,this.trigger("afterrender",e)},updateParameter:function(e,t){var n,r,i=this.outputs[e],a=i.parameters,o=i._parametersCopy;if(o||(o=i._parametersCopy={}),a)for(var s in a)"width"!==s&&"height"!==s&&(o[s]=a[s]);return n="function"===typeof a.width?a.width.call(this,t):a.width,r="function"===typeof a.height?a.height.call(this,t):a.height,n=Math.ceil(n),r=Math.ceil(r),o.width===n&&o.height===r||this._outputTextures[e]&&this._outputTextures[e].dispose(t),o.width=n,o.height=r,o},setParameter:function(e,t){this.pass.setUniform(e,t)},getParameter:function(e){return this.pass.getUniform(e)},setParameters:function(e){for(var t in e)this.setParameter(t,e[t])},define:function(e,t){this.pass.material.define("fragment",e,t)},undefine:function(e){this.pass.material.undefine("fragment",e)},removeReference:function(e){if(this._outputReferences[e]--,0===this._outputReferences[e]){var t=this.outputs[e];t.keepLastFrame?(this._prevOutputTextures[e]&&this._compositor.releaseTexture(this._prevOutputTextures[e]),this._prevOutputTextures[e]=this._outputTextures[e]):this._compositor.releaseTexture(this._outputTextures[e])}},clear:function(){qo.prototype.clear.call(this),this.pass.material.disableTexturesAll()}}),as=is,os="@export clay.compositor.coloradjust\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\nuniform float brightness : 0.0;\nuniform float contrast : 1.0;\nuniform float exposure : 0.0;\nuniform float gamma : 1.0;\nuniform float saturation : 1.0;\nconst vec3 w = vec3(0.2125, 0.7154, 0.0721);\nvoid main()\n{\n vec4 tex = texture2D( texture, v_Texcoord);\n vec3 color = clamp(tex.rgb + vec3(brightness), 0.0, 1.0);\n color = clamp( (color-vec3(0.5))*contrast+vec3(0.5), 0.0, 1.0);\n color = clamp( color * pow(2.0, exposure), 0.0, 1.0);\n color = clamp( pow(color, vec3(gamma)), 0.0, 1.0);\n float luminance = dot( color, w );\n color = mix(vec3(luminance), color, saturation);\n gl_FragColor = vec4(color, tex.a);\n}\n@end\n@export clay.compositor.brightness\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\nuniform float brightness : 0.0;\nvoid main()\n{\n vec4 tex = texture2D( texture, v_Texcoord);\n vec3 color = tex.rgb + vec3(brightness);\n gl_FragColor = vec4(color, tex.a);\n}\n@end\n@export clay.compositor.contrast\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\nuniform float contrast : 1.0;\nvoid main()\n{\n vec4 tex = texture2D( texture, v_Texcoord);\n vec3 color = (tex.rgb-vec3(0.5))*contrast+vec3(0.5);\n gl_FragColor = vec4(color, tex.a);\n}\n@end\n@export clay.compositor.exposure\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\nuniform float exposure : 0.0;\nvoid main()\n{\n vec4 tex = texture2D(texture, v_Texcoord);\n vec3 color = tex.rgb * pow(2.0, exposure);\n gl_FragColor = vec4(color, tex.a);\n}\n@end\n@export clay.compositor.gamma\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\nuniform float gamma : 1.0;\nvoid main()\n{\n vec4 tex = texture2D(texture, v_Texcoord);\n vec3 color = pow(tex.rgb, vec3(gamma));\n gl_FragColor = vec4(color, tex.a);\n}\n@end\n@export clay.compositor.saturation\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\nuniform float saturation : 1.0;\nconst vec3 w = vec3(0.2125, 0.7154, 0.0721);\nvoid main()\n{\n vec4 tex = texture2D(texture, v_Texcoord);\n vec3 color = tex.rgb;\n float luminance = dot(color, w);\n color = mix(vec3(luminance), color, saturation);\n gl_FragColor = vec4(color, tex.a);\n}\n@end",ss="@export clay.compositor.kernel.gaussian_9\nfloat gaussianKernel[9];\ngaussianKernel[0] = 0.07;\ngaussianKernel[1] = 0.09;\ngaussianKernel[2] = 0.12;\ngaussianKernel[3] = 0.14;\ngaussianKernel[4] = 0.16;\ngaussianKernel[5] = 0.14;\ngaussianKernel[6] = 0.12;\ngaussianKernel[7] = 0.09;\ngaussianKernel[8] = 0.07;\n@end\n@export clay.compositor.kernel.gaussian_13\nfloat gaussianKernel[13];\ngaussianKernel[0] = 0.02;\ngaussianKernel[1] = 0.03;\ngaussianKernel[2] = 0.06;\ngaussianKernel[3] = 0.08;\ngaussianKernel[4] = 0.11;\ngaussianKernel[5] = 0.13;\ngaussianKernel[6] = 0.14;\ngaussianKernel[7] = 0.13;\ngaussianKernel[8] = 0.11;\ngaussianKernel[9] = 0.08;\ngaussianKernel[10] = 0.06;\ngaussianKernel[11] = 0.03;\ngaussianKernel[12] = 0.02;\n@end\n@export clay.compositor.gaussian_blur\n#define SHADER_NAME gaussian_blur\nuniform sampler2D texture;varying vec2 v_Texcoord;\nuniform float blurSize : 2.0;\nuniform vec2 textureSize : [512.0, 512.0];\nuniform float blurDir : 0.0;\n@import clay.util.rgbm\n@import clay.util.clamp_sample\nvoid main (void)\n{\n @import clay.compositor.kernel.gaussian_9\n vec2 off = blurSize / textureSize;\n off *= vec2(1.0 - blurDir, blurDir);\n vec4 sum = vec4(0.0);\n float weightAll = 0.0;\n for (int i = 0; i < 9; i++) {\n float w = gaussianKernel[i];\n vec4 texel = decodeHDR(clampSample(texture, v_Texcoord + float(i - 4) * off));\n sum += texel * w;\n weightAll += w;\n }\n gl_FragColor = encodeHDR(sum / max(weightAll, 0.01));\n}\n@end\n",ls="@export clay.compositor.hdr.log_lum\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\nconst vec3 w = vec3(0.2125, 0.7154, 0.0721);\n@import clay.util.rgbm\nvoid main()\n{\n vec4 tex = decodeHDR(texture2D(texture, v_Texcoord));\n float luminance = dot(tex.rgb, w);\n luminance = log(luminance + 0.001);\n gl_FragColor = encodeHDR(vec4(vec3(luminance), 1.0));\n}\n@end\n@export clay.compositor.hdr.lum_adaption\nvarying vec2 v_Texcoord;\nuniform sampler2D adaptedLum;\nuniform sampler2D currentLum;\nuniform float frameTime : 0.02;\n@import clay.util.rgbm\nvoid main()\n{\n float fAdaptedLum = decodeHDR(texture2D(adaptedLum, vec2(0.5, 0.5))).r;\n float fCurrentLum = exp(encodeHDR(texture2D(currentLum, vec2(0.5, 0.5))).r);\n fAdaptedLum += (fCurrentLum - fAdaptedLum) * (1.0 - pow(0.98, 30.0 * frameTime));\n gl_FragColor = encodeHDR(vec4(vec3(fAdaptedLum), 1.0));\n}\n@end\n@export clay.compositor.lum\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\nconst vec3 w = vec3(0.2125, 0.7154, 0.0721);\nvoid main()\n{\n vec4 tex = texture2D( texture, v_Texcoord );\n float luminance = dot(tex.rgb, w);\n gl_FragColor = vec4(vec3(luminance), 1.0);\n}\n@end",us="\n@export clay.compositor.lut\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\nuniform sampler2D lookup;\nvoid main()\n{\n vec4 tex = texture2D(texture, v_Texcoord);\n float blueColor = tex.b * 63.0;\n vec2 quad1;\n quad1.y = floor(floor(blueColor) / 8.0);\n quad1.x = floor(blueColor) - (quad1.y * 8.0);\n vec2 quad2;\n quad2.y = floor(ceil(blueColor) / 8.0);\n quad2.x = ceil(blueColor) - (quad2.y * 8.0);\n vec2 texPos1;\n texPos1.x = (quad1.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.r);\n texPos1.y = (quad1.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.g);\n vec2 texPos2;\n texPos2.x = (quad2.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.r);\n texPos2.y = (quad2.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.g);\n vec4 newColor1 = texture2D(lookup, texPos1);\n vec4 newColor2 = texture2D(lookup, texPos2);\n vec4 newColor = mix(newColor1, newColor2, fract(blueColor));\n gl_FragColor = vec4(newColor.rgb, tex.w);\n}\n@end",cs="@export clay.compositor.vignette\n#define OUTPUT_ALPHA\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\nuniform float darkness: 1;\nuniform float offset: 1;\n@import clay.util.rgbm\nvoid main()\n{\n vec4 texel = decodeHDR(texture2D(texture, v_Texcoord));\n gl_FragColor.rgb = texel.rgb;\n vec2 uv = (v_Texcoord - vec2(0.5)) * vec2(offset);\n gl_FragColor = encodeHDR(vec4(mix(texel.rgb, vec3(1.0 - darkness), dot(uv, uv)), texel.a));\n}\n@end",hs="@export clay.compositor.output\n#define OUTPUT_ALPHA\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\n@import clay.util.rgbm\nvoid main()\n{\n vec4 tex = decodeHDR(texture2D(texture, v_Texcoord));\n gl_FragColor.rgb = tex.rgb;\n#ifdef OUTPUT_ALPHA\n gl_FragColor.a = tex.a;\n#else\n gl_FragColor.a = 1.0;\n#endif\n gl_FragColor = encodeHDR(gl_FragColor);\n#ifdef PREMULTIPLY_ALPHA\n gl_FragColor.rgb *= gl_FragColor.a;\n#endif\n}\n@end",ds="@export clay.compositor.bright\nuniform sampler2D texture;\nuniform float threshold : 1;\nuniform float scale : 1.0;\nuniform vec2 textureSize: [512, 512];\nvarying vec2 v_Texcoord;\nconst vec3 lumWeight = vec3(0.2125, 0.7154, 0.0721);\n@import clay.util.rgbm\nvec4 median(vec4 a, vec4 b, vec4 c)\n{\n return a + b + c - min(min(a, b), c) - max(max(a, b), c);\n}\nvoid main()\n{\n vec4 texel = decodeHDR(texture2D(texture, v_Texcoord));\n#ifdef ANTI_FLICKER\n vec3 d = 1.0 / textureSize.xyx * vec3(1.0, 1.0, 0.0);\n vec4 s1 = decodeHDR(texture2D(texture, v_Texcoord - d.xz));\n vec4 s2 = decodeHDR(texture2D(texture, v_Texcoord + d.xz));\n vec4 s3 = decodeHDR(texture2D(texture, v_Texcoord - d.zy));\n vec4 s4 = decodeHDR(texture2D(texture, v_Texcoord + d.zy));\n texel = median(median(texel, s1, s2), s3, s4);\n#endif\n float lum = dot(texel.rgb , lumWeight);\n vec4 color;\n if (lum > threshold && texel.a > 0.0)\n {\n color = vec4(texel.rgb * scale, texel.a * scale);\n }\n else\n {\n color = vec4(0.0);\n }\n gl_FragColor = encodeHDR(color);\n}\n@end\n",fs="@export clay.compositor.downsample\nuniform sampler2D texture;\nuniform vec2 textureSize : [512, 512];\nvarying vec2 v_Texcoord;\n@import clay.util.rgbm\nfloat brightness(vec3 c)\n{\n return max(max(c.r, c.g), c.b);\n}\n@import clay.util.clamp_sample\nvoid main()\n{\n vec4 d = vec4(-1.0, -1.0, 1.0, 1.0) / textureSize.xyxy;\n#ifdef ANTI_FLICKER\n vec3 s1 = decodeHDR(clampSample(texture, v_Texcoord + d.xy)).rgb;\n vec3 s2 = decodeHDR(clampSample(texture, v_Texcoord + d.zy)).rgb;\n vec3 s3 = decodeHDR(clampSample(texture, v_Texcoord + d.xw)).rgb;\n vec3 s4 = decodeHDR(clampSample(texture, v_Texcoord + d.zw)).rgb;\n float s1w = 1.0 / (brightness(s1) + 1.0);\n float s2w = 1.0 / (brightness(s2) + 1.0);\n float s3w = 1.0 / (brightness(s3) + 1.0);\n float s4w = 1.0 / (brightness(s4) + 1.0);\n float oneDivideSum = 1.0 / (s1w + s2w + s3w + s4w);\n vec4 color = vec4(\n (s1 * s1w + s2 * s2w + s3 * s3w + s4 * s4w) * oneDivideSum,\n 1.0\n );\n#else\n vec4 color = decodeHDR(clampSample(texture, v_Texcoord + d.xy));\n color += decodeHDR(clampSample(texture, v_Texcoord + d.zy));\n color += decodeHDR(clampSample(texture, v_Texcoord + d.xw));\n color += decodeHDR(clampSample(texture, v_Texcoord + d.zw));\n color *= 0.25;\n#endif\n gl_FragColor = encodeHDR(color);\n}\n@end",ps="\n@export clay.compositor.upsample\n#define HIGH_QUALITY\nuniform sampler2D texture;\nuniform vec2 textureSize : [512, 512];\nuniform float sampleScale: 0.5;\nvarying vec2 v_Texcoord;\n@import clay.util.rgbm\n@import clay.util.clamp_sample\nvoid main()\n{\n#ifdef HIGH_QUALITY\n vec4 d = vec4(1.0, 1.0, -1.0, 0.0) / textureSize.xyxy * sampleScale;\n vec4 s;\n s = decodeHDR(clampSample(texture, v_Texcoord - d.xy));\n s += decodeHDR(clampSample(texture, v_Texcoord - d.wy)) * 2.0;\n s += decodeHDR(clampSample(texture, v_Texcoord - d.zy));\n s += decodeHDR(clampSample(texture, v_Texcoord + d.zw)) * 2.0;\n s += decodeHDR(clampSample(texture, v_Texcoord )) * 4.0;\n s += decodeHDR(clampSample(texture, v_Texcoord + d.xw)) * 2.0;\n s += decodeHDR(clampSample(texture, v_Texcoord + d.zy));\n s += decodeHDR(clampSample(texture, v_Texcoord + d.wy)) * 2.0;\n s += decodeHDR(clampSample(texture, v_Texcoord + d.xy));\n gl_FragColor = encodeHDR(s / 16.0);\n#else\n vec4 d = vec4(-1.0, -1.0, +1.0, +1.0) / textureSize.xyxy;\n vec4 s;\n s = decodeHDR(clampSample(texture, v_Texcoord + d.xy));\n s += decodeHDR(clampSample(texture, v_Texcoord + d.zy));\n s += decodeHDR(clampSample(texture, v_Texcoord + d.xw));\n s += decodeHDR(clampSample(texture, v_Texcoord + d.zw));\n gl_FragColor = encodeHDR(s / 4.0);\n#endif\n}\n@end",gs="@export clay.compositor.hdr.composite\n#define TONEMAPPING\nuniform sampler2D texture;\n#ifdef BLOOM_ENABLED\nuniform sampler2D bloom;\n#endif\n#ifdef LENSFLARE_ENABLED\nuniform sampler2D lensflare;\nuniform sampler2D lensdirt;\n#endif\n#ifdef LUM_ENABLED\nuniform sampler2D lum;\n#endif\n#ifdef LUT_ENABLED\nuniform sampler2D lut;\n#endif\n#ifdef COLOR_CORRECTION\nuniform float brightness : 0.0;\nuniform float contrast : 1.0;\nuniform float saturation : 1.0;\n#endif\n#ifdef VIGNETTE\nuniform float vignetteDarkness: 1.0;\nuniform float vignetteOffset: 1.0;\n#endif\nuniform float exposure : 1.0;\nuniform float bloomIntensity : 0.25;\nuniform float lensflareIntensity : 1;\nvarying vec2 v_Texcoord;\n@import clay.util.srgb\nvec3 ACESToneMapping(vec3 color)\n{\n const float A = 2.51;\n const float B = 0.03;\n const float C = 2.43;\n const float D = 0.59;\n const float E = 0.14;\n return (color * (A * color + B)) / (color * (C * color + D) + E);\n}\nfloat eyeAdaption(float fLum)\n{\n return mix(0.2, fLum, 0.5);\n}\n#ifdef LUT_ENABLED\nvec3 lutTransform(vec3 color) {\n float blueColor = color.b * 63.0;\n vec2 quad1;\n quad1.y = floor(floor(blueColor) / 8.0);\n quad1.x = floor(blueColor) - (quad1.y * 8.0);\n vec2 quad2;\n quad2.y = floor(ceil(blueColor) / 8.0);\n quad2.x = ceil(blueColor) - (quad2.y * 8.0);\n vec2 texPos1;\n texPos1.x = (quad1.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.r);\n texPos1.y = (quad1.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.g);\n vec2 texPos2;\n texPos2.x = (quad2.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.r);\n texPos2.y = (quad2.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.g);\n vec4 newColor1 = texture2D(lut, texPos1);\n vec4 newColor2 = texture2D(lut, texPos2);\n vec4 newColor = mix(newColor1, newColor2, fract(blueColor));\n return newColor.rgb;\n}\n#endif\n@import clay.util.rgbm\nvoid main()\n{\n vec4 texel = vec4(0.0);\n vec4 originalTexel = vec4(0.0);\n#ifdef TEXTURE_ENABLED\n texel = decodeHDR(texture2D(texture, v_Texcoord));\n originalTexel = texel;\n#endif\n#ifdef BLOOM_ENABLED\n vec4 bloomTexel = decodeHDR(texture2D(bloom, v_Texcoord));\n texel.rgb += bloomTexel.rgb * bloomIntensity;\n texel.a += bloomTexel.a * bloomIntensity;\n#endif\n#ifdef LENSFLARE_ENABLED\n texel += decodeHDR(texture2D(lensflare, v_Texcoord)) * texture2D(lensdirt, v_Texcoord) * lensflareIntensity;\n#endif\n texel.a = min(texel.a, 1.0);\n#ifdef LUM_ENABLED\n float fLum = texture2D(lum, vec2(0.5, 0.5)).r;\n float adaptedLumDest = 3.0 / (max(0.1, 1.0 + 10.0*eyeAdaption(fLum)));\n float exposureBias = adaptedLumDest * exposure;\n#else\n float exposureBias = exposure;\n#endif\n#ifdef TONEMAPPING\n texel.rgb *= exposureBias;\n texel.rgb = ACESToneMapping(texel.rgb);\n#endif\n texel = linearTosRGB(texel);\n#ifdef LUT_ENABLED\n texel.rgb = lutTransform(clamp(texel.rgb,vec3(0.0),vec3(1.0)));\n#endif\n#ifdef COLOR_CORRECTION\n texel.rgb = clamp(texel.rgb + vec3(brightness), 0.0, 1.0);\n texel.rgb = clamp((texel.rgb - vec3(0.5))*contrast+vec3(0.5), 0.0, 1.0);\n float lum = dot(texel.rgb, vec3(0.2125, 0.7154, 0.0721));\n texel.rgb = mix(vec3(lum), texel.rgb, saturation);\n#endif\n#ifdef VIGNETTE\n vec2 uv = (v_Texcoord - vec2(0.5)) * vec2(vignetteOffset);\n texel.rgb = mix(texel.rgb, vec3(1.0 - vignetteDarkness), dot(uv, uv));\n#endif\n gl_FragColor = encodeHDR(texel);\n#ifdef DEBUG\n #if DEBUG == 1\n gl_FragColor = encodeHDR(decodeHDR(texture2D(texture, v_Texcoord)));\n #elif DEBUG == 2\n gl_FragColor = encodeHDR(decodeHDR(texture2D(bloom, v_Texcoord)) * bloomIntensity);\n #elif DEBUG == 3\n gl_FragColor = encodeHDR(decodeHDR(texture2D(lensflare, v_Texcoord) * lensflareIntensity));\n #endif\n#endif\n if (originalTexel.a <= 0.01 && gl_FragColor.a > 1e-5) {\n gl_FragColor.a = dot(gl_FragColor.rgb, vec3(0.2125, 0.7154, 0.0721));\n }\n#ifdef PREMULTIPLY_ALPHA\n gl_FragColor.rgb *= gl_FragColor.a;\n#endif\n}\n@end",ms="@export clay.compositor.lensflare\n#define SAMPLE_NUMBER 8\nuniform sampler2D texture;\nuniform sampler2D lenscolor;\nuniform vec2 textureSize : [512, 512];\nuniform float dispersal : 0.3;\nuniform float haloWidth : 0.4;\nuniform float distortion : 1.0;\nvarying vec2 v_Texcoord;\n@import clay.util.rgbm\nvec4 textureDistorted(\n in vec2 texcoord,\n in vec2 direction,\n in vec3 distortion\n) {\n return vec4(\n decodeHDR(texture2D(texture, texcoord + direction * distortion.r)).r,\n decodeHDR(texture2D(texture, texcoord + direction * distortion.g)).g,\n decodeHDR(texture2D(texture, texcoord + direction * distortion.b)).b,\n 1.0\n );\n}\nvoid main()\n{\n vec2 texcoord = -v_Texcoord + vec2(1.0); vec2 textureOffset = 1.0 / textureSize;\n vec2 ghostVec = (vec2(0.5) - texcoord) * dispersal;\n vec2 haloVec = normalize(ghostVec) * haloWidth;\n vec3 distortion = vec3(-textureOffset.x * distortion, 0.0, textureOffset.x * distortion);\n vec4 result = vec4(0.0);\n for (int i = 0; i < SAMPLE_NUMBER; i++)\n {\n vec2 offset = fract(texcoord + ghostVec * float(i));\n float weight = length(vec2(0.5) - offset) / length(vec2(0.5));\n weight = pow(1.0 - weight, 10.0);\n result += textureDistorted(offset, normalize(ghostVec), distortion) * weight;\n }\n result *= texture2D(lenscolor, vec2(length(vec2(0.5) - texcoord)) / length(vec2(0.5)));\n float weight = length(vec2(0.5) - fract(texcoord + haloVec)) / length(vec2(0.5));\n weight = pow(1.0 - weight, 10.0);\n vec2 offset = fract(texcoord + haloVec);\n result += textureDistorted(offset, normalize(ghostVec), distortion) * weight;\n gl_FragColor = result;\n}\n@end",vs="@export clay.compositor.blend\n#define SHADER_NAME blend\n#ifdef TEXTURE1_ENABLED\nuniform sampler2D texture1;\nuniform float weight1 : 1.0;\n#endif\n#ifdef TEXTURE2_ENABLED\nuniform sampler2D texture2;\nuniform float weight2 : 1.0;\n#endif\n#ifdef TEXTURE3_ENABLED\nuniform sampler2D texture3;\nuniform float weight3 : 1.0;\n#endif\n#ifdef TEXTURE4_ENABLED\nuniform sampler2D texture4;\nuniform float weight4 : 1.0;\n#endif\n#ifdef TEXTURE5_ENABLED\nuniform sampler2D texture5;\nuniform float weight5 : 1.0;\n#endif\n#ifdef TEXTURE6_ENABLED\nuniform sampler2D texture6;\nuniform float weight6 : 1.0;\n#endif\nvarying vec2 v_Texcoord;\n@import clay.util.rgbm\nvoid main()\n{\n vec4 tex = vec4(0.0);\n#ifdef TEXTURE1_ENABLED\n tex += decodeHDR(texture2D(texture1, v_Texcoord)) * weight1;\n#endif\n#ifdef TEXTURE2_ENABLED\n tex += decodeHDR(texture2D(texture2, v_Texcoord)) * weight2;\n#endif\n#ifdef TEXTURE3_ENABLED\n tex += decodeHDR(texture2D(texture3, v_Texcoord)) * weight3;\n#endif\n#ifdef TEXTURE4_ENABLED\n tex += decodeHDR(texture2D(texture4, v_Texcoord)) * weight4;\n#endif\n#ifdef TEXTURE5_ENABLED\n tex += decodeHDR(texture2D(texture5, v_Texcoord)) * weight5;\n#endif\n#ifdef TEXTURE6_ENABLED\n tex += decodeHDR(texture2D(texture6, v_Texcoord)) * weight6;\n#endif\n gl_FragColor = encodeHDR(tex);\n}\n@end",ys="@export clay.compositor.fxaa\nuniform sampler2D texture;\nuniform vec4 viewport : VIEWPORT;\nvarying vec2 v_Texcoord;\n#define FXAA_REDUCE_MIN (1.0/128.0)\n#define FXAA_REDUCE_MUL (1.0/8.0)\n#define FXAA_SPAN_MAX 8.0\n@import clay.util.rgbm\nvoid main()\n{\n vec2 resolution = 1.0 / viewport.zw;\n vec3 rgbNW = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( -1.0, -1.0 ) ) * resolution ) ).xyz;\n vec3 rgbNE = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( 1.0, -1.0 ) ) * resolution ) ).xyz;\n vec3 rgbSW = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( -1.0, 1.0 ) ) * resolution ) ).xyz;\n vec3 rgbSE = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( 1.0, 1.0 ) ) * resolution ) ).xyz;\n vec4 rgbaM = decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution ) );\n vec3 rgbM = rgbaM.xyz;\n float opacity = rgbaM.w;\n vec3 luma = vec3( 0.299, 0.587, 0.114 );\n float lumaNW = dot( rgbNW, luma );\n float lumaNE = dot( rgbNE, luma );\n float lumaSW = dot( rgbSW, luma );\n float lumaSE = dot( rgbSE, luma );\n float lumaM = dot( rgbM, luma );\n float lumaMin = min( lumaM, min( min( lumaNW, lumaNE ), min( lumaSW, lumaSE ) ) );\n float lumaMax = max( lumaM, max( max( lumaNW, lumaNE) , max( lumaSW, lumaSE ) ) );\n vec2 dir;\n dir.x = -((lumaNW + lumaNE) - (lumaSW + lumaSE));\n dir.y = ((lumaNW + lumaSW) - (lumaNE + lumaSE));\n float dirReduce = max( ( lumaNW + lumaNE + lumaSW + lumaSE ) * ( 0.25 * FXAA_REDUCE_MUL ), FXAA_REDUCE_MIN );\n float rcpDirMin = 1.0 / ( min( abs( dir.x ), abs( dir.y ) ) + dirReduce );\n dir = min( vec2( FXAA_SPAN_MAX, FXAA_SPAN_MAX),\n max( vec2(-FXAA_SPAN_MAX, -FXAA_SPAN_MAX),\n dir * rcpDirMin)) * resolution;\n vec3 rgbA = decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * ( 1.0 / 3.0 - 0.5 ) ) ).xyz;\n rgbA += decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * ( 2.0 / 3.0 - 0.5 ) ) ).xyz;\n rgbA *= 0.5;\n vec3 rgbB = decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * -0.5 ) ).xyz;\n rgbB += decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * 0.5 ) ).xyz;\n rgbB *= 0.25;\n rgbB += rgbA * 0.5;\n float lumaB = dot( rgbB, luma );\n if ( ( lumaB < lumaMin ) || ( lumaB > lumaMax ) )\n {\n gl_FragColor = vec4( rgbA, opacity );\n }\n else {\n gl_FragColor = vec4( rgbB, opacity );\n }\n}\n@end";function bs(e){e["import"](os),e["import"](ss),e["import"](ls),e["import"](us),e["import"](cs),e["import"](hs),e["import"](ds),e["import"](fs),e["import"](ps),e["import"](gs),e["import"](ms),e["import"](vs),e["import"](ys)}bs(He);var _s=/^#source\((.*?)\)/;function xs(e,t){var n=new Jo;t=t||{};var r={textures:{},parameters:{}},i=function(i,a){for(var o=0;o<e.nodes.length;o++){var s=e.nodes[o],l=ws(s,r,t);l&&n.addNode(l)}};for(var a in e.parameters){var o=e.parameters[a];r.parameters[a]=Os(o)}return Ms(e,r,t,(function(e){r.textures=e,i()})),n}function ws(e,t,n){var r,i,a,o,s=e.type||"filter";if("filter"===s){var l=e.shader.trim(),u=_s.exec(l);if(u?r=He.source(u[1].trim()):"#"===l.charAt(0)&&(r=t.shaders[l.substr(1)]),r||(r=l),!r)return}if(e.inputs)for(var c in i={},e.inputs)"string"===typeof e.inputs[c]?i[c]=e.inputs[c]:i[c]={node:e.inputs[c].node,pin:e.inputs[c].pin};if(e.outputs)for(var c in a={},e.outputs){var h=e.outputs[c];a[c]={},null!=h.attachment&&(a[c].attachment=h.attachment),null!=h.keepLastFrame&&(a[c].keepLastFrame=h.keepLastFrame),null!=h.outputLastFrame&&(a[c].outputLastFrame=h.outputLastFrame),h.parameters&&(a[c].parameters=Os(h.parameters))}if(o="scene"===s?new ts({name:e.name,scene:n.scene,camera:n.camera,outputs:a}):"texture"===s?new rs({name:e.name,outputs:a}):new as({name:e.name,shader:r,inputs:i,outputs:a}),o){if(e.parameters)for(var c in e.parameters){var d=e.parameters[c];"string"===typeof d?(d=d.trim(),"#"===d.charAt(0)?d=t.textures[d.substr(1)]:o.on("beforerender",Es(c,Cs(d)))):"function"===typeof d&&o.on("beforerender",d),o.setParameter(c,d)}if(e.defines&&o.pass)for(var c in e.defines){d=e.defines[c];o.pass.material.define("fragment",c,d)}}return o}function Ss(e,t){return e}function Ts(e,t){return t}function Os(e){var t={};if(!e)return t;["type","minFilter","magFilter","wrapS","wrapT","flipY","useMipmap"].forEach((function(n){var r=e[n];null!=r&&("string"===typeof r&&(r=Kt[r]),t[n]=r)}));var n=e.scale||1;return["width","height"].forEach((function(r){if(null!=e[r]){var i=e[r];"string"===typeof i?(i=i.trim(),t[r]=As(r,Cs(i),n)):t[r]=i}})),t.width||(t.width=Ss),t.height||(t.height=Ts),null!=e.useMipmap&&(t.useMipmap=e.useMipmap),t}function Ms(e,t,n,r){if(e.textures){var i={},a=0,o=!1,s=n.textureRootPath;y.each(e.textures,(function(e,t){var n,l=e.path,u=Os(e.parameters);if(Array.isArray(l)&&6===l.length)s&&(l=l.map((function(e){return y.relative2absolute(e,s)}))),n=new $n(u);else{if("string"!==typeof l)return;s&&(l=y.relative2absolute(l,s)),n=new rn(u)}n.load(l),a++,n.once("success",(function(){i[t]=n,a--,0===a&&(r(i),o=!0)}))})),0!==a||o||r(i)}else r({})}function Es(e,t){return function(n){var r=n.getDevicePixelRatio(),i=n.getWidth(),a=n.getHeight(),o=t(i,a,r);this.setParameter(e,o)}}function As(e,t,n){return n=n||1,function(e){var r=e.getDevicePixelRatio(),i=e.getWidth()*n,a=e.getHeight()*n;return t(i,a,r)}}function Cs(e){var t=/^expr\((.*)\)$/.exec(e);if(t)try{var n=new Function("width","height","dpr","return "+t[1]);return n(1,1),n}catch(r){throw new Error("Invalid expression.")}}var Is=xs,Ds=Is;function Ls(e,t){var n=0,r=1/t,i=e;while(i>0)n+=r*(i%t),i=Math.floor(i/t),r/=t;return n}var Ps=Ls,ks="@export ecgl.ssao.estimate\n\nuniform sampler2D depthTex;\n\nuniform sampler2D normalTex;\n\nuniform sampler2D noiseTex;\n\nuniform vec2 depthTexSize;\n\nuniform vec2 noiseTexSize;\n\nuniform mat4 projection;\n\nuniform mat4 projectionInv;\n\nuniform mat4 viewInverseTranspose;\n\nuniform vec3 kernel[KERNEL_SIZE];\n\nuniform float radius : 1;\n\nuniform float power : 1;\n\nuniform float bias: 1e-2;\n\nuniform float intensity: 1.0;\n\nvarying vec2 v_Texcoord;\n\nfloat ssaoEstimator(in vec3 originPos, in mat3 kernelBasis) {\n float occlusion = 0.0;\n\n for (int i = 0; i < KERNEL_SIZE; i++) {\n vec3 samplePos = kernel[i];\n#ifdef NORMALTEX_ENABLED\n samplePos = kernelBasis * samplePos;\n#endif\n samplePos = samplePos * radius + originPos;\n\n vec4 texCoord = projection * vec4(samplePos, 1.0);\n texCoord.xy /= texCoord.w;\n\n vec4 depthTexel = texture2D(depthTex, texCoord.xy * 0.5 + 0.5);\n\n float sampleDepth = depthTexel.r * 2.0 - 1.0;\n if (projection[3][3] == 0.0) {\n sampleDepth = projection[3][2] / (sampleDepth * projection[2][3] - projection[2][2]);\n }\n else {\n sampleDepth = (sampleDepth - projection[3][2]) / projection[2][2];\n }\n \n float rangeCheck = smoothstep(0.0, 1.0, radius / abs(originPos.z - sampleDepth));\n occlusion += rangeCheck * step(samplePos.z, sampleDepth - bias);\n }\n#ifdef NORMALTEX_ENABLED\n occlusion = 1.0 - occlusion / float(KERNEL_SIZE);\n#else\n occlusion = 1.0 - clamp((occlusion / float(KERNEL_SIZE) - 0.6) * 2.5, 0.0, 1.0);\n#endif\n return pow(occlusion, power);\n}\n\nvoid main()\n{\n\n vec4 depthTexel = texture2D(depthTex, v_Texcoord);\n\n#ifdef NORMALTEX_ENABLED\n vec4 tex = texture2D(normalTex, v_Texcoord);\n if (dot(tex.rgb, tex.rgb) == 0.0) {\n gl_FragColor = vec4(1.0);\n return;\n }\n vec3 N = tex.rgb * 2.0 - 1.0;\n N = (viewInverseTranspose * vec4(N, 0.0)).xyz;\n\n vec2 noiseTexCoord = depthTexSize / vec2(noiseTexSize) * v_Texcoord;\n vec3 rvec = texture2D(noiseTex, noiseTexCoord).rgb * 2.0 - 1.0;\n vec3 T = normalize(rvec - N * dot(rvec, N));\n vec3 BT = normalize(cross(N, T));\n mat3 kernelBasis = mat3(T, BT, N);\n#else\n if (depthTexel.r > 0.99999) {\n gl_FragColor = vec4(1.0);\n return;\n }\n mat3 kernelBasis;\n#endif\n\n float z = depthTexel.r * 2.0 - 1.0;\n\n vec4 projectedPos = vec4(v_Texcoord * 2.0 - 1.0, z, 1.0);\n vec4 p4 = projectionInv * projectedPos;\n\n vec3 position = p4.xyz / p4.w;\n\n float ao = ssaoEstimator(position, kernelBasis);\n ao = clamp(1.0 - (1.0 - ao) * intensity, 0.0, 1.0);\n gl_FragColor = vec4(vec3(ao), 1.0);\n}\n\n@end\n\n\n@export ecgl.ssao.blur\n#define SHADER_NAME SSAO_BLUR\n\nuniform sampler2D ssaoTexture;\n\n#ifdef NORMALTEX_ENABLED\nuniform sampler2D normalTex;\n#endif\n\nvarying vec2 v_Texcoord;\n\nuniform vec2 textureSize;\nuniform float blurSize : 1.0;\n\nuniform int direction: 0.0;\n\n#ifdef DEPTHTEX_ENABLED\nuniform sampler2D depthTex;\nuniform mat4 projection;\nuniform float depthRange : 0.5;\n\nfloat getLinearDepth(vec2 coord)\n{\n float depth = texture2D(depthTex, coord).r * 2.0 - 1.0;\n return projection[3][2] / (depth * projection[2][3] - projection[2][2]);\n}\n#endif\n\nvoid main()\n{\n float kernel[5];\n kernel[0] = 0.122581;\n kernel[1] = 0.233062;\n kernel[2] = 0.288713;\n kernel[3] = 0.233062;\n kernel[4] = 0.122581;\n\n vec2 off = vec2(0.0);\n if (direction == 0) {\n off[0] = blurSize / textureSize.x;\n }\n else {\n off[1] = blurSize / textureSize.y;\n }\n\n vec2 coord = v_Texcoord;\n\n float sum = 0.0;\n float weightAll = 0.0;\n\n#ifdef NORMALTEX_ENABLED\n vec3 centerNormal = texture2D(normalTex, v_Texcoord).rgb * 2.0 - 1.0;\n#endif\n#if defined(DEPTHTEX_ENABLED)\n float centerDepth = getLinearDepth(v_Texcoord);\n#endif\n\n for (int i = 0; i < 5; i++) {\n vec2 coord = clamp(v_Texcoord + vec2(float(i) - 2.0) * off, vec2(0.0), vec2(1.0));\n\n float w = kernel[i];\n#ifdef NORMALTEX_ENABLED\n vec3 normal = texture2D(normalTex, coord).rgb * 2.0 - 1.0;\n w *= clamp(dot(normal, centerNormal), 0.0, 1.0);\n#endif\n#ifdef DEPTHTEX_ENABLED\n float d = getLinearDepth(coord);\n w *= (1.0 - smoothstep(abs(centerDepth - d) / depthRange, 0.0, 1.0));\n#endif\n\n weightAll += w;\n sum += texture2D(ssaoTexture, coord).r * w;\n }\n\n gl_FragColor = vec4(vec3(sum / weightAll), 1.0);\n}\n\n@end\n";function Rs(e){for(var t=new Uint8Array(e*e*4),n=0,r=new gt,i=0;i<e;i++)for(var a=0;a<e;a++)r.set(2*Math.random()-1,2*Math.random()-1,0).normalize(),t[n++]=255*(.5*r.x+.5),t[n++]=255*(.5*r.y+.5),t[n++]=0,t[n++]=255;return t}function Ns(e){return new rn({pixels:Rs(e),wrapS:Kt.REPEAT,wrapT:Kt.REPEAT,width:e,height:e})}function js(e,t,n){var r=new Float32Array(3*e);t=t||0;for(var i=0;i<e;i++){var a=Ps(i+t,2)*(n?1:2)*Math.PI,o=Ps(i+t,3)*Math.PI,s=Math.random(),l=Math.cos(a)*Math.sin(o)*s,u=Math.cos(o)*s,c=Math.sin(a)*Math.sin(o)*s;r[3*i]=l,r[3*i+1]=u,r[3*i+2]=c}return r}function Fs(e){e=e||{},this._ssaoPass=new pi({fragment:He.source("ecgl.ssao.estimate")}),this._blurPass=new pi({fragment:He.source("ecgl.ssao.blur")}),this._framebuffer=new hr({depthBuffer:!1}),this._ssaoTexture=new rn,this._blurTexture=new rn,this._blurTexture2=new rn,this._depthTex=e.depthTexture,this._normalTex=e.normalTexture,this.setNoiseSize(4),this.setKernelSize(e.kernelSize||12),null!=e.radius&&this.setParameter("radius",e.radius),null!=e.power&&this.setParameter("power",e.power),this._normalTex||(this._ssaoPass.material.disableTexture("normalTex"),this._blurPass.material.disableTexture("normalTex")),this._depthTex||this._blurPass.material.disableTexture("depthTex"),this._blurPass.material.setUniform("normalTex",this._normalTex),this._blurPass.material.setUniform("depthTex",this._depthTex)}He["import"](ks),Fs.prototype.setDepthTexture=function(e){this._depthTex=e},Fs.prototype.setNormalTexture=function(e){this._normalTex=e,this._ssaoPass.material[e?"enableTexture":"disableTexture"]("normalTex"),this.setKernelSize(this._kernelSize)},Fs.prototype.update=function(e,t,n){var r=e.getWidth(),i=e.getHeight(),a=this._ssaoPass,o=this._blurPass;a.setUniform("kernel",this._kernels[n%this._kernels.length]),a.setUniform("depthTex",this._depthTex),null!=this._normalTex&&a.setUniform("normalTex",this._normalTex),a.setUniform("depthTexSize",[this._depthTex.width,this._depthTex.height]);var s=new At;At.transpose(s,t.worldTransform),a.setUniform("projection",t.projectionMatrix.array),a.setUniform("projectionInv",t.invProjectionMatrix.array),a.setUniform("viewInverseTranspose",s.array);var l=this._ssaoTexture,u=this._blurTexture,c=this._blurTexture2;l.width=r/2,l.height=i/2,u.width=r,u.height=i,c.width=r,c.height=i,this._framebuffer.attach(l),this._framebuffer.bind(e),e.gl.clearColor(1,1,1,1),e.gl.clear(e.gl.COLOR_BUFFER_BIT),a.render(e),o.setUniform("textureSize",[r/2,i/2]),o.setUniform("projection",t.projectionMatrix.array),this._framebuffer.attach(u),o.setUniform("direction",0),o.setUniform("ssaoTexture",l),o.render(e),this._framebuffer.attach(c),o.setUniform("textureSize",[r,i]),o.setUniform("direction",1),o.setUniform("ssaoTexture",u),o.render(e),this._framebuffer.unbind(e);var h=e.clearColor;e.gl.clearColor(h[0],h[1],h[2],h[3])},Fs.prototype.getTargetTexture=function(){return this._blurTexture2},Fs.prototype.setParameter=function(e,t){"noiseTexSize"===e?this.setNoiseSize(t):"kernelSize"===e?this.setKernelSize(t):"intensity"===e?this._ssaoPass.material.set("intensity",t):this._ssaoPass.setUniform(e,t)},Fs.prototype.setKernelSize=function(e){this._kernelSize=e,this._ssaoPass.material.define("fragment","KERNEL_SIZE",e),this._kernels=this._kernels||[];for(var t=0;t<30;t++)this._kernels[t]=js(e,t*e,!!this._normalTex)},Fs.prototype.setNoiseSize=function(e){var t=this._ssaoPass.getUniform("noiseTex");t?(t.data=Rs(e),t.width=t.height=e,t.dirty()):(t=Ns(e),this._ssaoPass.setUniform("noiseTex",Ns(e))),this._ssaoPass.setUniform("noiseTexSize",[e,e])},Fs.prototype.dispose=function(e){this._blurTexture.dispose(e),this._ssaoTexture.dispose(e),this._blurTexture2.dispose(e)};var zs=Fs,Bs="@export ecgl.ssr.main\n\n#define SHADER_NAME SSR\n#define MAX_ITERATION 20;\n#define SAMPLE_PER_FRAME 5;\n#define TOTAL_SAMPLES 128;\n\nuniform sampler2D sourceTexture;\nuniform sampler2D gBufferTexture1;\nuniform sampler2D gBufferTexture2;\nuniform sampler2D gBufferTexture3;\nuniform samplerCube specularCubemap;\nuniform float specularIntensity: 1;\n\nuniform mat4 projection;\nuniform mat4 projectionInv;\nuniform mat4 toViewSpace;\nuniform mat4 toWorldSpace;\n\nuniform float maxRayDistance: 200;\n\nuniform float pixelStride: 16;\nuniform float pixelStrideZCutoff: 50; \nuniform float screenEdgeFadeStart: 0.9; \nuniform float eyeFadeStart : 0.2; uniform float eyeFadeEnd: 0.8; \nuniform float minGlossiness: 0.2; uniform float zThicknessThreshold: 1;\n\nuniform float nearZ;\nuniform vec2 viewportSize : VIEWPORT_SIZE;\n\nuniform float jitterOffset: 0;\n\nvarying vec2 v_Texcoord;\n\n#ifdef DEPTH_DECODE\n@import clay.util.decode_float\n#endif\n\n#ifdef PHYSICALLY_CORRECT\nuniform sampler2D normalDistribution;\nuniform float sampleOffset: 0;\nuniform vec2 normalDistributionSize;\n\nvec3 transformNormal(vec3 H, vec3 N) {\n vec3 upVector = N.y > 0.999 ? vec3(1.0, 0.0, 0.0) : vec3(0.0, 1.0, 0.0);\n vec3 tangentX = normalize(cross(N, upVector));\n vec3 tangentZ = cross(N, tangentX);\n return normalize(tangentX * H.x + N * H.y + tangentZ * H.z);\n}\nvec3 importanceSampleNormalGGX(float i, float roughness, vec3 N) {\n float p = fract((i + sampleOffset) / float(TOTAL_SAMPLES));\n vec3 H = texture2D(normalDistribution,vec2(roughness, p)).rgb;\n return transformNormal(H, N);\n}\nfloat G_Smith(float g, float ndv, float ndl) {\n float roughness = 1.0 - g;\n float k = roughness * roughness / 2.0;\n float G1V = ndv / (ndv * (1.0 - k) + k);\n float G1L = ndl / (ndl * (1.0 - k) + k);\n return G1L * G1V;\n}\nvec3 F_Schlick(float ndv, vec3 spec) {\n return spec + (1.0 - spec) * pow(1.0 - ndv, 5.0);\n}\n#endif\n\nfloat fetchDepth(sampler2D depthTexture, vec2 uv)\n{\n vec4 depthTexel = texture2D(depthTexture, uv);\n return depthTexel.r * 2.0 - 1.0;\n}\n\nfloat linearDepth(float depth)\n{\n if (projection[3][3] == 0.0) {\n return projection[3][2] / (depth * projection[2][3] - projection[2][2]);\n }\n else {\n return (depth - projection[3][2]) / projection[2][2];\n }\n}\n\nbool rayIntersectDepth(float rayZNear, float rayZFar, vec2 hitPixel)\n{\n if (rayZFar > rayZNear)\n {\n float t = rayZFar; rayZFar = rayZNear; rayZNear = t;\n }\n float cameraZ = linearDepth(fetchDepth(gBufferTexture2, hitPixel));\n return rayZFar <= cameraZ && rayZNear >= cameraZ - zThicknessThreshold;\n}\n\n\nbool traceScreenSpaceRay(\n vec3 rayOrigin, vec3 rayDir, float jitter,\n out vec2 hitPixel, out vec3 hitPoint, out float iterationCount\n)\n{\n float rayLength = ((rayOrigin.z + rayDir.z * maxRayDistance) > -nearZ)\n ? (-nearZ - rayOrigin.z) / rayDir.z : maxRayDistance;\n\n vec3 rayEnd = rayOrigin + rayDir * rayLength;\n\n vec4 H0 = projection * vec4(rayOrigin, 1.0);\n vec4 H1 = projection * vec4(rayEnd, 1.0);\n\n float k0 = 1.0 / H0.w, k1 = 1.0 / H1.w;\n\n vec3 Q0 = rayOrigin * k0, Q1 = rayEnd * k1;\n\n vec2 P0 = (H0.xy * k0 * 0.5 + 0.5) * viewportSize;\n vec2 P1 = (H1.xy * k1 * 0.5 + 0.5) * viewportSize;\n\n P1 += dot(P1 - P0, P1 - P0) < 0.0001 ? 0.01 : 0.0;\n vec2 delta = P1 - P0;\n\n bool permute = false;\n if (abs(delta.x) < abs(delta.y)) {\n permute = true;\n delta = delta.yx;\n P0 = P0.yx;\n P1 = P1.yx;\n }\n float stepDir = sign(delta.x);\n float invdx = stepDir / delta.x;\n\n vec3 dQ = (Q1 - Q0) * invdx;\n float dk = (k1 - k0) * invdx;\n\n vec2 dP = vec2(stepDir, delta.y * invdx);\n\n float strideScaler = 1.0 - min(1.0, -rayOrigin.z / pixelStrideZCutoff);\n float pixStride = 1.0 + strideScaler * pixelStride;\n\n dP *= pixStride; dQ *= pixStride; dk *= pixStride;\n\n vec4 pqk = vec4(P0, Q0.z, k0);\n vec4 dPQK = vec4(dP, dQ.z, dk);\n\n pqk += dPQK * jitter;\n float rayZFar = (dPQK.z * 0.5 + pqk.z) / (dPQK.w * 0.5 + pqk.w);\n float rayZNear;\n\n bool intersect = false;\n\n vec2 texelSize = 1.0 / viewportSize;\n\n iterationCount = 0.0;\n\n for (int i = 0; i < MAX_ITERATION; i++)\n {\n pqk += dPQK;\n\n rayZNear = rayZFar;\n rayZFar = (dPQK.z * 0.5 + pqk.z) / (dPQK.w * 0.5 + pqk.w);\n\n hitPixel = permute ? pqk.yx : pqk.xy;\n hitPixel *= texelSize;\n\n intersect = rayIntersectDepth(rayZNear, rayZFar, hitPixel);\n\n iterationCount += 1.0;\n\n dPQK *= 1.2;\n\n if (intersect) {\n break;\n }\n }\n\n Q0.xy += dQ.xy * iterationCount;\n Q0.z = pqk.z;\n hitPoint = Q0 / pqk.w;\n\n return intersect;\n}\n\nfloat calculateAlpha(\n float iterationCount, float reflectivity,\n vec2 hitPixel, vec3 hitPoint, float dist, vec3 rayDir\n)\n{\n float alpha = clamp(reflectivity, 0.0, 1.0);\n alpha *= 1.0 - (iterationCount / float(MAX_ITERATION));\n vec2 hitPixelNDC = hitPixel * 2.0 - 1.0;\n float maxDimension = min(1.0, max(abs(hitPixelNDC.x), abs(hitPixelNDC.y)));\n alpha *= 1.0 - max(0.0, maxDimension - screenEdgeFadeStart) / (1.0 - screenEdgeFadeStart);\n\n float _eyeFadeStart = eyeFadeStart;\n float _eyeFadeEnd = eyeFadeEnd;\n if (_eyeFadeStart > _eyeFadeEnd) {\n float tmp = _eyeFadeEnd;\n _eyeFadeEnd = _eyeFadeStart;\n _eyeFadeStart = tmp;\n }\n\n float eyeDir = clamp(rayDir.z, _eyeFadeStart, _eyeFadeEnd);\n alpha *= 1.0 - (eyeDir - _eyeFadeStart) / (_eyeFadeEnd - _eyeFadeStart);\n\n alpha *= 1.0 - clamp(dist / maxRayDistance, 0.0, 1.0);\n\n return alpha;\n}\n\n@import clay.util.rand\n\n@import clay.util.rgbm\n\nvoid main()\n{\n vec4 normalAndGloss = texture2D(gBufferTexture1, v_Texcoord);\n\n if (dot(normalAndGloss.rgb, vec3(1.0)) == 0.0) {\n discard;\n }\n\n float g = normalAndGloss.a;\n#if !defined(PHYSICALLY_CORRECT)\n if (g <= minGlossiness) {\n discard;\n }\n#endif\n\n float reflectivity = (g - minGlossiness) / (1.0 - minGlossiness);\n\n vec3 N = normalize(normalAndGloss.rgb * 2.0 - 1.0);\n N = normalize((toViewSpace * vec4(N, 0.0)).xyz);\n\n vec4 projectedPos = vec4(v_Texcoord * 2.0 - 1.0, fetchDepth(gBufferTexture2, v_Texcoord), 1.0);\n vec4 pos = projectionInv * projectedPos;\n vec3 rayOrigin = pos.xyz / pos.w;\n vec3 V = -normalize(rayOrigin);\n\n float ndv = clamp(dot(N, V), 0.0, 1.0);\n float iterationCount;\n float jitter = rand(fract(v_Texcoord + jitterOffset));\n\n#ifdef PHYSICALLY_CORRECT\n vec4 color = vec4(vec3(0.0), 1.0);\n vec4 albedoMetalness = texture2D(gBufferTexture3, v_Texcoord);\n vec3 albedo = albedoMetalness.rgb;\n float m = albedoMetalness.a;\n vec3 diffuseColor = albedo * (1.0 - m);\n vec3 spec = mix(vec3(0.04), albedo, m);\n\n float jitter2 = rand(fract(v_Texcoord)) * float(TOTAL_SAMPLES);\n\n for (int i = 0; i < SAMPLE_PER_FRAME; i++) {\n vec3 H = importanceSampleNormalGGX(float(i) + jitter2, 1.0 - g, N);\n vec3 rayDir = normalize(reflect(-V, H));\n#else\n vec3 rayDir = normalize(reflect(-V, N));\n#endif\n vec2 hitPixel;\n vec3 hitPoint;\n\n bool intersect = traceScreenSpaceRay(rayOrigin, rayDir, jitter, hitPixel, hitPoint, iterationCount);\n\n float dist = distance(rayOrigin, hitPoint);\n\n vec3 hitNormal = texture2D(gBufferTexture1, hitPixel).rgb * 2.0 - 1.0;\n hitNormal = normalize((toViewSpace * vec4(hitNormal, 0.0)).xyz);\n#ifdef PHYSICALLY_CORRECT\n float ndl = clamp(dot(N, rayDir), 0.0, 1.0);\n float vdh = clamp(dot(V, H), 0.0, 1.0);\n float ndh = clamp(dot(N, H), 0.0, 1.0);\n vec3 litTexel = vec3(0.0);\n if (dot(hitNormal, rayDir) < 0.0 && intersect) {\n litTexel = texture2D(sourceTexture, hitPixel).rgb;\n litTexel *= pow(clamp(1.0 - dist / 200.0, 0.0, 1.0), 3.0);\n\n }\n else {\n #ifdef SPECULARCUBEMAP_ENABLED\n vec3 rayDirW = normalize(toWorldSpace * vec4(rayDir, 0.0)).rgb;\n litTexel = RGBMDecode(textureCubeLodEXT(specularCubemap, rayDirW, 0.0), 8.12).rgb * specularIntensity;\n#endif\n }\n color.rgb += ndl * litTexel * (\n F_Schlick(ndl, spec) * G_Smith(g, ndv, ndl) * vdh / (ndh * ndv + 0.001)\n );\n }\n color.rgb /= float(SAMPLE_PER_FRAME);\n#else\n #if !defined(SPECULARCUBEMAP_ENABLED)\n if (dot(hitNormal, rayDir) >= 0.0) {\n discard;\n }\n if (!intersect) {\n discard;\n }\n#endif\n float alpha = clamp(calculateAlpha(iterationCount, reflectivity, hitPixel, hitPoint, dist, rayDir), 0.0, 1.0);\n vec4 color = texture2D(sourceTexture, hitPixel);\n color.rgb *= alpha;\n\n#ifdef SPECULARCUBEMAP_ENABLED\n vec3 rayDirW = normalize(toWorldSpace * vec4(rayDir, 0.0)).rgb;\n alpha = alpha * (intersect ? 1.0 : 0.0);\n float bias = (1.0 -g) * 5.0;\n color.rgb += (1.0 - alpha)\n * RGBMDecode(textureCubeLodEXT(specularCubemap, rayDirW, bias), 8.12).rgb\n * specularIntensity;\n#endif\n\n#endif\n\n gl_FragColor = encodeHDR(color);\n}\n@end\n\n@export ecgl.ssr.blur\n\nuniform sampler2D texture;\nuniform sampler2D gBufferTexture1;\nuniform sampler2D gBufferTexture2;\nuniform mat4 projection;\nuniform float depthRange : 0.05;\n\nvarying vec2 v_Texcoord;\n\nuniform vec2 textureSize;\nuniform float blurSize : 1.0;\n\n#ifdef BLEND\n #ifdef SSAOTEX_ENABLED\nuniform sampler2D ssaoTex;\n #endif\nuniform sampler2D sourceTexture;\n#endif\n\nfloat getLinearDepth(vec2 coord)\n{\n float depth = texture2D(gBufferTexture2, coord).r * 2.0 - 1.0;\n return projection[3][2] / (depth * projection[2][3] - projection[2][2]);\n}\n\n@import clay.util.rgbm\n\n\nvoid main()\n{\n @import clay.compositor.kernel.gaussian_9\n\n vec4 centerNTexel = texture2D(gBufferTexture1, v_Texcoord);\n float g = centerNTexel.a;\n float maxBlurSize = clamp(1.0 - g, 0.0, 1.0) * blurSize;\n#ifdef VERTICAL\n vec2 off = vec2(0.0, maxBlurSize / textureSize.y);\n#else\n vec2 off = vec2(maxBlurSize / textureSize.x, 0.0);\n#endif\n\n vec2 coord = v_Texcoord;\n\n vec4 sum = vec4(0.0);\n float weightAll = 0.0;\n\n vec3 cN = centerNTexel.rgb * 2.0 - 1.0;\n float cD = getLinearDepth(v_Texcoord);\n for (int i = 0; i < 9; i++) {\n vec2 coord = clamp((float(i) - 4.0) * off + v_Texcoord, vec2(0.0), vec2(1.0));\n float w = gaussianKernel[i]\n * clamp(dot(cN, texture2D(gBufferTexture1, coord).rgb * 2.0 - 1.0), 0.0, 1.0);\n float d = getLinearDepth(coord);\n w *= (1.0 - smoothstep(abs(cD - d) / depthRange, 0.0, 1.0));\n\n weightAll += w;\n sum += decodeHDR(texture2D(texture, coord)) * w;\n }\n\n#ifdef BLEND\n float aoFactor = 1.0;\n #ifdef SSAOTEX_ENABLED\n aoFactor = texture2D(ssaoTex, v_Texcoord).r;\n #endif\n gl_FragColor = encodeHDR(\n sum / weightAll * aoFactor + decodeHDR(texture2D(sourceTexture, v_Texcoord))\n );\n#else\n gl_FragColor = encodeHDR(sum / weightAll);\n#endif\n}\n\n@end";function Vs(e){e=e||{},this._ssrPass=new pi({fragment:He.source("ecgl.ssr.main"),clearColor:[0,0,0,0]}),this._blurPass1=new pi({fragment:He.source("ecgl.ssr.blur"),clearColor:[0,0,0,0]}),this._blurPass2=new pi({fragment:He.source("ecgl.ssr.blur"),clearColor:[0,0,0,0]}),this._blendPass=new pi({fragment:He.source("clay.compositor.blend")}),this._blendPass.material.disableTexturesAll(),this._blendPass.material.enableTexture(["texture1","texture2"]),this._ssrPass.setUniform("gBufferTexture1",e.normalTexture),this._ssrPass.setUniform("gBufferTexture2",e.depthTexture),this._blurPass1.setUniform("gBufferTexture1",e.normalTexture),this._blurPass1.setUniform("gBufferTexture2",e.depthTexture),this._blurPass2.setUniform("gBufferTexture1",e.normalTexture),this._blurPass2.setUniform("gBufferTexture2",e.depthTexture),this._blurPass2.material.define("fragment","VERTICAL"),this._blurPass2.material.define("fragment","BLEND"),this._ssrTexture=new rn({type:Kt.HALF_FLOAT}),this._texture2=new rn({type:Kt.HALF_FLOAT}),this._texture3=new rn({type:Kt.HALF_FLOAT}),this._prevTexture=new rn({type:Kt.HALF_FLOAT}),this._currentTexture=new rn({type:Kt.HALF_FLOAT}),this._frameBuffer=new hr({depthBuffer:!1}),this._normalDistribution=null,this._totalSamples=256,this._samplePerFrame=4,this._ssrPass.material.define("fragment","SAMPLE_PER_FRAME",this._samplePerFrame),this._ssrPass.material.define("fragment","TOTAL_SAMPLES",this._totalSamples),this._downScale=1}He["import"](Bs),Vs.prototype.setAmbientCubemap=function(e,t){this._ssrPass.material.set("specularCubemap",e),this._ssrPass.material.set("specularIntensity",t);var n=e&&t;this._ssrPass.material[n?"enableTexture":"disableTexture"]("specularCubemap")},Vs.prototype.update=function(e,t,n,r){var i=e.getWidth(),a=e.getHeight(),o=this._ssrTexture,s=this._texture2,l=this._texture3;o.width=this._prevTexture.width=this._currentTexture.width=i/this._downScale,o.height=this._prevTexture.height=this._currentTexture.height=a/this._downScale,s.width=l.width=i,s.height=l.height=a;var u=this._frameBuffer,c=this._ssrPass,h=this._blurPass1,d=this._blurPass2,f=this._blendPass,p=new At,g=new At;At.transpose(p,t.worldTransform),At.transpose(g,t.viewMatrix),c.setUniform("sourceTexture",n),c.setUniform("projection",t.projectionMatrix.array),c.setUniform("projectionInv",t.invProjectionMatrix.array),c.setUniform("toViewSpace",p.array),c.setUniform("toWorldSpace",g.array),c.setUniform("nearZ",t.near);var m=r/this._totalSamples*this._samplePerFrame;if(c.setUniform("jitterOffset",m),c.setUniform("sampleOffset",r*this._samplePerFrame),h.setUniform("textureSize",[o.width,o.height]),d.setUniform("textureSize",[i,a]),d.setUniform("sourceTexture",n),h.setUniform("projection",t.projectionMatrix.array),d.setUniform("projection",t.projectionMatrix.array),u.attach(o),u.bind(e),c.render(e),this._physicallyCorrect&&(u.attach(this._currentTexture),f.setUniform("texture1",this._prevTexture),f.setUniform("texture2",o),f.material.set({weight1:r>=1?.95:0,weight2:r>=1?.05:1}),f.render(e)),u.attach(s),h.setUniform("texture",this._physicallyCorrect?this._currentTexture:o),h.render(e),u.attach(l),d.setUniform("texture",s),d.render(e),u.unbind(e),this._physicallyCorrect){var v=this._prevTexture;this._prevTexture=this._currentTexture,this._currentTexture=v}},Vs.prototype.getTargetTexture=function(){return this._texture3},Vs.prototype.setParameter=function(e,t){"maxIteration"===e?this._ssrPass.material.define("fragment","MAX_ITERATION",t):this._ssrPass.setUniform(e,t)},Vs.prototype.setPhysicallyCorrect=function(e){e?(this._normalDistribution||(this._normalDistribution=bi.generateNormalDistribution(64,this._totalSamples)),this._ssrPass.material.define("fragment","PHYSICALLY_CORRECT"),this._ssrPass.material.set("normalDistribution",this._normalDistribution),this._ssrPass.material.set("normalDistributionSize",[64,this._totalSamples])):this._ssrPass.material.undefine("fragment","PHYSICALLY_CORRECT"),this._physicallyCorrect=e},Vs.prototype.setSSAOTexture=function(e){var t=this._blurPass2;e?(t.material.enableTexture("ssaoTex"),t.material.set("ssaoTex",e)):t.material.disableTexture("ssaoTex")},Vs.prototype.isFinished=function(e){return!this._physicallyCorrect||e>this._totalSamples/this._samplePerFrame},Vs.prototype.dispose=function(e){this._ssrTexture.dispose(e),this._texture2.dispose(e),this._texture3.dispose(e),this._prevTexture.dispose(e),this._currentTexture.dispose(e),this._frameBuffer.dispose(e)};var Gs=Vs,Hs=[0,0,-.321585265978,-.154972575841,.458126042375,.188473391593,.842080129861,.527766490688,.147304551086,-.659453822776,-.331943915203,-.940619700594,.0479226680259,.54812163202,.701581552186,-.709825561388,-.295436780218,.940589268233,-.901489676764,.237713156085,.973570876096,-.109899459384,-.866792314779,-.451805525005,.330975007087,.800048655954,-.344275183665,.381779221166,-.386139432542,-.437418421534,-.576478634965,-.0148463392551,.385798197415,-.262426961053,-.666302061145,.682427250835,-.628010632582,-.732836215494,.10163141741,-.987658134403,.711995289051,-.320024291314,.0296005138058,.950296523438,.0130612307608,-.351024443122,-.879596633704,-.10478487883,.435712737232,.504254490347,.779203817497,.206477676721,.388264289969,-.896736162545,-.153106280781,-.629203242522,-.245517550697,.657969239148,.126830499058,.26862328493,-.634888119007,-.302301223431,.617074219636,.779817204925],Us="@export ecgl.normal.vertex\n\n@import ecgl.common.transformUniforms\n\n@import ecgl.common.uv.header\n\n@import ecgl.common.attributes\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\n@import ecgl.common.normalMap.vertexHeader\n\n@import ecgl.common.vertexAnimation.header\n\nvoid main()\n{\n\n @import ecgl.common.vertexAnimation.main\n\n @import ecgl.common.uv.main\n\n v_Normal = normalize((worldInverseTranspose * vec4(normal, 0.0)).xyz);\n v_WorldPosition = (world * vec4(pos, 1.0)).xyz;\n\n @import ecgl.common.normalMap.vertexMain\n\n gl_Position = worldViewProjection * vec4(pos, 1.0);\n\n}\n\n\n@end\n\n\n@export ecgl.normal.fragment\n\n#define ROUGHNESS_CHANEL 0\n\nuniform bool useBumpMap;\nuniform bool useRoughnessMap;\nuniform bool doubleSide;\nuniform float roughness;\n\n@import ecgl.common.uv.fragmentHeader\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\nuniform mat4 viewInverse : VIEWINVERSE;\n\n@import ecgl.common.normalMap.fragmentHeader\n@import ecgl.common.bumpMap.header\n\nuniform sampler2D roughnessMap;\n\nvoid main()\n{\n vec3 N = v_Normal;\n \n bool flipNormal = false;\n if (doubleSide) {\n vec3 eyePos = viewInverse[3].xyz;\n vec3 V = normalize(eyePos - v_WorldPosition);\n\n if (dot(N, V) < 0.0) {\n flipNormal = true;\n }\n }\n\n @import ecgl.common.normalMap.fragmentMain\n\n if (useBumpMap) {\n N = bumpNormal(v_WorldPosition, v_Normal, N);\n }\n\n float g = 1.0 - roughness;\n\n if (useRoughnessMap) {\n float g2 = 1.0 - texture2D(roughnessMap, v_DetailTexcoord)[ROUGHNESS_CHANEL];\n g = clamp(g2 + (g - 0.5) * 2.0, 0.0, 1.0);\n }\n\n if (flipNormal) {\n N = -N;\n }\n\n gl_FragColor.rgb = (N.xyz + 1.0) * 0.5;\n gl_FragColor.a = g;\n}\n@end";function Ws(e,t,n,r,i){var a=e.gl;t.setUniform(a,"1i",n,i),a.activeTexture(a.TEXTURE0+i),r.isRenderable()?r.bind(e):r.unbind(e)}function Xs(e,t,n,r,i){var a,o,s,l,u=e.gl;return function(i,c,h){if(!l||l.material!==i.material){var d=i.material,f=i.__program,p=d.get("roughness");null==p&&(p=1);var g=d.get("normalMap")||t,m=d.get("roughnessMap"),v=d.get("bumpMap"),y=d.get("uvRepeat"),b=d.get("uvOffset"),_=d.get("detailUvRepeat"),x=d.get("detailUvOffset"),w=!!v&&d.isTextureEnabled("bumpMap"),S=!!m&&d.isTextureEnabled("roughnessMap"),T=d.isDefined("fragment","DOUBLE_SIDED");v=v||n,m=m||r,h!==c?(c.set("normalMap",g),c.set("bumpMap",v),c.set("roughnessMap",m),c.set("useBumpMap",w),c.set("useRoughnessMap",S),c.set("doubleSide",T),null!=y&&c.set("uvRepeat",y),null!=b&&c.set("uvOffset",b),null!=_&&c.set("detailUvRepeat",_),null!=x&&c.set("detailUvOffset",x),c.set("roughness",p)):(f.setUniform(u,"1f","roughness",p),a!==g&&Ws(e,f,"normalMap",g,0),o!==v&&v&&Ws(e,f,"bumpMap",v,1),s!==m&&m&&Ws(e,f,"roughnessMap",m,2),null!=y&&f.setUniform(u,"2f","uvRepeat",y),null!=b&&f.setUniform(u,"2f","uvOffset",b),null!=_&&f.setUniform(u,"2f","detailUvRepeat",_),null!=x&&f.setUniform(u,"2f","detailUvOffset",x),f.setUniform(u,"1i","useBumpMap",+w),f.setUniform(u,"1i","useRoughnessMap",+S),f.setUniform(u,"1i","doubleSide",+T)),a=g,o=v,s=m,l=i}}}function Ys(e){e=e||{},this._depthTex=new rn({format:Kt.DEPTH_COMPONENT,type:Kt.UNSIGNED_INT}),this._normalTex=new rn({type:Kt.HALF_FLOAT}),this._framebuffer=new hr,this._framebuffer.attach(this._normalTex),this._framebuffer.attach(this._depthTex,hr.DEPTH_ATTACHMENT),this._normalMaterial=new J({shader:new He(He.source("ecgl.normal.vertex"),He.source("ecgl.normal.fragment"))}),this._normalMaterial.enableTexture(["normalMap","bumpMap","roughnessMap"]),this._defaultNormalMap=ni.createBlank("#000"),this._defaultBumpMap=ni.createBlank("#000"),this._defaultRoughessMap=ni.createBlank("#000"),this._debugPass=new pi({fragment:He.source("clay.compositor.output")}),this._debugPass.setUniform("texture",this._normalTex),this._debugPass.material.undefine("fragment","OUTPUT_ALPHA")}He["import"](Us),Ys.prototype.getDepthTexture=function(){return this._depthTex},Ys.prototype.getNormalTexture=function(){return this._normalTex},Ys.prototype.update=function(e,t,n){var r=e.getWidth(),i=e.getHeight(),a=this._depthTex,o=this._normalTex,s=this._normalMaterial;a.width=r,a.height=i,o.width=r,o.height=i;var l=t.getRenderList(n).opaque;this._framebuffer.bind(e),e.gl.clearColor(0,0,0,0),e.gl.clear(e.gl.COLOR_BUFFER_BIT|e.gl.DEPTH_BUFFER_BIT),e.gl.disable(e.gl.BLEND),e.renderPass(l,n,{getMaterial:function(){return s},ifRender:function(e){return e.renderNormal},beforeRender:Xs(e,this._defaultNormalMap,this._defaultBumpMap,this._defaultRoughessMap,this._normalMaterial),sort:e.opaqueSortCompare}),this._framebuffer.unbind(e)},Ys.prototype.renderDebug=function(e){this._debugPass.render(e)},Ys.prototype.dispose=function(e){this._depthTex.dispose(e),this._normalTex.dispose(e)};var Ks=Ys;function qs(e){e=e||{},this._edgePass=new pi({fragment:He.source("ecgl.edge")}),this._edgePass.setUniform("normalTexture",e.normalTexture),this._edgePass.setUniform("depthTexture",e.depthTexture),this._targetTexture=new rn({type:Kt.HALF_FLOAT}),this._frameBuffer=new hr,this._frameBuffer.attach(this._targetTexture)}qs.prototype.update=function(e,t,n,r){var i=e.getWidth(),a=e.getHeight(),o=this._targetTexture;o.width=i,o.height=a;var s=this._frameBuffer;s.bind(e),this._edgePass.setUniform("projectionInv",t.invProjectionMatrix.array),this._edgePass.setUniform("textureSize",[i,a]),this._edgePass.setUniform("texture",n),this._edgePass.render(e),s.unbind(e)},qs.prototype.getTargetTexture=function(){return this._targetTexture},qs.prototype.setParameter=function(e,t){this._edgePass.setUniform(e,t)},qs.prototype.dispose=function(e){this._targetTexture.dispose(e),this._frameBuffer.dispose(e)};var Zs=qs,$s={type:"compositor",nodes:[{name:"source",type:"texture",outputs:{color:{}}},{name:"source_half",shader:"#source(clay.compositor.downsample)",inputs:{texture:"source"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"}},{name:"bright",shader:"#source(clay.compositor.bright)",inputs:{texture:"source_half"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{threshold:2,scale:4,textureSize:"expr([width * 1.0 / 2, height / 2])"}},{name:"bright_downsample_4",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 2, height / 2] )"}},{name:"bright_downsample_8",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright_downsample_4"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 4, height / 4] )"}},{name:"bright_downsample_16",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright_downsample_8"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 16)",height:"expr(height * 1.0 / 16)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 8, height / 8] )"}},{name:"bright_downsample_32",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright_downsample_16"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 32)",height:"expr(height * 1.0 / 32)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 16, height / 16] )"}},{name:"bright_upsample_16_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_32"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 16)",height:"expr(height * 1.0 / 16)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 32, height / 32] )"}},{name:"bright_upsample_16_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_16_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 16)",height:"expr(height * 1.0 / 16)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 16, height * 1.0 / 16] )"}},{name:"bright_upsample_8_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_16"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 16, height * 1.0 / 16] )"}},{name:"bright_upsample_8_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_8_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 8, height * 1.0 / 8] )"}},{name:"bright_upsample_8_blend",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_8_blur_v",texture2:"bright_upsample_16_blur_v"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"bright_upsample_4_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_8"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 8, height * 1.0 / 8] )"}},{name:"bright_upsample_4_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_4_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 4, height * 1.0 / 4] )"}},{name:"bright_upsample_4_blend",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_4_blur_v",texture2:"bright_upsample_8_blend"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"bright_upsample_2_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_4"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 4, height * 1.0 / 4] )"}},{name:"bright_upsample_2_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_2_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 2, height * 1.0 / 2] )"}},{name:"bright_upsample_2_blend",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_2_blur_v",texture2:"bright_upsample_4_blend"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"bright_upsample_full_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 2, height * 1.0 / 2] )"}},{name:"bright_upsample_full_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_full_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0, height * 1.0] )"}},{name:"bloom_composite",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_full_blur_v",texture2:"bright_upsample_2_blend"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"coc",shader:"#source(ecgl.dof.coc)",outputs:{color:{parameters:{minFilter:"NEAREST",magFilter:"NEAREST",width:"expr(width * 1.0)",height:"expr(height * 1.0)"}}},parameters:{focalDist:50,focalRange:30}},{name:"dof_far_blur",shader:"#source(ecgl.dof.diskBlur)",inputs:{texture:"source",coc:"coc"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"}},{name:"dof_near_blur",shader:"#source(ecgl.dof.diskBlur)",inputs:{texture:"source",coc:"coc"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"},defines:{BLUR_NEARFIELD:null}},{name:"dof_coc_blur",shader:"#source(ecgl.dof.diskBlur)",inputs:{texture:"coc"},outputs:{color:{parameters:{minFilter:"NEAREST",magFilter:"NEAREST",width:"expr(width * 1.0)",height:"expr(height * 1.0)"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"},defines:{BLUR_COC:null}},{name:"dof_composite",shader:"#source(ecgl.dof.composite)",inputs:{original:"source",blurred:"dof_far_blur",nearfield:"dof_near_blur",coc:"coc",nearcoc:"dof_coc_blur"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}}},{name:"composite",shader:"#source(clay.compositor.hdr.composite)",inputs:{texture:"source",bloom:"bloom_composite"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)"}}},defines:{}},{name:"FXAA",shader:"#source(clay.compositor.fxaa)",inputs:{texture:"composite"}}]},Qs="@export ecgl.dof.coc\n\nuniform sampler2D depth;\n\nuniform float zNear: 0.1;\nuniform float zFar: 2000;\n\nuniform float focalDistance: 3;\nuniform float focalRange: 1;\nuniform float focalLength: 30;\nuniform float fstop: 2.8;\n\nvarying vec2 v_Texcoord;\n\n@import clay.util.encode_float\n\nvoid main()\n{\n float z = texture2D(depth, v_Texcoord).r * 2.0 - 1.0;\n\n float dist = 2.0 * zNear * zFar / (zFar + zNear - z * (zFar - zNear));\n\n float aperture = focalLength / fstop;\n\n float coc;\n\n float uppper = focalDistance + focalRange;\n float lower = focalDistance - focalRange;\n if (dist <= uppper && dist >= lower) {\n coc = 0.5;\n }\n else {\n float focalAdjusted = dist > uppper ? uppper : lower;\n\n coc = abs(aperture * (focalLength * (dist - focalAdjusted)) / (dist * (focalAdjusted - focalLength)));\n coc = clamp(coc, 0.0, 2.0) / 2.00001;\n\n if (dist < lower) {\n coc = -coc;\n }\n coc = coc * 0.5 + 0.5;\n }\n\n gl_FragColor = encodeFloat(coc);\n}\n@end\n\n\n@export ecgl.dof.composite\n\n#define DEBUG 0\n\nuniform sampler2D original;\nuniform sampler2D blurred;\nuniform sampler2D nearfield;\nuniform sampler2D coc;\nuniform sampler2D nearcoc;\nvarying vec2 v_Texcoord;\n\n@import clay.util.rgbm\n@import clay.util.float\n\nvoid main()\n{\n vec4 blurredColor = texture2D(blurred, v_Texcoord);\n vec4 originalColor = texture2D(original, v_Texcoord);\n\n float fCoc = decodeFloat(texture2D(coc, v_Texcoord));\n\n fCoc = abs(fCoc * 2.0 - 1.0);\n\n float weight = smoothstep(0.0, 1.0, fCoc);\n \n#ifdef NEARFIELD_ENABLED\n vec4 nearfieldColor = texture2D(nearfield, v_Texcoord);\n float fNearCoc = decodeFloat(texture2D(nearcoc, v_Texcoord));\n fNearCoc = abs(fNearCoc * 2.0 - 1.0);\n\n gl_FragColor = encodeHDR(\n mix(\n nearfieldColor, mix(originalColor, blurredColor, weight),\n pow(1.0 - fNearCoc, 4.0)\n )\n );\n#else\n gl_FragColor = encodeHDR(mix(originalColor, blurredColor, weight));\n#endif\n\n}\n\n@end\n\n\n\n@export ecgl.dof.diskBlur\n\n#define POISSON_KERNEL_SIZE 16;\n\nuniform sampler2D texture;\nuniform sampler2D coc;\nvarying vec2 v_Texcoord;\n\nuniform float blurRadius : 10.0;\nuniform vec2 textureSize : [512.0, 512.0];\n\nuniform vec2 poissonKernel[POISSON_KERNEL_SIZE];\n\nuniform float percent;\n\nfloat nrand(const in vec2 n) {\n return fract(sin(dot(n.xy ,vec2(12.9898,78.233))) * 43758.5453);\n}\n\n@import clay.util.rgbm\n@import clay.util.float\n\n\nvoid main()\n{\n vec2 offset = blurRadius / textureSize;\n\n float rnd = 6.28318 * nrand(v_Texcoord + 0.07 * percent );\n float cosa = cos(rnd);\n float sina = sin(rnd);\n vec4 basis = vec4(cosa, -sina, sina, cosa);\n\n#if !defined(BLUR_NEARFIELD) && !defined(BLUR_COC)\n offset *= abs(decodeFloat(texture2D(coc, v_Texcoord)) * 2.0 - 1.0);\n#endif\n\n#ifdef BLUR_COC\n float cocSum = 0.0;\n#else\n vec4 color = vec4(0.0);\n#endif\n\n\n float weightSum = 0.0;\n\n for (int i = 0; i < POISSON_KERNEL_SIZE; i++) {\n vec2 ofs = poissonKernel[i];\n\n ofs = vec2(dot(ofs, basis.xy), dot(ofs, basis.zw));\n\n vec2 uv = v_Texcoord + ofs * offset;\n vec4 texel = texture2D(texture, uv);\n\n float w = 1.0;\n#ifdef BLUR_COC\n float fCoc = decodeFloat(texel) * 2.0 - 1.0;\n cocSum += clamp(fCoc, -1.0, 0.0) * w;\n#else\n texel = texel;\n #if !defined(BLUR_NEARFIELD)\n float fCoc = decodeFloat(texture2D(coc, uv)) * 2.0 - 1.0;\n w *= abs(fCoc);\n #endif\n texel.rgb *= texel.a;\n color += texel * w;\n#endif\n\n weightSum += w;\n }\n\n#ifdef BLUR_COC\n gl_FragColor = encodeFloat(clamp(cocSum / weightSum, -1.0, 0.0) * 0.5 + 0.5);\n#else\n color /= weightSum;\n color.rgb /= (color.a + 0.0001);\n gl_FragColor = color;\n#endif\n}\n\n@end",Js="@export ecgl.edge\n\nuniform sampler2D texture;\n\nuniform sampler2D normalTexture;\nuniform sampler2D depthTexture;\n\nuniform mat4 projectionInv;\n\nuniform vec2 textureSize;\n\nuniform vec4 edgeColor: [0,0,0,0.8];\n\nvarying vec2 v_Texcoord;\n\nvec3 packColor(vec2 coord) {\n float z = texture2D(depthTexture, coord).r * 2.0 - 1.0;\n vec4 p = vec4(v_Texcoord * 2.0 - 1.0, z, 1.0);\n vec4 p4 = projectionInv * p;\n\n return vec3(\n texture2D(normalTexture, coord).rg,\n -p4.z / p4.w / 5.0\n );\n}\n\nvoid main() {\n vec2 cc = v_Texcoord;\n vec3 center = packColor(cc);\n\n float size = clamp(1.0 - (center.z - 10.0) / 100.0, 0.0, 1.0) * 0.5;\n float dx = size / textureSize.x;\n float dy = size / textureSize.y;\n\n vec2 coord;\n vec3 topLeft = packColor(cc+vec2(-dx, -dy));\n vec3 top = packColor(cc+vec2(0.0, -dy));\n vec3 topRight = packColor(cc+vec2(dx, -dy));\n vec3 left = packColor(cc+vec2(-dx, 0.0));\n vec3 right = packColor(cc+vec2(dx, 0.0));\n vec3 bottomLeft = packColor(cc+vec2(-dx, dy));\n vec3 bottom = packColor(cc+vec2(0.0, dy));\n vec3 bottomRight = packColor(cc+vec2(dx, dy));\n\n vec3 v = -topLeft-2.0*top-topRight+bottomLeft+2.0*bottom+bottomRight;\n vec3 h = -bottomLeft-2.0*left-topLeft+bottomRight+2.0*right+topRight;\n\n float edge = sqrt(dot(h, h) + dot(v, v));\n\n edge = smoothstep(0.8, 1.0, edge);\n\n gl_FragColor = mix(texture2D(texture, v_Texcoord), vec4(edgeColor.rgb, 1.0), edgeColor.a * edge);\n}\n@end";function el(e,t){return{color:{parameters:{width:e,height:t}}}}He["import"](ss),He["import"](us),He["import"](hs),He["import"](ds),He["import"](fs),He["import"](ps),He["import"](gs),He["import"](vs),He["import"](ys),He["import"](Qs),He["import"](Js);var tl=["composite","FXAA"];function nl(){this._width,this._height,this._dpr,this._sourceTexture=new rn({type:Kt.HALF_FLOAT}),this._depthTexture=new rn({format:Kt.DEPTH_COMPONENT,type:Kt.UNSIGNED_INT}),this._framebuffer=new hr,this._framebuffer.attach(this._sourceTexture),this._framebuffer.attach(this._depthTexture,hr.DEPTH_ATTACHMENT),this._normalPass=new Ks,this._compositor=Ds($s);var e=this._compositor.getNodeByName("source");e.texture=this._sourceTexture;var t=this._compositor.getNodeByName("coc");this._sourceNode=e,this._cocNode=t,this._compositeNode=this._compositor.getNodeByName("composite"),this._fxaaNode=this._compositor.getNodeByName("FXAA"),this._dofBlurNodes=["dof_far_blur","dof_near_blur","dof_coc_blur"].map((function(e){return this._compositor.getNodeByName(e)}),this),this._dofBlurKernel=0,this._dofBlurKernelSize=new Float32Array(0),this._finalNodesChain=tl.map((function(e){return this._compositor.getNodeByName(e)}),this);var n={normalTexture:this._normalPass.getNormalTexture(),depthTexture:this._normalPass.getDepthTexture()};this._ssaoPass=new zs(n),this._ssrPass=new Gs(n),this._edgePass=new Zs(n)}nl.prototype.resize=function(e,t,n){n=n||1;e*=n,t*=n;var r=this._sourceTexture,i=this._depthTexture;r.width=e,r.height=t,i.width=e,i.height=t;var a={getWidth:function(){return e},getHeight:function(){return t},getDevicePixelRatio:function(){return n}};function o(e,t){if("function"===typeof e[t]){var n=e[t].__original||e[t];e[t]=function(e){return n.call(this,a)},e[t].__original=n}}this._compositor.nodes.forEach((function(e){for(var t in e.outputs){var n=e.outputs[t].parameters;n&&(o(n,"width"),o(n,"height"))}for(var r in e.parameters)o(e.parameters,r)})),this._width=e,this._height=t,this._dpr=n},nl.prototype.getWidth=function(){return this._width},nl.prototype.getHeight=function(){return this._height},nl.prototype._ifRenderNormalPass=function(){return this._enableSSAO||this._enableEdge||this._enableSSR},nl.prototype._getPrevNode=function(e){var t=tl.indexOf(e.name)-1,n=this._finalNodesChain[t];while(n&&!this._compositor.getNodeByName(n.name))t-=1,n=this._finalNodesChain[t];return n},nl.prototype._getNextNode=function(e){var t=tl.indexOf(e.name)+1,n=this._finalNodesChain[t];while(n&&!this._compositor.getNodeByName(n.name))t+=1,n=this._finalNodesChain[t];return n},nl.prototype._addChainNode=function(e){var t=this._getPrevNode(e),n=this._getNextNode(e);t&&(e.inputs.texture=t.name,n?(e.outputs=el(this.getWidth.bind(this),this.getHeight.bind(this)),n.inputs.texture=e.name):e.outputs=null,this._compositor.addNode(e))},nl.prototype._removeChainNode=function(e){var t=this._getPrevNode(e),n=this._getNextNode(e);t&&(n?(t.outputs=el(this.getWidth.bind(this),this.getHeight.bind(this)),n.inputs.texture=t.name):t.outputs=null,this._compositor.removeNode(e))},nl.prototype.updateNormal=function(e,t,n,r){this._ifRenderNormalPass()&&this._normalPass.update(e,t,n)},nl.prototype.updateSSAO=function(e,t,n,r){this._ssaoPass.update(e,n,r)},nl.prototype.enableSSAO=function(){this._enableSSAO=!0},nl.prototype.disableSSAO=function(){this._enableSSAO=!1},nl.prototype.enableSSR=function(){this._enableSSR=!0},nl.prototype.disableSSR=function(){this._enableSSR=!1},nl.prototype.getSSAOTexture=function(){return this._ssaoPass.getTargetTexture()},nl.prototype.getSourceFrameBuffer=function(){return this._framebuffer},nl.prototype.getSourceTexture=function(){return this._sourceTexture},nl.prototype.disableFXAA=function(){this._removeChainNode(this._fxaaNode)},nl.prototype.enableFXAA=function(){this._addChainNode(this._fxaaNode)},nl.prototype.enableBloom=function(){this._compositeNode.inputs.bloom="bloom_composite",this._compositor.dirty()},nl.prototype.disableBloom=function(){this._compositeNode.inputs.bloom=null,this._compositor.dirty()},nl.prototype.enableDOF=function(){this._compositeNode.inputs.texture="dof_composite",this._compositor.dirty()},nl.prototype.disableDOF=function(){this._compositeNode.inputs.texture="source",this._compositor.dirty()},nl.prototype.enableColorCorrection=function(){this._compositeNode.define("COLOR_CORRECTION"),this._enableColorCorrection=!0},nl.prototype.disableColorCorrection=function(){this._compositeNode.undefine("COLOR_CORRECTION"),this._enableColorCorrection=!1},nl.prototype.enableEdge=function(){this._enableEdge=!0},nl.prototype.disableEdge=function(){this._enableEdge=!1},nl.prototype.setBloomIntensity=function(e){this._compositeNode.setParameter("bloomIntensity",e)},nl.prototype.setSSAOParameter=function(e,t){switch(e){case"quality":var n={low:6,medium:12,high:32,ultra:62}[t]||12;this._ssaoPass.setParameter("kernelSize",n);break;case"radius":this._ssaoPass.setParameter(e,t),this._ssaoPass.setParameter("bias",t/200);break;case"intensity":this._ssaoPass.setParameter(e,t);break;default:0}},nl.prototype.setDOFParameter=function(e,t){switch(e){case"focalDistance":case"focalRange":case"fstop":this._cocNode.setParameter(e,t);break;case"blurRadius":for(var n=0;n<this._dofBlurNodes.length;n++)this._dofBlurNodes[n].setParameter("blurRadius",t);break;case"quality":var r={low:4,medium:8,high:16,ultra:32}[t]||8;this._dofBlurKernelSize=r;for(n=0;n<this._dofBlurNodes.length;n++)this._dofBlurNodes[n].pass.material.define("POISSON_KERNEL_SIZE",r);this._dofBlurKernel=new Float32Array(2*r);break;default:0}},nl.prototype.setSSRParameter=function(e,t){if(null!=t)switch(e){case"quality":var n={low:10,medium:15,high:30,ultra:80}[t]||20,r={low:32,medium:16,high:8,ultra:4}[t]||16;this._ssrPass.setParameter("maxIteration",n),this._ssrPass.setParameter("pixelStride",r);break;case"maxRoughness":this._ssrPass.setParameter("minGlossiness",Math.max(Math.min(1-t,1),0));break;case"physical":this.setPhysicallyCorrectSSR(t);break;default:console.warn("Unkown SSR parameter "+e)}},nl.prototype.setPhysicallyCorrectSSR=function(e){this._ssrPass.setPhysicallyCorrect(e)},nl.prototype.setEdgeColor=function(e){var t=xa.parseColor(e);this._edgePass.setParameter("edgeColor",t)},nl.prototype.setExposure=function(e){this._compositeNode.setParameter("exposure",Math.pow(2,e))},nl.prototype.setColorLookupTexture=function(e,t){this._compositeNode.pass.material.setTextureImage("lut",this._enableColorCorrection?e:"none",t,{minFilter:xa.Texture.NEAREST,magFilter:xa.Texture.NEAREST,flipY:!1})},nl.prototype.setColorCorrection=function(e,t){this._compositeNode.setParameter(e,t)},nl.prototype.isSSREnabled=function(){return this._enableSSR},nl.prototype.composite=function(e,t,n,r,i){var a=this._sourceTexture,o=a;this._enableEdge&&(this._edgePass.update(e,n,a,i),a=o=this._edgePass.getTargetTexture()),this._enableSSR&&(this._ssrPass.update(e,n,a,i),o=this._ssrPass.getTargetTexture(),this._ssrPass.setSSAOTexture(this._enableSSAO?this._ssaoPass.getTargetTexture():null)),this._sourceNode.texture=o,this._cocNode.setParameter("depth",this._depthTexture);for(var s=this._dofBlurKernel,l=this._dofBlurKernelSize,u=Math.floor(Hs.length/2/l),c=i%u,h=0;h<2*l;h++)s[h]=Hs[h+c*l*2];for(h=0;h<this._dofBlurNodes.length;h++)this._dofBlurNodes[h].setParameter("percent",i/30),this._dofBlurNodes[h].setParameter("poissonKernel",s);this._cocNode.setParameter("zNear",n.near),this._cocNode.setParameter("zFar",n.far),this._compositor.render(e,r)},nl.prototype.dispose=function(e){this._sourceTexture.dispose(e),this._depthTexture.dispose(e),this._framebuffer.dispose(e),this._compositor.dispose(e),this._normalPass.dispose(e),this._ssaoPass.dispose(e)};var rl=nl;function il(e){for(var t=[],n=0;n<30;n++)t.push([Ps(n,2),Ps(n,3)]);this._haltonSequence=t,this._frame=0,this._sourceTex=new rn,this._sourceFb=new hr,this._sourceFb.attach(this._sourceTex),this._prevFrameTex=new rn,this._outputTex=new rn;var r=this._blendPass=new pi({fragment:He.source("clay.compositor.blend")});r.material.disableTexturesAll(),r.material.enableTexture(["texture1","texture2"]),this._blendFb=new hr({depthBuffer:!1}),this._outputPass=new pi({fragment:He.source("clay.compositor.output"),blendWithPrevious:!0}),this._outputPass.material.define("fragment","OUTPUT_ALPHA"),this._outputPass.material.blend=function(e){e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA)}}il.prototype={constructor:il,jitterProjection:function(e,t){var n=e.viewport,r=n.devicePixelRatio||e.getDevicePixelRatio(),i=n.width*r,a=n.height*r,o=this._haltonSequence[this._frame%this._haltonSequence.length],s=new At;s.array[12]=(2*o[0]-1)/i,s.array[13]=(2*o[1]-1)/a,At.mul(t.projectionMatrix,s,t.projectionMatrix),At.invert(t.invProjectionMatrix,t.projectionMatrix)},resetFrame:function(){this._frame=0},getFrame:function(){return this._frame},getSourceFrameBuffer:function(){return this._sourceFb},getOutputTexture:function(){return this._outputTex},resize:function(e,t){this._prevFrameTex.width=e,this._prevFrameTex.height=t,this._outputTex.width=e,this._outputTex.height=t,this._sourceTex.width=e,this._sourceTex.height=t,this._prevFrameTex.dirty(),this._outputTex.dirty(),this._sourceTex.dirty()},isFinished:function(){return this._frame>=this._haltonSequence.length},render:function(e,t,n){var r=this._blendPass;0===this._frame?(r.setUniform("weight1",0),r.setUniform("weight2",1)):(r.setUniform("weight1",.9),r.setUniform("weight2",.1)),r.setUniform("texture1",this._prevFrameTex),r.setUniform("texture2",t||this._sourceTex),this._blendFb.attach(this._outputTex),this._blendFb.bind(e),r.render(e),this._blendFb.unbind(e),n||(this._outputPass.setUniform("texture",this._outputTex),this._outputPass.render(e));var i=this._prevFrameTex;this._prevFrameTex=this._outputTex,this._outputTex=i,this._frame++},dispose:function(e){this._sourceFb.dispose(e),this._blendFb.dispose(e),this._prevFrameTex.dispose(e),this._outputTex.dispose(e),this._sourceTex.dispose(e),this._outputPass.dispose(e),this._blendPass.dispose(e)}};var al=il;function ol(e){e=e||"perspective",this.layer=null,this.scene=new Wn,this.rootNode=this.scene,this.viewport={x:0,y:0,width:0,height:0},this.setProjection(e),this._compositor=new rl,this._temporalSS=new al,this._shadowMapPass=new Yo;for(var t=[],n=0,r=0;r<30;r++){for(var i=[],a=0;a<6;a++)i.push(4*Ps(n,2)-2),i.push(4*Ps(n,3)-2),n++;t.push(i)}this._pcfKernels=t,this.scene.on("beforerender",(function(e,t,n){this.needsTemporalSS()&&this._temporalSS.jitterProjection(e,n)}),this)}ol.prototype.setProjection=function(e){var t=this.camera;t&&t.update(),"perspective"===e?this.camera instanceof Jn||(this.camera=new Jn,t&&this.camera.setLocalTransform(t.localTransform)):this.camera instanceof li||(this.camera=new li,t&&this.camera.setLocalTransform(t.localTransform)),this.camera.near=.1,this.camera.far=2e3},ol.prototype.setViewport=function(e,t,n,r,i){this.camera instanceof Jn&&(this.camera.aspect=n/r),i=i||1,this.viewport.x=e,this.viewport.y=t,this.viewport.width=n,this.viewport.height=r,this.viewport.devicePixelRatio=i,this._compositor.resize(n*i,r*i),this._temporalSS.resize(n*i,r*i)},ol.prototype.containPoint=function(e,t){var n=this.viewport,r=this.layer.renderer.getHeight();return t=r-t,e>=n.x&&t>=n.y&&e<=n.x+n.width&&t<=n.y+n.height};var sl=new se;ol.prototype.castRay=function(e,t,n){var r=this.layer.renderer,i=r.viewport;return r.viewport=this.viewport,r.screenToNDC(e,t,sl),this.camera.castRay(sl,n),r.viewport=i,n},ol.prototype.prepareRender=function(){this.scene.update(),this.camera.update(),this.scene.updateLights();var e=this.scene.updateRenderList(this.camera);this._needsSortProgressively=!1;for(var t=0;t<e.transparent.length;t++){var n=e.transparent[t],r=n.geometry;r.needsSortVerticesProgressively&&r.needsSortVerticesProgressively()&&(this._needsSortProgressively=!0),r.needsSortTrianglesProgressively&&r.needsSortTrianglesProgressively()&&(this._needsSortProgressively=!0)}this._frame=0,this._temporalSS.resetFrame()},ol.prototype.render=function(e,t){this._doRender(e,t,this._frame),this._frame++},ol.prototype.needsAccumulate=function(){return this.needsTemporalSS()||this._needsSortProgressively},ol.prototype.needsTemporalSS=function(){var e=this._enableTemporalSS;return"auto"===e&&(e=this._enablePostEffect),e},ol.prototype.hasDOF=function(){return this._enableDOF},ol.prototype.isAccumulateFinished=function(){return this.needsTemporalSS()?this._temporalSS.isFinished():this._frame>30},ol.prototype._doRender=function(e,t,n){var r=this.scene,i=this.camera;n=n||0,this._updateTransparent(e,r,i,n),t||(this._shadowMapPass.kernelPCF=this._pcfKernels[0],this._shadowMapPass.render(e,r,i,!0)),this._updateShadowPCFKernel(n);var a=e.clearColor;if(e.gl.clearColor(a[0],a[1],a[2],a[3]),this._enablePostEffect&&(this.needsTemporalSS()&&this._temporalSS.jitterProjection(e,i),this._compositor.updateNormal(e,r,i,this._temporalSS.getFrame())),this._updateSSAO(e,r,i,this._temporalSS.getFrame()),this._enablePostEffect){var o=this._compositor.getSourceFrameBuffer();o.bind(e),e.gl.clear(e.gl.DEPTH_BUFFER_BIT|e.gl.COLOR_BUFFER_BIT),e.render(r,i,!0,!0),o.unbind(e),this.needsTemporalSS()&&t?(this._compositor.composite(e,r,i,this._temporalSS.getSourceFrameBuffer(),this._temporalSS.getFrame()),e.setViewport(this.viewport),this._temporalSS.render(e)):(e.setViewport(this.viewport),this._compositor.composite(e,r,i,null,0))}else if(this.needsTemporalSS()&&t){o=this._temporalSS.getSourceFrameBuffer();o.bind(e),e.saveClear(),e.clearBit=e.gl.DEPTH_BUFFER_BIT|e.gl.COLOR_BUFFER_BIT,e.render(r,i,!0,!0),e.restoreClear(),o.unbind(e),e.setViewport(this.viewport),this._temporalSS.render(e)}else e.setViewport(this.viewport),e.render(r,i,!0,!0)},ol.prototype._updateTransparent=function(e,t,n,r){for(var i=new gt,a=new At,o=n.getWorldPosition(),s=t.getRenderList(n).transparent,l=0;l<s.length;l++){var u=s[l],c=u.geometry;At.invert(a,u.worldTransform),gt.transformMat4(i,o,a),c.needsSortTriangles&&c.needsSortTriangles()&&c.doSortTriangles(i,r),c.needsSortVertices&&c.needsSortVertices()&&c.doSortVertices(i,r)}},ol.prototype._updateSSAO=function(e,t,n){var r=this._enableSSAO&&this._enablePostEffect;r&&this._compositor.updateSSAO(e,t,n,this._temporalSS.getFrame());for(var i=t.getRenderList(n),a=0;a<i.opaque.length;a++){var o=i.opaque[a];o.renderNormal&&o.material[r?"enableTexture":"disableTexture"]("ssaoMap"),r&&o.material.set("ssaoMap",this._compositor.getSSAOTexture())}},ol.prototype._updateShadowPCFKernel=function(e){for(var t=this._pcfKernels[e%this._pcfKernels.length],n=this.scene.getRenderList(this.camera),r=n.opaque,i=0;i<r.length;i++)r[i].receiveShadow&&(r[i].material.set("pcfKernel",t),r[i].material.define("fragment","PCF_KERNEL_SIZE",t.length/2))},ol.prototype.dispose=function(e){this._compositor.dispose(e.gl),this._temporalSS.dispose(e.gl),this._shadowMapPass.dispose(e)},ol.prototype.setPostEffect=function(e,t){var n=this._compositor;this._enablePostEffect=e.get("enable");var r=e.getModel("bloom"),i=e.getModel("edge"),a=e.getModel("DOF",e.getModel("depthOfField")),o=e.getModel("SSAO",e.getModel("screenSpaceAmbientOcclusion")),s=e.getModel("SSR",e.getModel("screenSpaceReflection")),l=e.getModel("FXAA"),u=e.getModel("colorCorrection");r.get("enable")?n.enableBloom():n.disableBloom(),a.get("enable")?n.enableDOF():n.disableDOF(),s.get("enable")?n.enableSSR():n.disableSSR(),u.get("enable")?n.enableColorCorrection():n.disableColorCorrection(),i.get("enable")?n.enableEdge():n.disableEdge(),l.get("enable")?n.enableFXAA():n.disableFXAA(),this._enableDOF=a.get("enable"),this._enableSSAO=o.get("enable"),this._enableSSAO?n.enableSSAO():n.disableSSAO(),n.setBloomIntensity(r.get("intensity")),n.setEdgeColor(i.get("color")),n.setColorLookupTexture(u.get("lookupTexture"),t),n.setExposure(u.get("exposure")),["radius","quality","intensity"].forEach((function(e){n.setSSAOParameter(e,o.get(e))})),["quality","maxRoughness","physical"].forEach((function(e){n.setSSRParameter(e,s.get(e))})),["quality","focalDistance","focalRange","blurRadius","fstop"].forEach((function(e){n.setDOFParameter(e,a.get(e))})),["brightness","contrast","saturation"].forEach((function(e){n.setColorCorrection(e,u.get(e))}))},ol.prototype.setDOFFocusOnPoint=function(e){if(this._enablePostEffect){if(e>this.camera.far||e<this.camera.near)return;return this._compositor.setDOFParameter("focalDistance",e),!0}},ol.prototype.setTemporalSuperSampling=function(e){this._enableTemporalSS=e.get("enable")},ol.prototype.isLinearSpace=function(){return this._enablePostEffect},ol.prototype.setRootNode=function(e){if(this.rootNode!==e){for(var t=this.rootNode.children(),n=0;n<t.length;n++)e.add(t[n]);e!==this.scene&&this.scene.add(e),this.rootNode=e}},ol.prototype.add=function(e){this.rootNode.add(e)},ol.prototype.remove=function(e){this.rootNode.remove(e)},ol.prototype.removeAll=function(e){this.rootNode.removeAll(e)},Object.assign(ol.prototype,f);var ll=ol;function ul(e,t){var n=e.getBoxLayoutParams(),r=Object(ko["g"])(n,{width:t.getWidth(),height:t.getHeight()});r.y=t.getHeight()-r.y-r.height,this.viewGL.setViewport(r.x,r.y,r.width,r.height,t.getDevicePixelRatio());var i=e.get("boxWidth"),a=e.get("boxHeight"),o=e.get("boxDepth");this.getAxis("x").setExtent(-i/2,i/2),this.getAxis("y").setExtent(o/2,-o/2),this.getAxis("z").setExtent(-a/2,a/2),this.size=[i,a,o]}function cl(e,t){var n={};function i(e,t){n[e]=n[e]||[1/0,-1/0],n[e][0]=Math.min(t[0],n[e][0]),n[e][1]=Math.max(t[1],n[e][1])}e.eachSeries((function(e){if(e.coordinateSystem===this){var t=e.getData();["x","y","z"].forEach((function(e){t.mapDimensionsAll(e,!0).forEach((function(n){i(e,t.getDataExtent(n,!0))}))}))}}),this),["xAxis3D","yAxis3D","zAxis3D"].forEach((function(t){e.eachComponent(t,(function(e){var i=t.charAt(0),a=e.getReferringComponents("grid3D").models[0],o=a.coordinateSystem;if(o===this){var s=o.getAxis(i);if(!s){var l=r["A"].createScale(n[i]||[1/0,-1/0],e);s=new Po(i,l),s.type=e.get("type");var u="category"===s.type;s.onBand=u&&e.get("boundaryGap"),s.inverse=e.get("inverse"),e.axis=s,s.model=e,s.getLabelModel=function(){return e.getModel("axisLabel",a.getModel("axisLabel"))},s.getTickModel=function(){return e.getModel("axisTick",a.getModel("axisTick"))},o.addAxis(s)}}}),this)}),this),this.resize(this.model,t)}var hl={dimensions:Do.prototype.dimensions,create:function(e,t){var n=[];e.eachComponent("grid3D",(function(e){e.__viewGL=e.__viewGL||new ll;var t=new Do;t.model=e,t.viewGL=e.__viewGL,e.coordinateSystem=t,n.push(t),t.resize=ul,t.update=cl}));var r=["xAxis3D","yAxis3D","zAxis3D"];function i(e,t){return r.map((function(n){var r=e.getReferringComponents(n).models[0];return null==r&&(r=t.getComponent(n)),r}))}return e.eachSeries((function(t){if("cartesian3D"===t.get("coordinateSystem")){var n=t.getReferringComponents("grid3D").models[0];if(null==n){var r=i(t,e);n=r[0].getCoordSysModel();r.forEach((function(e){e.getCoordSysModel()}))}var a=n.coordinateSystem;t.coordinateSystem=a}})),n}},dl=hl,fl=r["c"].extend({type:"cartesian3DAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid3D",index:this.option.gridIndex,id:this.option.gridId})[0]}});r["A"].mixinAxisModelCommonMethods(fl);var pl=fl,gl={show:!0,grid3DIndex:0,inverse:!1,name:"",nameLocation:"middle",nameTextStyle:{fontSize:16},nameGap:20,axisPointer:{},axisLine:{},axisTick:{},axisLabel:{},splitArea:{}},ml=r["Y"].merge({boundaryGap:!0,axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"},axisPointer:{label:{show:!1}}},gl),vl=r["Y"].merge({boundaryGap:[0,0],splitNumber:5,axisPointer:{label:{}}},gl),yl=r["Y"].defaults({scale:!0,min:"dataMin",max:"dataMax"},vl),bl=r["Y"].defaults({logBase:10},vl);bl.scale=!0;var _l={categoryAxis3D:ml,valueAxis3D:vl,timeAxis3D:yl,logAxis3D:bl},xl=n("LarJ"),wl=["value","category","time","log"],Sl=function(e,t,n,i,a){wl.forEach((function(o){var s=n.extend({type:t+"Axis3D."+o,__ordinalMeta:null,mergeDefaultAndTheme:function(e,n){var a=n.getTheme();r["Y"].merge(e,a.get(o+"Axis3D")),r["Y"].merge(e,this.getDefaultOption()),e.type=i(t,e)},optionUpdated:function(){var e=this.option;"category"===e.type&&(this.__ordinalMeta=xl["a"].createByAxisModel(this))},getCategories:function(){if("category"===this.option.type)return this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:r["Y"].merge(r["Y"].clone(_l[o+"Axis3D"]),a||{},!0)});e.registerComponentModel(s)})),e.registerSubTypeDefaulter(t+"Axis3D",r["Y"].curry(i,t))};function Tl(e,t){return t.type||(t.data?"category":"value")}function Ol(e){e.registerComponentModel(Va),e.registerComponentView(Ao),e.registerCoordinateSystem("grid3D",dl),["x","y","z"].forEach((function(t){Sl(e,t,pl,Tl,{name:t.toUpperCase()});var n=e.ComponentView.extend({type:t+"Axis3D"});e.registerComponentView(n)})),e.registerAction({type:"grid3DChangeCamera",event:"grid3dcamerachanged",update:"series:updateCamera"},(function(e,t){t.eachComponent({mainType:"grid3D",query:e},(function(t){t.setView(e)}))})),e.registerAction({type:"grid3DShowAxisPointer",event:"grid3dshowaxispointer",update:"grid3D:showAxisPointer"},(function(e,t){})),e.registerAction({type:"grid3DHideAxisPointer",event:"grid3dhideaxispointer",update:"grid3D:hideAxisPointer"},(function(e,t){}))}Object(r["X"])(Ol);var Ml={defaultOption:{shading:null,realisticMaterial:{textureTiling:1,textureOffset:0,detailTexture:null},lambertMaterial:{textureTiling:1,textureOffset:0,detailTexture:null},colorMaterial:{textureTiling:1,textureOffset:0,detailTexture:null},hatchingMaterial:{textureTiling:1,textureOffset:0,paperColor:"#fff"}}},El={getFilledRegions:function(e,t){var n,i=(e||[]).slice();if("string"===typeof t?(t=r["y"](t),n=t&&t.geoJson):t&&t.features&&(n=t),!n)return[];for(var a={},o=n.features,s=0;s<i.length;s++)a[i[s].name]=i[s];for(s=0;s<o.length;s++){var l=o[s].properties.name;a[l]||i.push({name:l})}return i},defaultOption:{show:!0,zlevel:-10,map:"",left:0,top:0,width:"100%",height:"100%",boxWidth:100,boxHeight:10,boxDepth:"auto",regionHeight:3,environment:"auto",groundPlane:{show:!1,color:"#aaa"},shading:"lambert",light:{main:{alpha:40,beta:30}},viewControl:{alpha:40,beta:0,distance:100,orthographicSize:60,minAlpha:5,minBeta:-80,maxBeta:80},label:{show:!1,distance:2,textStyle:{fontSize:20,color:"#000",backgroundColor:"rgba(255,255,255,0.7)",padding:3,borderRadius:4}},itemStyle:{color:"#fff",borderWidth:0,borderColor:"#333"},emphasis:{itemStyle:{color:"#639fc0"},label:{show:!0}}}},Al=r["c"].extend({type:"geo3D",layoutMode:"box",coordinateSystem:null,optionUpdated:function(){var e=this.option;e.regions=this.getFilledRegions(e.regions,e.map);var t=r["A"].createDimensions(e.data||[],{coordDimensions:["value"],encodeDefine:this.get("encode"),dimensionsDefine:this.get("dimensions")}),n=new r["e"](t,this);n.initData(e.regions);var i={};n.each((function(e){var t=n.getName(e),r=n.getItemModel(e);i[t]=r})),this._regionModelMap=i,this._data=n},getData:function(){return this._data},getRegionModel:function(e){var t=this.getData().getName(e);return this._regionModelMap[t]||new r["f"](null,this)},getRegionPolygonCoords:function(e){var t=this.getData().getName(e),n=this.coordinateSystem.getRegion(t);return n?n.geometries:[]},getFormattedLabel:function(e,t){var n=this._data.getName(e),r=this.getRegionModel(e),i=r.get("normal"===t?["label","formatter"]:["emphasis","label","formatter"]);null==i&&(i=r.get(["label","formatter"]));var a={name:n};if("function"===typeof i)return a.status=t,i(a);if("string"===typeof i){var o=a.seriesName;return i.replace("{a}",null!=o?o:"")}return n},defaultOption:{regions:[]}});r["Y"].merge(Al.prototype,El),r["Y"].merge(Al.prototype,ja),r["Y"].merge(Al.prototype,Fa),r["Y"].merge(Al.prototype,za),r["Y"].merge(Al.prototype,Ml);var Cl=Al,Il=Dl;function Dl(e,t,n){n=n||2;var r,i,a,o,s,l,u,c=t&&t.length,h=c?t[0]*n:e.length,d=Ll(e,0,h,n,!0),f=[];if(!d)return f;if(c&&(d=zl(e,t,d,n)),e.length>80*n){r=a=e[0],i=o=e[1];for(var p=n;p<h;p+=n)s=e[p],l=e[p+1],s<r&&(r=s),l<i&&(i=l),s>a&&(a=s),l>o&&(o=l);u=Math.max(a-r,o-i)}return kl(d,f,n,r,i,u),f}function Ll(e,t,n,r,i){var a,o;if(i===au(e,t,n,r)>0)for(a=t;a<n;a+=r)o=nu(a,e[a],e[a+1],o);else for(a=n-r;a>=t;a-=r)o=nu(a,e[a],e[a+1],o);return o&&Zl(o,o.next)&&(ru(o),o=o.next),o}function Pl(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!Zl(r,r.next)&&0!==ql(r.prev,r,r.next))r=r.next;else{if(ru(r),r=t=r.prev,r===r.next)return null;n=!0}}while(n||r!==t);return t}function kl(e,t,n,r,i,a,o){if(e){!o&&a&&Hl(e,r,i,a);var s,l,u=e;while(e.prev!==e.next)if(s=e.prev,l=e.next,a?Nl(e,r,i,a):Rl(e))t.push(s.i/n),t.push(e.i/n),t.push(l.i/n),ru(e),e=l.next,u=l.next;else if(e=l,e===u){o?1===o?(e=jl(e,t,n),kl(e,t,n,r,i,a,2)):2===o&&Fl(e,t,n,r,i,a):kl(Pl(e),t,n,r,i,a,1);break}}}function Rl(e){var t=e.prev,n=e,r=e.next;if(ql(t,n,r)>=0)return!1;var i=e.next.next;while(i!==e.prev){if(Yl(t.x,t.y,n.x,n.y,r.x,r.y,i.x,i.y)&&ql(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function Nl(e,t,n,r){var i=e.prev,a=e,o=e.next;if(ql(i,a,o)>=0)return!1;var s=i.x<a.x?i.x<o.x?i.x:o.x:a.x<o.x?a.x:o.x,l=i.y<a.y?i.y<o.y?i.y:o.y:a.y<o.y?a.y:o.y,u=i.x>a.x?i.x>o.x?i.x:o.x:a.x>o.x?a.x:o.x,c=i.y>a.y?i.y>o.y?i.y:o.y:a.y>o.y?a.y:o.y,h=Wl(s,l,t,n,r),d=Wl(u,c,t,n,r),f=e.nextZ;while(f&&f.z<=d){if(f!==e.prev&&f!==e.next&&Yl(i.x,i.y,a.x,a.y,o.x,o.y,f.x,f.y)&&ql(f.prev,f,f.next)>=0)return!1;f=f.nextZ}f=e.prevZ;while(f&&f.z>=h){if(f!==e.prev&&f!==e.next&&Yl(i.x,i.y,a.x,a.y,o.x,o.y,f.x,f.y)&&ql(f.prev,f,f.next)>=0)return!1;f=f.prevZ}return!0}function jl(e,t,n){var r=e;do{var i=r.prev,a=r.next.next;!Zl(i,a)&&$l(i,r,r.next,a)&&Jl(i,a)&&Jl(a,i)&&(t.push(i.i/n),t.push(r.i/n),t.push(a.i/n),ru(r),ru(r.next),r=e=a),r=r.next}while(r!==e);return r}function Fl(e,t,n,r,i,a){var o=e;do{var s=o.next.next;while(s!==o.prev){if(o.i!==s.i&&Kl(o,s)){var l=tu(o,s);return o=Pl(o,o.next),l=Pl(l,l.next),kl(o,t,n,r,i,a),void kl(l,t,n,r,i,a)}s=s.next}o=o.next}while(o!==e)}function zl(e,t,n,r){var i,a,o,s,l,u=[];for(i=0,a=t.length;i<a;i++)o=t[i]*r,s=i<a-1?t[i+1]*r:e.length,l=Ll(e,o,s,r,!1),l===l.next&&(l.steiner=!0),u.push(Xl(l));for(u.sort(Bl),i=0;i<u.length;i++)Vl(u[i],n),n=Pl(n,n.next);return n}function Bl(e,t){return e.x-t.x}function Vl(e,t){if(t=Gl(e,t),t){var n=tu(t,e);Pl(n,n.next)}}function Gl(e,t){var n,r=t,i=e.x,a=e.y,o=-1/0;do{if(a<=r.y&&a>=r.next.y&&r.next.y!==r.y){var s=r.x+(a-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=i&&s>o){if(o=s,s===i){if(a===r.y)return r;if(a===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==t);if(!n)return null;if(i===o)return n.prev;var l,u=n,c=n.x,h=n.y,d=1/0;r=n.next;while(r!==u)i>=r.x&&r.x>=c&&i!==r.x&&Yl(a<h?i:o,a,c,h,a<h?o:i,a,r.x,r.y)&&(l=Math.abs(a-r.y)/(i-r.x),(l<d||l===d&&r.x>n.x)&&Jl(r,e)&&(n=r,d=l)),r=r.next;return n}function Hl(e,t,n,r){var i=e;do{null===i.z&&(i.z=Wl(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,Ul(i)}function Ul(e){var t,n,r,i,a,o,s,l,u=1;do{n=e,e=null,a=null,o=0;while(n){for(o++,r=n,s=0,t=0;t<u;t++)if(s++,r=r.nextZ,!r)break;l=u;while(s>0||l>0&&r)0!==s&&(0===l||!r||n.z<=r.z)?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,l--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;n=r}a.nextZ=null,u*=2}while(o>1);return e}function Wl(e,t,n,r,i){return e=32767*(e-n)/i,t=32767*(t-r)/i,e=16711935&(e|e<<8),e=252645135&(e|e<<4),e=858993459&(e|e<<2),e=1431655765&(e|e<<1),t=16711935&(t|t<<8),t=252645135&(t|t<<4),t=858993459&(t|t<<2),t=1431655765&(t|t<<1),e|t<<1}function Xl(e){var t=e,n=e;do{t.x<n.x&&(n=t),t=t.next}while(t!==e);return n}function Yl(e,t,n,r,i,a,o,s){return(i-o)*(t-s)-(e-o)*(a-s)>=0&&(e-o)*(r-s)-(n-o)*(t-s)>=0&&(n-o)*(a-s)-(i-o)*(r-s)>=0}function Kl(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!Ql(e,t)&&Jl(e,t)&&Jl(t,e)&&eu(e,t)}function ql(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function Zl(e,t){return e.x===t.x&&e.y===t.y}function $l(e,t,n,r){return!!(Zl(e,t)&&Zl(n,r)||Zl(e,r)&&Zl(n,t))||ql(e,t,n)>0!==ql(e,t,r)>0&&ql(n,r,e)>0!==ql(n,r,t)>0}function Ql(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&$l(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}function Jl(e,t){return ql(e.prev,e,e.next)<0?ql(e,t,e.next)>=0&&ql(e,e.prev,t)>=0:ql(e,t,e.prev)<0||ql(e,e.next,t)<0}function eu(e,t){var n=e,r=!1,i=(e.x+t.x)/2,a=(e.y+t.y)/2;do{n.y>a!==n.next.y>a&&n.next.y!==n.y&&i<(n.next.x-n.x)*(a-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}function tu(e,t){var n=new iu(e.i,e.x,e.y),r=new iu(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,a.next=r,r.prev=a,r}function nu(e,t,n,r){var i=new iu(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function ru(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function iu(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function au(e,t,n,r){for(var i=0,a=t,o=n-r;a<n;a+=r)i+=(e[o]-e[a])*(e[a+1]+e[o+1]),o=a;return i}function ou(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function su(e,t,n,r,i){var a=n,o=e[t];ou(e,t,r);for(var s=n;s<r;s++)i(e[s],o)<0&&(ou(e,s,a),a++);return ou(e,r,a),a}function lu(e,t,n,r){if(n<r){var i=Math.floor((n+r)/2),a=su(e,i,n,r,t);lu(e,t,n,a-1),lu(e,t,a+1,r)}}function uu(){this._parts=[]}Dl.deviation=function(e,t,n,r){var i=t&&t.length,a=i?t[0]*n:e.length,o=Math.abs(au(e,0,a,n));if(i)for(var s=0,l=t.length;s<l;s++){var u=t[s]*n,c=s<l-1?t[s+1]*n:e.length;o-=Math.abs(au(e,u,c,n))}var h=0;for(s=0;s<r.length;s+=3){var d=r[s]*n,f=r[s+1]*n,p=r[s+2]*n;h+=Math.abs((e[d]-e[p])*(e[f+1]-e[d+1])-(e[d]-e[f])*(e[p+1]-e[d+1]))}return 0===o&&0===h?0:Math.abs((h-o)/o)},uu.prototype.step=function(e,t,n){var r=e.length;if(0===n){this._parts=[],this._sorted=!1;var i=Math.floor(r/2);this._parts.push({pivot:i,left:0,right:r-1}),this._currentSortPartIdx=0}if(!this._sorted){var a=this._parts;if(0===a.length)return this._sorted=!0,!0;if(a.length<512){for(var o=0;o<a.length;o++)a[o].pivot=su(e,a[o].pivot,a[o].left,a[o].right,t);var s=[];for(o=0;o<a.length;o++){var l=a[o].left,u=a[o].pivot-1;u>l&&s.push({pivot:Math.floor((u+l)/2),left:l,right:u});l=a[o].pivot+1,u=a[o].right;u>l&&s.push({pivot:Math.floor((u+l)/2),left:l,right:u})}a=this._parts=s}else for(o=0;o<Math.floor(a.length/10);o++){var c=a.length-1-this._currentSortPartIdx;if(lu(e,t,a[c].left,a[c].right),this._currentSortPartIdx++,this._currentSortPartIdx===a.length)return this._sorted=!0,!0}return!1}},uu.sort=lu;var cu=uu,hu=Za.vec3,du=hu.create(),fu=hu.create(),pu=hu.create(),gu={needsSortTriangles:function(){return this.indices&&this.sortTriangles},needsSortTrianglesProgressively:function(){return this.needsSortTriangles()&&this.triangleCount>=2e4},doSortTriangles:function(e,t){var n=this.indices;if(0===t){var r=this.attributes.position;e=e.array;this._triangleZList&&this._triangleZList.length===this.triangleCount||(this._triangleZList=new Float32Array(this.triangleCount),this._sortedTriangleIndices=new Uint32Array(this.triangleCount),this._indicesTmp=new n.constructor(n.length),this._triangleZListTmp=new Float32Array(this.triangleCount));for(var i,a=0,o=0;o<n.length;){r.get(n[o++],du),r.get(n[o++],fu),r.get(n[o++],pu);var s=hu.sqrDist(du,e),l=hu.sqrDist(fu,e),u=hu.sqrDist(pu,e),c=Math.min(s,l);c=Math.min(c,u),3===o?(i=c,c=0):c-=i,this._triangleZList[a++]=c}}var h=this._sortedTriangleIndices;for(o=0;o<h.length;o++)h[o]=o;if(this.triangleCount<2e4)0===t&&this._simpleSort(!0);else for(o=0;o<3;o++)this._progressiveQuickSort(3*t+o);var d=this._indicesTmp,f=this._triangleZListTmp,p=this._triangleZList;for(o=0;o<this.triangleCount;o++){var g=3*h[o],m=3*o;d[m++]=n[g++],d[m++]=n[g++],d[m]=n[g],f[o]=p[h[o]]}var v=this._indicesTmp;this._indicesTmp=this.indices,this.indices=v;v=this._triangleZListTmp;this._triangleZListTmp=this._triangleZList,this._triangleZList=v,this.dirtyIndices()},_simpleSort:function(e){var t=this._triangleZList,n=this._sortedTriangleIndices;function r(e,n){return t[n]-t[e]}e?Array.prototype.sort.call(n,r):cu.sort(n,r,0,n.length-1)},_progressiveQuickSort:function(e){var t=this._triangleZList,n=this._sortedTriangleIndices;this._quickSort=this._quickSort||new cu,this._quickSort.step(n,(function(e,n){return t[n]-t[e]}),e)}};function mu(e){var t=e.getVisual("style");if(t){var n=e.getVisual("drawType");return t[n]}}function vu(e){var t=e.getVisual("style");return t.opacity}function yu(e,t){var n=e.getItemVisual(t,"style");if(n){var r=e.getVisual("drawType");return n[r]}}function bu(e,t){var n=e.getItemVisual(t,"style");return n&&n.opacity}var _u=1,xu=2;function wu(e,t,n){this._labelsMesh=new bo,this._labelTextureSurface=new ro({width:512,height:512,devicePixelRatio:n.getDevicePixelRatio(),onupdate:function(){n.getZr().refresh()}}),this._api=n,this._labelsMesh.material.set("textureAtlas",this._labelTextureSurface.getTexture())}wu.prototype.getLabelPosition=function(e,t,n){return[0,0,0]},wu.prototype.getLabelDistance=function(e,t,n){return 0},wu.prototype.getMesh=function(){return this._labelsMesh},wu.prototype.updateData=function(e,t,n){null==t&&(t=0),null==n&&(n=e.count()),this._labelsVisibilitiesBits&&this._labelsVisibilitiesBits.length===n-t||(this._labelsVisibilitiesBits=new Uint8Array(n-t));for(var r=["label","show"],i=["emphasis","label","show"],a=t;a<n;a++){var o=e.getItemModel(a),s=o.get(r),l=o.get(i);null==l&&(l=s);var u=(s?_u:0)|(l?xu:0);this._labelsVisibilitiesBits[a-t]=u}this._start=t,this._end=n,this._data=e},wu.prototype.updateLabels=function(e){if(this._data){e=e||[];for(var t=e.length>0,n={},i=0;i<e.length;i++)n[e[i]]=!0;this._labelsMesh.geometry.convertToDynamicArray(!0),this._labelTextureSurface.clear();for(var a=["label"],o=["emphasis","label"],s=this._data.hostModel,l=this._data,u=s.getModel(a),c=s.getModel(o,u),h={left:"right",right:"left",top:"center",bottom:"center"},d={left:"middle",right:"middle",top:"bottom",bottom:"top"},f=this._start;f<this._end;f++){var p=!1;t&&n[f]&&(p=!0);var g=this._labelsVisibilitiesBits[f-this._start]&(p?xu:_u);if(g){var m=l.getItemModel(f),v=m.getModel(p?o:a,p?c:u),y=v.get("distance")||0,b=v.get("position"),_=this._api.getDevicePixelRatio(),x=s.getFormattedLabel(f,p?"emphasis":"normal");if(null==x||""===x)return;var w=new r["z"].Text({style:Object(Ga["c"])(v,{text:x,fill:v.get("color")||yu(l,f)||"#000",align:"left",verticalAlign:"top",opacity:Di.firstNotNull(v.get("opacity"),bu(l,f),1)})}),S=w.getBoundingRect(),T=1.2;S.height*=T;var O=this._labelTextureSurface.add(w),M=h[b]||"center",E=d[b]||"bottom";this._labelsMesh.geometry.addSprite(this.getLabelPosition(f,b,y),[S.width*_,S.height*_],O,M,E,this.getLabelDistance(f,b,y)*_)}}this._labelsMesh.material.set("uvScale",this._labelTextureSurface.getCoordsScale()),this._labelTextureSurface.getZr().refreshImmediately(),this._labelsMesh.geometry.convertToTypedArray(),this._labelsMesh.geometry.dirty()}};var Su=wu,Tu=Za.vec3;function Ou(e){this.rootNode=new xa.Node,this._triangulationResults={},this._shadersMap=xa.COMMON_SHADERS.filter((function(e){return"shadow"!==e})).reduce((function(e,t){return e[t]=xa.createShader("ecgl."+t),e}),{}),this._linesShader=xa.createShader("ecgl.meshLines3D");var t={};xa.COMMON_SHADERS.forEach((function(e){t[e]=new xa.Material({shader:xa.createShader("ecgl."+e)})})),this._groundMaterials=t,this._groundMesh=new xa.Mesh({geometry:new xa.PlaneGeometry({dynamic:!0}),castShadow:!1,renderNormal:!0,$ignorePicking:!0}),this._groundMesh.rotation.rotateX(-Math.PI/2),this._labelsBuilder=new Su(512,512,e),this._labelsBuilder.getMesh().renderOrder=100,this._labelsBuilder.getMesh().material.depthTest=!1,this.rootNode.add(this._labelsBuilder.getMesh()),this._initMeshes(),this._api=e}xa.Shader["import"](Oo),Ou.prototype={constructor:Ou,extrudeY:!0,update:function(e,t,n,r,i){var a=e.getData();null==r&&(r=0),null==i&&(i=a.count()),this._startIndex=r,this._endIndex=i-1,this._triangulation(e,r,i);var o=this._getShader(e.get("shading"));this._prepareMesh(e,o,n,r,i),this.rootNode.updateWorldTransform(),this._updateRegionMesh(e,n,r,i);var s=e.coordinateSystem;"geo3D"===s.type&&this._updateGroundPlane(e,s,n);var l=this;this._labelsBuilder.updateData(a,r,i),this._labelsBuilder.getLabelPosition=function(e,t,n){var r=a.getName(e),i=n;if("geo3D"===s.type){var o=s.getRegion(r);if(!o)return[NaN,NaN,NaN];h=o.center;var u=s.dataToPoint([h[0],h[1],i]);return u}var c=l._triangulationResults[e-l._startIndex],h=l.extrudeY?[(c.max[0]+c.min[0])/2,c.max[1]+i,(c.max[2]+c.min[2])/2]:[(c.max[0]+c.min[0])/2,(c.max[1]+c.min[1])/2,c.max[2]+i]},this._data=a,this._labelsBuilder.updateLabels(),this._updateDebugWireframe(e),this._lastHoverDataIndex=0},_initMeshes:function(){var e=this;function t(){var t=new xa.Mesh({name:"Polygon",material:new xa.Material({shader:e._shadersMap.lambert}),geometry:new xa.Geometry({sortTriangles:!0,dynamic:!0}),culling:!1,ignorePicking:!0,renderNormal:!0});return Object.assign(t.geometry,gu),t}var n=t(),r=new xa.Mesh({material:new xa.Material({shader:this._linesShader}),castShadow:!1,ignorePicking:!0,$ignorePicking:!0,geometry:new eo({useNativeLine:!1})});this.rootNode.add(n),this.rootNode.add(r),n.material.define("both","VERTEX_COLOR"),n.material.define("fragment","DOUBLE_SIDED"),this._polygonMesh=n,this._linesMesh=r,this.rootNode.add(this._groundMesh)},_getShader:function(e){var t=this._shadersMap[e];return t||(t=this._shadersMap.lambert),t.__shading=e,t},_prepareMesh:function(e,t,n,r,i){for(var a=0,o=0,s=0,l=0,u=r;u<i;u++){var c=this._getRegionPolygonInfo(u),h=this._getRegionLinesInfo(u,e,this._linesMesh.geometry);a+=c.vertexCount,o+=c.triangleCount,s+=h.vertexCount,l+=h.triangleCount}var d=this._polygonMesh,f=d.geometry;["position","normal","texcoord0","color"].forEach((function(e){f.attributes[e].init(a)})),f.indices=a>65535?new Uint32Array(3*o):new Uint16Array(3*o),d.material.shader!==t&&d.material.attachShader(t,!0),xa.setMaterialFromModel(t.__shading,d.material,e,n),s>0&&(this._linesMesh.geometry.resetOffset(),this._linesMesh.geometry.setVertexCount(s),this._linesMesh.geometry.setTriangleCount(l)),this._dataIndexOfVertex=new Uint32Array(a),this._vertexRangeOfDataIndex=new Uint32Array(2*(i-r))},_updateRegionMesh:function(e,t,n,r){for(var i=e.getData(),a=0,o=0,s=!1,l=this._polygonMesh,u=this._linesMesh,c=n;c<r;c++){var h=e.getRegionModel(c),d=h.getModel("itemStyle"),f=Di.firstNotNull(yu(i,c),d.get("color"),"#fff"),p=Di.firstNotNull(bu(i,c),1),g=xa.parseColor(f),m=xa.parseColor(d.get("borderColor"));g[3]*=p,m[3]*=p;var v=g[3]<.99;l.material.set("color",[1,1,1,1]),s=s||v;for(var y=Di.firstNotNull(h.get("height",!0),e.get("regionHeight")),b=this._updatePolygonGeometry(e,l.geometry,c,y,a,o,g),_=a;_<b.vertexOffset;_++)this._dataIndexOfVertex[_]=c;this._vertexRangeOfDataIndex[2*(c-n)]=a,this._vertexRangeOfDataIndex[2*(c-n)+1]=b.vertexOffset,a=b.vertexOffset,o=b.triangleOffset;var x=d.get("borderWidth"),w=x>0;w&&(x*=t.getDevicePixelRatio(),this._updateLinesGeometry(u.geometry,e,c,y,x,e.coordinateSystem.transform)),u.invisible=!w,u.material.set({color:m})}l=this._polygonMesh;l.material.transparent=s,l.material.depthMask=!s,l.geometry.updateBoundingBox(),l.frontFace=this.extrudeY?xa.Mesh.CCW:xa.Mesh.CW,l.material.get("normalMap")&&l.geometry.generateTangents(),l.seriesIndex=e.seriesIndex,l.on("mousemove",this._onmousemove,this),l.on("mouseout",this._onmouseout,this)},_updateDebugWireframe:function(e){var t=e.getModel("debug.wireframe");if(t.get("show")){var n=xa.parseColor(t.get("lineStyle.color")||"rgba(0,0,0,0.5)"),r=Di.firstNotNull(t.get("lineStyle.width"),1),i=this._polygonMesh;i.geometry.generateBarycentric(),i.material.define("both","WIREFRAME_TRIANGLE"),i.material.set("wireframeLineColor",n),i.material.set("wireframeLineWidth",r)}},_onmousemove:function(e){var t=this._dataIndexOfVertex[e.triangle[0]];null==t&&(t=-1),t!==this._lastHoverDataIndex&&(this.downplay(this._lastHoverDataIndex),this.highlight(t),this._labelsBuilder.updateLabels([t])),this._lastHoverDataIndex=t,this._polygonMesh.dataIndex=t},_onmouseout:function(e){e.target&&(this.downplay(this._lastHoverDataIndex),this._lastHoverDataIndex=-1,this._polygonMesh.dataIndex=-1),this._labelsBuilder.updateLabels([])},_updateGroundPlane:function(e,t,n){var r=e.getModel("groundPlane",e);if(this._groundMesh.invisible=!r.get("show",!0),!this._groundMesh.invisible){var i=e.get("shading"),a=this._groundMaterials[i];a||(a=this._groundMaterials.lambert),xa.setMaterialFromModel(i,a,r,n),a.get("normalMap")&&this._groundMesh.geometry.generateTangents(),this._groundMesh.material=a,this._groundMesh.material.set("color",xa.parseColor(r.get("color"))),this._groundMesh.scale.set(t.size[0],t.size[2],1)}},_triangulation:function(e,t,n){this._triangulationResults=[];for(var r=[1/0,1/0,1/0],i=[-1/0,-1/0,-1/0],a=e.coordinateSystem,o=t;o<n;o++){for(var s=[],l=e.getRegionPolygonCoords(o),u=0;u<l.length;u++){var c=l[u].exterior,h=l[u].interiors,d=[],f=[];if(!(c.length<3)){for(var p=0,g=0;g<c.length;g++){var m=c[g];d[p++]=m[0],d[p++]=m[1]}for(g=0;g<h.length;g++)if(!(h[g].length<3)){for(var v=d.length/2,y=0;y<h[g].length;y++){m=h[g][y];d.push(m[0]),d.push(m[1])}f.push(v)}var b=Il(d,f),_=new Float64Array(d.length/2*3),x=[],w=[1/0,1/0,1/0],S=[-1/0,-1/0,-1/0],T=0;for(g=0;g<d.length;)Tu.set(x,d[g++],0,d[g++]),a&&a.transform&&Tu.transformMat4(x,x,a.transform),Tu.min(w,w,x),Tu.max(S,S,x),_[T++]=x[0],_[T++]=x[1],_[T++]=x[2];Tu.min(r,r,w),Tu.max(i,i,S),s.push({points:_,indices:b,min:w,max:S})}}this._triangulationResults.push(s)}this._geoBoundingBox=[r,i]},_getRegionPolygonInfo:function(e){for(var t=this._triangulationResults[e-this._startIndex],n=0,r=0,i=0;i<t.length;i++)n+=t[i].points.length/3,r+=t[i].indices.length/3;var a=2*n+4*n,o=2*r+2*n;return{vertexCount:a,triangleCount:o}},_updatePolygonGeometry:function(e,t,n,r,i,a,o){var s=e.get("projectUVOnGround"),l=t.attributes.position,u=t.attributes.normal,c=t.attributes.texcoord0,h=t.attributes.color,d=this._triangulationResults[n-this._startIndex],f=h.value&&o,p=t.indices,g=this.extrudeY?1:2,m=this.extrudeY?2:1,v=[this.rootNode.worldTransform.x.len(),this.rootNode.worldTransform.y.len(),this.rootNode.worldTransform.z.len()],y=Tu.mul([],this._geoBoundingBox[0],v),b=Tu.mul([],this._geoBoundingBox[1],v),_=Math.max(b[0]-y[0],b[2]-y[2]);function x(e,t,n){for(var r=e.points,a=r.length,s=[],u=[],d=0;d<a;d+=3)s[0]=r[d],s[g]=t,s[m]=r[d+2],u[0]=(r[d]*v[0]-y[0])/_,u[1]=(r[d+2]*v[m]-y[2])/_,l.set(i,s),f&&h.set(i,o),c.set(i++,u)}function w(e,t,n){var r=i;x(e,t,n);for(var o=e.indices.length,s=0;s<o;s++)p[3*a+s]=e.indices[s]+r;a+=e.indices.length/3}for(var S=this.extrudeY?[0,1,0]:[0,0,1],T=Tu.negate([],S),O=0;O<d.length;O++){var M=i,E=d[O];w(E,0,0),w(E,r,0);for(var A=E.points.length/3,C=0;C<A;C++)u.set(M+C,T),u.set(M+C+A,S);var I=[0,3,1,1,3,2],D=[[],[],[],[]],L=[],P=[],k=[],R=[],N=0;for(C=0;C<A;C++){for(var j=(C+1)%A,F=(E.points[3*j]-E.points[3*C])*v[0],z=(E.points[3*j+2]-E.points[3*C+2])*v[m],B=Math.sqrt(F*F+z*z),V=0;V<4;V++){var G=0===V||3===V,H=3*(G?C:j);D[V][0]=E.points[H],D[V][g]=V>1?r:0,D[V][m]=E.points[H+2],l.set(i+V,D[V]),s?(R[0]=(E.points[H]*v[0]-y[0])/_,R[1]=(E.points[H+2]*v[m]-y[m])/_):(R[0]=(G?N:N+B)/_,R[1]=(D[V][g]*v[g]-y[g])/_),c.set(i+V,R)}Tu.sub(L,D[1],D[0]),Tu.sub(P,D[3],D[0]),Tu.cross(k,L,P),Tu.normalize(k,k);for(V=0;V<4;V++)u.set(i+V,k),f&&h.set(i+V,o);for(V=0;V<6;V++)p[3*a+V]=I[V]+i;i+=4,a+=2,N+=B}}return t.dirty(),{vertexOffset:i,triangleOffset:a}},_getRegionLinesInfo:function(e,t,n){var r=0,i=0,a=t.getRegionModel(e),o=a.getModel("itemStyle"),s=o.get("borderWidth");if(s>0){var l=t.getRegionPolygonCoords(e);l.forEach((function(e){var t=e.exterior,a=e.interiors;r+=n.getPolylineVertexCount(t),i+=n.getPolylineTriangleCount(t);for(var o=0;o<a.length;o++)r+=n.getPolylineVertexCount(a[o]),i+=n.getPolylineTriangleCount(a[o])}),this)}return{vertexCount:r,triangleCount:i}},_updateLinesGeometry:function(e,t,n,r,i,a){function o(e){for(var t=new Float64Array(3*e.length),n=0,i=[],o=0;o<e.length;o++)i[0]=e[o][0],i[1]=r+.1,i[2]=e[o][1],a&&Tu.transformMat4(i,i,a),t[n++]=i[0],t[n++]=i[1],t[n++]=i[2];return t}var s=[1,1,1,1],l=t.getRegionPolygonCoords(n);l.forEach((function(t){var n=t.exterior,r=t.interiors;e.addPolyline(o(n),s,i);for(var a=0;a<r.length;a++)e.addPolyline(o(r[a]),s,i)}))},highlight:function(e){var t=this._data;if(t){var n=t.getItemModel(e),i=n.getModel(["emphasis","itemStyle"]),a=i.get("color"),o=Di.firstNotNull(i.get("opacity"),bu(t,e),1);if(null==a){var s=yu(t,e);a=r["i"].lift(s,-.4)}null==o&&(o=bu(t,e));var l=xa.parseColor(a);l[3]*=o,this._setColorOfDataIndex(t,e,l)}},downplay:function(e){var t=this._data;if(t){var n=Di.firstNotNull(yu(t,e),t.getItemModel(e).get(["itemStyle","color"]),"#fff"),r=Di.firstNotNull(bu(t,e),1),i=xa.parseColor(n);i[3]*=r,this._setColorOfDataIndex(t,e,i)}},_setColorOfDataIndex:function(e,t,n){if(!(t<this._startIndex&&t>this._endIndex)){t-=this._startIndex;for(var r=this._vertexRangeOfDataIndex[2*t];r<this._vertexRangeOfDataIndex[2*t+1];r++)this._polygonMesh.geometry.attributes.color.set(r,n);this._polygonMesh.geometry.dirty(),this._api.getZr().refresh()}}};var Mu=Ou,Eu=r["d"].extend({type:"geo3D",__ecgl__:!0,init:function(e,t){this._geo3DBuilder=new Mu(t),this.groupGL=new xa.Node,this._lightRoot=new xa.Node,this._sceneHelper=new ao(this._lightRoot),this._sceneHelper.initLight(this._lightRoot),this._control=new Ya({zr:t.getZr()}),this._control.init()},render:function(e,t,n){this.groupGL.add(this._geo3DBuilder.rootNode);var r=e.coordinateSystem;if(r&&r.viewGL){r.viewGL.add(this._lightRoot),e.get("show")?r.viewGL.add(this.groupGL):r.viewGL.remove(this.groupGL);var i=this._control;i.setViewGL(r.viewGL);var a=e.getModel("viewControl");i.setFromViewControlModel(a,0),this._sceneHelper.setScene(r.viewGL.scene),this._sceneHelper.updateLight(e),r.viewGL.setPostEffect(e.getModel("postEffect"),n),r.viewGL.setTemporalSuperSampling(e.getModel("temporalSuperSampling")),this._geo3DBuilder.update(e,t,n,0,e.getData().count());var o=r.viewGL.isLinearSpace()?"define":"undefine";this._geo3DBuilder.rootNode.traverse((function(e){e.material&&e.material[o]("fragment","SRGB_DECODE")})),i.off("update"),i.on("update",(function(){n.dispatchAction({type:"geo3DChangeCamera",alpha:i.getAlpha(),beta:i.getBeta(),distance:i.getDistance(),center:i.getCenter(),from:this.uid,geo3DId:e.id})})),i.update()}},afterRender:function(e,t,n,r){var i=r.renderer;this._sceneHelper.updateAmbientCubemap(i,e,n),this._sceneHelper.updateSkybox(i,e,n)},dispose:function(){this._control.dispose()}}),Au=n("3gt4"),Cu=n("IuL5"),Iu=Za.vec3,Du=Za.mat4,Lu=[Au["a"],Cu["a"]];function Pu(e,t,n,r,i){this.name=e,this.map=t,this.regionHeight=0,this.regions=[],this._nameCoordMap={},this.loadGeoJson(n,r,i),this.transform=Du.identity(new Float64Array(16)),this.invTransform=Du.identity(new Float64Array(16)),this.extrudeY=!0,this.altitudeAxis}Pu.prototype={constructor:Pu,type:"geo3D",dimensions:["lng","lat","alt"],containPoint:function(){},loadGeoJson:function(e,t,n){var i=r["F"]||r["G"];try{this.regions=e?i(e):[]}catch(c){throw"Invalid geoJson format\n"+c}t=t||{},n=n||{};for(var a=this.regions,o={},s=0;s<a.length;s++){var l=a[s].name;l=n[l]||l,a[s].name=l,o[l]=a[s],this.addGeoCoord(l,a[s].center);var u=t[l];u&&a[s].transformTo(u.left,u.top,u.width,u.height)}this._regionsMap=o,this._geoRect=null,Lu.forEach((function(e){e(this)}),this)},getGeoBoundingRect:function(){if(this._geoRect)return this._geoRect;for(var e,t=this.regions,n=0;n<t.length;n++){var i=t[n].getBoundingRect();e=e||i.clone(),e.union(i)}return this._geoRect=e||new r["z"].BoundingRect(0,0,0,0)},addGeoCoord:function(e,t){this._nameCoordMap[e]=t},getRegion:function(e){return this._regionsMap[e]},getRegionByCoord:function(e){for(var t=this.regions,n=0;n<t.length;n++)if(t[n].contain(e))return t[n]},setSize:function(e,t,n){this.size=[e,t,n];var r=this.getGeoBoundingRect(),i=e/r.width,a=-n/r.height,o=-e/2-r.x*i,s=n/2-r.y*a,l=this.extrudeY?[o,0,s]:[o,s,0],u=this.extrudeY?[i,1,a]:[i,a,1],c=this.transform;Du.identity(c),Du.translate(c,c,l),Du.scale(c,c,u),Du.invert(this.invTransform,c)},dataToPoint:function(e,t){t=t||[];var n=this.extrudeY?1:2,r=this.extrudeY?2:1,i=e[2];return isNaN(i)&&(i=0),t[0]=e[0],t[r]=e[1],this.altitudeAxis?t[n]=this.altitudeAxis.dataToCoord(i):t[n]=0,t[n]+=this.regionHeight,Iu.transformMat4(t,t,this.transform),t},pointToData:function(e,t){}};var ku=Pu;function Ru(e,t){var n=e.getBoxLayoutParams(),r=Object(ko["g"])(n,{width:t.getWidth(),height:t.getHeight()});r.y=t.getHeight()-r.y-r.height,this.viewGL.setViewport(r.x,r.y,r.width,r.height,t.getDevicePixelRatio());var i=this.getGeoBoundingRect(),a=i.width/i.height*(e.get("aspectScale")||.75),o=e.get("boxWidth"),s=e.get("boxDepth"),l=e.get("boxHeight");null==l&&(l=5),isNaN(o)&&isNaN(s)&&(o=100),isNaN(s)?s=o/a:isNaN(o)&&(o=s/a),this.setSize(o,l,s),this.regionHeight=e.get("regionHeight"),this.altitudeAxis&&this.altitudeAxis.setExtent(0,Math.max(l-this.regionHeight,0))}function Nu(e,t){var n=[1/0,-1/0];if(e.eachSeries((function(e){if(e.coordinateSystem===this&&"series.map3D"!==e.type){var t=e.getData(),r=e.coordDimToDataDim("alt"),i=r&&r[0];if(i){var a=t.getDataExtent(i,!0);n[0]=Math.min(n[0],a[0]),n[1]=Math.max(n[1],a[1])}}}),this),n&&isFinite(n[1]-n[0])){var i=r["A"].createScale(n,{type:"value",min:"dataMin",max:"dataMax"});this.altitudeAxis=new r["a"]("altitude",i),this.resize(this.model,t)}}var ju=0,Fu={dimensions:ku.prototype.dimensions,create:function(e,t){var n=[];if(!r["y"])throw new Error("geo3D component depends on geo component");function i(e,r){var i=Fu.createGeo3D(e);e.__viewGL=e.__viewGL||new ll,i.viewGL=e.__viewGL,e.coordinateSystem=i,i.model=e,n.push(i),i.resize=Ru,i.resize(e,t),i.update=Nu}return e.eachComponent("geo3D",(function(e,t){i(e,t)})),e.eachSeriesByType("map3D",(function(e,t){var n=e.get("coordinateSystem");null==n&&(n="geo3D"),"geo3D"===n&&i(e,t)})),e.eachSeries((function(t){if("geo3D"===t.get("coordinateSystem")){if("series.map3D"===t.type)return;var n=t.getReferringComponents("geo3D").models[0];if(n||(n=e.getComponent("geo3D")),!n)throw new Error('geo "'+Di.firstNotNull(t.get("geo3DIndex"),t.get("geo3DId"),0)+'" not found');t.coordinateSystem=n.coordinateSystem}})),n},createGeo3D:function(e){var t,n=e.get("map");return"string"===typeof n?(t=n,n=r["y"](n)):n&&n.features&&(n={geoJson:n}),null==t&&(t="GEO_ANONYMOUS_"+ju++),new ku(t+ju++,t,n&&n.geoJson,n&&n.specialAreas,e.get("nameMap"))}},zu=Fu;function Bu(e){e.registerComponentModel(Cl),e.registerComponentView(Eu),e.registerAction({type:"geo3DChangeCamera",event:"geo3dcamerachanged",update:"series:updateCamera"},(function(e,t){t.eachComponent({mainType:"geo3D",query:e},(function(t){t.setView(e)}))})),e.registerCoordinateSystem("geo3D",zu)}function Vu(e,t){e.id=e.id||e.name||t+""}Object(r["X"])(Bu);var Gu=r["c"].extend({type:"globe",layoutMode:"box",coordinateSystem:null,init:function(){Gu.superApply(this,"init",arguments),r["Y"].each(this.option.layers,(function(e,t){r["Y"].merge(e,this.defaultLayerOption),Vu(e,t)}),this)},mergeOption:function(e){var t=this.option.layers;function n(e){return r["Y"].reduce(e,(function(e,t,n){return Vu(t,n),e[t.id]=t,e}),{})}if(this.option.layers=null,Gu.superApply(this,"mergeOption",arguments),t&&t.length){var i=n(e.layers),a=n(t);for(var o in i)a[o]?r["Y"].merge(a[o],i[o],!0):t.push(e.layers[o]);this.option.layers=t}r["Y"].each(this.option.layers,(function(e){r["Y"].merge(e,this.defaultLayerOption)}),this)},optionUpdated:function(){this.updateDisplacementHash()},defaultLayerOption:{show:!0,type:"overlay"},defaultOption:{show:!0,zlevel:-10,left:0,top:0,width:"100%",height:"100%",environment:"auto",baseColor:"#fff",baseTexture:"",heightTexture:"",displacementTexture:"",displacementScale:0,displacementQuality:"medium",globeRadius:100,globeOuterRadius:150,shading:"lambert",light:{main:{time:""}},atmosphere:{show:!1,offset:5,color:"#ffffff",glowPower:6,innerGlowPower:2},viewControl:{autoRotate:!0,panSensitivity:0,targetCoord:null},layers:[]},setDisplacementData:function(e,t,n){this.displacementData=e,this.displacementWidth=t,this.displacementHeight=n},getDisplacementTexture:function(){return this.get("displacementTexture")||this.get("heightTexture")},getDisplacemenScale:function(){var e=this.getDisplacementTexture(),t=this.get("displacementScale");return e&&"none"!==e||(t=0),t},hasDisplacement:function(){return this.getDisplacemenScale()>0},_displacementChanged:!0,_displacementScale:0,updateDisplacementHash:function(){var e=this.getDisplacementTexture(),t=this.getDisplacemenScale();this._displacementChanged=this._displacementTexture!==e||this._displacementScale!==t,this._displacementTexture=e,this._displacementScale=t},isDisplacementChanged:function(){return this._displacementChanged}});r["Y"].merge(Gu.prototype,ja),r["Y"].merge(Gu.prototype,Fa),r["Y"].merge(Gu.prototype,za),r["Y"].merge(Gu.prototype,Ml);var Hu=Gu,Uu=Math.PI,Wu=Math.sin,Xu=Math.cos,Yu=Math.tan,Ku=Math.asin,qu=Math.atan2,Zu=Uu/180,$u=864e5,Qu=2440588,Ju=2451545;function ec(e){return e.valueOf()/$u-.5+Qu}function tc(e){return ec(e)-Ju}var nc=23.4397*Zu;function rc(e,t){return qu(Wu(e)*Xu(nc)-Yu(t)*Wu(nc),Xu(e))}function ic(e,t){return Ku(Wu(t)*Xu(nc)+Xu(t)*Wu(nc)*Wu(e))}function ac(e,t,n){return qu(Wu(e),Xu(e)*Wu(t)-Yu(n)*Xu(t))}function oc(e,t,n){return Ku(Wu(t)*Wu(n)+Xu(t)*Xu(n)*Xu(e))}function sc(e,t){return Zu*(280.16+360.9856235*e)-t}function lc(e){return Zu*(357.5291+.98560028*e)}function uc(e){var t=Zu*(1.9148*Wu(e)+.02*Wu(2*e)+3e-4*Wu(3*e)),n=102.9372*Zu;return e+t+n+Uu}function cc(e){var t=lc(e),n=uc(t);return{dec:ic(n,0),ra:rc(n,0)}}var hc={getPosition:function(e,t,n){var r=Zu*-n,i=Zu*t,a=tc(e),o=cc(a),s=sc(a,r)-o.ra;return{azimuth:ac(s,i,o.dec),altitude:oc(s,i,o.dec)}}},dc=hc,fc="@export ecgl.atmosphere.vertex\nattribute vec3 position: POSITION;\nattribute vec3 normal : NORMAL;\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform mat4 normalMatrix : WORLDINVERSETRANSPOSE;\n\nvarying vec3 v_Normal;\n\nvoid main() {\n v_Normal = normalize((normalMatrix * vec4(normal, 0.0)).xyz);\n gl_Position = worldViewProjection * vec4(position, 1.0);\n}\n@end\n\n\n@export ecgl.atmosphere.fragment\nuniform mat4 viewTranspose: VIEWTRANSPOSE;\nuniform float glowPower;\nuniform vec3 glowColor;\n\nvarying vec3 v_Normal;\n\nvoid main() {\n float intensity = pow(1.0 - dot(v_Normal, (viewTranspose * vec4(0.0, 0.0, 1.0, 0.0)).xyz), glowPower);\n gl_FragColor = vec4(glowColor, intensity * intensity);\n}\n@end";xa.Shader["import"](aa),xa.Shader["import"](fc);var pc=r["d"].extend({type:"globe",__ecgl__:!0,_displacementScale:0,init:function(e,t){this.groupGL=new xa.Node,this._sphereGeometry=new xa.SphereGeometry({widthSegments:200,heightSegments:100,dynamic:!0}),this._overlayGeometry=new xa.SphereGeometry({widthSegments:80,heightSegments:40}),this._planeGeometry=new xa.PlaneGeometry,this._earthMesh=new xa.Mesh({renderNormal:!0}),this._atmosphereMesh=new xa.Mesh,this._atmosphereGeometry=new xa.SphereGeometry({widthSegments:80,heightSegments:40}),this._atmosphereMaterial=new xa.Material({shader:new xa.Shader(xa.Shader.source("ecgl.atmosphere.vertex"),xa.Shader.source("ecgl.atmosphere.fragment")),transparent:!0}),this._atmosphereMesh.geometry=this._atmosphereGeometry,this._atmosphereMesh.material=this._atmosphereMaterial,this._atmosphereMesh.frontFace=xa.Mesh.CW,this._lightRoot=new xa.Node,this._sceneHelper=new ao,this._sceneHelper.initLight(this._lightRoot),this.groupGL.add(this._atmosphereMesh),this.groupGL.add(this._earthMesh),this._control=new Ya({zr:t.getZr()}),this._control.init(),this._layerMeshes={}},render:function(e,t,n){var r=e.coordinateSystem,i=e.get("shading");r.viewGL.add(this._lightRoot),e.get("show")?r.viewGL.add(this.groupGL):r.viewGL.remove(this.groupGL),this._sceneHelper.setScene(r.viewGL.scene),r.viewGL.setPostEffect(e.getModel("postEffect"),n),r.viewGL.setTemporalSuperSampling(e.getModel("temporalSuperSampling"));var a=this._earthMesh;a.geometry=this._sphereGeometry;var o="ecgl."+i;a.material&&a.material.shader.name===o||(a.material=xa.createMaterial(o)),xa.setMaterialFromModel(i,a.material,e,n),["roughnessMap","metalnessMap","detailMap","normalMap"].forEach((function(e){var t=a.material.get(e);t&&(t.flipY=!1)})),a.material.set("color",xa.parseColor(e.get("baseColor")));var s=.99*r.radius;if(a.scale.set(s,s,s),e.get("atmosphere.show")){a.material.define("both","ATMOSPHERE_ENABLED"),this._atmosphereMesh.invisible=!1,this._atmosphereMaterial.setUniforms({glowPower:e.get("atmosphere.glowPower")||6,glowColor:e.get("atmosphere.color")||"#ffffff"}),a.material.setUniforms({glowPower:e.get("atmosphere.innerGlowPower")||2,glowColor:e.get("atmosphere.color")||"#ffffff"});var l=e.get("atmosphere.offset")||5;this._atmosphereMesh.scale.set(s+l,s+l,s+l)}else a.material.undefine("both","ATMOSPHERE_ENABLED"),this._atmosphereMesh.invisible=!0;var u=a.material.setTextureImage("diffuseMap",e.get("baseTexture"),n,{flipY:!1,anisotropic:8});u&&u.surface&&u.surface.attachToMesh(a);var c=a.material.setTextureImage("bumpMap",e.get("heightTexture"),n,{flipY:!1,anisotropic:8});c&&c.surface&&c.surface.attachToMesh(a),a.material[e.get("postEffect.enable")?"define":"undefine"]("fragment","SRGB_DECODE"),this._updateLight(e,n),this._displaceVertices(e,n),this._updateViewControl(e,n),this._updateLayers(e,n)},afterRender:function(e,t,n,r){var i=r.renderer;this._sceneHelper.updateAmbientCubemap(i,e,n),this._sceneHelper.updateSkybox(i,e,n)},_updateLayers:function(e,t){var n=e.coordinateSystem,i=e.get("layers"),a=n.radius,o=[],s=[],l=[],u=[];r["Y"].each(i,(function(e){var i=new r["f"](e),c=i.get("type"),h=xa.loadTexture(i.get("texture"),t,{flipY:!1,anisotropic:8});if(h.surface&&h.surface.attachToMesh(this._earthMesh),"blend"===c){var d=i.get("blendTo"),f=Di.firstNotNull(i.get("intensity"),1);"emission"===d?(l.push(h),u.push(f)):(o.push(h),s.push(f))}else{var p=i.get("id"),g=this._layerMeshes[p];g||(g=this._layerMeshes[p]=new xa.Mesh({geometry:this._overlayGeometry,castShadow:!1,ignorePicking:!0}));var m=i.get("shading");"lambert"===m?(g.material=g.__lambertMaterial||new xa.Material({autoUpdateTextureStatus:!1,shader:xa.createShader("ecgl.lambert"),transparent:!0,depthMask:!1}),g.__lambertMaterial=g.material):(g.material=g.__colorMaterial||new xa.Material({autoUpdateTextureStatus:!1,shader:xa.createShader("ecgl.color"),transparent:!0,depthMask:!1}),g.__colorMaterial=g.material),g.material.enableTexture("diffuseMap");var v=i.get("distance"),y=a+(null==v?n.radius/100:v);g.scale.set(y,y,y),a=y;var b=this._blankTexture||(this._blankTexture=xa.createBlankTexture("rgba(255, 255, 255, 0)"));g.material.set("diffuseMap",b),xa.loadTexture(i.get("texture"),t,{flipY:!1,anisotropic:8},(function(e){e.surface&&e.surface.attachToMesh(g),g.material.set("diffuseMap",e),t.getZr().refresh()})),i.get("show")?this.groupGL.add(g):this.groupGL.remove(g)}}),this);var c=this._earthMesh.material;c.define("fragment","LAYER_DIFFUSEMAP_COUNT",o.length),c.define("fragment","LAYER_EMISSIVEMAP_COUNT",l.length),c.set("layerDiffuseMap",o),c.set("layerDiffuseIntensity",s),c.set("layerEmissiveMap",l),c.set("layerEmissionIntensity",u);var h=e.getModel("debug.wireframe");if(h.get("show")){c.define("both","WIREFRAME_TRIANGLE");var d=xa.parseColor(h.get("lineStyle.color")||"rgba(0,0,0,0.5)"),f=Di.firstNotNull(h.get("lineStyle.width"),1);c.set("wireframeLineWidth",f),c.set("wireframeLineColor",d)}else c.undefine("both","WIREFRAME_TRIANGLE")},_updateViewControl:function(e,t){var n=e.coordinateSystem,r=e.getModel("viewControl"),i=(n.viewGL.camera,this);function a(){return{type:"globeChangeCamera",alpha:o.getAlpha(),beta:o.getBeta(),distance:o.getDistance()-n.radius,center:o.getCenter(),from:i.uid,globeId:e.id}}var o=this._control;o.setViewGL(n.viewGL);var s,l,u=r.get("targetCoord");null!=u&&(l=u[0]+90,s=u[1]),o.setFromViewControlModel(r,{baseDistance:n.radius,alpha:s,beta:l}),o.off("update"),o.on("update",(function(){t.dispatchAction(a())}))},_displaceVertices:function(e,t){var n=e.get("displacementQuality"),r=e.get("debug.wireframe.show"),i=e.coordinateSystem;if(e.isDisplacementChanged()||n!==this._displacementQuality||r!==this._showDebugWireframe){this._displacementQuality=n,this._showDebugWireframe=r;var a=this._sphereGeometry,o={low:100,medium:200,high:400,ultra:800}[n]||200,s=o/2;(a.widthSegments!==o||r)&&(a.widthSegments=o,a.heightSegments=s,a.build()),this._doDisplaceVertices(a,i),r&&a.generateBarycentric()}},_doDisplaceVertices:function(e,t){var n=e.attributes.position.value,r=e.attributes.texcoord0.value,i=e.__originalPosition;i&&i.length===n.length||(i=new Float32Array(n.length),i.set(n),e.__originalPosition=i);for(var a=t.displacementWidth,o=t.displacementHeight,s=t.displacementData,l=0;l<e.vertexCount;l++){var u=3*l,c=2*l,h=i[u+1],d=i[u+2],f=i[u+3],p=r[c++],g=r[c++],m=Math.round(p*(a-1)),v=Math.round(g*(o-1)),y=v*a+m,b=s?s[y]:0;n[u+1]=h+h*b,n[u+2]=d+d*b,n[u+3]=f+f*b}e.generateVertexNormals(),e.dirty(),e.updateBoundingBox()},_updateLight:function(e,t){var n=this._earthMesh;this._sceneHelper.updateLight(e);var i=this._sceneHelper.mainLight,a=e.get("light.main.time")||new Date,o=dc.getPosition(r["E"].parseDate(a),0,0),s=Math.cos(o.altitude);i.position.y=-s*Math.cos(o.azimuth),i.position.x=Math.sin(o.altitude),i.position.z=s*Math.sin(o.azimuth),i.lookAt(n.getWorldPosition())},dispose:function(e,t){this.groupGL.removeAll(),this._control.dispose()}}),gc=Za.vec3;function mc(e){this.radius=e,this.viewGL=null,this.altitudeAxis,this.displacementData=null,this.displacementWidth,this.displacementHeight}mc.prototype={constructor:mc,dimensions:["lng","lat","alt"],type:"globe",containPoint:function(){},setDisplacementData:function(e,t,n){this.displacementData=e,this.displacementWidth=t,this.displacementHeight=n},_getDisplacementScale:function(e,t){var n=(e+180)/360*(this.displacementWidth-1),r=(90-t)/180*(this.displacementHeight-1),i=Math.round(n)+Math.round(r)*this.displacementWidth;return this.displacementData[i]},dataToPoint:function(e,t){var n=e[0],r=e[1],i=e[2]||0,a=this.radius;this.displacementData&&(a*=1+this._getDisplacementScale(n,r)),this.altitudeAxis&&(a+=this.altitudeAxis.dataToCoord(i)),n=n*Math.PI/180,r=r*Math.PI/180;var o=Math.cos(r)*a;return t=t||[],t[0]=-o*Math.cos(n+Math.PI),t[1]=Math.sin(r)*a,t[2]=o*Math.sin(n+Math.PI),t},pointToData:function(e,t){var n=e[0],r=e[1],i=e[2],a=gc.len(e);n/=a,r/=a,i/=a;var o=Math.asin(r),s=Math.atan2(i,-n);s<0&&(s=2*Math.PI+s);var l=180*o/Math.PI,u=180*s/Math.PI-180;return t=t||[],t[0]=u,t[1]=l,t[2]=a-this.radius,this.altitudeAxis&&(t[2]=this.altitudeAxis.coordToData(t[2])),t}};var vc=mc;function yc(e,t){var n=document.createElement("canvas"),r=n.getContext("2d"),i=e.width,a=e.height;n.width=i,n.height=a,r.drawImage(e,0,0,i,a);for(var o=r.getImageData(0,0,i,a).data,s=new Float32Array(o.length/4),l=0;l<o.length/4;l++){var u=o[4*l];s[l]=u/255*t}return{data:s,width:i,height:a}}function bc(e,t){var n=e.getBoxLayoutParams(),r=Object(ko["g"])(n,{width:t.getWidth(),height:t.getHeight()});r.y=t.getHeight()-r.y-r.height,this.viewGL.setViewport(r.x,r.y,r.width,r.height,t.getDevicePixelRatio()),this.radius=e.get("globeRadius");var i=e.get("globeOuterRadius");this.altitudeAxis&&this.altitudeAxis.setExtent(0,i-this.radius)}function _c(e,t){var n=[1/0,-1/0];if(e.eachSeries((function(e){if(e.coordinateSystem===this){var t=e.getData(),r=e.coordDimToDataDim("alt"),i=r&&r[0];if(i){var a=t.getDataExtent(i,!0);n[0]=Math.min(n[0],a[0]),n[1]=Math.max(n[1],a[1])}}}),this),n&&isFinite(n[1]-n[0])){var i=r["A"].createScale(n,{type:"value",min:"dataMin",max:"dataMax"});this.altitudeAxis=new r["a"]("altitude",i),this.resize(this.model,t)}}var xc={dimensions:vc.prototype.dimensions,create:function(e,t){var n=[];return e.eachComponent("globe",(function(e){e.__viewGL=e.__viewGL||new ll;var r=new vc;r.viewGL=e.__viewGL,e.coordinateSystem=r,r.model=e,n.push(r),r.resize=bc,r.resize(e,t),r.update=_c})),e.eachSeries((function(t){if("globe"===t.get("coordinateSystem")){var n=t.getReferringComponents("globe").models[0];if(n||(n=e.getComponent("globe")),!n)throw new Error('globe "'+Di.firstNotNull(t.get("globe3DIndex"),t.get("globe3DId"),0)+'" not found');var r=n.coordinateSystem;t.coordinateSystem=r}})),e.eachComponent("globe",(function(e,n){var r=e.coordinateSystem,i=e.getDisplacementTexture(),a=e.getDisplacemenScale();if(e.isDisplacementChanged()){if(e.hasDisplacement()){var o=!0;xa.loadTexture(i,t,(function(n){var r=n.image,i=yc(r,a);e.setDisplacementData(i.data,i.width,i.height),o||t.dispatchAction({type:"globeUpdateDisplacment"})})),o=!1}else r.setDisplacementData(null,0,0);r.setDisplacementData(e.displacementData,e.displacementWidth,e.displacementHeight)}})),n}},wc=xc;function Sc(e){e.registerComponentModel(Hu),e.registerComponentView(pc),e.registerCoordinateSystem("globe",wc),e.registerAction({type:"globeChangeCamera",event:"globecamerachanged",update:"series:updateCamera"},(function(e,t){t.eachComponent({mainType:"globe",query:e},(function(t){t.setView(e)}))})),e.registerAction({type:"globeUpdateDisplacment",event:"globedisplacementupdated",update:"update"},(function(e,t){}))}Object(r["X"])(Sc);var Tc=["zoom","center","pitch","bearing"],Oc=r["c"].extend({type:"mapbox3D",layoutMode:"box",coordinateSystem:null,defaultOption:{zlevel:-10,style:"mapbox://styles/mapbox/light-v9",center:[0,0],zoom:0,pitch:0,bearing:0,light:{main:{alpha:20,beta:30}},altitudeScale:1,boxHeight:"auto"},getMapboxCameraOption:function(){var e=this;return Tc.reduce((function(t,n){return t[n]=e.get(n),t}),{})},setMapboxCameraOption:function(e){null!=e&&Tc.forEach((function(t){null!=e[t]&&(this.option[t]=e[t])}),this)},getMapbox:function(){return this._mapbox},setMapbox:function(e){this._mapbox=e}});r["Y"].merge(Oc.prototype,Fa),r["Y"].merge(Oc.prototype,za);var Mc=Oc;function Ec(e,t){if(this.id=e,this.zr=t,this.dom=document.createElement("div"),this.dom.style.cssText="position:absolute;left:0;right:0;top:0;bottom:0;",!mapboxgl)throw new Error("Mapbox GL library must be included. See https://www.mapbox.com/mapbox-gl-js/api/");this._mapbox=new mapboxgl.Map({container:this.dom}),this._initEvents()}Ec.prototype.resize=function(){this._mapbox.resize()},Ec.prototype.getMapbox=function(){return this._mapbox},Ec.prototype.clear=function(){},Ec.prototype.refresh=function(){this._mapbox.resize()};var Ac=["mousedown","mouseup","click","dblclick","mousemove","mousewheel","wheel","touchstart","touchend","touchmove","touchcancel"];Ec.prototype._initEvents=function(){var e=this._mapbox.getCanvasContainer();this._handlers=this._handlers||{contextmenu:function(e){return e.preventDefault(),!1}},Ac.forEach((function(t){this._handlers[t]=function(t){var n={};for(var r in t)n[r]=t[r];n.bubbles=!1;var i=new t.constructor(t.type,n);e.dispatchEvent(i)},this.zr.dom.addEventListener(t,this._handlers[t])}),this),this.zr.dom.addEventListener("contextmenu",this._handlers.contextmenu)},Ec.prototype.dispose=function(){Ac.forEach((function(e){this.zr.dom.removeEventListener(e,this._handlers[e])}),this)};var Cc=Ec,Ic="\n@export ecgl.displayShadow.vertex\n\n@import ecgl.common.transformUniforms\n\n@import ecgl.common.uv.header\n\n@import ecgl.common.attributes\n\nvarying vec3 v_WorldPosition;\n\nvarying vec3 v_Normal;\n\nvoid main()\n{\n @import ecgl.common.uv.main\n v_Normal = normalize((worldInverseTranspose * vec4(normal, 0.0)).xyz);\n\n v_WorldPosition = (world * vec4(position, 1.0)).xyz;\n gl_Position = worldViewProjection * vec4(position, 1.0);\n}\n\n@end\n\n\n@export ecgl.displayShadow.fragment\n\n@import ecgl.common.uv.fragmentHeader\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\nuniform float roughness: 0.2;\n\n#ifdef DIRECTIONAL_LIGHT_COUNT\n@import clay.header.directional_light\n#endif\n\n@import ecgl.common.ssaoMap.header\n\n@import clay.plugin.compute_shadow_map\n\nvoid main()\n{\n float shadow = 1.0;\n\n @import ecgl.common.ssaoMap.main\n\n#if defined(DIRECTIONAL_LIGHT_COUNT) && defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT];\n if(shadowEnabled)\n {\n computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir);\n }\n for (int i = 0; i < DIRECTIONAL_LIGHT_COUNT; i++) {\n shadow = min(shadow, shadowContribsDir[i] * 0.5 + 0.5);\n }\n#endif\n\n shadow *= 0.5 + ao * 0.5;\n shadow = clamp(shadow, 0.0, 1.0);\n\n gl_FragColor = vec4(vec3(0.0), 1.0 - shadow);\n}\n\n@end";xa.Shader["import"](Ic);var Dc=r["d"].extend({type:"mapbox3D",__ecgl__:!0,init:function(e,t){var n=t.getZr();this._zrLayer=new Cc("mapbox3D",n),n.painter.insertLayer(-1e3,this._zrLayer),this._lightRoot=new xa.Node,this._sceneHelper=new ao(this._lightRoot),this._sceneHelper.initLight(this._lightRoot);var r=this._zrLayer.getMapbox(),i=this._dispatchInteractAction.bind(this,t,r);["zoom","rotate","drag","pitch","rotate","move"].forEach((function(e){r.on(e,i)})),this._groundMesh=new xa.Mesh({geometry:new xa.PlaneGeometry,material:new xa.Material({shader:new xa.Shader({vertex:xa.Shader.source("ecgl.displayShadow.vertex"),fragment:xa.Shader.source("ecgl.displayShadow.fragment")}),depthMask:!1}),renderOrder:-100,culling:!1,castShadow:!1,$ignorePicking:!0,renderNormal:!0})},render:function(e,t,n){var r=this._zrLayer.getMapbox(),i=e.get("style"),a=JSON.stringify(i);a!==this._oldStyleStr&&i&&r.setStyle(i),this._oldStyleStr=a,r.setCenter(e.get("center")),r.setZoom(e.get("zoom")),r.setPitch(e.get("pitch")),r.setBearing(e.get("bearing")),e.setMapbox(r);var o=e.coordinateSystem;o.viewGL.scene.add(this._lightRoot),o.viewGL.add(this._groundMesh),this._updateGroundMesh(),this._sceneHelper.setScene(o.viewGL.scene),this._sceneHelper.updateLight(e),o.viewGL.setPostEffect(e.getModel("postEffect"),n),o.viewGL.setTemporalSuperSampling(e.getModel("temporalSuperSampling")),this._mapbox3DModel=e},afterRender:function(e,t,n,r){var i=r.renderer;this._sceneHelper.updateAmbientCubemap(i,e,n),this._sceneHelper.updateSkybox(i,e,n),e.coordinateSystem.viewGL.scene.traverse((function(e){e.material&&(e.material.define("fragment","NORMAL_UP_AXIS",2),e.material.define("fragment","NORMAL_FRONT_AXIS",1))}))},updateCamera:function(e,t,n,r){e.coordinateSystem.setCameraOption(r),this._updateGroundMesh(),n.getZr().refresh()},_dispatchInteractAction:function(e,t,n){e.dispatchAction({type:"mapbox3DChangeCamera",pitch:t.getPitch(),zoom:t.getZoom(),center:t.getCenter().toArray(),bearing:t.getBearing(),mapbox3DId:this._mapbox3DModel&&this._mapbox3DModel.id})},_updateGroundMesh:function(){if(this._mapbox3DModel){var e=this._mapbox3DModel.coordinateSystem,t=e.dataToPoint(e.center);this._groundMesh.position.set(t[0],t[1],-.001);var n=new xa.Plane(new xa.Vector3(0,0,1),0),r=e.viewGL.camera.castRay(new xa.Vector2(-1,-1)),i=e.viewGL.camera.castRay(new xa.Vector2(1,1)),a=r.intersectPlane(n),o=i.intersectPlane(n),s=a.dist(o)/e.viewGL.rootNode.scale.x;this._groundMesh.scale.set(s,s,1)}},dispose:function(e,t){this._zrLayer&&this._zrLayer.dispose(),t.getZr().painter.delLayer(-1e3)}}),Lc=Za.mat4,Pc=512,kc=.6435011087932844,Rc=Math.PI,Nc=.1;function jc(){this.width=0,this.height=0,this.altitudeScale=1,this.boxHeight="auto",this.altitudeExtent,this.bearing=0,this.pitch=0,this.center=[0,0],this._origin,this.zoom=0,this._initialZoom,this.maxPitch=60,this.zoomOffset=0}jc.prototype={constructor:jc,dimensions:["lng","lat","alt"],containPoint:function(){},setCameraOption:function(e){this.bearing=e.bearing,this.pitch=e.pitch,this.center=e.center,this.zoom=e.zoom,this._origin||(this._origin=this.projectOnTileWithScale(this.center,Pc)),null==this._initialZoom&&(this._initialZoom=this.zoom),this.updateTransform()},updateTransform:function(){if(this.height){var e=.5/Math.tan(kc/2)*this.height*Nc,t=Math.max(Math.min(this.pitch,this.maxPitch),0)/180*Math.PI,n=kc/2,r=Math.PI/2+t,i=Math.sin(n)*e/Math.sin(Math.PI-r-n),a=Math.cos(Math.PI/2-t)*i+e,o=1.1*a;this.pitch>50&&(o=1e3);var s=[];Lc.perspective(s,kc,this.width/this.height,1,o),this.viewGL.camera.projectionMatrix.setArray(s),this.viewGL.camera.decomposeProjectionMatrix();s=Lc.identity([]);var l=this.dataToPoint(this.center);Lc.scale(s,s,[1,-1,1]),Lc.translate(s,s,[0,0,-e]),Lc.rotateX(s,s,t),Lc.rotateZ(s,s,-this.bearing/180*Math.PI),Lc.translate(s,s,[-l[0]*this.getScale()*Nc,-l[1]*this.getScale()*Nc,0]),this.viewGL.camera.viewMatrix.array=s;var u=[];Lc.invert(u,s),this.viewGL.camera.worldTransform.array=u,this.viewGL.camera.decomposeWorldTransform();var c,h=Pc*this.getScale();if(this.altitudeExtent&&!isNaN(this.boxHeight)){var d=this.altitudeExtent[1]-this.altitudeExtent[0];c=this.boxHeight/d*this.getScale()/Math.pow(2,this._initialZoom-this.zoomOffset)}else c=h/(2*Math.PI*6378e3*Math.abs(Math.cos(this.center[1]*(Math.PI/180))))*this.altitudeScale*Nc;this.viewGL.rootNode.scale.set(this.getScale()*Nc,this.getScale()*Nc,c)}},getScale:function(){return Math.pow(2,this.zoom-this.zoomOffset)},projectOnTile:function(e,t){return this.projectOnTileWithScale(e,this.getScale()*Pc,t)},projectOnTileWithScale:function(e,t,n){var r=e[0],i=e[1],a=r*Rc/180,o=i*Rc/180,s=t*(a+Rc)/(2*Rc),l=t*(Rc-Math.log(Math.tan(Rc/4+.5*o)))/(2*Rc);return n=n||[],n[0]=s,n[1]=l,n},unprojectFromTile:function(e,t){return this.unprojectOnTileWithScale(e,this.getScale()*Pc,t)},unprojectOnTileWithScale:function(e,t,n){var r=e[0],i=e[1],a=r/t*(2*Rc)-Rc,o=2*(Math.atan(Math.exp(Rc-i/t*(2*Rc)))-Rc/4);return n=n||[],n[0]=180*a/Rc,n[1]=180*o/Rc,n},dataToPoint:function(e,t){return t=this.projectOnTileWithScale(e,Pc,t),t[0]-=this._origin[0],t[1]-=this._origin[1],t[2]=isNaN(e[2])?0:e[2],isNaN(e[2])||(t[2]=e[2],this.altitudeExtent&&(t[2]-=this.altitudeExtent[0])),t}};var Fc=jc;function zc(){Fc.apply(this,arguments)}zc.prototype=new Fc,zc.prototype.constructor=zc,zc.prototype.type="mapbox3D";var Bc=zc,Vc=function(e,t,n){function r(e,t){var n=t.getWidth(),r=t.getHeight(),i=t.getDevicePixelRatio();this.viewGL.setViewport(0,0,n,r,i),this.width=n,this.height=r,this.altitudeScale=e.get("altitudeScale"),this.boxHeight=e.get("boxHeight")}function i(e,t){if("auto"!==this.model.get("boxHeight")){var n=[1/0,-1/0];e.eachSeries((function(e){if(e.coordinateSystem===this){var t=e.getData(),r=e.coordDimToDataDim("alt")[0];if(r){var i=t.getDataExtent(r,!0);n[0]=Math.min(n[0],i[0]),n[1]=Math.max(n[1],i[1])}}}),this),n&&isFinite(n[1]-n[0])&&(this.altitudeExtent=n)}}return{dimensions:t.prototype.dimensions,create:function(a,o){var s=[];return a.eachComponent(e,(function(e){var n=e.__viewGL;n||(n=e.__viewGL=new ll,n.setRootNode(new xa.Node));var a=new t;a.viewGL=e.__viewGL,a.resize=r,a.resize(e,o),s.push(a),e.coordinateSystem=a,a.model=e,a.update=i})),a.eachSeries((function(t){if(t.get("coordinateSystem")===e){var n=t.getReferringComponents(e).models[0];if(n||(n=a.getComponent(e)),!n)throw new Error(e+' "'+Di.firstNotNull(t.get(e+"Index"),t.get(e+"Id"),0)+'" not found');t.coordinateSystem=n.coordinateSystem}})),n&&n(s,a,o),s}}},Gc=Vc("mapbox3D",Bc,(function(e){e.forEach((function(e){e.setCameraOption(e.model.getMapboxCameraOption())}))})),Hc=Gc;function Uc(e){e.registerComponentModel(Mc),e.registerComponentView(Dc),e.registerCoordinateSystem("mapbox3D",Hc),e.registerAction({type:"mapbox3DChangeCamera",event:"mapbox3dcamerachanged",update:"mapbox3D:updateCamera"},(function(e,t){t.eachComponent({mainType:"mapbox3D",query:e},(function(t){t.setMapboxCameraOption(e)}))}))}Object(r["X"])(Uc);var Wc=["zoom","center","pitch","bearing"],Xc=r["c"].extend({type:"maptalks3D",layoutMode:"box",coordinateSystem:null,defaultOption:{zlevel:-10,urlTemplate:"http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png",attribution:'© <a href="http://osm.org">OpenStreetMap</a> contributors, © <a href="https://carto.com/">CARTO</a>',center:[0,0],zoom:0,pitch:0,bearing:0,light:{main:{alpha:20,beta:30}},altitudeScale:1,boxHeight:"auto"},getMaptalksCameraOption:function(){var e=this;return Wc.reduce((function(t,n){return t[n]=e.get(n),t}),{})},setMaptalksCameraOption:function(e){null!=e&&Wc.forEach((function(t){null!=e[t]&&(this.option[t]=e[t])}),this)},getMaptalks:function(){return this._maptalks},setMaptalks:function(e){this._maptalks=e}});r["Y"].merge(Xc.prototype,Fa),r["Y"].merge(Xc.prototype,za);var Yc=Xc;function Kc(e,t,n,r){if(this.id=e,this.zr=t,this.dom=document.createElement("div"),this.dom.style.cssText="position:absolute;left:0;right:0;top:0;bottom:0;",!maptalks)throw new Error("Maptalks library must be included. See https://maptalks.org");this._maptalks=new maptalks.Map(this.dom,{center:n,zoom:r,doubleClickZoom:!1,fog:!1}),this._initEvents()}Kc.prototype.resize=function(){this._maptalks.checkSize()},Kc.prototype.getMaptalks=function(){return this._maptalks},Kc.prototype.clear=function(){},Kc.prototype.refresh=function(){this._maptalks.checkSize()};var qc=["mousedown","mouseup","click","dblclick","mousemove","mousewheel","DOMMouseScroll","touchstart","touchend","touchmove","touchcancel"];Kc.prototype._initEvents=function(){var e=this.dom;this._handlers=this._handlers||{contextmenu:function(e){return e.preventDefault(),!1}},qc.forEach((function(t){this._handlers[t]=function(n){var r={};for(var i in n)r[i]=n[i];r.bubbles=!1;var a=new n.constructor(n.type,r);"mousewheel"===t||"DOMMouseScroll"===t?e.dispatchEvent(a):e.firstElementChild.dispatchEvent(a)},this.zr.dom.addEventListener(t,this._handlers[t])}),this),this.zr.dom.addEventListener("contextmenu",this._handlers.contextmenu)},Kc.prototype.dispose=function(){qc.forEach((function(e){this.zr.dom.removeEventListener(e,this._handlers[e])}),this),this._maptalks.remove()};var Zc=Kc;xa.Shader["import"](Ic);var $c=r["d"].extend({type:"maptalks3D",__ecgl__:!0,init:function(e,t){this._groundMesh=new xa.Mesh({geometry:new xa.PlaneGeometry,material:new xa.Material({shader:new xa.Shader({vertex:xa.Shader.source("ecgl.displayShadow.vertex"),fragment:xa.Shader.source("ecgl.displayShadow.fragment")}),depthMask:!1}),renderOrder:-100,culling:!1,castShadow:!1,$ignorePicking:!0,renderNormal:!0})},_initMaptalksLayer:function(e,t){var n=t.getZr();this._zrLayer=new Zc("maptalks3D",n,e.get("center"),e.get("zoom")),n.painter.insertLayer(-1e3,this._zrLayer),this._lightRoot=new xa.Node,this._sceneHelper=new ao(this._lightRoot),this._sceneHelper.initLight(this._lightRoot);var r=this._zrLayer.getMaptalks(),i=this._dispatchInteractAction.bind(this,t,r);["zoomend","zooming","zoomstart","dragrotating","pitch","pitchend","movestart","moving","moveend","resize","touchstart","touchmove","touchend","animating"].forEach((function(e){r.on(e,i)}))},render:function(e,t,n){this._zrLayer||this._initMaptalksLayer(e,n);var r=this._zrLayer.getMaptalks(),i=e.get("urlTemplate"),a=r.getBaseLayer();i!==this._oldUrlTemplate&&(a?a.setOptions({urlTemplate:i,attribution:e.get("attribution")}):(a=new maptalks.TileLayer("maptalks-echarts-gl-baselayer",{urlTemplate:i,subdomains:["a","b","c"],attribution:e.get("attribution")}),r.setBaseLayer(a))),this._oldUrlTemplate=i,r.setCenter(e.get("center")),r.setZoom(e.get("zoom"),{animation:!1}),r.setPitch(e.get("pitch")),r.setBearing(e.get("bearing")),e.setMaptalks(r);var o=e.coordinateSystem;o.viewGL.scene.add(this._lightRoot),o.viewGL.add(this._groundMesh),this._updateGroundMesh(),this._sceneHelper.setScene(o.viewGL.scene),this._sceneHelper.updateLight(e),o.viewGL.setPostEffect(e.getModel("postEffect"),n),o.viewGL.setTemporalSuperSampling(e.getModel("temporalSuperSampling")),this._maptalks3DModel=e},afterRender:function(e,t,n,r){var i=r.renderer;this._sceneHelper.updateAmbientCubemap(i,e,n),this._sceneHelper.updateSkybox(i,e,n),e.coordinateSystem.viewGL.scene.traverse((function(e){e.material&&(e.material.define("fragment","NORMAL_UP_AXIS",2),e.material.define("fragment","NORMAL_FRONT_AXIS",1))}))},updateCamera:function(e,t,n,r){e.coordinateSystem.setCameraOption(r),this._updateGroundMesh(),n.getZr().refresh()},_dispatchInteractAction:function(e,t,n){e.dispatchAction({type:"maptalks3DChangeCamera",pitch:t.getPitch(),zoom:Jc(t.getResolution())+1,center:t.getCenter().toArray(),bearing:t.getBearing(),maptalks3DId:this._maptalks3DModel&&this._maptalks3DModel.id})},_updateGroundMesh:function(){if(this._maptalks3DModel){var e=this._maptalks3DModel.coordinateSystem,t=e.dataToPoint(e.center);this._groundMesh.position.set(t[0],t[1],-.001);var n=new xa.Plane(new xa.Vector3(0,0,1),0),r=e.viewGL.camera.castRay(new xa.Vector2(-1,-1)),i=e.viewGL.camera.castRay(new xa.Vector2(1,1)),a=r.intersectPlane(n),o=i.intersectPlane(n),s=a.dist(o)/e.viewGL.rootNode.scale.x;this._groundMesh.scale.set(s,s,1)}},dispose:function(e,t){this._zrLayer&&this._zrLayer.dispose(),t.getZr().painter.delLayer(-1e3)}}),Qc=12756274*Math.PI/(256*Math.pow(2,20));function Jc(e){return 19-Math.log(e/Qc)/Math.LN2}function eh(){Fc.apply(this,arguments),this.maxPitch=85,this.zoomOffset=1}eh.prototype=new Fc,eh.prototype.constructor=eh,eh.prototype.type="maptalks3D";var th=eh,nh=Vc("maptalks3D",th,(function(e){e.forEach((function(e){e.setCameraOption(e.model.getMaptalksCameraOption())}))})),rh=nh;function ih(e){e.registerComponentModel(Yc),e.registerComponentView($c),e.registerCoordinateSystem("maptalks3D",rh),e.registerAction({type:"maptalks3DChangeCamera",event:"maptalks3dcamerachanged",update:"maptalks3D:updateCamera"},(function(e,t){t.eachComponent({mainType:"maptalks3D",query:e},(function(t){t.setMaptalksCameraOption(e)}))}))}Object(r["X"])(ih);var ah=Za.vec3,oh=r["A"].dataStack.isDimensionStacked;function sh(e){var t=e[0],n=e[1];return!(t>0&&n>0||t<0&&n<0)}function lh(e,t){var n=e.getData(),i=e.get("barSize");if(null==i){var a,o,s=t.size,l=t.getAxis("x"),u=t.getAxis("y");a="category"===l.type?.7*l.getBandWidth():.6*Math.round(s[0]/Math.sqrt(n.count())),o="category"===u.type?.7*u.getBandWidth():.6*Math.round(s[1]/Math.sqrt(n.count())),i=[a,o]}else r["Y"].isArray(i)||(i=[i,i]);var c=t.getAxis("z").scale.getExtent(),h=sh(c),d=["x","y","z"].map((function(t){return e.coordDimToDataDim(t)[0]})),f=oh(n,d[2]),p=f?n.getCalculationInfo("stackResultDimension"):d[2];n.each(d,(function(e,r,a,o){var s=n.get(p,o),l=f?s-a:h?0:c[0],u=t.dataToPoint([e,r,l]),d=t.dataToPoint([e,r,s]),g=ah.dist(u,d),m=[0,d[1]<u[1]?-1:1,0];0===Math.abs(g)&&(g=.1);var v=[i[0],g,i[1]];n.setItemLayout(o,[u,m,v])})),n.setLayout("orient",[1,0,0])}var uh=lh,ch=function(e,t,n){for(var r=e.getDataExtent(t),i=e.getDataExtent(n),a=r[1]-r[0]||r[0],o=i[1]-i[0]||i[0],s=50,l=new Uint8Array(s*s),u=0;u<e.count();u++){var c=e.get(t,u),h=e.get(n,u),d=Math.floor((c-r[0])/a*(s-1)),f=Math.floor((h-i[0])/o*(s-1)),p=f*s+d;l[p]=l[p]||1}var g=0;for(u=0;u<l.length;u++)l[u]&&g++;return g/l.length},hh=Za.vec3,dh=r["A"].dataStack.isDimensionStacked;function fh(e,t){var n=e.getData(),i=e.get("minHeight")||0,a=e.get("barSize"),o=["lng","lat","alt"].map((function(t){return e.coordDimToDataDim(t)[0]}));if(null==a){var s=t.radius*Math.PI,l=ch(n,o[0],o[1]);a=[s/Math.sqrt(n.count()/l),s/Math.sqrt(n.count()/l)]}else r["Y"].isArray(a)||(a=[a,a]);var u=mh(n,o);n.each(o,(function(e,r,o,s){var l=n.get(u.dimension,s),c=u.isStacked?l-o:t.altitudeAxis.scale.getExtent()[0],h=Math.max(t.altitudeAxis.dataToCoord(o),i),d=t.dataToPoint([e,r,c]),f=t.dataToPoint([e,r,l]),p=hh.sub([],f,d);hh.normalize(p,p);var g=[a[0],h,a[1]];n.setItemLayout(s,[d,p,g])})),n.setLayout("orient",gt.UP.array)}function ph(e,t){var n=e.getData(),i=e.get("barSize"),a=e.get("minHeight")||0,o=["lng","lat","alt"].map((function(t){return e.coordDimToDataDim(t)[0]}));if(null==i){var s=Math.min(t.size[0],t.size[2]),l=ch(n,o[0],o[1]);i=[s/Math.sqrt(n.count()/l),s/Math.sqrt(n.count()/l)]}else r["Y"].isArray(i)||(i=[i,i]);var u=[0,1,0],c=mh(n,o);n.each(o,(function(e,r,o,s){var l=n.get(c.dimension,s),h=c.isStacked?l-o:t.altitudeAxis.scale.getExtent()[0],d=Math.max(t.altitudeAxis.dataToCoord(o),a),f=t.dataToPoint([e,r,h]),p=[i[0],d,i[1]];n.setItemLayout(s,[f,u,p])})),n.setLayout("orient",[1,0,0])}function gh(e,t){var n=e.getData(),i=e.coordDimToDataDim("lng")[0],a=e.coordDimToDataDim("lat")[0],o=e.coordDimToDataDim("alt")[0],s=e.get("barSize"),l=e.get("minHeight")||0;if(null==s){var u=n.getDataExtent(i),c=n.getDataExtent(a),h=t.dataToPoint([u[0],c[0]]),d=t.dataToPoint([u[1],c[1]]),f=Math.min(Math.abs(h[0]-d[0]),Math.abs(h[1]-d[1]))||1,p=ch(n,i,a);s=[f/Math.sqrt(n.count()/p),f/Math.sqrt(n.count()/p)]}else r["Y"].isArray(s)||(s=[s,s]),s[0]/=t.getScale()/16,s[1]/=t.getScale()/16;var g=[0,0,1],m=[i,a,o],v=mh(n,m);n.each(m,(function(e,r,i,a){var o=n.get(v.dimension,a),u=v.isStacked?o-i:0,c=t.dataToPoint([e,r,u]),h=t.dataToPoint([e,r,o]),d=Math.max(h[2]-c[2],l),f=[s[0],d,s[1]];n.setItemLayout(a,[c,g,f])})),n.setLayout("orient",[1,0,0])}function mh(e,t){var n=dh(e,t[2]);return{dimension:n?e.getCalculationInfo("stackResultDimension"):t[2],isStacked:n}}function vh(e){e.registerLayout((function(e,t){e.eachSeriesByType("bar3D",(function(e){var t=e.coordinateSystem,n=t&&t.type;"globe"===n?fh(e,t):"cartesian3D"===n?uh(e,t):"geo3D"===n?ph(e,t):("mapbox3D"===n||"maptalks3D"===n)&&gh(e,t)}))}))}var yh={getFormattedLabel:function(e,t,n,i,a){n=n||"normal";var o=e.getData(i),s=o.getItemModel(t),l=e.getDataParams(t,i);null!=a&&l.value instanceof Array&&(l.value=l.value[a]);var u,c=s.get("normal"===n?["label","formatter"]:["emphasis","label","formatter"]);return null==c&&(c=s.get(["label","formatter"])),"function"===typeof c?(l.status=n,u=c(l)):"string"===typeof c&&(u=r["u"].formatTpl(c,l)),u},normalizeToArray:function(e){return e instanceof Array?e:null==e?[]:[e]}},bh=yh;function _h(e,t){var n=[];return r["Y"].each(e.dimensions,(function(r){var i=e.getDimensionInfo(r),a=i.otherDims,o=a[t];null!=o&&!1!==o&&(n[o]=i.name)})),n}var xh=function(e,t,n){function i(e){var i=!0,o=[],s=_h(a,"tooltip");function l(e,t){var s=a.getDimensionInfo(t);if(s&&!1!==s.otherDims.tooltip){var l=s.type,u=(i?"- "+(s.tooltipName||s.name)+": ":"")+("ordinal"===l?e+"":"time"===l?n?"":r["u"].formatTime("yyyy/MM/dd hh:mm:ss",e):r["u"].addCommas(e));u&&o.push(r["u"].encodeHTML(u))}}return s.length?r["Y"].each(s,(function(e){l(a.get(e,t),e)})):r["Y"].each(e,l),(i?"<br/>":"")+o.join(i?"<br/>":", ")}var a=e.getData(),o=e.getRawValue(t),s=r["Y"].isArray(o)?i(o):r["u"].encodeHTML(r["u"].addCommas(o)),l=a.getName(t),u=yu(a,t);r["Y"].isObject(u)&&u.colorStops&&(u=(u.colorStops[0]||{}).color),u=u||"transparent";var c=r["u"].getTooltipMarker(u),h=e.name;return"\0-"===h&&(h=""),h=h?r["u"].encodeHTML(h)+(n?": ":"<br/>"):"",n?c+h+s:h+c+(l?r["u"].encodeHTML(l)+": "+s:s)},wh=function(e,t,n){n=n||e.getSource();var i=t||r["v"](e.get("coordinateSystem"))||["x","y","z"],a=r["A"].createDimensions(n,{dimensionsDefine:n.dimensionsDefine||e.get("dimensions"),encodeDefine:n.encodeDefine||e.get("encode"),coordDimensions:i.map((function(t){var n=e.getReferringComponents(t+"Axis3D").models[0];return{type:n&&"category"===n.get("type")?"ordinal":"float",name:t}}))});"cartesian3D"===e.get("coordinateSystem")&&a.forEach((function(t){if(i.indexOf(t.coordDim)>=0){var n=e.getReferringComponents(t.coordDim+"Axis3D").models[0];n&&"category"===n.get("type")&&(t.ordinalMeta=n.getOrdinalMeta())}}));var o=r["A"].dataStack.enableDataStack(e,a,{byIndex:!0,stackedCoordDimension:"z"}),s=new r["e"](a,e);return s.setCalculationInfo(o),s.initData(n),s},Sh=r["h"].extend({type:"series.bar3D",dependencies:["globe"],visualStyleAccessPathvisu:"itemStyle",getInitialData:function(e,t){return wh(this)},getFormattedLabel:function(e,t,n,r){var i=bh.getFormattedLabel(this,e,t,n,r);return null==i&&(i=this.getData().get("z",e)),i},formatTooltip:function(e){return xh(this,e)},defaultOption:{coordinateSystem:"cartesian3D",globeIndex:0,grid3DIndex:0,zlevel:-10,bevelSize:0,bevelSmoothness:2,onGridPlane:"xy",shading:"color",minHeight:0,itemStyle:{opacity:1},label:{show:!1,distance:2,textStyle:{fontSize:14,color:"#000",backgroundColor:"rgba(255,255,255,0.7)",padding:3,borderRadius:3}},emphasis:{label:{show:!0}},animationDurationUpdate:500}});r["Y"].merge(Sh.prototype,Ml);var Th=Sh,Oh=Za.vec3,Mh=Za.mat3,Eh=vn.extend((function(){return{attributes:{position:new vn.Attribute("position","float",3,"POSITION"),normal:new vn.Attribute("normal","float",3,"NORMAL"),color:new vn.Attribute("color","float",4,"COLOR"),prevPosition:new vn.Attribute("prevPosition","float",3),prevNormal:new vn.Attribute("prevNormal","float",3)},dynamic:!0,enableNormal:!1,bevelSize:1,bevelSegments:0,_dataIndices:null,_vertexOffset:0,_triangleOffset:0}}),{resetOffset:function(){this._vertexOffset=0,this._triangleOffset=0},setBarCount:function(e){var t=this.enableNormal,n=this.getBarVertexCount()*e,r=this.getBarTriangleCount()*e;this.vertexCount!==n&&(this.attributes.position.init(n),t?this.attributes.normal.init(n):this.attributes.normal.value=null,this.attributes.color.init(n)),this.triangleCount!==r&&(this.indices=n>65535?new Uint32Array(3*r):new Uint16Array(3*r),this._dataIndices=new Uint32Array(n))},getBarVertexCount:function(){var e=this.bevelSize>0?this.bevelSegments:0;return e>0?this._getBevelBarVertexCount(e):this.enableNormal?24:8},getBarTriangleCount:function(){var e=this.bevelSize>0?this.bevelSegments:0;return e>0?this._getBevelBarTriangleCount(e):12},_getBevelBarVertexCount:function(e){return 4*(e+1)*(e+1)*2},_getBevelBarTriangleCount:function(e){var t=4*e+3,n=2*e+1;return(t+1)*n*2+4},setColor:function(e,t){for(var n=this.getBarVertexCount(),r=n*e,i=n*(e+1),a=r;a<i;a++)this.attributes.color.set(a,t);this.dirtyAttribute("color")},getDataIndexOfVertex:function(e){return this._dataIndices?this._dataIndices[e]:null},addBar:function(){for(var e=Oh.create,t=Oh.scaleAndAdd,n=e(),r=e(),i=e(),a=e(),o=e(),s=e(),l=e(),u=[],c=[],h=0;h<8;h++)u[h]=e();var d=[[0,1,5,4],[2,3,7,6],[4,5,6,7],[3,2,1,0],[0,4,7,3],[1,2,6,5]],f=[0,1,2,0,2,3],p=[];for(h=0;h<d.length;h++)for(var g=d[h],m=0;m<2;m++){for(var v=[],y=0;y<3;y++)v.push(g[f[3*m+y]]);p.push(v)}return function(e,h,g,m,v,y){var b=this._vertexOffset;if(this.bevelSize>0&&this.bevelSegments>0)this._addBevelBar(e,h,g,m,this.bevelSize,this.bevelSegments,v);else{Oh.copy(i,h),Oh.normalize(i,i),Oh.cross(a,g,i),Oh.normalize(a,a),Oh.cross(r,i,a),Oh.normalize(a,a),Oh.negate(o,r),Oh.negate(s,i),Oh.negate(l,a),t(u[0],e,r,m[0]/2),t(u[0],u[0],a,m[2]/2),t(u[1],e,r,m[0]/2),t(u[1],u[1],l,m[2]/2),t(u[2],e,o,m[0]/2),t(u[2],u[2],l,m[2]/2),t(u[3],e,o,m[0]/2),t(u[3],u[3],a,m[2]/2),t(n,e,i,m[1]),t(u[4],n,r,m[0]/2),t(u[4],u[4],a,m[2]/2),t(u[5],n,r,m[0]/2),t(u[5],u[5],l,m[2]/2),t(u[6],n,o,m[0]/2),t(u[6],u[6],l,m[2]/2),t(u[7],n,o,m[0]/2),t(u[7],u[7],a,m[2]/2);var _=this.attributes;if(this.enableNormal){c[0]=r,c[1]=o,c[2]=i,c[3]=s,c[4]=a,c[5]=l;for(var x=this._vertexOffset,w=0;w<d.length;w++){for(var S=3*this._triangleOffset,T=0;T<6;T++)this.indices[S++]=x+f[T];x+=4,this._triangleOffset+=2}for(w=0;w<d.length;w++){var O=c[w];for(T=0;T<4;T++){var M=d[w][T];_.position.set(this._vertexOffset,u[M]),_.normal.set(this._vertexOffset,O),_.color.set(this._vertexOffset++,v)}}}else{for(w=0;w<p.length;w++){for(S=3*this._triangleOffset,T=0;T<3;T++)this.indices[S+T]=p[w][T]+this._vertexOffset;this._triangleOffset++}for(w=0;w<u.length;w++)_.position.set(this._vertexOffset,u[w]),_.color.set(this._vertexOffset++,v)}}var E=this._vertexOffset;for(w=b;w<E;w++)this._dataIndices[w]=y}}(),_addBevelBar:function(){var e=Oh.create(),t=Oh.create(),n=Oh.create(),r=Mh.create(),i=[],a=[1,-1,-1,1],o=[1,1,-1,-1],s=[2,0];return function(l,u,c,h,d,f,p){Oh.copy(t,u),Oh.normalize(t,t),Oh.cross(n,c,t),Oh.normalize(n,n),Oh.cross(e,t,n),Oh.normalize(n,n),r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=t[0],r[4]=t[1],r[5]=t[2],r[6]=n[0],r[7]=n[1],r[8]=n[2],d=Math.min(h[0],h[2])/2*d;for(var g=0;g<3;g++)i[g]=Math.max(h[g]-2*d,0);var m=(h[0]-i[0])/2,v=(h[1]-i[1])/2,y=(h[2]-i[2])/2,b=[],_=[],x=this._vertexOffset,w=[];for(g=0;g<2;g++){w[g]=w[g]=[];for(var S=0;S<=f;S++)for(var T=0;T<4;T++){(0===S&&0===g||1===g&&S===f)&&w[g].push(x);for(var O=0;O<=f;O++){var M=O/f*Math.PI/2+Math.PI/2*T,E=S/f*Math.PI/2+Math.PI/2*g;_[0]=m*Math.cos(M)*Math.sin(E),_[1]=v*Math.cos(E),_[2]=y*Math.sin(M)*Math.sin(E),b[0]=_[0]+a[T]*i[0]/2,b[1]=_[1]+v+s[g]*i[1]/2,b[2]=_[2]+o[T]*i[2]/2,Math.abs(m-v)<1e-6&&Math.abs(v-y)<1e-6||(_[0]/=m*m,_[1]/=v*v,_[2]/=y*y),Oh.normalize(_,_),Oh.transformMat3(b,b,r),Oh.transformMat3(_,_,r),Oh.add(b,b,l),this.attributes.position.set(x,b),this.enableNormal&&this.attributes.normal.set(x,_),this.attributes.color.set(x,p),x++}}}var A=4*f+3,C=2*f+1,I=A+1;for(T=0;T<C;T++)for(g=0;g<=A;g++){var D=T*I+g+this._vertexOffset,L=T*I+(g+1)%I+this._vertexOffset,P=(T+1)*I+(g+1)%I+this._vertexOffset,k=(T+1)*I+g+this._vertexOffset;this.setTriangleIndices(this._triangleOffset++,[P,D,L]),this.setTriangleIndices(this._triangleOffset++,[P,k,D])}this.setTriangleIndices(this._triangleOffset++,[w[0][0],w[0][2],w[0][1]]),this.setTriangleIndices(this._triangleOffset++,[w[0][0],w[0][3],w[0][2]]),this.setTriangleIndices(this._triangleOffset++,[w[1][0],w[1][1],w[1][2]]),this.setTriangleIndices(this._triangleOffset++,[w[1][0],w[1][2],w[1][3]]),this._vertexOffset=x}}()});r["Y"].defaults(Eh.prototype,Ka),r["Y"].defaults(Eh.prototype,gu);var Ah=Eh,Ch=Za.vec3,Ih=r["b"].extend({type:"bar3D",__ecgl__:!0,init:function(e,t){this.groupGL=new xa.Node,this._api=t,this._labelsBuilder=new Su(256,256,t);var n=this;this._labelsBuilder.getLabelPosition=function(e,t,r){if(n._data){var i=n._data.getItemLayout(e),a=i[0],o=i[1],s=i[2][1];return Ch.scaleAndAdd([],a,o,r+s)}return[0,0]},this._labelsBuilder.getMesh().renderOrder=100},render:function(e,t,n){var r=this._prevBarMesh;this._prevBarMesh=this._barMesh,this._barMesh=r,this._barMesh||(this._barMesh=new xa.Mesh({geometry:new Ah,shadowDepthMaterial:new xa.Material({shader:new xa.Shader(xa.Shader.source("ecgl.sm.depth.vertex"),xa.Shader.source("ecgl.sm.depth.fragment"))}),culling:"cartesian3D"===e.coordinateSystem.type,renderOrder:10,renderNormal:!0})),this.groupGL.remove(this._prevBarMesh),this.groupGL.add(this._barMesh),this.groupGL.add(this._labelsBuilder.getMesh());var i=e.coordinateSystem;if(this._doRender(e,n),i&&i.viewGL){i.viewGL.add(this.groupGL);var a=i.viewGL.isLinearSpace()?"define":"undefine";this._barMesh.material[a]("fragment","SRGB_DECODE")}this._data=e.getData(),this._labelsBuilder.updateData(this._data),this._labelsBuilder.updateLabels(),this._updateAnimation(e)},_updateAnimation:function(e){xa.updateVertexAnimation([["prevPosition","position"],["prevNormal","normal"]],this._prevBarMesh,this._barMesh,e)},_doRender:function(e,t){var n=e.getData(),r=e.get("shading"),i="color"!==r,a=this,o=this._barMesh,s="ecgl."+r;o.material&&o.material.shader.name===s||(o.material=xa.createMaterial(s,["VERTEX_COLOR"])),xa.setMaterialFromModel(r,o.material,e,t),o.geometry.enableNormal=i,o.geometry.resetOffset();var l=e.get("bevelSize"),u=e.get("bevelSmoothness");o.geometry.bevelSegments=u,o.geometry.bevelSize=l;var c=[],h=new Float32Array(4*n.count()),d=0,f=0,p=!1;n.each((function(e){if(n.hasValue(e)){var t=yu(n,e),r=bu(n,e);null==r&&(r=1),xa.parseColor(t,c),c[3]*=r,h[d++]=c[0],h[d++]=c[1],h[d++]=c[2],h[d++]=c[3],c[3]>0&&(f++,c[3]<.99&&(p=!0))}})),o.geometry.setBarCount(f);var g=n.getLayout("orient"),m=this._barIndexOfData=new Int32Array(n.count());f=0;n.each((function(e){if(n.hasValue(e)){var t=n.getItemLayout(e),r=t[0],i=t[1],o=t[2],s=4*e;c[0]=h[s++],c[1]=h[s++],c[2]=h[s++],c[3]=h[s++],c[3]>0&&(a._barMesh.geometry.addBar(r,i,g,o,c,e),m[e]=f++)}else m[e]=-1})),o.geometry.dirty(),o.geometry.updateBoundingBox();var v=o.material;v.transparent=p,v.depthMask=!p,o.geometry.sortTriangles=p,this._initHandler(e,t)},_initHandler:function(e,t){var n=e.getData(),r=this._barMesh,i="cartesian3D"===e.coordinateSystem.type;r.seriesIndex=e.seriesIndex;var a=-1;r.off("mousemove"),r.off("mouseout"),r.on("mousemove",(function(e){var o=r.geometry.getDataIndexOfVertex(e.triangle[0]);o!==a&&(this._downplay(a),this._highlight(o),this._labelsBuilder.updateLabels([o]),i&&t.dispatchAction({type:"grid3DShowAxisPointer",value:[n.get("x",o),n.get("y",o),n.get("z",o,!0)]})),a=o,r.dataIndex=o}),this),r.on("mouseout",(function(e){this._downplay(a),this._labelsBuilder.updateLabels(),a=-1,r.dataIndex=-1,i&&t.dispatchAction({type:"grid3DHideAxisPointer"})}),this)},_highlight:function(e){var t=this._data;if(t){var n=this._barIndexOfData[e];if(!(n<0)){var i=t.getItemModel(e),a=i.getModel("emphasis.itemStyle"),o=a.get("color"),s=a.get("opacity");if(null==o){var l=yu(t,e);o=r["i"].lift(l,-.4)}null==s&&(s=bu(t,e));var u=xa.parseColor(o);u[3]*=s,this._barMesh.geometry.setColor(n,u),this._api.getZr().refresh()}}},_downplay:function(e){var t=this._data;if(t){var n=this._barIndexOfData[e];if(!(n<0)){var r=yu(t,e),i=bu(t,e),a=xa.parseColor(r);a[3]*=i,this._barMesh.geometry.setColor(n,a),this._api.getZr().refresh()}}},highlight:function(e,t,n,r){this._toggleStatus("highlight",e,t,n,r)},downplay:function(e,t,n,r){this._toggleStatus("downplay",e,t,n,r)},_toggleStatus:function(e,t,n,i,a){var o=t.getData(),s=Di.queryDataIndex(o,a),l=this;null!=s?r["Y"].each(bh.normalizeToArray(s),(function(t){"highlight"===e?this._highlight(t):this._downplay(t)}),this):o.each((function(t){"highlight"===e?l._highlight(t):l._downplay(t)}))},remove:function(){this.groupGL.removeAll()},dispose:function(){this.groupGL.removeAll()}});function Dh(e){e.registerChartView(Ih),e.registerSeriesModel(Th),vh(e),e.registerProcessor((function(e,t){e.eachSeriesByType("bar3d",(function(e){var t=e.getData();t.filterSelf((function(e){return t.hasValue(e)}))}))}))}Object(r["X"])(Dh);var Lh=r["h"].extend({type:"series.line3D",dependencies:["grid3D"],visualStyleAccessPath:"lineStyle",visualDrawType:"stroke",getInitialData:function(e,t){return wh(this)},formatTooltip:function(e){return xh(this,e)},defaultOption:{coordinateSystem:"cartesian3D",zlevel:-10,grid3DIndex:0,lineStyle:{width:2},animationDurationUpdate:500}}),Ph=Lh,kh=n("aEsj"),Rh=Za.vec3;xa.Shader["import"](Oo);var Nh=r["b"].extend({type:"line3D",__ecgl__:!0,init:function(e,t){this.groupGL=new xa.Node,this._api=t},render:function(e,t,n){var r=this._prevLine3DMesh;this._prevLine3DMesh=this._line3DMesh,this._line3DMesh=r,this._line3DMesh||(this._line3DMesh=new xa.Mesh({geometry:new eo({useNativeLine:!1,sortTriangles:!0}),material:new xa.Material({shader:xa.createShader("ecgl.meshLines3D")}),renderOrder:10}),this._line3DMesh.geometry.pick=this._pick.bind(this)),this.groupGL.remove(this._prevLine3DMesh),this.groupGL.add(this._line3DMesh);var i=e.coordinateSystem;if(i&&i.viewGL){i.viewGL.add(this.groupGL);var a=i.viewGL.isLinearSpace()?"define":"undefine";this._line3DMesh.material[a]("fragment","SRGB_DECODE")}this._doRender(e,n),this._data=e.getData(),this._camera=i.viewGL.camera,this.updateCamera(),this._updateAnimation(e)},updateCamera:function(){this._updateNDCPosition()},_doRender:function(e,t){var n=e.getData(),r=this._line3DMesh;r.geometry.resetOffset();var i=n.getLayout("points"),a=[],o=new Float32Array(i.length/3*4),s=0,l=!1;n.each((function(e){var t=yu(n,e),r=bu(n,e);null==r&&(r=1),xa.parseColor(t,a),a[3]*=r,o[s++]=a[0],o[s++]=a[1],o[s++]=a[2],o[s++]=a[3],a[3]<.99&&(l=!0)})),r.geometry.setVertexCount(r.geometry.getPolylineVertexCount(i)),r.geometry.setTriangleCount(r.geometry.getPolylineTriangleCount(i)),r.geometry.addPolyline(i,o,Di.firstNotNull(e.get("lineStyle.width"),1)),r.geometry.dirty(),r.geometry.updateBoundingBox();var u=r.material;u.transparent=l,u.depthMask=!l;var c=e.getModel("debug.wireframe");c.get("show")?(r.geometry.createAttribute("barycentric","float",3),r.geometry.generateBarycentric(),r.material.set("both","WIREFRAME_TRIANGLE"),r.material.set("wireframeLineColor",xa.parseColor(c.get("lineStyle.color")||"rgba(0,0,0,0.5)")),r.material.set("wireframeLineWidth",Di.firstNotNull(c.get("lineStyle.width"),1))):r.material.set("both","WIREFRAME_TRIANGLE"),this._points=i,this._initHandler(e,t)},_updateAnimation:function(e){xa.updateVertexAnimation([["prevPosition","position"],["prevPositionPrev","positionPrev"],["prevPositionNext","positionNext"]],this._prevLine3DMesh,this._line3DMesh,e)},_initHandler:function(e,t){var n=e.getData(),r=e.coordinateSystem,i=this._line3DMesh,a=-1;i.seriesIndex=e.seriesIndex,i.off("mousemove"),i.off("mouseout"),i.on("mousemove",(function(e){var o=r.pointToData(e.point.array),s=n.indicesOfNearest("x",o[0])[0];s!==a&&(t.dispatchAction({type:"grid3DShowAxisPointer",value:[n.get("x",s),n.get("y",s),n.get("z",s)]}),i.dataIndex=s),a=s}),this),i.on("mouseout",(function(e){a=-1,i.dataIndex=-1,t.dispatchAction({type:"grid3DHideAxisPointer"})}),this)},_updateNDCPosition:function(){var e=new At,t=this._camera;At.multiply(e,t.projectionMatrix,t.viewMatrix);var n=this._positionNDC,r=this._points,i=r.length/3;n&&n.length/2===i||(n=this._positionNDC=new Float32Array(2*i));for(var a=[],o=0;o<i;o++){var s=3*o,l=2*o;a[0]=r[s],a[1]=r[s+1],a[2]=r[s+2],a[3]=1,Rh.transformMat4(a,a,e.array),n[l]=a[0]/a[3],n[l+1]=a[1]/a[3]}},_pick:function(e,t,n,r,i,a){var o=this._positionNDC,s=this._data.hostModel,l=s.get("lineStyle.width"),u=-1,c=n.viewport.width,h=n.viewport.height,d=.5*c,f=.5*h;e=(e+1)*d,t=(t+1)*f;for(var p=1;p<o.length/2;p++){var g=(o[2*(p-1)]+1)*d,m=(o[2*(p-1)+1]+1)*f,v=(o[2*p]+1)*d,y=(o[2*p+1]+1)*f;if(kh["a"](g,m,v,y,l,e,t)){var b=(g-e)*(g-e)+(m-t)*(m-t),_=(v-e)*(v-e)+(y-t)*(y-t);u=b<_?p-1:p}}if(u>=0){var x=3*u,w=new gt(this._points[x],this._points[x+1],this._points[x+2]);a.push({dataIndex:u,point:w,pointWorld:w.clone(),target:this._line3DMesh,distance:this._camera.getWorldPosition().dist(w)})}},remove:function(){this.groupGL.removeAll()},dispose:function(){this.groupGL.removeAll()}});function jh(e){e.registerChartView(Nh),e.registerSeriesModel(Ph),e.registerLayout((function(e,t){e.eachSeriesByType("line3D",(function(e){var t=e.getData(),n=e.coordinateSystem;if(n){if("cartesian3D"!==n.type)return void 0;var r=new Float32Array(3*t.count()),i=[],a=[],o=n.dimensions,s=o.map((function(t){return e.coordDimToDataDim(t)[0]}));n&&t.each(s,(function(e,t,o,s){i[0]=e,i[1]=t,i[2]=o,n.dataToPoint(i,a),r[3*s]=a[0],r[3*s+1]=a[1],r[3*s+2]=a[2]})),t.setLayout("points",r)}}))}))}Object(r["X"])(jh);var Fh=r["h"].extend({type:"series.scatter3D",dependencies:["globe","grid3D","geo3D"],visualStyleAccessPath:"itemStyle",hasSymbolVisual:!0,getInitialData:function(e,t){return wh(this)},getFormattedLabel:function(e,t,n,r){var i=bh.getFormattedLabel(this,e,t,n,r);if(null==i){var a=this.getData(),o=a.dimensions[a.dimensions.length-1];i=a.get(o,e)}return i},formatTooltip:function(e){return xh(this,e)},defaultOption:{coordinateSystem:"cartesian3D",zlevel:-10,progressive:1e5,progressiveThreshold:1e5,grid3DIndex:0,globeIndex:0,symbol:"circle",symbolSize:10,blendMode:"source-over",label:{show:!1,position:"right",distance:5,textStyle:{fontSize:14,color:"#000",backgroundColor:"rgba(255,255,255,0.7)",padding:3,borderRadius:3}},itemStyle:{opacity:.8},emphasis:{label:{show:!0}},animationDurationUpdate:500}});function zh(e,t,n){t=t||document.createElement("canvas");t.width=e,t.height=e;var r=t.getContext("2d");return n&&n(r),t}function Bh(e,t,n,i){r["Y"].isArray(t)||(t=[t,t]);var a=Gh.getMarginByStyle(n,i),o=t[0]+a.left+a.right,s=t[1]+a.top+a.bottom,l=r["A"].createSymbol(e,0,0,t[0],t[1]),u=Math.max(o,s);l.x=a.left,l.y=a.top,o>s?l.y+=(u-s)/2:l.x+=(u-o)/2;var c=l.getBoundingRect();return l.x-=c.x,l.y-=c.y,l.setStyle(n),l.update(),l.__size=u,l}function Vh(e,t,n){var r=t.width,i=t.height,a=e.canvas.width,o=e.canvas.height,s=r/a,l=i/o;function u(e){return e<128?1:-1}function c(e,a){var o=1/0;e=Math.floor(e*s),a=Math.floor(a*l);for(var c=a*r+e,h=t.data[4*c],d=u(h),f=Math.max(a-n,0);f<Math.min(a+n,i);f++)for(var p=Math.max(e-n,0);p<Math.min(e+n,r);p++){c=f*r+p;var g=t.data[4*c],m=u(g),v=p-e,y=f-a;if(d!==m){var b=v*v+y*y;b<o&&(o=b)}}return d*Math.sqrt(o)}for(var h=e.createImageData(a,o),d=0;d<o;d++)for(var f=0;f<a;f++){var p=c(f,d),g=p/n*.5+.5,m=4*(d*a+f);h.data[m++]=255*(1-g),h.data[m++]=255*(1-g),h.data[m++]=255*(1-g),h.data[m++]=255}return h}var Gh={getMarginByStyle:function(e){var t=e.minMargin||0,n=0;e.stroke&&"none"!==e.stroke&&(n=null==e.lineWidth?1:e.lineWidth);var r=e.shadowBlur||0,i=e.shadowOffsetX||0,a=e.shadowOffsetY||0,o={};return o.left=Math.max(n/2,-i+r,t),o.right=Math.max(n/2,i+r,t),o.top=Math.max(n/2,-a+r,t),o.bottom=Math.max(n/2,a+r,t),o},createSymbolSprite:function(e,t,n,i){var a=Bh(e,t,n),o=Gh.getMarginByStyle(n);return{image:zh(a.__size,i,(function(e){r["C"](e,a)})),margin:o}},createSDFFromCanvas:function(e,t,n,r){return zh(t,r,(function(t){var r=e.getContext("2d"),i=r.getImageData(0,0,e.width,e.height);t.putImageData(Vh(t,i,n),0,0)}))},createSimpleSprite:function(e,t){return zh(e,t,(function(t){var n=e/2;t.beginPath(),t.arc(n,n,60,0,2*Math.PI,!1),t.closePath();var r=t.createRadialGradient(n,n,0,n,n,n);r.addColorStop(0,"rgba(255, 255, 255, 1)"),r.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),r.addColorStop(1,"rgba(255, 255, 255, 0)"),t.fillStyle=r,t.fill()}))}},Hh=Gh,Uh=Za.vec3,Wh={needsSortVertices:function(){return this.sortVertices},needsSortVerticesProgressively:function(){return this.needsSortVertices()&&this.vertexCount>=2e4},doSortVertices:function(e,t){var n=this.indices,r=Uh.create();if(!n){n=this.indices=this.vertexCount>65535?new Uint32Array(this.vertexCount):new Uint16Array(this.vertexCount);for(var i=0;i<n.length;i++)n[i]=i}if(0===t){var a,o=this.attributes.position,s=(e=e.array,0);this._zList&&this._zList.length===this.vertexCount||(this._zList=new Float32Array(this.vertexCount));for(i=0;i<this.vertexCount;i++){o.get(i,r);var l=Uh.sqrDist(r,e);isNaN(l)&&(l=1e7,s++),0===i?(a=l,l=0):l-=a,this._zList[i]=l}this._noneCount=s}if(this.vertexCount<2e4)0===t&&this._simpleSort(this._noneCount/this.vertexCount>.05);else for(i=0;i<3;i++)this._progressiveQuickSort(3*t+i);this.dirtyIndices()},_simpleSort:function(e){var t=this._zList,n=this.indices;function r(e,n){return t[n]-t[e]}e?Array.prototype.sort.call(n,r):cu.sort(n,r,0,n.length-1)},_progressiveQuickSort:function(e){var t=this._zList,n=this.indices;this._quickSort=this._quickSort||new cu,this._quickSort.step(n,(function(e,n){return t[n]-t[e]}),e)}},Xh="@export ecgl.sdfSprite.vertex\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform float elapsedTime : 0;\n\nattribute vec3 position : POSITION;\n\n#ifdef VERTEX_SIZE\nattribute float size;\n#else\nuniform float u_Size;\n#endif\n\n#ifdef VERTEX_COLOR\nattribute vec4 a_FillColor: COLOR;\nvarying vec4 v_Color;\n#endif\n\n#ifdef VERTEX_ANIMATION\nattribute vec3 prevPosition;\nattribute float prevSize;\nuniform float percent : 1.0;\n#endif\n\n\n#ifdef POSITIONTEXTURE_ENABLED\nuniform sampler2D positionTexture;\n#endif\n\nvarying float v_Size;\n\nvoid main()\n{\n\n#ifdef POSITIONTEXTURE_ENABLED\n gl_Position = worldViewProjection * vec4(texture2D(positionTexture, position.xy).xy, -10.0, 1.0);\n#else\n\n #ifdef VERTEX_ANIMATION\n vec3 pos = mix(prevPosition, position, percent);\n #else\n vec3 pos = position;\n #endif\n gl_Position = worldViewProjection * vec4(pos, 1.0);\n#endif\n\n#ifdef VERTEX_SIZE\n#ifdef VERTEX_ANIMATION\n v_Size = mix(prevSize, size, percent);\n#else\n v_Size = size;\n#endif\n#else\n v_Size = u_Size;\n#endif\n\n#ifdef VERTEX_COLOR\n v_Color = a_FillColor;\n #endif\n\n gl_PointSize = v_Size;\n}\n\n@end\n\n@export ecgl.sdfSprite.fragment\n\nuniform vec4 color: [1, 1, 1, 1];\nuniform vec4 strokeColor: [1, 1, 1, 1];\nuniform float smoothing: 0.07;\n\nuniform float lineWidth: 0.0;\n\n#ifdef VERTEX_COLOR\nvarying vec4 v_Color;\n#endif\n\nvarying float v_Size;\n\nuniform sampler2D sprite;\n\n@import clay.util.srgb\n\nvoid main()\n{\n gl_FragColor = color;\n\n vec4 _strokeColor = strokeColor;\n\n#ifdef VERTEX_COLOR\n gl_FragColor *= v_Color;\n #endif\n\n#ifdef SPRITE_ENABLED\n float d = texture2D(sprite, gl_PointCoord).r;\n gl_FragColor.a *= smoothstep(0.5 - smoothing, 0.5 + smoothing, d);\n\n if (lineWidth > 0.0) {\n float sLineWidth = lineWidth / 2.0;\n\n float outlineMaxValue0 = 0.5 + sLineWidth;\n float outlineMaxValue1 = 0.5 + sLineWidth + smoothing;\n float outlineMinValue0 = 0.5 - sLineWidth - smoothing;\n float outlineMinValue1 = 0.5 - sLineWidth;\n\n if (d <= outlineMaxValue1 && d >= outlineMinValue0) {\n float a = _strokeColor.a;\n if (d <= outlineMinValue1) {\n a = a * smoothstep(outlineMinValue0, outlineMinValue1, d);\n }\n else {\n a = a * smoothstep(outlineMaxValue1, outlineMaxValue0, d);\n }\n gl_FragColor.rgb = mix(gl_FragColor.rgb * gl_FragColor.a, _strokeColor.rgb, a);\n gl_FragColor.a = gl_FragColor.a * (1.0 - a) + a;\n }\n }\n#endif\n\n#ifdef SRGB_DECODE\n gl_FragColor = sRGBToLinear(gl_FragColor);\n#endif\n}\n@end",Yh=Za.vec4;xa.Shader["import"](Xh);var Kh=xa.Mesh.extend((function(){var e=new xa.Geometry({dynamic:!0,attributes:{color:new xa.Geometry.Attribute("color","float",4,"COLOR"),position:new xa.Geometry.Attribute("position","float",3,"POSITION"),size:new xa.Geometry.Attribute("size","float",1),prevPosition:new xa.Geometry.Attribute("prevPosition","float",3),prevSize:new xa.Geometry.Attribute("prevSize","float",1)}});Object.assign(e,Wh);var t=new xa.Material({shader:xa.createShader("ecgl.sdfSprite"),transparent:!0,depthMask:!1});t.enableTexture("sprite"),t.define("both","VERTEX_COLOR"),t.define("both","VERTEX_SIZE");var n=new xa.Texture2D({image:document.createElement("canvas"),flipY:!1});return t.set("sprite",n),e.pick=this._pick.bind(this),{geometry:e,material:t,mode:xa.Mesh.POINTS,sizeScale:1}}),{_pick:function(e,t,n,r,i,a){var o=this._positionNDC;if(o)for(var s=n.viewport,l=2/s.width,u=2/s.height,c=this.geometry.vertexCount-1;c>=0;c--){var h;h=this.geometry.indices?this.geometry.indices[c]:c;var d=o[2*h],f=o[2*h+1],p=this.geometry.attributes.size.get(h)/this.sizeScale,g=p/2;if(e>d-g*l&&e<d+g*l&&t>f-g*u&&t<f+g*u){var m=new xa.Vector3,v=new xa.Vector3;this.geometry.attributes.position.get(h,m.array),xa.Vector3.transformMat4(v,m,this.worldTransform),a.push({vertexIndex:h,point:m,pointWorld:v,target:this,distance:v.distance(r.getWorldPosition())})}}},updateNDCPosition:function(e,t,n){var r=this._positionNDC,i=this.geometry;r&&r.length/2===i.vertexCount||(r=this._positionNDC=new Float32Array(2*i.vertexCount));for(var a=Yh.create(),o=0;o<i.vertexCount;o++)i.attributes.position.get(o,a),a[3]=1,Yh.transformMat4(a,a,e.array),Yh.scale(a,a,1/a[3]),r[2*o]=a[0],r[2*o+1]=a[1]}}),qh=Kh,Zh=20,$h=-10;function Qh(e,t){return e&&t&&e[0]===t[0]&&e[1]===t[1]}function Jh(e,t){this.rootNode=new xa.Node,this.is2D=e,this._labelsBuilder=new Su(256,256,t),this._labelsBuilder.getMesh().renderOrder=100,this.rootNode.add(this._labelsBuilder.getMesh()),this._api=t,this._spriteImageCanvas=document.createElement("canvas"),this._startDataIndex=0,this._endDataIndex=0,this._sizeScale=1}Jh.prototype={constructor:Jh,highlightOnMouseover:!0,update:function(e,t,n,r,i){var a=this._prevMesh;this._prevMesh=this._mesh,this._mesh=a;var o=e.getData();if(null==r&&(r=0),null==i&&(i=o.count()),this._startDataIndex=r,this._endDataIndex=i-1,!this._mesh){var s=this._prevMesh&&this._prevMesh.material;this._mesh=new qh({renderOrder:10,frustumCulling:!1}),s&&(this._mesh.material=s)}s=this._mesh.material;var l=this._mesh.geometry,u=l.attributes;this.rootNode.remove(this._prevMesh),this.rootNode.add(this._mesh),this._setPositionTextureToMesh(this._mesh,this._positionTexture);var c=this._getSymbolInfo(e,r,i),h=n.getDevicePixelRatio(),d=e.getModel("itemStyle").getItemStyle(),f=e.get("large"),p=1;c.maxSize>2?(p=this._updateSymbolSprite(e,d,c,h),s.enableTexture("sprite")):s.disableTexture("sprite"),u.position.init(i-r);var g=[];if(f){s.undefine("VERTEX_SIZE"),s.undefine("VERTEX_COLOR");var m=mu(o),v=vu(o);xa.parseColor(m,g),g[3]*=v,s.set({color:g,u_Size:c.maxSize*this._sizeScale})}else s.set({color:[1,1,1,1]}),s.define("VERTEX_SIZE"),s.define("VERTEX_COLOR"),u.size.init(i-r),u.color.init(i-r),this._originalOpacity=new Float32Array(i-r);for(var y=o.getLayout("points"),b=u.position.value,_=0;_<i-r;_++){var x=3*_,w=2*_;if(this.is2D?(b[x]=y[w],b[x+1]=y[w+1],b[x+2]=$h):(b[x]=y[x],b[x+1]=y[x+1],b[x+2]=y[x+2]),!f){m=yu(o,_),v=bu(o,_);xa.parseColor(m,g),g[3]*=v,u.color.set(_,g),g[3]<.99&&!0;var S=o.getItemVisual(_,"symbolSize");S=S instanceof Array?Math.max(S[0],S[1]):S,isNaN(S)&&(S=0),u.size.value[_]=S*p*this._sizeScale,this._originalOpacity[_]=g[3]}}this._mesh.sizeScale=p,l.updateBoundingBox(),l.dirty(),this._updateMaterial(e,d);var T=e.coordinateSystem;if(T&&T.viewGL){var O=T.viewGL.isLinearSpace()?"define":"undefine";s[O]("fragment","SRGB_DECODE")}f||this._updateLabelBuilder(e,r,i),this._updateHandler(e,t,n),this._updateAnimation(e),this._api=n},getPointsMesh:function(){return this._mesh},updateLabels:function(e){this._labelsBuilder.updateLabels(e)},hideLabels:function(){this.rootNode.remove(this._labelsBuilder.getMesh())},showLabels:function(){this.rootNode.add(this._labelsBuilder.getMesh())},_updateSymbolSprite:function(e,t,n,r){n.maxSize=Math.min(2*n.maxSize,200);var i=[];return n.aspect>1?(i[0]=n.maxSize,i[1]=n.maxSize/n.aspect):(i[1]=n.maxSize,i[0]=n.maxSize*n.aspect),i[0]=i[0]||1,i[1]=i[1]||1,this._symbolType===n.type&&Qh(this._symbolSize,i)&&this._lineWidth===t.lineWidth||(Hh.createSymbolSprite(n.type,i,{fill:"#fff",lineWidth:t.lineWidth,stroke:"transparent",shadowColor:"transparent",minMargin:Math.min(i[0]/2,10)},this._spriteImageCanvas),Hh.createSDFFromCanvas(this._spriteImageCanvas,Math.min(this._spriteImageCanvas.width,32),Zh,this._mesh.material.get("sprite").image),this._symbolType=n.type,this._symbolSize=i,this._lineWidth=t.lineWidth),this._spriteImageCanvas.width/n.maxSize*r},_updateMaterial:function(e,t){var n="lighter"===e.get("blendMode")?xa.additiveBlend:null,r=this._mesh.material;r.blend=n,r.set("lineWidth",t.lineWidth/Zh);var i=xa.parseColor(t.stroke);r.set("strokeColor",i),r.transparent=!0,r.depthMask=!1,r.depthTest=!this.is2D,r.sortVertices=!this.is2D},_updateLabelBuilder:function(e,t,n){var r=e.getData(),i=this._mesh.geometry,a=i.attributes.position.value,o=(t=this._startDataIndex,this._mesh.sizeScale);this._labelsBuilder.updateData(r,t,n),this._labelsBuilder.getLabelPosition=function(e,n,r){var i=3*(e-t);return[a[i],a[i+1],a[i+2]]},this._labelsBuilder.getLabelDistance=function(e,n,r){var a=i.attributes.size.get(e-t)/o;return a/2+r},this._labelsBuilder.updateLabels()},_updateAnimation:function(e){xa.updateVertexAnimation([["prevPosition","position"],["prevSize","size"]],this._prevMesh,this._mesh,e)},_updateHandler:function(e,t,n){var r,i=e.getData(),a=this._mesh,o=this,s=-1,l=e.coordinateSystem&&"cartesian3D"===e.coordinateSystem.type;l&&(r=e.coordinateSystem.model),a.seriesIndex=e.seriesIndex,a.off("mousemove"),a.off("mouseout"),a.on("mousemove",(function(t){var u=t.vertexIndex+o._startDataIndex;u!==s&&(this.highlightOnMouseover&&(this.downplay(i,s),this.highlight(i,u),this._labelsBuilder.updateLabels([u])),l&&n.dispatchAction({type:"grid3DShowAxisPointer",value:[i.get(e.coordDimToDataDim("x")[0],u),i.get(e.coordDimToDataDim("y")[0],u),i.get(e.coordDimToDataDim("z")[0],u)],grid3DIndex:r.componentIndex})),a.dataIndex=u,s=u}),this),a.on("mouseout",(function(e){var t=e.vertexIndex+o._startDataIndex;this.highlightOnMouseover&&(this.downplay(i,t),this._labelsBuilder.updateLabels()),s=-1,a.dataIndex=-1,l&&n.dispatchAction({type:"grid3DHideAxisPointer",grid3DIndex:r.componentIndex})}),this)},updateLayout:function(e,t,n){var r=e.getData();if(this._mesh){var i=this._mesh.geometry.attributes.position.value,a=r.getLayout("points");if(this.is2D)for(var o=0;o<a.length/2;o++){var s=3*o,l=2*o;i[s]=a[l],i[s+1]=a[l+1],i[s+2]=$h}else for(o=0;o<a.length;o++)i[o]=a[o];this._mesh.geometry.dirty(),n.getZr().refresh()}},updateView:function(e){if(this._mesh){var t=new At;At.mul(t,e.viewMatrix,this._mesh.worldTransform),At.mul(t,e.projectionMatrix,t),this._mesh.updateNDCPosition(t,this.is2D,this._api)}},highlight:function(e,t){if(!(t>this._endDataIndex||t<this._startDataIndex)){var n=e.getItemModel(t),i=n.getModel("emphasis.itemStyle"),a=i.get("color"),o=i.get("opacity");if(null==a){var s=yu(e,t);a=r["i"].lift(s,-.4)}null==o&&(o=bu(e,t));var l=xa.parseColor(a);l[3]*=o,this._mesh.geometry.attributes.color.set(t-this._startDataIndex,l),this._mesh.geometry.dirtyAttribute("color"),this._api.getZr().refresh()}},downplay:function(e,t){if(!(t>this._endDataIndex||t<this._startDataIndex)){var n=yu(e,t),r=bu(e,t),i=xa.parseColor(n);i[3]*=r,this._mesh.geometry.attributes.color.set(t-this._startDataIndex,i),this._mesh.geometry.dirtyAttribute("color"),this._api.getZr().refresh()}},fadeOutAll:function(e){if(this._originalOpacity){for(var t=this._mesh.geometry,n=0;n<t.vertexCount;n++){var r=this._originalOpacity[n]*e;t.attributes.color.value[4*n+3]=r}t.dirtyAttribute("color"),this._api.getZr().refresh()}},fadeInAll:function(){this.fadeOutAll(1)},setPositionTexture:function(e){this._mesh&&this._setPositionTextureToMesh(this._mesh,e),this._positionTexture=e},removePositionTexture:function(){this._positionTexture=null,this._mesh&&this._setPositionTextureToMesh(this._mesh,null)},setSizeScale:function(e){if(e!==this._sizeScale){if(this._mesh){var t=this._mesh.material.get("u_Size");this._mesh.material.set("u_Size",t/this._sizeScale*e);var n=this._mesh.geometry.attributes;if(n.size.value)for(var r=0;r<n.size.value.length;r++)n.size.value[r]=n.size.value[r]/this._sizeScale*e}this._sizeScale=e}},_setPositionTextureToMesh:function(e,t){t&&e.material.set("positionTexture",t),e.material[t?"enableTexture":"disableTexture"]("positionTexture")},_getSymbolInfo:function(e,t,n){if(e.get("large")){var r=Di.firstNotNull(e.get("symbolSize"),1);return r instanceof Array?(s=Math.max(r[0],r[1]),i=r[0]/r[1]):(s=r,i=1),{maxSize:r,type:e.get("symbol"),aspect:i}}for(var i,a=e.getData(),o=a.getItemVisual(0,"symbol")||"circle",s=0,l=t;l<n;l++){r=a.getItemVisual(l,"symbolSize");var u,c=a.getItemVisual(l,"symbol");if(r instanceof Array)u=r[0]/r[1],s=Math.max(Math.max(r[0],r[1]),s);else{if(isNaN(r))continue;u=1,s=Math.max(r,s)}0,o=c,i=u}return{maxSize:s,type:o,aspect:i}}};var ed=Jh,td=r["b"].extend({type:"scatter3D",hasSymbolVisual:!0,__ecgl__:!0,init:function(e,t){this.groupGL=new xa.Node,this._pointsBuilderList=[],this._currentStep=0},render:function(e,t,n){if(this.groupGL.removeAll(),e.getData().count()){var r=e.coordinateSystem;if(r&&r.viewGL){r.viewGL.add(this.groupGL),this._camera=r.viewGL.camera;var i=this._pointsBuilderList[0];i||(i=this._pointsBuilderList[0]=new ed(!1,n)),this._pointsBuilderList.length=1,this.groupGL.add(i.rootNode),i.update(e,t,n),i.updateView(r.viewGL.camera)}else 0}},incrementalPrepareRender:function(e,t,n){var r=e.coordinateSystem;r&&r.viewGL&&(r.viewGL.add(this.groupGL),this._camera=r.viewGL.camera),this.groupGL.removeAll(),this._currentStep=0},incrementalRender:function(e,t,n,r){if(!(e.end<=e.start)){var i=this._pointsBuilderList[this._currentStep];i||(i=new ed(!1,r),this._pointsBuilderList[this._currentStep]=i),this.groupGL.add(i.rootNode),i.update(t,n,r,e.start,e.end),i.updateView(t.coordinateSystem.viewGL.camera),this._currentStep++}},updateCamera:function(){this._pointsBuilderList.forEach((function(e){e.updateView(this._camera)}),this)},highlight:function(e,t,n,r){this._toggleStatus("highlight",e,t,n,r)},downplay:function(e,t,n,r){this._toggleStatus("downplay",e,t,n,r)},_toggleStatus:function(e,t,n,i,a){var o=t.getData(),s=Di.queryDataIndex(o,a),l="highlight"===e;null!=s?r["Y"].each(bh.normalizeToArray(s),(function(e){for(var t=0;t<this._pointsBuilderList.length;t++){var n=this._pointsBuilderList[t];l?n.highlight(o,e):n.downplay(o,e)}}),this):o.each((function(e){for(var t=0;t<this._pointsBuilderList.length;t++){var n=this._pointsBuilderList[t];l?n.highlight(o,e):n.downplay(o,e)}}))},dispose:function(){this.groupGL.removeAll()},remove:function(){this.groupGL.removeAll()}});function nd(e){e.registerChartView(td),e.registerSeriesModel(Fh),e.registerLayout({seriesType:"scatter3D",reset:function(e){var t=e.coordinateSystem;if(t){var n=t.dimensions;if(n.length<3)return void 0;var r=n.map((function(t){return e.coordDimToDataDim(t)[0]})),i=[],a=[];return{progress:function(e,n){for(var o=new Float32Array(3*(e.end-e.start)),s=e.start;s<e.end;s++){var l=3*(s-e.start);i[0]=n.get(r[0],s),i[1]=n.get(r[1],s),i[2]=n.get(r[2],s),t.dataToPoint(i,a),o[l]=a[0],o[l+1]=a[1],o[l+2]=a[2]}n.setLayout("points",o)}}}}})}Object(r["X"])(nd);var rd=Za.vec3,id=Za.vec2,ad=rd.normalize,od=rd.cross,sd=rd.sub,ld=rd.add,ud=rd.create,cd=ud(),hd=ud(),dd=ud(),fd=ud(),pd=[],gd=[];function md(e,t){id.copy(pd,e[0]),id.copy(gd,e[1]);var n=[],r=n[0]=ud(),i=n[1]=ud(),a=n[2]=ud(),o=n[3]=ud();t.dataToPoint(pd,r),t.dataToPoint(gd,o),ad(cd,r),sd(hd,o,r),ad(hd,hd),od(dd,hd,cd),ad(dd,dd),od(hd,cd,dd),ld(i,cd,hd),ad(i,i),ad(cd,o),sd(hd,r,o),ad(hd,hd),od(dd,hd,cd),ad(dd,dd),od(hd,cd,dd),ld(a,cd,hd),ad(a,a),ld(fd,r,o),ad(fd,fd);var s=rd.dot(r,fd),l=rd.dot(fd,i),u=(Math.max(rd.len(r),rd.len(o))-s)/l*2;return rd.scaleAndAdd(i,r,i,u),rd.scaleAndAdd(a,o,a,u),n}function vd(e,t,n){var r=[],i=r[0]=rd.create(),a=r[1]=rd.create(),o=r[2]=rd.create(),s=r[3]=rd.create();t.dataToPoint(e[0],i),t.dataToPoint(e[1],s);var l=rd.dist(i,s);return rd.lerp(a,i,s,.3),rd.lerp(o,i,s,.3),rd.scaleAndAdd(a,a,n,Math.min(.1*l,10)),rd.scaleAndAdd(o,o,n,Math.min(.1*l,10)),r}function yd(e,t){for(var n=new Float32Array(3*e.length),r=0,i=[],a=0;a<e.length;a++)t.dataToPoint(e[a],i),n[r++]=i[0],n[r++]=i[1],n[r++]=i[2];return n}function bd(e){var t=[];return e.each((function(n){var r=e.getItemModel(n),i=r.option instanceof Array?r.option:r.getShallow("coords",!0);t.push(i)})),{coordsList:t}}function _d(e,t){var n=e.getData(),r=e.get("polyline");n.setLayout("lineType",r?"polyline":"cubicBezier");var i=bd(n);n.each((function(e){var a=i.coordsList[e],o=r?yd:md;n.setItemLayout(e,o(a,t))}))}function xd(e,t,n){var r=e.getData(),i=e.get("polyline"),a=bd(r);r.setLayout("lineType",i?"polyline":"cubicBezier"),r.each((function(e){var o=a.coordsList[e],s=i?yd(o,t):vd(o,t,n);r.setItemLayout(e,s)}))}function wd(e,t){e.eachSeriesByType("lines3D",(function(e){var t=e.coordinateSystem;"globe"===t.type?_d(e,t):"geo3D"===t.type?xd(e,t,[0,1,0]):"mapbox3D"!==t.type&&"maptalks3D"!==t.type||xd(e,t,[0,0,1])}))}var Sd=r["h"].extend({type:"series.lines3D",dependencies:["globe"],visualStyleAccessPath:"lineStyle",visualDrawType:"stroke",getInitialData:function(e,t){var n=new r["e"](["value"],this);return n.hasItemOption=!1,n.initData(e.data,[],(function(e,t,r,i){if(e instanceof Array)return NaN;n.hasItemOption=!0;var a=e.value;return null!=a?a instanceof Array?a[i]:a:void 0})),n},defaultOption:{coordinateSystem:"globe",globeIndex:0,geo3DIndex:0,zlevel:-10,polyline:!1,effect:{show:!1,period:4,trailWidth:4,trailLength:.2,spotIntensity:6},silent:!0,blendMode:"source-over",lineStyle:{width:1,opacity:.5}}}),Td="@export ecgl.trail2.vertex\nattribute vec3 position: POSITION;\nattribute vec3 positionPrev;\nattribute vec3 positionNext;\nattribute float offset;\nattribute float dist;\nattribute float distAll;\nattribute float start;\n\nattribute vec4 a_Color : COLOR;\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform vec4 viewport : VIEWPORT;\nuniform float near : NEAR;\n\nuniform float speed : 0;\nuniform float trailLength: 0.3;\nuniform float time;\nuniform float period: 1000;\n\nuniform float spotSize: 1;\n\nvarying vec4 v_Color;\nvarying float v_Percent;\nvarying float v_SpotPercent;\n\n@import ecgl.common.wireframe.vertexHeader\n\n@import ecgl.lines3D.clipNear\n\nvoid main()\n{\n @import ecgl.lines3D.expandLine\n\n gl_Position = currProj;\n\n v_Color = a_Color;\n\n @import ecgl.common.wireframe.vertexMain\n\n#ifdef CONSTANT_SPEED\n float t = mod((speed * time + start) / distAll, 1. + trailLength) - trailLength;\n#else\n float t = mod((time + start) / period, 1. + trailLength) - trailLength;\n#endif\n\n float trailLen = distAll * trailLength;\n\n v_Percent = (dist - t * distAll) / trailLen;\n\n v_SpotPercent = spotSize / distAll;\n\n }\n@end\n\n\n@export ecgl.trail2.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\nuniform float spotIntensity: 5;\n\nvarying vec4 v_Color;\nvarying float v_Percent;\nvarying float v_SpotPercent;\n\n@import ecgl.common.wireframe.fragmentHeader\n\n@import clay.util.srgb\n\nvoid main()\n{\n if (v_Percent > 1.0 || v_Percent < 0.0) {\n discard;\n }\n\n float fade = v_Percent;\n\n#ifdef SRGB_DECODE\n gl_FragColor = sRGBToLinear(color * v_Color);\n#else\n gl_FragColor = color * v_Color;\n#endif\n\n @import ecgl.common.wireframe.fragmentMain\n\n if (v_Percent > (1.0 - v_SpotPercent)) {\n gl_FragColor.rgb *= spotIntensity;\n }\n\n gl_FragColor.a *= fade;\n}\n\n@end",Od=Za.vec3;function Md(e){return e>0?1:-1}xa.Shader["import"](Td);var Ed=xa.Mesh.extend((function(){var e=new xa.Material({shader:new xa.Shader(xa.Shader.source("ecgl.trail2.vertex"),xa.Shader.source("ecgl.trail2.fragment")),transparent:!0,depthMask:!1}),t=new eo({dynamic:!0});return t.createAttribute("dist","float",1),t.createAttribute("distAll","float",1),t.createAttribute("start","float",1),{geometry:t,material:e,culling:!1,$ignorePicking:!0}}),{updateData:function(e,t,n){var r=e.hostModel,i=this.geometry,a=r.getModel("effect"),o=a.get("trailWidth")*t.getDevicePixelRatio(),s=a.get("trailLength"),l=r.get("effect.constantSpeed"),u=1e3*r.get("effect.period"),c=null!=l;c?this.material.set("speed",l/1e3):this.material.set("period",u),this.material[c?"define":"undefine"]("vertex","CONSTANT_SPEED");var h=r.get("polyline");i.trailLength=s,this.material.set("trailLength",s),i.resetOffset(),["position","positionPrev","positionNext"].forEach((function(e){i.attributes[e].value=n.attributes[e].value}));var d=["dist","distAll","start","offset","color"];d.forEach((function(e){i.attributes[e].init(i.vertexCount)})),i.indices=n.indices;var f=[],p=a.get("trailColor"),g=a.get("trailOpacity"),m=null!=p,v=null!=g;this.updateWorldTransform();var y=this.worldTransform.x.len(),b=this.worldTransform.y.len(),_=this.worldTransform.z.len(),x=0,w=0;e.each((function(t){var r=e.getItemLayout(t),a=v?g:bu(e,t),s=yu(e,t);null==a&&(a=1),f=xa.parseColor(m?p:s,f),f[3]*=a;for(var l=h?n.getPolylineVertexCount(r):n.getCubicCurveVertexCount(r[0],r[1],r[2],r[3]),d=0,S=[],T=[],O=x;O<x+l;O++)i.attributes.position.get(O,S),S[0]*=y,S[1]*=b,S[2]*=_,O>x&&(d+=Od.dist(S,T)),i.attributes.dist.set(O,d),Od.copy(T,S);w=Math.max(w,d);var M=Math.random()*(c?d:u);for(O=x;O<x+l;O++)i.attributes.distAll.set(O,d),i.attributes.start.set(O,M),i.attributes.offset.set(O,Md(n.attributes.offset.get(O))*o/2),i.attributes.color.set(O,f);x+=l})),this.material.set("spotSize",.1*w*s),this.material.set("spotIntensity",a.get("spotIntensity")),i.dirty()},setAnimationTime:function(e){this.material.set("time",e)}});function Ad(e){return null!=e.radius?e.radius:null!=e.size?Math.max(e.size[0],e.size[1],e.size[2]):100}xa.Shader["import"](Oo);var Cd=r["b"].extend({type:"lines3D",__ecgl__:!0,init:function(e,t){this.groupGL=new xa.Node,this._meshLinesMaterial=new xa.Material({shader:xa.createShader("ecgl.meshLines3D"),transparent:!0,depthMask:!1}),this._linesMesh=new xa.Mesh({geometry:new eo,material:this._meshLinesMaterial,$ignorePicking:!0}),this._trailMesh=new Ed},render:function(e,t,n){this.groupGL.add(this._linesMesh);var r=e.coordinateSystem,i=e.getData();if(r&&r.viewGL){var a=r.viewGL;a.add(this.groupGL),this._updateLines(e,t,n);var o=r.viewGL.isLinearSpace()?"define":"undefine";this._linesMesh.material[o]("fragment","SRGB_DECODE"),this._trailMesh.material[o]("fragment","SRGB_DECODE")}var s=this._trailMesh;if(s.stopAnimation(),e.get("effect.show")){this.groupGL.add(s),s.updateData(i,n,this._linesMesh.geometry),s.__time=s.__time||0;var l=36e5;this._curveEffectsAnimator=s.animate("",{loop:!0}).when(l,{__time:l}).during((function(){s.setAnimationTime(s.__time)})).start()}else this.groupGL.remove(s),this._curveEffectsAnimator=null;this._linesMesh.material.blend=this._trailMesh.material.blend="lighter"===e.get("blendMode")?xa.additiveBlend:null},pauseEffect:function(){this._curveEffectsAnimator&&this._curveEffectsAnimator.pause()},resumeEffect:function(){this._curveEffectsAnimator&&this._curveEffectsAnimator.resume()},toggleEffect:function(){var e=this._curveEffectsAnimator;e&&(e.isPaused()?e.resume():e.pause())},_updateLines:function(e,t,n){var r=e.getData(),i=e.coordinateSystem,a=this._linesMesh.geometry,o=e.get("polyline");a.expandLine=!0;var s=Ad(i);a.segmentScale=s/20;var l="lineStyle.width".split("."),u=n.getDevicePixelRatio(),c=0;r.each((function(e){var t=r.getItemModel(e),n=t.get(l);null==n&&(n=1),r.setItemVisual(e,"lineWidth",n),c=Math.max(n,c)})),a.useNativeLine=!1;var h=0,d=0;r.each((function(e){var t=r.getItemLayout(e);o?(h+=a.getPolylineVertexCount(t),d+=a.getPolylineTriangleCount(t)):(h+=a.getCubicCurveVertexCount(t[0],t[1],t[2],t[3]),d+=a.getCubicCurveTriangleCount(t[0],t[1],t[2],t[3]))})),a.setVertexCount(h),a.setTriangleCount(d),a.resetOffset();var f=[];r.each((function(e){var t=r.getItemLayout(e),n=yu(r,e),i=bu(r,e),s=r.getItemVisual(e,"lineWidth")*u;null==i&&(i=1),f=xa.parseColor(n,f),f[3]*=i,o?a.addPolyline(t,f,s):a.addCubicCurve(t[0],t[1],t[2],t[3],f,s)})),a.dirty()},remove:function(){this.groupGL.removeAll()},dispose:function(){this.groupGL.removeAll()}});function Id(e){e.registerChartView(Cd),e.registerSeriesModel(Sd),e.registerLayout(wd),e.registerAction({type:"lines3DPauseEffect",event:"lines3deffectpaused",update:"series.lines3D:pauseEffect"},(function(){})),e.registerAction({type:"lines3DResumeEffect",event:"lines3deffectresumed",update:"series.lines3D:resumeEffect"},(function(){})),e.registerAction({type:"lines3DToggleEffect",event:"lines3deffectchanged",update:"series.lines3D:toggleEffect"},(function(){}))}function Dd(e,t){for(var n=[],r=0;r<t.length;r++)n.push(e.dataToPoint(t[r]));return n}Object(r["X"])(Id);var Ld=r["h"].extend({type:"series.polygons3D",getRegionModel:function(e){return this.getData().getItemModel(e)},getRegionPolygonCoords:function(e){var t=this.coordinateSystem,n=this.getData().getItemModel(e),r=n.option instanceof Array?n.option:n.getShallow("coords");n.get("multiPolygon")||(r=[r]);for(var i=[],a=0;a<r.length;a++){for(var o=[],s=1;s<r[a].length;s++)o.push(Dd(t,r[a][s]));i.push({exterior:Dd(t,r[a][0]),interiors:o})}return i},getInitialData:function(e){var t=new r["e"](["value"],this);return t.hasItemOption=!1,t.initData(e.data,[],(function(e,n,r,i){if(e instanceof Array)return NaN;t.hasItemOption=!0;var a=e.value;return null!=a?a instanceof Array?a[i]:a:void 0})),t},defaultOption:{show:!0,data:null,multiPolygon:!1,progressiveThreshold:1e3,progressive:1e3,zlevel:-10,label:{show:!1,distance:2,textStyle:{fontSize:20,color:"#000",backgroundColor:"rgba(255,255,255,0.7)",padding:3,borderRadius:4}},itemStyle:{color:"#fff",borderWidth:0,borderColor:"#333"},emphasis:{itemStyle:{color:"#639fc0"},label:{show:!0}}}});r["Y"].merge(Ld.prototype,Ml);var Pd=Ld,kd=r["b"].extend({type:"polygons3D",__ecgl__:!0,init:function(e,t){this.groupGL=new xa.Node,this._geo3DBuilderList=[],this._currentStep=0},render:function(e,t,n){this.groupGL.removeAll();var r=e.coordinateSystem;r&&r.viewGL&&r.viewGL.add(this.groupGL);var i=this._geo3DBuilderList[0];i||(i=new Mu(n),i.extrudeY="mapbox3D"!==r.type&&"maptalks3D"!==r.type,this._geo3DBuilderList[0]=i),this._updateShaderDefines(r,i),i.update(e,t,n),this._geo3DBuilderList.length=1,this.groupGL.add(i.rootNode)},incrementalPrepareRender:function(e,t,n){this.groupGL.removeAll();var r=e.coordinateSystem;r&&r.viewGL&&r.viewGL.add(this.groupGL),this._currentStep=0},incrementalRender:function(e,t,n,r){var i=this._geo3DBuilderList[this._currentStep],a=t.coordinateSystem;i||(i=new Mu(r),i.extrudeY="mapbox3D"!==a.type&&"maptalks3D"!==a.type,this._geo3DBuilderList[this._currentStep]=i),i.update(t,n,r,e.start,e.end),this.groupGL.add(i.rootNode),this._updateShaderDefines(a,i),this._currentStep++},_updateShaderDefines:function(e,t){var n=e.viewGL.isLinearSpace()?"define":"undefine";t.rootNode.traverse((function(t){t.material&&(t.material[n]("fragment","SRGB_DECODE"),"mapbox3D"!==e.type&&"maptalks3D"!==e.type||(t.material.define("fragment","NORMAL_UP_AXIS",2),t.material.define("fragment","NORMAL_FRONT_AXIS",1)))}))},remove:function(){this.groupGL.removeAll()},dispose:function(){this.groupGL.removeAll()}});function Rd(e){e.registerChartView(kd),e.registerSeriesModel(Pd)}Object(r["X"])(Rd);var Nd=r["h"].extend({type:"series.surface",dependencies:["globe","grid3D","geo3D"],visualStyleAccessPath:"itemStyle",formatTooltip:function(e){return xh(this,e)},getInitialData:function(e,t){var n=e.data;function i(e){return!(isNaN(e.min)||isNaN(e.max)||isNaN(e.step))}function a(e){var t=r["E"].getPrecisionSafe;return Math.max(t(e.min),t(e.max),t(e.step))+1}if(!n)if(e.parametric){var o=e.parametricEquation||{},s=o.u||{},l=o.v||{};["u","v"].forEach((function(e){i(o[e])})),["x","y","z"].forEach((function(e){o[e]}));var u=Math.floor((s.max+s.step-s.min)/s.step),c=Math.floor((l.max+l.step-l.min)/l.step);n=new Float32Array(u*c*5);var h=a(s),d=a(l);for(T=0,O=0;O<c;O++)for(M=0;M<u;M++){var f=M*s.step+s.min,p=O*l.step+l.min,g=r["E"].round(Math.min(f,s.max),h),m=r["E"].round(Math.min(p,l.max),d);E=o.x(g,m),A=o.y(g,m),D=o.z(g,m);n[T++]=E,n[T++]=A,n[T++]=D,n[T++]=g,n[T++]=m}}else{var v=e.equation||{},y=v.x||{},b=v.y||{};if(["x","y"].forEach((function(e){i(v[e])})),"function"!==typeof v.z)return void 0;var _=Math.floor((y.max+y.step-y.min)/y.step),x=Math.floor((b.max+b.step-b.min)/b.step);n=new Float32Array(_*x*3);for(var w=a(y),S=a(b),T=0,O=0;O<x;O++)for(var M=0;M<_;M++){var E=M*y.step+y.min,A=O*b.step+b.min,C=r["E"].round(Math.min(E,y.max),w),I=r["E"].round(Math.min(A,b.max),S),D=v.z(C,I);n[T++]=C,n[T++]=I,n[T++]=D}}var L=["x","y","z"];e.parametric&&L.push("u","v");var P=wh(this,L,n);return P},defaultOption:{coordinateSystem:"cartesian3D",zlevel:-10,grid3DIndex:0,shading:"lambert",parametric:!1,wireframe:{show:!0,lineStyle:{color:"rgba(0,0,0,0.5)",width:1}},equation:{x:{min:-1,max:1,step:.1},y:{min:-1,max:1,step:.1},z:null},parametricEquation:{u:{min:-1,max:1,step:.1},v:{min:-1,max:1,step:.1},x:null,y:null,z:null},dataShape:null,itemStyle:{},animationDurationUpdate:500}});r["Y"].merge(Nd.prototype,Ml);var jd=Nd,Fd=Za.vec3;function zd(e){return isNaN(e[0])||isNaN(e[1])||isNaN(e[2])}var Bd=r["b"].extend({type:"surface",__ecgl__:!0,init:function(e,t){this.groupGL=new xa.Node},render:function(e,t,n){var r=this._prevSurfaceMesh;this._prevSurfaceMesh=this._surfaceMesh,this._surfaceMesh=r,this._surfaceMesh||(this._surfaceMesh=this._createSurfaceMesh()),this.groupGL.remove(this._prevSurfaceMesh),this.groupGL.add(this._surfaceMesh);var i=e.coordinateSystem,a=e.get("shading"),o=e.getData(),s="ecgl."+a;if(this._surfaceMesh.material&&this._surfaceMesh.material.shader.name===s||(this._surfaceMesh.material=xa.createMaterial(s,["VERTEX_COLOR","DOUBLE_SIDED"])),xa.setMaterialFromModel(a,this._surfaceMesh.material,e,n),i&&i.viewGL){i.viewGL.add(this.groupGL);var l=i.viewGL.isLinearSpace()?"define":"undefine";this._surfaceMesh.material[l]("fragment","SRGB_DECODE")}var u=e.get("parametric"),c=e.get("dataShape");c||(c=this._getDataShape(o,u));var h=e.getModel("wireframe"),d=h.get("lineStyle.width"),f=h.get("show")&&d>0;this._updateSurfaceMesh(this._surfaceMesh,e,c,f);var p=this._surfaceMesh.material;f?(p.define("WIREFRAME_QUAD"),p.set("wireframeLineWidth",d),p.set("wireframeLineColor",xa.parseColor(h.get("lineStyle.color")))):p.undefine("WIREFRAME_QUAD"),this._initHandler(e,n),this._updateAnimation(e)},_updateAnimation:function(e){xa.updateVertexAnimation([["prevPosition","position"],["prevNormal","normal"]],this._prevSurfaceMesh,this._surfaceMesh,e)},_createSurfaceMesh:function(){var e=new xa.Mesh({geometry:new xa.Geometry({dynamic:!0,sortTriangles:!0}),shadowDepthMaterial:new xa.Material({shader:new xa.Shader(xa.Shader.source("ecgl.sm.depth.vertex"),xa.Shader.source("ecgl.sm.depth.fragment"))}),culling:!1,renderOrder:10,renderNormal:!0});return e.geometry.createAttribute("barycentric","float",4),e.geometry.createAttribute("prevPosition","float",3),e.geometry.createAttribute("prevNormal","float",3),Object.assign(e.geometry,gu),e},_initHandler:function(e,t){var n=e.getData(),r=this._surfaceMesh,i=e.coordinateSystem;function a(e,t){for(var n=1/0,i=-1,a=[],o=0;o<e.length;o++){r.geometry.attributes.position.get(e[o],a);var s=Fd.dist(t.array,a);s<n&&(n=s,i=e[o])}return i}r.seriesIndex=e.seriesIndex;var o=-1;r.off("mousemove"),r.off("mouseout"),r.on("mousemove",(function(e){var s=a(e.triangle,e.point);if(s>=0){var l=[];r.geometry.attributes.position.get(s,l);for(var u=i.pointToData(l),c=1/0,h=-1,d=[],f=0;f<n.count();f++){d[0]=n.get("x",f),d[1]=n.get("y",f),d[2]=n.get("z",f);var p=Fd.squaredDistance(d,u);p<c&&(h=f,c=p)}h!==o&&t.dispatchAction({type:"grid3DShowAxisPointer",value:u}),o=h,r.dataIndex=h}else r.dataIndex=-1}),this),r.on("mouseout",(function(e){o=-1,r.dataIndex=-1,t.dispatchAction({type:"grid3DHideAxisPointer"})}),this)},_updateSurfaceMesh:function(e,t,n,r){var i=e.geometry,a=t.getData(),o=a.getLayout("points"),s=0;a.each((function(e){a.hasValue(e)||s++}));var l=s||r,u=i.attributes.position,c=i.attributes.normal,h=i.attributes.texcoord0,d=i.attributes.barycentric,f=i.attributes.color,p=n[0],g=n[1],m=t.get("shading"),v="color"!==m;if(l){var y=(p-1)*(g-1)*4;u.init(y),r&&d.init(y)}else u.value=new Float32Array(o);f.init(i.vertexCount),h.init(i.vertexCount);var b=[0,3,1,1,3,2],_=[[1,1,0,0],[0,1,0,1],[1,0,0,1],[1,0,1,0]],x=i.indices=new(i.vertexCount>65535?Uint32Array:Uint16Array)((p-1)*(g-1)*6),w=function(e,t,n){n[1]=e*g+t,n[0]=e*g+t+1,n[3]=(e+1)*g+t+1,n[2]=(e+1)*g+t},S=!1;if(l){var T=[],O=[],M=0;v?c.init(i.vertexCount):c.value=null;for(var E=[[],[],[]],A=[],C=[],I=Fd.create(),D=function(e,t,n){var r=3*t;return n[0]=e[r],n[1]=e[r+1],n[2]=e[r+2],n},L=new Float32Array(o.length),P=new Float32Array(o.length/3*4),k=0;k<a.count();k++)if(a.hasValue(k)){var R=xa.parseColor(yu(a,k)),N=bu(a,k);null!=N&&(R[3]*=N),R[3]<.99&&(S=!0);for(var j=0;j<4;j++)P[4*k+j]=R[j]}var F=[1e7,1e7,1e7];for(k=0;k<p-1;k++)for(var z=0;z<g-1;z++){var B=k*(g-1)+z,V=4*B;w(k,z,T);var G=!1;for(j=0;j<4;j++)D(o,T[j],O),zd(O)&&(G=!0);for(j=0;j<4;j++)G?u.set(V+j,F):(D(o,T[j],O),u.set(V+j,O)),r&&d.set(V+j,_[j]);for(j=0;j<6;j++)x[M++]=b[j]+V;if(v&&!G)for(j=0;j<2;j++){for(var H=3*j,U=0;U<3;U++){var W=T[b[H]+U];D(o,W,E[U])}Fd.sub(A,E[0],E[1]),Fd.sub(C,E[1],E[2]),Fd.cross(I,A,C);for(U=0;U<3;U++){var X=3*T[b[H]+U];L[X]=L[X]+I[0],L[X+1]=L[X+1]+I[1],L[X+2]=L[X+2]+I[2]}}}if(v)for(k=0;k<L.length/3;k++)D(L,k,I),Fd.normalize(I,I),L[3*k]=I[0],L[3*k+1]=I[1],L[3*k+2]=I[2];R=[];var Y=[];for(k=0;k<p-1;k++)for(z=0;z<g-1;z++){B=k*(g-1)+z,V=4*B;w(k,z,T);for(j=0;j<4;j++){for(U=0;U<4;U++)R[U]=P[4*T[j]+U];f.set(V+j,R),v&&(D(L,T[j],I),c.set(V+j,I));W=T[j];Y[0]=W%g/(g-1),Y[1]=Math.floor(W/g)/(p-1),h.set(V+j,Y)}B++}}else{for(Y=[],k=0;k<a.count();k++){Y[0]=k%g/(g-1),Y[1]=Math.floor(k/g)/(p-1);R=xa.parseColor(yu(a,k)),N=bu(a,k);null!=N&&(R[3]*=N),R[3]<.99&&(S=!0),f.set(k,R),h.set(k,Y)}T=[];var K=0;for(k=0;k<p-1;k++)for(z=0;z<g-1;z++){w(k,z,T);for(j=0;j<6;j++)x[K++]=T[b[j]]}v?i.generateVertexNormals():c.value=null}e.material.get("normalMap")&&i.generateTangents(),i.updateBoundingBox(),i.dirty(),e.material.transparent=S,e.material.depthMask=!S},_getDataShape:function(e,t){for(var n=-1/0,r=0,i=0,a=!1,o=t?"u":"x",s=e.count(),l=0;l<s;l++){var u=e.get(o,l);u<n&&(i,i=0,r++),n=u,i++}if(r&&1!==i||(a=!0),!a)return[r+1,i];var c=Math.floor(Math.sqrt(s));while(c>0){if(Math.floor(s/c)===s/c)return[c,s/c];c--}return c=Math.floor(Math.sqrt(s)),[c,c]},dispose:function(){this.groupGL.removeAll()},remove:function(){this.groupGL.removeAll()}});function Vd(e){e.registerChartView(Bd),e.registerSeriesModel(jd),e.registerLayout((function(e,t){e.eachSeriesByType("surface",(function(e){var t=e.coordinateSystem;t&&t.type;var n=e.getData(),r=new Float32Array(3*n.count()),i=[NaN,NaN,NaN];if(t&&"cartesian3D"===t.type){var a=t.dimensions,o=a.map((function(t){return e.coordDimToDataDim(t)[0]}));n.each(o,(function(e,a,o,s){var l;l=n.hasValue(s)?t.dataToPoint([e,a,o]):i,r[3*s]=l[0],r[3*s+1]=l[1],r[3*s+2]=l[2]}))}n.setLayout("points",r)}))}))}function Gd(e,t){for(var n=[],r=0;r<t.length;r++)n.push(e.dataToPoint(t[r]));return n}Object(r["X"])(Vd);var Hd=r["h"].extend({type:"series.map3D",layoutMode:"box",coordinateSystem:null,visualStyleAccessPath:"itemStyle",optionUpdated:function(e){e=e||{};var t=this.get("coordinateSystem");null!=t&&"geo3D"!==t&&(this.get("groundPlane.show")&&(this.option.groundPlane.show=!1),this._geo=null)},getInitialData:function(e){e.data=this.getFilledRegions(e.data,e.map);var t=r["A"].createDimensions(e.data,{coordDimensions:["value"]}),n=new r["e"](t,this);n.initData(e.data);var i={};return n.each((function(e){var t=n.getName(e),r=n.getItemModel(e);i[t]=r})),this._regionModelMap=i,n},formatTooltip:function(e){return xh(this,e)},getRegionModel:function(e){var t=this.getData().getName(e);return this._regionModelMap[t]||new r["f"](null,this)},getRegionPolygonCoords:function(e){var t=this.coordinateSystem,n=this.getData().getName(e);if(t.transform){var r=t.getRegion(n);return r?r.geometries:[]}this._geo||(this._geo=zu.createGeo3D(this));r=this._geo.getRegion(n);for(var i=[],a=0;a<r.geometries.length;a++){var o=r.geometries[a],s=[],l=Gd(t,o.exterior);if(s&&s.length)for(var u=0;u<o.interiors.length;u++)s.push(Gd(t,s[u]));i.push({interiors:s,exterior:l})}return i},getFormattedLabel:function(e,t){var n=bh.getFormattedLabel(this,e,t);return null==n&&(n=this.getData().getName(e)),n},defaultOption:{coordinateSystem:"geo3D",data:null}});r["Y"].merge(Hd.prototype,El),r["Y"].merge(Hd.prototype,ja),r["Y"].merge(Hd.prototype,Fa),r["Y"].merge(Hd.prototype,za),r["Y"].merge(Hd.prototype,Ml);var Ud=Hd,Wd=r["b"].extend({type:"map3D",__ecgl__:!0,init:function(e,t){this._geo3DBuilder=new Mu(t),this.groupGL=new xa.Node},render:function(e,t,n){var r=e.coordinateSystem;if(r&&r.viewGL){if(this.groupGL.add(this._geo3DBuilder.rootNode),r.viewGL.add(this.groupGL),"geo3D"===r.type){r,this._sceneHelper||(this._sceneHelper=new ao,this._sceneHelper.initLight(this.groupGL)),this._sceneHelper.setScene(r.viewGL.scene),this._sceneHelper.updateLight(e),r.viewGL.setPostEffect(e.getModel("postEffect"),n),r.viewGL.setTemporalSuperSampling(e.getModel("temporalSuperSampling"));var i=this._control;i||(i=this._control=new Ya({zr:n.getZr()}),this._control.init());var a=e.getModel("viewControl");i.setViewGL(r.viewGL),i.setFromViewControlModel(a,0),i.off("update"),i.on("update",(function(){n.dispatchAction({type:"map3DChangeCamera",alpha:i.getAlpha(),beta:i.getBeta(),distance:i.getDistance(),from:this.uid,map3DId:e.id})})),this._geo3DBuilder.extrudeY=!0}else this._control&&(this._control.dispose(),this._control=null),this._sceneHelper&&(this._sceneHelper.dispose(),this._sceneHelper=null),e.getData().getLayout("geo3D"),this._geo3DBuilder.extrudeY=!1;this._geo3DBuilder.update(e,t,n,0,e.getData().count());var o=r.viewGL.isLinearSpace()?"define":"undefine";this._geo3DBuilder.rootNode.traverse((function(e){e.material&&e.material[o]("fragment","SRGB_DECODE")}))}},afterRender:function(e,t,n,r){var i=r.renderer,a=e.coordinateSystem;a&&"geo3D"===a.type&&(this._sceneHelper.updateAmbientCubemap(i,e,n),this._sceneHelper.updateSkybox(i,e,n))},dispose:function(){this.groupGL.removeAll(),this._control.dispose()}});function Xd(e){Bu(e),e.registerChartView(Wd),e.registerSeriesModel(Ud),e.registerAction({type:"map3DChangeCamera",event:"map3dcamerachanged",update:"series:updateCamera"},(function(e,t){t.eachComponent({mainType:"series",subType:"map3D",query:e},(function(t){t.setView(e)}))}))}Object(r["X"])(Xd);var Yd=r["h"].extend({type:"series.scatterGL",dependencies:["grid","polar","geo","singleAxis"],visualStyleAccessPath:"itemStyle",hasSymbolVisual:!0,getInitialData:function(){return r["A"].createList(this)},defaultOption:{coordinateSystem:"cartesian2d",zlevel:10,progressive:1e5,progressiveThreshold:1e5,large:!1,symbol:"circle",symbolSize:10,zoomScale:0,blendMode:"source-over",itemStyle:{opacity:.8},postEffect:{enable:!1,colorCorrection:{exposure:0,brightness:0,contrast:1,saturation:1,enable:!0}}}}),Kd=n("VpdQ"),qd=n("T3M/");function Zd(e){this.viewGL=e}Zd.prototype.reset=function(e,t){this._updateCamera(t.getWidth(),t.getHeight(),t.getDevicePixelRatio()),this._viewTransform=Kd["create"](),this.updateTransform(e,t)},Zd.prototype.updateTransform=function(e,t){var n=e.coordinateSystem;n.getRoamTransform&&(Kd["invert"](this._viewTransform,n.getRoamTransform()),this._setCameraTransform(this._viewTransform),t.getZr().refresh())},Zd.prototype.dataToPoint=function(e,t,n){n=e.dataToPoint(t,null,n);var r=this._viewTransform;r&&qd["applyTransform"](n,n,r)},Zd.prototype.removeTransformInPoint=function(e){return this._viewTransform&&qd["applyTransform"](e,e,this._viewTransform),e},Zd.prototype.getZoom=function(){if(this._viewTransform){var e=this._viewTransform;return 1/Math.max(Math.sqrt(e[0]*e[0]+e[1]*e[1]),Math.sqrt(e[2]*e[2]+e[3]*e[3]))}return 1},Zd.prototype._setCameraTransform=function(e){var t=this.viewGL.camera;t.position.set(e[4],e[5],0),t.scale.set(Math.sqrt(e[0]*e[0]+e[1]*e[1]),Math.sqrt(e[2]*e[2]+e[3]*e[3]),1)},Zd.prototype._updateCamera=function(e,t,n){this.viewGL.setViewport(0,0,e,t,n);var r=this.viewGL.camera;r.left=r.top=0,r.bottom=t,r.right=e,r.near=0,r.far=100};var $d=Zd,Qd=r["b"].extend({type:"scatterGL",__ecgl__:!0,init:function(e,t){this.groupGL=new xa.Node,this.viewGL=new ll("orthographic"),this.viewGL.add(this.groupGL),this._pointsBuilderList=[],this._currentStep=0,this._sizeScale=1,this._glViewHelper=new $d(this.viewGL)},render:function(e,t,n){if(this.groupGL.removeAll(),this._glViewHelper.reset(e,n),e.getData().count()){var r=this._pointsBuilderList[0];r||(r=this._pointsBuilderList[0]=new ed(!0,n)),this._pointsBuilderList.length=1,this.groupGL.add(r.rootNode),this._removeTransformInPoints(e.getData().getLayout("points")),r.update(e,t,n),this.viewGL.setPostEffect(e.getModel("postEffect"),n)}},incrementalPrepareRender:function(e,t,n){this.groupGL.removeAll(),this._glViewHelper.reset(e,n),this._currentStep=0,this.viewGL.setPostEffect(e.getModel("postEffect"),n)},incrementalRender:function(e,t,n,r){if(!(e.end<=e.start)){var i=this._pointsBuilderList[this._currentStep];i||(i=new ed(!0,r),this._pointsBuilderList[this._currentStep]=i),this.groupGL.add(i.rootNode),this._removeTransformInPoints(t.getData().getLayout("points")),i.setSizeScale(this._sizeScale),i.update(t,n,r,e.start,e.end),r.getZr().refresh(),this._currentStep++}},updateTransform:function(e,t,n){if(e.coordinateSystem.getRoamTransform){this._glViewHelper.updateTransform(e,n);var r=this._glViewHelper.getZoom(),i=Math.max((e.get("zoomScale")||0)*(r-1)+1,0);this._sizeScale=i,this._pointsBuilderList.forEach((function(e){e.setSizeScale(i)}))}},_removeTransformInPoints:function(e){if(e)for(var t=[],n=0;n<e.length;n+=2)t[0]=e[n],t[1]=e[n+1],this._glViewHelper.removeTransformInPoint(t),e[n]=t[0],e[n+1]=t[1]},dispose:function(){this.groupGL.removeAll()},remove:function(){this.groupGL.removeAll()}});function Jd(e){e.registerChartView(Qd),e.registerSeriesModel(Yd),e.registerLayout({seriesType:"scatterGL",reset:function(e){var t,n=e.coordinateSystem,r=e.getData();if(n){var i=n.dimensions.map((function(e){return r.mapDimension(e)})).slice(0,2),a=[];1===i.length?t=function(e){for(var t=new Float32Array(2*(e.end-e.start)),a=e.start;a<e.end;a++){var o=2*(a-e.start),s=r.get(i[0],a),l=n.dataToPoint(s);t[o]=l[0],t[o+1]=l[1]}r.setLayout("points",t)}:2===i.length&&(t=function(e){for(var t=new Float32Array(2*(e.end-e.start)),o=e.start;o<e.end;o++){var s=2*(o-e.start),l=r.get(i[0],o),u=r.get(i[1],o);a[0]=l,a[1]=u,a=n.dataToPoint(a),t[s]=a[0],t[s+1]=a[1]}r.setLayout("points",t)})}return{progress:t}}})}Object(r["X"])(Jd);var ef=n("E7N6"),tf=n("xw5M"),nf=function(e,t,n,i,a){for(var o=new ef["a"](i),s=0;s<e.length;s++)o.addNode(Di.firstNotNull(e[s].id,e[s].name,s),s);var l,u=[],c=[],h=0;for(s=0;s<t.length;s++){var d=t[s],f=d.source,p=d.target;o.addEdge(f,p,h)&&(c.push(d),u.push(Di.firstNotNull(d.id,f+" > "+p)),h++)}var g=r["A"].createDimensions(e,{coordDimensions:["value"]});l=new r["e"](g,n),l.initData(e);var m=new r["e"](["value"],n);return m.initData(c,u),a&&a(l,m),Object(tf["a"])({mainData:l,struct:o,structAttr:"graph",datas:{node:l,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o},rf=r["h"].extend({type:"series.graphGL",visualStyleAccessPath:"itemStyle",hasSymbolVisual:!0,init:function(e){rf.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._categoriesData},this._updateCategoriesData()},mergeOption:function(e){rf.superApply(this,"mergeOption",arguments),this._updateCategoriesData()},getFormattedLabel:function(e,t,n,r){var i=bh.getFormattedLabel(this,e,t,n,r);if(null==i){var a=this.getData(),o=a.dimensions[a.dimensions.length-1];i=a.get(o,e)}return i},getInitialData:function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[],i=this;if(r&&n)return nf(r,n,this,!0,a).data;function a(e,n){e.wrapMethod("getItemModel",(function(e){var t=i._categoriesModels,n=e.getShallow("category"),r=t[n];return r&&(r.parentModel=e.parentModel,e.parentModel=r),e}));var r=t.getModel([]).getModel;function a(e,t){var n=r.call(this,e,t);return n.resolveParentPath=o,n}function o(e){if(e&&("label"===e[0]||"label"===e[1])){var t=e.slice();return"label"===e[0]?t[0]="edgeLabel":"label"===e[1]&&(t[1]="edgeLabel"),t}return e}n.wrapMethod("getItemModel",(function(e){return e.resolveParentPath=o,e.getModel=a,e}))}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(e,t,n){if("edge"===n){var i=this.getData(),a=this.getDataParams(e,n),o=i.graph.getEdgeByIndex(e),s=i.getName(o.node1.dataIndex),l=i.getName(o.node2.dataIndex),u=[];return null!=s&&u.push(s),null!=l&&u.push(l),u=r["u"].encodeHTML(u.join(" > ")),a.value&&(u+=" : "+r["u"].encodeHTML(a.value)),u}return rf.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var e=(this.option.categories||[]).map((function(e){return null!=e.value?e:Object.assign({value:0},e)})),t=new r["e"](["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray((function(e){return t.getItemModel(e,!0)}))},setView:function(e){null!=e.zoom&&(this.option.zoom=e.zoom),null!=e.offset&&(this.option.offset=e.offset)},setNodePosition:function(e){for(var t=0;t<e.length/2;t++){var n=e[2*t],r=e[2*t+1],i=this.getData().getRawDataItem(t);i.x=n,i.y=r}},isAnimationEnabled:function(){return rf.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:10,z:2,legendHoverLink:!0,layout:"forceAtlas2",forceAtlas2:{initLayout:null,GPU:!0,steps:1,maxSteps:1e3,repulsionByDegree:!0,linLogMode:!1,strongGravityMode:!1,gravity:1,edgeWeightInfluence:1,edgeWeight:[1,4],nodeWeight:[1,4],preventOverlap:!1,gravityCenter:null},focusNodeAdjacency:!0,focusNodeAdjacencyOn:"mouseover",left:"center",top:"center",symbol:"circle",symbolSize:5,roam:!1,center:null,zoom:1,label:{show:!1,formatter:"{b}",position:"right",distance:5,textStyle:{fontSize:14}},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{label:{show:!0}},animation:!1}}),af=rf,of=Za.vec2,sf=[[0,0],[1,1]],lf=vn.extend((function(){return{segmentScale:4,dynamic:!0,useNativeLine:!0,attributes:{position:new vn.Attribute("position","float",2,"POSITION"),normal:new vn.Attribute("normal","float",2),offset:new vn.Attribute("offset","float",1),color:new vn.Attribute("color","float",4,"COLOR")}}}),{resetOffset:function(){this._vertexOffset=0,this._faceOffset=0,this._itemVertexOffsets=[]},setVertexCount:function(e){var t=this.attributes;this.vertexCount!==e&&(t.position.init(e),t.color.init(e),this.useNativeLine||(t.offset.init(e),t.normal.init(e)),e>65535?this.indices instanceof Uint16Array&&(this.indices=new Uint32Array(this.indices)):this.indices instanceof Uint32Array&&(this.indices=new Uint16Array(this.indices)))},setTriangleCount:function(e){this.triangleCount!==e&&(this.indices=0===e?null:this.vertexCount>65535?new Uint32Array(3*e):new Uint16Array(3*e))},_getCubicCurveApproxStep:function(e,t,n,r){var i=of.dist(e,t)+of.dist(n,t)+of.dist(r,n),a=1/(i+1)*this.segmentScale;return a},getCubicCurveVertexCount:function(e,t,n,r){var i=this._getCubicCurveApproxStep(e,t,n,r),a=Math.ceil(1/i);return this.useNativeLine?2*a:2*a+2},getCubicCurveTriangleCount:function(e,t,n,r){var i=this._getCubicCurveApproxStep(e,t,n,r),a=Math.ceil(1/i);return this.useNativeLine?0:2*a},getLineVertexCount:function(){return this.getPolylineVertexCount(sf)},getLineTriangleCount:function(){return this.getPolylineTriangleCount(sf)},getPolylineVertexCount:function(e){var t;if("number"===typeof e)t=e;else{var n="number"!==typeof e[0];t=n?e.length:e.length/2}return this.useNativeLine?2*(t-1):2*(t-1)+2},getPolylineTriangleCount:function(e){var t;if("number"===typeof e)t=e;else{var n="number"!==typeof e[0];t=n?e.length:e.length/2}return this.useNativeLine?0:2*(t-1)},addCubicCurve:function(e,t,n,r,i,a){null==a&&(a=1);var o=e[0],s=e[1],l=t[0],u=t[1],c=n[0],h=n[1],d=r[0],f=r[1],p=this._getCubicCurveApproxStep(e,t,n,r),g=p*p,m=g*p,v=3*p,y=3*g,b=6*g,_=6*m,x=o-2*l+c,w=s-2*u+h,S=3*(l-c)-o+d,T=3*(u-h)-s+f,O=o,M=s,E=(l-o)*v+x*y+S*m,A=(u-s)*v+w*y+T*m,C=x*b+S*_,I=w*b+T*_,D=S*_,L=T*_,P=0,k=0,R=Math.ceil(1/p),N=new Float32Array(3*(R+1)),j=(N=[],0);for(k=0;k<R+1;k++)N[j++]=O,N[j++]=M,O+=E,M+=A,E+=C,A+=I,C+=D,I+=L,P+=p,P>1&&(O=E>0?Math.min(O,d):Math.max(O,d),M=A>0?Math.min(M,f):Math.max(M,f));this.addPolyline(N,i,a)},addLine:function(e,t,n,r){this.addPolyline([e,t],n,r)},addPolyline:function(){var e=of.create(),t=of.create(),n=of.create(),r=of.create(),i=[],a=[],o=[];return function(s,l,u,c,h){if(s.length){var d="number"!==typeof s[0];if(null==h&&(h=d?s.length:s.length/2),!(h<2)){null==c&&(c=0),null==u&&(u=1),this._itemVertexOffsets.push(this._vertexOffset);for(var f,p=d?"number"!==typeof l[0]:l.length/4===h,g=this.attributes.position,m=this.attributes.color,v=this.attributes.offset,y=this.attributes.normal,b=this.indices,_=this._vertexOffset,x=0;x<h;x++){if(d)i=s[x+c],f=p?l[x+c]:l;else{var w=2*x+c;if(i=i||[],i[0]=s[w],i[1]=s[w+1],p){var S=4*x+c;f=f||[],f[0]=l[S],f[1]=l[S+1],f[2]=l[S+2],f[3]=l[S+3]}else f=l}if(this.useNativeLine)x>1&&(g.copy(_,_-1),m.copy(_,_-1),_++);else{var T;if(x<h-1){if(d)of.copy(a,s[x+1]);else{w=2*(x+1)+c;a=a||[],a[0]=s[w],a[1]=s[w+1]}if(x>0){of.sub(e,i,o),of.sub(t,a,i),of.normalize(e,e),of.normalize(t,t),of.add(r,e,t),of.normalize(r,r);var O=u/2*Math.min(1/of.dot(e,r),2);n[0]=-r[1],n[1]=r[0],T=O}else of.sub(e,a,i),of.normalize(e,e),n[0]=-e[1],n[1]=e[0],T=u/2}else of.sub(e,i,o),of.normalize(e,e),n[0]=-e[1],n[1]=e[0],T=u/2;y.set(_,n),y.set(_+1,n),v.set(_,T),v.set(_+1,-T),of.copy(o,i),g.set(_,i),g.set(_+1,i),m.set(_,f),m.set(_+1,f),_+=2}if(this.useNativeLine)m.set(_,f),g.set(_,i),_++;else if(x>0){var M=3*this._faceOffset;b=this.indices;b[M]=_-4,b[M+1]=_-3,b[M+2]=_-2,b[M+3]=_-3,b[M+4]=_-1,b[M+5]=_-2,this._faceOffset+=2}}this._vertexOffset=_}}}}(),setItemColor:function(e,t){for(var n=this._itemVertexOffsets[e],r=e<this._itemVertexOffsets.length-1?this._itemVertexOffsets[e+1]:this._vertexOffset,i=n;i<r;i++)this.attributes.color.set(i,t);this.dirty("color")}});r["Y"].defaults(lf.prototype,Ka);var uf=lf,cf="@export ecgl.forceAtlas2.updateNodeRepulsion\n\n#define NODE_COUNT 0\n\nuniform sampler2D positionTex;\n\nuniform vec2 textureSize;\nuniform float gravity;\nuniform float scaling;\nuniform vec2 gravityCenter;\n\nuniform bool strongGravityMode;\nuniform bool preventOverlap;\n\nvarying vec2 v_Texcoord;\n\nvoid main() {\n\n vec4 n0 = texture2D(positionTex, v_Texcoord);\n\n vec2 force = vec2(0.0);\n for (int i = 0; i < NODE_COUNT; i++) {\n vec2 uv = vec2(\n mod(float(i), textureSize.x) / (textureSize.x - 1.0),\n floor(float(i) / textureSize.x) / (textureSize.y - 1.0)\n );\n vec4 n1 = texture2D(positionTex, uv);\n\n vec2 dir = n0.xy - n1.xy;\n float d2 = dot(dir, dir);\n\n if (d2 > 0.0) {\n float factor = 0.0;\n if (preventOverlap) {\n float d = sqrt(d2);\n d = d - n0.w - n1.w;\n if (d > 0.0) {\n factor = scaling * n0.z * n1.z / (d * d);\n }\n else if (d < 0.0) {\n factor = scaling * 100.0 * n0.z * n1.z;\n }\n }\n else {\n factor = scaling * n0.z * n1.z / d2;\n }\n force += dir * factor;\n }\n }\n\n vec2 dir = gravityCenter - n0.xy;\n float d = 1.0;\n if (!strongGravityMode) {\n d = length(dir);\n }\n\n force += dir * n0.z * gravity / (d + 1.0);\n\n gl_FragColor = vec4(force, 0.0, 1.0);\n}\n@end\n\n@export ecgl.forceAtlas2.updateEdgeAttraction.vertex\n\nattribute vec2 node1;\nattribute vec2 node2;\nattribute float weight;\n\nuniform sampler2D positionTex;\nuniform float edgeWeightInfluence;\nuniform bool preventOverlap;\nuniform bool linLogMode;\n\nuniform vec2 windowSize: WINDOW_SIZE;\n\nvarying vec2 v_Force;\n\nvoid main() {\n\n vec4 n0 = texture2D(positionTex, node1);\n vec4 n1 = texture2D(positionTex, node2);\n\n vec2 dir = n1.xy - n0.xy;\n float d = length(dir);\n float w;\n if (edgeWeightInfluence == 0.0) {\n w = 1.0;\n }\n else if (edgeWeightInfluence == 1.0) {\n w = weight;\n }\n else {\n w = pow(weight, edgeWeightInfluence);\n }\n vec2 offset = vec2(1.0 / windowSize.x, 1.0 / windowSize.y);\n vec2 scale = vec2((windowSize.x - 1.0) / windowSize.x, (windowSize.y - 1.0) / windowSize.y);\n vec2 pos = node1 * scale * 2.0 - 1.0;\n gl_Position = vec4(pos + offset, 0.0, 1.0);\n gl_PointSize = 1.0;\n\n float factor;\n if (preventOverlap) {\n d = d - n1.w - n0.w;\n }\n if (d <= 0.0) {\n v_Force = vec2(0.0);\n return;\n }\n\n if (linLogMode) {\n factor = w * log(d) / d;\n }\n else {\n factor = w;\n }\n v_Force = dir * factor;\n}\n@end\n\n@export ecgl.forceAtlas2.updateEdgeAttraction.fragment\n\nvarying vec2 v_Force;\n\nvoid main() {\n gl_FragColor = vec4(v_Force, 0.0, 0.0);\n}\n@end\n\n@export ecgl.forceAtlas2.calcWeightedSum.vertex\n\nattribute vec2 node;\n\nvarying vec2 v_NodeUv;\n\nvoid main() {\n\n v_NodeUv = node;\n gl_Position = vec4(0.0, 0.0, 0.0, 1.0);\n gl_PointSize = 1.0;\n}\n@end\n\n@export ecgl.forceAtlas2.calcWeightedSum.fragment\n\nvarying vec2 v_NodeUv;\n\nuniform sampler2D positionTex;\nuniform sampler2D forceTex;\nuniform sampler2D forcePrevTex;\n\nvoid main() {\n vec2 force = texture2D(forceTex, v_NodeUv).rg;\n vec2 forcePrev = texture2D(forcePrevTex, v_NodeUv).rg;\n\n float mass = texture2D(positionTex, v_NodeUv).z;\n float swing = length(force - forcePrev) * mass;\n float traction = length(force + forcePrev) * 0.5 * mass;\n\n gl_FragColor = vec4(swing, traction, 0.0, 0.0);\n}\n@end\n\n@export ecgl.forceAtlas2.calcGlobalSpeed\n\nuniform sampler2D globalSpeedPrevTex;\nuniform sampler2D weightedSumTex;\nuniform float jitterTolerence;\n\nvoid main() {\n vec2 weightedSum = texture2D(weightedSumTex, vec2(0.5)).xy;\n float prevGlobalSpeed = texture2D(globalSpeedPrevTex, vec2(0.5)).x;\n float globalSpeed = jitterTolerence * jitterTolerence\n * weightedSum.y / weightedSum.x;\n if (prevGlobalSpeed > 0.0) {\n globalSpeed = min(globalSpeed / prevGlobalSpeed, 1.5) * prevGlobalSpeed;\n }\n gl_FragColor = vec4(globalSpeed, 0.0, 0.0, 1.0);\n}\n@end\n\n@export ecgl.forceAtlas2.updatePosition\n\nuniform sampler2D forceTex;\nuniform sampler2D forcePrevTex;\nuniform sampler2D positionTex;\nuniform sampler2D globalSpeedTex;\n\nvarying vec2 v_Texcoord;\n\nvoid main() {\n vec2 force = texture2D(forceTex, v_Texcoord).xy;\n vec2 forcePrev = texture2D(forcePrevTex, v_Texcoord).xy;\n vec4 node = texture2D(positionTex, v_Texcoord);\n\n float globalSpeed = texture2D(globalSpeedTex, vec2(0.5)).r;\n float swing = length(force - forcePrev);\n float speed = 0.1 * globalSpeed / (0.1 + globalSpeed * sqrt(swing));\n\n float df = length(force);\n if (df > 0.0) {\n speed = min(df * speed, 10.0) / df;\n\n gl_FragColor = vec4(node.xy + speed * force, node.zw);\n }\n else {\n gl_FragColor = node;\n }\n}\n@end\n\n@export ecgl.forceAtlas2.edges.vertex\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\nattribute vec2 node;\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n\nuniform sampler2D positionTex;\n\nvoid main()\n{\n gl_Position = worldViewProjection * vec4(\n texture2D(positionTex, node).xy, -10.0, 1.0\n );\n v_Color = a_Color;\n}\n@end\n\n@export ecgl.forceAtlas2.edges.fragment\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\nvarying vec4 v_Color;\nvoid main() {\n gl_FragColor = color * v_Color;\n}\n@end";xa.Shader["import"](cf);var hf={repulsionByDegree:!0,linLogMode:!1,strongGravityMode:!1,gravity:1,scaling:1,edgeWeightInfluence:1,jitterTolerence:.1,preventOverlap:!1,dissuadeHubs:!1,gravityCenter:null};function df(e){var t={type:xa.Texture.FLOAT,minFilter:xa.Texture.NEAREST,magFilter:xa.Texture.NEAREST};this._positionSourceTex=new xa.Texture2D(t),this._positionSourceTex.flipY=!1,this._positionTex=new xa.Texture2D(t),this._positionPrevTex=new xa.Texture2D(t),this._forceTex=new xa.Texture2D(t),this._forcePrevTex=new xa.Texture2D(t),this._weightedSumTex=new xa.Texture2D(t),this._weightedSumTex.width=this._weightedSumTex.height=1,this._globalSpeedTex=new xa.Texture2D(t),this._globalSpeedPrevTex=new xa.Texture2D(t),this._globalSpeedTex.width=this._globalSpeedTex.height=1,this._globalSpeedPrevTex.width=this._globalSpeedPrevTex.height=1,this._nodeRepulsionPass=new pi({fragment:xa.Shader.source("ecgl.forceAtlas2.updateNodeRepulsion")}),this._positionPass=new pi({fragment:xa.Shader.source("ecgl.forceAtlas2.updatePosition")}),this._globalSpeedPass=new pi({fragment:xa.Shader.source("ecgl.forceAtlas2.calcGlobalSpeed")}),this._copyPass=new pi({fragment:xa.Shader.source("clay.compositor.output")});var n=function(e){e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ONE)};this._edgeForceMesh=new xa.Mesh({geometry:new xa.Geometry({attributes:{node1:new xa.Geometry.Attribute("node1","float",2),node2:new xa.Geometry.Attribute("node2","float",2),weight:new xa.Geometry.Attribute("weight","float",1)},dynamic:!0,mainAttribute:"node1"}),material:new xa.Material({transparent:!0,shader:xa.createShader("ecgl.forceAtlas2.updateEdgeAttraction"),blend:n,depthMask:!1,depthText:!1}),mode:xa.Mesh.POINTS}),this._weightedSumMesh=new xa.Mesh({geometry:new xa.Geometry({attributes:{node:new xa.Geometry.Attribute("node","float",2)},dynamic:!0,mainAttribute:"node"}),material:new xa.Material({transparent:!0,shader:xa.createShader("ecgl.forceAtlas2.calcWeightedSum"),blend:n,depthMask:!1,depthText:!1}),mode:xa.Mesh.POINTS}),this._framebuffer=new hr({depthBuffer:!1}),this._dummyCamera=new xa.OrthographicCamera({left:-1,right:1,top:1,bottom:-1,near:0,far:100}),this._globalSpeed=0}df.prototype.updateOption=function(e){for(var t in hf)this[t]=hf[t];var n=this._nodes.length;if(this.jitterTolerence=n>5e4?10:n>5e3?1:.1,this.scaling=n>100?2:10,e)for(var t in hf)null!=e[t]&&(this[t]=e[t]);if(this.repulsionByDegree)for(var r=this._positionSourceTex.pixels,i=0;i<this._nodes.length;i++)r[4*i+2]=(this._nodes[i].degree||0)+1},df.prototype._updateGravityCenter=function(e){var t=this._nodes,n=this._edges;if(this.gravityCenter)this._gravityCenter=this.gravityCenter;else{for(var r=[1/0,1/0],i=[-1/0,-1/0],a=0;a<t.length;a++)r[0]=Math.min(t[a].x,r[0]),r[1]=Math.min(t[a].y,r[1]),i[0]=Math.max(t[a].x,i[0]),i[1]=Math.max(t[a].y,i[1]);this._gravityCenter=[.5*(r[0]+i[0]),.5*(r[1]+i[1])]}for(a=0;a<n.length;a++){var o=n[a].node1,s=n[a].node2;t[o].degree=(t[o].degree||0)+1,t[s].degree=(t[s].degree||0)+1}},df.prototype.initData=function(e,t){this._nodes=e,this._edges=t,this._updateGravityCenter();var n=Math.ceil(Math.sqrt(e.length)),r=n,i=new Float32Array(n*r*4);this._resize(n,r);for(var a=0,o=0;o<e.length;o++){var s=e[o];i[a++]=s.x||0,i[a++]=s.y||0,i[a++]=s.mass||1,i[a++]=s.size||1}this._positionSourceTex.pixels=i;var l=this._edgeForceMesh.geometry,u=t.length;l.attributes.node1.init(2*u),l.attributes.node2.init(2*u),l.attributes.weight.init(2*u);var c=[];for(o=0;o<t.length;o++){var h=l.attributes,d=t[o].weight;null==d&&(d=1),h.node1.set(o,this.getNodeUV(t[o].node1,c)),h.node2.set(o,this.getNodeUV(t[o].node2,c)),h.weight.set(o,d),h.node1.set(o+u,this.getNodeUV(t[o].node2,c)),h.node2.set(o+u,this.getNodeUV(t[o].node1,c)),h.weight.set(o+u,d)}var f=this._weightedSumMesh.geometry;f.attributes.node.init(e.length);for(o=0;o<e.length;o++)f.attributes.node.set(o,this.getNodeUV(o,c));l.dirty(),f.dirty(),this._nodeRepulsionPass.material.define("fragment","NODE_COUNT",e.length),this._nodeRepulsionPass.material.setUniform("textureSize",[n,r]),this._inited=!1,this._frame=0},df.prototype.getNodes=function(){return this._nodes},df.prototype.getEdges=function(){return this._edges},df.prototype.step=function(e){this._inited||(this._initFromSource(e),this._inited=!0),this._frame++,this._framebuffer.attach(this._forceTex),this._framebuffer.bind(e);var t=this._nodeRepulsionPass;t.setUniform("strongGravityMode",this.strongGravityMode),t.setUniform("gravity",this.gravity),t.setUniform("gravityCenter",this._gravityCenter),t.setUniform("scaling",this.scaling),t.setUniform("preventOverlap",this.preventOverlap),t.setUniform("positionTex",this._positionPrevTex),t.render(e);var n=this._edgeForceMesh;n.material.set("linLogMode",this.linLogMode),n.material.set("edgeWeightInfluence",this.edgeWeightInfluence),n.material.set("preventOverlap",this.preventOverlap),n.material.set("positionTex",this._positionPrevTex),e.gl.enable(e.gl.BLEND),e.renderPass([n],this._dummyCamera),this._framebuffer.attach(this._weightedSumTex),e.gl.clearColor(0,0,0,0),e.gl.clear(e.gl.COLOR_BUFFER_BIT),e.gl.enable(e.gl.BLEND);var r=this._weightedSumMesh;r.material.set("positionTex",this._positionPrevTex),r.material.set("forceTex",this._forceTex),r.material.set("forcePrevTex",this._forcePrevTex),e.renderPass([r],this._dummyCamera),this._framebuffer.attach(this._globalSpeedTex);var i=this._globalSpeedPass;i.setUniform("globalSpeedPrevTex",this._globalSpeedPrevTex),i.setUniform("weightedSumTex",this._weightedSumTex),i.setUniform("jitterTolerence",this.jitterTolerence),e.gl.disable(e.gl.BLEND),i.render(e);var a=this._positionPass;this._framebuffer.attach(this._positionTex),a.setUniform("globalSpeedTex",this._globalSpeedTex),a.setUniform("positionTex",this._positionPrevTex),a.setUniform("forceTex",this._forceTex),a.setUniform("forcePrevTex",this._forcePrevTex),a.render(e),this._framebuffer.unbind(e),this._swapTexture()},df.prototype.update=function(e,t,n){null==t&&(t=1),t=Math.max(t,1);for(var r=0;r<t;r++)this.step(e);n&&n()},df.prototype.getNodePositionTexture=function(){return this._inited?this._positionPrevTex:this._positionSourceTex},df.prototype.getNodeUV=function(e,t){t=t||[];var n=this._positionTex.width,r=this._positionTex.height;return t[0]=e%n/(n-1),t[1]=Math.floor(e/n)/(r-1)||0,t},df.prototype.getNodePosition=function(e,t){var n=this._positionArr,r=this._positionTex.width,i=this._positionTex.height,a=r*i;n&&n.length===4*a||(n=this._positionArr=new Float32Array(4*a)),this._framebuffer.bind(e),this._framebuffer.attach(this._positionPrevTex),e.gl.readPixels(0,0,r,i,e.gl.RGBA,e.gl.FLOAT,n),this._framebuffer.unbind(e),t||(t=new Float32Array(2*this._nodes.length));for(var o=0;o<this._nodes.length;o++)t[2*o]=n[4*o],t[2*o+1]=n[4*o+1];return t},df.prototype.getTextureData=function(e,t){var n=this["_"+t+"Tex"],r=n.width,i=n.height;this._framebuffer.bind(e),this._framebuffer.attach(n);var a=new Float32Array(r*i*4);return e.gl.readPixels(0,0,r,i,e.gl.RGBA,e.gl.FLOAT,a),this._framebuffer.unbind(e),a},df.prototype.getTextureSize=function(){return{width:this._positionTex.width,height:this._positionTex.height}},df.prototype.isFinished=function(e){return this._frame>e},df.prototype._swapTexture=function(){var e=this._positionPrevTex;this._positionPrevTex=this._positionTex,this._positionTex=e;e=this._forcePrevTex;this._forcePrevTex=this._forceTex,this._forceTex=e;e=this._globalSpeedPrevTex;this._globalSpeedPrevTex=this._globalSpeedTex,this._globalSpeedTex=e},df.prototype._initFromSource=function(e){this._framebuffer.attach(this._positionPrevTex),this._framebuffer.bind(e),this._copyPass.setUniform("texture",this._positionSourceTex),this._copyPass.render(e),e.gl.clearColor(0,0,0,0),this._framebuffer.attach(this._forcePrevTex),e.gl.clear(e.gl.COLOR_BUFFER_BIT),this._framebuffer.attach(this._globalSpeedPrevTex),e.gl.clear(e.gl.COLOR_BUFFER_BIT),this._framebuffer.unbind(e)},df.prototype._resize=function(e,t){["_positionSourceTex","_positionTex","_positionPrevTex","_forceTex","_forcePrevTex"].forEach((function(n){this[n].width=e,this[n].height=t,this[n].dirty()}),this)},df.prototype.dispose=function(e){this._framebuffer.dispose(e),this._copyPass.dispose(e),this._nodeRepulsionPass.dispose(e),this._positionPass.dispose(e),this._globalSpeedPass.dispose(e),this._edgeForceMesh.geometry.dispose(e),this._weightedSumMesh.geometry.dispose(e),this._positionSourceTex.dispose(e),this._positionTex.dispose(e),this._positionPrevTex.dispose(e),this._forceTex.dispose(e),this._forcePrevTex.dispose(e),this._weightedSumTex.dispose(e),this._globalSpeedTex.dispose(e),this._globalSpeedPrevTex.dispose(e)};var ff=df;function pf(){var e={create:function(){return new Float32Array(2)},dist:function(e,t){var n=t[0]-e[0],r=t[1]-e[1];return Math.sqrt(n*n+r*r)},len:function(e){var t=e[0],n=e[1];return Math.sqrt(t*t+n*n)},scaleAndAdd:function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e},scale:function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e},add:function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e},sub:function(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e},normalize:function(e,t){var n=t[0],r=t[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i),e[0]=t[0]*i,e[1]=t[1]*i),e},negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e},copy:function(e,t){return e[0]=t[0],e[1]=t[1],e},set:function(e,t,n){return e[0]=t,e[1]=n,e}};function t(){this.subRegions=[],this.nSubRegions=0,this.node=null,this.mass=0,this.centerOfMass=null,this.bbox=new Float32Array(4),this.size=0}var n=t.prototype;function r(){this.position=new Float32Array(2),this.force=e.create(),this.forcePrev=e.create(),this.mass=1,this.inDegree=0,this.outDegree=0}function i(e,t){this.source=e,this.target=t,this.weight=1}function a(){this.autoSettings=!0,this.barnesHutOptimize=!0,this.barnesHutTheta=1.5,this.repulsionByDegree=!0,this.linLogMode=!1,this.strongGravityMode=!1,this.gravity=1,this.scaling=1,this.edgeWeightInfluence=1,this.jitterTolerence=.1,this.preventOverlap=!1,this.dissuadeHubs=!1,this.rootRegion=new t,this.rootRegion.centerOfMass=e.create(),this.nodes=[],this.edges=[],this.bbox=new Float32Array(4),this.gravityCenter=null,this._massArr=null,this._swingingArr=null,this._sizeArr=null,this._globalSpeed=0}n.beforeUpdate=function(){for(var e=0;e<this.nSubRegions;e++)this.subRegions[e].beforeUpdate();this.mass=0,this.centerOfMass&&(this.centerOfMass[0]=0,this.centerOfMass[1]=0),this.nSubRegions=0,this.node=null},n.afterUpdate=function(){this.subRegions.length=this.nSubRegions;for(var e=0;e<this.nSubRegions;e++)this.subRegions[e].afterUpdate()},n.addNode=function(e){if(0===this.nSubRegions){if(null==this.node)return void(this.node=e);this._addNodeToSubRegion(this.node),this.node=null}this._addNodeToSubRegion(e),this._updateCenterOfMass(e)},n.findSubRegion=function(e,t){for(var n=0;n<this.nSubRegions;n++){var r=this.subRegions[n];if(r.contain(e,t))return r}},n.contain=function(e,t){return this.bbox[0]<=e&&this.bbox[2]>=e&&this.bbox[1]<=t&&this.bbox[3]>=t},n.setBBox=function(e,t,n,r){this.bbox[0]=e,this.bbox[1]=t,this.bbox[2]=n,this.bbox[3]=r,this.size=(n-e+r-t)/2},n._newSubRegion=function(){var e=this.subRegions[this.nSubRegions];return e||(e=new t,this.subRegions[this.nSubRegions]=e),this.nSubRegions++,e},n._addNodeToSubRegion=function(e){var t=this.findSubRegion(e.position[0],e.position[1]),n=this.bbox;if(!t){var r=(n[0]+n[2])/2,i=(n[1]+n[3])/2,a=(n[2]-n[0])/2,o=(n[3]-n[1])/2,s=e.position[0]>=r?1:0,l=e.position[1]>=i?1:0;t=this._newSubRegion();t.setBBox(s*a+n[0],l*o+n[1],(s+1)*a+n[0],(l+1)*o+n[1])}t.addNode(e)},n._updateCenterOfMass=function(e){null==this.centerOfMass&&(this.centerOfMass=new Float32Array(2));var t=this.centerOfMass[0]*this.mass,n=this.centerOfMass[1]*this.mass;t+=e.position[0]*e.mass,n+=e.position[1]*e.mass,this.mass+=e.mass,this.centerOfMass[0]=t/this.mass,this.centerOfMass[1]=n/this.mass};var o=a.prototype;o.initNodes=function(e,t,n){var i=t.length;this.nodes.length=0;for(var a="undefined"!=typeof n,o=0;o<i;o++){var s=new r;s.position[0]=e[2*o],s.position[1]=e[2*o+1],s.mass=t[o],a&&(s.size=n[o]),this.nodes.push(s)}this._massArr=t,this._swingingArr=new Float32Array(i),a&&(this._sizeArr=n)},o.initEdges=function(e,t){var n=e.length/2;this.edges.length=0;for(var r=0;r<n;r++){var a=e[2*r],o=e[2*r+1],s=this.nodes[a],l=this.nodes[o];if(!s||!l)return void console.error("Node not exists, try initNodes before initEdges");s.outDegree++,l.inDegree++;var u=new i(s,l);t&&(u.weight=t[r]),this.edges.push(u)}},o.updateSettings=function(){if(this.repulsionByDegree)for(var e=0;e<this.nodes.length;e++){var t=this.nodes[e];t.mass=t.inDegree+t.outDegree+1}else for(e=0;e<this.nodes.length;e++){t=this.nodes[e];t.mass=this._massArr[e]}},o.update=function(){var t=this.nodes.length;if(this.updateSettings(),this.updateBBox(),this.barnesHutOptimize){this.rootRegion.setBBox(this.bbox[0],this.bbox[1],this.bbox[2],this.bbox[3]),this.rootRegion.beforeUpdate();for(var n=0;n<t;n++)this.rootRegion.addNode(this.nodes[n]);this.rootRegion.afterUpdate()}for(n=0;n<t;n++){var r=this.nodes[n];e.copy(r.forcePrev,r.force),e.set(r.force,0,0)}for(n=0;n<t;n++){var i=this.nodes[n];if(this.barnesHutOptimize)this.applyRegionToNodeRepulsion(this.rootRegion,i);else for(var a=n+1;a<t;a++){var o=this.nodes[a];this.applyNodeToNodeRepulsion(i,o,!1)}this.gravity>0&&(this.strongGravityMode?this.applyNodeStrongGravity(i):this.applyNodeGravity(i))}for(n=0;n<this.edges.length;n++)this.applyEdgeAttraction(this.edges[n]);var s=0,l=0,u=e.create();for(n=0;n<t;n++){r=this.nodes[n];var c=e.dist(r.force,r.forcePrev);s+=c*r.mass,e.add(u,r.force,r.forcePrev);var h=.5*e.len(u);l+=h*r.mass,this._swingingArr[n]=c}var d=this.jitterTolerence*this.jitterTolerence*l/s;this._globalSpeed>0&&(d=Math.min(d/this._globalSpeed,1.5)*this._globalSpeed),this._globalSpeed=d;for(n=0;n<t;n++){r=this.nodes[n],c=this._swingingArr[n];var f=.1*d/(1+d*Math.sqrt(c)),p=e.len(r.force);p>0&&(f=Math.min(p*f,10)/p,e.scaleAndAdd(r.position,r.position,r.force,f))}},o.applyRegionToNodeRepulsion=function(){var t=e.create();return function(n,r){if(n.node)this.applyNodeToNodeRepulsion(n.node,r,!0);else{e.sub(t,r.position,n.centerOfMass);var i=t[0]*t[0]+t[1]*t[1];if(i>this.barnesHutTheta*n.size*n.size){var a=this.scaling*r.mass*n.mass/i;e.scaleAndAdd(r.force,r.force,t,a)}else for(var o=0;o<n.nSubRegions;o++)this.applyRegionToNodeRepulsion(n.subRegions[o],r)}}}(),o.applyNodeToNodeRepulsion=function(){var t=e.create();return function(n,r,i){if(n!=r){e.sub(t,n.position,r.position);var a=t[0]*t[0]+t[1]*t[1];if(0!==a){var o;if(this.preventOverlap){var s=Math.sqrt(a);if(s=s-n.size-r.size,s>0)o=this.scaling*n.mass*r.mass/(s*s);else{if(!(s<0))return;o=100*this.scaling*n.mass*r.mass}}else o=this.scaling*n.mass*r.mass/a;e.scaleAndAdd(n.force,n.force,t,o),e.scaleAndAdd(r.force,r.force,t,-o)}}}}(),o.applyEdgeAttraction=function(){var t=e.create();return function(n){var r=n.source,i=n.target;e.sub(t,r.position,i.position);var a,o,s=e.len(t);a=0===this.edgeWeightInfluence?1:1===this.edgeWeightInfluence?n.weight:Math.pow(n.weight,this.edgeWeightInfluence),this.preventOverlap&&(s=s-r.size-i.size,s<=0)||(o=this.linLogMode?-a*Math.log(s+1)/(s+1):-a,e.scaleAndAdd(r.force,r.force,t,o),e.scaleAndAdd(i.force,i.force,t,-o))}}(),o.applyNodeGravity=function(){var t=e.create();return function(n){e.sub(t,this.gravityCenter,n.position);var r=e.len(t);e.scaleAndAdd(n.force,n.force,t,this.gravity*n.mass/(r+1))}}(),o.applyNodeStrongGravity=function(){var t=e.create();return function(n){e.sub(t,this.gravityCenter,n.position),e.scaleAndAdd(n.force,n.force,t,this.gravity*n.mass)}}(),o.updateBBox=function(){for(var e=1/0,t=1/0,n=-1/0,r=-1/0,i=0;i<this.nodes.length;i++){var a=this.nodes[i].position;e=Math.min(e,a[0]),t=Math.min(t,a[1]),n=Math.max(n,a[0]),r=Math.max(r,a[1])}this.bbox[0]=e,this.bbox[1]=t,this.bbox[2]=n,this.bbox[3]=r},o.getGlobalSpeed=function(){return this._globalSpeed};var s=null;self.onmessage=function(e){switch(e.data.cmd){case"init":s=new a,s.initNodes(e.data.nodesPosition,e.data.nodesMass,e.data.nodesSize),s.initEdges(e.data.edges,e.data.edgesWeight);break;case"updateConfig":if(s)for(var t in e.data.config)s[t]=e.data.config[t];break;case"update":var n=e.data.steps;if(s){for(var r=0;r<n;r++)s.update();var i=s.nodes.length,o=new Float32Array(2*i);for(r=0;r<i;r++){var l=s.nodes[r];o[2*r]=l.position[0],o[2*r+1]=l.position[1]}self.postMessage({buffer:o.buffer,globalSpeed:s.getGlobalSpeed()},[o.buffer])}else{var u=new Float32Array;self.postMessage({buffer:u.buffer,globalSpeed:s.getGlobalSpeed()},[u.buffer])}break}}}var gf=pf,mf=gf.toString();mf=mf.slice(mf.indexOf("{")+1,mf.lastIndexOf("}"));var vf={barnesHutOptimize:!0,barnesHutTheta:1.5,repulsionByDegree:!0,linLogMode:!1,strongGravityMode:!1,gravity:1,scaling:1,edgeWeightInfluence:1,jitterTolerence:.1,preventOverlap:!1,dissuadeHubs:!1,gravityCenter:null},yf=function(e){for(var t in vf)this[t]=vf[t];if(e)for(var t in e)this[t]=e[t];this._nodes=[],this._edges=[],this._disposed=!1,this._positionTex=new rn({type:Kt.FLOAT,flipY:!1,minFilter:Kt.NEAREST,magFilter:Kt.NEAREST})};yf.prototype.initData=function(e,t){var n=new Blob([mf]),r=window.URL.createObjectURL(n);this._worker=new Worker(r),this._worker.onmessage=this._$onupdate.bind(this),this._nodes=e,this._edges=t,this._frame=0;for(var i=e.length,a=t.length,o=new Float32Array(2*i),s=new Float32Array(i),l=new Float32Array(i),u=new Float32Array(2*a),c=new Float32Array(a),h=0;h<e.length;h++){var d=e[h];o[2*h]=d.x,o[2*h+1]=d.y,s[h]=null==d.mass?1:d.mass,l[h]=null==d.size?1:d.size}for(h=0;h<t.length;h++){var f=t[h],p=f.node1,g=f.node2;u[2*h]=p,u[2*h+1]=g,c[h]=null==f.weight?1:f.weight}var m=Math.ceil(Math.sqrt(e.length)),v=m,y=new Float32Array(m*v*4),b=this._positionTex;b.width=m,b.height=v,b.pixels=y,this._worker.postMessage({cmd:"init",nodesPosition:o,nodesMass:s,nodesSize:l,edges:u,edgesWeight:c}),this._globalSpeed=1/0},yf.prototype.updateOption=function(e){var t={};for(var n in vf)t[n]=vf[n];var r=this._nodes,i=this._edges,a=r.length;if(t.jitterTolerence=a>5e4?10:a>5e3?1:.1,t.scaling=a>100?2:10,t.barnesHutOptimize=a>1e3,e)for(var n in vf)null!=e[n]&&(t[n]=e[n]);if(!t.gravityCenter){for(var o=[1/0,1/0],s=[-1/0,-1/0],l=0;l<r.length;l++)o[0]=Math.min(r[l].x,o[0]),o[1]=Math.min(r[l].y,o[1]),s[0]=Math.max(r[l].x,s[0]),s[1]=Math.max(r[l].y,s[1]);t.gravityCenter=[.5*(o[0]+s[0]),.5*(o[1]+s[1])]}for(l=0;l<i.length;l++){var u=i[l].node1,c=i[l].node2;r[u].degree=(r[u].degree||0)+1,r[c].degree=(r[c].degree||0)+1}this._worker&&this._worker.postMessage({cmd:"updateConfig",config:t})},yf.prototype.update=function(e,t,n){null==t&&(t=1),t=Math.max(t,1),this._frame+=t,this._onupdate=n,this._worker&&this._worker.postMessage({cmd:"update",steps:Math.round(t)})},yf.prototype._$onupdate=function(e){if(!this._disposed){var t=new Float32Array(e.data.buffer);this._globalSpeed=e.data.globalSpeed,this._positionArr=t,this._updateTexture(t),this._onupdate&&this._onupdate()}},yf.prototype.getNodePositionTexture=function(){return this._positionTex},yf.prototype.getNodeUV=function(e,t){t=t||[];var n=this._positionTex.width,r=this._positionTex.height;return t[0]=e%n/(n-1),t[1]=Math.floor(e/n)/(r-1),t},yf.prototype.getNodes=function(){return this._nodes},yf.prototype.getEdges=function(){return this._edges},yf.prototype.isFinished=function(e){return this._frame>e},yf.prototype.getNodePosition=function(e,t){if(t||(t=new Float32Array(2*this._nodes.length)),this._positionArr)for(var n=0;n<this._positionArr.length;n++)t[n]=this._positionArr[n];return t},yf.prototype._updateTexture=function(e){for(var t=this._positionTex.pixels,n=0,r=0;r<e.length;)t[n++]=e[r++],t[n++]=e[r++],t[n++]=1,t[n++]=1;this._positionTex.dirty()},yf.prototype.dispose=function(e){this._disposed=!0,this._worker=null};var bf=yf,_f=_.extend((function(){return{zr:null,viewGL:null,minZoom:.2,maxZoom:5,_needsUpdate:!1,_dx:0,_dy:0,_zoom:1}}),(function(){this._mouseDownHandler=this._mouseDownHandler.bind(this),this._mouseWheelHandler=this._mouseWheelHandler.bind(this),this._mouseMoveHandler=this._mouseMoveHandler.bind(this),this._mouseUpHandler=this._mouseUpHandler.bind(this),this._update=this._update.bind(this)}),{init:function(){var e=this.zr;e.on("mousedown",this._mouseDownHandler),e.on("mousewheel",this._mouseWheelHandler),e.on("globalout",this._mouseUpHandler),e.animation.on("frame",this._update)},setTarget:function(e){this._target=e},setZoom:function(e){this._zoom=Math.max(Math.min(e,this.maxZoom),this.minZoom),this._needsUpdate=!0},setOffset:function(e){this._dx=e[0],this._dy=e[1],this._needsUpdate=!0},getZoom:function(){return this._zoom},getOffset:function(){return[this._dx,this._dy]},_update:function(){if(this._target&&this._needsUpdate){var e=this._target,t=this._zoom;e.position.x=this._dx,e.position.y=this._dy,e.scale.set(t,t,t),this.zr.refresh(),this._needsUpdate=!1,this.trigger("update")}},_mouseDownHandler:function(e){if(!e.target){var t=e.offsetX,n=e.offsetY;if(!this.viewGL||this.viewGL.containPoint(t,n)){this.zr.on("mousemove",this._mouseMoveHandler),this.zr.on("mouseup",this._mouseUpHandler);var r=this._convertPos(t,n);this._x=r.x,this._y=r.y}}},_convertPos:function(e,t){var n=this.viewGL.camera,r=this.viewGL.viewport;return{x:(e-r.x)/r.width*(n.right-n.left)+n.left,y:(t-r.y)/r.height*(n.bottom-n.top)+n.top}},_mouseMoveHandler:function(e){var t=this._convertPos(e.offsetX,e.offsetY);this._dx+=t.x-this._x,this._dy+=t.y-this._y,this._x=t.x,this._y=t.y,this._needsUpdate=!0},_mouseUpHandler:function(e){this.zr.off("mousemove",this._mouseMoveHandler),this.zr.off("mouseup",this._mouseUpHandler)},_mouseWheelHandler:function(e){e=e.event;var t=e.wheelDelta||-e.detail;if(0!==t){var n=e.offsetX,r=e.offsetY;if(!this.viewGL||this.viewGL.containPoint(n,r)){var i=t>0?1.1:.9,a=Math.max(Math.min(this._zoom*i,this.maxZoom),this.minZoom);i=a/this._zoom;var o=this._convertPos(n,r),s=(o.x-this._dx)*(i-1),l=(o.y-this._dy)*(i-1);this._dx-=s,this._dy-=l,this._zoom=a,this._needsUpdate=!0}}},dispose:function(){var e=this.zr;e.off("mousedown",this._mouseDownHandler),e.off("mousemove",this._mouseMoveHandler),e.off("mouseup",this._mouseUpHandler),e.off("mousewheel",this._mouseWheelHandler),e.off("globalout",this._mouseUpHandler),e.animation.off("frame",this._update)}}),xf=_f,wf="@export ecgl.lines2D.vertex\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\nattribute vec2 position: POSITION;\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n\n#ifdef POSITIONTEXTURE_ENABLED\nuniform sampler2D positionTexture;\n#endif\n\nvoid main()\n{\n gl_Position = worldViewProjection * vec4(position, -10.0, 1.0);\n\n v_Color = a_Color;\n}\n\n@end\n\n@export ecgl.lines2D.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\nvarying vec4 v_Color;\n\nvoid main()\n{\n gl_FragColor = color * v_Color;\n}\n@end\n\n\n@export ecgl.meshLines2D.vertex\n\nattribute vec2 position: POSITION;\nattribute vec2 normal;\nattribute float offset;\nattribute vec4 a_Color : COLOR;\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform vec4 viewport : VIEWPORT;\n\nvarying vec4 v_Color;\nvarying float v_Miter;\n\nvoid main()\n{\n vec4 p2 = worldViewProjection * vec4(position + normal, -10.0, 1.0);\n gl_Position = worldViewProjection * vec4(position, -10.0, 1.0);\n\n p2.xy /= p2.w;\n gl_Position.xy /= gl_Position.w;\n\n vec2 N = normalize(p2.xy - gl_Position.xy);\n gl_Position.xy += N * offset / viewport.zw * 2.0;\n\n gl_Position.xy *= gl_Position.w;\n\n v_Color = a_Color;\n}\n@end\n\n\n@export ecgl.meshLines2D.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\nvarying vec4 v_Color;\nvarying float v_Miter;\n\nvoid main()\n{\n gl_FragColor = color * v_Color;\n}\n\n@end",Sf=Za.vec2;xa.Shader["import"](wf);var Tf=1,Of=r["b"].extend({type:"graphGL",__ecgl__:!0,init:function(e,t){this.groupGL=new xa.Node,this.viewGL=new ll("orthographic"),this.viewGL.camera.left=this.viewGL.camera.right=0,this.viewGL.add(this.groupGL),this._pointsBuilder=new ed(!0,t),this._forceEdgesMesh=new xa.Mesh({material:new xa.Material({shader:xa.createShader("ecgl.forceAtlas2.edges"),transparent:!0,depthMask:!1,depthTest:!1}),$ignorePicking:!0,geometry:new xa.Geometry({attributes:{node:new xa.Geometry.Attribute("node","float",2),color:new xa.Geometry.Attribute("color","float",4,"COLOR")},dynamic:!0,mainAttribute:"node"}),renderOrder:-1,mode:xa.Mesh.LINES}),this._edgesMesh=new xa.Mesh({material:new xa.Material({shader:xa.createShader("ecgl.meshLines2D"),transparent:!0,depthMask:!1,depthTest:!1}),$ignorePicking:!0,geometry:new uf({useNativeLine:!1,dynamic:!0}),renderOrder:-1,culling:!1}),this._layoutId=0,this._control=new xf({zr:t.getZr(),viewGL:this.viewGL}),this._control.setTarget(this.groupGL),this._control.init(),this._clickHandler=this._clickHandler.bind(this)},render:function(e,t,n){this.groupGL.add(this._pointsBuilder.rootNode),this._model=e,this._api=n,this._initLayout(e,t,n),this._pointsBuilder.update(e,t,n),this._forceLayoutInstance instanceof ff||this.groupGL.remove(this._forceEdgesMesh),this._updateCamera(e,n),this._control.off("update"),this._control.on("update",(function(){n.dispatchAction({type:"graphGLRoam",seriesId:e.id,zoom:this._control.getZoom(),offset:this._control.getOffset()}),this._pointsBuilder.updateView(this.viewGL.camera)}),this),this._control.setZoom(Di.firstNotNull(e.get("zoom"),1)),this._control.setOffset(e.get("offset")||[0,0]);var r=this._pointsBuilder.getPointsMesh();if(r.off("mousemove",this._mousemoveHandler),r.off("mouseout",this._mouseOutHandler,this),n.getZr().off("click",this._clickHandler),this._pointsBuilder.highlightOnMouseover=!0,e.get("focusNodeAdjacency")){var i=e.get("focusNodeAdjacencyOn");"click"===i?n.getZr().on("click",this._clickHandler):"mouseover"===i&&(r.on("mousemove",this._mousemoveHandler,this),r.on("mouseout",this._mouseOutHandler,this),this._pointsBuilder.highlightOnMouseover=!1)}this._lastMouseOverDataIndex=-1},_clickHandler:function(e){if(!this._layouting){var t=this._pointsBuilder.getPointsMesh().dataIndex;t>=0?this._api.dispatchAction({type:"graphGLFocusNodeAdjacency",seriesId:this._model.id,dataIndex:t}):this._api.dispatchAction({type:"graphGLUnfocusNodeAdjacency",seriesId:this._model.id})}},_mousemoveHandler:function(e){if(!this._layouting){var t=this._pointsBuilder.getPointsMesh().dataIndex;t>=0?t!==this._lastMouseOverDataIndex&&this._api.dispatchAction({type:"graphGLFocusNodeAdjacency",seriesId:this._model.id,dataIndex:t}):this._mouseOutHandler(e),this._lastMouseOverDataIndex=t}},_mouseOutHandler:function(e){this._layouting||(this._api.dispatchAction({type:"graphGLUnfocusNodeAdjacency",seriesId:this._model.id}),this._lastMouseOverDataIndex=-1)},_updateForceEdgesGeometry:function(e,t){var n=this._forceEdgesMesh.geometry,r=t.getEdgeData(),i=0,a=this._forceLayoutInstance,o=2*r.count();n.attributes.node.init(o),n.attributes.color.init(o),r.each((function(t){var o=e[t];n.attributes.node.set(i,a.getNodeUV(o.node1)),n.attributes.node.set(i+1,a.getNodeUV(o.node2));var s=yu(r,o.dataIndex),l=xa.parseColor(s);l[3]*=Di.firstNotNull(bu(r,o.dataIndex),1),n.attributes.color.set(i,l),n.attributes.color.set(i+1,l),i+=2})),n.dirty()},_updateMeshLinesGeometry:function(){var e=this._model.getEdgeData(),t=this._edgesMesh.geometry,n=(e=this._model.getEdgeData(),this._model.getData().getLayout("points"));t.resetOffset(),t.setVertexCount(e.count()*t.getLineVertexCount()),t.setTriangleCount(e.count()*t.getLineTriangleCount());var r=[],i=[],a=["lineStyle","width"];this._originalEdgeColors=new Float32Array(4*e.count()),this._edgeIndicesMap=new Float32Array(e.count()),e.each((function(o){var s=e.graph.getEdgeByIndex(o),l=2*s.node1.dataIndex,u=2*s.node2.dataIndex;r[0]=n[l],r[1]=n[l+1],i[0]=n[u],i[1]=n[u+1];var c=yu(e,s.dataIndex),h=xa.parseColor(c);h[3]*=Di.firstNotNull(bu(e,s.dataIndex),1);var d=e.getItemModel(s.dataIndex),f=Di.firstNotNull(d.get(a),1)*this._api.getDevicePixelRatio();t.addLine(r,i,h,f);for(var p=0;p<4;p++)this._originalEdgeColors[4*s.dataIndex+p]=h[p];this._edgeIndicesMap[s.dataIndex]=o}),this),t.dirty()},_updateForceNodesGeometry:function(e){for(var t=this._pointsBuilder.getPointsMesh(),n=[],r=0;r<e.count();r++)this._forceLayoutInstance.getNodeUV(r,n),t.geometry.attributes.position.set(r,n);t.geometry.dirty("position")},_initLayout:function(e,t,n){var i=e.get("layout"),a=e.getGraph(),o=e.getBoxLayoutParams(),s=Object(ko["g"])(o,{width:n.getWidth(),height:n.getHeight()});"force"===i&&(i="forceAtlas2"),this.stopLayout(e,t,n,{beforeLayout:!0});var l=e.getData(),u=e.getData();if("forceAtlas2"===i){var c=e.getModel("forceAtlas2"),h=this._forceLayoutInstance,d=[],f=[],p=l.getDataExtent("value"),g=u.getDataExtent("value"),m=Di.firstNotNull(c.get("edgeWeight"),1),v=Di.firstNotNull(c.get("nodeWeight"),1);"number"===typeof m&&(m=[m,m]),"number"===typeof v&&(v=[v,v]);var y=0,b={},_=new Float32Array(2*l.count());if(a.eachNode((function(e){var t,n,i=e.dataIndex,a=l.get("value",i);if(l.hasItemOption){var o=l.getItemModel(i);t=o.get("x"),n=o.get("y")}null==t&&(t=s.x+Math.random()*s.width,n=s.y+Math.random()*s.height),_[2*y]=t,_[2*y+1]=n,b[e.id]=y++;var u=r["E"].linearMap(a,p,v);isNaN(u)&&(u=isNaN(v[0])?1:v[0]),d.push({x:t,y:n,mass:u,size:l.getItemVisual(i,"symbolSize")})})),l.setLayout("points",_),a.eachEdge((function(e){var t=e.dataIndex,n=l.get("value",t),i=r["E"].linearMap(n,g,m);isNaN(i)&&(i=isNaN(m[0])?1:m[0]),f.push({node1:b[e.node1.id],node2:b[e.node2.id],weight:i,dataIndex:t})})),!h){var x=c.get("GPU");this._forceLayoutInstance&&((!x||this._forceLayoutInstance instanceof ff)&&(x||this._forceLayoutInstance instanceof bf)||(this._forceLayoutInstanceToDispose=this._forceLayoutInstance)),h=this._forceLayoutInstance=x?new ff:new bf}h.initData(d,f),h.updateOption(c.option),this._updateForceEdgesGeometry(h.getEdges(),e),this._updatePositionTexture(),n.dispatchAction({type:"graphGLStartLayout",from:this.uid})}else{_=new Float32Array(2*l.count()),y=0;a.eachNode((function(e){var t,n,r=e.dataIndex;if(l.hasItemOption){var i=l.getItemModel(r);t=i.get("x"),n=i.get("y")}_[y++]=t,_[y++]=n})),l.setLayout("points",_),this._updateAfterLayout(e,t,n)}},_updatePositionTexture:function(){var e=this._forceLayoutInstance.getNodePositionTexture();this._pointsBuilder.setPositionTexture(e),this._forceEdgesMesh.material.set("positionTex",e)},startLayout:function(e,t,n,r){if(!r||null==r.from||r.from===this.uid){var i=this.viewGL,a=(n=this._api,this._forceLayoutInstance),o=this._model.getData(),s=this._model.getModel("forceAtlas2");if(a&&(this.groupGL.remove(this._edgesMesh),this.groupGL.add(this._forceEdgesMesh),this._forceLayoutInstance)){this._updateForceNodesGeometry(e.getData()),this._pointsBuilder.hideLabels();var l=this,u=this._layoutId=Tf++,c=s.getShallow("maxSteps"),h=s.getShallow("steps"),d=0,f=Math.max(2*h,20),p=function t(r){if(r===l._layoutId)return a.isFinished(c)?(n.dispatchAction({type:"graphGLStopLayout",from:l.uid}),void n.dispatchAction({type:"graphGLFinishLayout",points:o.getLayout("points"),from:l.uid})):void a.update(i.layer.renderer,h,(function(){l._updatePositionTexture(),d+=h,d>=f&&(l._syncNodePosition(e),d=0),n.getZr().refresh(),Object(wa["a"])((function(){t(r)}))}))};Object(wa["a"])((function(){l._forceLayoutInstanceToDispose&&(l._forceLayoutInstanceToDispose.dispose(i.layer.renderer),l._forceLayoutInstanceToDispose=null),p(u)})),this._layouting=!0}}},stopLayout:function(e,t,n,r){r&&null!=r.from&&r.from!==this.uid||(this._layoutId=0,this.groupGL.remove(this._forceEdgesMesh),this.groupGL.add(this._edgesMesh),this._forceLayoutInstance&&this.viewGL.layer&&(r&&r.beforeLayout||(this._syncNodePosition(e),this._updateAfterLayout(e,t,n)),this._api.getZr().refresh(),this._layouting=!1))},_syncNodePosition:function(e){var t=this._forceLayoutInstance.getNodePosition(this.viewGL.layer.renderer);e.getData().setLayout("points",t),e.setNodePosition(t)},_updateAfterLayout:function(e,t,n){this._updateMeshLinesGeometry(),this._pointsBuilder.removePositionTexture(),this._pointsBuilder.updateLayout(e,t,n),this._pointsBuilder.updateView(this.viewGL.camera),this._pointsBuilder.updateLabels(),this._pointsBuilder.showLabels()},focusNodeAdjacency:function(e,t,n,r){var i=this._model.getData();this._downplayAll();var a=r.dataIndex,o=i.graph,s=[],l=o.getNodeByIndex(a);s.push(l),l.edges.forEach((function(e){e.dataIndex<0||(e.node1!==l&&s.push(e.node1),e.node2!==l&&s.push(e.node2))}),this),this._pointsBuilder.fadeOutAll(.05),this._fadeOutEdgesAll(.05),s.forEach((function(e){this._pointsBuilder.highlight(i,e.dataIndex)}),this),this._pointsBuilder.updateLabels(s.map((function(e){return e.dataIndex})));var u=[];l.edges.forEach((function(e){e.dataIndex>=0&&(this._highlightEdge(e.dataIndex),u.push(e))}),this),this._focusNodes=s,this._focusEdges=u},unfocusNodeAdjacency:function(e,t,n,r){this._downplayAll(),this._pointsBuilder.fadeInAll(),this._fadeInEdgesAll(),this._pointsBuilder.updateLabels()},_highlightEdge:function(e){var t=this._model.getEdgeData().getItemModel(e),n=xa.parseColor(t.get("emphasis.lineStyle.color")||t.get("lineStyle.color")),r=Di.firstNotNull(t.get("emphasis.lineStyle.opacity"),t.get("lineStyle.opacity"),1);n[3]*=r,this._edgesMesh.geometry.setItemColor(this._edgeIndicesMap[e],n)},_downplayAll:function(){this._focusNodes&&this._focusNodes.forEach((function(e){this._pointsBuilder.downplay(this._model.getData(),e.dataIndex)}),this),this._focusEdges&&this._focusEdges.forEach((function(e){this._downplayEdge(e.dataIndex)}),this)},_downplayEdge:function(e){var t=this._getColor(e,[]);this._edgesMesh.geometry.setItemColor(this._edgeIndicesMap[e],t)},_setEdgeFade:function(){var e=[];return function(t,n){this._getColor(t,e),e[3]*=n,this._edgesMesh.geometry.setItemColor(this._edgeIndicesMap[t],e)}}(),_getColor:function(e,t){for(var n=0;n<4;n++)t[n]=this._originalEdgeColors[4*e+n];return t},_fadeOutEdgesAll:function(e){var t=this._model.getData().graph;t.eachEdge((function(t){this._setEdgeFade(t.dataIndex,e)}),this)},_fadeInEdgesAll:function(){this._fadeOutEdgesAll(1)},_updateCamera:function(e,t){this.viewGL.setViewport(0,0,t.getWidth(),t.getHeight(),t.getDevicePixelRatio());for(var n=this.viewGL.camera,r=e.getData(),i=r.getLayout("points"),a=Sf.create(1/0,1/0),o=Sf.create(-1/0,-1/0),s=[],l=0;l<i.length;)s[0]=i[l++],s[1]=i[l++],Sf.min(a,a,s),Sf.max(o,o,s);var u=(o[1]+a[1])/2,c=(o[0]+a[0])/2;if(!(c>n.left&&c<n.right&&u<n.bottom&&u>n.top)){var h=Math.max(o[0]-a[0],10),d=h/t.getWidth()*t.getHeight();h*=1.4,d*=1.4,a[0]-=.2*h,n.left=a[0],n.top=u-d/2,n.bottom=u+d/2,n.right=h+a[0],n.near=0,n.far=100}},dispose:function(){var e=this.viewGL.layer.renderer;this._forceLayoutInstance&&this._forceLayoutInstance.dispose(e),this.groupGL.removeAll(),this._layoutId=-1},remove:function(){this.groupGL.removeAll(),this._control.dispose()}});function Mf(e){return e instanceof Array||(e=[e,e]),e}function Ef(e){function t(){}e.registerChartView(Of),e.registerSeriesModel(af),e.registerVisual((function(e){var t={};e.eachSeriesByType("graphGL",(function(e){var n=e.getCategoriesData(),i=e.getData(),a={};n.each((function(r){var i=n.getName(r);a["ec-"+i]=r;var o=n.getItemModel(r),s=o.getModel("itemStyle").getItemStyle();s.fill||(s.fill=e.getColorFromPalette(i,t)),n.setItemVisual(r,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++){var c=o.getShallow(l[u],!0);null!=c&&n.setItemVisual(r,l[u],c)}})),n.count()&&i.each((function(e){var t=i.getItemModel(e),o=t.getShallow("category");if(null!=o){"string"===typeof o&&(o=a["ec-"+o]);var s=n.getItemVisual(o,"style"),l=i.ensureUniqueItemVisual(e,"style");r["Y"].extend(l,s);for(var u=["symbol","symbolSize","symbolKeepAspect"],c=0;c<u.length;c++)i.setItemVisual(e,u[c],n.getItemVisual(o,u[c]))}}))}))})),e.registerVisual((function(e){e.eachSeriesByType("graphGL",(function(e){var t=e.getGraph(),n=e.getEdgeData(),i=Mf(e.get("edgeSymbol")),a=Mf(e.get("edgeSymbolSize"));n.setVisual("drawType","stroke"),n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",a&&a[0]),n.setVisual("toSymbolSize",a&&a[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each((function(e){var i=n.getItemModel(e),a=t.getEdgeByIndex(e),o=Mf(i.getShallow("symbol",!0)),s=Mf(i.getShallow("symbolSize",!0)),l=i.getModel("lineStyle").getLineStyle(),u=n.ensureUniqueItemVisual(e,"style");switch(r["Y"].extend(u,l),u.stroke){case"source":var c=a.node1.getVisual("style");u.stroke=c&&c.fill;break;case"target":c=a.node2.getVisual("style");u.stroke=c&&c.fill;break}o[0]&&a.setVisual("fromSymbol",o[0]),o[1]&&a.setVisual("toSymbol",o[1]),s[0]&&a.setVisual("fromSymbolSize",s[0]),s[1]&&a.setVisual("toSymbolSize",s[1])}))}))})),e.registerAction({type:"graphGLRoam",event:"graphglroam",update:"series.graphGL:roam"},(function(e,t){t.eachComponent({mainType:"series",query:e},(function(t){t.setView(e)}))})),e.registerAction({type:"graphGLStartLayout",event:"graphgllayoutstarted",update:"series.graphGL:startLayout"},t),e.registerAction({type:"graphGLStopLayout",event:"graphgllayoutstopped",update:"series.graphGL:stopLayout"},t),e.registerAction({type:"graphGLFocusNodeAdjacency",event:"graphGLFocusNodeAdjacency",update:"series.graphGL:focusNodeAdjacency"},t),e.registerAction({type:"graphGLUnfocusNodeAdjacency",event:"graphGLUnfocusNodeAdjacency",update:"series.graphGL:unfocusNodeAdjacency"},t)}Object(r["X"])(Ef);var Af=r["h"].extend({type:"series.flowGL",dependencies:["geo","grid","bmap"],visualStyleAccessPath:"itemStyle",getInitialData:function(e,t){var n=r["v"](this.get("coordinateSystem"))||["x","y"];n.push("vx","vy");var i=r["A"].createDimensions(this.getSource(),{coordDimensions:n,encodeDefine:this.get("encode"),dimensionsDefine:this.get("dimensions")}),a=new r["e"](i,this);return a.initData(this.getSource()),a},defaultOption:{coordinateSystem:"cartesian2d",zlevel:10,supersampling:1,particleType:"point",particleDensity:128,particleSize:1,particleSpeed:1,particleTrail:2,colorTexture:null,gridWidth:"auto",gridHeight:"auto",itemStyle:{color:"#fff",opacity:.8}}}),Cf=vn.extend((function(){return{dynamic:!0,attributes:{position:new vn.Attribute("position","float",3,"POSITION")}}}),{resetOffset:function(){this._vertexOffset=0,this._faceOffset=0},setLineCount:function(e){var t=this.attributes,n=4*e,r=2*e;this.vertexCount!==n&&t.position.init(n),this.triangleCount!==r&&(this.indices=0===r?null:this.vertexCount>65535?new Uint32Array(3*r):new Uint16Array(3*r))},addLine:function(e){var t=this._vertexOffset;this.attributes.position.set(t,[e[0],e[1],1]),this.attributes.position.set(t+1,[e[0],e[1],-1]),this.attributes.position.set(t+2,[e[0],e[1],2]),this.attributes.position.set(t+3,[e[0],e[1],-2]),this.setTriangleIndices(this._faceOffset++,[t,t+1,t+2]),this.setTriangleIndices(this._faceOffset++,[t+1,t+2,t+3]),this._vertexOffset+=4}}),If=Cf,Df="@export ecgl.vfParticle.particle.fragment\n\nuniform sampler2D particleTexture;\nuniform sampler2D spawnTexture;\nuniform sampler2D velocityTexture;\n\nuniform float deltaTime;\nuniform float elapsedTime;\n\nuniform float speedScaling : 1.0;\n\nuniform vec2 textureSize;\nuniform vec4 region : [0, 0, 1, 1];\nuniform float firstFrameTime;\n\nvarying vec2 v_Texcoord;\n\n\nvoid main()\n{\n vec4 p = texture2D(particleTexture, v_Texcoord);\n bool spawn = false;\n if (p.w <= 0.0) {\n p = texture2D(spawnTexture, fract(v_Texcoord + elapsedTime / 10.0));\n p.w -= firstFrameTime;\n spawn = true;\n }\n vec2 v = texture2D(velocityTexture, fract(p.xy * region.zw + region.xy)).xy;\n v = (v - 0.5) * 2.0;\n p.z = length(v);\n p.xy += v * deltaTime / 10.0 * speedScaling;\n p.w -= deltaTime;\n\n if (spawn || p.xy != fract(p.xy)) {\n p.z = 0.0;\n }\n p.xy = fract(p.xy);\n\n gl_FragColor = p;\n}\n@end\n\n@export ecgl.vfParticle.renderPoints.vertex\n\n#define PI 3.1415926\n\nattribute vec2 texcoord : TEXCOORD_0;\n\nuniform sampler2D particleTexture;\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\nuniform float size : 1.0;\n\nvarying float v_Mag;\nvarying vec2 v_Uv;\n\nvoid main()\n{\n vec4 p = texture2D(particleTexture, texcoord);\n\n if (p.w > 0.0 && p.z > 1e-5) {\n gl_Position = worldViewProjection * vec4(p.xy * 2.0 - 1.0, 0.0, 1.0);\n }\n else {\n gl_Position = vec4(100000.0, 100000.0, 100000.0, 1.0);\n }\n\n v_Mag = p.z;\n v_Uv = p.xy;\n\n gl_PointSize = size;\n}\n\n@end\n\n@export ecgl.vfParticle.renderPoints.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\nuniform sampler2D gradientTexture;\nuniform sampler2D colorTexture;\nuniform sampler2D spriteTexture;\n\nvarying float v_Mag;\nvarying vec2 v_Uv;\n\nvoid main()\n{\n gl_FragColor = color;\n#ifdef SPRITETEXTURE_ENABLED\n gl_FragColor *= texture2D(spriteTexture, gl_PointCoord);\n if (color.a == 0.0) {\n discard;\n }\n#endif\n#ifdef GRADIENTTEXTURE_ENABLED\n gl_FragColor *= texture2D(gradientTexture, vec2(v_Mag, 0.5));\n#endif\n#ifdef COLORTEXTURE_ENABLED\n gl_FragColor *= texture2D(colorTexture, v_Uv);\n#endif\n}\n\n@end\n\n@export ecgl.vfParticle.renderLines.vertex\n\n#define PI 3.1415926\n\nattribute vec3 position : POSITION;\n\nuniform sampler2D particleTexture;\nuniform sampler2D prevParticleTexture;\n\nuniform float size : 1.0;\nuniform vec4 vp: VIEWPORT;\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\nvarying float v_Mag;\nvarying vec2 v_Uv;\n\n@import clay.util.rand\n\nvoid main()\n{\n vec4 p = texture2D(particleTexture, position.xy);\n vec4 p2 = texture2D(prevParticleTexture, position.xy);\n\n p.xy = p.xy * 2.0 - 1.0;\n p2.xy = p2.xy * 2.0 - 1.0;\n\n if (p.w > 0.0 && p.z > 1e-5) {\n vec2 dir = normalize(p.xy - p2.xy);\n vec2 norm = vec2(dir.y / vp.z, -dir.x / vp.w) * sign(position.z) * size;\n if (abs(position.z) == 2.0) {\n gl_Position = vec4(p.xy + norm, 0.0, 1.0);\n v_Uv = p.xy;\n v_Mag = p.z;\n }\n else {\n gl_Position = vec4(p2.xy + norm, 0.0, 1.0);\n v_Mag = p2.z;\n v_Uv = p2.xy;\n }\n gl_Position = worldViewProjection * gl_Position;\n }\n else {\n gl_Position = vec4(100000.0, 100000.0, 100000.0, 1.0);\n }\n}\n\n@end\n\n@export ecgl.vfParticle.renderLines.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\nuniform sampler2D gradientTexture;\nuniform sampler2D colorTexture;\n\nvarying float v_Mag;\nvarying vec2 v_Uv;\n\nvoid main()\n{\n gl_FragColor = color;\n #ifdef GRADIENTTEXTURE_ENABLED\n gl_FragColor *= texture2D(gradientTexture, vec2(v_Mag, 0.5));\n#endif\n#ifdef COLORTEXTURE_ENABLED\n gl_FragColor *= texture2D(colorTexture, v_Uv);\n#endif\n}\n\n@end\n";function Lf(e){var t=document.createElement("canvas");t.width=t.height=e;var n=t.getContext("2d");return n.fillStyle="#fff",n.arc(e/2,e/2,e/2,0,2*Math.PI),n.fill(),t}He["import"](Df);var Pf=function(){this.motionBlurFactor=.99,this.vectorFieldTexture=new rn({type:Kt.FLOAT,flipY:!1}),this.particleLife=[5,20],this._particleType="point",this._particleSize=1,this.particleColor=[1,1,1,1],this.particleSpeedScaling=1,this._thisFrameTexture=null,this._particlePass=null,this._spawnTexture=null,this._particleTexture0=null,this._particleTexture1=null,this._particlePointsMesh=null,this._surfaceFrameBuffer=null,this._elapsedTime=0,this._scene=null,this._camera=null,this._lastFrameTexture=null,this._supersampling=1,this._downsampleTextures=[],this._width=512,this._height=512,this.init()};Pf.prototype={constructor:Pf,init:function(){var e={type:Kt.FLOAT,minFilter:Kt.NEAREST,magFilter:Kt.NEAREST,useMipmap:!1};this._spawnTexture=new rn(e),this._particleTexture0=new rn(e),this._particleTexture1=new rn(e),this._frameBuffer=new hr({depthBuffer:!1}),this._particlePass=new pi({fragment:He.source("ecgl.vfParticle.particle.fragment")}),this._particlePass.setUniform("velocityTexture",this.vectorFieldTexture),this._particlePass.setUniform("spawnTexture",this._spawnTexture),this._downsamplePass=new pi({fragment:He.source("clay.compositor.downsample")});var t=new Zt({renderOrder:10,material:new J({shader:new He(He.source("ecgl.vfParticle.renderPoints.vertex"),He.source("ecgl.vfParticle.renderPoints.fragment"))}),mode:Zt.POINTS,geometry:new vn({dynamic:!0,mainAttribute:"texcoord0"})}),n=new Zt({renderOrder:10,material:new J({shader:new He(He.source("ecgl.vfParticle.renderLines.vertex"),He.source("ecgl.vfParticle.renderLines.fragment"))}),geometry:new If,culling:!1}),r=new Zt({material:new J({shader:new He(He.source("ecgl.color.vertex"),He.source("ecgl.color.fragment"))}),geometry:new mr});r.material.enableTexture("diffuseMap"),this._particlePointsMesh=t,this._particleLinesMesh=n,this._lastFrameFullQuadMesh=r,this._camera=new li,this._thisFrameTexture=new rn,this._lastFrameTexture=new rn},setParticleDensity:function(e,t){for(var n=e*t,r=new Float32Array(4*n),i=0,a=this.particleLife,o=0;o<e;o++)for(var s=0;s<t;s++,i++){r[4*i]=Math.random(),r[4*i+1]=Math.random(),r[4*i+2]=Math.random();var l=(a[1]-a[0])*Math.random()+a[0];r[4*i+3]=l}"line"===this._particleType?this._setLineGeometry(e,t):this._setPointsGeometry(e,t),this._spawnTexture.width=e,this._spawnTexture.height=t,this._spawnTexture.pixels=r,this._particleTexture0.width=this._particleTexture1.width=e,this._particleTexture0.height=this._particleTexture1.height=t,this._particlePass.setUniform("textureSize",[e,t])},_setPointsGeometry:function(e,t){var n=e*t,r=this._particlePointsMesh.geometry,i=r.attributes;i.texcoord0.init(n);for(var a=0,o=0;o<e;o++)for(var s=0;s<t;s++,a++)i.texcoord0.value[2*a]=o/e,i.texcoord0.value[2*a+1]=s/t;r.dirty()},_setLineGeometry:function(e,t){var n=e*t,r=this._getParticleMesh().geometry;r.setLineCount(n),r.resetOffset();for(var i=0;i<e;i++)for(var a=0;a<t;a++)r.addLine([i/e,a/t]);r.dirty()},_getParticleMesh:function(){return"line"===this._particleType?this._particleLinesMesh:this._particlePointsMesh},update:function(e,t,n,r){var i=this._getParticleMesh(),a=this._frameBuffer,o=this._particlePass;r&&this._updateDownsampleTextures(e,t),i.material.set("size",this._particleSize*this._supersampling),i.material.set("color",this.particleColor),o.setUniform("speedScaling",this.particleSpeedScaling),a.attach(this._particleTexture1),o.setUniform("firstFrameTime",r?(this.particleLife[1]+this.particleLife[0])/2:0),o.setUniform("particleTexture",this._particleTexture0),o.setUniform("deltaTime",n),o.setUniform("elapsedTime",this._elapsedTime),o.render(e,a),i.material.set("particleTexture",this._particleTexture1),i.material.set("prevParticleTexture",this._particleTexture0),a.attach(this._thisFrameTexture),a.bind(e),e.gl.clear(e.gl.DEPTH_BUFFER_BIT|e.gl.COLOR_BUFFER_BIT);var s=this._lastFrameFullQuadMesh;s.material.set("diffuseMap",this._lastFrameTexture),s.material.set("color",[1,1,1,this.motionBlurFactor]),this._camera.update(!0),e.renderPass([s,i],this._camera),a.unbind(e),this._downsample(e),this._swapTexture(),this._elapsedTime+=n},_downsample:function(e){var t=this._downsampleTextures;if(0!==t.length){var n=0,r=this._thisFrameTexture,i=t[n];while(i)this._frameBuffer.attach(i),this._downsamplePass.setUniform("texture",r),this._downsamplePass.setUniform("textureSize",[r.width,r.height]),this._downsamplePass.render(e,this._frameBuffer),r=i,i=t[++n]}},getSurfaceTexture:function(){var e=this._downsampleTextures;return e.length>0?e[e.length-1]:this._lastFrameTexture},setRegion:function(e){this._particlePass.setUniform("region",e)},resize:function(e,t){this._lastFrameTexture.width=e*this._supersampling,this._lastFrameTexture.height=t*this._supersampling,this._thisFrameTexture.width=e*this._supersampling,this._thisFrameTexture.height=t*this._supersampling,this._width=e,this._height=t},setParticleSize:function(e){var t=this._getParticleMesh();if(e<=2)return t.material.disableTexture("spriteTexture"),void(t.material.transparent=!1);this._spriteTexture||(this._spriteTexture=new rn),this._spriteTexture.image&&this._spriteTexture.image.width===e||(this._spriteTexture.image=Lf(e),this._spriteTexture.dirty()),t.material.transparent=!0,t.material.enableTexture("spriteTexture"),t.material.set("spriteTexture",this._spriteTexture),this._particleSize=e},setGradientTexture:function(e){var t=this._getParticleMesh().material;t[e?"enableTexture":"disableTexture"]("gradientTexture"),t.setUniform("gradientTexture",e)},setColorTextureImage:function(e,t){var n=this._getParticleMesh().material;n.setTextureImage("colorTexture",e,t,{flipY:!0})},setParticleType:function(e){this._particleType=e},clearFrame:function(e){var t=this._frameBuffer;t.attach(this._lastFrameTexture),t.bind(e),e.gl.clear(e.gl.DEPTH_BUFFER_BIT|e.gl.COLOR_BUFFER_BIT),t.unbind(e)},setSupersampling:function(e){this._supersampling=e,this.resize(this._width,this._height)},_updateDownsampleTextures:function(e,t){for(var n=this._downsampleTextures,r=Math.max(Math.floor(Math.log(this._supersampling/t.getDevicePixelRatio())/Math.log(2)),0),i=2,a=this._width*this._supersampling,o=this._height*this._supersampling,s=0;s<r;s++)n[s]=n[s]||new rn,n[s].width=a/i,n[s].height=o/i,i*=2;for(;s<n.length;s++)n[s].dispose(e);n.length=r},_swapTexture:function(){var e=this._particleTexture0;this._particleTexture0=this._particleTexture1,this._particleTexture1=e;e=this._thisFrameTexture;this._thisFrameTexture=this._lastFrameTexture,this._lastFrameTexture=e},dispose:function(e){e.disposeFrameBuffer(this._frameBuffer),e.disposeTexture(this.vectorFieldTexture),e.disposeTexture(this._spawnTexture),e.disposeTexture(this._particleTexture0),e.disposeTexture(this._particleTexture1),e.disposeTexture(this._thisFrameTexture),e.disposeTexture(this._lastFrameTexture),e.disposeGeometry(this._particleLinesMesh.geometry),e.disposeGeometry(this._particlePointsMesh.geometry),e.disposeGeometry(this._lastFrameFullQuadMesh.geometry),this._spriteTexture&&e.disposeTexture(this._spriteTexture),this._particlePass.dispose(e),this._downsamplePass.dispose(e),this._downsampleTextures.forEach((function(t){t.dispose(e)}))}};var kf=Pf,Rf=r["b"].extend({type:"flowGL",__ecgl__:!0,init:function(e,t){this.viewGL=new ll("orthographic"),this.groupGL=new xa.Node,this.viewGL.add(this.groupGL),this._particleSurface=new kf;var n=new xa.Mesh({geometry:new xa.PlaneGeometry,material:new xa.Material({shader:new xa.Shader({vertex:xa.Shader.source("ecgl.color.vertex"),fragment:xa.Shader.source("ecgl.color.fragment")}),transparent:!0})});n.material.enableTexture("diffuseMap"),this.groupGL.add(n),this._planeMesh=n},render:function(e,t,n){var r=this._particleSurface;r.setParticleType(e.get("particleType")),r.setSupersampling(e.get("supersampling")),this._updateData(e,n),this._updateCamera(n.getWidth(),n.getHeight(),n.getDevicePixelRatio());var i=Di.firstNotNull(e.get("particleDensity"),128);r.setParticleDensity(i,i);var a=this._planeMesh,o=+new Date,s=this,l=!0;a.__percent=0,a.stopAnimation(),a.animate("",{loop:!0}).when(1e5,{__percent:1}).during((function(){var e=+new Date,t=Math.min(e-o,20);o+=t,s._renderer&&(r.update(s._renderer,n,t/1e3,l),a.material.set("diffuseMap",r.getSurfaceTexture())),l=!1})).start();var u=e.getModel("itemStyle"),c=xa.parseColor(u.get("color"));c[3]*=Di.firstNotNull(u.get("opacity"),1),a.material.set("color",c),r.setColorTextureImage(e.get("colorTexture"),n),r.setParticleSize(e.get("particleSize")),r.particleSpeedScaling=e.get("particleSpeed"),r.motionBlurFactor=1-Math.pow(.1,e.get("particleTrail"))},updateTransform:function(e,t,n){this._updateData(e,n)},afterRender:function(e,t,n,r){var i=r.renderer;this._renderer=i},_updateData:function(e,t){var n=e.coordinateSystem,r=n.dimensions.map((function(t){return e.coordDimToDataDim(t)[0]})),i=e.getData(),a=i.getDataExtent(r[0]),o=i.getDataExtent(r[1]),s=e.get("gridWidth"),l=e.get("gridHeight");if(null==s||"auto"===s){var u=(a[1]-a[0])/(o[1]-o[0]);s=Math.round(Math.sqrt(u*i.count()))}null!=l&&"auto"!==l||(l=Math.ceil(i.count()/s));var c=this._particleSurface.vectorFieldTexture,h=c.pixels;if(h&&h.length===l*s*4)for(var d=0;d<h.length;d++)h[d]=0;else h=c.pixels=new Float32Array(s*l*4);var f=0,p=1/0,g=new Float32Array(2*i.count()),m=0,v=[[1/0,1/0],[-1/0,-1/0]];i.each([r[0],r[1],"vx","vy"],(function(e,t,r,i){var a=n.dataToPoint([e,t]);g[m++]=a[0],g[m++]=a[1],v[0][0]=Math.min(a[0],v[0][0]),v[0][1]=Math.min(a[1],v[0][1]),v[1][0]=Math.max(a[0],v[1][0]),v[1][1]=Math.max(a[1],v[1][1]);var o=Math.sqrt(r*r+i*i);f=Math.max(f,o),p=Math.min(p,o)})),i.each(["vx","vy"],(function(e,t,n){var r=Math.round((g[2*n]-v[0][0])/(v[1][0]-v[0][0])*(s-1)),i=l-1-Math.round((g[2*n+1]-v[0][1])/(v[1][1]-v[0][1])*(l-1)),a=4*(i*s+r);h[a]=e/f*.5+.5,h[a+1]=t/f*.5+.5,h[a+3]=1})),c.width=s,c.height=l,"bmap"===e.get("coordinateSystem")&&this._fillEmptyPixels(c),c.dirty(),this._updatePlanePosition(v[0],v[1],e,t),this._updateGradientTexture(i.getVisual("visualMeta"),[p,f])},_fillEmptyPixels:function(e){var t=e.pixels,n=e.width,r=e.height;function i(e,i,a){e=Math.max(Math.min(e,n-1),0),i=Math.max(Math.min(i,r-1),0);var o=4*(i*(n-1)+e);return 0!==t[o+3]&&(a[0]=t[o],a[1]=t[o+1],!0)}function a(e,t,n){n[0]=e[0]+t[0],n[1]=e[1]+t[1]}for(var o=[],s=[],l=[],u=[],c=[],h=0,d=0;d<r;d++)for(var f=0;f<n;f++){var p=4*(d*(n-1)+f);0===t[p+3]&&(h=o[0]=o[1]=0,i(f-1,d,s)&&(h++,a(s,o,o)),i(f+1,d,l)&&(h++,a(l,o,o)),i(f,d-1,u)&&(h++,a(u,o,o)),i(f,d+1,c)&&(h++,a(c,o,o)),o[0]/=h,o[1]/=h,t[p]=o[0],t[p+1]=o[1]),t[p+3]=1}},_updateGradientTexture:function(e,t){if(e&&e.length){this._gradientTexture=this._gradientTexture||new xa.Texture2D({image:document.createElement("canvas")});var n=this._gradientTexture,r=n.image;r.width=200,r.height=1;var i=r.getContext("2d"),a=i.createLinearGradient(0,.5,r.width,.5);e[0].stops.forEach((function(e){var n;t[1]===t[0]?n=0:(n=e.value/t[1],n=Math.min(Math.max(n,0),1)),a.addColorStop(n,e.color)})),i.fillStyle=a,i.fillRect(0,0,r.width,r.height),n.dirty(),this._particleSurface.setGradientTexture(this._gradientTexture)}else this._particleSurface.setGradientTexture(null)},_updatePlanePosition:function(e,t,n,r){var i=this._limitInViewportAndFullFill(e,t,n,r);e=i.leftTop,t=i.rightBottom,this._particleSurface.setRegion(i.region),this._planeMesh.position.set((e[0]+t[0])/2,r.getHeight()-(e[1]+t[1])/2,0);var a=t[0]-e[0],o=t[1]-e[1];this._planeMesh.scale.set(a/2,o/2,1),this._particleSurface.resize(Math.max(Math.min(a,2048),1),Math.max(Math.min(o,2048),1)),this._renderer&&this._particleSurface.clearFrame(this._renderer)},_limitInViewportAndFullFill:function(e,t,n,r){var i=[Math.max(e[0],0),Math.max(e[1],0)],a=[Math.min(t[0],r.getWidth()),Math.min(t[1],r.getHeight())];if("bmap"===n.get("coordinateSystem")){var o=n.getData().getDataExtent(n.coordDimToDataDim("lng")[0]),s=Math.floor(o[1]-o[0])>=359;s&&(i[0]>0&&(i[0]=0),a[0]<r.getWidth()&&(a[0]=r.getWidth()))}var l=t[0]-e[0],u=t[1]-e[1],c=a[0]-i[0],h=a[1]-i[1],d=[(i[0]-e[0])/l,1-h/u-(i[1]-e[1])/u,c/l,h/u];return{leftTop:i,rightBottom:a,region:d}},_updateCamera:function(e,t,n){this.viewGL.setViewport(0,0,e,t,n);var r=this.viewGL.camera;r.left=r.bottom=0,r.top=t,r.right=e,r.near=0,r.far=100,r.position.z=10},remove:function(){this._planeMesh.stopAnimation(),this.groupGL.removeAll()},dispose:function(){this._renderer&&this._particleSurface.dispose(this._renderer),this.groupGL.removeAll()}});function Nf(e){e.registerChartView(Rf),e.registerSeriesModel(Af)}Object(r["X"])(Nf);var jf=n("a0Kb"),Ff=r["h"].extend({type:"series.linesGL",dependencies:["grid","geo"],visualStyleAccessPath:"lineStyle",visualDrawType:"stroke",streamEnabled:!0,init:function(e){var t=this._processFlatCoordsArray(e.data);this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset,t.flatCoords&&(e.data=new Float32Array(t.count)),Ff.superApply(this,"init",arguments)},mergeOption:function(e){var t=this._processFlatCoordsArray(e.data);this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset,t.flatCoords&&(e.data=new Float32Array(t.count)),Ff.superApply(this,"mergeOption",arguments)},appendData:function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=Object(jf["concatArray"])(this._flatCoords,t.flatCoords),this._flatCoordsOffset=Object(jf["concatArray"])(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},_getCoordsFromItemModel:function(e){var t=this.getData().getItemModel(e),n=t.option instanceof Array?t.option:t.getShallow("coords");return n},getLineCoordsCount:function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},getLineCoords:function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*e],r=this._flatCoordsOffset[2*e+1],i=0;i<r;i++)t[i]=t[i]||[],t[i][0]=this._flatCoords[n+2*i],t[i][1]=this._flatCoords[n+2*i+1];return r}var a=this._getCoordsFromItemModel(e);for(i=0;i<a.length;i++)t[i]=t[i]||[],t[i][0]=a[i][0],t[i][1]=a[i][1];return a.length},_processFlatCoordsArray:function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),"number"===typeof e[0]){for(var n=e.length,r=new Uint32Array(n),i=new Float64Array(n),a=0,o=0,s=0,l=0;l<n;){s++;var u=e[l++];r[o++]=a+t,r[o++]=u;for(var c=0;c<u;c++){var h=e[l++],d=e[l++];i[a++]=h,i[a++]=d}}return{flatCoordsOffset:new Uint32Array(r.buffer,0,o),flatCoords:i,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},getInitialData:function(e,t){var n=new r["e"](["value"],this);return n.hasItemOption=!1,n.initData(e.data,[],(function(e,t,r,i){if(e instanceof Array)return NaN;n.hasItemOption=!0;var a=e.value;return null!=a?a instanceof Array?a[i]:a:void 0})),n},defaultOption:{coordinateSystem:"geo",zlevel:10,progressive:1e4,progressiveThreshold:5e4,blendMode:"source-over",lineStyle:{opacity:.8},postEffect:{enable:!1,colorCorrection:{exposure:0,brightness:0,contrast:1,saturation:1,enable:!0}}}}),zf=Ff,Bf=r["b"].extend({type:"linesGL",__ecgl__:!0,init:function(e,t){this.groupGL=new xa.Node,this.viewGL=new ll("orthographic"),this.viewGL.add(this.groupGL),this._glViewHelper=new $d(this.viewGL),this._nativeLinesShader=xa.createShader("ecgl.lines3D"),this._meshLinesShader=xa.createShader("ecgl.meshLines3D"),this._linesMeshes=[],this._currentStep=0},render:function(e,t,n){this.groupGL.removeAll(),this._glViewHelper.reset(e,n);var r=this._linesMeshes[0];r||(r=this._linesMeshes[0]=this._createLinesMesh(e)),this._linesMeshes.length=1,this.groupGL.add(r),this._updateLinesMesh(e,r,0,e.getData().count()),this.viewGL.setPostEffect(e.getModel("postEffect"),n)},incrementalPrepareRender:function(e,t,n){this.groupGL.removeAll(),this._glViewHelper.reset(e,n),this._currentStep=0,this.viewGL.setPostEffect(e.getModel("postEffect"),n)},incrementalRender:function(e,t,n,r){var i=this._linesMeshes[this._currentStep];i||(i=this._createLinesMesh(t),this._linesMeshes[this._currentStep]=i),this._updateLinesMesh(t,i,e.start,e.end),this.groupGL.add(i),r.getZr().refresh(),this._currentStep++},updateTransform:function(e,t,n){e.coordinateSystem.getRoamTransform&&this._glViewHelper.updateTransform(e,n)},_createLinesMesh:function(e){var t=new xa.Mesh({$ignorePicking:!0,material:new xa.Material({shader:xa.createShader("ecgl.lines3D"),transparent:!0,depthMask:!1,depthTest:!1}),geometry:new uf({segmentScale:10,useNativeLine:!0,dynamic:!1}),mode:xa.Mesh.LINES,culling:!1});return t},_updateLinesMesh:function(e,t,n,r){var i=e.getData();t.material.blend="lighter"===e.get("blendMode")?xa.additiveBlend:null;var a=e.get("lineStyle.curveness")||0,o=e.get("polyline"),s=t.geometry,l=e.coordinateSystem,u=Di.firstNotNull(e.get("lineStyle.width"),1);u>1?(t.material.shader!==this._meshLinesShader&&t.material.attachShader(this._meshLinesShader),t.mode=xa.Mesh.TRIANGLES):(t.material.shader!==this._nativeLinesShader&&t.material.attachShader(this._nativeLinesShader),t.mode=xa.Mesh.LINES),n=n||0,r=r||i.count(),s.resetOffset();var c=0,h=0,d=[],f=[],p=[],g=[],m=[],v=.3,y=.7;function b(){f[0]=d[0]*y+g[0]*v-(d[1]-g[1])*a,f[1]=d[1]*y+g[1]*v-(g[0]-d[0])*a,p[0]=d[0]*v+g[0]*y-(d[1]-g[1])*a,p[1]=d[1]*v+g[1]*y-(g[0]-d[0])*a}if(o||0!==a)for(var _=n;_<r;_++)if(o){var x=e.getLineCoordsCount(_);c+=s.getPolylineVertexCount(x),h+=s.getPolylineTriangleCount(x)}else e.getLineCoords(_,m),this._glViewHelper.dataToPoint(l,m[0],d),this._glViewHelper.dataToPoint(l,m[1],g),b(),c+=s.getCubicCurveVertexCount(d,f,p,g),h+=s.getCubicCurveTriangleCount(d,f,p,g);else{var w=r-n;c+=w*s.getLineVertexCount(),h+=w*s.getLineVertexCount()}s.setVertexCount(c),s.setTriangleCount(h);var S=n,T=[];for(_=n;_<r;_++){xa.parseColor(yu(i,S),T);var O=Di.firstNotNull(bu(i,S),1);T[3]*=O;x=e.getLineCoords(_,m);for(var M=0;M<x;M++)this._glViewHelper.dataToPoint(l,m[M],m[M]);o?s.addPolyline(m,T,u,0,x):0!==a?(d=m[0],g=m[1],b(),s.addCubicCurve(d,f,p,g,T,u)):s.addPolyline(m,T,u,0,2),S++}},dispose:function(){this.groupGL.removeAll()},remove:function(){this.groupGL.removeAll()}});function Vf(e){e.registerChartView(Bf),e.registerSeriesModel(zf)}Object(r["X"])(Vf)},"uN9/":function(e,t,n){"use strict";var r=n("zb3V"),i=n("H4kQ");function a(e,t){var n,r,i,a,o,s=t.x,l=t.y,u=t.width,c=t.height,h=t.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"===typeof h?n=r=i=a=h:h instanceof Array?1===h.length?n=r=i=a=h[0]:2===h.length?(n=i=h[0],r=a=h[1]):3===h.length?(n=h[0],r=a=h[1],i=h[2]):(n=h[0],r=h[1],i=h[2],a=h[3]):n=r=i=a=0,n+r>u&&(o=n+r,n*=u/o,r*=u/o),i+a>u&&(o=i+a,i*=u/o,a*=u/o),r+i>c&&(o=r+i,r*=c/o,i*=c/o),n+a>c&&(o=n+a,n*=c/o,a*=c/o),e.moveTo(s+n,l),e.lineTo(s+u-r,l),0!==r&&e.arc(s+u-r,l+r,r,-Math.PI/2,0),e.lineTo(s+u,l+c-i),0!==i&&e.arc(s+u-i,l+c-i,i,0,Math.PI/2),e.lineTo(s+a,l+c),0!==a&&e.arc(s+a,l+c-a,a,Math.PI/2,Math.PI),e.lineTo(s,l+n),0!==n&&e.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}var o=n("g7gH"),s=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),l={},u=function(e){function t(t){return e.call(this,t)||this}return Object(r["b"])(t,e),t.prototype.getDefaultShape=function(){return new s},t.prototype.buildPath=function(e,t){var n,r,i,s;if(this.subPixelOptimize){var u=Object(o["c"])(l,t,this.style);n=u.x,r=u.y,i=u.width,s=u.height,u.r=t.r,t=u}else n=t.x,r=t.y,i=t.width,s=t.height;t.r?a(e,t):e.rect(n,r,i,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(i["b"]);u.prototype.type="rect";t["a"]=u},"uVz+":function(e,t,n){"use strict";var r=n("a0Kb"),i=function(){function e(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return r["map"](this._dimList,(function(e){return this._axes[e]}),this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),r["filter"](this.getAxes(),(function(t){return t.scale.type===e}))},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}();t["a"]=i},uyFV:function(e,t,n){"use strict";var r=n("HIsA"),i=n("qmtO").f,a=n("2I03"),o=n("B6LR"),s=n("JzK+"),l=n("eD14"),u=n("m52V"),c="".startsWith,h=Math.min,d=l("startsWith"),f=!u&&!d&&!!function(){var e=i(String.prototype,"startsWith");return e&&!e.writable}();r({target:"String",proto:!0,forced:!f&&!d},{startsWith:function(e){var t=String(s(this));o(e);var n=a(h(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return c?c.call(t,r,n):t.slice(n,n+r.length)===r}})},v4S0:function(e,t,n){var r=n("HIsA"),i=n("Hiyu"),a=n("jUTB"),o=n("2hCa"),s=n("qmtO"),l=n("G70G");r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){var t,n,r=o(e),i=s.f,u=a(r),c={},h=0;while(u.length>h)n=i(r,t=u[h++]),void 0!==n&&l(c,t,n);return c}})},v8az:function(e,t,n){"use strict";var r=n("HIsA"),i=n("m52V"),a=n("LTDN");r({target:"WeakMap",proto:!0,real:!0,forced:i},{deleteAll:function(){return a.apply(this,arguments)}})},vAB1:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var r=n("CU0g"),i=n("MMtT"),a=(0,i.LinkWrapper)(r.NavLink);t["default"]=a},vRjm:function(e,t){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.")}e.exports=n},vYQ8:function(e,t,n){var r,i,a,o=n("2JD6"),s=n("7+LC"),l=n("IRht"),u=n("40mc"),c=n("b9+m"),h=n("riWr"),d=n("dpzy"),f=o.location,p=o.setImmediate,g=o.clearImmediate,m=o.process,v=o.MessageChannel,y=o.Dispatch,b=0,_={},x="onreadystatechange",w=function(e){if(_.hasOwnProperty(e)){var t=_[e];delete _[e],t()}},S=function(e){return function(){w(e)}},T=function(e){w(e.data)},O=function(e){o.postMessage(e+"",f.protocol+"//"+f.host)};p&&g||(p=function(e){var t=[],n=1;while(arguments.length>n)t.push(arguments[n++]);return _[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(b),b},g=function(e){delete _[e]},"process"==l(m)?r=function(e){m.nextTick(S(e))}:y&&y.now?r=function(e){y.now(S(e))}:v&&!d?(i=new v,a=i.port2,i.port1.onmessage=T,r=u(a.postMessage,a,1)):!o.addEventListener||"function"!=typeof postMessage||o.importScripts||s(O)||"file:"===f.protocol?r=x in h("script")?function(e){c.appendChild(h("script"))[x]=function(){c.removeChild(this),w(e)}}:function(e){setTimeout(S(e),0)}:(r=O,o.addEventListener("message",T,!1))),e.exports={set:p,clear:g}},vldi:function(e,t,n){"use strict";var r=n("2RC6").f,i=n("bWCM"),a=n("masK"),o=n("40mc"),s=n("xOST"),l=n("Ji6T"),u=n("me7Q"),c=n("QD/U"),h=n("Hiyu"),d=n("qDpf").fastKey,f=n("twJ5"),p=f.set,g=f.getterFor;e.exports={getConstructor:function(e,t,n,u){var c=e((function(e,r){s(e,c,t),p(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),h||(e.size=0),void 0!=r&&l(r,e[u],e,n)})),f=g(t),m=function(e,t,n){var r,i,a=f(e),o=v(e,t);return o?o.value=n:(a.last=o={index:i=d(t,!0),key:t,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=o),r&&(r.next=o),h?a.size++:e.size++,"F"!==i&&(a.index[i]=o)),e},v=function(e,t){var n,r=f(e),i=d(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return a(c.prototype,{clear:function(){var e=this,t=f(e),n=t.index,r=t.first;while(r)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete n[r.index],r=r.next;t.first=t.last=void 0,h?t.size=0:e.size=0},delete:function(e){var t=this,n=f(t),r=v(t,e);if(r){var i=r.next,a=r.previous;delete n.index[r.index],r.removed=!0,a&&(a.next=i),i&&(i.previous=a),n.first==r&&(n.first=i),n.last==r&&(n.last=a),h?n.size--:t.size--}return!!r},forEach:function(e){var t,n=f(this),r=o(e,arguments.length>1?arguments[1]:void 0,3);while(t=t?t.next:n.first){r(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!v(this,e)}}),a(c.prototype,n?{get:function(e){var t=v(this,e);return t&&t.value},set:function(e,t){return m(this,0===e?0:e,t)}}:{add:function(e){return m(this,e=0===e?0:e,e)}}),h&&r(c.prototype,"size",{get:function(){return f(this).size}}),c},setStrong:function(e,t,n){var r=t+" Iterator",i=g(t),a=g(r);u(e,t,(function(e,t){p(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){var e=a(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),c(t)}}},"vn/D":function(e,t,n){"use strict";var r=n("HIsA"),i=n("m52V"),a=n("bXon"),o=n("hXyk"),s=n("DDwO"),l=n("70zE"),u=n("Ji6T");r({target:"Set",proto:!0,real:!0,forced:i},{intersection:function(e){var t=o(this),n=new(l(t,a("Set"))),r=s(t.has),i=s(n.add);return u(e,(function(e){r.call(t,e)&&i.call(n,e)})),n}})},w3Dd:function(e,t,n){"use strict";n("oTOb");var r=n("HIsA"),i=n("bXon"),a=n("nXFK"),o=n("GUTS"),s=n("masK"),l=n("J7X1"),u=n("afop"),c=n("twJ5"),h=n("xOST"),d=n("+qhb"),f=n("40mc"),p=n("KpHK"),g=n("hXyk"),m=n("pxmn"),v=n("bWCM"),y=n("OLna"),b=n("0Ccx"),_=n("tg/3"),x=n("kPvK"),w=i("fetch"),S=i("Headers"),T=x("iterator"),O="URLSearchParams",M=O+"Iterator",E=c.set,A=c.getterFor(O),C=c.getterFor(M),I=/\+/g,D=Array(4),L=function(e){return D[e-1]||(D[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},P=function(e){try{return decodeURIComponent(e)}catch(t){return e}},k=function(e){var t=e.replace(I," "),n=4;try{return decodeURIComponent(t)}catch(r){while(n)t=t.replace(L(n--),P);return t}},R=/[!'()~]|%20/g,N={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},j=function(e){return N[e]},F=function(e){return encodeURIComponent(e).replace(R,j)},z=function(e,t){if(t){var n,r,i=t.split("&"),a=0;while(a<i.length)n=i[a++],n.length&&(r=n.split("="),e.push({key:k(r.shift()),value:k(r.join("="))}))}},B=function(e){this.entries.length=0,z(this.entries,e)},V=function(e,t){if(e<t)throw TypeError("Not enough arguments")},G=u((function(e,t){E(this,{type:M,iterator:b(A(e).entries),kind:t})}),"Iterator",(function(){var e=C(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n})),H=function(){h(this,H,O);var e,t,n,r,i,a,o,s,l,u=arguments.length>0?arguments[0]:void 0,c=this,f=[];if(E(c,{type:O,entries:f,updateURL:function(){},updateSearchParams:B}),void 0!==u)if(m(u))if(e=_(u),"function"===typeof e){t=e.call(u),n=t.next;while(!(r=n.call(t)).done){if(i=b(g(r.value)),a=i.next,(o=a.call(i)).done||(s=a.call(i)).done||!a.call(i).done)throw TypeError("Expected sequence with length 2");f.push({key:o.value+"",value:s.value+""})}}else for(l in u)d(u,l)&&f.push({key:l,value:u[l]+""});else z(f,"string"===typeof u?"?"===u.charAt(0)?u.slice(1):u:u+"")},U=H.prototype;s(U,{append:function(e,t){V(arguments.length,2);var n=A(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){V(arguments.length,1);var t=A(this),n=t.entries,r=e+"",i=0;while(i<n.length)n[i].key===r?n.splice(i,1):i++;t.updateURL()},get:function(e){V(arguments.length,1);for(var t=A(this).entries,n=e+"",r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){V(arguments.length,1);for(var t=A(this).entries,n=e+"",r=[],i=0;i<t.length;i++)t[i].key===n&&r.push(t[i].value);return r},has:function(e){V(arguments.length,1);var t=A(this).entries,n=e+"",r=0;while(r<t.length)if(t[r++].key===n)return!0;return!1},set:function(e,t){V(arguments.length,1);for(var n,r=A(this),i=r.entries,a=!1,o=e+"",s=t+"",l=0;l<i.length;l++)n=i[l],n.key===o&&(a?i.splice(l--,1):(a=!0,n.value=s));a||i.push({key:o,value:s}),r.updateURL()},sort:function(){var e,t,n,r=A(this),i=r.entries,a=i.slice();for(i.length=0,n=0;n<a.length;n++){for(e=a[n],t=0;t<n;t++)if(i[t].key>e.key){i.splice(t,0,e);break}t===n&&i.push(e)}r.updateURL()},forEach:function(e){var t,n=A(this).entries,r=f(e,arguments.length>1?arguments[1]:void 0,3),i=0;while(i<n.length)t=n[i++],r(t.value,t.key,this)},keys:function(){return new G(this,"keys")},values:function(){return new G(this,"values")},entries:function(){return new G(this,"entries")}},{enumerable:!0}),o(U,T,U.entries),o(U,"toString",(function(){var e,t=A(this).entries,n=[],r=0;while(r<t.length)e=t[r++],n.push(F(e.key)+"="+F(e.value));return n.join("&")}),{enumerable:!0}),l(H,O),r({global:!0,forced:!a},{URLSearchParams:H}),a||"function"!=typeof w||"function"!=typeof S||r({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,n,r,i=[e];return arguments.length>1&&(t=arguments[1],m(t)&&(n=t.body,p(n)===O&&(r=t.headers?new S(t.headers):new S,r.has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=v(t,{body:y(0,String(n)),headers:y(0,r)}))),i.push(t)),w.apply(this,i)}}),e.exports={URLSearchParams:H,getState:A}},w41v:function(e,t,n){"use strict";var r=n("45XY"),i=n("GumR"),a=n("fAam"),o=n("SrKn"),s=n("Rx/k"),l=n("Zwxo"),u=function(e){return null===e||void 0===e};function c(e){switch(e.arrayFormat){case"index":return function(t){return function(n,r){var i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(a(n),null===r?[[f(t,e),"[",i,"]"].join("")]:[[f(t,e),"[",f(i,e),"]=",f(r,e)].join("")])}};case"bracket":return function(t){return function(n,r){return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(a(n),null===r?[[f(t,e),"[]"].join("")]:[[f(t,e),"[]=",f(r,e)].join("")])}};case"comma":case"separator":return function(t){return function(n,r){return null===r||void 0===r||0===r.length?n:0===n.length?[[f(t,e),"=",f(r,e)].join("")]:[[n,f(r,e)].join(e.arrayFormatSeparator)]}};default:return function(t){return function(n,r){return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(a(n),null===r?[f(t,e)]:[[f(t,e),"=",f(r,e)].join("")])}}}}function h(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return function(t,n,r){var i="string"===typeof n&&n.includes(e.arrayFormatSeparator),a="string"===typeof n&&!i&&p(n,e).includes(e.arrayFormatSeparator);n=a?p(n,e):n;var o=i||a?n.split(e.arrayFormatSeparator).map((function(t){return p(t,e)})):null===n?n:p(n,e);r[t]=o};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}function d(e){if("string"!==typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function f(e,t){return t.encode?t.strict?o(e):encodeURIComponent(e):e}function p(e,t){return t.decode?s(e):e}function g(e){return Array.isArray(e)?e.sort():"object"===typeof e?g(Object.keys(e)).sort((function(e,t){return Number(e)-Number(t)})).map((function(t){return e[t]})):e}function m(e){var t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function v(e){var t="",n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}function y(e){e=m(e);var t=e.indexOf("?");return-1===t?"":e.slice(t+1)}function b(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"===typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function _(e,t){t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t),d(t.arrayFormatSeparator);var n=h(t),a=Object.create(null);if("string"!==typeof e)return a;if(e=e.trim().replace(/^[?#&]/,""),!e)return a;var o,s=i(e.split("&"));try{for(s.s();!(o=s.n()).done;){var u=o.value,c=l(t.decode?u.replace(/\+/g," "):u,"="),f=r(c,2),m=f[0],v=f[1];v=void 0===v?null:["comma","separator"].includes(t.arrayFormat)?v:p(v,t),n(p(m,t),v,a)}}catch(M){s.e(M)}finally{s.f()}for(var y=0,_=Object.keys(a);y<_.length;y++){var x=_[y],w=a[x];if("object"===typeof w&&null!==w)for(var S=0,T=Object.keys(w);S<T.length;S++){var O=T[S];w[O]=b(w[O],t)}else a[x]=b(w,t)}return!1===t.sort?a:(!0===t.sort?Object.keys(a).sort():Object.keys(a).sort(t.sort)).reduce((function(e,t){var n=a[t];return Boolean(n)&&"object"===typeof n&&!Array.isArray(n)?e[t]=g(n):e[t]=n,e}),Object.create(null))}t.extract=y,t.parse=_,t.stringify=function(e,t){if(!e)return"";t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t),d(t.arrayFormatSeparator);for(var n=function(n){return t.skipNull&&u(e[n])||t.skipEmptyString&&""===e[n]},r=c(t),i={},a=0,o=Object.keys(e);a<o.length;a++){var s=o[a];n(s)||(i[s]=e[s])}var l=Object.keys(i);return!1!==t.sort&&l.sort(t.sort),l.map((function(n){var i=e[n];return void 0===i?"":null===i?f(n,t):Array.isArray(i)?i.reduce(r(n),[]).join("&"):f(n,t)+"="+f(i,t)})).filter((function(e){return e.length>0})).join("&")},t.parseUrl=function(e,t){t=Object.assign({decode:!0},t);var n=l(e,"#"),i=r(n,2),a=i[0],o=i[1];return Object.assign({url:a.split("?")[0]||"",query:_(y(e),t)},t&&t.parseFragmentIdentifier&&o?{fragmentIdentifier:p(o,t)}:{})},t.stringifyUrl=function(e,n){n=Object.assign({encode:!0,strict:!0},n);var r=m(e.url).split("?")[0]||"",i=t.extract(e.url),a=t.parse(i,{sort:!1}),o=Object.assign(a,e.query),s=t.stringify(o,n);s&&(s="?".concat(s));var l=v(e.url);return e.fragmentIdentifier&&(l="#".concat(f(e.fragmentIdentifier,n))),"".concat(r).concat(s).concat(l)}},w7rW:function(e,t,n){"use strict";var r=n("Wp5u").exportTypedArrayMethod,i=n("7+LC"),a=n("2JD6"),o=a.Uint8Array,s=o&&o.prototype||{},l=[].toString,u=[].join;i((function(){l.call({})}))&&(l=function(){return u.call(this)});var c=s.toString!=l;r("toString",l,c)},wFHg:function(e,t,n){var r=n("2hCa"),i=n("szjD").f,a={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(t){return o.slice()}};e.exports.f=function(e){return o&&"[object Window]"==a.call(e)?s(e):i(r(e))}},wKMT:function(e,t,n){var r=n("m52V"),i=n("0Ccx");e.exports=r?i:function(e){return Set.prototype.values.call(e)}},"wQ+q":function(e,t,n){var r=n("JzK+"),i=n("/Izz"),a="["+i+"]",o=RegExp("^"+a+a+"*"),s=RegExp(a+a+"*$"),l=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(o,"")),2&e&&(n=n.replace(s,"")),n}};e.exports={start:l(1),end:l(2),trim:l(3)}},waKi:function(e,t,n){"use strict";var r=n("HIsA"),i=n("m52V"),a=n("bXon"),o=n("hXyk"),s=n("DDwO"),l=n("40mc"),u=n("70zE"),c=n("wKMT"),h=n("Ji6T");r({target:"Set",proto:!0,real:!0,forced:i},{filter:function(e){var t=o(this),n=c(t),r=l(e,arguments.length>1?arguments[1]:void 0,3),i=new(u(t,a("Set"))),d=s(i.add);return h(n,(function(e){r(e,e,t)&&d.call(i,e)}),void 0,!1,!0),i}})},wdlL:function(e,t,n){var r=n("HIsA"),i=n("RUgK").entries;r({target:"Object",stat:!0},{entries:function(e){return i(e)}})},"wh+7":function(e,t,n){"use strict";n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return p})),n.d(t,"g",(function(){return g})),n.d(t,"a",(function(){return m})),n.d(t,"j",(function(){return v})),n.d(t,"c",(function(){return b})),n.d(t,"b",(function(){return _})),n.d(t,"f",(function(){return x})),n.d(t,"i",(function(){return w})),n.d(t,"h",(function(){return S})),n.d(t,"C",(function(){return N})),n.d(t,"B",(function(){return G})),n.d(t,"o",(function(){return H})),n.d(t,"x",(function(){return U})),n.d(t,"n",(function(){return W})),n.d(t,"w",(function(){return X})),n.d(t,"m",(function(){return Y})),n.d(t,"v",(function(){return K})),n.d(t,"p",(function(){return q})),n.d(t,"y",(function(){return Z})),n.d(t,"F",(function(){return J})),n.d(t,"G",(function(){return ee})),n.d(t,"E",(function(){return te})),n.d(t,"H",(function(){return ne})),n.d(t,"q",(function(){return re})),n.d(t,"k",(function(){return ie})),n.d(t,"l",(function(){return ae})),n.d(t,"D",(function(){return le})),n.d(t,"A",(function(){return ue})),n.d(t,"s",(function(){return ce})),n.d(t,"r",(function(){return he})),n.d(t,"u",(function(){return de})),n.d(t,"t",(function(){return fe})),n.d(t,"z",(function(){return pe}));var r=n("cOEc"),i=n("a0Kb"),a=n("MJ25"),o=n("Rj4u"),s=n("b26b"),l=n("H4kQ"),u=1,c={},h=Object(s["o"])(),d=0,f=1,p=2,g=["emphasis","blur","select"],m=["normal","emphasis","blur","select"],v=10,y=9,b="highlight",_="downplay",x="select",w="unselect",S="toggleSelect";function T(e){return null!=e&&"none"!==e}var O=new r["a"](100);function M(e){if("string"!==typeof e)return e;var t=O.get(e);return t||(t=o["lift"](e,-.1),O.put(e,t)),t}function E(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function A(e){E(e,"emphasis",p)}function C(e){e.hoverState===p&&E(e,"normal",d)}function I(e){E(e,"blur",f)}function D(e){e.hoverState===f&&E(e,"normal",d)}function L(e){e.selected=!0}function P(e){e.selected=!1}function k(e,t,n){t(e,n)}function R(e,t,n){k(e,t,n),e.isGroup&&e.traverse((function(e){k(e,t,n)}))}function N(e,t){switch(t){case"emphasis":e.hoverState=p;break;case"normal":e.hoverState=d;break;case"blur":e.hoverState=f;break;case"select":e.selected=!0}}function j(e,t,n,r){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o],l=i[s];a[s]=null==l?r&&r[s]:l}for(o=0;o<e.animators.length;o++){var u=e.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveFinalToTarget(a,t)}return a}function F(e,t,n,r){var a=n&&Object(i["indexOf"])(n,"select")>=0,o=!1;if(e instanceof l["b"]){var s=h(e),u=a&&s.selectFill||s.normalFill,c=a&&s.selectStroke||s.normalStroke;if(T(u)||T(c)){r=r||{};var d=r.style||{};!T(d.fill)&&T(u)?(o=!0,r=Object(i["extend"])({},r),d=Object(i["extend"])({},d),d.fill=M(u)):!T(d.stroke)&&T(c)&&(o||(r=Object(i["extend"])({},r),d=Object(i["extend"])({},d)),d.stroke=M(c)),r.style=d}}if(r&&null==r.z2){o||(r=Object(i["extend"])({},r));var f=e.z2EmphasisLift;r.z2=e.z2+(null!=f?f:v)}return r}function z(e,t,n){if(n&&null==n.z2){n=Object(i["extend"])({},n);var r=e.z2SelectLift;n.z2=e.z2+(null!=r?r:y)}return n}function B(e,t,n){var r=Object(i["indexOf"])(e.currentStates,t)>=0,a=e.style.opacity,o=r?null:j(e,["opacity"],t,{opacity:1});n=n||{};var s=n.style||{};return null==s.opacity&&(n=Object(i["extend"])({},n),s=Object(i["extend"])({opacity:r?a:.1*o.opacity},s),n.style=s),n}function V(e,t){var n=this.states[e];if(this.style){if("emphasis"===e)return F(this,e,t,n);if("blur"===e)return B(this,e,n);if("select"===e)return z(this,e,n)}return n}function G(e){e.stateProxy=V;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=V),n&&(n.stateProxy=V)}function H(e,t){!$(e,t)&&!e.__highByOuter&&R(e,A)}function U(e,t){!$(e,t)&&!e.__highByOuter&&R(e,C)}function W(e,t){e.__highByOuter|=1<<(t||0),R(e,A)}function X(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&R(e,C)}function Y(e){R(e,I)}function K(e){R(e,D)}function q(e){R(e,L)}function Z(e){R(e,P)}function $(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Q(e){var t=e.getModel();t.eachComponent((function(t,n){var r="series"===t?e.getViewOfSeriesModel(n):e.getViewOfComponentModel(n);r.group.traverse((function(e){D(e)}))}))}function J(e,t,n,r,a){var o=r.getModel();function s(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&K(r)}}if(n=n||"coordinateSystem",a){if(null!=e&&t&&"none"!==t){var l=o.getSeriesByIndex(e),u=l.coordinateSystem;u&&u.master&&(u=u.master);var c=[];o.eachSeries((function(e){var a=l===e,o=e.coordinateSystem;o&&o.master&&(o=o.master);var h=o&&u?o===u:a;if(!("series"===n&&!a||"coordinateSystem"===n&&!h||"series"===t&&a)){var d=r.getViewOfSeriesModel(e);if(d.group.traverse((function(e){I(e)})),Object(i["isArrayLike"])(t))s(e.getData(),t);else if(Object(i["isObject"])(t))for(var f=Object(i["keys"])(t),p=0;p<f.length;p++)s(e.getData(f[p]),t[f[p]]);c.push(e)}})),o.eachComponent((function(e,t){if("series"!==e){var n=r.getViewOfComponentModel(t);n&&n.blurSeries&&n.blurSeries(c,o)}}))}}else Q(r)}function ee(e,t,n){if(fe(t)){var r=t.type===b,o=e.seriesIndex,l=e.getData(t.dataType),u=Object(s["t"])(l,t);u=(Object(i["isArray"])(u)?u[0]:u)||0;var c=l.getItemGraphicEl(u);if(!c){var h=l.count(),d=0;while(!c&&d<h)c=l.getItemGraphicEl(d++)}if(c){var f=Object(a["a"])(c);J(o,f.focus,f.blurScope,n,r)}else{var p=e.get(["emphasis","focus"]),g=e.get(["emphasis","blurScope"]);null!=p&&J(o,p,g,n,r)}}}function te(e,t,n){if(de(t)){var r=t.dataType,a=e.getData(r),o=Object(s["t"])(a,t);Object(i["isArray"])(o)||(o=[o]),e[t.type===S?"toggleSelect":t.type===x?"select":"unselect"](o,r)}}function ne(e){var t=e.getAllData();Object(i["each"])(t,(function(t){var n=t.data,r=t.type;n.eachItemGraphicEl((function(t,n){e.isSelected(n,r)?q(t):Z(t)}))}))}function re(e){var t=[];return e.eachSeries((function(e){var n=e.getAllData();Object(i["each"])(n,(function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var a={dataIndex:i,seriesIndex:e.seriesIndex};null!=r&&(a.dataType=r),t.push(a)}}))})),t}function ie(e,t,n){ue(e,!0),R(e,G),ae(e,t,n)}function ae(e,t,n){var r=Object(a["a"])(e);null!=t?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var oe=["emphasis","blur","select"],se={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function le(e,t,n,r){n=n||"itemStyle";for(var i=0;i<oe.length;i++){var a=oe[i],o=t.getModel([a,n]),s=e.ensureState(a);s.style=r?r(o):o[se[n]]()}}function ue(e,t){var n=!1===t,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),n&&!r.__highDownDispatcher||(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function ce(e){return!(!e||!e.__highDownDispatcher)}function he(e){var t=c[e];return null==t&&u<=32&&(t=c[e]=u++),t}function de(e){var t=e.type;return t===x||t===w||t===S}function fe(e){var t=e.type;return t===b||t===_}function pe(e){var t=h(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}},wxpZ:function(e,t,n){"use strict";var r=Math.round(9*Math.random()),i=function(){function e(){this._id="__ec_inner_"+r++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return"function"===typeof Object.defineProperty?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype["delete"]=function(e){return!!this.has(e)&&(delete this._guard(e)[this._id],!0)},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},e}();t["a"]=i},wxy1:function(e,t,n){"use strict";var r=n("zb3V"),i=n("9FIh"),a=function(e){function t(t,n,r,i,a,o){var s=e.call(this,a)||this;return s.x=null==t?0:t,s.y=null==n?0:n,s.x2=null==r?1:r,s.y2=null==i?0:i,s.type="linear",s.global=o||!1,s}return Object(r["b"])(t,e),t}(i["a"]);t["a"]=a},"x+a2":function(e,t,n){"use strict";var r=n("PaPB"),i=n("JzK+");e.exports="".repeat||function(e){var t=String(i(this)),n="",a=r(e);if(a<0||a==1/0)throw RangeError("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(t+=t))1&a&&(n+=t);return n}},x2v5:function(e){e.exports=JSON.parse("{}")},x5Va:function(e,t,n){"use strict";var r=n("BAGR"),i=n("rJci"),a=n("EPlJ"),o=function(){function e(){this.group=new r["a"],this.uid=i["c"]("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.blurSeries=function(e,t){},e}();a["b"](o),a["c"](o),t["a"]=o},xFFj:function(e,t,n){"use strict";var r=n("VpdQ"),i=n("8XEw"),a=Math.min,o=Math.max,s=new i["a"],l=new i["a"],u=new i["a"],c=new i["a"],h=new i["a"],d=new i["a"],f=function(){function e(e,t,n,r){n<0&&isFinite(n)&&(e+=n,n=-n),r<0&&isFinite(r)&&(t+=r,r=-r),this.x=e,this.y=t,this.width=n,this.height=r}return e.prototype.union=function(e){var t=a(e.x,this.x),n=a(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=o(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=o(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,i=e.height/t.height,a=r["create"]();return r["translate"](a,a,[-t.x,-t.y]),r["scale"](a,a,[n,i]),r["translate"](a,a,[e.x,e.y]),a},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,a=r.x,o=r.x+r.width,s=r.y,l=r.y+r.height,u=t.x,c=t.x+t.width,f=t.y,p=t.y+t.height,g=!(o<u||c<a||l<f||p<s);if(n){var m=1/0,v=0,y=Math.abs(o-u),b=Math.abs(c-a),_=Math.abs(l-f),x=Math.abs(p-s),w=Math.min(y,b),S=Math.min(_,x);o<u||c<a?w>v&&(v=w,y<b?i["a"].set(d,-y,0):i["a"].set(d,b,0)):w<m&&(m=w,y<b?i["a"].set(h,y,0):i["a"].set(h,-b,0)),l<f||p<s?S>v&&(v=S,_<x?i["a"].set(d,0,-_):i["a"].set(d,0,x)):w<m&&(m=w,_<x?i["a"].set(h,0,_):i["a"].set(h,0,-x))}return n&&i["a"].copy(n,g?h:d),g},e.prototype.contain=function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,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],h=r[3],d=r[4],f=r[5];return t.x=n.x*i+d,t.y=n.y*h+f,t.width=n.width*i,t.height=n.height*h,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}s.x=u.x=n.x,s.y=c.y=n.y,l.x=c.x=n.x+n.width,l.y=u.y=n.y+n.height,s.transform(r),c.transform(r),l.transform(r),u.transform(r),t.x=a(s.x,l.x,u.x,c.x),t.y=a(s.y,l.y,u.y,c.y);var p=o(s.x,l.x,u.x,c.x),g=o(s.y,l.y,u.y,c.y);t.width=p-t.x,t.height=g-t.y}else t!==n&&e.copy(t,n)},e}();t["a"]=f},xOST:function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},xUti:function(e,t,n){var r=n("7+LC");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},xUzk:function(e,t,n){"use strict";var r=n("HIsA"),i=n("DDwO"),a=n("bXon"),o=n("0MLT"),s=n("uCRN"),l=n("Ji6T"),u="No one promise resolved";r({target:"Promise",stat:!0},{any:function(e){var t=this,n=o.f(t),r=n.resolve,c=n.reject,h=s((function(){var n=i(t.resolve),o=[],s=0,h=1,d=!1;l(e,(function(e){var i=s++,l=!1;o.push(void 0),h++,n.call(t,e).then((function(e){l||d||(d=!0,r(e))}),(function(e){l||d||(l=!0,o[i]=e,--h||c(new(a("AggregateError"))(o,u)))}))})),--h||c(new(a("AggregateError"))(o,u))}));return h.error&&c(h.value),n.promise}})},xdXA:function(e,t,n){"use strict";var r=n("dZOt"),i=n("xwgP");t.useSubscription=function(e){var t=e.getCurrentValue,n=e.subscribe,a=i.useState((function(){return{getCurrentValue:t,subscribe:n,value:t()}}));e=a[0];var o=a[1];return a=e.value,e.getCurrentValue===t&&e.subscribe===n||(a=t(),o({getCurrentValue:t,subscribe:n,value:a})),i.useDebugValue(a),i.useEffect((function(){function e(){if(!i){var e=t();o((function(i){return i.getCurrentValue!==t||i.subscribe!==n||i.value===e?i:r({},i,{value:e})}))}}var i=!1,a=n(e);return e(),function(){i=!0,a()}}),[t,n]),a}},xgte:function(e,t,n){"use strict";function r(){var e=i(n("xwgP"));return r=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var a=r()["default"].createContext({config:{mode:"doc",title:"",navs:{},menus:{},locales:[],repository:{branch:"master"},theme:{}},meta:{title:""},menu:[],nav:[],base:"",routes:[]});t["default"]=a},xlmz:function(e,t,n){var r=n("HIsA"),i=n("hXyk"),a=n("pxmn"),o=n("+qhb"),s=n("7+LC"),l=n("2RC6"),u=n("qmtO"),c=n("kI7s"),h=n("OLna");function d(e,t,n){var r,s,f=arguments.length<4?e:arguments[3],p=u.f(i(e),t);if(!p){if(a(s=c(e)))return d(s,t,n,f);p=h(0)}if(o(p,"value")){if(!1===p.writable||!a(f))return!1;if(r=u.f(f,t)){if(r.get||r.set||!1===r.writable)return!1;r.value=n,l.f(f,t,r)}else l.f(f,t,h(0,n));return!0}return void 0!==p.set&&(p.set.call(f,n),!0)}var f=s((function(){var e=l.f({},"a",{configurable:!0});return!1!==Reflect.set(c(e),"a",1,e)}));r({target:"Reflect",stat:!0,forced:f},{set:d})},xp0c:function(e,t,n){var r=n("+qhb"),i=n("jUTB"),a=n("qmtO"),o=n("2RC6");e.exports=function(e,t){for(var n=i(t),s=o.f,l=a.f,u=0;u<n.length;u++){var c=n[u];r(e,c)||s(e,c,l(t,c))}}},xw5M:function(e,t,n){"use strict";var r=n("a0Kb"),i=n("b26b"),a=Object(i["o"])();function o(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,f(t,n,e),Object(r["each"])(n,(function(n){Object(r["each"])(t.TRANSFERABLE_METHODS,(function(t){n.wrapMethod(t,Object(r["curry"])(s,e))}))})),t.wrapMethod("cloneShallow",Object(r["curry"])(u,e)),Object(r["each"])(t.CHANGABLE_METHODS,(function(n){t.wrapMethod(n,Object(r["curry"])(l,e))})),Object(r["assert"])(n[t.dataType]===t)}function s(e,t){if(d(this)){var n=Object(r["extend"])({},a(this).datas);n[this.dataType]=t,f(t,n,e)}else p(t,this.dataType,a(this).mainData,e);return t}function l(e,t){return e.struct&&e.struct.update(),t}function u(e,t){return Object(r["each"])(a(t).datas,(function(n,r){n!==t&&p(n.cloneShallow(),r,t,e)})),t}function c(e){var t=a(this).mainData;return null==e||null==t?t:a(t).datas[e]}function h(){var e=a(this).mainData;return null==e?[{data:e}]:Object(r["map"])(Object(r["keys"])(a(e).datas),(function(t){return{type:t,data:a(e).datas[t]}}))}function d(e){return a(e).mainData===e}function f(e,t,n){a(e).datas={},Object(r["each"])(t,(function(t,r){p(t,r,e,n)}))}function p(e,t,n,r){a(n).datas[t]=e,a(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=c,e.getLinkedDataAll=h}t["a"]=o},xwgP:function(e,t,n){"use strict";e.exports=n("9VYP")},y6vz:function(e,t,n){var r=n("6tTE"),i=n("GPbW");e.exports=Object.keys||function(e){return r(e,i)}},"yY2/":function(e,t,n){"use strict";var r=n("zb3V"),i=n("H4kQ"),a=n("5MTG"),o=Math.PI,s=2*o,l=Math.sin,u=Math.cos,c=Math.acos,h=Math.atan2,d=Math.abs,f=Math.sqrt,p=Math.max,g=Math.min,m=1e-4;function v(e,t,n,r,i,a,o,s){var l=n-e,u=r-t,c=o-i,h=s-a,d=h*l-c*u;if(!(d*d<m))return d=(c*(t-a)-h*(e-i))/d,[e+d*l,t+d*u]}function y(e,t,n,r,i,a,o){var s=e-n,l=t-r,u=(o?a:-a)/f(s*s+l*l),c=u*l,h=-u*s,d=e+c,g=t+h,m=n+c,v=r+h,y=(d+m)/2,b=(g+v)/2,_=m-d,x=v-g,w=_*_+x*x,S=i-a,T=d*v-m*g,O=(x<0?-1:1)*f(p(0,S*S*w-T*T)),M=(T*x-_*O)/w,E=(-T*_-x*O)/w,A=(T*x+_*O)/w,C=(-T*_+x*O)/w,I=M-y,D=E-b,L=A-y,P=C-b;return I*I+D*D>L*L+P*P&&(M=A,E=C),{cx:M,cy:E,x01:-c,y01:-h,x11:M*(i/S-1),y11:E*(i/S-1)}}function b(e,t){var n=p(t.r,0),r=p(t.r0||0,0),i=n>0,b=r>0;if(i||b){if(i||(n=r,r=0),r>n){var _=n;n=r,r=_}var x,w=!!t.clockwise,S=t.startAngle,T=t.endAngle;if(S===T)x=0;else{var O=[S,T];Object(a["b"])(O,!w),x=d(O[0]-O[1])}var M=t.cx,E=t.cy,A=t.cornerRadius||0,C=t.innerCornerRadius||0;if(n>m)if(x>s-m)e.moveTo(M+n*u(S),E+n*l(S)),e.arc(M,E,n,S,T,!w),r>m&&(e.moveTo(M+r*u(T),E+r*l(T)),e.arc(M,E,r,T,S,w));else{var I=d(n-r)/2,D=g(I,A),L=g(I,C),P=L,k=D,R=n*u(S),N=n*l(S),j=r*u(T),F=r*l(T),z=void 0,B=void 0,V=void 0,G=void 0;if((D>m||L>m)&&(z=n*u(T),B=n*l(T),V=r*u(S),G=r*l(S),x<o)){var H=v(R,N,V,G,z,B,j,F);if(H){var U=R-H[0],W=N-H[1],X=z-H[0],Y=B-H[1],K=1/l(c((U*X+W*Y)/(f(U*U+W*W)*f(X*X+Y*Y)))/2),q=f(H[0]*H[0]+H[1]*H[1]);P=g(L,(r-q)/(K-1)),k=g(D,(n-q)/(K+1))}}if(x>m)if(k>m){var Z=y(V,G,R,N,n,k,w),$=y(z,B,j,F,n,k,w);e.moveTo(M+Z.cx+Z.x01,E+Z.cy+Z.y01),k<D?e.arc(M+Z.cx,E+Z.cy,k,h(Z.y01,Z.x01),h($.y01,$.x01),!w):(e.arc(M+Z.cx,E+Z.cy,k,h(Z.y01,Z.x01),h(Z.y11,Z.x11),!w),e.arc(M,E,n,h(Z.cy+Z.y11,Z.cx+Z.x11),h($.cy+$.y11,$.cx+$.x11),!w),e.arc(M+$.cx,E+$.cy,k,h($.y11,$.x11),h($.y01,$.x01),!w))}else e.moveTo(M+R,E+N),e.arc(M,E,n,S,T,!w);else e.moveTo(M+R,E+N);if(r>m&&x>m)if(P>m){Z=y(j,F,z,B,r,-P,w),$=y(R,N,V,G,r,-P,w);e.lineTo(M+Z.cx+Z.x01,E+Z.cy+Z.y01),P<L?e.arc(M+Z.cx,E+Z.cy,P,h(Z.y01,Z.x01),h($.y01,$.x01),!w):(e.arc(M+Z.cx,E+Z.cy,P,h(Z.y01,Z.x01),h(Z.y11,Z.x11),!w),e.arc(M,E,r,h(Z.cy+Z.y11,Z.cx+Z.x11),h($.cy+$.y11,$.cx+$.x11),w),e.arc(M+$.cx,E+$.cy,P,h($.y11,$.x11),h($.y01,$.x01),!w))}else e.lineTo(M+j,E+F),e.arc(M,E,r,T,S,w);else e.lineTo(M+j,E+F)}else e.moveTo(M,E);e.closePath()}}var _=function(){function e(){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,this.innerCornerRadius=0}return e}(),x=function(e){function t(t){return e.call(this,t)||this}return Object(r["b"])(t,e),t.prototype.getDefaultShape=function(){return new _},t.prototype.buildPath=function(e,t){b(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(i["b"]);x.prototype.type="sector";t["a"]=x},zFVJ:function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"e",(function(){return p})),n.d(t,"b",(function(){return g})),n.d(t,"d",(function(){return m})),n.d(t,"c",(function(){return v}));var r=n("tbCl"),i=n("jwv5"),a={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:"Guage",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:". "}}}},o={time:{month:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],dayOfWeekAbbr:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53cd\u9009"}},toolbox:{brush:{title:{rect:"\u77e9\u5f62\u9009\u62e9",polygon:"\u5708\u9009",lineX:"\u6a2a\u5411\u9009\u62e9",lineY:"\u7eb5\u5411\u9009\u62e9",keep:"\u4fdd\u6301\u9009\u62e9",clear:"\u6e05\u9664\u9009\u62e9"}},dataView:{title:"\u6570\u636e\u89c6\u56fe",lang:["\u6570\u636e\u89c6\u56fe","\u5173\u95ed","\u5237\u65b0"]},dataZoom:{title:{zoom:"\u533a\u57df\u7f29\u653e",back:"\u533a\u57df\u7f29\u653e\u8fd8\u539f"}},magicType:{title:{line:"\u5207\u6362\u4e3a\u6298\u7ebf\u56fe",bar:"\u5207\u6362\u4e3a\u67f1\u72b6\u56fe",stack:"\u5207\u6362\u4e3a\u5806\u53e0",tiled:"\u5207\u6362\u4e3a\u5e73\u94fa"}},restore:{title:"\u8fd8\u539f"},saveAsImage:{title:"\u4fdd\u5b58\u4e3a\u56fe\u7247",lang:["\u53f3\u952e\u53e6\u5b58\u4e3a\u56fe\u7247"]}},series:{typeNames:{pie:"\u997c\u56fe",bar:"\u67f1\u72b6\u56fe",line:"\u6298\u7ebf\u56fe",scatter:"\u6563\u70b9\u56fe",effectScatter:"\u6d9f\u6f2a\u6563\u70b9\u56fe",radar:"\u96f7\u8fbe\u56fe",tree:"\u6811\u56fe",treemap:"\u77e9\u5f62\u6811\u56fe",boxplot:"\u7bb1\u578b\u56fe",candlestick:"K\u7ebf\u56fe",k:"K\u7ebf\u56fe",heatmap:"\u70ed\u529b\u56fe",map:"\u5730\u56fe",parallel:"\u5e73\u884c\u5750\u6807\u56fe",lines:"\u7ebf\u56fe",graph:"\u5173\u7cfb\u56fe",sankey:"\u6851\u57fa\u56fe",funnel:"\u6f0f\u6597\u56fe",gauge:"\u4eea\u8868\u76d8\u56fe",pictorialBar:"\u8c61\u5f62\u67f1\u56fe",themeRiver:"\u4e3b\u9898\u6cb3\u6d41\u56fe",sunburst:"\u65ed\u65e5\u56fe"}},aria:{general:{withTitle:"\u8fd9\u662f\u4e00\u4e2a\u5173\u4e8e\u201c{title}\u201d\u7684\u56fe\u8868\u3002",withoutTitle:"\u8fd9\u662f\u4e00\u4e2a\u56fe\u8868\uff0c"},series:{single:{prefix:"",withName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\uff0c\u8868\u793a{seriesName}\u3002",withoutName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\u3002"},multiple:{prefix:"\u5b83\u7531{seriesCount}\u4e2a\u56fe\u8868\u7cfb\u5217\u7ec4\u6210\u3002",withName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a\u8868\u793a{seriesName}\u7684{seriesType}\uff0c",withoutName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a{seriesType}\uff0c",separator:{middle:"\uff1b",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636e\u662f\u2014\u2014",partialData:"\u5176\u4e2d\uff0c\u524d{displayCnt}\u9879\u662f\u2014\u2014",withName:"{name}\u7684\u6570\u636e\u662f{value}",withoutName:"{value}",separator:{middle:"\uff0c",end:""}}}},s=n("a0Kb"),l="ZH",u="EN",c=u,h={},d={},f=i["a"].domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(l)>-1?l:c}():c;function p(e,t){e=e.toUpperCase(),d[e]=new r["a"](t),h[e]=t}function g(e){if(Object(s["isString"])(e)){var t=h[e.toUpperCase()]||{};return e===l||e===u?Object(s["clone"])(t):Object(s["merge"])(Object(s["clone"])(t),Object(s["clone"])(h[c]),!1)}return Object(s["merge"])(Object(s["clone"])(e),Object(s["clone"])(h[c]),!1)}function m(e){return d[e]}function v(){return d[c]}p(u,a),p(l,o)},zM5O:function(e,t,n){"use strict";var r=n("HIsA"),i=n("m52V"),a=n("hXyk"),o=n("wKMT"),s=n("Ji6T");r({target:"Set",proto:!0,real:!0,forced:i},{join:function(e){var t=a(this),n=o(t),r=void 0===e?",":String(e),i=[];return s(n,i.push,i,!1,!0),i.join(r)}})},zZgq:function(e,t,n){"use strict";var r=n("pMf/"),i=n("Wp5u").exportTypedArrayStaticMethod,a=n("b4JQ");i("from",a,r)},zb3V:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return o}));var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};Object.create;function o(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}Object.create},zcJV:function(e,t,n){var r=n("HIsA"),i=n("5AZ8");r({target:"Set",stat:!0},{from:i})}}); |