pui9-dashboard 1.16.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -0
- package/dist/demo.html +10 -0
- package/dist/pui9-dashboard.common.js +143549 -0
- package/dist/pui9-dashboard.common.js.map +1 -0
- package/dist/pui9-dashboard.css +5 -0
- package/dist/pui9-dashboard.umd.js +143559 -0
- package/dist/pui9-dashboard.umd.js.map +1 -0
- package/dist/pui9-dashboard.umd.min.js +28 -0
- package/dist/pui9-dashboard.umd.min.js.map +1 -0
- package/package-lock.json +16026 -0
- package/package.json +70 -0
- package/src/components/PuiDashboard.vue +87 -0
- package/src/components/PuiDashboardOverview.vue +12 -0
- package/src/components/PuiGridLayout.vue +127 -0
- package/src/components/PuiWidgetOverview.vue +41 -0
- package/src/components/puidashboard/PuiDashboardForm.vue +143 -0
- package/src/components/puidashboard/PuiDashboardGrid.vue +14 -0
- package/src/components/puiwidget/PuiWidgetForm.vue +129 -0
- package/src/components/puiwidget/PuiWidgetGrid.vue +14 -0
- package/src/index.js +17 -0
- package/src/widgets/PuiWidgetDatatable.vue +155 -0
- package/src/widgets/PuiWidgetDatatableOptions.js +13 -0
- package/src/widgets/PuiWidgetEChart.vue +188 -0
- package/src/widgets/PuiWidgetEChartOptions.js +79 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["pui9-dashboard"]=e(require("vue")):t["pui9-dashboard"]=e(t["Vue"])})("undefined"!==typeof self?self:this,(function(t){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"00b4":function(t,e,n){"use strict";n("ac1f");var i=n("23e7"),r=n("861d"),o=function(){var t=!1,e=/[ac]/;return e.exec=function(){return t=!0,/./.exec.apply(this,arguments)},!0===e.test("abc")&&t}(),a=/./.test;i({target:"RegExp",proto:!0,forced:!o},{test:function(t){if("function"!==typeof this.exec)return a.call(this,t);var e=this.exec(t);if(null!==e&&!r(e))throw new Error("RegExp exec method returned something other than an Object or null");return!!e}})},"00ee":function(t,e,n){var i=n("b622"),r=i("toStringTag"),o={};o[r]="z",t.exports="[object z]"===String(o)},"0366":function(t,e,n){var i=n("1c0b");t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},"057f":function(t,e,n){var i=n("fc6a"),r=n("241c").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return r(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):r(i(t))}},"0643":function(t,e,n){"use strict";var i=n("23e7"),r=n("da84"),o=n("19aa"),a=n("9112"),s=n("d039"),l=n("5135"),u=n("b622"),c=n("ae93").IteratorPrototype,h=n("c430"),d=u("iterator"),p=u("toStringTag"),f=r.Iterator,g=h||"function"!=typeof f||f.prototype!==c||!s((function(){f({})})),v=function(){o(this,v)};h&&(c={},a(c,d,(function(){return this}))),l(c,p)||a(c,p,"Iterator"),!g&&l(c,"constructor")&&c.constructor!==Object||a(c,"constructor",v),v.prototype=c,i({global:!0,forced:g},{Iterator:v})},"06cf":function(t,e,n){var i=n("83ab"),r=n("d1e7"),o=n("5c6c"),a=n("fc6a"),s=n("a04b"),l=n("5135"),u=n("0cfb"),c=Object.getOwnPropertyDescriptor;e.f=i?c:function(t,e){if(t=a(t),e=s(e),u)try{return c(t,e)}catch(n){}if(l(t,e))return o(!r.f.call(t,e),t[e])}},"074e":function(t,e,n){var i,r,o;(function(a,s){r=[e,n("313e")],i=s,o="function"===typeof i?i.apply(e,r):i,void 0===o||(t.exports=o)})(0,(function(t,e){var n=function(t){"undefined"!==typeof console&&console&&console.error&&console.error(t)};if(e){var i=["#d87c7c","#919e8b","#d7ab82","#6e7074","#61a0a8","#efa18d","#787464","#cc7e63","#724e58","#4b565b"];e.registerTheme("vintage",{color:i,backgroundColor:"#fef8ef",graph:{color:i}})}else n("ECharts is not Loaded")}))},"0b42":function(t,e,n){var i=n("861d"),r=n("e8b5"),o=n("b622"),a=o("species");t.exports=function(t){var e;return r(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!r(e.prototype)?i(e)&&(e=e[a],null===e&&(e=void 0)):e=void 0),void 0===e?Array:e}},"0bc6":function(t,e,n){},"0cfb":function(t,e,n){var i=n("83ab"),r=n("d039"),o=n("cc12");t.exports=!i&&!r((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"107c":function(t,e,n){var i=n("d039"),r=n("da84"),o=r.RegExp;t.exports=i((function(){var t=o("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},"159b":function(t,e,n){var i=n("da84"),r=n("fdbc"),o=n("17c2"),a=n("9112");for(var s in r){var l=i[s],u=l&&l.prototype;if(u&&u.forEach!==o)try{a(u,"forEach",o)}catch(c){u.forEach=o}}},"166a":function(t,e,n){},"17c2":function(t,e,n){"use strict";var i=n("b727").forEach,r=n("a640"),o=r("forEach");t.exports=o?[].forEach:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}},"19aa":function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},"1b2c":function(t,e,n){},"1be4":function(t,e,n){var i=n("d066");t.exports=i("document","documentElement")},"1c0b":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"1c7e":function(t,e,n){var i=n("b622"),r=i("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[r]=function(){return this},Array.from(s,(function(){throw 2}))}catch(l){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(l){}return n}},"1d80":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"1dde":function(t,e,n){var i=n("d039"),r=n("b622"),o=n("2d00"),a=r("species");t.exports=function(t){return o>=51||!i((function(){var e=[],n=e.constructor={};return n[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},"20f6":function(t,e,n){},2266:function(t,e,n){var i=n("825a"),r=n("e95a"),o=n("50c4"),a=n("0366"),s=n("9a1f"),l=n("35a1"),u=n("2a62"),c=function(t,e){this.stopped=t,this.result=e};t.exports=function(t,e,n){var h,d,p,f,g,v,m,y=n&&n.that,x=!(!n||!n.AS_ENTRIES),b=!(!n||!n.IS_ITERATOR),_=!(!n||!n.INTERRUPTED),w=a(e,y,1+x+_),S=function(t){return h&&u(h,"normal",t),new c(!0,t)},M=function(t){return x?(i(t),_?w(t[0],t[1],S):w(t[0],t[1])):_?w(t,S):w(t)};if(b)h=t;else{if(d=l(t),"function"!=typeof d)throw TypeError("Target is not iterable");if(r(d)){for(p=0,f=o(t.length);f>p;p++)if(g=M(t[p]),g&&g instanceof c)return g;return new c(!1)}h=s(t,d)}v=h.next;while(!(m=v.call(h)).done){try{g=M(m.value)}catch(I){u(h,"throw",I)}if("object"==typeof g&&g&&g instanceof c)return g}return new c(!1)}},2382:function(t,e,n){"use strict";var i=n("23e7"),r=n("1c0b"),o=n("825a"),a=n("c5cc"),s=n("9bdd"),l=a((function(t){var e,n,i,r=this.iterator,a=this.filterer,l=this.next;while(1){if(e=o(l.apply(r,t)),n=this.done=!!e.done,n)return;if(i=e.value,s(r,a,i))return i}}));i({target:"Iterator",proto:!0,real:!0},{filter:function(t){return new l({iterator:o(this),filterer:r(t)})}})},"23cb":function(t,e,n){var i=n("a691"),r=Math.max,o=Math.min;t.exports=function(t,e){var n=i(t);return n<0?r(n+e,0):o(n,e)}},"23e7":function(t,e,n){var i=n("da84"),r=n("06cf").f,o=n("9112"),a=n("6eeb"),s=n("ce4e"),l=n("e893"),u=n("94ca");t.exports=function(t,e){var n,c,h,d,p,f,g=t.target,v=t.global,m=t.stat;if(c=v?i:m?i[g]||s(g,{}):(i[g]||{}).prototype,c)for(h in e){if(p=e[h],t.noTargetGet?(f=r(c,h),d=f&&f.value):d=c[h],n=u(v?h:g+(m?".":"#")+h,t.forced),!n&&void 0!==d){if(typeof p===typeof d)continue;l(p,d)}(t.sham||d&&d.sham)&&o(p,"sham",!0),a(c,h,p,t)}}},"241c":function(t,e,n){var i=n("ca84"),r=n("7839"),o=r.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,o)}},"25a8":function(t,e,n){},"25f0":function(t,e,n){"use strict";var i=n("6eeb"),r=n("825a"),o=n("577e"),a=n("d039"),s=n("ad6d"),l="toString",u=RegExp.prototype,c=u[l],h=a((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),d=c.name!=l;(h||d)&&i(RegExp.prototype,l,(function(){var t=r(this),e=o(t.source),n=t.flags,i=o(void 0===n&&t instanceof RegExp&&!("flags"in u)?s.call(t):n);return"/"+e+"/"+i}),{unsafe:!0})},"269a":function(t,e){t.exports=function(t,e){var n="function"===typeof t.exports?t.exports.extendOptions:t.options;for(var i in"function"===typeof t.exports&&(n.directives=t.exports.options.directives),n.directives=n.directives||{},e)n.directives[i]=n.directives[i]||e[i]}},"2a62":function(t,e,n){var i=n("825a");t.exports=function(t,e,n){var r,o;i(t);try{if(r=t["return"],void 0===r){if("throw"===e)throw n;return n}r=r.call(t)}catch(a){o=!0,r=a}if("throw"===e)throw n;if(o)throw r;return i(r),n}},"2d00":function(t,e,n){var i,r,o=n("da84"),a=n("342f"),s=o.process,l=o.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c?(i=c.split("."),r=i[0]<4?1:i[0]+i[1]):a&&(i=a.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/),i&&(r=i[1]))),t.exports=r&&+r},"313e":function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return dw})),n.d(e,"dependencies",(function(){return pw})),n.d(e,"PRIORITY",(function(){return kw})),n.d(e,"init",(function(){return DS})),n.d(e,"connect",(function(){return kS})),n.d(e,"disConnect",(function(){return LS})),n.d(e,"disconnect",(function(){return PS})),n.d(e,"dispose",(function(){return OS})),n.d(e,"getInstanceByDom",(function(){return ES})),n.d(e,"getInstanceById",(function(){return RS})),n.d(e,"registerTheme",(function(){return NS})),n.d(e,"registerPreprocessor",(function(){return zS})),n.d(e,"registerProcessor",(function(){return BS})),n.d(e,"registerPostInit",(function(){return VS})),n.d(e,"registerPostUpdate",(function(){return FS})),n.d(e,"registerAction",(function(){return HS})),n.d(e,"registerCoordinateSystem",(function(){return $S})),n.d(e,"getCoordinateSystemDimensions",(function(){return WS})),n.d(e,"registerLocale",(function(){return Pp})),n.d(e,"registerLayout",(function(){return GS})),n.d(e,"registerVisual",(function(){return jS})),n.d(e,"registerLoading",(function(){return US})),n.d(e,"setCanvasCreator",(function(){return ZS})),n.d(e,"registerMap",(function(){return qS})),n.d(e,"getMap",(function(){return KS})),n.d(e,"registerTransform",(function(){return JS})),n.d(e,"dataTool",(function(){return QS})),n.d(e,"zrender",(function(){return s})),n.d(e,"matrix",(function(){return a})),n.d(e,"vector",(function(){return r})),n.d(e,"zrUtil",(function(){return i})),n.d(e,"color",(function(){return o})),n.d(e,"throttle",(function(){return by})),n.d(e,"helper",(function(){return u})),n.d(e,"use",(function(){return nM})),n.d(e,"parseGeoJSON",(function(){return H_})),n.d(e,"parseGeoJson",(function(){return H_})),n.d(e,"number",(function(){return c})),n.d(e,"time",(function(){return h})),n.d(e,"graphic",(function(){return d})),n.d(e,"format",(function(){return p})),n.d(e,"util",(function(){return f})),n.d(e,"env",(function(){return S})),n.d(e,"List",(function(){return FM})),n.d(e,"Model",(function(){return yp})),n.d(e,"Axis",(function(){return qC})),n.d(e,"ComponentModel",(function(){return Xf})),n.d(e,"ComponentView",(function(){return ay})),n.d(e,"SeriesModel",(function(){return ry})),n.d(e,"ChartView",(function(){return vy})),n.d(e,"innerDrawElementOnCanvas",(function(){return $b})),n.d(e,"extendComponentModel",(function(){return KC})),n.d(e,"extendComponentView",(function(){return JC})),n.d(e,"extendSeriesModel",(function(){return QC})),n.d(e,"extendChartView",(function(){return tT}));var i={};n.r(i),n.d(i,"$override",(function(){return R})),n.d(i,"guid",(function(){return z})),n.d(i,"logError",(function(){return B})),n.d(i,"clone",(function(){return V})),n.d(i,"merge",(function(){return F})),n.d(i,"mergeAll",(function(){return H})),n.d(i,"extend",(function(){return $})),n.d(i,"defaults",(function(){return W})),n.d(i,"createCanvas",(function(){return G})),n.d(i,"indexOf",(function(){return j})),n.d(i,"inherits",(function(){return Y})),n.d(i,"mixin",(function(){return X})),n.d(i,"isArrayLike",(function(){return U})),n.d(i,"each",(function(){return Z})),n.d(i,"map",(function(){return q})),n.d(i,"reduce",(function(){return K})),n.d(i,"filter",(function(){return J})),n.d(i,"find",(function(){return Q})),n.d(i,"keys",(function(){return tt})),n.d(i,"bind",(function(){return nt})),n.d(i,"curry",(function(){return it})),n.d(i,"isArray",(function(){return rt})),n.d(i,"isFunction",(function(){return ot})),n.d(i,"isString",(function(){return at})),n.d(i,"isStringSafe",(function(){return st})),n.d(i,"isNumber",(function(){return lt})),n.d(i,"isObject",(function(){return ut})),n.d(i,"isBuiltInObject",(function(){return ct})),n.d(i,"isTypedArray",(function(){return ht})),n.d(i,"isDom",(function(){return dt})),n.d(i,"isGradientObject",(function(){return pt})),n.d(i,"isImagePatternObject",(function(){return ft})),n.d(i,"isRegExp",(function(){return gt})),n.d(i,"eqNaN",(function(){return vt})),n.d(i,"retrieve",(function(){return mt})),n.d(i,"retrieve2",(function(){return yt})),n.d(i,"retrieve3",(function(){return xt})),n.d(i,"slice",(function(){return bt})),n.d(i,"normalizeCssArray",(function(){return _t})),n.d(i,"assert",(function(){return wt})),n.d(i,"trim",(function(){return St})),n.d(i,"setAsPrimitive",(function(){return It})),n.d(i,"isPrimitive",(function(){return Ct})),n.d(i,"HashMap",(function(){return Tt})),n.d(i,"createHashMap",(function(){return At})),n.d(i,"concatArray",(function(){return Dt})),n.d(i,"createObject",(function(){return kt})),n.d(i,"hasOwn",(function(){return Lt})),n.d(i,"noop",(function(){return Pt}));var r={};n.r(r),n.d(r,"create",(function(){return Ot})),n.d(r,"copy",(function(){return Et})),n.d(r,"clone",(function(){return Rt})),n.d(r,"set",(function(){return Nt})),n.d(r,"add",(function(){return zt})),n.d(r,"scaleAndAdd",(function(){return Bt})),n.d(r,"sub",(function(){return Vt})),n.d(r,"len",(function(){return Ft})),n.d(r,"length",(function(){return Ht})),n.d(r,"lenSquare",(function(){return $t})),n.d(r,"lengthSquare",(function(){return Wt})),n.d(r,"mul",(function(){return Gt})),n.d(r,"div",(function(){return jt})),n.d(r,"dot",(function(){return Yt})),n.d(r,"scale",(function(){return Xt})),n.d(r,"normalize",(function(){return Ut})),n.d(r,"distance",(function(){return Zt})),n.d(r,"dist",(function(){return qt})),n.d(r,"distanceSquare",(function(){return Kt})),n.d(r,"distSquare",(function(){return Jt})),n.d(r,"negate",(function(){return Qt})),n.d(r,"lerp",(function(){return te})),n.d(r,"applyTransform",(function(){return ee})),n.d(r,"min",(function(){return ne})),n.d(r,"max",(function(){return ie}));var o={};n.r(o),n.d(o,"parse",(function(){return On})),n.d(o,"lift",(function(){return Nn})),n.d(o,"toHex",(function(){return zn})),n.d(o,"fastLerp",(function(){return Bn})),n.d(o,"fastMapToColor",(function(){return Vn})),n.d(o,"lerp",(function(){return Fn})),n.d(o,"mapToColor",(function(){return Hn})),n.d(o,"modifyHSL",(function(){return $n})),n.d(o,"modifyAlpha",(function(){return Wn})),n.d(o,"stringify",(function(){return Gn})),n.d(o,"lum",(function(){return jn})),n.d(o,"random",(function(){return Yn}));var a={};n.r(a),n.d(a,"create",(function(){return Fi})),n.d(a,"identity",(function(){return Hi})),n.d(a,"copy",(function(){return $i})),n.d(a,"mul",(function(){return Wi})),n.d(a,"translate",(function(){return Gi})),n.d(a,"rotate",(function(){return ji})),n.d(a,"scale",(function(){return Yi})),n.d(a,"invert",(function(){return Xi})),n.d(a,"clone",(function(){return Ui}));var s={};n.r(s),n.d(s,"init",(function(){return qr})),n.d(s,"dispose",(function(){return Kr})),n.d(s,"disposeAll",(function(){return Jr})),n.d(s,"getInstance",(function(){return Qr})),n.d(s,"registerPainter",(function(){return to})),n.d(s,"version",(function(){return eo}));var l={};n.r(l),n.d(l,"extendShape",(function(){return cd})),n.d(l,"extendPath",(function(){return dd})),n.d(l,"registerShape",(function(){return pd})),n.d(l,"getShapeClass",(function(){return fd})),n.d(l,"makePath",(function(){return gd})),n.d(l,"makeImage",(function(){return vd})),n.d(l,"mergePath",(function(){return yd})),n.d(l,"resizePath",(function(){return xd})),n.d(l,"subPixelOptimizeLine",(function(){return bd})),n.d(l,"subPixelOptimizeRect",(function(){return _d})),n.d(l,"subPixelOptimize",(function(){return wd})),n.d(l,"updateProps",(function(){return Md})),n.d(l,"initProps",(function(){return Id})),n.d(l,"removeElement",(function(){return Cd})),n.d(l,"removeElementWithFadeOut",(function(){return Ad})),n.d(l,"isElementRemoved",(function(){return Dd})),n.d(l,"getTransform",(function(){return kd})),n.d(l,"applyTransform",(function(){return Ld})),n.d(l,"transformDirection",(function(){return Pd})),n.d(l,"groupTransition",(function(){return Rd})),n.d(l,"clipPointsByRect",(function(){return Nd})),n.d(l,"clipRectByRect",(function(){return zd})),n.d(l,"createIcon",(function(){return Bd})),n.d(l,"linePolygonIntersect",(function(){return Vd})),n.d(l,"lineLineIntersect",(function(){return Fd})),n.d(l,"setTooltipConfig",(function(){return Wd})),n.d(l,"Group",(function(){return Wr})),n.d(l,"Image",(function(){return Yl})),n.d(l,"Text",(function(){return gu})),n.d(l,"Circle",(function(){return Jc})),n.d(l,"Ellipse",(function(){return eh})),n.d(l,"Sector",(function(){return yh})),n.d(l,"Ring",(function(){return _h})),n.d(l,"Polygon",(function(){return Ah})),n.d(l,"Polyline",(function(){return Lh})),n.d(l,"Rect",(function(){return eu})),n.d(l,"Line",(function(){return Rh})),n.d(l,"BezierCurve",(function(){return Fh})),n.d(l,"Arc",(function(){return Wh})),n.d(l,"IncrementalDisplayable",(function(){return ad})),n.d(l,"CompoundPath",(function(){return jh})),n.d(l,"LinearGradient",(function(){return Zh})),n.d(l,"RadialGradient",(function(){return Kh})),n.d(l,"BoundingRect",(function(){return mr})),n.d(l,"OrientedBoundingRect",(function(){return id})),n.d(l,"Point",(function(){return sr})),n.d(l,"Path",(function(){return Bl}));var u={};n.r(u),n.d(u,"createList",(function(){return IC})),n.d(u,"getLayoutRect",(function(){return zf})),n.d(u,"createDimensions",(function(){return jM})),n.d(u,"dataStack",(function(){return CC})),n.d(u,"createSymbol",(function(){return db})),n.d(u,"createScale",(function(){return TC})),n.d(u,"mixinAxisModelCommonMethods",(function(){return AC})),n.d(u,"getECData",(function(){return vu})),n.d(u,"enableHoverEmphasis",(function(){return vc})),n.d(u,"createTextStyle",(function(){return DC}));var c={};n.r(c),n.d(c,"linearMap",(function(){return oo})),n.d(c,"round",(function(){return so})),n.d(c,"asc",(function(){return lo})),n.d(c,"getPrecision",(function(){return uo})),n.d(c,"getPrecisionSafe",(function(){return co})),n.d(c,"getPixelPrecision",(function(){return ho})),n.d(c,"getPercentWithPrecision",(function(){return po})),n.d(c,"MAX_SAFE_INTEGER",(function(){return go})),n.d(c,"remRadian",(function(){return vo})),n.d(c,"isRadianAroundZero",(function(){return mo})),n.d(c,"parseDate",(function(){return xo})),n.d(c,"quantity",(function(){return bo})),n.d(c,"quantityExponent",(function(){return _o})),n.d(c,"nice",(function(){return wo})),n.d(c,"quantile",(function(){return So})),n.d(c,"reformIntervals",(function(){return Mo})),n.d(c,"isNumeric",(function(){return Co})),n.d(c,"numericToNumber",(function(){return Io}));var h={};n.r(h),n.d(h,"parse",(function(){return xo})),n.d(h,"format",(function(){return qp}));var d={};n.r(d),n.d(d,"extendShape",(function(){return cd})),n.d(d,"extendPath",(function(){return dd})),n.d(d,"makePath",(function(){return gd})),n.d(d,"makeImage",(function(){return vd})),n.d(d,"mergePath",(function(){return yd})),n.d(d,"resizePath",(function(){return xd})),n.d(d,"createIcon",(function(){return Bd})),n.d(d,"updateProps",(function(){return Md})),n.d(d,"initProps",(function(){return Id})),n.d(d,"getTransform",(function(){return kd})),n.d(d,"clipPointsByRect",(function(){return Nd})),n.d(d,"clipRectByRect",(function(){return zd})),n.d(d,"registerShape",(function(){return pd})),n.d(d,"getShapeClass",(function(){return fd})),n.d(d,"Group",(function(){return Wr})),n.d(d,"Image",(function(){return Yl})),n.d(d,"Text",(function(){return gu})),n.d(d,"Circle",(function(){return Jc})),n.d(d,"Ellipse",(function(){return eh})),n.d(d,"Sector",(function(){return yh})),n.d(d,"Ring",(function(){return _h})),n.d(d,"Polygon",(function(){return Ah})),n.d(d,"Polyline",(function(){return Lh})),n.d(d,"Rect",(function(){return eu})),n.d(d,"Line",(function(){return Rh})),n.d(d,"BezierCurve",(function(){return Fh})),n.d(d,"Arc",(function(){return Wh})),n.d(d,"IncrementalDisplayable",(function(){return ad})),n.d(d,"CompoundPath",(function(){return jh})),n.d(d,"LinearGradient",(function(){return Zh})),n.d(d,"RadialGradient",(function(){return Kh})),n.d(d,"BoundingRect",(function(){return mr}));var p={};n.r(p),n.d(p,"addCommas",(function(){return gf})),n.d(p,"toCamelCase",(function(){return vf})),n.d(p,"normalizeCssArray",(function(){return mf})),n.d(p,"encodeHTML",(function(){return bf})),n.d(p,"formatTpl",(function(){return Mf})),n.d(p,"getTooltipMarker",(function(){return Cf})),n.d(p,"formatTime",(function(){return Tf})),n.d(p,"capitalFirst",(function(){return Af})),n.d(p,"truncateText",(function(){return Na})),n.d(p,"getTextRect",(function(){return kC}));var f={};n.r(f),n.d(f,"map",(function(){return q})),n.d(f,"each",(function(){return Z})),n.d(f,"indexOf",(function(){return j})),n.d(f,"inherits",(function(){return Y})),n.d(f,"reduce",(function(){return K})),n.d(f,"filter",(function(){return J})),n.d(f,"bind",(function(){return nt})),n.d(f,"curry",(function(){return it})),n.d(f,"isArray",(function(){return rt})),n.d(f,"isString",(function(){return at})),n.d(f,"isObject",(function(){return ut})),n.d(f,"isFunction",(function(){return ot})),n.d(f,"extend",(function(){return $})),n.d(f,"defaults",(function(){return W})),n.d(f,"clone",(function(){return V})),n.d(f,"merge",(function(){return F}));
|
|
2
|
+
/*! *****************************************************************************
|
|
3
|
+
Copyright (c) Microsoft Corporation.
|
|
4
|
+
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
+
purpose with or without fee is hereby granted.
|
|
7
|
+
|
|
8
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
10
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
11
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
12
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
+
***************************************************************************** */
|
|
16
|
+
var g=function(t,e){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},g(t,e)};function v(t,e){function n(){this.constructor=t}g(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var m=function(){return m=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},m.apply(this,arguments)};Object.create;function y(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}Object.create;var x=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),b=function(){function t(){this.browser=new x,this.node=!1,this.wxa=!1,this.worker=!1,this.canvasSupported=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1}return t}(),_=new b;function w(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.canvasSupported=!!document.createElement("canvas").getContext,e.svgSupported="undefined"!==typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!==typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(_.wxa=!0,_.canvasSupported=!0,_.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?(_.worker=!0,_.canvasSupported=!0):"undefined"===typeof navigator?(_.node=!0,_.canvasSupported=!0,_.svgSupported=!0):w(navigator.userAgent,_);var S=_,M={"[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},C=Object.prototype.toString,T=Array.prototype,A=T.forEach,D=T.filter,k=T.slice,L=T.map,P=function(){}.constructor,O=P?P.prototype:null,E={};function R(t,e){E[t]=e}var N=2311;function z(){return N++}function B(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!==typeof console&&console.error.apply(console,t)}function V(t){if(null==t||"object"!==typeof t)return t;var e=t,n=C.call(t);if("[object Array]"===n){if(!Ct(t)){e=[];for(var i=0,r=t.length;i<r;i++)e[i]=V(t[i])}}else if(I[n]){if(!Ct(t)){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(i=0,r=t.length;i<r;i++)e[i]=V(t[i])}}}else if(!M[n]&&!Ct(t)&&!dt(t))for(var a in e={},t)t.hasOwnProperty(a)&&(e[a]=V(t[a]));return e}function F(t,e,n){if(!ut(e)||!ut(t))return n?V(e):t;for(var i in e)if(e.hasOwnProperty(i)){var r=t[i],o=e[i];!ut(o)||!ut(r)||rt(o)||rt(r)||dt(o)||dt(r)||ct(o)||ct(r)||Ct(o)||Ct(r)?!n&&i in t||(t[i]=V(e[i])):F(r,o,n)}return t}function H(t,e){for(var n=t[0],i=1,r=t.length;i<r;i++)n=F(n,t[i],e);return n}function $(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function W(t,e,n){for(var i=tt(e),r=0;r<i.length;r++){var o=i[r];(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}var G=function(){return E.createCanvas()};function j(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1}function Y(t,e){var n=t.prototype;function i(){}for(var r in i.prototype=e.prototype,t.prototype=new i,n)n.hasOwnProperty(r)&&(t.prototype[r]=n[r]);t.prototype.constructor=t,t.superClass=e}function X(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else W(t,e,n)}function U(t){return!!t&&("string"!==typeof t&&"number"===typeof t.length)}function Z(t,e,n){if(t&&e)if(t.forEach&&t.forEach===A)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function q(t,e,n){if(!t)return[];if(!e)return bt(t);if(t.map&&t.map===L)return t.map(e,n);for(var i=[],r=0,o=t.length;r<o;r++)i.push(e.call(n,t[r],r,t));return i}function K(t,e,n,i){if(t&&e){for(var r=0,o=t.length;r<o;r++)n=e.call(i,n,t[r],r,t);return n}}function J(t,e,n){if(!t)return[];if(!e)return bt(t);if(t.filter&&t.filter===D)return t.filter(e,n);for(var i=[],r=0,o=t.length;r<o;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function Q(t,e,n){if(t&&e)for(var i=0,r=t.length;i<r;i++)if(e.call(n,t[i],i,t))return t[i]}function tt(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}function et(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(k.call(arguments)))}}E.createCanvas=function(){return document.createElement("canvas")};var nt=O&&ot(O.bind)?O.call.bind(O.bind):et;function it(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(k.call(arguments)))}}function rt(t){return Array.isArray?Array.isArray(t):"[object Array]"===C.call(t)}function ot(t){return"function"===typeof t}function at(t){return"string"===typeof t}function st(t){return"[object String]"===C.call(t)}function lt(t){return"number"===typeof t}function ut(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function ct(t){return!!M[C.call(t)]}function ht(t){return!!I[C.call(t)]}function dt(t){return"object"===typeof t&&"number"===typeof t.nodeType&&"object"===typeof t.ownerDocument}function pt(t){return null!=t.colorStops}function ft(t){return null!=t.image}function gt(t){return"[object RegExp]"===C.call(t)}function vt(t){return t!==t}function mt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;n<i;n++)if(null!=t[n])return t[n]}function yt(t,e){return null!=t?t:e}function xt(t,e,n){return null!=t?t:null!=e?e:n}function bt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return k.apply(t,e)}function _t(t){if("number"===typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function wt(t,e){if(!t)throw new Error(e)}function St(t){return null==t?null:"function"===typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Mt="__ec_primitive__";function It(t){t[Mt]=!0}function Ct(t){return t[Mt]}var Tt=function(){function t(e){this.data={};var n=rt(e);this.data={};var i=this;function r(t,e){n?i.set(t,e):i.set(e,t)}e instanceof t?e.each(r):e&&Z(e,r)}return t.prototype.get=function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},t.prototype.set=function(t,e){return this.data[t]=e},t.prototype.each=function(t,e){for(var n in this.data)this.data.hasOwnProperty(n)&&t.call(e,this.data[n],n)},t.prototype.keys=function(){return tt(this.data)},t.prototype.removeKey=function(t){delete this.data[t]},t}();function At(t){return new Tt(t)}function Dt(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];var r=t.length;for(i=0;i<e.length;i++)n[i+r]=e[i];return n}function kt(t,e){var n;if(Object.create)n=Object.create(t);else{var i=function(){};i.prototype=t,n=new i}return e&&$(n,e),n}function Lt(t,e){return t.hasOwnProperty(e)}function Pt(){}function Ot(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function Et(t,e){return t[0]=e[0],t[1]=e[1],t}function Rt(t){return[t[0],t[1]]}function Nt(t,e,n){return t[0]=e,t[1]=n,t}function zt(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function Bt(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function Vt(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function Ft(t){return Math.sqrt($t(t))}var Ht=Ft;function $t(t){return t[0]*t[0]+t[1]*t[1]}var Wt=$t;function Gt(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function jt(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function Yt(t,e){return t[0]*e[0]+t[1]*e[1]}function Xt(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function Ut(t,e){var n=Ft(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function Zt(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var qt=Zt;function Kt(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Jt=Kt;function Qt(t,e){return t[0]=-e[0],t[1]=-e[1],t}function te(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function ee(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function ne(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function ie(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var re=function(){function t(t,e){this.target=t,this.topTarget=e&&e.topTarget}return t}(),oe=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){var e=t.target;while(e&&!e.draggable)e=e.parent;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new re(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(r,o,t),this.handler.dispatchToElement(new re(e,t),"drag",t.event);var a=this.handler.findHover(n,i,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new re(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new re(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new re(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new re(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),ae=oe,se=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"===typeof e&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a<r[t].length;a++)if(r[t][a].h===n)return this;var s={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=r[t].length-1,u=r[t][l];return u&&u.callAtLast?r[t].splice(l,0,s):r[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],r=0,o=n[t].length;r<o;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=i.length,s=0;s<a;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e);break}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){if(!this._$handlers)return this;var e=this._$handlers[t],n=this._$eventProcessor;if(e)for(var i=arguments,r=i.length,o=i[r-1],a=e.length,s=0;s<a;s++){var l=e[s];if(!n||!n.filter||null==l.query||n.filter(t,l.query))switch(r){case 0:l.h.call(o);break;case 1:l.h.call(o,i[0]);break;case 2:l.h.call(o,i[0],i[1]);break;default:l.h.apply(o,i.slice(1,r-1));break}}return n&&n.afterTrigger&&n.afterTrigger(t),this},t}(),le=se,ue=Math.log(2);function ce(t,e,n,i,r,o){var a=i+"-"+r,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~r)/ue);return t[n][l]}var u=i|1<<n,c=n+1;while(i&1<<c)c++;for(var h=0,d=0,p=0;d<s;d++){var f=1<<d;f&r||(h+=(p%2?-1:1)*t[n][d]*ce(t,e-1,c,u,r|f,o),p++)}return o[a]=h,h}function he(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},r=ce(n,8,0,0,0,i);if(0!==r){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*ce(n,7,0===a?1:0,1<<a,1<<s,i)/r*e[a];return function(t,e,n){var i=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/i,t[1]=(e*o[3]+n*o[4]+o[5])/i}}}var de="___zrEVENTSAVED",pe=[];function fe(t,e,n,i,r){return ge(pe,e,i,r,!0)&&ge(t,n,pe[0],pe[1])}function ge(t,e,n,i,r){if(e.getBoundingClientRect&&S.domSupported&&!ye(e)){var o=e[de]||(e[de]={}),a=ve(e,o),s=me(a,o,r);if(s)return s(t,n,i),!0}return!1}function ve(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}function me(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),h=2*u,d=c.left,p=c.top;a.push(d,p),l=l&&o&&d===o[h]&&p===o[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?he(s,a):he(a,s))}function ye(t){return"CANVAS"===t.nodeName.toUpperCase()}var xe="undefined"!==typeof window&&!!window.addEventListener,be=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,_e=[];function we(t,e,n,i){return n=n||{},i||!S.canvasSupported?Se(t,e,n):S.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):Se(t,e,n),n}function Se(t,e,n){if(S.domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(ye(t)){var o=t.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(ge(_e,t,i,r))return n.zrX=_e[0],void(n.zrY=_e[1])}n.zrX=n.zrY=0}function Me(t){return t||window.event}function Ie(t,e,n){if(e=Me(e),null!=e.zrX)return e;var i=e.type,r=i&&i.indexOf("touch")>=0;if(r){var o="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];o&&we(t,o,e,n)}else{we(t,e,e,n);var a=Ce(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&be.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function Ce(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;if(null==n||null==i)return e;var r=0!==i?Math.abs(i):Math.abs(n),o=i>0?-1:i<0?1:n>0?-1:1;return 3*r*o}function Te(t,e,n,i){xe?t.addEventListener(e,n,i):t.attachEvent("on"+e,n)}function Ae(t,e,n,i){xe?t.removeEventListener(e,n,i):t.detachEvent("on"+e,n)}var De=xe?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};function ke(t){return 2===t.which||3===t.which}var Le=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o<a;o++){var s=i[o],l=we(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},t.prototype._recognize=function(t){for(var e in Ee)if(Ee.hasOwnProperty(e)){var n=Ee[e](this._track,t);if(n)return n}},t}();function Pe(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function Oe(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var Ee={pinch:function(t,e){var n=t.length;if(n){var i=(t[n-1]||{}).points,r=(t[n-2]||{}).points||i;if(r&&r.length>1&&i&&i.length>1){var o=Pe(i)/Pe(r);!isFinite(o)&&(o=1),e.pinchScale=o;var a=Oe(i);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}},Re="silent";function Ne(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:ze}}function ze(){De(this.event)}var Be=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return v(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(le),Ve=function(){function t(t,e){this.x=t,this.y=e}return t}(),Fe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],He=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o._hovered=new Ve(0,0),o.storage=e,o.painter=n,o.painterRoot=r,i=i||new Be,o.proxy=null,o.setHandlerProxy(i),o._draggingMgr=new ae(o),o}return v(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(Z(Fe,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=We(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(r=this.findHover(r.x,r.y),o=r.target);var a=this._hovered=i?new Ve(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Ve(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){t=t||{};var i=t.target;if(!i||!i.silent){var r="on"+e,o=Ne(e,t,n);while(i)if(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,o.cancelBubble)break;o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"===typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){for(var i=this.storage.getDisplayList(),r=new Ve(t,e),o=i.length-1;o>=0;o--){var a=void 0;if(i[o]!==n&&!i[o].ignore&&(a=$e(i[o],t,e))&&(!r.topTarget&&(r.topTarget=i[o]),a!==Re)){r.target=i[o];break}}return r},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new Le);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var o=new Ve;o.target=i.target,this.dispatchToElement(o,r,i.event)}},e}(le);function $e(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){var i=t,r=void 0,o=!1;while(i){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1;i.silent&&(r=!0)}var s=i.__hostTarget;i=s||i.parent}return!r||Re}return!1}function We(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}Z(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){He.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=We(this,r,o);if("mouseup"===t&&a||(n=this.findHover(r,o),i=n.target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||qt(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));var Ge=He,je=32,Ye=7;function Xe(t){var e=0;while(t>=je)e|=1&t,t>>=1;return t+e}function Ue(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){while(r<n&&i(t[r],t[r-1])<0)r++;Ze(t,e,r)}else while(r<n&&i(t[r],t[r-1])>=0)r++;return r-e}function Ze(t,e,n){n--;while(e<n){var i=t[e];t[e++]=t[n],t[n--]=i}}function qe(t,e,n,i,r){for(i===e&&i++;i<n;i++){var o,a=t[i],s=e,l=i;while(s<l)o=s+l>>>1,r(a,t[o])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:while(u>0)t[s+u]=t[s+u-1],u--}t[s]=a}}function Ke(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){s=i-r;while(l<s&&o(t,e[n+r+l])>0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{s=r+1;while(l<s&&o(t,e[n+r-l])<=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}a++;while(a<l){var c=a+(l-a>>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function Je(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){s=r+1;while(l<s&&o(t,e[n+r-l])<0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{s=i-r;while(l<s&&o(t,e[n+r+l])>=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}a++;while(a<l){var c=a+(l-a>>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function Qe(t,e){var n,i,r=Ye,o=0,a=0;o=t.length;var s=[];function l(t,e){n[a]=t,i[a]=e,a+=1}function u(){while(a>1){var t=a-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]<i[t+1]&&t--;else if(i[t]>i[t+1])break;h(t)}}function c(){while(a>1){var t=a-2;t>0&&i[t-1]<i[t+1]&&t--,h(t)}}function h(r){var o=n[r],s=i[r],l=n[r+1],u=i[r+1];i[r]=s+u,r===a-3&&(n[r+1]=n[r+2],i[r+1]=i[r+2]),a--;var c=Je(t[l],t,o,s,0,e);o+=c,s-=c,0!==s&&(u=Ke(t[o+s-1],t,l,u,u-1,e),0!==u&&(s<=u?d(o,s,l,u):p(o,s,l,u)))}function d(n,i,o,a){var l=0;for(l=0;l<i;l++)s[l]=t[n+l];var u=0,c=o,h=n;if(t[h++]=t[c++],0!==--a)if(1!==i){var d,p,f,g=r;while(1){d=0,p=0,f=!1;do{if(e(t[c],s[u])<0){if(t[h++]=t[c++],p++,d=0,0===--a){f=!0;break}}else if(t[h++]=s[u++],d++,p=0,1===--i){f=!0;break}}while((d|p)<g);if(f)break;do{if(d=Je(t[c],s,u,i,0,e),0!==d){for(l=0;l<d;l++)t[h+l]=s[u+l];if(h+=d,u+=d,i-=d,i<=1){f=!0;break}}if(t[h++]=t[c++],0===--a){f=!0;break}if(p=Ke(s[u],t,c,a,0,e),0!==p){for(l=0;l<p;l++)t[h+l]=t[c+l];if(h+=p,c+=p,a-=p,0===a){f=!0;break}}if(t[h++]=s[u++],1===--i){f=!0;break}g--}while(d>=Ye||p>=Ye);if(f)break;g<0&&(g=0),g+=2}if(r=g,r<1&&(r=1),1===i){for(l=0;l<a;l++)t[h+l]=t[c+l];t[h+a]=s[u]}else{if(0===i)throw new Error;for(l=0;l<i;l++)t[h+l]=s[u+l]}}else{for(l=0;l<a;l++)t[h+l]=t[c+l];t[h+a]=s[u]}else for(l=0;l<i;l++)t[h+l]=s[u+l]}function p(n,i,o,a){var l=0;for(l=0;l<a;l++)s[l]=t[o+l];var u=n+i-1,c=a-1,h=o+a-1,d=0,p=0;if(t[h--]=t[u--],0!==--i)if(1!==a){var f=r;while(1){var g=0,v=0,m=!1;do{if(e(s[c],t[u])<0){if(t[h--]=t[u--],g++,v=0,0===--i){m=!0;break}}else if(t[h--]=s[c--],v++,g=0,1===--a){m=!0;break}}while((g|v)<f);if(m)break;do{if(g=i-Je(s[c],t,n,i,i-1,e),0!==g){for(h-=g,u-=g,i-=g,p=h+1,d=u+1,l=g-1;l>=0;l--)t[p+l]=t[d+l];if(0===i){m=!0;break}}if(t[h--]=s[c--],1===--a){m=!0;break}if(v=a-Ke(t[u],s,0,a,a-1,e),0!==v){for(h-=v,c-=v,a-=v,p=h+1,d=c+1,l=0;l<v;l++)t[p+l]=s[d+l];if(a<=1){m=!0;break}}if(t[h--]=t[u--],0===--i){m=!0;break}f--}while(g>=Ye||v>=Ye);if(m)break;f<0&&(f=0),f+=2}if(r=f,r<1&&(r=1),1===a){for(h-=i,u-=i,p=h+1,d=u+1,l=i-1;l>=0;l--)t[p+l]=t[d+l];t[h]=s[c]}else{if(0===a)throw new Error;for(d=h-(a-1),l=0;l<a;l++)t[d+l]=s[l]}}else{for(h-=i,u-=i,p=h+1,d=u+1,l=i-1;l>=0;l--)t[p+l]=t[d+l];t[h]=s[c]}else for(d=h-(a-1),l=0;l<a;l++)t[d+l]=s[l]}return o<120?5:o<1542?10:o<119151?19:40,n=[],i=[],{mergeRuns:u,forceMergeRuns:c,pushRun:l}}function tn(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(r<2)){var o=0;if(r<je)return o=Ue(t,n,i,e),void qe(t,n,i,n+o,e);var a=Qe(t,e),s=Xe(r);do{if(o=Ue(t,n,i,e),o<s){var l=r;l>s&&(l=s),qe(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}var en=1,nn=2,rn=4,on=!1;function an(){on||(on=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function sn(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var ln,un=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=sn}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,r=e.length;i<r;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,S.canvasSupported&&tn(n,sn)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e=e?e.slice():[];var r=i,o=t;while(r)r.parent=o,r.updateTransform(),e.push(r),o=r,r=r.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=en),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else{var u=t;e&&e.length?u.__clipPaths=e:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(an(),u.z=0),isNaN(u.z2)&&(an(),u.z2=0),isNaN(u.zlevel)&&(an(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,n);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var i=j(this._roots,t);i>=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),cn=un;ln="undefined"!==typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var hn=ln,dn={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i))},elasticOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/i)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-dn.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*dn.bounceIn(2*t):.5*dn.bounceOut(2*t-1)+.5}},pn=dn,fn=function(){function t(t){this._initialized=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=null!=t.loop&&t.loop,this.gap=t.gap||0,this.easing=t.easing||"linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart}return t.prototype.step=function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),!this._paused){var n=(t-this._startTime-this._pausedTime)/this._life;n<0&&(n=0),n=Math.min(n,1);var i=this.easing,r="string"===typeof i?pn[i]:i,o="function"===typeof r?r(n):n;if(this.onframe&&this.onframe(o),1===n){if(!this.loop)return!0;this._restart(t),this.onrestart&&this.onrestart()}return!1}this._pausedTime+=e},t.prototype._restart=function(t){var e=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-e+this.gap,this._pausedTime=0},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t}(),gn=fn,vn=function(){function t(t){this.value=t}return t}(),mn=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new vn(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),yn=function(){function t(t){this._list=new mn,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new vn(e),a.key=t,n.insertEntry(a),i[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),xn=yn,bn={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 _n(t){return t=Math.round(t),t<0?0:t>255?255:t}function wn(t){return t=Math.round(t),t<0?0:t>360?360:t}function Sn(t){return t<0?0:t>1?1:t}function Mn(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?_n(parseFloat(e)/100*255):_n(parseInt(e,10))}function In(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?Sn(parseFloat(e)/100):Sn(parseFloat(e))}function Cn(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function Tn(t,e,n){return t+(e-t)*n}function An(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function Dn(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var kn=new xn(20),Ln=null;function Pn(t,e){Ln&&Dn(Ln,e),Ln=kn.put(t,Ln||e.slice())}function On(t,e){if(t){e=e||[];var n=kn.get(t);if(n)return Dn(e,n);t+="";var i=t.replace(/ /g,"").toLowerCase();if(i in bn)return Dn(e,bn[i]),Pn(t,e),e;var r=i.length;if("#"!==i.charAt(0)){var o=i.indexOf("("),a=i.indexOf(")");if(-1!==o&&a+1===r){var s=i.substr(0,o),l=i.substr(o+1,a-(o+1)).split(","),u=1;switch(s){case"rgba":if(4!==l.length)return 3===l.length?An(e,+l[0],+l[1],+l[2],1):An(e,0,0,0,1);u=In(l.pop());case"rgb":return 3!==l.length?void An(e,0,0,0,1):(An(e,Mn(l[0]),Mn(l[1]),Mn(l[2]),u),Pn(t,e),e);case"hsla":return 4!==l.length?void An(e,0,0,0,1):(l[3]=In(l[3]),En(l,e),Pn(t,e),e);case"hsl":return 3!==l.length?void An(e,0,0,0,1):(En(l,e),Pn(t,e),e);default:return}}An(e,0,0,0,1)}else{if(4===r||5===r){var c=parseInt(i.slice(1,4),16);return c>=0&&c<=4095?(An(e,(3840&c)>>4|(3840&c)>>8,240&c|(240&c)>>4,15&c|(15&c)<<4,5===r?parseInt(i.slice(4),16)/15:1),Pn(t,e),e):void An(e,0,0,0,1)}if(7===r||9===r){c=parseInt(i.slice(1,7),16);return c>=0&&c<=16777215?(An(e,(16711680&c)>>16,(65280&c)>>8,255&c,9===r?parseInt(i.slice(7),16)/255:1),Pn(t,e),e):void An(e,0,0,0,1)}}}}function En(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=In(t[1]),r=In(t[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return e=e||[],An(e,_n(255*Cn(a,o,n+1/3)),_n(255*Cn(a,o,n)),_n(255*Cn(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Rn(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-i)/6+l/2)/l,h=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;i===s?e=d-h:r===s?e=1/3+c-d:o===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,n,u];return null!=t[3]&&p.push(t[3]),p}}function Nn(t,e){var n=On(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return Gn(n,4===n.length?"rgba":"rgb")}}function zn(t){var e=On(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function Bn(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=e[r],s=e[o],l=i-r;return n[0]=_n(Tn(a[0],s[0],l)),n[1]=_n(Tn(a[1],s[1],l)),n[2]=_n(Tn(a[2],s[2],l)),n[3]=Sn(Tn(a[3],s[3],l)),n}}var Vn=Bn;function Fn(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=On(e[r]),s=On(e[o]),l=i-r,u=Gn([_n(Tn(a[0],s[0],l)),_n(Tn(a[1],s[1],l)),_n(Tn(a[2],s[2],l)),Sn(Tn(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}var Hn=Fn;function $n(t,e,n,i){var r=On(t);if(t)return r=Rn(r),null!=e&&(r[0]=wn(e)),null!=n&&(r[1]=In(n)),null!=i&&(r[2]=In(i)),Gn(En(r),"rgba")}function Wn(t,e){var n=On(t);if(n&&null!=e)return n[3]=Sn(e),Gn(n,"rgba")}function Gn(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function jn(t,e){var n=On(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function Yn(){var t=Math.round(255*Math.random()),e=Math.round(255*Math.random()),n=Math.round(255*Math.random());return"rgb("+t+","+e+","+n+")"}var Xn=Array.prototype.slice;function Un(t,e,n){return(e-t)*n+t}function Zn(t,e,n){return n>.5?e:t}function qn(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=Un(e[o],n[o],i)}function Kn(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=Un(e[a][s],n[a][s],i)}}function Jn(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=e[o]+n[o]*i;return t}function Qn(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function ti(t,e,n){var i=t,r=e;if(i.push&&r.push){var o=i.length,a=r.length;if(o!==a){var s=o>a;if(s)i.length=a;else for(var l=o;l<a;l++)i.push(1===n?r[l]:Xn.call(r[l]))}var u=i[0]&&i[0].length;for(l=0;l<i.length;l++)if(1===n)isNaN(i[l])&&(i[l]=r[l]);else for(var c=0;c<u;c++)isNaN(i[l][c])&&(i[l][c]=r[l][c])}}function ei(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}function ni(t,e,n,i,r,o,a){var s=.5*(n-t),l=.5*(i-e);return(2*(e-n)+s+l)*a+(-3*(e-n)-2*s-l)*o+s*r+e}function ii(t,e,n,i,r,o,a,s){for(var l=e.length,u=0;u<l;u++)t[u]=ni(e[u],n[u],i[u],r[u],o,a,s)}function ri(t,e,n,i,r,o,a,s){for(var l=e.length,u=e[0].length,c=0;c<l;c++){t[c]||(t[1]=[]);for(var h=0;h<u;h++)t[c][h]=ni(e[c][h],n[c][h],i[c][h],r[c][h],o,a,s)}}function oi(t){if(U(t)){var e=t.length;if(U(t[0])){for(var n=[],i=0;i<e;i++)n.push(Xn.call(t[i]));return n}return Xn.call(t)}return t}function ai(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function si(t){return U(t&&t[0])?2:1}var li=[0,0,0,0],ui=function(){function t(t){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=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return!this._isAllValueEqual&&this.keyframes.length>=2&&this.interpolable},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e){t>=this.maxTime?this.maxTime=t:this._needsSort=!0;var n=this.keyframes,i=n.length;if(this.interpolable)if(U(e)){var r=si(e);if(i>0&&this.arrDim!==r)return void(this.interpolable=!1);if(1===r&&"number"!==typeof e[0]||2===r&&"number"!==typeof e[0][0])return void(this.interpolable=!1);if(i>0){var o=n[i-1];this._isAllValueEqual&&(1===r&&ei(e,o.value)||(this._isAllValueEqual=!1))}this.arrDim=r}else{if(this.arrDim>0)return void(this.interpolable=!1);if("string"===typeof e){var a=On(e);a?(e=a,this.isValueColor=!0):this.interpolable=!1}else if("number"!==typeof e||isNaN(e))return void(this.interpolable=!1);if(this._isAllValueEqual&&i>0){o=n[i-1];(this.isValueColor&&!ei(o.value,e)||o.value!==e)&&(this._isAllValueEqual=!1)}}var s={time:t,value:e,percent:0};return this.keyframes.push(s),s},t.prototype.prepare=function(t){var e=this.keyframes;this._needsSort&&e.sort((function(t,e){return t.time-e.time}));for(var n=this.arrDim,i=e.length,r=e[i-1],o=0;o<i;o++)e[o].percent=e[o].time/this.maxTime,n>0&&o!==i-1&&ti(e[o].value,r.value,n);if(t&&this.needsAnimate()&&t.needsAnimate()&&n===t.arrDim&&this.isValueColor===t.isValueColor&&!t._finished){this._additiveTrack=t;var a=e[0].value;for(o=0;o<i;o++)0===n?this.isValueColor?e[o].additiveValue=Jn([],e[o].value,a,-1):e[o].additiveValue=e[o].value-a:1===n?e[o].additiveValue=Jn([],e[o].value,a,-1):2===n&&(e[o].additiveValue=Qn([],e[o].value,a,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i=null!=this._additiveTrack,r=i?"additiveValue":"value",o=this.keyframes,a=this.keyframes.length,s=this.propName,l=this.arrDim,u=this.isValueColor;if(e<0)n=0;else if(e<this._lastFramePercent){var c=Math.min(this._lastFrame+1,a-1);for(n=c;n>=0;n--)if(o[n].percent<=e)break;n=Math.min(n,a-2)}else{for(n=this._lastFrame;n<a;n++)if(o[n].percent>e)break;n=Math.min(n-1,a-2)}var h=o[n+1],d=o[n];if(d&&h){this._lastFrame=n,this._lastFramePercent=e;var p=h.percent-d.percent;if(0!==p){var f=(e-d.percent)/p,g=i?this._additiveValue:u?li:t[s];if((l>0||u)&&!g&&(g=this._additiveValue=[]),this.useSpline){var v=o[n][r],m=o[0===n?n:n-1][r],y=o[n>a-2?a-1:n+1][r],x=o[n>a-3?a-1:n+2][r];if(l>0)1===l?ii(g,m,v,y,x,f,f*f,f*f*f):ri(g,m,v,y,x,f,f*f,f*f*f);else if(u)ii(g,m,v,y,x,f,f*f,f*f*f),i||(t[s]=ai(g));else{var b=void 0;b=this.interpolable?ni(m,v,y,x,f,f*f,f*f*f):y,i?this._additiveValue=b:t[s]=b}}else if(l>0)1===l?qn(g,d[r],h[r],f):Kn(g,d[r],h[r],f);else if(u)qn(g,d[r],h[r],f),i||(t[s]=ai(g));else{b=void 0;b=this.interpolable?Un(d[r],h[r],f):Zn(d[r],h[r],f),i?this._additiveValue=b:t[s]=b}i&&this._addToTarget(t)}}}},t.prototype._addToTarget=function(t){var e=this.arrDim,n=this.propName,i=this._additiveValue;0===e?this.isValueColor?(On(t[n],li),Jn(li,li,i,1),t[n]=ai(li)):t[n]=t[n]+i:1===e?Jn(t[n],t[n],i,1):2===e&&Qn(t[n],t[n],i,1)},t}(),ci=function(){function t(t,e,n){this._tracks={},this._trackKeys=[],this._delay=0,this._maxTime=0,this._paused=!1,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n?B("Can' use additive animation on looped animation."):this._additiveAnimators=n}return t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e){return this.whenWithKeys(t,e,tt(e))},t.prototype.whenWithKeys=function(t,e,n){for(var i=this._tracks,r=0;r<n.length;r++){var o=n[r],a=i[o];if(!a){a=i[o]=new ui(o);var s=void 0,l=this._getAdditiveTrack(o);if(l){var u=l.keyframes[l.keyframes.length-1];s=u&&u.value,l.isValueColor&&s&&(s=ai(s))}else s=this._target[o];if(null==s)continue;0!==t&&a.addKeyframe(0,oi(s)),this._trackKeys.push(o)}a.addKeyframe(t,oi(e[o]))}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneList;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedList;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var r=n[i].getTrack(t);r&&(e=r)}return e},t.prototype.start=function(t,e){if(!(this._started>0)){this._started=1;for(var n=this,i=[],r=0;r<this._trackKeys.length;r++){var o=this._trackKeys[r],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes;if(a.prepare(s),a.needsAnimate())i.push(a);else if(!a.interpolable){var u=l[l.length-1];u&&(n._target[a.propName]=u.value)}}if(i.length||e){var c=new gn({life:this._maxTime,loop:this._loop,delay:this._delay,onframe:function(t){n._started=2;var e=n._additiveAnimators;if(e){for(var r=!1,o=0;o<e.length;o++)if(e[o]._clip){r=!0;break}r||(n._additiveAnimators=null)}for(o=0;o<i.length;o++)i[o].step(n._target,t);var a=n._onframeList;if(a)for(o=0;o<a.length;o++)a[o](n._target,t)},ondestroy:function(){n._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&"spline"!==t&&(c.easing=t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeList||(this._onframeList=[]),this._onframeList.push(t)),this},t.prototype.done=function(t){return t&&(this._doneList||(this._doneList=[]),this._doneList.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedList||(this._abortedList=[]),this._abortedList.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,r=0;r<t.length;r++){var o=n[t[r]];o&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(r=0;r<i.length;r++)if(!n[i[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveFinalToTarget=function(t,e){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var i=e[n],r=this._tracks[i];if(r&&!r.isFinished()){var o=r.keyframes,a=o[o.length-1];if(a){var s=oi(a.value);r.isValueColor&&(s=ai(s)),t[i]=s}}}}},t.prototype.__changeFinalValue=function(t,e){e=e||tt(t);for(var n=0;n<e.length;n++){var i=e[n],r=this._tracks[i];if(r){var o=r.keyframes;if(o.length>1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(r.getAdditiveTrack())}}}},t}(),hi=ci,di=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n.onframe=e.onframe||function(){},n}return v(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._clipsHead?(this._clipsTail.next=t,t.prev=this._clipsTail,t.next=null,this._clipsTail=t):this._clipsHead=this._clipsTail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._clipsHead=n,n?n.prev=e:this._clipsTail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){var e=(new Date).getTime()-this._pausedTime,n=e-this._time,i=this._clipsHead;while(i){var r=i.next,o=i.step(e,n);o?(i.ondestroy&&i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.onframe(n),this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;function e(){t._running&&(hn(e),!t._paused&&t.update())}this._running=!0,hn(e)},e.prototype.start=function(){this._running||(this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){var t=this._clipsHead;while(t){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._clipsHead=this._clipsTail=null},e.prototype.isFinished=function(){return null==this._clipsHead},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new hi(t,e.loop);return this.addAnimator(n),n},e}(le),pi=di,fi=300,gi=S.domSupported,vi=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=q(t,(function(t){var e=t.replace("mouse","pointer");return n.hasOwnProperty(e)?e:t}));return{mouse:t,touch:e,pointer:i}}(),mi={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},yi=!1;function xi(t){var e=t.pointerType;return"pen"===e||"touch"===e}function bi(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}function _i(t){t&&(t.zrByTouch=!0)}function wi(t,e){return Ie(t.dom,new Mi(t,e),!0)}function Si(t,e){var n=e,i=!1;while(n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot))n=n.parentNode;return i}var Mi=function(){function t(t,e){this.stopPropagation=Pt,this.stopImmediatePropagation=Pt,this.preventDefault=Pt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return t}(),Ii={mousedown:function(t){t=Ie(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Ie(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=Ie(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Ie(this.dom,t);var e=t.toElement||t.relatedTarget;Si(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){yi=!0,t=Ie(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){yi||(t=Ie(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Ie(this.dom,t),_i(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Ii.mousemove.call(this,t),Ii.mousedown.call(this,t)},touchmove:function(t){t=Ie(this.dom,t),_i(t),this.handler.processGesture(t,"change"),Ii.mousemove.call(this,t)},touchend:function(t){t=Ie(this.dom,t),_i(t),this.handler.processGesture(t,"end"),Ii.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<fi&&Ii.click.call(this,t)},pointerdown:function(t){Ii.mousedown.call(this,t)},pointermove:function(t){xi(t)||Ii.mousemove.call(this,t)},pointerup:function(t){Ii.mouseup.call(this,t)},pointerout:function(t){xi(t)||Ii.mouseout.call(this,t)}};Z(["click","dblclick","contextmenu"],(function(t){Ii[t]=function(e){e=Ie(this.dom,e),this.trigger(t,e)}}));var Ci={pointermove:function(t){xi(t)||Ci.mousemove.call(this,t)},pointerup:function(t){Ci.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function Ti(t,e){var n=e.domHandlers;S.pointerEventsSupported?Z(vi.pointer,(function(i){Di(e,i,(function(e){n[i].call(t,e)}))})):(S.touchEventsSupported&&Z(vi.touch,(function(i){Di(e,i,(function(r){n[i].call(t,r),bi(e)}))})),Z(vi.mouse,(function(i){Di(e,i,(function(r){r=Me(r),e.touching||n[i].call(t,r)}))})))}function Ai(t,e){function n(n){function i(i){i=Me(i),Si(t,i.target)||(i=wi(t,i),e.domHandlers[n].call(t,i))}Di(e,n,i,{capture:!0})}S.pointerEventsSupported?Z(mi.pointer,n):S.touchEventsSupported||Z(mi.mouse,n)}function Di(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,Te(t.domTarget,e,n,i)}function ki(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&Ae(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var Li=function(){function t(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return t}(),Pi=function(t){function e(e,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new Li(e,Ii),gi&&(i._globalHandlerScope=new Li(document,Ci)),Ti(i,i._localHandlerScope),i}return v(e,t),e.prototype.dispose=function(){ki(this._localHandlerScope),gi&&ki(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,gi&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?Ai(this,e):ki(e)}},e}(le),Oi=Pi,Ei=1;"undefined"!==typeof window&&(Ei=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Ri=Ei,Ni=.4,zi="#333",Bi="#ccc",Vi="#eee";function Fi(){return[1,0,0,1,0,0]}function Hi(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function $i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Wi(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function Gi(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function ji(t,e,n){var i=e[0],r=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(n),c=Math.cos(n);return t[0]=i*c+a*u,t[1]=-i*u+a*c,t[2]=r*c+s*u,t[3]=-r*u+c*s,t[4]=c*o+u*l,t[5]=c*l-u*o,t}function Yi(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function Xi(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}function Ui(t){var e=Fi();return $i(e,t),e}var Zi=Hi,qi=5e-5;function Ki(t){return t>qi||t<-qi}var Ji,Qi,tr=[],er=[],nr=Fi(),ir=Math.abs,rr=function(){function t(){}return t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return Ki(this.rotation)||Ki(this.x)||Ki(this.y)||Ki(this.scaleX-1)||Ki(this.scaleY-1)},t.prototype.updateTransform=function(){var t=this.parent,e=t&&t.transform,n=this.needLocalTransform(),i=this.transform;n||e?(i=i||Fi(),n?this.getLocalTransform(i):Zi(i),e&&(n?Wi(i,t.transform,i):$i(i,t.transform)),this.transform=i,this._resolveGlobalScaleRatio(i)):i&&Zi(i)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(tr);var n=tr[0]<0?-1:1,i=tr[1]<0?-1:1,r=((tr[0]-n)*e+n)/tr[0]||0,o=((tr[1]-i)*e+i)/tr[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Fi(),Xi(this.invTransform,t)},t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.getComputedTransform=function(){var t=this,e=[];while(t)e.push(t),t=t.parent;while(t=e.pop())t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(Wi(er,t.invTransform,e),e=er);var n=this.originX,i=this.originY;(n||i)&&(nr[4]=n,nr[5]=i,Wi(er,e,nr),er[4]-=n,er[5]-=i,e=er),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&ee(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&ee(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&ir(t[0]-1)>1e-10&&ir(t[3]-1)>1e-10?Math.sqrt(ir(t[0]*t[3]-t[2]*t[1])):1},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.rotation||0,s=t.x,l=t.y,u=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;return n||i?(e[4]=-n*r-u*i*o,e[5]=-i*o-c*n*r):e[4]=e[5]=0,e[0]=r,e[3]=o,e[1]=c*r,e[2]=u*o,a&&ji(e,e,a),e[4]+=n+s,e[5]+=i+l,e},t.initDefaultProps=function(){var e=t.prototype;e.x=0,e.y=0,e.scaleX=1,e.scaleY=1,e.originX=0,e.originY=0,e.skewX=0,e.skewY=0,e.rotation=0,e.globalScaleRatio=1}(),t}(),or=rr,ar=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}(),sr=ar,lr=Math.min,ur=Math.max,cr=new sr,hr=new sr,dr=new sr,pr=new sr,fr=new sr,gr=new sr,vr=function(){function t(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=lr(t.x,this.x),n=lr(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ur(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=ur(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=Fi();return Gi(r,r,[-e.x,-e.y]),Yi(r,r,[n,i]),Gi(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,c=e.y,h=e.y+e.height,d=!(o<l||u<r||s<c||h<a);if(n){var p=1/0,f=0,g=Math.abs(o-l),v=Math.abs(u-r),m=Math.abs(s-c),y=Math.abs(h-a),x=Math.min(g,v),b=Math.min(m,y);o<l||u<r?x>f&&(f=x,g<v?sr.set(gr,-g,0):sr.set(gr,v,0)):x<p&&(p=x,g<v?sr.set(fr,g,0):sr.set(fr,-v,0)),s<c||h<a?b>f&&(f=b,m<y?sr.set(gr,0,-m):sr.set(gr,0,y)):x<p&&(p=x,m<y?sr.set(fr,0,m):sr.set(fr,0,-y))}return n&&sr.copy(n,d?fr:gr),d},t.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return e.x=n.x*r+a,e.y=n.y*o+s,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}cr.x=dr.x=n.x,cr.y=pr.y=n.y,hr.x=pr.x=n.x+n.width,hr.y=dr.y=n.y+n.height,cr.transform(i),pr.transform(i),hr.transform(i),dr.transform(i),e.x=lr(cr.x,hr.x,dr.x,pr.x),e.y=lr(cr.y,hr.y,dr.y,pr.y);var l=ur(cr.x,hr.x,dr.x,pr.x),u=ur(cr.y,hr.y,dr.y,pr.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}(),mr=vr,yr={},xr="12px sans-serif";function br(t,e){return Ji||(Ji=G().getContext("2d")),Qi!==e&&(Qi=Ji.font=e||xr),Ji.measureText(t)}var _r={measureText:br};function wr(t,e){e=e||xr;var n=yr[e];n||(n=yr[e]=new xn(500));var i=n.get(t);return null==i&&(i=_r.measureText(t,e).width,n.put(t,i)),i}function Sr(t,e,n,i){var r=wr(t,e),o=Tr(e),a=Ir(0,r,n),s=Cr(0,o,i),l=new mr(a,s,r,o);return l}function Mr(t,e,n,i){var r=((t||"")+"").split("\n"),o=r.length;if(1===o)return Sr(r[0],e,n,i);for(var a=new mr(0,0,0,0),s=0;s<r.length;s++){var l=Sr(r[s],e,n,i);0===s?a.copy(l):a.union(l)}return a}function Ir(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function Cr(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function Tr(t){return wr("国",t)}function Ar(t,e){return"string"===typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Dr(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",h="top";if(i instanceof Array)l+=Ar(i[0],n.width),u+=Ar(i[1],n.height),c=null,h=null;else switch(i){case"left":l-=r,u+=s,c="right",h="middle";break;case"right":l+=r+a,u+=s,h="middle";break;case"top":l+=a/2,u-=r,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+r,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=r,u+=s,h="middle";break;case"insideRight":l+=a-r,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=r,c="center";break;case"insideBottom":l+=a/2,u+=o-r,c="center",h="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,c="right";break;case"insideBottomLeft":l+=r,u+=o-r,h="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,c="right",h="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=c,t.verticalAlign=h,t}var kr="__zr_normal__",Lr=["x","y","scaleX","scaleY","originX","originY","rotation","ignore"],Pr={x:!0,y:!0,scaleX:!0,scaleY:!0,originX:!0,originY:!0,rotation:!0,ignore:!1},Or={},Er=new mr(0,0,0,0),Rr=function(){function t(t){this.id=z(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.attachedTransform,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.x=e.x,r.y=e.y,r.originX=e.originX,r.originY=e.originY,r.rotation=e.rotation,r.scaleX=e.scaleX,r.scaleY=e.scaleY,null!=n.position){var u=Er;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Or,n,u):Dr(Or,n,u),r.x=Or.x,r.y=Or.y,o=Or.align,a=Or.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var h=void 0,d=void 0;"center"===c?(h=.5*u.width,d=.5*u.height):(h=Ar(c[0],u.width),d=Ar(c[1],u.height)),l=!0,r.originX=-r.x+h+(i?0:u.x),r.originY=-r.y+d+(i?0:u.y)}}null!=n.rotation&&(r.rotation=n.rotation);var p=n.offset;p&&(r.x+=p[0],r.y+=p[1],l||(r.originX=-p[0],r.originY=-p[1]));var f=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,m=void 0,y=void 0;f&&this.canBeInsideText()?(v=n.insideFill,m=n.insideStroke,null!=v&&"auto"!==v||(v=this.getInsideTextFill()),null!=m&&"auto"!==m||(m=this.getInsideTextStroke(v),y=!0)):(v=n.outsideFill,m=n.outsideStroke,null!=v&&"auto"!==v||(v=this.getOutsideFill()),null!=m&&"auto"!==m||(m=this.getOutsideStroke(v),y=!0)),v=v||"#000",v===g.fill&&m===g.stroke&&y===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=v,g.stroke=m,g.autoStroke=y,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=en,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Bi:zi},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof e&&On(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,Gn(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},$(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"===typeof t)this.attrKV(t,e);else if(ut(t))for(var n=t,i=tt(n),r=0;r<i.length;r++){var o=i[r];this.attrKV(o,t[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],r=i.__fromStateTransition;if(!r||r===kr){var o=i.targetName,a=o?e[o]:e;i.saveFinalToTarget(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Lr)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null==t[r]||r in e||(e[r]=this[r])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(kr,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===kr,o=this.hasState();if(o||!r){var a=this.currentStates,s=this.stateTransition;if(!(j(a,t)>=0)||!e&&1!==a.length){var l;if(this.stateProxy&&!r&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),l||r){r||this.saveCurrentToNormalState(l);var u=!!(l&&l.hoverLayer||i);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!n&&!this.__inHover&&s&&s.duration>0,s);var c=this._textContent,h=this._textGuide;return c&&c.useState(t,e,n,u),h&&h.useState(t,e,n,u),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~en),l}B("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s<o;s++)if(t[s]!==r[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&i.push(u)}var c=i[o-1],h=!!(c&&c.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(i),p=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,!e&&!this.__inHover&&p&&p.duration>0,p);var f=this._textContent,g=this._textGuide;f&&f.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~en)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=j(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=j(i,t),o=j(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var r=t[i];$(n,r),r.textConfig&&(e=e||{},$(e,r.textConfig))}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,i,r,o){var a=!(e&&i);e&&e.textConfig?(this.textConfig=$({},i?this.textConfig:n.textConfig),$(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<Lr.length;u++){var c=Lr[u],h=r&&Pr[c];e&&null!=e[c]?h?(l=!0,s[c]=e[c]):this[c]=e[c]:a&&null!=n[c]&&(h?(l=!0,s[c]=n[c]):this[c]=n[c])}if(!r)for(u=0;u<this.animators.length;u++){var d=this.animators[u],p=d.targetName;d.__changeFinalValue(p?(e||n)[p]:e||n)}l&&this._transitionState(t,s,o)},t.prototype._attachComponent=function(t){if(t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");if(t===this)throw new Error("Recursive component attachment.");var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;if(e!==t){if(e&&e!==t&&this.removeTextContent(),t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");t.attachedTransform=new or,this._attachComponent(t),this._textContent=t,this.markRedraw()}},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),$(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.attachedTransform=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=en;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},t.prototype.addSelfToZr=function(t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)},t.prototype.removeSelfFromZr=function(t){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)},t.prototype.animate=function(t,e){var n=t?this[t]:this;if(n){var i=new hi(n,e);return this.addAnimator(i,t),i}B('Property "'+t+'" is not existed in element '+this.id)},t.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during((function(){i.updateDuringAnimation(e)})).done((function(){var e=i.animators,n=j(e,t);n>=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o<i;o++){var a=n[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},t.prototype.animateTo=function(t,e,n){Nr(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){Nr(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,i){for(var r=Nr(this,e,n,i),o=0;o<r.length;o++)r[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=!1,e.silent=!1,e.isGroup=!1,e.draggable=!1,e.dragging=!1,e.ignoreClip=!1,e.__inHover=!1,e.__dirty=en;var n={};function i(t,e,i){n[t+e+i]||(console.warn("DEPRECATED: '"+t+"' has been deprecated. use '"+e+"', '"+i+"' instead"),n[t+e+i]=!0)}function r(t,n,r,o){function a(t,e){Object.defineProperty(e,0,{get:function(){return t[r]},set:function(e){t[r]=e}}),Object.defineProperty(e,1,{get:function(){return t[o]},set:function(e){t[o]=e}})}Object.defineProperty(e,t,{get:function(){if(i(t,r,o),!this[n]){var e=this[n]=[];a(this,e)}return this[n]},set:function(e){i(t,r,o),this[r]=e[0],this[o]=e[1],this[n]=e,a(this,e)}})}Object.defineProperty&&(!S.browser.ie||S.browser.version>8)&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),t}();function Nr(t,e,n,i,r){n=n||{};var o=[];Fr(t,"",t,e,n,i,o,r);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,a--,a<=0&&(s?l&&l():u&&u())},h=function(){a--,a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var d=0;d<o.length;d++){var p=o[d];c&&p.done(c),h&&p.aborted(h),p.start(n.easing,n.force)}return o}function zr(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}function Br(t){return U(t[0])}function Vr(t,e,n){if(U(e[n]))if(U(t[n])||(t[n]=[]),ht(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),zr(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(Br(r))for(var s=r[0].length,l=0;l<a;l++)o[l]?zr(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else zr(o,r,a);o.length=r.length}else t[n]=e[n]}function Fr(t,e,n,i,r,o,a,s){for(var l=[],u=[],c=tt(i),h=r.duration,d=r.delay,p=r.additive,f=r.setToFinal,g=!ut(o),v=0;v<c.length;v++){var m=c[v];if(null!=n[m]&&null!=i[m]&&(g||o[m]))if(ut(i[m])&&!U(i[m])){if(e){s||(n[m]=i[m],t.updateDuringAnimation(e));continue}Fr(t,m,n[m],i[m],r,o&&o[m],a,s)}else l.push(m),u.push(m);else s||(n[m]=i[m],t.updateDuringAnimation(e),u.push(m))}var y=l.length;if(y>0||r.force&&!a.length){for(var x=t.animators,b=[],_=0;_<x.length;_++)x[_].targetName===e&&b.push(x[_]);if(!p&&b.length)for(_=0;_<b.length;_++){var w=b[_].stopTracks(u);if(w){var S=j(x,b[_]);x.splice(S,1)}}var M=void 0,I=void 0,C=void 0;if(s){I={},f&&(M={});for(_=0;_<y;_++){m=l[_];I[m]=n[m],f?M[m]=i[m]:n[m]=i[m]}}else if(f){C={};for(_=0;_<y;_++){m=l[_];C[m]=oi(n[m]),Vr(n,i,m)}}var T=new hi(n,!1,p?b:null);T.targetName=e,r.scope&&(T.scope=r.scope),f&&M&&T.whenWithKeys(0,M,l),C&&T.whenWithKeys(0,C,l),T.whenWithKeys(null==h?500:h,s?I:i,l).delay(d||0),t.addAnimator(T,e),a.push(T)}}X(Rr,le),X(Rr,or);var Hr=Rr,$r=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return v(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){if(t&&(t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),t.__hostTarget))throw"This elemenet has been used as an attachment";return this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,i=n.indexOf(e);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,i=j(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var i=t[n];e&&i.removeSelfFromZr(e),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];t.call(e,r,i)}return this},e.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n],r=t.call(e,i);i.isGroup&&!r&&i.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(e)}},e.prototype.getBoundingRect=function(t){for(var e=new mr(0,0,0,0),n=t||this._children,i=[],r=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(i);l?(mr.applyTransform(e,s,l),r=r||e.clone(),r.union(e)):(r=r||s.clone(),r.union(s))}}return r||e},e}(Hr);$r.prototype.type="group";var Wr=$r,Gr=!S.canvasSupported,jr={},Yr={};
|
|
17
|
+
/*!
|
|
18
|
+
* ZRender, a high performance 2d drawing library.
|
|
19
|
+
*
|
|
20
|
+
* Copyright (c) 2013, Baidu Inc.
|
|
21
|
+
* All rights reserved.
|
|
22
|
+
*
|
|
23
|
+
* LICENSE
|
|
24
|
+
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
|
25
|
+
*/function Xr(t){delete Yr[t]}function Ur(t){if(!t)return!1;if("string"===typeof t)return jn(t,1)<Ni;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;r<i;r++)n+=jn(e[r].color,1);return n/=i,n<Ni}return!1}var Zr=function(){function t(t,e,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var r=new cn,o=n.renderer||"canvas";if(Gr)throw new Error("IE8 support has been dropped since 5.0");if(jr[o]||(o=tt(jr)[0]),!jr[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new jr[o](e,r,n,t);this.storage=r,this.painter=a;var s=S.node||S.worker?null:new Oi(a.getViewportRoot(),a.root);this.handler=new Ge(r,a,s,a.root),this.animation=new pi({stage:{update:function(){return i._flush(!0)}}}),this.animation.start()}return t.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},t.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=Ur(t)},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},t.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},t.prototype.flush=function(){this._flush(!1)},t.prototype._flush=function(t){var e,n=(new Date).getTime();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=(new Date).getTime();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.addHover=function(t){},t.prototype.removeHover=function(t){},t.prototype.clearHover=function(){},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.pathToImage=function(t,e){if(this.painter.pathToImage)return this.painter.pathToImage(t,e)},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Wr&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},t.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,Xr(this.id)},t}();function qr(t,e){var n=new Zr(z(),t,e);return Yr[n.id]=n,n}function Kr(t){t.dispose()}function Jr(){for(var t in Yr)Yr.hasOwnProperty(t)&&Yr[t].dispose();Yr={}}function Qr(t){return Yr[t]}function to(t,e){jr[t]=e}var eo="5.1.1",no=1e-4,io=20;function ro(t){return t.replace(/^\s+|\s+$/g,"")}function oo(t,e,n,i){var r=e[0],o=e[1],a=n[0],s=n[1],l=o-r,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(i)if(l>0){if(t<=r)return a;if(t>=o)return s}else{if(t>=r)return a;if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}function ao(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return"string"===typeof t?ro(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function so(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),io),t=(+t).toFixed(e),n?t:+t}function lo(t){return t.sort((function(t,e){return t-e})),t}function uo(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return co(t)}function co(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}function ho(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function po(t,e,n){if(!t[e])return 0;var i=K(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===i)return 0;var r=Math.pow(10,n),o=q(t,(function(t){return(isNaN(t)?0:t)/i*r*100})),a=100*r,s=q(o,(function(t){return Math.floor(t)})),l=K(s,(function(t,e){return t+e}),0),u=q(o,(function(t,e){return t-s[e]}));while(l<a){for(var c=Number.NEGATIVE_INFINITY,h=null,d=0,p=u.length;d<p;++d)u[d]>c&&(c=u[d],h=d);++s[h],u[h]=0,++l}return s[e]/r}function fo(t,e){var n=Math.max(uo(t),uo(e)),i=t+e;return n>io?i:so(i,n)}var go=9007199254740991;function vo(t){var e=2*Math.PI;return(t%e+e)%e}function mo(t){return t>-no&&t<no}var yo=/^(?:(\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 xo(t){if(t instanceof Date)return t;if("string"===typeof t){var e=yo.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,+e[7]||0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,+e[7]||0)}return null==t?new Date(NaN):new Date(Math.round(t))}function bo(t){return Math.pow(10,_o(t))}function _o(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function wo(t,e){var n,i=_o(t),r=Math.pow(10,i),o=t/r;return n=e?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10,t=n*r,i>=-20?+t.toFixed(i<0?-i:0):t}function So(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r}function Mo(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,i=0;i<t.length;){for(var r=t[i].interval,o=t[i].close,a=0;a<2;a++)r[a]<=e&&(r[a]=e,o[a]=a?1:1-n),e=r[a],n=o[a];r[0]===r[1]&&o[0]*o[1]!==1?t.splice(i,1):i++}return t;function s(t,e,n){return t.interval[n]<e.interval[n]||t.interval[n]===e.interval[n]&&(t.close[n]-e.close[n]===(n?-1:1)||!n&&s(t,e,1))}}function Io(t){var e=parseFloat(t);return e==t&&(0!==e||"string"!==typeof t||t.indexOf("x")<=0)?e:NaN}function Co(t){return!isNaN(Io(t))}function To(){return Math.round(9*Math.random())}function Ao(t,e){return 0===e?t:Ao(e,t%e)}function Do(t,e){return null==t?e:null==e?t:t*e/Ao(t,e)}var ko="series\0",Lo="\0_ec_\0";function Po(t){return t instanceof Array?t:null==t?[]:[t]}function Oo(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;i<r;i++){var o=n[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var Eo=["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 Ro(t){return!ut(t)||rt(t)||t instanceof Date?t:t.value}function No(t){return ut(t)&&!(t instanceof Array)}function zo(t,e,n){var i="normalMerge"===n,r="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var a=At();Z(e,(function(t,n){ut(t)||(e[n]=null)}));var s=Bo(t,a,n);return(i||r)&&Vo(s,t,a,e),i&&Fo(s,e),i||r?Ho(s,e,r):o&&$o(s,e),Wo(s),s}function Bo(t,e,n){var i=[];if("replaceAll"===n)return i;for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),i.push({existing:"replaceMerge"===n||Uo(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}function Vo(t,e,n,i){Z(i,(function(r,o){if(r&&null!=r.id){var a=jo(r.id),s=n.get(a);if(null!=s){var l=t[s];wt(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=r,l.existing=e[s],i[o]=null}}}))}function Fo(t,e){Z(e,(function(n,i){if(n&&null!=n.name)for(var r=0;r<t.length;r++){var o=t[r].existing;if(!t[r].newOption&&o&&(null==o.id||null==n.id)&&!Uo(n)&&!Uo(o)&&Go("name",o,n))return t[r].newOption=n,void(e[i]=null)}}))}function Ho(t,e,n){Z(e,(function(e){if(e){var i,r=0;while((i=t[r])&&(i.newOption||Uo(i.existing)||i.existing&&null!=e.id&&!Go("id",e,i.existing)))r++;i?(i.newOption=e,i.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),r++}}))}function $o(t,e){Z(e,(function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})}))}function Wo(t){var e=At();Z(t,(function(t){var n=t.existing;n&&e.set(n.id,t)})),Z(t,(function(t){var n=t.newOption;wt(!n||null==n.id||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})})),Z(t,(function(t,n){var i=t.existing,r=t.newOption,o=t.keyInfo;if(ut(r)){if(o.name=null!=r.name?jo(r.name):i?i.name:ko+n,i)o.id=jo(i.id);else if(null!=r.id)o.id=jo(r.id);else{var a=0;do{o.id="\0"+o.name+"\0"+a++}while(e.get(o.id))}e.set(o.id,t)}}))}function Go(t,e,n){var i=Yo(e[t],null),r=Yo(n[t],null);return null!=i&&null!=r&&i===r}function jo(t){return Yo(t,"")}function Yo(t,e){if(null==t)return e;var n=typeof t;return"string"===n?t:"number"===n||st(t)?t+"":e}function Xo(t){var e=t.name;return!(!e||!e.indexOf(ko))}function Uo(t){return t&&null!=t.id&&0===jo(t.id).indexOf(Lo)}function Zo(t){return Lo+t}function qo(t,e,n){Z(t,(function(t){var i=t.newOption;ut(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=Ko(e,i,t.existing,n))}))}function Ko(t,e,n,i){var r=e.type?e.type:n?n.subType:i.determineSubType(t,e);return r}function Jo(t,e){var n={},i={};return r(t||[],n),r(e||[],i,n),[o(n),o(i)];function r(t,e,n){for(var i=0,r=t.length;i<r;i++){var o=Yo(t[i].seriesId,null);if(null==o)return;for(var a=Po(t[i].dataIndex),s=n&&n[o],l=0,u=a.length;l<u;l++){var c=a[l];s&&s[c]?s[c]=null:(e[o]||(e[o]={}))[c]=1}}}function o(t,e){var n=[];for(var i in t)if(t.hasOwnProperty(i)&&null!=t[i])if(e)n.push(+i);else{var r=o(t[i],!0);r.length&&n.push({seriesId:i,dataIndex:r})}return n}}function Qo(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?rt(e.dataIndex)?q(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?rt(e.name)?q(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}function ta(){var t="__ec_inner_"+ea++;return function(e){return e[t]||(e[t]={})}}var ea=To();function na(t,e,n){var i=ia(e,n),r=i.mainTypeSpecified,o=i.queryOptionMap,a=i.others,s=a,l=n?n.defaultMainType:null;return!r&&l&&o.set(l,{}),o.each((function(e,i){var r=aa(t,i,e,{useDefault:l===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});s[i+"Models"]=r.models,s[i+"Model"]=r.models[0]})),s}function ia(t,e){var n;if(at(t)){var i={};i[t+"Index"]=0,n=i}else n=t;var r=At(),o={},a=!1;return Z(n,(function(t,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var i=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=i[1],l=(i[2]||"").toLowerCase();if(s&&l&&!(e&&e.includeMainTypes&&j(e.includeMainTypes,s)<0)){a=a||!!s;var u=r.get(s)||r.set(s,{});u[l]=t}}else o[n]=t})),{mainTypeSpecified:a,queryOptionMap:r,others:o}}var ra={useDefault:!0,enableAll:!1,enableNone:!1},oa={useDefault:!1,enableAll:!0,enableNone:!0};function aa(t,e,n,i){i=i||ra;var r=n.index,o=n.id,a=n.name,s={models:null,specified:null!=r||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],s}return"none"===r||!1===r?(wt(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===r&&(wt(i.enableAll,'`"all"` is not a valid value on index option.'),r=o=a=null),s.models=t.queryComponents({mainType:e,index:r,id:o,name:a}),s)}function sa(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function la(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function ua(t){return"auto"===t?S.domSupported?"html":"richText":t||"html"}function ca(t,e){var n=At(),i=[];return Z(t,(function(t){var r=e(t);(n.get(r)||(i.push(r),n.set(r,[]))).push(t)})),{keys:i,buckets:n}}function ha(t,e,n,i,r){var o=null==e||"auto"===e;if(null==i)return i;if("number"===typeof i){var a=Un(n||0,i,r);return so(a,o?Math.max(uo(n||0),uo(i)):e)}if("string"===typeof i)return r<1?n:i;for(var s=[],l=n,u=i,c=Math.max(l?l.length:0,u.length),h=0;h<c;++h){var d=t.getDimensionInfo(h);if("ordinal"===d.type)s[h]=(r<1&&l?l:u)[h];else{var p=l&&l[h]?l[h]:0,f=u[h];a=Un(p,f,r);s[h]=so(a,o?Math.max(uo(p),uo(f)):e)}}return s}var da=".",pa="___EC__COMPONENT__CONTAINER___",fa="___EC__EXTENDED_CLASS___";function ga(t){var e={main:"",sub:""};if(t){var n=t.split(da);e.main=n[0]||"",e.sub=n[1]||""}return e}function va(t){wt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function ma(t){return!(!t||!t[fa])}function ya(t,e){t.$constructor=t,t.extend=function(t){var e=this;function n(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];if(t.$constructor)t.$constructor.apply(this,arguments);else{if(xa(e)){var o=kt(n.prototype,new(e.bind.apply(e,y([void 0],i))));return o}e.apply(this,arguments)}}return n[fa]=!0,$(n.prototype,t),n.extend=this.extend,n.superCall=Sa,n.superApply=Ma,Y(n,this),n.superClass=e,n}}function xa(t){return"function"===typeof t&&/^class\s/.test(Function.prototype.toString.call(t))}function ba(t,e){t.extend=e.extend}var _a=Math.round(10*Math.random());function wa(t){var e=["__\0is_clz",_a++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function Sa(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function Ma(t,e,n){return this.superClass.prototype[e].apply(t,n)}function Ia(t){var e={};function n(t){var n=e[t.main];return n&&n[pa]||(n=e[t.main]={},n[pa]=!0),n}t.registerClass=function(t){var i=t.type||t.prototype.type;if(i){va(i),t.prototype.type=i;var r=ga(i);if(r.sub){if(r.sub!==pa){var o=n(r);o[r.sub]=t}}else e[r.main]=t}return t},t.getClass=function(t,n,i){var r=e[t];if(r&&r[pa]&&(r=n?r[n]:null),i&&!r)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var n=ga(t),i=[],r=e[n.main];return r&&r[pa]?Z(r,(function(t,e){e!==pa&&i.push(t)})):i.push(r),i},t.hasClass=function(t){var n=ga(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return Z(e,(function(e,n){t.push(n)})),t},t.hasSubTypes=function(t){var n=ga(t),i=e[n.main];return i&&i[pa]}}function Ca(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,i,r){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(i&&j(i,s)>=0||r&&j(r,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var Ta=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Aa=Ca(Ta),Da=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return Aa(this,t,e)},t}(),ka=new xn(50);function La(t){if("string"===typeof t){var e=ka.get(t);return e&&e.image}return t}function Pa(t,e,n,i,r){if(t){if("string"===typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=ka.get(t),a={hostEl:n,cb:i,cbPayload:r};return o?(e=o.image,!Ea(e)&&o.pending.push(a)):(e=new Image,e.onload=e.onerror=Oa,ka.put(t,e.__cachedImgObj={image:e,pending:[a]}),e.src=e.__zrImageSrc=t),e}return t}return e}function Oa(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function Ea(t){return t&&t.width&&t.height}var Ra=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Na(t,e,n,i,r){if(!e)return"";var o=(t+"").split("\n");r=za(e,n,i,r);for(var a=0,s=o.length;a<s;a++)o[a]=Ba(o[a],r);return o.join("\n")}function za(t,e,n,i){i=i||{};var r=$({},i);r.font=e,n=yt(n,"..."),r.maxIterations=yt(i.maxIterations,2);var o=r.minChar=yt(i.minChar,0);r.cnCharWidth=wr("国",e);var a=r.ascCharWidth=wr("a",e);r.placeholder=yt(i.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;l<o&&s>=a;l++)s-=a;var u=wr(n,e);return u>s&&(n="",u=0),s=t-u,r.ellipsis=n,r.ellipsisWidth=u,r.contentWidth=s,r.containerWidth=t,r}function Ba(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var o=wr(t,i);if(o<=n)return t;for(var a=0;;a++){if(o<=r||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?Va(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;t=t.substr(0,s),o=wr(t,i)}return""===t&&(t=e.placeholder),t}function Va(t,e,n,i){for(var r=0,o=0,a=t.length;o<a&&r<e;o++){var s=t.charCodeAt(o);r+=0<=s&&s<=127?n:i}return o}function Fa(t,e){null!=t&&(t+="");var n,i=e.overflow,r=e.padding,o=e.font,a="truncate"===i,s=Tr(o),l=yt(e.lineHeight,s),u="truncate"===e.lineOverflow,c=e.width;n=null!=c&&"break"===i||"breakAll"===i?t?Za(t,e.font,c,"breakAll"===i,0).lines:[]:t?t.split("\n"):[];var h=n.length*l,d=yt(e.height,h);if(h>d&&u){var p=Math.floor(d/l);n=n.slice(0,p)}var f=d,g=c;if(r&&(f+=r[0]+r[2],null!=g&&(g+=r[1]+r[3])),t&&a&&null!=g)for(var v=za(c,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m=0;m<n.length;m++)n[m]=Ba(n[m],v);if(null==c){var y=0;for(m=0;m<n.length;m++)y=Math.max(wr(n[m],o),y);c=y}return{lines:n,height:d,outerHeight:f,lineHeight:l,calculatedLineHeight:s,contentHeight:h,width:c}}var Ha=function(){function t(){}return t}(),$a=function(){function t(t){this.tokens=[],t&&(this.tokens=t)}return t}(),Wa=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return t}();function Ga(t,e){var n=new Wa;if(null!=t&&(t+=""),!t)return n;var i,r=e.width,o=e.height,a=e.overflow,s="break"!==a&&"breakAll"!==a||null==r?null:{width:r,accumWidth:0,breakAll:"breakAll"===a},l=Ra.lastIndex=0;while(null!=(i=Ra.exec(t))){var u=i.index;u>l&&ja(n,t.substring(l,u),e,s),ja(n,i[2],e,s,i[1]),l=Ra.lastIndex}l<t.length&&ja(n,t.substring(l,t.length),e,s);var c=[],h=0,d=0,p=e.padding,f="truncate"===a,g="truncate"===e.lineOverflow;function v(t,e,n){t.width=e,t.lineHeight=n,h+=n,d=Math.max(d,e)}t:for(var m=0;m<n.lines.length;m++){for(var y=n.lines[m],x=0,b=0,_=0;_<y.tokens.length;_++){var w=y.tokens[_],S=w.styleName&&e.rich[w.styleName]||{},M=w.textPadding=S.padding,I=M?M[1]+M[3]:0,C=w.font=S.font||e.font;w.contentHeight=Tr(C);var T=yt(S.height,w.contentHeight);if(w.innerHeight=T,M&&(T+=M[0]+M[2]),w.height=T,w.lineHeight=xt(S.lineHeight,e.lineHeight,T),w.align=S&&S.align||e.align,w.verticalAlign=S&&S.verticalAlign||"middle",g&&null!=o&&h+w.lineHeight>o){_>0?(y.tokens=y.tokens.slice(0,_),v(y,b,x),n.lines=n.lines.slice(0,m+1)):n.lines=n.lines.slice(0,m);break t}var A=S.width,D=null==A||"auto"===A;if("string"===typeof A&&"%"===A.charAt(A.length-1))w.percentWidth=A,c.push(w),w.contentWidth=wr(w.text,C);else{if(D){var k=S.backgroundColor,L=k&&k.image;L&&(L=La(L),Ea(L)&&(w.width=Math.max(w.width,L.width*T/L.height)))}var P=f&&null!=r?r-b:null;null!=P&&P<w.width?!D||P<I?(w.text="",w.width=w.contentWidth=0):(w.text=Na(w.text,P-I,C,e.ellipsis,{minChar:e.truncateMinChar}),w.width=w.contentWidth=wr(w.text,C)):w.contentWidth=wr(w.text,C)}w.width+=I,b+=w.width,S&&(x=Math.max(x,w.lineHeight))}v(y,b,x)}n.outerWidth=n.width=yt(r,d),n.outerHeight=n.height=yt(o,h),n.contentHeight=h,n.contentWidth=d,p&&(n.outerWidth+=p[1]+p[3],n.outerHeight+=p[0]+p[2]);for(m=0;m<c.length;m++){w=c[m];var O=w.percentWidth;w.width=parseInt(O,10)/100*n.width}return n}function ja(t,e,n,i,r){var o,a,s=""===e,l=r&&n.rich[r]||{},u=t.lines,c=l.font||n.font,h=!1;if(i){var d=l.padding,p=d?d[1]+d[3]:0;if(null!=l.width&&"auto"!==l.width){var f=Ar(l.width,i.width)+p;u.length>0&&f+i.accumWidth>i.width&&(o=e.split("\n"),h=!0),i.accumWidth=f}else{var g=Za(e,c,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+p,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var v=0;v<o.length;v++){var m=o[v],y=new Ha;if(y.styleName=r,y.text=m,y.isLineHolder=!m&&!s,"number"===typeof l.width?y.width=l.width:y.width=a?a[v]:wr(m,c),v||h)u.push(new $a([y]));else{var x=(u[u.length-1]||(u[0]=new $a)).tokens,b=x.length;1===b&&x[0].isLineHolder?x[0]=y:(m||!b||s)&&x.push(y)}}}function Ya(t){var e=t.charCodeAt(0);return e>=33&&e<=255}var Xa=K(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function Ua(t){return!Ya(t)||!!Xa[t]}function Za(t,e,n,i,r){for(var o=[],a=[],s="",l="",u=0,c=0,h=0;h<t.length;h++){var d=t.charAt(h);if("\n"!==d){var p=wr(d,e),f=!i&&!Ua(d);(o.length?c+p>n:r+c+p>n)?c?(s||l)&&(f?(s||(s=l,l="",u=0,c=u),o.push(s),a.push(c-u),l+=d,u+=p,s="",c=u):(l&&(s+=l,c+=u,l="",u=0),o.push(s),a.push(c),s=d,c=p)):f?(o.push(l),a.push(u),l=d,u=p):(o.push(d),a.push(p)):(c+=p,f?(l+=d,u+=p):(l&&(s+=l,l="",u=0),s+=d))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=r),{accumWidth:c,lines:o,linesWidths:a}}var qa="__zr_style_"+Math.round(10*Math.random()),Ka={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ja={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Ka[qa]=!0;var Qa=["z","z2","invisible"],ts=["invisible"],es=function(t){function e(e){return t.call(this,e)||this}return v(e,t),e.prototype._init=function(e){for(var n=tt(e),i=0;i<n.length;i++){var r=n[i];"style"===r?this.useStyle(e[r]):t.prototype.attrKV.call(this,r,e[r])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,e,n,i){var r=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&rs(this,t,e)||r&&!r[0]&&!r[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(i&&this.parent){var a=this.parent;while(a){if(a.ignore)return!1;a=a.parent}}return!0},e.prototype.contain=function(t,e){return this.rectContain(t,e)},e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return i.contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),i=this.style,r=i.shadowBlur||0,o=i.shadowOffsetX||0,a=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new mr(0,0,0,0)),e?mr.applyTransform(t,n,e):t.copy(n),(r||o||a)&&(t.width+=2*r+Math.abs(o),t.height+=2*r+Math.abs(a),t.x=Math.min(t.x,t.x+o-r),t.y=Math.min(t.y,t.y+a-r));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new mr(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,e){return"string"===typeof t?this.style[t]=e:$(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=nn,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&nn)},e.prototype.styleUpdated=function(){this.__dirty&=~nn},e.prototype.createStyle=function(t){return kt(Ka,t)},e.prototype.useStyle=function(t){t[qa]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[qa]},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,Qa)},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.style?o?r?s=n.style:(s=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),r?this.style:i.style),this._mergeStyle(s,n.style)):l&&(s=i.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=tt(u),h=0;h<c.length;h++){var d=c[h];d in s&&(s[d]=s[d],this.style[d]=u[d])}var p=tt(s);for(h=0;h<p.length;h++){d=p[h];this.style[d]=this.style[d]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var f=this.__inHover?ts:Qa;for(h=0;h<f.length;h++){d=f[h];n&&null!=n[d]?this[d]=n[d]:l&&null!=i[d]&&(this[d]=i[d])}},e.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},e.prototype._mergeStyle=function(t,e){return $(t,e),t},e.prototype.getAnimationStyleProps=function(){return Ja},e.initDefaultProps=function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=en|nn}(),e}(Hr),ns=new mr(0,0,0,0),is=new mr(0,0,0,0);function rs(t,e,n){return ns.copy(t.getBoundingRect()),t.transform&&ns.applyTransform(t.transform),is.width=e,is.height=n,!ns.intersect(is)}var os=es,as=Math.pow,ss=Math.sqrt,ls=1e-8,us=1e-4,cs=ss(3),hs=1/3,ds=Ot(),ps=Ot(),fs=Ot();function gs(t){return t>-ls&&t<ls}function vs(t){return t>ls||t<-ls}function ms(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function ys(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function xs(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,c=s*s-3*a*l,h=s*l-9*a*u,d=l*l-3*s*u,p=0;if(gs(c)&&gs(h))if(gs(s))o[0]=0;else{var f=-l/s;f>=0&&f<=1&&(o[p++]=f)}else{var g=h*h-4*c*d;if(gs(g)){var v=h/c,m=(f=-s/a+v,-v/2);f>=0&&f<=1&&(o[p++]=f),m>=0&&m<=1&&(o[p++]=m)}else if(g>0){var y=ss(g),x=c*s+1.5*a*(-h+y),b=c*s+1.5*a*(-h-y);x=x<0?-as(-x,hs):as(x,hs),b=b<0?-as(-b,hs):as(b,hs);f=(-s-(x+b))/(3*a);f>=0&&f<=1&&(o[p++]=f)}else{var _=(2*c*s-3*a*h)/(2*ss(c*c*c)),w=Math.acos(_)/3,S=ss(c),M=Math.cos(w),I=(f=(-s-2*S*M)/(3*a),m=(-s+S*(M+cs*Math.sin(w)))/(3*a),(-s+S*(M-cs*Math.sin(w)))/(3*a));f>=0&&f<=1&&(o[p++]=f),m>=0&&m<=1&&(o[p++]=m),I>=0&&I<=1&&(o[p++]=I)}}return p}function bs(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(gs(a)){if(vs(o)){var u=-s/o;u>=0&&u<=1&&(r[l++]=u)}}else{var c=o*o-4*a*s;if(gs(c))r[0]=-o/(2*a);else if(c>0){var h=ss(c),d=(u=(-o+h)/(2*a),(-o-h)/(2*a));u>=0&&u<=1&&(r[l++]=u),d>=0&&d<=1&&(r[l++]=d)}}return l}function _s(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,c=(l-s)*r+s,h=(c-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=i}function ws(t,e,n,i,r,o,a,s,l,u,c){var h,d,p,f,g,v=.005,m=1/0;ds[0]=l,ds[1]=u;for(var y=0;y<1;y+=.05)ps[0]=ms(t,n,r,a,y),ps[1]=ms(e,i,o,s,y),f=Jt(ds,ps),f<m&&(h=y,m=f);m=1/0;for(var x=0;x<32;x++){if(v<us)break;d=h-v,p=h+v,ps[0]=ms(t,n,r,a,d),ps[1]=ms(e,i,o,s,d),f=Jt(ps,ds),d>=0&&f<m?(h=d,m=f):(fs[0]=ms(t,n,r,a,p),fs[1]=ms(e,i,o,s,p),g=Jt(fs,ds),p<=1&&g<m?(h=p,m=g):v*=.5)}return c&&(c[0]=ms(t,n,r,a,h),c[1]=ms(e,i,o,s,h)),ss(m)}function Ss(t,e,n,i,r,o,a,s,l){for(var u=t,c=e,h=0,d=1/l,p=1;p<=l;p++){var f=p*d,g=ms(t,n,r,a,f),v=ms(e,i,o,s,f),m=g-u,y=v-c;h+=Math.sqrt(m*m+y*y),u=g,c=v}return h}function Ms(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function Is(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function Cs(t,e,n,i,r){var o=t-2*e+n,a=2*(e-t),s=t-i,l=0;if(gs(o)){if(vs(a)){var u=-s/a;u>=0&&u<=1&&(r[l++]=u)}}else{var c=a*a-4*o*s;if(gs(c)){u=-a/(2*o);u>=0&&u<=1&&(r[l++]=u)}else if(c>0){var h=ss(c),d=(u=(-a+h)/(2*o),(-a-h)/(2*o));u>=0&&u<=1&&(r[l++]=u),d>=0&&d<=1&&(r[l++]=d)}}return l}function Ts(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function As(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function Ds(t,e,n,i,r,o,a,s,l){var u,c=.005,h=1/0;ds[0]=a,ds[1]=s;for(var d=0;d<1;d+=.05){ps[0]=Ms(t,n,r,d),ps[1]=Ms(e,i,o,d);var p=Jt(ds,ps);p<h&&(u=d,h=p)}h=1/0;for(var f=0;f<32;f++){if(c<us)break;var g=u-c,v=u+c;ps[0]=Ms(t,n,r,g),ps[1]=Ms(e,i,o,g);p=Jt(ps,ds);if(g>=0&&p<h)u=g,h=p;else{fs[0]=Ms(t,n,r,v),fs[1]=Ms(e,i,o,v);var m=Jt(fs,ds);v<=1&&m<h?(u=v,h=m):c*=.5}}return l&&(l[0]=Ms(t,n,r,u),l[1]=Ms(e,i,o,u)),ss(h)}function ks(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,c=1/a,h=1;h<=a;h++){var d=h*c,p=Ms(t,n,r,d),f=Ms(e,i,o,d),g=p-s,v=f-l;u+=Math.sqrt(g*g+v*v),s=p,l=f}return u}var Ls=Math.min,Ps=Math.max,Os=Math.sin,Es=Math.cos,Rs=2*Math.PI,Ns=Ot(),zs=Ot(),Bs=Ot();function Vs(t,e,n){if(0!==t.length){for(var i=t[0],r=i[0],o=i[0],a=i[1],s=i[1],l=1;l<t.length;l++)i=t[l],r=Ls(r,i[0]),o=Ps(o,i[0]),a=Ls(a,i[1]),s=Ps(s,i[1]);e[0]=r,e[1]=a,n[0]=o,n[1]=s}}function Fs(t,e,n,i,r,o){r[0]=Ls(t,n),r[1]=Ls(e,i),o[0]=Ps(t,n),o[1]=Ps(e,i)}var Hs=[],$s=[];function Ws(t,e,n,i,r,o,a,s,l,u){var c=bs,h=ms,d=c(t,n,r,a,Hs);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var p=0;p<d;p++){var f=h(t,n,r,a,Hs[p]);l[0]=Ls(f,l[0]),u[0]=Ps(f,u[0])}d=c(e,i,o,s,$s);for(p=0;p<d;p++){var g=h(e,i,o,s,$s[p]);l[1]=Ls(g,l[1]),u[1]=Ps(g,u[1])}l[0]=Ls(t,l[0]),u[0]=Ps(t,u[0]),l[0]=Ls(a,l[0]),u[0]=Ps(a,u[0]),l[1]=Ls(e,l[1]),u[1]=Ps(e,u[1]),l[1]=Ls(s,l[1]),u[1]=Ps(s,u[1])}function Gs(t,e,n,i,r,o,a,s){var l=Ts,u=Ms,c=Ps(Ls(l(t,n,r),1),0),h=Ps(Ls(l(e,i,o),1),0),d=u(t,n,r,c),p=u(e,i,o,h);a[0]=Ls(t,r,d),a[1]=Ls(e,o,p),s[0]=Ps(t,r,d),s[1]=Ps(e,o,p)}function js(t,e,n,i,r,o,a,s,l){var u=ne,c=ie,h=Math.abs(r-o);if(h%Rs<1e-4&&h>1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(Ns[0]=Es(r)*n+t,Ns[1]=Os(r)*i+e,zs[0]=Es(o)*n+t,zs[1]=Os(o)*i+e,u(s,Ns,zs),c(l,Ns,zs),r%=Rs,r<0&&(r+=Rs),o%=Rs,o<0&&(o+=Rs),r>o&&!a?o+=Rs:r<o&&a&&(r+=Rs),a){var d=o;o=r,r=d}for(var p=0;p<o;p+=Math.PI/2)p>r&&(Bs[0]=Es(p)*n+t,Bs[1]=Os(p)*i+e,u(s,Bs,s),c(l,Bs,l))}var Ys={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Xs=[],Us=[],Zs=[],qs=[],Ks=[],Js=[],Qs=Math.min,tl=Math.max,el=Math.cos,nl=Math.sin,il=Math.sqrt,rl=Math.abs,ol=Math.PI,al=2*ol,sl="undefined"!==typeof Float32Array,ll=[];function ul(t){var e=Math.round(t/ol*1e8)/1e8;return e%2*ol}function cl(t,e){var n=ul(t[0]);n<0&&(n+=al);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=al?r=n+al:e&&n-r>=al?r=n-al:!e&&n>r?r=n+(al-ul(n-r)):e&&n<r&&(r=n-(al-ul(r-n))),t[0]=n,t[1]=r}var hl=function(){function t(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,n){n=n||0,n>0&&(this._ux=rl(n/Ri/t)||0,this._uy=rl(n/Ri/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Ys.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=rl(t-this._xi),i=rl(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(Ys.L,t,e),this._ctx&&r&&(this._needsDash?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this.addData(Ys.C,t,e,n,i,r,o),this._ctx&&(this._needsDash?this._dashedBezierTo(t,e,n,i,r,o):this._ctx.bezierCurveTo(t,e,n,i,r,o)),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this.addData(Ys.Q,t,e,n,i),this._ctx&&(this._needsDash?this._dashedQuadraticTo(t,e,n,i):this._ctx.quadraticCurveTo(t,e,n,i)),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){ll[0]=i,ll[1]=r,cl(ll,o),i=ll[0],r=ll[1];var a=r-i;return this.addData(Ys.A,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=el(r)*n+t,this._yi=nl(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Ys.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ys.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&(this._needsDash&&this._dashedLineTo(e,n),t.closePath()),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.setLineDash=function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,n=0;n<t.length;n++)e+=t[n];this._dashSum=e,this._needsDash=!0}else this._lineDash=null,this._needsDash=!1;return this},t.prototype.setLineDashOffset=function(t){return this._dashOffset=t,this},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!sl||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},t.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,r=0;r<e;r++)n+=t[r].len();sl&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(r=0;r<e;r++)for(var o=t[r].data,a=0;a<o.length;a++)this.data[i++]=o[a];this._len=i},t.prototype.addData=function(t,e,n,i,r,o,a,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]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype._dashedLineTo=function(t,e){var n,i,r=this._dashSum,o=this._lineDash,a=this._ctx,s=this._dashOffset,l=this._xi,u=this._yi,c=t-l,h=e-u,d=il(c*c+h*h),p=l,f=u,g=o.length;c/=d,h/=d,s<0&&(s=r+s),s%=r,p-=s*c,f-=s*h;while(c>0&&p<=t||c<0&&p>=t||0===c&&(h>0&&f<=e||h<0&&f>=e))i=this._dashIdx,n=o[i],p+=c*n,f+=h*n,this._dashIdx=(i+1)%g,c>0&&p<l||c<0&&p>l||h>0&&f<u||h<0&&f>u||a[i%2?"moveTo":"lineTo"](c>=0?Qs(p,t):tl(p,t),h>=0?Qs(f,e):tl(f,e));c=p-t,h=f-e,this._dashOffset=-il(c*c+h*h)},t.prototype._dashedBezierTo=function(t,e,n,i,r,o){var a,s,l,u,c,h=this._ctx,d=this._dashSum,p=this._dashOffset,f=this._lineDash,g=this._xi,v=this._yi,m=0,y=this._dashIdx,x=f.length,b=0;for(p<0&&(p=d+p),p%=d,a=0;a<1;a+=.1)s=ms(g,t,n,r,a+.1)-ms(g,t,n,r,a),l=ms(v,e,i,o,a+.1)-ms(v,e,i,o,a),m+=il(s*s+l*l);for(;y<x;y++)if(b+=f[y],b>p)break;a=(b-p)/m;while(a<=1)u=ms(g,t,n,r,a),c=ms(v,e,i,o,a),y%2?h.moveTo(u,c):h.lineTo(u,c),a+=f[y]/m,y=(y+1)%x;y%2!==0&&h.lineTo(r,o),s=r-u,l=o-c,this._dashOffset=-il(s*s+l*l)},t.prototype._dashedQuadraticTo=function(t,e,n,i){var r=n,o=i;n=(n+2*t)/3,i=(i+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,n,i,r,o)},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,sl&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){Zs[0]=Zs[1]=Ks[0]=Ks[1]=Number.MAX_VALUE,qs[0]=qs[1]=Js[0]=Js[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,i=0,r=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(n=e[t],i=e[t+1],r=n,o=i),a){case Ys.M:n=r=e[t++],i=o=e[t++],Ks[0]=r,Ks[1]=o,Js[0]=r,Js[1]=o;break;case Ys.L:Fs(n,i,e[t],e[t+1],Ks,Js),n=e[t++],i=e[t++];break;case Ys.C:Ws(n,i,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],Ks,Js),n=e[t++],i=e[t++];break;case Ys.Q:Gs(n,i,e[t++],e[t++],e[t],e[t+1],Ks,Js),n=e[t++],i=e[t++];break;case Ys.A:var l=e[t++],u=e[t++],c=e[t++],h=e[t++],d=e[t++],p=e[t++]+d;t+=1;var f=!e[t++];s&&(r=el(d)*c+l,o=nl(d)*h+u),js(l,u,c,h,d,p,f,Ks,Js),n=el(p)*c+l,i=nl(p)*h+u;break;case Ys.R:r=n=e[t++],o=i=e[t++];var g=e[t++],v=e[t++];Fs(r,o,r+g,o+v,Ks,Js);break;case Ys.Z:n=r,i=o;break}ne(Zs,Zs,Ks),ie(qs,qs,Js)}return 0===t&&(Zs[0]=Zs[1]=qs[0]=qs[1]=0),new mr(Zs[0],Zs[1],qs[0]-Zs[0],qs[1]-Zs[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,r=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,h=0;h<e;){var d=t[h++],p=1===h;p&&(r=t[h],o=t[h+1],a=r,s=o);var f=-1;switch(d){case Ys.M:r=a=t[h++],o=s=t[h++];break;case Ys.L:var g=t[h++],v=t[h++],m=g-r,y=v-o;(rl(m)>n||rl(y)>i||h===e-1)&&(f=Math.sqrt(m*m+y*y),r=g,o=v);break;case Ys.C:var x=t[h++],b=t[h++],_=(g=t[h++],v=t[h++],t[h++]),w=t[h++];f=Ss(r,o,x,b,g,v,_,w,10),r=_,o=w;break;case Ys.Q:x=t[h++],b=t[h++],g=t[h++],v=t[h++];f=ks(r,o,x,b,g,v,10),r=g,o=v;break;case Ys.A:var S=t[h++],M=t[h++],I=t[h++],C=t[h++],T=t[h++],A=t[h++],D=A+T;h+=1;t[h++];p&&(a=el(T)*I+S,s=nl(T)*C+M),f=tl(I,C)*Qs(al,Math.abs(A)),r=el(D)*I+S,o=nl(D)*C+M;break;case Ys.R:a=r=t[h++],s=o=t[h++];var k=t[h++],L=t[h++];f=2*k+2*L;break;case Ys.Z:m=a-r,y=s-o;f=Math.sqrt(m*m+y*y),r=a,o=s;break}f>=0&&(l[c++]=f,u+=f)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,c,h,d,p=this.data,f=this._ux,g=this._uy,v=this._len,m=e<1,y=0,x=0,b=0;if(!m||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=this._pathLen,c=e*u,c))t:for(var _=0;_<v;){var w=p[_++],S=1===_;switch(S&&(r=p[_],o=p[_+1],n=r,i=o),w){case Ys.M:b>0&&(t.lineTo(h,d),b=0),n=r=p[_++],i=o=p[_++],t.moveTo(r,o);break;case Ys.L:a=p[_++],s=p[_++];var M=rl(a-r),I=rl(s-o);if(M>f||I>g){if(m){var C=l[x++];if(y+C>c){var T=(c-y)/C;t.lineTo(r*(1-T)+a*T,o*(1-T)+s*T);break t}y+=C}t.lineTo(a,s),r=a,o=s,b=0}else{var A=M*M+I*I;A>b&&(h=a,d=s,b=A)}break;case Ys.C:var D=p[_++],k=p[_++],L=p[_++],P=p[_++],O=p[_++],E=p[_++];if(m){C=l[x++];if(y+C>c){T=(c-y)/C;_s(r,D,L,O,T,Xs),_s(o,k,P,E,T,Us),t.bezierCurveTo(Xs[1],Us[1],Xs[2],Us[2],Xs[3],Us[3]);break t}y+=C}t.bezierCurveTo(D,k,L,P,O,E),r=O,o=E;break;case Ys.Q:D=p[_++],k=p[_++],L=p[_++],P=p[_++];if(m){C=l[x++];if(y+C>c){T=(c-y)/C;As(r,D,L,T,Xs),As(o,k,P,T,Us),t.quadraticCurveTo(Xs[1],Us[1],Xs[2],Us[2]);break t}y+=C}t.quadraticCurveTo(D,k,L,P),r=L,o=P;break;case Ys.A:var R=p[_++],N=p[_++],z=p[_++],B=p[_++],V=p[_++],F=p[_++],H=p[_++],$=!p[_++],W=z>B?z:B,G=rl(z-B)>.001,j=V+F,Y=!1;if(m){C=l[x++];y+C>c&&(j=V+F*(c-y)/C,Y=!0),y+=C}if(G&&t.ellipse?t.ellipse(R,N,z,B,H,V,j,$):t.arc(R,N,W,V,j,$),Y)break t;S&&(n=el(V)*z+R,i=nl(V)*B+N),r=el(j)*z+R,o=nl(j)*B+N;break;case Ys.R:n=r=p[_],i=o=p[_+1],a=p[_++],s=p[_++];var X=p[_++],U=p[_++];if(m){C=l[x++];if(y+C>c){var Z=c-y;t.moveTo(a,s),t.lineTo(a+Qs(Z,X),s),Z-=X,Z>0&&t.lineTo(a+X,s+Qs(Z,U)),Z-=U,Z>0&&t.lineTo(a+tl(X-Z,0),s+U),Z-=X,Z>0&&t.lineTo(a,s+tl(U-Z,0));break t}y+=C}t.rect(a,s,X,U);break;case Ys.Z:if(b>0&&(t.lineTo(h,d),b=0),m){C=l[x++];if(y+C>c){T=(c-y)/C;t.lineTo(r*(1-T)+n*T,o*(1-T)+i*T);break t}y+=C}t.closePath(),r=n,o=i}}},t.CMD=Ys,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._needsDash=!1,e._dashOffset=0,e._dashIdx=0,e._dashSum=0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),dl=hl;function pl(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0,u=t;if(a>e+s&&a>i+s||a<e-s&&a<i-s||o>t+s&&o>n+s||o<t-s&&o<n-s)return!1;if(t===n)return Math.abs(o-t)<=s/2;l=(e-i)/(t-n),u=(t*i-n*e)/(t-n);var c=l*o-a+u,h=c*c/(l*l+1);return h<=s/2*s/2}function fl(t,e,n,i,r,o,a,s,l,u,c){if(0===l)return!1;var h=l;if(c>e+h&&c>i+h&&c>o+h&&c>s+h||c<e-h&&c<i-h&&c<o-h&&c<s-h||u>t+h&&u>n+h&&u>r+h&&u>a+h||u<t-h&&u<n-h&&u<r-h&&u<a-h)return!1;var d=ws(t,e,n,i,r,o,a,s,u,c,null);return d<=h/2}function gl(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;if(l>e+u&&l>i+u&&l>o+u||l<e-u&&l<i-u&&l<o-u||s>t+u&&s>n+u&&s>r+u||s<t-u&&s<n-u&&s<r-u)return!1;var c=Ds(t,e,n,i,r,o,s,l,null);return c<=u/2}var vl=2*Math.PI;function ml(t){return t%=vl,t<0&&(t+=vl),t}var yl=2*Math.PI;function xl(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(i-r)%yl<1e-4)return!0;if(o){var h=i;i=ml(r),r=ml(h)}else i=ml(i),r=ml(r);i>r&&(r+=yl);var d=Math.atan2(l,s);return d<0&&(d+=yl),d>=i&&d<=r||d+yl>=i&&d+yl<=r}function bl(t,e,n,i,r,o){if(o>e&&o>i||o<e&&o<i)return 0;if(i===e)return 0;var a=(o-e)/(i-e),s=i<e?1:-1;1!==a&&0!==a||(s=i<e?.5:-.5);var l=a*(n-t)+t;return l===r?1/0:l>r?s:0}var _l=dl.CMD,wl=2*Math.PI,Sl=1e-4;function Ml(t,e){return Math.abs(t-e)<Sl}var Il=[-1,-1,-1],Cl=[-1,-1];function Tl(){var t=Cl[0];Cl[0]=Cl[1],Cl[1]=t}function Al(t,e,n,i,r,o,a,s,l,u){if(u>e&&u>i&&u>o&&u>s||u<e&&u<i&&u<o&&u<s)return 0;var c=xs(e,i,o,s,u,Il);if(0===c)return 0;for(var h=0,d=-1,p=void 0,f=void 0,g=0;g<c;g++){var v=Il[g],m=0===v||1===v?.5:1,y=ms(t,n,r,a,v);y<l||(d<0&&(d=bs(e,i,o,s,Cl),Cl[1]<Cl[0]&&d>1&&Tl(),p=ms(e,i,o,s,Cl[0]),d>1&&(f=ms(e,i,o,s,Cl[1]))),2===d?v<Cl[0]?h+=p<e?m:-m:v<Cl[1]?h+=f<p?m:-m:h+=s<f?m:-m:v<Cl[0]?h+=p<e?m:-m:h+=s<p?m:-m)}return h}function Dl(t,e,n,i,r,o,a,s){if(s>e&&s>i&&s>o||s<e&&s<i&&s<o)return 0;var l=Cs(e,i,o,s,Il);if(0===l)return 0;var u=Ts(e,i,o);if(u>=0&&u<=1){for(var c=0,h=Ms(e,i,o,u),d=0;d<l;d++){var p=0===Il[d]||1===Il[d]?.5:1,f=Ms(t,n,r,Il[d]);f<a||(Il[d]<u?c+=h<e?p:-p:c+=o<h?p:-p)}return c}p=0===Il[0]||1===Il[0]?.5:1,f=Ms(t,n,r,Il[0]);return f<a?0:o<e?p:-p}function kl(t,e,n,i,r,o,a,s){if(s-=e,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Il[0]=-l,Il[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=wl-1e-4){i=0,r=wl;var c=o?1:-1;return a>=Il[0]+t&&a<=Il[1]+t?c:0}if(i>r){var h=i;i=r,r=h}i<0&&(i+=wl,r+=wl);for(var d=0,p=0;p<2;p++){var f=Il[p];if(f+t>a){var g=Math.atan2(s,f);c=o?1:-1;g<0&&(g=wl+g),(g>=i&&g<=r||g+wl>=i&&g+wl<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),d+=c)}}return d}function Ll(t,e,n,i,r){for(var o,a,s=t.data,l=t.len(),u=0,c=0,h=0,d=0,p=0,f=0;f<l;){var g=s[f++],v=1===f;switch(g===_l.M&&f>1&&(n||(u+=bl(c,h,d,p,i,r))),v&&(c=s[f],h=s[f+1],d=c,p=h),g){case _l.M:d=s[f++],p=s[f++],c=d,h=p;break;case _l.L:if(n){if(pl(c,h,s[f],s[f+1],e,i,r))return!0}else u+=bl(c,h,s[f],s[f+1],i,r)||0;c=s[f++],h=s[f++];break;case _l.C:if(n){if(fl(c,h,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],e,i,r))return!0}else u+=Al(c,h,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],i,r)||0;c=s[f++],h=s[f++];break;case _l.Q:if(n){if(gl(c,h,s[f++],s[f++],s[f],s[f+1],e,i,r))return!0}else u+=Dl(c,h,s[f++],s[f++],s[f],s[f+1],i,r)||0;c=s[f++],h=s[f++];break;case _l.A:var m=s[f++],y=s[f++],x=s[f++],b=s[f++],_=s[f++],w=s[f++];f+=1;var S=!!(1-s[f++]);o=Math.cos(_)*x+m,a=Math.sin(_)*b+y,v?(d=o,p=a):u+=bl(c,h,o,a,i,r);var M=(i-m)*b/x+m;if(n){if(xl(m,y,b,_,_+w,S,e,M,r))return!0}else u+=kl(m,y,b,_,_+w,S,M,r);c=Math.cos(_+w)*x+m,h=Math.sin(_+w)*b+y;break;case _l.R:d=c=s[f++],p=h=s[f++];var I=s[f++],C=s[f++];if(o=d+I,a=p+C,n){if(pl(d,p,o,p,e,i,r)||pl(o,p,o,a,e,i,r)||pl(o,a,d,a,e,i,r)||pl(d,a,d,p,e,i,r))return!0}else u+=bl(o,p,o,a,i,r),u+=bl(d,a,d,p,i,r);break;case _l.Z:if(n){if(pl(c,h,d,p,e,i,r))return!0}else u+=bl(c,h,d,p,i,r);c=d,h=p;break}}return n||Ml(h,p)||(u+=bl(c,h,d,p,i,r)||0),0!==u}function Pl(t,e,n){return Ll(t,0,!1,e,n)}function Ol(t,e,n,i){return Ll(t,e,!0,n,i)}var El=W({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Ka),Rl={style:W({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ja.style)},Nl=["x","y","rotation","scaleX","scaleY","originX","originY","invisible","culling","z","z2","zlevel","parent"],zl=function(t){function e(e){return t.call(this,e)||this}return v(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new e;r.buildPath===e.prototype.buildPath&&(r.buildPath=function(t){n.buildPath(t,n.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s<Nl.length;++s)r[Nl[s]]=this[Nl[s]];r.__dirty|=en}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var n=tt(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var r=0;r<n.length;r++){var o=n[r],a=e[o];"style"===o?this.style?$(this.style,a):this.useStyle(a):"shape"===o?$(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(at(t)){var e=jn(t,0);return e>.5?zi:e>.2?Vi:Bi}if(t)return Bi}return zi},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(at(e)){var n=this.__zr,i=!(!n||!n.isDarkMode()),r=jn(t,0)<Ni;if(i===r)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=~rn},e.prototype.createPathProxy=function(){this.path=new dl(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&rn)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),Ol(o,a/s,t,e)))return!0}if(this.hasFill())return Pl(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=rn,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"===typeof t?n[t]=e:$(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&rn)},e.prototype.createStyle=function(t){return kt(El,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=$({},this.shape))},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=$({},i.shape),$(s,n.shape)):(s=$({},r?this.shape:i.shape),$(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=$({},this.shape);for(var u={},c=tt(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(e,{shape:u},a)}else this.shape=s,this.dirtyShape()},e.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},e.prototype.getAnimationStyleProps=function(){return Rl},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=function(e){function n(n){var i=e.call(this,n)||this;return t.init&&t.init.call(i,n),i}return v(n,e),n.prototype.getDefaultStyle=function(){return V(t.style)},n.prototype.getDefaultShape=function(){return V(t.shape)},n}(e);for(var i in t)"function"===typeof t[i]&&(n.prototype[i]=t[i]);return n},e.initDefaultProps=function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=en|nn|rn}(),e}(os),Bl=zl,Vl=W({strokeFirst:!0,font:xr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},El),Fl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.createStyle=function(t){return kt(Vl,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=Mr(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(os);Fl.prototype.type="tspan";var Hl=Fl,$l=W({x:0,y:0},Ka),Wl={style:W({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ja.style)};function Gl(t){return!!(t&&"string"!==typeof t&&t.width&&t.height)}var jl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e.prototype.createStyle=function(t){return kt($l,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i=Gl(e.image)?e.image:this.__image;if(!i)return 0;var r="width"===t?"height":"width",o=e[r];return null==o?i[t]:i[t]/i[r]*o},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return Wl},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new mr(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(os);jl.prototype.type="image";var Yl=jl;function Xl(t,e){var n,i,r,o,a,s=e.x,l=e.y,u=e.width,c=e.height,h=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"===typeof h?n=i=r=o=h:h instanceof Array?1===h.length?n=i=r=o=h[0]:2===h.length?(n=r=h[0],i=o=h[1]):3===h.length?(n=h[0],i=o=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],o=h[3]):n=i=r=o=0,n+i>u&&(a=n+i,n*=u/a,i*=u/a),r+o>u&&(a=r+o,r*=u/a,o*=u/a),i+r>c&&(a=i+r,i*=c/a,r*=c/a),n+o>c&&(a=n+o,n*=c/a,o*=c/a),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.arc(s+u-i,l+i,i,-Math.PI/2,0),t.lineTo(s+u,l+c-r),0!==r&&t.arc(s+u-r,l+c-r,r,0,Math.PI/2),t.lineTo(s+o,l+c),0!==o&&t.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}var Ul=Math.round;function Zl(t,e,n){if(e){var i=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=r,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(Ul(2*i)===Ul(2*r)&&(t.x1=t.x2=Kl(i,s,!0)),Ul(2*o)===Ul(2*a)&&(t.y1=t.y2=Kl(o,s,!0)),t):t}}function ql(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,a=e.height;t.x=i,t.y=r,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=Kl(i,s,!0),t.y=Kl(r,s,!0),t.width=Math.max(Kl(i+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(Kl(r+a,s,!1)-t.y,0===a?0:1),t):t}}function Kl(t,e,n){if(!e)return t;var i=Ul(2*t);return(i+Ul(e))%2===0?i/2:(i+(n?1:-1))/2}var Jl=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),Ql={},tu=function(t){function e(e){return t.call(this,e)||this}return v(e,t),e.prototype.getDefaultShape=function(){return new Jl},e.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=ql(Ql,e,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,i=e.y,r=e.width,o=e.height;e.r?Xl(t,e):t.rect(n,i,r,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Bl);tu.prototype.type="rect";var eu=tu,nu={fill:"#000"},iu=2,ru={style:W({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},Ja.style)},ou=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=nu,n.attr(e),n}return v(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];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 i=this.attachedTransform;if(i){i.updateTransform();var r=i.transform;r?(this.transform=this.transform||[],$i(this.transform,r)):this.transform=null}else t.prototype.update.call(this)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),this.attachedTransform?this.attachedTransform.getComputedTransform():t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,lu(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new mr(0,0,0,0),e=this._children,n=[],i=null,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(t.copy(a),t.applyTransform(s),i=i||t.clone(),i.union(t)):(i=i||a.clone(),i.union(a))}this._rect=i||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||nu},e.prototype.setTextContent=function(t){throw new Error("Can't attach text on another text")},e.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,i=t.rich||n&&{};return $(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i),t},e.prototype._mergeRich=function(t,e){for(var n=tt(e),i=0;i<n.length;i++){var r=n[i];t[r]=t[r]||{},$(t[r],e[r])}},e.prototype.getAnimationStyleProps=function(){return ru},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||xr,n=t.padding,i=pu(t),r=Fa(i,t),o=fu(t),a=!!t.backgroundColor,s=r.outerHeight,l=r.lines,u=r.lineHeight,c=this._defaultStyle,h=t.x||0,d=t.y||0,p=t.align||c.align||"left",f=t.verticalAlign||c.verticalAlign||"top",g=h,v=Cr(d,r.contentHeight,f);if(o||n){var m=r.width;n&&(m+=n[1]+n[3]);var y=Ir(h,m,p),x=Cr(d,s,f);o&&this._renderBackground(t,t,y,x,m,s)}v+=u/2,n&&(g=du(h,p,n),"top"===f?v+=n[0]:"bottom"===f&&(v-=n[2]));for(var b=0,_=!1,w=(hu("fill"in t?t.fill:(_=!0,c.fill))),S=(cu("stroke"in t?t.stroke:a||c.autoStroke&&!_?null:(b=iu,c.stroke))),M=t.textShadowBlur>0,I=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),C=r.calculatedLineHeight,T=0;T<l.length;T++){var A=this._getOrCreateChild(Hl),D=A.createStyle();A.useStyle(D),D.text=l[T],D.x=g,D.y=v,p&&(D.textAlign=p),D.textBaseline="middle",D.opacity=t.opacity,D.strokeFirst=!0,M&&(D.shadowBlur=t.textShadowBlur||0,D.shadowColor=t.textShadowColor||"transparent",D.shadowOffsetX=t.textShadowOffsetX||0,D.shadowOffsetY=t.textShadowOffsetY||0),S&&(D.stroke=S,D.lineWidth=t.lineWidth||b,D.lineDash=t.lineDash,D.lineDashOffset=t.lineDashOffset||0),w&&(D.fill=w),D.font=e,v+=u,I&&A.setBoundingRect(new mr(Ir(D.x,t.width,D.textAlign),Cr(D.y,C,D.textBaseline),t.width,C))}},e.prototype._updateRichTexts=function(){var t=this.style,e=pu(t),n=Ga(e,t),i=n.width,r=n.outerWidth,o=n.outerHeight,a=t.padding,s=t.x||0,l=t.y||0,u=this._defaultStyle,c=t.align||u.align,h=t.verticalAlign||u.verticalAlign,d=Ir(s,r,c),p=Cr(l,o,h),f=d,g=p;a&&(f+=a[3],g+=a[0]);var v=f+i;fu(t)&&this._renderBackground(t,t,d,p,r,o);for(var m=!!t.backgroundColor,y=0;y<n.lines.length;y++){var x=n.lines[y],b=x.tokens,_=b.length,w=x.lineHeight,S=x.width,M=0,I=f,C=v,T=_-1,A=void 0;while(M<_&&(A=b[M],!A.align||"left"===A.align))this._placeToken(A,t,w,g,I,"left",m),S-=A.width,I+=A.width,M++;while(T>=0&&(A=b[T],"right"===A.align))this._placeToken(A,t,w,g,C,"right",m),S-=A.width,C-=A.width,T--;I+=(i-(I-f)-(v-C)-S)/2;while(M<=T)A=b[M],this._placeToken(A,t,w,g,I+A.width/2,"center",m),I+=A.width,M++;g+=w}},e.prototype._placeToken=function(t,e,n,i,r,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=i+n/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2);var c=!t.isLineHolder&&fu(s);c&&this._renderBackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,u-t.height/2,t.width,t.height);var h=!!s.backgroundColor,d=t.textPadding;d&&(r=du(r,o,d),u-=t.height/2-d[0]-t.innerHeight/2);var p=this._getOrCreateChild(Hl),f=p.createStyle();p.useStyle(f);var g=this._defaultStyle,v=!1,m=0,y=cu("fill"in s?s.fill:"fill"in e?e.fill:(v=!0,g.fill)),x=cu("stroke"in s?s.stroke:"stroke"in e?e.stroke:h||a||g.autoStroke&&!v?null:(m=iu,g.stroke)),b=s.textShadowBlur>0||e.textShadowBlur>0;f.text=t.text,f.x=r,f.y=u,b&&(f.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,f.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",f.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,f.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),f.textAlign=o,f.textBaseline="middle",f.font=t.font||xr,f.opacity=xt(s.opacity,e.opacity,1),x&&(f.lineWidth=xt(s.lineWidth,e.lineWidth,m),f.lineDash=yt(s.lineDash,e.lineDash),f.lineDashOffset=e.lineDashOffset||0,f.stroke=x),y&&(f.fill=y);var _=t.contentWidth,w=t.contentHeight;p.setBoundingRect(new mr(Ir(f.x,_,f.textAlign),Cr(f.y,w,f.textBaseline),_,w))},e.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,h=l&&l.image,d=l&&!h,p=t.borderRadius,f=this;if(d||u&&c){a=this._getOrCreateChild(eu),a.useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=n,g.y=i,g.width=r,g.height=o,g.r=p,a.dirtyShape()}if(d){var v=a.style;v.fill=l||null,v.fillOpacity=yt(t.fillOpacity,1)}else if(h){s=this._getOrCreateChild(Yl),s.onload=function(){f.dirtyStyle()};var m=s.style;m.image=l.image,m.x=n,m.y=i,m.width=r,m.height=o}if(u&&c){v=a.style;v.lineWidth=u,v.stroke=c,v.strokeOpacity=yt(t.strokeOpacity,1),v.lineDash=t.borderDash,v.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(v.strokeFirst=!0,v.lineWidth*=2)}var y=(a||s).style;y.shadowBlur=t.shadowBlur||0,y.shadowColor=t.shadowColor||"transparent",y.shadowOffsetX=t.shadowOffsetX||0,y.shadowOffsetY=t.shadowOffsetY||0,y.opacity=xt(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";if(t.fontSize||t.fontFamily||t.fontWeight){var n="";n="string"!==typeof t.fontSize||-1===t.fontSize.indexOf("px")&&-1===t.fontSize.indexOf("rem")&&-1===t.fontSize.indexOf("em")?isNaN(+t.fontSize)?"12px":t.fontSize+"px":t.fontSize,e=[t.fontStyle,t.fontWeight,n,t.fontFamily||"sans-serif"].join(" ")}return e&&St(e)||t.textFont||t.font},e}(os),au={left:!0,right:1,center:1},su={top:1,bottom:1,middle:1};function lu(t){return uu(t),Z(t.rich,uu),t}function uu(t){if(t){t.font=ou.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||au[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||su[n]?n:"top";var i=t.padding;i&&(t.padding=_t(t.padding))}}function cu(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function hu(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function du(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function pu(t){var e=t.text;return null!=e&&(e+=""),e}function fu(t){return!!(t.backgroundColor||t.borderWidth&&t.borderColor)}var gu=ou,vu=ta(),mu=1,yu={},xu=ta(),bu=0,_u=1,wu=2,Su=["emphasis","blur","select"],Mu=["normal","emphasis","blur","select"],Iu=10,Cu=9,Tu="highlight",Au="downplay",Du="select",ku="unselect",Lu="toggleSelect";function Pu(t){return null!=t&&"none"!==t}var Ou=new xn(100);function Eu(t){if("string"!==typeof t)return t;var e=Ou.get(t);return e||(e=Nn(t,-.1),Ou.put(t,e)),e}function Ru(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function Nu(t){Ru(t,"emphasis",wu)}function zu(t){t.hoverState===wu&&Ru(t,"normal",bu)}function Bu(t){Ru(t,"blur",_u)}function Vu(t){t.hoverState===_u&&Ru(t,"normal",bu)}function Fu(t){t.selected=!0}function Hu(t){t.selected=!1}function $u(t,e,n){e(t,n)}function Wu(t,e,n){$u(t,e,n),t.isGroup&&t.traverse((function(t){$u(t,e,n)}))}function Gu(t,e){switch(e){case"emphasis":t.hoverState=wu;break;case"normal":t.hoverState=bu;break;case"blur":t.hoverState=_u;break;case"select":t.selected=!0}}function ju(t,e,n,i){for(var r=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=r[s];o[s]=null==l?i&&i[s]:l}for(a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveFinalToTarget(o,e)}return o}function Yu(t,e,n,i){var r=n&&j(n,"select")>=0,o=!1;if(t instanceof Bl){var a=xu(t),s=r&&a.selectFill||a.normalFill,l=r&&a.selectStroke||a.normalStroke;if(Pu(s)||Pu(l)){i=i||{};var u=i.style||{};!Pu(u.fill)&&Pu(s)?(o=!0,i=$({},i),u=$({},u),u.fill=Eu(s)):!Pu(u.stroke)&&Pu(l)&&(o||(i=$({},i),u=$({},u)),u.stroke=Eu(l)),i.style=u}}if(i&&null==i.z2){o||(i=$({},i));var c=t.z2EmphasisLift;i.z2=t.z2+(null!=c?c:Iu)}return i}function Xu(t,e,n){if(n&&null==n.z2){n=$({},n);var i=t.z2SelectLift;n.z2=t.z2+(null!=i?i:Cu)}return n}function Uu(t,e,n){var i=j(t.currentStates,e)>=0,r=t.style.opacity,o=i?null:ju(t,["opacity"],e,{opacity:1});n=n||{};var a=n.style||{};return null==a.opacity&&(n=$({},n),a=$({opacity:i?r:.1*o.opacity},a),n.style=a),n}function Zu(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return Yu(this,t,e,n);if("blur"===t)return Uu(this,t,n);if("select"===t)return Xu(this,t,n)}return n}function qu(t){t.stateProxy=Zu;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=Zu),n&&(n.stateProxy=Zu)}function Ku(t,e){!oc(t,e)&&!t.__highByOuter&&Wu(t,Nu)}function Ju(t,e){!oc(t,e)&&!t.__highByOuter&&Wu(t,zu)}function Qu(t,e){t.__highByOuter|=1<<(e||0),Wu(t,Nu)}function tc(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Wu(t,zu)}function ec(t){Wu(t,Bu)}function nc(t){Wu(t,Vu)}function ic(t){Wu(t,Fu)}function rc(t){Wu(t,Hu)}function oc(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function ac(t){var e=t.getModel();e.eachComponent((function(e,n){var i="series"===e?t.getViewOfSeriesModel(n):t.getViewOfComponentModel(n);i.group.traverse((function(t){Vu(t)}))}))}function sc(t,e,n,i){var r=i.getModel();function o(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&nc(i)}}if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var a=r.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];r.eachSeries((function(t){var r=a===t,u=t.coordinateSystem;u&&u.master&&(u=u.master);var c=u&&s?u===s:r;if(!("series"===n&&!r||"coordinateSystem"===n&&!c||"series"===e&&r)){var h=i.getViewOfSeriesModel(t);if(h.group.traverse((function(t){Bu(t)})),U(e))o(t.getData(),e);else if(ut(e))for(var d=tt(e),p=0;p<d.length;p++)o(t.getData(d[p]),e[d[p]]);l.push(t)}})),r.eachComponent((function(t,e){if("series"!==t){var n=i.getViewOfComponentModel(e);n&&n.blurSeries&&n.blurSeries(l,r)}}))}}function lc(t,e,n){if(null!=t&&null!=e){var i=n.getModel().getComponent(t,e);if(i){var r=n.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse((function(t){Bu(t)}))}}}function uc(t,e,n){var i=t.seriesIndex,r=t.getData(e.dataType),o=Qo(r,e);o=(rt(o)?o[0]:o)||0;var a=r.getItemGraphicEl(o);if(!a){var s=r.count(),l=0;while(!a&&l<s)a=r.getItemGraphicEl(l++)}if(a){var u=vu(a);sc(i,u.focus,u.blurScope,n)}else{var c=t.get(["emphasis","focus"]),h=t.get(["emphasis","blurScope"]);null!=c&&sc(i,c,h,n)}}function cc(t,e,n,i){var r={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return r;var o=i.getModel().getComponent(t,e);if(!o)return r;var a=i.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return r;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===vu(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function hc(t,e,n){var i=vu(t),r=cc(i.componentMainType,i.componentIndex,i.componentHighDownName,n),o=r.dispatchers,a=r.focusSelf;o?(a&&lc(i.componentMainType,i.componentIndex,n),Z(o,(function(t){return Ku(t,e)}))):(sc(i.seriesIndex,i.focus,i.blurScope,n),"self"===i.focus&&lc(i.componentMainType,i.componentIndex,n),Ku(t,e))}function dc(t,e,n){ac(n);var i=vu(t),r=cc(i.componentMainType,i.componentIndex,i.componentHighDownName,n).dispatchers;r?Z(r,(function(t){return Ju(t,e)})):Ju(t,e)}function pc(t,e,n){if(Ic(e)){var i=e.dataType,r=t.getData(i),o=Qo(r,e);rt(o)||(o=[o]),t[e.type===Lu?"toggleSelect":e.type===Du?"select":"unselect"](o,i)}}function fc(t){var e=t.getAllData();Z(e,(function(e){var n=e.data,i=e.type;n.eachItemGraphicEl((function(e,n){t.isSelected(n,i)?ic(e):rc(e)}))}))}function gc(t){var e=[];return t.eachSeries((function(t){var n=t.getAllData();Z(n,(function(n){n.data;var i=n.type,r=t.getSelectedDataIndices();if(r.length>0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),e.push(o)}}))})),e}function vc(t,e,n){_c(t,!0),Wu(t,qu),mc(t,e,n)}function mc(t,e,n){var i=vu(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}var yc=["emphasis","blur","select"],xc={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function bc(t,e,n,i){n=n||"itemStyle";for(var r=0;r<yc.length;r++){var o=yc[r],a=e.getModel([o,n]),s=t.ensureState(o);s.style=i?i(a):a[xc[n]]()}}function _c(t,e){var n=!1===e,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),n&&!i.__highDownDispatcher||(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function wc(t){return!(!t||!t.__highDownDispatcher)}function Sc(t,e,n){var i=vu(t);i.componentMainType=e.mainType,i.componentIndex=e.componentIndex,i.componentHighDownName=n}function Mc(t){var e=yu[t];return null==e&&mu<=32&&(e=yu[t]=mu++),e}function Ic(t){var e=t.type;return e===Du||e===ku||e===Lu}function Cc(t){var e=t.type;return e===Tu||e===Au}function Tc(t){var e=xu(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}var Ac=dl.CMD,Dc=[[],[],[]],kc=Math.sqrt,Lc=Math.atan2;function Pc(t,e){var n,i,r,o,a,s,l=t.data,u=t.len(),c=Ac.M,h=Ac.C,d=Ac.L,p=Ac.R,f=Ac.A,g=Ac.Q;for(r=0,o=0;r<u;){switch(n=l[r++],o=r,i=0,n){case c:i=1;break;case d:i=1;break;case h:i=3;break;case g:i=2;break;case f:var v=e[4],m=e[5],y=kc(e[0]*e[0]+e[1]*e[1]),x=kc(e[2]*e[2]+e[3]*e[3]),b=Lc(-e[1]/x,e[0]/y);l[r]*=y,l[r++]+=v,l[r]*=x,l[r++]+=m,l[r++]*=y,l[r++]*=x,l[r++]+=b,l[r++]+=b,r+=2,o=r;break;case p:s[0]=l[r++],s[1]=l[r++],ee(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],ee(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<i;a++){var _=Dc[a];_[0]=l[r++],_[1]=l[r++],ee(_,_,e),l[o++]=_[0],l[o++]=_[1]}}t.increaseVersion()}var Oc=Math.sqrt,Ec=Math.sin,Rc=Math.cos,Nc=Math.PI;function zc(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Bc(t,e){return(t[0]*e[0]+t[1]*e[1])/(zc(t)*zc(e))}function Vc(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Bc(t,e))}function Fc(t,e,n,i,r,o,a,s,l,u,c){var h=l*(Nc/180),d=Rc(h)*(t-n)/2+Ec(h)*(e-i)/2,p=-1*Ec(h)*(t-n)/2+Rc(h)*(e-i)/2,f=d*d/(a*a)+p*p/(s*s);f>1&&(a*=Oc(f),s*=Oc(f));var g=(r===o?-1:1)*Oc((a*a*(s*s)-a*a*(p*p)-s*s*(d*d))/(a*a*(p*p)+s*s*(d*d)))||0,v=g*a*p/s,m=g*-s*d/a,y=(t+n)/2+Rc(h)*v-Ec(h)*m,x=(e+i)/2+Ec(h)*v+Rc(h)*m,b=Vc([1,0],[(d-v)/a,(p-m)/s]),_=[(d-v)/a,(p-m)/s],w=[(-1*d-v)/a,(-1*p-m)/s],S=Vc(_,w);if(Bc(_,w)<=-1&&(S=Nc),Bc(_,w)>=1&&(S=0),S<0){var M=Math.round(S/Nc*1e6)/1e6;S=2*Nc+M%2*Nc}c.addData(u,y,x,a,s,b,S,h,o)}var Hc=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,$c=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Wc(t){var e=new dl;if(!t)return e;var n,i=0,r=0,o=i,a=r,s=dl.CMD,l=t.match(Hc);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),d=void 0,p=c.match($c)||[],f=p.length,g=0;g<f;g++)p[g]=parseFloat(p[g]);var v=0;while(v<f){var m=void 0,y=void 0,x=void 0,b=void 0,_=void 0,w=void 0,S=void 0,M=i,I=r,C=void 0,T=void 0;switch(h){case"l":i+=p[v++],r+=p[v++],d=s.L,e.addData(d,i,r);break;case"L":i=p[v++],r=p[v++],d=s.L,e.addData(d,i,r);break;case"m":i+=p[v++],r+=p[v++],d=s.M,e.addData(d,i,r),o=i,a=r,h="l";break;case"M":i=p[v++],r=p[v++],d=s.M,e.addData(d,i,r),o=i,a=r,h="L";break;case"h":i+=p[v++],d=s.L,e.addData(d,i,r);break;case"H":i=p[v++],d=s.L,e.addData(d,i,r);break;case"v":r+=p[v++],d=s.L,e.addData(d,i,r);break;case"V":r=p[v++],d=s.L,e.addData(d,i,r);break;case"C":d=s.C,e.addData(d,p[v++],p[v++],p[v++],p[v++],p[v++],p[v++]),i=p[v-2],r=p[v-1];break;case"c":d=s.C,e.addData(d,p[v++]+i,p[v++]+r,p[v++]+i,p[v++]+r,p[v++]+i,p[v++]+r),i+=p[v-2],r+=p[v-1];break;case"S":m=i,y=r,C=e.len(),T=e.data,n===s.C&&(m+=i-T[C-4],y+=r-T[C-3]),d=s.C,M=p[v++],I=p[v++],i=p[v++],r=p[v++],e.addData(d,m,y,M,I,i,r);break;case"s":m=i,y=r,C=e.len(),T=e.data,n===s.C&&(m+=i-T[C-4],y+=r-T[C-3]),d=s.C,M=i+p[v++],I=r+p[v++],i+=p[v++],r+=p[v++],e.addData(d,m,y,M,I,i,r);break;case"Q":M=p[v++],I=p[v++],i=p[v++],r=p[v++],d=s.Q,e.addData(d,M,I,i,r);break;case"q":M=p[v++]+i,I=p[v++]+r,i+=p[v++],r+=p[v++],d=s.Q,e.addData(d,M,I,i,r);break;case"T":m=i,y=r,C=e.len(),T=e.data,n===s.Q&&(m+=i-T[C-4],y+=r-T[C-3]),i=p[v++],r=p[v++],d=s.Q,e.addData(d,m,y,i,r);break;case"t":m=i,y=r,C=e.len(),T=e.data,n===s.Q&&(m+=i-T[C-4],y+=r-T[C-3]),i+=p[v++],r+=p[v++],d=s.Q,e.addData(d,m,y,i,r);break;case"A":x=p[v++],b=p[v++],_=p[v++],w=p[v++],S=p[v++],M=i,I=r,i=p[v++],r=p[v++],d=s.A,Fc(M,I,i,r,w,S,x,b,_,d,e);break;case"a":x=p[v++],b=p[v++],_=p[v++],w=p[v++],S=p[v++],M=i,I=r,i+=p[v++],r+=p[v++],d=s.A,Fc(M,I,i,r,w,S,x,b,_,d,e);break}}"z"!==h&&"Z"!==h||(d=s.Z,e.addData(d),i=o,r=a),n=d}return e.toStatic(),e}var Gc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e.prototype.applyTransform=function(t){},e}(Bl);function jc(t){return null!=t.setData}function Yc(t,e){var n=Wc(t),i=$({},e);return i.buildPath=function(t){if(jc(t)){t.setData(n.data);var e=t.getContext();e&&t.rebuildPath(e,1)}else{e=t;n.rebuildPath(e,1)}},i.applyTransform=function(t){Pc(n,t),this.dirtyShape()},i}function Xc(t,e){return new Gc(Yc(t,e))}function Uc(t,e){var n=Yc(t,e),i=function(t){function e(e){var i=t.call(this,e)||this;return i.applyTransform=n.applyTransform,i.buildPath=n.buildPath,i}return v(e,t),e}(Gc);return i}function Zc(t,e){for(var n=[],i=t.length,r=0;r<i;r++){var o=t[r];o.path||o.createPathProxy(),o.shapeChanged()&&o.buildPath(o.path,o.shape,!0),n.push(o.path)}var a=new Bl(e);return a.createPathProxy(),a.buildPath=function(t){if(jc(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a}var qc=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),Kc=function(t){function e(e){return t.call(this,e)||this}return v(e,t),e.prototype.getDefaultShape=function(){return new qc},e.prototype.buildPath=function(t,e,n){n&&t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(Bl);Kc.prototype.type="circle";var Jc=Kc,Qc=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),th=function(t){function e(e){return t.call(this,e)||this}return v(e,t),e.prototype.getDefaultShape=function(){return new Qc},e.prototype.buildPath=function(t,e){var n=.5522848,i=e.cx,r=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(i-o,r),t.bezierCurveTo(i-o,r-l,i-s,r-a,i,r-a),t.bezierCurveTo(i+s,r-a,i+o,r-l,i+o,r),t.bezierCurveTo(i+o,r+l,i+s,r+a,i,r+a),t.bezierCurveTo(i-s,r+a,i-o,r+l,i-o,r),t.closePath()},e}(Bl);th.prototype.type="ellipse";var eh=th,nh=Math.PI,ih=2*nh,rh=Math.sin,oh=Math.cos,ah=Math.acos,sh=Math.atan2,lh=Math.abs,uh=Math.sqrt,ch=Math.max,hh=Math.min,dh=1e-4;function ph(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,c=a-r,h=s-o,d=h*l-c*u;if(!(d*d<dh))return d=(c*(e-o)-h*(t-r))/d,[t+d*l,e+d*u]}function fh(t,e,n,i,r,o,a){var s=t-n,l=e-i,u=(a?o:-o)/uh(s*s+l*l),c=u*l,h=-u*s,d=t+c,p=e+h,f=n+c,g=i+h,v=(d+f)/2,m=(p+g)/2,y=f-d,x=g-p,b=y*y+x*x,_=r-o,w=d*g-f*p,S=(x<0?-1:1)*uh(ch(0,_*_*b-w*w)),M=(w*x-y*S)/b,I=(-w*y-x*S)/b,C=(w*x+y*S)/b,T=(-w*y+x*S)/b,A=M-v,D=I-m,k=C-v,L=T-m;return A*A+D*D>k*k+L*L&&(M=C,I=T),{cx:M,cy:I,x01:-c,y01:-h,x11:M*(r/_-1),y11:I*(r/_-1)}}function gh(t,e){var n=ch(e.r,0),i=ch(e.r0||0,0),r=n>0,o=i>0;if(r||o){if(r||(n=i,i=0),i>n){var a=n;n=i,i=a}var s,l=!!e.clockwise,u=e.startAngle,c=e.endAngle;if(u===c)s=0;else{var h=[u,c];cl(h,!l),s=lh(h[0]-h[1])}var d=e.cx,p=e.cy,f=e.cornerRadius||0,g=e.innerCornerRadius||0;if(n>dh)if(s>ih-dh)t.moveTo(d+n*oh(u),p+n*rh(u)),t.arc(d,p,n,u,c,!l),i>dh&&(t.moveTo(d+i*oh(c),p+i*rh(c)),t.arc(d,p,i,c,u,l));else{var v=lh(n-i)/2,m=hh(v,f),y=hh(v,g),x=y,b=m,_=n*oh(u),w=n*rh(u),S=i*oh(c),M=i*rh(c),I=void 0,C=void 0,T=void 0,A=void 0;if((m>dh||y>dh)&&(I=n*oh(c),C=n*rh(c),T=i*oh(u),A=i*rh(u),s<nh)){var D=ph(_,w,T,A,I,C,S,M);if(D){var k=_-D[0],L=w-D[1],P=I-D[0],O=C-D[1],E=1/rh(ah((k*P+L*O)/(uh(k*k+L*L)*uh(P*P+O*O)))/2),R=uh(D[0]*D[0]+D[1]*D[1]);x=hh(y,(i-R)/(E-1)),b=hh(m,(n-R)/(E+1))}}if(s>dh)if(b>dh){var N=fh(T,A,_,w,n,b,l),z=fh(I,C,S,M,n,b,l);t.moveTo(d+N.cx+N.x01,p+N.cy+N.y01),b<m?t.arc(d+N.cx,p+N.cy,b,sh(N.y01,N.x01),sh(z.y01,z.x01),!l):(t.arc(d+N.cx,p+N.cy,b,sh(N.y01,N.x01),sh(N.y11,N.x11),!l),t.arc(d,p,n,sh(N.cy+N.y11,N.cx+N.x11),sh(z.cy+z.y11,z.cx+z.x11),!l),t.arc(d+z.cx,p+z.cy,b,sh(z.y11,z.x11),sh(z.y01,z.x01),!l))}else t.moveTo(d+_,p+w),t.arc(d,p,n,u,c,!l);else t.moveTo(d+_,p+w);if(i>dh&&s>dh)if(x>dh){N=fh(S,M,I,C,i,-x,l),z=fh(_,w,T,A,i,-x,l);t.lineTo(d+N.cx+N.x01,p+N.cy+N.y01),x<y?t.arc(d+N.cx,p+N.cy,x,sh(N.y01,N.x01),sh(z.y01,z.x01),!l):(t.arc(d+N.cx,p+N.cy,x,sh(N.y01,N.x01),sh(N.y11,N.x11),!l),t.arc(d,p,i,sh(N.cy+N.y11,N.cx+N.x11),sh(z.cy+z.y11,z.cx+z.x11),l),t.arc(d+z.cx,p+z.cy,x,sh(z.y11,z.x11),sh(z.y01,z.x01),!l))}else t.lineTo(d+S,p+M),t.arc(d,p,i,c,u,l);else t.lineTo(d+S,p+M)}else t.moveTo(d,p);t.closePath()}}var vh=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0,this.innerCornerRadius=0}return t}(),mh=function(t){function e(e){return t.call(this,e)||this}return v(e,t),e.prototype.getDefaultShape=function(){return new vh},e.prototype.buildPath=function(t,e){gh(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Bl);mh.prototype.type="sector";var yh=mh,xh=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),bh=function(t){function e(e){return t.call(this,e)||this}return v(e,t),e.prototype.getDefaultShape=function(){return new xh},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},e}(Bl);bh.prototype.type="ring";var _h=bh;function wh(t,e,n,i,r,o,a){var s=.5*(n-t),l=.5*(i-e);return(2*(e-n)+s+l)*a+(-3*(e-n)-2*s-l)*o+s*r+e}function Sh(t,e){for(var n=t.length,i=[],r=0,o=1;o<n;o++)r+=Zt(t[o-1],t[o]);var a=r/2;a=a<n?n:a;for(o=0;o<a;o++){var s=o/(a-1)*(e?n:n-1),l=Math.floor(s),u=s-l,c=void 0,h=t[l%n],d=void 0,p=void 0;e?(c=t[(l-1+n)%n],d=t[(l+1)%n],p=t[(l+2)%n]):(c=t[0===l?l:l-1],d=t[l>n-2?n-1:l+1],p=t[l>n-3?n-1:l+2]);var f=u*u,g=u*f;i.push([wh(c[0],h[0],d[0],p[0],u,f,g),wh(c[1],h[1],d[1],p[1],u,f,g)])}return i}function Mh(t,e,n,i){var r,o,a,s,l=[],u=[],c=[],h=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,p=t.length;d<p;d++)ne(a,a,t[d]),ie(s,s,t[d]);ne(a,a,i[0]),ie(s,s,i[1])}for(d=0,p=t.length;d<p;d++){var f=t[d];if(n)r=t[d?d-1:p-1],o=t[(d+1)%p];else{if(0===d||d===p-1){l.push(Rt(t[d]));continue}r=t[d-1],o=t[d+1]}Vt(u,o,r),Xt(u,u,e);var g=Zt(f,r),v=Zt(f,o),m=g+v;0!==m&&(g/=m,v/=m),Xt(c,u,-g),Xt(h,u,v);var y=zt([],f,c),x=zt([],f,h);i&&(ie(y,y,a),ne(y,y,s),ie(x,x,a),ne(x,x,s)),l.push(y),l.push(x)}return n&&l.push(l.shift()),l}function Ih(t,e,n){var i=e.smooth,r=e.points;if(r&&r.length>=2){if(i&&"spline"!==i){var o=Mh(r,i,n,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{"spline"===i&&(r=Sh(r,n)),t.moveTo(r[0][0],r[0][1]);s=1;for(var h=r.length;s<h;s++)t.lineTo(r[s][0],r[s][1])}n&&t.closePath()}}var Ch=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),Th=function(t){function e(e){return t.call(this,e)||this}return v(e,t),e.prototype.getDefaultShape=function(){return new Ch},e.prototype.buildPath=function(t,e){Ih(t,e,!0)},e}(Bl);Th.prototype.type="polygon";var Ah=Th,Dh=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),kh=function(t){function e(e){return t.call(this,e)||this}return v(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Dh},e.prototype.buildPath=function(t,e){Ih(t,e,!1)},e}(Bl);kh.prototype.type="polyline";var Lh=kh,Ph={},Oh=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),Eh=function(t){function e(e){return t.call(this,e)||this}return v(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Oh},e.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=Zl(Ph,e,this.style);n=a.x1,i=a.y1,r=a.x2,o=a.y2}else n=e.x1,i=e.y1,r=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,i),s<1&&(r=n*(1-s)+r*s,o=i*(1-s)+o*s),t.lineTo(r,o))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(Bl);Eh.prototype.type="line";var Rh=Eh,Nh=[],zh=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}();function Bh(t,e,n){var i=t.cpx2,r=t.cpy2;return null===i||null===r?[(n?ys:ms)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?ys:ms)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?Is:Ms)(t.x1,t.cpx1,t.x2,e),(n?Is:Ms)(t.y1,t.cpy1,t.y2,e)]}var Vh=function(t){function e(e){return t.call(this,e)||this}return v(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new zh},e.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,r=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,c=e.percent;0!==c&&(t.moveTo(n,i),null==l||null==u?(c<1&&(As(n,a,r,c,Nh),a=Nh[1],r=Nh[2],As(i,s,o,c,Nh),s=Nh[1],o=Nh[2]),t.quadraticCurveTo(a,s,r,o)):(c<1&&(_s(n,a,l,r,c,Nh),a=Nh[1],l=Nh[2],r=Nh[3],_s(i,s,u,o,c,Nh),s=Nh[1],u=Nh[2],o=Nh[3]),t.bezierCurveTo(a,s,l,u,r,o)))},e.prototype.pointAt=function(t){return Bh(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=Bh(this.shape,t,!0);return Ut(e,e)},e}(Bl);Vh.prototype.type="bezier-curve";var Fh=Vh,Hh=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),$h=function(t){function e(e){return t.call(this,e)||this}return v(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Hh},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*r+n,u*r+i),t.arc(n,i,r,o,a,!s)},e}(Bl);$h.prototype.type="arc";var Wh=$h,Gh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return v(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Bl.prototype.getBoundingRect.call(this)},e}(Bl),jh=Gh,Yh=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}(),Xh=Yh,Uh=function(t){function e(e,n,i,r,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==i?1:i,s.y2=null==r?0:r,s.type="linear",s.global=a||!1,s}return v(e,t),e}(Xh),Zh=Uh,qh=function(t){function e(e,n,i,r,o){var a=t.call(this,r)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==i?.5:i,a.type="radial",a.global=o||!1,a}return v(e,t),e}(Xh),Kh=qh,Jh=[0,0],Qh=[0,0],td=new sr,ed=new sr,nd=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new sr;for(n=0;n<2;n++)this._axes[n]=new sr;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,r=t.x,o=t.y,a=r+t.width,s=o+t.height;if(n[0].set(r,o),n[1].set(a,o),n[2].set(a,s),n[3].set(r,s),e)for(var l=0;l<4;l++)n[l].transform(e);sr.sub(i[0],n[1],n[0]),sr.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(l=0;l<2;l++)this._origin[l]=i[l].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,i=!e;return td.set(1/0,1/0),ed.set(0,0),!this._intersectCheckOneSide(this,t,td,ed,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,td,ed,i,-1)&&(n=!1,i)||i||sr.copy(e,n?td:ed),n},t.prototype._intersectCheckOneSide=function(t,e,n,i,r,o){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,Jh),this._getProjMinMaxOnAxis(s,e._corners,Qh),Jh[1]<Qh[0]||Jh[0]>Qh[1]){if(a=!1,r)return a;var u=Math.abs(Qh[0]-Jh[1]),c=Math.abs(Jh[0]-Qh[1]);Math.min(u,c)>i.len()&&(u<c?sr.scale(i,l,-u*o):sr.scale(i,l,c*o))}else if(n){u=Math.abs(Qh[0]-Jh[1]),c=Math.abs(Jh[0]-Qh[1]);Math.min(u,c)<n.len()&&(u<c?sr.scale(n,l,u*o):sr.scale(n,l,-c*o))}}return a},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],r=this._origin,o=e[0].dot(i)+r[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(i)+r[t];a=Math.min(u,a),s=Math.max(u,s)}n[0]=a,n[1]=s},t}(),id=nd,rd=[],od=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return v(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var e=this._displayables[t];e.parent=this,e.update(),e.parent=null}for(t=0;t<this._temporaryDisplayables.length;t++){e=this._temporaryDisplayables[t];e.parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new mr(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(rd)),t.union(i)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();if(i.contain(n[0],n[1]))for(var r=0;r<this._displayables.length;r++){var o=this._displayables[r];if(o.contain(t,e))return!0}return!1},e}(os),ad=od,sd=Math.max,ld=Math.min,ud={};function cd(t){return Bl.extend(t)}var hd=Uc;function dd(t,e){return hd(t,e)}function pd(t,e){ud[t]=e}function fd(t){if(ud.hasOwnProperty(t))return ud[t]}function gd(t,e,n,i){var r=Xc(t,e);return n&&("center"===i&&(n=md(n,r.getBoundingRect())),xd(r,n)),r}function vd(t,e,n){var i=new Yl({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var r={width:t.width,height:t.height};i.setStyle(md(e,r))}}});return i}function md(t,e){var n,i=e.width/e.height,r=t.height*i;r<=t.width?n=t.height:(r=t.width,n=r/i);var o=t.x+t.width/2,a=t.y+t.height/2;return{x:o-r/2,y:a-n/2,width:r,height:n}}var yd=Zc;function xd(t,e){if(t.applyTransform){var n=t.getBoundingRect(),i=n.calculateTransform(e);t.applyTransform(i)}}function bd(t){return Zl(t.shape,t.shape,t.style),t}function _d(t){return ql(t.shape,t.shape,t.style),t}var wd=Kl;function Sd(t,e,n,i,r,o,a){var s,l=!1;"function"===typeof r?(a=o,o=r,r=null):ut(r)&&(o=r.cb,a=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var u,c="update"===t,h="remove"===t;if(i&&i.ecModel){var d=i.ecModel.getUpdatePayload();u=d&&d.animation}var p=i&&i.isAnimationEnabled();if(h||e.stopAnimation("remove"),p){var f=void 0,g=void 0,v=void 0;u?(f=u.duration||0,g=u.easing||"cubicOut",v=u.delay||0):h?(s=s||{},f=yt(s.duration,200),g=yt(s.easing,"cubicOut"),v=0):(f=i.getShallow(c?"animationDurationUpdate":"animationDuration"),g=i.getShallow(c?"animationEasingUpdate":"animationEasing"),v=i.getShallow(c?"animationDelayUpdate":"animationDelay")),"function"===typeof v&&(v=v(r,i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null)),"function"===typeof f&&(f=f(r)),f>0?l?e.animateFrom(n,{duration:f,delay:v||0,easing:g,done:o,force:!!o||!!a,scope:t,during:a}):e.animateTo(n,{duration:f,delay:v||0,easing:g,done:o,force:!!o||!!a,setToFinal:!0,scope:t,during:a}):(e.stopAnimation(),!l&&e.attr(n),o&&o())}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function Md(t,e,n,i,r,o){Sd("update",t,e,n,i,r,o)}function Id(t,e,n,i,r,o){Sd("init",t,e,n,i,r,o)}function Cd(t,e,n,i,r,o){Dd(t)||Sd("remove",t,e,n,i,r,o)}function Td(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),Cd(t,{style:{opacity:0}},e,n,i)}function Ad(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse((function(t){t.isGroup||Td(t,e,n,i)})):Td(t,e,n,i)}function Dd(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var n=t.animators[e];if("remove"===n.scope)return!0}return!1}function kd(t,e){var n=Hi([]);while(t&&t!==e)Wi(n,t.getLocalTransform(),n),t=t.parent;return n}function Ld(t,e,n){return e&&!U(e)&&(e=or.getLocalTransform(e)),n&&(e=Xi([],e)),ee([],t,e)}function Pd(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return o=Ld(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Od(t){return!t.isGroup}function Ed(t){return null!=t.shape}function Rd(t,e,n){if(t&&e){var i=r(t);e.traverse((function(t){if(Od(t)&&t.anid){var e=i[t.anid];if(e){var r=o(t);t.attr(o(e)),Md(t,r,n,vu(t).dataIndex)}}}))}function r(t){var e={};return t.traverse((function(t){Od(t)&&t.anid&&(e[t.anid]=t)})),e}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return Ed(t)&&(e.shape=$({},t.shape)),e}}function Nd(t,e){return q(t,(function(t){var n=t[0];n=sd(n,e.x),n=ld(n,e.x+e.width);var i=t[1];return i=sd(i,e.y),i=ld(i,e.y+e.height),[n,i]}))}function zd(t,e){var n=sd(t.x,e.x),i=ld(t.x+t.width,e.x+e.width),r=sd(t.y,e.y),o=ld(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function Bd(t,e,n){var i=$({rectHover:!0},e),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),W(r,n),new Yl(i)):gd(t.replace("path://",""),i,n,"center")}function Vd(t,e,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(Fd(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function Fd(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,c=a-r,h=s-o,d=Hd(c,h,l,u);if($d(d))return!1;var p=t-r,f=e-o,g=Hd(p,f,l,u)/d;if(g<0||g>1)return!1;var v=Hd(p,f,c,h)/d;return!(v<0||v>1)}function Hd(t,e,n,i){return t*i-n*e}function $d(t){return t<=1e-6&&t>=-1e-6}function Wd(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=at(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&Z(tt(l),(function(t){Lt(s,t)||(s[t]=l[t],s.$vars.push(t))}));var u=vu(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:W({content:i,formatterParams:s},r)}}pd("circle",Jc),pd("ellipse",eh),pd("sector",yh),pd("ring",_h),pd("polygon",Ah),pd("polyline",Lh),pd("rect",eu),pd("line",Rh),pd("bezierCurve",Fh),pd("arc",Wh);var Gd={};function jd(t,e){for(var n=0;n<Su.length;n++){var i=Su[n],r=e[i],o=t.ensureState(i);o.style=o.style||{},o.style.text=r}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}function Yd(t,e,n){var i,r=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;r&&(i=r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=ot(t.defaultText)?t.defaultText(o,t,n):t.defaultText);for(var l={normal:i},u=0;u<Su.length;u++){var c=Su[u],h=e[c];l[c]=yt(r?r.getFormattedLabel(o,c,null,a,h&&h.get("formatter")):null,i)}return l}function Xd(t,e,n,i){n=n||Gd;for(var r=t instanceof gu,o=!1,a=0;a<Mu.length;a++){var s=e[Mu[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=r?t:t.getTextContent();if(o){r||(l||(l=new gu,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=Yd(n,e),c=e.normal,h=!!c.getShallow("show"),d=Zd(c,i&&i.normal,n,!1,!r);d.text=u.normal,r||t.setTextConfig(qd(c,n,!1));for(a=0;a<Su.length;a++){var p=Su[a];s=e[p];if(s){var f=l.ensureState(p),g=!!yt(s.getShallow("show"),h);if(g!==h&&(f.ignore=!g),f.style=Zd(s,i&&i[p],n,!0,!r),f.style.text=u[p],!r){var v=t.ensureState(p);v.textConfig=qd(s,n,!0)}}}l.silent=!!c.getShallow("silent"),null!=l.style.x&&(d.x=l.style.x),null!=l.style.y&&(d.y=l.style.y),l.ignore=!h,l.useStyle(d),l.dirty(),n.enableTextSetter&&(rp(l).setLabelText=function(t){var i=Yd(n,e,t);jd(l,i)})}else l&&(l.ignore=!0);t.dirty()}function Ud(t,e){e=e||"label";for(var n={normal:t.getModel(e)},i=0;i<Su.length;i++){var r=Su[i];n[r]=t.getModel([r,e])}return n}function Zd(t,e,n,i,r){var o={};return Kd(o,t,n,i,r),e&&$(o,e),o}function qd(t,e,n){e=e||{};var i,r={},o=t.getShallow("rotate"),a=yt(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return i=t.getShallow("position")||(n?null:"inside"),"outside"===i&&(i=e.defaultOutsidePosition||"top"),null!=i&&(r.position=i),null!=s&&(r.offset=s),null!=o&&(o*=Math.PI/180,r.rotation=o),null!=a&&(r.distance=a),r.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",r}function Kd(t,e,n,i,r){n=n||Gd;var o,a=e.ecModel,s=a&&a.option.textStyle,l=Jd(e);if(l)for(var u in o={},l)if(l.hasOwnProperty(u)){var c=e.getModel(["rich",u]);np(o[u]={},c,s,n,i,r,!1,!0)}o&&(t.rich=o);var h=e.get("overflow");h&&(t.overflow=h);var d=e.get("minMargin");null!=d&&(t.margin=d),np(t,e,s,n,i,r,!0,!1)}function Jd(t){var e;while(t&&t!==t.ecModel){var n=(t.option||Gd).rich;if(n){e=e||{};for(var i=tt(n),r=0;r<i.length;r++){var o=i[r];e[o]=1}}t=t.parentModel}return e}var Qd=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],tp=["align","lineHeight","width","height","tag","verticalAlign"],ep=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function np(t,e,n,i,r,o,a,s){n=!r&&n||Gd;var l=i&&i.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),h=yt(e.getShallow("opacity"),n.opacity);"inherit"!==u&&"auto"!==u||(u=l||null),"inherit"!==c&&"auto"!==c||(c=l||null),o||(u=u||n.color,c=c||n.textBorderColor),null!=u&&(t.fill=u),null!=c&&(t.stroke=c);var d=yt(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=d&&(t.lineWidth=d);var p=yt(e.getShallow("textBorderType"),n.textBorderType);null!=p&&(t.lineDash=p);var f=yt(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=f&&(t.lineDashOffset=f),r||null!=h||s||(h=i&&i.defaultOpacity),null!=h&&(t.opacity=h),r||o||null==t.fill&&i.inheritColor&&(t.fill=i.inheritColor);for(var g=0;g<Qd.length;g++){var v=Qd[g],m=yt(e.getShallow(v),n[v]);null!=m&&(t[v]=m)}for(g=0;g<tp.length;g++){v=tp[g],m=e.getShallow(v);null!=m&&(t[v]=m)}if(null==t.verticalAlign){var y=e.getShallow("baseline");null!=y&&(t.verticalAlign=y)}if(!a||!i.disableBox){for(g=0;g<ep.length;g++){v=ep[g],m=e.getShallow(v);null!=m&&(t[v]=m)}var x=e.getShallow("borderType");null!=x&&(t.borderDash=x),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||(t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||(t.borderColor=l)}}function ip(t,e){var n=e&&e.getModel("textStyle");return St([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var rp=ta();function op(t,e,n,i){if(t){var r=rp(t);r.prevValue=r.value,r.value=n;var o=e.normal;r.valueAnimation=o.get("valueAnimation"),r.valueAnimation&&(r.precision=o.get("precision"),r.defaultInterpolatedText=i,r.statesModels=e)}}function ap(t,e,n,i,r){var o=rp(t);if(o.valueAnimation){var a=o.defaultInterpolatedText,s=yt(o.interpolatedValue,o.prevValue),l=o.value;(null==s?Id:Md)(t,{},i,e,null,u)}function u(i){var u=ha(n,o.precision,s,l,i);o.interpolatedValue=1===i?null:u;var c=Yd({labelDataIndex:e,labelFetcher:r,defaultText:a?a(u):u+""},o.statesModels,u);jd(t,c)}}var sp=["textStyle","color"],lp=new gu,up=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(sp):null)},t.prototype.getFont=function(){return ip({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){return lp.useStyle({text:t,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")}),lp.update(),lp.getBoundingRect()},t}(),cp=up,hp=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],dp=Ca(hp),pp=function(){function t(){}return t.prototype.getLineStyle=function(t){return dp(this,t)},t}(),fp=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],gp=Ca(fp),vp=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return gp(this,t,e)},t}(),mp=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(t,e,n){for(var i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r]},t.prototype.mergeOption=function(t,e){F(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,i=null==n?n:n[t];if(null==i&&!e){var r=this.parentModel;r&&(i=r.getShallow(t))}return i},t.prototype.getModel=function(e,n){var i=null!=e,r=i?this.parsePath(e):null,o=i?this._doGet(r):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),new t(o,n,this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){var t=this.constructor;return new t(V(this.option))},t.prototype.parsePath=function(t){return"string"===typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!S.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var i=0;i<t.length;i++)if(t[i]&&(n=n&&"object"===typeof n?n[t[i]]:null,null==n))break;return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();ya(mp),wa(mp),X(mp,pp),X(mp,vp),X(mp,Da),X(mp,cp);var yp=mp,xp=Math.round(10*Math.random());function bp(t){return[t||"",xp++].join("_")}function _p(t){var e={};t.registerSubTypeDefaulter=function(t,n){var i=ga(t);e[i.main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var o=ga(n).main;t.hasSubTypes(n)&&e[o]&&(r=e[o](i))}return r}}function wp(t,e){function n(t){var n={},o=[];return Z(t,(function(a){var s=i(n,a),l=s.originalDeps=e(a),u=r(l,t);s.entryCount=u.length,0===s.entryCount&&o.push(a),Z(u,(function(t){j(s.predecessor,t)<0&&s.predecessor.push(t);var e=i(n,t);j(e.successor,t)<0&&e.successor.push(a)}))})),{graph:n,noEntryList:o}}function i(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function r(t,e){var n=[];return Z(t,(function(t){j(e,t)>=0&&n.push(t)})),n}t.topologicalTravel=function(t,e,i,r){if(t.length){var o=n(e),a=o.graph,s=o.noEntryList,l={};Z(t,(function(t){l[t]=!0}));while(s.length){var u=s.pop(),c=a[u],h=!!l[u];h&&(i.call(r,u,c.originalDeps.slice()),delete l[u]),Z(c.successor,h?p:d)}Z(l,(function(){var t="";throw new Error(t)}))}function d(t){a[t].entryCount--,0===a[t].entryCount&&s.push(t)}function p(t){l[t]=!0,d(t)}}}function Sp(t,e){return F(F({},t,!0),e,!0)}var Mp={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},Ip={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},Cp="ZH",Tp="EN",Ap=Tp,Dp={},kp={},Lp=S.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return t.indexOf(Cp)>-1?Cp:Ap}():Ap;function Pp(t,e){t=t.toUpperCase(),kp[t]=new yp(e),Dp[t]=e}function Op(t){if(at(t)){var e=Dp[t.toUpperCase()]||{};return t===Cp||t===Tp?V(e):F(V(e),V(Dp[Ap]),!1)}return F(V(t),V(Dp[Ap]),!1)}function Ep(t){return kp[t]}function Rp(){return kp[Ap]}Pp(Tp,Mp),Pp(Cp,Ip);var Np=1e3,zp=60*Np,Bp=60*zp,Vp=24*Bp,Fp=365*Vp,Hp={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}"},$p="{yyyy}-{MM}-{dd}",Wp={year:"{yyyy}",month:"{yyyy}-{MM}",day:$p,hour:$p+" "+Hp.hour,minute:$p+" "+Hp.minute,second:$p+" "+Hp.second,millisecond:Hp.none},Gp=["year","month","day","hour","minute","second","millisecond"],jp=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Yp(t,e){return t+="","0000".substr(0,e-t.length)+t}function Xp(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function Up(t){return t===Xp(t)}function Zp(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function qp(t,e,n,i){var r=xo(t),o=r[tf(n)](),a=r[ef(n)]()+1,s=Math.floor((a-1)/4)+1,l=r[nf(n)](),u=r["get"+(n?"UTC":"")+"Day"](),c=r[rf(n)](),h=(c-1)%12+1,d=r[of(n)](),p=r[af(n)](),f=r[sf(n)](),g=i instanceof yp?i:Ep(i||Lp)||Rp(),v=g.getModel("time"),m=v.get("month"),y=v.get("monthAbbr"),x=v.get("dayOfWeek"),b=v.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[a-1]).replace(/{MMM}/g,y[a-1]).replace(/{MM}/g,Yp(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Yp(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Yp(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Yp(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Yp(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Yp(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,Yp(f,3)).replace(/{S}/g,f+"")}function Kp(t,e,n,i,r){var o=null;if("string"===typeof n)o=n;else if("function"===typeof n)o=n(t.value,e,{level:t.level});else{var a=$({},Hp);if(t.level>0)for(var s=0;s<Gp.length;++s)a[Gp[s]]="{primary|"+a[Gp[s]]+"}";var l=n?!1===n.inherit?n:W(n,a):a,u=Jp(t.value,r);if(l[u])o=l[u];else if(l.inherit){var c=jp.indexOf(u);for(s=c-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(rt(o)){var h=null==t.level?0:t.level>=0?t.level:o.length+t.level;h=Math.min(h,o.length-1),o=o[h]}}return qp(new Date(t.value),o,r,i)}function Jp(t,e){var n=xo(t),i=n[ef(e)]()+1,r=n[nf(e)](),o=n[rf(e)](),a=n[of(e)](),s=n[af(e)](),l=n[sf(e)](),u=0===l,c=u&&0===s,h=c&&0===a,d=h&&0===o,p=d&&1===r,f=p&&1===i;return f?"year":p?"month":d?"day":h?"hour":c?"minute":u?"second":"millisecond"}function Qp(t,e,n){var i="number"===typeof t?xo(t):t;switch(e=e||Jp(t,n),e){case"year":return i[tf(n)]();case"half-year":return i[ef(n)]()>=6?1:0;case"quarter":return Math.floor((i[ef(n)]()+1)/4);case"month":return i[ef(n)]();case"day":return i[nf(n)]();case"half-day":return i[rf(n)]()/24;case"hour":return i[rf(n)]();case"minute":return i[of(n)]();case"second":return i[af(n)]();case"millisecond":return i[sf(n)]()}}function tf(t){return t?"getUTCFullYear":"getFullYear"}function ef(t){return t?"getUTCMonth":"getMonth"}function nf(t){return t?"getUTCDate":"getDate"}function rf(t){return t?"getUTCHours":"getHours"}function of(t){return t?"getUTCMinutes":"getMinutes"}function af(t){return t?"getUTCSeconds":"getSeconds"}function sf(t){return t?"getUTCSeconds":"getSeconds"}function lf(t){return t?"setUTCFullYear":"setFullYear"}function uf(t){return t?"setUTCMonth":"setMonth"}function cf(t){return t?"setUTCDate":"setDate"}function hf(t){return t?"setUTCHours":"setHours"}function df(t){return t?"setUTCMinutes":"setMinutes"}function pf(t){return t?"setUTCSeconds":"setSeconds"}function ff(t){return t?"setUTCSeconds":"setSeconds"}function gf(t){if(!Co(t))return at(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function vf(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var mf=_t,yf=/([&<>"'])/g,xf={"&":"&","<":"<",">":">",'"':""","'":"'"};function bf(t){return null==t?"":(t+"").replace(yf,(function(t,e){return xf[e]}))}function _f(t,e,n){var i="{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}";function r(t){return t&&St(t)?t:"-"}function o(t){return!(null==t||isNaN(t)||!isFinite(t))}var a="time"===e,s=t instanceof Date;if(a||s){var l=a?xo(t):t;if(!isNaN(+l))return qp(l,i,n);if(s)return"-"}if("ordinal"===e)return st(t)?r(t):lt(t)&&o(t)?t+"":"-";var u=Io(t);return o(u)?gf(u):st(t)?r(t):"-"}var wf=["a","b","c","d","e","f","g"],Sf=function(t,e){return"{"+t+(null==e?"":e)+"}"};function Mf(t,e,n){rt(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o<r.length;o++){var a=wf[o];t=t.replace(Sf(a),Sf(a,0))}for(var s=0;s<i;s++)for(var l=0;l<r.length;l++){var u=e[s][r[l]];t=t.replace(Sf(wf[l],s),n?bf(u):u)}return t}function If(t,e,n){return Z(e,(function(e,i){t=t.replace("{"+i+"}",n?bf(e):e)})),t}function Cf(t,e){var n=at(t)?{color:t,extraCssText:e}:t||{},i=n.color,r=n.type;e=n.extraCssText;var o=n.renderMode||"html";if(!i)return"";if("html"===o)return"subItem"===r?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+bf(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+bf(i)+";"+(e||"")+'"></span>';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function Tf(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=xo(e),r=n?"UTC":"",o=i["get"+r+"FullYear"](),a=i["get"+r+"Month"]()+1,s=i["get"+r+"Date"](),l=i["get"+r+"Hours"](),u=i["get"+r+"Minutes"](),c=i["get"+r+"Seconds"](),h=i["get"+r+"Milliseconds"]();return t=t.replace("MM",Yp(a,2)).replace("M",a).replace("yyyy",o).replace("yy",o%100+"").replace("dd",Yp(s,2)).replace("d",s).replace("hh",Yp(l,2)).replace("h",l).replace("mm",Yp(u,2)).replace("m",u).replace("ss",Yp(c,2)).replace("s",c).replace("SSS",Yp(h,3)),t}function Af(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function Df(t,e){return e=e||"transparent",at(t)?t:ut(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function kf(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var Lf=Z,Pf=["left","right","top","bottom","width","height"],Of=[["width","left","right"],["height","top","bottom"]];function Ef(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild((function(l,u){var c,h,d=l.getBoundingRect(),p=e.childAt(u+1),f=p&&p.getBoundingRect();if("horizontal"===t){var g=d.width+(f?-f.x+d.x:0);c=o+g,c>i||l.newline?(o=0,c=g,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var v=d.height+(f?-f.y+d.y:0);h=a+v,h>r||l.newline?(o+=s+n,a=0,h=v,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=h+n)}))}var Rf=Ef;it(Ef,"vertical"),it(Ef,"horizontal");function Nf(t,e,n){var i=e.width,r=e.height,o=ao(t.left,i),a=ao(t.top,r),s=ao(t.right,i),l=ao(t.bottom,r);return(isNaN(o)||isNaN(parseFloat(t.left)))&&(o=0),(isNaN(s)||isNaN(parseFloat(t.right)))&&(s=i),(isNaN(a)||isNaN(parseFloat(t.top)))&&(a=0),(isNaN(l)||isNaN(parseFloat(t.bottom)))&&(l=r),n=mf(n||0),{width:Math.max(s-o-n[1]-n[3],0),height:Math.max(l-a-n[0]-n[2],0)}}function zf(t,e,n){n=mf(n||0);var i=e.width,r=e.height,o=ao(t.left,i),a=ao(t.top,r),s=ao(t.right,i),l=ao(t.bottom,r),u=ao(t.width,i),c=ao(t.height,r),h=n[2]+n[0],d=n[1]+n[3],p=t.aspect;switch(isNaN(u)&&(u=i-s-d-o),isNaN(c)&&(c=r-l-h-a),null!=p&&(isNaN(u)&&isNaN(c)&&(p>i/r?u=.8*i:c=.8*r),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(o)&&(o=i-s-u-d),isNaN(a)&&(a=r-l-c-h),t.left||t.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-d;break}switch(t.top||t.bottom){case"middle":case"center":a=r/2-c/2-n[0];break;case"bottom":a=r-c-h;break}o=o||0,a=a||0,isNaN(u)&&(u=i-d-o-(s||0)),isNaN(c)&&(c=r-h-a-(l||0));var f=new mr(o+n[3],a+n[0],u,c);return f.margin=n,f}function Bf(t,e,n,i,r){var o=!r||!r.hv||r.hv[0],a=!r||!r.hv||r.hv[1],s=r&&r.boundingMode||"all";if(o||a){var l;if("raw"===s)l="group"===t.type?new mr(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(l=t.getBoundingRect(),t.needLocalTransform()){var u=t.getLocalTransform();l=l.clone(),l.applyTransform(u)}var c=zf(W({width:l.width,height:l.height},e),n,i),h=o?c.x-l.x:0,d=a?c.y-l.y:0;"raw"===s?(t.x=h,t.y=d):(t.x+=h,t.y+=d),t.markRedraw()}}function Vf(t,e){return null!=t[Of[e][0]]||null!=t[Of[e][1]]&&null!=t[Of[e][2]]}function Ff(t){var e=t.layoutMode||t.constructor.layoutMode;return ut(e)?e:e?{type:e}:null}function Hf(t,e,n){var i=n&&n.ignoreSize;!rt(i)&&(i=[i,i]);var r=a(Of[0],0),o=a(Of[1],1);function a(n,r){var o={},a=0,u={},c=0,h=2;if(Lf(n,(function(e){u[e]=t[e]})),Lf(n,(function(t){s(e,t)&&(o[t]=u[t]=e[t]),l(o,t)&&a++,l(u,t)&&c++})),i[r])return l(e,n[1])?u[n[2]]=null:l(e,n[2])&&(u[n[1]]=null),u;if(c!==h&&a){if(a>=h)return o;for(var d=0;d<n.length;d++){var p=n[d];if(!s(o,p)&&s(t,p)){o[p]=t[p];break}}return o}return u}function s(t,e){return t.hasOwnProperty(e)}function l(t,e){return null!=t[e]&&"auto"!==t[e]}function u(t,e,n){Lf(t,(function(t){e[t]=n[t]}))}u(Of[0],t,r),u(Of[1],t,o)}function $f(t){return Wf({},t)}function Wf(t,e){return e&&t&&Lf(Pf,(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}var Gf=ta(),jf=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.uid=bp("ec_cpt_model"),r}return v(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=Ff(this),i=n?$f(t):{},r=e.getTheme();F(t,r.get(this.mainType)),F(t,this.getDefaultOption()),n&&Hf(t,i,n)},e.prototype.mergeOption=function(t,e){F(this.option,t,!0);var n=Ff(this);n&&Hf(this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!ma(t))return t.defaultOption;var e=Gf(this);if(!e.defaultOption){var n=[],i=t;while(i){var r=i.prototype.defaultOption;r&&n.push(r),i=i.superClass}for(var o={},a=n.length-1;a>=0;a--)o=F(o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return aa(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(yp);function Yf(t){var e=[];return Z(jf.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=q(e,(function(t){return ga(t).main})),"dataset"!==t&&j(e,"dataset")<=0&&e.unshift("dataset"),e}ba(jf,yp),Ia(jf),_p(jf),wp(jf,Yf);var Xf=jf,Uf="";"undefined"!==typeof navigator&&(Uf=navigator.platform||"");var Zf="rgba(0, 0, 0, 0.2)",qf={darkMode:"auto",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Zf,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Zf,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Zf,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Zf,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Zf,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Zf,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Uf.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},Kf=At(["tooltip","label","itemName","itemId","seriesName"]),Jf="original",Qf="arrayRows",tg="objectRows",eg="keyedColumns",ng="typedArray",ig="unknown",rg="column",og="row",ag={Must:1,Might:2,Not:3},sg=ta();function lg(t){sg(t).datasetMap=At()}function ug(t,e,n){var i={},r=hg(e);if(!r||!t)return i;var o,a,s=[],l=[],u=e.ecModel,c=sg(u).datasetMap,h=r.uid+"_"+n.seriesLayoutBy;t=t.slice(),Z(t,(function(e,n){var r=ut(e)?e:t[n]={name:e};"ordinal"===r.type&&null==o&&(o=n,a=f(r)),i[r.name]=[]}));var d=c.get(h)||c.set(h,{categoryWayDim:a,valueWayDim:0});function p(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function f(t){var e=t.dimsDef;return e?e.length:1}return Z(t,(function(t,e){var n=t.name,r=f(t);if(null==o){var a=d.valueWayDim;p(i[n],a,r),p(l,a,r),d.valueWayDim+=r}else if(o===e)p(i[n],0,r),p(s,0,r);else{a=d.categoryWayDim;p(i[n],a,r),p(l,a,r),d.categoryWayDim+=r}})),s.length&&(i.itemName=s),l.length&&(i.seriesName=l),i}function cg(t,e,n){var i={},r=hg(t);if(!r)return i;var o,a=e.sourceFormat,s=e.dimensionsDefine;a!==tg&&a!==eg||Z(s,(function(t,e){"name"===(ut(t)?t.name:t)&&(o=e)}));var l=function(){for(var t={},i={},r=[],l=0,u=Math.min(5,n);l<u;l++){var c=fg(e.data,a,e.seriesLayoutBy,s,e.startIndex,l);r.push(c);var h=c===ag.Not;if(h&&null==t.v&&l!==o&&(t.v=l),(null==t.n||t.n===t.v||!h&&r[t.n]===ag.Not)&&(t.n=l),d(t)&&r[t.n]!==ag.Not)return t;h||(c===ag.Might&&null==i.v&&l!==o&&(i.v=l),null!=i.n&&i.n!==i.v||(i.n=l))}function d(t){return null!=t.v&&null!=t.n}return d(t)?t:d(i)?i:null}();if(l){i.value=[l.v];var u=null!=o?o:l.n;i.itemName=[u],i.seriesName=[u]}return i}function hg(t){var e=t.get("data",!0);if(!e)return aa(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},ra).models[0]}function dg(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?aa(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},ra).models:[]}function pg(t,e){return fg(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function fg(t,e,n,i,r,o){var a,s,l,u=5;if(ht(t))return ag.Not;if(i){var c=i[o];ut(c)?(s=c.name,l=c.type):at(c)&&(s=c)}if(null!=l)return"ordinal"===l?ag.Must:ag.Not;if(e===Qf){var h=t;if(n===og){for(var d=h[o],p=0;p<(d||[]).length&&p<u;p++)if(null!=(a=b(d[r+p])))return a}else for(p=0;p<h.length&&p<u;p++){var f=h[r+p];if(f&&null!=(a=b(f[o])))return a}}else if(e===tg){var g=t;if(!s)return ag.Not;for(p=0;p<g.length&&p<u;p++){var v=g[p];if(v&&null!=(a=b(v[s])))return a}}else if(e===eg){var m=t;if(!s)return ag.Not;d=m[s];if(!d||ht(d))return ag.Not;for(p=0;p<d.length&&p<u;p++)if(null!=(a=b(d[p])))return a}else if(e===Jf){var y=t;for(p=0;p<y.length&&p<u;p++){v=y[p];var x=Ro(v);if(!rt(x))return ag.Not;if(null!=(a=b(x[o])))return a}}function b(t){var e=at(t);return null!=t&&isFinite(t)&&""!==t?e?ag.Might:ag.Not:e&&"-"!==t?ag.Must:void 0}return ag.Not}var gg=At();function vg(t,e){wt(null==gg.get(t)&&e),gg.set(t,e)}function mg(t,e,n){var i=gg.get(e);if(!i)return n;var r=i(t);return r?n.concat(r):n}var yg=ta(),xg=ta(),bg=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var i=Po(this.get("color",!0)),r=this.get("colorLayer",!0);return Sg(this,yg,i,r,t,e,n)},t.prototype.clearColorPalette=function(){Mg(this,yg)},t}();function _g(t,e,n,i){var r=Po(t.get(["aria","decal","decals"]));return Sg(t,xg,r,null,e,n,i)}function wg(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}function Sg(t,e,n,i,r,o,a){o=o||t;var s=e(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var c=null!=a&&i?wg(i,a):n;if(c=c||n,c&&c.length){var h=c[l];return r&&(u[r]=h),s.paletteIdx=(l+1)%c.length,h}}function Mg(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Ig,Cg,Tg;"undefined"!==typeof console&&console.warn&&console.log;function Ag(t){0}function Dg(t){throw new Error(t)}var kg="\0_ec_inner",Lg=1;var Pg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new yp(i),this._locale=new yp(r),this._optionManager=o},e.prototype.setOption=function(t,e,n){var i=zg(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,zg(e))},e.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);0,this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):Tg(this,r),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=i.getMediaOption(this);a.length&&Z(a,(function(t){n=!0,this._mergeOption(t,e)}),this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],a=At(),s=e&&e.replaceMergeMainTypeMap;function l(e){var o=mg(this,e,Po(t[e])),a=i.get(e),l=a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",u=zo(a,o,l);qo(u,e,Xf),n[e]=null,i.set(e,null),r.set(e,0);var c=[],h=[],d=0;Z(u,(function(t,n){var i=t.existing,r=t.newOption;if(r){var o="series"===e,a=Xf.getClass(e,t.keyInfo.subType,!o);if(!a)return;if(i&&i.constructor===a)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var s=$({componentIndex:n},t.keyInfo);i=new a(r,this,this,s),$(i,s),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(c.push(i.option),h.push(i),d++):(c.push(void 0),h.push(void 0))}),this),n[e]=c,i.set(e,h),r.set(e,d),"series"===e&&Ig(this)}lg(this),Z(t,(function(t,e){null!=t&&(Xf.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?V(t):F(n[e],t,!0))})),s&&s.each((function(t,e){Xf.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),Xf.topologicalTravel(o,Xf.getAllClassMainTypes(),l,this),this._seriesIndices||Ig(this)},e.prototype.getOption=function(){var t=V(this.option);return Z(t,(function(e,n){if(Xf.hasClass(n)){for(var i=Po(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!Uo(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}})),delete t[kg],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.getLocale=function(t){var e=this.getLocaleModel();return e.get(t)},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e)for(var r=0;r<n.length;r++)if(n[r])return n[r]}},e.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n,i=t.index,r=t.id,o=t.name,a=this._componentsMap.get(e);return a&&a.length?(null!=i?(n=[],Z(Po(i),(function(t){a[t]&&n.push(a[t])}))):n=null!=r?Rg("id",r,a):null!=o?Rg("name",o,a):J(a,(function(t){return!!t})),Ng(n,t)):[]},e.prototype.findComponents=function(t){var e=t.query,n=t.mainType,i=o(e),r=i?this.queryComponents(i):J(this._componentsMap.get(n),(function(t){return!!t}));return a(Ng(r,t));function o(t){var e=n+"Index",i=n+"Id",r=n+"Name";return!t||null==t[e]&&null==t[i]&&null==t[r]?null:{mainType:n,index:t[e],id:t[i],name:t[r]}}function a(e){return t.filter?J(e,t.filter):e}},e.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(ot(t)){var r=e,o=t;i.each((function(t,e){for(var n=0;t&&n<t.length;n++){var i=t[n];i&&o.call(r,e,i,i.componentIndex)}}))}else for(var a=at(t)?i.get(t):ut(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=Yo(t,null);return J(this._componentsMap.get("series"),(function(t){return!!t&&null!=e&&t.name===e}))},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return J(this._componentsMap.get("series"),(function(e){return!!e&&e.subType===t}))},e.prototype.getSeries=function(){return J(this._componentsMap.get("series").slice(),(function(t){return!!t}))},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){Cg(this),Z(this._seriesIndices,(function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)}),this)},e.prototype.eachRawSeries=function(t,e){Z(this._componentsMap.get("series"),(function(n){n&&t.call(e,n,n.componentIndex)}))},e.prototype.eachSeriesByType=function(t,e,n){Cg(this),Z(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)}),this)},e.prototype.eachRawSeriesByType=function(t,e,n){return Z(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return Cg(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){Cg(this);var n=[];Z(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];t.call(e,r,i)&&n.push(i)}),this),this._seriesIndices=n,this._seriesIndicesMap=At(n)},e.prototype.restoreData=function(t){Ig(this);var e=this._componentsMap,n=[];e.each((function(t,e){Xf.hasClass(e)&&n.push(e)})),Xf.topologicalTravel(n,Xf.getAllClassMainTypes(),(function(n){Z(e.get(n),(function(e){!e||"series"===n&&Og(e,t)||e.restoreData()}))}))},e.internalField=function(){Ig=function(t){var e=t._seriesIndices=[];Z(t._componentsMap.get("series"),(function(t){t&&e.push(t.componentIndex)})),t._seriesIndicesMap=At(e)},Cg=function(t){0},Tg=function(t,e){t.option={},t.option[kg]=Lg,t._componentsMap=At({series:[]}),t._componentsCount=At();var n=e.aria;ut(n)&&null==n.enabled&&(n.enabled=!0),Eg(e,t._theme.option),F(e,qf,!1),t._mergeOption(e,null)}}(),e}(yp);function Og(t,e){if(e){var n=e.seriesIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}function Eg(t,e){var n=t.color&&!t.colorLayer;Z(e,(function(e,i){"colorLayer"===i&&n||Xf.hasClass(i)||("object"===typeof e?t[i]=t[i]?F(t[i],e,!1):V(e):null==t[i]&&(t[i]=e))}))}function Rg(t,e,n){if(rt(e)){var i=At();return Z(e,(function(t){if(null!=t){var e=Yo(t,null);null!=e&&i.set(t,!0)}})),J(n,(function(e){return e&&i.get(e[t])}))}var r=Yo(e,null);return J(n,(function(e){return e&&null!=r&&e[t]===r}))}function Ng(t,e){return e.hasOwnProperty("subType")?J(t,(function(t){return t&&t.subType===e.subType})):t}function zg(t){var e=At();return t&&Z(Po(t.replaceMerge),(function(t){e.set(t,!0)})),{replaceMergeMainTypeMap:e}}X(Pg,bg);var Bg=Pg,Vg=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Fg=function(){function t(t){Z(Vg,(function(e){this[e]=nt(t[e],t)}),this)}return t}(),Hg=Fg,$g={},Wg=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];Z($g,(function(i,r){var o=i.create(t,e);n=n.concat(o||[])})),this._coordinateSystems=n},t.prototype.update=function(t,e){Z(this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){$g[t]=e},t.get=function(t){return $g[t]},t}(),Gg=Wg,jg=/^(min|max)?(.+)$/,Yg=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(Z(Po(t.series),(function(t){t&&t.data&&ht(t.data)&&It(t.data)})),Z(Po(t.dataset),(function(t){t&&t.source&&ht(t.source)&&It(t.source)}))),t=V(t);var i=this._optionBackup,r=Xg(t,e,!i);this._newBaseOption=r.baseOption,i?(r.timelineOptions.length&&(i.timelineOptions=r.timelineOptions),r.mediaList.length&&(i.mediaList=r.mediaList),r.mediaDefault&&(i.mediaDefault=r.mediaDefault)):this._optionBackup=r},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],V(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=V(n[i.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,r=this._mediaDefault,o=[],a=[];if(!i.length&&!r)return a;for(var s=0,l=i.length;s<l;s++)Ug(i[s].query,e,n)&&o.push(s);return!o.length&&r&&(o=[-1]),o.length&&!qg(o,this._currentMediaIndices)&&(a=q(o,(function(t){return V(-1===t?r.option:i[t].option)}))),this._currentMediaIndices=o,a},t}();function Xg(t,e,n){var i,r,o=[],a=t.baseOption,s=t.timeline,l=t.options,u=t.media,c=!!t.media,h=!!(l||s||a&&a.timeline);function d(t){Z(e,(function(e){e(t,n)}))}return a?(r=a,r.timeline||(r.timeline=s)):((h||c)&&(t.options=t.media=null),r=t),c&&rt(u)&&Z(u,(function(t){t&&t.option&&(t.query?o.push(t):i||(i=t))})),d(r),Z(l,(function(t){return d(t)})),Z(o,(function(t){return d(t.option)})),{baseOption:r,timelineOptions:l||[],mediaDefault:i,mediaList:o}}function Ug(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return Z(t,(function(t,e){var n=e.match(jg);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();Zg(i[a],t,o)||(r=!1)}})),r}function Zg(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e}function qg(t,e){return t.join(",")===e.join(",")}var Kg=Yg,Jg=Z,Qg=ut,tv=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ev(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=tv.length;n<i;n++){var r=tv[n],o=e.normal,a=e.emphasis;o&&o[r]&&(t[r]=t[r]||{},t[r].normal?F(t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),a&&a[r]&&(t[r]=t[r]||{},t[r].emphasis?F(t[r].emphasis,a[r]):t[r].emphasis=a[r],a[r]=null)}}function nv(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,r=t[e].emphasis;i&&(n?(t[e].normal=t[e].emphasis=null,W(t[e],i)):t[e]=i),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r,r.focus&&(t.emphasis.focus=r.focus),r.blurScope&&(t.emphasis.blurScope=r.blurScope))}}function iv(t){nv(t,"itemStyle"),nv(t,"lineStyle"),nv(t,"areaStyle"),nv(t,"label"),nv(t,"labelLine"),nv(t,"upperLabel"),nv(t,"edgeLabel")}function rv(t,e){var n=Qg(t)&&t[e],i=Qg(n)&&n.textStyle;if(i){0;for(var r=0,o=Eo.length;r<o;r++){var a=Eo[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}}function ov(t){t&&(iv(t),rv(t,"label"),t.emphasis&&rv(t.emphasis,"label"))}function av(t){if(Qg(t)){ev(t),iv(t),rv(t,"label"),rv(t,"upperLabel"),rv(t,"edgeLabel"),t.emphasis&&(rv(t.emphasis,"label"),rv(t.emphasis,"upperLabel"),rv(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(ev(e),ov(e));var n=t.markLine;n&&(ev(n),ov(n));var i=t.markArea;i&&ov(i);var r=t.data;if("graph"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!ht(o))for(var a=0;a<o.length;a++)ov(o[a]);Z(t.categories,(function(t){iv(t)}))}if(r&&!ht(r))for(a=0;a<r.length;a++)ov(r[a]);if(e=t.markPoint,e&&e.data){var s=e.data;for(a=0;a<s.length;a++)ov(s[a])}if(n=t.markLine,n&&n.data){var l=n.data;for(a=0;a<l.length;a++)rt(l[a])?(ov(l[a][0]),ov(l[a][1])):ov(l[a])}"gauge"===t.type?(rv(t,"axisLabel"),rv(t,"title"),rv(t,"detail")):"treemap"===t.type?(nv(t.breadcrumb,"itemStyle"),Z(t.levels,(function(t){iv(t)}))):"tree"===t.type&&iv(t.leaves)}}function sv(t){return rt(t)?t:t?[t]:[]}function lv(t){return(rt(t)?t[0]:t)||{}}function uv(t,e){Jg(sv(t.series),(function(t){Qg(t)&&av(t)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Jg(n,(function(e){Jg(sv(t[e]),(function(t){t&&(rv(t,"axisLabel"),rv(t.axisPointer,"label"))}))})),Jg(sv(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;rv(e,"axisLabel"),rv(e&&e.axisPointer,"label")})),Jg(sv(t.calendar),(function(t){nv(t,"itemStyle"),rv(t,"dayLabel"),rv(t,"monthLabel"),rv(t,"yearLabel")})),Jg(sv(t.radar),(function(t){rv(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)})),Jg(sv(t.geo),(function(t){Qg(t)&&(ov(t),Jg(sv(t.regions),(function(t){ov(t)})))})),Jg(sv(t.timeline),(function(t){ov(t),nv(t,"label"),nv(t,"itemStyle"),nv(t,"controlStyle",!0);var e=t.data;rt(e)&&Z(e,(function(t){ut(t)&&(nv(t,"label"),nv(t,"itemStyle"))}))})),Jg(sv(t.toolbox),(function(t){nv(t,"iconStyle"),Jg(t.feature,(function(t){nv(t,"iconStyle")}))})),rv(lv(t.axisPointer),"label"),rv(lv(t.tooltip).axisPointer,"label")}function cv(t,e){for(var n=e.split(","),i=t,r=0;r<n.length;r++)if(i=i&&i[n[r]],null==i)break;return i}function hv(t,e,n,i){for(var r,o=e.split(","),a=t,s=0;s<o.length-1;s++)r=o[s],null==a[r]&&(a[r]={}),a=a[r];(i||null==a[o[s]])&&(a[o[s]]=n)}function dv(t){t&&Z(pv,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var pv=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],fv=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],gv=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function vv(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<gv.length;n++){var i=gv[n][1],r=gv[n][0];null!=e[i]&&(e[r]=e[i])}}function mv(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function yv(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function xv(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}function bv(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&bv(t[n].children,e)}function _v(t,e){uv(t,e),t.series=Po(t.series),Z(t.series,(function(t){if(ut(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){null!=t.clockWise&&(t.clockwise=t.clockWise),mv(t.label);var n=t.data;if(n&&!ht(n))for(var i=0;i<n.length;i++)mv(n[i]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var r=cv(t,"pointer.color");null!=r&&hv(t,"itemStyle.color",r)}else if("bar"===e){vv(t),vv(t.backgroundStyle),vv(t.emphasis);n=t.data;if(n&&!ht(n))for(i=0;i<n.length;i++)"object"===typeof n[i]&&(vv(n[i]),vv(n[i]&&n[i].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),yv(t),bv(t.data,yv)}else"graph"===e||"sankey"===e?xv(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&W(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),dv(t)}})),t.dataRange&&(t.visualMap=t.dataRange),Z(fv,(function(e){var n=t[e];n&&(rt(n)||(n=[n]),Z(n,(function(t){dv(t)})))}))}function wv(t){var e=At();t.eachSeries((function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}})),e.each(Sv)}function Sv(t){Z(t,(function(e,n){var i=[],r=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=a.map(o,(function(o,l,u){var c,h,d=a.get(e.stackedDimension,u);if(isNaN(d))return r;s?h=a.getRawIndex(u):c=a.get(e.stackedByDimension,u);for(var p=NaN,f=n-1;f>=0;f--){var g=t[f];if(s||(h=g.data.rawIndexOf(g.stackedByDimension,c)),h>=0){var v=g.data.getByRawIndex(g.stackResultDimension,h);if(d>=0&&v>0||d<=0&&v<0){d=fo(d,v),p=v;break}}}return i[0]=d,i[1]=p,i}));a.hostModel.setData(l),e.data=l}))}var Mv,Iv,Cv,Tv,Av,Dv=function(){function t(t){this.data=t.data||(t.sourceFormat===eg?{}:[]),this.sourceFormat=t.sourceFormat||ig,this.seriesLayoutBy=t.seriesLayoutBy||rg,this.startIndex=t.startIndex||0,this.dimensionsDefine=t.dimensionsDefine,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.encodeDefine=t.encodeDefine,this.metaRawOption=t.metaRawOption}return t}();function kv(t){return t instanceof Dv}function Lv(t,e,n,i){n=n||Rv(t);var r=e.seriesLayoutBy,o=Nv(t,n,r,e.sourceHeader,e.dimensions),a=new Dv({data:t,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:o.dimensionsDefine,startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount,encodeDefine:Ev(i),metaRawOption:V(e)});return a}function Pv(t){return new Dv({data:t,sourceFormat:ht(t)?ng:Jf})}function Ov(t){return new Dv({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:V(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount,encodeDefine:Ev(t.encodeDefine)})}function Ev(t){return t?At(t):null}function Rv(t){var e=ig;if(ht(t))e=ng;else if(rt(t)){0===t.length&&(e=Qf);for(var n=0,i=t.length;n<i;n++){var r=t[n];if(null!=r){if(rt(r)){e=Qf;break}if(ut(r)){e=tg;break}}}}else if(ut(t))for(var o in t)if(Lt(t,o)&&U(t[o])){e=eg;break}return e}function Nv(t,e,n,i,r){var o,a;if(!t)return{dimensionsDefine:Bv(r),startIndex:a,dimensionsDetectedCount:o};if(e===Qf){var s=t;"auto"===i||null==i?Vv((function(t){null!=t&&"-"!==t&&(at(t)?null==a&&(a=1):a=0)}),n,s,10):a=lt(i)?i:i?1:0,r||1!==a||(r=[],Vv((function(t,e){r[e]=null!=t?t+"":""}),n,s,1/0)),o=r?r.length:n===og?s.length:s[0]?s[0].length:null}else if(e===tg)r||(r=zv(t));else if(e===eg)r||(r=[],Z(t,(function(t,e){r.push(e)})));else if(e===Jf){var l=Ro(t[0]);o=rt(l)&&l.length||1}return{startIndex:a,dimensionsDefine:Bv(r),dimensionsDetectedCount:o}}function zv(t){var e,n=0;while(n<t.length&&!(e=t[n++]));if(e){var i=[];return Z(e,(function(t,e){i.push(e)})),i}}function Bv(t){if(t){var e=At();return q(t,(function(t,n){t=ut(t)?t:{name:t};var i={name:t.name,displayName:t.displayName,type:t.type};if(null==i.name)return i;i.name+="",null==i.displayName&&(i.displayName=i.name);var r=e.get(i.name);return r?i.name+="-"+r.count++:e.set(i.name,{count:1}),i}))}}function Vv(t,e,n,i){if(e===og)for(var r=0;r<n.length&&r<i;r++)t(n[r]?n[r][0]:null,r);else{var o=n[0]||[];for(r=0;r<o.length&&r<i;r++)t(o[r],r)}}var Fv=function(){function t(t,e){var n=kv(t)?t:Pv(t);this._source=n;var i=this._data=n.data;n.sourceFormat===ng&&(this._offset=0,this._dimSize=e,this._data=i),Av(this,i,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(t,e){},t.prototype.appendData=function(t){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var t;Av=function(t,r,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine,c=Tv[qv(a,s)];if($(t,c),a===ng)t.getItem=e,t.count=i,t.fillStorage=n;else{var h=Wv(a,s);t.getItem=nt(h,null,r,l,u);var d=Yv(a,s);t.count=nt(d,null,r,l,u)}};var e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,r=i*t,o=0;o<i;o++)e[o]=n[r+o];return e},n=function(t,e,n,i){for(var r=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=e-t,h=n[a],d=0;d<c;d++){var p=r[d*o+a];h[t+d]=p,p<l&&(l=p),p>u&&(u=p)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}t={},t[Qf+"_"+rg]={pure:!0,appendData:r},t[Qf+"_"+og]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[tg]={pure:!0,appendData:r},t[eg]={pure:!0,appendData:function(t){var e=this._data;Z(t,(function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])}))}},t[Jf]={appendData:r},t[ng]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},Tv=t}(),t}(),Hv=function(t,e,n,i){return t[i]},$v=(Mv={},Mv[Qf+"_"+rg]=function(t,e,n,i){return t[i+e]},Mv[Qf+"_"+og]=function(t,e,n,i){i+=e;for(var r=[],o=t,a=0;a<o.length;a++){var s=o[a];r.push(s?s[i]:null)}return r},Mv[tg]=Hv,Mv[eg]=function(t,e,n,i){for(var r=[],o=0;o<n.length;o++){var a=n[o].name;0;var s=t[a];r.push(s?s[i]:null)}return r},Mv[Jf]=Hv,Mv);function Wv(t,e){var n=$v[qv(t,e)];return n}var Gv=function(t,e,n){return t.length},jv=(Iv={},Iv[Qf+"_"+rg]=function(t,e,n){return Math.max(0,t.length-e)},Iv[Qf+"_"+og]=function(t,e,n){var i=t[0];return i?Math.max(0,i.length-e):0},Iv[tg]=Gv,Iv[eg]=function(t,e,n){var i=n[0].name;var r=t[i];return r?r.length:0},Iv[Jf]=Gv,Iv);function Yv(t,e){var n=jv[qv(t,e)];return n}var Xv=function(t,e,n){return null!=e?t[e]:t},Uv=(Cv={},Cv[Qf]=Xv,Cv[tg]=function(t,e,n){return null!=e?t[n]:t},Cv[eg]=Xv,Cv[Jf]=function(t,e,n){var i=Ro(t);return null!=e&&i instanceof Array?i[e]:i},Cv[ng]=Xv,Cv);function Zv(t){var e=Uv[t];return e}function qv(t,e){return t===Qf?t+"_"+e:t}function Kv(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var r,o,a=t.getProvider().getSource().sourceFormat,s=t.getDimensionInfo(n);return s&&(r=s.name,o=s.index),Zv(a)(i,o,r)}}}var Jv=/\{@(.+?)\}/g,Qv=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"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:o,dataIndex:r,data:a,dataType:e,value:i,color:l,borderColor:u,dimensionNames:d?d.dimensionNames:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,i,r,o){e=e||"normal";var a=this.getData(n),s=this.getDataParams(t,n);if(o&&(s.value=o.interpolatedValue),null!=i&&rt(s.value)&&(s.value=s.value[i]),!r){var l=a.getItemModel(t);r=l.get("normal"===e?["label","formatter"]:[e,"label","formatter"])}if("function"===typeof r)return s.status=e,s.dimensionIndex=i,r(s);if("string"===typeof r){var u=Mf(r,s);return u.replace(Jv,(function(e,n){var i=n.length,r="["===n.charAt(0)&&"]"===n.charAt(i-1)?+n.slice(1,i-1):n,s=Kv(a,t,r);if(o&&rt(o.interpolatedValue)){var l=a.getDimensionInfo(r);l&&(s=o.interpolatedValue[l.index])}return null!=s?s+"":""}))}},t.prototype.getRawValue=function(t,e){return Kv(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function tm(t){var e,n;return ut(t)?t.type&&(n=t):e=t,{markupText:e,markupFragment:n}}function em(t){return new nm(t)}var nm=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,i=t&&t.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(e=this._plan(this.context));var o,a=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;function c(t){return!(t>=1)&&(t=1),t}a===l&&s===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(i)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,p=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!i&&(o||d<p)){var f=this._progress;if(rt(f))for(var g=0;g<f.length;g++)this._doProgress(f[g],d,p,l,u);else this._doProgress(f,d,p,l,u)}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()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,i,r){im.reset(e,n,i,r),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:im.next},this.context)},t.prototype._doReset=function(t){var e,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(n=e.forceFirstProgress,e=e.progress),rt(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),im=function(){var t,e,n,i,r,o={reset:function(l,u,c,h){e=l,t=u,n=c,i=h,r=Math.ceil(i/n),o.next=n>1&&i>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%r*n+Math.ceil(e/r),a=e>=t?null:o<i?o:e;return e++,a}}();function rm(t,e){var n=e&&e.type;if("ordinal"===n){var i=e&&e.ordinalMeta;return i?i.parseAndCollect(t):t}return"time"===n&&"number"!==typeof t&&null!=t&&"-"!==t&&(t=+xo(t)),null==t||""===t?NaN:+t}var om=At({number:function(t){return parseFloat(t)},time:function(t){return+xo(t)},trim:function(t){return"string"===typeof t?St(t):t}});function am(t){return om.get(t)}var sm={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},lm=function(){function t(t,e){if("number"!==typeof e){var n="";0,Dg(n)}this._opFn=sm[t],this._rvalFloat=Io(e)}return t.prototype.evaluate=function(t){return"number"===typeof t?this._opFn(t,this._rvalFloat):this._opFn(Io(t),this._rvalFloat)},t}(),um=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=typeof t,i=typeof e,r="number"===n?t:Io(t),o="number"===i?e:Io(e),a=isNaN(r),s=isNaN(o);if(a&&(r=this._incomparable),s&&(o=this._incomparable),a&&s){var l="string"===n,u="string"===i;l&&(r=u?t:0),u&&(o=l?e:0)}return r<o?this._resultLT:r>o?-this._resultLT:0},t}(),cm=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Io(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=Io(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function hm(t,e){return"eq"===t||"ne"===t?new cm("eq"===t,e):Lt(sm,t)?new lm(t,e):null}var dm=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return rm(t,e)},t}();function pm(t,e){var n=new dm,i=t.data,r=n.sourceFormat=t.sourceFormat,o=t.startIndex,a="";t.seriesLayoutBy!==rg&&Dg(a);var s=[],l={},u=t.dimensionsDefine;if(u)Z(u,(function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};if(s.push(i),null!=n){var r="";Lt(l,n)&&Dg(r),l[n]=i}}));else for(var c=0;c<t.dimensionsDetectedCount;c++)s.push({index:c});var h=Wv(r,rg);e.__isBuiltIn&&(n.getRawDataItem=function(t){return h(i,o,s,t)},n.getRawData=nt(fm,null,t)),n.cloneRawData=nt(gm,null,t);var d=Yv(r,rg);n.count=nt(d,null,i,o,s);var p=Zv(r);n.retrieveValue=function(t,e){var n=h(i,o,s,t);return f(n,e)};var f=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=s[e];return n?p(t,e,n.name):void 0}};return n.getDimensionInfo=nt(vm,null,s,l),n.cloneAllDimensionInfo=nt(mm,null,s),n}function fm(t){var e=t.sourceFormat;if(!wm(e)){var n="";0,Dg(n)}return t.data}function gm(t){var e=t.sourceFormat,n=t.data;if(!wm(e)){var i="";0,Dg(i)}if(e===Qf){for(var r=[],o=0,a=n.length;o<a;o++)r.push(n[o].slice());return r}if(e===tg){for(r=[],o=0,a=n.length;o<a;o++)r.push($({},n[o]));return r}}function vm(t,e,n){if(null!=n)return"number"===typeof n||!isNaN(n)&&!Lt(e,n)?t[n]:Lt(e,n)?e[n]:void 0}function mm(t){return V(t)}var ym=At();function xm(t){t=V(t);var e=t.type,n="";e||Dg(n);var i=e.split(":");2!==i.length&&Dg(n);var r=!1;"echarts"===i[0]&&(e=i[1],r=!0),t.__isBuiltIn=r,ym.set(e,t)}function bm(t,e,n){var i=Po(t),r=i.length,o="";r||Dg(o);for(var a=0,s=r;a<s;a++){var l=i[a];e=_m(l,e,n,1===r?null:a),a!==s-1&&(e.length=Math.max(e.length,1))}return e}function _m(t,e,n,i){var r="";e.length||Dg(r),ut(t)||Dg(r);var o=t.type,a=ym.get(o);a||Dg(r);var s=q(e,(function(t){return pm(t,a)})),l=Po(a.transform({upstream:s[0],upstreamList:s,config:V(t.config)}));return q(l,(function(t,n){var i="";ut(t)||Dg(i),t.data||Dg(i);var r,o=Rv(t.data);wm(o)||Dg(i);var a=e[0];if(a&&0===n&&!t.dimensions){var s=a.startIndex;s&&(t.data=a.data.slice(0,s).concat(t.data)),r={seriesLayoutBy:rg,sourceHeader:s,dimensions:a.metaRawOption.dimensions}}else r={seriesLayoutBy:rg,sourceHeader:0,dimensions:t.dimensions};return Lv(t.data,r,null,null)}))}function wm(t){return t===Qf||t===tg}var Sm=function(){function t(t){this._sourceList=[],this._upstreamSignList=[],this._versionSignBase=0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[])},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&this._createSource()},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(Im(n)){var o=n,a=void 0,s=void 0,l=void 0;if(r){var u=i[0];u.prepareSource(),l=u.getSource(),a=l.data,s=l.sourceFormat,e=[u._getVersionSign()]}else a=o.get("data",!0),s=ht(a)?ng:Jf,e=[];var c=this._getSourceMetaRawOption(),h=l?l.metaRawOption:null,d=yt(c.seriesLayoutBy,h?h.seriesLayoutBy:null),p=yt(c.sourceHeader,h?h.sourceHeader:null),f=yt(c.dimensions,h?h.dimensions:null);t=[Lv(a,{seriesLayoutBy:d,sourceHeader:p,dimensions:f},s,o.get("encode",!0))]}else{var g=n;if(r){var v=this._applyTransform(i);t=v.sourceList,e=v.upstreamSignList}else{var m=g.get("source",!0);t=[Lv(m,this._getSourceMetaRawOption(),null,null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0);if(null!=r){var o="";1!==t.length&&Cm(o)}var a=[],s=[];return Z(t,(function(t){t.prepareSource();var e=t.getSource(r||0),n="";null==r||e||Cm(n),a.push(e),s.push(t._getVersionSign())})),i?e=bm(i,a,{datasetIndex:n.componentIndex}):null!=r&&(e=[Ov(a[0])]),{sourceList:e,upstreamSignList:s}},t.prototype._isDirty=function(){var t=this._sourceList;if(!t.length)return!0;for(var e=this._getUpstreamSourceManagers(),n=0;n<e.length;n++){var i=e[n];if(i._isDirty()||this._upstreamSignList[n]!==i._getVersionSign())return!0}},t.prototype.getSource=function(t){return this._sourceList[t||0]},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Im(t)){var e=hg(t);return e?[e.getSourceManager()]:[]}return q(dg(t),(function(t){return t.getSourceManager()}))},t.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;if(Im(i))t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=i;t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function Mm(t){var e=t.option.transform;e&&It(t.option.transform)}function Im(t){return"series"===t.mainType}function Cm(t){throw new Error(t)}var Tm="line-height:1";function Am(t,e){var n=t.color||"#6e7079",i=t.fontSize||12,r=t.fontWeight||"400",o=t.color||"#464646",a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+bf(i+"")+"px;color:"+bf(n)+";font-weight:"+bf(r+""),valueStyle:"font-size:"+bf(a+"")+"px;color:"+bf(o)+";font-weight:"+bf(s+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var Dm=[0,10,20,30],km=["","\n","\n\n","\n\n\n"];function Lm(t,e){return e.type=t,e}function Pm(t){return Lt(Om,t.type)&&Om[t.type]}var Om={section:{planLayout:function(t){var e=t.blocks.length,n=e>1||e>0&&!t.noHeader,i=0;Z(t.blocks,(function(t){Pm(t).planLayout(t);var e=t.__gapLevelBetweenSubBlocks;e>=i&&(i=e+(!n||e&&("section"!==t.type||t.noHeader)?0:1))})),t.__gapLevelBetweenSubBlocks=i},build:function(t,e,n,i){var r=e.noHeader,o=Nm(e),a=Em(t,e,r?n:o.html,i);if(r)return a;var s=_f(e.header,"ordinal",t.useUTC),l=Am(i,t.renderMode).nameStyle;return"richText"===t.renderMode?Fm(t,s,l)+o.richText+a:zm('<div style="'+l+";"+Tm+';">'+bf(s)+"</div>"+a,n)}},nameValue:{planLayout:function(t){t.__gapLevelBetweenSubBlocks=0},build:function(t,e,n,i){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=e.value,c=t.useUTC;if(!o||!a){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",r),d=o?"":_f(l,"ordinal",c),p=e.valueType,f=a?[]:rt(u)?q(u,(function(t,e){return _f(t,rt(p)?p[e]:p,c)})):[_f(u,rt(p)?p[0]:p,c)],g=!s||!o,v=!s&&o,m=Am(i,r),y=m.nameStyle,x=m.valueStyle;return"richText"===r?(s?"":h)+(o?"":Fm(t,d,y))+(a?"":Hm(t,f,g,v,x)):zm((s?"":h)+(o?"":Bm(d,!s,y))+(a?"":Vm(f,g,v,x)),n)}}}};function Em(t,e,n,i){var r=[],o=e.blocks||[];wt(!o||rt(o)),o=o||[];var a=t.orderMode;if(e.sortBlocks&&a){o=o.slice();var s={valueAsc:"asc",valueDesc:"desc"};if(Lt(s,a)){var l=new um(s[a],null);o.sort((function(t,e){return l.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===a&&o.reverse()}var u=Nm(e);if(Z(o,(function(e,n){var o=Pm(e).build(t,e,n>0?u.html:0,i);null!=o&&r.push(o)})),r.length)return"richText"===t.renderMode?r.join(u.richText):zm(r.join(""),n)}function Rm(t,e,n,i,r,o){if(t){var a=Pm(t);a.planLayout(t);var s={useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e};return a.build(s,t,0,o)}}function Nm(t){var e=t.__gapLevelBetweenSubBlocks;return{html:Dm[e],richText:km[e]}}function zm(t,e){var n='<div style="clear:both"></div>',i="margin: "+e+"px 0 0";return'<div style="'+i+";"+Tm+';">'+t+n+"</div>"}function Bm(t,e,n){var i=e?"margin-left:2px":"";return'<span style="'+n+";"+i+'">'+bf(t)+"</span>"}function Vm(t,e,n,i){var r=n?"10px":"20px",o=e?"float:right;margin-left:"+r:"";return'<span style="'+o+";"+i+'">'+q(t,(function(t){return bf(t)})).join(" ")+"</span>"}function Fm(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Hm(t,e,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(e.join(" "),o)}function $m(t,e){var n=t.getData().getItemVisual(e,"style"),i=n[t.visualDrawType];return Df(i)}function Wm(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var Gm=function(){function t(){this.richTextStyles={},this._nextStyleNameId=To()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,r=Cf({color:e,type:t,renderMode:n,markerId:i});return at(r)?r:(this.richTextStyles[i]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};rt(e)?Z(e,(function(t){return $(n,t)})):$(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}();function jm(t){var e,n,i,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,h=o.getRawValue(a),d=rt(h),p=$m(o,a);if(c>1||d&&!c){var f=Ym(h,o,a,u,p);e=f.inlineValues,n=f.inlineValueTypes,i=f.blocks,r=f.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);r=e=Kv(l,a,u[0]),n=g.type}else r=e=d?h[0]:h;var v=Xo(o),m=v&&o.name||"",y=l.getName(a),x=s?m:y;return Lm("section",{header:m,noHeader:s||!v,sortParam:r,blocks:[Lm("nameValue",{markerType:"item",markerColor:p,name:x,noName:!St(x),value:e,valueType:n})].concat(i||[])})}function Ym(t,e,n,i,r){var o=e.getData(),a=K(t,(function(t,e,n){var i=o.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName}),!1),s=[],l=[],u=[];function c(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(Lm("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return i.length?Z(i,(function(t){c(Kv(o,n,t),t)})):Z(t,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}var Xm=ta();function Um(t,e){return t.getName(e)||t.getId(e)}var Zm=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return v(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=em({count:Jm,reset:Qm}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var i=Xm(this).sourceManager=new Sm(this);i.prepareSource();var r=this.getInitialData(t,n);ey(r,this),this.dataTask.context.data=r,Xm(this).dataBeforeProcessed=r,qm(this),this._initSelectedMapFromData(r)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=Ff(this),i=n?$f(t):{},r=this.subType;Xf.hasClass(r)&&(r+="Series"),F(t,e.getTheme().get(this.subType)),F(t,this.getDefaultOption()),Oo(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Hf(t,i,n)},e.prototype.mergeOption=function(t,e){t=F(this.option,t,!0),this.fillDataTextStyle(t.data);var n=Ff(this);n&&Hf(this.option,t,n);var i=Xm(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(t,e);ey(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,Xm(this).dataBeforeProcessed=r,qm(this),this._initSelectedMapFromData(r)},e.prototype.fillDataTextStyle=function(t){if(t&&!ht(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Oo(t[n],"label",e)},e.prototype.getInitialData=function(t,e){},e.prototype.appendData=function(t){var e=this.getRawData();e.appendData(t.data)},e.prototype.getData=function(t){var e=iy(this);if(e){var n=e.context.data;return null==t?n:n.getLinkedData(t)}return Xm(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var e=iy(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}Xm(this).data=t},e.prototype.getSource=function(){return Xm(this).sourceManager.getSource()},e.prototype.getRawData=function(){return Xm(this).dataBeforeProcessed},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,e,n){return jm({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){if(S.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),!!t},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=bg.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n)for(var i=this.getData(e),r=0;r<t.length;r++){var o=t[r],a=Um(i,o);n[a]=!1,this._selectedDataIndicesMap[a]=-1}},e.prototype.toggleSelect=function(t,e){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],e)?this.unselect(n,e):this.select(n,e)},e.prototype.getSelectedDataIndices=function(){for(var t=this._selectedDataIndicesMap,e=tt(t),n=[],i=0;i<e.length;i++){var r=t[e[i]];r>=0&&n.push(r)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e),r=Um(i,t);return n[r]||!1},e.prototype._innerSelect=function(t,e){var n,i,r=this.option.selectedMode,o=e.length;if(r&&o)if("multiple"===r)for(var a=this.option.selectedMap||(this.option.selectedMap={}),s=0;s<o;s++){var l=e[s],u=Um(t,l);a[u]=!0,this._selectedDataIndicesMap[u]=t.getRawIndex(l)}else if("single"===r||!0===r){var c=e[o-1];u=Um(t,c);this.option.selectedMap=(n={},n[u]=!0,n),this._selectedDataIndicesMap=(i={},i[u]=t.getRawIndex(c),i)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each((function(n){var i=t.getRawDataItem(n);i&&i.selected&&e.push(n)})),e.length>0&&this._innerSelect(t,e)}},e.registerClass=function(t){return Xf.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.useColorPaletteOnData=!1,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(Xf);function qm(t){var e=t.name;Xo(t)||(t.name=Km(t)||e)}function Km(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return Z(n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)})),i.join(" ")}function Jm(t){return t.model.getRawData().count()}function Qm(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),ty}function ty(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function ey(t,e){Z(y(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,it(ny,e))}))}function ny(t,e){var n=iy(t);return n&&n.setOutputEnd((e||this).count()),e}function iy(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}X(Zm,Qv),X(Zm,bg),ba(Zm,Xf);var ry=Zm,oy=function(){function t(){this.group=new Wr,this.uid=bp("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){},t.prototype.updateLayout=function(t,e,n,i){},t.prototype.updateVisual=function(t,e,n,i){},t.prototype.blurSeries=function(t,e){},t}();ya(oy),Ia(oy);var ay=oy;function sy(){var t=ta();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}var ly=ta(),uy=sy(),cy=function(){function t(){this.group=new Wr,this.uid=bp("viewChart"),this.renderTask=em({plan:py,reset:fy}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.highlight=function(t,e,n,i){dy(t.getData(),i,"emphasis")},t.prototype.downplay=function(t,e,n,i){dy(t.getData(),i,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},t.markUpdateMethod=function(t,e){ly(t).updateMethod=e},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function hy(t,e,n){t&&("emphasis"===e?Qu:tc)(t,n)}function dy(t,e,n){var i=Qo(t,e),r=e&&null!=e.highlightKey?Mc(e.highlightKey):null;null!=i?Z(Po(i),(function(e){hy(t.getItemGraphicEl(e),n,r)})):t.eachItemGraphicEl((function(t){hy(t,n,r)}))}function py(t){return uy(t.model)}function fy(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&ly(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,i,r),gy[l]}ya(cy,["dispose"]),Ia(cy);var gy={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},vy=cy,my="\0__throttleOriginMethod",yy="\0__throttleRate",xy="\0__throttleType";function by(t,e,n){var i,r,o,a,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,t.apply(o,a||[])}e=e||0;var d=function(){for(var t=[],d=0;d<arguments.length;d++)t[d]=arguments[d];i=(new Date).getTime(),o=this,a=t;var p=s||e,f=s||n;s=null,r=i-(f?l:u)-p,clearTimeout(c),f?c=setTimeout(h,p):r>=0?h():c=setTimeout(h,-r),l=i};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){s=t},d}function _y(t,e,n,i){var r=t[e];if(r){var o=r[my]||r,a=r[xy],s=r[yy];if(s!==n||a!==i){if(null==n||!i)return t[e]=o;r=t[e]=by(o,n,"debounce"===i),r[my]=o,r[xy]=i,r[yy]=n}return r}}function wy(t,e){var n=t[e];n&&n[my]&&(t[e]=n[my])}var Sy=ta(),My={itemStyle:Ca(fp,!0),lineStyle:Ca(hp,!0)},Iy={lineStyle:"stroke",itemStyle:"fill"};function Cy(t,e){var n=t.visualStyleMapper||My[e];return n||(console.warn("Unkown style type '"+e+"'."),My.itemStyle)}function Ty(t,e){var n=t.visualDrawType||Iy[e];return n||(console.warn("Unkown style type '"+e+"'."),"fill")}var Ay={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=Cy(t,i),a=o(r),s=r.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=Ty(t,i),u=a[l],c=ot(u)?u:null,h="auto"===a.fill||"auto"===a.stroke;if(!a[l]||c||h){var d=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[l]||(a[l]=d,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||"function"===typeof a.fill?d:a.fill,a.stroke="auto"===a.stroke||"function"===typeof a.stroke?d:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=$({},a);r[l]=c(i),e.setItemVisual(n,"style",r)}}}},Dy=new yp,ky={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=Cy(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){Dy.option=n[i];var a=r(Dy),s=t.ensureUniqueItemVisual(e,"style");$(s,a),Dy.option.decal&&(t.setItemVisual(e,"decal",Dy.option.decal),Dy.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},Ly={performRawSeries:!0,overallReset:function(t){var e=At();t.eachSeries((function(t){if(t.useColorPaletteOnData){var n=e.get(t.type);n||(n={},e.set(t.type,n)),Sy(t).scope=n}})),t.eachSeries((function(e){if(e.useColorPaletteOnData&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},r=e.getData(),o=Sy(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=Ty(e,a);r.each((function(t){var e=r.getRawIndex(t);i[e]=t})),n.each((function(t){var a=i[t],l=r.getItemVisual(a,"colorFromPalette");if(l){var u=r.ensureUniqueItemVisual(a,"style"),c=n.getName(t)||t+"",h=n.count();u[s]=e.getColorFromPalette(c,o,h)}}))}}))}},Py=Math.PI;function Oy(t,e){e=e||{},W(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Wr,i=new eu({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r,o=new gu({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new eu({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&(r=new Wh({shape:{startAngle:-Py/2,endAngle:-Py/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),r.animateShape(!0).when(1e3,{endAngle:3*Py/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*Py/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&r.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}var Ey=function(){function t(t,e,n,i){this._stageTaskMap=At(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=r?n.step:null,a=i&&i.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),r=i.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&r>=n.threshold,a=t.get("large")&&r>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=At();t.eachSeries((function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;Z(this._allHandlers,(function(i){var r=t.get(i.uid)||t.set(i.uid,{}),o="";wt(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)}),this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){i=i||{};var r=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}Z(t,(function(t,s){if(!i.visualType||i.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,d=c.agentStubMap;d.each((function(t){a(i,t)&&(t.dirty(),h=!0)})),h&&c.dirty(),o.updatePayload(c,n);var p=o.getPerformArgs(c,i.block);d.each((function(t){t.perform(p)})),c.perform(p)&&(r=!0)}else u&&u.each((function(s,l){a(i,s)&&s.dirty();var u=o.getPerformArgs(s,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(r=!0)}))}})),this.unfinished=r||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,i){var r=this,o=e.seriesTaskMap,a=e.seriesTaskMap=At(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||em({plan:Vy,reset:Fy,count:Wy}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,i).each(u)},t.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||em({reset:Ry});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=At(),l=t.seriesType,u=t.getTargetSeries,c=!0,h=!1,d="";function p(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(h=!0,em({reset:Ny,onDirty:By})));n.context={model:t,overallProgress:c},n.agent=o,n.__block=c,r._pipe(t,n)}wt(!t.createOnAllSeries,d),l?n.eachRawSeriesByType(l,p):u?u(n,i).each(p):(c=!1,Z(n.getSeries(),p)),h&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return ot(t)&&(t={overallReset:t,seriesType:Gy(t)}),t.uid=bp("stageHandler"),e&&(t.visualType=e),t},t}();function Ry(t){t.overallReset(t.ecModel,t.api,t.payload)}function Ny(t){return t.overallProgress&&zy}function zy(){this.agent.dirty(),this.getDownstream().dirty()}function By(){this.agent&&this.agent.dirty()}function Vy(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Fy(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Po(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?q(e,(function(t,e){return $y(e)})):Hy}var Hy=$y(0);function $y(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(e,i)}}function Wy(t){return t.data.count()}function Gy(t){jy=null;try{t(Yy,Xy)}catch(e){}return jy}var jy,Yy={},Xy={};function Uy(t,e){for(var n in e.prototype)t[n]=Pt}Uy(Yy,Bg),Uy(Xy,Hg),Yy.eachSeriesByType=Yy.eachRawSeriesByType=function(t){jy=t},Yy.eachComponent=function(t){"series"===t.mainType&&t.subType&&(jy=t.subType)};var Zy=Ey,qy=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],Ky={color:qy,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],qy]},Jy="#B9B8CE",Qy="#100C2A",tx=function(){return{axisLine:{lineStyle:{color:Jy}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},ex=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],nx={darkMode:!0,color:ex,backgroundColor:Qy,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Jy}},textStyle:{color:Jy},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Jy}},dataZoom:{borderColor:"#71708A",textStyle:{color:Jy},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:Jy}},timeline:{lineStyle:{color:Jy},label:{color:Jy},controlStyle:{color:Jy,borderColor:Jy}},calendar:{itemStyle:{color:Qy},dayLabel:{color:Jy},monthLabel:{color:Jy},yearLabel:{color:Jy}},timeAxis:tx(),logAxis:tx(),valueAxis:tx(),categoryAxis:tx(),line:{symbol:"circle"},graph:{color:ex},gauge:{title:{color:Jy},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Jy},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};nx.categoryAxis.splitLine.show=!1;var ix=nx,rx=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},i={};if(at(t)){var r=ga(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};Z(t,(function(t,r){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=r.lastIndexOf(u);if(c>0&&c===r.length-u.length){var h=r.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,i,r));function u(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),ox={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){var i=t.get("symbol"),r=t.get("symbolSize"),o=t.get("symbolKeepAspect"),a=t.get("symbolRotate"),s=t.get("symbolOffset"),l=ot(i),u=ot(r),c=ot(a),h=ot(s),d=l||u||c||h,p=!l&&i?i:t.defaultSymbol,f=u?null:r,g=c?null:a,v=h?null:s;if(n.setVisual({legendIcon:t.legendIcon||p,symbol:p,symbolSize:f,symbolKeepAspect:o,symbolRotate:g,symbolOffset:v}),!e.isSeriesFiltered(t))return{dataEach:d?m:null}}function m(e,n){var o=t.getRawValue(n),d=t.getDataParams(n);l&&e.setItemVisual(n,"symbol",i(o,d)),u&&e.setItemVisual(n,"symbolSize",r(o,d)),c&&e.setItemVisual(n,"symbolRotate",a(o,d)),h&&e.setItemVisual(n,"symbolOffset",s(o,d))}}},ax={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t)){var n=t.getData();return{dataEach:n.hasItemOption?i:null}}function i(t,e){var n=t.getItemModel(e),i=n.getShallow("symbol",!0),r=n.getShallow("symbolSize",!0),o=n.getShallow("symbolRotate",!0),a=n.getShallow("symbolOffset",!0),s=n.getShallow("symbolKeepAspect",!0);null!=i&&t.setItemVisual(e,"symbol",i),null!=r&&t.setItemVisual(e,"symbolSize",r),null!=o&&t.setItemVisual(e,"symbolRotate",o),null!=a&&t.setItemVisual(e,"symbolOffset",a),null!=s&&t.setItemVisual(e,"symbolKeepAspect",s)}}};function sx(t,e,n){switch(n){case"color":var i=t.getItemVisual(e,"style");return i[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n);default:0}}function lx(t,e){switch(e){case"color":var n=t.getVisual("style");return n[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:0}}function ux(t,e,n,i){switch(n){case"color":var r=t.ensureUniqueItemVisual(e,"style");r[t.getVisual("drawType")]=i,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,i);break;default:0}}var cx=2*Math.PI,hx=dl.CMD,dx=["top","right","bottom","left"];function px(t,e,n,i,r){var o=n.width,a=n.height;switch(t){case"top":i.set(n.x+o/2,n.y-e),r.set(0,-1);break;case"bottom":i.set(n.x+o/2,n.y+a+e),r.set(0,1);break;case"left":i.set(n.x-e,n.y+a/2),r.set(-1,0);break;case"right":i.set(n.x+o+e,n.y+a/2),r.set(1,0);break}}function fx(t,e,n,i,r,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s);a/=u,s/=u;var c=a*n+t,h=s*n+e;if(Math.abs(i-r)%cx<1e-4)return l[0]=c,l[1]=h,u-n;if(o){var d=i;i=ml(r),r=ml(d)}else i=ml(i),r=ml(r);i>r&&(r+=cx);var p=Math.atan2(s,a);if(p<0&&(p+=cx),p>=i&&p<=r||p+cx>=i&&p+cx<=r)return l[0]=c,l[1]=h,u-n;var f=n*Math.cos(i)+t,g=n*Math.sin(i)+e,v=n*Math.cos(r)+t,m=n*Math.sin(r)+e,y=(f-a)*(f-a)+(g-s)*(g-s),x=(v-a)*(v-a)+(m-s)*(m-s);return y<x?(l[0]=f,l[1]=g,Math.sqrt(y)):(l[0]=v,l[1]=m,Math.sqrt(x))}function gx(t,e,n,i,r,o,a,s){var l=r-t,u=o-e,c=n-t,h=i-e,d=Math.sqrt(c*c+h*h);c/=d,h/=d;var p=l*c+u*h,f=p/d;s&&(f=Math.min(Math.max(f,0),1)),f*=d;var g=a[0]=t+f*c,v=a[1]=e+f*h;return Math.sqrt((g-r)*(g-r)+(v-o)*(v-o))}function vx(t,e,n,i,r,o,a){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i);var s=t+n,l=e+i,u=a[0]=Math.min(Math.max(r,t),s),c=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-r)*(u-r)+(c-o)*(c-o))}var mx=[];function yx(t,e,n){var i=vx(e.x,e.y,e.width,e.height,t.x,t.y,mx);return n.set(mx[0],mx[1]),i}function xx(t,e,n){for(var i,r,o=0,a=0,s=0,l=0,u=1/0,c=e.data,h=t.x,d=t.y,p=0;p<c.length;){var f=c[p++];1===p&&(o=c[p],a=c[p+1],s=o,l=a);var g=u;switch(f){case hx.M:s=c[p++],l=c[p++],o=s,a=l;break;case hx.L:g=gx(o,a,c[p],c[p+1],h,d,mx,!0),o=c[p++],a=c[p++];break;case hx.C:g=ws(o,a,c[p++],c[p++],c[p++],c[p++],c[p],c[p+1],h,d,mx),o=c[p++],a=c[p++];break;case hx.Q:g=Ds(o,a,c[p++],c[p++],c[p],c[p+1],h,d,mx),o=c[p++],a=c[p++];break;case hx.A:var v=c[p++],m=c[p++],y=c[p++],x=c[p++],b=c[p++],_=c[p++];p+=1;var w=!!(1-c[p++]);i=Math.cos(b)*y+v,r=Math.sin(b)*x+m,p<=1&&(s=i,l=r);var S=(h-v)*x/y+v;g=fx(v,m,x,b,b+_,w,S,d,mx),o=Math.cos(b+_)*y+v,a=Math.sin(b+_)*x+m;break;case hx.R:s=o=c[p++],l=a=c[p++];var M=c[p++],I=c[p++];g=vx(s,l,M,I,h,d,mx);break;case hx.Z:g=gx(o,a,s,l,h,d,mx,!0),o=s,a=l;break}g<u&&(u=g,n.set(mx[0],mx[1]))}return u}var bx=new sr,_x=new sr,Sx=new sr,Mx=new sr,Ix=new sr;function Cx(t,e){if(t){var n=t.getTextGuideLine(),i=t.getTextContent();if(i&&n){var r=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=r.candidates||dx,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=r.anchor,c=t.getComputedTransform(),h=c&&Xi([],c),d=e.get("length2")||0;u&&Sx.copy(u);for(var p=0;p<a.length;p++){var f=a[p];px(f,0,s,bx,Mx),sr.scaleAndAdd(_x,bx,Mx,d),_x.transform(h);var g=t.getBoundingRect(),v=u?u.distance(_x):t instanceof Bl?xx(_x,t.path,Sx):yx(_x,g,Sx);v<l&&(l=v,_x.transform(c),Sx.transform(c),Sx.toArray(o[0]),_x.toArray(o[1]),bx.toArray(o[2]))}Dx(o,e.get("minTurnAngle")),n.setShape({points:o})}}}var Tx=[],Ax=new sr;function Dx(t,e){if(e<=180&&e>0){e=e/180*Math.PI,bx.fromArray(t[0]),_x.fromArray(t[1]),Sx.fromArray(t[2]),sr.sub(Mx,bx,_x),sr.sub(Ix,Sx,_x);var n=Mx.len(),i=Ix.len();if(!(n<.001||i<.001)){Mx.scale(1/n),Ix.scale(1/i);var r=Mx.dot(Ix),o=Math.cos(e);if(o<r){var a=gx(_x.x,_x.y,Sx.x,Sx.y,bx.x,bx.y,Tx,!1);Ax.fromArray(Tx),Ax.scaleAndAdd(Ix,a/Math.tan(Math.PI-e));var s=Sx.x!==_x.x?(Ax.x-_x.x)/(Sx.x-_x.x):(Ax.y-_x.y)/(Sx.y-_x.y);if(isNaN(s))return;s<0?sr.copy(Ax,_x):s>1&&sr.copy(Ax,Sx),Ax.toArray(t[1])}}}}function kx(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,bx.fromArray(t[0]),_x.fromArray(t[1]),Sx.fromArray(t[2]),sr.sub(Mx,_x,bx),sr.sub(Ix,Sx,_x);var i=Mx.len(),r=Ix.len();if(!(i<.001||r<.001)){Mx.scale(1/i),Ix.scale(1/r);var o=Mx.dot(e),a=Math.cos(n);if(o<a){var s=gx(_x.x,_x.y,Sx.x,Sx.y,bx.x,bx.y,Tx,!1);Ax.fromArray(Tx);var l=Math.PI/2,u=Math.acos(Ix.dot(e)),c=l+u-n;if(c>=l)sr.copy(Ax,Sx);else{Ax.scaleAndAdd(Ix,s/Math.tan(Math.PI/2-c));var h=Sx.x!==_x.x?(Ax.x-_x.x)/(Sx.x-_x.x):(Ax.y-_x.y)/(Sx.y-_x.y);if(isNaN(h))return;h<0?sr.copy(Ax,_x):h>1&&sr.copy(Ax,Sx)}Ax.toArray(t[1])}}}}function Lx(t,e,n,i){var r="normal"===n,o=r?t:t.ensureState(n);o.ignore=e;var a=i.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?t.useStyle(s):o.style=s}function Px(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=qt(i[0],i[1]),o=qt(i[1],i[2]);if(!r||!o)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=te([],i[1],i[0],a/r),l=te([],i[1],i[2],a/o),u=te([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var c=1;c<i.length;c++)t.lineTo(i[c][0],i[c][1])}function Ox(t,e,n){var i=t.getTextGuideLine(),r=t.getTextContent();if(r){for(var o=e.normal,a=o.get("show"),s=r.ignore,l=0;l<Mu.length;l++){var u=Mu[l],c=e[u],h="normal"===u;if(c){var d=c.get("show"),p=h?s:yt(r.states[u]&&r.states[u].ignore,s);if(p||!yt(d,a)){var f=h?i:i&&i.states.normal;f&&(f.ignore=!0);continue}i||(i=new Lh,t.setTextGuideLine(i),h||!s&&a||Lx(i,!0,"normal",e.normal),t.stateProxy&&(i.stateProxy=t.stateProxy)),Lx(i,!1,u,c)}}if(i){W(i.style,n),i.style.fill=null;var g=o.get("showAbove"),v=t.textGuideLineConfig=t.textGuideLineConfig||{};v.showAbove=g||!1,i.buildPath=Px}}else i&&t.removeTextGuideLine()}function Ex(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},i=0;i<Su.length;i++){var r=Su[i];n[r]=t.getModel([r,e])}return n}function Rx(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];if(!i.defaultAttr.ignore){var r=i.label,o=r.getComputedTransform(),a=r.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=r.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new id(a,o):null;e.push({label:r,labelLine:i.labelLine,rect:u,localRect:a,obb:c,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:o})}}return e}function Nx(t,e,n,i,r,o){var a=t.length;if(!(a<2)){t.sort((function(t,n){return t.rect[e]-n.rect[e]}));for(var s,l=0,u=!1,c=[],h=0,d=0;d<a;d++){var p=t[d],f=p.rect;s=f[e]-l,s<0&&(f[e]-=s,p.label[e]-=s,u=!0);var g=Math.max(-s,0);c.push(g),h+=g,l=f[e]+f[n]}h>0&&o&&w(-h/a,0,a);var v,m,y=t[0],x=t[a-1];return b(),v<0&&S(-v,.8),m<0&&S(m,.8),b(),_(v,m,1),_(m,v,-1),b(),v<0&&M(-v),m<0&&M(m),u}function b(){v=y.rect[e]-i,m=r-x.rect[e]-x.rect[n]}function _(t,e,n){if(t<0){var i=Math.min(e,-t);if(i>0){w(i*n,0,a);var r=i+t;r<0&&S(-r*n,1)}else S(-t*n,1)}}function w(n,i,r){0!==n&&(u=!0);for(var o=i;o<r;o++){var a=t[o],s=a.rect;s[e]+=n,a.label[e]+=n}}function S(i,r){for(var o=[],s=0,l=1;l<a;l++){var u=t[l-1].rect,c=Math.max(t[l].rect[e]-u[e]-u[n],0);o.push(c),s+=c}if(s){var h=Math.min(Math.abs(i)/s,r);if(i>0)for(l=0;l<a-1;l++){var d=o[l]*h;w(d,0,l+1)}else for(l=a-1;l>0;l--){d=o[l-1]*h;w(-d,l,a)}}}function M(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),i=0;i<a-1;i++)if(e>0?w(n,0,i+1):w(-n,a-i-1,a),t-=n,t<=0)return}}function zx(t,e,n,i){return Nx(t,"x","width",e,n,i)}function Bx(t,e,n,i){return Nx(t,"y","height",e,n,i)}function Vx(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new mr(0,0,0,0);function i(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var r=0;r<t.length;r++){var o=t[r],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var h=o.obb,d=!1,p=0;p<e.length;p++){var f=e[p];if(n.intersect(f.rect)){if(a&&f.axisAligned){d=!0;break}if(f.obb||(f.obb=new id(f.localRect,f.transform)),h||(h=new id(s,l)),h.intersect(f.obb)){d=!0;break}}}d?(i(u),c&&i(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),e.push(o))}}function Fx(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}function Hx(t,e){var n=t.label,i=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:Fx(i&&i.shape.points)}}var $x=["align","verticalAlign","width","height","fontSize"],Wx=new or,Gx=ta(),jx=ta();function Yx(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null!=e[r]&&(t[r]=e[r])}}var Xx=["x","y","rotation"],Ux=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,n,i,r){var o=i.style,a=i.__hostTarget,s=a.textConfig||{},l=i.getComputedTransform(),u=i.getBoundingRect().plain();mr.applyTransform(u,u,l),l?Wx.setLocalTransform(l):(Wx.x=Wx.y=Wx.rotation=Wx.originX=Wx.originY=0,Wx.scaleX=Wx.scaleY=1);var c,h=i.__hostTarget;if(h){c=h.getBoundingRect().plain();var d=h.getComputedTransform();mr.applyTransform(c,c,d)}var p=c&&h.getTextGuideLine();this._labelList.push({label:i,labelLine:p,seriesModel:n,dataIndex:t,dataType:e,layoutOption:r,computedLayoutOption:null,rect:u,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:p&&p.ignore,x:Wx.x,y:Wx.y,scaleX:Wx.scaleX,scaleY:Wx.scaleY,rotation:Wx.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:s.position,attachedRot:s.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,i=n.get("labelLayout");(ot(i)||tt(i).length)&&t.group.traverse((function(t){if(t.ignore)return!0;var r=t.getTextContent(),o=vu(t);r&&!r.disableLabelLayout&&e._addLabel(o.dataIndex,o.dataType,n,r,i)}))},t.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();function i(t,e){return function(){Cx(t,e)}}for(var r=0;r<this._labelList.length;r++){var o=this._labelList[r],a=o.label,s=a.__hostTarget,l=o.defaultAttr,u=void 0;u="function"===typeof o.layoutOption?o.layoutOption(Hx(o,s)):o.layoutOption,u=u||{},o.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?(a.x=ao(u.x,e),a.setStyle("x",0),h=!0):(a.x=l.x,a.setStyle("x",l.style.x)),null!=u.y?(a.y=ao(u.y,n),a.setStyle("y",0),h=!0):(a.y=l.y,a.setStyle("y",l.style.y)),u.labelLinePoints){var d=s.getTextGuideLine();d&&(d.setShape({points:u.labelLinePoints}),h=!1)}var p=Gx(a);p.needsUpdateLabelLine=h,a.rotation=null!=u.rotate?u.rotate*c:l.rotation,a.scaleX=l.scaleX,a.scaleY=l.scaleY;for(var f=0;f<$x.length;f++){var g=$x[f];a.setStyle(g,null!=u[g]?u[g]:l.style[g])}if(u.draggable){if(a.draggable=!0,a.cursor="move",s){var v=o.seriesModel;if(null!=o.dataIndex){var m=o.seriesModel.getData(o.dataType);v=m.getItemModel(o.dataIndex)}a.on("drag",i(s,v.getModel("labelLine")))}}else a.off("drag"),a.cursor=l.cursor}},t.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),i=Rx(this._labelList),r=J(i,(function(t){return"shiftX"===t.layoutOption.moveOverlap})),o=J(i,(function(t){return"shiftY"===t.layoutOption.moveOverlap}));zx(r,0,e),Bx(o,0,n);var a=J(i,(function(t){return t.layoutOption.hideOverlap}));Vx(a)},t.prototype.processLabelsOverall=function(){var t=this;Z(this._chartViewList,(function(e){var n=e.__model,i=e.ignoreLabelLineUpdate,r=n.isAnimationEnabled();e.group.traverse((function(e){if(e.ignore)return!0;var o=!i,a=e.getTextContent();!o&&a&&(o=Gx(a).needsUpdateLabelLine),o&&t._updateLabelLine(e,n),r&&t._animateLabels(e,n)}))}))},t.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=vu(t),r=i.dataIndex;if(n&&null!=r){var o=e.getData(i.dataType),a=o.getItemModel(r),s={},l=o.getItemVisual(r,"style"),u=o.getVisual("drawType");s.stroke=l[u];var c=a.getModel("labelLine");Ox(t,Ex(a),s),Cx(t,c)}},t.prototype._animateLabels=function(t,e){var n=t.getTextContent(),i=t.getTextGuideLine();if(n&&!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!Dd(t)){var r=Gx(n),o=r.oldLayout,a=vu(t),s=a.dataIndex,l={x:n.x,y:n.y,rotation:n.rotation},u=e.getData(a.dataType);if(o){n.attr(o);var c=t.prevStates;c&&(j(c,"select")>=0&&n.attr(r.oldLayoutSelect),j(c,"emphasis")>=0&&n.attr(r.oldLayoutEmphasis)),Md(n,l,e,s)}else if(n.attr(l),!rp(n).valueAnimation){var h=yt(n.style.opacity,1);n.style.opacity=0,Id(n,{style:{opacity:h}},e,s)}if(r.oldLayout=l,n.states.select){var d=r.oldLayoutSelect={};Yx(d,l,Xx),Yx(d,n.states.select,Xx)}if(n.states.emphasis){var p=r.oldLayoutEmphasis={};Yx(p,l,Xx),Yx(p,n.states.emphasis,Xx)}ap(n,s,u,e,e)}if(i&&!i.ignore&&!i.invisible){r=jx(i),o=r.oldLayout;var f={points:i.shape.points};o?(i.attr({shape:o}),Md(i,{shape:f},e)):(i.setShape(f),i.style.strokePercent=0,Id(i,{style:{strokePercent:1}},e)),r.oldLayout=f}},t}(),Zx=Ux;function qx(t,e){function n(e,n){var i=[];return e.eachComponent({mainType:"series",subType:t,query:n},(function(t){i.push(t.seriesIndex)})),i}Z([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],(function(t){e(t[0],(function(e,i,r){e=$({},e),r.dispatchAction($(e,{type:t[1],seriesIndex:n(i,e)}))}))}))}function Kx(t,e,n,i,r){var o=t+e;n.isSilent(o)||i.eachComponent({mainType:"series",subType:"pie"},(function(t){for(var e=t.seriesIndex,i=r.selected,a=0;a<i.length;a++)if(i[a].seriesIndex===e){var s=t.getData(),l=Qo(s,r.fromActionPayload);n.trigger(o,{type:o,seriesId:t.id,name:rt(l)?s.getName(l[0]):s.getName(l),selected:$({},t.option.selectedMap)})}}))}function Jx(t,e,n){t.on("selectchanged",(function(t){var i=n.getModel();t.isFromClick?(Kx("map","selectchanged",e,i,t),Kx("pie","selectchanged",e,i,t)):"select"===t.fromAction?(Kx("map","selected",e,i,t),Kx("pie","selected",e,i,t)):"unselect"===t.fromAction&&(Kx("map","unselected",e,i,t),Kx("pie","unselected",e,i,t))}))}function Qx(t,e,n){var i;while(t){if(e(t)&&(i=t,n))break;t=t.__hostTarget||t.parent}return i}var tb=Math.round(9*Math.random()),eb=function(){function t(){this._id="__ec_inner_"+tb++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return"function"===typeof Object.defineProperty?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},t.prototype["delete"]=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}(),nb=eb,ib=Bl.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i+o),t.lineTo(n-r,i+o),t.closePath()}}),rb=Bl.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i),t.lineTo(n,i+o),t.lineTo(n-r,i),t.closePath()}}),ob=Bl.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width/5*3,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),d=Math.cos(u),p=.6*a,f=.7*a;t.moveTo(n-c,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+c-h*p,l+s+d*p,n,i-f,n,i),t.bezierCurveTo(n,i-f,n-c+h*p,l+s+d*p,n-c,l+s),t.closePath()}}),ab=Bl.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,r=e.x,o=e.y,a=i/3*2;t.moveTo(r,o),t.lineTo(r+a,o+n),t.lineTo(r,o+n/4*3),t.lineTo(r-a,o+n),t.lineTo(r,o),t.closePath()}}),sb={line:Rh,rect:eu,roundRect:eu,square:eu,circle:Jc,diamond:rb,pin:ob,arrow:ab,triangle:ib},lb={line:function(t,e,n,i,r){r.x1=t,r.y1=e+i/2,r.x2=t+n,r.y2=e+i/2},rect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i},roundRect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(t,e,n,i,r){var o=Math.min(n,i);r.x=t,r.y=e,r.width=o,r.height=o},circle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.r=Math.min(n,i)/2},diamond:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i},pin:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},arrow:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},triangle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i}},ub={};Z(sb,(function(t,e){ub[e]=new t}));var cb=Bl.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var i=Dr(t,e,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.position&&(i.y=n.y+.4*n.height),i},buildPath:function(t,e,n){var i=e.symbolType;if("none"!==i){var r=ub[i];r||(i="rect",r=ub[i]),lb[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n)}}});function hb(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function db(t,e,n,i,r,o,a){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),s=0===t.indexOf("image://")?vd(t.slice(8),new mr(e,n,i,r),a?"center":"cover"):0===t.indexOf("path://")?gd(t.slice(7),{},new mr(e,n,i,r),a?"center":"cover"):new cb({shape:{symbolType:t,x:e,y:n,width:i,height:r}}),s.__isEmptyBrush=l,s.setColor=hb,o&&s.setColor(o),s}function pb(t,e,n){var i=null==e.x?0:e.x,r=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;e.global||(i=i*n.width+n.x,r=r*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),i=isNaN(i)?0:i,r=isNaN(r)?1:r,o=isNaN(o)?0:o,a=isNaN(a)?0:a;var s=t.createLinearGradient(i,o,r,a);return s}function fb(t,e,n){var i=n.width,r=n.height,o=Math.min(i,r),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;e.global||(a=a*i+n.x,s=s*r+n.y,l*=o);var u=t.createRadialGradient(a,s,0,a,s,l);return u}function gb(t,e,n){for(var i="radial"===e.type?fb(t,e,n):pb(t,e,n),r=e.colorStops,o=0;o<r.length;o++)i.addColorStop(r[o].offset,r[o].color);return i}function vb(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}function mb(t,e){return t&&"solid"!==t&&e>0?(e=e||1,"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:lt(t)?[t]:rt(t)?t:null):null}var yb=new dl(!0);function xb(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function bb(t){var e=t.fill;return null!=e&&"none"!==e}function _b(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function wb(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function Sb(t,e,n){var i=Pa(e.image,e.__image,n);if(Ea(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"===typeof DOMMatrix&&r.setTransform){var o=new DOMMatrix;o.rotateSelf(0,0,(e.rotation||0)/Math.PI*180),o.scaleSelf(e.scaleX||1,e.scaleY||1),o.translateSelf(e.x||0,e.y||0),r.setTransform(o)}return r}}function Mb(t,e,n,i){var r=xb(n),o=bb(n),a=n.strokePercent,s=a<1,l=!e.path;e.silent&&!s||!l||e.createPathProxy();var u=e.path||yb;if(!i){var c=n.fill,h=n.stroke,d=o&&!!c.colorStops,p=r&&!!h.colorStops,f=o&&!!c.image,g=r&&!!h.image,v=void 0,m=void 0,y=void 0,x=void 0,b=void 0;(d||p)&&(b=e.getBoundingRect()),d&&(v=e.__dirty?gb(t,c,b):e.__canvasFillGradient,e.__canvasFillGradient=v),p&&(m=e.__dirty?gb(t,h,b):e.__canvasStrokeGradient,e.__canvasStrokeGradient=m),f&&(y=e.__dirty||!e.__canvasFillPattern?Sb(t,c,e):e.__canvasFillPattern,e.__canvasFillPattern=y),g&&(x=e.__dirty||!e.__canvasStrokePattern?Sb(t,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=y),d?t.fillStyle=v:f&&(y?t.fillStyle=y:o=!1),p?t.strokeStyle=m:g&&(x?t.strokeStyle=x:r=!1)}var _=n.lineDash&&n.lineWidth>0&&mb(n.lineDash,n.lineWidth),w=n.lineDashOffset,S=!!t.setLineDash,M=e.getGlobalScale();if(u.setScale(M[0],M[1],e.segmentIgnoreThreshold),_){var I=n.strokeNoScale&&e.getLineScale?e.getLineScale():1;I&&1!==I&&(_=q(_,(function(t){return t/I})),w/=I)}var C=!0;(l||e.__dirty&rn||_&&!S&&r)&&(u.setDPR(t.dpr),s?u.setContext(null):(u.setContext(t),C=!1),u.reset(),_&&!S&&(u.setLineDash(_),u.setLineDashOffset(w)),e.buildPath(u,e.shape,i),u.toStatic(),e.pathUpdated()),C&&u.rebuildPath(t,s?a:1),_&&S&&(t.setLineDash(_),t.lineDashOffset=w),i||(n.strokeFirst?(r&&wb(t,n),o&&_b(t,n)):(o&&_b(t,n),r&&wb(t,n))),_&&S&&t.setLineDash([])}function Ib(t,e,n){var i=e.__image=Pa(n.image,e.__image,e,e.onload);if(i&&Ea(i)){var r=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=i.width,s=i.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;t.drawImage(i,u,c,n.sWidth,n.sHeight,r,o,a,s)}else if(n.sx&&n.sy){u=n.sx,c=n.sy;var h=a-u,d=s-c;t.drawImage(i,u,c,h,d,r,o,a,s)}else t.drawImage(i,r,o,a,s)}}function Cb(t,e,n){var i=n.text;if(null!=i&&(i+=""),i){t.font=n.font||xr,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var r=void 0;if(t.setLineDash){var o=n.lineDash&&n.lineWidth>0&&mb(n.lineDash,n.lineWidth),a=n.lineDashOffset;if(o){var s=n.strokeNoScale&&e.getLineScale?e.getLineScale():1;s&&1!==s&&(o=q(o,(function(t){return t/s})),a/=s),t.setLineDash(o),t.lineDashOffset=a,r=!0}}n.strokeFirst?(xb(n)&&t.strokeText(i,n.x,n.y),bb(n)&&t.fillText(i,n.x,n.y)):(bb(n)&&t.fillText(i,n.x,n.y),xb(n)&&t.strokeText(i,n.x,n.y)),r&&t.setLineDash([])}}var Tb=["shadowBlur","shadowOffsetX","shadowOffsetY"],Ab=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Db(t,e,n,i,r){var o=!1;if(!i&&(n=n||{},e===n))return!1;if(i||e.opacity!==n.opacity){o||(Fb(t,r),o=!0);var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?Ka.opacity:a}(i||e.blend!==n.blend)&&(o||(Fb(t,r),o=!0),t.globalCompositeOperation=e.blend||Ka.blend);for(var s=0;s<Tb.length;s++){var l=Tb[s];(i||e[l]!==n[l])&&(o||(Fb(t,r),o=!0),t[l]=t.dpr*(e[l]||0))}return(i||e.shadowColor!==n.shadowColor)&&(o||(Fb(t,r),o=!0),t.shadowColor=e.shadowColor||Ka.shadowColor),o}function kb(t,e,n,i,r){var o=Hb(e,r.inHover),a=i?null:n&&Hb(n,r.inHover)||{};if(o===a)return!1;var s=Db(t,o,a,i,r);if((i||o.fill!==a.fill)&&(s||(Fb(t,r),s=!0),t.fillStyle=o.fill),(i||o.stroke!==a.stroke)&&(s||(Fb(t,r),s=!0),t.strokeStyle=o.stroke),(i||o.opacity!==a.opacity)&&(s||(Fb(t,r),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth,u=l/(o.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(Fb(t,r),s=!0),t.lineWidth=u)}for(var c=0;c<Ab.length;c++){var h=Ab[c],d=h[0];(i||o[d]!==a[d])&&(s||(Fb(t,r),s=!0),t[d]=o[d]||h[1])}return s}function Lb(t,e,n,i,r){return Db(t,Hb(e,r.inHover),n&&Hb(n,r.inHover),i,r)}function Pb(t,e){var n=e.transform,i=t.dpr||1;n?t.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):t.setTransform(i,0,0,i,0,0)}function Ob(t,e,n){for(var i=!1,r=0;r<t.length;r++){var o=t[r];i=i||o.isZeroArea(),Pb(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=i}function Eb(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var Rb=1,Nb=2,zb=3,Bb=4;function Vb(t){var e=bb(t),n=xb(t);return!(t.lineDash||!(+e^+n)||e&&"string"!==typeof t.fill||n&&"string"!==typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function Fb(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function Hb(t,e){return e&&t.__hoverStyle||t.style}function $b(t,e){Wb(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Wb(t,e,n,i){var r=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=~en,void(e.__isRendered=!1);var o=e.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(a&&!vb(o,a)||(a&&a.length&&(Fb(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(Fb(t,n),t.save(),Ob(o,t,n),s=!0),n.prevElClipPaths=o),n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c=e instanceof Bl&&e.autoBatch&&Vb(e.style);s||Eb(r,u.transform)?(Fb(t,n),Pb(t,e)):c||Fb(t,n);var h=Hb(e,n.inHover);e instanceof Bl?(n.lastDrawType!==Rb&&(l=!0,n.lastDrawType=Rb),kb(t,e,u,l,n),c&&(n.batchFill||n.batchStroke)||t.beginPath(),Mb(t,e,h,c),c&&(n.batchFill=h.fill||"",n.batchStroke=h.stroke||"")):e instanceof Hl?(n.lastDrawType!==zb&&(l=!0,n.lastDrawType=zb),kb(t,e,u,l,n),Cb(t,e,h)):e instanceof Yl?(n.lastDrawType!==Nb&&(l=!0,n.lastDrawType=Nb),Lb(t,e,u,l,n),Ib(t,e,h)):e instanceof ad&&(n.lastDrawType!==Bb&&(l=!0,n.lastDrawType=Bb),Gb(t,e,n)),c&&i&&Fb(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}}function Gb(t,e,n){var i=e.getDisplayables(),r=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=e.getCursor(),a=i.length;o<a;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Wb(t,l,s,o===a-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,c=r.length;u<c;u++){l=r[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Wb(t,l,s,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var jb,Yb=new nb,Xb=new xn(100),Ub=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Zb(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),r="svg"===i.painter.type;t.dirty&&Yb["delete"](t);var o=Yb.get(t);if(o)return o;var a=W(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=a.rotation,s.scaleX=s.scaleY=r?1:1/n,Yb.set(t,s),t.dirty=!1,s;function l(t){for(var e,o=[n],s=!0,l=0;l<Ub.length;++l){var u=a[Ub[l]],c=typeof u;if(null!=u&&!rt(u)&&"string"!==c&&"number"!==c&&"boolean"!==c){s=!1;break}o.push(u)}if(s){e=o.join(",")+(r?"-svg":"");var h=Xb.get(e);h&&(r?t.svgElement=h:t.image=h)}var d,p=Kb(a.dashArrayX),f=Jb(a.dashArrayY),g=qb(a.symbol),v=Qb(p),m=t_(f),y=!r&&G(),x=r&&i.painter.createSVGElement("g"),b=_();function _(){for(var t=1,e=0,n=v.length;e<n;++e)t=Do(t,v[e]);var i=1;for(e=0,n=g.length;e<n;++e)i=Do(i,g[e].length);t*=i;var r=m*v.length*g.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}function w(){d&&(d.clearRect(0,0,y.width,y.height),a.backgroundColor&&(d.fillStyle=a.backgroundColor,d.fillRect(0,0,y.width,y.height)));for(var t=0,e=0;e<f.length;++e)t+=f[e];if(!(t<=0)){var o=-m,s=0,l=0,u=0;while(o<b.height){if(s%2===0){var c=l/2%g.length,h=0,v=0,_=0;while(h<2*b.width){var w=0;for(e=0;e<p[u].length;++e)w+=p[u][e];if(w<=0)break;if(v%2===0){var S=.5*(1-a.symbolSize),M=h+p[u][v]*S,I=o+f[s]*S,C=p[u][v]*a.symbolSize,T=f[s]*a.symbolSize,A=_/2%g[c].length;D(M,I,C,T,g[c][A])}h+=p[u][v],++_,++v,v===p[u].length&&(v=0)}++u,u===p.length&&(u=0)}o+=f[s],++l,++s,s===f.length&&(s=0)}}function D(t,e,o,s,l){var u=r?1:n,c=db(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);r?x.appendChild(i.painter.paintOne(c)):$b(d,c)}}y&&(y.width=b.width*n,y.height=b.height*n,d=y.getContext("2d")),w(),s&&Xb.put(e,y||x),t.image=y,t.svgElement=x,t.svgWidth=b.width,t.svgHeight=b.height}}function qb(t){if(!t||0===t.length)return[["rect"]];if("string"===typeof t)return[[t]];for(var e=!0,n=0;n<t.length;++n)if("string"!==typeof t[n]){e=!1;break}if(e)return qb([t]);var i=[];for(n=0;n<t.length;++n)"string"===typeof t[n]?i.push([t[n]]):i.push(t[n]);return i}function Kb(t){if(!t||0===t.length)return[[0,0]];if("number"===typeof t){var e=Math.ceil(t);return[[e,e]]}for(var n=!0,i=0;i<t.length;++i)if("number"!==typeof t[i]){n=!1;break}if(n)return Kb([t]);var r=[];for(i=0;i<t.length;++i)if("number"===typeof t[i]){e=Math.ceil(t[i]);r.push([e,e])}else{e=q(t[i],(function(t){return Math.ceil(t)}));e.length%2===1?r.push(e.concat(e)):r.push(e)}return r}function Jb(t){if(!t||"object"===typeof t&&0===t.length)return[0,0];if("number"===typeof t){var e=Math.ceil(t);return[e,e]}var n=q(t,(function(t){return Math.ceil(t)}));return t.length%2?n.concat(n):n}function Qb(t){return q(t,(function(t){return t_(t)}))}function t_(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2===1?2*e:e}function e_(t,e){t.eachRawSeries((function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each((function(t){var n=i.getItemVisual(t,"decal");if(n){var r=i.ensureUniqueItemVisual(t,"style");r.decal=Zb(n,e)}}));var r=i.getVisual("decal");if(r){var o=i.getVisual("style");o.decal=Zb(r,e)}}}))}function n_(t){if(at(t)){var e=new DOMParser;t=e.parseFromString(t,"text/xml")}var n=t;9===n.nodeType&&(n=n.firstChild);while("svg"!==n.nodeName.toLowerCase()||1!==n.nodeType)n=n.nextSibling;return n}var i_={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},r_=tt(i_),o_={"alignment-baseline":"textBaseline","stop-color":"stopColor"},a_=tt(o_),s_=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=n_(t);if(!n)throw new Error("Illegal svg");this._defsUsePending=[];var i=new Wr;this._root=i;var r=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||e.width),s=parseFloat(n.getAttribute("height")||e.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),p_(n,i,null,!0,!1);var l,u,c=n.firstChild;while(c)this._parseNode(c,i,r,null,!1,!1),c=c.nextSibling;if(m_(this._defs,this._defsUsePending),this._defsUsePending=[],o){var h=x_(o);h.length>=4&&(l={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(l&&null!=a&&null!=s&&(u=C_(l,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var d=i;i=new Wr,i.add(d),d.scaleX=d.scaleY=u.scale,d.x=u.x,d.y=u.y}return e.ignoreRootClip||null==a||null==s||i.setClipPath(new eu({shape:{x:0,y:0,width:a,height:s}})),{root:i,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:r}},t.prototype._parseNode=function(t,e,n,i,r,o){var a,s=t.nodeName.toLowerCase(),l=i;if("defs"===s&&(r=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=e;else{if(!r){var u=jb[s];if(u&&Lt(jb,s)){a=u.call(this,t,e);var c=t.getAttribute("name");if(c){var h={name:c,namedFrom:null,svgNodeTagLower:s,el:a};n.push(h),"g"===s&&(l=h)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:a});e.add(a)}}var d=l_[s];if(d&&Lt(l_,s)){var p=d.call(this,t),f=t.getAttribute("id");f&&(this._defs[f]=p)}}if(a&&a.isGroup){var g=t.firstChild;while(g)1===g.nodeType?this._parseNode(g,a,n,l,r,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling}},t.prototype._parseText=function(t,e){var n=new Hl({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});h_(e,n),p_(t,n,this._defsUsePending,!1,!1),f_(n,e);var i=n.style,r=i.fontSize;r&&r<9&&(i.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var a=n.getBoundingRect();return this._textX+=a.width,e.add(n),n},t.internalField=function(){jb={g:function(t,e){var n=new Wr;return h_(e,n),p_(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new eu;return h_(e,n),p_(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new Jc;return h_(e,n),p_(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new Rh;return h_(e,n),p_(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new eh;return h_(e,n),p_(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n,i=t.getAttribute("points");i&&(n=d_(i));var r=new Ah({shape:{points:n||[]},silent:!0});return h_(e,r),p_(t,r,this._defsUsePending,!1,!1),r},polyline:function(t,e){var n,i=t.getAttribute("points");i&&(n=d_(i));var r=new Lh({shape:{points:n||[]},silent:!0});return h_(e,r),p_(t,r,this._defsUsePending,!1,!1),r},image:function(t,e){var n=new Yl;return h_(e,n),p_(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var a=new Wr;return h_(e,a),p_(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",a=new Wr;return h_(e,a),p_(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),a},path:function(t,e){var n=t.getAttribute("d")||"",i=Xc(n);return h_(e,i),p_(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),t}(),l_={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),i=parseInt(t.getAttribute("x2")||"10",10),r=parseInt(t.getAttribute("y2")||"0",10),o=new Zh(e,n,i,r);return u_(t,o),c_(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),i=parseInt(t.getAttribute("r")||"0",10),r=new Kh(e,n,i);return u_(t,r),c_(t,r),r}};function u_(t,e){var n=t.getAttribute("gradientUnits");"userSpaceOnUse"===n&&(e.global=!0)}function c_(t,e){var n=t.firstChild;while(n){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i=n.getAttribute("offset"),r=void 0;r=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var o={};M_(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:r,color:a})}n=n.nextSibling}}function h_(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),W(e.__inheritedStyle,t.__inheritedStyle))}function d_(t){for(var e=x_(t),n=[],i=0;i<e.length;i+=2){var r=parseFloat(e[i]),o=parseFloat(e[i+1]);n.push([r,o])}return n}function p_(t,e,n,i,r){var o=e,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};1===t.nodeType&&(w_(t,e),M_(t,a,s),i||I_(t,a,s)),o.style=o.style||{},null!=a.fill&&(o.style.fill=v_(o,"fill",a.fill,n)),null!=a.stroke&&(o.style.stroke=v_(o,"stroke",a.stroke,n)),Z(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(t){null!=a[t]&&(o.style[t]=parseFloat(a[t]))})),Z(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(t){null!=a[t]&&(o.style[t]=a[t])})),r&&(o.__selfStyle=s),a.lineDash&&(o.style.lineDash=q(x_(a.lineDash),(function(t){return parseFloat(t)}))),"hidden"!==a.visibility&&"collapse"!==a.visibility||(o.invisible=!0),"none"===a.display&&(o.ignore=!0)}function f_(t,e){var n=e.__selfStyle;if(n){var i=n.textBaseline,r=i;i&&"auto"!==i?"baseline"===i?r="alphabetic":"before-edge"===i||"text-before-edge"===i?r="top":"after-edge"===i||"text-after-edge"===i?r="bottom":"central"!==i&&"mathematical"!==i||(r="middle"):r="alphabetic",t.style.textBaseline=r}var o=e.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),t.style.textAlign=s)}}var g_=/^url\(\s*#(.*?)\)/;function v_(t,e,n,i){var r=n&&n.match(g_);if(!r)return"none"===n&&(n=null),n;var o=St(r[1]);i.push([t,e,o])}function m_(t,e){for(var n=0;n<e.length;n++){var i=e[n];i[0].style[i[1]]=t[i[2]]}}var y_=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function x_(t){return t.match(y_)||[]}var b_=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,__=Math.PI/180;function w_(t,e){var n=t.getAttribute("transform");if(n){n=n.replace(/,/g," ");var i=[],r=null;n.replace(b_,(function(t,e,n){return i.push(e,n),""}));for(var o=i.length-1;o>0;o-=2){var a=i[o],s=i[o-1],l=x_(a);switch(r=r||Fi(),s){case"translate":Gi(r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Yi(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":ji(r,r,-parseFloat(l[0])*__);break;case"skewX":var u=Math.tan(parseFloat(l[0])*__);Wi(r,[1,0,u,1,0,0],r);break;case"skewY":var c=Math.tan(parseFloat(l[0])*__);Wi(r,[1,c,0,1,0,0],r);break;case"matrix":r[0]=parseFloat(l[0]),r[1]=parseFloat(l[1]),r[2]=parseFloat(l[2]),r[3]=parseFloat(l[3]),r[4]=parseFloat(l[4]),r[5]=parseFloat(l[5]);break}}e.setLocalTransform(r)}}var S_=/([^\s:;]+)\s*:\s*([^:;]+)/g;function M_(t,e,n){var i=t.getAttribute("style");if(i){var r;S_.lastIndex=0;while(null!=(r=S_.exec(i))){var o=r[1],a=Lt(i_,o)?i_[o]:null;a&&(e[a]=r[2]);var s=Lt(o_,o)?o_[o]:null;s&&(n[s]=r[2])}}}function I_(t,e,n){for(var i=0;i<r_.length;i++){var r=r_[i],o=t.getAttribute(r);null!=o&&(e[i_[r]]=o)}for(i=0;i<a_.length;i++){r=a_[i],o=t.getAttribute(r);null!=o&&(n[o_[r]]=o)}}function C_(t,e){var n=e.width/t.width,i=e.height/t.height,r=Math.min(n,i);return{scale:r,x:-(t.x+t.width/2)*r+(e.x+e.width/2),y:-(t.y+t.height/2)*r+(e.y+e.height/2)}}function T_(t,e){var n=new s_;return n.parse(t,e)}var A_=1e-8;function D_(t,e){return Math.abs(t-e)<A_}function k_(t,e,n){var i=0,r=t[0];if(!r)return!1;for(var o=1;o<t.length;o++){var a=t[o];i+=bl(r[0],r[1],a[0],a[1],e,n),r=a}var s=t[0];return D_(r[0],s[0])&&D_(r[1],s[1])||(i+=bl(r[0],r[1],s[0],s[1],e,n)),0!==i}var L_=[],P_=function(){function t(t){this.name=t}return t.prototype.getCenter=function(){},t}(),O_=function(t){function e(e,n,i){var r=t.call(this,e)||this;if(r.type="geoJSON",r.geometries=n,i)i=[i[0],i[1]];else{var o=r.getBoundingRect();i=[o.x+o.width/2,o.y+o.height/2]}return r._center=i,r}return v(e,t),e.prototype.getBoundingRect=function(){var t=this._rect;if(t)return t;for(var e=Number.MAX_VALUE,n=[e,e],i=[-e,-e],r=[],o=[],a=this.geometries,s=0;s<a.length;s++)if("polygon"===a[s].type){var l=a[s].exterior;Vs(l,r,o),ne(n,n,r),ie(i,i,o)}return 0===s&&(n[0]=n[1]=i[0]=i[1]=0),this._rect=new mr(n[0],n[1],i[0]-n[0],i[1]-n[1])},e.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var i=0,r=n.length;i<r;i++)if("polygon"===n[i].type){var o=n[i].exterior,a=n[i].interiors;if(k_(o,t[0],t[1])){for(var s=0;s<(a?a.length:0);s++)if(k_(a[s],t[0],t[1]))continue t;return!0}}return!1},e.prototype.transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=r.width/r.height;n?i||(i=n/o):n=o*i;for(var a=new mr(t,e,n,i),s=r.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++)if("polygon"===l[u].type){for(var c=l[u].exterior,h=l[u].interiors,d=0;d<c.length;d++)ee(c[d],c[d],s);for(var p=0;p<(h?h.length:0);p++)for(d=0;d<h[p].length;d++)ee(h[p][d],h[p][d],s)}r=this._rect,r.copy(a),this._center=[r.x+r.width/2,r.y+r.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.prototype.getCenter=function(){return this._center},e.prototype.setCenter=function(t){this._center=t},e}(P_),E_=function(t){function e(e,n){var i=t.call(this,e)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return v(e,t),e.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this._calculateCenter()),t},e.prototype._calculateCenter=function(){var t=this._elOnlyForCalculate,e=t.getBoundingRect(),n=[e.x+e.width/2,e.y+e.height/2],i=Hi(L_),r=t;while(r&&!r.isGeoSVGGraphicRoot)Wi(i,r.getLocalTransform(),i),r=r.parent;return Xi(i,i),ee(n,n,i),n},e}(P_),R_=At(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),N_=function(){function t(t,e){this.type="geoSVG",this._usedGraphicMap=At(),this._freedGraphics=[],this._mapName=t,this._parsedXML=n_(e)}return t.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=B_(t.named),n=e.regions,i=e.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(t){var e,n;try{e=t&&T_(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=e.root,wt(null!=n)}catch(g){throw new Error("Invalid svg format\n"+g.message)}var i=new Wr;i.add(n),i.isGeoSVGGraphicRoot=!0;var r=e.width,o=e.height,a=e.viewBoxRect,s=this._boundingRect;if(!s){var l=void 0,u=void 0,c=void 0,h=void 0;if(null!=r?(l=0,c=r):a&&(l=a.x,c=a.width),null!=o?(u=0,h=o):a&&(u=a.y,h=a.height),null==l||null==u){var d=n.getBoundingRect();null==l&&(l=d.x,c=d.width),null==u&&(u=d.y,h=d.height)}s=this._boundingRect=new mr(l,u,c,h)}if(a){var p=C_(a,s);n.scaleX=n.scaleY=p.scale,n.x=p.x,n.y=p.y}i.setClipPath(new eu({shape:s.plain()}));var f=[];return Z(e.named,(function(t){null!=R_.get(t.svgNodeTagLower)&&(f.push(t),z_(t.el))})),{root:i,boundingRect:s,named:f}},t.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n),n)},t.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},t}();function z_(t){t.silent=!1,t.isGroup&&t.traverse((function(t){t.silent=!1}))}function B_(t){var e=[],n=At();return Z(t,(function(t){if(null==t.namedFrom){var i=new E_(t.name,t.el);e.push(i),n.set(t.name,i)}})),{regions:e,regionsMap:n}}function V_(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;null==n&&(n=1024);for(var i=e.features,r=0;r<i.length;r++){var o=i[r],a=o.geometry;if("Polygon"===a.type)for(var s=a.coordinates,l=0;l<s.length;l++)s[l]=F_(s[l],a.encodeOffsets[l],n);else if("MultiPolygon"===a.type)for(s=a.coordinates,l=0;l<s.length;l++)for(var u=s[l],c=0;c<u.length;c++)u[c]=F_(u[c],a.encodeOffsets[l][c],n)}return e.UTF8Encoding=!1,e}function F_(t,e,n){for(var i=[],r=e[0],o=e[1],a=0;a<t.length;a+=2){var s=t.charCodeAt(a)-64,l=t.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=r,l+=o,r=s,o=l,i.push([s/n,l/n])}return i}function H_(t,e){return t=V_(t),q(J(t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,i=t.geometry,r=[];if("Polygon"===i.type){var o=i.coordinates;r.push({type:"polygon",exterior:o[0],interiors:o.slice(1)})}if("MultiPolygon"===i.type){o=i.coordinates;Z(o,(function(t){t[0]&&r.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})}))}var a=new O_(n[e||"name"],r,n.cp);return a.properties=n,a}))}for(var $_=[126,25],W_="南海诸岛",G_=[[[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]]],j_=0;j_<G_.length;j_++)for(var Y_=0;Y_<G_[j_].length;Y_++)G_[j_][Y_][0]/=10.5,G_[j_][Y_][1]/=-14,G_[j_][Y_][0]+=$_[0],G_[j_][Y_][1]+=$_[1];function X_(t,e){if("china"===t){for(var n=0;n<e.length;n++)if(e[n].name===W_)return;e.push(new O_(W_,q(G_,(function(t){return{type:"polygon",exterior:t}})),$_))}}var U_={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};function Z_(t,e){if("china"===t){var n=U_[e.name];if(n){var i=e.getCenter();i[0]+=n[0]/10.5,i[1]+=-n[1]/14,e.setCenter(i)}}}var q_={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function K_(t,e){if("world"===t){var n=q_[e.name];if(n){var i=[n[0],n[1]];e.setCenter(i)}}}var J_=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function Q_(t,e){"china"===t&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:J_[0]})}var tw="name",ew=function(){function t(t,e,n){this.type="geoJSON",this._parsedMap=At(),this._mapName=t,this._specialAreas=n,this._geoJSON=iw(e)}return t.prototype.load=function(t,e){e=e||tw;var n=this._parsedMap.get(e);if(!n){var i=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:i,boundingRect:nw(i)})}var r=At(),o=[];return Z(n.regions,(function(e){var n=e.name;t&&t.hasOwnProperty(n)&&(e=e.cloneShallow(n=t[n])),o.push(e),r.set(n,e)})),{regions:o,boundingRect:n.boundingRect||new mr(0,0,0,0),regionsMap:r}},t.prototype._parseToRegions=function(t){var e,n=this._mapName,i=this._geoJSON;try{e=i?H_(i,t):[]}catch(r){throw new Error("Invalid geoJson format\n"+r.message)}return X_(n,e),Z(e,(function(t){var e=t.name;Z_(n,t),K_(n,t),Q_(n,t);var i=this._specialAreas&&this._specialAreas[e];i&&t.transformTo(i.left,i.top,i.width,i.height)}),this),e},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}();function nw(t){for(var e,n=0;n<t.length;n++){var i=t[n].getBoundingRect();e=e||i.clone(),e.union(i)}return e}function iw(t){return at(t)?"undefined"!==typeof JSON&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t}var rw=At(),ow={registerMap:function(t,e,n){if(e.svg){var i=new N_(t,e.svg);rw.set(t,i)}else{var r=e.geoJson||e.geoJSON;r&&!e.features?n=e.specialAreas:r=e;i=new ew(t,r,n);rw.set(t,i)}},getGeoResource:function(t){return rw.get(t)},getMapForUser:function(t){var e=rw.get(t);return e&&"geoJSON"===e.type&&e.getMapForUser()},load:function(t,e,n){var i=rw.get(t);if(i)return i.load(e,n)}},aw=wt,sw=Z,lw=ot,uw=ut,cw=j,hw="undefined"!==typeof window,dw="5.1.2",pw={zrender:"5.1.1"},fw=1,gw=800,vw=900,mw=1e3,yw=2e3,xw=5e3,bw=1e3,_w=1100,ww=2e3,Sw=3e3,Mw=4e3,Iw=4500,Cw=4600,Tw=5e3,Aw=6e3,Dw=7e3,kw={PROCESSOR:{FILTER:mw,SERIES_FILTER:gw,STATISTIC:xw},VISUAL:{LAYOUT:bw,PROGRESSIVE_LAYOUT:_w,GLOBAL:ww,CHART:Sw,POST_CHART_LAYOUT:Cw,COMPONENT:Mw,BRUSH:Tw,CHART_ITEM:Iw,ARIA:Aw,DECAL:Dw}},Lw="__flagInMainProcess",Pw="__optionUpdated",Ow="__needsUpdateStatus",Ew=/^[a-zA-Z0-9_]+$/,Rw="__connectUpdateStatus",Nw=0,zw=1,Bw=2;function Vw(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return Hw(this,t,e);fS(this.id)}}function Fw(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Hw(this,t,e)}}function Hw(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),le.prototype[e].apply(t,n)}var $w,Ww,Gw,jw,Yw,Xw,Uw,Zw,qw,Kw,Jw,Qw,tS,eS,nS,iS,rS,oS,aS,sS,lS,uS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e}(le),cS=uS.prototype;cS.on=Fw("on"),cS.off=Fw("off");var hS=function(t){function e(e,n,i){var r=t.call(this,new rx)||this;r._chartsViews=[],r._chartsMap={},r._componentsViews=[],r._componentsMap={},r._pendingActions=[],i=i||{},"string"===typeof n&&(n=wS[n]),r._dom=e;var o="canvas",a=!1,s=r._zr=qr(e,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,useDirtyRect:null==i.useDirtyRect?a:i.useDirtyRect});r._throttledZrFlush=by(nt(s.flush,s),17),n=V(n),n&&_v(n,!0),r._theme=n,r._locale=Op(i.locale||Lp),r._coordSysMgr=new Gg;var l=r._api=rS(r);function u(t,e){return t.__prio-e.__prio}return tn(_S,u),tn(mS,u),r._scheduler=new Zy(r,l,mS,_S),r._messageCenter=new uS,r._labelManager=new Zx,r._initEvents(),r.resize=nt(r.resize,r),s.animation.on("frame",r._onframe,r),Kw(s,r),Jw(s,r),It(r),r}return v(e,t),e.prototype._onframe=function(){if(!this._disposed){lS(this);var t=this._scheduler;if(this[Pw]){var e=this[Pw].silent;this[Lw]=!0,$w(this),jw.update.call(this),this._zr.flush(),this[Lw]=!1,this[Pw]=!1,Zw.call(this,e),qw.call(this,e)}else if(t.unfinished){var n=fw,i=this._model,r=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),Xw(this,i),t.performVisualTasks(i),nS(this,this._model,r,"remain"),n-=+new Date-o}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.setOption=function(t,e,n){if(this._disposed)fS(this.id);else{var i,r,o;if(uw(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[Lw]=!0,!this._model||e){var a=new Kg(this._api),s=this._theme,l=this._model=new Bg;l.scheduler=this._scheduler,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},yS),aS(this,o),n?(this[Pw]={silent:i},this[Lw]=!1,this.getZr().wakeUp()):($w(this),jw.update.call(this),this._zr.flush(),this[Pw]=!1,this[Lw]=!1,Zw.call(this,i),qw.call(this,i))}},e.prototype.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||hw&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){if(S.canvasSupported)return t=t||{},this._zr.painter.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.getSvgDataURL=function(){if(S.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return Z(e,(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,n=this._model,i=[],r=this;sw(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return sw(i,(function(t){t.group.ignore=!1})),o}fS(this.id)},e.prototype.getConnectedDataURL=function(t){if(this._disposed)fS(this.id);else if(S.canvasSupported){var e="svg"===t.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(IS[n]){var a=o,s=o,l=-o,u=-o,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();Z(MS,(function(o,h){if(o.group===n){var d=e?o.getZr().painter.getSvgDom().innerHTML:o.getRenderedCanvas(V(t)),p=o.getDom().getBoundingClientRect();a=i(p.left,a),s=i(p.top,s),l=r(p.right,l),u=r(p.bottom,u),c.push({dom:d,left:p.left,top:p.top})}})),a*=h,s*=h,l*=h,u*=h;var d=l-a,p=u-s,f=G(),g=qr(f,{renderer:e?"svg":"canvas"});if(g.resize({width:d,height:p}),e){var v="";return sw(c,(function(t){var e=t.left-a,n=t.top-s;v+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"})),g.painter.getSvgRoot().innerHTML=v,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return t.connectedBackgroundColor&&g.add(new eu({shape:{x:0,y:0,width:d,height:p},style:{fill:t.connectedBackgroundColor}})),sw(c,(function(t){var e=new Yl({style:{x:t.left*h-a,y:t.top*h-s,image:t.dom}});g.add(e)})),g.refreshImmediately(),f.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},e.prototype.convertToPixel=function(t,e){return Yw(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return Yw(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){if(!this._disposed){var n,i=this._model,r=na(i,t);return Z(r,(function(t,i){i.indexOf("Models")>=0&&Z(t,(function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}else 0}),this)}),this),!!n}fS(this.id)},e.prototype.getVisual=function(t,e){var n=this._model,i=na(n,t,{defaultMainType:"series"}),r=i.seriesModel;var o=r.getData(),a=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?o.indexOfRawIndex(i.dataIndex):null;return null!=a?sx(o,a,e):lx(o,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;sw(pS,(function(e){var n=function(n){var i,r=t.getModel(),o=n.target,a="globalout"===e;if(a?i={}:o&&Qx(o,(function(t){var e=vu(t);if(e&&null!=e.dataIndex){var n=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return i=n&&n.getDataParams(e.dataIndex,e.dataType)||{},!0}if(e.eventData)return i=$({},e.eventData),!0}),!0),i){var s=i.componentType,l=i.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=i.seriesIndex);var u=s&&null!=l&&r.getComponent(s,l),c=u&&t["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,i.event=n,i.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:i,model:u,view:c},t.trigger(e,i)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)})),sw(vS,(function(e,n){t._messageCenter.on(n,(function(t){this.trigger(n,t)}),t)})),sw(["selectchanged"],(function(e){t._messageCenter.on(e,(function(t){this.trigger(e,t)}),t)})),Jx(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?fS(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)fS(this.id);else{this._disposed=!0,sa(this.getDom(),AS,"");var t=this._api,e=this._model;sw(this._componentsViews,(function(n){n.dispose(e,t)})),sw(this._chartsViews,(function(n){n.dispose(e,t)})),this._zr.dispose(),delete MS[this.id]}},e.prototype.resize=function(t){if(this._disposed)fS(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[Pw]&&(null==i&&(i=this[Pw].silent),n=!0,this[Pw]=!1),this[Lw]=!0,n&&$w(this),jw.update.call(this,{type:"resize",animation:$({duration:0},t&&t.animation)}),this[Lw]=!1,Zw.call(this,i),qw.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed)fS(this.id);else if(uw(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),SS[t]){var n=SS[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){this._disposed?fS(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=$({},t);return e.type=vS[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)fS(this.id);else if(uw(e)||(e={silent:!!e}),gS[t.type]&&this._model)if(this[Lw])this._pendingActions.push(t);else{var n=e.silent;Uw.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&S.browser.weChat&&this._throttledZrFlush(),Zw.call(this,n),qw.call(this,n)}},e.prototype.updateLabelLayout=function(){var t=this._labelManager;t.updateLayoutConfig(this._api),t.layout(this._api),t.processLabelsOverall()},e.prototype.appendData=function(t){if(this._disposed)fS(this.id);else{var e=t.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(e);0,i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){for(var e=[],n=t.currentStates,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}t.selected&&t.states.select&&e.push("select"),t.hoverState===wu&&t.states.emphasis?e.push("emphasis"):t.hoverState===_u&&t.states.blur&&e.push("blur"),t.useStates(e)}function e(t,e){var n=t._zr,i=n.storage,r=0;i.traverse((function(t){t.isGroup||r++})),r>e.get("hoverLayerThreshold")&&!S.node&&!S.worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.group.traverse((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}function n(t,e){var n=t.get("blendMode")||null;e.group.traverse((function(t){t.isGroup||(t.style.blend=n),t.eachPendingDisplayable&&t.eachPendingDisplayable((function(t){t.style.blend=n}))}))}function i(t,e){t.preventAutoZ||r(e.group,t.get("z")||0,t.get("zlevel")||0,-1/0)}function r(t,e,n,i){var o=t.getTextContent(),a=t.getTextGuideLine(),s=t.isGroup;if(s)for(var l=t.childrenRef(),u=0;u<l.length;u++)i=Math.max(r(l[u],e,n,i),i);else t.z=e,t.zlevel=n,i=Math.max(t.z2,i);if(o&&(o.z=e,o.zlevel=n,isFinite(i)&&(o.z2=i+2)),a){var c=t.textGuideLineConfig;a.z=e,a.zlevel=n,isFinite(i)&&(a.z2=i+(c&&c.showAbove?1:-1))}return i}function o(t,e){e.group.traverse((function(t){if(!Dd(t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}}))}function a(e,n){var i=e.getModel("stateAnimation"),r=e.isAnimationEnabled(),o=i.get("duration"),a=o>0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;n.group.traverse((function(e){if(e.states&&e.states.emphasis){if(Dd(e))return;if(e instanceof Bl&&Tc(e),e.__dirty){var n=e.prevStates;n&&e.useStates(n)}if(r){e.stateTransition=a;var i=e.getTextContent(),o=e.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}e.__dirty&&t(e)}}))}$w=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),Ww(t,!0),Ww(t,!1),e.plan()},Ww=function(t,e){for(var n=t._model,i=t._scheduler,r=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<r.length;l++)r[l].__alive=!1;function u(t){var l=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,c=!l&&o[u];if(!c){var h=ga(t.type),d=e?ay.getClass(h.main,h.sub):vy.getClass(h.sub);0,c=new d,c.init(n,s),o[u]=c,r.push(c),a.add(c.group)}t.__viewId=c.__id=u,c.__alive=!0,c.__model=t,c.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&i.prepareView(c,t,n,s)}e?n.eachComponent((function(t,e){"series"!==t&&u(e)})):n.eachSeries(u);for(l=0;l<r.length;){var c=r[l];c.__alive?l++:(!e&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),r.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},Gw=function(t,e,n,i,r){var o=t._model;if(o.setUpdatePayload(n),i){var a={};a[i+"Id"]=n[i+"Id"],a[i+"Index"]=n[i+"Index"],a[i+"Name"]=n[i+"Name"];var s={mainType:i,query:a};r&&(s.subType=r);var l,u=n.excludeSeriesId;null!=u&&(l=At(),sw(Po(u),(function(t){var e=Yo(t,null);null!=e&&l.set(e,!0)}))),Cc(n)&&ac(t._api),o&&o.eachComponent(s,(function(e){if(!l||null==l.get(e.id)){if(Cc(n))if(e instanceof ry)n.type!==Tu||n.notBlur||uc(e,n,t._api);else{var r=cc(e.mainType,e.componentIndex,n.name,t._api),o=r.focusSelf,a=r.dispatchers;n.type===Tu&&o&&!n.notBlur&&lc(e.mainType,e.componentIndex,t._api),a&&sw(a,(function(t){n.type===Tu?Qu(t):tc(t)}))}else Ic(n)&&e instanceof ry&&(pc(e,n,t._api),fc(e),sS(t));c(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])}}),t)}else sw([].concat(t._componentsViews).concat(t._chartsViews),c);function c(i){i&&i.__alive&&i[e]&&i[e](i.__model,o,t._api,n)}},jw={prepareAndUpdate:function(t){$w(this),jw.update.call(this,t)},update:function(t){var e=this._model,n=this._api,i=this._zr,r=this._coordSysMgr,o=this._scheduler;if(e){e.setUpdatePayload(t),o.restoreData(e,t),o.performSeriesTasks(e),r.create(e,n),o.performDataProcessorTasks(e,t),Xw(this,e),r.update(e,n),Qw(e),o.performVisualTasks(e,t),tS(this,e,n,t);var a=e.get("backgroundColor")||"transparent",s=e.get("darkMode");if(S.canvasSupported)i.setBackgroundColor(a),null!=s&&"auto"!==s&&i.setDarkMode(s);else{var l=On(a);a=Gn(l,"rgb"),0===l[3]&&(a="transparent")}iS(e,n)}},updateTransform:function(t){var e=this,n=this._model,i=this._api;if(n){n.setUpdatePayload(t);var r=[];n.eachComponent((function(o,a){if("series"!==o){var s=e.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,n,i,t);l&&l.update&&r.push(s)}else r.push(s)}}));var o=At();n.eachSeries((function(r){var a=e._chartsMap[r.__viewId];if(a.updateTransform){var s=a.updateTransform(r,n,i,t);s&&s.update&&o.set(r.uid,1)}else o.set(r.uid,1)})),Qw(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0,dirtyMap:o}),nS(this,n,i,t,o),iS(n,this._api)}},updateView:function(t){var e=this._model;e&&(e.setUpdatePayload(t),vy.markUpdateMethod(t,"updateView"),Qw(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),tS(this,this._model,this._api,t),iS(e,this._api))},updateVisual:function(t){var e=this,n=this._model;n&&(n.setUpdatePayload(t),n.eachSeries((function(t){t.getData().clearAllVisual()})),vy.markUpdateMethod(t,"updateVisual"),Qw(n),this._scheduler.performVisualTasks(n,t,{visualType:"visual",setDirty:!0}),n.eachComponent((function(i,r){if("series"!==i){var o=e.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,n,e._api,t)}})),n.eachSeries((function(i){var r=e._chartsMap[i.__viewId];r.updateVisual(i,n,e._api,t)})),iS(n,this._api))},updateLayout:function(t){jw.update.call(this,t)}},Yw=function(t,e,n,i){if(t._disposed)fS(t.id);else{for(var r,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=na(o,n),l=0;l<a.length;l++){var u=a[l];if(u[e]&&null!=(r=u[e](o,s,i)))return r}0}},Xw=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries((function(t){i.updateStreamModes(t,n[t.__viewId])}))},Uw=function(t,e){var n=this,i=this.getModel(),r=t.type,o=t.escapeConnect,a=gS[r],s=a.actionInfo,l=(s.update||"update").split(":"),u=l.pop(),c=null!=l[0]&&ga(l[0]);this[Lw]=!0;var h=[t],d=!1;t.batch&&(d=!0,h=q(t.batch,(function(e){return e=W($({},e),t),e.batch=null,e})));var p,f=[],g=Ic(t),v=Cc(t);if(sw(h,(function(e){if(p=a.action(e,n._model,n._api),p=p||$({},e),p.type=s.event||p.type,f.push(p),v){var i=ia(t),r=i.queryOptionMap,o=i.mainTypeSpecified,l=o?r.keys()[0]:"series";Gw(n,u,e,l),sS(n)}else g?(Gw(n,u,e,"series"),sS(n)):c&&Gw(n,u,e,c.main,c.sub)})),"none"===u||v||g||c||(this[Pw]?($w(this),jw.update.call(this,t),this[Pw]=!1):jw[u].call(this,t)),p=d?{type:s.event||r,escapeConnect:o,batch:f}:f[0],this[Lw]=!1,!e){var m=this._messageCenter;if(m.trigger(p.type,p),g){var y={type:"selectchanged",escapeConnect:o,selected:gc(i),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};m.trigger(y.type,y)}}},Zw=function(t){var e=this._pendingActions;while(e.length){var n=e.shift();Uw.call(this,n,t)}},qw=function(t){!t&&this.trigger("updated")},Kw=function(t,e){t.on("rendered",(function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[Pw]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))},Jw=function(t,e){t.on("mouseover",(function(t){var n=t.target,i=Qx(n,wc);i&&(hc(i,t,e._api),sS(e))})).on("mouseout",(function(t){var n=t.target,i=Qx(n,wc);i&&(dc(i,t,e._api),sS(e))})).on("click",(function(t){var n=t.target,i=Qx(n,(function(t){return null!=vu(t).dataIndex}),!0);if(i){var r=i.selected?"unselect":"select",o=vu(i);e._api.dispatchAction({type:r,dataType:o.dataType,dataIndexInside:o.dataIndex,seriesIndex:o.seriesIndex,isFromClick:!0})}}))},Qw=function(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))},tS=function(t,e,n,i){eS(t,e,n,i),sw(t._chartsViews,(function(t){t.__alive=!1})),nS(t,e,n,i),sw(t._chartsViews,(function(t){t.__alive||t.remove(e,n)}))},eS=function(t,e,n,r,s){sw(s||t._componentsViews,(function(t){var s=t.__model;o(s,t),t.render(s,e,n,r),i(s,t),a(s,t)}))},nS=function(t,r,s,l,u){var c=t._scheduler,h=t._labelManager;h.clearLabels();var d=!1;r.eachSeries((function(e){var i=t._chartsMap[e.__viewId];i.__alive=!0;var r=i.renderTask;c.updatePayload(r,l),o(e,i),u&&u.get(e.uid)&&r.dirty(),r.perform(c.getPerformArgs(r))&&(d=!0),e.__transientTransitionOpt=null,i.group.silent=!!e.get("silent"),n(e,i),fc(e),h.addLabelsOfSeries(i)})),c.unfinished=d||c.unfinished,h.updateLayoutConfig(s),h.layout(s),h.processLabelsOverall(),r.eachSeries((function(e){var n=t._chartsMap[e.__viewId];i(e,n),a(e,n)})),e(t,r)},iS=function(t,e){sw(bS,(function(n){n(t,e)}))},sS=function(t){t[Ow]=!0,t.getZr().wakeUp()},lS=function(e){e[Ow]&&(e.getZr().storage.traverse((function(e){Dd(e)||t(e)})),e[Ow]=!1)},rS=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return v(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){while(e){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){Qu(e,n),sS(t)},n.prototype.leaveEmphasis=function(e,n){tc(e,n),sS(t)},n.prototype.enterBlur=function(e){ec(e),sS(t)},n.prototype.leaveBlur=function(e){nc(e),sS(t)},n.prototype.enterSelect=function(e){ic(e),sS(t)},n.prototype.leaveSelect=function(e){rc(e),sS(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n}(Hg))(t)},oS=function(t){function e(t,e){for(var n=0;n<t.length;n++){var i=t[n];i[Rw]=e}}sw(vS,(function(n,i){t._messageCenter.on(i,(function(n){if(IS[t.group]&&t[Rw]!==Nw){if(n&&n.escapeConnect)return;var i=t.makeActionFromEvent(n),r=[];sw(MS,(function(e){e!==t&&e.group===t.group&&r.push(e)})),e(r,Nw),sw(r,(function(t){t[Rw]!==zw&&t.dispatchAction(i)})),e(r,Bw)}}))}))},aS=function(t,e){var n=t._model;Z(Po(e),(function(t){var e,i=t.from,r=t.to;null==r&&Dg(e);var o={includeMainTypes:["series"],enableAll:!1,enableNone:!1},a=i?na(n,i,o):null,s=na(n,r,o),l=s.seriesModel;null==l&&(e=""),a&&a.seriesModel!==l&&(e=""),null!=e&&Dg(e),l.__transientTransitionOpt={from:i?i.dimension:null,to:r.dimension,dividingMethod:t.dividingMethod}}))}}(),e}(le),dS=hS.prototype;dS.on=Vw("on"),dS.off=Vw("off"),dS.one=function(t,e,n){var i=this;function r(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];e&&e.apply&&e.apply(this,n),i.off(t,r)}Ag("ECharts#one is deprecated."),this.on.call(this,t,r,n)};var pS=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function fS(t){0}var gS={},vS={},mS=[],yS=[],xS=[],bS=[],_S=[],wS={},SS={},MS={},IS={},CS=+new Date-0,TS=+new Date-0,AS="_echarts_instance_";function DS(t,e,n){var i=ES(t);if(i)return i;var r=new hS(t,e,n);return r.id="ec_"+CS++,MS[r.id]=r,sa(t,AS,r.id),oS(r),sw(xS,(function(t){t(r)})),r}function kS(t){if(rt(t)){var e=t;t=null,sw(e,(function(e){null!=e.group&&(t=e.group)})),t=t||"g_"+TS++,sw(e,(function(e){e.group=t}))}return IS[t]=!0,t}function LS(t){IS[t]=!1}var PS=LS;function OS(t){"string"===typeof t?t=MS[t]:t instanceof hS||(t=ES(t)),t instanceof hS&&!t.isDisposed()&&t.dispose()}function ES(t){return MS[la(t,AS)]}function RS(t){return MS[t]}function NS(t,e){wS[t]=e}function zS(t){cw(yS,t)<0&&yS.push(t)}function BS(t,e){XS(mS,t,e,yw)}function VS(t){cw(xS,t)<0&&t&&xS.push(t)}function FS(t){cw(bS,t)<0&&t&&bS.push(t)}function HS(t,e,n){"function"===typeof e&&(n=e,e="");var i=uw(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,vS[e]||(aw(Ew.test(i)&&Ew.test(e)),gS[i]||(gS[i]={action:n,actionInfo:t}),vS[e]=i)}function $S(t,e){Gg.register(t,e)}function WS(t){var e=Gg.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function GS(t,e){XS(_S,t,e,bw,"layout")}function jS(t,e){XS(_S,t,e,Sw,"visual")}var YS=[];function XS(t,e,n,i,r){if((lw(e)||uw(e))&&(n=e,e=i),!(cw(YS,n)>=0)){YS.push(n);var o=Zy.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function US(t,e){SS[t]=e}function ZS(t){R("createCanvas",t)}function qS(t,e,n){ow.registerMap(t,e,n)}function KS(t){return ow.getMapForUser(t)}var JS=xm;jS(ww,Ay),jS(Iw,ky),jS(Iw,Ly),jS(ww,ox),jS(Iw,ax),jS(Dw,e_),zS(_v),BS(vw,wv),US("default",Oy),HS({type:Tu,event:Tu,update:Tu},Pt),HS({type:Au,event:Au,update:Au},Pt),HS({type:Du,event:Du,update:Du},Pt),HS({type:ku,event:ku,update:ku},Pt),HS({type:Lu,event:Lu,update:Lu},Pt),NS("light",Ky),NS("dark",ix);var QS={},tM=[],eM={registerPreprocessor:zS,registerProcessor:BS,registerPostInit:VS,registerPostUpdate:FS,registerAction:HS,registerCoordinateSystem:$S,registerLayout:GS,registerVisual:jS,registerTransform:JS,registerLoading:US,registerMap:qS,PRIORITY:kw,ComponentModel:Xf,ComponentView:ay,SeriesModel:ry,ChartView:vy,registerComponentModel:function(t){Xf.registerClass(t)},registerComponentView:function(t){ay.registerClass(t)},registerSeriesModel:function(t){ry.registerClass(t)},registerChartView:function(t){vy.registerClass(t)},registerSubTypeDefaulter:function(t,e){Xf.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){to(t,e)}};function nM(t){rt(t)?Z(t,(function(t){nM(t)})):j(tM,t)>=0||(tM.push(t),ot(t)&&(t={install:t}),t.install(eM))}function iM(t){return null==t?0:t.length||1}function rM(t){return t}var oM=function(){function t(t,e,n,i,r,o){this._old=t,this._new=e,this._oldKeyGetter=n||rM,this._newKeyGetter=i||rM,this.context=r,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),r=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=i[o],s=n[a],l=iM(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],o=[];this._initIndexMap(t,n,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[a],l=n[s],u=i[s],c=iM(l),h=iM(u);if(c>1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),i[s]=null;else if(c>1)for(var d=0;d<c;d++)this._remove&&this._remove(l[d]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=e[i],o=iM(r);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[i]=null}},t.prototype._initIndexMap=function(t,e,n,i){for(var r=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[i](t[o],o);if(r||(n[o]=a),e){var s=e[a],l=iM(s);0===l?(e[a]=o,r&&n.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}(),aM=oM;function sM(t){var e={},n=e.encode={},i=At(),r=[],o=[],a=e.userOutput={dimensionNames:t.dimensions.slice(),encode:{}};Z(t.dimensions,(function(e){var s=t.getDimensionInfo(e),l=s.coordDim;if(l){0;var u=s.coordDimIndex;lM(n,l)[u]=e,s.isExtraCoord||(i.set(l,1),cM(s.type)&&(r[0]=e),lM(a.encode,l)[u]=s.index),s.defaultTooltip&&o.push(e)}Kf.each((function(t,e){var i=lM(n,e),r=s.otherDims[e];null!=r&&!1!==r&&(i[r]=s.name)}))}));var s=[],l={};i.each((function(t,e){var i=n[e];l[e]=i[0],s=s.concat(i)})),e.dataDimsOnCoord=s,e.encodeFirstDimNotExtra=l;var u=n.label;u&&u.length&&(r=u.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=r.slice()),n.defaultedLabel=r,n.defaultedTooltip=o,e}function lM(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function uM(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function cM(t){return!("ordinal"===t||"time"===t)}var hM,dM,pM,fM,gM,vM,mM,yM,xM,bM,_M,wM,SM,MM,IM=function(){function t(t){this.otherDims={},null!=t&&$(this,t)}return t}(),CM=IM,TM=Math.floor,AM=ut,DM=q,kM="undefined",LM=-1,PM="e\0\0",OM={float:typeof Float64Array===kM?Array:Float64Array,int:typeof Int32Array===kM?Array:Int32Array,ordinal:Array,number:Array,time:Array},EM=typeof Uint32Array===kM?Array:Uint32Array,RM=typeof Int32Array===kM?Array:Int32Array,NM=typeof Uint16Array===kM?Array:Uint16Array,zM=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx","_nameRepeatCount"],BM=["_extent","_approximateExtent","_rawExtent"],VM=function(){function t(t,e){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=gM,t=t||["x","y"];for(var n={},i=[],r={},o=0;o<t.length;o++){var a=t[o],s=at(a)?new CM({name:a}):a instanceof CM?a:new CM(a),l=s.name;s.type=s.type||"float",s.coordDim||(s.coordDim=l,s.coordDimIndex=0);var u=s.otherDims=s.otherDims||{};i.push(l),n[l]=s,s.index=o,s.createInvertedIndices&&(r[l]=[]),0===u.itemName&&(this._nameDimIdx=o,this._nameOrdinalMeta=s.ordinalMeta),0===u.itemId&&(this._idDimIdx=o,this._idOrdinalMeta=s.ordinalMeta)}this.dimensions=i,this._dimensionInfos=n,this.hostModel=e,this._dimensionsSummary=sM(this),this._invertedIndicesMap=r,this.userOutput=this._dimensionsSummary.userOutput}return t.prototype.getDimension=function(t){return"number"!==typeof t&&(isNaN(t)||this._dimensionInfos.hasOwnProperty(t))||(t=this.dimensions[t]),t},t.prototype.getDimensionInfo=function(t){return this._dimensionInfos[this.getDimension(t)]},t.prototype.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimensionsSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[e]:null},t.prototype.mapDimensionsAll=function(t){var e=this._dimensionsSummary,n=e.encode[t];return(n||[]).slice()},t.prototype.initData=function(t,e,n){var i=kv(t)||U(t),r=i?new Fv(t,this.dimensions.length):t;this._rawData=r;var o=r.getSource().sourceFormat;this._storage={},this._indices=null,this._dontMakeIdFromName=null!=this._idDimIdx||o===ng||!!r.fillStorage,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},n||(this.hasItemOption=!1),this.defaultDimValueGetter=hM[o],this._dimValueGetter=n=n||this.defaultDimValueGetter,this._dimValueGetterArrayRows=hM.arrayRows,this._rawExtent={},this._initDataFromProvider(0,r.count()),r.pure&&(this.hasItemOption=!1)},t.prototype.getProvider=function(){return this._rawData},t.prototype.appendData=function(t){var e=this._rawData,n=this.count();e.appendData(t);var i=e.count();e.persistent||(i+=n),this._initDataFromProvider(n,i,!0)},t.prototype.appendValues=function(t,e){for(var n=this._storage,i=this.dimensions,r=i.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e?e.length:0),l=0;l<r;l++){var u=i[l];o[u]||(o[u]=wM()),fM(n,this._dimensionInfos[u],s,!0)}for(var c=DM(i,(function(t){return o[t]})),h=this._storageArr=DM(i,(function(t){return n[t]})),d=[],p=a;p<s;p++){for(var f=p-a,g=0;g<r;g++){u=i[g];var v=this._dimValueGetterArrayRows(t[f]||d,u,f,g);h[g][p]=v;var m=c[g];v<m[0]&&(m[0]=v),v>m[1]&&(m[1]=v)}e&&(this._nameList[p]=e[f],this._dontMakeIdFromName||xM(this,p))}this._rawCount=this._count=s,this._extent={},dM(this)},t.prototype._initDataFromProvider=function(t,e,n){if(!(t>=e)){for(var i=this._rawData,r=this._storage,o=this.dimensions,a=o.length,s=this._dimensionInfos,l=this._nameList,u=this._idList,c=this._rawExtent,h=i.getSource().sourceFormat,d=h===Jf,p=0;p<a;p++){var f=o[p];c[f]||(c[f]=wM()),fM(r,s[f],e,n)}var g=this._storageArr=DM(o,(function(t){return r[t]})),v=DM(o,(function(t){return c[t]}));if(i.fillStorage)i.fillStorage(t,e,g,v);else for(var m=[],y=t;y<e;y++){m=i.getItem(y,m);for(var x=0;x<a;x++){f=o[x];var b=g[x],_=this._dimValueGetter(m,f,y,x);b[y]=_;var w=v[x];_<w[0]&&(w[0]=_),_>w[1]&&(w[1]=_)}if(d&&!i.pure&&m){var S=m.name;null==l[y]&&null!=S&&(l[y]=Yo(S,null));var M=m.id;null==u[y]&&null!=M&&(u[y]=Yo(M,null))}this._dontMakeIdFromName||xM(this,y)}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent={},dM(this)}},t.prototype.count=function(){return this._count},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;r<i;r++)t[r]=e[r]}else t=new n(e.buffer,0,i)}else{n=pM(this);t=new n(this.count());for(r=0;r<t.length;r++)t[r]=r}return t},t.prototype.getByDimIdx=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._storageArr[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._storage[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._storage[t];return n?n[e]:NaN},t.prototype.getValues=function(t,e){var n=[];rt(t)||(e=t,t=this.dimensions);for(var i=0,r=t.length;i<r;i++)n.push(this.get(t[i],e));return n},t.prototype.hasValue=function(t){for(var e=this._dimensionsSummary.dataDimsOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this.get(e[n],t)))return!1;return!0},t.prototype.getDataExtent=function(t){t=this.getDimension(t);var e=this._storage[t],n=wM();if(!e)return n;var i,r=this.count(),o=!this._indices;if(o)return this._rawExtent[t].slice();if(i=this._extent[t],i)return i.slice();i=n;for(var a=i[0],s=i[1],l=0;l<r;l++){var u=this.getRawIndex(l),c=e[u];c<a&&(a=c),c>s&&(s=c)}return i=[a,s],this._extent[t]=i,i},t.prototype.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){AM(t)?$(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getSum=function(t){var e=this._storage[t],n=0;if(e)for(var i=0,r=this.count();i<r;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(t){var e=[];this.each(t,(function(t){isNaN(t)||e.push(t)}));var n=e.sort((function(t,e){return t-e})),i=this.count();return 0===i?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t];var i=n[e];return null==i||isNaN(i)?LM:i},t.prototype.indexOfName=function(t){for(var e=0,n=this.count();e<n;e++)if(this.getName(e)===t)return e;return-1},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;var i=0,r=this._count-1;while(i<=r){var o=(i+r)/2|0;if(e[o]<t)i=o+1;else{if(!(e[o]>t))return o;r=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var i=this._storage,r=i[t],o=[];if(!r)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,u=0,c=this.count();u<c;u++){var h=this.getRawIndex(u),d=e-r[h],p=Math.abs(d);p<=n&&((p<a||p===a&&d>=0&&s<0)&&(a=p,s=d,l=0),d===s&&(o[l++]=u))}return o.length=l,o},t.prototype.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],n=0;n<this.dimensions.length;n++){var i=this.dimensions[n];e.push(this.get(i,t))}return e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=yM(this,this._nameDimIdx,this._nameOrdinalMeta,e)),null==n&&(n=""),n},t.prototype.getId=function(t){return mM(this,this.getRawIndex(t))},t.prototype.each=function(t,e,n,i){var r=this;if(this._count){"function"===typeof t&&(i=n,n=e,e=t,t=[]);var o=n||i||this,a=DM(bM(t),this.getDimension,this);0;for(var s=a.length,l=DM(a,(function(t){return r._dimensionInfos[t].index})),u=this._storageArr,c=0,h=this.count();c<h;c++){var d=this.getRawIndex(c);switch(s){case 0:e.call(o,c);break;case 1:e.call(o,u[l[0]][d],c);break;case 2:e.call(o,u[l[0]][d],u[l[1]][d],c);break;default:for(var p=0,f=[];p<s;p++)f[p]=u[l[p]][d];f[p]=c,e.apply(o,f)}}}},t.prototype.filterSelf=function(t,e,n,i){var r=this;if(this._count){"function"===typeof t&&(i=n,n=e,e=t,t=[]);var o=n||i||this,a=DM(bM(t),this.getDimension,this);0;for(var s=this.count(),l=pM(this),u=new l(s),c=[],h=a.length,d=0,p=DM(a,(function(t){return r._dimensionInfos[t].index})),f=p[0],g=this._storageArr,v=0;v<s;v++){var m=void 0,y=this.getRawIndex(v);if(0===h)m=e.call(o,v);else if(1===h){var x=g[f][y];m=e.call(o,x,v)}else{for(var b=0;b<h;b++)c[b]=g[p[b]][y];c[b]=v,m=e.apply(o,c)}m&&(u[d++]=y)}return d<s&&(this._indices=u),this._count=d,this._extent={},this.getRawIndex=this._indices?vM:gM,this}},t.prototype.selectRange=function(t){var e=this,n=this._count;if(n){var i=[];for(var r in t)t.hasOwnProperty(r)&&i.push(r);0;var o=i.length;if(o){var a=this.count(),s=pM(this),l=new s(a),u=0,c=i[0],h=DM(i,(function(t){return e._dimensionInfos[t].index})),d=t[c][0],p=t[c][1],f=this._storageArr,g=!1;if(!this._indices){var v=0;if(1===o){for(var m=f[h[0]],y=0;y<n;y++){var x=m[y];(x>=d&&x<=p||isNaN(x))&&(l[u++]=v),v++}g=!0}else if(2===o){m=f[h[0]];var b=f[h[1]],_=t[i[1]][0],w=t[i[1]][1];for(y=0;y<n;y++){x=m[y];var S=b[y];(x>=d&&x<=p||isNaN(x))&&(S>=_&&S<=w||isNaN(S))&&(l[u++]=v),v++}g=!0}}if(!g)if(1===o)for(y=0;y<a;y++){var M=this.getRawIndex(y);x=f[h[0]][M];(x>=d&&x<=p||isNaN(x))&&(l[u++]=M)}else for(y=0;y<a;y++){for(var I=!0,C=(M=this.getRawIndex(y),0);C<o;C++){var T=i[C];x=f[h[C]][M];(x<t[T][0]||x>t[T][1])&&(I=!1)}I&&(l[u++]=this.getRawIndex(y))}return u<a&&(this._indices=l),this._count=u,this._extent={},this.getRawIndex=this._indices?vM:gM,this}}},t.prototype.mapArray=function(t,e,n,i){"function"===typeof t&&(i=n,n=e,e=t,t=[]),n=n||i||this;var r=[];return this.each(t,(function(){r.push(e&&e.apply(this,arguments))}),n),r},t.prototype.map=function(t,e,n,i){var r=n||i||this,o=DM(bM(t),this.getDimension,this);var a=_M(this,o),s=a._storage;a._indices=this._indices,a.getRawIndex=a._indices?vM:gM;for(var l=[],u=o.length,c=this.count(),h=[],d=a._rawExtent,p=0;p<c;p++){for(var f=0;f<u;f++)h[f]=this.get(o[f],p);h[u]=p;var g=e&&e.apply(r,h);if(null!=g){"object"!==typeof g&&(l[0]=g,g=l);for(var v=this.getRawIndex(p),m=0;m<g.length;m++){var y=o[m],x=g[m],b=d[y],_=s[y];_&&(_[v]=x),x<b[0]&&(b[0]=x),x>b[1]&&(b[1]=x)}}}return a},t.prototype.downSample=function(t,e,n,i){for(var r=_M(this,[t]),o=r._storage,a=[],s=TM(1/e),l=o[t],u=this.count(),c=r._rawExtent[t],h=new(pM(this))(u),d=0,p=0;p<u;p+=s){s>u-p&&(s=u-p,a.length=s);for(var f=0;f<s;f++){var g=this.getRawIndex(p+f);a[f]=l[g]}var v=n(a),m=this.getRawIndex(Math.min(p+i(a,v)||0,u-1));l[m]=v,v<c[0]&&(c[0]=v),v>c[1]&&(c[1]=v),h[d++]=m}return r._count=d,r._indices=h,r.getRawIndex=vM,r},t.prototype.lttbDownSample=function(t,e){var n,i,r,o=_M(this,[]),a=o._storage,s=a[t],l=this.count(),u=new(pM(this))(l),c=0,h=TM(1/e),d=this.getRawIndex(0);u[c++]=d;for(var p=1;p<l-1;p+=h){for(var f=Math.min(p+h,l-1),g=Math.min(p+2*h,l),v=(g+f)/2,m=0,y=f;y<g;y++){var x=this.getRawIndex(y),b=s[x];isNaN(b)||(m+=b)}m/=g-f;var _=p,w=Math.min(p+h,l),S=p-1,M=s[d];n=-1,r=_;for(y=_;y<w;y++){x=this.getRawIndex(y),b=s[x];isNaN(b)||(i=Math.abs((S-v)*(b-M)-(S-y)*(m-M)),i>n&&(n=i,r=x))}u[c++]=r,d=r}return u[c++]=this.getRawIndex(l-1),o._count=c,o._indices=u,o.getRawIndex=vM,o},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new yp(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new aM(t?t.getIndices():[],this.getIndices(),(function(e){return mM(t,e)}),(function(t){return mM(e,t)}))},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},AM(t)?$(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return null==i?this.getVisual(e):i},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(r=this.getVisual(e),rt(r)?r=r.slice():AM(r)&&(r=$({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,AM(e)?$(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){if(AM(t))for(var n in t)t.hasOwnProperty(n)&&this.setLayout(n,t[n]);else this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?$(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel;if(e){var i=vu(e);i.dataIndex=t,i.dataType=this.dataType,i.seriesIndex=n&&n.seriesIndex,"group"===e.type&&e.traverse(SM,e)}this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){Z(this._graphicEls,(function(n,i){n&&t&&t.call(e,n,i)}))},t.prototype.cloneShallow=function(e){if(!e){var n=DM(this.dimensions,this.getDimensionInfo,this);e=new t(n,this.hostModel)}if(e._storage=this._storage,e._storageArr=this._storageArr,MM(e,this),this._indices){var i=this._indices.constructor;if(i===Array){var r=this._indices.length;e._indices=new i(r);for(var o=0;o<r;o++)e._indices[o]=this._indices[o]}else e._indices=new i(this._indices)}else e._indices=null;return e.getRawIndex=e._indices?vM:gM,e},t.prototype.wrapMethod=function(t,e){var n=this[t];"function"===typeof n&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(bt(arguments)))})},t.internalField=function(){function e(t,e,n,i){return rm(t[i],this._dimensionInfos[e])}function n(t){var e=t.constructor;return e===Array?t.slice():new e(t)}hM={arrayRows:e,objectRows:function(t,e,n,i){return rm(t[e],this._dimensionInfos[e])},keyedColumns:e,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return!this._rawData.pure&&No(t)&&(this.hasItemOption=!0),rm(r instanceof Array?r[i]:r,this._dimensionInfos[e])},typedArray:function(t,e,n,i){return t[i]}},dM=function(t){var e=t._invertedIndicesMap;Z(e,(function(n,i){var r=t._dimensionInfos[i],o=r.ordinalMeta;if(o){n=e[i]=new RM(o.categories.length);for(var a=0;a<n.length;a++)n[a]=LM;for(a=0;a<t._count;a++)n[t.get(i,a)]=a}}))},yM=function(t,e,n,i){var r,o=t._storageArr[e];return o&&(r=o[i],n&&n.categories.length&&(r=n.categories[r])),Yo(r,null)},pM=function(t){return t._rawCount>65535?EM:NM},fM=function(t,e,n,i){var r=OM[e.type],o=e.name;if(i){var a=t[o],s=a&&a.length;if(s!==n){for(var l=new r(n),u=0;u<s;u++)l[u]=a[u];t[o]=l}}else t[o]=new r(n)},gM=function(t){return t},vM=function(t){return t<this._count&&t>=0?this._indices[t]:-1},mM=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=yM(t,t._idDimIdx,t._idOrdinalMeta,e)),null==n&&(n=PM+e),n},bM=function(t){return rt(t)||(t=null!=t?[t]:[]),t},function(t,e){for(var n=0;n<e.length;n++)t._dimensionInfos[e[n]]||console.error("Unkown dimension "+e[n])},_M=function(e,i){var r=e.dimensions,o=new t(DM(r,e.getDimensionInfo,e),e.hostModel);MM(o,e);for(var a=o._storage={},s=e._storage,l=o._storageArr=[],u=0;u<r.length;u++){var c=r[u];s[c]&&(j(i,c)>=0?(a[c]=n(s[c]),o._rawExtent[c]=wM(),o._extent[c]=null):a[c]=s[c],l.push(a[c]))}return o},wM=function(){return[1/0,-1/0]},SM=function(t){var e=vu(t),n=vu(this);e.seriesIndex=n.seriesIndex,e.dataIndex=n.dataIndex,e.dataType=n.dataType},MM=function(t,e){Z(zM.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,Z(BM,(function(n){t[n]=V(e[n])})),t._calculationInfo=$({},e._calculationInfo)},xM=function(t,e){var n=t._nameList,i=t._idList,r=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=i[e];if(null==a&&null!=r&&(n[e]=a=yM(t,r,t._nameOrdinalMeta,e)),null==s&&null!=o&&(i[e]=s=yM(t,o,t._idOrdinalMeta,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),i[e]=s}}}(),t}(),FM=VM;function HM(t,e,n){kv(e)||(e=Pv(e)),n=n||{},t=(t||[]).slice();for(var i=(n.dimsDef||[]).slice(),r=At(),o=At(),a=[],s=$M(e,t,i,n.dimCount),l=0;l<s;l++){var u=i[l],c=i[l]=$({},ut(u)?u:{name:u}),h=c.name,d=a[l]=new CM;null!=h&&null==r.get(h)&&(d.name=d.displayName=h,r.set(h,l)),null!=c.type&&(d.type=c.type),null!=c.displayName&&(d.displayName=c.displayName)}var p=n.encodeDef;!p&&n.encodeDefaulter&&(p=n.encodeDefaulter(e,s));var f=At(p);f.each((function(t,e){var n=Po(t).slice();if(1===n.length&&!at(n[0])&&n[0]<0)f.set(e,!1);else{var i=f.set(e,[]);Z(n,(function(t,n){var o=at(t)?r.get(t):t;null!=o&&o<s&&(i[n]=o,v(a[o],e,n))}))}}));var g=0;function v(t,e,n){null!=Kf.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,o.set(e,!0))}Z(t,(function(t){var e,n,i,r;if(at(t))e=t,r={};else{r=t,e=r.name;var o=r.ordinalMeta;r.ordinalMeta=null,r=V(r),r.ordinalMeta=o,n=r.dimsDef,i=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null}var s=f.get(e);if(!1!==s){if(s=Po(s),!s.length)for(var l=0;l<(n&&n.length||1);l++){while(g<a.length&&null!=a[g].coordDim)g++;g<a.length&&s.push(g++)}Z(s,(function(t,o){var s=a[t];if(v(W(s,r),e,o),null==s.name&&n){var l=n[o];!ut(l)&&(l={name:l}),s.name=s.displayName=l.name,s.defaultTooltip=l.defaultTooltip}i&&W(s.otherDims,i)}))}}));var m=n.generateCoord,y=n.generateCoordCount,x=null!=y;y=m?y||1:0;for(var b=m||"value",_=0;_<s;_++){d=a[_]=a[_]||new CM;var w=d.coordDim;null==w&&(d.coordDim=WM(b,o,x),d.coordDimIndex=0,(!m||y<=0)&&(d.isExtraCoord=!0),y--),null==d.name&&(d.name=WM(d.coordDim,r,!1)),null!=d.type||pg(e,_)!==ag.Must&&(!d.isExtraCoord||null==d.otherDims.itemName&&null==d.otherDims.seriesName)||(d.type="ordinal")}return a}function $M(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return Z(e,(function(t){var e;ut(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))})),r}function WM(t,e,n){if(n||null!=e.get(t)){var i=0;while(null!=e.get(t+i))i++;t+=i}return e.set(t,!0),t}var GM=HM;function jM(t,e){return e=e||{},GM(e.coordDimensions||[],t,{dimsDef:e.dimensionsDefine||t.dimensionsDefine,encodeDef:e.encodeDefine||t.encodeDefine,dimCount:e.dimensionsCount,encodeDefaulter:e.encodeDefaulter,generateCoord:e.generateCoord,generateCoordCount:e.generateCoordCount})}var YM=function(){function t(t){this.coordSysDims=[],this.axisMap=At(),this.categoryAxisMap=At(),this.coordSysName=t}return t}();function XM(t){var e=t.get("coordinateSystem"),n=new YM(e),i=UM[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}var UM={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",ra).models[0],o=t.getReferringComponents("yAxis",ra).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),ZM(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),ZM(o)&&(i.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis",ra).models[0];e.coordSysDims=["single"],n.set("single",r),ZM(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar",ra).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),ZM(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),ZM(a)&&(i.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();Z(o.parallelAxisIndex,(function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];n.set(l,s),ZM(s)&&(i.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))}))}};function ZM(t){return"category"===t.get("type")}function qM(t,e,n){n=n||{};var i,r,o,a,s=n.byIndex,l=n.stackedCoordDimension,u=!(!t||!t.get("stack"));if(Z(e,(function(t,n){at(t)&&(e[n]=t={name:t}),u&&!t.isExtraCoord&&(s||i||!t.ordinalMeta||(i=t),r||"ordinal"===t.type||"time"===t.type||l&&l!==t.coordDim||(r=t))})),!r||s||i||(s=!0),r){o="__\0ecstackresult",a="__\0ecstackedover",i&&(i.createInvertedIndices=!0);var c=r.coordDim,h=r.type,d=0;Z(e,(function(t){t.coordDim===c&&d++})),e.push({name:o,coordDim:c,coordDimIndex:d,type:h,isExtraCoord:!0,isCalculationCoord:!0}),d++,e.push({name:a,coordDim:a,coordDimIndex:d,type:h,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:r&&r.name,stackedByDimension:i&&i.name,isStackedByIndex:s,stackedOverDimension:a,stackResultDimension:o}}function KM(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function JM(t,e){return KM(t,e)?t.getCalculationInfo("stackResultDimension"):e}function QM(t,e,n){n=n||{},kv(t)||(t=Pv(t));var i,r=e.get("coordinateSystem"),o=Gg.get(r),a=XM(e);a&&a.coordSysDims&&(i=q(a.coordSysDims,(function(t){var e={name:t},n=a.axisMap.get(t);if(n){var i=n.get("type");e.type=uM(i)}return e}))),i||(i=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]);var s,l,u=n.useEncodeDefaulter,c=jM(t,{coordDimensions:i,generateCoord:n.generateCoord,encodeDefaulter:ot(u)?u:u?it(ug,i,e):null});a&&Z(c,(function(t,e){var i=t.coordDim,r=a.categoryAxisMap.get(i);r&&(null==s&&(s=e),t.ordinalMeta=r.getOrdinalMeta(),n.createInvertedIndices&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(l=!0)})),l||null==s||(c[s].otherDims.itemName=0);var h=qM(e,c),d=new FM(c,e);d.setCalculationInfo(h);var p=null!=s&&tI(t)?function(t,e,n,i){return i===s?n:this.defaultDimValueGetter(t,e,n,i)}:null;return d.hasItemOption=!1,d.initData(t,null,p),d}function tI(t){if(t.sourceFormat===Jf){var e=eI(t.data||[]);return null!=e&&!rt(Ro(e))}}function eI(t){var e=0;while(e<t.length&&null==t[e])e++;return t[e]}var nI=QM,iI=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();Ia(iI);var rI=iI,oI=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication}return t.createByAxisModel=function(e){var n=e.option,i=n.data,r=i&&q(i,aI);return new t({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if("string"!==typeof t&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return e=i.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=At(this.categories))},t}();function aI(t){return ut(t)&&null!=t.value?t.value:t+""}var sI=oI,lI=so;function uI(t,e,n,i){var r={},o=t[1]-t[0],a=r.interval=wo(o/e,!0);null!=n&&a<n&&(a=r.interval=n),null!=i&&a>i&&(a=r.interval=i);var s=r.intervalPrecision=cI(a),l=r.niceTickExtent=[lI(Math.ceil(t[0]/a)*a,s),lI(Math.floor(t[1]/a)*a,s)];return dI(l,t),r}function cI(t){return uo(t)+2}function hI(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function dI(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),hI(t,0,e),hI(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function pI(t,e){return t>=e[0]&&t<=e[1]}function fI(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function gI(t,e){return t*(e[1]-e[0])+e[0]}var vI=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new sI({})),rt(i)&&(i=new sI({categories:q(i,(function(t){return ut(t)?t.value:t}))})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return v(e,t),e.prototype.parse=function(t){return"string"===typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),pI(t,this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),fI(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(gI(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){var t=[],e=this._extent,n=e[0];while(n<=e[1])t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r<a;++r){var s=e[r];n[r]=s,i[s]=r}for(var l=0;r<o;++r){while(null!=i[l])l++;n.push(l),i[l]=r}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.niceTicks=function(){},e.prototype.niceExtent=function(){},e.type="ordinal",e}(rI);rI.registerClass(vI);var mI=vI,yI=so,xI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return v(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return pI(t,this._extent)},e.prototype.normalize=function(t){return fI(t,this._extent)},e.prototype.scale=function(t){return gI(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=cI(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;var a=1e4;n[0]<i[0]&&(t?o.push({value:yI(i[0]-e,r)}):o.push({value:n[0]}));var s=i[0];while(s<=i[1]){if(o.push({value:s}),s=yI(s+e,r),s===o[o.length-1].value)break;if(o.length>a)return[]}var l=o.length?o[o.length-1].value:i[1];return n[1]>l&&(t?o.push({value:yI(l+e,r)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;r<e.length;r++){var o=e[r],a=e[r-1],s=0,l=[],u=o.value-a.value,c=u/t;while(s<t-1){var h=yI(a.value+(s+1)*c);h>i[0]&&h<i[1]&&l.push(h),s++}n.push(l)}return n},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;null==n?n=uo(t.value)||0:"auto"===n&&(n=this._intervalPrecision);var i=yI(t.value,n,!0);return gf(i)},e.prototype.niceTicks=function(t,e,n){t=t||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){r<0&&(r=-r,i.reverse());var o=uI(i,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},e.prototype.niceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=e[0];t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=yI(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=yI(Math.ceil(e[1]/r)*r))},e.type="interval",e}(rI);rI.registerClass(xI);var bI=xI,_I="__ec_stack_",wI=.5,SI="undefined"!==typeof Float32Array?Float32Array:Array;function MI(t){return t.get("stack")||_I+t.seriesIndex}function II(t){return t.dim+t.index}function CI(t){var e=[],n=t.axis,i="axis0";if("category"===n.type){for(var r=n.getBandWidth(),o=0;o<t.count;o++)e.push(W({bandWidth:r,axisKey:i,stackId:_I+o},t));var a=kI(e),s=[];for(o=0;o<t.count;o++){var l=a[i][_I+o];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function TI(t,e){var n=[];return e.eachSeriesByType(t,(function(t){EI(t)&&!RI(t)&&n.push(t)})),n}function AI(t){var e={};Z(t,(function(t){var n=t.coordinateSystem,i=n.getBaseAxis();if("time"===i.type||"value"===i.type)for(var r=t.getData(),o=i.dim+"_"+i.index,a=r.mapDimension(i.dim),s=0,l=r.count();s<l;++s){var u=r.get(a,s);e[o]?e[o].push(u):e[o]=[u]}}));var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];if(r){r.sort((function(t,e){return t-e}));for(var o=null,a=1;a<r.length;++a){var s=r[a]-r[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[i]=o}}return n}function DI(t){var e=AI(t),n=[];return Z(t,(function(t){var i,r=t.coordinateSystem,o=r.getBaseAxis(),a=o.getExtent();if("category"===o.type)i=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=e[s],u=Math.abs(a[1]-a[0]),c=o.scale.getExtent(),h=Math.abs(c[1]-c[0]);i=l?u/h*l:u}else{var d=t.getData();i=Math.abs(a[1]-a[0])/d.count()}var p=ao(t.get("barWidth"),i),f=ao(t.get("barMaxWidth"),i),g=ao(t.get("barMinWidth")||1,i),v=t.get("barGap"),m=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:p,barMaxWidth:f,barMinWidth:g,barGap:v,barCategoryGap:m,axisKey:II(o),stackId:MI(t)})})),kI(n)}function kI(t){var e={};Z(t,(function(t,n){var i=t.axisKey,r=t.bandWidth,o=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[i]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barMinWidth;c&&(a[s].minWidth=c);var h=t.barGap;null!=h&&(o.gap=h);var d=t.barCategoryGap;null!=d&&(o.categoryGap=d)}));var n={};return Z(e,(function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=t.categoryGap;if(null==o){var a=tt(i).length;o=Math.max(35-4*a,15)+"%"}var s=ao(o,r),l=ao(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),Z(i,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,u-=i+l*i,c--}else{var i=h;e&&e<i&&(i=Math.min(e,u)),n&&n>i&&(i=n),i!==h&&(t.width=i,u-=i+l*i,c--)}})),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var d,p=0;Z(i,(function(t,e){t.width||(t.width=h),d=t,p+=t.width*(1+l)})),d&&(p-=d.width*l);var f=-p/2;Z(i,(function(t,i){n[e][i]=n[e][i]||{bandWidth:r,offset:f,width:t.width},f+=t.width*(1+l)}))})),n}function LI(t,e,n){if(t&&e){var i=t[II(e)];return null!=i&&null!=n?i[MI(n)]:i}}function PI(t,e){var n=TI(t,e),i=DI(n),r={};Z(n,(function(t){var e=t.getData(),n=t.coordinateSystem,o=n.getBaseAxis(),a=MI(t),s=i[II(o)][a],l=s.offset,u=s.width,c=n.getOtherAxis(o),h=t.get("barMinHeight")||0;r[a]=r[a]||[],e.setLayout({bandWidth:s.bandWidth,offset:l,size:u});for(var d=e.mapDimension(c.dim),p=e.mapDimension(o.dim),f=KM(e,d),g=c.isHorizontal(),v=NI(o,c,f),m=0,y=e.count();m<y;m++){var x=e.get(d,m),b=e.get(p,m),_=x>=0?"p":"n",w=v;f&&(r[a][b]||(r[a][b]={p:v,n:v}),w=r[a][b][_]);var S=void 0,M=void 0,I=void 0,C=void 0;if(g){var T=n.dataToPoint([x,b]);S=w,M=T[1]+l,I=T[0]-v,C=u,Math.abs(I)<h&&(I=(I<0?-1:1)*h),isNaN(I)||f&&(r[a][b][_]+=I)}else{T=n.dataToPoint([b,x]);S=T[0]+l,M=w,I=u,C=T[1]-v,Math.abs(C)<h&&(C=(C<=0?-1:1)*h),isNaN(C)||f&&(r[a][b][_]+=C)}e.setItemLayout(m,{x:S,y:M,width:I,height:C})}}))}var OI={seriesType:"bar",plan:sy(),reset:function(t){if(EI(t)&&RI(t)){var e=t.getData(),n=t.coordinateSystem,i=n.master.getRect(),r=n.getBaseAxis(),o=n.getOtherAxis(r),a=e.mapDimension(o.dim),s=e.mapDimension(r.dim),l=o.isHorizontal(),u=l?0:1,c=LI(DI([t]),r,t).width;return c>wI||(c=wI),{progress:function(t,e){var h,d=t.count,p=new SI(2*d),f=new SI(2*d),g=new SI(d),v=[],m=[],y=0,x=0;while(null!=(h=t.next()))m[u]=e.get(a,h),m[1-u]=e.get(s,h),v=n.dataToPoint(m,null),f[y]=l?i.x+i.width:v[0],p[y++]=v[0],f[y]=l?v[1]:i.y+i.height,p[y++]=v[1],g[x++]=h;e.setLayout({largePoints:p,largeDataIndices:g,largeBackgroundPoints:f,barWidth:c,valueAxisStart:NI(r,o,!1),backgroundStart:l?i.x:i.y,valueAxisHorizontal:l})}}}}};function EI(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function RI(t){return t.pipelineContext&&t.pipelineContext.large}function NI(t,e,n){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}var zI=function(t,e,n,i){while(n<i){var r=n+i>>>1;t[r][1]<e?n=r+1:i=r}return n},BI=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return v(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return qp(t.value,Wp[Zp(Xp(this._minLevelUnit))]||Wp.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC"),r=this.getSetting("locale");return Kp(t,e,n,r,i)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=[];if(!e)return i;i.push({value:n[0],level:0});var r=this.getSetting("useUTC"),o=XI(this._minLevelUnit,this._approxInterval,r,n);return i=i.concat(o),i.push({value:n[1],level:0}),i},e.prototype.niceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=Vp,e[1]+=Vp),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-Vp}this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.niceTicks=function(t,e,n){t=t||10;var i=this._extent,r=i[1]-i[0];this._approxInterval=r/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=VI.length,a=Math.min(zI(VI,this._approxInterval,0,o),o-1);this._interval=VI[a][1],this._minLevelUnit=VI[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return"number"===typeof t?t:+xo(t)},e.prototype.contain=function(t){return pI(this.parse(t),this._extent)},e.prototype.normalize=function(t){return fI(this.parse(t),this._extent)},e.prototype.scale=function(t){return gI(t,this._extent)},e.type="time",e}(bI),VI=[["second",Np],["minute",zp],["hour",Bp],["quarter-day",6*Bp],["half-day",12*Bp],["day",1.2*Vp],["half-week",3.5*Vp],["week",7*Vp],["month",31*Vp],["quarter",95*Vp],["half-year",Fp/2],["year",Fp]];function FI(t,e,n,i){var r=xo(e),o=xo(n),a=function(t){return Qp(r,t,i)===Qp(o,t,i)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},h=function(){return c()&&a("minute")},d=function(){return h()&&a("second")},p=function(){return d()&&a("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return d();case"millisecond":return p()}}function HI(t,e){return t/=Vp,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function $I(t){var e=30*Vp;return t/=e,t>6?6:t>3?3:t>2?2:1}function WI(t){return t/=Bp,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function GI(t,e){return t/=e?zp:Np,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function jI(t){return wo(t,!0)}function YI(t,e,n){var i=new Date(t);switch(Xp(e)){case"year":case"month":i[uf(n)](0);case"day":i[cf(n)](1);case"hour":i[hf(n)](0);case"minute":i[df(n)](0);case"second":i[pf(n)](0),i[ff(n)](0)}return i.getTime()}function XI(t,e,n,i){var r=1e4,o=jp,a=0;function s(t,e,n,r,o,a,s){var l=new Date(e),u=e,c=l[r]();while(u<n&&u<=i[1])s.push({value:u}),c+=t,l[o](c),u=l.getTime();s.push({value:u,notAdd:!0})}function l(t,r,o){var a=[],l=!r.length;if(!FI(Xp(t),i[0],i[1],n)){l&&(r=[{value:YI(new Date(i[0]),t,n)},{value:i[1]}]);for(var u=0;u<r.length-1;u++){var c=r[u].value,h=r[u+1].value;if(c!==h){var d=void 0,p=void 0,f=void 0,g=!1;switch(t){case"year":d=Math.max(1,Math.round(e/Vp/365)),p=tf(n),f=lf(n);break;case"half-year":case"quarter":case"month":d=$I(e),p=ef(n),f=uf(n);break;case"week":case"half-week":case"day":d=HI(e,31),p=nf(n),f=cf(n),g=!0;break;case"half-day":case"quarter-day":case"hour":d=WI(e),p=rf(n),f=hf(n);break;case"minute":d=GI(e,!0),p=of(n),f=df(n);break;case"second":d=GI(e,!1),p=af(n),f=pf(n);break;case"millisecond":d=jI(e),p=sf(n),f=ff(n);break}s(d,c,h,p,f,g,a),"year"===t&&o.length>1&&0===u&&o.unshift({value:o[0].value-d})}}for(u=0;u<a.length;u++)o.push(a[u]);return a}}for(var u=[],c=[],h=0,d=0,p=0;p<o.length&&a++<r;++p){var f=Xp(o[p]);if(Up(o[p])){l(o[p],u[u.length-1]||[],c);var g=o[p+1]?Xp(o[p+1]):null;if(f!==g){if(c.length){d=h,c.sort((function(t,e){return t.value-e.value}));for(var v=[],m=0;m<c.length;++m){var y=c[m].value;0!==m&&c[m-1].value===y||(v.push(c[m]),y>=i[0]&&y<=i[1]&&h++)}var x=(i[1]-i[0])/e;if(h>1.5*x&&d>x/1.5)break;if(u.push(v),h>x||t===o[p])break}c=[]}}}var b=J(q(u,(function(t){return J(t,(function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd}))})),(function(t){return t.length>0})),_=[],w=b.length-1;for(p=0;p<b.length;++p)for(var S=b[p],M=0;M<S.length;++M)_.push({value:S[M].value,level:w-p});_.sort((function(t,e){return t.value-e.value}));var I=[];for(p=0;p<_.length;++p)0!==p&&_[p].value===_[p-1].value||I.push(_[p]);return I}rI.registerClass(BI);var UI=BI,ZI=rI.prototype,qI=bI.prototype,KI=so,JI=Math.floor,QI=Math.ceil,tC=Math.pow,eC=Math.log,nC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new bI,e._interval=0,e}return v(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent(),r=qI.getTicks.call(this,t);return q(r,(function(t){var e=t.value,r=so(tC(this.base,e));return r=e===n[0]&&this._fixMin?rC(r,i[0]):r,r=e===n[1]&&this._fixMax?rC(r,i[1]):r,{value:r}}),this)},e.prototype.setExtent=function(t,e){var n=this.base;t=eC(t)/eC(n),e=eC(e)/eC(n),qI.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=ZI.getExtent.call(this);e[0]=tC(t,e[0]),e[1]=tC(t,e[1]);var n=this._originalScale,i=n.getExtent();return this._fixMin&&(e[0]=rC(e[0],i[0])),this._fixMax&&(e[1]=rC(e[1],i[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=eC(t[0])/eC(e),t[1]=eC(t[1])/eC(e),ZI.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.niceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var i=bo(n),r=t/n*i;r<=.5&&(i*=10);while(!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0)i*=10;var o=[so(QI(e[0]/i)*i),so(JI(e[1]/i)*i)];this._interval=i,this._niceExtent=o}},e.prototype.niceExtent=function(t){qI.niceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=eC(t)/eC(this.base),pI(t,this._extent)},e.prototype.normalize=function(t){return t=eC(t)/eC(this.base),fI(t,this._extent)},e.prototype.scale=function(t){return t=gI(t,this._extent),tC(this.base,t)},e.type="log",e}(rI),iC=nC.prototype;function rC(t,e){return KI(t,uo(e))}iC.getMinorTicks=qI.getMinorTicks,iC.getLabel=qI.getLabel,rI.registerClass(nC);var oC=nC,aC=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal="ordinal"===t.type;this._needCrossZero=e.getNeedCrossZero&&e.getNeedCrossZero();var r=this._modelMinRaw=e.get("min",!0);ot(r)?this._modelMinNum=cC(t,r({min:n[0],max:n[1]})):"dataMin"!==r&&(this._modelMinNum=cC(t,r));var o=this._modelMaxRaw=e.get("max",!0);if(ot(o)?this._modelMaxNum=cC(t,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=cC(t,o)),i)this._axisDataLen=e.getCategories().length;else{var a=e.get("boundaryGap"),s=rt(a)?a:[a||0,a||0];"boolean"===typeof s[0]||"boolean"===typeof s[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Ar(s[0],1),Ar(s[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,r=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=t?i?0:NaN:e-r[0]*o),null==s&&(s=t?i?i-1:NaN:n+r[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN),a>s&&(a=NaN,s=NaN);var c=vt(a)||vt(s)||t&&!i;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var h=this._determinedMin,d=this._determinedMax;return null!=h&&(a=h,l=!0),null!=d&&(s=d,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},t.prototype.modifyDataMinMax=function(t,e){this[lC[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=sC[t];this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),sC={min:"_determinedMin",max:"_determinedMax"},lC={min:"_dataMin",max:"_dataMax"};function uC(t,e,n){var i=t.rawExtentInfo;return i||(i=new aC(t,e,n),t.rawExtentInfo=i,i)}function cC(t,e){return null==e?null:vt(e)?NaN:t.parse(e)}function hC(t,e){var n=t.type,i=uC(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var r=i.min,o=i.max,a=e.ecModel;if(a&&"time"===n){var s=TI("bar",a),l=!1;if(Z(s,(function(t){l=l||t.getBaseAxis()===e.axis})),l){var u=DI(s),c=dC(r,o,e,u);r=c.min,o=c.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function dC(t,e,n,i){var r=n.axis.getExtent(),o=r[1]-r[0],a=LI(i,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;Z(a,(function(t){s=Math.min(t.offset,s)}));var l=-1/0;Z(a,(function(t){l=Math.max(t.offset+t.width,l)})),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,h=1-(s+l)/o,d=c/h-c;return e+=d*(l/u),t-=d*(s/u),{min:t,max:e}}function pC(t,e){var n=hC(t,e),i=n.extent,r=e.get("splitNumber");t instanceof oC&&(t.base=e.get("logBase"));var o=t.type;t.setExtent(i[0],i[1]),t.niceExtent({splitNumber:r,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:"interval"===o||"time"===o?e.get("minInterval"):null,maxInterval:"interval"===o||"time"===o?e.get("maxInterval"):null});var a=e.get("interval");null!=a&&t.setInterval&&t.setInterval(a)}function fC(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new mI({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new UI({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(rI.getClass(e)||bI)}}function gC(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}function vC(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(e){return function(n,i){return t.scale.getFormattedLabel(n,i,e)}}(e):"string"===typeof e?function(e){return function(n){var i=t.scale.getLabel(n),r=e.replace("{value}",null!=i?i:"");return r}}(e):"function"===typeof e?function(e){return function(i,r){return null!=n&&(r=i.value-n),e(mC(t,i),r,null!=i.level?{level:i.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function mC(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function yC(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,r,o=n.getExtent();n instanceof mI?r=n.count():(i=n.getTicks(),r=i.length);var a,s=t.getLabelModel(),l=vC(t),u=1;r>40&&(u=Math.ceil(r/40));for(var c=0;c<r;c+=u){var h=i?i[c]:{value:o[0]+c},d=l(h,c),p=s.getTextRect(d),f=xC(p,s.get("rotate")||0);a?a.union(f):a=f}return a}}function xC(t,e){var n=e*Math.PI/180,i=t.width,r=t.height,o=i*Math.abs(Math.cos(n))+Math.abs(r*Math.sin(n)),a=i*Math.abs(Math.sin(n))+Math.abs(r*Math.cos(n)),s=new mr(t.x,t.y,o,a);return s}function bC(t){var e=t.get("interval");return null==e?"auto":e}function _C(t){return"category"===t.type&&0===bC(t.getLabelModel())}function wC(t,e){var n={};return Z(t.mapDimensionsAll(e),(function(e){n[JM(t,e)]=!0})),tt(n)}function SC(t,e,n){e&&Z(wC(e,n),(function(n){var i=e.getApproximateExtent(n);i[0]<t[0]&&(t[0]=i[0]),i[1]>t[1]&&(t[1]=i[1])}))}var MC=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},t.prototype.getCoordSysModel=function(){},t}();function IC(t){return nI(t.getSource(),t)}var CC={isDimensionStacked:KM,enableDataStack:qM,getStackedDimension:JM};function TC(t,e){var n=e;e instanceof yp||(n=new yp(e));var i=fC(n);return i.setExtent(t[0],t[1]),pC(i,n),i}function AC(t){X(t,MC)}function DC(t,e){return e=e||{},Zd(t,null,null,"normal"!==e.state)}function kC(t,e,n,i,r,o,a,s){Ag("getTextRect is deprecated.");var l=new gu({style:{text:t,font:e,align:n,verticalAlign:i,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}});return l.getBoundingRect()}var LC=ta();function PC(t){return"category"===t.type?EC(t):zC(t)}function OC(t,e){return"category"===t.type?NC(t,e):{ticks:q(t.scale.getTicks(),(function(t){return t.value}))}}function EC(t){var e=t.getLabelModel(),n=RC(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function RC(t,e){var n,i,r=BC(t,"labels"),o=bC(e),a=VC(r,o);return a||(ot(o)?n=jC(t,o):(i="auto"===o?HC(t):o,n=GC(t,i)),FC(r,o,{labels:n,labelCategoryInterval:i}))}function NC(t,e){var n,i,r=BC(t,"ticks"),o=bC(e),a=VC(r,o);if(a)return a;if(e.get("show")&&!t.scale.isBlank()||(n=[]),ot(o))n=jC(t,o,!0);else if("auto"===o){var s=RC(t,t.getLabelModel());i=s.labelCategoryInterval,n=q(s.labels,(function(t){return t.tickValue}))}else i=o,n=GC(t,i,!0);return FC(r,o,{ticks:n,tickCategoryInterval:i})}function zC(t){var e=t.scale.getTicks(),n=vC(t);return{labels:q(e,(function(e,i){return{formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}function BC(t,e){return LC(t)[e]||(LC(t)[e]=[])}function VC(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function FC(t,e,n){return t.push({key:e,value:n}),n}function HC(t){var e=LC(t).autoInterval;return null!=e?e:LC(t).autoInterval=t.calculateCategoryInterval()}function $C(t){var e=WC(t),n=vC(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,r=t.scale,o=r.getExtent(),a=r.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),c=Math.abs(u*Math.cos(i)),h=Math.abs(u*Math.sin(i)),d=0,p=0;l<=o[1];l+=s){var f=0,g=0,v=Mr(n({value:l}),e.font,"center","top");f=1.3*v.width,g=1.3*v.height,d=Math.max(d,f,7),p=Math.max(p,g,7)}var m=d/c,y=p/h;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(m,y))),b=LC(t.model),_=t.getExtent(),w=b.lastAutoInterval,S=b.lastTickCount;return null!=w&&null!=S&&Math.abs(w-x)<=1&&Math.abs(S-a)<=1&&w>x&&b.axisExtent0===_[0]&&b.axisExtent1===_[1]?x=w:(b.lastTickCount=a,b.lastAutoInterval=x,b.axisExtent0=_[0],b.axisExtent1=_[1]),x}function WC(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function GC(t,e,n){var i=vC(t),r=t.scale,o=r.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=o[0],c=r.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=_C(t),d=a.get("showMinLabel")||h,p=a.get("showMaxLabel")||h;d&&u!==o[0]&&g(o[0]);for(var f=u;f<=o[1];f+=l)g(f);function g(t){var e={value:t};s.push(n?t:{formattedLabel:i(e),rawLabel:r.getLabel(e),tickValue:t})}return p&&f-l!==o[1]&&g(o[1]),s}function jC(t,e,n){var i=t.scale,r=vC(t),o=[];return Z(i.getTicks(),(function(t){var a=i.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:r(t),rawLabel:a,tickValue:s})})),o}var YC=[0,1],XC=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return ho(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&(n=n.slice(),UC(n,i.count())),oo(t,YC,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&(n=n.slice(),UC(n,i.count()));var r=oo(t,n,YC,e);return this.scale.scale(r)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=OC(this,e),i=n.ticks,r=q(i,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this),o=e.get("alignWithLabel");return ZC(this,r,o,t.clamp),r},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),i=q(n,(function(t){return q(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this);return i},t.prototype.getViewLabels=function(){return PC(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(){return $C(this)},t}();function UC(t,e){var n=t[1]-t[0],i=e,r=n/i/2;t[0]+=r,t[1]-=r}function ZC(t,e,n,i){var r=e.length;if(t.onBand&&!n&&r){var o,a,s=t.getExtent();if(1===r)e[0].coord=s[0],o=e[1]={coord:s[0]};else{var l=e[r-1].tickValue-e[0].tickValue,u=(e[r-1].coord-e[0].coord)/l;Z(e,(function(t){t.coord-=u/2}));var c=t.scale.getExtent();a=1+c[1]-e[r-1].tickValue,o={coord:e[r-1].coord+u*a},e.push(o)}var h=s[0]>s[1];d(e[0].coord,s[0])&&(i?e[0].coord=s[0]:e.shift()),i&&d(s[0],e[0].coord)&&e.unshift({coord:s[0]}),d(s[1],o.coord)&&(i?o.coord=s[1]:e.pop()),i&&d(o.coord,s[1])&&e.push({coord:s[1]})}function d(t,e){return t=so(t),e=so(e),h?t>e:t<e}}var qC=XC;function KC(t){var e=Xf.extend(t);return Xf.registerClass(e),e}function JC(t){var e=ay.extend(t);return ay.registerClass(e),e}function QC(t){var e=ry.extend(t);return ry.registerClass(e),e}function tT(t){var e=vy.extend(t);return vy.registerClass(e),e}function eT(){return!1}function nT(t,e,n){var i=G(),r=e.getWidth(),o=e.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=o*n,i}var iT=function(t){function e(e,n,i){var r,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,i=i||Ri,"string"===typeof e?r=nT(e,n,i):ut(e)&&(r=e,e=r.id),o.id=e,o.dom=r;var a=r.style;return a&&(r.onselectstart=eT,a.webkitUserSelect="none",a.userSelect="none",a.webkitTapHighlightColor="rgba(0,0,0,0)",a["-webkit-touch-callout"]="none",a.padding="0",a.margin="0",a.borderWidth="0"),o.domBack=null,o.ctxBack=null,o.painter=n,o.config=null,o.dpr=i,o}return v(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=nT("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new mr(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===o.length){var e=new mr(0,0,0,0);e.copy(t),o.push(e)}else{for(var n=!1,i=1/0,r=0,u=0;u<o.length;++u){var c=o[u];if(c.intersect(t)){var h=new mr(0,0,0,0);h.copy(c),h.union(t),o[u]=h,n=!0;break}if(s){l.copy(t),l.union(c);var d=t.width*t.height,p=c.width*c.height,f=l.width*l.height,g=f-d-p;g<i&&(i=g,r=u)}}if(s&&(o[r].union(t),n=!0),!n){e=new mr(0,0,0,0);e.copy(t),o.push(e)}s||(s=o.length>=a)}}for(var c=this.__startIndex;c<this.__endIndex;++c){var h=t[c];if(h){var d=h.shouldBePainted(n,i,!0,!0),p=h.__isRendered&&(h.__dirty&en||!d)?h.getPrevPaintRect():null;p&&u(p);var f=d&&(h.__dirty&en||!h.__isRendered)?h.getPaintRect():null;f&&u(f)}}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){h=e[c],d=h.shouldBePainted(n,i,!0,!0);if(h&&(!d||!h.__zr)&&h.__isRendered){p=h.getPrevPaintRect();p&&u(p)}}do{r=!1;for(c=0;c<o.length;)if(o[c].isZero())o.splice(c,1);else{for(var g=c+1;g<o.length;)o[c].intersect(o[g])?(r=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(r);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),i.width=t*n,i.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,e,n){var i=this.dom,r=this.ctx,o=i.width,a=i.height;e=e||this.clearColor;var s=this.motionBlur&&!t,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,o/u,a/u));var h=this.domBack;function d(t,n,i,o){if(r.clearRect(t,n,i,o),e&&"transparent"!==e){var a=void 0;pt(e)?(a=e.__canvasGradient||gb(r,e,{x:0,y:0,width:i,height:o}),e.__canvasGradient=a):ft(e)&&(a=Sb(r,e,{dirty:function(){c.setUnpainted(),c.__painter.refresh()}})),r.save(),r.fillStyle=a||e,r.fillRect(t,n,i,o),r.restore()}s&&(r.save(),r.globalAlpha=l,r.drawImage(h,t,n,i,o),r.restore())}!n||s?d(0,0,o,a):n.length&&Z(n,(function(t){d(t.x*u,t.y*u,t.width*u,t.height*u)}))},e}(le),rT=iT,oT=1e5,aT=314159,sT=.01,lT=.001;function uT(t){return parseInt(t,10)}function cT(t){return!!t&&(!!t.__builtin__||"function"===typeof t.resize&&"function"===typeof t.refresh)}function hT(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var dT=function(){function t(t,e,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var r=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=$({},n||{}),this.dpr=n.devicePixelRatio||Ri,this._singleCanvas=r,this.root=t;var o=t.style;o&&(o.webkitTapHighlightColor="transparent",o.webkitUserSelect="none",o.userSelect="none",o["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e;var a=this._zlevelList;this._prevDisplayList=[];var s=this._layers;if(r){var l=t,u=l.width,c=l.height;null!=n.width&&(u=n.width),null!=n.height&&(c=n.height),this.dpr=n.devicePixelRatio||1,l.width=u*this.dpr,l.height=c*this.dpr,this._width=u,this._height=c;var h=new rT(l,this,this.dpr);h.__builtin__=!0,h.initContext(),s[aT]=h,h.zlevel=aT,a.push(aT),this._domRoot=t}else{this._width=this._getSize(0),this._height=this._getSize(1);var d=this._domRoot=hT(this._width,this._height);t.appendChild(d)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var r=0;r<i.length;r++){var o=i[r],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===r?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var i,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<e;o++){var a=t[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(oT)),i||(i=n.ctx,i.save()),Wb(i,a,r,o===e-1))}i&&i.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(oT)},t.prototype.paintOne=function(t,e){$b(t,e)},t.prototype._paintList=function(t,e,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var r=this._doPaintList(t,e,n),o=r.finished,a=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer((function(t){t.afterBrush&&t.afterBrush()}));else{var s=this;hn((function(){s._paintList(t,e,n,i)}))}}},t.prototype._compositeManually=function(){var t=this.getLayer(aT).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer((function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)}))},t.prototype._doPaintList=function(t,e,n){for(var i=this,r=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&r.push(l)}for(var u=!0,c=!1,h=function(a){var s,l=r[a],h=l.ctx,p=o&&l.createRepaintRects(t,e,d._width,d._height),f=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,v=g&&Date.now(),m=l.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,m,p);else if(f===l.__startIndex){var y=t[f];y.incremental&&y.notClear&&!n||l.clear(!1,m,p)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=l.__startIndex);var x=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(s=f;s<l.__endIndex;s++){var r=t[s];if(r.__inHover&&(c=!0),i._doPaintEl(r,l,o,e,n,s===l.__endIndex-1),g){var a=Date.now()-v;if(a>15)break}}n.prevElClipPaths&&h.restore()};if(p)if(0===p.length)s=l.__endIndex;else for(var b=d.dpr,_=0;_<p.length;++_){var w=p[_];h.save(),h.beginPath(),h.rect(w.x*b,w.y*b,w.width*b,w.height*b),h.clip(),x(w),h.restore()}else h.save(),x(),h.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(u=!1)},d=this,p=0;p<r.length;p++)h(p);return S.wxa&&Z(this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),{finished:u,needsRefreshHover:c}},t.prototype._doPaintEl=function(t,e,n,i,r,o){var a=e.ctx;if(n){var s=t.getPaintRect();(!i||s&&s.intersect(i))&&(Wb(a,t,r,o),t.setPrevPaintRect(s))}else Wb(a,t,r,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=aT);var n=this._layers[t];return n||(n=new rT("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?F(n,this._layerConfig[t],!0):this._layerConfig[t-sT]&&F(n,this._layerConfig[t-sT],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},t.prototype.insertLayer=function(t,e){var n=this._layers,i=this._zlevelList,r=i.length,o=this._domRoot,a=null,s=-1;if(n[t])B("ZLevel "+t+" has been used already");else if(cT(e)){if(r>0&&t>i[0]){for(s=0;s<r-1;s++)if(i[s]<t&&i[s+1]>t)break;a=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}else B("Layer of zlevel "+t+" is not valid")},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i];t.call(e,this._layers[r],r)}},t.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__&&t.call(e,o,r)}},t.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__||t.call(e,o,r)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){a&&(a.__endIndex!==t&&(a.__dirty=!0),a.__endIndex=t)}if(this.eachBuiltinLayer((function(t,e){t.__dirty=t.__used=!1})),this._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var r,o,a=null,s=0;for(o=0;o<t.length;o++){i=t[o];var l=i.zlevel,u=void 0;r!==l&&(r=l,s=0),i.incremental?(u=this.getLayer(l+lT,this._needsManuallyCompositing),u.incremental=!0,s=1):u=this.getLayer(l+(s>0?sT:0),this._needsManuallyCompositing),u.__builtin__||B("ZLevel "+l+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==o&&(u.__dirty=!0),u.__startIndex=o,u.incremental?u.__drawIndex=-1:u.__drawIndex=o,e(o),a=u),i.__dirty&en&&!i.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=o))}e(o),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,Z(this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?F(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i];if(r===t||r===t+sT){var o=this._layers[r];F(o,n[t],!0)}}}},t.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(j(n,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=this._getSize(0),e=this._getSize(1),n.style.display="",this._width!==t||e!==this._height){for(var r in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(r)&&this._layers[r].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(aT).resize(t,e)}return this},t.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[aT].dom;var e=new rT("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,r=e.dom.height;this.eachLayer((function(t){t.__builtin__?n.drawImage(t.dom,0,0,i,r):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())}))}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];Wb(n,u,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype._getSize=function(t){var e=this._opts,n=["width","height"][t],i=["clientWidth","clientHeight"][t],r=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(null!=e[n]&&"auto"!==e[n])return parseFloat(e[n]);var a=this.root,s=document.defaultView.getComputedStyle(a);return(a[i]||uT(s[n])||uT(a.style[n]))-(uT(s[r])||0)-(uT(s[o])||0)|0},t.prototype.pathToImage=function(t,e){e=e||this.dpr;var n=document.createElement("canvas"),i=n.getContext("2d"),r=t.getBoundingRect(),o=t.style,a=o.shadowBlur*e,s=o.shadowOffsetX*e,l=o.shadowOffsetY*e,u=t.hasStroke()?o.lineWidth:0,c=Math.max(u/2,-s+a),h=Math.max(u/2,s+a),d=Math.max(u/2,-l+a),p=Math.max(u/2,l+a),f=r.width+c+h,g=r.height+d+p;n.width=f*e,n.height=g*e,i.scale(e,e),i.clearRect(0,0,f,g),i.dpr=e;var v={x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY,rotation:t.rotation,originX:t.originX,originY:t.originY};t.x=c-r.x,t.y=d-r.y,t.rotation=0,t.scaleX=1,t.scaleY=1,t.updateTransform(),t&&Wb(i,t,{inHover:!1,viewWidth:this._width,viewHeight:this._height},!0);var m=new Yl({style:{x:0,y:0,image:n}});return $(t,v),m},t}(),pT=dT;function fT(t){t.registerPainter("canvas",pT)}function gT(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function vT(t,e,n){n||(n=function(t,e){return t===e}),t=t.slice(),e=e.slice();var i=e.length,r=t.length,o=1,a=i+r,s=[{newPos:-1,components:[]}],l=mT(s[0],e,t,0,n);if(s[0].newPos+1>=i&&l+1>=r){for(var u=[],c=0;c<e.length;c++)u.push(c);return[{indices:u,count:e.length,added:!1,removed:!1}]}function h(){for(var a=-1*o;a<=o;a+=2){var l,u=s[a-1],c=s[a+1],h=(c?c.newPos:0)-a;u&&(s[a-1]=void 0);var d=u&&u.newPos+1<i,p=c&&0<=h&&h<r;if(d||p){if(!d||p&&u.newPos<c.newPos?(l=bT(c),yT(l.components,!1,!0)):(l=u,l.newPos++,yT(l.components,!0,!1)),h=mT(l,e,t,a,n),l.newPos+1>=i&&h+1>=r)return xT(l.components);s[a]=l}else s[a]=void 0}o++}while(o<=a){var d=h();if(d)return d}}function mT(t,e,n,i,r){var o=e.length,a=n.length,s=t.newPos,l=s-i,u=0;while(s+1<o&&l+1<a&&r(e[s+1],n[l+1]))s++,l++,u++;return u&&t.components.push({count:u,added:!1,removed:!1,indices:[]}),t.newPos=s,l}function yT(t,e,n){var i=t[t.length-1];i&&i.added===e&&i.removed===n?t[t.length-1]={count:i.count+1,added:e,removed:n,indices:[]}:t.push({count:1,added:e,removed:n,indices:[]})}function xT(t){for(var e=0,n=t.length,i=0,r=0;e<n;e++){var o=t[e];if(o.removed){for(s=r;s<r+o.count;s++)o.indices.push(s);r+=o.count}else{for(var a=[],s=i;s<i+o.count;s++)a.push(s);o.indices=a,i+=o.count,o.added||(r+=o.count)}}return t}function bT(t){return{newPos:t.newPos,components:t.components.slice(0)}}function _T(t,e,n){return vT(t,e,n)}var wT="none",ST=Math.round,MT=Math.sin,IT=Math.cos,CT=Math.PI,TT=2*Math.PI,AT=180/CT,DT=1e-4;function kT(t){return ST(1e3*t)/1e3}function LT(t){return ST(1e4*t)/1e4}function PT(t){return t<DT&&t>-DT}function OT(t){var e=t.fill;return null!=e&&e!==wT}function ET(t){var e=t.stroke;return null!=e&&e!==wT}function RT(t,e){e&&NT(t,"transform","matrix("+kT(e[0])+","+kT(e[1])+","+kT(e[2])+","+kT(e[3])+","+LT(e[4])+","+LT(e[5])+")")}function NT(t,e,n){(!n||"linear"!==n.type&&"radial"!==n.type)&&t.setAttribute(e,n)}function zT(t,e,n){t.setAttributeNS("http://www.w3.org/1999/xlink",e,n)}function BT(t,e,n){t.setAttributeNS("http://www.w3.org/XML/1998/namespace",e,n)}function VT(t,e,n){var i=null==e.opacity?1:e.opacity;if(n instanceof Yl)t.style.opacity=i+"";else{if(OT(e)){var r=e.fill;r="transparent"===r?wT:r,NT(t,"fill",r),NT(t,"fill-opacity",(null!=e.fillOpacity?e.fillOpacity*i:i)+"")}else NT(t,"fill",wT);if(ET(e)){var o=e.stroke;o="transparent"===o?wT:o,NT(t,"stroke",o);var a=e.lineWidth,s=e.strokeNoScale?n.getLineScale():1;NT(t,"stroke-width",(s?a/s:0)+""),NT(t,"paint-order",e.strokeFirst?"stroke":"fill"),NT(t,"stroke-opacity",(null!=e.strokeOpacity?e.strokeOpacity*i:i)+"");var l=e.lineDash&&a>0&&mb(e.lineDash,a);if(l){var u=e.lineDashOffset;s&&1!==s&&(l=q(l,(function(t){return t/s})),u&&(u/=s,u=ST(u))),NT(t,"stroke-dasharray",l.join(",")),NT(t,"stroke-dashoffset",(u||0)+"")}else NT(t,"stroke-dasharray","");e.lineCap&&NT(t,"stroke-linecap",e.lineCap),e.lineJoin&&NT(t,"stroke-linejoin",e.lineJoin),e.miterLimit&&NT(t,"stroke-miterlimit",e.miterLimit+"")}else NT(t,"stroke",wT)}}var FT=function(){function t(){}return t.prototype.reset=function(){this._d=[],this._str=""},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){this._add("C",t,e,n,i,r,o)},t.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},t.prototype.arc=function(t,e,n,i,r,o){this.ellipse(t,e,n,n,0,i,r,o)},t.prototype.ellipse=function(t,e,n,i,r,o,a,s){var l=0===this._d.length,u=a-o,c=!s,h=Math.abs(u),d=PT(h-TT)||(c?u>=TT:-u>=TT),p=u>0?u%TT:u%TT+TT,f=!1;f=!!d||!PT(h)&&p>=CT===!!c;var g=LT(t+n*IT(o)),v=LT(e+i*MT(o));d&&(u=c?TT-1e-4:1e-4-TT,f=!0,l&&this._d.push("M",g,v));var m=LT(t+n*IT(o+u)),y=LT(e+i*MT(o+u));if(isNaN(g)||isNaN(v)||isNaN(n)||isNaN(i)||isNaN(r)||isNaN(AT)||isNaN(m)||isNaN(y))return"";this._d.push("A",LT(n),LT(i),ST(r*AT),+f,+c,m,y)},t.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("L",t+n,e),this._add("L",t+n,e+i),this._add("L",t,e+i),this._add("L",t,e)},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,i,r,o,a,s,l){this._d.push(t);for(var u=1;u<arguments.length;u++){var c=arguments[u];if(isNaN(c))return void(this._invalid=!0);this._d.push(LT(c))}},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(" "),this._d=[]},t.prototype.getStr=function(){return this._str},t}(),HT={brush:function(t){var e=t.style,n=t.__svgEl;n||(n=gT("path"),t.__svgEl=n),t.path||t.createPathProxy();var i=t.path;t.shapeChanged()&&(i.beginPath(),t.buildPath(i,t.shape),t.pathUpdated());var r=i.getVersion(),o=t,a=o.__svgPathBuilder;(o.__svgPathVersion!==r||!a||t.style.strokePercent<1)&&(a||(a=o.__svgPathBuilder=new FT),a.reset(),i.rebuildPath(a,t.style.strokePercent),a.generateStr(),o.__svgPathVersion=r),NT(n,"d",a.getStr()),VT(n,e,t),RT(n,t.transform)}},$T={brush:function(t){var e=t.style,n=e.image;if(n instanceof HTMLImageElement?n=n.src:n instanceof HTMLCanvasElement&&(n=n.toDataURL()),n){var i=e.x||0,r=e.y||0,o=e.width,a=e.height,s=t.__svgEl;s||(s=gT("image"),t.__svgEl=s),n!==t.__imageSrc&&(zT(s,"href",n),t.__imageSrc=n),NT(s,"width",o+""),NT(s,"height",a+""),NT(s,"x",i+""),NT(s,"y",r+""),VT(s,e,t),RT(s,t.transform)}}},WT={left:"start",right:"end",center:"middle",middle:"middle"};function GT(t,e,n){return"top"===n?t+=e/2:"bottom"===n&&(t-=e/2),t}var jT={brush:function(t){var e=t.style,n=e.text;if(null!=n&&(n+=""),n&&!isNaN(e.x)&&!isNaN(e.y)){var i=t.__svgEl;i||(i=gT("text"),BT(i,"xml:space","preserve"),t.__svgEl=i);var r=e.font||xr,o=i.style;o.font=r,i.textContent=n,VT(i,e,t),RT(i,t.transform);var a=e.x||0,s=GT(e.y||0,Tr(r),e.textBaseline),l=WT[e.textAlign]||e.textAlign;NT(i,"dominant-baseline","central"),NT(i,"text-anchor",l),NT(i,"x",a+""),NT(i,"y",s+"")}}},YT="0",XT="1",UT=function(){function t(t,e,n,i,r){this.nextId=0,this._domName="_dom",this.createElement=gT,this._zrId=t,this._svgRoot=e,this._tagNames="string"===typeof n?[n]:n,this._markLabel=i,r&&(this._domName=r)}return t.prototype.getDefs=function(t){var e=this._svgRoot,n=this._svgRoot.getElementsByTagName("defs");if(0===n.length){if(t){var i=e.insertBefore(this.createElement("defs"),e.firstChild);return i.contains||(i.contains=function(t){var e=i.children;if(!e)return!1;for(var n=e.length-1;n>=0;--n)if(e[n]===t)return!0;return!1}),i}return null}return n[0]},t.prototype.doUpdate=function(t,e){if(t){var n=this.getDefs(!1);if(t[this._domName]&&n.contains(t[this._domName]))"function"===typeof e&&e(t);else{var i=this.add(t);i&&(t[this._domName]=i)}}},t.prototype.add=function(t){return null},t.prototype.addDom=function(t){var e=this.getDefs(!0);t.parentNode!==e&&e.appendChild(t)},t.prototype.removeDom=function(t){var e=this.getDefs(!1);e&&t[this._domName]&&(e.removeChild(t[this._domName]),t[this._domName]=null)},t.prototype.getDoms=function(){var t=this.getDefs(!1);if(!t)return[];var e=[];return Z(this._tagNames,(function(n){for(var i=t.getElementsByTagName(n),r=0;r<i.length;r++)e.push(i[r])})),e},t.prototype.markAllUnused=function(){var t=this.getDoms(),e=this;Z(t,(function(t){t[e._markLabel]=YT}))},t.prototype.markDomUsed=function(t){t&&(t[this._markLabel]=XT)},t.prototype.markDomUnused=function(t){t&&(t[this._markLabel]=YT)},t.prototype.isDomUnused=function(t){return t&&t[this._markLabel]!==XT},t.prototype.removeUnused=function(){var t=this,e=this.getDefs(!1);if(e){var n=this.getDoms();Z(n,(function(n){t.isDomUnused(n)&&e.removeChild(n)}))}},t.prototype.getSvgProxy=function(t){return t instanceof Bl?HT:t instanceof Yl?$T:t instanceof Hl?jT:HT},t.prototype.getSvgElement=function(t){return t.__svgEl},t}(),ZT=UT;function qT(t){return"linear"===t.type}function KT(t){return"radial"===t.type}function JT(t){return t&&("linear"===t.type||"radial"===t.type)}var QT=function(t){function e(e,n){return t.call(this,e,n,["linearGradient","radialGradient"],"__gradient_in_use__")||this}return v(e,t),e.prototype.addWithoutUpdate=function(t,e){if(e&&e.style){var n=this;Z(["fill","stroke"],(function(i){var r=e.style[i];if(JT(r)){var o=r,a=n.getDefs(!0),s=void 0;o.__dom?(s=o.__dom,a.contains(o.__dom)||n.addDom(s)):s=n.add(o),n.markUsed(e);var l=s.getAttribute("id");t.setAttribute(i,"url(#"+l+")")}}))}},e.prototype.add=function(t){var e;if(qT(t))e=this.createElement("linearGradient");else{if(!KT(t))return B("Illegal gradient type."),null;e=this.createElement("radialGradient")}return t.id=t.id||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-gradient-"+t.id),this.updateDom(t,e),this.addDom(e),e},e.prototype.update=function(t){if(JT(t)){var e=this;this.doUpdate(t,(function(){var n=t.__dom;if(n){var i=n.tagName,r=t.type;"linear"===r&&"linearGradient"===i||"radial"===r&&"radialGradient"===i?e.updateDom(t,t.__dom):(e.removeDom(t),e.add(t))}}))}},e.prototype.updateDom=function(t,e){if(qT(t))e.setAttribute("x1",t.x+""),e.setAttribute("y1",t.y+""),e.setAttribute("x2",t.x2+""),e.setAttribute("y2",t.y2+"");else{if(!KT(t))return void B("Illegal gradient type.");e.setAttribute("cx",t.x+""),e.setAttribute("cy",t.y+""),e.setAttribute("r",t.r+"")}t.global?e.setAttribute("gradientUnits","userSpaceOnUse"):e.setAttribute("gradientUnits","objectBoundingBox"),e.innerHTML="";for(var n=t.colorStops,i=0,r=n.length;i<r;++i){var o=this.createElement("stop");o.setAttribute("offset",100*n[i].offset+"%");var a=n[i].color;if(a.indexOf("rgba")>-1){var s=On(a)[3],l=zn(a);o.setAttribute("stop-color","#"+l),o.setAttribute("stop-opacity",s+"")}else o.setAttribute("stop-color",n[i].color);e.appendChild(o)}t.__dom=e},e.prototype.markUsed=function(e){if(e.style){var n=e.style.fill;n&&n.__dom&&t.prototype.markDomUsed.call(this,n.__dom),n=e.style.stroke,n&&n.__dom&&t.prototype.markDomUsed.call(this,n.__dom)}},e}(ZT),tA=QT;function eA(t){return t&&(!!t.image||!!t.svgElement)}var nA=new nb,iA=function(t){function e(e,n){return t.call(this,e,n,["pattern"],"__pattern_in_use__")||this}return v(e,t),e.prototype.addWithoutUpdate=function(t,e){if(e&&e.style){var n=this;Z(["fill","stroke"],(function(i){var r=e.style[i];if(eA(r)){var o=n.getDefs(!0),a=nA.get(r);a?o.contains(a)||n.addDom(a):a=n.add(r),n.markUsed(e);var s=a.getAttribute("id");t.setAttribute(i,"url(#"+s+")")}}))}},e.prototype.add=function(t){if(eA(t)){var e=this.createElement("pattern");return t.id=null==t.id?this.nextId++:t.id,e.setAttribute("id","zr"+this._zrId+"-pattern-"+t.id),e.setAttribute("x","0"),e.setAttribute("y","0"),e.setAttribute("patternUnits","userSpaceOnUse"),this.updateDom(t,e),this.addDom(e),e}},e.prototype.update=function(t){if(eA(t)){var e=this;this.doUpdate(t,(function(){var n=nA.get(t);e.updateDom(t,n)}))}},e.prototype.updateDom=function(t,e){var n=t.svgElement;if(n instanceof SVGElement)n.parentNode!==e&&(e.innerHTML="",e.appendChild(n),e.setAttribute("width",t.svgWidth+""),e.setAttribute("height",t.svgHeight+""));else{var i=void 0,r=e.getElementsByTagName("image");if(r.length){if(!t.image)return void e.removeChild(r[0]);i=r[0]}else t.image&&(i=this.createElement("image"));if(i){var o=void 0,a=t.image;if("string"===typeof a?o=a:a instanceof HTMLImageElement?o=a.src:a instanceof HTMLCanvasElement&&(o=a.toDataURL()),o){i.setAttribute("href",o),i.setAttribute("x","0"),i.setAttribute("y","0");var s={dirty:function(){}},l=Pa(o,i,s,(function(t){e.setAttribute("width",t.width+""),e.setAttribute("height",t.height+"")}));l&&l.width&&l.height&&(e.setAttribute("width",l.width+""),e.setAttribute("height",l.height+"")),e.appendChild(i)}}}var u=t.x||0,c=t.y||0,h=(t.rotation||0)/Math.PI*180,d=t.scaleX||1,p=t.scaleY||1,f="translate("+u+", "+c+") rotate("+h+") scale("+d+", "+p+")";e.setAttribute("patternTransform",f),nA.set(t,e)},e.prototype.markUsed=function(e){e.style&&(eA(e.style.fill)&&t.prototype.markDomUsed.call(this,nA.get(e.style.fill)),eA(e.style.stroke)&&t.prototype.markDomUsed.call(this,nA.get(e.style.stroke)))},e}(ZT),rA=iA;function oA(t){var e=[];if(t)for(var n=0;n<t.length;n++){var i=t[n];e.push(i.id)}return e.join(",")}function aA(t){var e=t.__clipPaths;return e&&e.length>0}var sA=function(t){function e(e,n){var i=t.call(this,e,n,"clipPath","__clippath_in_use__")||this;return i._refGroups={},i._keyDuplicateCount={},i}return v(e,t),e.prototype.markAllUnused=function(){for(var e in t.prototype.markAllUnused.call(this),this._refGroups)this.markDomUnused(this._refGroups[e]);this._keyDuplicateCount={}},e.prototype._getClipPathGroup=function(t,e){if(aA(t)){var n=t.__clipPaths,i=this._keyDuplicateCount,r=oA(n);return vb(n,e&&e.__clipPaths)&&(i[r]=i[r]||0,i[r]&&(r+="-"+i[r]),i[r]++),this._refGroups[r]||(this._refGroups[r]=this.createElement("g"))}},e.prototype.update=function(t,e){var n=this._getClipPathGroup(t,e);return n&&(this.markDomUsed(n),this.updateDom(n,t.__clipPaths)),n},e.prototype.updateDom=function(t,e){if(e&&e.length>0){var n=this.getDefs(!0),i=e[0],r=void 0,o=void 0;i._dom?(o=i._dom.getAttribute("id"),r=i._dom,n.contains(r)||n.appendChild(r)):(o="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,r=this.createElement("clipPath"),r.setAttribute("id",o),n.appendChild(r),i._dom=r);var a=this.getSvgProxy(i);a.brush(i);var s=this.getSvgElement(i);r.innerHTML="",r.appendChild(s),t.setAttribute("clip-path","url(#"+o+")"),e.length>1&&this.updateDom(r,e.slice(1))}else t&&t.setAttribute("clip-path","none")},e.prototype.markUsed=function(e){var n=this;e.__clipPaths&&Z(e.__clipPaths,(function(e){e._dom&&t.prototype.markDomUsed.call(n,e._dom)}))},e.prototype.removeUnused=function(){t.prototype.removeUnused.call(this);var e={};for(var n in this._refGroups){var i=this._refGroups[n];this.isDomUnused(i)?i.parentNode&&i.parentNode.removeChild(i):e[n]=i}this._refGroups=e},e}(ZT),lA=sA,uA=function(t){function e(e,n){var i=t.call(this,e,n,["filter"],"__filter_in_use__","_shadowDom")||this;return i._shadowDomMap={},i._shadowDomPool=[],i}return v(e,t),e.prototype._getFromPool=function(){var t=this._shadowDomPool.pop();if(!t){t=this.createElement("filter"),t.setAttribute("id","zr"+this._zrId+"-shadow-"+this.nextId++);var e=this.createElement("feDropShadow");t.appendChild(e),this.addDom(t)}return t},e.prototype.update=function(t,e){var n=e.style;if(hA(n)){var i=dA(e),r=e._shadowDom=this._shadowDomMap[i];r||(r=this._getFromPool(),this._shadowDomMap[i]=r),this.updateDom(t,e,r)}else this.remove(t,e)},e.prototype.remove=function(t,e){null!=e._shadowDom&&(e._shadowDom=null,t.style.filter="")},e.prototype.updateDom=function(t,e,n){var i=n.children[0],r=e.style,o=e.getGlobalScale(),a=o[0],s=o[1];if(a&&s){var l=r.shadowOffsetX||0,u=r.shadowOffsetY||0,c=r.shadowBlur,h=r.shadowColor;i.setAttribute("dx",l/a+""),i.setAttribute("dy",u/s+""),i.setAttribute("flood-color",h);var d=c/2/a,p=c/2/s,f=d+" "+p;i.setAttribute("stdDeviation",f),n.setAttribute("x","-100%"),n.setAttribute("y","-100%"),n.setAttribute("width","300%"),n.setAttribute("height","300%"),e._shadowDom=n;var g=n.getAttribute("id");t.style.filter="url(#"+g+")"}},e.prototype.removeUnused=function(){var t=this.getDefs(!1);if(t){var e=this._shadowDomPool;for(var n in this._shadowDomMap){var i=this._shadowDomMap[n];e.push(i)}this._shadowDomMap={}}},e}(ZT),cA=uA;function hA(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function dA(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function pA(t){return parseInt(t,10)}function fA(t){return t instanceof Bl?HT:t instanceof Yl?$T:t instanceof Hl?jT:HT}function gA(t,e){return e&&t&&e.parentNode!==t}function vA(t,e,n){if(gA(t,e)&&n){var i=n.nextSibling;i?t.insertBefore(e,i):t.appendChild(e)}}function mA(t,e){if(gA(t,e)){var n=t.firstChild;n?t.insertBefore(e,n):t.appendChild(e)}}function yA(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)}function xA(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function bA(t){return t.__svgEl}var _A=function(){function t(t,e,n,i){this.type="svg",this.refreshHover=wA("refreshHover"),this.pathToImage=wA("pathToImage"),this.configLayer=wA("configLayer"),this.root=t,this.storage=e,this._opts=n=$({},n||{});var r=gT("svg");r.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),r.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),r.setAttribute("version","1.1"),r.setAttribute("baseProfile","full"),r.style.cssText="user-select:none;position:absolute;left:0;top:0;";var o=gT("g");r.appendChild(o);var a=gT("g");r.appendChild(a),this._gradientManager=new tA(i,a),this._patternManager=new rA(i,a),this._clipPathManager=new lA(i,a),this._shadowManager=new cA(i,a);var s=document.createElement("div");s.style.cssText="overflow:hidden;position:relative",this._svgDom=r,this._svgRoot=a,this._backgroundRoot=o,this._viewport=s,t.appendChild(s),s.appendChild(r),this.resize(n.width,n.height),this._visibleList=[]}return t.prototype.getType=function(){return"svg"},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.getSvgRoot=function(){return this._svgRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(){var t=this.storage.getDisplayList(!0);this._paintList(t)},t.prototype.setBackgroundColor=function(t){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var e=gT("rect");e.setAttribute("width",this.getWidth()),e.setAttribute("height",this.getHeight()),e.setAttribute("x",0),e.setAttribute("y",0),e.setAttribute("id",0),e.style.fill=t,this._backgroundRoot.appendChild(e),this._backgroundNode=e},t.prototype.createSVGElement=function(t){return gT(t)},t.prototype.paintOne=function(t){var e=fA(t);return e&&e.brush(t),bA(t)},t.prototype._paintList=function(t){var e=this._gradientManager,n=this._patternManager,i=this._clipPathManager,r=this._shadowManager;e.markAllUnused(),n.markAllUnused(),i.markAllUnused(),r.markAllUnused();for(var o=this._svgRoot,a=this._visibleList,s=t.length,l=[],u=0;u<s;u++){var c=t[u],h=fA(c),d=bA(c);c.invisible||(!c.__dirty&&d||(h&&h.brush(c),d=bA(c),d&&c.style&&(e.update(c.style.fill),e.update(c.style.stroke),n.update(c.style.fill),n.update(c.style.stroke),r.update(d,c)),c.__dirty=0),d&&l.push(c))}var p,f,g,v,m=_T(a,l);for(u=0;u<m.length;u++){var y=m[u];if(y.removed)for(var x=0;x<y.count;x++){c=a[y.indices[x]],d=bA(c);aA(c)?xA(d):yA(o,d)}}for(u=0;u<m.length;u++){y=m[u];if(!y.removed)for(x=0;x<y.count;x++){c=l[y.indices[x]];var b=i.update(c,g);b!==v&&(p=f,b&&(p?vA(o,b,p):mA(o,b),f=b,p=null),v=b);d=bA(c);p?vA(v||o,d,p):mA(v||o,d),p=d||p,v||(f=p),e.markUsed(c),e.addWithoutUpdate(d,c),n.markUsed(c),n.addWithoutUpdate(d,c),i.markUsed(c),g=c}}e.removeUnused(),n.removeUnused(),i.removeUnused(),r.removeUnused(),this._visibleList=l},t.prototype.resize=function(t,e){var n=this._viewport;n.style.display="none";var i=this._opts;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=this._getSize(0),e=this._getSize(1),n.style.display="",this._width!==t||this._height!==e){this._width=t,this._height=e;var r=n.style;r.width=t+"px",r.height=e+"px";var o=this._svgDom;o.setAttribute("width",t+""),o.setAttribute("height",e+"")}this._backgroundNode&&(this._backgroundNode.setAttribute("width",t),this._backgroundNode.setAttribute("height",e))},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype._getSize=function(t){var e=this._opts,n=["width","height"][t],i=["clientWidth","clientHeight"][t],r=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(null!=e[n]&&"auto"!==e[n])return parseFloat(e[n]);var a=this.root,s=document.defaultView.getComputedStyle(a);return(a[i]||pA(s[n])||pA(a.style[n]))-(pA(s[r])||0)-(pA(s[o])||0)|0},t.prototype.dispose=function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},t.prototype.clear=function(){var t=this._viewport;t&&t.parentNode&&t.parentNode.removeChild(t)},t.prototype.toDataURL=function(){this.refresh();var t=this._svgDom,e=t.outerHTML||(t.parentNode&&t.parentNode).innerHTML,n=encodeURIComponent(e.replace(/></g,">\n\r<"));return"data:image/svg+xml;charset=UTF-8,"+n},t}();function wA(t){return function(){B('In SVG mode painter not support method "'+t+'"')}}var SA=_A;function MA(t){t.registerPainter("svg",SA)}var IA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return v(e,t),e.prototype.getInitialData=function(t){return nI(this.getSource(),this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new Wr,n=db("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===i?"circle":i,a=.8*t.itemHeight,s=db(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?r:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.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},e}(ry),CA=IA;function TA(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=Kv(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a<n.length;a++)o.push(Kv(t,e,n[a]));return o.join(" ")}}function AA(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!rt(e))return e+"";for(var i=[],r=0;r<n.length;r++){var o=t.getDimensionInfo(n[r]);o&&i.push(e[o.index])}return i.join(" ")}var DA=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.updateData(e,n,i,r),o}return v(e,t),e.prototype._createSymbol=function(t,e,n,i,r){this.removeAll();var o=db(t,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=kA,this._symbolType=t,this.add(o)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Qu(this.childAt(0))},e.prototype.downplay=function(){tc(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":e.cursor},e.prototype.updateData=function(t,n,i,r){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,n),l=o!==this._symbolType,u=r&&r.disableAnimation;if(l){var c=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,s,c)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:s[0]/2,scaleY:s[1]/2};u?h.attr(d):Md(h,d,a,n)}if(this._updateCommon(t,n,s,i,r),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,Id(h,d,a,n)}}u&&this.childAt(0).stopAnimation("remove"),this._seriesModel=a},e.prototype._updateCommon=function(t,e,n,i,r){var o,a,s,l,u,c,h,d,p=this.childAt(0),f=t.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,u=i.blurScope,c=i.labelStatesModels,h=i.hoverScale,d=i.cursorStyle),!i||t.hasItemOption){var g=i&&i.itemModel?i.itemModel:t.getItemModel(e),v=g.getModel("emphasis");o=v.getModel("itemStyle").getItemStyle(),s=g.getModel(["select","itemStyle"]).getItemStyle(),a=g.getModel(["blur","itemStyle"]).getItemStyle(),l=v.get("focus"),u=v.get("blurScope"),c=Ud(g),h=v.getShallow("scale"),d=g.getShallow("cursor")}var m=t.getItemVisual(e,"symbolRotate");p.attr("rotation",(m||0)*Math.PI/180||0);var y=t.getItemVisual(e,"symbolOffset")||0;y&&(rt(y)||(y=[y,y]),p.x=ao(y[0],n[0]),p.y=ao(yt(y[1],y[0])||0,n[1])),d&&p.attr("cursor",d);var x=t.getItemVisual(e,"style"),b=x.fill;if(p instanceof Yl){var _=p.style;p.useStyle($({image:_.image,x:_.x,y:_.y,width:_.width,height:_.height},x))}else p.__isEmptyBrush?p.useStyle($({},x)):p.useStyle(x),p.style.decal=null,p.setColor(b,r&&r.symbolInnerColor),p.style.strokeNoScale=!0;var w=t.getItemVisual(e,"liftZ"),S=this._z2;null!=w?null==S&&(this._z2=p.z2,p.z2+=w):null!=S&&(p.z2=S,this._z2=null);var M=r&&r.useNameLabel;function I(e){return M?t.getName(e):TA(t,e)}Xd(p,c,{labelFetcher:f,labelDataIndex:e,defaultText:I,inheritColor:b,defaultOpacity:x.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var C=p.ensureState("emphasis");if(C.style=o,p.ensureState("select").style=s,p.ensureState("blur").style=a,h){var T=Math.max(1.1,3/this._sizeY);C.scaleX=this._sizeX*T,C.scaleY=this._sizeY*T}this.setSymbolScale(1),vc(this,l,u)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e){var n=this.childAt(0),i=this._seriesModel,r=vu(this).dataIndex,o=e&&e.animation;if(this.silent=n.silent=!0,e&&e.fadeLabel){var a=n.getTextContent();a&&Cd(a,{style:{opacity:0}},i,{dataIndex:r,removeOpt:o,cb:function(){n.removeTextContent()}})}else n.removeTextContent();Cd(n,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:r,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){var n=t.getItemVisual(e,"symbolSize");return rt(n)?n.slice():[+n,+n]},e}(Wr);function kA(t,e){this.parent.drift(t,e)}var LA=DA;function PA(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function OA(t){return null==t||ut(t)||(t={isIgnore:t}),t||{}}function EA(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),hoverScale:n.get("scale"),labelStatesModels:Ud(e),cursorStyle:e.get("cursor")}}var RA=function(){function t(t){this.group=new Wr,this._SymbolCtor=t||LA}return t.prototype.updateData=function(t,e){e=OA(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=EA(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add((function(i){var r=u(i);if(PA(t,r,i,e)){var a=new o(t,i,s,l);a.setPosition(r),t.setItemGraphicEl(i,a),n.add(a)}})).update((function(c,h){var d=r.getItemGraphicEl(h),p=u(c);if(PA(t,p,c,e)){if(d){d.updateData(t,c,s,l);var f={x:p[0],y:p[1]};a?d.attr(f):Md(d,f,i)}else d=new o(t,c),d.setPosition(p);n.add(d),t.setItemGraphicEl(c,d)}else n.remove(d)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}))})).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.isPersistent=function(){return!0},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=EA(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}n=OA(n);for(var r=t.start;r<t.end;r++){var o=e.getItemLayout(r);if(PA(e,o,r,n)){var a=new this._SymbolCtor(e,r,this._seriesScope);a.traverse(i),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(r,a)}}},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl((function(t){t.fadeOut((function(){e.remove(t)}))})):e.removeAll()},t}(),NA=RA;function zA(t,e,n){var i=t.getBaseAxis(),r=t.getOtherAxis(i),o=BA(r,n),a=i.dim,s=r.dim,l=e.mapDimension(s),u=e.mapDimension(a),c="x"===s||"radius"===s?1:0,h=q(t.dimensions,(function(t){return e.mapDimension(t)})),d=!1,p=e.getCalculationInfo("stackResultDimension");return KM(e,h[0])&&(d=!0,h[0]=p),KM(e,h[1])&&(d=!0,h[1]=p),{dataDimsForPoint:h,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function BA(t,e){var n=0,i=t.scale.getExtent();return"start"===e?n=i[0]:"end"===e?n=i[1]:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}function VA(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}var FA="undefined"!==typeof Float32Array,HA=FA?Float32Array:Array;function $A(t){return rt(t)?FA?new Float32Array(t):t:new HA(t)}function WA(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}function GA(t,e,n,i,r,o,a,s){for(var l=WA(t,e),u=[],c=[],h=[],d=[],p=[],f=[],g=[],v=zA(r,e,a),m=t.getLayout("points")||[],y=e.getLayout("points")||[],x=0;x<l.length;x++){var b=l[x],_=!0,w=void 0,S=void 0;switch(b.cmd){case"=":w=2*b.idx,S=2*b.idx1;var M=m[w],I=m[w+1],C=y[S],T=y[S+1];(isNaN(M)||isNaN(I))&&(M=C,I=T),u.push(M,I),c.push(C,T),h.push(n[w],n[w+1]),d.push(i[S],i[S+1]),g.push(e.getRawIndex(b.idx1));break;case"+":var A=b.idx,D=v.dataDimsForPoint,k=r.dataToPoint([e.get(D[0],A),e.get(D[1],A)]);S=2*A,u.push(k[0],k[1]),c.push(y[S],y[S+1]);var L=VA(v,r,e,A);h.push(L[0],L[1]),d.push(i[S],i[S+1]),g.push(e.getRawIndex(A));break;case"-":_=!1}_&&(p.push(b),f.push(f.length))}f.sort((function(t,e){return g[t]-g[e]}));var P=u.length,O=$A(P),E=$A(P),R=$A(P),N=$A(P),z=[];for(x=0;x<f.length;x++){var B=f[x],V=2*x,F=2*B;O[V]=u[F],O[V+1]=u[F+1],E[V]=c[F],E[V+1]=c[F+1],R[V]=h[F],R[V+1]=h[F+1],N[V]=d[F],N[V+1]=d[F+1],z[x]=p[B]}return{current:O,next:E,stackedOnCurrent:R,stackedOnNext:N,status:z}}var jA=Math.min,YA=Math.max;function XA(t,e){return isNaN(t)||isNaN(e)}function UA(t,e,n,i,r,o,a,s,l){for(var u,c,h,d,p,f,g=n,v=0;v<i;v++){var m=e[2*g],y=e[2*g+1];if(g>=r||g<0)break;if(XA(m,y)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](m,y),h=m,d=y;else{var x=m-u,b=y-c;if(x*x+b*b<.5){g+=o;continue}if(a>0){var _=g+o,w=e[2*_],S=e[2*_+1],M=v+1;if(l)while(XA(w,S)&&M<i)M++,_+=o,w=e[2*_],S=e[2*_+1];var I=.5,C=0,T=0,A=void 0,D=void 0;if(M>=i||XA(w,S))p=m,f=y;else{C=w-u,T=S-c;var k=m-u,L=w-m,P=y-c,O=S-y,E=void 0,R=void 0;"x"===s?(E=Math.abs(k),R=Math.abs(L),p=m-E*a,f=y,A=m+E*a,D=y):"y"===s?(E=Math.abs(P),R=Math.abs(O),p=m,f=y-E*a,A=m,D=y+E*a):(E=Math.sqrt(k*k+P*P),R=Math.sqrt(L*L+O*O),I=R/(R+E),p=m-C*a*(1-I),f=y-T*a*(1-I),A=m+C*a*I,D=y+T*a*I,A=jA(A,YA(w,m)),D=jA(D,YA(S,y)),A=YA(A,jA(w,m)),D=YA(D,jA(S,y)),C=A-m,T=D-y,p=m-C*E/R,f=y-T*E/R,p=jA(p,YA(u,m)),f=jA(f,YA(c,y)),p=YA(p,jA(u,m)),f=YA(f,jA(c,y)),C=m-p,T=y-f,A=m+C*R/E,D=y+T*R/E)}t.bezierCurveTo(h,d,p,f,m,y),h=A,d=D}else t.lineTo(m,y)}u=m,c=y,g+=o}return v}var ZA=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),qA=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return v(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new ZA},e.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;r>0;r--)if(!XA(n[2*r-2],n[2*r-1]))break;for(;i<r;i++)if(!XA(n[2*i],n[2*i+1]))break}while(i<r)i+=UA(t,n,i,r,r,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},e.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,r=this.path,o=r.data,a=dl.CMD,s="x"===e,l=[],u=0;u<o.length;){var c=o[u++],h=void 0,d=void 0,p=void 0,f=void 0,g=void 0,v=void 0,m=void 0;switch(c){case a.M:n=o[u++],i=o[u++];break;case a.L:if(h=o[u++],d=o[u++],m=s?(t-n)/(h-n):(t-i)/(d-i),m<=1&&m>=0){var y=s?(d-i)*m+i:(h-n)*m+n;return s?[t,y]:[y,t]}n=h,i=d;break;case a.C:h=o[u++],d=o[u++],p=o[u++],f=o[u++],g=o[u++],v=o[u++];var x=s?xs(n,h,p,g,t,l):xs(i,d,f,v,t,l);if(x>0)for(var b=0;b<x;b++){var _=l[b];if(_<=1&&_>=0){y=s?ms(i,d,f,v,_):ms(n,h,p,g,_);return s?[t,y]:[y,t]}}n=g,i=v;break}}},e}(Bl),KA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e}(ZA),JA=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return v(e,t),e.prototype.getDefaultShape=function(){return new KA},e.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0;o--)if(!XA(n[2*o-2],n[2*o-1]))break;for(;r<o;r++)if(!XA(n[2*r],n[2*r+1]))break}while(r<o){var s=UA(t,n,r,o,o,1,e.smooth,a,e.connectNulls);UA(t,i,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}},e}(Bl);function QA(t,e,n,i,r){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||2;a-=c/2,s-=c/2,l+=c,u+=c,a=Math.floor(a),l=Math.round(l);var h=new eu({shape:{x:a,y:s,width:l,height:u}});if(e){var d=t.getBaseAxis(),p=d.isHorizontal(),f=d.inverse;p?(f&&(h.shape.x+=l),h.shape.width=0):(f||(h.shape.y+=u),h.shape.height=0);var g="function"===typeof r?function(t){r(t,h)}:null;Id(h,{shape:{width:l,height:u,x:a,y:s}},n,null,i,g)}return h}function tD(t,e,n){var i=t.getArea(),r=so(i.r0,1),o=so(i.r,1),a=new yh({shape:{cx:so(t.cx,1),cy:so(t.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){var s="angle"===t.getBaseAxis().dim;s?a.shape.endAngle=i.startAngle:a.shape.r=r,Id(a,{shape:{endAngle:i.endAngle,r:o}},n)}return a}function eD(t,e,n,i,r){return t?"polar"===t.type?tD(t,e,n):"cartesian2d"===t.type?QA(t,e,n,i,r):null:null}function nD(t,e){return t.type===e}function iD(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function rD(t){for(var e=1/0,n=1/0,i=-1/0,r=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),r=Math.max(s,r))}return[[e,n],[i,r]]}function oD(t,e){var n=rD(t),i=n[0],r=n[1],o=rD(e),a=o[0],s=o[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]))}function aD(t){return"number"===typeof t?t:t?.5:0}function sD(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),r=$A(2*i),o=0;o<i;o++){var a=VA(n,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}function lD(t,e,n){for(var i=e.getBaseAxis(),r="x"===i.dim||"radius"===i.dim?0:1,o=[],a=0,s=[],l=[],u=[];a<t.length-2;a+=2)switch(u[0]=t[a+2],u[1]=t[a+3],l[0]=t[a],l[1]=t[a+1],o.push(l[0],l[1]),n){case"end":s[r]=u[r],s[1-r]=l[1-r],o.push(s[0],s[1]);break;case"middle":var c=(l[r]+u[r])/2,h=[];s[r]=h[r]=c,s[1-r]=l[1-r],h[1-r]=u[1-r],o.push(s[0],s[1]),o.push(h[0],h[1]);break;default:s[r]=l[r],s[1-r]=u[1-r],o.push(s[0],s[1])}return o.push(t[a++],t[a++]),o}function uD(t,e){var n=t.getVisual("visualMeta");if(n&&n.length&&t.count()&&"cartesian2d"===e.type){for(var i,r,o=n.length-1;o>=0;o--){var a=n[o].dimension,s=t.dimensions[a],l=t.getDimensionInfo(s);if(i=l&&l.coordDim,"x"===i||"y"===i){r=n[o];break}}if(r){var u=e.getAxis(i),c=q(r.stops,(function(t){return{offset:0,coord:u.toGlobalCoord(u.dataToCoord(t.value,!0)),color:t.color}})),h=c.length,d=r.outerColors.slice();h&&c[0].coord>c[h-1].coord&&(c.reverse(),d.reverse());var p=10,f=c[0].coord-p,g=c[h-1].coord+p,v=g-f;if(v<.001)return"transparent";Z(c,(function(t){t.offset=(t.coord-f)/v})),c.push({offset:h?c[h-1].offset:.5,color:d[1]||"transparent"}),c.unshift({offset:h?c[0].offset:.5,color:d[0]||"transparent"});var m=new Zh(0,0,0,0,c,!0);return m[i]=f,m[i+"2"]=g,m}}}function cD(t,e,n){var i=t.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&(!r||!hD(o,e))){var a=e.mapDimension(o.dim),s={};return Z(o.getViewLabels(),(function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function hD(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(1.5*LA.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return!1;return!0}function dD(t,e){return isNaN(t)||isNaN(e)}function pD(t){for(var e=t.length/2;e>0;e--)if(!dD(t[2*e-2],t[2*e-1]))break;return e-1}function fD(t,e){return[t[2*e],t[2*e+1]]}function gD(t,e,n){for(var i,r,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(r=t[2*u+a],!isNaN(r)&&!isNaN(t[2*u+1-a]))if(0!==u){if(i<=e&&r>=e||i>=e&&r<=e){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(e-i)/(r-i)}}function vD(t,e,n,i){if(nD(e,"cartesian2d")){var r=i.getModel("endLabel"),o=r.get("show"),a=r.get("valueAnimation"),s=i.getData(),l={lastFrameIndex:0},u=o?function(n,i){t._endLabelOnDuring(n,i,s,l,a,r,e)}:null,c=e.getBaseAxis().isHorizontal(),h=QA(e,n,i,(function(){var e=t._endLabel;e&&n&&null!=l.originalX&&e.attr({x:l.originalX,y:l.originalY})}),u);if(!i.get("clip",!0)){var d=h.shape,p=Math.max(d.width,d.height);c?(d.y-=p,d.height+=2*p):(d.x-=p,d.width+=2*p)}return u&&u(1,h),h}return tD(e,n,i)}function mD(t,e){var n=e.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,o=i?r?"right":"left":"center",a=i?"middle":r?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}var yD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e.prototype.init=function(){var t=new Wr,e=new NA;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},e.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem,o=this.group,a=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),u=a.getLayout("points")||[],c="polar"===r.type,h=this._coordSys,d=this._symbolDraw,p=this._polyline,f=this._polygon,g=this._lineGroup,v=t.get("animation"),m=!l.isEmpty(),y=l.get("origin"),x=zA(r,a,y),b=m&&sD(r,a,x),_=t.get("showSymbol"),w=_&&!c&&cD(t,a,r),S=this._data;S&&S.eachItemGraphicEl((function(t,e){t.__temp&&(o.remove(t),S.setItemGraphicEl(e,null))})),_||d.remove(),o.add(g);var M,I=!c&&t.get("step");r&&r.getArea&&t.get("clip",!0)&&(M=r.getArea(),null!=M.width?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var C=uD(a,r)||a.getVisual("style")[a.getVisual("drawType")];p&&h.type===r.type&&I===this._step?(m&&!f?f=this._newPolygon(u,b):f&&!m&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(t,r,Df(C)),g.setClipPath(vD(this,r,!1,t)),_&&d.updateData(a,{isIgnore:w,clipShape:M,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),iD(this._stackedOnPoints,b)&&iD(this._points,u)||(v?this._doUpdateAnimation(a,b,r,n,I,y):(I&&(u=lD(u,r,I),b&&(b=lD(b,r,I))),p.setShape({points:u}),f&&f.setShape({points:u,stackedOnPoints:b})))):(_&&d.updateData(a,{isIgnore:w,clipShape:M,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),v&&this._initSymbolLabelAnimation(a,r,M),I&&(u=lD(u,r,I),b&&(b=lD(b,r,I))),p=this._newPolyline(u),m&&(f=this._newPolygon(u,b)),c||this._initOrUpdateEndLabel(t,r,Df(C)),g.setClipPath(vD(this,r,!0,t)));var T=t.get(["emphasis","focus"]),A=t.get(["emphasis","blurScope"]);if(p.useStyle(W(s.getLineStyle(),{fill:"none",stroke:C,lineJoin:"bevel"})),bc(p,t,"lineStyle"),p.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])){var D=p.getState("emphasis").style;D.lineWidth=+p.style.lineWidth+1}vu(p).seriesIndex=t.seriesIndex,vc(p,T,A);var k=aD(t.get("smooth")),L=t.get("smoothMonotone"),P=t.get("connectNulls");if(p.setShape({smooth:k,smoothMonotone:L,connectNulls:P}),f){var O=a.getCalculationInfo("stackedOnSeries"),E=0;f.useStyle(W(l.getAreaStyle(),{fill:C,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),O&&(E=aD(O.get("smooth"))),f.setShape({smooth:k,stackedOnSmooth:E,smoothMonotone:L,connectNulls:P}),bc(f,t,"areaStyle"),vu(f).seriesIndex=t.seriesIndex,vc(f,T,A)}var R=function(t){i._changePolyState(t)};a.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=R)})),this._polyline.onHoverStateChange=R,this._data=a,this._coordSys=r,this._stackedOnPoints=b,this._points=u,this._step=I,this._valueOrigin=y},e.prototype.dispose=function(){},e.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=Qo(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel"),h=t.get("z");s=new LA(r,o),s.x=l,s.y=u,s.setZ(c,h);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=h,d.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else vy.prototype.highlight.call(this,t,e,n,i)},e.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=Qo(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else vy.prototype.downplay.call(this,t,e,n,i)},e.prototype._changePolyState=function(t){var e=this._polygon;Gu(this._polyline,t),e&&Gu(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new qA({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new JA({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");"function"===typeof l&&(l=l(null));var u=s.get("animationDelay")||0,c="function"===typeof u?u(null):u;t.eachItemGraphicEl((function(t,o){var s=t;if(s){var h=[t.x,t.y],d=void 0,p=void 0,f=void 0;if(n)if(r){var g=n,v=e.pointToCoord(h);i?(d=g.startAngle,p=g.endAngle,f=-v[1]/180*Math.PI):(d=g.r0,p=g.r,f=v[0])}else{var m=n;i?(d=m.x,p=m.x+m.width,f=t.x):(d=m.y+m.height,p=m.y,f=t.y)}var y=p===d?0:(f-d)/(p-d);a&&(y=1-y);var x="function"===typeof u?u(o):l*y+c,b=s.getSymbolPath(),_=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,delay:x}),_&&_.animateFrom({style:{opacity:0}},{duration:300,delay:x}),b.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(i.get("show")){var r=t.getData(),o=this._polyline,a=this._endLabel;a||(a=this._endLabel=new gu({z2:200}),a.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var s=pD(r.getLayout("points"));s>=0&&(Xd(o,Ud(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:s,defaultText:function(t,e,n){return null!=n?AA(r,n):TA(r,t)},enableTextSetter:!0},mD(i,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),d=o.get("precision"),p=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),v=f.inverse,m=e.shape,y=v?g?m.x:m.y+m.height:g?m.x+m.width:m.y,x=(g?p:0)*(v?-1:1),b=(g?0:-p)*(v?-1:1),_=g?"x":"y",w=gD(u,y,_),S=w.range,M=S[1]-S[0],I=void 0;if(M>=1){if(M>1&&!h){var C=fD(u,S[0]);s.attr({x:C[0]+x,y:C[1]+b}),r&&(I=c.getRawValue(S[0]))}else{C=l.getPointOn(y,_);C&&s.attr({x:C[0]+x,y:C[1]+b});var T=c.getRawValue(S[0]),A=c.getRawValue(S[1]);r&&(I=ha(n,d,T,A,w.t))}i.lastFrameIndex=S[0]}else{var D=1===t||i.lastFrameIndex>0?S[0]:0;C=fD(u,D);r&&(I=c.getRawValue(D)),s.attr({x:C[0]+x,y:C[1]+b})}r&&rp(s).setLabelText(I)}},e.prototype._doUpdateAnimation=function(t,e,n,i,r,o){var a=this._polyline,s=this._polygon,l=t.hostModel,u=GA(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,o),c=u.current,h=u.stackedOnCurrent,d=u.next,p=u.stackedOnNext;if(r&&(c=lD(u.current,n,r),h=lD(u.stackedOnCurrent,n,r),d=lD(u.next,n,r),p=lD(u.stackedOnNext,n,r)),oD(c,d)>3e3||s&&oD(h,p)>3e3)return a.setShape({points:d}),void(s&&s.setShape({points:d,stackedOnPoints:p}));a.shape.__points=u.current,a.shape.points=c;var f={shape:{points:d}};u.current!==c&&(f.shape.__points=u.next),a.stopAnimation(),Md(a,f,l),s&&(s.setShape({points:c,stackedOnPoints:h}),s.stopAnimation(),Md(s,{shape:{stackedOnPoints:p}},l),a.shape.points!==s.shape.points&&(s.shape.points=a.shape.points));for(var g=[],v=u.status,m=0;m<v.length;m++){var y=v[m].cmd;if("="===y){var x=t.getItemGraphicEl(v[m].idx1);x&&g.push({el:x,ptIdx:m})}}a.animators&&a.animators.length&&a.animators[0].during((function(){s&&s.dirtyShape();for(var t=a.shape.__points,e=0;e<g.length;e++){var n=g[e].el,i=2*g[e].ptIdx;n.x=t[i],n.y=t[i+1],n.markRedraw()}}))},e.prototype.remove=function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(t,i){t.__temp&&(e.remove(t),n.setItemGraphicEl(i,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(vy),xD=yD;function bD(t,e){return{seriesType:t,plan:sy(),reset:function(t){var n=t.getData(),i=t.coordinateSystem,r=t.pipelineContext,o=e||r.large;if(i){var a=q(i.dimensions,(function(t){return n.mapDimension(t)})).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");KM(n,a[0])&&(a[0]=l),KM(n,a[1])&&(a[1]=l);var u=n.getDimensionInfo(a[0]),c=n.getDimensionInfo(a[1]),h=u&&u.index,d=c&&c.index;return s&&{progress:function(t,e){for(var n=t.end-t.start,r=o&&$A(n*s),a=[],l=[],u=t.start,c=0;u<t.end;u++){var p=void 0;if(1===s){var f=e.getByDimIdx(h,u);p=i.dataToPoint(f,null,l)}else a[0]=e.getByDimIdx(h,u),a[1]=e.getByDimIdx(d,u),p=i.dataToPoint(a,null,l);o?(r[c++]=p[0],r[c++]=p[1]):e.setItemLayout(u,p.slice())}o&&e.setLayout("points",r)}}}}}}var _D={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},wD=function(t){return Math.round(t.length/2)};function SD(t){return{seriesType:t,reset:function(t,e,n){var i=t.getData(),r=t.get("sampling"),o=t.coordinateSystem,a=i.count();if(a>10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(u[1]-u[0])*(c||1),d=Math.round(a/h);if(d>1){"lttb"===r&&t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/d));var p=void 0;"string"===typeof r?p=_D[r]:"function"===typeof r&&(p=r),p&&t.setData(i.downSample(i.mapDimension(l.dim),1/d,p,wD))}}}}}function MD(t){t.registerChartView(xD),t.registerSeriesModel(CA),t.registerLayout(bD("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,SD("line"))}var ID=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.getInitialData=function(t,e){return nI(this.getSource(),this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t){var e=this.coordinateSystem;if(e){var n=e.dataToPoint(e.clampData(t)),i=this.getData(),r=i.getLayout("offset"),o=i.getLayout("size"),a=e.getBaseAxis().isHorizontal()?0:1;return n[a]+=r+o/2,n}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(ry);ry.registerClass(ID);var CD=ID,TD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.getInitialData=function(){return nI(this.getSource(),this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Sp(CD.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(CD),AD=TD,DD=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),kD=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return v(e,t),e.prototype.getDefaultShape=function(){return new DD},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-r),s=r+a,l=e.startAngle,u=e.endAngle,c=e.clockwise,h=Math.cos(l),d=Math.sin(l),p=Math.cos(u),f=Math.sin(u),g=c?u-l<2*Math.PI:l-u<2*Math.PI;g&&(t.moveTo(h*r+n,d*r+i),t.arc(h*s+n,d*s+i,a,-Math.PI+l,l,!c)),t.arc(n,i,o,l,u,!c),t.moveTo(p*o+n,f*o+i),t.arc(p*s+n,f*s+i,a,u-2*Math.PI,u-Math.PI,!c),0!==r&&(t.arc(n,i,r,u,l,c),t.moveTo(h*r+n,f*r+i)),t.closePath()},e}(Bl),LD=kD,PD=[0,0],OD=Math.max,ED=Math.min;function RD(t,e){var n=t.getArea&&t.getArea();if(nD(t,"cartesian2d")){var i=t.getBaseAxis();if("category"!==i.type||!i.onBand){var r=e.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}var ND=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return v(e,t),e.prototype.render=function(t,e,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var r=t.get("coordinateSystem");("cartesian2d"===r||"polar"===r)&&(this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,i))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._incrementalRenderLarge(t,e)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,n,i){var r,o=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?r=u.isHorizontal():"polar"===l.type&&(r="angle"===u.dim);var c=t.isAnimationEnabled()?t:null,h=VD(t,l);h&&this._enableRealtimeSort(h,a,n);var d=t.get("clip",!0)||h,p=RD(l,a);o.removeClipPath();var f=t.get("roundCap",!0),g=t.get("showBackground",!0),v=t.getModel("backgroundStyle"),m=v.get("borderRadius")||0,y=[],x=this._backgroundEls,b=i&&i.isInitSort,_=i&&"changeAxisOrder"===i.type;function w(t){var e=HD[l.type](a,t),n=QD(l,r,e);return n.useStyle(v.getItemStyle()),"cartesian2d"===l.type&&n.setShape("r",m),y[t]=n,n}a.diff(s).add((function(e){var n=a.getItemModel(e),i=HD[l.type](a,e,n);if(g&&w(e),a.hasValue(e)){var s=!1;d&&(s=zD[l.type](p,i));var v=BD[l.type](t,a,e,i,r,c,u.model,!1,f);WD(v,a,e,n,i,t,r,"polar"===l.type),b?v.attr({shape:i}):h?FD(h,c,v,i,e,r,!1,!1):Id(v,{shape:i},t,e),a.setItemGraphicEl(e,v),o.add(v),v.ignore=s}})).update((function(e,n){var i=a.getItemModel(e),S=HD[l.type](a,e,i);if(g){var M=void 0;0===x.length?M=w(n):(M=x[n],M.useStyle(v.getItemStyle()),"cartesian2d"===l.type&&M.setShape("r",m),y[e]=M);var I=HD[l.type](a,e),C=JD(r,I,l);Md(M,{shape:C},c,e)}var T=s.getItemGraphicEl(n);if(!a.hasValue(e))return o.remove(T),void(T=null);var A=!1;d&&(A=zD[l.type](p,S),A&&o.remove(T)),T||(T=BD[l.type](t,a,e,S,r,c,u.model,!!T,f)),_||WD(T,a,e,i,S,t,r,"polar"===l.type),b?T.attr({shape:S}):h?FD(h,c,T,S,e,r,!0,_):Md(T,{shape:S},t,e,null),a.setItemGraphicEl(e,T),T.ignore=A,o.add(T)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&Ad(n,t,e)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new Wr);S.removeAll();for(var M=0;M<y.length;++M)S.add(y[M]);o.add(S),this._backgroundEls=y,this._data=a},e.prototype._renderLarge=function(t,e,n){this._clear(),XD(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),XD(e,this.group,!0)},e.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)?eD(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},e.prototype._enableRealtimeSort=function(t,e,n){var i=this;if(e.count()){var r=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(e,t,n),this._isFirstFrame=!1;else{var o=function(t){var n=e.getItemGraphicEl(t);if(n){var i=n.shape;return(r.isHorizontal()?Math.abs(i.height):Math.abs(i.width))||0}return 0};this._onRendered=function(){i._updateSortWithinSameData(e,o,r,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,e,n){var i=[];return t.each(t.mapDimension(e.dim),(function(t,e){var r=n(e);r=null==r?NaN:r,i.push({dataIndex:e,mappedValue:r,ordinalNumber:t})})),i.sort((function(t,e){return e.mappedValue-t.mappedValue})),{ordinalNumbers:q(i,(function(t){return t.ordinalNumber}))}},e.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var i=n.scale,r=t.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=i.getOrdinalMeta().categories.length;a<s;++a){var l=t.rawIndexOf(r,i.getRawOrdinalNumber(a)),u=l<0?Number.MIN_VALUE:e(t.indexOfRawIndex(l));if(u>o)return!0;o=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(t.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,i){if(this._isOrderChangedWithinSameData(t,e,n)){var r=this._dataSort(t,n,e);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},e.prototype._dispatchInitSort=function(t,e,n){var i=e.baseAxis,r=this._dataSort(t,i,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r,animation:{duration:0}})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){Ad(e,t,vu(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(vy),zD={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var r=t.x+t.width,o=t.y+t.height,a=OD(e.x,t.x),s=ED(e.x+e.width,r),l=OD(e.y,t.y),u=ED(e.y+e.height,o),c=s<a,h=u<l;return e.x=c&&a>r?s:a,e.y=h&&l>o?u:l,e.width=c?0:s-a,e.height=h?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}var r=ED(e.r,t.r),o=OD(e.r0,t.r0);e.r=r,e.r0=o;var a=r-o<0;if(n<0){i=e.r;e.r=e.r0,e.r0=i}return a}},BD={cartesian2d:function(t,e,n,i,r,o,a,s,l){var u=new eu({shape:$({},i),z2:1});if(u.__dataIndex=n,u.name="item",o){var c=u.shape,h=r?"height":"width";c[h]=0}return u},polar:function(t,e,n,i,r,o,a,s,l){var u=i.startAngle<i.endAngle,c=!r&&l?LD:yh,h=new c({shape:W({clockwise:u},i),z2:1});if(h.name="item",o){var d=h.shape,p=r?"r":"endAngle",f={};d[p]=r?0:i.startAngle,f[p]=i[p],(s?Md:Id)(h,{shape:f},o)}return h}};function VD(t,e){var n=t.get("realtimeSort",!0),i=e.getBaseAxis();if(n&&"category"===i.type&&"cartesian2d"===e.type)return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}function FD(t,e,n,i,r,o,a,s){var l,u;o?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?Md:Id)(n,{shape:l},e,r,null);var c=e?t.baseAxis.model:null;(a?Md:Id)(n,{shape:u},c,r)}var HD={cartesian2d:function(t,e,n){var i=t.getItemLayout(e),r=n?GD(n,i):0,o=i.width>0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle}}};function $D(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}function WD(t,e,n,i,r,o,a,s){var l=e.getItemVisual(n,"style");s||t.setShape("r",i.get(["itemStyle","borderRadius"])||0),t.useStyle(l);var u=i.getShallow("cursor");if(u&&t.attr("cursor",u),!s){var c=a?r.height>0?"bottom":"top":r.width>0?"left":"right",h=Ud(i);Xd(t,h,{labelFetcher:o,labelDataIndex:n,defaultText:TA(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var d=t.getTextContent();op(d,h,o.getRawValue(n),(function(t){return AA(e,t)}))}var p=i.getModel(["emphasis"]);vc(t,p.get("focus"),p.get("blurScope")),bc(t,i),$D(r)&&(t.style.fill="none",t.style.stroke="none",Z(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}function GD(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var i=t.get(["itemStyle","borderWidth"])||0,r=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,r,o)}var jD=function(){function t(){}return t}(),YD=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return v(e,t),e.prototype.getDefaultShape=function(){return new jD},e.prototype.buildPath=function(t,e){for(var n=e.points,i=this.__startPoint,r=this.__baseDimIdx,o=0;o<n.length;o+=2)i[r]=n[o+r],t.moveTo(i[0],i[1]),t.lineTo(n[o],n[o+1])},e}(Bl);function XD(t,e,n){var i=t.getData(),r=[],o=i.getLayout("valueAxisHorizontal")?1:0;r[1-o]=i.getLayout("valueAxisStart");var a=i.getLayout("largeDataIndices"),s=i.getLayout("barWidth"),l=t.getModel("backgroundStyle"),u=t.get("showBackground",!0);if(u){var c=i.getLayout("largeBackgroundPoints"),h=[];h[1-o]=i.getLayout("backgroundStart");var d=new YD({shape:{points:c},incremental:!!n,silent:!0,z2:0});d.__startPoint=h,d.__baseDimIdx=o,d.__largeDataIndices=a,d.__barWidth=s,KD(d,l,i),e.add(d)}var p=new YD({shape:{points:i.getLayout("largePoints")},incremental:!!n});p.__startPoint=r,p.__baseDimIdx=o,p.__largeDataIndices=a,p.__barWidth=s,e.add(p),qD(p,t,i),vu(p).seriesIndex=t.seriesIndex,t.get("silent")||(p.on("mousedown",UD),p.on("mousemove",UD))}var UD=by((function(t){var e=this,n=ZD(e,t.offsetX,t.offsetY);vu(e).dataIndex=n>=0?n:null}),30,!1);function ZD(t,e,n){var i=t.__baseDimIdx,r=1-i,o=t.shape.points,a=t.__largeDataIndices,s=Math.abs(t.__barWidth/2),l=t.__startPoint[r];PD[0]=e,PD[1]=n;for(var u=PD[i],c=PD[1-i],h=u-s,d=u+s,p=0,f=o.length/2;p<f;p++){var g=2*p,v=o[g+i],m=o[g+r];if(v>=h&&v<=d&&(l<=m?c>=l&&c<=m:c>=m&&c<=l))return a[p]}return-1}function qD(t,e,n){var i=n.getVisual("style");t.useStyle($({},i)),t.style.fill=null,t.style.stroke=i.fill,t.style.lineWidth=n.getLayout("barWidth")}function KD(t,e,n){var i=e.get("borderColor")||e.get("color"),r=e.getItemStyle();t.useStyle(r),t.style.fill=null,t.style.stroke=i,t.style.lineWidth=n.getLayout("barWidth")}function JD(t,e,n){if(nD(n,"cartesian2d")){var i=e,r=n.getArea();return{x:t?i.x:r.x,y:t?r.y:i.y,width:t?i.width:r.width,height:t?r.height:i.height}}r=n.getArea();var o=e;return{cx:r.cx,cy:r.cy,r0:t?r.r0:o.r0,r:t?r.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}function QD(t,e,n){var i="polar"===t.type?yh:eu;return new i({shape:JD(e,n,t),silent:!0,z2:0})}var tk=ND;function ek(t){t.registerChartView(tk),t.registerSeriesModel(AD),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,it(PI,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,OI),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,SD("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)}))}))}var nk=2*Math.PI,ik=Math.PI/180;function rk(t,e){return zf(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function ok(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),i=e.mapDimension("value"),r=rk(t,n),o=t.get("center"),a=t.get("radius");rt(a)||(a=[0,a]),rt(o)||(o=[o,o]);var s=ao(r.width,n.getWidth()),l=ao(r.height,n.getHeight()),u=Math.min(s,l),c=ao(o[0],s)+r.x,h=ao(o[1],l)+r.y,d=ao(a[0],u/2),p=ao(a[1],u/2),f=-t.get("startAngle")*ik,g=t.get("minAngle")*ik,v=0;e.each(i,(function(t){!isNaN(t)&&v++}));var m=e.getSum(i),y=Math.PI/(m||v)*2,x=t.get("clockwise"),b=t.get("roseType"),_=t.get("stillShowZeroSum"),w=e.getDataExtent(i);w[0]=0;var S=nk,M=0,I=f,C=x?1:-1;if(e.setLayout({viewRect:r,r:p}),e.each(i,(function(t,n){var i;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:x,cx:c,cy:h,r0:d,r:b?NaN:p});else{i="area"!==b?0===m&&_?y:t*y:nk/v,i<g?(i=g,S-=g):M+=t;var r=I+C*i;e.setItemLayout(n,{angle:i,startAngle:I,endAngle:r,clockwise:x,cx:c,cy:h,r0:d,r:b?oo(t,w,[d,p]):p}),I=r}})),S<nk&&v)if(S<=.001){var T=nk/v;e.each(i,(function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n);i.angle=T,i.startAngle=f+C*n*T,i.endAngle=f+C*(n+1)*T}}))}else y=S/M,I=f,e.each(i,(function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n),r=i.angle===g?g:t*y;i.startAngle=I,i.endAngle=I+C*r,I+=C*r}}))}))}function ak(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var i=t.getData();i.filterSelf((function(t){for(var e=i.getName(t),r=0;r<n.length;r++)if(!n[r].isSelected(e))return!1;return!0}))}}}}var sk=Math.PI/180;function lk(t,e,n,i,r,o,a,s,l,u){if(!(t.length<2)){for(var c=t.length,h=0;h<c;h++)if("outer"===t[h].position&&"labelLine"===t[h].labelAlignTo){var d=t[h].label.x-u;t[h].linePoints[1][0]+=d,t[h].label.x=u}Bx(t,l,l+a)&&f(t)}function p(t){for(var o=t.rB,a=o*o,s=0;s<t.list.length;s++){var l=t.list[s],u=Math.abs(l.label.y-n),c=i+l.len,h=c*c,d=Math.sqrt((1-Math.abs(u*u/a))*h);l.label.x=e+(d+l.len2)*r}}function f(t){for(var o={list:[],maxY:0},a={list:[],maxY:0},s=0;s<t.length;s++)if("none"===t[s].labelAlignTo){var l=t[s],u=l.label.y>n?a:o,c=Math.abs(l.label.y-n);if(c>u.maxY){var h=l.label.x-e-l.len2*r,d=i+l.len,f=Math.abs(h)<d?Math.sqrt(c*c/(1-h*h/d/d)):d;u.rB=f,u.maxY=c}u.list.push(l)}p(o),p(a)}}function uk(t,e,n,i,r,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,d=0;d<t.length;d++){var p=t[d].label;ck(t[d])||(p.x<e?(c=Math.min(c,p.x),l.push(t[d])):(h=Math.max(h,p.x),u.push(t[d])))}lk(u,e,n,i,1,r,o,a,s,h),lk(l,e,n,i,-1,r,o,a,s,c);for(d=0;d<t.length;d++){var f=t[d];p=f.label;if(!ck(f)){var g=f.linePoints;if(g){var v="edge"===f.labelAlignTo,m=f.rect.width,y=void 0;y=v?p.x<e?g[2][0]-f.labelDistance-a-f.edgeDistance:a+r-f.edgeDistance-g[2][0]-f.labelDistance:p.x<e?p.x-a-f.bleedMargin:a+r-p.x-f.bleedMargin,y<f.rect.width&&(f.label.style.width=y,"edge"===f.labelAlignTo&&(m=y));var x=g[1][0]-g[2][0];v?p.x<e?g[2][0]=a+f.edgeDistance+m+f.labelDistance:g[2][0]=a+r-f.edgeDistance-m-f.labelDistance:(p.x<e?g[2][0]=p.x+f.labelDistance:g[2][0]=p.x-f.labelDistance,g[1][0]=g[2][0]+x),g[1][1]=g[2][1]=p.y}}}}function ck(t){return"center"===t.position}function hk(t){var e,n,i=t.getData(),r=[],o=!1,a=(t.get("minShowLabelAngle")||0)*sk,s=i.getLayout("viewRect"),l=i.getLayout("r"),u=s.width,c=s.x,h=s.y,d=s.height;function p(t){t.ignore=!0}function f(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}i.each((function(t){var s=i.getItemGraphicEl(t),h=s.shape,d=s.getTextContent(),g=s.getTextGuideLine(),v=i.getItemModel(t),m=v.getModel("label"),y=m.get("position")||v.get(["emphasis","label","position"]),x=m.get("distanceToLabelLine"),b=m.get("alignTo"),_=ao(m.get("edgeDistance"),u),w=m.get("bleedMargin"),S=v.getModel("labelLine"),M=S.get("length");M=ao(M,u);var I=S.get("length2");if(I=ao(I,u),Math.abs(h.endAngle-h.startAngle)<a)return Z(d.states,p),void(d.ignore=!0);if(f(d)){var C,T,A,D,k=(h.startAngle+h.endAngle)/2,L=Math.cos(k),P=Math.sin(k);e=h.cx,n=h.cy;var O,E="inside"===y||"inner"===y;if("center"===y)C=h.cx,T=h.cy,D="center";else{var R=(E?(h.r+h.r0)/2*L:h.r*L)+e,N=(E?(h.r+h.r0)/2*P:h.r*P)+n;if(C=R+3*L,T=N+3*P,!E){var z=R+L*(M+l-h.r),B=N+P*(M+l-h.r),V=z+(L<0?-1:1)*I,F=B;C="edge"===b?L<0?c+_:c+u-_:V+(L<0?-x:x),T=F,A=[[R,N],[z,B],[V,F]]}D=E?"center":"edge"===b?L>0?"right":"left":L>0?"left":"right"}var H=m.get("rotate");if(O="number"===typeof H?H*(Math.PI/180):H?L<0?-k+Math.PI:-k:0,o=!!O,d.x=C,d.y=T,d.rotation=O,d.setStyle({verticalAlign:"middle"}),E){d.setStyle({align:D});var $=d.states.select;$&&($.x+=d.x,$.y+=d.y)}else{var W=d.getBoundingRect().clone();W.applyTransform(d.getComputedTransform());var G=(d.style.margin||0)+2.1;W.y-=G/2,W.height+=G,r.push({label:d,labelLine:g,position:y,len:M,len2:I,minTurnAngle:S.get("minTurnAngle"),maxSurfaceAngle:S.get("maxSurfaceAngle"),surfaceNormal:new sr(L,P),linePoints:A,textAlign:D,labelDistance:x,labelAlignTo:b,edgeDistance:_,bleedMargin:w,rect:W})}s.setTextConfig({inside:E})}})),!o&&t.get("avoidLabelOverlap")&&uk(r,e,n,l,u,d,c,h);for(var g=0;g<r.length;g++){var v=r[g],m=v.label,y=v.labelLine,x=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:v.textAlign}),x&&(Z(m.states,p),m.ignore=!0);var b=m.states.select;b&&(b.x+=m.x,b.y+=m.y)}if(y){var _=v.linePoints;x||!_?(Z(y.states,p),y.ignore=!0):(Dx(_,v.minTurnAngle),kx(_,v.surfaceNormal,v.maxSurfaceAngle),y.setShape({points:_}),m.__hostTarget.textGuideLineConfig={anchor:new sr(_[0][0],_[0][1])})}}}function dk(t,e){var n=t.get("borderRadius");return null==n?null:(rt(n)||(n=[n,n]),{innerCornerRadius:Ar(n[0],e.r0),cornerRadius:Ar(n[1],e.r)})}var pk=function(t){function e(e,n,i){var r=t.call(this)||this;r.z2=2;var o=new gu;return r.setTextContent(o),r.updateData(e,n,i,!0),r}return v(e,t),e.prototype.updateData=function(t,e,n,i){var r=this,o=t.hostModel,a=t.getItemModel(e),s=a.getModel("emphasis"),l=t.getItemLayout(e),u=$(dk(a.getModel("itemStyle"),l)||{},l);if(isNaN(u.startAngle))r.setShape(u);else{if(i){r.setShape(u);var c=o.getShallow("animationType");"scale"===c?(r.shape.r=l.r0,Id(r,{shape:{r:l.r}},o,e)):null!=n?(r.setShape({startAngle:n,endAngle:n}),Id(r,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,e)):(r.shape.endAngle=l.startAngle,Md(r,{shape:{endAngle:l.endAngle}},o,e))}else Md(r,{shape:u},o,e);r.useStyle(t.getItemVisual(e,"style")),bc(r,a);var h=(l.startAngle+l.endAngle)/2,d=o.get("selectedOffset"),p=Math.cos(h)*d,f=Math.sin(h)*d,g=a.getShallow("cursor");g&&r.attr("cursor",g),this._updateLabel(o,t,e),r.ensureState("emphasis").shape=m({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},dk(s.getModel("itemStyle"),l)),$(r.ensureState("select"),{x:p,y:f,shape:dk(a.getModel(["select","itemStyle"]),l)}),$(r.ensureState("blur"),{shape:dk(a.getModel(["blur","itemStyle"]),l)});var v=r.getTextGuideLine(),y=r.getTextContent();v&&$(v.ensureState("select"),{x:p,y:f}),$(y.ensureState("select"),{x:p,y:f}),vc(this,s.get("focus"),s.get("blurScope"))}},e.prototype._updateLabel=function(t,e,n){var i=this,r=e.getItemModel(n),o=r.getModel("labelLine"),a=e.getItemVisual(n,"style"),s=a&&a.fill,l=a&&a.opacity;Xd(i,Ud(r),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var u=i.getTextContent();i.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=t.get(["label","position"]);if("outside"!==c&&"outer"!==c)i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Lh,this.setTextGuideLine(h)),Ox(this,Ex(r),{stroke:s,opacity:xt(o.get(["lineStyle","opacity"]),l,1)})}},e}(yh),fk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return v(e,t),e.prototype.init=function(){var t=new Wr;this._sectorGroup=t},e.prototype.render=function(t,e,n,i){var r,o=t.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<o.count();++u)l=o.getItemLayout(u);l&&(r=l.startAngle)}o.diff(a).add((function(t){var e=new pk(o,t,r);o.setItemGraphicEl(t,e),s.add(e)})).update((function(t,e){var n=a.getItemGraphicEl(e);n.updateData(o,t,r),n.off("click"),s.add(n),o.setItemGraphicEl(t,n)})).remove((function(e){var n=a.getItemGraphicEl(e);Ad(n,t,e)})).execute(),hk(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,e){var n=e.getData(),i=n.getItemLayout(0);if(i){var r=t[0]-i.cx,o=t[1]-i.cy,a=Math.sqrt(r*r+o*o);return a<=i.r&&a>=i.r0}},e.type="pie",e}(vy),gk=fk;function vk(t,e,n){e=rt(e)&&{coordDimensions:e}||$({},e);var i=t.getSource(),r=jM(i,e),o=new FM(r,t);return o.initData(i,n),o}var mk=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},t.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},t.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},t}(),yk=mk,xk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.useColorPaletteOnData=!0,e}return v(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new yk(nt(this.getData,this),nt(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return vk(this,{coordDimensions:["value"],encodeDefaulter:it(cg,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),i=t.prototype.getDataParams.call(this,e),r=[];return n.each(n.mapDimension("value"),(function(t){r.push(t)})),i.percent=po(r,e,n.hostModel.get("percentPrecision")),i.$vars.push("percent"),i},e.prototype._defaultLabelLine=function(t){Oo(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={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"},e}(ry),bk=xk;function _k(t){t.registerChartView(gk),t.registerSeriesModel(bk),qx("pie",t.registerAction),t.registerLayout(it(ok,"pie")),t.registerProcessor(ak("pie"))}var wk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return v(e,t),e.prototype.getInitialData=function(t,e){return nI(this.getSource(),this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.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"}}},e}(ry),Sk=wk,Mk=4,Ik=function(){function t(){}return t}(),Ck=function(t){function e(e){return t.call(this,e)||this}return v(e,t),e.prototype.getDefaultShape=function(){return new Ik},e.prototype.buildPath=function(t,e){var n=e.points,i=e.size,r=this.symbolProxy,o=r.shape,a=t.getContext?t.getContext():t,s=a&&i[0]<Mk;if(s)this._ctx=a;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)||(o.x=u-i[0]/2,o.y=c-i[1]/2,o.width=i[0],o.height=i[1],r.buildPath(t,o,!0)))}}},e.prototype.afterBrush=function(){var t=this.shape,e=t.points,n=t.size,i=this._ctx;if(i)for(var r=0;r<e.length;){var o=e[r++],a=e[r++];isNaN(o)||isNaN(a)||(this.softClipShape&&!this.softClipShape.contain(o,a)||i.fillRect(o-n[0]/2,a-n[1]/2,n[0],n[1]))}},e.prototype.findDataIndex=function(t,e){for(var n=this.shape,i=n.points,r=n.size,o=Math.max(r[0],4),a=Math.max(r[1],4),s=i.length/2-1;s>=0;s--){var l=2*s,u=i[l]-o/2,c=i[l+1]-a/2;if(t>=u&&e>=c&&t<=u+o&&e<=c+a)return s}return-1},e}(Bl),Tk=function(){function t(){this.group=new Wr}return t.prototype.isPersistent=function(){return!this._incremental},t.prototype.updateData=function(t,e){this.group.removeAll();var n=new Ck({rectHover:!0,cursor:"default"});n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,!1,e),this.group.add(n),this._incremental=null},t.prototype.updateLayout=function(t){if(!this._incremental){var e=t.getLayout("points");this.group.eachChild((function(t){if(null!=t.startIndex){var n=2*(t.endIndex-t.startIndex),i=4*t.startIndex*2;e=new Float32Array(e.buffer,i,n)}t.setShape("points",e)}))}},t.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>2e6?(this._incremental||(this._incremental=new ad({silent:!0})),this.group.add(this._incremental)):this._incremental=null},t.prototype.incrementalUpdate=function(t,e,n){var i;this._incremental?(i=new Ck,this._incremental.addDisplayable(i,!0)):(i=new Ck({rectHover:!0,cursor:"default",startIndex:t.start,endIndex:t.end}),i.incremental=!0,this.group.add(i)),i.setShape({points:e.getLayout("points")}),this._setCommon(i,e,!!this._incremental,n)},t.prototype._setCommon=function(t,e,n,i){var r=e.hostModel;i=i||{};var o=e.getVisual("symbolSize");t.setShape("size",o instanceof Array?o:[o,o]),t.softClipShape=i.clipShape||null,t.symbolProxy=db(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var a=t.shape.size[0]<Mk;t.useStyle(r.getModel("itemStyle").getItemStyle(a?["color","shadowBlur","shadowColor"]:["color"]));var s=e.getVisual("style"),l=s&&s.fill;if(l&&t.setColor(l),!n){var u=vu(t);u.seriesIndex=r.seriesIndex,t.on("mousemove",(function(e){u.dataIndex=null;var n=t.findDataIndex(e.offsetX,e.offsetY);n>=0&&(u.dataIndex=n+(t.startIndex||0))}))}},t.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},t.prototype._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()},t}(),Ak=Tk,Dk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._updateSymbolDraw(i,t);r.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData(),r=this._updateSymbolDraw(i,t);r.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var r=bD("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,i=e.pipelineContext,r=i.large;return n&&r===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=r?new Ak:new NA,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(vy),kk=Dk,Lk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.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"},e}(Xf),Pk=Lk,Ok=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ra).models[0]},e.type="cartesian2dAxis",e}(Xf);X(Ok,MC);var Ek={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)"]}}},Rk=F({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Ek),Nk=F({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}}},Ek),zk=F({scale:!0,splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Nk),Bk=W({scale:!0,logBase:10},Nk),Vk={category:Rk,value:Nk,time:zk,log:Bk},Fk={value:1,category:1,time:1,log:1};function Hk(t,e,n,i){Z(Fk,(function(r,o){var a=F(F({},Vk[o],!0),i,!0),s=function(t){function n(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var r=t.apply(this,n)||this;return r.type=e+"Axis."+o,r}return v(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=Ff(this),i=n?$f(t):{},r=e.getTheme();F(t,r.get(o+"Axis")),F(t,this.getDefaultOption()),t.type=$k(t),n&&Hf(t,i,n)},n.prototype.optionUpdated=function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=sI.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+o,n.defaultOption=a,n}(n);t.registerComponentModel(s)})),t.registerSubTypeDefaulter(e+"Axis",$k)}function $k(t){return t.type||(t.data?"category":"value")}var Wk=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return q(this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),J(this.getAxes(),(function(e){return e.scale.type===t}))},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),Gk=Wk,jk=["x","y"];function Yk(t){return"interval"===t.type||"time"===t.type}var Xk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=jk,e}return v(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(Yk(t)&&Yk(e)){var n=t.getExtent(),i=e.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,c=r[0]-n[0]*l,h=r[1]-i[0]*u,d=this._transform=[l,0,0,u,c,h];this._invTransform=Xi([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],r=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return ee(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,e)),n[1]=a.toGlobalCoord(a.dataToCoord(r,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return ee(n,t,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=r.coordToData(r.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),i=Math.min(e[0],e[1]),r=Math.max(t[0],t[1])-n,o=Math.max(e[0],e[1])-i;return new mr(n,i,r,o)},e}(Gk),Uk=Xk,Zk=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return v(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(qC),qk=Zk;function Kk(t,e,n){n=n||{};var i=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,c=i.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,f="x"===u?[h[2]-p,h[3]+p]:[h[0]-p,h[1]+p];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[d.onZero]=Math.max(Math.min(g,f[1]),f[0])}o.position=["y"===u?f[d[l]]:h[0],"x"===u?f[d[l]]:h[3]],o.rotation=Math.PI/2*("x"===u?0:1);var v={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=v[s],o.labelOffset=a?f[d[s]]-f[d.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),mt(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var m=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-m:m,o.z2=1,o}function Jk(t){return"cartesian2d"===t.get("coordinateSystem")}function Qk(t){var e={xAxisModel:null,yAxisModel:null};return Z(e,(function(n,i){var r=i.replace(/Model$/,""),o=t.getReferringComponents(r,ra).models[0];e[i]=o})),e}var tL=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=jk,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model),Z(n.x,(function(t){pC(t.scale,t.model)})),Z(n.y,(function(t){pC(t.scale,t.model)}));var i={};Z(n.x,(function(t){nL(n,"y",t,i)})),Z(n.y,(function(t){nL(n,"x",t,i)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),r=!n&&t.get("containLabel"),o=zf(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){Z(a,(function(t){var e=t.isHorizontal(),n=e?[0,o.width]:[0,o.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),rL(t,e?o.x:o.y)}))}s(),r&&(Z(a,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=yC(t);if(e){var n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]);o[n]-=e[n]+i,"top"===t.position?o.y+=e.height+i:"left"===t.position&&(o.x+=e.width+i)}}})),s()),Z(this._coordsList,(function(t){t.calcAffineTransform()}))},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}ut(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===t||r[i].getAxis("y").index===e)return r[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,r=t.xAxisModel||i&&i.getReferringComponents("xAxis",ra).models[0],o=t.yAxisModel||i&&i.getReferringComponents("yAxis",ra).models[0],a=t.gridModel,s=this._coordsList;if(i)e=i.coordinateSystem,j(s,e)<0&&(e=null);else if(r&&o)e=this.getCartesian(r.componentIndex,o.componentIndex);else if(r)n=this.getAxis("x",r.componentIndex);else if(o)n=this.getAxis("y",o.componentIndex);else if(a){var l=a.coordinateSystem;l===this&&(e=this._coordsList[0])}return{cartesian:e,axis:n}},t.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,n){var i=this,r=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(e){return function(n,i){if(eL(n,t)){var l=n.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new qk(e,fC(n),[0,0],n.get("type"),l),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=r,u.index=i,r._axesList.push(u),a[e][i]=u,s[e]++}}}this._axesMap=a,Z(a.x,(function(e,n){Z(a.y,(function(r,o){var a="x"+n+"y"+o,s=new Uk(a);s.master=i,s.model=t,i._coordsMap[a]=s,i._coordsList.push(s),s.addAxis(e),s.addAxis(r)}))}))},t.prototype._updateScale=function(t,e){function n(t,e){Z(wC(t,e.dim),(function(n){e.scale.unionExtentFromData(t,n)}))}Z(this._axesList,(function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}})),t.eachSeries((function(t){if(Jk(t)){var i=Qk(t),r=i.xAxisModel,o=i.yAxisModel;if(!eL(r,e)||!eL(o,e))return;var a=this.getCartesian(r.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),u=a.getAxis("y");"list"===s.type&&(n(s,l),n(s,u))}}),this)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return Z(this.getCartesians(),(function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(r);j(e,r)<0&&e.push(r),j(n,o)<0&&n.push(o)})),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var i=[];return e.eachComponent("grid",(function(r,o){var a=new t(r,e,n);a.name="grid_"+o,a.resize(r,n,!0),r.coordinateSystem=a,i.push(a)})),e.eachSeries((function(t){if(Jk(t)){var e=Qk(t),n=e.xAxisModel,i=e.yAxisModel,r=n.getCoordSysModel();0;var o=r.coordinateSystem;t.coordinateSystem=o.getCartesian(n.componentIndex,i.componentIndex)}})),i},t.dimensions=jk,t}();function eL(t,e){return t.getCoordSysModel()===e}function nL(t,e,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=t[e],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)iL(o[l])&&(r=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&iL(o[u])&&!i[c(o[u])]){r=o[u];break}r&&(i[c(r)]=!0)}function c(t){return t.dim+"_"+t.index}}function iL(t){return t&&"category"!==t.type&&"time"!==t.type&&gC(t)}function rL(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}var oL=tL,aL=Math.PI,sL=function(){function t(t,e){this.group=new Wr,this.opt=e,this.axisModel=t,W(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Wr({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!lL[t]},t.prototype.add=function(t){lL[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var i,r,o=vo(e-t);return mo(o)?(r=n>0?"top":"bottom",i="center"):mo(o-aL)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o<aL?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),lL={axisLine:function(t,e,n,i){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var o=e.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0];a&&(ee(s,s,a),ee(l,l,a));var u=$({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new Rh({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});c.anid="line",n.add(c);var h=e.get(["axisLine","symbol"]),d=e.get(["axisLine","symbolSize"]),p=e.get(["axisLine","symbolOffset"])||0;if("number"===typeof p&&(p=[p,p]),null!=h){"string"===typeof h&&(h=[h,h]),"string"!==typeof d&&"number"!==typeof d||(d=[d,d]);var f=d[0],g=d[1];Z([{rotate:t.rotation+Math.PI/2,offset:p[0],r:0},{rotate:t.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(e,i){if("none"!==h[i]&&null!=h[i]){var r=db(h[i],-f/2,-g/2,f,g,u.stroke,!0),o=e.r+e.offset;r.attr({rotation:e.rotate,x:s[0]+o*Math.cos(t.rotation),y:s[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(r)}}))}}},axisTickLabel:function(t,e,n,i){var r=gL(n,i,e,t),o=mL(n,i,e,t);cL(e,o,r),vL(n,i,e,t.tickDirection)},axisName:function(t,e,n,i){var r=mt(t.axisName,e.get("name"));if(r){var o,a,s=e.get("nameLocation"),l=t.nameDirection,u=e.getModel("nameTextStyle"),c=e.get("nameGap")||0,h=e.axis.getExtent(),d=h[0]>h[1]?-1:1,p=["start"===s?h[0]-d*c:"end"===s?h[1]+d*c:(h[0]+h[1])/2,pL(s)?t.labelOffset+l*c:0],f=e.get("nameRotate");null!=f&&(f=f*aL/180),pL(s)?o=sL.innerTextLayout(t.rotation,null!=f?f:t.rotation,l):(o=uL(t.rotation,s,f||0,h),a=t.axisNameAvailableWidth,null!=a&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),v=e.get("nameTruncate",!0)||{},m=v.ellipsis,y=mt(t.nameTruncateMaxWidth,v.maxWidth,a),x=new gu({x:p[0],y:p[1],rotation:o.rotation,silent:sL.isLabelSilent(e),style:Zd(u,{text:r,font:g,overflow:"truncate",width:y,ellipsis:m,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Wd({el:x,componentModel:e,itemName:r}),x.__fullText=r,x.anid="name",e.get("triggerEvent")){var b=sL.makeAxisEventDataBase(e);b.targetType="axisName",b.name=r,vu(x).eventData=b}i.add(x),x.updateTransform(),n.add(x),x.decomposeTransform()}}};function uL(t,e,n,i){var r,o,a=vo(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return mo(a-aL/2)?(o=l?"bottom":"top",r="center"):mo(a-1.5*aL)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*aL&&a>aL/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}function cL(t,e,n){if(!_C(t.axis)){var i=t.get(["axisLabel","showMinLabel"]),r=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],c=n[1],h=n[n.length-1],d=n[n.length-2];!1===i?(hL(o),hL(u)):dL(o,a)&&(i?(hL(a),hL(c)):(hL(o),hL(u))),!1===r?(hL(s),hL(h)):dL(l,s)&&(r?(hL(l),hL(d)):(hL(s),hL(h)))}}function hL(t){t&&(t.ignore=!0)}function dL(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=Hi([]);return ji(r,r,-t.rotation),n.applyTransform(Wi([],r,t.getLocalTransform())),i.applyTransform(Wi([],r,e.getLocalTransform())),n.intersect(i)}}function pL(t){return"middle"===t||"center"===t}function fL(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,e&&(ee(a,a,e),ee(s,s,e));var c=new Rh({subPixelOptimize:!0,shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});c.anid=r+"_"+t[l].tickValue,o.push(c)}return o}function gL(t,e,n,i){var r=n.axis,o=n.getModel("axisTick"),a=o.get("show");if("auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick")),a&&!r.scale.isBlank()){for(var s=o.getModel("lineStyle"),l=i.tickDirection*o.get("length"),u=r.getTicksCoords(),c=fL(u,e.transform,l,W(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<c.length;h++)t.add(c[h]);return c}}function vL(t,e,n,i){var r=n.axis,o=n.getModel("minorTick");if(o.get("show")&&!r.scale.isBlank()){var a=r.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=i*o.get("length"),u=W(s.getLineStyle(),W(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var h=fL(a[c],e.transform,l,u,"minorticks_"+c),d=0;d<h.length;d++)t.add(h[d])}}function mL(t,e,n,i){var r=n.axis,o=mt(i.axisLabelShow,n.get(["axisLabel","show"]));if(o&&!r.scale.isBlank()){var a=n.getModel("axisLabel"),s=a.get("margin"),l=r.getViewLabels(),u=(mt(i.labelRotate,a.get("rotate"))||0)*aL/180,c=sL.innerTextLayout(i.rotation,u,i.labelDirection),h=n.getCategories&&n.getCategories(!0),d=[],p=sL.isLabelSilent(n),f=n.get("triggerEvent");return Z(l,(function(o,l){var u="ordinal"===r.scale.type?r.scale.getRawOrdinalNumber(o.tickValue):o.tickValue,g=o.formattedLabel,v=o.rawLabel,m=a;if(h&&h[u]){var y=h[u];ut(y)&&y.textStyle&&(m=new yp(y.textStyle,a,n.ecModel))}var x=m.getTextColor()||n.get(["axisLine","lineStyle","color"]),b=r.dataToCoord(u),_=new gu({x:b,y:i.labelOffset+i.labelDirection*s,rotation:c.rotation,silent:p,z2:10,style:Zd(m,{text:g,align:m.getShallow("align",!0)||c.textAlign,verticalAlign:m.getShallow("verticalAlign",!0)||m.getShallow("baseline",!0)||c.textVerticalAlign,fill:"function"===typeof x?x("category"===r.type?v:"value"===r.type?u+"":u,l):x})});if(_.anid="label_"+u,f){var w=sL.makeAxisEventDataBase(n);w.targetType="axisLabel",w.value=v,vu(_).eventData=w}e.add(_),_.updateTransform(),d.push(_),t.add(_),_.decomposeTransform()})),d}}var yL=sL;function xL(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return bL(n,t,e),n.seriesInvolved&&wL(n,t),n}function bL(t,e,n){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];Z(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=DL(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var u=n.model,c=u.getModel("tooltip",i);if(Z(n.getAxes(),it(f,!1,null)),n.getTooltipAxes&&i&&c.get("show")){var h="axis"===c.get("trigger"),d="cross"===c.get(["axisPointer","type"]),p=n.getTooltipAxes(c.get(["axisPointer","axis"]));(h||d)&&Z(p.baseAxes,it(f,!d||"cross",h)),d&&Z(p.otherAxes,it(f,"cross",!1))}}function f(i,s,u){var h=u.model.getModel("axisPointer",r),d=h.get("show");if(d&&("auto"!==d||i||AL(h))){null==s&&(s=h.get("triggerTooltip")),h=i?_L(u,c,r,e,i,s):h;var p=h.get("snap"),f=DL(u.model),g=s||p||"category"===u.type,v=t.axesInfo[f]={key:f,axis:u,coordSys:n,axisPointerModel:h,triggerTooltip:s,involveSeries:g,snap:p,useHandle:AL(h),seriesModels:[],linkGroup:null};l[f]=v,t.seriesInvolved=t.seriesInvolved||g;var m=SL(o,u);if(null!=m){var y=a[m]||(a[m]={axesInfo:{}});y.axesInfo[f]=v,y.mapper=o[m].mapper,v.linkGroup=y}}}}))}function _L(t,e,n,i,r,o){var a=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};Z(s,(function(t){l[t]=V(a.get(t))})),l.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(l.type="line");var u=l.label||(l.label={});if(null==u.show&&(u.show=!1),"cross"===r){var c=a.get(["label","show"]);if(u.show=null==c||c,!o){var h=l.lineStyle=a.get("crossStyle");h&&W(u,h.textStyle)}}return t.model.getModel("axisPointer",new yp(l,n,i))}function wL(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),r=e.get(["tooltip","show"],!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==r&&!1!==e.get(["axisPointer","show"],!0)&&Z(t.coordSysAxesInfo[DL(n.model)],(function(t){var i=t.axis;n.getAxis(i.dim)===i&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}))}function SL(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(ML(o[i+"AxisId"],n.id)||ML(o[i+"AxisIndex"],n.componentIndex)||ML(o[i+"AxisName"],n.name))return r}}function ML(t,e){return"all"===t||rt(t)&&j(t,e)>=0||t===e}function IL(t){var e=CL(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=AL(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}function CL(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[DL(t)]}function TL(t){var e=CL(t);return e&&e.axisPointerModel}function AL(t){return!!t.get(["handle","show"])}function DL(t){return t.type+"||"+t.id}var kL={},LL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.render=function(e,n,i,r){this.axisPointerClass&&IL(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},e.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},e.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,i){var r=e.getAxisPointerClass(this.axisPointerClass);if(r){var o=TL(t);o?(this._axisPointer||(this._axisPointer=new r)).render(t,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){kL[t]=e},e.getAxisPointerClass=function(t){return t&&kL[t]},e.type="axis",e}(ay),PL=LL,OL=ta();function EL(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=i.coordinateSystem.getRect(),u=r.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var c=s.length,h=OL(t).splitAreaColors,d=At(),p=0;if(h)for(var f=0;f<u.length;f++){var g=h.get(u[f].tickValue);if(null!=g){p=(g+(c-1)*f)%c;break}}var v=r.toGlobalCoord(u[0].coord),m=a.getAreaStyle();s=rt(s)?s:[s];for(f=1;f<u.length;f++){var y=r.toGlobalCoord(u[f].coord),x=void 0,b=void 0,_=void 0,w=void 0;r.isHorizontal()?(x=v,b=l.y,_=y-x,w=l.height,v=x+_):(x=l.x,b=v,_=l.width,w=y-b,v=b+w);var S=u[f-1].tickValue;null!=S&&d.set(S,p),e.add(new eu({anid:null!=S?"area_"+S:null,shape:{x:x,y:b,width:_,height:w},style:W({fill:s[p]},m),autoBatch:!0,silent:!0})),p=(p+1)%c}OL(t).splitAreaColors=d}}}function RL(t){OL(t).splitAreaColors=null}var NL=["axisLine","axisTickLabel","axisName"],zL=["splitArea","splitLine","minorSplitLine"],BL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return v(e,t),e.prototype.render=function(e,n,i,r){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Wr,this.group.add(this._axisGroup),e.get("show")){var a=e.getCoordSysModel(),s=Kk(a,e),l=new yL(e,$({handleAutoShown:function(t){for(var n=a.coordinateSystem.getCartesians(),i=0;i<n.length;i++){var r=n[i].getOtherAxis(e.axis).type;if("value"===r||"log"===r)return!0}return!1}},s));Z(NL,l.add,l),this._axisGroup.add(l.getGroup()),Z(zL,(function(t){e.get([t,"show"])&&VL[t](this,this._axisGroup,e,a)}),this),Rd(o,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r)}},e.prototype.remove=function(){RL(this)},e.type="cartesianAxis",e}(PL),VL={splitLine:function(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=rt(s)?s:[s];for(var l=i.coordinateSystem.getRect(),u=r.isHorizontal(),c=0,h=r.getTicksCoords({tickModel:o}),d=[],p=[],f=a.getLineStyle(),g=0;g<h.length;g++){var v=r.toGlobalCoord(h[g].coord);u?(d[0]=v,d[1]=l.y,p[0]=v,p[1]=l.y+l.height):(d[0]=l.x,d[1]=v,p[0]=l.x+l.width,p[1]=v);var m=c++%s.length,y=h[g].tickValue;e.add(new Rh({anid:null!=y?"line_"+h[g].tickValue:null,subPixelOptimize:!0,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},style:W({stroke:s[m]},f),silent:!0}))}}},minorSplitLine:function(t,e,n,i){var r=n.axis,o=n.getModel("minorSplitLine"),a=o.getModel("lineStyle"),s=i.coordinateSystem.getRect(),l=r.isHorizontal(),u=r.getMinorTicksCoords();if(u.length)for(var c=[],h=[],d=a.getLineStyle(),p=0;p<u.length;p++)for(var f=0;f<u[p].length;f++){var g=r.toGlobalCoord(u[p][f].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),e.add(new Rh({anid:"minor_line_"+u[p][f].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:d,silent:!0}))}},splitArea:function(t,e,n,i){EL(t,e,n,i)}},FL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.type="xAxis",e}(BL),HL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=FL.type,e}return v(e,t),e.type="yAxis",e}(BL),$L=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return v(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new eu({shape:t.coordinateSystem.getRect(),style:W({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(ay),WL={offset:0};function GL(t){t.registerComponentView($L),t.registerComponentModel(Pk),t.registerCoordinateSystem("cartesian2d",oL),Hk(t,"x",Ok,WL),Hk(t,"y",Ok,WL),t.registerComponentView(FL),t.registerComponentView(HL),t.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))}function jL(t){nM(GL),t.registerSeriesModel(Sk),t.registerChartView(kk),t.registerLayout(bD("scatter"))}function YL(t){t.eachSeriesByType("radar",(function(t){var e=t.getData(),n=[],i=t.coordinateSystem;if(i){var r=i.getIndicatorAxes();Z(r,(function(t,o){e.each(e.mapDimension(r[o].dim),(function(t,e){n[e]=n[e]||[];var r=i.dataToPoint(t,o);n[e][o]=XL(r)?r:UL(i)}))})),e.each((function(t){var r=Q(n[t],(function(t){return XL(t)}))||UL(i);n[t].push(r.slice()),e.setItemLayout(t,n[t])}))}}))}function XL(t){return!isNaN(t[0])&&!isNaN(t[1])}function UL(t){return[t.cx,t.cy]}function ZL(t){var e=t.polar;if(e){rt(e)||(e=[e]);var n=[];Z(e,(function(e,i){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],rt(t.radar)||(t.radar=[t.radar]),t.radar.push(e)):n.push(e)})),t.polar=n}Z(t.series,(function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)}))}function qL(t){return rt(t)||(t=[+t,+t]),t}var KL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.render=function(t,e,n){var i=t.coordinateSystem,r=this.group,o=t.getData(),a=this._data;function s(t,e){var n=t.getItemVisual(e,"symbol")||"circle";if("none"!==n){var i=qL(t.getItemVisual(e,"symbolSize")),r=db(n,-1,-1,2,2),o=t.getItemVisual(e,"symbolRotate")||0;return r.attr({style:{strokeNoScale:!0},z2:100,scaleX:i[0]/2,scaleY:i[1]/2,rotation:o*Math.PI/180||0}),r}}function u(e,n,i,r,o,a){i.removeAll();for(var u=0;u<n.length-1;u++){var c=s(r,o);c&&(c.__dimIdx=u,e[u]?(c.setPosition(e[u]),l[a?"initProps":"updateProps"](c,{x:n[u][0],y:n[u][1]},t,o)):c.setPosition(n[u]),i.add(c))}}function c(t){return q(t,(function(t){return[i.cx,i.cy]}))}o.diff(a).add((function(e){var n=o.getItemLayout(e);if(n){var i=new Ah,r=new Lh,a={shape:{points:n}};i.shape.points=c(n),r.shape.points=c(n),Id(i,a,t,e),Id(r,a,t,e);var s=new Wr,l=new Wr;s.add(r),s.add(i),s.add(l),u(r.shape.points,n,l,o,e,!0),o.setItemGraphicEl(e,s)}})).update((function(e,n){var i=a.getItemGraphicEl(n),r=i.childAt(0),s=i.childAt(1),l=i.childAt(2),c={shape:{points:o.getItemLayout(e)}};c.shape.points&&(u(r.shape.points,c.shape.points,l,o,e,!1),Md(r,c,t),Md(s,c,t),o.setItemGraphicEl(e,i))})).remove((function(t){r.remove(a.getItemGraphicEl(t))})).execute(),o.eachItemGraphicEl((function(t,e){var n=o.getItemModel(e),i=t.childAt(0),a=t.childAt(1),s=t.childAt(2),l=o.getItemVisual(e,"style"),u=l.fill;r.add(t),i.useStyle(W(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:u})),bc(i,n,"lineStyle"),bc(a,n,"areaStyle");var c=n.getModel("areaStyle"),h=c.isEmpty()&&c.parentModel.isEmpty();a.ignore=h,Z(["emphasis","select","blur"],(function(t){var e=n.getModel([t,"areaStyle"]),i=e.isEmpty()&&e.parentModel.isEmpty();a.ensureState(t).ignore=i&&h})),a.useStyle(W(c.getAreaStyle(),{fill:u,opacity:.7,decal:l.decal}));var d=n.getModel("emphasis"),p=d.getModel("itemStyle").getItemStyle();s.eachChild((function(t){if(t instanceof Yl){var i=t.style;t.useStyle($({image:i.image,x:i.x,y:i.y,width:i.width,height:i.height},l))}else t.useStyle(l),t.setColor(u);var r=t.ensureState("emphasis");r.style=V(p);var a=o.get(o.dimensions[t.__dimIdx],e);(null==a||isNaN(a))&&(a=""),Xd(t,Ud(n),{labelFetcher:o.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:a,inheritColor:u,defaultOpacity:l.opacity})})),vc(t,d.get("focus"),d.get("blurScope"))})),this._data=o},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(vy),JL=KL,QL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.useColorPaletteOnData=!0,n.hasSymbolVisual=!0,n}return v(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new yk(nt(this.getData,this),nt(this.getRawData,this))},e.prototype.getInitialData=function(t,e){return vk(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.coordinateSystem,o=r.getIndicatorAxes(),a=this.getData().getName(t),s=""===a?this.name:a,l=$m(this,t);return Lm("section",{header:s,sortBlocks:!0,blocks:q(o,(function(e){var n=i.get(i.mapDimension(e.dim),t);return Lm("nameValue",{markerType:"subItem",markerColor:l,name:e.name,value:n,sortParam:n})}))})},e.prototype.getTooltipPosition=function(t){if(null!=t)for(var e=this.getData(),n=this.coordinateSystem,i=e.getValues(q(n.dimensions,(function(t){return e.mapDimension(t)})),t),r=0,o=i.length;r<o;r++)if(!isNaN(i[r])){var a=n.getIndicatorAxes();return n.coordToPoint(a[r].dataToCoord(i[r]),r)}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbolSize:8},e}(ry),tP=QL,eP=Vk.value;function nP(t,e){return W({show:e},t)}var iP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),r=this.get("axisTick"),o=this.get("axisLabel"),a=this.get("axisName"),s=this.get(["axisName","show"]),l=this.get(["axisName","formatter"]),u=this.get("axisNameGap"),c=this.get("triggerEvent"),h=q(this.get("indicator")||[],(function(h){null!=h.max&&h.max>0&&!h.min?h.min=0:null!=h.min&&h.min<0&&!h.max&&(h.max=0);var d=a;null!=h.color&&(d=W({color:h.color},a));var p=F(V(h),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:h.text,nameLocation:"end",nameGap:u,nameTextStyle:d,triggerEvent:c},!1);if(s||(p.name=""),"string"===typeof l){var f=p.name;p.name=l.replace("{value}",null!=f?f:"")}else"function"===typeof l&&(p.name=l(p.name,p));var g=new yp(p,null,this.ecModel);return X(g,MC.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g}),this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={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:F({lineStyle:{color:"#bbb"}},eP.axisLine),axisLabel:nP(eP.axisLabel,!1),axisTick:nP(eP.axisTick,!1),splitLine:nP(eP.splitLine,!0),splitArea:nP(eP.splitArea,!0),indicator:[]},e}(Xf),rP=iP,oP=["axisLine","axisTickLabel","axisName"],aP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.render=function(t,e,n){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes(),i=q(n,(function(t){var n=new yL(t.model,{position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return n}));Z(i,(function(t){Z(oP,t.add,t),this.group.add(t.getGroup())}),this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var i=t.get("shape"),r=t.getModel("splitLine"),o=t.getModel("splitArea"),a=r.getModel("lineStyle"),s=o.getModel("areaStyle"),l=r.get("show"),u=o.get("show"),c=a.get("color"),h=s.get("color"),d=rt(c)?c:[c],p=rt(h)?h:[h],f=[],g=[];if("circle"===i)for(var v=n[0].getTicksCoords(),m=e.cx,y=e.cy,x=0;x<v.length;x++){if(l){var b=A(f,d,x);f[b].push(new Jc({shape:{cx:m,cy:y,r:v[x].coord}}))}if(u&&x<v.length-1){b=A(g,p,x);g[b].push(new _h({shape:{cx:m,cy:y,r0:v[x].coord,r:v[x+1].coord}}))}}else{var _,w=q(n,(function(t,n){var i=t.getTicksCoords();return _=null==_?i.length-1:Math.min(i.length-1,_),q(i,(function(t){return e.coordToPoint(t.coord,n)}))})),S=[];for(x=0;x<=_;x++){for(var M=[],I=0;I<n.length;I++)M.push(w[I][x]);if(M[0]&&M.push(M[0].slice()),l){b=A(f,d,x);f[b].push(new Lh({shape:{points:M}}))}if(u&&S){b=A(g,p,x-1);g[b].push(new Ah({shape:{points:M.concat(S)}}))}S=M.slice().reverse()}}var C=a.getLineStyle(),T=s.getAreaStyle();Z(g,(function(t,e){this.group.add(yd(t,{style:W({stroke:"none",fill:p[e%p.length]},T),silent:!0}))}),this),Z(f,(function(t,e){this.group.add(yd(t,{style:W({fill:"none",stroke:d[e%d.length]},C),silent:!0}))}),this)}function A(t,e,n){var i=n%e.length;return t[i]=t[i]||[],i}},e.type="radar",e}(ay),sP=aP,lP=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.type="value",r.angle=0,r.name="",r}return v(e,t),e}(qC),uP=lP,cP=function(){function t(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=q(t.getIndicatorModels(),(function(t,e){var n="indicator_"+e,i=new uP(n,new bI);return i.name=t.get("name"),i.model=t,t.axis=i,this.dimensions.push(n),i}),this),this.resize(t,n)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},t.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e],i=n.angle,r=this.cx+t*Math.cos(i),o=this.cy-t*Math.sin(i);return[r,o]},t.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var r,o=Math.atan2(-n,e),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(o-u.angle);c<a&&(r=u,s=l,a=c)}return[s,+(r&&r.coordToData(i))]},t.prototype.resize=function(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r)/2;this.cx=ao(n[0],i),this.cy=ao(n[1],r),this.startAngle=t.get("startAngle")*Math.PI/180;var a=t.get("radius");"string"!==typeof a&&"number"!==typeof a||(a=[0,a]),this.r0=ao(a[0],o),this.r=ao(a[1],o),Z(this._indicatorAxes,(function(t,e){t.setExtent(this.r0,this.r);var n=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),t.angle=n}),this)},t.prototype.update=function(t,e){var n=this._indicatorAxes,i=this._model;Z(n,(function(t){t.scale.setExtent(1/0,-1/0)})),t.eachSeriesByType("radar",(function(e,r){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===i){var o=e.getData();Z(n,(function(t){t.scale.unionExtentFromData(o,o.mapDimension(t.dim))}))}}),this);var r=i.get("splitNumber");function o(t){var e=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),n=t/e;return 2===n?n=5:n*=2,n*e}Z(n,(function(t,e){var n=hC(t.scale,t.model).extent;pC(t.scale,t.model);var i=t.model,a=t.scale,s=cC(a,i.get("min",!0)),l=cC(a,i.get("max",!0)),u=a.getInterval();if(null!=s&&null!=l)a.setExtent(+s,+l),a.setInterval((l-s)/r);else if(null!=s){var c=void 0;do{c=s+u*r,a.setExtent(+s,c),a.setInterval(u),u=o(u)}while(c<n[1]&&isFinite(c)&&isFinite(n[1]))}else if(null!=l){var h=void 0;do{h=l-u*r,a.setExtent(h,+l),a.setInterval(u),u=o(u)}while(h>n[0]&&isFinite(h)&&isFinite(n[0]))}else{var d=a.getTicks().length-1;d>r&&(u=o(u));c=Math.ceil(n[1]/u)*u,h=so(c-u*r);a.setExtent(h,c),a.setInterval(u)}}))},t.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.create=function(e,n){var i=[];return e.eachComponent("radar",(function(r){var o=new t(r,e,n);i.push(o),r.coordinateSystem=o})),e.eachSeriesByType("radar",(function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("radarIndex")||0])})),i},t.dimensions=[],t}(),hP=cP;function dP(t){t.registerCoordinateSystem("radar",hP),t.registerComponentModel(rP),t.registerComponentView(sP),t.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each((function(t){e.setItemVisual(t,"legendIcon","roundRect")})),e.setVisual("legendIcon","roundRect")}})}function pP(t){nM(dP),t.registerChartView(JL),t.registerSeriesModel(tP),t.registerLayout(YL),t.registerProcessor(ak("radar")),t.registerPreprocessor(ZL)}var fP="\0_ec_interaction_mutex";function gP(t,e,n){var i=yP(t);i[e]=n}function vP(t,e,n){var i=yP(t),r=i[e];r===n&&(i[e]=null)}function mP(t,e){return!!yP(t)[e]}function yP(t){return t[fP]||(t[fP]={})}HS({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},(function(){}));var xP=function(t){function e(e){var n=t.call(this)||this;n._zr=e;var i=nt(n._mousedownHandler,n),r=nt(n._mousemoveHandler,n),o=nt(n._mouseupHandler,n),a=nt(n._mousewheelHandler,n),s=nt(n._pinchHandler,n);return n.enable=function(t,n){this.disable(),this._opt=W(V(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),!0!==t&&"move"!==t&&"pan"!==t||(e.on("mousedown",i),e.on("mousemove",r),e.on("mouseup",o)),!0!==t&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",a),e.on("pinch",s))},n.disable=function(){e.off("mousedown",i),e.off("mousemove",r),e.off("mouseup",o),e.off("mousewheel",a),e.off("pinch",s)},n}return v(e,t),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!(ke(t)||t.target&&t.target.draggable)){var e=t.offsetX,n=t.offsetY;this.pointerChecker&&this.pointerChecker(t,e,n)&&(this._x=e,this._y=n,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(this._dragging&&wP("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!mP(this._zr,"globalPan")){var e=t.offsetX,n=t.offsetY,i=this._x,r=this._y,o=e-i,a=n-r;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&De(t.event),_P(this,"pan","moveOnMouseMove",t,{dx:o,dy:a,oldX:i,oldY:r,newX:e,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){ke(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var e=wP("zoomOnMouseWheel",t,this._opt),n=wP("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,r=Math.abs(i),o=t.offsetX,a=t.offsetY;if(0!==i&&(e||n)){if(e){var s=r>3?1.4:r>1?1.2:1.1,l=i>0?s:1/s;bP(this,"zoom","zoomOnMouseWheel",t,{scale:l,originX:o,originY:a,isAvailableBehavior:null})}if(n){var u=Math.abs(i),c=(i>0?1:-1)*(u>3?.4:u>1?.15:.05);bP(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:c,originX:o,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!mP(this._zr,"globalPan")){var e=t.pinchScale>1?1.1:1/1.1;bP(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(le);function bP(t,e,n,i,r){t.pointerChecker&&t.pointerChecker(i,r.originX,r.originY)&&(De(i.event),_P(t,e,n,i,r))}function _P(t,e,n,i,r){r.isAvailableBehavior=nt(wP,null,n,i),t.trigger(e,r)}function wP(t,e,n){var i=n[t];return!t||i&&(!at(i)||e.event[i+"Key"])}var SP=xP;function MP(t,e,n){var i=t.target;i.x+=e,i.y+=n,i.dirty()}function IP(t,e,n,i){var r=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/t.zoom;t.zoom=a,r.x-=(n-r.x)*(u-1),r.y-=(i-r.y)*(u-1),r.scaleX*=u,r.scaleY*=u,r.dirty()}var CP={axisPointer:1,tooltip:1,brush:1};function TP(t,e,n){var i=e.getComponentByElement(t.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!CP.hasOwnProperty(i.mainType)&&r&&r.model!==n}var AP=["rect","circle","line","ellipse","polygon","polyline","path"],DP=At(AP),kP=At(AP.concat(["g"])),LP=At(AP.concat(["g"])),PP=ta();function OP(t){var e=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(e.fill=n),e}var EP=function(){function t(t){var e=new Wr;this.uid=bp("ec_map_draw"),this._controller=new SP(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new Wr),e.add(this._svgGroup=new Wr)}return t.prototype.draw=function(t,e,n,i,r){var o="geo"===t.mainType,a=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},(function(e){a||e.getHostGeoModel()!==t||(a=e.getData())}));var s=t.coordinateSystem,l=this._regionsGroup,u=this.group,c=s.getTransformInfo(),h=c.raw,d=c.roam,p=!l.childAt(0)||r;p?(u.x=d.x,u.y=d.y,u.scaleX=d.scaleX,u.scaleY=d.scaleY,u.dirty()):Md(u,d,t);var f=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,g={api:n,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:f,isGeo:o,transformInfoRaw:h};"geoJSON"===s.resourceType?this._buildGeoJSON(g):"geoSVG"===s.resourceType&&this._buildSVG(g),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,i)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=At(),n=At(),i=this._regionsGroup,r=t.transformInfoRaw,o=t.mapOrGeoModel,a=t.data,s=function(t){return[t[0]*r.scaleX+r.x,t[1]*r.scaleY+r.y]};i.removeAll(),Z(t.geo.regions,(function(r){var l=r.name,u=e.get(l),c=n.get(l)||{},h=c.dataIdx,d=c.regionModel;u||(u=e.set(l,new Wr),i.add(u),h=a?a.indexOfName(l):null,d=t.isGeo?o.getRegionModel(l):a?a.getItemModel(h):null,n.set(l,{dataIdx:h,regionModel:d}));var p=new jh({segmentIgnoreThreshold:1,shape:{paths:[]}});u.add(p),Z(r.geometries,(function(t){if("polygon"===t.type){for(var e=[],n=0;n<t.exterior.length;++n)e.push(s(t.exterior[n]));p.shape.paths.push(new Ah({segmentIgnoreThreshold:1,shape:{points:e}}));for(n=0;n<(t.interiors?t.interiors.length:0);++n){for(var i=t.interiors[n],r=[],o=0;o<i.length;++o)r.push(s(i[o]));p.shape.paths.push(new Ah({segmentIgnoreThreshold:1,shape:{points:r}}))}}})),RP(t,p,h,d),p instanceof os&&(p.culling=!0);var f=s(r.getCenter());NP(t,p,l,d,o,h,f)})),e.each((function(e,i){var r=n.get(i),a=r.dataIdx,s=r.regionModel;zP(t,e,i,s,o,a),BP(t,e,i,s,o),VP(t,e,i,s,o)}),this)},t.prototype._buildSVG=function(t){var e=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var i=this._svgDispatcherMap=At(),r=!1;Z(this._svgGraphicRecord.named,(function(e){var n=e.name,o=t.mapOrGeoModel,a=t.data,s=e.svgNodeTagLower,l=e.el,u=a?a.indexOfName(n):null,c=o.getRegionModel(n);if(null!=DP.get(s)&&l instanceof os&&RP(t,l,u,c),l instanceof os&&(l.culling=!0),l.z2EmphasisLift=0,!e.namedFrom&&(null!=LP.get(s)&&NP(t,l,n,c,o,u,null),zP(t,l,n,c,o,u),BP(t,l,n,c,o),null!=kP.get(s))){var h=VP(t,l,n,c,o);"self"===h&&(r=!0);var d=i.get(n)||i.set(n,[]);d.push(l)}}),this),this._enableBlurEntireSVG(r,t)},t.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var n=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),i=n.opacity;this._svgGraphicRecord.root.traverse((function(t){if(!t.isGroup){qu(t);var e=t.ensureState("blur").style||{};null==e.opacity&&null!=i&&(e.opacity=i),t.ensureState("emphasis")}}))}},t.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},t.prototype.findHighDownDispatchers=function(t,e){if(null==t)return[];var n=e.coordinateSystem;if("geoJSON"===n.resourceType){var i=this._regionsGroupByName;if(i){var r=i.get(t);return r?[r]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},t.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},t.prototype._useSVG=function(t){var e=ow.getGeoResource(t);if(e&&"geoSVG"===e.type){var n=e.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},t.prototype._freeSVG=function(){var t=this._svgMapName;if(null!=t){var e=ow.getGeoResource(t);e&&"geoSVG"===e.type&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},t.prototype._updateController=function(t,e,n){var i=t.coordinateSystem,r=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=i.getZoom(),r.enable(t.get("roam")||!1);var a=t.mainType;function s(){var e={type:"geoRoam",componentType:a};return e[a+"Id"]=t.id,e}r.off("pan").on("pan",(function(t){this._mouseDownFlag=!1,MP(o,t.dx,t.dy),n.dispatchAction($(s(),{dx:t.dx,dy:t.dy}))}),this),r.off("zoom").on("zoom",(function(t){this._mouseDownFlag=!1,IP(o,t.scale,t.originX,t.originY),n.dispatchAction($(s(),{zoom:t.scale,originX:t.originX,originY:t.originY}))}),this),r.setPointerChecker((function(e,r,o){return i.containPoint([r,o])&&!TP(e,n,t)}))},t.prototype.resetForLabelLayout=function(){this.group.traverse((function(t){var e=t.getTextContent();e&&(e.ignore=PP(e).ignore)}))},t.prototype._updateMapSelectHandler=function(t,e,n,i){var r=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",(function(){r._mouseDownFlag=!0})),e.on("click",(function(t){r._mouseDownFlag&&(r._mouseDownFlag=!1)})))},t}();function RP(t,e,n,i){var r=i.getModel("itemStyle"),o=i.getModel(["emphasis","itemStyle"]),a=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=OP(r),u=OP(o),c=OP(s),h=OP(a),d=t.data;if(d){var p=d.getItemVisual(n,"style"),f=d.getItemVisual(n,"decal");t.isVisualEncodedByVisualMap&&p.fill&&(l.fill=p.fill),f&&(l.decal=Zb(f,t.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=h,qu(e)}function NP(t,e,n,i,r,o,a){var s=t.data,l=t.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),o)),c=s&&s.getItemLayout(o);if(l||u||c&&c.showLabel){var h=l?n:o,d=void 0;(!s||o>=0)&&(d=r);var p=a?{normal:{align:"center",verticalAlign:"middle"}}:null;Xd(e,Ud(i),{labelFetcher:d,labelDataIndex:h,defaultText:n},p);var f=e.getTextContent();if(f&&(PP(f).ignore=f.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function zP(t,e,n,i,r,o){t.data?t.data.setItemGraphicEl(o,e):vu(e).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function BP(t,e,n,i,r){t.data||Wd({el:e,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function VP(t,e,n,i,r){e.highDownSilentOnTouch=!!r.get("selectedMode");var o=i.getModel("emphasis"),a=o.get("focus");return vc(e,a,o.get("blurScope")),t.isGeo&&Sc(e,r,n),a}var FP=EP,HP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.render=function(t,e,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var r=this.group;if(r.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&i&&"geoRoam"===i.type&&this._mapDraw.resetForLabelLayout(),i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===t.id){o=this._mapDraw;o&&r.add(o.group)}else if(t.needsDrawMap){var o=this._mapDraw||new FP(n);r.add(o.group),o.draw(t,e,n,this,i),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,e,n){var i=t.originalData,r=this.group;i.each(i.mapDimension("value"),(function(e,n){if(!isNaN(e)){var o=i.getItemLayout(n);if(o&&o.point){var a=o.point,s=o.offset,l=new Jc({style:{fill:t.getData().getVisual("style").fill},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:Iu+1)});if(!s){var u=t.mainSeries.getData(),c=i.getName(n),h=u.indexOfName(c),d=i.getItemModel(n),p=d.getModel("label"),f=u.getItemGraphicEl(h);Xd(l,Ud(d),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(h,n)}}}),l.disableLabelAnimation=!0,p.get("position")||l.setTextConfig({position:"bottom"}),f.onHoverStateChange=function(t){Gu(l,t)}}r.add(l)}}}))},e.type="map",e}(vy),$P=HP,WP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,i=n.getRegion(e);return i&&n.dataToPoint(i.getCenter())}},n}return v(e,t),e.prototype.getInitialData=function(t){for(var e=vk(this,{coordDimensions:["value"],encodeDefaulter:it(cg,this)}),n=At(),i=[],r=0,o=e.count();r<o;r++){var a=e.getName(r);n.set(a,!0)}var s=ow.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return Z(s.regions,(function(t){var e=t.name;n.get(e)||i.push(e)})),e.appendValues([],i),e},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return null!=t?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},e.prototype.formatTooltip=function(t,e,n){for(var i=this.getData(),r=this.getRawValue(t),o=i.getName(t),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var u=a[l].originalData.indexOfName(o),c=i.mapDimension("value");isNaN(a[l].originalData.get(c,u))||s.push(a[l].name)}return Lm("section",{header:s.join(", "),noHeader:!s.length,blocks:[Lm("nameValue",{name:o,value:r})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var e=t.icon||"roundRect",n=db(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke="none",e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(ry),GP=WP;function jP(t,e){var n={};return Z(t,(function(t){t.each(t.mapDimension("value"),(function(e,i){var r="ec-"+t.getName(i);n[r]=n[r]||[],isNaN(e)||n[r].push(e)}))})),t[0].map(t[0].mapDimension("value"),(function(i,r){for(var o,a="ec-"+t[0].getName(r),s=0,l=1/0,u=-1/0,c=n[a].length,h=0;h<c;h++)l=Math.min(l,n[a][h]),u=Math.max(u,n[a][h]),s+=n[a][h];return o="min"===e?l:"max"===e?u:"average"===e?s/c:s,0===c?NaN:o}))}function YP(t){var e={};t.eachSeriesByType("map",(function(t){var n=t.getHostGeoModel(),i=n?"o"+n.id:"i"+t.getMapType();(e[i]=e[i]||[]).push(t)})),Z(e,(function(t,e){for(var n=jP(q(t,(function(t){return t.getData()})),t[0].get("mapValueCalculation")),i=0;i<t.length;i++)t[i].originalData=t[i].getData();for(i=0;i<t.length;i++)t[i].seriesGroup=t,t[i].needsDrawMap=0===i&&!t[i].getHostGeoModel(),t[i].setData(n.cloneShallow()),t[i].mainSeries=t[0]}))}function XP(t){var e={};t.eachSeriesByType("map",(function(n){var i=n.getMapType();if(!n.getHostGeoModel()&&!e[i]){var r={};Z(n.seriesGroup,(function(e){var n=e.coordinateSystem,i=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&i.each(i.mapDimension("value"),(function(t,e){var o=i.getName(e),a=n.getRegion(o);if(a&&!isNaN(t)){var s=r[o]||0,l=n.dataToPoint(a.getCenter());r[o]=s+1,i.setItemLayout(e,{point:l,offset:s})}}))}));var o=n.getData();o.each((function(t){var e=o.getName(t),n=o.getItemLayout(t)||{};n.showLabel=!r[e],o.setItemLayout(t,n)})),e[i]=!0}}))}var UP=ee,ZP=function(t){function e(e){var n=t.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new or,n._rawTransformable=new or,n.name=e,n}return v(e,t),e.prototype.setBoundingRect=function(t,e,n,i){return this._rect=new mr(t,e,n,i),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,e,n,i){this._transformTo(t,e,n,i),this._viewRect=new mr(t,e,n,i)},e.prototype._transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=this._rawTransformable;o.transform=r.calculateTransform(new mr(t,e,n,i));var a=o.parent;o.parent=null,o.decomposeTransform(),o.parent=a,this._updateTransform()},e.prototype.setCenter=function(t){t&&(this._center=t,this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),e=t.x+t.width/2,n=t.y+t.height/2;return[e,n]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),r=this.getZoom();i=ee([],i,t),n=ee([],n,t),e.originX=i[0],e.originY=i[1],e.x=n[0]-i[0],e.y=n[1]-i[1],e.scaleX=e.scaleY=r,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),$i(this.transform||(this.transform=[]),e.transform||Fi()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],Xi(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,e=this._roamTransformable,n=new or;return n.transform=e.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,e,n){var i=e?this._rawTransform:this.transform;return n=n||[],i?UP(n,t,i):Et(n,t)},e.prototype.pointToData=function(t){var e=this.invTransform;return e?UP([],t,e):[t[0],t[1]]},e.prototype.convertToPixel=function(t,e,n){var i=qP(e);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var i=qP(e);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(or);function qP(t){var e=t.seriesModel;return e?e.coordinateSystem:null}var KP=ZP,JP={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},QP=function(t){function e(e,n,i){var r=t.call(this,e)||this;r.dimensions=["lng","lat"],r.type="geo",r._nameCoordMap=At(),r.map=n;var o=ow.load(n,i.nameMap,i.nameProperty),a=ow.getGeoResource(n);r.resourceType=a?a.type:null;var s=JP[a.type];r._regionsMap=o.regionsMap,r._invertLongitute=s.invertLongitute,r.regions=o.regions,r.aspectScale=yt(i.aspectScale,s.aspectScale);var l=o.boundingRect;return r.setBoundingRect(l.x,l.y,l.width,l.height),r}return v(e,t),e.prototype._transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=this._invertLongitute;r=r.clone(),o&&(r.y=-r.y-r.height);var a=this._rawTransformable;a.transform=r.calculateTransform(new mr(t,e,n,i));var s=a.parent;a.parent=null,a.decomposeTransform(),a.parent=s,o&&(a.scaleY=-a.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var e=this.regions,n=0;n<e.length;n++){var i=e[n];if("geoJSON"===i.type&&i.contain(t))return e[n]}},e.prototype.addGeoCoord=function(t,e){this._nameCoordMap.set(t,e)},e.prototype.getGeoCoord=function(t){var e=this._regionsMap.get(t);return this._nameCoordMap.get(t)||e&&e.getCenter()},e.prototype.dataToPoint=function(t,e,n){if("string"===typeof t&&(t=this.getGeoCoord(t)),t)return KP.prototype.dataToPoint.call(this,t,e,n)},e.prototype.convertToPixel=function(t,e,n){var i=tO(e);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var i=tO(e);return i===this?i.pointToData(n):null},e}(KP);function tO(t){var e=t.geoModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",ra).models[0]||{}).coordinateSystem:null}X(QP,KP);var eO=QP;function nO(t,e){var n=t.get("boundingCoords");if(null!=n){var i=n[0],r=n[1];isNaN(i[0])||isNaN(i[1])||isNaN(r[0])||isNaN(r[1])||this.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1])}var o,a,s,l=this.getBoundingRect(),u=t.get("layoutCenter"),c=t.get("layoutSize"),h=e.getWidth(),d=e.getHeight(),p=l.width/l.height*this.aspectScale,f=!1;if(u&&c&&(o=[ao(u[0],h),ao(u[1],d)],a=ao(c,Math.min(h,d)),isNaN(o[0])||isNaN(o[1])||isNaN(a)||(f=!0)),f)s={},p>1?(s.width=a,s.height=a/p):(s.height=a,s.width=a*p),s.y=o[1]-s.height/2,s.x=o[0]-s.width/2;else{var g=t.getBoxLayoutParams();g.aspect=p,s=zf(g,{width:h,height:d})}this.setViewRect(s.x,s.y,s.width,s.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}function iO(t,e){Z(e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}var rO=function(){function t(){this.dimensions=eO.prototype.dimensions}return t.prototype.create=function(t,e){var n=[];t.eachComponent("geo",(function(t,i){var r=t.get("map"),o=new eO(r+i,r,{nameMap:t.get("nameMap"),nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale")});o.zoomLimit=t.get("scaleLimit"),n.push(o),t.coordinateSystem=o,o.model=t,o.resize=nO,o.resize(t,e)})),t.eachSeries((function(t){var e=t.get("coordinateSystem");if("geo"===e){var i=t.get("geoIndex")||0;t.coordinateSystem=n[i]}}));var i={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();i[e]=i[e]||[],i[e].push(t)}})),Z(i,(function(t,i){var r=q(t,(function(t){return t.get("nameMap")})),o=new eO(i,i,{nameMap:H(r),nameProperty:t[0].get("nameProperty"),aspectScale:t[0].get("aspectScale")});o.zoomLimit=mt.apply(null,q(t,(function(t){return t.get("scaleLimit")}))),n.push(o),o.resize=nO,o.resize(t[0],e),Z(t,(function(t){t.coordinateSystem=o,iO(o,t)}))})),n},t.prototype.getFilledRegions=function(t,e,n,i){for(var r=(t||[]).slice(),o=At(),a=0;a<r.length;a++)o.set(r[a].name,r[a]);var s=ow.load(e,n,i);return Z(s.regions,(function(t){var e=t.name;!o.get(e)&&r.push({name:e})})),r},t}(),oO=new rO,aO=oO,sO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.init=function(t,e,n){var i=ow.getGeoResource(t.map);if(i&&"geoJSON"===i.type){var r=t.itemStyle=t.itemStyle||{};"color"in r||(r.color="#eee")}this.mergeDefaultAndTheme(t,n),Oo(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,e=this.option;e.regions=aO.getFilledRegions(e.regions,e.map,e.nameMap,e.nameProperty);var n={};this._optionModelMap=K(e.regions||[],(function(e,i){var r=i.name;return r&&(e.set(r,new yp(i,t,t.ecModel)),i.selected&&(n[r]=!0)),e}),At()),e.selectedMap||(e.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new yp(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,e){var n=this.getRegionModel(t),i="normal"===e?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),r={name:t};return"function"===typeof i?(r.status=e,i(r)):"string"===typeof i?i.replace("{a}",null!=t?t:""):void 0},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var e=this.option,n=e.selectedMode;if(n){"multiple"!==n&&(e.selectedMap=null);var i=e.selectedMap||(e.selectedMap={});i[t]=!0}},e.prototype.unSelect=function(t){var e=this.option.selectedMap;e&&(e[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var e=this.option.selectedMap;return!(!e||!e[t])},e.type="geo",e.layoutMode="box",e.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"},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:[]},e}(Xf),lO=sO;function uO(t,e,n){var i=t.getZoom(),r=t.getCenter(),o=e.zoom,a=t.dataToPoint(r);if(null!=e.dx&&null!=e.dy&&(a[0]-=e.dx,a[1]-=e.dy,t.setCenter(t.pointToData(a))),null!=o){if(n){var s=n.min||0,l=n.max||1/0;o=Math.max(Math.min(i*o,l),s)/i}t.scaleX*=o,t.scaleY*=o;var u=(e.originX-t.x)*(o-1),c=(e.originY-t.y)*(o-1);t.x-=u,t.y-=c,t.updateTransform(),t.setCenter(t.pointToData(a)),t.setZoom(o*i)}return{center:t.getCenter(),zoom:t.getZoom()}}var cO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.focusBlurEnabled=!0,n}return v(e,t),e.prototype.init=function(t,e){var n=new FP(e);this._mapDraw=n,this.group.add(n.group),this._api=e},e.prototype.render=function(t,e,n,i){var r=this._mapDraw;t.get("show")?r.draw(t,e,n,this,i):this._mapDraw.group.removeAll(),r.group.on("click",this._handleRegionClick,this),r.group.silent=t.get("silent"),this._model=t,this.updateSelectStatus(t,e,n)},e.prototype._handleRegionClick=function(t){var e;Qx(t.target,(function(t){return null!=(e=vu(t).eventData)}),!0),e&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:e.name})},e.prototype.updateSelectStatus=function(t,e,n){var i=this;this._mapDraw.group.traverse((function(t){var e=vu(t).eventData;if(e)return i._model.isSelected(e.name)?n.enterSelect(t):n.leaveSelect(t),!0}))},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(ay),hO=cO;function dO(t){function e(e,n){n.update="geo:updateSelectStatus",t.registerAction(n,(function(t,n){var i={},r=[];return n.eachComponent({mainType:"geo",query:t},(function(n){n[e](t.name);var o=n.coordinateSystem;Z(o.regions,(function(t){i[t.name]=n.isSelected(t.name)||!1}));var a=[];Z(i,(function(t,e){i[e]&&a.push(e)})),r.push({geoIndex:n.componentIndex,name:a})})),{selected:i,allSelected:r,name:t.name}}))}t.registerCoordinateSystem("geo",aO),t.registerComponentModel(lO),t.registerComponentView(hO),e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),t.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){var i=e.coordinateSystem;if("geo"===i.type){var r=uO(i,t,e.get("scaleLimit"));e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom),"series"===n&&Z(e.seriesGroup,(function(t){t.setCenter(r.center),t.setZoom(r.zoom)}))}}))}))}function pO(t){nM(dO),t.registerChartView($P),t.registerSeriesModel(GP),t.registerLayout(XP),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,YP),qx("map",t.registerAction)}function fO(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var n,i,r=[e];while(n=r.pop())if(i=n.children,n.isExpand&&i.length)for(var o=i.length,a=o-1;a>=0;a--){var s=i[a];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},r.push(s)}}function gO(t,e){var n=t.isExpand?t.children:[],i=t.parentNode.children,r=t.hierNode.i?i[t.hierNode.i-1]:null;if(n.length){bO(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(t.hierNode.prelim=r.hierNode.prelim+e(t,r),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else r&&(t.hierNode.prelim=r.hierNode.prelim+e(t,r));t.parentNode.hierNode.defaultAncestor=_O(t,r,t.parentNode.hierNode.defaultAncestor||i[0],e)}function vO(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function mO(t){return arguments.length?t:CO}function yO(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function xO(t,e){return zf(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function bO(t){var e=t.children,n=e.length,i=0,r=0;while(--n>=0){var o=e[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}function _O(t,e,n,i){if(e){var r=t,o=t,a=o.parentNode.children[0],s=e,l=r.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,h=s.hierNode.modifier;while(s=wO(s),o=SO(o),s&&o){r=wO(r),a=SO(a),r.hierNode.ancestor=t;var d=s.hierNode.prelim+h-o.hierNode.prelim-u+i(s,o);d>0&&(IO(MO(s,t,n),t,d),u+=d,l+=d),h+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=r.hierNode.modifier,c+=a.hierNode.modifier}s&&!wO(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=h-l),o&&!SO(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=t)}return n}function wO(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function SO(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function MO(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function IO(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}function CO(t,e){return t.parentNode===e.parentNode?1:2}var TO=function(){function t(){this.parentPoint=[],this.childPoints=[]}return t}(),AO=function(t){function e(e){return t.call(this,e)||this}return v(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new TO},e.prototype.buildPath=function(t,e){var n=e.childPoints,i=n.length,r=e.parentPoint,o=n[0],a=n[i-1];if(1===i)return t.moveTo(r[0],r[1]),void t.lineTo(o[0],o[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=ao(e.forkPosition,1),h=[];h[l]=r[l],h[u]=r[u]+(a[u]-r[u])*c,t.moveTo(r[0],r[1]),t.lineTo(h[0],h[1]),t.moveTo(o[0],o[1]),h[l]=o[l],t.lineTo(h[0],h[1]),h[l]=a[l],t.lineTo(h[0],h[1]),t.lineTo(a[0],a[1]);for(var d=1;d<i-1;d++){var p=n[d];t.moveTo(p[0],p[1]),h[l]=p[l],t.lineTo(h[0],h[1])}},e}(Bl),DO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._mainGroup=new Wr,n}return v(e,t),e.prototype.init=function(t,e){this._controller=new SP(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,e,n){var i=t.getData(),r=t.layoutInfo,o=this._mainGroup,a=t.get("layout");"radial"===a?(o.x=r.x+r.width/2,o.y=r.y+r.height/2):(o.x=r.x,o.y=r.y),this._updateViewCoordSys(t),this._updateController(t,e,n);var s=this._data;i.diff(s).add((function(e){kO(i,e)&&LO(i,e,null,o,t)})).update((function(e,n){var r=s.getItemGraphicEl(n);kO(i,e)?LO(i,e,r,o,t):r&&OO(s,n,r,o,t)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&OO(s,e,n,o,t)})).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),!0===t.get("expandAndCollapse")&&i.eachItemGraphicEl((function(e,i){e.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:i})}))})),this._data=i},e.prototype._updateViewCoordSys=function(t){var e=t.getData(),n=[];e.each((function(t){var i=e.getItemLayout(t);!i||isNaN(i.x)||isNaN(i.y)||n.push([+i.x,+i.y])}));var i=[],r=[];Vs(n,i,r);var o=this._min,a=this._max;r[0]-i[0]===0&&(i[0]=o?o[0]:i[0]-1,r[0]=a?a[0]:r[0]+1),r[1]-i[1]===0&&(i[1]=o?o[1]:i[1]-1,r[1]=a?a[1]:r[1]+1);var s=t.coordinateSystem=new KP;s.zoomLimit=t.get("scaleLimit"),s.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1]),s.setCenter(t.get("center")),s.setZoom(t.get("zoom")),this.group.attr({x:s.x,y:s.y,scaleX:s.scaleX,scaleY:s.scaleY}),this._min=i,this._max=r},e.prototype._updateController=function(t,e,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker((function(e,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!TP(e,n,t)})),r.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(e){MP(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){IP(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),i._updateNodeAndLinkScale(t),n.updateLabelLayout()}))},e.prototype._updateNodeAndLinkScale=function(t){var e=t.getData(),n=this._getNodeGlobalScale(t);e.eachItemGraphicEl((function(t,e){t.setSymbolScale(n)}))},e.prototype._getNodeGlobalScale=function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=this._nodeScaleRatio,i=e.scaleX||1,r=e.getZoom(),o=(r-1)*n+1;return o/i},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(vy);function kO(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)}function LO(t,e,n,i,r){var o=!n,a=t.tree.getNodeByDataIndex(e),s=a.getModel(),l=a.getVisual("style").fill,u=!1===a.isExpand&&0!==a.children.length?l:"#fff",c=t.tree.root,h=a.parentNode===c?a:a.parentNode||a,d=t.getItemGraphicEl(h.dataIndex),p=h.getLayout(),f=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:p,g=a.getLayout();o?(n=new LA(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.x=f.x,n.y=f.y):n.updateData(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=g.rawX,n.__radialRawY=g.rawY,i.add(n),t.setItemGraphicEl(e,n),n.__oldX=n.x,n.__oldY=n.y,Md(n,{x:g.x,y:g.y},r);var v=n.getSymbolPath();if("radial"===r.get("layout")){var m=c.children[0],y=m.getLayout(),x=m.children.length,b=void 0,_=void 0;if(g.x===y.x&&!0===a.isExpand){var w={x:(m.children[0].getLayout().x+m.children[x-1].getLayout().x)/2,y:(m.children[0].getLayout().y+m.children[x-1].getLayout().y)/2};b=Math.atan2(w.y-y.y,w.x-y.x),b<0&&(b=2*Math.PI+b),_=w.x<y.x,_&&(b-=Math.PI)}else b=Math.atan2(g.y-y.y,g.x-y.x),b<0&&(b=2*Math.PI+b),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(_=g.x<y.x,_&&(b-=Math.PI)):(_=g.x>y.x,_||(b-=Math.PI));var S=_?"left":"right",M=s.getModel("label"),I=M.get("rotate"),C=I*(Math.PI/180),T=v.getTextContent();T&&(v.setTextConfig({position:M.get("position")||S,rotation:null==I?-b:C,origin:"center"}),T.setStyle("verticalAlign","middle"))}var A=s.get(["emphasis","focus"]),D="ancestor"===A?a.getAncestorsIndices():"descendant"===A?a.getDescendantIndices():null;D&&(vu(n).focus=D),PO(r,a,c,n,f,p,g,i),n.__edge&&(n.onHoverStateChange=function(e){if("blur"!==e){var i=a.parentNode&&t.getItemGraphicEl(a.parentNode.dataIndex);i&&i.hoverState===_u||Gu(n.__edge,e)}})}function PO(t,e,n,i,r,o,a,s){var l=e.getModel(),u=t.get("edgeShape"),c=t.get("layout"),h=t.getOrient(),d=t.get(["lineStyle","curveness"]),p=t.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),g=i.__edge;if("curve"===u)e.parentNode&&e.parentNode!==n&&(g||(g=i.__edge=new Fh({shape:EO(c,h,d,r,r)})),Md(g,{shape:EO(c,h,d,o,a)},t));else if("polyline"===u)if("orthogonal"===c){if(e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var v=e.children,m=[],y=0;y<v.length;y++){var x=v[y].getLayout();m.push([x.x,x.y])}g||(g=i.__edge=new AO({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:h,forkPosition:p}})),Md(g,{shape:{parentPoint:[a.x,a.y],childPoints:m}},t)}}else 0;g&&(g.useStyle(W({strokeNoScale:!0,fill:null},f)),bc(g,l,"lineStyle"),qu(g),s.add(g))}function OO(t,e,n,i,r){var o,a=t.tree.getNodeByDataIndex(e),s=t.tree.root,l=a.parentNode===s?a:a.parentNode||a;while(o=l.getLayout(),null==o)l=l.parentNode===s?l:l.parentNode||l;var u={duration:r.get("animationDurationUpdate"),easing:r.get("animationEasingUpdate")};Cd(n,{x:o.x+1,y:o.y+1},r,{cb:function(){i.remove(n),t.setItemGraphicEl(e,null)},removeOpt:u}),n.fadeOut(null,{fadeLabel:!0,animation:u});var c=t.getItemGraphicEl(l.dataIndex),h=c.__edge,d=n.__edge||(!1===l.isExpand||1===l.children.length?h:void 0),p=r.get("edgeShape"),f=r.get("layout"),g=r.get("orient"),v=r.get(["lineStyle","curveness"]);d&&("curve"===p?Cd(d,{shape:EO(f,g,v,o,o),style:{opacity:0}},r,{cb:function(){i.remove(d)},removeOpt:u}):"polyline"===p&&"orthogonal"===r.get("layout")&&Cd(d,{shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]]},style:{opacity:0}},r,{cb:function(){i.remove(d)},removeOpt:u}))}function EO(t,e,n,i,r){var o,a,s,l,u,c,h,d;if("radial"===t){u=i.rawX,h=i.rawY,c=r.rawX,d=r.rawY;var p=yO(u,h),f=yO(u,h+(d-h)*n),g=yO(c,d+(h-d)*n),v=yO(c,d);return{x1:p.x||0,y1:p.y||0,x2:v.x||0,y2:v.y||0,cpx1:f.x||0,cpy1:f.y||0,cpx2:g.x||0,cpy2:g.y||0}}return u=i.x,h=i.y,c=r.x,d=r.y,"LR"!==e&&"RL"!==e||(o=u+(c-u)*n,a=h,s=c+(u-c)*n,l=d),"TB"!==e&&"BT"!==e||(o=u,a=h+(d-h)*n,s=c,l=d+(h-d)*n),{x1:u,y1:h,x2:c,y2:d,cpx1:o,cpy1:a,cpx2:s,cpy2:l}}var RO=DO,NO=ta();function zO(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,GO(e,n,t),Z(n,(function(n){Z(e.TRANSFERABLE_METHODS,(function(e){n.wrapMethod(e,it(BO,t))}))})),e.wrapMethod("cloneShallow",it(FO,t)),Z(e.CHANGABLE_METHODS,(function(n){e.wrapMethod(n,it(VO,t))})),wt(n[e.dataType]===e)}function BO(t,e){if(WO(this)){var n=$({},NO(this).datas);n[this.dataType]=e,GO(e,n,t)}else jO(e,this.dataType,NO(this).mainData,t);return e}function VO(t,e){return t.struct&&t.struct.update(),e}function FO(t,e){return Z(NO(e).datas,(function(n,i){n!==e&&jO(n.cloneShallow(),i,e,t)})),e}function HO(t){var e=NO(this).mainData;return null==t||null==e?e:NO(e).datas[t]}function $O(){var t=NO(this).mainData;return null==t?[{data:t}]:q(tt(NO(t).datas),(function(e){return{type:e,data:NO(t).datas[e]}}))}function WO(t){return NO(t).mainData===t}function GO(t,e,n){NO(t).datas={},Z(e,(function(e,i){jO(e,i,t,n)}))}function jO(t,e,n,i){NO(n).datas[e]=t,NO(t).mainData=n,t.dataType=e,i.struct&&(t[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=t),t.getLinkedData=HO,t.getLinkedDataAll=$O}var YO=zO,XO=function(){function t(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(t,e,n){"function"===typeof t&&(n=e,e=t,t=null),t=t||{},at(t)&&(t={order:t});var i,r=t.order||"preorder",o=this[t.attr||"children"];"preorder"===r&&(i=e.call(n,this));for(var a=0;!i&&a<o.length;a++)o[a].eachNode(t,e,n);"postorder"===r&&e.call(n,this)},t.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(t+1),i.height>e&&(e=i.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e<i;e++){var r=n[e].getNodeById(t);if(r)return r}},t.prototype.contains=function(t){if(t===this)return!0;for(var e=0,n=this.children,i=n.length;e<i;e++){var r=n[e].contains(t);if(r)return r}},t.prototype.getAncestors=function(t){var e=[],n=t?this:this.parentNode;while(n)e.push(n),n=n.parentNode;return e.reverse(),e},t.prototype.getAncestorsIndices=function(){var t=[],e=this;while(e)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},t.prototype.getDescendantIndices=function(){var t=[];return this.eachNode((function(e){t.push(e.dataIndex)})),t},t.prototype.getValue=function(t){var e=this.hostTree.data;return e.get(e.getDimension(t||"value"),this.dataIndex)},t.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.isAncestorOf=function(t){var e=t.parentNode;while(e){if(e===this)return!0;e=e.parentNode}return!1},t.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},t}(),UO=function(){function t(t){this.type="tree",this._nodes=[],this.hostModel=t}return t.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},t.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},t.prototype.getNodeById=function(t){return this.root.getNodeById(t)},t.prototype.update=function(){for(var t=this.data,e=this._nodes,n=0,i=e.length;n<i;n++)e[n].dataIndex=-1;for(n=0,i=t.count();n<i;n++)e[t.getRawIndex(n)].dataIndex=n},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(e,n,i){var r=new t(n),o=[],a=1;function s(t,e){var n=t.value;a=Math.max(a,rt(n)?n.length:1),o.push(t);var i=new XO(Yo(t.name,""),r);e?ZO(i,e):r.root=i,r._nodes.push(i);var l=t.children;if(l)for(var u=0;u<l.length;u++)s(l[u],i)}s(e),r.root.updateDepthAndHeight(0);var l=jM(o,{coordDimensions:["value"],dimensionsCount:a}),u=new FM(l,n);return u.initData(o),i&&i(u),YO({mainData:u,struct:r,structAttr:"tree"}),r.update(),r},t}();function ZO(t,e){var n=e.children;t.parentNode!==e&&(n.push(t),t.parentNode=e)}var qO=UO;function KO(t,e,n){if(t&&j(e,t.type)>=0){var i=n.getData().tree.root,r=t.targetNode;if("string"===typeof r&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=t.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function JO(t){var e=[];while(t)t=t.parentNode,t&&e.push(t);return e.reverse()}function QO(t,e){var n=JO(t);return j(n,e)>=0}function tE(t,e){var n=[];while(t){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}var eE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return v(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=t.leaves||{},i=new yp(n,this,this.ecModel),r=qO.createTree(e,this,o);function o(t){t.wrapMethod("getItemModel",(function(t,e){var n=r.getNodeByDataIndex(e);return n&&n.children.length&&n.isExpand||(t.parentModel=i),t}))}var a=0;r.eachNode("preorder",(function(t){t.depth>a&&(a=t.depth)}));var s=t.expandAndCollapse,l=s&&t.initialTreeDepth>=0?t.initialTreeDepth:a;return r.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=l})),r.data},e.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,e,n){var i=this.getData().tree,r=i.root.children[0],o=i.getNodeByDataIndex(t),a=o.getValue(),s=o.name;while(o&&o!==r)s=o.parentNode.name+"."+s,o=o.parentNode;return Lm("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=tE(i,this),n},e.type="series.tree",e.layoutMode="box",e.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",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(ry),nE=eE;function iE(t,e,n){var i,r=[t],o=[];while(i=r.pop())if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;s<a.length;s++)r.push(a[s])}while(i=o.pop())e(i,n)}function rE(t,e){var n,i=[t];while(n=i.pop())if(e(n),n.isExpand){var r=n.children;if(r.length)for(var o=r.length-1;o>=0;o--)i.push(r[o])}}function oE(t,e){t.eachSeriesByType("tree",(function(t){aE(t,e)}))}function aE(t,e){var n=xO(t,e);t.layoutInfo=n;var i=t.get("layout"),r=0,o=0,a=null;"radial"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,a=mO((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(r=n.width,o=n.height,a=mO());var s=t.getData().tree.root,l=s.children[0];if(l){fO(s),iE(l,gO,a),s.hierNode.modifier=-l.hierNode.prelim,rE(l,vO);var u=l,c=l,h=l;rE(l,(function(t){var e=t.getLayout().x;e<u.getLayout().x&&(u=t),e>c.getLayout().x&&(c=t),t.depth>h.depth&&(h=t)}));var d=u===c?1:a(u,c)/2,p=d-u.getLayout().x,f=0,g=0,v=0,m=0;if("radial"===i)f=r/(c.getLayout().x+d+p),g=o/(h.depth-1||1),rE(l,(function(t){v=(t.getLayout().x+p)*f,m=(t.depth-1)*g;var e=yO(v,m);t.setLayout({x:e.x,y:e.y,rawX:v,rawY:m},!0)}));else{var y=t.getOrient();"RL"===y||"LR"===y?(g=o/(c.getLayout().x+d+p),f=r/(h.depth-1||1),rE(l,(function(t){m=(t.getLayout().x+p)*g,v="LR"===y?(t.depth-1)*f:r-(t.depth-1)*f,t.setLayout({x:v,y:m},!0)}))):"TB"!==y&&"BT"!==y||(f=r/(c.getLayout().x+d+p),g=o/(h.depth-1||1),rE(l,(function(t){v=(t.getLayout().x+p)*f,m="TB"===y?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:v,y:m},!0)})))}}}function sE(t){t.eachSeriesByType("tree",(function(t){var e=t.getData(),n=e.tree;n.eachNode((function(t){var n=t.getModel(),i=n.getModel("itemStyle").getItemStyle(),r=e.ensureUniqueItemVisual(t.dataIndex,"style");$(r,i)}))}))}function lE(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=t.dataIndex,i=e.getData().tree,r=i.getNodeByDataIndex(n);r.isExpand=!r.isExpand}))})),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=e.coordinateSystem,i=uO(n,t);e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom)}))}))}function uE(t){t.registerChartView(RO),t.registerSeriesModel(nE),t.registerLayout(oE),t.registerVisual(sE),lE(t)}var cE=function(){},hE=["treemapZoomToNode","treemapRender","treemapMove"];function dE(t){for(var e=0;e<hE.length;e++)t.registerAction({type:hE[e],update:"updateView"},cE);t.registerAction({type:"treemapRootToNode",update:"updateView"},(function(t,e){function n(e,n){var i=["treemapZoomToNode","treemapRootToNode"],r=KO(t,i,e);if(r){var o=e.getViewRoot();o&&(t.direction=QO(o,r.node)?"rollUp":"drillDown"),e.resetViewRoot(r.node)}}e.eachComponent({mainType:"series",subType:"treemap",query:t},n)}))}function pE(t){var e=t.getData(),n=e.tree,i={};n.eachNode((function(e){var n=e;while(n&&n.depth>1)n=n.parentNode;var r=_g(t.ecModel,n.name||n.dataIndex+"",i);e.setVisual("decal",r)}))}var fE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return v(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};gE(n);var i=t.levels||[],r=this.designatedVisualItemStyle={},o=new yp({itemStyle:r},this,e);i=t.levels=vE(i,e);var a=q(i||[],(function(t){return new yp(t,o,e)}),this),s=qO.createTree(n,this,l);function l(t){t.wrapMethod("getItemModel",(function(t,e){var n=s.getNodeByDataIndex(e),i=n?a[n.depth]:null;return t.parentModel=i||o,t}))}return s.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t),o=i.getName(t);return Lm("nameValue",{name:o,value:r})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=tE(i,this),n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},$(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=At(),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){pE(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(ry);function gE(t){var e=0;Z(t.children,(function(t){gE(t);var n=t.value;rt(n)&&(n=n[0]),e+=n}));var n=t.value;rt(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),rt(t.value)?t.value[0]=n:t.value=n}function vE(t,e){var n=Po(e.get("color")),i=Po(e.get(["aria","decal","decals"]));if(n){var r,o;t=t||[],Z(t,(function(t){var e=new yp(t),n=e.get("color"),i=e.get("decal");(e.get(["itemStyle","color"])||n&&"none"!==n)&&(r=!0),(e.get(["itemStyle","decal"])||i&&"none"!==i)&&(o=!0)}));var a=t[0]||(t[0]={});return r||(a.color=n.slice()),!o&&i&&(a.decal=i.slice()),t}}var mE=fE,yE=8,xE=8,bE=5,_E=function(){function t(t){this.group=new Wr,t.add(this.group)}return t.prototype.render=function(t,e,n,i){var r=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&n){var a=r.getModel("itemStyle"),s=a.getModel("textStyle"),l={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,l,s),this._renderContent(t,l,a,s,i),Bf(o,l.pos,l.box)}},t.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var r=Yo(i.getModel().get("name"),""),o=n.getTextRect(r),a=Math.max(o.width+2*yE,e.emptyItemWidth);e.totalWidth+=a+xE,e.renderList.push({node:i,text:r,width:a})}},t.prototype._renderContent=function(t,e,n,i,r){for(var o=0,a=e.emptyItemWidth,s=t.get(["breadcrumb","height"]),l=Nf(e.pos,e.box),u=e.totalWidth,c=e.renderList,h=c.length-1;h>=0;h--){var d=c[h],p=d.node,f=d.width,g=d.text;u>l.width&&(u-=f-a,f=a,g=null);var v=new Ah({shape:{points:wE(o,0,f,s,h===c.length-1,0===h)},style:W(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new gu({style:{text:g,fill:i.getTextColor(),font:i.getFont()}}),textConfig:{position:"inside"},z2:1e4*Iu,onclick:it(r,p)});v.disableLabelAnimation=!0,this.group.add(v),SE(v,t,p),o+=f+xE}},t.prototype.remove=function(){this.group.removeAll()},t}();function wE(t,e,n,i,r,o){var a=[[r?t:t-bE,e],[t+n,e],[t+n,e+i],[r?t:t-bE,e+i]];return!o&&a.splice(2,0,[t+n+bE,e+i/2]),!r&&a.push([t,e+i/2]),a}function SE(t,e,n){vu(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.componentIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&tE(n,e)}}var ME=_E,IE=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,n,i,r){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:i,easing:r}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,r=this._storage.length;i<r;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},t}();function CE(){return new IE}var TE=Wr,AE=eu,DE=3,kE="label",LE="upperLabel",PE=10*Iu,OE=2*Iu,EE=3*Iu,RE=Ca([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),NE=function(t){var e=RE(t);return e.stroke=e.fill=e.lineWidth=null,e},zE=ta(),BE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._state="ready",n._storage=VE(),n}return v(e,t),e.prototype.render=function(t,e,n,i){var r=e.findComponents({mainType:"series",subType:"treemap",query:i});if(!(j(r,t)<0)){this.seriesModel=t,this.api=n,this.ecModel=e;var o=["treemapZoomToNode","treemapRootToNode"],a=KO(i,o,t),s=i&&i.type,l=t.layoutInfo,u=!this._oldTree,c=this._storage,h="treemapRootToNode"===s&&a&&c?{rootNodeGroup:c.nodeGroup[a.node.getRawIndex()],direction:i.direction}:null,d=this._giveContainerGroup(l),p=this._doRender(d,t,h);u||s&&"treemapZoomToNode"!==s&&"treemapRootToNode"!==s?p.renderFinally():this._doAnimation(d,p,t,h),this._resetController(n),this._renderBreadcrumb(t,n,a)}},e.prototype._giveContainerGroup=function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new TE,this._initEvents(e),this.group.add(e)),e.x=t.x,e.y=t.y,e},e.prototype._doRender=function(t,e,n){var i=e.getData().tree,r=this._oldTree,o=VE(),a=VE(),s=this._storage,l=[];function u(t,i,r,u){return FE(e,a,s,n,o,l,t,i,r,u)}h(i.root?[i.root]:[],r&&r.root?[r.root]:[],t,i===r||!r,0);var c=d(s);return this._oldTree=i,this._storage=a,{lastsForAnimation:o,willDeleteEls:c,renderFinally:p};function h(t,e,n,i,r){function o(t){return t.getId()}function a(o,a){var s=null!=o?t[o]:null,l=null!=a?e[a]:null,c=u(s,l,n,r);c&&h(s&&s.viewChildren||[],l&&l.viewChildren||[],c,i,r+1)}i?(e=t,Z(t,(function(t,e){!t.isRemoved()&&a(e,e)}))):new aM(e,t,o,o).add(a).update(a).remove(it(a,null)).execute()}function d(t){var e=VE();return t&&Z(t,(function(t,n){var i=e[n];Z(t,(function(t){t&&(i.push(t),zE(t).willDelete=!0)}))})),e}function p(){Z(c,(function(t){Z(t,(function(t){t.parent&&t.parent.remove(t)}))})),Z(l,(function(t){t.invisible=!0,t.dirty()}))}},e.prototype._doAnimation=function(t,e,n,i){if(n.get("animation")){var r=n.get("animationDurationUpdate"),o=n.get("animationEasing"),a=(ot(r)?0:r)||0,s=(ot(o)?null:o)||"cubicOut",l=CE();Z(e.willDeleteEls,(function(t,e){Z(t,(function(t,n){if(!t.invisible){var r,o=t.parent,u=zE(o);if(i&&"drillDown"===i.direction)r=o===i.rootNodeGroup?{shape:{x:0,y:0,width:u.nodeWidth,height:u.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,h=0;u.willDelete||(c=u.nodeWidth/2,h=u.nodeHeight/2),r="nodeGroup"===e?{x:c,y:h,style:{opacity:0}}:{shape:{x:c,y:h,width:0,height:0},style:{opacity:0}}}r&&l.add(t,r,a,0,s)}}))})),Z(this._storage,(function(t,n){Z(t,(function(t,i){var r=e.lastsForAnimation[n][i],o={};r&&(t instanceof Wr?null!=r.oldX&&(o.x=t.x,o.y=t.y,t.x=r.oldX,t.y=r.oldY):(r.oldShape&&(o.shape=$({},t.shape),t.setShape(r.oldShape)),r.fadein?(t.setStyle("opacity",0),o.style={opacity:1}):1!==t.style.opacity&&(o.style={opacity:1})),l.add(t,o,a,0,s))}))}),this),this._state="animating",l.finished(nt((function(){this._state="ready",e.renderFinally()}),this)).start()}},e.prototype._resetController=function(t){var e=this._controller;e||(e=this._controller=new SP(t.getZr()),e.enable(this.seriesModel.get("roam")),e.on("pan",nt(this._onPan,this)),e.on("zoom",nt(this._onZoom,this)));var n=new mr(0,0,t.getWidth(),t.getHeight());e.setPointerChecker((function(t,e,i){return n.contain(e,i)}))},e.prototype._clearController=function(){var t=this._controller;t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if("animating"!==this._state&&(Math.abs(t.dx)>DE||Math.abs(t.dy)>DE)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var e=t.originX,n=t.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var o=new mr(r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo;e-=a.x,n-=a.y;var s=Fi();Gi(s,s,[-e,-n]),Yi(s,s,[t.scale,t.scale]),Gi(s,s,[e,n]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},e.prototype._initEvents=function(t){var e=this;t.on("click",(function(t){if("ready"===e._state){var n=e.seriesModel.get("nodeClick",!0);if(n){var i=e.findTarget(t.offsetX,t.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)e._rootToNode(i);else if("zoomToNode"===n)e._zoomToNode(i);else if("link"===n){var o=r.hostTree.data.getItemModel(r.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&kf(a,s)}}}}}),this)},e.prototype._renderBreadcrumb=function(t,e,n){var i=this;n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2),n||(n={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new ME(this.group))).render(t,e,n.node,(function(e){"animating"!==i._state&&(QO(t.getViewRoot(),e)?i._rootToNode({node:e}):i._zoomToNode({node:e}))}))},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=VE(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,e){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},(function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(t,e),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}}),this),n},e.type="treemap",e}(vy);function VE(){return{nodeGroup:[],background:[],content:[]}}function FE(t,e,n,i,r,o,a,s,l,u){if(a){var c=a.getLayout(),h=t.getData(),d=a.getModel();if(h.setItemGraphicEl(a.dataIndex,null),c&&c.isInView){var p=c.width,f=c.height,g=c.borderWidth,v=c.invisible,m=a.getRawIndex(),y=s&&s.getRawIndex(),x=a.viewChildren,b=c.upperHeight,_=x&&x.length,w=d.getModel("itemStyle"),S=d.getModel(["emphasis","itemStyle"]),M=d.getModel(["blur","itemStyle"]),I=d.getModel(["select","itemStyle"]),C=w.get("borderRadius")||0,T=B("nodeGroup",TE);if(T){if(l.add(T),T.x=c.x||0,T.y=c.y||0,T.markRedraw(),zE(T).nodeWidth=p,zE(T).nodeHeight=f,c.isAboveViewRoot)return T;var A=B("background",AE,u,OE);A&&O(T,A,_&&c.upperLabelHeight);var D=d.get(["emphasis","focus"]),k=d.get(["emphasis","blurScope"]),L="ancestor"===D?a.getAncestorsIndices():"descendant"===D?a.getDescendantIndices():D;if(_)wc(T)&&_c(T,!1),A&&(_c(A,!0),h.setItemGraphicEl(a.dataIndex,A),mc(A,L,k));else{var P=B("content",AE,u,EE);P&&E(T,P),A&&wc(A)&&_c(A,!1),_c(T,!0),h.setItemGraphicEl(a.dataIndex,T),mc(T,L,k)}return T}}}function O(e,n,i){var r=vu(n);if(r.dataIndex=a.dataIndex,r.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:p,height:f,r:C}),v)R(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=NE(w);l.fill=s;var u=RE(S);u.fill=S.get("borderColor");var c=RE(M);c.fill=M.get("borderColor");var h=RE(I);if(h.fill=I.get("borderColor"),i){var d=p-2*g;N(n,s,o.opacity,{x:g,y:0,width:d,height:b})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=c,n.ensureState("select").style=h,qu(n)}e.add(n)}function E(e,n){var i=vu(n);i.dataIndex=a.dataIndex,i.seriesIndex=t.seriesIndex;var r=Math.max(p-2*g,0),o=Math.max(f-2*g,0);if(n.culling=!0,n.setShape({x:g,y:g,width:r,height:o,r:C}),v)R(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,u=NE(w);u.fill=l,u.decal=s.decal;var c=RE(S),h=RE(M),d=RE(I);N(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=h,n.ensureState("select").style=d,qu(n)}e.add(n)}function R(t){!t.invisible&&o.push(t)}function N(e,n,i,r){var o=d.getModel(r?LE:kE),s=Yo(d.get("name"),null),l=o.getShallow("show");Xd(e,Ud(d,r?LE:kE),{defaultText:l?s:null,inheritColor:n,defaultOpacity:i,labelFetcher:t,labelDataIndex:a.dataIndex});var u=e.getTextContent(),h=u.style,p=_t(h.padding||0);r&&(e.setTextConfig({layoutRect:r}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var t=Math.max((r?r.width:e.shape.width)-p[1]-p[3],0),n=Math.max((r?r.height:e.shape.height)-p[0]-p[2],0);h.width===t&&h.height===n||u.setStyle({width:t,height:n})},h.truncateMinChar=2,h.lineOverflow="truncate",z(h,r,c);var f=u.getState("emphasis");z(f?f.style:null,r,c)}function z(e,n,i){var r=e?e.text:null;if(!n&&i.isLeafRoot&&null!=r){var o=t.get("drillDownIcon",!0);e.text=o?o+" "+r:r}}function B(t,i,o,a){var s=null!=y&&n[t][y],l=r[t];return s?(n[t][y]=null,V(l,s)):v||(s=new i,s instanceof os&&(s.z2=HE(o,a)),F(l,s)),e[t][m]=s}function V(t,e){var n=t[m]={};e instanceof TE?(n.oldX=e.x,n.oldY=e.y):n.oldShape=$({},e.shape)}function F(t,e){var n=t[m]={},o=a.parentNode,s=e instanceof Wr;if(o&&(!i||"drillDown"===i.direction)){var l=0,u=0,c=r.background[o.getRawIndex()];!i&&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 HE(t,e){return t*PE+e}var $E=BE,WE=Z,GE=ut,jE=-1,YE=function(){function t(e){var n=e.mappingMethod,i=e.type,r=this.option=V(e);this.type=i,this.mappingMethod=n,this._normalizeData=rR[n];var o=t.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(ZE(r),XE(r)):"category"===n?r.categories?UE(r):ZE(r,!0):(wt("linear"!==n||r.dataExtent),ZE(r))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return nt(this._normalizeData,this)},t.listVisualTypes=function(){return tt(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){ut(t)?Z(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,i){var r,o=rt(e)?[]:ut(e)?{}:(r=!0,null);return t.eachVisual(e,(function(t,e){var a=n.call(i,t,e);r?o=a:o[e]=a})),o},t.retrieveVisuals=function(e){var n,i={};return e&&WE(t.visualHandlers,(function(t,r){e.hasOwnProperty(r)&&(i[r]=e[r],n=!0)})),n?i:null},t.prepareVisualTypes=function(t){if(rt(t))t=t.slice();else{if(!GE(t))return[];var e=[];WE(t,(function(t,n){e.push(n)})),t=e}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var i,r=1/0,o=0,a=e.length;o<a;o++){var s=e[o].value;if(null!=s){if(s===t||"string"===typeof s&&s===t+"")return o;n&&h(s,o)}}for(o=0,a=e.length;o<a;o++){var l=e[o],u=l.interval,c=l.close;if(u){if(u[0]===-1/0){if(oR(c[1],t,u[1]))return o}else if(u[1]===1/0){if(oR(c[0],u[0],t))return o}else if(oR(c[0],u[0],t)&&oR(c[1],t,u[1]))return o;n&&h(u[0],o),n&&h(u[1],o)}}if(n)return t===1/0?e.length-1:t===-1/0?0:i;function h(e,n){var o=Math.abs(e-t);o<r&&(r=o,i=n)}},t.visualHandlers={color:{applyVisual:JE("color"),getColorMapper:function(){var t=this.option;return nt("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),QE.call(this,t)}:function(e,n,i){var r=!!i;return!n&&(e=this._normalizeData(e)),i=Bn(e,t.parsedVisual,i),r?i:Gn(i,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Gn(Bn(t,this.option.parsedVisual),"rgba")},category:QE,piecewise:function(t,e){var n=nR.call(this,e);return null==n&&(n=Gn(Bn(t,this.option.parsedVisual),"rgba")),n},fixed:tR}},colorHue:qE((function(t,e){return $n(t,e)})),colorSaturation:qE((function(t,e){return $n(t,null,e)})),colorLightness:qE((function(t,e){return $n(t,null,null,e)})),colorAlpha:qE((function(t,e){return Wn(t,e)})),decal:{applyVisual:JE("decal"),_normalizedToVisual:{linear:null,category:QE,piecewise:null,fixed:null}},opacity:{applyVisual:JE("opacity"),_normalizedToVisual:eR([0,1])},liftZ:{applyVisual:JE("liftZ"),_normalizedToVisual:{linear:tR,category:tR,piecewise:tR,fixed:tR}},symbol:{applyVisual:function(t,e,n){var i=this.mapValueToVisual(t);n("symbol",i)},_normalizedToVisual:{linear:KE,category:QE,piecewise:function(t,e){var n=nR.call(this,e);return null==n&&(n=KE.call(this,t)),n},fixed:tR}},symbolSize:{applyVisual:JE("symbolSize"),_normalizedToVisual:eR([0,1])}},t}();function XE(t){var e=t.pieceList;t.hasSpecialVisual=!1,Z(e,(function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)}))}function UE(t){var e=t.categories,n=t.categoryMap={},i=t.visual;if(WE(e,(function(t,e){n[t]=e})),!rt(i)){var r=[];ut(i)?WE(i,(function(t,e){var i=n[e];r[null!=i?i:jE]=t})):r[jE]=i,i=iR(t,r)}for(var o=e.length-1;o>=0;o--)null==i[o]&&(delete n[e[o]],e.pop())}function ZE(t,e){var n=t.visual,i=[];ut(n)?WE(n,(function(t){i.push(t)})):null!=n&&i.push(n);var r={color:1,symbol:1};e||1!==i.length||r.hasOwnProperty(t.type)||(i[1]=i[0]),iR(t,i)}function qE(t){return{applyVisual:function(e,n,i){var r=this.mapValueToVisual(e);i("color",t(n("color"),r))},_normalizedToVisual:eR([0,1])}}function KE(t){var e=this.option.visual;return e[Math.round(oo(t,[0,1],[0,e.length-1],!0))]||{}}function JE(t){return function(e,n,i){i(t,this.mapValueToVisual(e))}}function QE(t){var e=this.option.visual;return e[this.option.loop&&t!==jE?t%e.length:t]}function tR(){return this.option.visual[0]}function eR(t){return{linear:function(e){return oo(e,t,this.option.visual,!0)},category:QE,piecewise:function(e,n){var i=nR.call(this,n);return null==i&&(i=oo(e,t,this.option.visual,!0)),i},fixed:tR}}function nR(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var i=YE.findPieceIndex(t,n),r=n[i];if(r&&r.visual)return r.visual[this.type]}}function iR(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=q(e,(function(t){return On(t)}))),e}var rR={linear:function(t){return oo(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=YE.findPieceIndex(t,e,!0);if(null!=n)return oo(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?jE:e},fixed:Pt};function oR(t,e,n){return t?e<=n:e<n}var aR=YE,sR="itemStyle",lR=ta(),uR={seriesType:"treemap",reset:function(t){var e=t.getData().tree,n=e.root;n.isRemoved()||cR(n,{},t.getViewRoot().getAncestors(),t)}};function cR(t,e,n,i){var r=t.getModel(),o=t.getLayout(),a=t.hostTree.data;if(o&&!o.invisible&&o.isInView){var s,l=r.getModel(sR),u=hR(l,e,i),c=a.ensureUniqueItemVisual(t.dataIndex,"style"),h=l.get("borderColor"),d=l.get("borderColorSaturation");null!=d&&(s=dR(u),h=pR(d,s)),c.stroke=h;var p=t.viewChildren;if(p&&p.length){var f=gR(t,r,o,l,u,p);Z(p,(function(t,e){if(t.depth>=n.length||t===n[t.depth]){var o=mR(r,u,t,e,f,i);cR(t,o,n,i)}}))}else s=dR(u),c.fill=s}}function hR(t,e,n){var i=$({},e),r=n.designatedVisualItemStyle;return Z(["color","colorAlpha","colorSaturation"],(function(n){r[n]=e[n];var o=t.get(n);r[n]=null,null!=o&&(i[n]=o)})),i}function dR(t){var e=fR(t,"color");if(e){var n=fR(t,"colorAlpha"),i=fR(t,"colorSaturation");return i&&(e=$n(e,null,null,i)),n&&(e=Wn(e,n)),e}}function pR(t,e){return null!=e?$n(e,null,null,t):null}function fR(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function gR(t,e,n,i,r,o){if(o&&o.length){var a=vR(e,"color")||null!=r.color&&"none"!==r.color&&(vR(e,"colorAlpha")||vR(e,"colorSaturation"));if(a){var s=e.get("visualMin"),l=e.get("visualMax"),u=n.dataExtent.slice();null!=s&&s<u[0]&&(u[0]=s),null!=l&&l>u[1]&&(u[1]=l);var c=e.get("colorMappingBy"),h={type:a.name,dataExtent:u,visual:a.range};"color"!==h.type||"index"!==c&&"id"!==c?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var d=new aR(h);return lR(d).drColorMappingBy=c,d}}}function vR(t,e){var n=t.get(e);return rt(n)&&n.length?{name:e,range:n}:null}function mR(t,e,n,i,r,o){var a=$({},e);if(r){var s=r.type,l="color"===s&&lR(r).drColorMappingBy,u="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[s]=r.mapValueToVisual(u)}return a}var yR=Math.max,xR=Math.min,bR=mt,_R=Z,wR=["itemStyle","borderWidth"],SR=["itemStyle","gapWidth"],MR=["upperLabel","show"],IR=["upperLabel","height"],CR={seriesType:"treemap",reset:function(t,e,n,i){var r=n.getWidth(),o=n.getHeight(),a=t.option,s=zf(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=ao(bR(s.width,l[0]),r),c=ao(bR(s.height,l[1]),o),h=i&&i.type,d=["treemapZoomToNode","treemapRootToNode"],p=KO(i,d,t),f="treemapRender"===h||"treemapMove"===h?i.rootRect:null,g=t.getViewRoot(),v=JO(g);if("treemapMove"!==h){var m="treemapZoomToNode"===h?ER(t,p,g,u,c):f?[f.width,f.height]:[u,c],y=a.sort;y&&"asc"!==y&&"desc"!==y&&(y="desc");var x={squareRatio:a.squareRatio,sort:y,leafDepth:a.leafDepth};g.hostTree.clearLayouts();var b={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};g.setLayout(b),TR(g,x,!1,0),b=g.getLayout(),_R(v,(function(t,e){var n=(v[e+1]||g).getValue();t.setLayout($({dataExtent:[n,n],borderWidth:0,upperHeight:0},b))}))}var _=t.getData().tree.root;_.setLayout(RR(s,f,p),!0),t.setLayoutInfo(s),NR(_,new mr(-s.x,-s.y,r,o),v,g,0)}};function TR(t,e,n,i){var r,o;if(!t.isRemoved()){var a=t.getLayout();r=a.width,o=a.height;var s=t.getModel(),l=s.get(wR),u=s.get(SR)/2,c=zR(s),h=Math.max(l,c),d=l-u,p=h-u;t.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:c},!0),r=yR(r-2*d,0),o=yR(o-d-p,0);var f=r*o,g=AR(t,s,f,e,n,i);if(g.length){var v={x:d,y:p,width:r,height:o},m=xR(r,o),y=1/0,x=[];x.area=0;for(var b=0,_=g.length;b<_;){var w=g[b];x.push(w),x.area+=w.getLayout().area;var S=PR(x,m,e.squareRatio);S<=y?(b++,y=S):(x.area-=x.pop().getLayout().area,OR(x,m,v,u,!1),m=xR(v.width,v.height),x.length=x.area=0,y=1/0)}if(x.length&&OR(x,m,v,u,!0),!n){var M=s.get("childrenVisibleMin");null!=M&&f<M&&(n=!0)}for(b=0,_=g.length;b<_;b++)TR(g[b],e,n,i+1)}}}function AR(t,e,n,i,r,o){var a=t.children||[],s=i.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=i.leafDepth&&i.leafDepth<=o;if(r&&!l)return t.viewChildren=[];a=J(a,(function(t){return!t.isRemoved()})),kR(a,s);var u=LR(e,a,s);if(0===u.sum)return t.viewChildren=[];if(u.sum=DR(e,n,u.sum,s,a),0===u.sum)return t.viewChildren=[];for(var c=0,h=a.length;c<h;c++){var d=a[c].getValue()/u.sum*n;a[c].setLayout({area:d})}return l&&(a.length&&t.setLayout({isLeafRoot:!0},!0),a.length=0),t.viewChildren=a,t.setLayout({dataExtent:u.dataExtent},!0),a}function DR(t,e,n,i,r){if(!i)return n;for(var o=t.get("visibleMin"),a=r.length,s=a,l=a-1;l>=0;l--){var u=r["asc"===i?a-l-1:l].getValue();u/n*e<o&&(s=l,n-=u)}return"asc"===i?r.splice(0,a-s):r.splice(s,a-s),n}function kR(t,e){return e&&t.sort((function(t,n){var i="asc"===e?t.getValue()-n.getValue():n.getValue()-t.getValue();return 0===i?"asc"===e?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:i})),t}function LR(t,e,n){for(var i=0,r=0,o=e.length;r<o;r++)i+=e[r].getValue();var a,s=t.get("visualDimension");return e&&e.length?"value"===s&&n?(a=[e[e.length-1].getValue(),e[0].getValue()],"asc"===n&&a.reverse()):(a=[1/0,-1/0],_R(e,(function(t){var e=t.getValue(s);e<a[0]&&(a[0]=e),e>a[1]&&(a[1]=e)}))):a=[NaN,NaN],{sum:i,dataExtent:a}}function PR(t,e,n){for(var i=0,r=1/0,o=0,a=void 0,s=t.length;o<s;o++)a=t[o].getLayout().area,a&&(a<r&&(r=a),a>i&&(i=a));var l=t.area*t.area,u=e*e*n;return l?yR(u*i/l,l/(u*r)):1/0}function OR(t,e,n,i,r){var o=e===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],c=e?t.area/e:0;(r||c>n[l[a]])&&(c=n[l[a]]);for(var h=0,d=t.length;h<d;h++){var p=t[h],f={},g=c?p.getLayout().area/c:0,v=f[l[a]]=yR(c-2*i,0),m=n[s[o]]+n[l[o]]-u,y=h===d-1||m<g?m:g,x=f[l[o]]=yR(y-2*i,0);f[s[a]]=n[s[a]]+xR(i,v/2),f[s[o]]=u+xR(i,x/2),u+=y,p.setLayout(f,!0)}n[s[a]]+=c,n[l[a]]-=c}function ER(t,e,n,i,r){var o,a=(e||{}).node,s=[i,r];if(!a||a===n)return s;var l=i*r,u=l*t.option.zoomToNodeRatio;while(o=a.parentNode){for(var c=0,h=o.children,d=0,p=h.length;d<p;d++)c+=h[d].getValue();var f=a.getValue();if(0===f)return s;u*=c/f;var g=o.getModel(),v=g.get(wR),m=Math.max(v,zR(g));u+=4*v*v+(3*v+m)*Math.pow(u,.5),u>go&&(u=go),a=o}u<l&&(u=l);var y=Math.pow(u/l,.5);return[i*y,r*y]}function RR(t,e,n){if(e)return{x:e.x,y:e.y};var i={x:0,y:0};if(!n)return i;var r=n.node,o=r.getLayout();if(!o)return i;var a=[o.width/2,o.height/2],s=r;while(s){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:t.width/2-a[0],y:t.height/2-a[1]}}function NR(t,e,n,i,r){var o=t.getLayout(),a=n[r],s=a&&a===t;if(!(a&&!s||r===n.length&&t!==i)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(o),isAboveViewRoot:s},!0);var l=new mr(e.x-o.x,e.y-o.y,e.width,e.height);_R(t.viewChildren||[],(function(t){NR(t,l,n,i,r+1)}))}}function zR(t){return t.get(MR)?t.get(IR):0}function BR(t){t.registerSeriesModel(mE),t.registerChartView($E),t.registerVisual(uR),t.registerLayout(CR),dE(t)}function VR(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),i=t.getGraph(),r=i.data,o=n.mapArray(n.getName);r.filterSelf((function(t){var n=r.getItemModel(t),i=n.getShallow("category");if(null!=i){"number"===typeof i&&(i=o[i]);for(var a=0;a<e.length;a++)if(!e[a].isSelected(i))return!1}return!0}))}))}function FR(t){var e={};t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),i=t.getData(),r={};n.each((function(i){var o=n.getName(i);r["ec-"+o]=i;var a=n.getItemModel(i),s=a.getModel("itemStyle").getItemStyle();s.fill||(s.fill=t.getColorFromPalette(o,e)),n.setItemVisual(i,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++){var c=a.getShallow(l[u],!0);null!=c&&n.setItemVisual(i,l[u],c)}})),n.count()&&i.each((function(t){var e=i.getItemModel(t),o=e.getShallow("category");if(null!=o){"string"===typeof o&&(o=r["ec-"+o]);var a=n.getItemVisual(o,"style"),s=i.ensureUniqueItemVisual(t,"style");$(s,a);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++)i.setItemVisual(t,l[u],n.getItemVisual(o,l[u]))}}))}))}function HR(t){return t instanceof Array||(t=[t,t]),t}function $R(t){t.eachSeriesByType("graph",(function(t){var e=t.getGraph(),n=t.getEdgeData(),i=HR(t.get("edgeSymbol")),r=HR(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each((function(t){var i=n.getItemModel(t),r=e.getEdgeByIndex(t),o=HR(i.getShallow("symbol",!0)),a=HR(i.getShallow("symbolSize",!0)),s=i.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(t,"style");switch($(l,s),l.stroke){case"source":var u=r.node1.getVisual("style");l.stroke=u&&u.fill;break;case"target":u=r.node2.getVisual("style");l.stroke=u&&u.fill;break}o[0]&&r.setVisual("fromSymbol",o[0]),o[1]&&r.setVisual("toSymbol",o[1]),a[0]&&r.setVisual("fromSymbolSize",a[0]),a[1]&&r.setVisual("toSymbolSize",a[1])}))}))}var WR="--\x3e",GR=function(t){return t.get("autoCurveness")||null},jR=function(t,e){var n=GR(t),i=20,r=[];if("number"===typeof n)i=n;else if(rt(n))return void(t.__curvenessList=n);e>i&&(i=e);var o=i%2?i+2:i+3;r=[];for(var a=0;a<o;a++)r.push((a%2?a+1:a)/10*(a%2?-1:1));t.__curvenessList=r},YR=function(t,e,n){var i=[t.id,t.dataIndex].join("."),r=[e.id,e.dataIndex].join(".");return[n.uid,i,r].join(WR)},XR=function(t){var e=t.split(WR);return[e[0],e[2],e[1]].join(WR)},UR=function(t,e){var n=YR(t.node1,t.node2,e);return e.__edgeMap[n]},ZR=function(t,e){var n=qR(YR(t.node1,t.node2,e),e),i=qR(YR(t.node2,t.node1,e),e);return n+i},qR=function(t,e){var n=e.__edgeMap;return n[t]?n[t].length:0};function KR(t){GR(t)&&(t.__curvenessList=[],t.__edgeMap={},jR(t))}function JR(t,e,n,i){if(GR(n)){var r=YR(t,e,n),o=n.__edgeMap,a=o[XR(r)];o[r]&&!a?o[r].isForward=!0:a&&o[r]&&(a.isForward=!0,o[r].isForward=!1),o[r]=o[r]||[],o[r].push(i)}}function QR(t,e,n,i){var r=GR(e),o=rt(r);if(!r)return null;var a=UR(t,e);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===n){s=l;break}var u=ZR(t,e);jR(e,u),t.lineStyle=t.lineStyle||{};var c=YR(t.node1,t.node2,e),h=e.__curvenessList,d=o||u%2?0:1;if(a.isForward)return h[d+s];var p=XR(c),f=qR(p,e),g=h[s+f+d];return i?o?r&&0===r[0]?(f+d)%2?g:-g:((f%2?0:1)+d)%2?g:-g:(f+d)%2?g:-g:h[s+f+d]}function tN(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var n=t.getGraph();n.eachNode((function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])})),eN(n,t)}}function eN(t,e){t.eachEdge((function(t,n){var i=xt(t.getModel().get(["lineStyle","curveness"]),-QR(t,e,n,!0),0),r=Rt(t.node1.getLayout()),o=Rt(t.node2.getLayout()),a=[r,o];+i&&a.push([(r[0]+o[0])/2-(r[1]-o[1])*i,(r[1]+o[1])/2-(o[0]-r[0])*i]),t.setLayout(a)}))}function nN(t,e){t.eachSeriesByType("graph",(function(t){var e=t.get("layout"),n=t.coordinateSystem;if(n&&"view"!==n.type){var i=t.getData(),r=[];Z(n.dimensions,(function(t){r=r.concat(i.mapDimensionsAll(t))}));for(var o=0;o<i.count();o++){for(var a=[],s=!1,l=0;l<r.length;l++){var u=i.get(r[l],o);isNaN(u)||(s=!0),a.push(u)}s?i.setItemLayout(o,n.dataToPoint(a)):i.setItemLayout(o,[NaN,NaN])}eN(i.graph,t)}else e&&"none"!==e||tN(t)}))}function iN(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=t.option.nodeScaleRatio,i=e.scaleX,r=e.getZoom(),o=(r-1)*n+1;return o/i}function rN(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var oN=Math.PI,aN=[];function sN(t,e){var n=t.coordinateSystem;if(!n||"view"===n.type){var i=n.getBoundingRect(),r=t.getData(),o=r.graph,a=i.width/2+i.x,s=i.height/2+i.y,l=Math.min(i.width,i.height)/2,u=r.count();r.setLayout({cx:a,cy:s}),u&&(lN[e](t,o,r,l,a,s,u),o.eachEdge((function(e,n){var i,r=xt(e.getModel().get(["lineStyle","curveness"]),QR(e,t,n),0),o=Rt(e.node1.getLayout()),l=Rt(e.node2.getLayout()),u=(o[0]+l[0])/2,c=(o[1]+l[1])/2;+r&&(r*=3,i=[a*r+u*(1-r),s*r+c*(1-r)]),e.setLayout([o,l,i])})))}}var lN={value:function(t,e,n,i,r,o,a){var s=0,l=n.getSum("value"),u=2*Math.PI/(l||a);e.eachNode((function(t){var e=t.getValue("value"),n=u*(l?e:1)/2;s+=n,t.setLayout([i*Math.cos(s)+r,i*Math.sin(s)+o]),s+=n}))},symbolSize:function(t,e,n,i,r,o,a){var s=0;aN.length=a;var l=iN(t);e.eachNode((function(t){var e=rN(t);isNaN(e)&&(e=2),e<0&&(e=0),e*=l;var n=Math.asin(e/2/i);isNaN(n)&&(n=oN/2),aN[t.dataIndex]=n,s+=2*n}));var u=(2*oN-s)/a/2,c=0;e.eachNode((function(t){var e=u+aN[t.dataIndex];c+=e,t.setLayout([i*Math.cos(c)+r,i*Math.sin(c)+o]),c+=e}))}};function uN(t){t.eachSeriesByType("graph",(function(t){"circular"===t.get("layout")&&sN(t,"symbolSize")}))}var cN=Bt;function hN(t,e,n){for(var i=t,r=e,o=n.rect,a=o.width,s=o.height,l=[o.x+a/2,o.y+s/2],u=null==n.gravity?.1:n.gravity,c=0;c<i.length;c++){var h=i[c];h.p||(h.p=Ot(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=Rt(h.p),h.edges=null}var d,p,f=null==n.friction?.6:n.friction,g=f;return{warmUp:function(){g=.8*f},setFixed:function(t){i[t].fixed=!0},setUnfixed:function(t){i[t].fixed=!1},beforeStep:function(t){d=t},afterStep:function(t){p=t},step:function(t){d&&d(i,r);for(var e=[],n=i.length,o=0;o<r.length;o++){var a=r[o];if(!a.ignoreForceLayout){var s=a.n1,c=a.n2;Vt(e,c.p,s.p);var h=Ft(e)-a.d,f=c.w/(s.w+c.w);isNaN(f)&&(f=0),Ut(e,e),!s.fixed&&cN(s.p,s.p,e,f*h*g),!c.fixed&&cN(c.p,c.p,e,-(1-f)*h*g)}}for(o=0;o<n;o++){var v=i[o];v.fixed||(Vt(e,l,v.p),cN(v.p,v.p,e,u*g))}for(o=0;o<n;o++){s=i[o];for(var m=o+1;m<n;m++){c=i[m];Vt(e,c.p,s.p);h=Ft(e);0===h&&(Nt(e,Math.random()-.5,Math.random()-.5),h=1);var y=(s.rep+c.rep)/h/h;!s.fixed&&cN(s.pp,s.pp,e,y),!c.fixed&&cN(c.pp,c.pp,e,-y)}}var x=[];for(o=0;o<n;o++){v=i[o];v.fixed||(Vt(x,v.p,v.pp),cN(v.p,v.p,x,g),Et(v.pp,v.p))}g*=.992;var b=g<.01;p&&p(i,r,b),t&&t(b)}}}function dN(t){t.eachSeriesByType("graph",(function(t){var e=t.coordinateSystem;if(!e||"view"===e.type)if("force"===t.get("layout")){var n=t.preservedPoints||{},i=t.getGraph(),r=i.data,o=i.edgeData,a=t.getModel("force"),s=a.get("initLayout");t.preservedPoints?r.each((function(t){var e=r.getId(t);r.setItemLayout(t,n[e]||[NaN,NaN])})):s&&"none"!==s?"circular"===s&&sN(t,"value"):tN(t);var l=r.getDataExtent("value"),u=o.getDataExtent("value"),c=a.get("repulsion"),h=a.get("edgeLength"),d=rt(c)?c:[c,c],p=rt(h)?h:[h,h];p=[p[1],p[0]];var f=r.mapArray("value",(function(t,e){var n=r.getItemLayout(e),i=oo(t,l,d);return isNaN(i)&&(i=(d[0]+d[1])/2),{w:i,rep:i,fixed:r.getItemModel(e).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),g=o.mapArray("value",(function(e,n){var r=i.getEdgeByIndex(n),o=oo(e,u,p);isNaN(o)&&(o=(p[0]+p[1])/2);var a=r.getModel(),s=xt(r.getModel().get(["lineStyle","curveness"]),-QR(r,t,n,!0),0);return{n1:f[r.node1.dataIndex],n2:f[r.node2.dataIndex],d:o,curveness:s,ignoreForceLayout:a.get("ignoreForceLayout")}})),v=e.getBoundingRect(),m=hN(f,g,{rect:v,gravity:a.get("gravity"),friction:a.get("friction")});m.beforeStep((function(t,e){for(var n=0,r=t.length;n<r;n++)t[n].fixed&&Et(t[n].p,i.getNodeByIndex(n).getLayout())})),m.afterStep((function(t,e,o){for(var a=0,s=t.length;a<s;a++)t[a].fixed||i.getNodeByIndex(a).setLayout(t[a].p),n[r.getId(a)]=t[a].p;for(a=0,s=e.length;a<s;a++){var l=e[a],u=i.getEdgeByIndex(a),c=l.n1.p,h=l.n2.p,d=u.getLayout();d=d?d.slice():[],d[0]=d[0]||[],d[1]=d[1]||[],Et(d[0],c),Et(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)}})),t.forceLayout=m,t.preservedPoints=n,m.step()}else t.forceLayout=null}))}function pN(t,e,n){var i=$(t.getBoxLayoutParams(),{aspect:n});return zf(i,{width:e.getWidth(),height:e.getHeight()})}function fN(t,e){var n=[];return t.eachSeriesByType("graph",(function(t){var i=t.get("coordinateSystem");if(!i||"view"===i){var r=t.getData(),o=r.mapArray((function(t){var e=r.getItemModel(t);return[+e.get("x"),+e.get("y")]})),a=[],s=[];Vs(o,a,s),s[0]-a[0]===0&&(s[0]+=1,a[0]-=1),s[1]-a[1]===0&&(s[1]+=1,a[1]-=1);var l=(s[0]-a[0])/(s[1]-a[1]),u=pN(t,e,l);isNaN(l)&&(a=[u.x,u.y],s=[u.x+u.width,u.y+u.height]);var c=s[0]-a[0],h=s[1]-a[1],d=u.width,p=u.height,f=t.coordinateSystem=new KP;f.zoomLimit=t.get("scaleLimit"),f.setBoundingRect(a[0],a[1],c,h),f.setViewRect(u.x,u.y,d,p),f.setCenter(t.get("center")),f.setZoom(t.get("zoom")),n.push(f)}})),n}var gN=Rh.prototype,vN=Fh.prototype,mN=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}();(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}v(e,t)})(mN);function yN(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var xN=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-line",n}return v(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new mN},e.prototype.buildPath=function(t,e){yN(e)?gN.buildPath.call(this,t,e):vN.buildPath.call(this,t,e)},e.prototype.pointAt=function(t){return yN(this.shape)?gN.pointAt.call(this,t):vN.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var e=this.shape,n=yN(e)?[e.x2-e.x1,e.y2-e.y1]:vN.tangentAt.call(this,t);return Ut(n,n)},e}(Bl),bN=xN,_N=["fromSymbol","toSymbol"];function wN(t){return"_"+t+"Type"}function SN(t,e,n){var i=e.getItemVisual(n,t);if(i&&"none"!==i){var r=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),a=e.getItemVisual(n,t+"Offset")||0,s=e.getItemVisual(n,t+"KeepAspect"),l=rt(r)?r:[r,r],u=rt(a)?a:[a,a];u[0]=ao(u[0],l[0]),u[1]=ao(yt(u[1],u[0]),l[1]);var c=db(i,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=null==o||isNaN(o)?void 0:+o*Math.PI/180||0,c.name=t,c}}function MN(t){var e=new bN({name:"line",subPixelOptimize:!0});return IN(e.shape,t),e}function IN(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}var CN=function(t){function e(e,n,i){var r=t.call(this)||this;return r._createLine(e,n,i),r}return v(e,t),e.prototype._createLine=function(t,e,n){var i=t.hostModel,r=t.getItemLayout(e),o=MN(r);o.shape.percent=0,Id(o,{shape:{percent:1}},i,e),this.add(o),Z(_N,(function(n){var i=SN(n,t,e);this.add(i),this[wN(n)]=t.getItemVisual(e,n)}),this),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var i=t.hostModel,r=this.childOfName("line"),o=t.getItemLayout(e),a={shape:{}};IN(a.shape,o),Md(r,a,i,e),Z(_N,(function(n){var i=t.getItemVisual(e,n),r=wN(n);if(this[r]!==i){this.remove(this.childOfName(n));var o=SN(n,t,e);this.add(o)}this[r]=i}),this),this._updateCommonStl(t,e,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,e,n){var i=t.hostModel,r=this.childOfName("line"),o=n&&n.emphasisLineStyle,a=n&&n.blurLineStyle,s=n&&n.selectLineStyle,l=n&&n.labelStatesModels;if(!n||t.hasItemOption){var u=t.getItemModel(e);o=u.getModel(["emphasis","lineStyle"]).getLineStyle(),a=u.getModel(["blur","lineStyle"]).getLineStyle(),s=u.getModel(["select","lineStyle"]).getLineStyle(),l=Ud(u)}var c=t.getItemVisual(e,"style"),h=c.stroke;r.useStyle(c),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=o,r.ensureState("blur").style=a,r.ensureState("select").style=s,Z(_N,(function(t){var e=this.childOfName(t);if(e){e.setColor(h),e.style.opacity=c.opacity;for(var n=0;n<Su.length;n++){var i=Su[n],o=r.getState(i);if(o){var a=o.style||{},s=e.ensureState(i),l=s.style||(s.style={});null!=a.stroke&&(l[e.__isEmptyBrush?"stroke":"fill"]=a.stroke),null!=a.opacity&&(l.opacity=a.opacity)}}e.markRedraw()}}),this);var d=i.getRawValue(e);Xd(this,l,{labelDataIndex:e,labelFetcher:{getFormattedLabel:function(e,n){return i.getFormattedLabel(e,n,t.dataType)}},inheritColor:h||"#000",defaultOpacity:c.opacity,defaultText:(null==d?t.getName(e):isFinite(d)?so(d):d)+""});var p=this.getTextContent();if(p){var f=l.normal;p.__align=p.style.align,p.__verticalAlign=p.style.verticalAlign,p.__position=f.get("position")||"middle";var g=f.get("distance");rt(g)||(g=[g,g]),p.__labelDistance=g}this.setTextConfig({position:null,local:!0,inside:!1}),vc(this)},e.prototype.highlight=function(){Qu(this)},e.prototype.downplay=function(){tc(this)},e.prototype.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},e.prototype.setLinePoints=function(t){var e=this.childOfName("line");IN(e.shape,t),e.dirty()},e.prototype.beforeUpdate=function(){var t=this,e=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),i=t.getTextContent();if(e||n||i&&!i.ignore){var r=1,o=this.parent;while(o)o.scaleX&&(r/=o.scaleX),o=o.parent;var a=t.childOfName("line");if(this.__dirty||a.__dirty){var s=a.shape.percent,l=a.pointAt(0),u=a.pointAt(s),c=Vt([],u,l);if(Ut(c,c),e&&(e.setPosition(l),S(e,0),e.scaleX=e.scaleY=r*s,e.markRedraw()),n&&(n.setPosition(u),S(n,1),n.scaleX=n.scaleY=r*s,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var h=void 0,d=void 0,p=i.__labelDistance,f=p[0]*r,g=p[1]*r,v=s/2,m=a.tangentAt(v),y=[m[1],-m[0]],x=a.pointAt(v);y[1]>0&&(y[0]=-y[0],y[1]=-y[1]);var b=m[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var _=-Math.atan2(m[1],m[0]);u[0]<l[0]&&(_=Math.PI+_),i.rotation=_}var w=void 0;switch(i.__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(i.__position){case"end":i.x=c[0]*f+u[0],i.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":i.x=-c[0]*f+l[0],i.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":i.x=f*b+l[0],i.y=l[1]+w,h=m[0]<0?"right":"left",i.originX=-f*b,i.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+w,h="center",i.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-f*b+u[0],i.y=u[1]+w,h=m[0]>=0?"right":"left",i.originX=f*b,i.originY=-w;break}i.scaleX=i.scaleY=r,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||h})}}}function S(t,e){var n=t.__specifiedRotation;if(null==n){var i=a.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else t.attr("rotation",n)}},e}(Wr),TN=CN,AN=function(){function t(t){this.group=new Wr,this._LineCtor=t||TN}return t.prototype.isPersistent=function(){return!0},t.prototype.updateData=function(t){var e=this,n=this,i=n.group,r=n._lineData;n._lineData=t,r||i.removeAll();var o=kN(t);t.diff(r).add((function(n){e._doAdd(t,n,o)})).update((function(n,i){e._doUpdate(r,t,i,n,o)})).remove((function(t){i.remove(r.getItemGraphicEl(t))})).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,n){e.updateLayout(t,n)}),this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=kN(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){t.isGroup||DN(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var r=e.getItemLayout(i);if(PN(r)){var o=new this._LineCtor(e,i,this._seriesScope);o.traverse(n),this.group.add(o),e.setItemGraphicEl(i,o)}}},t.prototype.remove=function(){this.group.removeAll()},t.prototype._doAdd=function(t,e,n){var i=t.getItemLayout(e);if(PN(i)){var r=new this._LineCtor(t,e,n);t.setItemGraphicEl(e,r),this.group.add(r)}},t.prototype._doUpdate=function(t,e,n,i,r){var o=t.getItemGraphicEl(n);PN(e.getItemLayout(i))?(o?o.updateData(e,i,r):o=new this._LineCtor(e,i,r),e.setItemGraphicEl(i,o),this.group.add(o)):this.group.remove(o)},t}();function DN(t){return t.animators&&t.animators.length>0}function kN(t){var e=t.hostModel;return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["emphasis","lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),labelStatesModels:Ud(e)}}function LN(t){return isNaN(t[0])||isNaN(t[1])}function PN(t){return!LN(t[0])&&!LN(t[1])}var ON=AN,EN=[],RN=[],NN=[],zN=Ms,BN=Jt,VN=Math.abs;function FN(t,e,n){for(var i,r=t[0],o=t[1],a=t[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1){EN[0]=zN(r[0],o[0],a[0],c),EN[1]=zN(r[1],o[1],a[1],c);var h=VN(BN(EN,e)-l);h<s&&(s=h,i=c)}for(var d=0;d<32;d++){var p=i+u;RN[0]=zN(r[0],o[0],a[0],i),RN[1]=zN(r[1],o[1],a[1],i),NN[0]=zN(r[0],o[0],a[0],p),NN[1]=zN(r[1],o[1],a[1],p);h=BN(RN,e)-l;if(VN(h)<.01)break;var f=BN(NN,e)-l;u/=2,h<0?f>=0?i+=u:i-=u:f>=0?i-=u:i+=u}return i}function HN(t,e){var n=[],i=As,r=[[],[],[]],o=[[],[]],a=[];e/=2,t.eachEdge((function(t,s){var l=t.getLayout(),u=t.getVisual("fromSymbol"),c=t.getVisual("toSymbol");l.__original||(l.__original=[Rt(l[0]),Rt(l[1])],l[2]&&l.__original.push(Rt(l[2])));var h=l.__original;if(null!=l[2]){if(Et(r[0],h[0]),Et(r[1],h[2]),Et(r[2],h[1]),u&&"none"!==u){var d=rN(t.node1),p=FN(r,h[0],d*e);i(r[0][0],r[1][0],r[2][0],p,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],p,n),r[0][1]=n[3],r[1][1]=n[4]}if(c&&"none"!==c){d=rN(t.node2),p=FN(r,h[1],d*e);i(r[0][0],r[1][0],r[2][0],p,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],p,n),r[1][1]=n[1],r[2][1]=n[2]}Et(l[0],r[0]),Et(l[1],r[2]),Et(l[2],r[1])}else{if(Et(o[0],h[0]),Et(o[1],h[1]),Vt(a,o[1],o[0]),Ut(a,a),u&&"none"!==u){d=rN(t.node1);Bt(o[0],o[0],a,d*e)}if(c&&"none"!==c){d=rN(t.node2);Bt(o[1],o[1],a,-d*e)}Et(l[0],o[0]),Et(l[1],o[1])}}))}function $N(t){return"view"===t.type}var WN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.init=function(t,e){var n=new NA,i=new ON,r=this.group;this._controller=new SP(e.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem;this._model=t;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if($N(r)){var l={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?s.attr(l):Md(s,l,t)}HN(t.getGraph(),iN(t));var u=t.getData();o.updateData(u);var c=t.getEdgeData();a.updateData(c),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var h=t.forceLayout,d=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,d),u.graph.eachNode((function(t){var e=t.dataIndex,n=t.getGraphicEl(),r=t.getModel();n.off("drag").off("dragend");var o=r.get("draggable");o&&n.on("drag",(function(){h&&(h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,d),h.setFixed(e),u.setItemLayout(e,[n.x,n.y]))})).on("dragend",(function(){h&&h.setUnfixed(e)})),n.setDraggable(o&&!!h);var a=r.get(["emphasis","focus"]);"adjacency"===a&&(vu(n).focus=t.getAdjacentDataIndices())})),u.graph.eachEdge((function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);"adjacency"===n&&(vu(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})}));var p="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),f=u.getLayout("cx"),g=u.getLayout("cy");u.eachItemGraphicEl((function(t,e){var n=u.getItemModel(e),i=n.get(["label","rotate"])||0,r=t.getSymbolPath();if(p){var o=u.getItemLayout(e),a=Math.atan2(o[1]-g,o[0]-f);a<0&&(a=2*Math.PI+a);var s=o[0]<f;s&&(a-=Math.PI);var l=s?"left":"right";r.setTextConfig({rotation:-a,position:l,origin:"center"});var c=r.ensureState("emphasis");$(c.textConfig||(c.textConfig={}),{position:l})}else r.setTextConfig({rotation:i*=Math.PI/180})})),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,e){var n=this;(function i(){t.step((function(t){n.updateLayout(n._model),(n._layouting=!t)&&(e?n._layoutTimeout=setTimeout(i,16):i())}))})()},e.prototype._updateController=function(t,e,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker((function(e,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!TP(e,n,t)})),$N(t.coordinateSystem)?(r.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(e){MP(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){IP(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),i._updateNodeAndLinkScale(),HN(t.getGraph(),iN(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()}))):r.disable()},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=iN(t);e.eachItemGraphicEl((function(t,e){t.setSymbolScale(n)}))},e.prototype.updateLayout=function(t){HN(t.getGraph(),iN(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(vy),GN=WN;function jN(t){return"_EC_"+t}var YN=function(){function t(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesMap;if(!n[jN(t)]){var i=new XN(t,e);return i.hostGraph=this,this.nodes.push(i),n[jN(t)]=i,i}},t.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},t.prototype.getNodeById=function(t){return this._nodesMap[jN(t)]},t.prototype.addEdge=function(t,e,n){var i=this._nodesMap,r=this._edgesMap;if("number"===typeof t&&(t=this.nodes[t]),"number"===typeof e&&(e=this.nodes[e]),t instanceof XN||(t=i[jN(t)]),e instanceof XN||(e=i[jN(e)]),t&&e){var o=t.id+"-"+e.id,a=new UN(t,e,n);return a.hostGraph=this,this._directed&&(t.outEdges.push(a),e.inEdges.push(a)),t.edges.push(a),t!==e&&e.edges.push(a),this.edges.push(a),r[o]=a,a}},t.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},t.prototype.getEdge=function(t,e){t instanceof XN&&(t=t.id),e instanceof XN&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},t.prototype.eachNode=function(t,e){for(var n=this.nodes,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&t.call(e,n[r],r)},t.prototype.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&t.call(e,n[r],r)},t.prototype.breadthFirstTraverse=function(t,e,n,i){if(e instanceof XN||(e=this._nodesMap[jN(e)]),e){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(i,e,null)){var a=[e];while(a.length){var s=a.shift(),l=s[r];for(o=0;o<l.length;o++){var u=l[o],c=u.node1===s?u.node2:u.node1;if(!c.__visited){if(t.call(i,c,s))return;a.push(c),c.__visited=!0}}}}}},t.prototype.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,i=this.edges,r=0,o=n.length;r<o;r++)n[r].dataIndex=-1;for(r=0,o=t.count();r<o;r++)n[t.getRawIndex(r)].dataIndex=r;e.filterSelf((function(t){var n=i[e.getRawIndex(t)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0}));for(r=0,o=i.length;r<o;r++)i[r].dataIndex=-1;for(r=0,o=e.count();r<o;r++)i[e.getRawIndex(r)].dataIndex=r},t.prototype.clone=function(){for(var e=new t(this._directed),n=this.nodes,i=this.edges,r=0;r<n.length;r++)e.addNode(n[r].id,n[r].dataIndex);for(r=0;r<i.length;r++){var o=i[r];e.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return e},t}(),XN=function(){function t(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==t?"":t,this.dataIndex=null==e?-1:e}return t.prototype.degree=function(){return this.edges.length},t.prototype.inDegree=function(){return this.inEdges.length},t.prototype.outDegree=function(){return this.outEdges.length},t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},t.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var n=this.edges[e];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},t}(),UN=function(){function t(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}return t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,n=e.edgeData.getItemModel(this.dataIndex);return n.getModel(t)}},t.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},t}();function ZN(t,e){return{getValue:function(n){var i=this[t][e];return i.get(i.getDimension(n||"value"),this.dataIndex)},setVisual:function(n,i){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}X(XN,ZN("hostGraph","data")),X(UN,ZN("hostGraph","edgeData"));var qN=YN;function KN(t,e,n,i,r){for(var o=new qN(i),a=0;a<t.length;a++)o.addNode(mt(t[a].id,t[a].name,a),a);var s=[],l=[],u=0;for(a=0;a<e.length;a++){var c=e[a],h=c.source,d=c.target;o.addEdge(h,d,u)&&(l.push(c),s.push(mt(Yo(c.id,null),h+" > "+d)),u++)}var p,f=n.get("coordinateSystem");if("cartesian2d"===f||"polar"===f)p=nI(t,n);else{var g=Gg.get(f),v=g&&g.dimensions||[];j(v,"value")<0&&v.concat(["value"]);var m=jM(t,{coordDimensions:v});p=new FM(m,n),p.initData(t)}var y=new FM(["value"],n);return y.initData(l,s),r&&r(p,y),YO({mainData:p,struct:o,structAttr:"graph",datas:{node:p,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var JN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return v(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new yk(i,i),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(e){t.prototype.mergeDefaultAndTheme.apply(this,arguments),Oo(e,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,e){var n=t.edges||t.links||[],i=t.data||t.nodes||[],r=this;if(i&&n){KR(this);var o=KN(i,n,this,!0,a);return Z(o.edges,(function(t){JR(t.node1,t.node2,this,t.dataIndex)}),this),o.data}function a(t,e){t.wrapMethod("getItemModel",(function(t){var e=r._categoriesModels,n=t.getShallow("category"),i=e[n];return i&&(i.parentModel=t.parentModel,t.parentModel=i),t}));var n=yp.prototype.getModel;function i(t,e){var i=n.call(this,t,e);return i.resolveParentPath=o,i}function o(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",(function(t){return t.resolveParentPath=o,t.getModel=i,t}))}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,e,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(t,n),o=i.graph.getEdgeByIndex(t),a=i.getName(o.node1.dataIndex),s=i.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),Lm("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}var u=jm({series:this,dataIndex:t,multipleSeries:e});return u},e.prototype._updateCategoriesData=function(){var t=q(this.option.categories||[],(function(t){return null!=t.value?t:$({value:0},t)})),e=new FM(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t)}))},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={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"}}},e}(ry),QN=JN,tz={type:"graphRoam",event:"graphRoam",update:"none"};function ez(t){t.registerChartView(GN),t.registerSeriesModel(QN),t.registerProcessor(VR),t.registerVisual(FR),t.registerVisual($R),t.registerLayout(nN),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,uN),t.registerLayout(dN),t.registerCoordinateSystem("graphView",{dimensions:KP.dimensions,create:fN}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},(function(){})),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},(function(){})),t.registerAction(tz,(function(t,e){e.eachComponent({mainType:"series",query:t},(function(e){var n=e.coordinateSystem,i=uO(n,t);e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom)}))}))}var nz=function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t}(),iz=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return v(e,t),e.prototype.getDefaultShape=function(){return new nz},e.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,r=e.r,o=e.width,a=e.angle,s=e.x-n(a)*o*(o>=r/3?1:2),l=e.y-i(a)*o*(o>=r/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+i(a)*o),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(a)*o,e.y-i(a)*o),t.lineTo(s,l)},e}(Bl),rz=iz;function oz(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r),a=ao(n[0],e.getWidth()),s=ao(n[1],e.getHeight()),l=ao(t.get("radius"),o/2);return{cx:a,cy:s,r:l}}function az(t,e){var n=null==t?"":t+"";return e&&("string"===typeof e?n=e.replace("{value}",n):"function"===typeof e&&(n=e(t))),n}var sz=2*Math.PI,lz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.render=function(t,e,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),r=oz(t,n);this._renderMain(t,e,n,i,r),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,n,i,r){for(var o=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,u=t.getModel("axisLine"),c=u.get("roundCap"),h=c?LD:yh,d=u.get("show"),p=u.getModel("lineStyle"),f=p.get("width"),g=(l-s)%sz||l===s?(l-s)%sz:sz,v=s,m=0;d&&m<i.length;m++){var y=Math.min(Math.max(i[m][0],0),1);l=s+g*y;var x=new h({shape:{startAngle:v,endAngle:l,cx:r.cx,cy:r.cy,clockwise:a,r0:r.r-f,r:r.r},silent:!0});x.setStyle({fill:i[m][1]}),x.setStyle(p.getLineStyle(["color","width"])),o.add(x),v=l}var b=function(t){if(t<=0)return i[0][1];var e;for(e=0;e<i.length;e++)if(i[e][0]>=t&&(0===e?0:i[e-1][0])<t)return i[e][1];return i[e-1][1]};if(!a){var _=s;s=l,l=_}this._renderTicks(t,e,n,b,r,s,l,a,f),this._renderTitleAndDetail(t,e,n,b,r),this._renderAnchor(t,r),this._renderPointer(t,e,n,b,r,s,l,a,f)},e.prototype._renderTicks=function(t,e,n,i,r,o,a,s,l){for(var u,c,h=this.group,d=r.cx,p=r.cy,f=r.r,g=+t.get("min"),v=+t.get("max"),m=t.getModel("splitLine"),y=t.getModel("axisTick"),x=t.getModel("axisLabel"),b=t.get("splitNumber"),_=y.get("splitNumber"),w=ao(m.get("length"),f),S=ao(y.get("length"),f),M=o,I=(a-o)/b,C=I/_,T=m.getModel("lineStyle").getLineStyle(),A=y.getModel("lineStyle").getLineStyle(),D=m.get("distance"),k=0;k<=b;k++){if(u=Math.cos(M),c=Math.sin(M),m.get("show")){var L=D?D+l:l,P=new Rh({shape:{x1:u*(f-L)+d,y1:c*(f-L)+p,x2:u*(f-w-L)+d,y2:c*(f-w-L)+p},style:T,silent:!0});"auto"===T.stroke&&P.setStyle({stroke:i(k/b)}),h.add(P)}if(x.get("show")){L=x.get("distance")+D;var O=az(so(k/b*(v-g)+g),x.get("formatter")),E=i(k/b);h.add(new gu({style:Zd(x,{text:O,x:u*(f-w-L)+d,y:c*(f-w-L)+p,verticalAlign:c<-.8?"top":c>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:E}),silent:!0}))}if(y.get("show")&&k!==b){L=y.get("distance");L=L?L+l:l;for(var R=0;R<=_;R++){u=Math.cos(M),c=Math.sin(M);var N=new Rh({shape:{x1:u*(f-L)+d,y1:c*(f-L)+p,x2:u*(f-S-L)+d,y2:c*(f-S-L)+p},silent:!0,style:A});"auto"===A.stroke&&N.setStyle({stroke:i((k+R/_)/b)}),h.add(N),M+=C}M-=C}else M+=I}},e.prototype._renderPointer=function(t,e,n,i,r,o,a,s,l){var u=this.group,c=this._data,h=this._progressEls,d=[],p=t.get(["pointer","show"]),f=t.getModel("progress"),g=f.get("show"),v=t.getData(),m=v.mapDimension("value"),y=+t.get("min"),x=+t.get("max"),b=[y,x],_=[o,a];function w(e,n){var i,o=v.getItemModel(e),a=o.getModel("pointer"),s=ao(a.get("width"),r.r),l=ao(a.get("length"),r.r),u=t.get(["pointer","icon"]),c=a.get("offsetCenter"),h=ao(c[0],r.r),d=ao(c[1],r.r),p=a.get("keepAspect");return i=u?db(u,h-s/2,d-l,s,l,null,p):new rz({shape:{angle:-Math.PI/2,width:s,r:l,x:h,y:d}}),i.rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function S(t,e){var n=f.get("roundCap"),i=n?LD:yh,a=f.get("overlap"),u=a?f.get("width"):l/v.count(),c=a?r.r-u:r.r-(t+1)*u,h=a?r.r:r.r-t*u,d=new i({shape:{startAngle:o,endAngle:e,cx:r.cx,cy:r.cy,clockwise:s,r0:c,r:h}});return a&&(d.z2=x-v.get(m,t)%x),d}(g||p)&&(v.diff(c).add((function(e){if(p){var n=w(e,o);Id(n,{rotation:-(oo(v.get(m,e),b,_,!0)+Math.PI/2)},t),u.add(n),v.setItemGraphicEl(e,n)}if(g){var i=S(e,o),r=f.get("clip");Id(i,{shape:{endAngle:oo(v.get(m,e),b,_,r)}},t),u.add(i),d[e]=i}})).update((function(e,n){if(p){var i=c.getItemGraphicEl(n),r=i?i.rotation:o,a=w(e,r);a.rotation=r,Md(a,{rotation:-(oo(v.get(m,e),b,_,!0)+Math.PI/2)},t),u.add(a),v.setItemGraphicEl(e,a)}if(g){var s=h[n],l=s?s.shape.endAngle:o,y=S(e,l),x=f.get("clip");Md(y,{shape:{endAngle:oo(v.get(m,e),b,_,x)}},t),u.add(y),d[e]=y}})).execute(),v.each((function(t){var e=v.getItemModel(t),n=e.getModel("emphasis");if(p){var r=v.getItemGraphicEl(t),o=v.getItemVisual(t,"style"),a=o.fill;if(r instanceof Yl){var s=r.style;r.useStyle($({image:s.image,x:s.x,y:s.y,width:s.width,height:s.height},o))}else r.useStyle(o),"pointer"!==r.type&&r.setColor(a);r.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===r.style.fill&&r.setStyle("fill",i(oo(v.get(m,t),b,[0,1],!0))),r.z2EmphasisLift=0,bc(r,e),vc(r,n.get("focus"),n.get("blurScope"))}if(g){var l=d[t];l.useStyle(v.getItemVisual(t,"style")),l.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),l.z2EmphasisLift=0,bc(l,e),vc(l,n.get("focus"),n.get("blurScope"))}})),this._progressEls=d)},e.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor"),i=n.get("show");if(i){var r=n.get("size"),o=n.get("icon"),a=n.get("offsetCenter"),s=n.get("keepAspect"),l=db(o,e.cx-r/2+ao(a[0],e.r),e.cy-r/2+ao(a[1],e.r),r,r,null,s);l.z2=n.get("showAbove")?1:0,l.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(l)}},e.prototype._renderTitleAndDetail=function(t,e,n,i,r){var o=this,a=t.getData(),s=a.mapDimension("value"),l=+t.get("min"),u=+t.get("max"),c=new Wr,h=[],d=[],p=t.isAnimationEnabled();a.diff(this._data).add((function(t){h[t]=new gu({silent:!0}),d[t]=new gu({silent:!0})})).update((function(t,e){h[t]=o._titleEls[e],d[t]=o._detailEls[e]})).execute(),a.each((function(e){var n=a.getItemModel(e),o=a.get(s,e),f=new Wr,g=i(oo(o,[l,u],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var m=v.get("offsetCenter"),y=r.cx+ao(m[0],r.r),x=r.cy+ao(m[1],r.r),b=h[e];b.attr({style:Zd(v,{x:y,y:x,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:g})}),f.add(b)}var _=n.getModel("detail");if(_.get("show")){var w=_.get("offsetCenter"),S=r.cx+ao(w[0],r.r),M=r.cy+ao(w[1],r.r),I=ao(_.get("width"),r.r),C=ao(_.get("height"),r.r),T=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:g,A=(b=d[e],_.get("formatter"));b.attr({style:Zd(_,{x:S,y:M,text:az(o,A),width:isNaN(I)?null:I,height:isNaN(C)?null:C,align:"center",verticalAlign:"middle"},{inheritColor:T})}),op(b,{normal:_},o,(function(t){return az(t,A)})),p&&ap(b,e,a,t,{getFormattedLabel:function(t,e,n,i,r,a){return az(a?a.interpolatedValue:o,A)}}),f.add(b)}c.add(f)})),this.group.add(c),this._titleEls=h,this._detailEls=d},e.type="gauge",e}(vy),uz=lz,cz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n.useColorPaletteOnData=!0,n}return v(e,t),e.prototype.getInitialData=function(t,e){return vk(this,["value"])},e.type="series.gauge",e.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}},e}(ry),hz=cz;function dz(t){t.registerChartView(uz),t.registerSeriesModel(hz)}var pz=["itemStyle","opacity"],fz=function(t){function e(e,n){var i=t.call(this)||this,r=i,o=new Lh,a=new gu;return r.setTextContent(a),i.setTextGuideLine(o),i.updateData(e,n,!0),i}return v(e,t),e.prototype.updateData=function(t,e,n){var i=this,r=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e),s=o.getModel("emphasis"),l=o.get(pz);l=null==l?1:l,i.useStyle(t.getItemVisual(e,"style")),i.style.lineJoin="round",n?(i.setShape({points:a.points}),i.style.opacity=0,Id(i,{style:{opacity:l}},r,e)):Md(i,{style:{opacity:l},shape:{points:a.points}},r,e),bc(i,o),this._updateLabel(t,e),vc(this,s.get("focus"),s.get("blurScope"))},e.prototype._updateLabel=function(t,e){var n=this,i=this.getTextGuideLine(),r=n.getTextContent(),o=t.hostModel,a=t.getItemModel(e),s=t.getItemLayout(e),l=s.label,u=t.getItemVisual(e,"style"),c=u.fill;Xd(r,Ud(a),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:u.opacity,defaultText:t.getName(e)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),n.setTextConfig({local:!0,inside:!!l.inside,insideStroke:c,outsideFill:c});var h=l.linePoints;i.setShape({points:h}),n.textGuideLineConfig={anchor:h?new sr(h[0][0],h[0][1]):null},Md(r,{style:{x:l.x,y:l.y}},o,e),r.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),Ox(n,Ex(a),{stroke:c})},e}(Ah),gz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return v(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._data,o=this.group;i.diff(r).add((function(t){var e=new fz(i,t);i.setItemGraphicEl(t,e),o.add(e)})).update((function(t,e){var n=r.getItemGraphicEl(e);n.updateData(i,t),o.add(n),i.setItemGraphicEl(t,n)})).remove((function(e){var n=r.getItemGraphicEl(e);Ad(n,t,e)})).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(vy),vz=gz,mz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.useColorPaletteOnData=!0,n}return v(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new yk(nt(this.getData,this),nt(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return vk(this,{coordDimensions:["value"],encodeDefaulter:it(cg,this)})},e.prototype._defaultLabelLine=function(t){Oo(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(e){var n=this.getData(),i=t.prototype.getDataParams.call(this,e),r=n.mapDimension("value"),o=n.getSum(r);return i.percent=o?+(n.get(r,e)/o*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series.funnel",e.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"}}},e}(ry),yz=mz;function xz(t,e){return zf(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function bz(t,e){for(var n=t.mapDimension("value"),i=t.mapArray(n,(function(t){return t})),r=[],o="ascending"===e,a=0,s=t.count();a<s;a++)r[a]=a;return"function"===typeof e?r.sort(e):"none"!==e&&r.sort((function(t,e){return o?i[t]-i[e]:i[e]-i[t]})),r}function _z(t){var e=t.hostModel,n=e.get("orient");t.each((function(e){var i,r,o,a,s=t.getItemModel(e),l=s.getModel("label"),u=l.get("position"),c=s.getModel("labelLine"),h=t.getItemLayout(e),d=h.points,p="inner"===u||"inside"===u||"center"===u||"insideLeft"===u||"insideRight"===u;if(p)"insideLeft"===u?(r=(d[0][0]+d[3][0])/2+5,o=(d[0][1]+d[3][1])/2,i="left"):"insideRight"===u?(r=(d[1][0]+d[2][0])/2-5,o=(d[1][1]+d[2][1])/2,i="right"):(r=(d[0][0]+d[1][0]+d[2][0]+d[3][0])/4,o=(d[0][1]+d[1][1]+d[2][1]+d[3][1])/4,i="center"),a=[[r,o],[r,o]];else{var f=void 0,g=void 0,v=void 0,m=void 0,y=c.get("length");0,"left"===u?(f=(d[3][0]+d[0][0])/2,g=(d[3][1]+d[0][1])/2,v=f-y,r=v-5,i="right"):"right"===u?(f=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,v=f+y,r=v+5,i="left"):"top"===u?(f=(d[3][0]+d[0][0])/2,g=(d[3][1]+d[0][1])/2,m=g-y,o=m-5,i="center"):"bottom"===u?(f=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,m=g+y,o=m+5,i="center"):"rightTop"===u?(f="horizontal"===n?d[3][0]:d[1][0],g="horizontal"===n?d[3][1]:d[1][1],"horizontal"===n?(m=g-y,o=m-5,i="center"):(v=f+y,r=v+5,i="top")):"rightBottom"===u?(f=d[2][0],g=d[2][1],"horizontal"===n?(m=g+y,o=m+5,i="center"):(v=f+y,r=v+5,i="bottom")):"leftTop"===u?(f=d[0][0],g="horizontal"===n?d[0][1]:d[1][1],"horizontal"===n?(m=g-y,o=m-5,i="center"):(v=f-y,r=v-5,i="right")):"leftBottom"===u?(f="horizontal"===n?d[1][0]:d[3][0],g="horizontal"===n?d[1][1]:d[2][1],"horizontal"===n?(m=g+y,o=m+5,i="center"):(v=f-y,r=v-5,i="right")):(f=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,"horizontal"===n?(m=g+y,o=m+5,i="center"):(v=f+y,r=v+5,i="left")),"horizontal"===n?(v=f,r=v):(m=g,o=m),a=[[f,g],[v,m]]}h.label={linePoints:a,x:r,y:o,verticalAlign:"middle",textAlign:i,inside:p}}))}function wz(t,e){t.eachSeriesByType("funnel",(function(t){var n=t.getData(),i=n.mapDimension("value"),r=t.get("sort"),o=xz(t,e),a=t.get("orient"),s=o.width,l=o.height,u=bz(n,r),c=o.x,h=o.y,d="horizontal"===a?[ao(t.get("minSize"),l),ao(t.get("maxSize"),l)]:[ao(t.get("minSize"),s),ao(t.get("maxSize"),s)],p=n.getDataExtent(i),f=t.get("min"),g=t.get("max");null==f&&(f=Math.min(p[0],0)),null==g&&(g=p[1]);var v=t.get("funnelAlign"),m=t.get("gap"),y="horizontal"===a?s:l,x=(y-m*(n.count()-1))/n.count(),b=function(t,e){if("horizontal"===a){var r=n.get(i,t)||0,o=oo(r,[f,g],d,!0),u=void 0;switch(v){case"top":u=h;break;case"center":u=h+(l-o)/2;break;case"bottom":u=h+(l-o);break}return[[e,u],[e,u+o]]}var p,m=n.get(i,t)||0,y=oo(m,[f,g],d,!0);switch(v){case"left":p=c;break;case"center":p=c+(s-y)/2;break;case"right":p=c+s-y;break}return[[p,e],[p+y,e]]};"ascending"===r&&(x=-x,m=-m,"horizontal"===a?c+=s:h+=l,u=u.reverse());for(var _=0;_<u.length;_++){var w=u[_],S=u[_+1],M=n.getItemModel(w);if("horizontal"===a){var I=M.get(["itemStyle","width"]);null==I?I=x:(I=ao(I,s),"ascending"===r&&(I=-I));var C=b(w,c),T=b(S,c+I);c+=I+m,n.setItemLayout(w,{points:C.concat(T.slice().reverse())})}else{var A=M.get(["itemStyle","height"]);null==A?A=x:(A=ao(A,l),"ascending"===r&&(A=-A));C=b(w,h),T=b(S,h+A);h+=A+m,n.setItemLayout(w,{points:C.concat(T.slice().reverse())})}}_z(n)}))}function Sz(t){t.registerChartView(vz),t.registerSeriesModel(yz),t.registerLayout(wz),t.registerProcessor(ak("funnel"))}var Mz=.3,Iz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._dataGroup=new Wr,n._initialized=!1,n}return v(e,t),e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,e,n,i){var r=this._dataGroup,o=t.getData(),a=this._data,s=t.coordinateSystem,l=s.dimensions,u=Dz(t);function c(t){var e=Az(o,r,t,l,s);kz(e,o,t,u)}function h(e,n){var i=a.getItemGraphicEl(n),r=Tz(o,e,l,s);o.setItemGraphicEl(e,i),Md(i,{shape:{points:r}},t,e),kz(i,o,e,u)}function d(t){var e=a.getItemGraphicEl(t);r.remove(e)}if(o.diff(a).add(c).update(h).remove(d).execute(),!this._initialized){this._initialized=!0;var p=Cz(s,t,(function(){setTimeout((function(){r.removeClipPath()}))}));r.setClipPath(p)}this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,e,n){for(var i=e.getData(),r=e.coordinateSystem,o=r.dimensions,a=Dz(e),s=t.start;s<t.end;s++){var l=Az(i,this._dataGroup,s,o,r);l.incremental=!0,kz(l,i,s,a)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(vy);function Cz(t,e,n){var i=t.model,r=t.getRect(),o=new eu({shape:{x:r.x,y:r.y,width:r.width,height:r.height}}),a="horizontal"===i.get("layout")?"width":"height";return o.setShape(a,0),Id(o,{shape:{width:r.width,height:r.height}},e,n),o}function Tz(t,e,n,i){for(var r=[],o=0;o<n.length;o++){var a=n[o],s=t.get(t.mapDimension(a),e);Lz(s,i.getAxis(a).type)||r.push(i.dataToPoint(s,a))}return r}function Az(t,e,n,i,r){var o=Tz(t,n,i,r),a=new Lh({shape:{points:o},z2:10});return e.add(a),t.setItemGraphicEl(n,a),a}function Dz(t){var e=t.get("smooth",!0);return!0===e&&(e=Mz),e=Io(e),vt(e)&&(e=0),{smooth:e}}function kz(t,e,n,i){t.useStyle(e.getItemVisual(n,"style")),t.style.fill=null,t.setShape("smooth",i.smooth);var r=e.getItemModel(n),o=r.getModel("emphasis");bc(t,r,"lineStyle"),vc(t,o.get("focus"),o.get("blurScope"))}function Lz(t,e){return"category"===e?null==t:null==t||isNaN(t)}var Pz=Iz,Oz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return v(e,t),e.prototype.getInitialData=function(t,e){return nI(this.getSource(),this,{useEncodeDefaulter:nt(Ez,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var e=this.coordinateSystem,n=this.getData(),i=[];return e.eachActiveState(n,(function(e,r){t===e&&i.push(n.getRawIndex(r))})),i},e.type="series.parallel",e.dependencies=["parallel"],e.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"},e}(ry);function Ez(t){var e=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(e){var n={};return Z(e.dimensions,(function(t){var e=Rz(t);n[t]=e})),n}}function Rz(t){return+t.replace("dim","")}var Nz=Oz,zz=["lineStyle","opacity"],Bz={seriesType:"parallel",reset:function(t,e){var n=t.coordinateSystem,i={normal:t.get(["lineStyle","opacity"]),active:t.get("activeOpacity"),inactive:t.get("inactiveOpacity")};return{progress:function(t,e){n.eachActiveState(e,(function(t,n){var r=i[t];if("normal"===t&&e.hasItemOption){var o=e.getItemModel(n).get(zz,!0);null!=o&&(r=o)}var a=e.ensureUniqueItemVisual(n,"style");a.opacity=r}),t.start,t.end)}}}},Vz=Bz;function Fz(t){Hz(t),$z(t)}function Hz(t){if(!t.parallel){var e=!1;Z(t.series,(function(t){t&&"parallel"===t.type&&(e=!0)})),e&&(t.parallel=[{}])}}function $z(t){var e=Po(t.parallelAxis);Z(e,(function(e){if(ut(e)){var n=e.parallelIndex||0,i=Po(t.parallel)[n];i&&i.parallelAxisDefault&&F(e,i.parallelAxisDefault,!1)}}))}var Wz=5,Gz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.render=function(t,e,n){this._model=t,this._api=n,this._handlers||(this._handlers={},Z(jz,(function(t,e){n.getZr().on(e,this._handlers[e]=nt(t,this))}),this)),_y(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,e){Z(this._handlers,(function(t,n){e.getZr().off(n,t)})),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction($({type:"parallelAxisExpand"},t))},e.type="parallel",e}(ay),jz={mousedown:function(t){Yz(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(Yz(this,"click")&&e){var n=[t.offsetX,t.offsetY],i=Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2);if(i>Wz)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&Yz(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function Yz(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}var Xz=Gz,Uz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var e=this.option;t&&F(e,t,!0),this._initDimensions()},e.prototype.contains=function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){Z(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],n=J(this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this);Z(n,(function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)}))},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.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},e}(Xf),Zz=Uz,qz=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.type=r||"value",a.axisIndex=o,a}return v(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(qC),Kz=qz;function Jz(t,e,n,i,r,o){t=t||0;var a=n[1]-n[0];if(null!=r&&(r=tB(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var s=Math.abs(e[1]-e[0]);s=tB(s,[0,a]),r=o=tB(s,[r,o]),i=0}e[0]=tB(e[0],n),e[1]=tB(e[1],n);var l=Qz(e,i);e[i]+=t;var u,c=r||0,h=n.slice();return l.sign<0?h[0]+=c:h[1]-=c,e[i]=tB(e[i],h),u=Qz(e,i),null!=r&&(u.sign!==l.sign||u.span<r)&&(e[1-i]=e[i]+l.sign*r),u=Qz(e,i),null!=o&&u.span>o&&(e[1-i]=e[i]+u.sign*o),e}function Qz(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function tB(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var eB=Z,nB=Math.min,iB=Math.max,rB=Math.floor,oB=Math.ceil,aB=so,sB=Math.PI,lB=function(){function t(t,e,n){this.type="parallel",this._axesMap=At(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var i=t.dimensions,r=t.parallelAxisIndex;eB(i,(function(t,n){var i=r[n],o=e.getComponent("parallelAxis",i),a=this._axesMap.set(t,new Kz(t,fC(o),[0,0],o.get("type"),i)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this}),this)},t.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},t.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,i=e.layoutBase,r=e.pixelDimIndex,o=t[1-r],a=t[r];return o>=n&&o<=n+e.axisLength&&a>=i&&a<=i+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(t,e){e.eachSeries((function(n){if(t.contains(n,e)){var i=n.getData();eB(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,i.mapDimension(t)),pC(e.scale,e.model)}),this)}}),this)},t.prototype.resize=function(t,e){this._rect=zf(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var t,e=this._model,n=this._rect,i=["x","y"],r=["width","height"],o=e.get("layout"),a="horizontal"===o?0:1,s=n[r[a]],l=[0,s],u=this.dimensions.length,c=uB(e.get("axisExpandWidth"),l),h=uB(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,p=e.get("axisExpandWindow");if(p)t=uB(p[1]-p[0],l),p[1]=p[0]+t;else{t=uB(c*(h-1),l);var f=e.get("axisExpandCenter")||rB(u/2);p=[c*f-t/2],p[1]=p[0]+t}var g=(s-t)/(u-h);g<3&&(g=0);var v=[rB(aB(p[0]/c,1))+1,oB(aB(p[1]/c,1))-1],m=g/c*p[0];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:p,axisCount:u,winInnerIndices:v,axisExpandWindow0Pos:m}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;e.each((function(t){var e=[0,i.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])})),eB(n,(function(e,n){var o=(i.axisExpandable?hB:cB)(n,i),a={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},s={horizontal:sB/2,vertical:0},l=[a[r].x+t.x,a[r].y+t.y],u=s[r],c=Fi();ji(c,c,u),Gi(c,c,l),this._axesLayout[e]={position:l,rotation:u,transform:c,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},t.prototype.getAxis=function(t){return this._axesMap.get(t)},t.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},t.prototype.eachActiveState=function(t,e,n,i){null==n&&(n=0),null==i&&(i=t.count());var r=this._axesMap,o=this.dimensions,a=[],s=[];Z(o,(function(e){a.push(t.mapDimension(e)),s.push(r.get(e).model)}));for(var l=this.hasAxisBrushed(),u=n;u<i;u++){var c=void 0;if(l){c="active";for(var h=t.getValues(a,u),d=0,p=o.length;d<p;d++){var f=s[d].getActiveState(h[d]);if("inactive"===f){c="inactive";break}}}else c="normal";e(c,u)}},t.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,n=!1,i=0,r=t.length;i<r;i++)"normal"!==e.get(t[i]).model.getActiveState()&&(n=!0);return n},t.prototype.axisCoordToPoint=function(t,e){var n=this._axesLayout[e];return Ld([t,0],n.transform)},t.prototype.getAxisLayout=function(t){return V(this._axesLayout[t])},t.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,i=e.axisExpandWindow.slice(),r=i[1]-i[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:i};var a,s=t[n]-e.layoutBase-e.axisExpandWindow0Pos,l="slide",u=e.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),h=null!=c[0];if(u)h&&u&&s<r*c[0]?(l="jump",a=s-r*c[2]):h&&u&&s>r*(1-c[0])?(l="jump",a=s-r*(1-c[2])):(a=s-r*c[1])>=0&&(a=s-r*(1-c[1]))<=0&&(a=0),a*=e.axisExpandWidth/u,a?Jz(a,i,o,"all"):l="none";else{var d=i[1]-i[0],p=o[1]*s/d;i=[iB(0,p-d/2)],i[1]=nB(o[1],i[0]+d),i[0]=i[1]-d}return{axisExpandWindow:i,behavior:l}},t}();function uB(t,e){return nB(iB(t,e[0]),e[1])}function cB(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function hB(t,e){var n,i,r=e.layoutLength,o=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,c=!1;return t<l[0]?(n=t*s,i=s):t<=l[1]?(n=e.axisExpandWindow0Pos+t*o-e.axisExpandWindow[0],u=o,c=!0):(n=r-(a-1-t)*s,i=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:i}}var dB=lB;function pB(t,e){var n=[];return t.eachComponent("parallel",(function(i,r){var o=new dB(i,t,e);o.name="parallel_"+r,o.resize(i,e),i.coordinateSystem=o,o.model=i,n.push(o)})),t.eachSeries((function(t){if("parallel"===t.get("coordinateSystem")){var e=t.getReferringComponents("parallel",ra).models[0];t.coordinateSystem=e.coordinateSystem}})),n}var fB={create:pB},gB=fB,vB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.activeIntervals=[],n}return v(e,t),e.prototype.getAreaSelectStyle=function(){return Ca([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=V(t);if(e)for(var n=e.length-1;n>=0;n--)lo(e[n])},e.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,r=e.length;i<r;i++)if(e[i][0]<=t&&t<=e[i][1])return"active";return"inactive"},e}(Xf);X(vB,MC);var mB=vB,yB=!0,xB=Math.min,bB=Math.max,_B=Math.pow,wB=1e4,SB=6,MB=6,IB="globalPan",CB={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},TB={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},AB={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},DB=0,kB=function(t){function e(e){var n=t.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new Wr,n._uid="brushController_"+DB++,Z(lV,(function(t,e){this._handlers[e]=nt(t,this)}),n),n}return v(e,t),e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var e=this._zr;this._enableGlobalPan||gP(e,IB,this._uid),Z(this._handlers,(function(t,n){e.on(n,t)})),this._brushType=t.brushType,this._brushOption=F(V(AB),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;vP(t,IB,this._uid),Z(this._handlers,(function(e,n){t.off(n,e)})),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var e=this._panels={};Z(t,(function(t){e[t.panelId]=V(t)}))}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=e.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=q(t,(function(t){return F(V(AB),t,!0)}));var e="\0-brush-index-",n=this._covers,i=this._covers=[],r=this,o=this._creatingCover;return new aM(n,t,s,a).add(l).update(l).remove(u).execute(),this;function a(t,n){return(null!=t.id?t.id:e+n)+"-"+t.brushType}function s(t,e){return a(t.__brushOption,e)}function l(e,a){var s=t[e];if(null!=a&&n[a]===o)i[e]=n[a];else{var l=i[e]=null!=a?(n[a].__brushOption=s,n[a]):PB(r,LB(r,s));RB(r,l)}}function u(t){n[t]!==o&&r.group.remove(n[t])}},e.prototype.unmount=function(){return this.enableBrush(!1),VB(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(le);function LB(t,e){var n=hV[e.brushType].createCover(t,e);return n.__brushOption=e,EB(n,e),t.group.add(n),n}function PB(t,e){var n=NB(e);return n.endCreating&&(n.endCreating(t,e),EB(e,e.__brushOption)),e}function OB(t,e){var n=e.__brushOption;NB(e).updateCoverShape(t,e,n.range,n)}function EB(t,e){var n=e.z;null==n&&(n=wB),t.traverse((function(t){t.z=n,t.z2=n}))}function RB(t,e){NB(e).updateCommon(t,e),OB(t,e)}function NB(t){return hV[t.__brushOption.brushType]}function zB(t,e,n){var i,r=t._panels;if(!r)return yB;var o=t._transform;return Z(r,(function(t){t.isTargetByCursor(e,n,o)&&(i=t)})),i}function BB(t,e){var n=t._panels;if(!n)return yB;var i=e.__brushOption.panelId;return null!=i?n[i]:yB}function VB(t){var e=t._covers,n=e.length;return Z(e,(function(e){t.group.remove(e)}),t),e.length=0,!!n}function FB(t,e){var n=q(t._covers,(function(t){var e=t.__brushOption,n=V(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}}));t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function HB(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],i=e[0],r=n[0]-i[0],o=n[1]-i[1],a=_B(r*r+o*o,.5);return a>SB}function $B(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function WB(t,e,n,i){var r=new Wr;return r.add(new eu({name:"main",style:XB(n),silent:!0,draggable:!0,cursor:"move",drift:it(JB,t,e,r,["n","s","w","e"]),ondragend:it(FB,e,{isEnd:!0})})),Z(i,(function(n){r.add(new eu({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:it(JB,t,e,r,n),ondragend:it(FB,e,{isEnd:!0})}))})),r}function GB(t,e,n,i){var r=i.brushStyle.lineWidth||0,o=bB(r,MB),a=n[0][0],s=n[1][0],l=a-r/2,u=s-r/2,c=n[0][1],h=n[1][1],d=c-o+r/2,p=h-o+r/2,f=c-a,g=h-s,v=f+r,m=g+r;YB(t,e,"main",a,s,f,g),i.transformable&&(YB(t,e,"w",l,u,o,m),YB(t,e,"e",d,u,o,m),YB(t,e,"n",l,u,v,o),YB(t,e,"s",l,p,v,o),YB(t,e,"nw",l,u,o,o),YB(t,e,"ne",d,u,o,o),YB(t,e,"sw",l,p,o,o),YB(t,e,"se",d,p,o,o))}function jB(t,e){var n=e.__brushOption,i=n.transformable,r=e.childAt(0);r.useStyle(XB(n)),r.attr({silent:!i,cursor:i?"move":"default"}),Z([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var r=e.childOfName(n.join("")),o=1===n.length?qB(t,n[0]):KB(t,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?TB[o]+"-resize":null})}))}function YB(t,e,n,i,r,o,a){var s=e.childOfName(n);s&&s.setShape(nV(eV(t,e,[[i,r],[i+o,r+a]])))}function XB(t){return W({strokeNoScale:!0},t.brushStyle)}function UB(t,e,n,i){var r=[xB(t,n),xB(e,i)],o=[bB(t,n),bB(e,i)];return[[r[0],o[0]],[r[1],o[1]]]}function ZB(t){return kd(t.group)}function qB(t,e){var n={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},r=Pd(n[e],ZB(t));return i[r]}function KB(t,e){var n=[qB(t,e[0]),qB(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function JB(t,e,n,i,r,o){var a=n.__brushOption,s=t.toRectRange(a.range),l=tV(e,r,o);Z(i,(function(t){var e=CB[t];s[e[0]][e[1]]+=l[e[0]]})),a.range=t.fromRectRange(UB(s[0][0],s[1][0],s[0][1],s[1][1])),RB(e,n),FB(e,{isEnd:!1})}function QB(t,e,n,i){var r=e.__brushOption.range,o=tV(t,n,i);Z(r,(function(t){t[0]+=o[0],t[1]+=o[1]})),RB(t,e),FB(t,{isEnd:!1})}function tV(t,e,n){var i=t.group,r=i.transformCoordToLocal(e,n),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function eV(t,e,n){var i=BB(t,e);return i&&i!==yB?i.clipPath(n,t._transform):V(n)}function nV(t){var e=xB(t[0][0],t[1][0]),n=xB(t[0][1],t[1][1]),i=bB(t[0][0],t[1][0]),r=bB(t[0][1],t[1][1]);return{x:e,y:n,width:i-e,height:r-n}}function iV(t,e,n){if(t._brushType&&!cV(t,e.offsetX,e.offsetY)){var i=t._zr,r=t._covers,o=zB(t,e,n);if(!t._dragging)for(var a=0;a<r.length;a++){var s=r[a].__brushOption;if(o&&(o===yB||s.panelId===o.panelId)&&hV[s.brushType].contain(r[a],n[0],n[1]))return}o&&i.setCursorStyle("crosshair")}}function rV(t){var e=t.event;e.preventDefault&&e.preventDefault()}function oV(t,e,n){return t.childOfName("main").contain(e,n)}function aV(t,e,n,i){var r,o=t._creatingCover,a=t._creatingPanel,s=t._brushOption;if(t._track.push(n.slice()),HB(t)||o){if(a&&!o){"single"===s.brushMode&&VB(t);var l=V(s);l.brushType=sV(l.brushType,a),l.panelId=a===yB?null:a.panelId,o=t._creatingCover=LB(t,l),t._covers.push(o)}if(o){var u=hV[sV(t._brushType,a)],c=o.__brushOption;c.range=u.getCreatingRange(eV(t,o,t._track)),i&&(PB(t,o),u.updateCommon(t,o)),OB(t,o),r={isEnd:i}}}else i&&"single"===s.brushMode&&s.removeOnClick&&zB(t,e,n)&&VB(t)&&(r={isEnd:i,removeOnClick:!0});return r}function sV(t,e){return"auto"===t?e.defaultBrushType:t}var lV={mousedown:function(t){if(this._dragging)uV(this,t);else if(!t.target||!t.target.draggable){rV(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null;var n=this._creatingPanel=zB(this,t,e);n&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,i=this.group.transformCoordToLocal(e,n);if(iV(this,t,i),this._dragging){rV(t);var r=aV(this,t,i,!1);r&&FB(this,r)}},mouseup:function(t){uV(this,t)}};function uV(t,e){if(t._dragging){rV(e);var n=e.offsetX,i=e.offsetY,r=t.group.transformCoordToLocal(n,i),o=aV(t,e,r,!0);t._dragging=!1,t._track=[],t._creatingCover=null,o&&FB(t,o)}}function cV(t,e,n){var i=t._zr;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}var hV={lineX:dV(0),lineY:dV(1),rect:{createCover:function(t,e){function n(t){return t}return WB({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=$B(t);return UB(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,i){GB(t,e,n,i)},updateCommon:jB,contain:oV},polygon:{createCover:function(t,e){var n=new Wr;return n.add(new Lh({name:"main",style:XB(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new Ah({name:"main",draggable:!0,drift:it(QB,t,e),ondragend:it(FB,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,i){e.childAt(0).setShape({points:eV(t,e,n)})},updateCommon:jB,contain:oV}};function dV(t){return{createCover:function(e,n){return WB({toRectRange:function(e){var n=[e,[0,100]];return t&&n.reverse(),n},fromRectRange:function(e){return e[t]}},e,n,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var n=$B(e),i=xB(n[0][t],n[1][t]),r=bB(n[0][t],n[1][t]);return[i,r]},updateCoverShape:function(e,n,i,r){var o,a=BB(e,n);if(a!==yB&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(t);else{var s=e._zr;o=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[i,o];t&&l.reverse(),GB(e,n,l,r)},updateCommon:jB,contain:oV}}var pV=kB;function fV(t){return t=mV(t),function(e){return Nd(e,t)}}function gV(t,e){return t=mV(t),function(n){var i=null!=e?e:n,r=i?t.width:t.height,o=i?t.x:t.y;return[o,o+(r||0)]}}function vV(t,e,n){var i=mV(t);return function(t,r){return i.contain(r[0],r[1])&&!TP(t,e,n)}}function mV(t){return mr.create(t)}var yV=["axisLine","axisTickLabel","axisName"],xV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.init=function(e,n){t.prototype.init.apply(this,arguments),(this._brushController=new pV(n.getZr())).on("brush",nt(this._onBrush,this))},e.prototype.render=function(t,e,n,i){if(!bV(t,e,i)){this.axisModel=t,this.api=n,this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new Wr,this.group.add(this._axisGroup),t.get("show")){var o=wV(t,e),a=o.coordinateSystem,s=t.getAreaSelectStyle(),l=s.width,u=t.axis.dim,c=a.getAxisLayout(u),h=$({strokeContainThreshold:l},c),d=new yL(t,h);Z(yV,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(h,s,t,o,l,n),Rd(r,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,e,n,i,r,o){var a=n.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),u=mr.create({x:a[0],y:-r/2,width:s,height:r});u.x-=l,u.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:fV(u),isTargetByCursor:vV(u,o,i),getLinearBrushOtherExtent:gV(u,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(_V(n))},e.prototype._onBrush=function(t){var e=t.areas,n=this.axisModel,i=n.axis,r=q(e,(function(t){return[i.coordToData(t.range[0],!0),i.coordToData(t.range[1],!0)]}));(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:r})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(ay);function bV(t,e,n){return n&&"axisAreaSelect"===n.type&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}function _V(t){var e=t.axis;return q(t.activeIntervals,(function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}}))}function wV(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}var SV=xV,MV={type:"axisAreaSelect",event:"axisAreaSelected"};function IV(t){t.registerAction(MV,(function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},(function(e){e.axis.model.setActiveIntervals(t.intervals)}))})),t.registerAction("parallelAxisExpand",(function(t,e){e.eachComponent({mainType:"parallel",query:t},(function(e){e.setAxisExpand(t)}))}))}var CV={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function TV(t){t.registerComponentView(Xz),t.registerComponentModel(Zz),t.registerCoordinateSystem("parallel",gB),t.registerPreprocessor(Fz),t.registerComponentModel(mB),t.registerComponentView(SV),Hk(t,"parallel",mB,CV),IV(t)}function AV(t){nM(TV),t.registerChartView(Pz),t.registerSeriesModel(Nz),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,Vz)}var DV=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return t}(),kV=function(t){function e(e){return t.call(this,e)||this}return v(e,t),e.prototype.getDefaultShape=function(){return new DV},e.prototype.buildPath=function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},e.prototype.highlight=function(){Qu(this)},e.prototype.downplay=function(){tc(this)},e}(Bl),LV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._focusAdjacencyDisabled=!1,n}return v(e,t),e.prototype.render=function(t,e,n){var i=this,r=t.getGraph(),o=this.group,a=t.layoutInfo,s=a.width,l=a.height,u=t.getData(),c=t.getData("edge"),h=t.get("orient");this._model=t,o.removeAll(),o.x=a.x,o.y=a.y,r.eachEdge((function(e){var n=new kV,i=vu(n);i.dataIndex=e.dataIndex,i.seriesIndex=t.seriesIndex,i.dataType="edge";var r,a,u,d,p,f,g,v,m=e.getModel(),y=m.getModel("lineStyle"),x=y.get("curveness"),b=e.node1.getLayout(),_=e.node1.getModel(),w=_.get("localX"),S=_.get("localY"),M=e.node2.getLayout(),I=e.node2.getModel(),C=I.get("localX"),T=I.get("localY"),A=e.getLayout();switch(n.shape.extent=Math.max(1,A.dy),n.shape.orient=h,"vertical"===h?(r=(null!=w?w*s:b.x)+A.sy,a=(null!=S?S*l:b.y)+b.dy,u=(null!=C?C*s:M.x)+A.ty,d=null!=T?T*l:M.y,p=r,f=a*(1-x)+d*x,g=u,v=a*x+d*(1-x)):(r=(null!=w?w*s:b.x)+b.dx,a=(null!=S?S*l:b.y)+A.sy,u=null!=C?C*s:M.x,d=(null!=T?T*l:M.y)+A.ty,p=r*(1-x)+u*x,f=a,g=r*x+u*(1-x),v=d),n.setShape({x1:r,y1:a,x2:u,y2:d,cpx1:p,cpy1:f,cpx2:g,cpy2:v}),n.useStyle(y.getItemStyle()),n.style.fill){case"source":n.style.fill=e.node1.getVisual("color"),n.style.decal=e.node1.getVisual("style").decal;break;case"target":n.style.fill=e.node2.getVisual("color"),n.style.decal=e.node2.getVisual("style").decal;break;case"gradient":var D=e.node1.getVisual("color"),k=e.node2.getVisual("color");"string"===typeof D&&"string"===typeof k&&(n.style.fill=new Zh(0,0,1,0,[{color:D,offset:0},{color:k,offset:1}]))}var L=m.getModel("emphasis");bc(n,m,"lineStyle",(function(t){return t.getItemStyle()})),o.add(n),c.setItemGraphicEl(e.dataIndex,n);var P=L.get("focus");vc(n,"adjacency"===P?e.getAdjacentDataIndices():P,L.get("blurScope")),vu(n).dataType="edge"})),r.eachNode((function(e){var n=e.getLayout(),i=e.getModel(),r=i.get("localX"),a=i.get("localY"),c=i.getModel("emphasis"),h=new eu({shape:{x:null!=r?r*s:n.x,y:null!=a?a*l:n.y,width:n.dx,height:n.dy},style:i.getModel("itemStyle").getItemStyle(),z2:10});Xd(h,Ud(i),{labelFetcher:t,labelDataIndex:e.dataIndex,defaultText:e.id}),h.disableLabelAnimation=!0,h.setStyle("fill",e.getVisual("color")),h.setStyle("decal",e.getVisual("style").decal),bc(h,i),o.add(h),u.setItemGraphicEl(e.dataIndex,h),vu(h).dataType="node";var d=c.get("focus");vc(h,"adjacency"===d?e.getAdjacentDataIndices():d,c.get("blurScope"))})),u.eachItemGraphicEl((function(e,r){var o=u.getItemModel(r);o.get("draggable")&&(e.drift=function(e,o){i._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:u.getRawIndex(r),localX:this.shape.x/s,localY:this.shape.y/l})},e.ondragend=function(){i._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor="move")})),!this._data&&t.isAnimationEnabled()&&o.setClipPath(PV(o.getBoundingRect(),t,(function(){o.removeClipPath()}))),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(vy);function PV(t,e,n){var i=new eu({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return Id(i,{shape:{width:t.width+20}},e,n),i}var OV=LV,EV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.getInitialData=function(t,e){var n=t.edges||t.links,i=t.data||t.nodes,r=t.levels;this.levelModels=[];for(var o=this.levelModels,a=0;a<r.length;a++)null!=r[a].depth&&r[a].depth>=0&&(o[r[a].depth]=new yp(r[a],this,e));if(i&&n){var s=KN(i,n,this,!0,l);return s.data}function l(t,e){t.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,i=n.getData().getItemLayout(e);if(i){var r=i.depth,o=n.levelModels[r];o&&(t.parentModel=o)}return t})),e.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,i=n.getGraph().getEdgeByIndex(e),r=i.node1.getLayout();if(r){var o=r.depth,a=n.levelModels[o];a&&(t.parentModel=a)}return t}))}},e.prototype.setNodePosition=function(t,e){var n=this.option.data[t];n.localX=e[0],n.localY=e[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,n){function i(t){return isNaN(t)||null==t}if("edge"===n){var r=this.getDataParams(t,n),o=r.data,a=r.value,s=o.source+" -- "+o.target;return Lm("nameValue",{name:s,value:a,noValue:i(a)})}var l=this.getGraph().getNodeByIndex(t),u=l.getLayout().value,c=this.getDataParams(t,n).data.name;return Lm("nameValue",{name:null!=c?c+"":null,value:u,noValue:i(u)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(e,n){var i=t.prototype.getDataParams.call(this,e,n);if(null==i.value&&"node"===n){var r=this.getGraph().getNodeByIndex(e),o=r.getLayout().value;i.value=o}return i},e.type="series.sankey",e.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},e}(ry),RV=EV;function NV(t,e){t.eachSeriesByType("sankey",(function(t){var n=t.get("nodeWidth"),i=t.get("nodeGap"),r=zV(t,e);t.layoutInfo=r;var o=r.width,a=r.height,s=t.getGraph(),l=s.nodes,u=s.edges;VV(l);var c=J(l,(function(t){return 0===t.getLayout().value})),h=0!==c.length?0:t.get("layoutIterations"),d=t.get("orient"),p=t.get("nodeAlign");BV(l,u,n,i,o,a,h,d,p)}))}function zV(t,e){return zf(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function BV(t,e,n,i,r,o,a,s,l){FV(t,e,n,r,o,s,l),jV(t,e,o,r,i,a,s),rF(t,s)}function VV(t){Z(t,(function(t){var e=nF(t.outEdges,eF),n=nF(t.inEdges,eF),i=t.getValue()||0,r=Math.max(e,n,i);t.setLayout({value:r},!0)}))}function FV(t,e,n,i,r,o,a){for(var s=[],l=[],u=[],c=[],h=0,d=0;d<e.length;d++)s[d]=1;for(d=0;d<t.length;d++)l[d]=t[d].inEdges.length,0===l[d]&&u.push(t[d]);var p=-1;while(u.length){for(var f=0;f<u.length;f++){var g=u[f],v=g.hostGraph.data.getRawDataItem(g.dataIndex),m=null!=v.depth&&v.depth>=0;m&&v.depth>p&&(p=v.depth),g.setLayout({depth:m?v.depth:h},!0),"vertical"===o?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var y=0;y<g.outEdges.length;y++){var x=g.outEdges[y],b=e.indexOf(x);s[b]=0;var _=x.node2,w=t.indexOf(_);0===--l[w]&&c.indexOf(_)<0&&c.push(_)}}++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=p>h-1?p:h-1;a&&"left"!==a&&$V(t,a,o,S);var M="vertical"===o?(r-n)/S:(i-n)/S;GV(t,M,o)}function HV(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function $V(t,e,n,i){if("right"===e){var r=[],o=t,a=0;while(o.length){for(var s=0;s<o.length;s++){var l=o[s];l.setLayout({skNodeHeight:a},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];r.indexOf(c.node1)<0&&r.push(c.node1)}}o=r,r=[],++a}Z(t,(function(t){HV(t)||t.setLayout({depth:Math.max(0,i-t.getLayout().skNodeHeight)},!0)}))}else"justify"===e&&WV(t,i)}function WV(t,e){Z(t,(function(t){HV(t)||t.outEdges.length||t.setLayout({depth:e},!0)}))}function GV(t,e,n){Z(t,(function(t){var i=t.getLayout().depth*e;"vertical"===n?t.setLayout({y:i},!0):t.setLayout({x:i},!0)}))}function jV(t,e,n,i,r,o,a){var s=YV(t,a);XV(s,e,n,i,r,a),UV(s,r,n,i,a);for(var l=1;o>0;o--)l*=.99,ZV(s,l,a),UV(s,r,n,i,a),iF(s,l,a),UV(s,r,n,i,a)}function YV(t,e){var n=[],i="vertical"===e?"y":"x",r=ca(t,(function(t){return t.getLayout()[i]}));return r.keys.sort((function(t,e){return t-e})),Z(r.keys,(function(t){n.push(r.buckets.get(t))})),n}function XV(t,e,n,i,r,o){var a=1/0;Z(t,(function(t){var e=t.length,s=0;Z(t,(function(t){s+=t.getLayout().value}));var l="vertical"===o?(i-(e-1)*r)/s:(n-(e-1)*r)/s;l<a&&(a=l)})),Z(t,(function(t){Z(t,(function(t,e){var n=t.getLayout().value*a;"vertical"===o?(t.setLayout({x:e},!0),t.setLayout({dx:n},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:n},!0))}))})),Z(e,(function(t){var e=+t.getValue()*a;t.setLayout({dy:e},!0)}))}function UV(t,e,n,i,r){var o="vertical"===r?"x":"y";Z(t,(function(t){var a,s,l;t.sort((function(t,e){return t.getLayout()[o]-e.getLayout()[o]}));for(var u=0,c=t.length,h="vertical"===r?"dx":"dy",d=0;d<c;d++)s=t[d],l=u-s.getLayout()[o],l>0&&(a=s.getLayout()[o]+l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]+s.getLayout()[h]+e;var p="vertical"===r?i:n;if(l=u-e-p,l>0){a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a;for(d=c-2;d>=0;--d)s=t[d],l=s.getLayout()[o]+s.getLayout()[h]+e-u,l>0&&(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]}}))}function ZV(t,e,n){Z(t.slice().reverse(),(function(t){Z(t,(function(t){if(t.outEdges.length){var i=nF(t.outEdges,qV,n)/nF(t.outEdges,eF);if(isNaN(i)){var r=t.outEdges.length;i=r?nF(t.outEdges,KV,n)/r:0}if("vertical"===n){var o=t.getLayout().x+(i-tF(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(i-tF(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function qV(t,e){return tF(t.node2,e)*t.getValue()}function KV(t,e){return tF(t.node2,e)}function JV(t,e){return tF(t.node1,e)*t.getValue()}function QV(t,e){return tF(t.node1,e)}function tF(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function eF(t){return t.getValue()}function nF(t,e,n){var i=0,r=t.length,o=-1;while(++o<r){var a=+e(t[o],n);isNaN(a)||(i+=a)}return i}function iF(t,e,n){Z(t,(function(t){Z(t,(function(t){if(t.inEdges.length){var i=nF(t.inEdges,JV,n)/nF(t.inEdges,eF);if(isNaN(i)){var r=t.inEdges.length;i=r?nF(t.inEdges,QV,n)/r:0}if("vertical"===n){var o=t.getLayout().x+(i-tF(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(i-tF(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function rF(t,e){var n="vertical"===e?"x":"y";Z(t,(function(t){t.outEdges.sort((function(t,e){return t.node2.getLayout()[n]-e.node2.getLayout()[n]})),t.inEdges.sort((function(t,e){return t.node1.getLayout()[n]-e.node1.getLayout()[n]}))})),Z(t,(function(t){var e=0,n=0;Z(t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),Z(t.inEdges,(function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy}))}))}function oF(t){t.eachSeriesByType("sankey",(function(t){var e=t.getGraph(),n=e.nodes;if(n.length){var i=1/0,r=-1/0;Z(n,(function(t){var e=t.getLayout().value;e<i&&(i=e),e>r&&(r=e)})),Z(n,(function(e){var n=new aR({type:"color",mappingMethod:"linear",dataExtent:[i,r],visual:t.get("color")}),o=n.mapValueToVisual(e.getLayout().value),a=e.getModel().get(["itemStyle","color"]);null!=a?(e.setVisual("color",a),e.setVisual("style",{fill:a})):(e.setVisual("color",o),e.setVisual("style",{fill:o}))}))}}))}function aF(t){t.registerChartView(OV),t.registerSeriesModel(RV),t.registerLayout(NV),t.registerVisual(oF),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))}))}var sF=function(){function t(){}return t.prototype.getInitialData=function(t,e){var n,i,r=e.getComponent("xAxis",this.get("xAxisIndex")),o=e.getComponent("yAxis",this.get("yAxisIndex")),a=r.get("type"),s=o.get("type");"category"===a?(t.layout="horizontal",n=r.getOrdinalMeta(),i=!0):"category"===s?(t.layout="vertical",n=o.getOrdinalMeta(),i=!0):t.layout=t.layout||"horizontal";var l=["x","y"],u="horizontal"===t.layout?0:1,c=this._baseAxisDim=l[u],h=l[1-u],d=[r,o],p=d[u].get("type"),f=d[1-u].get("type"),g=t.data;if(g&&i){var v=[];Z(g,(function(t,e){var n;rt(t)?(n=t.slice(),t.unshift(e)):rt(t.value)?(n=t.value.slice(),t.value.unshift(e)):n=t,v.push(n)})),t.data=v}var m=this.defaultValueDimensions,y=[{name:c,type:uM(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:uM(f),dimsDef:m.slice()}];return vk(this,{coordDimensions:y,dimensionsCount:m.length+1,encodeDefaulter:it(ug,y,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),lF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return v(e,t),e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.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},e}(ry);X(lF,sF,!0);var uF=lF,cF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===t.get("layout")?1:0;i.diff(o).add((function(t){if(i.hasValue(t)){var e=i.getItemLayout(t),n=pF(e,i,t,a,!0);i.setItemGraphicEl(t,n),r.add(n)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var s=i.getItemLayout(t);n?fF(s,n,i,t):n=pF(s,i,t,a),r.add(n),i.setItemGraphicEl(t,n)}else r.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&r.remove(e)})).execute(),this._data=i},e.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(t){t&&e.remove(t)}))},e.type="boxplot",e}(vy),hF=function(){function t(){}return t}(),dF=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return v(e,t),e.prototype.getDefaultShape=function(){return new hF},e.prototype.buildPath=function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i<n.length;i++)t.moveTo(n[i][0],n[i][1]),i++,t.lineTo(n[i][0],n[i][1])},e}(Bl);function pF(t,e,n,i,r){var o=t.ends,a=new dF({shape:{points:r?gF(o,i,t):o}});return fF(t,a,e,n,r),a}function fF(t,e,n,i,r){var o=n.hostModel,a=l[r?"initProps":"updateProps"];a(e,{shape:{points:t.ends}},o,i),e.useStyle(n.getItemVisual(i,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=n.getItemModel(i);bc(e,s),vc(e,s.get(["emphasis","focus"]),s.get(["emphasis","blurScope"]))}function gF(t,e,n){return q(t,(function(t){return t=t.slice(),t[e]=n.initBaseline,t}))}var vF=cF;function mF(t,e){}var yF=Z;function xF(t){var e=bF(t);yF(e,(function(t){var e=t.seriesModels;e.length&&(_F(t),yF(e,(function(e,n){wF(e,t.boxOffsetList[n],t.boxWidthList[n])})))}))}function bF(t){var e=[],n=[];return t.eachSeriesByType("boxplot",(function(t){var i=t.getBaseAxis(),r=j(n,i);r<0&&(r=n.length,n[r]=i,e[r]={axis:i,seriesModels:[]}),e[r].seriesModels.push(t)})),e}function _F(t){var e,n,i=t.axis,r=t.seriesModels,o=r.length,a=t.boxWidthList=[],s=t.boxOffsetList=[],l=[];if("category"===i.type)n=i.getBandWidth();else{var u=0;yF(r,(function(t){u=Math.max(u,t.getData().count())})),e=i.getExtent(),Math.abs(e[1]-e[0])}yF(r,(function(t){var e=t.get("boxWidth");rt(e)||(e=[e,e]),l.push([ao(e[0],n)||0,ao(e[1],n)||0])}));var c=.8*n-2,h=c/o*.3,d=(c-h*(o-1))/o,p=d/2-c/2;yF(r,(function(t,e){s.push(p),p+=h+d,a.push(Math.min(Math.max(d,l[e][0]),l[e][1]))}))}function wF(t,e,n){var i=t.coordinateSystem,r=t.getData(),o=n/2,a="horizontal"===t.get("layout")?0:1,s=1-a,l=["x","y"],u=r.mapDimension(l[a]),c=r.mapDimensionsAll(l[s]);if(!(null==u||c.length<5))for(var h=0;h<r.count();h++){var d=r.get(u,h),p=x(d,c[2],h),f=x(d,c[0],h),g=x(d,c[1],h),v=x(d,c[3],h),m=x(d,c[4],h),y=[];b(y,g,!1),b(y,v,!0),y.push(f,g,m,v),_(y,f),_(y,m),_(y,p),r.setItemLayout(h,{initBaseline:p[s],ends:y})}function x(t,n,o){var l,u=r.get(n,o),c=[];return c[a]=t,c[s]=u,isNaN(t)||isNaN(u)?l=[NaN,NaN]:(l=i.dataToPoint(c),l[a]+=e),l}function b(t,e,n){var i=e.slice(),r=e.slice();i[a]+=o,r[a]-=o,n?t.push(i,r):t.push(r,i)}function _(t,e){var n=e.slice(),i=e.slice();n[a]-=o,i[a]+=o,t.push(n,i)}}function SF(t,e){e=e||{};for(var n=[],i=[],r=e.boundIQR,o="none"===r||0===r,a=0;a<t.length;a++){var s=lo(t[a].slice()),l=So(s,.25),u=So(s,.5),c=So(s,.75),h=s[0],d=s[s.length-1],p=(null==r?1.5:r)*(c-l),f=o?h:Math.max(h,l-p),g=o?d:Math.min(d,c+p),v=e.itemNameFormatter,m=ot(v)?v({value:a}):at(v)?v.replace("{value}",a+""):a+"";n.push([m,f,l,u,c,g]);for(var y=0;y<s.length;y++){var x=s[y];if(x<f||x>g){var b=[m,x];i.push(b)}}}return{boxData:n,outliers:i}}var MF={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==Qf){var n="";0,Dg(n)}var i=SF(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function IF(t){t.registerSeriesModel(uF),t.registerChartView(vF),t.registerVisual(mF),t.registerLayout(xF),t.registerTransform(MF)}var CF=["color","borderColor"],TF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.render=function(t,e,n){this.group.removeClipPath(),this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,n,i){this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t){var e=t.getData(),n=this._data,i=this.group,r=e.getLayout("isSimpleBox"),o=t.get("clip",!0),a=t.coordinateSystem,s=a.getArea&&a.getArea();this._data||i.removeAll(),e.diff(n).add((function(n){if(e.hasValue(n)){var a=e.getItemLayout(n);if(o&&LF(s,a))return;var l=kF(a,n,!0);Id(l,{shape:{points:a.ends}},t,n),PF(l,e,n,r),i.add(l),e.setItemGraphicEl(n,l)}})).update((function(a,l){var u=n.getItemGraphicEl(l);if(e.hasValue(a)){var c=e.getItemLayout(a);o&&LF(s,c)?i.remove(u):(u?Md(u,{shape:{points:c.ends}},t,a):u=kF(c,a),PF(u,e,a,r),i.add(u),e.setItemGraphicEl(a,u))}else i.remove(u)})).remove((function(t){var e=n.getItemGraphicEl(t);e&&i.remove(e)})).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),NF(t,this.group);var e=t.get("clip",!0)?eD(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,e){var n,i=e.getData(),r=i.getLayout("isSimpleBox");while(null!=(n=t.next())){var o=i.getItemLayout(n),a=kF(o,n);PF(a,i,n,r),a.incremental=!0,this.group.add(a)}},e.prototype._incrementalRenderLarge=function(t,e){NF(e,this.group,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(vy),AF=function(){function t(){}return t}(),DF=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return v(e,t),e.prototype.getDefaultShape=function(){return new AF},e.prototype.buildPath=function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(Bl);function kF(t,e,n){var i=t.ends;return new DF({shape:{points:n?OF(i,t):i},z2:100})}function LF(t,e){for(var n=!0,i=0;i<e.ends.length;i++)if(t.contain(e.ends[i][0],e.ends[i][1])){n=!1;break}return n}function PF(t,e,n,i){var r=e.getItemModel(n);t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.__simpleBox=i,bc(t,r)}function OF(t,e){return q(t,(function(t){return t=t.slice(),t[1]=e.initBaseline,t}))}var EF=function(){function t(){}return t}(),RF=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeCandlestickBox",n}return v(e,t),e.prototype.getDefaultShape=function(){return new EF},e.prototype.buildPath=function(t,e){for(var n=e.points,i=0;i<n.length;)if(this.__sign===n[i++]){var r=n[i++];t.moveTo(r,n[i++]),t.lineTo(r,n[i++])}else i+=3},e}(Bl);function NF(t,e,n){var i=t.getData(),r=i.getLayout("largePoints"),o=new RF({shape:{points:r},__sign:1});e.add(o);var a=new RF({shape:{points:r},__sign:-1});e.add(a),zF(1,o,t,i),zF(-1,a,t,i),n&&(o.incremental=!0,a.incremental=!0)}function zF(t,e,n,i){var r=n.get(["itemStyle",t>0?"borderColor":"borderColor0"])||n.get(["itemStyle",t>0?"color":"color0"]),o=n.getModel("itemStyle").getItemStyle(CF);e.useStyle(o),e.style.fill=null,e.style.stroke=r}var BF=TF,VF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return v(e,t),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,e,n){var i=e.getItemLayout(t);return i&&n.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.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},e}(ry);X(VF,sF,!0);var FF=VF;function HF(t){t&&rt(t.series)&&Z(t.series,(function(t){ut(t)&&"k"===t.type&&(t.type="candlestick")}))}var $F=["itemStyle","borderColor"],WF=["itemStyle","borderColor0"],GF=["itemStyle","color"],jF=["itemStyle","color0"],YF={seriesType:"candlestick",plan:sy(),performRawSeries:!0,reset:function(t,e){function n(t,e){return e.get(t>0?GF:jF)}function i(t,e){return e.get(t>0?$F:WF)}if(!e.isSeriesFiltered(t)){var r=t.pipelineContext.large;return!r&&{progress:function(t,e){var r;while(null!=(r=t.next())){var o=e.getItemModel(r),a=e.getItemLayout(r).sign,s=o.getItemStyle();s.fill=n(a,o),s.stroke=i(a,o)||s.fill;var l=e.ensureUniqueItemVisual(r,"style");$(l,s)}}}}}},XF=YF,UF="undefined"!==typeof Float32Array?Float32Array:Array,ZF={seriesType:"candlestick",plan:sy(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),i=KF(t,n),r=0,o=1,a=["x","y"],s=n.mapDimension(a[r]),l=n.mapDimensionsAll(a[o]),u=l[0],c=l[1],h=l[2],d=l[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(null==s||l.length<4))return{progress:t.pipelineContext.large?f:p};function p(t,n){var a;while(null!=(a=t.next())){var l=n.get(s,a),p=n.get(u,a),f=n.get(c,a),g=n.get(h,a),v=n.get(d,a),m=Math.min(p,f),y=Math.max(p,f),x=M(m,l),b=M(y,l),_=M(g,l),w=M(v,l),S=[];I(S,b,0),I(S,x,1),S.push(T(w),T(b),T(_),T(x)),n.setItemLayout(a,{sign:qF(n,a,p,f,c),initBaseline:p>f?b[o]:x[o],ends:S,brushRect:C(g,v,l)})}function M(t,n){var i=[];return i[r]=n,i[o]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(i)}function I(t,e,n){var o=e.slice(),a=e.slice();o[r]=wd(o[r]+i/2,1,!1),a[r]=wd(a[r]-i/2,1,!0),n?t.push(o,a):t.push(a,o)}function C(t,e,n){var a=M(t,n),s=M(e,n);return a[r]-=i/2,s[r]-=i/2,{x:a[0],y:a[1],width:o?i:s[0]-a[0],height:o?s[1]-a[1]:i}}function T(t){return t[r]=wd(t[r],1),t}}function f(t,n){var i,a,l=new UF(4*t.count),p=0,f=[],g=[];while(null!=(a=t.next())){var v=n.get(s,a),m=n.get(u,a),y=n.get(c,a),x=n.get(h,a),b=n.get(d,a);isNaN(v)||isNaN(x)||isNaN(b)?(l[p++]=NaN,p+=3):(l[p++]=qF(n,a,m,y,c),f[r]=v,f[o]=x,i=e.dataToPoint(f,null,g),l[p++]=i?i[0]:NaN,l[p++]=i?i[1]:NaN,f[o]=b,i=e.dataToPoint(f,null,g),l[p++]=i?i[1]:NaN)}n.setLayout("largePoints",l)}}};function qF(t,e,n,i,r){var o;return o=n>i?-1:n<i?1:e>0?t.get(r,e-1)<=i?1:-1:1,o}function KF(t,e){var n,i=t.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/e.count()),o=ao(yt(t.get("barMaxWidth"),r),r),a=ao(yt(t.get("barMinWidth"),1),r),s=t.get("barWidth");return null!=s?ao(s,r):Math.max(Math.min(r/2,o),a)}var JF=ZF;function QF(t){t.registerChartView(BF),t.registerSeriesModel(FF),t.registerPreprocessor(HF),t.registerVisual(XF),t.registerLayout(JF)}var tH=3;function eH(t){return rt(t)||(t=[+t,+t]),t}function nH(t,e){var n=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})}))}var iH=function(t){function e(e,n){var i=t.call(this)||this,r=new LA(e,n),o=new Wr;return i.add(r),i.add(o),i.updateData(e,n),i}return v(e,t),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=this.childAt(1),r=0;r<tH;r++){var o=db(e,-1,-1,2,2,n);o.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var a=-r/tH*t.period+t.effectOffset;o.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(a).start(),o.animateStyle(!0).when(t.period,{opacity:0}).delay(a).start(),i.add(o)}nH(i,t)},e.prototype.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale"],r=0;r<i.length;r++){var o=i[r];if(e[o]!==t[o])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}nH(n,t)},e.prototype.highlight=function(){Qu(this)},e.prototype.downplay=function(){tc(this)},e.prototype.updateData=function(t,e){var n=this,i=t.hostModel;this.childAt(0).updateData(t,e);var r=this.childAt(1),o=t.getItemModel(e),a=t.getItemVisual(e,"symbol"),s=eH(t.getItemVisual(e,"symbolSize")),l=t.getItemVisual(e,"style"),u=l&&l.fill;r.setScale(s),r.traverse((function(t){t.setStyle("fill",u)}));var c=t.getItemVisual(e,"symbolOffset");c&&(rt(c)||(c=[c,c]),r.x=ao(c[0],s[0]),r.y=ao(yt(c[1],c[0])||0,s[1]));var h=t.getItemVisual(e,"symbolRotate");r.rotation=(h||0)*Math.PI/180||0;var d={};d.showEffectOn=i.get("showEffectOn"),d.rippleScale=o.get(["rippleEffect","scale"]),d.brushType=o.get(["rippleEffect","brushType"]),d.period=1e3*o.get(["rippleEffect","period"]),d.effectOffset=e/t.count(),d.z=i.getShallow("z")||0,d.zlevel=i.getShallow("zlevel")||0,d.symbolType=a,d.color=u,d.rippleEffectColor=o.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(t){"emphasis"===t?"render"!==d.showEffectOn&&n.startEffectAnimation(d):"normal"===t&&"render"!==d.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=d,vc(this)},e.prototype.fadeOut=function(t){this.off("mouseover").off("mouseout"),t&&t()},e}(Wr),rH=iH,oH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.init=function(){this._symbolDraw=new NA(rH)},e.prototype.render=function(t,e,n){var i=t.getData(),r=this._symbolDraw;r.updateData(i,{clipShape:this._getClipShape(t)}),this.group.add(r.group)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype.updateTransform=function(t,e,n){var i=t.getData();this.group.dirty();var r=bD("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var e=t.coordinateSystem;e&&e.getRoamTransform&&(this.group.transform=Ui(e.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(vy),aH=oH,sH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return v(e,t),e.prototype.getInitialData=function(t,e){return nI(this.getSource(),this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10},e}(ry),lH=sH;function uH(t){t.registerChartView(aH),t.registerSeriesModel(lH),t.registerLayout(bD("effectScatter"))}var cH=function(t){function e(e,n,i){var r=t.call(this)||this;return r.add(r.createLine(e,n,i)),r._updateEffectSymbol(e,n),r}return v(e,t),e.prototype.createLine=function(t,e,n){return new TN(t,e,n)},e.prototype._updateEffectSymbol=function(t,e){var n=t.getItemModel(e),i=n.getModel("effect"),r=i.get("symbolSize"),o=i.get("symbol");rt(r)||(r=[r,r]);var a=t.getItemVisual(e,"style"),s=i.get("color")||a&&a.stroke,l=this.childAt(1);this._symbolType!==o&&(this.remove(l),l=db(o,-.5,-.5,1,1,s),l.z2=100,l.culling=!0,this.add(l)),l&&(l.setStyle("shadowColor",s),l.setStyle(i.getItemStyle(["color"])),l.scaleX=r[0],l.scaleY=r[1],l.setColor(s),this._symbolType=o,this._symbolScale=r,this._updateEffectAnimation(t,i,e))},e.prototype._updateEffectAnimation=function(t,e,n){var i=this.childAt(1);if(i){var r=this,o=t.getItemLayout(n),a=1e3*e.get("period"),s=e.get("loop"),l=e.get("constantSpeed"),u=mt(e.get("delay"),(function(e){return e/t.count()*a/3}));if(i.ignore=!0,this._updateAnimationPoints(i,o),l>0&&(a=this._getLineLength(i)/l*1e3),(a!==this._period||s!==this._loop)&&(i.stopAnimation(),a>0)){var c=void 0;c="function"===typeof u?u(n):u,i.__t>0&&(c=-a*i.__t),i.__t=0;var h=i.animate("",s).when(a,{__t:1}).delay(c).during((function(){r._updateSymbolPosition(i)}));s||h.done((function(){r.remove(i)})),h.start()}this._period=a,this._loop=s}},e.prototype._getLineLength=function(t){return qt(t.__p1,t.__cp1)+qt(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},e.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,r=t.__t,o=[t.x,t.y],a=o.slice(),s=Ms,l=Is;o[0]=s(e[0],i[0],n[0],r),o[1]=s(e[1],i[1],n[1],r);var u=l(e[0],i[0],n[0],r),c=l(e[1],i[1],n[1],r);t.rotation=-Math.atan2(c,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT<t.__t?(t.scaleY=1.05*qt(a,o),1===r&&(o[0]=a[0]+(o[0]-a[0])/2,o[1]=a[1]+(o[1]-a[1])/2)):1===t.__lastT?t.scaleY=2*qt(e,o):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=o[0],t.y=o[1]},e.prototype.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,n,e)},e}(Wr),hH=cH,dH=function(t){function e(e,n,i){var r=t.call(this)||this;return r._createPolyline(e,n,i),r}return v(e,t),e.prototype._createPolyline=function(t,e,n){var i=t.getItemLayout(e),r=new Lh({shape:{points:i}});this.add(r),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var i=t.hostModel,r=this.childAt(0),o={shape:{points:t.getItemLayout(e)}};Md(r,o,i,e),this._updateCommonStl(t,e,n)},e.prototype._updateCommonStl=function(t,e,n){var i=this.childAt(0),r=t.getItemModel(e),o=n&&n.emphasisLineStyle;n&&!t.hasItemOption||(o=r.getModel(["emphasis","lineStyle"]).getLineStyle()),i.useStyle(t.getItemVisual(e,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var a=i.ensureState("emphasis");a.style=o,vc(this)},e.prototype.updateLayout=function(t,e){var n=this.childAt(0);n.setShape("points",t.getItemLayout(e))},e}(Wr),pH=dH,fH=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return v(e,t),e.prototype.createLine=function(t,e,n){return new pH(t,e,n)},e.prototype._updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],i=0,r=1;r<e.length;r++){var o=e[r-1],a=e[r];i+=qt(o,a),n.push(i)}if(0!==i){for(r=0;r<n.length;r++)n[r]/=i;this._offsets=n,this._length=i}else this._length=0},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var e=t.__t,n=this._points,i=this._offsets,r=n.length;if(i){var o,a=this._lastFrame;if(e<this._lastFramePercent){var s=Math.min(a+1,r-1);for(o=s;o>=0;o--)if(i[o]<=e)break;o=Math.min(o,r-2)}else{for(o=a;o<r;o++)if(i[o]>e)break;o=Math.min(o-1,r-2)}var l=(e-i[o])/(i[o+1]-i[o]),u=n[o],c=n[o+1];t.x=u[0]*(1-l)+l*c[0],t.y=u[1]*(1-l)+l*c[1];var h=c[0]-u[0],d=c[1]-u[1];t.rotation=-Math.atan2(d,h)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},e}(hH),gH=fH,vH=function(){function t(){this.polyline=!1,this.curveness=0,this.segs=[]}return t}(),mH=function(t){function e(e){return t.call(this,e)||this}return v(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new vH},e.prototype.buildPath=function(t,e){var n=e.segs,i=e.curveness;if(e.polyline)for(var r=0;r<n.length;){var o=n[r++];if(o>0){t.moveTo(n[r++],n[r++]);for(var a=1;a<o;a++)t.lineTo(n[r++],n[r++])}}else for(r=0;r<n.length;){var s=n[r++],l=n[r++],u=n[r++],c=n[r++];if(t.moveTo(s,l),i>0){var h=(s+u)/2-(l-c)*i,d=(l+c)/2-(u-s)*i;t.quadraticCurveTo(h,d,u,c)}else t.lineTo(u,c)}},e.prototype.findDataIndex=function(t,e){var n=this.shape,i=n.segs,r=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s<i.length;){var l=i[s++];if(l>0)for(var u=i[s++],c=i[s++],h=1;h<l;h++){var d=i[s++],p=i[s++];if(pl(u,c,d,p,o,t,e))return a}a++}else for(a=0,s=0;s<i.length;){u=i[s++],c=i[s++],d=i[s++],p=i[s++];if(r>0){var f=(u+d)/2-(c-p)*r,g=(c+p)/2-(d-u)*r;if(gl(u,c,f,g,d,p,o,t,e))return a}else if(pl(u,c,d,p,o,t,e))return a;a++}return-1},e}(Bl),yH=function(){function t(){this.group=new Wr}return t.prototype.isPersistent=function(){return!this._incremental},t.prototype.updateData=function(t){this.group.removeAll();var e=new mH({rectHover:!0,cursor:"default"});e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},t.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>5e5?(this._incremental||(this._incremental=new ad({silent:!0})),this.group.add(this._incremental)):this._incremental=null},t.prototype.incrementalUpdate=function(t,e){var n=new mH;n.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(n,e,!!this._incremental),this._incremental?this._incremental.addDisplayable(n,!0):(n.rectHover=!0,n.cursor="default",n.__startIndex=t.start,this.group.add(n))},t.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},t.prototype._setCommon=function(t,e,n){var i=e.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var r=e.getVisual("style");if(r&&r.stroke&&t.setStyle("stroke",r.stroke),t.setStyle("fill",null),!n){var o=vu(t);o.seriesIndex=i.seriesIndex,t.on("mousemove",(function(e){o.dataIndex=null;var n=t.findDataIndex(e.offsetX,e.offsetY);n>0&&(o.dataIndex=n+t.__startIndex)}))}},t.prototype._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()},t}(),xH=yH,bH={seriesType:"lines",plan:sy(),reset:function(t){var e=t.coordinateSystem,n=t.get("polyline"),i=t.pipelineContext.large;return{progress:function(r,o){var a=[];if(i){var s=void 0,l=r.end-r.start;if(n){for(var u=0,c=r.start;c<r.end;c++)u+=t.getLineCoordsCount(c);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var h=0,d=[];for(c=r.start;c<r.end;c++){var p=t.getLineCoords(c,a);n&&(s[h++]=p);for(var f=0;f<p;f++)d=e.dataToPoint(a[f],!1,d),s[h++]=d[0],s[h++]=d[1]}o.setLayout("linesPoints",s)}else for(c=r.start;c<r.end;c++){var g=o.getItemModel(c),v=(p=t.getLineCoords(c,a),[]);if(n)for(var m=0;m<p;m++)v.push(e.dataToPoint(a[m]));else{v[0]=e.dataToPoint(a[0]),v[1]=e.dataToPoint(a[1]);var y=g.get(["lineStyle","curveness"]);+y&&(v[2]=[(v[0][0]+v[1][0])/2-(v[0][1]-v[1][1])*y,(v[0][1]+v[1][1])/2-(v[1][0]-v[0][0])*y])}o.setItemLayout(c,v)}}}}},_H=bH,wH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._updateLineDraw(i,t),o=t.get("zlevel"),a=t.get(["effect","trailLength"]),s=n.getZr(),l="svg"===s.painter.getType();(l||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&a)&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)}));r.updateData(i);var u=t.get("clip",!0)&&eD(t.coordinateSystem,!1,t);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData(),r=this._updateLineDraw(i,t);r.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var i=t.getData(),r=t.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=_H.reset(t,e,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,e){var n=this._lineDraw,i=this._showEffect(e),r=!!e.get("polyline"),o=e.pipelineContext,a=o.large;return n&&i===this._hasEffet&&r===this._isPolyline&&a===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=a?new xH:new ON(r?i?gH:pH:i?hH:TN),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=a,this.group.removeAll()),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var e=t.getZr(),n="svg"===e.painter.getType();n||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},e.type="lines",e}(vy),SH=wH,MH="undefined"===typeof Uint32Array?Array:Uint32Array,IH="undefined"===typeof Float64Array?Array:Float64Array;function CH(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=q(e,(function(t){var e=[t[0].coord,t[1].coord],n={coords:e};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),H([n,t[0],t[1]])})))}var TH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return v(e,t),e.prototype.init=function(e){e.data=e.data||[],CH(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(e){if(CH(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=Dt(this._flatCoords,e.flatCoords),this._flatCoordsOffset=Dt(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var e=this.getData().getItemModel(t),n=e.option instanceof Array?e.option:e.getShallow("coords");return n},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],r=0;r<i;r++)e[r]=e[r]||[],e[r][0]=this._flatCoords[n+2*r],e[r][1]=this._flatCoords[n+2*r+1];return i}var o=this._getCoordsFromItemModel(t);for(r=0;r<o.length;r++)e[r]=e[r]||[],e[r][0]=o[r][0],e[r][1]=o[r][1];return o.length},e.prototype._processFlatCoordsArray=function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),"number"===typeof t[0]){for(var n=t.length,i=new MH(n),r=new IH(n),o=0,a=0,s=0,l=0;l<n;){s++;var u=t[l++];i[a++]=o+e,i[a++]=u;for(var c=0;c<u;c++){var h=t[l++],d=t[l++];r[o++]=h,r[o++]=d}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,a),flatCoords:r,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,e){var n=new FM(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],(function(t,e,i,r){if(t instanceof Array)return NaN;n.hasItemOption=!0;var o=t.value;return null!=o?o instanceof Array?o[r]:o:void 0})),n},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=i.getItemModel(t),o=r.get("name");if(o)return o;var a=r.get("fromName"),s=r.get("toName"),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),Lm("nameValue",{name:l.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.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}},e}(ry),AH=TH;function DH(t){return t instanceof Array||(t=[t,t]),t}var kH={seriesType:"lines",reset:function(t){var e=DH(t.get("symbol")),n=DH(t.get("symbolSize")),i=t.getData();function r(t,e){var n=t.getItemModel(e),i=DH(n.getShallow("symbol",!0)),r=DH(n.getShallow("symbolSize",!0));i[0]&&t.setItemVisual(e,"fromSymbol",i[0]),i[1]&&t.setItemVisual(e,"toSymbol",i[1]),r[0]&&t.setItemVisual(e,"fromSymbolSize",r[0]),r[1]&&t.setItemVisual(e,"toSymbolSize",r[1])}return i.setVisual("fromSymbol",e&&e[0]),i.setVisual("toSymbol",e&&e[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?r:null}}},LH=kH;function PH(t){t.registerChartView(SH),t.registerSeriesModel(AH),t.registerLayout(_H),t.registerVisual(LH)}var OH=256,EH=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=G();this.canvas=t}return t.prototype.update=function(t,e,n,i,r,o){var a=this._getBrush(),s=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),d=t.length;c.width=e,c.height=n;for(var p=0;p<d;++p){var f=t[p],g=f[0],v=f[1],m=f[2],y=i(m);h.globalAlpha=y,h.drawImage(a,g-u,v-u)}if(!c.width||!c.height)return c;var x=h.getImageData(0,0,c.width,c.height),b=x.data,_=0,w=b.length,S=this.minOpacity,M=this.maxOpacity,I=M-S;while(_<w){y=b[_+3]/256;var C=4*Math.floor(y*(OH-1));if(y>0){var T=o(y)?s:l;y>0&&(y=y*I+S),b[_++]=T[C],b[_++]=T[C+1],b[_++]=T[C+2],b[_++]=T[C+3]*y*256}else _+=4}return h.putImageData(x,0,0),c},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=G()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,a=0;a<256;a++)t[e](a/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i},t}(),RH=EH;function NH(t,e,n){var i=t[1]-t[0];e=q(e,(function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}}));var r=e.length,o=0;return function(t){var i;for(i=o;i<r;i++){var a=e[i].interval;if(a[0]<=t&&t<=a[1]){o=i;break}}if(i===r)for(i=o-1;i>=0;i--){a=e[i].interval;if(a[0]<=t&&t<=a[1]){o=i;break}}return i>=0&&i<r&&n[i]}}function zH(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}function BH(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var VH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.render=function(t,e,n){var i;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(n){n===t&&(i=e)}))})),this.group.removeAll(),this._incrementalDisplayable=null;var r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):BH(r)&&this._renderOnGeo(r,t,i,n)},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,n,i){var r=e.coordinateSystem;r&&(BH(r)?this.render(e,n,i):this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0))},e.prototype._renderOnCartesianAndCalendar=function(t,e,n,i,r){var o,a,s,l,u=t.coordinateSystem;if(nD(u,"cartesian2d")){var c=u.getAxis("x"),h=u.getAxis("y");0,o=c.getBandWidth(),a=h.getBandWidth(),s=c.scale.getExtent(),l=h.scale.getExtent()}for(var d=this.group,p=t.getData(),f=t.getModel(["emphasis","itemStyle"]).getItemStyle(),g=t.getModel(["blur","itemStyle"]).getItemStyle(),v=t.getModel(["select","itemStyle"]).getItemStyle(),m=Ud(t),y=t.get(["emphasis","focus"]),x=t.get(["emphasis","blurScope"]),b=nD(u,"cartesian2d")?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],_=n;_<i;_++){var w=void 0,S=p.getItemVisual(_,"style");if(nD(u,"cartesian2d")){var M=p.get(b[0],_),I=p.get(b[1],_);if(isNaN(p.get(b[2],_))||M<s[0]||M>s[1]||I<l[0]||I>l[1])continue;var C=u.dataToPoint([M,I]);w=new eu({shape:{x:Math.floor(Math.round(C[0])-o/2),y:Math.floor(Math.round(C[1])-a/2),width:Math.ceil(o),height:Math.ceil(a)},style:S})}else{if(isNaN(p.get(b[1],_)))continue;w=new eu({z2:1,shape:u.dataToRect([p.get(b[0],_)]).contentShape,style:S})}var T=p.getItemModel(_);if(p.hasItemOption){var A=T.getModel("emphasis");f=A.getModel("itemStyle").getItemStyle(),g=T.getModel(["blur","itemStyle"]).getItemStyle(),v=T.getModel(["select","itemStyle"]).getItemStyle(),y=A.get("focus"),x=A.get("blurScope"),m=Ud(T)}var D=t.getRawValue(_),k="-";D&&null!=D[2]&&(k=D[2]+""),Xd(w,m,{labelFetcher:t,labelDataIndex:_,defaultOpacity:S.opacity,defaultText:k}),w.ensureState("emphasis").style=f,w.ensureState("blur").style=g,w.ensureState("select").style=v,vc(w,y,x),w.incremental=r,r&&(w.states.emphasis.hoverLayer=!0),d.add(w),p.setItemGraphicEl(_,w)}},e.prototype._renderOnGeo=function(t,e,n,i){var r=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=e.getData(),s=this._hmLayer||this._hmLayer||new RH;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var l=t.getViewRect().clone(),u=t.getRoamTransform();l.applyTransform(u);var c=Math.max(l.x,0),h=Math.max(l.y,0),d=Math.min(l.width+l.x,i.getWidth()),p=Math.min(l.height+l.y,i.getHeight()),f=d-c,g=p-h,v=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],m=a.mapArray(v,(function(e,n,i){var r=t.dataToPoint([e,n]);return r[0]-=c,r[1]-=h,r.push(i),r})),y=n.getExtent(),x="visualMap.continuous"===n.type?zH(y,n.option.range):NH(y,n.getPieceList(),n.option.selected);s.update(m,f,g,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:o.color.getColorMapper()},x);var b=new Yl({style:{width:f,height:g,x:c,y:h,image:s.canvas},silent:!0});this.group.add(b)},e.type="heatmap",e}(vy),FH=VH,HH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.getInitialData=function(t,e){return nI(this.getSource(),this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=Gg.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(ry),$H=HH;function WH(t){t.registerChartView(FH),t.registerSeriesModel($H)}var GH=["itemStyle","borderWidth"],jH=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],YH=new Jc,XH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.render=function(t,e,n){var i=this.group,r=t.getData(),o=this._data,a=t.coordinateSystem,s=a.getBaseAxis(),l=s.isHorizontal(),u=a.master.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:a,coordSysExtent:[[u.x,u.x+u.width],[u.y,u.y+u.height]],isHorizontal:l,valueDim:jH[+l],categoryDim:jH[1-+l]};return r.diff(o).add((function(t){if(r.hasValue(t)){var e=o$(r,t),n=UH(r,t,e,c),o=l$(r,c,n);r.setItemGraphicEl(t,o),i.add(o),f$(o,c,n)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(r.hasValue(t)){var a=o$(r,t),s=UH(r,t,a,c),l=h$(r,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(t,null),n=null),n?u$(n,c,s):n=l$(r,c,s,!0),r.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,i.add(n),f$(n,c,s)}else i.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&c$(o,t,e.__pictorialSymbolMeta.animationModel,e)})).execute(),this._data=r,this.group},e.prototype.remove=function(t,e){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl((function(e){c$(i,vu(e).dataIndex,t,e)})):n.removeAll()},e.type="pictorialBar",e}(vy);function UH(t,e,n,i){var r=t.getItemLayout(e),o=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,h=n.isAnimationEnabled(),d={dataIndex:e,layout:r,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:h?n:null,hoverScale:h&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};ZH(n,o,r,i,d),KH(t,e,r,o,a,d.boundingLength,d.pxSign,c,i,d),JH(n,d.symbolScale,u,i,d);var p=d.symbolSize,f=n.get("symbolOffset");return rt(f)&&(f=[ao(f[0],p[0]),ao(f[1],p[1])]),QH(n,p,r,o,a,f,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,i,d),d}function ZH(t,e,n,i,r){var o,a=i.valueDim,s=t.get("symbolBoundingData"),l=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),c=1-+(n[a.wh]<=0);if(rt(s)){var h=[qH(l,s[0])-u,qH(l,s[1])-u];h[1]<h[0]&&h.reverse(),o=h[c]}else o=null!=s?qH(l,s)-u:e?i.coordSysExtent[a.index][c]-u:n[a.wh];r.boundingLength=o,e&&(r.repeatCutLength=n[a.wh]),r.pxSign=o>0?1:o<0?-1:0}function qH(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function KH(t,e,n,i,r,o,a,s,l,u){var c,h=l.valueDim,d=l.categoryDim,p=Math.abs(n[d.wh]),f=t.getItemVisual(e,"symbolSize");c=rt(f)?f.slice():null==f?["100%","100%"]:[f,f],c[d.index]=ao(c[d.index],p),c[h.index]=ao(c[h.index],i?p:Math.abs(o)),u.symbolSize=c;var g=u.symbolScale=[c[0]/s,c[1]/s];g[h.index]*=(l.isHorizontal?-1:1)*a}function JH(t,e,n,i,r){var o=t.get(GH)||0;o&&(YH.attr({scaleX:e[0],scaleY:e[1],rotation:n}),YH.updateTransform(),o/=YH.getLineScale(),o*=e[i.valueDim.index]),r.valueLineWidth=o}function QH(t,e,n,i,r,o,a,s,l,u,c,h){var d=c.categoryDim,p=c.valueDim,f=h.pxSign,g=Math.max(e[p.index]+s,0),v=g;if(i){var m=Math.abs(l),y=mt(t.get("symbolMargin"),"15%")+"",x=!1;y.lastIndexOf("!")===y.length-1&&(x=!0,y=y.slice(0,y.length-1));var b=ao(y,e[p.index]),_=Math.max(g+2*b,0),w=x?0:2*b,S=Co(i),M=S?i:g$((m+w)/_),I=m-M*g;b=I/2/(x?M:M-1),_=g+2*b,w=x?0:2*b,S||"fixed"===i||(M=u?g$((Math.abs(u)+w)/_):0),v=M*_-w,h.repeatTimes=M,h.symbolMargin=b}var C=f*(v/2),T=h.pathPosition=[];T[d.index]=n[d.wh]/2,T[p.index]="start"===a?C:"end"===a?l-C:l/2,o&&(T[0]+=o[0],T[1]+=o[1]);var A=h.bundlePosition=[];A[d.index]=n[d.xy],A[p.index]=n[p.xy];var D=h.barRectShape=$({},n);D[p.wh]=f*Math.max(Math.abs(n[p.wh]),Math.abs(T[p.index]+C)),D[d.wh]=n[d.wh];var k=h.clipShape={};k[d.xy]=-n[d.xy],k[d.wh]=c.ecSize[d.wh],k[p.xy]=0,k[p.wh]=n[p.wh]}function t$(t){var e=t.symbolPatternSize,n=db(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function e$(t,e,n,i){var r=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,c=0,h=o[e.valueDim.index]+a+2*n.symbolMargin;for(d$(t,(function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=u,c<u?p$(t,null,f(c),n,i):p$(t,null,{scaleX:0,scaleY:0},n,i,(function(){r.remove(t)})),c++}));c<u;c++){var d=t$(n);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,r.add(d);var p=f(c);p$(d,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},n,i)}function f(t){var e=s.slice(),i=n.pxSign,r=t;return("start"===n.symbolRepeatDirection?i>0:i<0)&&(r=u-1-t),e[l.index]=h*(r-u/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function n$(t,e,n,i){var r=t.__pictorialBundle,o=t.__pictorialMainPath;o?p$(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(o=t.__pictorialMainPath=t$(n),r.add(o),p$(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function i$(t,e,n){var i=$({},e.barRectShape),r=t.__pictorialBarRect;r?p$(r,null,{shape:i},e,n):(r=t.__pictorialBarRect=new eu({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),t.add(r))}function r$(t,e,n,i){if(n.symbolClip){var r=t.__pictorialClipPath,o=$({},n.clipShape),a=e.valueDim,s=n.animationModel,u=n.dataIndex;if(r)Md(r,{shape:o},s,u);else{o[a.wh]=0,r=new eu({shape:o}),t.__pictorialBundle.setClipPath(r),t.__pictorialClipPath=r;var c={};c[a.wh]=n.clipShape[a.wh],l[i?"updateProps":"initProps"](r,{shape:c},s,u)}}}function o$(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=a$,n.isAnimationEnabled=s$,n}function a$(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function s$(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function l$(t,e,n,i){var r=new Wr,o=new Wr;return r.add(o),r.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?e$(r,e,n):n$(r,e,n),i$(r,n,i),r$(r,e,n,i),r.__pictorialShapeStr=h$(t,n),r.__pictorialSymbolMeta=n,r}function u$(t,e,n){var i=n.animationModel,r=n.dataIndex,o=t.__pictorialBundle;Md(o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,r),n.symbolRepeat?e$(t,e,n,!0):n$(t,e,n,!0),i$(t,n,!0),r$(t,e,n,!0)}function c$(t,e,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];d$(i,(function(t){o.push(t)})),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),Z(o,(function(t){Cd(t,{scaleX:0,scaleY:0},n,e,(function(){i.parent&&i.parent.remove(i)}))})),t.setItemGraphicEl(e,null)}function h$(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function d$(t,e,n){Z(t.__pictorialBundle.children(),(function(i){i!==t.__pictorialBarRect&&e.call(n,i)}))}function p$(t,e,n,i,r,o){e&&t.attr(e),i.symbolClip&&!r?n&&t.attr(n):n&&l[r?"updateProps":"initProps"](t,n,i.animationModel,i.dataIndex,o)}function f$(t,e,n){var i=n.dataIndex,r=n.itemModel,o=r.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=r.getModel(["blur","itemStyle"]).getItemStyle(),l=r.getModel(["select","itemStyle"]).getItemStyle(),u=r.getShallow("cursor"),c=o.get("focus"),h=o.get("blurScope"),d=o.get("scale");d$(t,(function(t){if(t instanceof Yl){var e=t.style;t.useStyle($({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))}else t.useStyle(n.style);var i=t.ensureState("emphasis");i.style=a,d&&(i.scaleX=1.1*t.scaleX,i.scaleY=1.1*t.scaleY),t.ensureState("blur").style=s,t.ensureState("select").style=l,u&&(t.cursor=u),t.z2=n.z2}));var p=e.valueDim.posDesc[+(n.boundingLength>0)],f=t.__pictorialBarRect;Xd(f,Ud(r),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:TA(e.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),vc(t,c,h)}function g$(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var v$=XH,m$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return v(e,t),e.prototype.getInitialData=function(e){return e.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Sp(CD.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(CD),y$=m$;function x$(t){t.registerChartView(v$),t.registerSeriesModel(y$),t.registerLayout(it(PI,"pictorialBar"))}var b$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return v(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this,o=this.group,a=t.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function c(t){return t.name}o.x=0,o.y=l.y+u[0];var h=new aM(this._layersSeries||[],a,c,c),d=[];function p(e,n,s){var l=r._layers;if("remove"!==e){for(var u,c,h=[],p=[],f=a[n].indices,g=0;g<f.length;g++){var v=i.getItemLayout(f[g]),m=v.x,y=v.y0,x=v.y;h.push(m,y),p.push(m,y+x),u=i.getItemVisual(f[g],"style")}var b=i.getItemLayout(f[0]),_=t.getModel("label"),w=_.get("margin"),S=t.getModel("emphasis");if("add"===e){var M=d[n]=new Wr;c=new JA({shape:{points:h,stackedOnPoints:p,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),M.add(c),o.add(M),t.isAnimationEnabled()&&c.setClipPath(_$(c.getBoundingRect(),t,(function(){c.removeClipPath()})))}else{M=l[s];c=M.childAt(0),o.add(M),d[n]=M,Md(c,{shape:{points:h,stackedOnPoints:p}},t)}Xd(c,Ud(t),{labelDataIndex:f[g-1],defaultText:i.getName(f[g-1]),inheritColor:u.fill},{normal:{verticalAlign:"middle"}}),c.setTextConfig({position:null,local:!0});var I=c.getTextContent();I&&(I.x=b.x-w,I.y=b.y0+b.y/2),c.useStyle(u),i.setItemGraphicEl(n,c),bc(c,t),vc(c,S.get("focus"),S.get("blurScope"))}else o.remove(l[n])}h.add(nt(p,this,"add")).update(nt(p,this,"update")).remove(nt(p,this,"remove")).execute(),this._layersSeries=a,this._layers=d},e.type="themeRiver",e}(vy);function _$(t,e,n){var i=new eu({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return Id(i,{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},e,n),i}var w$=b$,S$=2,M$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.useColorPaletteOnData=!0,n}return v(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new yk(nt(this.getData,this),nt(this.getRawData,this))},e.prototype.fixData=function(t){var e=t.length,n={},i=ca(t,(function(t){return n.hasOwnProperty(t[0]+"")||(n[t[0]+""]=-1),t[2]})),r=[];i.buckets.each((function(t,e){r.push({name:e,dataList:t})}));for(var o=r.length,a=0;a<o;++a){for(var s=r[a].name,l=0;l<r[a].dataList.length;++l){var u=r[a].dataList[l][0]+"";n[u]=a}for(var u in n)n.hasOwnProperty(u)&&n[u]!==a&&(n[u]=a,t[e]=[u,0,s],e++)}return t},e.prototype.getInitialData=function(t,e){for(var n=this.getReferringComponents("singleAxis",ra).models[0],i=n.get("type"),r=J(t.data,(function(t){return void 0!==t[2]})),o=this.fixData(r||[]),a=[],s=this.nameMap=At(),l=0,u=0;u<o.length;++u)a.push(o[u][S$]),s.get(o[u][S$])||(s.set(o[u][S$],l),l++);var c=jM(o,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:uM(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),h=new FM(c,this);return h.initData(o),h},e.prototype.getLayerSeries=function(){for(var t=this.getData(),e=t.count(),n=[],i=0;i<e;++i)n[i]=i;var r=t.mapDimension("single"),o=ca(n,(function(e){return t.get("name",e)})),a=[];return o.buckets.each((function(e,n){e.sort((function(e,n){return t.get(r,e)-t.get(r,n)})),a.push({name:n,indices:e})})),a},e.prototype.getAxisTooltipData=function(t,e,n){rt(t)||(t=t?[t]:[]);for(var i,r=this.getData(),o=this.getLayerSeries(),a=[],s=o.length,l=0;l<s;++l){for(var u=Number.MAX_VALUE,c=-1,h=o[l].indices.length,d=0;d<h;++d){var p=r.get(t[0],o[l].indices[d]),f=Math.abs(p-e);f<=u&&(i=p,u=f,c=o[l].indices[d])}a.push(c)}return{dataIndices:a,nestestValue:i}},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=i.getName(t),o=i.get(i.mapDimension("value"),t);return Lm("nameValue",{name:r,value:o})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.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}}},e}(ry),I$=M$;function C$(t,e){t.eachSeriesByType("themeRiver",(function(t){var e=t.getData(),n=t.coordinateSystem,i={},r=n.getRect();i.rect=r;var o=t.get("boundaryGap"),a=n.getAxis();if(i.boundaryGap=o,"horizontal"===a.orient){o[0]=ao(o[0],r.height),o[1]=ao(o[1],r.height);var s=r.height-o[0]-o[1];T$(e,t,s)}else{o[0]=ao(o[0],r.width),o[1]=ao(o[1],r.width);var l=r.width-o[0]-o[1];T$(e,t,l)}e.setLayout("layoutInfo",i)}))}function T$(t,e,n){if(t.count())for(var i,r=e.coordinateSystem,o=e.getLayerSeries(),a=t.mapDimension("single"),s=t.mapDimension("value"),l=q(o,(function(e){return q(e.indices,(function(e){var n=r.dataToPoint(t.get(a,e));return n[1]=t.get(s,e),n}))})),u=A$(l),c=u.y0,h=n/u.max,d=o.length,p=o[0].indices.length,f=0;f<p;++f){i=c[f]*h,t.setItemLayout(o[0].indices[f],{layerIndex:0,x:l[0][f][0],y0:i,y:l[0][f][1]*h});for(var g=1;g<d;++g)i+=l[g-1][f][1]*h,t.setItemLayout(o[g].indices[f],{layerIndex:g,x:l[g][f][0],y0:i,y:l[g][f][1]*h})}}function A$(t){for(var e=t.length,n=t[0].length,i=[],r=[],o=0,a=0;a<n;++a){for(var s=0,l=0;l<e;++l)s+=t[l][a][1];s>o&&(o=s),i.push(s)}for(var u=0;u<n;++u)r[u]=(o-i[u])/2;o=0;for(var c=0;c<n;++c){var h=i[c]+r[c];h>o&&(o=h)}return{y0:r,max:o}}function D$(t){t.registerChartView(w$),t.registerSeriesModel(I$),t.registerLayout(C$),t.registerProcessor(ak("themeRiver"))}var k$=2,L$=4,P$=function(t){function e(e,n,i,r){var o=t.call(this)||this;o.z2=k$,o.textConfig={inside:!0},vu(o).seriesIndex=n.seriesIndex;var a=new gu({z2:L$,silent:e.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,e,n,i,r),o}return v(e,t),e.prototype.updateData=function(t,e,n,i,r){this.node=e,e.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var o=this;vu(o).dataIndex=e.dataIndex;var a=e.getModel(),s=a.getModel("emphasis"),l=e.getLayout(),u=$({},l);u.label=null;var c=e.getVisual("style");c.lineJoin="bevel";var h=e.getVisual("decal");h&&(c.decal=Zb(h,r));var d=dk(a.getModel("itemStyle"),u);$(u,d),Z(Su,(function(t){var e=o.ensureState(t),n=a.getModel([t,"itemStyle"]);e.style=n.getItemStyle();var i=dk(n,u);i&&(e.shape=i)})),t?(o.setShape(u),o.shape.r=l.r0,Md(o,{shape:{r:l.r}},n,e.dataIndex)):Md(o,{shape:u},n),o.useStyle(c),this._updateLabel(n);var p=a.getShallow("cursor");p&&o.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var f=s.get("focus"),g="ancestor"===f?e.getAncestorsIndices():"descendant"===f?e.getDescendantIndices():f;vc(this,g,s.get("blurScope"))},e.prototype._updateLabel=function(t){var e=this,n=this.node.getModel(),i=n.getModel("label"),r=this.node.getLayout(),o=r.endAngle-r.startAngle,a=(r.startAngle+r.endAngle)/2,s=Math.cos(a),l=Math.sin(a),u=this,c=u.getTextContent(),h=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(null!=d&&Math.abs(o)<d);function f(t,e){var n=t.get(e);return null==n?i.get(e):n}c.ignore=!p,Z(Mu,(function(i){var o="normal"===i?n.getModel("label"):n.getModel([i,"label"]),d="normal"===i,p=d?c:c.ensureState(i),g=t.getFormattedLabel(h,i);d&&(g=g||e.node.name),p.style=Zd(o,{},null,"normal"!==i,!0),g&&(p.style.text=g);var v=o.get("show");null==v||d||(p.ignore=!v);var m,y=f(o,"position"),x=d?u:u.states[i],b=x.style.fill;x.textConfig={outsideFill:"inherit"===o.get("color")?b:null,inside:"outside"!==y};var _=f(o,"distance")||0,w=f(o,"align");"outside"===y?(m=r.r+_,w=a>Math.PI/2?"right":"left"):w&&"center"!==w?"left"===w?(m=r.r0+_,a>Math.PI/2&&(w="right")):"right"===w&&(m=r.r-_,a>Math.PI/2&&(w="left")):(m=(r.r+r.r0)/2,w="center"),p.style.align=w,p.style.verticalAlign=f(o,"verticalAlign")||"middle",p.x=m*s+r.cx,p.y=m*l+r.cy;var S=f(o,"rotate"),M=0;"radial"===S?(M=-a,M<-Math.PI/2&&(M+=Math.PI)):"tangential"===S?(M=Math.PI/2-a,M>Math.PI/2?M-=Math.PI:M<-Math.PI/2&&(M+=Math.PI)):"number"===typeof S&&(M=S*Math.PI/180),p.rotation=M})),c.dirtyStyle()},e}(yh),O$=P$,E$="sunburstRootToNode",R$="sunburstHighlight",N$="sunburstUnhighlight";function z$(t){t.registerAction({type:E$,update:"updateView"},(function(t,e){function n(e,n){var i=KO(t,[E$],e);if(i){var r=e.getViewRoot();r&&(t.direction=QO(r,i.node)?"rollUp":"drillDown"),e.resetViewRoot(i.node)}}e.eachComponent({mainType:"series",subType:"sunburst",query:t},n)})),t.registerAction({type:R$,update:"none"},(function(t,e,n){function i(e){var n=KO(t,[R$],e);n&&(t.dataIndex=n.node.dataIndex)}t=$({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},i),n.dispatchAction($(t,{type:"highlight"}))})),t.registerAction({type:N$,update:"updateView"},(function(t,e,n){t=$({},t),n.dispatchAction($(t,{type:"downplay"}))}))}var B$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.render=function(t,e,n,i){var r=this;this.seriesModel=t,this.api=n,this.ecModel=e;var o=t.getData(),a=o.tree.root,s=t.getViewRoot(),l=this.group,u=t.get("renderLabelForZeroData"),c=[];s.eachNode((function(t){c.push(t)}));var h=this._oldChildren||[];function d(t,e){function n(t){return t.getId()}function i(n,i){var r=null==n?null:t[n],o=null==i?null:e[i];p(r,o)}0===t.length&&0===e.length||new aM(e,t,n,n).add(i).update(i).remove(it(i,null)).execute()}function p(i,r){if(u||!i||i.getValue()||(i=null),i!==a&&r!==a)if(r&&r.piece)i?(r.piece.updateData(!1,i,t,e,n),o.setItemGraphicEl(i.dataIndex,r.piece)):f(r);else if(i){var s=new O$(i,t,e,n);l.add(s),o.setItemGraphicEl(i.dataIndex,s)}}function f(t){t&&t.piece&&(l.remove(t.piece),t.piece=null)}function g(i,o){o.depth>0?(r.virtualPiece?r.virtualPiece.updateData(!1,i,t,e,n):(r.virtualPiece=new O$(i,t,e,n),l.add(r.virtualPiece)),o.piece.off("click"),r.virtualPiece.on("click",(function(t){r._rootToNode(o.parentNode)}))):r.virtualPiece&&(l.remove(r.virtualPiece),r.virtualPiece=null)}d(c,h),g(a,s),this._initEvents(),this._oldChildren=c},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",(function(e){var n=!1,i=t.seriesModel.getViewRoot();i.eachNode((function(i){if(!n&&i.piece&&i.piece===e.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)t._rootToNode(i);else if("link"===r){var o=i.getModel(),a=o.get("link");if(a){var s=o.get("target",!0)||"_blank";kf(a,s)}}n=!0}}))}))},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:E$,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,e){var n=e.getData(),i=n.getItemLayout(0);if(i){var r=t[0]-i.cx,o=t[1]-i.cy,a=Math.sqrt(r*r+o*o);return a<=i.r&&a>=i.r0}},e.type="sunburst",e}(vy),V$=B$,F$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return v(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};H$(n);var i=q(t.levels||[],(function(t){return new yp(t,this,e)}),this),r=qO.createTree(n,this,o);function o(t){t.wrapMethod("getItemModel",(function(t,e){var n=r.getNodeByDataIndex(e),o=i[n.depth];return o&&(t.parentModel=o),t}))}return r.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=tE(i,this),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){pE(this)},e.type="series.sunburst",e.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"},e}(ry);function H$(t){var e=0;Z(t.children,(function(t){H$(t);var n=t.value;rt(n)&&(n=n[0]),e+=n}));var n=t.value;rt(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),rt(t.value)?t.value[0]=n:t.value=n}var $$=F$,W$=Math.PI/180;function G$(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.get("center"),i=t.get("radius");rt(i)||(i=[0,i]),rt(e)||(e=[e,e]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),s=ao(e[0],r),l=ao(e[1],o),u=ao(i[0],a/2),c=ao(i[1],a/2),h=-t.get("startAngle")*W$,d=t.get("minAngle")*W$,p=t.getData().tree.root,f=t.getViewRoot(),g=f.depth,v=t.get("sort");null!=v&&j$(f,v);var m=0;Z(f.children,(function(t){!isNaN(t.getValue())&&m++}));var y=f.getValue(),x=Math.PI/(y||m)*2,b=f.depth>0,_=f.height-(b?-1:1),w=(c-u)/(_||1),S=t.get("clockwise"),M=t.get("stillShowZeroSum"),I=S?1:-1,C=function(t,e){if(t){var n=e;if(t!==p){var i=t.getValue(),r=0===y&&M?x:i*x;r<d&&(r=d),n=e+I*r;var o=t.depth-g-(b?-1:1),c=u+w*o,h=u+w*(o+1),f=t.getModel();null!=f.get("r0")&&(c=ao(f.get("r0"),a/2)),null!=f.get("r")&&(h=ao(f.get("r"),a/2)),t.setLayout({angle:r,startAngle:e,endAngle:n,clockwise:S,cx:s,cy:l,r0:c,r:h})}if(t.children&&t.children.length){var v=0;Z(t.children,(function(t){v+=C(t,e+v)}))}return n-e}};if(b){var T=u,A=u+w,D=2*Math.PI;p.setLayout({angle:D,startAngle:h,endAngle:h+D,clockwise:S,cx:s,cy:l,r0:T,r:A})}C(f,h)}))}function j$(t,e){var n=t.children||[];t.children=Y$(n,e),n.length&&Z(t.children,(function(t){j$(t,e)}))}function Y$(t,e){if("function"===typeof e){var n=q(t,(function(t,e){var n=t.getValue();return{params:{depth:t.depth,height:t.height,dataIndex:t.dataIndex,getValue:function(){return n}},index:e}}));return n.sort((function(t,n){return e(t.params,n.params)})),q(n,(function(e){return t[e.index]}))}var i="asc"===e;return t.sort((function(t,e){var n=(t.getValue()-e.getValue())*(i?1:-1);return 0===n?(t.dataIndex-e.dataIndex)*(i?-1:1):n}))}function X$(t){var e={};function n(t,n,i){var r=t;while(r&&r.depth>1)r=r.parentNode;var o=n.getColorFromPalette(r.name||r.dataIndex+"",e);return t.depth>1&&"string"===typeof o&&(o=Nn(o,(t.depth-1)/(i-1)*.5)),o}t.eachSeriesByType("sunburst",(function(t){var e=t.getData(),i=e.tree;i.eachNode((function(r){var o=r.getModel(),a=o.getModel("itemStyle").getItemStyle();a.fill||(a.fill=n(r,t,i.root.height));var s=e.ensureUniqueItemVisual(r.dataIndex,"style");$(s,a)}))}))}function U$(t){t.registerChartView(V$),t.registerSeriesModel($$),t.registerLayout(it(G$,"sunburst")),t.registerProcessor(it(ak,"sunburst")),t.registerVisual(X$),z$(t)}function Z$(t,e){return e=e||[0,0],q(["x","y"],(function(n,i){var r=this.getAxis(n),o=e[i],a=t[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))}),this)}function q$(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:nt(Z$,t)}}}function K$(t,e){return e=e||[0,0],q([0,1],(function(n){var i=e[n],r=t[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function J$(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:nt(K$,t)}}}function Q$(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function tW(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:nt(Q$,t)}}}function eW(t,e){return e=e||[0,0],q(["Radius","Angle"],(function(n,i){var r="get"+n+"Axis",o=this[r](),a=e[i],s=t[i]/2,l="category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(a-s)-o.dataToCoord(a+s));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}function nW(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),i=e.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=e.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=t.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a},size:nt(eW,t)}}}function iW(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}function rW(t,e,n,i){return t&&(t.legacy||!1!==t.legacy&&!n&&!i&&"tspan"!==e&&("text"===e||Lt(t,"text")))}function oW(t,e,n){var i,r,o,a=t;if("text"===e)o=a;else{o={},Lt(a,"text")&&(o.text=a.text),Lt(a,"rich")&&(o.rich=a.rich),Lt(a,"textFill")&&(o.fill=a.textFill),Lt(a,"textStroke")&&(o.stroke=a.textStroke),r={type:"text",style:o,silent:!0},i={};var s=Lt(a,"textPosition");n?i.position=s?a.textPosition:"inside":s&&(i.position=a.textPosition),Lt(a,"textPosition")&&(i.position=a.textPosition),Lt(a,"textOffset")&&(i.offset=a.textOffset),Lt(a,"textRotation")&&(i.rotation=a.textRotation),Lt(a,"textDistance")&&(i.distance=a.textDistance)}return aW(o,t),Z(o.rich,(function(t){aW(t,t)})),{textConfig:i,textContent:r}}function aW(t,e){e&&(e.font=e.textFont||e.font,Lt(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),Lt(e,"textAlign")&&(t.align=e.textAlign),Lt(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),Lt(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),Lt(e,"textWidth")&&(t.width=e.textWidth),Lt(e,"textHeight")&&(t.height=e.textHeight),Lt(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),Lt(e,"textPadding")&&(t.padding=e.textPadding),Lt(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),Lt(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),Lt(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),Lt(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),Lt(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),Lt(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),Lt(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function sW(t,e,n){var i=t;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var r=i.textPosition.indexOf("inside")>=0,o=t.fill||"#000";lW(i,e);var a=null==i.textFill;return r?a&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=o),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(a&&(i.textFill=t.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=e.text,i.rich=e.rich,Z(e.rich,(function(t){lW(t,t)})),i}function lW(t,e){e&&(Lt(e,"fill")&&(t.textFill=e.fill),Lt(e,"stroke")&&(t.textStroke=e.fill),Lt(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),Lt(e,"font")&&(t.font=e.font),Lt(e,"fontStyle")&&(t.fontStyle=e.fontStyle),Lt(e,"fontWeight")&&(t.fontWeight=e.fontWeight),Lt(e,"fontSize")&&(t.fontSize=e.fontSize),Lt(e,"fontFamily")&&(t.fontFamily=e.fontFamily),Lt(e,"align")&&(t.textAlign=e.align),Lt(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),Lt(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),Lt(e,"width")&&(t.textWidth=e.width),Lt(e,"height")&&(t.textHeight=e.height),Lt(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),Lt(e,"padding")&&(t.textPadding=e.padding),Lt(e,"borderColor")&&(t.textBorderColor=e.borderColor),Lt(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),Lt(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),Lt(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),Lt(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),Lt(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),Lt(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),Lt(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),Lt(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),Lt(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),Lt(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var uW=dl.CMD,cW=2*Math.PI,hW=["x","y"],dW=["width","height"],pW=[];function fW(t,e){return Math.abs(t-e)<1e-5}function gW(t){var e,n,i,r,o,a=t.data,s=t.len(),l=[],u=0,c=0,h=0,d=0;function p(t,n){e&&e.length>2&&l.push(e),e=[t,n]}function f(t,n,i,r){fW(t,i)&&fW(n,r)||e.push(t,n,i,r,i,r)}function g(t,n,i,r,o,a){var s=Math.abs(n-t),l=4*Math.tan(s/4)/3,u=n<t?-1:1,c=Math.cos(t),h=Math.sin(t),d=Math.cos(n),p=Math.sin(n),f=c*o+i,g=h*a+r,v=d*o+i,m=p*a+r,y=o*l*u,x=a*l*u;e.push(f-y*h,g+x*c,v+y*p,m-x*d,v,m)}for(var v=0;v<s;){var m=a[v++],y=1===v;switch(y&&(u=a[v],c=a[v+1],h=u,d=c,m!==uW.L&&m!==uW.C&&m!==uW.Q||(e=[h,d])),m){case uW.M:u=h=a[v++],c=d=a[v++],p(h,d);break;case uW.L:n=a[v++],i=a[v++],f(u,c,n,i),u=n,c=i;break;case uW.C:e.push(a[v++],a[v++],a[v++],a[v++],u=a[v++],c=a[v++]);break;case uW.Q:n=a[v++],i=a[v++],r=a[v++],o=a[v++],e.push(u+2/3*(n-u),c+2/3*(i-c),r+2/3*(n-r),o+2/3*(i-o),r,o),u=r,c=o;break;case uW.A:var x=a[v++],b=a[v++],_=a[v++],w=a[v++],S=a[v++],M=a[v++]+S;v+=1;var I=!a[v++];n=Math.cos(S)*_+x,i=Math.sin(S)*w+b,y?(h=n,d=i,p(h,d)):f(u,c,n,i),u=Math.cos(M)*_+x,c=Math.sin(M)*w+b;for(var C=(I?-1:1)*Math.PI/2,T=S;I?T>M:T<M;T+=C){var A=I?Math.max(T+C,M):Math.min(T+C,M);g(T,A,x,b,_,w)}break;case uW.R:h=u=a[v++],d=c=a[v++],n=h+a[v++],i=d+a[v++],p(n,d),f(n,d,n,i),f(n,i,h,i),f(h,i,h,d),f(h,d,n,d);break;case uW.Z:e&&f(u,c,h,d),u=h,c=d;break}}return e&&e.length>2&&l.push(e),l}function vW(t,e){var n=t.length,i=e.length;if(n===i)return[t,e];for(var r=n<i?t:e,o=Math.min(n,i),a=Math.abs(i-n)/6,s=(o-2)/6,l=Math.ceil(a/s)+1,u=[r[0],r[1]],c=a,h=[],d=[],p=2;p<o;){var f=r[p-2],g=r[p-1],v=r[p++],m=r[p++],y=r[p++],x=r[p++],b=r[p++],_=r[p++];if(c<=0)u.push(v,m,y,x,b,_);else{for(var w=Math.min(c,l-1)+1,S=1;S<=w;S++){var M=S/w;_s(f,v,y,b,M,h),_s(g,m,x,_,M,d),f=h[3],g=d[3],u.push(h[1],d[1],h[2],d[2],f,g),v=h[5],m=d[5],y=h[6],x=d[6]}c-=w-1}}return r===t?[u,e]:[t,u]}function mW(t,e){for(var n=t.length,i=t[n-2],r=t[n-1],o=[],a=0;a<e.length;)o[a++]=i,o[a++]=r;return o}function yW(t,e){for(var n,i,r,o=[],a=[],s=0;s<Math.max(t.length,e.length);s++){var l=t[s],u=e[s],c=void 0,h=void 0;l?u?(n=vW(l,u),c=n[0],h=n[1],i=c,r=h):(h=mW(r||l,l),c=l):(c=mW(i||u,u),h=u),o.push(c),a.push(h)}return[o,a]}function xW(t){for(var e=0,n=0,i=0,r=t.length,o=0,a=r-2;o<r;a=o,o+=2){var s=t[a],l=t[a+1],u=t[o],c=t[o+1],h=s*c-u*l;e+=h,n+=(s+u)*h,i+=(l+c)*h}return 0===e?[t[0]||0,t[1]||0]:[n/e/3,i/e/3,e]}function bW(t,e,n,i){for(var r=(t.length-2)/6,o=1/0,a=0,s=t.length,l=s-2,u=0;u<r;u++){for(var c=6*u,h=0,d=0;d<s;d+=2){var p=0===d?c:(c+d-2)%l+2,f=t[p]-n[0],g=t[p+1]-n[1],v=e[d]-i[0],m=e[d+1]-i[1],y=v-f,x=m-g;h+=y*y+x*x}h<o&&(o=h,a=u)}return a}function _W(t){for(var e=[],n=t.length,i=0;i<n;i+=2)e[i]=t[n-i-2],e[i+1]=t[n-i-1];return e}function wW(t,e,n,i){for(var r,o=[],a=0;a<t.length;a++){var s=t[a],l=e[a],u=xW(s),c=xW(l);null==r&&(r=u[2]<0!==c[2]<0);var h=[],d=[],p=0,f=1/0,g=[],v=s.length;r&&(s=_W(s));for(var m=6*bW(s,l,u,c),y=v-2,x=0;x<y;x+=2){var b=(m+x)%y+2;h[x+2]=s[b]-u[0],h[x+3]=s[b+1]-u[1]}if(h[0]=s[m]-u[0],h[1]=s[m+1]-u[1],n>0)for(var _=i/n,w=-i/2;w<=i/2;w+=_){var S=Math.sin(w),M=Math.cos(w),I=0;for(x=0;x<s.length;x+=2){var C=h[x],T=h[x+1],A=l[x]-c[0],D=l[x+1]-c[1],k=A*M-D*S,L=A*S+D*M;g[x]=k,g[x+1]=L;var P=k-C,O=L-T;I+=P*P+O*O}if(I<f){f=I,p=w;for(var E=0;E<g.length;E++)d[E]=g[E]}}else for(var R=0;R<v;R+=2)d[R]=l[R]-c[0],d[R+1]=l[R+1]-c[1];o.push({from:h,to:d,fromCp:u,toCp:c,rotation:-p})}return o}function SW(t,e,n){var i,r;if(!t||!e)return e;!t.path&&t.createPathProxy(),i=t.path,i.beginPath(),t.buildPath(i,t.shape),!e.path&&e.createPathProxy(),r=e.path,r===i&&(r=new dl(!1)),r.beginPath(),AW(e)?e.__oldBuildPath(r,e.shape):e.buildPath(r,e.shape);var o=yW(gW(i),gW(r)),a=o[0],s=o[1],l=wW(a,s,10,Math.PI);IW(e,l,0);var u=n&&n.done,c=n&&n.aborted,h=n&&n.during;return e.animateTo({__morphT:1},W({during:function(t){e.dirtyShape(),h&&h(t)},done:function(){TW(e),e.createPathProxy(),e.dirtyShape(),u&&u()},aborted:function(){c&&c()}},n)),e}function MW(t){for(var e=this.__morphingData,n=this.__morphT,i=1-n,r=[],o=0;o<e.length;o++){var a=e[o],s=a.from,l=a.to,u=a.rotation*n,c=a.fromCp,h=a.toCp,d=Math.sin(u),p=Math.cos(u);te(r,c,h,n);for(var f=0;f<s.length;f+=2){var g=s[f],v=s[f+1],m=l[f],y=l[f+1],x=g*i+m*n,b=v*i+y*n;pW[f]=x*p-b*d+r[0],pW[f+1]=x*d+b*p+r[1]}for(f=0;f<s.length;)0===f&&t.moveTo(pW[f++],pW[f++]),t.bezierCurveTo(pW[f++],pW[f++],pW[f++],pW[f++],pW[f++],pW[f++])}}function IW(t,e,n){if(AW(t))CW(t,e,n);else{var i=t;i.__oldBuildPath=i.buildPath,i.buildPath=MW,CW(i,e,n)}}function CW(t,e,n){t.__morphingData=e,t.__morphT=n}function TW(t){AW(t)&&(t.buildPath=t.__oldBuildPath,t.__oldBuildPath=t.__morphingData=null)}function AW(t){return null!=t.__oldBuildPath}function DW(t){return!!t.__combiningSubList}function kW(t){return AW(t)||DW(t)}function LW(t,e,n,i){for(var r=[],o=0,a=0;a<t.length;a++){var s=t[a];if(DW(s)){for(var l=s.__combiningSubList,u=0;u<l.length;u++)r.push(l[u]);o+=l.length}else r.push(s),o++}if(o){var c=n?n.dividingMethod:null,h=FW(e,o,c);wt(h.length===o);var d=n&&n.done,p=n&&n.aborted,f=n&&n.during,g=0,v=!1,m=W({during:function(t){f&&f(t)},done:function(){g++,g===h.length&&(OW(e),d&&d())},aborted:function(){v||(v=!0,p&&p())}},n);for(a=0;a<o;a++){var y=r[a],x=h[a];i&&i(e,x,!0),SW(y,x,m)}return PW(e,h),{fromIndividuals:r,toIndividuals:h,count:o}}}function PW(t,e){if(DW(t))EW(t,e);else{var n=t;EW(n,e),n.__oldAddSelfToZr=t.addSelfToZr,n.__oldRemoveSelfFromZr=t.removeSelfFromZr,n.addSelfToZr=RW,n.removeSelfFromZr=zW,n.__oldBuildPath=n.buildPath,n.buildPath=Pt,n.childrenRef=BW}}function OW(t){if(DW(t)){var e=t;EW(e,null),e.addSelfToZr=e.__oldAddSelfToZr,e.removeSelfFromZr=e.__oldRemoveSelfFromZr,e.buildPath=e.__oldBuildPath,e.childrenRef=e.__combiningSubList=e.__oldAddSelfToZr=e.__oldRemoveSelfFromZr=e.__oldBuildPath=null}}function EW(t,e){if(t.__combiningSubList!==e){if(NW(t,"removeSelfFromZr"),t.__combiningSubList=e,e)for(var n=0;n<e.length;n++)e[n].parent=t;NW(t,"addSelfToZr")}}function RW(t){this.__oldAddSelfToZr(t),NW(this,"addSelfToZr")}function NW(t,e){var n=t.__combiningSubList,i=t.__zr;if(n&&i)for(var r=0;r<n.length;r++){var o=n[r];o[e](i)}}function zW(t){this.__oldRemoveSelfFromZr(t);for(var e=this.__combiningSubList,n=0;n<e.length;n++){var i=e[n];i.removeSelfFromZr(t)}}function BW(){return this.__combiningSubList}function VW(t,e,n,i){var r,o=e.length,a=n?n.dividingMethod:null,s=!1;if(DW(t)){var l=t.__combiningSubList;l.length===o?r=l:(r=FW(t,o,a),s=!0)}else r=FW(t,o,a),s=!0;wt(r.length===o);for(var u=0;u<o;u++)s&&i&&i(t,r[u],!1),SW(r[u],e[u],n);return{fromIndividuals:r,toIndividuals:e,count:o}}function FW(t,e,n){return"duplicate"===n?$W(t,e):HW(t,e)}function HW(t,e){var n=[];if(e<=0)return n;if(1===e)return $W(t,e);if(t instanceof eu)for(var i=t.shape,r=i.height>i.width?1:0,o=dW[r],a=hW[r],s=i[o]/e,l=i[a],u=0;u<e;u++,l+=s){var c={x:i.x,y:i.y,width:i.width,height:i.height};c[a]=l,c[o]=u<e-1?s:i[a]+i[o]-l;var h=new eu({shape:c});n.push(h)}else{if(!(t instanceof yh))return $W(t,e);i=t.shape;var d=i.clockwise,p=i.startAngle,f=i.endAngle,g=WW(p,i.endAngle,d),v=(g-p)/e,m=p;for(u=0;u<e;u++,m+=v){h=new yh({shape:{cx:i.cx,cy:i.cy,r:i.r,r0:i.r0,clockwise:d,startAngle:m,endAngle:u===e-1?f:m+v}});n.push(h)}}return n}function $W(t,e){var n=[];if(e<=0)return n;for(var i=t.constructor,r=0;r<e;r++){var o=new i({shape:V(t.shape)});n.push(o)}return n}function WW(t,e,n){return e+cW*Math[n?"ceil":"floor"]((t-e)/cW)}var GW=ta(),jW={x:1,y:1,scaleX:1,scaleY:1,originX:1,originY:1,rotation:1},YW=(tt(jW).join(", "),{color:"fill",borderColor:"stroke"}),XW={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},UW="emphasis",ZW="normal",qW="blur",KW="select",JW=[ZW,UW,qW,KW],QW={normal:["itemStyle"],emphasis:[UW,"itemStyle"],blur:[qW,"itemStyle"],select:[KW,"itemStyle"]},tG={normal:["label"],emphasis:[UW,"label"],blur:[qW,"label"],select:[KW,"label"]},eG="e\0\0",nG={normal:{},emphasis:{},blur:{},select:{}},iG={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},rG=new or,oG={cartesian2d:q$,geo:J$,singleAxis:tW,polar:nW,calendar:iW},aG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return nI(this.getSource(),this)},e.prototype.getDataParams=function(e,n,i){var r=t.prototype.getDataParams.call(this,e,n);return i&&(r.info=GW(i).info),r},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,clip:!1},e}(ry),sG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.render=function(t,e,n,i){var r=this._data,o=t.getData(),a=this.group,s=kG(t,o,e,n);r||a.removeAll();var l=t.__transientTransitionOpt;if(!l||null!=l.from&&null!=l.to){var u=new qG(t,l),c=l?"multiple":"oneToOne";new aM(r?r.getIndices():[],o.getIndices(),lG(r,c,l&&l.from),lG(o,c,l&&l.to),null,c).add((function(e){PG(n,null,e,s(e,i),t,a,o,null)})).remove((function(e){jG(r.getItemGraphicEl(e),t,a)})).update((function(e,l){u.reset("oneToOne");var c=r.getItemGraphicEl(l);u.findAndAddFrom(c),u.hasFrom()&&(ZG(c,a),c=null),PG(n,c,e,s(e,i),t,a,o,u),u.applyMorphing()})).updateManyToOne((function(e,l){u.reset("manyToOne");for(var c=0;c<l.length;c++){var h=r.getItemGraphicEl(l[c]);u.findAndAddFrom(h),ZG(h,a)}PG(n,null,e,s(e,i),t,a,o,u),u.applyMorphing()})).updateOneToMany((function(e,l){u.reset("oneToMany");var c=e.length,h=r.getItemGraphicEl(l);u.findAndAddFrom(h),ZG(h,a);for(var d=0;d<c;d++)PG(n,null,e[d],s(e[d],i),t,a,o,u);u.applyMorphing()})).execute()}else r&&r.each((function(e){jG(r.getItemGraphicEl(e),t,a)})),o.each((function(e){PG(n,null,e,s(e,i),t,a,o,null)}));var h=t.get("clip",!0)?eD(t.coordinateSystem,!1,t):null;h?a.setClipPath(h):a.removeClipPath(),this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,e,n,i,r){var o=e.getData(),a=kG(e,o,n,i);function s(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var l=t.start;l<t.end;l++){var u=PG(null,null,l,a(l,r),e,this.group,o,null);u&&u.traverse(s)}},e.prototype.filterForExposedEvent=function(t,e,n,i){var r=e.element;if(null==r||n.name===r)return!0;while((n=n.__hostTarget||n.parent)&&n!==this.group)if(n.name===r)return!0;return!1},e.type="custom",e}(vy);function lG(t,e,n){if(t){if("oneToOne"===e)return function(e,n){return t.getId(n)};var i=t.getDimension(n),r=t.getDimensionInfo(i);if(!r){var o="";0,Dg(o)}var a=r.ordinalMeta;return function(e,n){var r=t.get(i,n);return a&&(r=a.categories[r]),null==r||vt(r)?e+"":"_ec_"+r}}}function uG(t){var e,n=t.type;if("path"===n){var i=t.shape,r=null!=i.width&&null!=i.height?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,o=YG(i);e=gd(o,null,r,i.layout||"center"),GW(e).customPathData=o}else if("image"===n)e=new Yl({}),GW(e).customImagePath=t.style.image;else if("text"===n)e=new gu({});else if("group"===n)e=new Wr;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var a=fd(n);if(!a){var s="";0,Dg(s)}e=new a}return GW(e).customGraphicType=n,e.name=t.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function cG(t,e,n,i,r,o,a,s,l,u){var c={},h={},d=e.isGroup?null:e;!n&&pG("shape",e,null,r,c,l),fG("shape",r,h),!n&&pG("extra",e,null,r,c,l),fG("extra",r,h),!n&&gG(e,null,r,c,l),vG(r,h);var p=a&&a.normal.cfg;if(p&&e.setTextConfig(p),"text"===e.type&&o){var f=o;Lt(f,"textFill")&&(f.fill=f.textFill),Lt(f,"textStroke")&&(f.stroke=f.textStroke)}if(o){var g=void 0,v=UG(e)?o.decal:null;t&&v&&(v.dirty=!0,g=Zb(v,t)),o.__decalPattern=g}return!n&&mG(e,null,r,o,c,l),d&&Lt(r,"invisible")&&(d.invisible=r.invisible),n||(hG(e,h,o),dG(e,i,r,s,c,l)),Lt(r,"silent")&&(e.silent=r.silent),Lt(r,"ignore")&&(e.ignore=r.ignore),u||Lt(r,"info")&&(GW(e).info=r.info),o?e.dirty():e.markRedraw(),n?h:null}function hG(t,e,n){var i=t.isGroup?null:t;if(i&&n){var r=n.__decalPattern,o=void 0;r&&(o=n.decal,n.decal=r),i.useStyle(n),r&&(n.decal=o);for(var a=i.animators,s=0;s<a.length;s++){var l=a[s];"style"===l.targetName&&l.changeTarget(i.style)}}e&&t.attr(e)}function dG(t,e,n,i,r,o){if(r){var a=n.during;GW(t).userDuring=a;var s=a?nt(SG,{el:t,userDuring:a}):null,l={dataIndex:e,isFrom:!0,during:s};o?Id(t,r,i,l):Md(t,r,i,l)}}function pG(t,e,n,i,r,o){var a=i[t];if(a){var s,l=e[t],u=a.enterFrom;if(o&&u){!s&&(s=r[t]={});for(var c=tt(u),h=0;h<c.length;h++){var d=c[h];s[d]=u[d]}}if(!o&&l&&(null==n||"shape"!==t))if(a.transition){!s&&(s=r[t]={});var p=Po(a.transition);for(h=0;h<p.length;h++){d=p[h];var f=l[d];0,s[d]=f}}else if(j(i.transition,t)>=0){!s&&(s=r[t]={});var g=tt(l);for(h=0;h<g.length;h++){d=g[h],f=l[d];xG(a[d],f)&&(s[d]=f)}}var v=a.leaveTo;if(v){var m=bG(e),y=m[t]||(m[t]={}),x=tt(v);for(h=0;h<x.length;h++){d=x[h];y[d]=v[d]}}}}function fG(t,e,n){var i=e[t];if(i)for(var r=n[t]={},o=tt(i),a=0;a<o.length;a++){var s=o[a];r[s]=oi(i[s])}}function gG(t,e,n,i,r){var o=n.enterFrom;if(r&&o)for(var a=tt(o),s=0;s<a.length;s++){var l=a[s];0,i[l]=o[l]}if(!r)if(e){var u=yG(e,t);DG(i,"x",u),DG(i,"y",u),DG(i,"scaleX",u),DG(i,"scaleY",u),DG(i,"originX",u),DG(i,"originY",u),DG(i,"rotation",u)}else if(n.transition){var c=Po(n.transition);for(s=0;s<c.length;s++){l=c[s];if("style"!==l&&"shape"!==l&&"extra"!==l){var h=t[l];0,i[l]=h}}}else DG(i,"x",t),DG(i,"y",t);var d=n.leaveTo;if(d){var p=bG(t),f=tt(d);for(s=0;s<f.length;s++){l=f[s];0,p[l]=d[l]}}}function vG(t,e){TG(t,e,"position"),TG(t,e,"scale"),TG(t,e,"origin"),AG(t,e,"x"),AG(t,e,"y"),AG(t,e,"scaleX"),AG(t,e,"scaleY"),AG(t,e,"originX"),AG(t,e,"originY"),AG(t,e,"rotation")}function mG(t,e,n,i,r,o){if(i){var a,s=e||t,l=s.style,u=i.enterFrom;if(o&&u){var c=tt(u);!a&&(a=r.style={});for(var h=0;h<c.length;h++){var d=c[h];a[d]=u[d]}}if(!o&&l)if(i.transition){var p=Po(i.transition);!a&&(a=r.style={});for(h=0;h<p.length;h++){d=p[h];var f=l[d];a[d]=f}}else if(t.getAnimationStyleProps&&j(n.transition,"style")>=0){var g=t.getAnimationStyleProps(),v=g?g.style:null;if(v){!a&&(a=r.style={});var m=tt(i);for(h=0;h<m.length;h++){d=m[h];if(v[d]){f=l[d];a[d]=f}}}}var y=i.leaveTo;if(y){var x=tt(y),b=bG(t),_=b.style||(b.style={});for(h=0;h<x.length;h++){d=x[h];_[d]=y[d]}}}}function yG(t,e){if(!t||t===e||t.parent===e.parent)return t;var n=rG.transform||(rG.transform=Hi([])),i=t.getComputedTransform();i?$i(n,i):Hi(n);var r=e.parent;return r&&r.getComputedTransform(),rG.originX=t.originX,rG.originY=t.originY,rG.parent=r,rG.decomposeTransform(),rG}function xG(t,e){return U(t)?t!==e:null!=t&&isFinite(t)}function bG(t){var e=GW(t);return e.leaveToProps||(e.leaveToProps={})}var _G={},wG={setTransform:function(t,e){return _G.el[t]=e,this},getTransform:function(t){return _G.el[t]},setShape:function(t,e){var n=_G.el.shape||(_G.el.shape={});return n[t]=e,_G.isShapeDirty=!0,this},getShape:function(t){var e=_G.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=_G.el.style;return n&&(n[t]=e,_G.isStyleDirty=!0),this},getStyle:function(t){var e=_G.el.style;if(e)return e[t]},setExtra:function(t,e){var n=_G.el.extra||(_G.el.extra={});return n[t]=e,this},getExtra:function(t){var e=_G.el.extra;if(e)return e[t]}};function SG(){var t=this,e=t.el;if(e){var n=GW(e).userDuring,i=t.userDuring;n===i?(_G.el=e,_G.isShapeDirty=!1,_G.isStyleDirty=!1,i(wG),_G.isShapeDirty&&e.dirtyShape&&e.dirtyShape(),_G.isStyleDirty&&e.dirtyStyle&&e.dirtyStyle()):t.el=t.userDuring=null}}function MG(t,e,n,i,r,o,a){var s=e.isGroup?null:e,l=r&&r[t].cfg;if(s){var u=s.ensureState(t);if(!1===i){var c=s.getState(t);c&&(c.style=null)}else u.style=i||null;l&&(u.textConfig=l),qu(s)}}function IG(t,e,n,i){if(!t.isGroup){var r=t,o=n.currentZ,a=n.currentZLevel;r.z=o,r.zlevel=a;var s=e.z2;null!=s&&(r.z2=s||0);for(var l=0;l<JW.length;l++)CG(r,e,JW[l])}}function CG(t,e,n){var i,r=n===ZW,o=r?e:BG(e,n),a=o?o.z2:null;null!=a&&(i=r?t:t.ensureState(n),i.z2=a||0)}function TG(t,e,n,i){var r=t[n],o=iG[n];r&&(i?(e[o[0]]=i[o[0]],e[o[1]]=i[o[1]]):(e[o[0]]=r[0],e[o[1]]=r[1]))}function AG(t,e,n,i){null!=t[n]&&(e[n]=i?i[n]:t[n])}function DG(t,e,n){n&&(t[e]=n[e])}function kG(t,e,n,i){var r=t.get("renderItem"),o=t.coordinateSystem,a={};o&&(a=o.prepareCustoms?o.prepareCustoms(o):oG[o.type](o));for(var s,l,u=W({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:b,style:w,ordinalRawValue:_,styleEmphasis:S,visual:C,barLayout:T,currentSeriesIndices:A,font:D},a.api||{}),c={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:a.coordSys,dataInsideLength:e.count(),encode:LG(t.getData())},h={},d={},p={},f={},g=0;g<JW.length;g++){var v=JW[g];p[v]=t.getModel(QW[v]),f[v]=t.getModel(tG[v])}function m(t){return t===s?l||(l=e.getItemModel(t)):e.getItemModel(t)}function y(t,n){return e.hasItemOption?t===s?h[n]||(h[n]=m(t).getModel(QW[n])):m(t).getModel(QW[n]):p[n]}function x(t,n){return e.hasItemOption?t===s?d[n]||(d[n]=m(t).getModel(tG[n])):m(t).getModel(tG[n]):f[n]}return function(t,n){return s=t,l=null,h={},d={},r&&r(W({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:n?n.type:null},c),u)};function b(t,n){return null==n&&(n=s),e.get(e.getDimension(t||0),n)}function _(t,n){null==n&&(n=s);var i=e.getDimensionInfo(t||0);if(i){var r=e.get(i.name,n),o=i&&i.ordinalMeta;return o?o.categories[r]:r}}function w(n,i){null==i&&(i=s);var r=e.getItemVisual(i,"style"),o=r&&r.fill,a=r&&r.opacity,l=y(i,ZW).getItemStyle();null!=o&&(l.fill=o),null!=a&&(l.opacity=a);var u={inheritColor:at(o)?o:"#000"},c=x(i,ZW),h=Zd(c,null,u,!1,!0);h.text=c.getShallow("show")?yt(t.getFormattedLabel(i,ZW),TA(e,i)):null;var d=qd(c,u,!1);return I(n,l),l=sW(l,h,d),n&&M(l,n),l.legacy=!0,l}function S(n,i){null==i&&(i=s);var r=y(i,UW).getItemStyle(),o=x(i,UW),a=Zd(o,null,null,!0,!0);a.text=o.getShallow("show")?xt(t.getFormattedLabel(i,UW),t.getFormattedLabel(i,ZW),TA(e,i)):null;var l=qd(o,null,!0);return I(n,r),r=sW(r,a,l),n&&M(r,n),r.legacy=!0,r}function M(t,e){for(var n in e)Lt(e,n)&&(t[n]=e[n])}function I(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}function C(t,n){if(null==n&&(n=s),Lt(YW,t)){var i=e.getItemVisual(n,"style");return i?i[YW[t]]:null}if(Lt(XW,t))return e.getItemVisual(n,t)}function T(t){if("cartesian2d"===o.type){var e=o.getBaseAxis();return CI(W({axis:e},t))}}function A(){return n.getCurrentSeriesIndices()}function D(t){return ip(t,n)}}function LG(t){var e={};return Z(t.dimensions,(function(n,i){var r=t.getDimensionInfo(n);if(!r.isExtraCoord){var o=r.coordDim,a=e[o]=e[o]||[];a[r.coordDimIndex]=i}})),e}function PG(t,e,n,i,r,o,a,s){if(i)return e=OG(t,e,n,i,r,o,!0,s),e&&a.setItemGraphicEl(n,e),e&&vc(e,i.focus,i.blurScope),e;ZG(e,o)}function OG(t,e,n,i,r,o,a,s){var l=-1;e&&EG(e,i)&&(l=o.childrenRef().indexOf(e),e=null);var u=!e;e?e.clearStates():e=uG(i);var c=GW(e).canMorph=i.morph&&UG(e),h=c&&s&&s.hasFrom(),d=u&&!h;nG.normal.cfg=nG.normal.conOpt=nG.emphasis.cfg=nG.emphasis.conOpt=nG.blur.cfg=nG.blur.conOpt=nG.select.cfg=nG.select.conOpt=null,nG.isLegacy=!1,NG(e,n,i,r,d,nG),RG(e,n,i,r,d);var p=cG(t,e,h,n,i,i.style,nG,r,d,!1);h&&s.addTo(e,i,n,p);for(var f=0;f<JW.length;f++){var g=JW[f];if(g!==ZW){var v=BG(i,g),m=VG(i,v,g);MG(g,e,v,m,nG,a,!1)}}return IG(e,i,r,nG),"group"===i.type&&FG(t,e,n,i,r,s),l>=0?o.replaceAt(e,l):o.add(e),e}function EG(t,e){var n=GW(t),i=e.type,r=e.shape,o=e.style;return null!=i&&i!==n.customGraphicType||"path"===i&&XG(r)&&YG(r)!==n.customPathData||"image"===i&&Lt(o,"image")&&o.image!==n.customImagePath}function RG(t,e,n,i,r){var o=n.clipPath;if(!1===o)t&&t.getClipPath()&&t.removeClipPath();else if(o){var a=t.getClipPath();a&&EG(a,o)&&(a=null),a||(a=uG(o),t.setClipPath(a)),cG(null,a,null,e,o,null,null,i,r,!1)}}function NG(t,e,n,i,r,o){if(!t.isGroup){zG(n,null,o),zG(n,UW,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(null!=a||null!=s||null!=u||null!=l){var c=t.getTextContent();if(!1===a)c&&t.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=uG(a),t.setTextContent(c));var h=a&&a.style;cG(null,c,null,e,a,h,null,i,r,!0);for(var d=0;d<JW.length;d++){var p=JW[d];if(p!==ZW){var f=o[p].conOpt;MG(p,c,f,VG(a,f,p),null,!1,!0)}}h?c.dirty():c.markRedraw()}}}}function zG(t,e,n){var i=e?BG(t,e):t,r=e?VG(t,i,UW):t.style,o=t.type,a=i?i.textConfig:null,s=t.textContent,l=s?e?BG(s,e):s:null;if(r&&(n.isLegacy||rW(r,o,!!a,!!l))){n.isLegacy=!0;var u=oW(r,o,!e);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text")}var h=e?n[e]:n.normal;h.cfg=a,h.conOpt=l}function BG(t,e){return e?t?t[e]:null:t}function VG(t,e,n){var i=e&&e.style;return null==i&&n===UW&&t&&(i=t.styleEmphasis),i}function FG(t,e,n,i,r,o){var a=i.children,s=a?a.length:0,l=i.$mergeChildren,u="byName"===l||i.diffChildrenByName,c=!1===l;if(s||u||c)if(u)HG({api:t,oldChildren:e.children()||[],newChildren:a||[],dataIndex:n,seriesModel:r,group:e,morphPreparation:o});else{c&&e.removeAll();for(var h=0;h<s;h++)a[h]&&OG(t,e.childAt(h),n,a[h],r,e,!1,o);for(var d=e.childCount()-1;d>=h;d--)jG(e.childAt(d),r,e)}}function HG(t){new aM(t.oldChildren,t.newChildren,$G,$G,t).add(WG).update(WG).remove(GG).execute()}function $G(t,e){var n=t&&t.name;return null!=n?n:eG+e}function WG(t,e){var n=this.context,i=null!=t?n.newChildren[t]:null,r=null!=e?n.oldChildren[e]:null;OG(n.api,r,n.dataIndex,i,n.seriesModel,n.group,!1,n.morphPreparation)}function GG(t){var e=this.context,n=e.oldChildren[t];jG(n,e.seriesModel,e.group)}function jG(t,e,n){if(t){var i=GW(t).leaveToProps;i?Md(t,i,e,{cb:function(){n.remove(t)}}):n.remove(t)}}function YG(t){return t&&(t.pathData||t.d)}function XG(t){return t&&(Lt(t,"pathData")||Lt(t,"d"))}function UG(t){return t&&t instanceof Bl}function ZG(t,e){t&&e.remove(t)}var qG=function(){function t(t,e){this._fromList=[],this._toList=[],this._toElOptionList=[],this._allPropsFinalList=[],this._toDataIndices=[],this._morphConfigList=[],this._seriesModel=t,this._transOpt=e}return t.prototype.hasFrom=function(){return!!this._fromList.length},t.prototype.findAndAddFrom=function(t){if(t&&(GW(t).canMorph&&this._fromList.push(t),t.isGroup))for(var e=t.childrenRef(),n=0;n<e.length;n++)this.findAndAddFrom(e[n])},t.prototype.addTo=function(t,e,n,i){t&&(this._toList.push(t),this._toElOptionList.push(e),this._toDataIndices.push(n),this._allPropsFinalList.push(i))},t.prototype.applyMorphing=function(){var t=this._type,e=this._fromList,n=this._toList,i=n.length,r=e.length;if(r&&i)if("oneToOne"===t)for(var o=0;o<i;o++)this._oneToOneForSingleTo(o,o);else if("manyToOne"===t)for(var a=Math.max(1,Math.floor(r/i)),s=(o=0,0);o<i;o++,s+=a){var l=o+1>=i?r-s:a;this._manyToOneForSingleTo(o,s>=r?null:s,l)}else if("oneToMany"===t)for(var u=Math.max(1,Math.floor(i/r)),c=0,h=0;c<i;c+=u,h++){var d=c+u>=i?i-c:u;this._oneToManyForSingleFrom(c,d,h>=r?null:h)}},t.prototype._oneToOneForSingleTo=function(t,e){var n=this._toList[t],i=this._toElOptionList[t],r=this._toDataIndices[t],o=this._allPropsFinalList[t],a=this._fromList[e],s=this._getOrCreateMorphConfig(r),l=s.duration;if(a&&DW(a)){if(hG(n,o,i.style),l){var u=LW([a],n,s,KG);this._processResultIndividuals(u,t,null)}}else{var c=l&&a&&(a!==n||kW(a))?a:null,h={};pG("shape",n,c,i,h,!1),pG("extra",n,c,i,h,!1),gG(n,c,i,h,!1),mG(n,c,i,i.style,h,!1),hG(n,o,i.style),c&&SW(c,n,s),dG(n,r,i,this._seriesModel,h,!1)}},t.prototype._manyToOneForSingleTo=function(t,e,n){var i=this._toList[t],r=this._toElOptionList[t],o=this._allPropsFinalList[t];hG(i,o,r.style);var a=this._getOrCreateMorphConfig(this._toDataIndices[t]);if(a.duration&&null!=e){for(var s=[],l=e;l<n;l++)s.push(this._fromList[l]);var u=LW(s,i,a,KG);this._processResultIndividuals(u,t,null)}},t.prototype._oneToManyForSingleFrom=function(t,e,n){for(var i=null==n?null:this._fromList[n],r=this._toList,o=[],a=t;a<e;a++){var s=r[a];hG(s,this._allPropsFinalList[a],this._toElOptionList[a].style),o.push(s)}var l=this._getOrCreateMorphConfig(this._toDataIndices[t]);if(l.duration&&i){var u=VW(i,o,l,KG);this._processResultIndividuals(u,t,e)}},t.prototype._processResultIndividuals=function(t,e,n){for(var i=null!=n,r=0;r<t.count;r++){var o=t.fromIndividuals[r],a=t.toIndividuals[r],s=e+(i?r:0),l=this._toElOptionList[s],u=this._toDataIndices[s],c={};gG(a,o,l,c,!1),mG(a,o,l,l.style,c,!1),dG(a,u,l,this._seriesModel,c,!1)}},t.prototype._getOrCreateMorphConfig=function(t){var e,n,i,r=this._morphConfigList,o=r[t];if(o)return o;var a=this._seriesModel,s=this._transOpt;if(a.isAnimationEnabled()){var l=void 0;if(a&&a.ecModel){var u=a.ecModel.getUpdatePayload();l=u&&u.animation}if(l)e=l.duration||0,n=l.easing||"cubicOut",i=l.delay||0;else{n=a.get("animationEasingUpdate");var c=a.get("animationDelayUpdate");i=ot(c)?c(t):c;var h=a.get("animationDurationUpdate");e=ot(h)?h(t):h}}return o={duration:e||0,delay:i,easing:n,dividingMethod:s?s.dividingMethod:null},r[t]=o,o},t.prototype.reset=function(t){this._type=t,this._fromList.length=this._toList.length=this._toElOptionList.length=this._allPropsFinalList.length=this._toDataIndices.length=0},t}();function KG(t,e,n){e.style=n?V(t.style):t.style,e.zlevel=t.zlevel,e.z=t.z,e.z2=t.z2}function JG(t){t.registerChartView(sG),t.registerSeriesModel(aG)}var QG=ta(),tj=V,ej=nt,nj=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(t,e);if(a){var h=it(ij,e,c);this.updatePointerEl(a,l,h),this.updateLabelEl(a,l,h,e)}else a=this._group=new Wr,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);sj(a,e,!0),this._renderHandle(r)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=CL(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,r){},t.prototype.createPointerEl=function(t,e,n,i){var r=e.pointer;if(r){var o=QG(t).pointerEl=new l[r.type](tj(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=QG(t).labelEl=new gu(tj(e.label));t.add(r),oj(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=QG(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=QG(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),oj(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return r&&i.remove(r),void(this._handle=null);this._handle||(e=!0,r=this._handle=Bd(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){De(t.event)},onmousedown:ej(this._onHandleDragMove,this,0,0),drift:ej(this._onHandleDragMove,this),ondragend:ej(this._onHandleDragEnd,this)}),i.add(r)),sj(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");rt(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,_y(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){ij(this._axisPointerModel,!e&&this._moveAnimation,this._handle,aj(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(aj(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(aj(i)),QG(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null)},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},t}();function ij(t,e,n,i){rj(QG(n).lastProp,i)||(QG(n).lastProp=i,e?Md(n,i,t):(n.stopAnimation(),n.attr(i)))}function rj(t,e){if(ut(t)&&ut(e)){var n=!0;return Z(e,(function(e,i){n=n&&rj(t[i],e)})),!!n}return t===e}function oj(t,e){t[e.get(["label","show"])?"show":"hide"]()}function aj(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function sj(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)}))}var lj=nj;function uj(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle(),e.fill=null):"shadow"===n&&(e=i.getAreaStyle(),e.stroke=null),e}function cj(t,e,n,i,r){var o=n.get("value"),a=dj(o,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=mf(s.get("padding")||0),u=s.getFont(),c=Mr(a,u),h=r.position,d=c.width+l[1]+l[3],p=c.height+l[0]+l[2],f=r.align;"right"===f&&(h[0]-=d),"center"===f&&(h[0]-=d/2);var g=r.verticalAlign;"bottom"===g&&(h[1]-=p),"middle"===g&&(h[1]-=p/2),hj(h,d,p,i);var v=s.get("backgroundColor");v&&"auto"!==v||(v=e.get(["axisLine","lineStyle","color"])),t.label={x:h[0],y:h[1],style:Zd(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:v}),z2:10}}function hj(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function dj(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:mC(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};Z(i,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)})),at(a)?o=a.replace("{value}",o):ot(a)&&(o=a(s))}return o}function pj(t,e,n){var i=Fi();return ji(i,i,n.rotation),Gi(i,i,n.position),Ld([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function fj(t,e,n,i,r,o){var a=yL.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),cj(e,i,r,o,{position:pj(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function gj(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function vj(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function mj(t,e,n,i,r,o){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}var yj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=xj(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=uj(i),h=bj[s](o,u,l);h.style=c,t.graphicKey=h.type,t.pointer=h}var d=Kk(a.model,n);fj(e,t,d,n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=Kk(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=pj(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=xj(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];h[l]=u[l];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:h,tooltipOption:d[l]}},e}(lj);function xj(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var bj={line:function(t,e,n){var i=gj([e,n[0]],[e,n[1]],_j(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:vj([e-i/2,n[0]],[i,r],_j(t))}}};function _j(t){return"x"===t.dim?0:1}var wj=yj,Sj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.type="axisPointer",e.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}},e}(Xf),Mj=Sj,Ij=ta(),Cj=Z;function Tj(t,e,n){if(!S.node){var i=e.getZr();Ij(i).records||(Ij(i).records={}),Aj(i,e);var r=Ij(i).records[t]||(Ij(i).records[t]={});r.handler=n}}function Aj(t,e){function n(n,i){t.on(n,(function(n){var r=Pj(e);Cj(Ij(t).records,(function(t){t&&i(t,n,r.dispatchAction)})),Dj(r.pendings,e)}))}Ij(t).initialized||(Ij(t).initialized=!0,n("click",it(Lj,"click")),n("mousemove",it(Lj,"mousemove")),n("globalout",kj))}function Dj(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function kj(t,e,n){t.handler("leave",null,n)}function Lj(t,e,n,i){e.handler(t,n,i)}function Pj(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}function Oj(t,e){if(!S.node){var n=e.getZr(),i=(Ij(n).records||{})[t];i&&(Ij(n).records[t]=null)}}var Ej=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Tj("axisPointer",n,(function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){Oj("axisPointer",e)},e.prototype.dispose=function(t,e){Oj("axisPointer",e)},e.type="axisPointer",e}(ay),Rj=Ej;function Nj(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=Qo(o,t);if(null==a||a<0||rt(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),h=c.dim,d=u.dim,p="x"===h||"radius"===h?1:0,f=o.mapDimension(d),g=[];g[p]=o.get(f,a),g[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(g)||[]}else i=l.dataToPoint(o.getValues(q(l.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(s){var v=s.getBoundingRect().clone();v.applyTransform(s.transform),i=[v.x+v.width/2,v.y+v.height/2]}return{point:i,el:s}}var zj=ta();function Bj(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||nt(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Uj(r)&&(r=Nj({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=Uj(r),u=o.axesInfo,c=s.axesInfo,h="leave"===i||Uj(r),d={},p={},f={list:[],map:{}},g={showPointer:it(Hj,p),showTooltip:it($j,f)};Z(s.coordSysMap,(function(t,e){var n=l||t.containPoint(r);Z(s.coordSysAxesInfo[e],(function(t,e){var i=t.axis,o=Yj(u,t);if(!h&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&Vj(t,a,g,!1,d)}}))}));var v={};return Z(c,(function(t,e){var n=t.linkGroup;n&&!p[e]&&Z(n.axesInfo,(function(e,i){var r=p[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,Xj(e),Xj(t)))),v[t.key]=o}}))})),Z(v,(function(t,e){Vj(c[e],t,g,!0,d)})),Wj(p,c,d),Gj(f,r,t,a),jj(c,a,n),d}}function Vj(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=Fj(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&$(r,s[0]),!i&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function Fj(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return Z(e.seriesModels,(function(e,l){var u,c,h=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(h,t,n);c=d.dataIndices,u=d.nestestValue}else{if(c=e.getData().indicesOfNearest(h[0],t,"category"===n.type?.5:null),!c.length)return;u=e.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var p=t-u,f=Math.abs(p);f<=a&&((f<a||p>=0&&s<0)&&(a=f,s=p,r=u,o.length=0),Z(c,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:r}}function Hj(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function $j(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=DL(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function Wj(t,e,n){var i=n.axesInfo=[];Z(e,(function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})}))}function Gj(t,e,n,i){if(!Uj(e)&&t.list.length){var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}else i({type:"hideTip"})}function jj(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",o=zj(i)[r]||{},a=zj(i)[r]={};Z(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&Z(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var s=[],l=[];Z(o,(function(t,e){!a[e]&&l.push(t)})),Z(a,(function(t,e){!o[e]&&s.push(t)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Yj(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function Xj(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function Uj(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function Zj(t){PL.registerAxisPointerClass("CartesianAxisPointer",wj),t.registerComponentModel(Mj),t.registerComponentView(Rj),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!rt(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=xL(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Bj)}function qj(t){nM(GL),nM(Zj)}var Kj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o),l=s.getExtent(),u=o.dataToCoord(e),c=i.get("type");if(c&&"none"!==c){var h=uj(i),d=Qj[c](o,a,u,l);d.style=h,t.graphicKey=d.type,t.pointer=d}var p=i.get(["label","margin"]),f=Jj(e,n,i,a,p);cj(t,n,i,r,f)},e}(lj);function Jj(t,e,n,i,r){var o=e.axis,a=o.dataToCoord(t),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,c,h=i.getRadiusAxis().getExtent();if("radius"===o.dim){var d=Fi();ji(d,d,s),Gi(d,d,[i.cx,i.cy]),l=Ld([a,-r],d);var p=e.getModel("axisLabel").get("rotate")||0,f=yL.innerTextLayout(s,p*Math.PI/180,-1);u=f.textAlign,c=f.textVerticalAlign}else{var g=h[1];l=i.coordToPoint([g+r,a]);var v=i.cx,m=i.cy;u=Math.abs(l[0]-v)/g<.3?"center":l[0]>v?"left":"right",c=Math.abs(l[1]-m)/g<.3?"middle":l[1]>m?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}var Qj={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:gj(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i){var r=Math.max(1,t.getBandWidth()),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:mj(e.cx,e.cy,i[0],i[1],(-n-r/2)*o,(r/2-n)*o)}:{type:"Sector",shape:mj(e.cx,e.cy,n-r/2,n+r/2,0,2*Math.PI)}}},tY=Kj,eY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.findAxisModel=function(t){var e,n=this.ecModel;return n.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={zlevel:0,z:0,center:["50%","50%"],radius:"80%"},e}(Xf),nY=eY,iY=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ra).models[0]},e.type="polarAxis",e}(Xf);X(iY,MC);var rY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.type="angleAxis",e}(iY),oY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.type="radiusAxis",e}(iY),aY=function(t){function e(e,n){return t.call(this,"radius",e,n)||this}return v(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e}(qC);aY.prototype.dataToRadius=qC.prototype.dataToCoord,aY.prototype.radiusToData=qC.prototype.coordToData;var sY=aY,lY=ta(),uY=function(t){function e(e,n){return t.call(this,"angle",e,n||[0,360])||this}return v(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,e=t.getLabelModel(),n=t.scale,i=n.getExtent(),r=n.count();if(i[1]-i[0]<1)return 0;var o=i[0],a=t.dataToCoord(o+1)-t.dataToCoord(o),s=Math.abs(a),l=Mr(null==o?"":o+"",e.getFont(),"center","top"),u=Math.max(l.height,7),c=u/s;isNaN(c)&&(c=1/0);var h=Math.max(0,Math.floor(c)),d=lY(t.model),p=d.lastAutoInterval,f=d.lastTickCount;return null!=p&&null!=f&&Math.abs(p-h)<=1&&Math.abs(f-r)<=1&&p>h?h=p:(d.lastTickCount=r,d.lastAutoInterval=h),h},e}(qC);uY.prototype.dataToAngle=qC.prototype.dataToCoord,uY.prototype.angleToData=qC.prototype.coordToData;var cY=uY,hY=function(){function t(t){this.dimensions=["radius","angle"],this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new sY,this._angleAxis=new cY,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},t.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);i.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;var l=Math.atan2(-n,e)/Math.PI*180,u=l<o?1:-1;while(l<o||l>a)l+=360*u;return[s,l]},t.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI,i=Math.cos(n)*e+this.cx,r=-Math.sin(n)*e+this.cy;return[i,r]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),n=e.getExtent().slice();n[0]>n[1]&&n.reverse();var i=t.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*r,endAngle:-i[1]*r,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,i=e-this.cy,r=n*n+i*i,o=this.r,a=this.r0;return r<=o*o&&r>=a*a}}},t.prototype.convertToPixel=function(t,e,n){var i=dY(e);return i===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var i=dY(e);return i===this?this.pointToData(n):null},t}();function dY(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var pY=hY;function fY(t,e,n){var i=e.get("center"),r=n.getWidth(),o=n.getHeight();t.cx=ao(i[0],r),t.cy=ao(i[1],o);var a=t.getRadiusAxis(),s=Math.min(r,o)/2,l=e.get("radius");null==l?l=[0,"100%"]:rt(l)||(l=[0,l]);var u=[ao(l[0],s),ao(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}function gY(t,e){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===n){var e=t.getData();Z(wC(e,"radius"),(function(t){r.scale.unionExtentFromData(e,t)})),Z(wC(e,"angle"),(function(t){i.scale.unionExtentFromData(e,t)}))}})),pC(i.scale,i.model),pC(r.scale,r.model),"category"===i.type&&!i.onBand){var o=i.getExtent(),a=360/i.scale.count();i.inverse?o[1]+=a:o[1]-=a,i.setExtent(o[0],o[1])}}function vY(t){return"angleAxis"===t.mainType}function mY(t,e){if(t.type=e.get("type"),t.scale=fC(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),vY(e)){t.inverse=t.inverse!==e.get("clockwise");var n=e.get("startAngle");t.setExtent(n,n+(t.inverse?-360:360))}e.axis=t,t.model=e}var yY={dimensions:pY.prototype.dimensions,create:function(t,e){var n=[];return t.eachComponent("polar",(function(t,i){var r=new pY(i+"");r.update=gY;var o=r.getRadiusAxis(),a=r.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");mY(o,s),mY(a,l),fY(r,t,e),n.push(r),t.coordinateSystem=r,r.model=t})),t.eachSeries((function(t){if("polar"===t.get("coordinateSystem")){var e=t.getReferringComponents("polar",ra).models[0];0,t.coordinateSystem=e.coordinateSystem}})),n}},xY=yY,bY=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function _Y(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),r=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function wY(t){var e=t.getRadiusAxis();return e.inverse?0:1}function SY(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var MY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return v(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=q(n.getViewLabels(),(function(t){t=V(t);var e=n.scale,i="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(i),t}));SY(s),SY(o),Z(bY,(function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||IY[e](this.group,t,i,o,a,r,s)}),this)}},e.type="angleAxis",e}(PL),IY={axisLine:function(t,e,n,i,r,o){var a,s=e.getModel(["axisLine","lineStyle"]),l=wY(n),u=l?0:1;a=0===o[u]?new Jc({shape:{cx:n.cx,cy:n.cy,r:o[l]},style:s.getLineStyle(),z2:1,silent:!0}):new _h({shape:{cx:n.cx,cy:n.cy,r:o[l],r0:o[u]},style:s.getLineStyle(),z2:1,silent:!0}),a.style.fill=null,t.add(a)},axisTick:function(t,e,n,i,r,o){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[wY(n)],u=q(i,(function(t){return new Rh({shape:_Y(n,[l,l+s],t.coord)})}));t.add(yd(u,{style:W(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,i,r,o){if(r.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[wY(n)],c=[],h=0;h<r.length;h++)for(var d=0;d<r[h].length;d++)c.push(new Rh({shape:_Y(n,[u,u+l],r[h][d].coord)}));t.add(yd(c,{style:W(s.getModel("lineStyle").getLineStyle(),W(a.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(t,e,n,i,r,o,a){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),c=e.get("triggerEvent");Z(a,(function(i,r){var a=l,h=i.tickValue,d=o[wY(n)],p=n.coordToPoint([d+u,i.coord]),f=n.cx,g=n.cy,v=Math.abs(p[0]-f)/d<.3?"center":p[0]>f?"left":"right",m=Math.abs(p[1]-g)/d<.3?"middle":p[1]>g?"top":"bottom";if(s&&s[h]){var y=s[h];ut(y)&&y.textStyle&&(a=new yp(y.textStyle,l,l.ecModel))}var x=new gu({silent:yL.isLabelSilent(e),style:Zd(a,{x:p[0],y:p[1],fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:v,verticalAlign:m})});if(t.add(x),c){var b=yL.makeAxisEventDataBase(e);b.targetType="axisLabel",b.value=i.rawLabel,vu(x).eventData=b}}),this)},splitLine:function(t,e,n,i,r,o){var a=e.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=0;h<i.length;h++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new Rh({shape:_Y(n,o,i[h].coord)}))}for(h=0;h<c.length;h++)t.add(yd(c[h],{style:W({stroke:l[h%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(t,e,n,i,r,o){if(r.length){for(var a=e.getModel("minorSplitLine"),s=a.getModel("lineStyle"),l=[],u=0;u<r.length;u++)for(var c=0;c<r[u].length;c++)l.push(new Rh({shape:_Y(n,o,r[u][c].coord)}));t.add(yd(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(t,e,n,i,r,o){if(i.length){var a=e.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=Math.PI/180,d=-i[0].coord*h,p=Math.min(o[0],o[1]),f=Math.max(o[0],o[1]),g=e.get("clockwise"),v=1,m=i.length;v<=m;v++){var y=v===m?i[0].coord:i[v].coord,x=u++%l.length;c[x]=c[x]||[],c[x].push(new yh({shape:{cx:n.cx,cy:n.cy,r0:p,r:f,startAngle:d,endAngle:-y*h,clockwise:g},silent:!0})),d=-y*h}for(v=0;v<c.length;v++)t.add(yd(c[v],{style:W({fill:l[v%l.length]},s.getAreaStyle()),silent:!0}))}}},CY=MY,TY=["axisLine","axisTickLabel","axisName"],AY=["splitLine","splitArea","minorSplitLine"],DY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return v(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=this._axisGroup,i=this._axisGroup=new Wr;this.group.add(i);var r=t.axis,o=r.polar,a=o.getAngleAxis(),s=r.getTicksCoords(),l=r.getMinorTicksCoords(),u=a.getExtent()[0],c=r.getExtent(),h=LY(o,t,u),d=new yL(t,h);Z(TY,d.add,d),i.add(d.getGroup()),Rd(n,i,t),Z(AY,(function(e){t.get([e,"show"])&&!r.scale.isBlank()&&kY[e](this.group,t,o,u,c,s,l)}),this)}},e.type="radiusAxis",e}(PL),kY={splitLine:function(t,e,n,i,r,o){var a=e.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=0;h<o.length;h++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new Jc({shape:{cx:n.cx,cy:n.cy,r:o[h].coord}}))}for(h=0;h<c.length;h++)t.add(yd(c[h],{style:W({stroke:l[h%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,n,i,r,o,a){if(a.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<a.length;c++)for(var h=0;h<a[c].length;h++)u.push(new Jc({shape:{cx:n.cx,cy:n.cy,r:a[c][h].coord}}));t.add(yd(u,{style:W({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(t,e,n,i,r,o){if(o.length){var a=e.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=o[0].coord,d=1;d<o.length;d++){var p=u++%l.length;c[p]=c[p]||[],c[p].push(new yh({shape:{cx:n.cx,cy:n.cy,r0:h,r:o[d].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),h=o[d].coord}for(d=0;d<c.length;d++)t.add(yd(c[d],{style:W({fill:l[d%l.length]},s.getAreaStyle()),silent:!0}))}}};function LY(t,e,n){return{position:[t.cx,t.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}var PY=DY;function OY(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function EY(t,e){return e.dim+t.model.componentIndex}function RY(t,e,n){var i={},r=NY(J(e.getSeriesByType(t),(function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type})));e.eachSeriesByType(t,(function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),n=t.coordinateSystem,o=n.getBaseAxis(),a=EY(n,o),s=OY(t),l=r[a][s],u=l.offset,c=l.width,h=n.getOtherAxis(o),d=t.coordinateSystem.cx,p=t.coordinateSystem.cy,f=t.get("barMinHeight")||0,g=t.get("barMinAngle")||0;i[s]=i[s]||[];for(var v=e.mapDimension(h.dim),m=e.mapDimension(o.dim),y=KM(e,v),x="radius"!==o.dim||!t.get("roundCap",!0),b=h.dataToCoord(0),_=0,w=e.count();_<w;_++){var S=e.get(v,_),M=e.get(m,_),I=S>=0?"p":"n",C=b;y&&(i[s][M]||(i[s][M]={p:b,n:b}),C=i[s][M][I]);var T=void 0,A=void 0,D=void 0,k=void 0;if("radius"===h.dim){var L=h.dataToCoord(S)-b,P=o.dataToCoord(M);Math.abs(L)<f&&(L=(L<0?-1:1)*f),T=C,A=C+L,D=P-u,k=D-c,y&&(i[s][M][I]=A)}else{var O=h.dataToCoord(S,x)-b,E=o.dataToCoord(M);Math.abs(O)<g&&(O=(O<0?-1:1)*g),T=E+u,A=T+c,D=C,k=C+O,y&&(i[s][M][I]=k)}e.setItemLayout(_,{cx:d,cy:p,r0:T,r:A,startAngle:-D*Math.PI/180,endAngle:-k*Math.PI/180})}}}))}function NY(t){var e={};Z(t,(function(t,n){var i=t.getData(),r=t.coordinateSystem,o=r.getBaseAxis(),a=EY(r,o),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/i.count(),u=e[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=u.stacks;e[a]=u;var h=OY(t);c[h]||u.autoWidthCount++,c[h]=c[h]||{width:0,maxWidth:0};var d=ao(t.get("barWidth"),l),p=ao(t.get("barMaxWidth"),l),f=t.get("barGap"),g=t.get("barCategoryGap");d&&!c[h].width&&(d=Math.min(u.remainedWidth,d),c[h].width=d,u.remainedWidth-=d),p&&(c[h].maxWidth=p),null!=f&&(u.gap=f),null!=g&&(u.categoryGap=g)}));var n={};return Z(e,(function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=ao(t.categoryGap,r),a=ao(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),Z(i,(function(t,e){var n=t.maxWidth;n&&n<u&&(n=Math.min(n,s),t.width&&(n=Math.min(n,t.width)),s-=n,t.width=n,l--)})),u=(s-o)/(l+(l-1)*a),u=Math.max(u,0);var c,h=0;Z(i,(function(t,e){t.width||(t.width=u),c=t,h+=t.width*(1+a)})),c&&(h-=c.width*a);var d=-h/2;Z(i,(function(t,i){n[e][i]=n[e][i]||{offset:d,width:t.width},d+=t.width*(1+a)}))})),n}var zY=RY,BY={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},VY={splitNumber:5},FY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.type="polar",e}(ay);function HY(t){nM(Zj),PL.registerAxisPointerClass("PolarAxisPointer",tY),t.registerCoordinateSystem("polar",xY),t.registerComponentModel(nY),t.registerComponentView(FY),Hk(t,"angle",rY,BY),Hk(t,"radius",oY,VY),t.registerComponentView(CY),t.registerComponentView(PY),t.registerLayout(it(zY,"bar"))}function $Y(t,e){e=e||{};var n=t.coordinateSystem,i=t.axis,r={},o=i.position,a=i.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};r.position=["vertical"===a?u.vertical[o]:l[0],"horizontal"===a?u.horizontal[o]:l[3]];var c={horizontal:0,vertical:1};r.rotation=Math.PI/2*c[a];var h={top:-1,bottom:1,right:1,left:-1};r.labelDirection=r.tickDirection=r.nameDirection=h[o],t.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),mt(e.labelInside,t.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var d=e.rotate;return null==d&&(d=t.get(["axisLabel","rotate"])),r.labelRotation="top"===o?-d:d,r.z2=1,r}var WY=["axisLine","axisTickLabel","axisName"],GY=["splitArea","splitLine"],jY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="SingleAxisPointer",n}return v(e,t),e.prototype.render=function(e,n,i,r){var o=this.group;o.removeAll();var a=this._axisGroup;this._axisGroup=new Wr;var s=$Y(e),l=new yL(e,s);Z(WY,l.add,l),o.add(this._axisGroup),o.add(l.getGroup()),Z(GY,(function(t){e.get([t,"show"])&&YY[t](this,this.group,this._axisGroup,e)}),this),Rd(a,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r)},e.prototype.remove=function(){RL(this)},e.type="singleAxis",e}(PL),YY={splitLine:function(t,e,n,i){var r=i.axis;if(!r.scale.isBlank()){var o=i.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];for(var l=i.coordinateSystem.getRect(),u=r.isHorizontal(),c=[],h=0,d=r.getTicksCoords({tickModel:o}),p=[],f=[],g=0;g<d.length;++g){var v=r.toGlobalCoord(d[g].coord);u?(p[0]=v,p[1]=l.y,f[0]=v,f[1]=l.y+l.height):(p[0]=l.x,p[1]=v,f[0]=l.x+l.width,f[1]=v);var m=h++%s.length;c[m]=c[m]||[],c[m].push(new Rh({subPixelOptimize:!0,shape:{x1:p[0],y1:p[1],x2:f[0],y2:f[1]},silent:!0}))}var y=a.getLineStyle(["color"]);for(g=0;g<c.length;++g)e.add(yd(c[g],{style:W({stroke:s[g%s.length]},y),silent:!0}))}},splitArea:function(t,e,n,i){EL(t,n,i,i)}},XY=jY,UY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.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}}},e}(Xf);X(UY,MC.prototype);var ZY=UY,qY=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.type=r||"value",a.position=o||"bottom",a}return v(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.pointToData=function(t,e){return this.coordinateSystem.pointToData(t)[0]},e}(qC),KY=qY,JY=function(){function t(t,e,n){this.type="single",this.dimension="single",this.dimensions=["single"],this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var i=this.dimension,r=new KY(i,fC(t),[0,0],t.get("type"),t.get("position")),o="category"===r.type;r.onBand=o&&t.get("boundaryGap"),r.inverse=t.get("inverse"),r.orient=t.get("orient"),t.axis=r,r.model=t,r.coordinateSystem=this,this._axis=r},t.prototype.update=function(t,e){t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData();Z(e.mapDimensionsAll(this.dimension),(function(t){this._axis.scale.unionExtentFromData(e,t)}),this),pC(this._axis.scale,this._axis.model)}}),this)},t.prototype.resize=function(t,e){this._rect=zf({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},t.prototype.getRect=function(){return this._rect},t.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),i=n?[0,t.width]:[0,t.height],r=e.reverse?1:0;e.setExtent(i[r],i[1-r]),this._updateAxisTransform(e,n?t.x:t.y)},t.prototype._updateAxisTransform=function(t,e){var n=t.getExtent(),i=n[0]+n[1],r=t.isHorizontal();t.toGlobalCoord=r?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord=r?function(t){return t-e}:function(t){return i-t+e}},t.prototype.getAxis=function(){return this._axis},t.prototype.getBaseAxis=function(){return this._axis},t.prototype.getAxes=function(){return[this._axis]},t.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},t.prototype.containPoint=function(t){var e=this.getRect(),n=this.getAxis(),i=n.orient;return"horizontal"===i?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},t.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[r]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i},t.prototype.convertToPixel=function(t,e,n){var i=QY(e);return i===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var i=QY(e);return i===this?this.pointToData(n):null},t}();function QY(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var tX=JY;function eX(t,e){var n=[];return t.eachComponent("singleAxis",(function(i,r){var o=new tX(i,t,e);o.name="single_"+r,o.resize(i,e),i.coordinateSystem=o,n.push(o)})),t.eachSeries((function(t){if("singleAxis"===t.get("coordinateSystem")){var e=t.getReferringComponents("singleAxis",ra).models[0];t.coordinateSystem=e&&e.coordinateSystem}})),n}var nX={create:eX,dimensions:tX.prototype.dimensions},iX=nX,rX=["x","y"],oX=["width","height"],aX=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.coordinateSystem,s=uX(a,1-lX(o)),l=a.dataToPoint(e)[0],u=i.get("type");if(u&&"none"!==u){var c=uj(i),h=sX[u](o,l,s);h.style=c,t.graphicKey=h.type,t.pointer=h}var d=$Y(n);fj(e,t,d,n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=$Y(e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=pj(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.coordinateSystem,a=lX(r),s=uX(o,a),l=[t.x,t.y];l[a]+=e[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=uX(o,1-a),c=(u[1]+u[0])/2,h=[c,c];return h[a]=l[a],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(lj),sX={line:function(t,e,n){var i=gj([e,n[0]],[e,n[1]],lX(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,n){var i=t.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:vj([e-i/2,n[0]],[i,r],lX(t))}}};function lX(t){return t.isHorizontal()?0:1}function uX(t,e){var n=t.getRect();return[n[rX[e]],n[rX[e]]+n[oX[e]]]}var cX=aX,hX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.type="single",e}(ay);function dX(t){nM(Zj),PL.registerAxisPointerClass("SingleAxisPointer",cX),t.registerComponentView(hX),t.registerComponentView(XY),t.registerComponentModel(ZY),Hk(t,"single",ZY,ZY.defaultOption),t.registerCoordinateSystem("single",iX)}var pX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.init=function(e,n,i){var r=$f(e);t.prototype.init.apply(this,arguments),fX(e,r)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),fX(this.option,e)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.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}},e}(Xf);function fX(t,e){var n,i=t.cellSize;n=rt(i)?i:t.cellSize=[i,i],1===n.length&&(n[1]=n[0]);var r=q([0,1],(function(t){return Vf(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]}));Hf(t,e,{type:"box",ignoreSize:r})}var gX=pX,vX={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},mX={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]},yX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.render=function(t,e,n){var i=this.group;i.removeAll();var r=t.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient();this._renderDayRect(t,o,i),this._renderLines(t,o,a,i),this._renderYearText(t,o,a,i),this._renderMonthText(t,a,i),this._renderWeekText(t,o,a,i)},e.prototype._renderDayRect=function(t,e,n){for(var i=t.coordinateSystem,r=t.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),a=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,u=new eu({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});n.add(u)}},e.prototype._renderLines=function(t,e,n,i){var r=this,o=t.coordinateSystem,a=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,c=0;u.time<=e.end.time;c++){d(u.formatedDate),0===c&&(u=o.getDateInfo(e.start.y+"-"+e.start.m));var h=u.date;h.setMonth(h.getMonth()+1),u=o.getDateInfo(h)}function d(e){r._firstDayOfMonth.push(o.getDateInfo(e)),r._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=r._getLinePointsOfOneWeek(t,e,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}d(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),a,i)},e.prototype._getEdgesPoints=function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-e/2,i[1][r]=i[1][r]+e/2,i},e.prototype._drawSplitline=function(t,e,n){var i=new Lh({z2:20,shape:{points:t},style:e});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var i=t.coordinateSystem,r=i.getDateInfo(e),o=[],a=0;a<7;a++){var s=i.getNextNDay(r.time,a),l=i.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},e.prototype._formatterLabel=function(t,e){return"string"===typeof t&&t?If(t,e):"function"===typeof t?t(e):e.nameMap},e.prototype._yearTextPositionControl=function(t,e,n,i,r){var o=e[0],a=e[1],s=["center","bottom"];"bottom"===i?(a+=r,s=["center","top"]):"left"===i?o-=r:"right"===i?(o+=r,s=["center","top"]):a-=r;var l=0;return"left"!==i&&"right"!==i||(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},e.prototype._renderYearText=function(t,e,n,i){var r=t.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),a=r.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,c="horizontal"===n?0:1,h={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var p=r.get("formatter"),f={start:e.start.y,end:e.end.y,nameMap:d},g=this._formatterLabel(p,f),v=new gu({z2:30,style:Zd(r,{text:g})});v.attr(this._yearTextPositionControl(v,h[a],n,a,o)),i.add(v)}},e.prototype._monthTextPositionControl=function(t,e,n,i,r){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=r,e&&(o="center"),"start"===i&&(a="bottom")):(s+=r,e&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderMonthText=function(t,e,n){var i=t.getModel("monthLabel");if(i.get("show")){var r=i.get("nameMap"),o=i.get("margin"),a=i.get("position"),s=i.get("align"),l=[this._tlpoints,this._blpoints];at(r)&&(r=vX[r.toUpperCase()]||[]);var u="start"===a?0:1,c="horizontal"===e?0:1;o="start"===a?-o:o;for(var h="center"===s,d=0;d<l[u].length-1;d++){var p=l[u][d].slice(),f=this._firstDayOfMonth[d];if(h){var g=this._firstDayPoints[d];p[c]=(g[c]+l[0][d+1][c])/2}var v=i.get("formatter"),m=r[+f.m-1],y={yyyy:f.y,yy:(f.y+"").slice(2),MM:f.m,M:+f.m,nameMap:m},x=this._formatterLabel(v,y),b=new gu({z2:30,style:$(Zd(i,{text:x}),this._monthTextPositionControl(p,h,e,a,o))});n.add(b)}}},e.prototype._weekTextPositionControl=function(t,e,n,i,r){var o="center",a="middle",s=t[0],l=t[1],u="start"===n;return"horizontal"===e?(s=s+i+(u?1:-1)*r[0]/2,o=u?"right":"left"):(l=l+i+(u?1:-1)*r[1]/2,a=u?"bottom":"top"),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderWeekText=function(t,e,n,i){var r=t.getModel("dayLabel");if(r.get("show")){var o=t.coordinateSystem,a=r.get("position"),s=r.get("nameMap"),l=r.get("margin"),u=o.getFirstDayOfWeek();at(s)&&(s=mX[s.toUpperCase()]||[]);var c=o.getNextNDay(e.end.time,7-e.lweek).time,h=[o.getCellWidth(),o.getCellHeight()];l=ao(l,Math.min(h[1],h[0])),"start"===a&&(c=o.getNextNDay(e.start.time,-(7+e.fweek)).time,l=-l);for(var d=0;d<7;d++){var p=o.getNextNDay(c,d),f=o.dataToRect([p.time],!1).center,g=d;g=Math.abs((d+u)%7);var v=new gu({z2:30,style:$(Zd(r,{text:s[g]}),this._weekTextPositionControl(f,n,a,l,h))});i.add(v)}}},e.type="calendar",e}(ay),xX=yX,bX=864e5,_X=function(){function t(e,n,i){this.type="calendar",this.dimensions=t.dimensions,this.getDimensionsInfo=t.getDimensionsInfo,this._model=e}return t.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},t.prototype.getRangeInfo=function(){return this._rangeInfo},t.prototype.getModel=function(){return this._model},t.prototype.getRect=function(){return this._rect},t.prototype.getCellWidth=function(){return this._sw},t.prototype.getCellHeight=function(){return this._sh},t.prototype.getOrient=function(){return this._orient},t.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},t.prototype.getDateInfo=function(t){t=xo(t);var e=t.getFullYear(),n=t.getMonth()+1,i=n<10?"0"+n:""+n,r=t.getDate(),o=r<10?"0"+r:""+r,a=t.getDay();return a=Math.abs((a+7-this.getFirstDayOfWeek())%7),{y:e+"",m:i,d:o,day:a,time:t.getTime(),formatedDate:e+"-"+i+"-"+o,date:t}},t.prototype.getNextNDay=function(t,e){return e=e||0,0===e||(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e)),this.getDateInfo(t)},t.prototype.update=function(t,e){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,i=["width","height"],r=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),a="horizontal"===this._orient?[n,7]:[7,n];Z([0,1],(function(t){u(r,t)&&(o[i[t]]=r[t]*a[t])}));var s={width:e.getWidth(),height:e.getHeight()},l=this._rect=zf(o,s);function u(t,e){return null!=t[e]&&"auto"!==t[e]}Z([0,1],(function(t){u(r,t)||(r[t]=l[i[t]]/a[t])})),this._sw=r[0],this._sh=r[1]},t.prototype.dataToPoint=function(t,e){rt(t)&&(t=t[0]),null==e&&(e=!0);var n=this.getDateInfo(t),i=this._rangeInfo,r=n.formatedDate;if(e&&!(n.time>=i.start.time&&n.time<i.end.time+bX))return[NaN,NaN];var o=n.day,a=this._getRangeInfo([i.start.time,r]).nthWeek;return"vertical"===this._orient?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]:[this._rect.x+a*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},t.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},t.prototype.dataToRect=function(t,e){var n=this.dataToPoint(t,e);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]}},t.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,e-1,i):this._getDateByWeeksAndDay(e,n-1,i)},t.prototype.convertToPixel=function(t,e,n){var i=wX(e);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var i=wX(e);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.prototype._initRangeOption=function(){var t,e=this._model.get("range");if(rt(e)&&1===e.length&&(e=e[0]),rt(e))t=e;else{var n=e.toString();if(/^\d{4}$/.test(n)&&(t=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),r=i.date;r.setMonth(r.getMonth()+1);var o=this.getNextNDay(r,-1);t=[i.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}if(!t)return e;var a=this._getRangeInfo(t);return a.start.time>a.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var i=Math.floor(n[1].time/bX)-Math.floor(n[0].time/bX)+1,r=new Date(n[0].time),o=r.getDate(),a=n[1].date.getDate();r.setDate(o+i-1);var s=r.getDate();if(s!==a){var l=r.getTime()-n[1].time>0?1:-1;while((s=r.getDate())!==a&&(r.getTime()-n[1].time)*l>0)i-=l,r.setDate(s-l)}var u=Math.floor((i+n[0].day+6)/7),c=e?1-u:u-1;return e&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:u,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&e<i.fweek||t===i.weeks&&e>i.lweek)return null;var r=7*(t-1)-i.fweek+e,o=new Date(i.start.time);return o.setDate(+i.start.d+r),this.getDateInfo(o)},t.create=function(e,n){var i=[];return e.eachComponent("calendar",(function(r){var o=new t(r,e,n);i.push(o),r.coordinateSystem=o})),e.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])})),i},t.dimensions=["time","value"],t}();function wX(t){var e=t.calendarModel,n=t.seriesModel,i=e?e.coordinateSystem:n?n.coordinateSystem:null;return i}var SX=_X;function MX(t){t.registerComponentModel(gX),t.registerComponentView(xX),t.registerCoordinateSystem("calendar",SX)}var IX=ta(),CX={path:null,compoundPath:null,group:Wr,image:Yl,text:gu},TX=function(t){var e=t.graphic;rt(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])},AX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventAutoZ=!0,n}return v(e,t),e.prototype.mergeOption=function(e,n){var i=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,e,n),this.option.elements=i},e.prototype.optionUpdated=function(t,e){var n=this.option,i=(e?n:t).elements,r=n.elements=e?[]:n.elements,o=[];this._flatten(i,o,null);var a=zo(r,o,"normalMerge"),s=this._elOptionsToUpdate=[];Z(a,(function(t,e){var n=t.newOption;n&&(s.push(n),EX(t,n),RX(r,e,n),NX(r[e],n))}),this);for(var l=r.length-1;l>=0;l--)null==r[l]?r.splice(l,1):delete r[l].$action},e.prototype._flatten=function(t,e,n){Z(t,(function(t){if(t){n&&(t.parentOption=n),e.push(t);var i=t.children;"group"===t.type&&i&&this._flatten(i,e,t),delete t.children}}),this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(Xf),DX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.init=function(){this._elMap=At()},e.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},e.prototype._updateElements=function(t){var e=t.useElOptionsToUpdate();if(e){var n=this._elMap,i=this.group;Z(e,(function(e){var r=Yo(e.id,null),o=null!=r?n.get(r):null,a=Yo(e.parentId,null),s=null!=a?n.get(a):i,l=e.type,u=e.style;"text"===l&&u&&e.hv&&e.hv[1]&&(u.textVerticalAlign=u.textBaseline=u.verticalAlign=u.align=null);var c=e.textContent,h=e.textConfig;if(u&&rW(u,l,!!h,!!c)){var d=oW(u,l,!0);!h&&d.textConfig&&(h=e.textConfig=d.textConfig),!c&&d.textContent&&(c=d.textContent)}var p=PX(e);var f=e.$action||"merge";"merge"===f?o?o.attr(p):kX(r,s,p,n):"replace"===f?(LX(o,n),kX(r,s,p,n)):"remove"===f&&LX(o,n);var g=n.get(r);if(g&&c)if("merge"===f){var v=g.getTextContent();v?v.attr(c):g.setTextContent(new gu(c))}else"replace"===f&&g.setTextContent(new gu(c));if(g){var m=IX(g);m.__ecGraphicWidthOption=e.width,m.__ecGraphicHeightOption=e.height,zX(g,t,e),Wd({el:g,componentModel:t,itemName:g.name,itemTooltipOption:e.tooltip})}}))}},e.prototype._relocate=function(t,e){for(var n=t.option.elements,i=this.group,r=this._elMap,o=e.getWidth(),a=e.getHeight(),s=0;s<n.length;s++){var l=n[s],u=Yo(l.id,null),c=null!=u?r.get(u):null;if(c&&c.isGroup){var h=c.parent,d=h===i,p=IX(c),f=IX(h);p.__ecGraphicWidth=ao(p.__ecGraphicWidthOption,d?o:f.__ecGraphicWidth)||0,p.__ecGraphicHeight=ao(p.__ecGraphicHeightOption,d?a:f.__ecGraphicHeight)||0}}for(s=n.length-1;s>=0;s--){l=n[s],u=Yo(l.id,null),c=null!=u?r.get(u):null;if(c){h=c.parent,f=IX(h);var g=h===i?{width:o,height:a}:{width:f.__ecGraphicWidth,height:f.__ecGraphicHeight};Bf(c,l,g,null,{hv:l.hv,boundingMode:l.bounding})}}},e.prototype._clear=function(){var t=this._elMap;t.each((function(e){LX(e,t)})),this._elMap=At()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(ay);function kX(t,e,n,i){var r=n.type;var o=Lt(CX,r)?CX[r]:fd(r);var a=new o(n);e.add(a),i.set(t,a),IX(a).__ecGraphicId=t}function LX(t,e){var n=t&&t.parent;n&&("group"===t.type&&t.traverse((function(t){LX(t,e)})),e.removeKey(IX(t).__ecGraphicId),n.remove(t))}function PX(t){return t=$({},t),Z(["id","parentId","$action","hv","bounding","textContent"].concat(Pf),(function(e){delete t[e]})),t}function OX(t,e){var n;return Z(e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}function EX(t,e){var n=t.existing;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var i=e.parentOption;i?e.parentId=i.id:n&&(e.parentId=n.parentId)}e.parentOption=null}function RX(t,e,n){var i=$({},n),r=t[e],o=n.$action||"merge";"merge"===o?r?(F(r,i,!0),Hf(r,i,{ignoreSize:!0}),Wf(n,r)):t[e]=i:"replace"===o?t[e]=i:"remove"===o&&r&&(t[e]=null)}function NX(t,e){if(t&&(t.hv=e.hv=[OX(e,["left","right"]),OX(e,["top","bottom"])],"group"===t.type)){var n=t,i=e;null==n.width&&(n.width=i.width=0),null==n.height&&(n.height=i.height=0)}}function zX(t,e,n){var i=vu(t).eventData;t.silent||t.ignore||i||(i=vu(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),i&&(i.info=n.info)}function BX(t){t.registerComponentModel(AX),t.registerComponentView(DX),t.registerPreprocessor(TX)}var VX=["x","y","radius","angle","single"],FX=["cartesian2d","polar","singleAxis"];function HX(t){var e=t.get("coordinateSystem");return j(FX,e)>=0}function $X(t){return t+"Axis"}function WX(t,e){var n,i=At(),r=[],o=At();t.eachComponent({mainType:"dataZoom",query:e},(function(t){o.get(t.uid)||s(t)}));do{n=!1,t.eachComponent("dataZoom",a)}while(n);function a(t){!o.get(t.uid)&&l(t)&&(s(t),n=!0)}function s(t){o.set(t.uid,!0),r.push(t),u(t)}function l(t){var e=!1;return t.eachTargetAxis((function(t,n){var r=i.get(t);r&&r[n]&&(e=!0)})),e}function u(t){t.eachTargetAxis((function(t,e){(i.get(t)||i.set(t,[]))[e]=!0}))}return r}function GX(t){var e=t.ecModel,n={infoList:[],infoMap:At()};return t.eachTargetAxis((function(t,i){var r=e.getComponent($X(t),i);if(r){var o=r.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(r)}}})),n}var jX=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}(),YX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return v(e,t),e.prototype.init=function(t,e,n){var i=XX(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var e=XX(t);F(this.option,t,!0),F(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;Z([["start","startValue"],["end","endValue"]],(function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=n[t[0]]=null)}),this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=At(),n=this._fillSpecifiedTargetAxis(e);n?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each((function(t){t.indexList.length&&(this._noTarget=!1)}),this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return Z(VX,(function(n){var i=this.getReferringComponents($X(n),oa);if(i.specified){e=!0;var r=new jX;Z(i.models,(function(t){r.add(t.componentIndex)})),t.set(n,r)}}),this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,i=!0;if(i){var r="vertical"===e?"y":"x",o=n.findComponents({mainType:r+"Axis"});a(o,r)}if(i){o=n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}});a(o,"single")}function a(e,n){var r=e[0];if(r){var o=new jX;if(o.add(r.componentIndex),t.set(n,o),i=!1,"x"===n||"y"===n){var a=r.getReferringComponents("grid",ra).models[0];a&&Z(e,(function(t){r.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",ra).models[0]&&o.add(t.componentIndex)}))}}}i&&Z(VX,(function(e){if(i){var r=n.findComponents({mainType:$X(e),filter:function(t){return"category"===t.get("type",!0)}});if(r[0]){var o=new jX;o.add(r[0].componentIndex),t.set(e,o),i=!1}}}),this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis((function(e){!t&&(t=e)}),this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");Z([["start","startValue"],["end","endValue"]],(function(i,r){var o=null!=t[i[0]],a=null!=t[i[1]];o&&!a?e[r]="percent":!o&&a?e[r]="value":n?e[r]=n[r]:o&&(e[r]="percent")}))},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis((function(e,n){null==t&&(t=this.ecModel.getComponent($X(e),n))}),this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(n,i){Z(n.indexList,(function(n){t.call(e,i,n)}))}))},e.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent($X(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;Z([["start","startValue"],["end","endValue"]],(function(i){null==t[i[0]]&&null==t[i[1]]||(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])}),this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;Z(["start","startValue","end","endValue"],(function(n){e[n]=t[n]}))},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var r=n[i],o=this._targetAxisInfoMap.get(r),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(r,o.indexList[a]);if(s.hostedBy(this))return s;e||(e=s)}return e},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={zlevel:0,z:4,filterMode:"filter",start:0,end:100},e}(Xf);function XX(t){var e={};return Z(["start","end","startValue","endValue","throttle"],(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}var UX=YX,ZX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.type="dataZoom.select",e}(UX),qX=ZX,KX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.render=function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},e.type="dataZoom",e}(ay),JX=KX,QX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.type="dataZoom.select",e}(JX),tU=QX,eU=Z,nU=lo,iU=function(){function t(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}return t.prototype.hostedBy=function(t){return this._dataZoomModel===t},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries((function(e){if(HX(e)){var n=$X(this._dimName),i=e.getReferringComponents(n,ra).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}}),this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return V(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._dataExtent,i=this.getAxisModel(),r=i.axis.scale,o=this._dataZoomModel.getRangePropMode(),a=[0,100],s=[],l=[];eU(["start","end"],(function(i,u){var c=t[i],h=t[i+"Value"];"percent"===o[u]?(null==c&&(c=a[u]),h=r.parse(oo(c,a,n))):(e=!0,h=null==h?n[u]:r.parse(h),c=oo(h,n,a)),l[u]=h,s[u]=c})),nU(l),nU(s);var u=this._minMaxSpan;function c(t,e,n,i,o){var a=o?"Span":"ValueSpan";Jz(0,t,n,"all",u["min"+a],u["max"+a]);for(var s=0;s<2;s++)e[s]=oo(t[s],n,i,!0),o&&(e[s]=r.parse(e[s]))}return e?c(l,s,n,a,!1):c(s,l,a,n,!0),{valueWindow:l,percentWindow:s}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=rU(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get("filterMode"),o=this._valueWindow;"none"!==r&&eU(i,(function(t){var e=t.getData(),i=e.mapDimensionsAll(n);i.length&&("weakFilter"===r?e.filterSelf((function(t){for(var n,r,a,s=0;s<i.length;s++){var l=e.get(i[s],t),u=!isNaN(l),c=l<o[0],h=l>o[1];if(u&&!c&&!h)return!0;u&&(a=!0),c&&(n=!0),h&&(r=!0)}return a&&n&&r})):eU(i,(function(n){if("empty"===r)t.setData(e=e.map(n,(function(t){return a(t)?t:NaN})));else{var i={};i[n]=o,e.selectRange(i)}})),eU(i,(function(t){e.setApproximateExtent(o,t)})))}))}function a(t){return t>=o[0]&&t<=o[1]}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;eU(["min","max"],(function(i){var r=e.get(i+"Span"),o=e.get(i+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=oo(n[0]+o,n,[0,100],!0):null!=r&&(o=oo(r,[0,100],n,!0)-n[0]),t[i+"Span"]=r,t[i+"ValueSpan"]=o}),this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=ho(n,[0,500]);i=Math.min(i,20);var r=t.axis.scale.rawExtentInfo;0!==e[0]&&r.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==e[1]&&r.setDeterminedMinMax("max",+n[1].toFixed(i)),r.freeze()}},t}();function rU(t,e,n){var i=[1/0,-1/0];eU(n,(function(t){SC(i,t.getData(),e)}));var r=t.getAxisModel(),o=uC(r.axis.scale,r,i).calculate();return[o.min,o.max]}var oU=iU,aU={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,r){var o=t.getComponent($X(i),r);e(i,r,o,n)}))}))}e((function(t,e,n,i){n.__dzAxisProxy=null}));var n=[];e((function(e,i,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new oU(e,i,o,t),n.push(r.__dzAxisProxy))}));var i=At();return Z(n,(function(t){Z(t.getTargetSeriesModels(),(function(t){i.set(t.uid,t)}))})),i},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(e,n){t.getAxisProxy(e,n).reset(t)})),t.eachTargetAxis((function(n,i){t.getAxisProxy(n,i).filterData(t,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}}))}},sU=aU;function lU(t){t.registerAction("dataZoom",(function(t,e){var n=WX(e,t);Z(n,(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))}var uU=!1;function cU(t){uU||(uU=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,sU),lU(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function hU(t){t.registerComponentModel(qX),t.registerComponentView(tU),cU(t)}var dU=function(){function t(){}return t}(),pU={};function fU(t,e){pU[t]=e}function gU(t){return pU[t]}var vU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;Z(this.option.feature,(function(t,n){var i=gU(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),F(t,i.defaultOption))}))},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.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,position:"bottom"}},e}(Xf),mU=vU;function yU(t,e,n){var i=e.getBoxLayoutParams(),r=e.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=zf(i,o,r);Rf(e.get("orient"),t,e.get("itemGap"),a.width,a.height),Bf(t,i,o,r)}function xU(t,e){var n=mf(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),t=new eu({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1}),t}var bU=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e.prototype.render=function(t,e,n,i){var r=this.group;if(r.removeAll(),t.get("show")){var o=+t.get("itemSize"),a=t.get("feature")||{},s=this._features||(this._features={}),l=[];Z(a,(function(t,e){l.push(e)})),new aM(this._featureNames||[],l).add(u).update(u).remove(it(u,null)).execute(),this._featureNames=l,yU(r,t,n),r.add(xU(r.getBoundingRect(),t)),r.eachChild((function(t){var e=t.__title,i=t.ensureState("emphasis"),a=i.textConfig||(i.textConfig={}),s=t.getTextContent(),l=s&&s.states.emphasis;if(l&&!ot(l)&&e){var u=l.style||(l.style={}),c=Mr(e,gu.makeFont(u)),h=t.x+r.x,d=t.y+r.y+o,p=!1;d+c.height>n.getHeight()&&(a.position="top",p=!0);var f=p?-5-c.height:o+8;h+c.width/2>n.getWidth()?(a.position=["100%",f],u.align="right"):h-c.width/2<0&&(a.position=[0,f],u.align="left")}}))}function u(r,o){var u,h=l[r],d=l[o],p=a[h],f=new yp(p,t,t.ecModel);if(i&&null!=i.newTitle&&i.featureName===h&&(p.title=i.newTitle),h&&!d){if(_U(h))u={onclick:f.option.onclick,featureName:h};else{var g=gU(h);if(!g)return;u=new g}s[h]=u}else if(u=s[d],!u)return;u.uid=bp("toolbox-feature"),u.model=f,u.ecModel=e,u.api=n;var v=u instanceof dU;h||!d?!f.get("show")||v&&u.unusable?v&&u.remove&&u.remove(e,n):(c(f,u,h),f.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&("emphasis"===e?Qu:tc)(i[t])},u instanceof dU&&u.render&&u.render(f,e,n,i)):v&&u.dispose&&u.dispose(e,n)}function c(i,a,s){var l,u,c=i.getModel("iconStyle"),h=i.getModel(["emphasis","iconStyle"]),d=a instanceof dU&&a.getIcons?a.getIcons():i.get("icon"),p=i.get("title")||{};"string"===typeof d?(l={},l[s]=d):l=d,"string"===typeof p?(u={},u[s]=p):u=p;var f=i.iconPaths={};Z(l,(function(s,l){var d=Bd(s,{},{x:-o/2,y:-o/2,width:o,height:o});d.setStyle(c.getItemStyle());var p=d.ensureState("emphasis");p.style=h.getItemStyle();var g=new gu({style:{text:u[l],align:h.get("textAlign"),borderRadius:h.get("textBorderRadius"),padding:h.get("textPadding"),fill:null},ignore:!0});d.setTextContent(g),Wd({el:d,componentModel:t,itemName:l,formatterParamsExtra:{title:u[l]}}),d.__title=u[l],d.on("mouseover",(function(){var e=h.getItemStyle(),n="vertical"===t.get("orient")?null==t.get("right")?"right":"left":null==t.get("bottom")?"bottom":"top";g.setStyle({fill:h.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:h.get("textBackgroundColor")}),d.setTextConfig({position:h.get("textPosition")||n}),g.ignore=!t.get("showTitle"),Qu(this)})).on("mouseout",(function(){"emphasis"!==i.get(["iconStatus",l])&&tc(this),g.hide()})),("emphasis"===i.get(["iconStatus",l])?Qu:tc)(d),r.add(d),d.on("click",nt(a.onclick,a,e,n,l)),f[l]=d}))}},e.prototype.updateView=function(t,e,n,i){Z(this._features,(function(t){t instanceof dU&&t.updateView&&t.updateView(t.model,e,n,i)}))},e.prototype.remove=function(t,e){Z(this._features,(function(n){n instanceof dU&&n.remove&&n.remove(t,e)})),this.group.removeAll()},e.prototype.dispose=function(t,e){Z(this._features,(function(n){n instanceof dU&&n.dispose&&n.dispose(t,e)}))},e.type="toolbox",e}(ay);function _U(t){return 0===t.indexOf("my")}var wU=bU,SU=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",r="svg"===e.getZr().painter.getType(),o=r?"svg":n.get("type",!0)||"png",a=e.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if("function"!==typeof MouseEvent||!S.browser.newEdge&&(S.browser.ie||S.browser.edge))if(window.navigator.msSaveOrOpenBlob||r){var s=a.split(","),l=s[0].indexOf("base64")>-1,u=r?decodeURIComponent(s[1]):s[1];l&&(u=window.atob(u));var c=i+"."+o;if(window.navigator.msSaveOrOpenBlob){var h=u.length,d=new Uint8Array(h);while(h--)d[h]=u.charCodeAt(h);var p=new Blob([d]);window.navigator.msSaveOrOpenBlob(p,c)}else{var f=document.createElement("iframe");document.body.appendChild(f);var g=f.contentWindow,v=g.document;v.open("image/svg+xml","replace"),v.write(u),v.close(),g.focus(),v.execCommand("SaveAs",!0,c),document.body.removeChild(f)}}else{var m=n.get("lang"),y='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(m&&m[0]||"")+'" /></body>',x=window.open();x.document.write(y),x.document.title=i}else{var b=document.createElement("a");b.download=i+"."+o,b.target="_blank",b.href=a;var _=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});b.dispatchEvent(_)}},e.getDefaultOption=function(t){var e={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocale(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocale(["toolbox","saveAsImage","lang"])};return e},e}(dU);SU.prototype.unusable=!S.canvasSupported;var MU=SU,IU="__ec_magicType_stack__",CU=[["line","bar"],["stack"]],TU=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return Z(t.get("type"),(function(t){e[t]&&(n[t]=e[t])})),n},e.getDefaultOption=function(t){var e={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocale(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return e},e.prototype.onclick=function(t,e,n){var i=this.model,r=i.get(["seriesIndex",n]);if(AU[n]){var o,a={series:[]},s=function(t){var e=t.subType,r=t.id,o=AU[n](e,r,t,i);o&&(W(o,t.option),a.series.push(o));var s=t.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var u=l.dim,c=u+"Axis",h=t.getReferringComponents(c,ra).models[0],d=h.componentIndex;a[c]=a[c]||[];for(var p=0;p<=d;p++)a[c][d]=a[c][d]||{};a[c][d].boundaryGap="bar"===n}}};Z(CU,(function(t){j(t,n)>=0&&Z(t,(function(t){i.setIconStatus(t,"normal")}))})),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},s);var l=n;"stack"===n&&(o=F({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(l="tiled")),e.dispatchAction({type:"changeMagicType",currentType:l,newOption:a,newTitle:o,featureName:"magicType"})}},e}(dU),AU={line:function(t,e,n,i){if("bar"===t)return F({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(t,e,n,i){if("line"===t)return F({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(t,e,n,i){var r=n.get("stack")===IU;if("line"===t||"bar"===t)return i.setIconStatus("stack",r?"normal":"emphasis"),F({id:e,stack:r?"":IU},i.get(["option","stack"])||{},!0)}};HS({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)}));var DU=TU,kU=new Array(60).join("-"),LU="\t";function PU(t){var e={},n=[],i=[];return t.eachRawSeries((function(t){var r=t.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(t);else{var o=r.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;e[a]||(e[a]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),e[a].series.push(t)}else n.push(t)}})),{seriesGroupByCategoryAxis:e,other:n,meta:i}}function OU(t){var e=[];return Z(t,(function(t,n){var i=t.categoryAxis,r=t.valueAxis,o=r.dim,a=[" "].concat(q(t.series,(function(t){return t.name}))),s=[i.model.getCategories()];Z(t.series,(function(t){var e=t.getRawData();s.push(t.getRawData().mapArray(e.mapDimension(o),(function(t){return t})))}));for(var l=[a.join(LU)],u=0;u<s[0].length;u++){for(var c=[],h=0;h<s.length;h++)c.push(s[h][u]);l.push(c.join(LU))}e.push(l.join("\n"))})),e.join("\n\n"+kU+"\n\n")}function EU(t){return q(t,(function(t){var e=t.getRawData(),n=[t.name],i=[];return e.each(e.dimensions,(function(){for(var t=arguments.length,r=arguments[t-1],o=e.getName(r),a=0;a<t-1;a++)i[a]=arguments[a];n.push((o?o+LU:"")+i.join(LU))})),n.join("\n")})).join("\n\n"+kU+"\n\n")}function RU(t){var e=PU(t);return{value:J([OU(e.seriesGroupByCategoryAxis),EU(e.other)],(function(t){return!!t.replace(/[\n\t\s]/g,"")})).join("\n\n"+kU+"\n\n"),meta:e.meta}}function NU(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function zU(t){var e=t.slice(0,t.indexOf("\n"));if(e.indexOf(LU)>=0)return!0}var BU=new RegExp("["+LU+"]+","g");function VU(t){for(var e=t.split(/\n+/g),n=NU(e.shift()).split(BU),i=[],r=q(n,(function(t){return{name:t,data:[]}})),o=0;o<e.length;o++){var a=NU(e[o]).split(BU);i.push(a.shift());for(var s=0;s<a.length;s++)r[s]&&(r[s].data[o]=a[s])}return{series:r,categories:i}}function FU(t){for(var e=t.split(/\n+/g),n=NU(e.shift()),i=[],r=0;r<e.length;r++){var o=NU(e[r]);if(o){var a=o.split(BU),s="",l=void 0,u=!1;isNaN(a[0])?(u=!0,s=a[0],a=a.slice(1),i[r]={name:s,value:[]},l=i[r].value):l=i[r]=[];for(var c=0;c<a.length;c++)l.push(+a[c]);1===l.length&&(u?i[r].value=l[0]:i[r]=l[0])}}return{name:n,data:i}}function HU(t,e){var n=t.split(new RegExp("\n*"+kU+"\n*","g")),i={series:[]};return Z(n,(function(t,n){if(zU(t)){var r=VU(t),o=e[n],a=o.axisDim+"Axis";o&&(i[a]=i[a]||[],i[a][o.axisIndex]={data:r.categories},i.series=i.series.concat(r.series))}else{r=FU(t);i.series.push(r)}})),i}var $U=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e.prototype.onclick=function(t,e){var n=e.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var r=document.createElement("div");r.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",r.style.backgroundColor=i.get("backgroundColor")||"#fff";var o=document.createElement("h4"),a=i.get("lang")||[];o.innerHTML=a[0]||i.get("title"),o.style.cssText="margin: 10px 20px;",o.style.color=i.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="display:block;width:100%;overflow:auto;";var u=i.get("optionToContent"),c=i.get("contentToOption"),h=RU(t);if("function"===typeof u){var d=u(e.getOption());"string"===typeof d?s.innerHTML=d:dt(d)&&s.appendChild(d)}else s.appendChild(l),l.readOnly=i.get("readOnly"),l.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",l.style.color=i.get("textColor"),l.style.borderColor=i.get("textareaBorderColor"),l.style.backgroundColor=i.get("textareaColor"),l.value=h.value;var p=h.meta,f=document.createElement("div");f.style.cssText="position:absolute;bottom:0;left:0;right:0;";var g="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",v=document.createElement("div"),m=document.createElement("div");g+=";background-color:"+i.get("buttonColor"),g+=";color:"+i.get("buttonTextColor");var y=this;function x(){n.removeChild(r),y._dom=null}Te(v,"click",x),Te(m,"click",(function(){if(null==c&&null!=u||null!=c&&null==u)x();else{var t;try{t="function"===typeof c?c(s,e.getOption()):HU(l.value,p)}catch(n){throw x(),new Error("Data view format error "+n)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),x()}})),v.innerHTML=a[1],m.innerHTML=a[2],m.style.cssText=g,v.style.cssText=g,!i.get("readOnly")&&f.appendChild(m),f.appendChild(v),r.appendChild(o),r.appendChild(s),r.appendChild(f),s.style.height=n.clientHeight-80+"px",n.appendChild(r),this._dom=r},e.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.getDefaultOption=function(t){var e={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:t.getLocale(["toolbox","dataView","title"]),lang:t.getLocale(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return e},e}(dU);function WU(t,e){return q(t,(function(t,n){var i=e&&e[n];if(ut(i)&&!rt(i)){var r=ut(t)&&!rt(t);r||(t={value:t});var o=null!=i.name&&null==t.name;return t=W(t,i),o&&delete t.name,t}return t}))}HS({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(t,e){var n=[];Z(t.newOption.series,(function(t){var i=e.getSeriesByName(t.name)[0];if(i){var r=i.get("data");n.push({name:t.name,data:WU(t.data,r)})}else n.push($({type:"scatter"},t))})),e.mergeOption(W({series:n},t.newOption))}));var GU=$U,jU=Z,YU=ta();function XU(t,e){var n=KU(t);jU(e,(function(e,i){for(var r=n.length-1;r>=0;r--){var o=n[r];if(o[i])break}if(r<0){var a=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(a){var s=a.getPercentRange();n[0][i]={dataZoomId:i,start:s[0],end:s[1]}}}})),n.push(e)}function UU(t){var e=KU(t),n=e[e.length-1];e.length>1&&e.pop();var i={};return jU(n,(function(t,n){for(var r=e.length-1;r>=0;r--)if(t=e[r][n],t){i[n]=t;break}})),i}function ZU(t){YU(t).snapshots=null}function qU(t){return KU(t).length}function KU(t){var e=YU(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var JU=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e.prototype.onclick=function(t,e){ZU(t),e.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var e={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocale(["toolbox","restore","title"])};return e},e}(dU);HS({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));var QU=JU,tZ=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],eZ=function(){function t(t,e,n){var i=this;this._targetInfoList=[];var r=iZ(e,t);Z(rZ,(function(t,e){(!n||!n.include||j(n.include,e)>=0)&&t(r,i._targetInfoList)}))}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,(function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=sZ[t.brushType](0,n,e);t.__rangeOffset={offset:uZ[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}})),t},t.prototype.matchOutputRanges=function(t,e,n){Z(t,(function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&Z(i.coordSyses,(function(i){var r=sZ[t.brushType](1,i,t.range,!0);n(t,r.values,i,e)}))}),this)},t.prototype.setInputRanges=function(t,e){Z(t,(function(t){var n=this.findTargetInfo(t,e);if(t.range=t.range||[],n&&!0!==n){t.panelId=n.panelId;var i=sZ[t.brushType](0,n.coordSys,t.coordRange),r=t.__rangeOffset;t.range=r?uZ[t.brushType](i.values,r.offset,hZ(i.xyMinMax,r.xyMinMax)):i.values}}),this)},t.prototype.makePanelOpts=function(t,e){return q(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:fV(i),isTargetByCursor:vV(i,t,n.coordSysModel),getLinearBrushOtherExtent:gV(i)}}))},t.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&j(i.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=iZ(e,t),r=0;r<n.length;r++){var o=n[r],a=t.panelId;if(a){if(o.panelId===a)return o}else for(var s=0;s<oZ.length;s++)if(oZ[s](i,o))return o}return!0},t}();function nZ(t){return t[0]>t[1]&&t.reverse(),t}function iZ(t,e){return na(t,e,{includeMainTypes:tZ})}var rZ={grid:function(t,e){var n=t.xAxisModels,i=t.yAxisModels,r=t.gridModels,o=At(),a={},s={};(n||i||r)&&(Z(n,(function(t){var e=t.axis.grid.model;o.set(e.id,e),a[e.id]=!0})),Z(i,(function(t){var e=t.axis.grid.model;o.set(e.id,e),s[e.id]=!0})),Z(r,(function(t){o.set(t.id,t),a[t.id]=!0,s[t.id]=!0})),o.each((function(t){var r=t.coordinateSystem,o=[];Z(r.getCartesians(),(function(t,e){(j(n,t.getAxis("x").model)>=0||j(i,t.getAxis("y").model)>=0)&&o.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:aZ.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})})))},geo:function(t,e){Z(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:aZ.geo})}))}},oZ=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,r=t.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],aZ={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(kd(t)),e}},sZ={lineX:it(lZ,0),lineY:it(lZ,1),rect:function(t,e,n,i){var r=t?e.pointToData([n[0][0],n[1][0]],i):e.dataToPoint([n[0][0],n[1][0]],i),o=t?e.pointToData([n[0][1],n[1][1]],i):e.dataToPoint([n[0][1],n[1][1]],i),a=[nZ([r[0],o[0]]),nZ([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n,i){var r=[[1/0,-1/0],[1/0,-1/0]],o=q(n,(function(n){var o=t?e.pointToData(n,i):e.dataToPoint(n,i);return r[0][0]=Math.min(r[0][0],o[0]),r[1][0]=Math.min(r[1][0],o[1]),r[0][1]=Math.max(r[0][1],o[0]),r[1][1]=Math.max(r[1][1],o[1]),o}));return{values:o,xyMinMax:r}}};function lZ(t,e,n,i){var r=n.getAxis(["x","y"][t]),o=nZ(q([0,1],(function(t){return e?r.coordToData(r.toLocalCoord(i[t]),!0):r.toGlobalCoord(r.dataToCoord(i[t]))}))),a=[];return a[t]=o,a[1-t]=[NaN,NaN],{values:o,xyMinMax:a}}var uZ={lineX:it(cZ,0),lineY:it(cZ,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return q(t,(function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]}))}};function cZ(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function hZ(t,e){var n=dZ(t),i=dZ(e),r=[n[0]/i[0],n[1]/i[1]];return isNaN(r[0])&&(r[0]=1),isNaN(r[1])&&(r[1]=1),r}function dZ(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var pZ=eZ,fZ=Z,gZ=Zo("toolbox-dataZoom_"),vZ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e.prototype.render=function(t,e,n,i){this._brushController||(this._brushController=new pV(n.getZr()),this._brushController.on("brush",nt(this._onBrush,this)).mount()),bZ(t,e,this,i,n),xZ(t,e)},e.prototype.onclick=function(t,e,n){mZ[n].call(this)},e.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var e=t.areas;if(t.isEnd&&e.length){var n={},i=this.ecModel;this._brushController.updateCovers([]);var r=new pZ(yZ(this.model),i,{include:["grid"]});r.matchOutputRanges(e,i,(function(t,e,n){if("cartesian2d"===n.type){var i=t.brushType;"rect"===i?(o("x",n,e[0]),o("y",n,e[1])):o({lineX:"x",lineY:"y"}[i],n,e)}})),XU(i,n),this._dispatchZoomAction(n)}function o(t,e,r){var o=e.getAxis(t),s=o.model,l=a(t,s,i),u=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(r=Jz(0,r.slice(),o.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),l&&(n[l.id]={dataZoomId:l.id,startValue:r[0],endValue:r[1]})}function a(t,e,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var r=n.getAxisModel(t,e.componentIndex);r&&(i=n)})),i}},e.prototype._dispatchZoomAction=function(t){var e=[];fZ(t,(function(t,n){e.push(V(t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},e.getDefaultOption=function(t){var e={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocale(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return e},e}(dU),mZ={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(UU(this.ecModel))}};function yZ(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}function xZ(t,e){t.setIconStatus("back",qU(e)>1?"emphasis":"normal")}function bZ(t,e,n,i,r){var o=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(o="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var a=new pZ(yZ(t),e,{include:["grid"]}),s=a.makePanelOpts(r,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!o||!s.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}vg("dataZoom",(function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var i=e.getModel(n),r=[],o=yZ(i),a=na(t,o);return fZ(a.xAxisModels,(function(t){return s(t,"xAxis","xAxisIndex")})),fZ(a.yAxisModels,(function(t){return s(t,"yAxis","yAxisIndex")})),r}function s(t,e,n){var o=t.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:gZ+e+o};a[n]=o,r.push(a)}}));var _Z=vZ;function wZ(t){t.registerComponentModel(mU),t.registerComponentView(wU),fU("saveAsImage",MU),fU("magicType",DU),fU("dataView",GU),fU("dataZoom",_Z),fU("restore",QU),nM(hU)}var SZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.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}},e}(Xf),MZ=SZ;function IZ(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function CZ(t){if(S.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in e)return t[n]}var TZ=CZ(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),AZ=CZ(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function DZ(t,e){if(!t)return e;e=vf(e,!0);var n=t.indexOf(e);return t=-1===n?e:"-"+t.slice(0,n)+"-"+e,t.toLowerCase()}function kZ(t,e){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?e?n[e]:n:null}var LZ=DZ(AZ,"transition"),PZ=DZ(TZ,"transform"),OZ="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(S.transform3dSupported?"will-change:transform;":"");function EZ(t){return t="left"===t?"right":"right"===t?"left":"top"===t?"bottom":"top",t}function RZ(t,e,n){if(!at(n)||"inside"===n)return"";e=Df(e);var i=EZ(n),r=i+":-6px;",o=PZ+":";j(["left","right"],i)>-1?(r+="top:50%",o+="translateY(-50%) rotate("+("left"===i?-225:-45)+"deg)"):(r+="left:50%",o+="translateX(-50%) rotate("+("top"===i?225:45)+"deg)");var a=e+" solid 1px;",s=["position:absolute;width:10px;height:10px;",r+";"+o+";","border-bottom:"+a,"border-right:"+a,"background-color:"+t+";","box-shadow:8px 8px 16px -3px #000;"];return'<div style="'+s.join("")+'"></div>'}function NZ(t,e){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+t/2+"s "+n,r="opacity"+i+",visibility"+i;return e||(i=" "+t+"s "+n,r+=S.transformSupported?","+PZ+i:",left"+i+",top"+i),LZ+":"+r}function zZ(t,e,n){var i=t.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!S.transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=S.transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+PZ+":"+a+";":[["top",0],["left",0],[TZ,a]]}function BZ(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var r=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return r&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+r),Z(["decoration","align"],(function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)})),e.join(";")}function VZ(t,e,n){var i=[],r=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),c=t.getModel("textStyle"),h=Wm(t,"html"),d=l+"px "+u+"px "+a+"px "+s;return i.push("box-shadow:"+d),e&&r&&i.push(NZ(r,n)),o&&(S.canvasSupported?i.push("background-color:"+o):(i.push("background-color:#"+zn(o)),i.push("filter:alpha(opacity=70)"))),Z(["width","color","radius"],(function(e){var n="border-"+e,r=vf(n),o=t.get(r);null!=o&&i.push(n+":"+o+("color"===e?"":"px"))})),i.push(BZ(c)),null!=h&&i.push("padding:"+mf(h).join("px ")+"px"),i.join(";")+";"}function FZ(t,e,n,i,r){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&fe(t,a,document.body,i,r)}else{t[0]=i,t[1]=r;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var HZ=function(){function t(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,S.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var r=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;FZ(this._styleCoord,r,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var a=this;i.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},i.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=r.handler,n=r.painter.getViewportRoot();Ie(n,t,!0),e.dispatch("mousemove",t)}},i.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){var e=this._container,n=kZ(e,"position"),i=e.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative");var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=OZ+VZ(t,!this._firstShow,this._longHide)+zZ(r[0],r[1],!0)+"border-color:"+Df(e)+";"+(t.get("extraCssText")||"")+";pointer-event:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,r){if(null!=t){var o=this.el;if(at(r)&&"item"===n.get("trigger")&&!IZ(n)&&(t+=RZ(n.get("backgroundColor"),i,r)),at(t))o.innerHTML=t;else if(t){o.innerHTML="",rt(t)||(t=[t]);for(var a=0;a<t.length;a++)dt(t[a])&&t[a].parentNode!==o&&o.appendChild(t[a])}}},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return[t.clientWidth,t.clientHeight]},t.prototype.moveTo=function(t,e){var n=this._styleCoord;if(FZ(n,this._zr,this._appendToBody,t,e),null!=n[0]&&null!=n[1]){var i=this.el.style,r=zZ(n[0],n[1]);Z(r,(function(t){i[t[0]]=t[1]}))}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",S.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return t._longHide=!0}),500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(nt(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},t.prototype.getOuterSize=function(){var t=this.el.clientWidth,e=this.el.clientHeight,n=kZ(this.el);return n&&(t+=parseInt(n.borderLeftWidth,10)+parseInt(n.borderRightWidth,10),e+=parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10)),{width:t,height:e}},t}(),$Z=HZ,WZ=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),YZ(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized()},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,i,r){ut(t)&&Dg(""),this.el&&this._zr.remove(this.el);var o=n.getModel("textStyle");this.el=new gu({style:{rich:e.richTextStyles,text:t,lineHeight:22,backgroundColor:n.get("backgroundColor"),borderRadius:n.get("borderRadius"),borderWidth:1,borderColor:i,shadowColor:n.get("shadowColor"),shadowBlur:n.get("shadowBlur"),shadowOffsetX:n.get("shadowOffsetX"),shadowOffsetY:n.get("shadowOffsetY"),textShadowColor:o.get("textShadowColor"),textShadowBlur:o.get("textShadowBlur")||0,textShadowOffsetX:o.get("textShadowOffsetX")||0,textShadowOffsetY:o.get("textShadowOffsetY")||0,fill:n.get(["textStyle","color"]),padding:Wm(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),this._zr.add(this.el);var a=this;this.el.on("mouseover",(function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0})),this.el.on("mouseout",(function(){a._enterable&&a._show&&a.hideLater(a._hideDelay),a._inContent=!1}))},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=jZ(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var i=this._styleCoord;YZ(i,this._zr,t,e),t=i[0],e=i[1];var r=n.style,o=GZ(r.borderWidth||0),a=jZ(r);n.x=t+o+a.left,n.y=e+o+a.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(nt(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.getOuterSize=function(){var t=this.getSize();return{width:t[0],height:t[1]}},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function GZ(t){return Math.max(0,t)}function jZ(t){var e=GZ(t.shadowBlur||0),n=GZ(t.shadowOffsetX||0),i=GZ(t.shadowOffsetY||0);return{left:GZ(e-n),right:GZ(e+n),top:GZ(e-i),bottom:GZ(e+i)}}function YZ(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var XZ=WZ,UZ=nt,ZZ=Z,qZ=ao,KZ=new eu({shape:{x:-1,y:-1,width:2,height:2}}),JZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.init=function(t,e){if(!S.node){var n=t.getComponent("tooltip"),i=n.get("renderMode");this._renderMode=ua(i),this._tooltipContent="richText"===this._renderMode?new XZ(e):new $Z(e.getDom(),e,{appendToBody:n.get("appendToBody",!0)})}},e.prototype.render=function(t,e,n){if(!S.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._alwaysShowContent=t.get("alwaysShowContent");var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,e=t.get("triggerOn");Tj("itemTooltip",this._api,UZ((function(t,n,i){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,i):"leave"===t&&this._hide(i))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!S.node){var r=tq(i,n);this._ticket="";var o=i.dataByCoordSys,a=oq(i,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=KZ;l.x=i.x,l.y=i.y,l.update(),vu(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var u=Nj(i,e),c=u.point[0],h=u.point[1];null!=c&&null!=h&&this._tryShow({offsetX:c,offsetY:h,target:u.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},e.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(tq(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s){var l=s.getData(),u=QZ([l.getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===u.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}}},e.prototype._tryShow=function(t,e){var n=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var r=t.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,t);else if(n){var o,a;this._lastDataByCoordSys=null,Qx(n,(function(t){return null!=vu(t).dataIndex?(o=t,!0):null!=vu(t).tooltipConfig?(a=t,!0):void 0}),!0),o?this._showSeriesItemTooltip(t,o,e):a?this._showComponentItemTooltip(t,a,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=nt(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=QZ([e.tooltipOption],i),a=this._renderMode,s=[],l=Lm("section",{blocks:[],noHeader:!0}),u=[],c=new Gm;ZZ(t,(function(t){ZZ(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value;if(e&&null!=i){var r=dj(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),o=Lm("section",{header:r,noHeader:!St(r),sortBlocks:!0,blocks:[]});l.blocks.push(o),Z(t.seriesDataIndices,(function(l){var h=n.getSeriesByIndex(l.seriesIndex),d=l.dataIndexInside,p=h.getDataParams(d);p.axisDim=t.axisDim,p.axisIndex=t.axisIndex,p.axisType=t.axisType,p.axisId=t.axisId,p.axisValue=mC(e.axis,{value:i}),p.axisValueLabel=r,p.marker=c.makeTooltipMarker("item",Df(p.color),a);var f=tm(h.formatTooltip(d,!0,null));f.markupFragment&&o.blocks.push(f.markupFragment),f.markupText&&u.push(f.markupText),s.push(p)}))}}))})),l.blocks.reverse(),u.reverse();var h=e.position,d=o.get("order"),p=Rm(l,c,a,d,n.get("useUTC"),o.get("textStyle"));p&&u.unshift(p);var f="richText"===a?"\n\n":"<br/>",g=u.join(f);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(o,h,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",r[0],r[1],h,null,c)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=vu(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,c=s.getData(u),h=this._renderMode,d=t.positionDefault,p=QZ([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),f=p.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,u),v=new Gm;g.marker=v.makeTooltipMarker("item",Df(g.color),h);var m=tm(s.formatTooltip(l,!1,u)),y=p.get("order"),x=m.markupFragment?Rm(m.markupFragment,v,h,y,i.get("useUTC"),p.get("textStyle")):m.markupText,b="item_"+s.name+"_"+l;this._showOrMove(p,(function(){this._showTooltipContent(p,x,g,b,t.offsetX,t.offsetY,t.position,t.target,v)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i=vu(e),r=i.tooltipConfig,o=r.option||{};if(at(o)){var a=o;o={content:a,formatter:a}}var s=[o],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&s.push(l),s.push({formatter:o.content});var u=t.positionDefault,c=QZ(s,this._tooltipModel,u?{position:u}:null),h=c.get("content"),d=Math.random()+"",p=new Gm;this._showOrMove(c,(function(){var n=V(c.get("formatterParams")||{});this._showTooltipContent(c,h,n,d,t.offsetX,t.offsetY,t.position,e,p)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent,c=t.get("formatter");a=a||t.get("position");var h=e,d=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor")),p=d.color;if(c&&at(c)){var f=t.ecModel.get("useUTC"),g=rt(n)?n[0]:n,v=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=c,v&&(h=qp(g.axisValue,h,f)),h=Mf(h,n,!0)}else if(ot(c)){var m=UZ((function(e,i){e===this._ticket&&(u.setContent(i,l,t,p,a),this._updatePosition(t,a,r,o,u,n,s))}),this);this._ticket=i,h=c(n,i,m)}u.setContent(h,l,t,p,a),u.show(t,p),this._updatePosition(t,a,r,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||rt(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:rt(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),c=t.get("align"),h=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),ot(e)&&(e=e([n,i],o,r.el,d,{viewSize:[s,l],contentSize:u.slice()})),rt(e))n=qZ(e[0],s),i=qZ(e[1],l);else if(ut(e)){var p=e;p.width=u[0],p.height=u[1];var f=zf(p,{width:s,height:l});n=f.x,i=f.y,c=null,h=null}else if(at(e)&&a){var g=iq(e,d,u);n=g[0],i=g[1]}else{g=eq(n,i,r,s,l,c?null:20,h?null:20);n=g[0],i=g[1]}if(c&&(n-=rq(c)?u[0]/2:"right"===c?u[0]:0),h&&(i-=rq(h)?u[1]/2:"bottom"===h?u[1]:0),IZ(t)){g=nq(n,i,r,s,l);n=g[0],i=g[1]}r.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t){var e=this._lastDataByCoordSys,n=!!e&&e.length===t.length;return n&&ZZ(e,(function(e,i){var r=e.dataByAxis||[],o=t[i]||{},a=o.dataByAxis||[];n=n&&r.length===a.length,n&&ZZ(r,(function(t,e){var i=a[e]||{},r=t.seriesDataIndices||[],o=i.seriesDataIndices||[];n=n&&t.value===i.value&&t.axisType===i.axisType&&t.axisId===i.axisId&&r.length===o.length,n&&ZZ(r,(function(t,e){var i=o[e];n=n&&t.seriesIndex===i.seriesIndex&&t.dataIndex===i.dataIndex}))}))})),this._lastDataByCoordSys=t,!!n},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){S.node||(this._tooltipContent.dispose(),Oj("itemTooltip",e))},e.type="tooltip",e}(ay);function QZ(t,e,n){var i,r=e.ecModel;n?(i=new yp(n,r,r),i=new yp(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof yp&&(a=a.get("tooltip",!0)),at(a)&&(a={formatter:a}),a&&(i=new yp(a,i,r)))}return i}function tq(t,e){return t.dispatchAction||nt(e.dispatchAction,e)}function eq(t,e,n,i,r,o,a){var s=n.getOuterSize(),l=s.width,u=s.height;return null!=o&&(t+l+o+2>i?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}function nq(t,e,n,i,r){var o=n.getOuterSize(),a=o.width,s=o.height;return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function iq(t,e,n){var i=n[0],r=n[1],o=10,a=5,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+c/2-r/2;break;case"top":s=e.x+u/2-i/2,l=e.y-r-o;break;case"bottom":s=e.x+u/2-i/2,l=e.y+c+o;break;case"left":s=e.x-i-o-a,l=e.y+c/2-r/2;break;case"right":s=e.x+u+o+a,l=e.y+c/2-r/2}return[s,l]}function rq(t){return"center"===t||"middle"===t}function oq(t,e,n){var i=ia(t).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o=aa(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s,l=n.getViewOfComponentModel(a);return l.group.traverse((function(e){var n=vu(e).tooltipConfig;if(n&&n.name===t.name)return s=e,!0})),s?{componentMainType:r,componentIndex:a.componentIndex,el:s}:void 0}}}var aq=JZ;function sq(t){nM(Zj),t.registerComponentModel(MZ),t.registerComponentView(aq),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},(function(){})),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},(function(){}))}var lq=["rect","polygon","keep","clear"];function uq(t,e){var n=Po(t?t.brush:[]);if(n.length){var i=[];Z(n,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(i=i.concat(e))}));var r=t&&t.toolbox;rt(r)&&(r=r[0]),r||(r={feature:{}},t.toolbox=[r]);var o=r.feature||(r.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,i),cq(s),e&&!s.length&&s.push.apply(s,lq)}}function cq(t){var e={};Z(t,(function(t){e[t]=1})),t.length=0,Z(e,(function(e,n){t.push(n)}))}var hq=Z;function dq(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function pq(t,e,n){var i={};return hq(e,(function(e){var o=i[e]=r();hq(t[e],(function(t,i){if(aR.isValidType(i)){var r={type:i,visual:t};n&&n(r,e),o[i]=new aR(r),"opacity"===i&&(r=V(r),r.type="colorAlpha",o.__hidden.__alphaForOpacity=new aR(r))}}))})),i;function r(){var t=function(){};t.prototype.__hidden=t.prototype;var e=new t;return e}}function fq(t,e,n){var i;Z(n,(function(t){e.hasOwnProperty(t)&&dq(e[t])&&(i=!0)})),i&&Z(n,(function(n){e.hasOwnProperty(n)&&dq(e[n])?t[n]=V(e[n]):delete t[n]}))}function gq(t,e,n,i,r,o){var a,s={};function l(t){return sx(n,a,t)}function u(t,e){ux(n,a,t,e)}function c(t,c){a=null==o?t:c;var h=n.getRawDataItem(a);if(!h||!1!==h.visualMap)for(var d=i.call(r,t),p=e[d],f=s[d],g=0,v=f.length;g<v;g++){var m=f[g];p[m]&&p[m].applyVisual(t,l,u)}}Z(t,(function(t){var n=aR.prepareVisualTypes(e[t]);s[t]=n})),null==o?n.each(c):n.each([o],c)}function vq(t,e,n,i){var r={};return Z(t,(function(t){var n=aR.prepareVisualTypes(e[t]);r[t]=n})),{progress:function(t,o){var a,s;function l(t){return sx(o,s,t)}function u(t,e){ux(o,s,t,e)}null!=i&&(a=o.getDimension(i));while(null!=(s=t.next())){var c=o.getRawDataItem(s);if(!c||!1!==c.visualMap)for(var h=null!=i?o.get(a,s):s,d=n(h),p=e[d],f=r[d],g=0,v=f.length;g<v;g++){var m=f[g];p[m]&&p[m].applyVisual(h,l,u)}}}}}function mq(t){var e=t.brushType,n={point:function(i){return yq[e].point(i,n,t)},rect:function(i){return yq[e].rect(i,n,t)}};return n}var yq={lineX:xq(0),lineY:xq(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&k_(n.range,t[0],t[1])},rect:function(t,e,n){var i=n.range;if(!t||i.length<=1)return!1;var r=t.x,o=t.y,a=t.width,s=t.height,l=i[0];return!!(k_(i,r,o)||k_(i,r+a,o)||k_(i,r,o+s)||k_(i,r+a,o+s)||mr.create(t).contain(l[0],l[1])||Vd(r,o,r+a,o,i)||Vd(r,o,r,o+s,i)||Vd(r+a,o,r+a,o+s,i)||Vd(r,o+s,r+a,o+s,i))||void 0}}};function xq(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,i){if(e){var r=i.range,o=e[t];return bq(o,r)}},rect:function(i,r,o){if(i){var a=o.range,s=[i[e[t]],i[e[t]]+i[n[t]]];return s[1]<s[0]&&s.reverse(),bq(s[0],a)||bq(s[1],a)||bq(a[0],s)||bq(a[1],s)}}}}function bq(t,e){return e[0]<=t&&t<=e[1]}var _q=["inBrush","outOfBrush"],wq="__ecBrushSelect",Sq="__ecInBrushSelectEvent";function Mq(t){t.eachComponent({mainType:"brush"},(function(e){var n=e.brushTargetManager=new pZ(e.option,t);n.setInputRanges(e.areas,t)}))}function Iq(t,e,n){var i,r,o=[];t.eachComponent({mainType:"brush"},(function(t){n&&"takeGlobalCursor"===n.type&&t.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),Mq(t),t.eachComponent({mainType:"brush"},(function(e,n){var a={brushId:e.id,brushIndex:n,brushName:e.name,areas:V(e.areas),selected:[]};o.push(a);var s=e.option,l=s.brushLink,u=[],c=[],h=[],d=!1;n||(i=s.throttleType,r=s.throttleDelay);var p=q(e.areas,(function(t){var e=kq[t.brushType],n=W({boundingRect:e?e(t):void 0},t);return n.selectors=mq(n),n})),f=pq(e.option,_q,(function(t){t.mappingMethod="fixed"}));function g(t){return"all"===l||!!u[t]}function v(t){return!!t.length}function m(t,e){var n=t.coordinateSystem;d=d||n.hasAxisBrushed(),g(e)&&n.eachActiveState(t.getData(),(function(t,e){"active"===t&&(c[e]=1)}))}function y(n,i,r){if(n.brushSelector&&!Dq(e,i)&&(Z(p,(function(i){e.brushTargetManager.controlSeries(i,n,t)&&r.push(i),d=d||v(r)})),g(i)&&v(r))){var o=n.getData();o.each((function(t){Aq(n,r,o,t)&&(c[t]=1)}))}}rt(l)&&Z(l,(function(t){u[t]=1})),t.eachSeries((function(t,e){var n=h[e]=[];"parallel"===t.subType?m(t,e):y(t,e,n)})),t.eachSeries((function(t,e){var n={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};a.selected.push(n);var i=h[e],r=t.getData(),o=g(e)?function(t){return c[t]?(n.dataIndex.push(r.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(e){return Aq(t,i,r,e)?(n.dataIndex.push(r.getRawIndex(e)),"inBrush"):"outOfBrush"};(g(e)?d:v(i))&&gq(_q,f,r,o)}))})),Cq(e,i,r,o,n)}function Cq(t,e,n,i,r){if(r){var o=t.getZr();if(!o[Sq]){o[wq]||(o[wq]=Tq);var a=_y(o,wq,n,e);a(t,i)}}}function Tq(t,e){if(!t.isDisposed()){var n=t.getZr();n[Sq]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[Sq]=!1}}function Aq(t,e,n,i){for(var r=0,o=e.length;r<o;r++){var a=e[r];if(t.brushSelector(i,n,a.selectors,a))return!0}}function Dq(t,e){var n=t.option.seriesIndex;return null!=n&&"all"!==n&&(rt(n)?j(n,e)<0:e!==n)}var kq={rect:function(t){return Lq(t.range)},polygon:function(t){for(var e,n=t.range,i=0,r=n.length;i<r;i++){e=e||[[1/0,-1/0],[1/0,-1/0]];var o=n[i];o[0]<e[0][0]&&(e[0][0]=o[0]),o[0]>e[0][1]&&(e[0][1]=o[0]),o[1]<e[1][0]&&(e[1][0]=o[1]),o[1]>e[1][1]&&(e[1][1]=o[1])}return e&&Lq(e)}};function Lq(t){return new mr(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var Pq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new pV(e.getZr())).on("brush",nt(this._onBrush,this)).mount()},e.prototype.render=function(t,e,n,i){this.model=t,this._updateController(t,e,n,i)},e.prototype.updateTransform=function(t,e,n,i){Mq(e),this._updateController(t,e,n,i)},e.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},e.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},e.prototype._updateController=function(t,e,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:V(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:V(n),$from:e})},e.type="brush",e}(ay),Oq=Pq,Eq="#ddd",Rq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return v(e,t),e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&fq(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:Eq},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=q(t,(function(t){return Nq(this.option,t)}),this))},e.prototype.setBrushOption=function(t){this.brushOption=Nq(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(Xf);function Nq(t,e){return F({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new yp(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var zq=Rq,Bq=["rect","polygon","lineX","lineY","keep","clear"],Vq=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e.prototype.render=function(t,e,n){var i,r,o;e.eachComponent({mainType:"brush"},(function(t){i=t.brushType,r=t.brushOption.brushMode||"single",o=o||!!t.areas.length})),this._brushType=i,this._brushMode=r,Z(t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===r:"clear"===e?o:e===i)?"emphasis":"normal")}))},e.prototype.updateView=function(t,e,n){this.render(t,e,n)},e.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return Z(t.get("type",!0),(function(t){e[t]&&(n[t]=e[t])})),n},e.prototype.onclick=function(t,e,n){var i=this._brushType,r=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},e.getDefaultOption=function(t){var e={show:!0,type:Bq.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocale(["toolbox","brush","title"])};return e},e}(dU),Fq=Vq;function Hq(t){t.registerComponentView(Oq),t.registerComponentModel(zq),t.registerPreprocessor(uq),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,Iq),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(t,e){e.eachComponent({mainType:"brush",query:t},(function(e){e.setAreas(t.areas)}))})),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},(function(){})),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},(function(){})),fU("brush",Fq)}var $q=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return v(e,t),e.type="title",e.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"}},e}(Xf),Wq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=yt(t.get("textBaseline"),t.get("textVerticalAlign")),l=new gu({style:Zd(r,{text:t.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=t.get("subtext"),h=new gu({style:Zd(o,{text:c,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),p=t.get("sublink"),f=t.get("triggerEvent",!0);l.silent=!d&&!f,h.silent=!p&&!f,d&&l.on("click",(function(){kf(d,"_"+t.get("target"))})),p&&h.on("click",(function(){kf(p,"_"+t.get("subtarget"))})),vu(l).eventData=vu(h).eventData=f?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(l),c&&i.add(h);var g=i.getBoundingRect(),v=t.getBoxLayoutParams();v.width=g.width,v.height=g.height;var m=zf(v,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||(a=t.get("left")||t.get("right"),"middle"===a&&(a="center"),"right"===a?m.x+=m.width:"center"===a&&(m.x+=m.width/2)),s||(s=t.get("top")||t.get("bottom"),"center"===s&&(s="middle"),"bottom"===s?m.y+=m.height:"middle"===s&&(m.y+=m.height/2),s=s||"top"),i.x=m.x,i.y=m.y,i.markRedraw();var y={align:a,verticalAlign:s};l.setStyle(y),h.setStyle(y),g=i.getBoundingRect();var x=m.margin,b=t.getItemStyle(["color","opacity"]);b.fill=t.get("backgroundColor");var _=new eu({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:t.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});i.add(_)}},e.type="title",e}(ay);function Gq(t){t.registerComponentModel($q),t.registerComponentView(Wq)}var jq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return v(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,n=e.data||[],i=e.axisType,r=this._names=[];"category"===i?(t=[],Z(n,(function(e,n){var i,o=Yo(Ro(e),"");ut(e)?(i=V(e),i.value=n):i=n,t.push(i),r.push(o)}))):t=n;var o={category:"ordinal",time:"time",value:"number"}[i]||"number",a=this._data=new FM([{name:"value",type:o}],this);a.initData(t,r)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.defaultOption={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:[]},e}(Xf),Yq=jq,Xq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.type="timeline.slider",e.defaultOption=Sp(Yq.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(Yq);X(Xq,Qv.prototype);var Uq=Xq,Zq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.type="timeline",e}(ay),qq=Zq,Kq=function(t){function e(e,n,i,r){var o=t.call(this,e,n,i)||this;return o.type=r||"value",o}return v(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(qC),Jq=Kq,Qq=Math.PI,tK=ta(),eK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,n){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),r=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(i,t);t.formatTooltip=function(t){var e=a.scale.getLabel({value:t});return Lm("nameValue",{noName:!0,value:e})},Z(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](i,r,a,t)}),this),this._renderAxisLabel(i,o,a,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,e){var n,i=t.get(["label","position"]),r=t.get("orient"),o=iK(t,e);n=null==i||"auto"===i?"horizontal"===r?o.y+o.height/2<e.getHeight()/2?"-":"+":o.x+o.width/2<e.getWidth()/2?"+":"-":at(i)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[r][i]:i;var a,s,l,u={horizontal:"center",vertical:n>=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:Qq/2},d="vertical"===r?o.height:o.width,p=t.getModel("controlStyle"),f=p.get("show",!0),g=f?p.get("itemSize"):0,v=f?p.get("itemGap"):0,m=g+v,y=t.get(["label","rotate"])||0;y=y*Qq/180;var x=p.get("position",!0),b=f&&p.get("showPlayBtn",!0),_=f&&p.get("showPrevBtn",!0),w=f&&p.get("showNextBtn",!0),S=0,M=d;"left"===x||"bottom"===x?(b&&(a=[0,0],S+=m),_&&(s=[S,0],S+=m),w&&(l=[M-g,0],M-=m)):(b&&(a=[M-g,0],M-=m),_&&(s=[0,0],S+=m),w&&(l=[M-g,0],M-=m));var I=[S,M];return t.get("inverse")&&I.reverse(),{viewRect:o,mainLength:d,orient:r,rotation:h[r],labelRotation:y,labelPosOpt:n,labelAlign:t.get(["label","align"])||u[r],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||c[r],playPosition:a,prevBtnPosition:s,nextBtnPosition:l,axisExtent:I,controlSize:g,controlGap:v}},e.prototype._position=function(t,e){var n=this._mainGroup,i=this._labelGroup,r=t.viewRect;if("vertical"===t.orient){var o=Fi(),a=r.x,s=r.y+r.height;Gi(o,o,[-a,-s]),ji(o,o,-Qq/2),Gi(o,o,[a,s]),r=r.clone(),r.applyTransform(o)}var l=v(r),u=v(n.getBoundingRect()),c=v(i.getBoundingRect()),h=[n.x,n.y],d=[i.x,i.y];d[0]=h[0]=l[0][0];var p=t.labelPosOpt;if(null==p||at(p)){var f="+"===p?0:1;m(h,u,l,1,f),m(d,c,l,1,1-f)}else{f=p>=0?0:1;m(h,u,l,1,f),d[1]=h[1]+p}function g(t){t.originX=l[0][0]-t.x,t.originY=l[1][0]-t.y}function v(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function m(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}n.setPosition(h),i.setPosition(d),n.rotation=i.rotation=t.rotation,g(n),g(i)},e.prototype._createAxis=function(t,e){var n=e.getData(),i=e.get("axisType"),r=nK(e,i);r.getTicks=function(){return n.mapArray(["value"],(function(t){return{value:t}}))};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.niceTicks();var a=new Jq("value",r,t.axisExtent,i);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new Wr;return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,n,i){var r=n.getExtent();if(i.get(["lineStyle","show"])){var o=new Rh({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:$({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(o);var a=this._progressLine=new Rh({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:W({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(a)}},e.prototype._renderAxisTick=function(t,e,n,i){var r=this,o=i.getData(),a=n.scale.getTicks();this._tickSymbols=[],Z(a,(function(t){var a=n.dataToCoord(t.value),s=o.getItemModel(t.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),h={x:a,y:0,onclick:nt(r._changeTimeline,r,t.value)},d=oK(s,l,e,h);d.ensureState("emphasis").style=u.getItemStyle(),d.ensureState("progress").style=c.getItemStyle(),vc(d);var p=vu(d);s.get("tooltip")?(p.dataIndex=t.value,p.dataModel=i):p.dataIndex=p.dataModel=null,r._tickSymbols.push(d)}))},e.prototype._renderAxisLabel=function(t,e,n,i){var r=this,o=n.getLabelModel();if(o.get("show")){var a=i.getData(),s=n.getViewLabels();this._tickLabels=[],Z(s,(function(i){var o=i.tickValue,s=a.getItemModel(o),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),c=s.getModel(["progress","label"]),h=n.dataToCoord(i.tickValue),d=new gu({x:h,y:0,rotation:t.labelRotation-t.rotation,onclick:nt(r._changeTimeline,r,o),silent:!1,style:Zd(l,{text:i.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});d.ensureState("emphasis").style=Zd(u),d.ensureState("progress").style=Zd(c),e.add(d),vc(d),tK(d).dataIndex=o,r._tickLabels.push(d)}))}},e.prototype._renderControl=function(t,e,n,i){var r=t.controlSize,o=t.rotation,a=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),u=i.get("inverse",!0);function c(t,n,l,u){if(t){var c=Ar(yt(i.get(["controlStyle",n+"BtnSize"]),r),r),h=[0,-c/2,c,c],d=rK(i,n+"Icon",h,{x:t[0],y:t[1],originX:r/2,originY:0,rotation:u?-o:0,rectHover:!0,style:a,onclick:l});d.ensureState("emphasis").style=s,e.add(d),vc(d)}}c(t.nextBtnPosition,"next",nt(this._changeTimeline,this,u?"-":"+")),c(t.prevBtnPosition,"prev",nt(this._changeTimeline,this,u?"+":"-")),c(t.playPosition,l?"stop":"play",nt(this._handlePlayClick,this,!l),!0)},e.prototype._renderCurrentPointer=function(t,e,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=nt(s._handlePointerDrag,s),t.ondragend=nt(s._handlePointerDragend,s),aK(t,s._progressLine,o,n,i,!0)},onUpdate:function(t){aK(t,s._progressLine,o,n,i)}};this._currentPointer=oK(a,a,this._mainGroup,{},this._currentPointer,l)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],i=this._axis,r=lo(i.getExtent().slice());n>r[1]&&(n=r[1]),n<r[0]&&(n=r[0]),this._currentPointer.x=n,this._currentPointer.markRedraw(),this._progressLine.shape.x2=n,this._progressLine.dirty();var o=this._findNearestTick(n),a=this.model;(e||o!==a.getCurrentIndex()&&a.get("realtime"))&&this._changeTimeline(o)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var e=t.model;t._changeTimeline(e.getCurrentIndex()+(e.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var e=this._mainGroup.getLocalTransform();return Ld(t,e,!0)},e.prototype._findNearestTick=function(t){var e,n=this.model.getData(),i=1/0,r=this._axis;return n.each(["value"],(function(n,o){var a=r.dataToCoord(n),s=Math.abs(a-t);s<i&&(i=s,e=o)})),e},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),e=this._tickSymbols,n=this._tickLabels;if(e)for(var i=0;i<e.length;i++)e&&e[i]&&e[i].toggleState("progress",i<t);if(n)for(i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",tK(n[i]).dataIndex<=t)},e.type="timeline.slider",e}(qq);function nK(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new mI({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new UI({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new bI}}function iK(t,e){return zf(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}function rK(t,e,n,i){var r=i.style,o=Bd(t.get(["controlStyle",e]),i||{},new mr(n[0],n[1],n[2],n[3]));return r&&o.setStyle(r),o}function oK(t,e,n,i,r,o){var a=e.get("color");if(r)r.setColor(a),n.add(r),o&&o.onUpdate(r);else{var s=t.get("symbol");r=db(s,-1,-1,2,2,a),r.setStyle("strokeNoScale",!0),n.add(r),o&&o.onCreate(r)}var l=e.getItemStyle(["color"]);r.setStyle(l),i=F({rectHover:!0,z2:100},i,!0);var u=t.get("symbolSize");u=u instanceof Array?u.slice():[+u,+u],i.scaleX=u[0]/2,i.scaleY=u[1]/2;var c=t.get("symbolOffset");c&&(i.x=i.x||0,i.y=i.y||0,i.x+=ao(c[0],u[0]),i.y+=ao(c[1],u[1]));var h=t.get("symbolRotate");return i.rotation=(h||0)*Math.PI/180||0,r.attr(i),r.updateTransform(),r}function aK(t,e,n,i,r,o){if(!t.dragging){var a=r.getModel("checkpointStyle"),s=i.dataToCoord(r.getData().get("value",n));if(o||!a.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}var sK=eK;function lK(t){t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(t,e){var n=e.getComponent("timeline");return n&&null!=t.currentIndex&&(n.setCurrentIndex(t.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.setPlayState(!1)),e.resetOption("timeline",{replaceMerge:n.get("replaceMerge",!0)}),W({currentIndex:n.option.currentIndex},t)})),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(t,e){var n=e.getComponent("timeline");n&&null!=t.playState&&n.setPlayState(t.playState)}))}function uK(t){var e=t&&t.timeline;rt(e)||(e=e?[e]:[]),Z(e,(function(t){t&&cK(t)}))}function cK(t){var e=t.type,n={number:"value",time:"time"};if(n[e]&&(t.axisType=n[e],delete t.type),hK(t),dK(t,"controlPosition")){var i=t.controlStyle||(t.controlStyle={});dK(i,"position")||(i.position=t.controlPosition),"none"!==i.position||dK(i,"show")||(i.show=!1,delete i.position),delete t.controlPosition}Z(t.data||[],(function(t){ut(t)&&!rt(t)&&(!dK(t,"value")&&dK(t,"name")&&(t.value=t.name),hK(t))}))}function hK(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),i=t.label||t.label||{},r=i.normal||(i.normal={}),o={normal:1,emphasis:1};Z(i,(function(t,e){o[e]||dK(r,e)||(r[e]=t)})),n.label&&!dK(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function dK(t,e){return t.hasOwnProperty(e)}function pK(t){t.registerComponentModel(Uq),t.registerComponentView(sK),t.registerSubTypeDefaulter("timeline",(function(){return"slider"})),lK(t),t.registerPreprocessor(uK)}function fK(t,e){if(!t)return!1;for(var n=rt(t)?t:[t],i=0;i<n.length;i++)if(n[i]&&n[i][e])return!0;return!1}function gK(t){Oo(t,"label",["show"])}var vK=ta(),mK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.createdBySelf=!1,n}return v(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(S.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},e.prototype._mergeOption=function(t,e,n,i){var r=this.mainType;n||e.eachSeries((function(t){var n=t.get(this.mainType,!0),o=vK(t)[r];n&&n.data?(o?o._mergeOption(n,e,!0):(i&&gK(n),Z(n.data,(function(t){t instanceof Array?(gK(t[0]),gK(t[1])):gK(t)})),o=this.createMarkerModelFromSeries(n,this,e),$(o,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),o.__hostSeries=t),vK(t)[r]=o):vK(t)[r]=null}),this)},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t),o=i.getName(t);return Lm("section",{header:this.name,blocks:[Lm("nameValue",{name:o,value:r,noName:!o,noValue:null==r})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.getMarkerModelFromSeries=function(t,e){return vK(t)[e]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(Xf);X(mK,Qv.prototype);var yK=mK,xK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markPoint",e.defaultOption={zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(yK),bK=xK;function _K(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function wK(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function SK(t,e,n,i,r,o){var a=[],s=KM(e,i),l=s?e.getCalculationInfo("stackResultDimension"):i,u=kK(e,l,t),c=e.indicesOfNearest(l,u)[0];a[r]=e.get(n,c),a[o]=e.get(l,c);var h=e.get(i,c),d=uo(e.get(i,c));return d=Math.min(d,20),d>=0&&(a[o]=+a[o].toFixed(d)),[a,h]}var MK={min:it(SK,"min"),max:it(SK,"max"),average:it(SK,"average"),median:it(SK,"median")};function IK(t,e){var n=t.getData(),i=t.coordinateSystem;if(e&&!wK(e)&&!rt(e.coord)&&i){var r=i.dimensions,o=CK(e,n,i,t);if(e=V(e),e.type&&MK[e.type]&&o.baseAxis&&o.valueAxis){var a=j(r,o.baseAxis.dim),s=j(r,o.valueAxis.dim),l=MK[e.type](n,o.baseDataDim,o.valueDataDim,a,s);e.coord=l[0],e.value=l[1]}else{for(var u=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],c=0;c<2;c++)MK[u[c]]&&(u[c]=kK(n,n.mapDimension(r[c]),u[c]));e.coord=u}}return e}function CK(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(TK(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}function TK(t,e){var n=t.getData(),i=n.dimensions;e=n.getDimension(e);for(var r=0;r<i.length;r++){var o=n.getDimensionInfo(i[r]);if(o.name===e)return o.coordDim}}function AK(t,e){return!(t&&t.containData&&e.coord&&!_K(e))||t.containData(e.coord)}function DK(t,e,n,i){return i<2?t.coord&&t.coord[i]:t.value}function kK(t,e,n){if("average"===n){var i=0,r=0;return t.each(e,(function(t,e){isNaN(t)||(i+=t,r++)})),i/r}return"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}var LK=ta(),PK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.init=function(){this.markerGroupMap=At()},e.prototype.render=function(t,e,n){var i=this,r=this.markerGroupMap;r.each((function(t){LK(t).keep=!1})),e.eachSeries((function(t){var r=yK.getMarkerModelFromSeries(t,i.type);r&&i.renderSeries(t,r,e,n)})),r.each((function(t){!LK(t).keep&&i.group.remove(t.group)}))},e.prototype.markKeep=function(t){LK(t).keep=!0},e.prototype.blurSeries=function(t){var e=this;Z(t,(function(t){var n=yK.getMarkerModelFromSeries(t,e.type);if(n){var i=n.getData();i.eachItemGraphicEl((function(t){t&&ec(t)}))}}))},e.type="marker",e}(ay),OK=PK;function EK(t,e,n){var i=e.coordinateSystem;t.each((function(r){var o,a=t.getItemModel(r),s=ao(a.get("x"),n.getWidth()),l=ao(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,r));else if(i){var u=t.get(i.dimensions[0],r),c=t.get(i.dimensions[1],r);o=i.dataToPoint([u,c])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(r,o)}))}var RK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=yK.getMarkerModelFromSeries(t,"markPoint");e&&(EK(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new NA),u=NK(r,t,e);e.setData(u),EK(e.getData(),t,i),u.each((function(t){var n=u.getItemModel(t),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate");if(ot(i)||ot(r)||ot(o)){var s=e.getRawValue(t),l=e.getDataParams(t);ot(i)&&(i=i(s,l)),ot(r)&&(r=r(s,l)),ot(o)&&(o=o(s,l))}var c=n.getModel("itemStyle").getItemStyle(),h=lx(a,"color");c.fill||(c.fill=h),u.setItemVisual(t,{symbol:i,symbolSize:r,symbolRotate:o,style:c})})),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl((function(t){t.traverse((function(t){vu(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(OK);function NK(t,e,n){var i;i=t?q(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return W({name:t},n)})):[{name:"value",type:"float"}];var r=new FM(i,n),o=q(n.get("data"),it(IK,e));return t&&(o=J(o,it(AK,t))),r.initData(o,null,t?DK:function(t){return t.value}),r}var zK=RK;function BK(t){t.registerComponentModel(bK),t.registerComponentView(zK),t.registerPreprocessor((function(t){fK(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})}))}var VK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markLine",e.defaultOption={zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(yK),FK=VK,HK=ta(),$K=function(t,e,n,i){var r,o=t.getData();if(rt(i))r=i;else{var a=i.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=i.xAxis||null!=i.yAxis){var s=void 0,l=void 0;if(null!=i.yAxis||null!=i.xAxis)s=e.getAxis(null!=i.yAxis?"y":"x"),l=mt(i.yAxis,i.xAxis);else{var u=CK(i,o,e,t);s=u.valueAxis;var c=JM(o,u.valueDataDim);l=kK(o,c,a)}var h="x"===s.dim?0:1,d=1-h,p=V(i),f={coord:[]};p.type=null,p.coord=[],p.coord[d]=-1/0,f.coord[d]=1/0;var g=n.get("precision");g>=0&&"number"===typeof l&&(l=+l.toFixed(Math.min(g,20))),p.coord[h]=f.coord[h]=l,r=[p,f,{type:a,valueIndex:i.valueIndex,value:l}]}else r=[]}var v=[IK(t,r[0]),IK(t,r[1]),$({},r[2])];return v[2].type=v[2].type||null,F(v[2],v[0]),F(v[2],v[1]),v};function WK(t){return!isNaN(t)&&!isFinite(t)}function GK(t,e,n,i){var r=1-t,o=i.dimensions[t];return WK(e[r])&&WK(n[r])&&e[t]===n[t]&&i.getAxis(o).containData(e[t])}function jK(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(GK(1,n,i,t)||GK(0,n,i,t)))return!0}return AK(t,e[0])&&AK(t,e[1])}function YK(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=ao(s.get("x"),r.getWidth()),u=ao(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=a.dimensions,h=t.get(c[0],e),d=t.get(c[1],e);o=a.dataToPoint([h,d])}if(nD(a,"cartesian2d")){var p=a.getAxis("x"),f=a.getAxis("y");c=a.dimensions;WK(t.get(c[0],e))?o[0]=p.toGlobalCoord(p.getExtent()[n?0:1]):WK(t.get(c[1],e))&&(o[1]=f.toGlobalCoord(f.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];t.setItemLayout(e,o)}var XK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=yK.getMarkerModelFromSeries(t,"markLine");if(e){var i=e.getData(),r=HK(e).from,o=HK(e).to;r.each((function(e){YK(r,e,!0,t,n),YK(o,e,!1,t,n)})),i.each((function(t){i.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new ON);this.group.add(l.group);var u=UK(r,t,e),c=u.from,h=u.to,d=u.line;HK(e).from=c,HK(e).to=h,e.setData(d);var p=e.get("symbol"),f=e.get("symbolSize"),g=e.get("symbolRotate"),v=e.get("symbolOffset");function m(e,n,r){var o=e.getItemModel(n);YK(e,n,r,t,i);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=lx(a,"color")),e.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:yt(o.get("symbolOffset"),v[r?0:1]),symbolRotate:yt(o.get("symbolRotate",!0),g[r?0:1]),symbolSize:yt(o.get("symbolSize"),f[r?0:1]),symbol:yt(o.get("symbol",!0),p[r?0:1]),style:s})}rt(p)||(p=[p,p]),rt(f)||(f=[f,f]),rt(g)||(g=[g,g]),rt(v)||(v=[v,v]),u.from.each((function(t){m(c,t,!0),m(h,t,!1)})),d.each((function(t){var e=d.getItemModel(t).getModel("lineStyle").getLineStyle();d.setItemLayout(t,[c.getItemLayout(t),h.getItemLayout(t)]),null==e.stroke&&(e.stroke=c.getItemVisual(t,"style").fill),d.setItemVisual(t,{fromSymbolKeepAspect:c.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(t,"symbolOffset"),fromSymbolRotate:c.getItemVisual(t,"symbolRotate"),fromSymbolSize:c.getItemVisual(t,"symbolSize"),fromSymbol:c.getItemVisual(t,"symbol"),toSymbolKeepAspect:h.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(t,"symbolOffset"),toSymbolRotate:h.getItemVisual(t,"symbolRotate"),toSymbolSize:h.getItemVisual(t,"symbolSize"),toSymbol:h.getItemVisual(t,"symbol"),style:e})})),l.updateData(d),u.line.eachItemGraphicEl((function(t,n){t.traverse((function(t){vu(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(OK);function UK(t,e,n){var i;i=t?q(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return W({name:t},n)})):[{name:"value",type:"float"}];var r=new FM(i,n),o=new FM(i,n),a=new FM([],n),s=q(n.get("data"),it($K,e,t,n));t&&(s=J(s,it(jK,t)));var l=t?DK:function(t){return t.value};return r.initData(q(s,(function(t){return t[0]})),null,l),o.initData(q(s,(function(t){return t[1]})),null,l),a.initData(q(s,(function(t){return t[2]}))),a.hasItemOption=!0,{from:r,to:o,line:a}}var ZK=XK;function qK(t){t.registerComponentModel(FK),t.registerComponentView(ZK),t.registerPreprocessor((function(t){fK(t.series,"markLine")&&(t.markLine=t.markLine||{})}))}var KK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markArea",e.defaultOption={zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(yK),JK=KK,QK=ta(),tJ=function(t,e,n,i){var r=IK(t,i[0]),o=IK(t,i[1]),a=r.coord,s=o.coord;a[0]=mt(a[0],-1/0),a[1]=mt(a[1],-1/0),s[0]=mt(s[0],1/0),s[1]=mt(s[1],1/0);var l=H([{},r,o]);return l.coord=[r.coord,o.coord],l.x0=r.x,l.y0=r.y,l.x1=o.x,l.y1=o.y,l};function eJ(t){return!isNaN(t)&&!isFinite(t)}function nJ(t,e,n,i){var r=1-t;return eJ(e[r])&&eJ(n[r])}function iJ(t,e){var n=e.coord[0],i=e.coord[1];return!!(nD(t,"cartesian2d")&&n&&i&&(nJ(1,n,i,t)||nJ(0,n,i,t)))||(AK(t,{coord:n,x:e.x0,y:e.y0})||AK(t,{coord:i,x:e.x1,y:e.y1}))}function rJ(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=ao(s.get(n[0]),r.getWidth()),u=ao(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(n,e));else{var c=t.get(n[0],e),h=t.get(n[1],e),d=[c,h];a.clampData&&a.clampData(d,d),o=a.dataToPoint(d,!0)}if(nD(a,"cartesian2d")){var p=a.getAxis("x"),f=a.getAxis("y");c=t.get(n[0],e),h=t.get(n[1],e);eJ(c)?o[0]=p.toGlobalCoord(p.getExtent()["x0"===n[0]?0:1]):eJ(h)&&(o[1]=f.toGlobalCoord(f.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var oJ=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],aJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=yK.getMarkerModelFromSeries(t,"markArea");if(e){var i=e.getData();i.each((function(e){var r=q(oJ,(function(r){return rJ(i,e,r,t,n)}));i.setItemLayout(e,r);var o=i.getItemGraphicEl(e);o.setShape("points",r)}))}}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new Wr});this.group.add(l.group),this.markKeep(l);var u=sJ(r,t,e);e.setData(u),u.each((function(e){var n=q(oJ,(function(n){return rJ(u,e,n,t,i)})),o=r.getAxis("x").scale,s=r.getAxis("y").scale,l=o.getExtent(),c=s.getExtent(),h=[o.parse(u.get("x0",e)),o.parse(u.get("x1",e))],d=[s.parse(u.get("y0",e)),s.parse(u.get("y1",e))];lo(h),lo(d);var p=!(l[0]>h[1]||l[1]<h[0]||c[0]>d[1]||c[1]<d[0]),f=!p;u.setItemLayout(e,{points:n,allClipped:f});var g=u.getItemModel(e).getModel("itemStyle").getItemStyle(),v=lx(a,"color");g.fill||(g.fill=v,"string"===typeof g.fill&&(g.fill=Wn(g.fill,.4))),g.stroke||(g.stroke=v),u.setItemVisual(e,"style",g)})),u.diff(QK(l).data).add((function(t){var e=u.getItemLayout(t);if(!e.allClipped){var n=new Ah({shape:{points:e.points}});u.setItemGraphicEl(t,n),l.group.add(n)}})).update((function(t,n){var i=QK(l).data.getItemGraphicEl(n),r=u.getItemLayout(t);r.allClipped?i&&l.group.remove(i):(i?Md(i,{shape:{points:r.points}},e,t):i=new Ah({shape:{points:r.points}}),u.setItemGraphicEl(t,i),l.group.add(i))})).remove((function(t){var e=QK(l).data.getItemGraphicEl(t);l.group.remove(e)})).execute(),u.eachItemGraphicEl((function(t,n){var i=u.getItemModel(n),r=u.getItemVisual(n,"style");t.useStyle(u.getItemVisual(n,"style")),Xd(t,Ud(i),{labelFetcher:e,labelDataIndex:n,defaultText:u.getName(n)||"",inheritColor:"string"===typeof r.fill?Wn(r.fill,1):"#000"}),bc(t,i),vc(t),vu(t).dataModel=e})),QK(l).data=u,l.group.silent=e.get("silent")||t.get("silent")},e.type="markArea",e}(OK);function sJ(t,e,n){var i,r,o=["x0","y0","x1","y1"];t?(i=q(t&&t.dimensions,(function(t){var n=e.getData(),i=n.getDimensionInfo(n.mapDimension(t))||{};return W({name:t},i)})),r=new FM(q(o,(function(t,e){return{name:t,type:i[e%2].type}})),n)):(i=[{name:"value",type:"float"}],r=new FM(i,n));var a=q(n.get("data"),it(tJ,e,t,n));t&&(a=J(a,it(iJ,t)));var s=t?function(t,e,n,i){return t.coord[Math.floor(i/2)][i%2]}:function(t){return t.value};return r.initData(a,null,s),r.hasItemOption=!0,r}var lJ=aJ;function uJ(t){t.registerComponentModel(JK),t.registerComponentView(lJ),t.registerPreprocessor((function(t){fK(t.series,"markArea")&&(t.markArea=t.markArea||{})}))}var cJ=function(t,e){return"all"===e?{type:"all",title:t.getLocale(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocale(["legend","selector","inverse"])}:void 0},hJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return v(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),rt(e)&&Z(e,(function(t,i){at(t)&&(t={type:t}),e[i]=F(t,cJ(n,t.type))}))},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}!e&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries((function(i){var r,o=i.name;if(n.push(o),i.legendVisualProvider){var a=i.legendVisualProvider,s=a.getAllNames();t.isSeriesFiltered(i)||(n=n.concat(s)),s.length?e=e.concat(s):r=!0}else r=!0;r&&Xo(i)&&e.push(i.name)})),this._availableNames=n;var i=this.get("data")||e,r=q(i,(function(t){return"string"!==typeof t&&"number"!==typeof t||(t={name:t}),new yp(t,this,this.ecModel)}),this);this._data=r},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected,n=this.get("selectedMode");if("single"===n){var i=this._data;Z(i,(function(t){e[t.get("name")]=!1}))}e[t]=!0},e.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,e=this.option.selected;Z(t,(function(t){e[t.get("name",!0)]=!0}))},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;Z(t,(function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]}))},e.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&j(this._availableNames,t)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={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,symbolRotate:"inherit",inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",decal:"inherit",shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit",shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY: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}},e}(Xf),dJ=hJ,pJ=it,fJ=Z,gJ=Wr,vJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return v(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new gJ),this.group.add(this._selectorGroup=new gJ),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),o=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(r,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=t.get("padding"),h=zf(l,u,c),d=this.layoutInner(t,r,h,i,a,s),p=zf(W({width:d.width,height:d.height},l),u,c);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=xU(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,i,r,o,a){var s=this.getContentGroup(),l=At(),u=e.get("selectedMode"),c=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&c.push(t.id)})),fJ(e.getData(),(function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var h=new gJ;return h.newline=!0,void s.add(h)}var d=n.getSeriesByName(a)[0];if(!l.get(a)){if(d){var p=d.getData(),f=p.getVisual("legendLineStyle")||{},g=p.getVisual("legendIcon"),v=p.getVisual("style"),m=this._createItem(d,a,o,r,e,t,f,v,g,u);m.on("click",pJ(xJ,a,null,i,c)).on("mouseover",pJ(_J,d.name,null,i,c)).on("mouseout",pJ(wJ,d.name,null,i,c)),l.set(a,!0)}else n.eachRawSeries((function(n){if(!l.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var h=s.indexOfName(a),d=s.getItemVisual(h,"style"),p=s.getItemVisual(h,"legendIcon"),f=On(d.fill);f&&0===f[3]&&(f[3]=.2,d.fill=Gn(f,"rgba"));var g=this._createItem(n,a,o,r,e,t,{},d,p,u);g.on("click",pJ(xJ,null,a,i,c)).on("mouseover",pJ(_J,null,a,i,c)).on("mouseout",pJ(wJ,null,a,i,c)),l.set(a,!0)}}),this);0}}),this),r&&this._createSelector(r,e,i,o,a)},e.prototype._createSelector=function(t,e,n,i,r){var o=this.getSelectorGroup();fJ(t,(function(t){var i=t.type,r=new gu({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});o.add(r);var a=e.getModel("selectorLabel"),s=e.getModel(["emphasis","selectorLabel"]);Xd(r,{normal:a,emphasis:s},{defaultText:t.title}),vc(r)}))},e.prototype._createItem=function(t,e,n,i,r,o,a,s,l,u){var c=t.visualDrawType,h=r.get("itemWidth"),d=r.get("itemHeight"),p=r.isSelected(e),f=i.get("symbolRotate"),g=i.get("icon");l=g||l||"roundRect";var v=r.getModel("lineStyle"),m=mJ(l,i,v,a,s,c,p),y=new gJ,x=i.getModel("textStyle");if("function"!==typeof t.getLegendIcon||g&&"inherit"!==g){var b="inherit"===g&&t.getData().getVisual("symbol")?"inherit"===f?t.getData().getVisual("symbolRotate"):f:0;y.add(yJ({itemWidth:h,itemHeight:d,icon:l,iconRotate:b,itemStyle:m.itemStyle,lineStyle:m.lineStyle}))}else y.add(t.getLegendIcon({itemWidth:h,itemHeight:d,icon:l,iconRotate:f,itemStyle:m.itemStyle,lineStyle:m.lineStyle}));var _="left"===o?h+5:-5,w=o,S=r.get("formatter"),M=e;"string"===typeof S&&S?M=S.replace("{name}",null!=e?e:""):"function"===typeof S&&(M=S(e));var I=i.get("inactiveColor");y.add(new gu({style:Zd(x,{text:M,x:_,y:d/2,fill:p?x.getTextColor():I,align:w,verticalAlign:"middle"})}));var C=new eu({shape:y.getBoundingRect(),invisible:!0}),T=i.getModel("tooltip");return T.get("show")&&Wd({el:C,componentModel:r,itemName:e,itemTooltipOption:T.option}),y.add(C),y.eachChild((function(t){t.silent=!0})),C.silent=!u,this.getContentGroup().add(y),vc(y),y.__legendDataIndex=n,y},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();Rf(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){Rf("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,f=0===p?"width":"height",g=0===p?"height":"width",v=0===p?"y":"x";"end"===o?h[p]+=l[f]+d:u[p]+=c[f]+d,h[1-p]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var m={x:0,y:0};return m[f]=l[f]+d+c[f],m[g]=Math.max(l[g],c[g]),m[v]=Math.min(0,c[v]+h[1-p]),m}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(ay);function mJ(t,e,n,i,r,o,a){for(var s=e.getModel("itemStyle"),l=fp.concat([["decal"]]),u={},c=0;c<l.length;++c){var h=l[c][l[c].length-1],d=l[c][0],p=s.getShallow(h);if("inherit"===p)switch(d){case"fill":u.fill=r[o];break;case"stroke":u.stroke=r[0===t.lastIndexOf("empty",0)?"fill":"stroke"];break;case"opacity":u.opacity=("fill"===o?r:i).opacity;break;default:u[d]=r[d]}else"auto"===p&&"lineWidth"===d?u.lineWidth=r.lineWidth>0?2:0:u[d]=p}var f=e.getModel("lineStyle"),g=hp.concat([["inactiveColor"],["inactiveWidth"]]),v={};for(c=0;c<g.length;++c){h=g[c][1],d=g[c][0],p=f.getShallow(h);"inherit"===p?v[d]=i[d]:"auto"===p&&"lineWidth"===d?v.lineWidth=i.lineWidth>0?2:0:v[d]=p}if("auto"===u.fill&&(u.fill=r.fill),"auto"===u.stroke&&(u.stroke=r.fill),"auto"===v.stroke&&(v.stroke=r.fill),!a){var m=e.get("inactiveBorderWidth"),y=u[t.indexOf("empty")>-1?"fill":"stroke"];u.lineWidth="auto"===m?r.lineWidth>0&&y?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),v.stroke=n.get("inactiveColor"),v.lineWidth=n.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function yJ(t){var e=t.icon||"roundRect",n=db(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function xJ(t,e,n,i){wJ(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),_J(t,e,n,i)}function bJ(t){var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;while(i<r&&!(e=n[i].states.emphasis))i++;return e&&e.hoverLayer}function _J(t,e,n,i){bJ(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function wJ(t,e,n,i){bJ(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}var SJ=vJ;function MJ(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0}))}function IJ(t,e,n){var i,r={},o="toggleSelected"===t;return n.eachComponent("legend",(function(n){o&&null!=i?n[i?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),i=n.isSelected(e.name));var a=n.getData();Z(a,(function(t){var e=t.get("name");if("\n"!==e&&""!==e){var i=n.isSelected(e);r.hasOwnProperty(e)?r[e]=r[e]&&i:r[e]=i}}))})),"allSelect"===t||"inverseSelect"===t?{selected:r}:{name:e.name,selected:r}}function CJ(t){t.registerAction("legendToggleSelect","legendselectchanged",it(IJ,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",it(IJ,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",it(IJ,"inverseSelect")),t.registerAction("legendSelect","legendselected",it(IJ,"select")),t.registerAction("legendUnSelect","legendunselected",it(IJ,"unSelect"))}function TJ(t){t.registerComponentModel(dJ),t.registerComponentView(SJ),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,MJ),t.registerSubTypeDefaulter("legend",(function(){return"plain"})),CJ(t)}var AJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,i){var r=$f(e);t.prototype.init.call(this,e,n,i),DJ(this,e,r)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),DJ(this,this.option,e)},e.type="legend.scroll",e.defaultOption=Sp(dJ.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}),e}(dJ);function DJ(t,e,n){var i=t.getOrient(),r=[1,1];r[i.index]=0,Hf(e,n,{type:"box",ignoreSize:!!r})}var kJ=AJ,LJ=Wr,PJ=["width","height"],OJ=["x","y"],EJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return v(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new LJ),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new LJ)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(e,n,i,r,o,a,s){var l=this;t.prototype.renderInner.call(this,e,n,i,r,o,a,s);var u=this._controllerGroup,c=n.get("pageIconSize",!0),h=rt(c)?c:[c,c];p("pagePrev",0);var d=n.getModel("pageTextStyle");function p(t,e){var i=t+"DataIndex",o=Bd(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:nt(l._pageGo,l,i,n,r)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});o.name=t,u.add(o)}u.add(new gu({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1)},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getSelectorGroup(),s=t.getOrient().index,l=PJ[s],u=OJ[s],c=PJ[1-s],h=OJ[1-s];r&&Rf("horizontal",a,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),p=a.getBoundingRect(),f=[-p.x,-p.y],g=V(n);r&&(g[l]=n[l]-p[l]-d);var v=this._layoutContentAndController(t,i,g,s,l,c,h,u);if(r){if("end"===o)f[s]+=v[l]+d;else{var m=p[l]+d;f[s]-=m,v[u]-=m}v[l]+=p[l]+d,f[1-s]+=v[h]+v[c]/2-p[c]/2,v[c]=Math.max(v[c],p[c]),v[h]=Math.min(v[h],p[h]+f[1-s]),a.x=f[0],a.y=f[1],a.markRedraw()}return v},e.prototype._layoutContentAndController=function(t,e,n,i,r,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;Rf(t.get("orient"),l,t.get("itemGap"),i?n.width:null,i?null:n.height),Rf("horizontal",c,t.get("pageButtonItemGap",!0));var h=l.getBoundingRect(),d=c.getBoundingRect(),p=this._showController=h[r]>n[r],f=[-h.x,-h.y];e||(f[i]=l[s]);var g=[0,0],v=[-d.x,-d.y],m=yt(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(p){var y=t.get("pageButtonPosition",!0);"end"===y?v[i]+=n[r]-d[r]:g[i]+=d[r]+m}v[1-i]+=h[o]/2-d[o]/2,l.setPosition(f),u.setPosition(g),c.setPosition(v);var x={x:0,y:0};if(x[r]=p?n[r]:h[r],x[o]=Math.max(h[o],d[o]),x[a]=Math.min(0,d[a]+v[1-i]),u.__rectSize=n[r],p){var b={x:0,y:0};b[r]=Math.max(n[r]-d[r]-m,0),b[o]=x[o],u.setClipPath(new eu({shape:b})),u.__rectSize=b[r]}else c.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var _=this._getPageInfo(t);return null!=_.pageIndex&&Md(l,{x:_.contentPosition[0],y:_.contentPosition[1]},p?t:null),this._updatePageInfoView(t,_),x},e.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;Z(["pagePrev","pageNext"],(function(i){var r=i+"DataIndex",o=null!=e[r],a=n.childOfName(i);a&&(a.setStyle("fill",o?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")}));var i=n.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;i&&r&&i.setStyle("text",at(r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,o=PJ[r],a=OJ[r],s=this._findTargetItemIndex(e),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 p=y(u);d.contentPosition[r]=-p.s;for(var f=s+1,g=p,v=p,m=null;f<=c;++f)m=y(l[f]),(!m&&v.e>g.s+i||m&&!x(m,g.s))&&(g=v.i>g.i?v:m,g&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount)),v=m;for(f=s-1,g=p,v=p,m=null;f>=-1;--f)m=y(l[f]),m&&x(v,m.s)||!(g.i<v.i)||(v=g,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=m;return d;function y(t){if(t){var e=t.getBoundingRect(),n=e[a]+t[a];return{s:n,e:n+e[o],i:t.__legendDataIndex}}}function x(t,e){return t.e>=e&&t.s<=e+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var e,n,i=this.getContentGroup();return i.eachChild((function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)})),null!=e?e:n},e.type="legend.scroll",e}(SJ),RJ=EJ;function NJ(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}function zJ(t){nM(TJ),t.registerComponentModel(kJ),t.registerComponentView(RJ),NJ(t)}function BJ(t){nM(TJ),nM(zJ)}var VJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.type="dataZoom.inside",e.defaultOption=Sp(UX.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(UX),FJ=VJ,HJ=ta();function $J(t,e,n){HJ(t).coordSysRecordMap.each((function(t){var i=t.dataZoomInfoMap.get(e.uid);i&&(i.getRange=n)}))}function WJ(t,e){for(var n=HJ(t).coordSysRecordMap,i=n.keys(),r=0;r<i.length;r++){var o=i[r],a=n.get(o),s=a.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||GJ(n,a))}}}function GJ(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function jJ(t,e){var n={model:e,containsPoint:it(XJ,e),dispatchAction:it(YJ,t),dataZoomInfoMap:null,controller:null},i=n.controller=new SP(t.getZr());return Z(["pan","zoom","scrollMove"],(function(t){i.on(t,(function(e){var i=[];n.dataZoomInfoMap.each((function(r){if(e.isAvailableBehavior(r.model.option)){var o=(r.getRange||{})[t],a=o&&o(r.dzReferCoordSysInfo,n.model.mainType,n.controller,e);!r.model.get("disabled",!0)&&a&&i.push({dataZoomId:r.model.id,start:a[0],end:a[1]})}})),i.length&&n.dispatchAction(i)}))})),n}function YJ(t,e){t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function XJ(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}function UJ(t){var e,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return t.each((function(t){var o=t.model,a=!o.get("disabled",!0)&&(!o.get("zoomLock",!0)||"move");i[n+a]>i[n+e]&&(e=a),r=r&&o.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}function ZJ(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var n=HJ(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=At());i.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){var n=GX(t);Z(n.infoList,(function(n){var r=n.model.uid,o=i.get(r)||i.set(r,jJ(e,n.model)),a=o.dataZoomInfoMap||(o.dataZoomInfoMap=At());a.set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})}))})),i.each((function(t){var e,n=t.controller,r=t.dataZoomInfoMap;if(r){var o=r.keys()[0];null!=o&&(e=r.get(o))}if(e){var a=UJ(r);n.enable(a.controlType,a.opt),n.setPointerChecker(t.containsPoint),_y(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else GJ(i,t)}))}))}var qJ=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return v(e,t),e.prototype.render=function(e,n,i){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),$J(i,e,{pan:nt(KJ.pan,this),zoom:nt(KJ.zoom,this),scrollMove:nt(KJ.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){WJ(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(JX),KJ={zoom:function(t,e,n,i){var r=this.range,o=r.slice(),a=t.axisModels[0];if(a){var s=QJ[e](null,[i.originX,i.originY],a,n,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/i.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return Jz(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:JJ((function(t,e,n,i,r,o){var a=QJ[i]([o.oldX,o.oldY],[o.newX,o.newY],e,r,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength})),scrollMove:JJ((function(t,e,n,i,r,o){var a=QJ[i]([0,0],[o.scrollDelta,o.scrollDelta],e,r,n);return a.signal*(t[1]-t[0])*o.scrollDelta}))};function JJ(t){return function(e,n,i,r){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s){var l=t(a,s,e,n,i,r);return Jz(l,a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}}var QJ={grid:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},tQ=qJ;function eQ(t){cU(t),t.registerComponentModel(FJ),t.registerComponentView(tQ),ZJ(t)}var nQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Sp(UX.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(UX),iQ=nQ,rQ=eu,oQ=7,aQ=1,sQ=30,lQ=7,uQ="horizontal",cQ="vertical",hQ=5,dQ=["line","bar","candlestick","scatter"],pQ={easing:"cubicOut",duration:100},fQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return v(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=nt(this._onBrush,this),this._onBrushEnd=nt(this._onBrushEnd,this)},e.prototype.render=function(e,n,i,r){if(t.prototype.render.apply(this,arguments),_y(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show")){if(e.noTarget())return this._clear(),void this.group.removeAll();r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){wy(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new Wr;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect"),i=n?lQ:0,r=this._findCoordRect(),o={width:e.getWidth(),height:e.getHeight()},a=this._orient===uQ?{right:o.width-r.x-r.width,top:o.height-sQ-oQ-i,width:r.width,height:sQ}:{right:oQ,top:r.y,width:sQ,height:r.height},s=$f(t.option);Z(["right","top","width","height"],(function(t){"ph"===s[t]&&(s[t]=a[t])}));var l=zf(s,o);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===cQ&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==uQ||r?n===uQ&&r?{scaleY:a?1:-1,scaleX:-1}:n!==cQ||r?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=t.getBoundingRect([o]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new rQ({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var r=new rQ({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:nt(this._onClickPanel,this)}),o=this.api.getZr();i?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(r)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=t.series,i=n.getRawData(),r=n.getShadowDim?n.getShadowDim():t.otherDim;if(null!=r){var o=i.getDataExtent(r),a=.3*(o[1]-o[0]);o=[o[0]-a,o[1]+a];var s,l=[0,e[1]],u=[0,e[0]],c=[[e[0],0],[0,0]],h=[],d=u[1]/(i.count()-1),p=0,f=Math.round(i.count()/e[0]);i.each([r],(function(t,e){if(f>0&&e%f)p+=d;else{var n=null==t||isNaN(t)||""===t,i=n?0:oo(t,o,l,!0);n&&!s&&e?(c.push([c[c.length-1][0],0]),h.push([h[h.length-1][0],0])):!n&&s&&(c.push([p,0]),h.push([p,0])),c.push([p,i]),h.push([p,i]),p+=d,s=n}}));for(var g=this.dataZoomModel,v=0;v<3;v++){var m=y(1===v);this._displayables.sliderGroup.add(m),this._displayables.dataShadowSegs.push(m)}}}function y(t){var e=g.getModel(t?"selectedDataBackground":"dataBackground"),n=new Wr,i=new Ah({shape:{points:c},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new Lh({shape:{points:h},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,i=this.ecModel;return t.eachTargetAxis((function(r,o){var a=t.getAxisProxy(r,o).getTargetSeriesModels();Z(a,(function(t){if(!n&&!(!0!==e&&j(dQ,t.get("type"))<0)){var a,s=i.getComponent($X(r),o).axis,l=gQ(r),u=t.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),n={thisAxis:s,series:t,thisDim:r,otherDim:l,otherAxisInverse:a}}}),this)}),this),n}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],i=e.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),c=e.filler=new rQ({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(c),r.add(new rQ({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:aQ,fill:"rgba(0,0,0,0)"}})),Z([0,1],(function(e){var o=a.get("handleIcon");!ub[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=db(o,-1,0,2,2,null,!0);s.attr({cursor:vQ(this._orient),draggable:!0,drift:nt(this._onDragMove,this,e),ondragend:nt(this._onDragEnd,this),onmouseover:nt(this._showDataInfo,this,!0),onmouseout:nt(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=ao(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),vc(s);var c=a.get("handleColor");null!=c&&(s.style.fill=c),r.add(n[e]=s);var h=a.getModel("textStyle");t.add(i[e]=new gu({silent:!0,invisible:!0,style:Zd(h,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:h.getTextColor(),font:h.getFont()}),z2:10}))}),this);var h=c;if(u){var d=ao(a.get("moveHandleSize"),o[1]),p=e.moveHandle=new eu({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:d}}),f=.8*d,g=e.moveHandleIcon=db(a.get("moveHandleIcon"),-f/2,-f/2,f,f,"#fff",!0);g.silent=!0,g.y=o[1]+d/2-.5,p.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var v=Math.min(o[1]/2,Math.max(d,10));h=e.moveZone=new eu({invisible:!0,shape:{y:o[1]-v,height:d+v}}),h.on("mouseover",(function(){s.enterEmphasis(p)})).on("mouseout",(function(){s.leaveEmphasis(p)})),r.add(p),r.add(g),r.add(h)}h.attr({draggable:!0,cursor:vQ(this._orient),drift:nt(this._onDragMove,this,"all"),ondragstart:nt(this._showDataInfo,this,!0),ondragend:nt(this._onDragEnd,this),onmouseover:nt(this._showDataInfo,this,!0),onmouseout:nt(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[oo(t[0],[0,100],e,!0),oo(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];Jz(e,i,r,n.get("zoomLock")?"all":t,null!=o.minSpan?oo(o.minSpan,a,r,!0):null,null!=o.maxSpan?oo(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=lo([oo(i[0],r,a,!0),oo(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,i=lo(n.slice()),r=this._size;Z([0,1],(function(t){var i=e.handles[t],o=this._handleHeight;i.attr({scaleX:o/2,scaleY:o/2,x:n[t]+(t?-1:1),y:r[1]/2-o/2})}),this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var o={x:i[0],width:i[1]-i[0]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=e.dataShadowSegs,s=[0,i[0],i[1],r[0]],l=0;l<a.length;l++){var u=a[l],c=u.getClipPath();c||(c=new eu,u.setClipPath(c)),c.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:r[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var e=this.dataZoomModel,n=this._displayables,i=n.handleLabels,r=this._orient,o=["",""];if(e.get("showDetail")){var a=e.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,u=t?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();o=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var c=lo(this._handleEnds.slice());function h(t){var e=kd(n.handles[t].parent,this.group),a=Pd(0===t?"right":"left",e),s=this._handleWidth/2+hQ,l=Ld([c[t]+(0===t?-s:s),this._size[1]/2],e);i[t].setStyle({x:l[0],y:l[1],verticalAlign:r===uQ?"middle":a,align:r===uQ?a:"center",text:o[t]})}h.call(this,0),h.call(this,1)},e.prototype._formatLabel=function(t,e){var n=this.dataZoomModel,i=n.get("labelFormatter"),r=n.get("labelPrecision");null!=r&&"auto"!==r||(r=e.getPixelPrecision());var o=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(r,20));return ot(i)?i(t,o):at(i)?i.replace("{value}",o):o},e.prototype._showDataInfo=function(t){t=this._dragging||t;var e=this._displayables,n=e.handleLabels;n[0].attr("invisible",!t),n[1].attr("invisible",!t),e.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](e.moveHandle,1)},e.prototype._onDragMove=function(t,e,n,i){this._dragging=!0,De(i.event);var r=this._displayables.sliderGroup.getLocalTransform(),o=Ld([e,n],r,!0),a=this._updateInterval(t,o[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),a&&s&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var e=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>e[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new sr(e,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var n=e.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),o=[0,100];this._range=lo([oo(n.x,r,o,!0),oo(n.x+n.width,r,o,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(De(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new rQ({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(r)),r.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(t,e),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?pQ:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=GX(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),r=this.api.getHeight();t={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return t},e.type="dataZoom.slider",e}(JX);function gQ(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function vQ(t){return"vertical"===t?"ns-resize":"ew-resize"}var mQ=fQ;function yQ(t){t.registerComponentModel(iQ),t.registerComponentView(mQ),cU(t)}function xQ(t){nM(eQ),nM(yQ)}var bQ={get:function(t,e,n){var i=V((_Q[t]||{})[e]);return n&&rt(i)?i[i.length-1]:i}},_Q={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]}},wQ=bQ,SQ=aR.mapVisual,MQ=aR.eachVisual,IQ=rt,CQ=Z,TQ=lo,AQ=oo,DQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return v(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;S.canvasSupported||(n.realtime=!1),!e&&fq(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=nt(t,this),this.controllerVisuals=pq(this.option.controller,e,t),this.targetVisuals=pq(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,n){e.push(n)})):e=Po(t),e},e.prototype.eachTargetSeries=function(t,e){Z(this.getTargetSeriesIndices(),(function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(e,i)}),this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},e.prototype.formatValueText=function(t,e,n){var i,r=this.option,o=r.precision,a=this.dataBound,s=r.formatter;n=n||["<",">"],rt(t)&&(t=t.slice(),i=!0);var l=e?t:i?[u(t[0]),u(t[1])]:u(t);return at(s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):ot(s)?i?s(t[0],t[1]):s(t):i?t[0]===a[0]?n[0]+" "+l[1]:t[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,e=TQ([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimension=function(t){var e=this.option.dimension,n=t.dimensions;if(null!=e||n.length){if(null!=e)return t.getDimension(e);for(var i=t.dimensions,r=i.length-1;r>=0;r--){var o=i[r],a=t.getDimensionInfo(o);if(!a.isCalculationCoord)return o}}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),r=e.controller||(e.controller={});F(i,n),F(r,n);var o=this.isCategory();function a(n){IQ(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}function s(t,e,n){var i=t[e],r=t[n];i&&!r&&(r=t[n]={},CQ(i,(function(t,e){if(aR.isValidType(e)){var n=wQ.get(e,"inactive",o);null!=n&&(r[e]=n,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}function l(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),r=this.getItemSymbol(),a=r||"roundRect";CQ(this.stateList,(function(r){var s=this.itemSize,l=t[r];l||(l=t[r]={color:o?i:[i]}),null==l.symbol&&(l.symbol=e&&V(e)||(o?a:[a])),null==l.symbolSize&&(l.symbolSize=n&&V(n)||(o?s[0]:[s[0],s[0]])),l.symbol=SQ(l.symbol,(function(t){return"none"===t?a:t}));var u=l.symbolSize;if(null!=u){var c=-1/0;MQ(u,(function(t){t>c&&(c=t)})),l.symbolSize=SQ(u,(function(t){return AQ(t,[0,c],[0,s[0]],!0)}))}}),this)}a.call(this,i),a.call(this,r),s.call(this,i,"inRange","outOfRange"),l.call(this,r)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,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"}},e}(Xf),kQ=DQ,LQ=[20,140],PQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=LQ[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=LQ[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):rt(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),Z(this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)}),this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=lo((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},e.prototype.getValueState=function(t){var e=this.option.range,n=this.getExtent();return(e[0]<=n[0]||e[0]<=t)&&(e[1]>=n[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimension(r),(function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)}),this),e.push({seriesId:n.id,dataIndex:i})}),this),e},e.prototype.getVisualMeta=function(t){var e=OQ(this,"outOfRange",this.getExtent()),n=OQ(this,"inRange",this.option.range.slice()),i=[];function r(e,n){i.push({value:e,color:t(e,n)})}for(var o=0,a=0,s=n.length,l=e.length;a<l&&(!n.length||e[a]<=n[0]);a++)e[a]<n[o]&&r(e[a],"outOfRange");for(var u=1;o<s;o++,u=0)u&&i.length&&r(n[o],"outOfRange"),r(n[o],"inRange");for(u=1;a<l;a++)(!n.length||n[n.length-1]<e[a])&&(u&&(i.length&&r(i[i.length-1].value,"outOfRange"),u=0),r(e[a],"outOfRange"));var c=i.length;return{stops:i,outerColors:[c?i[0].color:"transparent",c?i[c-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=Sp(kQ.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)"}}),e}(kQ);function OQ(t,e,n){if(n[0]===n[1])return n.slice();for(var i=200,r=(n[1]-n[0])/i,o=n[0],a=[],s=0;s<=i&&o<n[1];s++)a.push(o),o+=r;return a.push(n[1]),a}var EQ=PQ,RQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return v(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e},e.prototype.render=function(t,e,n,i){this.visualMapModel=t,!1!==t.get("show")?this.doRender(t,e,n,i):this.group.removeAll()},e.prototype.renderBackground=function(t){var e=this.visualMapModel,n=mf(e.get("padding")||0),i=t.getBoundingRect();t.add(new eu({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,e,n){n=n||{};var i=n.forceState,r=this.visualMapModel,o={};if("color"===e){var a=r.get("contentColor");o.color=a}function s(t){return o[t]}function l(t,e){o[t]=e}var u=r.controllerVisuals[i||r.getValueState(t)],c=aR.prepareVisualTypes(u);return Z(c,(function(i){var r=u[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",r=u.__alphaForOpacity),aR.dependsOn(i,e)&&r&&r.applyVisual(t,s,l)})),o[e]},e.prototype.positionGroup=function(t){var e=this.visualMapModel,n=this.api;Bf(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,e,n,i){},e.type="visualMap",e}(ay),NQ=RQ,zQ=[["left","right","width"],["top","bottom","height"]];function BQ(t,e,n){var i=t.option,r=i.align;if(null!=r&&"auto"!==r)return r;for(var o={width:e.getWidth(),height:e.getHeight()},a="horizontal"===i.orient?1:0,s=zQ[a],l=[0,null,10],u={},c=0;c<3;c++)u[zQ[1-a][c]]=l[c],u[s[c]]=2===c?n[0]:i[s[c]];var h=[["x","width",3],["y","height",0]][a],d=zf(u,o,i.padding);return s[(d.margin[h[2]]||0)+d[h[0]]+.5*d[h[1]]<.5*o[h[1]]?0:1]}function VQ(t,e){return Z(t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}var FQ=oo,HQ=Z,$Q=Math.min,WQ=Math.max,GQ=12,jQ=6,YQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return v(e,t),e.prototype.doRender=function(t,e,n,i){this._api=n,i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var n=t.get("text");this._renderEndsText(e,n,0),this._renderEndsText(e,n,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},e.prototype._renderEndsText=function(t,e,n){if(e){var i=e[1-n];i=null!=i?i+"":"";var r=this.visualMapModel,o=r.get("textGap"),a=r.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],s),u=this._applyTransform(0===n?"bottom":"top",s),c=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new gu({style:{x:l[0],y:l[1],verticalAlign:"horizontal"===c?"middle":u,align:"horizontal"===c?u:"center",text:i,font:h.getFont(),fill:h.getTextColor()}}))}},e.prototype._renderBar=function(t){var e=this.visualMapModel,n=this._shapes,i=e.itemSize,r=this._orient,o=this._useHandle,a=BQ(e,this.api,i),s=n.mainGroup=this._createBarGroup(a),l=new Wr;s.add(l),l.add(n.outOfRange=XQ()),l.add(n.inRange=XQ(null,o?qQ(this._orient):null,nt(this._dragHandle,this,"all",!1),nt(this._dragHandle,this,"all",!0))),l.setClipPath(new eu({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var u=e.textStyleModel.getTextRect("国"),c=WQ(u.width,u.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(e,s,0,i,c,r),this._createHandle(e,s,1,i,c,r)),this._createIndicator(e,s,i,c,r),t.add(s)},e.prototype._createHandle=function(t,e,n,i,r,o){var a=nt(this._dragHandle,this,n,!1),s=nt(this._dragHandle,this,n,!0),l=Ar(t.get("handleSize"),i[0]),u=db(t.get("handleIcon"),-l/2,-l/2,l,l,null,!0),c=qQ(this._orient);u.attr({cursor:c,draggable:!0,drift:a,ondragend:s,onmousemove:function(t){De(t.event)}}),u.x=i[0]/2,u.useStyle(t.getModel("handleStyle").getItemStyle()),u.setStyle({strokeNoScale:!0,strokeFirst:!0}),u.style.lineWidth*=2,u.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),_c(u,!0),e.add(u);var h=this.visualMapModel.textStyleModel,d=new gu({cursor:c,draggable:!0,drift:a,onmousemove:function(t){De(t.event)},ondragend:s,style:{x:0,y:0,text:"",font:h.getFont(),fill:h.getTextColor()}});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[l,0],f=this._shapes;f.handleThumbs[n]=u,f.handleLabelPoints[n]=p,f.handleLabels[n]=d},e.prototype._createIndicator=function(t,e,n,i,r){var o=Ar(t.get("indicatorSize"),n[0]),a=db(t.get("indicatorIcon"),-o/2,-o/2,o,o,null,!0);a.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=t.getModel("indicatorStyle").getItemStyle();if(a instanceof Yl){var l=a.style;a.useStyle($({image:l.image,x:l.x,y:l.y,width:l.width,height:l.height},s))}else a.useStyle(s);e.add(a);var u=this.visualMapModel.textStyleModel,c=new gu({silent:!0,invisible:!0,style:{x:0,y:0,text:"",font:u.getFont(),fill:u.getTextColor()}});this.group.add(c);var h=[("horizontal"===r?i/2:jQ)+n[0]/2,0],d=this._shapes;d.indicator=a,d.indicatorLabel=c,d.indicatorLabelPoint=h,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,e,n,i){if(this._useHandle){if(this._dragging=!e,!e){var r=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(t,r[1]),this._hideIndicator(),this._updateView()}e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?!this._hovering&&this._clearHoverLinkToSeries():ZQ(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[FQ(e[0],n,i,!0),FQ(e[1],n,i,!0)]},e.prototype._updateInterval=function(t,e){e=e||0;var n=this.visualMapModel,i=this._handleEnds,r=[0,n.itemSize[1]];Jz(e,i,r,t,0);var o=n.getExtent();this._dataInterval=[FQ(i[0],r,o,!0),FQ(i[1],r,o,!0)]},e.prototype._updateView=function(t){var e=this.visualMapModel,n=e.getExtent(),i=this._shapes,r=[0,e.itemSize[1]],o=t?r:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,r,"outOfRange");i.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),i.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(o,a)},e.prototype._createBarVisual=function(t,e,n,i){var r={forceState:i,convertOpacityToAlpha:!0},o=this._makeColorGradient(t,r),a=[this.getControllerVisual(t[0],"symbolSize",r),this.getControllerVisual(t[1],"symbolSize",r)],s=this._createBarPoints(n,a);return{barColor:new Zh(0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},e.prototype._makeColorGradient=function(t,e){var n=100,i=[],r=(t[1]-t[0])/n;i.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var o=1;o<n;o++){var a=t[0]+r*o;if(a>t[1])break;i.push({color:this.getControllerVisual(a,"color",e),offset:o/n})}return i.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),i},e.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new Wr("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,a=i.itemSize,s=i.getExtent();HQ([0,1],(function(l){var u=r[l];u.setStyle("fill",e.handlesColor[l]),u.y=t[l];var c=FQ(t[l],[0,a[1]],s,!0),h=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=h/a[0],u.x=a[0]-h/2;var d=Ld(n.handleLabelPoints[l],kd(u,this.group));o[l].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},e.prototype._showIndicator=function(t,e,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",c),d=this.getControllerVisual(t,"symbolSize"),p=FQ(t,o,s,!0),f=a[0]-d/2,g={x:u.x,y:u.y};u.y=p,u.x=f;var v=Ld(l.indicatorLabelPoint,kd(u,this.group)),m=l.indicatorLabel;m.attr("invisible",!1);var y=this._applyTransform("left",l.mainGroup),x=this._orient,b="horizontal"===x;m.setStyle({text:(n||"")+r.formatValueText(e),verticalAlign:b?y:"middle",align:b?"center":y});var _={x:f,y:p,style:{fill:h}},w={style:{x:v[0],y:v[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var S={duration:100,easing:"cubicInOut",additive:!0};u.x=g.x,u.y=g.y,u.animateTo(_,S),m.animateTo(w,S)}else u.attr(_),m.attr(w);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var I=0;I<M.length;I++)this._api.enterBlur(M[I])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",(function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([e.offsetX,e.offsetY],t._shapes.mainGroup,!0,!0);i[1]=$Q(WQ(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}})).on("mouseout",(function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()}))},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,e){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var r=[0,i[1]],o=n.getExtent();t=$Q(WQ(r[0],t),r[1]);var a=UQ(n,o,r),s=[t-a,t+a],l=FQ(t,r,o,!0),u=[FQ(s[0],r,o,!0),FQ(s[1],r,o,!0)];s[0]<r[0]&&(u[0]=-1/0),s[1]>r[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var c=this._hoverLinkDataIndices,h=[];(e||ZQ(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var d=Jo(c,h);this._dispatchHighDown("downplay",VQ(d[0],n)),this._dispatchHighDown("highlight",VQ(d[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e=t.target,n=this.visualMapModel;if(e&&null!=vu(e).dataIndex){var i=vu(e),r=this.ecModel.getSeriesByIndex(i.seriesIndex);if(n.isTargetSeries(r)){var o=r.getData(i.dataType),a=o.get(n.getDataDimension(o),i.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var e=this._shapes.handleLabels;if(e)for(var n=0;n<e.length;n++)this._api.leaveBlur(e[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",VQ(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,e,n,i){var r=kd(e,i?null:this.group);return rt(t)?Ld(t,r,n):Pd(t,r,n)},e.prototype._dispatchHighDown=function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(NQ);function XQ(t,e,n,i){return new Ah({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){De(t.event)},ondragend:i})}function UQ(t,e,n){var i=GQ/2,r=t.get("hoverLinkDataSize");return r&&(i=FQ(r,e,n,!0)/2),i}function ZQ(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function qQ(t){return"vertical"===t?"ns-resize":"ew-resize"}var KQ=YQ,JQ={type:"selectDataRange",event:"dataRangeSelected",update:"update"},QQ=function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))},t0=[{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",(function(e){var i=t.pipelineContext;!e.isTargetSeries(t)||i&&i.large||n.push(vq(e.stateList,e.targetVisuals,nt(e.getValueState,e),e.getDataDimension(t.getData())))})),n}},{createOnAllSeries:!0,reset:function(t,e){var n=t.getData(),i=[];e.eachComponent("visualMap",(function(e){if(e.isTargetSeries(t)){var r=e.getVisualMeta(nt(e0,null,t,e))||{stops:[],outerColors:[]},o=e.getDataDimension(n),a=n.getDimensionInfo(o);null!=a&&(r.dimension=a.index,i.push(r))}})),t.getData().setVisual("visualMeta",i)}}];function e0(t,e,n,i){for(var r=e.targetVisuals[i],o=aR.prepareVisualTypes(r),a={color:lx(t.getData(),"color")},s=0,l=o.length;s<l;s++){var u=o[s],c=r["opacity"===u?"__alphaForOpacity":u];c&&c.applyVisual(n,h,d)}return a.color;function h(t){return a[t]}function d(t,e){a[t]=e}}var n0=Z;function i0(t){var e=t&&t.visualMap;rt(e)||(e=e?[e]:[]),n0(e,(function(t){if(t){r0(t,"splitList")&&!r0(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&rt(e)&&n0(e,(function(t){ut(t)&&(r0(t,"start")&&!r0(t,"min")&&(t.min=t.start),r0(t,"end")&&!r0(t,"max")&&(t.max=t.end))}))}}))}function r0(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var o0=!1;function a0(t){o0||(o0=!0,t.registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(JQ,QQ),Z(t0,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(i0))}function s0(t){t.registerComponentModel(EQ),t.registerComponentView(KQ),a0(t)}var l0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return v(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],u0[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var r=this.option.categories;this.resetVisual((function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=V(r)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=q(this._pieceList,(function(t){return t=V(t),"inRange"!==e&&(t.visual=null),t})))}))},e.prototype.completeVisualOption=function(){var e=this.option,n={},i=aR.listVisualTypes(),r=this.isCategory();function o(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}Z(e.pieces,(function(t){Z(i,(function(e){t.hasOwnProperty(e)&&(n[e]=1)}))})),Z(n,(function(t,n){var i=!1;Z(this.stateList,(function(t){i=i||o(e,t,n)||o(e.target,t,n)}),this),!i&&Z(this.stateList,(function(t){(e[t]||(e[t]={}))[n]=wQ.get(n,"inRange"===t?"active":"inactive",r)}))}),this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,i=this._pieceList,r=(e?n:t).selected||{};if(n.selected=r,Z(i,(function(t,e){var n=this.getSelectedMapKey(t);r.hasOwnProperty(n)||(r[n]=!0)}),this),"single"===n.selectedMode){var o=!1;Z(i,(function(t,e){var n=this.getSelectedMapKey(t);r[n]&&(o?r[n]=!1:o=!0)}),this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=V(t)},e.prototype.getValueState=function(t){var e=aR.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries((function(i){var r=[],o=i.getData();o.each(this.getDataDimension(o),(function(e,i){var o=aR.findPieceIndex(e,n);o===t&&r.push(i)}),this),e.push({seriesId:i.id,dataIndex:r})}),this),e},e.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],n=["",""],i=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),o=r[r.length-1].interval[1],o!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var a=-1/0;return Z(r,(function(t){var e=t.interval;e&&(e[0]>a&&s([a,e[0]],"outOfRange"),s(e.slice()),a=e[1])}),this),{stops:e,outerColors:n}}function s(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=t(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:e.push({value:r[0],color:s},{value:r[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=Sp(kQ.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(kQ),u0={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),r=e.splitNumber;r=Math.max(parseInt(r,10),1),e.splitNumber=r;var o=(i[1]-i[0])/r;while(+o.toFixed(n)!==o&&n<5)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a<r;s+=o,a++){var l=a===r-1?i[1]:s+o;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[i[1],1/0],close:[0,0]}),Mo(t),Z(t,(function(t,e){t.index=e,t.text=this.formatValueText(t.interval)}),this)},categories:function(t){var e=this.option;Z(e.categories,(function(e){t.push({text:this.formatValueText(e,!0),value:e})}),this),c0(e,t)},pieces:function(t){var e=this.option;Z(e.pieces,(function(e,n){ut(e)||(e={value:e});var i={text:"",index:n};if(null!=e.label&&(i.text=e.label),e.hasOwnProperty("value")){var r=i.value=e.value;i.interval=[r,r],i.close=[1,1]}else{for(var o=i.interval=[],a=i.close=[0,0],s=[1,0,1],l=[-1/0,1/0],u=[],c=0;c<2;c++){for(var h=[["gte","gt","min"],["lte","lt","max"]][c],d=0;d<3&&null==o[c];d++)o[c]=e[h[d]],a[c]=s[d],u[c]=2===d;null==o[c]&&(o[c]=l[c])}u[0]&&o[1]===1/0&&(a[0]=0),u[1]&&o[0]===-1/0&&(a[1]=0),o[0]===o[1]&&a[0]&&a[1]&&(i.value=o[0])}i.visual=aR.retrieveVisuals(e),t.push(i)}),this),c0(e,t),Mo(t),Z(t,(function(t){var e=t.close,n=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)}),this)}};function c0(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var h0=l0,d0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return v(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),i=e.textStyleModel,r=i.getFont(),o=i.getTextColor(),a=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),u=l.endsText,c=mt(e.get("showLabel",!0),!u);u&&this._renderEndsText(t,u[0],s,c,a),Z(l.viewPieceList,(function(i){var l=i.piece,u=new Wr;u.onclick=nt(this._onItemClick,this,l),this._enableHoverLink(u,i.indexInModelPieceList);var h=e.getRepresentValue(l);if(this._createItemSymbol(u,h,[0,0,s[0],s[1]]),c){var d=this.visualMapModel.getValueState(h);u.add(new gu({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:r,fill:o,opacity:"outOfRange"===d?.5:1}}))}t.add(u)}),this),u&&this._renderEndsText(t,u[1],s,c,a),Rf(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")}));var i=function(t){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:t,batch:VQ(i.findTargetDataIndices(e),i)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return BQ(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,i,r){if(e){var o=new Wr,a=this.visualMapModel.textStyleModel;o.add(new gu({style:{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:e,font:a.getFont(),fill:a.getTextColor()}})),t.add(o)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=q(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),n=t.get("text"),i=t.get("orient"),r=t.get("inverse");return("horizontal"===i?r:!r)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},e.prototype._createItemSymbol=function(t,e,n){t.add(db(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,i=V(n.selected),r=e.getSelectedMapKey(t);"single"===n.selectedMode?(i[r]=!0,Z(i,(function(t,e){i[e]=e===r}))):i[r]=!i[r],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})},e.type="visualMap.piecewise",e}(NQ),p0=d0;function f0(t){t.registerComponentModel(h0),t.registerComponentView(p0),a0(t)}function g0(t){nM(s0),nM(f0)}var v0={label:{enabled:!0},decal:{show:!1}},m0=ta(),y0={};function x0(t,e){var n=t.getModel("aria");if(n.get("enabled")){var i=V(v0);F(i.label,t.getLocaleModel().get("aria"),!1),F(n.option,i,!1),r(),o()}function r(){var e=n.getModel("decal"),i=e.get("show");if(i){var r=At();t.eachSeries((function(t){if(t.useColorPaletteOnData){var e=r.get(t.type);e||(e={},r.set(t.type,e)),m0(t).scope=e}})),t.eachRawSeries((function(e){if(!t.isSeriesFiltered(e))if("function"!==typeof e.enableAriaDecal){var n=e.getData();if(e.useColorPaletteOnData){var i=e.getRawData(),r={},o=m0(e).scope;n.each((function(t){var e=n.getRawIndex(t);r[e]=t}));var a=i.count();i.each((function(t){var s=r[t],l=i.getName(t)||t+"",c=_g(e.ecModel,l,o,a),h=n.getItemVisual(s,"decal");n.setItemVisual(s,"decal",u(h,c))}))}else{var s=_g(e.ecModel,e.name,y0,t.getSeriesCount()),l=n.getVisual("decal");n.setVisual("decal",u(l,s))}}else e.enableAriaDecal();function u(t,e){var n=t?$($({},e),t):e;return n.dirty=!0,n}}))}}function o(){var i=t.getLocaleModel().get("aria"),r=n.getModel("label");if(r.option=W(r.option,i),r.get("enabled")){var o=e.getZr().dom;if(r.get("description"))o.setAttribute("aria-label",r.get("description"));else{var u,c=t.getSeriesCount(),h=r.get(["data","maxCount"])||10,d=r.get(["series","maxCount"])||10,p=Math.min(c,d);if(!(c<1)){var f=s();if(f){var g=r.get(["general","withTitle"]);u=a(g,{title:f})}else u=r.get(["general","withoutTitle"]);var v=[],m=c>1?r.get(["series","multiple","prefix"]):r.get(["series","single","prefix"]);u+=a(m,{seriesCount:c}),t.eachSeries((function(t,e){if(e<p){var n=void 0,i=t.get("name"),o=i?"withName":"withoutName";n=c>1?r.get(["series","multiple",o]):r.get(["series","single",o]),n=a(n,{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:l(t.subType)});var s=t.getData();if(s.count()>h){var u=r.get(["data","partialData"]);n+=a(u,{displayCnt:h})}else n+=r.get(["data","allData"]);for(var d=[],f=0;f<s.count();f++)if(f<h){var g=s.getName(f),m=Kv(s,f),y=r.get(["data",g?"withName":"withoutName"]);d.push(a(y,{name:g,value:m}))}var x=r.get(["data","separator","middle"]),b=r.get(["data","separator","end"]);n+=d.join(x)+b,v.push(n)}}));var y=r.getModel(["series","multiple","separator"]),x=y.get("middle"),b=y.get("end");u+=v.join(x)+b,o.setAttribute("aria-label",u)}}}}function a(t,e){if("string"!==typeof t)return t;var n=t;return Z(e,(function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)})),n}function s(){var e=t.get("title");return e&&e.length&&(e=e[0]),e&&e.text}function l(e){return t.getLocaleModel().get(["series","typeNames"])[e]||"自定义图"}}function b0(t){if(t&&t.aria){var e=t.aria;null!=e.show&&(e.enabled=e.show),e.label=e.label||{},Z(["description","general","series","data"],(function(t){null!=e[t]&&(e.label[t]=e[t])}))}}function _0(t){t.registerPreprocessor(b0),t.registerVisual(t.PRIORITY.VISUAL.ARIA,x0)}var w0={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},S0=function(){function t(t){var e=this._condVal=at(t)?new RegExp(t):gt(t)?t:null;if(null==e){var n="";0,Dg(n)}}return t.prototype.evaluate=function(t){var e=typeof t;return"string"===e?this._condVal.test(t):"number"===e&&this._condVal.test(t+"")},t}(),M0=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),I0=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},t}(),C0=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},t}(),T0=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),A0=function(){function t(){}return t.prototype.evaluate=function(){for(var t=!!this.valueParser,e=this.getValue,n=e(this.valueGetterParam),i=t?this.valueParser(n):null,r=0;r<this.subCondList.length;r++)if(!this.subCondList[r].evaluate(t?i:n))return!1;return!0},t}();function D0(t,e){if(!0===t||!1===t){var n=new M0;return n.value=t,n}var i="";return O0(t)||Dg(i),t.and?k0("and",t,e):t.or?k0("or",t,e):t.not?L0(t,e):P0(t,e)}function k0(t,e,n){var i=e[t],r="";rt(i)||Dg(r),i.length||Dg(r);var o="and"===t?new I0:new C0;return o.children=q(i,(function(t){return D0(t,n)})),o.children.length||Dg(r),o}function L0(t,e){var n=t.not,i="";O0(n)||Dg(i);var r=new T0;return r.child=D0(n,e),r.child||Dg(i),r}function P0(t,e){for(var n="",i=e.prepareGetValue(t),r=[],o=tt(t),a=t.parser,s=a?am(a):null,l=0;l<o.length;l++){var u=o[l];if("parser"!==u&&!e.valueGetterAttrMap.get(u)){var c=Lt(w0,u)?w0[u]:u,h=t[u],d=s?s(h):h,p=hm(c,d)||"reg"===c&&new S0(d);p||Dg(n),r.push(p)}}r.length||Dg(n);var f=new A0;return f.valueGetterParam=i,f.valueParser=s,f.getValue=e.getValue,f.subCondList=r,f}function O0(t){return ut(t)&&!U(t)}var E0=function(){function t(t,e){this._cond=D0(t,e)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();function R0(t,e){return new E0(t,e)}var N0={type:"echarts:filter",transform:function(t){for(var e,n=t.upstream,i=R0(t.config,{valueGetterAttrMap:At({dimension:!0}),prepareGetValue:function(t){var e="",i=t.dimension;Lt(t,"dimension")||Dg(e);var r=n.getDimensionInfo(i);return r||Dg(e),{dimIdx:r.index}},getValue:function(t){return n.retrieveValueFromItem(e,t.dimIdx)}}),r=[],o=0,a=n.count();o<a;o++)e=n.getRawDataItem(o),i.evaluate()&&r.push(e);return{data:r}}};var z0={type:"echarts:sort",transform:function(t){var e=t.upstream,n=t.config,i="",r=Po(n);r.length||Dg(i);var o=[];Z(r,(function(t){var n=t.dimension,r=t.order,a=t.parser,s=t.incomparable;if(null==n&&Dg(i),"asc"!==r&&"desc"!==r&&Dg(i),s&&"min"!==s&&"max"!==s){var l="";0,Dg(l)}if("asc"!==r&&"desc"!==r){var u="";0,Dg(u)}var c=e.getDimensionInfo(n);c||Dg(i);var h=a?am(a):null;a&&!h&&Dg(i),o.push({dimIdx:c.index,parser:h,comparator:new um(r,s)})}));var a=e.sourceFormat;a!==Qf&&a!==tg&&Dg(i);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort((function(t,n){for(var i=0;i<o.length;i++){var r=o[i],a=e.retrieveValueFromItem(t,r.dimIdx),s=e.retrieveValueFromItem(n,r.dimIdx);r.parser&&(a=r.parser(a),s=r.parser(s));var l=r.comparator.evaluate(a,s);if(0!==l)return l}return 0})),{data:s}}};function B0(t){t.registerTransform(N0),t.registerTransform(z0)}var V0=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return v(e,t),e.prototype.init=function(e,n,i){t.prototype.init.call(this,e,n,i),this._sourceManager=new Sm(this),Mm(this)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),Mm(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:rg},e}(Xf),F0=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return v(e,t),e.type="dataset",e}(ay);function H0(t){t.registerComponentModel(V0),t.registerComponentView(F0)}nM([fT]),nM([MA]),nM([MD,ek,_k,jL,pP,pO,uE,BR,ez,dz,Sz,AV,aF,IF,QF,uH,PH,WH,x$,D$,U$,JG]),nM(qj),nM(HY),nM(dO),nM(dX),nM(TV),nM(MX),nM(BX),nM(wZ),nM(sq),nM(Zj),nM(Hq),nM(Gq),nM(pK),nM(BK),nM(qK),nM(uJ),nM(BJ),nM(xQ),nM(eQ),nM(yQ),nM(g0),nM(s0),nM(f0),nM(_0),nM(B0),nM(H0)},3408:function(t,e,n){},"342f":function(t,e,n){var i=n("d066");t.exports=i("navigator","userAgent")||""},"35a1":function(t,e,n){var i=n("f5df"),r=n("3f8c"),o=n("b622"),a=o("iterator");t.exports=function(t){if(void 0!=t)return t[a]||t["@@iterator"]||r[i(t)]}},"37e8":function(t,e,n){var i=n("83ab"),r=n("9bf2"),o=n("825a"),a=n("df75");t.exports=i?Object.defineProperties:function(t,e){o(t);var n,i=a(e),s=i.length,l=0;while(s>l)r.f(t,n=i[l++],e[n]);return t}},"3ad0":function(t,e,n){},"3bbe":function(t,e,n){var i=n("861d");t.exports=function(t){if(!i(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},"3ca3":function(t,e,n){"use strict";var i=n("6547").charAt,r=n("577e"),o=n("69f3"),a=n("7dd0"),s="String Iterator",l=o.set,u=o.getterFor(s);a(String,"String",(function(t){l(this,{type:s,string:r(t),index:0})}),(function(){var t,e=u(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=i(n,r),e.index+=t.length,{value:t,done:!1})}))},"3f8c":function(t,e){t.exports={}},"428f":function(t,e,n){var i=n("da84");t.exports=i},"44ad":function(t,e,n){var i=n("d039"),r=n("c6b6"),o="".split;t.exports=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==r(t)?o.call(t,""):Object(t)}:Object},"44d2":function(t,e,n){var i=n("b622"),r=n("7c73"),o=n("9bf2"),a=i("unscopables"),s=Array.prototype;void 0==s[a]&&o.f(s,a,{configurable:!0,value:r(null)}),t.exports=function(t){s[a][t]=!0}},4804:function(t,e,n){},"485a":function(t,e,n){var i=n("861d");t.exports=function(t,e){var n,r;if("string"===e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if("string"!==e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},4930:function(t,e,n){var i=n("2d00"),r=n("d039");t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},"495d":function(t,e,n){},"4d64":function(t,e,n){var i=n("fc6a"),r=n("50c4"),o=n("23cb"),a=function(t){return function(e,n,a){var s,l=i(e),u=r(l.length),c=o(a,u);if(t&&n!=n){while(u>c)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===n)return t||c||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"4de4":function(t,e,n){"use strict";var i=n("23e7"),r=n("b727").filter,o=n("1dde"),a=o("filter");i({target:"Array",proto:!0,forced:!a},{filter:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(t,e,n){"use strict";var i=n("0366"),r=n("7b0b"),o=n("9bdd"),a=n("e95a"),s=n("50c4"),l=n("8418"),u=n("9a1f"),c=n("35a1");t.exports=function(t){var e,n,h,d,p,f,g=r(t),v="function"==typeof this?this:Array,m=arguments.length,y=m>1?arguments[1]:void 0,x=void 0!==y,b=c(g),_=0;if(x&&(y=i(y,m>2?arguments[2]:void 0,2)),void 0==b||v==Array&&a(b))for(e=s(g.length),n=new v(e);e>_;_++)f=x?y(g[_],_):g[_],l(n,_,f);else for(d=u(g,b),p=d.next,n=new v;!(h=p.call(d)).done;_++)f=x?o(d,y,[h.value,_],!0):h.value,l(n,_,f);return n.length=_,n}},"4e3e":function(t,e,n){"use strict";var i=n("23e7"),r=n("2266"),o=n("825a");i({target:"Iterator",proto:!0,real:!0},{forEach:function(t){r(o(this),t,{IS_ITERATOR:!0})}})},"4fad":function(t,e,n){var i=n("23e7"),r=n("6f53").entries;i({target:"Object",stat:!0},{entries:function(t){return r(t)}})},"4ff9":function(t,e,n){},"50c4":function(t,e,n){var i=n("a691"),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},5135:function(t,e,n){var i=n("7b0b"),r={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,e){return r.call(i(t),e)}},5692:function(t,e,n){var i=n("c430"),r=n("c6cd");(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.17.2",mode:i?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},"56ef":function(t,e,n){var i=n("d066"),r=n("241c"),o=n("7418"),a=n("825a");t.exports=i("Reflect","ownKeys")||function(t){var e=r.f(a(t)),n=o.f;return n?e.concat(n(t)):e}},"577e":function(t,e,n){var i=n("d9b5");t.exports=function(t){if(i(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)}},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"615b":function(t,e,n){},"61d2":function(t,e,n){},6544:function(t,e){t.exports=function(t,e){var n="function"===typeof t.exports?t.exports.extendOptions:t.options;for(var i in"function"===typeof t.exports&&(n.components=t.exports.options.components),n.components=n.components||{},e)n.components[i]=n.components[i]||e[i]}},6547:function(t,e,n){var i=n("a691"),r=n("577e"),o=n("1d80"),a=function(t){return function(e,n){var a,s,l=r(o(e)),u=i(n),c=l.length;return u<0||u>=c?t?"":void 0:(a=l.charCodeAt(u),a<55296||a>56319||u+1===c||(s=l.charCodeAt(u+1))<56320||s>57343?t?l.charAt(u):a:t?l.slice(u,u+2):s-56320+(a-55296<<10)+65536)}};t.exports={codeAt:a(!1),charAt:a(!0)}},"65f0":function(t,e,n){var i=n("0b42");t.exports=function(t,e){return new(i(t))(0===e?0:e)}},"68dd":function(t,e,n){},"69f3":function(t,e,n){var i,r,o,a=n("7f9a"),s=n("da84"),l=n("861d"),u=n("9112"),c=n("5135"),h=n("c6cd"),d=n("f772"),p=n("d012"),f="Object already initialized",g=s.WeakMap,v=function(t){return o(t)?r(t):i(t,{})},m=function(t){return function(e){var n;if(!l(e)||(n=r(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(a||h.state){var y=h.state||(h.state=new g),x=y.get,b=y.has,_=y.set;i=function(t,e){if(b.call(y,t))throw new TypeError(f);return e.facade=t,_.call(y,t,e),e},r=function(t){return x.call(y,t)||{}},o=function(t){return b.call(y,t)}}else{var w=d("state");p[w]=!0,i=function(t,e){if(c(t,w))throw new TypeError(f);return e.facade=t,u(t,w,e),e},r=function(t){return c(t,w)?t[w]:{}},o=function(t){return c(t,w)}}t.exports={set:i,get:r,has:o,enforce:v,getterFor:m}},"6ece":function(t,e,n){},"6eeb":function(t,e,n){var i=n("da84"),r=n("9112"),o=n("5135"),a=n("ce4e"),s=n("8925"),l=n("69f3"),u=l.get,c=l.enforce,h=String(String).split("String");(t.exports=function(t,e,n,s){var l,u=!!s&&!!s.unsafe,d=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof e||o(n,"name")||r(n,"name",e),l=c(n),l.source||(l.source=h.join("string"==typeof e?e:""))),t!==i?(u?!p&&t[e]&&(d=!0):delete t[e],d?t[e]=n:r(t,e,n)):d?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||s(this)}))},"6f53":function(t,e,n){var i=n("83ab"),r=n("df75"),o=n("fc6a"),a=n("d1e7").f,s=function(t){return function(e){var n,s=o(e),l=r(s),u=l.length,c=0,h=[];while(u>c)n=l[c++],i&&!a.call(s,n)||h.push(t?[n,s[n]]:s[n]);return h}};t.exports={entries:s(!0),values:s(!1)}},7418:function(t,e){e.f=Object.getOwnPropertySymbols},7435:function(t,e,n){},"746f":function(t,e,n){var i=n("428f"),r=n("5135"),o=n("e538"),a=n("9bf2").f;t.exports=function(t){var e=i.Symbol||(i.Symbol={});r(e,t)||a(e,t,{value:o.f(t)})}},"74d6":function(t,e,n){},7799:function(t,e,n){var i,r,o;(function(a,s){r=[e,n("313e")],i=s,o="function"===typeof i?i.apply(e,r):i,void 0===o||(t.exports=o)})(0,(function(t,e){var n=function(t){"undefined"!==typeof console&&console&&console.error&&console.error(t)};if(e){var i=["#E01F54","#001852","#f5e8c8","#b8d2c7","#c6b38e","#a4d8c2","#f3d999","#d3758f","#dcc392","#2e4783","#82b6e9","#ff6347","#a092f1","#0a915d","#eaf889","#6699FF","#ff6666","#3cb371","#d5b158","#38b6b6"],r={color:i,visualMap:{color:["#e01f54","#e7dbc3"],textStyle:{color:"#333"}},candlestick:{itemStyle:{color:"#e01f54",color0:"#001852"},lineStyle:{width:1,color:"#f5e8c8",color0:"#b8d2c7"},areaStyle:{color:"#a4d8c2",color0:"#f3d999"}},graph:{itemStyle:{color:"#a4d8c2"},linkStyle:{color:"#f3d999"}},gauge:{axisLine:{lineStyle:{color:[[.2,"#E01F54"],[.8,"#b8d2c7"],[1,"#001852"]],width:8}}}};e.registerTheme("roma",r)}else n("ECharts is not Loaded")}))},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(t,e,n){var i=n("1d80");t.exports=function(t){return Object(i(t))}},"7be8":function(t,e,n){
|
|
26
|
+
/*! vue-grid-layout - 2.3.12 | (c) 2015, 2021 Gustavo Santos (JBay Solutions) <gustavo.santos@jbaysolutions.com> (http://www.jbaysolutions.com) | https://github.com/jbaysolutions/vue-grid-layout */
|
|
27
|
+
t.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"01f9":function(t,e,n){"use strict";var i=n("2d00"),r=n("5ca1"),o=n("2aba"),a=n("32e9"),s=n("84f2"),l=n("41a0"),u=n("7f20"),c=n("38fd"),h=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),p="@@iterator",f="keys",g="values",v=function(){return this};t.exports=function(t,e,n,m,y,x,b){l(n,e,m);var _,w,S,M=function(t){if(!d&&t in A)return A[t];switch(t){case f:return function(){return new n(this,t)};case g:return function(){return new n(this,t)}}return function(){return new n(this,t)}},I=e+" Iterator",C=y==g,T=!1,A=t.prototype,D=A[h]||A[p]||y&&A[y],k=D||M(y),L=y?C?M("entries"):k:void 0,P="Array"==e&&A.entries||D;if(P&&(S=c(P.call(new t)),S!==Object.prototype&&S.next&&(u(S,I,!0),i||"function"==typeof S[h]||a(S,h,v))),C&&D&&D.name!==g&&(T=!0,k=function(){return D.call(this)}),i&&!b||!d&&!T&&A[h]||a(A,h,k),s[e]=k,s[I]=v,y)if(_={values:C?k:M(g),keys:x?k:M(f),entries:L},b)for(w in _)w in A||o(A,w,_[w]);else r(r.P+r.F*(d||T),e,_);return _}},"02f4":function(t,e,n){var i=n("4588"),r=n("be13");t.exports=function(t){return function(e,n){var o,a,s=String(r(e)),l=i(n),u=s.length;return l<0||l>=u?t?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):o:t?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}}},"0390":function(t,e,n){"use strict";var i=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?i(t,e).length:1)}},"0bfb":function(t,e,n){"use strict";var i=n("cb7c");t.exports=function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0d58":function(t,e,n){var i=n("ce10"),r=n("e11e");t.exports=Object.keys||function(t){return i(t,r)}},1156:function(t,e,n){var i=n("ad20");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("499e").default;r("c1ec597e",i,!0,{sourceMap:!1,shadowMode:!1})},"11e9":function(t,e,n){var i=n("52a7"),r=n("4630"),o=n("6821"),a=n("6a99"),s=n("69a8"),l=n("c69a"),u=Object.getOwnPropertyDescriptor;e.f=n("9e1e")?u:function(t,e){if(t=o(t),e=a(e,!0),l)try{return u(t,e)}catch(n){}if(s(t,e))return r(!i.f.call(t,e),t[e])}},1495:function(t,e,n){var i=n("86cc"),r=n("cb7c"),o=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){r(t);var n,a=o(e),s=a.length,l=0;while(s>l)i.f(t,n=a[l++],e[n]);return t}},"18d2":function(t,e,n){"use strict";var i=n("18e9");t.exports=function(t){t=t||{};var e=t.reporter,n=t.batchProcessor,r=t.stateHandler.getState;if(!e)throw new Error("Missing required dependency: reporter.");function o(t,e){function n(){e(t)}if(i.isIE(8))r(t).object={proxy:n},t.attachEvent("onresize",n);else{var o=l(t);if(!o)throw new Error("Element is not detectable by this strategy.");o.contentDocument.defaultView.addEventListener("resize",n)}}function a(e){var n=t.important?" !important; ":"; ";return(e.join(n)+n).trim()}function s(t,o,s){s||(s=o,o=t,t=null),t=t||{};t.debug;function l(o,s){var l=a(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),u=!1,c=window.getComputedStyle(o),h=o.offsetWidth,d=o.offsetHeight;function p(){function n(){if("static"===c.position){o.style.setProperty("position","relative",t.important?"important":"");var n=function(e,n,i,r){function o(t){return t.replace(/[^-\d\.]/g,"")}var a=i[r];"auto"!==a&&"0"!==o(a)&&(e.warn("An element that is positioned static has style."+r+"="+a+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+r+" will be set to 0. Element: ",n),n.style.setProperty(r,"0",t.important?"important":""))};n(e,o,c,"top"),n(e,o,c,"right"),n(e,o,c,"bottom"),n(e,o,c,"left")}}function a(){function t(e,n){if(!e.contentDocument){var i=r(e);return i.checkForObjectDocumentTimeoutId&&window.clearTimeout(i.checkForObjectDocumentTimeoutId),void(i.checkForObjectDocumentTimeoutId=setTimeout((function(){i.checkForObjectDocumentTimeoutId=0,t(e,n)}),100))}n(e.contentDocument)}u||n();var e=this;t(e,(function(t){s(o)}))}""!==c.position&&(n(c),u=!0);var h=document.createElement("object");h.style.cssText=l,h.tabIndex=-1,h.type="text/html",h.setAttribute("aria-hidden","true"),h.onload=a,i.isIE()||(h.data="about:blank"),r(o)&&(o.appendChild(h),r(o).object=h,i.isIE()&&(h.data="about:blank"))}r(o).startSize={width:h,height:d},n?n.add(p):p()}i.isIE(8)?s(o):l(o,s)}function l(t){return r(t).object}function u(t){if(r(t)){var e=l(t);e&&(i.isIE(8)?t.detachEvent("onresize",e.proxy):t.removeChild(e),r(t).checkForObjectDocumentTimeoutId&&window.clearTimeout(r(t).checkForObjectDocumentTimeoutId),delete r(t).object)}}return{makeDetectable:s,addListener:o,uninstall:u}}},"18e9":function(t,e,n){"use strict";var i=t.exports={};i.isIE=function(t){function e(){var t=navigator.userAgent.toLowerCase();return-1!==t.indexOf("msie")||-1!==t.indexOf("trident")||-1!==t.indexOf(" edge/")}if(!e())return!1;if(!t)return!0;var n=function(){var t,e=3,n=document.createElement("div"),i=n.getElementsByTagName("i");do{n.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e"}while(i[0]);return e>4?e:t}();return t===n},i.isLegacyOpera=function(){return!!window.opera}},"1ca7":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return s})),n.d(e,"c",(function(){return l}));var i="auto";function r(){return"undefined"!==typeof document}function o(){return"undefined"!==typeof window}function a(){if(!r())return i;var t="undefined"!==typeof document.dir?document.dir:document.getElementsByTagName("html")[0].getAttribute("dir");return t}function s(t,e){o?window.addEventListener(t,e):e()}function l(t,e){o&&window.removeEventListener(t,e)}},"214f":function(t,e,n){"use strict";n("b0c5");var i=n("2aba"),r=n("32e9"),o=n("79e5"),a=n("be13"),s=n("2b4c"),l=n("520a"),u=s("species"),c=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),h=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var d=s(t),p=!o((function(){var e={};return e[d]=function(){return 7},7!=""[t](e)})),f=p?!o((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[u]=function(){return n}),n[d](""),!e})):void 0;if(!p||!f||"replace"===t&&!c||"split"===t&&!h){var g=/./[d],v=n(a,d,""[t],(function(t,e,n,i,r){return e.exec===l?p&&!r?{done:!0,value:g.call(e,n,i)}:{done:!0,value:t.call(n,e,i)}:{done:!1}})),m=v[0],y=v[1];i(String.prototype,t,m),r(RegExp.prototype,d,2==e?function(t,e){return y.call(t,this,e)}:function(t){return y.call(t,this)})}}},"230e":function(t,e,n){var i=n("d3f4"),r=n("7726").document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},2350:function(t,e){function n(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"===typeof btoa){var o=i(r),a=r.sources.map((function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"}));return[n].concat(a).concat([o]).join("\n")}return[n].join("\n")}function i(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,"+e;return"/*# "+n+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i=n(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i})).join("")},e.i=function(t,n){"string"===typeof t&&(t=[[null,t,""]]);for(var i={},r=0;r<this.length;r++){var o=this[r][0];"number"===typeof o&&(i[o]=!0)}for(r=0;r<t.length;r++){var a=t[r];"number"===typeof a[0]&&i[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},"23c6":function(t,e,n){var i=n("2d95"),r=n("2b4c")("toStringTag"),o="Arguments"==i(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),r))?n:o?i(e):"Object"==(s=i(e))&&"function"==typeof e.callee?"Arguments":s}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},2877:function(t,e,n){"use strict";function i(t,e,n,i,r,o,a,s){var l,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}n.d(e,"a",(function(){return i}))},"2aba":function(t,e,n){var i=n("7726"),r=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),s=n("fa5b"),l="toString",u=(""+s).split(l);n("8378").inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var l="function"==typeof n;l&&(o(n,"name")||r(n,"name",e)),t[e]!==n&&(l&&(o(n,a)||r(n,a,t[e]?""+t[e]:u.join(String(e)))),t===i?t[e]=n:s?t[e]?t[e]=n:r(t,e,n):(delete t[e],r(t,e,n)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[a]||s.call(this)}))},"2aeb":function(t,e,n){var i=n("cb7c"),r=n("1495"),o=n("e11e"),a=n("613b")("IE_PROTO"),s=function(){},l="prototype",u=function(){var t,e=n("230e")("iframe"),i=o.length,r="<",a=">";e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(r+"script"+a+"document.F=Object"+r+"/script"+a),t.close(),u=t.F;while(i--)delete u[l][o[i]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[l]=i(t),n=new s,s[l]=null,n[a]=t):n=u(),void 0===e?n:r(n,e)}},"2af9":function(t,e,n){"use strict";(function(t){n.d(e,"d",(function(){return a}));n("7f7f"),n("cadf"),n("456d"),n("ac6a");var i=n("bc21");n.d(e,"a",(function(){return i["a"]}));var r=n("37c8");n.d(e,"b",(function(){return r["a"]}));var o={GridLayout:r["a"],GridItem:i["a"]};function a(t){a.installed||(a.installed=!0,Object.keys(o).forEach((function(e){t.component(e,o[e])})))}var s={install:a},l=null;"undefined"!==typeof window?l=window.Vue:"undefined"!==typeof t&&(l=t.Vue),l&&l.use(s),e["c"]=o}).call(this,n("c8ba"))},"2b4c":function(t,e,n){var i=n("5537")("wks"),r=n("ca5a"),o=n("7726").Symbol,a="function"==typeof o,s=t.exports=function(t){return i[t]||(i[t]=a&&o[t]||(a?o:r)("Symbol."+t))};s.store=i},"2cef":function(t,e,n){"use strict";t.exports=function(){var t=1;function e(){return t++}return{generate:e}}},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"2f21":function(t,e,n){"use strict";var i=n("79e5");t.exports=function(t,e){return!!t&&i((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},"32e9":function(t,e,n){var i=n("86cc"),r=n("4630");t.exports=n("9e1e")?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},"37c8":function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"item",staticClass:"vue-grid-layout",style:t.mergedStyle},[t._t("default"),n("grid-item",{directives:[{name:"show",rawName:"v-show",value:t.isDragging,expression:"isDragging"}],staticClass:"vue-grid-placeholder",attrs:{x:t.placeholder.x,y:t.placeholder.y,w:t.placeholder.w,h:t.placeholder.h,i:t.placeholder.i}})],2)},r=[];n("8e6e"),n("cadf"),n("456d"),n("f751"),n("fca0"),n("ac6a");function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n("c5f6");var a=n("8bbf"),s=n.n(a),l=n("a2b6"),u=n("97a7"),c=n("bc21"),h=n("1ca7");function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var f=n("eec4"),g={name:"GridLayout",provide:function(){return{eventBus:null,layout:this}},components:{GridItem:c["a"]},props:{autoSize:{type:Boolean,default:!0},colNum:{type:Number,default:12},rowHeight:{type:Number,default:150},maxRows:{type:Number,default:1/0},margin:{type:Array,default:function(){return[10,10]}},isDraggable:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!0},isMirrored:{type:Boolean,default:!1},useCssTransforms:{type:Boolean,default:!0},verticalCompact:{type:Boolean,default:!0},layout:{type:Array,required:!0},responsive:{type:Boolean,default:!1},responsiveLayouts:{type:Object,default:function(){return{}}},breakpoints:{type:Object,default:function(){return{lg:1200,md:996,sm:768,xs:480,xxs:0}}},cols:{type:Object,default:function(){return{lg:12,md:10,sm:6,xs:4,xxs:2}}},preventCollision:{type:Boolean,default:!1},useStyleCursor:{type:Boolean,default:!0}},data:function(){return{width:null,mergedStyle:{},lastLayoutLength:0,isDragging:!1,placeholder:{x:0,y:0,w:0,h:0,i:-1},layouts:{},lastBreakpoint:null,originalLayout:null}},created:function(){var t=this;t.resizeEventHandler=function(e,n,i,r,o,a){t.resizeEvent(e,n,i,r,o,a)},t.dragEventHandler=function(e,n,i,r,o,a){t.dragEvent(e,n,i,r,o,a)},t._provided.eventBus=new s.a,t.eventBus=t._provided.eventBus,t.eventBus.$on("resizeEvent",t.resizeEventHandler),t.eventBus.$on("dragEvent",t.dragEventHandler),t.$emit("layout-created",t.layout)},beforeDestroy:function(){this.eventBus.$off("resizeEvent",this.resizeEventHandler),this.eventBus.$off("dragEvent",this.dragEventHandler),this.eventBus.$destroy(),Object(h["c"])("resize",this.onWindowResize),this.erd&&this.erd.uninstall(this.$refs.item)},beforeMount:function(){this.$emit("layout-before-mount",this.layout)},mounted:function(){this.$emit("layout-mounted",this.layout),this.$nextTick((function(){Object(l["l"])(this.layout),this.originalLayout=this.layout;var t=this;this.$nextTick((function(){t.onWindowResize(),t.initResponsiveFeatures(),Object(h["a"])("resize",t.onWindowResize),Object(l["c"])(t.layout,t.verticalCompact),t.$emit("layout-updated",t.layout),t.updateHeight(),t.$nextTick((function(){this.erd=f({strategy:"scroll",callOnAdd:!1}),this.erd.listenTo(t.$refs.item,(function(){t.onWindowResize()}))}))}))}))},watch:{width:function(t,e){var n=this;this.$nextTick((function(){var t=this;this.eventBus.$emit("updateWidth",this.width),null===e&&this.$nextTick((function(){t.$emit("layout-ready",n.layout)})),this.updateHeight()}))},layout:function(){this.layoutUpdate()},colNum:function(t){this.eventBus.$emit("setColNum",t)},rowHeight:function(){this.eventBus.$emit("setRowHeight",this.rowHeight)},isDraggable:function(){this.eventBus.$emit("setDraggable",this.isDraggable)},isResizable:function(){this.eventBus.$emit("setResizable",this.isResizable)},responsive:function(){this.responsive||(this.$emit("update:layout",this.originalLayout),this.eventBus.$emit("setColNum",this.colNum)),this.onWindowResize()},maxRows:function(){this.eventBus.$emit("setMaxRows",this.maxRows)},margin:function(){this.updateHeight()}},methods:{layoutUpdate:function(){if(void 0!==this.layout&&null!==this.originalLayout){if(this.layout.length!==this.originalLayout.length){var t=this.findDifference(this.layout,this.originalLayout);t.length>0&&(this.layout.length>this.originalLayout.length?this.originalLayout=this.originalLayout.concat(t):this.originalLayout=this.originalLayout.filter((function(e){return!t.some((function(t){return e.i===t.i}))}))),this.lastLayoutLength=this.layout.length,this.initResponsiveFeatures()}Object(l["c"])(this.layout,this.verticalCompact),this.eventBus.$emit("updateWidth",this.width),this.updateHeight(),this.$emit("layout-updated",this.layout)}},updateHeight:function(){this.mergedStyle={height:this.containerHeight()}},onWindowResize:function(){null!==this.$refs&&null!==this.$refs.item&&void 0!==this.$refs.item&&(this.width=this.$refs.item.offsetWidth),this.eventBus.$emit("resizeEvent")},containerHeight:function(){if(this.autoSize){var t=Object(l["a"])(this.layout)*(this.rowHeight+this.margin[1])+this.margin[1]+"px";return t}},dragEvent:function(t,e,n,i,r,o){var a=Object(l["f"])(this.layout,e);void 0!==a&&null!==a||(a={x:0,y:0}),"dragmove"===t||"dragstart"===t?(this.placeholder.i=e,this.placeholder.x=a.x,this.placeholder.y=a.y,this.placeholder.w=o,this.placeholder.h=r,this.$nextTick((function(){this.isDragging=!0})),this.eventBus.$emit("updateWidth",this.width)):this.$nextTick((function(){this.isDragging=!1})),this.layout=Object(l["g"])(this.layout,a,n,i,!0,this.preventCollision),Object(l["c"])(this.layout,this.verticalCompact),this.eventBus.$emit("compact"),this.updateHeight(),"dragend"===t&&this.$emit("layout-updated",this.layout)},resizeEvent:function(t,e,n,i,r,o){var a,s=Object(l["f"])(this.layout,e);if(void 0!==s&&null!==s||(s={h:0,w:0}),this.preventCollision){var u=Object(l["e"])(this.layout,p(p({},s),{},{w:o,h:r})).filter((function(t){return t.i!==s.i}));if(a=u.length>0,a){var c=1/0,h=1/0;u.forEach((function(t){t.x>s.x&&(c=Math.min(c,t.x)),t.y>s.y&&(h=Math.min(h,t.y))})),Number.isFinite(c)&&(s.w=c-s.x),Number.isFinite(h)&&(s.h=h-s.y)}}a||(s.w=o,s.h=r),"resizestart"===t||"resizemove"===t?(this.placeholder.i=e,this.placeholder.x=n,this.placeholder.y=i,this.placeholder.w=s.w,this.placeholder.h=s.h,this.$nextTick((function(){this.isDragging=!0})),this.eventBus.$emit("updateWidth",this.width)):this.$nextTick((function(){this.isDragging=!1})),this.responsive&&this.responsiveGridLayout(),Object(l["c"])(this.layout,this.verticalCompact),this.eventBus.$emit("compact"),this.updateHeight(),"resizeend"===t&&this.$emit("layout-updated",this.layout)},responsiveGridLayout:function(){var t=Object(u["b"])(this.breakpoints,this.width),e=Object(u["c"])(t,this.cols);null==this.lastBreakpoint||this.layouts[this.lastBreakpoint]||(this.layouts[this.lastBreakpoint]=Object(l["b"])(this.layout));var n=Object(u["a"])(this.originalLayout,this.layouts,this.breakpoints,t,this.lastBreakpoint,e,this.verticalCompact);this.layouts[t]=n,this.lastBreakpoint!==t&&this.$emit("breakpoint-changed",t,n),this.$emit("update:layout",n),this.lastBreakpoint=t,this.eventBus.$emit("setColNum",Object(u["c"])(t,this.cols))},initResponsiveFeatures:function(){this.layouts=Object.assign({},this.responsiveLayouts)},findDifference:function(t,e){var n=t.filter((function(t){return!e.some((function(e){return t.i===e.i}))})),i=e.filter((function(e){return!t.some((function(t){return e.i===t.i}))}));return n.concat(i)}}},v=g,m=(n("e279"),n("2877")),y=Object(m["a"])(v,i,r,!1,null,null,null);e["a"]=y.exports},"38fd":function(t,e,n){var i=n("69a8"),r=n("4bf8"),o=n("613b")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},"41a0":function(t,e,n){"use strict";var i=n("2aeb"),r=n("4630"),o=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=i(a,{next:r(1,n)}),o(t,e+" Iterator")}},"456d":function(t,e,n){var i=n("4bf8"),r=n("0d58");n("5eda")("keys",(function(){return function(t){return r(i(t))}}))},4588:function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},4917:function(t,e,n){"use strict";var i=n("cb7c"),r=n("9def"),o=n("0390"),a=n("5f1b");n("214f")("match",1,(function(t,e,n,s){return[function(n){var i=t(this),r=void 0==n?void 0:n[e];return void 0!==r?r.call(n,i):new RegExp(n)[e](String(i))},function(t){var e=s(n,t,this);if(e.done)return e.value;var l=i(t),u=String(this);if(!l.global)return a(l,u);var c=l.unicode;l.lastIndex=0;var h,d=[],p=0;while(null!==(h=a(l,u))){var f=String(h[0]);d[p]=f,""===f&&(l.lastIndex=o(u,r(l.lastIndex),c)),p++}return 0===p?null:d}]}))},"499e":function(t,e,n){"use strict";function i(t,e){for(var n=[],i={},r=0;r<e.length;r++){var o=e[r],a=o[0],s=o[1],l=o[2],u=o[3],c={id:t+":"+r,css:s,media:l,sourceMap:u};i[a]?i[a].parts.push(c):n.push(i[a]={id:a,parts:[c]})}return n}n.r(e),n.d(e,"default",(function(){return f}));var r="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!r)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},a=r&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,u=!1,c=function(){},h=null,d="data-vue-ssr-id",p="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(t,e,n,r){u=n,h=r||{};var a=i(t,e);return g(a),function(e){for(var n=[],r=0;r<a.length;r++){var s=a[r],l=o[s.id];l.refs--,n.push(l)}e?(a=i(t,e),g(a)):a=[];for(r=0;r<n.length;r++){l=n[r];if(0===l.refs){for(var u=0;u<l.parts.length;u++)l.parts[u]();delete o[l.id]}}}}function g(t){for(var e=0;e<t.length;e++){var n=t[e],i=o[n.id];if(i){i.refs++;for(var r=0;r<i.parts.length;r++)i.parts[r](n.parts[r]);for(;r<n.parts.length;r++)i.parts.push(m(n.parts[r]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{var a=[];for(r=0;r<n.parts.length;r++)a.push(m(n.parts[r]));o[n.id]={id:n.id,refs:1,parts:a}}}}function v(){var t=document.createElement("style");return t.type="text/css",a.appendChild(t),t}function m(t){var e,n,i=document.querySelector("style["+d+'~="'+t.id+'"]');if(i){if(u)return c;i.parentNode.removeChild(i)}if(p){var r=l++;i=s||(s=v()),e=x.bind(null,i,r,!1),n=x.bind(null,i,r,!0)}else i=v(),e=b.bind(null,i),n=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else n()}}var y=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}();function x(t,e,n,i){var r=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=y(e,r);else{var o=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function b(t,e){var n=e.css,i=e.media,r=e.sourceMap;if(i&&t.setAttribute("media",i),h.ssrId&&t.setAttribute(d,e.id),r&&(n+="\n/*# sourceURL="+r.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{while(t.firstChild)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},"49ad":function(t,e,n){"use strict";t.exports=function(t){var e={};function n(n){var i=t.get(n);return void 0===i?[]:e[i]||[]}function i(n,i){var r=t.get(n);e[r]||(e[r]=[]),e[r].push(i)}function r(t,e){for(var i=n(t),r=0,o=i.length;r<o;++r)if(i[r]===e){i.splice(r,1);break}}function o(t){var e=n(t);e&&(e.length=0)}return{get:n,add:i,removeListener:r,removeAllListeners:o}}},"4bf8":function(t,e,n){var i=n("be13");t.exports=function(t){return Object(i(t))}},5058:function(t,e,n){"use strict";t.exports=function(t){var e=t.idGenerator,n=t.stateHandler.getState;function i(t){var e=n(t);return e&&void 0!==e.id?e.id:null}function r(t){var i=n(t);if(!i)throw new Error("setId required the element to have a resize detection state.");var r=e.generate();return i.id=r,r}return{get:i,set:r}}},"50bf":function(t,e,n){"use strict";var i=t.exports={};function r(t,e,n){var i=t[e];return void 0!==i&&null!==i||void 0===n?i:n}i.getOption=r},"520a":function(t,e,n){"use strict";var i=n("0bfb"),r=RegExp.prototype.exec,o=String.prototype.replace,a=r,s="lastIndex",l=function(){var t=/a/,e=/b*/g;return r.call(t,"a"),r.call(e,"a"),0!==t[s]||0!==e[s]}(),u=void 0!==/()??/.exec("")[1],c=l||u;c&&(a=function(t){var e,n,a,c,h=this;return u&&(n=new RegExp("^"+h.source+"$(?!\\s)",i.call(h))),l&&(e=h[s]),a=r.call(h,t),l&&a&&(h[s]=h.global?a.index+a[0].length:e),u&&a&&a.length>1&&o.call(a[0],n,(function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(a[c]=void 0)})),a}),t.exports=a},"52a7":function(t,e){e.f={}.propertyIsEnumerable},5537:function(t,e,n){var i=n("8378"),r=n("7726"),o="__core-js_shared__",a=r[o]||(r[o]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n("2d00")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"55dd":function(t,e,n){"use strict";var i=n("5ca1"),r=n("d8e8"),o=n("4bf8"),a=n("79e5"),s=[].sort,l=[1,2,3];i(i.P+i.F*(a((function(){l.sort(void 0)}))||!a((function(){l.sort(null)}))||!n("2f21")(s)),"Array",{sort:function(t){return void 0===t?s.call(o(this)):s.call(o(this),r(t))}})},"5be5":function(t,e,n){"use strict";t.exports=function(t){var e=t.stateHandler.getState;function n(t){var n=e(t);return n&&!!n.isDetectable}function i(t){e(t).isDetectable=!0}function r(t){return!!e(t).busy}function o(t,n){e(t).busy=!!n}return{isDetectable:n,markAsDetectable:i,isBusy:r,markBusy:o}}},"5ca1":function(t,e,n){var i=n("7726"),r=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),l="prototype",u=function(t,e,n){var c,h,d,p,f=t&u.F,g=t&u.G,v=t&u.S,m=t&u.P,y=t&u.B,x=g?i:v?i[e]||(i[e]={}):(i[e]||{})[l],b=g?r:r[e]||(r[e]={}),_=b[l]||(b[l]={});for(c in g&&(n=e),n)h=!f&&x&&void 0!==x[c],d=(h?x:n)[c],p=y&&h?s(d,i):m&&"function"==typeof d?s(Function.call,d):d,x&&a(x,c,d,t&u.U),b[c]!=d&&o(b,c,p),m&&_[c]!=d&&(_[c]=d)};i.core=r,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},"5dbc":function(t,e,n){var i=n("d3f4"),r=n("8b97").set;t.exports=function(t,e,n){var o,a=e.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&i(o)&&r&&r(t,o),t}},"5ed4":function(t,e,n){"use strict";n("6e21")},"5eda":function(t,e,n){var i=n("5ca1"),r=n("8378"),o=n("79e5");t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],a={};a[t]=e(n),i(i.S+i.F*o((function(){n(1)})),"Object",a)}},"5f1b":function(t,e,n){"use strict";var i=n("23c6"),r=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"===typeof n){var o=n.call(t,e);if("object"!==typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==i(t))throw new TypeError("RegExp#exec called on incompatible receiver");return r.call(t,e)}},"613b":function(t,e,n){var i=n("5537")("keys"),r=n("ca5a");t.exports=function(t){return i[t]||(i[t]=r(t))}},"626a":function(t,e,n){var i=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},6821:function(t,e,n){var i=n("626a"),r=n("be13");t.exports=function(t){return i(r(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var i=n("d3f4");t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},"6e21":function(t,e,n){var i=n("9cbe");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("499e").default;r("3cbd0c21",i,!0,{sourceMap:!1,shadowMode:!1})},7333:function(t,e,n){"use strict";var i=n("9e1e"),r=n("0d58"),o=n("2621"),a=n("52a7"),s=n("4bf8"),l=n("626a"),u=Object.assign;t.exports=!u||n("79e5")((function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=i}))?function(t,e){var n=s(t),u=arguments.length,c=1,h=o.f,d=a.f;while(u>c){var p,f=l(arguments[c++]),g=h?r(f).concat(h(f)):r(f),v=g.length,m=0;while(v>m)p=g[m++],i&&!d.call(f,p)||(n[p]=f[p])}return n}:u},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var i=n("4588"),r=Math.max,o=Math.min;t.exports=function(t,e){return t=i(t),t<0?r(t+e,0):o(t,e)}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"7f20":function(t,e,n){var i=n("86cc").f,r=n("69a8"),o=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},"7f7f":function(t,e,n){var i=n("86cc").f,r=Function.prototype,o=/^\s*function ([^ (]*)/,a="name";a in r||n("9e1e")&&i(r,a,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},8378:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},"84f2":function(t,e){t.exports={}},"86cc":function(t,e,n){var i=n("cb7c"),r=n("c69a"),o=n("6a99"),a=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return a(t,e,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"8b97":function(t,e,n){var i=n("d3f4"),r=n("cb7c"),o=function(t,e){if(r(t),!i(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,i){try{i=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2),i(t,[]),e=!(t instanceof Array)}catch(r){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:i(t,n),t}}({},!1):void 0),check:o}},"8bbf":function(t,e){t.exports=n("8bbf")},"8e6e":function(t,e,n){var i=n("5ca1"),r=n("990b"),o=n("6821"),a=n("11e9"),s=n("f1ae");i(i.S,"Object",{getOwnPropertyDescriptors:function(t){var e,n,i=o(t),l=a.f,u=r(i),c={},h=0;while(u.length>h)n=l(i,e=u[h++]),void 0!==n&&s(c,e,n);return c}})},9093:function(t,e,n){var i=n("ce10"),r=n("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},"97a7":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));n("55dd"),n("ac6a"),n("cadf"),n("456d");var i=n("a2b6");function r(t,e){for(var n=s(t),i=n[0],r=1,o=n.length;r<o;r++){var a=n[r];e>t[a]&&(i=a)}return i}function o(t,e){if(!e[t])throw new Error("ResponsiveGridLayout: `cols` entry for breakpoint "+t+" is missing!");return e[t]}function a(t,e,n,r,o,a,l){if(e[r])return Object(i["b"])(e[r]);for(var u=t,c=s(n),h=c.slice(c.indexOf(r)),d=0,p=h.length;d<p;d++){var f=h[d];if(e[f]){u=e[f];break}}return u=Object(i["b"])(u||[]),Object(i["c"])(Object(i["d"])(u,{cols:a}),l)}function s(t){var e=Object.keys(t);return e.sort((function(e,n){return t[e]-t[n]}))}},"990b":function(t,e,n){var i=n("9093"),r=n("2621"),o=n("cb7c"),a=n("7726").Reflect;t.exports=a&&a.ownKeys||function(t){var e=i.f(o(t)),n=r.f;return n?e.concat(n(t)):e}},"9b43":function(t,e,n){var i=n("d8e8");t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var i=n("2b4c")("unscopables"),r=Array.prototype;void 0==r[i]&&n("32e9")(r,i,{}),t.exports=function(t){r[i][t]=!0}},"9cbe":function(t,e,n){e=t.exports=n("2350")(!1),e.push([t.i,'.vue-grid-item{-webkit-transition:all .2s ease;transition:all .2s ease;-webkit-transition-property:left,top,right;transition-property:left,top,right}.vue-grid-item.no-touch{-ms-touch-action:none;touch-action:none}.vue-grid-item.cssTransforms{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;left:0;right:auto}.vue-grid-item.cssTransforms.render-rtl{left:auto;right:0}.vue-grid-item.resizing{opacity:.6;z-index:3}.vue-grid-item.vue-draggable-dragging{-webkit-transition:none;transition:none;z-index:3}.vue-grid-item.vue-grid-placeholder{background:red;opacity:.2;-webkit-transition-duration:.1s;transition-duration:.1s;z-index:2;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.vue-grid-item>.vue-resizable-handle{position:absolute;width:20px;height:20px;bottom:0;right:0;background:url("data:image/svg+xml;base64,PHN2ZyBzdHlsZT0iYmFja2dyb3VuZC1jb2xvcjojZmZmZmZmMDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjYiIGhlaWdodD0iNiI+PHBhdGggZD0iTTYgNkgwVjQuMmg0LjJWMEg2djZ6IiBvcGFjaXR5PSIuMzAyIi8+PC9zdmc+");background-position:100% 100%;padding:0 3px 3px 0;background-repeat:no-repeat;background-origin:content-box;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:se-resize}.vue-grid-item>.vue-rtl-resizable-handle{bottom:0;left:0;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTS0xLTFoMTJ2MTJILTF6Ii8+PGc+PHBhdGggc3Ryb2tlLWxpbmVjYXA9InVuZGVmaW5lZCIgc3Ryb2tlLWxpbmVqb2luPSJ1bmRlZmluZWQiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2U9IiMwMDAiIGZpbGw9Im5vbmUiIGQ9Ik0xNDQuODIxLTM4LjM5M2wtMjAuMzU3LTMxLjc4NSIvPjxwYXRoIHN0cm9rZT0iIzY2NiIgc3Ryb2tlLWxpbmVjYXA9InVuZGVmaW5lZCIgc3Ryb2tlLWxpbmVqb2luPSJ1bmRlZmluZWQiIHN0cm9rZS13aWR0aD0iMiIgZmlsbD0ibm9uZSIgZD0iTS45NDctLjAxOHY5LjEyNU0tLjY1NiA5aDEwLjczIi8+PC9nPjwvc3ZnPg==);background-position:0 100%;padding-left:3px;background-repeat:no-repeat;background-origin:content-box;cursor:sw-resize;right:auto}.vue-grid-item.disable-userselect{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}',""])},"9def":function(t,e,n){var i=n("4588"),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a2b6:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return u})),n.d(e,"f",(function(){return c})),n.d(e,"e",(function(){return d})),n.d(e,"g",(function(){return f})),n.d(e,"j",(function(){return v})),n.d(e,"k",(function(){return m})),n.d(e,"h",(function(){return y})),n.d(e,"i",(function(){return x})),n.d(e,"l",(function(){return _}));n("a481"),n("cadf"),n("456d"),n("ac6a"),n("55dd");function i(t){for(var e,n=0,i=0,r=t.length;i<r;i++)e=t[i].y+t[i].h,e>n&&(n=e);return n}function r(t){for(var e=Array(t.length),n=0,i=t.length;n<i;n++)e[n]=o(t[n]);return e}function o(t){return JSON.parse(JSON.stringify(t))}function a(t,e){return t!==e&&(!(t.x+t.w<=e.x)&&(!(t.x>=e.x+e.w)&&(!(t.y+t.h<=e.y)&&!(t.y>=e.y+e.h))))}function s(t,e){for(var n=p(t),i=b(t),r=Array(t.length),o=0,a=i.length;o<a;o++){var s=i[o];s.static||(s=l(n,s,e),n.push(s)),r[t.indexOf(s)]=s,s.moved=!1}return r}function l(t,e,n){if(n)while(e.y>0&&!h(t,e))e.y--;var i;while(i=h(t,e))e.y=i.y+i.h;return e}function u(t,e){for(var n=p(t),i=0,r=t.length;i<r;i++){var o=t[i];if(o.x+o.w>e.cols&&(o.x=e.cols-o.w),o.x<0&&(o.x=0,o.w=e.cols),o.static)while(h(n,o))o.y++;else n.push(o)}return t}function c(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n].i===e)return t[n]}function h(t,e){for(var n=0,i=t.length;n<i;n++)if(a(t[n],e))return t[n]}function d(t,e){return t.filter((function(t){return a(t,e)}))}function p(t){return t.filter((function(t){return t.static}))}function f(t,e,n,i,r,o){if(e.static)return t;var a=e.x,s=e.y,l=i&&e.y>i;"number"===typeof n&&(e.x=n),"number"===typeof i&&(e.y=i),e.moved=!0;var u=b(t);l&&(u=u.reverse());var c=d(u,e);if(o&&c.length)return e.x=a,e.y=s,e.moved=!1,t;for(var h=0,p=c.length;h<p;h++){var f=c[h];f.moved||(e.y>f.y&&e.y-f.y>f.h/4||(t=f.static?g(t,f,e,r):g(t,e,f,r)))}return t}function g(t,e,n,i){var r=!1;if(i){var o={x:n.x,y:n.y,w:n.w,h:n.h,i:"-1"};if(o.y=Math.max(e.y-n.h,0),!h(t,o))return f(t,n,void 0,o.y,r)}return f(t,n,void 0,n.y+1,r)}function v(t,e,n,i){var r="translate3d("+e+"px,"+t+"px, 0)";return{transform:r,WebkitTransform:r,MozTransform:r,msTransform:r,OTransform:r,width:n+"px",height:i+"px",position:"absolute"}}function m(t,e,n,i){var r="translate3d("+-1*e+"px,"+t+"px, 0)";return{transform:r,WebkitTransform:r,MozTransform:r,msTransform:r,OTransform:r,width:n+"px",height:i+"px",position:"absolute"}}function y(t,e,n,i){return{top:t+"px",left:e+"px",width:n+"px",height:i+"px",position:"absolute"}}function x(t,e,n,i){return{top:t+"px",right:e+"px",width:n+"px",height:i+"px",position:"absolute"}}function b(t){return[].concat(t).sort((function(t,e){return t.y===e.y&&t.x===e.x?0:t.y>e.y||t.y===e.y&&t.x>e.x?1:-1}))}function _(t,e){e=e||"Layout";var n=["x","y","w","h"];if(!Array.isArray(t))throw new Error(e+" must be an array!");for(var i=0,r=t.length;i<r;i++){for(var o=t[i],a=0;a<n.length;a++)if("number"!==typeof o[n[a]])throw new Error("VueGridLayout: "+e+"["+i+"]."+n[a]+" must be a number!");if(o.i&&o.i,void 0!==o.static&&"boolean"!==typeof o.static)throw new Error("VueGridLayout: "+e+"["+i+"].static must be a boolean!")}}},a481:function(t,e,n){"use strict";var i=n("cb7c"),r=n("4bf8"),o=n("9def"),a=n("4588"),s=n("0390"),l=n("5f1b"),u=Math.max,c=Math.min,h=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g,f=function(t){return void 0===t?t:String(t)};n("214f")("replace",2,(function(t,e,n,g){return[function(i,r){var o=t(this),a=void 0==i?void 0:i[e];return void 0!==a?a.call(i,o,r):n.call(String(o),i,r)},function(t,e){var r=g(n,t,this,e);if(r.done)return r.value;var h=i(t),d=String(this),p="function"===typeof e;p||(e=String(e));var m=h.global;if(m){var y=h.unicode;h.lastIndex=0}var x=[];while(1){var b=l(h,d);if(null===b)break;if(x.push(b),!m)break;var _=String(b[0]);""===_&&(h.lastIndex=s(d,o(h.lastIndex),y))}for(var w="",S=0,M=0;M<x.length;M++){b=x[M];for(var I=String(b[0]),C=u(c(a(b.index),d.length),0),T=[],A=1;A<b.length;A++)T.push(f(b[A]));var D=b.groups;if(p){var k=[I].concat(T,C,d);void 0!==D&&k.push(D);var L=String(e.apply(void 0,k))}else L=v(I,d,C,T,D,e);C>=S&&(w+=d.slice(S,C)+L,S=C+I.length)}return w+d.slice(S)}];function v(t,e,i,o,a,s){var l=i+t.length,u=o.length,c=p;return void 0!==a&&(a=r(a),c=d),n.call(s,c,(function(n,r){var s;switch(r.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,i);case"'":return e.slice(l);case"<":s=a[r.slice(1,-1)];break;default:var c=+r;if(0===c)return n;if(c>u){var d=h(c/10);return 0===d?n:d<=u?void 0===o[d-1]?r.charAt(1):o[d-1]+r.charAt(1):n}s=o[c-1]}return void 0===s?"":s}))}}))},aa77:function(t,e,n){var i=n("5ca1"),r=n("be13"),o=n("79e5"),a=n("fdef"),s="["+a+"]",l="
",u=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),h=function(t,e,n){var r={},s=o((function(){return!!a[t]()||l[t]()!=l})),u=r[t]=s?e(d):a[t];n&&(r[n]=u),i(i.P+i.F*s,"String",r)},d=h.trim=function(t,e){return t=String(r(t)),1&e&&(t=t.replace(u,"")),2&e&&(t=t.replace(c,"")),t};t.exports=h},abb4:function(t,e,n){"use strict";t.exports=function(t){function e(){}var n={log:e,warn:e,error:e};if(!t&&window.console){var i=function(t,e){t[e]=function(){var t=console[e];if(t.apply)t.apply(console,arguments);else for(var n=0;n<arguments.length;n++)t(arguments[n])}};i(n,"log"),i(n,"warn"),i(n,"error")}return n}},ac6a:function(t,e,n){for(var i=n("cadf"),r=n("0d58"),o=n("2aba"),a=n("7726"),s=n("32e9"),l=n("84f2"),u=n("2b4c"),c=u("iterator"),h=u("toStringTag"),d=l.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},f=r(p),g=0;g<f.length;g++){var v,m=f[g],y=p[m],x=a[m],b=x&&x.prototype;if(b&&(b[c]||s(b,c,d),b[h]||s(b,h,m),l[m]=d,y))for(v in i)b[v]||o(b,v,i[v],!0)}},ad20:function(t,e,n){e=t.exports=n("2350")(!1),e.push([t.i,".vue-grid-layout{position:relative;-webkit-transition:height .2s ease;transition:height .2s ease}",""])},b0c5:function(t,e,n){"use strict";var i=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},b770:function(t,e,n){"use strict";var i=t.exports={};i.forEach=function(t,e){for(var n=0;n<t.length;n++){var i=e(t[n]);if(i)return i}}},bc21:function(t,e,n){"use strict";var i={};n.r(i),n.d(i,"edgeTarget",(function(){return gn})),n.d(i,"elements",(function(){return vn})),n.d(i,"grid",(function(){return mn}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"item",staticClass:"vue-grid-item",class:t.classObj,style:t.style},[t._t("default"),t.resizableAndNotStatic?n("span",{ref:"handle",class:t.resizableHandleClass}):t._e()],2)},o=[],a=(n("a481"),n("4917"),n("c5f6"),n("a2b6"));function s(t){return l(t)}function l(t){var e=t.target.offsetParent||document.body,n=t.offsetParent===document.body?{left:0,top:0}:e.getBoundingClientRect(),i=t.clientX+e.scrollLeft-n.left,r=t.clientY+e.scrollTop-n.top;return{x:i,y:r}}function u(t,e,n,i){var r=!c(t);return r?{deltaX:0,deltaY:0,lastX:n,lastY:i,x:n,y:i}:{deltaX:n-t,deltaY:i-e,lastX:t,lastY:e,x:n,y:i}}function c(t){return"number"===typeof t&&!isNaN(t)}var h=n("97a7"),d=n("1ca7");const p={init:v,document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function f(){}var g=p;function v(t){const e=t;p.document=e.document,p.DocumentFragment=e.DocumentFragment||f,p.SVGElement=e.SVGElement||f,p.SVGSVGElement=e.SVGSVGElement||f,p.SVGElementInstance=e.SVGElementInstance||f,p.Element=e.Element||f,p.HTMLElement=e.HTMLElement||p.Element,p.Event=e.Event,p.Touch=e.Touch||f,p.PointerEvent=e.PointerEvent||e.MSPointerEvent}var m=t=>!(!t||!t.Window)&&t instanceof t.Window;let y=void 0,x=void 0;function b(t){y=t;const e=t.document.createTextNode("");e.ownerDocument!==t.document&&"function"===typeof t.wrap&&t.wrap(e)===e&&(t=t.wrap(t)),x=t}function _(t){if(m(t))return t;const e=t.ownerDocument||t;return e.defaultView||x.window}"undefined"!==typeof window&&window&&b(window);const w=t=>t===x||m(t),S=t=>M(t)&&11===t.nodeType,M=t=>!!t&&"object"===typeof t,I=t=>"function"===typeof t,C=t=>"number"===typeof t,T=t=>"boolean"===typeof t,A=t=>"string"===typeof t,D=t=>{if(!t||"object"!==typeof t)return!1;const e=_(t)||x;return/object|function/.test(typeof e.Element)?t instanceof e.Element:1===t.nodeType&&"string"===typeof t.nodeName},k=t=>M(t)&&!!t.constructor&&/function Object\b/.test(t.constructor.toString()),L=t=>M(t)&&"undefined"!==typeof t.length&&I(t.splice);var P={window:w,docFrag:S,object:M,func:I,number:C,bool:T,string:A,element:D,plainObject:k,array:L};const O={init:E,supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null};function E(t){const e=g.Element,n=x.navigator;O.supportsTouch="ontouchstart"in t||P.func(t.DocumentTouch)&&g.document instanceof t.DocumentTouch,O.supportsPointerEvent=!1!==n.pointerEnabled&&!!g.PointerEvent,O.isIOS=/iP(hone|od|ad)/.test(n.platform),O.isIOS7=/iP(hone|od|ad)/.test(n.platform)&&/OS 7[^\d]/.test(n.appVersion),O.isIe9=/MSIE 9/.test(n.userAgent),O.isOperaMobile="Opera"===n.appName&&O.supportsTouch&&/Presto/.test(n.userAgent),O.prefixedMatchesSelector="matches"in e.prototype?"matches":"webkitMatchesSelector"in e.prototype?"webkitMatchesSelector":"mozMatchesSelector"in e.prototype?"mozMatchesSelector":"oMatchesSelector"in e.prototype?"oMatchesSelector":"msMatchesSelector",O.pEventTypes=O.supportsPointerEvent?g.PointerEvent===t.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,O.wheelEvent="onmousewheel"in g.document?"mousewheel":"wheel"}var R=O;const N=(t,e)=>-1!==t.indexOf(e),z=(t,e)=>{for(const n of e)t.push(n);return t},B=t=>z([],t),V=(t,e)=>{for(let n=0;n<t.length;n++)if(e(t[n],n,t))return n;return-1},F=(t,e)=>t[V(t,e)];function H(t){const e={};for(const n in t){const i=t[n];P.plainObject(i)?e[n]=H(i):P.array(i)?e[n]=B(i):e[n]=i}return e}function $(t,e){for(const i in e)t[i]=e[i];const n=t;return n}let W,G,j=0;function Y(t){if(W=t.requestAnimationFrame,G=t.cancelAnimationFrame,!W){const e=["ms","moz","webkit","o"];for(const n of e)W=t[n+"RequestAnimationFrame"],G=t[n+"CancelAnimationFrame"]||t[n+"CancelRequestAnimationFrame"]}W=W&&W.bind(t),G=G&&G.bind(t),W||(W=e=>{const n=Date.now(),i=Math.max(0,16-(n-j)),r=t.setTimeout(()=>{e(n+i)},i);return j=n+i,r},G=t=>clearTimeout(t))}var X={request:t=>W(t),cancel:t=>G(t),init:Y};function U(t,e,n){if(n=n||{},P.string(t)&&-1!==t.search(" ")&&(t=Z(t)),P.array(t))return t.reduce((t,i)=>$(t,U(i,e,n)),n);if(P.object(t)&&(e=t,t=""),P.func(e))n[t]=n[t]||[],n[t].push(e);else if(P.array(e))for(const i of e)U(t,i,n);else if(P.object(e))for(const i in e){const r=Z(i).map(e=>`${t}${e}`);U(r,e[i],n)}return n}function Z(t){return t.trim().split(/ +/)}function q(t,e){for(const n of e){if(t.immediatePropagationStopped)break;n(t)}}class K{constructor(t){this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=$({},t||{})}fire(t){let e;const n=this.global;(e=this.types[t.type])&&q(t,e),!t.propagationStopped&&n&&(e=n[t.type])&&q(t,e)}on(t,e){const n=U(t,e);for(t in n)this.types[t]=z(this.types[t]||[],n[t])}off(t,e){const n=U(t,e);for(t in n){const e=this.types[t];if(e&&e.length)for(const i of n[t]){const t=e.indexOf(i);-1!==t&&e.splice(t,1)}}}getRect(t){return null}}function J(t,e){if(t.contains)return t.contains(e);while(e){if(e===t)return!0;e=e.parentNode}return!1}function Q(t,e){while(P.element(t)){if(et(t,e))return t;t=tt(t)}return null}function tt(t){let e=t.parentNode;if(P.docFrag(e)){while((e=e.host)&&P.docFrag(e));return e}return e}function et(t,e){return x!==y&&(e=e.replace(/\/deep\//g," ")),t[R.prefixedMatchesSelector](e)}function nt(t,e,n){while(P.element(t)){if(et(t,e))return!0;if(t=tt(t),t===n)return et(t,e)}return!1}function it(t){return t.correspondingUseElement||t}function rt(t){return t=t||x,{x:t.scrollX||t.document.documentElement.scrollLeft,y:t.scrollY||t.document.documentElement.scrollTop}}function ot(t){const e=t instanceof g.SVGElement?t.getBoundingClientRect():t.getClientRects()[0];return e&&{left:e.left,right:e.right,top:e.top,bottom:e.bottom,width:e.width||e.right-e.left,height:e.height||e.bottom-e.top}}function at(t){const e=ot(t);if(!R.isIOS7&&e){const n=rt(_(t));e.left+=n.x,e.right+=n.x,e.top+=n.y,e.bottom+=n.y}return e}function st(t){return!!P.string(t)&&(g.document.querySelector(t),!0)}function lt(t,e,n){return"parent"===t?tt(n):"self"===t?e.getRect(n):Q(n,t)}function ut(t,e,n,i){let r=t;return P.string(r)?r=lt(r,e,n):P.func(r)&&(r=r(...i)),P.element(r)&&(r=at(r)),r}function ct(t){return t&&{x:"x"in t?t.x:t.left,y:"y"in t?t.y:t.top}}function ht(t){return!t||"left"in t&&"top"in t||(t=$({},t),t.left=t.x||0,t.top=t.y||0,t.right=t.right||t.left+t.width,t.bottom=t.bottom||t.top+t.height),t}function dt(t){return!t||"x"in t&&"y"in t||(t=$({},t),t.x=t.left||0,t.y=t.top||0,t.width=t.width||(t.right||0)-t.x,t.height=t.height||(t.bottom||0)-t.y),t}function pt(t,e,n){t.left&&(e.left+=n.x),t.right&&(e.right+=n.x),t.top&&(e.top+=n.y),t.bottom&&(e.bottom+=n.y),e.width=e.right-e.left,e.height=e.bottom-e.top}var ft=function(t,e,n){const i=t.options[n],r=i&&i.origin,o=r||t.options.origin,a=ut(o,t,e,[t&&e]);return ct(a)||{x:0,y:0}},gt=(t,e)=>Math.sqrt(t*t+e*e);class vt{constructor(t){this.type=void 0,this.target=void 0,this.currentTarget=void 0,this.interactable=void 0,this._interaction=void 0,this.timeStamp=void 0,this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=t}preventDefault(){}stopPropagation(){this.propagationStopped=!0}stopImmediatePropagation(){this.immediatePropagationStopped=this.propagationStopped=!0}}Object.defineProperty(vt.prototype,"interaction",{get(){return this._interaction._proxy},set(){}});const mt={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}};class yt extends vt{constructor(t,e,n,i,r,o,a){super(t),this.target=void 0,this.currentTarget=void 0,this.relatedTarget=null,this.screenX=void 0,this.screenY=void 0,this.button=void 0,this.buttons=void 0,this.ctrlKey=void 0,this.shiftKey=void 0,this.altKey=void 0,this.metaKey=void 0,this.page=void 0,this.client=void 0,this.delta=void 0,this.rect=void 0,this.x0=void 0,this.y0=void 0,this.t0=void 0,this.dt=void 0,this.duration=void 0,this.clientX0=void 0,this.clientY0=void 0,this.velocity=void 0,this.speed=void 0,this.swipe=void 0,this.timeStamp=void 0,this.axes=void 0,this.preEnd=void 0,r=r||t.element;const s=t.interactable,l=(s&&s.options||mt).deltaSource,u=ft(s,r,n),c="start"===i,h="end"===i,d=c?this:t.prevEvent,p=c?t.coords.start:h?{page:d.page,client:d.client,timeStamp:t.coords.cur.timeStamp}:t.coords.cur;this.page=$({},p.page),this.client=$({},p.client),this.rect=$({},t.rect),this.timeStamp=p.timeStamp,h||(this.page.x-=u.x,this.page.y-=u.y,this.client.x-=u.x,this.client.y-=u.y),this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.button=e.button,this.buttons=e.buttons,this.target=r,this.currentTarget=r,this.preEnd=o,this.type=a||n+(i||""),this.interactable=s,this.t0=c?t.pointers[t.pointers.length-1].downTime:d.t0,this.x0=t.coords.start.page.x-u.x,this.y0=t.coords.start.page.y-u.y,this.clientX0=t.coords.start.client.x-u.x,this.clientY0=t.coords.start.client.y-u.y,this.delta=c||h?{x:0,y:0}:{x:this[l].x-d[l].x,y:this[l].y-d[l].y},this.dt=t.coords.delta.timeStamp,this.duration=this.timeStamp-this.t0,this.velocity=$({},t.coords.velocity[l]),this.speed=gt(this.velocity.x,this.velocity.y),this.swipe=h||"inertiastart"===i?this.getSwipe():null}getSwipe(){const t=this._interaction;if(t.prevEvent.speed<600||this.timeStamp-t.prevEvent.timeStamp>150)return null;let e=180*Math.atan2(t.prevEvent.velocityY,t.prevEvent.velocityX)/Math.PI;const n=22.5;e<0&&(e+=360);const i=135-n<=e&&e<225+n,r=225-n<=e&&e<315+n,o=!i&&(315-n<=e||e<45+n),a=!r&&45-n<=e&&e<135+n;return{up:r,down:a,left:i,right:o,angle:e,speed:t.prevEvent.speed,velocity:{x:t.prevEvent.velocityX,y:t.prevEvent.velocityY}}}preventDefault(){}stopImmediatePropagation(){this.immediatePropagationStopped=this.propagationStopped=!0}stopPropagation(){this.propagationStopped=!0}}function xt(t,e){if(e.phaselessTypes[t])return!0;for(const n in e.map)if(0===t.indexOf(n)&&t.substr(n.length)in e.phases)return!0;return!1}Object.defineProperties(yt.prototype,{pageX:{get(){return this.page.x},set(t){this.page.x=t}},pageY:{get(){return this.page.y},set(t){this.page.y=t}},clientX:{get(){return this.client.x},set(t){this.client.x=t}},clientY:{get(){return this.client.y},set(t){this.client.y=t}},dx:{get(){return this.delta.x},set(t){this.delta.x=t}},dy:{get(){return this.delta.y},set(t){this.delta.y=t}},velocityX:{get(){return this.velocity.x},set(t){this.velocity.x=t}},velocityY:{get(){return this.velocity.y},set(t){this.velocity.y=t}}});class bt{get _defaults(){return{base:{},perAction:{},actions:{}}}constructor(t,e,n,i){this.options=void 0,this._actions=void 0,this.target=void 0,this.events=new K,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._rectChecker=void 0,this._actions=e.actions,this.target=t,this._context=e.context||n,this._win=_(st(t)?this._context:t),this._doc=this._win.document,this._scopeEvents=i,this.set(e)}setOnEvents(t,e){return P.func(e.onstart)&&this.on(t+"start",e.onstart),P.func(e.onmove)&&this.on(t+"move",e.onmove),P.func(e.onend)&&this.on(t+"end",e.onend),P.func(e.oninertiastart)&&this.on(t+"inertiastart",e.oninertiastart),this}updatePerActionListeners(t,e,n){(P.array(e)||P.object(e))&&this.off(t,e),(P.array(n)||P.object(n))&&this.on(t,n)}setPerAction(t,e){const n=this._defaults;for(const i in e){const r=i,o=this.options[t],a=e[r];"listeners"===r&&this.updatePerActionListeners(t,o.listeners,a),P.array(a)?o[r]=B(a):P.plainObject(a)?(o[r]=$(o[r]||{},H(a)),P.object(n.perAction[r])&&"enabled"in n.perAction[r]&&(o[r].enabled=!1!==a.enabled)):P.bool(a)&&P.object(n.perAction[r])?o[r].enabled=a:o[r]=a}}getRect(t){return t=t||(P.element(this.target)?this.target:null),P.string(this.target)&&(t=t||this._context.querySelector(this.target)),at(t)}rectChecker(t){return P.func(t)?(this._rectChecker=t,this.getRect=t=>{const e=$({},this._rectChecker(t));return"width"in e||(e.width=e.right-e.left,e.height=e.bottom-e.top),e},this):null===t?(delete this.getRect,delete this._rectChecker,this):this.getRect}_backCompatOption(t,e){if(st(e)||P.object(e)){this.options[t]=e;for(const n in this._actions.map)this.options[n][t]=e;return this}return this.options[t]}origin(t){return this._backCompatOption("origin",t)}deltaSource(t){return"page"===t||"client"===t?(this.options.deltaSource=t,this):this.options.deltaSource}context(){return this._context}inContext(t){return this._context===t.ownerDocument||J(this._context,t)}testIgnoreAllow(t,e,n){return!this.testIgnore(t.ignoreFrom,e,n)&&this.testAllow(t.allowFrom,e,n)}testAllow(t,e,n){return!t||!!P.element(n)&&(P.string(t)?nt(n,t,e):!!P.element(t)&&J(t,n))}testIgnore(t,e,n){return!(!t||!P.element(n))&&(P.string(t)?nt(n,t,e):!!P.element(t)&&J(t,n))}fire(t){return this.events.fire(t),this}_onOff(t,e,n,i){P.object(e)&&!P.array(e)&&(i=n,n=null);const r="on"===t?"add":"remove",o=U(e,n);for(let a in o){"wheel"===a&&(a=R.wheelEvent);for(const e of o[a])xt(a,this._actions)?this.events[t](a,e):P.string(this.target)?this._scopeEvents[r+"Delegate"](this.target,this._context,a,e,i):this._scopeEvents[r](this.target,a,e,i)}return this}on(t,e,n){return this._onOff("on",t,e,n)}off(t,e,n){return this._onOff("off",t,e,n)}set(t){const e=this._defaults;P.object(t)||(t={}),this.options=H(e.base);for(const n in this._actions.methodDict){const i=n,r=this._actions.methodDict[i];this.options[i]={},this.setPerAction(i,$($({},e.perAction),e.actions[i])),this[r](t[i])}for(const n in t)P.func(this[n])&&this[n](t[n]);return this}unset(){if(P.string(this.target))for(const t in this._scopeEvents.delegatedEvents){const e=this._scopeEvents.delegatedEvents[t];for(let n=e.length-1;n>=0;n--){const{selector:i,context:r,listeners:o}=e[n];i===this.target&&r===this._context&&e.splice(n,1);for(let e=o.length-1;e>=0;e--)this._scopeEvents.removeDelegate(this.target,this._context,t,o[e][0],o[e][1])}}else this._scopeEvents.remove(this.target,"all")}}class _t{constructor(t){this.list=[],this.selectorMap={},this.scope=void 0,this.scope=t,t.addListeners({"interactable:unset":({interactable:t})=>{const{target:e,_context:n}=t,i=P.string(e)?this.selectorMap[e]:e[this.scope.id],r=V(i,t=>t.context===n);i[r]&&(i[r].context=null,i[r].interactable=null),i.splice(r,1)}})}new(t,e){e=$(e||{},{actions:this.scope.actions});const n=new this.scope.Interactable(t,e,this.scope.document,this.scope.events),i={context:n._context,interactable:n};return this.scope.addDocument(n._doc),this.list.push(n),P.string(t)?(this.selectorMap[t]||(this.selectorMap[t]=[]),this.selectorMap[t].push(i)):(n.target[this.scope.id]||Object.defineProperty(t,this.scope.id,{value:[],configurable:!0}),t[this.scope.id].push(i)),this.scope.fire("interactable:new",{target:t,options:e,interactable:n,win:this.scope._win}),n}get(t,e){const n=e&&e.context||this.scope.document,i=P.string(t),r=i?this.selectorMap[t]:t[this.scope.id];if(!r)return null;const o=F(r,e=>e.context===n&&(i||e.interactable.inContext(t)));return o&&o.interactable}forEachMatch(t,e){for(const n of this.list){let i;if((P.string(n.target)?P.element(t)&&et(t,n.target):t===n.target)&&n.inContext(t)&&(i=e(n)),void 0!==i)return i}}}function wt(t,e){for(const n in e){const i=wt.prefixedPropREs;let r=!1;for(const t in i)if(0===n.indexOf(t)&&i[t].test(n)){r=!0;break}r||"function"===typeof e[n]||(t[n]=e[n])}return t}wt.prefixedPropREs={webkit:/(Movement[XY]|Radius[XY]|RotationAngle|Force)$/,moz:/(Pressure)$/};var St=wt;function Mt(t,e){t.page=t.page||{},t.page.x=e.page.x,t.page.y=e.page.y,t.client=t.client||{},t.client.x=e.client.x,t.client.y=e.client.y,t.timeStamp=e.timeStamp}function It(t,e,n){t.page.x=n.page.x-e.page.x,t.page.y=n.page.y-e.page.y,t.client.x=n.client.x-e.client.x,t.client.y=n.client.y-e.client.y,t.timeStamp=n.timeStamp-e.timeStamp}function Ct(t,e){const n=Math.max(e.timeStamp/1e3,.001);t.page.x=e.page.x/n,t.page.y=e.page.y/n,t.client.x=e.client.x/n,t.client.y=e.client.y/n,t.timeStamp=n}function Tt(t){t.page.x=0,t.page.y=0,t.client.x=0,t.client.y=0}function At(t){return t instanceof g.Event||t instanceof g.Touch}function Dt(t,e,n){return n=n||{},t=t||"page",n.x=e[t+"X"],n.y=e[t+"Y"],n}function kt(t,e){return e=e||{x:0,y:0},R.isOperaMobile&&At(t)?(Dt("screen",t,e),e.x+=window.scrollX,e.y+=window.scrollY):Dt("page",t,e),e}function Lt(t,e){return e=e||{},R.isOperaMobile&&At(t)?Dt("screen",t,e):Dt("client",t,e),e}function Pt(t){return P.number(t.pointerId)?t.pointerId:t.identifier}function Ot(t,e,n){const i=e.length>1?Rt(e):e[0];kt(i,t.page),Lt(i,t.client),t.timeStamp=n}function Et(t){const e=[];return P.array(t)?(e[0]=t[0],e[1]=t[1]):"touchend"===t.type?1===t.touches.length?(e[0]=t.touches[0],e[1]=t.changedTouches[0]):0===t.touches.length&&(e[0]=t.changedTouches[0],e[1]=t.changedTouches[1]):(e[0]=t.touches[0],e[1]=t.touches[1]),e}function Rt(t){const e={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0};for(const n of t)for(const t in e)e[t]+=n[t];for(const n in e)e[n]/=t.length;return e}function Nt(t){if(!t.length)return null;const e=Et(t),n=Math.min(e[0].pageX,e[1].pageX),i=Math.min(e[0].pageY,e[1].pageY),r=Math.max(e[0].pageX,e[1].pageX),o=Math.max(e[0].pageY,e[1].pageY);return{x:n,y:i,left:n,top:i,right:r,bottom:o,width:r-n,height:o-i}}function zt(t,e){const n=e+"X",i=e+"Y",r=Et(t),o=r[0][n]-r[1][n],a=r[0][i]-r[1][i];return gt(o,a)}function Bt(t,e){const n=e+"X",i=e+"Y",r=Et(t),o=r[1][n]-r[0][n],a=r[1][i]-r[0][i],s=180*Math.atan2(a,o)/Math.PI;return s}function Vt(t){return P.string(t.pointerType)?t.pointerType:P.number(t.pointerType)?[void 0,void 0,"touch","pen","mouse"][t.pointerType]:/touch/.test(t.type)||t instanceof g.Touch?"touch":"mouse"}function Ft(t){const e=P.func(t.composedPath)?t.composedPath():t.path;return[it(e?e[0]:t.target),it(t.currentTarget)]}function Ht(){return{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}}function $t(t){const e=[],n={},i=[],r={add:o,remove:a,addDelegate:s,removeDelegate:l,delegateListener:u,delegateUseCapture:c,delegatedEvents:n,documents:i,targets:e,supportsOptions:!1,supportsPassive:!1};function o(t,n,i,o){const a=Gt(o);let s=F(e,e=>e.eventTarget===t);s||(s={eventTarget:t,events:{}},e.push(s)),s.events[n]||(s.events[n]=[]),t.addEventListener&&!N(s.events[n],i)&&(t.addEventListener(n,i,r.supportsOptions?a:a.capture),s.events[n].push(i))}function a(t,n,i,o){const s=Gt(o),l=V(e,e=>e.eventTarget===t),u=e[l];if(!u||!u.events)return;if("all"===n){for(n in u.events)u.events.hasOwnProperty(n)&&a(t,n,"all");return}let c=!1;const h=u.events[n];if(h){if("all"===i){for(let e=h.length-1;e>=0;e--)a(t,n,h[e],s);return}for(let e=0;e<h.length;e++)if(h[e]===i){t.removeEventListener(n,i,r.supportsOptions?s:s.capture),h.splice(e,1),0===h.length&&(delete u.events[n],c=!0);break}}c&&!Object.keys(u.events).length&&e.splice(l,1)}function s(t,e,r,a,s){const l=Gt(s);if(!n[r]){n[r]=[];for(const t of i)o(t,r,u),o(t,r,c,!0)}const h=n[r];let d=F(h,n=>n.selector===t&&n.context===e);d||(d={selector:t,context:e,listeners:[]},h.push(d)),d.listeners.push([a,l])}function l(t,e,i,r,o){const s=Gt(o),l=n[i];let h,d=!1;if(l)for(h=l.length-1;h>=0;h--){const n=l[h];if(n.selector===t&&n.context===e){const{listeners:t}=n;for(let n=t.length-1;n>=0;n--){const[o,{capture:p,passive:f}]=t[n];if(o===r&&p===s.capture&&f===s.passive){t.splice(n,1),t.length||(l.splice(h,1),a(e,i,u),a(e,i,c,!0)),d=!0;break}}if(d)break}}}function u(t,e){const i=Gt(e),r=new Wt(t),o=n[t.type],[a]=Ft(t);let s=a;while(P.element(s)){for(let t=0;t<o.length;t++){const e=o[t],{selector:n,context:l}=e;if(et(s,n)&&J(l,a)&&J(l,s)){const{listeners:t}=e;r.currentTarget=s;for(const[e,{capture:n,passive:o}]of t)n===i.capture&&o===i.passive&&e(r)}}s=tt(s)}}function c(t){return u.call(this,t,!0)}return t.document.createElement("div").addEventListener("test",null,{get capture(){return r.supportsOptions=!0},get passive(){return r.supportsPassive=!0}}),t.events=r,r}class Wt{constructor(t){this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=t,St(this,t)}preventOriginalDefault(){this.originalEvent.preventDefault()}stopPropagation(){this.originalEvent.stopPropagation()}stopImmediatePropagation(){this.originalEvent.stopImmediatePropagation()}}function Gt(t){if(!P.object(t))return{capture:!!t,passive:!1};const e=$({},t);return e.capture=!!t.capture,e.passive=!!t.passive,e}var jt={id:"events",install:$t};function Yt(t,e){let n=!1;return function(){return n||(x.console.warn(e),n=!0),t.apply(this,arguments)}}function Xt(t,e){return t.name=e.name,t.axis=e.axis,t.edges=e.edges,t}function Ut(t){const e=(n,i)=>{let r=t.interactables.get(n,i);return r||(r=t.interactables.new(n,i),r.events.global=e.globalEvents),r};return e.getPointerAverage=Rt,e.getTouchBBox=Nt,e.getTouchDistance=zt,e.getTouchAngle=Bt,e.getElementRect=at,e.getElementClientRect=ot,e.matchesSelector=et,e.closest=Q,e.globalEvents={},e.version="1.10.2",e.scope=t,e.use=function(t,e){return this.scope.usePlugin(t,e),this},e.isSet=function(t,e){return!!this.scope.interactables.get(t,e&&e.context)},e.on=Yt((function(t,e,n){if(P.string(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),P.array(t)){for(const i of t)this.on(i,e,n);return this}if(P.object(t)){for(const n in t)this.on(n,t[n],e);return this}return xt(t,this.scope.actions)?this.globalEvents[t]?this.globalEvents[t].push(e):this.globalEvents[t]=[e]:this.scope.events.add(this.scope.document,t,e,{options:n}),this}),"The interact.on() method is being deprecated"),e.off=Yt((function(t,e,n){if(P.string(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),P.array(t)){for(const i of t)this.off(i,e,n);return this}if(P.object(t)){for(const n in t)this.off(n,t[n],e);return this}if(xt(t,this.scope.actions)){let n;t in this.globalEvents&&-1!==(n=this.globalEvents[t].indexOf(e))&&this.globalEvents[t].splice(n,1)}else this.scope.events.remove(this.scope.document,t,e,n);return this}),"The interact.off() method is being deprecated"),e.debug=function(){return this.scope},e.supportsTouch=function(){return R.supportsTouch},e.supportsPointerEvent=function(){return R.supportsPointerEvent},e.stop=function(){for(const t of this.scope.interactions.list)t.stop();return this},e.pointerMoveTolerance=function(t){return P.number(t)?(this.scope.interactions.pointerMoveTolerance=t,this):this.scope.interactions.pointerMoveTolerance},e.addDocument=function(t,e){this.scope.addDocument(t,e)},e.removeDocument=function(t){this.scope.removeDocument(t)},e}class Zt{constructor(t,e,n,i,r){this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=t,this.pointer=e,this.event=n,this.downTime=i,this.downTarget=r}}let qt,Kt;(function(t){t["interactable"]="",t["element"]="",t["prepared"]="",t["pointerIsDown"]="",t["pointerWasMoved"]="",t["_proxy"]=""})(qt||(qt={})),function(t){t["start"]="",t["move"]="",t["end"]="",t["stop"]="",t["interacting"]=""}(Kt||(Kt={}));let Jt=0;class Qt{get pointerMoveTolerance(){return 1}constructor({pointerType:t,scopeFire:e}){this.interactable=null,this.element=null,this.rect=void 0,this._rects=void 0,this.edges=void 0,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=null,this.simulation=null,this.doMove=Yt((function(t){this.move(t)}),"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:Ht(),prev:Ht(),cur:Ht(),delta:Ht(),velocity:Ht()},this._id=Jt++,this._scopeFire=e,this.pointerType=t;const n=this;this._proxy={};for(const i in qt)Object.defineProperty(this._proxy,i,{get(){return n[i]}});for(const i in Kt)Object.defineProperty(this._proxy,i,{value:(...t)=>n[i](...t)});this._scopeFire("interactions:new",{interaction:this})}pointerDown(t,e,n){const i=this.updatePointer(t,e,n,!0),r=this.pointers[i];this._scopeFire("interactions:down",{pointer:t,event:e,eventTarget:n,pointerIndex:i,pointerInfo:r,type:"down",interaction:this})}start(t,e,n){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<("gesture"===t.name?2:1)||!e.options[t.name].enabled)&&(Xt(this.prepared,t),this.interactable=e,this.element=n,this.rect=e.getRect(n),this.edges=this.prepared.edges?$({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}pointerMove(t,e,n){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(t,e,n,!1);const i=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;let r,o;this.pointerIsDown&&!this.pointerWasMoved&&(r=this.coords.cur.client.x-this.coords.start.client.x,o=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=gt(r,o)>this.pointerMoveTolerance);const a=this.getPointerIndex(t),s={pointer:t,pointerIndex:a,pointerInfo:this.pointers[a],event:e,type:"move",eventTarget:n,dx:r,dy:o,duplicate:i,interaction:this};i||Ct(this.coords.velocity,this.coords.delta),this._scopeFire("interactions:move",s),i||this.simulation||(this.interacting()&&(s.type=null,this.move(s)),this.pointerWasMoved&&Mt(this.coords.prev,this.coords.cur))}move(t){t&&t.event||Tt(this.coords.delta),t=$({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},t||{}),t.phase="move",this._doPhase(t)}pointerUp(t,e,n,i){let r=this.getPointerIndex(t);-1===r&&(r=this.updatePointer(t,e,n,!1));const o=/cancel$/i.test(e.type)?"cancel":"up";this._scopeFire("interactions:"+o,{pointer:t,pointerIndex:r,pointerInfo:this.pointers[r],event:e,eventTarget:n,type:o,curEventTarget:i,interaction:this}),this.simulation||this.end(e),this.removePointer(t,e)}documentBlur(t){this.end(t),this._scopeFire("interactions:blur",{event:t,type:"blur",interaction:this})}end(t){let e;this._ending=!0,t=t||this._latestPointer.event,this.interacting()&&(e=this._doPhase({event:t,interaction:this,phase:"end"})),this._ending=!1,!0===e&&this.stop()}currentAction(){return this._interacting?this.prepared.name:null}interacting(){return this._interacting}stop(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}getPointerIndex(t){const e=Pt(t);return"mouse"===this.pointerType||"pen"===this.pointerType?this.pointers.length-1:V(this.pointers,t=>t.id===e)}getPointerInfo(t){return this.pointers[this.getPointerIndex(t)]}updatePointer(t,e,n,i){const r=Pt(t);let o=this.getPointerIndex(t),a=this.pointers[o];return i=!1!==i&&(i||/(down|start)$/i.test(e.type)),a?a.pointer=t:(a=new Zt(r,t,e,null,null),o=this.pointers.length,this.pointers.push(a)),Ot(this.coords.cur,this.pointers.map(t=>t.pointer),this._now()),It(this.coords.delta,this.coords.prev,this.coords.cur),i&&(this.pointerIsDown=!0,a.downTime=this.coords.cur.timeStamp,a.downTarget=n,St(this.downPointer,t),this.interacting()||(Mt(this.coords.start,this.coords.cur),Mt(this.coords.prev,this.coords.cur),this.downEvent=e,this.pointerWasMoved=!1)),this._updateLatestPointer(t,e,n),this._scopeFire("interactions:update-pointer",{pointer:t,event:e,eventTarget:n,down:i,pointerInfo:a,pointerIndex:o,interaction:this}),o}removePointer(t,e){const n=this.getPointerIndex(t);if(-1===n)return;const i=this.pointers[n];this._scopeFire("interactions:remove-pointer",{pointer:t,event:e,eventTarget:null,pointerIndex:n,pointerInfo:i,interaction:this}),this.pointers.splice(n,1),this.pointerIsDown=!1}_updateLatestPointer(t,e,n){this._latestPointer.pointer=t,this._latestPointer.event=e,this._latestPointer.eventTarget=n}destroy(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}_createPreparedEvent(t,e,n,i){return new yt(this,t,this.prepared.name,e,this.element,n,i)}_fireEvent(t){this.interactable.fire(t),(!this.prevEvent||t.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=t)}_doPhase(t){const{event:e,phase:n,preEnd:i,type:r}=t,{rect:o}=this;o&&"move"===n&&(pt(this.edges,o,this.coords.delta[this.interactable.options.deltaSource]),o.width=o.right-o.left,o.height=o.bottom-o.top);const a=this._scopeFire("interactions:before-action-"+n,t);if(!1===a)return!1;const s=t.iEvent=this._createPreparedEvent(e,n,i,r);return this._scopeFire("interactions:action-"+n,t),"start"===n&&(this.prevEvent=s),this._fireEvent(s),this._scopeFire("interactions:after-action-"+n,t),!0}_now(){return Date.now()}}var te=Qt;function ee(t){return/^(always|never|auto)$/.test(t)?(this.options.preventDefault=t,this):P.bool(t)?(this.options.preventDefault=t?"always":"never",this):this.options.preventDefault}function ne(t,e,n){const i=t.options.preventDefault;if("never"!==i)if("always"!==i){if(e.events.supportsPassive&&/^touch(start|move)$/.test(n.type)){const t=_(n.target).document,i=e.getDocOptions(t);if(!i||!i.events||!1!==i.events.passive)return}/^(mouse|pointer|touch)*(down|start)/i.test(n.type)||P.element(n.target)&&et(n.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||n.preventDefault()}else n.preventDefault()}function ie({interaction:t,event:e}){t.interactable&&t.interactable.checkAndPreventDefault(e)}function re(t){const{Interactable:e}=t;e.prototype.preventDefault=ee,e.prototype.checkAndPreventDefault=function(e){return ne(this,t,e)},t.interactions.docEvents.push({type:"dragstart",listener(e){for(const n of t.interactions.list)if(n.element&&(n.element===e.target||J(n.element,e.target)))return void n.interactable.checkAndPreventDefault(e)}})}var oe={id:"core/interactablePreventDefault",install:re,listeners:["down","move","up","cancel"].reduce((t,e)=>(t["interactions:"+e]=ie,t),{})};const ae={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search(t){for(const e of ae.methodOrder){const n=ae[e](t);if(n)return n}return null},simulationResume({pointerType:t,eventType:e,eventTarget:n,scope:i}){if(!/down|start/i.test(e))return null;for(const r of i.interactions.list){let e=n;if(r.simulation&&r.simulation.allowResume&&r.pointerType===t)while(e){if(e===r.element)return r;e=tt(e)}}return null},mouseOrPen({pointerId:t,pointerType:e,eventType:n,scope:i}){if("mouse"!==e&&"pen"!==e)return null;let r;for(const o of i.interactions.list)if(o.pointerType===e){if(o.simulation&&!se(o,t))continue;if(o.interacting())return o;r||(r=o)}if(r)return r;for(const o of i.interactions.list)if(o.pointerType===e&&(!/down/i.test(n)||!o.simulation))return o;return null},hasPointer({pointerId:t,scope:e}){for(const n of e.interactions.list)if(se(n,t))return n;return null},idle({pointerType:t,scope:e}){for(const n of e.interactions.list){if(1===n.pointers.length){const t=n.interactable;if(t&&(!t.options.gesture||!t.options.gesture.enabled))continue}else if(n.pointers.length>=2)continue;if(!n.interacting()&&t===n.pointerType)return n}return null}};function se(t,e){return t.pointers.some(({id:t})=>t===e)}var le=ae;const ue=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function ce(t){const e={};for(const o of ue)e[o]=he(o,t);const n=R.pEventTypes;let i;function r(){for(const e of t.interactions.list)if(e.pointerIsDown&&"touch"===e.pointerType&&!e._interacting)for(const n of e.pointers)t.documents.some(({doc:t})=>J(t,n.downTarget))||e.removePointer(n.pointer,n.event)}i=g.PointerEvent?[{type:n.down,listener:r},{type:n.down,listener:e.pointerDown},{type:n.move,listener:e.pointerMove},{type:n.up,listener:e.pointerUp},{type:n.cancel,listener:e.pointerUp}]:[{type:"mousedown",listener:e.pointerDown},{type:"mousemove",listener:e.pointerMove},{type:"mouseup",listener:e.pointerUp},{type:"touchstart",listener:r},{type:"touchstart",listener:e.pointerDown},{type:"touchmove",listener:e.pointerMove},{type:"touchend",listener:e.pointerUp},{type:"touchcancel",listener:e.pointerUp}],i.push({type:"blur",listener(e){for(const n of t.interactions.list)n.documentBlur(e)}}),t.prevTouchTime=0,t.Interaction=class extends te{get pointerMoveTolerance(){return t.interactions.pointerMoveTolerance}set pointerMoveTolerance(e){t.interactions.pointerMoveTolerance=e}_now(){return t.now()}},t.interactions={list:[],new(e){e.scopeFire=(e,n)=>t.fire(e,n);const n=new t.Interaction(e);return t.interactions.list.push(n),n},listeners:e,docEvents:i,pointerMoveTolerance:1},t.usePlugin(oe)}function he(t,e){return function(n){const i=e.interactions.list,r=Vt(n),[o,a]=Ft(n),s=[];if(/^touch/.test(n.type)){e.prevTouchTime=e.now();for(const t of n.changedTouches){const i=t,l=Pt(i),u={pointer:i,pointerId:l,pointerType:r,eventType:n.type,eventTarget:o,curEventTarget:a,scope:e},c=de(u);s.push([u.pointer,u.eventTarget,u.curEventTarget,c])}}else{let t=!1;if(!R.supportsPointerEvent&&/mouse/.test(n.type)){for(let e=0;e<i.length&&!t;e++)t="mouse"!==i[e].pointerType&&i[e].pointerIsDown;t=t||e.now()-e.prevTouchTime<500||0===n.timeStamp}if(!t){const t={pointer:n,pointerId:Pt(n),pointerType:r,eventType:n.type,curEventTarget:a,eventTarget:o,scope:e},i=de(t);s.push([t.pointer,t.eventTarget,t.curEventTarget,i])}}for(const[e,l,u,c]of s)c[t](e,n,l,u)}}function de(t){const{pointerType:e,scope:n}=t,i=le.search(t),r={interaction:i,searchDetails:t};return n.fire("interactions:find",r),r.interaction||n.interactions.new({pointerType:e})}function pe({doc:t,scope:e,options:n},i){const{interactions:{docEvents:r},events:o}=e,a=o[i];e.browser.isIOS&&!n.events&&(n.events={passive:!1});for(const l in o.delegatedEvents)a(t,l,o.delegateListener),a(t,l,o.delegateUseCapture,!0);const s=n&&n.events;for(const{type:l,listener:u}of r)a(t,l,u,s)}const fe={id:"core/interactions",install:ce,listeners:{"scope:add-document":t=>pe(t,"add"),"scope:remove-document":t=>pe(t,"remove"),"interactable:unset":({interactable:t},e)=>{for(let n=e.interactions.list.length-1;n>=0;n--){const i=e.interactions.list[n];i.interactable===t&&(i.stop(),e.fire("interactions:destroy",{interaction:i}),i.destroy(),e.interactions.list.length>2&&e.interactions.list.splice(n,1))}}},onDocSignal:pe,doOnInteractions:he,methodNames:ue};var ge=fe;class ve{constructor(){this.id="__interact_scope_"+Math.floor(100*Math.random()),this.isInitialized=!1,this.listenerMaps=[],this.browser=R,this.defaults=H(mt),this.Eventable=K,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=Ut(this),this.InteractEvent=yt,this.Interactable=void 0,this.interactables=new _t(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=t=>this.removeDocument(t.target);const t=this;this.Interactable=class extends bt{get _defaults(){return t.defaults}set(e){return super.set(e),t.fire("interactable:set",{options:e,interactable:this}),this}unset(){super.unset(),t.interactables.list.splice(t.interactables.list.indexOf(this),1),t.fire("interactable:unset",{interactable:this})}}}addListeners(t,e){this.listenerMaps.push({id:e,map:t})}fire(t,e){for(const{map:{[t]:n}}of this.listenerMaps)if(n&&!1===n(e,this,t))return!1}init(t){return this.isInitialized?this:me(this,t)}pluginIsInstalled(t){return this._plugins.map[t.id]||-1!==this._plugins.list.indexOf(t)}usePlugin(t,e){if(!this.isInitialized)return this;if(this.pluginIsInstalled(t))return this;if(t.id&&(this._plugins.map[t.id]=t),this._plugins.list.push(t),t.install&&t.install(this,e),t.listeners&&t.before){let e=0;const n=this.listenerMaps.length,i=t.before.reduce((t,e)=>(t[e]=!0,t[ye(e)]=!0,t),{});for(;e<n;e++){const t=this.listenerMaps[e].id;if(i[t]||i[ye(t)])break}this.listenerMaps.splice(e,0,{id:t.id,map:t.listeners})}else t.listeners&&this.listenerMaps.push({id:t.id,map:t.listeners});return this}addDocument(t,e){if(-1!==this.getDocIndex(t))return!1;const n=_(t);e=e?$({},e):{},this.documents.push({doc:t,options:e}),this.events.documents.push(t),t!==this.document&&this.events.add(n,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:t,window:n,scope:this,options:e})}removeDocument(t){const e=this.getDocIndex(t),n=_(t),i=this.documents[e].options;this.events.remove(n,"unload",this.onWindowUnload),this.documents.splice(e,1),this.events.documents.splice(e,1),this.fire("scope:remove-document",{doc:t,window:n,scope:this,options:i})}getDocIndex(t){for(let e=0;e<this.documents.length;e++)if(this.documents[e].doc===t)return e;return-1}getDocOptions(t){const e=this.getDocIndex(t);return-1===e?null:this.documents[e].options}now(){return(this.window.Date||Date).now()}}function me(t,e){return t.isInitialized=!0,b(e),g.init(e),R.init(e),X.init(e),t.window=e,t.document=e.document,t.usePlugin(ge),t.usePlugin(jt),t}function ye(t){return t&&t.replace(/\/.*$/,"")}const xe=new ve,be=xe.interactStatic;var _e=be;const we=t=>xe.init(t);function Se(t){const{Interactable:e}=t;e.prototype.getAction=function(e,n,i,r){const o=Me(this,n,i,r,t);return this.options.actionChecker?this.options.actionChecker(e,n,o,this,r,i):o},e.prototype.ignoreFrom=Yt((function(t){return this._backCompatOption("ignoreFrom",t)}),"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),e.prototype.allowFrom=Yt((function(t){return this._backCompatOption("allowFrom",t)}),"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),e.prototype.actionChecker=Ce,e.prototype.styleCursor=Ie}function Me(t,e,n,i,r){const o=t.getRect(i),a=e.buttons||{0:1,1:4,3:8,4:16}[e.button],s={action:null,interactable:t,interaction:n,element:i,rect:o,buttons:a};return r.fire("auto-start:check",s),s.action}function Ie(t){return P.bool(t)?(this.options.styleCursor=t,this):null===t?(delete this.options.styleCursor,this):this.options.styleCursor}function Ce(t){return P.func(t)?(this.options.actionChecker=t,this):null===t?(delete this.options.actionChecker,this):this.options.actionChecker}"object"===typeof window&&window&&we(window);var Te={id:"auto-start/interactableMethods",install:Se};function Ae(t){const{interactStatic:e,defaults:n}=t;t.usePlugin(Te),n.base.actionChecker=null,n.base.styleCursor=!0,$(n.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),e.maxInteractions=e=>Be(e,t),t.autoStart={maxInteractions:1/0,withinInteractionLimit:ze,cursorElement:null}}function De({interaction:t,pointer:e,event:n,eventTarget:i},r){if(t.interacting())return;const o=Re(t,e,n,i,r);Ne(t,o,r)}function ke({interaction:t,pointer:e,event:n,eventTarget:i},r){if("mouse"!==t.pointerType||t.pointerIsDown||t.interacting())return;const o=Re(t,e,n,i,r);Ne(t,o,r)}function Le(t,e){const{interaction:n}=t;if(!n.pointerIsDown||n.interacting()||!n.pointerWasMoved||!n.prepared.name)return;e.fire("autoStart:before-start",t);const{interactable:i}=n,r=n.prepared.name;r&&i&&(i.options[r].manualStart||!ze(i,n.element,n.prepared,e)?n.stop():(n.start(n.prepared,i,n.element),Fe(n,e)))}function Pe({interaction:t},e){const{interactable:n}=t;n&&n.options.styleCursor&&Ve(t.element,"",e)}function Oe(t,e,n,i,r){return e.testIgnoreAllow(e.options[t.name],n,i)&&e.options[t.name].enabled&&ze(e,n,t,r)?t:null}function Ee(t,e,n,i,r,o,a){for(let s=0,l=i.length;s<l;s++){const l=i[s],u=r[s],c=l.getAction(e,n,t,u);if(!c)continue;const h=Oe(c,l,u,o,a);if(h)return{action:h,interactable:l,element:u}}return{action:null,interactable:null,element:null}}function Re(t,e,n,i,r){let o=[],a=[],s=i;function l(t){o.push(t),a.push(s)}while(P.element(s)){o=[],a=[],r.interactables.forEachMatch(s,l);const u=Ee(t,e,n,o,a,i,r);if(u.action&&!u.interactable.options[u.action.name].manualStart)return u;s=tt(s)}return{action:null,interactable:null,element:null}}function Ne(t,{action:e,interactable:n,element:i},r){e=e||{name:null},t.interactable=n,t.element=i,Xt(t.prepared,e),t.rect=n&&e.name?n.getRect(i):null,Fe(t,r),r.fire("autoStart:prepared",{interaction:t})}function ze(t,e,n,i){const r=t.options,o=r[n.name].max,a=r[n.name].maxPerElement,s=i.autoStart.maxInteractions;let l=0,u=0,c=0;if(!(o&&a&&s))return!1;for(const h of i.interactions.list){const i=h.prepared.name;if(h.interacting()){if(l++,l>=s)return!1;if(h.interactable===t){if(u+=i===n.name?1:0,u>=o)return!1;if(h.element===e&&(c++,i===n.name&&c>=a))return!1}}}return s>0}function Be(t,e){return P.number(t)?(e.autoStart.maxInteractions=t,this):e.autoStart.maxInteractions}function Ve(t,e,n){const{cursorElement:i}=n.autoStart;i&&i!==t&&(i.style.cursor=""),t.ownerDocument.documentElement.style.cursor=e,t.style.cursor=e,n.autoStart.cursorElement=e?t:null}function Fe(t,e){const{interactable:n,element:i,prepared:r}=t;if("mouse"!==t.pointerType||!n||!n.options.styleCursor)return void(e.autoStart.cursorElement&&Ve(e.autoStart.cursorElement,"",e));let o="";if(r.name){const a=n.options[r.name].cursorChecker;o=P.func(a)?a(r,n,i,t._interacting):e.actions.map[r.name].getCursor(r)}Ve(t.element,o||"",e)}const He={id:"auto-start/base",before:["actions"],install:Ae,listeners:{"interactions:down":De,"interactions:move":(t,e)=>{ke(t,e),Le(t,e)},"interactions:stop":Pe},maxInteractions:Be,withinInteractionLimit:ze,validateAction:Oe};var $e=He;function We({interaction:t,eventTarget:e,dx:n,dy:i},r){if("drag"!==t.prepared.name)return;const o=Math.abs(n),a=Math.abs(i),s=t.interactable.options.drag,l=s.startAxis,u=o>a?"x":o<a?"y":"xy";if(t.prepared.axis="start"===s.lockAxis?u[0]:s.lockAxis,"xy"!==u&&"xy"!==l&&l!==u){t.prepared.name=null;let n=e;const i=function(i){if(i===t.interactable)return;const o=t.interactable.options.drag;if(!o.manualStart&&i.testIgnoreAllow(o,n,e)){const o=i.getAction(t.downPointer,t.downEvent,t,n);if(o&&"drag"===o.name&&Ge(u,i)&&$e.validateAction(o,i,n,e,r))return i}};while(P.element(n)){const e=r.interactables.forEachMatch(n,i);if(e){t.prepared.name="drag",t.interactable=e,t.element=n;break}n=tt(n)}}}function Ge(t,e){if(!e)return!1;const n=e.options.drag.startAxis;return"xy"===t||"xy"===n||n===t}var je={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":We}};function Ye(t){const{defaults:e}=t;t.usePlugin($e),e.perAction.hold=0,e.perAction.delay=0}function Xe(t){const e=t.prepared&&t.prepared.name;if(!e)return null;const n=t.interactable.options;return n[e].hold||n[e].delay}const Ue={id:"auto-start/hold",install:Ye,listeners:{"interactions:new":({interaction:t})=>{t.autoStartHoldTimer=null},"autoStart:prepared":({interaction:t})=>{const e=Xe(t);e>0&&(t.autoStartHoldTimer=setTimeout(()=>{t.start(t.prepared,t.interactable,t.element)},e))},"interactions:move":({interaction:t,duplicate:e})=>{t.autoStartHoldTimer&&t.pointerWasMoved&&!e&&(clearTimeout(t.autoStartHoldTimer),t.autoStartHoldTimer=null)},"autoStart:before-start":({interaction:t})=>{const e=Xe(t);e>0&&(t.prepared.name=null)}},getHoldDuration:Xe};var Ze=Ue,qe={id:"auto-start",install(t){t.usePlugin($e),t.usePlugin(Ze),t.usePlugin(je)}};function Ke(t){const{actions:e,Interactable:n,defaults:i}=t;n.prototype.draggable=en.draggable,e.map.drag=en,e.methodDict.drag="draggable",i.actions.drag=en.defaults}function Je({interaction:t}){if("drag"!==t.prepared.name)return;const e=t.prepared.axis;"x"===e?(t.coords.cur.page.y=t.coords.start.page.y,t.coords.cur.client.y=t.coords.start.client.y,t.coords.velocity.client.y=0,t.coords.velocity.page.y=0):"y"===e&&(t.coords.cur.page.x=t.coords.start.page.x,t.coords.cur.client.x=t.coords.start.client.x,t.coords.velocity.client.x=0,t.coords.velocity.page.x=0)}function Qe({iEvent:t,interaction:e}){if("drag"!==e.prepared.name)return;const n=e.prepared.axis;if("x"===n||"y"===n){const i="x"===n?"y":"x";t.page[i]=e.coords.start.page[i],t.client[i]=e.coords.start.client[i],t.delta[i]=0}}"object"===typeof window&&window&&we(window),_e.use(qe);const tn=function(t){return P.object(t)?(this.options.drag.enabled=!1!==t.enabled,this.setPerAction("drag",t),this.setOnEvents("drag",t),/^(xy|x|y|start)$/.test(t.lockAxis)&&(this.options.drag.lockAxis=t.lockAxis),/^(xy|x|y)$/.test(t.startAxis)&&(this.options.drag.startAxis=t.startAxis),this):P.bool(t)?(this.options.drag.enabled=t,this):this.options.drag},en={id:"actions/drag",install:Ke,listeners:{"interactions:before-action-move":Je,"interactions:action-resume":Je,"interactions:action-move":Qe,"auto-start:check":t=>{const{interaction:e,interactable:n,buttons:i}=t,r=n.options.drag;if(r&&r.enabled&&(!e.pointerIsDown||!/mouse|pointer/.test(e.pointerType)||0!==(i&n.options.drag.mouseButtons)))return t.action={name:"drag",axis:"start"===r.lockAxis?r.startAxis:r.lockAxis},!1}},draggable:tn,beforeMove:Je,move:Qe,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor(){return"move"}};var nn=en;function rn(t){const{actions:e,browser:n,Interactable:i,defaults:r}=t;pn.cursors=ln(n),pn.defaultMargin=n.supportsTouch||n.supportsPointerEvent?20:10,i.prototype.resizable=function(e){return an(this,e,t)},e.map.resize=pn,e.methodDict.resize="resizable",r.actions.resize=pn.defaults}function on(t){const{interaction:e,interactable:n,element:i,rect:r,buttons:o}=t;if(!r)return;const a=$({},e.coords.cur.page),s=n.options.resize;if(s&&s.enabled&&(!e.pointerIsDown||!/mouse|pointer/.test(e.pointerType)||0!==(o&s.mouseButtons))){if(P.object(s.edges)){const n={left:!1,right:!1,top:!1,bottom:!1};for(const t in n)n[t]=sn(t,s.edges[t],a,e._latestPointer.eventTarget,i,r,s.margin||pn.defaultMargin);n.left=n.left&&!n.right,n.top=n.top&&!n.bottom,(n.left||n.right||n.top||n.bottom)&&(t.action={name:"resize",edges:n})}else{const e="y"!==s.axis&&a.x>r.right-pn.defaultMargin,n="x"!==s.axis&&a.y>r.bottom-pn.defaultMargin;(e||n)&&(t.action={name:"resize",axes:(e?"x":"")+(n?"y":"")})}return!t.action&&void 0}}function an(t,e,n){return P.object(e)?(t.options.resize.enabled=!1!==e.enabled,t.setPerAction("resize",e),t.setOnEvents("resize",e),P.string(e.axis)&&/^x$|^y$|^xy$/.test(e.axis)?t.options.resize.axis=e.axis:null===e.axis&&(t.options.resize.axis=n.defaults.actions.resize.axis),P.bool(e.preserveAspectRatio)?t.options.resize.preserveAspectRatio=e.preserveAspectRatio:P.bool(e.square)&&(t.options.resize.square=e.square),t):P.bool(e)?(t.options.resize.enabled=e,t):t.options.resize}function sn(t,e,n,i,r,o,a){if(!e)return!1;if(!0===e){const e=P.number(o.width)?o.width:o.right-o.left,i=P.number(o.height)?o.height:o.bottom-o.top;if(a=Math.min(a,Math.abs(("left"===t||"right"===t?e:i)/2)),e<0&&("left"===t?t="right":"right"===t&&(t="left")),i<0&&("top"===t?t="bottom":"bottom"===t&&(t="top")),"left"===t)return n.x<(e>=0?o.left:o.right)+a;if("top"===t)return n.y<(i>=0?o.top:o.bottom)+a;if("right"===t)return n.x>(e>=0?o.right:o.left)-a;if("bottom"===t)return n.y>(i>=0?o.bottom:o.top)-a}return!!P.element(i)&&(P.element(e)?e===i:nt(i,e,r))}function ln(t){return t.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}function un({iEvent:t,interaction:e}){if("resize"!==e.prepared.name||!e.prepared.edges)return;const n=t,i=e.rect;e._rects={start:$({},i),corrected:$({},i),previous:$({},i),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},n.edges=e.prepared.edges,n.rect=e._rects.corrected,n.deltaRect=e._rects.delta}function cn({iEvent:t,interaction:e}){if("resize"!==e.prepared.name||!e.prepared.edges)return;const n=t,i=e.interactable.options.resize,r=i.invert,o="reposition"===r||"negate"===r,a=e.rect,{start:s,corrected:l,delta:u,previous:c}=e._rects;if($(c,l),o){if($(l,a),"reposition"===r){if(l.top>l.bottom){const t=l.top;l.top=l.bottom,l.bottom=t}if(l.left>l.right){const t=l.left;l.left=l.right,l.right=t}}}else l.top=Math.min(a.top,s.bottom),l.bottom=Math.max(a.bottom,s.top),l.left=Math.min(a.left,s.right),l.right=Math.max(a.right,s.left);l.width=l.right-l.left,l.height=l.bottom-l.top;for(const h in l)u[h]=l[h]-c[h];n.edges=e.prepared.edges,n.rect=l,n.deltaRect=u}function hn({iEvent:t,interaction:e}){if("resize"!==e.prepared.name||!e.prepared.edges)return;const n=t;n.edges=e.prepared.edges,n.rect=e._rects.corrected,n.deltaRect=e._rects.delta}function dn({iEvent:t,interaction:e}){if("resize"!==e.prepared.name||!e.resizeAxes)return;const n=e.interactable.options,i=t;n.resize.square?("y"===e.resizeAxes?i.delta.x=i.delta.y:i.delta.y=i.delta.x,i.axes="xy"):(i.axes=e.resizeAxes,"x"===e.resizeAxes?i.delta.y=0:"y"===e.resizeAxes&&(i.delta.x=0))}"object"===typeof window&&window&&we(window),_e.use(nn);const pn={id:"actions/resize",before:["actions/drag"],install:rn,listeners:{"interactions:new":({interaction:t})=>{t.resizeAxes="xy"},"interactions:action-start":t=>{un(t),dn(t)},"interactions:action-move":t=>{cn(t),dn(t)},"interactions:action-end":hn,"auto-start:check":on},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor({edges:t,axis:e,name:n}){const i=pn.cursors;let r=null;if(e)r=i[n+e];else if(t){let e="";for(const n of["top","bottom","left","right"])t[n]&&(e+=n);r=i[e]}return r},defaultMargin:null};var fn=pn;"object"===typeof window&&window&&we(window),_e.use(fn);var gn=()=>{},vn=()=>{},mn=t=>{const e=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(([e,n])=>e in t||n in t),n=(n,i)=>{const{range:r,limits:o={left:-1/0,right:1/0,top:-1/0,bottom:1/0},offset:a={x:0,y:0}}=t,s={range:r,grid:t,x:null,y:null};for(const[l,u]of e){const e=Math.round((n-a.x)/t[l]),r=Math.round((i-a.y)/t[u]);s[l]=Math.max(o.left,Math.min(o.right,e*t[l]+a.x)),s[u]=Math.max(o.top,Math.min(o.bottom,r*t[u]+a.y))}return s};return n.grid=t,n.coordFields=e,n};const yn={id:"snappers",install(t){const{interactStatic:e}=t;e.snappers=$(e.snappers||{},i),e.createSnapGrid=e.snappers.grid}};var xn=yn;class bn{constructor(t){this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=null,this.result=null,this.endResult=null,this.edges=void 0,this.interaction=void 0,this.interaction=t,this.result=_n()}start({phase:t},e){const{interaction:n}=this,i=wn(n);this.prepareStates(i),this.edges=$({},n.edges),this.startOffset=Sn(n.rect,e),this.startDelta={x:0,y:0};const r={phase:t,pageCoords:e,preEnd:!1};this.result=_n(),this.startAll(r);const o=this.result=this.setAll(r);return o}fillArg(t){const{interaction:e}=this;t.interaction=e,t.interactable=e.interactable,t.element=e.element,t.rect=t.rect||e.rect,t.edges=this.edges,t.startOffset=this.startOffset}startAll(t){this.fillArg(t);for(const e of this.states)e.methods.start&&(t.state=e,e.methods.start(t))}setAll(t){this.fillArg(t);const{phase:e,preEnd:n,skipModifiers:i,rect:r}=t;t.coords=$({},t.pageCoords),t.rect=$({},r);const o=i?this.states.slice(i):this.states,a=_n(t.coords,t.rect);for(const u of o){const{options:i}=u,r=$({},t.coords);let o=null;u.methods.set&&this.shouldDo(i,n,e)&&(t.state=u,o=u.methods.set(t),pt(this.interaction.edges,t.rect,{x:t.coords.x-r.x,y:t.coords.y-r.y})),a.eventProps.push(o)}a.delta.x=t.coords.x-t.pageCoords.x,a.delta.y=t.coords.y-t.pageCoords.y,a.rectDelta.left=t.rect.left-r.left,a.rectDelta.right=t.rect.right-r.right,a.rectDelta.top=t.rect.top-r.top,a.rectDelta.bottom=t.rect.bottom-r.bottom;const s=this.result.coords,l=this.result.rect;if(s&&l){const t=a.rect.left!==l.left||a.rect.right!==l.right||a.rect.top!==l.top||a.rect.bottom!==l.bottom;a.changed=t||s.x!==a.coords.x||s.y!==a.coords.y}return a}applyToInteraction(t){const{interaction:e}=this,{phase:n}=t,i=e.coords.cur,r=e.coords.start,{result:o,startDelta:a}=this,s=o.delta;"start"===n&&$(this.startDelta,o.delta);for(const[c,h]of[[r,a],[i,s]])c.page.x+=h.x,c.page.y+=h.y,c.client.x+=h.x,c.client.y+=h.y;const{rectDelta:l}=this.result,u=t.rect||e.rect;u.left+=l.left,u.right+=l.right,u.top+=l.top,u.bottom+=l.bottom,u.width=u.right-u.left,u.height=u.bottom-u.top}setAndApply(t){const{interaction:e}=this,{phase:n,preEnd:i,skipModifiers:r}=t,o=this.setAll({preEnd:i,phase:n,pageCoords:t.modifiedCoords||e.coords.cur.page});if(this.result=o,!o.changed&&(!r||r<this.states.length)&&e.interacting())return!1;if(t.modifiedCoords){const{page:n}=e.coords.cur,i={x:t.modifiedCoords.x-n.x,y:t.modifiedCoords.y-n.y};o.coords.x+=i.x,o.coords.y+=i.y,o.delta.x+=i.x,o.delta.y+=i.y}this.applyToInteraction(t)}beforeEnd(t){const{interaction:e,event:n}=t,i=this.states;if(!i||!i.length)return;let r=!1;for(const o of i){t.state=o;const{options:e,methods:n}=o,i=n.beforeEnd&&n.beforeEnd(t);if(i)return this.endResult=i,!1;r=r||!r&&this.shouldDo(e,!0,t.phase,!0)}r&&e.move({event:n,preEnd:!0})}stop(t){const{interaction:e}=t;if(!this.states||!this.states.length)return;const n=$({states:this.states,interactable:e.interactable,element:e.element,rect:null},t);this.fillArg(n);for(const i of this.states)n.state=i,i.methods.stop&&i.methods.stop(n);this.states=null,this.endResult=null}prepareStates(t){this.states=[];for(let e=0;e<t.length;e++){const{options:n,methods:i,name:r}=t[e];this.states.push({options:n,methods:i,index:e,name:r})}return this.states}restoreInteractionCoords({interaction:{coords:t,rect:e,modification:n}}){if(!n.result)return;const{startDelta:i}=n,{delta:r,rectDelta:o}=n.result,a=[[t.start,i],[t.cur,r]];for(const[s,l]of a)s.page.x-=l.x,s.page.y-=l.y,s.client.x-=l.x,s.client.y-=l.y;e.left-=o.left,e.right-=o.right,e.top-=o.top,e.bottom-=o.bottom}shouldDo(t,e,n,i){return!(!t||!1===t.enabled||i&&!t.endOnly||t.endOnly&&!e||"start"===n&&!t.setStart)}copyFrom(t){this.startOffset=t.startOffset,this.startDelta=t.startDelta,this.edges=t.edges,this.states=t.states.map(t=>H(t)),this.result=_n($({},t.result.coords),$({},t.result.rect))}destroy(){for(const t in this)this[t]=null}}function _n(t,e){return{rect:e,coords:t,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function wn(t){const e=t.interactable.options[t.prepared.name],n=e.modifiers;return n&&n.length?n:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(t=>{const n=e[t];return n&&n.enabled&&{options:n,methods:n._methods}}).filter(t=>!!t)}function Sn(t,e){return t?{left:e.x-t.left,top:e.y-t.top,right:t.right-e.x,bottom:t.bottom-e.y}:{left:0,top:0,right:0,bottom:0}}function Mn(t,e){const{defaults:n}=t,i={start:t.start,set:t.set,beforeEnd:t.beforeEnd,stop:t.stop},r=t=>{const r=t||{};r.enabled=!1!==r.enabled;for(const e in n)e in r||(r[e]=n[e]);const o={options:r,methods:i,name:e,enable:()=>(r.enabled=!0,o),disable:()=>(r.enabled=!1,o)};return o};return e&&"string"===typeof e&&(r._defaults=n,r._methods=i),r}function In({iEvent:t,interaction:{modification:{result:e}}}){e&&(t.modifiers=e.eventProps)}const Cn={id:"modifiers/base",before:["actions"],install:t=>{t.defaults.perAction.modifiers=[]},listeners:{"interactions:new":({interaction:t})=>{t.modification=new bn(t)},"interactions:before-action-start":t=>{const{modification:e}=t.interaction;e.start(t,t.interaction.coords.start.page),t.interaction.edges=e.edges,e.applyToInteraction(t)},"interactions:before-action-move":t=>t.interaction.modification.setAndApply(t),"interactions:before-action-end":t=>t.interaction.modification.beforeEnd(t),"interactions:action-start":In,"interactions:action-move":In,"interactions:action-end":In,"interactions:after-action-start":t=>t.interaction.modification.restoreInteractionCoords(t),"interactions:after-action-move":t=>t.interaction.modification.restoreInteractionCoords(t),"interactions:stop":t=>t.interaction.modification.stop(t)}};var Tn=Cn;const An={start(t){const{state:e,rect:n,edges:i,pageCoords:r}=t;let{ratio:o}=e.options;const{equalDelta:a,modifiers:s}=e.options;"preserve"===o&&(o=n.width/n.height),e.startCoords=$({},r),e.startRect=$({},n),e.ratio=o,e.equalDelta=a;const l=e.linkedEdges={top:i.top||i.left&&!i.bottom,left:i.left||i.top&&!i.right,bottom:i.bottom||i.right&&!i.top,right:i.right||i.bottom&&!i.left};if(e.xIsPrimaryAxis=!(!i.left&&!i.right),e.equalDelta)e.edgeSign=(l.left?1:-1)*(l.top?1:-1);else{const t=e.xIsPrimaryAxis?l.top:l.left;e.edgeSign=t?-1:1}if($(t.edges,l),!s||!s.length)return;const u=new bn(t.interaction);u.copyFrom(t.interaction.modification),u.prepareStates(s),e.subModification=u,u.startAll({...t})},set(t){const{state:e,rect:n,coords:i}=t,r=$({},i),o=e.equalDelta?Dn:kn;if(o(e,e.xIsPrimaryAxis,i,n),!e.subModification)return null;const a=$({},n);pt(e.linkedEdges,a,{x:i.x-r.x,y:i.y-r.y});const s=e.subModification.setAll({...t,rect:a,edges:e.linkedEdges,pageCoords:i,prevCoords:i,prevRect:a}),{delta:l}=s;if(s.changed){const t=Math.abs(l.x)>Math.abs(l.y);o(e,t,s.coords,s.rect),$(i,s.coords)}return s.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function Dn({startCoords:t,edgeSign:e},n,i){n?i.y=t.y+(i.x-t.x)*e:i.x=t.x+(i.y-t.y)*e}function kn({startRect:t,startCoords:e,ratio:n,edgeSign:i},r,o,a){if(r){const r=a.width/n;o.y=e.y+(r-t.height)*i}else{const r=a.height*n;o.x=e.x+(r-t.width)*i}}var Ln=Mn(An,"aspectRatio");const Pn=()=>{};Pn._defaults={};var On=Pn;function En({rect:t,startOffset:e,state:n,interaction:i,pageCoords:r}){const{options:o}=n,{elementRect:a}=o,s=$({left:0,top:0,right:0,bottom:0},o.offset||{});if(t&&a){const n=Nn(o.restriction,i,r);if(n){const e=n.right-n.left-t.width,i=n.bottom-n.top-t.height;e<0&&(s.left+=e,s.right+=e),i<0&&(s.top+=i,s.bottom+=i)}s.left+=e.left-t.width*a.left,s.top+=e.top-t.height*a.top,s.right+=e.right-t.width*(1-a.right),s.bottom+=e.bottom-t.height*(1-a.bottom)}n.offset=s}function Rn({coords:t,interaction:e,state:n}){const{options:i,offset:r}=n,o=Nn(i.restriction,e,t);if(!o)return;const a=ht(o);t.x=Math.max(Math.min(a.right-r.right,t.x),a.left+r.left),t.y=Math.max(Math.min(a.bottom-r.bottom,t.y),a.top+r.top)}function Nn(t,e,n){return P.func(t)?ut(t,e.interactable,e.element,[n.x,n.y,e]):ut(t,e.interactable,e.element)}const zn={restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1},Bn={start:En,set:Rn,defaults:zn};var Vn=Mn(Bn,"restrict");const Fn={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Hn={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function $n({interaction:t,startOffset:e,state:n}){const{options:i}=n;let r;if(i){const e=Nn(i.offset,t,t.coords.start.page);r=ct(e)}r=r||{x:0,y:0},n.offset={top:r.y+e.top,left:r.x+e.left,bottom:r.y-e.bottom,right:r.x-e.right}}function Wn({coords:t,edges:e,interaction:n,state:i}){const{offset:r,options:o}=i;if(!e)return;const a=$({},t),s=Nn(o.inner,n,a)||{},l=Nn(o.outer,n,a)||{};Gn(s,Fn),Gn(l,Hn),e.top?t.y=Math.min(Math.max(l.top+r.top,a.y),s.top+r.top):e.bottom&&(t.y=Math.max(Math.min(l.bottom+r.bottom,a.y),s.bottom+r.bottom)),e.left?t.x=Math.min(Math.max(l.left+r.left,a.x),s.left+r.left):e.right&&(t.x=Math.max(Math.min(l.right+r.right,a.x),s.right+r.right))}function Gn(t,e){for(const n of["top","left","bottom","right"])n in t||(t[n]=e[n]);return t}const jn={inner:null,outer:null,offset:null,endOnly:!1,enabled:!1},Yn={noInner:Fn,noOuter:Hn,start:$n,set:Wn,defaults:jn};var Xn=Mn(Yn,"restrictEdges");const Un=$({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(t){}},Bn.defaults),Zn={start:Bn.start,set:Bn.set,defaults:Un};var qn=Mn(Zn,"restrictRect");const Kn={width:-1/0,height:-1/0},Jn={width:1/0,height:1/0};function Qn(t){return Yn.start(t)}function ti(t){const{interaction:e,state:n,rect:i,edges:r}=t,{options:o}=n;if(!r)return;const a=dt(Nn(o.min,e,t.coords))||Kn,s=dt(Nn(o.max,e,t.coords))||Jn;n.options={endOnly:o.endOnly,inner:$({},Yn.noInner),outer:$({},Yn.noOuter)},r.top?(n.options.inner.top=i.bottom-a.height,n.options.outer.top=i.bottom-s.height):r.bottom&&(n.options.inner.bottom=i.top+a.height,n.options.outer.bottom=i.top+s.height),r.left?(n.options.inner.left=i.right-a.width,n.options.outer.left=i.right-s.width):r.right&&(n.options.inner.right=i.left+a.width,n.options.outer.right=i.left+s.width),Yn.set(t),n.options=o}const ei={min:null,max:null,endOnly:!1,enabled:!1},ni={start:Qn,set:ti,defaults:ei};var ii=Mn(ni,"restrictSize");function ri(t){const{interaction:e,interactable:n,element:i,rect:r,state:o,startOffset:a}=t,{options:s}=o,l=s.offsetWithOrigin?ai(t):{x:0,y:0};let u;if("startCoords"===s.offset)u={x:e.coords.start.page.x,y:e.coords.start.page.y};else{const t=ut(s.offset,n,i,[e]);u=ct(t)||{x:0,y:0},u.x+=l.x,u.y+=l.y}const{relativePoints:c}=s;o.offsets=r&&c&&c.length?c.map((t,e)=>({index:e,relativePoint:t,x:a.left-r.width*t.x+u.x,y:a.top-r.height*t.y+u.y})):[$({index:0,relativePoint:null},u)]}function oi(t){const{interaction:e,coords:n,state:i}=t,{options:r,offsets:o}=i,a=ft(e.interactable,e.element,e.prepared.name),s=$({},n),l=[];r.offsetWithOrigin||(s.x-=a.x,s.y-=a.y);for(const c of o){const t=s.x-c.x,n=s.y-c.y;for(let i=0,o=r.targets.length;i<o;i++){const o=r.targets[i];let a;a=P.func(o)?o(t,n,e._proxy,c,i):o,a&&l.push({x:(P.number(a.x)?a.x:t)+c.x,y:(P.number(a.y)?a.y:n)+c.y,range:P.number(a.range)?a.range:r.range,source:o,index:i,offset:c})}}const u={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}};for(const c of l){const t=c.range,e=c.x-s.x,n=c.y-s.y,i=gt(e,n);let r=i<=t;t===1/0&&u.inRange&&u.range!==1/0&&(r=!1),u.target&&!(r?u.inRange&&t!==1/0?i/t<u.distance/u.range:t===1/0&&u.range!==1/0||i<u.distance:!u.inRange&&i<u.distance)||(u.target=c,u.distance=i,u.range=t,u.inRange=r,u.delta.x=e,u.delta.y=n)}return u.inRange&&(n.x=u.target.x,n.y=u.target.y),i.closest=u,u}function ai(t){const{element:e}=t.interaction,n=ct(ut(t.state.options.origin,null,null,[e])),i=n||ft(t.interactable,e,t.interaction.prepared.name);return i}const si={range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1},li={start:ri,set:oi,defaults:si};var ui=Mn(li,"snap");function ci(t){const{state:e,edges:n}=t,{options:i}=e;if(!n)return null;t.state={options:{targets:null,relativePoints:[{x:n.left?0:1,y:n.top?0:1}],offset:i.offset||"self",origin:{x:0,y:0},range:i.range}},e.targetFields=e.targetFields||[["width","height"],["x","y"]],li.start(t),e.offsets=t.state.offsets,t.state=e}function hi(t){const{interaction:e,state:n,coords:i}=t,{options:r,offsets:o}=n,a={x:i.x-o[0].x,y:i.y-o[0].y};n.options=$({},r),n.options.targets=[];for(const l of r.targets||[]){let t;if(t=P.func(l)?l(a.x,a.y,e):l,t){for(const[e,i]of n.targetFields)if(e in t||i in t){t.x=t[e],t.y=t[i];break}n.options.targets.push(t)}}const s=li.set(t);return n.options=r,s}const di={range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1},pi={start:ci,set:hi,defaults:di};var fi=Mn(pi,"snapSize");function gi(t){const{edges:e}=t;return e?(t.state.targetFields=t.state.targetFields||[[e.left?"left":"right",e.top?"top":"bottom"]],pi.start(t)):null}const vi={start:gi,set:pi.set,defaults:$(H(pi.defaults),{targets:null,range:null,offset:{x:0,y:0}})};var mi=Mn(vi,"snapEdges"),yi={aspectRatio:Ln,restrictEdges:Xn,restrict:Vn,restrictRect:qn,restrictSize:ii,snapEdges:mi,snap:ui,snapSize:fi,spring:On,avoid:On,transform:On,rubberband:On};const xi={id:"modifiers",install(t){const{interactStatic:e}=t;t.usePlugin(Tn),t.usePlugin(xn),e.modifiers=yi;for(const n in yi){const{_defaults:e,_methods:i}=yi[n];e._methods=i,t.defaults.perAction[n]=e}}};var bi,_i=xi;"object"===typeof window&&window&&we(window),_e.use(_i),function(t){t["touchAction"]="touchAction",t["boxSizing"]="boxSizing",t["noListeners"]="noListeners"}(bi||(bi={}));const wi="[interact.js] ",Si={touchAction:"https://developer.mozilla.org/en-US/docs/Web/CSS/touch-action",boxSizing:"https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing"},Mi=!1;function Ii(t,{logger:e}={}){const{Interactable:n,defaults:i}=t;t.logger=e||console,i.base.devTools={ignore:{}},n.prototype.devTools=function(t){return t?($(this.options.devTools,t),this):this.options.devTools}}const Ci=[{name:bi.touchAction,perform({element:t}){return!Ai(t,"touchAction",/pan-|pinch|none/)},getInfo({element:t}){return[t,Si.touchAction]},text:'Consider adding CSS "touch-action: none" to this element\n'},{name:bi.boxSizing,perform(t){const{element:e}=t;return"resize"===t.prepared.name&&e instanceof g.HTMLElement&&!Ti(e,"boxSizing",/border-box/)},text:'Consider adding CSS "box-sizing: border-box" to this resizable element',getInfo({element:t}){return[t,Si.boxSizing]}},{name:bi.noListeners,perform(t){const e=t.prepared.name,n=t.interactable.events.types[e+"move"]||[];return!n.length},getInfo(t){return[t.prepared.name,t.interactable]},text:"There are no listeners set for this action"}];function Ti(t,e,n){const i=t.style[e]||x.getComputedStyle(t)[e];return n.test((i||"").toString())}function Ai(t,e,n){let i=t;while(P.element(i)){if(Ti(i,e,n))return!0;i=tt(i)}return!1}const Di="dev-tools",ki=Mi?{id:Di,install:()=>{}}:{id:Di,install:Ii,listeners:{"interactions:action-start":({interaction:t},e)=>{for(const n of Ci){const i=t.interactable&&t.interactable.options;i&&i.devTools&&i.devTools.ignore[n.name]||!n.perform(t)||e.logger.warn(wi+n.text,...n.getInfo(t))}}},checks:Ci,CheckName:bi,links:Si,prefix:wi};var Li=ki;"object"===typeof window&&window&&we(window),_e.use(Li);var Pi={name:"GridItem",props:{isDraggable:{type:Boolean,required:!1,default:null},isResizable:{type:Boolean,required:!1,default:null},static:{type:Boolean,required:!1,default:!1},minH:{type:Number,required:!1,default:1},minW:{type:Number,required:!1,default:1},maxH:{type:Number,required:!1,default:1/0},maxW:{type:Number,required:!1,default:1/0},x:{type:Number,required:!0},y:{type:Number,required:!0},w:{type:Number,required:!0},h:{type:Number,required:!0},i:{required:!0},dragIgnoreFrom:{type:String,required:!1,default:"a, button"},dragAllowFrom:{type:String,required:!1,default:null},resizeIgnoreFrom:{type:String,required:!1,default:"a, button"},preserveAspectRatio:{type:Boolean,required:!1,default:!1}},inject:["eventBus","layout"],data:function(){return{cols:1,containerWidth:100,rowHeight:30,margin:[10,10],maxRows:1/0,draggable:null,resizable:null,useCssTransforms:!0,useStyleCursor:!0,isDragging:!1,dragging:null,isResizing:!1,resizing:null,lastX:NaN,lastY:NaN,lastW:NaN,lastH:NaN,style:{},rtl:!1,dragEventSet:!1,resizeEventSet:!1,previousW:null,previousH:null,previousX:null,previousY:null,innerX:this.x,innerY:this.y,innerW:this.w,innerH:this.h}},created:function(){var t=this,e=this;e.updateWidthHandler=function(t){e.updateWidth(t)},e.compactHandler=function(t){e.compact(t)},e.setDraggableHandler=function(t){null===e.isDraggable&&(e.draggable=t)},e.setResizableHandler=function(t){null===e.isResizable&&(e.resizable=t)},e.setRowHeightHandler=function(t){e.rowHeight=t},e.setMaxRowsHandler=function(t){e.maxRows=t},e.directionchangeHandler=function(){t.rtl="rtl"===Object(d["b"])(),t.compact()},e.setColNum=function(t){e.cols=parseInt(t)},this.eventBus.$on("updateWidth",e.updateWidthHandler),this.eventBus.$on("compact",e.compactHandler),this.eventBus.$on("setDraggable",e.setDraggableHandler),this.eventBus.$on("setResizable",e.setResizableHandler),this.eventBus.$on("setRowHeight",e.setRowHeightHandler),this.eventBus.$on("setMaxRows",e.setMaxRowsHandler),this.eventBus.$on("directionchange",e.directionchangeHandler),this.eventBus.$on("setColNum",e.setColNum),this.rtl="rtl"===Object(d["b"])()},beforeDestroy:function(){var t=this;this.eventBus.$off("updateWidth",t.updateWidthHandler),this.eventBus.$off("compact",t.compactHandler),this.eventBus.$off("setDraggable",t.setDraggableHandler),this.eventBus.$off("setResizable",t.setResizableHandler),this.eventBus.$off("setRowHeight",t.setRowHeightHandler),this.eventBus.$off("setMaxRows",t.setMaxRowsHandler),this.eventBus.$off("directionchange",t.directionchangeHandler),this.eventBus.$off("setColNum",t.setColNum),this.interactObj&&this.interactObj.unset()},mounted:function(){this.layout.responsive&&this.layout.lastBreakpoint?this.cols=Object(h["c"])(this.layout.lastBreakpoint,this.layout.cols):this.cols=this.layout.colNum,this.rowHeight=this.layout.rowHeight,this.containerWidth=null!==this.layout.width?this.layout.width:100,this.margin=void 0!==this.layout.margin?this.layout.margin:[10,10],this.maxRows=this.layout.maxRows,null===this.isDraggable?this.draggable=this.layout.isDraggable:this.draggable=this.isDraggable,null===this.isResizable?this.resizable=this.layout.isResizable:this.resizable=this.isResizable,this.useCssTransforms=this.layout.useCssTransforms,this.useStyleCursor=this.layout.useStyleCursor,this.createStyle()},watch:{isDraggable:function(){this.draggable=this.isDraggable},static:function(){this.tryMakeDraggable(),this.tryMakeResizable()},draggable:function(){this.tryMakeDraggable()},isResizable:function(){this.resizable=this.isResizable},resizable:function(){this.tryMakeResizable()},rowHeight:function(){this.createStyle(),this.emitContainerResized()},cols:function(){this.tryMakeResizable(),this.createStyle(),this.emitContainerResized()},containerWidth:function(){this.tryMakeResizable(),this.createStyle(),this.emitContainerResized()},x:function(t){this.innerX=t,this.createStyle()},y:function(t){this.innerY=t,this.createStyle()},h:function(t){this.innerH=t,this.createStyle()},w:function(t){this.innerW=t,this.createStyle()},renderRtl:function(){this.tryMakeResizable(),this.createStyle()},minH:function(){this.tryMakeResizable()},maxH:function(){this.tryMakeResizable()},minW:function(){this.tryMakeResizable()},maxW:function(){this.tryMakeResizable()},"$parent.margin":function(t){!t||t[0]==this.margin[0]&&t[1]==this.margin[1]||(this.margin=t.map((function(t){return Number(t)})),this.createStyle(),this.emitContainerResized())}},computed:{classObj:function(){return{"vue-resizable":this.resizableAndNotStatic,static:this.static,resizing:this.isResizing,"vue-draggable-dragging":this.isDragging,cssTransforms:this.useCssTransforms,"render-rtl":this.renderRtl,"disable-userselect":this.isDragging,"no-touch":this.isAndroid&&this.draggableOrResizableAndNotStatic}},resizableAndNotStatic:function(){return this.resizable&&!this.static},draggableOrResizableAndNotStatic:function(){return(this.draggable||this.resizable)&&!this.static},isAndroid:function(){return-1!==navigator.userAgent.toLowerCase().indexOf("android")},renderRtl:function(){return this.layout.isMirrored?!this.rtl:this.rtl},resizableHandleClass:function(){return this.renderRtl?"vue-resizable-handle vue-rtl-resizable-handle":"vue-resizable-handle"}},methods:{createStyle:function(){this.x+this.w>this.cols?(this.innerX=0,this.innerW=this.w>this.cols?this.cols:this.w):(this.innerX=this.x,this.innerW=this.w);var t,e=this.calcPosition(this.innerX,this.innerY,this.innerW,this.innerH);this.isDragging&&(e.top=this.dragging.top,this.renderRtl?e.right=this.dragging.left:e.left=this.dragging.left),this.isResizing&&(e.width=this.resizing.width,e.height=this.resizing.height),t=this.useCssTransforms?this.renderRtl?Object(a["k"])(e.top,e.right,e.width,e.height):Object(a["j"])(e.top,e.left,e.width,e.height):this.renderRtl?Object(a["i"])(e.top,e.right,e.width,e.height):Object(a["h"])(e.top,e.left,e.width,e.height),this.style=t},emitContainerResized:function(){for(var t={},e=0,n=["width","height"];e<n.length;e++){var i=n[e],r=this.style[i],o=r.match(/^(\d+)px$/);if(!o)return;t[i]=o[1]}this.$emit("container-resized",this.i,this.h,this.w,t.height,t.width)},handleResize:function(t){if(!this.static){var e=s(t);if(null!=e){var n,i=e.x,r=e.y,o={width:0,height:0};switch(t.type){case"resizestart":this.previousW=this.innerW,this.previousH=this.innerH,n=this.calcPosition(this.innerX,this.innerY,this.innerW,this.innerH),o.width=n.width,o.height=n.height,this.resizing=o,this.isResizing=!0;break;case"resizemove":var a=u(this.lastW,this.lastH,i,r);this.renderRtl?o.width=this.resizing.width-a.deltaX:o.width=this.resizing.width+a.deltaX,o.height=this.resizing.height+a.deltaY,this.resizing=o;break;case"resizeend":n=this.calcPosition(this.innerX,this.innerY,this.innerW,this.innerH),o.width=n.width,o.height=n.height,this.resizing=null,this.isResizing=!1;break}n=this.calcWH(o.height,o.width),n.w<this.minW&&(n.w=this.minW),n.w>this.maxW&&(n.w=this.maxW),n.h<this.minH&&(n.h=this.minH),n.h>this.maxH&&(n.h=this.maxH),n.h<1&&(n.h=1),n.w<1&&(n.w=1),this.lastW=i,this.lastH=r,this.innerW===n.w&&this.innerH===n.h||this.$emit("resize",this.i,n.h,n.w,o.height,o.width),"resizeend"!==t.type||this.previousW===this.innerW&&this.previousH===this.innerH||this.$emit("resized",this.i,n.h,n.w,o.height,o.width),this.eventBus.$emit("resizeEvent",t.type,this.i,this.innerX,this.innerY,n.h,n.w)}}},handleDrag:function(t){if(!this.static&&!this.isResizing){var e=s(t);if(null!==e){var n,i=e.x,r=e.y,o={top:0,left:0};switch(t.type){case"dragstart":this.previousX=this.innerX,this.previousY=this.innerY;var a=t.target.offsetParent.getBoundingClientRect(),l=t.target.getBoundingClientRect();this.renderRtl?o.left=-1*(l.right-a.right):o.left=l.left-a.left,o.top=l.top-a.top,this.dragging=o,this.isDragging=!0;break;case"dragend":if(!this.isDragging)return;var c=t.target.offsetParent.getBoundingClientRect(),h=t.target.getBoundingClientRect();this.renderRtl?o.left=-1*(h.right-c.right):o.left=h.left-c.left,o.top=h.top-c.top,this.dragging=null,this.isDragging=!1;break;case"dragmove":var d=u(this.lastX,this.lastY,i,r);this.renderRtl?o.left=this.dragging.left-d.deltaX:o.left=this.dragging.left+d.deltaX,o.top=this.dragging.top+d.deltaY,this.dragging=o;break}n=(this.renderRtl,this.calcXY(o.top,o.left)),this.lastX=i,this.lastY=r,this.innerX===n.x&&this.innerY===n.y||this.$emit("move",this.i,n.x,n.y),"dragend"!==t.type||this.previousX===this.innerX&&this.previousY===this.innerY||this.$emit("moved",this.i,n.x,n.y),this.eventBus.$emit("dragEvent",t.type,this.i,n.x,n.y,this.innerH,this.innerW)}}},calcPosition:function(t,e,n,i){var r,o=this.calcColWidth();return r=this.renderRtl?{right:Math.round(o*t+(t+1)*this.margin[0]),top:Math.round(this.rowHeight*e+(e+1)*this.margin[1]),width:n===1/0?n:Math.round(o*n+Math.max(0,n-1)*this.margin[0]),height:i===1/0?i:Math.round(this.rowHeight*i+Math.max(0,i-1)*this.margin[1])}:{left:Math.round(o*t+(t+1)*this.margin[0]),top:Math.round(this.rowHeight*e+(e+1)*this.margin[1]),width:n===1/0?n:Math.round(o*n+Math.max(0,n-1)*this.margin[0]),height:i===1/0?i:Math.round(this.rowHeight*i+Math.max(0,i-1)*this.margin[1])},r},calcXY:function(t,e){var n=this.calcColWidth(),i=Math.round((e-this.margin[0])/(n+this.margin[0])),r=Math.round((t-this.margin[1])/(this.rowHeight+this.margin[1]));return i=Math.max(Math.min(i,this.cols-this.innerW),0),r=Math.max(Math.min(r,this.maxRows-this.innerH),0),{x:i,y:r}},calcColWidth:function(){var t=(this.containerWidth-this.margin[0]*(this.cols+1))/this.cols;return t},calcWH:function(t,e){var n=this.calcColWidth(),i=Math.round((e+this.margin[0])/(n+this.margin[0])),r=Math.round((t+this.margin[1])/(this.rowHeight+this.margin[1]));return i=Math.max(Math.min(i,this.cols-this.innerX),0),r=Math.max(Math.min(r,this.maxRows-this.innerY),0),{w:i,h:r}},updateWidth:function(t,e){this.containerWidth=t,void 0!==e&&null!==e&&(this.cols=e)},compact:function(){this.createStyle()},tryMakeDraggable:function(){var t=this;if(null!==this.interactObj&&void 0!==this.interactObj||(this.interactObj=_e(this.$refs.item),this.useStyleCursor||this.interactObj.styleCursor(!1)),this.draggable&&!this.static){var e={ignoreFrom:this.dragIgnoreFrom,allowFrom:this.dragAllowFrom};this.interactObj.draggable(e),this.dragEventSet||(this.dragEventSet=!0,this.interactObj.on("dragstart dragmove dragend",(function(e){t.handleDrag(e)})))}else this.interactObj.draggable({enabled:!1})},tryMakeResizable:function(){var t=this;if(null!==this.interactObj&&void 0!==this.interactObj||(this.interactObj=_e(this.$refs.item),this.useStyleCursor||this.interactObj.styleCursor(!1)),this.resizable&&!this.static){var e=this.calcPosition(0,0,this.maxW,this.maxH),n=this.calcPosition(0,0,this.minW,this.minH),i={edges:{left:!1,right:"."+this.resizableHandleClass.trim().replace(" ","."),bottom:"."+this.resizableHandleClass.trim().replace(" ","."),top:!1},ignoreFrom:this.resizeIgnoreFrom,restrictSize:{min:{height:n.height,width:n.width},max:{height:e.height,width:e.width}}};this.preserveAspectRatio&&(i.modifiers=[_e.modifiers.aspectRatio({ratio:"preserve"})]),this.interactObj.resizable(i),this.resizeEventSet||(this.resizeEventSet=!0,this.interactObj.on("resizestart resizemove resizeend",(function(e){t.handleResize(e)})))}else this.interactObj.resizable({enabled:!1})},autoSize:function(){this.previousW=this.innerW,this.previousH=this.innerH;var t=this.$slots.default[0].elm.getBoundingClientRect(),e=this.calcWH(t.height,t.width);e.w<this.minW&&(e.w=this.minW),e.w>this.maxW&&(e.w=this.maxW),e.h<this.minH&&(e.h=this.minH),e.h>this.maxH&&(e.h=this.maxH),e.h<1&&(e.h=1),e.w<1&&(e.w=1),this.innerW===e.w&&this.innerH===e.h||this.$emit("resize",this.i,e.h,e.w,t.height,t.width),this.previousW===e.w&&this.previousH===e.h||(this.$emit("resized",this.i,e.h,e.w,t.height,t.width),this.eventBus.$emit("resizeEvent","resizeend",this.i,this.innerX,this.innerY,e.h,e.w))}}},Oi=Pi,Ei=(n("5ed4"),n("2877")),Ri=Object(Ei["a"])(Oi,r,o,!1,null,null,null);e["a"]=Ri.exports},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},c274:function(t,e,n){"use strict";var i=n("50bf");function r(){var t={},e=0,n=0,i=0;function r(r,o){o||(o=r,r=0),r>n?n=r:r<i&&(i=r),t[r]||(t[r]=[]),t[r].push(o),e++}function o(){for(var e=i;e<=n;e++)for(var r=t[e],o=0;o<r.length;o++){var a=r[o];a()}}function a(){return e}return{add:r,process:o,size:a}}t.exports=function(t){t=t||{};var e=t.reporter,n=i.getOption(t,"async",!0),o=i.getOption(t,"auto",!0);o&&!n&&(e&&e.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var a,s=r(),l=!1;function u(t,e){!l&&o&&n&&0===s.size()&&d(),s.add(t,e)}function c(){l=!0;while(s.size()){var t=s;s=r(),t.process()}l=!1}function h(t){l||(void 0===t&&(t=n),a&&(p(a),a=null),t?d():c())}function d(){a=f(c)}function p(t){var e=clearTimeout;return e(t)}function f(t){var e=function(t){return setTimeout(t,0)};return e(t)}return{add:u,force:h}}},c366:function(t,e,n){var i=n("6821"),r=n("9def"),o=n("77f1");t.exports=function(t){return function(e,n,a){var s,l=i(e),u=r(l.length),c=o(a,u);if(t&&n!=n){while(u>c)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===n)return t||c||0;return!t&&-1}}},c5f6:function(t,e,n){"use strict";var i=n("7726"),r=n("69a8"),o=n("2d95"),a=n("5dbc"),s=n("6a99"),l=n("79e5"),u=n("9093").f,c=n("11e9").f,h=n("86cc").f,d=n("aa77").trim,p="Number",f=i[p],g=f,v=f.prototype,m=o(n("2aeb")(v))==p,y="trim"in String.prototype,x=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){e=y?e.trim():d(e,3);var n,i,r,o=e.charCodeAt(0);if(43===o||45===o){if(n=e.charCodeAt(2),88===n||120===n)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+e}for(var a,l=e.slice(2),u=0,c=l.length;u<c;u++)if(a=l.charCodeAt(u),a<48||a>r)return NaN;return parseInt(l,i)}}return+e};if(!f(" 0o1")||!f("0b1")||f("+0x1")){f=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof f&&(m?l((function(){v.valueOf.call(n)})):o(n)!=p)?a(new g(x(e)),n,f):x(e)};for(var b,_=n("9e1e")?u(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;_.length>w;w++)r(g,b=_[w])&&!r(f,b)&&h(f,b,c(g,b));f.prototype=v,v.constructor=f,n("2aba")(i,p,f)}},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}t.exports=n},c946:function(t,e,n){"use strict";var i=n("b770").forEach;t.exports=function(t){t=t||{};var e=t.reporter,n=t.batchProcessor,r=t.stateHandler.getState,o=(t.stateHandler.hasState,t.idHandler);if(!n)throw new Error("Missing required dependency: batchProcessor");if(!e)throw new Error("Missing required dependency: reporter.");var a=h(),s="erd_scroll_detection_scrollbar_style",l="erd_scroll_detection_container";function u(t){d(t,s,l)}function c(e){var n=t.important?" !important; ":"; ";return(e.join(n)+n).trim()}function h(){var t=500,e=500,n=document.createElement("div");n.style.cssText=c(["position: absolute","width: "+2*t+"px","height: "+2*e+"px","visibility: hidden","margin: 0","padding: 0"]);var i=document.createElement("div");i.style.cssText=c(["position: absolute","width: "+t+"px","height: "+e+"px","overflow: scroll","visibility: none","top: "+3*-t+"px","left: "+3*-e+"px","visibility: hidden","margin: 0","padding: 0"]),i.appendChild(n),document.body.insertBefore(i,document.body.firstChild);var r=t-i.clientWidth,o=e-i.clientHeight;return document.body.removeChild(i),{width:r,height:o}}function d(t,e,n){function i(n,i){i=i||function(e){t.head.appendChild(e)};var r=t.createElement("style");return r.innerHTML=n,r.id=e,i(r),r}if(!t.getElementById(e)){var r=n+"_animation",o=n+"_animation_active",a="/* Created by the element-resize-detector library. */\n";a+="."+n+" > div::-webkit-scrollbar { "+c(["display: none"])+" }\n\n",a+="."+o+" { "+c(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+r,"animation-name: "+r])+" }\n",a+="@-webkit-keyframes "+r+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",a+="@keyframes "+r+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",i(a)}}function p(t){t.className+=" "+l+"_animation_active"}function f(t,n,i){if(t.addEventListener)t.addEventListener(n,i);else{if(!t.attachEvent)return e.error("[scroll] Don't know how to add event listeners.");t.attachEvent("on"+n,i)}}function g(t,n,i){if(t.removeEventListener)t.removeEventListener(n,i);else{if(!t.detachEvent)return e.error("[scroll] Don't know how to remove event listeners.");t.detachEvent("on"+n,i)}}function v(t){return r(t).container.childNodes[0].childNodes[0].childNodes[0]}function m(t){return r(t).container.childNodes[0].childNodes[0].childNodes[1]}function y(t,e){var n=r(t).listeners;if(!n.push)throw new Error("Cannot add listener to an element that is not detectable.");r(t).listeners.push(e)}function x(t,s,u){function h(){if(t.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(o.get(s),"Scroll: "),e.log.apply)e.log.apply(null,n);else for(var i=0;i<n.length;i++)e.log(n[i])}}function d(t){function e(t){return t===t.ownerDocument.body||t.ownerDocument.body.contains(t)}return!e(t)||null===window.getComputedStyle(t)}function g(t){var e=r(t).container.childNodes[0],n=window.getComputedStyle(e);return!n.width||-1===n.width.indexOf("px")}function y(){var t=window.getComputedStyle(s),e={};return e.position=t.position,e.width=s.offsetWidth,e.height=s.offsetHeight,e.top=t.top,e.right=t.right,e.bottom=t.bottom,e.left=t.left,e.widthCSS=t.width,e.heightCSS=t.height,e}function x(){var t=y();r(s).startSize={width:t.width,height:t.height},h("Element start size",r(s).startSize)}function b(){r(s).listeners=[]}function _(){if(h("storeStyle invoked."),r(s)){var t=y();r(s).style=t}else h("Aborting because element has been uninstalled")}function w(t,e,n){r(t).lastWidth=e,r(t).lastHeight=n}function S(t){return v(t).childNodes[0]}function M(){return 2*a.width+1}function I(){return 2*a.height+1}function C(t){return t+10+M()}function T(t){return t+10+I()}function A(t){return 2*t+M()}function D(t){return 2*t+I()}function k(t,e,n){var i=v(t),r=m(t),o=C(e),a=T(n),s=A(e),l=D(n);i.scrollLeft=o,i.scrollTop=a,r.scrollLeft=s,r.scrollTop=l}function L(){var t=r(s).container;if(!t){t=document.createElement("div"),t.className=l,t.style.cssText=c(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),r(s).container=t,p(t),s.appendChild(t);var e=function(){r(s).onRendered&&r(s).onRendered()};f(t,"animationstart",e),r(s).onAnimationStart=e}return t}function P(){function n(){var n=r(s).style;if("static"===n.position){s.style.setProperty("position","relative",t.important?"important":"");var i=function(t,e,n,i){function r(t){return t.replace(/[^-\d\.]/g,"")}var o=n[i];"auto"!==o&&"0"!==r(o)&&(t.warn("An element that is positioned static has style."+i+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+i+" will be set to 0. Element: ",e),e.style[i]=0)};i(e,s,n,"top"),i(e,s,n,"right"),i(e,s,n,"bottom"),i(e,s,n,"left")}}function i(t,e,n,i){return t=t?t+"px":"0",e=e?e+"px":"0",n=n?n+"px":"0",i=i?i+"px":"0",["left: "+t,"top: "+e,"right: "+i,"bottom: "+n]}if(h("Injecting elements"),r(s)){n();var o=r(s).container;o||(o=L());var u=a.width,d=a.height,p=c(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),g=c(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(i(-(1+u),-(1+d),-d,-u))),v=c(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),m=c(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),y=c(["position: absolute","left: 0","top: 0"]),x=c(["position: absolute","width: 200%","height: 200%"]),b=document.createElement("div"),_=document.createElement("div"),w=document.createElement("div"),S=document.createElement("div"),M=document.createElement("div"),I=document.createElement("div");b.dir="ltr",b.style.cssText=p,b.className=l,_.className=l,_.style.cssText=g,w.style.cssText=v,S.style.cssText=y,M.style.cssText=m,I.style.cssText=x,w.appendChild(S),M.appendChild(I),_.appendChild(w),_.appendChild(M),b.appendChild(_),o.appendChild(b),f(w,"scroll",C),f(M,"scroll",T),r(s).onExpandScroll=C,r(s).onShrinkScroll=T}else h("Aborting because element has been uninstalled");function C(){r(s).onExpand&&r(s).onExpand()}function T(){r(s).onShrink&&r(s).onShrink()}}function O(){function a(e,n,i){var r=S(e),o=C(n),a=T(i);r.style.setProperty("width",o+"px",t.important?"important":""),r.style.setProperty("height",a+"px",t.important?"important":"")}function l(i){var l=s.offsetWidth,c=s.offsetHeight,d=l!==r(s).lastWidth||c!==r(s).lastHeight;h("Storing current size",l,c),w(s,l,c),n.add(0,(function(){if(d)if(r(s))if(u()){if(t.debug){var n=s.offsetWidth,i=s.offsetHeight;n===l&&i===c||e.warn(o.get(s),"Scroll: Size changed before updating detector elements.")}a(s,l,c)}else h("Aborting because element container has not been initialized");else h("Aborting because element has been uninstalled")})),n.add(1,(function(){r(s)?u()?k(s,l,c):h("Aborting because element container has not been initialized"):h("Aborting because element has been uninstalled")})),d&&i&&n.add(2,(function(){r(s)?u()?i():h("Aborting because element container has not been initialized"):h("Aborting because element has been uninstalled")}))}function u(){return!!r(s).container}function c(){function t(){return void 0===r(s).lastNotifiedWidth}h("notifyListenersIfNeeded invoked");var e=r(s);return t()&&e.lastWidth===e.startSize.width&&e.lastHeight===e.startSize.height?h("Not notifying: Size is the same as the start size, and there has been no notification yet."):e.lastWidth===e.lastNotifiedWidth&&e.lastHeight===e.lastNotifiedHeight?h("Not notifying: Size already notified"):(h("Current size not notified, notifying..."),e.lastNotifiedWidth=e.lastWidth,e.lastNotifiedHeight=e.lastHeight,void i(r(s).listeners,(function(t){t(s)})))}function d(){if(h("startanimation triggered."),g(s))h("Ignoring since element is still unrendered...");else{h("Element rendered.");var t=v(s),e=m(s);0!==t.scrollLeft&&0!==t.scrollTop&&0!==e.scrollLeft&&0!==e.scrollTop||(h("Scrollbars out of sync. Updating detector elements..."),l(c))}}function p(){h("Scroll detected."),g(s)?h("Scroll event fired while unrendered. Ignoring..."):l(c)}if(h("registerListenersAndPositionElements invoked."),r(s)){r(s).onRendered=d,r(s).onExpand=p,r(s).onShrink=p;var f=r(s).style;a(s,f.width,f.height)}else h("Aborting because element has been uninstalled")}function E(){if(h("finalizeDomMutation invoked."),r(s)){var t=r(s).style;w(s,t.width,t.height),k(s,t.width,t.height)}else h("Aborting because element has been uninstalled")}function R(){u(s)}function N(){h("Installing..."),b(),x(),n.add(0,_),n.add(1,P),n.add(2,O),n.add(3,E),n.add(4,R)}u||(u=s,s=t,t=null),t=t||{},h("Making detectable..."),d(s)?(h("Element is detached"),L(),h("Waiting until element is attached..."),r(s).onRendered=function(){h("Element is now attached"),N()}):N()}function b(t){var e=r(t);e&&(e.onExpandScroll&&g(v(t),"scroll",e.onExpandScroll),e.onShrinkScroll&&g(m(t),"scroll",e.onShrinkScroll),e.onAnimationStart&&g(e.container,"animationstart",e.onAnimationStart),e.container&&t.removeChild(e.container))}return u(window.document),{makeDetectable:x,addListener:y,uninstall:b,initDocument:u}}},ca5a:function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},cadf:function(t,e,n){"use strict";var i=n("9c6c"),r=n("d53b"),o=n("84f2"),a=n("6821");t.exports=n("01f9")(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):r(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},cb7c:function(t,e,n){var i=n("d3f4");t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},ce10:function(t,e,n){var i=n("69a8"),r=n("6821"),o=n("c366")(!1),a=n("613b")("IE_PROTO");t.exports=function(t,e){var n,s=r(t),l=0,u=[];for(n in s)n!=a&&i(s,n)&&u.push(n);while(e.length>l)i(s,n=e[l++])&&(~o(u,n)||u.push(n));return u}},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d6eb:function(t,e,n){"use strict";var i="_erd";function r(t){return t[i]={},o(t)}function o(t){return t[i]}function a(t){delete t[i]}t.exports={initState:r,getState:o,cleanState:a}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e279:function(t,e,n){"use strict";n("1156")},eec4:function(t,e,n){"use strict";var i=n("b770").forEach,r=n("5be5"),o=n("49ad"),a=n("2cef"),s=n("5058"),l=n("abb4"),u=n("18e9"),c=n("c274"),h=n("d6eb"),d=n("18d2"),p=n("c946");function f(t){return Array.isArray(t)||void 0!==t.length}function g(t){if(Array.isArray(t))return t;var e=[];return i(t,(function(t){e.push(t)})),e}function v(t){return t&&1===t.nodeType}function m(t,e,n){var i=t[e];return void 0!==i&&null!==i||void 0===n?i:n}t.exports=function(t){var e;if(t=t||{},t.idHandler)e={get:function(e){return t.idHandler.get(e,!0)},set:t.idHandler.set};else{var n=a(),y=s({idGenerator:n,stateHandler:h});e=y}var x=t.reporter;if(!x){var b=!1===x;x=l(b)}var _=m(t,"batchProcessor",c({reporter:x})),w={};w.callOnAdd=!!m(t,"callOnAdd",!0),w.debug=!!m(t,"debug",!1);var S,M=o(e),I=r({stateHandler:h}),C=m(t,"strategy","object"),T=m(t,"important",!1),A={reporter:x,batchProcessor:_,stateHandler:h,idHandler:e,important:T};if("scroll"===C&&(u.isLegacyOpera()?(x.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),C="object"):u.isIE(9)&&(x.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),C="object")),"scroll"===C)S=p(A);else{if("object"!==C)throw new Error("Invalid strategy name: "+C);S=d(A)}var D={};function k(t,n,r){function o(t){var e=M.get(t);i(e,(function(e){e(t)}))}function a(t,e,n){M.add(e,n),t&&n(e)}if(r||(r=n,n=t,t={}),!n)throw new Error("At least one element required.");if(!r)throw new Error("Listener required.");if(v(n))n=[n];else{if(!f(n))return x.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");n=g(n)}var s=0,l=m(t,"callOnAdd",w.callOnAdd),u=m(t,"onReady",(function(){})),c=m(t,"debug",w.debug);i(n,(function(t){h.getState(t)||(h.initState(t),e.set(t));var d=e.get(t);if(c&&x.log("Attaching listener to element",d,t),!I.isDetectable(t))return c&&x.log(d,"Not detectable."),I.isBusy(t)?(c&&x.log(d,"System busy making it detectable"),a(l,t,r),D[d]=D[d]||[],void D[d].push((function(){s++,s===n.length&&u()}))):(c&&x.log(d,"Making detectable..."),I.markBusy(t,!0),S.makeDetectable({debug:c,important:T},t,(function(t){if(c&&x.log(d,"onElementDetectable"),h.getState(t)){I.markAsDetectable(t),I.markBusy(t,!1),S.addListener(t,o),a(l,t,r);var e=h.getState(t);if(e&&e.startSize){var p=t.offsetWidth,f=t.offsetHeight;e.startSize.width===p&&e.startSize.height===f||o(t)}D[d]&&i(D[d],(function(t){t()}))}else c&&x.log(d,"Element uninstalled before being detectable.");delete D[d],s++,s===n.length&&u()})));c&&x.log(d,"Already detecable, adding listener."),a(l,t,r),s++})),s===n.length&&u()}function L(t){if(!t)return x.error("At least one element is required.");if(v(t))t=[t];else{if(!f(t))return x.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");t=g(t)}i(t,(function(t){M.removeAllListeners(t),S.uninstall(t),h.cleanState(t)}))}function P(t){S.initDocument&&S.initDocument(t)}return{listenTo:k,removeListener:M.removeListener,removeAllListeners:M.removeAllListeners,uninstall:L,initDocument:P}}},f1ae:function(t,e,n){"use strict";var i=n("86cc"),r=n("4630");t.exports=function(t,e,n){e in t?i.f(t,e,r(0,n)):t[e]=n}},f6fd:function(t,e){(function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(i){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(i.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})})(document)},f751:function(t,e,n){var i=n("5ca1");i(i.S+i.F,"Object",{assign:n("7333")})},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,n){var i=n("7726").document;t.exports=i&&i.documentElement},fb15:function(t,e,n){"use strict";var i;(n.r(e),n.d(e,"install",(function(){return r["d"]})),n.d(e,"GridLayout",(function(){return r["b"]})),n.d(e,"GridItem",(function(){return r["a"]})),"undefined"!==typeof window)&&(n("f6fd"),(i=window.document.currentScript)&&(i=i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=i[1]));var r=n("2af9");e["default"]=r["c"]},fca0:function(t,e,n){var i=n("5ca1"),r=n("7726").isFinite;i(i.S,"Number",{isFinite:function(t){return"number"==typeof t&&r(t)}})},fdef:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"}})["default"]},"7c73":function(t,e,n){var i,r=n("825a"),o=n("37e8"),a=n("7839"),s=n("d012"),l=n("1be4"),u=n("cc12"),c=n("f772"),h=">",d="<",p="prototype",f="script",g=c("IE_PROTO"),v=function(){},m=function(t){return d+f+h+t+d+"/"+f+h},y=function(t){t.write(m("")),t.close();var e=t.parentWindow.Object;return t=null,e},x=function(){var t,e=u("iframe"),n="java"+f+":";return e.style.display="none",l.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(m("document.F=Object")),t.close(),t.F},b=function(){try{i=new ActiveXObject("htmlfile")}catch(e){}b="undefined"!=typeof document?document.domain&&i?y(i):x():y(i);var t=a.length;while(t--)delete b[p][a[t]];return b()};s[g]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(v[p]=r(t),n=new v,v[p]=null,n[g]=t):n=b(),void 0===e?n:o(n,e)}},"7dd0":function(t,e,n){"use strict";var i=n("23e7"),r=n("9ed3"),o=n("e163"),a=n("d2bb"),s=n("d44e"),l=n("9112"),u=n("6eeb"),c=n("b622"),h=n("c430"),d=n("3f8c"),p=n("ae93"),f=p.IteratorPrototype,g=p.BUGGY_SAFARI_ITERATORS,v=c("iterator"),m="keys",y="values",x="entries",b=function(){return this};t.exports=function(t,e,n,c,p,_,w){r(n,e,c);var S,M,I,C=function(t){if(t===p&&L)return L;if(!g&&t in D)return D[t];switch(t){case m:return function(){return new n(this,t)};case y:return function(){return new n(this,t)};case x:return function(){return new n(this,t)}}return function(){return new n(this)}},T=e+" Iterator",A=!1,D=t.prototype,k=D[v]||D["@@iterator"]||p&&D[p],L=!g&&k||C(p),P="Array"==e&&D.entries||k;if(P&&(S=o(P.call(new t)),f!==Object.prototype&&S.next&&(h||o(S)===f||(a?a(S,f):"function"!=typeof S[v]&&l(S,v,b)),s(S,T,!0,!0),h&&(d[T]=b))),p==y&&k&&k.name!==y&&(A=!0,L=function(){return k.call(this)}),h&&!w||D[v]===L||l(D,v,L),d[e]=L,p)if(M={values:C(y),keys:_?L:C(m),entries:C(x)},w)for(I in M)(g||A||!(I in D))&&u(D,I,M[I]);else i({target:e,proto:!0,forced:g||A},M);return M}},"7f9a":function(t,e,n){var i=n("da84"),r=n("8925"),o=i.WeakMap;t.exports="function"===typeof o&&/native code/.test(r(o))},"817d":function(t,e,n){var i,r,o;(function(a,s){r=[e,n("313e")],i=s,o="function"===typeof i?i.apply(e,r):i,void 0===o||(t.exports=o)})(0,(function(t,e){var n=function(t){"undefined"!==typeof console&&console&&console.error&&console.error(t)};if(e){var i=["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],r={color:i,title:{textStyle:{fontWeight:"normal",color:"#008acd"}},visualMap:{itemWidth:15,color:["#5ab1ef","#e0ffff"]},toolbox:{iconStyle:{normal:{borderColor:i[0]}}},tooltip:{backgroundColor:"rgba(50,50,50,0.5)",axisPointer:{type:"line",lineStyle:{color:"#008acd"},crossStyle:{color:"#008acd"},shadowStyle:{color:"rgba(200,200,200,0.2)"}}},dataZoom:{dataBackgroundColor:"#efefff",fillerColor:"rgba(182,162,222,0.2)",handleColor:"#008acd"},grid:{borderColor:"#eee"},categoryAxis:{axisLine:{lineStyle:{color:"#008acd"}},splitLine:{lineStyle:{color:["#eee"]}}},valueAxis:{axisLine:{lineStyle:{color:"#008acd"}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.1)","rgba(200,200,200,0.1)"]}},splitLine:{lineStyle:{color:["#eee"]}}},timeline:{lineStyle:{color:"#008acd"},controlStyle:{color:"#008acd",borderColor:"#008acd"},symbol:"emptyCircle",symbolSize:3},line:{smooth:!0,symbol:"emptyCircle",symbolSize:3},candlestick:{itemStyle:{color:"#d87a80",color0:"#2ec7c9"},lineStyle:{width:1,color:"#d87a80",color0:"#2ec7c9"},areaStyle:{color:"#2ec7c9",color0:"#b6a2de"}},scatter:{symbol:"circle",symbolSize:4},map:{itemStyle:{color:"#ddd"},areaStyle:{color:"#fe994e"},label:{color:"#d87a80"}},graph:{itemStyle:{color:"#d87a80"},linkStyle:{color:"#2ec7c9"}},gauge:{axisLine:{lineStyle:{color:[[.2,"#2ec7c9"],[.8,"#5ab1ef"],[1,"#d87a80"]],width:10}},axisTick:{splitNumber:10,length:15,lineStyle:{color:"auto"}},splitLine:{length:22,lineStyle:{color:"auto"}},pointer:{width:5}}};e.registerTheme("macarons",r)}else n("ECharts is not Loaded")}))},"825a":function(t,e,n){var i=n("861d");t.exports=function(t){if(!i(t))throw TypeError(String(t)+" is not an object");return t}},"83ab":function(t,e,n){var i=n("d039");t.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(t,e,n){"use strict";var i=n("a04b"),r=n("9bf2"),o=n("5c6c");t.exports=function(t,e,n){var a=i(e);a in t?r.f(t,a,o(0,n)):t[a]=n}},"861d":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},"86cc":function(t,e,n){},8875:function(t,e,n){var i,r,o;(function(n,a){r=[],i=a,o="function"===typeof i?i.apply(e,r):i,void 0===o||(t.exports=o)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var n,i,r,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,s=o.exec(p.stack)||a.exec(p.stack),l=s&&s[1]||!1,u=s&&s[2]||!1,c=document.location.href.replace(document.location.hash,""),h=document.getElementsByTagName("script");l===c&&(n=document.documentElement.outerHTML,i=new RegExp("(?:[^\\n]+?\\n){0,"+(u-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),r=n.replace(i,"$1").trim());for(var d=0;d<h.length;d++){if("interactive"===h[d].readyState)return h[d];if(h[d].src===l)return h[d];if(l===c&&h[d].innerHTML&&h[d].innerHTML.trim()===r)return h[d]}return null}}return t}))},8925:function(t,e,n){var i=n("c6cd"),r=Function.toString;"function"!=typeof i.inspectSource&&(i.inspectSource=function(t){return r.call(t)}),t.exports=i.inspectSource},"899c":function(t,e,n){},"8adc":function(t,e,n){},"8b37":function(t,e,n){},"8bbf":function(e,n){e.exports=t},"8c94":function(t,e,n){"use strict";n("74d6")},"8ce9":function(t,e,n){},"8d4f":function(t,e,n){},"8ff2":function(t,e,n){},"90e3":function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+i).toString(36)}},9112:function(t,e,n){var i=n("83ab"),r=n("9bf2"),o=n("5c6c");t.exports=i?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"91f4":function(t,e,n){},9263:function(t,e,n){"use strict";var i=n("577e"),r=n("ad6d"),o=n("9f7f"),a=n("5692"),s=n("7c73"),l=n("69f3").get,u=n("fce3"),c=n("107c"),h=RegExp.prototype.exec,d=a("native-string-replace",String.prototype.replace),p=h,f=function(){var t=/a/,e=/b*/g;return h.call(t,"a"),h.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),g=o.UNSUPPORTED_Y||o.BROKEN_CARET,v=void 0!==/()??/.exec("")[1],m=f||v||g||u||c;m&&(p=function(t){var e,n,o,a,u,c,m,y=this,x=l(y),b=i(t),_=x.raw;if(_)return _.lastIndex=y.lastIndex,e=p.call(_,b),y.lastIndex=_.lastIndex,e;var w=x.groups,S=g&&y.sticky,M=r.call(y),I=y.source,C=0,T=b;if(S&&(M=M.replace("y",""),-1===M.indexOf("g")&&(M+="g"),T=b.slice(y.lastIndex),y.lastIndex>0&&(!y.multiline||y.multiline&&"\n"!==b.charAt(y.lastIndex-1))&&(I="(?: "+I+")",T=" "+T,C++),n=new RegExp("^(?:"+I+")",M)),v&&(n=new RegExp("^"+I+"$(?!\\s)",M)),f&&(o=y.lastIndex),a=h.call(S?n:y,T),S?a?(a.input=a.input.slice(C),a[0]=a[0].slice(C),a.index=y.lastIndex,y.lastIndex+=a[0].length):y.lastIndex=0:f&&a&&(y.lastIndex=y.global?a.index+a[0].length:o),v&&a&&a.length>1&&d.call(a[0],n,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(a[u]=void 0)})),a&&w)for(a.groups=c=s(null),u=0;u<w.length;u++)m=w[u],c[m[0]]=a[m[1]];return a}),t.exports=p},"94ca":function(t,e,n){var i=n("d039"),r=/#|\.prototype\./,o=function(t,e){var n=s[a(t)];return n==u||n!=l&&("function"==typeof e?i(e):!!e)},a=o.normalize=function(t){return String(t).replace(r,".").toLowerCase()},s=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";t.exports=o},"95ed":function(t,e,n){},"9a1f":function(t,e,n){var i=n("825a"),r=n("35a1");t.exports=function(t,e){var n=arguments.length<2?r(t):e;if("function"!=typeof n)throw TypeError(String(t)+" is not iterable");return i(n.call(t))}},"9bdd":function(t,e,n){var i=n("825a"),r=n("2a62");t.exports=function(t,e,n,o){try{return o?e(i(n)[0],n[1]):e(n)}catch(a){r(t,"throw",a)}}},"9bf2":function(t,e,n){var i=n("83ab"),r=n("0cfb"),o=n("825a"),a=n("a04b"),s=Object.defineProperty;e.f=i?s:function(t,e,n){if(o(t),e=a(e),o(n),r)try{return s(t,e,n)}catch(i){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},"9ed3":function(t,e,n){"use strict";var i=n("ae93").IteratorPrototype,r=n("7c73"),o=n("5c6c"),a=n("d44e"),s=n("3f8c"),l=function(){return this};t.exports=function(t,e,n){var u=e+" Iterator";return t.prototype=r(i,{next:o(1,n)}),a(t,u,!1,!0),s[u]=l,t}},"9f7f":function(t,e,n){var i=n("d039"),r=n("da84"),o=r.RegExp;e.UNSUPPORTED_Y=i((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=i((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},"9fad":function(t,e,n){var i,r,o;(function(a,s){r=[e,n("313e")],i=s,o="function"===typeof i?i.apply(e,r):i,void 0===o||(t.exports=o)})(0,(function(t,e){var n=function(t){"undefined"!==typeof console&&console&&console.error&&console.error(t)};if(e){var i=["#c12e34","#e6b600","#0098d9","#2b821d","#005eaa","#339ca8","#cda819","#32a487"],r={color:i,title:{textStyle:{fontWeight:"normal"}},visualMap:{color:["#1790cf","#a2d4e6"]},toolbox:{iconStyle:{normal:{borderColor:"#06467c"}}},tooltip:{backgroundColor:"rgba(0,0,0,0.6)"},dataZoom:{dataBackgroundColor:"#dedede",fillerColor:"rgba(154,217,247,0.2)",handleColor:"#005eaa"},timeline:{lineStyle:{color:"#005eaa"},controlStyle:{color:"#005eaa",borderColor:"#005eaa"}},candlestick:{itemStyle:{color:"#c12e34",color0:"#2b821d"},lineStyle:{width:1,color:"#c12e34",color0:"#2b821d"},areaStyle:{color:"#e6b600",color0:"#005eaa"}},graph:{itemStyle:{color:"#e6b600"},linkStyle:{color:"#005eaa"}},map:{itemStyle:{color:"#f2385a",borderColor:"#eee",areaColor:"#ddd"},areaStyle:{color:"#ddd"},label:{color:"#c12e34"}},gauge:{axisLine:{show:!0,lineStyle:{color:[[.2,"#2b821d"],[.8,"#005eaa"],[1,"#c12e34"]],width:5}},axisTick:{splitNumber:10,length:8,lineStyle:{color:"auto"}},axisLabel:{color:"auto"},splitLine:{length:12,lineStyle:{color:"auto"}},pointer:{length:"90%",width:3,color:"auto"},title:{color:"#333"},detail:{color:"auto"}}};e.registerTheme("shine",r)}else n("ECharts is not Loaded")}))},a04b:function(t,e,n){var i=n("c04e"),r=n("d9b5");t.exports=function(t){var e=i(t,"string");return r(e)?e:String(e)}},a4d3:function(t,e,n){"use strict";var i=n("23e7"),r=n("da84"),o=n("d066"),a=n("c430"),s=n("83ab"),l=n("4930"),u=n("d039"),c=n("5135"),h=n("e8b5"),d=n("861d"),p=n("d9b5"),f=n("825a"),g=n("7b0b"),v=n("fc6a"),m=n("a04b"),y=n("577e"),x=n("5c6c"),b=n("7c73"),_=n("df75"),w=n("241c"),S=n("057f"),M=n("7418"),I=n("06cf"),C=n("9bf2"),T=n("d1e7"),A=n("9112"),D=n("6eeb"),k=n("5692"),L=n("f772"),P=n("d012"),O=n("90e3"),E=n("b622"),R=n("e538"),N=n("746f"),z=n("d44e"),B=n("69f3"),V=n("b727").forEach,F=L("hidden"),H="Symbol",$="prototype",W=E("toPrimitive"),G=B.set,j=B.getterFor(H),Y=Object[$],X=r.Symbol,U=o("JSON","stringify"),Z=I.f,q=C.f,K=S.f,J=T.f,Q=k("symbols"),tt=k("op-symbols"),et=k("string-to-symbol-registry"),nt=k("symbol-to-string-registry"),it=k("wks"),rt=r.QObject,ot=!rt||!rt[$]||!rt[$].findChild,at=s&&u((function(){return 7!=b(q({},"a",{get:function(){return q(this,"a",{value:7}).a}})).a}))?function(t,e,n){var i=Z(Y,e);i&&delete Y[e],q(t,e,n),i&&t!==Y&&q(Y,e,i)}:q,st=function(t,e){var n=Q[t]=b(X[$]);return G(n,{type:H,tag:t,description:e}),s||(n.description=e),n},lt=function(t,e,n){t===Y&<(tt,e,n),f(t);var i=m(e);return f(n),c(Q,i)?(n.enumerable?(c(t,F)&&t[F][i]&&(t[F][i]=!1),n=b(n,{enumerable:x(0,!1)})):(c(t,F)||q(t,F,x(1,{})),t[F][i]=!0),at(t,i,n)):q(t,i,n)},ut=function(t,e){f(t);var n=v(e),i=_(n).concat(ft(n));return V(i,(function(e){s&&!ht.call(n,e)||lt(t,e,n[e])})),t},ct=function(t,e){return void 0===e?b(t):ut(b(t),e)},ht=function(t){var e=m(t),n=J.call(this,e);return!(this===Y&&c(Q,e)&&!c(tt,e))&&(!(n||!c(this,e)||!c(Q,e)||c(this,F)&&this[F][e])||n)},dt=function(t,e){var n=v(t),i=m(e);if(n!==Y||!c(Q,i)||c(tt,i)){var r=Z(n,i);return!r||!c(Q,i)||c(n,F)&&n[F][i]||(r.enumerable=!0),r}},pt=function(t){var e=K(v(t)),n=[];return V(e,(function(t){c(Q,t)||c(P,t)||n.push(t)})),n},ft=function(t){var e=t===Y,n=K(e?tt:v(t)),i=[];return V(n,(function(t){!c(Q,t)||e&&!c(Y,t)||i.push(Q[t])})),i};if(l||(X=function(){if(this instanceof X)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?y(arguments[0]):void 0,e=O(t),n=function(t){this===Y&&n.call(tt,t),c(this,F)&&c(this[F],e)&&(this[F][e]=!1),at(this,e,x(1,t))};return s&&ot&&at(Y,e,{configurable:!0,set:n}),st(e,t)},D(X[$],"toString",(function(){return j(this).tag})),D(X,"withoutSetter",(function(t){return st(O(t),t)})),T.f=ht,C.f=lt,I.f=dt,w.f=S.f=pt,M.f=ft,R.f=function(t){return st(E(t),t)},s&&(q(X[$],"description",{configurable:!0,get:function(){return j(this).description}}),a||D(Y,"propertyIsEnumerable",ht,{unsafe:!0}))),i({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:X}),V(_(it),(function(t){N(t)})),i({target:H,stat:!0,forced:!l},{for:function(t){var e=y(t);if(c(et,e))return et[e];var n=X(e);return et[e]=n,nt[n]=e,n},keyFor:function(t){if(!p(t))throw TypeError(t+" is not a symbol");if(c(nt,t))return nt[t]},useSetter:function(){ot=!0},useSimple:function(){ot=!1}}),i({target:"Object",stat:!0,forced:!l,sham:!s},{create:ct,defineProperty:lt,defineProperties:ut,getOwnPropertyDescriptor:dt}),i({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:pt,getOwnPropertySymbols:ft}),i({target:"Object",stat:!0,forced:u((function(){M.f(1)}))},{getOwnPropertySymbols:function(t){return M.f(g(t))}}),U){var gt=!l||u((function(){var t=X();return"[null]"!=U([t])||"{}"!=U({a:t})||"{}"!=U(Object(t))}));i({target:"JSON",stat:!0,forced:gt},{stringify:function(t,e,n){var i,r=[t],o=1;while(arguments.length>o)r.push(arguments[o++]);if(i=e,(d(e)||void 0!==t)&&!p(t))return h(e)||(e=function(t,e){if("function"==typeof i&&(e=i.call(this,t,e)),!p(e))return e}),r[1]=e,U.apply(null,r)}})}X[$][W]||A(X[$],W,X[$].valueOf),z(X,H),P[F]=!0},a573:function(t,e,n){"use strict";var i=n("23e7"),r=n("1c0b"),o=n("825a"),a=n("c5cc"),s=n("9bdd"),l=a((function(t){var e=this.iterator,n=o(this.next.apply(e,t)),i=this.done=!!n.done;if(!i)return s(e,this.mapper,n.value)}));i({target:"Iterator",proto:!0,real:!0},{map:function(t){return new l({iterator:o(this),mapper:r(t)})}})},a630:function(t,e,n){var i=n("23e7"),r=n("4df4"),o=n("1c7e"),a=!o((function(t){Array.from(t)}));i({target:"Array",stat:!0,forced:a},{from:r})},a640:function(t,e,n){"use strict";var i=n("d039");t.exports=function(t,e){var n=[][t];return!!n&&i((function(){n.call(null,e||function(){throw 1},1)}))}},a691:function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},ac1f:function(t,e,n){"use strict";var i=n("23e7"),r=n("9263");i({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},ad6d:function(t,e,n){"use strict";var i=n("825a");t.exports=function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},ae93:function(t,e,n){"use strict";var i,r,o,a=n("d039"),s=n("e163"),l=n("9112"),u=n("5135"),c=n("b622"),h=n("c430"),d=c("iterator"),p=!1,f=function(){return this};[].keys&&(o=[].keys(),"next"in o?(r=s(s(o)),r!==Object.prototype&&(i=r)):p=!0);var g=void 0==i||a((function(){var t={};return i[d].call(t)!==t}));g&&(i={}),h&&!g||u(i,d)||l(i,d,f),t.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:p}},b041:function(t,e,n){"use strict";var i=n("00ee"),r=n("f5df");t.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},b0c0:function(t,e,n){var i=n("83ab"),r=n("9bf2").f,o=Function.prototype,a=o.toString,s=/^\s*function ([^ (]*)/,l="name";i&&!(l in o)&&r(o,l,{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(t){return""}}})},b622:function(t,e,n){var i=n("da84"),r=n("5692"),o=n("5135"),a=n("90e3"),s=n("4930"),l=n("fdbf"),u=r("wks"),c=i.Symbol,h=l?c:c&&c.withoutSetter||a;t.exports=function(t){return o(u,t)&&(s||"string"==typeof u[t])||(s&&o(c,t)?u[t]=c[t]:u[t]=h("Symbol."+t)),u[t]}},b64b:function(t,e,n){var i=n("23e7"),r=n("7b0b"),o=n("df75"),a=n("d039"),s=a((function(){o(1)}));i({target:"Object",stat:!0,forced:s},{keys:function(t){return o(r(t))}})},b727:function(t,e,n){var i=n("0366"),r=n("44ad"),o=n("7b0b"),a=n("50c4"),s=n("65f0"),l=[].push,u=function(t){var e=1==t,n=2==t,u=3==t,c=4==t,h=6==t,d=7==t,p=5==t||h;return function(f,g,v,m){for(var y,x,b=o(f),_=r(b),w=i(g,v,3),S=a(_.length),M=0,I=m||s,C=e?I(f,S):n||d?I(f,0):void 0;S>M;M++)if((p||M in _)&&(y=_[M],x=w(y,M,b),t))if(e)C[M]=x;else if(x)switch(t){case 3:return!0;case 5:return y;case 6:return M;case 2:l.call(C,y)}else switch(t){case 4:return!1;case 7:l.call(C,y)}return h?-1:u||c?c:C}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},c04e:function(t,e,n){var i=n("861d"),r=n("d9b5"),o=n("485a"),a=n("b622"),s=a("toPrimitive");t.exports=function(t,e){if(!i(t)||r(t))return t;var n,a=t[s];if(void 0!==a){if(void 0===e&&(e="default"),n=a.call(t,e),!i(n)||r(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),o(t,e)}},c430:function(t,e){t.exports=!1},c5cc:function(t,e,n){"use strict";var i=n("428f"),r=n("1c0b"),o=n("825a"),a=n("7c73"),s=n("9112"),l=n("e2cc"),u=n("b622"),c=n("69f3"),h=c.set,d=c.get,p=u("toStringTag");t.exports=function(t,e){var n=function(t){t.next=r(t.iterator.next),t.done=!1,t.ignoreArg=!e,h(this,t)};return n.prototype=l(a(i.Iterator.prototype),{next:function(n){var i=d(this),r=arguments.length?[i.ignoreArg?void 0:n]:e?[]:[void 0];i.ignoreArg=!1;var o=i.done?void 0:t.call(i,r);return{done:i.done,value:o}},return:function(t){var e=d(this),n=e.iterator;e.done=!0;var i=n["return"];return{done:!0,value:void 0===i?t:o(i.call(n,t)).value}},throw:function(t){var e=d(this),n=e.iterator;e.done=!0;var i=n["throw"];if(void 0===i)throw t;return i.call(n,t)}}),e||s(n.prototype,p,"Generator"),n}},c6b6:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},c6cd:function(t,e,n){var i=n("da84"),r=n("ce4e"),o="__core-js_shared__",a=i[o]||r(o,{});t.exports=a},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}t.exports=n},ca84:function(t,e,n){var i=n("5135"),r=n("fc6a"),o=n("4d64").indexOf,a=n("d012");t.exports=function(t,e){var n,s=r(t),l=0,u=[];for(n in s)!i(a,n)&&i(s,n)&&u.push(n);while(e.length>l)i(s,n=e[l++])&&(~o(u,n)||u.push(n));return u}},cc12:function(t,e,n){var i=n("da84"),r=n("861d"),o=i.document,a=r(o)&&r(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},ce4e:function(t,e,n){var i=n("da84");t.exports=function(t,e){try{Object.defineProperty(i,t,{value:e,configurable:!0,writable:!0})}catch(n){i[t]=e}return e}},cf36:function(t,e,n){},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,n){var i=n("da84"),r=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?r(i[t]):i[t]&&i[t][e]}},d191:function(t,e,n){},d1e7:function(t,e,n){"use strict";var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!i.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:i},d28b:function(t,e,n){var i=n("746f");i("iterator")},d2bb:function(t,e,n){var i=n("825a"),r=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(o){}return function(n,o){return i(n),r(o),e?t.call(n,o):n.__proto__=o,n}}():void 0)},d3b7:function(t,e,n){var i=n("00ee"),r=n("6eeb"),o=n("b041");i||r(Object.prototype,"toString",o,{unsafe:!0})},d44e:function(t,e,n){var i=n("9bf2").f,r=n("5135"),o=n("b622"),a=o("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,a)&&i(t,a,{configurable:!0,value:e})}},d81d:function(t,e,n){"use strict";var i=n("23e7"),r=n("b727").map,o=n("1dde"),a=o("map");i({target:"Array",proto:!0,forced:!a},{map:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},d9b5:function(t,e,n){var i=n("d066"),r=n("fdbf");t.exports=r?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return"function"==typeof e&&Object(t)instanceof e}},da84:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},db42:function(t,e,n){},ddb0:function(t,e,n){var i=n("da84"),r=n("fdbc"),o=n("e260"),a=n("9112"),s=n("b622"),l=s("iterator"),u=s("toStringTag"),c=o.values;for(var h in r){var d=i[h],p=d&&d.prototype;if(p){if(p[l]!==c)try{a(p,l,c)}catch(g){p[l]=c}if(p[u]||a(p,u,h),r[h])for(var f in o)if(p[f]!==o[f])try{a(p,f,o[f])}catch(g){p[f]=o[f]}}}},df75:function(t,e,n){var i=n("ca84"),r=n("7839");t.exports=Object.keys||function(t){return i(t,r)}},e01a:function(t,e,n){"use strict";var i=n("23e7"),r=n("83ab"),o=n("da84"),a=n("5135"),s=n("861d"),l=n("9bf2").f,u=n("e893"),c=o.Symbol;if(r&&"function"==typeof c&&(!("description"in c.prototype)||void 0!==c().description)){var h={},d=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof d?new c(t):void 0===t?c():c(t);return""===t&&(h[e]=!0),e};u(d,c);var p=d.prototype=c.prototype;p.constructor=d;var f=p.toString,g="Symbol(test)"==String(c("test")),v=/^Symbol\((.*)\)[^)]+$/;l(p,"description",{configurable:!0,get:function(){var t=s(this)?this.valueOf():this,e=f.call(t);if(a(h,t))return"";var n=g?e.slice(7,-1):e.replace(v,"$1");return""===n?void 0:n}}),i({global:!0,forced:!0},{Symbol:d})}},e163:function(t,e,n){var i=n("5135"),r=n("7b0b"),o=n("f772"),a=n("e177"),s=o("IE_PROTO"),l=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=r(t),i(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?l:null}},e177:function(t,e,n){var i=n("d039");t.exports=!i((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},e260:function(t,e,n){"use strict";var i=n("fc6a"),r=n("44d2"),o=n("3f8c"),a=n("69f3"),s=n("7dd0"),l="Array Iterator",u=a.set,c=a.getterFor(l);t.exports=s(Array,"Array",(function(t,e){u(this,{type:l,target:i(t),index:0,kind:e})}),(function(){var t=c(this),e=t.target,n=t.kind,i=t.index++;return!e||i>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:e[i],done:!1}:{value:[i,e[i]],done:!1}}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},e2cc:function(t,e,n){var i=n("6eeb");t.exports=function(t,e,n){for(var r in e)i(t,r,e[r],n);return t}},e538:function(t,e,n){var i=n("b622");e.f=i},e893:function(t,e,n){var i=n("5135"),r=n("56ef"),o=n("06cf"),a=n("9bf2");t.exports=function(t,e){for(var n=r(e),s=a.f,l=o.f,u=0;u<n.length;u++){var c=n[u];i(t,c)||s(t,c,l(e,c))}}},e8b5:function(t,e,n){var i=n("c6b6");t.exports=Array.isArray||function(t){return"Array"==i(t)}},e95a:function(t,e,n){var i=n("b622"),r=n("3f8c"),o=i("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||a[o]===t)}},e9b1:function(t,e,n){},e9c4:function(t,e,n){var i=n("23e7"),r=n("d066"),o=n("d039"),a=r("JSON","stringify"),s=/[\uD800-\uDFFF]/g,l=/^[\uD800-\uDBFF]$/,u=/^[\uDC00-\uDFFF]$/,c=function(t,e,n){var i=n.charAt(e-1),r=n.charAt(e+1);return l.test(t)&&!u.test(r)||u.test(t)&&!l.test(i)?"\\u"+t.charCodeAt(0).toString(16):t},h=o((function(){return'"\\udf06\\ud834"'!==a("\udf06\ud834")||'"\\udead"'!==a("\udead")}));a&&i({target:"JSON",stat:!0,forced:h},{stringify:function(t,e,n){var i=a.apply(null,arguments);return"string"==typeof i?i.replace(s,c):i}})},ee6f:function(t,e,n){},f5df:function(t,e,n){var i=n("00ee"),r=n("c6b6"),o=n("b622"),a=o("toStringTag"),s="Arguments"==r(function(){return arguments}()),l=function(t,e){try{return t[e]}catch(n){}};t.exports=i?r:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=l(e=Object(t),a))?n:s?r(e):"Object"==(i=r(e))&&"function"==typeof e.callee?"Arguments":i}},f772:function(t,e,n){var i=n("5692"),r=n("90e3"),o=i("keys");t.exports=function(t){return o[t]||(o[t]=r(t))}},f823:function(t,e,n){},fb15:function(t,e,n){"use strict";n.r(e);var i={};if(n.r(i),n.d(i,"linear",(function(){return kt})),n.d(i,"easeInQuad",(function(){return Lt})),n.d(i,"easeOutQuad",(function(){return Pt})),n.d(i,"easeInOutQuad",(function(){return Ot})),n.d(i,"easeInCubic",(function(){return Et})),n.d(i,"easeOutCubic",(function(){return Rt})),n.d(i,"easeInOutCubic",(function(){return Nt})),n.d(i,"easeInQuart",(function(){return zt})),n.d(i,"easeOutQuart",(function(){return Bt})),n.d(i,"easeInOutQuart",(function(){return Vt})),n.d(i,"easeInQuint",(function(){return Ft})),n.d(i,"easeOutQuint",(function(){return Ht})),n.d(i,"easeInOutQuint",(function(){return $t})),"undefined"!==typeof window){var r=window.document.currentScript,o=n("8875");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var a=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);a&&(n.p=a[1])}n("b64b"),n("d3b7"),n("0643"),n("4e3e"),n("159b");var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ml-4 mr-4 overflow-y-auto",style:{"max-height":t.maxHeight}},[t.defaultDashboard?t._e():n("v-select",{attrs:{items:t.dashboards,"item-text":function(t){return""+t.name},"return-object":"",placeholder:" ",outlined:"",solo:"","hide-details":""},model:{value:t.dashboardSelected,callback:function(e){t.dashboardSelected=e},expression:"dashboardSelected"}}),n("pui-grid-layout",{key:t.layoutKey,attrs:{layout:t.layout,widgets:t.widgets,draggable:!1,resizable:!1}})],1)},l=[],u=(n("d81d"),n("b0c0"),n("a573"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("grid-layout",{attrs:{layout:t.internalLayout,"row-height":30,"is-draggable":t.draggable,"is-resizable":t.resizable,responsive:t.responsive,"vertical-compact":!0,"use-css-transforms":!0},on:{"update:layout":function(e){t.internalLayout=e},"layout-ready":t.layoutReadyEvent}},t._l(t.internalLayout,(function(e){return n("grid-item",{key:e.i,attrs:{x:e.x,y:e.y,w:e.w,h:e.h,i:e.i},on:{resize:t.resizeEvent}},[n(t.getWidgetProperty(e.widget,"component"),{tag:"component",attrs:{type:t.getWidgetProperty(e.widget,"type"),definition:t.getWidgetProperty(e.widget,"definition"),resized:e.resized}}),t.draggable&&t.resizable?n("span",{staticClass:"remove",on:{click:function(n){return t.removeItem(e.i)}}},[t._v("x")]):t._e()],1)})),1)}),c=[];function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function d(t){if(Array.isArray(t))return h(t)}n("a4d3"),n("e01a"),n("d28b"),n("a630"),n("e260"),n("3ca3"),n("ddb0");function p(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}n("fb6a"),n("ac1f"),n("00b4"),n("25f0");function f(t,e){if(t){if("string"==typeof t)return h(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(t,e):void 0}}function g(){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 v(t){return d(t)||p(t)||f(t)||g()}var m=n("7be8"),y={components:{GridLayout:m["GridLayout"],GridItem:m["GridItem"]},props:{layout:{type:Array,required:!0},widgets:{type:Array,required:!0},draggable:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},responsive:{type:Boolean,default:!0}},computed:{internalLayout:{get:function(){return v(this.layout)},set:function(){}}},methods:{layoutReadyEvent:function(){for(var t=0;t<this.internalLayout.length;t++){var e=this.internalLayout[t];e.resized={width:e.resized.width,height:e.resized.height}}},resizeEvent:function(t,e,n,i,r){for(var o=0;o<this.internalLayout.length;o++){var a=this.internalLayout[o];if(a.i===t){a.resized={width:r,height:i};break}}},getWidgetProperty:function(t,e){for(var n=0;n<this.widgets.length;n++){var i=this.widgets[n];if(i.id===t)return i[e]}return null},removeItem:function(t){this.$emit("remove-widget",t)}}},x=y;n("8c94");function b(t,e,n,i,r,o,a,s){var l,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}var _=b(x,u,c,!1,null,null,null),w=_.exports,S={name:"PuiDashboard",components:{PuiGridLayout:w},props:{defaultDashboard:{type:Object,required:!1,default:null}},data:function(){return{dashboardSelected:null,dashboards:[],widgets:[],layoutKey:1}},computed:{maxHeight:function(){return this.$store.state.global.appContainerHeader?"".concat(window.innerHeight-78,"px"):"".concat(window.innerHeight,"px")},layout:function(){return this.defaultDashboard&&this.defaultDashboard.definition?this.defaultDashboard.definition:this.dashboardSelected&&this.dashboardSelected.definition||[]}},watch:{dashboardSelected:function(){this.layoutKey+=1}},mounted:function(){var t=this;this.$puiRequests.postRequest("/puisearch",{model:"puidashboard",rows:100},(function(e){e&&e.data&&e.data.data&&(t.dashboards=e.data.data.map((function(t){return{id:t.id,name:t.name,definition:JSON.parse(t.definition)}})),t.dashboardSelected=t.dashboards[0])})),this.$puiRequests.postRequest("/puisearch",{model:"puiwidget",rows:100},(function(e){e&&e.data&&e.data.data&&(t.widgets=e.data.data.map((function(t){return{id:t.id,name:t.name,component:t.component,type:t.type,definition:JSON.parse(t.definition)}})))}))}},M=S,I=n("6544"),C=n.n(I),T=(n("4ff9"),n("68dd"),n("8adc"),n("8bbf")),A=n.n(T);function D(...t){return A.a.extend({mixins:t})}function k(t,e="div",n){return A.a.extend({name:n||t.replace(/__/g,"-"),functional:!0,render(n,{data:i,children:r}){return i.staticClass=`${t} ${i.staticClass||""}`.trim(),n(e,i,r)}})}let L=!1;try{if("undefined"!==typeof window){const t=Object.defineProperty({},"passive",{get:()=>{L=!0}});window.addEventListener("testListener",t,t),window.removeEventListener("testListener",t,t)}}catch(vo){console.warn(vo)}function P(t,e,n){const i=e.length-1;if(i<0)return void 0===t?n:t;for(let r=0;r<i;r++){if(null==t)return n;t=t[e[r]]}return null==t||void 0===t[e[i]]?n:t[e[i]]}function O(t,e){if(t===e)return!0;if(t instanceof Date&&e instanceof Date&&t.getTime()!==e.getTime())return!1;if(t!==Object(t)||e!==Object(e))return!1;const n=Object.keys(t);return n.length===Object.keys(e).length&&n.every(n=>O(t[n],e[n]))}function E(t,e,n){return null!=t&&e&&"string"===typeof e?void 0!==t[e]?t[e]:(e=e.replace(/\[(\w+)\]/g,".$1"),e=e.replace(/^\./,""),P(t,e.split("."),n)):n}function R(t,e,n){if(null==e)return void 0===t?n:t;if(t!==Object(t))return void 0===n?t:n;if("string"===typeof e)return E(t,e,n);if(Array.isArray(e))return P(t,e,n);if("function"!==typeof e)return n;const i=e(t,n);return"undefined"===typeof i?n:i}function N(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return 0;const e=+window.getComputedStyle(t).getPropertyValue("z-index");return e||N(t.parentNode)}const z={"&":"&","<":"<",">":">"};function B(t){return t.replace(/[&<>]/g,t=>z[t]||t)}function V(t,e){const n={};for(let i=0;i<e.length;i++){const r=e[i];"undefined"!==typeof t[r]&&(n[r]=t[r])}return n}function F(t,e="px"){return null==t||""===t?void 0:isNaN(+t)?String(t):`${Number(t)}${e}`}function H(t){return(t||"").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function $(t){return null!==t&&"object"===typeof t}const W=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34});function G(t,e){if(!e.startsWith("$"))return e;const n="$vuetify.icons.values."+e.split("$").pop().split(".").pop();return E(t,n,e)}function j(t){return Object.keys(t)}const Y=/-(\w)/g,X=t=>t.replace(Y,(t,e)=>e?e.toUpperCase():"");function U(t){return t.charAt(0).toUpperCase()+t.slice(1)}function Z(t,e,n){const i=e[0],r=[];let o;for(var a=0;a<t.length;a++){const e=t[a],n=E(e,i,null);var s;if(o!==n)o=n,r.push({name:null!=(s=n)?s:"",items:[]});r[r.length-1].items.push(e)}return r}function q(t){return null!=t?Array.isArray(t)?t:[t]:[]}function K(t,e,n,i,r){if(null===e||!e.length)return t;const o=new Intl.Collator(i,{sensitivity:"accent",usage:"sort"});return t.sort((t,i)=>{for(let a=0;a<e.length;a++){const s=e[a];let l=E(t,s),u=E(i,s);if(n[a]&&([l,u]=[u,l]),r&&r[s]){const t=r[s](l,u);if(!t)continue;return t}if((null!==l||null!==u)&&([l,u]=[l,u].map(t=>(t||"").toString().toLocaleLowerCase()),l!==u))return isNaN(l)||isNaN(u)?o.compare(l,u):Number(l)-Number(u)}return 0})}function J(t,e,n){return null!=t&&null!=e&&"boolean"!==typeof t&&-1!==t.toString().toLocaleLowerCase().indexOf(e.toLocaleLowerCase())}function Q(t,e){return e?(e=e.toString().toLowerCase(),""===e.trim()?t:t.filter(t=>Object.keys(t).some(n=>J(E(t,n),e,t)))):t}function tt(t,e,n){return t.$slots[e]&&t.$scopedSlots[e]&&t.$scopedSlots[e].name?n?"v-slot":"scoped":t.$slots[e]?"normal":t.$scopedSlots[e]?"scoped":void 0}function et(t,e){return Object.keys(e).filter(e=>e.startsWith(t)).reduce((n,i)=>(n[i.replace(t,"")]=e[i],n),{})}function nt(t,e="default",n,i=!1){return t.$scopedSlots[e]?t.$scopedSlots[e](n instanceof Function?n():n):!t.$slots[e]||n&&!i?void 0:t.$slots[e]}function it(t,e=0,n=1){return Math.max(e,Math.min(n,t))}function rt(t){return t?Object.keys(t).reduce((e,n)=>(e[X(n)]=t[n],e),{}):{}}function ot(t={},e={}){for(const n in e){const i=t[n],r=e[n];$(i)&&$(r)?t[n]=ot(i,r):t[n]=r}return t}function at(t,e){return Array(t).fill(e)}const st={styleList:/;(?![^(]*\))/g,styleProp:/:(.*)/};function lt(t){const e={};for(const n of t.split(st.styleList)){let[t,i]=n.split(st.styleProp);t=t.trim(),t&&("string"===typeof i&&(i=i.trim()),e[X(t)]=i)}return e}function ut(){const t={};let e,n=arguments.length;while(n--)for(e of Object.keys(arguments[n]))switch(e){case"class":case"directives":arguments[n][e]&&(t[e]=ht(t[e],arguments[n][e]));break;case"style":arguments[n][e]&&(t[e]=ct(t[e],arguments[n][e]));break;case"staticClass":if(!arguments[n][e])break;void 0===t[e]&&(t[e]=""),t[e]&&(t[e]+=" "),t[e]+=arguments[n][e].trim();break;case"on":case"nativeOn":arguments[n][e]&&(t[e]=dt(t[e],arguments[n][e]));break;case"attrs":case"props":case"domProps":case"scopedSlots":case"staticStyle":case"hook":case"transition":if(!arguments[n][e])break;t[e]||(t[e]={}),t[e]={...arguments[n][e],...t[e]};break;default:t[e]||(t[e]=arguments[n][e])}return t}function ct(t,e){return t?e?(t=q("string"===typeof t?lt(t):t),t.concat("string"===typeof e?lt(e):e)):t:e}function ht(t,e){return e?t&&t?q(t).concat(e):e:t}function dt(...t){if(!t[0])return t[1];if(!t[1])return t[0];const e={};for(let n=2;n--;){const i=t[n];for(const t in i)i[t]&&(e[t]?e[t]=[].concat(i[t],e[t]):e[t]=i[t])}return e}function pt(t=[],...e){return Array().concat(t,...e)}function ft(t,e="top center 0",n){return{name:t,functional:!0,props:{group:{type:Boolean,default:!1},hideOnLeave:{type:Boolean,default:!1},leaveAbsolute:{type:Boolean,default:!1},mode:{type:String,default:n},origin:{type:String,default:e}},render(e,n){const i="transition"+(n.props.group?"-group":""),r={props:{name:t,mode:n.props.mode},on:{beforeEnter(t){t.style.transformOrigin=n.props.origin,t.style.webkitTransformOrigin=n.props.origin}}};return n.props.leaveAbsolute&&(r.on.leave=pt(r.on.leave,t=>t.style.position="absolute")),n.props.hideOnLeave&&(r.on.leave=pt(r.on.leave,t=>t.style.display="none")),e(i,ut(n.data,r),n.children)}}}function gt(t,e,n="in-out"){return{name:t,functional:!0,props:{mode:{type:String,default:n}},render(n,i){return n("transition",ut(i.data,{props:{name:t},on:e}),i.children)}}}var vt=function(t="",e=!1){const n=e?"width":"height",i="offset"+U(n);return{beforeEnter(t){t._parent=t.parentNode,t._initialStyle={transition:t.style.transition,overflow:t.style.overflow,[n]:t.style[n]}},enter(e){const r=e._initialStyle;e.style.setProperty("transition","none","important"),e.style.overflow="hidden";const o=e[i]+"px";e.style[n]="0",e.offsetHeight,e.style.transition=r.transition,t&&e._parent&&e._parent.classList.add(t),requestAnimationFrame(()=>{e.style[n]=o})},afterEnter:o,enterCancelled:o,leave(t){t._initialStyle={transition:"",overflow:t.style.overflow,[n]:t.style[n]},t.style.overflow="hidden",t.style[n]=t[i]+"px",t.offsetHeight,requestAnimationFrame(()=>t.style[n]="0")},afterLeave:r,leaveCancelled:r};function r(e){t&&e._parent&&e._parent.classList.remove(t),o(e)}function o(t){const e=t._initialStyle[n];t.style.overflow=t._initialStyle.overflow,null!=e&&(t.style[n]=e),delete t._initialStyle}};ft("carousel-transition"),ft("carousel-reverse-transition"),ft("tab-transition"),ft("tab-reverse-transition"),ft("menu-transition"),ft("fab-transition","center center","out-in"),ft("dialog-transition"),ft("dialog-bottom-transition");const mt=ft("fade-transition"),yt=(ft("scale-transition"),ft("scroll-x-transition"),ft("scroll-x-reverse-transition"),ft("scroll-y-transition"),ft("scroll-y-reverse-transition"),ft("slide-x-transition")),xt=(ft("slide-x-reverse-transition"),ft("slide-y-transition"),ft("slide-y-reverse-transition"),gt("expand-transition",vt())),bt=gt("expand-x-transition",vt("",!0));n("4804");function _t(t){return function(e,n){for(const i in n)Object.prototype.hasOwnProperty.call(e,i)||this.$delete(this.$data[t],i);for(const i in e)this.$set(this.$data[t],i,e[i])}}var wt=A.a.extend({data:()=>({attrs$:{},listeners$:{}}),created(){this.$watch("$attrs",_t("attrs$"),{immediate:!0}),this.$watch("$listeners",_t("listeners$"),{immediate:!0})}});function St(t,e={}){if(St.installed)return;St.installed=!0,A.a!==t&&He("Multiple instances of Vue detected\nSee https://github.com/vuetifyjs/vuetify/issues/4068\n\nIf you're seeing \"$attrs is readonly\", it's caused by this");const n=e.components||{},i=e.directives||{};for(const r in i){const e=i[r];t.directive(r,e)}(function e(n){if(n){for(const i in n){const r=n[i];r&&!e(r.$_vuetify_subcomponents)&&t.component(i,r)}return!0}return!1})(n),t.$_vuetify_installed||(t.$_vuetify_installed=!0,t.mixin({beforeCreate(){const e=this.$options;e.vuetify?(e.vuetify.init(this,this.$ssrContext),this.$vuetify=t.observable(e.vuetify.framework)):this.$vuetify=e.parent&&e.parent.$vuetify||this},beforeMount(){this.$options.vuetify&&this.$el&&this.$el.hasAttribute("data-server-rendered")&&(this.$vuetify.isHydrating=!0,this.$vuetify.breakpoint.update(!0))},mounted(){this.$options.vuetify&&this.$vuetify.isHydrating&&(this.$vuetify.isHydrating=!1,this.$vuetify.breakpoint.update())}}))}n("95ed");var Mt={badge:"Badge",close:"Close",dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},datePicker:{itemsSelected:"{0} selected",nextMonthAriaLabel:"Next month",nextYearAriaLabel:"Next year",prevMonthAriaLabel:"Previous month",prevYearAriaLabel:"Previous year"},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},timePicker:{am:"AM",pm:"PM"},pagination:{ariaLabel:{wrapper:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Goto Page {0}",currentPage:"Current Page, Page {0}"}},rating:{ariaLabel:{icon:"Rating {0} of {1}"}}};const It={breakpoint:{mobileBreakpoint:1264,scrollBarWidth:16,thresholds:{xs:600,sm:960,md:1280,lg:1920}},icons:{iconfont:"mdi",values:{}},lang:{current:"en",locales:{en:Mt},t:void 0},rtl:!1,theme:{dark:!1,default:"light",disable:!1,options:{cspNonce:void 0,customProperties:void 0,minifyTheme:void 0,themeCache:void 0,variations:!0},themes:{light:{primary:"#1976D2",secondary:"#424242",accent:"#82B1FF",error:"#FF5252",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},dark:{primary:"#2196F3",secondary:"#424242",accent:"#FF4081",error:"#FF5252",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"}}}};class Ct{constructor(){this.framework={}}init(t,e){}}class Tt extends Ct{constructor(t,e){super();const n=ot({},It),{userPreset:i}=e,{preset:r={},...o}=i;null!=r.preset&&Fe("Global presets do not support the **preset** option, it can be safely omitted"),e.preset=ot(ot(n,r),o)}}Tt.property="presets";class At extends Ct{constructor(){super(...arguments),this.bar=0,this.top=0,this.left=0,this.insetFooter=0,this.right=0,this.bottom=0,this.footer=0,this.application={bar:{},top:{},left:{},insetFooter:{},right:{},bottom:{},footer:{}}}register(t,e,n){this.application[e]={[t]:n},this.update(e)}unregister(t,e){null!=this.application[e][t]&&(delete this.application[e][t],this.update(e))}update(t){this[t]=Object.values(this.application[t]).reduce((t,e)=>t+e,0)}}At.property="application";class Dt extends Ct{constructor(t){super(),this.xs=!1,this.sm=!1,this.md=!1,this.lg=!1,this.xl=!1,this.xsOnly=!1,this.smOnly=!1,this.smAndDown=!1,this.smAndUp=!1,this.mdOnly=!1,this.mdAndDown=!1,this.mdAndUp=!1,this.lgOnly=!1,this.lgAndDown=!1,this.lgAndUp=!1,this.xlOnly=!1,this.name="xs",this.height=0,this.width=0,this.mobile=!0,this.resizeTimeout=0;const{mobileBreakpoint:e,scrollBarWidth:n,thresholds:i}=t[Dt.property];this.mobileBreakpoint=e,this.scrollBarWidth=n,this.thresholds=i}init(){this.update(),"undefined"!==typeof window&&window.addEventListener("resize",this.onResize.bind(this),{passive:!0})}update(t=!1){const e=t?0:this.getClientHeight(),n=t?0:this.getClientWidth(),i=n<this.thresholds.xs,r=n<this.thresholds.sm&&!i,o=n<this.thresholds.md-this.scrollBarWidth&&!(r||i),a=n<this.thresholds.lg-this.scrollBarWidth&&!(o||r||i),s=n>=this.thresholds.lg-this.scrollBarWidth;switch(this.height=e,this.width=n,this.xs=i,this.sm=r,this.md=o,this.lg=a,this.xl=s,this.xsOnly=i,this.smOnly=r,this.smAndDown=(i||r)&&!(o||a||s),this.smAndUp=!i&&(r||o||a||s),this.mdOnly=o,this.mdAndDown=(i||r||o)&&!(a||s),this.mdAndUp=!(i||r)&&(o||a||s),this.lgOnly=a,this.lgAndDown=(i||r||o||a)&&!s,this.lgAndUp=!(i||r||o)&&(a||s),this.xlOnly=s,!0){case i:this.name="xs";break;case r:this.name="sm";break;case o:this.name="md";break;case a:this.name="lg";break;default:this.name="xl";break}if("number"===typeof this.mobileBreakpoint)return void(this.mobile=n<parseInt(this.mobileBreakpoint,10));const l={xs:0,sm:1,md:2,lg:3,xl:4},u=l[this.name],c=l[this.mobileBreakpoint];this.mobile=u<=c}onResize(){clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(this.update.bind(this),200)}getClientWidth(){return"undefined"===typeof document?0:Math.max(document.documentElement.clientWidth,window.innerWidth||0)}getClientHeight(){return"undefined"===typeof document?0:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}Dt.property="breakpoint";const kt=t=>t,Lt=t=>t**2,Pt=t=>t*(2-t),Ot=t=>t<.5?2*t**2:(4-2*t)*t-1,Et=t=>t**3,Rt=t=>--t**3+1,Nt=t=>t<.5?4*t**3:(t-1)*(2*t-2)*(2*t-2)+1,zt=t=>t**4,Bt=t=>1- --t**4,Vt=t=>t<.5?8*t*t*t*t:1-8*--t*t*t*t,Ft=t=>t**5,Ht=t=>1+--t**5,$t=t=>t<.5?16*t**5:1+16*--t**5;function Wt(t){if("number"===typeof t)return t;let e=Yt(t);if(!e)throw"string"===typeof t?new Error(`Target element "${t}" not found.`):new TypeError(`Target must be a Number/Selector/HTMLElement/VueComponent, received ${jt(t)} instead.`);let n=0;while(e)n+=e.offsetTop,e=e.offsetParent;return n}function Gt(t){const e=Yt(t);if(e)return e;throw"string"===typeof t?new Error(`Container element "${t}" not found.`):new TypeError(`Container must be a Selector/HTMLElement/VueComponent, received ${jt(t)} instead.`)}function jt(t){return null==t?t:t.constructor.name}function Yt(t){return"string"===typeof t?document.querySelector(t):t&&t._isVue?t.$el:t instanceof HTMLElement?t:null}function Xt(t,e={}){const n={container:document.scrollingElement||document.body||document.documentElement,duration:500,offset:0,easing:"easeInOutCubic",appOffset:!0,...e},r=Gt(n.container);if(n.appOffset&&Xt.framework.application){const t=r.classList.contains("v-navigation-drawer"),e=r.classList.contains("v-navigation-drawer--clipped"),{bar:i,top:o}=Xt.framework.application;n.offset+=i,t&&!e||(n.offset+=o)}const o=performance.now();let a;a="number"===typeof t?Wt(t)-n.offset:Wt(t)-Wt(r)-n.offset;const s=r.scrollTop;if(a===s)return Promise.resolve(a);const l="function"===typeof n.easing?n.easing:i[n.easing];if(!l)throw new TypeError(`Easing function "${n.easing}" not found.`);return new Promise(t=>requestAnimationFrame((function e(i){const u=i-o,c=Math.abs(n.duration?Math.min(u/n.duration,1):1);r.scrollTop=Math.floor(s+(a-s)*l(c));const h=r===document.body?document.documentElement.clientHeight:r.clientHeight;if(1===c||h+r.scrollTop===r.scrollHeight)return t(a);requestAnimationFrame(e)})))}Xt.framework={},Xt.init=()=>{};class Ut extends Ct{constructor(){return super(),Xt}}Ut.property="goTo";const Zt={complete:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",cancel:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",close:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",delete:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",clear:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",success:"M12,2C17.52,2 22,6.48 22,12C22,17.52 17.52,22 12,22C6.48,22 2,17.52 2,12C2,6.48 6.48,2 12,2M11,16.5L18,9.5L16.59,8.09L11,13.67L7.91,10.59L6.5,12L11,16.5Z",info:"M13,9H11V7H13M13,17H11V11H13M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z",warning:"M11,4.5H13V15.5H11V4.5M13,17.5V19.5H11V17.5H13Z",error:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z",prev:"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",next:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",checkboxOn:"M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3Z",checkboxOff:"M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z",checkboxIndeterminate:"M17,13H7V11H17M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3Z",delimiter:"M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z",sort:"M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z",expand:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",menu:"M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z",subgroup:"M7,10L12,15L17,10H7Z",dropdown:"M7,10L12,15L17,10H7Z",radioOn:"M12,20C7.58,20 4,16.42 4,12C4,7.58 7.58,4 12,4C16.42,4 20,7.58 20,12C20,16.42 16.42,20 12,20M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2M12,7C9.24,7 7,9.24 7,12C7,14.76 9.24,17 12,17C14.76,17 17,14.76 17,12C17,9.24 14.76,7 12,7Z",radioOff:"M12,20C7.58,20 4,16.42 4,12C4,7.58 7.58,4 12,4C16.42,4 20,7.58 20,12C20,16.42 16.42,20 12,20M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z",edit:"M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",ratingEmpty:"M12,15.39L8.24,17.66L9.23,13.38L5.91,10.5L10.29,10.13L12,6.09L13.71,10.13L18.09,10.5L14.77,13.38L15.76,17.66M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z",ratingFull:"M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z",ratingHalf:"M12,15.4V6.1L13.71,10.13L18.09,10.5L14.77,13.39L15.76,17.67M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z",loading:"M19,8L15,12H18C18,15.31 15.31,18 12,18C11,18 10.03,17.75 9.2,17.3L7.74,18.76C8.97,19.54 10.43,20 12,20C16.42,20 20,16.42 20,12H23M6,12C6,8.69 8.69,6 12,6C13,6 13.97,6.25 14.8,6.7L16.26,5.24C15.03,4.46 13.57,4 12,4C7.58,4 4,7.58 4,12H1L5,16L9,12",first:"M18.41,16.59L13.82,12L18.41,7.41L17,6L11,12L17,18L18.41,16.59M6,6H8V18H6V6Z",last:"M5.59,7.41L10.18,12L5.59,16.59L7,18L13,12L7,6L5.59,7.41M16,6H18V18H16V6Z",unfold:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z",file:"M16.5,6V17.5C16.5,19.71 14.71,21.5 12.5,21.5C10.29,21.5 8.5,19.71 8.5,17.5V5C8.5,3.62 9.62,2.5 11,2.5C12.38,2.5 13.5,3.62 13.5,5V15.5C13.5,16.05 13.05,16.5 12.5,16.5C11.95,16.5 11.5,16.05 11.5,15.5V6H10V15.5C10,16.88 11.12,18 12.5,18C13.88,18 15,16.88 15,15.5V5C15,2.79 13.21,1 11,1C8.79,1 7,2.79 7,5V17.5C7,20.54 9.46,23 12.5,23C15.54,23 18,20.54 18,17.5V6H16.5Z",plus:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",minus:"M19,13H5V11H19V13Z"};var qt=Zt;const Kt={complete:"check",cancel:"cancel",close:"close",delete:"cancel",clear:"clear",success:"check_circle",info:"info",warning:"priority_high",error:"warning",prev:"chevron_left",next:"chevron_right",checkboxOn:"check_box",checkboxOff:"check_box_outline_blank",checkboxIndeterminate:"indeterminate_check_box",delimiter:"fiber_manual_record",sort:"arrow_upward",expand:"keyboard_arrow_down",menu:"menu",subgroup:"arrow_drop_down",dropdown:"arrow_drop_down",radioOn:"radio_button_checked",radioOff:"radio_button_unchecked",edit:"edit",ratingEmpty:"star_border",ratingFull:"star",ratingHalf:"star_half",loading:"cached",first:"first_page",last:"last_page",unfold:"unfold_more",file:"attach_file",plus:"add",minus:"remove"};var Jt=Kt;const Qt={complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-exclamation",error:"mdi-alert",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sort:"mdi-arrow-up",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus"};var te=Qt;const ee={complete:"fas fa-check",cancel:"fas fa-times-circle",close:"fas fa-times",delete:"fas fa-times-circle",clear:"fas fa-times-circle",success:"fas fa-check-circle",info:"fas fa-info-circle",warning:"fas fa-exclamation",error:"fas fa-exclamation-triangle",prev:"fas fa-chevron-left",next:"fas fa-chevron-right",checkboxOn:"fas fa-check-square",checkboxOff:"far fa-square",checkboxIndeterminate:"fas fa-minus-square",delimiter:"fas fa-circle",sort:"fas fa-sort-up",expand:"fas fa-chevron-down",menu:"fas fa-bars",subgroup:"fas fa-caret-down",dropdown:"fas fa-caret-down",radioOn:"far fa-dot-circle",radioOff:"far fa-circle",edit:"fas fa-edit",ratingEmpty:"far fa-star",ratingFull:"fas fa-star",ratingHalf:"fas fa-star-half",loading:"fas fa-sync",first:"fas fa-step-backward",last:"fas fa-step-forward",unfold:"fas fa-arrows-alt-v",file:"fas fa-paperclip",plus:"fas fa-plus",minus:"fas fa-minus"};var ne=ee;const ie={complete:"fa fa-check",cancel:"fa fa-times-circle",close:"fa fa-times",delete:"fa fa-times-circle",clear:"fa fa-times-circle",success:"fa fa-check-circle",info:"fa fa-info-circle",warning:"fa fa-exclamation",error:"fa fa-exclamation-triangle",prev:"fa fa-chevron-left",next:"fa fa-chevron-right",checkboxOn:"fa fa-check-square",checkboxOff:"fa fa-square-o",checkboxIndeterminate:"fa fa-minus-square",delimiter:"fa fa-circle",sort:"fa fa-sort-up",expand:"fa fa-chevron-down",menu:"fa fa-bars",subgroup:"fa fa-caret-down",dropdown:"fa fa-caret-down",radioOn:"fa fa-dot-circle-o",radioOff:"fa fa-circle-o",edit:"fa fa-pencil",ratingEmpty:"fa fa-star-o",ratingFull:"fa fa-star",ratingHalf:"fa fa-star-half-o",loading:"fa fa-refresh",first:"fa fa-step-backward",last:"fa fa-step-forward",unfold:"fa fa-angle-double-down",file:"fa fa-paperclip",plus:"fa fa-plus",minus:"fa fa-minus"};var re=ie;function oe(t,e){const n={};for(const i in e)n[i]={component:t,props:{icon:e[i].split(" fa-")}};return n}var ae=oe("font-awesome-icon",ne),se=Object.freeze({mdiSvg:qt,md:Jt,mdi:te,fa:ne,fa4:re,faSvg:ae});class le extends Ct{constructor(t){super();const{iconfont:e,values:n}=t[le.property];this.iconfont=e,this.values=ot(se[e],n)}}le.property="icons";const ue="$vuetify.",ce=Symbol("Lang fallback");function he(t,e,n=!1,i){const r=e.replace(ue,"");let o=E(t,r,ce);return o===ce&&(n?(He(`Translation key "${r}" not found in fallback`),o=e):(Fe(`Translation key "${r}" not found, falling back to default`),o=he(i,e,!0,i))),o}class de extends Ct{constructor(t){super(),this.defaultLocale="en";const{current:e,locales:n,t:i}=t[de.property];this.current=e,this.locales=n,this.translator=i||this.defaultTranslator}currentLocale(t){const e=this.locales[this.current],n=this.locales[this.defaultLocale];return he(e,t,!1,n)}t(t,...e){return t.startsWith(ue)?this.translator(t,...e):this.replace(t,e)}defaultTranslator(t,...e){return this.replace(this.currentLocale(t),e)}replace(t,e){return t.replace(/\{(\d+)\}/g,(t,n)=>String(e[+n]))}}de.property="lang";const pe=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],fe=t=>t<=.0031308?12.92*t:1.055*t**(1/2.4)-.055,ge=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],ve=t=>t<=.04045?t/12.92:((t+.055)/1.055)**2.4;function me(t){const e=Array(3),n=fe,i=pe;for(let r=0;r<3;++r)e[r]=Math.round(255*it(n(i[r][0]*t[0]+i[r][1]*t[1]+i[r][2]*t[2])));return(e[0]<<16)+(e[1]<<8)+(e[2]<<0)}function ye(t){const e=[0,0,0],n=ve,i=ge,r=n((t>>16&255)/255),o=n((t>>8&255)/255),a=n((t>>0&255)/255);for(let s=0;s<3;++s)e[s]=i[s][0]*r+i[s][1]*o+i[s][2]*a;return e}function xe(t){return!!t&&!!t.match(/^(#|var\(--|(rgb|hsl)a?\()/)}function be(t){let e;if("number"===typeof t)e=t;else{if("string"!==typeof t)throw new TypeError(`Colors can only be numbers or strings, recieved ${null==t?t:t.constructor.name} instead`);{let n="#"===t[0]?t.substring(1):t;3===n.length&&(n=n.split("").map(t=>t+t).join("")),6!==n.length&&Fe(`'${t}' is not a valid rgb color`),e=parseInt(n,16)}}return e<0?(Fe(`Colors cannot be negative: '${t}'`),e=0):(e>16777215||isNaN(e))&&(Fe(`'${t}' is not a valid rgb color`),e=16777215),e}function _e(t){let e=t.toString(16);return e.length<6&&(e="0".repeat(6-e.length)+e),"#"+e}function we(t){return _e(be(t))}const Se=.20689655172413793,Me=t=>t>Se**3?Math.cbrt(t):t/(3*Se**2)+4/29,Ie=t=>t>Se?t**3:3*Se**2*(t-4/29);function Ce(t){const e=Me,n=e(t[1]);return[116*n-16,500*(e(t[0]/.95047)-n),200*(n-e(t[2]/1.08883))]}function Te(t){const e=Ie,n=(t[0]+16)/116;return[.95047*e(n+t[1]/500),e(n),1.08883*e(n-t[2]/200)]}function Ae(t,e=!1,n=!0){const{anchor:i,...r}=t,o=Object.keys(r),a={};for(let s=0;s<o.length;++s){const i=o[s],r=t[i];null!=r&&(n?e?("base"===i||i.startsWith("lighten")||i.startsWith("darken"))&&(a[i]=we(r)):a[i]="object"===typeof r?Ae(r,!0,n):Ee(i,be(r)):a[i]={base:_e(be(r))})}return e||(a.anchor=i||a.base||a.primary.base),a}const De=(t,e)=>`\n.v-application .${t} {\n background-color: ${e} !important;\n border-color: ${e} !important;\n}\n.v-application .${t}--text {\n color: ${e} !important;\n caret-color: ${e} !important;\n}`,ke=(t,e,n)=>{const[i,r]=e.split(/(\d)/,2);return`\n.v-application .${t}.${i}-${r} {\n background-color: ${n} !important;\n border-color: ${n} !important;\n}\n.v-application .${t}--text.text--${i}-${r} {\n color: ${n} !important;\n caret-color: ${n} !important;\n}`},Le=(t,e="base")=>`--v-${t}-${e}`,Pe=(t,e="base")=>`var(${Le(t,e)})`;function Oe(t,e=!1){const{anchor:n,...i}=t,r=Object.keys(i);if(!r.length)return"";let o="",a="";const s=e?Pe("anchor"):n;a+=`.v-application a { color: ${s}; }`,e&&(o+=` ${Le("anchor")}: ${n};\n`);for(let l=0;l<r.length;++l){const n=r[l],i=t[n];a+=De(n,e?Pe(n):i.base),e&&(o+=` ${Le(n)}: ${i.base};\n`);const s=Object.keys(i);for(let t=0;t<s.length;++t){const r=s[t],l=i[r];"base"!==r&&(a+=ke(n,r,e?Pe(n,r):l),e&&(o+=` ${Le(n,r)}: ${l};\n`))}}return e&&(o=`:root {\n${o}}\n\n`),o+a}function Ee(t,e){const n={base:_e(e)};for(let i=5;i>0;--i)n["lighten"+i]=_e(Re(e,i));for(let i=1;i<=4;++i)n["darken"+i]=_e(Ne(e,i));return n}function Re(t,e){const n=Ce(ye(t));return n[0]=n[0]+10*e,me(Te(n))}function Ne(t,e){const n=Ce(ye(t));return n[0]=n[0]-10*e,me(Te(n))}class ze extends Ct{constructor(t){super(),this.disabled=!1,this.isDark=null,this.unwatch=null,this.vueMeta=null;const{dark:e,disable:n,options:i,themes:r}=t[ze.property];this.dark=Boolean(e),this.defaults=this.themes=r,this.options=i,n?this.disabled=!0:this.themes={dark:this.fillVariant(r.dark,!0),light:this.fillVariant(r.light,!1)}}set css(t){this.vueMeta?this.isVueMeta23&&this.applyVueMeta23():this.checkOrCreateStyleElement()&&(this.styleEl.innerHTML=t)}set dark(t){const e=this.isDark;this.isDark=t,null!=e&&this.applyTheme()}get dark(){return Boolean(this.isDark)}applyTheme(){if(this.disabled)return this.clearCss();this.css=this.generatedStyles}clearCss(){this.css=""}init(t,e){this.disabled||(t.$meta?this.initVueMeta(t):e&&this.initSSR(e),this.initTheme(t))}setTheme(t,e){this.themes[t]=Object.assign(this.themes[t],e),this.applyTheme()}resetThemes(){this.themes.light=Object.assign({},this.defaults.light),this.themes.dark=Object.assign({},this.defaults.dark),this.applyTheme()}checkOrCreateStyleElement(){return this.styleEl=document.getElementById("vuetify-theme-stylesheet"),!!this.styleEl||(this.genStyleElement(),Boolean(this.styleEl))}fillVariant(t={},e){const n=this.themes[e?"dark":"light"];return Object.assign({},n,t)}genStyleElement(){"undefined"!==typeof document&&(this.styleEl=document.createElement("style"),this.styleEl.type="text/css",this.styleEl.id="vuetify-theme-stylesheet",this.options.cspNonce&&this.styleEl.setAttribute("nonce",this.options.cspNonce),document.head.appendChild(this.styleEl))}initVueMeta(t){if(this.vueMeta=t.$meta(),this.isVueMeta23)return void t.$nextTick(()=>{this.applyVueMeta23()});const e="function"===typeof this.vueMeta.getOptions?this.vueMeta.getOptions().keyName:"metaInfo",n=t.$options[e]||{};t.$options[e]=()=>{n.style=n.style||[];const t=n.style.find(t=>"vuetify-theme-stylesheet"===t.id);return t?t.cssText=this.generatedStyles:n.style.push({cssText:this.generatedStyles,type:"text/css",id:"vuetify-theme-stylesheet",nonce:(this.options||{}).cspNonce}),n}}applyVueMeta23(){const{set:t}=this.vueMeta.addApp("vuetify");t({style:[{cssText:this.generatedStyles,type:"text/css",id:"vuetify-theme-stylesheet",nonce:this.options.cspNonce}]})}initSSR(t){const e=this.options.cspNonce?` nonce="${this.options.cspNonce}"`:"";t.head=t.head||"",t.head+=`<style type="text/css" id="vuetify-theme-stylesheet"${e}>${this.generatedStyles}</style>`}initTheme(t){"undefined"!==typeof document&&(this.unwatch&&(this.unwatch(),this.unwatch=null),t.$once("hook:created",()=>{const e=A.a.observable({themes:this.themes});this.unwatch=t.$watch(()=>e.themes,()=>this.applyTheme(),{deep:!0})}),this.applyTheme())}get currentTheme(){const t=this.dark?"dark":"light";return this.themes[t]}get generatedStyles(){const t=this.parsedTheme,e=this.options||{};let n;return null!=e.themeCache&&(n=e.themeCache.get(t),null!=n)||(n=Oe(t,e.customProperties),null!=e.minifyTheme&&(n=e.minifyTheme(n)),null!=e.themeCache&&e.themeCache.set(t,n)),n}get parsedTheme(){return Ae(this.currentTheme||{},void 0,P(this.options,["variations"],!0))}get isVueMeta23(){return"function"===typeof this.vueMeta.addApp}}ze.property="theme";class Be{constructor(t={}){this.framework={isHydrating:!1},this.installed=[],this.preset={},this.userPreset={},this.userPreset=t,this.use(Tt),this.use(At),this.use(Dt),this.use(Ut),this.use(le),this.use(de),this.use(ze)}init(t,e){this.installed.forEach(n=>{const i=this.framework[n];i.framework=this.framework,i.init(t,e)}),this.framework.rtl=Boolean(this.preset.rtl)}use(t){const e=t.property;this.installed.includes(e)||(this.framework[e]=new t(this.preset,this),this.installed.push(e))}}function Ve(t,e,n){if(!Be.config.silent){if(n&&(e={_isVue:!0,$parent:n,$options:e}),e){if(e.$_alreadyWarned=e.$_alreadyWarned||[],e.$_alreadyWarned.includes(t))return;e.$_alreadyWarned.push(t)}return"[Vuetify] "+t+(e?Ue(e):"")}}function Fe(t,e,n){const i=Ve(t,e,n);null!=i&&console.warn(i)}function He(t,e,n){const i=Ve(t,e,n);null!=i&&console.error(i)}function $e(t,e,n,i){Fe(`[UPGRADE] '${t}' is deprecated, use '${e}' instead.`,n,i)}function We(t,e,n,i){He(`[BREAKING] '${t}' has been removed, use '${e}' instead. For more information, see the upgrade guide https://github.com/vuetifyjs/vuetify/releases/tag/v2.0.0#user-content-upgrade-guide`,n,i)}function Ge(t,e,n){Fe(`[REMOVED] '${t}' has been removed. You can safely omit it.`,e,n)}Be.install=St,Be.installed=!1,Be.version="2.3.23",Be.config={silent:!1};const je=/(?:^|[-_])(\w)/g,Ye=t=>t.replace(je,t=>t.toUpperCase()).replace(/[-_]/g,"");function Xe(t,e){if(t.$root===t)return"<Root>";const n="function"===typeof t&&null!=t.cid?t.options:t._isVue?t.$options||t.constructor.options:t||{};let i=n.name||n._componentTag;const r=n.__file;if(!i&&r){const t=r.match(/([^/\\]+)\.vue$/);i=t&&t[1]}return(i?`<${Ye(i)}>`:"<Anonymous>")+(r&&!1!==e?" at "+r:"")}function Ue(t){if(t._isVue&&t.$parent){const e=[];let n=0;while(t){if(e.length>0){const i=e[e.length-1];if(i.constructor===t.constructor){n++,t=t.$parent;continue}n>0&&(e[e.length-1]=[i,n],n=0)}e.push(t),t=t.$parent}return"\n\nfound in\n\n"+e.map((t,e)=>`${0===e?"---\x3e ":" ".repeat(5+2*e)}${Array.isArray(t)?`${Xe(t[0])}... (${t[1]} recursive calls)`:Xe(t)}`).join("\n")}return`\n\n(found in ${Xe(t)})`}var Ze=A.a.extend({name:"colorable",props:{color:String},methods:{setBackgroundColor(t,e={}){return"string"===typeof e.style?(He("style must be an object",this),e):"string"===typeof e.class?(He("class must be an object",this),e):(xe(t)?e.style={...e.style,"background-color":""+t,"border-color":""+t}:t&&(e.class={...e.class,[t]:!0}),e)},setTextColor(t,e={}){if("string"===typeof e.style)return He("style must be an object",this),e;if("string"===typeof e.class)return He("class must be an object",this),e;if(xe(t))e.style={...e.style,color:""+t,"caret-color":""+t};else if(t){const[n,i]=t.toString().trim().split(" ",2);e.class={...e.class,[n+"--text"]:!0},i&&(e.class["text--"+i]=!0)}return e}}}),qe=A.a.extend({name:"sizeable",props:{large:Boolean,small:Boolean,xLarge:Boolean,xSmall:Boolean},computed:{medium(){return Boolean(!this.xSmall&&!this.small&&!this.large&&!this.xLarge)},sizeableClasses(){return{"v-size--x-small":this.xSmall,"v-size--small":this.small,"v-size--default":this.medium,"v-size--large":this.large,"v-size--x-large":this.xLarge}}}});const Ke=A.a.extend().extend({name:"themeable",provide(){return{theme:this.themeableProvide}},inject:{theme:{default:{isDark:!1}}},props:{dark:{type:Boolean,default:null},light:{type:Boolean,default:null}},data(){return{themeableProvide:{isDark:!1}}},computed:{appIsDark(){return this.$vuetify.theme.dark||!1},isDark(){return!0===this.dark||!0!==this.light&&this.theme.isDark},themeClasses(){return{"theme--dark":this.isDark,"theme--light":!this.isDark}},rootIsDark(){return!0===this.dark||!0!==this.light&&this.appIsDark},rootThemeClasses(){return{"theme--dark":this.rootIsDark,"theme--light":!this.rootIsDark}}},watch:{isDark:{handler(t,e){t!==e&&(this.themeableProvide.isDark=this.isDark)},immediate:!0}}});var Je,Qe=Ke;function tn(t){const e={...t.props,...t.injections},n=Ke.options.computed.isDark.call(e);return Ke.options.computed.themeClasses.call({isDark:n})}function en(t){return["fas","far","fal","fab","fad"].some(e=>t.includes(e))}function nn(t){return/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4}(function(t){t["xSmall"]="12px",t["small"]="16px",t["default"]="24px",t["medium"]="28px",t["large"]="36px",t["xLarge"]="40px"})(Je||(Je={}));const rn=D(wt,Ze,qe,Qe).extend({name:"v-icon",props:{dense:Boolean,disabled:Boolean,left:Boolean,right:Boolean,size:[Number,String],tag:{type:String,required:!1,default:"i"}},computed:{medium(){return!1},hasClickListener(){return Boolean(this.listeners$.click||this.listeners$["!click"])}},methods:{getIcon(){let t="";return this.$slots.default&&(t=this.$slots.default[0].text.trim()),G(this,t)},getSize(){const t={xSmall:this.xSmall,small:this.small,medium:this.medium,large:this.large,xLarge:this.xLarge},e=j(t).find(e=>t[e]);return e&&Je[e]||F(this.size)},getDefaultData(){return{staticClass:"v-icon notranslate",class:{"v-icon--disabled":this.disabled,"v-icon--left":this.left,"v-icon--link":this.hasClickListener,"v-icon--right":this.right,"v-icon--dense":this.dense},attrs:{"aria-hidden":!this.hasClickListener,disabled:this.hasClickListener&&this.disabled,type:this.hasClickListener?"button":void 0,...this.attrs$},on:this.listeners$}},getSvgWrapperData(){const t=this.getSize(),e={...this.getDefaultData(),style:t?{fontSize:t,height:t,width:t}:void 0};return this.applyColors(e),e},applyColors(t){t.class={...t.class,...this.themeClasses},this.setTextColor(this.color,t)},renderFontIcon(t,e){const n=[],i=this.getDefaultData();let r="material-icons";const o=t.indexOf("-"),a=o<=-1;a?n.push(t):(r=t.slice(0,o),en(r)&&(r="")),i.class[r]=!0,i.class[t]=!a;const s=this.getSize();return s&&(i.style={fontSize:s}),this.applyColors(i),e(this.hasClickListener?"button":this.tag,i,n)},renderSvgIcon(t,e){const n={class:"v-icon__svg",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":!0}},i=this.getSize();return i&&(n.style={fontSize:i,height:i,width:i}),e(this.hasClickListener?"button":"span",this.getSvgWrapperData(),[e("svg",n,[e("path",{attrs:{d:t}})])])},renderSvgIconComponent(t,e){const n={class:{"v-icon__component":!0}},i=this.getSize();i&&(n.style={fontSize:i,height:i,width:i}),this.applyColors(n);const r=t.component;return n.props=t.props,n.nativeOn=n.on,e(this.hasClickListener?"button":"span",this.getSvgWrapperData(),[e(r,n)])}},render(t){const e=this.getIcon();return"string"===typeof e?nn(e)?this.renderSvgIcon(e,t):this.renderFontIcon(e,t):this.renderSvgIconComponent(e,t)}});var on=A.a.extend({name:"v-icon",$_wrapperFor:rn,functional:!0,render(t,{data:e,children:n}){let i="";return e.domProps&&(i=e.domProps.textContent||e.domProps.innerHTML||i,delete e.domProps.textContent,delete e.domProps.innerHTML),t(rn,e,i?[i]:n)}}),an=on;function sn(t,e){return()=>Fe(`The ${t} component must be used inside a ${e}`)}function ln(t,e,n){const i=e&&n?{register:sn(e,n),unregister:sn(e,n)}:null;return A.a.extend({name:"registrable-inject",inject:{[t]:{default:i}}})}function un(t,e,n){return ln(t,e,n).extend({name:"groupable",props:{activeClass:{type:String,default(){if(this[t])return this[t].activeClass}},disabled:Boolean},data(){return{isActive:!1}},computed:{groupClasses(){return this.activeClass?{[this.activeClass]:this.isActive}:{}}},created(){this[t]&&this[t].register(this)},beforeDestroy(){this[t]&&this[t].unregister(this)},methods:{toggle(){this.$emit("change")}}})}un("itemGroup");function cn(t="value",e="input"){return A.a.extend({name:"toggleable",model:{prop:t,event:e},props:{[t]:{required:!1}},data(){return{isActive:!!this[t]}},watch:{[t](t){this.isActive=!!t},isActive(n){!!n!==this[t]&&this.$emit(e,n)}}})}const hn=cn();var dn=hn;n("7435");const pn=80;function fn(t,e){t.style.transform=e,t.style.webkitTransform=e}function gn(t,e){t.style.opacity=e.toString()}function vn(t){return"TouchEvent"===t.constructor.name}function mn(t){return"KeyboardEvent"===t.constructor.name}const yn=(t,e,n={})=>{let i=0,r=0;if(!mn(t)){const n=e.getBoundingClientRect(),o=vn(t)?t.touches[t.touches.length-1]:t;i=o.clientX-n.left,r=o.clientY-n.top}let o=0,a=.3;e._ripple&&e._ripple.circle?(a=.15,o=e.clientWidth/2,o=n.center?o:o+Math.sqrt((i-o)**2+(r-o)**2)/4):o=Math.sqrt(e.clientWidth**2+e.clientHeight**2)/2;const s=(e.clientWidth-2*o)/2+"px",l=(e.clientHeight-2*o)/2+"px",u=n.center?s:i-o+"px",c=n.center?l:r-o+"px";return{radius:o,scale:a,x:u,y:c,centerX:s,centerY:l}},xn={show(t,e,n={}){if(!e._ripple||!e._ripple.enabled)return;const i=document.createElement("span"),r=document.createElement("span");i.appendChild(r),i.className="v-ripple__container",n.class&&(i.className+=" "+n.class);const{radius:o,scale:a,x:s,y:l,centerX:u,centerY:c}=yn(t,e,n),h=2*o+"px";r.className="v-ripple__animation",r.style.width=h,r.style.height=h,e.appendChild(i);const d=window.getComputedStyle(e);d&&"static"===d.position&&(e.style.position="relative",e.dataset.previousPosition="static"),r.classList.add("v-ripple__animation--enter"),r.classList.add("v-ripple__animation--visible"),fn(r,`translate(${s}, ${l}) scale3d(${a},${a},${a})`),gn(r,0),r.dataset.activated=String(performance.now()),setTimeout(()=>{r.classList.remove("v-ripple__animation--enter"),r.classList.add("v-ripple__animation--in"),fn(r,`translate(${u}, ${c}) scale3d(1,1,1)`),gn(r,.25)},0)},hide(t){if(!t||!t._ripple||!t._ripple.enabled)return;const e=t.getElementsByClassName("v-ripple__animation");if(0===e.length)return;const n=e[e.length-1];if(n.dataset.isHiding)return;n.dataset.isHiding="true";const i=performance.now()-Number(n.dataset.activated),r=Math.max(250-i,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),gn(n,0),setTimeout(()=>{const e=t.getElementsByClassName("v-ripple__animation");1===e.length&&t.dataset.previousPosition&&(t.style.position=t.dataset.previousPosition,delete t.dataset.previousPosition),n.parentNode&&t.removeChild(n.parentNode)},300)},r)}};function bn(t){return"undefined"===typeof t||!!t}function _n(t){const e={},n=t.currentTarget;if(n&&n._ripple&&!n._ripple.touched){if(vn(t))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(e.center=n._ripple.centered||mn(t),n._ripple.class&&(e.class=n._ripple.class),vn(t)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{xn.show(t,n,e)},n._ripple.showTimer=window.setTimeout(()=>{n&&n._ripple&&n._ripple.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},pn)}else xn.show(t,n,e)}}function wn(t){const e=t.currentTarget;if(e&&e._ripple){if(window.clearTimeout(e._ripple.showTimer),"touchend"===t.type&&e._ripple.showTimerCommit)return e._ripple.showTimerCommit(),e._ripple.showTimerCommit=null,void(e._ripple.showTimer=setTimeout(()=>{wn(t)}));window.setTimeout(()=>{e._ripple&&(e._ripple.touched=!1)}),xn.hide(e)}}function Sn(t){const e=t.currentTarget;e&&e._ripple&&(e._ripple.showTimerCommit&&(e._ripple.showTimerCommit=null),window.clearTimeout(e._ripple.showTimer))}let Mn=!1;function In(t){Mn||t.keyCode!==W.enter&&t.keyCode!==W.space||(Mn=!0,_n(t))}function Cn(t){Mn=!1,wn(t)}function Tn(t,e,n){const i=bn(e.value);i||xn.hide(t),t._ripple=t._ripple||{},t._ripple.enabled=i;const r=e.value||{};r.center&&(t._ripple.centered=!0),r.class&&(t._ripple.class=e.value.class),r.circle&&(t._ripple.circle=r.circle),i&&!n?(t.addEventListener("touchstart",_n,{passive:!0}),t.addEventListener("touchend",wn,{passive:!0}),t.addEventListener("touchmove",Sn,{passive:!0}),t.addEventListener("touchcancel",wn),t.addEventListener("mousedown",_n),t.addEventListener("mouseup",wn),t.addEventListener("mouseleave",wn),t.addEventListener("keydown",In),t.addEventListener("keyup",Cn),t.addEventListener("dragstart",wn,{passive:!0})):!i&&n&&An(t)}function An(t){t.removeEventListener("mousedown",_n),t.removeEventListener("touchstart",_n),t.removeEventListener("touchend",wn),t.removeEventListener("touchmove",Sn),t.removeEventListener("touchcancel",wn),t.removeEventListener("mouseup",wn),t.removeEventListener("mouseleave",wn),t.removeEventListener("keydown",In),t.removeEventListener("keyup",Cn),t.removeEventListener("dragstart",wn)}function Dn(t,e,n){Tn(t,e,!1)}function kn(t){delete t._ripple,An(t)}function Ln(t,e){if(e.value===e.oldValue)return;const n=bn(e.oldValue);Tn(t,e,n)}const Pn={bind:Dn,unbind:kn,update:Ln};var On=Pn,En=A.a.extend({name:"routable",directives:{Ripple:On},props:{activeClass:String,append:Boolean,disabled:Boolean,exact:{type:Boolean,default:void 0},exactActiveClass:String,link:Boolean,href:[String,Object],to:[String,Object],nuxt:Boolean,replace:Boolean,ripple:{type:[Boolean,Object],default:null},tag:String,target:String},data:()=>({isActive:!1,proxyClass:""}),computed:{classes(){const t={};return this.to||(this.activeClass&&(t[this.activeClass]=this.isActive),this.proxyClass&&(t[this.proxyClass]=this.isActive)),t},computedRipple(){var t;return null!=(t=this.ripple)?t:!this.disabled&&this.isClickable},isClickable(){return!this.disabled&&Boolean(this.isLink||this.$listeners.click||this.$listeners["!click"]||this.$attrs.tabindex)},isLink(){return this.to||this.href||this.link},styles:()=>({})},watch:{$route:"onRouteChange"},methods:{click(t){this.$emit("click",t)},generateRouteLink(){let t,e=this.exact;const n={attrs:{tabindex:"tabindex"in this.$attrs?this.$attrs.tabindex:void 0},class:this.classes,style:this.styles,props:{},directives:[{name:"ripple",value:this.computedRipple}],[this.to?"nativeOn":"on"]:{...this.$listeners,click:this.click},ref:"link"};if("undefined"===typeof this.exact&&(e="/"===this.to||this.to===Object(this.to)&&"/"===this.to.path),this.to){let i=this.activeClass,r=this.exactActiveClass||i;this.proxyClass&&(i=`${i} ${this.proxyClass}`.trim(),r=`${r} ${this.proxyClass}`.trim()),t=this.nuxt?"nuxt-link":"router-link",Object.assign(n.props,{to:this.to,exact:e,activeClass:i,exactActiveClass:r,append:this.append,replace:this.replace})}else t=(this.href?"a":this.tag)||"div","a"===t&&this.href&&(n.attrs.href=this.href);return this.target&&(n.attrs.target=this.target),{tag:t,data:n}},onRouteChange(){if(!this.to||!this.$refs.link||!this.$route)return;const t=`${this.activeClass} ${this.proxyClass||""}`.trim(),e="_vnode.data.class."+t;this.$nextTick(()=>{E(this.$refs.link,e)&&this.toggle()})},toggle:()=>{}}}),Rn=D(Ze,qe,En,Qe,un("chipGroup"),cn("inputValue")).extend({name:"v-chip",props:{active:{type:Boolean,default:!0},activeClass:{type:String,default(){return this.chipGroup?this.chipGroup.activeClass:""}},close:Boolean,closeIcon:{type:String,default:"$delete"},disabled:Boolean,draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:Boolean,outlined:Boolean,pill:Boolean,tag:{type:String,default:"span"},textColor:String,value:null},data:()=>({proxyClass:"v-chip--active"}),computed:{classes(){return{"v-chip":!0,...En.options.computed.classes.call(this),"v-chip--clickable":this.isClickable,"v-chip--disabled":this.disabled,"v-chip--draggable":this.draggable,"v-chip--label":this.label,"v-chip--link":this.isLink,"v-chip--no-color":!this.color,"v-chip--outlined":this.outlined,"v-chip--pill":this.pill,"v-chip--removable":this.hasClose,...this.themeClasses,...this.sizeableClasses,...this.groupClasses}},hasClose(){return Boolean(this.close)},isClickable(){return Boolean(En.options.computed.isClickable.call(this)||this.chipGroup)}},created(){const t=[["outline","outlined"],["selected","input-value"],["value","active"],["@input","@active.sync"]];t.forEach(([t,e])=>{this.$attrs.hasOwnProperty(t)&&We(t,e,this)})},methods:{click(t){this.$emit("click",t),this.chipGroup&&this.toggle()},genFilter(){const t=[];return this.isActive&&t.push(this.$createElement(an,{staticClass:"v-chip__filter",props:{left:!0}},this.filterIcon)),this.$createElement(bt,t)},genClose(){return this.$createElement(an,{staticClass:"v-chip__close",props:{right:!0,size:18},on:{click:t=>{t.stopPropagation(),t.preventDefault(),this.$emit("click:close"),this.$emit("update:active",!1)}}},this.closeIcon)},genContent(){return this.$createElement("span",{staticClass:"v-chip__content"},[this.filter&&this.genFilter(),this.$slots.default,this.hasClose&&this.genClose()])}},render(t){const e=[this.genContent()];let{tag:n,data:i}=this.generateRouteLink();i.attrs={...i.attrs,draggable:this.draggable?"true":void 0,tabindex:this.chipGroup&&!this.disabled?0:i.attrs.tabindex},i.directives.push({name:"show",value:this.active}),i=this.setBackgroundColor(this.color,i);const r=this.textColor||this.outlined&&this.color;return t(n,this.setTextColor(r,i),e)}}),Nn=Rn,zn=(n("ee6f"),Qe.extend({name:"v-theme-provider",props:{root:Boolean},computed:{isDark(){return this.root?this.rootIsDark:Qe.options.computed.isDark.call(this)}},render(){return this.$slots.default&&this.$slots.default.find(t=>!t.isComment&&" "!==t.text)}})),Bn=A.a.extend().extend({name:"delayable",props:{openDelay:{type:[Number,String],default:0},closeDelay:{type:[Number,String],default:0}},data:()=>({openTimeout:void 0,closeTimeout:void 0}),methods:{clearDelay(){clearTimeout(this.openTimeout),clearTimeout(this.closeTimeout)},runDelay(t,e){this.clearDelay();const n=parseInt(this[t+"Delay"],10);this[t+"Timeout"]=setTimeout(e||(()=>{this.isActive={open:!0,close:!1}[t]}),n)}}});const Vn=D(Bn,dn);var Fn=Vn.extend({name:"activatable",props:{activator:{default:null,validator:t=>["string","object"].includes(typeof t)},disabled:Boolean,internalActivator:Boolean,openOnHover:Boolean,openOnFocus:Boolean},data:()=>({activatorElement:null,activatorNode:[],events:["click","mouseenter","mouseleave","focus"],listeners:{}}),watch:{activator:"resetActivator",openOnFocus:"resetActivator",openOnHover:"resetActivator"},mounted(){const t=tt(this,"activator",!0);t&&["v-slot","normal"].includes(t)&&He('The activator slot must be bound, try \'<template v-slot:activator="{ on }"><v-btn v-on="on">\'',this),this.addActivatorEvents()},beforeDestroy(){this.removeActivatorEvents()},methods:{addActivatorEvents(){if(!this.activator||this.disabled||!this.getActivator())return;this.listeners=this.genActivatorListeners();const t=Object.keys(this.listeners);for(const e of t)this.getActivator().addEventListener(e,this.listeners[e])},genActivator(){const t=nt(this,"activator",Object.assign(this.getValueProxy(),{on:this.genActivatorListeners(),attrs:this.genActivatorAttributes()}))||[];return this.activatorNode=t,t},genActivatorAttributes(){return{role:"button","aria-haspopup":!0,"aria-expanded":String(this.isActive)}},genActivatorListeners(){if(this.disabled)return{};const t={};return this.openOnHover?(t.mouseenter=t=>{this.getActivator(t),this.runDelay("open")},t.mouseleave=t=>{this.getActivator(t),this.runDelay("close")}):t.click=t=>{const e=this.getActivator(t);e&&e.focus(),t.stopPropagation(),this.isActive=!this.isActive},this.openOnFocus&&(t.focus=t=>{this.getActivator(t),t.stopPropagation(),this.isActive=!this.isActive}),t},getActivator(t){if(this.activatorElement)return this.activatorElement;let e=null;if(this.activator){const t=this.internalActivator?this.$el:document;e="string"===typeof this.activator?t.querySelector(this.activator):this.activator.$el?this.activator.$el:this.activator}else if(1===this.activatorNode.length||this.activatorNode.length&&!t){const t=this.activatorNode[0].componentInstance;e=t&&t.$options.mixins&&t.$options.mixins.some(t=>t.options&&["activatable","menuable"].includes(t.options.name))?t.getActivator():this.activatorNode[0].elm}else t&&(e=t.currentTarget||t.target);return this.activatorElement=e,this.activatorElement},getContentSlot(){return nt(this,"default",this.getValueProxy(),!0)},getValueProxy(){const t=this;return{get value(){return t.isActive},set value(e){t.isActive=e}}},removeActivatorEvents(){if(!this.activator||!this.activatorElement)return;const t=Object.keys(this.listeners);for(const e of t)this.activatorElement.removeEventListener(e,this.listeners[e]);this.listeners={}},resetActivator(){this.removeActivatorEvents(),this.activatorElement=null,this.getActivator(),this.addActivatorEvents()}}});function Hn(t){const e=[];for(let n=0;n<t.length;n++){const i=t[n];i.isActive&&i.isDependent?e.push(i):e.push(...Hn(i.$children))}return e}var $n=D().extend({name:"dependent",data(){return{closeDependents:!0,isActive:!1,isDependent:!0}},watch:{isActive(t){if(t)return;const e=this.getOpenDependents();for(let n=0;n<e.length;n++)e[n].isActive=!1}},methods:{getOpenDependents(){return this.closeDependents?Hn(this.$children):[]},getOpenDependentElements(){const t=[],e=this.getOpenDependents();for(let n=0;n<e.length;n++)t.push(...e[n].getClickableDependentElements());return t},getClickableDependentElements(){const t=[this.$el];return this.$refs.content&&t.push(this.$refs.content),this.overlay&&t.push(this.overlay.$el),t.push(...this.getOpenDependentElements()),t}}}),Wn=A.a.extend().extend({name:"bootable",props:{eager:Boolean},data:()=>({isBooted:!1}),computed:{hasContent(){return this.isBooted||this.eager||this.isActive}},watch:{isActive(){this.isBooted=!0}},created(){"lazy"in this.$attrs&&Ge("lazy",this)},methods:{showLazyContent(t){return this.hasContent&&t?t():[this.$createElement()]}}});function Gn(t){const e=typeof t;return"boolean"===e||"string"===e||t.nodeType===Node.ELEMENT_NODE}var jn=D(Wn).extend({name:"detachable",props:{attach:{default:!1,validator:Gn},contentClass:{type:String,default:""}},data:()=>({activatorNode:null,hasDetached:!1}),watch:{attach(){this.hasDetached=!1,this.initDetach()},hasContent(){this.$nextTick(this.initDetach)}},beforeMount(){this.$nextTick(()=>{if(this.activatorNode){const t=Array.isArray(this.activatorNode)?this.activatorNode:[this.activatorNode];t.forEach(t=>{if(!t.elm)return;if(!this.$el.parentNode)return;const e=this.$el===this.$el.parentNode.firstChild?this.$el:this.$el.nextSibling;this.$el.parentNode.insertBefore(t.elm,e)})}})},mounted(){this.hasContent&&this.initDetach()},deactivated(){this.isActive=!1},beforeDestroy(){try{if(this.$refs.content&&this.$refs.content.parentNode&&this.$refs.content.parentNode.removeChild(this.$refs.content),this.activatorNode){const t=Array.isArray(this.activatorNode)?this.activatorNode:[this.activatorNode];t.forEach(t=>{t.elm&&t.elm.parentNode&&t.elm.parentNode.removeChild(t.elm)})}}catch(vo){console.log(vo)}},methods:{getScopeIdAttrs(){const t=E(this.$vnode,"context.$options._scopeId");return t&&{[t]:""}},initDetach(){if(this._isDestroyed||!this.$refs.content||this.hasDetached||""===this.attach||!0===this.attach||"attach"===this.attach)return;let t;t=!1===this.attach?document.querySelector("[data-app]"):"string"===typeof this.attach?document.querySelector(this.attach):this.attach,t?(t.appendChild(this.$refs.content),this.hasDetached=!0):Fe("Unable to locate target "+(this.attach||"[data-app]"),this)}}});const Yn={absolute:Boolean,bottom:Boolean,fixed:Boolean,left:Boolean,right:Boolean,top:Boolean};function Xn(t=[]){return A.a.extend({name:"positionable",props:t.length?V(Yn,t):Yn})}var Un=Xn(),Zn=A.a.extend().extend({name:"stackable",data(){return{stackElement:null,stackExclude:null,stackMinZIndex:0,isActive:!1}},computed:{activeZIndex(){if("undefined"===typeof window)return 0;const t=this.stackElement||this.$refs.content,e=this.isActive?this.getMaxZIndex(this.stackExclude||[t])+2:N(t);return null==e?e:parseInt(e)}},methods:{getMaxZIndex(t=[]){const e=this.$el,n=[this.stackMinZIndex,N(e)],i=[...document.getElementsByClassName("v-menu__content--active"),...document.getElementsByClassName("v-dialog__content--active")];for(let r=0;r<i.length;r++)t.includes(i[r])||n.push(N(i[r]));return Math.max(...n)}}});const qn=D(Zn,Un,Fn);var Kn=qn.extend().extend({name:"menuable",props:{allowOverflow:Boolean,light:Boolean,dark:Boolean,maxWidth:{type:[Number,String],default:"auto"},minWidth:[Number,String],nudgeBottom:{type:[Number,String],default:0},nudgeLeft:{type:[Number,String],default:0},nudgeRight:{type:[Number,String],default:0},nudgeTop:{type:[Number,String],default:0},nudgeWidth:{type:[Number,String],default:0},offsetOverflow:Boolean,openOnClick:Boolean,positionX:{type:Number,default:null},positionY:{type:Number,default:null},zIndex:{type:[Number,String],default:null}},data:()=>({absoluteX:0,absoluteY:0,activatedBy:null,activatorFixed:!1,dimensions:{activator:{top:0,left:0,bottom:0,right:0,width:0,height:0,offsetTop:0,scrollHeight:0,offsetLeft:0},content:{top:0,left:0,bottom:0,right:0,width:0,height:0,offsetTop:0,scrollHeight:0}},hasJustFocused:!1,hasWindow:!1,inputActivator:!1,isContentActive:!1,pageWidth:0,pageYOffset:0,stackClass:"v-menu__content--active",stackMinZIndex:6}),computed:{computedLeft(){const t=this.dimensions.activator,e=this.dimensions.content,n=(!1!==this.attach?t.offsetLeft:t.left)||0,i=Math.max(t.width,e.width);let r=0;if(r+=this.left?n-(i-t.width):n,this.offsetX){const e=isNaN(Number(this.maxWidth))?t.width:Math.min(t.width,Number(this.maxWidth));r+=this.left?-e:t.width}return this.nudgeLeft&&(r-=parseInt(this.nudgeLeft)),this.nudgeRight&&(r+=parseInt(this.nudgeRight)),r},computedTop(){const t=this.dimensions.activator,e=this.dimensions.content;let n=0;return this.top&&(n+=t.height-e.height),!1!==this.attach?n+=t.offsetTop:n+=t.top+this.pageYOffset,this.offsetY&&(n+=this.top?-t.height:t.height),this.nudgeTop&&(n-=parseInt(this.nudgeTop)),this.nudgeBottom&&(n+=parseInt(this.nudgeBottom)),n},hasActivator(){return!!this.$slots.activator||!!this.$scopedSlots.activator||!!this.activator||!!this.inputActivator}},watch:{disabled(t){t&&this.callDeactivate()},isActive(t){this.disabled||(t?this.callActivate():this.callDeactivate())},positionX:"updateDimensions",positionY:"updateDimensions"},beforeMount(){this.hasWindow="undefined"!==typeof window},methods:{absolutePosition(){return{offsetTop:0,offsetLeft:0,scrollHeight:0,top:this.positionY||this.absoluteY,bottom:this.positionY||this.absoluteY,left:this.positionX||this.absoluteX,right:this.positionX||this.absoluteX,height:0,width:0}},activate(){},calcLeft(t){return F(!1!==this.attach?this.computedLeft:this.calcXOverflow(this.computedLeft,t))},calcTop(){return F(!1!==this.attach?this.computedTop:this.calcYOverflow(this.computedTop))},calcXOverflow(t,e){const n=t+e-this.pageWidth+12;return t=(!this.left||this.right)&&n>0?Math.max(t-n,0):Math.max(t,12),t+this.getOffsetLeft()},calcYOverflow(t){const e=this.getInnerHeight(),n=this.pageYOffset+e,i=this.dimensions.activator,r=this.dimensions.content.height,o=t+r,a=n<o;return a&&this.offsetOverflow&&i.top>r?t=this.pageYOffset+(i.top-r):a&&!this.allowOverflow?t=n-r-12:t<this.pageYOffset&&!this.allowOverflow&&(t=this.pageYOffset+12),t<12?12:t},callActivate(){this.hasWindow&&this.activate()},callDeactivate(){this.isContentActive=!1,this.deactivate()},checkForPageYOffset(){this.hasWindow&&(this.pageYOffset=this.activatorFixed?0:this.getOffsetTop())},checkActivatorFixed(){if(!1!==this.attach)return;let t=this.getActivator();while(t){if("fixed"===window.getComputedStyle(t).position)return void(this.activatorFixed=!0);t=t.offsetParent}this.activatorFixed=!1},deactivate(){},genActivatorListeners(){const t=Fn.options.methods.genActivatorListeners.call(this),e=t.click;return t.click=t=>{this.openOnClick&&e&&e(t),this.absoluteX=t.clientX,this.absoluteY=t.clientY},t},getInnerHeight(){return this.hasWindow?window.innerHeight||document.documentElement.clientHeight:0},getOffsetLeft(){return this.hasWindow?window.pageXOffset||document.documentElement.scrollLeft:0},getOffsetTop(){return this.hasWindow?window.pageYOffset||document.documentElement.scrollTop:0},getRoundedBoundedClientRect(t){const e=t.getBoundingClientRect();return{top:Math.round(e.top),left:Math.round(e.left),bottom:Math.round(e.bottom),right:Math.round(e.right),width:Math.round(e.width),height:Math.round(e.height)}},measure(t){if(!t||!this.hasWindow)return null;const e=this.getRoundedBoundedClientRect(t);if(!1!==this.attach){const n=window.getComputedStyle(t);e.left=parseInt(n.marginLeft),e.top=parseInt(n.marginTop)}return e},sneakPeek(t){requestAnimationFrame(()=>{const e=this.$refs.content;e&&"none"===e.style.display?(e.style.display="inline-block",t(),e.style.display="none"):t()})},startTransition(){return new Promise(t=>requestAnimationFrame(()=>{this.isContentActive=this.hasJustFocused=this.isActive,t()}))},updateDimensions(){this.hasWindow="undefined"!==typeof window,this.checkActivatorFixed(),this.checkForPageYOffset(),this.pageWidth=document.documentElement.clientWidth;const t={activator:{...this.dimensions.activator},content:{...this.dimensions.content}};if(!this.hasActivator||this.absolute)t.activator=this.absolutePosition();else{const e=this.getActivator();if(!e)return;t.activator=this.measure(e),t.activator.offsetLeft=e.offsetLeft,!1!==this.attach?t.activator.offsetTop=e.offsetTop:t.activator.offsetTop=0}this.sneakPeek(()=>{this.$refs.content&&(t.content=this.measure(this.$refs.content)),this.dimensions=t})}}}),Jn=A.a.extend({name:"returnable",props:{returnValue:null},data:()=>({isActive:!1,originalValue:null}),watch:{isActive(t){t?this.originalValue=this.returnValue:this.$emit("update:return-value",this.originalValue)}},methods:{save(t){this.originalValue=t,setTimeout(()=>{this.isActive=!1})}}}),Qn=A.a.extend({name:"roundable",props:{rounded:[Boolean,String],tile:Boolean},computed:{roundedClasses(){const t=[],e="string"===typeof this.rounded?String(this.rounded):!0===this.rounded;if(this.tile)t.push("rounded-0");else if("string"===typeof e){const n=e.split(" ");for(const e of n)t.push("rounded-"+e)}else e&&t.push("rounded");return t.length>0?{[t.join(" ")]:!0}:{}}}});function ti(){return!0}function ei(t,e,n){const i="function"===typeof n.value?n.value:n.value.handler,r="object"===typeof n.value&&n.value.closeConditional||ti;if(!t||!1===r(t))return;const o=("object"===typeof n.value&&n.value.include||(()=>[]))();o.push(e),!o.some(e=>e.contains(t.target))&&setTimeout(()=>{r(t)&&i&&i(t)},0)}const ni={inserted(t,e){const n=n=>ei(n,t,e),i=document.querySelector("[data-app]")||document.body;i.addEventListener("click",n,!0),t._clickOutside=n},unbind(t){if(!t._clickOutside)return;const e=document.querySelector("[data-app]")||document.body;e&&e.removeEventListener("click",t._clickOutside,!0),delete t._clickOutside}};var ii=ni;function ri(t,e){const n=e.value,i=e.options||{passive:!0};window.addEventListener("resize",n,i),t._onResize={callback:n,options:i},e.modifiers&&e.modifiers.quiet||n()}function oi(t){if(!t._onResize)return;const{callback:e,options:n}=t._onResize;window.removeEventListener("resize",e,n),delete t._onResize}const ai={inserted:ri,unbind:oi};var si=ai;const li=D($n,Bn,jn,Kn,Jn,Qn,dn,Qe);var ui=li.extend({name:"v-menu",directives:{ClickOutside:ii,Resize:si},provide(){return{isInMenu:!0,theme:this.theme}},props:{auto:Boolean,closeOnClick:{type:Boolean,default:!0},closeOnContentClick:{type:Boolean,default:!0},disabled:Boolean,disableKeys:Boolean,maxHeight:{type:[Number,String],default:"auto"},offsetX:Boolean,offsetY:Boolean,openOnClick:{type:Boolean,default:!0},openOnHover:Boolean,origin:{type:String,default:"top left"},transition:{type:[Boolean,String],default:"v-menu-transition"}},data(){return{calculatedTopAuto:0,defaultOffset:8,hasJustFocused:!1,listIndex:-1,resizeTimeout:0,selectedIndex:null,tiles:[]}},computed:{activeTile(){return this.tiles[this.listIndex]},calculatedLeft(){const t=Math.max(this.dimensions.content.width,parseFloat(this.calculatedMinWidth));return this.auto?F(this.calcXOverflow(this.calcLeftAuto(),t))||"0":this.calcLeft(t)||"0"},calculatedMaxHeight(){const t=this.auto?"200px":F(this.maxHeight);return t||"0"},calculatedMaxWidth(){return F(this.maxWidth)||"0"},calculatedMinWidth(){if(this.minWidth)return F(this.minWidth)||"0";const t=Math.min(this.dimensions.activator.width+Number(this.nudgeWidth)+(this.auto?16:0),Math.max(this.pageWidth-24,0)),e=isNaN(parseInt(this.calculatedMaxWidth))?t:parseInt(this.calculatedMaxWidth);return F(Math.min(e,t))||"0"},calculatedTop(){const t=this.auto?F(this.calcYOverflow(this.calculatedTopAuto)):this.calcTop();return t||"0"},hasClickableTiles(){return Boolean(this.tiles.find(t=>t.tabIndex>-1))},styles(){return{maxHeight:this.calculatedMaxHeight,minWidth:this.calculatedMinWidth,maxWidth:this.calculatedMaxWidth,top:this.calculatedTop,left:this.calculatedLeft,transformOrigin:this.origin,zIndex:this.zIndex||this.activeZIndex}}},watch:{isActive(t){t||(this.listIndex=-1)},isContentActive(t){this.hasJustFocused=t},listIndex(t,e){if(t in this.tiles){const e=this.tiles[t];e.classList.add("v-list-item--highlighted"),this.$refs.content.scrollTop=e.offsetTop-e.clientHeight}e in this.tiles&&this.tiles[e].classList.remove("v-list-item--highlighted")}},created(){this.$attrs.hasOwnProperty("full-width")&&Ge("full-width",this)},mounted(){this.isActive&&this.callActivate()},methods:{activate(){this.updateDimensions(),requestAnimationFrame(()=>{this.startTransition().then(()=>{this.$refs.content&&(this.calculatedTopAuto=this.calcTopAuto(),this.auto&&(this.$refs.content.scrollTop=this.calcScrollPosition()))})})},calcScrollPosition(){const t=this.$refs.content,e=t.querySelector(".v-list-item--active"),n=t.scrollHeight-t.offsetHeight;return e?Math.min(n,Math.max(0,e.offsetTop-t.offsetHeight/2+e.offsetHeight/2)):t.scrollTop},calcLeftAuto(){return parseInt(this.dimensions.activator.left-2*this.defaultOffset)},calcTopAuto(){const t=this.$refs.content,e=t.querySelector(".v-list-item--active");if(e||(this.selectedIndex=null),this.offsetY||!e)return this.computedTop;this.selectedIndex=Array.from(this.tiles).indexOf(e);const n=e.offsetTop-this.calcScrollPosition(),i=t.querySelector(".v-list-item").offsetTop;return this.computedTop-n-i-1},changeListIndex(t){if(this.getTiles(),this.isActive&&this.hasClickableTiles)if(t.keyCode!==W.tab){if(t.keyCode===W.down)this.nextTile();else if(t.keyCode===W.up)this.prevTile();else{if(t.keyCode!==W.enter||-1===this.listIndex)return;this.tiles[this.listIndex].click()}t.preventDefault()}else this.isActive=!1},closeConditional(t){const e=t.target;return this.isActive&&!this._isDestroyed&&this.closeOnClick&&!this.$refs.content.contains(e)},genActivatorAttributes(){const t=Fn.options.methods.genActivatorAttributes.call(this);return this.activeTile&&this.activeTile.id?{...t,"aria-activedescendant":this.activeTile.id}:t},genActivatorListeners(){const t=Kn.options.methods.genActivatorListeners.call(this);return this.disableKeys||(t.keydown=this.onKeyDown),t},genTransition(){const t=this.genContent();return this.transition?this.$createElement("transition",{props:{name:this.transition}},[t]):t},genDirectives(){const t=[{name:"show",value:this.isContentActive}];return!this.openOnHover&&this.closeOnClick&&t.push({name:"click-outside",value:{handler:()=>{this.isActive=!1},closeConditional:this.closeConditional,include:()=>[this.$el,...this.getOpenDependentElements()]}}),t},genContent(){const t={attrs:{...this.getScopeIdAttrs(),role:"role"in this.$attrs?this.$attrs.role:"menu"},staticClass:"v-menu__content",class:{...this.rootThemeClasses,...this.roundedClasses,"v-menu__content--auto":this.auto,"v-menu__content--fixed":this.activatorFixed,menuable__content__active:this.isActive,[this.contentClass.trim()]:!0},style:this.styles,directives:this.genDirectives(),ref:"content",on:{click:t=>{const e=t.target;e.getAttribute("disabled")||this.closeOnContentClick&&(this.isActive=!1)},keydown:this.onKeyDown}};return this.$listeners.scroll&&(t.on=t.on||{},t.on.scroll=this.$listeners.scroll),!this.disabled&&this.openOnHover&&(t.on=t.on||{},t.on.mouseenter=this.mouseEnterHandler),this.openOnHover&&(t.on=t.on||{},t.on.mouseleave=this.mouseLeaveHandler),this.$createElement("div",t,this.getContentSlot())},getTiles(){this.$refs.content&&(this.tiles=Array.from(this.$refs.content.querySelectorAll(".v-list-item")))},mouseEnterHandler(){this.runDelay("open",()=>{this.hasJustFocused||(this.hasJustFocused=!0)})},mouseLeaveHandler(t){this.runDelay("close",()=>{this.$refs.content.contains(t.relatedTarget)||requestAnimationFrame(()=>{this.isActive=!1,this.callDeactivate()})})},nextTile(){const t=this.tiles[this.listIndex+1];if(!t){if(!this.tiles.length)return;return this.listIndex=-1,void this.nextTile()}this.listIndex++,-1===t.tabIndex&&this.nextTile()},prevTile(){const t=this.tiles[this.listIndex-1];if(!t){if(!this.tiles.length)return;return this.listIndex=this.tiles.length,void this.prevTile()}this.listIndex--,-1===t.tabIndex&&this.prevTile()},onKeyDown(t){if(t.keyCode===W.esc){setTimeout(()=>{this.isActive=!1});const t=this.getActivator();this.$nextTick(()=>t&&t.focus())}else!this.isActive&&[W.up,W.down].includes(t.keyCode)&&(this.isActive=!0);this.$nextTick(()=>this.changeListIndex(t))},onResize(){this.isActive&&(this.$refs.content.offsetWidth,this.updateDimensions(),clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(this.updateDimensions,100))}},render(t){const e={staticClass:"v-menu",class:{"v-menu--attached":""===this.attach||!0===this.attach||"attach"===this.attach},directives:[{arg:"500",name:"resize",value:this.onResize}]};return t("div",e,[!this.activator&&this.genActivator(),this.showLazyContent(()=>[this.$createElement(zn,{props:{root:!0,light:this.light,dark:this.dark}},[this.genTransition()])])])}}),ci=ui,hi=(n("cf36"),A.a.extend({name:"v-simple-checkbox",functional:!0,directives:{ripple:On},props:{...Ze.options.props,...Qe.options.props,disabled:Boolean,ripple:{type:Boolean,default:!0},value:Boolean,indeterminate:Boolean,indeterminateIcon:{type:String,default:"$checkboxIndeterminate"},onIcon:{type:String,default:"$checkboxOn"},offIcon:{type:String,default:"$checkboxOff"}},render(t,{props:e,data:n,listeners:i}){const r=[];if(e.ripple&&!e.disabled){const n=t("div",Ze.options.methods.setTextColor(e.color,{staticClass:"v-input--selection-controls__ripple",directives:[{name:"ripple",value:{center:!0}}]}));r.push(n)}let o=e.offIcon;e.indeterminate?o=e.indeterminateIcon:e.value&&(o=e.onIcon),r.push(t(on,Ze.options.methods.setTextColor(e.value&&e.color,{props:{disabled:e.disabled,dark:e.dark,light:e.light}}),o));const a={"v-simple-checkbox":!0,"v-simple-checkbox--disabled":e.disabled};return t("div",ut(n,{class:a,on:{click:t=>{t.stopPropagation(),n.on&&n.on.input&&!e.disabled&&q(n.on.input).forEach(t=>t(!e.value))}}}),r)}})),di=(n("8ce9"),Qe.extend({name:"v-divider",props:{inset:Boolean,vertical:Boolean},render(t){let e;return this.$attrs.role&&"separator"!==this.$attrs.role||(e=this.vertical?"vertical":"horizontal"),t("hr",{class:{"v-divider":!0,"v-divider--inset":this.inset,"v-divider--vertical":this.vertical,...this.themeClasses},attrs:{role:"separator","aria-orientation":e,...this.$attrs},on:this.$listeners})}})),pi=di,fi=(n("0bc6"),D(Qe).extend({name:"v-subheader",props:{inset:Boolean},render(t){return t("div",{staticClass:"v-subheader",class:{"v-subheader--inset":this.inset,...this.themeClasses},attrs:this.$attrs,on:this.$listeners},this.$slots.default)}})),gi=fi;n("61d2");const vi=D(Ze,En,Qe,un("listItemGroup"),cn("inputValue"));var mi=vi.extend().extend({name:"v-list-item",directives:{Ripple:On},inject:{isInGroup:{default:!1},isInList:{default:!1},isInMenu:{default:!1},isInNav:{default:!1}},inheritAttrs:!1,props:{activeClass:{type:String,default(){return this.listItemGroup?this.listItemGroup.activeClass:""}},dense:Boolean,inactive:Boolean,link:Boolean,selectable:{type:Boolean},tag:{type:String,default:"div"},threeLine:Boolean,twoLine:Boolean,value:null},data:()=>({proxyClass:"v-list-item--active"}),computed:{classes(){return{"v-list-item":!0,...En.options.computed.classes.call(this),"v-list-item--dense":this.dense,"v-list-item--disabled":this.disabled,"v-list-item--link":this.isClickable&&!this.inactive,"v-list-item--selectable":this.selectable,"v-list-item--three-line":this.threeLine,"v-list-item--two-line":this.twoLine,...this.themeClasses}},isClickable(){return Boolean(En.options.computed.isClickable.call(this)||this.listItemGroup)}},created(){this.$attrs.hasOwnProperty("avatar")&&Ge("avatar",this)},methods:{click(t){t.detail&&this.$el.blur(),this.$emit("click",t),this.to||this.toggle()},genAttrs(){const t={"aria-disabled":!!this.disabled||void 0,tabindex:this.isClickable&&!this.disabled?0:-1,...this.$attrs};return this.$attrs.hasOwnProperty("role")||this.isInNav||(this.isInGroup?(t.role="listitem",t["aria-selected"]=String(this.isActive)):this.isInMenu?(t.role=this.isClickable?"menuitem":void 0,t.id=t.id||"list-item-"+this._uid):this.isInList&&(t.role="listitem")),t}},render(t){let{tag:e,data:n}=this.generateRouteLink();n.attrs={...n.attrs,...this.genAttrs()},n[this.to?"nativeOn":"on"]={...n[this.to?"nativeOn":"on"],keydown:t=>{t.keyCode===W.enter&&this.click(t),this.$emit("keydown",t)}},this.inactive&&(e="div"),this.inactive&&this.to&&(n.on=n.nativeOn,delete n.nativeOn);const i=this.$scopedSlots.default?this.$scopedSlots.default({active:this.isActive,toggle:this.toggle}):this.$slots.default;return t(e,this.setTextColor(this.color,n),i)}}),yi=A.a.extend({name:"v-list-item-action",functional:!0,render(t,{data:e,children:n=[]}){e.staticClass=e.staticClass?"v-list-item__action "+e.staticClass:"v-list-item__action";const i=n.filter(t=>!1===t.isComment&&" "!==t.text);return i.length>1&&(e.staticClass+=" v-list-item__action--stack"),t("div",e,n)}}),xi=(n("3ad0"),n("25a8"),A.a.extend({name:"elevatable",props:{elevation:[Number,String]},computed:{computedElevation(){return this.elevation},elevationClasses(){const t=this.computedElevation;return null==t||isNaN(parseInt(t))?{}:{["elevation-"+this.elevation]:!0}}}})),bi=A.a.extend({name:"measurable",props:{height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},computed:{measurableStyles(){const t={},e=F(this.height),n=F(this.minHeight),i=F(this.minWidth),r=F(this.maxHeight),o=F(this.maxWidth),a=F(this.width);return e&&(t.height=e),n&&(t.minHeight=n),i&&(t.minWidth=i),r&&(t.maxHeight=r),o&&(t.maxWidth=o),a&&(t.width=a),t}}}),_i=D(wt,Ze,xi,bi,Qn,Qe).extend({name:"v-sheet",props:{outlined:Boolean,shaped:Boolean,tag:{type:String,default:"div"}},computed:{classes(){return{"v-sheet":!0,"v-sheet--outlined":this.outlined,"v-sheet--shaped":this.shaped,...this.themeClasses,...this.elevationClasses,...this.roundedClasses}},styles(){return this.measurableStyles}},render(t){const e={class:this.classes,style:this.styles,on:this.listeners$};return t(this.tag,this.setBackgroundColor(this.color,e),this.$slots.default)}}),wi=_i.extend().extend({name:"v-list",provide(){return{isInList:!0,list:this}},inject:{isInMenu:{default:!1},isInNav:{default:!1}},props:{dense:Boolean,disabled:Boolean,expand:Boolean,flat:Boolean,nav:Boolean,rounded:Boolean,subheader:Boolean,threeLine:Boolean,twoLine:Boolean},data:()=>({groups:[]}),computed:{classes(){return{..._i.options.computed.classes.call(this),"v-list--dense":this.dense,"v-list--disabled":this.disabled,"v-list--flat":this.flat,"v-list--nav":this.nav,"v-list--rounded":this.rounded,"v-list--subheader":this.subheader,"v-list--two-line":this.twoLine,"v-list--three-line":this.threeLine}}},methods:{register(t){this.groups.push(t)},unregister(t){const e=this.groups.findIndex(e=>e._uid===t._uid);e>-1&&this.groups.splice(e,1)},listClick(t){if(!this.expand)for(const e of this.groups)e.toggle(t)}},render(t){const e={staticClass:"v-list",class:this.classes,style:this.styles,attrs:{role:this.isInNav||this.isInMenu?void 0:"list",...this.attrs$}};return t(this.tag,this.setBackgroundColor(this.color,e),[this.$slots.default])}}),Si=(n("db42"),A.a.extend({name:"v-list-item-icon",functional:!0,render(t,{data:e,children:n}){return e.staticClass=("v-list-item__icon "+(e.staticClass||"")).trim(),t("div",e,n)}}));const Mi=D(wt,Wn,Ze,ln("list"),dn);Mi.extend().extend({name:"v-list-group",directives:{ripple:On},props:{activeClass:{type:String,default:""},appendIcon:{type:String,default:"$expand"},color:{type:String,default:"primary"},disabled:Boolean,group:String,noAction:Boolean,prependIcon:String,ripple:{type:[Boolean,Object],default:!0},subGroup:Boolean},computed:{classes(){return{"v-list-group--active":this.isActive,"v-list-group--disabled":this.disabled,"v-list-group--no-action":this.noAction,"v-list-group--sub-group":this.subGroup}}},watch:{isActive(t){!this.subGroup&&t&&this.list&&this.list.listClick(this._uid)},$route:"onRouteChange"},created(){this.list&&this.list.register(this),this.group&&this.$route&&null==this.value&&(this.isActive=this.matchRoute(this.$route.path))},beforeDestroy(){this.list&&this.list.unregister(this)},methods:{click(t){this.disabled||(this.isBooted=!0,this.$emit("click",t),this.$nextTick(()=>this.isActive=!this.isActive))},genIcon(t){return this.$createElement(an,t)},genAppendIcon(){const t=!this.subGroup&&this.appendIcon;return t||this.$slots.appendIcon?this.$createElement(Si,{staticClass:"v-list-group__header__append-icon"},[this.$slots.appendIcon||this.genIcon(t)]):null},genHeader(){return this.$createElement(mi,{staticClass:"v-list-group__header",attrs:{"aria-expanded":String(this.isActive),role:"button"},class:{[this.activeClass]:this.isActive},props:{inputValue:this.isActive},directives:[{name:"ripple",value:this.ripple}],on:{...this.listeners$,click:this.click}},[this.genPrependIcon(),this.$slots.activator,this.genAppendIcon()])},genItems(){return this.showLazyContent(()=>[this.$createElement("div",{staticClass:"v-list-group__items",directives:[{name:"show",value:this.isActive}]},nt(this))])},genPrependIcon(){const t=this.subGroup&&null==this.prependIcon?"$subgroup":this.prependIcon;return t||this.$slots.prependIcon?this.$createElement(Si,{staticClass:"v-list-group__header__prepend-icon"},[this.$slots.prependIcon||this.genIcon(t)]):null},onRouteChange(t){if(!this.group)return;const e=this.matchRoute(t.path);e&&this.isActive!==e&&this.list&&this.list.listClick(this._uid),this.isActive=e},toggle(t){const e=this._uid===t;e&&(this.isBooted=!0),this.$nextTick(()=>this.isActive=e)},matchRoute(t){return null!==t.match(this.group)}},render(t){return t("div",this.setTextColor(this.isActive&&this.color,{staticClass:"v-list-group",class:this.classes}),[this.genHeader(),t(xt,this.genItems())])}}),n("899c"),n("166a");function Ii(t="value",e="change"){return A.a.extend({name:"proxyable",model:{prop:t,event:e},props:{[t]:{required:!1}},data(){return{internalLazyValue:this[t]}},computed:{internalValue:{get(){return this.internalLazyValue},set(t){t!==this.internalLazyValue&&(this.internalLazyValue=t,this.$emit(e,t))}}},watch:{[t](t){this.internalLazyValue=t}}})}const Ci=Ii();var Ti=Ci;const Ai=D(Ti,Qe).extend({name:"base-item-group",props:{activeClass:{type:String,default:"v-item--active"},mandatory:Boolean,max:{type:[Number,String],default:null},multiple:Boolean},data(){return{internalLazyValue:void 0!==this.value?this.value:this.multiple?[]:void 0,items:[]}},computed:{classes(){return{"v-item-group":!0,...this.themeClasses}},selectedIndex(){return this.selectedItem&&this.items.indexOf(this.selectedItem)||-1},selectedItem(){if(!this.multiple)return this.selectedItems[0]},selectedItems(){return this.items.filter((t,e)=>this.toggleMethod(this.getValue(t,e)))},selectedValues(){return null==this.internalValue?[]:Array.isArray(this.internalValue)?this.internalValue:[this.internalValue]},toggleMethod(){if(!this.multiple)return t=>this.internalValue===t;const t=this.internalValue;return Array.isArray(t)?e=>t.includes(e):()=>!1}},watch:{internalValue:"updateItemsState",items:"updateItemsState"},created(){this.multiple&&!Array.isArray(this.internalValue)&&Fe("Model must be bound to an array if the multiple property is true.",this)},methods:{genData(){return{class:this.classes}},getValue(t,e){return null==t.value||""===t.value?e:t.value},onClick(t){this.updateInternalValue(this.getValue(t,this.items.indexOf(t)))},register(t){const e=this.items.push(t)-1;t.$on("change",()=>this.onClick(t)),this.mandatory&&!this.selectedValues.length&&this.updateMandatory(),this.updateItem(t,e)},unregister(t){if(this._isDestroyed)return;const e=this.items.indexOf(t),n=this.getValue(t,e);this.items.splice(e,1);const i=this.selectedValues.indexOf(n);if(!(i<0)){if(!this.mandatory)return this.updateInternalValue(n);this.multiple&&Array.isArray(this.internalValue)?this.internalValue=this.internalValue.filter(t=>t!==n):this.internalValue=void 0,this.selectedItems.length||this.updateMandatory(!0)}},updateItem(t,e){const n=this.getValue(t,e);t.isActive=this.toggleMethod(n)},updateItemsState(){this.$nextTick(()=>{if(this.mandatory&&!this.selectedItems.length)return this.updateMandatory();this.items.forEach(this.updateItem)})},updateInternalValue(t){this.multiple?this.updateMultiple(t):this.updateSingle(t)},updateMandatory(t){if(!this.items.length)return;const e=this.items.slice();t&&e.reverse();const n=e.find(t=>!t.disabled);if(!n)return;const i=this.items.indexOf(n);this.updateInternalValue(this.getValue(n,i))},updateMultiple(t){const e=Array.isArray(this.internalValue)?this.internalValue:[],n=e.slice(),i=n.findIndex(e=>e===t);this.mandatory&&i>-1&&n.length-1<1||null!=this.max&&i<0&&n.length+1>this.max||(i>-1?n.splice(i,1):n.push(t),this.internalValue=n)},updateSingle(t){const e=t===this.internalValue;this.mandatory&&e||(this.internalValue=e?void 0:t)}},render(t){return t("div",this.genData(),this.$slots.default)}});Ai.extend({name:"v-item-group",provide(){return{itemGroup:this}}}),D(Ai,Ze).extend({name:"v-list-item-group",provide(){return{isInGroup:!0,listItemGroup:this}},computed:{classes(){return{...Ai.options.computed.classes.call(this),"v-list-item-group":!0}}},methods:{genData(){return this.setTextColor(this.color,{...Ai.options.methods.genData.call(this),attrs:{role:"listbox"}})}}}),n("3408");var Di=D(Ze,bi,Qn).extend({name:"v-avatar",props:{left:Boolean,right:Boolean,size:{type:[Number,String],default:48}},computed:{classes(){return{"v-avatar--left":this.left,"v-avatar--right":this.right,...this.roundedClasses}},styles(){return{height:F(this.size),minWidth:F(this.size),width:F(this.size),...this.measurableStyles}}},render(t){const e={staticClass:"v-avatar",class:this.classes,style:this.styles,on:this.$listeners};return t("div",this.setBackgroundColor(this.color,e),this.$slots.default)}}),ki=Di;ki.extend({name:"v-list-item-avatar",props:{horizontal:Boolean,size:{type:[Number,String],default:40}},computed:{classes(){return{"v-list-item__avatar--horizontal":this.horizontal,...ki.options.computed.classes.call(this),"v-avatar--tile":this.tile||this.horizontal}}},render(t){const e=ki.options.render.call(this,t);return e.data=e.data||{},e.data.staticClass+=" v-list-item__avatar",e}});k("v-list-item__action-text","span");const Li=k("v-list-item__content","div"),Pi=k("v-list-item__title","div");k("v-list-item__subtitle","div");var Oi=D(Ze,Qe).extend({name:"v-select-list",directives:{ripple:On},props:{action:Boolean,dense:Boolean,hideSelected:Boolean,items:{type:Array,default:()=>[]},itemDisabled:{type:[String,Array,Function],default:"disabled"},itemText:{type:[String,Array,Function],default:"text"},itemValue:{type:[String,Array,Function],default:"value"},noDataText:String,noFilter:Boolean,searchInput:null,selectedItems:{type:Array,default:()=>[]}},computed:{parsedItems(){return this.selectedItems.map(t=>this.getValue(t))},tileActiveClass(){return Object.keys(this.setTextColor(this.color).class||{}).join(" ")},staticNoDataTile(){const t={attrs:{role:void 0},on:{mousedown:t=>t.preventDefault()}};return this.$createElement(mi,t,[this.genTileContent(this.noDataText)])}},methods:{genAction(t,e){return this.$createElement(yi,[this.$createElement(hi,{props:{color:this.color,value:e},on:{input:()=>this.$emit("select",t)}})])},genDivider(t){return this.$createElement(pi,{props:t})},genFilteredText(t){if(t=t||"",!this.searchInput||this.noFilter)return B(t);const{start:e,middle:n,end:i}=this.getMaskedCharacters(t);return`${B(e)}${this.genHighlight(n)}${B(i)}`},genHeader(t){return this.$createElement(gi,{props:t},t.header)},genHighlight(t){return`<span class="v-list-item__mask">${B(t)}</span>`},getMaskedCharacters(t){const e=(this.searchInput||"").toString().toLocaleLowerCase(),n=t.toLocaleLowerCase().indexOf(e);if(n<0)return{start:t,middle:"",end:""};const i=t.slice(0,n),r=t.slice(n,n+e.length),o=t.slice(n+e.length);return{start:i,middle:r,end:o}},genTile({item:t,index:e,disabled:n=null,value:i=!1}){i||(i=this.hasItem(t)),t===Object(t)&&(n=null!==n?n:this.getDisabled(t));const r={attrs:{"aria-selected":String(i),id:`list-item-${this._uid}-${e}`,role:"option"},on:{mousedown:t=>{t.preventDefault()},click:()=>n||this.$emit("select",t)},props:{activeClass:this.tileActiveClass,disabled:n,ripple:!0,inputValue:i}};if(!this.$scopedSlots.item)return this.$createElement(mi,r,[this.action&&!this.hideSelected&&this.items.length>0?this.genAction(t,i):null,this.genTileContent(t,e)]);const o=this,a=this.$scopedSlots.item({parent:o,item:t,attrs:{...r.attrs,...r.props},on:r.on});return this.needsTile(a)?this.$createElement(mi,r,a):a},genTileContent(t,e=0){const n=this.genFilteredText(this.getText(t));return this.$createElement(Li,[this.$createElement(Pi,{domProps:{innerHTML:n}})])},hasItem(t){return this.parsedItems.indexOf(this.getValue(t))>-1},needsTile(t){return 1!==t.length||null==t[0].componentOptions||"v-list-item"!==t[0].componentOptions.Ctor.options.name},getDisabled(t){return Boolean(R(t,this.itemDisabled,!1))},getText(t){return String(R(t,this.itemText,t))},getValue(t){return R(t,this.itemValue,this.getText(t))}},render(){const t=[],e=this.items.length;for(let n=0;n<e;n++){const e=this.items[n];this.hideSelected&&this.hasItem(e)||(null==e?t.push(this.genTile({item:e,index:n})):e.header?t.push(this.genHeader(e)):e.divider?t.push(this.genDivider(e)):t.push(this.genTile({item:e,index:n})))}return t.length||t.push(this.$slots["no-data"]||this.staticNoDataTile),this.$slots["prepend-item"]&&t.unshift(this.$slots["prepend-item"]),this.$slots["append-item"]&&t.push(this.$slots["append-item"]),this.$createElement(wi,{staticClass:"v-select-list",class:this.themeClasses,attrs:{role:"listbox",tabindex:-1},props:{dense:this.dense}},t)}}),Ei=(n("d191"),n("1b2c"),D(Qe).extend({name:"v-label",functional:!0,props:{absolute:Boolean,color:{type:String,default:"primary"},disabled:Boolean,focused:Boolean,for:String,left:{type:[Number,String],default:0},right:{type:[Number,String],default:"auto"},value:Boolean},render(t,e){const{children:n,listeners:i,props:r}=e,o={staticClass:"v-label",class:{"v-label--active":r.value,"v-label--is-disabled":r.disabled,...tn(e)},attrs:{for:r.for,"aria-hidden":!r.for},on:i,style:{left:F(r.left),right:F(r.right),position:r.absolute?"absolute":"relative"},ref:"label"};return t("label",Ze.options.methods.setTextColor(r.focused&&r.color,o),n)}})),Ri=Ei,Ni=(n("8ff2"),D(Ze,Qe).extend({name:"v-messages",props:{value:{type:Array,default:()=>[]}},methods:{genChildren(){return this.$createElement("transition-group",{staticClass:"v-messages__wrapper",attrs:{name:"message-transition",tag:"div"}},this.value.map(this.genMessage))},genMessage(t,e){return this.$createElement("div",{staticClass:"v-messages__message",key:e},nt(this,"default",{message:t,key:e})||[t])}},render(t){return t("div",this.setTextColor(this.color,{staticClass:"v-messages",class:this.themeClasses}),[this.genChildren()])}})),zi=Ni;const Bi=D(Ze,ln("form"),Qe);var Vi=Bi.extend({name:"validatable",props:{disabled:Boolean,error:Boolean,errorCount:{type:[Number,String],default:1},errorMessages:{type:[String,Array],default:()=>[]},messages:{type:[String,Array],default:()=>[]},readonly:Boolean,rules:{type:Array,default:()=>[]},success:Boolean,successMessages:{type:[String,Array],default:()=>[]},validateOnBlur:Boolean,value:{required:!1}},data(){return{errorBucket:[],hasColor:!1,hasFocused:!1,hasInput:!1,isFocused:!1,isResetting:!1,lazyValue:this.value,valid:!1}},computed:{computedColor(){if(!this.isDisabled)return this.color?this.color:this.isDark&&!this.appIsDark?"white":"primary"},hasError(){return this.internalErrorMessages.length>0||this.errorBucket.length>0||this.error},hasSuccess(){return this.internalSuccessMessages.length>0||this.success},externalError(){return this.internalErrorMessages.length>0||this.error},hasMessages(){return this.validationTarget.length>0},hasState(){return!this.isDisabled&&(this.hasSuccess||this.shouldValidate&&this.hasError)},internalErrorMessages(){return this.genInternalMessages(this.errorMessages)},internalMessages(){return this.genInternalMessages(this.messages)},internalSuccessMessages(){return this.genInternalMessages(this.successMessages)},internalValue:{get(){return this.lazyValue},set(t){this.lazyValue=t,this.$emit("input",t)}},isDisabled(){return this.disabled||!!this.form&&this.form.disabled},isInteractive(){return!this.isDisabled&&!this.isReadonly},isReadonly(){return this.readonly||!!this.form&&this.form.readonly},shouldValidate(){return!!this.externalError||!this.isResetting&&(this.validateOnBlur?this.hasFocused&&!this.isFocused:this.hasInput||this.hasFocused)},validations(){return this.validationTarget.slice(0,Number(this.errorCount))},validationState(){if(!this.isDisabled)return this.hasError&&this.shouldValidate?"error":this.hasSuccess?"success":this.hasColor?this.computedColor:void 0},validationTarget(){return this.internalErrorMessages.length>0?this.internalErrorMessages:this.successMessages&&this.successMessages.length>0?this.internalSuccessMessages:this.messages&&this.messages.length>0?this.internalMessages:this.shouldValidate?this.errorBucket:[]}},watch:{rules:{handler(t,e){O(t,e)||this.validate()},deep:!0},internalValue(){this.hasInput=!0,this.validateOnBlur||this.$nextTick(this.validate)},isFocused(t){t||this.isDisabled||(this.hasFocused=!0,this.validateOnBlur&&this.$nextTick(this.validate))},isResetting(){setTimeout(()=>{this.hasInput=!1,this.hasFocused=!1,this.isResetting=!1,this.validate()},0)},hasError(t){this.shouldValidate&&this.$emit("update:error",t)},value(t){this.lazyValue=t}},beforeMount(){this.validate()},created(){this.form&&this.form.register(this)},beforeDestroy(){this.form&&this.form.unregister(this)},methods:{genInternalMessages(t){return t?Array.isArray(t)?t:[t]:[]},reset(){this.isResetting=!0,this.internalValue=Array.isArray(this.internalValue)?[]:void 0},resetValidation(){this.isResetting=!0},validate(t=!1,e){const n=[];e=e||this.internalValue,t&&(this.hasInput=this.hasFocused=!0);for(let i=0;i<this.rules.length;i++){const t=this.rules[i],r="function"===typeof t?t(e):t;!1===r||"string"===typeof r?n.push(r||""):"boolean"!==typeof r&&He(`Rules should return a string or boolean, received '${typeof r}' instead`,this)}return this.errorBucket=n,this.valid=0===n.length,this.valid}}});const Fi=D(wt,Vi);var Hi=Fi.extend().extend({name:"v-input",inheritAttrs:!1,props:{appendIcon:String,backgroundColor:{type:String,default:""},dense:Boolean,height:[Number,String],hideDetails:[Boolean,String],hint:String,id:String,label:String,loading:Boolean,persistentHint:Boolean,prependIcon:String,value:null},data(){return{lazyValue:this.value,hasMouseDown:!1}},computed:{classes(){return{"v-input--has-state":this.hasState,"v-input--hide-details":!this.showDetails,"v-input--is-label-active":this.isLabelActive,"v-input--is-dirty":this.isDirty,"v-input--is-disabled":this.isDisabled,"v-input--is-focused":this.isFocused,"v-input--is-loading":!1!==this.loading&&null!=this.loading,"v-input--is-readonly":this.isReadonly,"v-input--dense":this.dense,...this.themeClasses}},computedId(){return this.id||"input-"+this._uid},hasDetails(){return this.messagesToDisplay.length>0},hasHint(){return!this.hasMessages&&!!this.hint&&(this.persistentHint||this.isFocused)},hasLabel(){return!(!this.$slots.label&&!this.label)},internalValue:{get(){return this.lazyValue},set(t){this.lazyValue=t,this.$emit(this.$_modelEvent,t)}},isDirty(){return!!this.lazyValue},isLabelActive(){return this.isDirty},messagesToDisplay(){return this.hasHint?[this.hint]:this.hasMessages?this.validations.map(t=>{if("string"===typeof t)return t;const e=t(this.internalValue);return"string"===typeof e?e:""}).filter(t=>""!==t):[]},showDetails(){return!1===this.hideDetails||"auto"===this.hideDetails&&this.hasDetails}},watch:{value(t){this.lazyValue=t}},beforeCreate(){this.$_modelEvent=this.$options.model&&this.$options.model.event||"input"},methods:{genContent(){return[this.genPrependSlot(),this.genControl(),this.genAppendSlot()]},genControl(){return this.$createElement("div",{staticClass:"v-input__control"},[this.genInputSlot(),this.genMessages()])},genDefaultSlot(){return[this.genLabel(),this.$slots.default]},genIcon(t,e,n={}){const i=this[t+"Icon"],r="click:"+H(t),o=!(!this.listeners$[r]&&!e),a=ut({attrs:{"aria-label":o?H(t).split("-")[0]+" icon":void 0,color:this.validationState,dark:this.dark,disabled:this.isDisabled,light:this.light},on:o?{click:t=>{t.preventDefault(),t.stopPropagation(),this.$emit(r,t),e&&e(t)},mouseup:t=>{t.preventDefault(),t.stopPropagation()}}:void 0},n);return this.$createElement("div",{staticClass:"v-input__icon",class:t?"v-input__icon--"+H(t):void 0},[this.$createElement(an,a,i)])},genInputSlot(){return this.$createElement("div",this.setBackgroundColor(this.backgroundColor,{staticClass:"v-input__slot",style:{height:F(this.height)},on:{click:this.onClick,mousedown:this.onMouseDown,mouseup:this.onMouseUp},ref:"input-slot"}),[this.genDefaultSlot()])},genLabel(){return this.hasLabel?this.$createElement(Ri,{props:{color:this.validationState,dark:this.dark,disabled:this.isDisabled,focused:this.hasState,for:this.computedId,light:this.light}},this.$slots.label||this.label):null},genMessages(){return this.showDetails?this.$createElement(zi,{props:{color:this.hasHint?"":this.validationState,dark:this.dark,light:this.light,value:this.messagesToDisplay},attrs:{role:this.hasMessages?"alert":null},scopedSlots:{default:t=>nt(this,"message",t)}}):null},genSlot(t,e,n){if(!n.length)return null;const i=`${t}-${e}`;return this.$createElement("div",{staticClass:"v-input__"+i,ref:i},n)},genPrependSlot(){const t=[];return this.$slots.prepend?t.push(this.$slots.prepend):this.prependIcon&&t.push(this.genIcon("prepend")),this.genSlot("prepend","outer",t)},genAppendSlot(){const t=[];return this.$slots.append?t.push(this.$slots.append):this.appendIcon&&t.push(this.genIcon("append")),this.genSlot("append","outer",t)},onClick(t){this.$emit("click",t)},onMouseDown(t){this.hasMouseDown=!0,this.$emit("mousedown",t)},onMouseUp(t){this.hasMouseDown=!1,this.$emit("mouseup",t)}},render(t){return t("div",this.setTextColor(this.validationState,{staticClass:"v-input",class:this.classes}),this.genContent())}}),$i=Hi,Wi=(n("e9b1"),D(Qe).extend({name:"v-counter",functional:!0,props:{value:{type:[Number,String],default:""},max:[Number,String]},render(t,e){const{props:n}=e,i=parseInt(n.max,10),r=parseInt(n.value,10),o=i?`${r} / ${i}`:String(n.value),a=i&&r>i;return t("div",{staticClass:"v-counter",class:{"error--text":a,...tn(e)}},o)}})),Gi=Wi;function ji(t,e){const n=e.modifiers||{},i=e.value,{handler:r,options:o}="object"===typeof i?i:{handler:i,options:{}},a=new IntersectionObserver((e=[],i)=>{if(t._observe){if(r&&(!n.quiet||t._observe.init)){const t=Boolean(e.find(t=>t.isIntersecting));r(e,i,t)}t._observe.init&&n.once?Yi(t):t._observe.init=!0}},o);t._observe={init:!1,observer:a},a.observe(t)}function Yi(t){t._observe&&(t._observe.observer.unobserve(t),delete t._observe)}const Xi={inserted:ji,unbind:Yi};var Ui=Xi;function Zi(t){return"undefined"!==typeof window&&"IntersectionObserver"in window?A.a.extend({name:"intersectable",mounted(){Ui.inserted(this.$el,{name:"intersect",value:this.onObserve})},destroyed(){Ui.unbind(this.$el)},methods:{onObserve(e,n,i){if(i)for(let r=0,o=t.onVisible.length;r<o;r++){const e=this[t.onVisible[r]];"function"!==typeof e?Fe(t.onVisible[r]+" method is not available on the instance but referenced in intersectable mixin options"):e()}}}}):A.a.extend({name:"intersectable"})}n("6ece");const qi=D(Ze,Xn(["absolute","fixed","top","bottom"]),Ti,Qe);var Ki=qi.extend({name:"v-progress-linear",props:{active:{type:Boolean,default:!0},backgroundColor:{type:String,default:null},backgroundOpacity:{type:[Number,String],default:null},bufferValue:{type:[Number,String],default:100},color:{type:String,default:"primary"},height:{type:[Number,String],default:4},indeterminate:Boolean,query:Boolean,reverse:Boolean,rounded:Boolean,stream:Boolean,striped:Boolean,value:{type:[Number,String],default:0}},data(){return{internalLazyValue:this.value||0}},computed:{__cachedBackground(){return this.$createElement("div",this.setBackgroundColor(this.backgroundColor||this.color,{staticClass:"v-progress-linear__background",style:this.backgroundStyle}))},__cachedBar(){return this.$createElement(this.computedTransition,[this.__cachedBarType])},__cachedBarType(){return this.indeterminate?this.__cachedIndeterminate:this.__cachedDeterminate},__cachedBuffer(){return this.$createElement("div",{staticClass:"v-progress-linear__buffer",style:this.styles})},__cachedDeterminate(){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-progress-linear__determinate",style:{width:F(this.normalizedValue,"%")}}))},__cachedIndeterminate(){return this.$createElement("div",{staticClass:"v-progress-linear__indeterminate",class:{"v-progress-linear__indeterminate--active":this.active}},[this.genProgressBar("long"),this.genProgressBar("short")])},__cachedStream(){return this.stream?this.$createElement("div",this.setTextColor(this.color,{staticClass:"v-progress-linear__stream",style:{width:F(100-this.normalizedBuffer,"%")}})):null},backgroundStyle(){const t=null==this.backgroundOpacity?this.backgroundColor?1:.3:parseFloat(this.backgroundOpacity);return{opacity:t,[this.isReversed?"right":"left"]:F(this.normalizedValue,"%"),width:F(this.normalizedBuffer-this.normalizedValue,"%")}},classes(){return{"v-progress-linear--absolute":this.absolute,"v-progress-linear--fixed":this.fixed,"v-progress-linear--query":this.query,"v-progress-linear--reactive":this.reactive,"v-progress-linear--reverse":this.isReversed,"v-progress-linear--rounded":this.rounded,"v-progress-linear--striped":this.striped,...this.themeClasses}},computedTransition(){return this.indeterminate?mt:yt},isReversed(){return this.$vuetify.rtl!==this.reverse},normalizedBuffer(){return this.normalize(this.bufferValue)},normalizedValue(){return this.normalize(this.internalLazyValue)},reactive(){return Boolean(this.$listeners.change)},styles(){const t={};return this.active||(t.height=0),this.indeterminate||100===parseFloat(this.normalizedBuffer)||(t.width=F(this.normalizedBuffer,"%")),t}},methods:{genContent(){const t=nt(this,"default",{value:this.internalLazyValue});return t?this.$createElement("div",{staticClass:"v-progress-linear__content"},t):null},genListeners(){const t=this.$listeners;return this.reactive&&(t.click=this.onClick),t},genProgressBar(t){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-progress-linear__indeterminate",class:{[t]:!0}}))},onClick(t){if(!this.reactive)return;const{width:e}=this.$el.getBoundingClientRect();this.internalValue=t.offsetX/e*100},normalize(t){return t<0?0:t>100?100:parseFloat(t)}},render(t){const e={staticClass:"v-progress-linear",attrs:{role:"progressbar","aria-valuemin":0,"aria-valuemax":this.normalizedBuffer,"aria-valuenow":this.indeterminate?void 0:this.normalizedValue},class:this.classes,style:{bottom:this.bottom?0:void 0,height:this.active?F(this.height):0,top:this.top?0:void 0},on:this.genListeners()};return t("div",e,[this.__cachedStream,this.__cachedBackground,this.__cachedBuffer,this.__cachedBar,this.genContent()])}}),Ji=Ki,Qi=A.a.extend().extend({name:"loadable",props:{loading:{type:[Boolean,String],default:!1},loaderHeight:{type:[Number,String],default:2}},methods:{genProgress(){return!1===this.loading?null:this.$slots.progress||this.$createElement(Ji,{props:{absolute:!0,color:!0===this.loading||""===this.loading?this.color||"primary":this.loading,height:this.loaderHeight,indeterminate:!0}})}}});const tr=D($i,Zi({onVisible:["onResize","tryAutofocus"]}),Qi),er=["color","file","time","date","datetime-local","week","month"];var nr=tr.extend().extend({name:"v-text-field",directives:{resize:si,ripple:On},inheritAttrs:!1,props:{appendOuterIcon:String,autofocus:Boolean,clearable:Boolean,clearIcon:{type:String,default:"$clear"},counter:[Boolean,Number,String],counterValue:Function,filled:Boolean,flat:Boolean,fullWidth:Boolean,label:String,outlined:Boolean,placeholder:String,prefix:String,prependInnerIcon:String,reverse:Boolean,rounded:Boolean,shaped:Boolean,singleLine:Boolean,solo:Boolean,soloInverted:Boolean,suffix:String,type:{type:String,default:"text"}},data:()=>({badInput:!1,labelWidth:0,prefixWidth:0,prependWidth:0,initialValue:null,isBooted:!1,isClearing:!1}),computed:{classes(){return{...$i.options.computed.classes.call(this),"v-text-field":!0,"v-text-field--full-width":this.fullWidth,"v-text-field--prefix":this.prefix,"v-text-field--single-line":this.isSingle,"v-text-field--solo":this.isSolo,"v-text-field--solo-inverted":this.soloInverted,"v-text-field--solo-flat":this.flat,"v-text-field--filled":this.filled,"v-text-field--is-booted":this.isBooted,"v-text-field--enclosed":this.isEnclosed,"v-text-field--reverse":this.reverse,"v-text-field--outlined":this.outlined,"v-text-field--placeholder":this.placeholder,"v-text-field--rounded":this.rounded,"v-text-field--shaped":this.shaped}},computedColor(){const t=Vi.options.computed.computedColor.call(this);return this.soloInverted&&this.isFocused?this.color||"primary":t},computedCounterValue(){return"function"===typeof this.counterValue?this.counterValue(this.internalValue):[...(this.internalValue||"").toString()].length},hasCounter(){return!1!==this.counter&&null!=this.counter},hasDetails(){return $i.options.computed.hasDetails.call(this)||this.hasCounter},internalValue:{get(){return this.lazyValue},set(t){this.lazyValue=t,this.$emit("input",this.lazyValue)}},isDirty(){var t;return(null==(t=this.lazyValue)?void 0:t.toString().length)>0||this.badInput},isEnclosed(){return this.filled||this.isSolo||this.outlined},isLabelActive(){return this.isDirty||er.includes(this.type)},isSingle(){return this.isSolo||this.singleLine||this.fullWidth||this.filled&&!this.hasLabel},isSolo(){return this.solo||this.soloInverted},labelPosition(){let t=this.prefix&&!this.labelValue?this.prefixWidth:0;return this.labelValue&&this.prependWidth&&(t-=this.prependWidth),this.$vuetify.rtl===this.reverse?{left:t,right:"auto"}:{left:"auto",right:t}},showLabel(){return this.hasLabel&&(!this.isSingle||!this.isLabelActive&&!this.placeholder)},labelValue(){return!this.isSingle&&Boolean(this.isFocused||this.isLabelActive||this.placeholder)}},watch:{outlined:"setLabelWidth",label(){this.$nextTick(this.setLabelWidth)},prefix(){this.$nextTick(this.setPrefixWidth)},isFocused:"updateValue",value(t){this.lazyValue=t}},created(){this.$attrs.hasOwnProperty("box")&&We("box","filled",this),this.$attrs.hasOwnProperty("browser-autocomplete")&&We("browser-autocomplete","autocomplete",this),this.shaped&&!(this.filled||this.outlined||this.isSolo)&&Fe("shaped should be used with either filled or outlined",this)},mounted(){this.$watch(()=>this.labelValue,this.setLabelWidth),this.autofocus&&this.tryAutofocus(),requestAnimationFrame(()=>this.isBooted=!0)},methods:{focus(){this.onFocus()},blur(t){window.requestAnimationFrame(()=>{this.$refs.input&&this.$refs.input.blur()})},clearableCallback(){this.$refs.input&&this.$refs.input.focus(),this.$nextTick(()=>this.internalValue=null)},genAppendSlot(){const t=[];return this.$slots["append-outer"]?t.push(this.$slots["append-outer"]):this.appendOuterIcon&&t.push(this.genIcon("appendOuter")),this.genSlot("append","outer",t)},genPrependInnerSlot(){const t=[];return this.$slots["prepend-inner"]?t.push(this.$slots["prepend-inner"]):this.prependInnerIcon&&t.push(this.genIcon("prependInner")),this.genSlot("prepend","inner",t)},genIconSlot(){const t=[];return this.$slots.append?t.push(this.$slots.append):this.appendIcon&&t.push(this.genIcon("append")),this.genSlot("append","inner",t)},genInputSlot(){const t=$i.options.methods.genInputSlot.call(this),e=this.genPrependInnerSlot();return e&&(t.children=t.children||[],t.children.unshift(e)),t},genClearIcon(){if(!this.clearable)return null;const t=this.isDirty?void 0:{attrs:{disabled:!0}};return this.genSlot("append","inner",[this.genIcon("clear",this.clearableCallback,t)])},genCounter(){if(!this.hasCounter)return null;const t=!0===this.counter?this.attrs$.maxlength:this.counter;return this.$createElement(Gi,{props:{dark:this.dark,light:this.light,max:t,value:this.computedCounterValue}})},genControl(){return $i.options.methods.genControl.call(this)},genDefaultSlot(){return[this.genFieldset(),this.genTextFieldSlot(),this.genClearIcon(),this.genIconSlot(),this.genProgress()]},genFieldset(){return this.outlined?this.$createElement("fieldset",{attrs:{"aria-hidden":!0}},[this.genLegend()]):null},genLabel(){if(!this.showLabel)return null;const t={props:{absolute:!0,color:this.validationState,dark:this.dark,disabled:this.isDisabled,focused:!this.isSingle&&(this.isFocused||!!this.validationState),for:this.computedId,left:this.labelPosition.left,light:this.light,right:this.labelPosition.right,value:this.labelValue}};return this.$createElement(Ri,t,this.$slots.label||this.label)},genLegend(){const t=this.singleLine||!this.labelValue&&!this.isDirty?0:this.labelWidth,e=this.$createElement("span",{domProps:{innerHTML:"​"}});return this.$createElement("legend",{style:{width:this.isSingle?void 0:F(t)}},[e])},genInput(){const t=Object.assign({},this.listeners$);return delete t.change,this.$createElement("input",{style:{},domProps:{value:"number"===this.type&&Object.is(this.lazyValue,-0)?"-0":this.lazyValue},attrs:{...this.attrs$,autofocus:this.autofocus,disabled:this.isDisabled,id:this.computedId,placeholder:this.placeholder,readonly:this.isReadonly,type:this.type},on:Object.assign(t,{blur:this.onBlur,input:this.onInput,focus:this.onFocus,keydown:this.onKeyDown}),ref:"input",directives:[{name:"resize",modifiers:{quiet:!0},value:this.onResize}]})},genMessages(){if(!this.showDetails)return null;const t=$i.options.methods.genMessages.call(this),e=this.genCounter();return this.$createElement("div",{staticClass:"v-text-field__details"},[t,e])},genTextFieldSlot(){return this.$createElement("div",{staticClass:"v-text-field__slot"},[this.genLabel(),this.prefix?this.genAffix("prefix"):null,this.genInput(),this.suffix?this.genAffix("suffix"):null])},genAffix(t){return this.$createElement("div",{class:"v-text-field__"+t,ref:t},this[t])},onBlur(t){this.isFocused=!1,t&&this.$nextTick(()=>this.$emit("blur",t))},onClick(){this.isFocused||this.isDisabled||!this.$refs.input||this.$refs.input.focus()},onFocus(t){if(this.$refs.input)return document.activeElement!==this.$refs.input?this.$refs.input.focus():void(this.isFocused||(this.isFocused=!0,t&&this.$emit("focus",t)))},onInput(t){const e=t.target;this.internalValue=e.value,this.badInput=e.validity&&e.validity.badInput},onKeyDown(t){t.keyCode===W.enter&&this.$emit("change",this.internalValue),this.$emit("keydown",t)},onMouseDown(t){t.target!==this.$refs.input&&(t.preventDefault(),t.stopPropagation()),$i.options.methods.onMouseDown.call(this,t)},onMouseUp(t){this.hasMouseDown&&this.focus(),$i.options.methods.onMouseUp.call(this,t)},setLabelWidth(){this.outlined&&(this.labelWidth=this.$refs.label?Math.min(.75*this.$refs.label.scrollWidth+6,this.$el.offsetWidth-24):0)},setPrefixWidth(){this.$refs.prefix&&(this.prefixWidth=this.$refs.prefix.offsetWidth)},setPrependWidth(){this.outlined&&this.$refs["prepend-inner"]&&(this.prependWidth=this.$refs["prepend-inner"].offsetWidth)},tryAutofocus(){return!(!this.autofocus||"undefined"===typeof document||!this.$refs.input||document.activeElement===this.$refs.input)&&(this.$refs.input.focus(),!0)},updateValue(t){this.hasColor=t,t?this.initialValue=this.lazyValue:this.initialValue!==this.lazyValue&&this.$emit("change",this.lazyValue)},onResize(){this.setLabelWidth(),this.setPrefixWidth(),this.setPrependWidth()}}}),ir=A.a.extend({name:"comparable",props:{valueComparator:{type:Function,default:O}}}),rr=A.a.extend({name:"filterable",props:{noDataText:{type:String,default:"$vuetify.noDataText"}}});const or={closeOnClick:!1,closeOnContentClick:!1,disableKeys:!0,openOnClick:!1,maxHeight:304},ar=D(nr,ir,$n,rr);var sr=ar.extend().extend({name:"v-select",directives:{ClickOutside:ii},props:{appendIcon:{type:String,default:"$dropdown"},attach:{type:null,default:!1},cacheItems:Boolean,chips:Boolean,clearable:Boolean,deletableChips:Boolean,disableLookup:Boolean,eager:Boolean,hideSelected:Boolean,items:{type:Array,default:()=>[]},itemColor:{type:String,default:"primary"},itemDisabled:{type:[String,Array,Function],default:"disabled"},itemText:{type:[String,Array,Function],default:"text"},itemValue:{type:[String,Array,Function],default:"value"},menuProps:{type:[String,Array,Object],default:()=>or},multiple:Boolean,openOnClear:Boolean,returnObject:Boolean,smallChips:Boolean},data(){return{cachedItems:this.cacheItems?this.items:[],menuIsBooted:!1,isMenuActive:!1,lastItem:20,lazyValue:void 0!==this.value?this.value:this.multiple?[]:void 0,selectedIndex:-1,selectedItems:[],keyboardLookupPrefix:"",keyboardLookupLastTime:0}},computed:{allItems(){return this.filterDuplicates(this.cachedItems.concat(this.items))},classes(){return{...nr.options.computed.classes.call(this),"v-select":!0,"v-select--chips":this.hasChips,"v-select--chips--small":this.smallChips,"v-select--is-menu-active":this.isMenuActive,"v-select--is-multi":this.multiple}},computedItems(){return this.allItems},computedOwns(){return"list-"+this._uid},computedCounterValue(){return this.multiple?this.selectedItems.length:(this.getText(this.selectedItems[0])||"").toString().length},directives(){return this.isFocused?[{name:"click-outside",value:{handler:this.blur,closeConditional:this.closeConditional,include:()=>this.getOpenDependentElements()}}]:void 0},dynamicHeight(){return"auto"},hasChips(){return this.chips||this.smallChips},hasSlot(){return Boolean(this.hasChips||this.$scopedSlots.selection)},isDirty(){return this.selectedItems.length>0},listData(){const t=this.$vnode&&this.$vnode.context.$options._scopeId,e=t?{[t]:!0}:{};return{attrs:{...e,id:this.computedOwns},props:{action:this.multiple,color:this.itemColor,dense:this.dense,hideSelected:this.hideSelected,items:this.virtualizedItems,itemDisabled:this.itemDisabled,itemText:this.itemText,itemValue:this.itemValue,noDataText:this.$vuetify.lang.t(this.noDataText),selectedItems:this.selectedItems},on:{select:this.selectItem},scopedSlots:{item:this.$scopedSlots.item}}},staticList(){return(this.$slots["no-data"]||this.$slots["prepend-item"]||this.$slots["append-item"])&&He("assert: staticList should not be called if slots are used"),this.$createElement(Oi,this.listData)},virtualizedItems(){return this.$_menuProps.auto?this.computedItems:this.computedItems.slice(0,this.lastItem)},menuCanShow:()=>!0,$_menuProps(){let t="string"===typeof this.menuProps?this.menuProps.split(","):this.menuProps;return Array.isArray(t)&&(t=t.reduce((t,e)=>(t[e.trim()]=!0,t),{})),{...or,eager:this.eager,value:this.menuCanShow&&this.isMenuActive,nudgeBottom:t.offsetY?1:0,...t}}},watch:{internalValue(t){this.initialValue=t,this.setSelectedItems()},isMenuActive(t){window.setTimeout(()=>this.onMenuActiveChange(t))},items:{immediate:!0,handler(t){this.cacheItems&&this.$nextTick(()=>{this.cachedItems=this.filterDuplicates(this.cachedItems.concat(t))}),this.setSelectedItems()}}},methods:{blur(t){nr.options.methods.blur.call(this,t),this.isMenuActive=!1,this.isFocused=!1,this.selectedIndex=-1},activateMenu(){this.isInteractive&&!this.isMenuActive&&(this.isMenuActive=!0)},clearableCallback(){this.setValue(this.multiple?[]:void 0),this.setMenuIndex(-1),this.$nextTick(()=>this.$refs.input&&this.$refs.input.focus()),this.openOnClear&&(this.isMenuActive=!0)},closeConditional(t){return!this.isMenuActive||!this._isDestroyed&&(!this.getContent()||!this.getContent().contains(t.target))&&this.$el&&!this.$el.contains(t.target)&&t.target!==this.$el},filterDuplicates(t){const e=new Map;for(let n=0;n<t.length;++n){const i=t[n];if(i.header||i.divider){e.set(i,i);continue}const r=this.getValue(i);!e.has(r)&&e.set(r,i)}return Array.from(e.values())},findExistingIndex(t){const e=this.getValue(t);return(this.internalValue||[]).findIndex(t=>this.valueComparator(this.getValue(t),e))},getContent(){return this.$refs.menu&&this.$refs.menu.$refs.content},genChipSelection(t,e){const n=!this.isInteractive||this.getDisabled(t);return this.$createElement(Nn,{staticClass:"v-chip--select",attrs:{tabindex:-1},props:{close:this.deletableChips&&!n,disabled:n,inputValue:e===this.selectedIndex,small:this.smallChips},on:{click:t=>{n||(t.stopPropagation(),this.selectedIndex=e)},"click:close":()=>this.onChipInput(t)},key:JSON.stringify(this.getValue(t))},this.getText(t))},genCommaSelection(t,e,n){const i=e===this.selectedIndex&&this.computedColor,r=!this.isInteractive||this.getDisabled(t);return this.$createElement("div",this.setTextColor(i,{staticClass:"v-select__selection v-select__selection--comma",class:{"v-select__selection--disabled":r},key:JSON.stringify(this.getValue(t))}),`${this.getText(t)}${n?"":", "}`)},genDefaultSlot(){const t=this.genSelections(),e=this.genInput();return Array.isArray(t)?t.push(e):(t.children=t.children||[],t.children.push(e)),[this.genFieldset(),this.$createElement("div",{staticClass:"v-select__slot",directives:this.directives},[this.genLabel(),this.prefix?this.genAffix("prefix"):null,t,this.suffix?this.genAffix("suffix"):null,this.genClearIcon(),this.genIconSlot(),this.genHiddenInput()]),this.genMenu(),this.genProgress()]},genIcon(t,e,n){const i=$i.options.methods.genIcon.call(this,t,e,n);return"append"===t&&(i.children[0].data=ut(i.children[0].data,{attrs:{tabindex:i.children[0].componentOptions.listeners&&"-1","aria-hidden":"true","aria-label":void 0}})),i},genInput(){const t=nr.options.methods.genInput.call(this);return delete t.data.attrs.name,t.data=ut(t.data,{domProps:{value:null},attrs:{readonly:!0,type:"text","aria-readonly":String(this.isReadonly),"aria-activedescendant":E(this.$refs.menu,"activeTile.id"),autocomplete:E(t.data,"attrs.autocomplete","off")},on:{keypress:this.onKeyPress}}),t},genHiddenInput(){return this.$createElement("input",{domProps:{value:this.lazyValue},attrs:{type:"hidden",name:this.attrs$.name}})},genInputSlot(){const t=nr.options.methods.genInputSlot.call(this);return t.data.attrs={...t.data.attrs,role:"button","aria-haspopup":"listbox","aria-expanded":String(this.isMenuActive),"aria-owns":this.computedOwns},t},genList(){return this.$slots["no-data"]||this.$slots["prepend-item"]||this.$slots["append-item"]?this.genListWithSlot():this.staticList},genListWithSlot(){const t=["prepend-item","no-data","append-item"].filter(t=>this.$slots[t]).map(t=>this.$createElement("template",{slot:t},this.$slots[t]));return this.$createElement(Oi,{...this.listData},t)},genMenu(){const t=this.$_menuProps;return t.activator=this.$refs["input-slot"],""===this.attach||!0===this.attach||"attach"===this.attach?t.attach=this.$el:t.attach=this.attach,this.$createElement(ci,{attrs:{role:void 0},props:t,on:{input:t=>{this.isMenuActive=t,this.isFocused=t},scroll:this.onScroll},ref:"menu"},[this.genList()])},genSelections(){let t=this.selectedItems.length;const e=new Array(t);let n;n=this.$scopedSlots.selection?this.genSlotSelection:this.hasChips?this.genChipSelection:this.genCommaSelection;while(t--)e[t]=n(this.selectedItems[t],t,t===e.length-1);return this.$createElement("div",{staticClass:"v-select__selections"},e)},genSlotSelection(t,e){return this.$scopedSlots.selection({attrs:{class:"v-chip--select"},parent:this,item:t,index:e,select:t=>{t.stopPropagation(),this.selectedIndex=e},selected:e===this.selectedIndex,disabled:!this.isInteractive})},getMenuIndex(){return this.$refs.menu?this.$refs.menu.listIndex:-1},getDisabled(t){return R(t,this.itemDisabled,!1)},getText(t){return R(t,this.itemText,t)},getValue(t){return R(t,this.itemValue,this.getText(t))},onBlur(t){t&&this.$emit("blur",t)},onChipInput(t){this.multiple?this.selectItem(t):this.setValue(null),0===this.selectedItems.length?this.isMenuActive=!0:this.isMenuActive=!1,this.selectedIndex=-1},onClick(t){this.isInteractive&&(this.isAppendInner(t.target)||(this.isMenuActive=!0),this.isFocused||(this.isFocused=!0,this.$emit("focus")),this.$emit("click",t))},onEscDown(t){t.preventDefault(),this.isMenuActive&&(t.stopPropagation(),this.isMenuActive=!1)},onKeyPress(t){if(this.multiple||!this.isInteractive||this.disableLookup)return;const e=1e3,n=performance.now();n-this.keyboardLookupLastTime>e&&(this.keyboardLookupPrefix=""),this.keyboardLookupPrefix+=t.key.toLowerCase(),this.keyboardLookupLastTime=n;const i=this.allItems.findIndex(t=>{const e=(this.getText(t)||"").toString();return e.toLowerCase().startsWith(this.keyboardLookupPrefix)}),r=this.allItems[i];-1!==i&&(this.lastItem=Math.max(this.lastItem,i+5),this.setValue(this.returnObject?r:this.getValue(r)),this.$nextTick(()=>this.$refs.menu.getTiles()),setTimeout(()=>this.setMenuIndex(i)))},onKeyDown(t){if(this.isReadonly&&t.keyCode!==W.tab)return;const e=t.keyCode,n=this.$refs.menu;return[W.enter,W.space].includes(e)&&this.activateMenu(),this.$emit("keydown",t),n?(this.isMenuActive&&e!==W.tab&&this.$nextTick(()=>{n.changeListIndex(t),this.$emit("update:list-index",n.listIndex)}),!this.isMenuActive&&[W.up,W.down].includes(e)?this.onUpDown(t):e===W.esc?this.onEscDown(t):e===W.tab?this.onTabDown(t):e===W.space?this.onSpaceDown(t):void 0):void 0},onMenuActiveChange(t){if(this.multiple&&!t||this.getMenuIndex()>-1)return;const e=this.$refs.menu;if(e&&this.isDirty)for(let n=0;n<e.tiles.length;n++)if("true"===e.tiles[n].getAttribute("aria-selected")){this.setMenuIndex(n);break}},onMouseUp(t){this.hasMouseDown&&3!==t.which&&this.isInteractive&&this.isAppendInner(t.target)&&this.$nextTick(()=>this.isMenuActive=!this.isMenuActive),nr.options.methods.onMouseUp.call(this,t)},onScroll(){if(this.isMenuActive){if(this.lastItem>this.computedItems.length)return;const t=this.getContent().scrollHeight-(this.getContent().scrollTop+this.getContent().clientHeight)<200;t&&(this.lastItem+=20)}else requestAnimationFrame(()=>this.getContent().scrollTop=0)},onSpaceDown(t){t.preventDefault()},onTabDown(t){const e=this.$refs.menu;if(!e)return;const n=e.activeTile;!this.multiple&&n&&this.isMenuActive?(t.preventDefault(),t.stopPropagation(),n.click()):this.blur(t)},onUpDown(t){const e=this.$refs.menu;if(!e)return;if(t.preventDefault(),this.multiple)return this.activateMenu();const n=t.keyCode;e.isBooted=!0,window.requestAnimationFrame(()=>{e.getTiles(),W.up===n?e.prevTile():e.nextTile(),e.activeTile&&e.activeTile.click()})},selectItem(t){if(this.multiple){const e=(this.internalValue||[]).slice(),n=this.findExistingIndex(t);if(-1!==n?e.splice(n,1):e.push(t),this.setValue(e.map(t=>this.returnObject?t:this.getValue(t))),this.$nextTick(()=>{this.$refs.menu&&this.$refs.menu.updateDimensions()}),!this.multiple)return;const i=this.getMenuIndex();if(this.setMenuIndex(-1),this.hideSelected)return;this.$nextTick(()=>this.setMenuIndex(i))}else this.setValue(this.returnObject?t:this.getValue(t)),this.isMenuActive=!1},setMenuIndex(t){this.$refs.menu&&(this.$refs.menu.listIndex=t)},setSelectedItems(){const t=[],e=this.multiple&&Array.isArray(this.internalValue)?this.internalValue:[this.internalValue];for(const n of e){const e=this.allItems.findIndex(t=>this.valueComparator(this.getValue(t),this.getValue(n)));e>-1&&t.push(this.allItems[e])}this.selectedItems=t},setValue(t){const e=this.internalValue;this.internalValue=t,t!==e&&this.$emit("change",t)},isAppendInner(t){const e=this.$refs["append-inner"];return e&&(e===t||e.contains(t))}}}),lr=b(M,s,l,!1,null,null,null),ur=lr.exports;C()(lr,{VSelect:sr});var cr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-card",{style:{width:t.width,height:t.height},attrs:{outlined:"",elevation:"1"}},[n("v-card-title",[n("span",[t._v(t._s(t.title))]),n("v-spacer"),t.searchable?n("pui-text-field",{attrs:{"append-icon":"fas fa-search",placeholder:"search",noeditable:"",realtime:"","hide-details":""},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}}):t._e()],1),n("v-divider"),n("v-card-text",[n("v-data-table",{staticClass:"elevation-1",attrs:{headers:t.headers,items:t.items,loading:t.loading,height:t.tableHeight,search:t.search,dense:"","fixed-header":"","hide-default-footer":t.hideFooter}})],1)],1)},hr=[];function dr(t){if(Array.isArray(t))return t}function pr(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){u=!0,r=t}finally{try{if(!l&&null!=n["return"]&&(a=n["return"](),Object(a)!==a))return}finally{if(u)throw r}}return s}}function fr(){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 gr(t,e){return dr(t)||pr(t,e)||f(t,e)||fr()}n("4de4"),n("4fad"),n("2382");var vr={headers:[{text:"Code",value:"code"},{text:"Name",value:"name"},{text:"Description",value:"description"}],items:[{code:1,name:"Test 1",description:"Test 1 description"},{code:2,name:"Test 2",description:"Test 2 description"},{code:3,name:"Test 3",description:"Test 3 description"},{code:4,name:"Test 4",description:"Test 4 description"}]},mr={name:"PuiWidgetDatatable",props:{definition:{type:Object,required:!1},resized:{type:Object,required:!1}},data:function(){return{width:"100%",height:"100%",loading:!0,title:null,headers:[],items:[],search:null}},computed:{tableHeight:function(){return this.resized&&this.resized.height?this.resized.height-150:"100%"},searchable:function(){return this.definition&&this.definition.searchable&&this.definition.searchable.value||!1},hideFooter:function(){return this.definition&&this.definition.hidePagination&&this.definition.hidePagination.value||!1}},created:function(){this.initDatatable()},methods:{initDatatable:function(){if(!this.definition)return this.title="Example Datatable",this.columns=vr.columns,this.headers=vr.headers,this.items=vr.items,void(this.loading=!1);this.title=this.definition.title.value;var t=this.$store.getters.getModelByName(this.definition.entityName.value);t?this.initDatatableFromModel(t):(console.log(this.definition.entityName.value,"not exist in PUI9 models"),this.initDatatableFromPuiWidget())},initDatatableFromModel:function(t){var e=this,n=t.columns;this.headers=n.map((function(t){return{text:e.$t(t.title),value:t.name}}));var i={model:this.definition.entityName.value,filter:this.definition.filter,rows:1e3,columns:this.definition.columns||n.map((function(t){return t.name}))};this.$puiRequests.postRequest("/puisearch",i,(function(t){t&&t.data&&t.data.data&&(e.items=t.data.data,e.loading=!1)}),(function(t){console.log(t),e.loading=!1}))},initDatatableFromPuiWidget:function(){var t=this,e="/puiwidget/getVuetifyDatatableValues",n={entity:this.definition.entityName.value};this.$puiRequests.getRequest(e,n,(function(e){if(e&&e.data){for(var n=0,i=e.data.length;n<i;n++){var r=e.data[n];if(0===n)for(var o=0,a=Object.entries(r);o<a.length;o++){var s=gr(a[o],1),l=s[0];t.headers.push({text:l,value:l})}t.items.push(r)}t.loading=!1}}),(function(e){console.log(e),t.loading=!1}))}}},yr=mr,xr=(n("615b"),_i),br=D(Qi,En,xr).extend({name:"v-card",props:{flat:Boolean,hover:Boolean,img:String,link:Boolean,loaderHeight:{type:[Number,String],default:4},raised:Boolean},computed:{classes(){return{"v-card":!0,...En.options.computed.classes.call(this),"v-card--flat":this.flat,"v-card--hover":this.hover,"v-card--link":this.isClickable,"v-card--loading":this.loading,"v-card--disabled":this.disabled,"v-card--raised":this.raised,...xr.options.computed.classes.call(this)}},styles(){const t={...xr.options.computed.styles.call(this)};return this.img&&(t.background=`url("${this.img}") center center / cover no-repeat`),t}},methods:{genProgress(){const t=Qi.options.methods.genProgress.call(this);return t?this.$createElement("div",{staticClass:"v-card__progress",key:"progress"},[t]):null}},render(t){const{tag:e,data:n}=this.generateRouteLink();return n.style=this.styles,this.isClickable&&(n.attrs=n.attrs||{},n.attrs.tabindex=0),t(e,this.setBackgroundColor(this.color,n),[this.genProgress(),this.$slots.default])}});k("v-card__actions"),k("v-card__subtitle");const _r=k("v-card__text"),wr=k("v-card__title");n("91f4");var Sr=A.a.extend({name:"v-data",inheritAttrs:!1,props:{items:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})},sortBy:{type:[String,Array],default:()=>[]},sortDesc:{type:[Boolean,Array],default:()=>[]},customSort:{type:Function,default:K},mustSort:Boolean,multiSort:Boolean,page:{type:Number,default:1},itemsPerPage:{type:Number,default:10},groupBy:{type:[String,Array],default:()=>[]},groupDesc:{type:[Boolean,Array],default:()=>[]},customGroup:{type:Function,default:Z},locale:{type:String,default:"en-US"},disableSort:Boolean,disablePagination:Boolean,disableFiltering:Boolean,search:String,customFilter:{type:Function,default:Q},serverItemsLength:{type:Number,default:-1}},data(){let t={page:this.page,itemsPerPage:this.itemsPerPage,sortBy:q(this.sortBy),sortDesc:q(this.sortDesc),groupBy:q(this.groupBy),groupDesc:q(this.groupDesc),mustSort:this.mustSort,multiSort:this.multiSort};this.options&&(t=Object.assign(t,this.options));const{sortBy:e,sortDesc:n,groupBy:i,groupDesc:r}=t,o=e.length-n.length,a=i.length-r.length;return o>0&&t.sortDesc.push(...at(o,!1)),a>0&&t.groupDesc.push(...at(a,!1)),{internalOptions:t}},computed:{itemsLength(){return this.serverItemsLength>=0?this.serverItemsLength:this.filteredItems.length},pageCount(){return this.internalOptions.itemsPerPage<=0?1:Math.ceil(this.itemsLength/this.internalOptions.itemsPerPage)},pageStart(){return-1!==this.internalOptions.itemsPerPage&&this.items.length?(this.internalOptions.page-1)*this.internalOptions.itemsPerPage:0},pageStop(){return-1===this.internalOptions.itemsPerPage?this.itemsLength:this.items.length?Math.min(this.itemsLength,this.internalOptions.page*this.internalOptions.itemsPerPage):0},isGrouped(){return!!this.internalOptions.groupBy.length},pagination(){return{page:this.internalOptions.page,itemsPerPage:this.internalOptions.itemsPerPage,pageStart:this.pageStart,pageStop:this.pageStop,pageCount:this.pageCount,itemsLength:this.itemsLength}},filteredItems(){let t=this.items.slice();return!this.disableFiltering&&this.serverItemsLength<=0&&(t=this.customFilter(t,this.search)),t},computedItems(){let t=this.filteredItems.slice();return!this.disableSort&&this.serverItemsLength<=0&&(t=this.sortItems(t)),!this.disablePagination&&this.serverItemsLength<=0&&(t=this.paginateItems(t)),t},groupedItems(){return this.isGrouped?this.groupItems(this.computedItems):null},scopedProps(){return{sort:this.sort,sortArray:this.sortArray,group:this.group,items:this.computedItems,options:this.internalOptions,updateOptions:this.updateOptions,pagination:this.pagination,groupedItems:this.groupedItems,originalItemsLength:this.items.length}},computedOptions(){return{...this.options}}},watch:{computedOptions:{handler(t,e){O(t,e)||this.updateOptions(t)},deep:!0,immediate:!0},internalOptions:{handler(t,e){O(t,e)||this.$emit("update:options",t)},deep:!0,immediate:!0},page(t){this.updateOptions({page:t})},"internalOptions.page"(t){this.$emit("update:page",t)},itemsPerPage(t){this.updateOptions({itemsPerPage:t})},"internalOptions.itemsPerPage"(t){this.$emit("update:items-per-page",t)},sortBy(t){this.updateOptions({sortBy:q(t)})},"internalOptions.sortBy"(t,e){!O(t,e)&&this.$emit("update:sort-by",Array.isArray(this.sortBy)?t:t[0])},sortDesc(t){this.updateOptions({sortDesc:q(t)})},"internalOptions.sortDesc"(t,e){!O(t,e)&&this.$emit("update:sort-desc",Array.isArray(this.sortDesc)?t:t[0])},groupBy(t){this.updateOptions({groupBy:q(t)})},"internalOptions.groupBy"(t,e){!O(t,e)&&this.$emit("update:group-by",Array.isArray(this.groupBy)?t:t[0])},groupDesc(t){this.updateOptions({groupDesc:q(t)})},"internalOptions.groupDesc"(t,e){!O(t,e)&&this.$emit("update:group-desc",Array.isArray(this.groupDesc)?t:t[0])},multiSort(t){this.updateOptions({multiSort:t})},"internalOptions.multiSort"(t){this.$emit("update:multi-sort",t)},mustSort(t){this.updateOptions({mustSort:t})},"internalOptions.mustSort"(t){this.$emit("update:must-sort",t)},pageCount:{handler(t){this.$emit("page-count",t)},immediate:!0},computedItems:{handler(t){this.$emit("current-items",t)},immediate:!0},pagination:{handler(t,e){O(t,e)||this.$emit("pagination",this.pagination)},immediate:!0}},methods:{toggle(t,e,n,i,r,o){let a=e.slice(),s=n.slice();const l=a.findIndex(e=>e===t);return l<0?(o||(a=[],s=[]),a.push(t),s.push(!1)):l>=0&&!s[l]?s[l]=!0:r?s[l]=!1:(a.splice(l,1),s.splice(l,1)),O(a,e)&&O(s,n)||(i=1),{by:a,desc:s,page:i}},group(t){const{by:e,desc:n,page:i}=this.toggle(t,this.internalOptions.groupBy,this.internalOptions.groupDesc,this.internalOptions.page,!0,!1);this.updateOptions({groupBy:e,groupDesc:n,page:i})},sort(t){if(Array.isArray(t))return this.sortArray(t);const{by:e,desc:n,page:i}=this.toggle(t,this.internalOptions.sortBy,this.internalOptions.sortDesc,this.internalOptions.page,this.internalOptions.mustSort,this.internalOptions.multiSort);this.updateOptions({sortBy:e,sortDesc:n,page:i})},sortArray(t){const e=t.map(t=>{const e=this.internalOptions.sortBy.findIndex(e=>e===t);return e>-1&&this.internalOptions.sortDesc[e]});this.updateOptions({sortBy:t,sortDesc:e})},updateOptions(t){this.internalOptions={...this.internalOptions,...t,page:this.serverItemsLength<0?Math.max(1,Math.min(t.page||this.internalOptions.page,this.pageCount)):t.page||this.internalOptions.page}},sortItems(t){let e=this.internalOptions.sortBy,n=this.internalOptions.sortDesc;return this.internalOptions.groupBy.length&&(e=[...this.internalOptions.groupBy,...e],n=[...this.internalOptions.groupDesc,...n]),this.customSort(t,e,n,this.locale)},groupItems(t){return this.customGroup(t,this.internalOptions.groupBy,this.internalOptions.groupDesc)},paginateItems(t){return-1===this.serverItemsLength&&t.length<=this.pageStart&&(this.internalOptions.page=Math.max(1,this.internalOptions.page-1)),t.slice(this.pageStart,this.pageStop)}},render(){return this.$scopedSlots.default&&this.$scopedSlots.default(this.scopedProps)}}),Mr=(n("495d"),n("86cc"),n("8d4f"),Ze.extend({name:"v-progress-circular",props:{button:Boolean,indeterminate:Boolean,rotate:{type:[Number,String],default:0},size:{type:[Number,String],default:32},width:{type:[Number,String],default:4},value:{type:[Number,String],default:0}},data:()=>({radius:20}),computed:{calculatedSize(){return Number(this.size)+(this.button?8:0)},circumference(){return 2*Math.PI*this.radius},classes(){return{"v-progress-circular--indeterminate":this.indeterminate,"v-progress-circular--button":this.button}},normalizedValue(){return this.value<0?0:this.value>100?100:parseFloat(this.value)},strokeDashArray(){return Math.round(1e3*this.circumference)/1e3},strokeDashOffset(){return(100-this.normalizedValue)/100*this.circumference+"px"},strokeWidth(){return Number(this.width)/+this.size*this.viewBoxSize*2},styles(){return{height:F(this.calculatedSize),width:F(this.calculatedSize)}},svgStyles(){return{transform:`rotate(${Number(this.rotate)}deg)`}},viewBoxSize(){return this.radius/(1-Number(this.width)/+this.size)}},methods:{genCircle(t,e){return this.$createElement("circle",{class:"v-progress-circular__"+t,attrs:{fill:"transparent",cx:2*this.viewBoxSize,cy:2*this.viewBoxSize,r:this.radius,"stroke-width":this.strokeWidth,"stroke-dasharray":this.strokeDashArray,"stroke-dashoffset":e}})},genSvg(){const t=[this.indeterminate||this.genCircle("underlay",0),this.genCircle("overlay",this.strokeDashOffset)];return this.$createElement("svg",{style:this.svgStyles,attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:`${this.viewBoxSize} ${this.viewBoxSize} ${2*this.viewBoxSize} ${2*this.viewBoxSize}`}},t)},genInfo(){return this.$createElement("div",{staticClass:"v-progress-circular__info"},this.$slots.default)}},render(t){return t("div",this.setTextColor(this.color,{staticClass:"v-progress-circular",attrs:{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":this.indeterminate?void 0:this.normalizedValue},class:this.classes,style:this.styles,on:this.$listeners}),[this.genSvg(),this.genInfo()])}})),Ir=Mr;const Cr=D(xr,En,Un,qe,un("btnToggle"),cn("inputValue"));var Tr=Cr.extend().extend({name:"v-btn",props:{activeClass:{type:String,default(){return this.btnToggle?this.btnToggle.activeClass:""}},block:Boolean,depressed:Boolean,fab:Boolean,icon:Boolean,loading:Boolean,outlined:Boolean,retainFocusOnClick:Boolean,rounded:Boolean,tag:{type:String,default:"button"},text:Boolean,tile:Boolean,type:{type:String,default:"button"},value:null},data:()=>({proxyClass:"v-btn--active"}),computed:{classes(){return{"v-btn":!0,...En.options.computed.classes.call(this),"v-btn--absolute":this.absolute,"v-btn--block":this.block,"v-btn--bottom":this.bottom,"v-btn--contained":this.contained,"v-btn--depressed":this.depressed||this.outlined,"v-btn--disabled":this.disabled,"v-btn--fab":this.fab,"v-btn--fixed":this.fixed,"v-btn--flat":this.isFlat,"v-btn--icon":this.icon,"v-btn--left":this.left,"v-btn--loading":this.loading,"v-btn--outlined":this.outlined,"v-btn--right":this.right,"v-btn--round":this.isRound,"v-btn--rounded":this.rounded,"v-btn--router":this.to,"v-btn--text":this.text,"v-btn--tile":this.tile,"v-btn--top":this.top,...this.themeClasses,...this.groupClasses,...this.elevationClasses,...this.sizeableClasses}},contained(){return Boolean(!this.isFlat&&!this.depressed&&!this.elevation)},computedRipple(){var t;const e=!this.icon&&!this.fab||{circle:!0};return!this.disabled&&(null!=(t=this.ripple)?t:e)},isFlat(){return Boolean(this.icon||this.text||this.outlined)},isRound(){return Boolean(this.icon||this.fab)},styles(){return{...this.measurableStyles}}},created(){const t=[["flat","text"],["outline","outlined"],["round","rounded"]];t.forEach(([t,e])=>{this.$attrs.hasOwnProperty(t)&&We(t,e,this)})},methods:{click(t){!this.retainFocusOnClick&&!this.fab&&t.detail&&this.$el.blur(),this.$emit("click",t),this.btnToggle&&this.toggle()},genContent(){return this.$createElement("span",{staticClass:"v-btn__content"},this.$slots.default)},genLoader(){return this.$createElement("span",{class:"v-btn__loader"},this.$slots.loader||[this.$createElement(Ir,{props:{indeterminate:!0,size:23,width:2}})])}},render(t){const e=[this.genContent(),this.loading&&this.genLoader()],n=this.isFlat?this.setTextColor:this.setBackgroundColor,{tag:i,data:r}=this.generateRouteLink();return"button"===i&&(r.attrs.type=this.type,r.attrs.disabled=this.disabled),r.attrs.value=["string","number"].includes(typeof this.value)?this.value:JSON.stringify(this.value),t(i,this.disabled?r:n(this.color,r),e)}}),Ar=Tr,Dr=A.a.extend({name:"v-data-footer",props:{options:{type:Object,required:!0},pagination:{type:Object,required:!0},itemsPerPageOptions:{type:Array,default:()=>[5,10,15,-1]},prevIcon:{type:String,default:"$prev"},nextIcon:{type:String,default:"$next"},firstIcon:{type:String,default:"$first"},lastIcon:{type:String,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},itemsPerPageAllText:{type:String,default:"$vuetify.dataFooter.itemsPerPageAll"},showFirstLastPage:Boolean,showCurrentPage:Boolean,disablePagination:Boolean,disableItemsPerPage:Boolean,pageText:{type:String,default:"$vuetify.dataFooter.pageText"}},computed:{disableNextPageIcon(){return this.options.itemsPerPage<=0||this.options.page*this.options.itemsPerPage>=this.pagination.itemsLength||this.pagination.pageStop<0},computedDataItemsPerPageOptions(){return this.itemsPerPageOptions.map(t=>"object"===typeof t?t:this.genDataItemsPerPageOption(t))}},methods:{updateOptions(t){this.$emit("update:options",Object.assign({},this.options,t))},onFirstPage(){this.updateOptions({page:1})},onPreviousPage(){this.updateOptions({page:this.options.page-1})},onNextPage(){this.updateOptions({page:this.options.page+1})},onLastPage(){this.updateOptions({page:this.pagination.pageCount})},onChangeItemsPerPage(t){this.updateOptions({itemsPerPage:t,page:1})},genDataItemsPerPageOption(t){return{text:-1===t?this.$vuetify.lang.t(this.itemsPerPageAllText):String(t),value:t}},genItemsPerPageSelect(){let t=this.options.itemsPerPage;const e=this.computedDataItemsPerPageOptions;return e.length<=1?null:(e.find(e=>e.value===t)||(t=e[0]),this.$createElement("div",{staticClass:"v-data-footer__select"},[this.$vuetify.lang.t(this.itemsPerPageText),this.$createElement(sr,{attrs:{"aria-label":this.$vuetify.lang.t(this.itemsPerPageText)},props:{disabled:this.disableItemsPerPage,items:e,value:t,hideDetails:!0,auto:!0,minWidth:"75px"},on:{input:this.onChangeItemsPerPage}})]))},genPaginationInfo(){let t=["–"];const e=this.pagination.itemsLength;let n=this.pagination.pageStart,i=this.pagination.pageStop;return this.pagination.itemsLength&&this.pagination.itemsPerPage?(n=this.pagination.pageStart+1,i=e<this.pagination.pageStop||this.pagination.pageStop<0?e:this.pagination.pageStop,t=this.$scopedSlots["page-text"]?[this.$scopedSlots["page-text"]({pageStart:n,pageStop:i,itemsLength:e})]:[this.$vuetify.lang.t(this.pageText,n,i,e)]):this.$scopedSlots["page-text"]&&(t=[this.$scopedSlots["page-text"]({pageStart:n,pageStop:i,itemsLength:e})]),this.$createElement("div",{class:"v-data-footer__pagination"},t)},genIcon(t,e,n,i){return this.$createElement(Ar,{props:{disabled:e||this.disablePagination,icon:!0,text:!0},on:{click:t},attrs:{"aria-label":n}},[this.$createElement(an,i)])},genIcons(){const t=[],e=[];return t.push(this.genIcon(this.onPreviousPage,1===this.options.page,this.$vuetify.lang.t("$vuetify.dataFooter.prevPage"),this.$vuetify.rtl?this.nextIcon:this.prevIcon)),e.push(this.genIcon(this.onNextPage,this.disableNextPageIcon,this.$vuetify.lang.t("$vuetify.dataFooter.nextPage"),this.$vuetify.rtl?this.prevIcon:this.nextIcon)),this.showFirstLastPage&&(t.unshift(this.genIcon(this.onFirstPage,1===this.options.page,this.$vuetify.lang.t("$vuetify.dataFooter.firstPage"),this.$vuetify.rtl?this.lastIcon:this.firstIcon)),e.push(this.genIcon(this.onLastPage,this.options.page>=this.pagination.pageCount||-1===this.options.itemsPerPage,this.$vuetify.lang.t("$vuetify.dataFooter.lastPage"),this.$vuetify.rtl?this.firstIcon:this.lastIcon))),[this.$createElement("div",{staticClass:"v-data-footer__icons-before"},t),this.showCurrentPage&&this.$createElement("span",[this.options.page.toString()]),this.$createElement("div",{staticClass:"v-data-footer__icons-after"},e)]}},render(){return this.$createElement("div",{staticClass:"v-data-footer"},[this.genItemsPerPageSelect(),this.genPaginationInfo(),this.genIcons()])}}),kr=A.a.extend({name:"mobile",props:{mobileBreakpoint:{type:[Number,String],default(){return this.$vuetify?this.$vuetify.breakpoint.mobileBreakpoint:void 0},validator:t=>!isNaN(Number(t))||["xs","sm","md","lg","xl"].includes(String(t))}},computed:{isMobile(){const{mobile:t,width:e,name:n,mobileBreakpoint:i}=this.$vuetify.breakpoint;if(i===this.mobileBreakpoint)return t;const r=parseInt(this.mobileBreakpoint,10),o=!isNaN(r);return o?e<r:n===this.mobileBreakpoint}},created(){this.$attrs.hasOwnProperty("mobile-break-point")&&$e("mobile-break-point","mobile-breakpoint",this)}}),Lr=D(kr,Qe).extend({name:"v-data-iterator",props:{...Sr.options.props,itemKey:{type:String,default:"id"},value:{type:Array,default:()=>[]},singleSelect:Boolean,expanded:{type:Array,default:()=>[]},mobileBreakpoint:{...kr.options.props.mobileBreakpoint,default:600},singleExpand:Boolean,loading:[Boolean,String],noResultsText:{type:String,default:"$vuetify.dataIterator.noResultsText"},noDataText:{type:String,default:"$vuetify.noDataText"},loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideDefaultFooter:Boolean,footerProps:Object,selectableKey:{type:String,default:"isSelectable"}},data:()=>({selection:{},expansion:{},internalCurrentItems:[]}),computed:{everyItem(){return!!this.selectableItems.length&&this.selectableItems.every(t=>this.isSelected(t))},someItems(){return this.selectableItems.some(t=>this.isSelected(t))},sanitizedFooterProps(){return rt(this.footerProps)},selectableItems(){return this.internalCurrentItems.filter(t=>this.isSelectable(t))}},watch:{value:{handler(t){this.selection=t.reduce((t,e)=>(t[E(e,this.itemKey)]=e,t),{})},immediate:!0},selection(t,e){O(Object.keys(t),Object.keys(e))||this.$emit("input",Object.values(t))},expanded:{handler(t){this.expansion=t.reduce((t,e)=>(t[E(e,this.itemKey)]=!0,t),{})},immediate:!0},expansion(t,e){if(O(t,e))return;const n=Object.keys(t).filter(e=>t[e]),i=n.length?this.items.filter(t=>n.includes(String(E(t,this.itemKey)))):[];this.$emit("update:expanded",i)}},created(){const t=[["disable-initial-sort","sort-by"],["filter","custom-filter"],["pagination","options"],["total-items","server-items-length"],["hide-actions","hide-default-footer"],["rows-per-page-items","footer-props.items-per-page-options"],["rows-per-page-text","footer-props.items-per-page-text"],["prev-icon","footer-props.prev-icon"],["next-icon","footer-props.next-icon"]];t.forEach(([t,e])=>{this.$attrs.hasOwnProperty(t)&&We(t,e,this)});const e=["expand","content-class","content-props","content-tag"];e.forEach(t=>{this.$attrs.hasOwnProperty(t)&&Ge(t)})},methods:{toggleSelectAll(t){const e=Object.assign({},this.selection);for(let n=0;n<this.selectableItems.length;n++){const i=this.selectableItems[n];if(!this.isSelectable(i))continue;const r=E(i,this.itemKey);t?e[r]=i:delete e[r]}this.selection=e,this.$emit("toggle-select-all",{items:this.internalCurrentItems,value:t})},isSelectable(t){return!1!==E(t,this.selectableKey)},isSelected(t){return!!this.selection[E(t,this.itemKey)]||!1},select(t,e=!0,n=!0){if(!this.isSelectable(t))return;const i=this.singleSelect?{}:Object.assign({},this.selection),r=E(t,this.itemKey);if(e?i[r]=t:delete i[r],this.singleSelect&&n){const t=Object.keys(this.selection),e=t.length&&E(this.selection[t[0]],this.itemKey);e&&e!==r&&this.$emit("item-selected",{item:this.selection[e],value:!1})}this.selection=i,n&&this.$emit("item-selected",{item:t,value:e})},isExpanded(t){return this.expansion[E(t,this.itemKey)]||!1},expand(t,e=!0){const n=this.singleExpand?{}:Object.assign({},this.expansion),i=E(t,this.itemKey);e?n[i]=!0:delete n[i],this.expansion=n,this.$emit("item-expanded",{item:t,value:e})},createItemProps(t){return{item:t,select:e=>this.select(t,e),isSelected:this.isSelected(t),expand:e=>this.expand(t,e),isExpanded:this.isExpanded(t),isMobile:this.isMobile}},genEmptyWrapper(t){return this.$createElement("div",t)},genEmpty(t,e){if(0===t&&this.loading){const t=this.$slots.loading||this.$vuetify.lang.t(this.loadingText);return this.genEmptyWrapper(t)}if(0===t){const t=this.$slots["no-data"]||this.$vuetify.lang.t(this.noDataText);return this.genEmptyWrapper(t)}if(0===e){const t=this.$slots["no-results"]||this.$vuetify.lang.t(this.noResultsText);return this.genEmptyWrapper(t)}return null},genItems(t){const e=this.genEmpty(t.originalItemsLength,t.pagination.itemsLength);return e?[e]:this.$scopedSlots.default?this.$scopedSlots.default({...t,isSelected:this.isSelected,select:this.select,isExpanded:this.isExpanded,expand:this.expand}):this.$scopedSlots.item?t.items.map(t=>this.$scopedSlots.item(this.createItemProps(t))):[]},genFooter(t){if(this.hideDefaultFooter)return null;const e={props:{...this.sanitizedFooterProps,options:t.options,pagination:t.pagination},on:{"update:options":e=>t.updateOptions(e)}},n=et("footer.",this.$scopedSlots);return this.$createElement(Dr,{scopedSlots:n,...e})},genDefaultScopedSlot(t){const e={...t,someItems:this.someItems,everyItem:this.everyItem,toggleSelectAll:this.toggleSelectAll};return this.$createElement("div",{staticClass:"v-data-iterator"},[nt(this,"header",e,!0),this.genItems(t),this.genFooter(t),nt(this,"footer",e,!0)])}},render(){return this.$createElement(Sr,{props:this.$props,on:{"update:options":(t,e)=>!O(t,e)&&this.$emit("update:options",t),"update:page":t=>this.$emit("update:page",t),"update:items-per-page":t=>this.$emit("update:items-per-page",t),"update:sort-by":t=>this.$emit("update:sort-by",t),"update:sort-desc":t=>this.$emit("update:sort-desc",t),"update:group-by":t=>this.$emit("update:group-by",t),"update:group-desc":t=>this.$emit("update:group-desc",t),pagination:(t,e)=>!O(t,e)&&this.$emit("pagination",t),"current-items":t=>{this.internalCurrentItems=t,this.$emit("current-items",t)},"page-count":t=>this.$emit("page-count",t)},scopedSlots:{default:this.genDefaultScopedSlot}})}}),Pr=(n("f823"),D().extend({directives:{ripple:On},props:{headers:{type:Array,default:()=>[]},options:{type:Object,default:()=>({page:1,itemsPerPage:10,sortBy:[],sortDesc:[],groupBy:[],groupDesc:[],multiSort:!1,mustSort:!1})},sortIcon:{type:String,default:"$sort"},everyItem:Boolean,someItems:Boolean,showGroupBy:Boolean,singleSelect:Boolean,disableSort:Boolean},methods:{genSelectAll(){const t={props:{value:this.everyItem,indeterminate:!this.everyItem&&this.someItems},on:{input:t=>this.$emit("toggle-select-all",t)}};return this.$scopedSlots["data-table-select"]?this.$scopedSlots["data-table-select"](t):this.$createElement(hi,{staticClass:"v-data-table__checkbox",...t})},genSortIcon(){return this.$createElement(an,{staticClass:"v-data-table-header__icon",props:{size:18}},[this.sortIcon])}}})),Or=D(Pr).extend({name:"v-data-table-header-mobile",props:{sortByText:{type:String,default:"$vuetify.dataTable.sortBy"}},methods:{genSortChip(t){const e=[t.item.text],n=this.options.sortBy.findIndex(e=>e===t.item.value),i=n>=0,r=this.options.sortDesc[n];return e.push(this.$createElement("div",{staticClass:"v-chip__close",class:{sortable:!0,active:i,asc:i&&!r,desc:i&&r}},[this.genSortIcon()])),this.$createElement(Nn,{staticClass:"sortable",on:{click:e=>{e.stopPropagation(),this.$emit("sort",t.item.value)}}},e)},genSortSelect(t){return this.$createElement(sr,{props:{label:this.$vuetify.lang.t(this.sortByText),items:t,hideDetails:!0,multiple:this.options.multiSort,value:this.options.multiSort?this.options.sortBy:this.options.sortBy[0],menuProps:{closeOnContentClick:!0}},on:{change:t=>this.$emit("sort",t)},scopedSlots:{selection:t=>this.genSortChip(t)}})}},render(t){const e=[],n=this.headers.find(t=>"data-table-select"===t.value);n&&!this.singleSelect&&e.push(this.$createElement("div",{class:["v-data-table-header-mobile__select",...q(n.class)],attrs:{width:n.width}},[this.genSelectAll()]));const i=this.headers.filter(t=>!1!==t.sortable&&"data-table-select"!==t.value).map(t=>({text:t.text,value:t.value}));!this.disableSort&&i.length&&e.push(this.genSortSelect(i));const r=t("th",[t("div",{staticClass:"v-data-table-header-mobile__wrapper"},e)]),o=t("tr",[r]);return t("thead",{staticClass:"v-data-table-header v-data-table-header-mobile"},[o])}}),Er=D(Pr).extend({name:"v-data-table-header-desktop",methods:{genGroupByToggle(t){return this.$createElement("span",{on:{click:e=>{e.stopPropagation(),this.$emit("group",t.value)}}},["group"])},getAria(t,e){const n=t=>this.$vuetify.lang.t("$vuetify.dataTable.ariaLabel."+t);let i="none",r=[n("sortNone"),n("activateAscending")];return t?(e?(i="descending",r=[n("sortDescending"),n(this.options.mustSort?"activateAscending":"activateNone")]):(i="ascending",r=[n("sortAscending"),n("activateDescending")]),{ariaSort:i,ariaLabel:r.join(" ")}):{ariaSort:i,ariaLabel:r.join(" ")}},genHeader(t){const e={attrs:{role:"columnheader",scope:"col","aria-label":t.text||""},style:{width:F(t.width),minWidth:F(t.width)},class:["text-"+(t.align||"start"),...q(t.class),t.divider&&"v-data-table__divider"],on:{}},n=[];if("data-table-select"===t.value&&!this.singleSelect)return this.$createElement("th",e,[this.genSelectAll()]);if(n.push(this.$scopedSlots[t.value]?this.$scopedSlots[t.value]({header:t}):this.$createElement("span",[t.text])),!this.disableSort&&(t.sortable||!t.hasOwnProperty("sortable"))){e.on.click=()=>this.$emit("sort",t.value);const i=this.options.sortBy.findIndex(e=>e===t.value),r=i>=0,o=this.options.sortDesc[i];e.class.push("sortable");const{ariaLabel:a,ariaSort:s}=this.getAria(r,o);e.attrs["aria-label"]+=`${t.text?": ":""}${a}`,e.attrs["aria-sort"]=s,r&&(e.class.push("active"),e.class.push(o?"desc":"asc")),"end"===t.align?n.unshift(this.genSortIcon()):n.push(this.genSortIcon()),this.options.multiSort&&r&&n.push(this.$createElement("span",{class:"v-data-table-header__sort-badge"},[String(i+1)]))}return this.showGroupBy&&!1!==t.groupable&&n.push(this.genGroupByToggle(t)),this.$createElement("th",e,n)}},render(){return this.$createElement("thead",{staticClass:"v-data-table-header"},[this.$createElement("tr",this.headers.map(t=>this.genHeader(t)))])}});function Rr(t){if(t.model&&t.on&&t.on.input)if(Array.isArray(t.on.input)){const e=t.on.input.indexOf(t.model.callback);e>-1&&t.on.input.splice(e,1)}else delete t.on.input}function Nr(t,e){const n=[];for(const i in t)t.hasOwnProperty(i)&&n.push(e("template",{slot:i},t[i]));return n}var zr=A.a.extend({name:"v-data-table-header",functional:!0,props:{...Pr.options.props,mobile:Boolean},render(t,{props:e,data:n,slots:i}){Rr(n);const r=Nr(i(),t);return n=ut(n,{props:e}),e.mobile?t(Or,n,r):t(Er,n,r)}}),Br=A.a.extend({name:"row",functional:!0,props:{headers:Array,item:Object,rtl:Boolean},render(t,{props:e,slots:n,data:i}){const r=n(),o=e.headers.map(n=>{const o=[],a=E(e.item,n.value),s=n.value,l=i.scopedSlots&&i.scopedSlots[s],u=r[s];l?o.push(l({item:e.item,header:n,value:a})):u?o.push(u):o.push(null==a?a:String(a));const c="text-"+(n.align||"start");return t("td",{class:{[c]:!0,"v-data-table__divider":n.divider}},o)});return t("tr",i,o)}}),Vr=A.a.extend({name:"row-group",functional:!0,props:{value:{type:Boolean,default:!0},headerClass:{type:String,default:"v-row-group__header"},contentClass:String,summaryClass:{type:String,default:"v-row-group__summary"}},render(t,{slots:e,props:n}){const i=e(),r=[];return i["column.header"]?r.push(t("tr",{staticClass:n.headerClass},i["column.header"])):i["row.header"]&&r.push(...i["row.header"]),i["row.content"]&&n.value&&r.push(...i["row.content"]),i["column.summary"]?r.push(t("tr",{staticClass:n.summaryClass},i["column.summary"])):i["row.summary"]&&r.push(...i["row.summary"]),r}}),Fr=(n("8b37"),D(Qe).extend({name:"v-simple-table",props:{dense:Boolean,fixedHeader:Boolean,height:[Number,String]},computed:{classes(){return{"v-data-table--dense":this.dense,"v-data-table--fixed-height":!!this.height&&!this.fixedHeader,"v-data-table--fixed-header":this.fixedHeader,"v-data-table--has-top":!!this.$slots.top,"v-data-table--has-bottom":!!this.$slots.bottom,...this.themeClasses}}},methods:{genWrapper(){return this.$slots.wrapper||this.$createElement("div",{staticClass:"v-data-table__wrapper",style:{height:F(this.height)}},[this.$createElement("table",this.$slots.default)])}},render(t){return t("div",{staticClass:"v-data-table",class:this.classes},[this.$slots.top,this.genWrapper(),this.$slots.bottom])}})),Hr=A.a.extend({name:"row",functional:!0,props:{headers:Array,hideDefaultHeader:Boolean,item:Object,rtl:Boolean},render(t,{props:e,slots:n,data:i}){const r=n(),o=e.headers.map(n=>{const o={"v-data-table__mobile-row":!0},a=[],s=E(e.item,n.value),l=n.value,u=i.scopedSlots&&i.scopedSlots[l],c=r[l];u?a.push(u({item:e.item,header:n,value:s})):c?a.push(c):a.push(null==s?s:String(s));const h=[t("div",{staticClass:"v-data-table__mobile-row__cell"},a)];return"dataTableSelect"===n.value||e.hideDefaultHeader||h.unshift(t("div",{staticClass:"v-data-table__mobile-row__header"},[n.text])),t("td",{class:o},h)});return t("tr",{...i,staticClass:"v-data-table__mobile-table-row"},o)}});function $r(t,e,n){return i=>{const r=E(t,i.value);return i.filter?i.filter(r,e,t):n(r,e,t)}}function Wr(t,e,n,i,r){return e="string"===typeof e?e.trim():null,t.filter(t=>{const o=n.every($r(t,e,J)),a=!e||i.some($r(t,e,r));return o&&a})}var Gr=D(Lr,Qi).extend({name:"v-data-table",directives:{ripple:On},props:{headers:{type:Array,default:()=>[]},showSelect:Boolean,showExpand:Boolean,showGroupBy:Boolean,height:[Number,String],hideDefaultHeader:Boolean,caption:String,dense:Boolean,headerProps:Object,calculateWidths:Boolean,fixedHeader:Boolean,headersLength:Number,expandIcon:{type:String,default:"$expand"},customFilter:{type:Function,default:J},itemClass:{type:[String,Function],default:()=>""},loaderHeight:{type:[Number,String],default:4}},data(){return{internalGroupBy:[],openCache:{},widths:[]}},computed:{computedHeaders(){if(!this.headers)return[];const t=this.headers.filter(t=>void 0===t.value||!this.internalGroupBy.find(e=>e===t.value)),e={text:"",sortable:!1,width:"1px"};if(this.showSelect){const n=t.findIndex(t=>"data-table-select"===t.value);n<0?t.unshift({...e,value:"data-table-select"}):t.splice(n,1,{...e,...t[n]})}if(this.showExpand){const n=t.findIndex(t=>"data-table-expand"===t.value);n<0?t.unshift({...e,value:"data-table-expand"}):t.splice(n,1,{...e,...t[n]})}return t},colspanAttrs(){return this.isMobile?void 0:{colspan:this.headersLength||this.computedHeaders.length}},columnSorters(){return this.computedHeaders.reduce((t,e)=>(e.sort&&(t[e.value]=e.sort),t),{})},headersWithCustomFilters(){return this.headers.filter(t=>t.filter&&(!t.hasOwnProperty("filterable")||!0===t.filterable))},headersWithoutCustomFilters(){return this.headers.filter(t=>!t.filter&&(!t.hasOwnProperty("filterable")||!0===t.filterable))},sanitizedHeaderProps(){return rt(this.headerProps)},computedItemsPerPage(){const t=this.options&&this.options.itemsPerPage?this.options.itemsPerPage:this.itemsPerPage,e=this.sanitizedFooterProps.itemsPerPageOptions;if(e&&!e.find(e=>"number"===typeof e?e===t:e.value===t)){const t=e[0];return"object"===typeof t?t.value:t}return t}},created(){const t=[["sort-icon","header-props.sort-icon"],["hide-headers","hide-default-header"],["select-all","show-select"]];t.forEach(([t,e])=>{this.$attrs.hasOwnProperty(t)&&We(t,e,this)})},mounted(){this.calculateWidths&&(window.addEventListener("resize",this.calcWidths),this.calcWidths())},beforeDestroy(){this.calculateWidths&&window.removeEventListener("resize",this.calcWidths)},methods:{calcWidths(){this.widths=Array.from(this.$el.querySelectorAll("th")).map(t=>t.clientWidth)},customFilterWithColumns(t,e){return Wr(t,e,this.headersWithCustomFilters,this.headersWithoutCustomFilters,this.customFilter)},customSortWithHeaders(t,e,n,i){return this.customSort(t,e,n,i,this.columnSorters)},createItemProps(t){const e=Lr.options.methods.createItemProps.call(this,t);return Object.assign(e,{headers:this.computedHeaders})},genCaption(t){return this.caption?[this.$createElement("caption",[this.caption])]:nt(this,"caption",t,!0)},genColgroup(t){return this.$createElement("colgroup",this.computedHeaders.map(t=>this.$createElement("col",{class:{divider:t.divider}})))},genLoading(){const t=this.$createElement("th",{staticClass:"column",attrs:this.colspanAttrs},[this.genProgress()]),e=this.$createElement("tr",{staticClass:"v-data-table__progress"},[t]);return this.$createElement("thead",[e])},genHeaders(t){const e={props:{...this.sanitizedHeaderProps,headers:this.computedHeaders,options:t.options,mobile:this.isMobile,showGroupBy:this.showGroupBy,someItems:this.someItems,everyItem:this.everyItem,singleSelect:this.singleSelect,disableSort:this.disableSort},on:{sort:t.sort,group:t.group,"toggle-select-all":this.toggleSelectAll}},n=[nt(this,"header",e)];if(!this.hideDefaultHeader){const t=et("header.",this.$scopedSlots);n.push(this.$createElement(zr,{...e,scopedSlots:t}))}return this.loading&&n.push(this.genLoading()),n},genEmptyWrapper(t){return this.$createElement("tr",{staticClass:"v-data-table__empty-wrapper"},[this.$createElement("td",{attrs:this.colspanAttrs},t)])},genItems(t,e){const n=this.genEmpty(e.originalItemsLength,e.pagination.itemsLength);return n?[n]:e.groupedItems?this.genGroupedRows(e.groupedItems,e):this.genRows(t,e)},genGroupedRows(t,e){return t.map(t=>(this.openCache.hasOwnProperty(t.name)||this.$set(this.openCache,t.name,!0),this.$scopedSlots.group?this.$scopedSlots.group({group:t.name,options:e.options,items:t.items,headers:this.computedHeaders}):this.genDefaultGroupedRow(t.name,t.items,e)))},genDefaultGroupedRow(t,e,n){const i=!!this.openCache[t],r=[this.$createElement("template",{slot:"row.content"},this.genRows(e,n))],o=()=>this.$set(this.openCache,t,!this.openCache[t]),a=()=>n.updateOptions({groupBy:[],groupDesc:[]});if(this.$scopedSlots["group.header"])r.unshift(this.$createElement("template",{slot:"column.header"},[this.$scopedSlots["group.header"]({group:t,groupBy:n.options.groupBy,items:e,headers:this.computedHeaders,isOpen:i,toggle:o,remove:a})]));else{const e=this.$createElement(Ar,{staticClass:"ma-0",props:{icon:!0,small:!0},on:{click:o}},[this.$createElement(an,[i?"$minus":"$plus"])]),s=this.$createElement(Ar,{staticClass:"ma-0",props:{icon:!0,small:!0},on:{click:a}},[this.$createElement(an,["$close"])]),l=this.$createElement("td",{staticClass:"text-start",attrs:this.colspanAttrs},[e,`${n.options.groupBy[0]}: ${t}`,s]);r.unshift(this.$createElement("template",{slot:"column.header"},[l]))}return this.$scopedSlots["group.summary"]&&r.push(this.$createElement("template",{slot:"column.summary"},[this.$scopedSlots["group.summary"]({group:t,groupBy:n.options.groupBy,items:e,headers:this.computedHeaders,isOpen:i,toggle:o})])),this.$createElement(Vr,{key:t,props:{value:i}},r)},genRows(t,e){return this.$scopedSlots.item?this.genScopedRows(t,e):this.genDefaultRows(t,e)},genScopedRows(t,e){const n=[];for(let i=0;i<t.length;i++){const e=t[i];n.push(this.$scopedSlots.item({...this.createItemProps(e),index:i})),this.isExpanded(e)&&n.push(this.$scopedSlots["expanded-item"]({item:e,headers:this.computedHeaders}))}return n},genDefaultRows(t,e){return this.$scopedSlots["expanded-item"]?t.map(t=>this.genDefaultExpandedRow(t)):t.map(t=>this.genDefaultSimpleRow(t))},genDefaultExpandedRow(t){const e=this.isExpanded(t),n={"v-data-table__expanded v-data-table__expanded__row":e},i=this.genDefaultSimpleRow(t,n),r=this.$createElement("tr",{staticClass:"v-data-table__expanded v-data-table__expanded__content"},[this.$scopedSlots["expanded-item"]({item:t,headers:this.computedHeaders})]);return this.$createElement(Vr,{props:{value:e}},[this.$createElement("template",{slot:"row.header"},[i]),this.$createElement("template",{slot:"row.content"},[r])])},genDefaultSimpleRow(t,e={}){const n=et("item.",this.$scopedSlots),i=this.createItemProps(t);if(this.showSelect){const e=n["data-table-select"];n["data-table-select"]=e?()=>e(i):()=>this.$createElement(hi,{staticClass:"v-data-table__checkbox",props:{value:i.isSelected,disabled:!this.isSelectable(t)},on:{input:t=>i.select(t)}})}if(this.showExpand){const t=n["data-table-expand"];n["data-table-expand"]=t?()=>t(i):()=>this.$createElement(an,{staticClass:"v-data-table__expand-icon",class:{"v-data-table__expand-icon--active":i.isExpanded},on:{click:t=>{t.stopPropagation(),i.expand(!i.isExpanded)}}},[this.expandIcon])}return this.$createElement(this.isMobile?Hr:Br,{key:E(t,this.itemKey),class:ht({...e,"v-data-table__selected":i.isSelected},R(t,this.itemClass)),props:{headers:this.computedHeaders,hideDefaultHeader:this.hideDefaultHeader,item:t,rtl:this.$vuetify.rtl},scopedSlots:n,on:{click:()=>this.$emit("click:row",t,i),contextmenu:t=>this.$emit("contextmenu:row",t,i),dblclick:t=>this.$emit("dblclick:row",t,i)}})},genBody(t){const e={...t,expand:this.expand,headers:this.computedHeaders,isExpanded:this.isExpanded,isMobile:this.isMobile,isSelected:this.isSelected,select:this.select};return this.$scopedSlots.body?this.$scopedSlots.body(e):this.$createElement("tbody",[nt(this,"body.prepend",e,!0),this.genItems(t.items,t),nt(this,"body.append",e,!0)])},genFooters(t){const e={props:{options:t.options,pagination:t.pagination,itemsPerPageText:"$vuetify.dataTable.itemsPerPageText",...this.sanitizedFooterProps},on:{"update:options":e=>t.updateOptions(e)},widths:this.widths,headers:this.computedHeaders},n=[nt(this,"footer",e,!0)];return this.hideDefaultFooter||n.push(this.$createElement(Dr,{...e,scopedSlots:et("footer.",this.$scopedSlots)})),n},genDefaultScopedSlot(t){const e={height:this.height,fixedHeader:this.fixedHeader,dense:this.dense};return this.$createElement(Fr,{props:e},[this.proxySlot("top",nt(this,"top",t,!0)),this.genCaption(t),this.genColgroup(t),this.genHeaders(t),this.genBody(t),this.proxySlot("bottom",this.genFooters(t))])},proxySlot(t,e){return this.$createElement("template",{slot:t},e)}},render(){return this.$createElement(Sr,{props:{...this.$props,customFilter:this.customFilterWithColumns,customSort:this.customSortWithHeaders,itemsPerPage:this.computedItemsPerPage},on:{"update:options":(t,e)=>{this.internalGroupBy=t.groupBy||[],!O(t,e)&&this.$emit("update:options",t)},"update:page":t=>this.$emit("update:page",t),"update:items-per-page":t=>this.$emit("update:items-per-page",t),"update:sort-by":t=>this.$emit("update:sort-by",t),"update:sort-desc":t=>this.$emit("update:sort-desc",t),"update:group-by":t=>this.$emit("update:group-by",t),"update:group-desc":t=>this.$emit("update:group-desc",t),pagination:(t,e)=>!O(t,e)&&this.$emit("pagination",t),"current-items":t=>{this.internalCurrentItems=t,this.$emit("current-items",t)},"page-count":t=>this.$emit("page-count",t)},scopedSlots:{default:this.genDefaultScopedSlot}})}}),jr=(n("20f6"),k("spacer","div","v-spacer")),Yr=b(yr,cr,hr,!1,null,null,null),Xr=Yr.exports;C()(Yr,{VCard:br,VCardText:_r,VCardTitle:wr,VDataTable:Gr,VDivider:di,VSpacer:jr});var Ur=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-card",{directives:[{name:"resize",rawName:"v-resize",value:t.onResize,expression:"onResize"}],staticClass:"overflow-y-hidden",style:{width:t.width,height:t.height},attrs:{outlined:"",elevation:"1",loading:t.loading}},[t.title?n("v-card-title",[t._v(t._s(t.title))]):t._e(),t.title?n("v-divider"):t._e(),n("v-card-text",[n("div",{ref:"echart",staticClass:"chart",style:{width:t.defaultWidth,height:t.defaultHeight}}),t.noData?n("span",[t._v(t._s(t.noData))]):t._e()])],1)},Zr=[],qr=(n("e9c4"),n("313e")),Kr={trigger:"axis",axisPointer:{type:"shadow"}},Jr={top:10,left:"2%",right:"2%",bottom:"3%",containLabel:!0},Qr=null,to={type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},eo={type:"value"},no={tooltip:Kr,grid:Jr,legend:Qr,xAxis:to,yAxis:eo,series:[{data:[120,200,150,80,70,110,130],type:"bar"}]},io={tooltip:Kr,grid:Jr,legend:Qr,xAxis:to,yAxis:eo,series:[{data:[820,932,901,934,1290,1330,1300],type:"line"}]},ro={tooltip:{trigger:"item",formatter:"{b} : {c} ({d}%)"},legend:Qr,series:[{type:"pie",data:[{value:320,name:"1"},{value:240,name:"2"},{value:149,name:"3"},{value:100,name:"4"},{value:59,name:"5"}]}]},oo={EChartsBar:no,EChartsLine:io,EChartsPie:ro},ao=oo;n("817d"),n("7799"),n("9fad"),n("074e");var so={name:"PuiWidgetEChart",props:{type:{type:String,required:!0},definition:{type:Object,required:!1},filter:{type:Object,required:!1},resized:{type:Object,required:!1}},data:function(){return{width:"100%",height:"100%",echartMethods:{EChartsBar:"getEChartsLineBarOptions",EChartsLine:"getEChartsLineBarOptions",EChartsPie:"getEChartsPieOptions"},echartTypes:{EChartsBar:"bar",EChartsLine:"line",EChartsPie:"pie"},loading:!0,title:null,chart:null,noData:null}},computed:{defaultWidth:function(){return this.resized&&this.resized.width,"100%"},defaultHeight:function(){return this.resized&&this.resized.height?"".concat(this.resized.height-100,"px"):"100%"}},watch:{resized:{handler:function(){this.onResize()},deep:!0}},mounted:function(){var t=this;this.$nextTick((function(){t.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{onResize:function(){this.chart&&this.chart.resize()},initChart:function(){var t=this;if(!this.definition)return this.title="Example ".concat(this.type," Chart"),this.chart=qr["init"](this.$refs.echart),this.chart.setOption(ao[this.type]),void(this.loading=!1);this.title=this.definition.title.value;var e=this.definition.theme&&this.definition.theme.value||null,n="/puiwidget/".concat(this.echartMethods[this.type]),i={entity:this.definition.entityName.value,name:this.definition.columnName.value,value:this.definition.columnValue.value,type:this.echartTypes[this.type]};this.$puiRequests.postRequest(n,this.filter,(function(n){if(n&&n.data){var i=t.getChartOptions();n.data.categories&&(i.xAxis.data=n.data.categories),i.series=[];for(var r=0;r<n.data.series.length;r++){var o=n.data.series[r];i.series.push(o)}t.chart=qr["init"](t.$refs.echart,e),t.chart.setOption(i),t.loading=!1}else console.log("No response data"),t.noData=t.$t("puiwidget.nodata"),t.loading=!1}),(function(e){console.log(e),t.noData=t.$t("puiwidget.nodata"),t.loading=!1}),null,i)},getChartOptions:function(){var t=JSON.parse(JSON.stringify(ao[this.type]));return this.definition.legend&&this.definition.legend.value&&(t.legend={}),this.definition.toolbox&&this.definition.toolbox.value&&(t.toolbox={show:!0,feature:{dataZoom:{yAxisIndex:"none"},dataView:{readOnly:!1},magicType:{type:["line","bar"]},restore:{},saveAsImage:{}}}),t}}},lo=so,uo=n("269a"),co=n.n(uo),ho=b(lo,Ur,Zr,!1,null,null,null),po=ho.exports;C()(ho,{VCard:br,VCardText:_r,VCardTitle:wr,VDivider:di}),co()(ho,{Resize:si});var fo={PuiDashboard:ur,PuiWidgetDatatable:Xr,PuiWidgetEChart:po},go={install:function(t){Object.keys(fo).forEach((function(e){t.component(e,fo[e])}))}};e["default"]=go},fb6a:function(t,e,n){"use strict";var i=n("23e7"),r=n("861d"),o=n("e8b5"),a=n("23cb"),s=n("50c4"),l=n("fc6a"),u=n("8418"),c=n("b622"),h=n("1dde"),d=h("slice"),p=c("species"),f=[].slice,g=Math.max;i({target:"Array",proto:!0,forced:!d},{slice:function(t,e){var n,i,c,h=l(this),d=s(h.length),v=a(t,d),m=a(void 0===e?d:e,d);if(o(h)&&(n=h.constructor,"function"!=typeof n||n!==Array&&!o(n.prototype)?r(n)&&(n=n[p],null===n&&(n=void 0)):n=void 0,n===Array||void 0===n))return f.call(h,v,m);for(i=new(void 0===n?Array:n)(g(m-v,0)),c=0;v<m;v++,c++)v in h&&u(i,c,h[v]);return i.length=c,i}})},fc6a:function(t,e,n){var i=n("44ad"),r=n("1d80");t.exports=function(t){return i(r(t))}},fce3:function(t,e,n){var i=n("d039"),r=n("da84"),o=r.RegExp;t.exports=i((function(){var t=o(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},fdbc:function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(t,e,n){var i=n("4930");t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}})}));
|
|
28
|
+
//# sourceMappingURL=pui9-dashboard.umd.min.js.map
|